content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
To set up database collections and documents in Appwrite, you can follow these steps: ### Step 1: Create a Collection 1. **Navigate to the Appwrite Console**: Go to [Appwrite Console](https://cloud.appwrite.io/). 2. **Create a New Collection**: - Go to the Databases section and create a new collection. - Defin...
__label__POS
0.793074
To host a simple static website with Appwrite, you can follow these steps: 1. **Create an Account and Project**: If you haven't already, create an account on Appwrite and create your first project. 2. **Add a Platform**: In your project, go to **Add a platform** and add a **Web app**. Set the **Hostname** to `localho...
__label__POS
0.987855
package query import . "gopkg.in/check.v1" type LexerSuite struct { } var _ = Suite(&LexerSuite{}) func (s *LexerSuite) TestLexing(c *C) { _, ch := lex("query", "package (<< 1.3), $Source | !\"app\", 'd\"\\a\\'ta' {i386}") c.Check(<-ch, Equals, item{typ: itemString, val: "package"}) c.Check(<-ch, Equals, item{t...
__label__POS
0.998866
using System.ComponentModel.DataAnnotations; using Polly.Simmy; using Polly.Utils; namespace Polly.Core.Tests.Simmy; public class ChaosStrategyOptionsTTests { [Fact] public void Ctor_Ok() { var sut = new TestChaosStrategyOptions<int>(); sut.Randomizer.ShouldNotBeNull(); sut.Enabl...
__label__POS
0.76092
import core from 'core'; const setupDocViewer = (documentViewer = undefined) => { const docViewer = documentViewer || core.getDocumentViewer(); // at 100% zoom level, adjust this whenever zoom/fitmode is updated docViewer.DEFAULT_MARGIN = 10; addToolsToDocViewer(docViewer); }; const addToolsToDocViewer = (do...
__label__POS
0.995708
const isPlainObject = (object) => { return object != null && typeof object === 'object' && !Array.isArray(object); }; const isEmptyPlainObject = (object) => { if (!isPlainObject(object)) { return false; } for (const key in object) { if (Object.hasOwn(object, key) && object[key] !== undefined) { r...
__label__POS
0.794392
using Polly.Utils.Pipeline; namespace Polly.Core.Tests.Utils.Pipeline; public static class DelegatingComponentTests { [Fact] public static async Task ExecuteComponent_ReturnsCorrectResult() { await using var component = new CallbackComponent(); var next = new CallbackComponent(); v...
__label__POS
0.724288
package com.bookstore.service; import org.springframework.stereotype.Service; import com.bookstore.view.AuthorAnthologyView; import com.bookstore.repository.AuthorAnthologyViewRepository; import org.springframework.transaction.annotation.Transactional; @Service public class BookstoreService { private final Autho...
__label__POS
0.859474
using Polly.CircuitBreaker.Health; namespace Polly.Core.Tests.CircuitBreaker.Health; public class HealthMetricsTests { [InlineData(100, typeof(SingleHealthMetrics))] [InlineData(199, typeof(SingleHealthMetrics))] [InlineData(200, typeof(RollingHealthMetrics))] [InlineData(201, typeof(RollingHealthMetr...
__label__POS
0.801658
package com.bookstore.service; import com.bookstore.dto.AuthorDto; import com.bookstore.entity.Author; import com.bookstore.repository.AuthorRepository; import java.util.List; import org.springframework.stereotype.Service; @Service public class BookstoreService { private final AuthorRepository authorRepository; ...
__label__POS
0.816012
using Microsoft.Extensions.Time.Testing; using Polly.CircuitBreaker.Health; namespace Polly.Core.Tests.CircuitBreaker.Health; public class SingleHealthMetricsTests { private readonly FakeTimeProvider _timeProvider; public SingleHealthMetricsTests() => _timeProvider = new FakeTimeProvider(); [Fact] p...
__label__POS
0.890078
using Polly.Simmy.Utils; namespace Polly.Core.Tests.Simmy.Utils; public class GeneratorHelperTests { [Fact] public void CreateGenerator_NoGenerators_Ok() { var helper = new GeneratorHelper<int>(_ => 10); helper.CreateGenerator()(ResilienceContextPool.Shared.Get(TestCancellation.Token)).S...
__label__POS
0.700737
using Polly.Simmy.Fault; namespace Polly.Core.Tests.Simmy.Fault; public class FaultGeneratorTests { [Fact] public void AddException_Generic_Ok() { var generator = new FaultGenerator(); generator.AddException<InvalidOperationException>(); Generate(generator).ShouldBeOfType<Invali...
__label__POS
0.967192
using System.ComponentModel.DataAnnotations; using Polly.Simmy; using Polly.Simmy.Fault; using Polly.Utils; namespace Polly.Core.Tests.Simmy.Fault; public class ChaosFaultStrategyOptionsTests { [Fact] public void Ctor_Ok() { var sut = new ChaosFaultStrategyOptions(); sut.Randomizer.Should...
__label__POS
0.858959
using Polly.Simmy; using Polly.Simmy.Latency; using Polly.Testing; namespace Polly.Core.Tests.Simmy.Latency; public class ChaosLatencyPipelineBuilderExtensionsTests { public static IEnumerable<object[]> AddLatency_Ok_Data() { var context = ResilienceContextPool.Shared.Get(TestCancellation.Token); ...
__label__POS
0.765594
package cmd import ( "github.com/aptly-dev/aptly/pgp" "github.com/smira/commander" "github.com/smira/flag" ) func getSigner(flags *flag.FlagSet) (pgp.Signer, error) { if LookupOption(context.Config().GpgDisableSign, flags, "skip-signing") { return nil, nil } signer := context.GetSigner() signer.SetKey(flags...
__label__POS
0.601345
using System.ComponentModel.DataAnnotations; using Polly.Simmy; using Polly.Simmy.Behavior; using Polly.Utils; namespace Polly.Core.Tests.Simmy.Behavior; public class ChaosBehaviorStrategyOptionsTests { [Fact] public void Ctor_Ok() { var sut = new ChaosBehaviorStrategyOptions(); sut.Rando...
__label__POS
0.97493
using Polly.Simmy.Outcomes; namespace Polly.Core.Tests.Simmy.Outcomes; public class OutcomeGeneratorTests { [Fact] public void AddException_Generic_Ok() { var generator = new OutcomeGenerator<string>(); generator.AddException<InvalidOperationException>(); Generate(generator)!.Va...
__label__POS
0.895607
package com.apress.springrecipes.mobile.web; import javax.servlet.Filter; import org.springframework.mobile.device.DeviceResolverRequestFilter; import org.springframework.mobile.device.site.SitePreferenceRequestFilter; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer...
__label__POS
0.999169
package com.app; import com.app.repository.NumberRepository; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; imp...
__label__POS
0.99813
export default { "$schema": "http://json-schema.org/draft-04/schema#", "id": "selected_data_environments/1", "type":"object", "title":"Data Environments", "description": "Data environments you use to handle PHI", "properties":{ "aptible":{ "type":"boolean", "default":true, "title":"Apt...
__label__POS
0.779916
export default (container) => { const focusableElements = []; const isElementHidden = (el) => { const style = window.getComputedStyle(el); return style.display === 'none' || style.visibility === 'hidden'; }; const isAncestorHidden = (el) => { let current = el.parentElement; while (current) { ...
__label__POS
0.778666
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.950352
namespace Polly.Specs.Helpers; public static class ContextualPolicyExtensions { public static void RaiseException<TException>(this Policy policy, int numberOfTimesToRaiseException, IDictionary<string, object> contextData, Action<TException, int>? configureException = null) where TE...
__label__POS
0.995487
namespace Polly.Specs.Helpers; public static class ContextualPolicyTResultExtensions { public static TResult RaiseResultSequence<TResult>( this Policy<TResult> policy, IDictionary<string, object> contextData, params TResult[] resultsToRaise) => policy.RaiseResultSequence(contextDat...
__label__POS
0.76581
namespace Polly.Specs.Helpers; public static class ContextualPolicyExtensionsAsync { public static Task RaiseExceptionAsync<TException>(this AsyncPolicy policy, int numberOfTimesToRaiseException, IDictionary<string, object> contextData, Action<TException, int>? configureException = null, CancellationToken cancell...
__label__POS
0.997203
namespace Polly.Specs.Helpers; public static class PolicyExtensionsAsync { public class ExceptionAndOrCancellationScenario { public int NumberOfTimesToRaiseException; public int? AttemptDuringWhichToCancel; public bool ActionObservesCancellation = true; } public static Task ...
__label__POS
0.850743
package com.apress.springrecipes.mobile.web.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.mobile.device.DeviceResolverHandlerInterceptor; import org.springf...
__label__POS
0.618954
namespace Polly.Specs.Helpers; public static class PolicyExtensions { public class ExceptionAndOrCancellationScenario { public int NumberOfTimesToRaiseException; public int? AttemptDuringWhichToCancel; public bool ActionObservesCancellation = true; } public static void RaiseEx...
__label__POS
0.896714
namespace Polly.Specs.Helpers; public static class ContextualPolicyTResultExtensionsAsync { public static Task<TResult> RaiseResultSequenceAsync<TResult>( this AsyncPolicy<TResult> policy, IDictionary<string, object> contextData, params TResult[] resultsToRaise) => policy.RaiseResu...
__label__POS
0.96872
package com.bookstore.service; import com.bookstore.projection.AuthorNameBookTitle; import com.bookstore.repository.AuthorRepository; import com.bookstore.repository.BookRepository; import java.util.List; import org.springframework.stereotype.Service; @Service public class BookstoreService { private final Author...
__label__POS
0.854112
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_111) on Tue Jan 10 20:30:17 CET 2017 --> <title>io.apptik.comm.jus.util (jus-android 0.6.9 API)</title> <meta name="date" content="2017-01-10">...
__label__POS
0.601626
package com.bookstore.repository; import java.util.List; import com.bookstore.entity.Author; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactio...
__label__POS
0.668565
package deb import ( "fmt" "regexp" "strconv" "strings" "unicode" ) // Using documentation from: http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version // CompareVersions compares two package versions func CompareVersions(ver1, ver2 string) int { e1, u1, d1 := parseVersion(ver1) e2, u2, d2 ...
__label__POS
0.611312
package com.bookstore.repository; import java.util.List; import com.bookstore.entity.Book; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactiona...
__label__POS
0.675804
package com.apress.springrecipes.mobile.web.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.mobile.device.DeviceResolverHandlerInterceptor; import org.springf...
__label__POS
0.618954
package com.app; import com.app.repository.NumberRepository; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; imp...
__label__POS
0.99813
package com.bookstore; import com.bookstore.dto.BookstoreDto; 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.sprin...
__label__POS
0.978843
package com.bookstore; import com.bookstore.entity.Book; import com.bookstore.naturalid.NaturalRepositoryImpl; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.an...
__label__POS
0.970418
package com.bookstore.service; import com.bookstore.entity.Book; import com.bookstore.repository.BookRepository; import java.util.Optional; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class BookstoreService { private final BookRe...
__label__POS
0.782167
package deb import ( "fmt" "regexp" "sort" "strings" "github.com/aptly-dev/aptly/aptly" "github.com/aptly-dev/aptly/utils" ) // Dependency options const ( // DepFollowSource pulls source packages when required DepFollowSource = 1 << iota // DepFollowSuggests pulls from suggests DepFollowSuggests // DepFol...
__label__POS
0.676594
package com.app; import com.app.repository.NumberRepository; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.logging.Level; import java.util.logging.Logger; import javax.sql.DataSource; import org.springframework.boot.ApplicationRunner; import org.springframework.bo...
__label__POS
0.961796
#include "sf33rd/Source/Game/efff6.h" #include "bin2obj/char_table.h" #include "common.h" #include "sf33rd/Source/Game/CHARSET.h" #include "sf33rd/Source/Game/EFFECT.h" #include "sf33rd/Source/Game/OPENING.h" #include "sf33rd/Source/Game/color3rd.h" #include "sf33rd/Source/Game/debug/Debug.h" #include "sf33rd/Source/Ga...
__label__POS
0.741801
package deb import ( "fmt" "os" "testing" "github.com/aptly-dev/aptly/database/goleveldb" ) func BenchmarkSnapshotCollectionForEach(b *testing.B) { const count = 1024 tmpDir := os.TempDir() defer func() { _ = os.RemoveAll(tmpDir) }() db, _ := goleveldb.NewOpenDB(tmpDir) defer func() { _ = db.Close() }() ...
__label__POS
0.64402
# (The MIT License) # # Copyright (c) 2014 Andrey Smirnov # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
__label__POS
0.984696
package com.bookstore; import com.bookstore.dto.AuthorDto; import java.util.List; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springfr...
__label__POS
0.919324
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.991905
package com.apress.springrecipes.replicator; import java.util.Date; import org.quartz.CronScheduleBuilder; import org.quartz.JobBuilder; import org.quartz.JobDataMap; import org.quartz.JobDetail; import org.quartz.Scheduler; import org.quartz.Trigger; import org.quartz.TriggerBuilder; import org.quartz.impl.StdSchedu...
__label__POS
0.962398
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.991674
package com.apress.springrecipes.replicator; import javax.management.Attribute; import javax.management.MBeanServerConnection; import javax.management.ObjectName; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class Cli...
__label__POS
0.998955
/* * Create a file TestDependent.java with the contents in this file and substitute the * values as needed... */ package org.python.pydev.core; public class TestDependent { //NOTE: this should be gotten from some variable to point to the python lib (less system dependence, but still, some). //NOTE 2: the...
__label__POS
0.999055
package com.bookstore.service; import java.util.ArrayList; import java.util.List; import com.bookstore.entity.Author; import com.bookstore.entity.Book; import com.bookstore.repository.AuthorRepository; import com.bookstore.repository.BookRepository; import org.springframework.stereotype.Service; import org.springframe...
__label__POS
0.628719
/* * Create a file TestDependent.java with the contents in this file and substitute the * values as needed... */ package org.python.pydev.core; public class TestDependent { //NOTE: this should be gotten from some variable to point to the python lib (less system dependence, but still, some). //NOTE 2: ...
__label__POS
0.999055
package com.bookstore.config; import net.ttddyy.dsproxy.listener.logging.SLF4JLogLevel; import net.ttddyy.dsproxy.support.ProxyDataSourceBuilder; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; import org.springframework.aop.framework.ProxyFactory; import org.spri...
__label__POS
0.832308
package com.apress.springrecipes.replicator.config; import java.io.File; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.apress.springrecipes....
__label__POS
0.603793
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Atlass.Framework.Cache; using Atlass.Framework.Core.Base; using Atlass.Framework.Generate; using Atlass.Framework.Models; using Atlass.Framework.ViewModels; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions....
__label__POS
0.926822
using Atlass.Framework.Models.Cms; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text; namespace Atlass.Framework.Core.Visit { public static class IPHelper { private static ConcurrentDictionary<int,cms_ip_manager> WriteList; static IP...
__label__POS
0.926516
using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Atlass.Framework.Core.BigFile { public static class UploaderFileHelper { public static void SaveFile(this IFormFile file, string targetDir, string fileName = null) { ...
__label__POS
0.839151
/** * Adds a custom panel in left panel * @method UI.setCustomPanel * @param {object} options * @param {object} options.tab Tab options. * @param {string} options.tab.dataElement data-element for tab. * @param {string} options.tab.title Tooltip for tab. * @param {string} options.tab.img Url for an image. * @par...
__label__POS
0.84291
using Autofac; using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atlass.Framework.Core.DI { public class AutofacUtil { /// <summary> /// Autofac依赖注入静态服务 /// </summary> ...
__label__POS
0.99206
using Atlass.Framework.Common; using Atlass.Framework.Core.Base; using Atlass.Framework.Core.Web; using Autofac; using Microsoft.AspNetCore.Mvc.Infrastructure; using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace Atlass.Framework.Core.DI { public class AtlassAutofa...
__label__POS
0.993729
package com.apress.springrecipes.replicator.config; import java.net.MalformedURLException; import javax.management.MBeanServerConnection; import org.springframework.beans.factory.FactoryBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.s...
__label__POS
0.967567
using Atlass.Framework.Cache; using Atlass.Framework.Common.Log; using Atlass.Framework.Core.HangfireExtend; using Atlass.Framework.ViewModels.YmlConfigs; using Hangfire; using Hangfire.Heartbeat; using Hangfire.LiteDB; using Hangfire.Storage.SQLite; using Microsoft.Extensions.Configuration; using Microsoft.Extensions...
__label__POS
0.885464
namespace Polly.Specs.Helpers.RateLimit; internal static class IRateLimiterExtensions { public static void ShouldPermitAnExecution(this IRateLimiter rateLimiter) { (bool PermitExecution, TimeSpan RetryAfter) canExecute = rateLimiter.PermitExecution(); canExecute.PermitExecution.ShouldBeTrue()...
__label__POS
0.924664
package com.bookstore; import com.bookstore.dto.AuthorDto; import java.util.List; import com.bookstore.service.BookstoreService; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springfr...
__label__POS
0.743066
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Atlass.Framework.Core { /// <summary> ///Html执行者 /// </summary> /// <typeparam name...
__label__POS
0.815313
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Text; namespace Atlass.Framework.Core { public static class AtlassStaticFileExtensions { public static IApplicationBuilder UseAtl...
__label__POS
0.999604
aptly -architectures=i386,amd64 mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main aptly -architectures=i386,amd64 mirror create wheezy-contrib http://mirror.yandex.ru/debian/ wheezy contrib aptly -architectures=i386,amd64 mirror create wheezy-non-free http://mirror.yandex.ru/debian/ wheezy non-free ...
__label__POS
0.68787
using Atlass.Framework.Common.Log; using Atlass.Framework.Core.DI; using Atlass.Framework.DbContext; using Atlass.Framework.ViewModels; using FreeSql; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsof...
__label__POS
0.862321
package com.apress.springrecipes.replicator.config; import java.io.File; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.apress.springrecipes....
__label__POS
0.603793
package com.apress.springrecipes.replicator.config; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jmx.export.MBea...
__label__POS
0.94538
package com.bookstore.service; import com.bookstore.entity.Author; import com.bookstore.repository.AuthorRepository; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class BookstoreService...
__label__POS
0.822545
using Atlass.Framework.Common.Log; using Atlass.Framework.ViewModels.YmlConfigs; using Autofac; using Microsoft.AspNetCore.Hosting; using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace Atlass.Framework.Core { public class GlobalContext { public static I...
__label__POS
0.890999
using System; using System.Collections.Generic; using System.Text; using Atlass.Framework.Common; using Atlass.Framework.ViewModels; using Atlass.Framework.ViewModels.Common; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Atlass.Framework.Core.Comm { public static partial class ToJsonEx { ...
__label__POS
0.999385
package com.apress.springrecipes.replicator.config; import java.io.File; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.apress.springrecipes....
__label__POS
0.603793
package com.apress.springrecipes.replicator.config; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jmx.export.MBea...
__label__POS
0.872239
using Atlass.Framework.Common.Log; using Atlass.Framework.Core.DI; using Atlass.Framework.Core.Web; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Threading.T...
__label__POS
0.826265
package org.python.pydev.shared_core.io; import java.io.File; import java.io.FileFilter; import junit.framework.TestCase; public class FileUtilsTest extends TestCase { private File baseDir; @Override protected void setUp() throws Exception { baseDir = new File(FileUtils.getFileAbsolutePath(new ...
__label__POS
0.789374
using Atlass.Framework.ViewModels.YmlConfigs; using FreeRedis; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atlass.Framework.Cache { /// <summary> /// redis工厂 /// </summary> public class RedisFacto...
__label__POS
0.807924
package com.apress.springrecipes.replicator; import java.util.Date; import org.quartz.JobBuilder; import org.quartz.JobDataMap; import org.quartz.JobDetail; import org.quartz.Scheduler; import org.quartz.SimpleScheduleBuilder; import org.quartz.Trigger; import org.quartz.TriggerBuilder; import org.quartz.impl.StdSche...
__label__POS
0.945146
<?php use Appwrite\Utopia\View; ?> <p> Appwrite Functions unlock limitless potential for developers to extend Appwrite with code snippets. Appwrite Functions are user-defined functions that can start small and scale big, deploying automatically from source control. These Functions can be triggered by HT...
__label__POS
0.622916
package utils import ( "fmt" "sort" ) // StringsIsSubset checks that subset is strict subset of full, and returns // error formatted with errorFmt otherwise func StringsIsSubset(subset, full []string, errorFmt string) error { for _, checked := range subset { found := false for _, s := range full { if checke...
__label__POS
0.997328
package com.bookstore.controller; import com.bookstore.dto.AuthorDto; import com.bookstore.entity.Author; import com.bookstore.service.BookstoreService; import org.springframework.data.domain.Slice; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; ...
__label__POS
0.974698
package cm.aptoide.pt.donations; import com.squareup.moshi.Json; import java.util.List; public class BaseResponse { private Info info; private List<Error> errors; BaseResponse() { } public Error getError() { if (errors != null && errors.size() > 0) { return errors.get(0); } else { ret...
__label__POS
0.64095
package cm.aptoide.pt.donations import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import retrofit2.Response import retrofit2.http.GET import retrofit2.http.Query import java.util.* class DonationsService(private val serviceV8: ServiceV8) { suspend fun getDonations(packageName: String): Li...
__label__POS
0.858706
package cm.aptoide.pt.bonus import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import retrofit2.Response import retrofit2.http.GET class BonusAppcRemoteService(private val serviceApi: ServiceApi) : BonusAppcService { override suspend fun getBonusAppc(): BonusAppcModel { return withCo...
__label__POS
0.732433
<?php $layout = $this->getParam('layout', 'xxl'); $sdk = $this->getParam('sdk', ''); $family = $this->getParam('family', ''); $title = $this->getParam('title', ''); $subtitle = $this->getParam('subtitle', ''); $clientSDK = ($family === APP_PLATFORM_CLIENT && !empty($sdk)) ? '?sdk=' . $sdk : ...
__label__POS
0.758898
<?php $platforms = $this->getParam('platforms', []); $markdown = new \Parsedown(); $markdown->setSafeMode(true); ?> <p>We provide libraries for major programming languages and platforms so you don't have to write code for interacting with our HTTP APIs from scratch.</p> <p>Our team is always working on improving an...
__label__POS
0.928308
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.972531
#include "common.h" #include "structs.h" SoundEvent TSB_PL17[65] = { { .cmd = 1, .flags = 35, .prog = 0, .note = 60, .attr = 1, .vol = 100, ...
__label__POS
0.996082
package cm.aptoide.pt.preferences; import cm.aptoide.accountmanager.AccountService; import cm.aptoide.accountmanager.AdultContent; import rx.Completable; import rx.Observable; /** * Created by trinkes on 16/01/2018. */ public class AdultContentManager implements AdultContent { private final LocalPersistenceAdult...
__label__POS
0.997705
package com.apress.springrecipes.replicator.config; import java.io.File; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.apress.springrecipes....
__label__POS
0.603793
#include "common.h" #include "structs.h" SoundEvent TSB_PL15[65] = { { .cmd = 1, .flags = 35, .prog = 0, .note = 60, .attr = 1, .vol = 100, ...
__label__POS
0.96611
package cm.aptoide.pt.ads; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import rx.Single; public class WalletAdsOfferManager { private static final String WALLET_PACKAGE_NAME = "com.appcoins.wallet"; private final PackageManager packageManager; private final WalletAdsOfferSe...
__label__POS
0.834482
package com.apress.springrecipes.replicator.config; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jmx.export.MBea...
__label__POS
0.918144
#include "common.h" #include "structs.h" SoundEvent TSB_PL12[65] = { { .cmd = 1, .flags = 35, .prog = 0, .note = 60, .attr = 1, .vol = 100, ...
__label__POS
0.984272
package cm.aptoide.pt.view.wizard; import android.os.Bundle; import androidx.fragment.app.Fragment; import cm.aptoide.pt.R; import cm.aptoide.pt.account.view.LoginSignUpFragment; import cm.aptoide.pt.themes.ThemeManager; import static cm.aptoide.pt.view.fragment.NavigationTrackFragment.SHOULD_REGISTER_VIEW; /** * C...
__label__POS
0.807092
#include "common.h" #include "structs.h" SoundEvent TSB_PL13[65] = { { .cmd = 1, .flags = 35, .prog = 0, .note = 60, .attr = 1, .vol = 100, ...
__label__POS
0.990849
package com.bookstore.service; import com.bookstore.entity.Author; import com.bookstore.entity.Book; import com.bookstore.repository.AuthorRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class BookstoreService { private f...
__label__POS
0.658486
package cm.aptoide.pt.table; import android.util.Pair; import java.util.HashSet; import java.util.Set; /** * Created on 13/10/2016. */ public class ScheduledTable implements Table { public static final ColumnDefinition package_name = new ColumnDefinition("package_name"); public static final ColumnDefinition n...
__label__POS
1.000003