query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
store initial facing ? should we reset the gypo here ? | protected void initialize() {
currentFacing = Robot.drive.getFacing();
} | [
"public void setFacing(\n Direction initFacing)\n {\n facing = initFacing;\n }",
"public void onUpdate()\r\n/* 78: */ {\r\n/* 79:103 */ this.aG = this.yaw;\r\n/* 80: */ \r\n/* 81:105 */ super.onUpdate();\r\n/* 82: */ }",
"public void turnFaceUp()\n {\n \t_faceUp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
map<string, .google.protobuf.Value> task_output = 2; | com.google.protobuf.Value getTaskOutputOrThrow(
java.lang.String key); | [
"public Map<Vertex, Map<Vertex, Boolean>> getTaskMap() {\n return taskMap;\n }",
"public Map<String, String> getOutputPortMapping();",
"public Map<String, String> getTaskStatus();",
"public static TaskOutput fromProtobuf(Iterator<GeneralProtocol.TaskOutput> taskOutputIterator) {\n return new Task... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the passing pawn position. | public short getPassingPawnPosition (); | [
"public Point getPosition()\n {\n return new Point(x_shift, y_shift );\n }",
"public char getPawn() {\n\n return pawn;\n\n }",
"public Pawn getPawn() {\n return pawn;\n }",
"public int getPawnRow() {\n return this.pawnRow;\n }",
"@Override\r\n\tpublic void movePawn() {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an instance of a JobLauncher capable of submitting jobs to batch queuing systems on Condor resources. | public CondorLauncher(Job job) {
super(job);
this.submitFileObject = SubmitScriptFactory.getScript(job);
} | [
"private Job initJob()\n\t{\n\t\tvar job = new Job();\n\t\t\n\t\t// Required fields\n\t\tjob.setName(\"test1job\");\n\t\tjob.setOwner(\"bud\");\n\t\tjob.setTenant(\"fakeTenant\");\n\t\tjob.setDescription(\"This is a fake job that will never run\");\n\n\t job.setAppId(\"fakeAppId\");\n\t job.setAppVersion(\"1.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Define a class given its bytes | protected Class defineClassFromData(File container, byte[] classData, String classname) throws IOException {
definePackage(container, classname);
ProtectionDomain currentPd = Project.class.getProtectionDomain();
String classResource = getClassFilename(classname);
CodeSource src = new Cod... | [
"public Class defineClass(String name, byte[] data, \n Object securityDomain);",
"public Class< ? > defineClass( String name, byte[] data )\r\n\t{\r\n\t\treturn super.defineClass( name, data, 0, data.length );\r\n\t}",
"private Class<?> loadClassFromData_(String name, byte[] data) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Crashing should shut down the executor service, but we don't want further calls that would use it to throw exceptions! | public void testFinalizeSessionAfterCrashOk() throws Exception {
final CrashlyticsController controller = builder().build();
controller.handleUncaughtException(
testSettingsDataProvider, Thread.currentThread(), new RuntimeException());
// This should not throw.
controller.finalizeSessions(sessi... | [
"@Override\r\n\tpublic void exit() {\r\n\t\texecutor.shutdown();\r\n\t}",
"public void shutdown() {\n _executorService.shutdown();\n }",
"public void killAllAndExit(){\r\n executor.shutdownNow();\r\n System.exit(1);\r\n }",
"public static void kill() {\r\n\t\tif (executorTassadar !=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Click / Select Assessment By Assessment Name and Visit Name And Subject Name | public AssessmentsDetailsPage selectByAssesmentNameAndVisitAndSubjectName(String assesmentName, String visitName,
String subjectName) {
/** Search through filter icons */
searchFilterValueByColumnNameAndValue(Constants.StudyDashBoard_columnName_Assessment, assesmentName);
searchFilterValueByColumnNameAndValu... | [
"public void selectAgence(){\n\t\twait = new WebDriverWait(driver, p_wait).ignoring(NoSuchElementException.class);\n\t\twait.until(ExpectedConditions.elementToBeClickable(validationAgence));\n\t\tdriver.findElement(validationAgence).click(); //click \"Selection\"\n\t\t\n\t}",
"@Test(description = \"FP-TC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contexts: Model returns Model Constraint: calculations+=Calculation+ | protected void sequence_Model(ISerializationContext context, Model semanticObject) {
genericSequencer.createSequence(context, semanticObject);
} | [
"VignettingCalculator calculator(ObsContext ctx);",
"public CalcModel(){\n\t\trealNumCount = imagNumCount = 1;\n\t\trealFracCount = imagFracCount = 0;\n\t\tstartReal = startImag = true;\n\t\tfractionReal = fractionImag = false;\n\t\tlastCommand = Command.EQUALS;\n\t\tresult = new Complex();\n\t\targument = new Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a X.509 V3 Certificate. | private static X509Certificate generateCertificate(String dn, int days,
String applicationUri, KeyPair keys,
org.opcfoundation.ua.transport.security.KeyPair issuerKeys, String... hostNames) throws GeneralSecurityException, IOException {
PrivateKey privkey = keys.getPrivate();
PublicKey publicKey = keys.... | [
"public X509V1CreateExample() {}",
"SecCertificateRef SecCertificateCreateWithData(CFAllocatorRef allocator, NSData data);",
"public X509Certificate createRootCertificate() \n\t{\n\n\t\tString rootProfile = \"C=CA, L=Ottawa, ST=Ontario, O=DigSigMobile, \" +\n\t\t\t\t\"OU=DigSigMobile Development Unit,E=digsigmo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
most code from powerpoint constructor | public FileSystem(int diskBlocks) {
superblock = new Superblock(diskBlocks);
directory = new Directory(superblock.totalInodes);
iNodes = new Inode[superblock.totalInodes];
// goes through array of iNodes and initializes
for (short i = 0; i < iNodes.length; i++) {
... | [
"private SingleObjectPt2() {}",
"public PointLess() {\n new Point(0, 0);// calls Point(int, int) constructor\n }",
"Point() {\n }",
"public Point(){\n\t\tthis(0, 0);\n\t}",
"public void initPoints() {\n \r\n }",
"public Point(Point2d p)\n {\n super(p);\n }",
"public P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A class which implements this interface is able to receive structural events. | public interface DesignListener {
/**
* Called when a child is added to a Structural object.
*
* @param event The structural event.
*/
void childAdded(DesignStructureEvent event);
/**
* Called when a child is removed from a Structural object.
*
* @param event The structural event.
*/
void child... | [
"@Override\n\tpublic void eventReceived() {\n\t\t\n\t}",
"public interface Event {\n}",
"public interface Event\n{\n}",
"public interface Event {\n\n /**\n * Returns the type of the event.\n *\n * @return the type of the event.\n */\n EventType getType();\n\n /**\n * Returns the wavelet in which... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns new URL object from the given string URL. | private static URL createUrl(String stringUrl) {
URL url = null;
try{
url = new URL(stringUrl);
} catch (MalformedURLException e) {
Log.e(LOG_TAG, "Error with creating URL", e);
}
return url;
} | [
"private static URL create(String urlString) {\n URL url = null;\n try {\n url = new URL(urlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating url\");\n }\n return url;\n }",
"private static URL createURL(String stringURL) {\n URL url = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public final bd mo5117a(C4662a c4662a) {
bg a = bg.m21669a(c4662a.m20835d(1));
if (a != bg.f17768x) {
if (a != bg.f17767w) {
return null;
}
}
bd c6529z = new C6529z(c4662a.m20842g(29));
... | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the for3 field of the revue | public void setFor3(String for3) {
this.for3 = for3;
} | [
"public void setReserved3(int field_4_reserved3)\n {\n this.field_4_reserved3 = field_4_reserved3;\n }",
"public void setVROp3(String value){\n Op3[0] = value;\n }",
"public void setTxt3 (String txt3) {\n\t\tthis.txt3 = txt3;\n\t}",
"public void setProrroga3(int prorroga3) { this.prorroga3 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check for required fields check for substruct validity | public void validate() throws org.apache.thrift.TException {
if (responsible != null) {
responsible.validate();
}
} | [
"public void validate() throws org.apache.thrift.TException {\n if (cpurate == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'cpurate' was not present! Struct: \" + toString());\n }\n if (memrate == null) {\n throw new org.apache.thrift.protocol.TProtocolExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<NameValuePair> complieParams() {
long time = System.currentTimeMillis() / 1000;
addParameter("format", "json");
addParameter("op", String.valueOf(time));
String origin = "format=jsonop=" + time
+ "secret="+SECRET;
addParameter("sign",encodeByMD5(origin));
return super.complieParam... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets accessibility of the questions. | protected abstract void setAccessibility(); | [
"public void setQuestions(Questions questions) {\r\n\t\tthis.questions = questions;\r\n\t\tif (questions != null) {\r\n\t\t\tquestions.setTest((Test) this);\r\n\t\t}\r\n\t}",
"public void setSecureQuestAns(String answer1, String answer2, String answer3) {\n\t\tReporter.log((\"Setting the following -\" + answer1 +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Requires:Command to be a valid command Modifies: this Effects: modifies the alarmList or show it according to a given command | private void modifyAlarms(String command) {
if (command.equals("a") || command.equals("add alarm")) {
System.out.println("You Chose To Add an Alarm");
doAddAlarm();
} else if (command.equals("r") || command.equals("remove alarm")) {
System.out.println("You Chose To Re... | [
"public void command(String command) {\n\n message = new Message();\n bundle = new Bundle();\n bundle.putString(\"radioMol\", command);\n message.setData(bundle);\n MainActivity.handler.sendMessage(message);\n }",
"@Override\n public void invoke(int lCommand, NET_DVR_A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show safe save article string. | @RequestMapping(value = "/user/safe/showSaveArticle")
public String showSafeSaveArticle(HttpSession httpSession){
httpSession.removeAttribute("articleId");
return "redirect:/user/showSaveArticle";
} | [
"public String getArticleSave() {\r\n\t\treturn articleSave;\r\n\t}",
"public abstract String toSaveString();",
"public String toSaveString() {\n return \"E\" + \" | \" + super.toSaveString() + \" | \" + this.date + \"\\n\";\n }",
"public String saveString() {\n char indicator = '0';\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
do nothing, just hide dialog | public void onClick(DialogInterface dialog, int which) {
} | [
"public void hideDialog() {\r\n\t\thideDialog(null);\r\n\t}",
"public void hide() {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n dialog.setVisible(false);\n reset();\n }\n });\n }",
"@Override\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new server that can be used to publish data over OPC UA. | private OpcUaServer createServer(String namespaceName, int port) {
String productUri = "urn:edu:kit:pse:osip:product:" + namespaceName;
OpcUaServerConfig serverConfig = OpcUaServerConfig.builder()
.setApplicationUri("urn:edu:kit:pse:osip:application:" + namespaceName)
.setApplic... | [
"public static TestControlServer createServer() throws PogamutException {\n UT2004ServerModule module = new TestControlServerModule();\n UT2004ServerFactory factory = new UT2004ServerFactory(module);\n\n IAgentId agentID = new AgentId(\"TestControlServer\");\n TestControlServer server = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String calcFuncValues(/* ExtFunc[] objExtFuncs, ICalcEnv objEnv */ExtFunc[] objExtFuncs, ICalcEnv env) throws CmdException {
if (env == null || !(env instanceof UfoCalcEnv)) {
// "指标函数是iUFO特有的,计算环境要求UfoCalcEnv!";
return "miufocalc100019";
}
// UfoCalcEnv objEnv = (UfoCalcEnv) env;
// Strin... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleParameterSetInstance" $ANTLR start "ruleParameterSetInstance" InternalComponentParameter.g:253:1: ruleParameterSetInstance : ( ( rule__ParameterSetInstance__Group__0 ) ) ; | public final void ruleParameterSetInstance() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalComponentParameter.g:257:2: ( ( ( rule__ParameterSetInstance__Group__0 ) ) )
// InternalComponentParameter.g:258:2: ( ( rule__ParameterSetInst... | [
"public final void ruleParameter() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:616:2: ( ( ( rule__Parameter__Group__0 ) ) )\n // InternalOperationDsl.g:617:2: ( ( rule__Parameter__Group__0 ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setting up the oval area in which the arc will be drawn | @Override
protected void onSizeChanged(int width, int height, int oldw, int oldh) {
if (width > height) {
radius = height / 2;
} else {
radius = width / 2;
}
oval.set(centerX - radius,
centerY - radius,
centerX + radius,
... | [
"public abstract void drawArc(int x, int y, int w, int h, int offset, int length);",
"@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tg.setColor(Color.YELLOW);\r\n\t\tg.fillOval(getWidth() / 2 - 100, getHeight() / 2 - 100, 200, 200);\r\n\t\tg.setColor(Color.BLUE);\r\n\t\tg.fillOval(getWidth() / 2 - 4... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
used with streaming based signing. XML is parsed and message digest is calculated. this method parses a xml, reads a chunk of doc, say 8192 or more bytes, and transforms xml and updates digest | protected ParseXmlReturn calcCanonicalizedXmlMsgDigestByParsingDocChunk(String infile, MessageDigest messageDigest,
SigXmlTransform sigXmlTransform) throws Exception {
logger.debug("--> calcCanonicalizedXmlMsgDigestByParsingDocChunk(). infile=" + infile + ", sigXmlTransform=" + sigXmlTransform);
StringBui... | [
"public boolean accept(XMLStreamReader xMLStreamReader) {\n try {\n if(!digestDone){\n StreamUtil.writeCurrentEvent(xMLStreamReader,canonicalizer);\n if(reader.getEventType() == XMLStreamReader.START_ELEMENT){\n index++;\n }else if(re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Human named bob print personal information | public static void main(String[] args) {
Human bob = new Human("Bob", 20, 'M');
System.out.println("Name: " + bob.getName());
System.out.println("Age: " + bob.getAge());
System.out.println("Gender: " +bob.getGender());
// Human named alice - print personal information
... | [
"private static void getNameForPrint() {\r\n\t\tScanner kb = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the first name.\");\r\n\t\tprintSpecific(kb.next());\r\n\t\t}",
"@Override\n public void displayWhoIAm() {\n super.displayWhoIAm();\n System.out.printf(\"I am %s%n\", getName());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Starts a timer for few seconds where the player is able to deal damage. | @Override
public void preStep(StepEvent stepEvent) {
if(world.isDamage()){
count++;
if(count%300==0){
world.setDamage(false);
}
}
} | [
"private void time()\n {\n // take timer and add 1 \n timer=timer+1;\n // place text top left corner \n showText(\"Time: \"+timer,100,30);\n \n // stop game when timer at 1500\n if (timer == 1500)\n {\n startGame = false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ void delete(User user) | @Test
@DisplayName("User 삭제 -> 정상, check UserRepository")
void deleteTestCheckUserRepo() {
//Given
Long userId = Long.valueOf(53);
user.setId(userId);
//When
userService.delete(user);
//Then
then(userRepository).should(times(1)).deleteByIdInQuery(userId);
} | [
"public void delete(User user) throws Exception;",
"public Boolean delete(User user);",
"public void delete(String user_id);",
"public long deleteByUser ( User user );",
"public void deleteUser(EUser user) throws Exception;",
"public int deleteUser (User u);",
"@Override\r\n\tpublic void deleteUser(User... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form EleveComment | public EleveCommun(int a) {
idclasse=a;
initComponents();
} | [
"public void createComment(Comment comment) {\n\t\t\n\t}",
"@RequestMapping(value = \"/news/{newsId}/comments/new\", method = RequestMethod.GET)\n public String newComment(Model model, @PathVariable(name = \"newsId\") Integer newsId) {\n model.addAttribute(\"actionUrn\", \"/news/\" + newsId + \"/comment... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__DataStructure__Group_3__1__Impl" $ANTLR start "rule__DataStructure__Group_5__0" InternalDataDsl.g:1910:1: rule__DataStructure__Group_5__0 : rule__DataStructure__Group_5__0__Impl rule__DataStructure__Group_5__1 ; | public final void rule__DataStructure__Group_5__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDataDsl.g:1914:1: ( rule__DataStructure__Group_5__0__Impl rule__DataStructure__Group_5__1 )
// InternalDataDsl.g:1915:2: rule__DataStru... | [
"public final void rule__DataStructure__Group__5__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:18194:1: ( ( ( rule__DataStructure__Group_5__0 )? ) )\n // InternalOperationDsl.g:18195:1: ( ( rule__Dat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private constructor to prevent instantiation. | private CUpointer_attribute()
{
} | [
"private PrivateConstructor() { \n \t\n }",
"private SerializationUtils() {\n throw new Error(\"Do not allow instantiation!\");\n }",
"private Security() {\n\t\t// Private constructor to prevent instantiation\n\t}",
"private Utils()\n {\n super();\n }",
"private O()\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
stub binary files cannot have dSYMs | public static boolean isBuildRuleDebuggable(BuildRule buildRule) {
if (buildRule instanceof WriteFile) {
return false;
}
// fat/thin binaries and dynamic libraries may have dSYMs
return buildRule instanceof HasAppleDebugSymbolDeps
|| buildRule instanceof AppleDebuggableBinary;
} | [
"public Stub() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.gsma.joyn.ft.IFileTransfer.Stub.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.gsma.joyn.ft.IFileTransfer.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: com.google.android.gms.common.api.b$c | interface C0307c<A extends C0293a> {
/* renamed from: a */
void mo3309a(C0305a aVar);
/* renamed from: b */
void mo3310b(A a) throws DeadObjectException;
/* renamed from: dp */
C0294b<A> mo3312dp();
/* renamed from: dr */
int mo3313dr();
/* ren... | [
"public interface C0135d extends IInterface {\n\n /* renamed from: com.google.android.gms.internal.d.a */\n public static abstract class C0529a extends Binder implements C0135d {\n\n /* renamed from: com.google.android.gms.internal.d.a.a */\n private static class C0528a implements C0135d {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs the application synchronously when executed. | public static void main(String[] args) {
MiniWebStore store = new MiniWebStore();
UserDialog dialog = new ConsoleUserDialog();
//UserDialog dialog = new JOptionPaneUserDialog();
dialog.printInfoMessage("Welcome to MiniWebStore.");
boolean run = true;
while (run) {
int greeterChoice = dialog.enterInt("... | [
"public void run()\n {\n startApplication();\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t_main();\n\t\t\t}",
"public final void executeAsync(BuildCallable<?,?> program) throws IOException {\n throw new AssertionError();\n }",
"public void execute() {\n\t\t\tthis.sta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column cash_flow_part2.investment_inflow_subject | public void setInvestmentInflowSubject(BigDecimal investmentInflowSubject) {
this.investmentInflowSubject = investmentInflowSubject;
} | [
"public void setOverdueAmt(String overdueAmt)\n/* */ {\n/* 284 */ this.overdueAmt = overdueAmt;\n/* */ }",
"public void setSubject(String subject) throws Exception{\n\t\ttry{\n\t\t\taddTicketStatement.setString(1, subject);\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"Exceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the ip IpAddresses on this list. | public IpAddress getIpAddress(String ipAddressSid) {
IpAddress ipAddress = new IpAddress(this.getClient(), this.getSid(), ipAddressSid);
ipAddress.setRequestAccountSid(this.getRequestAccountSid());
return ipAddress;
} | [
"java.util.List<com.google.protobuf.ByteString> getIpAddressesList();",
"public java.util.List<com.google.protobuf.ByteString>\n getIpAddressesList() {\n return java.util.Collections.unmodifiableList(ipAddresses_);\n }",
"public java.util.List<com.google.protobuf.ByteString>\n getIpA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ the drag and drop gesture ended / if the data was successfully moved, clear it | public void handle(DragEvent event) {
if (event.getTransferMode() == TransferMode.MOVE&&ans2==true) {
bl2.setText("");
r.setOpacity(1);
}
event.consume();
} | [
"public void handleDrop() {\n if (mDraggedEntry != null) {\n if (isIndexInBound(mDragEnteredEntryIndex) &&\n mDragEnteredEntryIndex != mDraggedEntryIndex) {\n mDropEntryIndex = mDragEnteredEntryIndex;\n mDragEntries.set(mDropEntryIndex, mDraggedEntr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Usage of DES encryption in crypto API | public void testCryptDES() {
Log.v("Test", "[*] testCryptDES()");
Cipher c;
try {
c = Cipher.getInstance("DES");
SecretKeySpec keySpec = new SecretKeySpec(KEY2, "DES");
c.init(Cipher.ENCRYPT_MODE, keySpec);
byte[] data = imei.getBytes();
byte[] enc = c.doFinal... | [
"public String encDES(String data,String key){\n SecureRandom random = new SecureRandom();\n DESKeySpec desKeySpec = null;\n try {\n desKeySpec = new DESKeySpec(Base64.decodeBase64(key));\n SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(\"DES\");\n S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | [
"@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }",
"@Override\n public void post(String path) {\n \n }",
"@Override\r\n\tpub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register a namespace prefix | private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
java.lang.String prefix = xmlWriter.getPrefix(namespace);
if (prefix == null) {
prefix = generatePrefix(namesp... | [
"public void addNamespace(String pPrefix) {\n // check if already registered.\n if (!namespaces.containsKey(pPrefix)) {\n LOGGER.debug(\"Add namespace for prefix '{}'\", pPrefix);\n namespaces.put(pPrefix, NAMESPACE_PREFIX + pPrefix);\n }\n }",
"private java.lang.String registerPrefix(javax.xm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Creating pie chart for each story and the consolidated results | public void generateReport(String applicationTitle, String features, String jBehaveReportsPath) throws IOException {
pieChart.createPieChart(jBehaveReportsPath);
/* Creating feature pie chart*/
//perFeaturePieChart.createPieChart("AFT Features Bar Chart", jBehaveReportsPath);
/* Creati... | [
"private void populatePieChart(OrganCount organCount, PieChart pieChart){\n\n Map<String, Integer> data = new HashMap<>();\n\n data.put(\"Liver (\" + organCount.getLiverCount() + \")\", organCount.getLiverCount());\n data.put(\"Kidney (\" + organCount.getKidneyCount() + \")\", organCount.getKidneyCount());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print a multiline representation of the pattern illustrating it's syntax to System.out. | public void prettyPrint() {
prettyPrint(System.out);
} | [
"private void printOutMovementPattern() {\n System.out.print(context.getString(R.string.knight_text_path_header));\n for (int i = 0; i < boardSpaces; i++) {\n for (int y = 0; y < boardSpaces; y++) {\n System.out.print(chessboard[i][y] + \" \");\n }\n Sy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return an Ior that can be this object or a Ior.primary or Ior.secondary | default Ior<LT1, RT> toIor() {
return this.visit(l->Ior.secondary(l),
m->Ior.secondary(null),
m->Ior.secondary(null),
m->Ior.secondary(null),
r->Ior.primary(r));
} | [
"public static IOR makeIOR( ORB orb, String typeid )\n {\n return new IORImpl( orb, typeid ) ;\n }",
"public boolean isOrType() { return isOrType; }",
"public JRadioButton getRbOr() {\r\n\t\tif (rbOr == null) {\r\n\t\t\trbOr = new JRadioButton();\r\n\t\t\trbOr.setText(\"Or\");\r\n\t\t\trbOr.setPref... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__MetagenProperty__Group_20__0" $ANTLR start "rule__MetagenProperty__Group_20__0__Impl" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:22246:1: rule__MetagenProperty__Group_20__0__Impl : ( ( rule__MetagenProperty__NameAssignment_20_0 ) ) ; | public final void rule__MetagenProperty__Group_20__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:22250:1: ( ( ( rule__MetagenProperty__N... | [
"public final void rule__Property__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalThingML.g:4473:1: ( rule__Property__Group__0__Impl rule__Property__Group__1 )\n // InternalThingML.g:4474:2: rule__Property__Group... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the solar system with hardcoded numbers Used for testing | private Star createSolarSystem() {
Star star = new Star("Sol", 0, (float)Math.toRadians(90), 1);
Planet planet = new Planet("Mercury", 57000000, (float)Math.toRadians(90), "Rocky", 0.0553f);
star.addChild(planet);
planet = new Planet("Venus", 108000000L, (float)Math.toRadians(90), "Rocky", 0.815f);
star.addCh... | [
"public static void main(String[] args) {\n SolarSystem FactorX = new SolarSystem();\n FactorX.Sun=1;\n FactorX.Moon=3;\n FactorX.Planets=2;\n//2\n //working on sun features\n Sun Feron = new Sun();\n Feron.Heat=\"600000000000kj\";\n Feron.Radius=\"03840298409... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
f0 > NotExpression() | PrimaryExpression() | public Base_t visit(Clause n, Base_t argu) throws Exception {
return n.f0.accept(this, argu);
} | [
"public R visit(AndExpression n) {\n R _ret=null;\n R pe1 = n.f0.accept(this);\n n.f1.accept(this);\n R pe2 = n.f2.accept(this);\n if(x == 1)\n {\n if(find_type(pe1) != (R)\"0\" || find_type(pe2)!= (R)\"0\")\n {\n System.out.println(\"Type error\");\n Sy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method removes a cashier from the store | public void removeCashier(Cashier cashier)
{
cashiers.remove(cashier.getNumber());
} | [
"void removeSale(int receiptNo);",
"public void remove() {\n\n boolean q = isRemoveable();\n //Create new data model\n if (q == true) {\n\n int starti = 4;\n int endi = 8;\n int i = purchase.getSelectedIndex();\n quantityRemoving = Integer.parseInt(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse the provided list of arguments according to the program's options. | private static Configuration parseOptions(String[] in_args) {
CommandLineParser parser = new PosixParser();
CommandLine line = null;
Properties settings = loadDefaultSettings();
try {
line = parser.parse(options, in_args);
} catch (ParseException ex) {
Lo... | [
"private static void parseArguments(String[] args) {\n\t\tif (args.length < 1) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (String arg : args) {\t\n\t\t\tswitch (arg) {\n\t\t\t\tcase Constants.VERBOSE:\n\t\t\t\t\tverbose = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Constants.VERBOSE_DAILY_BALANCE:\n\t\t\t\t\tdailyVerbose = t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
send to specific session / user. | private void sendToSession(Session session, JsonObject message) {
try {
session.getBasicRemote().sendText(message.toString());
} catch (IOException ex) {
sessions.remove(session);
Logger.getLogger(PlayerSessionHandler.class.getName()).... | [
"private synchronized void sendMessage(String message, Session to){\n\t\tto.write(message);\n\t}",
"void sendSessionEvent();",
"@Override\n public void sendUserID(String userId) {\n super.sendUserID(userId);\n }",
"static void sendToAdminSession(Session session, JsonObject message) {\n try... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ChapterStakeholder__Group_5__0__Impl" $ANTLR start "rule__ChapterStakeholder__Group_5__1" InternalStubbrLang.g:9969:1: rule__ChapterStakeholder__Group_5__1 : rule__ChapterStakeholder__Group_5__1__Impl ; | public final void rule__ChapterStakeholder__Group_5__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalStubbrLang.g:9973:1: ( rule__ChapterStakeholder__Group_5__1__Impl )
// InternalStubbrLang.g:9974:2: rule__ChapterStakeholder... | [
"public final void rule__Relational__Group_1_0_5__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalArgument.g:3465:1: ( rule__Relational__Group_1_0_5__1__Impl )\n // InternalArgument.g:3466:2: rule__Relational__Group_1_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void removeFromMap() {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the "id" offerTargetCategory. | Optional<OfferTargetCategoryDTO> findOne(Long id); | [
"public String getTargetId() {\n return getUri().toString() + \"_target_\" + this.getClass().getName() + \"#\"+ getTopic();\n }",
"public Integer getTargetID() {\r\n \treturn getInteger(KEY_TARGET_ID);\r\n }",
"public int getTargetId() {\n return targetId;\n }",
"public stati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void onProviderEnabled(String arg0) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
El numero maximo de nacionales (7) es igual al numero max de bases (3) mas el de aleros (4) | @Test
public void intentarAgregarExcesoNoNacionales() {
Collection<Jugador> basesNoNacionales = EquipoSuperManagerTestUtils
.crearGrupoJugadores(PosicionJugador.BASE,
Nacionalidad.EUROPEO,
EquipoSuperManager.MAXIMO_NUMERO_BASES_EQUIPO);
Collection<Jugador> alerosNoNacionales = EquipoSuperManagerTe... | [
"public static int maxPossibleValue(int num) {\n\n\t\tfinal int K=5;\n\t\tchar[] chars = (\"\" + num).toCharArray();\n\t\t int index=0;\n\n\t\t if(num>=0)\n\t\t\t while(index<chars.length && (K+48)<(int)chars[index] ) index++;\n\t\t else \n\t\t\t{\n\t\t\tindex=1;\t//skip the minus\n\t\t\t while(index... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For Testing and Debug. | private List<String> getListOfDatesThatHaveBillablesForProvider(BillableRepository billableRepository, String idOfProvider){
boolean dBug = false;
if (dBug) System.out.println("\n* * dBug true IN : ChocoReportController.getListOfDatesThatHaveBillablesForProvider(...)\n");
List<String> returnStr... | [
"protected void mo4791d() {\n }",
"private void testing() {\n\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"private LocalDemo() {\n\t\t\n\t}",
"private void testingPurposes() {\n\t}",
"private TestingTools() {\n\t\n\t}",
"@Override\n public void extornar() {\n \n }",
"protected voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
metodo para abrir pagina home do professor | @RequestMapping("/showHomeProfessor")
public String showHomeProfessor(HttpSession session) {
return "home-professor";
} | [
"public String navigateDisciplinaProfessorList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"DisciplinaProfessor_items\", this.getSelected().getDisciplinaProfessorList());\n }\n return \"/pages/prime/disciplinaP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets reset flag for procedure expression dependencies. | public void resetDependencies(boolean resetDependencies) {
this.resetDependencies = resetDependencies;
} | [
"public void reset()\n {\n reset_ = true;\n }",
"protected void reset() {\n reset(false);\n }",
"public void setReset(boolean isReset){\n\t\tthis.isReset = isReset;\n\t}",
"public void reset () {\n\t\tisSet = false;\n\t}",
"public void reset() {\n this.resolved = false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a StringItem indicated by its index | public StringItem getStringItem(int ind) {
return offsetMap.get(ind);
} | [
"public String get(int index) {\n return (String) string_list.elementAt(index);\n }",
"String GetString(int index);",
"@NonNull\n String getValue(int index);",
"public String get(String indexString) {\n try {\n return getBundle().getString(indexString);\n } catch (Excepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.kedacom.ops.flink.etl.proto.DssNetAddr RcvAddr = 3; | public com.kedacom.ops.flink.etl.proto.Dssevstruct.DssNetAddr getRcvAddr() {
return rcvAddr_;
} | [
"public ds.hdfs.SOMETHING.IPOrBuilder getAddressOrBuilder(\n int index) {\n if (addressBuilder_ == null) {\n return address_.get(index); } else {\n return addressBuilder_.getMessageOrBuilder(index);\n }\n }",
"java.util.List<? extends ds.hdfs.SOMETHING.IPOrBuilder> \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the rollUpMethod property: roll up method. | public DataFeedDetail setRollUpMethod(RollUpMethod rollUpMethod) {
this.rollUpMethod = rollUpMethod;
return this;
} | [
"@Override\r\n\tpublic void roll(int field, boolean up) {\n\t\t\r\n\t}",
"public final void mROLLUP() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = ROLLUP;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// C:\\\\Users\\\\darfores\\\\git\\\\asup_0_9_0\\\\org.smeup.sys.db.syntax.ibmi\\\\src\\\\or... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu, menu);
return true;
} | [
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Encrypt data. | public EncryptData() {
this.key = generateSecretKey();
try {
this.c = Cipher.getInstance(algorithm);
} catch (NoSuchAlgorithmException | NoSuchPaddingException e) {
e.printStackTrace();
}
} | [
"public EncryptedData() {\n super(fieldInfos);\n }",
"public Encrypt(String toEncrypt) {\n // Basic stuff\n this.toEncrypt = toEncrypt;\n this.size = toEncrypt.length(); // Added just for reading ease\n }",
"public KeyData(KeyData data) {\n iv_ = data.IV();\n key_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns true if infix operator is supported | public boolean isSupportedInfixOperator(String operator) {
return supportedInfixOperators.containsKey(operator);
} | [
"public boolean isSupportedInfixOperator(String operator);",
"public abstract boolean isOperatorSupported(OperatorEx.Type type);",
"public boolean isOperator() { return true; }",
"public boolean isOperator(String symbol){\n\t\tif(symbol.equals(\"^\"))return true;\n\t\tif(symbol.equals(\"*\"))return true;\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Main interface for user views. | public interface UserView {
} | [
"public ViewAllusers() {\n initComponents();\n loadusers();\n setTitle(\"User\");\n setLocationRelativeTo(this);\n }",
"public viewuser() {\n initComponents();\n }",
"public MainView() {\n initComponents();\n initializeView();\n logInView.setVisible(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to select a Contract before adding Amenities. | public void selectedContractDao( String userID, String contractID) throws IOException, ClassNotFoundException, SQLException, InterruptedException, ParseException
{
Scanner sc=new Scanner(System.in);
AllExceptionLogger ael= new AllExceptionLogger();
SupplierLoginView slv= new SupplierLoginView();
SettingAmeniti... | [
"private void setSelectedContractor(Contractor selectedContractor) {\n\t\tfirePropertyChange(\"selectedContractor\", this.selectedContractor,\n\t\t\t\tthis.selectedContractor = selectedContractor);\n\t}",
"@OnClick(R.id.pbo_contract)\n public void onContractsClick() {\n if (getContext() instanceof Accou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the event to cycle every 2000 milliseconds (2 seconds). | public PrayerUpdateTick(Mob mob) {
super(CYCLE_TIME);
this.mob = mob;
} | [
"@Override\n\tpublic void on_second_tick() {\n\n\t}",
"void increaseTimeBySecond();",
"public static WebTimer repeat ( long delay, ActionListener listener )\n {\n return repeat ( defaultThreadName, delay, listener );\n }",
"public void cycle() {\n \n \n }",
"public Tick(EventHandler<ActionE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
smartgit check smargit check checking smartgit some more is it working? | public static void main(String[] args) {
//variable declarations
Scanner console = new Scanner(System.in); //creates scanner for user input
int count;
int sum = 0;
int maxCount = 0;
int remaining = 0;
int replicate = 0;
ArrayList<Integer> replicates = new ArrayList<Integer>(); //stores replicate numb... | [
"public void gitPrac()\n\t{\n\t}",
"@NotNull\n @Transient\n public SyncResult checkSyncStashState() {\n if (myProcessState.getProject() == null) {\n return new SyncResult(/*isInvalid*/ true, /*needsStash*/ false, /*needsSync*/ false,\n /*target SHA*/ null, /*target repo*/ null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that prompts user to enter phone number | public static String prompt_Telephone(InputStream in) {
Scanner input = new Scanner(in);
System.out.println("Telephone:");
System.out.print("> ");
return input.nextLine();
} | [
"public static void memberPhonePrompt() throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String[] user = new String[2];\n Integer phoneNumber;\n System.out.print(\"Please enter member's first name: \");\n user[0] = reader.readL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if that equals this; return false otherwise. | public boolean equals(Data that) {
int thisLength = getSize();
if (thisLength != that.getSize()) {
return false;
}
byte[] thatBytes = that.getBytes();
for (int i = 0; i < thisLength; i++) {
if (data[i] != thatBytes[i]) {
return false;
... | [
"public boolean isSame();",
"@Override public boolean equals(Object o) {\n\t\t\t\treturn this == o;\n\t\t\t}",
"@Override\n public boolean equals(Object o) {\n return this == o;\n }",
"@Override\n public boolean equals(Object that) {\n return this == that || (that instanceof SimTupleset... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The constructor create new Users object. | public Users(String name,String email,String date_birth) {
this.name=name;
this.email=email;
this.date_birth=date_birth;
} | [
"public Users() {\r\n\t}",
"public User(){\r\n\t\tsuper();\r\n\t\tthis.username = \"\";\r\n\t\tthis.eventList = new EventList();\r\n\t\tthis.contactList = new ContactList();\r\n\t}",
"public User() {\r\n\t\tthis(null, null, null, null);\r\n\t}",
"public Users(){\n users = new ArrayList<User>();\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creamos el jardin ya con 100 personas | public static void main(String[] args) {
Jardin jardinCiudad = new Jardin(100);
for(int i=1; i<=40;i++){
new HiloPersona("P"+i,jardinCiudad).start();
}
} | [
"@SuppressWarnings(\"unchecked\")\n public void personelSayiGoster() {\n int sayi = 0;\n EntityManager em = emf.createEntityManager();\n Query q1 = em.createQuery(\"SELECT p FROM Personel_1 p\");\n List<Personel_1> personeller = q1.getResultList();\n for (int i = 0; i < persone... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the controller class. methods | @Override
public void initialize(URL url, ResourceBundle rb) {
SmartReminder.tmpUsername_menu = username_menu;
SmartReminder.tmpMain_pane = main_pane;
SmartReminder.tmpMonth_list = month_list;
SmartReminder.tmpYear_list = year_list;
SmartReminder.tmpCalendarPane = calendarPan... | [
"public Controller(){\t\n\t}",
"public MainController(){\n \n }",
"public MainController() {\n try {\n log.debug(\"Starting MainController\");\n transactionSql = new TransactionSqlRepository();\n categorySql = new CategorySqlRepository();\n classifier... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ method name: displayPairs input: ClubMember object return: results of the pairs | public static void displayPairs(ClubMember[] members) {
//create new ArrayList
ArrayList<ClubMember> pMembers = new ArrayList<>(Arrays.asList(members));
//use two loops one by one to match and delete when a pair was matched
for(int i = 0; i < pMembers.size() - 1; i++) {
boolean matched = false;
... | [
"private void printList() \n {\n for(int i = 0; i < allPairs.length; i++)\n {\n System.out.println(\"(\" + allPairs[i][0] + \",\" + allPairs[i][1] + \")\");\n }\n }",
"private void displayPlayers()\n {\n System.out.println(\"the players are displayed here: \");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows dialog with Y/N to discard video. | private void discardAudio(){
//Ask the user if they want to quit
new AlertDialog.Builder(this)
.setIcon(android.R.drawable.ic_dialog_alert)
.setTitle("CONFIRM")
.setMessage("Are you sure you want to discard this recording?")
.setPositiveButton("Yes", new DialogInterface.O... | [
"void clickedCancel() {\n if (JOptionPane.showConfirmDialog(this, \"Czy na pewno chcesz anulowac akcje?\", \"\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n this.poster = null;\n dispose();\n }\n }",
"private void confirmCancel() {\r\n final Dialog dialo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find the runtime classes of the parameters of a class or interface. The strategy is to visit the subclass and its parent classes to find the classes of the classWithParameters | public static <T> List<Class<?>> findParameterClasses(Class<? extends T> subclass, Class<? extends T> classWithParameter) {
List<Class<?>> parameterClasses = null;
// conditions
TypeVariable[] params = classWithParameter.getTypeParameters();
if (params.length > 0) { // parameters have to be pres... | [
"public Class[] getParameterClasses() {\n return (Class[]) parameterClasses.clone();\n }",
"public synchronized ClassInfo[] getParameterTypes() {\n if (m_parameterTypes == null) {\n Class[] parameterTypes = ((Constructor) m_member).getParameterTypes();\n m_parameterTypes = new ClassInfo[par... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected ColumnDataType getColumnDetails(String schema, String tableName)
throws DatabaseException {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for objects of class Iniciar | public Iniciar()
{
} | [
"public Consorcio() {\n }",
"public ManejoInventario() {\n }",
"public Juegos() {\r\n }",
"public Comentario() {\n \n }",
"public Curso(){\n \n }",
"public OCalidad() {\r\n }",
"public vista(){\r\n\r\n }",
"public Cuenta(){\n }",
"public CuentaUsuario() {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
implement peraction hotspot generation, since some modes have unique processing requirements | public void findNearest(Layer thisLayer,
MWC.GenericData.WorldLocation cursorLoc, java.awt.Point cursorPos,
LocationConstruct currentNearest, Layer parentLayer, Layers theLayers)
{
// we only act on track wrappers, check if this is one
if (thisLayer instanceof TrackWrapper)
{
TrackWrapper ... | [
"@Override\r\n public void runOpMode() {\r\n\r\n robot.init(hardwareMap);\r\n\r\n //Reset encoders\r\n turnOnStopAndReset();\r\n\r\n //Turn on RUN_USING_ENCODER\r\n turnOnRunUsingEncoder();\r\n\r\n robot.init(hardwareMap);\r\n initVuforia();\r\n\r\n if (Cla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void afterException(JoinPoint jp,Throwable thr) {
Object[] args=jp.getArgs();
String methodName=jp.getSignature().getName();
System.out.println("After throwing method called "+methodName+"("+args+") throws"+thr);
/*if(generatedKey<=0) {
throw new IllegalArgumentException("Weak Key generated");... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form actualizar_product | public actualizar_product() {
initComponents();
} | [
"public EditarProducto() {\n initComponents();\n }",
"@GetMapping(\"/showNewProductForm\")\n\tpublic String showNewProductForm(Model model) {\n\t\tProduct product = new Product();\n\t\tmodel.addAttribute(\"product\", product);\n\t\treturn \"new_product\";\n\t}",
"public FrmProducto() {\n initCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow for very easy animations. If available, use these APIs to fadein the progress spinner. | @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
private void showProgress(final boolean show) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);
mLoginFormView.setVisibility(sho... | [
"private void setTheProgressBar() {\n\n ObjectAnimator progressAnimator = ObjectAnimator.ofInt(mSplashProgressBar, \"progress\", 1000);\n// progressAnimator.setDuration(2000);\n progressAnimator.setInterpolator(new LinearInterpolator());\n progressAnimator.start();\n\n// progressA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SET/UPDATE VALUE IN SESSION | private void setSessionValue(HttpSession session, int value) {
session.setAttribute("count", value);
} | [
"public static void setValue(HttpServletRequest request, String key, Object value){\n HttpSession session = request.getSession();\n session.setAttribute(key, value);\n }",
"public static void set(HttpSession session, String name, Object value) {\n session.setAttribute(name + \".\" + HttpXpContext.SE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 fantasy_league_id = 1; | public int getFantasyLeagueId() {
return fantasyLeagueId_;
} | [
"int winnerTeamId();",
"public long getTeamid();",
"long getPartyLobbyId();",
"long getOwnerSteamid();",
"long getSteamIdTarget();",
"int getBattlePartyNumber();",
"public static int getAftID(){\n return aftID;\n }",
"int getCombatLeagueBadgeValue();",
"public int getAllyTeamNumber() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Performance' containment reference. If the meaning of the 'Performance' containment reference isn't clear, there really should be more of a description here... | PerformanceType getPerformance(); | [
"public com.google.wireless.android.sdk.stats.JniInspectionEvent.PerformanceEvent getPerformanceEvent() {\n if (performanceEventBuilder_ == null) {\n return performanceEvent_ == null ? com.google.wireless.android.sdk.stats.JniInspectionEvent.PerformanceEvent.getDefaultInstance() : performanceEvent_;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add this to map | public void add(int fallingBlockX, int fallingBlockY, int blockType, int turnState) {
int j = 0;
for (int a = 0; a < 4; a++) {
for (int b = 0; b < 4; b++) {
if (map[fallingBlockX + b + 1][fallingBlockY + a] == 0) {
map[fallingBlockX + b + 1][fallingBlockY + a] = fallingBlock[blockType][turnState][j];
... | [
"@Override\n public void add() {\n mapView.getOverlays().add(this);\n\n // Get the waypoints present in the document as list\n List<Resource> waypoints=fairWindModel.getWaypoints().asList();\n\n // For each waypoint...\n for(Resource resource:waypoints) {\n Waypoint ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines the ending time stamp until which the time line should be drawn given the clip boundaries of this component. | public double getEndTimestamp( final Rectangle aClip )
{
final double zf = getZoomFactor();
return ( ( aClip.x + aClip.width ) / zf );
} | [
"com.google.protobuf.Timestamp getRenderEndTime();",
"Instant getEndInstant();",
"@Test\n public void contLineInBounds() {\n model.setStartPositions(1, 1);\n int largeY = maxY + 1;\n model.setEndPositions(2, largeY);\n model.setEndPositions(500, 600);\n CanvasLine line = logger.getLastLine();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println("999999999 " + Integer.parseInt(String.valueOf(key[0]))); temp = new LinkedHashMap(); | public void add(Object... key){
answer.put("num"+key[0].toString(),toJson(key));
} | [
"public LinkedHashMap(int s) {\r\n super(s);\r\n accessOrder = false;\r\n head = null;\r\n }",
"public LinkedHashMap(int s){\n map = new HashMap<K,V>(s);\n order = new LinkedList<Pair<K,V>>();\n }",
"public static void main(String[] args) {\n\n HashMap i1=new HashMap();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new instance of the specified component class. Components must be initialized with the MCT framework, so this method must be used when creating instances of components. Failure to do this will result in components which are not fully initialized and the system behavior when using these components is undefined. | <T extends AbstractComponent> T newInstance(Class<T> componentClass, AbstractComponent parent); | [
"public <T> T newComponentInstance(Class<T> componentInterface);",
"protected JComponent internalCreateComponent() {\n try {\n return componentClass.newInstance();\n } catch (InstantiationException ex) {\n throw new RuntimeException(ex);\n } catch (IllegalAccessException... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DropViewStatement: "drop" "view" ifExists?="if exists"? view=[CreateViewStatement]; | public DropViewStatementElements getDropViewStatementAccess() {
return (pDropViewStatement != null) ? pDropViewStatement : (pDropViewStatement = new DropViewStatementElements());
} | [
"String getDropViewStatement(ViewImpl view);",
"public static void dropView(SQLiteDatabase db){\n db.execSQL(\"DROP VIEW IF EXISTS \" + viewName);\n }",
"protected static Integer dropDBView(Connection connection, String viewName)\n throws SQLException {\n String dropViewSQL = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void delete(Parcela parcela) throws ConnectException {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the total time for the operation. | public long getElapsedTime() {
return elapsedTime;
} | [
"public long getTotalTime() {\r\n totalTime = endTime - startTime;\r\n return totalTime;\r\n }",
"public long getTotalTime() {\n return mTotalTime;\n }",
"public Time getTotalTime() {\n\t\treturn totalTime;\n\t}",
"public double getTotalTime() {\n return totalTime.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean delete(TopicPO po) {
return false;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The key for the local storage entry. optional string key = 1; | public com.google.protobuf.ByteString
getKeyBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(key_);
} | [
"public String getKey () {\n return key; \n }",
"public String getKey() {\n return key;\n }",
"public String getKey(){\n \treturn key;\n }",
"public String getKey() {\r\n return key;\r\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn details.getKey();\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Square s = new Square(2);
System.out.println(s.mianji());
Rectangle r = new Rectangle(2,3);
System.out.println(r.mianji());
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DO a replacement given a map. Objects in map will use the value of their toString method to complete this | public static String replaceVariablesInExpression(String expression, Map<String,Object> replacementMap){
return replaceVariablesInExpression(expression, replacementMap, null);
} | [
"private static String checkReplaceFromMap(Map<String, String> map, String original) {\n if (map != null) {\n Pattern pattern = null;\n Matcher matcher = null;\n for (String key : map.keySet()) {\n pattern = Pattern.compile(\"\\\\b\" + key + \"\\\\b\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method checks whether a button is being pressed or not. If it is, it then adds that button to an ArrayList based on it's ID. | public void mousePressed(MouseEvent e) {
int button = e.getButton();
if(DownButtons.indexOf(button) == -1){
PressedButtons.add(button);
DownButtons.add(button);
//Debug.Log("ADDED BUTTON " + button); //Used for debugging
}
} | [
"public void addButtonsToList() {\n Button button1 = (Button)findViewById(R.id.button1);\n buttonList.add(0, button1);\n Button button2 = (Button)findViewById(R.id.button2);\n buttonList.add(1, button2);\n Button button3 = (Button)findViewById(R.id.button3);\n buttonList.ad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Variables usadas por el API de Freeling | public Freeling(){
/* Inicializando variables para usar Freeling */
System.loadLibrary( "freeling_javaAPI" );
Util.initLocale( "default" );
op=new MacoOptions(LANG);
op.setActiveModules(false, true, true, true,true, true, true,true, true, true);
op.setDataFil... | [
"private String getAPICall() {\n SharedPreferences settings = context.getSharedPreferences(\"edu.auburn.weedgenie\", Context.MODE_PRIVATE);\n return \"https://api.forecast.io/forecast/feae2be941ef3a658195cb8356696650/\"\n + settings.getFloat(\"latitude\", 32) + \",\"\n + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ _________________________________________________________ Retourne la valeur du champ nbRequest. | public int getNbRequest()
{
int nbRequest = 0;
for (final ClientInfo clientInfo : clients)
{
nbRequest += clientInfo.getNbRequest();
}
return nbRequest;
} | [
"private int getRequestNum() {\n return this.mRequestCount;\n }",
"public long getRequestCount()\n {\n return m_cRequests;\n }",
"public abstract int getRequestCount();",
"public int getRequestSize() {\n return requestSize;\n }",
"public int getRequest() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO look how to mock singleton | public void leaveTest() {
} | [
"private void getInstance() {\n if (instance == null) {\n // Get an initialise the cache\n instance = new AbstractRUMMapTest.AbstractRUMMapImpl();\n\n try {\n // Get the instance\n instance.init(\"DBTestPipe\", \"AbstractRUMMapTest\");\n } catch (InitializationException ex) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |