content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package edu.stanford.math.plex4.examples; import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection; import edu.stanford.math.plex4.homology.chain_basis.Cell; import edu.stanford.math.plex4.streams.impl.ExplicitCellStream; import edu.stanford.math.primitivelib.autogen.algebraic.ObjectAbstractField; ...
__label__POS
0.996084
package com.appmindlab.nano; import android.app.DatePickerDialog; import android.app.Dialog; import android.os.Bundle; import android.view.WindowManager; import android.widget.DatePicker; import androidx.annotation.NonNull; import androidx.fragment.app.DialogFragment; import java.util.Calendar; /** * Created by sa...
__label__POS
0.82876
/* * argv.c * * Copyright (c) 2001 Dug Song <dugsong@monkey.org> * * $Id$ */ #include "argv.h" #include "config.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int argv_create(char *p, int argc, char *argv[]) { int i; for (i = 0; i < argc - 1; i++) { while (*p !...
__label__POS
0.733255
package com.appmindlab.nano; import android.content.Context; import android.graphics.Typeface; import java.io.File; import java.util.HashMap; /** * Created by saelim on 1/31/2016. */ public class FontCache { private static HashMap<String, Typeface> mCache = new HashMap<String, Typeface>(); // Get from ass...
__label__POS
0.786677
package com.appmindlab.nano; import android.content.Context; import android.content.Intent; import androidx.core.content.pm.ShortcutInfoCompat; import androidx.core.content.pm.ShortcutManagerCompat; import androidx.core.graphics.drawable.IconCompat; import java.util.ArrayList; import java.util.HashSet; import java.u...
__label__POS
0.689528
package edu.stanford.math.plex4.examples; import java.util.Arrays; import edu.stanford.math.plex4.utility.RandomUtility; import edu.stanford.math.primitivelib.autogen.array.DoubleArrayMath; /** * This static class contains various functions which produce * examples of point cloud data sets. * * @author Andrew ...
__label__POS
0.988818
package com.apress.springrecipes.nosql; import java.util.stream.Stream; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class Main { public static void main(String[] args) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Starw...
__label__POS
0.999889
package edu.stanford.math.plex4.examples; import edu.stanford.math.plex4.homology.chain_basis.Cell; import edu.stanford.math.plex4.streams.impl.ExplicitCellStream; /** * This class contains various static functions for producing cell complexes. * * @author Andrew Tausz * */ public class CellStreamExamples { /...
__label__POS
0.982207
package com.appmindlab.nano; import androidx.collection.LruCache; import java.util.ArrayList; import java.util.Map; /** * Created by saelim on 8/16/2016. */ public class LocalReplaceHistory { private static int mSize = Const.LOCAL_REPLACE_CACHE_SIZE; private static LruCache mCache = new LruCache(mSize) { ...
__label__POS
0.926443
// <copyright file="GraphiteSyntax.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System; using System.Collections.Generic; using System.Globalization; using System.Text.RegularExpressions; namespace App.Metrics.Formatters.Graphite.Intern...
__label__POS
0.629128
package edu.stanford.math.plex4.examples; import edu.stanford.math.plex4.homology.chain_basis.Simplex; import edu.stanford.math.plex4.homology.utility.HomologyUtility; import edu.stanford.math.plex4.streams.impl.ExplicitSimplexStream; import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream; import edu...
__label__POS
0.997533
package edu.stanford.math.plex4.examples; import java.util.ArrayList; import java.util.List; import edu.stanford.math.plex4.homology.chain_basis.Cell; import edu.stanford.math.plex4.streams.impl.ExplicitCellStream; import edu.stanford.math.primitivelib.autogen.array.IntArrayMath; import edu.stanford.math.primitivelib...
__label__POS
0.996397
@testable import Albertos import XCTest class OrderDetailViewModelTests: XCTestCase { func testWhenOrderIsEmptyShouldNotShowTotalAmount() { let viewModel = OrderDetail.ViewModel(orderController: OrderController()) XCTAssertNil(viewModel.totalText) } func testWhenOrderIsNonEmptyShouldShow...
__label__POS
0.614884
package com.apress.springrecipes.nosql; import javax.annotation.PreDestroy; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service @Transactional public class Neo4jStarwarsService implements StarwarsService { private final PlanetRepository planet...
__label__POS
0.854553
package com.appmindlab.nano; import androidx.collection.LruCache; import java.util.ArrayList; import java.util.Map; /** * Created by saelim on 3/9/2016. */ public class LocalFindHistory { private static int mSize = Const.LOCAL_FIND_CACHE_SIZE; private static LruCache mCache = new LruCache(mSize) { ...
__label__POS
0.926271
/** * ____ _ _ _____ _ _ _ _ * | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___ * | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __| * | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \ * |_| \__,_...
__label__POS
0.72664
package edu.stanford.math.plex4.io; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import edu.stanford.math.plex4.utility.ExceptionUtility; import edu.stanford.math.primitivelib.autogen.array.IntArrayMath; /** * This class holds a table of string values. It ...
__label__POS
0.990745
package edu.stanford.math.plex4.io; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; /** * This class encapsulates writing to Matlab files. It conta...
__label__POS
0.895936
; REPL Utilities (defn decode "Print the Rubinius bytecode for the given Proc or Method." [f] (case f [Proc] (Kernel/puts (.. f block compiled_code decode)) [Method] (Kernel/puts (.. f executable decode)) (raise (str "Don't know how to decode " (.inspect f))))) (defmacro time "Evaluate the forms...
__label__POS
0.632353
package edu.stanford.math.plex4.io; import gnu.trove.THashMap; import java.awt.image.BufferedImage; import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.IOException; import com.sun.media.jai.codec.ImageCodec; import com.sun.media.jai.codec.ImageEncoder; public class BufferedImageWrit...
__label__POS
0.916158
package com.apress.springrecipes.nosql; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import reactor.core.publisher.Flux; import java.util.concurrent.CountDownLatch; public class Main { public static void main(String[] ar...
__label__POS
0.999676
package edu.stanford.math.plex4.io; import java.awt.image.BufferedImage; import java.io.IOException; import edu.stanford.math.plex4.homology.barcodes.Interval; import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor; import edu.stanford.math.plex4.visualization.BarcodeVisualizer; public clas...
__label__POS
0.977171
describe Apricot::Reader do def read(s) @forms = described_class.read_string(s, "(spec)") @first = @forms.first @forms end def read_one(s, klass = nil) read(s).length.should == 1 @first.should be_a(klass) if klass @first end def expect_syntax_error(s) expect { read(s) }.to raise_...
__label__POS
0.945766
describe Apricot::Identifier do def intern(name) described_class.intern name end it 'does not support .new' do expect { described_class.new :foo }.to raise_error(NoMethodError) end it 'creates only one identifier for each name' do id1 = intern :foo id2 = intern :foo id1.object_id.should...
__label__POS
0.603267
describe Apricot::List do def new_list(*args) described_class[*args] end def empty_list described_class::EMPTY_LIST end it 'has a single instance of the empty list' do new_list.object_id.should == empty_list.object_id new_list(1,2).tail.tail.object_id.should == empty_list.object_id end ...
__label__POS
0.856373
// <copyright file="ApplicationsMetricsRegistry.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using App.Metrics.Apdex; using App.Metrics.Counter; using App.Metrics.Gauge; using App.Metrics.Histogram; using App.Metrics.Meter; using App.Metrics.T...
__label__POS
0.765705
describe 'Apricot' do include CompilerSpec it 'compiles an empty program' do apr('').should == nil end it 'compiles false, true and nil' do apr('true').should == true apr('false').should == false apr('nil').should == nil end it 'compiles numbers' do apr('1').should == 1 apr('1.0')...
__label__POS
0.932439
module Apricot # Every seq should include this module and define 'first' and 'next' # methods. A seq may redefine 'rest' and 'each' if there is a more efficient # way to implement them. # # 'first' should return the first item in the seq. # 'next' should return a seq of the rest of the items in the seq, or ...
__label__POS
0.912014
package edu.stanford.math.plex4.io; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import edu.stanford.math.plex4.homology.chain_basis.Simplex; import edu.stanford.math.plex4.streams.impl.ExplicitSimplexStream; import edu...
__label__POS
0.912254
package com.appnexus.opensdk.mocks; import android.graphics.Bitmap; import android.view.View; import com.appnexus.opensdk.ANAdResponseInfo; import com.appnexus.opensdk.BaseNativeAdResponse; import com.appnexus.opensdk.CSRController; import com.appnexus.opensdk.NativeAdEventListener; import java.util.HashMap; import ...
__label__POS
0.887951
package edu.stanford.math.plex4.io; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.List; public class DoubleArrayReaderWriter implements ObjectReader<double[][]>, ObjectWriter<double[][]> { private static final DoubleArrayReaderWriter instance = new DoubleArray...
__label__POS
0.988377
package com.apress.springrecipes.nosql; import java.util.List; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import...
__label__POS
0.984821
module Apricot # A linked list implementation representing (a b c) syntax in Apricot class List include Seq def self.[](*args) list = EMPTY_LIST args.reverse_each do |arg| list = list.cons(arg) end list end attr_reader :head, :tail, :count def initialize(head, ...
__label__POS
0.99875
class Object attr_reader :apricot_meta def apricot_meta=(meta) @apricot_meta = meta unless frozen? end def apricot_inspect inspect end def apricot_str to_s end def apricot_call(*args) call(*args) end end class Array # Adapted from Array#inspect. This version prints no commas and...
__label__POS
0.982129
package com.apress.springrecipes.nosql; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "vehicles") public class Vehicle { private String id; private String vehicleNo; private String color; private int wheel; private int seat; public Vehicle() { } ...
__label__POS
0.608197
package edu.stanford.math.plex4.io; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Map; /** * This class returns canonical paths so that they are in the appropriate format * for the OS in use (e.g. / in linux vs. ...
__label__POS
0.942851
#if __has_include("AppMetricaCoreExtension.h") #import "AMAAdProviding.h" #import "AMAAppMetricaExtended.h" #import "AMAAppMetricaExtendedReporting.h" #import "AMAAppMetricaLibraryAdapterConfiguration.h" #import "AMAApplicationStateManager.h" #import "AMAEnvironmentContainer.h" #import "AMAE...
__label__POS
0.980722
// <copyright file="ApplicationsMetricsRegistry.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using App.Metrics.Apdex; using App.Metrics.Counter; using App.Metrics.Gauge; using App.Metrics.Histogram; using App.Metrics.Meter; using App.Metrics.T...
__label__POS
0.769055
package edu.stanford.math.plex4.io; import java.io.IOException; import cern.colt.matrix.DoubleMatrix2D; import edu.stanford.math.plex4.utility.ExceptionUtility; import edu.stanford.math.primitivelib.autogen.array.IntArrayMath; /** * This class has static methods for creating Matlab files to visualize data. * * @...
__label__POS
0.799541
package com.apress.springrecipes.nosql; public class Vehicle { private String vehicleNo; private String color; private int wheel; private int seat; public Vehicle() { } public Vehicle(String vehicleNo, String color, int wheel, int seat) { this.vehicleNo = vehicleNo; this....
__label__POS
0.680388
package edu.stanford.math.plex4.io; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; import edu.stanford.math.plex4.homology.chain_basis.SimplexComparator; import edu.stanford.math.plex4.metric.impl.EuclideanMetricSpace; import ed...
__label__POS
0.960706
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using System.Windows...
__label__POS
0.637045
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
// <copyright file="HostExtensions.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System; using System.Threading; using System.Threading.Tasks; using static System.Console; // ReSharper disable CheckNamespace namespace Microsoft.Extension...
__label__POS
0.797001
// <copyright file="InMemoryConfigurationExtensionsTests.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System.Collections.Generic; using System.Linq; using App.Metrics; using App.Metrics.Extensions.Configuration; using FluentAssertions; u...
__label__POS
0.62384
package com.apress.springrecipes.nosql; public class Vehicle { private String vehicleNo; private String color; private int wheel; private int seat; public Vehicle() { } public Vehicle(String vehicleNo, String color, int wheel, int seat) { this.vehicleNo = vehicleNo; this....
__label__POS
0.680388
package edu.stanford.math.plex4.utility; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Random; /** * This class contains an implement of the quicksort and other related * algorithms, such as the selection of order statistics. * * It is based on chapter 8 and ...
__label__POS
0.997705
package edu.stanford.math.plex4.utility; import java.util.Arrays; public class ArrayUtility { public static double[][] getSubset(double[][] points, int[] indices) { double[][] result = new double[indices.length][]; for (int i = 0; i < indices.length; i++) { result[i] = points[indices[i]]; } return r...
__label__POS
0.999997
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
/** * ____ _ _ _____ _ _ _ _ * | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___ * | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __| * | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \ * |_| \__,_...
__label__POS
0.72664
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.plex4.utility; import gnu.trove.TIntHashSet; import cern.jet.random.Normal; import cern.jet.random.Uniform; /** * This class contains static members for generating random numbers. * * @author Andrew Tausz * @author Tim Harrington * */ public class RandomUtility { private static No...
__label__POS
0.997576
const { ipcMain } = require('electron'); const channels = require('../InterfaceChannel'); const applicationService = require('../../service/application/ApplicationService'); ipcMain?.handle(channels.application.getRecentlyAdded, () => { return applicationService.getRecentlyAdded(); }); ipcMain?.handle(channels.ap...
__label__POS
0.622362
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.apress.springrecipes.nosql; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class Main { public static void main(String[] args) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(StarwarsConfig.class); Starwa...
__label__POS
0.999862
package edu.stanford.math.plex4.utility; /** * This class contains various static utility functions * relating to math. * * @author Andrew Tausz * */ public class MathUtility { public static long euclideanGcd(long a, long b) { while (b != 0) { long t = b; b = a % b; a = t; } return a; } publ...
__label__POS
0.986254
#import <Foundation/Foundation.h> #import <Kiwi/Kiwi.h> #import <AppMetricaCoreUtils/AppMetricaCoreUtils.h> #import <AppMetricaStorageUtils/AppMetricaStorageUtils.h> #import "AMAAttributionSerializer.h" SPEC_BEGIN(AMAAttributtionSerializerTests) describe(@"AMAAttributtionSerializer", ^{ context(@"toJsonArray", ...
__label__POS
0.689906
package com.apress.prospring6.eighteen.audit; import org.hibernate.SessionFactory; import org.hibernate.stat.*; import jakarta.annotation.PostConstruct; import org.springframework.jmx.export.annotation.*; import org.springframework.stereotype.Component; /** * Created by iuliana.cosmina on 7/9/17. * Description: Cus...
__label__POS
0.728709
package edu.stanford.math.plex4.utility; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import edu.stanford.math.plex4.homology.chain_basis.Simplex; import edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum; import edu.stanford.math.primitivel...
__label__POS
0.989772
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 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 edu.stanford.math.plex4.utility; import gnu.trove.TIntHashSet; import gnu.trove.TIntIterator; import java.util.Collection; /** * This class contains static methods for comparing various objects. * * @author Andrew Tausz * */ public class ComparisonUtility { // default precision values public static ...
__label__POS
0.998887
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
/** * */ package edu.stanford.math.plex4.graph; import edu.stanford.math.plex4.utility.ExceptionUtility; import edu.stanford.math.primitivelib.autogen.pair.IntIntPair; import gnu.trove.TIntDoubleHashMap; import gnu.trove.TIntDoubleIterator; import gnu.trove.TIntHashSet; import gnu.trove.TIntIntHashMap; import gnu.t...
__label__POS
0.971872
package edu.stanford.math.plex4.graph; import java.io.Serializable; import java.util.Iterator; import edu.stanford.math.primitivelib.autogen.pair.IntIntPair; import gnu.trove.TIntHashSet; /** * This interface abstracts the functionality of an unweighted graph. * The graph must be undirected. The vertices of the gr...
__label__POS
0.998935
/** * */ package edu.stanford.math.plex4.graph; import java.util.Iterator; import edu.stanford.math.primitivelib.autogen.pair.IntIntPair; import gnu.trove.TIntDoubleHashMap; import gnu.trove.TIntHashSet; import gnu.trove.TIntIterator; import gnu.trove.TIntObjectHashMap; import gnu.trove.TIntObjectIterator; /** *...
__label__POS
0.991115
**[How To Generate Custom Sequence IDs](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootCustomSequenceGenerator)** **Description:** This is a Spring Boot example of using the `hi/lo` algorithm and a custom implementation of `SequenceStyleGenerator` for generating custom sequence ID...
__label__POS
0.672183
/** * */ package edu.stanford.math.plex4.graph; import edu.stanford.math.primitivelib.autogen.pair.IntIntPair; import gnu.trove.TIntHashSet; import gnu.trove.TIntIntHashMap; import gnu.trove.TIntIntIterator; import gnu.trove.TIntObjectHashMap; import java.util.Iterator; /** * This class implements the functional...
__label__POS
0.98184
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.apress.springrecipes.nosql; import java.nio.file.Paths; import java.util.stream.Stream; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Result; import org.neo4j.graphdb.Transaction; import org.neo4j.graphdb.factory.GraphDatabaseFactory; public class Main { public static void ...
__label__POS
0.98617
package com.apress.springrecipes.nosql; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Created by marten on 10-10-14. */ public class Character { private Long id; private String name; private Planet location; private final List<Character> friends = new ArrayL...
__label__POS
0.787767
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.generation; import java.util.List; import java.util.Vector; import edu.stanford.math.primitivelib.generation.ClassSpecifier; import edu.stanford.math.primitivelib.generation.JavaCodeGenerator; /** * This class contains functions for creating auto-generated code. In particular it gene...
__label__POS
0.96066
/** * ____ _ _ _____ _ _ _ _ * | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___ * | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __| * | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \ * |_| \__,_...
__label__POS
0.72664
using App.Metrics.Gauge; namespace App.Metrics.Extensions.Collectors.MetricsRegistries { public static class GcMetricsRegistry { public static readonly string ContextName = "Dotnet.Gc"; public static class Gauges { public static readonly GaugeOptions Gen0Collections = new G...
__label__POS
0.788783
**[How To Use Hibernate `uuid2` For Generating UUID Identifiers](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootUUID2)** **Description:** This application is an example of using the Hibernate RFC 4122 compliant UUID generator, `uuid2`. **Key points:** - store UUID in a `BINARY(1...
__label__POS
0.971018
package com.apress.springrecipes.nosql; import com.couchbase.client.java.Bucket; import com.couchbase.client.java.document.JsonDocument; import com.couchbase.client.java.document.json.JsonObject; class CouchbaseVehicleRepository implements VehicleRepository { private final Bucket bucket; public CouchbaseVeh...
__label__POS
0.860291
**[Count and Assert SQL Statements](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootCountSQLStatements)** **Description:** This application is a sample of counting and asserting SQL statements triggered "behind the scene". Is very useful to count the SQL statements in order to ensu...
__label__POS
0.95067
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; /** * * The Ford-Fulkerson Algorithm * * * @author Tim Harrington * @date Mar 12, 2009 * * * NOTICE: This is from * http://www-b2.is.tokushima-u.ac.jp/~ikeda/suuri/maxflow/Maxflow.java * File: Maxflow.java based on Ford-Fulkerson Method Copy...
__label__POS
0.923119
using App.Metrics.Gauge; namespace App.Metrics.Extensions.Collectors.MetricsRegistries { public static class SystemUsageMetricsRegistry { public static readonly string ContextName = "System"; public static class Gauges { public static readonly GaugeOptions TotalCpuUsed = ne...
__label__POS
0.848589
package edu.stanford.math.plex4.bottleneck; public class FlowEdge { private final int source; private final int dest; private int capacity; private FlowEdge reverseEdge = null; public FlowEdge(int source, int dest, int capacity) { this.source = source; this.dest = dest; this.capacity = capacity; } pu...
__label__POS
0.99717
package edu.stanford.math.plex4.bottleneck; import gnu.trove.THashSet; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; public class WeightedBipartiteGraph { class WeightedEdge { public int source; public int destination; public double weight; } private...
__label__POS
0.963611
package edu.stanford.math.plex4.bottleneck; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import edu.stanford.math.plex4.homology.barcodes.Interval; import edu.stanford.math.primitivelib.utility.Infinity; public class BottleneckDistance { public static List<Interval<Double>> truncate...
__label__POS
0.94899
package com.apress.springrecipes.nosql; public class Vehicle { private String vehicleNo; private String color; private int wheel; private int seat; public Vehicle() { } public Vehicle(String vehicleNo, String color, int wheel, int seat) { this.vehicleNo = vehicleNo; this....
__label__POS
0.680388
package edu.stanford.math.plex4.bottleneck; import edu.stanford.math.primitivelib.autogen.pair.ObjectIntPair; import gnu.trove.THashSet; import gnu.trove.TIntObjectHashMap; import gnu.trove.TObjectIntHashMap; import java.util.ArrayList; import java.util.List; import java.util.Set; public class FlowNetwork { TIntObj...
__label__POS
0.990664
using System; using System.Threading.Tasks; using NServiceBus.Pipeline; namespace EndpointTwo { public static class PipelineSettingsExtensions { public static PipelineSettings StripAssemblyVersionFromEnclosedMessageTypePipeline(this PipelineSettings pipeline) { pipeline.Register( ...
__label__POS
0.983281
using System; using System.Collections.Generic; using System.Text; using Microsoft.Win32; using System.IO; namespace SingleInstanceApplication { public class FileRegistrationHelper { public static void SetFileAssociation(string extension, string progID) { // Create extension subkey ...
__label__POS
0.887154
using System; using System.Threading.Tasks; using App.Metrics; using App.Metrics.Extensions.NServiceBus; using App.Metrics.Formatters.InfluxDB; using App.Metrics.Infrastructure; using App.Metrics.Internal.Infrastructure; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Ext...
__label__POS
0.715574
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using System.Reflect...
__label__POS
0.94633
using System; using System.Threading.Tasks; using NServiceBus.Pipeline; namespace EndpointOne { public static class PipelineSettingsExtensions { public static PipelineSettings StripAssemblyVersionFromEnclosedMessageTypePipeline(this PipelineSettings pipeline) { pipeline.Register( ...
__label__POS
0.983308
package com.apress.springrecipes.nosql; public class Vehicle { private String vehicleNo; private String color; private int wheel; private int seat; public Vehicle() { } public Vehicle(String vehicleNo, String color, int wheel, int seat) { this.vehicleNo = vehicleNo; this....
__label__POS
0.680388
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.apress.springrecipes.nosql; import java.util.List; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.support.AbstractApplicationContext; import com.apress.springrecipes.nosql.config.M...
__label__POS
0.989908
package com.apress.springrecipes.nosql; public class Vehicle { private String vehicleNo; private String color; private int wheel; private int seat; public Vehicle() { } public Vehicle(String vehicleNo, String color, int wheel, int seat) { this.vehicleNo = vehicleNo; this....
__label__POS
0.680388
/** * ____ _ _ _____ _ _ _ _ * | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___ * | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __| * | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \ * |_| \__,_...
__label__POS
0.72664
package com.apress.springrecipes.nosql; import com.mongodb.MongoClient; import com.mongodb.client.MongoCollection; import org.bson.Document; import javax.annotation.PreDestroy; import java.util.List; import java.util.stream.Collectors; import java.util.stream.StreamSupport; import static com.mongodb.client.model.Fil...
__label__POS
0.807129
**[How To Write Derived Count And Delete Queries](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDerivedCountAndDelete)** **Description:** Spring Data comes with the Query Builder mechanism for JPA that is capable to interpret a query method name (known as a derived query) and con...
__label__POS
0.733274
using System; using System.Threading.Tasks; using App.Metrics; using App.Metrics.Extensions.NServiceBus; using App.Metrics.Formatters.InfluxDB; using App.Metrics.Infrastructure; using App.Metrics.Internal.Infrastructure; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Ext...
__label__POS
0.714176
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Import necessary dependencies" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import text_normalizer as...
__label__POS
0.710692