query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
TODO Autogenerated method stub | @Override
public void afterTextChanged(Editable s) {
} | [
"@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"
]
]
}
} |
Created by jove.chen on 2017/11/16. | public interface IListViewView<T> extends IBaseView<T> {
//加载更多
void loadMorePage();
//刷新
void refresh();
//notify list
void notifyDataSet();
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n public int utilite() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the advertisement as a document. | public boolean addDocumentElements( StructuredDocument adv ) {
Iterator eachParam = getServiceParamsEntrySet().iterator();
if( !eachParam.hasNext() )
return false;
while( eachParam.hasNext() ) {
Map.Entry anEntry = (Map.Entry) eachParam.next();
... | [
"public Document getDocument(MimeMediaType encodeAs) {\n\n StructuredTextDocument adv = (StructuredTextDocument)\n StructuredDocumentFactory.newStructuredDocument(encodeAs, getMessageType());\n\n if (adv instanceof Attributable) {\n ((Attributable) adv).addAttribute(\"xmlns:j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moves all active turtle up by a certain amount on the screen. | public void handleUpClick(TextField textField) {
frontEndTurtleTracker.forward(Double.parseDouble(textField.getText()));
textField.clear();
} | [
"public void liftUpPen() {\n\t\tfor (Integer index : myTurtleIndex) {\n\t\t\tmyTurtleActioners.get(index).liftUpPen();\n\t\t}\n\t}",
"public void moveUp() {\n coordinates.y = coordinates.y - coordinates.amount;\n coordinates.recalculate(); \n coordinates.direction = Constants.UP_DIRECT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
endregion region ProducerDataSource Implementation | @Override
ProducerOperation<TableUpdate> nextOperation(int producerId) {
int operationIndex = this.state.newOperation();
if (operationIndex > this.config.getOperationCount()) {
// End of the test.
return null;
}
if (this.state.isWarmup() && operationIndex == ... | [
"@Override\r\n\tpublic Datasource datasource() {\n\t\treturn datsources;\r\n\t}",
"public void setProducer(String producer)\n {\n this.producer = producer;\n }",
"public void producer() {}",
"public Producer(){}",
"@SuppressWarnings(\"WeakerAccess\")\n @WorkerThread\n protected abstract C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
++ getter for autogen property _Module This is an autogenerated method that returns the global [design time] parent component. Note: the class generator will ignore any custom implementation for this behavior. | private com.tangosol.coherence.Component get_Module()
{
return this.get_Parent();
} | [
"public Module getParent() {\n \t\treturn parent;\n \t}",
"public String module() {\n return module;\n }",
"protected Module getModule() {\n\t\treturn Module.empty();\n\t}",
"public String getModuleName() {\n\t\treturn this.moduleName;\n\t}",
"public CompModule getRealModule() { return realModule; }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the entities pointed to by the steps relationship. | @SuppressWarnings("unchecked")
public NSArray<org.webcat.grader.Step> steps()
{
return (NSArray<org.webcat.grader.Step>)
storedValueForKey("steps");
} | [
"@NotNull\n List<? extends StepData> getSteps();",
"public List<StepDto> getSteps() {\n return steps;\n }",
"public List<Step> getSteps() {\n\t\tsynchronized (steps) {\n\t\t\treturn steps;\n\t\t}\n\t}",
"List<? extends Step> getStep();",
"public ArrayList getSteps() {\n\t\treturn flattenSteps();\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Warum existiert CorrelationGraph.intern? Warum sollten Klone erzeugt werden? Gibt es wirklich keinen eleganteren Weg? | private NodeMatch intern (final NodeMatch match) {
assert sortedMatchesSet == null; // Collection doesn't support get, only from array (Illegal State)
final int i = Arrays.binarySearch(sortedMatches, match);
if (i < 0) {
return null; // No Such Element
}
return sortedMatches[i];
} | [
"public void Con_findcc( ) {\r\n\t\tfor(String atr: atr_Dom.keySet()) {\r\n\t\t\t//if(!co_atr.contains(atr)) {\r\n\t\t\t\tHashSet<String> dom = atr_Dom.get(atr);\r\n\t\t\t\tfor(String dom_str: dom) {\r\n\t\t\t\t\tNode n = new Node(\"null\", dom_str);\r\n\t\t\t\t\tEdge con = new Edge(atr,n);\r\n\t\t\t\t\tif(!con_atr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Lets user add a contact | public void addContact(String name, int phoneNum, String imgFileName) {
contactDetails.put(currContactId, new Person(name, phoneNum, imgFileName));
} | [
"void addContact(User new_contact);",
"public void addContact() {\n log.info(\"ContactsBean => method : addContact()\");\n\n save(contactsEntity);\n createNewEntity();\n findAllActiveContacts();\n }",
"public void addContact (Contact contact) {\r\n\t\tcontactList.addContact(contac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indexing management of a PutKeyValueCommand | private void processPutKeyValueCommand(final PutKeyValueCommand command, final InvocationContext ctx, final Object previousValue, TransactionContext transactionContext) {
final boolean usingSkipIndexCleanupFlag = usingSkipIndexCleanup(command);
//whatever the new type, we might still need to cleanup for the... | [
"@Override\n public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable {\n Object toReturn = invokeNextInterceptor(ctx, command);\n \n if (shouldModifyIndexes(ctx)) {\n // First making a check to see if the key is already in the cache or not. I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PUBLIC: Set the session and session namespace. | @Override
public void setSession(Session session) {
super.setSession(session);
if (session != null) {
String sessionName = session.getName();
if ((sessionName != null) && (sessionName.length() != 0)) {
sessionNameSpace = SESSION_TOPLINK_NAMESPACE + "." + sessi... | [
"void setCurrentSession(Path session);",
"public void setSession(Session session) {\r\n this.session = session;\r\n }",
"@Override\n\tpublic void setSession(Map<String, Object> session) {\n\n\t}",
"public void setSession(Map<String, Object> session) {\r\n\t this.session = session;\r\n\t}",
"@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an empty recordType object. | public RecordTypeImpl(Name recordTypeName) {
this.recordTypeName = recordTypeName;
this.fieldTypes = new FieldType[0];
} | [
"public void createTypes_and_Records() {\n\t String typeName = null;\n\t Types_and_Records type = new Types_and_Records();\n\t boolean b = type.CreateType(typeName);\n\t if(b == false)\n\t\t return;\n\t \n }",
"public RecordTypeNode() {\n this.startPosition = null;\n }",
"public static fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cantidad de autos que bajaron | public Puerto() {
this.lugaresTransbo = new Semaphore(10, true);
this.esperaAutos = new Semaphore(0, true);
this.autosBajaron = new Semaphore(0);
this.esperaTransbordador = new Semaphore(0);
} | [
"long getCantidadActual();",
"public void aumentarCantidadVecesAlquilado() {\n\t\tthis.cantidadDeVecesAlquilado = this.getCantidadDeVecesAlquilado() + 1;\n\t}",
"public int getMinutosDisponibles(){\n return minutosDisponibles;\n }",
"Integer movimentoTotalCilindros();",
"public void pesquisaTotalP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To add registerd user details | @RequestMapping(method = RequestMethod.POST,value = "/addUser")
public String addUser(@RequestBody User user)
{
System.out.print(user.getEmailId());
return userService.addUser(user);
} | [
"private void register() {\n List<? extends View> fields = Arrays.asList(mEditTextFirstName, mEditTextLastName,\n mEditTextCellPhone, mEditTextEmail, mEditTextPassword, mEditTextConfirmPassword, mCkTerms);\n\n boolean formIsValid = AppUtil.validForm(fields, RegisterUserActivity.this);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helps set item listener | protected abstract void setListener(@NonNull L listener); | [
"protected ItemListener createItemListener() {\n/* 479 */ return null;\n/* */ }",
"void onStartItem(LintItemEvent e);",
"public void addItemListener(ItemListener paramItemListener) {\n/* 411 */ this.listenerList.add(ItemListener.class, paramItemListener);\n/* */ }",
"public interface Han... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves the QuizServerModel data when the program shuts down | void flush(); | [
"private void save() {\n\t\t// Save all data\n\t\tconfig.save();\n\t\tbots.save();\n\t\tchannels.save();\n\t\tchatters.save();\n\t}",
"private void saveAndExit() {\r\n\t\tsaveServerProfiles();\r\n\t\tSystem.exit(0);\r\n\t}",
"private void saveServerPrefs() {\n\t PowerGarden.savePref(\"hostname\", mHostname... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
only support size = 1, repeated list here for mutisig extension repeated bytes signature = 2; | public Builder setSignature(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSignatureIsMutable();
signature_.set(index, value);
onChanged();
return this;
} | [
"@Override\n public int size() {\n return 2;\n }",
"static int m9881i(List<?> list) {\n return list.size() << 3;\n }",
"void mo10248f(List list) throws RemoteException;",
"@Override\n public long fbeSize() { return 4; }",
"public int getSize() { return 3+length;}",
"i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__30" $ANTLR start "T__31" | public final void mT__31() throws RecognitionException {
try {
int _type = T__31;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.telcodev.dsl.ui/src-gen/org/telcodev/dsl/ui/contentassist/antlr/internal/InternalDime.g:21:7: ( 'from' )
// ../org.telcodev.dsl.ui/src... | [
"public interface StmtParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OPEN = 6;\r\n /** RegularExpression Id. */\r\n int CLOSE = 7;\r\n /** RegularExpression Id. */\r\n int NEW = 8;\r\n /** RegularExpression Id. */\r\n int FROMREGEX = 9;\r\n /** Reg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set flag to signal that new textures must be loaded. | void appendTextureUpdate(FishSpeed speed) {
if (mCurrentSpeed != speed) {
mNewSpeed = speed;
mPendingTextureUpdate = true;
}
} | [
"public void changeTextures(){\n diffTextures = !diffTextures;\n }",
"@Override\r\n \tpublic void loadTextures()\r\n \t{\n \t}",
"private void configureTextures() {\n\t}",
"public void load() {\n for (int unit = 0; unit < numTotalTexUnits; unit++) {\n if (getTexture(unit) !... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO replace this factory with kop.ships.ModelSerializer usage. | @Test
public void testSerializeDeserialize() throws Exception {
ContainerShipBlueprint blueprint = new ContainerShipBlueprint();
EngineList instance = EngineList.getInstance();
Engine anEngineForTest = instance.getAnEngineForTest();
blueprint.addEngine(anEngineForTest);
ShipClass c = new ShipClass(blueprint... | [
"public Ship createShip() throws ModelException {\r\n\t\ttry{\r\n\t\treturn new Ship();\r\n\t\t\r\n\t\t} catch (IllegalArgumentException E){\r\n\t\t\tthrow new ModelException(\"IllegalArgumentException\");\r\n\t\t} catch (AssertionError E){\r\n\t\t\tthrow new ModelException(\"AssertionError\");\r\n\t\t}\tcatch (Nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | [
"private String toIndentedString(Object o)\n/* */ {\n/* 607 */ if (o == null) {\n/* 608 */ return \"null\";\n/* */ }\n/* 610 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString(Object o)\n/* */ {\n/* 164 */ if (o == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a student to the last position of the JList within this panel. | public void addStudent(Student newStudent) {
int lastposition = getList().getModel().getSize();
model.add(lastposition, newStudent);
} | [
"void addLast(Student student);",
"@Override\n\tpublic void addStudent(StudentModel student) {\n\t\tstudentList.add(student);\n\t}",
"public void addStudent(Student pStudent){\n getStudentList().add(pStudent);\n }",
"public void addStudent(Student student)\r\n {\r\n\t this.students.add(student);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves a random mobile user agent. | public static String getMobileUserAgent() {
PhoneBrand brand = getRandomPhoneBrand();
if (brand == PhoneBrand.APPLE) {
return "Mozilla/5.0 (iPhone; CPU iPhone OS " + getRandomIOSVersion()
+ " like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/"
+ BrowserBrand.SAFARI.getRandomVersion() +... | [
"public String getUserAgent() {\n return megaApi.getUserAgent();\n }",
"public String getUserAgent() {\n if (userAgent == null) {\n // return default value\n return \"Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52\";\n }\n\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO add more tests for tables with table rule | private void refresh(final CreateTableStatement createTableStatement) throws SQLException {
createTableStatement.setTable(new SimpleTableSegment(new TableNameSegment(1, 3, new IdentifierValue("t_order_0"))));
Map<String, DataSource> dataSourceMap = mock(HashMap.class);
when(materials.getDataSour... | [
"@Test\r\n public void testTable() {\r\n String[] columnTitles = {\"SID\", \"CCN\", \"Grade\"};\r\n Table table1 = new Table(columnTitles);\r\n String[] actual = new String[3];\r\n for (int i = 0; i < 3; i++) {\r\n actual[i] = table1.getTitle(i);\r\n }\r\n ass... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Process single click mouse events | public void singleClick( MouseEvent e ) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)jTreeMenu.getLastSelectedPathComponent();
jTreeMenu.setSelectionPath(jTreeMenu.getPathForLocation(e.getX(), e.getY()));
if( e.isPopupTrigger() && node != null && node.isLeaf() ) {
popup.show( this, ... | [
"private void processPrimaryMouseClicked(MouseEvent click) {\n if (click.getClickCount() == 2) {\n processDoublePrimaryMouseClick(click);\n } else {\n processSinglePrimaryMouseClick(click);\n }\n }",
"public void mouseClicked(MouseEvent event){\n mouseX=event.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads the resource service.properties or deployment.properties into this configuration. This should only be called once at startup of the service. | public void loadProperties(URL url) throws IOException {
Properties props = new Properties();
try (Reader reader = new InputStreamReader(url.openStream(),
StandardCharsets.UTF_8)) {
props.load(reader);
}
for (String name : props.stringPropertyNames()) {
put(name, props.getProperty(name));
}
} | [
"@PostConstruct\n public void loadProperties() {\n\n String configFileName = System.getProperty(\"cubes.config\");\n if (StringUtils.isEmpty(configFileName)) {\n configFileName = servletContext.getInitParameter(\"cubes.config\");\n }\n if (StringUtils.isEmpty(configFileName... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dispatch incoming result to the correct fragment. | @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Log.i(org.xiangbalao.MainActivity.class.getSimpleName(), requestCode + "");
switch (resultCode) {
case RESULT_OK:
B... | [
"final void postResult() {\n runOnUiThreadIfFragmentAlive(new Runnable() {\n @Override\n public void run() {\n helloView.setText(String.valueOf(dataResults.size()));\n }\n });\n }",
"@Override\n public void handleResult(Result result) {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
process step 6. removes all detailed data from an exam. only leaves the metadata of the exam | void removeStudentExamData(ExamID examID) throws ExamNotFoundException, ExamNotFinalizedException; | [
"private void cleanUpOldData() {\n\t\t\r\n\t}",
"private void clearMeta() { meta_ = null;\n \n }",
"void removeTrackingData();",
"private static void deleteData() {\n \t// Write empty ArrayList to the .dat file\n \tList<Student> studentList = new ArrayList<Student>(); \n\t\tSerializeDB.writeSer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should be executed prior to each replication | void beginReplication(); | [
"public void countReplication() {\n this.replicated.incrementAndGet();\n }",
"@Override\n public boolean setReplication(short replication) {\n return true;\n }",
"@Override\n\tprotected void beforeJobExecution() {\n\t\tnewNetwork = selectNewNetworkResource();\n\t}",
"@Override\r\n\tpublic void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Ocorrencia)) {
return false;
}
Ocorrencia other = (Ocorrencia) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
... | [
"public int getId () { return id; }",
"public int getId(){ return this.id;}",
"public int id() {return this.id;}",
"@Override\n public int getId() { return id; }",
"public void setId(long id){ \r\n this.id = id; \r\n }",
"public void setId( int id ) { this.id = id; }",
"public void setId( l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO minek kell a T ide? | private static <T> boolean menuContainsSelector(List<MenuItem<T>> menu, String selection) {
return menu.stream().anyMatch(menuItem -> menuItem.getMenuSelector().equals(selection));
} | [
"private void IntelliJSucks() {\n }",
"public void mo25169t() {\n }",
"public static void Q22()\r\n\t{\r\n\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\tpublic void tyre() {\n\t\t\n\t}",
"public void mo26342c() {\n }",
"public void mo26782i() {\n }",
"public void m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tells the robot to press the right key | public void pressRightKey(){
robot.keyPress(KeyEvent.VK_RIGHT);
} | [
"@Override\n\tpublic void keyPressed(){\n\t\tif (keyCode==UP){\n\t\t robot.GOSTRAIGHT(\"000.800\");\n\t\t println(\"GOSTRAIGHT\");\n\t\t} \n\t\telse if (keyCode==DOWN){\n\t\t robot.sendDataToRobot(robot.setCMD(\"000.000\", \"000.000\"));\n\t\t println(\"Backward\");\n\t\t}\n\t\telse if (keyCode==LEFT){\n\t\t ro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: e | public Date mo6616e() {
return this.f4497e;
} | [
"@Override protected void process (int e) {\n\t\t}",
"@Override\n\tpublic void eee() {\n\t\t\n\t}",
"public void e() throws c {\n for (i a2 : this.f13971e) {\n a2.e();\n }\n }",
"@Override\n\tpublic void visitEnemigo(Enemigo e) {\n\n\t}",
"public int e() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setting the Train objects nonvital components | public void setNonVitalComponents(){
controlNonVital();
int temperature = nonVitalComponents.getTemperature();
boolean headlights = nonVitalComponents.getHeadLights();
boolean cabinLights = nonVitalComponents.getCabinLights();
boolean externalLights = nonVitalComponents.getExter... | [
"public void driveTrainInit() {\n \tleftFrontMotor.setNeutralMode(NeutralMode.Brake);\n \tleftRearMotor.setNeutralMode(NeutralMode.Brake);\n \trightFrontMotor.setNeutralMode(NeutralMode.Brake);\n \trightRearMotor.setNeutralMode(NeutralMode.Brake);\n }",
"void setInitial()\n { \n tnodes... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the next trie node. | public TrieNode getNextTrieNode() {
return nextTrieNode;
} | [
"public TrieNodeInt<V> getNextNode(char c){\n Nodelet nodelet = front;\n while ((nodelet.cval != c) && (nodelet != null)){\n nodelet = nodelet.rightSib\n }\n if (nodelet == null) return null;\n return nodelet.child\n\n }",
"public LLNode<T> getNextNode() {\r\n\r\n\t\treturn nextNode;\r\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
new Login().init();
} | [
"@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"
]
]
}
} |
Return a set of the squares and their positions in this dungeon. | @Raw
public Set<Map.Entry<Coordinate,S>> getPositionsAndSquares()
throws IllegalStateException {
if (getSquareMapping() == null)
throw new IllegalStateException();
return getSquareMapping().entrySet();
} | [
"@Override\n protected void setSquares() {\n Coordinate coordinate;\n HashMap<Coordinate, Square> start = new HashMap<>();\n for(int x = 0; x < getHSize(); x++){\n for(int y = 0; y < getVSize(); y++){\n coordinate = new Coordinate(x, y);\n Square squa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests for successfully creating a AddMarkCommand. | @Test
public void parseCommand_markValidCommand_success() throws Exception {
Command command = parser.parse(" index/1");
assertTrue(command instanceof AddMarkCommand);
} | [
"@Test\n\tpublic void whenAddCommandEnteredThenDoCommandConstructShouldReturnAddCommand() {\n\t\t//Given the user enter the PLACE command string\n\t\tString userEntered = \"Add addressBook1,Paul,123456\";\n\t\t//When the doCommandConstruct method called\n\t\tCommand command = defaultCommandFactoryFactory.constructC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempt to find an attribute with the given key and parse a Double from its value. If no value if found, null is returned. If a value is found but we can't parse a double from it, an InputConfigException is thrown | protected static Double getOptionalDoubleAttribute(Element el, String key) throws InputConfigException {
String valStr = el.getAttribute(key);
if (valStr == null || valStr.length()==0)
return null;
try {
Double val = Double.parseDouble(valStr);
return val;
}
catch (NumberFormatException nfe) {
thr... | [
"public Double getDouble(String key) throws UsageException {\n String value = getValue(key);\n try {\n return (value == null? null : Double.parseDouble(value));\n }\n catch (NumberFormatException e) {\n throw new UsageException(\"Value '\" + value + \"' is not a double\");\n }\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check for required fields check for substruct validity | public void validate() throws org.apache.thrift.TException {
} | [
"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"
]
]
}
} |
Test of G method, of class Utility. | @Test
public void testG() {
System.out.println("G");
int pix = 0;
int expResult = 0;
int result = Utility.G(pix);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.")... | [
"public boolean g() {\n }",
"void testGCDClass(Tester t) {\r\n //GCD test = new GCD();\r\n //t.checkExpect(test.visit(25, 20), 5);\r\n }",
"public int getG();",
"@Override\n\tpublic void g() {\n\t\t\n\t}",
"public boolean checkIfGagnant();",
"public abstract boolean zzg();",
"public bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a Channel given a channel id. | Optional<Channel> getFromId(ChannelId channelId); | [
"public Channel getChannel(int id) {\n\t\treturn this.channels.get(id);\n\t}",
"public Channel getChannel(int id) {\n return (Channel) getHibernateTemplate().load(Channel.class,\n new Integer(id));\n //return (Channel)getHibernateTemplate().find(\"from Channel u where\n // u.id... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getTotal method, of class Invoice. | @Test
public void testGetTotal() {
LOG.log(Level.INFO, "Test: Invoice.getTotal");
assertNull(this.invoice.getPrice());
} | [
"@Test\n\tvoid testTotalAmount() {\n\t\tCashContainer cc=init();\n\t\tdouble real=cc.getTotalAmount();\n\t\tdouble expected=a*0.05 + b*0.1 + c*0.2 + d*0.5 + e + f*2;\n\t\tassertEquals(expected, real);\n\t}",
"public void calcularTotal() {\r\n\r\n\t}",
"@Test\n\tpublic void testGetTotal() {\n\t\tassertEquals(36.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metoden finner antall uker. | public int finnAntUker() {
return salg.length;
} | [
"private void obEinheitTotIst() {\r\n\t\t\r\n\t\tif ( enemyUnits.firstSchauObTot() && enemyUnits.getAnzahl() > 0 ){\r\n\t\t\ttoeteEinheit();\r\n\t\t}\r\n\t\t\r\n\t\tif ( myUnits.firstSchauObTot() && myUnits.getAnzahl() > 0 ) {\r\n\t\t//einheit toeten, innerhalb der Methode wird weiterlaufen aufgerufen\r\n\t\t\ttoet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns if an article is real or fake based on the news source that it comes from. | public boolean isReal(){
if (realNewsSources.contains(this.getNewsSource())){
return true;
}
return false;
} | [
"@Override\n public boolean test(final Article article) {\n return isAuthorOk(article) && isTitleOk(article) && isStateOk(article);\n }",
"@Override\n\tpublic boolean articleExists(String url) {\n\t\treturn false;\n\t}",
"public boolean isArticleImage() {\n final String IMG_ATTRIB = \"img\";... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Persona personaInner = (Persona) ctx.getBean("personaInner");
Persona personaInner2 = (Persona) ctx.getBean("personaInner2");
// Se modifica en caliente
personaInner.setNombre("Luis");
System.out.println(personaInner.toString());
System.out.println(person... | [
"@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"
]
]
}
} |
/ startActivityForResult( Intent.createChooser( new Intent(Intent.ACTION_GET_CONTENT) .setType("image/"), "Choose an image"), REQ_CODE_PICK_IMAGE); | private void takePictureFromCamera1()
{
Intent intent = new Intent(getActivity(), TakePicActivity.class);
// Intent intent = new Intent(getActivity(), CameraActivity.class);
startActivity(intent);
} | [
"private void SelectImage()\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called periodically. n asks the successor about its predecessor, verifies if n's immediate successor is consistent, and tells the successor about n. | void stabilize() {
Node successor = this.fingers.getFinger(0);
Node x;
try {
if (successor.getId() == this.n.getId()) {
x = this.predecessor;
}
else {
x = ask(successor.getAddress(), StorageMessages.infoType.ASK_PREDECESSOR);
... | [
"public void optimisticUpdate(long n) {\n this.nextIdx = n + 1;\n }",
"public static void DepartureInform(Node n) {\n\t\t\n\t\tNode tmpnode;\n\t\tVector<Node> v = chordl.getKPrev(n, K);\n\t\tIterator<Node> itr = v.iterator();\n\t\tif (chordl.size() <= K) {\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\ttmpnode... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
equilibrium(); minMaxArray(); secLargest(); divisible(); | public static void main(String[] args) {
minArrayUpdatedReq();
} | [
"public interface Solution{\n public int maxSubSum(int[] array) throws InterruptedException;\n public String getSolutionType();\n}",
"public static int compute() {\n int max = 0;\n int result = 0;\n for (int a = -1000; a <= 1000; a++) {\n for (int b = -1000; b <= 1000; b++) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public List<Map<String, Object>> openmessage(Dto qDto) {
String id_=qDto.getString("ids").split(",")[0];
String sql="select * from archive_borrow_message where tid='"+id_+"'";
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
return list;
} | [
"@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 "ruleTermExpr" $ANTLR start "entryRuleComplexExpr" InternalAgreeParser.g:1477:1: entryRuleComplexExpr : ruleComplexExpr EOF ; | public final void entryRuleComplexExpr() throws RecognitionException {
try {
// InternalAgreeParser.g:1478:1: ( ruleComplexExpr EOF )
// InternalAgreeParser.g:1479:1: ruleComplexExpr EOF
{
if ( state.backtracking==0 ) {
before(grammarAccess.getCompl... | [
"public final EObject entryRuleComplexOperator() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleComplexOperator = null;\n\n\n try {\n // ../it.univaq.coevolution.differences.edelta/src-gen/it/univaq/coevolution/differences/edelta/parser/antlr/internal/Inte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of breweries based on the search term provided in the query. | public List<Brewery> searchBreweries(String query) throws OpenBreweryDbClientException {
checkNotNull(query);
String searchBreweriesUrl = String.format("%s/breweries/search?query=%s", url, query);
return executeListBreweriesRequest(searchBreweriesUrl);
} | [
"public List<Brewery> findAllBreweries() {\n\t\tString url = UriComponentsBuilder.fromHttpUrl(\"http://api.brewerydb.com/v2/breweries/\")\n\t\t\t\t.queryParam(\"key\", freeKey)\n\t\t\t\t.toUriString();\n\t\tBreweryResponse response = restTemplate.getForObject(url, BreweryResponse.class);\t\t\n\t\tSystem.out.println... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove the amount price from account balance, add the game to inventory, add transaction to history and return the transaction. | private String payAndAddGame(AbstractUser seller, double price, Game game) {
this.accountBalance -= price;
Game copy = gameCopy(game);
this.inventory.add(copy);
String trans = this.username + " has bought " + game.getName() + " from " + seller.getUsername() + " for $"
+ p... | [
"public void handleWithdraw(int slot, int id, int amount) {\n\n if (current != myShop) {\n return;\n }\n\n Item item = current.getItem(slot);\n ItemDefinition definiton = item.getDefinition();\n\n if (amount == -1) {\n if (definiton != null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates the second line of a pseudorandom street address. | public String street2()
{
String street = "";
int toggle = this._random.random( 0, 1 );
if ( toggle > 0 )
{
street = this._random.makeCString( 5, 20 );
}
return street;
} | [
"private static String generateUniqueAddress()\n \t{\n \t\tString addr;\n \t\tdo\n \t\t{\n \t\t\taddr = \"\";\n \t\t\t\n \t\t\tfor(int i = 0; i < Globals.ADDRESS_LENGTH; i++)\n \t\t\t{\n \t\t\t\tint r = rand.nextInt(26);\n \t\t\t\tchar letter = (char)('A' + r);\n \t\t\t\taddr += letter;\n \t\t\t}\n \t\t\n \t\t} whi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .google.cloud.conformance.storage.v1.RetryTest retryTests = 1; | public com.google.cloud.conformance.storage.v1.RetryTest.Builder addRetryTestsBuilder() {
return getRetryTestsFieldBuilder()
.addBuilder(com.google.cloud.conformance.storage.v1.RetryTest.getDefaultInstance());
} | [
"@Bean\n public Retryer retry() {\n return new Retryer.Default(100, SECONDS.toMillis(1), 3);\n }",
"@Test\n public void writeRetriesTest() {\n // TODO: test writeRetries\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"public HttpStor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtain a PreparedStatement with all parameters prebound. Bind JDBCstyle ? parameters, named parameters, and limit parameters. | protected final PreparedStatement prepareQueryStatement(
final String sql,
final QueryParameters queryParameters,
final LimitHandler limitHandler,
final boolean scroll,
final SharedSessionContractImplementor session) throws SQLException, HibernateException {
final Dialect dialect = session.getJdbcServi... | [
"protected void prepareStatementWithParameters() throws DBUtilsException {\n connection.prepareStatement(SQLParameterParser\n .removeParameterKeys(sql, parameters));\n if(!parameters.isEmpty())\n setParameters(SQLParameterParser.getParameterKeys(sql, parameters));\n paramete... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send a sample message request and receive a sample message response | Promise<SampleMessage> sendRequest(SampleMessage request) throws ReefServiceException; | [
"@Override\n public void sendToTester(StdKevoreeMessage msg) {\n getPortByName(\"request\", MessagePort.class).process(msg);\n }",
"@Ignore\n @Test\n public void does_app_send_and_receive_reactive_messages() {\n when().post(\"http://localhost:\" + port + \"/message/coffee/fluffyVelour... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__0" $ANTLR start "rule__XSwitchExpression__Group_2_0_0_0__0__Impl" ../org.xtext.tortoiseshell.ui/srcgen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:9440:1: rule__XSwitchExpression__Group_2_0_0_0__0__Impl : ( ( rule__XSwitchExpression... | public final void rule__XSwitchExpression__Group_2_0_0_0__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:9444:1: ( ( ( rule... | [
"public final void rule__XSwitchExpression__Group_2_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:8461:1: ( ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) ) )\n // InternalScripting.g:8462:1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Expression List'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseExpressionList(ExpressionList object)
{
return null;
} | [
"public static ExpList exList()\r\n\t{\n\t\tif(state == State.Id || state==State.Float || state==State.Int || state == State.FloatE || state==State.Keyword_true || state==State.Keyword_false|| state==State.LParen || state== State.Keyword_if)\r\n\t\t{\r\n\t\t\tExp e = exp(); //e's are being extracted correctly but n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .com.heme.logic.module.FriendCombine friendInfo = 3; | public Builder addFriendInfo(com.heme.logic.module.Data.FriendCombine value) {
if (friendInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFriendInfoIsMutable();
friendInfo_.add(value);
onChanged();
} else... | [
"public void addFriend( Person friend)\n {\n // put your code here\n this.friends = this.friends + friend + \" \";\n }",
"comm.CommModel.MemberOrBuilder getUserShareOrBuilder();",
"public com.znl.proto.M17.FriendInfo.Builder addFriendInfosBuilder() {\n return getFriendInfosFieldBuil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
} | [
"@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"
]
]
}
} |
Set the heading to which the wheel will rotate, as well as the speed once it reaches the goal heading. | public void set(double speedPWM,double headingDeg)
{
wheelSpeedPWM = speedPWM;
goalHeadingDeg = headingDeg;
//validate heading - find coterminal angle for OOB parameters
while(goalHeadingDeg > 180) goalHeadingDeg -= 360;
while(goalHeadingDeg < -180) goalHeadingDeg +=... | [
"public void setHeading(float head){\n\t\tmHeading = head;\n\t\tif(mHeading < 0) mHeading = 360 + mHeading;\n\t}",
"public void setRobotHeading(double heading) {\n pose.setCurrentHeading(heading);\n }",
"public void setHeading(float heading);",
"public void changeHeading() {\n Random rand = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to swap the managed object for the supplied object. This is of particular use for object datastores where the datastore is responsible for creating the inmemory object and where we have a temporary object that we want to swap for the datastore generated object. Makes no change to what fields are loaded/dirty etc... | void replaceManagedPC(Object pc); | [
"@SuppressWarnings(\"unused\")\r\n\tprivate void swapObjects(Object first, Object second){\r\n\t\tObject temp = first;\r\n\t\tfirst = second;\r\n\t\tsecond = temp;\r\n\t}",
"public void setObjeto(PersistentObject object) {\r\n\t\tthis.object = object;\r\n\t}",
"void manageNamedObject(Object managedObject, Objec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the Point where Windows should be centered. It is recommended that centered Windows be checked to ensure they fit within the available display area using getMaximumWindowBounds(). | public Point getCenterPoint() throws HeadlessException {
// Default implementation: return the center of the usable bounds of the
// default screen device.
Rectangle usableBounds =
SunGraphicsEnvironment.getUsableBounds(getDefaultScreenDevice());
return new Point((usableBounds.width / 2... | [
"public final Point getCenterPointOnScreen() {\n double offsetX =0.5D;\n\n // somehow this appears wrong? Cave entrance @TODO fix\n if (getID() == 2) {\n offsetX = 2D;\n }\n\n return bot.getManagers().getCalculations().tileToScreen(getLocalRegionX(), getLocalRegionY(), ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required float x = 1; | float getX(); | [
"float x();",
"float getX(){ return x; }",
"void mo9187a(float f);",
"public void mo92799a(float f) {\n }",
"float ftom(float value);",
"public void setX(double x){\n this.x = (float)x;\n }",
"void mo22696a(float f);",
"void mo11404bf(float f);",
"void mo28431a(float f);",
"public dou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialisation of Direction enum | Direction(String abbreviation) {
this.abbreviation = abbreviation;
} | [
"private Direction initDirection()\n {\n if (getNextTrack(Direction.RIGHT) == null)\n {\n return Direction.LEFT;\n }\n else\n {\n return Direction.RIGHT;\n }\n }",
"private Direction(String directionCode) \n { \n this.directionCode = directionCode; \n }",
"Direction(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
query string to call JAppletFixture to create Point objects | public abstract String createPointQueryString(int x, int y); | [
"public abstract void setPoint(String[] args);",
"Person(String n, float hx, float hy) {\n acceleration = new PVector(0, 0);\n velocity = new PVector(0, 0);\n location = new PVector(width/2, height/2);\n targetMap = new PVector(hx, hy);//Start the sketch with home countries if time is less than the fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column notice.filename | public String getFilename() {
return filename;
} | [
"@Column(nullable = false, unique = true)\n public String getFilename() {\n return filename;\n }",
"public String getFileName() {\n return fileName + \".pdb\"; \n }",
"public StringLiteral getFileName() { return _container.getFileName(); }",
"@ReportableProperty(order = 14, value = \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://voyager.cs.bgsu.edu/cpotdar/mapview/campusmap.pdf"));
//intent.setType("application/PDP");
startActivity(intent);
} | [
"@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"
]
]
}
} |
Converts XML document into ListSwiftsResponse object | private ListSwiftsResponse getListSwiftsResponse(Document doc) {
ListSwiftsResponse response = new ListSwiftsResponse();
// get id from XML and set as the ID of the host
NodeList list = doc.getElementsByTagName("id");
if (list.getLength() > 0) {
Node node = list.item(0);
... | [
"private SearchShiftsResponse _handleSearchShiftsResponse(HttpContext _context)\r\n throws ApiException, IOException {\r\n HttpResponse _response = _context.getResponse();\r\n\r\n //invoke the callback after response if its not null\r\n if (getHttpCallback() != null) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .TransTweetResult trans_tweet_result = 50; | public com.gzligo.ebizzcardstranslator.mqtt.protobuf.MQTTProtobufMsg.TransTweetResult.Builder getTransTweetResultBuilder() {
return getTransTweetResultFieldBuilder().getBuilder();
} | [
"void update(TargetedTweet tweet);",
"@Override\n public void visitTweet(Tweet tweet)\n {\n }",
"public void setTwitterTweet(Tweet t)\n\t{\n\t\tTwitterTweet = t;\n\t}",
"public void calculate(IIFTweetClassifierKeywordStreamInput input, IIFTweetClassifierModifiedTwitterStreamOutput modifiedTwitterStreamResu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the attribute values in the ModelView map for correct values when a player is stored in the current session and is not signed in. | @Override
@Test
public void testNotSignedIn() throws Exception {
final TemplateEngineTester testHelper = new TemplateEngineTester();
when(engine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());
when(session.attribute("player")).thenReturn(TEST_PLAYER_NAME);
assertThrows(HaltExce... | [
"public boolean validatePlayerDetails(TournamentMapGraph tournamentMapGraph) {\n\t\tboolean missingData = false;\n\t\tIterator<Entry<String, String>> playerDetailsIT = tournamentMapGraph.getInputPlayerDetails().entrySet().iterator();\n\t\twhile(playerDetailsIT.hasNext()) {\n\t\t\tEntry<String, String> inputPlayer =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 57 /Coverage entropy=2.3025850929940455 | @Test(timeout = 4000)
public void test057() throws Throwable {
XPathLexer xPathLexer0 = new XPathLexer("4'\"|er'^o");
Token token0 = xPathLexer0.nextToken();
assertEquals(30, token0.getTokenType());
assertEquals("4", token0.getTokenText());
} | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads the given configuration file. | static void loadConfigFile(String fileName) throws Exception {
// releaseConfigFiles();
ConfigManager configManager = ConfigManager.getInstance();
configManager.add("failure_tests" + File.separator + fileName);
} | [
"private static void loadConfigFile() {\n\ttry {\n\t config = Utils.loadConfig();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }",
"@Override\n\tpublic void load(String configFile) throws ConfigurationException {\n\t\t\n\t}",
"public void loadConfigurationFile(String file){\n Fil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the item's expand state. | public void setExpanded(M model, boolean expand, boolean deep) {
TreeNode node = findNode(model);
if (node != null) {
TreeGridEvent<M> tge = new TreeGridEvent<M>(this);
tge.setModel(model);
if (expand) {
if (!node.isLeaf()) {
// if we have a loader and node is not loaded make... | [
"public void setExpanded(boolean expanded) {\r\n\t\tif (_current != null)\r\n\t\t\t_current.setExpanded(expanded);\r\n\t}",
"public void setExpanded(boolean expanded) {\n if (expanded != this.expanded) {\n toggle();\n }\n }",
"public void expandItem(int position, final boolean expand) {\n fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column oil.date | public void setDate(String date) {
this.date = date;
} | [
"public void setDate(Date date) {this.date=date;}",
"public void settingDate(Date date){\n smallBudget.setDate(date);\n }",
"public void setDate(long date) {\n this.date = date;\n }",
"public void setValue(Date date) {\r\n\t\tsuper.setLiteralValue(date);\r\n\t}",
"@Override\n public void setDate(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This optional operation is not yet supported. | @Override
public FSDataOutputStream append(Path f, int bufferSize,
Progressable progress) throws IOException {
throw new IOException("Not supported");
} | [
"protected void unsupportedOp()\n\t{\n\t\tthrow new UnsupportedOperationException(\"this is not allowed\");\n\t}",
"abstract boolean optional();",
"private static <T> T unsupportedOperation() {\n throw new UnsupportedOperationException(\"Not supported by BaseContext.\");\n }",
"@Override\n\tpublic B... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an image file name | private File createVideoFile() throws IOException {
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.UK).format(new Date());
String videoFileName = "3GP_" + timeStamp + "_";
File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);
return File.createTempFil... | [
"private static String createFileName() {\n String filename;\n Date date = new Date(System.currentTimeMillis());\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat dateFormat = new SimpleDateFormat(\"'IMG'_yyyyMMdd_HHmmss\");\n filename = dateFormat.format(date) + \".jpg\";\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
parseNews: Set up parser object, perform parsing | public void parse ()
{
try {
FileInputStream in = new FileInputStream(filename);
InputSource source = new InputSource(in);
source.setEncoding("ISO-8859-1");
parsedText = new ParsedCorpus();
parse(source);
System.err.println("xml parsed ");
}
catch (Exception e) ... | [
"private List<News> parseXML(String xml){\n List<News> news = new ArrayList<News>();\n DateFormat dateFormatterRssPubDate = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss Z\", Locale.ENGLISH);\n try {\n DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor where the user inputs the name of the goal or plan | public GoalPlan(String myid){id = myid;} | [
"public BayPlan() {\n \n }",
"public Planet() {\n this(\"\");\n\n }",
"public Spartan() {\n\n\t this(\"No Name\", 5); \n\t \n\t System.out.println(\"no arg\");\n\t \n//\t this.name = \"No Name\";\n//\t this.studyHour = 5; \n\n\t this.horsePower = 320; \n\t //this.cert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
unit conversion > false > All > excel | @Test(enabled = true)
public void TC_002_contextSearch_Petrophysical_Log_Films_WithoutCheckAll_currentPage_Excel() throws Throwable {
Reporter.log("Log Films", true);
homepage = new homePage(driver);
Reporter.log("Browser Opened", true);
homepage.adminViaDropDown(homepage.getCountryDropdown(), "NETHERLANDS");... | [
"@Override\r\n\t\tpublic void exportExcel() {\n\t\t\t\r\n\t\t}",
"@Test\n\tpublic void test_export() {\n\n\t\tXSSFWorkbook workbook = adminService.getExcel(\"1,2,3,6,7,8,9,14,15\", \"TeacherInfo\", null);\n\t\ttry {\n\t\t\tFileOutputStream out = new FileOutputStream(\"E:/Attachment/张三/TeacherAward/test.xlsx\");\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the index of the font to use. The font must have been previously created via Workbook.createFont()! | @Nonnull
public ExcelStyle setFont (@Nonnull final Font aFont)
{
ValueEnforcer.notNull (aFont, "Font");
return setFontIndex (aFont.getIndex ());
} | [
"void setFont(String fontName, int style, int size, int row, int column);",
"public void setFont(int elementNum, Font font) {\n synchronized (Display.LCDUILock) {\n checkIndex(elementNum);\n if (fontEls == null) {\n fontEls = new Font[numOfEls];\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets up Staff Member tests by creating a staff member. | @Before
public void setUp() {
staff = new Staff("Bob", "Smith", "vol@uw.edu", WorkLoad.HIGH);
} | [
"@Test\r\n public void createMaintenenceStaff() {\r\n \r\n repo = ctx.getBean(MaintenanceStaffRepository.class);\r\n \r\n ContactDetails contact = new ContactDetails.Builder()\r\n .cellnumber(\"2545125\")\r\n .... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Callback methods for native JVMTI agent / ClassFileLoadHook event handler method | private byte[] transform(ClassLoader loader, byte[] classNameBytes,
Class<?> classBeingRedefined, ProtectionDomain protectionDomain,
byte[] classfileBuffer) {
byte[] source = classfileBuffer;
byte[] result = null;
byte[] trans = null;
String className = new String... | [
"private static native void nativeLoadNative();",
"void load(ClassBytecodes[] cbcs)\r\n throws ClassInstallException, NotImplementedException, EngineTerminationException, RemoteException;",
"static void hotSwapCase() {\n String className = \"org.iushu.jdk.lang.ClassLoaderExceptionListener\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the current IParameters object. | public IParameters getParameters () {
return params;
} | [
"static public Parameters getParameters(){\n\t\tif(parameters == null) parameters = new Parameters();\n\t\treturn parameters;\n\t}",
"public final Parameters getParameters() {\n return this.params;\n }",
"public Parameters getParameters() {\n return this.parameters;\n }",
"public PSParamet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests of the help screen, checking if major keybindings are displayed. Currently minimal due to uncertainty in exact phrasing. | @Test
public void testHelp() {
try {
// Setting input stream to required inputs for entering and leaving help screen and program
String input = "?" + enter + "x" + enter + "x" + enter;
InputStream inputStreamSimulator = new ByteArrayInputStream(input.getBytes());
System.setIn(inputSt... | [
"public void showHelpScreen() {\n\t\thelpScreen = true;\n\t\t// we need one clickable on help screen\n\n\t\tremoveClickables();\n\t\tclickable.add(helpReturn.getBounds());\n\t\tbehaviors.put(clickable.get(0), () -> hideHelpSreen());\n\n\t\thideContents();\n\t\tDriver.getInstance().add(helpMenu);\n\t\tDriver.getInst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make sure that routes are sorted as follows: GET, PUT, POST, DELETE. Then by path. | private void sortRoutes(List<XmlTag> routes) {
routes.sort(
(firstTag, secondTag) -> {
String substring = firstTag.getName().substring(2, 5);
Integer firstSortOrder = HTTP_METHODS_SORT_ORDER.get(substring);
Integer secondSortOrder =... | [
"public interface ApplicationRoutes extends Comparable<ApplicationRoutes> {\n\n /**\n * use router build module routes\n *\n * @param router\n */\n void init(Router router);\n\n /**\n * routes order\n *\n * @return\n */\n default int order() {\n return 10;\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Game Loop Declares & spawns all objects on the scene Uses Movement class to access mouse & keyboard movement Initializes the scene | public static void main(String[] args) { launch(args); } | [
"public void spawnObjects() {\n for (InteractableObject io: objects) {\n io.spawnObject();\n }\n }",
"private void startGame()\n\t{\n\t\tcontentPane.removeAll();\n\t\t\n\t\tspeed = new Speed();\n\t\t\n\t\t// Setup train moving game (50ms between ticks)\n\t\tstage = new Stage(50);\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TFSDOCTYPE.LC_OUT_ACCEPT_CASH_LIAB_GL | public BigDecimal getLC_OUT_ACCEPT_CASH_LIAB_GL() {
return LC_OUT_ACCEPT_CASH_LIAB_GL;
} | [
"@Override\r\n public GEN_LEDGERVO dependencyByGlFromAmfRifattGL(AccountSC criteria) throws DAOException\r\n {\r\n\treturn (GEN_LEDGERVO) getSqlMap().queryForObject(\"glMapper.selectValidateGlFromAmfRifattGenLedger\", criteria);\r\n }",
"public java.lang.String getGlAcct() {\n\treturn glAcct;\n}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.seekbar, menu); | @Override
public boolean onCreateOptionsMenu(Menu menu) {
return true;
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.activity_main_actions, menu);\n playMenuActionBar = menu.findItem(R.id.action_play);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the specified object at the end of the array. | @Override
public void add(@Nullable String object)
{
if (mImageLists != null)
{
mImageLists.add(object);
notifyDataSetChanged();
}
} | [
"public static void addLast(Object obj) {\r\n ensureCapacity();\r\n elements[r % elements.length] = obj;\r\n r = (r + 1) % elements.length;\r\n }",
"@Override\n\tpublic void addLast(Object o) {\n\t\tadd(getSize(), o); // use the add method you already made, adds to end already\n\t}",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / | public void runTick() throws IOException {
/* 1723 */ if (this.rightClickDelayTimer > 0)
/* */ {
/* 1725 */ this.rightClickDelayTimer--;
/* */ }
/* */
/* 1728 */ this.mcProfiler.startSection("gui");
/* */
/* 1730 */ if (!this.isGamePaused)
/* */ {
/* 1732... | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uint64 Flags = 3; | @java.lang.Override
public long getFlags() {
return flags_;
} | [
"public interface BitMaskEnum {\n\n\t/** The first 31 powerOf2 int values */\n\tpublic static final int[] POW2INT = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks that files from dependency tree are present in directory | public DependencyTreeDescription validateDirectory(File directory) {
if (!directory.isDirectory()) {
throw new AssertionError(directory.getAbsolutePath() + " is not a directory");
}
return validateFiles(directory.listFiles());
} | [
"private void verifyGeneratedSourcesDirectory() {\n\t\tFile f = new File(workingDir, EXPECTED_CODE_ROOT);\n\t\tPath rootExpectedSource = Paths.get(f.toURI());\n\n\t\t// File tree of generated code\n\t\tf = new File(workingDir, GENERATED_SOURCE_ROOT);\n\t\tPath rootGeneratedSource = Paths.get(f.toURI());\n\t\t\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a collection of usage references from the specified content tree. | public static Collection find(EObject eObjectOfInterest, ResourceSet resourceSet)
{
return new UsageCrossReferencer(resourceSet).findUsage(eObjectOfInterest);
} | [
"public List<ContentReference> getContentReferences();",
"@GET\n @Path(\"{id}/references\")\n public PagingResponse<Reference> listReferencesByNameUsage(@PathParam(\"id\") int usageKey, @Context Pageable page) {\n return referenceService.listByUsage(usageKey, page);\n }",
"public List<String> getUsages() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute own lines in standard form a, b, c | public boolean intersectsLine(Line other){
float a1 = dest.y - pos.y;
float b1 = pos.x - dest.x;
float c1 = (dest.x * pos.y) - (pos.x * dest.y);
//Compute r3 and r4.
float r3 = ((a1 * other.pos.x) + (b1 * other.pos.y) + c1);
float r4 = ((a1 * other.dest.x) + (b1 * other.dest.y) + c1);
//Ch... | [
"public static void ConcatenateSpecialLines() {\n\t\tArrayList<Line> tempLine = new ArrayList<>();\n\t\tint counter = 2, specialCounter = 2;\n\t\tfor (Line line : lines) {\n\t\t\tif (((line.endX == line.startX + 1)&&(line.endY==line.startY+1))) {\n\t\t\t\ttempLine.add(line);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 key = 1; | boolean hasKey(); | [
"public abstract int key();",
"int index(long key) { throw new NotGenerated(); /* endtemplate */\n }",
"int getKey1();",
"public int key(){\n\t\treturn 2;\n\t}",
"int getKey3();",
"public void setKeyNumber(Number id) {\n\t\t\t\t\n\t\t\t}",
"private int getKey() { return mKey; }",
"public int key() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method lets you log in to Reddit. It fetches the cookie which can be used in subsequent calls to the Reddit API. | public boolean login(String username, String password){
HttpURLConnection connection = Network.getConnection(REDDIT_LOGIN_URL);
if(connection == null)
return false;
//Parameters that the API needs
String data="user="+username+"&passwd="+password;
if(!Network.writeT... | [
"public synchronized void getCookie() {\n if (phoneUtils.isTestingServer(phoneUtils.getServerUrl())) {\n Logger.i(\"Setting fakeAuthCookie\");\n authCookie = getFakeAuthCookie();\n return;\n }\n if (this.accountSelector == null) {\n accountSelector = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get wifi hotspot location and show in map | public void getWifiHotspotLocation(Fragment fragment) {
for (int i = 0; i < listTable.size(); i++) {
onDbInteractionListener.onDbTableInteractionListener tableName = listTable.get(i);
if (tableName instanceof onDbInteractionListener.onDbWifiTableInteractionListener) {
((o... | [
"public void geoLocate() {\n // Hide the keyboard that was given to user to type\n //hideSoftKeyboard(v);\n\n // Get the input text that was typed\n // EditText et = (EditText) findViewById(R.id.editText1);\n //String location = et.getText().toString();\n\n // TODO: REMOVE ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |