query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Get bean from spring context. | public static Object getBean(ExecuteContext context, String beanName) throws Exception {
return WebApplicationContextUtils.getRequiredWebApplicationContext(context.getRequest().getSession().getServletContext()).getBean(beanName);
} | [
"public Object lookup()\r\n {\n if (applicationInstance != null)\r\n return applicationInstance;\r\n\r\n ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(flex.messaging.FlexContext.getServletConfig().getServletContext());\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This function takes the RGB frame, converts to YCrCb, and extracts the Cb channel to the 'Cb' variable | void inputToCb(Mat input) {
Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);
Core.extractChannel(YCrCb, Cb, 1);
} | [
"void inputToCb(Mat input){\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }",
"void inputToCb(Mat input) {\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }",
"void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private static final File tempFolder = prepareTempFolder(); | private static File prepareTempFolder() {
File result;
try {
result = java.nio.file.Files.createTempDirectory(
DCOSService.class.getSimpleName()).toFile();
System.out.println(result.toString());
return result;
} catch (IOException e) {
... | [
"private File createTempFolder(){\n\t\tFile tmpDir = new File(System.getProperty(\"java.io.tmpdir\")); //$NON-NLS-1$\n\t\tFile destFolder = new File(tmpDir, \"compositeElementImport\"); //$NON-NLS-1$\n\t\tint index = 0;\n\t\twhile(destFolder.exists()){\n\t\t\tdestFolder = new File(tmpDir, \"compositeElementImport\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column CIF_KYC_FINANCIAL_INFO.KYC_FINANCIAL_POSITION | public String getKYC_FINANCIAL_POSITION() {
return KYC_FINANCIAL_POSITION;
} | [
"public void setKYC_FINANCIAL_POSITION(String KYC_FINANCIAL_POSITION) {\r\n this.KYC_FINANCIAL_POSITION = KYC_FINANCIAL_POSITION == null ? null : KYC_FINANCIAL_POSITION.trim();\r\n }",
"public int getPosition_code() {\r\n return getAsNumber(\"position_code\").intValue();\r\n }",
"public BigD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the index of troops | public int getTroopIndex(BaseSingle single) {
return aliveTroopsMap.get(single);
} | [
"public int getNumTroops(){\n return this.troops;\n }",
"int getTruckSubIndex();",
"public int returnTripIndexOfTrip() {\n \t ToDisplayTrips tt = ToDisplayTrips.INSTANCE;\n \t return tt.returnTrips.indexOf(this);\n }",
"long getIndex();",
"public int findTroops(Territory t){\n Li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets MNJ_ISSUE_REC_WASH_DEL_L_EO entity object. | public MNJ_ISSUE_REC_WASH_DEL_L_EOImpl getMNJ_ISSUE_REC_WASH_DEL_L_EO() {
return (MNJ_ISSUE_REC_WASH_DEL_L_EOImpl)getEntity(0);
} | [
"org.purl.atompub.tombstones.x10.DeletedEntryDocument.DeletedEntry getDeletedEntry();",
"public OrdEOImpl getOrdEO() {\r\n return (OrdEOImpl)getEntity(0);\r\n }",
"public org.purl.atompub.tombstones.x10.DeletedEntryDocument.DeletedEntry getDeletedEntry()\n {\n synchronized (monitor())\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns the value of the database column st_door_real.mjgz_First | public Integer getMjgzFirst() {
return mjgzFirst;
} | [
"public void setMjgzFirst(Integer mjgzFirst) {\n this.mjgzFirst = mjgzFirst;\n }",
"public String getFirst() {\r\n return (String) get(\"first\");\r\n }",
"public Integer getcFirst() {\n return cFirst;\n }",
"public int getFirst() {\n return this.firstNumber;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor. Uses the passed parameters to set the values of the private instance variables. The instance variable price is calculated by multiplying the price per pound and the weight. | public Produce(String itemID, String itemDescription,
double pricePerPound, double weight)
{
super(itemID, itemDescription);
this.pricePerPound=pricePerPound;
this.weight=weight;
} | [
"public DeskPriceCalculator() {\n price = 0;\n width = 0;\n length = 0;\n area = 0;\n \n }",
"public Pay(){\n\t\t// all the instance variables are initialized \n\t\t// with their default values. in this case 0.0 because all the variables are of type double.\t\n\t}",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
f0 ::= ( APostfixOperation() ) | @Override
public Type visit(PostfixOperationsList n) {
assert (false);
return null;
} | [
"PostfixExpression createPostfixExpression();",
"public final void rule__XPostfixOperation__FeatureAssignment_1_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17747:1: ( ( ( ruleOpPostfix ) ) )\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populates the AbstractMacroSimulation from the byte array content. The structure should be as follows: [round][passedValuesSize][passedValuesStructure][marketsSize][marketsStructure][eventsSize][eventsStructure][popSize][populationStructure] | protected void populateSimulationCharacteristicsFromBytes(byte[] content, MacroPopulation pop){
ByteBuffer buf = ByteBuffer.wrap(content);
int roundInit = buf.getInt();
this.initRound = roundInit;
this.maximumRounds += roundInit;
int valSize = buf.getInt();
byte[] valBytes = new byte[valSize];
buf.get(val... | [
"@Override\r\n\tpublic void populateFromBytes(byte[] content, MacroPopulation pop) {\r\n\t\tByteBuffer buf = ByteBuffer.wrap(content);\r\n\t\tthis.productionStockId = buf.getInt();\r\n\t\tthis.capitalGoodId = buf.getInt();\r\n\t\tthis.wagesExpectationId = buf.getInt();\r\n\t}",
"@Override\r\n\tpublic void populat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifying permutation in learning process. | protected void permuteNotify() {
} | [
"public void permutationWork(int[] p) {\n // Calculate the total # of quick changes.\n int cost = 0;\n for (int i = 1; i < p.length; i++) {\n cost += D[p[i]][p[i-1]];\n }\n // Update our best if necessary.\n best = Math.min(best, cost);\n }",
"void sendToListeners(StatisticSample sample);"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'var103' field has been set. | public boolean hasVar103() {
return fieldSetFlags()[104];
} | [
"public boolean hasVar102() {\n return fieldSetFlags()[103];\n }",
"public boolean hasField103() {\n return fieldSetFlags()[103];\n }",
"public boolean hasVar101() {\n return fieldSetFlags()[102];\n }",
"public boolean hasVar130() {\n return fieldSetFlags()[131];\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the monitor with given id. | @DeleteMapping("/{monitor_id}")
@ApiOperation(value = "Delete the monitor with given database id if created by authenticated user")
public void deleteAUsersMonitor(@PathVariable("monitor_id") long monitorId, Principal principal)
throws ResourceNotFoundException, ForbiddenResourceException {
... | [
"public void deleteMonitor(final Monitor monitor) {\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n DieDatabase.getInstance(null).monitorDAO().removeMonitor(monitor);\n }\n });\n }",
"@Override\n\tpublic com.amf.registration... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays a message in the status bar at the bottom of the GUI. | @Override
public void displayMessage(String message)
{
Platform.runLater(() -> {
gui.getStatusText().scheduleMessage(message, 2000.0);
});
} | [
"public void setStatus(String message)\n\t{\n\t\ttextPane.add(new JLabel(message));\n\t\ttextPane.updateUI();\n\t}",
"public void updateText(String message) {\n completeMessage = completeMessage + addColor(message) + \"<br/>\";\n messageDisplay = completeMessage + \"</html>\";\n consoleMessageLabel.setTe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "Media" element | org.hl7.fhir.Media addNewMedia(); | [
"public org.hl7.fhir.Media addNewMedia()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Media target = null;\n target = (org.hl7.fhir.Media)get_store().add_element_user(MEDIA$0);\n return target;\n }\n }",
"public void a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tell if the stderr is closed when the process starts. | public boolean isCloseConsoleError() {
return closeConsoleError;
} | [
"private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }",
"public boolean shouldShutdownOnCmdfileError();",
"InputStream g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the given string is a 'Reduce' action ("r..") | public static boolean isReduce (String action)
{
return (action.startsWith("r"));
} | [
"public boolean canReduce() {\n\t\treturn marker == getRhs().length;\n\t}",
"public static boolean isAccept (String action)\n {\n return (action.equals(\"acc\"));\n }",
"private static boolean isOps(char c) {\n return c == '^' || c == '!' || c == '*' || c == '/' || c == '+' || c == '-';\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Custom CallBack method when airConditioner ActuatorData arrive from cloud, then tiger actuatorDataTransfer transfer the new arrived actuator to local gateway broker. | @Override
public void messageArrived(String topic, MqttMessage message) throws Exception {
super.messageArrived(topic, message);
_logger.info("New AirConditioner ActuatorData:"+message.toString()+" arrived from topic: "+topic);
_logger.info("Transfering AirConditioner ActuatorData to loacl Gateway....");
... | [
"public void onTriggerChange() {\n findViewById(R.id.temp).post(new Runnable() {\n public void run() {\n ConsumerIrManager mCIR = ScaryUtil.getConsumerIRService(getApplicationContext());\n if (m_Inst.power) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create printValues() method that will print all the values of each node in the list in order | public void printValues() {
Node temp = head;
while (temp != null) {
System.out.println(temp.getValue());
temp = temp.getNext();
}
} | [
"public void print()\r\n {\r\n Node temp = root.getNext();\r\n \r\n //Cycles through each node of the list and prints its value\r\n for(int i = 0; i < size; i++)\r\n {\r\n System.out.println(\"(\" +temp.getWord() +\" \" +temp.getFreq() +\")\");\r\n temp = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Export a meeting agenda in outline (OPML) format. . | private void exportOutline() {
boolean modOK = modIfChanged();
boolean sectionOpen = false;
int exported = 0;
if (modOK) {
fileChooser.setDialogTitle ("Export Agenda to OPML");
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
File selectedFile = fileChooser.showSaveDia... | [
"public void exportarAgenda(Agenda a) { //escribir\r\n File f = new File(RUTA_AGENDA);\r\n if (f.exists()) {\r\n vaciarArchivo(RUTA_AGENDA);\r\n }\r\n\r\n try {\r\n FileWriter fw = new FileWriter(f, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column rule_info.rule_condition_desc | public void setRuleConditionDesc(String ruleConditionDesc) {
this.ruleConditionDesc = ruleConditionDesc == null ? null : ruleConditionDesc.trim();
} | [
"public String getConditiondescription() {\r\n return conditiondescription;\r\n }",
"public final void rule__Condition__ExpressionAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../br.com.levysiqueira.dsl.textualusec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Redirecciona a la pagina de creacion de un tipo sitio | public String nuevoTipoSitio() {
edicion = false;
return "ntsitio?faces-redirect=true";
} | [
"public String crearTipoSitio() {\r\n\t\tString r = \"\";\r\n\t\ttry {\r\n\t\t\tif (edicion) {\r\n\t\t\t\tmanager.editarTipoSitio(getTsiId(), getTsiNombre(),\r\n\t\t\t\t\t\tgetTsiDescripcion(), getTsiEstado());\r\n\t\t\t\tMensaje.crearMensajeINFO(\"Actualizado - Tipo Sitio Modificado\");\r\n\t\t\t} else {\r\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
createDirectoryOutsideJar This method creates a directory in the same directory that the jar is located. | public boolean createDirectoryInJarFolder(String folderName){
path = getPathToJarFolder();
// add folder to path and make directory
path += folderName;
File file = new File(path);
return file.mkdir();
} | [
"private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected File createDummyJar() throws IOException\n {\n // Create a jar using ShrinkWrap API.\n // The jar will loo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Service list package. | public ServiceListPackage(NetworkType type, List<Service> services, String filter) {
super(type);
this.serviceList = services;
this.filter = filter;
} | [
"public ServiceListPackage(NetworkType type, List<Service> serviceList) {\n super(type);\n this.serviceList = serviceList;\n }",
"private CSAskMarketList() {}",
"public ImportServices() {\r\n }",
"public ModuleObjectWithList() {}",
"public DLList() {\r\n init();\r\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the miscClassID property. | public void setMiscClassID(long value) {
this.miscClassID = value;
} | [
"public long getMiscClassID() {\r\n return miscClassID;\r\n }",
"public void setMisc(double misc) {\r\n this.misc = misc;\r\n }",
"public void setMiscInfo(java.lang.String miscInfo) {\r\n this.miscInfo = miscInfo;\r\n }",
"public void setClassID(int value) {\n this.classID... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a rule optimizer to the pipeline. The rule optimizer will utilize the test data set. | public ExplanationPipeline<I, F>
addRuleOptimizerWithTest(Optimizer<RuleExplanation, RuleExplanationFactory, ?, ?> toAdd) {
return addRuleOptimizerWithTest(toAdd, false);
} | [
"public ExplanationPipeline<I, F>\n addRuleSetOptimizerWithTest(Optimizer<RuleExplanationSet, RuleExplanationSetFactory, ?, ?> toAdd) {\n return addRuleSetOptimizerWithTest(toAdd, false);\n }",
"public ExplanationPipeline<I, F>\n addRuleOptimizerWithTest(Optimizer<RuleExplanation, RuleExplanationF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column CERTIFICATE_DEPOSIT_DENOM.CIF_SUB_NO | public BigDecimal getCIF_SUB_NO() {
return CIF_SUB_NO;
} | [
"public void setCIF_SUB_NO(BigDecimal CIF_SUB_NO) {\r\n this.CIF_SUB_NO = CIF_SUB_NO;\r\n }",
"public BigDecimal getCIF_NO()\r\n {\r\n\treturn CIF_NO;\r\n }",
"public BigDecimal getCIF_NO() {\r\n return CIF_NO;\r\n }",
"public void setCIF_NO(BigDecimal CIF_NO)\r\n {\r\n\tthis.CIF_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TRSPRODUCT_TYPE.LINK_TRADE_DEAL | public void setLINK_TRADE_DEAL(BigDecimal LINK_TRADE_DEAL) {
this.LINK_TRADE_DEAL = LINK_TRADE_DEAL;
} | [
"public BigDecimal getLINK_TRADE_DEAL() {\r\n return LINK_TRADE_DEAL;\r\n }",
"public void setTRADE_TYPE(BigDecimal TRADE_TYPE) {\r\n this.TRADE_TYPE = TRADE_TYPE;\r\n }",
"public void setLINKED_DEAL_NO(BigDecimal LINKED_DEAL_NO)\r\n {\r\n\tthis.LINKED_DEAL_NO = LINKED_DEAL_NO;\r\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all values of property QualifiedUsage as a ReactorResult of RDF2Go nodes | public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllQualifiedUsage_asNode_() {
return Base.getAll_as(this.model, this.getResource(), QUALIFIEDUSAGE, org.ontoware.rdf2go.model.node.Node.class);
} | [
"public ReactorResult<Usage> getAllQualifiedUsage_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), QUALIFIEDUSAGE, Usage.class);\r\n\t}",
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllQualifiedUsage_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Use keycode as request to code to prevent successive PendingIntents from overwritting one another. This seems hackish but at least it works. see: | public static PendingIntent newPendingIntent(Context context, int keycode)
{
Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON, Uri.EMPTY,
context, RockboxService.class);
intent.putExtra(Intent.EXTRA_KEY_EVENT,
new KeyEvent(KeyEvent.ACTI... | [
"protected void keyRepeated(int keyCode) {\n }",
"protected void keyRepeated(int keyCode) {\r\n }",
"public void setKeyCode( int code )\n {\n keyCode = code;\n }",
"TaskProcessKeyEvent()\n {\n }",
"public static void addKeyCode(final KeyEvent e) {\r\n final KeyboardShortcutF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the flattened children of the given node. | private List<SimpleNode> getChildren(SimpleNode node) {
Class<?> nodeType = node.getClass();
List<SimpleNode> children = new ArrayList<>();
for (int i = 0; i < node.jjtGetNumChildren(); i++) {
children.addAll(flatten(node.jjtGetChild(i), nodeType));
}
return children;... | [
"Iterable<TNode> getChildren(TNode node);",
"private List<SimpleNode> flatten(SimpleNode node, Class<?> rootType) {\n if (isFlattenable(node, rootType)) {\n List<SimpleNode> children = new ArrayList<>();\n for (int i = 0; i < node.jjtGetNumChildren(); i++) {\n children.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Optional. Proxy configuration for outbound HTTP(S) traffic. .google.cloud.gkemulticloud.v1.AzureProxyConfig proxy_config = 9 [(.google.api.field_behavior) = OPTIONAL]; | public com.google.cloud.gkemulticloud.v1.AzureProxyConfigOrBuilder getProxyConfigOrBuilder() {
if (proxyConfigBuilder_ != null) {
return proxyConfigBuilder_.getMessageOrBuilder();
} else {
return proxyConfig_ == null
? com.google.cloud.gkemulticloud.v1.AzureProxyConfig.getDefault... | [
"@java.lang.Override\n public com.google.cloud.gkemulticloud.v1.AzureProxyConfig getProxyConfig() {\n return proxyConfig_ == null\n ? com.google.cloud.gkemulticloud.v1.AzureProxyConfig.getDefaultInstance()\n : proxyConfig_;\n }",
"public com.google.cloud.gkemulticloud.v1.AzureProxyConfig getPro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates the results from the given sorter; | private void sortAndValidate(MappableSorter sorter)
{
for(int i = 0; i < 10; i++)
{
sorter.sort(i, false);
validateResults(sorter, i, false);
sorter.sort(i, true);
validateResults(sorter, i, true);
}
} | [
"private <T extends Comparable<T>> void validateResults(MappableSorter sorter, int index, boolean asc)\n {\n try\n {\n int count = 0;\n \n T previous = null;\n Map<Integer, Mappable> results = sorter.getResults();\n for(Mappable item : results.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get this peptide formatted w/ HTML for a link to NCBI BLAST for the relevant sequence (minus sequest additions) | public String getHTMLSequence() {
String seq = this.sequence;
String retStr;
if (this.sequence.length() < 5) { return this.sequence; }
else {
retStr = seq.substring(0,2);
retStr += "<a target=\"ncbi_window\" href=\"http://www.ncbi.nlm.nih.gov/blast/Blast.cgi?CMD=Web&LAYOUT=TwoWindows&AUTO_FORMAT... | [
"@Override\n public String toGUIPrint() {\n return String.format(\"<b>%s</b><br/><i>Ref No.:</i>		 %s<br/><i>Groom's ID:</i>		 %s<br/><i>Bride's ID:</i>		 %s<br/><i>Date:</i>		 %s<br/>\", \"Marriage Certificate\", getRefNo(), getGroomId(),getBrideId(), getDate());\n \n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Get the Process object corresponding to the process name. | private Process getProcess(String procName) {
// Make a phony Process object for the purposes of
// searching for the original Process object corresponding
// to the name.
Process proc = new Process(procName, 0, null);
int procIndex = processes.indexOf(proc);
// Make sur... | [
"Process getProcess();",
"public Process getProcessById(String processId) {\n for(Process process : getProcessSet()) {\n if(process.getId().equals(processId)) {\n return process;\n }\n }\n return null;\n }",
"public KVPageProcess getKVPageProcessbyIdentifier(String identifier) {\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / SEMANTICA DE ItrListaDE: situa el cursor en index a continuacion una operacion de next devuelve el siguiente a este index o a continuacion una operacion de previous devuelve el anterior a este index | ItrListaDE(int index) {
if (index < 0 || index > total)
throw new IndexOutOfBoundsException("Index: " + index + ", Total: " + total);
if (index < total / 2) {
actual = primero;
for (int i = 0; i < index; i++, actual = actual.siguiente())
;
} else {
actual = ultimo;
for (int i = to... | [
"public OT insTailIndex(OT it) {\r\n\tgetTotIndex();\r\n\tinsTail(it);\r\n\tcIndex = ++totIndex;\r\n\treturn cur;\r\n}",
"@Test\n public void testNextIndex_Start() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 3, 4, 5));\n\n ListIterato... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the SqlNode as is. | public SqlNode asNode() {
return node;
} | [
"public SqlNode getSqlTemplate() {\n return getSqlTemplate(null);\n }",
"ValueNode getSQLValueNode()\n\t{\n\t\treturn value;\n\t}",
"public ContextNodeStatement getStatement();",
"public Node asNode ()\n {\n \treturn this;\n }",
"public Stmt getStmtNoTransform() {\n return (Stmt) getCh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Maakt een betaalwijze aan voor de persoon | public void setBetaalwijze(Betaalwijze betaalwijze) {
this.betaalwijze = betaalwijze;
} | [
"public String getBetaalwijze(){\r\n\t\treturn betalingswijze;\r\n\t}",
"private void toonBetaalView(ISpel spel) throws RemoteException {\n\n\t\tBetaalView bv = null;\n\t\tint betalen = StenenTijdperk.getSpeler().getTableau().getStamleden().size() - StenenTijdperk.getSpel().getSpeelbord().getVoedselspoor().getMar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the parent tracer or null if this is the root tracer. | Tracer getParentTracer(); | [
"public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }",
"public TraceGroup getParentTraceGroup() {\r\n return this.parentTraceGroup;\r\n }",
"private Node getCurrentParent() {\n\t\t\treturn (currentSpan != ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This test ensures that the retry attempt counter is zero on a new context | @Test
public void testRetryCountNoRetries() {
assertEquals(0, rc.getAttempts());
} | [
"protected abstract int retryCount();",
"int addAndGetRetryCount();",
"public int getCurrentRetryCount();",
"public void incrementRetryCount() {\n this.retryCount++;\n }",
"@Test\n public void testSetMaxRetryTimes() {\n }",
"@Test\n public void testLocalJobRunnerRetryCount() throws InterruptedExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__BooleanUnaryExpression__Group__3__Impl" $ANTLR start "rule__BooleanBinaryExpression__Group__0" InternalActivityDiagram.g:6191:1: rule__BooleanBinaryExpression__Group__0 : rule__BooleanBinaryExpression__Group__0__Impl rule__BooleanBinaryExpression__Group__1 ; | public final void rule__BooleanBinaryExpression__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalActivityDiagram.g:6195:1: ( rule__BooleanBinaryExpression__Group__0__Impl rule__BooleanBinaryExpression__Group__1 )
// Inter... | [
"public final void rule__BooleanUnaryExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalActivityDiagram.g:6070:1: ( rule__BooleanUnaryExpression__Group__0__Impl rule__BooleanUnaryExpression__Group__1 )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates grammar for activating emergency mode | public static Grammar grammarStartEmergencyMode (OSFactory factory) {
Grammar g = factory.createGrammar("gr_StartEmergencyMode");
g.addGrammarString(factory.factory.getOWLLiteral("[aktiviere | starte | schalte] [bitte] [den] Notfallmodus [bitte] [ein] [aktivieren | starten | einsschalten]","de"));
return g;
} | [
"public static Grammar grammarEndEmergencyMode (OSFactory factory) {\n\t\tGrammar g = factory.createGrammar(\"gr_EndEmergencyMode\");\n\t\tg.addGrammarString(factory.factory.getOWLLiteral(\"[deaktiviere | beende | schalte] [bitte] [den] Notfallmodus [bitte] [aus] [deaktivieren | beenden | aussschalten]\",\"de\"));\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Lade die Objekteigenschaften aus einem ResultSet. param rst ResultSet mit allen Spalten der Tabelle 'tblBdDozentPublikation' | protected void initByRst(ResultSet rst) throws SQLException{
this.m_lSdSeminarID=rst.getLong("lngSdSeminarID");
this.m_lDozentID=rst.getLong("lngDozentID");
this.m_lDozentPublikationID=rst.getLong("lngDozentPublikationID");
this.m_sDPAutorName=rst.getString("strDPAutorName");
this.m_sDPAutorVorname=rst.getStr... | [
"public void initByRst(ResultSet rst) throws SQLException{\n\t\tthis.m_lSdSeminarID=rst.getLong(\"lngSdSeminarID\");\n\t\tthis.m_lKursID=rst.getLong(\"lngKursID\");\n\t\tthis.m_sKursUnivISID=rst.getString(\"strKursUnivISID\");\n\t\tthis.m_lDozentID=rst.getLong(\"lngDozentID\");\n\t\tthis.m_sKursTag=rst.getString(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create Spaceship, GamePanel, Game Engine | @Override
public void actionPerformed(ActionEvent evt) {
v = new SpaceShip(180, 525, 50, 50,1); // Create Player1
v2 = new SpaceShip(180, 525, 50, 50,2); // Create Player2
gp = new GamePanel();
//New Game Single mode
engine = new GameEngine(gp, v, v2,1);
//Remove button's panel fro... | [
"@Override\n public void actionPerformed(ActionEvent evt) {\n\t\t\t\tv = new SpaceShip(120, 525, 50, 50,1);\t// Create Player1\n\t\t\t\tv2 = new SpaceShip(230, 525, 50, 50,2); // Create Player2\n\t\t\t\tgp = new GamePanel();\n\t\t\t\t//New Game 2 players mode\n\t\t\t\tengine = new GameEngine(gp, v, v2,2)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Unhighlights words that have be added, ignored, or replaced by user | void unhighlight(SpellCheckWord word)
{
Highlighter highlighter = getHighlighter();
Highlighter.Highlight[] highlights = highlighter.getHighlights();
for (int i = 0; i < highlights.length; i++)
{
if(highlights[i].getStartOffset() == word.startLocation)
{
highlighter.remov... | [
"void removeAllHighlights();",
"public void removeHighlight();",
"void clearHighlight();",
"private void unhighlightText(Text text){\r\n\t text.changeColor(AnimalScript.COLORCHANGE_COLOR, Color.BLACK, new TicksTiming(0), new TicksTiming(0));\r\n\r\n\t }",
"public void removeWord()\n {\n \tlastR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange NONNULL_PTR this_arg); | public static native int QueryChannelRange_end_blocknum(long this_arg); | [
"public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);",
"public static native int QueryChannelRange_get_first_blocknum(long this_ptr);",
"public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);",
"public static native long QueryChannelRange_new(byte[] chain_h... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the path to the local artifact metadata. Note that the method does not check whether the returned path actually points to existing metadata. | public String getArtifactMetadataPath( String gid, String aid, String version )
{
return getArtifactMetadataPath( gid, aid, version, "maven-metadata-local.xml" );
} | [
"public static String getMetaDataPath() {\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tIWorkspaceRoot root = workspace.getRoot();\r\n\t\tIPath location = root.getLocation();\r\n\t\tString metadataPath = location.toOSString() + \r\n\t\t\t\t\t\t\t File.separator +\r\n\t\t\t\t\t\t\t \".metada... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the Patient ID | public void setPatientId(int patientId) {
this.patientId=patientId;
} | [
"public void setPatientID(java.lang.String patientID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATIENTID$... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "Tax" element | boolean isSetTax(); | [
"public boolean isTaxIncluded();",
"boolean getIsTaxIncluded();",
"public boolean isTaxAccount();",
"public boolean isTaxFree();",
"boolean isSetTaxon();",
"public Boolean isIncludeTax() {\n return this.includeTax;\n }",
"public boolean isTaxIncluded() {\n return taxIncluded;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates accessor for list element i of list returned by parent accessor. | public ListPropertyAccessor(PropertyAccessor parent, int i) {
super(parent);
if (!List.class.isAssignableFrom(parent.getType()))
throw new IllegalArgumentException("Parent must return a List!");
this.index = i;
ConfDisplayFormat dispFormat = getAnnotationSource().getAnnotati... | [
"public E get(int i) {\n return this.memberList.get(i);\n }",
"public Object getElementOnList(int value);",
"public List itemList() {\n return this;\n }",
"private interface Listable<T> {\n Component get(int index, T item);\n }",
"public DList2 list(){\r\n return this.list;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__HasNameExpression__Group__0__Impl" $ANTLR start "rule__HasNameExpression__Group__1" InternalDsl.g:32537:1: rule__HasNameExpression__Group__1 : rule__HasNameExpression__Group__1__Impl rule__HasNameExpression__Group__2 ; | public final void rule__HasNameExpression__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:32541:1: ( rule__HasNameExpression__Group__1__Impl rule__HasNameExpression__Group__2 )
// InternalDsl.g:32542:2: rule__HasNameE... | [
"public final void rule__HasNameExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:32514:1: ( rule__HasNameExpression__Group__0__Impl rule__HasNameExpression__Group__1 )\n // InternalDsl.g:32515:2: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The value of the users "tourney" variable. This is typically set by tournament bots when the user is in a tournament. | public String getTourney() {
if (!parsed) {
parse();
}
return tourney;
} | [
"public String getTurno() {\n return turno;\n }",
"public Waypoint getToWaypoint() \n\t{\n\t\treturn toWaypoint;\t\t\n\t}",
"public java.lang.String getJourneyType() {\r\n return journeyType;\r\n }",
"public List<Route> getJourney(){\n\t\treturn this.journey;\n\t}",
"public String getTravel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the method close with twice call. Expect IllegalStateException. | @Test(expected = IllegalStateException.class)
public void testCloseWithTwiceCall() throws Exception {
instance.open();
instance.close();
instance.close();
} | [
"@Test(expected = IllegalStateException.class)\r\n public void testOpenWithTwiceCall() throws Exception {\r\n instance.open();\r\n\r\n instance.open();\r\n }",
"private void testClosed() throws IOException\n {\n if(isClosed)\n {\n throw new IOException(\"Operation not possi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a MemoryBus with a byte to visit a memory address | public MemoryBus(short a, byte b)
{
super(a,b);
setDirection(Location.EAST);
} | [
"public MemoryBus(short a)\n {\n super(a);\n setDirection(Location.EAST);\n\n }",
"Bus(int busNumber) {\n this.busNumber = busNumber;\n }",
"public RegisterBus(short a, byte b)\n {\n super(a,b);\n setDirection(Location.NORTH);\n }",
"public RegisterBus(short a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the rule tree. | public void setRuleTree(RuleTree ruleTree) {
this.ruleTree = ruleTree;
} | [
"void setRule(Rule rule);",
"public void setRule(int r)\n { \n rule = r;\n repaint();\n }",
"private void setCurrentRule(){\n\tfor(int i=0; i<ConditionTree.length;i++){\n\t\tif(ConditionTree[i][1].equals(\"-\")){\n\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\tcurrentRuleIndex = i;\n\t\t}\n\t}\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a parse error with an exception and position. | public ParseError(final String message, final Throwable exception, final int position) {
this.message = message;
this.exception = exception != null ? Optional.of(exception) : Optional.empty();
this.position = position;
} | [
"public ParseError(final String message, final int position) {\n this(message, null, 0);\n }",
"protected void parseError() {\n throw createParseError();\n }",
"public EbtsParsingException() {super();}",
"public StringParseException(final String string, int position) {\n super();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column admin.adm_remarks | public void setAdmRemarks(String admRemarks) {
this.admRemarks = admRemarks == null ? null : admRemarks.trim();
} | [
"public void setRemarkAdmin(String remarkAdmin) {\n this.remarkAdmin = remarkAdmin == null ? null : remarkAdmin.trim();\n }",
"public String getRemarkAdmin() {\n return remarkAdmin;\n }",
"public String getAdmRemarks() {\n return admRemarks;\n }",
"public void setRemarks(String r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string sum_discount = 16; | public java.lang.String getSumDiscount() {
java.lang.Object ref = sumDiscount_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
sumDiscount_ = s;
return s;
} else {
return... | [
"java.lang.String getSumDiscount();",
"public Builder setSumDiscount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n sumDiscount_ = value;\n onChanged();\n return this;\n }",
"java.lang.Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the journalkosten id. | public void setJournalkostenId(final Long journalkostenId) {
this.journalkostenId = journalkostenId;
} | [
"public void setId(Long id) ;",
"public void setIdKlinik(String idKlinik) {\n this.idKlinik = idKlinik;\r\n }",
"@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\tpublic Long getJournalkostenId() {\n\t\treturn this.journalkostenId;\n\t}",
"@Override\n\tpublic void setId(long id) {\n\t\t_phie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the value of the personal.legajo column for the specified row. | public String getPersonalLegajo(int row) throws DataStoreException {
return getString(row,PERSONAL_LEGAJO);
} | [
"public String getPersonalNombre(int row) throws DataStoreException {\r\n return getString(row,PERSONAL_NOMBRE);\r\n }",
"String getValue(String column, int row);",
"public Object getValueAt(int row, int column) {\r\n //pega a marca da linha\r\n Locacao m = linhas.get(row);\r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'accountID' field | public Builder setAccountID(long value) {
validate(fields()[0], value);
this.accountID = value;
fieldSetFlags()[0] = true;
return this;
} | [
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(java.lang.Object accountID) {\n this.accountID = accountID;\n }",
"public void setAccountID(java.lang.Integer accountID) {\n this.accountID = accountID;\n }",
"public void setAccountID(Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get all the saved data for a particular plugin and data type | public static Collection getData(String pluginName, String dataType) throws Exception {
try {
DomainAccessObject access =
DomainAccessObjectFactory.getInstance().getDomainAccessObject(ATPluginData.class);
ATPluginData pluginData = new ATPluginData();
plugi... | [
"public static Collection getData(String pluginName) throws Exception {\n try {\n DomainAccessObject access =\n DomainAccessObjectFactory.getInstance().getDomainAccessObject(ATPluginData.class);\n return access.findByPropertyValue(\"pluginName\", pluginName);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This detector does not require number of scans in a frame information as it is configured via internal TFG | @Override
public int getNumberScansInFrame() {
return 0;
} | [
"public String scanTarget()\n {\n String size = \"\";\n\n runtime.reset();\n telemetry.addData(\"Time\", runtime.time());\n telemetry.update();\n\n while (runtime.time() < 1) {\n //atelemetry.addData(\"Time2\", runtime.time());\n if... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ei_net_order.eino_total_weight | public Double getEinoTotalWeight() {
return einoTotalWeight;
} | [
"public double calculateTotalWeight(){\n \tdouble totalWeight = 0;\n \tfor (Item item : orderItems) {\n \t\ttotalWeight += item.getProduct().getWeight() * item.getQuantity();\n\t\t}\n return totalWeight;\n }",
"public void setEinoTotalWeight(Double einoTotalWeight) {\r\n this.einoTotalWe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get property: authentication permanent lock limit | private int getFailedAuthLimitPermlock() {
return getClientConfigurationProperties().getProperty(
ClientPropertySecurity.FAILED_AUTH_LIMIT_PERMLOCK,
ClientPropertySecurity.DEFAULT_FAILED_AUTH_LIMIT_PERMLOCK);
} | [
"public long getPropertyVolumeLimit();",
"public Integer getShmConfigSoftLimit() {\n return shmConfigSoftLimit;\n }",
"public int getLocked() {\n return locked;\n }",
"public Short getClLoginLimit() {\r\n\t\treturn clLoginLimit;\r\n\t}",
"private int getFailedAuthStepsTemplock() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pages through the HAL resources available via the passed resultPageURL. The results are collected and passed to the additionally passed "continuation" callback "done", which is executed after all pages have been collected. If paging failed, the "continuation" callback "failed" is called. If the HAL resource available f... | public static void pageThroughResultsAsync(String resultPageURL, Consumer<List<JSONObject>> done, Terminator<String, Throwable> failed) {
final List<JSONObject> pages = new ArrayList<>();
Unirest.get(resultPageURL)
.header("Accept", "application/json")
.asJsonAsync(new C... | [
"public static void pageThroughResultsAsync(String resultPageURL, FluxSink<JSONObject> sink) {\n if(!sink.isCancelled()) {\n try {\n Unirest\n .get(resultPageURL)\n .header( HttpHeaders.ACCEPT, \"application/json\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Incoming__InConditionAssignment_3" $ANTLR start "rule__Outgoing__OutgoingAssignment_2" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28570:1: rule__Outgoing__OutgoingAssignment_2 : ( ( ruleQualifiedName ) ) ; | public final void rule__Outgoing__OutgoingAssignment_2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28574:1: ( ( ( ruleQualifiedName... | [
"public final void rule__Outgoing__OutConditionAssignment_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28593:1: ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the selected end column. | public void setEndColumn(String column)
{
if (column == null)
{
getModel(myEndTimeCombo).setSelectedItem(NONE);
}
else
{
getModel(myEndTimeCombo).setSelectedItem(column);
}
} | [
"public void setEndColumnNumber(int endColumn) {\n this.endColumn = endColumn;\n }",
"public void moveSelectionEnd(){\n int line = mCursor.getLeftLine();\n setSelection(line, getText().getColumnCount(line));\n }",
"public int getEndColumn() {\n return endcolumn;\n }",
"public synchron... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Apply a visitor to the node. | @Override public <T> T apply(TreeVisitor<T> visitor)
{
return visitor.visit(this);
} | [
"@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }",
"public abstract Node apply(Node node);",
"public Object accept(Visitor visitor);",
"void visit(Element node);",
"<R,D> R accept(TreeVisitor<R,D> visitor, D data);",
"void accept(SimpleVisitor visitor) throw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pathologic cases: newChild is m_node or an ancestor newChild is from a different document newChild is not allowed at this pos | public void testAppendChild(Node newChild) {
Node inserted = m_node.appendChild(newChild);
if (newChild.getNodeType() == Node.DOCUMENT_FRAGMENT_NODE)
assertEquals(true, compareNodeListPrefix(newChild.getChildNodes(), m_node.getChildNodes()));
else
assertEquals(inserted, m... | [
"protected void doAddChild(LinkedTreeNode newChild, LinkedTreeNode aheadOf) {\n // set up the new node(s) parent, find the end & check for problems as we go\n LinkedTreeNode newChildTail = newChild;\n for (;;) {\n if (newChildTail.parent == null) {\n newChildTail.setParent(this);\n child... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The setter for var isFinish. | public void setFinish(boolean finish) {
isFinish = finish;
} | [
"public void setIsfinish(Integer isfinish) {\n this.isfinish = isfinish;\n }",
"protected void setFinished()\n\t{\n\t\tthis.finished = true;\n\t}",
"public Integer getIsfinish() {\n return isfinish;\n }",
"public static void setIsFinished() {\n\t\tisFinished = true;\n\t}",
"public synchr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Here we set the visibility of all the elements in the address input area to GONE. This will also make sure they do not take up space as in INVISIBLE | public void closeAddressInput() {
sourceTitle.setVisibility(View.GONE);
destTitle.setVisibility(View.GONE);
sourceAddress.setVisibility(View.GONE);
destAddress.setVisibility(View.GONE);
mInputAddressButton.setVisibility(View.GONE);
} | [
"public void hideElements() {\n String[] allTextFields = concat(oscTextFieldNames, udpTextFieldNames);\n allTextFields = concat(allTextFields, lslTextFieldNames);\n hideAllTextFields(allTextFields);\n\n cp5_networking_dropdowns.get(ScrollableList.class, \"dataType1\").setVisible(false);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Salesperson SpEmail setter | public void setSpEmail(String _empEmail) {
this.spEmail = _empEmail;
} | [
"public void setEmail(String e)\n {\n this.emailAddress = e;\n \n\n }",
"public void setEMail (String EMail);",
"public String getSpEmail() {\r\n return spEmail;\r\n }",
"public void setEMail(String eMail);",
"public void setEmail(final String e)\n {\n this.email = e;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
NPandayflavored implementation of the Artifact resolver. | public interface NPandayArtifactResolver
extends ArtifactResolver
{
/**
* Should never try to resolve things that would get excluded by this filter.
* @param filter
*/
public void initializeWithFilter(ArtifactFilter filter);
/**
* All artifacts that have been resolved outside of the... | [
"public abstract void resolve();",
"@SuppressWarnings({\"deprecation\"})\n private ArtifactResolutionResult resolveArtifact(Artifact artifact, Artifact... filtered) {\n final ArtifactFilter filter;\n if (filtered.length > 0) {\n List<String> exclusions = new ArrayList<>(filtered.length);\n for (A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructora con sprite y coordenadas, Construye el transform en base a las coordenadas y las dimensiones del sprite | public GameObject(Sprite sprite, float x, float y){
_transform = new Rect(x,y,sprite.getRect()._w, sprite.getRect()._h);
_sprite = sprite;
} | [
"Sprite(float x, float y, float w, float h) {\n _img = createImage(1, 1, RGB);\n _x = x;\n _y = y;\n _w = w;\n _h = h;\n _rotVector = new PVector(1, 0, 0);\n resetRectHitbox();\n }",
"public GameObject(Sprite sprite){\n _transform = new Rect(0,0,sprite.getRect()._w, sprite.getRect()._... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table SWMS_stock_out_record_detail | @Insert({
"insert into SWMS_stock_out_record_detail (stock_out_record_id, stock_out_record_head_id, ",
"stock_out_record_head_code, group_name, ",
"stock_in_record_account_id, material_code, ",
"material_batch, material_type_id, ",
"material_sub_type_id, material_workshop_id, ",
... | [
"@Select({\n \"select\",\n \"id, stock_out_record_id, stock_out_record_head_id, stock_out_record_head_code, \",\n \"group_name, stock_in_record_account_id, material_code, material_batch, material_type_id, \",\n \"material_sub_type_id, material_workshop_id, material_name_code, material_su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate the cost of clicks | public float calClickCost() {
float clickCost = 0;
String clickQuery = "SELECT sum(clickCost) FROM Click INNER JOIN ";
try {
clickQuery += "Impression ON Click.ID = Impression.id ";
clickQuery += whereClause();
ResultSet rs = statement.executeQuery(clickQue... | [
"public BigDecimal getCostPerConvertedClick() {\r\n return costPerConvertedClick;\r\n }",
"public Map<Integer, Integer> getClickCost () {\n Map<Integer, Integer> granularity = new LinkedHashMap<>();\n Map<Integer, Integer> result = new LinkedHashMap<>();\n String clickQuery = \"SELE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make a DELETE call to remove the file specified by the fileID from project with the given projectID, as specified by: | public JSONObject deleteFile(String projectID, String fileID) throws Exception{
if ((projectID == null || fileID == null) || (projectID == "" || fileID == "")){
throw new Exception("Project ID and file ID must both be non null and non empty.");
}
SBG deleteFileRequest = new SBG(authToken, "project/" + projectI... | [
"boolean deleteById(String fileId) throws IOException;",
"void removeFile(String id);",
"void deleteFile(Long id);",
"@Override\n public void delete(String id) {\n log.debug(\"Request to delete File : {}\", id);\n fileRepository.delete(id);\n }",
"void deleteProject(String projectKey);",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the loop duration of 1 full loop. | long getLoopDurationMs(); | [
"public int getDeltaTime() {\n return (int) (System.currentTimeMillis() - _loopStartTime);\n }",
"int getMillisecondsPerCycle();",
"public float getFullDuration()\n\t{\n\t\tif (repeatCnt < 0) return -1;\n\t\treturn delay + duration + (repeatDelay + duration) * repeatCnt;\n\t}",
"public int getLoopIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the skinny logfile info. | public SkinnyLogfileInfo getSkinnyLogfileInfo() {
return skinnyLogfileInfo;
} | [
"public LogfileInfo getLogfileInfo() {\n return logfileInfo;\n }",
"public void setSkinnyLogfileInfo(SkinnyLogfileInfo skinnyInfo) {\n skinnyLogfileInfo = skinnyInfo;\n }",
"String getLogHandled();",
"String getLogFileName();",
"public String getTodayLogFileName(){\n if(super.isTw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Store Payload of Generic Search | public void storeGenericPayload() {
Gson gson = new Gson();
genericPayload = gson.toJsonTree(genericSearchResponse.jsonPath().getJsonObject("data[0]"));
logger.info("Generic Payload is : -----> " + genericPayload);
} | [
"public interface SearchResult {\n\n /**\n * Returns the id.\n *\n * @return the id\n */\n public Long getId();\n\n /**\n * Sets the id.\n *\n * @param id the id to set\n */\n public void setId(Long id);\n\n /**\n * Returns the terminology id.\n *\n * @return the terminologyId\n */\n p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method defines the Numeric Buttons. | private Button getNumericKey(Composite parent, int number) {
final String text = String.valueOf(number);
SelectionListener selectionListener = new SelectionListener() {
@Override
public void widgetSelected(SelectionEvent event) {
widgetDefaultSelected(event);
}
@Override
public void widgetDefa... | [
"private void addNumbers(Container contentPane, CalcModelImpl model) {\n\t\tnew NumberButton(0, new RCPosition(5, 3), contentPane, model);\n\t\tnew NumberButton(1, new RCPosition(4, 3), contentPane, model);\n\t\tnew NumberButton(2, new RCPosition(4, 4), contentPane, model);\n\t\tnew NumberButton(3, new RCPosition(4... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies an AWS account that can create signed URLs. Remove the dashes. You can specify up to five accounts, each with its own AwsAccountNumber element. Returns a reference to this object so that method calls can be chained together. | public TrustedSigners withAwsAccountNumbers(java.util.Collection<String> awsAccountNumbers) {
if (awsAccountNumbers == null) {
this.awsAccountNumbers = null;
} else {
java.util.List<String> awsAccountNumbersCopy = new java.util.ArrayList<String>(awsAccountNumbers.size());
... | [
"public TrustedSigners withAwsAccountNumbers(String... awsAccountNumbers) {\n if (getAwsAccountNumbers() == null) setAwsAccountNumbers(new java.util.ArrayList<String>(awsAccountNumbers.length));\n for (String value : awsAccountNumbers) {\n getAwsAccountNumbers().add(value);\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the line alignment. | public void setLineAlignment(HorizontalAlignment alignment) {
this.lineAlignment = alignment;
} | [
"public void setLineNumberAlign(Paint.Align align){\n if(align == null){\n align = Paint.Align.LEFT;\n }\n mLineNumberAlign = align;\n invalidate();\n }",
"void setRowalign(String rowalign);",
"public void setAlignment(String value) {\n alignment = value;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__S_Action__Group_4__2" $ANTLR start "rule__S_Action__Group_4__2__Impl" InternalGaml.g:8072:1: rule__S_Action__Group_4__2__Impl : ( ')' ) ; | public final void rule__S_Action__Group_4__2__Impl() throws RecognitionException {
int rule__S_Action__Group_4__2__Impl_StartIndex = input.index();
int stackSize = keepStackSize();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 447) ) { return ; }
... | [
"public final void rule__S_Action__Group_4__0__Impl() throws RecognitionException {\n int rule__S_Action__Group_4__0__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 443) ) { retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a subscription channel and stores it for the corresponding id. Note: if a flowable is already registered for this id, no new channel is created and it is returned. | public @Nullable Flowable<T> createSubscriptionChannel(String id, BackpressureStrategy strategy) {
if (id == null) {
return null;
}
NotificationEmitter<T> channel = new NotificationEmitter<>();
final NotificationEmitter<T> formerChannel = store.putIfAbsent(id, channel);
... | [
"public Channel createChannel(ChannelId id);",
"public abstract AbstractDataChannel createDataChannel(int channelId);",
"@PreAuthorize(\"isAuthenticated()\")\n\tsynchronized public Channel subscribe(String instanceId) {\n\t\tUserEntity owner = securityUtils.getPrincipal();\n\t\tLong channelId = getNextId();\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the direction that corresponds to side. The result is intended for a block's metadata. | public static int toDirection(final BlockSide side) {
switch (side) {
case west:
return 0;
case north:
return 1;
case east:
return 2;
case south:
return 3;
}
throw new IllegalArgumentException("Side " + side + " cannot be converted into a direction."); // for
... | [
"public Vector2 getDirection() { return direction.cpy(); }",
"public BlockFace getDirection() {\n\t\treturn this.horizontalDir;\n\t}",
"public static BlockSide getSide(final int side) {\n\t\treturn getRotatedSide(side, 0);\n\t}",
"public static BlockSide getRotatedSide(final int side, final int blockDir) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
countArmiesBasedOnTerritories method to calculate the armies count based on the player territories | public int countArmiesBasedOnTerritories(Player currentPlayer, RiskBoardView riskBoardView) {
return getBonusArmiesOnTerritories(currentPlayer)+ getBonusArmiesOnContinent(currentPlayer) + canExchangeCards(riskBoardView);
} | [
"public int getTotalArmies(Player player) {\r\n\t\tint result = 0;\r\n\t\tfor(int i = 0; i < player.getTerritoryOccupied().size(); i++) {\r\n\t\t\tresult += player.getTerritoryOccupied().get(i).getArmiesOnCountry();\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic int calculateReinforcementArmies() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
print all players stat | public void printAllPlayerStats(List<Player> players); | [
"public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }",
"private void printPlayerStats() {\r\n for (ClientHandler client : clientArray) {\r\n Data.printPlayerData(client);\r\n }\r\n }",
"public void printPlaye... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the list of product promotions | List<PromotionData> getProductPromotions(); | [
"public List<Promotion> getAllActivePromotions();",
"List<PromotionData> getProductPromotions(Collection<String> promotionGroups);",
"public List getTiposProducto();",
"java.util.List<com.example.tutorial.PublishProductProtocol.PublishProductItem> \r\n getPublishProductList();",
"@Override\n publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connectionoriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or ... | public com.google.protobuf.ByteString getConnectionPersistenceOnUnhealthyBackendsBytes() {
java.lang.Object ref = connectionPersistenceOnUnhealthyBackends_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref)... | [
"@java.lang.Override\n public java.lang.String getConnectionPersistenceOnUnhealthyBackends() {\n java.lang.Object ref = connectionPersistenceOnUnhealthyBackends_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.googl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Plotting Data: Step 5 Plotting data consists on adding LineDataSet, which are formed by arrayList of entries. An entry has an x and a y. The data is obtained from the baby file. All data is plotted as a circle. The color is set to black 1. Select the file to read 2. Omit the first three lines: the name, age and gender ... | private void plotData(){
List<Entry> entriesMedidas = new ArrayList<Entry>();
try{
// #1
FileInputStream fis = getApplicationContext().openFileInput(fileName);
InputStreamReader isr = new InputStreamReader(fis);
BufferedReader reader = new BufferedReader(i... | [
"private void plotDato() {\n List<Entry> entriesMedidas = new ArrayList<Entry>();\n entriesMedidas.add(new Entry((float) dato.getYears(), (float) dato.getMeasures()[mag]));\n LineDataSet lineaMedidas = new LineDataSet(entriesMedidas, \"Medida\");\n lineaMedidas.setAxisDependency(YAxis.Ax... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor create Factorial where factorial equals 1. | public Factorial() {
this(1);
} | [
"public Factorial(int factorial) {\r\n\t\tsuper();\r\n\t\tsetFactorial(factorial);\r\n\t\tsetNumber(calculationNumber());\r\n\t}",
"public Factorial() {\n\t\tsuper();\n\t}",
"public BigInt factorialSelf() {\n BigInt fac = new BigInt(1);\n\n // make sure the number is positive\n number = num... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Process nums increasingly. lens[i] denotes the max length of the subset constructed so far containing nums[i]. If nums[j] (j > i) is multiple of nums[i], then lens[j] = max(lens[j], lens[i] + 1) | public List<Integer> largestDivisibleSubset_binarySearch(int[] nums) {
int n = nums.length, maxIdx = 0;
List<Integer> ans = new LinkedList<>();
if (n == 0)
return ans;
Arrays.sort(nums);
int[] lens = new int[n], prevs = new int[n];
Arrays.fill(prevs, -1);
for (int i = 0; nums[i] <= nums[n - 1] / 2; ++i... | [
"public int lengthOfLIS(int[] nums) {\n if(nums.length == 0) return 0;\n \n //dp array. dp[i] means the tail value of a increasing subsequence with len i + 1\n //we will update and make tail value as small as possible, so later we can easily extend this subsequence \n int[] dp = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates, registers, and initializes the Package for this model, and for any others upon which it depends. Simple dependencies are satisfied by calling this method on all dependent packages before doing anything else. This method drives initialization for interdependent packages directly, in parallel with this package, ... | public static ModelPackage init() {
if (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);
// Obtain or create and register package
ModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackag... | [
"public static SemanticPackage init() {\r\n\t\tif (isInited) return (SemanticPackage)EPackage.Registry.INSTANCE.getEPackage(SemanticPackage.eNS_URI);\r\n\r\n\t\t// Obtain or create and register package\r\n\t\tSemanticPackageImpl theSemanticPackage = (SemanticPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_U... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This adds a property descriptor for the Repair Effort feature. | protected void addRepairEffortPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_ChangeOrderCount_repairEffort_feature"), //$NON-NLS-1$
getString(... | [
"protected void addRebangPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_UbqProxima_rebang_feature\"),\r\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REQUIRES: body is not null MODIFIES: this EFFECTS: calculates net force components resulting from other planets in the solar system | public void updateForce(Planet body) {
double radius = this.separation(body);
double massProduct = this.getMass() * body.getMass();
double radiusXComponent = body.getXPosition() - this.getXPosition();
double radiusYComponent = body.getYPosition() - this.getYPosition();
double fx ... | [
"public Vector3 force(CelestialBody bodyToMove, Vector3 totalForce) {\n if (this.body != null) { //external node?\n if (this.body != bodyToMove) { //check if same bod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column DOWNSYSFUNDTRANS.INNERFUNDTRANSNBR | public String getInnerfundtransnbr() {
return innerfundtransnbr;
} | [
"public BigDecimal getFUND_LINE_NO() {\r\n return FUND_LINE_NO;\r\n }",
"public String getINTERM_BANK_BR() {\r\n return INTERM_BANK_BR;\r\n }",
"public String getOriginnertransnbr() {\n return originnertransnbr;\n }",
"public void setInnerfundtransnbr(String innerfundtransnbr) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs when the user selects the fifth option from the menu. This function prints the current programme's configuration which consists of the currency, along with minimum and maximum inputs to exchange. | static void selection5() {
System.out.println(coinSorter.displayProgramConfigs());
} | [
"public static void menuOption5(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the contractors\");\n System.out.println(\"2 - Would you like to search for a contractor's information\");\n System.out.println(\"3... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create stubs for single variant queries, and begin building lists too | private void stubHgvsVariantAnnotationServiceMethodsForType(List<VariantTestCase> variantTestCaseList)
throws VariantAnnotationWebServiceException, VariantAnnotationNotFoundException, TestCaseInsufficentlyModeledException
{
ArrayList<String> queryStringList = new ArrayList<String>();
ArrayLi... | [
"public QueryResult<Variant> getAllVariants(QueryOptions options);",
"@Test\n public void testQueryTableUsed() {\n\n CachedMaterializationDescriptor cachedDesc1 = new CachedMaterializationDescriptor(desc1, relOptMat1, Mockito.mock(CatalogService.class));\n RelNode relOptMat1QueryNode = createTableScan(Arra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |