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 |
|---|---|---|---|---|---|---|
Returns the last gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(
long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByGDFTendersByUserId_Last(
supplierI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDet... | [
"0.6845128",
"0.631901",
"0.59418875",
"0.58359283",
"0.5813405",
"0.5690324",
"0.564151",
"0.54413617",
"0.5392697",
"0.5378167",
"0.537175",
"0.53413993",
"0.53084594",
"0.53061146",
"0.52237064",
"0.51834476",
"0.51817185",
"0.5158278",
"0.5096941",
"0.50368553",
"0.500116... | 0.60601985 | 2 |
Returns the last gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(
long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {
return getPersistence().fetchByGDFTendersByUserId_Last(
supplierId, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\... | [
"0.631901",
"0.60601985",
"0.59418875",
"0.58359283",
"0.5813405",
"0.5690324",
"0.564151",
"0.54413617",
"0.5392697",
"0.5378167",
"0.537175",
"0.53413993",
"0.53084594",
"0.53061146",
"0.52237064",
"0.51834476",
"0.51817185",
"0.5158278",
"0.5096941",
"0.50368553",
"0.50011... | 0.6845128 | 0 |
Returns the gdf tender submission detailses before and after the current gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails[]
findByGDFTendersByUserId_PrevAndNext(
long tenderSubRefID, long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByGD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public sta... | [
"0.57202196",
"0.54199",
"0.54037505",
"0.5044118",
"0.4929889",
"0.489019",
"0.48380092",
"0.47878668",
"0.47825864",
"0.46124017",
"0.45465338",
"0.45107296",
"0.45017025",
"0.44785294",
"0.44348773",
"0.44144508",
"0.43972316",
"0.43756363",
"0.4363261",
"0.42799738",
"0.4... | 0.6384319 | 0 |
Removes all the gdf tender submission detailses where supplierId = &63; from the database. | public static void removeByGDFTendersByUserId(long supplierId) {
getPersistence().removeByGDFTendersByUserId(supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumb... | [
"0.64010495",
"0.5747822",
"0.5695447",
"0.56748253",
"0.5582617",
"0.558238",
"0.5562708",
"0.54649985",
"0.54254603",
"0.5388487",
"0.53003365",
"0.5272706",
"0.5271215",
"0.521607",
"0.5189579",
"0.5175708",
"0.5111617",
"0.5104265",
"0.508884",
"0.50759363",
"0.5068139",
... | 0.68182176 | 0 |
Returns the number of gdf tender submission detailses where supplierId = &63;. | public static int countByGDFTendersByUserId(long supplierId) {
return getPersistence().countByGDFTendersByUserId(supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n\tpublic int NoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_id) FROM suppl... | [
"0.7313868",
"0.65647984",
"0.65034807",
"0.64309675",
"0.62104464",
"0.6022463",
"0.5828416",
"0.58198696",
"0.5732197",
"0.56718683",
"0.5659879",
"0.5631629",
"0.5602353",
"0.5560752",
"0.5445404",
"0.5438907",
"0.5433548",
"0.5388708",
"0.5381465",
"0.53741556",
"0.535962... | 0.7180554 | 1 |
Caches the gdf tender submission details in the entity cache if it is enabled. | public static void cacheResult(
GDFTenderSubmissionDetails gdfTenderSubmissionDetails) {
getPersistence().cacheResult(gdfTenderSubmissionDetails);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"public void flushEntityCache() {\n super.flushEntityCache();\n }",
"@Override\n public void cacheResult(EntityDealer entity... | [
"0.5678779",
"0.56590605",
"0.5521769",
"0.50311625",
"0.4934079",
"0.4928972",
"0.49066618",
"0.4889288",
"0.47983852",
"0.47925994",
"0.47729024",
"0.47714758",
"0.4766856",
"0.47552973",
"0.47483295",
"0.47384727",
"0.47074765",
"0.46329772",
"0.46110868",
"0.45943078",
"0... | 0.6943599 | 0 |
Caches the gdf tender submission detailses in the entity cache if it is enabled. | public static void cacheResult(
List<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {
getPersistence().cacheResult(gdfTenderSubmissionDetailses);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"public void flushEntityCache() {\n super.flushEntityCache();\n }",
"@Override\n public void cacheResult(EntityDealer entityDealer) {\... | [
"0.69956166",
"0.58064306",
"0.5601917",
"0.50370723",
"0.50053406",
"0.50012565",
"0.49946186",
"0.497783",
"0.49756977",
"0.49734905",
"0.49638838",
"0.48934865",
"0.48857242",
"0.47966164",
"0.47939914",
"0.47911644",
"0.47889534",
"0.47843227",
"0.47721186",
"0.4761203",
... | 0.6089975 | 1 |
Creates a new gdf tender submission details with the primary key. Does not add the gdf tender submission details to the database. | public static GDFTenderSubmissionDetails create(long tenderSubRefID) {
return getPersistence().create(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createSubmission(String[] attributes, int docuID, int orgID) {\n\t\tint actID = ActivityDetailsService.getActivityDetailsByDocuID(docuID).getId();\n\t\tint submissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t//System.out.println... | [
"0.6060317",
"0.5467696",
"0.544367",
"0.5395554",
"0.53921705",
"0.5302194",
"0.5267055",
"0.52633196",
"0.5237253",
"0.5233755",
"0.52145624",
"0.51933527",
"0.51829785",
"0.5170652",
"0.5164278",
"0.5148354",
"0.51401484",
"0.5088352",
"0.5039158",
"0.50298136",
"0.5010757... | 0.73186016 | 0 |
Removes the gdf tender submission details with the primary key from the database. Also notifies the appropriate model listeners. | public static GDFTenderSubmissionDetails remove(long tenderSubRefID)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().remove(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.... | [
"0.5754766",
"0.54127777",
"0.53722227",
"0.5364778",
"0.5306185",
"0.52647907",
"0.5256878",
"0.52484685",
"0.5210748",
"0.5199261",
"0.5149375",
"0.5140188",
"0.5120291",
"0.51100904",
"0.5084368",
"0.50591266",
"0.50398105",
"0.5020618",
"0.50132304",
"0.50101095",
"0.4987... | 0.57859504 | 0 |
Returns the gdf tender submission details with the primary key or throws a NoSuchGDFTenderSubmissionDetailsException if it could not be found. | public static GDFTenderSubmissionDetails findByPrimaryKey(
long tenderSubRefID)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByPrimaryKey(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDeta... | [
"0.6832319",
"0.6430153",
"0.6388802",
"0.6021066",
"0.5908941",
"0.5894956",
"0.5868405",
"0.5791131",
"0.5542409",
"0.5515789",
"0.54211706",
"0.52956057",
"0.5273161",
"0.51715595",
"0.51239556",
"0.5111187",
"0.5096351",
"0.50870275",
"0.50577474",
"0.49305615",
"0.488203... | 0.7722571 | 0 |
Returns the gdf tender submission details with the primary key or returns null if it could not be found. | public static GDFTenderSubmissionDetails fetchByPrimaryKey(
long tenderSubRefID) {
return getPersistence().fetchByPrimaryKey(tenderSubRefID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuc... | [
"0.64527524",
"0.645007",
"0.6342994",
"0.58145034",
"0.5728281",
"0.56903476",
"0.5600816",
"0.5472116",
"0.5422319",
"0.5366813",
"0.53603613",
"0.53361833",
"0.52189976",
"0.5130653",
"0.49527454",
"0.49444437",
"0.4942163",
"0.4941437",
"0.49187666",
"0.4914055",
"0.49096... | 0.68684655 | 0 |
Returns all the gdf tender submission detailses. | public static List<GDFTenderSubmissionDetails> findAll() {
return getPersistence().findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"@Override\n\tp... | [
"0.65303296",
"0.5872183",
"0.548756",
"0.5397518",
"0.5350374",
"0.53400815",
"0.5289653",
"0.5246331",
"0.5241938",
"0.52365875",
"0.5201332",
"0.5185516",
"0.514166",
"0.5137776",
"0.5122614",
"0.50539434",
"0.49732426",
"0.49606895",
"0.49432003",
"0.4938747",
"0.4905342"... | 0.7932513 | 0 |
Returns a range of all the gdf tender submission detailses. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full... | public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {
return getPersistence().findAll(start, end);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\... | [
"0.8427116",
"0.79115385",
"0.6729891",
"0.6419376",
"0.62230754",
"0.59723914",
"0.49923286",
"0.48260152",
"0.47004065",
"0.46587855",
"0.45143783",
"0.44948733",
"0.4488657",
"0.4438348",
"0.44322962",
"0.4398956",
"0.4313475",
"0.42884496",
"0.42475963",
"0.42415926",
"0.... | 0.7573114 | 2 |
Returns an ordered range of all the gdf tender submission detailses. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return... | public static List<GDFTenderSubmissionDetails> findAll(
int start, int end,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTender... | [
"0.7835619",
"0.6889571",
"0.6739795",
"0.65772873",
"0.5433542",
"0.54093105",
"0.5266302",
"0.51865584",
"0.5107242",
"0.49731663",
"0.49097815",
"0.4899732",
"0.47916833",
"0.47635317",
"0.47540274",
"0.47243157",
"0.4720959",
"0.46702203",
"0.46298957",
"0.46281445",
"0.4... | 0.8366351 | 0 |
Returns an ordered range of all the gdf tender submission detailses. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return... | public static List<GDFTenderSubmissionDetails> findAll(
int start, int end,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator,
boolean useFinderCache) {
return getPersistence().findAll(
start, end, orderByComparator, useFinderCache);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlon... | [
"0.8366336",
"0.68884104",
"0.6741279",
"0.65757805",
"0.5433862",
"0.540944",
"0.5266197",
"0.5187412",
"0.5107266",
"0.49733266",
"0.49101812",
"0.4899433",
"0.47925523",
"0.47646785",
"0.47535202",
"0.47232625",
"0.4720218",
"0.46700934",
"0.4629963",
"0.4629504",
"0.45113... | 0.78350496 | 1 |
Removes all the gdf tender submission detailses from the database. | public static void removeAll() {
getPersistence().removeAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"... | [
"0.5834821",
"0.5809844",
"0.5605812",
"0.5517286",
"0.54975235",
"0.5492215",
"0.5489816",
"0.5486172",
"0.54694337",
"0.5456433",
"0.54314566",
"0.53956574",
"0.5391404",
"0.53553694",
"0.5334913",
"0.5322881",
"0.53112185",
"0.5291665",
"0.5288529",
"0.5273304",
"0.5263782... | 0.53596383 | 21 |
Returns the number of gdf tender submission detailses. | public static int countAll() {
return getPersistence().countAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberSubmissions() {\n\t\treturn submissions.size();\n\t}",
"public int numSubmissions() {\n int counter = 0;\n\n for (int i = 0; i < studentList.size(); i++) {\n // number of submits for each student in student list is accumulated\n counter += (studentList.get(i)).getNum... | [
"0.6745638",
"0.6500434",
"0.61228913",
"0.6059781",
"0.60444057",
"0.59226227",
"0.587792",
"0.5863273",
"0.5849942",
"0.5831046",
"0.5772577",
"0.57615304",
"0.5753792",
"0.5737675",
"0.5737318",
"0.57203066",
"0.5671869",
"0.567117",
"0.56690264",
"0.5668713",
"0.5660599",... | 0.0 | -1 |
Constructor for objects of class JacobDatabase | public JacobDatabase()
{
entries = new ArrayList<KantoDex>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public sqlDatabase() {\n }",
"public DB() {\r\n\t\r\n\t}",
"public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"public DatabaseTable() { }",
"private Db() {\n super(Ke.getDatabase(), null);\n }",
"pu... | [
"0.7479303",
"0.7293221",
"0.7241627",
"0.7117487",
"0.7101017",
"0.7006761",
"0.6897066",
"0.6897003",
"0.6896034",
"0.6829665",
"0.6809035",
"0.6803299",
"0.67780817",
"0.67694587",
"0.6740892",
"0.6731758",
"0.6727409",
"0.6691605",
"0.66763604",
"0.6657394",
"0.6594207",
... | 0.69509584 | 6 |
Adds an object of KantoDex and its subclasses to the database of entries. Will not add the same entry more than once. | public void addEntry(KantoDex entry)
{
if(entries.isEmpty())
{
entries.add(entry);
}
else
{
boolean notFound = true;
for(KantoDex entryInit : entries)
{
if(entry.getDexNumInt() == entryInit.getDexNumInt())
{
System.out.println("Error: Attempted to ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void save(T pojo) {\n\n Map<Class, Set<ReflectionUtils.DataDescriptor>> valueMap = new HashMap<>();\n\n try {\n ReflectionUtils.valuesForClasses(valueMap, null, pojo);\n\n for (Map.Entry<Class, Set<ReflectionUtils.DataDescriptor>> entry : valueMap.entrySet(... | [
"0.5894283",
"0.5839314",
"0.5604773",
"0.5598279",
"0.5553884",
"0.55477434",
"0.5503832",
"0.54978013",
"0.5484487",
"0.54091436",
"0.53811437",
"0.5265496",
"0.5256292",
"0.5229872",
"0.5201514",
"0.5195356",
"0.51788926",
"0.5170344",
"0.5169224",
"0.5127984",
"0.5109111"... | 0.59178066 | 0 |
Prints out the Pokedex number, name, and types of every entry in the database. | public void printAllSummaries()
{
String sum = "";
for(KantoDex entry : entries)
{
sum = entry.getDexNum() + ": " + entry.getName() + " Types: " + entry.getType1();
if(!entry.getType2().equals(""))
{
sum += "/" + entry.getType2();
}
System.out.println(sum);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured d... | [
"0.6169886",
"0.6146409",
"0.6008903",
"0.5967292",
"0.5904839",
"0.58699393",
"0.58496445",
"0.58214164",
"0.5804084",
"0.58034694",
"0.5798254",
"0.57705796",
"0.5738028",
"0.57353836",
"0.57352877",
"0.5699187",
"0.56812876",
"0.5674843",
"0.5673075",
"0.560601",
"0.560179... | 0.65788144 | 0 |
Finds an entry based on its Pokedex number and prints out all its information. | public void findByDexNumber(String dexNum)
{
boolean found = false;
for(KantoDex entry : entries)
{
if(dexNum.equals(entry.getDexNum()))
{
found = true;
entry.display();
}
}
if(!found)
{
System.out.println("No entries were found with the Pokedex number '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void numberLookup() {\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getNumber() == entryNumber)\n\t\t\t.forEach(n -> System.out.println(\"This is the number of \" + n.getName()));\n\t}",
"public static void searchNumb... | [
"0.6366916",
"0.58567053",
"0.58319247",
"0.5658806",
"0.5609068",
"0.55580115",
"0.5503341",
"0.5487861",
"0.5445751",
"0.5344605",
"0.52897185",
"0.52390224",
"0.52149206",
"0.5188234",
"0.51590073",
"0.51529413",
"0.51093704",
"0.5102075",
"0.5055341",
"0.50224197",
"0.502... | 0.69174486 | 0 |
Finds all of the entries under a specific type and prints out all their information. | public void findByType(String type)
{
boolean found = false;
for(KantoDex entry : entries)
{
if(entry.getTypes1().contains(type) && !type.equals(""))
{
found = true;
}
}
if(!found)
{
System.out.println("You have input a nonexistent type, or the type was no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.... | [
"0.66501987",
"0.5996399",
"0.5763644",
"0.5711053",
"0.56916755",
"0.56723917",
"0.5616846",
"0.5591749",
"0.55623317",
"0.55426514",
"0.5483274",
"0.5416164",
"0.5407632",
"0.53999054",
"0.5394636",
"0.53861654",
"0.5362366",
"0.5334432",
"0.5329408",
"0.53151137",
"0.53146... | 0.7827927 | 0 |
Finds all entries from a specific region and prints out all their information. | public void findByRegion(String region)
{
boolean found = false;
for(KantoDex entry : entries)
{
if(entry.getRegion().equals(region))
{
found = true;
}
}
if(!found)
{
System.out.println("You have input a nonexistent region.");
}
else
{
System... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printRegionsNames() {\n for (int i = 0; i < regionList.length; i++) {\n System.out.println(\"Region #\" + (i + 1) + \": \" + regionList[i].getRegionName());\n }\n }",
"public void printRegionStatus() {\n for (int i = 0; i < numRegions; i++) {\n System.out.print(regionList[i].getRe... | [
"0.64973235",
"0.6199453",
"0.60407406",
"0.593492",
"0.565898",
"0.5641847",
"0.5619484",
"0.5487579",
"0.54695195",
"0.543306",
"0.54149956",
"0.5397453",
"0.5315487",
"0.5312071",
"0.52832234",
"0.52764064",
"0.5262888",
"0.5244633",
"0.5223212",
"0.5204192",
"0.5196366",
... | 0.7723575 | 0 |
getter and setter methods zone | public Text getIdAttachHolder()
{
return idAttachHolder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"public Zone getZone() {\n/* 4808 */ return this.zone;\n/* */ }",
"public void get() {\n }",
"@Override\n public void get() {}",
"public int getx(){\r\n return z;\r\n}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public T get() {\n ... | [
"0.63166136",
"0.61737466",
"0.61150026",
"0.6077099",
"0.59894294",
"0.5955144",
"0.5944922",
"0.5903446",
"0.5903446",
"0.57830113",
"0.57808983",
"0.5780694",
"0.5774641",
"0.57501763",
"0.57383037",
"0.5736331",
"0.5719467",
"0.5710807",
"0.5706233",
"0.5669176",
"0.56633... | 0.0 | -1 |
Active la serrure sans objet | public void activer() throws ActivationImpossibleException {
throw new ActivationImpossibleException("Serrure non activable sans objet, faut pas jouer au plus malin avec moi.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public boolean getActive();",
"public boolean getActive();",
"public void activate();",
"void activate();",
"void activate();",
"public boolean activate();",
"@Override\n public void useActive(Archipelago myArchipelago) {\n }",
"public voi... | [
"0.7233304",
"0.71083957",
"0.71083957",
"0.7102727",
"0.7066203",
"0.7066203",
"0.70432067",
"0.7031604",
"0.70266134",
"0.6996955",
"0.6996955",
"0.6996955",
"0.692915",
"0.68876076",
"0.6873721",
"0.6752684",
"0.6742787",
"0.6723705",
"0.6723705",
"0.6723705",
"0.6723705",... | 0.0 | -1 |
/ Tests that the current selection button is the default option on the Set Equate dialog if there is a range of addresses selected. | @Test
public void testApplyToOptions_SetEquate_Selection() {
// put the cursor on a scalar
putCursorOnOperand(0x1004bbd, 0);
// make a selection containing the scalar above.
makeSelection(tool, program, addr("1004bbd"), addr("1004bc5"));
SetEquateDialog d = showSetEquateDialog();
JRadioButton applyToCu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }",
"protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }",
"public abstract boolean hasSelection();",... | [
"0.6097894",
"0.5930597",
"0.5841824",
"0.57236296",
"0.57144326",
"0.5565184",
"0.5536705",
"0.55242145",
"0.5517325",
"0.54729337",
"0.54333735",
"0.54189974",
"0.5392081",
"0.5386499",
"0.53720355",
"0.5364088",
"0.53171676",
"0.5315013",
"0.5311373",
"0.52990603",
"0.5283... | 0.6507489 | 0 |
Notice b is before a, since we pop b first | private int operation(int b, char op, int a) {
switch (op) {
case '+': return a + b;
case '-': return a - b;
case '*': return a * b;
case '/': return a / b; //assume b is not 0
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void addBack(T b) {\r\n head = head.addBack(b);\r\n }",
"public O before(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != 0) //is defined and not first\r\n return get(index-1);\r\n else return null;\r\n }",
"private static int ... | [
"0.6341844",
"0.6043025",
"0.5920433",
"0.5909741",
"0.5879814",
"0.5823406",
"0.5770422",
"0.5769018",
"0.5742887",
"0.57392156",
"0.5737959",
"0.5686352",
"0.56742305",
"0.5646252",
"0.56454134",
"0.5622701",
"0.5614487",
"0.56018776",
"0.5581031",
"0.55753136",
"0.5562698"... | 0.0 | -1 |
helper function to check precedence of the uppermost operator in the ops stack and current operator | private boolean hasPrecedence(char op1, char op2) {
if (op1 == '(' || op1 == ')') {
return false;
}
if ((op1 == '+' || op1 == '-') && (op2 == '*' || op2 == '/')) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getPrecedence(char operator)\r\n\t{\r\n\t\tswitch (operator)\r\n\t\t{\r\n\t\tcase '(': case ')': return 0;\r\n\t\tcase '+': case '-': return 1;\r\n\t\tcase '*': case '/': return 2;\r\n\t\tcase '^':\t\t\treturn 3;\r\n\t\tcase '.': return 4;\r\n\t\t} // end switch\r\n\r\n\t\treturn -1;\r... | [
"0.71332574",
"0.70664996",
"0.69280034",
"0.6806658",
"0.6806658",
"0.6789137",
"0.6789046",
"0.6787614",
"0.676314",
"0.6709789",
"0.6669511",
"0.6647187",
"0.6640957",
"0.66386944",
"0.66386944",
"0.65712434",
"0.6419263",
"0.64113194",
"0.6408598",
"0.6398397",
"0.639378"... | 0.6768376 | 8 |
this implements Start button | public void start() {
isRunning = true;
Thread thread = new myThread();
thread.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startClick() {\n if(!isRunning){\n startButton.setText(\"Pause\");\n isRunning = true;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n ... | [
"0.77655184",
"0.74780446",
"0.7453772",
"0.7417218",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.73888123",
"0.7380345",
"0.7334621",
"0.72529453",
"0.72464144",
... | 0.0 | -1 |
this implements Stop button | public void stop() {
isRunning = false;
System.out.println("Stop sim");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stopPressed() {\n // display\n TextLCD.print(STOP);\n // reset\n reset();\n }",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void st... | [
"0.80652934",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.79822046",
"0.7979612",
"0.7947305",
"0.7869009",
"0.78591377",
... | 0.0 | -1 |
getter for H x coordinate | public int getHorX() {
return horX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getXh() {\n return xh;\n }",
"public int getXh() {\r\n return localXh;\r\n }",
"public int getX()\r\n {\r\n return xCoord;\r\n }",
"public float getX() { return xCoordinate;}",
"protected Number getX() {\n return this.xCoordinate;\n }",
"pu... | [
"0.8129076",
"0.7693596",
"0.7375631",
"0.7329211",
"0.7311245",
"0.72636724",
"0.7247999",
"0.72120655",
"0.7207875",
"0.7178341",
"0.7178341",
"0.7178341",
"0.7178341",
"0.7178341",
"0.7178341",
"0.71594846",
"0.7134336",
"0.7130578",
"0.7112398",
"0.71000713",
"0.709731",
... | 0.74540037 | 2 |
setter for H x coordinate | public void setHorX(int horX) {
this.horX = horX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setXh(int param) {\r\n this.localXh = param;\r\n }",
"public void setXh(String xh) {\n this.xh = xh == null ? null : xh.trim();\n }",
"public void setH(int h) {\n this.H = h;\n\n }",
"public void setH(int h) {\n\t\tthis.H = h;\n\t}",
"public void setH(doubl... | [
"0.7778175",
"0.7483183",
"0.7315682",
"0.72596985",
"0.7188847",
"0.71704996",
"0.7147077",
"0.7060791",
"0.6984487",
"0.69819814",
"0.6863614",
"0.67645097",
"0.6711059",
"0.67108935",
"0.6708689",
"0.6652715",
"0.6617996",
"0.6595963",
"0.65689343",
"0.65594566",
"0.654072... | 0.6771182 | 11 |
getter for H y coodinate | public int getHorY() {
return horY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getH();",
"int getCoorY();",
"public float getHlado() {\r\n return (this.lado);\r\n }",
"public double getH() {\n return h;\n }",
"public double getH() {\n return h;\n }",
"public int getY ()\n {\n return coY;\n }",
"public double getH_() {\n\t\t... | [
"0.73604375",
"0.7308537",
"0.7036172",
"0.6987983",
"0.6987983",
"0.69386244",
"0.6824759",
"0.6817235",
"0.6753732",
"0.6743464",
"0.67378724",
"0.6736415",
"0.671157",
"0.67105526",
"0.6683743",
"0.6682238",
"0.6678499",
"0.66781306",
"0.6655024",
"0.6644701",
"0.6643076",... | 0.6688074 | 14 |
setter for H y coodinate | public void setHorY(int horY) {
this.horY = horY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setH(Double h);",
"public void setH(double h) {\n this.h = h;\n }",
"public void setH(double value) {\n this.h = value;\n }",
"public void setH_(double h_) {\n\t\tthis.h_ = h_;\n\t}",
"public static void setH(double set_h) {\r\n\t\th = set_h;\t\r\n\t\t}",
"public void setH... | [
"0.7611601",
"0.7535073",
"0.7482035",
"0.73950046",
"0.73062307",
"0.72653395",
"0.7120586",
"0.71047175",
"0.7043358",
"0.6994793",
"0.6994793",
"0.6972397",
"0.69616675",
"0.69474304",
"0.6927818",
"0.6870073",
"0.6833595",
"0.68269473",
"0.68269473",
"0.68269473",
"0.6822... | 0.6458366 | 69 |
getter for street x | public int getHorSTX() {
return horSTX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getStreet();",
"public String getStreet()\n {\n return street;\n }",
"public String getStreet(){\n return street;\n }",
"public String getStreet() {\n return this.street;\n }",
"public String getStreet() {\n return street;\n }",
"public String getStreet() {\n ... | [
"0.80160445",
"0.7370268",
"0.72826385",
"0.7237447",
"0.7226345",
"0.7226345",
"0.7158945",
"0.7154065",
"0.7154065",
"0.71275693",
"0.7124637",
"0.7124637",
"0.69876176",
"0.69876176",
"0.6933485",
"0.6918002",
"0.682293",
"0.67801845",
"0.67796946",
"0.67787933",
"0.677154... | 0.0 | -1 |
getter for street y | public int getHorSTY() {
return horSTY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getStreet();",
"java.lang.String getY();",
"public final double getY() { return location.getY(); }",
"public String getYx() {\n return yx;\n }",
"@Override\n\tpublic java.lang.String getStreet2() {\n\t\treturn _candidate.getStreet2();\n\t}",
"protected Number getY() {\n return thi... | [
"0.6773571",
"0.6661512",
"0.634264",
"0.6322395",
"0.63118786",
"0.6297155",
"0.62715983",
"0.6270863",
"0.6221554",
"0.6220598",
"0.62104124",
"0.62007517",
"0.61817706",
"0.6148292",
"0.61472327",
"0.6146244",
"0.61421746",
"0.61381084",
"0.6135638",
"0.6130195",
"0.612882... | 0.0 | -1 |
my thread this runs simulation | public void run() {
System.out.println("Start sim");
for (; isRunning;) {
//int horLaneNum = optView.getUserHorNum();
//if (horLaneNum == 1) {
horX++;
horSTX = horSTX;
horSTY = horSTY;
verY++;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"public void run()\r\n/* 201: */ {\r\n/* 202:161 */ while (this.active) {\r\n/* 203:162 */ synchronized (this)... | [
"0.71208715",
"0.7084906",
"0.70410967",
"0.7039409",
"0.7039409",
"0.7002645",
"0.6997677",
"0.6997677",
"0.69408154",
"0.69345766",
"0.6906219",
"0.6861377",
"0.6858809",
"0.6851947",
"0.68495005",
"0.6847131",
"0.68410724",
"0.68268627",
"0.6823546",
"0.68209624",
"0.68209... | 0.70301986 | 5 |
Allows selecting tests for execution | @Incubating
public interface TestSelection {
/**
* Includes given test in execution.
*
* @param testClass test class name
* @param testMethod test method name
* @return this selection object
* @since 1.10
*/
TestSelection includeTest(String testClass, String testMethod);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}",
"TestSelection includeTest(String testClass, String testMethod);",
"@Test\... | [
"0.7242712",
"0.68214726",
"0.6609573",
"0.6516446",
"0.64742994",
"0.64694977",
"0.6459088",
"0.64188075",
"0.6406863",
"0.6366744",
"0.63366306",
"0.63335896",
"0.6315214",
"0.63145965",
"0.63019496",
"0.629983",
"0.62984353",
"0.62885725",
"0.62843573",
"0.6283898",
"0.627... | 0.61918145 | 23 |
Includes given test in execution. | TestSelection includeTest(String testClass, String testMethod); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Incubating\npublic interface TestSelection {\n\n /**\n * Includes given test in execution.\n *\n * @param testClass test class name\n * @param testMethod test method name\n * @return this selection object\n * @since 1.10\n */\n TestSelection includeTest(String testClass, String t... | [
"0.6602802",
"0.57848966",
"0.5610829",
"0.5607111",
"0.55150366",
"0.54981416",
"0.54833025",
"0.5460669",
"0.544419",
"0.5434419",
"0.5411544",
"0.54019403",
"0.53988564",
"0.5393959",
"0.5390511",
"0.5342518",
"0.53302556",
"0.5323316",
"0.5291713",
"0.5274791",
"0.5254967... | 0.73336697 | 0 |
Definition of methods to upload images based on fire | void uploadPicture(Uri uri, ProgressDialog progressDialog); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ImageUpload {\n void imageUploadToServer(int selectedImageResourceId);\n}",
"public interface FileUploadService {\n\n /**\n *\n * @param form\n * @param path\n * @param fileName\n * @throws Exception\n */\n void uploadBase64Image(Base64ImageForm form, String path... | [
"0.67993224",
"0.6682273",
"0.6452305",
"0.64489186",
"0.6437665",
"0.63840145",
"0.6365122",
"0.63307905",
"0.63307905",
"0.6289526",
"0.6234014",
"0.6180016",
"0.6142073",
"0.6134552",
"0.61314464",
"0.61237496",
"0.6068849",
"0.60663784",
"0.6044054",
"0.60078967",
"0.6002... | 0.0 | -1 |
Settings to connect to smart meter Serial Port: USB0 on Linux Client Address: 16, one byte Server Address: Logical 1, Physical 17, 2 Byte Referencing: Logical Name Authorization: LOW (password needed) | public static void main(String[] args) {
HdlcClientConnectionSettings settings = new HdlcClientConnectionSettings("/dev/ttyUSB0", new HdlcAddress(16),
new HdlcAddress(1, 17, 2), ReferencingMethod.LN);
settings.setAuthentication(Authentication.LOW);
IClientConnectionFactory factory = ServiceLoader.load(IClien... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void connect()\n\t{\n\t\tUUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n\t\ttry\n\t\t{\n\t sock = dev.createRfcommSocketToServiceRecord(uuid); \n\t sock.connect();\n\t connected = true;\n\t dev_out = sock.getOutputSt... | [
"0.6661208",
"0.62866867",
"0.62715137",
"0.6079986",
"0.60201627",
"0.6012476",
"0.5975727",
"0.5930033",
"0.5905075",
"0.5886291",
"0.5854002",
"0.5801817",
"0.57967186",
"0.5759491",
"0.5750191",
"0.5746598",
"0.57267743",
"0.5709283",
"0.57072663",
"0.56770504",
"0.567705... | 0.55134785 | 32 |
Return current MatchDetails (child) object | public Object getChild(int groupPosition, int childPosititon)
{
return playersDetails.get(groupPosition).get(childPosititon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Match getMatch() {\n return match;\n }",
"@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}",
"private static MatchInfo getMatchInfoStandardSession(int idMatch)\n {\n try\n {\n if( idMatch <= 0)\n {\n //non può essere una partita valida\... | [
"0.7029776",
"0.6270503",
"0.58434266",
"0.58114475",
"0.5732924",
"0.5708971",
"0.56756145",
"0.56653124",
"0.56579465",
"0.5644104",
"0.56349266",
"0.5601259",
"0.55201894",
"0.5504025",
"0.54814786",
"0.545379",
"0.5452883",
"0.54487437",
"0.5424382",
"0.5414162",
"0.53722... | 0.5141227 | 32 |
Get instance of a single Player (Child) object | public View getChildView(int groupPosition, final int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {
Player player = (Player) getChild(groupPosition, childPosition);
// Inflate layout
if (convertView == null) {
LayoutInflater i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Player getPlayer();",
"Player getPlayer(UUID playerId);",
"public Player getPlayer();",
"public Player getPlayer();",
"public static synchronized Player getInstance(){\n if(Player.player == null){\n Player.player = new Player();\n }\n return Player.player;\n }",
"protec... | [
"0.7278698",
"0.71267265",
"0.70149773",
"0.70149773",
"0.70057744",
"0.6876439",
"0.6859934",
"0.6803742",
"0.67994624",
"0.6762182",
"0.67005765",
"0.6699256",
"0.6672306",
"0.66713387",
"0.66587394",
"0.66587394",
"0.66587394",
"0.66587394",
"0.66587394",
"0.6649444",
"0.6... | 0.0 | -1 |
"getters" and "setters" autogenerated | public int getDirection() {
return direction;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"@Override\n ... | [
"0.67245466",
"0.6616195",
"0.6439289",
"0.6341756",
"0.6268741",
"0.6237879",
"0.6237879",
"0.61868",
"0.6141978",
"0.6141338",
"0.61318845",
"0.61265165",
"0.61009014",
"0.60485125",
"0.6042671",
"0.6039016",
"0.6022867",
"0.6012118",
"0.59885335",
"0.594858",
"0.5923321",
... | 0.0 | -1 |
Initializes a new event properties map with the OGEMA properties plus the standard bundle, message and timestamp properties. | public static Map<String, ?> createEventProperties(ApplicationManager appman, String message, LocalizableEventMessage title, LocalizableEventMessage messageL10N) {
Map<String, Object> eventProps = new HashMap<>();
eventProps.put(EventConstants.BUNDLE, appman.getAppID().getBundle());
eventProps.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createApplicationProperties()\n {\n _applicationPropertiesMap = new HashMap<String,Object>();\n _message.setApplicationProperties(new ApplicationProperties(_applicationPropertiesMap));\n }",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<Str... | [
"0.62012583",
"0.58170897",
"0.57942665",
"0.54712313",
"0.53740406",
"0.53610855",
"0.5295105",
"0.5262598",
"0.52614576",
"0.52301896",
"0.5228205",
"0.5221778",
"0.5196976",
"0.51895326",
"0.5128564",
"0.51145357",
"0.5108666",
"0.50952935",
"0.50629425",
"0.5055173",
"0.5... | 0.6353578 | 0 |
Guardar usuari en Cloud | public static void guardarUsuariCloud(SPCloud p_spCloud, Usuari p_usuari) {
try {
// Guardar les dades del Usuari al Cloud
p_spCloud.setValUsuari(p_usuari);
} catch (Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void effacerEnregistrer(){\n users.clear();\n }",
"public void registrar() {\n try {\r\n do {\r\n //totalUsuarios = this.registraUnUsuario(totalUsuarios);\r\n this.registraUnUsuario();\r\n } while (!this.salir());\r\n } catch (IOE... | [
"0.60838187",
"0.6049282",
"0.6011283",
"0.5994908",
"0.59537613",
"0.59117824",
"0.58286065",
"0.58203447",
"0.5817833",
"0.58158976",
"0.57977057",
"0.5792862",
"0.57923156",
"0.57767934",
"0.5761554",
"0.5748731",
"0.5741247",
"0.57388663",
"0.5727461",
"0.57062966",
"0.56... | 0.6562854 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner input = new Scanner(System.in);//creates a scanner to scan input
String[] heroes = {"Spiderman","Ironman","Doctor Strange","Hulk","Thor"};//a string array of heroes
String[] powers = new String[heroes.length];//creates string array 'powers' to store within th... | {
"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 |
method takes in an employeeID to be deleted. It them prepares the URL needed to send to the API | public static void deleteEmployee(int employeeID) {
try {
// request holds the complete URL to be passed sent to the API
URL request = new URL(endpoint + "/" + employeeID);
// opens connection with API, sends data via URL request
HttpURLConnection connection = (HttpURLConnection) request.openConnection(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteEmployee(Long employeeId) throws ApiDemoBusinessException;",
"private void deleteEmployee(HttpServletRequest request, HttpServletResponse response)\r\n\t\tthrows Exception {\n\t\tString theEmployeeId = request.getParameter(\"employeeId\");\r\n\t\t\r\n\t\t// delete employee from database\r\n\tem... | [
"0.73687094",
"0.71472615",
"0.7121791",
"0.7033502",
"0.6996115",
"0.69952357",
"0.6930787",
"0.6869495",
"0.68462884",
"0.6830383",
"0.6802696",
"0.6776946",
"0.6747148",
"0.67469674",
"0.67274725",
"0.67237455",
"0.6709003",
"0.66998166",
"0.6676465",
"0.6636108",
"0.66331... | 0.7896763 | 0 |
Creates new form cusRegister | public cusRegister() throws ClassNotFoundException {
initComponents();
con = DBConnect.connection();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public String createRegisterForm(Register reg)\n {\n DBConnect db = new DBConnect();\n Connection con;\n ... | [
"0.69619364",
"0.69619364",
"0.69619364",
"0.6918036",
"0.66362685",
"0.65476006",
"0.65247196",
"0.6436979",
"0.63706917",
"0.63559675",
"0.63435566",
"0.63431644",
"0.63400686",
"0.6318826",
"0.6316217",
"0.6277238",
"0.6266646",
"0.62662464",
"0.6251259",
"0.6251259",
"0.6... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
userNameBox = new javax.swing.JTextField();
emailBox =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"... | 0.0 | -1 |
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see | public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setLookAndFeel() {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n ... | [
"0.7948844",
"0.77676886",
"0.770006",
"0.75052917",
"0.7287361",
"0.7227688",
"0.72236377",
"0.72196996",
"0.71810573",
"0.7155472",
"0.7119134",
"0.71118087",
"0.70989954",
"0.70609176",
"0.7049158",
"0.6913391",
"0.681691",
"0.6704903",
"0.669436",
"0.6584968",
"0.6573832"... | 0.55118644 | 68 |
Get the current MBean Server. | protected MBeanServer getMBeanServer() throws Exception {
if (mbeanServer == null) {
mbeanServer = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
}
return mbeanServer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public MBeanServer getMBeanServer() {\n return mBeanServer;\n }",
"public MBeanInfo getMBeanInfo() {\n buildDynamicMBeanInfo();\n return dMBeanInfo;\n }",
"public Object server() {\n return this.server;\n }",
"public ServerInstance getServerInstance() {\n return ... | [
"0.808723",
"0.70726454",
"0.6616849",
"0.6552534",
"0.6463708",
"0.6429862",
"0.62918615",
"0.6270511",
"0.62690914",
"0.6269036",
"0.62526083",
"0.6214537",
"0.60685503",
"0.60629946",
"0.59799206",
"0.59082526",
"0.59062064",
"0.58867097",
"0.5820038",
"0.5820038",
"0.5811... | 0.763532 | 1 |
Recoge los datos de la vista antes de comenzar con la busqueda | @Override
public boolean startSearch() {
String str = "";
Dimension d = view.getInit();
if (d == null) {
str = str + "Falta la posicion de inicio.\n";
} else {
y0 = (int) d.getHeight();
x0 = (int) d.getWidth();
}
d = view.getGoal();
if (d == null) {
str = str + "Falta la posicion de met... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void buscar (String valor){\n try {\n int f,i;\n conn=App.ConnectionBd.Enlace(conn);\n String sql1=\"Select * from Reserva where idReserva like '%\"+valor+\"%' or tipoReserva like '%\"+valor+\"%';\";\n \n Statement st1=conn.createStatement();\n ... | [
"0.6959833",
"0.6924135",
"0.68292856",
"0.6824132",
"0.67960036",
"0.6653335",
"0.66329867",
"0.66246",
"0.6623336",
"0.65720844",
"0.6512536",
"0.6507414",
"0.645299",
"0.64467275",
"0.6421578",
"0.6386944",
"0.63837445",
"0.63805765",
"0.63787705",
"0.63748616",
"0.6367442... | 0.0 | -1 |
Para que no se quede bloqueda la interfaz | private void goSearch() {
Thread t = new Thread(this);
t.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }",
"public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }",
"public void verEstado(){\n for(int i = 0;i <NUMERO_... | [
"0.59116733",
"0.57047844",
"0.5604084",
"0.55484456",
"0.5542527",
"0.5530446",
"0.5494076",
"0.5490857",
"0.5457317",
"0.5447883",
"0.54391253",
"0.543823",
"0.54179865",
"0.54064626",
"0.53860414",
"0.5383465",
"0.5373862",
"0.5338342",
"0.53239363",
"0.53058815",
"0.53022... | 0.0 | -1 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
mhl = new HighScore();
showHighScoreView();
//showTestView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivit... | [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",... | 0.0 | -1 |
/ id = (String) bd.get("id"); nome = (String) bd.get("nome"); raca = (String) bd.get("raca"); idade = (String) bd.get("idade"); sexo = (String) bd.get("sexo"); cor = (String) bd.get("cor"); imgPerfil = (String) bd.get("imgPerfil"); img01 = (String) bd.get("img01"); img02 = (String) bd.get("img02"); img03 = (String) bd.... | public void recuperarDados() {
id = getArguments().getString("id");
nome = getArguments().getString("nome");
raca = getArguments().getString("raca");
idade = getArguments().getString("idade");
sexo = getArguments().getString("sexo");
cor = getArgu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<tipoDetalle> obtenerDetallesBD(){\n List<tipoDetalle> detalles=new ArrayList<>();\n try{\n //Obteniendo el ID del auto desde la activity de Mostrar_datos\n String idAuto;\n Bundle extras=getIntent().getExtras();\n if(extras!=null)\n {... | [
"0.60321754",
"0.5827526",
"0.5748061",
"0.5696685",
"0.56581354",
"0.5619806",
"0.55558586",
"0.5547486",
"0.5543419",
"0.55320054",
"0.5516659",
"0.54916865",
"0.54815984",
"0.5477986",
"0.5467324",
"0.5464549",
"0.5462818",
"0.5462818",
"0.5453239",
"0.54324675",
"0.541741... | 0.5130415 | 61 |
/ Showing splash screen with a timer. This will be useful when you want to show case your app logo / company | @Override
public void run() {
// This method will be executed once the timer is over
// Start your app main activity
if (serverUrl != null)
emerTokenApiCall();
else {
Bundle bndlanimation = ActivityOption... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void displaySplashScreen() {\n\t\t// Creates new thread to act as timer.\n\t\tThread logoTimer = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\n\t\t\t\t\tint logoTimer = 0;\n\t\t\t\t\t// Pauses for SPLASH_TIME amount of time\n\t\t\t\t\twhile (logoTimer < SPLASH_TIME) {\n\t\t\t\t\t\tsleep(100... | [
"0.8441948",
"0.7592386",
"0.758094",
"0.74995446",
"0.7415382",
"0.7305605",
"0.72871166",
"0.72542226",
"0.72480965",
"0.72148776",
"0.72088456",
"0.71703327",
"0.71419084",
"0.71362996",
"0.7089052",
"0.70866483",
"0.70741343",
"0.7045565",
"0.70037585",
"0.699583",
"0.693... | 0.6335088 | 49 |
NonAndroid accessor that allows the value of the AIRPLANE_MODE_ON setting to be set. | public static void setAirplaneMode(boolean isAirplaneMode) {
Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, isAirplaneMode ? 1 : 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"deprecation\")\n\tstatic boolean getAirplaneMode(Context context) {\n\t\t// Log.d(TAG, \"getAirplaneMode\");\n\t\treturn Settings.System.getInt(context.getContentResolver(),\n\t\t\t\tSettings.System.AIRPLANE_MODE_ON, 0) != 0;\n\t}",
"int getACMode();",
"static boolean m61447d(Context contex... | [
"0.70852274",
"0.6639002",
"0.6537647",
"0.6459094",
"0.64544713",
"0.645351",
"0.63288504",
"0.62046754",
"0.6046065",
"0.5991696",
"0.5977417",
"0.597673",
"0.59370416",
"0.58287835",
"0.58244276",
"0.57862645",
"0.5771153",
"0.5757575",
"0.57268894",
"0.5725956",
"0.570907... | 0.7164815 | 0 |
NonAndroid accessor that allows the value of the WIFI_ON setting to be set. | public static void setWifiOn(boolean isOn) {
Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isWifiEnabled() {\n return (mask / 2) % 2 == 1;\n }",
"public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }",
"public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }",
"public boolean WifiAvaible() {\n boolean Wifi ... | [
"0.65544426",
"0.64450675",
"0.64450675",
"0.6370994",
"0.63413095",
"0.627599",
"0.61900693",
"0.6068346",
"0.6034604",
"0.6029602",
"0.60184675",
"0.59856653",
"0.59833777",
"0.59328234",
"0.5926748",
"0.5907292",
"0.59019697",
"0.5855669",
"0.5849844",
"0.5829477",
"0.5819... | 0.7348311 | 0 |
NonAndroid accessor thatallows the value of the TIME_12_24 setting to be set. | public static void set24HourTimeFormat(boolean use24HourTimeFormat) {
Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.TIME_12_24, use24HourTimeFormat ? 24 : 12);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void set24Hour( boolean hour24 ) {\n AM_PM = !hour24;\n }",
"public static boolean isTime24HourFormat( Activity act ) {\r\n\t\tContentResolver cr = act.getContentResolver();\r\n\t\tString v = Settings.System.getString( cr, android.provider.Settings.System.TIME_12_24 );\r\n\t\tif ( v == nu... | [
"0.6987486",
"0.66439736",
"0.6271726",
"0.6251759",
"0.5804934",
"0.57353896",
"0.5678826",
"0.55412793",
"0.5520568",
"0.54910207",
"0.5480159",
"0.54659075",
"0.54473734",
"0.5386038",
"0.53698957",
"0.5367954",
"0.53668267",
"0.5349906",
"0.53463143",
"0.5333484",
"0.5326... | 0.70606583 | 0 |
TODO Autogenerated method stub | @Override
public DataResult<List<JobPosition>> getAll() {
return new SuccessDataResult<List<JobPosition>>(this.jobPositionDao.findAll(), "Job positions listed.");
} | {
"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 |
Multiplica matrixA x matrixB atribuindo a cada linha da matriz uma nova thread. | protected void execute() {
try {
matrixC = new Integer[matrixA.length][matrixA.length];
WorkerThread2[] threads = new WorkerThread2[matrixA.length]; // Criando as threads
for (int i = 0; i < matrixA.length; i++) {
threads[i] = new WorkerThread2(i, matrixA, matrixB, matrixC);
threads[i].start();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t ... | [
"0.67699707",
"0.670065",
"0.64082134",
"0.6243345",
"0.6216185",
"0.6152218",
"0.6145567",
"0.61159116",
"0.6086004",
"0.60592735",
"0.6050046",
"0.5981674",
"0.59687334",
"0.59482974",
"0.5867342",
"0.5819302",
"0.57926327",
"0.5745893",
"0.5734672",
"0.57046574",
"0.569928... | 0.69199395 | 0 |
Created by king on 15511. | public interface WebConstants {
String SESSION_USER = "user";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {... | [
"0.609022",
"0.6032336",
"0.60079885",
"0.59258634",
"0.5902028",
"0.5902028",
"0.586608",
"0.5824697",
"0.58137697",
"0.58073467",
"0.5797129",
"0.5797129",
"0.5797129",
"0.5797129",
"0.5797129",
"0.5786778",
"0.57804805",
"0.57477784",
"0.5747712",
"0.5732344",
"0.57255894"... | 0.0 | -1 |
Method to save a collection of VSTP messages. | public void save(List<VSTPMsg> vstpMsgList) {
vstpMsgRepository.save(vstpMsgList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void save(MessageListDto messages);",
"public static void saveMessages(ArrayList<Message> messages,String filename)\r\n\t{\r\n\t\t//Write to disk\r\n\t\ttry \r\n\t\t{\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File(filename)));\r\n\t\t\toos.writeObject(messages);\r\n\t\t\to... | [
"0.67672116",
"0.6087225",
"0.55063736",
"0.5417271",
"0.53954035",
"0.53856647",
"0.5365226",
"0.53394234",
"0.53280234",
"0.5289143",
"0.52305007",
"0.5225465",
"0.5185231",
"0.5175227",
"0.5170065",
"0.5164432",
"0.515354",
"0.5150237",
"0.51168907",
"0.5111524",
"0.510698... | 0.75001615 | 0 |
Creates new form NewJPanel | public HoaDonJPanel() {
initComponents();
this.init();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NewJPanel() {\n initComponents();\n }",
"public NewJPanel() {\n initComponents();\n }",
"protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout alig... | [
"0.817477",
"0.817477",
"0.7585207",
"0.7258462",
"0.71809214",
"0.71031886",
"0.70445937",
"0.70364994",
"0.69823575",
"0.6935976",
"0.6924051",
"0.68552434",
"0.67962646",
"0.67905277",
"0.67226845",
"0.66556996",
"0.66530615",
"0.6632589",
"0.660701",
"0.65997523",
"0.6585... | 0.0 | -1 |
All classes that need to listen to events should implement this interface | public interface IEventListener {
/**
* Handles an event
* @param e event
* @return true if the event should be consumed and not propagated, otherwise false
*/
boolean onEvent(Event e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Event {\n\n}",
"public interface Event {\n\n}",
"public interface EventReceiver {\n\n void onNotify(Event event);\n\n }",
"public interface SubscribableByMe extends Event {\n}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public interface OnEventAvailableListener {\... | [
"0.74221504",
"0.74221504",
"0.73818916",
"0.7354305",
"0.7344397",
"0.733534",
"0.7290853",
"0.72314286",
"0.71956384",
"0.7104428",
"0.70857185",
"0.70668966",
"0.70668966",
"0.70290166",
"0.6998727",
"0.6947222",
"0.6908976",
"0.6870635",
"0.6842595",
"0.6827882",
"0.68206... | 0.7042351 | 13 |
Liste des articles en vente de l'utilisateur | public UConnecte() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Usuario> listarUsuarios(boolean Vigente){\r\n return cVista.listarUsuarios(Vigente);\r\n }",
"public void listArticles() {\n\t\tSystem.out.println(\"\\nArticles llegits desde la base de dades\");\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.fo... | [
"0.6632683",
"0.6552985",
"0.6181999",
"0.60420847",
"0.59611404",
"0.5942572",
"0.5914788",
"0.5897694",
"0.5886601",
"0.5870394",
"0.58690494",
"0.58597875",
"0.5815751",
"0.5776706",
"0.5773647",
"0.5762728",
"0.5741593",
"0.5722222",
"0.5719373",
"0.5712323",
"0.57089233"... | 0.0 | -1 |
Sort the array given in argument in increasing order using a bubble sort algoritm | public static void sortBubble(int[] tab) {
boolean alreadySorted=false;
int temp;
int n=tab.length;
int i=0;
if(tab.length!=0){
while (i<n-1 && !alreadySorted){
alreadySorted=true;
for (int j=0; j<n-1-i;j++){
if (tab[j]>tab[j+1]){
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void BubbleSort(int[] a) {\n\t int n = a.length;\n\t int temp = 0;\n\n\t for(int i = 0; i < n; i++) {\n\t for(int j=1; j < (n-i); j++) {\n\t if(a[j-1] > a[j]) {\n\t temp = a[j-1];\n\t a[j-1] = a[j];\n\t a[j] = temp;\n\t ... | [
"0.80583197",
"0.8052966",
"0.8051719",
"0.80467653",
"0.7970025",
"0.7908064",
"0.7894514",
"0.78868824",
"0.7872138",
"0.78675795",
"0.7866229",
"0.78648347",
"0.78451467",
"0.78207207",
"0.7818484",
"0.7806467",
"0.7787519",
"0.7772028",
"0.77557135",
"0.77424055",
"0.7730... | 0.7576994 | 27 |
Get the instance of this class. | public static JWTLoginModuleDataHolder getInstance() {
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T getInstance() {\n return instance;\n }",
"@Override\n public T getInstance() {\n return instance;\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"public static Main getInstance() {\r\n return instance;\r\n }",
"public static Main getIns... | [
"0.7471515",
"0.7278389",
"0.6917784",
"0.68531907",
"0.6852432",
"0.6734332",
"0.6695923",
"0.668668",
"0.6670394",
"0.6664308",
"0.6663224",
"0.65889806",
"0.6586674",
"0.6574894",
"0.648214",
"0.64770645",
"0.64591736",
"0.64591736",
"0.6454866",
"0.64518714",
"0.6426183",... | 0.0 | -1 |
Loads the textures and position of the Hero | public Hero(int x, int y) {
this.centerX = x;
this.centerY = y;
this.currentHealth = 100;
rect1 = new FloatRect (100,630,80,110);
imgTexture = new Texture ();
try {
imgTexture.loadFromFile (Paths.get (ImageFile));
} catch (IOException ex) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n standBack = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_back.png\", Texture.class), 1, 1,... | [
"0.75198907",
"0.70615196",
"0.702959",
"0.6943762",
"0.69197357",
"0.6867434",
"0.67171407",
"0.6643141",
"0.6639264",
"0.65913033",
"0.65879655",
"0.6552477",
"0.65479624",
"0.65469986",
"0.6523963",
"0.64969456",
"0.6492209",
"0.6458155",
"0.64325887",
"0.6410755",
"0.6394... | 0.6668772 | 7 |
Change the texture for Hero | public Texture changeImg(String ImageFile2) {
Texture imgTexture = new Texture ();
try {
imgTexture.loadFromFile (Paths.get (ImageFile2));
} catch (IOException ex) {
ex.printStackTrace ();
}
imgTexture.setSmooth (true);
return imgTexture;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void glBindTexture(int target, int texture);",
"public void setTexture(String texture) {\n this.texture = texture;\n }",
"@Override\n\tpublic void setTexture(int texID) {\n\n\t}",
"private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetMana... | [
"0.70299745",
"0.6795672",
"0.6717406",
"0.6668054",
"0.6632888",
"0.6505852",
"0.64877474",
"0.64311904",
"0.6407631",
"0.6347783",
"0.62734044",
"0.62503195",
"0.62411624",
"0.61772335",
"0.61772335",
"0.61756283",
"0.6167446",
"0.610218",
"0.60957474",
"0.60659987",
"0.604... | 0.5612385 | 58 |
Move the Hero left | public void moveLeft() {
speedX = -6;
Texture r1 = changeImg ("./graphics/characters/player/leftWalk1.png");
img = new Sprite (r1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }",
"public void moveLeft() {\n\t\tposX -= speed;\n\t}",
"public void left(){\n\t\tm... | [
"0.75099105",
"0.74561",
"0.73397416",
"0.73300505",
"0.72802985",
"0.7275935",
"0.7267475",
"0.7222571",
"0.7098249",
"0.7092389",
"0.70770985",
"0.7057874",
"0.703321",
"0.70326966",
"0.70285463",
"0.7011999",
"0.7000301",
"0.6972037",
"0.69560283",
"0.6955478",
"0.694717",... | 0.64355063 | 46 |
Move the Hero right | public void moveRight() {
speedX = 6;
Texture r1 = changeImg ("./graphics/characters/player/rightWalk1.png");
img = new Sprite (r1);
if (centerX > startScrolling)
bg.setBackX (bg.getBackX () + 6);
bg.update ();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void moveRight() {\n\t\t\n\t}",
"private void moveRight(){\n if(getXFromCamera() > -10 && getXFrom... | [
"0.72283155",
"0.71939117",
"0.7182932",
"0.7155825",
"0.71471345",
"0.7137116",
"0.7132462",
"0.7115105",
"0.70663",
"0.7066002",
"0.70507896",
"0.7034816",
"0.69721174",
"0.6926746",
"0.69253683",
"0.68799037",
"0.6858147",
"0.68061876",
"0.68028367",
"0.68005234",
"0.67948... | 0.70874935 | 8 |
Update the window about the Hero's position | public void update(RenderWindow window) {
bg.update (); //update X and scroll background accordingly
updateXPosition ();
updateYPosition (); // Updates Y Position
handleJumping (); // Handles Jumping
Font fontStyle = new Font(); //load font
try {
fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateGameWorld() {\r\n\t\t//divide the user entered height by the height of the canvas to get a ratio\r\n\t\tfloat canvas_height = Window.getCanvas().getHeight();\r\n\t\tfloat new_height = EnvironmentVariables.getHeight();\r\n\t\tfloat ratio = new_height / canvas_height;\r\n\t\t\r\n\t\t//use this rati... | [
"0.66563547",
"0.6519369",
"0.64035857",
"0.63427174",
"0.6238129",
"0.621018",
"0.62093645",
"0.61567575",
"0.61329114",
"0.61234874",
"0.60923266",
"0.6059113",
"0.60385865",
"0.60232544",
"0.60138094",
"0.59808373",
"0.5948611",
"0.59465873",
"0.5930023",
"0.5917802",
"0.5... | 0.6562875 | 1 |
Update the Y position of the hero | public void updateYPosition(){
if (centerY + speedY >= 630) {
centerY = 630;
rect1= new FloatRect (centerX,centerY,80,110);
}else if(!collide){
centerY += speedY;
rect1= new FloatRect (centerX,centerY,80,110);
}
else if((jumpe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).se... | [
"0.7216943",
"0.71570545",
"0.7133463",
"0.706311",
"0.695656",
"0.6926426",
"0.6900778",
"0.67996067",
"0.67557275",
"0.6708194",
"0.66558295",
"0.66514766",
"0.66146785",
"0.661443",
"0.6597136",
"0.65784127",
"0.65720195",
"0.6565543",
"0.6551531",
"0.6549507",
"0.6481804"... | 0.717826 | 1 |
Update the X position of the hero | public void updateXPosition(){
if (centerX + speedX <= 60) {
centerX = 60;
}
if(centerX + bg.getBackX() > 4890) {
bg.setBackX(4890-startScrolling);
if(centerX + speedX >= 1500) {
centerX = 1500;
rect1= new FloatRect (cen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).se... | [
"0.73773825",
"0.7198807",
"0.6877112",
"0.67836726",
"0.6779093",
"0.6747242",
"0.67419505",
"0.6614567",
"0.6594866",
"0.6586374",
"0.6573585",
"0.6490177",
"0.64397323",
"0.64310133",
"0.6401909",
"0.6394497",
"0.63405806",
"0.63382494",
"0.6334628",
"0.6316508",
"0.631509... | 0.67031586 | 7 |
Allows the Hero to Jump | public void handleJumping(){
if ( !collide) {
speedY += 1;
if ((centerY + speedY >= 630 || collide )) {
centerY = 630;
speedY = 0;
jumped = false;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void jump(){\n getField().pandaJumped(this);\n }",
"public void jump() {\n jumped = true;\n teleport = true;\n waste = true;\n }",
"@Override\n\tpublic void onJump(PlatformPlayer player) {\n\t\t\n\t}",
"private void jump(){\n if(getYFromCamera() > -20 && getYF... | [
"0.7309612",
"0.72310156",
"0.7188932",
"0.7156249",
"0.7047712",
"0.7047712",
"0.6996691",
"0.6936641",
"0.68822944",
"0.6845276",
"0.68442655",
"0.683275",
"0.67940015",
"0.67565656",
"0.6729288",
"0.66499364",
"0.66373223",
"0.66166013",
"0.6608249",
"0.6582055",
"0.657101... | 0.61817104 | 38 |
Check for anything that collides with the hero | public void checkCollision(Box box){
if(collidingEntity2!=null && collidingEntity2!=box){
return;
}
FloatRect x = box.getRect ();
if (rect1==null || x==null){
return;
}
FloatRect ins = rect1.intersection (x);
if(ins!=null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collec... | [
"0.72596383",
"0.716276",
"0.71581554",
"0.70635074",
"0.7028993",
"0.7005331",
"0.69344527",
"0.6910524",
"0.6896015",
"0.6858402",
"0.68525314",
"0.6845726",
"0.682975",
"0.68292373",
"0.6760796",
"0.6752575",
"0.67088276",
"0.66861695",
"0.66491",
"0.66270566",
"0.6625331"... | 0.0 | -1 |
Check for collisions with enemy | public void checkCollision(Enemy enemy){
if(collidingEntity!=null && collidingEntity!=enemy){
return;
}
FloatRect x = enemy.getRect ();
if (rect1==null || x==null){
return;
}
FloatRect ins = rect1.intersection (x);
if(ins!=nu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t... | [
"0.75434864",
"0.73960745",
"0.7334075",
"0.7331061",
"0.7258594",
"0.70995045",
"0.70742184",
"0.7011241",
"0.6992071",
"0.6971434",
"0.6863767",
"0.6825711",
"0.68222183",
"0.6822073",
"0.6818747",
"0.6749501",
"0.66944885",
"0.66884375",
"0.66882116",
"0.6666091",
"0.66477... | 0.77840686 | 0 |
Set parameters for no collision | public void noCollision(){
this.collidingEntity2=null;
this.collidingEntity=null;
collidedTop=false;
collide=false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setCollisionRule(CollisionRule collisionRule);",
"public static void setCollision(boolean b)\r\n\t{\r\n\t\tcollision = b;\r\n\t}",
"private static void setParameters(CollisionShape shape, float b) {\n boolean flag = (b > 0.15f && b < 0.45f);\n shape.setContactFilterEnabled(flag);\n }",
... | [
"0.63239473",
"0.6198384",
"0.6101867",
"0.59716696",
"0.58780867",
"0.5818267",
"0.5788645",
"0.5787523",
"0.5747618",
"0.5720398",
"0.5719429",
"0.5698439",
"0.5677908",
"0.5663426",
"0.56513387",
"0.5633416",
"0.5632727",
"0.5630155",
"0.5607386",
"0.5501633",
"0.54820764"... | 0.6415113 | 0 |
Check for collisions on left | public void checkLeftCollision(FloatRect x){
if((int)rect1.left < x.left ) {
centerX -= 6;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean leftCollision(InteractiveObject obj){\n\t\treturn leftUpCollision(obj) || leftDownCollision(obj);\n\t}",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + pla... | [
"0.7612272",
"0.7584839",
"0.7356163",
"0.7352842",
"0.7183819",
"0.71261364",
"0.70469403",
"0.70425314",
"0.70358574",
"0.7002578",
"0.69974464",
"0.69849354",
"0.6980739",
"0.6972125",
"0.69584376",
"0.69493675",
"0.6947966",
"0.6943907",
"0.69317657",
"0.6910341",
"0.6878... | 0.7263806 | 4 |
Check for collisions on right | public void checkRightCollision(FloatRect x) {
if((int)rect1.left+rect1.width > x.left+x.width ){
centerX+=6;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean rightCollision(InteractiveObject obj){\n\t\treturn rightUpCollision(obj) || rightDownCollision(obj);\n\t}",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + ... | [
"0.7555024",
"0.73284924",
"0.7291725",
"0.7243725",
"0.7240195",
"0.7201603",
"0.7084172",
"0.7070649",
"0.70562404",
"0.6992952",
"0.6936809",
"0.69337845",
"0.6920551",
"0.6892439",
"0.68835866",
"0.68459415",
"0.67846054",
"0.67822516",
"0.67615134",
"0.67487746",
"0.6748... | 0.7046138 | 9 |
Check for collisions on top | public void checkTopCollision(FloatRect x){
if((int)rect1.top<= (int)x.top-x.height ){
collide=true;
collidedTop=true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0... | [
"0.7159393",
"0.70982677",
"0.7077513",
"0.7064746",
"0.7047246",
"0.70374227",
"0.7032581",
"0.7014995",
"0.7007206",
"0.69760704",
"0.69579697",
"0.6957465",
"0.6934823",
"0.6912484",
"0.6876424",
"0.68694097",
"0.6853255",
"0.67792505",
"0.676895",
"0.6757691",
"0.6729061"... | 0.7322261 | 0 |
Get the Center x of the quadrilateral | public int getCenterX(){
return centerX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}",
"private int get_x() {\n return center_x;\n }",
"public double getCenterX() { return centerX.get(); \t}",
"public final float exactCenterX() {\n return (left + right) * 0.5f;\n }",
"public final int centerX()... | [
"0.78719664",
"0.7739931",
"0.75937533",
"0.7531879",
"0.74971324",
"0.74386114",
"0.7409026",
"0.73961896",
"0.7364654",
"0.73581237",
"0.7338111",
"0.7287975",
"0.7260562",
"0.7224424",
"0.7113204",
"0.70835567",
"0.70777524",
"0.70647466",
"0.70647466",
"0.70216566",
"0.70... | 0.7260257 | 13 |
Get the Center y of the quadrilateral | public int getCenterY(){
return centerY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCenterY() {\n\t\t\treturn (int) origin.y + halfHeight;\n\t\t}",
"public float getCenterY()\n\t{\n\t\treturn (this.sy / 2) + this.y;\n\t}",
"public double getCenterY() { return centerY.get(); }",
"public int getYCenter() {\n return getYOrigin() + panelHeight/2;\n }",
"public double getCent... | [
"0.78437275",
"0.76752174",
"0.75867707",
"0.75862",
"0.7402642",
"0.73575926",
"0.7320919",
"0.7297533",
"0.7284587",
"0.7246122",
"0.7092712",
"0.701328",
"0.6951018",
"0.6930413",
"0.6829065",
"0.6802658",
"0.67872345",
"0.67769",
"0.67292506",
"0.67285556",
"0.67121994",
... | 0.7016094 | 11 |
Get the Health of Hero | public int getMaxHealth() {
return maxHealth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHealth();",
"int getHealth();",
"public Integer getHealth();",
"Float getHealth();",
"public int getHealth() {\n return getStat(health);\n }",
"public Hero getHero();",
"public float getHealth(){\n return health.getHealth();\n }",
"public int getHealth() {\n return ... | [
"0.76385695",
"0.7619274",
"0.7568435",
"0.74596107",
"0.74347645",
"0.74223304",
"0.7373372",
"0.7359433",
"0.7304946",
"0.7304544",
"0.7296475",
"0.7281872",
"0.7260421",
"0.7255296",
"0.724878",
"0.7224892",
"0.7217426",
"0.7196919",
"0.7196137",
"0.71667165",
"0.7150959",... | 0.5862326 | 98 |
Get the current health of the Hero | public int getCurrentHealth() {
return currentHealth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHealth() {\n return getStat(health);\n }",
"public int getHealth() {\n return this.health;\n }",
"public float getHealth(){\n return health.getHealth();\n }",
"public double getHealth() {\r\n\t\treturn health;\r\n\t}",
"public float getHealth() {\n\t\treturn _health;\n... | [
"0.8004589",
"0.79396236",
"0.7931295",
"0.78943723",
"0.7839131",
"0.7823638",
"0.7813343",
"0.7807663",
"0.7800061",
"0.77974534",
"0.77973664",
"0.77670485",
"0.7763314",
"0.7759424",
"0.7754352",
"0.7754318",
"0.77453876",
"0.77379197",
"0.77311546",
"0.77311546",
"0.7692... | 0.76274234 | 21 |
Initialize the contents of the frame. | private void initialize() {
frame = new JFrame();
frame.getContentPane().setBackground(new Color(64, 64, 64));
frame.getContentPane().setForeground(Color.WHITE);
frame.setBounds(100, 100, 450, 401);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
te... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r... | [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.71079... | 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> update(Trade obj) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> getById(Integer id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> delete(Integer id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, Object> getTrades(Trade trade) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public static int registerUser(Register reg) throws SQLException {
int i =0;
Connection con = connect();
System.out.println("Reached DAOMvc"+reg.getLastname());
String sql = "insert into registeruser"+
"(userid,firstname,lastname,age,address,username,password,role,emailid)"+
" values(userid_seq.nextval... | {
"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 | private static Connection connect() throws SQLException {
Connection con = null;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system", "1234");
return con;
}
catch (ClassNotFoundException e... | {
"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 |
dupCount obtd from boolean summary xml file | Element() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@XmlElement(\"IsRepeated\")\n boolean isRepeated();",
"private static void populateValues(String name) throws Exception {\n\t\tDocument dom = null;\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t\t// Using factory get an instance of document builder\n\t\t\tDocumentBuil... | [
"0.5778947",
"0.54497087",
"0.5359916",
"0.5346691",
"0.53322756",
"0.52927846",
"0.5280182",
"0.527333",
"0.5256673",
"0.5233314",
"0.51289374",
"0.51264066",
"0.51041514",
"0.5081641",
"0.5069292",
"0.5047421",
"0.5045646",
"0.49846935",
"0.49794987",
"0.49448538",
"0.49336... | 0.0 | -1 |
function to populate hit entries into map | private static void populateValues(String name) throws Exception {
Document dom = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
// Using factory get an instance of document builder
DocumentBuilder db = dbf.newDocumentBuilder();
System.out
.println("populateValues: Bo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Long> hits();",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n ... | [
"0.6214726",
"0.5916277",
"0.5895899",
"0.5784231",
"0.5778795",
"0.57313335",
"0.5725773",
"0.5708052",
"0.56503874",
"0.5598054",
"0.556301",
"0.5541389",
"0.5491125",
"0.54864067",
"0.54820174",
"0.5464279",
"0.5456173",
"0.5426927",
"0.5412674",
"0.54034966",
"0.53983444"... | 0.0 | -1 |
gather all the search terms(hits + non hits) into ArrayList | private static void populateList(String name) throws Exception {
Document dom = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
// Using factory get an instance of document builder
DocumentBuilder db = dbf.newDocumentBuilder();
System.out
.println("populateList: Boolea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void termQuerySearch(String[] terms) {\n for (String term : terms) {\n LinkedList<TermPositions> postingLists = indexMap.get(analyzeTerm(term));\n if (postingLists != null) {\n for (TermPositions matches : postingLists) {\n double score = (doub... | [
"0.6615037",
"0.6436446",
"0.6285646",
"0.6272961",
"0.62414926",
"0.6237826",
"0.6181063",
"0.61750317",
"0.60754174",
"0.6058598",
"0.60439813",
"0.60263276",
"0.599569",
"0.59740806",
"0.5912787",
"0.5880757",
"0.5873789",
"0.5869223",
"0.58632594",
"0.5831356",
"0.582519"... | 0.0 | -1 |
Obtain the transaction hash . | public Optional<String> getTransactionHash() {
return transactionHash;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Sha256Hash getTxHash() {\n return txHash;\n }",
"public byte[] hashTransaction() {\n byte[][] txIdArrays = new byte[this.getTransactions().length][];\n for (int i = 0;i < this.getTransactions().length;i++) {\n txIdArrays[i] = this.getTransactions()[i].getTxId();\n ... | [
"0.7380898",
"0.7334517",
"0.713696",
"0.713696",
"0.713297",
"0.70540154",
"0.7037909",
"0.70093274",
"0.7001901",
"0.69231164",
"0.69231164",
"0.6821035",
"0.6792608",
"0.6768299",
"0.67540133",
"0.6743056",
"0.6743056",
"0.6743056",
"0.67400295",
"0.6721219",
"0.6686711",
... | 0.7275889 | 2 |
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. | public boolean a(MotionEvent motionEvent, float f, float f2, float f3, float f4) {
try {
if (!this.f.an.h()) {
return true;
}
if (this.f.bg || this.f.bl) {
return true;
}
if (this.b == nul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2247() {\r\n // $FF: Couldn't be decom... | [
"0.7616782",
"0.75728166",
"0.7525724",
"0.74507046",
"0.74505866",
"0.74373597",
"0.7381616",
"0.7381616",
"0.7366568",
"0.735341",
"0.73420185",
"0.73150736",
"0.7308675",
"0.73055106",
"0.7274724",
"0.72523946",
"0.72216254",
"0.71979403",
"0.7177258",
"0.7136552",
"0.7106... | 0.0 | -1 |
Returns is queue is empty | public boolean isEmpty() {
return qSize == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isEmpty() {\n return queue.isEmpty();\n }",
"@Override\n public boolean isEmpty() {\n return queue.isEmpty();\n }",
"public boolean queueEmpty() {\r\n\t\tif (vehiclesInQueue.size() == 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isEmpty(... | [
"0.84881765",
"0.83010674",
"0.82376415",
"0.81731725",
"0.813095",
"0.8129829",
"0.80961716",
"0.80937386",
"0.80844706",
"0.8061263",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80452836",
"0.80423063",
"0.80350435",
"0.80350435",
... | 0.70267856 | 65 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.