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
/ just to check if album has duplicate photo
public boolean hasPhoto(Photo obj) { int s = this.photo.size(); if(this.photo == null || s == 0) { return false; } for(int i=0;i<s;i++) { if(obj.compareTo(this.photo.get(i))==0) { return true; } }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPhotoPresent(Album album) throws Exception\n {\n return false;\n }", "public boolean addPhotoToAlbum(Photo p, String albumName) {\n boolean photoInAlbum = false;\n for (Photo a : this.photos) { // checking if the photo is inside the library\n if (a.equals(p)...
[ "0.6890831", "0.6700716", "0.65071255", "0.6306521", "0.6142319", "0.6106389", "0.6098224", "0.6076563", "0.60353094", "0.6029716", "0.59987944", "0.59517705", "0.5938936", "0.5936933", "0.5891889", "0.58775544", "0.58708453", "0.58696395", "0.58643544", "0.58433443", "0.5841...
0.6392757
3
/ / / / / / /
public void setColor(int color) { /* 77 */ this.color = color; /* 78 */ this.paint.setColor(this.color); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void b...
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.486...
0.0
-1
/ / / / /
public void onFftDataCapture(Visualizer visualizer, byte[] bytes, int samplingRate) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n ...
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421...
0.0
-1
default constructor. copies in data from "Sheet1.CSV" and creates a new game board with the data from the CSV file
public GameBoard() { int i = 0; board = new int[9][9]; String s = ReadCSV.readCSV(); //data in CSV file is turned into a string for(int r = 0; r < board.length; r++) { for(int c = 0; c < board.length; c++) { while((s.charAt(i) == ',') || (s.charAt(i) == '\n')) //passes over enters and commas ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillBoardFromCSV(String pathToCSV){\r\n \r\n BufferedReader br = null;\r\n String line = \" \";\r\n int index = 0;\r\n \r\n \r\n try{\r\n br = new BufferedReader(new FileReader(pathToCSV));\r\n while ((line = br.readLine()) != null)...
[ "0.69945085", "0.62786734", "0.6194942", "0.6136404", "0.60788226", "0.5970096", "0.59633875", "0.59582984", "0.5954873", "0.59474134", "0.5918647", "0.59114295", "0.5869092", "0.58659333", "0.58499855", "0.5827554", "0.5824464", "0.581994", "0.58093953", "0.58063465", "0.579...
0.7284753
0
copy constructor for game board
public GameBoard(GameBoard b) { board = new int[9][9]; for(int r = 0; r < board.length; r++) { for(int c = 0; c < board[0].length; c++) { board[r][c] = b.get(r,c); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public BoardFramework copyBoard() {\n List<List<GamePiece>> pieceCopies= new ArrayList<>();\n for(List<GamePiece> row: myGamePieces){\n List<GamePiece> rowOfPieceCopies = new ArrayList<>();\n for(GamePiece piece: row){\n rowOfPieceCopies.add(piece.c...
[ "0.80354553", "0.78066254", "0.7757245", "0.7729388", "0.75545096", "0.7489483", "0.74811417", "0.7423599", "0.7400249", "0.739713", "0.73876715", "0.7365216", "0.73641914", "0.73137397", "0.72822636", "0.7270907", "0.7235819", "0.7216068", "0.7197916", "0.7158273", "0.715111...
0.0
-1
places an inputted number at inputted spot in the game board
public void place(int r, int c, int n) { board[r][c] = n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void placePlayerPiece(PlayerMovesHandler player) {\n\t\t// char piece = player.getPiece();\n\t\tScanner in = new Scanner(System.in);\n\t\tboolean invalidInput = true;\n\n\t\twhile (invalidInput) {\n\t\t\tSystem.out.println(\"Enter row and column no. where you want to place your mark (Top left is [1,1...
[ "0.66794604", "0.6647853", "0.6480395", "0.6404588", "0.61034405", "0.61011094", "0.6051582", "0.6004871", "0.59850043", "0.5972783", "0.5943497", "0.5916236", "0.59158874", "0.59008604", "0.5878749", "0.5828106", "0.58272827", "0.57981014", "0.5795383", "0.5743497", "0.57081...
0.5532694
36
returns a value in the game board
public int get(int r, int c) { return board[r][c]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "String getBoard();", "public int getValue(final Player player) {\r\n\t\treturn board.getValue(player);\r\n\t}", "public int evalBoard(){\n if (wins('o')){\n return 3;\n }\n // Retur...
[ "0.71654284", "0.6904303", "0.6896246", "0.68284154", "0.68257296", "0.68257296", "0.68257296", "0.68257296", "0.68257296", "0.68108755", "0.6806554", "0.675419", "0.6713678", "0.6617507", "0.6617507", "0.65200555", "0.65141493", "0.6478927", "0.64758956", "0.6461752", "0.645...
0.62485963
37
removes a value in the board by setting it to 0
public void remove(int r, int c) { board[r][c] = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unAssign(){\n\t\tthis.value = 0;\n\t}", "@Override\n\tpublic int deleteBoard(int num) {\n\t\treturn 0;\n\t}", "public void removeFromCol(int value, int col){\n\tfor(int r = 0; r < 9; r++){\r\n\t if (board[r][col].remove(value) == true) {\r\n\t\tassign (board[r][col].getGuess(), r, col);\r\n\t ...
[ "0.7205171", "0.6998547", "0.6907909", "0.68170226", "0.6790941", "0.6766375", "0.67321783", "0.67125154", "0.6586206", "0.65406024", "0.6505951", "0.64514154", "0.6436022", "0.6436022", "0.64280176", "0.64174706", "0.64127004", "0.63773966", "0.63517797", "0.63135993", "0.63...
0.576019
67
checks whether an inputted number can be placed at an inputted spot on the board
public boolean canPlace(int r, int c, int n) { if(board[r][c] != 0) //don't want to replace a spot at the board that isn't 0 return false; for(int row = 0; row < board.length; row++) //checks rows { if(board[row][c] == n) return false; } for(int col = 0; col < board.length; col++) //checks colum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean onBoard(int x, int y){\n if((x<WIDTH&&y<HEIGHT)){\n if(0<=x&&0<=y){\n return true;\n }\n return false;\n }else{\n return false;\n }\n\t}", "private boolean isLegalPos(int row, i...
[ "0.69115126", "0.6908144", "0.6874274", "0.67969275", "0.67793775", "0.67021614", "0.66658276", "0.6663126", "0.6606727", "0.6590684", "0.65511495", "0.6538056", "0.65138924", "0.65081376", "0.6485447", "0.64790994", "0.6471205", "0.6453389", "0.6449971", "0.64419234", "0.641...
0.65693474
10
finds the most constrained spot on the board. returns the row and column of the most constrained spot
public int[] mostConstrained() { int lowest = 123456; //initialized with very high number int[] mostConstrained = new int[2]; for(int r = 0; r < board.length; r++) { for(int c = 0; c < board.length; c++) { if(board[r][c] == 0) //only checks spots on board that are 0 { int count = 0; //count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coord maxCell()\n {\n\t int maxX = getGrid().keySet().stream().mapToInt(Coord::getX).max().orElse(0);\n\n\t int maxY = getGrid().keySet().stream().mapToInt(Coord::getY).max().orElse(0);\n\n\t return new Coord(maxX, maxY);\n }", "public Location findLargest() {\n int max = -1;...
[ "0.6636301", "0.6553218", "0.65062964", "0.6252393", "0.6234508", "0.6168301", "0.6099355", "0.60759526", "0.6030414", "0.6010085", "0.5965266", "0.593309", "0.59326184", "0.5930801", "0.5930466", "0.5927353", "0.5904959", "0.58904624", "0.586418", "0.58534527", "0.58531964",...
0.6220628
5
determines whether or not the board is solved
public boolean solved() { for(int row = 0; row < board.length; row++) { for(int col = 0; col < board.length; col++) { if(board[row][col] == 0) return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBoardSolved() {\n for (int goal : goalCells) {\n if (!((board[goal] & 15) == BOX_ON_GOAL)) {\n return false;\n }\n }\n return true;\n }", "public boolean isPuzzleSolved() {\n\t\t// check rows/col/block )\n\t\tfor (int i = 1; i <= N; i+...
[ "0.8112213", "0.762317", "0.74568605", "0.7388698", "0.73569125", "0.73448133", "0.73229253", "0.7314531", "0.7291255", "0.7289744", "0.72490424", "0.7235808", "0.7201768", "0.7192439", "0.71540326", "0.714826", "0.7143747", "0.7140939", "0.71179813", "0.71127164", "0.7102564...
0.79284865
1
returns string representation of the board
public String toString() { String s = ""; for(int r = 0; r < board.length; r++) { for(int c = 0; c < board[0].length; c++) { s += "|" + board[r][c]; } s += "|" + "\n" + "-------------------" + "\n"; } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n StringBuilder s = new StringBuilder(); // Initialize new string builder\n s.append(N + \"\\n\"); // Append board dimension to string\n\n for (int[] row : tiles) {\n for ...
[ "0.8462134", "0.83993626", "0.8391049", "0.83797604", "0.83755046", "0.8366908", "0.83485377", "0.83374125", "0.8336932", "0.8218791", "0.82167643", "0.81787634", "0.8162727", "0.8152361", "0.81482524", "0.8075371", "0.80717385", "0.80594873", "0.7999595", "0.7997093", "0.797...
0.8557956
0
given a property name and a JsonArray with objects on it, returns a list of string values for the given property
private List<String> fromJsonArrayToNamesList(JSONArray jsonArray, String propertyName) throws JSONException { List<String> list = new ArrayList<>(); for(int i = 0; i<jsonArray.length(); i++){ JSONObject jo = jsonArray.getJSONObject(0); list.add(jo.getString(propertyName)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] getStringPlusProperty(Object property) {\n if (property instanceof String) {\n return new String[] {(String)property};\n } else if (property instanceof String[]) {\n return (String[])property;\n } else if (property instanceof Collection) {\n ...
[ "0.64256287", "0.6015237", "0.5786918", "0.5761241", "0.56345206", "0.5615127", "0.5596812", "0.5565996", "0.5512963", "0.5487749", "0.5453418", "0.5404073", "0.53875047", "0.5322307", "0.53209054", "0.52918494", "0.5259095", "0.52291316", "0.51887846", "0.5186824", "0.517676...
0.7219159
0
Definition of trigonometric functions.
public interface Trigonometric<E> { /** * Returns the sine of a number. * @param n element * @return sine */ E sin(final E n); /** * Returns the cosine of a number. * @param n element * @return cosine */ E cos(final E n); /** * Returns the tangent of a number. * @param n eleme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double trigonometric(double value, Operator trigType) {\n switch (trigType) {\n case SIN -> { return Math.sin(StrictMath.toRadians(value)); }\n case COS -> { return Math.cos(StrictMath.toRadians(value)); }\n case TAN -> { return Math.tan(StrictMath.toRadians(value)); ...
[ "0.69119406", "0.6723454", "0.6680852", "0.65369475", "0.6398111", "0.6290713", "0.61625034", "0.6143823", "0.607799", "0.6036083", "0.5994437", "0.5917744", "0.59131104", "0.58742887", "0.58740646", "0.5871441", "0.5809542", "0.5774151", "0.5772478", "0.5735505", "0.5726349"...
0.6389248
5
Returns the sine of a number.
E sin(final E n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double sin(double number);", "private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }", "public static Expression sin(final Expression value) {\n return new Expression(\"$sin\", value);\n }", "public static double mySin(double x) {\n ...
[ "0.84724313", "0.7183864", "0.71594363", "0.7056907", "0.70476174", "0.70423007", "0.69515157", "0.6914519", "0.6850752", "0.68403596", "0.6761911", "0.6758715", "0.6683798", "0.65184236", "0.6358535", "0.63257134", "0.63124", "0.62837684", "0.6278151", "0.6255503", "0.623709...
0.7319121
1
Returns the cosine of a number.
E cos(final E n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double cos(double number);", "public T cos(T value);", "public static double cos(double x)\n {\n int n=(int)(x/PI2)+1;\n if(n<1)n=n-1;\n x=x-(n&0xFFFFFFFE)*PI2; // reduce to the 4th and 1st quadrants\n\n double x2=x*x;\n\n float si=1f;\n if ((n&2)!=0) si=-1f; // if it from the 2nd o...
[ "0.8230002", "0.7264894", "0.6913176", "0.6910037", "0.6794864", "0.6733492", "0.6729099", "0.66669595", "0.6657682", "0.65640444", "0.64455485", "0.6338802", "0.6336355", "0.6278492", "0.6188805", "0.61624277", "0.60702455", "0.6056497", "0.6033623", "0.60001576", "0.5959319...
0.68404335
4
Returns the tangent of a number.
E tan(final E n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double tan(double number);", "public static double tanh(double x) {\n if (Double.isNaN(x)) return Double.NaN;\n double result = (Math.exp(x) - Math.exp(-x)) / (Math.exp(x) + Math.exp(-x));\n if (Double.isNaN(result))\n return (x < 0) ? -1.0 : 1.0;\n return result;\n ...
[ "0.7492561", "0.62463385", "0.6114576", "0.60984796", "0.6082735", "0.60562015", "0.59393144", "0.5929434", "0.5903118", "0.58892083", "0.58436817", "0.57909995", "0.56125635", "0.5587329", "0.54787946", "0.54082483", "0.5400547", "0.5381631", "0.53577393", "0.53161955", "0.5...
0.5960266
6
Returns the cotangent of a number.
E cot(final E n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double tan(double number);", "E atan(final E n);", "public double cos(double number);", "public static double degreeToRadians(double num) { return (num*0.0174533); }", "public static double cauchy() {\r\n return Math.tan(Math.PI * (uniform() - 0.5));\r\n }", "public Tangent(double a,...
[ "0.62187624", "0.591905", "0.5655963", "0.5546265", "0.553689", "0.5536745", "0.55316496", "0.5499795", "0.5305418", "0.52094305", "0.5199624", "0.5193365", "0.50620157", "0.50576377", "0.50317067", "0.5027957", "0.4966326", "0.49382073", "0.4922221", "0.49215138", "0.4918089...
0.5256281
9
Returns the arcsine of a number.
E asin(final E n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateArcSine(double angle);", "public double calculateArcSine(double angle, String angleType);", "public double calculateSine(double angle);", "public double calculateArcSine(double oppositeSide, double hypotenuseSide, String angleType);", "public double calculateSine(double angle, String...
[ "0.6686244", "0.62815684", "0.6056613", "0.5825535", "0.5585785", "0.55323654", "0.542693", "0.542592", "0.5182742", "0.51808214", "0.5180058", "0.514027", "0.5138595", "0.5075917", "0.50236756", "0.50184005", "0.4956447", "0.48623043", "0.48530912", "0.48469076", "0.48411232...
0.0
-1
Returns the arccosine of a number.
E acos(final E n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double cos(double number);", "protected static final double acos(double c) {\n\t\t// case where c is a bit more than 1\n\t\tif (DoubleUtil.isEqual(c, 1) && c > 1) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t// case where c is a bit less than -1\n\t\tif (DoubleUtil.isEqual(c, -1) && c < -1) {\n\t\t\treturn Math.PI;\n...
[ "0.7239531", "0.68879414", "0.6856616", "0.68211097", "0.6628216", "0.65266156", "0.6449541", "0.6447209", "0.63488287", "0.6216765", "0.6215788", "0.61747605", "0.6151582", "0.61457074", "0.61393", "0.605688", "0.60512996", "0.6037771", "0.6018423", "0.5984452", "0.59729826"...
0.71027803
1
Returns the arctangent of a number.
E atan(final E n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Expression atan(final Expression value) {\n return new Expression(\"$atan\", value);\n }", "public double tan(double number);", "public static double atan(double arg) {\n // keep the calculation in a separate class since it is quite long\n // and we might want to change to...
[ "0.63815", "0.6195988", "0.618121", "0.61135644", "0.6069403", "0.5764559", "0.5743899", "0.5690739", "0.5540694", "0.54867864", "0.5429782", "0.53291583", "0.5267779", "0.52595365", "0.52503073", "0.5239004", "0.5235519", "0.5235163", "0.5227799", "0.5221801", "0.5204532", ...
0.69181067
0
depth first search from sourceVertex
public void iterativeDfs(Graph graph, int sourceVertex) { stack.addLast(sourceVertex); while (!stack.isEmpty()) { int vertex = stack.removeLast(); if (!marked[vertex]) { sourceVertexCount++; marked[vertex] = true; for (int adjac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String depthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n ConstantTimeStack<Vertex<AnyType>> s...
[ "0.74272877", "0.71531916", "0.701066", "0.6699406", "0.6519298", "0.6452671", "0.6396615", "0.6353403", "0.6338366", "0.6299354", "0.6206686", "0.6129742", "0.6113506", "0.61114186", "0.61064416", "0.60997945", "0.6074196", "0.60579157", "0.60474914", "0.6015528", "0.6001673...
0.61053324
15
depth first search from v
public void recursiveDfs(Graph G, int v) { sourceVertexCount++; marked[v] = true; for (int w : G.adj(v)) { if (!marked[w]) { recursiveDfs(G, w); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void depthFirstSearch(Vertex v, ArrayList<Vertex> visitedArrayList, Graph graph){\n visitedArrayList.add(v);\n Iterator<Vertex> iter=graph.getNeighbors(v).iterator();\n while (iter.hasNext()){\n Vertex v1=iter.next();\n if(!visitedArrayList.contains(v1)){\n...
[ "0.6926913", "0.66088396", "0.6416563", "0.63649285", "0.6312199", "0.6274202", "0.62473565", "0.6238824", "0.60654896", "0.60553706", "0.5991765", "0.5979297", "0.5954744", "0.5954744", "0.5948598", "0.59413123", "0.5909545", "0.58403605", "0.58403605", "0.58403605", "0.5840...
0.57220614
99
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_create_restaurant, container, false); imageIV = view.findViewById(R.id.iv_item_image); nameET = view.find...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Got last known location. In some rare situations, this can be null.
@Override public void onSuccess(Location location) { if (location != null) { // Logic to handle location object latitude = location.getLatitude(); longitude = location.getLongitude(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Location getLastKnownLocation(){\n \t \tLocation loc = LocationUtil.getBestLastKnowLocation(ctx);\t\n \t \tStatus.getCurrentStatus().setLocation(loc);\t\n \t \treturn loc;\n \t}", "public Location getLastLocation() {\n\t\tif (mLocationClient.isConnected()) {\n\t\t\treturn mLocationClient.getLast...
[ "0.8411895", "0.798584", "0.775841", "0.77551305", "0.772616", "0.77107775", "0.7656453", "0.76472527", "0.7627842", "0.75204456", "0.7509053", "0.73237836", "0.7269876", "0.726622", "0.7259628", "0.7259341", "0.7252217", "0.72253007", "0.72251606", "0.7213284", "0.719885", ...
0.0
-1
Create an image file name
private File createImageFile() throws IOException { String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); String imageFileName = "JPEG_" + timeStamp + "_"; File storageDir = activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES); File image = File.createTem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prep...
[ "0.7782615", "0.7292824", "0.6992056", "0.6992056", "0.6943564", "0.6911284", "0.68938434", "0.686538", "0.68592805", "0.68590325", "0.68580544", "0.68443614", "0.67711073", "0.67546785", "0.6751638", "0.6737171", "0.6726197", "0.67170936", "0.67068315", "0.6706409", "0.66945...
0.6294874
81
Get the dimensions of the View
private void setPic() { int targetW = imageIV.getWidth(); int targetH = imageIV.getHeight(); // Get the dimensions of the bitmap BitmapFactory.Options bmOptions = new BitmapFactory.Options(); bmOptions.inJustDecodeBounds = true; BitmapFactory.decodeFile(mCurrentPhotoPath...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWidth() {\n return viewWidth;\n }", "Dimension getCanvasDimension();", "Dimension getDimensions();", "Dimension getSize();", "Dimension getSize();", "Point getScreenDimensions() {\n\t\tDisplay display = getWindowManager().getDefaultDisplay();\n\t\tPoint screenDimensions = new Poin...
[ "0.7443978", "0.7318852", "0.72428215", "0.7184651", "0.7184651", "0.6947008", "0.68738014", "0.6865533", "0.68639237", "0.6742911", "0.67044246", "0.67012715", "0.6681088", "0.66647816", "0.6663331", "0.664878", "0.6647272", "0.66367894", "0.6564092", "0.65421003", "0.653116...
0.0
-1
criar uma conta com um saldo
public int criarConta(double valor){ int idAux; // lock no banco this.lockBanco.lock(); try{ // criar a conta Conta conta = new Conta(this.lastId, valor); // meter no map this.contas.put(lastId, conta); // incrementar o id idAux = this.lastId; this.lastId++; } finally{ // unlock d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getSaldo() {\r\n return saldo;\r\n }", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ...
[ "0.6573585", "0.6480772", "0.6460948", "0.6443608", "0.63787436", "0.6217607", "0.61980194", "0.61980194", "0.6197237", "0.61809736", "0.61716324", "0.6154651", "0.6154651", "0.6011025", "0.5955533", "0.59521735", "0.59516186", "0.5901416", "0.58590734", "0.5850715", "0.58496...
0.5681872
34
fechar uma conta com um id
public double fecharConta(int id) throws ContaInvalida{ double saldo; // lock do banco this.lockBanco.lock(); try{ if(!this.contas.containsKey(id)){ // unlock do banco this.lockBanco.unlock(); // lançar exeção throw new ContaInvalida(id); } // lock da conta this.contas.get(id)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Contato buscaContatoId(int idContato) {\n\t\treturn null;\n\t}", "public void setId(byte id){this.id = id;}", "@Override\r\n public Assunto buscarId(int id) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto...
[ "0.65078527", "0.64834285", "0.64784896", "0.6445646", "0.6443446", "0.64393085", "0.64387983", "0.6438312", "0.64305794", "0.6403077", "0.638795", "0.63636696", "0.6353411", "0.6346017", "0.6250512", "0.6223119", "0.6223119", "0.6223119", "0.62203884", "0.62097096", "0.62036...
0.0
-1
Moves the throw. Horizontal and vertical wrapping around implemented.
public void moveThrow() { htmlThrowX += this.htmlHorizontal; htmlThrowY -= this.htmlVertical; // horizontal wrap-around if (htmlThrowX + throwRectangle.getWidth() < 0) { htmlThrowX = width; } if (htmlThrowX > width) { htmlThrowX = (int) -throwRectangle.getWidth(); } // vertical wrap-around ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void wrap() {\n if (myCurrentLeftX % (Grass.TILE_WIDTH * Grass.CYCLE) == 0) {\n if (myLeft) {\n myCowboy.move(Grass.TILE_WIDTH * Grass.CYCLE, 0);\n myCurrentLeftX += (Grass.TILE_WIDTH * Grass.CYCLE);\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumble...
[ "0.6135669", "0.5968132", "0.5964032", "0.59362453", "0.5893765", "0.5884775", "0.58811826", "0.58486193", "0.5830667", "0.581764", "0.58004034", "0.57970244", "0.5790927", "0.57633585", "0.57232726", "0.5717359", "0.5689577", "0.5622153", "0.55913055", "0.5578823", "0.556485...
0.78319573
0
Increases the size of the font by fixed number.
public void grow() { htmlFontSize += 40; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "public void addSizeModfier(int newSize) {\n\t\tif (size != null) {\n\t\t\tthrow new IllegalStateException(\"Multipl...
[ "0.7090927", "0.6797149", "0.6758094", "0.6736839", "0.6726564", "0.65888894", "0.6583258", "0.65363455", "0.6511661", "0.6496125", "0.64367396", "0.6430945", "0.63996696", "0.63898236", "0.63529855", "0.6338357", "0.63199556", "0.62814045", "0.6274165", "0.6225068", "0.61891...
0.64626944
10
Initialization of a NotExpression
public NotExpression(BooleanExpression expression, SourceLocation source) throws IllegalSourceException, IllegalExpressionException { super(expression, source); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(NotExpression arg0) {\n\t\t\n\t}", "public NotCondition() {\r\n\t\tsuper();\r\n\t}", "Not createNot();", "Not createNot();", "@Override\n public Literal not() {\n if (negation == null) {\n negation = new NotBoolVar(this);\n }\n return negation;\n }", "public...
[ "0.74328154", "0.72548205", "0.6962789", "0.6962789", "0.69408244", "0.6932017", "0.666741", "0.6651761", "0.66503584", "0.66138875", "0.65509903", "0.6476235", "0.6359692", "0.63525057", "0.62444395", "0.62361777", "0.6214842", "0.6134984", "0.6120691", "0.6100278", "0.60846...
0.71017486
2
just to initialize the ArrayList
public Portfolio(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initList() {\n\n }", "public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }", "public ArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }", "public MyArrayList() {\n data = new Object[10];\n }", "public ArrayList()\n ...
[ "0.8032418", "0.7544222", "0.73254323", "0.7317141", "0.727942", "0.727394", "0.7273043", "0.7265997", "0.7242549", "0.72422147", "0.72317415", "0.7228112", "0.7227041", "0.71914214", "0.71677375", "0.7110139", "0.7105783", "0.7105783", "0.71052873", "0.71048504", "0.71006835...
0.0
-1
Using Bucket Sort Time O(n) Space O(n) Much Faster than using PriorityQueue
public List<Integer> topKFrequent(int[] nums, int k) { List<Integer>[] bucket = new List[nums.length + 1]; Map<Integer, Integer> frequencyMap = new HashMap<Integer, Integer>(); for (int n : nums) { frequencyMap.put(n, frequencyMap.getOrDefault(n, 0) + 1); } // assgin elements in bucket and frequency will serv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void BucketSort(int[] A){\n\t\tSystem.out.println(\"BucketSort\\n\");\n\t\t\n\t\tSystem.out.print(\"Before bucket sort: \");\n\t\tfor(int i = 0 ; i < A.length ; i++){\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t//Gets the highest number in the arra...
[ "0.70128137", "0.6825639", "0.64152884", "0.6284266", "0.62760985", "0.62141526", "0.6190117", "0.61797565", "0.61775976", "0.60913044", "0.60911584", "0.60751736", "0.607338", "0.6035129", "0.6029068", "0.60052127", "0.59993356", "0.5995272", "0.59766096", "0.59668505", "0.5...
0.0
-1
/ Type of KeyStore file we have.
public static void main(String[] args) { final String keyStoreType = "jks"; /* This file is provided in class path. */ final String keyStoreFile = "C:\\Windows\\SystemD\\WorkSpaces\\workspace\\java-network-programming\\ssl-helloworld-server\\src\\main\\resource\\com\\rpsign\\net\\helloworld\\server\\app\\localke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KeyStore getKeyStore();", "public URL getKeyStore() {\n URL keyStore = null;\n if (keyStoreLocation != null) {\n try {\n keyStore = new URL(\"file:\" + keyStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Keystore has a m...
[ "0.6562014", "0.63084316", "0.6154854", "0.6031537", "0.5989411", "0.58733404", "0.57699853", "0.57664776", "0.5707909", "0.5705028", "0.56811494", "0.5649942", "0.56408906", "0.5604968", "0.5601154", "0.5601153", "0.55975723", "0.55858815", "0.5567366", "0.5478026", "0.54543...
0.0
-1
pass in the tweets array in the constructor
public TweeterAdapter (List<Tweet> tweets){ mTweets=tweets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TweetAdapter(List<Tweet> tweets, Activity timeLineActivity) {\n mTweets = tweets;\n this.timeLineActivity = timeLineActivity;\n }", "public TweetsAdapter(Context context, List<Tweet> tweets) {\n this.context = context;\n this.tweets = tweets;\n }", "public TweetsAdapter...
[ "0.71704984", "0.70953274", "0.70228547", "0.70149535", "0.6689368", "0.657845", "0.6465536", "0.6424439", "0.6306624", "0.62617415", "0.6159968", "0.6154125", "0.6138947", "0.6027001", "0.60005546", "0.5981037", "0.59647435", "0.59343904", "0.5921087", "0.5913534", "0.585241...
0.75135905
0
for each row,inflate the layout and cache references ViewHolder
@Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { Context context=parent.getContext(); LayoutInflater inflater=LayoutInflater.from(context); View tweetView =inflater.inflate(R.layout.item_tweet,parent ,false); ViewHolder viewHolder=new ViewHolder(tweet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected View inflateRow(ViewHolder holder){\n View row = null;\n switch (type)\n {\n case TYPE_TEXT_USER:\n row = inflater.inflate(textUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n hold...
[ "0.6984225", "0.67025065", "0.6681183", "0.66549784", "0.6496555", "0.6483777", "0.64485204", "0.6393234", "0.63464916", "0.62680995", "0.62666345", "0.6248359", "0.624046", "0.62376523", "0.62337023", "0.6175171", "0.6173949", "0.6152114", "0.6141279", "0.6135307", "0.610831...
0.0
-1
bind the values based on the position of the element
@Override public void onBindViewHolder(ViewHolder holder, int position) { //get the data according to mposition Tweet tweet=mTweets.get(position); //populate the views according to this data holder.tvUsername.setText(tweet.user.name); holder.tvBody.setText(tweet.body); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void bindAttributes() {\n\t\tsuper.bindAttribute(0, \"position\");\n\t\t\n\t}", "@Override\n protected void positionChanged () {\n\n\n valueLabel.setPosition( this.getX() + ((this.getScaleX() * this.getWidth() - valueLabel.getScaleX() * valueLabel.getWidth()) / 2),\n ...
[ "0.6587675", "0.59013706", "0.5875461", "0.56758153", "0.56392837", "0.56389016", "0.5557974", "0.55530375", "0.5437127", "0.5384651", "0.53425026", "0.53150177", "0.530985", "0.526505", "0.5259735", "0.52342886", "0.5233937", "0.52249086", "0.51992875", "0.51958877", "0.5173...
0.0
-1
Inserts a bls_sub_reports row ONLY if it doesn't already exist.
public int insert() throws BlsException { String sql = "insert into bls_sub_reports ( bls_report_id, name, report_code) select ?,?,? from dual where not exists (select 1 from bls_sub_reports where report_code = ?)"; Connection con = Utils.getDbConnection(); int id = -1; try { PreparedStatement pstat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSubReport(SubReportForm reportForm) throws SubReportDAOSysException\r\n {\r\n String sqlStr = \"insert into R_CustomSubReport_Tab values(\" +\r\n reportForm.getReportID() + \",\" +\r\n reportForm.getMReportID() + \",'\" +\r\n ...
[ "0.62705225", "0.5676448", "0.5432268", "0.5235208", "0.51942474", "0.5161419", "0.5082251", "0.5001762", "0.4981295", "0.4905657", "0.48555297", "0.4807263", "0.4778689", "0.47674638", "0.47587124", "0.47362837", "0.47345278", "0.47218478", "0.47036532", "0.46961364", "0.468...
0.7072334
0
Add Custom Method to JPARepository with Generics : If a repository is to be injected Spring Data creates a proxy implementing all the methods declared in your repository. In that proxy Spring Data will analyse the method call, decide which of the cases above applies and execute it
Optional<User> findByEmail(String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TypeRepositoryCustom extends JpaRepository<Type, Long> {\n\n}", "@RooJpaRepositoryCustom(entity = Pedido.class)\npublic interface PedidoRepositoryCustom {\n}", "public interface ManualRepository extends BaseRepository<ManualBo, Long>, ManualRepositoryCustom{\n}", "@RooJpaRepositoryCustom(ent...
[ "0.7017846", "0.6854458", "0.6846226", "0.6832702", "0.6799169", "0.6782342", "0.67488337", "0.6710338", "0.6697213", "0.6680305", "0.66793686", "0.66761076", "0.6673741", "0.66604143", "0.6605892", "0.6572674", "0.6550652", "0.6540808", "0.6531438", "0.65238017", "0.6514741"...
0.0
-1
If a value is present, and the value matches the given predicate, return an Optional describing the value, otherwise return an empty Optional.
Optional<User> findByUsernameOrEmail(String username, String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Possible<T> filter(Predicate<? super T> predicate) {\n AbstractDynamicPossible<T> self = this;\n return new AbstractDynamicPossible<T>() {\n @Override\n public boolean isPresent() {\n if (self.isPresent()) {\n boolean reallyPresent = true;\n ...
[ "0.61922467", "0.5811395", "0.5740495", "0.55756736", "0.5536472", "0.54408115", "0.5324322", "0.53010666", "0.52859163", "0.52776486", "0.52701", "0.5259619", "0.52541226", "0.5221596", "0.52213305", "0.51919633", "0.5172305", "0.51626277", "0.50856256", "0.5055178", "0.5052...
0.0
-1
Called from jni. Keep name and signature in sync with what's in passToJava() in andutils.c
public static void store( String tag, String msg ) { store( LOG_LEVEL.DEBUG, tag, msg ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface jni总结 {\n /**\n * jni:\n * 方法名-->包名+类名+方法名;\n */\n}", "static native int jniToBuf(Buf out, long patch);", "private native String native_init();", "protected void javaCallback() {\n\t}", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] i...
[ "0.65489143", "0.6307379", "0.6285454", "0.6209775", "0.6154567", "0.6033846", "0.6033238", "0.6021377", "0.59993416", "0.5979214", "0.5959589", "0.59560937", "0.5955082", "0.5924579", "0.5914272", "0.5912915", "0.5905349", "0.58723176", "0.5860741", "0.585929", "0.5832419", ...
0.0
-1
Return the number of rows
void clear( final ResultProcs procs ) { enqueue( new Runnable() { @Override public void run() { int result = getWritableDatabase() .delete( LOGS_TABLE_NAME, "1", null ); procs.onCleare...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getRowsCount();", "public abstract int getNumOfRows();", "public abstract int getNumRows();", "public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}", "public int getTotalRows();", "public int totalRowsCount();", "public int getRowsCount() {\n return rows_.size();\n }", "public int getNum...
[ "0.90468705", "0.8667057", "0.8639593", "0.8506574", "0.8405308", "0.8376647", "0.8359942", "0.83453727", "0.8332172", "0.8323122", "0.82597136", "0.82404923", "0.8205953", "0.8205953", "0.8200551", "0.81757855", "0.81757855", "0.8172972", "0.8171473", "0.8171473", "0.8171473...
0.0
-1
/ Find POIs by zone.
private ActionForward doFindPOIsByZone(ActionMapping mapping, String minLatitude, String minLongitude, String maxLatitude, String maxLongitude, int startIndex, int count, HttpServletRequest request) throws InternalErrorException { SearchFacadeDelegate searchFacadeDelegate = SearchFacadeDelegateFactory ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZoneVO getZoneById(Integer zoneid);", "List<Zone> getActiveZones(SpacedVector3 point);", "@GET\n\t@Produces(\"application/json\")\n\t@Path(\"within\")\n\tpublic List<Pizzerias> findPizzeriasWithin(@QueryParam(\"lat1\") float lat1,\n @QueryParam(\"lon1\") float lon1,...
[ "0.61253965", "0.60098845", "0.5524902", "0.55166507", "0.54593337", "0.53023577", "0.5291922", "0.5027514", "0.49929562", "0.4958769", "0.4908178", "0.48682895", "0.4848858", "0.48453316", "0.4834852", "0.48285156", "0.48254487", "0.48097795", "0.4804884", "0.47903875", "0.4...
0.56005526
2
TODO: Rename and change types and number of parameters
public static Fragment3 newInstance() { Fragment3 fragment = new Fragment3(); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getParameters(Parameters parameters) {\n\n }", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public abstract String paramsToString();", "protected void setupParameters() {\n \n \n\n }", "public abstract Result mo5059a(Params... paramsArr);", "public void getParame...
[ "0.59931976", "0.5977712", "0.573602", "0.5673198", "0.5638195", "0.56235766", "0.56187797", "0.5569275", "0.55499786", "0.55272686", "0.5463663", "0.5447239", "0.5438263", "0.54108876", "0.5384065", "0.5374544", "0.53731865", "0.53700835", "0.5359534", "0.5358818", "0.534661...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View fragmentView3= inflater.inflate(R.layout.fragment_fragment3, container, false); newEntry=(Button)fragmentView3.findViewById(R.id.newEntry); retrieve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7324027", "0.7207771", "0.71360254", "0.71240944", "0.712247", "0.7014617", "0.6975529", "0.6975529", "0.6975529", "0.69738495", "0.6967201", "0.69653356", "0.6960433", "0.6953883", "0.6943047", "0.6934466", "0.6930002", "0.69280016", "0.6922649", "0.6909678", "0.6903297",...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static LoginFragment newInstance(String param1, String param2) { LoginFragment fragment = new LoginFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.72621447", "0.7232083", "0.7112217", "0.6991051", "0.6990589", "0.6834896", "0.6830138", "0.68136847", "0.6801746", "0.68014497", "0.67672217", "0.6741153", "0.6741153", "0.6730413", "0.6717659", "0.6707773", "0.6691707", "0.66907436", "0.6690217", "0.6663584", "0.6645943"...
0.0
-1
== 'Fragment' methods ===================================================== Begin the loading of the users.
@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Start asking for the users now. // As the users start to come in, it's (theoretically) possible that the // view/adapter aren't yet set up, but if it is, notify the adapter. List<Long> use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadUserList()\n\t{\n\t\tfinal ProgressDialog dia = ProgressDialog.show(this, null,\n\t\t\t\tgetString(R.string.alert_loading));\n\t\tParseUser.getQuery().whereNotEqualTo(\"username\", user.getUsername())\n\t\t\t\t.findInBackground(new FindCallback<ParseUser>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpubl...
[ "0.71746916", "0.69377816", "0.6913082", "0.68757296", "0.68735164", "0.68206793", "0.67070705", "0.67052275", "0.6665828", "0.66143227", "0.6556764", "0.65143573", "0.6485334", "0.64792943", "0.63925636", "0.6338986", "0.6315952", "0.63113016", "0.6310754", "0.63099134", "0....
0.6352411
15
When the (updated) user arrives, do the adapting (prepare the User data model for binding to the view).
private void setUser(UserService.User user) { this.userName = user.getName(); DateFormat dateTimeInstance = SimpleDateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG); this.lastUpdateString = dateTimeInstance.format(user.getLastUpda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onUpdate(User user) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n final AlertDialog dialog = builder.create();\n LayoutInflater layoutInflater = LayoutInflater.from(getContext());\n final CustomDialogUpdateBinding binding = DataBin...
[ "0.69331473", "0.6821719", "0.67788565", "0.6625286", "0.6620151", "0.6597632", "0.65649617", "0.6548714", "0.650605", "0.64822626", "0.6466331", "0.64557534", "0.6449834", "0.644078", "0.63369334", "0.62735116", "0.6270663", "0.62560856", "0.62273216", "0.62124074", "0.61782...
0.6100949
29
TODO Autogenerated method stub
@Override public int charge(int time) { return super.charge(time*10); }
{ "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
movid moviName : average
public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { String line = value.toString(); String[] tokens = line.split("@"); double average = Double.parseDouble(tokens[2].trim()); averages.put(average, new Text(value)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "@DISPID(23)\r\n\t// = 0x17. The runtime will prefer the VTID if present\r\n\t@VTID(25)\r\n\tjava.lang.String averageCPUTime();", "double average();", "double totalMoviesAverageScore() {\n // call totalMovieAverage with no movie name\n ...
[ "0.62371534", "0.6209673", "0.60816133", "0.6029564", "0.60035217", "0.5933144", "0.58677775", "0.5850736", "0.5848605", "0.5827454", "0.5822315", "0.5768642", "0.5752594", "0.57513106", "0.56745887", "0.56689733", "0.56535727", "0.5608142", "0.5573356", "0.5559811", "0.55570...
0.0
-1
En javafx start() lance l'application On cree le SceneGraph de l'application ici
@Override public void start(Stage stage) throws Exception { /* Game initialisation */ Position.maxX = 520; Game game = new Game(new LinkedList<PlayerInterface>(), 600, 600); /* GUI initialisation */ // Nom de la fenetre stage.setTitle("BalleAuPrisonnier"); Group ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"ui/main.fxml\")); //FXMLLoader.load(Utilities.getResourceURL(\"ui/main.fxml\"));\r\n primaryStage.setTitle(\"Custom Groovy Game Engine\");\r\n primaryStage.setScen...
[ "0.74710476", "0.74098116", "0.727286", "0.72527796", "0.72000504", "0.7193323", "0.71840566", "0.71693647", "0.71274805", "0.711254", "0.7108081", "0.70988435", "0.7092058", "0.7083822", "0.70816624", "0.7079232", "0.6989485", "0.6987486", "0.6957084", "0.69547963", "0.69489...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.parent_menu, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_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.79042155", "0.7806028", "0.77664185", "0.77272826", "0.7631844", "0.7621488", "0.75845605", "0.753064", "0.7487905", "0.74575514", "0.74575514", "0.74386317", "0.7421903", "0.7403247", "0.7391723", "0.7386928", "0.73795277", "0.73705643", "0.73629", "0.7356027", "0.7345714...
0.0
-1
TODO Autogenerated method stub
@Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**")// 设置允许跨域的路径 .allowedOrigins("*")// 设置允许跨域请求的域名 .allowCredentials(true)// 是否允许证书 不再默认开启 .allowedMethods("GET", "POST", "PUT", "DELETE")// 设置允许的方法 .maxAge(3600);// 跨域允许时间 }
{ "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
Turns off all instrumentation for access detection for each test.
@org.junit.Before public void turnOffAllAccessDetection() { Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, "false"); /* Not tested here. */ Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, "false"); /* Not tested here. */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetAll() {\n triggered = false;\n classBlacklist.clear();\n policies.clear();\n protectedFiles.clear();\n System.setSecurityManager(defaultSecurityManager);\n }", "public void securityOff()\n {\n m_bSecurity = false;\n }", "@Disabled\n void ignore...
[ "0.60030985", "0.59032357", "0.5735448", "0.57093906", "0.56606495", "0.5585481", "0.55805916", "0.5572581", "0.55650896", "0.5560673", "0.5531727", "0.55154276", "0.55079347", "0.5496513", "0.5452351", "0.5364218", "0.5339546", "0.533245", "0.533108", "0.5309149", "0.5293948...
0.763206
0
/ Create & instrument a class that starts several equivalent generator threads.
@Test public void concurrencyTest() throws Exception { ArrayList<Long> objIds = instrSetup(new Callable<ArrayList<Long>>() { /** * An internal class that defines a task for creating multiple * objects of instrumented types and returning their identifiers as ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n SequenceGenerator generator = new SequenceGenerator();\r\n // init generator consumers\r\n MyThread thread1 = new MyThread(\"th1\", generator);\r\n MyThread thread2 = new MyThread(\"th2\", generator);\r\n MyThread thread3 = new MyThread(...
[ "0.6669407", "0.63037646", "0.5979755", "0.58634967", "0.57690793", "0.5599991", "0.55186903", "0.5490489", "0.5468668", "0.54325694", "0.5429985", "0.540978", "0.53629184", "0.5355568", "0.5350428", "0.53274685", "0.5327407", "0.53183866", "0.530714", "0.52854675", "0.528340...
0.59200877
3
Create an object, get its id multiple times from multiple threads and test it for changes.
@Test public void consistencyTest() { Boolean isConsistent = instrSetup(new Callable<Boolean>() { /** * A {@link Callable} worker that generates accesses to an object * regularly fetching its id to check if it changes. * * @author Nikolay Pule...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int make() { return this.atomicId.incrementAndGet(); }", "@Test\n public void concurrencyTest() throws Exception {\n ArrayList<Long> objIds = instrSetup(new Callable<ArrayList<Long>>() {\n\n /**\n * An internal class that defines a task for creating multiple\n ...
[ "0.59378994", "0.58250463", "0.58131737", "0.5751688", "0.5601007", "0.5556122", "0.5512214", "0.5462621", "0.5414052", "0.5374727", "0.53742635", "0.5362589", "0.5353453", "0.52905554", "0.5281608", "0.52673405", "0.52354455", "0.52246165", "0.5216304", "0.5211977", "0.52056...
0.62850666
0
Generates accesses to passed reference. Obtains id value, checks it for consistency, and returns it as a result.
@Override public Long call() { long id0 = InstanceIdentifier.INSTANCE.getId(ref); ref.hashCode(); long id1 = InstanceIdentifier.INSTANCE.getId(ref); ref.toString(); long id2 = InstanceIdentifier.INSTANCE....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReferenceId();", "Object getRefid();", "public abstract T ref(ID id);", "public String generateReferenceId(){\n String lastSequenceNumber = databaseAccessResource.getLastRequestSequenceNumber();\n //ToDo : write the logic to generate the next sequence number.\n return null;\n }", ...
[ "0.60605204", "0.5960612", "0.57635295", "0.55353355", "0.5490563", "0.5428266", "0.5407407", "0.5345093", "0.5345093", "0.5337071", "0.5335091", "0.5310781", "0.5308164", "0.5245643", "0.52331376", "0.5228461", "0.5220075", "0.51620394", "0.51518667", "0.51518667", "0.514448...
0.59466
2
Asynchrounous Execution / Preexecute a ProcessorTask by parsing the request line.
public boolean preExecute() throws Exception{ if (!parseHeaderPhase.getAndSet(true)){ processorTask = asyncProcessorTask.getProcessorTask(); if ( processorTask == null ){ throw new IllegalStateException("Null ProcessorTask"); } processorTask.prePro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<T> AsyncResult<T> startProcess(Callable<T> task);", "protected void processLine(String line){}", "private static void taskProcess(String input)\r\n\t{\r\n\t\tswitch (input.toUpperCase())\r\n\t\t{\r\n\t\t\tcase CREATE:\r\n\t\t\t{\r\n\t\t\t\tPostTaskService postTask = new PostTaskService();\r\n\t\t\t\tpostTask....
[ "0.5628193", "0.5542728", "0.5497404", "0.5423264", "0.5420797", "0.5417812", "0.5391207", "0.5364175", "0.5341059", "0.5307349", "0.528512", "0.52360016", "0.5225392", "0.5215682", "0.5207414", "0.520683", "0.5204807", "0.52008027", "0.5188765", "0.5180893", "0.5168604", "...
0.6061131
0
Interrupt the ProcessorTask if AsyncFilter has been defined.
public boolean interrupt() throws Exception{ if (processorTask.isError()) return true; // if error was detected on prev phase - skip execution if ( asyncFilters == null || asyncFilters.size() == 0 ) { execute(); return false; } else { asyncHandler.addToInter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final protected void interrupt()\n {\n if (startTask != null)\n startTask.interruptAll();\n }", "final void interruptTask() {\n/* 82 */ Thread currentRunner = this.runner;\n/* 83 */ if (currentRunner != null) {\n/* 84 */ currentRunner.interrupt();\n/* */ }\n/* 86...
[ "0.58019656", "0.5789017", "0.5774948", "0.5774948", "0.57462215", "0.57412076", "0.5682304", "0.56628364", "0.56550676", "0.56147677", "0.5550722", "0.5519365", "0.54797256", "0.54684895", "0.54678124", "0.5447296", "0.54425746", "0.5398623", "0.53233784", "0.5314163", "0.53...
0.7450551
0
Interrupt the ProcessorTask if AsyncFilter has been defined.
public boolean execute() throws Exception{ if (!executeAdapterPhase.getAndSet(true)){ processorTask.invokeAdapter(); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean interrupt() throws Exception{\n if (processorTask.isError()) return true; // if error was detected on prev phase - skip execution\n\n if ( asyncFilters == null || asyncFilters.size() == 0 ) {\n execute();\n return false;\n } else {\n asyncHandle...
[ "0.7450551", "0.58019656", "0.5789017", "0.5774948", "0.5774948", "0.57462215", "0.57412076", "0.5682304", "0.56628364", "0.56550676", "0.56147677", "0.5550722", "0.5519365", "0.54797256", "0.54684895", "0.54678124", "0.5447296", "0.54425746", "0.5398623", "0.53233784", "0.53...
0.0
-1
Postexecute the ProcessorTask by preparing the response, flushing the response and then close or keepalive the connection.
public boolean postExecute() throws Exception{ if (!commitResponsePhase.getAndSet(true)){ processorTask.postResponse(); processorTask.postProcess(); processorTask.terminateProcess(); // De-reference so under stress we don't have a simili leak. process...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n super.run(); // obtain connection\n if (connection == null)\n return; // problem obtaining connection\n\n try {\n request_spec.context.setAttribute\n (ExecutionContext.HTTP_CONNECTION, connection);\n\n ...
[ "0.5644611", "0.55922216", "0.55462706", "0.5453221", "0.54167455", "0.5380339", "0.5371054", "0.5365182", "0.53343785", "0.5320684", "0.52945095", "0.52945095", "0.52784353", "0.52711445", "0.52306247", "0.52133787", "0.52122134", "0.52048016", "0.5175392", "0.51708394", "0....
0.70893455
0
Util // Load the list of AsynchFilter.
protected static void loadFilters(){ if ( System.getProperty(ASYNC_FILTER) != null){ StringTokenizer st = new StringTokenizer( System.getProperty(ASYNC_FILTER),","); sharedAsyncFilters = new String[st.countTokens()]; int i = 0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private FilterChain loadFilters() {\n\t\ttry {\n\t\t\tAnnotation.scan(\"src/main/java/com/qa/app\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | IllegalArgumentException\n\t\t\t\t| InvocationTargetException | NoSuchMethodException | SecurityException | IOException e) {\...
[ "0.6247615", "0.57605565", "0.5751895", "0.574889", "0.55624056", "0.5554902", "0.553356", "0.5517496", "0.5489527", "0.545672", "0.5449654", "0.5429149", "0.53938115", "0.5391309", "0.53657556", "0.53367174", "0.53180385", "0.5314333", "0.53104347", "0.5277176", "0.5274275",...
0.77440125
0
Instanciate a class based on a property.
private static AsyncFilter loadInstance(String property){ Class className = null; try{ className = Class.forName(property); return (AsyncFilter)className.newInstance(); } catch (ClassNotFoundException ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Property createProperty();", "protected abstract Property createProperty(String key, Object value);", "public Property() {}", "private PropertySingleton(){}", "private Object createInstanceOfType(Class<?> propertyType)\n\t{\n\t\tObject typeInstance = null;\n\t\tif (propertyType.isArray())\n\t\t{\n\t\t\ttyp...
[ "0.6713838", "0.6163702", "0.6034359", "0.58245355", "0.58140665", "0.5738793", "0.5660739", "0.5635815", "0.55984694", "0.55656725", "0.55030835", "0.5496242", "0.53436714", "0.5313784", "0.52192795", "0.5212098", "0.5155849", "0.51514643", "0.51441306", "0.51324445", "0.510...
0.61856717
1
Get the AsyncHandler who drive the asynchronous process.
public AsyncHandler getAsyncHandler() { return asyncHandler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainThreadExecutor getHandler() {\n return handler;\n }", "Handler getHandler() {\n return getEcologyLooper().getHandler();\n }", "public static Handler getInstance() {\n Object object = sHandler;\n if (object != null) {\n return sHandler;\n }\n ...
[ "0.72318715", "0.69893974", "0.6480664", "0.6431632", "0.62884843", "0.626545", "0.62423307", "0.6211335", "0.61843395", "0.61843395", "0.6132753", "0.60460746", "0.6009718", "0.59966487", "0.59481394", "0.5933078", "0.5921291", "0.58637315", "0.58594155", "0.5854901", "0.581...
0.8093656
0
Set the AsyncHandler who drive the asynchronous process.
public void setAsyncHandler(AsyncHandler asyncHandler) { this.asyncHandler = asyncHandler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AsyncHandler getAsyncHandler() {\n return asyncHandler;\n }", "public void setAsyncRunner(AsyncRunner asyncRunner) {\n\t\tthis.asyncRunner = asyncRunner;\n\t}", "public AsyncHttpCallback() {\n\t\tif(Looper.myLooper() != null) mHandler = new Handler(this);\n\t}", "public void setHandler(Handl...
[ "0.68610376", "0.6437045", "0.62994957", "0.60699576", "0.60699576", "0.5727718", "0.5689757", "0.56818914", "0.5619098", "0.55966926", "0.55940187", "0.5564418", "0.54972225", "0.5494259", "0.54872614", "0.5431998", "0.542113", "0.5397177", "0.5390112", "0.535985", "0.534831...
0.80672115
0
Determine if a file path is derived from file content. If a file path is derived from file content, then identical file content can and will map to the same file path.
public boolean isContentAddressable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isPath();", "boolean hasFilePath();", "boolean safeIsFile(FsPath path);", "@Override\r\n\tpublic boolean isFile(String path) {\n\t\treturn false;\r\n\t}", "boolean isFile(FsPath path);", "boolean hasFileLocation();", "public boolean isFile() { return true; }", "public boolean...
[ "0.67451864", "0.66362727", "0.65073824", "0.6367111", "0.6337016", "0.62139344", "0.61924934", "0.6051643", "0.60189867", "0.6017133", "0.59765476", "0.5975622", "0.5971794", "0.5951744", "0.58822536", "0.58232814", "0.58008343", "0.5766237", "0.57463783", "0.57190233", "0.5...
0.0
-1
This method can be used to create references tags.
private String getReferenceValue(String refVal1, String refVal2) { logger.info("Entered getReferenceValue() method"); String refTag = ""; if ((refVal1.equalsIgnoreCase("")) && (refVal2.equalsIgnoreCase(""))) { refTag = "<CustomerReference>" + "Ref1# " + referen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ReferenceLink createReferenceLink();", "ReferenceEmbed createReferenceEmbed();", "@Override\n public String getTag() {\n return this.reference;\n }", "@View( VIEW_CREATE_REFERENCE )\r\n public String getCreateReference( HttpServletRequest request )\r\n {\r\n _reference = ( _referenc...
[ "0.65661246", "0.611819", "0.5970715", "0.582684", "0.57981294", "0.57541966", "0.5748822", "0.5718945", "0.5680452", "0.5671606", "0.56683755", "0.5587396", "0.5552846", "0.55304635", "0.55253005", "0.55040807", "0.54916364", "0.548791", "0.548791", "0.548791", "0.54707503",...
0.56245804
11
This method can be used to create references2 tag.
private String getRef2Val(String refVal2) { logger.info("Ref 1 from profile Options is null"); String refTag = ""; if (refVal2.equalsIgnoreCase("PURCHASE ORDER NUMBER")) { refTag = "<PONumber>" + reference2 + "</PONumber>" + "<CustomerReference>" + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ReferenceLink createReferenceLink();", "public void setReference2(java.lang.String reference2) {\n this.reference2 = reference2;\n }", "private String getReferenceValue(String refVal1, String refVal2) {\n logger.info(\"Entered getReferenceValue() method\");\n String refTag = \"\";\n\n\n...
[ "0.62369144", "0.6229499", "0.6141482", "0.59210414", "0.5912317", "0.5765638", "0.5742195", "0.5626959", "0.5600153", "0.547192", "0.54502195", "0.5445787", "0.5411767", "0.5335579", "0.5325219", "0.5280995", "0.52782995", "0.52667475", "0.52333766", "0.5214583", "0.51998323...
0.6473678
0
This method can be used to create references1 tag.
private String getRef1Val(String refVal1) { logger.info("Ref 2 from profile Options is null"); String refTag = ""; if (refVal1.equalsIgnoreCase("PURCHASE ORDER NUMBER")) { refTag = "<PONumber>" + reference1 + "</PONumber>" + "<CustomerReference>" + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReference1(java.lang.String reference1) {\n this.reference1 = reference1;\n }", "ReferenceLink createReferenceLink();", "ReferenceEmbed createReferenceEmbed();", "public void setReference1(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(REFERENCE1_PR...
[ "0.67433566", "0.6301786", "0.6042435", "0.6017452", "0.60069335", "0.59751064", "0.5894283", "0.5752977", "0.5730767", "0.56900495", "0.55297124", "0.53987336", "0.5388103", "0.53801084", "0.537909", "0.53773934", "0.53656083", "0.5346167", "0.5342048", "0.52968055", "0.5295...
0.63327366
1
This method can be used to send fedex request.
public void sendfedexRequest(AascShipmentOrderInfo aascShipmentOrderInfo, AascShipMethodInfo aascShipMethodInfo, String chkReturnlabelstr, AascProfileOptionsBean aascProfileOptionsInfo, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String callFedexWS(String key, String password, String intFlag, \n Double totalWeight, AascIntlInfo aascIntlInfo) {\n String reply = \"\";\n String appendStr = \"\";\n try {\n HashMap hm = new HashMap();\n hm.put(\"key\", key);\n ...
[ "0.6157586", "0.60290504", "0.59871966", "0.59805983", "0.5967544", "0.5927891", "0.5850048", "0.58204484", "0.572297", "0.57043093", "0.57008326", "0.5680638", "0.5675928", "0.56521934", "0.5561454", "0.5527239", "0.552188", "0.55114925", "0.54729736", "0.54479337", "0.54142...
0.71016055
0
end of the method For writing a string to specified file.
private void writeOutputFile(String str, String file) throws Exception { FileOutputStream fout = new FileOutputStream(file); fout.write(str.getBytes()); fout.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void writeToFile(String string){\n try {\n buffer.write(string);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private static void writeStringToFile(String string) {\n\t\ttry (BufferedWriter writer = new BufferedWriter(new FileWriter(OUTP...
[ "0.78833985", "0.74848276", "0.7351856", "0.7323408", "0.72666913", "0.71768147", "0.7166476", "0.7062766", "0.7024793", "0.7019015", "0.6965694", "0.6949061", "0.6947917", "0.69386065", "0.69241977", "0.6923092", "0.69068736", "0.6895345", "0.68894666", "0.68772525", "0.6875...
0.77355725
1
This method can replace the null values with nullString.
String nullStrToSpc(Object obj) { String spcStr = ""; if (obj == null) { return spcStr; } else { return obj.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String replaceMissingWithNull(String value);", "public static String formatNull() {\n\t\treturn \"null\";\n\t}", "public static String nullConv(String value){\r\n\t\tif(value==null){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "private String notNull(String value) {\n return va...
[ "0.7312384", "0.7020061", "0.6744196", "0.66902834", "0.6482727", "0.640681", "0.639023", "0.63820213", "0.6354459", "0.63134557", "0.62386405", "0.6216423", "0.61610985", "0.61305714", "0.6125292", "0.61093634", "0.6102382", "0.60808235", "0.6062334", "0.60505563", "0.602426...
0.55584115
66
method used to set parse error.
public void setError(String parseStatus) { this.parseStatus = parseStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setError();", "public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }", "private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }", "public abstract vo...
[ "0.7500622", "0.7243765", "0.7091338", "0.70299816", "0.6944809", "0.6878606", "0.6671617", "0.66699004", "0.6647144", "0.65869284", "0.65372777", "0.65305257", "0.6528029", "0.6528029", "0.6528029", "0.6517651", "0.65034777", "0.6481517", "0.64660156", "0.6431637", "0.643034...
0.79884225
0
method used to get parse error.
public String getError() { return parseStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getParseErrorMessage();", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }", "@Nullable\n public ParseError getP...
[ "0.8227778", "0.7742772", "0.7742772", "0.7742772", "0.7368297", "0.73029757", "0.71843237", "0.708467", "0.70529586", "0.701123", "0.701123", "0.69678724", "0.6938617", "0.6837821", "0.6826138", "0.6826138", "0.6826138", "0.6826138", "0.6741328", "0.67390233", "0.6712217", ...
0.8295279
0
method used to covert the request string to contain require format.
private String escape(String str) { String result = null; // replace(str, "&", "&amp;"); while (str.indexOf("&") != -1) { str = replace(str, "&", "&amp;"); } result = str; while (result.indexOf("-") != -1) { result = replace(result, "-", ""); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MovilizerRequest getRequestFromString(String requestString);", "public static HashMap<String, String> generateRequest (String request){\n LOGGER.info(\"Request generator got line => \" + request);\n /**\n * we split on spaces as that is the http convention\n */\n String[] bro...
[ "0.6120209", "0.5840412", "0.54901063", "0.54497397", "0.5402178", "0.5337841", "0.53244877", "0.5305984", "0.5267522", "0.5260595", "0.521629", "0.5112588", "0.5100535", "0.5094957", "0.5051633", "0.50137067", "0.49861634", "0.4946454", "0.48919925", "0.48888692", "0.4888605...
0.0
-1
method used to replace a substring of a string with another substring.
private String replace(String str, String from, String to) { int index = str.indexOf(from); if (index == -1) { return str; } else { int endIndex = index + from.length(); return str.substring(0, index) + to + str.substring(endIndex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String replaceString(String s, String one, String another) {\n if (s.equals(\"\")) return \"\";\n String res = \"\";\n int i = s.indexOf(one,0);\n int lastpos = 0;\n while (i != -1) {\n res += s.substring(lastpos,i) + another;\n lastpos = i + one.length();\n i =...
[ "0.7254136", "0.7137117", "0.6921743", "0.6754183", "0.6603508", "0.6586099", "0.6504389", "0.64476913", "0.6445781", "0.64220846", "0.64132684", "0.62900174", "0.6268987", "0.6235756", "0.6229973", "0.61956674", "0.6194856", "0.6150844", "0.61386204", "0.6121044", "0.6118014...
0.67810184
3
Method to process the Return Shipments. To generate the Return Shipment labels
public void processReturnShipment() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int processShipment(AascShipmentOrderInfo aascShipmentOrderInfo, \n AascShipMethodInfo aascShipMethodInfo, \n AascIntlInfo aascIntlInfo, \n AascProfileOptionsBean aascProfileOptionsInfo, \n ...
[ "0.6512235", "0.5849124", "0.57390916", "0.5606698", "0.5591082", "0.54282284", "0.5409919", "0.52142197", "0.5211702", "0.5202386", "0.5194287", "0.512604", "0.50694674", "0.50441927", "0.5043602", "0.5021411", "0.49939606", "0.49748483", "0.49689102", "0.49183282", "0.48672...
0.7284334
0
This method can be used to replace speccial characters in xml's.
private String replaceStr(String src, String oldPattern, String newPattern) { String dst = ""; // the new bult up string based on src int i; // index of found token int last = 0; // last valid non token string data for concat boolean done = false; // det...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSpecialChars() {\n\t\tString ff = XStreamUtils.serialiseToXml(\"Form feed: \\f\");\n\t\tSystem.out.println(ff);\n\t\tObject s = XStreamUtils.serialiseFromXml(\"<S>&#xc;</S>\");\n\t\tSystem.out.println(ff);\n\t}", "public String stripBadXMLCharacters( String xml , String rep )\r\n\t{\r\n\...
[ "0.6665453", "0.63829064", "0.62590647", "0.61747414", "0.61415875", "0.611072", "0.60157347", "0.5993714", "0.59872425", "0.5914395", "0.57369804", "0.56691927", "0.5621565", "0.56084967", "0.5579079", "0.5566405", "0.5548416", "0.554475", "0.55369407", "0.55295193", "0.5499...
0.0
-1
creates an xml ShipRequest based on the PayorType If the PayMethod is THIRDPARTY,RECIPIENT or COLLECT the request should contain their corresponding accountNumber and countryCode Information and so on and passes the request to fedex atom server and receives the Response from server.
public int processShipment(AascShipmentOrderInfo aascShipmentOrderInfo, AascShipMethodInfo aascShipMethodInfo, AascIntlInfo aascIntlInfo, AascProfileOptionsBean aascProfileOptionsInfo, String ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendfedexRequest(AascShipmentOrderInfo aascShipmentOrderInfo, \n AascShipMethodInfo aascShipMethodInfo, \n String chkReturnlabelstr, \n AascProfileOptionsBean aascProfileOptionsInfo, \n ...
[ "0.5794617", "0.5529254", "0.5470058", "0.5442814", "0.5305398", "0.5268737", "0.52495056", "0.52040166", "0.52037823", "0.51866114", "0.5164834", "0.51619166", "0.5117287", "0.5107749", "0.5103011", "0.49964172", "0.48966894", "0.48943618", "0.48885462", "0.4880602", "0.4852...
0.47392002
36
end of getShipmentRequest This method can be used to trim the string.
public String trim(String str) { return str.replaceFirst(" ", ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XMLString trim() {\n/* 780 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }", "private String getTrimmedValue(String value) {\n\t\treturn value == null ? \"\" : value.trim();\n\t}", "public String trim(String value) {\r\n return (value == null) ? value : nullable(value.trim()...
[ "0.65162516", "0.6367238", "0.6197599", "0.61267215", "0.6122749", "0.59683824", "0.5962478", "0.58792263", "0.58555067", "0.5835732", "0.5703787", "0.56579524", "0.56442887", "0.56205904", "0.56189436", "0.5582117", "0.5574344", "0.5536767", "0.5530749", "0.550869", "0.55022...
0.58963054
7
This method can be used to set carrier level information.
public int setCarrierLevelInfo1(AascShipmentHeaderInfo aascShipmentHeaderInfo, AascShipmentPackageInfo aascPackageBean, AascShipMethodInfo aascShipMethodInfo, String chkReturnlabel) { logger.info("Ent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCarrier(Context context) {\n String carrier = Util.getCarrier(context);\n if (carrier != null) {\n addToMobileContext(Parameters.CARRIER, carrier);\n }\n }", "public void setCarrierSelection(java.lang.Integer carrierSelection) {\r\n this.carrierSelection =...
[ "0.69017404", "0.6563096", "0.61514103", "0.57829136", "0.57798696", "0.57517594", "0.57368815", "0.5638142", "0.56230575", "0.55849904", "0.5561529", "0.5556903", "0.554998", "0.548858", "0.5455236", "0.54362106", "0.54276943", "0.5360469", "0.5331042", "0.5330142", "0.53245...
0.57522863
5
End Of setCarrierLevelInfo(). This method can be used to call fedex web service.
public String callFedexWS(String key, String password, String intFlag, Double totalWeight, AascIntlInfo aascIntlInfo) { String reply = ""; String appendStr = ""; try { HashMap hm = new HashMap(); hm.put("key", key); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int setCarrierLevelInfo1(AascShipmentHeaderInfo aascShipmentHeaderInfo, \n AascShipmentPackageInfo aascPackageBean, \n AascShipMethodInfo aascShipMethodInfo, \n String chkReturnlabel) {\n\n logger...
[ "0.6175673", "0.5631853", "0.52192944", "0.51488703", "0.5104571", "0.5104571", "0.5103063", "0.5039563", "0.503483", "0.5011781", "0.49658132", "0.49535224", "0.49220178", "0.487602", "0.48704895", "0.4809671", "0.47736338", "0.4759017", "0.4725641", "0.47021276", "0.4682023...
0.0
-1
Generate the first number
private static void InitRandBag() { int k=(int)Math.floor(Math.random()*50); R[0]=k; //Generate the rest of the numbers for(int i=1;i<950;i++) { k=k+(int)Math.floor(Math.random()*50); R[i]=k; } //Shuffle the list for(int i=0;i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }", "int getFirstNumber();", "public int randomizeFirstNumber() {\n a = random.nextInt(100);\n question.setA(a);\n return a;\n }", "private int generatePiece()\n\t{\n\t\tint toReturn ...
[ "0.711254", "0.7107812", "0.6800788", "0.67189634", "0.65825737", "0.65725416", "0.65315515", "0.64638245", "0.6448852", "0.6446752", "0.64079595", "0.6400723", "0.63374937", "0.6335794", "0.63265586", "0.6322643", "0.62986666", "0.62836415", "0.62814426", "0.62594986", "0.62...
0.0
-1
Given: Jar with no content
@Test void scanJars_should_return_empty_Documentation_if_jar_is_empty() { Path jar = new File("./src/test/resources/empty.jar").toPath(); //When: Documentation actual = ClassesScanner.scanJars(jar); //Then: assertEquals(Documentation.builder().build(), actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setFromJar() \r\n\t{\r\n\t\tfromJar = true;\r\n\t}", "boolean hasOutputjar();", "private static boolean isJar(){\n\t\tString str = IOHandler.class.getResource(\"IOHandler.class\").toString();\n\t\treturn str.toLowerCase().startsWith(\"jar\") && JAROVERRIDE;\n\t}", "java.lang.String getOutp...
[ "0.6246762", "0.62097144", "0.6181908", "0.5895023", "0.5890946", "0.5827137", "0.5764998", "0.56196886", "0.5590366", "0.55752546", "0.55428815", "0.5527554", "0.5516952", "0.5506591", "0.5492441", "0.5457301", "0.5449166", "0.5434948", "0.54223126", "0.54128104", "0.5407386...
0.60674584
3
Given: Jar with SpringBoot content
@ParameterizedTest @MethodSource("springBootJarsProvider") void scanJars_should_return_Documentation_with_service_id_for_Spring_Boot(String serviceId, String jarName) { Path jar = new File("./src/test/resources/" + jarName + ".jar").toPath(); //When: Documentation actual = ClassesScanne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void createBootstrapJar() throws IOException {\n\t\t\n\t}", "private void stageSelfContainedJar(InputStream stream, ApplicationDescription desc)\n throws IOException {\n // First extract the bundle coordinates\n String coords = getSelfContainedBundleCoordinates(desc);...
[ "0.60809916", "0.5991773", "0.54522294", "0.5404084", "0.5391932", "0.5278125", "0.5158998", "0.5156469", "0.5128382", "0.50799507", "0.50725496", "0.5045329", "0.501563", "0.50109136", "0.5001883", "0.49989155", "0.49906692", "0.4979537", "0.49793023", "0.49713606", "0.49518...
0.5163908
6
Given: Jar with no content
@Test void scanJars_should_find_FeignClient() { Path jar = new File("./src/test/resources/feign.jar").toPath(); //When: Documentation actual = ClassesScanner.scanJars(jar); //Then: final Section feignClients = Section.builder() .headline("Feign Clients") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setFromJar() \r\n\t{\r\n\t\tfromJar = true;\r\n\t}", "boolean hasOutputjar();", "private static boolean isJar(){\n\t\tString str = IOHandler.class.getResource(\"IOHandler.class\").toString();\n\t\treturn str.toLowerCase().startsWith(\"jar\") && JAROVERRIDE;\n\t}", "@Test\n void scanJars...
[ "0.6246762", "0.62097144", "0.6181908", "0.60674584", "0.5895023", "0.5890946", "0.5827137", "0.5764998", "0.56196886", "0.5590366", "0.55752546", "0.55428815", "0.5527554", "0.5516952", "0.5506591", "0.5492441", "0.5457301", "0.5449166", "0.5434948", "0.54223126", "0.5412810...
0.0
-1
Created by sumeet on 1/11/16.
public interface NotifySearch { public void search(String searchString); public void endSearchMode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}"...
[ "0.6099122", "0.60280365", "0.5961976", "0.59020054", "0.5892917", "0.5892917", "0.5835936", "0.5835701", "0.5823493", "0.57711524", "0.57611614", "0.5754306", "0.5743991", "0.57403123", "0.5739738", "0.57293016", "0.5726409", "0.57072", "0.56981844", "0.56981844", "0.5698184...
0.0
-1
Set the specified error code.
public void setErrorCode(int errorCode) { this.errorCode = errorCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setErrorCode(int value) {\n this.errorCode = value;\n }", "public Builder setErrcode(int value) {\n bitField0_ |= 0x00000001;\n errcode_ = value;\n onChanged();\n return this;\n }", "public void setCode(OAIPMHErrorcodeType code) {\r\n this.code = co...
[ "0.80526793", "0.78231597", "0.7791036", "0.7765888", "0.7753437", "0.7717639", "0.76488656", "0.7422485", "0.74181765", "0.7402549", "0.73345524", "0.7303051", "0.72507966", "0.7235902", "0.71514016", "0.71433765", "0.71040165", "0.70337224", "0.69715005", "0.6944248", "0.68...
0.7541299
7
Returns the error code.
public int getErrorCode() { return errorCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getErrcode();", "public int getErrcode() {\n return errcode_;\n }", "public int getErrcode() {\n return errcode_;\n }", "int getErrorCode();", "public int getErrorCode() {\r\n\t\treturn ERROR_CODE;\r\n\t}", "public int getErrorCode() {\n return parameter.getErrCode();\n ...
[ "0.8533607", "0.8223464", "0.8218876", "0.8177926", "0.8083024", "0.79758865", "0.7882505", "0.7816715", "0.77880514", "0.77364993", "0.773575", "0.7719701", "0.7700018", "0.7659573", "0.76388544", "0.75711644", "0.7565928", "0.75286746", "0.7449", "0.7418039", "0.7402245", ...
0.7655401
14
Test the error code is succeed or not.
@XmlTransient public boolean isSuccess() { return errorCode == ActionErrorCode.SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasErrcode();", "boolean hasIsSuccess();", "boolean isFailure();", "boolean hasErr();", "boolean hasError();", "boolean hasError();", "boolean hasError();", "boolean isFail();", "boolean hasErrorCode();", "public boolean isSuccessful() {\n return code >= 200 && code < 300;\n }",...
[ "0.73221105", "0.7094785", "0.6963123", "0.6878618", "0.6783425", "0.6783425", "0.6783425", "0.6759611", "0.67566234", "0.6732024", "0.6662035", "0.6661692", "0.6647393", "0.6554392", "0.6548353", "0.6548353", "0.6533391", "0.6499816", "0.6489714", "0.6489714", "0.6489714", ...
0.0
-1
Instantiates a new Evm.
public EVM( final OperationRegistry operations, final GasCalculator gasCalculator, final EvmConfiguration evmConfiguration, final EvmSpecVersion evmSpecVersion) { this.operations = operations; this.gasCalculator = gasCalculator; this.endOfScriptStop = new VirtualOperation(new StopOpe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "VM createVM();", "public VMWareDriver() {\n }", "public MyVM( ) \n {\n // initialise instance variables\n try \n {\n // your code here\n \tthis.si=new ServiceInstance(new URL(SJSULAB.getVmwareHostURL()),\n\t\t\t\t\tSJSULAB.getVmwareLogin(), SJSULAB.getVmwarePassword...
[ "0.7248268", "0.64684427", "0.64322764", "0.62313706", "0.6187799", "0.6107065", "0.60455793", "0.5944438", "0.5931261", "0.58897287", "0.58453095", "0.5835484", "0.58108854", "0.5768349", "0.5744873", "0.5739112", "0.57326794", "0.5713806", "0.5684369", "0.5662576", "0.56462...
0.5799746
13
Gets max eof version.
public int getMaxEOFVersion() { return evmSpecVersion.maxEofVersion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean eof() {\n\t\treturn eof;\n\t}", "public int getMaxVersion ()\n {\n return max_version;\n }", "public byte get_max() {\n return (byte)getSIntBEElement(offsetBits_max(), 8);\n }", "public static int getEndOfLineIndex() {\n return endOfLineIndex;\n ...
[ "0.60395604", "0.6004374", "0.59011585", "0.5900637", "0.5855887", "0.58120507", "0.5732458", "0.5706244", "0.570586", "0.56473166", "0.56193566", "0.56047314", "0.55907553", "0.55838877", "0.5583613", "0.55820936", "0.55820936", "0.55744296", "0.5554853", "0.55152977", "0.55...
0.8120149
0
Creates new form RetrivePassword_A
public RetrivePassword_A() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ForgotPasswordPage goToNewPasswordPage(){\n\n botStyle.click(forgotPasswordLink);\n\n return PageFactory.initElements(driver, ForgotPasswordPage.class);\n }", "String getNewPassword();", "public passwordForm() {\n initComponents();\n }", "public Forgotpassword()\n {\n ...
[ "0.6303882", "0.62344396", "0.6167265", "0.59962225", "0.59722644", "0.5970237", "0.58996975", "0.5885675", "0.5885675", "0.5885675", "0.5885675", "0.5885675", "0.5885675", "0.5885675", "0.5885675", "0.5885675", "0.58781946", "0.58594805", "0.58594805", "0.58359194", "0.58323...
0.74585605
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { backButton = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); emailField = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73185146", "0.7290127", "0.7290127", "0.7290127", "0.7285798", "0.7247533", "0.7214021", "0.720785", "0.71952385", "0.71891224", "0.7184117", "0.7158779", "0.7147133", "0.70921415", "0.70792264", "0.7055538", "0.6986984", "0.6976409", "0.6955238", "0.69525516", "0.69452786...
0.0
-1
Getter for property 'candidatLot'.
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LotDTO lotDTO = (LotDTO) o; if (lotDTO.getId() == null || getId() == null) { return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLot()\n {\n return lot;\n }", "public String getLot() {\n return (String)getAttributeInternal(LOT);\n }", "public String getLotName() {\n\t\treturn mLotName;\n\t}", "public void setLotNo(int inLotNo) {\r\n\t\tlotNo = inLotNo;\r\n\t}", "public String getBatchLotNo() {\n\n ...
[ "0.6944665", "0.66513467", "0.5855829", "0.5762596", "0.5729838", "0.56068814", "0.5554392", "0.55351883", "0.5384392", "0.5267862", "0.523955", "0.5238649", "0.5225049", "0.51449805", "0.51303226", "0.51282924", "0.51191115", "0.51103044", "0.51102835", "0.5100914", "0.50826...
0.0
-1