query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Returns the list of entity converters.
public List<EntityConverter> getAll() { return converters; }
[ "public Collection<Converter<?>> listConverters() {\n\t\treturn converters.values();\n\t}", "public List<MetadataConverter> getMetadataConverters() {\n return metadataConverters;\n }", "public Iterable<OperationDescriptor> getConversions() {\n return new ArrayIterable<OperationDescriptor>(conversions...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
draws all enemy health bars
protected void drawHealthBars(Canvas g, Paint paint) { int minX; int maxX; int minY; int maxY; //int offset; for(int i = 0; i < enemies.size(); i++) { if(enemies.get(i) != null) { minX = (int) enemies.get(i).x - 20; maxX = (int) enemies.get(i).x + 20; minY = (int) enemie...
[ "public void renderHealthBar(Graphics graphics) {\r\n\t\tif(inDungeon) {\r\n\t\t\t\r\n\t\t\t//Find scaling value\r\n\t\t\tint pixelsPerHealth = 50 / maxHealth;\r\n\t\t\t\r\n\t\t\t//Represents amount of health the player has lost\r\n\t\t\tint numRedPixels = pixelsPerHealth * (maxHealth - health);\r\n\t\t\t\r\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'variant' field.
public java.lang.CharSequence getVariant() { return variant; }
[ "public String getVariant() {\n\t\treturn variant;\n\t}", "variant getVariant();", "public Variant getVariant(int index) {\n return mVariants.get(index);\n }", "public String getVariant1();", "public io.dstore.values.StringValueOrBuilder getVariantOrItemNoOrBuilder() {\n if (variantOrItemNoBuilde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Customer with the specified timing and returns it.
public CustomerEvent setTiming(double newTiming) { return new CustomerEvent(customer, server, newTiming, status); }
[ "public Customer(double time) {\n this.id = ++number;\n arriveTime = time;\n serveTime = -1;\n }", "public Customer(int customerId, double serviceTime) {\n this.customerId = customerId;\n this.serviceTime = serviceTime;\n }", "public Customer(int t)\n {\n arrivalTime=t;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Acknowledges the server if it has received the file.
static void acknowledge(byte blockNum) { byte [] Acknowledge = { 0, ACK, blockNum }; DatagramPacket ack = new DatagramPacket(Acknowledge, Acknowledge.length, clientAddress, inBoundPacket.getPort()); //Sends a DatagramPacket showing it acknowledg...
[ "void acknowledge();", "private void transportFile() {\n\t\t\t// System.out.println(\"z\");\n\n\t\t\tString lastRingo = getPrevRingo();\n\t\t\tRingoPacket filePacket = takeSpecific(this.recvQueue, PacketType.DATA, lastRingo.substring(0, lastRingo.indexOf(\":\")), Integer.parseInt(lastRingo.substring(lastRingo.ind...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for all biological file format writers. Source code: <a href=" <a href="
public interface IFormatWriter extends IFormatHandler { /** * Saves the given image to the current series in the current file. * * @param no the image index within the current file, starting from 0. * @param buf the byte array that represents the image. * @throws FormatException if one of the paramete...
[ "interface AbstractFile {\r\n\tvoid ls(StringBuffer compositeBuilder);\r\n\t\r\n}", "private Object File(String linkOfFile) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void writeLinks(BibItem item,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the credentials non expired.
public void setCredentialsNonExpired(boolean credentialsNonExpired) { this.credentialsNonExpired = credentialsNonExpired; }
[ "@Override\n\t\tpublic boolean isCredentialsNonExpired() {\n\t\t\treturn false;\n\t\t}", "CredentialBuilder setExpiration(Date expiration);", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn !(false);\r\n\t}", "@Transient\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the JSON object: create a json object from the string
public static JSONObject getJSONObject(String jsonString){ JSONParser parser = new JSONParser(); JSONObject splitedJSON=null; try { splitedJSON = (JSONObject) parser.parse(jsonString); } catch (ParseException e) { e.printStackTrace(); return null; } return splitedJSON; }
[ "private JsonString parseJString() {\n String str = parseString();\n\n return new JsonString(str);\n }", "private JsonObject getJsonObj(String s) {\n JsonReader jsonReader = Json.createReader(new StringReader(s));\n return jsonReader.readObject();\n }", "public JsonObject strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 app_id = 3;
public Builder clearAppId() { appId_ = 0; onChanged(); return this; }
[ "public int getAppid() {\n return appid_;\n }", "public AppID getAppID()\n {\n return id;\n }", "long getIosAppStoreId();", "public String getAppId(){\n\t\t// Usually this can be a field rather than a method variable\n\t Random rand = new Random();\n\t // nextInt is norm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 14. Write a Java program to print an American flag on the screen. Expected Output ================================== ================================== ================================== ================================== ================================== ================================== ==========================...
public static void main(String[] args) { System.out.println("* * * * * * =================================="); System.out.println(" * * * * * =================================="); System.out.println("* * * * * * =================================="); System.out.println(" * * * * * =====...
[ "private void greensAnnanagar() {\nSystem.out.println(\" Greens Annanagar : 4th floor, SDV Arcade, AB-5, 2nd Ave, AB Blo\"\r\n\t\t+ \"ck, Shanthi Colony, Anna Nagar, Chennai, Tamil Nadu 600040\");\r\n\t}", "private void drawFlagOfBelgium() {\n partOfTheFlag1(APPLICATION_WIDTH / 2 - FLAG1_X / 2, APPLICATIO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public long filterrecord(String searchtxt) { return userloginDao.filterrecord(searchtxt); }
[ "@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" ] ] } }
From interface: java.util.Set Declared at the super level
public boolean equals(Object obj) { // import java.util.Set; if (obj instanceof Set) { Set setThat = (Set) obj; return size() == setThat.size() && setThat.containsAll(this); }...
[ "public interface Set<E> extends Iterable<E>{\n /**\n * Check whether the set is empty.\n * @return <code>true</code> if and only if the set is empty.\n */\n public boolean isEmpty();\n\n /**\n * Get the number of elements in the set.\n * @return the number of elements in the set.\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Method__Group_0__0__Impl" $ANTLR start "rule__Method__Group_0__1" InternalCrySL.g:5156:1: rule__Method__Group_0__1 : rule__Method__Group_0__1__Impl ;
public final void rule__Method__Group_0__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCrySL.g:5160:1: ( rule__Method__Group_0__1__Impl ) // InternalCrySL.g:5161:2: rule__Method__Group_0__1__Impl { ...
[ "public final void rule__Method__Group_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalCrySL.g:5139:1: ( rule__Method__Group_0__1__Impl )\r\n // InternalCrySL.g:5140:2: rule__Method__Group_0__1__Impl\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Activates a interface that is bound to this thread and notifies the 'listeners' of updates
public static void activateAgent(CodeScannerInterface mainAgent) { agents.add(mainAgent); }
[ "public interface UpdateListener {\n void notifyStart();\n}", "public void setInterface() { IWindowInterface.createInterface(this); }", "private void startListener()\n\t{\n\t\t// Get a new thread.\n\t\t////////////////////\n\t\tlistener = new Listener(this);\n\t\t\n\t\t// Start it.\n\t\t////////////\n\t\tlis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interfaces Return the names of all subinterfaces of the named interface.
public List<String> getNamesOfSubinterfacesOf(final String interfaceName) { final InterfaceNode interfaceNode = interfaceNameToInterfaceNode.resolve().get(interfaceName); if (interfaceNode == null) { return Collections.emptyList(); } else { final ArrayList<String> subinte...
[ "public List<String> getNamesOfDirectSubinterfaces() {\n return getClassNames(getDirectSubinterfaces());\n }", "public String getInterfacesNames() {\n StringBuilder sb = new StringBuilder();\n Iterator<Integer> iter = interfaces.iterator();\n while (iter.hasNext()) {\n Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public int getBalance2() { 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" ] ] } }
Give a string representation of the digit set (the string length is the set size)
@Override public String toString() { String res = ""; for (Integer i: mySet) res += i; return res; }
[ "public String toString()\n\t{\t\n\t\tString elements = \"\";\n\t\tfor (int i=0; i<size; ++i) {\n\t\t\telements += container[i];\n\t\t\telements += \" \";\n\t\t}\n\n\t\treturn String.format(\"Total capacity is %d, Size of the set is %d ,Elements in the container are %s\",capacity, size, elements);\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND, WindowManager.LayoutParams.DIM_AMOUNT_CHANGED); ImageView iv = new ImageView(ToggleDialog.this); iv.setLayoutParams(new LayoutParams(...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes all resources used by the object.
@Override public void close() { if(isFile) { sc.close(); } }
[ "public void close() {\r\n\t\tthis.dispose();\r\n\t}", "@Override\n public void close() {\n objectPool.close();\n objectPool = null;\n\n closeEvents.fireEventClosed(this);\n closeEvents = null;\n }", "public void close() {\n\t\ttry {\n\t\t\tif (this._r != null) {\n\t\t\t\tthis....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of isAllowAll method, of class AuthorizationService.
@Test public void testIsAllowAll() { System.out.println("isAllowAll"); AuthorizationService instance = new AuthorizationService(); boolean expResult = false; boolean result = instance.isAllowAll(); assertEquals(expResult, result); // TODO review the generated test cod...
[ "@Override\r\n\tpublic boolean checkAuthorization(HttpServletRequest request) {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void testAuthAny() {\n\n\t}", "public void denyAllServices();", "public abstract boolean allPagesRequireAuth();", "@java.lang.Override\n public boolean hasAuthorization() {\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The number of jumbo frames transmitted over the interface.
public EthernetPortStatistics txJumboFrameCount(Long txJumboFrameCount) { this.txJumboFrameCount = txJumboFrameCount; return this; }
[ "public int frame_size(){\n return to_binary().length();\n }", "public int getNumOfPackets() {\n this.byteBuffer.rewind();\n this.byteBuffer.getLong(); // Skip checksum\n this.byteBuffer.getInt(); // Skip index flag\n return this.byteBuffer.getInt();\n }", "public l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Return type fixed from 'java.lang.Object' to match base method / JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object]
@Override // kotlin.p2243e.p2244a.AbstractC32522b public /* synthetic */ Unit invoke(Activity activity) { mo97410a(activity); return Unit.f111589a; }
[ "@Override\r\n protected List<Object> evaluateArgumentExpressions(JvmExecutable executable,\r\n List<XExpression> expressions, IEvaluationContext context, CancelIndicator indicator) {\n \r\n XMethodDef methodDef = assocations.getMethodDef(executable);\r\n List<Object> result;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required uint32 latest_update_time = 2;
public Builder clearLatestUpdateTime() { bitField0_ = (bitField0_ & ~0x00000002); latestUpdateTime_ = 0; return this; }
[ "public long getLastUpdate();", "public long getLastUpdated();", "@Override\n\tpublic long getLastUpdateTime() {\n\t\treturn this.updateTime;\n\t}", "Long getUpdated();", "public void setLastUpdated(long time);", "public java.lang.String getLastUpdate(){\n return localLastUp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Immediately sets the switch into on or off position. If state change is involved, listeners are invoked.
protected void setOn(boolean isOn) { boolean newState = (!reversed && isOn) || (reversed && !isOn); if (this.isOn != newState) { setPosition(this.isOn ? 0 : getLength()); launchStateChangeEvent(isOn); makeDirty(); } }
[ "public void switchOn() {\n switchedOn = true;\n }", "public void setOn(){\n\tstate = true;\n\n }", "public void switchLight()\n\t{\n\t\t_switchedOn = !_switchedOn;\n\t}", "public void TurnOn()\n\t{\n\t\tif( !isTurnedOn )\n\t\t{\n\t\t\tisTurnedOn = true;\n\t\t}\n\t}", "public void turnOn()\n\t{...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the components used in this class.
public SpecificClaimAdviceScene(GuiEventHandler guiEventHandler, KeyPressHandler keyPressHandler) { super(guiEventHandler, keyPressHandler); damageNoField = new TextField(); dateOfDamageField = new TextField(); damageTypeField = new TextField(); assessmentAmountField = new TextF...
[ "private void createUIComponents() {\n createComboBoxes();\n instantiateImageIcons();\n assignImageIcons();\n addOrderButtonListeners();\n addSizeBoxListeners();\n addSelBoxListeners();\n createTimer();\n createFeedbackLabels();\n }", "private void create...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Bundle call(String arg0, String arg1, Bundle arg2) throws RemoteException { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional fixed64 encounter_id = 1;
public Builder setEncounterId(long value) { copyOnWrite(); instance.setEncounterId(value); return this; }
[ "public byte getId() {\n/* 82 */ return 9;\n/* */ }", "int getControllableID(ISeedStorageControllable controllable);", "public void addEncounter(long encounterId, long patientId);", "@Override\n public long getID() {\n return 0;\n }", "IdCounter getIdCounter();", "public void getID() {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getter and setter CustomerID
public int getCustomerID() { return customerID; }
[ "public void setCustomerID(int ID)\n {\n customerID = ID;\n }", "public String getID() {\n return customerID;\n }", "public int getcustomerID(){\n\t\treturn customerID;\n\t}", "public String getCustomerID() {\n return CustomerID;\n }", "@Override\n public void setCustomerID...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ExternalReferencePort__PortAssignment_2" $ANTLR start "rule__NamedPort__NameAssignment_1" ../de.grammarcraft.flow.ui/srcgen/de/grammarcraft/flow/ui/contentassist/antlr/internal/InternalFlow.g:18428:1: rule__NamedPort__NameAssignment_1 : ( RULE_ID ) ;
public final void rule__NamedPort__NameAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../de.grammarcraft.flow.ui/src-gen/de/grammarcraft/flow/ui/contentassist/antlr/internal/InternalFlow.g:18432:1: ( ( RULE_ID ) ) // ../de.g...
[ "public final void rule__Protocol__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:23197:1: ( ( RULE_ID ) )\n // InternalOperationDsl.g:23198:2: ( RULE_ID )\n {\n // In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
java.lang.String getType() Returns the value of field 'value'.
public java.lang.String getValue() { return this._value; }
[ "public String getValueType() {\n return _valueType;\n }", "@Schema(description = \"A kind of value that the characteristic value can take on, such as numeric, text and so forth\")\n \n public String getValueType() {\n return valueType;\n }", "public String getfield_TypeValue() { return (Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get it from the cache
public static BufferedImageIcon getBossImage() { final BufferedImageIcon bii = BossImageCache.getCachedImage("boss"); return ImageTransformer.getTransformedImage(bii, BossImageManager.BOSS_IMAGE_SIZE); }
[ "public synchronized Object get(Object key) {\n\t\treturn cacheMap.get(key);\t\t\n\t}", "String getCache(String key);", "public Object getCachedObject();", "Serializable getCachedItem(String key);", "public Object get(String key)\n\t{\n\t\tif(cache == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn cache.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Permite modificar el nombre del participante
public void setNombre(String nombre) { this.nombre = nombre; }
[ "public void setName(String name) {\n if (name == null || !getUndoneParticipations().isEmpty()) {\n return;\n }\n this.name = name;\n }", "public void updateName();", "public void setName(String newname) {\n \n this.name = newname; \n }", "public String describeModifi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
type in our username
@When("^I type (.*) in the username input field$") public void enterUsername(String user) { login.setUserNameTextField(user); }
[ "public static void username() {\n System.out.println(\"You will now be asked to create a username and password.\");\n Scanner loginUser = new Scanner(System.in);\n System.out.println(\"Please create a username: \");\n\n // Print out username\n String userName = loginUser.nextLine...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Abator for iBATIS. This method corresponds to the database table PRODUCT_ATTR
public int deleteByPrimaryKey(BigDecimal productAttrId) throws SQLException { ProductAttr key = new ProductAttr(); key.setProductAttrId(productAttrId); int rows = sqlMapClient.delete("PRODUCT_ATTR.abatorgenerated_deleteByPrimaryKey", key); return rows; }
[ "com.google.protobuf.ByteString\n getProductSalesAttributeBytes();", "@java.lang.Override\n public com.google.ads.googleads.v7.common.ProductCustomAttributeInfo getProductCustomAttribute() {\n if (dimensionCase_ == 16) {\n return (com.google.ads.googleads.v7.common.ProductCustomAttributeInfo) dimen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column mapa.ctlmgpoele.cod_estado
public String getCodEstado() { return codEstado; }
[ "public String getestado() {\n return estado;\n }", "public int getCodigoMunicipio ()\n {\n return this.codigoMunicipio;\n }", "public String getEstadoById(int id_estado) throws Exception{\n\n String query = \"SELECT nombre_estado FROM tEstado \"\n + \"WHERE id_estado = '\"+ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether the counter has passed its limiting value. If the increment is positive the counter has passed its limit if it is greater than the limit. If the increment is less than zero the counter must be lower than its limit.
public boolean isFinished() { boolean finished = (step > 0 && counter >= limit) || (step < 0 && counter <= limit); if (tracingOn && finished) System.out.println(getName() + " has finished: " + counter); return finished; }
[ "@Test(expected = IllegalArgumentException.class)\n public void shouldHavePositiveLimit() {\n new LimitedCounter(0);\n }", "public boolean isExceedingLimit(){\n return this.currentDegree > this.maxDegree;\n }", "@Test\n public void TestSetLimit(){\n // TODO: Tests when \"if(0<=l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initialize your data structure here.
public MedianFinder() { smallQueue = new PriorityQueue<>((o1, o2) -> o2 - o1); bigQueue = new PriorityQueue<>(); }
[ "@Override\n\tpublic void initData() {\n\n\t\t\n\t}", "private void initializeData() {\n employees.put(1, \"Amos Burton\");\r\n employees.put(2, \"Julie Mao\");\r\n employees.put(3, \"Alex Kamal\");\r\n employees.put(4, \"James Holden\");\r\n employees.put(5, \"Josephus Miller\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get TCPClient from client pool
public synchronized static LANClient getClient( LANTarget target,ProcessorHandler handler) throws Exception { LANClient client = null; String mcuId = target.getTargetId(); if(mcuId == null || mcuId.length() < 1) { log.error("target mcuId is null"); ...
[ "private ConnectionToClient GetClientConnection(String clientName) {\r\n\t\tThread[] clients = this.getClientConnections();\r\n\t\tfor(int i = 0; i < clients.length; i++){\r\n\t\t\tif(((ConnectionToClient) clients[i]).getInfo(\"loginId\").equals(clientName))\r\n\t\t\t\treturn (ConnectionToClient) clients[i];\t\t\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor of the object.
public GetSelectionList() { }
[ "public Tanh() {\n\t}", "public Cachorro() {\r\n }", "protected ExampleObject() {\n super();\n }", "public Copome() {\r\n\t}", "protected GeometricObject() {\r\n\r\n\t}", "public Chord()\n\t{\n\t}", "public Kakuro() {\n\t}", "public Citas() {\n }", "public A231503() {\n this(3, 2)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse document list from json to DocumentGridDTO
private DocumentGridDTO parseDocuments(String documentsJson) throws JSONException { List<DocumentGridRowDTO> documentDTOs = new ArrayList<>(); JSONObject gridJson = new JSONObject(documentsJson); Integer numPages = gridJson.getInt("numPages"); Integer pageId = gridJson.getInt("pageId"); ...
[ "private Document parseJsonEntryToDocument(JsonElement entry, Map<String, List<String>> mapping) {\n\n // create a new document for the entry\n Document document = new Document();\n\n // go over each jsonPath and get all document fields that are mapped to the path as a list\n // this i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the user clicked on the 1st Window
@FXML private void selected1 (MouseEvent event){ selected = 0; }
[ "void selectedWindow();", "public void windowActivated(WindowEvent arg0) {\n\t\t\t\n\t\t}", "public void windowActivated(WindowEvent e) {\n }", "public void windowOpened(WindowEvent arg0) {\n\t\t\tSystem.out.println(\"Window1 opened\");\n\t\t\t//setVisible(false);\n\t\t}", "public void window...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Theme__Group__1" $ANTLR start "rule__Theme__Group__1__Impl" InternalAbppt.g:741:1: rule__Theme__Group__1__Impl : ( ( rule__Theme__NameAssignment_1 ) ) ;
public final void rule__Theme__Group__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAbppt.g:745:1: ( ( ( rule__Theme__NameAssignment_1 ) ) ) // InternalAbppt.g:746:1: ( ( rule__Theme__NameAssignment_1 ) ) { ...
[ "public final void rule__Name__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.semcolor.ui/src-gen/org/xtext/example/ui/contentassist/antlr/internal/InternalSemcolor.g:290:1: ( rule__Name__Group__1__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Size of prefetch buffer that will be used for background data prefetching. Usually it's better to keep this value equal to the number of workers. Default value: 2
public Builder prefetchBuffer(int size) { if (size < 0) size = 0; this.prefetchSize = size; return this; }
[ "@Test\n public void setLargePrefetchCount() {\n // Arrange\n // Since we cannot test receiving very large prefetch like 10000 in a unit test, DefaultPrefetchCount * 3 was\n // chosen\n final long sequenceNumber = testData.getPartitionProperties().getLastEnqueuedSequenceNumber();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Class constructor specifying file to read.
public MemoryMappedFileReaderIterable(File f) throws IOException { FileChannel channel = new RandomAccessFile(f, "r").getChannel(); long fileLength = f.length(); int buffArraySize = 1; if (fileLength > MAX_BUFFER_SIZE) { buffArraySize = (int) (fileLength / MAX_BUFFER_SIZE) + 1; } buffArray = new ByteBuff...
[ "public StreamReader(java.io.File file) {\r\n this(file,\"\");\r\n }", "public FileIO(String fileIn)\r\n\t{\r\n\t\tfile = fileIn;\r\n\t}", "public FileProcessor(String fileName) throws IOException{\n\t\t// Open the file\n\t\t\t\t\n\t\t\t\t fstream = new FileInputStream(fileName);\n\t\t\t\t Logger.writ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get TimeKeepingShift By Id
public Shift getTimeKeepingShiftById(long timeKeepingShiftId);
[ "int getShiftId();", "public Shift getShift(int id) throws SQLException{\n Shift s = new Shift();\n PreparedStatement stmt = conn.prepareStatement(\"SELECT * , HOUR(`start`)AS shiftstarthour, MINUTE(`start`)AS shiftstartminute, HOUR(`lunchstart`)AS lunchstarthour, MINUTE(`lunchstart`)AS lunchstartmi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_sys_mapp_apns_token
int updateByPrimaryKeySelective(SysMappApnsToken record);
[ "public interface TokensColumns extends BaseColumns {\n /**\n * The currency of the token.\n *\n * Type: INTEGER (ID into the Currencies table)\n */\n public static final String CURRENCY_ID = \"currency_id\";\n\n /**\n * The amount of the token.\n *\n * Type: TEXT (Decimal string)\n */\n public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the current directory of TESTAR, settings and output folders
private static void setTestarDirectory(Settings settings) { //Use the OS environment to obtain TESTAR directory /*try { testarDir = System.getenv(TESTAR_DIR_PROPERTY); }catch (Exception e) { testarDir = "." + File.separator; System.out.println(e); System.out.println("Please execute TESTAR from their e...
[ "void setDirectory() {\r\n\t\tdirectory = \"C:\\\\Users\\\\Kristin\\\\Desktop\\\\programming-challenge-challenge-weatherdata\\\\programming-challenge-challenge-weatherdata\\\\src\\\\main\\\\resources\\\\de\\\\exxcellent\\\\challenge\\\\\";\r\n\t}", "private static void initRootDir() {\n\t\tif (settingsRoot != nul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of variables declaration//GENEND:variables
@Override public void updateProducts() { productTable.setModel(DbUtils.resultSetToTableModel(productsModel.getResultSet())); }
[ "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" ] ] } }
Handle REST POST request and used to add Trailer to the table
@PostMapping("/") public ResponseEntity<Map<String, Object>> addCarrier (@RequestBody @Valid Trailer trailer) { Trailer savedTrailer = trailerDatabaseRegistry.addTrailer (trailer); Map<String, Object> map = Util.buildResponse (savedTrailer); return new ResponseEntity<> (map, HttpStatus.CREATED); }
[ "@PostMapping(\"/restaurants\")\n @ResponseStatus(HttpStatus.CREATED)\n @ResponseBody \n public void addRestaurants(@RequestBody Restaurant restaurant) {\n \t\t restaurantDAO.save(restaurant);\n }", "@POST(\"rental\")\n Call<ResponseBody> addRental(@Header(\"Authorization\") String token, @Body...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes all constrains for a set of variables. Modifies this state inplace.
protected void havocVars(final Collection<IProgramVarOrConst> vars) { // TODO Only calculate closure if necessary. Some vars may have no constraints to other vars => no closure assert assertNotBottomBeforeAssign(); mIsBottom = TVBool.UNCHECKED; final Set<Integer> numVarIndices = new HashSet<>(); for (final IP...
[ "public Builder clearConstraints() {\n bitField0_ = (bitField0_ & ~0x00000010);\n constraints_ = null;\n if (constraintsBuilder_ != null) {\n constraintsBuilder_.dispose();\n constraintsBuilder_ = null;\n }\n onChanged();\n return this;\n }", "private void reset()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update int dense data to int sparse row.
public abstract void updateIntDenseToIntSparse(ByteBuf dataBuf, ServerSparseIntRow row);
[ "void updateInt(int columnIndex, int value) throws SQLException;", "public void setData(int newData){\r\n\t\tdata = newData;\r\n\t}", "public abstract void setRow(int row, int[] data);", "SparseList(List<List<Integer>> db, int minSup) {\n\t\t// db: two-column arrayList listing the cells with value \"1\".\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Unable to fully structure code Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation Lifted jumps to return sites
@Override public InputStream getInputStream() throws IOException { if (!this.connected) { this.connect(); } if (this.os != null) throw new IOException("Already opened for output"); object = this.is; if (object != null) { return object; } ...
[ "public final void run() {\n /*\n r10 = this;\n r2 = 0;\n r0 = 0;\n r5 = com.loc.ew.d(r0);\t Catch:{ RejectedExecutionException -> 0x0141, Throwable -> 0x0111, all -> 0x012c }\n r0 = 1;\n r4 = com.loc.ew.d(r0);\t Catch:{ RejectedExecutionException -> 0x0146, Throwabl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares this Filter object to another object.
public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof FilterImpl)) { return false; } return this.toString().equals(obj.toString()); }
[ "@Override\n boolean areSerializedFieldsEqual(Filter o) {\n if (o == this) {\n return true;\n }\n if (!(o instanceof KeyOnlyFilter)) {\n return false;\n }\n KeyOnlyFilter other = (KeyOnlyFilter) o;\n return this.lenAsVal == other.lenAsVal;\n }", "@Override\n\tpublic boolean equals(Ob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PredLit__Group__0" $ANTLR start "rule__PredLit__Group__0__Impl" InternalCrySL.g:9395:1: rule__PredLit__Group__0__Impl : ( ( rule__PredLit__Group_0__0 )? ) ;
public final void rule__PredLit__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCrySL.g:9399:1: ( ( ( rule__PredLit__Group_0__0 )? ) ) // InternalCrySL.g:9400:1: ( ( rule__PredLit__Group_0__0 )? ) {...
[ "public final void rule__PredLit__Group_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalCrySL.g:9474:1: ( rule__PredLit__Group_0__1__Impl )\r\n // InternalCrySL.g:9475:2: rule__PredLit__Group_0__1__Impl\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for speed of moving entity
public int getSpeed() { return speed; }
[ "public double getSpeed()\n {\n return this.speed;\n }", "public float getSpeed() {\n return movementVector.getMagnitude();\n }", "@Override\n public double getSpeed() {\n return (distance / time) + (downstreamSpeed - upstreamSpeed);\n }", "public float getSpeed() { return Spee...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the action to perform when the parent form is submitted.
public void setOnSubmit(String action) { setOnAction("onSubmit", action); }
[ "public void submitParent()\n {\n }", "public void actionPerformed (ActionEvent ae)\n {\n ((ActionListener)parent).actionPerformed (ae);\n }", "Navigation setSubmit();", "public WOActionResults performParentAction(String actionName)\r\n\t{\r\n\t\t// Pushes the 'property' binding setting it to the...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/bggrass = new JPanel(); bggrass.setBounds(0, 0, sfw, sfh); bggrass.setVisible(true); bggrass.setLayout(null); this.add(bggrass);
public void regGraphics() { lose = new JLabel("Verloren"); lose.setFont(new Font("Orbitron", Font.BOLD, 85)); lose.setBounds(30, 150, 550, 160); lose.setVisible(false); lose.setForeground(Color.RED); this.add(lose); lose2 = new JLabel("Press Enter to restart / Escape to quit"); lose2.setFont(new F...
[ "public Playground()\r\n\t{\r\n\t\tsuper();\r\n\t\tsetDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\t\t// Programm wird beim schließen des Fensters beendet\r\n\t\tint frameWidth = 1800;\t\t\t\t\t\t\t\t\t\t\t// Größe des Spielfensters\r\n\t\tint frameHeight = 1000;\r\n\t\tsetSize(frameWidth, frameHeight);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The maximum number of results per page to return. If the number of available results is larger than [page_size], the service returns a [ListPlacementGroupInstancesResponse.next_page_token] that can be used to get the next page of results in subsequent list requests. int64 page_size = 2;
public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; }
[ "@ApiModelProperty(example = \"1000\", required = true, value = \"The number of data elements returned, aka the size of the current page. If the requested page does not have enough elements to fill a page at the requested page size, this field should indicate the actual number of elements returned.\")\n\t\n\n\tpubl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the height of the resulting chart in pixels.
public ChartDestination setChartHeight(final int chartHeight) { this.chartHeight = chartHeight; return this; }
[ "public void setHeight(double h) {this.height = h;}", "public void setHeight(int h) { height = h; }", "public void setHeight(double newVal) {\n height = newVal;\n }", "public void setHeight(float height)\n {\n }", "public void setHeight(int value) {\n this.height = value;\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Channel Name' containment reference. If the meaning of the 'Channel Name' containment reference isn't clear, there really should be more of a description here...
DynamicValue getChannelName();
[ "public final String getChannelName() {\n return mChannelName;\n }", "public String getChannelName() {\r\n return ChannelName;\r\n }", "public String getChannelname() {\n return channelname;\n }", "private String getChannelName() {\n\t\treturn self().path().name();\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metoda kojom dodajemo komponente na layoutus
private void arrangeComponents() { addComponent(tabs); setSpacing(true); setMargin(true); }
[ "public EstoqueView() {\n initComponents();\n IconeSistema icone = new IconeSistema();\n icone.InserirIcone(this);\n setLocationRelativeTo(null);\n controller.bloqueioInicial();\n }", "public interface View extends IConfigView {\n\n /**\n * Ajoute l'onglet Gene...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the idNumber variable of this student class.
void setIdNumber(int idNumber);
[ "public void setIDNumber(int IDNumber){\r\n \tthis.IDNumber = IDNumber;\r\n }", "public void setIdNumber(String idnum) {\r\n\t\tthis.idnum = idnum;\r\n\t}", "public void setNumber(int id);", "public void setId(int Id) {\n this.number = Id;\n }", "private void setStudentID() {\n id++;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new instance of this class.
public SubmittedDataResponse(Collection<SubmittedFormData> submittedData) { this.submittedData = submittedData; }
[ "public Create() {\n\t\t\tsuper();\n\t\t}", "public void create() { }", "private T newInstance() {\r\n T result;\r\n try {\r\n result = constructor.newInstance();\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n }\r\n if (isConfigurable ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ WARNING Removed back jump from a try to a catch block possible behaviour change. Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public ViewVisitor readEventBinding(JSONObject object, ViewVisitor.OnEventListener onEventListener) throws BadInstructionsException { String string2; String string3; try { string2 = object.getString("event_name"); string3 = object.getString("event_type"); obje...
[ "private void clearExceptionalCompletion()\n/* */ {\n/* 520 */ int i = System.identityHashCode(this);\n/* 521 */ ReentrantLock localReentrantLock = exceptionTableLock;\n/* 522 */ localReentrantLock.lock();\n/* */ try {\n/* 524 */ ExceptionNode[] arrayOfExceptionNode = exception...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a car to the Car ArrayList
public void addCar(Car incommingCar){ carsStored.add(incommingCar); //add the car to the list }
[ "public static void add(NewCar car){\r\n carList.add(car);\r\n }", "public void addCar(Car car){\n carSystem.add(car);\n }", "public void addCar(Car car) {\r\n\t\tcarParkArray.add(car);\r\n\r\n\t}", "public void addCar(Car another)\n {\n cars.add(another);\n }", "private void a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
builds up an instance of CUriosity from another instance of Curiosity
public Curiosity(Curiosity otherCuriosity) { this.curiosityDescription = otherCuriosity.curiosityDescription; }
[ "public Pathology(Pathology source) {\n if (source.PathologicalType != null) {\n this.PathologicalType = new String(source.PathologicalType);\n }\n if (source.InfiltrationDepth != null) {\n this.InfiltrationDepth = new String(source.InfiltrationDepth);\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the time to wait between running the MapReduce phase on accumulated map values.
public void setReduceFrequency(int reduceFrequency) { this.put("reduce_freq", reduceFrequency); }
[ "private void waitTime(){\n this.waitTime(timespan.get());\n }", "public void setWaitingTime(int time) {\n waitingTime += time;\n }", "private void setSleepTime(){\r\n\t\t//Sets the time to each phase on minutes\r\n\t\tthis.lightSleep = (this.totalSleep*this.lightSleep)/100;\r\n\t\tthis.norm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find out if a single point is contained in the circle.
public boolean contains(Vector p) { return c.dist(p) <= r * (1 + Config.EPSILON); }
[ "private boolean isPointInCircle(int x, int y, int a, int b, int radius) {\n\t\tint d2 = (x - a) * (x - a) + (y - b) * (y - b);\n\t\treturn (d2 > radius * radius); // return true when the point is in the\n\t\t\t\t\t\t\t\t\t\t// circle\n\t}", "boolean contains(double x, double y){\n double distance = Math.sqrt(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
[ "private String toIndentedString(Object o)\n/* */ {\n/* 607 */ if (o == null) {\n/* 608 */ return \"null\";\n/* */ }\n/* 610 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString(Object o)\n/* */ {\n/* 164 */ if (o == null) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list with the PSMs of this ReportPeptide.
public List<PSMReportItem> getPSMs() { return new ArrayList<PSMReportItem>(psmList); }
[ "public List<WebReportedPeptide> getPeptideList() {\n\t\treturn peptideList;\n\t}", "public List<String> getSnp() {\r\n return snp;\r\n }", "@Override\n\tpublic List<Spa> getAllSpa() {\n\t\treturn null;\n\t}", "java.util.List<MmsPar>\n getMmsParsList();", "public ArrayList<Goods> getSpirits...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a random element from the collection.
public int getRandom() { return nums.get(random.nextInt(nums.size())); }
[ "public static <T> T randomElement(Collection<T> collection) {\n Preconditions.checkNull(collection);\n int size = collection.size();\n if (size > 0) {\n int randomIndex = rnd().nextInt(size);\n if (collection instanceof RandomAccess) {\n List<T> list = (Lis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A method that returns the Recipient email
public String getRecipEmail() { return recipEmail; }
[ "java.lang.String getSenderEmail();", "java.lang.String getEMail();", "public String getRecipient() {\r\n return recipient;\r\n }", "public String getRecipient() {\r\n return this.recipient;\r\n }", "public String getRecipient() {\n return recipient;\n }", "public String getRecip...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Seals this list, i.e. makes it unmodifiable.
@NotNull public FilterSet<E> seal() { if (!sealed) { if (entries == null) { entries = Collections.emptyList(); } else { entries = Collections.unmodifiableList(entries); } sealed = true; } return this; }
[ "@java.io.Serial\n private Object writeReplace() {\n return new UnmodifiableList<>(list);\n }", "public void makeUnmodifiable() {\n modifiable = false;\n }", "public List<E> unmodifiable() {\r\n return ( List<E> ) super.unmodifiable();\r\n }", "@Nonnull\n public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
variables which holds the index of the columns following by aisles
public static void main(String[] args) { //main method for (int i = 0; i < 26; i++) { //assign to all the seats default value O (open) for (int j = 0; j < 10; j++) seats[i][j] = 'O'; } //invoke the method that reassigns the values...
[ "Integer getColumnIndex();", "protected void calculateAmountIndexes()\n {\n int n = colsforkey.size();\n for (int i=0;i<n;i++)\n {\n if (fullcols.get(i).intValue()!=colsforkey.get(i).intValue())\n {\n relativeamountindex = i;\n absoluteam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000
public abstract <L> void zza(Object obj, Object obj2, long j);
[ "private B000066() {\r\n\r\n\t}", "@Override\n\tpublic int modifiers() {\n\t\treturn 0;\n\t}", "protected void method_5557() {}", "@Override\r\n\tpublic int getAccessCode() {\n\t\treturn 0;\r\n\t}", "public abstract void mo30462c();", "@Override\n public int utilite() {\n return 0;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
aka getDelimitedList, reduceDelims, combineDelims, join :>
public static String joinStrings(Iterable<?> items, char delimiter) { StringBuilder buff = new StringBuilder(); appendDelimitedList(items, delimiter, buff); return buff.toString(); }
[ "private static String join(final List<String> list, final String delim) {\r\n if (list == null || list.isEmpty()) return \"\";\r\n \r\n StringBuilder sb = new StringBuilder();\r\n for (String s : list) sb.append(s + delim);\r\n sb.delete(sb.length() - delim.length(), sb.length(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is invoked after any operation in the tree that set/put a node from underlying store
abstract protected void releaseNodes();
[ "public void set( T obj ){\n prevNode.set(node_index_prev,obj);\n// lastItemReturnedT = obj;\n }", "void setNode(Node node);", "@Override\n public void set(Node value) {\n Triple baseTriple = graph.getTripleReplacements().getOrDefault(existingTriple, existingTriple);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Format by property type
@Override protected String formatPropertyValue(Object rowId, Object colId, Property property) { if (property.getType() == Long.class && colId == "orderItem.externalOrderId") { String system = workstation.getItem(rowId).getEntity().getOrderItem().getExternalSystemName(); St...
[ "protected abstract void formatComplexProperty(StringBuilder toBuilder, String tcPropertyName, Object toValue, StringFormatter toFormatter, StringFormatType toType);", "protected String formatValue(String type, Object value) {\r\n\tif (value == null) {\r\n\t return null;\r\n\t}\r\n\tif (type == null) {\r\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a seed array based on the token string from the GridDimensions enum
private char[] createSeed() { char[] tokens = dimensions.getTokenString().toCharArray(); return ArrayMethods.suffleCharArray(tokens); }
[ "public void generateGrid() {\n\n this.mainGrid=new String[heightY][widthX];\n for (int i = 0; i < heightY; i++) {\n for (int j = 0; j < widthX; j++) {\n mainGrid[i][j] = generateRandomZeroOrOne();\n }\n }\n }", "private char[] c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a textual representation of the object in standard output.
public String toString() { StringBuilder res = new StringBuilder(name + ":"); for ( Edge e : edges ) { res.append(" ="); res.append(e.weight()); res.append("=> "); res.append(e.to(this).name()); } return res.toString(); }
[ "public String outputObjectToFile() {\n String ret = \"\";\n String eol = System.getProperty(\"line.separator\");\n ret = classNameOutput() + eol + myName + eol + represent + eol + String.valueOf(passable) + eol + frontColor.getColor() + eol + String.valueOf(visible) + eol + eol;\n ret =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
value to be return , vl= validated value from table cell , and return should be for assinging to data mode.
public Object onValueChange(int rowno, String colname, Object vl);
[ "public final Object evaluate(Table vt, int row) {\n return null;\n\t}", "public void validate (Object value, int row, int col) throws NumberFormatException, ClassCastException { \r\n\r\n\t\t\tterriblyWrong = false;\r\n\r\n\r\n\t\t\tif (col==0) { \r\n\t\t\t\tdata[row][col] = value;\r\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .NodeEndpoint node_endpoints = 1;
public Builder addNodeEndpoints( NodeEndpoint.Builder builderForValue) { if (nodeEndpointsBuilder_ == null) { ensureNodeEndpointsIsMutable(); nodeEndpoints_.add(builderForValue.build()); onChanged(); } else { nodeEndpointsBuilder_.addMessage(builderForVa...
[ "public Node secondEndpoint(){\n\t\treturn v;\n\t}", "GraphNode secondEndpoint(){\n return node2;\n }", "public int getNumEndpoints() {\n\t\treturn 0;\r\n\t}", "@Test\n public void multipleEndpoints() {\n RemoteEndpoint ep1 = new RemoteEndpoint().setServiceName(TEST_SERVICE1).setEndpoint(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: bM
private boolean m85638bM() { return this.f75327V.isMyProfile(); }
[ "void mo12389a(C36486bl c36486bl, C36487bm c36487bm);", "public void mo28221a() {\n }", "void mo14470b();", "void mo12992b();", "public abstract void mo30461b();", "public abstract void mo2121b();", "void mo12202b();", "public void mo3914b() {\n }", "public abstract az mo1423b();", "void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
firmy posortowane po ilosc kasy za paliwo
private static List<Company> zad22 (List<Company> firmy){ return firmy.stream() .sorted(new Comparator<Company>() { @Override public int compare(final Company o1, final Company o2) { double zaPaliwo01 = o1.getPurchaseList().stream(...
[ "public void sprejmiPotezo(int polozaj, Karta karta) {\n }", "private void przesunSamochody(Pas pas) {\n int dlugoscPasa = pas.getDlugosc();\n for (int komorka = dlugoscPasa - 1; komorka >= 0; komorka--) {\n// Pojazd pojazd = pas.getZawartosc(i);\n Pojazd pojazd = pas.getZaw...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the top right position.
public Position getTopRight() { return topLeft.copy().add(getWidth(), 0.0); }
[ "public int getRightTop() {\n return rightTop_;\n }", "public Point getRightTop()\r\n\t{\r\n\t\treturn new Point(xRightTop, yRightTop);\r\n\t}", "public Pos getTopRight() {\n\t\t\treturn new Pos(position.getX() + size.getWidth(), position.getY());\n\t\t}", "public Point2D.Double getRightTop(){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'EntityTypeIdentifier' field has been set.
public boolean hasEntityTypeIdentifier() { return fieldSetFlags()[2]; }
[ "public boolean hasEntityType() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean hasEntityGuid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasValidIdentifier() {\n\t\treturn !getIdentityProvider().equals(\"unknown\");\n\t}", "@java.la...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Functional interface for HTTP responses returned from outgoing HTTP requests.
@FunctionalInterface public interface HTTPResponseListenerBase { /** * Invoked when an HTTP response is received by this listener. * */ boolean responseHTTP(HTTPResponseReader reader); }
[ "HttpResponse response() throws IOException;", "public interface Response\n{\n\t/* HTTP Response */\n\n\t/**\n\t * Current value of HTTP status code.\n\t * By default is 200.\n\t */\n\tpublic int getStatus();\n\n\tpublic void setStatus(int status);\n\n\t/**\n\t * Adds header to the response.\n\t * Must be invoke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the ship is hit as a result of an action.
public ActionResult isHit(Coordinate c, Ship attacker, int damage) { if (c == null) return new ActionResult(c, attacker.getLocation(), ShotResult.MISS, -1, id); for (Ship s : ships.getPlayerShips(this)) { if (s.isHit(c, damage)) { return new ActionResult(c, attacker.getLocation(), s.isSunken() ? ShotResul...
[ "public int hasShip(){\n if(!wasShot){\n return 0; //We don't know\n } else{\n if(ship!=null){\n return 1;\n } else{\n return -1; }\n }\n }", "public boolean isHit()\n\t {\n\t retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .CMsgGMSClientServerQueryResponse.Server servers = 1;
java.util.List<? extends com.steam.proto.SteammessagesClientserver2.CMsgGMSClientServerQueryResponse.ServerOrBuilder> getServersOrBuilderList();
[ "java.util.List<SteammessagesClientserver2.CMsgGMSClientServerQueryResponse.Server> \n getServersList();", "public java.util.List<? extends SteammessagesClientserver2.CMsgGMSClientServerQueryResponse.ServerOrBuilder> \n getServersOrBuilderList() {\n return servers_;\n }", "public java.util...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
called when on activity start gets the intent and the bundle with extras and gets again the spotify authentication request as in MainActivity. Defines the buttons and functionality checks if the algorithm has to sort decreasing or increasing
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.sorted_playlist); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); Intent intent = getIntent(); Bundle bundle = intent.getExtras(); ...
[ "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n SharedPreferences sharedPref = getSharedPreferences(\"myprefs\", 0);\n String login = sharedPref.getString(\"Login\", \"\");\n String password = sharedPref.getString(\"Password\", \"\");\n Log.v(LOG_TAG, lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void updateStructure(DatabaseObject object, PrimitiveDataStructureBase base) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the ui listener will be sent last, so this will do it..
public void addTreeModelListener(TreeModelListener l) { uiModelListener = l; }
[ "@Override\n\tprotected void onGuiEvent(GuiEvent arg0) {\n\t\t\n\t}", "@Override\n public void run() {\n listenerUI.access(new Runnable() {\n @Override\n public void run() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses the Speed streams
public DataStream<SpeedObservation> parseSpeedStreams(DataStream<Tuple3<String, String, Long>> rawStream) { DataStream<SpeedObservation> speedObservationDataStream = rawStream .filter(raw -> raw.f1.contains("speed")) .map(new MapFunction<Tuple3<String, String, Long>, SpeedObserv...
[ "@Override\n public void run() {\n int initCap = 1024 * 16;\n String line;\n //inputStream , read data line by line from it\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n Operation operation;\n //data pre second record\n List<O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Metodo de traducao Portugues/Ingles
public static void traduzir() { ARQUIVO = Tradutor.traduzir("Informe oarquivo da seqüência", "Inform the sequence file"); SEQUENCIA = Tradutor.traduzir("Seqüencia", "Sequence"); TIPO_DADO = Tradutor.traduzir("Informe o tipo de dado", "Inform the type of data"); ARQUIVO_SEQUENCIA_TIPO = Tradutor.traduzir("In...
[ "public void rodrigues01() {\n\n objetivo = \"Mensurar o VO2máx. em sujeitos acima de 07 anos de idade, verificando a menor unidade de tempo utilizada para percorrer correndo a distância de 1600 m.\";\n material = \"Um avaliador; pista de atletismo com 400 m demarcada a cada 10m,cronômetro; sinalizado...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register a namespace prefix
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { java.lang.String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(na...
[ "public void addNamespace(String pPrefix) {\n // check if already registered.\n if (!namespaces.containsKey(pPrefix)) {\n LOGGER.debug(\"Add namespace for prefix '{}'\", pPrefix);\n namespaces.put(pPrefix, NAMESPACE_PREFIX + pPrefix);\n }\n }", "private java.lang.String registerPrefix(javax.xm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Leave Approve Reject Mail Sender's email ID needs to be mentioned
public static void send1(String to, String subject, String fromDate ,String toDate,double days,String status,String reason, int emp_code, String name) { String from = "hrms@sltl.com"; String pass ="hrms#123"; // Recipient's email ID needs to be mentioned. String host = "smtp.gmail.com"; ...
[ "@Override\n\tpublic boolean rejectInvitation(String companyName, String userEmailId) {\n\t\treturn false;\n\t}", "public void sendDeclineEmail(String to, String additionText) {\n\n }", "void resendVerificationEmailForCurrentUser();", "public void setApprovalRejectReasonCode(String value) {\n this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: TO OVERRIDE ON SUCCESS URL HANDLER
@Override public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException { System.out.println("LOGIN SUCCESS HANDLER"); response.getWriter().println(determineTargetUrl(authentication)); response.getWriter().f...
[ "public abstract void urlResult(String url);", "private RedirectURL(){\n\t\t\n\t}", "public String getUrl()\n/* */ {\n/* 302 */ return this.url;\n/* */ }", "@Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XConstructorCall__Group_3_2__0__Impl" $ANTLR start "rule__XConstructorCall__Group_3_2__1" ../de.emueller.xtext.recordmapper.ui/srcgen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:13113:1: rule__XConstructorCall__Group_3_2__1 : rule__XConstructorCall__Group_3_2_...
public final void rule__XConstructorCall__Group_3_2__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../de.emueller.xtext.recordmapper.ui/src-gen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:13117:1: ( rule_...
[ "public final void rule__XConstructorCall__Group_3_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:20399:1: ( rule__XConstructorCa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the input. This should only be called, if needsInput() returns true.
public void setInput( byte[] buf){ setInput(buf,0,buf.length); }
[ "public void setInput(boolean input) {\r\n\t\tsuper.setStoredOutput(input);\r\n\t\tsuper.setInput(0, input);\r\n\t}", "public void setInput(Object input)\n\t\tthrows IOException\n\t{\n\t\tif (lexer == null)\n\t\t\tthrow new IllegalStateException(\"Can not set input when no lexer was defined!\");\n\t\tclear();\t//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
definition de la taille de la grille
@Override public void resize(int width, int height) { renderer.setSize(width*3/5, height*3/5); }
[ "public int taille() \r\n\t\r\n\t{\r\n return taille;\r\n\t}", "public int tailleGrilleY(){\n\t\t \treturn Math.abs(this.MinY())+this.MaxY();\n\t\t }", "public Leon(){\r\n super(0.5f, 11.3f, 4, \"Amarillo\", true);\r\n this.numGarrasPata = 4;\r\n this.melena = false...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }