query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Specify the longest URI of any XML namespace. Protects against overflow attacks. | public void set_xmlmaxnamespaceurilength(Long xmlmaxnamespaceurilength) throws Exception{
this.xmlmaxnamespaceurilength = xmlmaxnamespaceurilength;
} | [
"public static String getURI() {return StringUtils.stripEnd(NS, \"#\");}",
"public String getNameSpaceURI() {\r\n/* 514 */ return this._nsURI;\r\n/* */ }",
"public String getNameSpaceUri ()\n\t{\n\t\treturn nsUri;\n\t}",
"public String getNameSpaceURI() {\r\n/* 208 */ return this._nsURI;\r\n/* ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Toast.makeText(context, "push count", Toast.LENGTH_LONG).show(); | @Override
public void onReceive(Context context, Intent intent) {
InterfaceListener.getOnNotificationReceived();
} | [
"public void showToastMessage(View view) {\n Toast.makeText(this, \"Count is :\"+count, Toast.LENGTH_SHORT).show();\n }",
"private void showToast(int msg){\n Toast.makeText(getApplicationContext(),msg,Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View view) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the ending height. | int getHeight2(); | [
"public float getFinalHeight() {\n return mEndMotionPath.mHeight;\n }",
"private double getHeight() {\n\t\t\treturn end.getY() - start.getY();\n\t\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public float getHeight() {\n\t\t\treturn bottom - top;\n\t\t}",
"public final double getHei... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public User fUser(int uid) {
return userDao.findUser(uid);
} | [
"@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"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table bmi_range_mt | int deleteByPrimaryKey(Integer bmiRangeId); | [
"public ValueRange getRange() {\n return range;\n }",
"public List<S4ColumenGt22> fetchRangeOfColumn_18(String lowerInclusive, String upperInclusive) {\n return fetchRange(TS4ColumenGt22.S4_COLUMEN_GT22.COLUMN_18, lowerInclusive, upperInclusive);\n }",
"@VTID(16)\r\n excel.Range getRange();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Condition 2 to be checked | static boolean isHeapHelper(Tree root){
if(root.left==null && root.right==null)
return true;
if(root.left==null)
return root.key >= root.right.key;
if(root.right==null)
return root.key >= root.left.key;
if(root.key >= root.left.key && root.key >= root.... | [
"protected abstract boolean condition();",
"private Boolean isGoal2() {\n\t\tif (!this.isGoal1()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (this.elem.get(0).get(1) != 2)\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"private boolean ruleMER_PATH_1_GOAL_2_COMPONENT_txtOp_5_cond_2() {\r\n return (module_entit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PendingIntent pi = PendingIntent.getActivity(context, 0, new Intent(context, SignUp.class), 0); | public static void sendText(String number, String text){
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage( number, null, text, null, null);
} | [
"public void registrarse(){\n Intent i = new Intent(this, SignUpActivity.class);\n startActivity(i);\n\n }",
"public void openUserSignupActivity(View v) {\n Intent intent = new Intent(getApplicationContext(), UserSignupActivity.class);\n startActivity(intent);\n }",
"@Overri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads a user defined unsigned integer. | public void getUnsignedInt(int i) {
buffer.get(i & 0xFFFFFF);
} | [
"public final long readUnsignedInt() throws IOException { \r\n long result;\r\n long l3= (long)read();\r\n long l2= (long)read();\r\n long l1= (long)read();\r\n long l0= (long)read();\r\n result = (l3<<24)+(l2<<16)+(l1<<8)+l0;\r\n return result;\r\n }",
"int ReadUnsignedByte();",
"public f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
void eat() {
System.out.println("Cow eats grass");
a=10;
System.out.println(a);
} | [
"@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"
]
]
}
} |
Plain text description of the cause of the error. | @NotNull
@JsonProperty("message")
public String getMessage(); | [
"@Override\n\tpublic String getMessage() {\n\t\treturn \"InSufficient exception occured\";\n\t}",
"public String getMessage() {\n return errorDetail.getMessage();\n }",
"@Override\r\n\tpublic String getMessage() {\r\n\t\treturn errMsg;\r\n\t}",
"@Override\n public String getMessage() {\n String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: d | public final C4804i m21267d() {
if (this.f17524a == this.f17525b) {
return C4804i.m21260e();
}
return new C4804i(this.f17525b, this.f17524a, true);
} | [
"private void d() {\n }",
"public void mo1857d() {\n }",
"public void setD(String d) {\n this.d = d;\n }",
"public boolean d() {\n }",
"protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }",
"protected void mo4791d() {\n }",
"@Override\n\tpublic voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if Z and Time dimensions should be swapped in a given dataset. If it does then ask user if he wants to swap them. | public static void askToSwapTimeAndZDimensions(ImageJ ij, Dataset dataset) {
int zIdx = dataset.dimensionIndex(Axes.Z);
int timeIdx = dataset.dimensionIndex(Axes.TIME);
long timeDim = dataset.dimension(timeIdx);
long zDim = dataset.dimension(zIdx);
if (timeDim < zDim) {
... | [
"private void analyzeSwap() {\r\n \t\tString[] outData = data.getValuesFor(\"po\");\r\n \t\tif (outData == null) {\r\n \t\t\toutData = data.getValuesFor(\"so\");\r\n \t\t}\r\n \t\tassert outData != null;\r\n \r\n \t\tString[] inData = data.getValuesFor(\"pi\");\r\n \t\tif (inData == null) {\r\n \t\t\tinData = data.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves a WebDAV property from an element that is a direct D:prop. | public static WebDAVProperty getProperty(final Element element) {
final WebDAVPropertyValue webdavPropertyValue; //we'll determine the value of the WebDAV property
if(element.getChildNodes().getLength() > 0) { //if there are child nodes
if(getChildNodeNot(element, Node.TEXT_NODE) == null) { //if all child nodes ... | [
"SimplePropertyType getProperty();",
"Object getProperty(String documentReference, String propertyName);",
"public String get(String property);",
"public abstract Object getProperty(String property);",
"Object getProperty(String documentReference, String className, int objectNumber, String propertyName);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string opneId = 1; optional string opneId = 1; | boolean hasOpneId(); | [
"public int GetOperationID (String opName);",
"public String assing(Long idDocumento, Long idCliente);",
"public void setId_Orden(int Id_Orden) \r\n {\r\n this.Id_Orden = Id_Orden;\r\n }",
"public int getP_idOrden(){\r\n return localP_idOrden;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is called when other function need to know the current dvd's name | public String getName() {
return name;
} | [
"public String getDname() {\r\n return dname;\r\n }",
"String getVName();",
"String getDSUnboundName(String dsName);",
"@DISPID(64388) //= 0xfb84. The runtime will prefer the VTID if present\n @VTID(15)\n String name();",
"public java.lang.String getDName() {\n java.lang.Object ref = dNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new packet event | public PacketEvent(BasePacket packet, @NonNull ByteArrayDataOutput bytes) {
this.packet = packet;
this.unencrypted = bytes;
} | [
"public Event createEvent(byte[] marshalledBytes) throws IOException {\t\n\t\tint event = getType(marshalledBytes);\n\t\treturn eventProtocolMap.get(event).getEventObject(marshalledBytes);\n\t}",
"private void createEvent() {\r\n Event event = new Event();\r\n updateEventValues(event);\r\n Da... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns an Object streetAddress of type StreetAddress. | public StreetAddress getStreetAddress() {
return streetAddress;
} | [
"public String getStreetAddress() {\n return streetAddress;\n }",
"public String getStreetAddress()\n\t{\n\t\treturn streetAddress;\n\t}",
"public Address getFromAddress();",
"public String getStreetAddress()\n {\n return (String)get(STREET_ADDRESS);\n }",
"public Address toEntity() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
obs: endIndex is inclusive! obs.: if endIndex == startIndex1, creates an empty list | public SubLazyList(List<E> list, int startIndex, int endIndex) {
if (startIndex < 0 || startIndex >= list.size()) {
throw new IndexOutOfBoundsException("start index:" + startIndex + " size:" + list.size());
}
if (endIndex < startIndex-1) {
throw new IllegalArgumentException("end index " + endIndex + " is mo... | [
"public IList<E> subList(int startIndex, int endIndex);",
"@Override\n\tpublic MyList<E> subList(int start, int end) {\n\t\treturn null;\n\t}",
"public MagicList<E> subList(int startIndex, int endIndex) {\n if (startIndex <0) {\n throw new IllegalArgumentException(\n \"start... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is called immediately before a surface is being destroyed. After returning from this call, you should no longer try to access this surface. If you have a rendering thread that directly accesses the surface, you must ensure that thread is no longer touching the Surface before returning from this function. | @Override
public void surfaceDestroyed(SurfaceHolder holder) {
if (camera!=null) {
camera.release();
camera=null;
}
} | [
"@Override\n protected void onSurfaceDestroyed() {\n super.onSurfaceDestroyed();\n }",
"public void releaseSurface() {\n this.surface.release();\n }",
"public void surfaceDestroyed(SurfaceHolder holder) {\n Log.i(TAG, \"surfaceDestroyed\");\n releaseCamera();\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Control will come back to this place when transaction completed(for both fail and success) | @Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == 100) {
if (resultCode == getActivity().RESULT_OK) {
//success
if (data != null) {
/**
* Here, data.getStringExtra("payu_response") -... | [
"public void completeTransaction() {\r\n endTransaction();\r\n startTransaction();\r\n }",
"public synchronized void endTransaction() {\n log.trace(\"Entering endTransaction\");\n if (transactionStatus != null && !transactionStatus.isCompleted()) {\n if (transactionStatus.isRollbackOnl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fix this opne later getter and setter | public String getRoomType(){
return roomType;
} | [
"@Override\n\tpublic void fixup();",
"protected class_151 method_464() {\n try {\n class_151 var1 = (class_151)super.clone();\n var1.field_181 = new class_496[this.field_181.length];\n var1.field_184 = null;\n var1.field_185 = null;\n var1.field_186 = null;\n v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO add custom code on component closing | @Override
public void componentClosed() {
result.removeLookupListener(this);
} | [
"@Override\n public void componentClosed()\n {\n }",
"@Override\n\t\t\tpublic void internalFrameClosing(InternalFrameEvent e) {\n\n\t\t\t}",
"@Override\n \t\t\tpublic void windowClosed(WindowEvent e) {\n \t\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void windowClosing(WindowEvent arg0) {\n\r\n\t\t\t\t\t\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an iterator for the loop of the FeedbackLoop. | public Iterator getLoopChild (); | [
"public Iterator<E> iterator() {\n\t\treturn new MessageLoopIterator<E>(curr);\n\t}",
"public LoopTagStatus getIteratorStatus();",
"public boolean getLoop();",
"public Iterator<E> iterator () {\n return new LRIterator<E>();\n }",
"@Override\r\n public Iterator<Node> iterator() {\r\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor specifying producer group. | public DefaultMQProducer(final String namespace, final String producerGroup) {
this(namespace, producerGroup, null);
} | [
"public Producer(){}",
"public void setProducer(String producer)\n {\n this.producer = producer;\n }",
"public Cauciuc(String producer) {\n this.producer = producer;\n\n\n }",
"public SimpleMQTT(int group) {\n\t this.group = group;\n\t}",
"public Producer(Storage buffer, int produc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
safe car, returns null if lst is null | public static Object first(Cons lst) {
return ( (lst == null) ? null : lst.car ); } | [
"String test_02(List<String> list){\n//\tif ((list == null) && (list.size() == 0)) { \n//\n//\t\t return null;\n//\n//\t\t}\n\treturn \"\" ;\n\t}",
"public T caseLista(Lista object)\n {\n return null;\n }",
"@Override\r\n\tpublic List<Ing002kardex> getallbyid(List<?> lst) {\n\t\treturn null;\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
upload file to storage server (by file buff) | public String[] upload_file(String groupName, byte[] fileBuff, int offset, int length,
String fileExtName, NameValuePair[] metaList) throws IOException, FastDFSClientException {
UploadBuff uploadBuff = new UploadBuff(fileBuff, offset, length);
return do_upload_file(ProtoC... | [
"public void uploadToServer() {\n\t\t\n\n\t}",
"void uploadFile();",
"public void doUpload()\r\n/* 47: */ throws IOException\r\n/* 48: */ {\r\n/* 49: 67 */ String boundary = Long.toHexString(System.currentTimeMillis());\r\n/* 50: */ \r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the average of elements added to the accumulator. | public double avg () { throw new RuntimeException(); } | [
"public double average(){\n int sum = 0;\n for (int elementValue : this) {\n sum += elementValue;\n }\n\n return sum / size();\n }",
"public float calcAverage() {\n float sum = 0;\n for(int i = 0; i < numItems; i++) {\n sum += numbers[i];\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public final int mo74532a(C14088g c14088g, boolean z) {
AppMethodBeat.m2504i(ReaderCallback.READER_PLUGIN_SO_INTO_START);
if (C43739j.tbr.eqQ <= 0) {
this.sZu = 1;
AppMethodBeat.m2505o(ReaderCallback.READER_PLUGIN_SO_INTO_START);
return -1;
}
if (z) {
... | [
"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"
]
]
}
} |
Gets the attribute value for STATUS_CHANGE_USER using the alias name StatusChangeUser. | public String getStatusChangeUser() {
return (String) getAttributeInternal(STATUSCHANGEUSER);
} | [
"public String getValue()\n {\n return userStatus;\n }",
"public CryptoConst.UserStatus getUserStatus() {\n return lookupValue(Param.USER_STATUS);\n }",
"static String retrieveEquipmentAuditTransferStatusValue(final DataSource datasource,\n final DataRecord record, final String restriction, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dummy method to start the app | public static void start() {
} | [
"void startApp();",
"private LaunchApp() {}",
"public static void appLaunch()\n\t{\n\t\tSystem.out.println(\"AppLaunch\");\n\t}",
"@Override\n public void launchApp() {\n FXTestUtils.launchApp(TestUI.class, \"--testconfig=true\");\n }",
"public void startApp() throws MyException {\r\n\t\tmicros... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
leave unimplemented for the moment | @Override
public void saveProject(final Project project) throws IOException, ClassCastException {
} | [
"@Override\n\t\t\t\t\tpublic void leave() {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\tprotected void swop() {\n\n\t\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 eintragLoeschen() {\n\t\t\r\n\t}",
"@Override\n public void extornar() {\n \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table jbb_number_service | int updateByPrimaryKeySelective(Number400Service record); | [
"public int getNumber() {\r\n\t\treturn serviceNumber;\r\n\t}",
"String getService(String key) {\n\t\tif(table.containsKey(key)){\n\t\t\tArrayList<String> rowList = table.get(key);\n\t\t\tString[] rowArray = new String[rowList.size()];\n\t\t\trowArray = rowList.toArray(rowArray);\n\t\t\tint cur = current.get(key)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
~ Constructors .......................................................... Creates a new UpdateEngine object. The constructor is private because this is a singleton class. | private UpdateEngine()
{
// everything is initialized lazily, on first use
} | [
"public Update() {\n super();\n // TODO Auto-generated constructor stub\n }",
"public Engine() {\n\t\timage = new BufferedImage(Main.width, Main.height, BufferedImage.TYPE_INT_RGB);\n\t\tpixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();\n\t\tdimension = new Dimension(Main.wi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void keyReleased(KeyEvent arg0) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new increment link. May be subclassed to make use of specialized links, e.g. Ajaxian links. | @Override
protected AbstractLink newPagingNavigationIncrementLink(String id, IPageable pageable, int increment)
{
return new AjaxPagingNavigationIncrementLink(id, pageable, increment);
} | [
"public final void increment() throws RecognitionException {\n int increment_StartIndex = input.index();\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 45) ) { return ; }\n // /Users/sidharth/Documents/code/temp/php_parser/examples/code-formatter/grammars/Formatt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get value show by number and indeed | public String getValueShow(){
//this means the indeed is the same as number
if(indeed.equals(""))
return number;
else
return indeed;
} | [
"java.lang.String getValue121();",
"java.lang.String getValue117();",
"java.lang.String getValue109();",
"java.lang.String getValue213();",
"public JRValueDisplay getValueDisplay();",
"java.lang.String getValue057();",
"java.lang.String getValue285();",
"java.lang.String getValue145();",
"java.lang.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
write address to shared memory and check if it was a valid input | private boolean writeAddress() {
EditText stadt_edit = (EditText) findViewById(R.id.city);
String city = stadt_edit.getText().toString();
EditText street_edit = (EditText) findViewById(R.id.street);
String street = street_edit.getText().toString();
LatLng newLoc = Helper.getLoca... | [
"boolean writeAddress(IndividualAddress newAddress) throws KNXException, InterruptedException;",
"void writeMemory(IndividualAddress device, long startAddress, byte[] data, boolean verifyWrite,\n\t\t\tboolean verifyByServer) throws KNXException, InterruptedException;",
"private boolean _upSetLocalAddress(Event ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the player stats | public void createPlayer(String name, int levelNum, int health, int energy, int hour, String minute,
String ampm, int dayNum, int maxEnergy, int maxHealth){
this.playerName = name;
this.levelNum = levelNum;
this.health = health;
this.energy = energy;
... | [
"public void createNewStatsForGame() {\n\t\tthis.stats = new ArrayList<PlayerStats>();\n\t\tif (this.position == Position.Goalie) {\n\t\t\tthis.stats.add(new GoalieStats(this.id, 1));\n\t\t} else {\n\t\t\tthis.stats.add(new SkaterStats(this.id, 1));\n\t\t}\n\t}",
"public void createPlayers(){\n Rose = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sync to models in the database Both need to have a valid ID | public CompletableFuture<T> sync(Model toSync) throws RelationException {
return this.sync(toSync, false);
} | [
"public void save() {\n if (isTransient()) {\n created_at = DateTime.now();\n id = database.insert(tableName(), contentValues());\n } else {\n database.update(tableName(), contentValues(), whereIdMatches());\n }\n }",
"public Main1 save(Main1 users);",
"@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines whether a player is in the hand. | public boolean isInHand() {
return inHand;
} | [
"public boolean isOwnedBy(Player player) {\n return player == this.player;\n }",
"public boolean isPlayer(int player) {\n\t\treturn false;\r\n\t}",
"boolean hasTargetHandCards();",
"public final boolean isHand() {\n\n\t\treturn hand.booleanValue();\n\t}",
"private boolean inGame(String username) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the field name. | public String getName() {
return name;
} | [
"public String getFieldName() {\n return fieldName.get();\n }",
"@java.lang.Override\n public java.lang.String getFieldName() {\n return instance.getFieldName();\n }",
"public String getPropertyName() {\n\t\treturn field;\n\t}",
"public int getNameField();",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Global variable for WebDriver / Constructor is not a method but a special type of method 1. Constructor shouldn't have any return type. 2. Constructor Name and Class Name should be the same. | public OrangeHRMRegistrationPOM (WebDriver driver) {
//This driver is a local driver inside the constructor.
this.driver = driver; //Global driver = local driver
PageFactory.initElements(driver, this);
} | [
"private WebDriverSingleton() {\r\n\t}",
"public HomePage(WebDriver ldriver ) {\r\n\t\t\r\nthis.driver= ldriver;\r\n}",
"public Pageobjmodel_loginclass(WebDriver driver)\r\n{\r\n\tthis.driver=driver;\r\n}",
"public SeleniumUtils() {\n\t\tinitialize();\n\t}",
"public static void initialization(){\n\t\tString... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For suggestions to the search function | public Cursor suggestionsCursor(String searchString) {
String query1 = " SELECT " + DBHelper.TABLE_4_COLUMN_1 + ", '"
+ DBHelper.TABLE_4_NAME + "' "
+ SearchManager.SUGGEST_COLUMN_TEXT_2 + ", '"
+ R.drawable.building + "'"
+ SearchManager.SUGGEST_COLUMN_ICON_1 + " FROM "
+ DBHelper.TABLE_4_NAME + ... | [
"void searchForSuggestions(String userInput);",
"@Override\n\tpublic void search() {\n\n\t}",
"List<String> getSuggestions(String query);",
"public abstract String buildSearch();",
"@Override\n\tprotected void onSearch(String toFind) {\n\t\t\n\t}",
"private OngoingSearches() {\n\n\t}",
"public void filt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | public void onDetachedFromWindow() {
super.onDetachedFromWindow();
m14951f();
} | [
"@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"
]
]
}
} |
Removes an existing task from our list. | public String deleteTask(String num) {
try {
Task deletedTask = this.tasks.remove(Integer.parseInt(num) - 1);
deletedTasks.push(deletedTask);
return "Deleted:\n" + deletedTask + "\nYou now have " + getTaskCount() + " tasks in the list";
} catch (Exception e) {
... | [
"public void removeTask(Task task) {\n System.out.println(\"Remove Task\");\n\n tasks.remove(task);\n\n System.out.println(\"The task has been successfully deleted\");\n\n }",
"void removeTask(int taskID);",
"public void removeTask(Task task) throws IOException {\n taskList.remove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX WARNING: Removed duplicated region for block: B:15:0x0024 A[ADDED_TO_REGION] / Code decompiled incorrectly, please refer to instructions dump. | public void a(com.amap.location.offline.b.a.c r14) {
/*
r13 = this;
java.util.HashMap<java.lang.Long, com.amap.location.offline.b.a.b> r0 = r14.b
if (r0 == 0) goto L_0x00f1
java.util.HashMap<java.lang.Long, com.amap.location.offline.b.a.b> r0 = r14.b
i... | [
"public void removeIslandBlocks(Location loc)\r\n/* 972: */ {\r\n/* 973:1001 */ if (loc != null)\r\n/* 974: */ {\r\n/* 975:1002 */ System.out.print(\"Removing blocks from an abandoned island.\");\r\n/* 976:1003 */ Location l = loc;\r\n/* 977:1004 */ int px = l.getBlockX();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new demo. | public graph2(final String title) {
super(title);
final XYDataset dataset = createDataset();
final JFreeChart chart = createChart(dataset);
final ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new java.awt.Dimension(500, 500));
setCon... | [
"public JPanel createDemoPanel(String nombre) {\n JFreeChart jfreechart = createChart(createDataset(nombre));\n return new ChartPanel(jfreechart);\n }",
"public void demo() {\n\t\tSystem.out.println(\"Demo2 : demo function\");\n\t\tDemo1 d=new Demo1();\n\t\td.display();\n\n\t}",
"public static JPanel cre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ (nonJavadoc) Method declared on Viewer. | @Override
public Control getControl() {
return combo;
} | [
"protected abstract String updateViewer();",
"public String getViewer()\n {\n return nativeGetViewer();\n }",
"private void intiViews() {\n }",
"@Override\r\n protected StructuredViewer getViewer() {\r\n return null;\r\n }",
"@Override\n\tpublic void dView() {\n\n\t}",
"protected R... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provides the row and the column indexes of the card identified by the string passed. Searches in all decks of the grid | public Pair<Integer, Integer> getRowColOfCardFromID(String devCardID) throws NotPresentException {
for (int i = 0; i < getRowsNumber(); i++) {
for (int j = 0; j < getColumnsNumber(); j++) {
try {
if (decks[i][j].topCard().getCardID().equals(devCardID))
... | [
"public Pair<Integer,Integer> getBoardIndex(String position){\n char[] val = position.toCharArray();\n int rowIdx = rowLookup.get(Character.valueOf(val[0]));\n for(int i = 0; i<COL; i++){\n if(position.equals(board[rowIdx][i])){\n //find and return pair of indices\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the loai hinh doanh nghiep of this yeu cau dang ky doanh nghiep. | public java.lang.String getLoaiHinhDoanhNghiep() {
return _yeuCauDangKyDoanhNghiep.getLoaiHinhDoanhNghiep();
} | [
"@Override\n\tpublic String xepLoai() {\n\t\tString hocLuc=\"\";\n\t\tif(tinhDiemTrungBinh()<5) {\n\t\t\thocLuc=\"Yếu\";\n\t\t}\n\t\telse if(tinhDiemTrungBinh()<7) {\n\t\t\t\n\t\t\t\thocLuc=\"Trung bình\";\n\t\t\t}else\n\t\t\t\tif(tinhDiemTrungBinh()<8.5){\n\t\t\t\t\thocLuc=\"Khá\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SEARCH /_search/ramadamausers?query=:query : search for the ramadamaUser corresponding to the query. | @GetMapping("/_search/ramadama-users")
@Timed
public List<RamadamaUserDTO> searchRamadamaUsers(@RequestParam String query) {
log.debug("REST request to search RamadamaUsers for query {}", query);
return StreamSupport
.stream(ramadamaUserSearchRepository.search(queryStringQuery(query)... | [
"UserResponse getUserSearch(String data);",
"private void doSearch(final String query) {\n\n JsonArrayRequest jsonArrayRequest = new JsonArrayRequest(URL + query,\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray respo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets all of the BoundedRangeModel properties after forcing the arguments to obey the usual constraints: minimum At most, one ChangeEvent is generated. | public void setRangeProperties(long newValue, long newExtent, long newMin, long newMax, boolean adjusting) {
if (newMin > newMax) {
newMin = newMax;
}
if (newValue > newMax) {
newMax = newValue;
}
if (newValue < newMin) {
newMin = newVa... | [
"public void setModel(BoundedRangeModel paramBoundedRangeModel) {\n/* 468 */ BoundedRangeModel boundedRangeModel = getModel();\n/* */ \n/* 470 */ if (boundedRangeModel != null) {\n/* 471 */ boundedRangeModel.removeChangeListener(this.changeListener);\n/* */ }\n/* */ \n/* ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Object Layer for Create Vehicle | @Override
public Vehicle createVehicle() {
VehicleImpl vehicle = new VehicleImpl( null, null, 0, null, 0, null, null, null, null, null );
vehicle.setId( -1 );
Persistent.setPersistenceLayer( persistence);
return vehicle;
} | [
"private Vehicle createVehicle(AddNewVehicleRequest request) { VehicleModel vehicleModel = new VehicleModel();\n// vehicleModel.setId(request.getModelId());\n//\n// Seller company = new Seller();\n// company.setId(params.get(\"seller_id\"));\n//\n ItemCategory category = new ItemC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get device list by OptSN. | public ArrayList<String> getOptSNList(ArrayList<String> devname){
ArrayList<String>optsn = new ArrayList<>();
for (String item:devname) {
String s = getOptSNbyName(item);
if(s != null)
optsn.add(s);
}
return optsn;
} | [
"@Override\n\tpublic List<String> getDeviceSn(String sn) {\n\t\treturn this.deviceInfoMapper.getDeviceSn(sn);\n\t}",
"java.util.List<com.letsmidi.monsys.protocol.push.Push.DeviceInfo> \n getDevInfosList();",
"public abstract List<String> getDeviceModels();",
"public void getDeviceList(ITaskListener tas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last selected time in the list | public Calendar getLastSelected() {
Map.Entry<Calendar, Boolean> entry = times.lastEntry();
while (entry != null) {
if (entry.getValue())
return entry.getKey();
entry = times.lowerEntry(entry.getKey());
}
return null;
} | [
"public long getLast() {\n\t\treturn lastTime;\n\t}",
"public Long getLasttime() {\r\n return lasttime;\r\n }",
"public static Date getLastTime() {\n return lastTime;\n }",
"public long fetchLastUpdateTime(){\r\n \tlong lastTime = 0;\r\n \tCursor cur = myDb.rawQuery(\"SELECT time FRO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all of the nearby alive players within a radius of the capture point, who are on a certain team. | public List<Player> getNearbyPlayersOnTeam(double radius, Teams teamService, int team) {
List<Player> nearList = new ArrayList<Player>();
for (Player player : this.getNearbyPlayers(radius)) {
if (teamService.getTeam(player.getName()) == team) {
nearList.add(player);
}
}
return nearList;
} | [
"public ArrayList<Player> getNearbyPlayers(Player player) {\n double radius = core.config.getDouble(\"tradeRadius\");\n ArrayList<Player> nearbyPlayers = new ArrayList<>();\n for (Entity e : player.getNearbyEntities(radius, radius, radius)) {\n if (e instanceof Player) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Listener methods from dialog / Called when dialog is saved, and thus all passed data is valid (Dialog does the validation) Last argument, i, will be null if new entry, otherwise it will be the index of the entry to edit | @Override
public void onDialogPositiveClick(Date date, String station, float odometer, String grade, float amount, float unitCost, Integer i) {
FuelEntry fe = new FuelEntry(date, station, odometer, grade, amount, unitCost);
if (i != null) {
// FuelEntry is an immutable object, so replac... | [
"private void itemEditCallback(Document document, int position) {\n // get id and name of the document\n int documentId = document.getId();\n String documentName = document.getName();\n\n // show dialog in which the user can enter a new name for the document\n Dialog dialog = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Releases a brokerinitiated pause. After the clock is restarted, the resume() method will be called to communicate a new start time. | public synchronized void handleMessage (PauseRelease msg)
{
if (pauseRequester == null) {
log.info("Release request by " + msg.getBroker().getUsername() +
", but no pause currently requested");
return;
}
if (pauseRequester != msg.getBroker().getUsername()) {
log.info("Rel... | [
"public static void pause(){\n\t\tclock.timer.stop();\n\t}",
"@Override\n\t\tpublic void pause() {\n\t\t\tsuper.pause();\n\t\t\tmTimeLock = true;\n\t\t}",
"private void pause() {\r\n\t\t// TODO\r\n\t}",
"public void pause() { }",
"public void pause(){\n if(started && !paused){\n //Pause th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A Table interface than defines mandatory fields for each table | public interface Table {
Long getId();
void setId(Long id);
String getUuid();
void setUuid(String uuid);
Date getChangedAt();
void setChangedAt(Date date);
} | [
"public interface BaseTable {\n String getTableName();\n void insertRecord(TableRecord tableRecord) throws ConstraintException;\n void printRecords();\n}",
"public TABLEType() \n {\n super();\n }",
"public interface Table {\r\n public void setId(long id);\r\n public long getId();\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all "dead" critters (critters with energy <= 0) from population and worldModel | public static void cullDeadCritters() {
List<Critter> population = TestCritter.getPopulation();
List<Critter> dead = new java.util.ArrayList<Critter>();
//Find dead Critters
for(Critter crit: population) {
if(crit.getEnergy() <= 0) {
dead.add(crit);
}
}
//Remove from population
populatio... | [
"public static void clearWorld() {\n\t\tfor (Iterator<Critter> it = population.iterator(); it.hasNext(); ) {\n\t\t it.next();\n\t\t it.remove();\n\t\t}\n\t}",
"public static void clearWorld() {\r\n // Remove critters from collection\r\n collection.clear();\r\n // Clear the board\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the system is about to start resuming a previous activity. | @Override
protected void onPause()
{
Log.d(LOGTAG, "onPause");
super.onPause();
if (mGlView != null)
{
mGlView.setVisibility(View.INVISIBLE);
mGlView.onPause();
}
// Store the playback state of the m... | [
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t\tactStopped = false;\n\t}",
"protected void onResume() {\n\t\tLiSession.sessionResume(this);\r\n\t\tsuper.onResume();\r\n\t}",
"public void onResume(Activity context);",
"@Override\r\n\tpublic void onResume(Activity activity) {\n\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The result for the shared set mutate. .google.ads.googleads.v1.services.MutateSharedSetResult shared_set_result = 15; | com.google.ads.googleads.v1.services.MutateSharedSetResultOrBuilder getSharedSetResultOrBuilder(); | [
"public com.google.api.ads.adwords.axis.v201809.cm.SharedSet getSharedSet() {\n return sharedSet;\n }",
"public com.google.ads.googleads.v13.resources.CampaignSharedSet getCampaignSharedSet() {\n if (campaignSharedSetBuilder_ == null) {\n return campaignSharedSet_ == null ? com.google.ads.go... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public BooleanOperation isNotNull() {
throw new UnsupportedOperationException();
} | [
"@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"
]
]
}
} |
Log a given flow event | public Boolean logFlow(String applicationId, List<FlowEntry> flows) throws ApiException {
return logFlowWithHttpInfo(applicationId, flows).getData();
} | [
"public void logEvent(Event event) {\r\n\r\n\t\t\ttry{\r\n\t\t\t FileUtils.writeStringToFile(file, event.toString(), true);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"@Override\n\t\t\tpublic void log(EventLog eventLog) {\n\t\t\t\t\n\t\t\t}",
"private void logScenario... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by hotun on 05.10.2017. | @Singleton
@Component(modules = {ApplicationModule.class, ManagerModule.class, RestModule.class}) //связывает модули частямии, которые запрашивают зависимости, в данном случае один компонент отвечает за два модуля
public interface ApplicationComponent {
//методы где будет использоваться внедрение
//activities
... | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\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"
]
]
}
} |
Set the transfer task container. This method is intended to be used only in case a transfer is restored. Otherwisem, it is recommended to load the container from the server using the REST interface. | public void setTransferTaskContainer(TransferTaskContainer pContainer) {
transferContainer = pContainer;
} | [
"public void setContainer(final String container) {\r\n\t\tthis.container = container;\r\n\t}",
"public void setContainer(Container container)\r\n {\r\n\t Container oldContainer = this.container;\r\n\t this.container = container;\r\n\t support.firePropertyChange(\"container\", oldContainer, this.container);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onAppMsgReciveTransferCashMsg(WebWechatClient mClient,
WechatMsg msg) {
super.onAppMsgReciveTransferCashMsg(mClient, msg);
String content=DateUtils.getNowTimeStr()+"收到来自"+msg.getFrom()+"的转账,请在手机上查收\r\n";
getContext().output("收到来自"+msg.getFrom()+"的转账,请在手机上查收");
FileUtil.appendToTxt("./... | [
"@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"
]
]
}
} |
Test case number: 65 /Coverage entropy=1.5157079520857129 | @Test(timeout = 4000)
public void test065() throws Throwable {
ErrorPage errorPage0 = new ErrorPage();
// Undeclared exception!
try {
errorPage0.get((String) null);
fail("Expecting exception: RuntimeException");
} catch(RuntimeException e) {
//
// Co... | [
"@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"
]
]
}
} |
Gets the page index. | public int getPageIndex() {
return pageIndex;
} | [
"com.google.protobuf.ByteString\n getPageIndexBytes();",
"public String getPageIndex() {\r\n\t\treturn pageIndex;\r\n\t}",
"public int getPageIndex() {\n\n\t\treturn pageIndex;\n\t}",
"@Value.Default\n public long getPageIndex(){\n\treturn 0;\n }",
"public int getPageIndex() {\n\t\treturn this.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Parameter__Group__6" $ANTLR start "rule__Parameter__Group__6__Impl" InternalSARL.g:23499:1: rule__Parameter__Group__6__Impl : ( ( rule__Parameter__Alternatives_6 )? ) ; | public final void rule__Parameter__Group__6__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSARL.g:23503:1: ( ( ( rule__Parameter__Alternatives_6 )? ) )
// InternalSARL.g:23504:1: ( ( rule__Parameter__Alternatives_6 )? )
... | [
"public final void rule__Parameters__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/antlr/internal/InternalLLVM_IR.g:14090:1: ( ( ( rule__Parame... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes program cards used by the game to int values. | public static int[] programCardsToInt(ProgramCard programCard){
return new int[]{programCard.getValue(), booleanToInt(programCard.getRotate()),
booleanToInt(programCard.getRotateLeft()), booleanToInt(programCard.getRotateRight()), programCard.getPriorityValue()};
} | [
"void handInCard(int value);",
"private static int valueAsInt(Card card) \n {\n int i = 0;\n while (card.getValue() != Card.valuRanks[i])\n ++i;\n\n return i;\n }",
"public int newCard(){\n\t\tint arrayValue = randNum.nextInt(53-1)+1;\n\t\t//this checks if the card is it use before it... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes the client socket and causes the thread to finish. | public void cancel() {
try {
mmSocket.close();
} catch (IOException e) {
Log.e(TAG, "Could not close the client socket", e);
}
} | [
"public void close() {\n\t\tthis.clientSocket.close();\n\t}",
"public void close() {\r\n socket.close();\r\n }",
"public void terminate() {\n try {\n socket.close();\n } catch (IOException ex) {\n // Ignore\n }\n }",
"public void closeS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the conversation including participants and messages with the the given id. Only participants in the conversation is allowed to view the conversation. | public Conversation getConversation(int conversationId) {
return getResourceFactory().getApiResource(
"/conversation/" + conversationId).get(Conversation.class);
} | [
"@RequestMapping(value = \"/conversations/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Conversation> getConversation(@PathVariable Long id) {\n log.debug(\"REST request to get Conversation : {}\", id);\n Conve... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns an iteratively bubblesorted string array in ascending ascii order | public static String[] bubbleSort(String[] s){
for(int i = 0; i < s.length; i++){
for(int j = 0; j < s.length-1; j++){
if(s[j] == null && s[j+1] != null){
s[j] = s[j+1];
s[j+1] = null;
} else if(s[j] != null && s[j+1] != null && !ascending(s[j], s[j+1])){
String temp = s[j];
s[j] = s[j+... | [
"public static String[] sort(String[] asciis) {\n Queue<String>[] buckets = new Queue[256];\n for (int i = 0; i < 256; i++)\n buckets[i] = new LinkedList();\n\n boolean sorted = false;\n int lengthInc = 0;\n\n String[] sortedArr = new String[asciis.length];\n Sys... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
jhipsterneedleentityaddfield JHipster will add fields here | public Long getId() {
return id;
} | [
"@Override\n public void editNewlyAddedField() {\n }",
"public void createFields() {\n }",
"public EntityInfoBuilder<T> addField(String fieldPath) {\n String columnName = fieldPath.toLowerCase().replaceAll(\"\\\\.\", \"_\");\n return addField(fieldPath, columnName, false);\n }",
"@Ov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
valido que al registrar producto no hayan campos vacios | private void ValidarProducto() {
Nom = nombrepro.getText().toString();
Desc = descripcionpro.getText().toString();
PrecioCom = preciocomprapro.getText().toString();
PrecioVen = precioventapro.getText().toString();
Cant = cantidadpro.getText().toString();
if (imagenUri ==... | [
"private boolean validacionIdentificacionVacio() { // Valida Usuario en Blanco \r\n if (identificacion.equals(\"\")) {\r\n return true;\r\n } else {\r\n }\r\n return false;\r\n }",
"private boolean validaCampos()\r\n {\r\n return false;\r\n }",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the week names, when the locale changed. | private void updateWeekNames() {
DateFormatSymbols dateFormatSymbols = new DateFormatSymbols(calendarView.localeProperty().get());
String[] weekDays = dateFormatSymbols.getShortWeekdays();
// Start with 1 instead of 0, since the first element in the array is empty.
for (int i = 1; i < w... | [
"public void changeWeek() {\r\n }",
"public void updateWeek(){\n\t\tSimpleDate d = new SimpleDate(parent.currentMonth, parent.currentDay, parent.currentYear);\n\t\tstartDay = Period.parse(d.year + \".\" + d.month + \".\" +\n\t\t\t\td.day + \":00.00-\" + d.year + \".\" +\n\t\t\t\td.month + \".\" + d.day + \":24... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for setting charges field of car order entity | public void setCharges(int charges) {
this.charges = charges;
} | [
"public void setCharge(int charge) {\n this.charge = charge;\n }",
"void setCharge(int c) {\n\t\tcharge = c;\n\t\tvalency=null;//valency will now be non-standard\n\t}",
"@JsonSetter(\"charge\")\r\n public void setCharge (Charge value) { \r\n this.charge = value;\r\n }",
"public synchron... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void handleModCategory(String name,String no) {
try {
service.modCommodityCategory(name, no, MainViewImpl.user.getId());
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | [
"@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"
]
]
}
} |
Used to move all ship objects | public void move() {
// Left arrow key press
if (control.getKeyStatus(37)) {
xPos -= 12;
}
// Right arrow key press
if (control.getKeyStatus(39)) {
xPos += 12;
}
// Move from edge to edge without stopping
if (xPos > 800) {
... | [
"public void moveAll() {\n\n this.player.move(this.gameManager.getGameState());\n\n // MOVE THE GHOSTS //\n\n if (this.blinky.isActive()) this.blinky.move(this.gameManager.getGameState());\n if (this.inky.isActive()) this.inky.move(this.gameManager.getGameState());\n if (this.pink... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the borrower name for the trade. | public String getBorrower() {
return borrower;
} | [
"public java.lang.String getBuyerName() {\n java.lang.Object ref = buyerName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of user code OCCI CRUD callback operations. Start of user code ComponentocciCreate Called when this Component instance is completely created. | @Override
public void occiCreate()
{
LOGGER.debug("occiCreate() called on " + this);
// TODO: Implement this callback or remove this method.
} | [
"public void CréerCompte() {\n // TODO implement here\n }",
"public void create(WF_Context myContext) {\n\n this.myContext = myContext;\n this.ctx = myContext.getContext();\n //delay creat until after other blocks executed, to make sure datasource has been added to context.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Leaf' attribute. If the meaning of the 'Leaf' attribute isn't clear, there really should be more of a description here... | boolean isLeaf(); | [
"public org.tensorflow.framework.Leaf getLeaf() {\n if (nodeCase_ == 1) {\n return (org.tensorflow.framework.Leaf) node_;\n }\n return org.tensorflow.framework.Leaf.getDefaultInstance();\n }",
"public com.blacksquaremedia.reason.regression.HoeffdingProtos.LeafNode getLeaf() {\n if (leafBuil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update display when a particular segment is selected by table display | @Override
public void segmentSelectedByTable(int seg) {
graphicDisplay.setHighlight(seg);
tableDisplaySegmentATM.setHighlight(seg);
tableDisplay.setHighlight(seg);
} | [
"public void changeDisplayType() {\n if (displayBox.getValue().compareTo(\"All\") == 0) {\n refreshView();\n } else if (displayBox.getValue().compareTo(\"Incomplete\") == 0) {\n tableView.setItems(ListFunctions.displayIncomplete(allList));\n } else if (displayBox.getValue(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets the row batch to default state sets selectedInUse to false sets size to 0 sets endOfFile to false resets each column inits each column | @Override
public void reset() {
reset(cols);
} | [
"@Override\n public void startRow(int rowNum) {\n currentRowColumnCount = 0;\n }",
"@Override\n public void startRow(int arg0){\n this.row = new String[columnCnt];\n currColNum = 0;\n\n }",
"private void reset() {\n\t\t\tthis.offset = 1;\n\t\t\tthis.itemsProcessed.cl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize a new shelf when a depositability leader is played | public void initArrayDeposit(Resource res){
if(arrayDeposit.size()<2) {
arrayDeposit.add(0, new CounterTop(res, 0));
if(observer!=null)
observer.updateInitArrayDeposit(getNickname(),res);
}
} | [
"public Shelf(){}",
"public Shelf(Sku shelfSku, Fascia fasciaOnShelf, int remainingFascia) {\r\n this.shelfSku = shelfSku;\r\n this.remainingFascia = remainingFascia;\r\n this.fasciaOnShelf = fasciaOnShelf;\r\n this.shelfSize = 30;\r\n }",
"public void setShelf(String shelf) {\n this.she... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
elimina contenidos del carrito | public void eliminarCarrito(Nodo<Cliente> c){
c.getDato().setCarrito(null);
System.out.println("Carrito eliminado.");
} | [
"void eliminar_documento(int cedula){\n \n if (verificar(cedula,0,0) == 0) { //Verifica si el estudiante se encuentra almacenado\n \n System.out.println(\"No se encuentra almacenado.\");\n \n } else { //si se encuentra almacenado busca en que pos... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public long getItemId(int position) {
return 0;
} | [
"@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"
]
]
}
} |
Auto generated getter method | public long getDicomImagePk(){
return localDicomImagePk;
} | [
"public MethodDoc getGetter()\r\n {\r\n return m_jvdGetter;\r\n }",
"public long getGetter() {\n return getter_;\n }",
"public T get() {\n return value;\n }",
"public abstract M get();",
"@Override\n \tpublic String get() {\n \t\treturn null;\n \t}",
"public Object get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the recipient field. | public JTextField getRecipientField() {
return this.recipientField;
} | [
"public String getRecipient() {\r\n return recipient;\r\n }",
"public String getRecipient() {\n return recipient;\n }",
"public String getRecipient() {\r\n return this.recipient;\r\n }",
"public String getRecipient(){\n\t\treturn this.recipient;\n\t}",
"@JsonGetter(\"recipient\")\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method returns subset of Industry entities for given name. The name is passed through path param. | @GET
@Path("/named/{name : \\S+}")
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public Response getIndustriesByName( @PathParam("name") String name,
@BeanParam PaginationBeanParam params ) throws ForbiddenException {
RESTToolkit.authori... | [
"public List<IndustryObj> loadAllIndustries() throws DataServiceException{\n\t\tList<IndustryObj> resultList=obfy.load().type(IndustryObj.class) \n\t\t\t\t.order(\"industryName\")\n\t\t\t\t.list();\n\t\treturn resultList;\n\t}",
"@Override\n public List<IndustrysizeDTO> findAll() {\n log.debug(\"Request... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes correction for Felsenstein [Felsenstein, 1984] model (see [Hillis, p456]). | public double computeF84(String seq1, String seq2) {
String[] seqBase = new String[2];
seqBase[0] = seq1;
seqBase[1] = seq2;
int[] res = countResidues(seqBase);
// the residues regarded in the comparison
double N = getN(seqBase, res);
// determine frequencies
double[] freqs = new double[res.length];
... | [
"@NewObject\r\n TsData applyCorrections(TsData s, TsData corrections);",
"void solve() {\n for(int i = 0; i<numberOfPoints; i++) { // zeros wavefunction \n phi[i] = 0;\n }\n state[0] = 0; // initial phi\n state[1] = 1.0; // nonzero initial dphi/dx\n state[2] = xmin; // in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string from = 2; | java.lang.String getFrom(); | [
"public Builder from(String from)\r\n \t{\r\n \t this.from = checkBlank(from);\r\n \t return this;\r\n \t}",
"public int getFrom() {\n return from;\n }",
"public void setFrom (String from) {\n\t\tthis.from = from;\n\t}",
"public int getFrom() {\n return from;\n }",
"public int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A value that indicates whether the statement is a batch query request. | public Boolean isBatchStatement() {
return this.isBatchStatement;
} | [
"public boolean isBatch() {\n return batch != null;\n }",
"@Override\n public boolean isBatch() {\n return true;\n }",
"public boolean isBatch() {\n return mBatch;\n }",
"boolean hasBatchID();",
"public boolean isQuery() {\n return flags.isQuery();\n }",
"boolean hasBa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the villager type to spawn in this component, based on the number of villagers already spawned. | protected int getVillagerType(int p_74888_1_)
{
return 0;
} | [
"protected int getVillagerType(int par1)\n {\n return 3;\n }",
"private int getSpawnType() {\n\t\treturn this._spawnType;\n\t}",
"public int getType() {\n\t\tif (this.fighterType.equals( CommonData.FIGHTER_TYPE_BULLY)){\n\t\t\treturn 1;\n\t\t} else if (this.fighterType.equals(\tCommonData.FIGHTER_T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Does not copy actual sensor distances | public SimulatedCar(SimulatedCar car)
{
super(car);
acceleration = car.acceleration;
deceleration = car.deceleration;
turningRadius = car.turningRadius;
} | [
"public void updateDistances(){\n for(int n = 0; n < _vision_distances.length; ++n){\r\n _vision_distances[n] = _ray_range; //prng.uniform(0, 5);\r\n }\r\n }",
"static double getDistance() {\n\t\r\n\tultraProvider.fetchSample(ultraSample, 0);\r\n\treturn ultraSample[0];\r\n \r\n}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Keep in mind the following facts: BIDDER1 == 2 BIDDER2 == 0 BIDDER3 == OWNER1 == 1 OWNER2 == 3 LISTING1_OWNER1 bid by BIDDER1 => offer, offer, offer, cancel by bidder, offer, offer, offer, cancel by owner LISTING1_OWNER1 bid by BIDDER2 => offer LISTING2_OWNER2 bid by BIDDER1 => offer, offer LISTING3_OWNER2 bid by BIDDE... | @Test
public void testMakeBidScenarioForListing1AndBidder2() {
// scenario for LISTING1_OWNER1 and BIDDER2
// offer B (fail), update B, counter O, counter O (fail), update O, FREEZE LISTING, counter B (fail), accept O (fail), cancel O (fail)
// DEFREEZE LISTING, counter B, WITHDRAW LISTING, accept O (fail), c... | [
"@Override\n\tpublic Action chooseAction(List<Class<? extends Action>> validActions) {\n\t\troundN++; // Update the round number\n\t\t// System.out.println(\"Round N� \"+ roundN);\n\t\t// System.out.println(\"I am \" + this.getPartyId().toString());\n\t\tif (!validActions.contains(Accept.class)) {\n\t\t\t// No Offe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
do semantic analysis for this node S10, S47 | public Type doSemantics(SymbolTable table, List<String> errorMsg, Type idType) {
boolean success = table.addSymbol(name,
new SymbolTableEntry(new ScalarSymbolType(idType)));
// S37
if (!success)
errorMsg.add(String.format("%d:%d: error %s: %... | [
"private void analyze(Node current, ArrayList<Exception> errors) {\n // Perform any necessary actions\n classDeclaration(current, errors);\n functionDeclaration(current, errors);\n variableDeclaration(current, errors);\n programDeclaration(current, errors);\n endScope(curr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This function returns an ACK packet with the current 'Next Byte Expected' in the ackowledge field Used for both sender and receiver | public Packet makeACKPacket(Packet pktReceived){
Packet ackPkt = new Packet(this.getLocalSequenceNumber());
ackPkt.setACK(
this.getRemoteSequenceNumber() == Integer.MAX_VALUE ? 0: this.getRemoteSequenceNumber() + 1 ) ;
ackPkt.timeStamp = pktReceived.timeStamp;
Pack... | [
"private byte[] GetAckPacket(byte[] buffer) {\n\t\tbyte[] ack = new byte[4];\n\t\tack[0] = buffer[0];\n\t\tack[1] = buffer[1];\n\t\tack[2] = (byte)1;\n\t\tack[3] = buffer[3];\n\t\treturn ack;\n\t}",
"public Packet getFinAckMessage(){\n Packet finAckMessage = new Packet();\n finAckMessage.getHeader()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
final Rectangle2D r = view.getBounds2D(); | public Point2D getLineCircleIntersection(final double bsX, final double bsY, final double wW, final double hH,
final double centerX, final double centerY, final Point2D source, final Point2D p, final boolean isP)
{
final double a = wW / 2;// r.getWidth() +
// 1;/// 2;
final double b = hH / 2;// r.getHeigh... | [
"abstract protected Rectangle2D getBounds2D();",
"public Rectangle getBounds() {\n/* 481 */ return new Rectangle(this.x_pos, this.y_pos, this.width, this.height);\n/* */ }",
"@Override\n public void getBounds(Rectangle2D r) {\n double wid = w;\n double hi = h;\n double xx, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |