query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Extracts a VAmp 2 patch from a VAmp 2 patch dump response (block of data). Calls parseSysex to do the extraction. | public Patch[] extractPatch(Patch p) {
byte[] sysex = parseSysex(p.getByteArray());
Patch[] newPatchArray = new Patch[1];
newPatchArray[0] = getPatchFactory().createNewPatch(sysex, new VAmp2SingleDriver());
log.info(">>>>>>> Patch From Device <<<<<<<<<");
log.info(" " + MidiMe... | [
"private byte[] parseSysex(byte[] sysex) {\n int patchLength = sysex.length;\n byte[] VAmpSysex = new byte[sysex.length];\n for (int i = sysex.length - 1; i >= 0; i--) {\n if (sysex[i] == Constants.VAMP2_DUMP_HDR_BYTES[0]) {\n if (isVAmpPatch(sysex, i)) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch Stage of CPU Cycle. Fetch instruction at address stored in "pc" register from memory into instruction register and set "pc" to point to the next instruction to execute. Input register: pc. Output registers: pc, instruction, insOpCode, insOp0, insOp1, insOp2, insOpImm, insOpExt | @Override protected void fetch() throws MainMemory.InvalidAddressException {
int pcVal = pc.get();
UnsignedByte[] ins = mem.read (pcVal, 2);
byte opCode = (byte) (ins[0].value() >>> 4);
insOpCode.set (opCode);
insOp0.set (ins[0].value() & 0x0f);
insOp1.set (ins[1].... | [
"private int fetch(int pc) {\n int opcode = (memory[pc] & 0xFF) << 8 | (memory[pc+1] & 0xFF);\r\n return opcode;\r\n }",
"private void fetchInstruction(){\r\n int instructionAddr = this.readyProcesses.peek().getNextInstruction();\r\n boolean success = this.cpu.execute(instructionAdd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the user's last passwordchange date. Applications are not expected to call this directly. Calls to setUserPassword (for initialized User objects) will set the last passwordchange date automatically. Returns self. | PyxisUser setUserLastPasswordChange(Date lastPasswordChange); | [
"@JsonIgnore\n\tpublic Date getLastPasswordResetDate() {\n\t\treturn lastPasswordResetDate;\n\t}",
"Date getUserLastPasswordChange();",
"@Nonnull\n public User setLastLoginDate(@Nullable String lastLoginDate) {\n this._lastLoginDate = lastLoginDate;\n return this;\n }",
"public void setLas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes a payment and updates the CSV files for payments | public void makePayment() {
// update payment status to 'paid' with the new amount
CSVHandler csv = new CSVHandler();
if(yearDue < LocalDate.now().getYear()) {
csv.changeTaxPaymentStatus(eircode, yearDue, TaxCalculator.overdueFees(amount,yearDue,LocalDate.now().getYear()));
}... | [
"public static void makePayment() {\n // Get the project number the user wishes to work on\n Project proj = getProject();\n int newAmount = getUserInt(\"Add client's next payment: \");\n\n try {\n projMang.updateAmountPaid(proj, newAmount);\n\n } catch (Exception e) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for WETRN.IMG_IMPRT_DATA_MAPG.TO_VAL_TXT. The value that the Data will be changed to. | public void setToValTxt(String value) {
setValue(3, value);
} | [
"public String getToValTxt() {\n\t\treturn (String) getValue(3);\n\t}",
"public String getFromValTxt() {\n\t\treturn (String) getValue(2);\n\t}",
"public void setFromValTxt(String value) {\n\t\tsetValue(2, value);\n\t}",
"public void setTxt(String aTxt)\n {\n txt = aTxt;\n setItDirty(true);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build a control flow graph from a TryCatchFinally statement Merge the try and the finally in one block and ignore the catch | private SubGraph process(CtTry tryStatement) {
// Get data
CtBlock<?> body = tryStatement.getBody();
CtBlock<?> finalizer = tryStatement.getFinalizer();
// Build the sub-graph
List<CtStatement> block = new ArrayList<>();
block.addAll(body.getStatements());
if (finalizer != null)
block.addAll(finalize... | [
"private void processTrys1() { \n for (int i=0; i<tryStatements.size(); i++) {\n TryStatement stmt = (TryStatement) tryStatements.get(i);\n TryHeaderNode header = stmt.header;\n Node finallyNode = header.getFinallyNode();\n if (finallyNode == null) continue;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether this code block contains a given offset. | public boolean contains(int offset) {
return offset>=start && offset<end;
} | [
"public static boolean containsAddress(final INaviCodeNode codeNode, final IAddress offset) {\n for (final IInstruction instruction : codeNode.getInstructions()) {\n if (instruction.getAddress().equals(offset)) {\n return true;\n }\n }\n\n return false;\n }",
"public static boolean isEX... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Nils the "TraceInfo" element | public void setNilTraceInfo()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.crm._2011.contracts.TraceInfo target = null;
target = (com.microsoft.schemas.crm._2011.contracts.TraceInfo)get_store().find_element_user(TRACEINFO$2, 0);
... | [
"public boolean isNilTraceInfo()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.crm._2011.contracts.TraceInfo target = null;\r\n target = (com.microsoft.schemas.crm._2011.contracts.TraceInfo)get_store().find_element_user(TRA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the external id of the FX forward node at a particular tenor that is valid for that curve date. | public ExternalId getFXForwardNodeId(final LocalDate curveDate, final Tenor tenor) {
if (_fxForwardNodeIds == null) {
throw new OpenGammaRuntimeException("Cannot get FX forward node id provider for curve node id mapper called " + _name);
}
return getId(_fxForwardNodeIds, curveDate, tenor);
} | [
"public ExternalId getFRANodeId(final LocalDate curveDate, final Tenor tenor) {\n if (_fraNodeIds == null) {\n throw new OpenGammaRuntimeException(\"Cannot get FRA node id provider for curve node id mapper called \" + _name);\n }\n return getId(_fraNodeIds, curveDate, tenor);\n }",
"public External... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// isplay the result for text input question type. | private void understandSpeechString(String text) {
int eTextChoice = 1;
EditText et = findViewById(eTextChoice);
et.setText(text);
} | [
"public boolean isText() {\n return this.getAction() == Action.TEXT;\n }",
"public boolean verifyPlayOrTakeInput(String input) {\r\n\t\t\r\n\t\tif (input.toLowerCase().equals(\"p\") || input.toLowerCase().equals(\"t\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'var215' field. | public com.dj.model.avro.LargeObjectAvro.Builder setVar215(java.lang.CharSequence value) {
validate(fields()[216], value);
this.var215 = value;
fieldSetFlags()[216] = true;
return this;
} | [
"public void setVar215(java.lang.CharSequence value) {\n this.var215 = value;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar216(java.lang.CharSequence value) {\n validate(fields()[217], value);\n this.var216 = value;\n fieldSetFlags()[217] = true;\n return this;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ GENERATED CODE IRowAccessor that tests whether one IRowAccessor is less than or equal to another IRowAccessor. / GENERATED CODE | public interface LessThanEqualsAccessor extends IRowAccessor.BOOLEAN {
/* GENERATED CODE */
/* GENERATED CODE */
/**
* IRowAccessor that tests whether a(n) int is less than or equal to a(n) int.
*/
/* GENERATED CODE */ public static class INT_INT impleme... | [
"public abstract boolean $lt(LeoObject other);",
"boolean ltExpr(InternalRow row, int ordinal);",
"@Override\n\t\tprotected boolean lessThan(final Entry hitA, final Entry hitB) {\n\t\t\tassert hitA != hitB;\n\t\t\tassert hitA.mSlot != hitB.mSlot;\n\n\t\t\tfinal int c = mOneReverseMul * mFirstComparator.compare(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets one of the two currencies. | public Currency getSecondCurrency() {
return _ccy2;
} | [
"public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }",
"public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }",
"public String getOtherCountryCurrency()\n\t{\n\t\treturn getOtherCountryCurrency( getSession().getSessionContext() );\n\t}",
"java.lang.S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The list of full resource ids that the login is restricted to. | @javax.annotation.Nullable
@ApiModelProperty(value = "The list of full resource ids that the login is restricted to.")
public List<String> getBoundResourceIds() {
return boundResourceIds;
} | [
"public String getResourceIds() {\n return resourceIds;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The list of resource names that the login is restricted to (e.g, a virtual machine name, scale set name, etc).\")\n\n public List<String> getBoundResourceNames() {\n return boundR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Save TUVs into DB. | public static void saveTuvs(Connection p_connection, Collection<Tuv> p_tuvs, long p_jobId)
throws Exception
{
PreparedStatement ps = null;
try
{
Job job = ServerProxy.getJobHandler().getJobById(p_jobId);
if (job != null && Job.JOB_TYPE_BLAISE.equals(job.g... | [
"public void saveToDB() {\n \twipeDB();\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tfor (int i = 0; i < wallpapers.size(); i++) {\n\t\t\tvalues.put(EventDataSQLHelper.NODE, nodeToString(wallpapers.get(i)));\n\t\t\ttry {\t\t\t\t\n\t\t\t\tdb.insert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the minimum ID in the tree | public int findMin(){
if(root==nil){
return 0;
}
Node temp = root;
while(temp.left != nil){
temp=temp.left;
}
return temp.id;
} | [
"public int findMin() {\n if (root == null) {\n return -1;\n }\n\n TreeNode temp = FindMin(root);\n\n return (temp.deleted == false) ? temp.key : -1;\n }",
"public int min_id() {\n\t\treturn index[heap[1].getVertex()];\n\t}",
"int minValue(Node root){\n\t int minV = r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests setting a single email address. | public void testSingleEmailAddress() {
rootBlog.setProperty(SimpleBlog.EMAIL_KEY, "me@mydomain.com");
assertEquals("me@mydomain.com", rootBlog.getEmail());
assertEquals(1, rootBlog.getEmailAddresses().size());
assertEquals("me@mydomain.com", rootBlog.getEmailAddresses().iterator().next());
} | [
"@Test\n public void testSetEmail() {\n System.out.println(\"Set email from user\");\n String email = \"new email.nl\";\n user6.setEmail(email);\n assertEquals(\"Email should be not null\", email, user6.getEmail());\n }",
"public void testSetAndGetBasicEmail() {\r\n\t\ttestUInfo.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the COM property "DismissButton" | @VTID(75)
boolean getDismissButton(); | [
"@VTID(76)\r\n void setDismissButton(\r\n boolean rhs);",
"public JButton getButtonCancel() {\n return this.buttonCancel;\n }",
"boolean getDismissed();",
"private BButton getBtnCancel() {\r\n if (btnCancel == null) {\r\n btnCancel = new BButton();\r\n btnCancel.setText(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the label with the specified index. | public String getLabel(int index) {
return (String) labels.elementAt(index);
} | [
"public Feature getLabel(int index) { return labels.get(index); }",
"prometheus.Types.Label getLabels(int index);",
"public String getLabel(int elementIndex) {\r\n String elementLabel = (String) distanceMatrix.getLabels().get(elementIndex);\r\n return elementLabel;\r\n }",
"String getLevelLab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleTagCS" $ANTLR start "ruleTagCS" ../org.eclipse.qvto.examples.xtext.qvtoperational/srcgen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/internal/InternalQVTOperational.g:2178:1: ruleTagCS returns [EObject current=null] : (otherlv_0= 'tag' ( ( (lv_name_1_1= ruleUnrestrictedName | lv_nam... | public final EObject ruleTagCS() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token lv_name_1_2=null;
Token otherlv_3=null;
Token otherlv_5=null;
AntlrDatatypeRuleToken lv_name_1_1 = null;
EObject lv_pathName_2_0 = null;
... | [
"public final EObject entryRuleTagCS() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleTagCS = null;\r\n\r\n\r\n try {\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/parser/antlr/interna... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It not depend on 'SecurityFactory.prepare()', it equals AuthenticationManager authManager = new JBossAuthenticationManager(securityDomain, new PicketBoxCallbackHandler()); | static void getAuthenticationManager() {
AuthenticationManager authManager = SecurityFactory.getAuthenticationManager("Sample");
System.out.println(authManager);
} | [
"@Override \n protected void configure(AuthenticationManagerBuilder auth) throws Exception { \n \tauth.authenticationProvider(authenticationProvider());\n }",
"public Authentication getRealAuthentication();",
"private AuthenticationManager createAuthenticationManager() {\n\t\tAuthenticationManager am... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send a SET_CAM_PARAM command to the Fluke. The parameter address and value are sent as parameters. The Fluke takes some time (150 msec) to reconfigure itself so we'll be sure to wait after sending the command. | private void _set_cam_param( int addr, int value )
{
// send the command to the Fluke
int[] data = new int[] { addr, value };
_setFluke( SET_CAM_PARAM, data );
// wait for the Fluke to reconfigure
MyroUtils.sleep( 0.150 );
} | [
"public void executeSetParam() {\n\t\ttry {\n\t\t\tWebClient client = WebClient.create(matlabAdapterLocation+\"/MatlabAdapter/rest/matlab/setParam\");\n\t\t\tclient.query(\"modelName\", modelLocation)\n\t\t\t\t.query(\"object\",setParamObjectName)\n\t\t\t\t.query(\"name\", setParamParamName)\n\t\t\t\t.query(\"value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new visitor category with the primary key. Does not add the visitor category to the database. | public static com.idetronic.eis.model.VisitorCategory create(
long visitorCategoryId) {
return getPersistence().create(visitorCategoryId);
} | [
"@Override\n\tpublic Category create(long categoryId) {\n\t\tCategory category = new CategoryImpl();\n\n\t\tcategory.setNew(true);\n\t\tcategory.setPrimaryKey(categoryId);\n\n\t\tcategory.setCompanyId(CompanyThreadLocal.getCompanyId());\n\n\t\treturn category;\n\t}",
"Category createCategory(String name);",
"Ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the current progress of the task | public void setProgress(Integer progress) {
taskInfo.setProgress(progress);
} | [
"public void setProgress(int value);",
"void setProgress(float progress);",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"public void setProgress() {\n if (this.progressBar != null && this.totalRows > 0) {\n this.progressBar.setProgress(this.counterNumber);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'numberOfCMeasurements' field. | public com.xplordat.rtmonitoring.avro.Triangle.Builder clearNumberOfCMeasurements() {
fieldSetFlags()[5] = false;
return this;
} | [
"public void setNumberOfCMeasurements(java.lang.Integer value) {\n this.numberOfCMeasurements = value;\n }",
"public com.xplordat.rtmonitoring.avro.Triangle.Builder clearNumberOfAMeasurements() {\n fieldSetFlags()[3] = false;\n return this;\n }",
"public com.xplordat.rtmonitoring.avro.Triangle.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtiene el valor de PrecioMedio | public double getPrecioMedio() {
return this.precio_medio;
} | [
"public double getGastoMedio(){\n\t\treturn valorcombustiblemedio ;\n\t}",
"public BigDecimal getValorPrecoMedio() {\n\t\treturn valorPrecoMedio;\n\t}",
"public int getValoracionMedia(){\n return valoracionMedia;\n }",
"public String getTipoMedida() {\n\t\treturn tipoMedida;\n\t}",
"int getMediaVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the top class node from our objectPropertyNodeHierarchy. This node is the node without any outgoing edges | @Override
public Node<OWLObjectPropertyExpression> getTopObjectPropertyNode() {
Iterator<Node<OWLObjectPropertyExpression>> iter = objectPropertyNodeHierarchy.iterator();
while (iter.hasNext()) {
Node<OWLObjectPropertyExpression> currentNode = iter.next();
Set<DefaultEdge> e... | [
"@Override\n public Node<OWLClass> getTopClassNode() {\n Iterator<Node<OWLClass>> iter = classNodeHierarchy.iterator();\n while (iter.hasNext()) {\n\n Node<OWLClass> currentNode = iter.next();\n Set<DefaultEdge> edgeSet = classNodeHierarchy.outgoingEdgesOf(currentNode);\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DeleteFirstLetterCommand Constructor Constructor that takes a MyStringBuilder object | protected DeleteFirstLetterCommand(MyStringBuilder obj) {
super(obj);
} | [
"private DeleteLetter(Builder builder) {\n super(builder);\n }",
"public MyStringBuilder2 deleteCharAt(int index)\n\t{\n\t\tif(index < 0 || index > (length - 1)) {\n\t\t\treturn this;\n\t\t} else {\n\t\t\t//deletes first one\n\t\t\tif(index == 0) {\n\t\t\t\tfirstC = firstC.next;\n\t\t\t\tlength--;\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
coordinate conversion methods 'local' is the vector space inside this component 'parent' is the vector space containing this component 'global' is the vector space containing all components | public PVector localToParent(PVector l){
PMatrix2D m = matrix.get();
return m.mult(l, null);
} | [
"@Override\n public Vector2 parentToLocalCoordinates(Vector2 parentCoords) {\n return super.parentToLocalCoordinates(parentCoords);\n }",
"void vectorToWorld(double px, double py, double pz, DVector3 result);",
"void vectorFromWorld(double px, double py, double pz, DVector3 result);",
"@Override\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the isConvertLeadDisabled value for this CustomField. | public java.lang.Boolean getIsConvertLeadDisabled() {
return isConvertLeadDisabled;
} | [
"public void setIsConvertLeadDisabled(java.lang.Boolean isConvertLeadDisabled) {\r\n this.isConvertLeadDisabled = isConvertLeadDisabled;\r\n }",
"boolean getDisabled();",
"public Integer getDisabledFlag() {\n return disabledFlag;\n }",
"final public boolean isDisabled()\n {\n return Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The seasonality adjustment will apply to all the campaigns under the listed channels retroactively as well as going forward when the scope of this adjustment is CHANNEL. The supported advertising channel types are DISPLAY, SEARCH and SHOPPING. Note: a seasonality adjustment with both advertising_channel_types and campa... | public Builder setAdvertisingChannelTypes(
int index, com.google.ads.googleads.v14.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdvertisingChannelTypesIsMutable();
advertisingChannelTypes_.set(inde... | [
"@java.lang.Override\n public com.google.ads.googleads.v14.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelTypes(int index) {\n return advertisingChannelTypes_converter_.convert(advertisingChannelTypes_.get(index));\n }",
"public com.google.ads.googleads.v14.enums.AdvertisingChan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of products where companyId = &63; and status = any &63;. | public int countByC_S(long companyId, int[] statuses); | [
"int getCountForConditionCompany(Long companyId);",
"public int countByC_NotS(long companyId, int status);",
"public int countByC_S(long companyId, int status);",
"public int countByCompanyId(long companyId);",
"public java.util.List<Product> findByC_S(long companyId, int status);",
"public int countByC_U... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Uses a Struts write tag to dump out the total | public void render(PageContext pageContext, Tag parentTag) throws JspException {
JspWriter out = pageContext.getOut();
try {
out.write("<tr>");
final int emptyCellSpanBefore = this.getColumnNumberOfRepresentedCell() - 1;
out.write("<td cl... | [
"private void createTotalTestMethod(BufferedWriter writer)\r\n\t\t\tthrows IOException {\r\n\t\tString parent = \"<label style='position: inherit;top: 57px;'>\";\r\n\t\tString content = \"<span style='color: #000000;font-weight: bold;padding-left: 8px;font-family: Roboto, sans-serif;'>Total TestMethod</span>\";\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column MEMBER_GROUP_PERMS_VIEW.PERMISSIONS_DESC | public void setPermissionsDesc(String permissionsDesc) {
this.permissionsDesc = permissionsDesc;
} | [
"public String getPermissionsDesc() {\n return permissionsDesc;\n }",
"public static String Run_UpdatePermission_Description() {\n return holder.format(\"Run.UpdatePermission.Description\");\n }",
"public void setAccessRight(java.lang.String value);",
"public String getPermissionDescriptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool is_broadcast = 3; | boolean getIsBroadcast(); | [
"boolean hasBroadcast();",
"public boolean isBroadcast() {\r\n \t\treturn (broadcast != null);\r\n \t}",
"public boolean isBroadcast() {\r\n return broadcast;\r\n }",
"boolean hasBroadcaster();",
"@java.lang.Override\n public boolean getIsBroadcast() {\n return isBroadcast_;\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates the bulk input is done | void onEndBulkInput(); | [
"public synchronized void batchProcessComplete() {\n processed.clear();\n LOGGER.info(\"Completed \" + entityCount + \" documents\");\n }",
"public final void finishBulkUpdate() {\n inBulkUpdate = false;\n if (firingEvents) {\n listeners.forEach(listener -> listener.onBul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'vote_status' field. | public java.lang.String getVoteStatus() {
return vote_status;
} | [
"public java.lang.String getVoteStatus() {\n return vote_status;\n }",
"public void setVoteStatus(java.lang.String value) {\n this.vote_status = value;\n }",
"public java.util.Map<java.lang.String,trans.encoders.relayVote.Status> getStatus() {\n return status;\n }",
"public String getbvSta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will map "SovDirectory" Bean to modelAttribute. | @ModelAttribute(value = "/sovDirectoryBean")
public SovDirectory getSovDirectoryBeanForm() {
return new SovDirectory();
} | [
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface AccessDirectoryMapper {\n\n AccessDirectoryDTO accessDirectoryToAccessDirectoryDTO(AccessDirectory accessDirectory);\n\n AccessDirectory accessDirectoryDTOToAccessDirectory(AccessDirectoryDTO accessDirectoryDTO);\n}",
"private Book mapBookDT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Since we don't have a fixed file extension, we override getDefaultApplicationName methods | @Override
public String getDefaultApplicationName(ReadableArchive archive)
{
String appName = archive.getName();
int lastDot = appName.lastIndexOf('.');
if (lastDot != -1) {
appName = appName.substring(0, lastDot);
}
return appName;
} | [
"public abstract String getDefaultExtension();",
"java.lang.String getApplicationName();",
"protected String getDefaultFilename() {\n return getFilename(\n mDefaultFilenamePrefix\n + mFileNameDelimiter\n + sAndroidDeviceName\n + mFileNameDelimiter\n + sAndro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ If the item allows anvil actions, it is possible that the player renamed the item in an anvil. It would be bad to 'reset' the name each time the item set is updated, so I will instead replace all occurrences of the display name of the old custom item with the display name of the new custom item. (Even this might not ... | private void upgradeDisplayName(ItemMeta toUpgrade, CustomItem oldItem, CustomItem newItem) {
if (newItem.allowAnvilActions()) {
if (toUpgrade.hasDisplayName()) {
String currentDisplayName = toUpgrade.getDisplayName();
String newDisplayName = currentDisplayName.replace(oldItem.getDisplayName(), newItem.get... | [
"private ItemStack renameItem(ItemStack item, String key) {\r\n\t\tItemMeta meta = item.getItemMeta();\r\n\t\tmeta.setDisplayName(ModuleFactory.getInstance().getTranslator().getTranslation(plugin, player, key));\r\n\t\titem.setItemMeta(meta);\r\n\t\treturn item;\r\n\t}",
"private void setDisplayName(ItemStack ite... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the DSCRD value for this ProductPRD. | public java.lang.String getDSCRD() {
return DSCRD;
} | [
"public java.lang.String getDSCRSD() {\n return DSCRSD;\n }",
"public String getDcrp() {\n return dcrp;\n }",
"public java.lang.String getDSCRMD() {\n return DSCRMD;\n }",
"public String getDcrp() {\n\t\treturn dcrp;\n\t}",
"public BigDecimal getsDrpr() {\n return sDrpr;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string stat = 2; | java.lang.String getStat(); | [
"static int type_of_rc(String passed){\n\t\treturn 1;\n\t}",
"public void setStat(Integer stat) {\r\n this.stat = stat;\r\n }",
"static int type_of_stc(String passed){\n\t\treturn 1;\n\t}",
"public void setStat(Integer stat) {\n this.stat = stat;\n }",
"public String getStatName()\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an aliased db_mall.t_customer_bill_month table reference | public TCustomerBillMonth(Name alias) {
this(alias, T_CUSTOMER_BILL_MONTH);
} | [
"public TCustomerBillMonth(String alias) {\n this(DSL.name(alias), T_CUSTOMER_BILL_MONTH);\n }",
"public TCustomerBillMonth() {\n this(DSL.name(\"t_customer_bill_month\"), null);\n }",
"private static TableRef createAliasedTableRef( final TableMeta table,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getColour Compares this ball's value with another, returning 0 if it is greater, or if the values are equal then compare the RGB numbers of the colours instead. | public int compareTo(Ball other)
{
if (value == other.value)
return colour.getRGB() - other.colour.getRGB();
else
return value - other.value;
} | [
"public boolean compareColor(int x, int y, Color c) {\n //this compares the double values but uses ints for the actual comparison\n return (int)this.fb[x][y][0] * 255 == (int)c.getRed() * 255 && (int)this.fb[x][y][1] * 255 == (int)c.getGreen() * 255 && (int)this.fb[x][y][2] * 255 == (int)c.getBlue() *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used for loading a FileConfiguration from a File. Therefore different formats can be used. | public interface IFileConfigurationLoader {
/**
* <p> Loads a FileConfiguration from the given file. </p>
*
* @param file File to load from
* @return the FileConfiguration
*/
public FileConfiguration loadConfiguration(File file);
} | [
"public FileConfiguration loadConfiguration(File file);",
"public T loadConfig(File file) throws IOException;",
"void Initialize(File configurationFile);",
"Configuration loadXMLConfiguration(String fileName);",
"public File getConfigurationFile();",
"Configuration loadPropertiesConfiguration(String fileN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Maybe move this into a file for the values instead Recalculates the level for an xp amount | public int calculateLevel(double xp) {
int level = 0;
double maxXp = calculateXpForLevel(1);
do {
maxXp += calculateXpForLevel(level++);
} while (maxXp < xp);
return level;
} | [
"private void xpCalculator()\n {\n if((playerParty != null) && (enemyParty != null))\n {\n //go through all members of the party to check their levels\n for(int i=0; i < playerParty.characterCount(); i++)\n {\n if(!playerParty.getCharacter(i).isDead())\n {\n int tmplevel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the String that the current space of the spaces ComboBox. | public String getCurrentSpace() {
return spaces.getValue();
} | [
"public ComboBox<String> getSpaces() {\n return spaces;\n }",
"public String freeSpacesString() {\n\t\tr.lock();\n\t\tString free = \"\";\n\t\tfor (long f : freeSpaces.keySet()) {\n\t\t\tfree = free + f + \"[\" + freeSpaces.get(f) + \"]\\n\";\n\t\t}\n\t\tr.unlock();\n\t\treturn free;\n\t}",
"private S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called by Obliquity(APP) on failed download | private void downloadFailed() {
makeToast("We encountered an error while trying to refresh.", Toast.LENGTH_LONG);
refreshing = false;
if(list != null)
list.onRefreshComplete();
if(askLoadCache())
dlHandler.loadCache();
else
displayEmpty();
} | [
"void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);",
"@Override\n public void onFailure(Call call, IOException e) {\n listener.onDownloadFailed(MyApplication.getContext().getString(R.string.failure_please_try_again));\n }",
"@Overr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .org.jetbrains.kotlin.metadata.jvm.PackageParts package_parts = 1; Names of .class files for each package | java.util.List<org.jetbrains.kotlin.metadata.jvm.JvmModuleProtoBuf.PackageParts>
getPackagePartsList(); | [
"int getClassWithJvmPackageNameShortNameCount();",
"int getClassWithJvmPackageNamePackageIdCount();",
"public int getClassWithJvmPackageNameShortNameCount() {\n return classWithJvmPackageNameShortName_.size();\n }",
"org.jetbrains.kotlin.metadata.jvm.JvmModuleProtoBuf.PackageParts getPackageParts(int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the exec paths of the input artifacts in alphabetical order. | public static ImmutableList<PathFragment> asSortedPathFragments(Iterable<Artifact> input) {
return Streams.stream(input).map(Artifact::getExecPath).sorted().collect(toImmutableList());
} | [
"public static List<String> asExecPaths(Iterable<Artifact> artifacts) {\n return ImmutableList.copyOf(toExecPaths(artifacts));\n }",
"@VisibleForTesting\n public static List<String> asExecPaths(NestedSet<Artifact> artifacts) {\n return asExecPaths(artifacts.toList());\n }",
"public List<Path> getMainAr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies that a prompt is sent to the proxy and the appropriate answer is returned. | @Test
void testPrompt() throws Exception {
DomWindow window = createMainWindow();
_proxy.setAnswer(null);
assertEquals("0", window.prompt("How many choices?", "0"), "User default choice");
TestWindowProxy.assertLastProxyMethod("prompt( How many choices? )");
_proxy.setA... | [
"private String promptForAnswer(AnswerChecker answerChecker) {\n String answer;\n while (true) {\n regularPresenter.newAnswerPrompter();\n answer = scanner.nextLine();\n if (answerChecker.isValidAnswerForm(answer)) break;\n else regularPresenter.illegalAnswe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copies home wallpaper metadata to lock, and if rotation was enabled with a live wallpaper previously, then copies over the rotating wallpaper image to the WallpaperManager also. Used to accommodate the case where a user had gone from a home+lock daily rotation to selecting a static wallpaper on homeonly. The image and ... | private void copyRotatingWallpaperToLock() {
mWallpaperPreferences.setLockWallpaperAttributions(
mWallpaperPreferences.getHomeWallpaperAttributions());
mWallpaperPreferences.setLockWallpaperActionUrl(
mWallpaperPreferences.getHomeWallpaperActionUrl());
... | [
"private void copyRotatingWallpaperToLock(\n @RotatingWallpaperComponent int currentRotatingWallpaperComponent) {\n\n mWallpaperPreferences.setLockWallpaperAttributions(\n mWallpaperPreferences.getHomeWallpaperAttributions());\n mWallpaperPreferences.setLockWa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates the following test fixtures: Substances (children of SUBSTANCE): INGREDIENT5 (ingredient with two inbound HAI from ASPIRIN_TABLET and ALGOFLEX_TABLET, one inbound HAS_BOSS from ALGOFLEX_TABLET) INGREDIENT6 (ingredient with two inbound HAS_BOSS from ASPIRIN_TABLET and ALGOFLEX_TABLET, one inbound HAI from ALGO... | private void generateDrugsWithGroups() {
index().write(MAIN, currentTime(), writer -> {
writer.put(nextStorageKey(), concept(INGREDIENT5)
.parents(SUBSTANCEL)
.statedParents(SUBSTANCEL)
.build());
writer.put(nextStorageKey(), concept(INGREDIENT6)
.parents(SUBSTANCEL)
.statedParents(SUBS... | [
"private void generateDrugHierarchy() {\n\t\tindex().write(MAIN, currentTime(), writer -> {\n\t\t\t// substances\n\t\t\twriter.put(nextStorageKey(), concept(INGREDIENT1)\n\t\t\t\t\t.parents(SUBSTANCEL)\n\t\t\t\t\t.statedParents(SUBSTANCEL)\n\t\t\t\t\t.build());\n\t\t\twriter.put(nextStorageKey(), concept(INGREDIENT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the parameter table | protected void createParameterTable(Composite parent) {
parameterGroup = new Group(parent, SWT.NONE);
{
parameterGroup.setText(Messages.grpParameters);
GridData gridData = new GridData(GridData.FILL_BOTH);
parameterGroup.setLayoutData(gridData);
parameterGroup.setLayout(new GridLayout());
}
createEm... | [
"private GribPDSParamTable(String name, int cen, int sub, int tab, Grib1Parameter par[]){\n filename = name;\n center_id = cen;\n subcenter_id = sub;\n table_number = tab;\n url = null;\n parameters = par;\n }",
"Parameters createParameters();",
"private void readStaticParameters... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a RandomNumberGenerator with a lower bound of minNumber and upper bound of maxNumber | RandomNumberGenerator(int minNumber, int maxNumber){
this.minNumber = minNumber;
this.maxNumber = maxNumber;
} | [
"private static int generateNumber(int max, int min) {\r\n return new Random().nextInt((max - min) + 1) + min;\r\n }",
"public int getRandomInt (int minInclusive, int maxInclusive);",
"public RangeRandom(final float min, final float max) {\n this.max = max;\n this.min = min;\n thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Outputs all information from all bandit solvers into files | private void printAllBanditResults() {
for (CameraController cc : this.cameras) {
IBanditSolver bs = cc.getAINode().getBanditSolver();
if (bs != null) {
ArrayList<ArrayList<Double>> results = bs.getResults();
printResults(results, outputFile + "_" + cc.getName() + ".csv");
}
}
} | [
"public void dumpAll() {\r\n\t\tSystem.out.println(\"\\n All Branches (pSpec, tauSpec, and basisSpec)\");\r\n\t\tfor(int j=0; j<numSpec; j++) {\r\n\t\t\tSystem.out.format(\"%3d: %8.6f %8.6f %9.2e %9.2e %9.2e %9.2e %9.2e\\n\",\r\n\t\t\t\t\tj,pSpec[j],tauSpec[j],basisSpec[j][0],basisSpec[j][1],basisSpec[j][... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merges this value with another Value and returns a resolved (= normal) Value. | public Value combine(Value otherValue) throws IllegalArgumentException; | [
"public Value add(Value other) {\n\t\tUnit base = this.unit.findCommonBaseUnit(other.unit);\n double convert1 = this.unit.convert(this.value, base);\n double convert2 = other.unit.convert(other.value, base);\n return new Value(base, convert1 + convert2);\n\t}",
"public static RawData merge(fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
=================================================================================== Current DBDef ============= | public DBDef getCurrentDBDef() { return DBCurrent.getInstance().currentDBDef(); } | [
"@Override\r\n protected DBDef getCurrentDBDef() {\r\n return DBCurrent.getInstance().currentDBDef();\r\n }",
"@Override\r\n public Db_db currentDb(){return curDb_;}",
"@CodeCompletion\n public abstract WGHierarchicalDatabase hdb() throws WGException;",
"public CuratorDb database() { return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
lowpass filtering for noise reduction | public float[] lowpass(float[] in)
{
float[] out = new float[in.length];
float alpha = 0.21F; // constant obtained through trail and error
out[0] = 0;
for(int i = 1; i < in.length; i++)
{
out[i] = alpha * in[i] + (1-alpha) * out[i-1]; // algorithm
}
return out; // return filtered value
} | [
"public static void lowPassFilter() {\n double[][] lp = lowpassKernel();\n for(int x = 0; x < orig.width(); x++) {\n for(int y = 0; y < orig.height(); y++) {\n //apply kernel to each pixel to get value for new image\n lowpass.set(x,y,applyKernel(lp, x, y));\n }\n }\n if(debug) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the status date of this actuacion. | @Override
public void setStatusDate(Date statusDate) {
model.setStatusDate(statusDate);
} | [
"@Override\n\tpublic void setStatusDate(Date statusDate);",
"public void setStatusDate(Date statusDate)\r\n {\r\n m_statusDate = statusDate;\r\n }",
"@Override\n public void setStatusDate(java.util.Date statusDate) {\n _person.setStatusDate(statusDate);\n }",
"@Override\n\tpublic void se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ The printScores function obtain the scorefile as a list of BowlDomain, and return a String to print the value as order like a score bowl params: List return: String | @Override
public String printScores(List<BowlDomain> bowlList) {
// TODO Auto-generated method stub
String result = "";
// List the name of the players
ScoreBowlService scoreService = new ScoreBowlServiceImpl();
List<String> names = scoreService.obtainNamePlayers(bowlList);
int i = 0;
// To print the fi... | [
"private void printScore() {\n\t\tSystem.out.print(\"Score: \");\n\t\tfor (ScoreItem item : othello.getScore().getPlayersScore()) {\n\t\t\tSystem.out.print(getPlayerNameFromId(item.getPlayerId()) + \" (\" + item.getScore() + \") \");\n\t\t}\n\t}",
"void printScoresFor(String player, FormattedPrinter printer);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used lsview to determine the viewTag if viewTag was not specified. | private String determineViewTag() {
if (viewTag == null) {
viewTag = ClearCaseUtils.getViewTag(getViewPath(), getProject());
}
return viewTag;
} | [
"ITagView getTagView();",
"public final <T extends android.view.View> T findViewWithTag(java.lang.Object tag) { throw new RuntimeException(\"Stub!\"); }",
"@Override\n\tpublic long getTagId() {\n\t\treturn _statViewTag.getTagId();\n\t}",
"private List<View> findViewsWithTag(View view, Object tag) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows a dialog to create new trees | public void showNewTreeDialog(JDialog owner, Dataset dataset, ProgressListener<Tree> progressListener) {
GeneratorOptions options;
TreeGenProgressWorker genTask;
TreeGenDialog dlg = new TreeGenDialog(owner, dataset, this);
dlg.setVisible(true);
if (dlg.getResult()) {
... | [
"public void showTree() {\n //javax.swing.JOptionPane.showMessageDialog( null, new ShowBST<K,V>( this, 800,600 ), \"Show tree\", javax.swing.JOptionPane.PLAIN_MESSAGE );\n }",
"public GenerateNodesDialog(GUI p){\n\t\tsuper(p, \"Create new Nodes\", true);\n\t\tGuiHelper.setWindowIcon(this);\n\t\tcancel.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is called once per iteration and goes through each burglar calling their step method. This is done (instead of using Repast scheduler) to allow multithreading (each step method can be executed on a free core). This method actually just starts a ThreadController thread (which handles spawning threads to step burgla... | public synchronized void agentStep() {
this.burglarsFinishedStepping = false;
(new Thread(new ThreadController(this))).start();
while (!this.burglarsFinishedStepping) {
try {
this.wait(); // Wait for the ThreadController to call setBurglarsFinishedStepping().
} catch (InterruptedException e) {
LOGG... | [
"public void run() {\n\n\t\tfor (IAgent b : ContextManager.getAllAgents()) {\n\n\t\t\t// Find a free cpu to exectue on\n\t\t\tboolean foundFreeCPU = false; // Determine if there are no free CPUs\n\t\t\t\t\t\t\t\t\t\t\t// so thread can wait for one to\n\t\t\t\t\t\t\t\t\t\t\t// become free\n\t\t\twhile (!foundFreeCPU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gets location left side of player | public Location getLeftLoc(Player player) {
int x = player.getLocation().getX() - 1;
int y = player.getLocation().getY();
return getLoc(x, y);
} | [
"private Location getLeftHandPos() {\r\n\t\treturn GeneralMethods.getLeftSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}",
"public void moveLeft(){\n playerRect.move(Constants.PLAYER_MOVE_BACK, Constants.PLAYER_MOVE_Y_POS);\n }",
"private Point2D.Double leftSensorLocation() {\n doub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Doubles the capacity of the internal array. | private void doubleCapacity() {
arr = Arrays.copyOf(arr, capacity *= 2); // These operators (+=, -=, *=, etc) return their value when used as expressions (i.e. without ";").
} | [
"protected void doubleCapacity() {\n\t\tT[] temp = (T[]) data;\n\t\tdata = (T[]) new Object[2 * data.length];\n\t\tfor(int i = 0; i < temp.length; i++) {\n\t\t\tdata[i] = temp[i];\n\t\t}\n\t}",
"private void doubleArrayCapacity() {\n\t\t\tint[] arrNew = new int[arr.length * 2];\n\t\t\tarr = arrNew;\n\t\t}",
"pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Postcondition: Creates a copy of Polynomial p | public Polynomial(Polynomial p)
{
TermNode source = p.head;
TermNode copyHead;
TermNode copyTail;
copyHead = new TermNode(p.head.coefficient, p.head.exponent, null);
copyTail = copyHead;
while (source.link != null)
{
source = source.link;
copyTail.link = new Te... | [
"public Polynomial(Polynomial p){\n this(\"\");\n if(p == null)throw new NullPointerException();\n int[] exp = new int[p.terms()];\n double[] coeff = new double[p.terms()];\n int testTerms = 0;\n for(int i = 0, j = 0; testTerms < p.terms(); i++){\n if(p.getCoeffi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of Service Assemblies deployed to the JBI enviroment. | public String[] getDeployedServiceAssemblies() {
String[] result = null;
Set<String> keys = serviceAssemblies.keySet();
result = new String[keys.size()];
keys.toArray(result);
return result;
} | [
"public Collection<ServiceAssemblyLifeCycle> getServiceAssemblies() {\n return serviceAssemblies.values();\n }",
"public String[] getDeployedServiceAssembliesForComponent(String componentName) {\n String[] result = null;\n // iterate through the service assembilies\n Set<String> tmp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read Data Read Details section data row wise including labels | public String getDetailsSectionData(int row)
{
return receiptsetup.getDetailsSectionData(row);
} | [
"public void readTableData1() {\n\t\t// Find row size\n\t\tList<WebElement> rowCount = driver.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td/parent::*\"));\n\t\tfor(WebElement data:rowCount){\n\t\t\tSystem.out.println(data.getText());\n\t\t}\n\t}",
"public void readData()\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use a JSONArray of node scores to set fill. | protected void handleFillResults(BiodeSet addedBiodeSet, JSONArray scoresJA) {
BiodeSet scored = new BiodeSet();
// set new node fill
for (int i = 0; i < scoresJA.size(); i++) {
JSONObject jo = scoresJA.get(i).isObject();
String concept = jo.get("concept").isString().stringValue();
double score = jo.get... | [
"void setScores(int scores[]);",
"public TestScores(int[] testScores) {\n this.testScores = testScores;\n }",
"public void setScores(Map<String, Integer> scores) {\r\n if (scores != null) { //& inside scores all valid\r\n for (Map.Entry<String, Integer> e : scores.entrySet()) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Decrements the owner graph's edge counter. | protected void decEdgeCount() {
--ownerGraph.edgeCount;
} | [
"protected void incEdgeCount() {\n ++ownerGraph.edgeCount;\n }",
"public void reset() {\n edgeIDGiver = 0;\n }",
"public int removeEdge(Person node1, Person node2);",
"public void reduceNumEdges(){\n if (!dbManager.isKeyExist(NUM_OF_EDGES)){\n return;\n }\n e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field dkFileConf is set (has been assigned a value) and false otherwise | public boolean isSetDkFileConf() {
return this.dkFileConf != null;
} | [
"public boolean isSetConf() {\n return this.conf != null;\n }",
"public boolean isSetFilePath() {\n return this.filePath != null;\n }",
"public boolean isSetFile() {\n return this.File != null;\n }",
"public boolean isSetFileCont()\n {\n synchronized (monitor())\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool user_uplink = 1; | boolean getUserUplink(); | [
"boolean getUserDownlink();",
"public boolean getUserUplink() {\n return userUplink_;\n }",
"public boolean getUserDownlink() {\n return userDownlink_;\n }",
"public boolean getUserDownlink() {\n return userDownlink_;\n }",
"boolean hasDo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the serial port output stream | public OutputStream getSerialOutputStream() {
return outStream;
} | [
"public OutputStream getOutputStream()\n {\n if (m_Port != 0) {\n return new SimpleSerialOutputStream(this);\n }\n else {\n System.out.println(\"###ERROR: You can't get input stream because serial port wasn't opened\");\n }\n return null;\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convenience method for UCI 'go infinite' | CalculationResult goInfinite(); | [
"public boolean isInfinite()\n {\n return infinite;\n }",
"InfiniteloopImplementation createInfiniteloopImplementation();",
"CompletableFuture<CalculationResult> goInfiniteAsync();",
"public boolean isInfinite()\n {\n return this.infinite;\n }",
"public boolean isPositiveInfinite() {\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return new ZooKeeper("node11:2181,node12:2181,node13:2181", SESSION_TIMEOUT, watcher); return new ZooKeeper("nodewuc02:2181,nodewuc03:2181,nodewuc04:2181", SESSION_TIMEOUT, watcher); | public ZooKeeper getClient2(Watcher watcher) throws IOException{
return new ZooKeeper("node-wuc-02:2181", SESSION_TIMEOUT, watcher);
} | [
"public ZooKeeper getClient(Watcher watcher) throws IOException{\n\t\treturn new ZooKeeper(\"node11:2181,node12:2181,node13:2181\", SESSION_TIMEOUT, watcher);\n\t}",
"public ZooKeeper getClient3(Watcher watcher) throws IOException{\n\t\treturn new ZooKeeper(\"node-wuc-03:2181\", SESSION_TIMEOUT, watcher);\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column testcaseresult.testcaseid | public Integer getTestcaseid() {
return testcaseid;
} | [
"public int getTestCaseId() {\n return testCaseId;\n }",
"public int getTestcaseId() {\n\n return testcaseId;\n\n }",
"public String getTestCaseId() {\n return getTestCaseIdProperty().getValue();\n }",
"public Integer getTestsuiteresultid() {\r\n return testsuiteresultid;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
breadthFirstSearch: return a list of connecting Nodes, or null no parameters, since start and goal descriptions are problemdependent. therefore, constructor of specific problems should set up start and goal conditions, etc. The Integer is the hash code, which is the state written in integer form 3 missionaries, 3 canni... | public List<UUSearchNode> breadthFirstSearch(){
resetStats();
List<UUSearchNode> path = new ArrayList<UUSearchNode>();
Queue<UUSearchNode> frontier = new LinkedList<UUSearchNode>();
frontier.add(startNode);
nodesExplored++;
HashMap<Integer,UUSearchNode> visited = new HashMap<Integer,UUSearchNode>();
... | [
"private Cell breadthFirstSearch(WorldMap worldMap, Cell startCell, CELLTYPE goalType, Hashtable<Cell, Cell> prev) {\n\n\t\t// Using markedSet to avoid re-checking already visited nodes\n\t\tHashSet<Cell> markedSet = new HashSet<Cell>();\n\t\tLinkedList<Cell> queue = new LinkedList<Cell>();\n\n\t\tmarkedSet.add(sta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve a previously added contact from his DID. | public Contact resolveContact(String did) {
if (did == null)
return null;
return dbAdapter.getContactByDID(didSessionDID, did);
} | [
"public jobmatch.data.PersonDO getContact () \n throws DataObjectException {\n beforeAnyGet();\t// business actions/assertions prior to data return\n checkLoad();\n return data.Contact;\n }",
"public JwmaContact getContact(String uid);",
"public Contact getContact(UUID id) {\n\t\treturn this.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new ReferenceMapProperty that will clone or not clone its values when used as a template, depending on `cloneValue`. | @SuppressWarnings("unchecked")
public ReferenceMapProperty(boolean cloneValue) {
clone = cloneValue;
data = new Map[1];
} | [
"IGLProperty clone();",
"ReferenceProperty createReferenceProperty();",
"@Override\n\tpublic PropertyDTO clone() {\n\t\treturn new PropertyDTO(new String(this.getName()), new String(this.getValue()));\n\t}",
"public PropertyMap copy() {\n return new PropertyMap(this);\n }",
"@Override\n\tpublic MapNode ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method creates server open button on panel. | private void createServerOpenButton(GridBagConstraints bagConstraints) {
serverOpenButton = new WebButton(ClientConstants.OPEN_SERVER);
serverOpenButton.setPreferredSize(new Dimension(120, 35));
serverOpenButton.setBackground(Color.decode(ClientConstants.PANEL_COLOR_HEX));
serverOpenButt... | [
"public void addServerOpenButtonListener(ActionListener actionListener) {\n serverOpenButton.addActionListener(actionListener);\n }",
"private JPanel createButtonPanel() {\n JPanel panel = new JPanel(new FlowLayout());\n panel.add(btnOpen = createButton(\"Open file\", iconOpen));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the csp_General_2 value for this Csp_Get_Info_User_OutBlock. | public java.lang.String getCsp_General_2() {
return csp_General_2;
} | [
"public void setCsp_General_2(java.lang.String csp_General_2) {\n this.csp_General_2 = csp_General_2;\n }",
"public java.lang.String getCallInfo2() {\n return callInfo2;\n }",
"public String getFreeuse2() {\n\t\treturn freeuse2;\n\t}",
"public String getClEmergency2() {\r\n\t\treturn clEme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines a preferredordering set of all relevant model entities, based on a combination of a list of preferred names and a filter on all entities, with dependencies optionally enforced, such that leastdependent appears first and mostdependent appears last. TODO?: move to EntityInfoUtil later | public static Collection<ModelEntity> findModelEntitiesWithPrefOrder(ModelReader reader,
Collection<String> entityNamesPrefOrder, boolean allowViews, Collection<String> allowedPkgPrefixes,
String logPrefix, String logErrorSuffix, boolean depCheck, boolean prefChecks, boolean prefOrderCheck) {
... | [
"public List<Schema> order(List<Schema> unordered) {\n // No, this is not a fast algorithm...\n indexOnDocumentName(unordered);\n List<Schema> ordered = new ArrayList<>(unordered.size());\n List<Schema> moveOutwards = new ArrayList<>();\n for (Schema schema : unordered) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the name of the jth token in this sequence. | public String getToken(int j) {
return (tokenRow == null) ? null : tokenRow[j];
} | [
"TokenTypes.TokenName getName();",
"public Token getNameToken() {\n\t\treturn fNameToken;\n\t}",
"public ASTToken getNameToken() {\n\t\treturn this.getModuleStmt().getModuleName();\n\t}",
"String getTokenName();",
"public Token getName()\n {\n if (isVersion())\n {\n return getVer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ In the LinkedHashMap there is one parameter called access which is a boolean parameter. If this parameter is set to true then even get call will make the structural modification on the map and hence will throw concurrent modification exception even for get call while iterating the map. But this is not the case, if ac... | public static void main(String[] args) {
LinkedHashMap<Employee,String> nameList = new LinkedHashMap<Employee,String>(); //access flag is false by default
nameList.put(new Employee(1,21), "Raj");
nameList.put(new Employee(2,24), "Govind");
nameList.put(new Employee(3,26), ... | [
"protected void checkMutable()\n {\n if (m_fReadOnly)\n {\n throw new UnsupportedOperationException(\n \"Read-only entry does not allow Map modification\");\n }\n }",
"private void checkMutability()\n\t{\n\t\tif (immu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Read the overlays from the extension point registry | private void readExtensionPoint()
{
IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(OVERLAY_EXT);
for (IConfigurationElement element : elements)
{
OverlayContributor overlay;
try
{
overlay = (OverlayContributor) element.createExecutableExtension... | [
"public void readRegistry() {\n\t\tIExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();\n\t\tIExtensionPoint point = extensionRegistry.getExtensionPoint(pluginId, EXTENSION_POINT_ID);\n\t\tif (point != null) {\n\t\t\tvisitConfigElements(point.getConfigurationElements(), point, rootPaletteItem);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of writeList method, of class Bencoder. | @Test(expected = IllegalArgumentException.class)
public void testWriteListUnsupportedType() {
System.out.println("writeListUnsupportedType");
/** Negative testing. */
List<Date> dates = new LinkedList(Arrays.asList(new Date(), new Date()));
Bencoder.writeList(dates);
} | [
"@Test\n public void testWriteList() {\n System.out.println(\"writeList\");\n /** Positive testing. */\n // List of long values\n List<Long> list = new LinkedList(Arrays.asList(0L, 1L, 2L, 3L));\n String expResult = \"li0ei1ei2ei3ee\";\n String result = Bencoder.writeLis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns number of ammo in active guns bin | public int getAmmoInBin() {
return this.getActiveGun().inBin;
} | [
"public int getAmmoCount()\n\t{\n\t\treturn ammoCount;\n\t}",
"public void ammoCount(int ammo)\n {\n Font font = getImage().getFont();\n font = font.deriveFont(18.0f);\n getImage().setFont(font);\n String text = Integer.toString(ammo);\n String maxA = Integer.toString(maxAmmo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first CRM Contact in the ordered set where primaryEmailAddress = &63; and status = &63;. | @Override
public CrmContact fetchByPrimaryEmailAddressAndStatus_First(
String primaryEmailAddress, String status,
OrderByComparator<CrmContact> orderByComparator) {
List<CrmContact> list = findByPrimaryEmailAddressAndStatus(
primaryEmailAddress, status, 0, 1, orderByComparator);
if (!list.isEmpty()) {
... | [
"private Contact getFirstContact(Integer customerId) throws Exception {\n assert customerId != null;\n Contact firstContact = null;\n beginTx();\n try {\n final Customer customer = (Customer) getEnvironment().getSessionFactory()\n .getCurrentSession().load(Customer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
50. Name of the Function: selectValue Desc: It selects a vlaue from search window param:1 (String) Base Location:O:\EBS QA\WR2OATS\GMS_OATS\12.2\Library\sslib FUNCTION: SelectValue CREATED BY: Chandrika Vepati PURPOSE: Selecting the Required Value from the "Search and Select List of Values" Window INPUT PARAMS: Require... | public boolean selectValue(String RequiredValue) throws Exception
{
int selectValueTableRowsCount,selectValueTableColsCount,rowLooper,columnLooper,valueLength,checkField;
String cellValue,requiredField;
boolean returnValue;
returnValue = false;
String tableXpath = "/web:window[@title='Search and Select Li... | [
"private void clickDropDownAndSelectValue(int dropDownLocation,\r\n\t\t\tString PopUpId, String DropDownXpath, String selectionValue) {\r\n\t\ttry {\r\n\t\t\tWebDriverWait pageLoaded = new WebDriverWait(driver, 30);\r\n\t\t\t// Find the down arrow element for the drop downs in the page.\r\n\t\t\tWebElement webEleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This functions creates a random answer array to initially display in the text boxes source for shuffling the array using collections.shuffle: | private String[] createRandomAnswerArray(){
String[] randomTempArray = new String[maxArrayLength];
// copies trueAnswerArray to the random temp array
// since collections.shuffle does not use String[] arrays, an array list is made instead
ArrayList<String> temp = new ArrayList<String>();... | [
"public String[] shuffle(String[] answers) {\n String temp;\n int k;\n Random rand = new Random();\n\n for (int i = 0; i < 4; i++) {\n k = rand.nextInt(4);\n temp = answers[i];\n answers[i] = answers[k];\n answers[k] = temp;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
disconnects from server . it creates a new connection with server , sends clientName and status"no" and returns connection page | public void disconnect() {
try {
Socket socket = new Socket("127.0.0.1",33333);
ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());
clientMain.clientData[1] = "no";
outputStream.writeObject(clientMain.clientData);
clien... | [
"public void disconnect() {\n \t\tclient.disconnect();\n \t}",
"public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}",
"public void disconnect()\n\t{\n\t\tNetMessage objDisco = new NetMessage(\"Client.disconnect\");\n\t\tobjDisco.sendTo(this.serverConnection);\n\t}",
"public void disconnectCli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool isFixAngle = 24; optional bool isFixAngle = 24; | boolean hasIsFixAngle(); | [
"boolean getIsFixAngle();",
"public boolean getIsFixAngle() {\n return isFixAngle_;\n }",
"public boolean getIsFixAngle() {\n return isFixAngle_;\n }",
"public boolean hasIsFixAngle() {\n return ((bitField0_ & 0x00400000) == 0x00400000);\n }",
"public boolean isAngleOkay(){if(whe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns List of Bears such that the ith Bear is the same size as the ith Bed of solvedBeds(). | public List<Bear> solvedBears() {
return equalbear;
} | [
"public List<Bear> solvedBears() {\n // TODO: Fix me.\n return sortedBears;\n }",
"public List<Bed> solvedBeds() {\n // TODO: Fix me.\n return sortedBeds;\n }",
"public List<Bed> solvedBeds() {\n return equalbed;\n }",
"public List<Bear> solvedBears() {\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ArrayList listAnimal = AnimalManager.getInstance().getListeAnimal(); | @Override
public Response getListAnimal() {
ArrayList<Animal> listAnimal = manager.getListe();
GenericEntity<List<Animal>> result = new GenericEntity<List<Animal>>(listAnimal) {
};
return Response.ok(result).build();
} | [
"private ArrayList<Animal> getAnimalList() {\n Intent passedIntent = getIntent();\n ArrayList<Animal> curatedAnimals = passedIntent.getParcelableArrayListExtra(\"animal\");\n\n return curatedAnimals;\n }",
"public List<PetAnimal> getAllPetAnimal();",
"public List<Animal> retrieveAll();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the active Player | public int getActivePlayer() {
return activePlayer;
} | [
"public Player getActivePlayer() {\n return players[activePlayerIndex];\n }",
"public Player getActivePlayer() {\n return players.get(playerTurn);\n }",
"public Player getActivePlayer(){\n\t\tif(activePlayer == PlayerTurn.first){\n\t\t\treturn player1;\n\t\t}\n\t\treturn player2;\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get school by school name, return a school by exact match | public Schools getSchoolBySchoolName(String name) throws SQLException {
String selectSchool = "SELECT * FROM Schools WHERE Name=?;";
Connection connection = null;
PreparedStatement selectStmt = null;
ResultSet results = null;
try {
connection = connectionManager.getConnection();
selectStmt = connecti... | [
"java.lang.String getSchoolName();",
"private BasicDBObject findOneSchool(String code) {\r\n\t\tDBCollection dbCollection = getDB().getCollection(\"Schools\");\r\n\t\tBasicDBObject basicDBObject = new BasicDBObject();\r\n\t\tbasicDBObject.put(\"code\", code);\r\n\t\tDBCursor dbCursor = dbCollection.find(basicDBOb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we limit further eager fetches to joins, because after this point the select has been modified such that parallel clones may produce invalid sql | @Override
public void selectEagerJoin(Select sel, OpenJPAStateManager sm,
JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) {
boolean outer = field.getNullValue() != FieldMetaData.NULL_EXCEPTION;
// force inner join for inner join fetch
if (fetch.hasFetchInnerJoin(field.g... | [
"public boolean supportsLimitedOuterJoins() throws SQLException {\n return true;\n }",
"private void selectEager(Select sel, ClassMapping elem,\n OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch,\n int eagerMode, boolean selectOid, boolean outer) {\n // force di... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return form to add new funds | @GetMapping("/AddFunds")
public String addFunds(Model model) {
OnBordDto onBordDto = new OnBordDto();
model.addAttribute("onBordDto", onBordDto);
return "fund-form";
} | [
"public TransferOfFundsForm() {\n super();\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the Lattitude and Longitude of where a photo was taken, based on the time it was taken. | private LatLng findPhotoOnTrack(LocalDateTime photodt) {
Double previousLat = 0.0;
Double previousLon = 0.0;
LocalDateTime previousTime = null;
LocalDateTime pointdt;
long millisToPhoto = 0;
long millisToEndpoint = 0;
Double tagLat = 0.0;
Double tagLon = 0... | [
"long getGpsTime();",
"private void determineLocationExif(){\n ExifInterface exif = null;\n try {\n exif = new ExifInterface(mImageUri.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n float[] latLong = new float[2];\n if (exif !=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |