repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
jmh
jmh-master/jmh-core/src/test/java/org/openjdk/jmh/util/TestUtil.java
/* * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,452
39.213115
118
java
jmh
jmh-master/jmh-core/src/test/java/org/openjdk/jmh/util/Util.java
/* * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
1,717
38.953488
85
java
jmh
jmh-master/jmh-core/src/test/java/org/openjdk/jmh/util/lines/TestArmor.java
/* * Copyright (c) 2020, Red Hat Inc. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. O...
2,939
30.276596
76
java
jmh
jmh-master/jmh-core/src/test/java/org/openjdk/jmh/util/lines/TestLineTest.java
/* * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
4,710
42.220183
118
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/BenchmarkProcessor.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,760
41.476923
95
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/annotations/APClassInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
6,960
32.30622
96
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/annotations/APFieldInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,854
31.816092
82
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/annotations/APGeneratorDestinaton.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
4,105
38.864078
123
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/annotations/APGeneratorSource.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
5,069
41.605042
143
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/annotations/APMetadataInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
1,698
37.613636
79
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/annotations/APMethodInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
3,854
29.84
95
java
jmh
jmh-master/jmh-generator-annprocess/src/main/java/org/openjdk/jmh/generators/annotations/APParameterInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,035
37.415094
82
java
jmh
jmh-master/jmh-generator-asm/src/main/java/org/openjdk/jmh/generators/asm/ASMClassInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
7,985
30.565217
144
java
jmh
jmh-master/jmh-generator-asm/src/main/java/org/openjdk/jmh/generators/asm/ASMFieldInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
3,740
32.401786
130
java
jmh
jmh-master/jmh-generator-asm/src/main/java/org/openjdk/jmh/generators/asm/ASMGeneratorSource.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,572
33.306667
81
java
jmh
jmh-master/jmh-generator-asm/src/main/java/org/openjdk/jmh/generators/asm/ASMMethodInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
4,884
31.566667
160
java
jmh
jmh-master/jmh-generator-asm/src/main/java/org/openjdk/jmh/generators/asm/ASMParameterInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
1,590
36
79
java
jmh
jmh-master/jmh-generator-asm/src/main/java/org/openjdk/jmh/generators/asm/AnnotationInvocationHandler.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
8,021
34.030568
115
java
jmh
jmh-master/jmh-generator-asm/src/main/java/org/openjdk/jmh/generators/asm/ClassInfoRepo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
4,149
49
126
java
jmh
jmh-master/jmh-generator-bytecode/src/main/java/org/openjdk/jmh/generators/bytecode/JmhBytecodeGenerator.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
4,969
43.375
152
java
jmh
jmh-master/jmh-generator-reflection/src/main/java/org/openjdk/jmh/generators/reflection/RFClassInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
5,268
28.435754
106
java
jmh
jmh-master/jmh-generator-reflection/src/main/java/org/openjdk/jmh/generators/reflection/RFConstructorInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
3,415
29.774775
82
java
jmh
jmh-master/jmh-generator-reflection/src/main/java/org/openjdk/jmh/generators/reflection/RFFieldInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,559
29.843373
79
java
jmh
jmh-master/jmh-generator-reflection/src/main/java/org/openjdk/jmh/generators/reflection/RFGeneratorSource.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,546
33.890411
108
java
jmh
jmh-master/jmh-generator-reflection/src/main/java/org/openjdk/jmh/generators/reflection/RFMethodInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
3,323
28.945946
79
java
jmh
jmh-master/jmh-generator-reflection/src/main/java/org/openjdk/jmh/generators/reflection/RFParameterInfo.java
/* * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
1,609
37.333333
79
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_01_HelloWorld.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,625
43.057143
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_02_BenchmarkModes.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
7,208
38.60989
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_03_States.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,024
38.566929
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_04_DefaultState.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
3,164
36.235294
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_05_StateFixtures.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,682
34.210526
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_06_FixtureLevel.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,115
37.46729
113
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_07_FixtureLevelInvocation.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,704
32.757396
112
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_08_DeadCode.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,122
35.8125
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_09_Blackholes.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,647
31.964539
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_10_ConstantFold.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,707
36.664
100
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_11_Loops.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,177
31.566038
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_12_Forking.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,432
28.209677
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_13_RunToRun.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,737
35.446154
98
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_15_Asymmetric.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,257
40.078125
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_16_CompilerControl.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,031
33.231293
110
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_17_SyncIterations.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,059
37.923077
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_18_Control.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,054
37.254717
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_20_Annotations.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
3,974
38.356436
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_21_ConsumeCPU.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,713
30.637584
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_22_FalseSharing.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
8,570
30.862454
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_23_AuxCounters.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,776
35.189394
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_24_Inheritance.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,972
36.11194
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_25_API_GA.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
12,133
35.005935
89
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_26_BatchSize.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,317
36.450704
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_27_Params.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,053
37.980769
100
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_28_BlackholeHelpers.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,194
31.879747
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_29_StatesDAG.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,809
32.77907
108
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_30_Interrupts.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
4,831
37.967742
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_31_InfraParams.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,386
36.93662
96
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_32_BulkWarmup.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,441
34.802632
98
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_33_SecurityManager.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,721
39.871429
108
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_34_SafeLooping.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
7,541
35.970588
104
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_35_Profilers.java
/* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
39,852
65.311148
187
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_36_BranchPrediction.java
/* * Copyright (c) 2015, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
6,390
40.771242
116
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_37_CacheAccess.java
/* * Copyright (c) 2015, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
6,232
42.587413
108
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_38_PerInvokeSetup.java
/* * Copyright (c) 2015, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
6,816
37.083799
106
java
jmh
jmh-master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_39_MemoryAccess.java
/* * Copyright (c) 2015, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
5,167
37
117
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/Configuration.java
package org.wsdmcup17.dataserver; import java.io.File; public class Configuration { private static final String ERROR_MSG_INCONSISTENT_CONFIGURATION = "Inconsistent configuration for production: dataset name missing."; private File revisionFile; private File metadataFile; private File outputPath; privat...
1,449
20.641791
71
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/Main.java
package org.wsdmcup17.dataserver; import java.io.File; import java.net.InetAddress; import java.net.UnknownHostException; import java.nio.charset.Charset; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.DefaultParser; import org.apache.commons....
8,706
29.128028
77
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/Multiplexer.java
package org.wsdmcup17.dataserver; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Map; import java.util.concurrent.BlockingQueue; import org.apache.commons.io.output.CloseShieldOutputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org....
3,244
28.234234
78
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/RequestHandler.java
package org.wsdmcup17.dataserver; import java.io.File; import java.io.FileOutputStream; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.net.InetAddress; import java.net.Socket; imp...
10,696
30.83631
93
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/Server.java
package org.wsdmcup17.dataserver; import java.net.ServerSocket; import java.net.Socket; import java.net.UnknownHostException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Server { private static final Logge...
1,080
22
66
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/metadata/MetadataParser.java
package org.wsdmcup17.dataserver.metadata; import java.io.InputStream; import org.wsdmcup17.dataserver.util.BinaryItem; import org.wsdmcup17.dataserver.util.ItemProcessor; import org.wsdmcup17.dataserver.util.LineParser; /** * Parses a CSV file containing Wikidata metadata and creates a * {@link BinaryItem} for ev...
887
21.769231
78
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/metadata/MetadataProvider.java
package org.wsdmcup17.dataserver.metadata; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.concurrent.BlockingQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.slf4j.MDC; import org.wsdmcup17.dataserver.util.BinaryItem; impor...
1,650
26.065574
79
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/result/Result.java
package org.wsdmcup17.dataserver.result; /** * The vandalism score for a given revision id. */ public class Result { private long revisionId; private Float score; public Result(long revisionId, Float score) { this.revisionId = revisionId; this.score = score; } public long getRevisionId() { return re...
448
15.035714
47
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/result/ResultParser.java
package org.wsdmcup17.dataserver.result; import java.io.IOException; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.csv.CSVRecord; import org.wsdmcup17.dataserver.util.NonBlockingLineBufferedInputStream; /** * Parses the scoring results provided in CSV fo...
2,232
28.773333
74
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/result/ResultPrinter.java
package org.wsdmcup17.dataserver.result; import java.io.IOException; import org.apache.commons.csv.CSVPrinter; /** * Writes a {@link Result} to a CSV file. */ public class ResultPrinter { CSVPrinter csvPrinter; public ResultPrinter(CSVPrinter csvPrinter) { this.csvPrinter = csvPrinter; } public void pri...
500
19.875
67
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/result/ResultRecorder.java
package org.wsdmcup17.dataserver.result; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.slf4j.MDC; import org.wsdmcup17.dataserver.util.SynchronizedBoundedBlockingMapQueue; /** * Thread parsing ...
3,374
27.125
73
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/revision/RevisionParser.java
package org.wsdmcup17.dataserver.revision; import java.io.InputStream; import org.wsdmcup17.dataserver.util.BinaryItem; import org.wsdmcup17.dataserver.util.ItemProcessor; import org.wsdmcup17.dataserver.util.LineParser; /** * Parses a Wikimedia XML file and creates a {@link BinaryItem} for every * revision. The i...
1,868
26.086957
74
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/revision/RevisionProvider.java
package org.wsdmcup17.dataserver.revision; import java.io.File; import java.io.InputStream; import java.util.Map; import java.util.concurrent.BlockingQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.slf4j.MDC; import org.wsdmcup17.dataserver.util.AsyncInputStream; import org.wsdmcup17.datase...
1,726
27.311475
83
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/AsyncInputStream.java
package org.wsdmcup17.dataserver.util; import java.io.IOException; import java.io.InputStream; import java.io.PipedInputStream; import java.io.PipedOutputStream; import org.apache.commons.compress.utils.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * An input stream that splits the processin...
1,562
23.046154
77
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/BinaryItem.java
package org.wsdmcup17.dataserver.util; /** * A binary item. */ public class BinaryItem { private long revisionId; private byte[] bytes; public BinaryItem(long revisionId, byte[] bytes) { this.revisionId = revisionId; this.bytes = bytes; } public long getRevisionId() { return revisionId; } public by...
359
14.652174
51
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/FilterProcessor.java
package org.wsdmcup17.dataserver.util; /** * Processes a binary item and forwards the event to the next processor if the * filtering criteria are met (the given <code>firstRevisionId</code> has been * read). */ public class FilterProcessor implements ItemProcessor { private ItemProcessor processor; private long...
743
24.655172
78
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/ItemProcessor.java
package org.wsdmcup17.dataserver.util; /** * Processes a binary item. */ public interface ItemProcessor { void processItem(BinaryItem item); }
147
15.444444
38
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/LineParser.java
package org.wsdmcup17.dataserver.util; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.nio.charset.StandardCharsets; import org.slf4j.Logger; import org.slf4j.LoggerFactory...
3,313
25.301587
79
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/NonBlockingLineBufferedInputStream.java
package org.wsdmcup17.dataserver.util; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; /** * InputStream capable of reading lines without reading ahead, thus avoiding * blocking. */ public class NonBlockingLineBufferedInputStream extends InputStream { private st...
2,145
20.897959
76
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/QueueProcessor.java
package org.wsdmcup17.dataserver.util; import java.util.concurrent.BlockingQueue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Puts binary items in a queue. */ public class QueueProcessor implements ItemProcessor { private static final Logger LOG = LoggerFactory.getLogger(QueueProcessor.class...
778
20.054054
81
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/SevenZInputStream.java
package org.wsdmcup17.dataserver.util; import java.io.File; import java.io.IOException; import java.io.InputStream; import org.apache.commons.compress.archivers.sevenz.SevenZFile; /** * A <code>SevenZInputStream</code> obtains input bytes from a compressed 7z * file in a file system. */ public class SevenZInputSt...
1,219
22.461538
76
java
wsdmcup17-data-server
wsdmcup17-data-server-master/src/main/java/org/wsdmcup17/dataserver/util/SynchronizedBoundedBlockingMapQueue.java
package org.wsdmcup17.dataserver.util; import java.util.AbstractMap; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import java.util.Map.Entry; import java.util.NoSuchElementException; import java.util.Queue; public class SynchronizedBoundedBlockingMapQueue<K, V> { private static fina...
3,887
28.233083
77
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/ConfigBase.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/ConfigBase.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
886
26.71875
72
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/CxxConfig.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/CxxConfig.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
955
29.83871
72
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/MobileConfig.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/MobileConfig.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
2,410
21.324074
77
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/PaddleLiteInitializer.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/PaddleLiteInitializer.java
package com.baidu.paddle.lite; /** * Initializer for PaddleLite. The initialization methods are called by package * classes only. Public users don't have to call them. Public users can get * PaddleLite information constants such as JNI lib name in this class. */ public class PaddleLiteInitializer { /** name o...
697
28.083333
80
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/PaddlePredictor.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/PaddlePredictor.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
6,341
30.71
105
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/Place.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/Place.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
3,808
24.563758
118
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/PowerMode.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/PowerMode.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
1,052
27.459459
74
java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/Tensor.java
Paddle-Lite-develop/lite/api/android/jni/src/com/baidu/paddle/lite/Tensor.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
5,288
28.220994
90
java
Paddle-Lite-develop/lite/api/android/jni/test/com/baidu/paddle/lite/PaddlePredictorTest.java
Paddle-Lite-develop/lite/api/android/jni/test/com/baidu/paddle/lite/PaddlePredictorTest.java
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
1,708
30.072727
82
java
Paddle-Lite-develop/lite/demo/java/android/PaddlePredictor/app/src/androidTest/java/com/baidu/paddle/lite/ExampleInstrumentedTest.java
Paddle-Lite-develop/lite/demo/java/android/PaddlePredictor/app/src/androidTest/java/com/baidu/paddle/lite/ExampleInstrumentedTest.java
package com.baidu.paddle.lite; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import java.util.ArrayList; import static org.junit.Assert.*; /** * Lite example Instrument ...
4,793
40.686957
108
java
Paddle-Lite-develop/lite/demo/java/android/PaddlePredictor/app/src/main/java/com/baidu/paddle/lite/MainActivity.java
Paddle-Lite-develop/lite/demo/java/android/PaddlePredictor/app/src/main/java/com/baidu/paddle/lite/MainActivity.java
package com.baidu.paddle.lite; import android.content.Context; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; ...
7,764
35.627358
104
java
Paddle-Lite-develop/lite/demo/java/android/PaddlePredictor/app/src/test/java/com/baidu/paddle/lite/ExampleUnitTest.java
Paddle-Lite-develop/lite/demo/java/android/PaddlePredictor/app/src/test/java/com/baidu/paddle/lite/ExampleUnitTest.java
package com.baidu.paddle.lite; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void ...
382
21.529412
81
java
AMLSim
AMLSim-master/src/main/java/amlsim/AMLSim.java
package amlsim; import amlsim.model.AbstractTransactionModel; import amlsim.model.ModelParameters; import amlsim.model.cash.CashInModel; import amlsim.model.cash.CashOutModel; import amlsim.model.normal.EmptyModel; import amlsim.model.normal.FanInTransactionModel; import amlsim.model.normal.FanOutTransactionModel; imp...
20,226
35.910584
138
java
AMLSim
AMLSim-master/src/main/java/amlsim/Account.java
package amlsim; import amlsim.model.*; import amlsim.model.cash.CashInModel; import amlsim.model.cash.CashOutModel; import sim.engine.SimState; import sim.engine.Steppable; import java.util.*; public class Account implements Steppable { protected String id; protected CashInModel cashInModel; protected CashOut...
6,483
22.157143
119
java
AMLSim
AMLSim-master/src/main/java/amlsim/AccountGroup.java
package amlsim; import amlsim.model.AbstractTransactionModel; import java.util.*; public class AccountGroup { private long accountGroupId; private List<Account> members; // Accounts involved in this alert private Account mainAccount; // Main account of this alert private AbstractTransactionMo...
2,101
21.361702
70
java