query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns an Iterator of the current showings | public Iterator getShowings(){
return super.iterator();
} | [
"public ArrayList<Show> getAllShows() {\n /*IMPLEMENT DB CONNECTION*/\n ArrayList<Show> result = new ArrayList<Show>();\n Iterator iterator = showList.entrySet().iterator();\n while (iterator.hasNext()) {\n Map.Entry pair = (Map.Entry) iterator.next();\n result.add(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
populate List of devices | public void populateVitals() {
try {
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from device");
while (rs.next()) {
String guid = rs.getString("DeviceGUID");
int deviceId = rs.getInt("DeviceID");
... | [
"private void addDevicesList()\n {\n ArrayList<String> result = new ArrayList<String>();\n int errorCode = BARServer.executeCommand(\"DEVICE_LIST\",result);\n if (errorCode == Errors.NONE)\n {\n for (String line : result)\n {\n Object data[] = new Object[3];\n if (StringPar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtiene el valor de PrecioCierre | public double getPrecioCierre() {
return this.precio_cierre;
} | [
"public int obtener_precio(){\r\n return this.precio;\r\n }",
"public double getPrecioCompra() {\n return precioCompra;\n }",
"public float getPrecioCompra() {\n\treturn precioCompra;\n}",
"String getPrecio();",
"public int getPrecio(){\n return precio;\n }",
"public double obetene... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the CustomDomainsClient object to access its operations. | CustomDomainsClient getCustomDomains(); | [
"public CustomDomainsClient getCustomDomains() {\n return this.customDomains;\n }",
"AfdCustomDomainsClient getAfdCustomDomains();",
"public AfdCustomDomainsClient getAfdCustomDomains() {\n return this.afdCustomDomains;\n }",
"public final com.google.longrunning.OperationsClient getOperati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies a license issued by a "local" (or municipal) jurisdiction, which is to say, a township or city. .bloombox.licensure.LicensingAuthority.LocalLicense local = 1; | io.bloombox.schema.licensure.Licensure.LicensingAuthority.LocalLicenseOrBuilder getLocalOrBuilder(); | [
"public Builder setLocal(io.bloombox.schema.licensure.Licensure.LicensingAuthority.LocalLicense value) {\n if (localBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n jurisdiction_ = value;\n onChanged();\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the batch order for the given depth. | int orderingFor(int depth) {
final Counter slot = map.computeIfAbsent(depth, integer -> new Counter());
return (depth * 100) + slot.increment();
} | [
"int getChildOrder(int index);",
"public Short getEinoBatchOrder() {\r\n return einoBatchOrder;\r\n }",
"public IList<ITreeNode<E>> levelOrder() throws ETree;",
"public int[] getLeafOrder() {\r\n return leafOrder;\r\n }",
"java.util.List<java.lang.Integer> getChildOrderList();",
"Objec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the total translational kinetic energy of this Robot. This is the sum over i of 1/2 m_i v_iv_i, where m_i is the mass of link i, and v_i is the translational velocity of the center of mass of link i. | public double computeTranslationalKineticEnergy()
{
double translationalKineticEnergy = 0.0;
for (int i = 0; i < rootJoints.size(); i++)
{
Joint rootJoint = rootJoints.get(i);
translationalKineticEnergy = translationalKineticEnergy + computeTranslationalKineticEnergy(rootJoint);... | [
"public double kineticEnergy() { return 0.5 * mass * Vector3D.dotVector3D(velocity, velocity);}",
"double kEnergy ()\n {\n Vector v = this.velocity;\n double vectorSum = 0;\n for(int i = 0; i < 3; i++){\n vectorSum += Math.pow((v.cartesian(i)), 2);\n }\n double k =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get whether to skip package signing. | default Optional<Boolean> doesNoSign() {
return Optional.ofNullable(toSafeBoolean(getCapability(NO_SIGN_OPTION)));
} | [
"public boolean isSigningRequired()\r\n\t{\r\n\t\treturn _bSigningRequired;\r\n\t}",
"public Optional<Boolean> skipGetVaultVersion() {\n return Codegen.booleanProp(\"skipGetVaultVersion\").config(config).get();\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isDoNotArchive... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mutateur du temps pendant lequel la sortie est montree au joueur | public void setTempsAffSortie (int t) {
tempsBonusAffSortie= t;
} | [
"public void jouerPartie(){ \n tempsPartie = System.currentTimeMillis();\n Tour tour;\n int joueurAJouer = ThreadLocalRandom.current().nextInt(0, 2); // choisit joueur a commencer de facon aleatoire\n /**\n while(partieEstTerminee()){ // Tant que partie n'est pas terminer\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
inits the book based on the inputstream | private final void initBook(InputStream inStream) {
// if book was already initialized, return, not necessary to execute
if (numBookMoves >= 0) {
return;
}
long t0 = System.currentTimeMillis();
bookMap = new HashMap<Long, List<BookEntry>>();
rndGen = new SecureRando... | [
"XmlGradeBookParser(InputStream in) {\n this.in = in;\n }",
"public void initialize(InputStream stream) {\n if (stream == null) {\n return;\n }\n new DictionaryHandler().read(stream);\n try {\n stream.close();\n } catch (IOException e) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Name of this frame. | public java.lang.String getFrameNameAsString()
{
return getFrameName().toString();
} | [
"Object getTargetFrameName();",
"public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}",
"public String getName( ) {\r\n\r\n return scene.getName( );\r\n }",
"public EventName getName() {\n return this.name;\n }",
"public String getName()\n {\n if (this.name ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set value of ScheduledStartString | public final void setScheduledStartString(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String scheduledstartstring)
{
getMendixObject().setValue(context, MemberNames.ScheduledStartString.toString(), scheduledstartstring);
} | [
"public final void setScheduledStartString(java.lang.String scheduledstartstring)\r\n\t{\r\n\t\tsetScheduledStartString(getContext(), scheduledstartstring);\r\n\t}",
"public final void setScheduledStart(java.util.Date scheduledstart)\r\n\t{\r\n\t\tsetScheduledStart(getContext(), scheduledstart);\r\n\t}",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the set of demands. | public DemandSet getDemands() {
return demands;
} | [
"public Demand getDemand()\n\t{\n\t\treturn demand;\n\t}",
"public double getDemand(){\r\n //calculate demand based off of external factors. Ex) military\r\n //or sporting events like the super bowl\r\n \r\n // For now, generate a random number (uniform) from .9 to 1.1 and\r\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column litemall_bankcard_auth_call.request_method | public String getRequestMethod() {
return requestMethod;
} | [
"public String getRequestMethod(){\n return this.requestMethod;\n }",
"public String getRequestMethod()\n {\n return requestMethod;\n }",
"public java.lang.String getReqMethod() {\n return req_method;\n }",
"public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
removes a businessTrip from the list | public void RemoveTrip(int id)
{
/*
//removing the trip from the list + spinner list
myBusinessTrip.remove(id);
tripNames.remove(id);
ArrayList<BusinessTrip> tmp = new ArrayList<BusinessTrip>();
ArrayList<String> tmpNames = new ArrayList<String>();
//updates t... | [
"public void removeFromTrip(Booking booked_item) {\n\t\tTrip.remove(booked_item);\n\t}",
"@Override\n public boolean removeBookedFlight(BookedFlight bf) {\n return bookedFlightsDB.remove(bf);\n }",
"public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads the configuration properties for a service. | public Properties loadProperties(String serviceName) throws ClavinException {
try {
client.connect();
final String deployment = getDeployment();
validateDeployment(serviceName, deployment);
final String path = "/" + deployment.replace('.', '/') + "/" + serviceName... | [
"protected Configuration loadProperties() {\n return ConfigFactory.createConfig();\n }",
"public static ServiceConfig getServiceConfig(String... paths) throws Exception {\n logger.info(\"load service config...\");\n ServiceConfig instance = new ServiceConfig();\n\n XPathFactory factory = XPathF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ResumeItems__Group__1" $ANTLR start "rule__ResumeItems__Group__1__Impl" InternalLPDSL.g:2244:1: rule__ResumeItems__Group__1__Impl : ( ( rule__ResumeItems__NameAssignment_1 ) ) ; | public final void rule__ResumeItems__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalLPDSL.g:2248:1: ( ( ( rule__ResumeItems__NameAssignment_1 ) ) )
// InternalLPDSL.g:2249:1: ( ( rule__ResumeItems__NameAssignmen... | [
"public final void rule__Resume__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:1897:1: ( ( ( rule__Resume__NameAssignment_1 ) ) )\r\n // InternalLPDSL.g:1898:1: ( ( rule__Resume__NameAssi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dispose the state machine. All states will be removed to save space. | public void dispose() {
states.clear();
states = null;
intransitionMap.clear();
intransitionMap = null;
} | [
"public void dispose () {\n\t\twhile(!stack.isEmpty()) {\n\t\t\tstack.pop().dispose();\n\t\t}\n\t}",
"public void\n\t invalidateState()\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t if (state != null) {\n\t\t\t\tstate.destructor();\n\t\t\t\ts... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column CTSTRS_HISTORY.REMARKS3 | public void setREMARKS3(String REMARKS3) {
this.REMARKS3 = REMARKS3 == null ? null : REMARKS3.trim();
} | [
"public void setRemark3(String remark3) {\n this.remark3 = remark3;\n }",
"public void setREMARKS1(String REMARKS1)\r\n {\r\n\tthis.REMARKS1 = REMARKS1 == null ? null : REMARKS1.trim();\r\n }",
"public void setREMARKS2(String REMARKS2)\r\n {\r\n\tthis.REMARKS2 = REMARKS2 == null ? null : REMA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the isPrimary property. | public void setIsPrimary(boolean value) {
this.isPrimary = value;
} | [
"public void setPrimary(boolean value) {\n this.primary = value;\n }",
"public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }",
"public void setPrimary(java.lang.Boolean primary) {\n this.primary = primary;\n }",
"protected void setPrimary(boolean primary)\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method to Reset / gain all the credits which were spent | public void reset(){
credits += betCredits;
betCredits = 0;//to prevent reset more than once
} | [
"public void resetcoins() {\r\n\t\tcoins = 0;\r\n\t}",
"int deductCredits(int credits)\r\n {\r\n if ((this.getPlayerCredits() - credits) > 0)\r\n {\r\n this.playerCredits = (this.playerCredits - credits);\r\n }\r\n return this.getPlayerCredits();\r\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
On Mac, check for the 'Command' key, otherwise use the 'Control' key | private boolean isCommandKeyDown(InputEvent event) {
return Utils.isMacOSX() ? event.isMetaDown() : event.isControlDown();
} | [
"public static boolean isCtrlKeyDown() { return Minecraft.isRunningOnMac ? Keyboard.isKeyDown(219) || Keyboard.isKeyDown(220) : Keyboard.isKeyDown(29) || Keyboard.isKeyDown(157); }",
"private void sendControlT() {\n int vkControl = IS_OS_MAC ? KeyEvent.VK_META : KeyEvent.VK_CONTROL;\n\n robot.keyPre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a formatted string for the given int value in the given locale. The locale parameter must be nonnull. | public static String getStringValue (int integer, Locale locale)
{
return getStringValue(integer, locale, null, false);
} | [
"public static String getStringValue (\n int integer,\n Locale locale,\n String pattern,\n boolean useGrouping)\n {\n // locale must be non-null\n Assert.that(locale != null, \"invalid null Locale\");\n\n DecimalFormat fmt = null;\n try\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val); | public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val); | [
"public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);",
"public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);",
"public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);",
"public static nat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modify values in the report entry. | public abstract void transformReportEntry(ReportRow entry); | [
"public abstract void appendReportEntryValues(ReportRow entry);",
"public void reportUpdate(Report report);",
"void updateReport(MossReport report);",
"public abstract void updateValuesDisplay();",
"public void updateReport() {\n //TODO: updateReport\n }",
"protected void updateDueToValueChangin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__FreeVariable__Group__1__Impl" $ANTLR start "rule__Action__Group__0" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2958:1: rule__Action__Group__0 : rule__Action__Group__0__Impl rule__Action__Group__1 ; | public final void rule__Action__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2962:1: ( rule__Action__Group__0__Impl rule__Action__Group__1 )
... | [
"public final void rule__Action__Group_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3118:1: ( rule__Action__Group_0_0__0__Impl rule__Ac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
change data in the relation I had this as part of Transaction, but I guess it belongs here. Insert a Tuple into the relation. This may fail for various reasons including IO problems, invalid transaction state, or constraint violations. Or if the relation is readonly | public Key insert(Transaction tx,Tuple t) throws RelationException; | [
"public void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;",
"public void insertTuple(TransactionId tid, int tableId, Tuple t)\n throws DbException, IOException, TransactionAbortedException {\n // some code goes here\n // not necessary for proj1\n try {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ENQUIRYSON.WID | public String getWid() {
return wid;
} | [
"java.lang.String getBidid();",
"public Long getWid() {\n return wid;\n }",
"public String getWmoId() {\n String wmoID = \"\";\n if (!(stnm == GempakConstants.IMISSD)) {\n wmoID = String.valueOf(stnm / 10);\n }\n return wmoID;\n }",
"public StrColumn getBindingPartnerAsymId() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns current set of letters that have been guessed. | public SortedSet<Character> guesses() {
return this.letters;
} | [
"public Set<Character> guesses() {\n return guessedLetters; \n }",
"public SortedSet<Character> guesses() {\r\n return letterGuess;\r\n }",
"public SortedSet<Character> guesses(){\n SortedSet<Character> tempSet = new TreeSet<Character>(this.guessed); \n return tempSet;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of close method, of class ContainerOperator. | public void testClose() throws Exception {
System.out.println("close");
ContainerOperator instance = null;
instance.close();
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
} | [
"@Test\n public void testClose() {\n System.out.println(\"close\");\n Engine instance = new Engine();\n instance.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Statement__Block1Assignment_9" $ANTLR start "rule__Statement__IfAssignment_10" InternalGo.g:16516:1: rule__Statement__IfAssignment_10 : ( ruleIfStmt ) ; | public final void rule__Statement__IfAssignment_10() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalGo.g:16520:1: ( ( ruleIfStmt ) )
// InternalGo.g:16521:2: ( ruleIfStmt )
{
// InternalGo.g:16521:2: ( ... | [
"private void parseIfStatement() {\n check(Token.IF);\n check(Token.LPAR);\n\n parseCondition();\n\n int elseFixup = code.pc - 2;\n\n check(Token.RPAR);\n\n parseStatement();\n\n code.putJump(42); // Any value is fine, this will be fixed up later\n int endifFi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .Common.ItemInfo itemList = 4; | java.util.List<? extends com.znl.proto.Common.ItemInfoOrBuilder>
getItemListOrBuilderList(); | [
"game.msg.Define.DItem getItemList(int index);",
"battleapp.netproto.Struct.iProtItem getItem();",
"battleapp.netproto.Struct.iProtItemOrBuilder getItemOrBuilder();",
"java.util.List<bosphorus2.Aomgen.TERMBINDINGITEM> \n getItemsList();",
"java.util.List<? extends game.msg.Define.DItemOrBuilder> \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse a windowed expression. This actually just returns a TVE. The WindowFunctionExpression is squirreled away in the m_windowFunctionExpressions object, though, because we will need it later. | private AbstractExpression parseWindowedAggregationExpression(VoltXMLElement exprNode) {
int id = Integer.parseInt(exprNode.attributes.get("id"));
String optypeName = exprNode.attributes.get("optype");
ExpressionType optype = ExpressionType.get(optypeName);
if (optype == ExpressionType.I... | [
"public final EObject ruleWindowOperator() throws RecognitionException {\n EObject current = null;\n\n Token lv_setting_0_0=null;\n Token lv_value_1_0=null;\n Token lv_unit_2_1=null;\n Token lv_unit_2_2=null;\n Token lv_unit_2_3=null;\n Token lv_unit_2_4=null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes a json request for a list of simple assessments in a category for the findByCategoryId method | public List<SimpleAssessment> sendListAssessmentRequest(Integer categoryId) {
JsonObject assessmentRequest = new JsonObject();
assessmentRequest.addProperty("methodName", "findByCategoryId");
assessmentRequest.addProperty("categoryId", categoryId);
return (List<SimpleAssessment>) rabbitTemplate.convertSen... | [
"public Grade getByCategoryId(int categoryId);",
"List<SubCategory> getAllByCategoryId(int categoryId);",
"public List<Evaluation> getCategoryEvaluations(int categoryId);",
"List<EmbeddedCategory> selectByExample(EmbeddedCategoryCriteria example);",
"public Result getRadiosFromDatabase(String category) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if this resource address starts with the specified address. | public boolean startsWith(ResourceAddress address) {
if (this.size() < address.size()) {
return false;
}
for (int i = 0; i < address.size(); i++) {
if (!this.get(i).equals(address.get(i))) {
return false;
}
}
return true;
} | [
"private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }",
"Boolean isAddressValid(Address address);",
"private boolean isAddress(String address) {\n if (address.endsWith(\":\")) {\n return false;\n }\n String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Overriden method which returns the branches whose description matches the search pattern. (THIS METHOD IS NOT USED ANYMORE BY BRANCH_ATM_LOCATOR) | public List<BranchAtm> getBranchAtmCollection(String searchQuery) {
List<BranchAtm> branches = null;
String query = "select * from branchatm where description like '%A%'";
try {
branches = jdbcTemplate.query(query, new BranchAtmRowMapper());
if (!branches.isEmpty()) {
logger.info("Retrieval of search q... | [
"java.util.List<Bank.InitBranch.Branch> \r\n getAllBranchesList();",
"List<String> getBranches();",
"public List<Branch> getBranchListForBank(String name);",
"Bank.InitBranch.Branch getAllBranches(int index);",
"List<String> branches();",
"@Override\n public List<Branch> GetBranches() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates a member of a group. GitLab Endpoint: PUT /groups/:groupId/members/:userId | public Member updateMember(Object groupIdOrPath, Long userId, AccessLevel accessLevel) throws GitLabApiException {
return (updateMember(groupIdOrPath, userId, accessLevel.toValue(), null));
} | [
"public Member updateMember(Object groupIdOrPath, Long userId, Integer accessLevel) throws GitLabApiException {\n return (updateMember(groupIdOrPath, userId, accessLevel, null));\n }",
"public Member updateMember(Object groupIdOrPath, Long userId, Integer accessLevel, Date expiresAt) throws GitLabApiExc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
make an example field for testing | public static Field exampleFieldDb() {
Field field = FieldFinder.find("example", false);
if (field == null) {
GroupType groupType = TestGroupType.exampleGroupTypeDb();
field = groupType.addList(GrouperSession.staticGrouperSession(), "example", AccessPrivilege.READ, AccessPrivilege.ADMIN );
... | [
"public static Field exampleField() {\r\n Field field = new Field();\r\n field.setContextId(\"contextId\");\r\n field.setHibernateVersionNumber(3L);\r\n field.setName(\"name\");\r\n field.setReadPrivilege(\"readPrivilege\");\r\n field.setTypeString(\"type\");\r\n field.setUuid(\"uuid\");\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for property identityNo. | public String getIdentityNo() {
return identityNo;
} | [
"public String getIdentityNumber() {\n return IdentityNumber;\n }",
"public String getIdNo() {\n return idNo;\n }",
"public String getIdentityValue() {\n return identityValue;\n }",
"public String getIdentity()\n {\n return identity;\n }",
"public void setIdentityN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get a random polynomial | public static Polynomial getRandomPolynomial(int n){
Polynomial p = new Polynomial(n);
Random rnd = new Random();
p.coefficients.add(BigInteger.valueOf(rnd.nextLong()));
return p;
} | [
"private Polynomial generatePolynomial() {\n int[] coefficients = new int[polynomial.getSize()];\n int[] exponents = new int[coefficients.length];\n boolean done;\n for (int i = 0; i < coefficients.length; i++) {\n done = false;\n while (!done) {\n do... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set method for the atoms attribute | public void setAtoms(String[] atoms) {
this.atoms = atoms;
} | [
"@Override\n public void setAtoms(IAtom[] atoms) {\n this.atoms = atoms;\n atomCount = atoms.length;\n notifyChanged();\n }",
"public void setAtoms(IAtom[] atoms) {\n this.atoms = atoms;\n atomCount = atoms.length;\n notifyChanged();\n }",
"public void setAttr(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts clause before clause ix | public void insertClause(int ix, EClause c)
{ clauses.add(ix, c); } | [
"public native void insert(int t, int index);",
"public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }",
"public void InsertChild(IStatement c, int index);",
"void insertBefore(Object x){\r\n\t\tif( length()<=0 || index()< 0 ){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This gets the magdist filter function (distance on xaxis and mag on yaxis), returning null if the includeMagDistFilterParam has been set to false. | public ArbitrarilyDiscretizedFunc getMagDistCutoffFunc(); | [
"public void setMagDistCutoffFunc(ArbitrarilyDiscretizedFunc magDistfunc);",
"public abstract SearchMagFn makeRemovedMinMag (double min_mag);",
"public void setIncludeMagDistCutoff(boolean include);",
"public abstract SearchMagFn makeRemovedMinMag ();",
"public double getLegacyMag () {\n\t\tthrow new Marsha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the following set method gives values to MAX_MAGIC for a new instance of an AbstractArenaAnimal | protected void setMAX_MAGIC(int i) {
this.MAX_MAGIC = i;
} | [
"public void setBowDamage(short bowDamage);",
"void setArenaCreature(ArenaCreature arenaCreature);",
"void setArmor(int armor);",
"public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}",
"protected void setBaseMaxMana(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
precondition: A flow have created a listener for a file using trigger FILE.DOWNLOADED, and another flow have created a lister for the same file using trigger FILE.PREVIEWED save authenticatedwho in database save a listenerrequest in database save user credentials for box In database save the webhook in database after a... | @Test
public void testFileDownloadedPlusFiledPreviewListenerRequest() throws IOException, URISyntaxException, JSONException {
String authenticatedWhoKey = "service:box:autenticatedwho:webhook:177326:state:dd56ef5e-7ec4-4902-9db5-e7ad74c7ff53";
String listenerRequestDownloadKey = "service:box:listene... | [
"@Test\n public void testFileDownloadedFlowTriggeredAndOneListenerRequest() throws IOException, URISyntaxException, JSONException {\n String authenticatedWhoKey = \"service:box:autenticatedwho:webhook:177326:state:dd56ef5e-7ec4-4902-9db5-e7ad74c7ff53\";\n String listenerRequestKey = \"service:box:l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether to block archive files that are password protected or encrypted | @ZAttr(id=205)
public boolean isVirusBlockEncryptedArchive() {
return getBooleanAttr(Provisioning.A_zimbraVirusBlockEncryptedArchive, true);
} | [
"public static boolean allowArchive() {\n return checkAllowArchive.allowArchive();\n }",
"private boolean _isDownloadProtection(){\n \treturn true;\r\n }",
"@Override\n public boolean allowArchive() {\n return \"true\".equalsIgnoreCase(System.getenv().get(\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Alert Dialog After Selecting the Time and Date From the Schedule Activity | private void showAlertForScheduleService() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Schedule Service");
builder.setMessage("You should select service to be scheduled as you set Time and Date.");
builder.setPositiveButton("Select Service", new Dialo... | [
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ search peri 9.10 public static String adminReportSchedulePeriod(String xmlparamter) 1 | public static String xmladminReportSchedulePeriod(String groupname) {
String xml = "<parameter>\r\n<groupname></groupname>\r\n</parameter>";
String result = xml.replaceAll("<groupname></groupname>", "<groupname>" + groupname + "</groupname>");
return result;
} | [
"org.apache.xmlbeans.XmlString xgetSchedule();",
"public void getTransactionReport(HashMap<String, String> params) {\n\t\tQUERY_BY_SETTLEMENT = \"0\";\n\t\tREPORT_START = params.get(\"reportStart\");\n\t\tREPORT_END = params.get(\"reportEnd\");\n\t\tQUERY_BY_HIERARCHY = params.get(\"subaccountsSearched\");\n\t\tD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
See the overflow property definition in CSS2. | public void setOverflow(String overflow) throws DOMException; | [
"public boolean hasOverflow() {\n\t\treturn hasOverflow;\n\t}",
"private void setOverflow(boolean overflow)\n {\n if(mOverflow.compareAndSet(!overflow, overflow))\n {\n if(mOverflowListener != null)\n {\n mOverflowListener.sourceOverflow(overflow);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of Gen_verifyCSS(String object, String data,String dataOne) / 22 > Get page title | public static void Gen_pageTitleVerify(String data) throws Exception
{
String text = null;
try {
App_Log.debug("Verifying page title");
text = driver.getTitle();
System.out.println(text);
System.out.println(data);
if(text.equals(data))
{
App_Log.debug("Verify page title complet... | [
"String getPageTitle();",
"protected abstract String getPageTitle();",
"public String getTitle() throws UnsupportedEncodingException, IOException, URISyntaxException {\t \r\n\t String title = null;\r\n\r\n \tsrc();\r\n\t \r\n \tif (pageSrc!=null) {\r\n \t Pattern titleTag = Pattern.compile(\"<title>(.*)</t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty NONNULL_PTR this_ptr, struct LDKPublicKey val); | public static native void ChannelCounterparty_set_node_id(long this_ptr, byte[] val); | [
"public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, byte[] val);",
"public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, byte[] val);",
"public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, byte[] val);",
"public static nat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if GPU processing is enabled in the cpu.adoc section for the current computer. If cpu.adoc is not in use, returns true if GPU processing has been turned on in the Settings dialog. Otherwise returns false. Side effect: May create Node.LOCAL_HOST_INSTANCE. | public static boolean isLocalHostGpuProcessingEnabled(BaseManager manager,
AxisID axisID, String propertyUserDir) {
Node localHost;
if (CpuAdoc.INSTANCE.exists()) {
localHost = CpuAdoc.INSTANCE.getLocalHostComputer(manager, axisID, propertyUserDir);
}
else {
if (Node.LOCAL_HOST_INSTANCE ... | [
"public static boolean isGpuProcessingSetExternally() {\n return CpuAdoc.INSTANCE.exists();\n }",
"public static boolean isNonLocalOnlyGpuProcessingEnabled() {\n return !CpuAdoc.INSTANCE.isGpuComputerListEmpty(null);\n }",
"public static boolean isSupportedCpu() {\n return nIsSupportedCpu();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the invariant epcPmtInfId. | @Test
public void testEpcPmtInfId01() throws Throwable {
List<IInterpretationResult> results;
results = super.interpretConstraintsForInstance(CONSTRAINT_DIRECTORY
+ "/epcPmtInfId", MODELINSTANCE_NAME_01, Arrays
.asList(new String[] { "PaymentInstructionInformation2" }));
assertNotNull(r... | [
"@Test\r\n \tpublic void testEpcPmtInfId03() throws Throwable {\r\n \r\n \t\tList<IInterpretationResult> results;\r\n \t\tresults = super.interpretConstraintsForInstance(CONSTRAINT_DIRECTORY\r\n \t\t\t\t+ \"/epcPmtInfId\", MODELINSTANCE_NAME_03, Arrays\r\n \t\t\t\t.asList(new String[] { \"PaymentInstructionInformat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__CheckCatalog__Group__5__Impl" $ANTLR start "rule__CheckCatalog__Group__6" ../com.avaloq.tools.dslsdk.check.ui/srcgen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:3524:1: rule__CheckCatalog__Group__6 : rule__CheckCatalog__Group__6__Impl rule__CheckCatalog__Group__7 ; | public final void rule__CheckCatalog__Group__6() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:3528:1: ( rule__CheckCatalog... | [
"public final void rule__Check__Group__6__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:4328:1: ( ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of the dialer fragment | public static Fragment newInstance() {
return new DialerFragment();
} | [
"@Override\n protected Fragment createFragment() {\n return NerdLauncherFragment.newInstance();\n }",
"public static ReceiveDialogFragment newInstance() {\n Bundle args = new Bundle();\n ReceiveDialogFragment fragment = new ReceiveDialogFragment();\n fragment.setArguments(args);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cancels STDIN processing if the nash client reports no STDIN or the STDIN stream is EOFed. | public void cancelStdInStream() {
stdInLatch.countDown();
if(pipeOut!=null) {
log.debug("Closing PipeOut");
try { pipeOut.flush(); } catch (Exception e) {}
try { pipeOut.close(); } catch (Exception e) {}
log.debug("Closed PipeOut");
}
pipeOut = null;
if(pipeIn!=null) try {
log.debug("Closing P... | [
"private static BufferedReader STDIN() {\n if ( _reader == null ){\n try{\n _reader = new BufferedReader(new InputStreamReader(System.in));\n }catch(Exception error){\n error.printStackTrace();\n System.exit(1);\n }\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last job in the ordered set where userId = &63; and runType = &63;. | public static Job findByRunType_U_Last(long userId, String runType,
OrderByComparator<Job> orderByComparator)
throws com.kisti.osp.icebreaker.exception.NoSuchJobException {
return getPersistence()
.findByRunType_U_Last(userId, runType, orderByComparator);
} | [
"public static Job fetchByRunType_U_Last(long userId, String runType,\n\t\tOrderByComparator<Job> orderByComparator) {\n\t\treturn getPersistence()\n\t\t\t\t .fetchByRunType_U_Last(userId, runType, orderByComparator);\n\t}",
"public static Job fetchByRunType_G_U_Last(long groupId, long userId,\n\t\tString runTy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets krr of surface | @Override
public double getKrr() {
return krr;
} | [
"float getK();",
"public final double getKr() {\n\t\treturn kr;\n\t}",
"@Override\n\tpublic double getKrg() {\n\t\treturn krg;\n\t}",
"public float getK() {\n return k_;\n }",
"public List<Key> getSurfaceKeys() {\n return surfaceKeys;\n }",
"public float getK() {\n return k_;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to convert a string to a method. | public static Method stringToMethod(String method) throws ArgumentException {
for(Method argument : Method.values())
if(method.equals(argument.getMethodString())) return argument;
throw new ArgumentException("Method " + method + " does not exist.");
} | [
"@JsonCreator\n public static Method fromString(String name) {\n return fromString(name, Method.class);\n }",
"Method createMethod();",
"@Test\n public void testBuildMethodFromString() {\n System.out.println(\"buildMethodFromString\");\n String str = \"public int isItGood(int myArg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the hosts MsvmVirtualSystemManagementServiceExtended. | static public MsvmVirtualSystemManagementServiceExtended getManagementServiceExtended(
final SWbemServices service) throws Exception
{
// Get the management service.
final String wql = "SELECT * FROM Msvm_VirtualSystemManagementService";
final SWbemObjectSet<MsvmVirtualSystemManageme... | [
"public MachineDetails[] getExistingManagementServers() throws CloudProvisioningException {\n\t\tunsupported();\n\t\treturn null;\n\t}",
"public List<VirtualMachineDescriptor> listVirtualMachines() {\n ArrayList<VirtualMachineDescriptor> result =\n new ArrayList<VirtualMachineDescriptor>();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the cql model. | public void setCqlModel(CQLModel cqlModel) {
this.cqlModel = cqlModel;
} | [
"public CQLModel getCqlModel() {\r\n return cqlModel;\r\n }",
"void setModel(Model model);",
"public void setModelClass(Class model) {\r\n\t\tthis.model=model;\r\n\t}",
"public abstract Query<T> setQuery(String oql);",
"public <T extends BaseSlingModel> void setModel(final T model) {\n this.mod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creating the properties sheet which contains all of the informations of the widget that the user can edit | @Override
protected Sheet createSheet() {
//initialize the properties editor with the properties of the widget
//initialize the x ad y coordinates of the widget
loadUnloadSenso... | [
"private TreeItem createPropertiesDialog() {\r\n this.propertiesDialog = new Shell(this.formDialog, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.CLOSE);\r\n this.propertiesDialog.setSize(750, 500);\r\n this.propertiesDialog.setLayout(new FormLayout());\r\n\r\n Button btnCancel = new Button(this.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if identificator is next in expression. | private boolean isIdentificatorAhead() {
return Character.isLetter(expression[currentIndex]);
} | [
"protected boolean lookaheadIsFirstOfExpression() {\n if (!lookaheadIn(NonT.firstOf(NonT.EXPRESSION)))\n return false;\n if (lookaheadIs(TokenCode.ADDOP) && lookahead().getOpType() != OpType.PLUS && lookahead().getOpType() != OpType.MINUS)\n return false;\n else\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Get Service request Callback. | public interface GetServiceCallback extends Callback{
/**
* The method invoked when Get Service request finished.
*
* @param result
* the request result, true for success.
* @param service
* the ModelService.
* @param error
... | [
"void get(String url, Callback handler);",
"void get(String url, HashMap<String, String> headers, Callback handler);",
"public void Get() {\n final String urlString = this.urlString;\n final boolean saveResponse = this.saveResponse;\n final String responseFileName = this.responseFileName;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new fizzbuzz game. | public FizzbuzzGame(Integer number, String result) {
super(number);
this.result = result;
} | [
"public FizzbuzzGame(Integer number) {\n\t\tsuper(number);\n\t}",
"@Before\n public void init() {\n fb = new FizzBuzz();\n }",
"public HexGame() {\n /* FIXME */\n }",
"public Fumble() {\n\t\tthis(\"fumble\", null);\n\t}",
"public static Say fizzBuzz(int number){\n StringBuilder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks the safety (not security) and lifeness state of the authentication subsystem. | void checkAuthenticationSafetyAndLifeness(); | [
"boolean canAuthenticate();",
"private void checkAuthControl() {\n val authKey = config.getString(\"authControlKey\");\n val authValue = config.getString(\"authControlValue\");\n\n checkArgument(authKey.length() > 2, \"auth string (control key) length is less than or equal to 2!\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1. check if the copy constructor already exists | private void addCopyConstructor() throws Exception {
try {
ctClass.getDeclaredConstructor(new CtClass[]{ctClass});
// if found just skip this method
return;
}
catch( NotFoundException e ) {
/* ok. go on */
}
// 3. the main copy constructor body
StringBuilder _copy = new StringBuilder();
... | [
"protected boolean shouldThrowReflectiveCopyException() \n {\n\treturn false ;\n }",
"@SuppressWarnings(\"unchecked\")\n private Constructor<ModelElement> getCopyConstructor(ModelElement modelElement) {\n Constructor<ModelElement> result;\n try {\n result = (Constructor<ModelElem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cause each bucket to point to the subsequent one. Returns address of original, or 0 if the list was empty. | protected long rewriteChain(List<WritethruRecordChainNode> buckets){
if(buckets.isEmpty()) return 0;
buckets.get(buckets.size() - 1).setNextRecordPos(0);
for(int i=0; i<buckets.size()-1; i++){
buckets.get(i).setNextRecordPos(buckets.get(i+1).getPos());
}
return buckets.get(0).getPos();
} | [
"public void reallocateBuckets() {\n lockAllAndThen(() -> {\n final ItemNode<K,V>[] newBuckets = makeBuckets(2 * buckets.length);\n for (int hash=0; hash<buckets.length; hash++) {\n ItemNode<K,V> node = buckets[hash];\n while (node != null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value of the deploy on startup flag. If true, it indicates that this host's child webapps should be discovered and automatically deployed at startup time. | public boolean getDeployOnStartup() {
return (this.deployOnStartup);
} | [
"public boolean isStartOnDeploy() {\n return this.startOnDeploy;\n }",
"public void setStartOnDeploy(boolean startOnDeploy) {\n this.startOnDeploy = startOnDeploy;\n }",
"public void setDeployOnStartup(boolean deployOnStartup) {\n\n boolean oldDeployOnStartup = this.deployOnStartup;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the value of the slider or spinner changes, Updates the appropriate component. | public void stateChanged(ChangeEvent e) {
if (slider.getValue() == (int)spinner.getValue()) return;
if (e.getSource() == slider)
spinner.setValue(slider.getValue());
else
slider.setValue((int)spinner.getValue());
fireStateChanged(new ChangeEvent(this));
} | [
"public static void update()\r\n\t{\r\n\t\tselectedValue = (int) ((double) sliderWidth/(double) totalWidth*maxValue);\r\n\t\t_display.setText( selectedValue + \" / \" + maxValue );\r\n\t\t_sliderBar.setSize( sliderWidth, 18 );\r\n\t}",
"public void updateSlider() { }",
"public void updateChooser() {\n if... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print info banner for the App | private static void printAppBanner() {
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("~~~~~~~~~~~ Credit Calculator (v. 0.1) ~~~~~~~~~~~~~");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
} | [
"public static void p_show_info_program() {\n System.out.println(\"------------------------------------------------------------------\");\r\n System.out.println(\"! SOFT-HEIGHT VERSION 1,0 !\");\r\n System.out.println(\"! MAKERS: Miguel Andres Diaz,Juan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the useMaxEventsForTrans property. | boolean isUseMaxEventsForTrans(); | [
"void setUseMaxEventsForTrans(boolean value);",
"public long getMaxEvents() {\n return maxEvents_;\n }",
"public long getMaxEvents() {\n return maxEvents_;\n }",
"@ApiModelProperty(value = \"Maximum number of events to be returned. A value of zero indicates the ASPSP should not return even... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the date is the Christmas day. | private boolean isChristmasDay(final Calendar date) {
return CHRISTMAS_DAY == date.get(Calendar.DAY_OF_MONTH)
&& Calendar.DECEMBER == date.get(Calendar.MONTH);
} | [
"boolean hasDayNight();",
"boolean checkDayNight(boolean daytime);",
"private boolean checkIfItIsDayOrNight(long sunrise, long sunset) {\n String sunriseString = formatTimeString(sunrise * TIME_FACTOR);\n String sunsetString = formatTimeString(sunset * TIME_FACTOR);\n long currentTime = Sys... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An array of sheet definitions for a dashboard. | public void setSheets(java.util.Collection<SheetDefinition> sheets) {
if (sheets == null) {
this.sheets = null;
return;
}
this.sheets = new java.util.ArrayList<SheetDefinition>(sheets);
} | [
"public java.util.List<SheetDefinition> getSheets() {\n return sheets;\n }",
"public Map<String,Sheet> getSheetsByName() {\n return this.sheetsByName;\n }",
"public List<Sheet> getSheets() {\n\n List<Sheet> sheets = new ArrayList<>();\n for (int i=0; i<workbook.getNumberOfSheet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of critical pairs. | public List<CriticalPair> getCriticalPairs() {
return criticalPairs;
} | [
"public PairContainer getCriticalPairs() {\r\n\t\treturn this.criticalPairs;\r\n\t}",
"public List<CriticalComponent> getCriticalComponents();",
"public Iterator<CriticalPair> iterator() {\n\t\treturn criticalPairs.iterator();\n\t}",
"public List<String> getCriticalList(){\n\t\t\n\t\tList<String> newPatientLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the block pointer table. | public List<Integer> getBlockPointerTable() {
return blockPointerTable;
} | [
"public int[] getBlockPointervalue() {\n return this.blockPointerValue;\n }",
"public long getGuardAddressIatTableTablePointer() {\n\t\treturn guardAddressTakenIatEntryTable;\n\t}",
"public int getNumBlockPointers() {\n\t\treturn blockPointerTable.size() - 1;\n\t}",
"public TableMap getTableMap() th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
convert letter to index | public int letter2index(char c) {
return (int)(c - 'A')%26 ;
} | [
"static int getIdx(char ch)\n {\n return (ch - 'a');\n }",
"private static int letterToInt(char chr)\r\n {\r\n return (int) chr - (int) 'A';\r\n }",
"private int getIndex(char aChar) {\n // I preferred to not instantiate a new Character object each time I used this class\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read the device sn on EPROM; | public String readDeviceSN(int snLen){
return mFactoryBurnUtil.readDeviceSN(snLen);
} | [
"public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }",
"private void readSn() {\n byte[] mSNBuff = new byte[15];\n byte[] mBootBuff = new byte[1];\n String mAPSN = \"\";\n char bootFlag = '0';\n /*\n byte[] mSNBuff = new byte[15];\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the braking time NOTE !!! This computation will be affected by the addition of the wind !!! | private double computeBrakingTime(final double thrusterForce) {
//Apply formula timeToGetToVelocity0 = maxVelocity / (gravityAcceleration + thrustAcceleration)
// where thrustAcceleration is computed as
double brakingTime = velocity.getY() / (GRAVITYTITAN + (thrusterForce/weight));
return brakingTime;
} | [
"public double getCBRTime();",
"public void operateTheBoatForAmountOfTime(double time){// pass 1 as a time\n\t\t if(time > 0.0 && time <= 5.0 ){\n \tdouble fuelUsage = EfficiencyOfTheBoatMotor*currentSpeedOfTheBoat*currentSpeedOfTheBoat*time;\n \tfuelUsage = fuelUsage/10000;//since we have hp, and... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
appends another DoublyLinkedList after this one | public DoublyLinkedList<Type> appendAfter(DoublyLinkedList<Type> l) {
this.last.next = l.first;
this.length += l.length();
return this;
} | [
"public DList<A> append(DList<A> other) {\n return new DList<>(kleisliTrampCompose(this.appendFn, other.appendFn));\n }",
"private DoubleLinkedList<Integer> addAfterFromTwoElementListOne() {\n\t\t\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.addToRear(new Integer(1));... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the MessageStandard value set in the options file. | public String getActionIdentityMessageStandard()
{
String messageStandard = _options.getProperty(SET_ACTION_IDENTITY_MESSAGE_STANDARD, null);
if (messageStandard != null && messageStandard.trim().length()==0)
{
messageStandard = null;
}
return messageStandard;
} | [
"public String getStandard() {\n return standard;\n }",
"public String getStandardValue() {\n return standardValue;\n }",
"public String getValue(String opt) {\n return (String)m_commandLine.getValue(opt);\n }",
"public String getToolstandard() {\r\n return toolstandard;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insert a Unique area details | public long insertuniqearedetails(Unique_Area_Detail _uad)
{
ContentValues uArea = new ContentValues();
uArea.put(KEY_WARD_NO, _uad.get_ward());
uArea.put(KEY_POLY_NO, _uad.get_poly());
uArea.put(KEY_FORM_KEY, _uad.get_form_key());
return _db.insert(DATABASE_TABLE_UNIQUE_AREA, null, uArea);
} | [
"boolean addAreaToMap(Area area);",
"@Override\n public Area createArea(Area area) {\n \t// Connecting to database\n \tConnection con = jdbcConnectionPool.takeOut();\n \tString sqlUpdate = \"insert into area (name) values (?)\";\n\n \ttry {\n \t\tPreparedStatement stat = con.prepareStatement(sql... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
loop over node list and return a violation list | private List<Violation> processNodeList(NodeList list, boolean isWarningList)
{
List<Violation> violations = new ArrayList<Violation>();
Violation violation;
int lineNum = 0;
for (int i = 0; i < list.getLength(); i++) {
String message = list.item(i).getTextContent();
... | [
"public static void validateRuleAgainstNodes(List<Element> nodes, Rule rule) {\n List<Element> resultNodes = nodes.stream().filter(element -> element.getNamespacePrefix().equals(rule.getNode().getNamespace()) &&\n element.getName().equals(rule.getNode().getName())).collect(Collectors.toList())... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleGroupStageType" $ANTLR start "ruleSeason" InternalEsportDsl.g:2462:1: ruleSeason returns [Enumerator current=null] : ( (enumLiteral_0= 'spring' ) | (enumLiteral_1= 'summer' ) ) ; | public final Enumerator ruleSeason() throws RecognitionException {
Enumerator current = null;
Token enumLiteral_0=null;
Token enumLiteral_1=null;
enterRule();
try {
// InternalEsportDsl.g:2468:2: ( ( (enumLiteral_0= 'spring' ) | (enumLiteral_1= 'summer'... | [
"public final Enumerator ruleGroupStageType() throws RecognitionException {\r\n Enumerator current = null;\r\n\r\n Token enumLiteral_0=null;\r\n Token enumLiteral_1=null;\r\n Token enumLiteral_2=null;\r\n Token enumLiteral_3=null;\r\n Token enumLiteral_4=null;\r\n To... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Implies__Group_1__1__Impl" $ANTLR start "rule__Implies__Group_1__2" InternalDsl.g:30998:1: rule__Implies__Group_1__2 : rule__Implies__Group_1__2__Impl ; | public final void rule__Implies__Group_1__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:31002:1: ( rule__Implies__Group_1__2__Impl )
// InternalDsl.g:31003:2: rule__Implies__Group_1__2__Impl
{
pushFo... | [
"public final void rule__Implies__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:30921:1: ( rule__Implies__Group__1__Impl )\n // InternalDsl.g:30922:2: rule__Implies__Group__1__Impl\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
save employed physician data | public ActionForward saveAllEmployedPhysician(
ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
Logger l = LogUtils.enterLog(getClass(), "saveAllEmployedPhysician", new Object[]{mapping, form, request, response});
St... | [
"private void saveInfo() {\n\n\t\t// make sure the data in here is stored in the consultation class.\n\t\tVerifyPhysicianInfo();\n\t\tVerifySocialHistory();\n\t\tVerifyAssessmentAndPlan();\n\t\tVerifyVitalSigns();\n\n\t\t// ////////////////Physician Info ////////////////////////////\n\t\tPhysicianInfo pI = _globals... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor that gets a and b and turns it into a monom | public Monom(double a, int b){
this._coefficient=a;
this._power=b;
} | [
"public Monom(double a, int b){\r\n\t\tthis.set_coefficient(a);\r\n\t\tthis.set_power(b);\r\n\t}",
"public Monom(double a, int b){\r\n\t\tthis.set_coefficient(a);\r\n\t\tthis.set_power(b);\r\n\t\tif(b<0) {//the power of Monom is non negative\r\n\t\t\tthrow new RuntimeException(\"ERR: power got a negative value\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a metadata response. | public MetadataResponse() {
data = new HashMap<String, Object>();
} | [
"com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata();",
"protected CosServiceResponse<T> parseResponseMetadata(CosHttpResponse response) {\n CosServiceResponse<T> cosResponse = new CosServiceResponse<T>();\n String cosRequestId = response.getHeaders().get(Headers.REQUEST_ID);\n Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get MenuTo from Menu | public static MenuTo getToFromMenu(Menu menu) {
return new MenuTo(menu.getId(), menu.getName(), menu.getDate());
} | [
"Menu getMenu();",
"public String getParentMenu();",
"java.lang.String getUpprMenu();",
"public static Menu getMenu() {return menu;}",
"private JMenu getMnuGoTo() {\r\n\t\tif (mnuGoTo == null) {\r\n\t\t\tmnuGoTo = new JMenu();\r\n\t\t\tmnuGoTo.setText(\"Go to\");\r\n\t\t\tmnuGoTo.add(getMniBack());\r\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the Item array. | public Item[] getItem(); | [
"public Object[] getItems()\n {\n return items.toArray();\n }",
"public Item[] toItemArray()\r\n {\r\n Item[] a = new Item[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Item) vi.getObject();\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extracts DiseaseGene information from omim.org. Uses disease and gene information to create a DiseaseGene object which includes references and pubmed information. | public static DiseaseGene getDiseaseGene(Disease disease, Gene gene) {
DiseaseGene diseaseGene = new DiseaseGene();
diseaseGene.setGene(gene);
diseaseGene.setDisease(disease);
JSONObject json = getJSON(OMIM_REF + disease.getDOID());
JSONObject omim = json.getJSONObject("omim");... | [
"public static List<Disease> getDiseases(String gene) {\n ArrayList<Disease> diseases = new ArrayList<Disease>(0);\n if (gene.isEmpty()) {\n return diseases;\n }\n\n JSONObject json = getJSON(OMIM_URL + gene);\n\n JSONObject omim = json.getJSONObject(\"omim\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
logic used to assign any person to an elevator if they are not currently so | public void assignElevators()
{
List<Floor> neededFloors = getNeededFloors();
for(Floor f : neededFloors)
{
Elevator closestElevator = null;
//how to add a floor when all elevators are going in the opposite direction
for(Elevato... | [
"@Override\n\tpublic void addPeopleToElevator(Elevator e)\n\t\t\tthrows InvalidParameterException {\n\t\tsynchronized (this) {\n\t\t\tArrayList<Person> peopleToRemove = new ArrayList<Person>();\n\n\t\t\tfor (int i = 0; i < people.size(); i++) {\n\n\t\t\t\tif (e.getStatus() == Elevator.Status.MOVING_UP) {\n\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use this API to count the filtered set of clusternodegroup resources. set the filter parameter values in filtervalue object. | public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception{
clusternodegroup obj = new clusternodegroup();
options option = new options();
option.set_count(true);
option.set_filter(filter);
clusternodegroup[] response = (clusternodegroup[]) obj.getfiltered(service, option)... | [
"public static long count_filtered(nitro_service service, String filter) throws Exception{\n\t\tclusternodegroup obj = new clusternodegroup();\n\t\toptions option = new options();\n\t\toption.set_count(true);\n\t\toption.set_filter(filter);\n\t\tclusternodegroup[] response = (clusternodegroup[]) obj.getfiltered(ser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For PLFM1978, calling getBackupBatch() with an empty list causes a BadSqlGrammarException because the resulting 'in' clause is empty. | @Test
public void testPLFM_1978_getBackupBatch(){
List<Long> list = new LinkedList<Long>();
// pass the empty list should return an empty result
List<DBOFileHandle> results = migratableTableDAO.getBackupBatch(DBOFileHandle.class, list);
assertNotNull(results);
assertEquals(0, results.size());
} | [
"java.util.List<yandex.cloud.api.mdb.sqlserver.v1.PSB.Backup> \n getBackupsList();",
"public Batch getBatchFromAllBatchesById() {\n // TODO Auto-generated method stub\n return null;\n }",
"@java.lang.Override\n public java.util.List<? extends yandex.cloud.api.mdb.sqlserver.v1.PSB.Back... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleMoccEvent" $ANTLR start "ruleMoccEvent" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:826:1: ruleMoccEvent : ( ruleEclEvent ) ; | public final void ruleMoccEvent() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:830:2: ( ( ruleEclEvent ) )
// ../org.gemoc.gel.xtext.ui/src-gen... | [
"public final void entryRuleMoccEvent() throws RecognitionException {\n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:818:1: ( ruleMoccEvent EOF )\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/inter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when it's a start step a traverser needs to be created to kick off the traversal. | @Override
protected Traverser.Admin<E> processNextStart() {
if (isStart && first) {
first = false;
generateTraverser(false);
}
return super.processNextStart();
} | [
"protected void beginTraversal(SoNode node)\n\t //\n\t {\n\t traverse(node);\n\t }",
"@Override\r\n\tpublic void beginStep() {\n\t\t\r\n\t}",
"void beginStepContext(STEP step);",
"public static void beginStep() {\n\t\tTestNotify.log(STEP_SEPARATOR);\n\t TestNotify.log(GenLogTC() + \"is ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the custordId property. | public void setCustordId(int value) {
this.custordId = value;
} | [
"public void setCustId(java.lang.CharSequence value) {\n this.custId = value;\n }",
"public void setCustId(Integer custId) {\n setField(\"custId\", custId);\n }",
"public void setCustId(Integer custId) {\n this.custId = custId;\n }",
"public com.hcl.uob.poc.model.CustomerDetails.Builde... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the given Timeline to this Animation. | protected void addTimeline(Timeline timeline) {
timelines.add(timeline);
} | [
"public\n Timeline push(final Timeline timeline) {\n animator.flushRead();\n\n timeline.parent = this;\n children.add(timeline);\n\n setupTimeline__(timeline);\n\n animator.flushWrite();\n return this;\n }",
"protected void setTimeline(RMTimeline aTimeline)\n{\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
=============================================================== RBuild buffer to request to control to disconnect heartbeat | @SuppressWarnings({"UnusedDeclaration"})
private static byte[] getBufferToDisconnectHeartbeat(String tangoHost,
String deviceName) throws DevFailed {
byte[] buffer = new byte[0];
try {
ArrayList<String> stringList = new ArrayLis... | [
"private static byte[] getBufferToDisConnectEvent(String tangoHost, String deviceName,\n String attributeName, int idl, String eventName) throws DevFailed{\n byte[] buffer = new byte[0];\n try {\n ArrayList<String> stringList = new ArrayList<String>();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PowerStatement__BasenumberAssignment_2" $ANTLR start "rule__PowerStatement__TimesAssignment_4" InternalArithmetic.g:1506:1: rule__PowerStatement__TimesAssignment_4 : ( RULE_INT ) ; | public final void rule__PowerStatement__TimesAssignment_4() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalArithmetic.g:1510:1: ( ( RULE_INT ) )
// InternalArithmetic.g:1511:2: ( RULE_INT )
{
// InternalArithme... | [
"public final void rule__PowerStatement__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalArithmetic.g:1237:1: ( ( ( rule__PowerStatement__TimesAssignment_4 ) ) )\n // InternalArithmetic.g:1238:1: ( ( rule__P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |