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 |
|---|---|---|---|---|---|---|
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/Mat.java | package mmdeploy;
/** @description: Mat. */
public class Mat {
/** Shape. */
public int[] shape;
/** Pixel format. */
public int format;
/** Data type. */
public int type;
/** Mat data. */
public byte[] data;
/** Initialize a new instance of the Mat class.
* @param height:... | 762 | 21.441176 | 64 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/PixelFormat.java | package mmdeploy;
/** @description: PixelFormat. */
public enum PixelFormat {
BGR(0),
RGB(1),
GRAYSCALE(2),
NV12(3),
NV21(4),
BGRA(5);
final int value;
/** Initialize a new instance of the PixelFormat class.
* @param value: the value.
*/
PixelFormat(int value) {
th... | 346 | 16.35 | 59 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/PointF.java | package mmdeploy;
/** @description: the PointF class. */
public class PointF {
/** x coordinate. */
public float x;
/** y coordinate. */
public float y;
/** Initialize a new instance of the PointF class.
* @param x: x coordinate.
* @param y: y coordinate.
*/
public PointF(float... | 383 | 17.285714 | 54 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/PoseDetector.java | package mmdeploy;
/** @description: the Java API class of PoseDetector. */
public class PoseDetector {
static {
System.loadLibrary("mmdeploy_java");
}
private final long handle;
/** @description: Single pose estimation result of a picture. */
public static class Result {
/** Poin... | 2,711 | 29.47191 | 92 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/Rect.java | package mmdeploy;
/** @description: the Rect class. */
public class Rect {
/** left coordinate. */
public float left;
/** top coordinate. */
public float top;
/** right coordinate. */
public float right;
/** bottom coordinate. */
public float bottom;
/** Initialize a new instan... | 685 | 21.129032 | 67 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/Restorer.java | package mmdeploy;
/** @description: the Java API class of Restorer. */
public class Restorer {
static {
System.loadLibrary("mmdeploy_java");
}
private final long handle;
/** @description: Single image restore result of a picture. */
public static class Result {
/** Result mat. */... | 2,501 | 28.785714 | 89 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/RotatedDetector.java | package mmdeploy;
/** @description: the Java API class of RotatedDetector. */
public class RotatedDetector {
static {
System.loadLibrary("mmdeploy_java");
}
private final long handle;
/** @description: Single rotated detection result of a picture. */
public static class Result {
... | 3,063 | 30.265306 | 95 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/Segmentor.java | package mmdeploy;
public class Segmentor {
static {
System.loadLibrary("mmdeploy_java");
}
private final long handle;
/** @description: Single image segmentation result of a picture. */
public static class Result {
/** Height. */
public int height;
/** Width. */
... | 3,059 | 28.708738 | 89 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/TextDetector.java | package mmdeploy;
/** @description: the Java API class of TextDetector. */
public class TextDetector {
static {
System.loadLibrary("mmdeploy_java");
}
private final long handle;
/** @description: Single text detection result of a picture. */
public static class Result {
/** Bbox.... | 2,862 | 29.784946 | 92 | java |
mmdeploy | mmdeploy-master/csrc/mmdeploy/apis/java/mmdeploy/TextRecognizer.java | package mmdeploy;
/** @description: the Java API class of TextRecognizer. */
public class TextRecognizer {
static {
System.loadLibrary("mmdeploy_java");
}
private final long handle;
/** @description: Single text recognition result of a picture. */
public static class Result {
/**... | 3,220 | 30.578431 | 111 | java |
mmdeploy | mmdeploy-master/demo/java/ImageClassification.java | import mmdeploy.Classifier;
import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.io.File;
import java.io.IOException;
/** @description: this is a class for ImageClassification ja... | 1,707 | 30.054545 | 98 | java |
mmdeploy | mmdeploy-master/demo/java/ImageRestorer.java | import mmdeploy.Restorer;
import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.io.File;
import java.io.IOException;
/** @description: this is a class for ImageRestorer java demo.... | 1,674 | 28.910714 | 113 | java |
mmdeploy | mmdeploy-master/demo/java/ImageSegmentation.java | import mmdeploy.Segmentor;
import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.io.File;
import java.io.IOException;
/** @description: this is a class for ImageSegmentation java ... | 1,685 | 29.107143 | 96 | java |
mmdeploy | mmdeploy-master/demo/java/ObjectDetection.java | import mmdeploy.Detector;
import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.awt.Graphics;
import java.io.File;
import java.io.IOException;
/** @descrip... | 2,890 | 36.545455 | 176 | java |
mmdeploy | mmdeploy-master/demo/java/Ocr.java | import mmdeploy.TextDetector;
import mmdeploy.TextRecognizer;
import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.io.File;
import java.io.IOException;
/** @description: this is ... | 2,613 | 34.324324 | 108 | java |
mmdeploy | mmdeploy-master/demo/java/PoseDetection.java | import mmdeploy.PoseDetector;
import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.io.File;
import java.io.IOException;
/** @description: this is a class for PoseDetection java d... | 1,820 | 30.396552 | 115 | java |
mmdeploy | mmdeploy-master/demo/java/RotatedDetection.java | import mmdeploy.RotatedDetector;
import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.awt.Graphics;
import java.io.File;
import java.io.IOException;
import... | 3,359 | 39 | 162 | java |
mmdeploy | mmdeploy-master/demo/java/Utils.java | import mmdeploy.PixelFormat;
import mmdeploy.DataType;
import mmdeploy.Mat;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.io.File;
import java.io.IOException;
import java.lang.*;
/** @description: this is a util class for java demo. */
public clas... | 1,150 | 31.885714 | 95 | java |
badger | badger-master/badger/src/examples/InsertionSortFuzz.java | /**
* Copyright (c) 2011, Regents of the University of California
* All rights reserved.
* <p/>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* <p/>
* 1. Redistributions of source code must retain the above co... | 2,969 | 33.137931 | 70 | java |
badger | badger-master/badger/src/examples/InsertionSortSym.java | /**
* Copyright (c) 2011, Regents of the University of California
* All rights reserved.
* <p/>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* <p/>
* 1. Redistributions of source code must retain the above co... | 3,244 | 32.802083 | 102 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/BranchCountState.java | /*
* MIT License
*
* Copyright (c) 2017 The ISSTAC Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | 5,541 | 32.792683 | 107 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/CoverageAnalyzer.java | package edu.cmu.sv.badger.analysis;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Set;
import java.util.Map.Entry;
import edu.cmu.sv.badger.trie.Trie;
import edu.cmu.sv.badger.trie.TrieNode;
import gov.nasa.jpf.vm.Ins... | 5,138 | 32.37013 | 120 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/CoverageExplorationHeuristic.java | package edu.cmu.sv.badger.analysis;
import edu.cmu.sv.badger.listener.IBehavior;
import edu.cmu.sv.badger.trie.TrieNode;
/**
* Defines all exploration heuristics for the coverage based analysis in Badger. Each heuristic defines how the nodes
* are ordered in the priority queue.
*
* @author Yannic Noller <nollery... | 4,163 | 36.178571 | 123 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/ExplorationHeuristic.java | package edu.cmu.sv.badger.analysis;
import java.util.Comparator;
import edu.cmu.sv.badger.listener.IBehavior;
import edu.cmu.sv.badger.trie.TrieNode;
/**
* Exploration heuristic for symbolic execution search.
*
* @author Yannic Noller <nolleryc@gmail.com> - YN
*
*/
public abstract class ExplorationHeuristic im... | 765 | 20.885714 | 78 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/InstructionCountState.java | /*
* MIT License
*
* Copyright (c) 2017 The ISSTAC Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | 3,470 | 32.699029 | 111 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/State.java | /*
* MIT License
*
* Copyright (c) 2017 The ISSTAC Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | 1,629 | 34.434783 | 103 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/StateBuilder.java | /*
* MIT License
*
* Copyright (c) 2017 The ISSTAC Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | 2,217 | 40.074074 | 135 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/StateBuilderAdapter.java | /*
* MIT License
*
* Copyright (c) 2017 The ISSTAC Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | 2,235 | 35.064516 | 110 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/StateBuilderFactory.java | package edu.cmu.sv.badger.analysis;
/**
* @author Yannic Noller <nolleryc@gmail.com> - YN
*/
public abstract class StateBuilderFactory {
public abstract StateBuilder createStateBuilder();
}
| 197 | 21 | 54 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/TrieAnalyzer.java | package edu.cmu.sv.badger.analysis;
import java.util.Set;
import edu.cmu.sv.badger.trie.Trie;
import edu.cmu.sv.badger.trie.TrieNode;
import gov.nasa.jpf.vm.Instruction;
/**
* Abstract class to provide a common interface for the analysis of trie data structures.
*
* @author nolleryc
*
*/
public abstract class ... | 2,273 | 26.071429 | 120 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/WCAAnalyzer.java | package edu.cmu.sv.badger.analysis;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Set;
import java.util.Map.Entry;
import edu.cmu.sv.badger.trie.Trie;
import edu.cmu.sv.badger.trie.TrieNode;
import gov.nasa.jpf.vm.Ins... | 6,244 | 32.940217 | 120 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/analysis/WCAExplorationHeuristic.java | package edu.cmu.sv.badger.analysis;
import edu.cmu.sv.badger.listener.IBehavior;
import edu.cmu.sv.badger.trie.TrieNode;
/**
* Defines all exploration heuristics for the worst-case analysis in Badger. Each heuristic defines how the nodes are
* ordered in the priority queue.
*
* @author Yannic Noller <nolleryc@gm... | 4,819 | 36.952756 | 117 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/app/BadgerInput.java | package edu.cmu.sv.badger.app;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Properties;
import org.apache.commons.lang3.math.NumberUtils;
imp... | 20,346 | 50.123116 | 141 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/app/BadgerInputKeys.java | package edu.cmu.sv.badger.app;
import java.util.ArrayList;
import java.util.List;
/**
* Includes all parameters that can/should be included in the configuration property file for Badger.
*
* @author Yannic Noller <nolleryc@gmail.com> - YN
*/
public enum BadgerInputKeys {
/* ID ... | 4,028 | 43.274725 | 101 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/app/BadgerRunner.java | package edu.cmu.sv.badger.app;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import edu.cmu.sv.badger.util.Statistics;
/**
* Main class to start Badger execution.
*
* @author Yannic Noller <nolleryc@gmail.com> - YN
*/
public class BadgerRunner {
public static voi... | 1,323 | 25.48 | 104 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/app/SymExe.java | package edu.cmu.sv.badger.app;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.atomic.AtomicInteger;
import edu.cmu.sv.badger... | 22,049 | 42.405512 | 134 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/ByteImageProcessorIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathCondition;
/**
* @author Ya... | 2,684 | 32.148148 | 119 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/ByteTextIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathCondition;
public class ByteTextIOUtils extends IOUtils ... | 1,992 | 28.746269 | 108 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/CharArrayIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicIntege... | 5,730 | 31.196629 | 159 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/CharArrayIOUtilsEngagement.java | package edu.cmu.sv.badger.io;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicIntege... | 3,661 | 30.568966 | 159 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/DynamicCharArrayIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.Observations;
import gov.nasa.jpf.symbc.n... | 2,330 | 28.1375 | 103 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/DynamicIntArrayIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.Observations;
import gov.nasa.jpf.symbc.numeric.PathCondition;
publi... | 2,055 | 28.371429 | 108 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/FullIntArrayIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathConditio... | 3,859 | 31.436975 | 162 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/IOUtils.java | package edu.cmu.sv.badger.io;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathCondition;
/**
* @author Yannic Noller <nolleryc@gmail.com> - YN
*/
public abstract class IOUtils {
/**
* Preprocesses the input if necessary.
*
* @param inputFiles
* @return k... | 554 | 22.125 | 111 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/ImageByteDoubleIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathCondition;
public class ImageByteDoubleIOUtils extends I... | 1,995 | 27.927536 | 108 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/ImageDoubleDoubleIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathCondition;
public class Imag... | 2,206 | 28.824324 | 108 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/ImageProcessorIOUtils.java | package edu.cmu.sv.badger.io;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.Ato... | 4,288 | 33.312 | 136 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/IntArrayIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathCondition;
/*! problems with negative integers*/
public ... | 1,708 | 27.016393 | 108 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/io/MultipleIntArrayIOUtils.java | package edu.cmu.sv.badger.io;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import gov.nasa.jpf.symbc.numeric.PathCondition;
public class MultipleIntArrayIOUtils extends ... | 1,826 | 27.107692 | 108 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/listener/ConcreteInput2TrieListener.java | package edu.cmu.sv.badger.listener;
import edu.cmu.sv.badger.analysis.StateBuilder;
import edu.cmu.sv.badger.analysis.WCAAnalyzer;
import edu.cmu.sv.badger.analysis.WCAAnalyzer.CostStrategy;
import edu.cmu.sv.badger.trie.Trie;
import edu.cmu.sv.badger.trie.TrieNode;
import edu.cmu.sv.badger.trie.TrieNodeType;
import g... | 9,574 | 36.84585 | 119 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/listener/IBehavior.java | package edu.cmu.sv.badger.listener;
/**
* Defines methods that are necessary to decide whether an input, i.e. the execution driven by this input, exposed a new
* behavior, for which for example the symbolic execution part of Badger should export the input to the fuzzer.
*
* @author Yannic Noller <nolleryc@gmail.c... | 455 | 25.823529 | 120 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/listener/MetricListener.java | package edu.cmu.sv.badger.listener;
import edu.cmu.sv.badger.analysis.StateBuilder;
import gov.nasa.jpf.Config;
import gov.nasa.jpf.JPF;
import gov.nasa.jpf.PropertyListenerAdapter;
import gov.nasa.jpf.vm.Instruction;
import gov.nasa.jpf.vm.ThreadInfo;
import gov.nasa.jpf.vm.VM;
public class MetricListener extends Pr... | 1,072 | 31.515152 | 109 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/listener/SolverCallListener.java | package edu.cmu.sv.badger.listener;
import gov.nasa.jpf.Config;
import gov.nasa.jpf.JPF;
import gov.nasa.jpf.ListenerAdapter;
import gov.nasa.jpf.vm.ChoiceGenerator;
import gov.nasa.jpf.vm.ThreadChoiceGenerator;
import gov.nasa.jpf.search.Search;
import gov.nasa.jpf.symbc.numeric.PCChoiceGenerator;
import gov.nasa.jpf... | 1,535 | 22.272727 | 82 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/listener/SymCreteCostListener.java | package edu.cmu.sv.badger.listener;
import java.util.Map;
import gov.nasa.jpf.Config;
import gov.nasa.jpf.JPF;
import gov.nasa.jpf.ListenerAdapter;
import gov.nasa.jpf.search.Search;
import gov.nasa.jpf.symbc.Observations;
import gov.nasa.jpf.symbc.numeric.PCChoiceGenerator;
import gov.nasa.jpf.symbc.numeric.PathCond... | 2,935 | 28.36 | 99 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/listener/TrieGuidanceListener.java | package edu.cmu.sv.badger.listener;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import edu.cmu.sv.badger.trie.Trie;
import edu.cmu.sv.badger.trie.TrieNode;
import edu.cmu.sv.badger.trie.TrieNodeType;
import gov.nasa.jpf.Config;
import gov.nasa.jpf.JPF;
import gov.nasa.jpf.ListenerAdapter;
import ... | 11,112 | 38.689286 | 120 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/trie/Trie.java | package edu.cmu.sv.badger.trie;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.atomic.Ato... | 3,680 | 25.292857 | 95 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/trie/TrieNode.java | package edu.cmu.sv.badger.trie;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import edu.cmu.sv.badger.util.BytecodeUtils;
import gov.nasa.jpf.symbc.numeric.PathCondition;
import gov.nasa.jpf.vm.Instruction;
/**
* modified by Yannic N... | 9,082 | 25.636364 | 131 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/trie/TrieNodeType.java | package edu.cmu.sv.badger.trie;
/**
* Help class for different trie node types
*
* @author Guowei Yang (guoweiyang@utexas.edu)
*
*/
public enum TrieNodeType {
REGULAR_NODE, // regular node
UNSAT_NODE, // unsatisfiable node
FRONTIER_NODE, // frontier node
LEAF_NODE; // end of exection trace;
}
| 316 | 14.85 | 46 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/trie/TriePrintToConsole.java | package edu.cmu.sv.badger.trie;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
/**
* Help class to print a trie to the console
*
* @author Guowei Yang (guoweiyang@utexas.edu)
*
*/
public class TriePrintToConsole {
Trie trie;
public void loadTrie(){
// de-serialize the stored trie from... | 1,387 | 21.031746 | 66 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/trie/TriePrintToDot.java | package edu.cmu.sv.badger.trie;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;
/**
* Help class to print a trie to a ... | 10,267 | 53.328042 | 114 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/util/BytecodeUtils.java | package edu.cmu.sv.badger.util;
import org.objectweb.asm.Opcodes;
import gov.nasa.jpf.symbc.bytecode.AALOAD;
import gov.nasa.jpf.symbc.bytecode.AASTORE;
import gov.nasa.jpf.symbc.bytecode.BALOAD;
import gov.nasa.jpf.symbc.bytecode.BASTORE;
import gov.nasa.jpf.symbc.bytecode.CALOAD;
import gov.nasa.jpf.symbc.bytecode.... | 10,225 | 35.134276 | 113 | java |
badger | badger-master/badger/src/main/edu/cmu/sv/badger/util/Statistics.java | package edu.cmu.sv.badger.util;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import edu.cmu.sv.badger.app.BadgerInput;
/**
* Utility to write statistic files.
*
* @author Yannic Noller <nolleryc@gmail.com> - YN
... | 5,574 | 40.296296 | 132 | java |
badger | badger-master/evaluation/01_insertionsort/kelinci_analysis/src/InsertionSort.java | /**
* Copyright (c) 2011, Regents of the University of California
* All rights reserved.
* <p/>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* <p/>
* 1. Redistributions of source code must retain the above co... | 2,953 | 32.191011 | 79 | java |
badger | badger-master/evaluation/01_insertionsort/spf_analysis/src/InsertionSort.java |
/**
* Copyright (c) 2011, Regents of the University of California
* All rights reserved.
* <p/>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* <p/>
* 1. Redistributions of source code must retain the above c... | 3,549 | 34.148515 | 79 | java |
badger | badger-master/evaluation/02_quicksort/kelinci_analysis/src/Arrays.java | /*
* @(#)Arrays.java 1.59 04/04/01
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/**
* This class contains various methods for manipulating arrays (such as
* sorting and searching). This class also contains a static factory
*... | 7,254 | 30.406926 | 82 | java |
badger | badger-master/evaluation/02_quicksort/kelinci_analysis/src/QuickSortJDK15.java | import java.io.FileInputStream;
import java.io.IOException;
/**
* @author Rody Kersten
**/
public class QuickSortJDK15 {
public static void main(String[] args) {
if (args.length != 1) {
System.out.println("Expects file name as parameter");
return;
}
int N = 64;
int a[] = new int[N];
try (File... | 745 | 18.631579 | 71 | java |
badger | badger-master/evaluation/02_quicksort/spf_analysis/src/Arrays.java | /*
* @(#)Arrays.java 1.59 04/04/01
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/**
* This class contains various methods for manipulating arrays (such as sorting and searching). This class also contains
* a static factory tha... | 7,717 | 34.56682 | 120 | java |
badger | badger-master/evaluation/02_quicksort/spf_analysis/src/QuickSortJDK15.java | import java.io.FileInputStream;
import java.io.IOException;
import gov.nasa.jpf.symbc.Debug;
/**
* @author Rody Kersten
* Adapted for symbolic analysis by Yannic Noller <nolleryc@gmail.com> - YN
**/
public class QuickSortJDK15 {
public static void main(String[] args) {
int N = 64;
int a[] = ne... | 1,360 | 26.77551 | 75 | java |
badger | badger-master/evaluation/03_regex/kelinci_analysis/src/Regex.java | import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import regexjdk8.*;
/**
* Loads a file and a regex and matches the regex to the file.
*
* @author Rody Kersten.
*/
publ... | 4,868 | 31.677852 | 71 | java |
badger | badger-master/evaluation/03_regex/kelinci_analysis/src/regexjdk8/ASCII.java | /*
* Copyright (c) 1999, 2000, 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 ... | 9,719 | 34.345455 | 79 | java |
badger | badger-master/evaluation/03_regex/kelinci_analysis/src/regexjdk8/MatchResult.java | /*
* Copyright (c) 2003, 2013, 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,364 | 37.968254 | 125 | java |
badger | badger-master/evaluation/03_regex/kelinci_analysis/src/regexjdk8/Matcher.java | /*
* Copyright (c) 1999, 2013, 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 ... | 51,004 | 37.640152 | 125 | java |
badger | badger-master/evaluation/03_regex/kelinci_analysis/src/regexjdk8/Pattern.java | /*
* Copyright (c) 1999, 2013, 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 ... | 235,646 | 35.958438 | 128 | java |
badger | badger-master/evaluation/03_regex/kelinci_analysis/src/regexjdk8/PatternSyntaxException.java | /*
* Copyright (c) 1999, 2008, 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,671 | 28.376 | 79 | java |
badger | badger-master/evaluation/03_regex/kelinci_analysis/src/regexjdk8/UnicodeProp.java | /*
* Copyright (c) 2011, 2013, 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,717 | 30.246964 | 94 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/Regex.java | import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import gov.nasa.jpf.symbc.Debug;
import regexjdk8.Pattern;
import regexjdk8.PatternSyntaxException;
/**
* Loads a file and a regex and matches the regex to the file.
*
* @autho... | 4,707 | 32.870504 | 105 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/RegexConcrete.java | import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import regexjdk8.*;
/**
* Loads a file and a regex and matches the regex to the file.
*
* @author Rody Kersten.
*/
publ... | 3,008 | 30.34375 | 71 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/regexjdk8/ASCII.java | /*
* Copyright (c) 1999, 2000, 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 ... | 9,719 | 34.345455 | 79 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/regexjdk8/MatchResult.java | /*
* Copyright (c) 2003, 2013, 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,364 | 37.968254 | 125 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/regexjdk8/Matcher.java | /*
* Copyright (c) 1999, 2013, 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 ... | 51,004 | 37.640152 | 125 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/regexjdk8/Pattern.java | /*
* Copyright (c) 1999, 2013, 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 ... | 235,654 | 35.959693 | 128 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/regexjdk8/PatternSyntaxException.java | /*
* Copyright (c) 1999, 2008, 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,671 | 28.376 | 79 | java |
badger | badger-master/evaluation/03_regex/spf_analysis/src/regexjdk8/UnicodeProp.java | /*
* Copyright (c) 2011, 2013, 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,717 | 30.246964 | 94 | java |
badger | badger-master/evaluation/04_hashtable/kelinci_analysis/src/HashTable.java | import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.io.FileInputStream;
import java.io.IOException;
public class HashTable implements Map<String, String>
{
private Entry[] mTable;
publi... | 28,591 | 25.87218 | 119 | java |
badger | badger-master/evaluation/04_hashtable/spf_analysis/src/HashTable.java | import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import gov.nasa.jpf.symbc.Debug;
import java.io.FileInputStream;
import java.io.IOException;
public class HashTable implements Map<String, String> {
... | 30,314 | 27.121521 | 119 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/driver/Driver.java | package driver;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.ByteArrayOutputStream;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;
public class Driver {
public static void main(String args[]) {
if (args.length != 1) {
... | 1,466 | 23.04918 | 93 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/driver/DriverDecompress.java | package driver;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
import org.apache.commons.io.input.BoundedInputStream;
public class DriverDecompress {
public static void main(String args[]) {
... | 1,001 | 23.439024 | 80 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ArchiveEntry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,531 | 31.595745 | 96 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ArchiveException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,636 | 29.886792 | 78 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ArchiveInputStream.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4,742 | 30 | 76 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ArchiveOutputStream.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 5,399 | 30.395349 | 105 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ArchiveStreamFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 10,168 | 38.262548 | 112 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/Lister.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | 2,352 | 34.119403 | 102 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 5,796 | 29.510526 | 87 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 13,882 | 32.372596 | 135 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 7,337 | 29.702929 | 118 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 24,984 | 27.041526 | 102 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 15,793 | 31.298569 | 137 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 17,232 | 32.856582 | 120 | java |
badger | badger-master/evaluation/05_compress/kelinci_analysis/src/org/apache/commons/compress/archivers/cpio/CpioConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4,100 | 27.479167 | 85 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.