text stringlengths 232 16.3k | domain stringclasses 1
value | difficulty stringclasses 3
values | meta dict |
|---|---|---|---|
<|fim_prefix|># repo: ritchie-xl/LintCode-Ladder-Nine-Chapters-Python path: /ch3/test/searchRangeTest.py
__author__ = 'lei'
import unittest
from ch3.node import TreeNode as t
import ch3.searchRange as sr
class MyTestCase(unittest.TestCase):
<|fim_suffix|> a = t(2)
b=t(1)
a.left = b
se... | code_fim | medium | {
"lang": "python",
"repo": "ritchie-xl/LintCode-Ladder-Nine-Chapters-Python",
"path": "/ch3/test/searchRangeTest.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> a = t(20)
b = t(1)
a.left = b
c = t(40)
a.right = c
d = t(35)
c.left = d
self.assertEqual(sr.searchRange(a,17,37),[20,35])
if __name__ == '__main__':
unittest.main()<|fim_prefix|># repo: ritchie-xl/LintCode-Ladder-Nine-Chapters-Python p... | code_fim | medium | {
"lang": "python",
"repo": "ritchie-xl/LintCode-Ladder-Nine-Chapters-Python",
"path": "/ch3/test/searchRangeTest.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: JohnCook17/holbertonschool-machine_learning path: /unsupervised_learning/0x03-hyperparameter_tuning/6-bayes_opt.py
#!/usr/bin/env python3
"""Transfer learning with xception"""
import tensorflow.keras as K
from GPyOpt.methods import BayesianOptimization
import pickle
import os
import numpy as np
... | code_fim | hard | {
"lang": "python",
"repo": "JohnCook17/holbertonschool-machine_learning",
"path": "/unsupervised_learning/0x03-hyperparameter_tuning/6-bayes_opt.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> """the optimization function"""
search_space = [
{"name": "lr", "type": "continuous", "domain": (0.01, 0.001)},
{"name": "dr", "type": "continuous", "domain": (0.1, 0.3)},
{"name": "layer_units0", "type": "discrete", "domain": (32, 64, 128, 256, 512)},
... | code_fim | hard | {
"lang": "python",
"repo": "JohnCook17/holbertonschool-machine_learning",
"path": "/unsupervised_learning/0x03-hyperparameter_tuning/6-bayes_opt.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: saimukund303/python_robot_arm path: /test.py
# -*- coding: utf-8 -*-
import random
import gym
import numpy as np
from collections import deque
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
from simulation_utils import box, simulation
from kin... | code_fim | easy | {
"lang": "python",
"repo": "saimukund303/python_robot_arm",
"path": "/test.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>apdataX = np.random.random((5, 35))
quarter_way_arr = [False, False, False]
quarter_way_arr[0] = True
quarter_way_arr[1] = True
quarter_way_arr[2] = True
mat = np.eye(3)
print(np.linalg.norm(mat))<|fim_prefix|># repo: saimukund303/python_robot_arm path: /test.py
# -*- coding: utf-8 -*-
import random
im... | code_fim | easy | {
"lang": "python",
"repo": "saimukund303/python_robot_arm",
"path": "/test.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>@app.route('/search_faceted', methods=['POST'])
def facQuery():
message = None
facQuery = request.json['facQuery']
result = qp.advancedQuery(facQuery)
response = jsonify(result)
response.headers.add('Access-Control-Allow-Origin', '*')
return response
if __name__ == "__main__":
... | code_fim | hard | {
"lang": "python",
"repo": "ranikamadurawe/IRProject-Sinhala-Song-Browser",
"path": "/searchEngine/server.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: ranikamadurawe/IRProject-Sinhala-Song-Browser path: /searchEngine/server.py
from flask import Flask, request
from flask import jsonify
from preprocessing import QueryProcessor
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
qp = QueryProcessor()
@app.route('/search_general', method... | code_fim | hard | {
"lang": "python",
"repo": "ranikamadurawe/IRProject-Sinhala-Song-Browser",
"path": "/searchEngine/server.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: yingxingtianxia/python path: /PycharmProjects/my_practice/python_practice/prac_75.py
#!/usr/bin/env python
#--coding: utf8--
import time
if __name__ == '__main__':
date = time.strftime('%m-%d')
if date <|fim_suffix|> print '情人节'
else:
print '发红包'
print '这是一个测试题'<|fim_mi... | code_fim | medium | {
"lang": "python",
"repo": "yingxingtianxia/python",
"path": "/PycharmProjects/my_practice/python_practice/prac_75.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>== '03-08':
print '女神节'
elif date == '02-14':
print '情人节'
else:
print '发红包'
print '这是一个测试题'<|fim_prefix|># repo: yingxingtianxia/python path: /PycharmProjects/my_practice/python_practice/prac_75.py
#!/usr/bin/env python
#--coding: utf8--
import time
if __name_<|fim_mi... | code_fim | medium | {
"lang": "python",
"repo": "yingxingtianxia/python",
"path": "/PycharmProjects/my_practice/python_practice/prac_75.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>filename = "record_time.txt"
# Records time in format Sun 10:00:00
current_time = time.strftime('%a %H:%M:%S')
# Append output to file. 'a' is append mode.
with open(filename, 'a') as handle:
# Write (Append) output to a line
handle.write(str(current_time))
# Newline to separate different lines... | code_fim | easy | {
"lang": "python",
"repo": "arbuz001/blog-code-snippets",
"path": "/record_time.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: arbuz001/blog-code-snippets path: /record_time.py
"""
Writes day of the week and time to a file.
Script written for crontab tutorial.
<|fim_suffix|># Records time in format Sun 10:00:00
current_time = time.strftime('%a %H:%M:%S')
# Append output to file. 'a' is append mode.
with open(filename,... | code_fim | medium | {
"lang": "python",
"repo": "arbuz001/blog-code-snippets",
"path": "/record_time.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|># Append output to file. 'a' is append mode.
with open(filename, 'a') as handle:
# Write (Append) output to a line
handle.write(str(current_time))
# Newline to separate different lines of output
handle.write('\n')<|fim_prefix|># repo: arbuz001/blog-code-snippets path: /record_time.py
"""
Wri... | code_fim | medium | {
"lang": "python",
"repo": "arbuz001/blog-code-snippets",
"path": "/record_time.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> print(' model')
batch_size = 50
features = 32 * 32
categories = 5
filter1 = 32
filter2 = 64
train_path = r'dataset\train\[0-4]'
test_path = r'dataset\test\[0-4]'
validation_path = r'dataset\validation\[0-4]'
data_x = dataX(features, train_path)
print("datax... | code_fim | hard | {
"lang": "python",
"repo": "boaz30333/Road-Signs-Classification",
"path": "/CNN_tf2.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: boaz30333/Road-Signs-Classification path: /CNN_tf2.py
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import tensorflow as tf
from tensorflow.keras ... | code_fim | hard | {
"lang": "python",
"repo": "boaz30333/Road-Signs-Classification",
"path": "/CNN_tf2.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>'Owlready2 provides the .is_a attribute for getting the list of superclasses'
print(MeatPizza.is_a)
'The .descendants() and .ancestors() Class methods return a set of the descendant and ancestor Classes.'
print(MeatPizza.ancestors())
'The .iri attribute of the Class can be used to obtain the full IRI of... | code_fim | medium | {
"lang": "python",
"repo": "KeitaK63/RDF_SPARQL_OWL",
"path": "/owlready2/owlready2_sample1.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: KeitaK63/RDF_SPARQL_OWL path: /owlready2/owlready2_sample1.py
'For learning OWL and owlready2'
'From "https://qiita.com/sci-koke/items/a650c09bf77331f5537f"'
'From "https://owlready2.readthedocs.io/en/latest/class.html"'
'* Owlready2 * Warning: optimized Cython parser module "owlready2_optimized... | code_fim | medium | {
"lang": "python",
"repo": "KeitaK63/RDF_SPARQL_OWL",
"path": "/owlready2/owlready2_sample1.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> if len(A)==1:
return A,0
elif len(A)==2:
if A[0]<A[1]:
return A,0
else:
temp=A[0]
A[0]=A[1]
A[1]=temp
return A,1
else:
rightStart=len(A)//2
leftArray=A[0:rightStart]
righArray=A[rightStart:]
B,b=count_and_sort(leftArray)
C,c=count_and_sort(righArray)
D,d... | code_fim | hard | {
"lang": "python",
"repo": "sdfs1231/algorithm",
"path": "/test.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: sdfs1231/algorithm path: /test.py
target=[]
with open('IntegerArray.txt','r') as f:
target=f.readlines()
for x in range(len(target)):
target[x]=int(target[x])
def f(A):
<|fim_suffix|> result=[]
nums=0
i=0
j=0
while i<len(B) or j<len(C):
if i>=len(B):
result=result+C[j:]
... | code_fim | hard | {
"lang": "python",
"repo": "sdfs1231/algorithm",
"path": "/test.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> self.assertEqual(Fib(5), 8)
if __name__ == '__main__':
unittest.main()<|fim_prefix|># repo: AngusK/codelab_bazel path: /examples/py/test.py
"""A tiny example binary for the native Python rules of Bazel."""
import unittest
from bazel_tutorial.examples.py.lib import GetNumber
from bazel_tutorial.ex... | code_fim | medium | {
"lang": "python",
"repo": "AngusK/codelab_bazel",
"path": "/examples/py/test.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: AngusK/codelab_bazel path: /examples/py/test.py
"""A tiny example binary for the native Python rules of Bazel."""
import unittest
from bazel_tutorial.examples.py.lib import GetNumber
from bazel_tutorial.examples.py.fibonacci.fib import Fib
<|fim_suffix|> self.assertEqual(GetNumber(), 42)
... | code_fim | medium | {
"lang": "python",
"repo": "AngusK/codelab_bazel",
"path": "/examples/py/test.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>884655, 10.358022865292604, 8.646825112649417, 20.2327892078267, 18.766048411019685, 13.052230609636176, 11.558094905240548, 18.835189422322646, 10.260846441983652, 8.54355244852529, 27.066113487683353, 41.94060975898352, 58.141469497751466, 19.77779438391957, 36.25557117779881, 45.4410632322259, 29.61910... | code_fim | hard | {
"lang": "python",
"repo": "rpaudel42/SnapSketch",
"path": "/main.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>290760457304, 4.4938947085456915, 13.174720210596188, 140.2224826954092, 235.61166666666682, 205.49083333333357, 195.09249999999997, 149.93166666666667, 160.12550000000002, 136.90277372627372, 14.502040992890636, 10.156387175705616, 37.85819844902654, 11.081328682655597, 9.067567383591296, 5.8023115493760... | code_fim | hard | {
"lang": "python",
"repo": "rpaudel42/SnapSketch",
"path": "/main.py",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|># repo: rpaudel42/SnapSketch path: /main.py
02597967104, 9.906411092901672, 12.335889881576374, 21.412366741928054, 13.886462020124963, 8.413287793499446, 14.534225386657043, 7.983422225765939, 6.680810314869713, 8.517449027380728, 10.744861570314589, 8.454352712727365, 11.220760957747672, 9.087848950048... | code_fim | hard | {
"lang": "python",
"repo": "rpaudel42/SnapSketch",
"path": "/main.py",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> BSTStringSet tester = new BSTStringSet();
tester.put("a");
tester.put("b");
tester.put("b");
tester.put("c");
List<String> Tester2 = tester.asList();
ArrayList ans = new ArrayList<String>();
ans.add("a");
ans.add("b");
ans.add... | code_fim | medium | {
"lang": "java",
"repo": "M1koto/CS61B",
"path": "/hw6/BSTStringSetTest.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> @Test
public void test1() {
BSTStringSet tester = new BSTStringSet();
tester.put("a");
tester.put("b");
tester.put("b");
tester.put("c");
List<String> Tester2 = tester.asList();
ArrayList ans = new ArrayList<String>();
ans.add("a");
... | code_fim | medium | {
"lang": "java",
"repo": "M1koto/CS61B",
"path": "/hw6/BSTStringSetTest.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: M1koto/CS61B path: /hw6/BSTStringSetTest.java
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
<|fim_suffix|> BSTStringSet tester = new BSTStringSet();
tester.put("a");
tester.put("b");
tester.put("b");
... | code_fim | medium | {
"lang": "java",
"repo": "M1koto/CS61B",
"path": "/hw6/BSTStringSetTest.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: bgerstle/fabrial path: /src/main/java/com/eighthlight/fabrial/http/Method.java
package com.eighthlight.fabrial.http;
<|fim_suffix|> GET,
HEAD,
POST,
PUT,
DELETE,
CONNECT,
OPTIONS,
TRACE
}<|fim_middle|>/**
* All specified HTTP methods
*
* See Section 4 of RFC 7231 https://tools... | code_fim | medium | {
"lang": "java",
"repo": "bgerstle/fabrial",
"path": "/src/main/java/com/eighthlight/fabrial/http/Method.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> GET,
HEAD,
POST,
PUT,
DELETE,
CONNECT,
OPTIONS,
TRACE
}<|fim_prefix|>// repo: bgerstle/fabrial path: /src/main/java/com/eighthlight/fabrial/http/Method.java
package com.eighthlight.fabrial.http;
<|fim_middle|>/**
* All specified HTTP methods
*
* See Section 4 of RFC 7231 https://tools... | code_fim | medium | {
"lang": "java",
"repo": "bgerstle/fabrial",
"path": "/src/main/java/com/eighthlight/fabrial/http/Method.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>
public h(Context paramContext, g paramg, f paramf, Handler paramHandler)
{
this.b = paramContext.getApplicationContext();
this.c = paramg;
this.d = paramf;
this.e = paramHandler;
}
private boolean b()
{
BackupInfo localBackupInfo = this.d.e();
return (localB... | code_fim | hard | {
"lang": "java",
"repo": "cga2351/code",
"path": "/DecompiledViberSrc/app/src/main/java/com/viber/voip/backup/h.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: cga2351/code path: /DecompiledViberSrc/app/src/main/java/com/viber/voip/backup/h.java
package com.viber.voip.backup;
import android.content.Context;
import android.net.Uri;
import android.os.Handler;
import com.viber.dexshared.Logger;
import com.viber.jni.Engine;
import com.viber.jni.Eng... | code_fim | hard | {
"lang": "java",
"repo": "cga2351/code",
"path": "/DecompiledViberSrc/app/src/main/java/com/viber/voip/backup/h.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> {
if (t.f(paramUri));
}
public void onConnect()
{
}
public void onConnectionStateChange(int paramInt)
{
if (paramInt == 3)
{
this.g = true;
c();
return;
}
this.g = false;
}
}
/* Location: E:\Study\Tools\apktool2_2\dex2j... | code_fim | hard | {
"lang": "java",
"repo": "cga2351/code",
"path": "/DecompiledViberSrc/app/src/main/java/com/viber/voip/backup/h.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: stanvanrooy/decompiled-instagram path: /decompiled/instagram/sources/p000X/C32071aV.java
package p000X;
/* renamed from: X.1aV reason: invalid class name and case insensitive filesystem */
public final class C32071aV {
<|fim_suffix|> C32081aW r2 = new C32081aW();
if (r3.A0g() !=... | code_fim | hard | {
"lang": "java",
"repo": "stanvanrooy/decompiled-instagram",
"path": "/decompiled/instagram/sources/p000X/C32071aV.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> C32081aW r2 = new C32081aW();
if (r3.A0g() != C13120hv.START_OBJECT) {
r3.A0f();
return null;
}
while (r3.A0p() != C13120hv.END_OBJECT) {
String A0i = r3.A0i();
r3.A0p();
if ("containermodule".equals(A0i)) {
... | code_fim | hard | {
"lang": "java",
"repo": "stanvanrooy/decompiled-instagram",
"path": "/decompiled/instagram/sources/p000X/C32071aV.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> }
@Test
public void setRoom() {
}
@Test
public void getAdapter() {
}
@Test
public void setAdapter() {
}
@Test
public void stopGame() {
}
@Test
public void setFirstTurn() {
}
@Test
public void endMove() {
}
@Test
pub... | code_fim | hard | {
"lang": "java",
"repo": "jonisabdulkarim/draughts",
"path": "/app/src/test/java/jak/draughts/game/DraughtsGameTest.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: jonisabdulkarim/draughts path: /app/src/test/java/jak/draughts/game/DraughtsGameTest.java
package jak.draughts.game;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Spy;
import org.mocki... | code_fim | hard | {
"lang": "java",
"repo": "jonisabdulkarim/draughts",
"path": "/app/src/test/java/jak/draughts/game/DraughtsGameTest.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: 17623252837/Spring-Security-oAuth2 path: /Spring-Security-oAuth2-Server/src/main/java/com/hrh/oauth2/server/OAuth2ServerApplication.java
package com.hrh.oauth2.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
<|fim_... | code_fim | hard | {
"lang": "java",
"repo": "17623252837/Spring-Security-oAuth2",
"path": "/Spring-Security-oAuth2-Server/src/main/java/com/hrh/oauth2/server/OAuth2ServerApplication.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> SpringApplication.run(OAuth2ServerApplication.class,args);
}
}<|fim_prefix|>// repo: 17623252837/Spring-Security-oAuth2 path: /Spring-Security-oAuth2-Server/src/main/java/com/hrh/oauth2/server/OAuth2ServerApplication.java
package com.hrh.oauth2.server;
import org.springframework.boot.SpringA... | code_fim | medium | {
"lang": "java",
"repo": "17623252837/Spring-Security-oAuth2",
"path": "/Spring-Security-oAuth2-Server/src/main/java/com/hrh/oauth2/server/OAuth2ServerApplication.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: argenis-uceda-malca/Inteligencia-Artificial path: /src/peonVspeon/Peon.java
/*
* 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.
*/
package peonVspeon;
import ... | code_fim | hard | {
"lang": "java",
"repo": "argenis-uceda-malca/Inteligencia-Artificial",
"path": "/src/peonVspeon/Peon.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> if (tipo == 2 && posx == getX()
&& ((0 < getY() / 60 - posy / 60 && getY() / 60 - posy / 60 < 2)
|| (0 < getY() / 60 - posy / 60 && getY() / 60 - posy / 60 < 3 && posy / 60 == 4))) {
return true;
}
return false;
}
publi... | code_fim | hard | {
"lang": "java",
"repo": "argenis-uceda-malca/Inteligencia-Artificial",
"path": "/src/peonVspeon/Peon.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> @Autowired
private MemberMapper memberMapper;
@Override
public Result updateMemberExtraDataStatus(String id, String extraDataStatus) {
Result result = new Result();
String code = Constants.FAIL;
String msg = "初始化";
try {
if(StringUtils.isBlank(id... | code_fim | hard | {
"lang": "java",
"repo": "luozuyi/reader-server",
"path": "/src/main/java/com/ancaiyun/serviceImpl/MemberExtraDataServiceImpl.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: luozuyi/reader-server path: /src/main/java/com/ancaiyun/serviceImpl/MemberExtraDataServiceImpl.java
package com.ancaiyun.serviceImpl;
import com.ancaiyun.entity.Member;
import com.ancaiyun.entity.MemberExtraData;
import com.ancaiyun.mapper.MemberExtraDataMapper;
import com.ancaiyun.mapper.Membe... | code_fim | hard | {
"lang": "java",
"repo": "luozuyi/reader-server",
"path": "/src/main/java/com/ancaiyun/serviceImpl/MemberExtraDataServiceImpl.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> private String className;
private String message;
}<|fim_prefix|>// repo: sprintgether/original-think path: /ot-server/src/main/java/com/sprintgether/otserver/model/payload/ExceptionMessage.java
package com.sprintgether.otserver.model.payload;
import lombok.Data;
@Data
public class Excep... | code_fim | easy | {
"lang": "java",
"repo": "sprintgether/original-think",
"path": "/ot-server/src/main/java/com/sprintgether/otserver/model/payload/ExceptionMessage.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> private String path;
private String className;
private String message;
}<|fim_prefix|>// repo: sprintgether/original-think path: /ot-server/src/main/java/com/sprintgether/otserver/model/payload/ExceptionMessage.java
package com.sprintgether.otserver.model.payload;
import lombok.Data;
... | code_fim | easy | {
"lang": "java",
"repo": "sprintgether/original-think",
"path": "/ot-server/src/main/java/com/sprintgether/otserver/model/payload/ExceptionMessage.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: sprintgether/original-think path: /ot-server/src/main/java/com/sprintgether/otserver/model/payload/ExceptionMessage.java
package com.sprintgether.otserver.model.payload;
<|fim_suffix|> private String message;
}<|fim_middle|>import lombok.Data;
@Data
public class ExceptionMessage {
... | code_fim | medium | {
"lang": "java",
"repo": "sprintgether/original-think",
"path": "/ot-server/src/main/java/com/sprintgether/otserver/model/payload/ExceptionMessage.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: DmytroKovalyk/SecureMessages path: /src/main/java/com/kovalyk/securemessages/form/SearchWrapper.java
package com.kovalyk.securemessages.form;
import java.io.Serializable;
public class SearchWrapper implements Serializable {
<|fim_suffix|> public String getSearchInfo() {
return searchI... | code_fim | medium | {
"lang": "java",
"repo": "DmytroKovalyk/SecureMessages",
"path": "/src/main/java/com/kovalyk/securemessages/form/SearchWrapper.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> public String getSearchInfo() {
return searchInfo;
}
public void setSearchInfo(String searchInfo) {
this.searchInfo = searchInfo;
}
}<|fim_prefix|>// repo: DmytroKovalyk/SecureMessages path: /src/main/java/com/kovalyk/securemessages/form/SearchWrapper.java
package com.kovalyk.securemessag... | code_fim | medium | {
"lang": "java",
"repo": "DmytroKovalyk/SecureMessages",
"path": "/src/main/java/com/kovalyk/securemessages/form/SearchWrapper.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> return searchInfo;
}
public void setSearchInfo(String searchInfo) {
this.searchInfo = searchInfo;
}
}<|fim_prefix|>// repo: DmytroKovalyk/SecureMessages path: /src/main/java/com/kovalyk/securemessages/form/SearchWrapper.java
package com.kovalyk.securemessages.form;
import java.io.Seriali... | code_fim | easy | {
"lang": "java",
"repo": "DmytroKovalyk/SecureMessages",
"path": "/src/main/java/com/kovalyk/securemessages/form/SearchWrapper.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: JoachimSchwarte/MultiVaLCA path: /src/de/unistuttgart/iwb/multivalcagui/EvalMethodPanel.java
/*
* MultiVaLCA
*/
package de.unistuttgart.iwb.multivalcagui;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.e... | code_fim | hard | {
"lang": "java",
"repo": "JoachimSchwarte/MultiVaLCA",
"path": "/src/de/unistuttgart/iwb/multivalcagui/EvalMethodPanel.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> private void button5() {
btnP14n5.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
btnP14n2.setEnabled(false);
txtP14n2.setEnabled(false);
btnP14n5.setEnabled(false);
}
});
}//Weiter botton
@Override
public void... | code_fim | hard | {
"lang": "java",
"repo": "JoachimSchwarte/MultiVaLCA",
"path": "/src/de/unistuttgart/iwb/multivalcagui/EvalMethodPanel.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> btnP14n1.setEnabled(true);
btnP14n5.setEnabled(false);
btnP14n2.setEnabled(false);
btnP14n3.setEnabled(false);
btnP14n4.setEnabled(false);
txtP14n1.setEnabled(true);
txtP14n2.setEnabled(false);
txtP14n3.setEnabled(false);
txtP14n1.setText("");
txtP14n2.setT... | code_fim | hard | {
"lang": "java",
"repo": "JoachimSchwarte/MultiVaLCA",
"path": "/src/de/unistuttgart/iwb/multivalcagui/EvalMethodPanel.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: SantiagoHE/prueba-lne-uno path: /src/logistica_4.java
javax.swing.DefaultComboBoxModel(new String[] { "<INTERNO>", "ADMINISTRACION ", "DIAGRAMACION ", "EDITORIAL ", "FABIO RINCON ", "HECTOR NAVARRO ", "INVESTIGACION ", "JEANNETH BERNAL ", "KAREN RUBIANO ", "LILIANA SIERRA ", "LOGISTICA ", "PRODU... | code_fim | hard | {
"lang": "java",
"repo": "SantiagoHE/prueba-lne-uno",
"path": "/src/logistica_4.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> jLabel8.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel8.setText("Falsa portada");
selec_falsap2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-", "Si", "No" }));
jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel9.... | code_fim | hard | {
"lang": "java",
"repo": "SantiagoHE/prueba-lne-uno",
"path": "/src/logistica_4.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> // TODO add your handling code here:
}//GEN-LAST:event_txt_cantidadActionPerformed
private void cancelar_log4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelar_log4ActionPerformed
logistica_2 obj=new logistica_2();//me lleva a la ventana que quiero al dar ... | code_fim | hard | {
"lang": "java",
"repo": "SantiagoHE/prueba-lne-uno",
"path": "/src/logistica_4.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: hysryt/Aichan path: /Aichan2/src/com/example/aichan2/Mike.java
package com.example.aichan2;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.speech.RecognizerIntent;
import android.util.Log;
public class Mike {
/*
* �����F���p�C���e���... | code_fim | medium | {
"lang": "java",
"repo": "hysryt/Aichan",
"path": "/Aichan2/src/com/example/aichan2/Mike.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> /*
* onActivityResult�������data�����ԍŏ��̕���������o��
*/
public String getString(Intent data) {
ArrayList<String> result = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
for(int i=0; i<result.size(); i++) {
Log.i("Mike", result.get(i));
}
if(result != null && result.siz... | code_fim | hard | {
"lang": "java",
"repo": "hysryt/Aichan",
"path": "/Aichan2/src/com/example/aichan2/Mike.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: cimystory/08671 path: /Student Directory App/Student.java
/**
* Student Class.
* @author yuxiz
*/
public class Student {
/**
*firstName of Student.
*/
private String firstName;
/**
*lastName of Student.
*/
private String lastName;
/**
*phoneNumber ... | code_fim | hard | {
"lang": "java",
"repo": "cimystory/08671",
"path": "/Student Directory App/Student.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> return firstName;
}
/**
*Return lastname of student.
*@return last name of student
*/
public String getLastName() {
return lastName;
}
/**
*Return the phone number.
*@return phoneNumber
*/
public String getPhoneNumber() {
return... | code_fim | hard | {
"lang": "java",
"repo": "cimystory/08671",
"path": "/Student Directory App/Student.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> jScrollPane1 = new javax.swing.JScrollPane();
jTree1 = new javax.swing.JTree();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jScrollPane1.setViewportView(jTree1);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout... | code_fim | hard | {
"lang": "java",
"repo": "drvpereira/java-lessons",
"path": "/swing-desktop/Aula3/src/aula3/Arvore.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: drvpereira/java-lessons path: /swing-desktop/Aula3/src/aula3/Arvore.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Arvore.java
*
* Created on 11/09/2010, 11:13:26
*/
package aula3;
import javax.swing.tree.DefaultMutableTreeNod... | code_fim | hard | {
"lang": "java",
"repo": "drvpereira/java-lessons",
"path": "/swing-desktop/Aula3/src/aula3/Arvore.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> private Student[] sort() {
for (int i = 0; i < students.length - 1; i++) {
for (int j = i + 1; j < students.length; j++) {
Student student1 = students[i];
Student student2 = students[j];
if (student1 == null && student2 != null) {
... | code_fim | hard | {
"lang": "java",
"repo": "AlexK3377/HM-Lesson3",
"path": "/src/Group.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: AlexK3377/HM-Lesson3 path: /src/Group.java
public class Group {
private String name;
private Student[] students;
public Group(String name) {
this.name = name;
students = new Student[10];
}
public void join(Student student) {
int position = -1;
... | code_fim | hard | {
"lang": "java",
"repo": "AlexK3377/HM-Lesson3",
"path": "/src/Group.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: AugustoN9/ProjetoPadaria2021 path: /src/senairs/poo/aps/padaria/modelo/DetalheVenda.java
package senairs.poo.aps.padaria.modelo;
public class DetalheVenda {
private int codVenda;
private int codProduto;
private double quantidade;
private double desconto;
private Produto produto;
private... | code_fim | medium | {
"lang": "java",
"repo": "AugustoN9/ProjetoPadaria2021",
"path": "/src/senairs/poo/aps/padaria/modelo/DetalheVenda.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> public void setCodProduto(int codProduto) {
this.codProduto = codProduto;
}
public double getQuantidade() {
return quantidade;
}
public void setQuantidade(double quantidade) {
this.quantidade = quantidade;
}
public double getDesconto() {
return desconto;
}
public void setDesconto(doub... | code_fim | hard | {
"lang": "java",
"repo": "AugustoN9/ProjetoPadaria2021",
"path": "/src/senairs/poo/aps/padaria/modelo/DetalheVenda.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> public void setDesconto(double desconto) {
this.desconto = desconto;
}
public Produto getProduto() {
return produto;
}
public void setProduto(Produto produto) {
this.produto = produto;
}
public Venda getVenda() {
return venda;
}
public void setVenda(Venda venda) {
this.venda = venda... | code_fim | hard | {
"lang": "java",
"repo": "AugustoN9/ProjetoPadaria2021",
"path": "/src/senairs/poo/aps/padaria/modelo/DetalheVenda.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>
@Id
@ManyToOne
@JoinColumn(name = "vali_id", referencedColumnName = "id", foreignKey = @ForeignKey(name = "fk_bienthevali_vali"))
private Vali vali;
@Id
@ManyToOne
@JoinColumn(name = "kich_thuoc_id", referencedColumnName = "id", foreignKey = @ForeignKey(name = "fk_bienthevali_kichthuoc"))
privat... | code_fim | medium | {
"lang": "java",
"repo": "kage1011/WebBanHang",
"path": "/src/main/java/webbanvali/entity/BienTheVali.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: kage1011/WebBanHang path: /src/main/java/webbanvali/entity/BienTheVali.java
package webbanvali.entity;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection... | code_fim | hard | {
"lang": "java",
"repo": "kage1011/WebBanHang",
"path": "/src/main/java/webbanvali/entity/BienTheVali.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> return Enum.valueOf(ShipmentStatus.class, value.toUpperCase());
}
}<|fim_prefix|>// repo: Falkplan/lightspeedecom-api path: /lightspeedecom-api/src/main/java/com/lightspeedhq/ecom/domain/ShipmentStatus.java
package com.lightspeedhq.ecom.domain;
import com.fasterxml.jackson.annotation.JsonCre... | code_fim | hard | {
"lang": "java",
"repo": "Falkplan/lightspeedecom-api",
"path": "/lightspeedecom-api/src/main/java/com/lightspeedhq/ecom/domain/ShipmentStatus.java",
"mode": "spm",
"license": "MIT",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: rdeniel/pluginexample-task path: /src/java/fr/paris/lutece/plugins/workflow/modules/example/services/IExampleTaskService.java
package fr.paris.lutece.plugins.workflow.modules.example.services;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.tran... | code_fim | hard | {
"lang": "java",
"repo": "rdeniel/pluginexample-task",
"path": "/src/java/fr/paris/lutece/plugins/workflow/modules/example/services/IExampleTaskService.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>
// CRUD
/**
* Create an reply
*
* @param reply
*/
@Transactional( WorkflowPlugin.BEAN_TRANSACTION_MANAGER )
void create( Workflow reply );
/**
* Update an reply
*
* @param reply
*/
@Transactional( WorkflowPlugin.BEAN_TRANSACTION_MANAGER ... | code_fim | hard | {
"lang": "java",
"repo": "rdeniel/pluginexample-task",
"path": "/src/java/fr/paris/lutece/plugins/workflow/modules/example/services/IExampleTaskService.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: Jehadul/otms-v2 path: /src/main/java/com/nazdaq/otms2/model/Company.java
package com.nazdaq.otms2.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Gene... | code_fim | hard | {
"lang": "java",
"repo": "Jehadul/otms-v2",
"path": "/src/main/java/com/nazdaq/otms2/model/Company.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> this.createdBy = createdBy;
}
public Date getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
public String getModifiedBy() {
return modifiedBy;
}
public void setModifiedBy(String modifiedBy) {
this.modifiedBy = mo... | code_fim | hard | {
"lang": "java",
"repo": "Jehadul/otms-v2",
"path": "/src/main/java/com/nazdaq/otms2/model/Company.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> return name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = em... | code_fim | hard | {
"lang": "java",
"repo": "Jehadul/otms-v2",
"path": "/src/main/java/com/nazdaq/otms2/model/Company.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> @SuppressWarnings({ "rawtypes" })
@Override
public void read(JsonReader reader, final Object value, String fieldName) throws IOException, IllegalAccessException {
boolean isPrimitive = Primitives.isPrimitive(fieldType.getRawType());
if (typeAdapter instanceof ForeignCollectionTypeAdapter) {
((Fo... | code_fim | hard | {
"lang": "java",
"repo": "zoozooll/MyExercise",
"path": "/meep/Meep/src/com/oregonscientific/meep/database/internal/ModelBoundField.java",
"mode": "spm",
"license": "Apache-2.0",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: Cryzas/FHDW2 path: /workspace/studySystem/src/model/meta/Z_5_0MssgsVisitor.java
package model.meta;
public interface Z_5_0MssgsVisitor extends Z_5_0DOWNMssgsVisitor, Z_5_0UPMssgsVisitor {}
<|fim_suffix|>interface Z_5_0UPMssgsVisitor extends GradesInTenthUPMssgsVisitor {
}<|fim_middle|>
i... | code_fim | easy | {
"lang": "java",
"repo": "Cryzas/FHDW2",
"path": "/workspace/studySystem/src/model/meta/Z_5_0MssgsVisitor.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>}
interface Z_5_0UPMssgsVisitor extends GradesInTenthUPMssgsVisitor {
}<|fim_prefix|>// repo: Cryzas/FHDW2 path: /workspace/studySystem/src/model/meta/Z_5_0MssgsVisitor.java
package model.meta;
public interface Z_5_0MssgsVisitor extends Z_5_0DOWNMssgsVisitor, Z_5_0UPMssgsVisitor {}
<|fim_middle... | code_fim | easy | {
"lang": "java",
"repo": "Cryzas/FHDW2",
"path": "/workspace/studySystem/src/model/meta/Z_5_0MssgsVisitor.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: kazisrabon/MyGenieApp path: /app/src/main/java/com/ks/mygenie/LoginActivity.java
package com.ks.mygenie;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.Window;
import... | code_fim | hard | {
"lang": "java",
"repo": "kazisrabon/MyGenieApp",
"path": "/app/src/main/java/com/ks/mygenie/LoginActivity.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> btnForgotP = (Button) findViewById(R.id.forgotP_btn);
btnForgotP.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent gotoFP = new Intent(getApplicationContext(), ForgotPassActivity.class);
s... | code_fim | hard | {
"lang": "java",
"repo": "kazisrabon/MyGenieApp",
"path": "/app/src/main/java/com/ks/mygenie/LoginActivity.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> private void showAlertDialog(String msg) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(msg);
builder.setPositiveButton("Scan Again", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface d... | code_fim | hard | {
"lang": "java",
"repo": "Realhaqq/DevFestqrScanner",
"path": "/app/src/main/java/com/haqq/qrscanner/ScanActivity.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> pd.hide();
}
});
// Access the RequestQueue through your singleton class.
MySingleton.getInstance(this).addToRequestQueue(jsArrayRequest);
}
private void showAlertDialog(String msg) {
AlertDialog.Builder build... | code_fim | hard | {
"lang": "java",
"repo": "Realhaqq/DevFestqrScanner",
"path": "/app/src/main/java/com/haqq/qrscanner/ScanActivity.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: Realhaqq/DevFestqrScanner path: /app/src/main/java/com/haqq/qrscanner/ScanActivity.java
package com.haqq.qrscanner;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import an... | code_fim | hard | {
"lang": "java",
"repo": "Realhaqq/DevFestqrScanner",
"path": "/app/src/main/java/com/haqq/qrscanner/ScanActivity.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> private TimingStrategy timingStrategy;
public UCIImpl(Engine engine, EngineInfo engineInfo, PrintStream outputStream)
{
this.engine = engine;
this.engineInfo = engineInfo;
out = outputStream;
timingStrategy = new NaiveTimingStrategy();
}
@Override
... | code_fim | hard | {
"lang": "java",
"repo": "y62wang/vegapunk",
"path": "/src/main/java/com/y62wang/chess/game/uci/UCIImpl.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> if (bestMove != null)
{
out.println("bestmove " + bestMove);
}
}
@Override
public void stop()
{
String move = engine.stopSearch();
out.println("bestmove " + move);
}
@Override
public void ponderHit()
{
throw new ... | code_fim | hard | {
"lang": "java",
"repo": "y62wang/vegapunk",
"path": "/src/main/java/com/y62wang/chess/game/uci/UCIImpl.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: y62wang/vegapunk path: /src/main/java/com/y62wang/chess/game/uci/UCIImpl.java
package com.y62wang.chess.game.uci;
import com.y62wang.chess.engine.game.Engine;
import com.y62wang.chess.engine.game.SearchParameters;
import com.y62wang.chess.engine.timing.NaiveTimingStrategy;
import com.y62wang.ch... | code_fim | hard | {
"lang": "java",
"repo": "y62wang/vegapunk",
"path": "/src/main/java/com/y62wang/chess/game/uci/UCIImpl.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: mytxz/pavilion-java path: /src/main/java/cn/com/zdht/pavilion/validation/StringSizeValidator.java
package cn.com.zdht.pavilion.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.ArrayList;
import java.util.Arrays;
import... | code_fim | hard | {
"lang": "java",
"repo": "mytxz/pavilion-java",
"path": "/src/main/java/cn/com/zdht/pavilion/validation/StringSizeValidator.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>
@Override
public void initialize(StringSize constraintAnnotation) {
stringSize = constraintAnnotation;
}
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
//null
if (value == null) {
if (stringSize.allowNull()) {
... | code_fim | medium | {
"lang": "java",
"repo": "mytxz/pavilion-java",
"path": "/src/main/java/cn/com/zdht/pavilion/validation/StringSizeValidator.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: chamanbharti/java-works path: /data-structure-and-algorithm/core-java/src/main/java/com/ds/array/Array2.java
package ds.array;
import java.util.Arrays;
public class Array2 {
public static void main(String[] args) {
//declarationof array
// int[] x;
// int y [];
// int z[];
// //i... | code_fim | hard | {
"lang": "java",
"repo": "chamanbharti/java-works",
"path": "/data-structure-and-algorithm/core-java/src/main/java/com/ds/array/Array2.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>// int[] x = new int[3];
// System.out.println(x);
// System.out.println(x[0]);//classname@hashcode_in_hexadecimalform
//
// int[][] y = new int[2][3];
// System.out.println(y);
// System.out.println(y[0]);
// System.out.println(y[0][0]);
// int[][] y = new int[2][];
// System.out.println(y... | code_fim | hard | {
"lang": "java",
"repo": "chamanbharti/java-works",
"path": "/data-structure-and-algorithm/core-java/src/main/java/com/ds/array/Array2.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>// .withButton(RIGHT, 0) // select trade
// .withButton(A, 0) // select trade
// .withButton(B, 25) // x and y will
// .withButton(A, 10) // be traded
// .withButton(A, 1) // just a moment; select Persian
// .withButton(RIGHT, 1) // select ... | code_fim | hard | {
"lang": "java",
"repo": "peterli110/gb-tas-gen",
"path": "/src/mrwint/gbtasgen/segment/pokemon/gen1/Coop.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>SquirtleTradeBlue());
// saveL("PrepareSquirtleTradeBlue2a");
// loadL("PrepareSquirtleTradeBlue2a");
}
{ // Red Segments
// saveR("PostAbraTradeRed3");
// loadR("PostAbraTradeRed3");
// seqR(new SurgeRed());
// saveR("SurgeRed3");
// loadR("SurgeRed3");
// ... | code_fim | hard | {
"lang": "java",
"repo": "peterli110/gb-tas-gen",
"path": "/src/mrwint/gbtasgen/segment/pokemon/gen1/Coop.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: peterli110/gb-tas-gen path: /src/mrwint/gbtasgen/segment/pokemon/gen1/Coop.java
"SurgeBlue2a");
// loadL("SurgeBlue2a");
// seqL(new PrepareEeveeTradeBlue());
// saveL("PrepareEeveeTradeBlue2a");
// loadL("PrepareEeveeTradeBlue2a");
}
{ // Red Segments
// seqR(ne... | code_fim | hard | {
"lang": "java",
"repo": "peterli110/gb-tas-gen",
"path": "/src/mrwint/gbtasgen/segment/pokemon/gen1/Coop.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: showmaxAlt/showmaxAndroid path: /java/src/org/java_websocket/WrappedByteChannel.java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package org.java_websocket;
import ... | code_fim | medium | {
"lang": "java",
"repo": "showmaxAlt/showmaxAndroid",
"path": "/java/src/org/java_websocket/WrappedByteChannel.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> public abstract boolean isNeedWrite();
public abstract int readMore(ByteBuffer bytebuffer)
throws SSLException;
public abstract void writeMore()
throws IOException;
}<|fim_prefix|>// repo: showmaxAlt/showmaxAndroid path: /java/src/org/java_websocket/WrappedByteChannel.java
/... | code_fim | medium | {
"lang": "java",
"repo": "showmaxAlt/showmaxAndroid",
"path": "/java/src/org/java_websocket/WrappedByteChannel.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: AnswerHM/mybatis_test path: /src/com/humin_mybatis/testRedis/PoolConfig.java
/**
* Jan 4, 2018
*/
package com.humin_mybatis.testRedis;
import java.util.Properties;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.InitializingBean;
<|fim_suffix|> Proper... | code_fim | hard | {
"lang": "java",
"repo": "AnswerHM/mybatis_test",
"path": "/src/com/humin_mybatis/testRedis/PoolConfig.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|>/**
* @ClassName: PoolConfig
* @Description:
* @author humin
* @date Jan 4, 2018 3:36:44 PM
*
*/
public class PoolConfig extends JedisPoolConfig implements InitializingBean{
@Override
public void afterPropertiesSet() throws Exception {
Properties properties = ConfigProperties.newInstance... | code_fim | medium | {
"lang": "java",
"repo": "AnswerHM/mybatis_test",
"path": "/src/com/humin_mybatis/testRedis/PoolConfig.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_suffix|> @Override
public void afterPropertiesSet() throws Exception {
Properties properties = ConfigProperties.newInstance();
if(properties != null){
// if(StringUtils.isNotBlank(properties.getProperty("redis.maxTotal")))
// setMaxTotal(Integer.parseInt(properties.getProperty("redis.maxTotal").trim... | code_fim | hard | {
"lang": "java",
"repo": "AnswerHM/mybatis_test",
"path": "/src/com/humin_mybatis/testRedis/PoolConfig.java",
"mode": "spm",
"license": "unknown",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: warchiefmarkus/WurmServerModLauncher-0.43 path: /TOOLS/server/org/seamless/swing/Controller.java
package org.seamless.swing;
import java.awt.event.ActionListener;
import java.awt.event.WindowListener;
import java.util.List;
import javax.swing.AbstractButton;
public interface Controller<V exten... | code_fim | medium | {
"lang": "java",
"repo": "warchiefmarkus/WurmServerModLauncher-0.43",
"path": "/TOOLS/server/org/seamless/swing/Controller.java",
"mode": "psm",
"license": "IJG",
"source": "the-stack-v2"
} |
<|fim_suffix|>/* Location: C:\Users\leo\Desktop\server.jar!\org\seamless\swing\Controller.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 1.1.3
*/<|fim_prefix|>// repo: warchiefmarkus/WurmServerModLauncher-0.43 path: /TOOLS/server/org/seamless/swing/Controller.java
package org.seamless... | code_fim | hard | {
"lang": "java",
"repo": "warchiefmarkus/WurmServerModLauncher-0.43",
"path": "/TOOLS/server/org/seamless/swing/Controller.java",
"mode": "spm",
"license": "IJG",
"source": "the-stack-v2"
} |
<|fim_suffix|> void finalActionExecute();
}
/* Location: C:\Users\leo\Desktop\server.jar!\org\seamless\swing\Controller.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 1.1.3
*/<|fim_prefix|>// repo: warchiefmarkus/WurmServerModLauncher-0.43 path: /TOOLS/server/org/seamless/swing/Con... | code_fim | medium | {
"lang": "java",
"repo": "warchiefmarkus/WurmServerModLauncher-0.43",
"path": "/TOOLS/server/org/seamless/swing/Controller.java",
"mode": "spm",
"license": "IJG",
"source": "the-stack-v2"
} |
<|fim_prefix|>// repo: bright-composite/CompositeUtils path: /main/aqua/common/web/WebTarget.java
package aqua.common.web;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Output... | code_fim | hard | {
"lang": "java",
"repo": "bright-composite/CompositeUtils",
"path": "/main/aqua/common/web/WebTarget.java",
"mode": "psm",
"license": "unknown",
"source": "the-stack-v2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.