query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Parse a String from Bluetooth | private void parseString(String string){
String[] tokens = string.split("l");
String action=tokens[0];
//System.out.println(string);
if (action.equals("Update")){//update stuff
parseUpdate(tokens);
}
else if(action.equals("Start")){//starts the app
}
... | [
"private void handleBluetooth() {\n\t\th = new Handler() {\n\t\t\tpublic void handleMessage(android.os.Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase RECIEVE_MESSAGE: // if receive massage\n\t\t\t\t\tbyte[] readBuf = (byte[]) msg.obj;\n\t\t\t\t\tString st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add a new observer to the world. | public synchronized void addObserverToWorld(Observer observer) {
for(int x = 0;x < this.ships.size();x++) { // send all ships
observer.addShipToView(this.ships.get(x));
}
for(int x = 0;x < this.projectiles.size();x++) { // send all projectiles
observer.addProjectileT... | [
"void add(OBSERVER_TYPE observer);",
"public void add(final Observer observer);",
"@Override\r\n\tpublic void addObserver(Observer observer) {\n\t\t this.observer = observer;\r\n\t}",
"void addObserver(Observer obs);",
"public void addObserver(Observer observer)\n {\n this.observers.add(observer);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Releases PEs allocated to a VM | @Override
public void deallocatePEsForVM(int vmId, int userId){
int pes = peAllocationMap.remove(userId+"-"+vmId);
pesInUse-=pes;
} | [
"private static void releaseUGpointers() {\r\n\r\n System.out.println(\"JVMmanager.releaseUGpointers()\");\r\n// System.out.println(\"weakReferenceSetofUGObjects.size() = \"\r\n// +weakReferencesOfUGObjects.size());\r\n// \r\n// long count = 0;\r\n\r\n for (Canvas c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this 2 methods are important for displaying index numbers in the main app Displayed number for movie in main app | public void setdisplaynum(int j){
this.displaynum = j;
} | [
"private void displayIndex() {\n LinearLayout indexLayout = (LinearLayout) findViewById(R.id.side_index);\n TextView textView;\n List<String> indexList = new ArrayList<String>(mapIndex.keySet());\n for (String index : indexList) {\n textView = (TextView) getLayoutInflater().in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public JSONObject saveOffline() throws JSONException {
JSONObject tempUserJsonObject=new JSONObject();
tempUserJsonObject.put(PEmail, userEmailString);
return tempUserJsonObject;
} | [
"@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"
]
]
}
} |
End Get List Account ====================================================================================== Start /post SaveCreate !> / Noted : input di postman JSON harus lengkap sesuai dg database, mulai dari : firstName, lastName, birthData, username, password, phoneNumber, phoneType | @PostMapping("/account")
public Account postAccount(@RequestBody Account account) throws Exception {
Account data = accountDao.save(account);
return data;
} | [
"private String createAccount(String fn,String ln,String email,String password) throws IOException {\n Gson gson = new Gson();\n BufferedReader bufReader;\n List<User> userList = null;\n try {\n bufReader = new BufferedReader(new FileReader(\"src/files/users.json\"));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor. Each field MUST be initialized a default value here. | public UserInformationObject() {
this.userId = null;
this.userName = null;
} | [
"public FieldValue() {\n }",
"public Field() {\n\t\tthis(NONE, NONE);\n\t}",
"public Field()\n {\n super(\"field\");\n }",
"public DateFields()\n\t{\n\t\tthis(0, 0, 0);\n\t}",
"Person() {\n this(\"default\", 0);\n }",
"public NullField() {}",
"public Field() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes a FILESTR and removes it from the working directory. | void rm(String filestr) {
CommitFiles comfs = Utils.readObject(commitmapmap, CommitFiles.class);
_commitmap = comfs.getcommitmap();
RemoveFiles remfs = Utils.readObject(removemapmap, RemoveFiles.class);
_removemap = remfs.getremovemap();
_head = Utils.readContentsAsString(head);
... | [
"public static void m46346b(String str) {\n if (str != null) {\n File file = new File(str);\n if (file.isFile() && file.exists() && file.canWrite()) {\n file.delete();\n }\n }\n }",
"public void delFile(String str) {\n\t File fi = new File(\"C:\\\\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When mouse is over the rect it will start spinning uncontrollably | @Override
public void onMouseOver()
{
if (getRotation() == 0)
setRotation(20*(rand.nextDouble() - 0.5));
else
addRotation(getRotation()*0.05);
} | [
"public void spin() {\r\n\t\tRobotMap.firstTalon.set(0.4);\r\n\t\tRobotMap.secondTalon.set(0.4);\r\n\t}",
"public void PlayerShoot()\n {\n this.repaint();\n \n \n \n \n }",
"public void animate ()\n {\n Rectangle next = new Rectangle (ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a Playlist's Items | @Test(priority = 5)
public void getPlaylistItems_FromPlaylist_ofSpotifyApp() {
Response response = RestAssured.given()
.accept("application/json")
.contentType("application/json")
.header("Authorization", tokenValue)
.pathParam("playlist_... | [
"public List<Playlist> myPlaylists() {\n\n itemsPlays = playlistEjb.showMyPlaylist(loggedUser.getUser());\n return itemsPlays;\n }",
"com.spotify.playlist4.proto.Playlist4Content.ItemOrBuilder getItemsOrBuilder(\n int index);",
"public List<Song> listSongs();",
"public com.spotify.play... | {
"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.level_complete, 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"
]
]
}
} |
tearDown() is run after a test case has finished. finishOpenedActivities() will finish all the activities that have been opened during the test execution. | @After
public void tearDown() throws Exception {
solo.finishOpenedActivities();
} | [
"@After\n public void tearDown() throws Exception\n {\n solo.finishOpenedActivities();\n }",
"@After\n public void tearDown() throws Exception {\n solo.finishOpenedActivities();\n }",
"@After\r\n public void tearDown() throws Exception\r\n {\r\n // Set to null and finish\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the expirationYear value for this Token. | public java.lang.String getExpirationYear() {
return expirationYear;
} | [
"public int expirationYear() {\n return this.expirationYear;\n }",
"public int getExpirationYear() {\n return expirationYear;\n }",
"public int getYear(){\n\t\treturn expYear;\n\t}",
"public Integer getYear() {\n return new Integer( this.calendar.get( Calendar.YEAR ) );\n }",
"public int g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Catch the result from the callback method. | public void onQueryCompleted(int token,
KiiQueryResult<KiiObject> result, Exception e) {
// Hide the progress dialog.
mProgress.dismiss();
// Check for an exception. The request was successfully processed if e==null.
... | [
"private void callbackResult() {\n }",
"public void receiveResult(Object result) {\n }",
"@Override\n public Object call() throws Exception {\n return _retValO;\n }",
"protected void onCompleteInner(R result) { }",
"boolean handleComplete(T result);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function that moves to robot a set number of inches | public void moveDistance(double inches)
{
//resetEncoder();
SmartDashboard.putNumber("Rotations", Constants.inchesToRev(inches));
double leftDistance = Constants.inchesToRev(inches);
double rightDistance = Constants.inchesToRev(inches);
set(leftDistance, rightDistance, ControlType.kPosition... | [
"private void moveRobot(double speed, double inches) {\n\n // determine if the robot moves forward or backward:\n double direction = Math.signum(speed * inches);\n\n // sanity check: don't do anything if either speed or inches is zero\n if(direction == 0.0) return;\n\n // since we... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 ClientId = 1; | public int getClientId() {
return clientId_;
} | [
"public long getClientID ();",
"public int getClientid() {\n return clientid;\n }",
"private ClientIdServer() {\n idCounter = 1;\n }",
"public long getClientId() {\n if (clientId == 0) {\n clientId = Math.abs(new Random().nextInt()); //random??\n }\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To change body of implemented methods use File | Settings | File Templates. | public void dockableFrameHidden(DockableFrameEvent dockableFrameEvent) {
} | [
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\tprotected void body()\n\t{\n\n\t}",
"@Override\n public void method() {\n }",
"@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Do not rely on default compareAgainstBaseState as that works at lastRev level and we need proper equals | public static boolean assertEquals(NodeState before, NodeState after) {
return before.exists() == after.exists()
&& AbstractNodeState.compareAgainstBaseState(after, before, new AssertingDiff());
} | [
"@Override\n public boolean equals(Object obj) {\n if (obj.getClass() == this.getClass()) return equals((State)obj);\n else return super.equals(obj);\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the siac r movgest ts sog mods1. | public SiacRMovgestTsSogMod addSiacRMovgestTsSogMods1(SiacRMovgestTsSogMod siacRMovgestTsSogMods1) {
getSiacRMovgestTsSogMods1().add(siacRMovgestTsSogMods1);
siacRMovgestTsSogMods1.setSiacTSoggetto1(this);
return siacRMovgestTsSogMods1;
} | [
"private SiacTMovgestT estraiSiacTMovgestT(SiacTModifica src) {\n\t\tif(src.getSiacRModificaStatos() != null) {\n\t\t\tfor(SiacRModificaStato srmc : src.getSiacRModificaStatos()) {\n\t\t\t\tif(srmc.getDataCancellazione() == null) {\n\t\t\t\t\tSiacTMovgestT stmt = estraiSiacTMovgestTFromSiacTMovgestTsDetMod(srmc);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a string describing this kind of target: e.g. "cc_library rule", "source file", "generated file". | String getTargetKind(); | [
"public static String targetKind() {\n return \"source file\";\n }",
"public String getTarget() {\n Object ref = target_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
int a[]=new int[5];
a[0]=234;
a[1]=53;
a[2]=521;
a[3]=73;
a[4]=911;
int sum=0;
//sum=sum+a[3]+a[4];
//System.out.println(sum);
for(int i=0;i<a.length;i++)
{
System.out.println(sum=sum+a[i]);
}
} | [
"@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"
]
]
}
} |
Returns a string that identifies the player | public String toString() {
return m_name;
} | [
"private String getPlayerName() {\n\t\tIODialog dialog = getDialog();\n\t\treturn dialog.readLine(\"Enter player name: \");\n\t}",
"public String getPlayer() {\n\t\tString p = player;\n\t\treturn p;\n\t}",
"public String getPlayer() {\n\t\treturn this.playerid;\n\t}",
"String getPlayerName(Integer playerId);"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field second is set (has been assigned a value) and false otherwise | public boolean isSetSecond() {
return EncodingUtils.testBit(__isset_bitfield, __SECOND_ISSET_ID);
} | [
"public boolean isSetValue2() {\n return this.value2 != null;\n }",
"public boolean hasMyvar2() {\n return fieldSetFlags()[1];\n }",
"public boolean hasFieldTwo() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSetData2() {\n return __isset_bit_vector.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TB_D_BUTTON.SORTCODE | public void setSortcode(Integer sortcode) {
this.sortcode = sortcode;
} | [
"public Builder setSortingCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n sortingCode_ = value;\n onChanged();\n return this;\n }",
"public Builder setSortingCodeBytes(\n com.google.protobuf.By... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the Slot object of the attribute | public Slot getSlot() {
return slot;
} | [
"ExosuitSlot getSlot();",
"public int getSlot()\n\t{\n\t\treturn this.slot;\n\t}",
"public SlotType getType() { return this.type; }",
"public abstract Slot getSlot(EvalContext ctx);",
"public abstract SlotDto getSlot(SlotDto s);",
"Slot getSlot(AnnotatedTypeMirror atm);",
"int slot() { retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
HotelService h = new HotelService();
tableNom.setCellValueFactory(new PropertyValueFactory<>("nom"));
tableEtoile.setCellValueFactory(new PropertyValueFactory<>("nbEtoile"));
tablePs.setCellValueFactory(new PropertyValueFactory<>("Prix... | [
"public Controller(){\t\n\t}",
"public GameEriController() {\r\n\t\tinit();\r\n\t\t\r\n\t}",
"public MainController(){\n \n }",
"public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo(10000);\n\t}",
"public MainController() {\n try {\n log.debug(\"Starting Mai... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bytes attach_data = 20; | public Builder clearAttachData() {
bitField0_ = (bitField0_ & ~0x00000004);
attachData_ = getDefaultInstance().getAttachData();
return this;
} | [
"void addAttachment(byte[] bytes, String fileName, String description);",
"void setAttachmentContent(AttachmentReference attachmentReference, byte[] attachmentData) throws Exception;",
"public void setAttachment(byte[] value) {\n this.attachment = value;\n }",
"public LinkedHashMap appendDataToAttac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO add your handling code here: | private void filterPairComboBoxActionPerformed(java.awt.event.ActionEvent evt) {
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"protected void method_5557() {}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tprotected void handleResponse(Response response) {\n\n\t}",
"@Override\n protecte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the route for the robot | private void setDestination() {
destination_floor = currentDeliveryAttachment.nextToDeliver().destinationFloor;
if (currentDeliveryAttachment.equals(foodAttachment)) {
floorManager.lockFloor(destination_floor, this.id);
}
} | [
"public void setRoute(LinkedList<Street> rt) {\r\n\t\troute = rt;\r\n\t}",
"public void setRoute(ArrayList<CoordAgent> route){\n this.route = route;\n }",
"public void setRoute(java.lang.String route) {\r\n this.route = route;\r\n }",
"public void setRoute(String route)\n {\n thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Implementation note: This method assumes that it is always preceded by a call to hasNext() in order for whitespace handling to be correct. | private Token nextToken() {
prevToken = curToken;
if (hasNextChar()) {
char ch = nextChar();
if (Character.isJavaIdentifierStart(ch)) {
int start = index - 1;
while (index < expression.length() &&
Character.isJavaIdentifierP... | [
"private void consumeUntilWhitespace()\n {\n try\n {\n for (int type = LA(1);; type = LA(1))\n {\n switch (type)\n {\n case ' ' :\n case '\\r' :\n case '\\n' :\n case '\\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end paint sends output to the server a helper | private void _sendOutput(){
System.out.println(dataLog.generateLog());
try {
String filePath = getParameter("filePath");
String msg = "fp="+filePath+"&output="+dataLog.generateLog();
URL url = new URL(getCodeBase(),"writeData.php");
HttpURLConnection httpCon = (HttpURLConnection) url.openConnection(... | [
"@Override\r\n\t\t\tpublic void endPaint() {\n\t\t\t\t\r\n\t\t\t}",
"public void sendRenderingInfoToClient();",
"public void doPaint() {\r\n\t\tSystem.out.println(paint);\r\n\t}",
"public abstract int endGraphic();",
"public void Paint() {\n if (l9Str == null) {\n return;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as the attribute value for StyleNameC. | public void setStyleNameC(String value) {
setAttributeInternal(STYLENAMEC, value);
} | [
"public void set_style_name(String name){\r\n\t\t_style_name = \"SN\" + name;\r\n\t}",
"public void setProperty(OdfStyleProperty property, String value);",
"public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}",
"public static void setStyle(String str){\n\n ... | {
"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.main, 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"
]
]
}
} |
ArrayList fight = service.hunt_map(1, "d"); odel.addAttribute("fight", fight); | @RequestMapping(value = "test", method = RequestMethod.GET)
public String test(Model model) {
String table_name = "ddddd";
String create_table = "create table " + table_name + "("
+ "user_name varchar2(15) ,"
+ "item_no number)";
Map<String, String> map = new HashMap<String, String>();
map.put("crea... | [
"com.guidewire.datamodel.TypelistMapDocument.TypelistMap addNewTypelistMap();",
"java.util.List<com.ronrytest.protobuf.lib.Map.MapEntity> getShouruList();",
"public void addFight(Fight fight){\n fights.put(fight.getId(), fight);\n GameSendersRegistry.getMap().fightCountToMap(this);\n }",
"@Ov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Width of the bitvector. | int getWidth(); | [
"public double binWidth();",
"public int size() {\n return bits.length << 6;\n }",
"@VisibleForTesting\n/* */ long bitSize()\n/* */ {\n/* 210 */ return this.bits.bitSize();\n/* */ }",
"public int width() {\n return width;\n // return colormap[0].length;\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column power_cdmeterdata_total_s.ecu_id | public Integer getEcuId() {
return ecuId;
} | [
"PowerCdmeterdataTotalSingle selectByPrimaryKey(Long id);",
"public float cekTotal() {\n\t\ttry {\n\t\t\tst = con.createStatement();\n\n\t\t\tString query = \"SELECT * FROM berat\";\n\t\t\trs = st.executeQuery(query);\n\t\t\tfloat beratTotal = 0;\n\t\t\twhile (rs.next()) {\n\t\t\t\tString nS = rs.getString(\"bera... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
dir = new javax.swing.JTextField();
avail = new javax.swing.JTextField();
cat = new javax.swing.JTextField();
price = new java... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows to obtain the String frost of the Fridge Pre:The Fridge object must be created and noFridge must be entered Post:obtain the frost String of the Fridge saved in variable "answer" | public String isFrostString() {
String answer;
answer = (frost)?"SI":"NO";
return answer;
} | [
"public void eventMine(String answer) {\n // dialogue\n System.out.print(\"\\nYou arrive in the mine. Despite the darkness, you can see moving shadows...\");\n System.out.print(\"\\nYou arrive to distinguish that these shadows are elves locked up !\");\n System.out.print(\"\\nAn elve : b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the marketing event sponsor level with the primary key or returns null if it could not be found. | public static MarketingEventSponsorLevel fetchByPrimaryKey(
long marketingEventSponsorLevelId) {
return getPersistence().fetchByPrimaryKey(marketingEventSponsorLevelId);
} | [
"@Transient\r\n public String getPrimarySponsorCode() {\r\n Organization sponsorOrg = getPrimaryFundingSponsorOrganization();\r\n if (sponsorOrg != null) {\r\n return sponsorOrg.getNciInstituteCode();\r\n }\r\n return null;\r\n }",
"@Transient\r\n public String getF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access to reduce_goto table. | public short[][] reduce_table() {return _reduce_table;} | [
"public short[][] reduce_table() {\r\n\t\treturn _reduce_table;\r\n\t}",
"public void build_table_entries(parse_action_table act_table, parse_reduce_table reduce_table) throws internal_error {\n var conflict_set = new terminal_set();\n\n /* pull out our rows from the tables */\n var our_act_row = act_tab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 279 /Coverage entropy=1.791759469228055 | @Test(timeout = 4000)
public void test279() throws Throwable {
TextInput textInput0 = new TextInput((Component) null, "' to Date.", "' to Date.");
TextInput textInput1 = new TextInput(textInput0, ",w[1\"%G8zKFMN8/uV", "z&2K!d0|I<rN");
Double double0 = new Double(2189.65747226148);
// Undecl... | [
"@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"
]
]
}
} |
Trim the trailing linebreak (if any) from this string. | public static String trimLineBreak(String str) {
if (!hasLength(str)) {
return str;
}
StringBuilder buf = new StringBuilder(str);
while (buf.length() > 0 && isLineBreakCharacter(buf.charAt(buf.length() - 1))) {
buf.deleteCharAt(buf.length() - 1);
}
... | [
"public TextUtils removeNewline() {\n\t\tthis.s = s.replace(\"\\r\", \"\");\n\t\tthis.s = s.replace(\"\\n\", \"\");\n\t\treturn this;\n\t}",
"public String rtrim() {\n int pos = this.value.length() - 1;\n \n while ((pos >= 0) && (this.value.charAt(pos) == ' ')) {\n pos--;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setzt die Absatzmenge des Tagesgerichtes. | public void setMenge(int menge)
{
this.menge=menge;
} | [
"private void setTrAv() {\r\n this.AvTrActuel = getMesAventuriers().get(index);\r\n jeu.setTrActuel(getAvTrActuel());\r\n }",
"public void settMinimalUtskrift() {\n\tminimalUtskrift = true;\n }",
"public void abmelden() {\r\n zeichenfenster.grafikEntfernen(this);\r\n }",
"@Overri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the business logic if need. | @Override
public <T> List<T> select(T entity, int start, int size) {
return getSuidRich().select(entity, start, size);
} | [
"protected void logic()\n {\n }",
"@Override\n public void logic() {\n }",
"public void logic() {\n\t\tif (currentSubModule != null) {\n\t\t\tcurrentSubModule.logic();\n\t\t}\n\t}",
"public void doLogic() {\r\n\t}",
"@Override\r\n\tpublic void doBusiness(Context mContext) {\n\r\n\t}",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method responsible for checking collision horizontally | public void moveX() {
// Moving right
if (xMove == 0) {
// variable for the blocks
int tx = (int) (x + xMove + bounds.width) / Tile.TILEWIDTH;
// calling the collisionWithTile to check if collision occurred
if (!collisionWithTile(tx, (int) (y) / Tile.TILEHEIGHT)
&& !collisionWithTile(tx,... | [
"private boolean colisaoHorizontal(GameObject obj1, GameObject obj2){\n if (obj2.y >= obj1.y + obj1.height){\n return false;\n }\n if (obj1.y >= obj2.y + obj2.height){\n return false;\n }\n return true;\n }",
"public boolean detectCollision(Hitbox h) {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of variables declaration//GENEND:variables | private void setModel(DefaultTableModel grid) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
} | [
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initVariable() {\n\t\n\t}",
"public void mo17751g() {\n }",
"public void mo1857d() {\n }",
"public static void Q22()\r\n\t{\r\n\t}",
"public void mo28221a() {\n }",
"public void mo3914b() {\n }",
"protecte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__214" $ANTLR start "T__215" | public final void mT__215() throws RecognitionException {
try {
int _type = T__215;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalStubbrLang.g:212:8: ( 'throw' )
// InternalStubbrLang.g:212:10: 'throw'
{
match("throw");
... | [
"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"
]
]
}
} |
Check if this object is linked to any other Displayable objects. | public boolean isLinked() {
if (null == hs_linked) return false;
return !hs_linked.isEmpty();
} | [
"public boolean isDisplayable();",
"boolean isLinkable();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DisplayType)) {\n return false;\n }\n DisplayType other = (DisplayType) object;\n if ((this.displayTypeID == null && other.displayTy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
refresh resource names, jump labels | @Override
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,
int offset)
{
getAllCurrentProjectData();
// put into fields as we want to access them in other methods too
this.document = viewer.getDocument();
this.offset = offset;
// initialize the list of completion proposals
... | [
"public void updateResources( ) {\r\n updateResources(false);\r\n }",
"public void reload() {\n dispose( true );\n getResources();\n }",
"public void refresh() {\n allSkills.refreshAllVals();\n allAbilities.refreshAllAbilities(); //abi d'abord car resource depend de abi mais apres... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Historique view model. | public HistoriqueViewModel() {
mText = new MutableLiveData<>();
mText.setValue("Dates importantes");
} | [
"public HistorySO() {}",
"public BaseDeDAtosHistorialDeVentas() {\n initComponents();\n }",
"public ModelView() {\n this(DSL.name(\"model_view\"), null);\n }",
"public ActividadModelo() {\n }",
"public ContenedorregistrovehiculoviewmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
region Offline product adapter listener | private void setAdapterListener() {
spProdTYpe.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
//((TextView) parent.getChildAt(0)).setTextSize(10);
... | [
"public interface OnProductUpdateListener {\n void onProductUpdate(Product product);\n }",
"@Override\r\n\tpublic void onAppDownloaded() {\n\t\t\r\n\t}",
"@Override\n public void onOfferwallAvailable(boolean isAvailable) {\n }",
"public void onProductConnectivityChanged(boolean... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The getP1Card method gets the top Card and returns the jpg string | public String getP1Card() throws IndexOutOfBoundsException
{
Card card = player1.topCard();
String str = card.toString();
return str;
} | [
"String getIdCardBackPicture();",
"public MasterDeck getPile1();",
"public BufferedImage getImage(int cardNum){\r\n BufferedImage img; \r\n img = null;\r\n if((cardNum >= 1) && (cardNum <= 54)){\r\n img = CARD_IMAGES[cardNum - 1];\r\n } else {\r\n System.out.pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the random movement timer | public static void setRandomMovementTimer(Timer newTimer) {
randomMovementTimer = newTimer;
} | [
"public void toggleRandomTime(){\n\t\tif(useRandomTime)\n\t\t\tuseRandomTime = false;\n\t\telse{\n\t\t\tuseRandomTime = true;\n\t\t\t//refireInterval = minimumRandomInterval + (int)(Math.random()*maximumRandomInterval);\n\t\t\ttimer.setEventTime(minimumRandomInterval + (int)(Math.random()*maximumRandomInterval));\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fun Dialog to go back | private void createDialog() {
AlertDialog.Builder alerDlg = new AlertDialog.Builder( this );
alerDlg.setMessage( "Are you sure want to exit ?" );
alerDlg.setCancelable( false );
// positive click
alerDlg.setPositiveButton( "Yes", new DialogInterface.OnClickListener() {
... | [
"@Override\r\n public void onBackPressed() {\r\n showConfirmDialog();\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n setResult(RESULT_BACK);\n finish();\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
graphic stuff / draw pannel | @Override
public void paintComponent(Graphics g) {
super.paintComponent(g);
if (!game_over) { // if game is still running display the game
doDrawing(g);
} else { // if game is not running, display the game, game over screen and stop main loop
System.... | [
"public drawings() {\n initComponents();\n jPanel1.setBackground(Color.black);\n this.setResizable(false);\n \n }",
"public void draw() {\n setVisible(true) ;\n }",
"public void draw() {\n\t \n\t\t\n\t fill(235);\n\t rect(0,0,offset,y_dim);\n\n\t if (show_image)\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the category of the module (e.g. raw data processing, peak picking etc.). A menu item for this module will be created according to the category. | @NotNull
public MZmineModuleCategory getModuleCategory(); | [
"public String getCategory() {\r\n\t\treturn strCategory;\r\n\t}",
"public String getCategoryName() {\n return category;\n }",
"public String getCategory() {\n\t\treturn this.getString(\"category\");\n\t}",
"public char getCategory() \n\t{\n\t\treturn category;\n\t}",
"public String getCategory(){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the the single NameValueReferable object in the map if there is only one object contained in the map. | T getOne(); | [
"@Override\n @SuppressWarnings(\"unchecked\")\n public <T> T getSingleValue(MetadataKey<T> key) {\n checkArgument(!key.canRepeat(), \"key must be single valued\");\n Object value = map.get(key);\n return (value != null) ? (T) value : null;\n }",
"public Object get(Object key) {\n Re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is checking if the list is empty. | private boolean isEmpty() {
return size == 0;
} | [
"boolean isEmpty(){\r\n\t\treturn list.getSize() == 0;\r\n\t}",
"public boolean isEmpty(){\r\n return list.isEmpty();\r\n }",
"public boolean isEmpty(){ \r\n return list.isEmpty();\r\n }",
"public boolean isEmpty(){\n return list.isEmpty();\n\n }",
"public boolean isEmp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter get the pixel height of the game map, this is done by returnign the tilemap multiplied by the tile size. | public int getPixelHeight() {
return this.getHeight() * TileType.TILE_SIZE;
} | [
"public static int getTileHeight(){\n\t\treturn tileHeight;\n\t}",
"public int getMapHeight() {\n\t\treturn mapTiles[0].length;\n\t}",
"public double getTileHeight(){\n\t\treturn this.height;\n\t}",
"public int getTileHeight() {\n return this.tileHeight;\n }",
"public int getMapHeight() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Controlla che l'inserimento di un rateo sia eseguibile. | protected abstract boolean gestisciInserisciRateo(List<AzioneConsentita> listaAzioniConsentite, ElementoPrimaNotaIntegrata instance); | [
"@Override\n\tpublic void setRate() {\n\t\t\n\t}",
"public void setRate(int rate);",
"public void setRate(double rate) {\n this.rate = rate;\n }",
"default void setRate(float rate) {}",
"SingleRate( double rate ) {\n\t\tmyRate = rate;\n\t}",
"@Override\r\n\tpublic\r\n\tvoid getRate() {\n\t\trate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the first position | Position<E> first(); | [
"public char first() {\n/* 816 */ return internalSetIndex(this.beginIndex);\n/* */ }",
"@Override\n public char first()\n {\n pos = begin;\n return current();\n }",
"int startIndex();",
"public int first();",
"public int firstIndexOf(E e);",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show the RPC error message to the user | public void onFailure(Throwable caught) {
System.out.println("LogPrinter: Failed to print the String.");
} | [
"void showErrorMsg(String error);",
"public void displayLastError();",
"@Override\n public void showErrorMsg() {\n }",
"void showError(ApplicationError error);",
"void displayConnectionError();",
"void showError(int errorType, String error);",
"public void showErrorTextAPI(String result){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts the translation for every annotation without translation where a translation can be found in the "translation" table | public void updateTranslations() {
connect();
// Now: Remove HTML tags, stem (and load entities)
Vector<QueryParam> qparam_and = new Vector<QueryParam>();
qparam_and.add(new QueryParam(Sentence_DB.language_attr, Language.EN.getLanguage(), QueryOperator.NOT_LIKE));
qparam_and.add(new QueryParam(Sentence_DB.... | [
"public boolean InsertTranslation (String word, String translation) {\n\t\tboolean success = false;\n\t\ttry {\n\t\t\tstatement.executeUpdate(\n\t\t\t\t\t\"UPDATE Words \"\n\t\t\t\t\t+ \"SET Translation = '\" + translation.replace('\\'', '\"') + \"' \"\n\t\t\t\t\t+ \"WHERE Word = '\" + word + \"';\");\n\t\t\ttotalC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called from the host when the screen is turned on. The provided view should return to a running state when this is called. For example, a noninteractive component that provides animated visuals should resume playback of those animations. | protected abstract void onScreenTurnedOn(); | [
"public static void onScreen(View view) {\n ObjectAnimator onScreenAnimation = ObjectAnimator.ofFloat(view, \"translationX\", 10);\n onScreenAnimation.setDuration(250);\n onScreenAnimation.start();\n }",
"public boolean onStart(View view) {\n userTurn = random.nextBoolean();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | private static int m1758a(int i, int i2, boolean z, int i3) {
if (i > 99 || (z && i3 >= 3)) {
return i2 + 3;
}
if (i > 9 || (z && i3 >= 2)) {
return i2 + 2;
}
if (z || i > 0) {
return i2 + 1;
}
return 0;
} | [
"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"
]
]
}
} |
Elements needed for the dialog: | private static Dialog parseDialog(XmlReader.Element dialogNode) {
XmlReader.Element textNode = dialogNode.getChildByName("Text");
String text = textNode.getText();
//optional elements:
XmlReader.Element nameNode = dialogNode.getChildByName("Name");
String name = null;
if... | [
"public confirmDialogBox() {\n\t\t\n\t\tabsolutePanel = new AbsolutePanel();\n\t\tabsolutePanel.setStyleName(\"vuhidDialogBox\");\n\t\tsetWidget(absolutePanel);\n\t\tabsolutePanel.setSize(\"363px\", \"197px\");\n\t\t\n\t\tmessageArea = new Label(\"Sample Message\");\n\t\tabsolutePanel.add(messageArea, 32, 45);\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the conditions property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the conditions property. For example, to add a new item, do as ... | public List<Condition> getConditions() {
if (conditions == null) {
conditions = new ArrayList<Condition>();
}
return this.conditions;
} | [
"public java.util.List<Petrolink.PetroVaultHD.Model.Resource.Condition> getConditions() {\n return Conditions;\n }",
"public Set<String> getConditions() {\n return _conditions;\n }",
"private List<Expression> getConditions() {\n\t\treturn conditions;\n\t}",
"@JsonProperty(\"conditions\")\n publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XVariableDeclaration__Group_2_0__0__Impl" $ANTLR start "rule__XVariableDeclaration__Group_2_0_0__0" InternalProgramDsl.g:10468:1: rule__XVariableDeclaration__Group_2_0_0__0 : rule__XVariableDeclaration__Group_2_0_0__0__Impl rule__XVariableDeclaration__Group_2_0_0__1 ; | public final void rule__XVariableDeclaration__Group_2_0_0__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalProgramDsl.g:10472:1: ( rule__XVariableDeclaration__Group_2_0_0__0__Impl rule__XVariableDeclaration__Group_2_0_0__1 )
// Int... | [
"public final void rule__XVariableDeclaration__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:11963:1: ( rule__XVariableDeclaration__Group_2_0__0__Impl )\n // InternalAle.g:11964:2: rule__XVariableDecla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method corresponds to the database table author | int deleteByExample(AuthorExample example) throws SQLException; | [
"public AccountName getAuthor() {\n return author;\n }",
"public int getAuthor(){\r\n\t\treturn author;\r\n\t}",
"public String getAuthor()\r\n\t{\r\n\t\treturn(\"Written by Ciara Power\");\r\n\t}",
"public int getAuthorID() \r\n\t{\n\t\treturn authorID;\r\n\t}",
"public String getAuthor(){\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fills the board with the empty string so we start with a clean board. | public static void fillBoard()
{
for(int i = 0; i < _boardSize; i++)
{
for(int j = 0; j < _boardSize; j++)
{
_boardArray[i][j] = ' '; //fill with empty char
}
}
} | [
"public void clearBoard()\r\n\t{\r\n\t\tboard = new String[ROWS][COLUMNS];\r\n\t\tfor(int row = 0; row < ROWS; row++)\r\n\t\t{\r\n\t\t\tfor(int col = 0; col < COLUMNS; col++)\r\n\t\t\t{\r\n\t\t\t\tboard[row][col] = EMPTY_SYMBOL;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void fillBoard() {\n for (int i = 0; i < ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To suspend the client thread until the request completes (or is canceled). | public void waitForCompletion() {
synchronized (lock) {
while (!fRequestCompleted)
try {
lock.wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
} | [
"public void requestWait();",
"@Override\n public HttpServerRequest resume() {\n return null;\n }",
"public Response waitSynchronous(Request request) {\n\t\tAsyncToSync lock = new AsyncToSync();\n\t\tsynchronizer.put(lock.getToken(), lock);\n\t\ttry {\n\n\t\t\trequest.setRequestID(lock.getToken());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | public void doResolveAll(String str, Promise<List<T>> promise) throws Exception {
doResolveAllRec(str, promise, 0, null);
} | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@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}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moves the iterator to the next element | public E next() throws OutOfBounds
{
if(!hasNext())
throw new OutOfBounds("next: no next element.");
else
{
position++;
return (E) list[position];
}
} | [
"public void advanceIterator() {\n\t\tif (iterator == null) {\n\t\t\tthrow new NullPointerException(\"advanceIterator: Iterator is off end. Cannot advance!\\n\");\n\t\t}\n\t\titerator = iterator.next;\n\t}",
"public void moveNext(){\n if(i+1<size)\n i++;\n getData(i);\n }",
"void mov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void driver() {
System.out.print("driver benz");
} | [
"@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"
]
]
}
} |
/ access modifiers changed from: private | public void setHitFirstDispatchTime(long hitId, long firstDispatchTime) {
SQLiteDatabase db = getWritableDatabase("Error opening database for getNumStoredHits.");
if (db != null) {
ContentValues cv = new ContentValues();
cv.put(HIT_FIRST_DISPATCH_TIME, Long.valueOf(firstDispatchT... | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private InternalReflect() {\n\t\t\t// do nothing\n\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Realiza una clasificacion utilizando una estrategia de particionado determinada | public static ArrayList<Double> validacion(EstrategiaParticionado part, Datos datos,
Clasificador clas) {
ArrayList<Double> errores = new ArrayList<>();
//Creamos las particiones siguiendo la estrategia llamando a datos.creaParticiones
ArrayList<Particion> particiones = part... | [
"public void agregarClasificador(){\r\n\t\t//si no selecciono ningun valor en el combo\r\n \r\n\t\tif(com_anio.getValue()==null){\r\n\t\t\tutilitario.agregarMensajeInfo(\"Debe seleccionar un Año\", \"\");\r\n\t\t\treturn;\r\n\t\t}\r\n \r\n\t\t//Si la tabla esta vacia\r\n\t\tif(tab_prog... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the list of preemptive outgoing transitions from this state. | public List preemptiveTransitionList() {
if (_transitionListVersion != workspace().getVersion()) {
_updateTransitionLists();
}
return _preemptiveTransitionList;
} | [
"public List<Transition> getOutgoingTransitions(State s){\n\t\tList<Transition> outgoingTransitions = new ArrayList<Transition>();\n\t\tfor(Transition t:transitions){\n\t\t\tif(t.getFrom().equals(s.getName())){\n System.out.println(s.getName()+\"\\t\"+t.getFrom());\n\t\t\t\toutgoingTransitions.add(t)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: packageprivate | public void initFrom(ConstraintWidgetContainer baseLayout, ConstraintSet start, ConstraintSet end) {
this.mStart = start;
this.mEnd = end;
this.mLayoutStart = new ConstraintWidgetContainer();
this.mLayoutEnd = new ConstraintWidgetContainer();
this.mLayoutStart... | [
"protected void method_5557() {}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"public void mo28221a() {\n }",
"protected void mo4791d() {\n }",
"protected void method_2117() {\n }",
"@Override\r\n public void publicando() {\n }",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the most recent and most universal search using combined trigrams, other methods for search above are here for legacy reasons, in case this search fail for some reason. (To be adapted for metadata search as well.) | public Set<String> collectDocumentIdsForTrigramsOpt( Collection<String> uniqueTrigramsFromWord ) {
HashSet<String> resultSet = new HashSet<String>();
List<TrigramUsage> trigramUsage = new ArrayList<>( uniqueTrigramsFromWord.size() );
List<TrigramOccurrence> sortedTrigramOccurrences = getTri... | [
"public List<Result> phraseQuery(String txtQuery)\n {\n correctedTerms = new HashMap<>();\n String[] query = txtQuery.split(splitPattern);\n ArrayList<Result> results = new ArrayList<>();\n ArrayList<Doc> matchingDocs = new ArrayList<>();\n\n int i = 0;\n do{\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads the bibliographic data stored by this server and returns only the entry data in bean format | public List<BibEntryBean> getEntries() {
List<BibEntryBean> entries = new LinkedList<>();
for (BibEntry entry : parserResult.getDatabase().getEntries()) {
entries.add(new BibEntryBean(entry));
}
return entries;
} | [
"public BibInfoBean retrieveFromDocStore(HashMap<String, String> dataMap) throws Exception;",
"public void read() {\n\t\tConnection con = null;\n\t\tStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tString dbUrl = \"jdbc:mysql://localhost:3306/bridgelabz?useSSL=false\";\n\t\tString userNM = \"root\";\n\t\tStr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Connects the list view adapter to the context | public ScheduleListAdapter(Context context, int resource, List<Schedule> schedules) {
super(context, resource, schedules);
mContext = context;
mResourceId = resource;
mScheduleList = schedules;
} | [
"public ItemListBaseAdapter(Activity context, ListController results)\n\t{\n\t\tlist_details = results;\n\t\tl_Inflater = LayoutInflater.from(context);\n\t\tthis.context=context;\t\n\t}",
"public ListActionAdapter(Context context) {\n this.mContext = context;\n }",
"public MessageListAdapter(Context c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs a deep copy on other. | public CAN_COMMIT_result(CAN_COMMIT_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
} | [
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private void copyFrom(final _BeanImpl other, final boolean immutably) {\r\n if (other == null) {\r\n throw new IllegalArgumentException(\"other cannot be null\");\r\n }\r\n if (other.getClass() != getClass()) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ADMIN dodaj film koji jos nije na repertoaru get metod | @RequestMapping(value = "/add2", method = RequestMethod.GET)
public String addFilmUpcoming(ModelMap model) {
model.put("film1", new Film());
return "addFilm2";
} | [
"List<Seance> retourneSeanceFiltreParFilm(String numeroFilm);",
"@Security.Authenticated(SecuredUser.class)\n public Result filtra(String filtro) {\n try {\n Query<Artigo> query = Ebean.createQuery(Artigo.class, \"find artigo where (titulo like :titulo)\");\n query.setParameter(\"t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | @Override // p2189io.reactivex.Observable
public void subscribeActual(AbstractC32175x<? super T> xVar) {
Scheduler yVar = this.f109597b;
if (yVar instanceof TrampolineScheduler) {
this.f109181a.subscribe(xVar);
return;
}
this.f109181a.subscribe(new RunnableC31... | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@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}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify if it is on right direction | @Override
public boolean isRecognized(ArrayList<Point> pointList) {
if(pointList.size()<MIN_NUMBER_POINT){
return false;
}
int previousX=pointList.get(0).x;
int i;
for(i=0;i<pointList.size() && i<10;++i){
int tmp=pointList.get(i).x;
if(previousX>tmp){
return false;
}
previousX=tmp;
}
... | [
"protected void checkDirection(){\n\t\t// Richtung in den States wiederspiegeln\n\t\tif(dx==0 && dy==0) return;\n\t\tint oldDirection\t=\tdirection;\n\t\tif(dy>0)\t// nach unten\n\t\t\tdirection\t=\t0;\n\t\telse if(dx<0)\t\t// nach links\n\t\t\tdirection\t=\t1;\n\t\telse if(dx>0)\t\t// nach rechts\n\t\t\tdirection\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the console Logger for this JavaPlugin. | public final Logger log() {
return log;
} | [
"public static Logger getLogger() {\n if (instance == null) {\n StackTraceElement[] ste = new RuntimeException().getStackTrace();\n String className = ste[1].getClassName().substring(ste[1].getClassName().lastIndexOf(\".\") + 1);\n Plugin plugin = Spout.getEngine().getPluginM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if all scheduled players have completed assessment. | public static boolean sessionComplete(String sessionID){
ArrayList<String> players = new ArrayList<String>();
DatabaseCursor cursor=null;
try {
cursor = dbHandler.rawQuery("select * from player where session_id='" + sessionID + "'");
while (cursor.next()) {
players.add(String.valueOf(cursor.... | [
"private boolean isCompleted() {\n\t\tint currentNoOfPlayers = players.size();\n\t\tif(currentNoOfPlayers != intialNoOfPlayers)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean raceFinished() {\n return finished == players.size();\n }",
"public boolean isCompleted() {\n int stepCount = s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
final Random rand = new Random(); final int x = 10; | public void generateData() {
for (int i = 0; i < rank; i++) {
for (int j = 0; j < rank; j++) {
data[i][j] = 1 / (1 + i + j);
}
}
} | [
"public static int rand(){\n return newInstance().nextInt();\n }",
"private int getX()\r\n {\r\n int x = 0;\r\n \r\n Random rand1 = new Random();\r\n x = rand1.nextInt(10) + 0;\r\n \r\n return x;\r\n }",
"public static void doSomething(){\n final i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
0 1 2 3 4 | public static void main(String[] args) {
int a[]={10,20,30,40,50}; //integer arrays
char x[]={'H','e','l','l','o'}; //character array
for (int i=0; i<5;i++){
System.out.println(a[i]);
}
for (int i=0; i<5;i++){
System.out.println(x[i]);
}
... | [
"public int VersionFour(int n) {i = 1, 1+2, 1+2+3, ......\n //\n }",
"void beginIndices(int count);",
"public static void main(String[] args) {\n\nfor(int i=0;i<=16;i=i+4) {\n\tif(i==0)\n\tSystem.out.println(1);\n\telse\n\t\tSystem.out.println(i);\n\t\n\t}\n\n}",
"@Override\n public Integer count... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required .nwkStatus_t status = 3; | public nwkmgrPb.nwkStatus_t getStatus() {
return status_;
} | [
"int get_status();",
"Chihu.Status getStatus();",
"sifnode.oracle.v1.Types.StatusOrBuilder getStatusOrBuilder();",
"public void setWstatus(Integer wstatus) {\n this.wstatus = wstatus;\n }",
"com.bsnbase.sdk.util.pb.XchainOuterClass.DposStatus getStatus();",
"com.yunhui.job.common.proto.RequestPr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional float b = 2; | public Builder clearB() {
b_ = 0F;
onChanged();
return this;
} | [
"void mo11404bf(float f);",
"public void mo92799a(float f) {\n }",
"void mo22696a(float f);",
"float ftom(float value);",
"public void b(float f2) {\r\n this.q = f2;\r\n }",
"void mo9187a(float f);",
"boolean mo96471b(float f);",
"void mo96467a(float f, float f2);",
"void mo2843... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets flag indicating whether the serverconnection is connected. | private void setIsConnected(boolean flag)
{
this.connected = flag;
} | [
"private void setConnection(boolean connectionState) {\n this.connected = connectionState;\n if (connectionState) {\n notifyListener(ConnectionEvent.CONNECTION_STATE, 1);\n }else {\n notifyListener(ConnectionEvent.CONNECTION_STATE, 0);\n }\n }",
"private synchr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/int[] selections = urlList.getSelectionIndices(); String outText = ""; for (int i = 0; i < selections.length; i++) outText += selections[i] + " "; System.out.println("You selected: " + outText); | public void widgetSelected(SelectionEvent event) {
view.setURL(sEngines.getValue(urlList.getFocusIndex()).getUrl());
pageLoaded=false;
attempt = 1;
} | [
"ArrayList<AbstractPageViewComponent> getSelectedPageText();",
"public String getSelection();",
"List<String> getSelection();",
"public int [] getSelectionIndices () {\n\tcheckWidget ();\n\tint i = -1, j = 0, count = OS.SendMessage (handle, OS.LVM_GETSELECTEDCOUNT, 0, 0);\n\tint [] result = new int [count];\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void disconnect() throws IOException {
} | [
"@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 "Device" $ANTLR start "Exists" | public final void mExists() throws RecognitionException {
try {
int _type = Exists;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalResoluteLexer.g:211:8: ( ( 'E' | 'e' ) ( 'X' | 'x' ) ( 'I' | 'i' ) ( 'S' | 's' ) ( 'T' | 't' ) ( 'S' | 's' ) )
// InternalResoluteL... | [
"@Override\n public Void visitExists(Exists exists, ElmContext context) {\n output.append(\"exists (\");\n visitElement(exists.getOperand(), context);\n exitClause();\n newLine();\n output.append(\")\");\n return null;\n }",
"public Boolean TokenExist(String token);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pattern pattern = Pattern.compile("(?<=select).?(?=from)",Pattern.CASE_INSENSITIVE); sql = sql.replace(matcher.group(0), " count(1) "); | public static String parseCountSql(String sql) {
Pattern pattern = Pattern.compile("select .*? from", Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(sql);
if (matcher.find()) {
Pattern groupPattern = Pattern.compile("(?=sum|avg|count|distinct|max|min|union)", Pattern.CASE_INSENSITIVE);
... | [
"long findCount(String str, String sql);",
"public static String createResultCountQuery(String query) {\r\n String resultCountQueryString = null;\r\n\r\n int select = query.toLowerCase().indexOf(\"select\");\r\n int from = query.toLowerCase().indexOf(\"from\");\r\n if (select == -1 || ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleCampoRegistro" $ANTLR start "entryRuleTipo" ../vary.pseudocodigo.dsl.cpp.ui/srcgen/vary/pseudocodigo/dsl/cpp/ui/contentassist/antlr/internal/InternalVaryGrammar.g:452:1: entryRuleTipo : ruleTipo EOF ; | public final void entryRuleTipo() throws RecognitionException {
try {
// ../vary.pseudocodigo.dsl.cpp.ui/src-gen/vary/pseudocodigo/dsl/cpp/ui/contentassist/antlr/internal/InternalVaryGrammar.g:453:1: ( ruleTipo EOF )
// ../vary.pseudocodigo.dsl.cpp.ui/src-gen/vary/pseudocodigo/dsl/cpp/ui... | [
"public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // InternalMyDsl.g:100:45: (iv_ruleType= ruleType EOF )\n // InternalMyDsl.g:101:2: iv_ruleType= ruleType EOF\n {\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) {
switch (item.getItemId()) {
case android.R.id.home:
drawerLayout.openDrawer(GravityCompat.START);
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"
]
]
}
} |
map<string, uint32> package = 8; | public java.util.Map<java.lang.String, java.lang.Integer> getPackageMap() {
return internalGetPackage().getMap();
} | [
"private static int pack2suppkey( long pack ) { return (int)(pack>>32); }",
"public abstract Map<C0451h, C0382di> mo4463a();",
"public String map(int val)\n {\n return GROUPS[val]; //BANKS_SHORT[val];\n }",
"Map<String, C0082e> mo43b(C0159n c0159n, C0916s c0916... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 27 / 94 covered goals: Goal 1. edu.osu.cs362.CalDay.setMonth(I)V: rootBranch Goal 2. edu.osu.cs362.CalDay.setYear(I)V: rootBranch Goal 3. edu.osu.cs362.CalDay.setDay(I)V: rootBranch Goal 4. edu.osu.cs362.CalDay.(Ljava/util/GregorianCalendar;)V: rootBranch Goal 5. edu.osu.cs362.CalDay.getSizeAppts()I: ... | @Test(timeout = 4000)
public void test27() throws Throwable {
MockGregorianCalendar mockGregorianCalendar0 = new MockGregorianCalendar();
CalDay calDay0 = new CalDay((GregorianCalendar) mockGregorianCalendar0);
calDay0.getSizeAppts();
assertEquals(1, calDay0.getMonth());
assertEquals(1... | [
"public static void main(String[] args)\n {\n int correct = 0;\n //Total is out of 38\n final int TOTAL = 38;\n //Month strings for testing getMonthAsString() and other tests\n String[] months =\n {\"January\", \"February\", \"March\", \"April\", \"May\",\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |