content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package com.asf.microraidenj.type; import java.math.BigInteger; import org.junit.BeforeClass; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class AddressTest { private static Address address; private static String addrHexStr; @BeforeClass...
__label__POS
0.968489
package com.asf.microraidenj.type; import java.math.BigInteger; import org.junit.BeforeClass; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; public class ByteArrayTest { private static byte[] bytes; private static ByteArray byteArray; @BeforeClas...
__label__POS
0.948899
package com.bookstore; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication pu...
__label__POS
0.6172
package com.apress.springrecipes.reactive.court.web; import com.apress.springrecipes.reactive.court.Reservation; import com.apress.springrecipes.reactive.court.ReservationService; import org.springframework.stereotype.Component; import org.springframework.web.reactive.function.server.ServerRequest; import org.springfr...
__label__POS
0.918878
package com.asf.microraidenj; import com.asf.microraidenj.contract.MicroRaidenContract; import com.asf.microraidenj.exception.TransactionFailedException; import com.asf.microraidenj.type.Address; import com.asf.microraidenj.util.ByteUtils; import ethereumj.crypto.ECKey; import ethereumj.crypto.HashUtil; import java.ma...
__label__POS
0.633885
<?php namespace Appstract\Multisite\Composers; use Config; use Illuminate\View\View; use Appstract\Multisite\Site; class OverwriteViewComposer { /** * Slug of the current site. * * @var string */ protected $currentSite; /** * Name of the sites folder. * * @var string ...
__label__POS
0.925793
package com.asf.microraidenj.type; import java.util.Arrays; import org.spongycastle.util.encoders.Hex; public class ByteArray { private final byte[] bytes; public ByteArray(byte[] bytes) { this.bytes = bytes; } public static ByteArray from(String hex) { if (hex.startsWith("0x")) { return new ...
__label__POS
0.99713
package com.bookstore.service; import com.bookstore.projection.AuthorNameBookTitle; import com.bookstore.repository.AuthorRepository; import com.bookstore.repository.BookRepository; import java.util.List; import org.springframework.stereotype.Service; @Service public class BookstoreService { private final Author...
__label__POS
0.860335
package com.asf.appcoins.sdk.core.factory; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; /** * Created by neuro on 28-02-2018. */ public final class TransactionFactoryTest { private static final String address = "0xab949343e6c369c6b17c7ae302c1debd4...
__label__POS
0.9999
package com.asf.appcoins.sdk.core.factory; import com.asf.appcoins.sdk.core.transaction.Transaction; import com.asf.appcoins.sdk.core.transaction.Transaction.Status; import java.math.BigInteger; import java.util.Arrays; import org.spongycastle.util.encoders.Hex; import org.web3j.abi.datatypes.Address; import org.web3j...
__label__POS
0.665762
public final class com/appstractive/jwt/signatures/ECDSAKt { public static final fun es256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun es256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun es384 (Lcom/appstractive/jwt/Signer;Lkot...
__label__POS
0.999874
public final class com/appstractive/jwt/signatures/ECDSAKt { public static final fun es256 (Lcom/appstractive/jwt/Signer;Lkotlin/jvm/functions/Function1;)V public static final fun es256 (Lcom/appstractive/jwt/Verifier;Lkotlin/jvm/functions/Function1;)V public static final fun es384 (Lcom/appstractive/jwt/Signer;Lkot...
__label__POS
0.999874
<?php namespace Appstract\Options; use Illuminate\Database\Eloquent\Model; class Option extends Model { /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false; /** * Casts. * * @var array */ protected $casts = [ ...
__label__POS
0.982642
<?php namespace Appstract\Options\Test; use Appstract\Options\Option; class HelperTest extends Base { /** @test */ public function it_can_get_instance() { $this->assertInstanceOf(Option::class, option()); } /** @test */ public function it_can_set() { option(['foo' => 'bar...
__label__POS
0.650149
<?php namespace Appstract\Options\Test; use Appstract\Options\OptionFacade; use Appstract\Options\OptionsServiceProvider; use Orchestra\Testbench\TestCase; class Base extends TestCase { /** * Define environment setup. * * @param \Illuminate\Foundation\Application $app * * @return void ...
__label__POS
0.881792
package com.bookstore; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication pu...
__label__POS
0.987643
package com.asf.appcoins.sdk.core.transaction; /** * Created by neuro on 26-02-2018. */ public final class Transaction { private final String to; private final String value; private final Status status; private String hash; private String from; public Transaction(String hash, String from, String to, St...
__label__POS
0.719308
package com.apress.springrecipes.court.config; import com.apress.springrecipes.court.web.MeasurementInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import org.springfra...
__label__POS
0.926212
package com.apress.springrecipes.court.config; import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ResourceBundleMessageSource; import org.springframework.web.servle...
__label__POS
0.619345
package com.apress.springrecipes.court.web; import org.springframework.web.servlet.AsyncHandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class MeasurementInterceptor implements AsyncHandlerInte...
__label__POS
0.968476
public final class io/ktor/server/auth/jwt/JWTAuthKt { public static final fun jwt (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun jwt$default (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava...
__label__POS
0.998426
public final class io/ktor/server/auth/jwt/JWTAuthKt { public static final fun jwt (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun jwt$default (Lio/ktor/server/auth/AuthenticationConfig;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava...
__label__POS
0.998426
package com.bookstore.repository; import com.bookstore.entity.Book; import java.util.List; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import org.s...
__label__POS
0.964682
import Foundation /// A Nimble matcher that succeeds when the actual value is greater than the expected value. public func beGreaterThan<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMessage = "be greater ...
__label__POS
0.641693
package com.asf.appcoins.sdk.contractproxy; import com.asf.appcoins.sdk.contractproxy.repository.RemoteRepository; import okhttp3.OkHttpClient; import retrofit2.Retrofit; import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; /** * Created by Joao Raim...
__label__POS
0.996187
package com.asf.appcoins.sdk.contractproxy; import com.asf.appcoins.sdk.contractproxy.proxy.WalletAddressProvider; import com.asf.appcoins.sdk.contractproxy.proxy.Web3jProxyContract; import io.reactivex.Single; import io.reactivex.schedulers.Schedulers; import java.util.Map; public class ContractAddressProvider imple...
__label__POS
0.972983
<?php namespace Appstract\Stock; use DateTimeInterface; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; trait HasStock { /* |-------------------------------------------------------------------------- | Accessors |--------------------------------------------------------------------------...
__label__POS
0.727932
<?php namespace Appstract\Stock\Tests; class QueryScopeTest extends TestCase { /** @test */ public function it_can_check_in_stock() { $queryEmpty = StockModel::whereInStock()->count(); $this->stockModel->setStock(10); $queryResult = StockModel::whereInStock()->count(); $...
__label__POS
0.975702
<?php namespace Appstract\Stock\Tests; class OrderRowTest extends TestCase { /** @test */ public function it_can_create_postitive_order_row() { $this->stockModel->setStock(10); $this->orderRowCreated(5); $this->assertEquals(5, $this->stockModel->stock); } /** @test */ ...
__label__POS
0.964074
package com.asf.appcoins.sdk.contractproxy.repository; import io.reactivex.Single; import retrofit2.http.GET; import retrofit2.http.Query; public class RemoteRepository { private final ApiProvider apiProvider; public RemoteRepository(ApiProvider apiProvider) { this.apiProvider = apiProvider; } public Si...
__label__POS
0.868447
<?php namespace Appstract\Stock\Tests; use Illuminate\Support\Carbon; class HasStockTest extends TestCase { /** @test */ public function it_can_have_no_stock() { $this->assertEquals(0, $this->stockModel->stock); $this->assertTrue($this->stockModel->outOfStock()); } /** @test */ ...
__label__POS
0.900442
<?php namespace Appstract\Stock\Tests; class StockMutationsTest extends TestCase { /** @test */ public function it_can_have_no_mutations() { $this->assertEmpty($this->stockModel->stockMutations->toArray()); } /** @test */ public function it_can_have_some_mutations() { $thi...
__label__POS
0.837517
public final class com/appstractive/jwt/Curve : java/lang/Enum { public static final field P256 Lcom/appstractive/jwt/Curve; public static final field P384 Lcom/appstractive/jwt/Curve; public static final field P521 Lcom/appstractive/jwt/Curve; public static fun getEntries ()Lkotlin/enums/EnumEntries; public stati...
__label__POS
0.98877
public final class com/appstractive/jwt/Curve : java/lang/Enum { public static final field P256 Lcom/appstractive/jwt/Curve; public static final field P384 Lcom/appstractive/jwt/Curve; public static final field P521 Lcom/appstractive/jwt/Curve; public static fun getEntries ()Lkotlin/enums/EnumEntries; public stati...
__label__POS
0.98877
# Vanilla ReAct AI Agent This repository contains the implementation of the [ReAct: Synergizing Reasoning and Acting in Language Models](https://arxiv.org/abs/2210.03629), which is a model that combines reasoning and acting capabilities in language models. The approach is based on the idea of combining reasoning and ...
__label__POS
0.992956
<?php namespace Appstract\Tracer; use File; class Tracer { /** * [$files description]. * @var [type] */ protected $files; /** * [$realPath description]. * @var [type] */ protected $realPath; /** * [$debug description]. * @var [type] */ protected ...
__label__POS
0.983663
<?php namespace Appstract\Tracer; use Illuminate\Support\ServiceProvider; class TracerServiceProvider extends ServiceProvider { /** * Bootstrap the application services. * * @return void */ public function boot(\Illuminate\Contracts\Http\Kernel $kernel) { $this->publishes([ ...
__label__POS
0.960646
LOST_BAGGAGE_POLICY = """ 1. Call the 'initiate_baggage_search' function to start the search process. 2. If the baggage is found: 2a) Arrange for the baggage to be delivered to the customer's address. 3. If the baggage is not found: 3a) Call the 'escalate_to_human' function. 4. If the customer has no further questions...
__label__POS
0.745867
package com.apress.springrecipes.reactive.court; import org.springframework.stereotype.Service; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import java.time.LocalDate; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; @Service public cla...
__label__POS
0.969135
package com.bookstore; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication pu...
__label__POS
0.985692
package com.apress.springrecipes.reactive.court; import org.springframework.stereotype.Component; import reactor.core.publisher.Flux; import javax.annotation.PostConstruct; import java.time.LocalDate; import java.util.Arrays; import java.util.List; import java.util.Random; @Component public class RandomDataInitializ...
__label__POS
0.790564
import Foundation /// A Nimble matcher that succeeds when the actual value is less than /// or equal to the expected value. public func beLessThanOrEqualTo<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMess...
__label__POS
0.67079
extends Node class_name Monitor signal completed var multi_test_list: Array[Dictionary] = [] var multi_test_current := 0 var monitor_duration := 0.0 var monitor_maximum_duration := 10.0 var error_message := "" var success := false var started := false var frame := 0 # physics frame var expected_to_fail := false var en...
__label__POS
0.644455
import Foundation /// A Nimble matcher that succeeds when the actual value is less than the expected value. public func beLessThan<T: Comparable>(_ expectedValue: T?) -> NonNilMatcherFunc<T> { return NonNilMatcherFunc { actualExpression, failureMessage in failureMessage.postfixMessage = "be less than <\(st...
__label__POS
0.652344
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2015 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescribedAs.h> #import <OCHamcrest/HCEvery.h> ...
__label__POS
0.966762
package com.bookstore.service; import java.util.ArrayList; import java.util.List; import com.bookstore.entity.Author; import com.bookstore.repository.AuthorRepository; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @Service public class BookstoreService { ...
__label__POS
0.895301
package com.apress.springrecipes.court.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer; impor...
__label__POS
0.991504
package com.apress.springrecipes.court.config; import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ResourceBundleMessageSource; import org.springframework.web.servle...
__label__POS
0.619345
/** * Title : echo server * Name : Aditya Pratap Singh Rajput * Subject : Network Protocols And Programming using C * * */ #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<unistd.h> // time #define MAXLINE 1024 #define PORT 5035 int main(){ int...
__label__POS
0.850176
extends Node2D func _ready(): test_body_create() test_body_empty() test_body() test_body_collision_exception_invalid() func test_body_collision_exception_invalid(): print("test_body_collision_exception_invalid") PhysicsServer2D.body_add_collision_exception(RID(), RID()) PhysicsServer2D.body_remove_collision_ex...
__label__POS
0.652815
import { resolve } from 'node:path' import { existsSync, writeFileSync } from 'node:fs' import { start, end } from './timer' function getFilepath(region: Region) { const filepath = resolve(__dirname, 'storage', `${region}.json`) return filepath } export function getStorageAppInfo(regions: Region[]) { start('get...
__label__POS
0.690079
<?php namespace Appstract\LushHttp; use Appstract\LushHttp\Exception\LushException; use Appstract\LushHttp\Request\LushRequest; class Lush { public $baseload; public $url; public $parameters = []; public $headers = []; public $options = []; /** * Lush constructor. * * @par...
__label__POS
0.992761
<?php namespace Appstract\LushHttp\Test; use Appstract\LushHttp\Response\LushResponse; abstract class BaseTest extends \PHPUnit_Framework_TestCase { /** * Run all the checks. * * @param LushResponse $response * @param array $options */ protected function checkAll(LushResponse ...
__label__POS
0.842557
extends Node2D @onready var body_a := PhysicsServer2D.body_create() @onready var body_b := PhysicsServer2D.body_create() @onready var body_a_with_space1 := PhysicsServer2D.body_create() @onready var body_b_with_space1 := PhysicsServer2D.body_create() @onready var body_a_with_space2 := PhysicsServer2D.body_create() @on...
__label__POS
0.895119
import { isEmpty } from 'lodash' let state: Record< string, { start: number end: number } > = {} function start(key: string) { if (!isEmpty(state[key])) { console.error(`${key}已经开始`) return } const timestamp = Date.now() console.info(`${key} 开始 `) state[key] = { start: timestamp...
__label__POS
0.623718
extends TestBase @onready var body_a := PhysicsServer2D.body_create() @onready var body_b := PhysicsServer2D.body_create() @onready var body_a_with_space1 := PhysicsServer2D.body_create() @onready var body_b_with_space1 := PhysicsServer2D.body_create() @onready var body_a_with_space2 := PhysicsServer2D.body_create() @...
__label__POS
0.796749
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2017 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCAllOf.h> #import <OCHamcrest/HCAnyOf.h> #import <OCHamcrest/HCArgumentCaptor.h> #import <OCHamcrest/HCAssertThat.h> #import <OCHamcrest/HCConformsToProtocol.h> #import <OCHamcrest/HCDescri...
__label__POS
0.961426
<?php namespace Appstract\LushHttp\Exception; use Appstract\LushHttp\Events\RequestExceptionEvent; class LushRequestException extends BaseException { public $request; public $response; public $message; /** * RequestException constructor. * * @param string $request * @param arra...
__label__POS
0.999267
<?php namespace Appstract\LushHttp\Response; use Illuminate\Support\Collection; trait ResponseGetters { /** * Get the content of the result. * * @return mixed */ public function getResult() { if ($this->autoFormat && ! empty($this->object)) { return $this->object; ...
__label__POS
0.993658
<?php namespace Appstract\LushHttp\Response; use Appstract\LushHttp\Events\ResponseEvent; use Appstract\LushHttp\Request\LushRequest; use JsonSerializable; class LushResponse implements JsonSerializable { use ResponseGetters; protected $content; protected $object; protected $request; protecte...
__label__POS
0.961925
<?php namespace Appstract\LushHttp\Request; trait RequestGetters { /** * Get the payload. * * @return array */ public function getPayload() { return $this->payload; } /** * Get the URL. * * @return mixed|string */ public function getUrl() { ...
__label__POS
0.998277
extends PhysicsPerformanceTest3D @export var shape: PhysicsTest3D.TestCollisionShape = PhysicsTest3D.TestCollisionShape.CONVEX_POLYGON @export var stack_height := 8 @export var body_spacing := 0.1 @export var simulation_duration := 8 func test_description() -> String: return """Checks the stability of the RigidBod...
__label__POS
0.779516
<?php namespace Appstract\LushHttp\Request\Adapter; class Curl implements AdapterInterface { /** * The curl object. * * @var null */ protected $ch = null; /** * Init curl object with url. * * @param $url */ public function init($url) { $this->ch = c...
__label__POS
0.99282
<?php namespace Appstract\LushHttp\Request\Adapter; use Appstract\LushHttp\Exception\LushRequestException; use Exception; class CurlMock implements AdapterInterface { /** * The curl object. * * @var null */ protected $ch = null; /** * @var array */ protected $curlOption...
__label__POS
0.727748
extends PhysicsUnitTest2D var speed := 750 var tolerance = 1.5 var simulation_duration := 1 @onready var spawn_1 := $Spawn1 # max_x < 375 (400-25) @onready var spawn_2 := $Spawn2 # max_x > 975 (100-25) func test_description() -> String: return """Checks if [floor_max_angle] working properly, the body shoould not de...
__label__POS
0.775319
package com.bookstore.service; import com.bookstore.entity.Author; import com.bookstore.repository.AuthorRepository; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.nio.file.Files; import java.sql.Blob; import java.sql.Clob; import java.sql.SQLException; ...
__label__POS
0.745072
package com.bookstore; import com.bookstore.service.InventoryService; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframewor...
__label__POS
0.896065
extends PhysicsUnitTest2D func test_description() -> String: return """ """ func test_name() -> String: return "CollisionShape2D | testing [One Way Collision] with World Boundary 2D" func test_start() -> void: var world_boundary := create_static_body(-25, CENTER) world_boundary.position = BOTTOM_CENTER - Vect...
__label__POS
0.607347
package com.apress.springrecipes.cloud.web; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; import org.springframework.web.servlet.config.annotation.EnableWebMvc; i...
__label__POS
0.776559
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.732701
<!doctype html> <title>CodeMirror: FCL mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <link rel="stylesheet" href="../../theme/elegant.css"> <script src="../../lib/codemirror.js"></script> <script src="../../addon/edit/match...
__label__POS
0.67805
package com.bookstore.controller; import com.bookstore.service.BookstoreService; import com.bookstore.entity.Author; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter; import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider; i...
__label__POS
0.632264
package com.apress.springrecipes.cloud.web; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; import org.springframework.web.servlet.config.annotation.EnableWebMvc; i...
__label__POS
0.776559
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.693728
package com.apress.springrecipes.cloud.config; import org.springframework.cloud.config.java.AbstractCloudConfig; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.conte...
__label__POS
0.849365
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.674717
extends Node class_name Monitor signal completed var multi_test_list: Array[Dictionary] = [] var multi_test_current := 0 var monitor_duration := 0.0 var monitor_maximum_duration := 10.0 var error_message := "" var success := false var started := false var frame := 0 # physics frame var expected_to_fail := false var en...
__label__POS
0.644455
package com.apress.springrecipes.cloud.web; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; import org.springframework.web.servlet.config.annotation.EnableWebMvc; i...
__label__POS
0.943783
package com.citylots.forkjoin; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.List; import java.util.concurrent.ForkJoinPool; import java.util.logging.Level; import java.util.logging.Logger; import org.springframework.context.ApplicationContext; import org.springfra...
__label__POS
0.635109
#import "EXPDoubleTuple.h" @implementation EXPDoubleTuple @synthesize values = _values, size = _size; - (id)initWithDoubleValues:(double *)values size:(size_t)size { if ((self = [super init])) { self.values = malloc(sizeof(double) * size); memcpy(self.values, values, sizeof(double) * size); ...
__label__POS
0.817524
package com.citylots.forkjoin; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.List; import org.springframework.jdbc.core.BatchPreparedStatementSetter; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Component; import org.springframework.transa...
__label__POS
0.603482
#import "EXPFloatTuple.h" @implementation EXPFloatTuple @synthesize values = _values, size = _size; - (id)initWithFloatValues:(float *)values size:(size_t)size { if ((self = [super init])) { self.values = malloc(sizeof(float) * size); memcpy(self.values, values, sizeof(float) * size); sel...
__label__POS
0.815938
extends Node2D func _ready(): test_body_create() test_body_empty() test_body() test_body_collision_exception_invalid() func test_body_collision_exception_invalid(): print("test_body_collision_exception_invalid") PhysicsServer2D.body_add_collision_exception(RID(), RID()) PhysicsServer2D.body_remove_collision_ex...
__label__POS
0.652815
extends Node2D @onready var body_a := PhysicsServer2D.body_create() @onready var body_b := PhysicsServer2D.body_create() @onready var body_a_with_space1 := PhysicsServer2D.body_create() @onready var body_b_with_space1 := PhysicsServer2D.body_create() @onready var body_a_with_space2 := PhysicsServer2D.body_create() @on...
__label__POS
0.895119
extends TestBase @onready var body_a := PhysicsServer2D.body_create() @onready var body_b := PhysicsServer2D.body_create() @onready var body_a_with_space1 := PhysicsServer2D.body_create() @onready var body_b_with_space1 := PhysicsServer2D.body_create() @onready var body_a_with_space2 := PhysicsServer2D.body_create() @...
__label__POS
0.796749
package com.bookstore.service; import com.bookstore.repository.AuthorRepository; import com.bookstore.entity.Author; import java.io.File; import java.io.IOException; import java.nio.file.Files; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service pub...
__label__POS
0.920972
extends PhysicsPerformanceTest3D @export var shape: PhysicsTest3D.TestCollisionShape = PhysicsTest3D.TestCollisionShape.CONVEX_POLYGON @export var stack_height := 8 @export var body_spacing := 0.1 @export var simulation_duration := 8 func test_description() -> String: return """Checks the stability of the RigidBod...
__label__POS
0.779516
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.767456
package com.bookstore; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication pu...
__label__POS
0.881155
//Create keyspace CREATE KEYSPACE IF NOT EXISTS TrafficKeySpace WITH replication = {'class':'SimpleStrategy', 'replication_factor':1}; //Create table CREATE TABLE TrafficKeySpace.Total_Traffic (routeId text , vehicleType text, totalCount bigint, timeStamp timestamp,recordDate text,PRIMARY KEY (routeId,recordDate,veh...
__label__POS
0.996695
package com.apssouza.configuration; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.securit...
__label__POS
0.780666
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.600453
package com.apssouza.kafka; import java.io.Serializable; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; /** * Class to represent the IoT vehicle data. * * @author abaghel * */ public class IoTData implements Serializable{ private String vehicleId; private String vehicleType; pr...
__label__POS
0.706733
<?php /** * PHPExcel * * Copyright (c) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
__label__POS
0.740462
package com.apssouza.iot; import org.apache.spark.SparkConf; import org.apache.spark.streaming.Durations; import org.apache.spark.streaming.api.java.JavaDStream; import org.apache.spark.streaming.api.java.JavaPairDStream; import org.apache.spark.streaming.api.java.JavaReceiverInputDStream; import org.apache.spark.stre...
__label__POS
0.975483
package com.apssouza.iot.batch; import org.apache.kafka.common.TopicPartition; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.sql.AnalysisException; import org.apache.spark.sql.Dataset; import org.apache.spark.sql.Row; import org.apache.spark.sql.SparkSession; import java.util.Map; import java.util...
__label__POS
0.730152
package com.apssouza.bootstrap; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; import com.apssouza.entities.Account; import org.springframework.stereot...
__label__POS
0.744807
package com.apress.springrecipes.bank; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class InMemoryAccountDaoTests { private static final S...
__label__POS
0.635803
package com.apssouza.iot.batch; import com.apssouza.iot.common.dto.IoTData; import com.apssouza.iot.common.dto.POIData; import com.apssouza.iot.common.ProcessorUtils; import com.apssouza.iot.common.PropertyFileReader; import com.datastax.spark.connector.util.JavaApiHelper; import org.apache.spark.SparkConf; import or...
__label__POS
0.700689
package com.apress.springrecipes.bank; import static org.junit.Assert.assertEquals; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class AccountServiceTests { private static final String TEST_ACCOUNT_NO = "1234"; private Acc...
__label__POS
0.916443