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 |
|---|---|---|---|---|---|---|
Constructor for class ServiceEvent | protected ServiceEvent(ServiceEvent event) {
eventSenderClass=event.eventSenderClass;
eventSenderID=event.eventSenderID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"public Eventd() {\n }",
"public Event() {\r\n\r\n\t}",
"public Event() {\n\n }",
"public Event() {\n }",
"public Event() {\n }",
"public Event() {\n\t}",
"publ... | [
"0.8610552",
"0.7606931",
"0.7587324",
"0.7530822",
"0.75273204",
"0.75273204",
"0.75234145",
"0.7510305",
"0.7496392",
"0.7478321",
"0.7289168",
"0.72042924",
"0.7196038",
"0.7057279",
"0.7055642",
"0.7053826",
"0.7000967",
"0.69197935",
"0.6801829",
"0.67956734",
"0.6712202... | 0.7902126 | 1 |
Overide this method if the event is mutable | public Dispatchable copy() {
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Acto... | [
"0.64562494",
"0.64562494",
"0.64562494",
"0.64562494",
"0.6336809",
"0.6311415",
"0.6303025",
"0.6203542",
"0.6201099",
"0.6201099",
"0.61856586",
"0.61856586",
"0.61856586",
"0.61856586",
"0.61856586",
"0.61692023",
"0.6159031",
"0.6159031",
"0.6159031",
"0.6149885",
"0.612... | 0.0 | -1 |
PUBLIC METHODS Save the user in the database. | public void create(Department department) {
entityManager.persist(department);
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveUser(User user);",
"@Override\r\n\tpublic int saveUser(User user) {\n\t\tString sql = \"insert into user values(?,?,?,?)\";\r\n\t\treturn this.update(sql,user.getId(), user.getUsername(),user.getPassword(),user.getEmail());\r\n\t}",
"@Override\r\n\tpublic void save() {\n\t\tSystem.out.println(\... | [
"0.8001075",
"0.79873925",
"0.7873604",
"0.77744776",
"0.77589023",
"0.7726047",
"0.770877",
"0.7697612",
"0.7690123",
"0.76494104",
"0.76227987",
"0.76207334",
"0.75361437",
"0.75161475",
"0.74881005",
"0.74354565",
"0.74026954",
"0.7384287",
"0.7382227",
"0.7378342",
"0.732... | 0.0 | -1 |
Delete the user from the database. | public void delete(Department department) {
if (entityManager.contains(department))
entityManager.remove(department);
else
entityManager.remove(entityManager.merge(department));
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}",
"public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }",
"void deleteUserById(Long id);",
"public void delete(User user){\n userRepo... | [
"0.7905509",
"0.78713584",
"0.7860712",
"0.7849072",
"0.78336465",
"0.7791637",
"0.77838016",
"0.7783385",
"0.7782922",
"0.7777536",
"0.7746421",
"0.7737197",
"0.7732361",
"0.7724757",
"0.7724313",
"0.77211356",
"0.7720868",
"0.77186877",
"0.77096915",
"0.7702831",
"0.7693693... | 0.0 | -1 |
Return all the users stored in the database. | @SuppressWarnings("unchecked")
public List<Department> getAll() {
return entityManager.createQuery("from Department").getResultList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<UserDB> getAllUsers() {\n\n\t\tUserDB newUser = new UserDB();\n\n\t\treturn newUser.getAllUsers();\n\t}",
"public List<User> retrieveAllUsers() {\n\t\treturn (List<User>) userRepository.findAll();\n\t}",
"public List<User> findAll() \n\t{\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORE.USER... | [
"0.84511197",
"0.84404236",
"0.84285957",
"0.83334476",
"0.8330777",
"0.8317683",
"0.8302024",
"0.8298883",
"0.82576865",
"0.8234545",
"0.82330006",
"0.8231661",
"0.82231337",
"0.819673",
"0.8183668",
"0.8170443",
"0.81680125",
"0.8161113",
"0.8156264",
"0.8155953",
"0.814268... | 0.0 | -1 |
Return the user having the passed email. | public Department getByEmail(String name) {
return (Department) entityManager.createQuery(
"from User where name = :name")
.setParameter("name", name)
.getSingleResult();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"User getUserByEmail(final String email);",
"public User getUser(String email) {\r\n\t\tOptional<User> optionalUser = null;\r\n\t\tUser user = null;\r\n\t\ttry {\r\n\t\t\toptionalUser = userList().stream().filter(u -> u.getUserEmail().equals(email)).findFirst();\r\n\t\t\tif (optionalUser.isPresent()) {\r\n\t\t\t\... | [
"0.8066898",
"0.8004286",
"0.7956759",
"0.79322267",
"0.7841209",
"0.7778004",
"0.7769699",
"0.7746234",
"0.7731482",
"0.7731482",
"0.7718365",
"0.7696166",
"0.76644695",
"0.7639717",
"0.76348513",
"0.76326436",
"0.7625942",
"0.7623161",
"0.76138306",
"0.7597083",
"0.7551445"... | 0.0 | -1 |
Return the user having the passed id. | public Department getById(long id) {
return entityManager.find(Department.class, id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"public User findUser(int id) {\n for (int i = 0; i < allUsers.size(); i++) {\n if (allUse... | [
"0.8050956",
"0.80129516",
"0.7916832",
"0.7801849",
"0.7788222",
"0.77873665",
"0.7777753",
"0.76992834",
"0.76742506",
"0.76665586",
"0.76525176",
"0.76329154",
"0.7619377",
"0.76129466",
"0.75540024",
"0.7536896",
"0.75066394",
"0.74952185",
"0.749502",
"0.7490896",
"0.749... | 0.0 | -1 |
Update the passed user in the database. | public void update(Department department) {
entityManager.merge(department);
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateUser(User user) {\n\t\t\r\n\t}",
"void updateUser(@Nonnull User user);",
"public User updateUser(User user);",
"@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}",
"public void update(User user);",
"@Override\n\tpublic void updateUser(user theUser) {\n\t}",
"@Override\n\tpubl... | [
"0.8403658",
"0.81916934",
"0.8177053",
"0.81201327",
"0.80965173",
"0.80655617",
"0.8027758",
"0.80070466",
"0.7953301",
"0.79253876",
"0.7904702",
"0.7850416",
"0.7848325",
"0.78466743",
"0.78466743",
"0.78351337",
"0.77652705",
"0.77574044",
"0.7749426",
"0.7740081",
"0.77... | 0.0 | -1 |
/ this also checks that a new entry was not inserted between pre and cur after the search but before cur = pre.getNext() | private boolean validate(K key,
DictionaryEntry<K,V> pre,
DictionaryEntry<K,V> cur) {
return (!pre.isMarked()
&& (cur == pre.getNext())
&& (cur.isSentinel()
|| (key.compareTo(cur.getKey()) <= 0))
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void searchMis(TreeNode cur)\n {\n if (cur == null)\n return;\n searchMis(cur.left);\n if (pre != null && pre.val > cur.val) {\n if (idx == 0) {\n nodes[0] = pre;\n nodes[1] = cur;\n idx = 1;\n } else {\n ... | [
"0.65389466",
"0.6140183",
"0.59217244",
"0.5921622",
"0.58368194",
"0.56747526",
"0.565381",
"0.56226736",
"0.5601102",
"0.5424085",
"0.53408283",
"0.53360176",
"0.5313485",
"0.52995193",
"0.52217764",
"0.52042526",
"0.5204158",
"0.51954013",
"0.5191251",
"0.51692414",
"0.51... | 0.66099876 | 0 |
Issues a notification to inform the user that server has sent a message. | private static void generateNotification(Context context, Bundle bundle) {
int icon = R.drawable.icon;
long when = System.currentTimeMillis();
String message = bundle.getString("message");
NotificationManager notificationManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendNotification() {\n }",
"private void sendNotification(String message) {\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,... | [
"0.7526096",
"0.6936354",
"0.68616366",
"0.6797363",
"0.675498",
"0.6741467",
"0.67114663",
"0.66734976",
"0.664536",
"0.6624512",
"0.6590217",
"0.65822923",
"0.6574617",
"0.6572597",
"0.6560487",
"0.65524095",
"0.6550985",
"0.6543876",
"0.65345883",
"0.65255713",
"0.6520586"... | 0.0 | -1 |
To make it more fast We don't need to calculate factorials in the runtime | private void initializeFactorials() {
//Lets fill up to 33!
factorials = new double[33];
factorials[0] = 1.0;
factorials[1] = 1.0;
factorials[2] = 2.0;
factorials[3] = 6.0;
factorials[4] = 24.0;
factorials[5] = 120.0;
factorials[6] = 720.0;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int factorial(int n) {\n if (n == 1 || n == 0)\n return 1;\n else\n return n * factorial(n - 1);\n }",
"private static BigInteger getFactorial(int n) {\n BigInteger fact = BigInteger.ONE;\n for (int i = n; i > 1; i--) {\n fact = fact.multiply(new B... | [
"0.75594854",
"0.7555146",
"0.7503986",
"0.75020033",
"0.7442164",
"0.7400708",
"0.739181",
"0.7358311",
"0.73553926",
"0.7339994",
"0.72730684",
"0.72187704",
"0.71618694",
"0.7152421",
"0.71410453",
"0.7127808",
"0.7097711",
"0.70773697",
"0.70731753",
"0.7070357",
"0.70604... | 0.6241097 | 79 |
Method that calculates binome (n i) | private double binomeN_I(int n, int i) {
double ni;
double a1 = factorial(n);
double a2 = factorial(i);
double a3 = factorial(n - i);
ni = a1 / (a2 * a3);
return ni;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int xBins();",
"public void setInBin(int n) {\n inBin=Translate.decTobinN(n, 4);\n }",
"public void setOpBin(int n) {\n opBin=Translate.decTobinN(n, 8);\n }",
"public int binom(int n, int k) {\n isBinomValuesValid(n,k);\n if(isZeroOrEqual(n,k))\n ... | [
"0.67884094",
"0.6780097",
"0.67383784",
"0.6613593",
"0.65254897",
"0.649183",
"0.64416945",
"0.6394614",
"0.6370435",
"0.6328456",
"0.63077337",
"0.62771213",
"0.62535256",
"0.621156",
"0.6189503",
"0.60970837",
"0.606085",
"0.60604125",
"0.6050967",
"0.6035588",
"0.5988259... | 0.80626214 | 0 |
Method that returns a factorial of given input n | private double factorial(int n) {
if (n < 0 || n > 32) {
return -1;
}
return factorials[n];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int factorial(int n) {\n int res = 0;\n if (n == 0) res = 1;\n if (n > 0) res = n*factorial(n-1);\n return res;\n }",
"public static int factorial(int n){\n if(n <= 1){\n return 1;\n }\n else{\n return n*factorial(n-1);\n ... | [
"0.8702912",
"0.86847097",
"0.8683698",
"0.8645021",
"0.8621138",
"0.8595137",
"0.8487034",
"0.8464075",
"0.8385911",
"0.8378032",
"0.83525395",
"0.8350924",
"0.833206",
"0.83223087",
"0.8311991",
"0.8289453",
"0.8232638",
"0.81714076",
"0.80987364",
"0.80320424",
"0.8024074"... | 0.8305424 | 15 |
Almost the main method of our Class it calculates and stores the values in the array p | public void Bezier2D(double[] b, int cpts, double[] p) {
int numberOfpoints = (b.length) / 2;
int icounter, jcounter;
double step, t;
// We calculate the points of the curve
icounter = 0;
t = 0;
step = (double) 1.0 / (cpts - 1);
for (int i1 = 0; i1 != cp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getPValue();",
"public static void Main()\n\t{\n\t\tdouble[] p = new double[100];\n\t\tint m;\n\t\tint n;\n\t\tint i;\n\t\tint j;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tfor (i = 0;i < m;i++)\n\t\t{\n//C++ TO JAVA C... | [
"0.6647686",
"0.6492568",
"0.6284755",
"0.62144345",
"0.62026733",
"0.6034248",
"0.59066856",
"0.5896022",
"0.5854201",
"0.58227277",
"0.5808583",
"0.5800804",
"0.5786006",
"0.57755667",
"0.57717824",
"0.5768721",
"0.5754083",
"0.57521904",
"0.57477087",
"0.5739037",
"0.57364... | 0.0 | -1 |
getter to get the floor no | public int getFloor() {
return floor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFloor();",
"public int floorNumber() {\n return _number;\n }",
"public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}",
"public int getMinFloor();",
"public int getCurrentFloor();",
"public String getFloor() {\n return this.floor;\n }",
"public String getFl... | [
"0.8682251",
"0.85237145",
"0.8303229",
"0.8246069",
"0.8212596",
"0.8126441",
"0.795754",
"0.7720608",
"0.77045757",
"0.76983786",
"0.7622778",
"0.7556989",
"0.7556989",
"0.73866355",
"0.7374261",
"0.7178058",
"0.7040549",
"0.6983032",
"0.69504637",
"0.68401545",
"0.67175025... | 0.85768986 | 1 |
setter to set the floor no | public void setFloor(int floor) {
this.floor = floor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}",
"public void setFloor(double input) {\r\n floor=input;\r\n }",
"public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}",
"public void setCurrentFloor(int i);",
"public int getFloor() {\n return floor;\n }",
... | [
"0.79123104",
"0.77127004",
"0.7453427",
"0.73799217",
"0.7299498",
"0.71406645",
"0.713216",
"0.7103111",
"0.7086118",
"0.7023915",
"0.69941247",
"0.69129086",
"0.68884134",
"0.6861204",
"0.6752084",
"0.67046803",
"0.64557356",
"0.6405869",
"0.640485",
"0.6393532",
"0.633700... | 0.8508503 | 0 |
getter to get the latest reading | public SensorBean getLatestReading() {
return latestReading;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getLastReadTime() {\n return LAST_READ_TIME;\n }",
"boolean hasGetLatestReading();",
"public double getReadingOnce() {\n return this.getDataRef().getOnce();\n }",
"public Date getReadTime() {\n return readTime;\n }",
"org.naru.park.ParkController.CommonAction getGe... | [
"0.7393708",
"0.7281485",
"0.7033829",
"0.6997039",
"0.69685155",
"0.69648564",
"0.69348174",
"0.6918619",
"0.67952794",
"0.67935884",
"0.67304236",
"0.6660114",
"0.66382664",
"0.66355747",
"0.6603236",
"0.65966624",
"0.65748876",
"0.65519726",
"0.65170723",
"0.6506466",
"0.6... | 0.7748904 | 0 |
setter to set the latest reading | public void setLatestReading(SensorBean latestReading) {
this.latestReading = latestReading;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRead(){\n \tthis.isRead = true;\n }",
"public void read() {\n\t\tthis.isRead = true;\n\t}",
"public Builder clearGetLatestReading() {\n if (getLatestReadingBuilder_ == null) {\n getLatestReading_ = null;\n onChanged();\n } else {\n getLatestReading_... | [
"0.6716578",
"0.6457937",
"0.6315138",
"0.6202737",
"0.6163249",
"0.6145941",
"0.60741985",
"0.6065747",
"0.6052548",
"0.59838593",
"0.5951517",
"0.5945977",
"0.5905267",
"0.59031844",
"0.5887809",
"0.58744586",
"0.58554196",
"0.577157",
"0.5708302",
"0.568025",
"0.56763387",... | 0.68592554 | 0 |
display latest reading with floor number | @Override
public String toString() {
return "Reading of the Sensor\n"
+ "Floor ID is: " + floor + "\nLatest Reading is: " + latestReading;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int floorNumber() {\n return _number;\n }",
"public int getCurrentFloor();",
"public String getFloor() {\n return this.floor;\n }",
"public int getFloor() {\n return floor;\n }",
"protected String getFloorDescription(int floorNumber) {\n return \"Floor \" + (fl... | [
"0.67572504",
"0.66986656",
"0.6515981",
"0.64909875",
"0.64315385",
"0.6380665",
"0.6295278",
"0.6286017",
"0.6263574",
"0.6173925",
"0.6073221",
"0.60615516",
"0.60433877",
"0.60433877",
"0.5828733",
"0.5793193",
"0.57507515",
"0.5740562",
"0.5719446",
"0.5612775",
"0.56073... | 0.6852506 | 0 |
/ 1 continue 0 draw 1 player1 win 2 player2 win | public int gameOver(){
for(int i=0;i<3;i++){
if(banmen[i][0]==1&&banmen[i][1]==1&&banmen[i][2]==1){
return 1;
}
if(banmen[0][i]==1&&banmen[1][i]==1&&banmen[2][i]==1){
return 1;
}
if(banmen[i][0]==2&&banmen[i][1]==2&&banmen[i][2]==2){
return 2;
}
if(banmen[0][i]==2&&banmen[1][i]==2&&ba... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void playMatch() {\n while (!gameInformation.checkIfSomeoneWonGame() && gameInformation.roundsPlayed() < 3) {\n gameInformation.setMovesToZeroAfterSmallMatch();\n playSmallMatch();\n }\n String winner = gameInformation.getWinner();\n if(winner.equals(\"DRAW!\")){\n... | [
"0.7276277",
"0.7216513",
"0.7052808",
"0.69825065",
"0.6963451",
"0.69589496",
"0.69589156",
"0.6954501",
"0.6951083",
"0.6899616",
"0.6895147",
"0.6802646",
"0.6798887",
"0.67905676",
"0.67817193",
"0.675566",
"0.66903824",
"0.6687427",
"0.6665983",
"0.66588295",
"0.6610455... | 0.0 | -1 |
Interface for encapsulating API path and query parameters. Author: M. Munoz | public interface ApiEndPointsAndPatameters {
// /** Resource path for api resources */
// String API_PREFIX = "/api";
//
/** Resource path for API version 1 */
String API_VERSION_1 = "/v1";
//
// /** Resource path to get available power plants. */
// String POWER_PLANT_PATH = "/powerPlant";
//
// /** Resource path ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IDynamicRequestGET {\n public MultivaluedMap<String, String> getPathParams();\n public ContainerRequestContext getRequestContext();\n}",
"public interface Api {\n\n\n @GET(\"users?site=stackoverflow\")\n Call<UserResponse> getUser(@Query(\"pagesize\")int size,@Query(\"sort\")String s... | [
"0.6912523",
"0.6878142",
"0.68450874",
"0.6830125",
"0.6782505",
"0.67241484",
"0.671368",
"0.66812617",
"0.6671544",
"0.66612613",
"0.66611993",
"0.6658956",
"0.6652582",
"0.6649049",
"0.66166013",
"0.6615813",
"0.6589644",
"0.6588657",
"0.6556241",
"0.65467656",
"0.6502015... | 0.7185408 | 0 |
Get question and answer regular expressions | public void initialize(UimaContext aContext) throws ResourceInitializationException {
super.initialize(aContext);
// Get config. parameter values
questionPattern = Pattern.compile((String) aContext.getConfigParameterValue("questionPattern"));
answerPattern = Pattern.compile((String) aContext.getConfigPa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRegEx();",
"java.lang.String getRegex();",
"java.lang.String getRegex();",
"public static String[] stringByQuestionInExamParameters(String str) {\n\t\treturn str.split(\n\t\t\t\t\"questionID: |points: |commentForTeacher: |commentForStudent: |examID: |]+\");\n\t}",
"public static void main(... | [
"0.58994925",
"0.5776607",
"0.5776607",
"0.5563406",
"0.55589056",
"0.55515295",
"0.546821",
"0.5335469",
"0.53330326",
"0.52904683",
"0.5285954",
"0.5215027",
"0.52143073",
"0.5189149",
"0.51811326",
"0.5130996",
"0.51145124",
"0.51121444",
"0.5000611",
"0.4997968",
"0.49963... | 0.0 | -1 |
write your code in Java SE 8 | public int solution(int[] a) {
int max = 0;
int min = Integer.MIN_VALUE;
for (int i=0;i<a.length;i++) {
if (i == 0) {
min = a[i];
} else if (a[i] > min) {
max = Math.max(a[i] - min, max);
} else if (a[i] < min) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\... | [
"0.5890391",
"0.58054996",
"0.57008785",
"0.56167847",
"0.54946315",
"0.54761344",
"0.524263",
"0.52340496",
"0.5233149",
"0.52029705",
"0.5160466",
"0.51574665",
"0.5143396",
"0.5094738",
"0.5084682",
"0.5069909",
"0.50661004",
"0.50645214",
"0.5064437",
"0.50475377",
"0.504... | 0.0 | -1 |
Resets the "selected" attribute of any parent Entity controllers. | public void resetParents() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetParents() {\n businessentityController.setSelected(null);\n }",
"public void resetParents() {\n oferenteController.setSelected(null);\n expedienteprocesoController.setSelected(null);\n }",
"public void resetParents() {\n idEmpleadoController.setSelected(null);... | [
"0.76650393",
"0.7534451",
"0.74119014",
"0.73539287",
"0.7280383",
"0.72471625",
"0.7238065",
"0.7206758",
"0.7148984",
"0.71272284",
"0.7003519",
"0.69074196",
"0.6807132",
"0.5925203",
"0.5890661",
"0.5857201",
"0.5826842",
"0.57976145",
"0.5762226",
"0.56932205",
"0.56463... | 0.52648455 | 38 |
Sets the "items" attribute with a collection of FichaGeneralEmpleado entities that are retrieved from Ubigeo?cap_first and returns the navigation outcome. | public String navigateFichaGeneralEmpleadoList() {
if (this.getSelected() != null) {
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("FichaGeneralEmpleado_items", this.getSelected().getFichaGeneralEmpleadoList());
}
return "/fichaGeneralEmpleado/index";... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String navigatePartidoCollection1() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection1());\n }\n return \"/partido/index\";\n }",
"@Override\r\n\tp... | [
"0.5350303",
"0.53500915",
"0.52056867",
"0.5192922",
"0.5173718",
"0.51659226",
"0.513989",
"0.5113634",
"0.5086495",
"0.50804067",
"0.50731057",
"0.5036121",
"0.5028269",
"0.50074387",
"0.49381387",
"0.49169236",
"0.49047345",
"0.48940843",
"0.4870949",
"0.48517632",
"0.484... | 0.5799223 | 0 |
TODO: Implement this method | @Override
public void onCreate()
{
super.onCreate();
sp = ApplicationBase.getSharedPreferences();
dsp = ApplicationBase.getDefSharedPreferences();
mRoutes = new NetworkSpace();
config = ApplicationBase.getUtils();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t... | [
"0.6146684",
"0.5972078",
"0.5951665",
"0.5893627",
"0.5893573",
"0.58674604",
"0.57714313",
"0.57463145",
"0.5679119",
"0.5679119",
"0.56602454",
"0.5640005",
"0.56188494",
"0.5614183",
"0.5613904",
"0.5604922",
"0.55885965",
"0.5585748",
"0.5544809",
"0.5542787",
"0.5460681... | 0.0 | -1 |
TODO: Implement this method | @Override
public int onStartCommand(Intent intent, int flags, int startId)
{
String action = intent.getAction();
if (action == FLAG_VPN_START)
{
if (mThread != null)
{
mThread.interrupt();
}
mThread = new Thread(this, "myVPNThread");
mThre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t... | [
"0.6146684",
"0.5972078",
"0.5951665",
"0.5893627",
"0.5893573",
"0.58674604",
"0.57714313",
"0.57463145",
"0.5679119",
"0.5679119",
"0.56602454",
"0.5640005",
"0.56188494",
"0.5614183",
"0.5613904",
"0.5604922",
"0.55885965",
"0.5585748",
"0.5544809",
"0.5542787",
"0.5460681... | 0.0 | -1 |
TODO: Implement this method | @Override
public void run()
{
try
{
if (!establishVpn())
{
addLog("Failed to establish the VPN");
return;
}
connectTunnel(getLocalServerAddress(dsp.getString("local_port", "1080")), getLocalServerAddress(dsp.getString("udp_port", "7300")), true);
}
catch (Exception e)
{
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t... | [
"0.6146684",
"0.5972078",
"0.5951665",
"0.5893627",
"0.5893573",
"0.58674604",
"0.57714313",
"0.57463145",
"0.5679119",
"0.5679119",
"0.56602454",
"0.5640005",
"0.56188494",
"0.5614183",
"0.5613904",
"0.5604922",
"0.55885965",
"0.5585748",
"0.5544809",
"0.5542787",
"0.5460681... | 0.0 | -1 |
/ Stops routing device traffic through the VPN. | public synchronized void connectTunnel(final String socksServerAddress, final String udpServerAddress, final boolean remoteUdpForwardingEnabled)
{
if (socksServerAddress == null)
{
throw new IllegalArgumentException("Must provide an IP address to a SOCKS server.");
}
if (tunFd == null)
{
throw new Ille... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void disconnectTunnel()\n\t{\n\t\taddLog(\"Stopping VPNService...\");\n\t\tif (pdnsdProcess != null)\n\t\t{\n pdnsdProcess.destroy();\n pdnsdProcess = null;\n }\n\t\tif (tun2socksThread != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t//xBinary.stopPdnsd(this);\n\t\t\t\... | [
"0.6719527",
"0.6582606",
"0.65754336",
"0.6137991",
"0.6065168",
"0.5894468",
"0.5840376",
"0.5783542",
"0.57300687",
"0.5684442",
"0.5654587",
"0.5606095",
"0.5569018",
"0.5544536",
"0.5539846",
"0.5535718",
"0.55228454",
"0.55050534",
"0.5496215",
"0.5489023",
"0.5484825",... | 0.0 | -1 |
/ Disconnects a tunnel created by a previous call to |connectTunnel|. | public synchronized void disconnectTunnel()
{
addLog("Stopping VPNService...");
if (pdnsdProcess != null)
{
pdnsdProcess.destroy();
pdnsdProcess = null;
}
if (tun2socksThread != null)
{
try
{
//xBinary.stopPdnsd(this);
//Tun2SocksJni.stop();
Tun2Socks.Stop();... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disconnect() {\r\n\t\tif (connected.get()) {\r\n\t\t\tserverConnection.getConnection().requestDestToDisconnect(true);\r\n\t\t\tconnected.set(false);\r\n\t\t}\r\n\t}",
"public void disconnectSSH(){\n\t log.info(\"Trying to disconnect to device \"+deviceIP+\" ...\\n\");\n\t session.disconnect();\n\... | [
"0.6336666",
"0.6326891",
"0.6227521",
"0.62028456",
"0.6185144",
"0.61760163",
"0.6169075",
"0.61637396",
"0.60535556",
"0.6019937",
"0.60058016",
"0.6001912",
"0.59851015",
"0.5976338",
"0.5976338",
"0.5976338",
"0.5976338",
"0.59584403",
"0.5897535",
"0.58886456",
"0.58636... | 0.7076412 | 0 |
Get token native push service type. | public Type getType()
{
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPushToken() {\n }",
"public String getToken_type() {\r\n\t\treturn token_type;\r\n\t}",
"java.lang.String getRemoteToken();",
"public String getTokenType()\n {\n String tokenType = \"\";\n try\n {\n FileReader fileReader = new FileReader(getCache(\"tokenTy... | [
"0.6740174",
"0.6497866",
"0.6271972",
"0.6033553",
"0.58648354",
"0.58648354",
"0.58276737",
"0.57803637",
"0.57454145",
"0.57349455",
"0.56309974",
"0.56309974",
"0.56309974",
"0.56309974",
"0.56121093",
"0.56097895",
"0.5602499",
"0.5602499",
"0.5602499",
"0.56007975",
"0.... | 0.0 | -1 |
Get token type from integer (enum ordinal). | public static Type typeFromInt(int ordinal)
{
Type[] values = Type.values();
return ordinal >= 0 && ordinal < values.length ? values[ordinal] : null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTokenType() {\n return type_;\n }",
"public String getTokenType() {\n return tokenType;\n }",
"public static TokenType getType(final String token) {\n\t\tif (isFLOAT(token))\n\t\t\treturn TokenType.FLOAT;\n\t\tif (isINT(token))\n\t\t\treturn TokenType.INT;\n\t\tif (isVAR(token))\... | [
"0.73551327",
"0.7170606",
"0.6946034",
"0.6916704",
"0.68653375",
"0.6648364",
"0.65874237",
"0.65100974",
"0.65071493",
"0.64814967",
"0.6435825",
"0.6420177",
"0.640126",
"0.61890656",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854... | 0.5822108 | 36 |
Created by shuaizhihu on 2017/3/1. | @Component
public interface IDownloadService {
public boolean downLoad(DownloadContext context) throws CrawlerException, HttpProcessException;
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@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() {\n\t\t\r\n\t}",
"@O... | [
"0.62093765",
"0.6143829",
"0.5912823",
"0.5896291",
"0.5889922",
"0.5889922",
"0.58614206",
"0.5861083",
"0.58435506",
"0.5824776",
"0.5813537",
"0.57725567",
"0.57604474",
"0.574948",
"0.5740098",
"0.5738866",
"0.57320094",
"0.57120985",
"0.5706609",
"0.5688772",
"0.5687291... | 0.0 | -1 |
Create the usual class wrapper and main method on your own. Create a function called `factorio` that returns it's input's factorial | public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Gimme a number: ");
int numo = scanner.nextInt();
System.out.println(factorio(numo));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Main() {\n\t\tSystem.out.println(factorial(5));\n\t}",
"public static void main(String args[])\n {\n Scanner input = new Scanner(System.in);\n //taking the number\n int num = input.nextInt();\n System.out.println(factorial(num));\n }",
"public static void main(String[] ... | [
"0.72416914",
"0.7157955",
"0.68486154",
"0.67616427",
"0.67130274",
"0.6623922",
"0.65747267",
"0.6572661",
"0.6571775",
"0.6539784",
"0.6473267",
"0.6447812",
"0.63403004",
"0.6304605",
"0.6275693",
"0.62656164",
"0.62266594",
"0.6222747",
"0.62170005",
"0.6199769",
"0.6122... | 0.6856347 | 2 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_guia_hotelera, container, false);
expandableListView = (ExpandableListView) view.findViewById(R.id.expandableListView);
return view;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
Toast.makeText(getActivity(),expandableListTitle.get(groupPosition) + " List Expanded.", Toast.LENGTH_SHORT).show(); | @Override
public void onGroupExpand(int groupPosition) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i1, long l) {\n\n AlertDialog.Builder builder=new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(listDataHeader.get(i));\n builder.setMessage(list... | [
"0.7001986",
"0.6629647",
"0.66227347",
"0.65513134",
"0.6516583",
"0.64842147",
"0.64713025",
"0.6378218",
"0.6368871",
"0.6321446",
"0.6321446",
"0.6305407",
"0.6296054",
"0.6296054",
"0.6296035",
"0.62946725",
"0.6178873",
"0.6165231",
"0.61263376",
"0.6125915",
"0.6065565... | 0.64464027 | 7 |
Toast.makeText(getActivity(), expandableListTitle.get(groupPosition) + " List Collapsed.", Toast.LENGTH_SHORT).show(); | @Override
public void onGroupCollapse(int groupPosition) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i1, long l) {\n\n AlertDialog.Builder builder=new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(listDataHeader.get(i));\n builder.setMessage(list... | [
"0.68657804",
"0.6452639",
"0.6452639",
"0.6320184",
"0.6286241",
"0.62029755",
"0.6167525",
"0.6111258",
"0.6075326",
"0.60327077",
"0.60032207",
"0.59802175",
"0.5968082",
"0.59547323",
"0.59494674",
"0.5937354",
"0.5929881",
"0.59171784",
"0.5913461",
"0.5886883",
"0.58795... | 0.58932006 | 19 |
get user input and set it to result edit text | public void onClick(DialogInterface dialog,int id) {
Toast.makeText(EditEventDetails.this, "Event Edited!", Toast.LENGTH_LONG).show();
Intent i = new Intent(EditEventDetails.this, NavDrawer.class);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}",
"@Override\n public void onClick(View v) {\n String inputFieldText = ((TextView) findViewById(R.id.inputField)).getText().toString();\n\n ... | [
"0.6952248",
"0.6804357",
"0.6651948",
"0.6610541",
"0.6533526",
"0.64630646",
"0.63028157",
"0.6268317",
"0.62601984",
"0.6244715",
"0.6158368",
"0.6139164",
"0.61198604",
"0.61173177",
"0.60932",
"0.60879046",
"0.6060863",
"0.60569084",
"0.60515594",
"0.6038798",
"0.6032926... | 0.0 | -1 |
This method displays the given price on the screen. | private void displayPrice(int number) {
TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);
priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayPrice(int number) {\n }",
"public void getPrice(){\n System.out.println(\"Price: $\" + price); \n }",
"public void getPrice() {\n\t System.out.println(\"Price: $\" + price);\n }",
"private void displayPrice(int number) {\n TextView priceTextView = findViewById(R.... | [
"0.7996701",
"0.7802026",
"0.76092917",
"0.755159",
"0.7483713",
"0.73746",
"0.73623556",
"0.7341348",
"0.7260348",
"0.72048396",
"0.7196749",
"0.71314055",
"0.7084698",
"0.69030136",
"0.6877945",
"0.6836073",
"0.6774688",
"0.6709811",
"0.6709811",
"0.6687164",
"0.6687164",
... | 0.712433 | 12 |
Calculates the price of the order. | private int calculatePrice() {
int price = numberOfCoffees * 5;
return price;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BigDecimal calculateTotalPrice(Order order);",
"public double calculatePrice(Order order){\r\n return order.quantity * order.itemPrice -\r\n Math.max(0, order.quantity - 500) * order.itemPrice * 0.05 +\r\n Math.min(order.quantity * order.itemPrice * 0.1, 100);\r\n }",
"p... | [
"0.8209991",
"0.80813664",
"0.7562016",
"0.7398714",
"0.7325486",
"0.72889525",
"0.7281115",
"0.7138571",
"0.71026284",
"0.70868766",
"0.70456463",
"0.70428175",
"0.69597787",
"0.6918364",
"0.6918364",
"0.6906151",
"0.6893011",
"0.6877235",
"0.6873886",
"0.68725383",
"0.68725... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void insertJoblist(List<Job> jobs) throws Exception {
jobDao.insertJoblist(jobs);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Job> findCompanynatureTotal(String cityname) throws Exception {
return jobDao.findCompanynatureTotal(cityname);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Job> findScaleTotal(String cityname) throws Exception {
return jobDao.findScaleTotal(cityname);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Job> findindustry(String cityname) throws Exception {
return jobDao.findindustry(cityname);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Job> findpriceExp(Job job) throws Exception {
return jobDao.findpriceExp(job);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Job> findpriceEducation(Job job) throws Exception {
return jobDao.findpriceEducation(job);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Job> finddemandExp(Job job) throws Exception {
return jobDao.finddemandExp(job);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Job> finddemandEducation(Job job) throws Exception {
return jobDao.finddemandEducation(job);
} | {
"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 |
Load all columns from the stream | void loadFromInputStream(InputStream inputStream) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadColumns() {\n\t\tif (!this.expanded) {\n\t\t\tthis.refresh();\n\t\t}\n\t}",
"public abstract void load(LongIntsCol col, DataInputStream output) throws IOException;",
"public abstract void load(IntIntsCol col, DataInputStream output) throws IOException;",
"private void addColumns() {\n\n ... | [
"0.6121284",
"0.578028",
"0.5764244",
"0.5731526",
"0.56607556",
"0.562949",
"0.5601201",
"0.5573179",
"0.55513287",
"0.54492164",
"0.5419537",
"0.54168206",
"0.5408036",
"0.53445053",
"0.53410363",
"0.5262529",
"0.5198488",
"0.51500124",
"0.5126436",
"0.5114705",
"0.5094241"... | 0.0 | -1 |
Read a boolean value from the column at the current index | boolean readBoolean(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Boolean getBoolean(int col_num);",
"public boolean getBoolean(int row, int column) {\n return columns[column].getBoolean(row);\n }",
"public abstract boolean read_boolean();",
"Boolean getBoolean(String col_name) throws ConnException;",
"public Boolean getBoolean(final int index) {\n Obje... | [
"0.762721",
"0.7327255",
"0.70319444",
"0.6983091",
"0.6980976",
"0.69589543",
"0.6863561",
"0.67879087",
"0.678098",
"0.6698088",
"0.6662121",
"0.6639528",
"0.6589994",
"0.6574242",
"0.65429413",
"0.6528704",
"0.64950097",
"0.6493959",
"0.6493959",
"0.6481663",
"0.6424756",
... | 0.70151484 | 3 |
Read an byte value from the column at the current index | byte readByte(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte readScalarByte() throws java.io.IOException;",
"public byte getByte(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getByte\", columnIndex);\n return get(columnIndex).getByte();\n }\n catch (Exception e) {\n throw logAndConvert(... | [
"0.7408743",
"0.73299104",
"0.73105603",
"0.73010755",
"0.71412635",
"0.7049855",
"0.70455796",
"0.7006585",
"0.697816",
"0.6959471",
"0.68978643",
"0.6855702",
"0.68482715",
"0.6840199",
"0.683701",
"0.68010604",
"0.6766201",
"0.6756474",
"0.67428344",
"0.673591",
"0.6723825... | 0.6864559 | 11 |
Read an short value from the column at the current index | short readShort(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Short getShort(int col_num) throws ConnException;",
"private final short get_SMALLINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getShort(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getShortLE(columnDataPosition_[colum... | [
"0.7825952",
"0.7377047",
"0.7343696",
"0.732063",
"0.72282434",
"0.7224577",
"0.717116",
"0.7141723",
"0.70663846",
"0.7008318",
"0.69359475",
"0.68786556",
"0.6874169",
"0.6860374",
"0.6845417",
"0.682599",
"0.6821875",
"0.67624575",
"0.67563456",
"0.6670051",
"0.66560155",... | 0.7033037 | 9 |
Read an char value from the column at the current index | char readChar(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}",
"public char getChar(int row, int column) {\n return columns[column].getChar(row);\n }",
"public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char)... | [
"0.7233143",
"0.7173885",
"0.7071917",
"0.69846493",
"0.6896788",
"0.6893841",
"0.68412495",
"0.6801344",
"0.6775315",
"0.675987",
"0.6736697",
"0.6659324",
"0.6647097",
"0.6646577",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
... | 0.6540388 | 45 |
Read an int from the column at the current index | int readInt(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInt(String columnName) {\n IntVector vector = (IntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public int getInt(int columnIndex) {\n IntVector vector = (IntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public abstract Nu... | [
"0.6997222",
"0.6982545",
"0.69802725",
"0.6955312",
"0.6863193",
"0.67312914",
"0.67098016",
"0.66861427",
"0.664359",
"0.66286594",
"0.66061044",
"0.6558295",
"0.6555269",
"0.6475501",
"0.644969",
"0.64116395",
"0.63649464",
"0.63530326",
"0.6335004",
"0.63187325",
"0.63187... | 0.0 | -1 |
Read an long from the column at the current index | long readLong(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getLong(int row, int column) {\n return columns[column].getLong(row);\n }",
"public long readLong() throws IOException;",
"public abstract int read_long();",
"long readLong() throws IOException;",
"private long read_long(MappedByteBuffer buff) throws IOException {\n long n... | [
"0.722327",
"0.70879847",
"0.70361143",
"0.6938213",
"0.6894507",
"0.68929136",
"0.68769526",
"0.67746955",
"0.67536944",
"0.67461544",
"0.67399347",
"0.6721502",
"0.6710746",
"0.6703445",
"0.670063",
"0.66963494",
"0.66890126",
"0.66849655",
"0.66720986",
"0.66656363",
"0.66... | 0.7121057 | 1 |
Read an float from the column at the current index | float readFloat(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private final float get_FLOAT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos()) {\n byte[] bytes = new byte[4];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getFloat_hex(bytes, 0);\n// return dataBuffer_.getFloat(co... | [
"0.72631145",
"0.71903855",
"0.7084484",
"0.707072",
"0.6891707",
"0.6823699",
"0.682316",
"0.6741815",
"0.6710681",
"0.6670275",
"0.6669324",
"0.66169745",
"0.660879",
"0.6604828",
"0.65863043",
"0.6570713",
"0.6561893",
"0.65327775",
"0.6504778",
"0.649049",
"0.6482902",
... | 0.72554195 | 1 |
Read an double from the column at the current index | double readDouble(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double readAsDbl(int offset);",
"private final double get_DOUBLE(int column) {\n if (metadata.isZos()) {\n byte[] bytes = new byte[8];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getDouble_hex(bytes, 0);\n //return dataBu... | [
"0.7545856",
"0.7511722",
"0.74918467",
"0.72448033",
"0.7229514",
"0.71776843",
"0.71620005",
"0.710723",
"0.70431703",
"0.70257676",
"0.6993552",
"0.6993003",
"0.6864906",
"0.6860246",
"0.68113434",
"0.6797022",
"0.67667985",
"0.67659104",
"0.67249346",
"0.67127943",
"0.664... | 0.728096 | 3 |
Read bytes from the column at the current index | byte[] readBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"private int readFd... | [
"0.6869857",
"0.65386826",
"0.6354843",
"0.6301527",
"0.6283497",
"0.62787485",
"0.6184708",
"0.6172885",
"0.6155919",
"0.6155426",
"0.6148582",
"0.611902",
"0.6079297",
"0.6072854",
"0.60261613",
"0.60159683",
"0.6008716",
"0.5997478",
"0.59869266",
"0.594639",
"0.5945739",
... | 0.574765 | 46 |
Read a string from the column at the current index | String readString(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String getString(int columnIndex);",
"public String get(int idx) {\n return (String) columns.get(idx);\n }",
"String getColumn(int index);",
"String getColumn(int index);",
"public String getString(int index);",
"String getValue(String column, int row);",
"java.lang.String get... | [
"0.70924795",
"0.7029072",
"0.6838081",
"0.6838081",
"0.6428664",
"0.6340844",
"0.62688696",
"0.6249011",
"0.62304103",
"0.61896557",
"0.6116622",
"0.60838604",
"0.6006301",
"0.59852374",
"0.5977658",
"0.59341806",
"0.5894357",
"0.58857703",
"0.5880377",
"0.5820816",
"0.58051... | 0.0 | -1 |
Read the null marker at the current index. Do not call on nonnullable columns | boolean shouldReadValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object calcRightNullRow()\n {\n return null;\n }",
"boolean isNullValue(int colIndex);",
"@Override\n public Watermark getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {\n return new Watermark();\n }",
"void setNull(int index, int sqlType) throw... | [
"0.6236084",
"0.5966828",
"0.58449566",
"0.5661521",
"0.56214875",
"0.5580809",
"0.55215204",
"0.55057204",
"0.55015945",
"0.5500263",
"0.5485377",
"0.5477577",
"0.54339045",
"0.5432181",
"0.5416046",
"0.540343",
"0.5369391",
"0.53459895",
"0.5302672",
"0.5297565",
"0.5297565... | 0.0 | -1 |
Get the current page header | PageHeader getPageHeader(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:... | [
"0.75885576",
"0.6873771",
"0.68080676",
"0.6785389",
"0.67611164",
"0.67542565",
"0.6708846",
"0.66651475",
"0.66651475",
"0.6654606",
"0.66137177",
"0.65819204",
"0.6553534",
"0.6540666",
"0.6492826",
"0.64890736",
"0.64776826",
"0.6471099",
"0.6429757",
"0.6422599",
"0.639... | 0.7940461 | 0 |
Set the current page header | void setPageHeader(PageHeader pageHeader); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPageHeader(String header)\n {\n // ignore\n }",
"protected void updateHeader() {\n\t}",
"void setHeader(HttpServletResponse response, String name, String value);",
"PageHeader getPageHeader();",
"PageHeader getPageHeader();",
"public void setHeader(String header) {\n\t\tthis.h... | [
"0.77700186",
"0.6706179",
"0.65665007",
"0.64241385",
"0.64241385",
"0.63887197",
"0.6282552",
"0.6265763",
"0.6254114",
"0.6204983",
"0.618697",
"0.61502755",
"0.61345726",
"0.6113927",
"0.6083309",
"0.6062315",
"0.6060419",
"0.6044488",
"0.60196966",
"0.5990037",
"0.596379... | 0.7877582 | 0 |
Increment to the next column | void incrementColumnIndex(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public... | [
"0.7767003",
"0.7692597",
"0.7558846",
"0.75156575",
"0.750813",
"0.69457644",
"0.69457644",
"0.6912579",
"0.66178334",
"0.65910304",
"0.6582868",
"0.6529609",
"0.6479504",
"0.6478086",
"0.64185977",
"0.6362338",
"0.62526196",
"0.6250103",
"0.6207667",
"0.61800385",
"0.617381... | 0.7378536 | 5 |
Increment by multiple columns | void incrementColumnIndex(int size); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void incOffset( Integer increment ) {\n offset += increment;\n }",
"public UpdateValues inc(String column, Object value) {\n return this.add(... | [
"0.7630653",
"0.7630653",
"0.69591993",
"0.62721294",
"0.6267479",
"0.615973",
"0.6146269",
"0.609685",
"0.60864896",
"0.60815537",
"0.5959841",
"0.5842158",
"0.5790316",
"0.576958",
"0.574637",
"0.5737621",
"0.56976235",
"0.5691772",
"0.5689144",
"0.56826615",
"0.56673217",
... | 0.7110397 | 3 |
Get the current column index | int getColumnIndex(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentColumn() {\n return buffer.columnNumber();\n }",
"public Integer getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColumnIndex() {\n return table.findColumnIndex(getName());\n }",
"public int... | [
"0.8258108",
"0.77217907",
"0.7638073",
"0.7551421",
"0.7459667",
"0.7446432",
"0.7446013",
"0.74126625",
"0.73955446",
"0.73557836",
"0.73222536",
"0.73072624",
"0.7293419",
"0.72922087",
"0.72728413",
"0.7271175",
"0.7269182",
"0.7260658",
"0.7250369",
"0.7249859",
"0.72065... | 0.814212 | 3 |
Set this index as the current column | void setColumnIndex(int newIndex); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setColumnIndex(int index);",
"Table setColumn(int index, String name);",
"@Override\n\tpublic void setColumn(int x) {\n\t\tdelegate.setColumn(x);\n\t}",
"public void setCol(int value) {\n this.col = value;\n }",
"public void setCol(int newCol) {\n this.col = newCol;\n }",
"void i... | [
"0.6965139",
"0.68579876",
"0.6799187",
"0.6651481",
"0.66236967",
"0.6484741",
"0.6484741",
"0.64512247",
"0.64483756",
"0.64241326",
"0.6389189",
"0.6379283",
"0.63568085",
"0.6350424",
"0.63226503",
"0.63154244",
"0.63127977",
"0.63090444",
"0.62848216",
"0.62848216",
"0.6... | 0.67756426 | 3 |
Read the type for a column at the current index. Do not call on columns that do not require types. | Class<?> readConcreteType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int getColumnType(int col) throws SQLException {\n\n\t\tif (col <= width && col >= 1) {\n\t\t\tcol--;\n\n\t\t\tString str = table[0][col];\n\t\t\tStringTokenizer token = new StringTokenizer(str, \",\");\n\t\t\tString name = token.nextToken();\n\t\t\tString type = token.nextToken();\n\t\t\t/*\n\... | [
"0.7202591",
"0.71767557",
"0.6646776",
"0.66139096",
"0.6606232",
"0.656847",
"0.65040344",
"0.65040344",
"0.64212793",
"0.63784194",
"0.62745476",
"0.62600034",
"0.620192",
"0.6191813",
"0.618557",
"0.61560786",
"0.6094033",
"0.60898256",
"0.6020581",
"0.60053974",
"0.59860... | 0.0 | -1 |
Read the current repetition count at the current index. | int readRepetitionCount(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeRepetitionCount(int count);",
"int getRepeatCount();",
"public int currentCount () {\n return count;\n }",
"public int getRepeatCount()\n\t{\n\t\treturn repeatCnt;\n\t}",
"public int countRess()\n {\n int nbRess = 0;\n pw.println(13);\n try\n {\n nbRe... | [
"0.64831483",
"0.62074685",
"0.61263907",
"0.6070297",
"0.591523",
"0.58759665",
"0.5854444",
"0.5818803",
"0.5803186",
"0.57933325",
"0.5783961",
"0.5782083",
"0.5731132",
"0.5705388",
"0.56880397",
"0.5656052",
"0.56450516",
"0.5609614",
"0.5595003",
"0.5551898",
"0.552062"... | 0.79204196 | 0 |
Write bool to current column | void writeBool(boolean value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setBoolean(int index, boolean value) throws SQLException;",
"void writeBoolean(boolean v) throws IOException;",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"public void setColumn(String column, boolean b)\n {\n i... | [
"0.7353457",
"0.6884396",
"0.68000114",
"0.6755161",
"0.66802025",
"0.666419",
"0.6592356",
"0.6591083",
"0.6565173",
"0.6561093",
"0.64967275",
"0.64933276",
"0.646947",
"0.64612436",
"0.64368576",
"0.6436095",
"0.64192873",
"0.6385998",
"0.6385696",
"0.63644075",
"0.6359536... | 0.7298082 | 1 |
Write byte to current column | void writeByte(byte value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setByte(int index, byte value) throws SQLException;",
"public void updateByte(int columnIndex, byte x) throws SQLException\n {\n m_rs.updateByte(columnIndex, x);\n }",
"@Override\n public void setByte(byte value) throws SQLException {\n setString(Byte.toString(value));\n }",
"publi... | [
"0.7304723",
"0.699666",
"0.69659066",
"0.6839962",
"0.6832866",
"0.67913544",
"0.67056817",
"0.6664669",
"0.6575265",
"0.6489398",
"0.6464217",
"0.63716286",
"0.6340187",
"0.6333079",
"0.6314566",
"0.63111657",
"0.62999034",
"0.628501",
"0.6268965",
"0.62578255",
"0.62320805... | 0.7143165 | 1 |
Write char to current column | void writeChar(char value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeChar(final char result) throws WriterException;",
"@Override\n public void write (final int c)\n {\n if (text != null)\n {\n text.append (String.valueOf ((char) c));\n if (++col > wrap)\n println ();\n }\n else\n super.write (c);\n }",
"public void setChar(char da... | [
"0.6913226",
"0.68350375",
"0.66177124",
"0.6575567",
"0.6499277",
"0.64939076",
"0.64843845",
"0.64514905",
"0.6438518",
"0.6332197",
"0.6300776",
"0.6286202",
"0.6259403",
"0.62343043",
"0.6234214",
"0.6223571",
"0.62200093",
"0.6205115",
"0.61222744",
"0.6057574",
"0.60417... | 0.7456558 | 0 |
Write short to current column | void writeShort(short value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setShort(int index, short value) throws SQLException;",
"public void updateShort(int columnIndex, short x) throws SQLException\n {\n m_rs.updateShort(columnIndex, x);\n }",
"public void updateShort(int columnIndex, short x) throws SQLException {\n\n try {\n if (isDebugEnabled())... | [
"0.70962524",
"0.68961316",
"0.68272555",
"0.67569005",
"0.67381334",
"0.6630909",
"0.66119665",
"0.6526019",
"0.6522147",
"0.65077716",
"0.63031745",
"0.6302865",
"0.62800026",
"0.6223683",
"0.61805695",
"0.61304677",
"0.61146116",
"0.6109739",
"0.60658264",
"0.6014154",
"0.... | 0.71176314 | 0 |
Write int to current column | void writeInt(int value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;",
"void setInt(int index, int value) throws SQLException;",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
... | [
"0.68554664",
"0.6626854",
"0.6584909",
"0.6584909",
"0.6580571",
"0.6580571",
"0.64940864",
"0.645178",
"0.6318457",
"0.6269721",
"0.6234741",
"0.6205794",
"0.6181956",
"0.6164435",
"0.61596614",
"0.6103343",
"0.6037345",
"0.60343695",
"0.6026672",
"0.60244256",
"0.59884745"... | 0.6644689 | 1 |
Write long to current column | void writeLong(long value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(IntLongsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(LongFloat... | [
"0.7440352",
"0.738327",
"0.7322916",
"0.7005859",
"0.6953019",
"0.6924903",
"0.6910393",
"0.68808335",
"0.6753487",
"0.6714574",
"0.67136264",
"0.6598619",
"0.6518758",
"0.6499959",
"0.6397911",
"0.62423366",
"0.62330955",
"0.6231596",
"0.6189122",
"0.6136869",
"0.613336",
... | 0.7334834 | 2 |
Write float to current column | void writeFloat(float value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFloat(int index, float value) throws SQLException;",
"void writeFloat(float v) throws IOException;",
"String floatWrite();",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"public void updateFloat(int columnIndex, float x) throws SQLException\n {\n ... | [
"0.72567797",
"0.70169574",
"0.6990744",
"0.6958092",
"0.67561686",
"0.670343",
"0.6590098",
"0.65636045",
"0.6547231",
"0.6535484",
"0.6462228",
"0.636788",
"0.63552666",
"0.63091856",
"0.6227595",
"0.6140209",
"0.61321086",
"0.6108402",
"0.6034055",
"0.5997571",
"0.5992203"... | 0.74482036 | 0 |
Write double to current column | void writeDouble(double value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDouble(int index, double value) throws SQLException;",
"void writeDouble(double v) throws IOException;",
"public abstract void writeAsDbl(int offset, double d);",
"public abstract void save(IntDoublesCol col, DataOutputStream output) throws IOException;",
"public void updateDouble(int columnIndex, ... | [
"0.7255905",
"0.7114854",
"0.71003175",
"0.6952673",
"0.6930975",
"0.6861801",
"0.6828485",
"0.6732862",
"0.6680771",
"0.667898",
"0.6594261",
"0.6512892",
"0.6429127",
"0.642082",
"0.6402146",
"0.6364042",
"0.6334898",
"0.63276756",
"0.61658555",
"0.6165365",
"0.61510646",
... | 0.75381374 | 0 |
Write bytes to current column | void writeBytes(byte[] value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateBytes(int columnIndex, byte x[]) throws SQLException\n {\n m_rs.updateBytes(columnIndex, x);\n }",
"void setBytes(int index, byte[] value) throws SQLException;",
"@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n ... | [
"0.66227216",
"0.66032684",
"0.6551935",
"0.64778197",
"0.6402246",
"0.6388923",
"0.6321584",
"0.6283716",
"0.6131687",
"0.61226016",
"0.6103187",
"0.6081881",
"0.60592127",
"0.60348356",
"0.60312545",
"0.6005774",
"0.59989697",
"0.5969051",
"0.5951282",
"0.5948064",
"0.59310... | 0.6017798 | 15 |
Write string to current column | void writeString(String value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private StringBuffer appendColumnString(StringBuffer newLine, int columnIndex, Object plaintext) {\n if (columnIndex != 0){\n newLine.append(\";\");\n }\n newLine.append(plaintext.toString());\n return newLine;\n }",
"void write(String... columns) throws IOException;",
"public void writeBlock... | [
"0.67713326",
"0.6387694",
"0.6174399",
"0.60714954",
"0.60693353",
"0.6005309",
"0.5978391",
"0.59056246",
"0.58248305",
"0.5802427",
"0.5801144",
"0.5777791",
"0.57122743",
"0.5708118",
"0.5706618",
"0.5675843",
"0.5650489",
"0.5630057",
"0.5618972",
"0.5598631",
"0.5595137... | 0.5584206 | 21 |
If the value is null, write a null marker | <T> boolean shouldWriteValue(T value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void writeNullValue() throws IOException {\n _generator.writeNull();\n }",
"private void serializeNull(final StringBuffer buffer)\n {\n buffer.append(\"N;\");\n }",
"@Override\n public void writeNull(FieldDefinition di) {\n if (inArray) {\n arr.addNull();\n... | [
"0.73376477",
"0.7025353",
"0.6795356",
"0.6697754",
"0.66676795",
"0.6565222",
"0.6558449",
"0.6444029",
"0.63424385",
"0.63334185",
"0.63223374",
"0.6279279",
"0.6249001",
"0.6175279",
"0.61216986",
"0.60925066",
"0.6070028",
"0.60286474",
"0.5985645",
"0.59850097",
"0.5920... | 0.0 | -1 |
Get the current column index | int getColumnIndex(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentColumn() {\n return buffer.columnNumber();\n }",
"public Integer getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColumnIndex() {\n return table.findColumnIndex(getName());\n }",
"public int... | [
"0.8258108",
"0.77217907",
"0.7638073",
"0.7551421",
"0.7459667",
"0.7446432",
"0.7446013",
"0.74126625",
"0.73955446",
"0.73557836",
"0.73222536",
"0.73072624",
"0.7293419",
"0.72922087",
"0.72728413",
"0.7271175",
"0.7269182",
"0.7260658",
"0.7250369",
"0.7249859",
"0.72065... | 0.814212 | 2 |
Set the column index to a given value | void setColumnIndex(int index); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Table setColumn(int index, String name);",
"void setColumnIndex(int newIndex);",
"void setColumnValue(int colIndex, Object value);",
"public void setCol(int value) {\n this.col = value;\n }",
"void setInt(int index, int value) throws SQLException;",
"public void set(int rowIndex, int columnInde... | [
"0.7813593",
"0.778438",
"0.7721675",
"0.734514",
"0.7260096",
"0.71265393",
"0.7098345",
"0.70345277",
"0.6997963",
"0.6952827",
"0.6945812",
"0.6945812",
"0.6938756",
"0.68168974",
"0.6809741",
"0.6788667",
"0.6788667",
"0.67692965",
"0.6755938",
"0.6716727",
"0.6673736",
... | 0.8248484 | 0 |
Increment the column index by one | void incrementColumnIndex(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void absIncrementRowAt(int index) {\n int lastI... | [
"0.79313385",
"0.79313385",
"0.73031",
"0.713621",
"0.6649842",
"0.64889157",
"0.6488578",
"0.6461156",
"0.6420492",
"0.6386742",
"0.63613206",
"0.6333419",
"0.62955105",
"0.62955105",
"0.62955105",
"0.6171393",
"0.6087986",
"0.6084656",
"0.6059984",
"0.6047068",
"0.6005743",... | 0.84394604 | 1 |
Increment the column index by a given amount | void incrementColumnIndex(int size); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel(... | [
"0.8057734",
"0.8057734",
"0.69982874",
"0.678258",
"0.66835374",
"0.63435066",
"0.63428724",
"0.6184274",
"0.61094654",
"0.603407",
"0.5960208",
"0.59578454",
"0.5953077",
"0.5877098",
"0.58688277",
"0.5814482",
"0.5761653",
"0.57444",
"0.57347506",
"0.57173884",
"0.5715682"... | 0.79230404 | 2 |
Get the current page header | PageHeader getPageHeader(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:... | [
"0.75885576",
"0.6873771",
"0.68080676",
"0.6785389",
"0.67611164",
"0.67542565",
"0.6708846",
"0.66651475",
"0.66651475",
"0.6654606",
"0.66137177",
"0.65819204",
"0.6553534",
"0.6540666",
"0.6492826",
"0.64890736",
"0.64776826",
"0.6471099",
"0.6429757",
"0.6422599",
"0.639... | 0.7940461 | 1 |
Set the current page header | void setPageHeader(PageHeader pageHeader); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPageHeader(String header)\n {\n // ignore\n }",
"protected void updateHeader() {\n\t}",
"void setHeader(HttpServletResponse response, String name, String value);",
"PageHeader getPageHeader();",
"PageHeader getPageHeader();",
"public void setHeader(String header) {\n\t\tthis.h... | [
"0.77700186",
"0.6706179",
"0.65665007",
"0.64241385",
"0.64241385",
"0.63887197",
"0.6282552",
"0.6265763",
"0.6254114",
"0.6204983",
"0.618697",
"0.61502755",
"0.61345726",
"0.6113927",
"0.6083309",
"0.6062315",
"0.6060419",
"0.6044488",
"0.60196966",
"0.5990037",
"0.596379... | 0.7877582 | 1 |
Flush all columns to the output stream | void flushToOutputStream(OutputStream outputStream) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void flush() {\n if (outputEnabled)\n out.flush();\n }",
"@Override\r\n\tpublic void flushAll() {\n\t\t\r\n\t}",
"public void flush() {\n\t\t\n\t}",
"public void flush() {\n writer.flush();\n }",
"public void flush() {\n flushed = true;\n }",
"public void flushA... | [
"0.66213673",
"0.6430017",
"0.6381974",
"0.638178",
"0.63396716",
"0.6321066",
"0.62389505",
"0.62207687",
"0.6198696",
"0.618205",
"0.618205",
"0.618205",
"0.61493963",
"0.6147786",
"0.6125725",
"0.612223",
"0.6098188",
"0.6090842",
"0.60715705",
"0.6060078",
"0.6060078",
... | 0.55956656 | 76 |
Write the concrete type | void writeConcreteType(Class<?> type); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void writeType ()\n {\n stream.println (\" public org.omg.CORBA.TypeCode _type ()\");\n stream.println (\" {\");\n stream.println (\" return \" + helperClass + \".type ();\");\n stream.println (\" }\");\n stream.println ();\n }",
"private void _writeType(final Typed typed) throws... | [
"0.69594765",
"0.69513637",
"0.6591469",
"0.6521663",
"0.650258",
"0.6484984",
"0.6416852",
"0.6365537",
"0.6326693",
"0.6279402",
"0.62675476",
"0.6256194",
"0.6159055",
"0.61586833",
"0.61207557",
"0.60779047",
"0.60752404",
"0.60556513",
"0.6034798",
"0.60293615",
"0.60236... | 0.7679308 | 0 |
Write the repetition count to the current column | void writeRepetitionCount(int count); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawCounter() {\n\t\tcounterColumn.clear();\n\t\tint currentRowCount = getCounter();\n\t\tfor (int i = 1; i <= currentRowCount; i++) {\n\t\t\tcounterColumn.appendText(String.valueOf(i) + \"\\n\");\n\t\t}\n\t}",
"public void addCount() {\n \t\tdupCount++;\n \t}",
"int readRepetitionCount();",
"pub... | [
"0.6367155",
"0.57733035",
"0.5706504",
"0.5553729",
"0.55477095",
"0.5538126",
"0.5505013",
"0.5503697",
"0.5503697",
"0.54713696",
"0.54643196",
"0.54582274",
"0.5429775",
"0.5414472",
"0.5414122",
"0.5403432",
"0.5400226",
"0.5391562",
"0.53637713",
"0.534407",
"0.53211516... | 0.7587222 | 0 |
/ Write in output file. | public void FPsOverlapSeperateSections(CollectionReader reader) throws IOException {
String outputfile = "./output/TermOverlap/termoverlp-FPs-config(2):seperatesections.txt";
FileOutputStream out = new FileOutputStream(outputfile);
PrintStream ps = new PrintStream(out);
/*--------------------------------------... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(File output) throws IOException {\n }",
"public void write(final File out) throws IOException;",
"protected abstract void writeFile();",
"private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser()... | [
"0.8108035",
"0.7866651",
"0.7354863",
"0.7291281",
"0.71749246",
"0.71344274",
"0.70837086",
"0.69498473",
"0.68880284",
"0.68600637",
"0.68569577",
"0.6822648",
"0.6772413",
"0.6721232",
"0.671182",
"0.6618863",
"0.6617968",
"0.66087395",
"0.66002804",
"0.65970325",
"0.6570... | 0.0 | -1 |
reads SMTP server setting from web.xml file | public void init() {
ServletContext context = getServletContext();
host = context.getInitParameter("host");
port = context.getInitParameter("port");
user = context.getInitParameter("user");
pass = context.getInitParameter("pass");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Properties getMailServerConfig() {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host);\n properties.put(\"mail.smtp.port\", \"2525\");\n\n return properties;\n }",
"public String getMailServer()\n {\n return _mailServer... | [
"0.7042106",
"0.6613185",
"0.64762425",
"0.63301855",
"0.614968",
"0.60543984",
"0.6032326",
"0.60215765",
"0.60075927",
"0.598051",
"0.5934768",
"0.59270364",
"0.5841315",
"0.58080816",
"0.5791524",
"0.57757086",
"0.5747089",
"0.57060486",
"0.56568015",
"0.55428916",
"0.5525... | 0.0 | -1 |
This is the constructor of the class that takes in the two endpoints and the busline associated with the edge | public GraphEdge(GraphNode u, GraphNode v, char busLine){
first = u;
second = v;
this.busLine = busLine;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GraphEdge(GraphNode u, GraphNode v, char busLine) {\n\t\t\tstart = u;\t\t\t\n\t\t\tend = v;\n\t\t\tthis.busLine = busLine;\n\t\t}",
"public PolytopeEdge(PolytopePoint s1, PolytopePoint s2){\n\t\t\tstart = s1;\n\t\t\tend = s2;\n\t\t}",
"public Edge(Vertex in_pointOne, Vertex in_pointTwo){\n\t\tthis.point... | [
"0.7058547",
"0.68670356",
"0.6855506",
"0.6746196",
"0.6709936",
"0.6568107",
"0.65037596",
"0.6501183",
"0.64493114",
"0.64344877",
"0.6375939",
"0.63147455",
"0.6303185",
"0.62696695",
"0.62106806",
"0.6167767",
"0.61632514",
"0.6158235",
"0.6143336",
"0.613437",
"0.612140... | 0.75149894 | 0 |
These are all the getter methods for the endpoints and the busline | public GraphNode firstEndpoint(){
return first;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n return endpoint;\n }",
"public Vertex<V>[] getEndpoints() { return endpoints; }",
"public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}",
"protected abstract String getBaseEndpoint();",
"public String getEndpoint() {\n ... | [
"0.6799523",
"0.65268147",
"0.6459086",
"0.63433534",
"0.6241544",
"0.6241544",
"0.624054",
"0.6207304",
"0.61235815",
"0.6119356",
"0.61071193",
"0.6051756",
"0.60028446",
"0.5967394",
"0.59506243",
"0.59459555",
"0.5914358",
"0.58005816",
"0.5776468",
"0.5749877",
"0.573165... | 0.0 | -1 |
Registers the debug logger to a server | public static void register(TurtleServer server) {
server.addListener(instance);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponse... | [
"0.6052612",
"0.59188116",
"0.5896127",
"0.5779505",
"0.5727208",
"0.5663507",
"0.56456393",
"0.5590995",
"0.55746764",
"0.53833944",
"0.53806096",
"0.537196",
"0.53598726",
"0.53456897",
"0.5282185",
"0.525484",
"0.52480125",
"0.52414954",
"0.5225767",
"0.5224561",
"0.520811... | 0.508764 | 30 |
Unregisters the debug logger from a server | public static void unregister(TurtleServer server) {
server.removeListener(instance);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void unRegisterLoggingMBean() throws Exception {\n MBeanServer server = ManagementFactory.getPlatformMBeanServer();\n ObjectName loggerObjectName = new ObjectName(\"com.yammer:type=Logging\");\n if (server.isRegistered(loggerObjectName)) {\n server.unregisterMBean(loggerObje... | [
"0.653563",
"0.6079435",
"0.60640883",
"0.5901553",
"0.586329",
"0.57902867",
"0.57422155",
"0.573959",
"0.57339835",
"0.5668539",
"0.5562991",
"0.55379826",
"0.54937094",
"0.54832774",
"0.54788977",
"0.54436946",
"0.541998",
"0.539808",
"0.5373242",
"0.5361794",
"0.5361015",... | 0.5982512 | 3 |
TODO Autogenerated method stub | @Override
public void onErrorResponse(VolleyError error) {
Log.d("ERROR","error => "+error.toString());
} | {
"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 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static FragmentOptions newInstance(String param1, String param2) {
FragmentOptions fragment = new FragmentOptions();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n ... | [
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.664618... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_options, container, false);
//Find the +1 button
//mPlusOneButton = (PlusOneButton) view.findViewById(R.id.plus_one_button1);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
TODO: Rename method, update argument and hook method into UI event | public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@... | [
"0.6619185",
"0.65246344",
"0.6473144",
"0.6473144",
"0.64351684",
"0.6325494",
"0.62368196",
"0.6189416",
"0.6158721",
"0.61455715",
"0.6123594",
"0.6107332",
"0.6101038",
"0.6092755",
"0.6049496",
"0.6049496",
"0.60442764",
"0.604003",
"0.604003",
"0.6007846",
"0.59999037",... | 0.0 | -1 |
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
public void onFragmentInteraction(Uri uri);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public int... | [
"0.7323901",
"0.720826",
"0.71346456",
"0.712432",
"0.71223646",
"0.7014406",
"0.6975986",
"0.6975986",
"0.6975986",
"0.6973731",
"0.69676983",
"0.69656146",
"0.6960717",
"0.69542384",
"0.6943149",
"0.6933716",
"0.69288176",
"0.69264686",
"0.6922715",
"0.6909953",
"0.6902666"... | 0.0 | -1 |
TODO: Update argument type and name | public void onFragmentInteraction(Uri uri); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic ... | [
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.599... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.