query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Removes the current employee and disables all but the Employee Tab.
public void logout() { this.currentEmployee = null; this.disable(); }
[ "public boolean deActivateEmployee(String employeeId);", "@RolesAllowed(\"ADMIN\")\n public void disableEmployee(Employee e) {\n e.setStatus(false);\n e.setLasttype(e.getType());\n e.setType(Employee.EmployeeType.Disabled);\n employeefacade.edit(e);\n logger.warn(e.getLasttyp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the rate rule of the variable
public HierarchicalNode getRateRule() { return rateRule; }
[ "public java.lang.String getRateRule() {\r\n return rateRule;\r\n }", "private double getDynamicRate(String resourceName) {\n logger.trace(\"BEGIN double getDynamicRate(String resourceName)\");\n double rate;\n RateEngineResponse response;\n RuleEngineClient client = new Rule...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method Name: stringHash Parameters: String s Return value(s): int Partners: None Given a string, will return the hash value of that entire string, using a base 26 number system to create the hash.
private int stringHash(String s) { char[] characters = new char[s.length()]; int[] hash = new int[s.length()]; int sum = 0; //Goes through the string given and assigns each character in that string a corresponding spot in the array characters for (int x = 0; x < s.length(); ...
[ "public String computeHash(String s);", "private static String hash(String s) {\r\n\t\treturn Hashing.sha256().hashString(s, StandardCharsets.UTF_8).toString();\r\n\t}", "public static int hashString(String s) {\n return hashString(s, Charset.defaultCharset());\n }", "int hash(String s) {\n\t\tint h...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Takes atom signature and reconstructs CDK molecule
public IAtomContainer reconstruct(String signature) throws CDKException { ColoredTree tree = AbstractVertexSignature.parse(signature); MoleculeFromSignatureBuilder builder = new MoleculeFromSignatureBuilder(DefaultChemObjectBuilder.getInstance()); builder.makeFromColoredTree(tree); IAtom...
[ "private void preprocessMolecule(IAtomContainer original) throws IOException, CDKException \n {\n \tbondEnergies = new HashMap<String, Double>();\n try \n {\n \tInputStream istream = this.getClass().getClassLoader().getResourceAsStream(\"/bondenergies.txt\");\n\n \t // Get the objec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the dataFormat option.
public static Options dataFormat(String dataFormat) { return new Options().dataFormat(dataFormat); }
[ "public void setDataFormat(String dataFormat) {\n this.dataFormat = dataFormat;\n }", "public Options dataFormat(String dataFormat) {\n this.dataFormat = dataFormat;\n return this;\n }", "@JsonSetter(\"target_storage.data_format.type\")\n private void setDataFormat(String dataFormat) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The superclass of proxylets that handle Responses.
public interface HttpResponseProxylet extends Proxylet { /** * Possible return code of method 'accept'. * <br/>The proxylet accepts the message and will not block while processing it */ public static final int ACCEPT = 0x03; /** * Possible return code of method 'accept'. * the pr...
[ "protected abstract TResponse createResponseInstance();", "public interface HttpResponse {\n /**\n * Get the map of response properties.\n * <p>\n * A response property is an application-defined property that may be\n * added by the user, a filter, or the handler that is managing the\n * co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
3 bit6ycxo1iqd2al92y8gkzlvb static inline box box_intersect(box b0, box b1)
public static Object box_intersect(Object... arg) { UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1) UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b; UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL....
[ "public static Object boxf_intersect(Object... arg) {\r\nUNSUPPORTED(\"ape22b8z6jfg17gvo42hok9eb\"); // static inline boxf boxf_intersect(boxf b0, boxf b1)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"c57pq0f87j6dnbcvygu7v6k84\"); // boxf b;\r\nUNSUPPORTED(\"9slu7bixuymxttjic76ha2nl2\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column biz_apply_installment.LEASE_TIME
public Date getLeaseTime() { return leaseTime; }
[ "public static Long leaseTime(){\n\t\treturn Long.parseLong(properties.getProperty(\"LEASE_TIME\"));\n\t}", "public java.sql.Time getREQ_END_TIME()\n {\n \n return __REQ_END_TIME;\n }", "public static Long getRemovalTime() {\n\t\treturn Long.getLong(pkgNameDot + CONF_DB_REM, -1l);\n\t}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
to test validate token throwing exception
@Test public void testValidateTokenThrowsException() { when(authClient.verifyToken("token")).thenThrow(RuntimeException.class); assertThrows(InvalidTokenException.class, () -> ipTreatmentOfferingsServiceImpl.validateToken("token")); }
[ "public void testImplementation_validToken() throws Exception;", "public void testImplementation_invalidToken() throws Exception;", "@Test\n public void validateJwtToken_simpleWrongToken_failure() {\n String jwtToken = testHelper.createAndLoginAccount();\n assertThatThrownBy(() -> jwtTokenValid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for property rowId.
public String getRowId() { return rowId; }
[ "@Override\r\n\tpublic Object getRowKey() {\n\t\treturn rowId;\r\n\t}", "private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }", "public final String getRowIdentifier() {\n return properties.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column PMSTRADE.QTY_TEXT
public String getQTY_TEXT() { return QTY_TEXT; }
[ "public void setQTY_TEXT(String QTY_TEXT) {\r\n this.QTY_TEXT = QTY_TEXT == null ? null : QTY_TEXT.trim();\r\n }", "public java.lang.String getATPQTY() {\n return ATPQTY;\n }", "public BigDecimal getQTY() {\r\n return QTY;\r\n }", "String getRqText();", "java.lang.String getQua...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .POGOProtos.Rpc.RecommendedSearchProto recommended_search = 2;
@java.lang.Override public java.util.List<? extends POGOProtos.Rpc.RecommendedSearchProtoOrBuilder> getRecommendedSearchOrBuilderList() { return recommendedSearch_; }
[ "@java.lang.Override\n public POGOProtos.Rpc.RecommendedSearchProtoOrBuilder getRecommendedSearchOrBuilder(\n int index) {\n return recommendedSearch_.get(index);\n }", "public POGOProtos.Rpc.RecommendedSearchProtoOrBuilder getRecommendedSearchOrBuilder(\n int index) {\n if (recommendedSearc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays a click heatmap for a given link ID.
@GetMapping("/heatmap") public ModelAndView Heatmap_page(@RequestParam(value = "linkID", defaultValue = "") String value) { ModelAndView result = new ModelAndView(); if (value.equals("")) { result.addObject("control", true); result.addObject("linkid", ""); } else { ...
[ "private void addClickLayer(@NonNull Style loadedMapStyle) {\n loadedMapStyle.addImage(CLICK_ICON_ID, BitmapFactory.decodeResource(\n TilequeryActivity.this.getResources(), R.drawable.red_marker));\n\n loadedMapStyle.addSource(new GeoJsonSource(CLICK_CENTER_GEOJSON_SOURCE_ID,\n FeatureCollection.fro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests matching an Array of URIs against an expected result
private void checkUris(String[] uris, String expectedMimeType) { for (String uri : uris) { String mimeType = mContentResolver.getType(Uri.parse(uri)); Assert.assertEquals("Failed for " + uri, expectedMimeType, mimeType); } }
[ "@Test\n public void filterUrisTest() {\n // TODO: test filterUris\n }", "public void testUriMatcher() {\n UriMatcher testMatcher = RecipeProvider.buildUriMatcher();\n\n assertEquals(\"Error: The INGREDIENT URI was matched incorrectly.\",\n testMatcher.match(TEST_INGREDIE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets whether the Column at position contains scalar data or not.
public void setColumnIsScalar(boolean value, int index) { columns[index].setIsScalar(value); }
[ "public boolean isColumnScalar(int index) {\n return columns[index].getIsScalar();\n }", "public boolean isScalar() {\n return size == 1;\n }", "public abstract boolean isScalarType();", "public void setColumn(String column, String s)\n {\n String canonicalized = canonicalizeAndCheck(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the current state of the Kripke Structure
public void printCurrentState() { currentState.print(); }
[ "private void printCurrentState(){\n System.out.print(\"\\u001B[2J\\u001B[3J\\u001B[H\");\n\n System.out.print(\" ╔═══════════════════╗\\n\" +\n \" ║ TOTAL COUNTER ║\\n\" +\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method runScript is the real script content. It is supposed to be implemented by Script subclasses.
public abstract void runScript() throws Exception;
[ "public void run() {\r\n\t\tif (target.length == 1) {\r\n\t\t\tscript.runScript(text);\r\n\t\t} else {\r\n\t\t\tscript.runScript(text, target);\r\n\t\t}\r\n\t\tscript = null;\r\n }", "void executeScript(Readable script) throws IOException;", "public void runScript(String script) {\n Platform.runLater(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Exists the innermost scope for the type namespace only. Types declared since the last enterTypeScope call will no longer be accessible.
public void leaveTypeScope() { depth--; typeTable = typeStack.removeFirst(); debug("Leave type scope."); }
[ "public void enterTypeScope() {\n typeStack.addFirst(typeTable);\n depth++;\n debug(\"Enter type scope.\");\n }", "public static boolean hasOuterContext(TypeElement type) {\n if (getDeclaringClass(type) == null) {\n return false;\n }\n // Local types can't be declared static,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fin de CONSTRUCTEUR COMPLET.______________________________________ method convertirListModelEnEntities( List&lt;ICivilite&gt; pList) : convertit une Liste d'Objets Metier en liste d'Entities JAXB.
private List<CiviliteEntityJAXB> convertirListModelEnEntities( final List<ICivilite> pList) { if (pList == null) { return null; } final List<CiviliteEntityJAXB> resultat = new ArrayList<CiviliteEntityJAXB>(); for (final ICivilite objetMetier : pList) { if (objetMetier != nu...
[ "protected abstract List<V> transEntityToView(List<E> entityList);", "private List<ObjetivoDetailDTO> objetivosListEntity2DTO(List<ObjetivoEntity> entityList) {\r\n List<ObjetivoDetailDTO> list = new ArrayList();\r\n for (ObjetivoEntity entity : entityList) {\r\n list.add(new ObjetivoDeta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List of payment options that are supported
@ApiModelProperty(value = "List of payment options that are supported") public List<PaymentOptionsEnum> getPaymentOptions() { return paymentOptions; }
[ "List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);", "String getSupportedPaymentGateways();", "List<String> getSupportedPaymentGatewaysAsList();", "ImmutableList<SchemaOrgType> getAcceptedPaymentMethodList();", "@Bean\n public PaymentOptions paymentOptions() {\n return new Paym...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getDevices method, of class MockNetworkManager.
@Test public void testGetDevices() throws Exception { System.out.println("**** getDevices *****"); List result = instance.getDevices(); assertNotNull(result); assertEquals(5, result.size()); }
[ "@Test\r\n public void testDeviceList()\r\n {\r\n \tSystem.out.println( \"\\ntestDeviceList\\n\" );\r\n\r\n Devices deviceHolder = PerfectoMobile.instance().devices();\r\n HandsetCollection deviceList = deviceHolder.getDevices();\r\n \r\n Assert.assertTrue( ( deviceList.getHands...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Task: Resets playDeck by getting all cards from the saveDeck.
public void reset() { // implement this method! playDeck.clear(); playDeck.addAll(saveDeck); }
[ "public void resetDeck() {\n cards.addAll(removedCards);\n removedCards.clear();\n }", "public void resetDeck() {\n\t\tclearDeck();\n\t\tmakeDeck();\n\t\tshuffle();\n\n\t}", "public static void resetDeck(){\n currentCard = 0;\n }", "public void reset() {\n deck.reset();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares this ScalarMap with another ScalarMap. The ScalarTypes are first compared; if they compare equal, then the DisplayRealTypes are compared.
protected int compareTo(ScalarMap that) { int comp = getScalar().compareTo(that.getScalar()); if (comp == 0) comp = getDisplayScalar().compareTo(that.getDisplayScalar()); return comp; }
[ "public boolean equals(Object o)\n {\n return o instanceof ScalarMap && compareTo(o) == 0;\n }", "@Test\n public void testEquality() {\n Map<ColumnType, ColumnType> typeMap = new HashMap<ColumnType, ColumnType>();\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
map created with two defined parameters : a set of segments and a segment where the ball can be released
public Map(Segment[] segmentsOfTheField, Segment segmentWhereTheBallCanBeReleased) { this.segmentsOfTheField = segmentsOfTheField; this.segmentWhereTheBallCanBeReleased = segmentWhereTheBallCanBeReleased; }
[ "private void makeMap()\r\n {\n arc = new Arc();\r\n arc.setCenterX(SCENEWIDTH / 2);\r\n arc.setCenterY(SCENEHEIGHT);\r\n arc.setRadiusX(240.0f);\r\n arc.setRadiusY(240.0f);\r\n arc.setStartAngle(0.0f);\r\n arc.setLength(180.0f); //degrees \r\n arc.setFill(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 authAccountFlags = 16;
int getAuthAccountFlags();
[ "boolean hasAuthAccountFlags();", "public int getAuthAccountFlags() {\n return authAccountFlags_;\n }", "public int getAuthAccountFlags() {\n return authAccountFlags_;\n }", "String getAuthflag();", "public boolean hasAccountAuthId() {\n return fieldSetFlags()[3];\n }", "com.ts...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a data slice for product equality test of products of different types.
public ProductEqualsData getProductEqualsData() { final String name = getName(); final MonetaryAmount price = getPrice(); return new ProductEqualsData(name, price); }
[ "@Test\n public void testGetProductsByType() throws Exception {\n System.out.println(\"getProductsByType\");\n \n prs = dao.getProductsByType(p1.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize a MethodDefinition object with all values.
public MethodDefinition(String name, String label, List parameterDefinitions) { m_name = name; m_label = label; m_parameterDefinitions = parameterDefinitions; }
[ "MMethodDefinition createMMethodDefinition();", "public MethodInfoImpl() {\n }", "public MethodParser()\n {\n /* Codes_SRS_METHODPARSER_21_029: [The constructor shall create an instance of the MethodParser.] */\n /* Codes_SRS_METHODPARSER_21_030: [The constructor shall initialize all data in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test to inject instance to JAXRS resource directly from ExoContainer.
@Test public void testInjectInstance2() throws Exception { resources.addResource(Resource3.class, null); Assert.assertEquals(204, launcher.service("GET", "/WebAppInjectTest.Resource3", "", null, null, null).getStatus()); resources.removeResource(Resource3.class); }
[ "public void testInjectInstance2() throws Exception {\n resources.addResource(Resource3.class, null);\n assertEquals(204, launcher.service(\"GET\", \"/WebAppInjectTest.Resource3\", \"\", null, null, null).getStatus());\n resources.removeResource(Resource3.class);\n }", "@Override\n public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column movement.idContributor
public void setIdContributor(Integer idContributor) { this.idContributor = idContributor; }
[ "public Integer getIdContributor() {\n return idContributor;\n }", "public void setContributorID(Integer contributorID) {\n\t\t\n\t\tthis.contributorID = contributorID;\n\t}", "public Integer getContributorID() {\n\t\t\n\t\treturn contributorID;\n\t}", "void addContributor(Long userId, Long contribu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculate rank of NoteItem. Rank is the absolute value of the triageStatus rank. If triageStatus rank is not present, then it is the value in milliseconds of the start time of the event. If the note is not an event then it is the last modified date.
private long getRank(NoteItem note) { // Use triageStatusRank * 1000 to normalize to // unix timestamp in milliseconds. if(note.getTriageStatus()!=null && note.getTriageStatus().getRank()!=null) { return note.getTriageStatus().getRank().scaleByPowerOfTen(3).longValue(); } ...
[ "public Integer getRank() {\n return rank;\n }", "public java.lang.Integer getRank() {\n return rank;\n }", "public Integer getRankNumber() {\n return rankNumber;\n }", "public int rank() {\n return rank;\n }", "public int getRank() {\n int rank = pref.getInt(K...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column t_fs_insurance.ins_id
public Integer getInsId() { return insId; }
[ "public void setInsId(Integer insId) {\n this.insId = insId;\n }", "public String getAuditInsId() {\n return auditInsId;\n }", "public Insurance getInsurance(Integer insuranceId) throws DAOException;", "public Integer getInsnodeid() {\n return insnodeid;\n }", "public String ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value of duracionMax
public void setDuracionMax(int duracionMax) { this.duracionMax = duracionMax; }
[ "public int getDuracionMax() {\n return duracionMax;\n }", "public void setValueMax(double valueMax) {\n this.valueMax = valueMax;\n }", "public void setMaxduration(java.lang.Integer value) {\n this.maxduration = value;\n }", "public void SetMaxVal(int max_val);", "public void setTim...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Escapes a reserved word as defined in the `reservedWords` array. Handle escaping those terms here. This logic is only called if a variable matches the reserved words
@Override public String escapeReservedWord(String name) { // Can't start with an underscore, as our fields need to start with an // UppercaseLetter so that Go treats them as public/visible. // Options? // - MyName // - AName // - TheName // - XName //...
[ "String escapeReservedWords(String query);", "private void SetReservedWord() {\n \n reserved[0]=\"LEFT\";\n reserved[1]=\"RIGHT\";\n reserved[2]=\"GO\";\n reserved[3]=\"GET\";\n reserved[4]=\"PUT\";\n reserved[5]=\"REPEAT\";\n reserved[6]=\"IF\";\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the basic contract of WovenClass, incluing immutability after a weave has finished
public void testWovenClass() throws Exception { registerThisHook(); try { Class<?>clazz = weavingClasses.loadClass(TEST_CLASS_NAME); assertWiring(); assertTrue("Should be complete now", wc.isWeavingComplete()); assertNotSame("Should get copies of the byte array now", realBytes, wc.getBytes()); as...
[ "public void testBadWeaveClass() throws Exception {\n\n\t\tregisterThisHook();\n\n\t\ttry {\n\t\t\treg2.unregister();\n\n\t\t\ttry {\n\t\t\t\tweavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tfail(\"Should have dud bytes here!\");\n\t\t\t} catch (ClassFormatError cfe) {\n\t\t\t\tassertWiring();\n\n\t\t\t\tassertT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ %L CSIRO ASKAP Science Data Archive %% Copyright (C) 2015 Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230. %% Licensed under the CSIRO Open Source License Agreement (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Li...
public interface ConfigurationDAO { /** * Export table configuration information * * @param fullTableName * full table name, including schema * @return column configurations mapped by column name */ public Map<String, ColumnConfig> exportColumns(String fullTableName); ...
[ "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finall...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Callback to receive device picked event
public interface Callback { public void onDevicePicked(BluetoothDevice device); public void onDevicePickCancelled(); }
[ "public void deviceEntered(DevicesEvent e);", "@Override\n public void onDevicePicked(BluetoothDevice device) {\n if (DBG_LIFECYCLE) {\n Log.d(TAG, \"onDevicePicked\");\n }\n if (Settings.CHECK_FOR_UPDATES_ON_CONNECT) {\n mCanAskForFirmwareUpdate = true;\n } el...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Serializes the specified variant.
private void _writeVariant(final Variant variant) throws IOException { _out.startObject(); _writeReifier(variant); _writeItemIdentifiers(variant); _writeScope(variant); _writeDatatypeAware(variant); _out.endObject(); }
[ "public void setVariant(final ProductVariant variant);", "@Valid\n @JsonProperty(\"variant\")\n public ProductVariant getVariant();", "@Override\n public Representation represent(Variant variant) throws ResourceException {\n //testing parameters\n// patientId = (String) this.getRequest()....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int32 jointime = 4 [default = 0];
int getJointime();
[ "public int getJointime() {\n\t\t\treturn jointime_;\n\t\t}", "public int getJointime() {\n\t\t\t\treturn jointime_;\n\t\t\t}", "public Builder setJointime(int value) {\n\t\t\t\tbitField0_ |= 0x00000008;\n\t\t\t\tjointime_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "int getChattimeus();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stops the current Scenario and writes the appropriate output files.
public void stopScenario() { this.stopVideoRecording(); for (int i = resultPos; i < currentScenario.getNumberOfStepAnnotations(); i++) { currentScenario.getStepAnnotation(resultPos).setMillisecondsFrom(currentEndTimestamp); } this.writeAnnotationFile(); currentScenario = new Scenari...
[ "public void stop() {\n JacocoUtils.generateEcFile(false);\n finish(Activity.RESULT_OK, mResults);\n }", "public void stop()\n {\n output.println(FileHandler.NEW_LINE + \"Goodbye.\");\n try\n {\n input.close();\n output.close();\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The delivery stream type. This parameter can be one of the following values: DirectPut: Provider applications access the delivery stream directly. KinesisStreamAsSource: The delivery stream uses a Kinesis data stream as a source.
public CreateDeliveryStreamRequest withDeliveryStreamType(String deliveryStreamType) { setDeliveryStreamType(deliveryStreamType); return this; }
[ "public void setDeliveryStreamType(String deliveryStreamType) {\n this.deliveryStreamType = deliveryStreamType;\n }", "public String getDeliveryStreamType() {\n return this.deliveryStreamType;\n }", "public void setDeliveryStreamName(String deliveryStreamName) {\n this.deliveryStreamN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
converts MEs into IO and returns list for each diary entry
public ArrayList<String> getIOList(){ ArrayList<String> ioList = new ArrayList<String>(diary.size()); for(int i=0; i<diary.size(); i++){ String me = diary.get(i).get(meAtt); if(me.equals("outdoor")||me.equals("transport")) ioList.add("outdoor"); else ioList.add("indoor"); } return ioList; }
[ "public static ArrayList<MonHoc> dsMonHoc() {\n ArrayList<MonHoc> dsmonhoc = new ArrayList<MonHoc>();\n try {\n FileInputStream f = new FileInputStream(\"monhoc.dat\");\n ObjectInputStream in = new ObjectInputStream(f);\n MonHoc mon1 = new MonHoc();\n mon1 =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a Custom Brand using Robot
public long createCustomBrand(WebDriver driver, String title, Boolean ifAgeUnder, Boolean ifAgeOver, Robot robot) throws AWTException, InterruptedException, IOException { long fingerprint = System.currentTimeMillis(); By browse, upload; // try { int i = 0; while (((! driver.getCurrentUr...
[ "@Test\n public void createBrandTest() throws ApiException {\n Brand brand = null;\n Brand response = api.createBrand(brand);\n // TODO: test validations\n }", "@Test(groups = {\"TC-35153\",\"TC-35131\"}, priority = 4)\n\tpublic void testCustomBrandDescriptionIsMandatory() throws IOExce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove player id from associated team.
public void removeTeamPlayer( User player ) { if ( !players.containsValue(player)) { //if ( !players.contains(player) ) { throw new IllegalArgumentException(); } if ( Objects.equals(p1Id, player.getId()) ) { p1Id = null; team1Cou...
[ "public void deleteTeam(Long teamId);", "void remove(Team team);", "void deletePlayerInfoByTeamAndPlayer(Team team, Player player);", "public void removePlayer(Player player){\n players.remove(player);\n }", "public void remove(){\r\n\t\tleave();\r\n\t\tcustomPlayers.remove(player);\r\n\t}", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ \brief Match a ConstantInt and bind to its value. This does not match / ConstantInts wider than 64bits.
@Converted(kind = Converted.Kind.AUTO, source = "${LLVM_SRC}/llvm/include/llvm/IR/PatternMatch.h", line = 387, FQN="llvm::PatternMatch::m_ConstantInt", NM="_ZN4llvm12PatternMatch13m_ConstantIntERy", cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/Transforms/Scalar/Ear...
[ "IntConstant createIntConstant();", "Rule IntConstant() {\n // Push 1 IntConstNode onto the value stack\n return Sequence(\n Sequence(\n Optional(NumericSign()),\n OneOrMore(Digit())),\n actions.pushIntConstNode());\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
builder factory method for GeneralCategoryRecommendation
public static GeneralCategoryRecommendationBuilder builder() { return GeneralCategoryRecommendationBuilder.of(); }
[ "public static GeneralCategoryRecommendationBuilder builder(final GeneralCategoryRecommendation template) {\n return GeneralCategoryRecommendationBuilder.of(template);\n }", "public static ProjectCategoryRecommendationMetaBuilder builder() {\n return ProjectCategoryRecommendationMetaBuilder.of();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the background color displayed when the component is disabled.
public void setDisabledBackground(Color newValue) { set(PROPERTY_DISABLED_BACKGROUND, newValue); }
[ "public Color getDisabledBackground() {\n return (Color) get(PROPERTY_DISABLED_BACKGROUND);\n }", "private void setDisabled(JComponent jc)\n\t{\n\t\tjc.setEnabled(false);\n\t\tjc.setBackground(Color.LIGHT_GRAY);\n\t}", "public void setDisabledForeground(Color newValue) {\n set(PROPERTY_DISABLED...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Konstruktor der Klasse NoQuota.
public NoQuota() { super("No Mailbox Quota set."); }
[ "public Quota() {\n super();\n }", "@Override\n public abstract float calculaQuota(float quotaBase) throws ExcepcioClub;", "void setDefaultUserQuota(long val);", "public MicrosoftGraphQuota() {\n }", "public Quota getQuota() {\n\t\treturn this.quota;\n\t}", "public double getQuotaLimit() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mapper between BtUserBookAssociations and BtUserBookAssociationsDto
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE,nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT) public interface BtUserBookAssociationIdMapper { public BtUserBookAssociationId btUserBookAssociationIdDtoToBtUserBookAssociationId(BtUserBookAssociationIdDto userBookAs...
[ "@Mapper(componentModel = \"spring\", uses = {})\npublic interface BidMapper {\n\n @Mapping(source = \"bidder.id\", target = \"bidderId\")\n @Mapping(source = \"auctionItem.id\", target = \"auctionItemId\")\n BidDTO bidToBidDTO(Bid bid);\n\n List<BidDTO> bidsToBidDTOs(List<Bid> bids);\n\n @Mapping(so...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method to generate a random double range is (2.4 / 2) (2.4/2)
public static double randomNumber(){ Random randomGenerator = new Random(); double max = 2.4/2, min = -max; return min + ( max - min ) * randomGenerator.nextDouble(); }
[ "private double randDouble(double min, double max) {\n return min + (max - min) * rand.nextDouble();\n }", "private double getRandomDouble(double min, double max)\n {\n double random, result;\n\n random = new Random().nextDouble();\n result = min + (random * (max - min));\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "col_range" /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:451:1: col_range : ^( COL_RANGE ( col_ref )? DOUBLE_PERIOD ( col_ref )? ) ;
public final AstValidator.col_range_return col_range() throws RecognitionException { AstValidator.col_range_return retval = new AstValidator.col_range_return(); retval.start = input.LT(1); CommonTree root_0 = null; CommonTree _first_0 = null; CommonTree _last = null; ...
[ "public final QueryParser.col_range_return col_range() throws RecognitionException {\n QueryParser.col_range_return retval = new QueryParser.col_range_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token DOUBLE_PERIOD348=null;\n Token DOUBLE_PERIOD349=null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show source code of the selected mutant. Changed part is colored in blue
public void showMutant(String dir_name, String mutant_log) { try { int changed_line = getMutatedLineNum(mutant_log); String method_signature = getMethodSignature(mutant_log); String changed_content = getMutatedContent(mutant_log); changeTF.setText(" (line " + chan...
[ "public void showMutant(String dir_name,String mutant_log)\n {\n System.out.println(\"MutantsViewerPanel.showMutant (with mutant_log)\");\n try\n {\n int changed_line = getMutatedLineNum(mutant_log);\n String changed_content = getMutatedContent(mutant_log);\n changeTF.setTex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to get all the nodes in the graph
public Set<Node<T>> getAllNodes() { return this.graph.keySet(); }
[ "Collection<Node> allNodes();", "public Set<String> getAllNodes() {\n return this.graph.keySet();\n }", "List<Node> getNodes();", "Collection<Node> getNodes();", "public List nodes()\n\t{\n\t\t// List<GraphNode>\n\t\treturn nodes ;\n\t}", "@Override\r\n\tpublic List<N> getNodes() {\n\t\tList<N> ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets function that provides caption for component item.
void setItemCaptionProvider(@Nullable Function<? super I, String> itemCaptionProvider);
[ "B itemCaption(ITEM item, Localizable caption);", "public S withItemCaption(Object itemId, String caption);", "Imports setCaption(String caption);", "default B itemCaption(ITEM item, String caption) {\n\t\treturn itemCaption(item, Localizable.builder().message(caption).build());\n\t}", "@VTID(50)\r\n java....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__OpenCSV__NameAssignment_2" $ANTLR start "rule__OpenCSV__FileAssignment_3" InternalCsv.g:3738:1: rule__OpenCSV__FileAssignment_3 : ( RULE_STRING ) ;
public final void rule__OpenCSV__FileAssignment_3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:3742:1: ( ( RULE_STRING ) ) // InternalCsv.g:3743:2: ( RULE_STRING ) { // InternalCsv.g:3743:2: ( RULE_ST...
[ "public final void rule__SaveCSV__FileAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:3867:1: ( ( RULE_STRING ) )\n // InternalCsv.g:3868:2: ( RULE_STRING )\n {\n // InternalCsv.g:3...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
coin to use optional string coin_name = 3 [default = "Bitcoin"];
com.google.protobuf.ByteString getCoinNameBytes();
[ "java.lang.String getCoinName();", "public CoinLabel (Value<Integer> coins)\n {\n this(\"\", coins);\n }", "public CoinLabel (int coins)\n {\n this(\"\", coins);\n }", "public CoinLabel (String label, int coins)\n {\n this(label, new Value<Integer>(coins));\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
(void)receiveSymbol:(NSString )symbol fromSource:(NSString )source;
public void receiveSymbol(NSString symbol, NSString source);
[ "public void symbolAdded(SourceType symbol);", "@Override\n public void sendSymbol(Morse.Symbol symbol) {\n addToBuffer(new SymbolTuple(symbol));\n }", "java.lang.String getSymbol();", "@Override\n public void sendSymbol(Morse.Symbol symbol, @Nullable OperationCompletedListener listener) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
stops the layout process and decrease CPU load
public void stopLayouting() { PrefuseForceAbstractLayoutStorage.getForceDirectedLayout(viewManagerID).setEnabled(false); }
[ "public void stopLayoutThread() {\n \tif (fLayoutThread != null) {\n \t\tfLayoutThread.doLayout = false;\n \tfLayoutThread.interrupt();\n \tfLayoutThread = null;\n \t}\n }", "public void endLayout()\n {\n }", "public void stopRendering()\n\t{\n\t}", "public void shutDown() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove all transitions from the transition set.
public void removeAllTransitions() { getTransitions().clear(); }
[ "public void removeTransitions(ApplicationStateTransition transition) {\n PropertyIterator iter = getTransitions().iterator();\n while (iter.hasNext()) {\n ApplicationStateTransition item =\n (ApplicationStateTransition) iter.next().getObjectValue();\n if (tran...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads parameters for the provided base key depending on whether the other image is RAW.
public List<String> readParameters(final String baseKey, final boolean otherRaw) { if (otherRaw) { return readParameters(baseKey + RAW_KEY); } else { return readParameters(baseKey + NON_RAW_KEY); } }
[ "rfid.Rfid.BaseParamOrBuilder getBaseInfoOrBuilder();", "private void readParameters() throws IOException\n\t\t{\n\t\tboolean found=false;\n\t\tFile fParamsDir=new File(basedir,\"parameters\");\n\t\tfor(File f:fParamsDir.listFiles())\n\t\t\t{\n\t\t\tif(f.getName().endsWith(\"-parameters\"))\n\t\t\t\t{\n\t\t\t\tfo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor for the name of the load fetch group
String getLoadFetchGroup();
[ "java.lang.String getGroupName();", "public String getName()\n\t{\n\t\treturn groupName;\n\t}", "public String groupName() {\n return this.groupName;\n }", "public String getGroupName() {\n return groupName;\n }", "java.lang.String getGrpNm();", "MemberMetadata setLoadFetchGroup(String grp);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.proto.UserRegister.PreferenceMethod preference_method = 4;
net.iGap.proto.ProtoUserRegister.UserRegister.PreferenceMethod getPreferenceMethod();
[ "net.iGap.proto.ProtoUserRegister.UserRegisterResponse.Method getMethod();", "void savePreference(SignUpResponse response);", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void setPreference(String user, String preferenceName, String value) throws OntimizeJEERuntimeEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'field15' field
public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField15() { field15 = null; fieldSetFlags()[15] = false; return this; }
[ "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField123() {\n field123 = null;\n fieldSetFlags()[123] = false;\n return this;\n }", "private void clearFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the identifiers declared in rule constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3
private String[] getDeclaredIdentifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3() { return identifiers_constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3; }
[ "private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5() {\r\n return identifiers_constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5;\r\n }", "private String[] getDeclaredIdentifiers_constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Flow__EventAssignment_1_1" $ANTLR start "rule__ENAME__ElabelAssignment_0" InternalDsl.g:35060:1: rule__ENAME__ElabelAssignment_0 : ( ruleELABEL ) ;
public final void rule__ENAME__ElabelAssignment_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:35064:1: ( ( ruleELABEL ) ) // InternalDsl.g:35065:2: ( ruleELABEL ) { // InternalDsl.g:35065:2: ( ruleEL...
[ "public final void rule__Event__ElabelAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:35728:1: ( ( ruleELABEL ) )\n // InternalDsl.g:35729:2: ( ruleELABEL )\n {\n // InternalDsl.g:3...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all the named direct children of this node as a list of ValidatedNode objects.
public List getChildren(String elementName) { List namedList = new ArrayList(); for (Iterator i = children.iterator(); i.hasNext();) { ValidatedNode currentNode = (ValidatedNode) i.next(); if (elementName.equals(currentNode.getElement().getName())) { namedList.add(cu...
[ "public List<SaveGameNode> getAllChilden(String name) {\r\n List<SaveGameNode> list = new ArrayList();\r\n list.addAll(this.children.stream().filter(child -> child.equals(name)).collect(Collectors.toList()));\r\n return list;\r\n }", "public StrieNode[] getAllChildren(){\r\n\t\t// O(1)\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ The constructor that initializes the customer ID.
public Customer (int i){ ID = i; }
[ "public Customer()\n {\n // initialise instance variables\n id = genID();\n name = genName();\n }", "public Customer(int id) {\n\t\tthis.id = id;\n\t}", "public Customer(String name, int idNum)\n {\n this.name = name;\n id = idNum;\n }", "public Customer(int cust...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
name: prev action: updates board to prev solution
protected void prev(View v){ this.draw_board(s.get_grid_index(this.current)); this.set_message("Solution #"+current); this.current--; if(this.current<0){ this.current=91; } }
[ "public void previous() {\r\n\t\tif (currentIndex == 0) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"There are no more teams\", \"Previous team\",\r\n\t\t\t JOptionPane.ERROR_MESSAGE);\r\n\t\t} else {\r\n\t\t\tcurrentIndex--;\r\n\t\t\tupdateInterface();\r\n\t\t}\r\n\t}", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Blocking Deque BlockingDeque size limited by Redis to 4 294 967 295 elements. poll, pollFromAny, pollLastAndOfferFirstTo and take methods will be resubscribed automatically during reconnection to Redis server or Redis server failover.
public static void testBlockingDeque() throws InterruptedException { RedissonClient redisson = RedissonUtil.getRedissonClient(); RBlockingDeque<Integer> deque = redisson.getBlockingDeque("anyDeque"); deque.putFirst(1); deque.putLast(2); Integer firstValue = deque.takeFirst(); Integer lastValue = deque...
[ "int getAutoGrowCollectionLimit();", "public int getQueueCapacity();", "public static void testBoundedBlockingQueue() throws InterruptedException {\r\n\t\tRedissonClient redisson = RedissonUtil.getRedissonClient();\r\n\t\tRBoundedBlockingQueue<String> queue = redisson.getBoundedBlockingQueue(\"anyQueue\");\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the current content of this cipher.
void save() { if (counterSave == null) { counterSave = new byte[blockSize]; encryptedCounterSave = new byte[blockSize]; } System.arraycopy(counter, 0, counterSave, 0, blockSize); System.arraycopy(encryptedCounter, 0, encryptedCounterSave, 0, blockSize)...
[ "private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "public void save() {\n if (message == nul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Method name: getPrincipal This method prompts the user to enter a balance Precondition: none. Postcondition: Returns the principal to the calling function
private int getPrincipal() { int principal = readInt("Enter starting balance: "); return (int) principal; }
[ "org.beangle.security.session.protobuf.Model.Account getPrincipal();", "public Principal getPrincipalByAccount(String account)throws AccessorException;", "@Override\n public BigDecimal calculatePrincipal(final BigDecimal annuity, final BigDecimal interest) {\n return annuity.subtract(interest).round(M...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form VAsginarPersonal
public VAsignarPersonal() { initComponents(); }
[ "public frm_registro_admision_ingreso_registro() {\n }", "public frm_tutor_subida_prueba() {\n }", "public CrearPersona() {\n initComponents();\n this.persona = persona;\n \n }", "public void createItem(View v){\n Intent intent = new Intent(this, PantryItemForm.class);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method setSilicateMin Set the 'silicateMin' class variable
public int setSilicateMin(String silicateMin) { try { setSilicateMin(new Float(silicateMin).floatValue()); } catch (Exception e) { setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM); } // try return silicateMinError; }
[ "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int setSilicateMin(Float silic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for property returnInstallments.
public void setReturnInstallments(List<Installment> returnInstallments) { this.returnInstallments = returnInstallments; }
[ "public List<Installment> getReturnInstallments() {\n return returnInstallments;\n }", "public List<Installment> getFactoringInstallments() {\n return factoringInstallments;\n }", "public List<Installment> getLoanInstallments() {\n return loanInstallments;\n }", "public List<Doub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the request token, this must be called first.
public Token getRequestToken();
[ "GetToken.Req getGetTokenReq();", "public static String getRequestToken(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_REQUEST_TOKEN, null);\n\t\t}", "RequestToken getOAuthRequestToken() throws MoefouException;", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Result of double 128.0 R x5d x80
public double replyDouble_m128_0();
[ "public static double RToD(int raw){ return (2.0*((double)raw*(5.0/256)) - 5.0); }", "public double replyDouble_128_0();", "public java.lang.Double getVar256() {\n return var256;\n }", "public java.lang.Double getVar256() {\n return var256;\n }", "public java.lang.Double getVar255() {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ecs_takegoods_order.paisong_name
public void setPaisongName(String paisongName) { this.paisongName = paisongName == null ? null : paisongName.trim(); }
[ "public void setNameSP(String nameSP) {\n this.nameSP = nameSP;\n }", "public void setPname(String pname) {\n this.pname = pname;\n }", "public void setGoodsName(String goodsName) {\n this.goodsName = goodsName;\n }", "public void setOrderName(String name) {\n orderName = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the array of high score values in the world.
public Array<Integer> getHighScoreValues() { return highScoreValues; }
[ "public double[] getHighScore() {\r\n\t\treturn highScore;\r\n\t}", "public int[] getHighScore() {\n return HighScore;\n }", "public List<ScoreInfo> getHighScores() {\r\n return this.highScores;\r\n }", "public static ArrayList<Score> getHighscore() {\n //TODO: Get all highscores\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that fills the database. Takes a track and gets all top listeners form that track. Then it fills the listenings table for each of those users. Then it fills recordings with the information of all tracks in database.
public void fillLocalDatabase(String artist, String track) { openConnection(); if(artist != null && track !=null) { Track t = external.getTrack(artist, track); if (t!=null) { Collection<User> users = external.getListeners(t); insertDataIntoPersons(users); for(User u : users) { if(u!...
[ "protected void createTableListenings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Listenings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"user\t\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track\t\t\tVARCHAR(259),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"playcount\t\tINTEGER,\" \t\t\t\t\t\t\t\t\t\t\t+ \n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column activity.internal_top_img
public void setInternalTopImg(String internalTopImg) { this.internalTopImg = internalTopImg == null ? null : internalTopImg.trim(); }
[ "public String getInternalTopImg() {\n return internalTopImg;\n }", "public void setTop_actif(String top_actif) {\r\n\t\tthis.top_actif = top_actif;\r\n\t}", "private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n Exte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generated Property Getter for attribute SYM111
@Override public java.lang.Object getSym111() throws G2AccessException { java.lang.Object retnValue = getAttributeValue (SYM_111_); return (java.lang.Object)retnValue; }
[ "@Override\n public java.lang.Object getSym122() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SYM_122_);\n return (java.lang.Object)retnValue;\n }", "@Override\n public java.lang.Object getSym133() throws G2AccessException {\n java.lang.Object retnValue = getAttributeVa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "overrideClrMapping" element
public boolean isSetOverrideClrMapping() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(OVERRIDECLRMAPPING$2) != 0; } }
[ "public boolean isSetMasterClrMapping()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MASTERCLRMAPPING$0) != 0;\n }\n }", "public void setOverrideClrMapping(org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set a media copy object.
public void setMediaCopy(MediaCopy mediaCopy) { this.mediaCopy = mediaCopy; }
[ "public void setMedia(Media media) {\r\n\t\tthis.media = media;\r\n\t}", "public\t void setMediaField(MediaField m) \n \t \t{ mediaField = m ; }", "void setMedia(org.hl7.fhir.Media media);", "@Override\n\tpublic void setCopySource(Waveform w)\n\t{\n\t\t/*\n\t\t * if(w != null) w.SetCopySelected(true); else if...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests ClientUtilityImplremoveClients(long[],boolean) for accuracy.
public void testRemoveClients() throws Exception { Client client = AccuracyTestHelper.createClient(1); instance.addClient(client, true); instance.removeClients(new long[] {client.getId()}, true); assertNull("Failed to remove client.", instance.retrieveClient(client.getId())); }
[ "public void deleteClients(Collection<Client> clients, AsyncCallback<Void> cb);", "public boolean deleteClient(String nomClient);", "@Test\n public void testClientTracker() throws Exception {\n \tassertEquals(clientManager.getClients().size(),0);\n \taddClientToClientManagerSingleSsid(MacAddress.of(\"0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the checked state of the control.
public boolean getChecked() { return checked; }
[ "public Integer getChecked() {\n return checked;\n }", "boolean getCheckState();", "public final String getCheckedAttribute() {\n return getAttributeValue(\"checked\");\n }", "public Object getCheckedValue();", "@Override\n\tpublic boolean getChecked() {\n\t\treturn _ibOrder.getChecked()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the property 'verifiableAddresses'
@Test public void verifiableAddressesTest() { // TODO: test verifiableAddresses }
[ "protected boolean hasAddresses() {\n if (this.addresses.isEmpty()) {\n return false;\n }\n else {\n return true;\n }\n }", "@Test\n public void testCreateVerifyArray() throws EasyPostException {\n vcr.setUpTest(\"create_verify_array\");\n\n Ma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get Only one Specialization by ID
public SpecializationBean getSpecializationID(int id) { List<SpecializationBean> list = getSpecializationList(id); if (!list.isEmpty()) { return list.get(0); } return null; }
[ "@Override\n @Transactional\n public DoctorspecializationEntity getSpecialization( Integer id ) {\n return em.find( DoctorspecializationEntity.class, id );\n }", "public CandidatoSpecializzazione get(String id);", "public Animal retrieve(long id);", "SpeciesEntity getSpeciesById(Integer id);",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the fxUfTasaSuciaCosto property.
public void setFxUfTasaSuciaCosto(double value) { this.fxUfTasaSuciaCosto = value; }
[ "public double getFxUfTasaSuciaCosto() {\r\n return fxUfTasaSuciaCosto;\r\n }", "public void setFxUfTasaCosto(double value) {\r\n this.fxUfTasaCosto = value;\r\n }", "public double getFxUfTasaCosto() {\r\n return fxUfTasaCosto;\r\n }", "public void setFxUfTasaSuciaCliente(double ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when Role's data change.
public void roleChanged(Role item) { event("RoleChange", item.getId(), -1, -1, false); }
[ "public void roleChanged(Role role);", "public interface RoleChangeListener\n{\n /**\n * Called when <code>Role</code>'s data change.\n *\n * @param role the role that changed.\n */\n public void roleChanged(Role role);\n}", "public void updateRoleDetails() {\n\t\tSystem.out.println(\"Call...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
spawn the group at a specific location with fire immunity as needed
public void spawnGroup(int x,int y,int z,double atk,double def,boolean fire){ Mob m=null; mobs.clear(); for(String mn:type.getMobs()){ if(mn.equals("wither_skeleton")){ m=new Mob("skeleton",atk,def,mobEffects,mobAbilities); m.setGroup(this); m.spawn(w, x, y, z,fire); mobs.add(m); ...
[ "public void spawn() {\r\n\t\tif (!isIngame) return;\r\n\t\tnew BukkitRunnable(){\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tgetPlayer().teleport(getSpawn());\r\n\t\t\t\tif (!getTeam().equals(teamName.SPECTATOR)){\r\n\t\t\t\t\tresetPlayerInfo();\r\n\t\t\t\t\tgiveClass();\r\n\t\t \t\tupdateXPbar()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The average and the standard deviation of the number of chirps per user.
@Query("select avg(u.chirps.size), stddev(u.chirps.size) from User u") Double[] avgstdChirpsPerUser();
[ "@Query(\"select avg(u.chirps.size),sqrt(sum(u.chirps.size *u.chirps.size)/ count(u) - (avg(u.chirps.size) *avg(u.chirps.size))) from User u\")\n Double[] avgStdChirpsPerUser();", "public double averageChirpsPerUser() {\n\t\tcheckAuthority();\n\t\ttry {\n\t\t\treturn this.administratorRepository.averageChirps...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Intializes a player using the given Mark
public Player(Mark mark) { this.mark = mark; }
[ "public Player(String name, String marker) {\n\t\tthis();\n\t\tthis.name = name;\n\t\tthis.marker = marker;\n\t}", "Player(int startAmount, int startIncome) {\n this.amount = startAmount;\n this.income = startIncome;\n }", "public void createPlayer(String username, String marker, int playerNum)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor method to get the inventory product description
public String getInventoryProductDescription() { return inventoryProductDescription; }
[ "java.lang.String getProductDescription();", "public String getProductDesc() {\n return productDesc;\n }", "public String get_product_description() {\n\t\treturn productDescription.getText();\n\t}", "public String getProductItemDesc() {\n return (String)getAttributeInternal(PRODUCTITEMDESC);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getResistance method, of class Dragon.
@Test public void testGetResistance() { System.out.println("getResistance"); Dragon instance = new Dragon("Bruno", 50, 135, 2, "Capitan"); int expResult = 2; int result = instance.getResistance(); assertEquals(expResult, result); // TODO review the generated t...
[ "@Test\r\n public void testSetResistance() {\r\n System.out.println(\"setResistance\");\r\n int resistance = 1;\r\n Dragon instance = new Dragon(\"Bruno\", 50, 135, 1, \"Capitan\");\r\n instance.setResistance(resistance);\r\n // TODO review the generated test code and remove th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allows an upstream error to jump over an inner transformation and is then reapplied once the inner transformation's returned Flowable terminates.
public static <T, R> ObservableTransformer<T, R> errorJump(ObservableTransformer<T, R> transformer) { Objects.requireNonNull(transformer, "transformer"); return new ObservableErrorJump<>(null, transformer); }
[ "private Mono<TransferTaskParent> doErrorParentStepOne(AcknowledgableDelivery m, Throwable e, TransferTaskParent parent)\n {\n log.error(LibUtils.getMsg(\"FILES_TXFR_SVC_ERR7A\", parent.toString(), e));\n m.nack(false);\n\n // First update parent task, mark FAILED_OPT or FAILED\n if (parent.isOptional(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info:
default @org.jetbrains.annotations.Nullable java.util.List<java.lang.String> getFinalizers() { return null; }
[ "public void removeFinalizers() {\n Finalizer finalizer = (Finalizer)fastGetInternalVariable(\"__finalizer__\");\n if (finalizer != null) {\n finalizer.removeFinalizers();\n removeInternalVariable(\"__finalizer__\");\n getRuntime().removeFinalizer(finalizer);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the default speed at which this vehicle travels when climbing (m/sec)
WorldSpeed getDefaultClimbSpeed();
[ "public Double getDrivingSpeed() {\n Segment seg = this.getFirst();\n if (seg.isOccupied()) {\n //System.out.println(\"getTailingSpeed: \" + seg.getTailingSpeed());\n return seg.getTailingSpeed();\n }\n //System.out.println(\"getSpeed: \" + seg.getSpeed());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Factory method to create a new persistent prepared transaction store for XA recovery
TransactionStore createTransactionStore() throws IOException;
[ "Store createStore();", "public interface PersistenceAdapter extends Service {\n\n /**\n * Returns a set of all the\n * {@link org.apache.activemq.command.ActiveMQDestination} objects that the\n * persistence store is aware exist.\n *\n * @return active destinations\n */\n Set<Active...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updating salary for employee in DB and if salary got modified in database then in memory
public void updateEmployeeSalaryInDBThenInList(String name, double salary) throws CustomPayrollException { int result = normalisedDBServiceObj.updateEmployeeData(name, salary); if (result == 0) { return; } Contact contact = this.getEmployeePayrollData(name); if (contact != null) contact.salary = salary;...
[ "public void updateEmployee(Integer repId, double salary) {\n Session session = factory.openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n SalesRep employee = (SalesRep) session.get(SalesRep.class, repId);\n employee.setRepSalary(salary);\n session.up...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new Entry object referencing the input key and associated value, and insert the entry into the dictionary. Return a reference to the new entry. Multiple entries with the same key (or even the same key and value) can coexist in the dictionary. This method should run in O(1) time if the number of collisions is s...
public Entry insert(Object key, Object value) { resize();//only if it needs to. Entry e = new Entry(); e.key = key; e.value = value; int i = compFunction(key.hashCode()); buckets[i].insertFront(e); size++; return e; }
[ "public Entry insert(Object key, Object value) {\r\n if (size / num_buckets > 0.75) { //table must be resized if load factor is too great\r\n this.resize();\r\n }\r\n Entry new_entry = new Entry();\r\n new_entry.key = key;\r\n new_entry.value = value;\r\n int comp_hash = compFunction(new_en...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the CA object class in the ldap instance
public String getCAObjectClass(){ return (String) data.get(CAOBJECTCLASS); }
[ "private LDAPAttribute getObjectClassAttribute(String field) {\n\t\tfinal String lowCaseField = field.toLowerCase();\n\t\tif(lowCaseField.equals(\"o\")) {\n\t\t\treturn new LDAPAttribute(\"objectclass\", new String[] { \"top\", \"organization\" });\n\t\t} else if(lowCaseField.equals(\"ou\")) {\n\t\t\treturn new LDA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }