query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
$ANTLR end "ruleOutType" $ANTLR start "entryRuleOutDataset" ../org.xtext.hipie/srcgen/org/xtext/hipie/parser/antlr/internal/InternalHIPIE.g:3309:1: entryRuleOutDataset returns [EObject current=null] : iv_ruleOutDataset= ruleOutDataset EOF ; | public final EObject entryRuleOutDataset() throws RecognitionException {
EObject current = null;
EObject iv_ruleOutDataset = null;
try {
// ../org.xtext.hipie/src-gen/org/xtext/hipie/parser/antlr/internal/InternalHIPIE.g:3310:2: (iv_ruleOutDataset= ruleOutDataset EOF )
... | [
"public final EObject entryRuleOutType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOutType = null;\n\n\n try {\n // ../org.xtext.hipie/src-gen/org/xtext/hipie/parser/antlr/internal/InternalHIPIE.g:3252:2: (iv_ruleOutType= ruleOutType EOF )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the bytes array representation of the utsname. | public byte[] getBytes(boolean littleEndian) {
try {
String charSet = "US-ASCII";
byte[] sysname_buf = (this.sysname + "\0").getBytes(charSet);
byte[] nodename_buf = (this.nodename + "\0").getBytes(charSet);
byte[] release_buf = (this.release + "\0").getBytes(cha... | [
"private static native byte[] DeviceInfo_getNameBytes(long deviceInfo);",
"public String[] exportStringArray() {\r\n\t\tString[] s = new String[7];\r\n\t\ts[0] = Integer.toString(uid);\r\n\t\ts[1] = NetUtil.urlEncode(strUserName);\r\n\t\ts[2] = NetUtil.urlEncode(strHost);\r\n\t\ts[3] = Integer.toString(roomID);\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Bug is due to the inability to accept echo without arguments. Although it is stated in their assumption that echo should come with arguments, it is also stated in the project requirements that the args parameter for echo is optional. Therefore, the assumption is invalid. | @Test
public void testEchoWithoutArgs() {
String[] args = {};
try {
echoApp.run(args, System.in, baos);
} catch (Exception e) {
fail(e.getMessage());
}
assertEquals(System.lineSeparator(), baos.toString());
} | [
"@Override\n public String echo(String text)\n {\n return \"echo: \" + text;\n }",
"@Test\n\tvoid testEchoCommand() {\n\t\tString output = \"\";\n\t\tProcessRun process = new ProcessRun();\n\t\tString[] command = {APP_UNDER_TEST,\"\"};\n\t\ttry {\n\t\t\toutput = process.Run(command);\n\t\t\tAssert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getMonth method, of class Time. | @Test
public void testGetMonth() {
//@return the number of the month of this time (1..12)
System.out.println("Test method: getMonth");
int expResult =3 ;
int result = t.getMonth();
System.out.println("Expected: " + expResult + " Actual: " + result + " \n ");
as... | [
"@Test\n public void testGetMonth() {\n System.out.println(\"getMonth\");\n Time instance = new Time(2019, 6, 1, 7, 30, 0);\n int expResult = 6;\n int result = instance.getMonth();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetMonth() {\n S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Before setting a final current form, pop everything this place is a proxy for, then push the new form onto both the currentForm() and destination() stack. | public int setFinalCurrentForm(final IBaseDataObject d, final String newForm) {
if (this.ignores.contains(newForm)) {
return d.currentFormSize();
}
final Set<String> serviceProxies = getProxies();
final String nf = renamedForm(newForm);
while (serviceProxies.contain... | [
"public void backToForm()\n {\n ASPManager mgr = getASPManager();\n\n openBrowsWindow = true;\n saveOperation = false;\n savedItem = false;\n\n \n if (!mgr.isEmpty(ctx.readValue(\"REFERRER\")))\n { \n mgr.redirectTo(ctx.readValue(\"REFERRER\"));\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .com.ctrip.flight.intl.agg.flighttypes.v3.FareType Fare = 1; | public java.util.List<? extends com.ctrip.flight.intl.agg.flighttypes.v3.FareTypeOrBuilder>
getFareOrBuilderList() {
return fare_;
} | [
"public com.ctrip.flight.intl.agg.flighttypes.v3.FareTypeOrBuilder getFareOrBuilder(\n int index) {\n return fare_.get(index);\n }",
"public java.util.List<com.ctrip.flight.intl.agg.flighttypes.v3.FareType> getFareList() {\n return fare_;\n }",
"@Schema(description = \"type of fare part. If there i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contains method Product option repository | @Repository
public interface ProductOptionRepository extends CrudRepository<ProductOption, Long> {
ProductOption findByIdAndProductId(UUID id, UUID productId);
List<ProductOption> findByProductId(UUID productId);
} | [
"public interface ProductRepository {\n /*Definimos las reglas que tendrá el repositorio de nuestro dominio al momento que cualquier repository\n * quiera acceder a productos en la BD, esto nos permite no acoplar nuestra solucion a una BD especifica\n * sino que siempre estemos hablando en terminos de dom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the sourceSubTypeDisplayName property: The display name of source subtype under a source signal consumed in Fusion detection. | public String sourceSubTypeDisplayName() {
return this.sourceSubTypeDisplayName;
} | [
"public String sourceSubTypeName() {\n return this.sourceSubTypeName;\n }",
"public String getSubTypeDesc() {\n\t\treturn subTypeDesc;\n\t}",
"java.lang.String getSubType();",
"public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}",
"public FusionSourceSubTypeSetting withSourceSubTypeNa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify the signature of the xml string | public boolean verifyXMLSignature(java.lang.String xmlString,
java.lang.String certAlias)
throws XMLSignatureException {
return verifyXMLSignature(xmlString, DEF_ID_ATTRIBUTE, certAlias);
} | [
"public boolean verifyXMLSignature(java.lang.String xmlString) \n throws XMLSignatureException {\n return verifyXMLSignature(xmlString, null); \n }",
"public boolean verifyXMLSignature(java.lang.String xmlString,\n java.lang.String idAttrName, \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que genera una lista de utilidad para los estados del cliente Llama al procedimiento almacenado PRC_RADIO_ESTADO_CLIENTE 1.0 Franco Cortez Version inicial | public List<UtilidadesDto> getRadioEstadoCliente(); | [
"private void distribuirServicios() throws Exception {\n\t\tList<MyArray> serv = new ArrayList<MyArray>();\n\t\t\n\t\tMap<String, Tope> topes = new HashMap<String, Tope>();\n\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\tList<Tope> topes_ = rr.getTopes(this.getNumberDay());\n\t\tfor (Tope tope : topes_)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds either the first parsable exception, or the root cause of the exception. If the exception has an associated parser, that exception will be returned, else it will recursively look for the cause of that exception until it either finds the root cause, or a parsable exception. | @VisibleForTesting
Throwable getRootCause(Throwable throwable) {
Throwable rootCause = throwable;
while (
rootCause.getCause() != null &&
!parserMap.containsKey(getParserNameFromException(rootCause)) &&
rootCause.getCause() != rootCaus... | [
"public static RegionMovedException find(Object exception) {\n if (exception == null || !(exception instanceof Throwable)){\n return null;\n }\n\n Throwable cur = (Throwable)exception;\n RegionMovedException res = null;\n\n while (res == null && cur != null) {\n if (cur instanceof RegionMov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column IMAL141_DEV_O18.S_CONTROL_PARAM.ADD_STRING9_DESC | public String getADD_STRING9_DESC() {
return ADD_STRING9_DESC;
} | [
"public String getADD_STRING11_DESC() {\r\n return ADD_STRING11_DESC;\r\n }",
"public String getADD_STRING10_DESC() {\r\n return ADD_STRING10_DESC;\r\n }",
"public String getADD_STRING15_DESC() {\r\n return ADD_STRING15_DESC;\r\n }",
"public String getADD_STRING2_DESC() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert entered number of cups into equivalent units of another system of volume. | private Double convertCups (Double quantity, String outUnit) {
switch (outUnit) {
case ("ozfl") : return (quantity * 8);
case ("tsp") : return (quantity * 48);
case ("tbsp") : return (quantity * 16);
case ("ml") : return (quantity * 236.588);
case... | [
"public static int cupsToTeaspoon() {\n\t\t\n\t\tSystem.out.println(\"Please enter number of cups to convert\");\n\t\tScanner noofcups = new Scanner(System.in);\n\t\tint cup = noofcups.nextInt();\n\t\t\n\t\t//int cup = 48;\n\t\tint nooftsb = cup * 48;\n\t\tSystem.out.println(\"There are \" + nooftsb + \" teaspoons... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a DocIdSetIterator, find any subiterators or twophase iterators and add them to the provided DocIdSetIterator and TwoPhaseIterator lists | public static void addIterator(
DocIdSetIterator disi,
List<DocIdSetIterator> allIterators,
List<TwoPhaseIterator> twoPhaseIterators) {
ConjunctionDISI.addIterator(disi, allIterators, twoPhaseIterators);
} | [
"public static void addTwoPhaseIterator(\n TwoPhaseIterator twoPhaseIter,\n List<DocIdSetIterator> allIterators,\n List<TwoPhaseIterator> twoPhaseIterators) {\n ConjunctionDISI.addTwoPhaseIterator(twoPhaseIter, allIterators, twoPhaseIterators);\n }",
"@Override\n\tpublic void or(IDocIdSetIterat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get PersonalData object by ID | public PersonalData getPersonalDataById(long id) {
try {
Optional<PersonalData> personalData = personalDataRepository.findPersonDatabyId(id);
if (personalData.isPresent()) {
return personalData.get();
}
return null;
} catch (Exception e) {
... | [
"Person getPersonById(long id);",
"public Person getPersonById(Long id);",
"Person getPerson(Long id);",
"public Person getPerson(long id){\n return personRepository.findOne(id);\n }",
"public Integer getPersonalDataId() {\n return personalDataId;\n }",
"public Person get( Integer id )... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .SSIT.proto.CommandInfo command = 1; | SSIT.proto.Unetmgr.CommandInfo getCommand(); | [
"SSIT.proto.Unetmgr.CommandInfoOrBuilder getCommandOrBuilder();",
"public interface SppCommandData {\n\n }",
"network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder();",
"network.message.PlayerResponses.Command getCommand();",
"public interface SSHCommandSchema {\n\n String getCommand();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens the dialog which allows to write and manager mails. | public static void showMailDialog() {
MailDialog dialog = new MailDialog(Application.getApplication( )
.getShell( ));
dialog.open( );
} | [
"public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}",
"public void openMail() {\n mail.click();\n Driver.defaultWait();\n }",
"@FXML\n privat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .com.complexible.common.protobuf.core.StringMapEntry values = 1; | java.util.List<? extends com.complexible.common.protobuf.core.Core.StringMapEntryOrBuilder>
getValuesOrBuilderList(); | [
"com.complexible.common.protobuf.core.Core.StringMapEntry getValues(int index);",
"java.util.List<com.complexible.common.protobuf.core.Core.StringMapEntry> \n getValuesList();",
"com.zfoo.protocol.packet.ProtobufObject.ListMapIntegerStringOrBuilder getValueOrBuilder();",
"java.util.List<? extends com.c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a List of all known configuration options | public List<Configuration> getAll(); | [
"@Override\n public Set<String> getConfigurationOptions() {\n return configOptions;\n }",
"public synchronized Iterator<String> getAllOptions() {\n\t\tSet<String> names = optionTable.keySet();\n\t\tIterator<String> itr = names.iterator();\n\t\treturn itr;\n\t}",
"List<String> getJavaOptions();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine if this JavaImplementation contains the given set of auxClasss. | public Collection hasAuxClasss(Collection auxClasssToCheck); | [
"public boolean hasAllAuxClasss(Collection auxClasssToCheck);",
"public boolean hasAuxClass(IJavaClassFile auxClassToCheck);",
"public void addAuxClasss(Collection auxClasss);",
"public static boolean containsUnrelatedClasses(Class<?>[] classes) {\r\n if (ObjectUtils.isEmpty(classes))\r\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a difficulty level based on user input. Will automatically set default difficulty as M (medium) if user input cannot be parsed. | public Difficulty(String difficulty) {
switch (difficulty.toLowerCase()) {
case "l":
case "low":
this.level = Level.L;
break;
case "m":
case "medium":
default:
this.level = Level.M;
break;
case "h":
case "hig... | [
"public int readDifficulty() {\n\t\t\t\t\tSystem.out.println(\"Choose difficulty level: \\n 1 \\n 2 \\n 3 \\n 4\");\n\t\t\t\t\tint j= 0;\n\t\t\t\t\tj = resp.nextInt();\n\t\t\t\t\tswitch (j) {\n\t\t\t\t\t//A difficulty level of 1 shall limit random numbers to the range of 0-9, inclusive\n\t\t case 1: j =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the index of the selected recipe. | @OnlyIn(Dist.CLIENT)
public int getSelectedRecipe() {
return this.selectedRecipe.get();
} | [
"public int getSelectedPartRecipe() {\n return this.selectedRecipe.get();\n }",
"public int getIndexOfSelectedItem() {\n\n return currentSelection.get(selectedJumpType);\n\n }",
"static int getIndexSelected() {\n return indexSelected;\n }",
"public int getSelectionIndex() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used to determine if horizontal path between source and target is empty | static private boolean isHorizontalPathEmpty() {
// Check if all squares in between source and target are empty
int i;
if (y - targetY == -1 || y - targetY == 1) {
// Move is 1 square, no need to check if empty since doesn't matter
return true;
}
if (y - targetY < -1) {
// Moving to the right for whi... | [
"static private boolean isVerticalPathEmpty() {\n\t\t// Check if all squares in between source and target are empty\n\t\tint i;\n\t\tif (x - targetX == -1 || x - targetX == 1) {\n\t\t\t// Move is 1 square, no need to check if empty since doesn't matter\n\t\t\treturn true;\n\t\t}\n\t\tif (x - targetX < -1) {\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine if a node can be considered the destination node in its current search. | boolean isDestination(N node); | [
"public boolean destinationsAreValid (){\t\t\n\t\tfor (Node n : destination){\n\t\t\tif (!shouldBeSearched(n)) return false;\n\t\t}\n\t\treturn true;\n\t}",
"protected boolean hasVisitedDestination(Object source, Object destination) {\n\t\t//TODO extend HashSet->IdentitySet to handle e.g.:\n\t\t// visit destinati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of previous nodes (dependencies). | public int getPrevNodeCount(); | [
"public int getPrevEdgeCount();",
"public int getPrevNode() {\n\t\treturn this.previousNode;\n\t}",
"public int getPreviousOrderCount() {\n return previousOrderCount;\n }",
"public double getPrevCount()\n {\n\n return this.prevCount;\n }",
"public List<Vertex> getPreviousNodes() {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a Stage object to the stageData ArrayList. Checks the supplied String to ensure that no other Stage associated with this Quest already uses it. | public Stage createStage(Stage stage) {
if (uniqueCheck(stage.getID())) {
stageData.add(stage);
return stage;
} else {
System.out.println("Proposed stage does not have a unique ID.");
return null;
}
} | [
"public void add_stage() {\r\n\t\tif (this.controller.getSelectedCatagory() == null)\r\n\t\t\treturn;\r\n\t\tString name = JOptionPane.showInputDialog(this,\r\n\t \t\"Choose a name for the stage\",\r\n\t \"Name Stage\", 1);\r\n\t if (name == null) {\r\n\t \treturn;\r\n\t }\r\n\t // If ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "lvlofdamage" element | int getLvlofdamage(); | [
"void setLvlofdamage(int lvlofdamage);",
"org.apache.xmlbeans.XmlInt xgetLvlofdamage();",
"boolean isSetLvlofdamage();",
"public Number getVillageLibrDetail() {\r\n return (Number) getAttributeInternal(VILLAGELIBRDETAIL);\r\n }",
"void xsetLvlofdamage(org.apache.xmlbeans.XmlInt lvlofdamage);",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column PMSTRADE.ISSUE_NBR | public String getISSUE_NBR() {
return ISSUE_NBR;
} | [
"public void setISSUE_NBR(String ISSUE_NBR) {\r\n this.ISSUE_NBR = ISSUE_NBR == null ? null : ISSUE_NBR.trim();\r\n }",
"public java.lang.String getIssueNumber() {\r\n return issueNumber;\r\n }",
"public String getIssueId() {\r\n return issue.getId();\r\n }",
"public String getIs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ select a log or long log object from World.sprites randomly, set coordinate based on selected log object. | private void getOnLog(ArrayList<Sprite> sprites) {
ArrayList<Sprite> logs = new ArrayList<Sprite> ();
for (Sprite temp : sprites) {
if (temp.getClass().getName() == "Log") {
logs.add(temp);
}
}
onLog = (Log)logs.get(new Random().nextInt(logs.size()));
setX(onLog.getX());
setY(onLog.getY());
} | [
"private void generateTarget(TETile[][] world, Rectangle last, Random r, TETile door) {\n List<Integer> sideUsage = last.checkSidesUsage();\n if (sideUsage.size() != 0) {\n int side = RandomUtils.uniform(r, 0, sideUsage.size());\n int x = 0, y = 0;\n switch (side) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the company ag ID of this image company ag. | public java.lang.String getCompanyAgId() {
return _imageCompanyAg.getCompanyAgId();
} | [
"public long getCompanyId() {\n\t\treturn _instanceImage.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _editionGallery.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _statViewTag.getCompanyId();\n\t}",
"public java.lang.String getPrimaryKey() {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set_rupture_list Set the earthquake rupture list. | public ForecastCatalog set_rupture_list (CompactEqkRupList rupture_list) {
// For null list, use count = -1
if (rupture_list == null) {
eqk_count = -1;
lat_lon_depth_list = new long[1];
lat_lon_depth_list[0] = 0L;
mag_time_list = new long[1];
mag_time_list[0] = 0L;
return this;
}
// Get ear... | [
"public void setListRegisseure( List<Person> listRegisseure ) {\n\t\tthis.listRegisseure.clear();\n\t\tthis.listRegisseure.addAll( listRegisseure );\n\t}",
"public CompactEqkRupList get_rupture_list () {\n\n\t\t// For null list, return null\n\n\t\tif (eqk_count < 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// For empt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
RPC for a reverse prefixlookup at the master. | public ClientResponseFuture<ResultSet<byte[], byte[]>, EntryMap> prefixLookupR(
String dbName, int indexId, ReusableBuffer key,
InetSocketAddress master); | [
"public ClientResponseFuture<ResultSet<byte[], byte[]>, EntryMap> prefixLookup(\n String dbName, int indexId, ReusableBuffer key, \n InetSocketAddress master);",
"SimpleString getPrefix(SimpleString address);",
"public static Output<GetManagedPrefixListsResult> getManagedPrefixLists(GetMan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns an instance of Command.Descriptor. The descriptor is meta information about the command. | Command.Descriptor getDescriptor(); | [
"public abstract CommandDescriptor<T> getDescriptor();",
"public @NonNull CommandMeta getCommandMeta() {\n return this.commandMeta;\n }",
"public abstract Command getCommand();",
"public CommandInfo getInfo() {\n\t\treturn info;\n\t}",
"public CommandManager getCommand() {\n\treturn command;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Este metdo permite sobre escribir un array con los datos de el estado de salud | public void escribirSalud(ArrayList salud); | [
"static public void inicializarArrayFuncionario(){\n arrayfuncionario.clear();\n \n CriarConexao_Funcionario conexaofuncionario = new CriarConexao_Funcionario();\n conexaofuncionario.conectar();\n \n \n ResultSet resultset;\n Statement statement;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the generic_promotion_code_seq value for this Order_item_select_responseOrder_item. | public void setGeneric_promotion_code_seq(int generic_promotion_code_seq) {
this.generic_promotion_code_seq = generic_promotion_code_seq;
} | [
"public int getGeneric_promotion_code_seq() {\n return generic_promotion_code_seq;\n }",
"public void setOrder_item_seq(int order_item_seq) {\n this.order_item_seq = order_item_seq;\n }",
"public void setPrem_to_order_item_seq(int prem_to_order_item_seq) {\n this.prem_to_order_item_se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes one Cvx from the database. | public static void delete(long cvxNum) throws Exception {
String command = "DELETE FROM cvx " + "WHERE CvxNum = " + POut.Long(cvxNum);
Db.NonQ(command);
} | [
"public void deleteByVaiTroID(long vaiTroId);",
"public function delete()\n {\n global $Database;\n \n $query = new QueryBuilder();\n $query->delete(static::getTable())\n ->where([\n static::$_primaryKey => $this->_columns[static::$_primaryKey]\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Optional. The maximum number of pods per node in the Cloud Composer GKE cluster. The value must be between 8 and 110 and it can be set only if the environment is VPCnative. The default value is 32. Values of this field will be propagated both to the `defaultpool` node pool of the newly created GKE cluster, and to the d... | public Builder clearMaxPodsPerNode() {
bitField0_ = (bitField0_ & ~0x00000200);
maxPodsPerNode_ = 0;
onChanged();
return this;
} | [
"@java.lang.Override\n public int getMaxPodsPerNode() {\n return maxPodsPerNode_;\n }",
"@java.lang.Override\n public int getMaxPodsPerNode() {\n return maxPodsPerNode_;\n }",
"public Builder setMaxPodsPerNode(int value) {\n\n maxPodsPerNode_ = value;\n bitField0_ |= 0x00000200;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cancel this request to stop monitoring and dispatching events. | public void cancel() {
_isCanceled = true;
RESOURCE_SYNC_QUEUE.dispatchBarrierSync( new Runnable() {
public void run() {
for ( final Channel channel : CHANNELS ) {
channel.removeConnectionListener( REQUEST_HANDLER );
}
}
});
} | [
"public void cancel() {\n request.disconnect();\n }",
"public void cancelRequest() {\n if (serverFetcher != null && serverFetcher.isRunning) {\n serverFetcher.stopFetching();\n }\n\n serverFetcher = null;\n }",
"public void requestCancel();",
"void requestCancel();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets gen password count Dec 24, 2009 dmason | public int getPasswordsCount()
{
String[]selectionArgs={ENTRY_TYPE_GEN_PASSWORD+""};
Cursor cursor = sqliteDatabase.rawQuery(sqlGetCount, selectionArgs);
return cursor.getCount();
} | [
"BigInteger getNotReusableNumberOfPasswords();",
"int getVerifyCodeDigitCount();",
"private String generatePass () {\r\n\t\tRandom random = new Random();\r\n\t\tint randomNum = random.nextInt(10000);\r\n\t\tString randomPassword = String.valueOf(randomNum);\r\n\t\treturn randomPassword;\r\n\t}",
"int getPassw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set commercial frame, read from binary content. See the ID3v2 informal standard for details on the format of this field. | public abstract void setCommercial(TagContent commercial)
throws TagFormatException; | [
"public void setBuffer()\n {\n // todo: make this abstract\n throw new IllegalArgumentException(\"The ID3v24FrameBody.setBuffer() method should be abstract and never called directly.\");\n }",
"public FrameBodyAENC() {\n this.setObjectValue(DataTypes.OBJ_OWNER, \"\");\n this.setObjectV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new BlankFieldComparator which orders the sequence of the output of the different blank fields | public BlankFieldComparator(HashMap<String,Integer> order) {
this.order = order;
} | [
"public String getComparatorForNull() {\n return comparatorForNull;\n }",
"public JwComparator<AcActionAutoCorrectedLog> getCorrectedDataComparatorNullsLower()\n {\n return CorrectedDataComparatorNullsLower;\n }",
"public JwComparator<AcItem> getDisplayLabelComparatorNullsLower()\n {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the color setting for the name. | private static Color getColorSetting(Display display, String name)
{
if (ColorRegistry.colorTable.containsKey(name)) return (Color) ColorRegistry.colorTable.get(name);
Color color = ColorRegistry.getDefaultColor(display, name);
ColorRegistry.colorTable.put(name, color);
return color;
} | [
"private Color getColor( ColorSettingName name )\n\t{\n\t\tColorSetting setting = mSettingsManager.getColorSetting( name );\n\t\t\n\t\treturn setting.getColor();\n\t}",
"CTColor getCTColor(String name){\n \treturn _schemeColors.get(name);\n }",
"public static Color getByName(String name) {\n\t\treturn COL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure that each ruid is only used once. | @Test
public void testUniqueManualRuids() {
ServiceWriteRequestBuilder<Void> builder = ServiceWriteRequestBuilder.newPostRequest(ServiceName.CONTACT, "/contact", null, Void.class).withRuid("a");
String ruid1 = builder.build().getRuid();
String ruid2 = builder.build().getRuid();
as... | [
"boolean isAlreadyUsed();",
"public int uidCacheMisses();",
"public boolean isExplicitUniqueCheckRequired();",
"boolean isUsedOnceOnly();",
"private void resetCounter() {\n\t\tcounterToStarvation = maxUserSameGenderInSequence;\n\t}",
"public void testNextUniqueID() {\r\n\r\n\t}",
"@Override\n\tpublic na... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the ENTIDAD value for this ORDENPAGO. | public org.datacontract.schemas._2004._07.SmartWork_BPM_BPMLogicEnsurance.ENTIDAD getENTIDAD() {
return ENTIDAD;
} | [
"public org.datacontract.schemas._2004._07.SmartWork_BPM_BPMLogicEnsurance.ENTIDAD getENTIDAD1() {\r\n return ENTIDAD1;\r\n }",
"public int getEdad() {\n return edad;\n }",
"protected int getEdad() {\r\n return edad;\r\n }",
"public Number getOridestId() {\n return (Number... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform Sorting of Hotel List based on Hotel Name. | private void sortByName() {
Collections.sort(hotelList, (l1, l2) -> l1.getHotelName().compareTo(l2.getHotelName()));
} | [
"public void sortByName() {\n Comparator<Equipment> byName = Comparator.comparing(equipment -> equipment.getName().toString());\n internalList.sort(byName);\n }",
"private void sortByPrice() {\n Collections.sort(hotelList, new PriceComparator());\n }",
"void sortByName();",
"private... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required bytes cancel_info = 127; | com.google.protobuf.ByteString getCancelInfo(); | [
"public com.google.protobuf.ByteString getCancelInfo() {\n return cancelInfo_;\n }",
"public com.google.protobuf.ByteString getCancelInfo() {\n return cancelInfo_;\n }",
"public Builder setCancelInfo(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPoi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the addServices property. | void setAddServices(boolean value); | [
"public void setServices( Service[] services )\n {\n this.services = services;\n }",
"public void setServices(ArrayList<Service> services){\n\t\tthis.services = services;\n\t}",
"public void addServices(Services services) {\n for(int i = 0; i < services.getServices().size(); i++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the short name of the team. | public String getTeamShortName() {
return teamShortName;
} | [
"String getTeamName();",
"public java.lang.String getTeam_Name() {\n\t\treturn _team.getTeam_Name();\n\t}",
"public String getProjectTeamName(){\n return \"The name of the project of this researcher is \"+\n name_of_project_team +\n \"\\n*******\\n\";\n }",
"public String getTeamName()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if statement only contains one child, it is LineBreak declStmts are allowed both in body and in declaration | private static boolean isBodyStatement(YLangParser.StatementContext ctx) {
return ctx != null &&
ctx.children != null &&
ctx.children.size() > 1 &&
ctx.declStmt() == null;
} | [
"protected int getBodyDeclListChildPosition() {\n return 3;\n }",
"private void stmt(){\n \n if(token == \"datatype\"){\n \n if(declarition()){\n System.out.println(\"right declarition in line \" + linesz);\n nextToken();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the group ID of this audit report. | @Override
public void setGroupId(long groupId) {
_auditReport.setGroupId(groupId);
} | [
"public void setGroup(String groupID) {\n _groupID = nullIfEmpty(groupID);;\n }",
"public void setGroupID(int groupID) {\n this.groupID = groupID;\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_changesetEntry.setGroupId(groupId);\n\t}",
"@Override\n\tpublic void setGroupId... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Original signature : void OpenMM_AmoebaAngleForce_setAmoebaGlobalAngleCubic(OpenMM_AmoebaAngleForce, double) | public static native void OpenMM_AmoebaAngleForce_setAmoebaGlobalAngleCubic(PointerByReference target, double cubicK); | [
"public static native double OpenMM_AmoebaAngleForce_getAmoebaGlobalAngleCubic(PointerByReference target);",
"public static native void OpenMM_AmoebaInPlaneAngleForce_setAmoebaGlobalInPlaneAngleCubic(PointerByReference target, double cubicK);",
"public static native double OpenMM_AmoebaInPlaneAngleForce_getAmoe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Apply a function to each bus located within group as the given bus. Will also iterate over the given bus. TODO: At some point we should compare this and findGroupMap to see if a common base will perform. Currently, we're duplicating the traversal code TODO: The stack and "seen" arrays are fullysized, which is probably ... | public void forEachInGroup(int startBus, IntConsumer bf)
{
int bcnt = getMaxBusNdx();
/** create a very simple stack */
int stack[] = new int[bcnt];
int stackptr = 0;
boolean[] seen = new boolean[bcnt];
stack[stackptr++] = startBus;
seen[startBus] = true;
while(stackptr > 0)
{
int p = stack[--sta... | [
"private void solveSubAreaNet(int areaFlag, Function<TBus,Complex3x1> injCurrentFunc) throws IpssNumericException {\r\n\t\tTSub subArea = this.getSubArea(areaFlag);\r\n\r\n\t\t// form Y-matrix (012) for each SubArea/Network\r\n\t\tif (this.netYmatrixDirty) {\r\n \t\t\t// there is no need to form the Y matrix if it... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the conjugate subgroup of a subgroup of this: x1Hx. | default Group<T> conjugateSubgroup(Group<T> h, T x) {
throw new UnsupportedOperationException();
} | [
"public ComplexNumber conjugate() {\r\n return new ComplexNumber(this.realPart, (-1 * this.imaginaryPart));\r\n }",
"public Complex conjugate() {\r\n return new Complex(this.getReal(), this.getImag() * -1);\r\n }",
"public ComplexNum conjugate (){\n return new ComplexNum(real, -imaginary, e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ First compile with setAllowUndeclaredVariables (see above constructor) to discover XPath variables in the input XPath expression. / Why not reuse the same XPathCompiler over and over (make it a class member)? Because it is not immutable, calling XPathCompilercompile(String) may change the internal state each time, e.... | @Override
public XPathExecutable compile(String source) throws SaxonApiException
{
final XPathCompiler compiler = XmlUtils.newXPathCompiler(xPathVersion, nsPrefixToUriMap);
compiler.setAllowUndeclaredVariables(true);
final XPathExecutable xpathExec = compiler.compile(... | [
"public XPathCompiler newXPathCompiler() {\n return new XPathCompiler(this);\n }",
"public XQueryCompiler newXQueryCompiler() {\n return new XQueryCompiler(this);\n }",
"public XPathSelector load() {\n Map<StructuredQName, XPathVariable> declaredVariables = new LinkedHashMap<Structure... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the row for new column button. | private void createRowForNewColumnButton(Composite section2)
{
buttonNewColumn = toolkit.createButton(section, "New Column...", SWT.PUSH); //$NON-NLS-1$
buttonGridData(buttonNewColumn, SWT.TOP);
buttonNewColumn.addSelectionListener(new SelectionListener()
{
public void wi... | [
"public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }",
"protected void addRow(TextButton buttonToAdd)\n {\n table.add(buttonToAdd).width(centre/3.0f);\n table.row();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the hybridAksProvisionedClusterId property: The resource ID of the Hybrid AKS cluster that this additional information is for. | String hybridAksProvisionedClusterId(); | [
"interface WithHybridAksProvisionedClusterId {\n /**\n * Specifies the hybridAksProvisionedClusterId property: The resource ID of the Hybrid AKS cluster that this\n * additional information is for..\n *\n * @param hybridAksProvisionedClusterId The resource ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clear the attributions data member; override in proxy if lazily loaded, otherwise this method does nothing. | public void clearAttributions() {
// Override in proxy if lazily loaded; otherwise does nothing
} | [
"public void removeAllAttributes()\n {\n attributes = new HashMap();\n }",
"@Override\n public void removeAttributes()\n {\n attributes.clear();\n }",
"public void reset ()\n {\n if (_attrs != null)\n _attrs.clear();\n if (_opers != null)\n _op... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
il metodo che restituisce il valore del campo nomefile | public String getNome_file() {
return this.nome_file;
} | [
"private void setNomeArquivo(String nomeArquivo){\n \n this.nomeArquivo = modificarExtensao(nomeArquivo);\n }",
"private void lireFichierNom() {\n try {\n BufferedReader fichier_source = new BufferedReader(new FileReader(this.fichierNom));\n String chaine;\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resolves, downloads and moves targeted artifact to the provided destination directory. This is the main entry point into this utils class and performs all the necessary work to download an artifact from Maven and put the artifact in the expected location. | public void resolveArtifact(final String artifactCoordinates, final File destinationDirectory, final String targetName) {
final File localRepositoryBaseDirectory = createLocalRepositoryBaseDirectory();
try {
final ArtifactRequest artifactRequest = new ArtifactRequest();
art... | [
"void download(String artifact, String directory) throws Exception;",
"private static String downloadMavenJar(String groupId, String artifactId) {\n String path = JARS_LOCATION + artifactId + \"-latest.jar\";\n String url = \"http://repository.sonatype.org/service/local/artifact/maven/redirect?r=cen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a new, freshly allocated indefinite iterator that produces test data of type java.io.InputStream for testing the method named by the String methodName in a loop that encloses loopsThisSurrounds many other loops. | protected org.jmlspecs.jmlunit.strategies.IndefiniteIterator vjava_io_InputStreamIter(
java.lang.String methodName, int loopsThisSurrounds) {
return vjava_io_InputStreamStrategy.iterator();
} | [
"protected org.jmlspecs.jmlunit.strategies.IndefiniteIterator vie_ucd_sensetile_sensorboard_driver_InputStreamPacketInputStreamIter(\n java.lang.String methodName, int loopsThisSurrounds) {\n return vie_ucd_sensetile_sensorboard_driver_InputStreamPacketInputStreamStrategy\n .iterator();\n }",
"@Te... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: checkdatum | public String getCheckdatum(){
return checkdatum;
} | [
"public void setCheckdatum( String checkdatum ){\n this.checkdatum = checkdatum;\n }",
"String getValue(String column, int row);",
"public Date getCheckdate() {\n return checkdate;\n }",
"public Object getCol2check() {\n return col2check;\n }",
"public Date getCheckDatetime() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the current childYOffset for positioning additional sprites or emitters to a point in a sprite anim | void setChildYOffset(float childYOffset); | [
"void setChildXOffset(float childXOffset);",
"void setY(int newY) {\n this.yPos = newY;\n }",
"public void offsetXY(double dx, double dy) { setXY(_x + dx, _y + dy); }",
"public void setCardsYPos(double y){\n this.cardsYPos=y;\r\n }",
"public void setyOffset(int yOffset) {\r\n\t\tthis.yOffset ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
before quit, write open tickets to file | @Override
public void actionPerformed(ActionEvent e) {
writeOpenTicketsToFile(ticketQueue);
//and resolved tickets
writeResolvedTicketsToFile(resolvedList);
System.exit(0);
} | [
"public static void writeOpenTicketsToFile(LinkedList<Ticket> ticketQueue) {\n\t\n\ttry{\n\t\tFileWriter writer = new FileWriter(\"OpenTickets.txt\");\n\t\n\t\tBufferedWriter bufWriter = new BufferedWriter(writer);\n\n\n\t\t\n\t\t\n Ticket T;\n\t\tfor (int i=0; i<ticketQueue.size(); i++)\n\t\t{\n\t\tT=ticket... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates a default grocery store object | public GroceryStore () {
aisles = 20;
freezers = 5;
inventoryFull = 8;
fresh = 9;
liveAnimals = false;
bakery = true;
bestSeller = "Milk";
numberOfProducts = 10000;
} | [
"Store createStore();",
"public Store() {\n }",
"public PizzaStore() {\n }",
"public GroceryStore(String n, String sl){\n aisles=20;\n freezers=5;\n inventoryFull=8;\n fresh=9;\n liveAnimals=false;\n bakery=true;\n bestSeller=\"Milk\";\n numberOfProd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Augments the initClassDefaults method. | public void augmentInitClassDefaultsMethod(boolean toSynthOriginal,
String className, String superClassName) {
if (toSynthOriginal) {
if (LafMainClassAugmenter.this.isVerbose) {
System.out
.println("... Creating empty 'initClassDefaults' forwarding to super '"
+ superClassName + "'");
... | [
"public void initDefaultValues() {\n }",
"protected void initialize() {\n if (classInfos == null) {\n final TreeMap<String, ClassInfo> classInfos = new TreeMap<String, ClassInfo>();\n final VmType[] list = bootClasses;\n final int count = list.length;\n for (i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that the ServerWebReader.containsDBLineContent() is correctly returning true. | @Test
public void testServerWebReader_containsDBLineContent_TRUE(){
ServerWebReader testServerWebReader = new ServerWebReader();
String content = "from=USD 12 <td> <td class='rtRates'> 5034";
assertTrue(testServerWebReader.containsLineContent(content));
content = "from=USD<tag>0.3241... | [
"@Test\n public void testServerWebReader_containsDBLineContent_FALSE(){\n ServerWebReader testServerWebReader = new ServerWebReader();\n String content = \"from=USD 12 <td> <td class=''> 5034\";\n assertFalse(testServerWebReader.containsLineContent(content));\n content = \"from=<tag>0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column dbo.MES_WM_ProductStructureC.auxiliaryUnit | public void setAuxiliaryunit(String auxiliaryunit) {
this.auxiliaryunit = auxiliaryunit;
} | [
"public String getAuxiliaryunit() {\n return auxiliaryunit;\n }",
"public void setAuxiliaryamount(BigDecimal auxiliaryamount) {\n this.auxiliaryamount = auxiliaryamount;\n }",
"public void setProductUnit(int productUnit) {\r\n\t\tthis.productUnit = productUnit;\r\n\t}",
"public BigDecimal ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the final step in charge of building the Panino Object. Validation should be here. | public interface BuildStep {
Panino build();
} | [
"protected abstract Peon createPeon(PeonTask peonTask);",
"public void buildNPuzzleObjects()\n\t{\n\t\t\n\t\tProblem problem = new NPuzzleProblem(PUZZLE_DIMENSION);\n\t\tHeuristicFunction heuristic = new AggregateHeuristic(multiplier, new PathCostHeuristic(), new ManhattanDistanceHeuristic(problem.getGoalNode()))... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Maximum channel queue depth. | public VolumeIOStats queueDepthMax(Double queueDepthMax) {
this.queueDepthMax = queueDepthMax;
return this;
} | [
"public int getMaxAllowedDepth();",
"public int getMaxDepth();",
"int getMaximumDepth();",
"public int getMaxEntranceQueue() {\n \t\treturn maxEntranceQueue;\n \t}",
"public int maxChannel() {\n\t\tint c = 0;\n\t\tif(getValue(c) < getValue(1)) c=1;\n\t\tif(getValue(c) < getValue(2)) c=2;\n\t\treturn c;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Undoes the transaction, then sets the transaction status to REVOKED or FRAUDULENT as appropriate. | public void revoke(boolean fraudulent) {
switch (status) {
case AUTHORIZED:
sender.deposit(transactionAmount);
recipient.withdraw(transactionAmount);
sender.decrementTransactionsProcessed();
recipient.decrementTransactionsProcessed();
... | [
"void rollback() {\n\t\tif (_transactions.empty()) {\n\t\t\t_out.println(\"NO TRANSACTION\");\n\t\t\treturn;\n\t\t}\n\t\tMap<String, Integer> db = _transactions.pop();\n\t\t_transactionIndices.pop();\n\t\tif (db.size() == 0) {\n\t\t\t_out.println(\"NO TRANSACTION\");\n\t\t\treturn;\n\t\t}\n\t\tboolean isNoTransacti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column s_appshis.appsHistoryId | public String getAppsHistoryId() {
return appsHistoryId;
} | [
"public long getHistoryId()\r\n\t{\r\n\t\treturn historyId;\r\n\t}",
"public String getHistoryId() {\r\n return historyId;\r\n }",
"public java.lang.String getHistoryId() {\n\t\treturn _person.getHistoryId();\n\t}",
"public void setAppsHistoryId(String appsHistoryId) {\n this.appsHistoryId = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
true if book contains aura by id | public boolean contains (int id){
for(int i = 0; i < length; i++){
if(id == auraBook[i].ID){
return true;
}
}
return false;
} | [
"boolean contains(final int id);",
"boolean contains(Book title){\n return false;\n }",
"boolean hasInBookNo();",
"public Boolean addBook(Book book) {\n Integer book_id = book.getId();\r\n for (Book obj: books) {\r\n if (book_id.equals(obj.getId()))\r\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a listing of all files at 'src'. The Object[] array exists so we can return file attributes (soon to be implemented) | public NDFSFileInfo[] getListing(UTF8 src) {
return dir.getListing(src);
} | [
"public SourceFile[] getSourceFiles();",
"java.util.List<org.mojolang.mojo.lang.SourceFile> \n getSourceFilesList();",
"public List<File> getSourceFiles()\n\t\t{\n\t\tfinal List<File> ret = new ArrayList<File>();\n\t\t\n\t\ttry\n\t\t\t{\n\t\t\titerateFiles(new FileCallBack()\n\t\t\t\t\t{\n\t\t\t\t\tpublic ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Connectivity interceptor. | public ConnectivityInterceptor() {
} | [
"public static MDCInterceptor instance() {\n return withInit(Action.noop());\n }",
"public static final InterconnectsClient create() throws IOException {\n return create(InterconnectsSettings.newBuilder().build());\n }",
"public JamonPerformanceMonitorInterceptor() {\n }",
"private static HttpLoggi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get Sheet number for parse (default is 0) | protected int getSheetNumber(){
return 0;
} | [
"public int getSheetNumber(){\n return sheetNumber;\n }",
"public int getSheetIndex() {\r\n return sheetIndex;\r\n }",
"@NonNegative\r\n abstract public int getSheetCount();",
"public void setSheetNumber(int number){\n this.sheetNumber = number;\n }",
"protected int findShee... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the feed content of each feedreader into the model by key. | private void addFeeds(Map model, Map feedReaders) {
if (model == null) {
logger.debug("addFeeds(): null model");
}
else if (feedReaders == null) {
logger.debug("addFeeds(): null feedreaders");
}
else {
Set keys = feedReaders.keySet();
... | [
"@Override\n public void addArticles(RssFeed rssFeedEntity) {\n try {\n List<Article> articles = crawlArticles(rssFeedEntity.getUrl());\n articles.forEach(entry -> {\n Article savedArticle =\n articleRepository.findByRssFeedEntityAndLink(\n rssFeedEntity, e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The function to remove the appointment from the list. | public void removeAppointment(PatientAppointment p) {
pList.remove(p);
LOGGER.info("Appointent removed for patient {}",p.getName());
System.out.println("Appointent removed for patient"+p.getName());
} | [
"protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }",
"public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }",
"public void deleteAppointment(Appointment appointment)\n { appointmentList.remove(appointment);\n LocalDateTime cu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deserializes all FileNode objects from given PhotoRenamer.ser file and add all the FileNode objects into the fileList of this FileManager. | public static ArrayList<FileNode> Deser() throws FileNotFoundException, IOException, ClassNotFoundException {
try {
ObjectInputStream ois = new ObjectInputStream(new FileInputStream("PhotoRenamer.ser"));
ArrayList<FileNode> allFileNode = new ArrayList<>();
// loop over the ser file to extract FileNode until... | [
"public static void Ser(ArrayList<FileNode> lst) throws FileNotFoundException, IOException {\n\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"PhotoRenamer.ser\"));\n\t\tfor (FileNode fn : lst) {\n\t\t\toos.writeObject(fn);\n\t\t}\n\t\toos.close();\n\t}",
"private void nodeFilesList() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PDVCategory findByServiceGroup(ServiceGroup s); PDVCategory findByPDVRate(PDVRate p); | List<PDVCategory> findAll(); | [
"Dvd findDvd(final Long id) throws DvdNotFoundException, DaoException;",
"public ElasticsearchDomainStatus withVPCOptions(VPCDerivedInfo vPCOptions) {\n setVPCOptions(vPCOptions);\n return this;\n }",
"@Query(\"SELECT c FROM Car c WHERE c.pricePerDay =:price and c.carDeleted = false\")\r\n\tpub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'var197' field. | public void setVar197(java.lang.CharSequence value) {
this.var197 = value;
} | [
"public com.dj.model.avro.LargeObjectAvro.Builder setVar197(java.lang.CharSequence value) {\n validate(fields()[198], value);\n this.var197 = value;\n fieldSetFlags()[198] = true;\n return this;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar198(java.lang.CharSequence value) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Function lrandom Selects a long random number uniformly distributed between x and y, inclusively, with a mean of (x+y)/2. | public long lrandom(long x, long y) {
// Switch x and y if y less than x
if (y < x) {
long t = y;
y = x;
x = t;
}
return x + Math.abs(r.nextLong() % (y - x + 1));
} | [
"public static long getRandom(long l) {\r\n return _rand.nextLong();\r\n }",
"public long []lrand (int nn) { return rand(new long [nn]); }",
"public long randomLong(long low,long high){\r\n\tlong longVal=((long) randomInt()<<31)+randomInt();\r\n\tlong longM=((long) M<<31)+M;\r\n\r\n\tdouble partit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method generates message which is used when process wants delete a file. | public static Message generateDeletedFileMessage(String SDFSfilepath, ProcessIdentifier deletingProcess){
DeleteFileMessage deleteFileMessage = DeleteFileMessage.newBuilder()
.setFilepath(SDFSfilepath)
.setDeletingProcess(deletingProcess).build();
return Message.newBuild... | [
"public static void fileDelete() {\n Alert a = new Alert(Alert.AlertType.INFORMATION);\n\n a.setContentText(\"Folio has been successfully deleted!\");\n a.showAndWait();\n\n }",
"@DefaultMessage(\"Pressing commit will delete the current record from the database\")\n @Key(\"gen.deleteMessa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the number of negative classifications | private void setNegativeCount(int value) {
m_NegativeCount = value;
} | [
"public void setNegativecount(Integer negativecount) {\n this.negativecount = negativecount;\n }",
"private void incrNegativeCount(){\n m_NegativeCount++;\n }",
"public void increaseFalseNegatives() {\n ++this.falseNegatives;\n }",
"public void increaseTrueNegatives() {\n ++... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the request code of this log message validation. | public void setRequestCode(String requestCode); | [
"@Override\n\tpublic void setRequestCode(java.lang.String requestCode) {\n\t\t_historyInterfaceRequestField.setRequestCode(requestCode);\n\t}",
"public void setRequestCode(java.lang.String requestCode) {\n\t\t_tempNoTiceShipMessage.setRequestCode(requestCode);\n\t}",
"@Override\n\tpublic void setRequestCode(jav... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add new measure to average time for request processing. | protected final void addToAverageRequestProcessingTime(final long time) {
averageRequestProcessing.addNewStat(time);
} | [
"public abstract double getAverageRequestTime();",
"public void addProcessingTime(double time) {\n processingTime += time;\n }",
"public void add(Measurement m) {\n expand(1, true);\n MeasureThing thing = new MeasureThing(this, m);\n }",
"public void update_time_avg_stats(){\n float time_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value(s) for representation (ElementDefinition.representation) Definition: Codes that define how this element is represented in instances, when the deviation varies from the normal case | public ElementDefinitionDt setRepresentation(java.util.List<BoundCodeDt<PropertyRepresentationEnum>> theValue) {
myRepresentation = theValue;
return this;
} | [
"public ElementDefinitionDt setRepresentation(PropertyRepresentationEnum theValue) {\n\t\tgetRepresentation().clear();\n\t\taddRepresentation(theValue);\n\t\treturn this;\n\t}",
"public BoundCodeDt<PropertyRepresentationEnum> addRepresentation() {\n\t\tBoundCodeDt<PropertyRepresentationEnum> retVal = new BoundCod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to choose the layout Technology to use when schematics are found. This is important in Spice deck generation (for example) because the Spice primitives may say "2x3" on them, but a real technology (such as "mocmos") must be found to convert these pure numbers to real spacings for the deck. The default is the MOS... | public static Technology getSchematicTechnology()
{
String t = cacheSchematicTechnology.getString();
Technology tech = Technology.findTechnology(t);
if (tech == null) return MoCMOS.tech;
return tech;
} | [
"public void setTechnology(String technology) {\n this.technology = technology;\n }",
"public String getTechnology() {\n return technology;\n }",
"public void setTechnology(Technology technology) {\n this.technology = technology;\n }",
"public static String getLayout() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getPrecio method, of class Articulo. | @Test
public void testGetPrecio() {
int expResult = 2;
articuloPrueba.setPrecio(expResult);
int result = articuloPrueba.getPrecio();
assertEquals(expResult, result);
} | [
"public abstract int getPrecioAlquiler();",
"@Test\r\n\tpublic void testgetPrecio() {\r\n\t\tassertEquals(60.7f, _cat1.getPrecio(), 0f);\r\n\t}",
"@Test\n public void testGetPrecio() {\n System.out.println(\"getPrecio\");\n Producto instance = new Producto();\n Integer expResult = null;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the sum of the squares for the first 100 natural numbers | public int sumOfSquares(){
//place holder for answer
int sumOfSquaresAnswer = 0;
for(int i = 0; i<=99; i++){
//get the square of each value in the list and add it to the place holder
sumOfSquaresAnswer += numberList[i]*numberList[i];
}
return(sumOfSquaresAnswer);
} | [
"private static int sumOfSquares()\n {\n int sum = 0;\n\n for(int i = 1; i <= 100; i++)\n {\n sum += (i*i);\n }\n return sum;\n }",
"private static int squareOfSum()\n {\n int sum = 0;\n\n for(int i = 1; i <= 100; i++)\n {\n su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of LinkBean | public LinksBean() {
} | [
"Link createLink();",
"public LinkBuilder() {\n }",
"public HttpLinksBean(String linksName) {\r\n\tthis();\r\n\tsetLinksName(linksName);\r\n}",
"public de.fraunhofer.fokus.movepla.model.Link create(long linkId);",
"@Override\n\tpublic org.eclipse.cmf.occi.multicloud.modemo.Loadbalancerlink createLoad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a label for the reference graph | protected abstract String getReferenceLabel(); | [
"java.lang.String getLabel();",
"public String getNodeLabel() {\n return label;\n }",
"public int getNodeLabel ();",
"java.lang.String getLabelName();",
"public String getLabel(){\n\t\treturn this.NODE_LABEL;\n\t}",
"DatasetLabel getLabel();",
"public String getLabel () {\n try {\n return ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return index of ID in list | public static int getIndex(String ID){
return list.indexOf(ID);
} | [
"private int getIndexOfFirstIdOccurence(List<Status> statusList, long id) {\n\t\tfor (int i = 0; i < statusList.size(); i++) {\n\t\t\tif (statusList.get(i).getId() == id) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"private int getIndex(ArrayList<Employee> list, Employee e) {\n if(list == n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct the ESA template channel using another channel | public ESATemplateChannel(HashMap<String,Object> channel) {
esaChannel = channel;
} | [
"public ESATemplateChannel() {\n\t\t super();\n\t }",
"public ESATemplateChannel(RandomAccessFile raf, int channelNumber, int numberOfChannels) {\n\t\t byte[] label = new byte[16];\n\t\t byte[] correctedLabel = new byte[16]; // this field is different from ESAChannel\n\t\t byte[] transducerType = new byte[80];\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes sure this is a JDBC 3 implementation producing JDBC3 connections. | public void testConfirmJdbc3Impl()
{
try {
Connection con = getDataSourceConnection();
assertTrue("Wrong SimpleDataSource impl used by test: "+bds.getClass().getName(), bds instanceof Jdbc3SimpleDataSource);
assertTrue("Wrong Connnection class generated by JDBC3 DataSourc... | [
"public Connection getJDBCConnection();",
"Connection getConnection(String database, String schema, String jdbcURL, String jdbcURLParameters, String user, String password, boolean createDB, boolean createSchema, boolean dropDBIfExist) throws Exception;",
"private void checkJDBC4Interface(PooledConnection pc)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column goods_tb.user_number_id | public String getUserNumberId() {
return userNumberId;
} | [
"public Integer getUserNo() {\n return userNo;\n }",
"public Integer getUser_id() {\r\n\t\treturn user_id;\r\n\t}",
"public Integer getUser_id() {\n return user_id;\n }",
"public String getUsernumber() {\n return usernumber;\n }",
"public String getUserNo()\n\t{\n\t\treturn userNo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds this element's structure and properties in the given info object, based on this element's current contents (reuse buffer contents if this element has an open buffer, or resource contents if this element does not have an open buffer). Children are placed in the given newElements table (note, this element has alre... | protected abstract boolean buildStructure(OpenableElementInfo info,
IProgressMonitor pm,
OpenableMap newElements,
IResource underlyingResource) throws RodinDBException; | [
"protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.cre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a copy of this access where parameterized types have been erased. | @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN)
@ASTNodeAnnotation.Source(aspect="LookupParTypeDecl", declaredAt="/home/hadjer/git/puck2/extendj/java5/frontend/Generics.jrag:1596")
public Access erasedCopy() {
Access erasedCopy_value = treeCopyNoTransform();
return erasedCopy_value;
} | [
"public Access substituted(Collection<TypeVariable> original,\n List<TypeVariable> substitution) {\n return (Access) treeCopyNoTransform();\n }",
"TypedExpression copy();",
"public Type copy();",
"public JType erasure() {\n return this;\n }",
"public abstract ConcreteTypeMunger parameteri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convenience/optimized method to get an individual changeSet by id/author/path. | RanChangeSet getRanChangeSet(String id, String author, String logicalPath, Scope scope) throws LiquibaseException; | [
"DocumentSet findDocumentSet(String id);",
"public Optional<ChangeEdit> byChange(Change change)\n throws AuthException, IOException {\n if (!user.get().isIdentifiedUser()) {\n throw new AuthException(\"Authentication required\");\n }\n Repository repo = gitManager.openRepository(change.getProje... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Grabs the data for a specific Meter. | private StringBuilder getMeterInfo(String name){
Client myClient = new Client(dstAddress,dstPort);
try {
String val = myClient.execute("SELECT * FROM METER WHERE NAME = '"+name+"';").get();
Log.d("MyApp", val);
String[] vals = val.split(",");
Meter meters... | [
"public ParkingMeter getMeter()\r\n {\r\n return new ParkingMeter(meter);\r\n }",
"MeterService meters();",
"public List<Meter> getAllInstuments(){\n return meters;\n }",
"public SortedMap<MetricId, Meter> getMeters() {\n return getMeters(MetricFilter.ALL);\n }",
"public MeterSc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new producer based on an Extractor. | public <T> EtlProducer newExtractorProducer(String name, Extractor<T> extractor, EtlConsumer downstreamEtlConsumer) {
return new ExtractorEtlProducer<>(name, downstreamEtlConsumer, extractor);
} | [
"public static TapProducer makeTap13Producer()\r\n\t{\r\n\t\treturn new TapProducerImpl();\r\n\t}",
"protected IExtractor instantiateExtractor(Extractor extractor) throws Exception {\n LOGGER.trace(\"Create new instance of \" + extractor.getClazz() + \" extractor\");\n Class extractorClass = Class... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |