content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.decapitalized_fields.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomSc...
__label__POS
0.817434
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.decapitalized_fields.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String; public class Hor...
__label__POS
0.988536
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.simple_fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapters; ...
__label__POS
0.925835
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.simple_fragment.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String; public class HumanDet...
__label__POS
0.928602
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.simple_fragment.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarA...
__label__POS
0.693263
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.simple_fragment.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String; public class HeroDeta...
__label__POS
0.962541
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.simple_fragment.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarA...
__label__POS
0.815574
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.typepolicy; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapters; impor...
__label__POS
0.930917
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.typepolicy; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapters; impor...
__label__POS
0.947013
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.typepolicy; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapters; impor...
__label__POS
0.872169
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.typepolicy.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String; public class AFragment1 im...
__label__POS
0.931631
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.typepolicy.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String; public class AFragment2 im...
__label__POS
0.9191
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.typepolicy.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapte...
__label__POS
0.826777
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.typepolicy.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapte...
__label__POS
0.805862
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.hero_with_review; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapters;...
__label__POS
0.94069
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.hero_with_review.type; import com.apollographql.apollo.api.EnumType; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.Suppress...
__label__POS
0.776542
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.java_jsr305_annotations; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAd...
__label__POS
0.84664
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.java_jsr305_annotations.type; import com.apollographql.apollo.api.Optional; import java.lang.Integer; import java.lang.Object; import java.lang.Override; import java.lang....
__label__POS
0.871147
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.java_jsr305_annotations.type; import com.apollographql.apollo.api.CompiledArgumentDefinition; import com.apollographql.apollo.api.ObjectType; public class Query { publi...
__label__POS
0.999994
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api...
__label__POS
0.778698
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String;...
__label__POS
0.944329
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.a...
__label__POS
0.814025
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.a...
__label__POS
0.812629
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String;...
__label__POS
0.931145
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String;...
__label__POS
0.947323
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.a...
__label__POS
0.815448
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Fragment; import java.lang.Object; import java.lang.Override; import java.lang.String;...
__label__POS
0.97881
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.fragment_spread_with_include_directive.fragment; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.a...
__label__POS
0.816217
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.subscriptions; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAdapters; im...
__label__POS
0.924769
P CODE 00 P UNITS CUST 0 P arrayDim N 317Y0 VIA MD0157PA00X-020130Y-004931X0315Y0000R000S3 317Y0 VIA MD0157PA00X+001939Y-007786X0315Y0000R000S3 317Y0 VIA MD0157PA00X+005205Y-004425X0315Y0000R000S3 317Y0 VIA MD0157PA00X-020186Y-0014...
__label__POS
0.648502
// // AUTO-GENERATED FILE. DO NOT MODIFY. // // This class was automatically generated by Apollo GraphQL version '$VERSION'. // package com.example.interface_always_nested; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CompiledField; import com.apollographql.apollo.api.CustomScalarAd...
__label__POS
0.963084
package com.apollographql.apollo.compiler.ir import java.math.BigInteger /** * Helper function to compute the intersection of multiple Sets */ internal fun <T> Collection<Set<T>>.intersection(): Set<T> { if (isEmpty()) { return emptySet() } return drop(1).fold(first()) { acc, list -> acc.intersect(li...
__label__POS
0.872797
package com.apollographql.apollo.compiler.model import com.apollographql.apollo.annotations.ApolloInternal import kotlinx.serialization.Serializable import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json import kotlinx.serialization.json.JsonElement import java.io.File @ApolloInternal @Ser...
__label__POS
0.689202
# roszsh - functions to support ROS users # Useful things to know: # 'local' variables get unset after function, all others stay forever # 'reply' is the var used by zsh compctl builtin function _rossed { if [[ `uname` == Darwin || `uname` == FreeBSD ]]; then sed -E "$@" else sed -r "$@" fi...
__label__POS
0.866086
# rosbash - functions to support ROS users # Useful things to know: # 'local' variables get unset after function, all others stay forever # COMPREPLY is the var used by bash complete builtin function _rossed { if [[ `uname` == Darwin || `uname` == FreeBSD ]]; then sed -E "$@" else sed -r "$@" ...
__label__POS
0.728722
package com.apollographql.apollo.compiler.codegen.kotlin.helpers import com.squareup.kotlinpoet.CodeBlock import com.squareup.kotlinpoet.joinToCode internal fun List<CodeBlock>.toListInitializerCodeblock(withNewLines: Boolean = false): CodeBlock { if (isEmpty()) { return CodeBlock.of("emptyList()") } retu...
__label__POS
0.85091
#include <stdio.h> #include <math.h> #include <stdlib.h> int get_flat_index(int* indices, int* strides, int ndim) { int flat_index = 0; for (int i = 0; i < ndim; i++) { flat_index += indices[i] * strides[i]; } return flat_index; } void check_bool(float* a, float* result, size_t totalsize, floa...
__label__POS
0.609977
public abstract interface class com/apollographql/apollo/cache/normalized/ApolloStore { public static final field Companion Lcom/apollographql/apollo/cache/normalized/ApolloStore$Companion; public abstract fun accessCache (Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public abstract fun clearAll ()Z public a...
__label__POS
0.999392
#include "tensor.h" Tensor* model(Tensor* inp, Tensor* w1, Tensor* w2) { printf("forward pass\n"); Tensor* res = inp; for (int l = 0; l < 2; l++) { printf("layer %d\n", l); if (l == 0) res = matmul(res, w1); else res = matmul(res, w2); print_tensor(r...
__label__POS
0.983932
public final class com/apollographql/apollo/cache/normalized/sql/ApolloInitializer : androidx/startup/Initializer { public static final field Companion Lcom/apollographql/apollo/cache/normalized/sql/ApolloInitializer$Companion; public fun <init> ()V public synthetic fun create (Landroid/content/Context;)Ljava/lang/O...
__label__POS
0.612027
package com.apollographql.apollo.cache.normalized.sql.internal import com.apollographql.apollo.cache.normalized.api.Record /** * A database that can store [Record] * * All calls are synchronous, the calling code is expected to handle threading. * */ internal interface RecordDatabase { /** * @return the [Rec...
__label__POS
0.638874
public final class com/apollographql/apollo/ApolloCall : com/apollographql/apollo/api/MutableExecutionOptions { public fun addExecutionContext (Lcom/apollographql/apollo/api/ExecutionContext;)Lcom/apollographql/apollo/ApolloCall; public synthetic fun addExecutionContext (Lcom/apollographql/apollo/api/ExecutionContext...
__label__POS
0.933089
public final class com/apollographql/apollo/ApolloCall : com/apollographql/apollo/api/MutableExecutionOptions { public fun addExecutionContext (Lcom/apollographql/apollo/api/ExecutionContext;)Lcom/apollographql/apollo/ApolloCall; public synthetic fun addExecutionContext (Lcom/apollographql/apollo/api/ExecutionContext...
__label__POS
0.935738
package test.network import com.apollographql.apollo.internal.MultipartReader import okio.Buffer import okio.use import kotlin.test.Test import kotlin.test.assertEquals class MultipartReaderTest { @Test fun finishesGraceFully() { val response = buildString { append("--graphql\r\n") append("conte...
__label__POS
0.928819
public abstract interface class com/apollographql/apollo/cache/http/ApolloHttpCache { public abstract fun clearAll ()V public abstract fun read (Ljava/lang/String;)Lcom/apollographql/apollo/api/http/HttpResponse; public abstract fun remove (Ljava/lang/String;)V public abstract fun write (Lcom/apollographql/apollo/a...
__label__POS
0.999511
package com.apollographql.apollo.cache.http.internal import com.apollographql.apollo.api.http.HttpRequest import com.apollographql.apollo.api.http.HttpResponse import com.apollographql.apollo.api.http.valueOf import com.apollographql.apollo.cache.http.CachingHttpInterceptor import com.apollographql.apollo.network.http...
__label__POS
0.650634
public abstract interface class com/apollographql/apollo/api/Adapter { public abstract fun fromJson (Lcom/apollographql/apollo/api/json/JsonReader;Lcom/apollographql/apollo/api/CustomScalarAdapters;)Ljava/lang/Object; public abstract fun toJson (Lcom/apollographql/apollo/api/json/JsonWriter;Lcom/apollographql/apollo/...
__label__POS
0.953682
/* * treeiksolver.hpp * * Created on: Nov 28, 2008 * Author: rubensmits */ #ifndef TREEIKSOLVER_HPP_ #define TREEIKSOLVER_HPP_ #include "tree.hpp" #include "jntarray.hpp" #include "frames.hpp" #include <map> namespace KDL { typedef std::map<std::string, Twist> Twists; typedef std::map<std::string, Jacobi...
__label__POS
0.767386
package test import com.apollographql.apollo.api.AnyAdapter import com.apollographql.apollo.api.CustomScalarAdapters import com.apollographql.apollo.api.LongAdapter import com.apollographql.apollo.api.json.MapJsonReader import com.apollographql.apollo.api.json.MapJsonWriter import com.apollographql.apollo.api.json.bui...
__label__POS
0.675036
#include "velocityprofiletest.hpp" #include <frames_io.hpp> CPPUNIT_TEST_SUITE_REGISTRATION( VelocityProfileTest ); using namespace KDL; void VelocityProfileTest::setUp() { } void VelocityProfileTest::tearDown() { } void VelocityProfileTest::TestTrap_MaxVelocity1() { // 2 second ramp up (cover 2 distance), // 2 s...
__label__POS
0.691252
public final class com/apollographql/apollo/gradle/task/ApolloComputeUsedCoordinatesEntryPoint { public static final field Companion Lcom/apollographql/apollo/gradle/task/ApolloComputeUsedCoordinatesEntryPoint$Companion; public fun <init> ()V public static final fun run (Ljava/util/List;Ljava/io/File;)V } public fi...
__label__POS
0.978204
# gpandas Library Features This document outlines the user-facing features available in the `gpandas` library. ### DataFrame Creation * **`DataFrame(columns []string, data []Column, columns_types map[string]any) (*dataframe.DataFrame, error)`**: Creates a new DataFrame from in-memory data. You provide the column n...
__label__POS
0.733057
package dataframe import ( "errors" "fmt" "github.com/apoplexi24/gpandas/utils/collection" ) // MergeHow represents the type of merge operation type MergeHow string const ( LeftMerge MergeHow = "left" RightMerge MergeHow = "right" InnerMerge MergeHow = "inner" FullMerge MergeHow = "full" ) // Merge combin...
__label__POS
0.669571
package collection import "errors" // Set is an alias for a map representing an unordered collection of unique elements of type T. // Type T must be comparable. type Set[T comparable] map[T]struct{} // NewSet creates and initializes a new empty Set. // If an initial size is provided, the set will be pre-allocated wi...
__label__POS
0.636512
public final class com/apollographql/apollo/mockserver/MockServer { public fun <init> ()V } public final class com/apollographql/apollo/mockserver/WebsocketMockRequest { public fun <init> ()V } public final class com/apollographql/apollo/testing/MapTestNetworkTransport : com/apollographql/apollo/network/NetworkTran...
__label__POS
0.999024
public class com/apollographql/apollo/api/java/Assertions { public fun <init> ()V public static fun checkNotNull (Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; } public final class com/apollographql/apollo/api/java/adapter/GuavaOptionalAdapter : com/apollographql/apollo/api/Adapter { public fun <init> (Lc...
__label__POS
0.999688
public abstract interface annotation class com/apollographql/apollo/annotations/ApolloAdaptableWith : java/lang/annotation/Annotation { public abstract fun adapter ()Ljava/lang/Class; } public abstract interface annotation class com/apollographql/apollo/annotations/ApolloDeprecatedSince : java/lang/annotation/Annotat...
__label__POS
0.999301
<?php namespace ReceiptValidator\AppleAppStore\JWT; use Lcobucci\JWT\Signer; /** * Represents the issuer of an App Store Connect API token. * * This immutable data object encapsulates all the necessary components for * identifying the token's issuer: the issuer ID, the app's bundle ID, * the signing key, and th...
__label__POS
0.897884
package test import com.apollographql.apollo.api.Optional import variables.NonNullVariableWithDefaultValueQuery import variables.NullableVariableQuery import variables.NullableVariableWithDefaultValueQuery import variables.NullableVariableWithOptionalFalseDirectiveQuery import kotlin.test.Test import kotlin.test.asser...
__label__POS
0.700716
package lexer_test import ( "strings" "testing" "github.com/aporia-ai/kubesurvival/v2/pkg/lexer" "github.com/stretchr/testify/assert" ) func TestScannerOneDigit(t *testing.T) { s := lexer.NewScanner(strings.NewReader("9")) assertToken(t, s, lexer.INTEGER, "9") assertToken(t, s, lexer.EOF, "EOF") } func TestS...
__label__POS
0.890533
package parser_test import ( "bufio" "io" "strings" "testing" "github.com/aporia-ai/kubesurvival/v2/pkg/lexer" "github.com/aporia-ai/kubesurvival/v2/pkg/parser" "github.com/stretchr/testify/assert" ) func TestEmptyPod(t *testing.T) { p := newParserNoPositions(strings.NewReader("pod()")) expression := p.Par...
__label__POS
0.665627
package parser import ( "fmt" "strconv" "strings" "github.com/aporia-ai/kubesurvival/v2/pkg/lexer" ) type Parser struct { Errors []ParseError scanner *lexer.Scanner lookahead lexer.Token } // NewParser returns a new instance of Parser. func NewParser(scanner *lexer.Scanner) *Parser { return &Parser{ ...
__label__POS
0.876124
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
package test.circular_cache_read import circular_cache_read.GetUserQuery import com.apollographql.apollo.api.CustomScalarAdapters import com.apollographql.apollo.cache.normalized.ApolloStore import com.apollographql.apollo.cache.normalized.api.MemoryCacheFactory import com.apollographql.apollo.testing.internal.runTest...
__label__POS
0.79502
package data.builders; import com.apollographql.apollo.api.Adapter; import com.apollographql.apollo.api.CustomScalarAdapters; import com.apollographql.apollo.api.json.JsonReader; import com.apollographql.apollo.api.json.JsonWriter; import org.jetbrains.annotations.NotNull; public class MyLong { public Long value; ...
__label__POS
0.735215
package test import com.apollographql.apollo.api.getOrThrow import com.apollographql.apollo.api.graphQLErrorOrNull import com.apollographql.apollo.exception.ApolloGraphQLException import `throw`.PriceNullQuery import `throw`.ProductIgnoreErrorsQuery import `throw`.ProductNullQuery import `throw`.ProductQuery import `t...
__label__POS
0.615675
package test import com.apollographql.apollo.api.graphQLErrorOrNull import com.apollographql.apollo.api.getOrNull import com.apollographql.apollo.api.getOrThrow import result.PriceNullQuery import result.ProductIgnoreErrorsQuery import result.ProductNullQuery import result.ProductQuery import result.ProductResultQuery...
__label__POS
0.674199
package test import com.apollographql.apollo.api.getOrThrow import com.apollographql.apollo.api.graphQLErrorOrNull import com.apollographql.apollo.exception.ApolloGraphQLException import `throw`.PriceNullQuery import `throw`.ProductIgnoreErrorsQuery import `throw`.ProductNullQuery import `throw`.ProductQuery import `t...
__label__POS
0.615675
package test import com.apollographql.apollo.api.graphQLErrorOrNull import com.apollographql.apollo.api.getOrNull import com.apollographql.apollo.api.getOrThrow import result.PriceNullQuery import result.ProductIgnoreErrorsQuery import result.ProductNullQuery import result.ProductQuery import result.ProductResultQuery...
__label__POS
0.674199
(ns parts.auth-test (:require [buddy.sign.jwt :as jwt] [clojure.test :refer [deftest is testing use-fixtures]] [parts.auth :as auth] [parts.entity.user :as user] [parts.helpers.test-factory :as factory] [parts.helpers.utils :refer [with-test-db]]) (:import (java.time Instant))) (use-fixtures :...
__label__POS
0.807202
(ns parts.entity.system-test (:require [clojure.test :refer [deftest is testing use-fixtures]] [parts.db :as db] [parts.entity.part :as part] [parts.entity.relationship :as relationship] [parts.entity.system :as system] [parts.helpers.utils :refer [register-test-user with-test-db]])) (use-fixtures ...
__label__POS
0.785014
(ns parts.entity.relationship-test (:require [clojure.test :refer [deftest is testing use-fixtures]] [parts.entity.relationship :as relationship] [parts.entity.part :as part] [parts.entity.system :as system] [parts.helpers.utils :refer [with-test-db register-test-user]])) (use-fixtures :once with-test...
__label__POS
0.962337
(ns parts.entity.part-test (:require [clojure.test :refer [deftest is testing use-fixtures]] [parts.entity.part :as part] [parts.entity.system :as system] [parts.helpers.utils :refer [with-test-db register-test-user]])) (use-fixtures :once with-test-db) (deftest test-part-crud (let [user (register-tes...
__label__POS
0.800877
(ns parts.frontend.adapters.reactflow-test (:require [cljs.test :refer-macros [deftest is testing]] [parts.frontend.adapters.reactflow :as adapter] [parts.common.models.part :as part] [parts.common.models.relationship :as relationship])) (deftest part->node-test (testing "Converts part to node with cor...
__label__POS
0.974902
(ns parts.common.models.relationship-test (:require #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer-macros [deftest is testing]]) [parts.common.models.relationship :as relationship])) (deftest make-relationship-test (testing "Creates a valid relationship with minimal attribut...
__label__POS
0.72862
(ns parts.common.models.part-test (:require #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer-macros [deftest is testing]]) [parts.common.models.part :as part])) (deftest make-part-test (testing "Creates a valid part with minimal attributes" (let [system-id "test-system-id"...
__label__POS
0.691
(ns hooks.com.github.seancorfield.next-jdbc (:require [clj-kondo.hooks-api :as api])) (defn with-transaction "Expands (with-transaction [tx expr opts] body) to (let [tx expr] opts body) per clj-kondo examples." [{:keys [:node]}] (let [[binding-vec & body] (rest (:children node)) [sym val opts] (:chil...
__label__POS
0.827048
// +build !windows package policy import ( "encoding/json" "strings" "testing" . "github.com/smartystreets/goconvey/convey" ) func TestNewTagStore(t *testing.T) { Convey("When I create a new Tagstore", t, func() { t := NewTagStore() Convey("It should not be nil", func() { So(t, ShouldNotBeNil) So(t.I...
__label__POS
0.994367
// +build !windows package policy import ( "testing" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/common" ) func TestNewPolicy(t *testing.T) { Convey("Given that I instantiate a new policy", t, func() { Convey("When I provide only the mandatory fields", func() { p := N...
__label__POS
0.870864
// +build !windows package policy import ( "testing" . "github.com/smartystreets/goconvey/convey" ) func TestDefaultLogPrefix(t *testing.T) { Convey("When I request a new default log prefix", t, func() { t := DefaultLogPrefix("abc", Reject) f := &FlowPolicy{ Action: Reject, } Convey("I should have the...
__label__POS
0.984704
// +build !windows package policy import ( "testing" "github.com/docker/go-connections/nat" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/common" ) func TestNewPURunTime(t *testing.T) { Convey("When I create a new run time, it should be valid", t, func() { tags := NewTagS...
__label__POS
0.791172
package common import ( "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/packet" "go.aporeto.io/enforcerd/trireme-lib/utils/portspec" ) // Service is a protocol/port service of interest - used to pass user requests type Service struct { // Ports are the corresponding ports Ports *portspec.PortSpec `json:"ports...
__label__POS
0.684859
<package> <name>tf2_ros</name> <version>0.5.13</version> <description> This package contains the ROS bindings for the tf2 library, for both Python and C++. </description> <author>Eitan Marder-Eppstein</author> <author>Wim Meeussen</author> <maintainer email="tfoote@osrfoundation.org">Tully Foote</mai...
__label__POS
0.800634
#include "game.h" GameObject *game_object_alloc(GameState *state) { GameObject *object = state->objects; int i = MAX_OBJECTS; while(i--) { if (!object->valid) { copyzero(object, sizeof(GameObject)); object->valid = 1; return object; } object++; } return NULL; } void game_objects_clear(GameState ...
__label__POS
0.796731
// +build !windows package extractors import ( "strconv" "testing" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/trireme-lib/common" "go.aporeto.io/trireme-lib/policy" ) func testRuntime() *policy.PURuntime { tags := policy.NewTagStore() tags.AppendKeyValue("@user:ssh:app", "web") tags.Append...
__label__POS
0.675157
package extractors import ( "fmt" "strconv" "strings" "go.aporeto.io/trireme-lib/common" "go.aporeto.io/trireme-lib/policy" "go.aporeto.io/trireme-lib/utils/cgnetcls" ) // SSHMetadataExtractor is a metadata extractor for ssh. func SSHMetadataExtractor(event *common.EventInfo) (*policy.PURuntime, error) { run...
__label__POS
0.782025
package registerer import ( "testing" "github.com/golang/mock/gomock" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/common" "go.aporeto.io/enforcerd/trireme-lib/monitor/processor/mockprocessor" ) func TestNew(t *testing.T) { Convey("When I create a new registrer", t, func() ...
__label__POS
0.890585
using Microsoft.Xna.Framework; namespace GameProject { /// <summary> /// Preview the colors: https://tailwindcss.com/docs/customizing-colors#color-palette-reference /// </summary> public class TWColor { /// <summary>Black color (R:0,G:0,B:0,A:255).</summary> public static readonly Color...
__label__POS
0.822857
package dockermonitor import ( "go.aporeto.io/enforcerd/trireme-lib/common" "go.aporeto.io/enforcerd/trireme-lib/monitor/constants" "go.aporeto.io/enforcerd/trireme-lib/policy" "go.uber.org/zap" ) // getPausePUID returns puid of pause container. func getPausePUID(extensions policy.ExtendedMap) string { if exten...
__label__POS
0.824678
package server import ( "bytes" "encoding/json" "errors" "net/http" "net/http/httptest" "os" "strconv" "testing" "github.com/golang/mock/gomock" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/common" "go.aporeto.io/enforcerd/trireme-lib/monitor/processor/mockprocessor" ...
__label__POS
0.671891
package acls import ( "net" "testing" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/controller/constants" "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/packet" "go.aporeto.io/enforcerd/trireme-lib/policy" ) var ( rules = policy.IPRuleList{ policy.IPRule{ Addresse...
__label__POS
0.840365
package acls import ( "net" "strconv" "strings" "go.aporeto.io/enforcerd/trireme-lib/policy" ) type icmpRule struct { baseRule string listOfDisjunctives []string policy *policy.FlowPolicy } func (rule *icmpRule) match(icmpType, icmpCode int8) (*policy.FlowPolicy, bool) { type evaluato...
__label__POS
0.959948
// +build linux package nfqdatapath import ( "crypto/ecdsa" "net" "testing" "github.com/golang/mock/gomock" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/collector" "go.aporeto.io/enforcerd/trireme-lib/collector/mockcollector" "go.aporeto.io/enforcerd/trireme-lib/controlle...
__label__POS
0.601235
package lookup import ( "errors" "fmt" "sort" "strings" "go.aporeto.io/enforcerd/trireme-lib/controller/constants" "go.aporeto.io/enforcerd/trireme-lib/policy" "go.aporeto.io/enforcerd/trireme-lib/utils/portspec" "go.uber.org/zap" ) // ForwardingPolicy is an instance of the forwarding policy type ForwardingP...
__label__POS
0.710896
// +build !windows package lookup import ( "testing" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/policy" ) var ( appEqWeb = policy.KeyValueOperator{ Key: "app", Value: []string{"web"}, Operator: policy.Equal, ID: "1", } envEqDemo = policy.KeyValueOpe...
__label__POS
0.921836
using Apos.Input; using Microsoft.Xna.Framework.Input; using Track = Apos.Input.Track; namespace Apos.Gui { public static class Default { public static ICondition MouseInteraction { get; set; } = new Track.MouseCondition(MouseButton.LeftButton); public static ICondition ButtonInteractio...
__label__POS
0.950483
package dnsproxy import ( "net" "strconv" "go.aporeto.io/enforcerd/trireme-lib/controller/internal/enforcer/applicationproxy/serviceregistry" "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/ipsetmanager" "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/pucontext" "go.uber.org/zap" ) func configureDepend...
__label__POS
0.799042
// +build !windows package serviceregistry import ( "net" "testing" "time" . "github.com/smartystreets/goconvey/convey" triremecommon "go.aporeto.io/enforcerd/trireme-lib/common" "go.aporeto.io/enforcerd/trireme-lib/controller/internal/enforcer/applicationproxy/common" "go.aporeto.io/enforcerd/trireme-lib/con...
__label__POS
0.866574
package servicecache import ( "fmt" "net" "sync" "go.aporeto.io/enforcerd/trireme-lib/common" "go.aporeto.io/enforcerd/trireme-lib/utils/ipprefix" "go.aporeto.io/enforcerd/trireme-lib/utils/portspec" ) type entry struct { id string ports *portspec.PortSpec data interface{} } type entryList []*entry fu...
__label__POS
0.666547
// +build !windows package servicecache import ( "net" "testing" . "github.com/smartystreets/goconvey/convey" "go.aporeto.io/enforcerd/trireme-lib/common" "go.aporeto.io/enforcerd/trireme-lib/utils/portspec" ) func TestEntries(t *testing.T) { Convey("Given an entry list", t, func() { Convey("If I delete th...
__label__POS
0.920275