content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package edu.brown.hstore.util; import java.util.Arrays; import edu.brown.hstore.util.ArrayCache.IntArrayCache; import edu.brown.hstore.util.ArrayCache.LongArrayCache; import junit.framework.TestCase; public class TestArrayCache extends TestCase { private static final int INITIAL_SIZE = 11; private static fi...
__label__POS
0.977469
import { ApolloMutationController, ApolloQueryController, ApolloSubscriptionController } from '@apollo-elements/core'; import { customElement, state, query } from 'lit/decorators.js'; import { css, html, LitElement } from 'lit'; import { classMap } from 'lit/directives/class-map.js'; import { ProfileQuery } fro...
__label__POS
0.742797
package edu.brown.hstore.estimators.markov; import org.voltdb.VoltProcedure; import org.voltdb.benchmark.tpcc.procedures.slev; import org.voltdb.catalog.Procedure; import edu.brown.BaseTestCase; import edu.brown.hstore.estimators.EstimatorUtil; import edu.brown.hstore.estimators.markov.MarkovEstimate; import edu.brow...
__label__POS
0.753944
#set( $suffix = ".*") package $packageName; import org.voltdb.benchmark.ClientMain; import org.voltdb.compiler.VoltProjectBuilder; import $abstractBenchmark$suffix; import $procPackageName$suffix; public class $className extends AbstractClient { private AbstractTransaction[] m_xacts; public $className(...
__label__POS
0.998086
package edu.brown.oltpgenerator.velocity; import java.io.File; import java.io.FileWriter; import java.util.HashMap; import java.util.Map; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.VelocityEngine; import org.apache.velocity.exception.ParseErrorExcep...
__label__POS
0.875395
package edu.brown.oltpgenerator.test; import edu.brown.oltpgenerator.env.BenchmarkEnv; import edu.brown.oltpgenerator.env.ProcEnv; import edu.brown.oltpgenerator.env.TableEnv; import edu.brown.oltpgenerator.velocity.CodeGenerator; import edu.brown.utils.ArgumentsParser; public class GenHelloWorldBenchmark { publ...
__label__POS
0.999765
/* * Copyright 2024 Apollo Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
__label__POS
0.645655
package edu.brown.oltpgenerator.AbstractBenchmark; import org.voltdb.client.ClientResponse; import org.voltdb.client.ProcedureCallback; import edu.brown.api.BenchmarkComponent; import edu.brown.oltpgenerator.RandUtil; import edu.brown.oltpgenerator.AbstractBenchmark.RandomGenerator.AbstractRandomGenerator; public ab...
__label__POS
0.994507
package edu.brown.oltpgenerator.gui; import java.awt.*; import javax.swing.*; import edu.brown.gui.AbstractViewer; import edu.brown.utils.ArgumentsParser; import edu.brown.oltpgenerator.env.BenchmarkEnv; import edu.brown.oltpgenerator.gui.common.Notifier; import edu.brown.oltpgenerator.gui.common.RandomDistribution....
__label__POS
0.818526
package edu.brown.oltpgenerator.gui.common.RandomDistribution; import javax.swing.JPanel; import org.voltdb.catalog.CatalogType; import edu.brown.oltpgenerator.env.RandomDistribution.RandomDistribution; import edu.brown.oltpgenerator.env.RandomDistribution.RandomDistributionEnv; /** * @author Zhe Zhang * */ pub...
__label__POS
0.999887
/* Generate input test scripts to verify index behaviour. Current functionality: - random width (1 to maxIdxColumn), random type schemas - prng values for all columns - "is", "ls", "if" commands on unique indexes todo: The abbrev (int, bint, sint...) handling is weird and repeated in the voltIdxTypes table as ...
__label__POS
0.741543
/* * EMS - REST API * This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatra...
__label__POS
0.92528
package org.openapitools.client; import java.util.Map; /** * Representing a Server configuration. */ public class ServerConfiguration { public String URL; public String description; public Map<String, ServerVariable> variables; /** * @param URL A URL to the target host. * @param descripti...
__label__POS
0.692506
package org.openapitools.client.infrastructure enum class ResponseType { Success, Informational, Redirection, ClientError, ServerError } interface Response abstract class ApiResponse<T>(val responseType: ResponseType): Response { abstract val statusCode: Int abstract val headers: Map<String,List<String>>...
__label__POS
0.652385
=begin #EMS - REST API #This section will provide necessary information about the `CoinAPI EMS REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> Implemented Standards: * [HTTP1.0](https://datatr...
__label__POS
0.626211
public final class com/apollographql/adapter/core/BigDecimalAdapter : com/apollographql/apollo/api/Adapter { public static final field INSTANCE Lcom/apollographql/adapter/core/BigDecimalAdapter; public synthetic fun fromJson (Lcom/apollographql/apollo/api/json/JsonReader;Lcom/apollographql/apollo/api/CustomScalarAdap...
__label__POS
0.967039
package com.apollographql.adapter.core.test import com.apollographql.adapter.core.BigDecimal import kotlin.test.* class BigDecimalTests { @Test fun equality() { assertEquals(BigDecimal("12345.12345678901234567890123"), BigDecimal("12345.12345678901234567890123")) assertEquals(BigDecimal("98765432109876543...
__label__POS
0.878671
/// A set of cache records. public struct RecordSet: Sendable, Hashable { public private(set) var storage: [CacheKey: Record] = [:] public init<S: Sequence>(records: S) where S.Iterator.Element == Record { insert(contentsOf: records) } public mutating func insert(_ record: Record) { storage[record.key...
__label__POS
0.615095
public final class com/apollographql/adapter/datetime/KotlinxLocalDateAdapter : com/apollographql/apollo/api/Adapter { public static final field INSTANCE Lcom/apollographql/adapter/datetime/KotlinxLocalDateAdapter; public synthetic fun fromJson (Lcom/apollographql/apollo/api/json/JsonReader;Lcom/apollographql/apollo/...
__label__POS
0.98335
import Foundation @_spi(Internal) import ApolloAPI enum ResultNormalizerFactory { static func selectionSetDataNormalizer() -> SelectionSetDataResultNormalizer { SelectionSetDataResultNormalizer() } static func networkResponseDataNormalizer() -> RawJSONResultNormalizer { RawJSONResultNormalizer() } } ...
__label__POS
0.8013
import ApolloAPI final class GraphQLDependencyTracker: GraphQLResultAccumulator { let requiresCacheKeyComputation: Bool = true private var dependentKeys: Set<CacheKey> = Set() func accept(scalar: JSONValue, info: FieldExecutionInfo) { dependentKeys.insert(info.cachePath.joined) } func accept(customSc...
__label__POS
0.825696
public final class com/apollographql/ktor/KtorExtensionsKt { public static final fun ktorClient (Lcom/apollographql/apollo/ApolloClient$Builder;Lio/ktor/client/HttpClient;)Lcom/apollographql/apollo/ApolloClient$Builder; } public final class com/apollographql/ktor/adapter/KtorHttpUrlAdapter : com/apollographql/apollo/...
__label__POS
0.954409
package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. // Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" "subgraph/graph/generated" "su...
__label__POS
0.810997
package com.apollographql.federation.compatibility; import java.util.Collections; import org.jetbrains.annotations.NotNull; import org.springframework.graphql.server.WebGraphQlInterceptor; import org.springframework.graphql.server.WebGraphQlRequest; import org.springframework.graphql.server.WebGraphQlResponse; import ...
__label__POS
0.972088
package com.apollographql.federation.compatibility.model; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import java.util.stream.Stream; import org.jetbrains.annotations.NotNull; public class Product { private static final Ma...
__label__POS
0.724426
package com.apollographql.federation.compatibility.model; import java.util.Map; import org.jetbrains.annotations.NotNull; public class DeprecatedProduct { public static DeprecatedProduct DEPRECATED_PRODUCT = new DeprecatedProduct("apollo-federation-v1", "@apollo/federation-v1", "Migrate to Federation V2"); ...
__label__POS
0.741913
package com.apollographql.federation.compatibility.model; import java.util.HashMap; import java.util.List; import java.util.Map; import org.jetbrains.annotations.NotNull; public class ProductResearch { public static final ProductResearch FEDERATION_STUDY = new ProductResearch(new CaseStudy("1234", "Federation Stu...
__label__POS
0.990309
package com.apollographql.federation.compatibility.model; import java.util.Map; import org.jetbrains.annotations.NotNull; public class User { public static User DEFAULT_USER = new User("support@apollographql.com"); private final String email; private final String name; private Integer totalProductsC...
__label__POS
0.850163
using GraphQL; using GraphQL.Federation; namespace ApolloFederation.SubgraphCompatibility.Products.Types; [Key("email")] public class User { public User(string email, string? name) { Email = email; Name = name; } [Requires("totalProductsCreated yearsOfEmployment")] public int? Ave...
__label__POS
0.862065
package org.acme.microprofile.graphql; import java.util.ArrayList; import java.util.List; import io.smallrye.graphql.api.federation.Key; import io.smallrye.graphql.api.federation.FieldSet; import io.smallrye.graphql.api.federation.Provides; import io.smallrye.graphql.api.federation.Tag; import io.smallrye.graphql.api....
__label__POS
0.715341
package org.acme.microprofile.graphql; import io.smallrye.graphql.api.federation.Key; import io.smallrye.graphql.api.federation.FieldSet; import org.eclipse.microprofile.graphql.NonNull; @Key(fields = @FieldSet("sku package")) public class DeprecatedProduct { public static DeprecatedProduct DEPRECATED_PRODUCT = n...
__label__POS
0.958844
package org.acme.microprofile.graphql; import java.util.List; import io.smallrye.graphql.api.federation.Key; import io.smallrye.graphql.api.federation.FieldSet; import org.eclipse.microprofile.graphql.NonNull; @Key(fields = @FieldSet("study { caseNumber }")) public class ProductResearch { public static final Prod...
__label__POS
0.99465
package org.acme.microprofile.graphql; import io.smallrye.graphql.api.federation.Key; import io.smallrye.graphql.api.federation.FieldSet; import io.smallrye.graphql.api.federation.External; import io.smallrye.graphql.api.federation.Override; import org.eclipse.microprofile.graphql.NonNull; import org.eclipse.microprofi...
__label__POS
0.816327
using ApolloGraphQL.HotChocolate.Federation; namespace Products; [Key("email")] [Extends] public class User { public User(string email, string? name) { Email = email; Name = name; } [Requires("totalProductsCreated yearsOfEmployment")] public int? GetAverageProductsCreatedPerYear()...
__label__POS
0.851705
namespace Products; public class Data { private static ProductDimension Dimension = new("small", 1, "kg"); private static User DefaultUser = new("support@apollographql.com", "Jane Smith"); private static ProductResearch FederationStudy = new(new CaseStudy("1234", "Federation Study"), null); private sta...
__label__POS
0.741335
package models import caliban.InputValue import caliban.schema.{ ArgBuilder, Schema } sealed trait ProductArgs object ProductArgs { case class IdOnly(id: ID) extends ProductArgs case class SkuAndPackage(sku: String, `package`: String) extends ProductArgs...
__label__POS
0.706792
package resolver import ( "math" "graphql-go-compatibility/model" ) func FindDeprecatedProductBySkuAndPackage(sku string, packageArg string) (*model.DeprecatedProduct, error) { for i := range deprecatedProducts { if deprecatedProducts[i].Sku == sku && deprecatedProducts[i].Package == packageArg { return depr...
__label__POS
0.983368
package com.netflix.graphql.dgs.compatibility.model; import org.jetbrains.annotations.NotNull; import java.util.List; public class Product { public static List<Product> PRODUCTS = List.of( new Product("apollo-federation", "federation", "@apollo/federation", "OSS"), new Product("apollo-stu...
__label__POS
0.964593
package com.netflix.graphql.dgs.compatibility.model; public class DeprecatedProduct { public static DeprecatedProduct DEPRECATED_PRODUCT = new DeprecatedProduct("apollo-federation-v1", "@apollo/federation-v1", "Migrate to Federation V2"); private final String sku; private final String pkg; private fin...
__label__POS
0.983645
package graphql.kickstart.federation.compatibility.resolvers; import graphql.kickstart.federation.compatibility.model.Product; import java.util.HashMap; import java.util.Map; import org.jetbrains.annotations.NotNull; import org.springframework.stereotype.Component; @Component public class ProductReferenceResolver { ...
__label__POS
0.888168
package graphql.kickstart.federation.compatibility.model; import static graphql.kickstart.federation.compatibility.model.ProductResearch.FEDERATION_STUDY; import static graphql.kickstart.federation.compatibility.model.ProductResearch.STUDIO_STUDY; import static graphql.kickstart.federation.compatibility.model.User.DEF...
__label__POS
0.907351
/** * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.te...
__label__POS
0.985326
/** * Exchange Rates Realtime REST API * * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { V1ChainNetworkAddress } from './v1ChainNetworkAddress'; /** * R...
__label__POS
0.909793
// tslint:disable /** * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://op...
__label__POS
0.645535
note description: "API tests for EXCHANGERATES_API" date: "$Date$" revision: "$Revision$" class EXCHANGERATES_API_TEST inherit EQA_TEST_SET feature -- Test routines test_specific_rate -- Get specific rate -- -- Retrieves the exchange rate for a specific bas...
__label__POS
0.875039
note description:"[ Exchange Rates Realtime REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: v1 Contact: support@apibricks.io NOTE: This class is auto generated by OpenAPI Generator (https://opena...
__label__POS
0.61041
note description:"[ Exchange Rates Realtime REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: v1 Contact: support@apibricks.io NOTE: This class is auto generated by OpenAPI Generator (https://opena...
__label__POS
0.756879
import type { DocumentNode } from "@apollo/client"; import { getOperationDefinition } from "@apollo/client/utilities/internal"; function isOperation( document: DocumentNode, operation: "query" | "mutation" | "subscription" ) { return getOperationDefinition(document)?.operation === operation; } /** * Determine ...
__label__POS
0.78362
note description: "Summary description for {JSON_BASIC_REFLECTOR_DESERIALIZER}." date: "$Date$" revision: "$Revision$" class JSON_BASIC_REFLECTOR_DESERIALIZER inherit JSON_DESERIALIZER redefine reset end JSON_TYPE_UTILITIES_EXT feature -- Conversion from_json (a_json: detachable JSON_VALUE; ctx: JSON...
__label__POS
0.625568
/* * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by the OAS code generator program. * https://githu...
__label__POS
0.728887
/* * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by the OAS code generator program. * https://githu...
__label__POS
0.840145
/* * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by the OAS code generator program. * https://githu...
__label__POS
0.817496
/* * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by the OAS code generator program. * https://githu...
__label__POS
0.605353
/* * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by the OAS code generator program. * https://githu...
__label__POS
0.907441
/* * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by the OAS code generator program. * https://githu...
__label__POS
0.822832
public class OAS { private static final String HEADER_CONTENT_TYPE = 'Content-Type'; private static final String HEADER_ACCEPT = 'Accept'; private static final String HEADER_ACCEPT_DELIMITER = ','; private static final Map<String, String> DELIMITERS = new Map<String, String> { 'csv' => ',', ...
__label__POS
0.807744
--[[ Exchange Rates Realtime REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: v1 Contact: support@apibricks.io Generated by: https://openapi-generator.tech ]] --package openapiclient local http_request ...
__label__POS
0.745564
--[[ Exchange Rates Realtime REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: v1 Contact: support@apibricks.io Generated by: https://openapi-generator.tech ]] --package openapiclient local http_request ...
__label__POS
0.786568
### Apollo Go 客户端 1 项目地址:[apolloconfig/agollo](https://github.com/apolloconfig/agollo) > 非常感谢[@zouyx](https://github.com/zouyx)提供Go Apollo客户端的支持 ### Apollo Go 客户端 2 项目地址:[philchia/agollo](https://github.com/philchia/agollo) > 非常感谢[@philchia](https://github.com/philchia)提供Go Apollo客户端的支持 ### Apollo Go 客户端 3 项目地址:[sh...
__label__POS
0.985845
### Apollo NodeJS 客户端 1 项目地址:[node-apollo](https://github.com/Quinton/node-apollo) > 非常感谢[@Quinton](https://github.com/Quinton)提供NodeJS Apollo客户端的支持 ### Apollo NodeJS 客户端 2 项目地址:[ctrip-apollo](https://github.com/kaelzhang/ctrip-apollo) > 非常感谢[@kaelzhang](https://github.com/kaelzhang)提供NodeJS Apollo客户端的支持 ### Apollo...
__label__POS
0.901465
### 1. windows怎么执行build.sh? 安装[Git Bash](https://git-for-windows.github.io/),然后运行 “./build.sh” 注意前面 “./” ### 2. 本地运行时Portal一直报Env is down. 默认config service启动在8080端口,admin service启动在8090端口。请确认这两个端口是否被其它应用程序占用。 如果还伴有异常信息:org.springframework.web.client.HttpClientErrorException: 405 Method Not Allowed,一般是由于本地启动了`Shadow...
__label__POS
0.945269
/** * Exchange Rates Realtime REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Contact: support@apibricks.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.te...
__label__POS
0.791712
// // AUTO-GENERATED FILE, DO NOT MODIFY! // // @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first // ignore_for_file: constant_identifier_names // ignore_for_file: lines_longer_than_80_chars import 'package:openapi/api.dart'; import 'package:te...
__label__POS
0.745983
<?php /** * Configuration * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapitools/opena...
__label__POS
0.729849
<?php /** * HeaderSelector * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapitools/open...
__label__POS
0.603032
<?php /** * V1ChainNetworkAddress * * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapi...
__label__POS
0.715192
<?php /** * V1Asset * * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-...
__label__POS
0.776887
<?php /** * V1ExchangeRate * * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapitools/o...
__label__POS
0.739738
<?php /** * ModelInterface * * PHP version 8.1 * * @category Class * @package OpenAPI\Client\Model * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapit...
__label__POS
0.980385
<?php /** * V1ExchangeRates * * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapitools/...
__label__POS
0.750227
<?php /** * V1Icon * * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-g...
__label__POS
0.73716
<?php /** * V1ExchangeRatesRate * * PHP version 8.1 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Exchange Rates Realtime REST API * * No description provided (generated by Openapi Generator https://github.com/openapito...
__label__POS
0.735845
import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; /// tests for ExchangeRatesApi void main() { final instance = Openapi().getExchangeRatesApi(); group(ExchangeRatesApi, () { // Get specific rate // // Retrieves the exchange rate for a specific base and quote asset at a given tim...
__label__POS
0.857616
# Managing pagination manually Using the [`ApolloStore`](https://apollographql.github.io/apollo-kotlin-normalized-cache/kdoc/normalized-cache/com.apollographql.cache.normalized/-apollo-store/index.html) APIs, you can update the cache manually whenever you fetch a new page of data. Here's a general outline of how you ...
__label__POS
0.97965
public final class com/apollographql/cache/normalized/testing/CacheKeyKt { public static final fun append-eNSUWrY (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String; public static final fun fieldKey-eNSUWrY (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; public static final fun keyToString-pWl1Des (Lj...
__label__POS
1.000006
public final class com/apollographql/cache/normalized/ApolloStore { public fun <init> (Lcom/apollographql/cache/normalized/CacheManager;Lcom/apollographql/apollo/api/CustomScalarAdapters;)V public final fun accessCache (Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final ...
__label__POS
0.997051
(ns exchange-rates-realtime-rest-api.api.exchange-rates (:require [exchange-rates-realtime-rest-api.core :refer [call-api check-required-params with-collection-format *api-context*]] [clojure.spec.alpha :as s] [spec-tools.core :as st] [orchestra.core :refer [defn-spec]] ...
__label__POS
0.980686
public final class com/apollographql/cache/normalized/sql/SqlNormalizedCache : com/apollographql/cache/normalized/api/NormalizedCache { public fun clearAll (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun dump (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public fun loadRecord-7OwBRqc (Ljava/la...
__label__POS
0.988921
public final class com/apollographql/cache/normalized/sql/ApolloInitializer : androidx/startup/Initializer { public static final field Companion Lcom/apollographql/cache/normalized/sql/ApolloInitializer$Companion; public fun <init> ()V public synthetic fun create (Landroid/content/Context;)Ljava/lang/Object; public...
__label__POS
0.991886
package com.apollographql.cache.normalized.sql import app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver import com.apollographql.cache.normalized.api.NormalizedCacheFactory import java.io.File import java.util.Properties /** * @param url Database connection URL in the form of `jdbc:sqlite:path` where `path` is...
__label__POS
0.626621
#include <iostream> #include <sstream> #include <cstdlib> #include <map> #include <list> #include <cstring> #include "Helpers.h" #include "Object.h" using namespace std; using namespace Tizen::ArtikCloud; void helper_func(JsonObject *object, const gchar* member_name, JsonNode *member_node,gpointer user_data) { gcha...
__label__POS
0.781922
query GetBooksByIds($bookIds: [ID!]!) { viewer { libraries(limit: 1) { books(bookIds: $bookIds) { name year } } } } query GetBooksByIdsPaginated($bookIds: [ID!]!, $after: String) { viewer { libraries(limit: 1) { booksPaginated(bookIds: $bookIds, after: $after) { ...
__label__POS
0.963274
type ComplicatedArgs { intArgField(intArg: Int): String nonNullIntArgField(nonNullIntArg: Int!): String stringArgField(stringArg: String): String booleanArgField(booleanArg: Boolean): String enumArgField(enumArg: FurColor): String floatArgField(floatArg: Float): String idArgField(idArg: ID): String stri...
__label__POS
0.61852
import re # Input: Your C# list as a multi-line string csharp_input = """ public static readonly Npc Unknown = new() { Ids = new int[] { 0 }, Name = "Unknown" }; public static readonly Npc RitualPriest = new() { Ids = new int[] { 94, 2831 }, Name = "Ritual Priest" }; public static readonly Npc CanthanGuard = n...
__label__POS
0.973159
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> <id>zipdist</id> ...
__label__POS
0.601704
/* * Copyright © 2018-2019 Apollo Foundation */ package com.apollocurrency.aplwallet.apl.exec; import java.util.Objects; import java.util.Optional; import java.util.Properties; public class CustomDirLocations { public static final String DB_DIR_PROPERTY_NAME = "apl.customDbDir"; public static final String...
__label__POS
0.646794
/* * Copyright © 2018-2019 Apollo Foundation */ package com.apollocurrency.aplwallet.apl.crypto; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import static org.junit.jupiter.api.Ass...
__label__POS
0.83447
/* * Copyright © 2018-2019 Apollo Foundation */ package com.apollocurrency.aplwallet.apl.crypto; import org.junit.jupiter.api.Test; import java.util.Arrays; import java.util.List; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import...
__label__POS
0.740951
/* * Copyright (c) 2018-2021. Apollo Foundation. */ package com.apollocurrency.aplwallet.apl.crypto; import java.math.BigInteger; import java.util.Objects; /** * @author andrew.zinchenko@gmail.com */ public class AplIdGenerator { public interface IdGenerator { BigInteger getIdByHash(byte[] hash); ...
__label__POS
0.998094
/* Reed Solomon Encoding and Decoding for Apl Version: 1.0, license: Public Domain, coder: NxtChg (admin@nxtchg.com) Java Version: ChuckOne (ChuckOne@mail.de). */ package com.apollocurrency.aplwallet.apl.crypto; final class ReedSolomon { private static final int[] initial_codeword = {1, 0, 0, 0, 0, 0...
__label__POS
0.945905
/* * Copyright © 2013-2016 The Nxt Core Developers. * Copyright © 2016-2017 Jelurida IP B.V. * * See the LICENSE.txt file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with Jelurida B.V., * no part of the Nxt software, in...
__label__POS
0.960259
package com.apollocurrency.aplwallet.apl.crypto.cert; import io.firstbridge.cryptolib.AsymCryptor; import io.firstbridge.cryptolib.AsymKeysHolder; import io.firstbridge.cryptolib.CryptoConfig; import io.firstbridge.cryptolib.CryptoFactory; import io.firstbridge.cryptolib.CryptoNotValidException; import io.firstbridge....
__label__POS
0.945771
package com.apollocurrency.aplwallet.apl.crypto.cert; import io.firstbridge.cryptolib.CryptoNotValidException; import io.firstbridge.cryptolib.KeyGenerator; import io.firstbridge.cryptolib.KeyWriter; import io.firstbridge.cryptolib.csr.CertificateRequestData; import io.firstbridge.cryptolib.csr.X509CertOperations; imp...
__label__POS
0.732683
package com.apollocurrency.aplwallet.apl.crypto.cert; import io.firstbridge.cryptolib.KeyReader; import io.firstbridge.cryptolib.KeyWriter; import io.firstbridge.cryptolib.impl.KeyReaderImpl; import io.firstbridge.cryptolib.impl.KeyWriterImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.Fi...
__label__POS
0.934041
package com.apollocurrency.aplwallet.apl.crypto.cert; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Arrays; /** * @author alukin@gmail.com */ public class ActorType { //actor types public static final int NODE = 1; public static final int SERVICE = 2; public static final in...
__label__POS
0.999891
#include <stdlib.h> #include <stdio.h> #include "../include/apiClient.h" #include "../include/list.h" #include "../external/cJSON.h" #include "../include/keyValuePair.h" #include "../include/binary.h" #include "../model/v1_exchange_rate.h" #include "../model/v1_exchange_rates.h" // Get specific rate // // Retrieves t...
__label__POS
0.904663
/* * Copyright © 2018-2021 Apollo Foundation */ package com.apollocurrency.aplwallet.apl.dex.eth.model; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; cl...
__label__POS
0.793984
package com.apollocurrency.aplwallet.apl.dex.config; import com.apollocurrency.aplwallet.apl.util.cdi.config.Property; import com.google.common.base.Preconditions; import javax.inject.Inject; import javax.inject.Singleton; @Singleton public class DexConfig { private static final int DEFAULT_DEX_MIN_TIME_OF_ATOMI...
__label__POS
0.635739
package com.apollocurrency.aplwallet.apl.dex.core.mapper; import com.apollocurrency.aplwallet.apl.dex.core.model.SwapDataInfo; import com.apollocurrency.aplwallet.apl.dex.eth.utils.EthUtil; import org.web3j.tuples.generated.Tuple9; import java.math.BigInteger; public class SwapDataInfoMapper { public static Sw...
__label__POS
0.999937
package com.apollocurrency.aplwallet.apl.dex.core.mapper; import com.apollocurrency.aplwallet.apl.dex.core.model.DexCandlestick; import com.apollocurrency.aplwallet.apl.dex.core.model.DexCurrency; import org.jdbi.v3.core.mapper.RowMapper; import org.jdbi.v3.core.statement.StatementContext; import java.sql.ResultSet; ...
__label__POS
0.988621