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
TODO Autogenerated method stub
@Override public double getCourse() { return this.course; }
{ "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 double getAccuracy() { return this.accuracy; }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public String getImei() { return this.imei; }
{ "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
Prints file filename on the specified printer
String queue(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void print(String fileName);", "public void handlePrintFile (File printFile) {\n // not supported\n }", "public TextFilePrinter getPrinter();", "@Override\n\tpublic void printToFile() {\n\t\t\n\t}", "private void printFile(Products print, String ufilename) {\n\t\tFile file = new File(\"outp...
[ "0.72967017", "0.7263155", "0.67796093", "0.6748892", "0.6559939", "0.643107", "0.6337168", "0.6332935", "0.6265053", "0.6255915", "0.62507284", "0.61642814", "0.61582726", "0.61327034", "0.6130371", "0.6063444", "0.6056333", "0.60505605", "0.60309505", "0.6029211", "0.590810...
0.0
-1
Lists the print queue on the user's display in lines of the form
void topQueue(int job, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void display() {\n System.out.println();\t \n System.out.println(\"Contents of the queue are: \" + queue);\n }", "public void printQueue();", "private void print() {\n\t\t// reorganize a wraparound queue and print\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(bq[(h...
[ "0.7664119", "0.7304243", "0.7283147", "0.7213885", "0.69627464", "0.6935859", "0.6917396", "0.6901107", "0.676931", "0.6768247", "0.6746182", "0.6722076", "0.65688574", "0.6567605", "0.6481884", "0.6459196", "0.6352797", "0.6324792", "0.6286733", "0.6234038", "0.6203158", ...
0.0
-1
Moves job to the top of the queue
void start(SignedObject accessToken) throws RemoteException, AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void topQueue(int job, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "public void requeue() {\n\t\tenqueue(queue.removeFirst());\n\t}", "public void moveJob(String from, String to, JobInProgress job) {\n synchronized (queues) {\n removeJob(from, job);\n ...
[ "0.67479634", "0.6522244", "0.64959234", "0.6485267", "0.63780534", "0.6209653", "0.6141968", "0.60765046", "0.5989635", "0.5974804", "0.59671175", "0.59427893", "0.5922686", "0.58615637", "0.5839452", "0.58095706", "0.5796054", "0.5793218", "0.5781505", "0.57772785", "0.5743...
0.0
-1
Starts the print server
void stop(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }", "public static void main(String[] args) throws Exception {\n Registry registry = LocateRegistry.createRegistry(8080);\n registry.rebind(\"print\", new PrintServant...
[ "0.7173449", "0.7051298", "0.70201546", "0.6883264", "0.6642842", "0.650467", "0.6485156", "0.6434597", "0.63584", "0.6330901", "0.6301055", "0.6299174", "0.6240823", "0.6227169", "0.62187475", "0.61942184", "0.6159348", "0.61251044", "0.6124158", "0.611795", "0.6110214", "...
0.0
-1
Stops the print server
void restart(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop()\n {\n printerSimulator.stop();\n }", "public void stop() {\n server.stop();\n }", "public void stop() {\n System.err.println(\"Server will stop\");\n server.stop(0);\n }", "public void kill() {\n this.server.stop();\n }", "public void sto...
[ "0.75247675", "0.6946973", "0.6920846", "0.6838059", "0.68364197", "0.67652375", "0.6628818", "0.65608835", "0.6542845", "0.6539217", "0.65249056", "0.6476735", "0.64593804", "0.6451485", "0.6420975", "0.6420975", "0.6420975", "0.6420975", "0.6420975", "0.6420975", "0.6420975...
0.0
-1
Stops the print server, clears the print queue and starts the print server again
String status(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop()\n {\n printerSimulator.stop();\n }", "public void kill() {\n this.server.stop();\n }", "public void cancelPendingPrintJobs()\n {\n printerSimulator.cancelPendingPrintJobs();\n }", "public void stop() {\n System.err.println(\"Server will stop\");\n ...
[ "0.6339243", "0.6190777", "0.61619043", "0.60955316", "0.6024417", "0.5998965", "0.5943718", "0.59162337", "0.58742", "0.58701223", "0.5809809", "0.5770258", "0.5714973", "0.56946564", "0.5694596", "0.56897265", "0.56868386", "0.5644489", "0.5641269", "0.56332844", "0.5589894...
0.0
-1
Prints status of printer on the user's display
String readConfig(String parameter, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void PrinterStatus(){\n PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);\n System.out.println(\"Printer Services found:\");\n printService(services);\n\n // Look up the default print service\n PrintService service = PrintServiceLookup.lookupDef...
[ "0.7786165", "0.7508936", "0.7141271", "0.68235695", "0.66973126", "0.6619973", "0.6571195", "0.6531662", "0.64871866", "0.6481476", "0.6472766", "0.64598566", "0.6440881", "0.64309746", "0.64013594", "0.64007384", "0.63832676", "0.6365001", "0.63308674", "0.63247514", "0.631...
0.0
-1
Prints the value of the parameter on the user's display
void setConfig(String parameter, String value, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print(String value){\r\n System.out.println(value);\r\n }", "String displayValue();", "private void display(int key, String value)\n {\n System.out.println(\"Value for id \" + key + \": \" + value);\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \...
[ "0.7151394", "0.7103031", "0.68703413", "0.68486965", "0.67372197", "0.6559592", "0.65085137", "0.6503019", "0.6474397", "0.63751656", "0.63550466", "0.6352901", "0.6281043", "0.6271309", "0.6261906", "0.62584484", "0.6240749", "0.6240662", "0.622824", "0.62014663", "0.613871...
0.0
-1
Sets the parameter to value
SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setParameter(String name, String value);", "void setParameter(String name, Object value);", "public void setParameter(String parName, Object parVal) throws HibException ;", "public void setParamValue(String label, Object value);", "public void setParam(String paramName, String value);", "public void...
[ "0.8290172", "0.82308066", "0.77778304", "0.77070886", "0.7667578", "0.7484462", "0.7482145", "0.7434821", "0.73726547", "0.7372618", "0.73444337", "0.72847116", "0.72552186", "0.72343206", "0.7199056", "0.71952456", "0.7183217", "0.71587443", "0.71372837", "0.71299183", "0.7...
0.0
-1
is all permission granted
public boolean isAllGranted(){ //PackageManager.PERMISSION_GRANTED return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "boolean isHasPermission...
[ "0.74685246", "0.7384624", "0.71178144", "0.6997212", "0.69577706", "0.695398", "0.69473916", "0.6915095", "0.68851703", "0.6837757", "0.68367547", "0.6835005", "0.6794339", "0.67865336", "0.67582583", "0.6752951", "0.6737648", "0.67375267", "0.67313945", "0.6728051", "0.6671...
0.8236009
0
Boolean flag = true;
@PostMapping("/addAskQuestion") @ApiOperation(value = "你问我答新增") public DataResult<List<AskAnswer>> askQuestion(AskQuestionVo para){ DataResult<List<AskAnswer>> result = DataResult.success(); try { List<AskAnswer> loginReturn = qAndAService.askQuestion(para); result.setDat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getFlag() {\n return flag;\n }", "public boolean getFlag(){\n\t\treturn flag;\n\t}", "public void setFlag(Boolean flag) {\n this.flag = flag;\n }", "public boolean getFlag() {\n\t\treturn flag;\n\t}", "int getFlag();", "boolean hasFlag();", "public int getFlag()\n ...
[ "0.7609314", "0.7527424", "0.7455148", "0.7145097", "0.7133716", "0.710073", "0.6997587", "0.69716644", "0.69716644", "0.688908", "0.6833927", "0.6833927", "0.6811248", "0.67949516", "0.67920464", "0.67747825", "0.67363775", "0.672606", "0.6681078", "0.66430193", "0.66256833"...
0.0
-1
Double as Math.pow(2,i) returns a double this is casted as an int when returning
private int minusExpoBaseTwo(int order){ double cnt = 0; //This allows us to add the exponatials together whilst decreasing the power each time effectively making 2^(order) + 2^(order-1)....until order equals 1 for(int i = order;i>0;i--){ cnt = cnt + Math.pow(2, i); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static double powerOfTwoD(int n) {\n return Double.longBitsToDouble((((long)n + (long)DoubleConsts.MAX_EXPONENT) <<\n (DoubleConsts.SIGNIFICAND_WIDTH-1))\n & DoubleConsts.EXP_BIT_MASK);\n }", "public double pow(double base, do...
[ "0.6890231", "0.65971494", "0.65197974", "0.6486254", "0.6448677", "0.63766897", "0.6317729", "0.6266468", "0.6261335", "0.6232478", "0.62062305", "0.61689216", "0.6168187", "0.6165972", "0.6122576", "0.6118391", "0.6116591", "0.60729647", "0.59536254", "0.5949068", "0.593450...
0.554487
58
This method was created because concat of the root nodes state, e which is a symbol for nothing, and 1 ends up as e1 instead of 1
private String concat(String concat, String orignalState){ if(orignalState.equals("e")){ return concat; } else{ return concat.concat(orignalState); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prefix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \tif (root.left != null) // if...
[ "0.57145226", "0.5502196", "0.5498679", "0.5436161", "0.542287", "0.54212195", "0.54060715", "0.5398688", "0.53869426", "0.5374502", "0.5348409", "0.5341991", "0.53412074", "0.5331431", "0.53106207", "0.530623", "0.5291299", "0.5286828", "0.52836883", "0.5261261", "0.5257846"...
0.0
-1
This method was created because the above version returns it the wrong way round for certain operations
private String concatReverse(String orignalState, String concat){ if(orignalState.equals("e")){ return concat; } else{ return orignalState.concat(concat); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n protected Integer compute() {\n\n\n return null;\n }", "public abstract long mo9229aD();", "@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n...
[ "0.58334404", "0.55837655", "0.53527653", "0.5307468", "0.5137638", "0.51033616", "0.5080727", "0.50796235", "0.50743103", "0.5060139", "0.50422287", "0.501356", "0.49839452", "0.49652708", "0.49621218", "0.49614185", "0.4960366", "0.49182707", "0.49142662", "0.49108392", "0....
0.0
-1
This method was created because the above version returns it the wrong way round for certain operations
private String concatReverse(String orignalState, char concat){ String stringChar = ""; stringChar += concat; if(orignalState.equals("e")){ return stringChar; } else{ return orignalState.concat(stringChar); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n protected Integer compute() {\n\n\n return null;\n }", "public abstract long mo9229aD();", "@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n...
[ "0.58330387", "0.5584521", "0.535216", "0.5306416", "0.5137288", "0.51054376", "0.5081359", "0.50786555", "0.5072553", "0.50588167", "0.50447345", "0.5012034", "0.498294", "0.49649078", "0.49612778", "0.49596012", "0.49591622", "0.49202543", "0.49138168", "0.49108902", "0.490...
0.0
-1
44 is the size because its the amount of notes the amount of beat the amount of dot, 114 2 currently removed dot
public static ArrayList genStates(){ ArrayList states = new ArrayList(44); List<String> notes = new ArrayList<String>(Arrays.asList("A","B","C","D","E","F","G","H","I","J","K")); List<String> beat = new ArrayList<String>(Arrays.asList("1","2","3","4")); //List<String> dot = new ArrayList...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int totalSize_infos_noise() {\n return (48 / 8);\n }", "@Override\n\tpublic int getTotalDots() {\n\t\treturn 0;\n\t}", "public static int elementSize_infos_noise() {\n return (16 / 8);\n }", "public static int totalSizeBits_infos_noise() {\n return 48;\n }", "pub...
[ "0.65788037", "0.644136", "0.63696444", "0.6220887", "0.60164094", "0.59474486", "0.58867514", "0.5855479", "0.58524543", "0.57237476", "0.57180727", "0.5675844", "0.56555575", "0.5650885", "0.5623442", "0.5606204", "0.56054854", "0.5600239", "0.559669", "0.5576472", "0.55704...
0.0
-1
44 is the size because its the amount of notes the amount of beat the amount of dot, 114 2 currently removed dot
public ArrayList genStates2(){ ArrayList states = new ArrayList(44); List<String> notes = new ArrayList<String>(Arrays.asList("A","B","C","D","E","F","G","H","I","J","K")); List<String> beat = new ArrayList<String>(Arrays.asList("1","2","3","4")); //List<String> dot = new ArrayList<Strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int totalSize_infos_noise() {\n return (48 / 8);\n }", "@Override\n\tpublic int getTotalDots() {\n\t\treturn 0;\n\t}", "public static int elementSize_infos_noise() {\n return (16 / 8);\n }", "public static int totalSizeBits_infos_noise() {\n return 48;\n }", "pub...
[ "0.6579831", "0.6441723", "0.63706106", "0.62218434", "0.601569", "0.59471214", "0.58870643", "0.58557427", "0.58532536", "0.5723253", "0.571719", "0.5674391", "0.56556004", "0.5651182", "0.5624039", "0.56062704", "0.5604896", "0.55996853", "0.5597115", "0.55765706", "0.55700...
0.0
-1
Total of the Sumation
public double entropyCalc(String stateSigS,String stateS){ double total= 0; //Probability of the stateSigS occuring double pSigSP; //Probability of stateS occuring double pSigS; //Given stateS whats the chance of sigP double pCond; //lg10 of pSigSP/pCond*p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void total() {\n\t\t\n\t}", "double getSum();", "double getSum();", "public double getTotal (){ \r\n return total;\r\n }", "@Override\n public double getTotal() {\n return total;\n }", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan...
[ "0.765476", "0.76365155", "0.76365155", "0.7513383", "0.7503411", "0.7487252", "0.7445155", "0.7423424", "0.74069095", "0.7399973", "0.7399973", "0.739078", "0.73753417", "0.7353493", "0.7344267", "0.7333355", "0.7323534", "0.7305597", "0.7282832", "0.7282065", "0.7261937", ...
0.0
-1
Cond Prob is simple uses the pattern matcher to find out the probability
private double condProb(String stateGiven, String stateFind){ HashMap probs = genAllProb(stateGiven); return (double) probs.get(stateFind); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getMatchScore(char[] pattern, Motif motif) {\n double score=0;\n for (int i=0;i<pattern.length;i++) {\n score+=motif.getBaseFrequency(i, pattern[i]);\n }\n double[] minmax=getMinAndMaxScore(motif);\n return (score-minmax[0])/(minmax[1]-minmax[0]);\...
[ "0.633306", "0.6041309", "0.60172695", "0.5934357", "0.59096426", "0.584157", "0.5814425", "0.5604365", "0.55889493", "0.5583396", "0.5580006", "0.5543511", "0.5528656", "0.54956293", "0.5385844", "0.53711927", "0.5355374", "0.52905285", "0.5255228", "0.5247128", "0.5237424",...
0.6129425
1
Train model by training both forward and backward models
public void train (List<List<String>> sentences) { // sentence structure: <S>A B C</S> bigramModel.train(sentences, bigramModel.start_symbol, bigramModel.end_symbol); // sentence structure: </S>C B A<S> backwardBigramModel.train(sentences, backwardBigramModel.end_symbol, backwardBigramMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\t...
[ "0.71167135", "0.6604763", "0.6601962", "0.65842324", "0.653999", "0.6396027", "0.62939566", "0.62697804", "0.6130686", "0.6130571", "0.61073923", "0.61009663", "0.60541636", "0.6051641", "0.6040938", "0.603393", "0.60261965", "0.597244", "0.5957213", "0.5953508", "0.5950653"...
0.6154577
8
Test model for Word Perplexity
public void test2 (List<List<String>> sentences) { double totalLogProb = 0; double totalNumTokens = 0; for (List<String> sentence : sentences) { totalNumTokens += sentence.size(); double sentenceLogProb = sentenceLogProb2(sentence); totalLogProb += sentenceLog...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test03() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n \n naiveBayesMultinomialText0.m_norm = 715.85816;\n MultiClassClas...
[ "0.64486605", "0.63913137", "0.63194466", "0.6187891", "0.61518353", "0.61263955", "0.6043004", "0.59998506", "0.599842", "0.5989644", "0.5986709", "0.5951035", "0.58942086", "0.58690417", "0.5837127", "0.5832657", "0.5831929", "0.5814853", "0.5808449", "0.58067596", "0.58045...
0.6834601
0
Train and test a bidirectional bigram model. Command format: "nlp.lm.BidirectionalBigramModel [DIR] [TestFrac]" where DIR is the name of a file or directory whose LDC POS Tagged files should be used for input data; and TestFrac is the fraction of the sentences in this data that should be used for testing, the rest for ...
public static void main(String[] args) throws IOException { // All but last arg is a file/directory of LDC tagged input data File[] files = new File[args.length - 1]; for (int i = 0; i < files.length; i++) files[i] = new File(args[i]); // Last arg is the TestFrac dou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testProcessAndLoad() {\n\t\tPreProcessor preProcessor = new PreProcessor();\n\t\tpreProcessor.processFiles(new File(\"res/tests/test1.txt\"));\n\t\tNGramModel actualModel = preProcessor.getNgramModel();\n\t\tactualModel.end();\n\t\t\n\t\tString testFilePath = \"res/bin/test.bin\";\n\t\t\n\t\tF...
[ "0.57713157", "0.57362133", "0.53631324", "0.5171012", "0.5159594", "0.5019969", "0.49647185", "0.49232173", "0.49177969", "0.49060103", "0.48739144", "0.48335424", "0.48141503", "0.47976828", "0.4759222", "0.47372195", "0.47265813", "0.46710664", "0.4607795", "0.45763102", "...
0.66693926
0
Get size of the log file.
public Long sizeInKB() { return this.sizeInKB; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long size() {\n return file.length();\n }", "public long getFileSize()\n throws IOException\n {\n return file.length();\n }", "public static long size(File file) {\n\t\treturn file.length();\n\t}", "publi...
[ "0.7482842", "0.7455372", "0.7303238", "0.7239331", "0.7154052", "0.7154052", "0.7106782", "0.70743304", "0.70683956", "0.7059132", "0.70067084", "0.69776654", "0.69516337", "0.6946751", "0.68871856", "0.68620294", "0.683643", "0.68110687", "0.680522", "0.67981625", "0.678285...
0.62676126
54
Set size of the log file.
public LogFileInner withSizeInKB(Long sizeInKB) { this.sizeInKB = sizeInKB; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLogCollectionMaxFileSize(int size);", "public void setLogFileSizeLimit(int logFileSizeLimit) {\n agentConfig.setLogFileSizeLimit(logFileSizeLimit);\n logConfigChanged();\n }", "public void setMaxLogSize(int size) {\n mEditLog.setMaxLogSize(size);\n }", "public void setFileSize(long ...
[ "0.7295174", "0.6978789", "0.69163173", "0.6853997", "0.665501", "0.66449183", "0.66301346", "0.6616974", "0.6609586", "0.6567497", "0.64654887", "0.6337932", "0.63299626", "0.63242394", "0.6323389", "0.62928444", "0.6283385", "0.624703", "0.6234269", "0.62071717", "0.6199257...
0.6344874
11
Get creation timestamp of the log file.
public DateTime createdTime() { return this.createdTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "long getCreationTime();", "long getCreationTime();", "long getCreationTime();", "public long getCreationTime();", "public BundleTimestamp creation_ts() {\r\n\t\treturn creation_ts_;\r\n\t}", "public long getCre...
[ "0.6676509", "0.6643545", "0.6643545", "0.6643545", "0.6614783", "0.65313834", "0.6522318", "0.6513693", "0.6497626", "0.64620906", "0.6430085", "0.64084715", "0.6372423", "0.6319247", "0.62874734", "0.6277673", "0.6276816", "0.6273653", "0.62406397", "0.61992896", "0.6190787...
0.0
-1
Get last modified timestamp of the log file.
public DateTime lastModifiedTime() { return this.lastModifiedTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "public Date getLastModified() {\n\t\treturn new Date(file.lastModified());\n\t}", "long getLastModifiedTime() throws FileSystemException;", "public Timestamp getLastModified() {\r\n\t\treturn la...
[ "0.77353126", "0.7573152", "0.7226913", "0.7108754", "0.7091353", "0.7064178", "0.7032357", "0.6937787", "0.6934109", "0.6919915", "0.69191045", "0.6913278", "0.6909998", "0.68976325", "0.6887946", "0.68832844", "0.68669546", "0.68404675", "0.68191946", "0.6819051", "0.680380...
0.612528
84
Get type of the log file.
public String logFileType() { return this.logFileType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getFiletype() {\n return filetype;\n }", "public String getFiletype() {\n return filetype;\n }", "public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }", "public String getFileType(){\n\t\treturn type;\n\t}", "public String getType()\n {\n ...
[ "0.72317153", "0.71420276", "0.69573444", "0.691275", "0.6720469", "0.6586126", "0.65576416", "0.65562785", "0.6460583", "0.64186954", "0.6403535", "0.63700116", "0.6335525", "0.61570233", "0.6051805", "0.6041477", "0.59631103", "0.5915389", "0.5908417", "0.5864669", "0.58107...
0.80352294
0
Set type of the log file.
public LogFileInner withLogFileType(String logFileType) { this.logFileType = logFileType; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFileType(TFileType type) {\n\n\t\tthis.type = type;\n\t}", "public void setFileType(FileType typ) {\n fileType = typ;\n }", "void setLogFile(File log);", "public void setFileType(String fileType) {\r\n\t\tthis.fileType = fileType;\r\n\t}", "public void setFileType(java.lang.String ...
[ "0.7009904", "0.6999953", "0.67038053", "0.6435851", "0.636555", "0.63231283", "0.63122326", "0.63117456", "0.630252", "0.62181365", "0.6208189", "0.62008667", "0.61831117", "0.6120205", "0.6115846", "0.6101954", "0.60729903", "0.6065605", "0.60592884", "0.6030031", "0.600880...
0.57039714
94
Get the url to download the log file from.
public String url() { return this.url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "public String getSourceDownloadUrl();", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public String getDownloadLink() {\r\n\t\tString site = MySoup.getSite();\r\n\t\tStr...
[ "0.7224198", "0.6979112", "0.64656746", "0.6336869", "0.6300287", "0.6137503", "0.61163247", "0.6096837", "0.60885644", "0.60724324", "0.60606676", "0.6010953", "0.6003594", "0.5972699", "0.59635514", "0.5962069", "0.5919026", "0.5883338", "0.58715445", "0.58566666", "0.58476...
0.0
-1
Set the url to download the log file from.
public LogFileInner withUrl(String url) { this.url = url; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLogFilesUrls() {\n String s = \"\";\n s = s + makeLink(\"NODE-\" + getNodeName() + \"-out.log\");\n s = s + \"<br>\" + makeLink(\"NODE-\" + getNodeName() + \"-err.log\");\n s = s + \"<br>\" + makeLink(\"log-\" + getNodeName() + \".html\");\n logFilesUrls = s;\n }", "public...
[ "0.667164", "0.6429597", "0.6222365", "0.61989325", "0.6178106", "0.61490446", "0.6141437", "0.6133224", "0.61321706", "0.60706663", "0.6019131", "0.5997284", "0.5997284", "0.5977125", "0.5966233", "0.5928665", "0.59033537", "0.5892055", "0.5890883", "0.5890883", "0.58867717"...
0.64107776
2
Total number of acknowledgments sent to Cloud Pubsub
public long getMessageAckCount() { return messageMetrics.acks.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "long getReceivedEventsCount();", "int getMsgCount();", "int getMsgCount();", "int getSubscriptionCount();", "public int getNumAnnouncements(){\n return message.length;\n }", "int getMessageCount();", "int g...
[ "0.6889388", "0.6889388", "0.6889388", "0.68034244", "0.6745167", "0.6745167", "0.6674739", "0.65853566", "0.6578513", "0.6578513", "0.6578513", "0.6578513", "0.6578513", "0.6558859", "0.6471495", "0.6455666", "0.64294016", "0.6415289", "0.6343104", "0.63370126", "0.62973726"...
0.66601425
7
Total number of negative acknowledgments sent to Cloud Pubsub. Might occur during connector shutdown.
public long getMessageNackCount() { return messageMetrics.nacks.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int numberOfMessages() {\n\t\treturn 0;\n\t}", "public long getMessageAckCount() {\n return messageMetrics.acks.get();\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "long getReceivedEv...
[ "0.67627", "0.67247856", "0.639182", "0.639182", "0.639182", "0.639182", "0.639182", "0.6311712", "0.6305022", "0.6301559", "0.6301559", "0.62935555", "0.62935555", "0.62935555", "0.62800777", "0.626623", "0.6212558", "0.61873615", "0.6126585", "0.6126585", "0.61176085", "0...
0.6839643
0
Total number of messages received from Cloud Pubsub
public long getMessageReceivedCount() { return messageMetrics.received.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "long getReceivedEventsCount();", "int getMsgCount();", "int getMsgCount();", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results ...
[ "0.7401984", "0.7401984", "0.7401984", "0.70941865", "0.6996139", "0.6996139", "0.69912523", "0.6887557", "0.6874986", "0.68248487", "0.68248487", "0.68248487", "0.68248487", "0.68248487", "0.6804611", "0.67781335", "0.6762268", "0.6757327", "0.6738152", "0.6634228", "0.66044...
0.66433954
19
do anything with response
@Override public void onResponse(JSONArray response) { for (int i =0; i < response.length();i++){ try { arrayList.add(new cardData(response.getJSONObject(i).getString("category"), imageEndpoint+response.getJSONObje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void faild_response();", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "void execute(final T response);", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "public void parseRespons...
[ "0.79426897", "0.7364535", "0.71089447", "0.70610934", "0.70000875", "0.68810135", "0.68329155", "0.68329155", "0.6785315", "0.6778337", "0.6710226", "0.6655047", "0.6629885", "0.6625666", "0.6625453", "0.66068256", "0.6597449", "0.65902555", "0.65775585", "0.6571541", "0.656...
0.0
-1
/ If child need this method,please override it
public void validate() throws ValidationException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n...
[ "0.7229996", "0.7198883", "0.69328237", "0.68876195", "0.6794127", "0.6773522", "0.6683578", "0.6683578", "0.6675879", "0.6666391", "0.6664571", "0.6617686", "0.65441126", "0.65441126", "0.65388674", "0.65388674", "0.6516929", "0.6463845", "0.6432666", "0.6394137", "0.6394002...
0.0
-1
/ If child need this method,please override it
public String getEntityName() { 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 public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n...
[ "0.7231273", "0.7199804", "0.69341356", "0.68882585", "0.6793815", "0.6774806", "0.66845894", "0.66845894", "0.6677009", "0.66665167", "0.6665381", "0.6618889", "0.654523", "0.654523", "0.6539973", "0.6539973", "0.65175694", "0.64637226", "0.6433564", "0.6395271", "0.63951355...
0.0
-1
Adding our menu to toolbar
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_menu, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.toolbar, menu);\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_toolbar...
[ "0.7492925", "0.72960544", "0.7290076", "0.72730505", "0.7250004", "0.720531", "0.71929914", "0.715757", "0.7125662", "0.7075309", "0.7074776", "0.70597935", "0.703858", "0.70374215", "0.7035482", "0.70250803", "0.7012714", "0.70041126", "0.69984436", "0.69959414", "0.6973054...
0.0
-1
/ rotate a NN matrix by 90 degrees clockwise return null if empty array
public interface RotateMatrix { public String[][] rotateMatrix(String[][] A); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void rotateMatrix(int[][] a]){\n if (a == null || a.length == 0 || a.length != a[0].length){\n return;\n }\n \n // we olny need half of the layers as other layers will be processed automatically\n for (int layer = 0; layer < a.length/2; layer++){\n // rotate (array, start...
[ "0.68131965", "0.6581162", "0.6496204", "0.63888526", "0.63447726", "0.6334873", "0.6317945", "0.6304234", "0.6260657", "0.6231476", "0.6213366", "0.6206434", "0.6174666", "0.6094707", "0.6082658", "0.6080695", "0.6060439", "0.6036299", "0.6022678", "0.60197824", "0.5985923",...
0.5572984
45
/ Sets up the lookup map.
private TreeMap<Character, Character> generateMap() { this.charMap = new TreeMap<Character, Character>(); // generates an array of characters representing the alphabet char[] alphabet = "abcdefghijklmnopqrstuvwxyz".toCharArray(); for (int i=0; i<26; i++) { this.charMap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}", "public void init_lookup(){\n for(int i =0 ; i< MAX ; i++){\n lookup[i] =0;\n }\n }", "protected void cre...
[ "0.77173865", "0.72341144", "0.7151322", "0.69125503", "0.64158297", "0.6255809", "0.6198745", "0.6094591", "0.60817796", "0.60639375", "0.6030427", "0.5998168", "0.5934738", "0.5914984", "0.5910836", "0.59054154", "0.58910817", "0.5810951", "0.5809758", "0.5781262", "0.57686...
0.0
-1
/ Transposes a character.
public char encryptChar(char c) { try { char returni = charMap.get(c); System.out.println(returni); return returni; } catch(NullPointerException e) { System.out.println("cant do this dude: " + c); return c; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String[] Transposicion(String texto) {\n String retorno[] = new String[2];\n retorno[0] = \"1\";\n retorno[1] = \"\";\n texto = texto.toLowerCase();\n try {//evalua si hay transposicion en el while\n if (texto.contains(\"w\") && texto.contains(\"h\") && texto.c...
[ "0.56556684", "0.5506293", "0.5214216", "0.51813513", "0.5162038", "0.51159203", "0.50773543", "0.50640666", "0.5016378", "0.49971223", "0.4971265", "0.49445271", "0.49390104", "0.4913404", "0.48802343", "0.48671323", "0.4863695", "0.4829557", "0.47809565", "0.4759883", "0.47...
0.0
-1
/ Transposes the character back (reverse lookup).
public char decryptChar(char v) { for (char c : this.charMap.keySet()) { if (this.charMap.get(c).equals(v)) { return c; } } // could not be decrypted (and probably wasn't encrypted in the first place) return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n List<Integer> chars = new ArrayList<>();\n Map<Integer, Queue<Integer>> charPosition = new HashMap<>();\n int currentIndex = 0;\n\n while (!BinaryStdIn.isEmpty()) {\n int i = BinaryStdIn.rea...
[ "0.5812203", "0.56652266", "0.5628507", "0.5625685", "0.5621307", "0.5551251", "0.5533018", "0.5469708", "0.53844154", "0.53764206", "0.533183", "0.5331568", "0.53177154", "0.53000754", "0.5287281", "0.52673805", "0.5266065", "0.5255053", "0.5236014", "0.52351296", "0.5229988...
0.0
-1
Constructs a Guidance object
public Guidance(ChopperStatus status, BluetoothOutput bT, Angler angler) { if (status == null || angler == null) { throw new NullPointerException(); } mStatus = status; mRec = new LinkedList<Receivable>(); mBt = bT; mAngler = angler; createHandler(); // Overridden at thread start. Here for testing. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GantBuilder ( ) { }", "public GuidanceTest(String name) {\n\t\tsuper(name);\n\t}", "public DABeneficios() {\n }", "public Generateur() {\n }", "UsabilityGoal createUsabilityGoal();", "public Genetic() {\r\n }", "public Garage() {\n\t\tid = generateId();\n\t}", "Cancion createCancion()...
[ "0.62342745", "0.61997825", "0.58502114", "0.5834123", "0.5769803", "0.57629365", "0.5760649", "0.57514244", "0.5734548", "0.57120454", "0.57107604", "0.5689262", "0.56668144", "0.56649315", "0.56606865", "0.5659312", "0.5646286", "0.56338084", "0.56334335", "0.5618288", "0.5...
0.5539235
32
Obtains the current P error values, concatenates into a string
private String getErrorString() { return "GUID:ERROR:" + mErrors[0][0] + ":" + mErrors[1][0] + ":" + mErrors[2][0] + ":" + mErrors[3][0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String errors() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(impossibleLapTime());\n\t\tsb.append(multipleStartTimes());\n\t\treturn sb.toString();\n\t}", "java.lang.String getErr();", "String getErrorsString();", "java.lang.String getError();", "java.lang.String getError();", "j...
[ "0.72468555", "0.7138045", "0.7134642", "0.7026301", "0.7026301", "0.7026301", "0.67808735", "0.663383", "0.663383", "0.663383", "0.663383", "0.6605592", "0.65606326", "0.65606326", "0.65606326", "0.6519436", "0.65124834", "0.64353526", "0.6399276", "0.63866824", "0.63854164"...
0.6554929
15
Closes the log file.
public void onDestroy() { try { if (logfile != null) logfile.close(); } catch (IOException e) { Log.e(TAG, "Cannot close logfile."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeLogFile()\r\n {\n try\r\n {\r\n GregorianCalendar gc = new GregorianCalendar();\r\n String now = su.DateToString(gc.getTime(), DTFMT);\r\n writeToLogFile(\"identifyFTPRequests processing ended at \" +\r\n now.substring(8, 10) + \":\" + now.substring(10, 12) + \".\" +\...
[ "0.8105347", "0.7345836", "0.7250355", "0.7053873", "0.6703623", "0.6500291", "0.6425382", "0.6401848", "0.6383946", "0.6380347", "0.63684237", "0.6281661", "0.62243503", "0.62227136", "0.6192994", "0.6163387", "0.6057735", "0.60415924", "0.6031295", "0.60167754", "0.59868044...
0.62098294
14
Starts the guidance thread
public void run() { Looper.prepare(); Thread.currentThread().setName("Guidance"); Thread.currentThread().setPriority(Thread.MAX_PRIORITY); createHandler(); //mHandler.sendEmptyMessage(EVAL_MOTOR_SPEED); receiveMessage("DIRECT:0:0:0:0", null); Looper.loop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n\t\ttrackerThread.start();\n\t}", "public void start() {\n\tanimator = new Thread(this);\n\tanimator.setName(\"erly_boid:::swarm intelligence\");\n\terlang =new Thread(co);\n\terlang.start();\n\tanimator.start();\n \n \n \t\n }", "public void start() {\n\t\tai = new Thread(thi...
[ "0.6837454", "0.6683634", "0.64656895", "0.63306004", "0.6297676", "0.6289696", "0.62744427", "0.62508565", "0.6238268", "0.62263584", "0.6212329", "0.61951315", "0.61912394", "0.6162063", "0.61364853", "0.61354536", "0.6133501", "0.6113517", "0.6058963", "0.6051982", "0.6048...
0.60941845
18
Registers a receiver to receive Guidance updates.
public void registerReceiver(Receivable rec) { synchronized (mRec) { mRec.add(rec); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void registerReceiver(IReceiver receiver);", "public void registerReceiver(Channel.Receiver receiver);", "private void registerReceiver() {\n // TODO: Is this needed?\n mRegistrationReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Int...
[ "0.747024", "0.739836", "0.6574229", "0.6402818", "0.6378896", "0.62283903", "0.6227552", "0.6157395", "0.6144067", "0.61326945", "0.608884", "0.6084777", "0.5996661", "0.59161854", "0.58933777", "0.5883116", "0.5868326", "0.5865344", "0.5851211", "0.5834283", "0.57589155", ...
0.60644174
12
Core of the class; calculates new motor speeds based on status
public void reviseMotorSpeed() { mHandler.removeMessages(EVAL_MOTOR_SPEED); long starttime = System.currentTimeMillis(); //Retrieve current orientation. mAzimuth = mStatus.getReadingField(AZIMUTH); mPitchDeg = mStatus.getReadingField(PITCH); mRollDeg = -mStatus.getReadingField(ROLL); double[] e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateMotors() {\n\t\t//Pass filtered values to ChopperStatus.\n\t\tmStatus.setMotorFields(mMotorSpeed);\n\t\tString logline = Long.toString(System.currentTimeMillis()) + \" \" + mMotorSpeed[0] + \" \" + mMotorSpeed[1] + \" \" + mMotorSpeed[2] + \" \" + mMotorSpeed[3] + \"\\n\";\n\t\ttry {\n\t\t\tif (...
[ "0.72384024", "0.68468654", "0.64993125", "0.646108", "0.642485", "0.64212465", "0.64185804", "0.6413864", "0.6406624", "0.6329626", "0.63234216", "0.6313767", "0.630545", "0.63051015", "0.6288012", "0.6288012", "0.62670314", "0.62651783", "0.6238324", "0.6228554", "0.6209962...
0.6415011
7
Write motor values to ChopperStatus, BluetoothOutputImpl, logfile.
private void updateMotors() { //Pass filtered values to ChopperStatus. mStatus.setMotorFields(mMotorSpeed); String logline = Long.toString(System.currentTimeMillis()) + " " + mMotorSpeed[0] + " " + mMotorSpeed[1] + " " + mMotorSpeed[2] + " " + mMotorSpeed[3] + "\n"; try { if (logfile != null) { logfile.w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "private void logDeviceSettingTabField() {\n\n\t\tDeviceSettingsController.logVendorID(vendorId);\n\t\tDeviceSettingsController.logProductID(productId);\n\t\tDeviceSettingsController.logManufacture(manufac...
[ "0.55900556", "0.55900556", "0.55900556", "0.5445421", "0.5429914", "0.5356051", "0.534288", "0.53358155", "0.5315949", "0.52918607", "0.5286287", "0.526651", "0.5263031", "0.51916414", "0.517464", "0.51583576", "0.5139336", "0.51393217", "0.51316136", "0.51201934", "0.510875...
0.7013137
0
This method initializes this
private void initialize() { this.setJMenuBar(getMainMenuBar()); this.setContentPane(getPaneContent()); this.setSize(800, 600); this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); this.addWindowListener(new java.awt.event.WindowAdapter() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void init()\n\t\t{\n\t\t}", "public void initialize()\n {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void init() {\n \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "protected void initialize() {\n \t\n }", "@Override\r\n\tpub...
[ "0.83539504", "0.8307917", "0.8282791", "0.825615", "0.8200049", "0.8198305", "0.8149035", "0.8121817", "0.8104103", "0.81024307", "0.81024307", "0.81024307", "0.80645996", "0.8053697", "0.8036853", "0.80288565", "0.801887", "0.7991998", "0.7991998", "0.79863125", "0.79849255...
0.0
-1
This method initializes paneContent
private javax.swing.JPanel getPaneContent() { if (paneContent == null) { paneContent = new javax.swing.JPanel(); paneContent.setLayout(new BoxLayout(getPaneContent(), BoxLayout.Y_AXIS)); paneContent.setEnabled(true); paneContent.setPreferredSize(new java.awt.Dimension(800,600)); paneContent....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainContentPane() {\r\n\t\tsuper();\r\n\r\n\t\t// Add design-time configured components.\r\n\t\tinitComponents();\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(ne...
[ "0.7684057", "0.7318758", "0.73181033", "0.7251925", "0.72209597", "0.7132415", "0.70463085", "0.6955116", "0.69313073", "0.68635863", "0.68542916", "0.685189", "0.68350875", "0.6811309", "0.679066", "0.6738732", "0.66736513", "0.6643642", "0.65928465", "0.65924037", "0.65909...
0.6859108
10
This method initializes txtStatus
private javax.swing.JLabel getTxtStatus() { if (txtStatus == null) { txtStatus = new javax.swing.JLabel(); txtStatus.setName("txtStatus"); txtStatus.setText("Initializing..."); txtStatus.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); txtStatus.setHorizontalTextPosition(javax.swing.Swing...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeControls() {\n\t\tlabel = new Label(status.toString());\n\t}", "private void initGUI() {\n statusLabel = new JLabel();\n add(statusLabel);\n updateStatus();\n }", "public ManualInput() {\n Globals.Status =\" \";\n initComponents();\n }", "privat...
[ "0.7157107", "0.6928019", "0.6489533", "0.6269479", "0.61948276", "0.61850363", "0.61571836", "0.6149281", "0.6126835", "0.6117461", "0.6078625", "0.60561854", "0.6022668", "0.60143656", "0.5987101", "0.5944397", "0.5937265", "0.59127915", "0.59079057", "0.5890925", "0.588072...
0.72914296
0
This method initializes paneStandard
org.parosproxy.paros.view.WorkbenchPanel getWorkbench() { if (paneStandard == null) { paneStandard = new org.parosproxy.paros.view.WorkbenchPanel(); paneStandard.setLayout(new java.awt.CardLayout()); paneStandard.setName("paneStandard"); } return paneStandard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsp...
[ "0.73409396", "0.7058969", "0.67115265", "0.66538435", "0.6611976", "0.65930986", "0.6559149", "0.6515292", "0.65047616", "0.6500536", "0.64972323", "0.6491171", "0.64887536", "0.6456225", "0.6443168", "0.64077455", "0.6407608", "0.63802916", "0.63726616", "0.6368336", "0.636...
0.0
-1
This method initializes mainMenuBar
public org.parosproxy.paros.view.MainMenuBar getMainMenuBar() { if (mainMenuBar == null) { mainMenuBar = new org.parosproxy.paros.view.MainMenuBar(); } return mainMenuBar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeMenuBar() {\n\t\tthis.hydraMenu = new HydraMenu(this.commands);\n\t\tthis.setJMenuBar(this.hydraMenu);\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t...
[ "0.8545372", "0.83951116", "0.8260656", "0.8166428", "0.8152818", "0.8070325", "0.8006906", "0.7929792", "0.79161924", "0.7907496", "0.78825736", "0.78205115", "0.7800248", "0.7694537", "0.76273406", "0.75461435", "0.7489126", "0.74726075", "0.74687463", "0.7462105", "0.73892...
0.73822814
21
This method initializes paneDisplay
public JPanel getPaneDisplay() { if (paneDisplay == null) { paneDisplay = new JPanel(); paneDisplay.setLayout(new CardLayout()); paneDisplay.setName("paneDisplay"); paneDisplay.add(getWorkbench(), getWorkbench().getName()); } return paneDisplay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsp...
[ "0.7276061", "0.72158104", "0.71223956", "0.7091398", "0.70594424", "0.70009315", "0.6993265", "0.6966734", "0.6888398", "0.6868152", "0.68462855", "0.68222684", "0.6759598", "0.6742377", "0.67335975", "0.6719584", "0.67133635", "0.66787475", "0.66360474", "0.6624894", "0.662...
0.0
-1
Produces the cross product of the first stage candidates to generate the 2nd Stage potential candidates.
private void crossProduct() { BaseCandidateElement[] it = o.inputObject.firstStageCandidates.values().toArray(new BaseCandidateElement[0]); // logger.info(Arrays.toString(it)); for (int i = 0; i < it.length; i++) { for (int j = i + 1; j < it.length; j++) { if (PrecisC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Classification composition(Classification stage1, Classification stage2, ClassificationModel model) {\n Classification composedClassification = ClassificationFactory.eINSTANCE.createClassification();\n\n List<ClassifiedFeature> allClassifiedFeaturesOfStage1 = getAllClassifiedFeaturesOfView(...
[ "0.5279118", "0.5071735", "0.49911553", "0.48923296", "0.48182416", "0.47825706", "0.47258148", "0.46679544", "0.4642828", "0.46349108", "0.46109056", "0.459588", "0.45857596", "0.45817193", "0.45537582", "0.45383334", "0.4498283", "0.44942304", "0.44818452", "0.4467509", "0....
0.7431004
0
doViewOptions / Returns a value suitable for use as a label
private String getLabel(int aValue) { if (fRadix == radix_Hex) { return Format.toHexString(aValue); } else { if (fType == type_Float) { return "" + (double)aValue; } else { return "" + aValue; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(1610743816) //= 0x60020008. The runtime will prefer the VTID if present\r\n @VTID(15)\r\n int viewOptions();", "java.lang.String getViewsLabel();", "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "public String getViewText() {\n...
[ "0.7127085", "0.60860384", "0.5835229", "0.5750026", "0.57279605", "0.5713538", "0.5691337", "0.5630883", "0.56263447", "0.5544042", "0.55335975", "0.5511225", "0.5511225", "0.5486209", "0.5472678", "0.5419611", "0.53549707", "0.5316053", "0.5311049", "0.5291073", "0.5274728"...
0.0
-1
Create the dialog box
void makeDialog() { fDialog = new ViewOptionsDialog(this.getTopLevelAncestor()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract JDialog createDialog();", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}",...
[ "0.7419603", "0.7412471", "0.7307323", "0.72942585", "0.72109926", "0.7204741", "0.7157919", "0.7144742", "0.7136977", "0.713174", "0.7072543", "0.7071794", "0.70505637", "0.7002181", "0.6911259", "0.6893067", "0.68829215", "0.6873896", "0.6867495", "0.6867252", "0.6863194", ...
0.71767116
6
paintComponent The underlying parameter has changed
public void refresh() { this.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintComponent(Graphics g);", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "@Override\r\n public void repaint() {\r\n }", "@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tthis.repaint(); // Schedule a call to paintComponent\n\t}", "void paintComponent(Graphics g);...
[ "0.6989575", "0.6914383", "0.68881166", "0.6818618", "0.68079025", "0.68012583", "0.67611706", "0.67562443", "0.67430216", "0.67338187", "0.66987014", "0.669261", "0.66907895", "0.663735", "0.6623218", "0.6623218", "0.6578271", "0.65712595", "0.65402687", "0.65315866", "0.652...
0.0
-1
Output this graph as XML
public void save(XMLWriter aWriter) throws IOException { aWriter.writeElement("min", fMin); aWriter.writeElement("max", fMax); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(p...
[ "0.72354716", "0.6814071", "0.6793153", "0.6779082", "0.67279917", "0.6726516", "0.6679229", "0.6679229", "0.6679229", "0.65976256", "0.6527317", "0.6505935", "0.64374566", "0.6365184", "0.63595027", "0.6353651", "0.63383937", "0.62186396", "0.62186396", "0.62166315", "0.6186...
0.0
-1
Be sure the menus are current
public void updateMenus() { System.out.println("BarGraphDisplayer.updateMenus"); CommandRegistrar.gRegistrar.checkAction("barGraph"); CommandRegistrar.gRegistrar.enableAction("viewOptions"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkMenuItemStatus() {\n\t\tif (VozCache.instance().getCookies() == null) { // not logged in yet\n\t\t\tlogoutMenu.setVisible(false);\t\t\t\n\t\t\tloginMenu.setVisible(true);\n\t\t\tloginWithPresetMenu.setVisible(true);\n\t\t} else { // logged in\n\t\t\tlogoutMenu.setVisible(true);\t\t\t\n\t\t\tlogin...
[ "0.72351044", "0.70034194", "0.7001473", "0.69131553", "0.6865396", "0.68343145", "0.67816955", "0.67761445", "0.6752392", "0.67431295", "0.6711238", "0.6669647", "0.6603265", "0.65867203", "0.6549892", "0.6538394", "0.652291", "0.6519407", "0.651574", "0.6429915", "0.6418077...
0.6334683
23
ViewOptionsDialog Set up the fields and show the dialog
public void setupAndShow() { fMaxTextField.setText(BarGraphDisplayer.this.getMaxLabel()); fMinTextField.setText(BarGraphDisplayer.this.getMinLabel()); fMinTextField.selectAll(); fMinTextField.requestFocus(); this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsDialog();\...
[ "0.6723532", "0.669481", "0.62011033", "0.62007374", "0.6199818", "0.61182934", "0.61121273", "0.60970235", "0.6092189", "0.6027891", "0.6022103", "0.59785813", "0.5973544", "0.5947241", "0.59271944", "0.5909007", "0.5845336", "0.5795282", "0.57905406", "0.5785127", "0.577875...
0.0
-1
/ Takes the users current money level and adds what they received for working a job
public static void setMoney(Integer payment) { money.moneyLevel += payment; money.save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addMoney(double profit){\n money+=profit;\n }", "public void updateMoney()\n\t\t{\n\t\t\t\n\t\t\tFPlayer p1 = this.viewer;\n\t\t\tFPlayer p2 = (p1.equals(this.t.p1)) ? this.t.p2 : this.t.p1;\n\t\t\t\n\t\t\tItemStack om = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tItemMeta it = om.getItemM...
[ "0.6070291", "0.6031647", "0.5936191", "0.59344894", "0.59343225", "0.5921136", "0.590477", "0.5889624", "0.5889376", "0.586182", "0.575113", "0.5740863", "0.57256085", "0.57132465", "0.56872636", "0.56800896", "0.5679026", "0.564515", "0.56447387", "0.5636292", "0.5635616", ...
0.0
-1
Convenience method to bind objects in Actions
public Object getBean(String name) { if (ctx == null) { ctx = WebApplicationContextUtils .getRequiredWebApplicationContext(servlet .getServletContext()); } return ctx.getBean(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bindObject() {\n }", "T bindTo(Object instance);", "public interface BindingObject {\n void bindTo(View view, Object object);\n}", "void bind(Object element);", "protected abstract void action(Object obj);", "protected abstract void bind();", "protected abstract void bind();", "voi...
[ "0.66764116", "0.665392", "0.5878959", "0.575668", "0.57329816", "0.56835675", "0.56835675", "0.5651221", "0.5611477", "0.55465364", "0.5539047", "0.55169433", "0.5508193", "0.5486104", "0.5482034", "0.5481703", "0.5481703", "0.54762256", "0.54762256", "0.5464795", "0.5464795...
0.0
-1
Provides the mapping from resource key to method name
public Map getKeyMethodMap() { Map map = new HashMap(); String pkg = this.getClass().getPackage().getName(); ResourceBundle methods = ResourceBundle.getBundle(pkg + ".LookupMethods"); Enumeration keys = methods.getKeys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Map getKeyMethodMap() {\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"cmd.planilla.lista\", \"lista\");\n\t\tmap.put(\"cmd.planilla.buscar\", \"buscar\");\n\t\tmap.put(\"cmd.planilla.verificar\", \"verificar\");\n\t\tmap.put(\"cmd.planilla.cargar\", \"cargar\");\n\t\tma...
[ "0.7077735", "0.6476617", "0.60696393", "0.60082895", "0.5969838", "0.5950771", "0.5826486", "0.57213575", "0.56446105", "0.56446105", "0.5636008", "0.56312174", "0.56312174", "0.56312174", "0.56312174", "0.56028366", "0.560187", "0.560187", "0.5502705", "0.54829687", "0.5475...
0.71144605
0
Convenience method to initialize messages in a subclass.
public ActionMessages getMessages(HttpServletRequest request) { ActionMessages messages = null; HttpSession session = request.getSession(); if (request.getAttribute(Globals.MESSAGE_KEY) != null) { messages = (ActionMessages) request .getAttribute(Globals.MESSAGE_KEY); saveMessages(request, mess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initMsgs() {\n }", "private void initMsgs() {\n }", "private Messages() {\n\t}", "public Message() {\n\t\tsuper();\n\t}", "public messages() {\n }", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "private Message(){\n // default constructor\...
[ "0.72118413", "0.72118413", "0.70635355", "0.6950613", "0.6947169", "0.68995786", "0.6886534", "0.6744348", "0.668801", "0.6637695", "0.6637695", "0.6606294", "0.6606294", "0.65855616", "0.6577732", "0.6533754", "0.6485949", "0.6484294", "0.64587384", "0.64106756", "0.6398104...
0.0
-1
Override the execute method in LookupDispatchAction to parse URLs and forward to methods without parameters. Also will forward to unspecified method when no parameter is present. This is based on the following system: edit.html > edit method save.html > save method view.html > search method
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (isCancelled(request)) { ActionForward af = cancelled(mapping, form, request, response); if (af != null) { return af; } } MessageReso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString action = request.getParameter(\"action1\");\n\t\tif (action == null) action = LIST;\n\t\tif (log.isDebugEnabled()) log.debug(\"action:\" + act...
[ "0.60835093", "0.58725834", "0.57589084", "0.573764", "0.5669718", "0.5633905", "0.55091363", "0.5462318", "0.54181105", "0.5350176", "0.5330557", "0.53053707", "0.52947617", "0.5286853", "0.5285166", "0.5265242", "0.52167344", "0.5211184", "0.52014613", "0.5200619", "0.51861...
0.6137498
0
Convenience method for getting an action form base on it's mapped scope.
protected ActionForm getActionForm(ActionMapping mapping, HttpServletRequest request) { ActionForm actionForm = null; // Remove the obsolete form bean if (mapping.getAttribute() != null) { if ("request".equals(mapping.getScope())) { actionForm = (ActionForm) request.getAttribute(mapping ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ActionForm processActionForm(HttpServletRequest request,\n HttpServletResponse response,\n ActionMapping mapping)\n {\n String scope = mapping.getScope();\n if(scope != null)\n {\n try\n {\n if(scop...
[ "0.63137585", "0.6294548", "0.56872606", "0.55767775", "0.55570334", "0.55088705", "0.54918164", "0.54394513", "0.5422447", "0.54090625", "0.5400075", "0.5397334", "0.5356723", "0.5276346", "0.51670873", "0.5129098", "0.5127162", "0.50624007", "0.5057054", "0.5055812", "0.504...
0.67042726
0
Convenience method to get the userForm from the session
protected User getUser(HttpSession session) { // get the user form from the session return (User) session.getAttribute(Constants.USER_KEY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form getForm() {\n return form;\n }", "protected final Form getForm() {\n\t\treturn itsForm;\n\t}", "public Form getUserSettingsForm() throws ProcessManagerException {\r\n try {\r\n com.silverpeas.workflow.api.model.DataFolder userInfos = processModel\r\n .getUserInfos();\r...
[ "0.6655739", "0.6632461", "0.64208823", "0.6280088", "0.62575984", "0.6201525", "0.6192524", "0.6178992", "0.6145784", "0.6073698", "0.60469407", "0.59908193", "0.595143", "0.5932412", "0.5794259", "0.5774676", "0.57561475", "0.5747704", "0.5747704", "0.56968266", "0.5688858"...
0.6351533
3
Convenience method to get the Configuration HashMap from the servlet context.
public Map getConfiguration() { Map config = (HashMap) getServlet().getServletContext().getAttribute( Constants.CONFIG); // so unit tests don't puke when nothing's been set if (config == null) { return new HashMap(); } return config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tfinal public ServletConfig getServletConfig() {\n\n\t\treturn config;\n\n\t}", "public static Configuration getInstance(ServletContext ctx) {\r\n\t\tConfiguration config = null;\r\n config = (Configuration) ctx.getAttribute(KEY);\r\n \r\n if (config == null)\r\n {\r\n ...
[ "0.6754533", "0.6709042", "0.6695817", "0.65462905", "0.6393215", "0.6353261", "0.6353261", "0.63348806", "0.63297915", "0.62989783", "0.60355955", "0.6029578", "0.5999594", "0.5958436", "0.59087956", "0.58941346", "0.58688927", "0.58688927", "0.58688927", "0.57920206", "0.57...
0.81718546
0
Public Methods Don't use class variables in Action objects. These are not session safe. Method to check and see if https is required for this resource
protected boolean checkSsl(ActionMapping mapping, HttpServletRequest request, HttpServletResponse response) { String redirectString = SslUtil.getRedirectString(request, getServlet() .getServletContext(), SECURE.equals(mapping.getParameter())); if (redirectString != null) { log.debug("protocol switc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable Boolean isHttps();", "public boolean isSecure( ) {\n\t\treturn scheme.equals( \"https\" );\n\t}", "@Override\n\t\tpublic boolean isSecure() {\n\t\t\treturn false;\n\t\t}", "public static boolean isApiProtocolHttps () {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isSecure() {\n\t\treturn...
[ "0.7154843", "0.69078773", "0.65360194", "0.6513781", "0.6509946", "0.6509946", "0.64712864", "0.64712864", "0.64375335", "0.6406929", "0.6285002", "0.6262092", "0.6240812", "0.615302", "0.5992975", "0.593088", "0.59218156", "0.5919928", "0.5915089", "0.5883011", "0.5864363",...
0.6033016
14
Convenience method for removing the obsolete form bean.
protected void removeFormBean(ActionMapping mapping, HttpServletRequest request) { // Remove the obsolete form bean if (mapping.getAttribute() != null) { if ("request".equals(mapping.getScope())) { request.removeAttribute(mapping.getAttribute()); } else { HttpSession session = request.getSes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeForm(ERForm form) {\n\t\t\n\t}", "@Override\n public void remove( )\n {\n FormPortletHome.getInstance( ).remove( this );\n }", "public void removeFormField(FormField formField) {\n\t\tif (formFields != null) {\n\t\t\tthis.formFields.remove(formField);\n\t\t}\n\t}"...
[ "0.76364636", "0.70677876", "0.66544014", "0.64777356", "0.6376555", "0.6338089", "0.6313708", "0.6214458", "0.5978973", "0.5847395", "0.58339787", "0.58138156", "0.574837", "0.56587845", "0.56587845", "0.5569816", "0.5567705", "0.5564041", "0.5557316", "0.5546865", "0.552831...
0.72581095
1
Convenience method to update a formBean in it's scope
protected void updateFormBean(ActionMapping mapping, HttpServletRequest request, ActionForm form) { // Remove the obsolete form bean if (mapping.getAttribute() != null) { if ("request".equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), form); } else { HttpSession sess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void fillFormBean(IBookFormBean formBean);", "@Override\n\tpublic void update(DhtmlxGridForm f) throws Exception {\n\t\t\n\t}", "private void setCurrentBean(Object newBean)\r\n {\r\n T oldValue = getValue();\r\n\r\n if (bean != null)\r\n {\r\n PropertyChangeUtils.tryRemoveNam...
[ "0.63765615", "0.61203414", "0.59799063", "0.5944499", "0.5728281", "0.5674731", "0.5575208", "0.5536834", "0.5462775", "0.54298043", "0.54112214", "0.54101825", "0.53257203", "0.5325689", "0.53218347", "0.53195626", "0.53071475", "0.52727133", "0.52724105", "0.5219517", "0.5...
0.65808105
0
NEW: added by Jaap Lookup the key name corresponding to the client request's locale. This method is overwritten here because the key names are hardcoded in the global forwards of the strutsconfig.xml file. This in turn is required to make the StrutsMenu tags work (amongst others). Whatever the reason, this hardcoding i...
protected String getLookupMapName(HttpServletRequest request, String keyName, ActionMapping mapping) throws ServletException { if (log.isDebugEnabled()) { log.debug("BaseAction: getLookupMapName( keyName = " + keyName + " )"); } String methodName = null; try { this.setLocale(request,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Map initDefaultLookupMap(HttpServletRequest request) {\r\n\t\tMap lookupMap = new HashMap();\r\n\t\tthis.keyMethodMap = this.getKeyMethodMap();\r\n\r\n\t\tModuleConfig moduleConfig = (ModuleConfig) request\r\n\t\t\t\t.getAttribute(Globals.MODULE_KEY);\r\n\r\n\t\tMessageResourcesConfig[] mrc = moduleConfi...
[ "0.6363801", "0.62284577", "0.6185801", "0.6048044", "0.5962811", "0.56289434", "0.5590615", "0.55579424", "0.55168474", "0.54220295", "0.5413562", "0.53430486", "0.531872", "0.5209151", "0.5166324", "0.5126551", "0.5125192", "0.5099417", "0.5067809", "0.5029783", "0.5019415"...
0.7917995
0
NEW: added by Jaap This is the first time the default Locale is used so build the reverse lookup Map. Search for message keys in all configured MessageResources for the current module.
protected Map initDefaultLookupMap(HttpServletRequest request) { Map lookupMap = new HashMap(); this.keyMethodMap = this.getKeyMethodMap(); ModuleConfig moduleConfig = (ModuleConfig) request .getAttribute(Globals.MODULE_KEY); MessageResourcesConfig[] mrc = moduleConfig .findMessageResourcesCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initMessages() {\n\t\tthis.languagesMessagesMap = new HashMap<String, Map<String, String>>();\n\n\t\tBufferedReader reader = null;\n\t\treader = initMessagesReader(reader);\n\t\tif (reader == null) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Map<String, String>> languagesMessagesList = readMessag...
[ "0.63134414", "0.6229551", "0.6169135", "0.61509407", "0.61130375", "0.6037601", "0.6025221", "0.59529406", "0.586891", "0.5823668", "0.5797529", "0.5786797", "0.5777056", "0.57605004", "0.5741173", "0.5717275", "0.5702963", "0.57021916", "0.56644917", "0.56406623", "0.560706...
0.7215652
0
Method.............................................authenticate Author......................................................JLH This method authenticates a user via username and password Return Value (Credentials) credentials: Returns a credentials bean of the user that logged in.
public static synchronized Credentials authenticate(String userName, String password){ Connection connection; Credentials credentials=null; PreparedStatement statement=null; String preparedSQL = "SELECT * FROM Credential WHERE Email = ? and Pass = ?"; try{ connection=DBConnector.getC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;", "public void authenticate(LoginCredentials credentials) throws LoginException;", "@Override\n public AuthenticatedUser authenticateUser(Credentials credentials)\n throws GuacamoleException {\n SSOAuthentic...
[ "0.76022047", "0.75995505", "0.74301344", "0.73648155", "0.72551066", "0.7174226", "0.6995531", "0.69856185", "0.69547325", "0.69466674", "0.6889359", "0.6861885", "0.6853309", "0.6846822", "0.6832303", "0.6760495", "0.6754515", "0.6749531", "0.6712301", "0.669794", "0.669032...
0.7210485
5
Method.................................................getPword Author......................................................JLH This method getPass gets the users password for validation Return Value (String) correctPass: Returns a String of the user's password
public static synchronized String getPword(String userName){ Connection connection; String correctPass = ""; PreparedStatement statement=null; String preparedSQL = "SELECT pass FROM Credential WHERE Email = ?"; try{ connection=DBConnector.getConnection(); statement = connection.pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPass();", "java.lang.String getPass();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPasswor...
[ "0.7630231", "0.7630231", "0.7517408", "0.7517408", "0.7517408", "0.7517408", "0.7517408", "0.7517408", "0.7517408", "0.7427286", "0.74195814", "0.7297124", "0.7297124", "0.7297124", "0.7297124", "0.7297124", "0.7297124", "0.7297124", "0.7297124", "0.7297124", "0.72938794", ...
0.6764084
46
Method........................................checkVerification Author......................................................JLH This method retrieves the "validated" field based on the user's email address Return Value (int) validated: Returns an int value that signifies if the user's email address has been verified
public static synchronized int checkVerification(String userName){ Connection connection; int valid = 1; PreparedStatement statement=null; String preparedSQL = "SELECT Validated FROM Credential WHERE Email = ?"; try{ connection=DBConnector.getConnection(); statement = connection.pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getValidUserEmail(Validation v) {\r\n\r\n\t\t\r\n\t\tint a=0;\r\n\t\tString query=\"select * from user_registration where user_name='\"+v.getUsername() +\"' and email='\"+v.getEmail()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRo...
[ "0.6659554", "0.65725935", "0.64596695", "0.6365673", "0.63022447", "0.6292814", "0.6243933", "0.6232964", "0.6220594", "0.61862904", "0.6170332", "0.6115353", "0.601095", "0.59922606", "0.59703416", "0.5923075", "0.5911951", "0.58914757", "0.5849595", "0.58325094", "0.582948...
0.6042584
12
Method.........................................getCred_IDByBean Author......................................................JLH This method retrieves the Credential ID based on the Credential Bean Return Value (int) cred_ID: Returns a credential ID, this is an int that is automatically incremented in the database when ...
public static synchronized int getCred_IDByBean(Credentials cred){ int cred_ID=0; Connection connection; PreparedStatement statement = null; String preparedSQL = "Select Credentials_ID From credential Where Email = ? " + "And Pass= ? And Role= ? And Validated= ? And RegKey= ?"; try{ connecti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCredentialId() {\r\n return credentialId;\r\n }", "public String getCredentialId() {\n return this.CredentialId;\n }", "@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tStr...
[ "0.57829595", "0.56568956", "0.55886596", "0.5374032", "0.53528184", "0.5271484", "0.5250879", "0.5239442", "0.5235881", "0.5224834", "0.5204191", "0.51644015", "0.5136764", "0.513115", "0.51070976", "0.5099486", "0.5099486", "0.5099486", "0.5099486", "0.5099486", "0.50927913...
0.8416079
0
Method...........................................getKeyBYUserID Author......................................................JLH This method retrieves a key based on the user_ID Return Value (String) key: Returns an alphanumeric string generated when the user is created and removed when the user validates their email
public static synchronized String getKeyBYUserID(int user_ID){ String key = ""; Connection connection; PreparedStatement statement = null; String preparedSQL = "Select RegKey From credential Where User_ID = ?"; try{ connection = DBConnector.getConnection(); statement = connection...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getUserKey() {\r\n\t\tif(email!=null&&password!=null) {\r\n\t\t\treturn (email.hashCode()+password.hashCode())/2;\r\n\t\t}else if(email!=null||password!=null) {\r\n\t\t\tif(email!=null) {\r\n\t\t\t\treturn email.hashCode();\r\n\t\t\t}else {\r\n\t\t\t\treturn password.hashCode();\r\n\t\t\t}\r\n\t\t}else ...
[ "0.714669", "0.7042218", "0.68268245", "0.6581801", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.65796083", "0.6577311", "0.6577311", "0.6569758", "0....
0.77080727
0
Method.........................................getEmailByUserID Author......................................................JLH This method retrieves the user's email based on the user_ID Return Value (String) email: Returns the user's email address
public static synchronized String getEmailByUserID(int user_ID){ String email = ""; Connection connection; PreparedStatement statement = null; String preparedSQL = "Select Email From credential Where User_ID = ?"; try{ connection = DBConnector.getConnection(); statement = connect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserEmail(String userId)\n {\n return null;\n }", "java.lang.String getUserEmail();", "String getUserMainEmail( int nUserId );", "@Override\r\n\tpublic String getEmail(String id) {\r\n\t\tString sql = \"SELECT email FROM \\\"Registration DB\\\".\\\"Userdetails\\\" where id=?\";\...
[ "0.7500701", "0.74200535", "0.72785515", "0.7204263", "0.7190986", "0.7132329", "0.69860476", "0.69860476", "0.69860476", "0.69860476", "0.69860476", "0.69860476", "0.6956613", "0.68270916", "0.68006253", "0.6778297", "0.6771778", "0.6701477", "0.66532654", "0.66532654", "0.6...
0.8105681
0
Method.........................................getUserIDByEmail Author......................................................JLH This method retrieves the user ID based on the user's email address Return Value (int) user_ID: Returns the user's user_ID, an int automatically incremented in the database
public static synchronized int getUserIDByEmail(String email){ int user_ID = 0; Connection connection; PreparedStatement statement = null; String preparedSQL = "Select User_ID From credential Where Email = ?"; try{ connection = DBConnector.getConnection(); statement = connection....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getUserId(String email) throws DatabaseException, DataNotFoundException {\n\t\tConnection con = DbUtil.getConnection();\n\t\tStudentRegistrationValidationDaoi studentRegistrationValidationDaoi=new StudentRegistrationValidationDaoimpl();\n\t\tint value=studentRegistrationValidationDaoi.getU...
[ "0.7988896", "0.7771306", "0.73615366", "0.72230345", "0.7127544", "0.69308984", "0.6888359", "0.6869006", "0.68372214", "0.6819178", "0.6786306", "0.6786306", "0.6786306", "0.6786306", "0.6786306", "0.6786306", "0.6786306", "0.6786306", "0.6786306", "0.6786306", "0.6786306",...
0.8038015
0
Method...................................getCredentialByUser_ID Author......................................................JLH This method retrieves the Credential Bean based on the userID Return Value (Credentials) credentials: Returns a credentials bean of the user based on the userID, an int automatically increment...
public static synchronized Credentials getCedentialByUser_ID(int userID){ Connection connection; Credentials cred = null; PreparedStatement statement = null; String preparedSQL = "Select * From credential Where User_ID = ?"; try{ connection = DBConnector.getConnection(); statement =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized Credentials getCredentialByUserIDKey(int userID, String key){\n\t\t\tConnection connection;\n\t\t\tCredentials cred = null;\n\t\t \tPreparedStatement statement = null;\n\t\t\tString preparedSQL = \"Select * From credential Where User_ID = ? And RegKey =?\";\n\t\t\t\n\t\t try{\n\t\t ...
[ "0.68828785", "0.6497909", "0.6444023", "0.5986006", "0.58988065", "0.58961403", "0.5724921", "0.56556267", "0.56522596", "0.56522596", "0.56522596", "0.56471723", "0.5612498", "0.5610937", "0.5610084", "0.5594052", "0.55877835", "0.5559539", "0.55480915", "0.5545009", "0.553...
0.7800586
0
Method..................................................addCred Author......................................................JLH This method creates a new entry in the credential database table Return Value (int) status: Returns an int that indicates the success or failure of the insert command
public static synchronized int addCred(Credentials cred){ int status=0; Connection connection; String preparedSQL = "INSERT INTO credential (Email, Pass, User_ID, Role, " + "Validated, RegKey) VALUES(?,?,?,?,?,?) "; PreparedStatement statement=null; try{ connection=DBConnector.getConnection()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean addAccount() {\r\n String update = \"INSERT INTO LOGIN VALUES('\" + this.username + \"', '\" + new MD5().md5(this.password) + \"', '\" + this.codeID + \"', N'\" + this.fullname + \"')\";\r\n return model.ConnectToSql.update(update);\r\n }", "public void addUserCredentials(String l...
[ "0.62159824", "0.6198878", "0.5990159", "0.59631133", "0.59212685", "0.58999777", "0.5889237", "0.5885064", "0.5777928", "0.5731702", "0.5723773", "0.5714189", "0.5671363", "0.5668201", "0.56425047", "0.563493", "0.5609641", "0.55908847", "0.5574721", "0.5555181", "0.5544609"...
0.821599
0
Method................................................adduserID Author......................................................JLH This method adds the automatically incremented int, user_ID, from the user table to the credentials table Return Value (Void)
public static synchronized void addUserID(int user_ID, int cred_ID){ Connection connection; String preparedSQL = "Update credential Set User_ID = ? Where Credentials_ID = ?"; PreparedStatement statement=null; try{ connection=DBConnector.getConnection(); statement = connection.prepareStatement(prep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Integer registerUser(User user) throws SQLException, ClassNotFoundException, IOException \r\n\t{\r\n\t\t//Declare all variables\r\n\t\t//Create Connection, PreparedStatement, and ResultSet Objects and\r\n\t\t//initialize to null. Create an OracleConnection Object with Java default Constructor...
[ "0.68619925", "0.6720332", "0.6718736", "0.6698456", "0.664699", "0.6644999", "0.66376126", "0.66239876", "0.66002107", "0.6556066", "0.6518526", "0.6465969", "0.6461448", "0.6450991", "0.6444548", "0.64348143", "0.6428008", "0.6426454", "0.6373275", "0.63607407", "0.633342",...
0.7523964
0
Method................................................adduserID Author......................................................JLH This method adds the automatically incremented int, user_ID, from the user table to the credentials table Return Value (Void)
public static synchronized int modUser(int user_ID, String role, int valid){ Connection connection; int result =0; String preparedSQL = "Update credential Set Role = ?, Validated = ? Where User_ID = ?"; PreparedStatement statement=null; try{ connection=DBConnector.getConnection(); statement = c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized void addUserID(int user_ID, int cred_ID){\n\t\t\tConnection connection; \n\t\t\tString preparedSQL = \"Update credential Set User_ID = ? Where Credentials_ID = ?\";\n\t\t\tPreparedStatement statement=null;\t\n\t\t\ttry{\n\t\t\t\tconnection=DBConnector.getConnection();\n\t\t\t\tstatement ...
[ "0.7523689", "0.6862737", "0.67205906", "0.67191404", "0.6698938", "0.6646193", "0.6645945", "0.6637027", "0.66255546", "0.66009074", "0.6557013", "0.6518943", "0.646627", "0.64615834", "0.6452214", "0.6442806", "0.64335585", "0.64283705", "0.6426199", "0.6372225", "0.6360875...
0.0
-1
Method...............................................deleteCred Author......................................................JLH This method deletes the row in the credentials table based on the credID Return Value (int) status: Returns an int that indicates the success or failure of the delete command
public static synchronized int deleteCred(int credID){ int status=0; Connection connection; String preparedSQL = "DELETE FROM credential WHERE Credentials_ID = ?"; PreparedStatement statement=null; try{ connection=DBConnector.getConnection(); statement = connection.prepareS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);", "@Test\n public void deleteCredential() throws InterruptedException {\n credentialPage.addOneCredential(TestUtil.url3, TestUtil.username3, TestUtil.password3);\n Thread.sleep(1000);\n // then delete a row\...
[ "0.6450053", "0.63697594", "0.61428446", "0.5999235", "0.5917837", "0.58662486", "0.5753313", "0.57138765", "0.5690198", "0.56662655", "0.56555796", "0.56477123", "0.55893284", "0.557115", "0.55524623", "0.55467474", "0.5528245", "0.55223197", "0.5518465", "0.54976404", "0.54...
0.8470999
0
Method................................................validated Author......................................................JLH This method changes the validated int from 1 to 0 signifying that the user has validated their email address Return Value (int) status: Returns an int that indicates the success or failure of ...
public static synchronized int validated(int userID, String key){ int status=0; Connection connection; String preparedSQL = "Update credential Set Validated = ? Where User_ID = ? And RegKey = ?"; PreparedStatement statement=null; try{ connection=DBConnector.getConnection(); statement = connect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate(){\n if (validated){\n validated = false;\n } else {\n validated = true;\n }\n }", "ValidationResponse validate();", "private void updatestatuscode() {\r\n String error = null;\r\n if (inValidStatus()) {\r\n error = get...
[ "0.583804", "0.5764468", "0.57589054", "0.5676436", "0.5557662", "0.5531953", "0.55309397", "0.5527438", "0.54970604", "0.54673994", "0.54667056", "0.5459128", "0.54489607", "0.54255503", "0.5423033", "0.54139805", "0.5407312", "0.5402014", "0.5397899", "0.53888583", "0.53803...
0.0
-1
Method...................................................setKey Author......................................................JLH This method sets an alphanumeric string, key, in the credential table. This is the key users need in order to validate their email Return Value (int) status: Returns an int that indicates the ...
public static synchronized int setKey(int userID, String key){ int status=0; Connection connection; String preparedSQL = "Update credential Set RegKey = ? Where User_ID = ?"; PreparedStatement statement=null; try{ connection=DBConnector.getConnection(); statement = connection.prepareStatement(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setKey(String key);", "void setKey(final String key);", "void setKey(java.lang.String key);", "String setKey(String newKey);", "public void _setKey(String e)\n {\n _key = e;\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n ...
[ "0.62540066", "0.61571866", "0.615106", "0.6142858", "0.61065316", "0.6057328", "0.5970738", "0.5955401", "0.5955401", "0.59259546", "0.5752331", "0.5717731", "0.5717731", "0.5716747", "0.57022834", "0.56839", "0.56703675", "0.56578076", "0.56492436", "0.56443006", "0.561415"...
0.655315
0
Method................................................resetCred Author......................................................JLH This method changes the users password Return Value (int) status: Returns an int that indicates the success or failure of the updated password
public static synchronized int resetCred(int userID, String password){ int status=0; Connection connection; String preparedSQL = "Update credential Set Pass = ? Where User_ID = ?"; PreparedStatement statement=null; try{ connection=DBConnector.getConnection(); statement = connection.prepareStat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean resetPassword(Context ctx) {\n\t\tString username = ctx.sessionAttribute(\"access\"); \n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.resetPassword(username, password);//check if username works\n\t\treturn result;\n\t}", "public synchronized void...
[ "0.7061639", "0.674854", "0.66894406", "0.66815555", "0.6552288", "0.6530421", "0.6447186", "0.63392204", "0.63231903", "0.6320078", "0.6315311", "0.63147146", "0.62908715", "0.6285519", "0.62338364", "0.6220069", "0.6204495", "0.6202224", "0.6191149", "0.61806923", "0.617216...
0.72997755
0
Method..................................getCrdentialByUserIDKey Author......................................................JLH This method retieves a Credential Bean based on the userID and key Return Value (Credentials) credentials: Returns a credentials bean
public static synchronized Credentials getCredentialByUserIDKey(int userID, String key){ Connection connection; Credentials cred = null; PreparedStatement statement = null; String preparedSQL = "Select * From credential Where User_ID = ? And RegKey =?"; try{ connection = DBConnector.getCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized Credentials getCedentialByUser_ID(int userID){\n\t\t\tConnection connection;\n\t\t\tCredentials cred = null;\n\t\t \tPreparedStatement statement = null;\n\t\t\tString preparedSQL = \"Select * From credential Where User_ID = ?\";\n\t\t\t\n\t\t try{\n\t\t \tconnection = DBConnector.g...
[ "0.7271184", "0.6787751", "0.58769804", "0.5846172", "0.57948893", "0.5790258", "0.5757519", "0.57433784", "0.57046837", "0.5580774", "0.5580774", "0.5580774", "0.55249846", "0.55138314", "0.55131865", "0.5482052", "0.5455753", "0.54321736", "0.54252183", "0.5398336", "0.5327...
0.7827208
0
Method................................................checkCred Author......................................................JLH This method checks to see if any instances of the email are already in the database. This determines if the user's email is already registered Return Value (int) count: Returns an int that cou...
public static synchronized int checkCred(String email){ Connection connection; int count = 1; PreparedStatement statement = null; String preparedSQL = "Select Count(*) From credential Where Email = ?"; try{ connection = DBConnector.getConnection(); statement = connection.prepareStat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean emailAlreadyUsed(String email){\n \n StringBuilder query = new StringBuilder();\n \n query.append(\"SELECT id FROM userr WHERE email ='\");\n query.append(email);\n query.append(\"';\");\n \n try{\n PreparedStatement sql = conn.prepa...
[ "0.7121761", "0.6897078", "0.6891685", "0.68101805", "0.67679894", "0.6758297", "0.67352736", "0.67248446", "0.6654367", "0.6646879", "0.6620227", "0.64715344", "0.6456636", "0.6387306", "0.6326395", "0.6253578", "0.62152946", "0.6202539", "0.61982423", "0.61935616", "0.61825...
0.76359284
0
Created by gongkan on 2016/6/23.
public interface IOperateGame{ void initDataFinished(); void downloadingQuestion(Map<String,String> data); void startMemory(); void startRememory(); void pauseGame(); void reStartGame(); void finishGame(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.61621004", "0.6044787", "0.5953795", "0.59216714", "0.5891845", "0.5891845", "0.5833709", "0.5816391", "0.577054", "0.5762345", "0.5750159", "0.5745905", "0.5731141", "0.57236534", "0.57041126", "0.5703144", "0.5687439", "0.5687439", "0.5687439", "0.5687439", "0.5687439", ...
0.0
-1
For a few arbitrary triggers, tests that when the trigger is set finished it is correctly reported as finished.
public static void verifyGetAfterSet(FinishedTriggers finishedSet) { ExecutableTriggerStateMachine trigger = ExecutableTriggerStateMachine.create( AfterAllStateMachine.of( AfterFirstStateMachine.of( AfterPaneStateMachine.elementCountAtLeast(3), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups={\"broken\"})\n\tpublic void triggerCompleteDeletesJob() throws SchedulerException,\n\t\t\tInterruptedException {\n\n\t\tScheduler sched = null;\n\t\ttry {\n\t\t\t\n\t\t\tSchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory(); \n\t\t\tsched = schedFact.getScheduler(); \n\t\t\t\n//\t\t\...
[ "0.6595712", "0.641805", "0.61567307", "0.613408", "0.61088616", "0.5982275", "0.59570706", "0.5951375", "0.5942651", "0.59212154", "0.59068865", "0.58961576", "0.58961576", "0.5879348", "0.5877272", "0.5874737", "0.5854026", "0.5851759", "0.5833708", "0.583299", "0.58274496"...
0.60146236
5
Tests that clearing a trigger recursively clears all of that triggers subTriggers, but no others.
public static void verifyClearRecursively(FinishedTriggers finishedSet) { ExecutableTriggerStateMachine trigger = ExecutableTriggerStateMachine.create( AfterAllStateMachine.of( AfterFirstStateMachine.of( AfterPaneStateMachine.elementCountAtLeast(3), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\n\t\t// If settingActive is true, clear will be called for all children anyway. No need to loop.\n\t\tif (children != null) {\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\tchild.clear();\n\t\t\t}\n\t\t}\n\t}", "public Builder clearRecursive() {\n if (recursiveBuild...
[ "0.5781791", "0.5721566", "0.56739753", "0.56599176", "0.5649652", "0.5639837", "0.560191", "0.55700684", "0.5523456", "0.5521746", "0.55180657", "0.5515784", "0.5508281", "0.54828006", "0.5465869", "0.5455565", "0.540705", "0.5382644", "0.534797", "0.53456306", "0.53456306",...
0.66397494
0
This method was generated by MyBatis Generator. This method corresponds to the database table user_info
UserInfo deleteByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimp...
[ "0.6873077", "0.64235103", "0.6403907", "0.6348331", "0.6313405", "0.62931126", "0.6289738", "0.627959", "0.6279387", "0.6262444", "0.62240165", "0.61990565", "0.6185124", "0.6179039", "0.6176479", "0.61702657", "0.61697227", "0.6161658", "0.61595076", "0.60747087", "0.606169...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table user_info
int insert(UserInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimp...
[ "0.68723136", "0.64219886", "0.640336", "0.63471997", "0.6312311", "0.62912816", "0.6288767", "0.62795556", "0.62785876", "0.62608176", "0.6222168", "0.6197579", "0.6184619", "0.61774355", "0.617524", "0.6170038", "0.61688036", "0.61596185", "0.6159283", "0.6074697", "0.60604...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table user_info
UserInfo selectByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimp...
[ "0.6873077", "0.64235103", "0.6403907", "0.6348331", "0.6313405", "0.62931126", "0.6289738", "0.627959", "0.6279387", "0.6262444", "0.62240165", "0.61990565", "0.6185124", "0.6179039", "0.6176479", "0.61702657", "0.61697227", "0.6161658", "0.61595076", "0.60747087", "0.606169...
0.5811745
45