content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package com.apress.springrecipes.shop.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.apress.springrecipes.shop.Battery; import com.apress.springrecipes.shop.Cashier; import com.apress.springrecipes.shop.Disc; import com.apress.spring...
__label__POS
0.943732
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "omp.h" #ifndef min #define min(a, b) ((a) < (b) ? (a) : (b)) #endif static int *A; static int *B; static int *C; struct omp_data { int n; }; void main_omp_fn_0(void *omp_data) { int n = ((struct omp_data *)omp_data)->n; int from, to; ...
__label__POS
0.801498
--- title: "Upgrade Nodes" --- import { Callout, Steps } from 'nextra/components'; # Upgrade Nodes This section contains tutorials for upgrading your validator and validator fullnode (VFN). Upgrades are a common operation for maintaining your nodes. Aptos Labs frequently releases new versions of the Aptos node softw...
__label__POS
0.747835
using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; namespace {{ spec.title | caseUcfirst }} { public class Query { [JsonPropertyName("method")] public string Method { get; set; } = string.Empty; ...
__label__POS
0.633557
package com.bookstore; import com.bookstore.entity.Book; import com.bookstore.service.BookstoreService; import java.util.List; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springfram...
__label__POS
0.877978
[B1] test03(x): i := 0 goto L1 [B2] L1: if i < 10 goto L2 else goto L3 [B3] L2: x := 2 * i i := i + 1 goto L1 [B4] L3: return -------------------------------------------------------------------------------- [B1] test03(x): i := 0 goto L1(i) [B2] L1(i): if i < 10 goto L2(i) else...
__label__POS
0.834883
[B1] test07(p): x := 0 i := 1 goto L1 [B2] L1: if p > 10 goto L2 else goto L3 [B3] L2: j := i i := i + 1 i := j x := x + j goto L1 [B4] L3: return x -------------------------------------------------------------------------------- [B1] test07(p): x := 0 i := 1 goto L...
__label__POS
0.920638
using System; using System.Collections; using System.Collections.Generic; using System.Text.Json; namespace {{ spec.title | caseUcfirst }}.Extensions { public static class Extensions { public static string ToJson(this Dictionary<string, object?> dict) { return JsonSerializer.Serial...
__label__POS
0.610599
using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; namespace {{ spec.title | caseUcfirst }}.Converters { public class ObjectToInferredTypesConverter : JsonConverter<object> { public override object Read(ref Utf8JsonReader reader, Type typeToCon...
__label__POS
0.959022
package com.apress.springrecipes.shop; import org.springframework.context.ApplicationContext; import org.springframework.context.support.GenericXmlApplicationContext; public class Main { public static void main(String[] args) throws Exception { ApplicationContext context = new GenericXmlA...
__label__POS
0.994008
[B1] test09(z): x := 1 y := 2 if x > z goto L1 else goto L2 [B2] L1: a := x + 1 goto L4 [B3] L2: a := y goto L4 [B5] L4: if a > 4 goto L5 else goto L6 [B6] L5: a := a + z goto L4 [B7] L6: b := a * a return b ---------------------------------------------------------------...
__label__POS
0.693681
[B1] test01(a, b): if a > b goto L4 else goto L5 [B2] L4: if a < 100 goto L1 else goto L2 [B3] L1: return a [B5] L2: c := b + 1 return b [B7] L5: c := b + 1 return c -------------------------------------------------------------------------------- [B1] test01(a, b): if a > b goto L4(a, ...
__label__POS
0.948933
[B1] test08(flag): x := 4 y := 0 if y != 0 goto L1 else goto L2 [B2] L1: x := 3 goto L2 [B3] L2: if flag == 0 goto L3 else goto L4 [B4] L3: z := 10 goto L4 [B5] L4: z := x + 5 return z -------------------------------------------------------------------------------- [B1] test08(...
__label__POS
0.783165
[B1] fib(n): t0 := 0 t1 := 1 if n < 2 goto L1 else goto L2 [B2] L1: return n [B3] L2: i := 2 goto L3 [B4] L3: if i <= n goto L4 else goto L5 [B5] L4: t2 := t0 + t1 t0 := t1 t1 := t2 i := i + 1 goto L3 [B6] L5: return t1 -----------------------------------------------...
__label__POS
0.968538
[B1] sort(A, n): i := 0 goto L6 [B2] L6: $9 := n - 1 if i < $9 goto L7 else goto L8 [B3] L7: min := i j := i + 1 goto L3 [B4] L3: if j < n goto L4 else goto L5 [B5] L4: $1 := j * 4 t0 := *(A + $1) $2 := min * 4 t1 := *(A + $2) if t0 < t1 goto L1 else goto L2 [B6] L1: ...
__label__POS
0.952804
[B1] test05(): x := 65535 if x < 2 goto L1 else goto L2 [B2] L1: y := 5 + x goto L3 [B3] L2: y := x - 42 goto L3 [B4] L3: z := y * y return z -------------------------------------------------------------------------------- [B1] test05(): x := 65535 if x < 2 goto L1(x, y) else g...
__label__POS
0.687155
package com.bookstore; import com.bookstore.service.InventoryService; import com.vladmihalcea.concurrent.aop.OptimisticConcurrencyControlAspect; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import org.springframework.boot.ApplicationRunner; i...
__label__POS
0.761733
[B1] fastsum(n): s := 0 i := 1 goto L1 [B2] L1: if i <= n goto L2 else goto L3 [B3] L2: i := i + 1 goto L1 [B4] L3: t0 := n + 1 t1 := n * t0 t2 := t1 / 2 s := t2 return s -------------------------------------------------------------------------------- [B1] fastsum(n): s...
__label__POS
0.990853
[B1] search(A, lo, hi, x): goto L6 [B2] L6: $2 := hi - lo if $2 >= 1 goto L7 else goto L8 [B3] L7: t0 := hi - lo t1 := t0 / 2 t2 := lo + t1 $1 := t2 * 4 t3 := *(A + $1) if t3 == x goto L1 else goto L2 [B4] L1: return t2 [B5] L2: if t3 < x goto L3 else goto L4 [B6] L3: lo ...
__label__POS
0.94222
[B1] test10(A): $1 := 1 *A := $1 $2 := 2 *(A + 4) := $2 $3 := 3 *(A + 8) := $3 n := 1 a := *A $4 := n * 4 b := *(A + $4) $5 := n - 1 $6 := $5 * 4 c := *(A + $6) $7 := n + 1 $8 := $7 * 4 $9 := 4 *(A + $8) := $9 x := *A y := *(A + 4) z := *(A...
__label__POS
0.994105
package com.apress.springrecipes.shop; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import com.apress.springrecipes.shop.config.ShopConfiguration; public class Main { public static void main(String[] args) throws Except...
__label__POS
0.994886
[B1] test04(A, N): i := 1 j := 0 goto L1 [B2] L1: if i < N goto L2 else goto L3 [B3] L2: $1 := i - 1 $2 := $1 * 4 $3 := i + 1 *(A + $2) := $3 $4 := j * 4 $5 := i - 1 *(A + $4) := $5 i := i + 1 goto L1 [B4] L3: return ----------------------------------------------...
__label__POS
0.982756
[B1] sum(n): s := 0 i := 1 goto L1 [B2] L1: if i <= n goto L2 else goto L3 [B3] L2: s := s + i i := i + 1 goto L1 [B4] L3: return s -------------------------------------------------------------------------------- [B1] sum(n): s := 0 i := 1 goto L1(i, n, s) [B2] L1(i, n, s):...
__label__POS
0.979454
[B1] fib(n): t0 := 0 t1 := 1 if n < 2 goto L1 else goto L2 [B2] L1: return n [B3] L2: i := 2 if i <= 2 goto L4 else goto L5 [B5] L4: return n [B7] L5: i := 2 goto L6 [B8] L6: if i <= n goto L7 else goto L8 [B9] L7: t2 := t0 + t1 t0 := t1 t1 := t2 i := i + 3262 ...
__label__POS
0.959616
[B1] test01(a, b): if a > b goto L3 else goto L4 [B2] L3: if a < 100 goto L1 else goto L5 [B3] L1: return b [B5] L4: c := b + 1 return c [B6] L5: return -------------------------------------------------------------------------------- [B1] test01(a, b): if a > b goto L3(a, b) else goto L4(a...
__label__POS
0.849112
package com.bookstore.service; import com.bookstore.repository.BookRepository; import java.util.logging.Logger; import com.bookstore.entity.Book; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class BookstoreService { private static...
__label__POS
0.776559
[B1] test06(p): x := 1 goto L3 [B2] L3: if p > 10 goto L2 else goto L5 [B5] L2: x := 2 goto L3 [B6] L5: return x -------------------------------------------------------------------------------- [B1] test06(p): x := 1 goto L3(p, x) [B2] L3(p, x): if p > 10 goto L2(p, x) else goto L5...
__label__POS
0.667267
package com.apress.springrecipes.sequence; import javax.annotation.Resource; public class SequenceGenerator { @Resource(name = "datePrefixGenerator") private PrefixGenerator prefixGenerator; private String suffix; private int initial; private int counter; public SequenceGenerator() { } ...
__label__POS
0.929065
package com.bookstore; import com.bookstore.service.BookstoreService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.spri...
__label__POS
0.96165
package com.apress.springrecipes.sequence; import org.springframework.beans.factory.annotation.Required; public class SequenceGenerator { private PrefixGenerator prefixGenerator; private String suffix; private int initial; private int counter; public SequenceGenerator() { } public Sequen...
__label__POS
0.955162
/** * Helper class to generate role strings for `Permission`. */ export class Role { /** * Grants access to anyone. * * This includes authenticated and unauthenticated users. * * @returns {string} */ public static any(): string { return 'any' } /** * Gran...
__label__POS
0.912114
package com.bookstore; import com.bookstore.entity.Author; import com.bookstore.entity.Book; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import o...
__label__POS
0.892725
package com.bookstore.dto; import java.util.Objects; public class AuthorClassDto { private String genre; private String name; public String getGenre() { return genre; } public void setGenre(String genre) { this.genre = genre; } public String getName() { retu...
__label__POS
0.996525
require 'json' module {{spec.title | caseUcfirst}} class Query def initialize(method, attribute = nil, values = nil) @method = method @attribute = attribute if values != nil if values.is_a?(Array) @values = values else...
__label__POS
0.999578
package com.bookstore.controller; import com.bookstore.dto.BookDto; import com.bookstore.dto.SimpleBookDto; import com.bookstore.dto.VirtualBookDto; import com.bookstore.service.BookstoreService; import java.util.List; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annot...
__label__POS
0.865671
### Examples It's our goal to create a wide variety of example of how Tether can be used. Here's what we have so far, please send a PR with any examples you might create. #### Beginner - [simple](../../examples/simple): A simple example to get you started - [out-of-bounds](../../examples/out-of-bounds): How to hide...
__label__POS
0.941365
package com.bookstore.repository; import com.bookstore.dto.BookDto; import com.bookstore.dto.SimpleBookDto; import com.bookstore.dto.VirtualBookDto; import com.bookstore.entity.Book; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Quer...
__label__POS
0.834524
digraph CFG { B1 [shape=record label="{B1|sort(A, n):\li := 0\lgoto L6\l}"]; B2 [shape=record label="{B2|L6:\l$9 := n - 1\lif i \< $9 goto L7 else goto L8\l}"]; B3 [shape=record label="{B3|L7:\lmin := i\lj := i + 1\lgoto L3\l}"]; B4 [shape=record label="{B4|L3:\lif j \< n goto L4 else goto L5\l}"]; ...
__label__POS
0.767359
/****************************************************************************** * Copyright (C) 2009-2012 Fabio Zadrozny * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available a...
__label__POS
0.914622
package com.apress.springrecipes.springbatch.config; import org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.batch.core.launch.support.SimpleJobLauncher; import org.springframework.core.task.TaskExecutor...
__label__POS
0.996737
package.path = "../../utils/?.lua;" .. package.path local fun = require "fun" local parse = require "parse" local literal = parse.literal local number = parse.number local variable = parse.variable --+----------------+ --| Constant terms | --+----------------+ local ConstantTerm = {} function ConstantTerm.eval(a, ...
__label__POS
0.977503
package.path = "../../utils/?.lua;" .. package.path local Set = require "set" local fun = require "fun" local unpack = unpack or table.unpack local Dependence = {} function Dependence.analyze(a, b) assert(#a.subscripts == #b.subscripts) local subscripts = fun.map2(fun.pair, a.subscripts, b.subscripts) ...
__label__POS
0.957316
package.path = "../../utils/?.lua;" .. package.path local fun = require "fun" local parse = require "parse" local literal = parse.literal local number = parse.number local variable = parse.variable local StridedRange = require "strided_range" --+-------------+ --| Loop bounds | --+-------------+ local LoopBounds =...
__label__POS
0.819541
/** * Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ package org.python.pydev.parser...
__label__POS
1.000007
package com.apress.springrecipes.springbatch; import com.apress.springrecipes.springbatch.config.BatchConfiguration; import org.springframework.batch.core.*; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.An...
__label__POS
0.983966
package com.bookstore; import com.bookstore.repository.AuthorRepository.AuthorNameAge; import java.util.List; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApp...
__label__POS
0.923142
spec aptos_std::ordered_map { spec OrderedMap { pragma intrinsic = map, map_new = new, map_len = length, map_destroy_empty = destroy_empty, map_has_key = contains, map_add_no_override = add, map_borrow = borrow, map_borrow_...
__label__POS
0.672292
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.987294
package com.apress.springrecipes.springbatch; import com.apress.springrecipes.springbatch.config.BatchConfiguration; import org.springframework.batch.core.configuration.JobRegistry; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.batch.core.repository.JobRepository; import org.spri...
__label__POS
0.999126
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <script type="text/javascript" src="//use.typekit.net/jbn8qxr.js"></script> <scri...
__label__POS
0.977552
package com.apress.springrecipes.springbatch.config; import org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.batch.core.launch.support.SimpleJobLauncher; import org.springframework.core.task.TaskExecutor...
__label__POS
0.996737
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.866003
package com.bookstore.service; import com.bookstore.entity.Author; import com.bookstore.obj.Book; import org.springframework.stereotype.Service; import com.bookstore.repository.AuthorRepository; @Service public class BookstoreService { private final AuthorRepository authorRepository; public BookstoreService...
__label__POS
0.766968
module 0x1::M { spec fun spec_call(): bool { exists i in 1..100: i == 3 } spec module { invariant forall addr1: address where old(exists<u8>(addr1)): true; invariant forall x: num, y: num, z: num : x == y && y == z ==> x == z; invarian...
__label__POS
0.991217
module 0x1::M { spec module { assert true; assume true; requires true; ensures true; ensures true } spec module { sending: &mut signer; amount: u64; local amount: u64; global amount: u64; invariant x > 0; invariant<T>...
__label__POS
0.962421
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.99971
package com.apress.springrecipes.springbatch; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.batch.item.ItemWriter; import java.util.List; /** * This class writes the user registration by calling an RPC service (whose client interface is wired in using Spring */ public class Us...
__label__POS
0.66111
package com.bookstore.entity; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; @Entit...
__label__POS
0.652731
package com.apress.springrecipes.springbatch; import com.apress.springrecipes.springbatch.config.BatchConfiguration; import org.springframework.batch.core.*; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.An...
__label__POS
0.983966
package com.apress.springrecipes.springbatch; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.batch.item.ItemProcessor; import org.springframework.util.StringUtils; import java.util.Arrays; import java.util.Collection; public class UserRegistrationValidationItemProcessor implemen...
__label__POS
0.808528
--- title: "重要节点指标" --- import { Aside } from '@astrojs/starlight/components'; 当你访问节点检查服务端口(详见[节点检查服务](/zh/network/nodes/measure/node-inspection-service))时,你将会发现你的节点报告了大量的指标数据和计数信息.大部分的这些数据和信息对于开发区块链及排查一些隐晦的问题特别有用.因此,我们建议节点运维人员不必过多关注所有指标,仅需专注于以下几个关键指标: <Aside type="note"> **指标不稳定(Metric instability)**<br /> 随着 A...
__label__POS
0.919457
<?php namespace Appwrite\Spec; use Exception; use ArrayObject; abstract class Spec extends ArrayObject { private const SET_TYPE_ASSIGN = 'assign'; private const SET_TYPE_PREPEND = 'prepend'; private const SET_TYPE_APPEND = 'append'; /** * Spec constructor. * @param string $input ...
__label__POS
0.99352
--- title: "主网文件" --- import { Aside } from '@astrojs/starlight/components'; 在部署 Aptos 节点到 **主网** 时,您可能需要下载此页面列出的文件.这些文件按节点的类型组织. <Aside type="note"> **文件获取**<br /> 根据您部署的节点类型和部署方法,您可能需要下载下方的一些或所有文件. </Aside> ## 验证器文件 下面列出的所有文件均适用于验证器节点. ### docker-compose.yaml - **Git 仓库:** `aptos-core` - **Git 分支:** `mainn...
__label__POS
0.973615
<?php namespace Appwrite\SDK; use Exception; use Appwrite\Spec\Spec; use Throwable; use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Error\SyntaxError; use Twig\Extension\DebugExtension; use Twig\Loader\FilesystemLoader; use Twig\TemplateWrapper; use Twig\TwigFilter; use Matthia...
__label__POS
0.83693
--- title: "测试网文件" --- import { Aside } from '@astrojs/starlight/components'; 在部署 Aptos 节点到 **测试网** 时,您可能需要下载此页面列出的文件.这些文件按节点的类型组织. <Aside type="note"> **文件获取**<br /> 根据您部署的节点类型和部署方法,您可能需要下载以下列出的一些或所有文件. </Aside> ## 验证器文件 下面列出的所有文件均适用于验证器节点. ### docker-compose.yaml - **Git 仓库:** `aptos-core` - **Git 分支:** `t...
__label__POS
0.954116
--- title: "开发网文件" --- import { Aside } from '@astrojs/starlight/components'; 在部署 Aptos 节点到 **devnet** 时,您可能需要下载此页面列出的文件.这些文件按节点类型组织. <Aside type="note"> **文件获取**<br /> 根据您部署的节点类型和部署方法,您可能需要下载以下列出的一些或所有文件. </Aside> ## 验证器文件 下面列出的所有文件均适用于验证器节点. ### docker-compose.yaml - **Git 仓库:** `aptos-core` - **Git 分支:** ...
__label__POS
0.94705
<?php namespace Appwrite\SDK; abstract class Language { public const TYPE_INTEGER = 'integer'; public const TYPE_NUMBER = 'number'; public const TYPE_STRING = 'string'; public const TYPE_BOOLEAN = 'boolean'; public const TYPE_ARRAY = 'array'; public const TYPE_OBJECT = 'object'; public con...
__label__POS
0.997991
package com.apress.springrecipes.springbatch; import com.apress.springrecipes.springbatch.config.BatchConfiguration; import org.springframework.batch.core.*; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.An...
__label__POS
0.983966
using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; namespace Users.Infrastructure { public class LocationClaimsProvider : IClaimsTransformation { public Task<ClaimsPrincipal> TransformAsync(ClaimsPrincipal principal) { if (principal != null...
__label__POS
0.846473
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; namespace Users.Infrastructure { public class BlockUsersRequirement : IAuthorizationRequirement { public BlockUsersRequirement(params string[] users) { BlockedUsers = users; } ...
__label__POS
0.99779
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Users.Models; namespace Users.Infrastructure { public class DocumentAuthorizationRequirement : IAuthorizationRequirement { public bool AllowAuthors { get; set; } public bool AllowEditors { get; set; } ...
__label__POS
0.775018
using System.ComponentModel.DataAnnotations; using System.Collections.Generic; using Microsoft.AspNetCore.Identity; namespace Users.Models { public class CreateModel { [Required] public string Name { get; set; } [Required] public string Email { get; set; } [Required] ...
__label__POS
0.98663
<?php namespace Appwrite\SDK\Language; use Appwrite\SDK\Language; use Twig\TwigFilter; abstract class JS extends Language { protected $params = [ 'npmPackage' => 'packageName', 'bowerPackage' => 'packageName', ]; /** * @param string $name * @return $this */ public func...
__label__POS
0.67346
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using System; using System.Threading.Tasks; namespace Users.Models { public class AppIde...
__label__POS
0.736196
package com.apress.springrecipes.springbatch; import org.springframework.batch.core.*; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import java.util.Date; public class Main {...
__label__POS
0.989637
package com.apress.springrecipes.springbatch.config; import org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.batch.core.launch.support.SimpleJobLauncher; import org.springframework.core.task.TaskExecutor...
__label__POS
0.996737
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class If extends stmtType { public exprType test; public stmtType[] body; public suiteType orelse; public If(exprType test, stmtType[] body, su...
__label__POS
0.896817
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class WithItem extends WithItemType { public exprType context_expr; public exprType optional_vars; public WithItem(exprType context_expr, exprType ...
__label__POS
0.940074
package com.apress.springrecipes.springbatch; import com.apress.springrecipes.springbatch.config.BatchConfiguration; import org.springframework.batch.core.*; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.An...
__label__POS
0.983966
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Name extends exprType implements expr_contextType { public String id; public int ctx; public boolean reserved; public Name(String id, int...
__label__POS
0.937272
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Index extends sliceType { public exprType value; public Index(exprType value) { this.value = value; } public int hashCode() { ...
__label__POS
0.888104
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class BinOp extends exprType implements operatorType { public exprType left; public int op; public exprType right; public BinOp(exprType left, ...
__label__POS
0.95237
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Return extends stmtType { public exprType value; public Return(exprType value) { this.value = value; } public int hashCode() { ...
__label__POS
0.93018
class FindProducts attr_reader :products def initialize(products = initial_scope) @products = products end def call(params = {}) scoped = products scoped = filter_by_category_id(scoped, params[:category_id]) scoped = filter_by_min_price(scoped, params[:min_price]) scoped = filter_by_max_pr...
__label__POS
0.993938
class ProductsController < ApplicationController skip_before_action :protect_pages, only: [:index, :show] def index @categories = Category.order(name: :asc).load_async @pagy, @products = pagy_countless(FindProducts.new.call(product_params_index).load_async, items: 12) end def show product end ...
__label__POS
0.999082
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class With extends stmtType { public WithItemType[] with_item; public suiteType body; public With(WithItemType[] with_item, suiteType body) { ...
__label__POS
0.789472
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class ListComp extends exprType implements comp_contextType { public exprType elt; public comprehensionType[] generators; public int ctx; publi...
__label__POS
0.880324
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Lambda extends exprType { public argumentsType args; public exprType body; public Lambda(argumentsType args, exprType body) { this.ar...
__label__POS
0.915075
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class aliasType extends SimpleNode { public NameTokType name; public NameTokType asname; public aliasType(NameTokType name, NameTokType asname) { ...
__label__POS
0.931259
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Tuple extends exprType implements expr_contextType { public exprType[] elts; public int ctx; public boolean endsWithComma; public Tuple(e...
__label__POS
0.839759
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class SetComp extends exprType { public exprType elt; public comprehensionType[] generators; public SetComp(exprType elt, comprehensionType[] gener...
__label__POS
0.882872
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class commentType extends SimpleNode { public String id; public commentType(String id) { this.id = id; } public int hashCode() { ...
__label__POS
0.925671
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class UnaryOp extends exprType implements unaryopType { public int op; public exprType operand; public UnaryOp(int op, exprType operand) { ...
__label__POS
0.925962
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Pass extends stmtType { public Pass() { } public int hashCode() { final int prime = 31; int result = 1; return resul...
__label__POS
0.871127
// Autogenerated AST node package org.python.pydev.parser.jython.ast; public interface VisitorIF { public Object visitModule(Module node) throws Exception; public Object visitInteractive(Interactive node) throws Exception; public Object visitExpression(Expression node) throws Exception; public Objec...
__label__POS
0.9416
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class TryFinally extends stmtType { public stmtType[] body; public suiteType finalbody; public TryFinally(stmtType[] body, suiteType finalbody) { ...
__label__POS
0.875392
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Print extends stmtType { public exprType dest; public exprType[] values; public boolean nl; public Print(exprType dest, exprType[] values...
__label__POS
0.833235
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class NonLocal extends stmtType { public NameTokType[] names; public exprType value; public NonLocal(NameTokType[] names, exprType value) { ...
__label__POS
0.830148
var JSDOM = require("jsdom").JSDOM; var window = new JSDOM('<!doctype html><html><body></body></html>').window; var document = window.document; global["document"] = document; global["window"] = window; // we don't really need this for these tests. window.requestAnimationFrame = function() {}; global["navigator"] = { u...
__label__POS
0.836323
// Autogenerated AST node package org.python.pydev.parser.jython.ast; import org.python.pydev.parser.jython.SimpleNode; import java.util.Arrays; public final class Global extends stmtType { public NameTokType[] names; public exprType value; public Global(NameTokType[] names, exprType value) { thi...
__label__POS
0.825839