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
Computes the smallest radius needed to place a turnpike of length highwayLength as an input for the method OCOH.OCOHAlgorithm.center(PointList T, double radius). This method uses binary search to find the smallest radius in time O(log n).
private double getBPradius(PointList list1, PointList list2, double m, double M){ double y = (m+M)/2; double e1 = Math.max(0, list1.delta() + _highwayLength/_velocity - list2.delta()); double e2 = Math.max(0, list2.delta() - list1.delta() - _highwayLength/_velocity); PointList centers1 = center(list1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static double divideAndConquer(ArrayList<Point> X, ArrayList<Point> Y) {\n\n\t\t//Assigns size of array\n\t\tint size = X.size();\n\n\t\t//If less than 3 points, efficiency is better by brute force\n\t\tif (size <= 3) {\n\t\t\treturn BruteForceClosestPairs(X);\n\t\t}\n\t\t\n\t\t//Ceiling of array size / 2\...
[ "0.57499695", "0.57063305", "0.5576633", "0.55378836", "0.54824865", "0.53812325", "0.5352126", "0.53147507", "0.52882034", "0.52494246", "0.5200069", "0.5197032", "0.5180769", "0.51736635", "0.517221", "0.5166391", "0.51632786", "0.5138126", "0.513128", "0.5126179", "0.51202...
0.0
-1
Having found the correct size of balls and the sets of center points where those balls can be located, we need to fulfill the constraint for the fixedlength case that ||ft||_2 = l. To find f and t, we parameterize the path between the minimum distance and maximum distance points. Then we take the Euclidean distance and...
private double getParam(Point p1, Point p2, double[] v1, double[] v2){ double r; double l = _highwayLength; // auxiliary variables double A = (Math.pow(v1[0] - v2[0], 2.0)) + (Math.pow(v1[1] - v2[1], 2.0)); double B = (2 * (p1.posX - p2.posX) * (v1[0] - v2[0])) + (2 * (p1.posY - p2.posY) * (v1[1] - v2[1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void collision(Ball b){\n float cir_center_X = b.getCenterX();\r\n float cir_center_Y = b.getCenterY();\r\n \r\n // aabb half extent\r\n float extent_X = (this.p4[0]-this.p1[0])/2; //half width\r\n float extent_Y = (this.p3[1]-this.p4[1])/2; // half height\r\n // re...
[ "0.5683163", "0.5569585", "0.5388732", "0.5366602", "0.53209573", "0.52741563", "0.52635634", "0.5208666", "0.5202877", "0.51995975", "0.5193646", "0.51902974", "0.5158004", "0.5135764", "0.51142454", "0.5099598", "0.5091952", "0.5085746", "0.5065581", "0.5046452", "0.5032077...
0.0
-1
Calculates the locus of the centers of the axisparallel squares (L_infty balls) of radius r that cover T. We have: center(T,r) = center(extreme(T),r) center(T,r) can be empty, a point, an axisparallel segment, or a rectangle center(T,r) is empty iff r delta(T).
private PointList center(PointList T, double radius){ PointList centers = new PointList(Color.PINK); Point[] extrema = new Point[4]; Point currentCenter; double xLength; double yLength; double xStart; double xEnd; double yStart; double yEnd; extrema = T.getExtremePoints(); if (extrema[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double[] circleCentre()\n\t{\n\t\tdouble toOriginLength = Math.sqrt(originX*originX + originY*originY);\n\t\tdouble toCentreLength = toOriginLength + radius;\n\t\t\n\t\tdouble[] centrePoint = new double[2];\n\t\t\n\t\tcentrePoint[0] = (toCentreLength * originX)/toOriginLength;\n\t\tcentrePoint[1] = (toCentreLength...
[ "0.6191341", "0.60311794", "0.581869", "0.58081573", "0.57914776", "0.5782435", "0.574351", "0.5672152", "0.5670244", "0.56288344", "0.5623766", "0.55980736", "0.55980736", "0.55276537", "0.55145556", "0.54829216", "0.5441213", "0.54297656", "0.53863466", "0.5373322", "0.5354...
0.741321
0
Splits the customer set S into sets W and H, such that they are either divided by an axisaligned line or rectangle.
private void getPartition(PointList customers){ splitByQuadrant(customers); splitByLine(customers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<TessSeg> splitAtIsect(TessSeg s1)\r\n {\r\n if (!isLineHit(s1))\r\n {\r\n return null;\r\n }\r\n \r\n //Check for point-line hits\r\n double t00 = -1, t01 = -1, t10 = -1, t11 = -1;\r\n boolean pointMidlineHit = false;\r\n \r\n ...
[ "0.5180378", "0.51489747", "0.5139369", "0.5049079", "0.49181244", "0.4909552", "0.4895872", "0.48942578", "0.4848455", "0.48319036", "0.482705", "0.47247523", "0.46940333", "0.4681046", "0.46783274", "0.4674645", "0.46686304", "0.46680278", "0.46542528", "0.46084777", "0.459...
0.5788535
0
Booleans Checks whether a point p is contained in a list.
private boolean contains(List<PointList> list, PointList pList){ for (PointList p : list){ if (p.equals(pList)) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(Point p);", "public boolean containsPointList(final PointListPanel plp) {\n\t\tfinal Component[] c = panel.getComponents();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tif (c[i] == plp) return true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isInList(List<Point3D> pointsList,...
[ "0.8109164", "0.7847007", "0.7596226", "0.73186177", "0.7318226", "0.72732276", "0.7165551", "0.7138271", "0.71353996", "0.7124289", "0.71016586", "0.70654637", "0.702025", "0.70001745", "0.6976669", "0.69637805", "0.69419986", "0.69153035", "0.6905234", "0.6888451", "0.68749...
0.8311162
0
Setters Sets the current turnpike startpoint for the currently solved Basic problem.
private void setCurrentTurnpike(Point t){ _currentTurnpikeStart = t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStart(Point point) {\n mStart = point;\n }", "public void setStartPoint(int s) {\r\n\t\tstartPoint = s;\r\n\t}", "public void setStartX(float startX) {this.startX = startX;}", "@Override\n\tpublic void setStartPoint(Point startPoint) {\n\t\tthis.startPoint=startPoint;\n\t}", "priva...
[ "0.6420392", "0.6401998", "0.6361902", "0.6239107", "0.6206439", "0.6164255", "0.61502427", "0.61342406", "0.60694164", "0.601301", "0.60099596", "0.59859717", "0.5967429", "0.59577185", "0.5914578", "0.5913886", "0.590023", "0.58639634", "0.5863416", "0.5861745", "0.5857494"...
0.6809958
0
Sets the current facility point for the currently solved Basic problem.
private void setCurrentFacility(Point f){ _currentFacility = f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setThisFacility(Facility thisFacility) {\n this.thisFacility = thisFacility;\n }", "private void setWorkmanPoint( int point ){\n\n callGetSliderAds();\n }", "public void setGoal(Point point) {\n mGoal = point;\n }", "public void setSetpoint(double setpoint);", "pub...
[ "0.6365474", "0.5876566", "0.5571939", "0.5538904", "0.552878", "0.5484315", "0.5481141", "0.5379437", "0.5370409", "0.5359421", "0.5316264", "0.5279053", "0.5278397", "0.52722734", "0.5265497", "0.52649355", "0.5251258", "0.5214526", "0.519009", "0.51748216", "0.51502925", ...
0.7620252
0
Sets the current radius of the balls for the currently solved Basic problem.
private void setCurrentRadius(double r){ _currentRadius = r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRadius(int radius);", "public void setRadius(double value) {\n this.radius = value;\n }", "public void setRadius(double value) {\n radius = value;\n }", "public void setRadius(double n)\r\n\t{\r\n\t\tradius = n;\r\n\t}", "public void setRadius(double radius){\n\t\tradius =this....
[ "0.69966227", "0.67848617", "0.67289436", "0.6618912", "0.65826637", "0.6527866", "0.65275186", "0.65264076", "0.65182596", "0.6513288", "0.6505737", "0.650375", "0.6496201", "0.64656013", "0.6425347", "0.6392526", "0.6384474", "0.63554007", "0.6327113", "0.6317365", "0.62887...
0.68628573
1
For the given interface, get the stub implementation. If this service has no port for the given interface, then ServiceException is thrown.
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.ibm.itim.ws.services.WSExtensionService.class.isAssignableFrom(serviceEndpointInterface)) { com.ibm.itim.ws.services.WSExtensionServiceSoapBindingStub _stub = new com....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Remote getPort(Class serviceEndpointInterface) throws ServiceException {\n try {\n if (SDKClient.class.isAssignableFrom(serviceEndpointInterface)) {\n SDKServiceBindingStub _stub = new SDKServiceBindingStub(new java.net.URL(SDKService_address), this);\n _stub....
[ "0.78286654", "0.7688559", "0.7677454", "0.7644553", "0.7643072", "0.76214576", "0.7620097", "0.76175714", "0.7575225", "0.7573785", "0.75614876", "0.75524366", "0.7525484", "0.7500085", "0.74891156", "0.74784493", "0.7407812", "0.7401983", "0.74010134", "0.7390378", "0.73795...
0.7633333
5
For the given interface, get the stub implementation. If this service has no port for the given interface, then ServiceException is thrown.
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { if (portName == null) { return getPort(serviceEndpointInterface); } java.lang.String inputPortName = portName.getLocalPart(); if ("WSExte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Remote getPort(Class serviceEndpointInterface) throws ServiceException {\n try {\n if (SDKClient.class.isAssignableFrom(serviceEndpointInterface)) {\n SDKServiceBindingStub _stub = new SDKServiceBindingStub(new java.net.URL(SDKService_address), this);\n _stub....
[ "0.782763", "0.76865995", "0.7675835", "0.7642962", "0.7641442", "0.76316404", "0.7620029", "0.7619347", "0.7616479", "0.7573579", "0.7572099", "0.75600874", "0.7551034", "0.7524021", "0.74983776", "0.7487805", "0.7476485", "0.74065953", "0.7401048", "0.7400837", "0.7390175",...
0.7379483
21
Set the endpoint address for the specified port name.
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("WSExtensionService".equals(portName)) { setWSExtensionServiceEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"dipp\".equals(portName)) {\n setdippEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceExcepti...
[ "0.78726363", "0.78114974", "0.7810368", "0.7802772", "0.7794247", "0.7790045", "0.7785466", "0.77511", "0.77474827", "0.77336913", "0.77313584", "0.77237904", "0.76927227", "0.76839626", "0.76837003", "0.7667008", "0.76624376", "0.76261586", "0.76159585", "0.7588643", "0.758...
0.7554135
45
Set the endpoint address for the specified port name.
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { setEndpointAddress(portName.getLocalPart(), address); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"dipp\".equals(portName)) {\n setdippEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceExcepti...
[ "0.78734714", "0.78118074", "0.78110653", "0.78025514", "0.77947915", "0.7789663", "0.7785925", "0.77517325", "0.7748381", "0.773377", "0.77321035", "0.77238184", "0.76925415", "0.76846975", "0.7684268", "0.76668376", "0.7661453", "0.76269335", "0.7615809", "0.7589098", "0.75...
0.7582344
34
No op for this repo
@Override public void save(Game game) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gitThis(){\n\t}", "private void checkout() {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private HelloGitUtil(){\n\t}", "public boolean isNoOp() {\n\t\treturn ...
[ "0.6062974", "0.60341597", "0.60218704", "0.58902174", "0.5770787", "0.5633405", "0.5623804", "0.5604023", "0.5592304", "0.55476964", "0.55097556", "0.5472651", "0.54253674", "0.5422241", "0.5378523", "0.53556424", "0.5342764", "0.53256375", "0.531181", "0.5307809", "0.528383...
0.0
-1
Created by Crisley Alves on 12, out, 2017
public interface PessoaRepository extends JpaRepository<Pessoa, Long>{ List<Pessoa> pessoas = new ArrayList<>(); Optional<Pessoa> findByCpf(String cpf); Optional<Pessoa> findByTelefones(String ddd, String numero); Pessoa findByCodigo(Long codigo); Pessoa findByNome(String nome); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void perish() {\n \n }", "private void poetries() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",...
[ "0.5596007", "0.55835503", "0.5536645", "0.5511785", "0.5479912", "0.54508024", "0.5424788", "0.54143476", "0.5397536", "0.5397536", "0.53909826", "0.5387089", "0.5333257", "0.52849257", "0.5261824", "0.52236146", "0.52094686", "0.5203976", "0.5201861", "0.51943374", "0.51932...
0.0
-1
current value of max flow
public FordFulkerson(FlowNetwork G, int s, int t) { validate(s, G.V()); validate(t, G.V()); if (s == t) throw new IllegalArgumentException("Source equals sink"); if (!isFeasible(G, s, t)) throw new IllegalArgumentException("Initial flow is infeasible"); // whi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMaximum() {\n return (max);\n }", "double getMax() {\n\t\t\treturn value_max;\n\t\t}", "public abstract int getMaximumValue();", "int getMaximum();", "protected final int getMax() {\n\treturn(this.max);\n }", "E maxVal();", "public double getMaximumValue() { return this.ma...
[ "0.732765", "0.7235121", "0.7223249", "0.71140635", "0.7100554", "0.70815414", "0.7072621", "0.70659333", "0.7056416", "0.700224", "0.69931096", "0.6991593", "0.6987363", "0.69557965", "0.6954947", "0.69450057", "0.6937748", "0.6924467", "0.69081366", "0.6901585", "0.6891757"...
0.0
-1
throw an exception if v is outside prescibed range
private void validate(int v, int V) { if (v < 0 || v >= V) throw new IndexOutOfBoundsException("vertex " + v + " is not between 0 and " + (V-1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validate(int v) {\r\n if (v < 0 || v >= V)\r\n throw new IllegalArgumentException(\r\n \"vertex \" + v + \" is not between 0 and \" + (V - 1));\r\n }", "private void validate(int v) {\n int upperBound = G.V() - 1;\n if (v < 0 || v > upperBound) {\n String e...
[ "0.69525445", "0.6860043", "0.64817744", "0.6454906", "0.63077295", "0.62737656", "0.6269238", "0.6216232", "0.6188581", "0.6165851", "0.61577547", "0.60967404", "0.6048084", "0.59643173", "0.5954929", "0.5953195", "0.59476155", "0.5919883", "0.586917", "0.58607376", "0.58432...
0.6633293
2
return excess flow at vertex v
private double excess(FlowNetwork G, int v) { double excess = 0.0; for (FlowEdge e : G.adj(v)) { if (v == e.from()) excess -= e.flow(); else excess += e.flow(); } return excess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double excess(FlowNetwork G, int v) {\r\n double excess = 0.0;\r\n for (FlowEdge e : G.adj(v)) {\r\n if (v == e.from())\r\n excess -= e.flow();\r\n else\r\n excess += e.flow();\r\n }\r\n return excess;\r\n }", "public int outdegree(int v) {\r\n validateVertex(v...
[ "0.8137413", "0.6472538", "0.62812835", "0.62068105", "0.6151983", "0.6125281", "0.61048317", "0.5921011", "0.59192944", "0.58672154", "0.5862589", "0.58622", "0.5800586", "0.5798421", "0.57399607", "0.57080144", "0.5671706", "0.56627846", "0.5655465", "0.5647749", "0.5641292...
0.81833553
0
return excess flow at vertex v
private boolean isFeasible(FlowNetwork G, int s, int t) { double EPSILON = 1E-11; // check that capacity constraints are satisfied for (int v = 0; v < G.V(); v++) { for (FlowEdge e : G.adj(v)) { if (e.flow() < -EPSILON || e.flow() > e.capacity() + EPSILON) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double excess(FlowNetwork G, int v) {\n\t double excess = 0.0;\n\t for (FlowEdge e : G.adj(v)) {\n\t if (v == e.from()) excess -= e.flow();\n\t else excess += e.flow();\n\t }\n\t return excess;\n\t }", "private double excess(FlowNetwork G...
[ "0.81833553", "0.8137413", "0.6472538", "0.62812835", "0.62068105", "0.6151983", "0.6125281", "0.61048317", "0.5921011", "0.59192944", "0.58672154", "0.5862589", "0.58622", "0.5800586", "0.5798421", "0.57399607", "0.57080144", "0.5671706", "0.56627846", "0.5655465", "0.564774...
0.0
-1
Rolls five dice and averages the results.
int midFavoringRandom(int upperBound) { int runningTotal = 0; int rolls = 3; for (int i = 0; i < rolls; i++) { int result = random.nextInt(upperBound); runningTotal += result; } int mean = (int) Math.round((double) runningTotal / rolls); return mea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int diceRoll() {\n Random roller = new Random();//Create a random number generator\r\n return roller.nextInt(6) + 1;//Generate a number between 0-5 and add 1 to it\r\n }", "public int rollDice() {\n\t\td1 = r.nextInt(6) + 1;\n\t\td2 = r.nextInt(6) + 1;\n\t\trepaint();\n\t\treturn d...
[ "0.72710156", "0.70403624", "0.7008027", "0.69787043", "0.68828595", "0.6879834", "0.6867632", "0.67913365", "0.6786266", "0.67701405", "0.67664105", "0.6737066", "0.67357063", "0.67094713", "0.6654379", "0.6607481", "0.6582625", "0.6564212", "0.6534358", "0.65245014", "0.649...
0.0
-1
Builds a semirandom new aquarium string.
public String build() { List<String> fishes = new ArrayList<String>(); int fishTypeCount = random.nextInt(Chars.FISH_TYPES.size()) + 1; if (fishTypeCount == Chars.FISH_TYPES.size()) { fishes.addAll(Chars.FISH_TYPES); } else { while (fishes.size() < fishTypeCount) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();...
[ "0.62171334", "0.6190906", "0.6142049", "0.6060203", "0.60310525", "0.5962984", "0.59628874", "0.58932084", "0.5875119", "0.58711106", "0.58371925", "0.5823261", "0.5822493", "0.5787232", "0.5772065", "0.5746267", "0.57336855", "0.5680231", "0.56794125", "0.5674323", "0.56728...
0.0
-1
TODO Autogenerated method stub
@Override public Boolean loginAdmin(LoginAccessVo vo) throws Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void logoutAdmin() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onRestart() { super.onRestart(); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void surfaceCreated(SurfaceHolder holder) { Log.d(TAG,"surfaceCreated"); mSurfaceHolder = holder; initPlay(); play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void surfaceDestroyed(SurfaceHolder holder) { mSurfaceHolder = null; stop(); }
{ "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
keep the notification visible a little while after moving the mouse, or until clicked
private void showNotification(Notification notification) { notification.setDelayMsec(2000); notification.show(Page.getCurrent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void showNotify () {\n if (timer != null) {\n timer.cancel ();\n }\n\n timer = new Timer ();\n timer.schedule (new updateTask (), 500, 500);\n cityMap.addMapListener (this);\n }", "private void showNotification() {\n }", "private void onNotification...
[ "0.66213685", "0.66192526", "0.660855", "0.6474639", "0.6460535", "0.64584136", "0.6376914", "0.63375264", "0.6334262", "0.6330135", "0.6282485", "0.6269357", "0.6231411", "0.62311476", "0.6229243", "0.62279904", "0.6226009", "0.6198557", "0.6169794", "0.61599785", "0.6124624...
0.6262687
12
Test of getConnection method, of class AddressDAO.
@Test public void testGetConnection() { System.out.println("getConnection"); Connection result = instance.getConnection(); assertTrue(result!=null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConstructorConnection() {\n assertEquals(connection, dao.getDatabaseConnection());\n }", "private static void getConnectionTest() {\n\t\ttry {\r\n\t\t\tConnection conn=CartDao.getConnection();\r\n\t\t\tif(conn==null) System.out.println(\"disconnect\");\r\n\t\t} catch (SQLExce...
[ "0.7301716", "0.7233608", "0.6997072", "0.6874423", "0.67940384", "0.6729704", "0.6692103", "0.6591733", "0.6533495", "0.6495106", "0.64676", "0.64583015", "0.63758457", "0.6365762", "0.63252604", "0.62590533", "0.614767", "0.61442673", "0.6125552", "0.6109974", "0.6109974", ...
0.704638
2
Test of registerAddress method, of class AddressDAO.
@Test public void testRegisterAddress() { System.out.println("registerAddress"); Address morada = new Address("dra","333","Porto"); boolean expResult = true; boolean result = instance.registerAddress(morada); assertEquals(expResult, result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAddAddress1() throws Exception {\r\n try {\r\n this.dao.addAddress(null, false);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test\r\n\tvoid testContactServiceUpdatAddress() {\r\n\t\t// u...
[ "0.69637406", "0.68575776", "0.6693415", "0.66338974", "0.6617258", "0.6610323", "0.6604365", "0.65278506", "0.6502006", "0.6471387", "0.64564174", "0.6446624", "0.6437999", "0.64149517", "0.63778186", "0.6363113", "0.6317951", "0.6283609", "0.62754524", "0.62548316", "0.6250...
0.7763956
0
Test of getAdressByID method, of class AddressDAO.
@Test public void testGetAdressByID() throws Exception { System.out.println("getAdressByID"); int adressID = 0; String result = instance.getAdressByID(adressID); assertTrue(!result.isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetCoordinatesByAddressID() throws Exception {\n System.out.println(\"getCoordinatesByAddressID\");\n int adressID = 0;\n String result = instance.getCoordinatesByAddressID(adressID);\n assertTrue(!result.isEmpty());\n }", "@Test\n public void testGetAdd...
[ "0.69760734", "0.69674945", "0.6903148", "0.67931426", "0.67031175", "0.66914284", "0.65926355", "0.65685165", "0.6494105", "0.6477995", "0.6392006", "0.62891895", "0.62708426", "0.6132982", "0.6114658", "0.6084895", "0.60744077", "0.6036199", "0.60324705", "0.60025805", "0.5...
0.7730171
0
Test of getCoordinatesByAddressID method, of class AddressDAO.
@Test public void testGetCoordinatesByAddressID() throws Exception { System.out.println("getCoordinatesByAddressID"); int adressID = 0; String result = instance.getCoordinatesByAddressID(adressID); assertTrue(!result.isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetAddress() throws Exception {\n final int addressId = 1;\n final Address expected = createMockedAddress(1);\n\n new Expectations() {{\n jdbcTemplate.queryForObject(anyString, new Object[]{addressId}, (RowMapper<?>) any);\n returns(expected);\n }};\n\n Address act...
[ "0.67947286", "0.65234137", "0.62788504", "0.61226326", "0.60429794", "0.5989793", "0.59889257", "0.592647", "0.5913871", "0.5891345", "0.5887356", "0.5839846", "0.5830574", "0.57395095", "0.5698196", "0.56770515", "0.5622461", "0.5619246", "0.56114423", "0.55947405", "0.5573...
0.79522145
0
Test of newAddress method, of class AddressDAO.
@Test public void testNewAddress() { System.out.println("newAddress"); String rua = "felicia"; String codigoPostal = "1211"; String localidade = "Mancelos"; Object result = instance.newAddress(rua, codigoPostal, localidade); assertTrue(result instanceof Address); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testInsertNew() {\n System.out.println(\"insertNew\");\n Address obj = new Address(\"tregi\",\"333\",\"Porto\");;\n boolean expResult = true;\n boolean result = instance.insertNew(obj);\n assertEquals(expResult, result);\n }", "public @NotNull Address ...
[ "0.70981437", "0.70621604", "0.7039933", "0.69808125", "0.6918991", "0.6907952", "0.6891381", "0.6889097", "0.68633336", "0.6775921", "0.67263675", "0.665746", "0.66314137", "0.6582466", "0.65127563", "0.6500077", "0.6458097", "0.6423994", "0.6360928", "0.63139844", "0.626240...
0.77192307
0
Test of insertNew method, of class AddressDAO.
@Test public void testInsertNew() { System.out.println("insertNew"); Address obj = new Address("tregi","333","Porto");; boolean expResult = true; boolean result = instance.insertNew(obj); assertEquals(expResult, result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void insertSuccess() {\n Date today = new Date();\n User newUser = new User(\"Artemis\", \"Jimmers\", \"ajimmers@gmail.com\", \"ajimmers\", \"supersecret2\", today);\n int id = dao.insert(newUser);\n assertNotEquals(0, id);\n User insertedUser = (User) dao.getById(id);...
[ "0.6998668", "0.69905347", "0.6959399", "0.68514687", "0.68006223", "0.67708015", "0.67148703", "0.6702999", "0.66750264", "0.6659953", "0.66484696", "0.6610371", "0.6604357", "0.6604199", "0.65730315", "0.6561322", "0.651943", "0.6511422", "0.64907557", "0.6490094", "0.64898...
0.7827976
0
Test of update method, of class AddressDAO.
@Test public void testUpdate() { System.out.println("update"); Address obj = null; AddressDAO instance = null; boolean expResult = false; boolean result = instance.update(obj); assertEquals(expResult, result); // TODO review the generated test code and remove ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testUpdateAddress() {\n System.out.println(\"updateAddress\");\n String address = \"Sortegade 10\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(\"Gert Hansen\", \"Grønnegade 12\", \"98352010\");\n instance.updateAd...
[ "0.76920986", "0.75711864", "0.7426957", "0.7426516", "0.72418064", "0.722917", "0.722194", "0.71677184", "0.71546626", "0.7143981", "0.71313184", "0.71054685", "0.71027696", "0.7061836", "0.7027166", "0.7020874", "0.7020369", "0.69711417", "0.6971026", "0.6957903", "0.694369...
0.8728518
0
Test of get method, of class AddressDAO.
@Test public void testGet() { System.out.println("get"); int id = 0; Address result = instance.get(id); assertTrue(result.validate()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetAddress() throws Exception {\n final int addressId = 1;\n final Address expected = createMockedAddress(1);\n\n new Expectations() {{\n jdbcTemplate.queryForObject(anyString, new Object[]{addressId}, (RowMapper<?>) any);\n returns(expected);\n }};\n\n Address act...
[ "0.7283235", "0.7056776", "0.69908065", "0.68170375", "0.67860556", "0.6694487", "0.6686472", "0.66783226", "0.6565697", "0.651367", "0.650411", "0.63680875", "0.63421917", "0.63303256", "0.63100916", "0.62962306", "0.62866104", "0.62829214", "0.6276736", "0.62617993", "0.618...
0.719205
1
Invoke Restaurant object to read restaurant menu from file.
public void setUpRestaurant() { Restaurant restaurantMenu = new Restaurant(); String filePath = environment.getFile(INPUT_FILE_PATH).getAbsolutePath(); try { restaurantMenu.readMenuFromFile(filePath); } catch (FileNotFoundException e) { Logger.error("Unable to import resta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromRestaurantFile()\r\n {\r\n try(ObjectInputStream fromRestaurantFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/restaurant.dta\")))\r\n {\r\n restaurant = (Restaurant) fromRestaurantFile.readObject();\r\n }\r\n catch(Clas...
[ "0.6920002", "0.6336298", "0.5871181", "0.58560205", "0.58134294", "0.57740366", "0.5745183", "0.57275355", "0.572225", "0.5677413", "0.56681305", "0.560472", "0.5599045", "0.55528665", "0.5549766", "0.5549113", "0.5514847", "0.54795206", "0.54695225", "0.5450709", "0.5410512...
0.70703363
0
Makes call to SatisfactionAnalyzer to find the max satisfaction value.
public Integer findMaxSatisfaction(Integer timelimit) { return satisfactionAnalyzer.findMaxSatisfaction(timelimit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getMaximumResults();", "public int getResult() {\n return this.max;\n }", "int max();", "int getMaximum();", "public int GetMaxVal();", "public int findMax(){\n return nilaiMaks(this.root);\n }", "public int findMaxValue() {\n\t\treturn findMaxValue( this );\n\t}", "public...
[ "0.6380199", "0.6329474", "0.6315256", "0.6301898", "0.6294271", "0.62633663", "0.62141025", "0.61949307", "0.6193887", "0.61915654", "0.61902994", "0.6186875", "0.617815", "0.61561656", "0.6152692", "0.6152692", "0.61443985", "0.6137297", "0.611838", "0.61055994", "0.609445"...
0.72205174
0
TODO Autogenerated method stub cut rope to maximize product look why we need not made call for (f5 f6)
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int no = sc.nextInt(); System.out.println(maxproduct(no)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private void m50367F() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF7() {\n\t\t\r\n\t}", "static void feladat6() {\n\t}", "@Override\n ...
[ "0.7250335", "0.6826835", "0.6797232", "0.65713817", "0.6542468", "0.65268415", "0.63988996", "0.63874704", "0.6345174", "0.6331426", "0.6324528", "0.6321203", "0.62705404", "0.6269154", "0.61369395", "0.6126611", "0.6114025", "0.61106783", "0.6089711", "0.60814553", "0.60693...
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.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72500116", "0.7204146", "0.71987385", "0.7180757", "0.71107906", "0.7043322", "0.7041613", "0.7015376", "0.7013112", "0.6982869", "0.69475657", "0.6941377", "0.6937569", "0.69213736", "0.69213736", "0.6892679", "0.6887231", "0.6877873", "0.68772626", "0.68644464", "0.68644...
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(); //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.7904231", "0.78061396", "0.7767007", "0.77273244", "0.76318634", "0.7621818", "0.7585249", "0.7531511", "0.7488678", "0.74574006", "0.74574006", "0.7439257", "0.7421747", "0.7403457", "0.73920685", "0.7387285", "0.7379893", "0.73710734", "0.7363068", "0.73565257", "0.73461...
0.0
-1
Urls contain mutable parts (parameter 'sessionToken') and stable video's id (parameter 'videoId'). e. g. "
@Override public String generate(String url) { int startIndex = url.lastIndexOf("/"); int endIndex = url.indexOf(".mp4"); try { return url.substring(startIndex, endIndex) + ".temp"; } catch (Exception e) { e.printStackTrace(); return url + ".temp";...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVideoUrl() {\n return videoUrl;\n }", "public void setVideoUrl(String newVideoUrl) {\n this.videoUrl = newVideoUrl;\n }", "@NonNull\n public String getVideoUrl() {\n return videoUrl;\n }", "private String getVideoApiLink(String id) {\n String videoLink...
[ "0.62758666", "0.62150306", "0.615028", "0.6000557", "0.5981158", "0.5930217", "0.5889478", "0.5886001", "0.5795329", "0.5782922", "0.5662864", "0.5646624", "0.56145877", "0.5592621", "0.5592621", "0.55254114", "0.54865193", "0.5461574", "0.54358685", "0.5399734", "0.53885674...
0.0
-1
TODO: Move to an abstract class
public static String genotypeToString(Map<Allele, String> allelesMap, htsjdk.variant.variantcontext.Genotype genotype) { String genotypeValue; StringBuilder gt = new StringBuilder(); for (Allele allele : genotype.getAlleles()) { if (gt.length() > 0) { gt.append(genoty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "public abstract String use();", "@Over...
[ "0.59613246", "0.5906246", "0.58677256", "0.5859313", "0.5761497", "0.5744678", "0.57240194", "0.572132", "0.56602967", "0.5614027", "0.56047887", "0.5599166", "0.558903", "0.5568174", "0.5568174", "0.5566224", "0.5566224", "0.5563337", "0.5542321", "0.5542321", "0.5542321", ...
0.0
-1
Set element type and reserialize element if required. Should only be called before serialization/deserialization of this function.
@Override public void setOutputType(TypeInformation<T> outTypeInfo, ExecutionConfig executionConfig) { Preconditions.checkState( elements != null, "The output type should've been specified before shipping the graph to the cluster"); checkIterable(elements, outTypeInfo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setElement(T elem)\n {\n\n element = elem;\n }", "public void setElementType(String element_type) {\n\t\tthis.element_type = element_type;\n\t}", "protected abstract Type loadDefaultElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a ...
[ "0.6294139", "0.617699", "0.6153292", "0.61425567", "0.60393727", "0.60037494", "0.59537053", "0.586415", "0.58630884", "0.5858521", "0.58054453", "0.5801496", "0.57742757", "0.5758869", "0.5742853", "0.5742139", "0.55839837", "0.55671555", "0.5492812", "0.5485424", "0.546317...
0.49321753
56
Gets the number of elements produced in total by this function.
public int getNumElements() { return numElements; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTotalElements();", "public long getTotal() {\r\n\t\treturn page.getTotalElements();\r\n\t}", "Long getNumberOfElement();", "public int totalNum(){\n return wp.size();\n }", "public synchronized int getNumberOfItems(){\n int totalItems=0;\n \n for(ShoppingCartItem item ...
[ "0.83655334", "0.7929251", "0.7520345", "0.74714106", "0.74680525", "0.7435787", "0.7431947", "0.73808205", "0.7322166", "0.73026013", "0.73026013", "0.7301569", "0.7267986", "0.7251538", "0.7251538", "0.72405154", "0.7232222", "0.71898544", "0.7186415", "0.71854943", "0.7154...
0.0
-1
Gets the number of elements emitted so far.
public int getNumElementsEmitted() { return numElementsEmitted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getNumberOfElement();", "public int getNumOfElements() {\n return numOfElements;\n }", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public int getNrOfElements() {\n ...
[ "0.732033", "0.7312841", "0.73069215", "0.7304938", "0.72671825", "0.7265759", "0.72410303", "0.7212647", "0.7212647", "0.71871334", "0.71870106", "0.7147151", "0.7141637", "0.71155167", "0.7099872", "0.7089782", "0.7082757", "0.7082686", "0.7065871", "0.7062867", "0.70620316...
0.82992744
0
Utilities Verifies that all elements in the collection are nonnull, and are of the given class, or a subclass thereof.
public static <OUT> void checkCollection(Collection<OUT> elements, Class<OUT> viewedAs) { checkIterable(elements, viewedAs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> void checkNull(Collection<T> obj){\n if(obj == null || obj.size() == 0){\n throw new IllegalArgumentException(\"Object is null\");\n }\n obj.forEach(AssertUtil::checkNull);\n }", "@Test\n\tvoid testCheckClass3() {\n\t\tassertFalse(DataChecker.checkClass(new I...
[ "0.6312417", "0.57873654", "0.5766979", "0.565231", "0.56476367", "0.562783", "0.5564508", "0.55119324", "0.5498039", "0.54946554", "0.5490847", "0.5487976", "0.5487976", "0.5487976", "0.5453962", "0.54230976", "0.5404667", "0.53928125", "0.5384617", "0.53780323", "0.53760386...
0.62552947
1
The method is called to notify all observers when the Subject's state has changed
void notifyObservers();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Subject subject) {\n\t\tobserverState = ((ConcreteSubject)subject).getSubjectState();\n\t}", "@Override\n\tpublic void notifyObservers() {\n\t\tfor (Observer obs : this.observers)\n\t\t{\n\t\t\tobs.update();\n\t\t}\n\t}", "@Override\n public void notifyObservers() {\n ...
[ "0.77969295", "0.75052094", "0.74700254", "0.7416929", "0.7413058", "0.73233366", "0.7279234", "0.72544014", "0.72387177", "0.7235828", "0.72113246", "0.72044504", "0.72035134", "0.7203425", "0.71931225", "0.7176063", "0.7148931", "0.713475", "0.7121499", "0.71070826", "0.698...
0.6832531
27
The static utility method Collections.sort accepts a list and a comparator in order to sort the elements of the given list
public void step1(){ Collections.sort(names, new Comparator<String>() { @Override public int compare(String a, String b) { return b.compareTo(a); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort(List<T> objects, Comparator<T> comparator) {\n }", "public static void sort(java.util.List arg0, java.util.Comparator arg1)\n { return; }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public static void sort(List list, Comparator comparator) {\n if (list.size() > ...
[ "0.79312015", "0.7832358", "0.7645297", "0.75811416", "0.68865305", "0.6677743", "0.6632532", "0.66197115", "0.6599481", "0.6579284", "0.6510548", "0.64922637", "0.6476657", "0.64722663", "0.64621174", "0.63657886", "0.6345512", "0.6340369", "0.6279287", "0.62260437", "0.6224...
0.0
-1
We can write it like this
public void step2(){ Collections.sort(names,(String a,String b) -> { return a.compareTo(b); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", ...
[ "0.5557432", "0.55329484", "0.5350096", "0.53098816", "0.5278747", "0.5229801", "0.52050096", "0.51858646", "0.51815164", "0.5177341", "0.5174875", "0.513175", "0.5109668", "0.5093674", "0.50819993", "0.50379705", "0.50346494", "0.50346494", "0.503278", "0.5018072", "0.501494...
0.0
-1
We can write it like this more simple
public void step3(){ Collections.sort(names,(String a, String b) -> a.compareTo(b)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private void kk12() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "private stendhal() {\n\t}",...
[ "0.5511931", "0.54045373", "0.53616804", "0.52382207", "0.52308077", "0.5188347", "0.51814747", "0.51803", "0.51571643", "0.51493865", "0.50471264", "0.50431174", "0.50123316", "0.50116694", "0.4983528", "0.4976684", "0.4976684", "0.49671227", "0.49613622", "0.49601027", "0.4...
0.0
-1
The best way like this , because we know the variable type
public void step4(){ Collections.sort(names,(a,b)->b.compareTo(a)); System.out.println("names sorted are :"+names); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic Node visitVarType(VarTypeContext ctx) {\n\t\treturn super.visitVarType(ctx);\r\n\t}", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "<C, PM> Varia...
[ "0.62426686", "0.59694827", "0.590087", "0.5771138", "0.5738341", "0.5709513", "0.57085586", "0.5700877", "0.56949514", "0.56196046", "0.5491989", "0.5476704", "0.5476704", "0.5476704", "0.5476704", "0.5476704", "0.5476704", "0.5476704", "0.5476704", "0.5476704", "0.5476704",...
0.0
-1
Overridden equals method in order to identify the goods already present into the basket.
@Override public boolean equals(Object obj) { if ( this == obj ) { return true; } if ( !(obj instanceof Good) ) { return false; } Good good = (Good) obj; return this.isBaseTaxFree() == good.isBaseTaxFree() && this.isImported() == good.isImported() && this.getDesc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object other) {\n if (this == other) {\n return true;\n }\n if (other == null || getClass() != other.getClass()) {\n return false;\n }\n StockItem<?> stockItem = (StockItem<?>) other;\n return product.equals(stockItem.product);\n }", "@Override\n ...
[ "0.76025176", "0.7523117", "0.72161496", "0.6967872", "0.6913156", "0.691106", "0.6904514", "0.6863326", "0.6823848", "0.6815708", "0.6811056", "0.68071115", "0.6806494", "0.67842907", "0.6767376", "0.6765179", "0.67639613", "0.67551297", "0.6716676", "0.670897", "0.67077684"...
0.63365823
58
returns in the form of a string
public String displayData() { String s = ""; s += super.toString() + "\nNumber of Rentable Units: " + numRentableUnits + "\nAverage Unit Size: " + avgUnitSize + "\nParking Available: " + ((parkingAvailable == true) ? "Y" : "N"); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "Str...
[ "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735", "0.75480735"...
0.0
-1
A data structure which holds the whole set of parameters which affect specific MiXCR action.
@JsonAutoDetect( fieldVisibility = JsonAutoDetect.Visibility.ANY, isGetterVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE) @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @Jso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n // Adding All values to Params.\n // The firs argument should be same sa your MySQL database table columns.\n params.put(\"c...
[ "0.60223985", "0.5871455", "0.5832861", "0.58311033", "0.58253086", "0.57883376", "0.57718986", "0.5764522", "0.5743745", "0.57411546", "0.5726742", "0.5701177", "0.5646927", "0.5643222", "0.56378144", "0.559781", "0.55932784", "0.55614674", "0.55614674", "0.555953", "0.55453...
0.0
-1
Compatible with other configuration
default boolean compatibleWith(Conf other) { return equals(other); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean hasAdditionalConfig() { return true; }", "@Override\n public void checkConfiguration() {\n }", "private void config() {\n\t}", "protected void validateConfiguration() {}", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfigura...
[ "0.69540507", "0.689839", "0.6575768", "0.6450849", "0.6326342", "0.6326342", "0.6326342", "0.6326342", "0.6323441", "0.62658155", "0.62415653", "0.6202698", "0.6198025", "0.6181437", "0.6145275", "0.61248213", "0.61132944", "0.6083049", "0.6043479", "0.60277575", "0.6016601"...
0.66818786
2
Get the json object from the parsed JSON
@Override public BitfinexModel deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { JsonElement bitfinexModel = json.getAsJsonObject(); /** * Deserialize the JsonElement as GSON */ return new Gson().fromJson(bitfin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native Object parse( Object json );", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "private Object readJS...
[ "0.7137311", "0.7095413", "0.68126214", "0.67405474", "0.6664993", "0.66316193", "0.6618292", "0.65513134", "0.6510872", "0.64639896", "0.6435821", "0.63796717", "0.6369709", "0.63554597", "0.63378674", "0.63378674", "0.63378674", "0.63353854", "0.63091093", "0.6302105", "0.6...
0.0
-1
A method to set starting values and reset the process.
public void setValues(boolean[] values) { this.values = Arrays.copyOf(values, values.length); start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetProcessValues() {\n this.maximumchars=0;\n this.maximumtime=0;\n this.currProcessProgressValue=0;\n this.currTimeProgressValue=0;\n this.pbarProcess.setValue(0);\n this.pbarTime.setValue(0); \n }", "public void reset() {\n\t\tthis.startTime = 0...
[ "0.74428654", "0.66450965", "0.64727104", "0.64520544", "0.63994366", "0.6395044", "0.62698513", "0.6262207", "0.625031", "0.6244396", "0.6236841", "0.6223383", "0.6220049", "0.62179595", "0.6178428", "0.6170718", "0.61661166", "0.61524385", "0.61490154", "0.6146559", "0.6143...
0.0
-1
A method to restart the process
public void start() { stack = new Stack<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void restart();", "public void restart() {\r\n\t\tstart();\r\n\t}", "protected void restart() {\r\n\t\tthis.stop();\r\n\t\tthis.start();\r\n\t}", "public void restart()\n\t{\n\t\tstop();\n\t\treset();\n\t\tstart();\n\t}", "@Override\n public void restart() {\n }", "private void resta...
[ "0.83798516", "0.8364677", "0.81806463", "0.81225675", "0.8007125", "0.80057436", "0.7949288", "0.78276193", "0.78274816", "0.7720152", "0.7647777", "0.75401413", "0.74694985", "0.7452986", "0.74012184", "0.73913", "0.73022664", "0.7107076", "0.710202", "0.7082223", "0.706574...
0.0
-1
Returns the evaluation result
public boolean getResult() { if (stack.size() != 1) { throw new IllegalStateException("Stack size mismatch"); } return stack.peek(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Result evaluate();", "float getEvaluationResult();", "String evaluate();", "public String getEvaluate() {\r\n return evaluate;\r\n }", "protected abstract Value evaluate();", "public String getEvaluate() {\n return evaluate;\n }", "public Integer getEvaluate() {\n return eval...
[ "0.8684162", "0.82164735", "0.7905783", "0.75479585", "0.7516329", "0.75128263", "0.7476961", "0.7432914", "0.7405676", "0.7373544", "0.7364137", "0.73351467", "0.7228592", "0.7122765", "0.7089154", "0.7063719", "0.70195955", "0.70068383", "0.69716907", "0.6942436", "0.690583...
0.0
-1
loop = 300 ArrayList.forEach 78ms Stream.forEach 49ms
public static void main(String[] args) { try { int loop = 300; long start = System.currentTimeMillis(); for (int i = 0; i < loop; i++ ) byList(); long t1 = System.currentTimeMillis(); for (int i = 0; i < loop; i++ ) byStream(); long t2 = System.currentTimeMillis(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void doParallelStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doParallelStream(): \" + ans);\n lon...
[ "0.6395078", "0.6233454", "0.61180055", "0.5879164", "0.58349377", "0.58230823", "0.5674038", "0.54666257", "0.54340214", "0.5361127", "0.5333676", "0.53004205", "0.52964497", "0.5210187", "0.5202249", "0.5180822", "0.51435655", "0.5097016", "0.50830203", "0.5079108", "0.5050...
0.5617458
7
Sets the background music volume based on adjuster's location
public static void setVolume(Music backgroundMusic) { backgroundMusic.setVolume((Assets.musicAdjusterBounds.x - 410) / 250); if ((Assets.musicAdjusterBounds.x - 410) / 250 < 0) { backgroundMusic.setVolume(0); Assets.musicAdjusterBounds.x = 410; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateVolume(){\r\n if(currentLoop0) backgroundMusicLoop0.gainControl.setValue(Window.musicVolume);\r\n else backgroundMusicLoop1.gainControl.setValue(Window.musicVolume);\r\n }", "public abstract SoundPlayer setVolume(int volume);", "void setVolume(float volume);", "public void ...
[ "0.786049", "0.67252934", "0.6685018", "0.6549507", "0.65189517", "0.649389", "0.64634067", "0.63867205", "0.6371925", "0.6358745", "0.63450325", "0.63227046", "0.6309211", "0.6265157", "0.62088764", "0.61879194", "0.61874896", "0.6182841", "0.61747676", "0.6162091", "0.61544...
0.767629
1
TODO Autogenerated method stub
@Override public void undo() { }
{ "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
A list of tasks for progress monitor.
private interface WorkPlan { Stage PREINIT = new Stage(Messages.LaunchInitializationProcedure_UPDATE_DEBUGGER_STATE, 0.1f); Stage SET_OPTIONS = new Stage(Messages.LaunchInitializationProcedure_SET_OPTIONS, 1f); Stage LOAD_SCRIPTS = new Stage(Messages.LaunchInitializationProcedure_LOAD_SCRIPTS, 1f); Stag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listAllTasks() {\n System.out.println(LINEBAR);\n if (tasks.taskIndex == 0) {\n ui.printNoItemInList();\n System.out.println(LINEBAR);\n return;\n }\n\n int taskNumber = 1;\n for (Task t : tasks.TaskList) {\n System.out.prin...
[ "0.6939226", "0.6780892", "0.6780892", "0.6780892", "0.67155355", "0.6709719", "0.66562474", "0.66164505", "0.6535252", "0.64994454", "0.64711195", "0.63999677", "0.6388932", "0.637328", "0.63593", "0.62771535", "0.6253341", "0.62359166", "0.62359166", "0.62359166", "0.622942...
0.0
-1
A list of tasks for breakpoint synchronization subprocess.
private interface BreakpointsWorkPlan { Stage ANALYZE = new Stage(null, 1f); Stage REMOTE_CHANGES = new Stage(null, 1f); boolean IS_LAYOUTED = ProgressUtil.layoutProgressPlan(ANALYZE, REMOTE_CHANGES); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Task> getTasks() {\n\t\treturn details.getPendingTasks();\n\t}", "public String[] getTaskList() {\n String[] tasks = {\"export\"};\n\n return tasks;\n }", "@Override\r\n public List getExecutingTask() {\n return null;\r\n }", "public void printTasks() {\...
[ "0.61388063", "0.6087712", "0.5860043", "0.58596843", "0.5820978", "0.57778364", "0.57746726", "0.57611907", "0.5759168", "0.57516897", "0.57428145", "0.56084037", "0.56084037", "0.559597", "0.55800384", "0.55602056", "0.5553479", "0.5534992", "0.5534992", "0.5534992", "0.547...
0.0
-1
The doGet method of the servlet. This method is called when a form has its tag value method equals to get.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOEx...
[ "0.7432514", "0.73521626", "0.7254457", "0.7252173", "0.7243877", "0.72416717", "0.7207163", "0.7207163", "0.7205729", "0.72009903", "0.72009677", "0.71832514", "0.71736676", "0.717088", "0.7159246", "0.71558", "0.71525633", "0.71515167", "0.71400803", "0.7138813", "0.7138813...
0.0
-1
The doPost method of the servlet. This method is called when a form has its tag value method equals to post.
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String service = request.getParameter("service"); if (service.equals("login")) { String inputId = request.getParameter("id"); String password = request.getParameter("pwd"); String ro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, H...
[ "0.7657226", "0.76023036", "0.7524087", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.74691117", "0.7467355", "0.74277", "0.74118495", "0.7402203", "0.738549", "0.7371081", "0.736...
0.0
-1
Notify the start of an element.
public void startElement(int nameCode, int properties) throws XPathException { defaultNamespaceStack.push(startTag.getAttribute(defaultNamespaceCode)); if (emptyStylesheetElement) { depthOfHole++; return; } if (depthOfHole == 0) { String useWhen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void notifyStart();", "protected void notifyStart(\n )\n {\n for(IListener listener : listeners)\n {listener.onStart(this);}\n }", "@Override\n\tpublic void elementStart(float tpf) {\n\t\t\n\t}", "boolean notifyBegin();", "@Override\n\tpublic void startElement(QName qname) {\n\t\t\n\t}", "publ...
[ "0.68187237", "0.64684165", "0.64066994", "0.6318732", "0.6201095", "0.6164195", "0.61489815", "0.61489815", "0.61223865", "0.5833207", "0.5804468", "0.57763153", "0.5715334", "0.5711318", "0.5656053", "0.5640145", "0.5631336", "0.5564341", "0.55610424", "0.5543732", "0.55362...
0.0
-1
Notify a namespace. Namespaces are notified after the startElement event, and before any children for the element. The namespaces that are reported are only required to include those that are different from the parent element; however, duplicates may be reported. A namespace must not conflict with any namespaces alread...
public void namespace(NamespaceBinding nsBinding, int properties) throws XPathException { if (depthOfHole == 0) { nextReceiver.namespace(nsBinding, properties); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setNamespace(java.lang.String namespace);", "abstract XML addNamespace(Namespace ns);", "private void emitNS(Namespace namespace) throws SAXException {\n if (namespace.getPrefix() == null || \n namespace.getNamespaceURI() == null) return;\n handler.startPrefixMapping(namespace...
[ "0.5960618", "0.5951807", "0.5831461", "0.5654378", "0.564697", "0.56038177", "0.55819327", "0.55818784", "0.55561125", "0.5395295", "0.5395295", "0.53897667", "0.53621256", "0.53559494", "0.5347548", "0.5346204", "0.5300705", "0.52980006", "0.529481", "0.5195637", "0.5185931...
0.5119602
24
Notify an attribute. Attributes are notified after the startElement event, and before any children. Namespaces and attributes may be intermingled.
public void attribute(int nameCode, CharSequence value) throws XPathException { if (depthOfHole == 0) { nextReceiver.attribute(nameCode, value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attributeAdded(Component component, String attr, String newValue);", "@Override\n public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {\n\n }", "XomNode appendAttribute(Attribute attribute) throws...
[ "0.5639551", "0.5568343", "0.54679304", "0.5424787", "0.54193026", "0.5410082", "0.53903294", "0.5381177", "0.536694", "0.5366002", "0.5356253", "0.53507537", "0.53507537", "0.53507537", "0.53507537", "0.53507537", "0.53507537", "0.53507537", "0.53507537", "0.53507537", "0.53...
0.0
-1
Notify the start of the content, that is, the completion of all attributes and namespaces. Note that the initial receiver of output from XSLT instructions will not receive this event, it has to detect it itself. Note that this event is reported for every element even if it has no attributes, no namespaces, and no conte...
public void startContent() throws XPathException { if (depthOfHole == 0) { nextReceiver.startContent(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startContent() throws XPathException {\r\n nextReceiver.startElement(elementNameCode, elementProperties);\r\n\r\n final int length = bufferedAttributes.getLength();\r\n for (int i=0; i<length; i++) {\r\n nextReceiver.attribute(bufferedAttributes.getNameCode(i),\r\n ...
[ "0.71910566", "0.6121953", "0.609153", "0.5992236", "0.5934238", "0.5873892", "0.5814945", "0.5800353", "0.5740324", "0.57257277", "0.5706173", "0.56947345", "0.5672548", "0.5672548", "0.5672548", "0.5654781", "0.5641436", "0.5634116", "0.5629872", "0.5629038", "0.562608", ...
0.620784
1
Evaluate a usewhen attribute
public Expression prepareUseWhen(String expression, UseWhenStaticContext staticContext, SourceLocator sourceLocator) throws XPathException { // TODO: The following doesn't take account of xml:base attributes staticContext.setBaseURI(sourceLocator.getSystemId()); staticContext.setDefaultElemen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface When {\r\n \t/** Returns the condition. In a \"when x then a\" clause\r\n * the condition is \"x\".\r\n \t */\r\n public Object getCondition();\r\n /** Returns the value. In a \"when x then a\" clause\r\n * the condition is \"a\".\r\n */\r\n publi...
[ "0.5473915", "0.5104786", "0.50544494", "0.49978736", "0.48645696", "0.4862133", "0.48111165", "0.4730599", "0.4719357", "0.46849436", "0.46846905", "0.46799564", "0.46738032", "0.46685958", "0.46396855", "0.46328995", "0.45842463", "0.4524507", "0.4473879", "0.44710547", "0....
0.4535452
17
Get the Password for the specified User.
public String getPassword(final String username) { final Login login = this.getLogin(username); if (login != null) { return login.getPassword(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserPassword(String user) {\r\n return userInfo.get(user);\r\n }", "public String getUserPassword() {\n return sp.getString(USER_PASSWORD, null);\n }", "public String getUserPassword() {\r\n return userPassword;\r\n }", "public String getUserPassword() {\n\t\treturn us...
[ "0.7778568", "0.73542356", "0.7080851", "0.7045912", "0.7037724", "0.69499284", "0.6906488", "0.67771405", "0.67771405", "0.67771405", "0.67771405", "0.67771405", "0.67771405", "0.67771405", "0.66603696", "0.6629141", "0.66082585", "0.6574305", "0.656453", "0.6556471", "0.648...
0.0
-1
Gets the Email address for the specified User.
public String getEmailForUser(final String username) { final Login login = this.getLogin(username); if (login != null) { return login.getEmail().getEMailAddress(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getEmailAddress(final IUser iUser) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<String>() {\r\n public String call() {\r\n try {\r\n return iUser.getEMailAddress();\r\n } catch (Exception e) {\r\n ...
[ "0.7931351", "0.76202774", "0.7607178", "0.7415217", "0.7389014", "0.70532787", "0.697489", "0.696721", "0.6911454", "0.69070995", "0.6878502", "0.67368394", "0.6684417", "0.6649115", "0.6649115", "0.66140723", "0.6574819", "0.6574819", "0.6574819", "0.6574819", "0.6574819", ...
0.6776902
11
Create a new User with the specified Details.
public Login createUser(final String username, final String password, final String eMailAddress) { Login login = this.getLogin(username); if (login == null) { this.em.getTransaction().begin(); EmailAddress email = this.getEmail(eMailAddress); if (email == null) { email = new EmailAddress(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCreateResponse createUser(UserCreateRequest request);", "public void createUser(User user);", "User createUser(UserCreationModel user);", "@RequestMapping(value=\"/user\",method=RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity<User> createUser(@RequestBody User userDetails) throws Exception{\n\...
[ "0.7293201", "0.7277909", "0.72533864", "0.7251478", "0.72207373", "0.72053385", "0.720273", "0.70521086", "0.69825715", "0.6944219", "0.6906152", "0.69029266", "0.67160296", "0.66906106", "0.66837496", "0.6654111", "0.66440207", "0.6629886", "0.6617595", "0.6603193", "0.6565...
0.0
-1
Removes the User Login.
public boolean removeLogin(final String username) { final Login login = this.getLogin(username); return this.removeFromDB(login); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\...
[ "0.7940448", "0.7878204", "0.78675175", "0.77729475", "0.777228", "0.76794684", "0.7633124", "0.7294208", "0.7244626", "0.71232283", "0.7087659", "0.70829046", "0.70610243", "0.6963236", "0.6955674", "0.6902211", "0.68552977", "0.6831034", "0.681415", "0.68130755", "0.6765597...
0.0
-1
Changes the login password.
public boolean changePassword(final Login login, final String password) { if (login != null) { this.em.getTransaction().begin(); login.setPassword(password); this.em.persist(login); this.em.getTransaction().commit(); return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPassword(java.lang.String newPassword);", "public void setPassword(String pass);", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;...
[ "0.8416757", "0.79155153", "0.78958", "0.78958", "0.78958", "0.7848897", "0.77934706", "0.7700778", "0.7693338", "0.7689644", "0.76506895", "0.75897413", "0.75887775", "0.75677687", "0.7566675", "0.7541383", "0.7499407", "0.7452246", "0.74507535", "0.74431515", "0.7437936", ...
0.0
-1
Gets existing Email address.
private EmailAddress getEmail(final String mail) { return (EmailAddress) this.getSingleResult(this.em.createNativeQuery("select * from emailaddress WHERE eMailAddress ='" + mail + "'", EmailAddress.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getEmailAddress();", "@Override\n public String getEmailAddress() {\n\n if(this.emailAddress == null){\n\n this.emailAddress = TestDatabase.getInstance().getClientField(token, id, \"emailAddress\");\n }\n\n return emailAddress;\n }", "java.lang.Stri...
[ "0.75731987", "0.74436414", "0.73706967", "0.73706967", "0.73706967", "0.73706967", "0.73706967", "0.73706967", "0.71586204", "0.7150981", "0.7104957", "0.71021837", "0.7084952", "0.7074569", "0.7065647", "0.70646036", "0.7026576", "0.7026576", "0.7026576", "0.7022", "0.70210...
0.70280474
16
if the list isnt full, just add the new rl
public void bindTexture(ResourceLocation rl) { if(this.list.size() >= this.size) { // list is already full // if its already in, remove it (itll be re-added in front) // else remove the last one Iterator<ResourceLocation> it = this.list.it...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appendInPlace (List l) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = l.myHead;\n\t\t\tmySize = l.mySize;\n\t\t\tmyTail = l.myTail;\n\t\t}\n\t\telse if (l.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = l.myHead;\n\t\t\tmyTail = l.myTail;\n\t\t\tmySize += l.mySize;\n\t\t}\n\t}", "...
[ "0.61429197", "0.5937989", "0.5835769", "0.57074994", "0.56839406", "0.5653489", "0.56395626", "0.5638845", "0.5621099", "0.5617045", "0.5612037", "0.5589091", "0.5572618", "0.5548822", "0.55041987", "0.54952544", "0.548495", "0.54847026", "0.54815", "0.5480201", "0.5476285",...
0.57217234
3
public static Session mSession; shared methods
public static void setShared(Context context, String name, String value) { SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(context); SharedPreferences.Editor editor = prefs.edit(); editor.putString(name, value); editor.commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "public static Session getSession() {\n return...
[ "0.78116316", "0.7752096", "0.77089953", "0.7694417", "0.7624708", "0.75686747", "0.75292903", "0.7449781", "0.7443012", "0.7357273", "0.7357273", "0.7339129", "0.7337273", "0.7318659", "0.7310595", "0.7309475", "0.7303222", "0.7270167", "0.72557354", "0.72557354", "0.7251212...
0.0
-1
For moderate walking: Calories burned = 0.029 x weight (lbs) x time (minutes)
public static float caloriesBurnedForWalking(float weight, long steps) { float caloriesBurned; // caloriesBurned = (float) ((0.029 * kgToLbs(weight)) * (walkingStepsToSecond(steps) / 60)); caloriesBurned = (float) ((0.75 * kgToLbs(weight)) * kmToMiles(steps)); return caloriesBurned; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void caloriesBurned(int weight)\n {\n System.out.println(\"No more losers\");\n }", "int getBurnDuration();", "private void calcCalories()\n\t{\n\t\tif (getIntensity() == 1)\n\t\t{\n\t\t\tbikeCal = 10 * bikeTime; \n\t\t}\n\t\telse if (getIntensity() == 2)\n\t\t{\n\t\t\tbikeCal = 14....
[ "0.72555465", "0.6480095", "0.61732", "0.6164795", "0.6155793", "0.6093818", "0.60566866", "0.5991033", "0.5957347", "0.5897633", "0.58722967", "0.5868215", "0.5865676", "0.5865551", "0.58552575", "0.5832105", "0.5803429", "0.5787055", "0.5772592", "0.575299", "0.57523376", ...
0.74671006
0
/ Calculating kilometer to miles using total steps
public static float kmToMiles(long steps){ float miles; float distance = (float) (steps * 78) / (float) 100000; miles = (float) (distance / 1.609344); return miles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void f_kilometers_to_miles(){\n Scanner keyboard = new Scanner(System.in);\r\n\r\n System.out.println(\"Input the value in km: \");\r\n double km = keyboard.nextDouble();\r\n\r\n while (km < 1){\r\n System.err.println(\"Error: invalid value\");\r\n\r\n ...
[ "0.7412972", "0.7326079", "0.71208596", "0.6827809", "0.67369956", "0.6734108", "0.66923964", "0.66903746", "0.66309726", "0.6623946", "0.65940773", "0.6566053", "0.6557775", "0.6494317", "0.6451833", "0.64512175", "0.6419199", "0.63796055", "0.6316893", "0.62792647", "0.6275...
0.83151037
0
/ this function returning seconds of steps
public static double walkingStepsToSecond(int steps) { //Walking or pushing a wheelchair at a moderate pace: 1 mile in 20 minutes = 2,000 steps double oneStepTime = 0.6;//one step taking in 1.6 second double timeOfSteps; timeOfSteps = oneStepTime * steps; return timeOfSteps; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double runningStepsToSecond(int steps) {\n double oneStepTime = 0.6;//one step taking in 1.6 second\n double timeOfSteps;\n timeOfSteps = oneStepTime * steps;\n return timeOfSteps;\n }", "public static double getTimeStep(Cell[] cells){\n return cells[0].dx / Ma...
[ "0.75882363", "0.69484985", "0.6914485", "0.69111866", "0.68975073", "0.674397", "0.6742501", "0.67259747", "0.67001647", "0.6678203", "0.66775906", "0.6659313", "0.6599609", "0.65844274", "0.65825766", "0.65696", "0.656205", "0.6546356", "0.65252227", "0.6516115", "0.6497178...
0.74131465
1
Walking or pushing a wheelchair at a moderate pace: 1 mile in 20 minutes = 2,000 steps
public static double runningStepsToSecond(int steps) { double oneStepTime = 0.6;//one step taking in 1.6 second double timeOfSteps; timeOfSteps = oneStepTime * steps; return timeOfSteps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void move()\n\t{\n\t\tswitch(step)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 1;\n\t\t\tbreak;\n\t\t\t// 1. Right wheels forward\n\t\t\tcase 1:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, .5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t...
[ "0.6623239", "0.6607846", "0.6540818", "0.64688325", "0.6424186", "0.6334533", "0.63144183", "0.629859", "0.62885576", "0.62177765", "0.62070465", "0.61865175", "0.61534", "0.6139597", "0.61168164", "0.6109913", "0.6108247", "0.6083038", "0.6081055", "0.6072585", "0.60247916"...
0.0
-1
/ Method to generate date format
public static String yyyymmdddToddmmyyyy(String strDate) { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); Date date = null; try { date = (Date) formatter.parse(strDate); } catch (ParseException e) { e.printStackTrace(); } SimpleDateForm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String generateDate()\r\n\t{\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat datef = new SimpleDateFormat(\"YYYY_MM_dd_ss\");\r\n\t\treturn datef.format(d);\r\n\r\n\r\n\t}", "private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new...
[ "0.75041425", "0.74634624", "0.6997567", "0.6964883", "0.6949486", "0.6874352", "0.6833352", "0.6799016", "0.6768548", "0.675916", "0.67423743", "0.673838", "0.6691687", "0.6686591", "0.66811264", "0.6676312", "0.6676181", "0.66756415", "0.6649506", "0.6640879", "0.6625701", ...
0.0
-1
/ Method to generate date format
public static String ddmmyyyyToyyyymmddd(String strDate) { DateFormat formatter = new SimpleDateFormat("dd-MM-yyyy"); Date date = null; try { date = (Date) formatter.parse(strDate); } catch (ParseException e) { e.printStackTrace(); } SimpleDateForm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String generateDate()\r\n\t{\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat datef = new SimpleDateFormat(\"YYYY_MM_dd_ss\");\r\n\t\treturn datef.format(d);\r\n\r\n\r\n\t}", "private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new...
[ "0.7503134", "0.746317", "0.6996606", "0.69656557", "0.69491184", "0.6874751", "0.6832876", "0.6799601", "0.6768501", "0.67567694", "0.6743179", "0.6739648", "0.6692076", "0.6685554", "0.66803885", "0.6678598", "0.6676745", "0.6675119", "0.66512686", "0.66408867", "0.6626235"...
0.0
-1
Method to Hide Soft Input Keyboard
public static void HideKeyboardMain(Activity mContext, View view) { try { InputMethodManager imm = (InputMethodManager) mContext .getSystemService(Context.INPUT_METHOD_SERVICE); // R.id.search_img imm.hideSoftInputFromWindow(view.getWindowToken(), 0); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void hideSoftKeyBoard();", "public void hideKeyboard(){\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\tinputMethodManager.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\n\t}", "public void hideKeyboard()...
[ "0.86636037", "0.85031563", "0.83705765", "0.82356054", "0.82160866", "0.805925", "0.8058099", "0.8050618", "0.800639", "0.78253007", "0.78250045", "0.78161705", "0.7791941", "0.7786556", "0.776499", "0.7762368", "0.775248", "0.7732237", "0.7732237", "0.77285445", "0.77259576...
0.6777176
55
Empty interface declaration, similar to UiBinder
interface Driver extends RequestFactoryEditorDriver<PersonProxy, PersonEditor> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EmptyInterface {}", "interface UiBinderInstance extends UiBinder<Widget, Menu> {\r\n\t\t// Nothing to do\r\n\t}", "@Override\n public boolean isInterface() { return false; }", "public interface EmptyView extends BaseView {\n}", "public interface ApiHandler {\n // Empty\n}", "public...
[ "0.7487416", "0.72910595", "0.70813364", "0.69612104", "0.655957", "0.64811164", "0.63811904", "0.6365123", "0.6365123", "0.6299724", "0.62910783", "0.62888217", "0.62512255", "0.6245274", "0.6185288", "0.6179152", "0.6177671", "0.61749953", "0.6173776", "0.6169413", "0.61669...
0.0
-1
PersonEditor is a DialogBox that extends Editor PersonEditor editor = new PersonEditor(); Initialize the driver with the toplevel editor
public void edit(PersonProxy personProxy, PersonRequest request) { driver.initialize(requestFactory, personEditor); // personEditor.editPersonProxy(personProxy); // Copy the data in the object into the UI driver.edit(personProxy, request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EditorDriver() {\r\n\t\tgui = new GUI(this);\r\n\t\treadingInputPath = true;\r\n\t\tinputFileFound = false;\r\n\t\teditor = new Editor();\r\n\t\tgui.println(IN_FILE_PROMPT);\r\n\t}", "public Editor getEditor() { return editor; }", "public void setEditor(Editor editor)\n {\n this.editor = edito...
[ "0.69010323", "0.6743957", "0.6616054", "0.6532404", "0.6506336", "0.63762486", "0.63578814", "0.6330309", "0.62972885", "0.6296153", "0.62680304", "0.6254306", "0.6232905", "0.6220628", "0.62199193", "0.62039584", "0.6202664", "0.61862266", "0.61439943", "0.61229527", "0.612...
0.0
-1
Setter for the field order.
public void setOrder(int order) { this.order = order; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFieldOrder(java.lang.Integer fieldOrder) {\n this.fieldOrder = fieldOrder;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrder(int order) {\n mOrder = order;\n }", "public void setOrder(int value) {\n this.order = value;\n ...
[ "0.78692526", "0.73496455", "0.73266643", "0.730296", "0.7165419", "0.71167785", "0.7030805", "0.7030805", "0.6955363", "0.691408", "0.6876311", "0.6867472", "0.67966616", "0.6734956", "0.66894513", "0.660359", "0.6591337", "0.65901476", "0.6586484", "0.6575569", "0.6575569",...
0.7129695
6
Newly added method to fetch root area by name
public RootArea getAssessmentDataByRootArea(String name) { RootArea rootAreas = assessmentDao.getRootAreaByName(name); return updateWithCategories(rootAreas); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRoot();", "java.lang.String getRoot();", "String getRootAlias();", "public SafetyNetArea findAreaByName(String typeId, String name) {\n try {\n return em.createNamedQuery(\"SafetyNetArea.findByName\", SafetyNetArea.class)\n .setParameter(\"typeId\", typeI...
[ "0.63618", "0.60349375", "0.5970584", "0.5941243", "0.5884879", "0.58635926", "0.58226377", "0.5673913", "0.5663355", "0.56374836", "0.56320167", "0.5584675", "0.5579623", "0.5578262", "0.55682266", "0.55682266", "0.5566689", "0.554884", "0.554884", "0.55445516", "0.5524633",...
0.6554062
0
fetch testId for a assessment
public Project saveAssessmentData(ResponseAssessment response) { long testId = assessmentDao.getTestId(response.getProjectId()); // check whether the assessment of that project has been started, if // testId=0 start test for that project if (testId == 0) { assessmentDao.beginAssessment(response.getProjectId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Assessment getTest(Long assessmentId);", "private int getTestId(String testName) {\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tStatement statement = dbConnection.createStatement();\r\n\t\t\tResultSet resultSet = statement.executeQuery(\"select id_test from tests where name = '\" + testName + \"'\");\r\n\r\n\t\t\ti...
[ "0.7447649", "0.73407346", "0.68354493", "0.68102956", "0.6722879", "0.652059", "0.652059", "0.6456018", "0.62766266", "0.6266398", "0.6260394", "0.62394685", "0.61348504", "0.60698485", "0.6067091", "0.6043718", "0.6025673", "0.5978743", "0.5941024", "0.59299445", "0.5864436...
0.0
-1
Newly added method to fetch questions by subcat
public List<Question> getQuestionBySubCat(long project_key, String subcat_name) { List<Question> question_subcat = assessmentDao.getSubCategoryQuestion(subcat_name); long subCatId = assessmentDao.getSubCatID(subcat_name); List<Question> question_checked_subcat = assessmentDao.getCheckedQuestionSubCat(project_key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Question> getQuestions();", "public static List<Question> getAllCategoryQuestions(Category cat) {\n List<Question> questions = getQuestions(); //get all the questions\n List<Question> categoryQuestions = new ArrayList<Question>(); //make new list of questions\n for (Questio...
[ "0.6351466", "0.62942266", "0.6090655", "0.60417324", "0.6041002", "0.6038033", "0.60167545", "0.5925638", "0.58299416", "0.580121", "0.5799497", "0.5761837", "0.5745594", "0.5717987", "0.5609953", "0.56011415", "0.5557441", "0.5536663", "0.55302584", "0.5514998", "0.5511217"...
0.70494723
0
BEGIN ASSESSMENT FOR A PARTICULAR PROJECT
public void beginAssessment(long projectKey) { assessmentDao.beginAssessment(projectKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String enableSubmission(ISubmissionProject project);", "@Given(\"I am on the Project Contact Details Page\")\n public void i_am_on_the_project_contact_details_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n i_click_on_create_a_new_project();\n\n }", "@Given(\"I...
[ "0.5684146", "0.5446297", "0.53903496", "0.5255106", "0.51939875", "0.5192381", "0.51816565", "0.5177657", "0.51210904", "0.50802714", "0.5047701", "0.502872", "0.50188696", "0.50141937", "0.5008606", "0.4999958", "0.49949703", "0.49855492", "0.49561772", "0.49518657", "0.495...
0.6409376
0
Fetch all the responseID's for a particular test
public void deleteAssessmentData(long testId) { List<Long> responseID = assessmentDao.getresponseDetails(testId); // Delete data from response_details assessmentDao.deleteresponseDetails(testId); // Delete maturity_level for the subCategory assessmentDao.deleteMaturityLevel(testId); // Delete user comm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "QuestionResponse getResponses(String questionId);", "public List<ATWResponse> findResponsesByRequestId(int requestID) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ATWResponse> list = entityManager.createQuery(findByRequestID)\n\t\t\t.setParameter(1, requestID)\n\t\t\t.getResultList();\n\t\tif(list != null)...
[ "0.6302573", "0.60518396", "0.60197467", "0.5820172", "0.5540852", "0.5436802", "0.53405404", "0.52931505", "0.5287845", "0.5284819", "0.5256325", "0.5250213", "0.5204007", "0.5150103", "0.51355976", "0.51200455", "0.5113841", "0.51048726", "0.50984913", "0.5086291", "0.50751...
0.0
-1
TODO Autogenerated method stub
public long getTestId(long projectKey) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO: process events streams.
public void processEvents(Events events) { log.info("events processed: [{}]", events.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void processPostUpdateStream(KStream<String, Event> events) {\n\n\t}", "public void onEvent(EventIterator events) {\n\n }", "private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n ...
[ "0.6635342", "0.6351796", "0.6316445", "0.6113624", "0.60850376", "0.5963354", "0.59587586", "0.5951416", "0.59443796", "0.59423655", "0.5891838", "0.58620906", "0.58179116", "0.5790378", "0.57768685", "0.5764941", "0.57530177", "0.5752212", "0.5740987", "0.5730013", "0.57280...
0.61992985
3
TODO Autogenerated method stub /Session session = HibernateSessionFactory.getSession();
@Override public boolean mayILogin(Account account) { Session session = sf.openSession(); Query query = session.createQuery("from cn.edu.shou.staff.model.Account acc" + " where acc.uname=:u and acc.passwd=:v"); query.setString("u", account.getUname()); query.setString("v", account.getPasswd()); List list...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Session getHibernateSession() throws AuditException {\r\n return this.session;\r\n }", "private Session fetchSession()\n\t{\n\t\t\tlog.info (\"******Fetching Hibernate Session\");\n\n\t\t\tSession session = HibernateFactory.currentSession();\n\n\t\t\treturn session;\n\t \n\t}", "private void get...
[ "0.7558685", "0.7246871", "0.7109646", "0.69337845", "0.68741673", "0.6838103", "0.68302643", "0.6795783", "0.6794662", "0.6794662", "0.67622256", "0.67577857", "0.6732876", "0.6715324", "0.6712149", "0.67057735", "0.670081", "0.66732264", "0.667322", "0.6658591", "0.6638547"...
0.0
-1
Get predicate argument number.
public String getArguments() { return key.getArguments(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getArgIndex();", "public int getNumArg() {\n\t\treturn numArg;\n\t}", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "int getNumberOfArguments();", "public int getNumArgs()\n {\n return numArgs;\n }", "public...
[ "0.6751307", "0.670114", "0.6163021", "0.6163021", "0.6163021", "0.6163021", "0.6163021", "0.6154509", "0.612607", "0.6066529", "0.5795374", "0.57486284", "0.5740171", "0.56446886", "0.5633688", "0.5525905", "0.552134", "0.552134", "0.55070215", "0.5501808", "0.5499097", "0...
0.0
-1
Get complete defining formula. Includes predicate itself.
public ElementList getCompleteFormula() { return completeFormula; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ElementList getDefiningFormula() {\r\n return definingFormula;\r\n }", "public dFormula asFormula() {\n\t\treturn new ElementaryFormula(0, phonstringCondition);\n\t}", "public TypeFormula getFirstFormula ( ) ;", "public IComplexFormula getFormula(){\r\n\t\treturn formula;\r\n\t}", "public ...
[ "0.754526", "0.7021626", "0.66731334", "0.65617347", "0.6388536", "0.6388536", "0.6374946", "0.6359868", "0.6351609", "0.62559766", "0.6073662", "0.6056319", "0.5949453", "0.5806726", "0.5637626", "0.5603342", "0.5567119", "0.55445063", "0.5485526", "0.54241884", "0.5405645",...
0.65827173
3
Get context where the complete formula is.
public ModuleContext getContext() { return context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(...
[ "0.6210763", "0.6207516", "0.60683036", "0.60363394", "0.60226715", "0.60226715", "0.60226715", "0.6022297", "0.6016256", "0.5996835", "0.5964", "0.5935067", "0.5935067", "0.5935067", "0.5895609", "0.57797503", "0.57220256", "0.57190937", "0.5704366", "0.56501406", "0.5647870...
0.54121006
40
Get predicate with parameters.
public ElementList getPredicate() { return predicate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Predicate<Method> getPredicate();", "public Predicate getPredicate() {\n\t\treturn pred;\n\t}", "GeneralPredicate createGeneralPredicate();", "public PredicateOperator getOperator();", "IEmfPredicate<R> getPredicateEditable();", "public QueryIterable<T> where(\n final Func2<Boolean, T> predica...
[ "0.6682662", "0.62029374", "0.6196402", "0.604109", "0.59906995", "0.5961788", "0.5912529", "0.5780496", "0.57800835", "0.5747002", "0.56488377", "0.56212777", "0.5567709", "0.5557264", "0.55456257", "0.55256385", "0.55147463", "0.5506613", "0.55047846", "0.5502743", "0.54572...
0.6336351
1