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
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/image/algorithms/generics/CannyEdgeDetect.java
package com.stac.image.algorithms.generics; import com.stac.image.utilities.*; import java.awt.image.*; public class CannyEdgeDetect { private static final Kernel SobelV; private static final Kernel SobelH; private static BufferedImage getSobelH(final BufferedImage image) { return Convolve.co...
7,274
38.538043
155
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/image/algorithms/generics/ConvertImage.java
package com.stac.image.algorithms.generics; import java.awt.color.*; import com.stac.image.utilities.*; import java.awt.image.*; import java.awt.*; public class ConvertImage { public static BufferedImage grayscale(final BufferedImage image) { return new ColorConvertOp(ColorSpace.getInstance(1003), null).f...
1,409
35.153846
95
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/image/algorithms/generics/Convolve.java
package com.stac.image.algorithms.generics; import java.awt.image.*; import java.awt.*; public class Convolve { public static final Kernel Gausian5x5; // public static final Kernel Gausian3x3; public static BufferedImage convolve(final BufferedImage image, final Kernel kernel) { // removed librar...
1,011
45
395
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/image/algorithms/generics/Direction.java
package com.stac.image.algorithms.generics; public enum Direction { UP45, DOWN45, HORIZONTAL, VERTICAL; public static Direction getDirection(final int ord) { for (final Direction direction : values()) { if (direction.ordinal() == ord) { return direction; ...
373
18.684211
57
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/image/utilities/ARGB.java
package com.stac.image.utilities; public class ARGB { public static float getA(final int argb) { return (argb >> 24 & 0xFF) / 255.0f; // return (float) Debug.makeSymbolicReal(Debug.getSymbolicIntegerValue(argb)+"f"); } public static int rawA(final int argb) { return argb >> 24 & 0x...
2,976
31.010753
188
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/image/utilities/ShowImage.java
package com.stac.image.utilities; import java.awt.image.*; import javax.swing.*; import java.awt.*; public class ShowImage extends JFrame { // public ShowImage(final String name, final BufferedImage im) { // this(name, im, true); // } // // public ShowImage(final String name, final BufferedImage i...
677
27.25
86
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/learning/ClusterController.java
package com.stac.learning; import java.nio.file.*; import com.stac.image.*; import java.util.*; import java.io.*; public class ClusterController { private final String trainingSetFilename = "trainingSet.csv"; private final String configFilename = "config.cfg"; protected VectorMap trainingMap; public f...
7,654
41.292818
196
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/learning/EuclideanVector.java
package com.stac.learning; import java.util.*; public class EuclideanVector extends com.stac.learning.Vector { EuclideanVector(final int n) { super(n); } @Override public float compareTo(final Vector other) { Objects.requireNonNull(this.attributes); Objects.requireNonNull(...
962
33.392857
116
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/learning/EuclideanVectorFactory.java
package com.stac.learning; public class EuclideanVectorFactory extends VectorFactory { @Override public Vector get(final int n) { return new EuclideanVector(n); } }
186
17.7
57
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/learning/Vector.java
package com.stac.learning; import java.util.*; import java.io.*; public abstract class Vector { final float[] attributes; Vector(final int n) { this.attributes = new float[n]; } public final int size() { return this.attributes.length; } final float[] getAttribute...
1,881
27.089552
98
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/learning/VectorFactory.java
package com.stac.learning; public abstract class VectorFactory { public abstract Vector get(final int p0); }
114
15.428571
45
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/learning/VectorMap.java
package com.stac.learning; import java.util.*; public class VectorMap extends HashMap<Vector, String> { public String get(final Vector key) { return super.get(key); } public boolean containsKey(final Vector key) { return super.containsKey(key); } public String remove(fina...
487
20.217391
54
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/com/stac/mathematics/Mathematics.java
package com.stac.mathematics; import com.stac.image.utilities.*; public class Mathematics { private static final double Z255_inv = 0.00392156862745098; private static final double Z255_e_revert = 93.80925749833975; /* * YN: change array access to switch statement to overcome problem of AFL with ...
9,569
15.303237
181
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/drivers/DriverKelinci.java
package drivers; import com.stac.image.algorithms.filters.Intensify; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class DriverKelinci { public static void main(final String[] args) { if (args.length != 1) { System.out.println(...
1,382
26.117647
127
java
badger
badger-master/evaluation/06_image_processor/kelinci_analysis/src/drivers/DriverKelinci2.java
package drivers; import com.stac.image.algorithms.filters.Intensify; import java.awt.image.BufferedImage; import java.io.FileInputStream; import java.io.IOException; import java.nio.ByteBuffer; public class DriverKelinci2 { public static void main(final String[] args) { if (args.length != 1) { System.out....
1,162
21.365385
73
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/Main.java
package com.stac; import com.stac.learning.*; import java.nio.file.*; import java.util.*; public class Main { private static Path ccdir; private static ClusterController clusterController; static void printHelp() { System.out.append("Usage: \n").append(" Arguments: \n").append(" tra...
3,460
34.680412
392
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/MapCompare.java
package com.stac; import java.util.Comparator; import java.util.Map; import java.util.Objects; class MapCompare implements Comparator<Map.Entry<String, Integer>> { @Override public int compare(final Map.Entry<String, Integer> o1, final Map.Entry<String, Integer> o2) { return Objects.requireNonNull(o2....
380
28.307692
98
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/ImageAlgorithm.java
package com.stac.image; import java.awt.image.*; public abstract class ImageAlgorithm { public boolean hasValue() { return false; } public float getValue() { throw new RuntimeException("This image algorithm does not implement values"); } public abstract void runAlgorithm(...
347
19.470588
85
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/ImageAlgorithmStore.java
package com.stac.image; import java.util.*; import com.stac.image.algorithms.detectors.*; import com.stac.image.algorithms.filters.*; public class ImageAlgorithmStore { private static Map<String, ImageAlgorithm> store; private static void addAlgorithm(final Class<? extends ImageAlgorithm> algo) { ...
1,322
32.923077
100
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/ImageProcessing.java
package com.stac.image; import java.awt.image.*; import javax.imageio.*; import java.util.*; import java.io.*; import com.stac.learning.*; import com.stac.learning.Vector; public class ImageProcessing { private static final VectorFactory VECTOR_FACTORY; private final ArrayList<ImageAlgorithm> ALGORITHMS; ...
2,000
32.915254
131
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/Detector.java
package com.stac.image.algorithms; import com.stac.image.*; import java.awt.image.*; public abstract class Detector extends ImageAlgorithm { private float value; public Detector() { this.value = 0.0f; } @Override public void runAlgorithm(final BufferedImage image) { this....
579
17.709677
57
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/Filter.java
package com.stac.image.algorithms; import com.stac.image.*; import java.awt.image.*; public abstract class Filter extends ImageAlgorithm { @Override public void runAlgorithm(final BufferedImage image) { this.filter(image); } public abstract void filter(final BufferedImage p0); }
311
19.8
57
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/detectors/BlackDetector.java
package com.stac.image.algorithms.detectors; import com.stac.image.algorithms.*; import java.awt.image.*; import com.stac.image.utilities.*; public class BlackDetector extends Detector { @Override public float detect(final BufferedImage image) { final int width = image.getWidth(); final int he...
687
26.52
69
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/detectors/BlueDetector.java
package com.stac.image.algorithms.detectors; import com.stac.image.algorithms.*; import java.awt.image.*; import com.stac.image.utilities.*; public class BlueDetector extends Detector { @Override public float detect(final BufferedImage image) { final int width = image.getWidth(); final int hei...
744
28.8
96
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/detectors/DummyDetector.java
package com.stac.image.algorithms.detectors; import com.stac.image.algorithms.*; import java.awt.image.*; //import gov.nasa.jpf.symbc.Debug; public class DummyDetector extends Detector { static int INDEX = 0; @Override public float detect(final BufferedImage image) { return 0.5f;//(float) Debug.ma...
360
20.235294
69
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/detectors/EdgingDetector.java
package com.stac.image.algorithms.detectors; import com.stac.image.algorithms.*; import java.awt.image.*; import com.stac.image.algorithms.generics.*; public class EdgingDetector extends Detector { @Override public float detect(final BufferedImage image) { final BufferedImage cannied = CannyEdgeDetect...
406
26.133333
78
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/detectors/GreenDetector.java
package com.stac.image.algorithms.detectors; import com.stac.image.algorithms.*; import java.awt.image.*; import com.stac.image.utilities.*; public class GreenDetector extends Detector { @Override public float detect(final BufferedImage image) { final int width = image.getWidth(); final int he...
744
28.8
95
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/detectors/RedDetector.java
package com.stac.image.algorithms.detectors; import com.stac.image.algorithms.*; import java.awt.image.*; import com.stac.image.utilities.*; public class RedDetector extends Detector { @Override public float detect(final BufferedImage image) { final int width = image.getWidth(); final int heig...
744
28.8
97
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/detectors/WhiteDetector.java
package com.stac.image.algorithms.detectors; import com.stac.image.algorithms.*; import java.awt.image.*; import com.stac.image.utilities.*; public class WhiteDetector extends Detector { @Override public float detect(final BufferedImage image) { final int width = image.getWidth(); final int he...
705
27.24
69
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/filters/Intensify.java
package com.stac.image.algorithms.filters; import com.stac.image.algorithms.*; import java.awt.image.*; import com.stac.image.utilities.*; import com.stac.mathematics.*; public class Intensify extends Filter { @Override public void filter(final BufferedImage image) { for (int i = 0; i < image.getWidth...
1,987
47.487805
128
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/filters/Invert.java
package com.stac.image.algorithms.filters; import com.stac.image.algorithms.*; import java.awt.image.*; public class Invert extends Filter { private boolean invertAlpha; public Invert() { this.invertAlpha = false; } public Invert(final boolean invertAlpha) { this.invertAlpha ...
1,003
27.685714
142
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/generics/CannyEdgeDetect$1.java
package com.stac.image.algorithms.generics;
45
14.333333
43
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/generics/CannyEdgeDetect.java
package com.stac.image.algorithms.generics; import com.stac.image.utilities.*; import java.awt.image.*; public class CannyEdgeDetect { private static final Kernel SobelV; private static final Kernel SobelH; private static BufferedImage getSobelH(final BufferedImage image) { return Convolve.co...
7,274
38.538043
155
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/generics/ConvertImage.java
package com.stac.image.algorithms.generics; import java.awt.color.*; import com.stac.image.utilities.*; import java.awt.image.*; import java.awt.*; public class ConvertImage { public static BufferedImage grayscale(final BufferedImage image) { return new ColorConvertOp(ColorSpace.getInstance(1003), null).f...
1,409
35.153846
95
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/generics/Convolve.java
package com.stac.image.algorithms.generics; import java.awt.image.*; import java.awt.*; public class Convolve { public static final Kernel Gausian5x5; // public static final Kernel Gausian3x3; public static BufferedImage convolve(final BufferedImage image, final Kernel kernel) { // removed librar...
1,011
45
395
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/algorithms/generics/Direction.java
package com.stac.image.algorithms.generics; public enum Direction { UP45, DOWN45, HORIZONTAL, VERTICAL; public static Direction getDirection(final int ord) { for (final Direction direction : values()) { if (direction.ordinal() == ord) { return direction; ...
373
18.684211
57
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/utilities/ARGB.java
package com.stac.image.utilities; public class ARGB { public static float getA(final int argb) { return (argb >> 24 & 0xFF) / 255.0f; } public static int rawA(final int argb) { return argb >> 24 & 0xFF; } public static float getR(final int argb) { return (argb >> 16 & 0xF...
2,522
28.682353
91
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/image/utilities/ShowImage.java
package com.stac.image.utilities; import java.awt.image.*; import javax.swing.*; import java.awt.*; public class ShowImage extends JFrame { // public ShowImage(final String name, final BufferedImage im) { // this(name, im, true); // } // // public ShowImage(final String name, final BufferedImage i...
677
27.25
86
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/learning/ClusterController.java
package com.stac.learning; import java.nio.file.*; import com.stac.image.*; import java.util.*; import java.io.*; public class ClusterController { private final String trainingSetFilename = "trainingSet.csv"; private final String configFilename = "config.cfg"; protected VectorMap trainingMap; public f...
7,654
41.292818
196
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/learning/EuclideanVector.java
package com.stac.learning; import java.util.*; public class EuclideanVector extends com.stac.learning.Vector { EuclideanVector(final int n) { super(n); } @Override public float compareTo(final Vector other) { Objects.requireNonNull(this.attributes); Objects.requireNonNull(...
962
33.392857
116
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/learning/EuclideanVectorFactory.java
package com.stac.learning; public class EuclideanVectorFactory extends VectorFactory { @Override public Vector get(final int n) { return new EuclideanVector(n); } }
186
17.7
57
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/learning/Vector.java
package com.stac.learning; import java.util.*; import java.io.*; public abstract class Vector { final float[] attributes; Vector(final int n) { this.attributes = new float[n]; } public final int size() { return this.attributes.length; } final float[] getAttribute...
1,881
27.089552
98
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/learning/VectorFactory.java
package com.stac.learning; public abstract class VectorFactory { public abstract Vector get(final int p0); }
114
15.428571
45
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/learning/VectorMap.java
package com.stac.learning; import java.util.*; public class VectorMap extends HashMap<Vector, String> { public String get(final Vector key) { return super.get(key); } public boolean containsKey(final Vector key) { return super.containsKey(key); } public String remove(fina...
487
20.217391
54
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/com/stac/mathematics/Mathematics.java
package com.stac.mathematics; import com.stac.image.utilities.*; import gov.nasa.jpf.symbc.Debug; public class Mathematics { private static final double Z255_inv = 0.00392156862745098; private static final double Z255_e_revert = 93.80925749833975; /* * YN: change array access to switch statement to...
18,147
20.375736
101
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/drivers/ByteImageDriver.java
package drivers; import java.awt.image.BufferedImage; import java.io.FileInputStream; import java.io.IOException; import java.nio.ByteBuffer; import com.stac.image.algorithms.filters.Intensify; import gov.nasa.jpf.symbc.Debug; public class ByteImageDriver { public static void main(final String[] args) { ...
2,335
29.337662
97
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/drivers/FullImageDriver.java
package drivers; import java.awt.image.BufferedImage; import java.io.FileInputStream; import java.io.IOException; import java.nio.ByteBuffer; import com.stac.image.algorithms.filters.Intensify; import gov.nasa.jpf.symbc.Debug; public class FullImageDriver { public static void main(final String[] args) { ...
2,547
31.666667
97
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/drivers/MainExp.java
package drivers; import com.stac.mathematics.Mathematics; import gov.nasa.jpf.symbc.Debug; public class MainExp { public static int N; public static void main(final String[] args) { N = Integer.parseInt(args[0]); // check complexity of Mathematics.exp() int x = Debug....
384
19.263158
50
java
badger
badger-master/evaluation/06_image_processor/spf_analysis/src/drivers/MainIntensify.java
package drivers; import com.stac.image.algorithms.filters.Intensify; import java.awt.image.BufferedImage; public class MainIntensify { public static int N; public static void main(final String[] args) { N = Integer.parseInt(args[0]); int width = N; int height = N; // The model...
554
22.125
89
java
badger
badger-master/evaluation/07_smart_contract/kelinci_analysis/src/GovernMental.java
import java.io.FileInputStream; import java.io.IOException; import java.lang.Math; import java.nio.ByteBuffer; import edu.cmu.sv.kelinci.Kelinci; public class GovernMental { // memory[0] is lastTimeOfNewCredit // memory[1] is lastCreditorPayedOut (assumed <= 1000) // memory[2] is profitFromCrash // me...
5,795
34.777778
116
java
badger
badger-master/evaluation/07_smart_contract/spf_analysis/src/GovernMental.java
import java.io.FileInputStream; import java.io.IOException; import java.lang.Math; import java.nio.ByteBuffer; import gov.nasa.jpf.symbc.Debug; import gov.nasa.jpf.symbc.Observations; public class GovernMental { // memory[0] is lastTimeOfNewCredit // memory[1] is lastCreditorPayedOut (assumed <= 1000) // ...
6,821
36.9
116
java
rocksdb
rocksdb-master/java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). /** * Copyright (C) 2011 the original author or authors. ...
59,027
34.688029
100
java
rocksdb
rocksdb-master/java/jmh/src/main/java/org/rocksdb/jmh/ComparatorBenchmarks.java
/** * Copyright (c) 2011-present, Facebook, Inc. All rights reserved. * This source code is licensed under both the GPLv2 (found in the * COPYING file in the root directory) and Apache 2.0 License * (found in the LICENSE.Apache file in the root directory). */ package org.rocksdb.jmh; import org.openjdk.jmh.an...
4,743
32.885714
97
java
rocksdb
rocksdb-master/java/jmh/src/main/java/org/rocksdb/jmh/GetBenchmarks.java
/** * Copyright (c) 2011-present, Facebook, Inc. All rights reserved. * This source code is licensed under both the GPLv2 (found in the * COPYING file in the root directory) and Apache 2.0 License * (found in the LICENSE.Apache file in the root directory). */ package org.rocksdb.jmh; import org.openjdk.jmh.an...
3,688
25.35
96
java
rocksdb
rocksdb-master/java/jmh/src/main/java/org/rocksdb/jmh/MultiGetBenchmarks.java
/** * Copyright (c) 2011-present, Facebook, Inc. All rights reserved. * This source code is licensed under both the GPLv2 (found in the * COPYING file in the root directory) and Apache 2.0 License * (found in the LICENSE.Apache file in the root directory). */ package org.rocksdb.jmh; import org.openjdk.jmh.an...
4,210
25.484277
96
java
rocksdb
rocksdb-master/java/jmh/src/main/java/org/rocksdb/jmh/PutBenchmarks.java
/** * Copyright (c) 2011-present, Facebook, Inc. All rights reserved. * This source code is licensed under both the GPLv2 (found in the * COPYING file in the root directory) and Apache 2.0 License * (found in the LICENSE.Apache file in the root directory). */ package org.rocksdb.jmh; import org.openjdk.jmh.an...
3,146
26.849558
96
java
rocksdb
rocksdb-master/java/jmh/src/main/java/org/rocksdb/util/FileUtils.java
/** * Copyright (c) 2011-present, Facebook, Inc. All rights reserved. * This source code is licensed under both the GPLv2 (found in the * COPYING file in the root directory) and Apache 2.0 License * (found in the LICENSE.Apache file in the root directory). */ package org.rocksdb.util; import java.io.IOExcepti...
1,995
32.266667
111
java
rocksdb
rocksdb-master/java/jmh/src/main/java/org/rocksdb/util/KVUtils.java
/** * Copyright (c) 2011-present, Facebook, Inc. All rights reserved. * This source code is licensed under both the GPLv2 (found in the * COPYING file in the root directory) and Apache 2.0 License * (found in the LICENSE.Apache file in the root directory). */ package org.rocksdb.util; import java.util.ArrayLi...
1,370
22.237288
68
java
rocksdb
rocksdb-master/java/samples/src/main/java/OptimisticTransactionSample.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). import org.rocksdb.*; import static java.nio.charset.Stan...
6,419
33.702703
85
java
rocksdb
rocksdb-master/java/samples/src/main/java/RocksDBColumnFamilySample.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). import org.rocksdb.*; import java.util.ArrayList; import ...
2,687
33.025316
98
java
rocksdb
rocksdb-master/java/samples/src/main/java/RocksDBSample.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). import java.lang.IllegalArgumentException; import java.uti...
11,055
36.225589
80
java
rocksdb
rocksdb-master/java/samples/src/main/java/TransactionSample.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). import org.rocksdb.*; import static java.nio.charset.Stan...
6,270
33.081522
78
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractCompactionFilter.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * A CompactionFilter allows an a...
1,796
28.95
82
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractCompactionFilterFactory.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Each compaction will create a...
2,547
31.666667
92
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractComparator.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.nio.ByteBuffer; /** * ...
3,906
30.256
78
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractComparatorJniBridge.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.nio.ByteBuffer; /** * ...
4,146
31.912698
89
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractEventListener.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import static org.rocksdb.AbstractEv...
10,167
29.352239
100
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractImmutableNativeReference.java
// Copyright (c) 2016, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.concurrent.atomic.AtomicBoo...
2,142
30.514706
78
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractMutableOptions.java
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import java.util.*; public abstract class AbstractMutableOptions { protected static final String KEY_VALUE_PAIR_SEPARATOR = ";"; protected static final char KEY_VALUE_SEPARATOR = '='; static final String INT_ARRAY_INT...
7,880
29.66537
83
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractNativeReference.java
// Copyright (c) 2016, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * AbstractNativeReference is the base-c...
2,685
33.883117
129
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractRocksIterator.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.nio.ByteBuffer; /** * ...
4,090
29.529851
100
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractSlice.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Slices are used by RocksDB to...
5,149
25.822917
75
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractTableFilter.java
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** * Base class for Table Filters. */ public abstract class AbstractTableFilter extends RocksCallbackObject implements TableFilter { protected AbstractTableFilter() { super(); } @Override protected long i...
464
21.142857
73
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractTraceWriter.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Base class for TraceWriters. ...
2,266
30.929577
80
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractTransactionNotifier.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Provides notification to the ...
1,625
28.563636
73
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractWalFilter.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Base class for WAL Filters. ...
1,829
35.6
85
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AbstractWriteBatch.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.nio.ByteBuffer; public ...
7,140
31.907834
96
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AccessHint.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * File access pattern once a co...
1,345
23.925926
79
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.List; /** * Advan...
17,518
36.594421
81
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Advanced Column Family Option...
15,054
31.376344
82
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/BackgroundErrorReason.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; public enum BackgroundErrorReason { ...
1,241
25.425532
94
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/BackupEngine.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.List; /** * Backup...
10,266
38.488462
94
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/BackupInfo.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Instances of this class descri...
1,694
21.012987
94
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/BackupableDBOptions.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.io.File; /** * <p>Back...
15,135
31.480687
90
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * The config for plain table sst...
34,947
32.063387
102
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/BloomFilter.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Bloom filter policy that uses...
2,679
32.5
80
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/BuiltinComparator.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Builtin RocksDB comparators ...
606
27.904762
76
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/Cache.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; public abstract class Cache extends...
1,009
23.634146
67
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/CassandraCompactionFilter.java
// Copyright (c) 2017-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Just a Java wrapper around C...
780
38.05
94
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/CassandraValueMergeOperator.java
// Copyright (c) 2017-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * CassandraValueMergeOperator ...
991
37.153846
89
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/Checkpoint.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Provides Checkpoint functiona...
2,219
32.134328
75
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/ChecksumType.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Checksum types used in conjun...
841
18.136364
67
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/ClockCache.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * Similar to {@link LRUCache}, ...
2,388
38.816667
80
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.Arrays; /** * <p>...
2,829
24.727273
106
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.Arrays; import java...
5,266
33.651316
100
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/ColumnFamilyMetaData.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.Arrays; import java...
1,530
20.56338
74
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.nio.file.Paths; import j...
36,954
32.232914
159
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.Collection; import ...
18,547
33.669159
99
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/CompactRangeOptions.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; /** * CompactRangeOptions is used b...
8,290
33.836134
118
java
rocksdb
rocksdb-master/java/src/main/java/org/rocksdb/CompactionJobInfo.java
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). package org.rocksdb; import java.util.Arrays; import java...
4,207
24.975309
76
java