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
Creates a pane for the scene.
private BorderPane getPane() { bigField = new BigField(); // Create a Field model view = new BigFieldView(bigField); // Create a pane view BorderPane pane = new BorderPane(); pane.setCenter(view); return pane; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createScene() {\r\n imageView.setFitWidth(400);\r\n imageView.setFitHeight(300);\r\n\r\n Scene scene = new Scene(rootScene(), 700, 600);\r\n\r\n primaryStage.setTitle(TITLE);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }", "private void...
[ "0.7228391", "0.7225631", "0.7032998", "0.6982305", "0.6957309", "0.6931978", "0.6808329", "0.67718387", "0.6734013", "0.67027444", "0.6628945", "0.66272837", "0.6595411", "0.6588124", "0.65791124", "0.65593684", "0.65334505", "0.65086657", "0.6502138", "0.649875", "0.6485599...
0.5815953
93
Returns the BigField instance.
public static BigField getBigField() { return bigField; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BigFieldView getBigFieldView() {\n return view;\n }", "public static BigB getBigB()\r\n{\treturn bigB;\t\r\n}", "public BCField getField() {\n return (BCField) getOwner();\n }", "public static Field getInstance() {\n if (_instance == null) {\n _instance = n...
[ "0.72337615", "0.651053", "0.6500959", "0.62968427", "0.617897", "0.58848894", "0.5794624", "0.5794624", "0.57884854", "0.5737063", "0.57249904", "0.5708974", "0.5669363", "0.5601033", "0.5600487", "0.5579467", "0.55790734", "0.55726457", "0.5544741", "0.55227447", "0.5520273...
0.8633858
0
Returns the BigFieldView instance.
public static BigFieldView getBigFieldView() { return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BigField getBigField() {\n return bigField;\n }", "private BorderPane getPane() {\n bigField = new BigField(); // Create a Field model\n view = new BigFieldView(bigField); // Create a pane view\n BorderPane pane = new BorderPane();\n pane.setCenter(view);\n\n ...
[ "0.7095129", "0.59307194", "0.5744347", "0.55544525", "0.5504988", "0.5418876", "0.52670676", "0.5236658", "0.5224124", "0.51881546", "0.5142041", "0.5138788", "0.5126258", "0.51166004", "0.50979966", "0.50979966", "0.5079178", "0.5056786", "0.5051212", "0.5041479", "0.504107...
0.9047102
0
initialize an array of integers
public static void main(String[] args){ int[] intArr = new int[100]; for(int i = 0; i < 100; i++){ intArr[i] = i + 1; } // use tail recursion int tSum = tailSum(intArr); System.out.println("Tail recursion sum: " + tSum); // use normal recursion int nSum = sum(intArr); System.out.println("Normal recursion sum: " + nSum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Array() {\n\t\tarray = new int[0];\n\t}", "Array(int[] n) {\n\t\tarray = n;\n\t}", "Array(int x) {\n\t\tarray = new int[x];\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = 0; // make each index 0\n\t\t}\n\t}", "public static IntegerVarArray make(int[] buffer) {\n\t\treturn new IntegerVarArray...
[ "0.74692297", "0.73389935", "0.7335861", "0.73140204", "0.71245253", "0.7092081", "0.6927457", "0.692736", "0.69170713", "0.68710226", "0.6831874", "0.68309784", "0.68300176", "0.68192774", "0.6749456", "0.66991556", "0.6673683", "0.66693085", "0.66467327", "0.66451603", "0.6...
0.0
-1
Uses tail recursion to find the recursive sum
public static int tailSum(int[] arr){ if(arr.length == 0){ System.err.println("The array is empty"); return -1; } return findTailSum(arr, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n ret...
[ "0.69562155", "0.6770246", "0.67412", "0.6558051", "0.6536706", "0.65269053", "0.6526279", "0.6452972", "0.6373978", "0.6235236", "0.61544406", "0.6122263", "0.6119384", "0.6116771", "0.6084892", "0.6048373", "0.60327905", "0.60141337", "0.60108083", "0.59835404", "0.59428704...
0.6484668
7
Locates and fixes spikes in a coverage profile (potentially) caused by false positives in a bloom filter. Theory: If a highcount kmer is adjacent on both sides to lowcount kmers, it may be a false positive. It could either be reduced to the max of the two flanking points or examined in more detail.
private static void fixSpikes(int[] array){ for(int i=1; i<array.length-1; i++){ long a=Tools.max(1, array[i-1]); int b=array[i]; long c=Tools.max(1, array[i+1]); if(b>1 && b>a && b>c){ //peak if((b>=2*a || b>a+2) && (b>=2*c || b>c+2)){ //spike array[i]=(int)Tools.max(a, c); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ruleOutPos(){\n for(int i=0;i<scores.length;i++) {\n for(int j=0;j<scores[i].length;j++) {\n scores[i][j][13] = 0;//0=pass, >0 is fail, set to pass initially\n\n //check Ns - bit crude - what to discount regions with high N\n double ns = (d...
[ "0.56095535", "0.5301646", "0.5187866", "0.51815337", "0.51131004", "0.5028765", "0.5018701", "0.5007627", "0.49935505", "0.49893826", "0.49744508", "0.49405977", "0.49304715", "0.49173906", "0.48937938", "0.48922873", "0.48866764", "0.4885772", "0.48833153", "0.48566043", "0...
0.5597284
1
Check whether the expression is a valid Date expression as defined in the regex
@Override public boolean isValidExpression(String expr) { final Pattern pattern1 = Pattern.compile(DATE_REGEX_FULL); final Pattern pattern2 = Pattern.compile(DATE_REGEX_FULL_2); final Matcher matcher1 = pattern1.matcher(expr); final Matcher matcher2 = pattern2.matcher(expr); return matcher1.matches() ^ matcher2.matches(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "public static boolean isValidDate(String test) {\n if (test.matches(VALIDATION_REGEX)) {\n try {\n ...
[ "0.72910225", "0.6995062", "0.6864977", "0.68219554", "0.67640597", "0.66581047", "0.664901", "0.66017836", "0.659678", "0.6542919", "0.6530347", "0.6507966", "0.6499397", "0.6497887", "0.6491372", "0.6416604", "0.6393528", "0.63475645", "0.6334798", "0.6330079", "0.6319637",...
0.76731557
0
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String s="https://en.wikipedia.org/wiki/Main_page"; String s1[]=s.split("/"); System.out.println(s1[2]); }
{ "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
This class has access to MyService and MyServiceFactory, but not MyServiceImpl
public static void main(String[] args) { MyService myService = MyServiceFactory.createMyService(); myService.run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static interface Service {}", "private ServiceFactory() {}", "private Service() {}", "public interface MineService {\n}", "public interface Service {\n // Service-specific methods go here\n }", "public interface ServiceFactory\n{\n /**\n * Retrieves a service instance. Is provided ...
[ "0.7053562", "0.69900304", "0.68800426", "0.6800737", "0.6694152", "0.6657991", "0.6610533", "0.65849483", "0.6550296", "0.6491542", "0.6491542", "0.63614035", "0.6359335", "0.6312243", "0.6300763", "0.625655", "0.6225168", "0.6218842", "0.6138481", "0.613843", "0.6132416", ...
0.0
-1
set uo connection with the server
public void run() { Socket socket; try { socket = new Socket(servers.getServerAddress(),Integer.parseInt(servers.getServerPort())); } catch (IOException e) { // e.printStackTrace(); System.err.println("Cannot connect to the server: " + servers.getServerAddress() + " at port:" + servers.getServerPort()); return; } ObjectOutputStream toServer = null; try { toServer = new ObjectOutputStream(socket.getOutputStream()); } catch (IOException e) { e.printStackTrace(); } BufferedReader toClient = null; try { toClient = new BufferedReader(new InputStreamReader(socket.getInputStream())); } catch (IOException e) { e.printStackTrace(); } try { toServer.writeObject(argsToServer); } catch (IOException e) { e.printStackTrace(); } //get and print query results String line; int count = 0; ByteArrayOutputStream out = new ByteArrayOutputStream(); PrintStream pr = new PrintStream(out); try { while((line = toClient.readLine()) != null) { System.out.println("<" + servers.getServerAddress() + "> :" + line); count++; pr.println(line); } pr.flush(); System.out.println(servers.getServerAddress()+ " query count: " + count); socket.close(); } catch (IOException e) { e.printStackTrace(); } //saveLocalFile(out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConnection(Connection conn);", "void setConnection(Connection con);", "public void setConn(Connection conn) {this.conn = conn;}", "public void setServerConnection(ServerConnection toConnection)\n {\n m_oServerConnection = toConnection;\n }", "public void conectServer() {\n\n\t}"...
[ "0.67936635", "0.6739702", "0.63497657", "0.63380027", "0.63367045", "0.6307563", "0.62846226", "0.62299925", "0.6211893", "0.62109166", "0.6205591", "0.6174159", "0.61608297", "0.6111655", "0.6097229", "0.6011238", "0.59696376", "0.59336334", "0.593099", "0.5925894", "0.5914...
0.0
-1
save the query outcomes in local files
private void saveLocalFile(ByteArrayOutputStream out) { //sava in local files FileWriter fw; File file = new File("/home/shaowen2/testdata/" + "vm" +servers.getServerAddress().substring(15, 17) +"-ouput.log"); try { if (!file.exists()) { file.createNewFile(); } fw = new FileWriter(file); BufferedWriter bw = new BufferedWriter(fw); bw.write(out.toString()); //bw.write("\n" + "Query Count:" + count + "|| Time:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "\n"); bw.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveResult() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(resultFile));\n\t\t\tout.println(record.resultToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeResults() {\n gfmBroker.st...
[ "0.7199185", "0.7060006", "0.65628505", "0.65413505", "0.6470965", "0.645587", "0.6279883", "0.6169731", "0.61633426", "0.6120277", "0.60985154", "0.60914826", "0.60875833", "0.6070882", "0.6049392", "0.6016105", "0.6004501", "0.5976163", "0.5973027", "0.5960905", "0.5955001"...
0.67005837
2
Determines a ZScore for the specific key's win rate compared to the overall win rate Test from:
public double getZScore(K keyToCheck) { V winRateDataForKey = this.winRateData.get(keyToCheck); double p1 = winRateDataForKey.getWinRate(); double n1 = winRateDataForKey.playedCount; double p2 = (this.totalWinCount - winRateDataForKey.winCount) / (this.totalPlayedCount - winRateDataForKey.playedCount); double n2 = this.totalPlayedCount - winRateDataForKey.playedCount; return StatisticsUtil.getZScore(p1, n1, p2, n2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double getBestScore();", "public int scoreSpec(){\n List<Player> players = state.getPlayers();\n int currentBonusScore = 0;\n int otherBonus = 0;\n for(int i = 0; i < players.size(); i++){\n if( i =...
[ "0.5858835", "0.5795971", "0.5741304", "0.57223177", "0.56945807", "0.5675509", "0.5659236", "0.56408644", "0.5635063", "0.56206435", "0.5595424", "0.5595424", "0.5570959", "0.556988", "0.5553538", "0.55508417", "0.54949874", "0.5461663", "0.54587805", "0.5452746", "0.5451821...
0.7942964
0
TODO Autogenerated method stub
@Override public void preExecution() { showProgressBar(); }
{ "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 postExecution(Response response) { closeProgress(); try { myComplaints = ResponseProcessingHelper.getInstance() .handleGetComplaintsResponse(response); adapter = new MyComplaintsAdapter<Complaint>(mView, R.layout.my_complaints_list_item_layout, myComplaints); setListAdapter(adapter); } catch (Exception ex) { } }
{ "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
String exportToExcel = request.getParameter("exportToExcel");
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toExcelFromRequest(HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n \n String tituloReporte = request.getParameter(\"tituloReporte\");\n String tipoReporte = request.getParameter(\"tipoReporte\");\n String nombreReporte = reques...
[ "0.6828371", "0.6544777", "0.6209866", "0.5978391", "0.5947565", "0.5851954", "0.58277076", "0.56374043", "0.5596618", "0.5536627", "0.553352", "0.5495296", "0.53919184", "0.5382634", "0.53373134", "0.5322719", "0.5299857", "0.5259335", "0.5249661", "0.52337277", "0.5222191",...
0.0
-1
p = 2^192 2^32 2^12 2^8 2^7 2^6 2^3 1
private static ECDomainParameters init(String name) { BigInteger p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37"); BigInteger a = ECConstants.ZERO; BigInteger b = BigInteger.valueOf(3); byte[] S = null; BigInteger n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D"); BigInteger h = BigInteger.valueOf(1); ECCurve curve = new ECCurve.Fp(p, a, b); //ECPoint G = curve.decodePoint(Hex.decode("03" //+ "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D")); ECPoint G = curve.decodePoint(Hex.decode("04" + "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D" + "9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D")); return new NamedECDomainParameters(curve, G, n, h, S, name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HugeUInt pow(int p) {\r\n \tHugeUInt one = new HugeUInt(1);\r\n \tHugeUInt acc = one;\r\n \tif(p==0){\r\n \t\treturn one;\r\n \t}\r\n \tHugeUInt c = one.multiply(this);\r\n \twhile(p>1){\r\n \t\tif(p%2==0){\r\n \t\t\tc = c.multiply(c);\r\n \t\t}\r\n \t\telse if(p%2==1){\r\n ...
[ "0.684629", "0.66019636", "0.63386416", "0.6263519", "0.6002366", "0.5961315", "0.59177554", "0.58354783", "0.5798281", "0.5789918", "0.57827634", "0.57654065", "0.57564396", "0.57411563", "0.5740614", "0.57356936", "0.5733148", "0.5724704", "0.5707446", "0.5686074", "0.56791...
0.0
-1
Get the cache size to use.
int getCacheSizeInMiB();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSize() {\n synchronized (lock) {\n return cache.size();\n }\n }", "public int getCacheMaxSizeKB() {\n return (cacheHandler.getMaxCacheSizeKB());\n }", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "public long getCacheSize() {\n ...
[ "0.8202184", "0.7916673", "0.79135406", "0.7911505", "0.79008037", "0.785041", "0.78418994", "0.7746778", "0.7732624", "0.7376946", "0.7324135", "0.7320254", "0.73098296", "0.72779983", "0.71778786", "0.7177758", "0.70746857", "0.7050973", "0.7027388", "0.6916441", "0.6915496...
0.7822718
7
Get the cache concurrency to use.
int getCacheConcurrency();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native int getConcurrency();", "public Long get_cachenumcached() throws Exception {\n\t\treturn this.cachenumcached;\n\t}", "public int getConcurrency() throws SQLException\n {\n return m_rs.getConcurrency();\n }", "public Long getConcurrentExecutions() {\n return this.Concurren...
[ "0.6824617", "0.66832024", "0.6293353", "0.61947846", "0.6188422", "0.61550355", "0.614468", "0.6134977", "0.60910887", "0.6044533", "0.6040297", "0.59491086", "0.5904981", "0.5869392", "0.58563864", "0.5838417", "0.5832706", "0.5826829", "0.5806465", "0.577306", "0.57577455"...
0.7983155
0
Get the fill rate to target. If the active data falls below this percentage the storage will try to compact the storage file.
int getAutoCompactFillRate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder withAutoCompactFillRate(int percentage);", "public double getFill() {\n\t\treturn _fillGrade;\n\t}", "public float getLoad(){\n\t\treturn 1.0f*size/capacity;\n\t}", "public float getRate() {\n\treturn durationStretch * nominalRate;\n }", "public float getByteRate() {\n return byteMonitor....
[ "0.6191207", "0.6015937", "0.6001188", "0.5964752", "0.57553947", "0.5741969", "0.5723591", "0.57075673", "0.56641805", "0.5660763", "0.5555334", "0.5545021", "0.55218357", "0.54978144", "0.54345", "0.5425346", "0.5420858", "0.54083854", "0.53798395", "0.53701305", "0.5350595...
0.6926513
0
Get the amount of KiB that can be written before changes will be automatically bew written to disk.
int getAutoCommitBufferSizeInKiB();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getByteCount()\n {\n return written;\n }", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "long sizeInBytes() throws IOException;", "Long diskSizeBytes();", "public long getBytesWritten() { \n long count = 0;\n for (OutputStats out : outputs)...
[ "0.7315315", "0.71030796", "0.704531", "0.6947894", "0.6944603", "0.69192487", "0.6870169", "0.6870169", "0.68639714", "0.6857471", "0.6828686", "0.681556", "0.67825943", "0.67800266", "0.67591715", "0.66953766", "0.66911477", "0.66738236", "0.66662216", "0.66549385", "0.6639...
0.7286193
1
Set the cache size in MiB. Defaults to 128 MiB.
Builder withCacheSizeInMiB(int sizeInMiB);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}", "public TransactionBuilder setCacheSize(long size);", "HandlebarsKnotOptions setCacheSize(Long cacheSize) {\n this.cacheSize = cacheSize;\n return this;\n }", "public void setCacheMaxSizeKB(int maxSizeKB) {\n cacheHandler.setMa...
[ "0.7561651", "0.71712065", "0.7080268", "0.70405596", "0.70344025", "0.69539934", "0.68628496", "0.6839201", "0.67615545", "0.67137456", "0.66268754", "0.6567184", "0.6551962", "0.65291566", "0.64936554", "0.64404714", "0.62927276", "0.62768286", "0.62724745", "0.62661994", "...
0.6819431
8
Set the cache concurrency. Defaults to 16.
Builder withCacheConcurrency(int concurrency);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native void setConcurrency(int concurrency);", "int getCacheConcurrency();", "public void setMaxConcurrentAccessCount(String newValue);", "void setMaximumCacheSize(int maximumCacheSize);", "public void setConcurrentThreadSize(int aConcurrentThreadSize) {\n concurrentThreadCount = aConcurre...
[ "0.66106045", "0.6175426", "0.5931113", "0.5839735", "0.57175857", "0.5430251", "0.5430241", "0.538902", "0.52956825", "0.5288915", "0.5167213", "0.5166711", "0.51159585", "0.51152176", "0.5096131", "0.50928575", "0.5091932", "0.50635827", "0.5063434", "0.50361514", "0.503357...
0.67412436
0
Set the fill rate to target, when active data falls below this percentage the data file will be automatically compacted.
Builder withAutoCompactFillRate(int percentage);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFillLevel(final double fill) {\n\t\t_fillGrade = fill;\n\t}", "public void setFill(boolean fill) {\n\t\t_fill = fill;\n\t\tnotifyObs(this);\n\t}", "public void setFill(boolean b){\n\t\tthis.fill = b;\n\t}", "void setFill(boolean fill);", "public void setFill(boolean fill) {\n isFilled...
[ "0.60582227", "0.58112174", "0.57310504", "0.572511", "0.5654712", "0.56298405", "0.5553878", "0.55072784", "0.55003077", "0.5495248", "0.5429591", "0.54290855", "0.5395498", "0.5380435", "0.5343662", "0.5295214", "0.52950335", "0.527571", "0.5213323", "0.51820695", "0.516574...
0.62410384
0
Set the the number of KiB that can be written before an automatic commit to disk happens.
Builder withAutoCommitBufferSizeInKiB(int sizeInKiB);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getAutoCommitBufferSizeInKiB();", "private void setMemorySize() { }", "public void setSize(long value) {\n this.size = value;\n }", "private void updateByteCount(int n) {\n\t\tif (byteCount + n > (buffer.length << 3)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tbyteCount += n;\n\...
[ "0.6536669", "0.6211795", "0.6074024", "0.60380715", "0.5959651", "0.59563226", "0.59522104", "0.5837817", "0.58241963", "0.58057815", "0.5800804", "0.5776329", "0.57757896", "0.57698554", "0.5763094", "0.5762077", "0.57387805", "0.5729327", "0.5717995", "0.5712673", "0.57126...
0.65136147
1
Created by Administrator on 2017/4/27.
public interface CompactDisk { void play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\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\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Overr...
[ "0.6317728", "0.61648273", "0.5908346", "0.58938915", "0.5867411", "0.58474797", "0.58417153", "0.5761282", "0.57582784", "0.57563454", "0.5750185", "0.5742878", "0.5742878", "0.57303566", "0.57303566", "0.5725511", "0.5702455", "0.56822497", "0.5680489", "0.5673821", "0.5659...
0.0
-1
TODO Autogenerated method stub
protected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception { System.out.println("IN CourceController"); cs=new CourseService(); ArrayList<String>courseList=cs.getCourses(); System.out.println("ArrayList get0 "+courseList.get(0)); return new ModelAndView("show", "AL", courseList); }
{ "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 Bus viewBusToBook(int bno) { return userdao.viewBusToBook(bno); }
{ "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 User getuserId(String name) { return userdao.getuserId(name); }
{ "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 User viewUser(String nm) { return userdao.viewUser(nm); }
{ "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 List<Bus> searchBus(Bus bb) { return userdao.searchBus(bb); }
{ "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 long getAvalbSeat(int busNum) { return userdao.getAvalbSeat(busNum); }
{ "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 String regUser(User uu) { return userdao.regUser(uu); }
{ "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 int checkUser(User u) { return userdao.checkUser(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
@Override public List<BookingBus> viewBooking(int id) { return userdao.viewBooking(id); }
{ "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 long getCOUNTofSeatsBooked(seatStructure s) { return userdao.getCOUNTofSeatsBooked(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
TODO Autogenerated method stub
@Override public List<seatStructure> seatNUM(int s) { return userdao.seatNUM(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
TODO Autogenerated method stub
@Override public void insertBookData(BookingBus b) { userdao.insertBookData(b); }
{ "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 updateSeatTable(seatTable st) { userdao.updateSeatTable(st); }
{ "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 insertSeatNum(seatStructure ss) { userdao.insertSeatNum(ss); }
{ "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 User getUserDt(int id) { return userdao.getUserDt(id); }
{ "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 int validateUsername(User u) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<BookingBus> viewBookingBusDetails(int bnum) { return userdao.viewBookingBusDetails(bnum); }
{ "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 DataGrid dataGrid(Query query) { DataGrid<SysActionLog> dg = new DataGrid<SysActionLog>(); dg.setTotal(sysActionLogDao.getRecordCount(query.getQueryParams())); dg.setRows(sysActionLogDao.queryByCondition(query)); return dg; }
{ "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 int insert(SysActionLog vo) { SequenceGenerator oid = new SequenceGenerator(); String [] ids = oid.generate(1); vo.setSal_id(ids[0]); //todo //增加版本号和新增时间 return sysActionLogDao.insert(vo); }
{ "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 int delete(String id) { return sysActionLogDao.delete(id); }
{ "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
The interface IElementService allows to.
public interface IElementService { /** * Create new element * @param name */ public IElement createNewElement(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ElementServiceImpl() {\n\t\tsuper();\n\t}", "public IElement element(String id);", "public interface IElement extends IBaseElement, IVisible {\n\n /**\n * Get element attribute\n *\n * @param name Specify name for attribute\n * @return Returns chosen attribute\n */\n String get...
[ "0.6968613", "0.66141146", "0.64170897", "0.63924783", "0.6241731", "0.62250143", "0.6178672", "0.61639404", "0.6086597", "0.6064393", "0.60066855", "0.59579134", "0.59178334", "0.5913194", "0.59022206", "0.5871", "0.58645874", "0.5842713", "0.5838944", "0.5830271", "0.581774...
0.7304612
0
checking tournament ended or not
public boolean tournamentNotEnded(int id) throws Exception { LocalDate today=LocalDate.now(); LocalDate endDate; Connection con=ConnectionManager.getConnection(); PreparedStatement pstmt = con.prepareStatement("select end_date from tournament where id="+id); ResultSet rs = pstmt.executeQuery(); rs.next(); endDate=rs.getDate("end_date").toLocalDate(); con.close(); return (today.compareTo(endDate) <= 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean verifyEndGame(Player gamer);", "boolean hasGameEndedResponse();", "void matchEnd(boolean winner);", "public boolean gameEnd(){\r\n return !hasMovements(model.getCurrentPlayer().getColor());\r\n }", "public boolean hasGameEnded() {\n return winner != 0;\n }", "boolean is...
[ "0.724352", "0.6938412", "0.6921382", "0.690628", "0.68551964", "0.6764565", "0.6752304", "0.6702566", "0.66808265", "0.66635764", "0.66447085", "0.6642593", "0.66379297", "0.6625381", "0.66185117", "0.65884763", "0.6569156", "0.65592855", "0.64850515", "0.6484701", "0.647216...
0.69021726
4
Displaying players to the user based on date
public boolean displayPlayersOfTournament(LocalDate date) throws Exception { Connection con=ConnectionManager.getConnection(); PreparedStatement pstmt = con.prepareStatement("select tournament.name,tournament.start_date,tournament.end_date,players.name from players,tournament where ? BETWEEN tournament.start_date AND tournament.end_date and (players.final_result='Win' and players.tournament_id=tournament.id)"); pstmt.setDate(1,Date.valueOf(date)); ResultSet rs=pstmt.executeQuery(); if(rs.next()==false) { con.close(); return false; } else { System.out.println("Tournament StartDate EndDate WinnerName"); while(rs.next()) { System.out.printf("%-20s %15s %15s %15s %n",rs.getString(1),rs.getDate(2).toLocalDate(),rs.getDate(3).toLocalDate(),rs.getString(4)); } con.close(); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String showTasksOnDate(LocalDate date) {\n int count = 1;\n Optional<ArrayList<Timeable>> current = Optional.ofNullable(dateAndTimeables.get(date));\n if (current.isPresent()) {\n StringBuilder result = new StringBuilder(\"Here are the tasks on this date: \");\n fo...
[ "0.5746442", "0.57378185", "0.55839586", "0.556355", "0.55612457", "0.5483021", "0.54134643", "0.5410376", "0.54031724", "0.5401202", "0.53751975", "0.5351012", "0.5325582", "0.5319209", "0.53121316", "0.52966535", "0.5295698", "0.5288238", "0.52516145", "0.5235009", "0.52117...
0.69741976
0
Method to add direction to the current direction
void steer(Integer direction) { this.currentDirection += direction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDirection (Direction direction)\r\n {\r\n directions.add(direction);\r\n }", "public abstract void setDirection(int dir);", "public void setDirectionMove(double direction);", "public void move(String direction) {\n \n }", "void changeDirection();", "private void calc...
[ "0.7457509", "0.67327875", "0.6661159", "0.6653745", "0.6598466", "0.6515267", "0.6500039", "0.6475741", "0.64335376", "0.6400683", "0.63976073", "0.63911647", "0.63813543", "0.63587284", "0.630243", "0.6257866", "0.6241544", "0.6212683", "0.6199272", "0.6173198", "0.61659", ...
0.6927657
1
Method to set velocity to currentVelocity and direction to currentDirection.
void move(Integer velocity, Integer direction) { this.currentVelocity = velocity; this.currentDirection = direction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVelocity(Vector3d velocity) {\n getMotion().setVelocity(velocity);\n }", "public void setVelocity ( org.bukkit.util.Vector velocity ) {\n\t\texecute ( handle -> handle.setVelocity ( velocity ) );\n\t}", "public void setVelocity(double velocity) {\n m_motor.set(ControlMode.Velocity, ...
[ "0.73361176", "0.7319803", "0.7246075", "0.72251344", "0.72177047", "0.7215323", "0.71712506", "0.7137408", "0.7067159", "0.7065636", "0.7064414", "0.7052546", "0.70184225", "0.69959337", "0.69898003", "0.69560033", "0.694701", "0.694701", "0.694701", "0.69455934", "0.6943646...
0.73602307
0
Method to change the currentVelocity to zero
void stop() { this.currentDirection = 0; this.currentVelocity = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void resetVelocity(){currentVelocity = INITIAL_SPEED;}", "public void clearVelocity();", "public void zeroSpeed() {\n controlRotator.proportionalSpeedSetter(0.0);\n }", "public void clearAngularVelocity();", "public void resetYVel() {\n this.yVel = 0;\n }", "public void zero() {\r\n\...
[ "0.8096211", "0.7894915", "0.74555045", "0.72029746", "0.7063629", "0.6833636", "0.6810534", "0.67325264", "0.6723573", "0.67121154", "0.6601999", "0.65742826", "0.6545132", "0.65307796", "0.6518716", "0.64959913", "0.62933654", "0.6275582", "0.62364155", "0.6213412", "0.6212...
0.6487596
16
onmiResult result = new onmiResult(dump)
@Test public void test() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo24178a(ResultData resultdata);", "public void dump( Result out ) throws JAXBException;", "public void mo5062c(Result result) {\n }", "public Result() {\n }", "public Result() {\n }", "public Result(){\n\t}", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "public Result() {\...
[ "0.5920834", "0.5800006", "0.5632483", "0.55032295", "0.55032295", "0.5497696", "0.5455944", "0.5439", "0.5351469", "0.5247502", "0.5142536", "0.5119442", "0.5114512", "0.51044595", "0.51035136", "0.50666195", "0.5055008", "0.5012712", "0.50101846", "0.5004786", "0.50003797",...
0.0
-1
Creates new form frmSplashScreen
public frmSplashScreen() { initComponents(); this.setLocationRelativeTo(null); timer.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showSplashScreen() {\n splashDialog = new SplashScreenDialog(this);\n splashDialog.show();\n }", "@Override\n public void showSplash() {\n }", "private static void splashScreen() {\n\t\t\n\t\tString message = \"Welcome to JProject v\"+VERSION+\"\\nby Gabriel Skoropada\";\n\t...
[ "0.70406467", "0.66382176", "0.65738845", "0.6521729", "0.6425485", "0.64225566", "0.63562113", "0.63562113", "0.6244608", "0.6179801", "0.6175552", "0.6131259", "0.611413", "0.6088823", "0.6062509", "0.60524696", "0.6043322", "0.6040713", "0.6019466", "0.600905", "0.5969235"...
0.7297714
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { pgbCargando = new javax.swing.JProgressBar(); lblCargando = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setUndecorated(true); setOpacity(0.0F); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); getContentPane().add(pgbCargando, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 248, 420, 3)); lblCargando.setFont(new java.awt.Font("Segoe UI", 0, 9)); // NOI18N lblCargando.setText("Cargando..."); getContentPane().add(lblCargando, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1)); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pkgAgenda_Virtual/Images/SplashScreen.png"))); // NOI18N getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1)); pack(); }
{ "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.73200226", "0.7291205", "0.7291205", "0.7291205", "0.7286934", "0.72486174", "0.72148067", "0.7208562", "0.7196016", "0.7190541", "0.71850747", "0.71595925", "0.71484745", "0.7093441", "0.708049", "0.70576906", "0.6987498", "0.6977434", "0.69557697", "0.6954114", "0.694637...
0.0
-1
Gets the by id.
T getById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String get(String id);", "public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "public T get(int id) {\n return this.session.get(this.type, id);\n }", "T get(Integer id);", "@Override\n\tpublic T ge...
[ "0.7957887", "0.7921067", "0.7860507", "0.76280874", "0.7576149", "0.75005585", "0.7430083", "0.7421051", "0.7396251", "0.73795193", "0.73292184", "0.7292034", "0.7272272", "0.72417414", "0.723508", "0.72333616", "0.7220241", "0.72193897", "0.7187579", "0.71715593", "0.716788...
0.7306499
11
Gets the number of element.
Long getNumberOfElement();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumber() {\r\n\t\treturn page.getNumberOfElements();\r\n\t}", "public int getNumberOfElements();", "public Long getElementCount();", "public int getNrOfElements() {\n return this.nrOfElements;\n }", "public int getNumOfElements() {\n return numOfElements;\n }", "public a...
[ "0.79022187", "0.7827057", "0.76962775", "0.7671963", "0.76505303", "0.76428765", "0.7591031", "0.75415254", "0.75415254", "0.75259686", "0.7344285", "0.73398256", "0.7175042", "0.7168442", "0.7098869", "0.70631516", "0.7045452", "0.7037769", "0.7028176", "0.7018143", "0.7011...
0.8601257
0
// dd.findByIdAndYear("2761663971465", cd.findFirstByOrderByYearDesc().getYear()).addYear(5); Period p = pd.findById(3); // new ApplicationPeriod(LocalDate.of(2015, 7, 22), LocalDate.of(2015, 7, 23), dd.findByIdAndYear("2761663971465", // cd.findFirstByOrderByYearDesc().getYear()).getDegreeYear(5)); TimerTask timerTask = new ActivatePeriod(p, pd); pd.save(p); Timer timer = new Timer(true); Date today = new Date(); Date tomorrow = new Date(today.getTime() + (1000 10)); timer.schedule(timerTask, tomorrow); System.out.println("Scheduled for time " + tomorrow.toString());
@RequestMapping("/timer-period") public String timerPeriod() { return "Ok"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Scheduled(cron = \"0 0 10 17 8 ?\")\n\tpublic void scheduleTaskYearly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 10:00 o'clock in 17 August - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(cron = \"0 0 * * * *\")\n public void scheduleTaskYear() {\n\t\tlog.info(\"Cron Tas...
[ "0.6268947", "0.6246219", "0.6130831", "0.6128093", "0.6043123", "0.60354656", "0.59473276", "0.59434867", "0.59088445", "0.5899865", "0.58572114", "0.5830003", "0.5828695", "0.5822417", "0.57700366", "0.576961", "0.57662773", "0.5718636", "0.5692755", "0.56909704", "0.567578...
0.0
-1
dd.findByIdAndYear("2761663971465", cd.findFirstByOrderByYearDesc().getYear()).addYear(5); TimerTask timerTask = new RetrieveStudentListTask(dd.findByIdAndYear("2761663971465", cd.findFirstByOrderByYearDesc().getYear()) .getDegreeYear(5), dd); Timer timer = new Timer(true); Date today = new Date(); Date tomorrow = new Date(today.getTime() + (1000 10)); timer.schedule(timerTask, tomorrow); System.out.println("Scheduled for time " + tomorrow.toString());
@RequestMapping("/timer") public String timer() { return "Ok"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void timerTest4() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\tcalendar.set(Calendar.MINUTE, 20);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tDate time = calendar.getTime();\n\n\t\tTimer timer = new Timer();\n\t\tSystem.out.println(\"wait ....\...
[ "0.67466414", "0.6640639", "0.66097677", "0.66085446", "0.6518741", "0.64756274", "0.64476365", "0.64369196", "0.62771755", "0.6254854", "0.6227278", "0.621188", "0.62115985", "0.6147128", "0.60878634", "0.60752374", "0.6017248", "0.60068566", "0.6003317", "0.5961711", "0.593...
0.0
-1
Given the head of a Singly LinkedList, write a method to return the middle node of the LinkedList. If the total number of nodes in the LinkedList is even, return the second middle node. Input: 1>2>3>4>5>null Output: 3 Input: 1>2>3>4>5>6>null Output: 4 Input: 1>2>3>4>5>6>7>null Output: 4
public static void main(String[] args) { ListNode head = new ListNode(1); head.next = new ListNode(2); head.next.next = new ListNode(3); head.next.next.next = new ListNode(4); head.next.next.next.next = new ListNode(5); System.out.println("Middle Node : 3 got : " + findMiddle(head).value); head.next.next.next.next.next = new ListNode(6); System.out.println("Middle Node : 4 got : " + findMiddle(head).value); head.next.next.next.next.next.next = new ListNode(7); System.out.println("Middle Node : 4 got : " + findMiddle(head).value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode middleNode(ListNode head) {\n List<ListNode> array = new ArrayList<>();\n\n ListNode list = head;\n while (list != null) {\n array.add(list);\n list = list.next;\n }\n\n return array.get(array.size() / 2);\n }", "public static LLNode fin...
[ "0.7874309", "0.7765427", "0.765395", "0.74601144", "0.74569154", "0.7423777", "0.73973227", "0.73778224", "0.7280016", "0.7219321", "0.72170734", "0.7192552", "0.71468616", "0.7130953", "0.71122235", "0.6992462", "0.6944556", "0.68536925", "0.6848302", "0.6775141", "0.651043...
0.62778014
24
We have to reset our mock between tests because the mock objects are managed by the Spring container. If we would not reset them, stubbing and verified behavior would "leak" from one test to another.
@Before public void setUp() { Mockito.reset(memberServiceMock); mockMvc = MockMvcBuilders .webAppContextSetup(webApplicationContext) .apply(springSecurity()) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetMocking() {\n mockGraphReadMethods = mock(GraphReadMethods.class);\n mockGraphWriteMethods = mock(GraphWriteMethods.class);\n mockJsonNode = mock(JsonNode.class);\n mockJsonGenerator = mock(JsonGenerator.class);\n mockCache = mock(ImmutableObjectCache.class);\n ...
[ "0.7747661", "0.7203523", "0.68366957", "0.66293955", "0.6431569", "0.6421154", "0.63946515", "0.6390141", "0.63270795", "0.62993914", "0.6272169", "0.6271002", "0.6267708", "0.62594885", "0.6257789", "0.62458706", "0.62443817", "0.6244007", "0.6238119", "0.62215567", "0.6177...
0.6290431
10
Get device serial number.
public String getDevSerialNumber() { return devSerialNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSerial();", "public long getSerial() {\n\t\treturn this.serialNumber;\n\t}", "String getSerial();", "public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }"...
[ "0.76204073", "0.7385344", "0.73793525", "0.73449457", "0.7323326", "0.7302578", "0.7302578", "0.71414614", "0.70621586", "0.6999018", "0.6977598", "0.6977598", "0.6971008", "0.6971008", "0.69440126", "0.6924626", "0.69211024", "0.68900377", "0.6875682", "0.67935014", "0.6715...
0.7105388
8
determines if the device was opened already
public boolean isOpen() { return this.open; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isOpened();", "boolean isOpened() throws Exception;", "public boolean isOpened() {\n return false;\n }", "boolean hasDevice();", "public boolean isOpened() {\r\n return opened != null;\r\n }", "public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}", "public bo...
[ "0.7011801", "0.67281705", "0.6716805", "0.6695719", "0.66586536", "0.66556567", "0.64854044", "0.64314723", "0.6412703", "0.63756865", "0.62802184", "0.6279141", "0.62692416", "0.6232866", "0.6196402", "0.6183441", "0.6174843", "0.61356115", "0.6131906", "0.611759", "0.61066...
0.5656401
85
A command to include a custom VID and PID combination within the internal device list table. This will allow the driver to load for the specified VID and PID combination. Only supported on Linux and Mac OS X.
public static void setVidPid(int dwVID, int dwPID) throws FTD2XXException { if (Platform.isLinux() || Platform.isMac()) { LOGGER.info("Setting custom VID/PID to {}/{}.", toHex4(dwVID), toHex4(dwPID)); ensureFTStatus(ftd2xx.FT_SetVIDPID(dwVID, dwPID)); } else { LOGGER.info("Ignoring request to set VID/PID. Windows not supported."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setDrivingPIDS(PID pid) {\n driverFR.setPid(pid);\n driverFL.setPid(pid);\n driverFL.setPid(pid);\n driverBL.setPid(pid);\n }", "public int[] getVIDPID() {\r\n if(deviceDescriptor==null) {\r\n log.warning(\"USBAEMonitor: getVIDPID called but device ha...
[ "0.564048", "0.53356713", "0.5184851", "0.5163007", "0.50612193", "0.5007045", "0.49615157", "0.4956845", "0.4871234", "0.48279768", "0.47777995", "0.4741538", "0.47215948", "0.4715485", "0.47067124", "0.469573", "0.46944845", "0.4663193", "0.46478042", "0.46443278", "0.46163...
0.56136346
1
Bitwise and (&) with 0xFFFF is to ensure unsigned value.
private static String toHex4(int value) { return String.format("0x%04x", (0xFFFF & value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\n\t}", "public int rangeBitwiseAnd(int m, int n) {\n \tint mask = 0xffffffff;\n \twhile((m&mask) != (n&mask)){\n \t\tmask <<= 1;\n \t}\n \treturn mask&m;\n }", "public Object ...
[ "0.5998858", "0.5945765", "0.5787553", "0.57446223", "0.56612134", "0.5525739", "0.54657435", "0.5426444", "0.53897303", "0.53764325", "0.529936", "0.524087", "0.5201214", "0.51683426", "0.5150722", "0.5103066", "0.5092748", "0.509077", "0.5037796", "0.502441", "0.5018122", ...
0.0
-1
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevices() throws FTD2XXException { return getDevices(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceLis...
[ "0.72263575", "0.72055846", "0.7169115", "0.7148732", "0.71234417", "0.71117556", "0.70702356", "0.70459956", "0.70381206", "0.7034636", "0.69801295", "0.69342947", "0.6872874", "0.684497", "0.6842467", "0.6838136", "0.68370724", "0.68146825", "0.6795203", "0.67683303", "0.67...
0.8099461
0
Get the connected FTDI devices.
public static List<FTDevice> getDevices(boolean isIncludeOpenedDevices) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); // device is occupied? if (isIncludeOpenedDevices) { devs.add(device); } else { if ((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) { devs.add(device); } } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public static void getDevicesList()\n ...
[ "0.8060237", "0.7350377", "0.73249185", "0.7288414", "0.72753847", "0.7186344", "0.71856654", "0.7173275", "0.71373403", "0.71252596", "0.70971465", "0.7060804", "0.70537835", "0.69682723", "0.6963477", "0.69112617", "0.67509836", "0.6748555", "0.6743469", "0.6725758", "0.670...
0.66787046
21
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevicesByDescription(String description) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && description.equals(device.devDescription)) { devs.add(device); } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices(...
[ "0.80989105", "0.72272813", "0.72062236", "0.71701276", "0.7148124", "0.71241355", "0.7110592", "0.70709777", "0.7046795", "0.7037522", "0.70354474", "0.6981871", "0.6933781", "0.68721306", "0.6846349", "0.6843083", "0.68374246", "0.68365854", "0.681574", "0.67951554", "0.676...
0.62033415
38
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevicesBySerialNumber(String serialNumber) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); if (((device.getFlag() & FTD2XX.FT_FLAGS_OPENED) == 0) && serialNumber.equals(device.devSerialNumber)) { devs.add(device); } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices(...
[ "0.80989105", "0.72272813", "0.72062236", "0.71701276", "0.7148124", "0.71241355", "0.7110592", "0.70709777", "0.7046795", "0.7037522", "0.70354474", "0.6981871", "0.6933781", "0.68721306", "0.6846349", "0.6843083", "0.68374246", "0.68365854", "0.681574", "0.67951554", "0.676...
0.60933936
44
Get the connected FTDI devices. It will not contain opened devices.
public static List<FTDevice> getDevicesByDeviceType(DeviceType deviceType) throws FTD2XXException { IntByReference devNum = new IntByReference(); ensureFTStatus(ftd2xx.FT_CreateDeviceInfoList(devNum)); ArrayList<FTDevice> devs = new ArrayList<FTDevice>(devNum.getValue()); for (int i = 0; i < devNum.getValue(); i++) { FTDevice device = getXthDevice(i); if (((device.flag & FTD2XX.FT_FLAGS_OPENED) == 0) && device.devType.equals(deviceType)) { devs.add(device); } } LOGGER.info("Found devs: {} (All:{})", devs.size(), devNum.getValue()); return devs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public abstract List<NADevice> getDevices(Context context);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public synchronized Hashtable getDevices(...
[ "0.8099461", "0.72263575", "0.72055846", "0.7169115", "0.7148732", "0.71234417", "0.71117556", "0.70702356", "0.70459956", "0.70381206", "0.7034636", "0.69801295", "0.69342947", "0.6872874", "0.684497", "0.6842467", "0.6838136", "0.68370724", "0.68146825", "0.6795203", "0.676...
0.6645397
25
Open connection with device.
public void open() throws FTD2XXException { Memory memory = new Memory(16); memory.setString(0, devSerialNumber); PointerByReference handle = new PointerByReference(); ensureFTStatus(ftd2xx.FT_OpenEx(memory, FTD2XX.FT_OPEN_BY_SERIAL_NUMBER, handle)); this.ftHandle = handle.getValue(); open = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDi...
[ "0.74636436", "0.71608067", "0.71587265", "0.69506377", "0.6820369", "0.6818942", "0.6779966", "0.6701632", "0.65882754", "0.65525943", "0.6547536", "0.65119284", "0.65095717", "0.6483926", "0.6449907", "0.6381675", "0.6342163", "0.63359517", "0.6329952", "0.6275078", "0.6260...
0.5809153
72
Close connection with device.
public void close() throws FTD2XXException { if (!open) return; open = false; ensureFTStatus(ftd2xx.FT_Close(ftHandle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeConnection() {\n try {\n dis.close();\n dos.close();\n socket.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void closeConnection() {\n\t\tthis.serialPort.close();\n\t}", "public void cl...
[ "0.72744393", "0.7205068", "0.7154354", "0.71451503", "0.71328413", "0.71070164", "0.7081268", "0.7070578", "0.70660347", "0.7055334", "0.70221853", "0.6976397", "0.6958623", "0.6947063", "0.693756", "0.6931144", "0.69284254", "0.6916416", "0.6895809", "0.6887844", "0.6885115...
0.0
-1
Send a cycle command to the USB port.
public void cyclePort() throws FTD2XXException { ensureFTStatus(ftd2xx.FT_CyclePort(ftHandle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecu...
[ "0.63188934", "0.55433", "0.54369676", "0.53921735", "0.53671145", "0.52578795", "0.52340674", "0.52074635", "0.51610696", "0.5152545", "0.5097537", "0.5096238", "0.5088517", "0.50721055", "0.5051917", "0.5047314", "0.5046994", "0.50265497", "0.5006514", "0.49770832", "0.4975...
0.62701046
1
Set desired baud rate.
public void setBaudRate(long baudRate) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetBaudRate(ftHandle, (int) baudRate)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setBaudrate(int bitrate) throws SerialError{\n\n switch(bitrate)\n {\n case 300:\n baudrate=0x2710;\n break;\n case 600:\n baudrate=0x1388;\n break;\n case 1200:\n ba...
[ "0.7804694", "0.6211362", "0.6139591", "0.60061413", "0.5877688", "0.5845352", "0.5784664", "0.5765682", "0.5745233", "0.5660603", "0.56471574", "0.5552686", "0.55426913", "0.5522091", "0.5496579", "0.54813683", "0.54472184", "0.5444974", "0.54296416", "0.5401463", "0.5400519...
0.75869495
1
This function sets the data characteristics for the device
public void setDataCharacteristics(WordLength wordLength, StopBits stopBits, Parity parity) throws FTD2XXException { ensureFTStatus(ftd2xx .FT_SetDataCharacteristics(ftHandle, (byte) wordLength.constant(), (byte) stopBits.constant(), (byte) parity.constant())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DeviceData() {\r\n this.rtAddress = 0;\r\n this.subAddress = 0;\r\n this.txRx = 0;\r\n this.data = new short[32];\r\n }", "public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSys...
[ "0.6271111", "0.60465646", "0.6031574", "0.5967142", "0.59050333", "0.58447665", "0.5821664", "0.5773854", "0.57588243", "0.57493734", "0.5742795", "0.573969", "0.5724597", "0.57158214", "0.56754196", "0.5649809", "0.5645095", "0.5639447", "0.56265205", "0.56223625", "0.56064...
0.51890457
95
Set the read and write timeouts for the device.
public void setTimeouts(long readTimeout, long writeTimeout) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetTimeouts(ftHandle, (int) readTimeout, (int) writeTimeout)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReadTimeout(int readTimeout){\n return; //TODO codavaj!!\n }", "public void setWriteTimeout(long writeTimeout) {\n this.writeTimeout = writeTimeout;\n }", "public void setReadTimeout(int readTimeout) {\n synchronized (globalLock) {\n if (isRunning) {\n ...
[ "0.69430363", "0.6136946", "0.60887146", "0.59258133", "0.5809397", "0.58039266", "0.57347137", "0.57144815", "0.570893", "0.5704337", "0.56761783", "0.5653221", "0.5641707", "0.56131905", "0.55829775", "0.5582629", "0.55561864", "0.55314326", "0.5531238", "0.5519083", "0.551...
0.69562846
0
Sets the flow control for the device.
public void setFlowControl(FlowControl flowControl) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), (byte) 0, (byte) 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFlowControl(FlowControl flowControl, byte uXon, byte uXoff) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), uXon, uXoff));\n }", "public void setControlFlowProperties(ControlFlowProperties controlFlowProperties)\n {\n ...
[ "0.6767469", "0.60715", "0.59996474", "0.57370347", "0.5599424", "0.5542255", "0.5461233", "0.54216146", "0.5368187", "0.5367006", "0.53616416", "0.5328298", "0.5325886", "0.5312724", "0.53093547", "0.52949786", "0.52830815", "0.5264396", "0.52549946", "0.52324843", "0.520939...
0.6994136
0
Sets the flow control for the device.
public void setFlowControl(FlowControl flowControl, byte uXon, byte uXoff) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), uXon, uXoff)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFlowControl(FlowControl flowControl) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetFlowControl(ftHandle, (short) flowControl.constant(), (byte) 0, (byte) 0));\n }", "public void setControlFlowProperties(ControlFlowProperties controlFlowProperties)\n {\n this.controlFlo...
[ "0.6998588", "0.6074169", "0.6002169", "0.57392997", "0.5600483", "0.55435234", "0.5461933", "0.5421827", "0.53677654", "0.536693", "0.5360856", "0.5330018", "0.53279203", "0.5313283", "0.5309242", "0.52968526", "0.52851415", "0.5267524", "0.5256426", "0.5232235", "0.52109355...
0.67703307
1
Set the Data Terminal Ready (DTR) control signal.
public void setDtr(boolean status) throws FTD2XXException { if (status) { ensureFTStatus(ftd2xx.FT_SetDtr(ftHandle)); } else { ensureFTStatus(ftd2xx.FT_ClrDtr(ftHandle)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegisterWriteControl() {\r\n // registers.setRegWrite();\r\n //this.registerWrite.setData(1);\r\n //registers.setRegWriteControl(this.registerWrite);\r\n }", "public void setReady() {\n\t\tthis.state = State.READY;\n\t}", "public void setReady() {\n\t\tlabelReady.setEnabl...
[ "0.52684885", "0.5120897", "0.5111833", "0.50643647", "0.5011575", "0.4899212", "0.48872733", "0.48801905", "0.48786977", "0.4858697", "0.48390287", "0.4838275", "0.48163676", "0.48084506", "0.48069298", "0.47943482", "0.4768932", "0.47456077", "0.46961918", "0.4691787", "0.4...
0.4811968
13
Set the Request To Send (RTS) control signal
public void setRts(boolean status) throws FTD2XXException { if (status) { ensureFTStatus(ftd2xx.FT_SetRts(ftHandle)); } else { ensureFTStatus(ftd2xx.FT_ClrRts(ftHandle)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSignal(double signal) {_signal = signal;}", "@Override\n public void run() {\n transmit_set();\n }", "private void restartCtrlSocket() {\n ctrlThreadTask = ThreadTasks.RESTART;\n }", "pub...
[ "0.59279895", "0.5581394", "0.54676914", "0.5464218", "0.5437757", "0.5413493", "0.5372191", "0.52582127", "0.52219945", "0.52099586", "0.52050734", "0.51975876", "0.51764554", "0.5145999", "0.51257867", "0.51136374", "0.51014525", "0.5089407", "0.50857145", "0.50857145", "0....
0.0
-1
Gets the modem status and line status from the device.
public EnumSet<DeviceStatus> getDeviceStatus() throws FTD2XXException { IntByReference modstat = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetModemStatus(ftHandle, modstat)); return DeviceStatus.parseToEnumset(modstat.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Status getDeviceStatus() {\n return mDeviceStatus;\n }", "public List<String> getCommandStatus() {\n\t\tList<Device> devices = DeviceClientSingleton.getDeviceList();\r\n\t\tList<String> commandStatus = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < devices.size(); i++) {\r\n\t\t\tString dev...
[ "0.615937", "0.5898066", "0.5583597", "0.5580692", "0.5438945", "0.54277146", "0.54175955", "0.54144895", "0.5356078", "0.53426945", "0.5336119", "0.5328273", "0.5311003", "0.53021073", "0.52736354", "0.5245764", "0.5240431", "0.52308357", "0.52011275", "0.51653934", "0.51542...
0.6638474
0
Gets the number of bytes in the receive queue.
public int getQueueStatus() throws FTD2XXException { IntByReference reference = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetQueueStatus(ftHandle, reference)); return reference.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public abstract long getReceivedBytesCount();", "int getNumBufferedBytes() {\n ChannelBuffer buf;\n int IOQueued;\n for (IOQueued = 0, buf = inQueueHead;\n buf != null; buf = buf.next) {\n IOQueued += buf.nextAdded - buf.nextRemoved;\n }\n ...
[ "0.7551008", "0.7368603", "0.73061055", "0.72344697", "0.7201219", "0.71903735", "0.7165864", "0.71649253", "0.7163343", "0.7159295", "0.71491617", "0.71322775", "0.70962685", "0.70572394", "0.7013676", "0.69981325", "0.6995697", "0.69770414", "0.6957902", "0.68919146", "0.68...
0.0
-1
Gets the modem status and line status from the device.
public int[] getStatus() throws FTD2XXException { IntByReference lpdwAmountInRxQueue = new IntByReference(); IntByReference lpdwAmountInTxQueue = new IntByReference(); IntByReference lpdwEventStatus = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetStatus(ftHandle, lpdwAmountInRxQueue, lpdwAmountInTxQueue, lpdwEventStatus)); return new int[] { lpdwAmountInRxQueue.getValue(), lpdwAmountInTxQueue.getValue(), lpdwEventStatus.getValue() }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EnumSet<DeviceStatus> getDeviceStatus() throws FTD2XXException {\n IntByReference modstat = new IntByReference();\n ensureFTStatus(ftd2xx.FT_GetModemStatus(ftHandle, modstat));\n return DeviceStatus.parseToEnumset(modstat.getValue());\n }", "public Status getDeviceStatus() {\n ...
[ "0.66349584", "0.6157315", "0.5895021", "0.5579715", "0.55778307", "0.54355353", "0.54269576", "0.541569", "0.5410721", "0.5352607", "0.53396904", "0.5334805", "0.5324944", "0.53080297", "0.5306541", "0.5273097", "0.52438986", "0.52363724", "0.5232992", "0.520419", "0.5162722...
0.0
-1
Gets the com port number of the device.
public int getComPortNumber() throws FTD2XXException { IntByReference reference = new IntByReference(); ensureFTStatus(ftd2xx.FT_GetComPortNumber(ftHandle, reference)); return reference.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getDevicePort(){\n return peripheralPort;\n }", "public int getPort() {\n\t\treturn Integer.parseInt(String.valueOf(port.getValue()));\n\t}", "public CommPortIdentifier GetArduinoPort()\n\t{\n\t\tCommPortIdentifier portId = null;\n\t\tEnumeration<?> portEnum = CommPortIdentifier.g...
[ "0.7146815", "0.71242183", "0.7085861", "0.708217", "0.6860814", "0.68198603", "0.6753919", "0.67265004", "0.67263687", "0.6690214", "0.66805625", "0.66415656", "0.6637015", "0.66206723", "0.65941346", "0.65857065", "0.65857065", "0.65641075", "0.65641075", "0.6562169", "0.65...
0.7876467
0
Set the event notification handler.
public void SetEventNotification(Pointer eventHandler, int eventMask) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetEventNotification(ftHandle, eventMask, eventHandler)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "@ReactMethod\n public void setOnInvokeHandler(final Callback onInvokeHandler) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n ...
[ "0.6528034", "0.6528034", "0.619356", "0.6166065", "0.61476815", "0.61403733", "0.6133479", "0.59845525", "0.5972286", "0.59384805", "0.5938451", "0.590155", "0.57911426", "0.5785684", "0.57810056", "0.5774157", "0.57708347", "0.5763035", "0.57395273", "0.57135427", "0.571354...
0.63300884
2
Purge receive or transmit buffers in the device.
public void purgeBuffer(boolean rxBuffer, boolean txBuffer) throws FTD2XXException { int mask = 0; if (rxBuffer) { mask |= Purge.PURGE_RX.constant(); } if (txBuffer) { mask |= Purge.PURGE_TX.constant(); } ensureFTStatus(ftd2xx.FT_Purge(ftHandle, mask)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void freeAllBuffers() {\n\t\tIterator<Integer> iter = _bufferMap.keySet().iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tint bufNum = iter.next();\n\t\t\tsendMessage(\"/b_free\", new Object[] { bufNum });\n\t\t\titer.remove();\n\t\t}\n\t}", "public void clean() {\n\t\tbufferSize = 0;\n\t\tb...
[ "0.6917311", "0.66155374", "0.66027457", "0.6444149", "0.6442829", "0.6385151", "0.63669163", "0.62601686", "0.62375116", "0.623535", "0.6188643", "0.61645263", "0.6102896", "0.604823", "0.60348135", "0.6014542", "0.6010867", "0.5994768", "0.5958135", "0.58761096", "0.5858952...
0.6266567
7
Send a reset command to the device.
public void resetDevice() throws FTD2XXException { ensureFTStatus(ftd2xx.FT_ResetDevice(ftHandle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendReset() {\n\t\tif (hardReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%hard_reset\");\n\t\t\t// System.out.println(\"hard reset\");\n\t\t} else if (semiSoftReset) {\n\t\t\tSystem.out.println(\"semi soft reset\");\n\t\t\tfsmTeacher.handleAction(\"reset%semi_soft_reset\");\n\t\t} else if (softReset)...
[ "0.7480683", "0.69653875", "0.69395643", "0.68346393", "0.6827325", "0.67896295", "0.64995074", "0.62740964", "0.62676823", "0.6224665", "0.6206947", "0.6147521", "0.6141821", "0.6141606", "0.6132587", "0.61227506", "0.60944915", "0.6089463", "0.6083417", "0.6049796", "0.5999...
0.60379875
20
Set the latency timer value.
public void setLatencyTimer(short timer) throws FTD2XXException, IllegalArgumentException { if (!((timer >= 2) && (timer <= 255))) { throw new IllegalArgumentException("Valid range is 2 - 255!"); } ensureFTStatus(ftd2xx.FT_SetLatencyTimer(ftHandle, (byte) timer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void latencyMsgsPerSec(int latencyMsgsPerSec)\n\t{\n\t\t_latencyMsgsPerSec = latencyMsgsPerSec;\n\t}", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(lon...
[ "0.6356916", "0.6296855", "0.6296855", "0.6296855", "0.62277764", "0.62277764", "0.62277764", "0.62277764", "0.6076553", "0.59127116", "0.5911174", "0.5880685", "0.5841621", "0.5776011", "0.57659936", "0.5736627", "0.5695283", "0.5626623", "0.5613739", "0.5590274", "0.5540826...
0.6810769
0
Get the current value of the latency timer.
public short getLatencyTimer() throws FTD2XXException { ByteByReference byReference = new ByteByReference(); ensureFTStatus(ftd2xx.FT_GetLatencyTimer(ftHandle, byReference)); return (short) (byReference.getValue() & 0xFF); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double latency() {\n return this.latency;\n }", "public long getLatency() {\n return latency;\n }", "public Long getTotal_latency() {\n return total_latency;\n }", "public String getTotal_latency() {\n return total_latency;\n }", "public BigDecimal getTotalLatency()...
[ "0.7702625", "0.7575178", "0.6817607", "0.6727041", "0.6591286", "0.64661855", "0.6303484", "0.6278546", "0.6137161", "0.60948354", "0.6077621", "0.6007797", "0.6004733", "0.6001743", "0.59899354", "0.5984852", "0.59585816", "0.5928213", "0.5928077", "0.5926161", "0.5906113",...
0.72011673
2
Enables different chip modes.
public void setBitMode(byte ucMask, BitModes bitMode) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetBitMode(ftHandle, ucMask, (byte) bitMode.constant())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "void enableDigital();", "public v...
[ "0.7027703", "0.6375891", "0.62024575", "0.60808116", "0.60626405", "0.601274", "0.5997711", "0.5950199", "0.5916684", "0.5891297", "0.5891236", "0.5874702", "0.5872569", "0.58524245", "0.5844516", "0.5842785", "0.5828904", "0.5820176", "0.5818739", "0.58158284", "0.58156097"...
0.0
-1
Gets the instantaneous value of the data bus.
public BitModes getBitMode() throws FTD2XXException { ByteByReference byt = new ByteByReference(); ensureFTStatus(ftd2xx.FT_GetBitMode(ftHandle, byt)); return BitModes.parse(byt.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V get() {\n\t\treturn this.get(0, TimeUnit.SECONDS);\n\t}", "public long getValue() {\n return value_;\n }", "public long getValue() {\n return value_;\n }", "public double getValue() {\n\t\treturn sensorval;\n\t}", "public long getValue()\n {\n return itsValue;\n }", "pub...
[ "0.67927843", "0.6695074", "0.6654733", "0.66272736", "0.6622641", "0.6567871", "0.65569574", "0.6555047", "0.6446163", "0.6433757", "0.63924897", "0.63788193", "0.63433737", "0.63182354", "0.6313121", "0.6313121", "0.6313121", "0.6305255", "0.63025963", "0.62909055", "0.6274...
0.0
-1
Set the USB request transfer size. This function can be used to change the transfer sizes from the default transfer size of 4096 bytes to better suit the application requirements. Transfer sizes must be set to a multiple of 64 bytes between 64 bytes and 64k bytes. When FT_SetUSBParameters is called, the change comes into effect immediately and any data that was held in the driver at the time of the change is lost. Note that, at present, only dwInTransferSize is supported.
public void setUSBParameters(int inTransferSize, int outTransferSize) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_SetUSBParameters(ftHandle, inTransferSize, outTransferSize)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public final com.francetelecom.admindm.model.Parameter createSize()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"Size\");\n\t\tparam.setNotification(0);\n\t\tpar...
[ "0.5185416", "0.51753813", "0.5114134", "0.50714904", "0.50602597", "0.49480286", "0.48059806", "0.47328895", "0.4688681", "0.46854022", "0.46602854", "0.4658089", "0.46525022", "0.4642133", "0.46372792", "0.46369326", "0.4597684", "0.45963317", "0.45933867", "0.45908493", "0...
0.73211175
0
Program the EEPROM data
public void writeEEPROM(EEPROMData programData) throws FTD2XXException { ensureFTStatus(ftd2xx.FT_EE_Program(ftHandle, programData.ft_program_data)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void organizeEEPROM() {\n\t \n \n\t //put red, green, blue, and activitity values into r, g, b, and a\n\t for(int i = 0; i < EEPROM.length; i += 8) {\n\t\t r[(i)/8] = 256*EEPROM[i] + EEPROM[i + 1];\n\t\t g[(i)/8] = 256*EEPROM[i + 2] + EEPROM[i + 3];\n\t\t b[(i)/8] = 256*EEPROM[i + 4] + EEPROM[i + 5]...
[ "0.60331464", "0.59945995", "0.5864955", "0.5634795", "0.55965495", "0.5459035", "0.527086", "0.52679944", "0.5241307", "0.5175491", "0.5162403", "0.5153142", "0.51362884", "0.5127991", "0.5076186", "0.50656474", "0.5047884", "0.503553", "0.502918", "0.5027128", "0.5022095", ...
0.66078
0
Read device EEPROM data
public EEPROMData readEEPROM() throws FTD2XXException { FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference(); ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference)); return new EEPROMData(ftByReference); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EepromX readEEPROM_X() throws FTD2XXException {\n EepromX eeprom = new EepromX();\n Memory manufacturer = new Memory(64);\n Memory manufacturerId = new Memory(64);\n Memory description = new Memory(64);\n Memory serialNumber = new Memory(64);\n\n Memory mem = new Me...
[ "0.6577507", "0.63782096", "0.628396", "0.5964712", "0.58208483", "0.5775492", "0.56763643", "0.5634964", "0.54897887", "0.54639137", "0.54241025", "0.5407415", "0.53839755", "0.53716004", "0.536651", "0.53367424", "0.5334495", "0.5268246", "0.5262497", "0.5257379", "0.523789...
0.7710861
0
Read X series device EEPROM data Check D2xx Programmer's Guide Appendix A for details
public EepromX readEEPROM_X() throws FTD2XXException { EepromX eeprom = new EepromX(); Memory manufacturer = new Memory(64); Memory manufacturerId = new Memory(64); Memory description = new Memory(64); Memory serialNumber = new Memory(64); Memory mem = new Memory(56); mem.setInt(0, 9); ensureFTStatus(ftd2xx .FT_EEPROM_Read(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), manufacturer, manufacturerId, description, serialNumber)); eeprom.setManufacturer(manufacturer.getString(0)); eeprom.setManufacturerId(manufacturerId.getString(0)); devDescription = description.getString(0); eeprom.setDescription(devDescription); devSerialNumber = serialNumber.getString(0); eeprom.setSerialNumber(devSerialNumber); return eeprom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EEPROMData readEEPROM() throws FTD2XXException {\n FTD2XX.FT_PROGRAM_DATA.ByReference ftByReference = new FTD2XX.FT_PROGRAM_DATA.ByReference();\n ensureFTStatus(ftd2xx.FT_EE_Read(ftHandle, ftByReference));\n return new EEPROMData(ftByReference);\n }", "public void writeEEPROM_X(Eep...
[ "0.73567617", "0.61600846", "0.5966793", "0.5876504", "0.5705341", "0.5583357", "0.55775326", "0.54987305", "0.5434886", "0.5426766", "0.54179025", "0.5304475", "0.52912426", "0.52888954", "0.52833533", "0.52774763", "0.5251211", "0.52223986", "0.5179249", "0.5170098", "0.516...
0.73247516
1
Write X series device EEPROM data Check D2xx Programmer's Guide Appendix A for details
public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException { String manufacturer = eeprom.getManufacturer(); Memory mManufacturer = new Memory(manufacturer.length() + 1); mManufacturer.setString(0, manufacturer); String manufacturerId = eeprom.getManufacturerId(); Memory mManufacturerId = new Memory(manufacturerId.length() + 1); mManufacturerId.setString(0, manufacturerId); String description = eeprom.getDescription(); Memory mDescription = new Memory(description.length() + 1); mDescription.setString(0, description); String serialNumber = eeprom.getSerialNumber(); Memory mSerialNumber = new Memory(serialNumber.length() + 1); mSerialNumber.setString(0, serialNumber); ensureFTStatus(ftd2xx .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId, mDescription, mSerialNumber)); devSerialNumber = serialNumber; devDescription = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }", "void writeEeprom(ImuEepromWriter sensor, int scaleNo, sho...
[ "0.6811986", "0.6736442", "0.66071904", "0.63817114", "0.60125536", "0.5629799", "0.5621116", "0.5480666", "0.5431282", "0.54153925", "0.5344116", "0.52903724", "0.52825236", "0.5281351", "0.52757186", "0.5273405", "0.5269645", "0.5262697", "0.5223419", "0.5154558", "0.511810...
0.7643708
0
Get the available size of the EEPROM user area
public int getEEPROMUserAreaSize() throws FTD2XXException { IntByReference size = new IntByReference(); ensureFTStatus(ftd2xx.FT_EE_UASize(ftHandle, size)); return size.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getOccupiedSize();", "public int getIdentifiedUserDataSize() {\n return super.getCdSector().getCdUserDataSize() - 20;\n }", "public int getSize() {\n\n\treturn getSectors().size() * getUnitSize(); // 254 byte sectors\n }", "int getLocalSize();", "public int getLocalSize();", "public in...
[ "0.73750347", "0.69106996", "0.6821863", "0.67809236", "0.67061394", "0.6705657", "0.6693627", "0.667572", "0.66702473", "0.6645832", "0.6630869", "0.65655327", "0.6535564", "0.65125793", "0.6501961", "0.65003747", "0.6495022", "0.6493994", "0.6484103", "0.6457486", "0.645336...
0.8166574
0
Read the contents of the EEPROM user area
public byte[] readEEPROMUserArea(int numberOfBytes) throws FTD2XXException { IntByReference actually = new IntByReference(); Memory dest = new Memory(numberOfBytes); ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually)); return dest.getByteArray(0, actually.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));...
[ "0.76887447", "0.7514494", "0.68374056", "0.5910749", "0.5895921", "0.5849517", "0.5804567", "0.5458648", "0.5423382", "0.5392885", "0.53471214", "0.53235745", "0.53157514", "0.52404135", "0.52113014", "0.51712644", "0.51598024", "0.51388526", "0.5104379", "0.5083724", "0.507...
0.71676785
2
Read all contents of the EEPROM user area
public byte[] readFullEEPROMUserArea() throws FTD2XXException { int numberOfBytes = getEEPROMUserAreaSize(); return readEEPROMUserArea(numberOfBytes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));...
[ "0.73938924", "0.71102905", "0.6518648", "0.5733565", "0.57146645", "0.557043", "0.55416477", "0.54666865", "0.53460705", "0.53099906", "0.53059816", "0.5255845", "0.52414334", "0.52260315", "0.51898265", "0.51482284", "0.51256216", "0.510927", "0.5096966", "0.5013906", "0.50...
0.7634677
0
Read all contents of the EEPROM user area as String
public String readFullEEPROMUserAreaAsString() throws IOException { IntByReference actually = new IntByReference(); int numberOfBytes = getEEPROMUserAreaSize(); Memory dest = new Memory(numberOfBytes); ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually)); return dest.getString(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] readFullEEPROMUserArea() throws FTD2XXException {\n int numberOfBytes = getEEPROMUserAreaSize();\n return readEEPROMUserArea(numberOfBytes);\n }", "public byte[] readEEPROMUserArea(int numberOfBytes) throws FTD2XXException {\n IntByReference actually = new IntByReference();\...
[ "0.707304", "0.63610715", "0.6144361", "0.6073744", "0.60535926", "0.60182166", "0.60182166", "0.6010481", "0.58434665", "0.58121055", "0.5795467", "0.5722393", "0.5618482", "0.55947316", "0.5545715", "0.5514205", "0.54959905", "0.5486082", "0.5486082", "0.5482695", "0.547987...
0.8140395
0