This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| import java.util.concurrent.*; | |
| public class RandomWeightedSelection { | |
| public static void main(String [] args) { | |
| runIterations( 100); | |
| runIterations( 10_000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HashBuilder | |
| def initialize | |
| @h = Hash.new | |
| end | |
| def set(key, value = nil, &block) | |
| @h[key.to_s] = if block_given? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.concurrent.ExecutionException; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.Future; | |
| public class Main { | |
| private static final char[] alphabet = "eaistnrulodmpcvqgbfjhzxykw0123456789!@#$%&*".toCharArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- untitled 5 | |
| +++ (clipboard) | |
| @@ -2,20 +2,10 @@ | |
| ├── META-INF | |
| │ └── MANIFEST.MF | |
| └── voldemort | |
| - ├── client | |
| - │ ├── CoordinatorAdminClientTest.class | |
| - │ ├── CoordinatorAdminToolTest.class | |
| - │ ├── RestClientTest$1.class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- untitled 2 | |
| +++ (clipboard) | |
| @@ -3981,30 +3981,6 @@ | |
| │ │ ├── JsonSchema.class | |
| │ │ ├── JsonSerializableSchema.class | |
| │ │ └── SchemaAware.class | |
| -│ ├── hamcrest | |
| -│ │ ├── BaseDescription.class | |
| -│ │ ├── BaseMatcher.class | |
| -│ │ ├── CoreMatchers.class |
OlderNewer