content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package edu.stanford.math.plex4.homology.barcodes; import java.io.Serializable; //import edu.stanford.math.primitivelib.utility.Infinity; /** * This class implements the functionality of an interval of values of any comparable type. It supports * finite, semi-infinite, and infinite intervals with open or closed en...
__label__POS
0.997726
package edu.stanford.math.plex4.homology.utility; import edu.stanford.math.plex4.homology.chain_basis.Simplex; import gnu.trove.TIntHashSet; import gnu.trove.TIntIterator; /** * This class contains static utility functions to aid * the homology computations. * * @author Andrew Tausz * */ public class HomologyU...
__label__POS
0.998789
package edu.stanford.math.plex4.homology.interfaces; import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection; import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream; /** * This interface defines the functionality of a persistence algorithm. Namely it is a mapping * which takes a filtere...
__label__POS
0.997983
package edu.stanford.math.plex4.homology.interfaces; import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection; import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream; /** * This interface defines the functionality of a persistence algorithm that also produces generators * for ea...
__label__POS
0.873888
package edu.stanford.math.plex4.homology.zigzag.bootstrap; import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement; import edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule; import edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum; import edu.stanford.math.pr...
__label__POS
0.998989
package edu.stanford.math.plex4.homology.zigzag.bootstrap; import java.util.ArrayList; import java.util.List; import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection; import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection; import edu.stanford.math.plex4.homology.chain_basis.Simplex; im...
__label__POS
0.693336
package edu.stanford.math.plex4.homology.zigzag.bootstrap; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import edu.stanford.math.plex4.homology.barcodes.Inter...
__label__POS
0.854371
// <copyright file="AppMetricsOptionExtensions.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System; using System.Collections.Generic; using App.Metrics.Infrastructure; // ReSharper disable CheckNamespace namespace App.Metrics // ReS...
__label__POS
0.628308
package edu.stanford.math.plex4.graph.io; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.io.ObjectWriter; import edu.stanford.math.primitivelib.autogen.pair.IntIntPair; public class Gra...
__label__POS
0.912675
package edu.stanford.math.plex4.graph.random; /** * Implements a binary tree of nodes labeled 1,2,...,n. * * @author Tim Harrington * @date Feb 8, 2009 */ public class BinaryTree { /* * In binary there is a structure to the labels: * * 1 * / \ * / \ ...
__label__POS
0.991218
package edu.stanford.math.plex4.graph.random; import java.text.DecimalFormat; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; public class StochasticBlockmodel extends GraphInstanceGenerator { private static final long serialVersionUID = -49928667...
__label__POS
0.996439
package edu.stanford.math.plex4.graph.random; import edu.stanford.math.primitivelib.autogen.array.DoubleArrayMath; public class TorusGraph extends ManifoldGraph { private static final long serialVersionUID = 101044478862814881L; public TorusGraph(int size, int dimension, int k) { super(size, dimension, k); } ...
__label__POS
0.997029
package edu.stanford.math.plex4.graph.random; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; import edu.stanford.math.primitivelib.autogen.array.DoubleArrayQuery; import edu.stanford.math.primitivelib.autogen.array.IntArrayQuery; /** * This class i...
__label__POS
0.98123
package edu.stanford.math.plex4.graph.random; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; import edu.stanford.math.primitivelib.autogen.array.IntArrayManipulation; import edu.stanford.math.primitivelib.autogen.array.IntArrayMath; /** * Implement...
__label__POS
0.99643
package edu.stanford.math.plex4.graph.random; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; /** * Makes a random hierarchical graph by considering points P = {1,2,...,n} and * partitions C_{i,j}, where j is the granularity. C_{i,j+1} refines C_{i...
__label__POS
0.982925
package com.appnexus.opensdk.mediatedviews; import android.app.Activity; import android.os.Handler; import android.os.Looper; import com.appnexus.opensdk.TargetingParameters; import com.appnexus.opensdk.utils.StringUtil; import com.smartadserver.android.library.model.SASAdPlacement; import com.smartadserver.android.l...
__label__POS
0.626841
package edu.stanford.math.plex4.graph.random; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; import edu.stanford.math.primitivelib.autogen.array.IntArrayMath; /** * Implements a Barabasi-Albert (BA) random graph model. * * From Wikipedia: The Ba...
__label__POS
0.80643
package edu.stanford.math.plex4.graph.random; import java.io.Serializable; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.graph.UndirectedListGraph; /** * This class abstracts the construction of graphs. * * @author Andrew Tausz * */ public abstract class GraphInst...
__label__POS
0.933597
package edu.stanford.math.plex4.graph.random; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; /** * @author Tim Harrington * @date Apr 1, 2009 * */ public class BinaryTreeGraph extends GraphInstanceGenerator { private static final long serialVersionUID = 379015239255681800L; protected int n; pu...
__label__POS
0.974806
package edu.stanford.math.plex4.graph.random; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; /** * Class that represents a graph with a circle "shape" * * @author Tim Harrington * @date Dec 20, 2008 */ public class CircleGraph extends GraphIns...
__label__POS
0.997875
package edu.stanford.math.plex4.graph.random; import java.util.Random; import cern.jet.random.AbstractDistribution; import cern.jet.random.Distributions; import cern.jet.random.Uniform; import cern.jet.random.engine.RandomEngine; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import gnu.trove.TIntArray...
__label__POS
0.727395
package edu.stanford.math.plex4.graph.random; import java.text.DecimalFormat; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; /** * Implements the Erdos-Renyi G(n,p) model. * * From Wikipedia: In the G(n, p) model, a graph is thought to be const...
__label__POS
0.930483
/** * */ package edu.stanford.math.plex4.graph.random; /** * @author Tim Harrington * @date May 6, 2009 * */ public class HierarchicalERGraph extends BinaryHierarchicalGraph { private static final long serialVersionUID = 3491552989916440763L; protected int rootedGraphSize; protected int hgLeafCount; prote...
__label__POS
0.937781
/** * */ package edu.stanford.math.plex4.graph.random; import java.util.ArrayList; import java.util.Formatter; import java.util.List; import java.util.Locale; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; /** * Makes a clustered graph by conne...
__label__POS
0.987164
require File.expand_path(File.dirname(__FILE__) + "/../../lib/simple_record") require_relative 'my_base_model' require_relative 'my_sharded_model' require 'active_model' class MyModel < MyBaseModel has_strings :name, :nickname, :s1, :s2 has_ints :age, :save_count has_booleans :cool has_dates :birthday, :date1...
__label__POS
0.891644
/** * */ package edu.stanford.math.plex4.graph.random; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.utility.RandomUtility; /** * Generates n random points in [0,1]^d and connects an edge between points x * and y if d(x,y)<r. * * @author Tim Harrington * @date M...
__label__POS
0.969117
package edu.stanford.math.plex4.graph.utility; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.graph.AbstractWeightedUndirectedGraph; import edu.stanford.math.plex4.streams.impl.ExplicitSimplexStream; import edu.stanford.math.plex4.streams.impl.GeometricSimplexStream; impor...
__label__POS
0.999577
/** * */ package edu.stanford.math.plex4.graph.metric; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.graph.utility.GraphUtility; import edu.stanford.math.plex4.metric.impl.ExplicitMetricSpace; import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace; /*...
__label__POS
0.98467
package edu.stanford.math.plex4.metric.utility; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace; import edu.stanford.math.plex4.metric.interfaces.AbstractObjectMetricSpace; import edu.stanford.math.plex4.metric.interfa...
__label__POS
0.996597
package edu.stanford.math.plex4.metric.interfaces; import gnu.trove.TIntHashSet; /** * This interface defines the functionality of a metric space with various querying * capabilities. * * @author Andrew Tausz * * @param <T> the type of the points in the metric space */ public interface AbstractSearchableMet...
__label__POS
0.995792
package edu.stanford.math.plex4.metric.impl; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import edu.stanford.math.primitivelib.autogen.pair.ObjectDoublePair; /** * <p>This class is used for holding the set of k-indices with the lowest ranks or values. * It is used by adding elem...
__label__POS
0.962844
package edu.stanford.math.plex4.metric.impl; import java.util.List; import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace; import edu.stanford.math.primitivelib.utility.Infinity; import gnu.trove.TIntHashSet; /** * This class implements the AbstractIntMetricSpace interface. The distances be...
__label__POS
0.954043
package edu.stanford.math.plex4.metric.impl; import java.util.List; import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace; import gnu.trove.TIntHashSet; /** * This class implements the AbstractSearchableMetricSpace interface over type T. It stores the * elements of the metric space as an a...
__label__POS
0.995795
package edu.stanford.math.plex4.metric.landmark; import java.util.List; import edu.stanford.math.plex4.metric.impl.TruncatedPriorityQueue; import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace; import edu.stanford.math.plex4.utility.ExceptionUtility; import edu.stanford.math.primitivelib.util...
__label__POS
0.952636
package edu.stanford.math.plex4.metric.landmark; import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace; import edu.stanford.math.plex4.utility.RandomUtility; import edu.stanford.math.primitivelib.utility.Infinity; import gnu.trove.TIntHashSet; import gnu.trove.TIntIterator; /** * This class ...
__label__POS
0.61466
/** * */ package edu.stanford.math.plex4.metric.landmark; import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace; import edu.stanford.math.plex4.utility.RandomUtility; import gnu.trove.TIntHashSet; import gnu.trove.TIntIterator; /** * This class defines a landmark set in a finite metric sp...
__label__POS
0.994319
// <copyright file="MetricsOptionsExtensions.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System.Collections.Generic; namespace App.Metrics.Internal.Extensions { public static class MetricsOptionsExtensions { public stat...
__label__POS
0.85926
package edu.stanford.math.mapper; import java.util.Arrays; import java.util.List; import java.util.Set; import edu.stanford.math.clustering.DisjointSetSystem; import edu.stanford.math.clustering.HierarchicalClustering; import edu.stanford.math.clustering.SingleLinkageClustering; import edu.stanford.math.plex4.example...
__label__POS
0.997528
package edu.stanford.math.mapper; import java.io.IOException; import java.util.List; import edu.stanford.math.plex4.examples.PointCloudExamples; import edu.stanford.math.plex4.graph.AbstractWeightedUndirectedGraph; import edu.stanford.math.plex4.graph.io.GraphDotWriter; import edu.stanford.math.plex4.metric.impl.Eucl...
__label__POS
0.999972
package edu.stanford.math.plex; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>TorusTest</code> class. * * <p>Among the facilities provided by the <code>TorusTest</code> class * are whatever we want it to do. * * @version $ID$ */ @SuppressWarnings("unused") public clas...
__label__POS
0.742275
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>PersistenceTest</code> class. * * <p>Among the facilities provided by the <code>PersistenceTest</code> cla...
__label__POS
0.894275
package edu.stanford.math.plex; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>MappedBufferDataTest</code> class contains tests. * * @version $Id$ */ @SuppressWarnings("unused") public class MappedBufferDataTest { private java....
__label__POS
0.956252
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>PersistenceIntervalTest</code> class. * * <p>Among the facilities provided by the <code>PersistenceIntervalTest</code> class * are whatever we want ...
__label__POS
0.749839
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>CubeHashTest</code> class. * * <p>Among the facilities provided by the <code>CubeHashTest</code> class * are whatever we want it to do. * * @versi...
__label__POS
0.746778
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>SimplexFaceIteratorTest</code> class. * * <p>Among the facilit...
__label__POS
0.924165
package edu.stanford.math.plex; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; @SuppressWarnings("unused") public class PlexTest { private java.util.List<Object> emptyList; /** * Sets up the test fixture. * (Called before every test case m...
__label__POS
0.997411
package edu.stanford.math.plex; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>ChainTest</code> class. * * <p>Among the facilities provided by the <code>ChainTest</code> class * are whatever we want it to do. * * @version $ID$ ...
__label__POS
0.865955
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.Iterator; import org.junit.Test; /** * The <code>ExplicitStreamTest</code> class. * * <p>Among the facilities provided by the <code>...
__label__POS
0.849079
package io.appoutlet.karavel import androidx.compose.runtime.Composable import org.junit.jupiter.api.Test import org.junit.jupiter.api.Assertions.* internal class KaravelTest { private val page1 = object : Page() { @Composable override fun content() { /*no-op*/ } } p...
__label__POS
0.631623
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * The <code>PersistenceTest</code> class. * * <p>Among the facilities provided by the <code>PersistenceTest</code> class * are whatever we want it to do. * * @version $ID$ */ @SuppressWarnings("unused") pub...
__label__POS
0.991576
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>Packed2SimplexTest</code> class contains tests. * * @version $Id$ */ public class Packed2SimplexTest { private java.util.List<Object> emptyList; ...
__label__POS
0.919674
package com.spaceprogram.simplejpa import org.junit.Test import javax.persistence.Entity import javax.persistence.OneToMany import javax.persistence.ManyToOne import static org.junit.Assert.* import javax.persistence.Id /** * Basic test set to validate support for groovy object mappings */ public class AnnotationMa...
__label__POS
0.97889
package com.spaceprogram.simplejpa import org.junit.Test import javax.persistence.* import static org.junit.Assert.* import com.spaceprogram.simplejpa.PersistentProperty.OrderClause.Order /** * User: kerrywright * Date: 11-06-12 */ class PersistentPropertyTests { @Test public void testGetMethodClasses() { ...
__label__POS
0.939994
package edu.stanford.math.plex; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>Packed6SimplexTest</code> class contains tests. * * @version $Id$ */ @SuppressWarnings("unused") public class Packed6SimplexTest { private java.uti...
__label__POS
0.909368
package edu.stanford.math.plex; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; @SuppressWarnings("unused") public class SimplexTest { private java.util.List<Object> emptyList; /** * Sets up the test fixture. * (Called before every test case...
__label__POS
0.980501
package edu.stanford.math.plex; import static org.junit.Assert.assertTrue; import java.util.Random; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>PlexSortTest</code> class provides tests for PlexSort.java. * * @version $ID$ */ @SuppressWarnings("unused") public class P...
__label__POS
0.987662
package edu.stanford.math.plex; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * The <code>Packed4SimplexTest</code> class. * * <p>Among the facilities provided by the <code>Packed4SimplexTest</cod...
__label__POS
0.908146
package com.spaceprogram.simplejpa.operations import org.junit.Test import static org.junit.Assert.* import javax.persistence.Entity import javax.persistence.Enumerated import javax.persistence.EnumType import com.spaceprogram.simplejpa.PersistentField import javax.persistence.Id /** * User: kerrywright * Date: 11-...
__label__POS
0.923096
package com.spaceprogram.simplejpa; import org.junit.Test; import org.junit.Assert; import java.util.Date; /** * User: treeder * Date: Aug 2, 2009 * Time: 10:41:24 PM */ public class StatsTests extends BaseTestClass { @Test public void testPuts() { EntityManagerSimpleJPA em = (EntityManagerSimpl...
__label__POS
0.993224
package edu.stanford.math.plex4.test_utility; import cern.colt.Timer; /** * This class contains static methods for measuring time intervals. It is exists * for convenience purposes so that one doesn't have to instantiate an object whenever * one wishes to measure a time interval. * * @author Andrew Tausz * */...
__label__POS
0.941326
package edu.stanford.math.plex4.example_tests; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.graph.AbstractUndirectedGraph; import edu.stanford.math.plex4.graph.UndirectedListGraph; public class GraphTest { @Before...
__label__POS
0.930705
package edu.stanford.math.plex4.example_tests; import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.examples.PointCloudExamples; import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection; import edu.stanford.math.plex4.homology.zi...
__label__POS
0.995022
package edu.stanford.math.plex4.example_tests; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.examples.SimplexStreamExamples; import edu.stanford.math.plex4.homology.barcodes.Barco...
__label__POS
0.788769
package edu.stanford.math.plex4.example_tests; import java.util.Arrays; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.homology.chain_basis.Simplex; import edu.stanford.math.plex4.utility.FormalSumUtility; import edu.stanford.math.primiti...
__label__POS
0.944058
package edu.stanford.math.plex4.example_tests; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.api.Plex4; import edu.stanford.math.plex4.examples.PointCloudExamples; import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection; import edu.stanford.math.plex...
__label__POS
0.710124
package edu.stanford.math.plex4.example_tests; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.examples.PointCloudExamples; import edu.stanford.math.plex4.homology.barcodes.BarcodeCol...
__label__POS
0.991605
package com.spaceprogram.simplejpa; import org.junit.Assert; import org.junit.Test; import java.util.concurrent.*; /** * User: treeder * Date: Apr 1, 2008 * Time: 12:04:09 PM */ public class ConcurrencyTests { private ExecutorService service = Executors.newSingleThreadExecutor(); @Test public void t...
__label__POS
0.881889
package com.spaceprogram.simplejpa; import com.spaceprogram.simplejpa.model.Timestamped; import javax.persistence.PrePersist; import javax.persistence.PreUpdate; import java.util.Date; /** * User: treeder * Date: Jul 29, 2008 * Time: 6:49:33 PM */ public class SomeEntityListener { @PrePersist public void...
__label__POS
0.832531
<!DOCTYPE html> <html lang="ZH-cn"> <head> <meta charset="UTF-8" /> <title>Test</title> <meta name="viewport" content="width=device-width,viewport-fit=cover,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <script type="module" src="../dist/main.js"></script> <style> body { ...
__label__POS
0.997322
package com.spaceprogram.simplejpa; import com.spaceprogram.simplejpa.query.JPAQuery; import com.spaceprogram.simplejpa.query.JPAQueryParser; import com.spaceprogram.simplejpa.query.QueryImpl; import org.junit.Assert; import org.junit.Test; import java.util.List; /** * User: treeder * Date: Mar 2, 2008 * Time: 6:...
__label__POS
0.808059
package com.spaceprogram.simplejpa; import org.unitils.UnitilsJUnit4; import org.unitils.mock.*; import static org.junit.Assert.*; import org.junit.Test; import java.util.*; /** * Initial set of unit tests for ObjectBuilder * Kerry Wright */ public class ObjectBuilderTests extends UnitilsJUnit4{ Mock<Annotati...
__label__POS
0.871764
package edu.stanford.math.plex4.example_tests; import java.util.Iterator; import org.junit.Test; import edu.stanford.math.plex4.api.Plex4; import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection; import edu.stanford.math.plex4.homology.chain_basis.Simplex; import edu.stanford.math.plex4.homology.interface...
__label__POS
0.732456
package edu.stanford.math.plex4.example_tests; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.api.Plex4; import edu.stanford.math.plex4.examples.PointCloudExamples; import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection; import edu.stanford.math.plex...
__label__POS
0.92355
package edu.stanford.math.plex4.homology; import static org.junit.Assert.assertTrue; import java.util.ArrayList; import java.util.List; import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection; import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection; import edu.stanford.math.plex4.homol...
__label__POS
0.67442
package edu.stanford.math.plex4.homology; import static org.junit.Assert.assertTrue; import edu.stanford.math.plex4.api.FilteredStreamInterface; import edu.stanford.math.plex4.homology.chain_basis.Simplex; import edu.stanford.math.plex4.metric.landmark.LandmarkSelector; import edu.stanford.math.plex4.streams.interfac...
__label__POS
0.967356
package com.spaceprogram.simplejpa; import java.math.BigDecimal; import java.util.*; import com.amazonaws.services.simpledb.AmazonSimpleDB; import org.junit.Test; import static org.junit.Assert.*; import org.unitils.UnitilsJUnit4; import org.unitils.mock.Mock; import com.spaceprogram.simplejpa.util.AmazonSimpleDBUtil...
__label__POS
0.967281
package edu.stanford.math.plex4.bottleneck; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; public class FordFulkersonTest { @Before public void setUp() throws Exception { } @After public void tearDown() throws Exception { } //@Test public...
__label__POS
0.976127
package edu.stanford.math.plex4.metric; import static org.junit.Assert.assertTrue; import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace; import gnu.trove.TIntHashSet; import gnu.trove.TIntIterator; /** * This class contains functions for testing the validity of the * subclasses of Abstract...
__label__POS
0.967673
package com.spaceprogram.simplejpa.query; import com.spaceprogram.simplejpa.EntityManagerFactoryImpl; import com.spaceprogram.simplejpa.EntityManagerSimpleJPA; import com.spaceprogram.simplejpa.MyTestObject; import com.spaceprogram.simplejpa.util.AmazonSimpleDBUtil; import org.junit.Test; import org.unitils.UnitilsJUn...
__label__POS
0.741461
package com.github.appreciated.app.layout; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.checkbox.Checkbox; import com.vaadin.flow.component.html.Div; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.com...
__label__POS
0.641343
package com.github.appreciated.app.layout; import com.vaadin.flow.component.grid.Grid; import com.vaadin.flow.component.orderedlayout.HorizontalLayout; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.router.Route; import java.util.ArrayList; import java.util.List; import java.uti...
__label__POS
0.962652
package com.github.appreciated.app.layout; import com.vaadin.flow.component.html.Paragraph; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.router.Route; @Route(value = "view2/subcontent", layout = MainLayout.class) public class SubContent extends VerticalLayout { public Sub...
__label__POS
0.92139
package edu.stanford.math.plex4.unit_tests; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.examples.PointCloudExamples; import edu.stanford.math.plex4.kd.KDEuclideanMetricSpace; import edu.stanford.math.plex4.m...
__label__POS
0.617761
package edu.stanford.math.plex4.unit_tests; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.api.FilteredStreamInterface; import edu.stanford.math.plex4.api.PersistenceAlgorithmInterface; import edu.stanford.math...
__label__POS
0.699269
package edu.stanford.math.plex4.unit_tests; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.examples.PointCloudExamples; import edu.stanford.math.plex4.homology.StreamTester; import edu.stanford.math.plex4.metri...
__label__POS
0.968292
package com.spaceprogram.simplejpa; import org.apache.commons.lang.StringUtils; import javax.persistence.*; import java.lang.reflect.*; import java.util.*; /** * Kerry Wright */ public abstract class PersistentProperty { protected final AnnotatedElement element; protected final List<OrderClause> orderBys; ...
__label__POS
0.860345
package com.github.appreciated.app.layout.navigation; import org.junit.Assert; import org.junit.Test; import java.util.Arrays; import java.util.Comparator; public class RouteSimilarityTest { @Test public void testRouteSimilarity() { String[] urls = new String[]{ "navigation/view1", ...
__label__POS
0.988697
package edu.stanford.math.plex4.unit_tests; import static org.junit.Assert.assertTrue; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.autogen.homology.ObjectAbsoluteHomology; import edu.stanford.math.plex4.autogen.homology.ObjectRelativeHomology; import edu.sta...
__label__POS
0.675577
package com.spaceprogram.simplejpa; /** * User: treeder * Date: Aug 13, 2008 * Time: 1:10:52 PM */ public interface DatabaseManager { /** * This method will rename an attribute in SimpleDB by iterating through EVERY element in the Domain * putting the old attribute value to the new attribute name, th...
__label__POS
0.89169
package com.spaceprogram.simplejpa; import org.apache.commons.lang.StringUtils; import javax.persistence.Column; import javax.persistence.Id; import javax.persistence.Lob; import javax.persistence.ManyToOne; import java.lang.reflect.Method; /** * Utility class for names of items in the database. * <p/> * User: tr...
__label__POS
0.990452
package com.spaceprogram.simplejpa; import java.util.ArrayList; import java.util.List; import com.amazonaws.AmazonClientException; import com.amazonaws.services.simpledb.AmazonSimpleDB; import com.amazonaws.services.simpledb.model.GetAttributesRequest; import com.amazonaws.services.simpledb.model.GetAttributesResult;...
__label__POS
0.982754
package edu.stanford.math.plex4.unit_tests; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.stanford.math.plex4.api.FilteredStreamInterface; import edu.stanford.math.plex4.api.PersistenceAlgorithmInterface; import edu.stanford.math...
__label__POS
0.809044
package com.spaceprogram.simplejpa.cache; import java.util.Set; import java.util.Map; import java.util.Collection; /** * User: treeder * Date: Jun 7, 2008 * Time: 4:47:01 PM */ public class NoopCache implements Cache { public boolean containsKey(Object o) { return false; } public boolean cont...
__label__POS
0.970878
// <copyright file="AtomicLongArrayTests.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System; using System.Collections.Generic; using System.Collections.ObjectModel; using FluentAssertions; using Xunit; namespace App.Metrics.Concurrency...
__label__POS
0.951338
package com.spaceprogram.simplejpa.query; /** * User: treeder * Date: Feb 8, 2008 * Time: 7:26:42 PM */ public class AbstractJPQLQuery implements Cloneable { public static final String[] SINGLE_STRING_KEYWORDS = { "SELECT", "UPDATE", "DELETE", "UNIQUE", "FROM", "WHERE", "GROUP BY", "HAVING", "ORDER...
__label__POS
0.894859
package com.spaceprogram.simplejpa.query; import com.amazonaws.services.s3.internal.S3QueryStringSigner; import com.spaceprogram.simplejpa.EntityManagerSimpleJPA; import javax.persistence.Query; import javax.persistence.TemporalType; import java.util.*; import java.util.logging.Logger; import java.util.regex.Matcher;...
__label__POS
0.66785
package com.spaceprogram.simplejpa.query; import javax.persistence.Query; /** * User: treeder Date: Nov 2, 2008 Time: 12:50:20 AM */ public interface SimpleQuery extends Query { int MAX_RESULTS_PER_REQUEST = 2500; /** * Same as getSingleResult, but does not throw NonUniqueResultException or NoResultE...
__label__POS
0.977248
package com.spaceprogram.simplejpa.query; import javax.persistence.EntityManager; import javax.persistence.Query; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; /** * User: treeder * Date: Nov 7, 2008 * Time: 5:31:27 PM */ public class QueryBuilderImp...
__label__POS
0.875587
package com.spaceprogram.simplejpa.util; import com.amazonaws.AmazonClientException; import com.amazonaws.services.simpledb.AmazonSimpleDB; import com.amazonaws.services.simpledb.model.Attribute; import com.amazonaws.services.simpledb.model.Item; import com.amazonaws.services.simpledb.model.SelectRequest; import com.a...
__label__POS
0.912048
// <copyright file="AtomicIntegerArrayTests.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System; using FluentAssertions; using Xunit; namespace App.Metrics.Concurrency.Facts { public class AtomicIntegerArrayTests { [Fact]...
__label__POS
0.985743