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
Closes the other registration after closing this.
default Registration then(Registration other) { Objects.requireNonNull(other); return () -> { close(); other.close(); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void close() {\n if (VDBG) log(\"close()\");\n\n mAppRegistered = false;\n final IBluetoothDeviceGroup service = getService();\n if (service != null) {\n try {\n service.unregisterGroupClientApp(mAppId, mAttributionSource);\n } catch (RemoteException...
[ "0.6644741", "0.6522769", "0.65010923", "0.6500253", "0.64575285", "0.63206613", "0.62794197", "0.6267212", "0.6259878", "0.6245069", "0.6236721", "0.6205259", "0.6205259", "0.61993504", "0.6195682", "0.618406", "0.61765033", "0.61765033", "0.61765033", "0.617135", "0.6170658...
0.5974969
71
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("Enter the number of elements:"); Scanner sc=new Scanner(System.in); int elem=sc.nextInt(); int array[]=new int[elem]; System.out.println("Enter all the elements:"); for(int i=0;i<elem;i++) { array[i]=sc.nextInt(); } S...
{ "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
/ access modifiers changed from: protected
public void logDiagnostic(String str) { if (isDiagnosticsEnabled()) { LogFactory.logRawDiagnostic(new StringBuffer().append(this.diagnosticPrefix).append(str).toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public String getLogClassName() { if (this.logClassName == null) { discoverLogImplementation(getClass().getName()); } return this.logClassName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public Constructor getLogConstructor() { if (this.logConstructor == null) { discoverLogImplementation(getClass().getName()); } return this.logConstructor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean isJdk13LumberjackAvailable() { return isLogLibraryAvailable("Jdk13Lumberjack", LOGGING_IMPL_LUMBERJACK_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean isJdk14Available() { return isLogLibraryAvailable("Jdk14", LOGGING_IMPL_JDK14_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean isLog4JAvailable() { return isLogLibraryAvailable("Log4J", LOGGING_IMPL_LOG4J_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public Log newInstance(String str) { Log log; try { if (this.logConstructor == null) { log = discoverLogImplementation(str); } else { log = (Log) this.logConstructor.newInstance(new Object[]{str}); } if (this.logMethod != nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
This method uses the graph objects which are reffed by the node matching but checks to see that they are still in the graph. (The graph will change as a result of path splitting.)
private void matchOnlyCurrentGraphState(TaskMonitor monitor) { // make a new list of the matched nodes, to avoid concurrent // modification problems List matchedNodes = getMatchedNodesOrdered(); int total = matchedNodes.size(); int count = 0; for (Iterator nodeIt = matchedNodes.iterator(); nodeIt....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "private void checkTargetsReachable()...
[ "0.6281206", "0.6161731", "0.6150349", "0.6133898", "0.5993909", "0.59894145", "0.59654725", "0.5828475", "0.5828395", "0.5787099", "0.57577115", "0.5755697", "0.57489055", "0.57454044", "0.57430965", "0.57361263", "0.5722884", "0.57209057", "0.57154804", "0.56898916", "0.568...
0.718863
0
generate random 6 digit numbers for email
public String getRandomNumberString() { Random rnd = new Random(); int number = rnd.nextInt(899999) + 100000; // this will convert any number sequence into 6 character. String formatted_code = String.format("%06d", number); return formatted_code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getRandomNumberString() {\n // It will generate 6 digit random Number.\n // from 0 to 999999\n Random rnd = new Random();\n int number = rnd.nextInt(999999);\n\n // this will convert any number sequence into 6 character.\n return number;\n }", "publi...
[ "0.7405013", "0.7282352", "0.7044462", "0.7034236", "0.696747", "0.6912517", "0.6864621", "0.6824397", "0.6783637", "0.6739725", "0.6689073", "0.66844124", "0.6667769", "0.6644418", "0.6629278", "0.6618449", "0.6592798", "0.659028", "0.6583464", "0.65805924", "0.65699023", ...
0.7150612
2
source file of SML code
public Translator(String fileName) { this.fileName = PATH + fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSourceFile();", "String getSource();", "Source getSrc();", "public String getSource();", "java.lang.String getSource();", "java.lang.String getSource();", "public String getSource ();", "public abstract String getSource();", "String getSourceString();", "public void source(Str...
[ "0.68734574", "0.65452623", "0.6445265", "0.64244723", "0.6379563", "0.6379563", "0.6366411", "0.635767", "0.62077695", "0.6149073", "0.613535", "0.60922474", "0.60812885", "0.60736156", "0.602827", "0.60281456", "0.600857", "0.591228", "0.5910765", "0.5893505", "0.5881042", ...
0.0
-1
translate the small program in the file into lab (the labels) and prog (the program) return "no errors were detected"
public boolean readAndTranslate(Labels lab, ArrayList<Instruction> prog) { try (Scanner sc = new Scanner(new File(fileName))) { // Scanner attached to the file chosen by the user labels = lab; labels.reset(); program = prog; program.clear(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tLineOfCode[] inputProgram = new LineOfCode[32];\n\t\t// Initialize an array of type LineOfMachineCode\n\t\tLineOfMachineCode[] instructions = new LineOfMachineCode[32];\n\t\tString[] opcodes = {\"LDA\", \"ADD\", \"SUB\", \"STA\", \"MPY\", \"DIV\", \n...
[ "0.62118083", "0.5943165", "0.5790704", "0.575096", "0.55686563", "0.5548957", "0.55200255", "0.54519075", "0.5449761", "0.5440949", "0.5432699", "0.54176396", "0.5388354", "0.53882563", "0.5354834", "0.5349097", "0.5334538", "0.5330991", "0.532879", "0.5315429", "0.52953357"...
0.67777836
0
line should consist of an MML instruction, with its label already removed. Translate line into an instruction with label label and return the instruction
public Instruction getInstruction(String label) { int s1; // Possible operands of the instruction int s2; String s3; int r; int x; if (line.equals("")) return null; //Get the first word as a string String ins = scan(); // Generate th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String label(String line) {\n\t\tint idx = line.lastIndexOf(':');\n\t\tint idxQuote = line.lastIndexOf('\\'');\n\t\tif (idx < 0 || idx < idxQuote) return line.trim();\n\n\t\tString label = line.substring(0, idx).trim();\n\t\tString rest = line.substring(idx + 1).trim();\n\n\t\t// Is 'label' a function signature?\n...
[ "0.607533", "0.6005245", "0.56938064", "0.5652317", "0.5551659", "0.5452808", "0.5284057", "0.5267775", "0.5186408", "0.5130204", "0.50830275", "0.5078421", "0.4988321", "0.4904594", "0.48340937", "0.4818806", "0.48121834", "0.4810939", "0.47992256", "0.4788842", "0.47673714"...
0.4788449
20
/ Return the first word of line and remove it from line. If there is no word, return ""
private String scan() { line = line.trim(); if (line.length() == 0) return ""; int i = 0; while (i < line.length() && line.charAt(i) != ' ' && line.charAt(i) != '\t') { i = i + 1; } String word = line.substring(0, i); line = line.substring...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String firstWord(String userMessage) {\n if (userMessage.contains(\" \"))\n return userMessage.substring(0, userMessage.indexOf(\" \"));\n return userMessage;\n }", "private String trimName(String line) {\n line = trimLine(line);\n int idx = line.indexOf(\"(\");\...
[ "0.6574467", "0.6567907", "0.65031826", "0.6390543", "0.63283926", "0.6288859", "0.62820107", "0.6212384", "0.618049", "0.606304", "0.60394907", "0.6035528", "0.59798455", "0.59486747", "0.5940842", "0.5914148", "0.5855286", "0.58379513", "0.58326215", "0.58073527", "0.572285...
0.6524759
2
Return the first word of line as an integer. If there is any error, return the maximum int
private int scanInt() { String word = scan(); if (word.length() == 0) { return Integer.MAX_VALUE; } try { return Integer.parseInt(word); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getFirstIntValue(String line) {\n return getNthIntValue(line, 1);\n }", "private static int getSatFromLine(String line) {\n\t\treturn Integer.parseInt(line.split(\" \")[0]);\n\t}", "String getFirstInt();", "private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseI...
[ "0.75109965", "0.6655126", "0.6622817", "0.63446647", "0.62669927", "0.61986446", "0.6169627", "0.6148506", "0.61192113", "0.60641766", "0.6053946", "0.6003012", "0.5937922", "0.5932187", "0.5908694", "0.58508134", "0.5780198", "0.5773387", "0.57496196", "0.5733458", "0.56658...
0.67530334
1
Created by IntelliJ IDEA. User: nah67 Date: 9/6/11 Time: 10:20 AM To change this template use File | Settings | File Templates.
public interface User extends Serializable { Long getId(); String getUserName(); String getPassword(); String getDescription(); boolean isEnabled(); void setUserName(String userName); void setPassword(String password); void setDescription(String description); void setEna...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo21785J() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n...
[ "0.62008333", "0.60300136", "0.59609437", "0.5928674", "0.59169066", "0.59031975", "0.58856463", "0.58856463", "0.5866591", "0.5857389", "0.585195", "0.5840892", "0.5834578", "0.58242065", "0.58099496", "0.58099496", "0.58039683", "0.578313", "0.5782474", "0.5778352", "0.5776...
0.0
-1
this method runs before each test in remote
@BeforeMethod public void setUp() { initialization(); loginPage = new LoginPage(); homePage = loginPage.login(prop.getProperty("username"), prop.getProperty("password")); System.out.println("Logged in successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runBeforeTest() {}", "@Before\n public void setUp() {\n \tserver = super.populateTest();\n }", "@Before public void setUp() { }", "@Before\n public void beforeTest(){\n\n\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public vo...
[ "0.7871284", "0.7030436", "0.692643", "0.68716466", "0.6855133", "0.6855133", "0.6855133", "0.6855133", "0.6855133", "0.68545496", "0.68516034", "0.68498653", "0.68305916", "0.68305916", "0.68305916", "0.68236434", "0.68170494", "0.6813505", "0.67949957", "0.6785176", "0.6783...
0.0
-1
TODO Autogenerated method stub
@Override protected BaseListAdapter.ViewHolder createViewHolder(View root) { MyViewHolder holder = new MyViewHolder(root); return holder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void fillView(View root, GroupClassInfo item, ViewHolder holder, final int position) { if (item == null)return; final MyViewHolder h = (MyViewHolder) holder; h.tvName.setText(item.getName()); if(info != null && item.equals(info)){ h.mCB.setChecked(true); }else{ h.mCB.setChecked(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected int getItemViewId() { return R.layout.item_group_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { String path = "D:\\test"; for(int i=1;i<65535;i++){ File file = new File(path+File.separator+name+i); if(!file.exists()){ file.mkdirs(); } } }
{ "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
Created by Administrator on 2018/10/13.
public interface DeptService { List<Dept> findAllDepts(); Dept findDeptByName(String dName); List<Employee> searchEmployeeByDeptName(String name); List<Employee> searchEmployeeByJobName(String name); void addDept(Dept dept); void editDept(Dept dept); void deleteDeptByName(String name)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Ov...
[ "0.61508083", "0.6079463", "0.5785022", "0.57656544", "0.5765204", "0.5742778", "0.56735706", "0.56320506", "0.5631582", "0.5608195", "0.5601113", "0.56004363", "0.55882514", "0.55874676", "0.55872923", "0.55789447", "0.55789447", "0.5576192", "0.5570869", "0.55668443", "0.55...
0.0
-1
for AICC import by cliff, 2001/4/19
public void updAiccLongText(Connection con, String mod_import_xml, String mod_core_vendor, String mod_desc, String mod_web_launch) throws qdbException { try { /* commented for using the new update function for clob (2002.04.22 kawai) // update mod_import_xml Prepa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename)\n throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage {\n//System.out.println(\"...
[ "0.5998688", "0.5967803", "0.59659475", "0.5712574", "0.57119703", "0.5630092", "0.54530925", "0.54494065", "0.5397264", "0.53950846", "0.5389103", "0.53638697", "0.53420955", "0.5341712", "0.5335482", "0.5312859", "0.52700746", "0.52669483", "0.5265145", "0.5264682", "0.5251...
0.0
-1
by cliff, 8/6/2001 for updating an module with aicc type
public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename) throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage { //System.out.println("mod_in_e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo54416a(C20211ac acVar);", "void update(Type type);", "public interface C0136c {\n }", "public Object fix(IModule module);", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C8843g {\n}", "Datatype internalize(Dataty...
[ "0.56541157", "0.56145257", "0.5570465", "0.55625147", "0.55582935", "0.5515869", "0.5494987", "0.5468901", "0.54623723", "0.5449437", "0.54144347", "0.54077166", "0.54051435", "0.5396177", "0.5385717", "0.538177", "0.53745127", "0.53547525", "0.5354564", "0.5345365", "0.5335...
0.57360107
0
end of AICC specific methods
public void updBasicInfo(Connection con, loginProfile prof, boolean isChangeDate) throws qdbException, qdbErrMessage, cwSysMessage { try { res_id = mod_res_id; res_type = RES_TYPE_MOD; res_upd_user = prof.usr_id; // check User Right // checkModifyPermission(con, prof); // if (!dbResourcePermissio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void iCGAbsAc(int icgAbsAc, int timestamp) {\n }", "static void aci_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=(CS?1:0);\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(su...
[ "0.63983643", "0.6203737", "0.61282396", "0.6100712", "0.6067716", "0.5985106", "0.5966971", "0.59412", "0.59245306", "0.5923559", "0.5914703", "0.58903617", "0.58094627", "0.5761041", "0.5757465", "0.5752749", "0.57412714", "0.57354265", "0.57241225", "0.5718507", "0.5717267...
0.0
-1
this is cloned from the original upd method. specially modified for class module of a course using common content
public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException { res_id = mod_res_id; res_type = RES_TYPE_MOD; res_upd_user = prof.usr_id; super.checkTimeStamp(con); if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateBourse(Bourse brs) {\n\t\t\n\t}", "public boolean updateCourse(Course c) {\n\t\treturn false;\n\t}", "public void updateCourse(Course curs) throws SQLException, ClassNotFoundException {\r\n Iterable<Student> allStuds = students.findAll();\r\n List<Student> toUpdate ...
[ "0.6670857", "0.63898695", "0.63862723", "0.63402796", "0.63386875", "0.63263345", "0.6316208", "0.6193093", "0.61481744", "0.61481744", "0.61481744", "0.6094025", "0.6070606", "0.6070606", "0.60673684", "0.6025695", "0.5958251", "0.5956738", "0.5952593", "0.5939762", "0.5924...
0.6627955
1
The selected question is already ordered.
public boolean checkQorder(Connection con) throws qdbException, qdbErrMessage { Vector resCon = dbResourceContent.getChildAss(con,mod_res_id); dbResourceContent rcn = new dbResourceContent(); for(int i=1;i<=resCon.size();i++) { rcn = (dbResourceContent) resCon.elementAt(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void eventSelectOrder() {\n\t\t\n\t}", "public boolean isOrdered() {\n return mOrdered;\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();", "@Override\r\n public int getOrder() {\r\n ...
[ "0.6170231", "0.6142077", "0.60037065", "0.58778626", "0.58684576", "0.57800066", "0.57591057", "0.5719937", "0.56996185", "0.5688918", "0.56835014", "0.5676942", "0.5644723", "0.56353176", "0.56353176", "0.5635067", "0.5628094", "0.5608827", "0.5579749", "0.55789876", "0.555...
0.0
-1
isShuffleMCQue: indicate if the MC question in this test needs to be shuffled
public String genTestAsXML(Connection con, loginProfile prof, dbModuleSpec dbmsp, String[] robs, float time_limit, String uploadDir, Vector resIdVec, boolean showAnswer, long tkh_id, boolean boolPreviewAssessment, boolean isShuffleMCQue) throws qdbException, qdbErrMessage, cwSysMessage, SQLException, cwExceptio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean shuffleNeeded();", "public boolean getShuffle() {\n\t\treturn this.shuffle;\n\t}", "@Override\n\tpublic int getShuffleMode()\n\t{\n\t\treturn 0;\n\t}", "public String getStaticQueAsXML(Connection con, Vector resIdVec, boolean isShuffleMCQue)\n throws qdbErrMessage, qdbException, cwSysMe...
[ "0.69229364", "0.6190567", "0.5822192", "0.5798507", "0.5793511", "0.5780012", "0.5727566", "0.5724049", "0.56501937", "0.5609723", "0.5559596", "0.5553116", "0.5541164", "0.55228394", "0.5405318", "0.5337056", "0.53186554", "0.5315358", "0.5308188", "0.5263012", "0.5263012",...
0.5023665
35
Get the list of question from the test;
public String getStaticQueAsXML(Connection con, Vector resIdVec, boolean isShuffleMCQue) throws qdbErrMessage, qdbException, cwSysMessage, cwException { Vector qArray = dbResourceContent.getChildAss(con,mod_res_id); if( this.mod_logic != null && this.mod_logic.equalsIgnoreCase(dbModule.MOD_LOGIC_R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Question> getQuestions();", "List<Question> getQuestionsUsed();", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "public ArrayList<String> getQuestionsList() {\n\t\tArra...
[ "0.75954926", "0.75626636", "0.73987037", "0.71751124", "0.708457", "0.7053819", "0.70393133", "0.7020083", "0.69553816", "0.6946665", "0.69462657", "0.69025123", "0.67542183", "0.6739658", "0.66725343", "0.6666002", "0.66148114", "0.6607882", "0.6582326", "0.6531514", "0.651...
0.0
-1
Dennis, 20001213, impl release control it updates the mod_eff_start/end_datetime in Module with the nonstatic class valiables mod_in_eff_start/end_datetime
public void updateEffDatetime(Connection con) throws qdbException { try { String SQL; if(mod_in_eff_start_datetime != null) if(dbUtils.isMinTimestamp(mod_in_eff_start_datetime)) mod_in_eff_start_datetime = dbUtils.getTime(con); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "@Override\n void adjustStartAndEnd(U vComponentEditedCopy, U vComponentOriginalCopy)\n {\n vComponentEditedCopy.setDateTimeStart(new DateTimeStart(getStartRecurrence()));\n vComponentEdite...
[ "0.5689851", "0.56211156", "0.5600776", "0.55754614", "0.5555447", "0.55266666", "0.5523413", "0.5489543", "0.54526544", "0.5437665", "0.5430855", "0.5393564", "0.5390792", "0.53820324", "0.53731656", "0.53026813", "0.53011036", "0.52493113", "0.52422667", "0.524012", "0.5240...
0.59000486
0
Dennis, 20001213, impl release control it gets the mod_eff_start_datetime from Module
public static Timestamp getModStart(Connection con, long id) throws qdbException { try { String SQL; Timestamp curTime = null; SQL = "Select mod_eff_start_datetime " + "From Module " + "Where mod_res_id = ?"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getHC_WorkStartDate2();", "String getSourceUsageDateTime();", "String getSourceUsageURLModificiationTime();", "public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public String getModifyStartTime() {\n retu...
[ "0.61228746", "0.594345", "0.5858023", "0.5789079", "0.57680094", "0.57546073", "0.56252074", "0.55843896", "0.55838555", "0.55635464", "0.5558492", "0.555585", "0.5550623", "0.553778", "0.55091375", "0.55019647", "0.5501411", "0.54733825", "0.5470348", "0.5469017", "0.542868...
0.66256887
0
Dennis, 20001213, impl release control it gets the mod_eff_end_datetime from Module
public static Timestamp getModEnd(Connection con, long id) throws qdbException { try { String SQL; Timestamp curTime = null; SQL = "Select mod_eff_end_datetime " + "From Module " + "Where mod_res_id = ?"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public Timestamp getHC_WorkEndDate();", "public void updateEffDatetime(Connection con)\n throws qdbException\n {\n try {\n String SQL;\n\n if(mod_in_eff_start_datetime != null)\n if...
[ "0.628713", "0.60859", "0.58912146", "0.58497685", "0.5845183", "0.58448446", "0.57636184", "0.5745768", "0.56690735", "0.56641454", "0.56449795", "0.56372005", "0.56161344", "0.56021035", "0.5598463", "0.5593262", "0.55578494", "0.55446374", "0.55374134", "0.5526914", "0.552...
0.6839229
0
Update Assessment Related Filed
public void updAsmRelated(Connection con, loginProfile prof) throws SQLException, cwException { super.updAsmReleated(con, prof); String SQL = " UPDATE Module " + " SET mod_eff_start_datetime = ?, mod_eff_end_datetime = ?, " + " mod_max_usr_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateAssessment() {\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n ...
[ "0.70179576", "0.6498901", "0.6256154", "0.6077639", "0.5983937", "0.5963297", "0.59297234", "0.59287393", "0.58606154", "0.5857426", "0.5846536", "0.5811677", "0.5793962", "0.57659894", "0.57655436", "0.57626635", "0.57521474", "0.5746668", "0.57228637", "0.57078487", "0.568...
0.56686145
22
When a module is launch, save the progress tracking data for this attempt
public void saveTrackingDataAtLaunch(Connection con, loginProfile prof, long tkh_id, long cos_id) throws SQLException, cwException, cwSysMessage, qdbException, qdbErrMessage { //get the module's course id if(cos_id == 0){ cos_id = getCosId(con, mod_res_id); } //get the Tracking...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "private void saveBeforeRun() {\n if ( _helper != null && _settings.getSaveBeforeRun() )\n _helper.saveBeforeRun();\n }", "public void progressTheGame() {\r\n gameProgress = GameState....
[ "0.6683518", "0.59247756", "0.5606368", "0.5600777", "0.55318135", "0.54766923", "0.53775704", "0.53225076", "0.5301705", "0.52977264", "0.52650565", "0.5254768", "0.523679", "0.52342546", "0.5223326", "0.5210193", "0.5205183", "0.51834786", "0.51736194", "0.515159", "0.51468...
0.5656164
2
Fix the questions' order. The order should be in 1,2,3,...,n,n+1 Only Standard Test (TST) needs to fix its questions' order
private void fixQueOrder(Connection con) throws SQLException, qdbException { if(mod_type == null || mod_type.equalsIgnoreCase(MOD_TYPE_TST)|| mod_type.equals(MOD_TYPE_SVY) || mod_type.equals(MOD_TYPE_EVN)) { //only standard test (TST) needs to fix que order bt its nature //for o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void runBefore() {\n q1 = new TrueFalseQuestion(8, \"You are awesome.\", true);\n q2 = new TrueFalseQuestion(16, \"Donuts are bad for you.\", true);\n q3 = new TrueFalseQuestion(1, \"You suck at programming\", true);\n qList = new QuestionsList();\n qList.addQ...
[ "0.60195404", "0.591039", "0.5773102", "0.57656604", "0.5756277", "0.5745079", "0.57378626", "0.5725294", "0.5677049", "0.5674712", "0.5674047", "0.56540227", "0.565108", "0.56483144", "0.564514", "0.5644392", "0.56195015", "0.5602342", "0.5587222", "0.55754125", "0.5564915",...
0.6370364
0
return a module is publish or not
public String getModStatus(Connection con) throws SQLException { String sql = "select res_status from resources where res_id = ? "; String res_status = null; PreparedStatement pstmt = con.prepareStatement(sql); pstmt.setLong(1, mod_res_id); ResultSet rs = pstmt.executeQuery(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean supportsServeModulesWithoutPublish();", "public Short getIsPublish() {\n\t\treturn isPublish;\n\t}", "public static boolean m133284b() {\n IAVPublishService publishService = ((IAVService) ServiceManager.get().getService(IAVService.class)).publishService();\n C7573i.m23582a((Object)...
[ "0.7331084", "0.69701445", "0.64914733", "0.6221329", "0.61719614", "0.61396146", "0.61396146", "0.60542864", "0.6001091", "0.5999861", "0.5960731", "0.5878999", "0.5840795", "0.5690663", "0.566662", "0.5660702", "0.5659781", "0.56582546", "0.5644113", "0.5628756", "0.5610342...
0.0
-1
determine if the current module resides in a learning solution of type classroom that is not a class if so, start date, end date, status cannot be modified
public boolean isChangeDate(Connection con) throws SQLException { String SQL = "select itm_id from aeItem where itm_type = 'CLASSROOM' and itm_run_ind = 0 and itm_id in " + "(select cos_itm_id from course where cos_res_id in " + "(select rcn_res_id from resourcecontent wher...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkCourseLabConflict(Schedule sched)\n\t{\n\t\tSchedule workingSchedule = sched;\n\t\tCourse workingCourse;\n\t\tLab workingLab, lab813 = null, lab913 = null;\n\t\t\t\n\t\t//Traverse through all the classes in the schedule and find their labs\n\t\tfor(int i = 0; i<workingSchedule.getCourses().siz...
[ "0.53248626", "0.5220745", "0.5198355", "0.5185193", "0.51211655", "0.512115", "0.5108018", "0.50999886", "0.50982153", "0.50738066", "0.50305206", "0.5025917", "0.50104886", "0.5005471", "0.5000188", "0.49972853", "0.49718612", "0.49702936", "0.49614793", "0.49592277", "0.49...
0.48104385
34
Get the list of question from the test;
public String getStaticQueAsXML_test(Connection con, Vector resIdVec,boolean isShuffleMCQue, long tkh_id, ExportController controller) throws SQLException,qdbException ,cwSysMessage,qdbErrMessage,qdbErrMessage { Vector qArray = dbResourceContent.getChildAss(con,mod_res_id); Vector qArray_id = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Question> getQuestions();", "List<Question> getQuestionsUsed();", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "public ArrayList<String> getQuestionsList() {\n\t\tArra...
[ "0.75954926", "0.75626636", "0.73987037", "0.71751124", "0.708457", "0.7053819", "0.70393133", "0.7020083", "0.69553816", "0.6946665", "0.69462657", "0.69025123", "0.67542183", "0.6739658", "0.66725343", "0.6666002", "0.66148114", "0.6607882", "0.6582326", "0.6531514", "0.651...
0.0
-1
Empty constructor for hibernate instantiation purposes
public Player(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HibernateUtil() {\n\t}", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "private HibernateUtil() {\r\n }", "protected CompanyJPA() {\n\t}", "public DB() {\r\n\t\r\n\t}", "public OnibusDAO() {}", "public AbstractHibernateDAOSupport() {\n super();\n }", "pub...
[ "0.7483504", "0.7406703", "0.73605835", "0.70459896", "0.6950582", "0.6940261", "0.6933635", "0.6877075", "0.68343437", "0.68217313", "0.681638", "0.68039465", "0.6763184", "0.67337966", "0.67217875", "0.6721263", "0.66964716", "0.66727734", "0.6669365", "0.6655808", "0.66558...
0.0
-1
Method will return the player's username
public String getUsername() { return this.username; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPlayerOneUserName() {\n if (gameStatus == null) return \"\";\n if (gameStatus.getPlayerOneUserName() == null) return \"\";\n return gameStatus.getPlayerOneUserName();\n }", "String getPlayerName();", "private String getPlayerName() {\n Bundle inBundle = getIntent...
[ "0.8146939", "0.8010249", "0.7984719", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.78468525", "0.78275204", "0.7670552", "0.75976366", "0.7576125", "0.7576125", "0.7576125", "0.7576125", "0.7576125", ...
0.0
-1
Method will set the player's username
public void setUsername(String un) { this.username = un; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setUsername(String username);", "void setUserUsername(String username);", "public final void setUsername(final String value) {\n username = value;\n }", "public void setUsername(String aUsername) {\n username = aUsername;\n }", "public void setUsername(final String username){\n ...
[ "0.7774492", "0.7685262", "0.76346403", "0.7628098", "0.75929844", "0.75566244", "0.75485915", "0.7454499", "0.7416427", "0.74134964", "0.73937446", "0.7370194", "0.7365889", "0.73483545", "0.7333229", "0.7324313", "0.7321288", "0.7320309", "0.7306759", "0.72705066", "0.72697...
0.70855
47
Method will get the player's password
public String getPassword() { return this.password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 getPassword();", "String getPassword();", "String getPassword();", "St...
[ "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.7851781", "0.7848337", "0.7726758", "0.7726758", "0.7633185", "0....
0.71849525
55
This method will set the player's password
public void setPassword(String pw) { this.password = pw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(String pass);", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public void setPassword...
[ "0.74697506", "0.74697506", "0.74697506", "0.7296289", "0.7203204", "0.7150772", "0.710567", "0.70361966", "0.69358855", "0.6935509", "0.68845034", "0.6824525", "0.68228495", "0.6802919", "0.6799455", "0.6758639", "0.67533726", "0.6730922", "0.671347", "0.6709719", "0.6701554...
0.6938176
8
This method will get the player's high score
public int getHighscore() { return this.highscore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHighScore() {\n return getStat(highScore);\n }", "public int getHighScore() {\n return highScore;\n }", "public int getHighScore() {\n\t\treturn highscore;\n\t}", "public int getPlayerScore();", "public int currentHighscore() { \r\n \tFileReader readFile = null;\r\n \tBufferedRea...
[ "0.8548131", "0.8359256", "0.8066649", "0.78180426", "0.7637676", "0.7586899", "0.75471014", "0.74802834", "0.74596864", "0.7444893", "0.741407", "0.73798156", "0.7361888", "0.7324854", "0.7324854", "0.73238546", "0.7312683", "0.72894526", "0.7277277", "0.7277277", "0.7277277...
0.81591785
2
This method sets the player's high score
public void setHighscore(int score) { this.highscore = score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "private void setHighScore(int hs) {\n setStat(hs, highScore);\n }", "public void setHighScore(int newScore) {\n\t\tpreferences().putInteger(username() + HIGH_SCORE, newScore);\n\t\tsave();\n\...
[ "0.8087031", "0.78944635", "0.7659432", "0.7462915", "0.7459309", "0.7455704", "0.7422969", "0.7420468", "0.737786", "0.7362517", "0.7337303", "0.732681", "0.7321722", "0.7310968", "0.72744", "0.72675955", "0.7262494", "0.7253892", "0.72070616", "0.7205358", "0.71978605", "...
0.83247197
0
Start the message receiving thread
public void run(){ try{ // Get client socket. Socket client = server.getClientSocket(); // Get the inputstream from the socket BufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream())); String line; while(true){ if(client.isClosed()){ System.out.println("The...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onStart() {\n\t new Thread() {\n\t @Override public void run() {\n\t receive();\n\t }\n\t }.start();\n\t }", "private void receive() {\n receive = new Thread(\"Receive\") {\n public void run() {\n while (running) {\n byte[] ...
[ "0.7462802", "0.7175917", "0.7153672", "0.708345", "0.7018747", "0.6986291", "0.6967367", "0.696143", "0.69524926", "0.6937341", "0.68699455", "0.68499964", "0.6848412", "0.6834038", "0.6832755", "0.68228674", "0.68134534", "0.67993975", "0.6797674", "0.67858374", "0.67616487...
0.0
-1
/ Prints tree vertically which actually looks like tree 8 6 7 5 3 2 1
void printTree(Node root, int space) { if(root == null) return; printTree(root.right, space + 5); for(int i=0; i<space; i++) System.out.print(" "); System.out.print(root.data); System.out.println(); printTree(root.left, space + 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getVa...
[ "0.80735874", "0.78545153", "0.7737432", "0.7668888", "0.74528605", "0.7301149", "0.7238714", "0.7237574", "0.7188458", "0.7149469", "0.71437687", "0.7070825", "0.7056026", "0.70089406", "0.6991576", "0.69913894", "0.69481945", "0.6925405", "0.692531", "0.69127554", "0.690410...
0.67429984
32
root, root.left, root.right using recursion
void preOrderPrint(Node root, boolean recursion) { if(root == null) return; System.out.print(root.data + " "); preOrderPrint(root.left, true); preOrderPrint(root.right, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void test(){\r\n\t\tTreeNode root = new TreeNode(1); \r\n TreeNode r2 = new TreeNode(2); \r\n TreeNode r3 = new TreeNode(3); \r\n TreeNode r4 = new TreeNode(4); \r\n TreeNode r5 = new TreeNode(5); \r\n TreeNode r6 = new TreeNode(6); \r\n root.l...
[ "0.69227713", "0.677775", "0.666454", "0.66385806", "0.659727", "0.6576448", "0.6528542", "0.64919955", "0.6491828", "0.64719754", "0.6466278", "0.6454098", "0.6426687", "0.642475", "0.6413696", "0.6410385", "0.6397663", "0.63893783", "0.6389049", "0.6379102", "0.6366889", ...
0.0
-1
Creates new form Alunos
public Alunos() { initComponents(); ButtonGroup bg = new ButtonGroup(); //Agora basta vc adicionar os seus RadioButtons ao objeto desta classe. bg.add(rdNome); bg.add(rdID); bg.add(rdNomeEditar); bg.add(rdIdEditar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "FORM createFORM();", "public static void create(Formulario form){\n daoFormula...
[ "0.69779015", "0.6765107", "0.6609289", "0.65468925", "0.6441766", "0.6333465", "0.6313686", "0.6270863", "0.6239766", "0.62085015", "0.6083027", "0.60665804", "0.60583246", "0.60341215", "0.60079306", "0.59718066", "0.592495", "0.59197885", "0.58933717", "0.5893247", "0.5873...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jMenuItem1 = new javax.swing.JMenuItem(); menuBar1 = new java.awt.MenuBar(); menu1 = new java.awt.Menu(); menu2 = new java.awt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.694574...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carrega_estado() throws SQLException{ String sql = "SELECT * FROM tb_estados"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco para o objeto result; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.6641994", "0.63778603", "0.63439304", "0.62963235", "0.62673277", "0.62035954", "0.61967343", "0.6161779", "0.61455274", "0.61421907", "0.61407274", "0.613194", "0.61183405", "0.6088302", "0.6071661", "0.606708", "0.6049811", "0.6020285", "0.60082483", "0.5993581", "0.5992...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaEstadoSelecionado(String nome) throws SQLException{ String sql = "SELECT * FROM tb_estados"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.6642115", "0.6377298", "0.63439196", "0.62973046", "0.6266569", "0.6201932", "0.6196289", "0.61600596", "0.6144276", "0.61420494", "0.61412054", "0.6131594", "0.6118616", "0.6089849", "0.60710543", "0.60666", "0.6049882", "0.6019946", "0.60086364", "0.59929746", "0.5990605...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaCidadeSelecionada(String nome) throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUfEditar.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.66414386", "0.6376517", "0.634287", "0.62972134", "0.6267276", "0.6203511", "0.6195479", "0.6161721", "0.61452174", "0.6141247", "0.6141059", "0.6131388", "0.6116803", "0.6089988", "0.60716796", "0.6066551", "0.60509646", "0.6020287", "0.60089916", "0.59929323", "0.5991551...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carrega_cidade() throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUF.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.66414386", "0.6376517", "0.634287", "0.62972134", "0.6267276", "0.6203511", "0.6195479", "0.6161721", "0.61452174", "0.6141247", "0.6141059", "0.6131388", "0.6116803", "0.6089988", "0.60716796", "0.6066551", "0.60509646", "0.6020287", "0.60089916", "0.59929323", "0.5991551...
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaCidadeModificada() throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUfEditar.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = ...
[ "0.6641994", "0.63778603", "0.63439304", "0.62963235", "0.62673277", "0.62035954", "0.61967343", "0.6161779", "0.61455274", "0.61421907", "0.61407274", "0.613194", "0.61183405", "0.6088302", "0.6071661", "0.606708", "0.6049811", "0.6020285", "0.60082483", "0.5993581", "0.5992...
0.0
-1
End of variables declaration//GENEND:variables
private boolean verificaEmailJaCadastrado(String email) throws SQLException { String sql = "SELECT * from crud_alunos where email=?"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); preparador.setString(1, email); ResultSet rs = preparador.executeQuery(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages the strings ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setName(String artistName) { this.artistName = artistName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "public static void updateStrings() {\n String pathName;\n switch (Parameters.getLanguage()) {\n case ENGLISH:\n default:\n pathName = englishStringPath;\n break;\n case SPA...
[ "0.67189604", "0.67189604", "0.6573106", "0.6376077", "0.6350805", "0.6341183", "0.6270052", "0.62477887", "0.62453574", "0.6120153", "0.6082534", "0.6025222", "0.60196835", "0.59700686", "0.5954514", "0.5904029", "0.5904029", "0.58455676", "0.5826185", "0.57788825", "0.57749...
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages the image ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setArtistImage(Bitmap artistImage) { this.artistImage = artistImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }", "public void processAddImageOverlay() {\n PropertiesManager props = PropertiesManager...
[ "0.70826167", "0.68525773", "0.682154", "0.68015385", "0.679737", "0.67890215", "0.676057", "0.66786706", "0.6674635", "0.6641123", "0.6600325", "0.6596272", "0.6587135", "0.6577808", "0.6577607", "0.65639555", "0.655918", "0.6551521", "0.6536414", "0.64975053", "0.6486596", ...
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages all of the lists ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setArtistAlbums(List<Album> artistAlbums) { this.artistAlbums = artistAlbums; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "public void loadAllLists(){\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }", "private void loadLists() {\n ...
[ "0.7452069", "0.73964185", "0.7171937", "0.70549685", "0.6950161", "0.66597956", "0.66391563", "0.65322596", "0.64728576", "0.64640254", "0.6426397", "0.64169896", "0.6405371", "0.63977605", "0.6367409", "0.6359676", "0.634297", "0.6329413", "0.6324273", "0.6307251", "0.62458...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof FoundationTxn)) { return false; } FoundationTxn other = (FoundationTxn)object; if (this.getId() != other.getId() && (this.getId() == null || !this.getId().equals(other.getId()))) return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6892953", "0.68367153", "0.67017436", "0.66378665", "0.66378665", "0.658794", "0.65751237", "0.65751237", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.65581834", "0.65581834", "0.65417314", "0.65221244", "0.6513472", "0.6485106", "0.6473...
0.0
-1
TODO: send email manager
protected void notify(Employee e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SendEmail() {\t\n\t}", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "@Override\n public void sendEmail() {\n return;\n }", "@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}", "@Override\n\tvoid email() {\n\t\tSy...
[ "0.76466936", "0.7562101", "0.7411777", "0.71934015", "0.70905185", "0.7084658", "0.69783354", "0.6949244", "0.69016236", "0.68946874", "0.68567157", "0.6826835", "0.67769796", "0.67700547", "0.6755818", "0.6745769", "0.6744518", "0.67387706", "0.67357945", "0.67293596", "0.6...
0.0
-1
TODO Autogenerated method stub
@Override public void display() { Scanner sc = new Scanner(System.in); welcomeMessage(); loggy.info("User sees the welcome menu"); boolean loggingIn = true; User user = null; while(loggingIn) { user = loginMenu(sc); if(user != null) { loggingIn = false; loggy.info("User logged in!")...
{ "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
private void completeTodoMenu(User u) { }
{ "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
private void deleteTodoMenu(User u) { }
{ "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
private void addTodoMenu(User u,Scanner sc) { System.out.println("Title:"); String title = sc.nextLine(); System.out.println("Description: "); String description = sc.nextLine(); Todo todo = new Todo(); todo.setTitle(title); todo.setDescription(description); todo.setComplete(false); boo...
{ "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
lstSubMenu=new ArrayList(); MenuModel obj=new MenuModel(); obj.setTitle("new menu"); obj.setChildren(new ArrayList()); lstSubMenu.add(obj); Messagebox.show(String.valueOf(item.getMenuid()));
@Command @NotifyChange({"lstSubMenu","lstLastMenu","lstMainMenu"}) public void fillSubMenu(@BindingParam("item") MenuModel item) { for (MenuModel obj : lstMainMenu) { obj.setSclassName("defaultmenuitem"); } item.setSclassName("menuitem"); lstSubMenu=mData.getSubMenuList(item.getMenuid(),1,comp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem)...
[ "0.63328135", "0.6267756", "0.6101345", "0.60886246", "0.5976639", "0.59700924", "0.5955057", "0.5919033", "0.5909622", "0.5878559", "0.5878001", "0.5852365", "0.58505374", "0.58503306", "0.5840665", "0.5834539", "0.5831543", "0.5776299", "0.5770996", "0.575431", "0.5746509",...
0.6675861
0
/ Borderlayout bl = (Borderlayout) Path.getComponent("/mainlayout"); Center center = bl.getCenter(); center.getChildren().clear(); Executions.createComponents(pagename, center, null); Executions.getCurrent().sendRedirect(pagename); Messagebox.show(pagename);
@Command public void menuClicked(@BindingParam("pagename") String pagename) { Vlayout vl=(Vlayout)Path.getComponent("/mainlayout"); //Scrollview s=(Scrollview)vl.getFellow("scvCenter"); //Executions.createComponents(pagename, s, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"10...
[ "0.62831175", "0.60872203", "0.5942663", "0.59363616", "0.59353006", "0.5913012", "0.5884627", "0.5861364", "0.5858017", "0.5840587", "0.5830624", "0.58013445", "0.57704353", "0.57212985", "0.57171774", "0.57163936", "0.5696023", "0.56919956", "0.5686218", "0.5664526", "0.559...
0.5906558
6
Interface class of DeviceStatus. Created by Nanan on 3/4/2015.
public interface DeviceStatusEPSProvider { /** * Call recalculation before get the device status * @return Device status info. Should check {@link DeviceStatusEPS#statusCalculatedSuccessfully} before use */ DeviceStatusEPS calculateDeviceStatus(); boolean init(Context context); boolean ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Status getDeviceStatus() {\n return mDeviceStatus;\n }", "public void newDeviceStatus(String deviceId, Boolean statusOK);", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "...
[ "0.7560063", "0.6766958", "0.673037", "0.6674297", "0.6586524", "0.6542217", "0.6465917", "0.6465917", "0.63822585", "0.6357549", "0.6322756", "0.63115275", "0.6304438", "0.6304438", "0.6301686", "0.6301686", "0.6301686", "0.6292739", "0.6275976", "0.62358904", "0.6218708", ...
0.6264034
19
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new java...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
Method that registers a user
public static void hentOgSkrivKostnader() { Connection con = getCon(); PreparedStatement prepStmt = null; ResultSet res = null; try { String query = "SELECT prosj_id, kunde, tekst, beløp FROM prosjekt JOIN prosjektkostnader USING(prosj_id) WHERE faktura_sendt IS NULL ORDER BY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "void registerUser(User newUser);", "Boolean registerNewUser(User user);", "String registerUser(User user);", "private void registerUser()\n {\n /*AuthService.c...
[ "0.85432756", "0.85207987", "0.84887344", "0.8445041", "0.8187723", "0.8124593", "0.7888888", "0.77513146", "0.7731311", "0.76979655", "0.76608837", "0.76303506", "0.7600218", "0.7596611", "0.75708026", "0.75630033", "0.7526643", "0.75247556", "0.7517011", "0.75141287", "0.74...
0.0
-1
Use this whenever you want to connect to the database
public static Connection getCon() { Connection con= null; try{ Class.forName(driver); con = DriverManager.getConnection(dBUrl); } catch (SQLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectDatabase(){\n }", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n Databa...
[ "0.8132343", "0.8106455", "0.80734146", "0.79395664", "0.788702", "0.78714114", "0.78585935", "0.7779267", "0.771905", "0.77161837", "0.7650062", "0.76437056", "0.7624486", "0.7622875", "0.757597", "0.75692666", "0.7527425", "0.75084", "0.75079095", "0.75068474", "0.7504347",...
0.0
-1
you can use a String and convert that to a Char[]. Like below.
public static void main(String[] args) { String sampleStr="test a is this"; char sampleInput[] = sampleStr.toCharArray(); //char[] sampleInput= new char[] {'t','e','s','t',' ','a',' ','i','s',' ','t','h','i','s',' ','h','i'}; System.out.println("Original String # "); for (char c : sampleInput)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Character[] toCharArray(String str){\n\t \n\t Character[] charArray = new Character[str.length()];\n\t for(int i = 0; i < charArray.length; i++){\n\t\t \n\t\t charArray[i] = new Character(str.charAt(i));\n\t }\n\t \n\t return charArray;\n }", "char[] toCharArray();", "public char[] getArray(Stri...
[ "0.79111385", "0.76464343", "0.7533727", "0.75282955", "0.73535764", "0.73008746", "0.6890957", "0.6880255", "0.6861824", "0.68064", "0.6796457", "0.67183006", "0.66963243", "0.6627368", "0.6477463", "0.64465207", "0.6428685", "0.6261606", "0.624482", "0.62119484", "0.6173286...
0.0
-1
for testing purposes only
protected ElevatorController(Elevator elevator) { this.elevator = elevator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() ...
[ "0.6246619", "0.6131587", "0.61111015", "0.60902524", "0.60390013", "0.6016071", "0.5905562", "0.58250266", "0.5801673", "0.5760208", "0.57391286", "0.5738685", "0.5735511", "0.57245374", "0.5708071", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56...
0.0
-1
TODO Autogenerated method stub
protected void openDoors() { }
{ "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
visibility was changed for testing purposes
protected void closeDoors() { timerTask = executorService.submit(new TimerCallable(DOORS_CLOSE_TIME)); Boolean result = false; try { result = timerTask.get(); } catch (InterruptedException e) { System.out.println("thread was interrupt"); e.printStackTrace(); } catch (ExecutionException e) { System...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void sacri...
[ "0.66572857", "0.6403096", "0.6254353", "0.61732596", "0.6103391", "0.60751987", "0.607075", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5964245", "0.5962987", "0.59567904", "0.5955674", "0.5952651", "0.5952651", "0.5952013", "0.5952013", ...
0.0
-1
TODO Autogenerated method stub
private void executeAction(ElevatorAction first) { }
{ "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
Odredjivanje zadane cifre u broju
public static int VratiCifru(int n, int red) { int cifra = 0; for(int i = 0; i < red; i++) { cifra = n % 10; n /= 10; } return cifra; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "@Override\n\tpublic v...
[ "0.6302457", "0.62777984", "0.62343097", "0.6206828", "0.61636806", "0.6142722", "0.6132328", "0.6105689", "0.6104127", "0.6076713", "0.6052739", "0.604791", "0.6043979", "0.6008252", "0.5992362", "0.59553456", "0.5937906", "0.5920478", "0.58956695", "0.58934194", "0.58479714...
0.0
-1
Constructor for objects of class Finn
public Finn() { System.out.println("is a Jedi,HumanLike,LightSide,Ressistance,Piolet,Annoying,StillLiving"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mannschaft() {\n }", "public Facturacion() {\n }", "public Factura() {\r\n }", "public Factura() {\r\n }", "public NFA(){}", "public FeeAccount ()\n {\n }", "public Fish() {\r\n\t}", "public Fact() {\n }", "public StudentFee() {\n }", "public Terms() {}", "public ...
[ "0.6513707", "0.6466834", "0.64311475", "0.64311475", "0.6378146", "0.6170532", "0.6148744", "0.6066985", "0.6040524", "0.6014322", "0.599362", "0.59926456", "0.59917897", "0.59911376", "0.5976734", "0.5958879", "0.595548", "0.5950882", "0.59197325", "0.59132487", "0.5912062"...
0.0
-1
Writes an int to file.
public void storeTrials(int i) throws Exception { fileHandler.storeInt(file, i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeInt(int value);", "void writeInt(int v) throws IOException;", "void writeInt(int i) throws IOException;", "protected abstract void write( int value ) throws IOException;", "public void writeInt(int value)\n throws java.io.IOException {\n\n if (isBigEndian) {\n outputStrea...
[ "0.82831204", "0.81243676", "0.79168093", "0.7607195", "0.75092834", "0.74702305", "0.7414951", "0.7096608", "0.7093209", "0.704554", "0.69152665", "0.6849898", "0.6788711", "0.6735242", "0.67015845", "0.6679935", "0.6675145", "0.6662045", "0.66058093", "0.6575881", "0.656838...
0.0
-1
Reads an int from file.
public int readTrials() throws Exception { return fileHandler.readInt(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "public int readInt() throws IOException;", "int readInt() throws IOException;...
[ "0.78618497", "0.7183241", "0.71308935", "0.6965804", "0.69605935", "0.67634726", "0.6728272", "0.6644968", "0.66376805", "0.6488864", "0.64602673", "0.6446301", "0.6436953", "0.6436711", "0.6409741", "0.6320966", "0.62798965", "0.6259711", "0.6162338", "0.6157869", "0.615343...
0.5990466
27
Created by Administrator on 2017512.
public interface UserService { User findUserByLoginName(String loginName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n ...
[ "0.5997734", "0.59961516", "0.5972307", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.58970493", "0.5778937", "0.57678854", "0.576639", "0.57181334", "0.5707776", "0.56895375", "0.56611806", "0.5652614", "0.5646487", "0.56204826...
0.0
-1
/ Map address builder to properties Address.Builder is an example of building an immutable object
@Override protected PropertiesHandler<Person> getPropertiesHandler() { final PropertiesHandler<Address.Builder> addressHandler = new MappedPropertiesHandler<Address.Builder>() { @Override public Address.Builder getTarget() { return Address.builder(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder setAddress(String address);", "@Override\n\t\tpublic Builder address(final Address address) {\n\t\t\tthis.map.put(ADDRESS, address);\n\t\t\tthis.previous = ADDRESS;\n\t\t\treturn builder();\n\t\t}", "public com.google.protobuf.StringValue.Builder getAddressBuilder() {\n \n onChanged();\n ...
[ "0.71394235", "0.66910887", "0.6637824", "0.65292364", "0.64273447", "0.64191544", "0.6347695", "0.63083094", "0.628242", "0.62713253", "0.6185284", "0.61706436", "0.61622036", "0.61622036", "0.61529166", "0.61369205", "0.61146474", "0.6091821", "0.6091821", "0.60774773", "0....
0.0
-1
todo support keyed:true as well
private void parseBuckets(JsonArray buckets) { for (JsonElement bucketv : buckets) { JsonObject bucket = bucketv.getAsJsonObject(); Range geoDistance = new Range( bucket, bucket.has(String.valueOf(FROM)) ? bucket.get(String.valueOf(FROM)).getAsDoub...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getKeyArray()\n/* */ {\n/* 91 */ return this.m_keyTable;\n/* */ }", "@Override\n public int key() {\n return this.key;\n }", "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "public interface InverseHashView<K, V> {\r\n\r\n /**\r...
[ "0.6065241", "0.58469486", "0.57605505", "0.5751618", "0.5749359", "0.5735192", "0.5683047", "0.56647456", "0.56525993", "0.5650173", "0.561825", "0.5616855", "0.55951804", "0.5570119", "0.553929", "0.55260634", "0.55205065", "0.551529", "0.551529", "0.551529", "0.551529", ...
0.0
-1
Acceptance Criteria "Users should be able to retrieve all contacts in an address book"
@Test @Transactional public void getAllContactsWithInAddressBook() throws Exception { restAddressBookMockMvc.perform( get("/api/address-books/{id}/contacts", "1").param("unique", "false")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICAT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tesPrintAllContactsOfAllBooks() {\n\t\t// add 1 contacts to addrbook1\n\t\tcontactService.addContact(addrBook1, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Jack Sparrow\");\n\t\t\t}\n\t\t});\n\n\t\t// add 2 contacts to addrbook2\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t...
[ "0.70349354", "0.6926006", "0.6394169", "0.6382996", "0.6359822", "0.62944007", "0.6106353", "0.6049019", "0.6009081", "0.58930296", "0.5884436", "0.5878097", "0.5874886", "0.5873779", "0.5851886", "0.5774756", "0.576015", "0.5751849", "0.5740987", "0.5708572", "0.5706343", ...
0.69684964
1
Acceptance Criteria "Users should be able to retireve a unique set of all contacts across multiple address books"
@Test @Transactional public void getAllContactsWithInMultiAddressBookUnique() throws Exception { restAddressBookMockMvc.perform( get("/api/address-books/{id}/contacts", "1,2").param("unique", "true")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tesPrintAllContactsOfAllBooks() {\n\t\t// add 1 contacts to addrbook1\n\t\tcontactService.addContact(addrBook1, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Jack Sparrow\");\n\t\t\t}\n\t\t});\n\n\t\t// add 2 contacts to addrbook2\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t...
[ "0.6463367", "0.63609445", "0.5992628", "0.5974631", "0.5965434", "0.5895554", "0.570652", "0.5664803", "0.56218064", "0.5600294", "0.55776393", "0.5545486", "0.5533908", "0.55079126", "0.54897255", "0.54822236", "0.5465135", "0.544181", "0.542487", "0.53809774", "0.5361873",...
0.7097519
0
Creates the metamodel objects for the package. This method is guarded to have no affect on any invocation but its first.
public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features ontologicalStructureEClass = createEClass(ONTOLOGICAL_STRUCTURE); createEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__ONTOLOGICAL_CONCEPTS); createEReference(ontologicalStruct...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttri...
[ "0.6877529", "0.6802357", "0.66864955", "0.66605544", "0.66467", "0.66181123", "0.6607485", "0.6604758", "0.6577712", "0.6567993", "0.655177", "0.65493155", "0.65404004", "0.6535015", "0.6533158", "0.65296984", "0.6514776", "0.6512043", "0.6500722", "0.6488522", "0.6481276", ...
0.6394011
27
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes logicalConditionEClass.getESuperTy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Regist...
[ "0.65663505", "0.64637876", "0.6438184", "0.6420078", "0.6410195", "0.6408812", "0.6404318", "0.63993853", "0.6382283", "0.6365", "0.6354965", "0.6342994", "0.63416624", "0.632297", "0.63196874", "0.6313231", "0.6308082", "0.63057786", "0.62943226", "0.62855506", "0.62708074"...
0.6031409
50
Final part of setting AutoStopBackward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopBackward is true or flag is false, internal property AllowAlwaysSetProperties is true or flag equals...
public void autoStopBackward(boolean flag) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "@Override\n public void stop() {\n\n leftDrive.setPower...
[ "0.5930046", "0.58047414", "0.5563893", "0.54935867", "0.5437859", "0.5437209", "0.5432637", "0.5416795", "0.54029375", "0.53579557", "0.5344623", "0.53145283", "0.53107", "0.5272225", "0.5244859", "0.5238568", "0.5226147", "0.5206634", "0.51991415", "0.5187087", "0.5184199",...
0.62103003
0
Final part of setting AutoStopBackwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopBackward is true, delay is FOREVER or positive, internal property AllowAlwaysSetProperties ...
public void autoStopBackwardDelayTime(int delay) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void autoStopForwardDelayTime(int delay) throws JposException;", "@Override\n public native void setAutoDelay(int ms);", "private void updateAutoTriggerDelay(long delay) {\n if (mAutoTriggerDelay != delay) {\n mAutoTriggerDelay = delay;\n updateReachabilityStatus();\n ...
[ "0.622054", "0.6029802", "0.5668452", "0.55667233", "0.5543996", "0.5520008", "0.5487572", "0.5469888", "0.5427333", "0.54209983", "0.54185045", "0.54018784", "0.53923863", "0.53561085", "0.5353224", "0.5342955", "0.5341041", "0.5318232", "0.52931523", "0.52873933", "0.523294...
0.6865115
0
Final part of setting AutoStopForward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopForward is true or flag is false, internal property AllowAlwaysSetProperties is true or flag equals t...
public void autoStopForward(boolean flag) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setForward(boolean isForward);", "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "public void setForward(boolean fwdVal) {\n\t\tRelay.Value currentValue = this.get(),\n\t\t\t\t newValue = currentValue;\n\t\t\n\t\tif(currentValue == Relay.Value.kForward) ...
[ "0.5978907", "0.5653047", "0.5582778", "0.55804795", "0.55722874", "0.5448406", "0.53815466", "0.5345135", "0.5322298", "0.529217", "0.5222079", "0.51959664", "0.5195593", "0.51745486", "0.5134072", "0.5133084", "0.51227874", "0.5065173", "0.5058528", "0.5049173", "0.50469345...
0.5520353
5
Final part of setting AutoStopForwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopForward is true, delay is FOREVER or positive, internal property AllowAlwaysSetProperties is...
public void autoStopForwardDelayTime(int delay) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public native void setAutoDelay(int ms);", "private void driveForwardTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeDriveForward){\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.driveForwardSpeed, Config.Auto.driveForwardSpeed);\r\n\t\t\tSystem.out.println(timer.get());}\r\n\t\t\r\n\t\telse\r\n...
[ "0.61960846", "0.61035347", "0.5966795", "0.5699695", "0.5686104", "0.560414", "0.55897164", "0.5575503", "0.55718076", "0.5568489", "0.5531601", "0.55141824", "0.54998523", "0.5492618", "0.54809237", "0.5448325", "0.5435209", "0.54170436", "0.53934014", "0.53741693", "0.5350...
0.6088543
2
Final part of AdjustItemCount method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified direction is AIC_BACKWARD or AIC_FORWARD, If direction is AIC_FORWARD, CapAutoStopForwardItemCount is true...
public void adjustItemCount(int direction, int count) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetItemCount(int direction) throws JposException;", "@Override\n public void onCardSwiped(Direction direction) {\n Log.d(TAG, \"onCardSwiped: p=\" + manager.getTopPosition() + \" d=\" + direction);\n if (direction == Direction.Right){\n //...
[ "0.49733475", "0.4926202", "0.47653764", "0.47624868", "0.47582462", "0.4741134", "0.4713712", "0.47061312", "0.46910745", "0.4658593", "0.46484277", "0.45945227", "0.45795566", "0.45137867", "0.44765267", "0.44700736", "0.44663426", "0.44179475", "0.44144285", "0.44122085", ...
0.5893055
0
Final part of MoveBackward method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, CapMoveBackward is true, Specified speed is between 1 and CapSpeedStepsBackward.
public void moveBackward(int speed) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveBackward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(-1*DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(-1*DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n ...
[ "0.6379476", "0.61516815", "0.6143169", "0.5971632", "0.5971443", "0.5868396", "0.580206", "0.5708593", "0.57072586", "0.5699796", "0.56750154", "0.567497", "0.55947095", "0.5582382", "0.55643404", "0.55281967", "0.55209893", "0.54700834", "0.5437179", "0.5416251", "0.5412132...
0.67322975
0
Final part of MoveForward method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified speed is between 1 and CapSpeedStepsForward.
public void moveForward(int speed) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void forward() {\n forward(DEFAULT_SPEED);\n }", "public boolean moveStep() {\n\t\t// TODO: take orientation into account\n\t\t\n\t\t// Work out the distance to the destination\n\t\tDouble2D delta = destination.subtract(getPosition());\n//\t\tSystem.out.println(this.toString() + \"has \" + delta...
[ "0.6735582", "0.63137656", "0.62751275", "0.62744343", "0.62006557", "0.61884916", "0.6175533", "0.6161837", "0.612948", "0.61081094", "0.61003464", "0.60940987", "0.60930085", "0.6089787", "0.6044636", "0.5969587", "0.594128", "0.594059", "0.59390384", "0.59367615", "0.59291...
0.6220005
4
Final part of ResetBelt method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled.
public void resetBelt() throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}", "@Override\n public void resetDeviceConfigurationForOpMode() {\n\n }", "public void damageDevice() {\n\t\t\r\n\t}", "public void initDevice() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void resetState() {\r\n\t\t// what t...
[ "0.63480014", "0.62842155", "0.60755575", "0.6021842", "0.59096867", "0.5862699", "0.58338207", "0.5747195", "0.57426697", "0.568763", "0.56243587", "0.5621429", "0.5596975", "0.5551722", "0.5543164", "0.5542218", "0.5513334", "0.54900485", "0.54782015", "0.5466333", "0.54536...
0.0
-1
Final part of ResetItemCount method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified direction is RIC_BACKWARD or RIC_FORWARD, If direction is RIC_FORWARD, CapAutoStopForwardItemCount is true,...
public void resetItemCount(int direction) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustItemCount(int direction, int count) throws JposException;", "public void reset() {\n setPrimaryDirection(-1);\n setSecondaryDirection(-1);\n flags.reset();\n setResetMovementQueue(false);\n setNeedsPlacement(false);\n }", "@Override\n public void onRew...
[ "0.5411047", "0.50918126", "0.5005823", "0.50055116", "0.49516103", "0.48616847", "0.48503166", "0.48466754", "0.4843598", "0.4837984", "0.48337197", "0.48265928", "0.47046328", "0.4683142", "0.46669585", "0.4616831", "0.4602014", "0.45976624", "0.45944878", "0.45875964", "0....
0.60498875
0
Final part of StopBelt method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled.
public void stopBelt() throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }", "@Test\n public void stopDeviceCheck() {\n System.out.println(\"* Device JUnit4Test: stopDeviceCheck()\");\n\n // authenticate the device and then stop it\n authenticateSimulatedDevice();\n mMainServ...
[ "0.6853224", "0.64138854", "0.63149655", "0.63149387", "0.6155425", "0.59891075", "0.5893654", "0.5886364", "0.58244944", "0.5819748", "0.5801616", "0.57895803", "0.57771313", "0.57699585", "0.5769905", "0.5751069", "0.5747406", "0.5744902", "0.5730278", "0.5719845", "0.56845...
0.5413765
50
Constructor for object class ProgrammerManaged
public ProgrammerManaged(String inFileString, String ouString, int bufferSize, ArrayList<String> keywords) { super(inFileString, ouString, bufferSize, keywords); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MonHoc() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ProgramWilmaa()\n\t{\n\t}", "public StudentChoresAMImpl() {\n }", "public Constructor(){\n\t\t\n\t}", "public PnuematicSubsystem() {\n\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Professor()\n\t{\n\t\t//stuff\n\t}", ...
[ "0.6625184", "0.6550024", "0.6548299", "0.6537601", "0.64704967", "0.6437347", "0.63909817", "0.639062", "0.6361363", "0.6350232", "0.63209134", "0.63179713", "0.6312906", "0.62934536", "0.62744176", "0.62637186", "0.6254828", "0.62520456", "0.6233898", "0.62180036", "0.62161...
0.0
-1
Read TextFile using Programmermanaged ByteArray NIO method and save as chank in a ArrayList
@Override public void ReadTextFile() { // Using a programmer-managed byte-array try (FileInputStream in = new FileInputStream(inFileStr)) { startTime = System.nanoTime(); byte[] byteArray = new byte[bufferSize]; int bytesCount; while ((bytesCount = in.read(byteArray)) != -1) { snippets.add(new Stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List readFile(String pathToFile);", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount...
[ "0.64460856", "0.6022112", "0.59517425", "0.5946892", "0.5861238", "0.58503395", "0.58141047", "0.57776433", "0.5768242", "0.5757547", "0.57402223", "0.5716108", "0.57031286", "0.5670287", "0.564536", "0.5628151", "0.5625256", "0.55910724", "0.55595165", "0.5518197", "0.54989...
0.62839526
1