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 |
|---|---|---|---|---|---|---|
Get parameter subject variables. | public List getSubjectVariables() {
return subjectVariables;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Variable[] getParameters();",
"public Set<Object> getVariables() {\n return new HashSet<>(constraints.keySet());\n }",
"String [] getParameters();",
"public Parameters getParameters();",
"public String[] getSubjects() {\n/* 329 */ return getStringArray(\"subject\");\n/* */ }",
... | [
"0.6564173",
"0.64585704",
"0.61912507",
"0.6139928",
"0.6128095",
"0.611722",
"0.60726047",
"0.5959716",
"0.5951499",
"0.59333766",
"0.5930041",
"0.59163845",
"0.59099036",
"0.5907419",
"0.59047973",
"0.59001875",
"0.58842975",
"0.58822805",
"0.5857315",
"0.58441836",
"0.583... | 0.79296464 | 0 |
Get defining formula. Predicate itself is not included. | public ElementList getDefiningFormula() {
return definingFormula;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public dFormula asFormula() {\n\t\treturn new ElementaryFormula(0, phonstringCondition);\n\t}",
"public String getFormula() {\r\n return formula;\r\n }",
"public String getFormula() {\n return formula;\n }",
"public String getFormula() {\n return formula;\n }",
"public String ... | [
"0.70295584",
"0.66610026",
"0.6637286",
"0.6637286",
"0.6397565",
"0.6395774",
"0.639095",
"0.6357164",
"0.62137944",
"0.6178244",
"0.60842514",
"0.6037901",
"0.5917034",
"0.58986557",
"0.58777565",
"0.5868351",
"0.5861613",
"0.5788244",
"0.57847065",
"0.57473534",
"0.570419... | 0.6840135 | 1 |
Adds a new item to the scty list. | public Seev00300101 addScty(SecurityPosition scty) {
getScty().add(scty);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void add(Item item);",
"void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}",
"void addFruit(Fruit item){\n\t\tfruitList.add(item);\n\t}",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"void addCpItem(ICpItem item);",
"public void add(Item item) {\r\n\t\tcatalog.add(item);\r\n\t}",
... | [
"0.7457079",
"0.708486",
"0.7063861",
"0.7010815",
"0.69503605",
"0.6913877",
"0.68765235",
"0.6856928",
"0.68528163",
"0.68528163",
"0.6851567",
"0.6841004",
"0.6829674",
"0.67776567",
"0.6751094",
"0.6736982",
"0.67365205",
"0.6716557",
"0.6707643",
"0.66698116",
"0.663843"... | 0.0 | -1 |
Machine machine1 = (Machine) context.get("machine1"); Machine machine2 = (Machine) context.get("machine2"); | @Override
public String summarize(Context context) {
return "FINISHED";
// return String.format("Normal:\n%s\n" +
// "========================================\n" +
// "Modified:\n%s", machine1.formatedResume(), machine2.formatedResume());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Machine machine() {\n return machine;\n }",
"public MachineTypeId getMachineTypeId() {\n return machineTypeId;\n }",
"public abstract String getMachineID();",
"public int getMachineID() {\n return machineID;\n }",
"java.lang.String getMachineId();",
"public String getClie... | [
"0.6107975",
"0.5320578",
"0.53176",
"0.52360064",
"0.51918644",
"0.5127025",
"0.5070586",
"0.5057185",
"0.5051402",
"0.5039736",
"0.49281344",
"0.4905963",
"0.48686516",
"0.48616847",
"0.48389992",
"0.48250014",
"0.4809178",
"0.48089576",
"0.47739273",
"0.4731046",
"0.471715... | 0.0 | -1 |
============== START METHOD ============== | public boolean bertarung(Monster objMonster){
int isSerang;
boolean isStop = false;
int opsi = 0;
Random random = new Random();
Scanner scanner = new Scanner(System.in);
isSerang = random.nextInt(2);
while(!isStop){
if(isSerang == 1){... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void start() {\n\t\t\r\n\t}",
"private void start() {\n\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\n\tpublic void start() {\n\t\t\n\t}",
"@Override\n\tpublic v... | [
"0.7631206",
"0.76101696",
"0.75948226",
"0.75948226",
"0.75948226",
"0.75948226",
"0.7567551",
"0.7442198",
"0.7413515",
"0.74035776",
"0.74035776",
"0.74035776",
"0.74010575",
"0.73966134",
"0.73966134",
"0.7346302",
"0.7346302",
"0.73396915",
"0.7330459",
"0.7329344",
"0.7... | 0.0 | -1 |
Determine the DB host, user, and password, and setup the MySQL connection pool. Note: Host configuration is required. Note: User and password configurations are optional, and if not specified then a guest account is used. This sets the 'read_only' flag, which disables all database modifications. Note: This init() call ... | void init(RunnerConfig config) throws DaemonInitException {
Properties properties = config.properties;
if (properties != null) {
// config from file
host = properties.getProperty(ResourceNames.DbHostKey);
host = StrH.trim(host);
user = properties.getProperty(ResourceNames.DbUserKey);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneC... | [
"0.67773855",
"0.6500823",
"0.6448506",
"0.6284931",
"0.62496024",
"0.6247977",
"0.62359107",
"0.6204638",
"0.61628693",
"0.6081714",
"0.6022415",
"0.6013028",
"0.5994027",
"0.5977557",
"0.59250045",
"0.59215176",
"0.5855521",
"0.5824142",
"0.58156097",
"0.57628345",
"0.57596... | 0.6452952 | 2 |
REPLACE THE CODE BELOW WITH YOUR OWN CODE | public boolean canMoveDownIn(GameBoard b) {
boolean checker = true;
if(this.topLeftY+this.height==6)//wall
checker=false;
if(this.topLeftY+this.height<6){//not hitting bottom wall
for (int i = 0; i < b.getNumGamePieces(); i++) {// go through game pieces
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"private stendhal() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r... | [
"0.618447",
"0.6134069",
"0.6133832",
"0.60539955",
"0.6038215",
"0.5978771",
"0.5935768",
"0.5931397",
"0.5931397",
"0.5923416",
"0.58878005",
"0.58856225",
"0.5884465",
"0.58642906",
"0.5842144",
"0.58229077",
"0.5818924",
"0.58084154",
"0.58029306",
"0.57948565",
"0.579453... | 0.0 | -1 |
REPLACE THE CODE BELOW WITH YOUR OWN CODE | public boolean canMoveUpIn(GameBoard b) {
boolean checker = true;
if(this.topLeftY==0) //wall
checker = false;
if(this.topLeftY>0){//not hitting top wall
for (int i = 0; i < b.getNumGamePieces(); i++) {//go through game pieces
if(b.getGamePieces()[i].top... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"private stendhal() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r... | [
"0.61850387",
"0.6134585",
"0.61336195",
"0.60540414",
"0.6039024",
"0.59797704",
"0.5936219",
"0.5932014",
"0.5932014",
"0.59242195",
"0.5888799",
"0.5886376",
"0.58859766",
"0.5864966",
"0.5842286",
"0.58237547",
"0.5818985",
"0.5809193",
"0.58025897",
"0.57958907",
"0.5794... | 0.0 | -1 |
Comando POST com um objeto. | @POST("posts")
Call<Post> createPost(@Body Post post); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doPost(String orden, String comentario, String url){\n Map<String, String> params = new HashMap<String, String>();\n //PREPARE BODY FOR POST\n params.put(\"token\", usuario.getmToken());\n params.put(\"idPedido\", orden);\n params.put(\"idUsuario\", Integer.toString(... | [
"0.6703924",
"0.6367169",
"0.6331055",
"0.63162655",
"0.6211343",
"0.6153206",
"0.60580915",
"0.60433745",
"0.60147434",
"0.59899426",
"0.59864163",
"0.5923484",
"0.5875912",
"0.5867721",
"0.5860135",
"0.58598614",
"0.5856797",
"0.5820173",
"0.58188486",
"0.57955277",
"0.5780... | 0.52520525 | 100 |
Comando POST com os itens do objeto. | @FormUrlEncoded
@POST("posts")
Call<Post> createPost(@Field("userId") int userId, @Field("title") String title, @Field("body") String text); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doPost(String orden, String comentario, String url){\n Map<String, String> params = new HashMap<String, String>();\n //PREPARE BODY FOR POST\n params.put(\"token\", usuario.getmToken());\n params.put(\"idPedido\", orden);\n params.put(\"idUsuario\", Integer.toString(... | [
"0.7300428",
"0.66242224",
"0.6581124",
"0.6326809",
"0.63254243",
"0.6317935",
"0.6231522",
"0.6213186",
"0.6184973",
"0.6181345",
"0.6178614",
"0.6157075",
"0.61492383",
"0.61373943",
"0.61087066",
"0.60865057",
"0.60636896",
"0.606361",
"0.6019618",
"0.59800535",
"0.597168... | 0.0 | -1 |
constructor just for allocation | public ReaderIterator(final java.lang.System[] $dummy, final x10.rtt.Type $T) {
x10.io.ReaderIterator.$initParams(this, $T);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Memory() {}",
"Constructor() {\r\n\t\t \r\n\t }",
"private Heap() { }",
"private Heap() { }",
"public Memory() {\n this(false);\n }",
"private MemoryTest() {\r\n }",
"private IndexBitmapObject() {\n\t}",
"protected MemObject (int nElem)\n {\n if (nElem > 0) mem = new Object [nElem];\... | [
"0.7406927",
"0.6909886",
"0.67230606",
"0.67230606",
"0.67124885",
"0.67053014",
"0.66925246",
"0.6646396",
"0.6616163",
"0.660808",
"0.65834767",
"0.6572372",
"0.6519752",
"0.6498655",
"0.6493865",
"0.64620376",
"0.64489114",
"0.6439587",
"0.64275724",
"0.64073557",
"0.6351... | 0.0 | -1 |
initializer of type parameters | public static void $initParams(final ReaderIterator $this, final x10.rtt.Type $T) {
$this.$T = $T;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TypeInitializer getTypeInitializer();",
"public void setTypeParameters(TypeParameterListNode typeParameters);",
"@ConstructorProperties({\"types\"})\n public Identity( Class... types )\n {\n super( Fields.ARGS );\n\n if( types.length == 0 )\n throw new IllegalArgumentException( \"number of types... | [
"0.65190315",
"0.60808027",
"0.60539484",
"0.5877479",
"0.5833111",
"0.5812063",
"0.57724637",
"0.5730394",
"0.5697642",
"0.56884354",
"0.5660712",
"0.5654221",
"0.56460166",
"0.5642522",
"0.5642522",
"0.5614112",
"0.55994105",
"0.55963343",
"0.55717677",
"0.55671483",
"0.556... | 0.0 | -1 |
line 34 "/home/induk/workspace/x102.4.3src/x10.runtime/srcx10/x10/io/ReaderIterator.x10" creation method for java code (1phase java constructor) | public ReaderIterator(final x10.rtt.Type $T, final x10.io.Marshal<$T> m, final x10.io.Reader r, __0$1x10$io$ReaderIterator$$T$2 $dummy) {
this((java.lang.System[]) null, $T);
x10$io$ReaderIterator$$init$S(m, r, (x10.io.ReaderIterator.__0$1x10$io$ReaderIterator$$T$2) null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Lexico(java.io.Reader in) {\n this.zzReader = in;\n }",
"public PasitoScanner(java.io.Reader in) {\n this.yy_reader = in;\n }",
"public CBS(java.io.Reader in) {\n this.yy_reader = in;\n }",
"public JavaTokenMaker(java.io.Reader in) {\n\t\tthis.zzReader = in;\n\t}",
"public Lexico(java.io.Reader... | [
"0.6568912",
"0.63877004",
"0.6305029",
"0.6242879",
"0.62410975",
"0.62410975",
"0.6222988",
"0.6211601",
"0.62016845",
"0.62016845",
"0.62016845",
"0.6178803",
"0.6176363",
"0.6169844",
"0.6120018",
"0.6112527",
"0.60935456",
"0.6076749",
"0.60669297",
"0.60583687",
"0.6014... | 0.0 | -1 |
constructor for nonvirtual call | final public x10.io.ReaderIterator<$T> x10$io$ReaderIterator$$init$S(final x10.io.Marshal<$T> m, final x10.io.Reader r, __0$1x10$io$ReaderIterator$$T$2 $dummy) {
{
//#line 34 "/home/induk/workspace/x10-2.4.3-src/x10.runtime/src-x10/x10/io/ReaderIterator.x10"
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void construct();",
"O() { super(null); }",
"Reproducible newInstance();",
"private Instantiation(){}",
"defaultConstructor(){}",
"protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }",
"void DefaultConstructor(){}",
"public AbstractBinaryInteraction() {\n\n\t}",... | [
"0.70873016",
"0.67268205",
"0.67171204",
"0.6614528",
"0.65602255",
"0.6559061",
"0.65435815",
"0.6526889",
"0.65151644",
"0.6493467",
"0.64907885",
"0.64706266",
"0.6413373",
"0.63954216",
"0.63555247",
"0.634123",
"0.63321805",
"0.63110715",
"0.6286261",
"0.62830186",
"0.6... | 0.0 | -1 |
Print out the usage instructions | private static void help() {
System.out.println(USAGE);
System.exit(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final private static void usage_print () {\n\t\tSystem.out.println (NAME + ' ' + VERSION + ' ' + COPYRIGHT) ;\n\t\tSystem.out.println () ;\n\n\t\tSystem.out.println (\n\t\t \"Usage: java bcmixin.Main [<options>] <modelname> <equationname>\"\n\t\t) ;\n\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"wher... | [
"0.859622",
"0.8508512",
"0.84670424",
"0.84432274",
"0.84131557",
"0.84039676",
"0.83605194",
"0.83251417",
"0.8320148",
"0.82923144",
"0.82916474",
"0.8277701",
"0.82382125",
"0.8232986",
"0.8191826",
"0.81598926",
"0.8150738",
"0.81409574",
"0.80960345",
"0.809225",
"0.803... | 0.7904065 | 27 |
Deprecated. Use getInputStream instead | @Deprecated()
public InputStream getIs() {
return this.inputStream;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InputStream getInputStream() throws IOException;",
"InputStream getInputStream() throws IOException;",
"InputStream getInputStream() throws IOException;",
"public InputStream getInputStream() throws IOException;",
"public InputStream getInputStream() throws IOException;",
"public abstract InputStream get... | [
"0.81561226",
"0.81561226",
"0.81561226",
"0.7680459",
"0.7680459",
"0.7603311",
"0.7603311",
"0.7556369",
"0.7556369",
"0.7521361",
"0.7362032",
"0.719458",
"0.714423",
"0.7120475",
"0.69652593",
"0.67852366",
"0.67634314",
"0.6704316",
"0.6641922",
"0.6641679",
"0.6638784",... | 0.7372658 | 10 |
Default constructor for JSON deserialization. | public Loyalty() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JSONLoader() {}",
"public JsonFactory() { this(null); }",
"public ClaseJson() {\n }",
"public JSONUtils() {\n\t\tsuper();\n\t}",
"private JSONHelper() {\r\n\t\tsuper();\r\n\t}",
"private JsonUtils() {\n\t\tsuper();\n\t}",
"public MinecraftJson() {\n }",
"private JsonUtils()\r\n {\r\n ... | [
"0.77737516",
"0.73399585",
"0.73120236",
"0.7266273",
"0.7161398",
"0.7083673",
"0.70170623",
"0.69772726",
"0.6905758",
"0.68548626",
"0.68341506",
"0.68286085",
"0.6817144",
"0.67638576",
"0.6715257",
"0.66621995",
"0.66100526",
"0.65622556",
"0.65507054",
"0.64887977",
"0... | 0.0 | -1 |
Dependency ilkesi dogrultusunda kalitim aldigi interface'in fonksiyon tanimi yapiliyor. | @Override
public void bildir(){
if(durum == true){
System.out.println("Durum: Acik");
}
else {
System.out.println("Durum: Kapali");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}",
"public interface DownPaiementService {\r\n\r\n\t/**\r\n\t * Envoie d'un paiement vers saphir pour chaque {@link Paiement} reçue.\r\n\t * \r\n\t * @param commande\r\n\t * {@link Commande}.\r\n\t * @param paiement\r... | [
"0.67750597",
"0.6560113",
"0.634412",
"0.6237135",
"0.618838",
"0.618838",
"0.61121535",
"0.6094391",
"0.6065241",
"0.6042539",
"0.6037196",
"0.60296065",
"0.60065717",
"0.5998905",
"0.59922767",
"0.5987254",
"0.59860647",
"0.59735334",
"0.5966941",
"0.5960567",
"0.5956423",... | 0.0 | -1 |
Sogutucuyu acmaya yarayan fonksiyon. Sonucunda Observerlar uyariliyor. | public void sogutucuyuAc(){
if(!(durum==true)){
durum = true;
notifyObservers();
}
else {
notifyObservers();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sogutucuyuKapat(){\n\t\tif(!(durum==false)){\n\t\t\tdurum = false;\n\t\t\tnotifyObservers();\n\t\t} else {\n\t\t\tnotifyObservers();\n\t\t}\n\t\t\n\t}",
"public void atacar() {\n notifyObservers();\n }",
"private void notificarSensores() {\n\t\tmvmSensorsObservers.forEach(sensorObserver -... | [
"0.69173664",
"0.66671777",
"0.64575464",
"0.6426792",
"0.6360878",
"0.6330918",
"0.62566763",
"0.622911",
"0.6190238",
"0.61717093",
"0.61654186",
"0.6124223",
"0.6120775",
"0.61192906",
"0.6114697",
"0.6084456",
"0.6041333",
"0.6027307",
"0.5998795",
"0.5963485",
"0.5944992... | 0.6602756 | 2 |
Sogutucuyu kapatmaya yarayan fonksiyon. Sonucunda Observerlar uyariliyor. | public void sogutucuyuKapat(){
if(!(durum==false)){
durum = false;
notifyObservers();
} else {
notifyObservers();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void atacar() {\n notifyObservers();\n }",
"public void sogutucuyuAc(){\n\t\tif(!(durum==true)){\n\t\t\tdurum = true;\n\t\t\tnotifyObservers();\n\t\t}\n\t\telse {\n\t\t\tnotifyObservers();\n\t\t}\n\t}",
"private void notificarSensores() {\n\t\tmvmSensorsObservers.forEach(sensorObserver -> sens... | [
"0.6802972",
"0.6512779",
"0.6500555",
"0.64327705",
"0.6390462",
"0.63706684",
"0.63319826",
"0.6236072",
"0.6218155",
"0.6185671",
"0.61779493",
"0.61591244",
"0.6143649",
"0.60994434",
"0.6095502",
"0.6073992",
"0.6060205",
"0.604828",
"0.6040153",
"0.60195255",
"0.5986585... | 0.70350206 | 0 |
Listeye Observer eklemek icin kullanilan fonksiyon. | public void registerObserver(Observer o) {
observers.add(o);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void notificarTodos(){\n for (Observer observer : list) {\n observer.notificar();\n }\n }",
"@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}",
"public i... | [
"0.6522214",
"0.6114845",
"0.6057403",
"0.6024217",
"0.59837914",
"0.5865403",
"0.5839456",
"0.5814417",
"0.5803435",
"0.57968485",
"0.5777528",
"0.57718927",
"0.57653296",
"0.5755263",
"0.5683267",
"0.5677176",
"0.5666115",
"0.560903",
"0.55781615",
"0.5562754",
"0.5556495",... | 0.0 | -1 |
Listeden observer cikarmak icin kullanilan fonksyon. | public void removeObserver(Observer o) {
int i = observers.indexOf(o);
if (i >= 0) {
observers.remove(i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void notificarTodos(){\n for (Observer observer : list) {\n observer.notificar();\n }\n }",
"@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}",
"@Overrid... | [
"0.78193307",
"0.72264236",
"0.6921247",
"0.6891658",
"0.681524",
"0.6773623",
"0.6556289",
"0.65560406",
"0.6517808",
"0.6494439",
"0.6493493",
"0.64863867",
"0.6454117",
"0.6451237",
"0.63623565",
"0.63507956",
"0.6280165",
"0.62681746",
"0.62373006",
"0.6225256",
"0.621928... | 0.0 | -1 |
Observerlari uayarmaya yarayan fonksiyon. | public void notifyObservers() {
for (int i = 0; i < observers.size(); i++) {
Observer observer = (Observer)observers.get(i);
observer.update(this.durum);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void atacar() {\n notifyObservers();\n }",
"public void sogutucuyuKapat(){\n\t\tif(!(durum==false)){\n\t\t\tdurum = false;\n\t\t\tnotifyObservers();\n\t\t} else {\n\t\t\tnotifyObservers();\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void NotifyObserver() {\n\n\t}",
"private void notificarSensor... | [
"0.68015647",
"0.6521603",
"0.6515117",
"0.6413655",
"0.6323741",
"0.62893975",
"0.62800276",
"0.62408197",
"0.6201697",
"0.61664975",
"0.61333925",
"0.6128824",
"0.61084366",
"0.61051637",
"0.6101949",
"0.6070401",
"0.6067617",
"0.60662735",
"0.6016251",
"0.6005666",
"0.5999... | 0.0 | -1 |
/ JADX DEBUG: Multivariable search result rejected for r2v0, resolved type: org.funktionale.option.Option / JADX WARN: Multivariable type inference failed | @NotNull
public final <X> Option<X> and(@NotNull Option<? extends X> option) {
Intrinsics.checkParameterIsNotNull(option, "value");
return isEmpty() ? None.INSTANCE : option;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n FieldOptions getRoleActivityFieldOptions(VitroRequest vreq) throws Exception {\n\t\treturn new ConstantFieldOptions(\n\t\t \"\", \"Select type\", \n\t\t \"http://purl.org/ontology/bibo/AcademicArticle\", \"Academic Article\",\n \"http://purl.org/ontology/bibo/Article\",... | [
"0.56366366",
"0.5170946",
"0.51272225",
"0.5117994",
"0.5091768",
"0.5001006",
"0.5001006",
"0.49475515",
"0.493782",
"0.49197668",
"0.49189284",
"0.4917444",
"0.4910026",
"0.48073822",
"0.47947475",
"0.47694394",
"0.47560167",
"0.47499233",
"0.47461376",
"0.47079957",
"0.46... | 0.0 | -1 |
Controla os eventos do clique do mouse | public void mouseClicked(MouseEvent e) {
if (quantCirculos == 0) {
quantCirculos++;
System.out.println("aquiaaaaaaaaaa");
desenha(e.getX(), e.getY());
selecionado = false;
repaint();
} else {
System.out.println("ELSE");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mouseMoved(MouseEvent e){}",
"public void mouseMoved(MouseEvent event) {\n }",
"public void mouseMoved(MouseEvent e) {}",
"public void mouseMoved(MouseEvent e) {}",
"public void mouseMoved(MouseEvent e) {}",
"private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t... | [
"0.66968423",
"0.6695231",
"0.66437066",
"0.6621176",
"0.6621176",
"0.6591153",
"0.65852433",
"0.6580172",
"0.6580172",
"0.6580172",
"0.6580172",
"0.6580172",
"0.6580172",
"0.6580172",
"0.6580172",
"0.6580172",
"0.6580172",
"0.65598416",
"0.6556097",
"0.6544361",
"0.65333915"... | 0.0 | -1 |
x = x 25; y = y 25; | public void desenha(int x, int y) {
id++;
circulos.add(new Circulo(id,x, y));
posX = x;
posY = y;
desenha = true;
repaint();
System.out.println("passou");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setXandY(double x, double y){\r\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t}",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"public static void main(String[] args) {\n\t\tint x = 10;\n\t\tint y = 20;\n\n\t\tx = y + x;//30\n\t\ty = x - y;//10\n\t\tx = x - y;//20\n\t\t\n\t\tSystem.out.pri... | [
"0.6756514",
"0.6286037",
"0.62692714",
"0.62183857",
"0.616181",
"0.6144738",
"0.60927904",
"0.60762525",
"0.6061512",
"0.59684956",
"0.5953797",
"0.593852",
"0.59254825",
"0.5889719",
"0.5885706",
"0.58679277",
"0.5866701",
"0.58631825",
"0.584475",
"0.5838087",
"0.58203363... | 0.0 | -1 |
Contrutor padrao passando o id | public Ibpt(Integer ibptId) {
super("Ibpt", "ibptCodigo", "ibptCodigo");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }",
"public void setId(int id){ this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"private void setId(Integer id) { this.id = id; }",
"@Override\n\tpublic void llenarPo... | [
"0.75751597",
"0.7082665",
"0.7011497",
"0.7011497",
"0.69550717",
"0.6843969",
"0.68288773",
"0.68253183",
"0.6780549",
"0.67348635",
"0.67348635",
"0.67155004",
"0.67073977",
"0.6697047",
"0.66955996",
"0.6687631",
"0.66548896",
"0.6652074",
"0.66153586",
"0.6614633",
"0.66... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
FourChartsFrame fourChartsFrame = new FourChartsFrame(null,false,1);
} | {
"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. 1 <= paths.length <= 2 10^4 2. 1 <= paths[i].length <= 3000 3. 1 <= sum(paths[i].length) <= 5 105 4. paths[i] consist of English letters, digits, '/', '.', '(', ')', and ' '. 5. You may assume no files or directories share the same name in the same directory. 6. You may assume each given directory info represents a ... | public List<List<String>> findDuplicate(String[] paths) {
final Map<String, List<File>> map = new HashMap<>();
for (String path : paths) {
final List<File> fileList = parse(path);
for (File file : fileList) {
if (!map.containsKey(file.content)) map.put(file.conte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n /* public static Stream<Path> list(Path dir) throws IOException\n - List the contents of a directory */\n try (Stream<Path> files = Files.list(Path.of(\"D:\\\\Java\"))) { /* we put our Stream objects inside a\n ... | [
"0.65264016",
"0.575728",
"0.57182443",
"0.5708328",
"0.5701904",
"0.5665634",
"0.5640319",
"0.5582499",
"0.5560086",
"0.5506936",
"0.5490547",
"0.54719615",
"0.53546774",
"0.53490627",
"0.5295334",
"0.5265815",
"0.52516156",
"0.52372414",
"0.52354497",
"0.5228075",
"0.521461... | 0.66842455 | 0 |
Create an instance of the Scanner class | public static void main(String[] args) {
Scanner input = new Scanner(System.in);
// Prompt the user to create a savings or a checking account
//*** Start #1 ***//
int type = 0;
do {
System.out.println("What kind of account do you wish to create?");
System.out.print("Enter 1 for savings and 2 for checki... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ConsoleScanner() {}",
"public Parser(Scanner scanner) {\n this.scanner = scanner;\n scan();\n }",
"public Scanner(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }",
"public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));... | [
"0.7676859",
"0.7173268",
"0.7165966",
"0.7114992",
"0.7114992",
"0.7102232",
"0.69769585",
"0.69769585",
"0.69769585",
"0.69769585",
"0.69769585",
"0.69769585",
"0.6931279",
"0.6931279",
"0.6931279",
"0.6931279",
"0.6931279",
"0.6931279",
"0.6931279",
"0.6931279",
"0.6893853... | 0.0 | -1 |
Display the user options | public static void displayOptions(Account account) {
System.out.println("\nOptions:");
System.out.println("1. Display account details");
System.out.println("2. Display account balance");
System.out.println("3. Display monthly interest");
System.out.println("4. Make a withdrawal");
System.out.println("5. Mak... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P... | [
"0.79408586",
"0.7857575",
"0.773942",
"0.7522056",
"0.7476703",
"0.7260143",
"0.72436786",
"0.72247016",
"0.7219895",
"0.7217795",
"0.7153276",
"0.7123609",
"0.7092674",
"0.70841044",
"0.70022655",
"0.6990622",
"0.6974499",
"0.69121695",
"0.6905714",
"0.6900718",
"0.6860713"... | 0.7108694 | 12 |
Validates XML against XSD Schema | public boolean validateXML(String xmlFile, String schemaFile) {
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
try {
Schema schema = schemaFactory.newSchema(new File(schemaFile));
Validator validator = schema.newValidator();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.par... | [
"0.7057882",
"0.69067925",
"0.6905161",
"0.6835159",
"0.67970943",
"0.67970943",
"0.67624414",
"0.67488766",
"0.67431647",
"0.6739071",
"0.673551",
"0.672652",
"0.672652",
"0.6639066",
"0.6623257",
"0.64191705",
"0.63148934",
"0.62286687",
"0.6191523",
"0.61234677",
"0.606120... | 0.63246036 | 16 |
Return a copy of the list for iteration purposes | public Array<Particle> getParticlesListIteration() {
return new Array(masterList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ArrayList deepCopyShapeList(List aShapeList){\n ArrayList newList = new ArrayList();\r\n\r\n if (aShapeList.size() > 0) {\r\n Iterator iter = aShapeList.iterator();\r\n\r\n while (iter.hasNext())\r\n newList.add(((TShape)iter.next()).copy());\r\n }\r\n return\r\n newList;\r\n}",
"private ... | [
"0.7433831",
"0.7135205",
"0.71013916",
"0.70994",
"0.7097974",
"0.68999076",
"0.68869203",
"0.67318714",
"0.66617095",
"0.665742",
"0.6583114",
"0.6575472",
"0.6466792",
"0.64645",
"0.6424954",
"0.6395969",
"0.6307482",
"0.6255159",
"0.62516713",
"0.62511027",
"0.62258524",
... | 0.0 | -1 |
GENFIRST:event_comboClienteActionPerformed TODO add your handling code here: | private void comboClienteActionPerformed(java.awt.event.ActionEvent evt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void combo_diabeticoActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private void cbOrdonariActionPerformed(java.awt.event.ActionEvent evt) { \n if (cbOrdonari.getSelectedIndex() == 0) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA... | [
"0.77554953",
"0.73491096",
"0.72076917",
"0.71902704",
"0.7189656",
"0.7154741",
"0.71402717",
"0.71032643",
"0.7045351",
"0.70266545",
"0.7007505",
"0.69830936",
"0.69519436",
"0.69351906",
"0.6914713",
"0.68861085",
"0.6830425",
"0.6818711",
"0.68026507",
"0.6798758",
"0.6... | 0.90896535 | 0 |
End of variables declaration//GENEND:variables | public int getCodigoSelecionado() {
return codigoSelecionado;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n pu... | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.5881482... | 0.0 | -1 |
Called on activity creation. | @Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\n\tpublic void onActivityCr... | [
"0.8056293",
"0.8012346",
"0.776294",
"0.7760877",
"0.7589749",
"0.75202906",
"0.7507243",
"0.7507243",
"0.7507243",
"0.7507243",
"0.7507243",
"0.7507243",
"0.74413294",
"0.74413294",
"0.7423757",
"0.7423757",
"0.73792654",
"0.73792654",
"0.730225",
"0.718764",
"0.71772635",
... | 0.0 | -1 |
Left button event handle. | public void left(View v)
{
level--;
if (level < 0)
{
level = 0;
}
TextView levelView = (TextView) findViewById(R.id.levelview);
levelView.setText("" + (level + 1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}",
"@Override\n\tpublic void leftClick(MouseEvent e) {\n\n\t}",
"private void leftButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_leftButtonKeyPressed\n this.leftButton.setEnabled(true);\n if(!this.left){\n this.co... | [
"0.79267305",
"0.7784135",
"0.74316674",
"0.7320046",
"0.7268441",
"0.72549844",
"0.72397846",
"0.7229885",
"0.7189273",
"0.718214",
"0.71724606",
"0.71538335",
"0.71175694",
"0.71045464",
"0.7001542",
"0.6974487",
"0.6971381",
"0.69541985",
"0.6922448",
"0.6845597",
"0.68393... | 0.0 | -1 |
Right button event handle. | public void right(View v)
{
level++;
if (level >= LevelMaps.getLevelCount())
{
level = LevelMaps.getLevelCount() - 1;
}
TextView levelView = (TextView) findViewById(R.id.levelview);
levelView.setText("" + (level + 1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void onRightButtonClick();",
"@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}",
"@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onRightClick() {\n\t\t\t}",
"void onRightClick(double mouseX, double mouseY);",
"public void mousePressed(Mous... | [
"0.79938895",
"0.7942319",
"0.7942319",
"0.76748127",
"0.7503361",
"0.7501362",
"0.7390304",
"0.7390299",
"0.73431706",
"0.7309854",
"0.7306638",
"0.7282288",
"0.72764647",
"0.72733766",
"0.7260274",
"0.7206411",
"0.7099119",
"0.70885783",
"0.6985519",
"0.69320697",
"0.682003... | 0.0 | -1 |
Launch button event handle. Starts the game activity. | public void testLaunch(View v)
{
Intent intent = new Intent(MainMenuActivity.this, GameActivity.class);
intent.putExtra("level", level);
startActivityForResult(intent, 0x1234);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(View v) {\n \tm_main.gameStart();\n }",
"private void StartGameButtonActionPerformed(java.awt.event.ActionEvent evt) {\n StartGame();\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\tstartGame();\n\t\t}",
"public void startGame() {\n StartBu... | [
"0.6937869",
"0.6851624",
"0.6574573",
"0.648075",
"0.6469068",
"0.6467754",
"0.64562577",
"0.6442283",
"0.64246666",
"0.640578",
"0.6398074",
"0.6356061",
"0.6319384",
"0.6285902",
"0.627546",
"0.6273972",
"0.6271552",
"0.6267512",
"0.6248792",
"0.62348646",
"0.6213282",
"... | 0.584361 | 64 |
Unique identifier of the productOffering | public ProductOffering id(String id) {
this.id = id;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProductID() {\n final byte[] data = new byte[12];\n mem.getBytes(16, data, 0, data.length);\n return new String(data).trim();\n }",
"public static String generateProductID() {\n\tproductID++;\n\treturn String.valueOf(productID);\n }",
"int getProductKey();",
"publi... | [
"0.67096895",
"0.66181356",
"0.6502938",
"0.63674384",
"0.6253101",
"0.6253101",
"0.6242365",
"0.61484087",
"0.6115572",
"0.60694647",
"0.6055677",
"0.6036829",
"0.60074013",
"0.60074013",
"0.5995464",
"0.59630513",
"0.5954313",
"0.5952938",
"0.59403145",
"0.59403145",
"0.593... | 0.6156286 | 7 |
Reference of the ProductOffering | public ProductOffering href(String href) {
this.href = href;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ProductOffering name(String name) {\n this.name = name;\n return this;\n }",
"public ProductOffering id(String id) {\n this.id = id;\n return this;\n }",
"public String getProductReference() {\n return productReference;\n }",
"public String getProductInstanceReference() {\n return... | [
"0.66732293",
"0.65555507",
"0.6464871",
"0.64320344",
"0.6361764",
"0.6126297",
"0.6071421",
"0.60632336",
"0.59642035",
"0.59193987",
"0.59171546",
"0.58661723",
"0.5816641",
"0.5792746",
"0.57748806",
"0.5774481",
"0.5762812",
"0.5761748",
"0.57551104",
"0.57057863",
"0.57... | 0.6155195 | 5 |
Date and time of the last update | public ProductOffering lastUpdate(javax.xml.datatype.XMLGregorianCalendar lastUpdate) {
this.lastUpdate = lastUpdate;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getLastUpdatedTime();",
"Date getForLastUpdate();",
"public Date getLastUpdate() {\r\n return lastUpdate;\r\n }",
"Date getDateUpdated();",
"@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();",
"Date getLastServerUpdate();",
"Date getUpdatedDate();",
"public java.lang.Str... | [
"0.81846815",
"0.8128646",
"0.78822815",
"0.78573966",
"0.7852921",
"0.780545",
"0.7761772",
"0.7730341",
"0.7729328",
"0.7717779",
"0.7693263",
"0.7648577",
"0.7648577",
"0.7648577",
"0.7647921",
"0.7617257",
"0.7616762",
"0.761357",
"0.761357",
"0.7608319",
"0.75824124",
... | 0.0 | -1 |
Name of the productOffering | public ProductOffering name(String name) {
this.name = name;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}",
"public String getName(){\n\t\treturn Name; // Return the product's name\n\t}",
"public void setBookOffering(java.lang.String value);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookOffering();",
"pu... | [
"0.71559304",
"0.6927976",
"0.68851125",
"0.6667883",
"0.66455925",
"0.6607742",
"0.6587204",
"0.6587204",
"0.6587204",
"0.6542071",
"0.65394115",
"0.6510074",
"0.643533",
"0.64096665",
"0.63423425",
"0.63189054",
"0.6262791",
"0.62522644",
"0.61734664",
"0.610617",
"0.607122... | 0.76856315 | 0 |
Description of the productOffering | public ProductOffering description(String description) {
this.description = description;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getProductDescription();",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _buySellProducts.getDescription();\n\t}",
"public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }",
"@Override\r\n\t\tpublic String toString() {... | [
"0.75992584",
"0.7053062",
"0.6907618",
"0.6644665",
"0.66389984",
"0.6581128",
"0.6579566",
"0.65383923",
"0.6529515",
"0.652687",
"0.6508021",
"0.64832497",
"0.647383",
"0.6455113",
"0.6450167",
"0.6442468",
"0.6439348",
"0.6437179",
"0.64241475",
"0.6422675",
"0.6416397",
... | 0.75599825 | 1 |
isBundle determines whether a productOffering represents a single productOffering (false), or a bundle of productOfferings (true). | public ProductOffering isBundle(Boolean isBundle) {
this.isBundle = isBundle;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Schema(description = \"isBundle determines whether an EntitySpecification represents a single EntitySpecification (false), or a bundle of EntitySpecifications (true).\")\n\n\tpublic Boolean isIsBundle() {\n\t\treturn isBundle;\n\t}",
"public boolean isBundle() {\r\n\t\treturn bundle;\r\n\t}",
"public boolean ... | [
"0.7073449",
"0.6646751",
"0.6582391",
"0.5880182",
"0.5774732",
"0.56023914",
"0.5534239",
"0.55075336",
"0.55003285",
"0.5435807",
"0.5231831",
"0.5094829",
"0.50814146",
"0.49818856",
"0.49395618",
"0.49289587",
"0.4923547",
"0.4897799",
"0.4897482",
"0.48886833",
"0.48714... | 0.7936891 | 0 |
Used to indicate the current lifecycle status | public ProductOffering lifecycleStatus(String lifecycleStatus) {
this.lifecycleStatus = lifecycleStatus;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLifecycle() {\n return lifecycle;\n }",
"LifecycleState lifecycleState();",
"LifecycleState lifecycleState();",
"public RequestLifecycleStatus getStatus() {\n return status;\n }",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t... | [
"0.6993569",
"0.6951149",
"0.6951149",
"0.664099",
"0.6620005",
"0.6424288",
"0.6363548",
"0.63594705",
"0.63493484",
"0.63055825",
"0.61820656",
"0.61794263",
"0.6158898",
"0.61567",
"0.6144559",
"0.6144559",
"0.6128132",
"0.61170024",
"0.610991",
"0.6101192",
"0.6047969",
... | 0.6203348 | 10 |
The period for which the productOffering is valid | public ProductOffering validFor(TimePeriod validFor) {
this.validFor = validFor;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getPeriod() {\n return period;\n }",
"public int getPeriod() {\n return period;\n }",
"public String getPeriod() {\n return period;\n }",
"public Long getPeriod() {\n return this.Period;\n }",
"public Period getPeriod() {\n return period;\n }",
"p... | [
"0.6854659",
"0.6754928",
"0.6737017",
"0.67082876",
"0.6687566",
"0.6677674",
"0.6593044",
"0.6554737",
"0.63261676",
"0.631593",
"0.6273925",
"0.6202291",
"0.615735",
"0.61329573",
"0.61329573",
"0.61329573",
"0.61329573",
"0.6114171",
"0.6101934",
"0.60859233",
"0.60859233... | 0.6963226 | 0 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.7884755",
"0.7549422",
"0.749723"
] | 0.74614984 | 90 |
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in... | @Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
// Add a marker in Sydney and move the camera
LatLng korea = new LatLng(0,0);
LatLng busan = new LatLng(ListOfLat[0], ListOfLong[0]);
mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDesc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ... | [
"0.81888163",
"0.80429345",
"0.80365956",
"0.803331",
"0.7998251",
"0.79769045",
"0.79576075",
"0.79573464",
"0.7954103",
"0.79424566",
"0.79369086",
"0.79300386",
"0.79146415",
"0.79048055",
"0.78882027",
"0.7884916",
"0.7884916",
"0.7884916",
"0.7884916",
"0.78779477",
"0.7... | 0.0 | -1 |
Did the player win in the last game? | @Override
public boolean playerWon() {
return lastPlayerWin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean winGame() {\n if (model.isCompleted()) {\n win.message(\"Winner\");\n return true;\n }\n return false;\n }",
"public boolean gameOver() {\r\n return didPlayerLose() || didPlayerWin();\r\n }",
"public void winGame() {\n this.isWinner... | [
"0.7769864",
"0.76672906",
"0.75790256",
"0.7498294",
"0.7484434",
"0.7402432",
"0.7371632",
"0.7317027",
"0.7317027",
"0.731115",
"0.7306655",
"0.7300842",
"0.7292828",
"0.7249452",
"0.7249452",
"0.721311",
"0.7211019",
"0.7195611",
"0.7179122",
"0.7145509",
"0.7144519",
"... | 0.75289834 | 3 |
Sets the current thread local context to the given HTTP request headers. | public static void setContext(Map<String, String> headers) {
Map<String, String> data = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
data.putAll(headers);
log.debug("Setting the current HTTP Request Headers context to {}", headers);
context.set(data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequestHeaders(Header[] requestHeaders);",
"public void setHeaders(Map headers);",
"public static void setRequestContext(SOAPRequestContext context) {\n REQUEST_CONTEXT_HOLDER.set(context);\n }",
"private void setupRequestContext() {\n\t\tMockHttpServletRequest request = new MockHttp... | [
"0.65827775",
"0.6389858",
"0.628974",
"0.6150432",
"0.61429465",
"0.61429465",
"0.6128946",
"0.6089636",
"0.60388106",
"0.5858761",
"0.5792368",
"0.5763618",
"0.56795806",
"0.5648585",
"0.56453013",
"0.5640959",
"0.5632929",
"0.5619807",
"0.554017",
"0.55125636",
"0.55003744... | 0.7872648 | 0 |
Clears the current HTTP request headers context. | public static void clearContext() {
log.debug("Clearing the current HTTP Request Headers context");
context.remove();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearHeader() {\n this.headers.clear();\n }",
"public void clear()\r\n/* 416: */ {\r\n/* 417:580 */ this.headers.clear();\r\n/* 418: */ }",
"public io.confluent.developer.InterceptTest.Builder clearReqHeaders() {\n req_headers = null;\n fieldSetFlags()[5] = false;\... | [
"0.7471958",
"0.7443765",
"0.7315441",
"0.7263702",
"0.68944603",
"0.66921175",
"0.6279793",
"0.6199061",
"0.617621",
"0.61659515",
"0.60816634",
"0.5953291",
"0.5929744",
"0.59155566",
"0.5904999",
"0.5860832",
"0.5809025",
"0.577972",
"0.57295984",
"0.57154155",
"0.5683514"... | 0.88639164 | 0 |
Gives back the second loser from the losers list. | public void play(Path path) {
System.out.println(path.getFileName());
try {
List<String> lines = init(path);
playTheGame(lines);
if (losers.size() > 1) {
System.out.println("Second loser: " + losers.get(1));
} else if (losers.size() == 1 &... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SoccerTeam getLoser() {\n SoccerTeam loser = null;\n\n if (this.scoreOne < this.scoreTwo) {\n loser = this.teamOne;\n }\n else if (this.scoreOne > this.scoreTwo) {\n loser = this.teamTwo;\n }\n\n return loser;\n }",
"public Player getLoser... | [
"0.6523551",
"0.6516877",
"0.60172755",
"0.5663143",
"0.55033904",
"0.5485512",
"0.5335295",
"0.529973",
"0.5283139",
"0.5280859",
"0.5270292",
"0.5247917",
"0.5242564",
"0.523563",
"0.523245",
"0.52027357",
"0.5166261",
"0.5153465",
"0.513292",
"0.51318765",
"0.5128512",
"... | 0.0 | -1 |
Goes through the players' strategies. If the strategy is between Greedy, Careful, or Tactical > Calls the strategy type from Enum StrategyType | private StrategyType getStrategyType(String type) throws Exception {
switch (type) {
case "greedy":
return StrategyType.GREEDY;
case "careful":
return StrategyType.CAREFUL;
case "tactical":
return StrategyType.TACTICAL;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getStrategyChoice() {\r\n\t\tint strategy = -1;\r\n\t\tgetStrategyScanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Choose the strategy of your opponent:\" +\r\n\t\t\t\t\"\\n\\t(\" + RANDOM + \") - Random player\" +\r\n\t\t\t\t\"\\n\\t(\" + DEFENSIVE + \") - Defensive player\" +\r\n\t... | [
"0.66922915",
"0.6427783",
"0.604968",
"0.5916579",
"0.58893263",
"0.57545304",
"0.57544756",
"0.5652375",
"0.5604869",
"0.55104375",
"0.5464453",
"0.5440064",
"0.5393123",
"0.53533846",
"0.53473127",
"0.5344668",
"0.5294458",
"0.5255999",
"0.5195648",
"0.5171496",
"0.5152506... | 0.629523 | 2 |
Reads the dice numbers then checks if player loses | private void playTheGame(List<String> lines) throws Exception {
int diceIndex = fields.size() + players.size() + 3;
if (diceIndex + 1 > lines.size() || (fields.size() < 1) || (players.size() < 1)) {
System.out.println("No moves defined");
return;
}
for (int inde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args)\n {\n Die dice_1 = new Die();\n Die dice_2 = new Die();\n Scanner in = new Scanner(System.in);\n\n while (true)\n {\n System.out.println(\"Time for some Craps!\");\n\n System.out.println(\"Hit [Enter] to roll both di... | [
"0.6374791",
"0.6342354",
"0.6271679",
"0.6242204",
"0.61900395",
"0.6146094",
"0.6144384",
"0.60836333",
"0.60796887",
"0.60028917",
"0.5928287",
"0.58704674",
"0.57991874",
"0.57802737",
"0.5772824",
"0.57687443",
"0.5746037",
"0.57424045",
"0.5732349",
"0.5730868",
"0.5722... | 0.5314722 | 79 |
Gets the number passed as numbers of fields and pass the players in the players list and the fields in fields list | private List<String> init(Path path) throws Exception {
List<String> lines = Files.readAllLines(path);
if (lines.size() != 0) {
int numberOfFields = Integer.parseInt(lines.get(0));
fillFieldsList(lines, numberOfFields);
fillPlayersList(lines, numberOfFields);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getNumPlayers() {\n\t\tSystem.out.println(\"How many people are playing? (must be between \"+MIN_PLAYERS+\" and \"+MAX_PLAYERS+\")\");\n\t\tnumPlayers = GetInput.getInstance().anInteger(MIN_PLAYERS, MAX_PLAYERS);\n\t}",
"private void fillPlayersList(List<String> lines, int numberOfFields) throws Exc... | [
"0.63052434",
"0.61568683",
"0.6141046",
"0.6141046",
"0.6134375",
"0.6052026",
"0.5991934",
"0.5957695",
"0.5926507",
"0.5911586",
"0.5909715",
"0.5892453",
"0.586659",
"0.586558",
"0.58595324",
"0.58406264",
"0.58366984",
"0.5817714",
"0.57959914",
"0.57704777",
"0.57515955... | 0.0 | -1 |
Makes sure that player playing is the same player in the index of the players list. Not to deal with NullPointerException then return player can be/can't be found in list | private Optional<Player> findPlayer(String playerName, StrategyType strategyType) {
for (Player player : players) {
if (player.getName().equals(playerName) && (player.getStrategyType() == strategyType)) {
return Optional.of(player);
}
}
return Optional.emp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }... | [
"0.65823734",
"0.6527029",
"0.64540535",
"0.63718987",
"0.6328684",
"0.6293399",
"0.62715876",
"0.62634796",
"0.62525",
"0.6216878",
"0.6215946",
"0.6214873",
"0.62133193",
"0.62052464",
"0.619378",
"0.61862826",
"0.6149658",
"0.6148704",
"0.6133912",
"0.60840684",
"0.6074493... | 0.5821537 | 47 |
Reads in the player's name and strategy line by line depending on the number of players given. | private void fillPlayersList(List<String> lines, int numberOfFields) throws Exception {
if (fields.size() == 0) throw new Exception("No fields found");
int numberOfPlayersIndex = Integer.parseInt(lines.get(numberOfFields + 1));
for (int index = numberOfFields + 2;
index <= numberOfF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadPlayers(String filename) throws IOException {\r\n //TODO:4\r\n // 1. use try-with-resources syntax to ensure the file is closed\r\n // 2. read the number of players, then read an empty line\r\n // 3. for each player:\r\n // 3.1 read playerName, gold, sciencePoi... | [
"0.6355507",
"0.6217593",
"0.5991949",
"0.5878163",
"0.587538",
"0.5875325",
"0.58643275",
"0.5799333",
"0.5704807",
"0.56614506",
"0.5581469",
"0.5516857",
"0.5515655",
"0.5509064",
"0.546224",
"0.5452483",
"0.54403514",
"0.5438819",
"0.5434754",
"0.5403047",
"0.5345531",
... | 0.6664939 | 0 |
Read lines of fields according to a given number and defines them as property, service, or lucky fields | private void fillFieldsList(List<String> lines, int numberOfFields) throws Exception {
for (int index = 1; index < numberOfFields; index++) {
String[] fieldTypes = lines.get(index).split(" ");
switch (fieldTypes[0]) {
case "property":
fields.add(new Pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void readFields() throws IOException, ClassFormatException {\n final int fields_count = dataInputStream.readUnsignedShort();\n fields = new Field[fields_count];\n for (int i = 0; i < fields_count; i++) {\n fields[i] = new Field(dataInputStream, constant_pool);\n }\n ... | [
"0.5777453",
"0.57342064",
"0.5659659",
"0.5654974",
"0.56248915",
"0.55806994",
"0.5568494",
"0.5526761",
"0.55194",
"0.54520464",
"0.54234576",
"0.53910136",
"0.5389838",
"0.5325022",
"0.5285703",
"0.52365726",
"0.5222988",
"0.51582235",
"0.5152922",
"0.51407975",
"0.512643... | 0.7196243 | 0 |
Keep track of the player's position after rolling the dice and performs action according to which field the player stepped on | private void playOneTurnWithPlayer(Player player, RolledDice rolledDice) throws NotEnoughMoneyException {
int position = player.increasePosition(rolledDice.getValue() - 1, fields.size());
Field field = fields.get(position);
field.playerStepped(player);
//System.out.println(player);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onRoll(Die die, RollData rolls, Exception exception) {\n super.onRoll(die, rolls, exception);\n\n Log.d(TAG, \"Roll: \" + rolls.face);\n\n final int face = rolls.face;\n\n Player currentPlayer = players.get(m_currentTurn);\n int ... | [
"0.6863225",
"0.6802976",
"0.66971976",
"0.6451659",
"0.6400293",
"0.63293153",
"0.62520134",
"0.62497723",
"0.6241017",
"0.62264687",
"0.61688167",
"0.614769",
"0.6130333",
"0.61184984",
"0.6106501",
"0.6101383",
"0.60849553",
"0.6038512",
"0.6036853",
"0.6028419",
"0.601957... | 0.72031254 | 0 |
/ compiled from: UserAwareController.kt | public interface UserAwareController {
default void changeUser(@NotNull UserHandle userHandle) {
Intrinsics.checkParameterIsNotNull(userHandle, "newUser");
}
int getCurrentUserId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getUser(){return this.user;}",
"public void viewUser() {\n\t\tsuper.viewUser();\n\t}",
"public abstract User getUser();",
"public interface UserService {\n String getViewUserName(User user);\n}",
"@Override\n public User getUser() {\n return user;\n }",
"@Override\n public ... | [
"0.6927766",
"0.6919722",
"0.6911712",
"0.6871727",
"0.6830834",
"0.6830834",
"0.68193436",
"0.6807389",
"0.6790049",
"0.67666084",
"0.67282605",
"0.6707357",
"0.66168314",
"0.653847",
"0.6513926",
"0.65101886",
"0.64972603",
"0.6482853",
"0.6476753",
"0.6461533",
"0.6459178"... | 0.7399852 | 0 |
Check collision with map objects | public void update(float deltaTime, GameController gameController, Player player, Camera camera) {
mScriptHandler.checkTriggers(mMap.getLevelObjects(), player);
// Update running scripts
mScriptHandler.update(deltaTime, gameController, this, player, camera);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void CheckWorldCollision() {\n\t\tfor(WorldObj obj : World.CurrentWorld.SpawnedObjects) {\n\t\t\tif(bounds.overlaps(obj.bounds))\n\t\t\t\tobj.OnCollision(this);\n\t\t\tif(MapRenderer.CurrentRenderer.ItemAnimation != null) {\n\t\t\t\tif(obj.ai != null) {\n\t\t\t\t\tif(dir == LEFT)\n\t\t\t\t\tAttackBounds.se... | [
"0.7291844",
"0.71441233",
"0.713661",
"0.7114149",
"0.7100081",
"0.7049259",
"0.7026968",
"0.69923663",
"0.6965105",
"0.69421583",
"0.69348556",
"0.69341314",
"0.68908006",
"0.6888048",
"0.6857482",
"0.6794696",
"0.6789872",
"0.6775351",
"0.6713735",
"0.6706283",
"0.664708",... | 0.0 | -1 |
Returns the maximum width of the nodes. | public int getWidth() {
return this.width;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }",
"public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }",
"public float getMaxWidth() {\n Object value = library.getObject(entries, MAX_WIDTH);\n if (value instanceof N... | [
"0.7607342",
"0.74483436",
"0.73880845",
"0.72673744",
"0.70787674",
"0.70266765",
"0.701606",
"0.6932898",
"0.69056374",
"0.6830458",
"0.6821975",
"0.67166275",
"0.66738695",
"0.6572029",
"0.6543521",
"0.6540789",
"0.6525702",
"0.6487994",
"0.6466813",
"0.64395046",
"0.64374... | 0.0 | -1 |
Prints the directed acyclic graph to a string representation where all structural elements are formatted with the given width. | public void print(final Appendable appendable, final Iterable<? extends Node> startNodes,
final ConnectionNavigator<Node> navigator)
throws IOException {
this.print(appendable, startNodes.iterator(), navigator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printGraphStructure() {\n\t\tSystem.out.println(\"Vector size \" + nodes.size());\n\t\tSystem.out.println(\"Nodes: \"+ this.getSize());\n\t\tfor (int i=0; i<nodes.size(); i++) {\n\t\t\tSystem.out.print(\"pos \"+i+\": \");\n\t\t\tNode<T> node = nodes.get(i);\n\t\t\tSystem.out.print(node.data+\" -- \");\... | [
"0.6760957",
"0.6570964",
"0.6374473",
"0.635739",
"0.63081276",
"0.62337554",
"0.6195447",
"0.6187381",
"0.6166212",
"0.61426127",
"0.60772365",
"0.6042357",
"0.6040523",
"0.6005392",
"0.5988487",
"0.5955129",
"0.5947847",
"0.5892671",
"0.58818716",
"0.5880611",
"0.5858502",... | 0.0 | -1 |
Prints the directed acyclic graph to a string representation where all structural elements are formatted with the given width. | public void print(final Appendable appendable, final Iterator<? extends Node> startNodes,
final ConnectionNavigator<Node> navigator) throws IOException {
new PrintState(appendable, GraphLevelPartitioner.getLevels(startNodes, navigator)).printDAG();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printGraphStructure() {\n\t\tSystem.out.println(\"Vector size \" + nodes.size());\n\t\tSystem.out.println(\"Nodes: \"+ this.getSize());\n\t\tfor (int i=0; i<nodes.size(); i++) {\n\t\t\tSystem.out.print(\"pos \"+i+\": \");\n\t\t\tNode<T> node = nodes.get(i);\n\t\t\tSystem.out.print(node.data+\" -- \");\... | [
"0.67601824",
"0.6569973",
"0.6373181",
"0.63560504",
"0.6306781",
"0.62338203",
"0.61948776",
"0.6185889",
"0.6164387",
"0.6141982",
"0.60760486",
"0.604114",
"0.60390687",
"0.6004417",
"0.5987446",
"0.5954159",
"0.594597",
"0.58924073",
"0.5881333",
"0.58803636",
"0.5857221... | 0.0 | -1 |
Prints the directed acyclic graph to a string representation where all structural elements are formatted with the given width. | public void print(final Appendable appendable, final Node[] startNodes, final ConnectionNavigator<Node> navigator)
throws IOException {
this.print(appendable, Arrays.asList(startNodes).iterator(), navigator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printGraphStructure() {\n\t\tSystem.out.println(\"Vector size \" + nodes.size());\n\t\tSystem.out.println(\"Nodes: \"+ this.getSize());\n\t\tfor (int i=0; i<nodes.size(); i++) {\n\t\t\tSystem.out.print(\"pos \"+i+\": \");\n\t\t\tNode<T> node = nodes.get(i);\n\t\t\tSystem.out.print(node.data+\" -- \");\... | [
"0.6758469",
"0.6569445",
"0.63740677",
"0.6356355",
"0.6306241",
"0.6233022",
"0.61927706",
"0.61860186",
"0.6164492",
"0.61407256",
"0.6074152",
"0.60409",
"0.60382646",
"0.6002949",
"0.59871125",
"0.59530795",
"0.5947305",
"0.5890458",
"0.5879284",
"0.58790004",
"0.5855859... | 0.0 | -1 |
Sets the width of a column of nodes. The default width is | public void setWidth(final int width) {
this.width = width;
this.widthString = "%-" + width + "s";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setColumnSize() {\n \t\tTableColumn column = null;\n \t\tfor (int i = 0; i < model.getColumnCount(); i++) {\n \t\t\tcolumn = getColumnModel().getColumn(i);\n \t\t\tcolumn.sizeWidthToFit();\n \t\t}\n \t}",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setWidth(int width) {... | [
"0.6798941",
"0.6560117",
"0.6560117",
"0.6497984",
"0.6488825",
"0.64858305",
"0.6415057",
"0.638353",
"0.634742",
"0.6327984",
"0.63110095",
"0.63090926",
"0.63014805",
"0.62832177",
"0.6261688",
"0.62513095",
"0.6248868",
"0.6228837",
"0.6219256",
"0.6218072",
"0.6211891",... | 0.559945 | 84 |
This hook is called whenever an item in your options menu is selected. The default implementation simply returns false to have the normal processing happen (calling the item's Runnable or sending a message to its Handler as appropriate). You can use this method for any items for which you would like to do processing wi... | @Override
public boolean onOptionsItemSelected(MenuItem item) {
String messageText = item.getTitle().toString();
/*if(item.getGroupId() != 0) {
R.id.my_group;
}*/
switch (item.getItemId()) {
case R.id.first_item:
Toast.makeText(this, item.getTi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean onMenuItemSelected(int menuItemId) {\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n if (!menuMgr.handleMenuEvent(item))\n return super.onOptionsItemSelected(item);\n return true;\n }",
"@Override\r\n\tpubl... | [
"0.74239236",
"0.7209656",
"0.70212835",
"0.6982402",
"0.6974784",
"0.69610864",
"0.69573927",
"0.6878961",
"0.68581945",
"0.679259",
"0.679259",
"0.6786117",
"0.6786117",
"0.6786117",
"0.6783395",
"0.6758584",
"0.6745377",
"0.6743332",
"0.6743052",
"0.6743052",
"0.67174613",... | 0.0 | -1 |
Creates the underlying database table. | public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"EXAM_QUESTION\" (" + //
"\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id
"\"TITLE\" TEXT," + // 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TABLE createTABLE();",
"public void create(Connection db) throws SQLException {\n if (tableName == null) {\n throw new SQLException(\"Table Name not specified\");\n }\n\n Statement st = db.createStatement();\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence()) {\n st.ex... | [
"0.791309",
"0.77940214",
"0.74362296",
"0.73251724",
"0.73218036",
"0.7314123",
"0.72937477",
"0.726144",
"0.7253623",
"0.7152383",
"0.7142117",
"0.71279895",
"0.7109381",
"0.7107476",
"0.7067047",
"0.7065432",
"0.70631945",
"0.7028555",
"0.70216703",
"0.70106506",
"0.700553... | 0.0 | -1 |
Drops the underlying database table. | public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"EXAM_QUESTION\"";
db.execSQL(sql);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dropTable();",
"@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }",
"public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }"... | [
"0.7789895",
"0.76284015",
"0.7504201",
"0.7461965",
"0.73182327",
"0.72954285",
"0.72924113",
"0.7281721",
"0.72654843",
"0.7200476",
"0.71981245",
"0.71693176",
"0.7104181",
"0.70931613",
"0.70916253",
"0.7038522",
"0.6928525",
"0.6885475",
"0.6786595",
"0.67825055",
"0.677... | 0.6197837 | 90 |
TODO Autogenerated method stub | @Override
public void onStartInMainThread(Object result)
{
super.onStartInMainThread(result);
if (mStartType == 1)
{
nDialog = SDDialogUtil.showLoading("正在检测新版本...");
}
} | {
"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 onClick(DialogInterface arg0, int arg1)
{
registerDownloder();
if (forcedUpgrade == 1) // 强制升级
{
} else
{
arg0.dismiss();
}
} | {
"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 onClick(DialogInterface arg0, int arg1)
{
arg0.dismiss();
} | {
"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 onAdd(String url, Boolean isInterrupt)
{
super.onAdd(url, isInterrupt);
initNotification();
} | {
"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 onStart()
{
super.onStart();
} | {
"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 onLoading(String url, long totalSize, long currentSize, long speed)
{
super.onLoading(url, totalSize, currentSize, speed);
int progress = (int) ((currentSize * 100) / (totalSize));
mNotification.contentView.setProgressBar(R.id.upgradeService_pb, 100, progress, false);
mNotifi... | {
"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 onFinish(String url)
{
super.onFinish(url);
} | {
"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 onSuccess(String url, File file)
{
super.onSuccess(url, file);
mNotification.contentView.setViewVisibility(R.id.upgradeService_pb, View.GONE);
mNotification.defaults = Notification.DEFAULT_SOUND;
mNotification.contentIntent = mPendingIntent;
mNotification.contentView.setT... | {
"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 onFailure(String url, String strMsg)
{
super.onFailure(url, strMsg);
SDToast.showToast("下载失败");
} | {
"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 |
end of inner class | @Override
public String toString() {
return "BookItem [title=" + title + ", author=" + author + ", year=" + year + ", pageNumber=" + pageNumber
+ ", section=" + section + ", price=" + price + ", stock=" + stock + "]";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\r\n protected void end() {\r\n\r\n }",
"@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\tprotected void interr() {\n\t}",
"@Override\n protected void end() {\n }",
"@Override\n pr... | [
"0.6492096",
"0.6374454",
"0.6369857",
"0.6344525",
"0.6285474",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6253125",
"0.6227369",
"0.62126434",
"0.61747694",
"0.61743855",
... | 0.0 | -1 |
/ A set of stairs has N steps. You can jump either 1 or 2 steps at a time. For example, if the stairs is N=4 steps, you can reach the end in 5 possible ways: 1111, or 121 or 112 or 211 or 22 Please implement this method to return the count of the different ways to reach the end of the stairs with N steps. | public static int countWaysToJump(int N) {
if (N > 0)
return countWaysToJump(N - 1) + countWaysToJump(N - 2);
else
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long countingStairs(int n) {\n\t\tif (n == 0)\n\t\t\treturn 0;\n\t\telse if (n <= 4 & n > 0)\n\t\t\treturn (long) Math.pow(2, n - 1);\n\t\telse\n\t\t\treturn countingStairs(n - 4) + countingStairs(n - 3) + countingStairs(n - 2) + countingStairs(n - 1);\n\t}",
"public static long countWaysToClimb(in... | [
"0.73159415",
"0.71162397",
"0.6745381",
"0.66771644",
"0.66685224",
"0.6605911",
"0.6517032",
"0.64049095",
"0.6380735",
"0.6353771",
"0.6322625",
"0.62803054",
"0.6273971",
"0.62621075",
"0.62549525",
"0.61775494",
"0.6164543",
"0.6094455",
"0.6093845",
"0.6090258",
"0.6089... | 0.6598521 | 6 |
Find by unique key | public AbsenceType findByName(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Entry find(Object key) {\r\n Entry entry_with_key = new Entry();\r\n entry_with_key.key = key; \r\n int comp_hash = compFunction(entry_with_key.key.hashCode());\r\n if (hash_table[comp_hash] == null) {\r\n return null;\r\n } else {\r\n DList searching = hash_table[comp_hash];\r\n ... | [
"0.6557548",
"0.643432",
"0.6391567",
"0.6365645",
"0.63271624",
"0.62824047",
"0.6248718",
"0.62012416",
"0.6187755",
"0.6091412",
"0.60801125",
"0.60783225",
"0.6019925",
"0.6017186",
"0.60071295",
"0.5949148",
"0.59168965",
"0.590516",
"0.5889019",
"0.58544356",
"0.5850748... | 0.0 | -1 |
Find by reference: category | public List<AbsenceType> findByCategory(AbsenceCategory category); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Category findByName(String name);",
"AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;",
"private Feature searchRefCatastral(Feature[] cache,Feature refCatFeature, Comparator comparator)\r\n {\r\n int featureIndex = Arrays.binarySearch(cache, refCatFeature,compara... | [
"0.6403197",
"0.62973815",
"0.6204203",
"0.6187382",
"0.6130533",
"0.6101738",
"0.60213387",
"0.6000839",
"0.59120333",
"0.5901957",
"0.58284193",
"0.5818072",
"0.5786439",
"0.57776266",
"0.5758134",
"0.575555",
"0.5730106",
"0.5730106",
"0.5725568",
"0.56966084",
"0.5688067"... | 0.0 | -1 |
Find by ID of reference: category.id | public List<AbsenceType> findByCategoryId(Long categoryId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ProductCategory find(int id)throws IllegalArgumentException;",
"Category findCategoryById(Long id);",
"Category findById(int id);",
"AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;",
"DvdCategory searchCategoryById(Integer id) throws DvdStoreException;",
"public Cvcatego... | [
"0.7514519",
"0.7450589",
"0.73658705",
"0.7236524",
"0.72335374",
"0.71972704",
"0.7160846",
"0.71590614",
"0.7154476",
"0.7148668",
"0.7121277",
"0.71013635",
"0.70334923",
"0.69748604",
"0.69266725",
"0.6857227",
"0.67961824",
"0.677291",
"0.6725557",
"0.67049897",
"0.6669... | 0.0 | -1 |
The placeholder used to conveniently retrieve the ArtifactorySupportBundleConfig | private NodeManifest searchBy(String bundleId) {
final NodeManifestBundleInfo placeholder = new NodeManifestBundleInfo
(bundleId, StringUtils.EMPTY, StringUtils.EMPTY, ZonedDateTime.now(), "");
return newNodeManifest(placeholder, accessService.getArtifactoryServiceId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default Component getConfigComponent()\r\n {\r\n return null;\r\n }",
"public abstract String getConfig();",
"public String getConfig();",
"@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}",
"public interface ResourceConfig {\n\n public ResourceBundle config = Re... | [
"0.5760931",
"0.56579316",
"0.56316566",
"0.54541785",
"0.54113203",
"0.5231348",
"0.52191865",
"0.52080816",
"0.5163626",
"0.5150139",
"0.5139818",
"0.5123118",
"0.51086336",
"0.5076918",
"0.5056722",
"0.50565225",
"0.5029139",
"0.5026216",
"0.4989275",
"0.49843392",
"0.4983... | 0.0 | -1 |
Check If SD Card is present or not method | public boolean isSDCardPresent() {
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isSdcardExist() {\n return android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);\n }",
"public static boolean isSDcardExist() {\n\t\tboolean isExist = false;\n\t\ttry {\n\t\t\tif (Environment.getExternalStorageState().equals(Environment.MED... | [
"0.8351543",
"0.81994665",
"0.8183099",
"0.8108141",
"0.8065252",
"0.80535096",
"0.77619874",
"0.7378736",
"0.7204036",
"0.71833056",
"0.697479",
"0.68917894",
"0.68767595",
"0.68392324",
"0.6696929",
"0.6685594",
"0.65777576",
"0.6511452",
"0.64982384",
"0.64613765",
"0.6449... | 0.7875437 | 6 |
onSubscribe > onEach > onNext > onCompleted > on unsubscribe | public static void main(String[] args) {
doOnEachObserver().subscribe(i -> {
System.out.println("do: " + i);
});
doOnErrorObserver().subscribe(new Subscriber<Integer>() {
@Override
public void onCompleted() {
System.out.println("onCompleted");... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onSubscribe() {\n\n }",
"void subscribe();",
"@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onSubscribe(Disposable d) {\n }",
"public void onUnsubscribe() {\n\n }",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable... | [
"0.7367593",
"0.6955767",
"0.6908033",
"0.67792463",
"0.67769337",
"0.6707545",
"0.6668175",
"0.6628961",
"0.6553952",
"0.6553952",
"0.6553952",
"0.6553952",
"0.6553952",
"0.6553952",
"0.6528647",
"0.65214837",
"0.6469435",
"0.64069515",
"0.6351283",
"0.6312297",
"0.63084495"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<UserManage> findUserByUsername(String username){
List<UserManage> list = null;
try {
list = userDao.findUserByUsername(username);
} catch (Exception e) {
// TODO: handle exception
}
return list;
} | {
"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 |
Call this method to load books of a category | public void loadBooksOfCategory(){
long categoryId=mainActivityViewModel.getSelectedCategory().getMcategory_id();
Log.v("Catid:",""+categoryId);
mainActivityViewModel.getBookofASelectedCategory(categoryId).observe(this, new Observer<List<Book>>() {
@Override
public void ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadBook() {\n List<Book> books = new ArrayList<>();\n for (int i = 0; i < 5; i++) {\n Book book = new Book(\"Book-\" + i, \"Test book \" + i);\n books.add(book);\n }\n this.setBooks(books);\n }",
"private void loadCategories(CategoriesCallback cal... | [
"0.67357236",
"0.6565129",
"0.65133554",
"0.6488592",
"0.6264322",
"0.6200638",
"0.6162628",
"0.61182076",
"0.6096813",
"0.6009913",
"0.59782434",
"0.5859297",
"0.58426344",
"0.57611096",
"0.5707605",
"0.5694383",
"0.5688979",
"0.5688283",
"0.56305504",
"0.5627762",
"0.561198... | 0.75766987 | 0 |
tests methods in BinaryTree implementation | public static void main(String[] args) {
if(testInsert())
System.out.println("testInsert: succeeded");
else
System.out.println("testInsert: failed");
if(testSearch())
System.out.println("testSearch: succeeded");
else
System.out.println("testSearch: failed");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void test2() {\n BinaryTreeNode node1 = new BinaryTreeNode(1);\n BinaryTreeNode node2 = new BinaryTreeNode(2);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(4);\n BinaryTreeNode node5 = new BinaryTreeNode(5);\n B... | [
"0.72070897",
"0.7157705",
"0.71302664",
"0.70013165",
"0.6966084",
"0.68915987",
"0.67693144",
"0.67645794",
"0.6762166",
"0.6716877",
"0.6688602",
"0.6643962",
"0.66210717",
"0.66165316",
"0.6578428",
"0.6566079",
"0.65401113",
"0.6534606",
"0.6529572",
"0.6524478",
"0.6518... | 0.0 | -1 |
/ Validates that insert works correctly | static boolean testInsert() {
BinaryTree tree = new BinaryTree();
int[] profile = new int[1];
// Implement insert method
boolean insert = tree.insert("a", 0);
// Validates that insert works as expected
if(!insert)
return false;
// Validates that insert works with multiple items
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testInsertingValidValues() throws SQLException {\n CommitStructure commit = getSampleCommit();\n MysqlDatabase mysqlDatabase = new MysqlDatabase(connection);\n assertTrue(mysqlDatabase.insertCommitToDatabase(commit));\n }",
"private boolean insert()throws Exception{... | [
"0.72056544",
"0.72003496",
"0.7156688",
"0.7081949",
"0.69781864",
"0.6833269",
"0.68263495",
"0.67851025",
"0.67824435",
"0.6781359",
"0.67526174",
"0.675073",
"0.67353475",
"0.6718228",
"0.67108047",
"0.6701786",
"0.6681238",
"0.6622969",
"0.65851504",
"0.65685856",
"0.656... | 0.7111578 | 3 |
/ Validates that search works correctly | static boolean testSearch() {
BinaryTree tree = new BinaryTree();
int[] profile = new int[1];
// Implment insert method
tree.insert("a", 1);
tree.insert("b", 2);
tree.insert("c", 3);
tree.insert("d", 4);
tree.insert("e", 5);
// Validates that search works correctly for every key in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSearchOk() {\n return false;\n }",
"private void searchFunction() {\n\t\t\r\n\t}",
"public void search() {\r\n \t\r\n }",
"abstract public void search();",
"@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n ... | [
"0.68447745",
"0.67390126",
"0.6731828",
"0.66677874",
"0.66074556",
"0.6590803",
"0.6521522",
"0.6478402",
"0.6478199",
"0.6447902",
"0.6447902",
"0.6415064",
"0.63989544",
"0.63989544",
"0.6361783",
"0.6357949",
"0.63519704",
"0.6339847",
"0.63310677",
"0.6323721",
"0.63231... | 0.5624183 | 93 |
Build specification instance to compare value with appropriate field | public static <Entity, FieldType> Specification<Entity> fieldEqual
(final SingularAttribute<Entity, FieldType> singularAttribute, final FieldType value) {
return new Specification<Entity>() {
@Override
public Predicate toPredicate(Root<Entity> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
return c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void constructorStoreSucceed()\n {\n // arrange\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n assertEquals(\"*\", Deencapsulation.getField... | [
"0.5854661",
"0.5813425",
"0.5560133",
"0.5554069",
"0.5391439",
"0.5290434",
"0.519835",
"0.514943",
"0.5090524",
"0.5035483",
"0.5035483",
"0.5027934",
"0.5025198",
"0.5022685",
"0.5009584",
"0.5007006",
"0.49996433",
"0.49985465",
"0.49932352",
"0.49791571",
"0.4955151",
... | 0.45024753 | 93 |
Get existing join for attribute or create one if not exists | @SuppressWarnings("unchecked")
public static <ROOT, JOIN> Join<ROOT, JOIN> getJoin(Root<ROOT> root, SetAttribute<ROOT, JOIN> attribute) {
for (Join<ROOT, ?> join : root.getJoins()) {
if (join.getAttribute().equals(attribute)) {
return (Join<ROOT, JOIN>) join;
}
}
return root.join(attribute);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Join createJoin();",
"JoinCondition createJoinCondition();",
"FromTableJoin createFromTableJoin();",
"protected abstract Object calcJoinRow();",
"public Relation join(Relation r, Condition c, String name) throws RelationException;",
"protected String getJoin( LogicalModel businessModel, LogicalRelationsh... | [
"0.6497758",
"0.6163585",
"0.5573792",
"0.5462944",
"0.53238434",
"0.5272552",
"0.5268358",
"0.51051956",
"0.49919316",
"0.49838114",
"0.49654138",
"0.49514788",
"0.49217466",
"0.4905392",
"0.48977354",
"0.48877233",
"0.48734394",
"0.48645487",
"0.4858592",
"0.48569885",
"0.4... | 0.56784344 | 2 |
Get existing map join for attribute or create one if not exists | @SuppressWarnings("unchecked")
public static <ROOT, ID, JOIN> MapJoin<ROOT, ID, JOIN> getMapJoin(Root<ROOT> root, MapAttribute<ROOT, ID, JOIN> attribute) {
for (Join<ROOT, ?> join : root.getJoins()) {
if (join.getAttribute().equals(attribute)) {
return (MapJoin<ROOT, ID, JOIN>) join;
}
}
for (Fetch<ROO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic static <ROOT, JOIN> Join<ROOT, JOIN> getJoin(Root<ROOT> root, SetAttribute<ROOT, JOIN> attribute) {\n\t\tfor (Join<ROOT, ?> join : root.getJoins()) {\n\t\t\tif (join.getAttribute().equals(attribute)) {\n\t\t\t\treturn (Join<ROOT, JOIN>) join;\n\t\t\t}\n\t\t}\n\t\treturn r... | [
"0.54150766",
"0.5341151",
"0.524256",
"0.5141355",
"0.5089494",
"0.5041713",
"0.49982455",
"0.4980064",
"0.49559495",
"0.4918318",
"0.4900353",
"0.48166215",
"0.48151904",
"0.4804746",
"0.47954422",
"0.47882715",
"0.47727528",
"0.47392002",
"0.47129357",
"0.4707683",
"0.4685... | 0.582087 | 0 |
Add fetch join for collection if not exists | public static <T> void fetchOnce(Root<T> root, SetAttribute<? super T, ?> attribute) {
for (Fetch<T, ?> fetch : root.getFetches()) {
if (fetch.getAttribute().equals(attribute)) {
return;
}
}
root.fetch(attribute);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testSqlExistsBasedJoin() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATI... | [
"0.57383597",
"0.5699973",
"0.56115276",
"0.55189276",
"0.54678184",
"0.5377502",
"0.534911",
"0.53286356",
"0.53102785",
"0.5272417",
"0.5240267",
"0.51869535",
"0.5185506",
"0.51799756",
"0.5160738",
"0.51403654",
"0.50688374",
"0.50640017",
"0.50419444",
"0.50416577",
"0.4... | 0.0 | -1 |
Add fetch join for map if not exists | public static <T> void fetchOnce(Root<T> root, MapAttribute<? super T, ?, ?> attribute) {
for (Fetch<T, ?> fetch : root.getFetches()) {
if (fetch.getAttribute().equals(attribute)) {
return;
}
}
root.fetch(attribute);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MapComp<K, V> join(MapComp<K, V> m);",
"protected FetchJoinInformation[] getFetchJoins() {\n\t\treturn new FetchJoinInformation[] {};\n\t}",
"private void buildRowMapping() {\n final Map<String, ColumnDescriptor> targetSource = new TreeMap<>();\n\n // build a DB path .. find parent node that term... | [
"0.5960455",
"0.5664481",
"0.5572897",
"0.5556621",
"0.55301946",
"0.54374975",
"0.5290383",
"0.5235492",
"0.5216986",
"0.51546365",
"0.5110682",
"0.50842696",
"0.5044879",
"0.49988705",
"0.49882165",
"0.49772915",
"0.49557272",
"0.49481952",
"0.489324",
"0.4839426",
"0.48361... | 0.0 | -1 |
Check if query is for count | public static boolean isCountQuery(CriteriaQuery<?> query) {
return query.getResultType() == Long.class || query.getResultType() == long.class;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasCount();",
"public boolean hasCount() {\n return result.hasCount();\n }",
"boolean hasQuery();",
"public boolean haveCount () ;",
"boolean isCounting();",
"public boolean isSetCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ... | [
"0.75269246",
"0.6953505",
"0.6663587",
"0.6640254",
"0.66210294",
"0.65403783",
"0.6425849",
"0.6425849",
"0.6407804",
"0.6269157",
"0.6266915",
"0.621676",
"0.62030375",
"0.60820335",
"0.60393274",
"0.6013803",
"0.6002512",
"0.5985208",
"0.5954433",
"0.5919696",
"0.5913627"... | 0.7623219 | 0 |
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 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_refresh) {
loadDataFromParse();
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79036397",
"0.78051436",
"0.77656627",
"0.7726445",
"0.7630767",
"0.76211494",
"0.75842685",
"0.75296193",
"0.74868536",
"0.74574566",
"0.74574566",
"0.7437983",
"0.7422003",
"0.7402867",
"0.7391276",
"0.73864174",
"0.7378494",
"0.73696834",
"0.736246",
"0.7355139",
"0.734... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.