query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
Gets Dimensions of the File and makes a String array named dimensions | private static String[][] getMap(String inputFile, String[][] Map) {
File text = new File(inputFile);
int j = 0;
try {
Scanner s = new Scanner(text);
String nex = s.nextLine();
while(s.hasNextLine())
{
nex = s.nextLine();
for (int i = 0; i < nex.length(); i++)
{
char c = nex.charAt(i);
String d = Character.toString(c);
Map[j][i] = d;
}
j++;
}
s.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return Map;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String[][] getDimensions(String inputFile)\r\n\t{\n\t\t\t\tFile text = new File(inputFile);\r\n\t\t\t\tScanner rowColumn;\r\n\t\t\t\tString[][] dimensions = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\trowColumn = new Scanner(text);\r\n\t\t\t\t\tString row = rowColumn.next();\r\n\t\t\t\t\tString column = row... | [
"0.73542064",
"0.6458148",
"0.6392326",
"0.6296459",
"0.6201053",
"0.60848606",
"0.60560936",
"0.60458726",
"0.6043569",
"0.5957244",
"0.5944872",
"0.59230405",
"0.58982974",
"0.58326846",
"0.58294296",
"0.57879734",
"0.57123345",
"0.5699783",
"0.5678002",
"0.56385535",
"0.56... | 0.0 | -1 |
Gets Dimensions of the File and makes a String array named dimensions | public static String[][] getDimensions(String inputFile)
{
File text = new File(inputFile);
Scanner rowColumn;
String[][] dimensions = null;
try {
rowColumn = new Scanner(text);
String row = rowColumn.next();
String column = rowColumn.next();
Integer row2 = Integer.parseInt(row);
Integer column2 = Integer.parseInt(column);
dimensions = new String[row2][column2];
rowColumn.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return dimensions;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long[] dimensions()\n\t{\n\t\tint dimcount=multimemory.dims.length;\n\t\tlong[] o=new long[dimcount];\n\t\tfor (int i=0; i<o.length; i++)\n\t\t{\n\t\t\to[i]=multimemory.dims[i];\n\t\t\t\n\t\t}\n\t\t\n\t\treturn o;\n\t}",
"public int[] getDimensions() {\r\n int[] dimensions = new int[2];\r\n dime... | [
"0.6459237",
"0.639279",
"0.6296005",
"0.6201166",
"0.6085819",
"0.6058255",
"0.60458636",
"0.6044712",
"0.5958232",
"0.5944882",
"0.59232867",
"0.58968735",
"0.5834409",
"0.582934",
"0.5787701",
"0.57124716",
"0.57017475",
"0.5679341",
"0.5638494",
"0.5620549",
"0.5614413",
... | 0.73546124 | 0 |
targetAppTime: CPU Running time of app, totalTime: Total CPU Running time | public double measurePowerUsage(String packageNameString, HashMap<String, Long> appCpuTimeBefor, long r_time) {
HashMap<String, Long> appCpuTimeAfter = new HashMap<String, Long>();
appCpuTimeAfter = getAppCpuTime(packageNameString);
double totalPower = 0;
double targetAppTimeAfter = appCpuTimeAfter.get("targetAppTime");
double targetAppTimeBefor = appCpuTimeBefor.get("targetAppTime");
Log.i("TAG", "appCpuTimeAfter " + targetAppTimeAfter);
Log.i("TAG", "appCpuTimeBefor " + targetAppTimeBefor);
double totalTimeAfter = appCpuTimeAfter.get("totalTime");
double totalTimeBefor = appCpuTimeBefor.get("totalTime");
Log.i("TAG", "totalTimeAfter " + totalTimeAfter);
Log.i("TAG", "totalTimeBefor " + totalTimeBefor);
Log.i("AAAAAAAAA", "targetAppTimeAfter-targetAppTimeBefor"+String.valueOf(targetAppTimeAfter-targetAppTimeBefor));
Log.i("AAAAAAAAA", "totalTimeAfter-totalTimeBefor"+String.valueOf(totalTimeAfter-totalTimeBefor));
//double ratio = (targetAppTimeAfter - targetAppTimeBefor + r_time) / (totalTimeAfter - totalTimeBefor + r_time);
//double ratio = (targetAppTimeAfter - targetAppTimeBefor ) / (totalTimeAfter - totalTimeBefor );
//double ratio = (targetAppTimeAfter - targetAppTimeBefor + r_time/10) / (totalTimeAfter - totalTimeBefor + r_time/10);
double ratio= (r_time/10)/(totalTimeAfter - totalTimeBefor);
Log.i("TAG", "ratio" + ratio);
return ratio; //second to hour
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double measurePowerUsage(String packageNameString, HashMap<String, Long> appCpuTimeBefor, long r_time) {\n //targetAppTime: CPU Running time of app, totalTime: Total CPU Running time\n HashMap<String, Long> appCpuTimeAfter = new HashMap<String, Long>();\n appCpuTimeAfter = getAppCpuTime... | [
"0.706705",
"0.69806737",
"0.68544084",
"0.67747325",
"0.6683666",
"0.65364695",
"0.64610094",
"0.6424765",
"0.64159745",
"0.6393227",
"0.6364223",
"0.63628733",
"0.6324682",
"0.6316202",
"0.62498206",
"0.6213407",
"0.619802",
"0.619034",
"0.61453927",
"0.6111345",
"0.610702"... | 0.6782851 | 3 |
Return CPU running time of some process | private long getAppProcessTime(int pid) {
FileInputStream in = null;
String ret = null;
try {
in = new FileInputStream("/proc/" + pid + "/stat");
byte[] buffer = new byte[1024];
ByteArrayOutputStream os = new ByteArrayOutputStream();
int len = 0;
while ((len = in.read(buffer)) != -1) {
os.write(buffer, 0, len);
}
ret = os.toString();
os.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
if (ret == null) {
return 0;
}
String[] s = ret.split(" ");
if (s == null || s.length < 17) {
return 0;
}
long utime = string2Long(s[13]);
long stime = string2Long(s[14]);
long cutime = string2Long(s[15]);
long cstime = string2Long(s[16]);
return utime + stime + cutime + cstime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getCPU_time();",
"private long getCpuTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : 0L;\n }",
"public long getCpuTime() {\n\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\tr... | [
"0.8020491",
"0.7885618",
"0.7800895",
"0.7735548",
"0.7704607",
"0.7704415",
"0.7650248",
"0.76362425",
"0.7619157",
"0.7589197",
"0.752784",
"0.7422441",
"0.7354453",
"0.72821075",
"0.7244055",
"0.7237859",
"0.7087943",
"0.70486313",
"0.70375156",
"0.7036908",
"0.7032745",
... | 0.68389285 | 26 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79033595",
"0.7804288",
"0.7765498",
"0.77259207",
"0.76304305",
"0.7621137",
"0.75833404",
"0.7529789",
"0.7487063",
"0.74565315",
"0.74565315",
"0.7437683",
"0.7421245",
"0.7402311",
"0.7390894",
"0.7386079",
"0.737815",
"0.7369255",
"0.736113",
"0.735479",
"0.7344447",
... | 0.0 | -1 |
Format a number of tenthsunits as a decimal string without using a conversion to float. E.g. 347 > "34.7" | private String tenthsToFixedString(int x) {
int tens = x / MAGIC_NUMBER_TEN;
return new String("" + tens + "." + (x - MAGIC_NUMBER_TEN * tens));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String format(double number);",
"private String formatDec(double number) {\n String returnString = \"\";\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.HALF_UP);\n returnString = df.format(number);\n int dotPosition = returnString.las... | [
"0.72418594",
"0.71671605",
"0.6908701",
"0.68458736",
"0.6721776",
"0.6667706",
"0.6609872",
"0.6542154",
"0.6533651",
"0.65314025",
"0.6508466",
"0.6488077",
"0.6467114",
"0.64342934",
"0.64304686",
"0.64199424",
"0.6419218",
"0.6386472",
"0.63834965",
"0.635425",
"0.633417... | 0.682988 | 4 |
Complete the appendAndDelete function below. | static String appendAndDelete(String s, String t, int k) {
String [] ss = s.split("");
String [] tt = t.split("");
//case 1. String s 를 완전히 지우고 t를 추가하는 경우
if(s.length()+t.length()<=k){
return "Yes";
}
//case 2. String s 를 완전히 지우지 않고 t로 변환 가능 한지 확인
int i=0;
for (; i <Math.min(s.length(),t.length()); i++) {
if (s.charAt(i) != t.charAt(i)) {
break;
}
}
int min = (s.length()-i) + (t.length()-i); // 최소한 1개는 같고 나머지값 삭제,등록
if(k>= min && (k-min)%2 ==0){ //(k-min) %2==0인 조건은 작업 k 개수를 맞추기위해 낭비하는 작업은 추가,삭제 2가지이기 때문에 2로 나눈 나머지가 0이여야 한다.
return "Yes";
}else{
return "No";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void delete() {\n\n\t}",
"public void DeleteEnd(){\n\t\tsuper.cut();\n\t}",
"@Override\n\tpublic void delRec() {\n\t\t\n\t}",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"public void MarkForDeletion();",
"void compareDeletion();",
"@Override\n\tpublic void delete() {\n\n\t}",
"protected... | [
"0.6290771",
"0.61178434",
"0.5883254",
"0.58540416",
"0.58295774",
"0.5788497",
"0.57766914",
"0.57600427",
"0.5752543",
"0.5752543",
"0.5725894",
"0.5720349",
"0.57021856",
"0.5666",
"0.5661342",
"0.56518775",
"0.56484365",
"0.554829",
"0.554829",
"0.5536593",
"0.5519043",
... | 0.0 | -1 |
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); | public static void main(String[] args) throws IOException {
String s = scanner.nextLine();
String t = scanner.nextLine();
int k = scanner.nextInt();
scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
String result = appendAndDelete(s, t, k);
System.out.println(result);
// bufferedWriter.write(result);
// bufferedWriter.newLine();
//
// bufferedWriter.close();
scanner.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\t\t\n\t\tbufferedWriter.write(\"Hello\");\n\n\t}",
"private static void prepareOutputFile() {\n try {\n outputFileBuffer = new B... | [
"0.7208951",
"0.6818136",
"0.6046917",
"0.6026327",
"0.60085016",
"0.5919143",
"0.5893843",
"0.5815469",
"0.57774395",
"0.5760592",
"0.5614614",
"0.5604274",
"0.55838466",
"0.55779165",
"0.556981",
"0.55367434",
"0.55362725",
"0.5508084",
"0.5499879",
"0.54957664",
"0.5481262... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void postRun(FormCheckerForm form) {
} | {
"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 |
add userId and artistName to every SimilarArtist object | public void addUserIdAndArtistNameToSimilarArtist(String userId, String artistName,
List<SimilarArtist> similarArtistList) {
for (int i = 0; i < similarArtistList.size(); i++) {
similarArtistList.get(i).setUserId(userId);
similarArtistList.get(i).setArtistName(artistName);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addUserIdAndArtistNameToTag(String userId, String artistName, List<Tag> tagList) {\n for (int i = 0; i < tagList.size(); i++) {\n tagList.get(i).setUserId(userId);\n tagList.get(i).setArtistName(artistName);\n }\n }",
"List<Album> getAlbumFromArtiste(Integer art... | [
"0.656134",
"0.5899254",
"0.58066463",
"0.56099766",
"0.56099766",
"0.56025404",
"0.5506975",
"0.5467875",
"0.54451716",
"0.54262745",
"0.5412268",
"0.5408216",
"0.5371497",
"0.53624284",
"0.5347306",
"0.53358847",
"0.5307826",
"0.53071135",
"0.5305599",
"0.5294929",
"0.52906... | 0.75649345 | 0 |
add userId and artistName to every Tag object | public void addUserIdAndArtistNameToTag(String userId, String artistName, List<Tag> tagList) {
for (int i = 0; i < tagList.size(); i++) {
tagList.get(i).setUserId(userId);
tagList.get(i).setArtistName(artistName);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addTag(String tag){tags.add(tag);}",
"private void assembleTags(Question question, String userTags) {\n\t\tif (userTags != null && !userTags.isEmpty()) {\n\t\t\tString[] tagNames = userTags.split(Constants.COMMA_DELIMITER);\n\t\t\tif (tagNames.length > 0) {\n\t\t\t\tList<Tag> tags = new ArrayList<Tag>();\n\... | [
"0.58530515",
"0.5816825",
"0.57645774",
"0.5563339",
"0.5557148",
"0.54948664",
"0.5428343",
"0.53717464",
"0.53598243",
"0.53237104",
"0.5253419",
"0.522498",
"0.52158886",
"0.5181591",
"0.51790935",
"0.5154275",
"0.51527566",
"0.5150452",
"0.51408374",
"0.51095927",
"0.508... | 0.7611868 | 0 |
This method will create a Temporary File in the given location by directory | public static File createTempFile(String prefix, String suffix, File directory) {
File tempFile = null;
try {
tempFile = File.createTempFile(prefix, suffix, directory);
tempFile.deleteOnExit();
if (!tempFiles.contains(tempFile) && !tempFiles.contains(tempFile.getParentFile())) {
tempFiles.add(tempFile);
}
} catch (IOException e) {
log.error("Failed to create the Temp file.", e);
}
return tempFile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File createTempFile() throws Exception {\n File dir = tempFileDirectory();\n dir.mkdirs();\n File tempFile = File.createTempFile(\"tst\", null, dir);\n dir.deleteOnExit(); // Not fail-safe on android )¬;\n return tempFile;\n }",
"private static File createTempD... | [
"0.734315",
"0.70375574",
"0.7012019",
"0.67970055",
"0.67076105",
"0.667232",
"0.6633383",
"0.6610902",
"0.6606473",
"0.6544835",
"0.65375584",
"0.6532164",
"0.6530279",
"0.65164083",
"0.6516179",
"0.647153",
"0.6416488",
"0.6380854",
"0.6367674",
"0.6314646",
"0.62938005",
... | 0.6453042 | 16 |
These colors correspond roughly to error, output, and info colors of the CDT console colors | public void run() {
disposeColor(errorColor);
disposeColor(inputColor);
disposeColor(messageColor);
disposeColor(bkgColor);
RGB errorRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_ERROR_COLOR);
RGB inputRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_OUTPUT_COLOR);
RGB messageRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_INFO_COLOR);
RGB bkgRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_BACKGROUND_COLOR);
errorColor = new Color(d, errorRGB);
inputColor = new Color(d, inputRGB);
messageColor = new Color(d, messageRGB);
bkgColor = new Color(d, bkgRGB);
error.setColor(errorColor);
input.setColor(inputColor);
message.setColor(messageColor);
console.setBackground(bkgColor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Colors\n {\n // Restore default\n String RESTORE = \"\\033[0m\";\n \n // Default colors\n String BLACK = \"\\033[1;30m\"; // Black\n String RED = \"\\033[1;31m\"; // Red\n String GREEN = \"\\033[1;32m\"; // Green\n Stri... | [
"0.67271215",
"0.6468802",
"0.6261141",
"0.62443894",
"0.60295624",
"0.58771515",
"0.58264893",
"0.58071226",
"0.57629436",
"0.57147765",
"0.56938106",
"0.5692842",
"0.5689475",
"0.5670826",
"0.56202024",
"0.5600548",
"0.5593537",
"0.55898744",
"0.5585646",
"0.55571735",
"0.5... | 0.5765696 | 8 |
Returns the underlying Eclipse IConsole of this IDEProcessConsole. | public IConsole getConsole() {
return console;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IOConsole getConsole() {\n return fConsole;\n }",
"public Console getConsole() {\n\t\treturn console;\n\t}",
"public Console getConsole() {\n\t\treturn console;\n\t}",
"public static TextArea getConsole() {\r\n\t\t\r\n\t\treturn console;\r\n\t}",
"private JTextArea getConsole() {\r\n\t\tif (cons... | [
"0.7386155",
"0.72807986",
"0.72807986",
"0.7193268",
"0.6946523",
"0.68798465",
"0.68167156",
"0.6631609",
"0.65747523",
"0.6468244",
"0.63076526",
"0.61830914",
"0.589716",
"0.57949114",
"0.56740695",
"0.5595814",
"0.5558081",
"0.54717433",
"0.5448533",
"0.5441577",
"0.5419... | 0.7306513 | 1 |
get all images from database | private void getImagesFromDatabase() {
try {
mCursor = mDbAccess.getPuzzleImages();
if (mCursor.moveToNext()) {
for (int i = 0; i < mCursor.getCount(); i++) {
String imagetitle = mCursor.getString(mCursor.getColumnIndex("imagetitle"));
String imageurl = mCursor.getString(mCursor.getColumnIndex("imageurl"));
mImageModel.add(new CustomImageModel(imagetitle, imageurl));
mCursor.moveToNext();
}
} else {
Toast.makeText(getActivity(), "databse not created...", Toast.LENGTH_LONG).show();
}
} catch (Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Image> getAllImage()\n {\n GetAllImageQuery getAllImageQuery = new GetAllImageQuery();\n return super.queryResult(getAllImageQuery);\n }",
"@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}",
"@Override\n\tpublic List<S... | [
"0.8008287",
"0.7824547",
"0.7768695",
"0.771344",
"0.7577392",
"0.75346696",
"0.75149715",
"0.73617613",
"0.69943357",
"0.69819915",
"0.6936865",
"0.69070506",
"0.68679",
"0.68509734",
"0.6818479",
"0.6766376",
"0.67663497",
"0.6756056",
"0.67166203",
"0.6675477",
"0.6608143... | 0.79912114 | 1 |
Interface to notify adapter to flip images | public interface ICallBAck {
void getCallback();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\n\t\t\tfloat halfWidth = imswitcher.getWidth() / 2.0f;\n\t\t\tfloat halfHeight = imswitcher.getHeight() / 2.0f;\n\t\t\tint duration = 500;\n\t\t\tint depthz = 0;// viewF... | [
"0.61068827",
"0.6035375",
"0.59599566",
"0.57645166",
"0.57548106",
"0.57371837",
"0.5688027",
"0.56651163",
"0.5632432",
"0.5619309",
"0.5611968",
"0.5607302",
"0.5580722",
"0.55716234",
"0.55686337",
"0.5563697",
"0.55623406",
"0.5545829",
"0.55385745",
"0.55235803",
"0.55... | 0.0 | -1 |
Sets up the time at which the plugin is successfully enabled. | protected void setupTime() {
this.start = System.currentTimeMillis();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onEnable()\n\t{\n\t\t//Tells the user that the plugin is starting up.\n\t\tlog.info(\"Started up.\");\n\t}",
"@Override\n public void setAutoTimeEnabled(ComponentName who, boolean enabled) {\n if (!mHasFeature) {\n return;\n }\n Objects.requireNonNull(who, \"Compone... | [
"0.6383384",
"0.6342091",
"0.6235215",
"0.59324586",
"0.5926005",
"0.5754578",
"0.57402205",
"0.5733982",
"0.56680125",
"0.564166",
"0.5606866",
"0.55946445",
"0.5541273",
"0.55055493",
"0.55026716",
"0.5493253",
"0.54847425",
"0.5480146",
"0.5442144",
"0.5434886",
"0.5431403... | 0.62220955 | 3 |
Create new Student object with all data | @Override
public void onClick(View v) {
studentForReg = new Student();
studentForReg.setEmail(studentEmail.getText().toString());
studentForReg.setName(studentName.getText().toString());
studentForReg.setPhoneNumber(Integer.valueOf(phoneNumber.getText().toString()));
studentForReg.setAge(Integer.valueOf(age.getText().toString()));
studentForReg.setRealm(realm.getSelectedItem().toString());
//Start Async task to register in remote DB
DBExcute dbEx = new DBExcute();
dbEx.execute();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Student createStudent();",
"public Student() {\n \n }",
"public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }",
"public Student(){}",
"public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp =... | [
"0.79774696",
"0.7502964",
"0.747563",
"0.74653405",
"0.7412935",
"0.73048806",
"0.72973776",
"0.7240031",
"0.7240031",
"0.7240031",
"0.72314805",
"0.7169714",
"0.7131485",
"0.70949125",
"0.7072342",
"0.70433474",
"0.7041933",
"0.69518226",
"0.69199586",
"0.686807",
"0.686749... | 0.0 | -1 |
Make popup visible (popup proceed button listener is up here in the code) | @Override
protected void onPostExecute(Void curVoid) {
super.onPostExecute(curVoid);
popupWindow.showAtLocation(parent, Gravity.CENTER, 50, -30);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}",
"public void triggerPopup();",
"boolean isPopUpOpened();",
"public void showGenPopup() {\n\t\ttv_popupTit... | [
"0.74394214",
"0.73462886",
"0.726456",
"0.72208655",
"0.7007567",
"0.6880165",
"0.6797713",
"0.6693846",
"0.6688274",
"0.66825545",
"0.6668018",
"0.6661584",
"0.6652679",
"0.6641339",
"0.65898764",
"0.6576903",
"0.657483",
"0.6572367",
"0.6545102",
"0.65269125",
"0.6478986",... | 0.63463235 | 30 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
constructor with additional parameters | public Tank(BitmapDrawable tankDrawable, Point p, int flag, int direction,
int h, int w) {
this.flag = flag;
this.tankBmp = tankDrawable.getBitmap();
matrix.postRotate((direction - UP) * 90);
tankBmp = Bitmap.createBitmap(tankBmp, 0, 0, tankBmp.getWidth(),
tankBmp.getHeight(), matrix, true);
this.direction = direction;
this.centerPoint = p;
gun.setY(centerPoint.getY());
gun.setX(centerPoint.getX() + tankBmp.getWidth() / 2);
this.screenHeight = h;
this.screenWidth = w;
column = tankBmp.getWidth() / UNIT;
row = tankBmp.getHeight() / UNIT;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public BaseParameters(){\r\n\t}",
"protected abstract void construct();",
"Reproducible newInstance();",
"private Instantiation(){}",
"public Parameters() {\n\t}",
"private Params()\n {\n }",
"private void __sep__Constructors... | [
"0.7344323",
"0.7054638",
"0.6893801",
"0.6784437",
"0.67014843",
"0.66238004",
"0.6621062",
"0.6605128",
"0.6486148",
"0.64447707",
"0.64309055",
"0.6414857",
"0.6388799",
"0.638529",
"0.63843006",
"0.638192",
"0.6373236",
"0.6337376",
"0.6317489",
"0.63135946",
"0.6304515",... | 0.0 | -1 |
reset the position of tank | private void resetTankPoint() {
modifyMapStatus(0);// release the point where tank occupies
if (direction == UP) {
this.centerPoint.setY(centerPoint.getY() - speed);
} else if (direction == DOWN) {
this.centerPoint.setY(centerPoint.getY() + speed);
} else if (direction == LEFT) {
this.centerPoint.setX(centerPoint.getX() - speed);
} else if (direction == RIGHT) {
this.centerPoint.setX(centerPoint.getX() + speed);
}
resetFrontPoint();
modifyMapStatus(1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset() {\n position = 0;\n }",
"public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }",
"public void resetPosition()\n {\n resetPosition(false);\n }",
"public void reset() {\n\t\tpos.tijd = 0;\r\n\t\tpos.xposbal = xposstruct;\r\n\... | [
"0.73095685",
"0.72636926",
"0.71228033",
"0.70850754",
"0.7030812",
"0.6988587",
"0.69274884",
"0.68755955",
"0.68219405",
"0.6699819",
"0.66873235",
"0.66644526",
"0.66596246",
"0.66526777",
"0.6651714",
"0.6644397",
"0.65997535",
"0.6579446",
"0.6576569",
"0.6549193",
"0.6... | 0.8010683 | 0 |
modify the status of the map | private void modifyMapStatus(int status) {
int bC = centerPoint.getX() / UNIT;
int bR = centerPoint.getY() / UNIT;
for (int i = bR; i < bR + row; i++) {
for (int j = bC; j < bC + column; j++) {
if(stage==1){
GameView.map[i][j] = status;
}else if(stage ==2){
GameViewStage2.map[i][j] = status;
}else {
GameViewStage3.map[i][j] = status;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void onMapStatusChange(MapStatus arg0) {\n\n\t\t}",
"public void setMapStatus(String mapStatus) {\n\t\tthis.mapStatus = mapStatus;\n\t}",
"void setMapChanged();",
"void updateMap(MapData map);",
"public void map(){\n this.isMap = true;\n System.out.println(\"Switch to ma... | [
"0.69081295",
"0.6896683",
"0.6797598",
"0.6732605",
"0.6544773",
"0.644206",
"0.63964975",
"0.6385133",
"0.63786805",
"0.6327476",
"0.6250117",
"0.62383497",
"0.62271845",
"0.6195416",
"0.618478",
"0.6178806",
"0.6175401",
"0.6174685",
"0.6165295",
"0.61636275",
"0.6143008",... | 0.79771304 | 0 |
draw a tank on the canvas | public void drawTank(Canvas canvas) {
canvas.drawBitmap(tankBmp, centerPoint.x, centerPoint.y, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tank(){ //initializes the x, y, and rectangle\n\t\t\tx = 350;\n\t\t\tlx = x + 100;\n\t\t\tly = 490;\n\t\t\tthis.setBounds(x,y,540,200);\n\t\t}",
"public void draw(Canvas canvas, int rad) {\n PointOnTank(currentSelfAngle, rad);\n realTank.set(tx-halfwidth, ty-halfheight, tx+halfwidth, ty+half... | [
"0.6996663",
"0.6584134",
"0.64627284",
"0.64627284",
"0.63139135",
"0.6255649",
"0.62345576",
"0.62029964",
"0.61124843",
"0.61040354",
"0.6083938",
"0.60730076",
"0.6065703",
"0.60520285",
"0.6047939",
"0.60416573",
"0.6038966",
"0.60337204",
"0.60188276",
"0.60179186",
"0.... | 0.7584766 | 0 |
get the postion of the gun | public Point getFrontPoint() {
return this.gun;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getGunType() {\n return gunType_;\n }",
"public int getGunType() {\n return gunType_;\n }",
"public String getGunName() {\n\t\treturn gunName;\n\t}",
"int getGunType();",
"private void gunModifier()\n\t{\t\t\n\t\tif (_gunModifier == 0)\n\t\t{\n\t\t\t_gunModifier = (_gunModifi... | [
"0.6459174",
"0.639515",
"0.6111921",
"0.59941185",
"0.58439916",
"0.5715279",
"0.5627791",
"0.5602145",
"0.55998254",
"0.5572739",
"0.5533257",
"0.54940087",
"0.5478692",
"0.5430318",
"0.5429524",
"0.5416655",
"0.53961986",
"0.5388371",
"0.5376686",
"0.5369836",
"0.53675956"... | 0.5030261 | 64 |
tank is hit by a shell | public boolean hit(Shell s) {
if (s.getFlag() == flag) {
return false;
}
if (getFillRect().intersect(s.getFillRect())) {
modifyMapStatus(0);
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void command() {\n\t\tSystem.out.println(\"CommandAttack Process\");\r\n\t}",
"void fireShellAtPlayer(int playerNr, int x, int y);",
"private void getInput(){\n\n if (tankNumber == 1) {\n if (handler.getTankControl1().up1) {\n this.moveForwards();\n ... | [
"0.6020129",
"0.5977099",
"0.59289163",
"0.5863956",
"0.5765648",
"0.5713979",
"0.5708323",
"0.5557743",
"0.5519538",
"0.55123377",
"0.545027",
"0.54487044",
"0.54377115",
"0.5425026",
"0.5402077",
"0.5387043",
"0.53820455",
"0.53809994",
"0.5376595",
"0.5376158",
"0.5373481"... | 0.0 | -1 |
judge if the tank can move,then change its position by reset its position' | private boolean canMove() {
if (System.currentTimeMillis() - lastTrunTime < 300) {// move time is
// 300ms before
// last move
return false;
}
boolean status = false;
if(stage == 1){
map = GameView.map;
}else if(stage == 2){
map = GameViewStage2.map;
}else {
map = GameViewStage3.map;
}
if (direction == UP) {// when tank moves up
if (centerPoint.getY() - speed >= 0) {
if (map[(centerPoint.getY() - speed) / UNIT][centerPoint
.getX() / UNIT] == 0
&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint
.getX() + UNIT) / UNIT] == 0
&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint
.getX() + 2 * UNIT) / UNIT] == 0) {
status = true;
}
}
} else if (direction == DOWN) {
if (centerPoint.getY() + tankBmp.getHeight() + speed < screenHeight) {
if (map[(centerPoint.getY() + 2 * UNIT + speed) / UNIT][centerPoint
.getX() / UNIT] == 0
&& map[(centerPoint.getY() + 2 * UNIT + speed)
/ UNIT][(centerPoint.getX() + UNIT) / UNIT] == 0
&& map[(centerPoint.getY() + 2 * UNIT + speed)
/ UNIT][(centerPoint.getX() + 2 * UNIT) / UNIT] == 0) {
status = true;
}
}
} else if (direction == LEFT) {
if (centerPoint.getX() - speed >= 0) {
if (map[centerPoint.getY() / UNIT][(centerPoint.getX() - speed)
/ UNIT] == 0
&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint
.getX() - speed) / UNIT] == 0
&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint
.getX() - speed) / UNIT] == 0) {
status = true;
}
}
} else if (direction == RIGHT) {
if (centerPoint.getX() + tankBmp.getWidth() + speed < screenWidth) {
if (map[centerPoint.getY() / UNIT][(centerPoint.getX()
+ 2 * UNIT + speed)
/ UNIT] == 0
&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint
.getX() + 2 * UNIT + speed)
/ UNIT] == 0
&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint
.getX() + 2 * UNIT + speed)
/ UNIT] == 0) {
status = true;
}
}
}
if (status)
lastTrunTime = System.currentTimeMillis();
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void move(int direction)\n {\n // TODO YOUR CODE HERE\n if (direction == 3)\n {\n int begincell=tankY;\n int endcell=tankY+cell_height;\n if ((begincell >= 0) && (endcell <= BF_HEIGHT))\n {\n System.out.println(\"Move down\");\n ... | [
"0.71186674",
"0.69960505",
"0.6765849",
"0.6651567",
"0.66500545",
"0.66361225",
"0.66356194",
"0.6589432",
"0.6580051",
"0.65714073",
"0.6565418",
"0.65643024",
"0.65541047",
"0.65393406",
"0.6503623",
"0.64971524",
"0.64925027",
"0.64922833",
"0.64796966",
"0.6469911",
"0.... | 0.68189967 | 2 |
TODO Autogenerated method stub | public static void main(String[] args) {
new RemoteInvocationClient().go();
} | {
"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 |
Constructor for GUI class. | public GUI() {
super("Day Planner");
setSize(465,550);
setDefaultCloseOperation(EXIT_ON_CLOSE);
addWindowListener(new CheckOnExit() {});
basePanel = new JPanel(new CardLayout());
init();
basePanel.setVisible(true);
add(basePanel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GUI() {\n }",
"public GUI() {\n initComponents();\n }",
"public GUI() {\n initComponents();\n }",
"public GUI() {\n\t\tinitComponents();\n\t}",
"public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}",
"public GUI() {\n initComponents();\n }",
"private GUI()\n {\... | [
"0.87632734",
"0.84393036",
"0.84393036",
"0.83599615",
"0.83032143",
"0.820845",
"0.801798",
"0.8008344",
"0.7926941",
"0.7926941",
"0.78410083",
"0.78398633",
"0.7814733",
"0.7806224",
"0.77968407",
"0.777656",
"0.77727455",
"0.7730712",
"0.7730359",
"0.7711069",
"0.7711037... | 0.0 | -1 |
Creates and adds all visual elements to the GUI. | private void init() {
initMenu();
initWelcome();
search = new SearchFrame();
search.setVisible(true);
basePanel.add(search, "Search");
add = new AddFrame();
add.setVisible(true);
basePanel.add(add, "Add");
this.changeState("Welcome");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}",
"private void creatingElements() {\n\t\ttf1 = new JTextField... | [
"0.78022915",
"0.74962604",
"0.7459833",
"0.74168867",
"0.7387308",
"0.7342448",
"0.73400754",
"0.7337451",
"0.7333664",
"0.73309195",
"0.730071",
"0.728237",
"0.71936756",
"0.7182852",
"0.71661305",
"0.7165645",
"0.7159161",
"0.71535575",
"0.71138483",
"0.7107336",
"0.710078... | 0.0 | -1 |
Creates the Welcome JPanel and adds it to the basePanel. | private void initWelcome() {
welcomePanel = new JPanel();
welcomePanel.setLayout(new BoxLayout(welcomePanel, BoxLayout.PAGE_AXIS));
welcomePanel.setBorder(BorderFactory.createEmptyBorder(30, 30, 30, 30));
JLabel welcomeLabel = new JLabel("Welcome to Kyle Hersey's Day Planer");
welcomePanel.add(welcomeLabel);
welcomePanel.add(Box.createRigidArea(new Dimension(10,10)));
JLabel welcomeLabel2 = new JLabel("Add and Search Activies, or Quit, from the Commands menu");
welcomePanel.add(welcomeLabel2);
welcomePanel.setVisible(true);
basePanel.add(welcomePanel, "Welcome");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Welcome(){\n\t\tinitComponents();\n\t\tcenterScreen();\n\t}",
"private HelloPanel() {\n\n\t\tHTML w = new HTML(BalasResources.INSTANCE.helloPane().getText());\n\t\tinitWidget(w);\n\t}",
"public HomePanel() {\r\n\t\tinitialisation();\r\n initComponents();\r\n\t\tpostInit();\r\n }",
"private C... | [
"0.6827653",
"0.67331016",
"0.6696486",
"0.65308625",
"0.6520951",
"0.6513214",
"0.64772636",
"0.6451894",
"0.64514637",
"0.63733006",
"0.63065815",
"0.6302991",
"0.6286124",
"0.627143",
"0.62609106",
"0.6232009",
"0.61986715",
"0.61914617",
"0.61714864",
"0.61611485",
"0.614... | 0.7788317 | 0 |
Creates the menu/menu bar that appears at the top of the GUI. | private void initMenu() {
JMenuBar menuBar = new JMenuBar();
JMenu commands = new JMenu("Commands");
JMenuItem add = new JMenuItem("Add");
add.addActionListener((ActionEvent e) -> {
changeState("Add");
});
commands.add(add);
JMenuItem search = new JMenuItem("Search");
search.addActionListener((ActionEvent e) -> {
changeState("Search");
});
commands.add(search);
JMenuItem quit = new JMenuItem("Quit");
quit.addActionListener((ActionEvent e) -> {
System.out.println("QUITING");
System.exit(0);
});
commands.add(quit);
menuBar.add(commands);
setJMenuBar(menuBar);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createMenuBar(){\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\t//Create the \"File\" menu\n\t\tthis.createFileMenu();\n\t\tmenuBar.add(fileMenu);\n\t\t\t\t\n\t\t//Create \"debug\" menu[disabled]\n\t\t//createDebugMenu();\t\t\n\t\t\n\t\t//last to be added to the menubar: about\n\t\tabout = new JMenuItem(\"... | [
"0.76649916",
"0.7587549",
"0.75645417",
"0.75637054",
"0.755065",
"0.751961",
"0.7418521",
"0.7404615",
"0.7397089",
"0.73823357",
"0.7268254",
"0.72659963",
"0.7254571",
"0.7168871",
"0.7162558",
"0.71559596",
"0.7151006",
"0.7127903",
"0.7114014",
"0.71093524",
"0.7097999"... | 0.68686897 | 45 |
Controls the current card being displayed by the CardLayout. | public void changeState(String state) {
CardLayout cl = (CardLayout)(basePanel.getLayout());
cl.show(basePanel, state);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void putCardMode() {\n gameboardPanel.putCardMode();\n leaderCardsPanel.disableProductionButtons();\n }",
"public void setActiveCard(String cardname){\n\t\tCardLayout cl = (CardLayout)(cards.getLayout());\n\t\tcl.show(cards, cardname);\n\t\t//note: if cardname is passed in ... | [
"0.7054062",
"0.6916142",
"0.67696863",
"0.66763",
"0.6585065",
"0.6582688",
"0.64580375",
"0.6360126",
"0.6337389",
"0.6330715",
"0.61994",
"0.6185117",
"0.6168844",
"0.6163126",
"0.6082155",
"0.6080806",
"0.607653",
"0.60580456",
"0.605587",
"0.6051718",
"0.6046499",
"0.6... | 0.5475377 | 70 |
Normal 29 array single test | @Test
public void testConvertDigitsToLettersForSingleDigits() {
Integer[] argArray = new Integer[]{2};
System.out.println("input: arr[] = {" + StringUtils.join(argArray,",")+"}");
try {
String s = DigitsToLettersUtils.convertDigitsToLetters(argArray);
System.out.println("output: " + s);
Assert.assertEquals("a b c", s);
} catch (Exception e) {
Assert.fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testArray()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateArrays();\n genericTests();\n }\n }",
"public void test(){\n\n int[] arr1 = {1};\n int[] arr2 = {1,1,2,2,3,3,4,4,5};\n ... | [
"0.7121135",
"0.6733891",
"0.65391743",
"0.6419682",
"0.63678324",
"0.62996054",
"0.62958854",
"0.6246458",
"0.6174187",
"0.6153567",
"0.61502534",
"0.5975852",
"0.5960247",
"0.5949177",
"0.59466535",
"0.5936654",
"0.5930339",
"0.5925348",
"0.59157896",
"0.5908866",
"0.589512... | 0.0 | -1 |
Normal 29 Array Multiple Tests | @Test
public void testConvertDigitsToLettersForMultipleDigits() {
Integer[] argArray = new Integer[]{3, 4,5};
System.out.println("input: arr[] = {" + StringUtils.join(argArray,",")+"}");
try {
String s = DigitsToLettersUtils.convertDigitsToLetters(argArray);
System.out.println("output: " + s);
Assert.assertEquals("dgj dgk dgl dhj dhk dhl dij dik dil egj egk egl ehj ehk ehl eij eik eil fgj fgk fgl fhj fhk fhl fij fik fil", s);
} catch (Exception e) {
Assert.fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testArray()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateArrays();\n genericTests();\n }\n }",
"@Test\n\tpublic void test() {\n\t\tTestUtil.testEquals(new Object[][]{\n\t\t\t\t{4, 2, 7, 1, 3},\n\t... | [
"0.78726906",
"0.70934206",
"0.68372744",
"0.6657293",
"0.6647523",
"0.6611658",
"0.652215",
"0.650566",
"0.65041184",
"0.64812577",
"0.6469137",
"0.63767904",
"0.63151056",
"0.6277155",
"0.62744206",
"0.6272691",
"0.62586397",
"0.6250721",
"0.62467873",
"0.6222042",
"0.62177... | 0.0 | -1 |
input 0 or 1 Test | @Test
public void testConvertDigitsToLettersForParamZeroAndOneDigits() {
Integer[] argArray = new Integer[]{0,1};
System.out.println("input: arr[] = {" + StringUtils.join(argArray,",")+"}");
try {
String s = DigitsToLettersUtils.convertDigitsToLetters(argArray);
System.out.println("output: " + s);
Assert.assertEquals("", s);
} catch (Exception e) {
Assert.fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean test(String input);",
"public static void main(String arg[]){\n\t\tint n;\r\n\t\tmyTester mt = new myTester();\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tn = in.nextInt();\r\n\t\tif(mt.isNegative(n)){\r\n\t\t\tSystem.out.print(n + \" is Negative\");\r\n\t\t}else if(mt.isZero(n)){\r\n\t\t\t... | [
"0.67733914",
"0.663941",
"0.6522005",
"0.6305066",
"0.62262267",
"0.6159946",
"0.6128266",
"0.6104349",
"0.6003694",
"0.5994192",
"0.5990167",
"0.5956145",
"0.5927539",
"0.59274507",
"0.59054464",
"0.58816457",
"0.58253914",
"0.58170325",
"0.58128583",
"0.5811016",
"0.580606... | 0.0 | -1 |
Normal 29 array single test | @Test
public void testConvertDigitsToLettersForCludingZero() {
Integer[] argArray = new Integer[]{2,0};
System.out.println("input: arr[] = {" + StringUtils.join(argArray,",")+"}");
try {
String s = DigitsToLettersUtils.convertDigitsToLetters(argArray);
System.out.println("output: " + s);
Assert.assertEquals("a b c", s);
} catch (Exception e) {
Assert.fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testArray()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateArrays();\n genericTests();\n }\n }",
"public void test(){\n\n int[] arr1 = {1};\n int[] arr2 = {1,1,2,2,3,3,4,4,5};\n ... | [
"0.71222943",
"0.6734644",
"0.65395963",
"0.64201415",
"0.6367812",
"0.6300889",
"0.62946874",
"0.62475",
"0.6172576",
"0.61543715",
"0.6150401",
"0.5977522",
"0.5960513",
"0.59501874",
"0.5946096",
"0.5935311",
"0.5930277",
"0.5926935",
"0.5914817",
"0.5908488",
"0.5895821",... | 0.0 | -1 |
input 10 or 99 Test | @Test
public void testConvertDigitsToLettersForTwoDigitNumber() {
Integer[] argArray = new Integer[]{99,10};
System.out.println("input: arr[] = {" + StringUtils.join(argArray,",")+"}");
try {
String s = DigitsToLettersUtils.convertDigitsToLetters(argArray);
System.out.println("output: " + s);
Assert.assertEquals("ww wx wy wz xw xx xy xz yw yx yy yz zw zx zy zz", s);
} catch (Exception e) {
Assert.fail();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint result = 0;\n\t\tint number = scanner.nextInt();\n\t\t\n\t\tif(number <= 99) {\n\t\t\tSystem.out.print(number);\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(number == 1000){\n\t\t\t\tnumber = 999;\n\t\t\t}\n\t\t\t\n\t\t\... | [
"0.67572796",
"0.6473193",
"0.64385",
"0.6395439",
"0.63692325",
"0.63020444",
"0.6291337",
"0.62293816",
"0.6195117",
"0.61817867",
"0.6175519",
"0.6173896",
"0.6148373",
"0.60524833",
"0.60506886",
"0.6025034",
"0.6024121",
"0.60144573",
"0.6013532",
"0.5990037",
"0.5979653... | 0.0 | -1 |
input param greater than 99,and throw Exception | @Test
public void testConvertDigitsToLettersForGreaterThanUsing() {
Integer[] argArray = new Integer[]{100};
System.out.println("input: arr[] = {" + StringUtils.join(argArray,",")+"}");
try {
DigitsToLettersUtils.convertDigitsToLetters(argArray);
Assert.fail();
} catch (Exception e) {
System.out.println("output: " + e.getMessage());
Assert.assertEquals("error:The input parameter is null or the value is greater than 99",e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void myMethod(int a) throws Exception {\n if(a>=1 && a<=10)\n System.out.println(\"We are safe\");\n else\n throw new Exception(\"we are at danger\");\n }",
"@Test(timeout = 4000)\n public void test006() throws Throwable {\n // Undeclared exception!\n tr... | [
"0.6621809",
"0.6432169",
"0.6397607",
"0.62686753",
"0.62640953",
"0.62037164",
"0.6195914",
"0.6170334",
"0.6119644",
"0.60819364",
"0.607072",
"0.6058631",
"0.6048519",
"0.60061795",
"0.5968891",
"0.59640366",
"0.5943875",
"0.59261733",
"0.5922877",
"0.59193647",
"0.591573... | 0.0 | -1 |
Constructor for primary key | public HgSendlog (java.lang.Integer id) {
super(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PrimaryKey createPrimaryKey();",
"public DatasetParameterPK() {\n }",
"public ParametroPorParametroPK() {\r\n\t}",
"PrimaryKey getPrimarykey();",
"Key getPrimaryKey();",
"public TdOficioAfectacionPK() {\n }",
"PrimaryKey getPrimaryKey();",
"public DomainPK()\n {\n }",
"public LeaguePrimar... | [
"0.7875029",
"0.7489606",
"0.739803",
"0.7096801",
"0.70711553",
"0.69975173",
"0.69803166",
"0.69716835",
"0.6964837",
"0.69633687",
"0.69163185",
"0.67959905",
"0.6758902",
"0.6702319",
"0.6702319",
"0.6702319",
"0.6699209",
"0.65859973",
"0.6582905",
"0.65318656",
"0.65293... | 0.0 | -1 |
/ Implementation should throw a WebApplicationException with an appropriate response code on auth failure | public interface AuthManager
{
void checkAuthAnnounce(Id<Node> nodeId, DynamicAnnouncement announcement, HttpServletRequest request);
void checkAuthDelete(Id<Node> nodeId, HttpServletRequest request);
void checkAuthReplicate(HttpServletRequest request);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }",
"@Override\n public void ... | [
"0.6933413",
"0.6530999",
"0.653098",
"0.64373004",
"0.640248",
"0.63493365",
"0.6341071",
"0.6328507",
"0.6298998",
"0.6293818",
"0.6246456",
"0.6201144",
"0.6179025",
"0.616004",
"0.61535054",
"0.6145457",
"0.5962788",
"0.5930822",
"0.5919345",
"0.5910716",
"0.58709204",
... | 0.0 | -1 |
Instantiates a new cld sap km parm. | public CldSapKMParm() {
msgType = -1;
// module = -1;
createType = -1;
receiveObject = -1;
messageId = -1;
title = "";
createuserid = -1;
createuser = "";
usermobile = "";
createtime = "";
hyperlink = "";
apptype = -1;
poptype = -1;
imageurl = "";
roadname = "";
downloadTime = 0;
status = 0;
poiMsg = new SharePoiParm();
routeMsg = new ShareRouteParm();
operateMsg = new ShareOperateParm();
aKeyCallMsg = new ShareAKeyCallParm();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WMS100MapRequest() {\n\n }",
"PARAM createPARAM();",
"public CalccustoRequest()\r\n\t{\r\n\t}",
"@Import(ModelType.FEATURE_SELECTION)\n\tpublic static LinearDiscriminantAnalysis newInstance(Map<String, Object> params) {\n\t\tLinearDiscriminantAnalysis lda = new LinearDiscriminantAnalysis();\n\t\t\n... | [
"0.54263926",
"0.53821784",
"0.5338776",
"0.5293497",
"0.5262698",
"0.52244455",
"0.5218199",
"0.5192488",
"0.5167542",
"0.51604635",
"0.51604635",
"0.51604635",
"0.5158803",
"0.5156761",
"0.51154435",
"0.51073617",
"0.50730515",
"0.5052599",
"0.5041989",
"0.5038017",
"0.5036... | 0.6592983 | 0 |
Gets the msg type. | public int getMsgType() {
return msgType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MessageType getType() {\n return msgType;\n }",
"public int getMsgType() {\n return msgType_;\n }",
"public int getMsgType() {\n return msgType_;\n }",
"public com.eze.ezecli.ApiInput.MessageType getMsgType() {\n return msgType_;\n }",
"public com.eze.ezecli.ApiInput.Mess... | [
"0.8426375",
"0.8410364",
"0.83955216",
"0.8220426",
"0.82041925",
"0.80310416",
"0.8020925",
"0.80176973",
"0.8010631",
"0.8007511",
"0.79663044",
"0.79255474",
"0.79230636",
"0.7897048",
"0.78803086",
"0.7819287",
"0.7614024",
"0.7583458",
"0.75636995",
"0.75636995",
"0.751... | 0.8259857 | 3 |
Sets the msg type. | public void setMsgType(int msgType) {
this.msgType = msgType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMessageType(MessageType messageType) {\n this.messageType = messageType;\n }",
"public Builder setMsgType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n msgType_ = value;\n onChanged();\n return this;\n ... | [
"0.741189",
"0.7371438",
"0.73705",
"0.7345051",
"0.73353046",
"0.7292829",
"0.716886",
"0.671381",
"0.66623735",
"0.6613669",
"0.6577823",
"0.65585434",
"0.6527298",
"0.6524016",
"0.6518334",
"0.6508638",
"0.65077907",
"0.6504428",
"0.6503736",
"0.65021473",
"0.6479733",
"... | 0.81396294 | 0 |
Gets the poi msg. | public SharePoiParm getPoiMsg() {
return poiMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMsg();",
"public String getMsg() {\n return msg;\n }",
"public String getMsg() {\n return msg;\n }",
"public String getMsg(){\n return messageLabel.getText();\n }",
"public String getMsg() { return this.msg; }",
"@Override\n public String getMsg() {\n ... | [
"0.6822237",
"0.67029166",
"0.67029166",
"0.66753364",
"0.65415895",
"0.652103",
"0.65161914",
"0.6454395",
"0.64473504",
"0.63757616",
"0.6372452",
"0.6365158",
"0.6357834",
"0.63451385",
"0.6295074",
"0.6241867",
"0.6239443",
"0.62198323",
"0.6169272",
"0.61619675",
"0.6158... | 0.816679 | 0 |
Sets the poi msg. | public void setPoiMsg(SharePoiParm poiMsg) {
this.poiMsg = poiMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SharePoiParm getPoiMsg() {\n\t\treturn poiMsg;\n\t}",
"public void set(String msg) {\n \teingabeString = msg;\r\n JOptionPane.showMessageDialog(null, \"nashorn -> java: \" + msg);\r\n }",
"@Override\n public void setMsg(String msg) {\n this.... | [
"0.6797554",
"0.6665307",
"0.6561949",
"0.65506566",
"0.65097284",
"0.6509397",
"0.64407796",
"0.6432859",
"0.6419125",
"0.6121319",
"0.6092403",
"0.6062565",
"0.6058514",
"0.59967387",
"0.5836383",
"0.58079493",
"0.5795986",
"0.56847644",
"0.56354064",
"0.5574408",
"0.557440... | 0.734502 | 0 |
Gets the route msg. | public ShareRouteParm getRouteMsg() {
return routeMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMsg();",
"public String getMsg() {\n return msg;\n }",
"public String getMsg() {\n return msg;\n }",
"public java.lang.String getRoute () {\n\t\treturn route;\n\t}",
"java.lang.String getTheMessage();",
"public String getMsg() { return this.msg; }",
"@Override\n ... | [
"0.6955068",
"0.6635924",
"0.6635924",
"0.6604289",
"0.6534216",
"0.6520307",
"0.6476046",
"0.64501524",
"0.64151466",
"0.63842034",
"0.6372799",
"0.6300374",
"0.6282281",
"0.6274785",
"0.6233874",
"0.6233711",
"0.61853176",
"0.61749834",
"0.61605436",
"0.6145526",
"0.6136479... | 0.81054246 | 0 |
Sets the route msg. | public void setRouteMsg(ShareRouteParm routeMsg) {
this.routeMsg = routeMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setMsg(String msg) {\n this.msg = msg;\n }",
"public void setMsg(String msg) { this.msg = msg; }",
"public void setMsg(final String msg) {\r\n this.msg = msg;\r\n }",
"public void setMsg(String msg) {\n this.msg = msg;\n }",
"public void setMessage(M... | [
"0.69163316",
"0.6884211",
"0.68613696",
"0.66791105",
"0.6649195",
"0.6545555",
"0.6489627",
"0.64833015",
"0.64685214",
"0.6453528",
"0.6354959",
"0.6262128",
"0.6164828",
"0.6157048",
"0.607173",
"0.60480267",
"0.60118693",
"0.6008298",
"0.59974355",
"0.5996732",
"0.597643... | 0.7961766 | 0 |
Gets the creates the type. | public int getCreateType() {
return createType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType()... | [
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.626172",
"0.62617... | 0.7204694 | 0 |
Sets the creates the type. | public void setCreateType(int createType) {
this.createType = createType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(Type t) {\n type = t;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String ... | [
"0.71603644",
"0.7015736",
"0.6967536",
"0.6960321",
"0.6960321",
"0.6960321",
"0.69371897",
"0.693471",
"0.6922664",
"0.6870403",
"0.68498874",
"0.68491584",
"0.6836073",
"0.68054324",
"0.6798136",
"0.6763773",
"0.6763773",
"0.6763773",
"0.6761526",
"0.6755772",
"0.67430097"... | 0.6395466 | 98 |
Gets the receive object. | public int getReceiveObject() {
return receiveObject;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Receiver getReceiver() {\n return receiver;\n }",
"private Object receive() {\n Object o = null;\n try {\n System.out.println(\"03. -- About to receive an object...\");\n o = is.readObject();\n System.out.println(\"04. <- Object received...\");\n ... | [
"0.7349182",
"0.72541976",
"0.7145671",
"0.7062394",
"0.66452307",
"0.66019857",
"0.65773875",
"0.65746814",
"0.6562094",
"0.65289164",
"0.6450418",
"0.644473",
"0.63776356",
"0.63379604",
"0.6336727",
"0.6303661",
"0.6297165",
"0.6275273",
"0.6247571",
"0.6244086",
"0.622270... | 0.8282776 | 0 |
Sets the receive object. | public void setReceiveObject(int receiveObject) {
this.receiveObject = receiveObject;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getReceiveObject() {\n\t\treturn receiveObject;\n\t}",
"public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }",
"public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}",
"void setReceiveSocket(LcapSocket socket) {\n rcvSocket = socket;\n ... | [
"0.66527516",
"0.64497185",
"0.6382359",
"0.61750185",
"0.6174585",
"0.616546",
"0.6154616",
"0.6043934",
"0.6023222",
"0.60091335",
"0.5966533",
"0.59596556",
"0.59087515",
"0.58885336",
"0.5848404",
"0.58376074",
"0.5812785",
"0.5803362",
"0.5706692",
"0.5699536",
"0.569204... | 0.7732521 | 0 |
Gets the message id. | public long getMessageId() {
return messageId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMessageId() {\n Field field = obtainField(FieldName.MESSAGE_ID);\n if (field == null)\n return null;\n\n return field.getBody();\n }",
"java.lang.String getMessageId();",
"public String getMessageId() {\n\n // Get the message ID\n return this.me... | [
"0.8582078",
"0.8390527",
"0.8386103",
"0.8271254",
"0.8251955",
"0.8249039",
"0.8210845",
"0.81895196",
"0.8183423",
"0.8183423",
"0.8159889",
"0.81311375",
"0.81142724",
"0.8112615",
"0.80978274",
"0.80889124",
"0.80826235",
"0.80666876",
"0.80419195",
"0.8034457",
"0.80215... | 0.8145138 | 11 |
Sets the message id. | public void setMessageId(long messageId) {
this.messageId = messageId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setMessageID(long messageID);",
"public Builder setMessageID(long value) {\n bitField0_ |= 0x00000800;\n messageID_ = value;\n onChanged();\n return this;\n }",
"public Builder setMsgid(int value) {\n bitField0_ |= 0x00000100;\n msgid_ = value;\n onCha... | [
"0.79498",
"0.7713454",
"0.7592117",
"0.7240151",
"0.71021456",
"0.708914",
"0.708914",
"0.7048486",
"0.7025299",
"0.6995899",
"0.695643",
"0.68441385",
"0.6831001",
"0.68060464",
"0.6799184",
"0.6758164",
"0.67505306",
"0.66954845",
"0.6687847",
"0.66490084",
"0.66326517",
... | 0.63875777 | 63 |
Gets the operate msg. | public ShareOperateParm getOperateMsg() {
return operateMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMsg();",
"public java.lang.String getMSG() {\n return MSG;\n }",
"@Override\n public String getMsg() {\n return this.msg;\n }",
"public String getMsg() {\n return msg;\n }",
"public String getMsg() {\n return msg;\n }",
"Payload getMsg();",
... | [
"0.7144784",
"0.6846708",
"0.66864514",
"0.66770285",
"0.66770285",
"0.6566333",
"0.65636694",
"0.6561028",
"0.6480861",
"0.64760995",
"0.6429827",
"0.6399607",
"0.6296478",
"0.6258353",
"0.6199417",
"0.6172698",
"0.61682606",
"0.61466086",
"0.6142724",
"0.61172265",
"0.61076... | 0.83861876 | 0 |
Sets the operate msg. | public void setOperateMsg(ShareOperateParm operateMsg) {
this.operateMsg = operateMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShareOperateParm getOperateMsg() {\n\t\treturn operateMsg;\n\t}",
"public void setMsg(String msg) { this.msg = msg; }",
"@Override\n public void setMsg(String msg) {\n this.msg = msg;\n }",
"public void setMSG(java.lang.String MSG) {\n this.MSG = MSG;\n }",
"public void setMsg... | [
"0.6801842",
"0.6741001",
"0.65933174",
"0.6542384",
"0.65227985",
"0.6481143",
"0.6476378",
"0.6380804",
"0.6222073",
"0.62057066",
"0.59999096",
"0.59944874",
"0.59645945",
"0.5960067",
"0.5934563",
"0.5839977",
"0.582783",
"0.58080524",
"0.5785004",
"0.5768653",
"0.5720024... | 0.76216763 | 0 |
Gets the a key call msg. | public ShareAKeyCallParm getaKeyCallMsg() {
return aKeyCallMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public final String getMsg(final String key) {\n try {\n return messages.getString(key);\n } catch (Exception e) {\n return \"[\" + key + \"]\";\n }\n }",
"private static String getMessage(String key)\n {\n return mh.getMessage(key);\n }",
"public static String get... | [
"0.71718436",
"0.7167448",
"0.692198",
"0.6822246",
"0.6822246",
"0.6746073",
"0.67376393",
"0.67225134",
"0.6651403",
"0.6631539",
"0.6570801",
"0.64352775",
"0.6312714",
"0.61869985",
"0.6167892",
"0.61237335",
"0.6113554",
"0.6099988",
"0.6097469",
"0.60958594",
"0.6054662... | 0.7976775 | 0 |
Sets the a key call msg. | public void setaKeyCallMsg(ShareAKeyCallParm aKeyCallMsg) {
this.aKeyCallMsg = aKeyCallMsg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setKey(MessageKey key) {\n\tthis.key = key;\n }",
"@Override\n\tpublic void setMessageKey(String key) {\n\t\tsuper.setMessageKey(key);\n\t}",
"public ShareAKeyCallParm getaKeyCallMsg() {\n\t\treturn aKeyCallMsg;\n\t}",
"public Message(String key) {\n this.key = key;\n }",
"public v... | [
"0.7079652",
"0.7024844",
"0.65583354",
"0.6344792",
"0.63078046",
"0.6077084",
"0.6053283",
"0.602945",
"0.6014266",
"0.60105765",
"0.5982713",
"0.5943177",
"0.5938777",
"0.58964056",
"0.5888626",
"0.5845046",
"0.5842316",
"0.58201957",
"0.5814234",
"0.58116865",
"0.57826954... | 0.77887046 | 0 |
Gets the download time. | public long getDownloadTime() {
return downloadTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDownloadPtime();",
"long getRetrievedTime();",
"public int getTimesDownloaded() {\n return localTimesDownloaded;\n }",
"private long getLastCacheUpdateTimeMillis() {\n return this.fileManager.getFromPreferences(this.context, SETTINGS_KEY);\n }",
"public double getU... | [
"0.82735085",
"0.72179705",
"0.71877533",
"0.68390334",
"0.67558616",
"0.6707153",
"0.6602",
"0.6602",
"0.6602",
"0.6602",
"0.6602",
"0.6602",
"0.65943646",
"0.65943646",
"0.65751785",
"0.65365326",
"0.6530433",
"0.6530433",
"0.6530433",
"0.65099925",
"0.6495891",
"0.646926... | 0.8637025 | 0 |
Sets the download time. | public void setDownloadTime(long downloadTime) {
this.downloadTime = downloadTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDownloadPtime(int ptime);",
"public long getDownloadTime() {\n\t\treturn downloadTime;\n\t}",
"private void setLastCacheUpdateTimeMillis() {\n long currentMillis = System.currentTimeMillis();\n this.fileManager.writeToPreferences(this.context, SETTINGS_KEY, currentMillis);\n }",... | [
"0.79557997",
"0.7003921",
"0.6543749",
"0.6535449",
"0.63277435",
"0.6305543",
"0.6272495",
"0.6158492",
"0.6158492",
"0.61458534",
"0.613078",
"0.6122053",
"0.6119474",
"0.6114879",
"0.61122984",
"0.61122984",
"0.610066",
"0.6097591",
"0.6049282",
"0.6028986",
"0.5984953",
... | 0.7528686 | 1 |
Instantiates a new share poi parm. | public SharePoiParm() {
name = "";
poi = "";
target = -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPoiMsg(SharePoiParm poiMsg) {\n\t\tthis.poiMsg = poiMsg;\n\t}",
"public ShareAKeyCallParm() {\n\t\t\tthis.action = \"\";\n\t\t\tthis.startPoint = new AKeyCallPoint();\n\t\t\tthis.endPoint = new AKeyCallPoint();\n\t\t\tthis.routePoint = new AKeyCallPoint();\n\t\t\tthis.avoidPoint = new AKeyCallPoin... | [
"0.58856195",
"0.5502445",
"0.5428149",
"0.5428149",
"0.5428149",
"0.54106563",
"0.5353079",
"0.52697873",
"0.5216976",
"0.5195019",
"0.5191795",
"0.51543766",
"0.5132732",
"0.5039334",
"0.49827933",
"0.49768555",
"0.49719653",
"0.49361086",
"0.4919243",
"0.49123597",
"0.4883... | 0.7407547 | 0 |
Instantiates a new share route parm. | public ShareRouteParm() {
name = "";
start = "";
end = "";
routePoint = "";
avoidPoint = "";
conditionCode = -1;
aviodCondition = -1;
forbidCondition = -1;
target = -1;
mapVer = "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShareAKeyCallParm() {\n\t\t\tthis.action = \"\";\n\t\t\tthis.startPoint = new AKeyCallPoint();\n\t\t\tthis.endPoint = new AKeyCallPoint();\n\t\t\tthis.routePoint = new AKeyCallPoint();\n\t\t\tthis.avoidPoint = new AKeyCallPoint();\n\t\t\tthis.navigationMode = \"\";\n\t\t\tthis.proxy_Id = \"\";\n\t\t}",
"p... | [
"0.6053804",
"0.5671711",
"0.5475798",
"0.53824514",
"0.53779393",
"0.53539586",
"0.53427964",
"0.53318405",
"0.5305014",
"0.52617323",
"0.5258702",
"0.5204483",
"0.5112761",
"0.5056977",
"0.50439715",
"0.50439715",
"0.50439715",
"0.5020963",
"0.48829737",
"0.48712355",
"0.48... | 0.7225529 | 0 |
Gets the route point. | public String getRoutePoint() {
return routePoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AKeyCallPoint getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}",
"public final AbstractWaypoint getWaypoint() {\n return this.waypointProperty().getValue();\n }",
"public google.maps.fleetengine.v1.TripWaypoint getCurrentRouteSegmentEndPoint() {\n if (currentRouteSegmentEndPointBuilder_... | [
"0.7769318",
"0.6903595",
"0.6751986",
"0.6735697",
"0.6627159",
"0.65135115",
"0.64999354",
"0.63929045",
"0.63664806",
"0.6362263",
"0.6350807",
"0.63500994",
"0.63356256",
"0.63335705",
"0.6330612",
"0.63233817",
"0.6299029",
"0.6282767",
"0.627841",
"0.625701",
"0.6250821... | 0.82643497 | 0 |
Sets the route point. | public void setRoutePoint(String routePoint) {
this.routePoint = routePoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}",
"void setRoute(Shape route);",
"public void setPoint(double point){\r\n this.point = point;\r\n }",
"public void setRoute(Route route) {\n this.route = route;\n }",
"public void setRobotL... | [
"0.76540697",
"0.708872",
"0.66177475",
"0.66116536",
"0.6602648",
"0.6592902",
"0.6473949",
"0.6466303",
"0.6396738",
"0.63942736",
"0.63914484",
"0.6328811",
"0.62964994",
"0.6282699",
"0.62761974",
"0.6238647",
"0.6219548",
"0.6199962",
"0.61919886",
"0.6164464",
"0.615754... | 0.77261925 | 0 |
Gets the avoid point. | public String getAvoidPoint() {
return avoidPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AKeyCallPoint getAvoidPoint() {\n\t\t\treturn avoidPoint;\n\t\t}",
"public void setAvoidPoint(String avoidPoint) {\n\t\t\tthis.avoidPoint = avoidPoint;\n\t\t}",
"public Money getUsePoint() {\n\t\treturn usePoint;\n\t}",
"public Coordinates closestPoint() {\n return closestPoint;\n }"... | [
"0.77598536",
"0.64068717",
"0.5920795",
"0.57738817",
"0.5752297",
"0.5752297",
"0.5732969",
"0.57044077",
"0.5678887",
"0.56121135",
"0.55903155",
"0.55814266",
"0.55437225",
"0.5534727",
"0.5468758",
"0.54674894",
"0.5464566",
"0.5374863",
"0.53611374",
"0.53536564",
"0.53... | 0.84653425 | 0 |
Sets the avoid point. | public void setAvoidPoint(String avoidPoint) {
this.avoidPoint = avoidPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAvoidPoint(AKeyCallPoint avoidPoint) {\n\t\t\tthis.avoidPoint = avoidPoint;\n\t\t}",
"public String getAvoidPoint() {\n\t\t\treturn avoidPoint;\n\t\t}",
"public void setUsePoint(Money usePoint) {\n\t\tif (usePoint == null) {\n\t\t\tthis.usePoint = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.usePo... | [
"0.7814577",
"0.6877034",
"0.6097639",
"0.60958636",
"0.602761",
"0.6010602",
"0.58388925",
"0.58321804",
"0.57070273",
"0.56253487",
"0.5521042",
"0.53538483",
"0.5320314",
"0.531532",
"0.5302438",
"0.5284528",
"0.5274256",
"0.52470744",
"0.52252567",
"0.52103204",
"0.520311... | 0.8072331 | 0 |
Gets the condition code. | public int getConditionCode() {
return conditionCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCondition() {\r\n\t\tif(this.condition == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.condition.ordinal();\r\n\t}",
"com.google.container.v1.StatusCondition.Code getCode();",
"public Condition getCondition(){\n\t\treturn this.cond;\n\t}",
"public String getCondition() {\n\t\treturn c... | [
"0.7543732",
"0.7525719",
"0.66884035",
"0.6686239",
"0.6680047",
"0.66644007",
"0.6646418",
"0.6646326",
"0.65177697",
"0.6408627",
"0.64046425",
"0.63153356",
"0.61973125",
"0.6157418",
"0.6050744",
"0.6035025",
"0.60250986",
"0.60249996",
"0.60232884",
"0.5941507",
"0.5908... | 0.8228947 | 0 |
Sets the condition code. | public void setConditionCode(int conditionCode) {
this.conditionCode = conditionCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setcond(String cond) {\n\t\n\t}",
"public int getConditionCode() {\n\t\t\treturn conditionCode;\n\t\t}",
"public static void setCondition (String condition) {\n BValue cond = getCond (condition);\n synchronized (cond) {\n if (cond.v) {\n return;\... | [
"0.6770428",
"0.6582204",
"0.6483132",
"0.64128727",
"0.6367354",
"0.63590145",
"0.63028663",
"0.62396914",
"0.61458844",
"0.61341065",
"0.60623354",
"0.60623354",
"0.59972537",
"0.598531",
"0.5931145",
"0.59241885",
"0.590174",
"0.58723134",
"0.58707327",
"0.58640945",
"0.58... | 0.74752706 | 0 |
Gets the aviod condition. | public int getAviodCondition() {
return aviodCondition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getCondition();",
"public OverallCondition getCondition() {\n return condition;\n }",
"public Condition getCondition(){\n\t\treturn this.cond;\n\t}",
"String getCondition();",
"int getConditionValue();",
"public Condition getCondition() {\n return condition;\n }",
"public vo... | [
"0.6491603",
"0.6478711",
"0.6403856",
"0.6357883",
"0.6340376",
"0.6330926",
"0.6325626",
"0.6288373",
"0.6197224",
"0.61536247",
"0.61267656",
"0.61199844",
"0.6095649",
"0.6078465",
"0.6025436",
"0.60212976",
"0.59869915",
"0.58623284",
"0.5846249",
"0.5839997",
"0.5744241... | 0.85322875 | 0 |
Sets the aviod condition. | public void setAviodCondition(int aviodCondition) {
this.aviodCondition = aviodCondition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getAviodCondition() {\n\t\t\treturn aviodCondition;\n\t\t}",
"@Override\n\tpublic void setCondition(VehicleCondition condition) {\n\t\tthis.condition = condition;\n\t}",
"public static void setCondition (String condition) {\n BValue cond = getCond (condition);\n synchronized (cond) {\n... | [
"0.69793475",
"0.572882",
"0.56539",
"0.5643409",
"0.5552797",
"0.5465225",
"0.540669",
"0.53693116",
"0.535149",
"0.5350173",
"0.5292534",
"0.51529735",
"0.51506054",
"0.5150057",
"0.5010642",
"0.4950816",
"0.49411228",
"0.49362302",
"0.49339187",
"0.49123627",
"0.48995963",... | 0.7575598 | 0 |
Gets the forbid condition. | public int getForbidCondition() {
return forbidCondition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setForbidCondition(int forbidCondition) {\n\t\t\tthis.forbidCondition = forbidCondition;\n\t\t}",
"@Override\n public Response throttlingDenyPolicyConditionIdGet(String conditionId, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedIn... | [
"0.7413115",
"0.6248472",
"0.5892486",
"0.58302355",
"0.5766846",
"0.5760735",
"0.5756571",
"0.57038337",
"0.5698592",
"0.56550115",
"0.5642739",
"0.5630125",
"0.5626559",
"0.5609455",
"0.55650866",
"0.55556047",
"0.5542211",
"0.55362386",
"0.5502446",
"0.54800785",
"0.544640... | 0.8736337 | 0 |
Sets the forbid condition. | public void setForbidCondition(int forbidCondition) {
this.forbidCondition = forbidCondition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getForbidCondition() {\n\t\t\treturn forbidCondition;\n\t\t}",
"void setDefeatCondition(String conditionIdentifier);",
"private void setBlocked(boolean value) {\n\n blocked_ = value;\n }",
"public void setUnblockable(boolean blockable);",
"protected void markAsInappropriate(Post p, Boo... | [
"0.7218228",
"0.6580319",
"0.61527246",
"0.58762085",
"0.5741155",
"0.5696559",
"0.5692123",
"0.562753",
"0.55710196",
"0.55458254",
"0.5514572",
"0.5488336",
"0.54550177",
"0.54324937",
"0.5420306",
"0.5405112",
"0.5394464",
"0.5352335",
"0.5350948",
"0.5349833",
"0.52926993... | 0.81613284 | 0 |
Gets the map ver. | public String getMapVer() {
return mapVer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMapVer(String mapVer) {\n\t\t\tthis.mapVer = mapVer;\n\t\t}",
"public Integer getVer() {\n return ver;\n }",
"public Integer getVer() {\n\t\treturn ver;\n\t}",
"public String getVersion()\n {\n return ver;\n }",
"public String getVer() {\r\n return this.ver;\r\n... | [
"0.7097306",
"0.69168776",
"0.69017005",
"0.6862546",
"0.6779895",
"0.6517615",
"0.6421374",
"0.64137244",
"0.64073944",
"0.6391052",
"0.63846105",
"0.6314359",
"0.6313845",
"0.62993544",
"0.62992966",
"0.62992406",
"0.6235953",
"0.6235953",
"0.6235953",
"0.6235953",
"0.62116... | 0.88249046 | 0 |
Sets the map ver. | public void setMapVer(String mapVer) {
this.mapVer = mapVer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setVer(Integer ver) {\n this.ver = ver;\n }",
"public void setVer(Integer ver) {\n\t\tthis.ver = ver;\n\t}",
"public String getMapVer() {\n\t\t\treturn mapVer;\n\t\t}",
"void setVersion(long version);",
"public void setVerCode(Integer verCode) {\n this.verCode = verCode;\n }... | [
"0.7177397",
"0.70981354",
"0.706329",
"0.63467085",
"0.6265339",
"0.625249",
"0.625249",
"0.62322265",
"0.6030313",
"0.60142624",
"0.5980745",
"0.59758675",
"0.5965731",
"0.5839177",
"0.5824877",
"0.58200276",
"0.5790135",
"0.5782756",
"0.57527274",
"0.5750243",
"0.57240903"... | 0.82862973 | 0 |
Instantiates a new share operate parm. | public ShareOperateParm() {
content = "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShareOperateParm(String content) {\n\t\t\tthis.content = content;\n\t\t}",
"public ShareAKeyCallParm() {\n\t\t\tthis.action = \"\";\n\t\t\tthis.startPoint = new AKeyCallPoint();\n\t\t\tthis.endPoint = new AKeyCallPoint();\n\t\t\tthis.routePoint = new AKeyCallPoint();\n\t\t\tthis.avoidPoint = new AKeyCallP... | [
"0.5886819",
"0.5794708",
"0.5752955",
"0.5580792",
"0.53318655",
"0.5253713",
"0.51893663",
"0.51825076",
"0.51825076",
"0.51677567",
"0.51677567",
"0.51677567",
"0.5096996",
"0.5069753",
"0.50342876",
"0.5032529",
"0.5003302",
"0.49932954",
"0.49909654",
"0.49590442",
"0.49... | 0.6442195 | 0 |
Instantiates a new share operate parm. | public ShareOperateParm(String content) {
this.content = content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShareOperateParm() {\n\t\t\tcontent = \"\";\n\t\t}",
"public ShareAKeyCallParm() {\n\t\t\tthis.action = \"\";\n\t\t\tthis.startPoint = new AKeyCallPoint();\n\t\t\tthis.endPoint = new AKeyCallPoint();\n\t\t\tthis.routePoint = new AKeyCallPoint();\n\t\t\tthis.avoidPoint = new AKeyCallPoint();\n\t\t\tthis.na... | [
"0.64435995",
"0.5796701",
"0.5753791",
"0.5581546",
"0.53340983",
"0.5252776",
"0.51901764",
"0.5179741",
"0.5179741",
"0.5166173",
"0.5166173",
"0.5166173",
"0.50961256",
"0.50708055",
"0.50326383",
"0.50294447",
"0.5001745",
"0.49949822",
"0.49901733",
"0.49579427",
"0.491... | 0.58882445 | 1 |
Instantiates a new share a key call parm. | public ShareAKeyCallParm() {
this.action = "";
this.startPoint = new AKeyCallPoint();
this.endPoint = new AKeyCallPoint();
this.routePoint = new AKeyCallPoint();
this.avoidPoint = new AKeyCallPoint();
this.navigationMode = "";
this.proxy_Id = "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShareAKeyCallParm(String action, AKeyCallPoint startPoint,\n\t\t\t\tAKeyCallPoint endPoint, AKeyCallPoint routePoint,\n\t\t\t\tAKeyCallPoint avoidPoint, String navigationMode, String proxy_Id) {\n\t\t\tthis.action = action;\n\t\t\tthis.startPoint = startPoint;\n\t\t\tthis.endPoint = endPoint;\n\t\t\tthis.ro... | [
"0.54807824",
"0.54691726",
"0.543312",
"0.53346837",
"0.52919745",
"0.52896196",
"0.526596",
"0.5221454",
"0.5216707",
"0.5202176",
"0.5193709",
"0.5184148",
"0.5173012",
"0.51496565",
"0.5132693",
"0.51072556",
"0.5062302",
"0.5053582",
"0.50294447",
"0.501476",
"0.50047415... | 0.7031842 | 0 |
Instantiates a new share a key call parm. | public ShareAKeyCallParm(String action, AKeyCallPoint startPoint,
AKeyCallPoint endPoint, AKeyCallPoint routePoint,
AKeyCallPoint avoidPoint, String navigationMode, String proxy_Id) {
this.action = action;
this.startPoint = startPoint;
this.endPoint = endPoint;
this.routePoint = routePoint;
this.avoidPoint = avoidPoint;
this.navigationMode = navigationMode;
this.proxy_Id = proxy_Id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShareAKeyCallParm() {\n\t\t\tthis.action = \"\";\n\t\t\tthis.startPoint = new AKeyCallPoint();\n\t\t\tthis.endPoint = new AKeyCallPoint();\n\t\t\tthis.routePoint = new AKeyCallPoint();\n\t\t\tthis.avoidPoint = new AKeyCallPoint();\n\t\t\tthis.navigationMode = \"\";\n\t\t\tthis.proxy_Id = \"\";\n\t\t}",
"p... | [
"0.70321226",
"0.5470689",
"0.5429891",
"0.5333766",
"0.5290067",
"0.5288088",
"0.5269299",
"0.5218315",
"0.52180374",
"0.5199545",
"0.5190884",
"0.5183362",
"0.51693416",
"0.5146142",
"0.5129398",
"0.5103257",
"0.5058282",
"0.50543344",
"0.5028979",
"0.501442",
"0.50017166",... | 0.5481376 | 1 |
Gets the start point. | public AKeyCallPoint getStartPoint() {
return startPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point getStartPoint() {\n\t\treturn startPoint;\n\t}",
"public Point getStart() {\n\t\treturn _start;\n\t}",
"public Point start() {\r\n return this.start;\r\n }",
"public Point getStart() {\n return mStart;\n }",
"public PixelPoint getStartPoint ()\r\n {\r\n Point star... | [
"0.86977637",
"0.85821897",
"0.84883326",
"0.8420773",
"0.8360304",
"0.81178904",
"0.80663157",
"0.78900737",
"0.7868198",
"0.7863569",
"0.7851182",
"0.784888",
"0.77323437",
"0.77092266",
"0.7684213",
"0.7670684",
"0.7613749",
"0.75719976",
"0.7542682",
"0.7541324",
"0.75356... | 0.75995654 | 17 |
Sets the start point. | public void setStartPoint(AKeyCallPoint startPoint) {
this.startPoint = startPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStart(Point point) {\n mStart = point;\n }",
"@Override\n\tpublic void setStartPoint(Point startPoint) {\n\t\tthis.startPoint=startPoint;\n\t}",
"public void setStartPoint(CartesianCoordinate startPoint) {\r\n\t\tthis.startPoint = startPoint;\r\n\t}",
"public void setStart( GeoPoint ... | [
"0.8621203",
"0.83114934",
"0.8022986",
"0.7909996",
"0.79045665",
"0.764421",
"0.7552712",
"0.75179887",
"0.74874926",
"0.7356818",
"0.73199236",
"0.7299905",
"0.7298023",
"0.7255647",
"0.7209428",
"0.7148663",
"0.7105168",
"0.7046453",
"0.6958252",
"0.6933583",
"0.69072515"... | 0.73031294 | 11 |
Gets the end point. | public AKeyCallPoint getEndPoint() {
return endPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point end() {\r\n return this.end;\r\n }",
"public String getEndPoint()\n\t{\n\t\tString getEnd;\n\t\tgetEnd = (this.endPoint.xPosition + \",\" + this.endPoint.yPosition);\n\t\treturn getEnd;\n\t}",
"public Point getEndPosition()\r\n\t{\r\n\t\treturn endPosition;\r\n\t}",
"public Coordinate ... | [
"0.8031001",
"0.787949",
"0.77105016",
"0.76214087",
"0.7601773",
"0.7418286",
"0.74090016",
"0.7373982",
"0.73285973",
"0.73129386",
"0.73033184",
"0.7263552",
"0.7243649",
"0.72190905",
"0.71957326",
"0.71845114",
"0.71384937",
"0.71135825",
"0.71098346",
"0.7103669",
"0.70... | 0.6803095 | 39 |
Sets the end point. | public void setEndPoint(AKeyCallPoint endPoint) {
this.endPoint = endPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setEndPoint(Point endPoint) {\n\t\tthis.endPoint=endPoint;\n\t}",
"public void setEnd( GeoPoint end ){\n this.end = end;\n\n }",
"public void setEndPoint(String _endPoint) {\n this._endPoint = _endPoint;\n }",
"public void setEndPoint(EndPoint endPoint) {\r\n\t\tt... | [
"0.7973282",
"0.79034424",
"0.76263916",
"0.74807763",
"0.7428345",
"0.7425638",
"0.7289904",
"0.72365254",
"0.7188313",
"0.70566237",
"0.699828",
"0.6940269",
"0.68947536",
"0.68538624",
"0.67641354",
"0.67566293",
"0.6714996",
"0.6685145",
"0.6665168",
"0.66140604",
"0.6591... | 0.67995745 | 14 |
Gets the route point. | public AKeyCallPoint getRoutePoint() {
return routePoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}",
"public final AbstractWaypoint getWaypoint() {\n return this.waypointProperty().getValue();\n }",
"public google.maps.fleetengine.v1.TripWaypoint getCurrentRouteSegmentEndPoint() {\n if (currentRouteSegmentEndPointBuilder_ == nul... | [
"0.82643497",
"0.6903595",
"0.6751986",
"0.6735697",
"0.6627159",
"0.65135115",
"0.64999354",
"0.63929045",
"0.63664806",
"0.6362263",
"0.6350807",
"0.63500994",
"0.63356256",
"0.63335705",
"0.6330612",
"0.63233817",
"0.6299029",
"0.6282767",
"0.627841",
"0.625701",
"0.625082... | 0.7769318 | 1 |
Sets the route point. | public void setRoutePoint(AKeyCallPoint routePoint) {
this.routePoint = routePoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoutePoint(String routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}",
"void setRoute(Shape route);",
"public void setPoint(double point){\r\n this.point = point;\r\n }",
"public void setRoute(Route route) {\n this.route = route;\n }",
"public void setRobotLocation... | [
"0.77261925",
"0.708872",
"0.66177475",
"0.66116536",
"0.6602648",
"0.6592902",
"0.6473949",
"0.6466303",
"0.6396738",
"0.63942736",
"0.63914484",
"0.6328811",
"0.62964994",
"0.6282699",
"0.62761974",
"0.6238647",
"0.6219548",
"0.6199962",
"0.61919886",
"0.6164464",
"0.615754... | 0.76540697 | 1 |
Gets the avoid point. | public AKeyCallPoint getAvoidPoint() {
return avoidPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAvoidPoint() {\n\t\t\treturn avoidPoint;\n\t\t}",
"public void setAvoidPoint(String avoidPoint) {\n\t\t\tthis.avoidPoint = avoidPoint;\n\t\t}",
"public Money getUsePoint() {\n\t\treturn usePoint;\n\t}",
"public Coordinates closestPoint() {\n return closestPoint;\n }",
"pu... | [
"0.84653425",
"0.64068717",
"0.5920795",
"0.57738817",
"0.5752297",
"0.5752297",
"0.5732969",
"0.57044077",
"0.5678887",
"0.56121135",
"0.55903155",
"0.55814266",
"0.55437225",
"0.5534727",
"0.5468758",
"0.54674894",
"0.5464566",
"0.5374863",
"0.53611374",
"0.53536564",
"0.53... | 0.77598536 | 1 |
Sets the avoid point. | public void setAvoidPoint(AKeyCallPoint avoidPoint) {
this.avoidPoint = avoidPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAvoidPoint(String avoidPoint) {\n\t\t\tthis.avoidPoint = avoidPoint;\n\t\t}",
"public String getAvoidPoint() {\n\t\t\treturn avoidPoint;\n\t\t}",
"public void setUsePoint(Money usePoint) {\n\t\tif (usePoint == null) {\n\t\t\tthis.usePoint = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.usePoint = u... | [
"0.8072331",
"0.6877034",
"0.6097639",
"0.60958636",
"0.602761",
"0.6010602",
"0.58388925",
"0.58321804",
"0.57070273",
"0.56253487",
"0.5521042",
"0.53538483",
"0.5320314",
"0.531532",
"0.5302438",
"0.5284528",
"0.5274256",
"0.52470744",
"0.52252567",
"0.52103204",
"0.520311... | 0.7814577 | 1 |
Gets the navigation mode. | public String getNavigationMode() {
return navigationMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int getNavigationMode() {\n\t\treturn 0;\n\t}",
"Navigation getActiveNavigation();",
"public int getMode() {\n\t\treturn currentMode;\n\t}",
"java.lang.String getMode();",
"public Mode getMode();",
"public final EnumModesBase getMode() {\r\n\t\treturn this.mode;\r\n\t}",
"public Str... | [
"0.7490828",
"0.67952406",
"0.6573332",
"0.65243334",
"0.6519012",
"0.6518098",
"0.64845073",
"0.6456208",
"0.6420107",
"0.6416958",
"0.6416958",
"0.63943243",
"0.63851494",
"0.63701546",
"0.63508093",
"0.6339149",
"0.6321846",
"0.63177085",
"0.62986994",
"0.62679356",
"0.625... | 0.86002773 | 0 |
Sets the navigation mode. | public void setNavigationMode(String navigationMode) {
this.navigationMode = navigationMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setNavigationMode(int mode) {\n\t\t\n\t}",
"@Override\n\tpublic int getNavigationMode() {\n\t\treturn 0;\n\t}",
"public String getNavigationMode() {\n\t\t\treturn navigationMode;\n\t\t}",
"public void setPageNavigation(String navigate)\n {\n // ignore\n }",
"public fin... | [
"0.82957447",
"0.7263552",
"0.7065541",
"0.64717346",
"0.6466272",
"0.64424855",
"0.6237555",
"0.5996196",
"0.5950832",
"0.5948755",
"0.5850265",
"0.57965416",
"0.579382",
"0.5760155",
"0.57555115",
"0.5754411",
"0.57446045",
"0.5741428",
"0.5714143",
"0.57054764",
"0.5697887... | 0.7941624 | 1 |
Gets the proxy id. | public String getProxyId() {
return proxy_Id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized String getProxyID() {\n \n return this.id;\n }",
"public Long getProxyId() {\n return proxyId;\n }",
"private static synchronized long nextProxyId() {\n return _proxyId++;\n }",
"public static String getProxyID(EObject eObject) {\n\n\t\tif (eObject == null)\... | [
"0.8686927",
"0.82322735",
"0.7235591",
"0.68016994",
"0.6532793",
"0.6383885",
"0.6092628",
"0.6085256",
"0.6074706",
"0.6038238",
"0.6025454",
"0.6020119",
"0.5976342",
"0.5967755",
"0.59631157",
"0.5949171",
"0.5940241",
"0.5940241",
"0.5940241",
"0.5940241",
"0.5940241",
... | 0.8261937 | 1 |
Sets the proxy id. | public void setProxyId(String proxy_Id) {
this.proxy_Id = proxy_Id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProxyId(Long proxyId) {\n this.proxyId = proxyId;\n }",
"public String getProxyId() {\n\t\t\treturn proxy_Id;\n\t\t}",
"public Long getProxyId() {\n return proxyId;\n }",
"public synchronized String getProxyID() {\n \n return this.id;\n }",
"public void setProxy(Prox... | [
"0.7660669",
"0.6771278",
"0.6694044",
"0.66652155",
"0.6574011",
"0.62652224",
"0.61885095",
"0.61885095",
"0.6096063",
"0.6056278",
"0.6043947",
"0.60346085",
"0.60346085",
"0.60186166",
"0.60124195",
"0.59630907",
"0.59601974",
"0.59601974",
"0.5955978",
"0.5951753",
"0.58... | 0.7093845 | 1 |
Instantiates a new a key call point. | public AKeyCallPoint() {
this.name = "";
this.longitude = "0.0";
this.latitude = "0.0";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Key(int points) {\n this.image = ResourceLoader.getSprite(Sprite.KEY);\n this.points = points;\n this.isSolid = false;\n }",
"public FuncTestKey() {\n super();\n }",
"public KeypointNode()\r\n {\r\n keys = new LinkedList();\r\n }",
"public voi... | [
"0.64865094",
"0.5971826",
"0.59264815",
"0.5757215",
"0.5708493",
"0.563075",
"0.56182486",
"0.5547852",
"0.54768664",
"0.54290277",
"0.54115045",
"0.5388284",
"0.5378548",
"0.5371316",
"0.53679085",
"0.53525674",
"0.5345879",
"0.533767",
"0.524348",
"0.5208281",
"0.5208059"... | 0.690854 | 0 |
Instantiates a new a key call point. | public AKeyCallPoint(String name, String longitude, String latitude) {
this.name = name;
this.longitude = longitude;
this.latitude = latitude;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AKeyCallPoint() {\n\t\t\t\tthis.name = \"\";\n\t\t\t\tthis.longitude = \"0.0\";\n\t\t\t\tthis.latitude = \"0.0\";\n\t\t\t}",
"public Key(int points) {\n this.image = ResourceLoader.getSprite(Sprite.KEY);\n this.points = points;\n this.isSolid = false;\n }",
"public FuncTestKey() ... | [
"0.69101095",
"0.6484352",
"0.5970868",
"0.59248585",
"0.57582355",
"0.5629302",
"0.5617785",
"0.5544559",
"0.54756355",
"0.5425801",
"0.5410651",
"0.53872395",
"0.5375264",
"0.5369086",
"0.53668314",
"0.5349776",
"0.534314",
"0.53355354",
"0.5240876",
"0.5208128",
"0.5205576... | 0.5709558 | 5 |
Instantiates a new cld area egg. | public CldAreaEgg() {
areaid = 0;
type = 0;
starttime = 0;
endtime = 0;
regioncode = 0;
minx = 0;
miny = 0;
maxx = 0;
maxy = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }",
"AREA createAREA();",
"public abstract Area ne... | [
"0.61363506",
"0.59580517",
"0.58283246",
"0.5826416",
"0.58065563",
"0.5799478",
"0.56994593",
"0.5688922",
"0.5686316",
"0.5677336",
"0.5653547",
"0.5641047",
"0.5617537",
"0.5611873",
"0.5530809",
"0.55253446",
"0.5522086",
"0.55212355",
"0.55033106",
"0.54727304",
"0.5459... | 0.72993577 | 0 |
Test for Unauthorized Read | @Test(expected=UnauthorizedException.class)
public void testA()
{
System.out.println("Test A");
UUID aliceSecret = secretService.storeSecret("Alice", new Secret());
secretService.readSecret("Bob", aliceSecret);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isReadAccess();",
"@Test\n public void testAliceAccess() throws IOException {\n HttpResponse response = makeRequest(\"http://localhost:8080/api/alice\", \"alice\", \"alice\");\n assertAccessGranted(response, \"alice\");\n\n // alice can not access information about jdoe\n r... | [
"0.6639936",
"0.63891137",
"0.6287271",
"0.62551874",
"0.6211848",
"0.6158097",
"0.6112674",
"0.60630864",
"0.60555726",
"0.59517825",
"0.5920494",
"0.5914632",
"0.59120387",
"0.5909552",
"0.5903187",
"0.58391184",
"0.58323306",
"0.5807549",
"0.57837063",
"0.5775398",
"0.5765... | 0.54540807 | 58 |
Test for Authorized Read | @Test
public void testB(){
System.out.println("Test B");
UUID aliceSecret = secretService.storeSecret("Alice", new Secret());
secretService.shareSecret("Alice", aliceSecret, "Bob");
secretService.readSecret("Bob", aliceSecret);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isReadAccess();",
"@Test\n public void authorisedTest() {\n assertTrue(authResponse.isAuthorised());\n }",
"@Test\n public void testJdoeAccess() throws IOException {\n HttpResponse response = makeRequest(\"http://localhost:8080/api/jdoe\", \"jdoe\", \"jdoe\");\n assertAcce... | [
"0.69710803",
"0.6848053",
"0.66742474",
"0.6612162",
"0.6606144",
"0.655025",
"0.6526355",
"0.64263827",
"0.63581514",
"0.6328575",
"0.6254872",
"0.61920017",
"0.61365765",
"0.6130071",
"0.6117466",
"0.6110442",
"0.60738397",
"0.6073135",
"0.6066847",
"0.60588735",
"0.605312... | 0.0 | -1 |
Test for transitive share | @Test
public void testC(){
System.out.println("Test C");
UUID aliceSecret = secretService.storeSecret("Alice", new Secret());
secretService.shareSecret("Alice", aliceSecret, "Bob");
secretService.shareSecret("Bob", aliceSecret, "Carl");
secretService.readSecret("Carl", aliceSecret);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isTransitive();",
"boolean isShared();",
"public abstract boolean isShared();",
"public boolean canShare();",
"boolean hasSharedSet();",
"boolean hasSharedCriterion();",
"boolean hasCampaignSharedSet();",
"@Override\n\tpublic boolean isShareable() {\n\t\treturn false;\n\t}",
"@Override\n\tp... | [
"0.6662288",
"0.64289606",
"0.6407463",
"0.60223246",
"0.59148705",
"0.5871369",
"0.5712954",
"0.56970376",
"0.56970376",
"0.56309134",
"0.55543643",
"0.5476207",
"0.53711826",
"0.5360091",
"0.5350802",
"0.5337349",
"0.53367853",
"0.5332912",
"0.5287947",
"0.5287607",
"0.5285... | 0.0 | -1 |
Test for sharing unauthorized secret | @Test(expected=UnauthorizedException.class)
public void testD(){
System.out.println("Test D");
UUID aliceSecret = secretService.storeSecret("Alice", new Secret());
UUID carlSecret = secretService.storeSecret("Carl", new Secret());
secretService.shareSecret("Alice", aliceSecret, "Bob");
secretService.shareSecret("Bob", carlSecret, "Alice");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSecret() {\r\n \treturn false;\r\n }",
"boolean isSecretValid();",
"@Test(expected=UnauthorizedException.class)\n\tpublic void testH(){\n\t\tSystem.out.println(\"Test H\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tsecretService.shareSecret(\"Alice\... | [
"0.7185036",
"0.70740896",
"0.67851037",
"0.67708206",
"0.67401975",
"0.66054744",
"0.65489197",
"0.6492771",
"0.6490461",
"0.6438073",
"0.6254719",
"0.6249665",
"0.6242601",
"0.62084514",
"0.62053233",
"0.61155695",
"0.6098084",
"0.6074224",
"0.5960707",
"0.59550065",
"0.591... | 0.64854234 | 9 |
Test for unsharing transitive shared secret | @Test(expected=UnauthorizedException.class)
public void testE(){
System.out.println("Test E");
UUID aliceSecret = secretService.storeSecret("Alice", new Secret());
secretService.shareSecret("Alice", aliceSecret, "Bob");
secretService.shareSecret("Bob", aliceSecret, "Carl");
secretService.unshareSecret("Alice", aliceSecret, "Carl");
secretService.readSecret("Carl", aliceSecret);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean exclude(V1Secret secret);",
"public boolean isSecret() {\r\n \treturn false;\r\n }",
"@Test\n\tpublic void testG(){\n\t\tSystem.out.println(\"Test G\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tsecretService.shareSecret(\"Alice\", aliceSecret, \"Bob\");\n\t... | [
"0.62328607",
"0.6094704",
"0.5752479",
"0.5635022",
"0.5609828",
"0.54939336",
"0.54405844",
"0.5423116",
"0.54047966",
"0.53378904",
"0.53367406",
"0.53329176",
"0.5316902",
"0.5311256",
"0.53070086",
"0.5277087",
"0.5236782",
"0.5233104",
"0.52174324",
"0.5216616",
"0.5215... | 0.5072655 | 40 |
Test for multiple entry of a shared secret | @Test(expected=UnauthorizedException.class)
public void testF(){
System.out.println("Test F");
UUID aliceSecret = secretService.storeSecret("Alice", new Secret());
secretService.shareSecret("Alice", aliceSecret, "Bob");
secretService.shareSecret("Alice", aliceSecret, "Carl");
secretService.shareSecret("Carl", aliceSecret, "Bob");
secretService.unshareSecret("Alice", aliceSecret, "Bob");
secretService.readSecret("Bob", aliceSecret);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void setSecretsRequest_identicalSecrets() throws IOException {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n\n final Resource request = new ClassPathResource(\"test-requests/storeSecrets.xml\");\n final Resource expectedResponse = new ClassPathResource(\"test-re... | [
"0.62955403",
"0.5705909",
"0.56024873",
"0.5591394",
"0.55075073",
"0.5412171",
"0.5360055",
"0.53150827",
"0.5307659",
"0.52614665",
"0.5232227",
"0.5215799",
"0.51973724",
"0.5118513",
"0.51019204",
"0.50959986",
"0.5084768",
"0.5079316",
"0.5073881",
"0.50619525",
"0.5041... | 0.48465928 | 34 |
Test of unsharing an unowned secret | @Test
public void testG(){
System.out.println("Test G");
UUID aliceSecret = secretService.storeSecret("Alice", new Secret());
secretService.shareSecret("Alice", aliceSecret, "Bob");
secretService.shareSecret("Bob", aliceSecret, "Carl");
secretService.unshareSecret("Bob", aliceSecret, "Carl");
secretService.readSecret("Carl", aliceSecret);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean exclude(V1Secret secret);",
"public boolean isSecret() {\r\n \treturn false;\r\n }",
"public static boolean isUnchokable(PEPeer peer, boolean allow_snubbed) {\n return (peer.getPeerState() == PEPeer.TRANSFERING && !peer.isSeed() && !peer.isRelativeSeed() && peer.isInterested()\n ... | [
"0.6326213",
"0.60528225",
"0.59454745",
"0.5666238",
"0.5653897",
"0.559092",
"0.5585308",
"0.55569416",
"0.54663926",
"0.54468846",
"0.5442064",
"0.53968775",
"0.5387119",
"0.537781",
"0.5334478",
"0.5330392",
"0.5316555",
"0.5303584",
"0.52896243",
"0.52894086",
"0.5261892... | 0.55482155 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.