query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
gets the specified node contianed within this list with the same location ID or null if the node does not exist | public ListNode getNode(int nodeID){
return getNode(new ListNode(nodeID, 0));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node returnNodeById(Id id){\n\t\tif(id.indice >= listOfNodes.size()) return null;\n\t\tNode n = listOfNodes.elementAt(id.indice);\n\t\tif(n == null) return null;\n\t\tId nid = n.getId();\n\t\tif(nid.indice != id.indice || nid.unique != id.unique) return null; \n\t\treturn n;\n\t}",
"public CircosNode getN... | [
"0.6932802",
"0.6763387",
"0.66295975",
"0.6529957",
"0.6513057",
"0.64893013",
"0.64575607",
"0.6432667",
"0.64191186",
"0.6413864",
"0.63280183",
"0.63276094",
"0.62972045",
"0.6280855",
"0.62346846",
"0.6191774",
"0.61394817",
"0.60941905",
"0.60723823",
"0.60695595",
"0.6... | 0.6388915 | 10 |
Populates and returns an array of ListNodes populated with the nodes that compose this LinkedList | public ListNode[] getChildren(){
ListNode[] ret = new ListNode[length()];
ListNode temp = firstNode;
for(int i = 0; i < ret.length && temp != null; i++){
ret[i] = temp;
temp = temp.getNextNode();
}
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Node> getListNodes(){\r\n return listNodes;\r\n }",
"@Override\n\tpublic List<N> getNodeList()\n\t{\n\t\treturn new ArrayList<N>(nodeList);\n\t}",
"public List<Node> getNodes();",
"List<Node> nodes();",
"List<Node> getNodes();",
"java.util.List<io.netifi.proteus.admin.om.Node> ... | [
"0.6664881",
"0.65649945",
"0.6506948",
"0.6504389",
"0.6490646",
"0.6421992",
"0.6372721",
"0.6344576",
"0.6330656",
"0.6280698",
"0.6275819",
"0.62477636",
"0.6237011",
"0.6228812",
"0.6164992",
"0.61582834",
"0.6151804",
"0.61369085",
"0.610897",
"0.606089",
"0.6051666",
... | 0.687113 | 0 |
Returns an identical copy of this LinkedList object | public LinkedList clone(){
if(firstNode == null) return new LinkedList(null);
return new LinkedList(firstNode.clone());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SinglyLinkedList<E> copy() {\n SinglyLinkedList<E> copy = new SinglyLinkedList<>();\n for(Node<E> cur = head; cur != null; cur = cur.next) {\n copy.addLast(cur.item);\n }\n return copy;\n }",
"public LinkedList<AnyType> clone() {\n LinkedList<AnyType> clone... | [
"0.7945154",
"0.7731422",
"0.7299933",
"0.724933",
"0.71517044",
"0.7149563",
"0.6779095",
"0.67764056",
"0.6732401",
"0.6685875",
"0.6654457",
"0.6627209",
"0.6614034",
"0.6605552",
"0.6523114",
"0.65183616",
"0.64956033",
"0.6493239",
"0.64914215",
"0.648795",
"0.6437518",
... | 0.79333496 | 1 |
TODO Support domain creation as well. Currently they are written out to file. | @Create
public void create()
{
log.debug("Creating users and mailboxes");
//MailboxService ms = MMJMXUtil.getMBean("meldware.mail:type=MailboxManager,name=MailboxManager", MailboxService.class);
AdminTool at = MMJMXUtil.getMBean("meldware.mail:type=MailServices,name=AdminTool", A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void writeFile(){\n try{\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n Files.write(contactsListPath, contactList);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n //refreshes list of Contact objs\n fileToC... | [
"0.5963375",
"0.5725055",
"0.56554645",
"0.55058444",
"0.55038023",
"0.5494744",
"0.5357667",
"0.534708",
"0.534708",
"0.53296727",
"0.52845025",
"0.5279709",
"0.52451295",
"0.5238177",
"0.5215747",
"0.52040005",
"0.51935524",
"0.5179592",
"0.51582915",
"0.51400983",
"0.51352... | 0.0 | -1 |
/ HashMap timestampCurrentTime = new HashMap(); timestampCurrentTime.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP); | public void addSystemGeneratedMessage(Chat receiverChat)
{
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
String lastUpdateDay = Utils.SIMPLE_DATE_ONLY_FORMAT.format(
new Date(mChatDetails.getTimestampLastUpdateLong()));
String today = Utils.SIMPLE_DATE_ON... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Date getTimestamp()\n{\n return time_stamp;\n}",
"public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }",
"private void updateChatDetails(){\n Map<String,Object> chatAddMap = new HashMap<>();\n chatAddMap.put(\"seen\",... | [
"0.6080848",
"0.6032054",
"0.593971",
"0.5869198",
"0.5757741",
"0.5714896",
"0.56744754",
"0.56560564",
"0.5594048",
"0.55174637",
"0.55090445",
"0.54958165",
"0.5495733",
"0.5493034",
"0.5471996",
"0.5471996",
"0.5471996",
"0.5459755",
"0.5456753",
"0.5455116",
"0.5445465",... | 0.0 | -1 |
cfConfig.addConnectionFactory(new TwitterConnectionFactory( env.getProperty("twitter.consumer.key"), env.getProperty("twitter.consumer.secret") )); | @Override
public void addConnectionFactories(ConnectionFactoryConfigurer cfConfig, Environment env) {
FacebookConnectionFactory fcf = new FacebookConnectionFactory(
"1487938974801143",
"b53bfee1bbc43715311e12e109d90621"
);
fcf.setScope("email");
cfCon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void twitterConfiguration() {\n ConfigurationBuilder cb = new ConfigurationBuilder();\n\n cb.setDebugEnabled(true);\n//Cl\\u00e9 3\n cb.setOAuthConsumerKey(\"bHAfupgNYRVoSC27eHRqg\");\n cb.setOAuthConsumerSecret(\"GgxgSLDO8Rqaoctl2cPlPct95dNtq31rPF8HHNmi9g\");\n cb.setOAuthAccessToken(\"1... | [
"0.69795257",
"0.6619648",
"0.6151183",
"0.61357963",
"0.6078695",
"0.60750014",
"0.60375434",
"0.5881991",
"0.57777643",
"0.57348704",
"0.56904906",
"0.5675224",
"0.566754",
"0.5568276",
"0.55479455",
"0.55064994",
"0.5490433",
"0.54891676",
"0.5433998",
"0.54222506",
"0.542... | 0.60287786 | 7 |
Gets the tree block type this loot is for | public TreeBlockType getTreeBlockType() {
return this.treeBlockType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BlockType getType()\n {\n return blockType;\n }",
"private String getAltBlockParentType() {\n\t\tRegSetProperties parent = getRegSetParent();\n\t\tString blockBase = ((parent == null) || parent.getBaseName().isEmpty())? \"\" : \"_\" + parent.getBaseName();\n\t\treturn altModelRootType + block... | [
"0.7253829",
"0.6524635",
"0.63274497",
"0.62708575",
"0.6160998",
"0.59682596",
"0.59517187",
"0.5827716",
"0.5733596",
"0.5729632",
"0.5675622",
"0.5652605",
"0.5624966",
"0.5612179",
"0.5593177",
"0.5588441",
"0.5554356",
"0.5541804",
"0.5531399",
"0.55279666",
"0.5506153"... | 0.7461195 | 0 |
Checks if this TreeLoot has an item to drop | public boolean hasItem() {
return this.item != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasBonusItemDrop();",
"public boolean dropItem(Items item)\n {\n boolean itemDropped = false;\n if(haveItem(item) && !currentRoom.haveItem(item)){ //if item in inventory not room\n \n Inventory.remove(item.getName(), item);\n //currentRoom.removeI... | [
"0.74774843",
"0.7433344",
"0.7129289",
"0.69716054",
"0.67437756",
"0.67248577",
"0.67008144",
"0.66207445",
"0.658599",
"0.6557589",
"0.65189046",
"0.64882493",
"0.6479466",
"0.6466411",
"0.64329433",
"0.6405725",
"0.6403528",
"0.6390767",
"0.6354377",
"0.6330384",
"0.63072... | 0.6483527 | 12 |
Gets the item that this tree loot can drop | public ItemStack getItem() {
return this.item;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Item getDropItem() {\r\n\t\treturn SorceryItems.goldfeather;\r\n\t}",
"public Item getItemDropped(int meta, Random p_149650_2_, int p_149650_3_)\n\t {\n\t \treturn MGHouseItems.item_boat_door;\n\t }",
"private ItemStack getToolWhenHasnt() {\r\n\t\treturn this.item;\r\n\t}",
"ItemStack getI... | [
"0.7154139",
"0.69864815",
"0.6818081",
"0.66561824",
"0.649845",
"0.64708585",
"0.6426403",
"0.63683075",
"0.63675046",
"0.63610685",
"0.6289768",
"0.6289569",
"0.62569183",
"0.6241251",
"0.6226512",
"0.62246186",
"0.6218883",
"0.6210269",
"0.6170822",
"0.61421084",
"0.61295... | 0.6454899 | 6 |
Checks if this TreeLoot has a command to run | public boolean hasCommand() {
return this.command != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasCommand();",
"boolean hasCommand();",
"boolean hasActionCommand();",
"public boolean isCommand()\n {\n return aCommands.containsKey(this);\n }",
"ACommand CheckCommand(String NameCommand);",
"public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\... | [
"0.80377996",
"0.80377996",
"0.7019504",
"0.69804144",
"0.6883121",
"0.6844303",
"0.6830505",
"0.6822702",
"0.67904884",
"0.6759643",
"0.6756523",
"0.66404265",
"0.6569574",
"0.6528492",
"0.6482391",
"0.6454681",
"0.6440347",
"0.6418991",
"0.6411997",
"0.6193081",
"0.6176538"... | 0.7680854 | 2 |
Gets the command that this tree loot can run | public String getCommand() {
return this.command;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getCommand();",
"public String getCommand(){\n return getCommand(null);\n }",
"String getCommand();",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public int getCommand() {\n return command_;\n }",
"public int getCommand() {\n return comman... | [
"0.734601",
"0.73040783",
"0.71693695",
"0.6976397",
"0.69709283",
"0.6926192",
"0.6918812",
"0.68952036",
"0.68952036",
"0.68825006",
"0.6868909",
"0.6863418",
"0.68625635",
"0.6858839",
"0.67946935",
"0.67436266",
"0.6720129",
"0.6688315",
"0.6675421",
"0.6666514",
"0.66472... | 0.67894113 | 15 |
Gets the percent chance this tree loot will drop | public double getChance() {
return this.chance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getDropChance() {\n return _dropChance;\n }",
"public int dropPotion() {\r\n\t\t// If the random number generated is larger than the \r\n\t\t// drop chance, at least one health potion is dropped\r\n\t\tif (rnd.nextInt(100) < HEALTH_POTION_DROP_CHANCE) {\r\n\t\t\treturn rnd.nextInt(MAX_NO_... | [
"0.713609",
"0.709046",
"0.67793435",
"0.6732345",
"0.65341455",
"0.64511657",
"0.64046276",
"0.63109964",
"0.6281372",
"0.6191183",
"0.6170289",
"0.6136488",
"0.61349916",
"0.6129852",
"0.6108258",
"0.6080075",
"0.6065863",
"0.60590804",
"0.6057844",
"0.60534734",
"0.6052457... | 0.67379266 | 3 |
get cardId and customerId from cards where card number = ? | public String getCardIdInfo(String pCardNumber){
TypedQuery<Long> getCardIdQuery = em.createQuery("SELECT c.cardId FROM Cards c WHERE c.cardNumber = :vCardNumber ", Long.class);
getCardIdQuery.setParameter("vCardNumber", pCardNumber);
// Long cardId = getCardIdQuery.getSingleResult();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Card findByCardData(String number, long userId) throws PersistenceCoreException;",
"CardDto getCustomerCardDetails(Long cardId) throws EOTException;",
"Card selectByPrimaryKey(String card);",
"Card getCard(UUID cardId);",
"public List<Card> getcardbyuser(String user_id);",
"CompletableFuture<BonusCustome... | [
"0.69586974",
"0.6878969",
"0.67941505",
"0.6687588",
"0.66617113",
"0.65870285",
"0.62600005",
"0.625126",
"0.62162536",
"0.6123422",
"0.6119034",
"0.6027759",
"0.5968975",
"0.5965062",
"0.595435",
"0.5944248",
"0.5925753",
"0.591442",
"0.591027",
"0.5854301",
"0.57946134",
... | 0.69548523 | 1 |
Grid with 3 busses in this order: Storage, Load, DG: | private Grid makeGrid()
{
Grid grid = Grid.grid().
Bus("1").
SlackSource("Slack", BASE_VOLTAGE, 0, 0, 0).
Line("1-2", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).
Bus("2").
ControllableDemand("S").
Line("2-3", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).
Bus("3").
Load("... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initGrids() {\n grid0 = new Grid(100f, 50f, 100f, 0);\n grid1 = new Grid(100f, 150f, 100f, 1);\n grid2 = new Grid(100f, 250f, 100f, 2);\n grid3 = new Grid(100f, 350f, 100f, 3);\n grid4 = new Grid(100f, 50f, 200f, 4);\n grid5 = new Grid(100f, 150f, 200f, 5);\n ... | [
"0.6126646",
"0.58131236",
"0.5703804",
"0.56148523",
"0.5567221",
"0.5526336",
"0.5518174",
"0.5495596",
"0.5481066",
"0.5478687",
"0.5455962",
"0.5449946",
"0.54325825",
"0.5427617",
"0.542158",
"0.5414958",
"0.53926283",
"0.53861815",
"0.53751653",
"0.535705",
"0.5338006",... | 0.6189291 | 0 |
Creates a new instance of the Pattern calls. | private Pattern(String name, int minimumApplications, int maximumApplications, double applicationChance, PatternFreeze freeze, ArrayList<Sequence> sequences) {
this.name = name;
this.minimumApplications = minimumApplications;
this.maximumApplications = maximumApplications;
this.applicationChance ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private PatternBuilder() { }",
"abstract UrlPatternMatcher create( String pattern );",
"public static void main(String [] pOptions) {\n \n PatternCreator myPatternCreator = new PatternCreator();\n \n }",
"protected UrlPattern() {\n }",
"private JBurgPatternMatcher()\n\t{\n\t}",
"public Patte... | [
"0.7357269",
"0.66743815",
"0.66011274",
"0.65086883",
"0.6504032",
"0.6364752",
"0.63469183",
"0.6296615",
"0.6253608",
"0.6245032",
"0.62394565",
"0.62294286",
"0.62102246",
"0.6204423",
"0.6184682",
"0.6156992",
"0.61310333",
"0.6085285",
"0.6082543",
"0.58907026",
"0.5884... | 0.6012889 | 19 |
Deserialise a Pattern object from a JSON object. | public static Pattern fromJSON(JSONObject patternJson) {
String name = patternJson.getString("name");
Integer minimumApplications = patternJson.optInt("min", 1);
Integer maximumApplications = patternJson.optInt("max", 1);
double applicationChance = patternJson.optDouble("chance", 1);
Patter... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;",
"public static TriplePattern createTriplePatternFromJSON(final JSONObject triplePatternJson) throws JSONException {\n\t\tfinal JSONArray itemsJson = (JSONArray) triplePatternJson.get(\"triple_pattern\"... | [
"0.6083288",
"0.5892257",
"0.5710681",
"0.560676",
"0.5451778",
"0.5310434",
"0.5263625",
"0.52367896",
"0.5208658",
"0.51863194",
"0.51826894",
"0.5172426",
"0.5164404",
"0.5156431",
"0.51290023",
"0.51252854",
"0.51175845",
"0.50948185",
"0.507083",
"0.5052398",
"0.5049982"... | 0.7420811 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
ArrayList<String>list=new ArrayList<String>(Arrays.asList("c","c++","java","python","html"));
StringJoiner sj=new StringJoiner(",","{","}");
list.forEach(e->sj.add(e));
System.out.println(sj);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Adds the specified observer to the list of observers. If it is already registered, it is not added a second time. | @Override
public void addObserver(Observer observer) {
observers.add(observer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void addObserver(IObserver observer) {\n observersList.add(observer);\n }",
"public void registerObserver(Observer observer) {\n\t\tobservers.add(observer);\n\t}",
"public void addObserver(IObserver observer)\n {\n observers.add(observer);\n }",
"@Override\n pu... | [
"0.8088563",
"0.7851476",
"0.77975476",
"0.77758014",
"0.7746911",
"0.77428806",
"0.7634079",
"0.75564975",
"0.7515778",
"0.7504118",
"0.7414383",
"0.73479086",
"0.73357934",
"0.73299485",
"0.7323253",
"0.7302372",
"0.72825474",
"0.7268632",
"0.7265339",
"0.7245229",
"0.72354... | 0.78998286 | 1 |
Removes the specified observer from the list of observers. Passing null won't do anything. | @Override
public synchronized void deleteObserver(Observer observer) {
observers.remove(observer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removerObservador (Observer observer){\n list.remove(observer);\n }",
"public void removeObserver(Observer observer);",
"@Override\n public void removeObserver(Observer o) {\n list.remove(o);\n }",
"public void removeObserver(Observer observer) {\r\n this.observers.r... | [
"0.83592904",
"0.82501674",
"0.810916",
"0.79970884",
"0.7903703",
"0.78430426",
"0.7813682",
"0.77579665",
"0.77512354",
"0.7745809",
"0.7704116",
"0.7652854",
"0.7647084",
"0.7625331",
"0.7498719",
"0.7452209",
"0.7349898",
"0.7295239",
"0.7292708",
"0.72357833",
"0.7195154... | 0.76336527 | 13 |
Returns Boolean on whether photo download setting is set. This setting determines whether the photos of foreign trinkets are automatically downloaded to the device. If false, the user must manually select which photos to download. | public Boolean getArePhotosDownloadable() {
return arePhotosDownloadable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getSupportsDownloads() \n {\n return true; \n }",
"public boolean isDownloadsEnabled() {\n return this.downloadsEnabled;\n }",
"public void setArePhotosDownloadable(Boolean arePhotosDownloadable) {\n this.arePhotosDownloadable = arePhotosDownloadable;\n }... | [
"0.65873814",
"0.6428897",
"0.62278867",
"0.6179358",
"0.61452186",
"0.6138536",
"0.5773507",
"0.5724175",
"0.5709962",
"0.5644067",
"0.5592811",
"0.55254024",
"0.55216485",
"0.5497175",
"0.5487331",
"0.5486597",
"0.54865813",
"0.5476187",
"0.54047",
"0.53772575",
"0.5371324"... | 0.724091 | 0 |
Set whether photos are downloadable. This setting determines whether the photos of foreign trinkets are automatically downloaded to the device. If false, the user must manually select which photos to download. | public void setArePhotosDownloadable(Boolean arePhotosDownloadable) {
this.arePhotosDownloadable = arePhotosDownloadable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getArePhotosDownloadable() {\n return arePhotosDownloadable;\n }",
"public boolean getSupportsDownloads() \n {\n return true; \n }",
"public boolean isDownloadsEnabled() {\n return this.downloadsEnabled;\n }",
"@Override\n public boolean isDownloadab... | [
"0.74227613",
"0.62077844",
"0.61817986",
"0.6060041",
"0.5761109",
"0.56167173",
"0.5603724",
"0.5593776",
"0.5564832",
"0.54888344",
"0.5442827",
"0.5419417",
"0.54008543",
"0.5385398",
"0.53613794",
"0.5355114",
"0.5354473",
"0.534216",
"0.52912545",
"0.52795136",
"0.52553... | 0.7735694 | 0 |
Sets user's ContactInfo instance. This is a container for all the user's contact information, including their name, address, city, postal code, and phone number. All these fields are optional so any field in ContactInfo may be an empty string. | public void setContactInfo(ContactInfo contactInfo) {
this.contactInfo = contactInfo;
this.needToSave = Boolean.TRUE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setContactInfo(ContactInfo contactInfo) {\n\n this.contactInfo = contactInfo;\n }",
"public void setUserContact(String userContact) {\r\n this.userContact = userContact;\r\n }",
"public void setContactInfo(ContactInfo[] contactInfo) {\n this.contactInfo = contactInfo;\n ... | [
"0.73098373",
"0.6500572",
"0.6458091",
"0.6191526",
"0.6172259",
"0.6113036",
"0.60469073",
"0.5961182",
"0.5922015",
"0.5895154",
"0.5845742",
"0.5818218",
"0.5814811",
"0.5781816",
"0.5781728",
"0.5760111",
"0.56480056",
"0.56480056",
"0.5641422",
"0.56162155",
"0.5552965"... | 0.70139784 | 1 |
Returns user's username. The username is exactly the same as the user's email address, but in the future this could be changed to allow users to select unique usernames for themselves to use in the app. | public String getUsername() {
return this.username;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUsername() {\n Object ref = username_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n ... | [
"0.7772313",
"0.7769212",
"0.7728794",
"0.77235204",
"0.7721544",
"0.7721544",
"0.7721544",
"0.7703415",
"0.76997775",
"0.7687764",
"0.7683911",
"0.7683911",
"0.7683911",
"0.7683911",
"0.7675096",
"0.76621765",
"0.76621765",
"0.76621765",
"0.7645191",
"0.7645191",
"0.76269597... | 0.0 | -1 |
Sets user's username. The username is exactly the same as the user's email address, but in the future this could be changed to allow users to select unique usernames for themselves to use in the app. | public void setUsername(String username) {
this.username = username;
this.email = username;
this.needToSave = Boolean.TRUE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserName(String value) {\n setAttributeInternal(USERNAME, value);\n }",
"public final void setUsername(final String value) {\n username = value;\n }",
"public void setUserName(String username) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext... | [
"0.7810102",
"0.7642319",
"0.76337737",
"0.7606003",
"0.75577307",
"0.7545256",
"0.75269854",
"0.74072415",
"0.738008",
"0.7366137",
"0.7356215",
"0.7356215",
"0.73353505",
"0.73231125",
"0.731592",
"0.7302986",
"0.7273803",
"0.7266588",
"0.7266588",
"0.7227316",
"0.72169363"... | 0.71653074 | 29 |
TODO Autogenerated method stub | public static void main(String[] args) {
String s = "Mahesh";
char[] arr = s.toCharArray();
int count = 0;
for(char s1: arr) {
count++;
}
System.out.println(count);
int index = 0;
try {
while(true) {
s.charAt(index);
index++;
}
} catch(Exception e) {
}
Syste... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Updates sthe ACL mode | public void changeACLMode(boolean b) {
if (b)
getModelObject().setPropertyValue("keyAccessMode", "0");
else
getModelObject().setPropertyValue("keyAccessMode", "1");
sectionAuthor.setVisible(b);
sectionReader.setVisible(b);
// clear and backup values?
if (!b) {
// backup
getModelObject().setPro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UpdateACLResult updateACL(UpdateACLRequest updateACLRequest);",
"public void setAcl(AccessControlList acl)\n {\n this.acl = acl;\n }",
"public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }",
"public void setAccessControlList(AccessControlList acl) {\n\t\tthis.acl... | [
"0.68595177",
"0.62357104",
"0.6083923",
"0.59169203",
"0.5643053",
"0.56128",
"0.55324715",
"0.55017465",
"0.54923916",
"0.5475203",
"0.545486",
"0.5438847",
"0.543849",
"0.5431249",
"0.5429785",
"0.5397668",
"0.5328426",
"0.5250121",
"0.52316856",
"0.52231777",
"0.5207248",... | 0.6580235 | 1 |
This Method checks if the fieldMapings form the profile configiguration have changed | public void setInput(IWorkbenchPart part, ISelection selection) {
super.setInput(part, selection);
if (this.getModelObject() != null) {
// update current mode in ui
Object scurrentMode = getModelObject().getPropertyValue(
"keyAccessMode");
boolean bCurrentMode = (scurrentMode == null || "0"
.e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean checkAndSetFieldmapProperties(final UserLabelPrinting userLabelPrinting, final FieldMapInfo fieldMapInfoDetail) {\n\t\tif (!fieldMapInfoDetail.getDatasetsWithFieldMap().isEmpty()) {\n\t\t\tfor (final FieldMapDatasetInfo dataset : fieldMapInfoDetail.getDatasetsWithFieldMap()) {\n\t\t\t\t... | [
"0.65494597",
"0.5777049",
"0.5665313",
"0.56646293",
"0.56468356",
"0.5541099",
"0.55342263",
"0.5499458",
"0.5482334",
"0.53907657",
"0.5346388",
"0.53447795",
"0.5338017",
"0.53217465",
"0.53013885",
"0.5267568",
"0.5218164",
"0.51854414",
"0.51732975",
"0.5166551",
"0.516... | 0.0 | -1 |
Creates a new instance of CPRCommand | public CPRCommand()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Command createCommand();",
"Command createCommandWith(CommandCreator creator);",
"private Command createPushCommand() {\n\t\treturn new PushCommand();\n\t}",
"String createCommand(String commandType, AttributeList properties);",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\... | [
"0.6204984",
"0.60909027",
"0.58209926",
"0.5713895",
"0.56980497",
"0.56109875",
"0.5585124",
"0.55584264",
"0.55284554",
"0.5501492",
"0.54471815",
"0.53670317",
"0.53402764",
"0.530308",
"0.52971506",
"0.52842915",
"0.52335787",
"0.52145284",
"0.5178408",
"0.51771533",
"0.... | 0.80548054 | 0 |
/ Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int T = sc.nextInt();
int[] arr = new int[N];
int[][] cases = new int[T][2];
for(int i = 0; i < N; i++){
arr[i] = sc.nextInt();
}
for(int i = 0;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSolution s = new Solution();\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in... | [
"0.7528496",
"0.7305021",
"0.7261396",
"0.7237545",
"0.7179005",
"0.71753466",
"0.70213306",
"0.70213306",
"0.6892462",
"0.6870245",
"0.68566906",
"0.68258697",
"0.68223757",
"0.68110216",
"0.6809668",
"0.68073076",
"0.67844677",
"0.677068",
"0.6757758",
"0.675465",
"0.675278... | 0.0 | -1 |
Hinweis: In der wKomponente der WorldKoordinaten steht der Abstand des Punktes zur Kamera | public Texture getWorldTexture() {
return frameBuffer.getTexture(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void world() {\n super.world();\n }",
"@Override\n \t\t\t\tpublic void doWorldPerspective() {\n \n \t\t\t\t}",
"public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMed... | [
"0.6402737",
"0.6172974",
"0.6163578",
"0.61321133",
"0.6131819",
"0.60618716",
"0.60232496",
"0.6018882",
"0.6018113",
"0.59974307",
"0.59870017",
"0.5986358",
"0.5969005",
"0.59682447",
"0.5904885",
"0.5889422",
"0.5880878",
"0.5870225",
"0.5869678",
"0.5839443",
"0.583236"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Iterator<ItemT> iterator() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Creates a new bundle reference based on a bundle reference with default start level and start options. | public ScannedFileBundle( final String reference,
final Integer defaultStartLevel,
final Boolean defaultShouldStart,
final Boolean defaultShouldUpdate )
throws MalformedURLException
{
this( reference );
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void startBundle(Bundle bundle) {\n mBundle = bundle;\n }",
"public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path... | [
"0.5580805",
"0.5578207",
"0.5561142",
"0.512188",
"0.51102865",
"0.5082184",
"0.49836293",
"0.4975672",
"0.49490595",
"0.49229726",
"0.48875374",
"0.48630905",
"0.48267853",
"0.47966588",
"0.4783524",
"0.4776761",
"0.47763765",
"0.47644597",
"0.47564575",
"0.47551674",
"0.47... | 0.5302076 | 3 |
Parses the options. If the value is not one of the syntax options will throw an exception. | private void parseSegment( final String segment )
throws MalformedURLException
{
if( shouldStart() == null && segment.equalsIgnoreCase( ServiceConstants.OPTION_NO_START ) )
{
setShouldStart( false );
return;
}
if( shouldUpdate() == null && segment.equa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void parse(String[] args) throws ParseException {\r\n\r\n options.addOption(configFileOption);\r\n CommandLineParser parser = new GnuParser();\r\n\r\n CommandLine line = parser.parse(options, args);\r\n if (line.hasOption(\"f\")) {\r\n configFile = line.getOptionValue(... | [
"0.5733261",
"0.57027",
"0.5693247",
"0.565488",
"0.5615387",
"0.55850023",
"0.5580395",
"0.5502955",
"0.5469907",
"0.5467369",
"0.54398316",
"0.54369295",
"0.5418827",
"0.54043746",
"0.53689295",
"0.5366716",
"0.5334158",
"0.53165287",
"0.52846533",
"0.52717876",
"0.52293694... | 0.5363118 | 16 |
Created by eggdog on 2017/6/11. | public interface PromotionService {
// 保存宣传任务
void save(Promotion promotion);
// 分页查询
Page<Promotion> findPageData(Pageable pageable);
//根据Page和rows 返回分页数据
@Path("/pageQuery")
@GET
@Produces({"application/xml","application/json"})
PageBean<Promotion> findPageData(
@Query... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.61370736",
"0.6040991",
"0.584301",
"0.5837907",
"0.57666606",
"0.57666606",
"0.5737893",
"0.57160753",
"0.5715067",
"0.5684752",
"0.5684748",
"0.56314313",
"0.5630579",
"0.5626296",
"0.56229573",
"0.5620437",
"0.5612198",
"0.5605675",
"0.5604262",
"0.5602397",
"0.5602181"... | 0.0 | -1 |
Returns all of the package file metadata attribute sets | public Map<String, AttributeSet> getMetadata(Package pkg); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Object> getAllMetadata();",
"Set<String> getMetadataKeys();",
"public NestedSet<Artifact> getInstrumentationMetadataFiles() {\n return instrumentationMetadataFiles;\n }",
"public HashSet<String> getUsefulAttributes() {\n\t\t \n\t\tHashSet<String> attr = new HashSet<>();\n\t\tQuery firstQ = th... | [
"0.66155076",
"0.619355",
"0.61895895",
"0.61691904",
"0.6082747",
"0.60226697",
"0.6014463",
"0.6004185",
"0.5998011",
"0.59451526",
"0.5908225",
"0.58935916",
"0.58826643",
"0.5851789",
"0.58472604",
"0.5831404",
"0.58306515",
"0.5805767",
"0.57896817",
"0.5769889",
"0.5766... | 0.7038449 | 0 |
Returns a list of all file objects from the package. | public List<String> getFiles(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<FileObjects> getFiles() {\n\n\t\t\treturn files;\n\t\t}",
"public List<File> findAll() {\n\t\treturn files;\n\t}",
"public List<File> getFiles();",
"public abstract List<LocalFile> getAllFiles();",
"public File[] listFiles() {\n\n\t\tFileFilter Ff = f -> true;\n\t\treturn this.listFiles(Ff);\n\... | [
"0.744151",
"0.7414473",
"0.74075174",
"0.72934145",
"0.71825475",
"0.70309824",
"0.698588",
"0.69299424",
"0.6884978",
"0.6838777",
"0.68237144",
"0.67112094",
"0.6692416",
"0.6692399",
"0.66907555",
"0.6670073",
"0.6624405",
"0.6621548",
"0.6611164",
"0.6599015",
"0.6576616... | 0.6969367 | 7 |
Lists all the business objects contained in the package. | public List<BusinessObject> getItems(Package pkg); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.eclipse.stardust.engine.api.query.BusinessObjects\n getAllBusinessObjects(\n org.eclipse.stardust.engine.api.query.BusinessObjectQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"@Override\n\tpublic List<EhmoPackage> fetchAll() {\n\t\treturn ehmoPack... | [
"0.7099963",
"0.650815",
"0.64510393",
"0.6402193",
"0.63447136",
"0.6304005",
"0.62888193",
"0.62562597",
"0.62226397",
"0.61822575",
"0.617956",
"0.61747384",
"0.61589324",
"0.6081676",
"0.60735",
"0.6048757",
"0.60201496",
"0.6007874",
"0.5997156",
"0.59900975",
"0.5986867... | 0.66423947 | 1 |
Returns the specified item from the package | public BusinessObject getItem(Package pkg, String id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object get(String itemName);",
"CatalogItem getCatalogItemByName(String name);",
"public Object getItem(Node itemNode) throws XmlRecipeException;",
"public Item getItem(long idItem) throws ItemNotFound;",
"ItemStack getItem();",
"io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);",... | [
"0.7435379",
"0.68484116",
"0.6791747",
"0.67488986",
"0.6690005",
"0.6635061",
"0.66189295",
"0.6592965",
"0.65172136",
"0.64843035",
"0.64594394",
"0.64535415",
"0.64534634",
"0.64497614",
"0.6430726",
"0.64244676",
"0.639016",
"0.63650495",
"0.63619196",
"0.6358131",
"0.63... | 0.71537435 | 1 |
Puts the business objects into a package. | public void putObjectsIntoPackage(Package pkg, List<BusinessObject> objects); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tspringProjectEClass = createEClass(SPRING_PROJECT);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__BASE_PACKAGE);\r\n\t\tcreateEAttribute(spring... | [
"0.6098653",
"0.6005901",
"0.5983608",
"0.59388834",
"0.5832642",
"0.58072835",
"0.5802966",
"0.57349277",
"0.5725486",
"0.57187253",
"0.5716119",
"0.5689761",
"0.56809705",
"0.56600493",
"0.5642961",
"0.5642813",
"0.563698",
"0.5627384",
"0.5610299",
"0.5604108",
"0.5602591"... | 0.8305087 | 0 |
This method is begining program. | public static void main(String[] args) {
/**
* Here we create an instance of CheckNum class.
*/
//CheckNum checkNum = new CheckNum();
if (CheckNum.isEven(8)) {
System.out.println("8 is " + " even");
}
if (CheckNum.isEven(7)) {
System.ou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}",
"private void start() {\n\n\t}",
"public void runProgram() {\n\n\t\tSystem.out.println(\"\\n Time to start the machine... \\n\");\n\n\t\tpress.pressOlive(myOlives);\n\n\t\tSystem.out.println(\"Total amou... | [
"0.7659029",
"0.74241644",
"0.7382567",
"0.7340836",
"0.7258669",
"0.7211329",
"0.7211329",
"0.72066957",
"0.7167799",
"0.71444076",
"0.7091501",
"0.70834136",
"0.704085",
"0.700142",
"0.70006365",
"0.6994089",
"0.6942587",
"0.6935932",
"0.6927485",
"0.68716663",
"0.6858881",... | 0.0 | -1 |
Created by WQH on 2016/8/6 15:25. | public interface OnSearch {
void onSearch(String newText);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"public void mo38117a() {\n }",
"public void mo6081a() {\n }",
"public void mo4359a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n ... | [
"0.6054823",
"0.59909433",
"0.5962618",
"0.591543",
"0.5902832",
"0.59013724",
"0.59013724",
"0.59013724",
"0.59013724",
"0.59013724",
"0.59013724",
"0.59013724",
"0.5893019",
"0.5784137",
"0.5772003",
"0.57503957",
"0.57417846",
"0.56981325",
"0.5695878",
"0.5678062",
"0.567... | 0.0 | -1 |
difere no metodo sobrescrito | @Test
public void watermarkingBook() throws Exception{
System.out.println(new Gson().toJson(new Book("123","Title1","Author Author", Topic.SCIENCE)));
//sending a request for watermarking a book
ResponseEntity<String> postBook = restTemplate.postForEntity(baseUrl + "/book", new Book("123","Title1","Author Auth... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho in... | [
"0.67545485",
"0.6605202",
"0.6408617",
"0.6271179",
"0.6228729",
"0.61918557",
"0.60971063",
"0.6069615",
"0.6059776",
"0.60245967",
"0.60237306",
"0.5975276",
"0.59643877",
"0.5959728",
"0.5958464",
"0.5938496",
"0.5916812",
"0.5903584",
"0.58981466",
"0.5895166",
"0.588468... | 0.0 | -1 |
sending a request for watermarking a journal | @Test
public void watermarkingJournal() throws Exception{
ResponseEntity<String> postJournal = restTemplate.postForEntity(baseUrl + "/journal", new Journal("123","Title1","Author Author"), String.class);
//getting the ticket used for checking the status of processing
String ticket = postJournal.getBody();
S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void saveRequestToFile(MovilizerRequest request, Path filePath);",
"public void savePendingRequest(PendingRequest pendingRequest);",
"HrDocumentRequest save(HrDocumentRequest hrDocumentRequest);",
"void save(JournalPage page);",
"private void publishQueston() {\n JSONObject job = new JSONObject();\n... | [
"0.51714826",
"0.51332045",
"0.5057814",
"0.5050485",
"0.5042535",
"0.49954483",
"0.48883438",
"0.4842861",
"0.48364925",
"0.48254982",
"0.48244837",
"0.47510535",
"0.47498375",
"0.47182316",
"0.47150874",
"0.46966892",
"0.46864903",
"0.46798405",
"0.46548527",
"0.4649458",
"... | 0.59647477 | 0 |
retrieves all database entries | public static List<Sighting> all() {
String sql = "SELECT id, name, location, rangerName FROM sightings";
try(Connection con = DB.sql2o.open()) {
return con.createQuery(sql).executeAndFetch(Sighting.class);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }",
"List<T> getAll() throws PersistException;",
"public Collection<T> getAll() throws DaoException;",
"@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}",
"@Overr... | [
"0.71188986",
"0.7046174",
"0.6991641",
"0.69843817",
"0.69842607",
"0.69276357",
"0.69169563",
"0.688897",
"0.68258184",
"0.6822952",
"0.68082076",
"0.6801282",
"0.6798674",
"0.676016",
"0.66887283",
"0.66885436",
"0.66879815",
"0.6683901",
"0.6593815",
"0.65891373",
"0.6587... | 0.0 | -1 |
finds a Sighting with a specified id | public static Sighting find(int id) {
try(Connection con = DB.sql2o.open()) {
String sql = "SELECT * FROM sightings where id=:id";
Sighting sighting = con.createQuery(sql)
.addParameter("id", id)
.executeAndFetchFirst(Sighting.class);
return sighting;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Airplane find(int id);",
"public HexModel searchByID(String id) {\n\t\tfor (int y = 0; y < grid[0].length; y++) {\r\n\t\t\tfor (int x = 0; x < grid[y].length; x++) {\r\n\t\t\t\tif (grid[y][x] != null && grid[y][x].getId().equals(id))\r\n\t\t\t\t\treturn grid[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tretur... | [
"0.6082289",
"0.59991133",
"0.5938149",
"0.59183",
"0.59158",
"0.5914373",
"0.59054756",
"0.58976626",
"0.5888095",
"0.5886792",
"0.5820037",
"0.58181715",
"0.58111703",
"0.5802968",
"0.5789611",
"0.5788457",
"0.57785684",
"0.5754158",
"0.5747972",
"0.57317686",
"0.5702509",
... | 0.8250445 | 0 |
deletes a Sighting with a specified id | public void delete() {
try(Connection con = DB.sql2o.open()) {
String sql = "DELETE FROM sightings where id=:id";
con.createQuery(sql)
.addParameter("id", this.id)
.executeUpdate();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void deleteSighting(int sightingId) {\n jdbcTemplate.update(SQL_DELETE_HVSIGHTING,\n sightingId);\n // delete sighting\n jdbcTemplate.update(SQL_DELETE_SIGHTING,\n sightingId);\n }",
"void deleteById(String id);",
"void deleteById(Stri... | [
"0.77468157",
"0.69474524",
"0.69474524",
"0.69474524",
"0.69474524",
"0.69474524",
"0.69474524",
"0.69474524",
"0.69474524",
"0.69474524",
"0.69474524",
"0.6939953",
"0.6939953",
"0.6939953",
"0.6939953",
"0.6939953",
"0.6925713",
"0.68596977",
"0.6819298",
"0.6819298",
"0.6... | 0.794779 | 0 |
retrieves all animals associated with this sightings | public List<Object> getAnimals() {
List<Object> allAnimals = new ArrayList<Object>();
try(Connection con = DB.sql2o.open()) {
String sqlAnimal = "SELECT * FROM animals WHERE sightingId=:id AND type='notEndangered';";
List<Animal> animal = con.createQuery(sqlAnimal)
.addParameter("id", ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Animal> getAllAnimals() {\n\t\treturn dao.findAll();\r\n\t}",
"public List<Animal> listAnimals() {\n\t\tList<Animal> theAnimals = new ArrayList<Animal>();\n\t\tint contador = 0;\n\t\ttry {\t\n\t\t\tString sql = \"SELECT * FROM animals \"; \t\t\t\n\t\t\tPreparedStatement prep = JDBCMana... | [
"0.7355814",
"0.6474538",
"0.64085233",
"0.63761395",
"0.62898713",
"0.61728734",
"0.59058654",
"0.5904955",
"0.58822423",
"0.58795965",
"0.58459276",
"0.5749884",
"0.5699149",
"0.56863636",
"0.56442195",
"0.5621832",
"0.5566966",
"0.5524779",
"0.5477525",
"0.546162",
"0.5454... | 0.7427772 | 0 |
Testing with some START_LOSS scenarios. Delete one base of start codon. | @Test
public void testForwardStartLoss() throws InvalidGenomeChange {
GenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640669, PositionType.ZERO_BASED),
"ACG", "CGTT");
Annotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();
Assert.assertEqua... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void handleNonFrameShiftCaseStartsWithNoStopCodon() {\n\t\t\tif (aaChange.getPos() == 0) {\n\t\t\t\t// The mutation affects the start codon, is start loss (in the case of keeping the start codon\n\t\t\t\t// intact, we would have jumped into a shifted duplication case earlier.\n\t\t\t\tproteinChange = Prote... | [
"0.5976256",
"0.58585185",
"0.5528335",
"0.5477405",
"0.54588443",
"0.5398297",
"0.5386045",
"0.5346109",
"0.5346109",
"0.5311816",
"0.5074981",
"0.50669974",
"0.5065341",
"0.5035637",
"0.5027973",
"0.5011936",
"0.5002448",
"0.49971768",
"0.4997044",
"0.49905077",
"0.49643108... | 0.640954 | 0 |
Replace bases of stop codon by 4 nucleotides, frameshift case. | @Test
public void testForwardStopLoss() throws InvalidGenomeChange {
GenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6649271, PositionType.ZERO_BASED),
"ACG", "CGTT");
// Note that the transcript here differs to the one Mutalyzer uses after the CDS.
Annotation annotation1 = new Bl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void handleFrameShiftCaseWTStartWithStopCodon() {\n\t\t\tif (varAAStopPos == varAAInsertPos) {\n\t\t\t\t// The variant peptide also starts with a stop codon, is synonymous frameshift insertion.\n\t\t\t\tproteinChange = ProteinMiscChange.build(true, ProteinMiscChangeType.NO_CHANGE);\n\t\t\t\tvarTypes.add(Va... | [
"0.5743336",
"0.55104566",
"0.54166424",
"0.51163983",
"0.51000035",
"0.50523996",
"0.49874428",
"0.4945557",
"0.49413362",
"0.4886631",
"0.47714508",
"0.47663826",
"0.47628492",
"0.47488096",
"0.47309",
"0.47113112",
"0.46863517",
"0.46509045",
"0.46438867",
"0.46396953",
"0... | 0.5057832 | 5 |
The following case contains a shift in the nucleotide sequence. | @Test
public void testForwardFrameShiftBlockSubstitution() throws InvalidGenomeChange {
GenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6647537, PositionType.ZERO_BASED),
"TGCCCCACCT", "CCC");
Annotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).buil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract boolean shift();",
"private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}",
"public void moveShiftLeft();",
"public void moveShiftRight();",
"public static void shift(StringBuilder s){\n\t\t\n\t\t\n\t\t\n\t}",
"public abstract void shift(int param);",
"private static... | [
"0.6316805",
"0.6094967",
"0.60566115",
"0.5968533",
"0.59217405",
"0.5904935",
"0.58870554",
"0.57649",
"0.57420945",
"0.568254",
"0.5680923",
"0.56613195",
"0.56426173",
"0.5603189",
"0.56003416",
"0.5585704",
"0.5585236",
"0.5549175",
"0.54889685",
"0.5485564",
"0.5478755"... | 0.0 | -1 |
deletion of two codons, insertion of one | @Test
public void testForwardNonFrameBlockSubstitution() throws InvalidGenomeChange {
GenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642114, PositionType.ZERO_BASED),
"TAAACA", "GTT");
Annotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void compareDeletion();",
"@Override\n\tpublic void borrarArco(Ciudad c1, Ciudad c2) {\n\t\tgetVertice(c1).removeArc(c2);\n\t\tthis.cantArcos--;\n\t}",
"public void borrar(DbConnection connection, int id,int id2)\n\t\t\tthrows SQLException, ClassNotFoundException {\n\t\ttry {\n\t\t\tStatement statement = conne... | [
"0.6474962",
"0.61514753",
"0.61056113",
"0.60617584",
"0.60039866",
"0.58693993",
"0.5776915",
"0.57294506",
"0.56795937",
"0.56776",
"0.56535524",
"0.56091845",
"0.559974",
"0.5576768",
"0.55746406",
"0.5546237",
"0.5516074",
"0.5501264",
"0.549762",
"0.54948026",
"0.548990... | 0.0 | -1 |
This change was in clinvar37 and made problems. | @Test
public void testRealWorldCase_uc011ayb_2() throws InvalidGenomeChange {
this.builderForward = TranscriptModelFactory
.parseKnownGenesLine(
refDict,
"uc011ayb.2 chr3 + 37034840 37092337 37055968 37092144 18 37034840,37042445,37045891,37048481,37050304,37053310,37053501,37055922,37058996,37061800... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12628c() {\n }",
"public void mo38117a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public void method_4270() {}",
"public abstract void mo27385c();",
"private void m50366E() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"private voi... | [
"0.63368446",
"0.62986964",
"0.62779945",
"0.621365",
"0.6203934",
"0.6199749",
"0.6161779",
"0.6116762",
"0.6110972",
"0.60691166",
"0.6036792",
"0.602529",
"0.6013623",
"0.59853053",
"0.59720457",
"0.59664655",
"0.5965483",
"0.59340537",
"0.5932079",
"0.5921627",
"0.5916241... | 0.0 | -1 |
Bug found 87 on GitHub | @Test
public void testRealWorldCase_uc010nov_3() throws InvalidGenomeChange {
this.builderForward = TranscriptModelFactory
.parseKnownGenesLine(
refDict,
"uc010nov.3 chrX + 103031438 103047547 103031923 103045526 8 103031438,103031780,103040510,103041393,103042726,103043365,103044261,103045454, 10303... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void m50366E() {\n }",
"public void mo12628c() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m9741j() throws cf {\r\n }",
"protected boolean func_70041_e_() { return... | [
"0.6089455",
"0.6067731",
"0.6031972",
"0.5975374",
"0.59340066",
"0.5932838",
"0.59115785",
"0.59009457",
"0.5859219",
"0.5801449",
"0.579484",
"0.57757884",
"0.5766049",
"0.5740488",
"0.57384306",
"0.5727749",
"0.57063556",
"0.5697453",
"0.5695063",
"0.5693391",
"0.56822646... | 0.0 | -1 |
Learning Radio Buttons for checking Radio Button == facebook.com and spicejet.com | public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver","C:\\Selenium WebDrivers\\chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("https://www.html.am/html-codes/forms/");
List<WebElement> radiobutton=driver.findElements(By.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws InterruptedException {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Mohamed.Nheri\\\\eclipse-workspace\\\\Recap\\\\chromedriver.exe\"); \n\t\tChromeDriver driver = new ChromeDriver(); //driver have a reference in the memory == not null\n\t\... | [
"0.63282317",
"0.6282778",
"0.62340075",
"0.61658376",
"0.61498207",
"0.6120946",
"0.6078434",
"0.6044589",
"0.60213536",
"0.6006694",
"0.5980474",
"0.59641784",
"0.59183717",
"0.59097666",
"0.59002924",
"0.58502156",
"0.5842358",
"0.58245295",
"0.5823768",
"0.58114094",
"0.5... | 0.6040434 | 8 |
Created by greatkiller on 8/27/2017. | @Dao
public interface UserDao {
@Query("SELECT * FROM user")
LiveData<List<User>> getAll();
@Insert
void insertAll(User... users);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"pri... | [
"0.5825437",
"0.567987",
"0.5642281",
"0.5638304",
"0.56129587",
"0.55957896",
"0.5553017",
"0.55480856",
"0.5540276",
"0.5516472",
"0.5516472",
"0.5510644",
"0.54769945",
"0.5461838",
"0.5398978",
"0.53671175",
"0.5359982",
"0.5349996",
"0.5349996",
"0.5349996",
"0.5349996",... | 0.0 | -1 |
Created by ASUS on 2017/7/19 0019. | public interface FileView {
/**
* 设置标题
* @param preText 前标题
* @param nowText 现标题
*/
void setTitle(String preText, String nowText);
/**
* 给列表设置适配器
* @param adapter 适配器
*/
void setAdapter(DocumentFileAdapter adapter);
/**
* 获取适配器
* @return 适配器
*/
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo38117a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"public void mo4359a() {... | [
"0.5928058",
"0.5797988",
"0.5797467",
"0.57202244",
"0.56853527",
"0.565222",
"0.5615177",
"0.5585024",
"0.5585024",
"0.55357075",
"0.5517496",
"0.5492117",
"0.5492117",
"0.5492117",
"0.5492117",
"0.5492117",
"0.5492117",
"0.5492117",
"0.5479815",
"0.54798126",
"0.5476224",
... | 0.0 | -1 |
build this method, the rest is premade by Hacker Rank | public static int getHeight(Node2 root) {
// Write your code here
if (root.right != null || root.left != null) {
return 1 + Math.max(getHeight(root), getHeight(root));
} else {
return 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Nfa buildInternal();",
"public void build() {\r\n // TODO\r\n }",
"abstract Object build();",
"abstract T build();",
"public void build() {\n\t\tgenerate();\n\t\tstoreAns();\n\t\t// display();\n\t}",
"public abstract Object build();",
"@Override\n public void build() {\n... | [
"0.7006309",
"0.6465329",
"0.64022297",
"0.63266444",
"0.6270587",
"0.6247284",
"0.62253755",
"0.6182479",
"0.61435664",
"0.60686386",
"0.6064428",
"0.6052127",
"0.59519315",
"0.579488",
"0.5789953",
"0.5778707",
"0.576044",
"0.5721701",
"0.5718046",
"0.5716417",
"0.5716417",... | 0.0 | -1 |
Se actualiza el TextView. | private void initVistas(View v) {
TextView lblPagina = (TextView) v.findViewById(R.id.lblPagina);
lblPagina.setTextColor(getArguments().getInt(PAR_COLOR));
svScrollView = (ScrollView) v.findViewById(R.id.svScrollView);
ViewTreeObserver.OnScrollChangedListener mObservador = new ViewTreeOb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void limpiar() {\r\n view.txtTexto.setText(\"\");\r\n }",
"protected void setUpTextView(TextView textView, String text) {\n textView.setText(text);\n textView.setVisibility(text.isEmpty() ? View.GONE : View.VISIBLE);\n }",
"public void resetText(View view) {\n display(... | [
"0.69461066",
"0.67385995",
"0.66866267",
"0.6313484",
"0.6288049",
"0.6277372",
"0.62557673",
"0.62243134",
"0.6206136",
"0.61709106",
"0.6149235",
"0.6138006",
"0.6126485",
"0.61205256",
"0.6109813",
"0.6065662",
"0.6065591",
"0.6056149",
"0.60435313",
"0.6026939",
"0.60219... | 0.0 | -1 |
Both functionality of before and after | @Around("execution(* com.sapient.springdemo.service.EmployeeServiceImpl.saveEmployee(..))")
public void logAround(ProceedingJoinPoint target) {
System.out.println("------------logging before the method is getting executed in around-------------------");
if(target.getArgs()[0] instanceof EmployeeServ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void before();",
"void before();",
"protected abstract void after();",
"public TestCase afterThis( Procedure callafter );",
"void after();",
"@Test\n public void TestBeforeWithTooStrongAfter() {\n try {\n new RuleBasedCollator(\"&[before 2]x<<q<p\");\n e... | [
"0.7605185",
"0.7603459",
"0.6887046",
"0.67581415",
"0.6583195",
"0.65264124",
"0.64656115",
"0.64656115",
"0.643817",
"0.63968736",
"0.63159984",
"0.63002825",
"0.61853665",
"0.6166442",
"0.61306983",
"0.61029017",
"0.6100968",
"0.6059507",
"0.6052809",
"0.6052809",
"0.6050... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Blockable<String, Lookup> getSuggesterList() {
return suggesterList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void reloadDictionary(String propertyName)
throws IOException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public ElasticEntityProperties getElasticEntityProperties(String esPath) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Set<String> getRegisteredElasticEntityNames() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ 1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 | public static void pattern1(int input) {
int c = 0;
for (int i = 1; i <= input; i++) {
if (i % 2 != 0) {
for (int j = 0; j < input; j++) {
c++;
System.out.print(c + " ");
}
System.out.println();
} else {
c += input;
for (int j = c; j > c - input; j--) {
System.out.print(j +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\t... | [
"0.5960108",
"0.5803264",
"0.5753427",
"0.57366365",
"0.5712475",
"0.56341445",
"0.5606088",
"0.5602664",
"0.5587219",
"0.55865103",
"0.55391353",
"0.55375946",
"0.5521829",
"0.550303",
"0.54999495",
"0.54989374",
"0.54909605",
"0.5489444",
"0.548677",
"0.5465461",
"0.5464536... | 0.0 | -1 |
/ 1 2 3 4 5 6 7 8 9 10 | public static void pattern6(int input){
int counter=1;
for(int i=1;i<=input;i++){
for(int j=counter;j<=(i*(i+1)/2);j++){
System.out.print(counter++ + " ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void pattern10(int input){\n\t\tfor(int i= input;i >0;i--){\n\t\t\tfor(int j=i;j<=input;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\nint i=1;\nwhile(i<=10)\n{\n\tSystem.out.println(i+\"raj\");//display nos f... | [
"0.6138659",
"0.5986651",
"0.5870946",
"0.58187693",
"0.5679094",
"0.56542563",
"0.5635972",
"0.56357807",
"0.561447",
"0.560577",
"0.5592391",
"0.5549713",
"0.55480987",
"0.55363804",
"0.55275655",
"0.5495415",
"0.5485802",
"0.54812086",
"0.54497343",
"0.5444209",
"0.5437553... | 0.0 | -1 |
/ 1 1 2 1 2 3 1 2 3 4 | public static void pattern7(int input){
for(int i=1;i<=input;i++){
for(int j=1;j<=i;j++){
System.out.print(j+" ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"private static int[] post4(int[] input) {\n int indexFor = 0;\n for (int i = input.length - 1; i >= 0; i--) {\n if (input[i] == 4) {\n indexFor = i;\n break;\n }\n }\n // 1. do... | [
"0.60020244",
"0.588291",
"0.58707035",
"0.5838768",
"0.5828902",
"0.5770225",
"0.5670047",
"0.56150234",
"0.5549342",
"0.550781",
"0.5499506",
"0.5466879",
"0.54433477",
"0.54161566",
"0.54133046",
"0.53445727",
"0.5321198",
"0.528895",
"0.5281396",
"0.52584237",
"0.5251148"... | 0.51067173 | 43 |
/ 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 | public static void pattern8(int input){
for(int i=0;i<input;i++){
for(int j=0;j<=i;j++){
System.out.print(findCobination(i,j)+" ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getNumPatterns() { return 64; }",
"public static void pattern6(int input){\n\t\tint counter=1;\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=counter;j<=(i*(i+1)/2);j++){\n\t\t\t\tSystem.out.print(counter++ + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"int reps() {... | [
"0.6210891",
"0.6034511",
"0.5904848",
"0.5648889",
"0.5647043",
"0.5627281",
"0.5611656",
"0.559978",
"0.5591033",
"0.55757517",
"0.55753046",
"0.5572188",
"0.5496287",
"0.54722756",
"0.5446983",
"0.54448",
"0.5438964",
"0.54384047",
"0.54268074",
"0.5414992",
"0.5408965",
... | 0.52688026 | 55 |
/ 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 | public static void pattern9(int input){
for(int i= 1;i <= input;i++){
for(int j=i;j<=input;j++){
System.out.print(j+" ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }",
"@Test\n void first() {\n int[] answers = {1,2,3,4,5,1,2,3,4,5};\n int[] first = {1,2,3,4,5};\n int ... | [
"0.61525905",
"0.5810008",
"0.5799375",
"0.56689936",
"0.5601276",
"0.5575642",
"0.55262285",
"0.5514572",
"0.54871225",
"0.5463953",
"0.54632056",
"0.5458641",
"0.5456279",
"0.5445287",
"0.54165703",
"0.54145694",
"0.53749573",
"0.5356094",
"0.53559494",
"0.53543603",
"0.534... | 0.521821 | 43 |
/ 5 4 5 3 4 5 2 3 4 5 1 2 3 4 5 | public static void pattern10(int input){
for(int i= input;i >0;i--){
for(int j=i;j<=input;j++){
System.out.print(j+" ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void FiveAndSpareWithFinalFiveExpected_150(){\n String input = \"5/5/5/5/5/5/5/5/5/5/5\";\n assertEquals(game.scoreOfGame(input),150);\n }",
"static int getNumPatterns() { return 64; }",
"public void multiplesOfFive()\n {\n int index = 10;\n i... | [
"0.57638925",
"0.5631069",
"0.5534399",
"0.55105",
"0.5484061",
"0.5397917",
"0.5367798",
"0.5294449",
"0.5292731",
"0.52854276",
"0.52479184",
"0.5243122",
"0.524045",
"0.51959926",
"0.5194249",
"0.51738924",
"0.51730466",
"0.5167002",
"0.5166603",
"0.5164743",
"0.51621264",... | 0.5039776 | 44 |
/ 1 2 1 2 3 2 1 2 3 4 3 2 1 2 3 4 5 4 3 2 1 2 3 4 5 | public static void pattern12(int input){
for(int i= 1;i <= input;i++){
for(int j=i;j>1;j--){
System.out.print(j+" ");
}
for(int k=1;k<=i;k++){
System.out.print(k+" ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }",
"public static void pattern6(int input){\n\t\tint counter=1;\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=... | [
"0.59233856",
"0.5759688",
"0.57163095",
"0.56970155",
"0.5618577",
"0.561173",
"0.5587805",
"0.55138373",
"0.5504799",
"0.5480297",
"0.54647475",
"0.5462348",
"0.5446872",
"0.5393597",
"0.5378985",
"0.53742665",
"0.5373823",
"0.53620756",
"0.53546745",
"0.5346397",
"0.534384... | 0.5060416 | 74 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void export(HttpServletRequest request, HttpServletResponse response, Map<String, Object> map) {
String sheetName = "石砌边沟过路涵";
//表头
String[] head0 = new String[] { "编号", "中心桩号", "孔数-孔径(孔-米)", "位置", "L(m)", "工程数量", "工程数量", "工程数量", "工程数量", "工程数量", "工程数量", "工程数量", "工程数量", "工程数量","备注"};
String[] h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This is the constructor for the Queen piece. It accepts either white or black and returns an instance of Queen object. | public Queen (String color) {
super (color);
this.type = "Queen";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Queen(int initX, int initY, Color color, StandardBoard board) {\n\t\tsuper(initX, initY, color, board);\n\t\tthis.nameOfPiece = \"queen\";\n\t}",
"public Queen(String color) {\r\n super(color);\r\n type = \"queen\";\r\n }",
"public Queen(boolean color) {\n\n this.setColor(color);... | [
"0.7931199",
"0.74343514",
"0.73592734",
"0.73543805",
"0.72825354",
"0.7079508",
"0.6752778",
"0.6470256",
"0.64630616",
"0.6409141",
"0.6236191",
"0.61420715",
"0.6115552",
"0.6064264",
"0.5993814",
"0.59843665",
"0.59806424",
"0.59121525",
"0.5904672",
"0.5876397",
"0.5860... | 0.73347306 | 4 |
This method checks to see if the move made by the queen is in the correct motion. | public boolean isValidMove(int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {
if (validRook(startRow, startColumn, endRow, endColumn, board) || validBish(startRow, startColumn, endRow, endColumn, board)) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean queenMovement(int xPosition, int yPosition){\r\n\t\tif (isMovingStraight(xPosition, yPosition) ||\r\n\t\t\t\tisMovingDiagonal(xPosition, yPosition))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"private boolean isValidQueenMove(int xDisplacement, int yDisplacement) {\n\t\t// Diagonal mov... | [
"0.74942154",
"0.7152011",
"0.69581634",
"0.6875901",
"0.67114174",
"0.6681308",
"0.6668762",
"0.6585112",
"0.6559749",
"0.65549296",
"0.65176654",
"0.64964986",
"0.64589894",
"0.6458613",
"0.64397764",
"0.6428269",
"0.6416121",
"0.6410072",
"0.6395323",
"0.6358086",
"0.63566... | 0.0 | -1 |
This checks to see if the queen has moved in the motion of a rook. | public boolean validRook (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {
int distanceMovedUpDown =endRow-startRow;
int distanceMovedLeftRight = endColumn-startColumn;
if (distanceMovedUpDown !=0 && distanceMovedLeftRight != 0) { //have to stay in the same column or row to be vali... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isMoveFinished(int tick);",
"private boolean isLastMoveRochade()\r\n\t{\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMove == null) return false;\r\n\t\tPiece king = lastMove.to.piece;\r\n\t\tif (!(king instanceof King)) return false;\r\n\t\t\r\n\t\tint y = king.getColor().equals(Color.WHITE) ? 0 ... | [
"0.72440475",
"0.7112947",
"0.69942087",
"0.6930235",
"0.6904866",
"0.68360955",
"0.6793356",
"0.67464733",
"0.6735683",
"0.67063725",
"0.6706283",
"0.6694565",
"0.6662977",
"0.6598368",
"0.6597112",
"0.6565314",
"0.6562824",
"0.65623903",
"0.65321255",
"0.6524433",
"0.651155... | 0.0 | -1 |
This checks to see if the queen has moved in the motion of a bishop. | public boolean validBish (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {
if (Math.abs(startRow-endRow)==Math.abs(startColumn-endColumn)) {
int distanceMovedRows = startRow-endRow;
int distanceMovedCols =startColumn-endColumn;
if (distanceMovedRows > 0 && distanceMovedCols < 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean queenMovement(int xPosition, int yPosition){\r\n\t\tif (isMovingStraight(xPosition, yPosition) ||\r\n\t\t\t\tisMovingDiagonal(xPosition, yPosition))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"boolean isMoveFinished(int tick);",
"private boolean isQueen(Point pos){\r\n Cells a... | [
"0.6879114",
"0.67432564",
"0.66217005",
"0.65721935",
"0.65497315",
"0.654407",
"0.64618945",
"0.6410907",
"0.6384282",
"0.6368152",
"0.6354647",
"0.63167953",
"0.62945443",
"0.6278813",
"0.62687606",
"0.62561506",
"0.62515",
"0.6243583",
"0.6239056",
"0.6227693",
"0.6210128... | 0.0 | -1 |
This method updates the chessboard based on the move that was input by the Queen. | public Tile[][] updateBoard(int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {
/*String[] fileRanks = input.split(" ");
int startRow= 8 -Integer.parseInt(fileRanks[0].substring(1));
int startColumn = (fileRanks[0].charAt(0)) -'a';
int endRow = 8-Integer.parseInt(fileRanks[1].substring(1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateBoard() {\n notifyBoardUpdate(board);\n }",
"public void performMove() {\n\t\tfor (int x = 0; x <= size-1; x++)\n\t\t\tfor (int y = 0; y <= size-1; y++)\n\t\t\t\tlocalBoard[y][x] = 0;\n\t\t\n\t\t//reset the flag that indicates if a move has been found that decreases the heuristic\n\t... | [
"0.6809461",
"0.66946536",
"0.66724443",
"0.6597352",
"0.6586167",
"0.65416557",
"0.64819884",
"0.6475668",
"0.6403651",
"0.63707864",
"0.63449913",
"0.63444245",
"0.6333573",
"0.6319139",
"0.6302006",
"0.62353003",
"0.6225686",
"0.62237597",
"0.6217769",
"0.6215847",
"0.6184... | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof HeaderReference)) {
return false;
}
HeaderReference other = (HeaderReference) object;
if ((this.idHeaderReference == null && other.idHeaderReference != null) || (this.idHeaderReference != null && !th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
Get the address for a `CeloContract` | public String addressFor(CeloContract contract) {
if (cache.containsKey(contract)) {
return cache.get(contract);
} else {
String proxyStrippedContract = contract.toString().replace("Proxy", "");
byte[] hash = soliditySha3(proxyStrippedContract);
logger.inf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getContractAddress() {\n return contractAddress;\n }",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"String getAddress... | [
"0.7751208",
"0.7280272",
"0.7280272",
"0.7280272",
"0.7280272",
"0.7280272",
"0.7280272",
"0.69647914",
"0.69647914",
"0.69498587",
"0.6891158",
"0.6891158",
"0.6869666",
"0.68304765",
"0.68209195",
"0.6806262",
"0.6788836",
"0.67680955",
"0.66684484",
"0.66430455",
"0.66121... | 0.7379897 | 1 |
Get the address for all possible `CeloContract` | public Map<CeloContract, String> allAddresses() {
for (CeloContract contract : CeloContract.values()) {
this.addressFor(contract);
}
return cache;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getContractAddress() {\n return contractAddress;\n }",
"List<?> getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddres... | [
"0.66389257",
"0.64983034",
"0.6475815",
"0.6475815",
"0.6475815",
"0.6475815",
"0.6475815",
"0.6475815",
"0.6242896",
"0.6229269",
"0.6229269",
"0.61633176",
"0.6155358",
"0.61429626",
"0.61415935",
"0.6116434",
"0.6071317",
"0.596968",
"0.5947505",
"0.5947505",
"0.5947505",... | 0.6781238 | 0 |
nanosec per request long creationInterval = NANOSEC_PER_SEC / this.generationRate; millisec per request | public void run() {
long creationInterval = MILLISEC_PER_SEC / this.generationRate;
int curIndex = 0;
long startTime, endTime, diff, sleepTime, dur = this.test_duration;
do {
// startTime = System.nanoTime();
startTime = System.currentTimeMillis();
Request r = new DataKeeperRequest(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default public int getAliveInterval() \t\t\t\t\t{ return 1000; }",
"private float getRefreshRate() {\n return 1;\n }",
"@DefaultValue(\"300000\")\n long getNodeGcTtlMs();",
"public EpochTimer(int rate) {\n\tThread t = new Thread(this);\n\n\tsleepMs = 1000 / rate;\n\tint sleepLeftover = 1... | [
"0.6279188",
"0.57546604",
"0.5742718",
"0.5645839",
"0.56020814",
"0.55814976",
"0.55059403",
"0.5494757",
"0.54617995",
"0.54201335",
"0.54105467",
"0.54098374",
"0.5404288",
"0.5293064",
"0.52646047",
"0.52122885",
"0.5211211",
"0.5190384",
"0.5175988",
"0.5169372",
"0.514... | 0.5758825 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) throws IOException {
File file = new File("input.txt");
FileReader fr = new FileReader(file);
BufferedReader br = new BufferedReader(fr);
String line;
String [] tokens;
int accumulator = 0;
String operation;
int argum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
/ renamed from: a | public void m63699a(ObservableSource<? extends T>[] observableSourceArr, int i) {
C17455a[] c17455aArr = this.f53839c;
int length = c17455aArr.length;
int i2 = 0;
for (int i3 = 0; i3 < length; i3++) {
c17455aArr[i3] = new C17455a(this, i);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | void m63698a() {
m63702c();
m63701b();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | void m63701b() {
for (C17455a a : this.f53839c) {
a.m63704a();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: c | void m63702c() {
for (C17455a c17455a : this.f53839c) {
c17455a.f53844b.clear();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",... | 0.0 | -1 |
/ renamed from: d | public void m63703d() {
Throwable th;
ZipCoordinator zipCoordinator = this;
if (getAndIncrement() == 0) {
C17455a[] c17455aArr = zipCoordinator.f53839c;
Observer observer = zipCoordinator.f53837a;
Object obj = zipCoordinator.f53840d;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
/ renamed from: a | boolean m63700a(boolean z, boolean z2, Observer<? super R> observer, boolean z3, C17455a<?, ?> c17455a) {
if (this.f53842f) {
m63698a();
return true;
}
if (z) {
if (!z3) {
z = c17455a.f53846d;
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public void m63704a() {
DisposableHelper.dispose(this.f53847e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
public String baseURI = " public String basePath = ""; | @Before
public void setup() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String basePath();",
"public abstract String getBaseURL();",
"public String getBaseURL() {\n return baseURL;\n }",
"public String getBaseURL() {\n return baseURL;\n }",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"private static String getBaseUrl() {\n StringBuilder... | [
"0.76878023",
"0.75408983",
"0.7232244",
"0.7232244",
"0.72076005",
"0.7167632",
"0.71485555",
"0.7060892",
"0.705914",
"0.70078313",
"0.7003838",
"0.6982379",
"0.69707584",
"0.6938187",
"0.6917009",
"0.6917009",
"0.69004136",
"0.68918467",
"0.6883987",
"0.6846106",
"0.684525... | 0.0 | -1 |
Created by teng.liu on 2017/8/17. | public interface AInterface {
public void say();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Overri... | [
"0.6081014",
"0.60014117",
"0.5738741",
"0.5738741",
"0.57146764",
"0.5702545",
"0.56992126",
"0.56864095",
"0.56582576",
"0.56507784",
"0.55900335",
"0.5588823",
"0.5564141",
"0.5563776",
"0.55599344",
"0.55506057",
"0.5548621",
"0.55466133",
"0.55414075",
"0.55356944",
"0.5... | 0.0 | -1 |
Getter & Setter [id] | @Column(nullable = false, unique = true, precision = 10)
@GeneratedValue
@Id
public Integer getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id){ this.id = id; }",
"private void setId(Integer id) { this.id = id; }",
"public String getId(){ return id.get(); }",
"public void setID(int id){\n this.id=id;\n }",
"public int getId(){ return id; }",
"private Integ... | [
"0.7801686",
"0.77312154",
"0.76930404",
"0.7675158",
"0.76708245",
"0.76589656",
"0.76407486",
"0.76220584",
"0.75956315",
"0.7584697",
"0.75822496",
"0.75766057",
"0.75766057",
"0.7568621",
"0.75655985",
"0.7559049",
"0.75414497",
"0.75414497",
"0.75414497",
"0.75414497",
"... | 0.0 | -1 |
Set defaults values Set the default values. | public void initDefaultValues() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void performDefaults() {\r\n\t}",
"private void setDefaultValues() {\r\n this.nodeDegreeSpinner.setValue(display_node_degree_default);\r\n this.displayEdgesSpinner.setValue(display_edges_default);\r\n this.scaleSpinner.setValue(scale_default);\r\n this.minweightSpinner.setVa... | [
"0.74733555",
"0.7454501",
"0.74411505",
"0.7337992",
"0.7308169",
"0.72326493",
"0.72152776",
"0.71626186",
"0.7105333",
"0.70508605",
"0.7050437",
"0.6964219",
"0.69246125",
"0.68626744",
"0.68551975",
"0.6854136",
"0.6750932",
"0.67139727",
"0.66395515",
"0.6622447",
"0.66... | 0.79958403 | 0 |
toString Construct a readable string representation for this UserProfile instance. | @Override
public String toString() {
StringBuilder result = new StringBuilder();
result.append("userProfile.id=[").append(getId()).append("]\n");
result.append("userProfile.city=[").append(getCity()).append("]\n");
result.append("userProfile.country=[").append(getCountry()).append("]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n return \"User{\" +\n \"id=\" + id +\n \", imgUser=\" + imgUser +\n \", firstName='\" + firstName + '\\'' +\n \", lastName='\" + lastName + '\\'' +\n \", username='\" + username + '\\'' +\n ... | [
"0.72598106",
"0.7171047",
"0.71452874",
"0.71333236",
"0.7114299",
"0.71113473",
"0.70464975",
"0.70281297",
"0.6975961",
"0.69608134",
"0.69329536",
"0.6854076",
"0.6829153",
"0.6794239",
"0.67804873",
"0.6741999",
"0.67193925",
"0.66916835",
"0.6675738",
"0.6668309",
"0.66... | 0.80271554 | 0 |
Copyable Implementation (Support for REST web layer) Return a copy of the current object | @Override
public UserProfile copy() {
UserProfile userProfile = new UserProfile();
copyTo(userProfile);
return userProfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"Object clone();",
"Object clone();",
"public Object clone() {\n return this.copy();\n }",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public CMObject copyOf();",
"public abstract INodo copy();",
"Model cop... | [
"0.7742825",
"0.7647477",
"0.7647477",
"0.74725914",
"0.7443403",
"0.7443403",
"0.7443403",
"0.7443403",
"0.7361168",
"0.7272694",
"0.72149",
"0.72129834",
"0.71598506",
"0.7139633",
"0.7138443",
"0.7095457",
"0.7083388",
"0.70647997",
"0.7054872",
"0.70518845",
"0.7034934",
... | 0.66300344 | 54 |
Copy the current properties to the given object | @Override
public void copyTo(UserProfile userProfile) {
userProfile.setId(getId());
userProfile.setCity(getCity());
userProfile.setZipcode(getZipcode());
userProfile.setCountry(getCountry());
userProfile.setTitle(getTitle());
userProfile.setName(getName());
us... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void copyMetasToProperties( Object source, Object target );",
"void copyPropertiesToMetas( Object source, Object target );",
"public static <T, U> Object copyProperties(T t, Object object) {\n\t\tmodelMapper.map(t, object);\n\t\treturn object;\n\t}",
"void copyMetasToProperties( Object sourceAndTarget );",
... | [
"0.70826346",
"0.6976162",
"0.67433864",
"0.67252403",
"0.6608247",
"0.65580904",
"0.6538982",
"0.6273265",
"0.62262905",
"0.6164896",
"0.61378056",
"0.6135319",
"0.60506535",
"0.5948269",
"0.59133154",
"0.57915944",
"0.5783156",
"0.57830316",
"0.57703876",
"0.57603526",
"0.5... | 0.57312536 | 23 |
Creates an Order object containing the details of this order. | public void actionPerformed(ActionEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Order() {\n this(DSL.name(\"order\"), null);\n }",
"void create(Order order);",
"public Order() {\n\t\tthis.orderID = DataHolder.getInstance().getLastOrderId() + 1;\n\t\tthis.dateOrdered = new Date();\n\t\tthis.dateFilled = null;\n\t\tthis.projectedDate = addDays(dateOrdered,1);\n\t}",
"publ... | [
"0.7271464",
"0.7250102",
"0.7176376",
"0.7110821",
"0.69984853",
"0.69830185",
"0.69587946",
"0.6920626",
"0.68829596",
"0.6695135",
"0.66070116",
"0.65972877",
"0.6585587",
"0.65635484",
"0.65413046",
"0.6501259",
"0.65005535",
"0.6478474",
"0.6478289",
"0.6445751",
"0.6424... | 0.0 | -1 |
TODO tests methods should accept racetrack and some parameters as an argument so we can test a variety of configurations Make sure none of the piecewisedefined parts of the racetrack are disjoint | public void testContinuity() {
double endtime = 2 * racetrack.getPerimeter() / racetrack.getVelocity();
double rotationEpsilon = 0.000000001;
double bounds = velocity * dt + rotationEpsilon;
continuity(racetrack, 0, endtime, dt, bounds);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main (String[] args) throws FileNotFoundException, IOException {\n Track l_track = new Track(\"L-track.txt\");\r\n Track o_track = new Track(\"O-track.txt\");\r\n Track r_track = new Track(\"R-track.txt\");\r\n \r\n /*\r\n To start a new race:\r\n ... | [
"0.60467964",
"0.5738371",
"0.5316564",
"0.52925324",
"0.5218977",
"0.51817816",
"0.51588213",
"0.5156576",
"0.5125563",
"0.50795597",
"0.5050541",
"0.5037787",
"0.50250626",
"0.4986165",
"0.49848825",
"0.49706605",
"0.49605364",
"0.49517944",
"0.49063805",
"0.4893577",
"0.48... | 0.47728676 | 34 |
ensures the racetrack motion really does have uniform speed | public void testConstantSpeed() {
double endtime = racetrack.getPerimeter() / racetrack.getVelocity();
double epsilon = 0.000000000001;
uniformMotion(racetrack, 0, endtime, dt, velocity, epsilon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n int tempRate;\n long frameTimeNanos = OppoRampAnimator.this.mChoreographer.getFrameTimeNanos();\n float timeDelta = ((float) (frameTimeNanos - OppoRampAnimator.this.mLastFrameTimeNanos)) * 1.0E-9f;\n OppoRampAnimator.this.mLastFrameTimeNanos = frame... | [
"0.6671934",
"0.66330755",
"0.65899545",
"0.64464355",
"0.63683736",
"0.63636434",
"0.6312188",
"0.629681",
"0.6267064",
"0.6236701",
"0.6227528",
"0.620645",
"0.6202127",
"0.61991453",
"0.6150859",
"0.6062066",
"0.60561174",
"0.60426337",
"0.6040183",
"0.60393625",
"0.603936... | 0.754155 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.