content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protect... | __label__POS | 0.676376 |
<?php
namespace App\Http\Middleware;
use Closure;
class RefreshToken extends \Tymon\JWTAuth\Middleware\BaseMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, ... | __label__POS | 0.883439 |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class PasswordsController extends Controller
{
/**
* Create new password controller instance.
*/
public function __construct()
{
$this->middleware('guest');
}
/**
* Display the form to request a password re... | __label__POS | 0.945563 |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SocialController extends Controller
{
/**
* SocialController constructor.
*/
public function __construct()
{
$this->middleware('guest');
}
/**
* Handle social login process.
*
* @param \Illu... | __label__POS | 0.978004 |
<?php
namespace App\Http\Controllers;
use App\Article;
use App\Http\Requests\ArticlesRequest;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Http\Request;
use File;
class ArticlesController extends Controller implements Cacheable
{
/**
*... | __label__POS | 0.95218 |
<?php
namespace App\Http\Controllers;
use App\Article;
use App\Comment;
use App\Http\Requests\CommentsRequest;
use Illuminate\Http\Request;
class CommentsController extends Controller
{
/**
* CommentsController constructor.
*/
public function __construct()
{
$this->middleware('auth');
... | __label__POS | 0.874276 |
<?php
namespace App\Http\Controllers;
class DocsController extends Controller
{
/**
* @var \App\Documentation
*/
protected $docs;
/**
* DocsController.
*
* @param \App\Documentation $docs
*/
public function __construct(\App\Documentation $docs)
{
$this->docs ... | __label__POS | 0.98462 |
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class UsersController extends Controller
{
public function __construct()
{
$this->middleware('guest');
}
/**
* Show the application registration form.
*
* @return \Illuminate\Http\Response
*/... | __label__POS | 0.647982 |
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesReques... | __label__POS | 0.764957 |
<?php
namespace App\Http\Controllers;
use App\Attachment;
use Illuminate\Http\Request;
class AttachmentsController extends Controller
{
/**
* AttachmentsController constructor.
*/
public function __construct()
{
$this->middleware('auth', ['except' => 'show']);
}
/**
* Stor... | __label__POS | 0.891456 |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SessionsController extends Controller
{
use \Illuminate\Foundation\Auth\ThrottlesLogins;
/**
* 지정된 횟수를 초과해서 로그인이 틀렸을 때 로그인이 잠기는 시간.
*
* @var int
*/
protected $lockoutTime = 60;
/**
* 틀린 로그인을 몇 번까지 허용할 ... | __label__POS | 0.910526 |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\SessionsController as ParentController;
use Illuminate\Http\Request;
class SessionsController extends ParentController
{
/**
* Make a success response.
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
... | __label__POS | 0.721417 |
<?php
namespace App\Http\Controllers\Api\v1;
use App\Article;
use App\EtagTrait;
use App\Http\Controllers\ArticlesController as ParentController;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Database\Eloquent\Collection;
class ArticlesController extends ParentController
{
use EtagTrai... | __label__POS | 0.894747 |
<?php
namespace App\Http\Controllers\Api\v1;
use App\Article;
use App\Comment;
use App\Http\Controllers\CommentsController as ParentController;
class CommentsController extends ParentController
{
/**
* CommentsController constructor.
*/
public function __construct()
{
parent::__construc... | __label__POS | 0.995786 |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class ClearOrphanedAttachments extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'my:coa';
/**
* The console command description.
*
* @v... | __label__POS | 0.708849 |
//
// TestLoadingView.swift
// PJ3T3_Postie
//
// Created by Eunsu JEONG on 2/14/24.
//
import SwiftUI
struct LoadingView: View {
@ObservedObject private var counter = Counter(interval: 1)
let profileImages = ["postySmileSketch", "postySmileLine", "postySmileLineColor", "postyThinkingSketch", "postyThinkin... | __label__POS | 0.70873 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="msapplication-tap-highlight" content="no">
<!-- SEO -->
<meta name="description" content="{{ config('project.... | __label__POS | 0.71462 |
<?php
namespace Test\Http\Controllers;
class PasswordsControllerTest extends AuthHelper
{
/** @test */
public function 비밀번호_바꾸기_요청을_처리한다()
{
$this->expectsEvents(\App\Events\PasswordRemindCreated::class);
$this->createTestStub();
$this->remind()
->seeInDatabase('pass... | __label__POS | 0.78901 |
<?php
namespace OEModule\Admin\seeders;
use OE\seeders\BaseSeeder;
use OEModule\OphCoMessaging\factories\models\MailboxFactory;
/**
* AddMailboxSeeder is a seeder for generating data used solely in the Add Shared Mailbox test (admin\shared-mailboxes.cy.js)
*/
class AddMailboxSeeder extends BaseSeeder
{
/**
* ... | __label__POS | 0.6513 |
//
// GroupedLetterViewModel.swift
// PJ3T3_Postie
//
// Created by 권운기 on 2/15/24.
//
import Foundation
class GroupedLetterViewModel: ObservableObject {
// 숫자, 한글, 알파벳 순서대로 정렬
func customSort(recipients: [String]) -> [String] {
return recipients.sorted { (lhs: String, rhs: String) -> Bool in
... | __label__POS | 0.996537 |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of OphInDnaextraction_DnaExtraction_Storage
*
* @author Irvine
*/
class OphInDnaextraction_DnaExtraction_... | __label__POS | 0.665963 |
<?php
class m170118_140823_fix_extracted_by extends CDbMigration
{
public function up()
{
$this->renameColumn('et_ophindnaextraction_dnaextraction', 'extracted_by', 'extracted_by_text');
$this->renameColumn('et_ophindnaextraction_dnaextraction_version', 'extracted_by', 'extracted_by_text');
... | __label__POS | 0.998703 |
$(document).ready(function(){
$('#OphInDnaextraction_DnaExtraction_Storage_letter').keyup(function(){
this.value = this.value.toUpperCase();
});
});
function getExtractionStorageLetterNumber( obj ){
obj = $(obj);
$.ajax({
'type': 'POST',
'url': baseUrl+'/OphInDnaextraction/dnaExt... | __label__POS | 0.896304 |
using AppiumFlutterFinder;
using System.Text.RegularExpressions;
namespace AppiumFlutterFinderTests
{
public class Tests
{
[Test]
public void TestByAncestor()
{
var element = new FlutterElement(null, FlutterBy.ByAnscestor(
FlutterBy.ByAnscestor(FlutterBy.Pag... | __label__POS | 0.998647 |
<?php
class m140128_095036_table_versioning extends OEMigration
{
public function up()
{
$this->addColumn('ophtrlaser_site_laser', 'active', 'boolean not null default true');
$this->update('ophtrlaser_site_laser', array('active' => new CDbExpression('not(deleted)')));
$this->dropColumn(... | __label__POS | 0.964898 |
<?php
class m230307_164100_add_more_columns_to_v_patient_laser_procedures extends OEMigration
{
public function safeUp()
{
$this->execute("CREATE OR REPLACE
ALGORITHM = UNDEFINED VIEW `v_patient_laser_procedure` AS
SELECT
`p`.`id` AS `patient_id`,
... | __label__POS | 0.999571 |
<?php
/**
*/
class m140624_144310_oe4282_change_types extends OEMigration
{
// This is a hash-of-list of table to affected columns which are
// currently VARCHAR(4096) and should be TEXT. It's mainly here so
// down() can revert the change.
private static $CHANGES = array(
'et_ophtrlaser_ante... | __label__POS | 0.699678 |
package example.appium;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException;
impor... | __label__POS | 0.630156 |
package org.applause.lang.generator.ios.ui;
import org.applause.lang.generator.ios.AppGenerator;
import org.applause.lang.generator.ios.IosOutputConfigurationProvider;
import org.applause.lang.ui.builder.ApplauseBuilderParticipant;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.xtext.builder.Eclips... | __label__POS | 0.946077 |
/*
* generated by Xtext
*/
package org.applause.lang.ui.contentassist.antlr;
import java.util.Collection;
import java.util.Map;
import java.util.HashMap;
import org.antlr.runtime.RecognitionException;
import org.eclipse.xtext.AbstractElement;
import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssis... | __label__POS | 0.745701 |
/*
* generated by Xtext
*/
package org.applause.lang.ui.contentassist.antlr;
import java.util.Collection;
import java.util.Collections;
import org.eclipse.xtext.AbstractRule;
import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser;
import org.eclipse.xtext.ui.editor.contentassist.ant... | __label__POS | 0.656664 |
\chapter{序列与级数}
\label{chap:2}
\section{讨论:无穷级数的重排}
\label{sec:2.1}
考虑无穷级数
\[
\mathop{\sum }\limits_{{n = 1}}^{\infty }\frac{{\left( -1\right) }^{n + 1}}{n} = 1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \frac{1}{5} - \frac{1}{6} + \frac{1}{7} - \frac{1}{8} + \cdots .
\]
如果我们从左侧开始简单相加,就会得到一系列所谓的部分和。换句话说,令 \({s}_{n}\... | __label__POS | 0.84051 |
\chapter{导数}
\label{chap:5}
\section{讨论:导数是否连续?}
\label{sec:5.1}
导数的几何动机来自我们非常熟悉的问题。给定一个函数 \(g\left( x\right)\) ,导数 \({g}^{\prime }\left( x\right)\) 被理解为函数 \(g\) 在定义域内每个点 \(x\) 处的图形斜率。图 \ref{fig:5.1} 揭示了数学定义背后的动机。
\[
{g}^{\prime }\left( c\right) = \mathop{\lim }\limits_{{x \rightarrow c}}\frac{g\left( x\right) - g\... | __label__POS | 0.730993 |
<?php
class DefaultController extends BaseEventTypeController
{
public function volumeRemaining($event_id)
{
$volume_remaining = 0;
if ($api = Yii::app()->moduleAPI->get('OphInDnaextraction')) {
$volume_remaining = $api->volumeRemaining($event_id);
}
return $volume... | __label__POS | 0.972204 |
\chapter{附加主题}
\label{chap:8}
前七章提供的分析基础足以作为探索一些高级和历史重要主题的背景。本章的写作风格类似于各章末尾的项目总结部分。讲解中包含了练习,旨在使每一节都成为对分析领域重要成就的叙述性探究。
\section{广义Riemann积分}
\label{sec:8.1}
第七章以 Henri Lebesgue 的优雅结论结束,即有界函数是Riemann可积的当且仅当其不连续点形成一个测度为零的集合。为了消除可积性对连续性的依赖,Lebesgue提出了一种新的积分方法,该方法已成为数学中的标准积分。在第七章的结语中,我们简要概述了Lebesgue积分的一些优点和缺点,最后回顾了微积分基本定理(... | __label__POS | 0.752913 |
\chapter{函数序列与函数级数}
\label{chap:6}
\section{讨论:分支过程}
\label{sec:6.1}
多项式函数在纯数学与应用分析领域具有广泛的应用,其背后的原因是多方面的。它们是连续的、无限可微的,并且在整个 \(\mathbb{R}\) 上都有定义。无论是从代数(加法、乘法、因式分解)还是微积分(积分、微分)的角度来看,它们都易于计算和操作。因此,即使在微积分发展的最初阶段,数学家们就尝试将多项式的概念扩展到本质上为无限次多项式的函数,这并不令人惊讶。这类对象被称为幂级数,其形式表示为
\[
\mathop{\sum }\limits_{{n = 0}}^{\infty }{a}_{n}{x... | __label__POS | 0.825665 |
\chapter{函数极限与连续性}
\label{chap:4}
\section{讨论: Dirichlet 和 Thomae 的例子}
\label{sec:4.1}
尽管在微积分课程中通常先讨论连续性再讨论微分,但历史上数学家对连续性概念的关注远在导数被广泛使用之后。Pierre de Fermat (1601-1665)早在1629年就使用切线来解决优化问题。另一方面,直到大约1820年,Cauchy、Bolzano、Weierstrass 等人才开始用比“无断裂曲线”或“无跳跃或间隙的函数”等流行的直观概念更为严谨的方式来描述连续性。这两百年等待期的根本原因在于,在这段时间的大部分时间里,函数的概念本身并不真正允许不连... | __label__POS | 0.858443 |
\chapter{Riemann积分}
\label{chap:7}
\section{讨论:积分应如何定义?}
\label{sec:7.1}
微积分基本定理阐述了微分与积分之间的互逆关系。它分为两部分,取决于我们是对积分进行微分还是对导数进行积分。在函数 \(f\) 和 \(F\) 的适当假设下,微积分基本定理指出
\begin{enumerate}[label=(\roman*)]
\item\label{item:7.1.1} \({\int }_{a}^{b}{F}^{\prime }\left( x\right) {dx} = F\left( b\right) - F\left( a\right)\)
\item\... | __label__POS | 0.829437 |
\chapter{\(\mathbb{R}\) 的基本拓扑结构}
\label{chap:3}
\section{讨论:Cantor集}
\label{sec:3.1}
接下来是一个由 Georg Cantor 提出的迷人的数学构造,它对于扩展我们对实数集的子集的性质的直觉极为有用。Cantor的名字已经在第一章关于不可数集的讨论中出现过。需要特别指出的是,Cantor证明实数集不可数的突破性工作,已然跻身于揭示数学无穷本质最重要的研究成果之列。用 David Hilbert 的话来说,“没有人能把我们从Cantor为我们创造的天堂中驱逐出去。”
设 \({C}_{0}\) 为闭区间 \(\left\lbrack {0,1}\... | __label__POS | 0.733477 |
\chapter{实数}
\label{chap:1}
\section{讨论: \(\sqrt{2}\) 的无理性}
\label{sec:1.1}
在他杰出的职业生涯接近尾声时,著名的英国数学家 G.H. Hardy 在1940年首次发表的《一个数学家的辩白(A Mathematician’s Apology)》一文中,雄辩地阐述了研究数学的理由。Hardy辩护的核心论点是,数学是一门美学学科。对于Hardy来说,工程师和经济学家所应用的那些数学几乎没有吸引力。他所说的“真正的数学”,“如果要证明其合理性,就必须像艺术一样被证明。”
为了帮助阐明他的观点,Hardy引用了两个来自古希腊数学的定理,他认为这些定理具有一种难以捉摸... | __label__POS | 0.878594 |
<?php
/**
* Created by Mike Smith <mike.smith@camc-ltd.co.uk>.
*/
namespace OEModule\OphCiExamination\components;
class ExaminationHelper
{
/**
* @param \Episode $episode
* @return array
*/
public static function getOtherPrincipalDiagnoses(\Episode $episode)
{
$right_principals =... | __label__POS | 0.994213 |
package com.lin.demo.consumer;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import kafka.consumer.ConsumerConfig;
import kafka.consumer.ConsumerIterator;
import kafka.consumer.KafkaStream;
import kafka.javaapi.consumer.ConsumerConnector;
import kafka.serializer.S... | __label__POS | 0.980899 |
package com.lin.demo.producer;
import java.util.Properties;
import kafka.javaapi.producer.Producer;
import kafka.producer.KeyedMessage;
import kafka.producer.ProducerConfig;
public class KafkaProducer {
private final Producer<String, String> producer;
public final static String TOPIC = "linlin";
private KafkaPro... | __label__POS | 0.996237 |
package com.lin.basecount;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.... | __label__POS | 0.973663 |
package com.lin.counttime;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.... | __label__POS | 0.986406 |
package com.lin.counttime;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritabl... | __label__POS | 0.911243 |
package com.lin.keyword;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.... | __label__POS | 0.938673 |
/*
* generated by Xtext
*/
package org.applause.lang.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.applause.lang.services.ApplauseDslGrammarAccess;
public class ApplauseDslParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
@Injec... | __label__POS | 0.929202 |
package com.lin.keyword;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;... | __label__POS | 0.911144 |
package com.lin.keyword;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce... | __label__POS | 0.985788 |
package com.lin.keyword;
import java.io.IOException;
import java.util.TreeMap;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
imp... | __label__POS | 0.992059 |
package com.lin.spout;
import java.util.Map;
import java.util.Random;
import backtype.storm.spout.SpoutOutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseRichSpout;
import backtype.storm.tuple.Fields;
import backtyp... | __label__POS | 0.799897 |
package com.lin.topology;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.StormSubmitter;
import backtype.storm.generated.AlreadyAliveException;
import backtype.storm.generated.InvalidTopologyException;
import backtype.storm.topology.TopologyBuilder;
import com.lin.bolt.WordCou... | __label__POS | 0.997665 |
package com.lin.bolt;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.BasicOutputCollector;
import backtype.storm.topology.OutputFieldsDeclarer;
import backt... | __label__POS | 0.853666 |
package com.lin.wordcount
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
/**
* 本地运行Spark
* 环境:Windows7
* scala版本:2.11.8
* Spark版本:1.6.1
*/
object WordCountLocal {
def main(args: Array[String]): Unit = {
/**
* 第一步:创建Spark的配置对象SparkConf,设置Sp... | __label__POS | 0.772981 |
<?php
namespace OEModule\OphCiExamination\models;
use OEModule\OphCiExamination\widgets\StereoAcuity as StereoAcuityWidget;
class StereoAcuity extends \BaseEventTypeElement
{
use traits\CustomOrdering;
use traits\HasChildrenWithEventScopeValidation;
protected $widgetClass = StereoAcuityWidget::class;
... | __label__POS | 0.775127 |
package com.lin.demo
import org.apache.spark.SparkConf
import org.apache.spark.streaming._
object StreamingWordCount {
def main(args: Array[String]) {
//开本地线程两个处理
val conf = new SparkConf().setMaster("local[2]").setAppName("NetworkWordCount")
//每隔1秒计算一批数据
val ssc = new StreamingContext(conf, Secon... | __label__POS | 0.978099 |
package org.applause.lang.generator.ios;
import com.google.common.collect.Sets;
import java.util.Collections;
import java.util.Set;
import org.eclipse.xtext.generator.IOutputConfigurationProvider;
import org.eclipse.xtext.generator.OutputConfiguration;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.ec... | __label__POS | 0.992262 |
package org.applause.lang.generator.ios;
import com.google.common.collect.Iterables;
import org.applause.lang.generator.ios.ICompilerModule;
import org.applause.lang.generator.ios.IosOutputConfigurationProvider;
import org.eclipse.emf.common.util.TreeIterator;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.e... | __label__POS | 0.714598 |
package com.github.distribute.queue;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.I0Itec.zkclient.ExceptionUtil;
import org.I0Itec.zkclient.ZkClient;
import org.I0Itec.zkclient.exception.ZkNoNodeException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ... | __label__POS | 0.995619 |
package com.github.distribute.queue;
import java.io.Serializable;
import org.I0Itec.zkclient.ZkClient;
import org.I0Itec.zkclient.serialize.SerializableSerializer;
public class DistributedQueueTest {
public static void main(String[] args) {
ZkClient zkClient = new ZkClient("127.0.0.1:2181", 5000, 5000, new Seria... | __label__POS | 0.830936 |
package com.github.distribute.queue;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import org.... | __label__POS | 0.901294 |
package org.applause.lang.generator.ios.ui;
import com.google.common.collect.Iterables;
import java.util.List;
import org.applause.lang.applauseDsl.DataSource;
import org.applause.lang.applauseDsl.DataSourceAccessMethod;
import org.applause.lang.applauseDsl.DataSourceCall;
import org.applause.lang.applauseDsl.Entity;
... | __label__POS | 0.67101 |
package com.github.distribute.lock.zookeeper;
import java.io.IOException;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.WatchedEvent... | __label__POS | 0.863109 |
package com.github.distribute.lock.zookeeper;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeepe... | __label__POS | 0.817207 |
package com.github.distribute.lock.redis;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import redis.clients.jedis.Jedis;
public class PessimisticLockTest {
public static void main(String[] args) {
long starTime=Sys... | __label__POS | 0.973979 |
package org.applause.lang.generator.ios.ui;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Screen;
import org.applause.lang.generator.ios.IosOutputConfigurationProvider;
import org.applause.lang.generator.ios.ui.DefaultListScreenClassExtensions;
import org.applause.lang.generator.ios.ui.DefaultL... | __label__POS | 0.755615 |
package com.github.distribute.lock.redis;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.BinaryClient.LIST_POSITION;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jed... | __label__POS | 0.994114 |
package com.github.distribute.lock.redis;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Transaction;
/**
* redisֹʵ
* @author linbingwen
*
*/
public class OptimisticLock... | __label__POS | 0.982066 |
package com.github.distribute.lock.redis;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
/**
* ĹǼʵ, ĻȡIJȥʵ.
*
*
*/
public abstract class AbstractLock implements Lock {
/**
* <pre>
* 費Ҫ֤ɼֵ, ΪǷֲʽ,
* 1.ͬһjvmĶ߳ʹòͬʵҲǿԵ, ²Ҫ֤ɼ
* 2.ͬһjvmĶ߳ʹͬһ, ǿɼԾͱҪ֤.
* </pre>
*/
protected ... | __label__POS | 0.979606 |
package com.github.distribute.lock.redis;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import redis.clients.jedis.Jedis;
/**
* RedisSETNXʵֵķֲʽ
*
* ȡʱlock(long time, TimeUnit unit), ·߳һֱ
*/
public class RedisBasedDistributedLock extends AbstractLock {
private Jedis jedis;
... | __label__POS | 0.794545 |
package org.applause.lang.generator.ios.ui;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Screen;
import org.applause.lang.generator.ios.ui.DefaultListScreenClassExtensions;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.Extension;
@SuppressWarnings("all"... | __label__POS | 0.969539 |
package org.applause.lang.generator.ios.ui;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Screen;
import org.applause.lang.generator.ios.IosOutputConfigurationProvider;
import org.applause.lang.generator.ios.ui.DefaultDetailsScreenHeaderFileCompiler;
import org.applause.lang.generator.ios.ui.De... | __label__POS | 0.790971 |
package org.applause.lang.generator.ios.supportfiles;
import org.eclipse.xtend2.lib.StringConcatenation;
@SuppressWarnings("all")
public class PlistFileCompiler {
public final static String PACKAGENAME = "org.applause";
public CharSequence compilePlistFile() {
StringConcatenation _builder = new StringConca... | __label__POS | 0.969955 |
package org.applause.lang.generator.ios.dataaccess;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Entity;
import org.applause.lang.generator.ios.FileNameExtensions;
import org.applause.lang.generator.ios.model.TypeExtensions;
import org.eclipse.xtext.xbase.lib.Extension;
@SuppressWarnings("all... | __label__POS | 0.943236 |
package org.applause.lang.generator.ios.dataaccess;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Entity;
import org.applause.lang.generator.ios.dataaccess.APIClientClassExtensions;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.Extension;
@SuppressWarnin... | __label__POS | 0.923999 |
package org.applause.lang.generator.ios.dataaccess;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Entity;
import org.applause.lang.generator.ios.FileNameExtensions;
import org.applause.lang.generator.ios.model.TypeExtensions;
import org.eclipse.xtext.xbase.lib.Extension;
@SuppressWarnings("all... | __label__POS | 0.942678 |
package org.applause.lang.generator.ios.dataaccess;
import java.util.Arrays;
import java.util.List;
import org.applause.lang.applauseDsl.AbsoluteRESTURL;
import org.applause.lang.applauseDsl.RelativeRESTURL;
import org.applause.lang.applauseDsl.UrlFragment;
import org.applause.lang.applauseDsl.UrlPathFragment;
import ... | __label__POS | 0.622693 |
package org.applause.lang.generator.ios.dataaccess;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Entity;
import org.applause.lang.generator.ios.model.EntityClassExtensions;
import org.applause.lang.generator.ios.model.TypeExtensions;
import org.eclipse.xtend2.lib.StringConcatenation;
import or... | __label__POS | 0.865965 |
package org.applause.lang.generator.ios.model;
import com.google.common.base.Objects;
import org.applause.lang.applauseDsl.Attribute;
import org.applause.lang.applauseDsl.Entity;
import org.applause.lang.applauseDsl.Type;
@SuppressWarnings("all")
public class TypeExtensions {
public String typeName(final Type it) {... | __label__POS | 0.838857 |
package org.applause.lang.generator.ios.model;
import com.google.common.base.Objects;
import com.google.inject.Inject;
import org.applause.lang.applauseDsl.Entity;
import org.applause.lang.generator.ios.model.EntityClassExtensions;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.E... | __label__POS | 0.636728 |
package org.applause.lang.generator.android.ui;
import org.applause.lang.generator.android.AndroidAppGenerator;
import org.applause.lang.generator.android.AndroidOutputConfigurationProvider;
import org.applause.lang.ui.builder.ApplauseBuilderParticipant;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclip... | __label__POS | 0.939728 |
/*
* generated by Xtext
*/
package org.applause.lang;
import org.eclipse.xtext.junit4.GlobalRegistries;
import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento;
import org.eclipse.xtext.junit4.IInjectorProvider;
import org.eclipse.xtext.junit4.IRegistryConfigurator;
import com.google.inject.Injector;
pub... | __label__POS | 0.717693 |
<?php
namespace OEModule\OphCiExamination\models;
use OE\factories\models\traits\HasFactory;
/**
* This is the model class for table "ophciexamination_clinicoutcome_risk_status".
*
* @property int $id
* @property string $name
* @property string $alias
* @property string $description
*/
class OphCiExamination_C... | __label__POS | 0.910039 |
package org.applause.specification.data;
import org.applause.specification.data.EntitiesSpec;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.jnario.runner.ExampleGroupRunner;
import org.jnario.runner.Named;
import org.jnario.runner.Order;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* E... | __label__POS | 0.602603 |
package com.lin.service;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.lin.baseTest.SpringTestCase;
import com.lin.domain.User;
import com.lin.util.PagedResult;
/**
* 功能概要:UserService单元测试
*
* @author linbingwe... | __label__POS | 0.985442 |
package org.applause.specification.codegen.ios;
import org.applause.specification.codegen.ios.APIClientGeneratorEntityAPIClientSpec;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.Functions.Function0;
import org.jnario.runner.ExampleGroupRunner;
import org.jnario.runner.Named;
im... | __label__POS | 0.651643 |
package org.applause.specification.codegen.ios;
import org.applause.specification.codegen.ios.EntityDataMappingGeneratorMappingEntitiesSpec;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.Functions.Function0;
import org.jnario.runner.ExampleGroupRunner;
import org.jnario.runner.N... | __label__POS | 0.76911 |
package org.applause.specification.codegen.ios;
import org.applause.specification.codegen.ios.EntityGeneratorGeneratingEntitiesSpec;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.Functions.Function0;
import org.jnario.runner.ExampleGroupRunner;
import org.jnario.runner.Named;
im... | __label__POS | 0.920195 |
package org.applause.specification.codegen.ios;
import org.applause.specification.codegen.ios.EntityGeneratorGeneratingEntitiesSpec;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.Functions.Function0;
import org.jnario.runner.ExampleGroupRunner;
import org.jnario.runner.Named;
im... | __label__POS | 0.942246 |
// Copyright (c) 2025 Apple Inc. Licensed under MIT License.
import jsonwebtoken = require('jsonwebtoken');
import { randomUUID } from 'crypto';
class BaseSignatureCreator {
private audience: string
private signingKey: string
private keyId: string
private issuerId: string
private bundleId: string
... | __label__POS | 0.725553 |
package org.applause.specification.codegen.ios;
import org.applause.specification.codegen.ios.PlistGeneratorSpec;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.jnario.runner.ExampleGroupRunner;
import org.jnario.runner.Named;
import org.jnario.runner.Order;
import org.junit.Test;
import org.junit.runne... | __label__POS | 0.724499 |
package com.lin.dto;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* <b>类说明:</b>bean基类
*
* <p>
* <b>详细描述:</b>
*
* @author costin_law
* @since 2014-5-... | __label__POS | 0.620327 |
// Copyright (c) 2023 Apple Inc. Licensed under MIT License.
import { Environment, EnvironmentValidator } from "./Environment";
import { Validator } from "./Validator";
/**
* The payload data for a subscription-renewal-date extension notification.
*
* {@link https://developer.apple.com/documentation/appstoreserver... | __label__POS | 0.632531 |
package com.lin.util;
import java.util.List;
import com.lin.dto.BaseEntity;
/**
* 功能概要:
*
* @author linbingwen
* @since 2015年10月23日
*/
public class PagedResult<T> extends BaseEntity {
/*serialVersionUID*/
private static final long serialVersionUID = 1L;
private List<T> dataList;//数据
private long pag... | __label__POS | 0.879861 |
package com.lin.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.lin.dao.UserDao;
import com.lin.domain.User;
import com.lin.util.BeanUtil;
import com.lin.util.Paged... | __label__POS | 0.814459 |
package com.lin.controller;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Req... | __label__POS | 0.70856 |
package com.lin.controller;
import com.lin.common.HttpConstants;
import com.lin.json.JsonDateValueProcessor;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Date;
/**
* Controller基类
*/
public cla... | __label__POS | 0.986423 |
package com.lin.json;
import net.sf.json.JsonConfig;
import net.sf.json.processors.JsonValueProcessor;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class JsonDateValueProcessor implements JsonValueProcessor {
/**
* datePattern
*/
private String datePatt... | __label__POS | 0.99003 |
// Copyright (c) 2023 Apple Inc. Licensed under MIT License.
package com.apple.itunes.storekit.util;
import com.apple.itunes.storekit.model.Environment;
import com.apple.itunes.storekit.verification.SignedDataVerifier;
import org.junit.jupiter.api.Assertions;
import java.io.ByteArrayInputStream;
import java.io.IOExc... | __label__POS | 0.819339 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.