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
tail recursion, like a special iteration,can get rid of the risk of stack overflow.
private int fibonacci(int n, int acc1, int acc2) { if (n < 2) { return n == 0 ? 0 : acc1; } return fibonacci(n - 1, acc2, acc1 + acc2);// time complexity: O(n) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node reverseLinkedlisthelper(Node current){\n\t\tif (current.next == null){\n\t\t\tthis.head = current; // new head end of list\n\t\t\treturn current;\n\t\t}\n\t\tNode ptr_ahead = reverseLinkedlisthelper(current.next); // get to end of list\n\t\tptr_ahead.next = current;\n\t\treturn current;\n\n\n\t\t// TA...
[ "0.6177615", "0.602395", "0.59977865", "0.58146346", "0.5753271", "0.57084507", "0.56636786", "0.564722", "0.5622776", "0.56028515", "0.5599087", "0.5575794", "0.5566723", "0.5563634", "0.5497958", "0.5486944", "0.5480401", "0.5480086", "0.5475685", "0.54724663", "0.54616773"...
0.0
-1
Function to evaluate a postfix expression.
public static int evaluatePostFix(String S) { if(S.length()==1){ return (int)S.charAt(0); } Stack<Integer> stack = new Stack<Integer>(); for(char ch:S.toCharArray()){ if(Character.isDigit(ch)){ int value = ch-'0'; stack...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void evalPostfix(String postfix){\r\n char ch;\r\n\r\n for(int i = 0; i < postfix.length() ; i++) //parses postfix string and performs operations based on operator found\r\n {\r\n ch = postfix.charAt(i);\r\n \r\n if(ch == '+')\r\n ...
[ "0.7785264", "0.75262403", "0.7392445", "0.73865294", "0.73617774", "0.7306419", "0.7226228", "0.7196846", "0.7139913", "0.710854", "0.71079904", "0.7082235", "0.68955594", "0.68487144", "0.6844936", "0.6824533", "0.68095344", "0.6760497", "0.67438084", "0.67119163", "0.67103...
0.55720013
80
/CuratorFramework client = ConnectUtil.connect(); client.start();
public static void main(String[] args) { String path = "/path"; System.out.println(ZKPaths.fixForNamespace("namespace", path)); // /namespace/path System.out.println(ZKPaths.makePath(path, "sub")); // /path/sub System.out.println(ZKPaths.getNodeFromPath("/curator_zkpath_sample/sub1")); /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n ...
[ "0.6480268", "0.64752865", "0.63634944", "0.62981004", "0.62856776", "0.62856776", "0.62856776", "0.6209384", "0.6205261", "0.6158579", "0.61071795", "0.60721385", "0.606465", "0.60525197", "0.603629", "0.60294217", "0.59425825", "0.5914131", "0.5912212", "0.5911102", "0.5900...
0.0
-1
Initialises the internal list with an empty list and the internal time to live with the new, given TTL.
public FormInfoAdministration(Calendar newTTL) { if (newTTL.after(Calendar.getInstance())) { this.TTL = newTTL; } else { throw new IllegalArgumentException("Given date is not later than the current time!"); } this.forms = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}", "public ListHolder()\n {\n this.list = new TestList(15, false);\n }", "myArrayList() {\n\t\thead = null;\n\t\ttail = null;\n\t}", "void in...
[ "0.64320475", "0.6372134", "0.6248798", "0.6247777", "0.61629874", "0.6160884", "0.6149645", "0.61473155", "0.61393124", "0.60767436", "0.6000145", "0.5940549", "0.5919975", "0.5912178", "0.58961993", "0.58570915", "0.58278984", "0.5822975", "0.582092", "0.58172774", "0.57934...
0.0
-1
The function parses the list of students that is offered through the first parameter, it creates a new form for each student then parses the package list we receive through the second parameter. If the year in which the student is about to pass into is equal to the year of a package then that package is added to the fo...
@Override public void generateForms(StudentAdministration students, PackageAdministration packages) { for (Student i : students.studList) { FormInfo form = new FormInfo(); form.setStudent(i); for (Package j : packages.getPackageList()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Group aco21 = new Group();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n Scanner sc = new Scanner(System.in);\n int choice1 = sc.nextInt();\n if (choice1 == 1)\n {\n\n System.out.prin...
[ "0.57431376", "0.5643376", "0.56064034", "0.5503513", "0.5458455", "0.54121625", "0.5409141", "0.53903985", "0.5353645", "0.53167444", "0.53151304", "0.51986146", "0.5165723", "0.5163364", "0.5127401", "0.5097294", "0.50969917", "0.5042797", "0.50368464", "0.50313705", "0.502...
0.7760873
0
Looks in the internal form list for the provided student's form data and returns it.
public FormInfo getForm (Student forWhom) { for (int i = 0; i < forms.size(); i++) { if (this.forms.get(i).getStudent().getNrMatricol().equals(forWhom.getNrMatricol())) { return this.forms.get(i); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FormInfo getForm (String forWhomNrMat) {\n for (int i = 0; i < forms.size(); i++) {\n if (this.forms.get(i).getStudent().getNrMatricol().equals(forWhomNrMat)) {\n return this.forms.get(i);\n }\n }\n \n return null;\n }", "@Override\n\tpub...
[ "0.6625354", "0.633087", "0.58402616", "0.57616925", "0.5659144", "0.5648299", "0.5508366", "0.5345072", "0.53288484", "0.52634764", "0.52570933", "0.520192", "0.520014", "0.51635677", "0.5138108", "0.5137452", "0.5104145", "0.50959647", "0.5075885", "0.5074837", "0.5060016",...
0.66647094
0
Looks in the internal form list for the provided student's (by registration number) form data and returns it.
public FormInfo getForm (String forWhomNrMat) { for (int i = 0; i < forms.size(); i++) { if (this.forms.get(i).getStudent().getNrMatricol().equals(forWhomNrMat)) { return this.forms.get(i); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FormInfo getForm (Student forWhom) {\n for (int i = 0; i < forms.size(); i++) {\n if (this.forms.get(i).getStudent().getNrMatricol().equals(forWhom.getNrMatricol())) {\n return this.forms.get(i);\n }\n }\n \n return null;\n }", "@Override...
[ "0.6093095", "0.58604026", "0.5671616", "0.56467855", "0.5551877", "0.5364651", "0.53457254", "0.5336867", "0.52685016", "0.51787764", "0.51643443", "0.51458824", "0.51363426", "0.50966084", "0.50964934", "0.50780463", "0.50775886", "0.5054517", "0.50299054", "0.50271535", "0...
0.6225565
0
The function returns the time to live of the forms.
public Calendar getTTL () { return this.TTL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long now() {\n\treturn System.currentTimeMillis();\n }", "public int getTimeToLive() {\n\t\treturn deathsTillForget;\n\t}", "public int getLifeTime() {\n return lifeTime;\n }", "long time() {\r\n\t\treturn System.currentTimeMillis();\r\n\t}", "public long timeOfCreation() {\n\t\treturn...
[ "0.60867023", "0.6002659", "0.59419775", "0.58447576", "0.5842973", "0.5801878", "0.56921345", "0.5688359", "0.56790775", "0.5650013", "0.562846", "0.5627509", "0.5619315", "0.5595406", "0.55931705", "0.5592811", "0.5589232", "0.55825764", "0.55825764", "0.55825764", "0.55825...
0.0
-1
The function sets the time to live of the forms.
public void setTTL (Calendar newTTL) { this.TTL = newTTL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FormInfoAdministration(Calendar newTTL) {\n if (newTTL.after(Calendar.getInstance())) {\n this.TTL = newTTL;\n } else {\n throw new IllegalArgumentException(\"Given date is not later than the current time!\");\n }\n \n this.forms = new ArrayList<>();\...
[ "0.6299434", "0.60666054", "0.6032972", "0.5908874", "0.58524257", "0.5816864", "0.5808449", "0.57350814", "0.5702795", "0.56899035", "0.565662", "0.5650769", "0.5645884", "0.56245625", "0.5617145", "0.5611091", "0.559922", "0.5579242", "0.5572614", "0.55725044", "0.5564361",...
0.0
-1
The function returns a list of all forms.
@Override public List<FormInfo> getForms() { return forms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Collection<Pair<String,String>> getAllForms();", "public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement =...
[ "0.80221283", "0.7604518", "0.72979206", "0.6971664", "0.69136536", "0.6815654", "0.6649823", "0.65440375", "0.64786446", "0.63613963", "0.63306546", "0.62499285", "0.61914873", "0.60885584", "0.6076795", "0.60381556", "0.60220337", "0.5984004", "0.597678", "0.5893749", "0.58...
0.7490939
2
Sets the list of forms from this class in the one we receive as parameter.
@Override public void setForms(List<FormInfo> forms) { this.forms = forms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<FormInfo> getForms() {\n return forms;\n }", "public void setForm(Form form)\n {\n this.form = form;\n }", "@Override\n\tpublic void setForm(Form f) {\n\t\tsuper.setForm(f);\n\n\t\tfor (SPhraseSpec s : this.coordinator.coordinates) {\n\t\t\ts.setForm(f);\n\t\t}...
[ "0.6782703", "0.6400985", "0.61519486", "0.60383713", "0.5992156", "0.59741455", "0.57665026", "0.57537866", "0.5720694", "0.5544845", "0.55189055", "0.547192", "0.5451192", "0.54328096", "0.5393605", "0.5390344", "0.5341365", "0.5336259", "0.53269875", "0.5324784", "0.53071"...
0.783086
0
Instanciate different type of Arrays to work with
public static void main(String...args){ byte[] byte_arr = new byte[]{69,66,65,68,67,70}; char[] char_arr = new char[]{'D','F','C','A','E','B'}; double[] double_arr = new double[6]; float [] float_arr = new float[]{25F,21F,27F,19F,59F,3F}; int[] int_arr = new int[]{16,7,28,9,13,10}; long [] long_arr = new long[]{25...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Array createArray();", "@Test\n public void testArrayCreationWithDifferentTypes() {\n final Number[] array = ArrayUtils.<Number>toArray(Integer.valueOf(42), Double.valueOf(Math.PI));\n assertEquals(2, array.length);\n assertEquals(Integer.valueOf(42), array[0]);\n assertEquals(Doub...
[ "0.7268367", "0.6925129", "0.6848093", "0.64936507", "0.64416105", "0.63978404", "0.63951206", "0.6376196", "0.6362285", "0.63285434", "0.6323776", "0.62849677", "0.6271651", "0.6260203", "0.621353", "0.6205735", "0.6195284", "0.619272", "0.61895895", "0.61805105", "0.6177468...
0.0
-1
Initialize the singleton object
public static void init() { startTime = System.currentTimeMillis(); if (clientExecutorEngine == null) { clientExecutorEngine = new ClientExecutorEngine(); HzClient.initClient(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private SingletonObject() {\n\n\t}", "private Singleton(){}", "public static void init() {}", "private void initInstance() {\n init$Instance(true);\n }", "private Singleton() {\n\t}", "public static void init() {\n }", "public static void init() {\n ...
[ "0.79079753", "0.7905193", "0.779561", "0.77938586", "0.7728597", "0.76807106", "0.76626366", "0.76626366", "0.76329637", "0.76245844", "0.76119703", "0.7606246", "0.7606246", "0.75413775", "0.7530755", "0.7530755", "0.74550664", "0.7445606", "0.7445606", "0.7445606", "0.7445...
0.0
-1
Initialize the singleton object
public static void initDrillConnector() { startTime = System.currentTimeMillis(); if (clientExecutorEngine == null) { clientExecutorEngine = new ClientExecutorEngine(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private SingletonObject() {\n\n\t}", "private Singleton(){}", "public static void init() {}", "private void initInstance() {\n init$Instance(true);\n }", "private Singleton() {\n\t}", "public static void init() {\n }", "public static void init() {\n ...
[ "0.79079753", "0.7905193", "0.779561", "0.77938586", "0.7728597", "0.76807106", "0.76626366", "0.76626366", "0.76329637", "0.76245844", "0.76119703", "0.7606246", "0.7606246", "0.75413775", "0.7530755", "0.7530755", "0.74550664", "0.7445606", "0.7445606", "0.7445606", "0.7445...
0.0
-1
Executes the initialization workflow of Data Cafe once, and only once.
private ClientExecutorEngine() { ClientConfigReader.readConfig(); DrillConnector.initConnection(); HzConfigReader.readConfig(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitializ...
[ "0.69372433", "0.6752757", "0.6666985", "0.6614315", "0.6614315", "0.6605402", "0.6559445", "0.6468181", "0.64643884", "0.6423759", "0.64201874", "0.63855785", "0.6381431", "0.63665915", "0.6350348", "0.6310279", "0.630479", "0.630479", "0.6302403", "0.6291695", "0.6227947", ...
0.0
-1
Get the execution start time.
public static long getStartTime() { return startTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getStartTime () {\n if (isPerformance) {\n return System.currentTimeMillis();\n }\n else\n {\n return 0;\n }\n }", "public long getStartTime() {\n\t\treturn startTime;\n\t}", "long getExecutionTime();", "public float getStartTime()\r\n\t{\r\n\t\tif (starttime != null)\r\...
[ "0.81523", "0.7770029", "0.77127373", "0.76993227", "0.769927", "0.769927", "0.769927", "0.7675886", "0.76532024", "0.76532024", "0.76532024", "0.76532024", "0.7635652", "0.76182073", "0.76182073", "0.76176083", "0.76175463", "0.76004684", "0.76004684", "0.76004684", "0.76004...
0.78611
1
Prints the time that it took to complete the execution from the start up time.
public static void printExecutionTime() { long endTime = System.currentTimeMillis(); logger.info("Completed Execution in: " + (endTime - ClientExecutorEngine.getStartTime())/1000.0 + " seconds."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void printExecutionTime(){\n //Do nothing\n }", "private void printTimer() {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"-- \" + getTimeString() + \" --\");\n\t\t}\n\t}", "public void printRuntimes() {\n\t\tfor(long x: runtimes){\n\t\t\tSystem.out.print...
[ "0.735922", "0.7297835", "0.7125216", "0.6865764", "0.6844361", "0.67723006", "0.6751577", "0.6748845", "0.67347777", "0.6693446", "0.6683685", "0.6586449", "0.65851367", "0.6544796", "0.65231246", "0.6522672", "0.6522565", "0.6517962", "0.64644825", "0.64478934", "0.64444363...
0.7697331
0
Factory class that creates a CertSelector
public interface CertSelectorFactory<T extends CertSelector> { /** * Creates the CertSelector based on the information in the Certificate. * @param cert - The certificate containing information used to create the CertSelector. * @return - Returns the instantiated CertSelector. * @throws Key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T createCertSelector(Certificate cert) throws KeySelectorException;", "public CertificationFactoryImpl() {\n\t\tsuper();\n\t}", "private Selector() { }", "private Selector() { }", "public Selector() {\n }", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n ...
[ "0.83047456", "0.5831419", "0.5437256", "0.5437256", "0.5175117", "0.5151715", "0.51175636", "0.50561196", "0.5029613", "0.49685684", "0.49539533", "0.4906394", "0.48983622", "0.48899415", "0.48678592", "0.48147875", "0.47685283", "0.47676095", "0.47531056", "0.47464076", "0....
0.83855
0
Creates the CertSelector based on the information in the Certificate.
T createCertSelector(Certificate cert) throws KeySelectorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CertSelectorFactory<T extends CertSelector> {\r\n /**\r\n * Creates the CertSelector based on the information in the Certificate.\r\n * @param cert - The certificate containing information used to create the CertSelector.\r\n * @return - Returns the instantiated CertSelector.\r\n ...
[ "0.68616945", "0.5563047", "0.5490117", "0.51392597", "0.50286895", "0.49516737", "0.4896435", "0.48612544", "0.48517844", "0.4846046", "0.48439834", "0.4816435", "0.48122194", "0.47947994", "0.47908103", "0.47866616", "0.47787482", "0.47715175", "0.47654915", "0.47388127", "...
0.80953574
0
Adds the various components to the frame
private void init() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(10, 10, 1024, 720 ); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, 0)); /* * The north part of the layout contains the text fields describing the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addComponents() {\r\n\t\t// initialize properties and add.\r\n\t\tthis.add(initializeChatArea(), BorderLayout.CENTER);\r\n\t\tthis.add(initializeSubPanel(), BorderLayout.SOUTH);\r\n\t}", "private void addComponents() {\n\t\tadd(newGame);\n\t\tadd(nameLabel);\n\t\tadd(nameField);\n\t\tadd(addPlayer);...
[ "0.76366884", "0.76081496", "0.75939274", "0.7578359", "0.75540745", "0.7546394", "0.75178224", "0.7431808", "0.7409727", "0.7332324", "0.72194135", "0.718193", "0.7158839", "0.71327806", "0.71183825", "0.70377415", "0.70320606", "0.7025703", "0.70066744", "0.6973034", "0.694...
0.0
-1
/ The recursive formula for the Mandelbrot Set where z(i+1) = z(i)z(i) + c, and z(0) = 0
private int z(int i, Complex prevZ) { if(i == 0) return z(1, Complex.ZERO); if(i >= maxIts) return maxIts; else { Complex res = c.add(prevZ.square()); if (res.modulusSquared() < 4.0) { return z(i+1, res); } else { escapeZ = res; return i; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createMandelbrot(int steps) {\r\n if (initialValue == null) {\r\n System.out.println(\"Initial value for Mandelbrot set undefined\");\r\n return;\r\n }\r\n if (colors.size() < 2) {\r\n System.out.println(\"At least two colors are needed to calculate...
[ "0.5824433", "0.55309325", "0.54961187", "0.5345521", "0.53417546", "0.5302707", "0.52930933", "0.51996136", "0.51712346", "0.5166607", "0.51448154", "0.512819", "0.5085348", "0.50536305", "0.5044058", "0.5021997", "0.5020698", "0.50190103", "0.5013823", "0.49861938", "0.4973...
0.5225681
7
TODO Autogenerated method stub
@Override public String toString() { return "Task no "+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
instance, diger methodlardan bu nesneye erisebilmek icin.
@BeforeClass public static void setup(){ WebDriverManager.chromedriver().setup(); webDriver = new ChromeDriver(); webDriver.manage().window().maximize(); webDriver.manage().timeouts().implicitlyWait(3000, TimeUnit.MILLISECONDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected FanisamBato(){\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "Objet getObjetAlloue();", "private ControleurAcceuil(){ }", "public void trenneVerbindung();", "public static LoInscripcion GetInstancia(){\n if (instancia=...
[ "0.613935", "0.6084645", "0.6035713", "0.6000154", "0.59931064", "0.59836936", "0.5971716", "0.59647894", "0.59628916", "0.5958422", "0.595802", "0.5956722", "0.5911404", "0.5863364", "0.58622473", "0.58621126", "0.5812293", "0.5800171", "0.57903624", "0.57780486", "0.5766573...
0.0
-1
check if valid entry
public static void setPreviousAngina(byte pAngina) { if (pAngina == 0 || pAngina == 1 || pAngina == 9) { pAngina = previousAngina; switch (previousAngina) { case 0 : previousAnginaLongCode = "No"; break; case 1 : previousAnginaLongCode = "Yes"; break; case 9 : previousAnginaLongCode = "Unknown"; break;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n...
[ "0.6952801", "0.68941826", "0.6792039", "0.649168", "0.6367618", "0.63546926", "0.6327843", "0.63234586", "0.62910396", "0.62389666", "0.62257636", "0.6191393", "0.61806166", "0.6123066", "0.60743564", "0.60542226", "0.60539067", "0.60481733", "0.6038916", "0.60273224", "0.60...
0.0
-1
TODO Autogenerated method stub
@Override public List<DpzsJjfzPojo> getList() { return this.dpzsJjfzDao.getList(); }
{ "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
Sets the value of the point to the passedin value.
public abstract void set(DataType x, DataType y, DataType z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPoint(double value) {\r\n this.point = value;\r\n }", "public void setSetpoint(double setpoint);", "public void setPoint(double point){\r\n this.point = point;\r\n }", "public abstract void setPoint(Point p);", "void setValue(double value);", "void setPointChange(Intege...
[ "0.8158785", "0.7631238", "0.7464686", "0.7280797", "0.72783387", "0.7233051", "0.71973854", "0.71597296", "0.69728726", "0.69728726", "0.69728726", "0.6946448", "0.69407356", "0.69245607", "0.6899452", "0.6896638", "0.68718714", "0.686875", "0.68653435", "0.68648636", "0.685...
0.0
-1
Offsets this point by the passedin values.
public abstract void offset(DataType x, DataType y, DataType z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setOffset(double offset);", "void setOffsetPosition(double x, double y, double z);", "public void offsetXY(double dx, double dy) { setXY(_x + dx, _y + dy); }", "Double getOffset();", "public abstract double[] roughOffsets();", "double getOffset();", "@Override\n public MPPointF getOffset() {\n...
[ "0.6342173", "0.61255723", "0.59726214", "0.5958679", "0.59060484", "0.5869498", "0.58288383", "0.57523066", "0.57419467", "0.5732104", "0.56927305", "0.5645485", "0.56399226", "0.5564529", "0.5531612", "0.55072963", "0.54940766", "0.548698", "0.54690117", "0.5444347", "0.538...
0.58525157
6
Returns a new instance of the point, offset by the passedin values.
public abstract APoint3<DataType> newOffset(DataType x, DataType y, DataType z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point createPoint();", "public MyPoint1 (double x, double y) {}", "Offset createOffset();", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public MyPoint1(double x, int y) {\n ...
[ "0.67339176", "0.66668266", "0.61251014", "0.6114592", "0.5943903", "0.5922842", "0.59162986", "0.59110343", "0.5909659", "0.5905272", "0.58646667", "0.5863498", "0.5800333", "0.57284135", "0.56919706", "0.56810963", "0.5664436", "0.56587666", "0.56498885", "0.56110585", "0.5...
0.66162926
2
This is a specific set of entities including mobs and monsters which have health.
public interface EntityLiving extends Entity { /** * Sets whether or not this entity is sprinting. * * @param sprinting {@code true} to start sprinting, * {@code false} to stop sprinting */ void setSprinting(boolean sprinting); /** * Checks to see whether or not the entity is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeEntities() {\n arrAttack = new ArrayList<>();\n arrCollidable = new ArrayList<>();\n entities = new ArrayList<>();\n\n arrAttack = scene.entityManager.getEntitiesWithComponents(attackComponent.getClass(), tool.getClass());\n\n arrCollidable = scene.entityMa...
[ "0.65347576", "0.6529852", "0.639402", "0.62328523", "0.62125283", "0.6075705", "0.60586894", "0.60250676", "0.5989689", "0.5936279", "0.592483", "0.5709756", "0.5640585", "0.5597897", "0.5596536", "0.5584102", "0.555112", "0.55464274", "0.5539271", "0.5534731", "0.5519476", ...
0.514621
74
checking that I can add reviews to a list.
@Test public void testToString() { String expected ="Business: name='AMC Lowes', description='', price_range=2, stars=3.75}"; String actual = theater.toString(); Assert.assertEquals(expected,actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReviewsList(ArrayList<Review> reviews) {\n this.reviews = reviews;\n }", "public void setReviews(ArrayList<String> reviews) {\n this.reviews = reviews;\n }", "public void addReviews(List<Review> reviewsLoaded){\n\n if(reviewsLoaded==null)\n return;\n\n ...
[ "0.6137571", "0.6079199", "0.5928436", "0.5903619", "0.58700734", "0.57871556", "0.5761796", "0.57189876", "0.57136345", "0.56780386", "0.5662539", "0.5656078", "0.56530356", "0.5575714", "0.55678034", "0.55677986", "0.5544417", "0.5535601", "0.5498363", "0.5488039", "0.54578...
0.0
-1
check to see if the last element in the array is actually "Love Actually"
@Test public void addMovie_test() { theater.getMovies().add("Love Actually"); String expected = "Love Actually"; String actual = theater.getMovies().get(4); Assert.assertEquals(expected,actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}", "public boolean checkIfEnd(){\n boolean flag = false;\n int i = 0;\n while(i< arrayBoard.length){\n if(arrayBoard[i] == -1) {\n flag = true;\n break;\n ...
[ "0.6155056", "0.6121988", "0.60746807", "0.60565746", "0.59358144", "0.58246243", "0.58239645", "0.5816863", "0.5803093", "0.5780138", "0.57245016", "0.5722427", "0.5718963", "0.57070935", "0.5655047", "0.5652375", "0.5564745", "0.5558934", "0.553436", "0.55264306", "0.552458...
0.0
-1
see if removes the movie from the list.
@Test public void removeMovie_test() { theater.getMovies().remove("Jumanji"); int expected = 3; int actual = theater.getMovies().size(); Assert.assertEquals(expected,actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean removeMovie(String t)\n\t{\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getTitle().equals(t))\n\t\t\t{\n\t\t\t\treturn list_of_movies.remove(temp_movie);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "...
[ "0.7409806", "0.7140347", "0.70123106", "0.6947036", "0.6764785", "0.6757111", "0.67039955", "0.6702294", "0.64847916", "0.64835733", "0.6473971", "0.64476633", "0.64404094", "0.6422695", "0.63935953", "0.6392577", "0.6392577", "0.6392577", "0.6392577", "0.6392577", "0.638448...
0.6085555
59
Method: Account Inputs: Account name Returns: None Description: Constructor using only an account name.
protected Account(String n) { name = n; state = State.OPEN; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Account(String accountName) throws AccountException{\n\n\t\t\tif (accountName.length() < 5)\n\t\t\t\tthrow new AccountException (AccountException.NAME_TOO_SHORT, accountName);\n\t\t\tboolean valid = true;\n\t\t\tchar[] a = accountName.toCharArray();\n\t\t\tfor (char c: a) {\n\t\t\t\tvalid = ((c >= 'a') && ...
[ "0.6926861", "0.6861628", "0.68525857", "0.6691158", "0.6687904", "0.66747594", "0.6550155", "0.6500178", "0.6487378", "0.6446843", "0.6444122", "0.64422315", "0.63926375", "0.6318464", "0.63025427", "0.6265906", "0.62512636", "0.62512636", "0.6250401", "0.6237228", "0.623408...
0.6426948
12
Method: Account Inputs: Account name, account balance Returns: None Description: Constructor using an account name and initial balance.
protected Account(String n, float b) { this(n); balance = b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Account(String name, double balance)\r\n\t{\r\n\t\t\r\n\t\tthis.name = name; //assign name to the instance variable name \r\n\t\t\r\n\t\t// validate that the balance is greater that 0.0; if it is not,\r\n\t\t// instance variable balance keeps its default value 0.0\r\n\t\tif(balance > 0.0) // if balance is valid\r\...
[ "0.8276528", "0.80025685", "0.78950363", "0.7890592", "0.78843194", "0.7836227", "0.7825082", "0.77415466", "0.7667749", "0.7661778", "0.7637237", "0.7614932", "0.7524562", "0.75034994", "0.7499491", "0.7482023", "0.74369246", "0.74111915", "0.7378176", "0.73505825", "0.73269...
0.7236295
21
Method: getBalance Inputs: None Returns: The balance in the account Description: Retrieves the amount of the account balance
public final float getBalance() { return balance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getBalance();", "double getBalance();", "public Money getTotalBalance();", "public int getBalance() {\n return total_bal;\n }", "public String balance() {\n\t\treturn this.apiCall(\"balance\", \"\", \"\", true);\n\t}", "public double getBalance()\n \n {\n \n return balance;\n...
[ "0.82309407", "0.82309407", "0.80943656", "0.80644155", "0.8049924", "0.802611", "0.7998149", "0.7984423", "0.798228", "0.79658437", "0.79658437", "0.79652345", "0.79434794", "0.79434794", "0.7938144", "0.7937646", "0.79275125", "0.79181343", "0.79165417", "0.79165417", "0.79...
0.7820678
29
Method: getName Inputs: None Returns: The name of the account Description: Retrieves the name of the account
public final String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n LOGGER.trace(\"Called the AccountCashBalance getName() with no parameters.\");\n\n LOGGER.trace(\"Leaving the AccountCashBalance getName().\");\n LOGGER.trace(RETURNING + NAME + \">\");\n\n return NAME;\n }", "public String getAccountName() {\r\n return accountName...
[ "0.7759491", "0.7661737", "0.76323676", "0.76323676", "0.76323676", "0.7630492", "0.7548481", "0.7273681", "0.719916", "0.7118139", "0.71102697", "0.71102697", "0.71102697", "0.71102697", "0.71102697", "0.71102697", "0.71102697", "0.71102697", "0.71102697", "0.71102697", "0.7...
0.0
-1
Method: getState Inputs: None Returns: The account state Description: Returns the state of account
protected final State getState() { return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAccountStateCode() {\n return accountStateCode;\n }", "public StateEbo getAccountState() {\n if ( StringUtils.isBlank(accountStateCode) || StringUtils.isBlank(accountCountryCode) ) {\n accountState = null;\n } else {\n if ( accountState == null || !S...
[ "0.7456", "0.7293202", "0.7123835", "0.69458026", "0.69458026", "0.6920603", "0.6920603", "0.6920603", "0.6920603", "0.69067746", "0.69067746", "0.69017625", "0.687336", "0.687336", "0.687336", "0.687336", "0.687336", "0.687336", "0.68727696", "0.68687874", "0.6861127", "0....
0.0
-1
Method: getType Inputs: None Returns: The account type Description: Returns the type of account
public abstract String getType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAccountType() {\n return accountType;\n }", "public String getAccountType() {\n return accountType;\n }", "public AccountType getAccountType() {\n return accountType;\n }", "public AccountType getAccountType() {\n return accountType;\n }", "public in...
[ "0.81761926", "0.81761926", "0.8112566", "0.8112566", "0.77164245", "0.7620824", "0.75591546", "0.75313234", "0.74691594", "0.74149865", "0.7363587", "0.7338741", "0.70832247", "0.70718086", "0.70718086", "0.702179", "0.7009406", "0.69342166", "0.68392557", "0.67844784", "0.6...
0.0
-1
Method: setState Inputs: The desired State for the current account Returns: None Description: Sets the State of the account to the desired value
protected final void setState(State s) { state = s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setState(int state);", "public void setState(int state);", "public void setState(int state);", "void setState(State state);", "public void setState(State newState) {this.state = newState;}", "public void setState(Integer state) {\r\n this.state = state;\r\n }", "public void setState(Inte...
[ "0.7159129", "0.71444243", "0.71444243", "0.6991155", "0.6984197", "0.6965427", "0.6965427", "0.69290835", "0.69270784", "0.6915086", "0.6915086", "0.6915086", "0.6915086", "0.6915086", "0.6915086", "0.6908096", "0.68696815", "0.6852397", "0.68448853", "0.6838136", "0.6836021...
0.62500197
92
Method: deposit Inputs: The amount to be added to the existing balance Returns: Whether or not the deposit was successful Description: Adds money to an account. May not be done if the account is CLOSED.
public abstract boolean deposit(float amount);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n ...
[ "0.75436264", "0.7514651", "0.7454556", "0.7405468", "0.7386944", "0.73690546", "0.7363375", "0.7329738", "0.73201644", "0.7305173", "0.7302215", "0.729635", "0.7274073", "0.7272233", "0.72649384", "0.7263918", "0.7245239", "0.72446203", "0.72434515", "0.7235879", "0.72202736...
0.69507056
41
Method: toString Inputs: None Returns: A string containing the account name, balance, and state Description: Returns the account name, balance, and state of an account
public String toString() { return "Account " + name + " has $" + balance + "and is " + getState() + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return \"accountNumber=\" + accountNumber +\n \", name='\" + name + '\\'' +\n \", balance=\" + balance +\n \", pendingBalance=\" + pendingBalance;\n }", "public String toString()\n {\n return \"Name=\"+a...
[ "0.8135642", "0.7925171", "0.7625384", "0.7597292", "0.757159", "0.7544748", "0.75408673", "0.75152755", "0.7504469", "0.7498557", "0.7495585", "0.7349188", "0.73099923", "0.72814655", "0.7266838", "0.7220698", "0.72021323", "0.7179647", "0.7163352", "0.7125691", "0.7092468",...
0.8524993
0
Method: withdraw Inputs: Amount to withdraw Returns: Whether or not the withdraw was successful Description: Takes money out of an account. If the balance falls below 0 then the account is moved to an OVERDRAWN state.
public abstract boolean withdraw(float amount);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean withdraw(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tif (balance > amount) {\r\n\t\t\t\t\tbalance = (float) (balance - amount);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new InsufficientBalanceException(\"You'er Balance is insufficien...
[ "0.7978052", "0.7882014", "0.78543824", "0.7832191", "0.7756886", "0.7716161", "0.7712022", "0.7703669", "0.7698882", "0.766523", "0.76637673", "0.76285505", "0.75951755", "0.7588864", "0.75742996", "0.75667393", "0.753618", "0.75087565", "0.7498384", "0.74929416", "0.7478088...
0.74187976
24
Uses a flow pattern to specify the QR Code. You can control all aspects of the QR like specifying the version, mask, and message types or let it select all of that for you.
public static void main( String[] args ) { QrCode qr = new QrCodeEncoder(). setError(QrCode.ErrorLevel.M). addAutomatic("This is a Test ん鞠").fixate(); // NOTE: The final function you call must be fixate(), that's how it knows it's done // QrCodeGenerator is the base class with all the logic and the child...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createQrCode(View view) {\n String result = getResult();\n Bitmap qrBitmap = ScannableController.createQrBitmap(ScannableController\n .createUri(result, getIntent().getStringExtra(EXPERIMENT_ID),\n ((ExperimentType) getIntent().getSerializableExtra(EXPERIMENT_TYPE)).toString(),...
[ "0.653779", "0.61038715", "0.6094049", "0.59622574", "0.5848579", "0.5821872", "0.5712156", "0.56884867", "0.5600338", "0.5577776", "0.55221117", "0.55060565", "0.54899424", "0.5390578", "0.53676414", "0.5361287", "0.5328054", "0.5253778", "0.5248742", "0.5242549", "0.5201144...
0.50744474
27
this is the main function that... well... highlights our text :)
@Override protected void highlightText(int start, int length) { super.highlightText(start, length); try { int end = this.getLength(); String content = this.getText(0, end); // TODO :: actually use the start and length passed in as arguments! // (currently, they are just being ignored...) start =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void highlightText(Text text){\r\n\t text.changeColor(AnimalScript.COLORCHANGE_COLOR, Color.RED, new TicksTiming(0), new TicksTiming(0));\r\n\t }", "String highlightTerm(String term);", "public static void printHighlighted(String text) {\n System.out.println(\"*** \" + text + \" ***\");\n ...
[ "0.79868764", "0.7118323", "0.7020578", "0.68811256", "0.6869827", "0.68259937", "0.67111284", "0.6484932", "0.6468351", "0.644264", "0.64091873", "0.6371668", "0.6345491", "0.6306201", "0.6293012", "0.6291265", "0.6289073", "0.6282473", "0.62619025", "0.62251747", "0.6207723...
0.64335495
10
TODO Autogenerated method stub
public static void main(String[] args) { String[] tokens = {"4", "13", "5", "/", "+"}; System.out.println(cal(tokens)); }
{ "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
para los JPanel que son agregados a un JLayeredPane hay que definir el size explicitamente
@Override public void doLayout() { this.transitionsPanel.setBounds(0, 0, this.getWidth(), this.getHeight()); //this.timersButton.setBounds(this.getWidth()-2*50, 0, 50, 50); //this.countersButton.setBounds(this.getWidth()-50, 0, 50, 50); //this.salirButton.setBounds(this.getWidth()-40,0,40, 40); super.doLayou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void montarLayeredPane() {\n\t\tlayeredPane = new JLayeredPane();\r\n\t\tgetContentPane().add(layeredPane, BorderLayout.NORTH);\r\n\t\tlayeredPane.setPreferredSize(new Dimension(this.getWidth(), this.getHeight()));\r\n\r\n\t\tlayeredPane.setOpaque(true);\r\n\t\tlayeredPane.setBackground(Color.WHITE.darker(...
[ "0.6833735", "0.6707073", "0.653224", "0.6396119", "0.6362964", "0.6288453", "0.625823", "0.62513787", "0.6238196", "0.6236517", "0.6233474", "0.6209573", "0.6122295", "0.612029", "0.6113339", "0.6111014", "0.6095182", "0.60690916", "0.6051015", "0.6049777", "0.6038661", "0...
0.5862789
41
TODO Autogenerated method stub
@Override public TraverseMode getMode() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String getName() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Geometry getGeometry() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Adds a raw data file to the chromatogram plot.
public void addRawDataFile(@NotNull final RawDataFile rawDataFile) { if (filesAndDataSets.containsKey(rawDataFile)) { logger.fine("Raw data file " + rawDataFile.getName() + " already displayed."); return; } final Scan[] scans = getScanSelection().getMatchingScans(rawDataFile); if (scans.le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void plotData(){\n List<Entry> entriesMedidas = new ArrayList<Entry>();\n try{\n // #1\n FileInputStream fis = getApplicationContext().openFileInput(fileName);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new Buffe...
[ "0.5509522", "0.544943", "0.53293014", "0.5232684", "0.51691145", "0.51509166", "0.50270957", "0.4873819", "0.48355818", "0.4818387", "0.47760022", "0.47605565", "0.47577736", "0.47276923", "0.47249648", "0.47237253", "0.47093487", "0.4694365", "0.46867266", "0.46857116", "0....
0.6910721
0
Removes a raw data file and it's features from the chromatogram and spectrum plot.
public void removeRawDataFile(@NotNull final RawDataFile file) { logger.fine("Removing raw data file " + file.getName()); TICDataSet dataset = filesAndDataSets.get(file); chromPlot.getXYPlot().setDataset(chromPlot.getXYPlot().indexOf(dataset), null); chromPlot.removeFeatureDataSetsOfFile(file); file...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removePlotData() {\n\t\tif (xySeries != null) {\n\t\t\tfor (int i = 0; i < xySeries.length; i++) {\n\t\t\t\tif (xySeries[i] != null) {\n\t\t\t\t\txySeries[i].clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tseriesCount = 0;\n\t\txySeries = new XYSeries[seriesCount + 1];\n\t}", "public static void clearData()...
[ "0.6098241", "0.6091998", "0.600499", "0.5910913", "0.59092396", "0.5726836", "0.5649014", "0.5572578", "0.54999703", "0.54780483", "0.5442274", "0.54250205", "0.53919834", "0.5358548", "0.5327999", "0.53241223", "0.5304634", "0.52973366", "0.528768", "0.52787656", "0.5262415...
0.7353453
0
Accumulate all updates for x ms
private void delayedFeatureDataUpdate(final double mz) { // mz of the base peak in the selected scan of the selected raw data file. Range<Double> bpcChromToleranceRange = getChromMzTolerance().getToleranceRange(mz); FeatureDataSetCalc thread = new FeatureDataSetCalc(filesAndDataSets.keySet(), bpcChr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void update() {\n\t\tcurrentIteration.clear();\n\t\tcurrentIteration.addAll(currentCalls.values());\n\t\tfor (RegisteredCall i : currentIteration) {\n\t\t\ti.update();\n\t\t}\n\t}", "public abstract void accumulate(long timestamp, int value);", "private void calculate() throws InterruptedEx...
[ "0.62715113", "0.61286616", "0.61114734", "0.6054273", "0.60046446", "0.59880394", "0.5950473", "0.59021205", "0.588391", "0.5869292", "0.582718", "0.58038867", "0.5771116", "0.57392406", "0.5699277", "0.5688981", "0.5668277", "0.5659956", "0.5639917", "0.5635024", "0.5622951...
0.0
-1
Property getters and setters
@NotNull public TICPlotType getPlotType() { return plotType.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ReadProperty()\r\n {\r\n\r\n }", "@Override\n public void get() {}", "Property getProperty();", "Property getProperty();", "@Override\n String get();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n protected void updateProperties() {\n }", "public String get()...
[ "0.6489982", "0.6447989", "0.63977", "0.63977", "0.63766956", "0.6304834", "0.62846845", "0.6277795", "0.62730384", "0.62319756", "0.6169404", "0.61619717", "0.61595476", "0.615358", "0.61529946", "0.61529946", "0.6130282", "0.61203426", "0.61191255", "0.6102117", "0.6090708"...
0.0
-1
Changes the plot type. Also recalculates the all data sets if changed from BPC to TIC.
public void setPlotType(@NotNull TICPlotType plotType) { this.plotType.set(plotType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPaintType(int type) {\n\t\tthis.shapeType = type;\n\t}", "@NotNull\n public TICPlotType getPlotType() {\n return plotType.get();\n }", "void setDataType(int type );", "public abstract void setType();", "public void change_type(int type_){\n\t\ttype = type_;\n\t\tif(type != ...
[ "0.61158055", "0.5911074", "0.5857733", "0.5661625", "0.55985403", "0.5593237", "0.55681264", "0.5553109", "0.549732", "0.54846615", "0.54795456", "0.5448782", "0.5441459", "0.5434111", "0.5426118", "0.5406469", "0.5395499", "0.53486085", "0.5324601", "0.53235114", "0.5304705...
0.69072294
0
Sets the scan selection. Also updates all data sets in the chromatogram plot accordingly.
public void setScanSelection(@NotNull ScanSelection selection) { scanSelection.set(selection); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelection(Pair selection);", "private static void doCommandLineSpecificConcurrentScanSetup(ConcurrentScan scan) throws Exception {\n\t\tif (LocalProperties.check(GDA_SCAN_SET_SCAN_PLOT_SETTINGS)) {\n\t\t\tscan.setScanPlotSettings(createScanPlotSettings(scan));\n\t\t}\n\t}", "public void setSelec...
[ "0.60162383", "0.6010545", "0.60020906", "0.5888491", "0.5697207", "0.55483025", "0.55233675", "0.55049545", "0.5450756", "0.5450478", "0.5360434", "0.5339177", "0.53330266", "0.5322389", "0.53074896", "0.5282962", "0.52310085", "0.5223008", "0.5215234", "0.52104807", "0.5186...
0.6665637
0
TODO Autogenerated method stub
public static void main(String[] args) throws InterruptedException { WebDriver driver=new ChromeDriver(); driver.manage().window().maximize(); driver.get("http://localhost/login.do"); WebElement USTB = driver.findElement(By.id("username")); USTB.sendKeys("admin"); WebElement PWTB = driver.findElement(By.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
Checks the url of request.
@Description("request url equals to '{url}'") public static Criteria<HarEntry> recordedRequestUrl(@DescriptionFragment("url") String url) { checkArgument(isNotBlank(url), "URL should be defined"); return condition(entry -> { String requestUrl = entry.getRequest().getUrl(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "public boolean verifyUrl(String url) {\n\t\tif (getter().getCurrentUrl().equals(url)) {\r\n\t\t\tSystem.out.println(\"The url: \"+url+\" matched successfully\");\r\n\t\t\treturn true;\r\n\t\t} else {\...
[ "0.6775588", "0.6775588", "0.6775588", "0.6775588", "0.6775588", "0.6775062", "0.6611872", "0.6605553", "0.63403887", "0.62979704", "0.6284372", "0.6223441", "0.62190944", "0.61968845", "0.6159563", "0.61555415", "0.61542416", "0.61504316", "0.6074625", "0.6047692", "0.603171...
0.5638907
81
Checks the url of request.
@Description("request url contains '{urlExpression}' or fits regExp pattern '{urlExpression}'") public static Criteria<HarEntry> recordedRequestUrlMatches(@DescriptionFragment("urlExpression") String urlExpression) { checkArgument(isNotBlank(urlExpression), "URL Substring/RegExp should be defined"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "public boolean verifyUrl(String url) {\n\t\tif (getter().getCurrentUrl().equals(url)) {\r\n\t\t\tSystem.out.println(\"The url: \"+url+\" matched successfully\");\r\n\t\t\treturn true;\r\n\t\t} else {\...
[ "0.6775588", "0.6775588", "0.6775588", "0.6775588", "0.6775588", "0.6775062", "0.6611872", "0.6605553", "0.63403887", "0.62979704", "0.6284372", "0.6223441", "0.62190944", "0.61968845", "0.6159563", "0.61555415", "0.61542416", "0.61504316", "0.6074625", "0.6047692", "0.603171...
0.0
-1
Checks HTTP method of request.
@Description("request with method '{method}'") public static Criteria<HarEntry> recordedRequestMethod(@DescriptionFragment("method") HttpMethod method) { checkArgument(nonNull(method), "Method should be defined"); return condition(entry -> { HttpMethod requestMethod = entry.getRequest()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n ...
[ "0.7534386", "0.7484932", "0.71503186", "0.67939544", "0.6770117", "0.67534626", "0.6746875", "0.6746875", "0.6743211", "0.6683284", "0.649209", "0.6431116", "0.6404275", "0.6356645", "0.6344347", "0.62209237", "0.61965466", "0.61904246", "0.61798507", "0.6086182", "0.6076334...
0.5341393
65
Checks HTTP version of request.
@Description("request with HTTP version '{version}'") public static Criteria<HarEntry> recordedRequestHttpVersion(@DescriptionFragment("version") HttpClient.Version version) { checkArgument(nonNull(version), "Http version should be defined"); return condition(entry -> { HttpClient.Versi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public static EHTTPVersion getHttpVersion (@Nonnull final HttpServletRequest aHttpRequest)\n {\n ValueEnforcer.notNull (aHttpRequest, \"HttpRequest\");\n\n final String sProtocol = aHttpRequest.getProtocol ();\n return EHTTPVersion.getFromNameOrNull (sProtocol);\n }", "@Test\n\tpublic voi...
[ "0.6796216", "0.67828584", "0.6781424", "0.6606606", "0.6604417", "0.63124156", "0.62910366", "0.62711954", "0.6215619", "0.619766", "0.6155063", "0.61237", "0.61025035", "0.59887266", "0.5729434", "0.5697805", "0.56861675", "0.56817174", "0.56817174", "0.5673297", "0.5667074...
0.67616063
3
Checks HTTP version of response.
@Description("response with HTTP version '{version}'") public static Criteria<HarEntry> recordedResponseHttpVersion(@DescriptionFragment("version") HttpClient.Version version) { checkArgument(nonNull(version), "Http version should be defined"); return condition(entry -> { HttpClient.Ver...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testVersion() {\n\t\tassertEquals(\"HTTP/1.0\", myReply.getVersion());\n\t}", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "public abstract HttpClient.Version version();", "private boolean inspectHeader() throws UrlCacheException {\n...
[ "0.73727554", "0.6705415", "0.6530492", "0.64173234", "0.6280113", "0.6276655", "0.6228849", "0.62015456", "0.6181371", "0.6119287", "0.5996485", "0.59927773", "0.5926509", "0.5890692", "0.58015335", "0.57713586", "0.56681997", "0.5666948", "0.5660432", "0.564246", "0.5638338...
0.67773795
1
Checks query parameter of request.
@Description("request has query parameter '{param}' with value '{value}'") public static Criteria<HarEntry> recordedRequestQueryParam(@DescriptionFragment("param") String queryParam, @DescriptionFragment("value") String value) { checkArgument(is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasQueryParams();", "static boolean Requested(HttpServletRequest request, String paramName)\n {\n \n String value = request.getParameter(paramName);\n Logging.debug(\"Got parameter \"+paramName+\"=\" + value);\n \n if (value != null) {\n if (yesMatcher.matcher(value).lo...
[ "0.67197114", "0.67041844", "0.631904", "0.6260142", "0.6064908", "0.5967159", "0.5944192", "0.5884531", "0.5860839", "0.5855593", "0.5781055", "0.5781055", "0.5781055", "0.5781055", "0.5781055", "0.5781055", "0.5781055", "0.5781055", "0.5781055", "0.5781055", "0.575401", "...
0.5685752
24
Checks query parameters of request.
@Description("request has query parameter '{param}' with value contains/matches RegExp pattern '{valueExpression}'") public static Criteria<HarEntry> recordedRequestQueryParamMatches(@DescriptionFragment("param") String queryParam, @DescriptionFr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasQueryParams();", "private String checkParameters (HttpServletRequest request)\r\n\t{\r\n\t\tString ret = \"ok\";\r\n\t\tString paramName = null;\r\n\t\tString occNo = null;\r\n\t\tString encoding = null;\r\n\t\tString reqInd = null;\r\n\t\tString expression = \"^[-+]?[0-9]*\";\r\n\t\tPattern pattern =...
[ "0.69456553", "0.6274975", "0.60888517", "0.6052679", "0.5996908", "0.59503436", "0.5920912", "0.58160263", "0.5808718", "0.57717407", "0.5755884", "0.57104945", "0.5648974", "0.5610361", "0.5602478", "0.56019086", "0.55913544", "0.55866295", "0.5583928", "0.5573993", "0.5569...
0.0
-1
Checks header of request.
@Description("request has header '{name}' with value '{value}'") public static Criteria<HarEntry> recordedRequestHeader(@DescriptionFragment("name") String name, @DescriptionFragment("value") String value) { checkArgument(isNotBlank(name), "Request ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean inspectHeader() throws UrlCacheException {\n\n\t\tif(header.contains(\"HTTP/1.1 2\")){\n\t\t\treturn true;\n\t\t}\n\t\telse if(header.contains(\"HTTP/1.1 304\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthrow new UrlCacheException();\n\t\t\n\t}", "@Test\n\tpublic void verifyHeader() {\n\t\t\tHeade...
[ "0.6919119", "0.67241883", "0.656273", "0.6506029", "0.64947665", "0.64791566", "0.6441101", "0.637086", "0.6344169", "0.630133", "0.62987876", "0.62913245", "0.62612927", "0.61795765", "0.6173119", "0.6172476", "0.6150899", "0.61382717", "0.61345947", "0.60372865", "0.601600...
0.0
-1
Checks header of request.
@Description("request has header '{name}' with value contains/matches RegExp pattern '{valueExpression}'") public static Criteria<HarEntry> recordedRequestHeaderMatches(@DescriptionFragment("name") String name, @DescriptionFragment("valueExpression")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean inspectHeader() throws UrlCacheException {\n\n\t\tif(header.contains(\"HTTP/1.1 2\")){\n\t\t\treturn true;\n\t\t}\n\t\telse if(header.contains(\"HTTP/1.1 304\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthrow new UrlCacheException();\n\t\t\n\t}", "@Test\n\tpublic void verifyHeader() {\n\t\t\tHeade...
[ "0.6919119", "0.67241883", "0.656273", "0.6506029", "0.64947665", "0.64791566", "0.6441101", "0.637086", "0.6344169", "0.630133", "0.62987876", "0.62913245", "0.62612927", "0.61795765", "0.6173119", "0.6172476", "0.6150899", "0.61382717", "0.61345947", "0.60372865", "0.601600...
0.0
-1
Checks header of response.
@Description("response has header '{name}' with value '{value}'") public static Criteria<HarEntry> recordedResponseHeader(@DescriptionFragment("name") String name, @DescriptionFragment("value") String value) { checkArgument(isNotBlank(name), "Respo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void verifyHeader() {\n\t\t\tHeaders head = response.getHeaders();\n\t\t\tAssert.assertEquals(head.getValues(\"Content-Type\").toString(), \"[application/json; charset=utf-8]\");\n\t\t}", "private boolean inspectHeader() throws UrlCacheException {\n\n\t\tif(header.contains(\"HTTP/1.1 2\")){\n\t\t...
[ "0.74496514", "0.68474096", "0.68146497", "0.6768022", "0.67253286", "0.67115116", "0.66004056", "0.65636355", "0.65203327", "0.64755154", "0.64367384", "0.6402992", "0.6367963", "0.631499", "0.6280667", "0.6230988", "0.6181408", "0.6114914", "0.60897404", "0.6050958", "0.594...
0.0
-1
Checks header of response.
@Description("response has header '{name}' with value contains/matches RegExp pattern '{valueExpression}'") public static Criteria<HarEntry> recordedResponseHeaderMatches(@DescriptionFragment("name") String name, @DescriptionFragment("valueExpressio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void verifyHeader() {\n\t\t\tHeaders head = response.getHeaders();\n\t\t\tAssert.assertEquals(head.getValues(\"Content-Type\").toString(), \"[application/json; charset=utf-8]\");\n\t\t}", "private boolean inspectHeader() throws UrlCacheException {\n\n\t\tif(header.contains(\"HTTP/1.1 2\")){\n\t\t...
[ "0.74496514", "0.68474096", "0.68146497", "0.6768022", "0.67253286", "0.67115116", "0.66004056", "0.65636355", "0.65203327", "0.64755154", "0.64367384", "0.6402992", "0.6367963", "0.631499", "0.6280667", "0.6230988", "0.6181408", "0.6114914", "0.60897404", "0.6050958", "0.594...
0.0
-1
Checks body of request.
@Description("request has body '{body}'") public static Criteria<HarEntry> recordedRequestBody(@DescriptionFragment("body") String body) { checkArgument(isNotBlank(body), "Request body should be defined"); return condition(entry -> { HarPostData postData = entry.getRequest().getPostData...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasBody() {\n /*\n * For response, a message-body is explicitly forbidden in responses to HEAD requests\n * a message-body is explicitly forbidden in 1xx (informational), 204 (no content), and 304 (not modified)\n * responses\n */\n int code = statusLine...
[ "0.6729182", "0.6646843", "0.6424758", "0.6357296", "0.6357296", "0.63536483", "0.62861454", "0.6268265", "0.61959904", "0.6022535", "0.6022535", "0.6022535", "0.6022535", "0.6022535", "0.5919032", "0.589066", "0.589066", "0.589066", "0.57986957", "0.5788244", "0.5668983", ...
0.6035619
9
Checks body of response.
@Description("response has body '{body}'") public static Criteria<HarEntry> recordedResponseBody(@DescriptionFragment("body") String body) { checkArgument(isNotBlank(body), "Response body should be defined"); return condition(entry -> { HarContent responseContent = entry.getResponse().g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasBody() {\n /*\n * For response, a message-body is explicitly forbidden in responses to HEAD requests\n * a message-body is explicitly forbidden in 1xx (informational), 204 (no content), and 304 (not modified)\n * responses\n */\n int code = statusLine...
[ "0.7451528", "0.67379177", "0.64294744", "0.64259577", "0.64259577", "0.64259577", "0.64259577", "0.64259577", "0.63407904", "0.6246993", "0.61108977", "0.6015735", "0.6015735", "0.60126114", "0.5981797", "0.5980688", "0.5949558", "0.5895313", "0.5892798", "0.5892798", "0.589...
0.59055793
17
Checks body of request.
@Description("request body contains substring/matches RegExp '{bodyExpression}'") public static Criteria<HarEntry> recordedRequestBodyMatches(@DescriptionFragment("bodyExpression") String bodyExpression) { checkArgument(isNotBlank(bodyExpression), "Request body substring/RegExp should be defined"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasBody() {\n /*\n * For response, a message-body is explicitly forbidden in responses to HEAD requests\n * a message-body is explicitly forbidden in 1xx (informational), 204 (no content), and 304 (not modified)\n * responses\n */\n int code = statusLine...
[ "0.6729182", "0.6646843", "0.6424758", "0.6357296", "0.6357296", "0.63536483", "0.62861454", "0.6268265", "0.61959904", "0.6035619", "0.6022535", "0.6022535", "0.6022535", "0.6022535", "0.6022535", "0.5919032", "0.589066", "0.589066", "0.589066", "0.57986957", "0.5788244", ...
0.497377
70
Checks body of response.
@Description("response body contains substring/matches RegExp '{bodyExpression}'") public static Criteria<HarEntry> recordedResponseBodyMatches(@DescriptionFragment("bodyExpression") String bodyExpression) { checkArgument(isNotBlank(bodyExpression), "Response body substring/RegExp should be defined"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasBody() {\n /*\n * For response, a message-body is explicitly forbidden in responses to HEAD requests\n * a message-body is explicitly forbidden in 1xx (informational), 204 (no content), and 304 (not modified)\n * responses\n */\n int code = statusLine...
[ "0.7451528", "0.67379177", "0.64294744", "0.64259577", "0.64259577", "0.64259577", "0.64259577", "0.64259577", "0.63407904", "0.6246993", "0.61108977", "0.6015735", "0.6015735", "0.60126114", "0.5981797", "0.5980688", "0.5949558", "0.59055793", "0.5895313", "0.5892798", "0.58...
0.0
-1
Checks status code of response.
@Description("status code of response is {code}") public static Criteria<HarEntry> recordedResponseStatusCode(@DescriptionFragment("code") int status) { return condition(entry -> { var statusCode = entry.getResponse().getStatus(); return statusCode == status; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean isExpectedResponseCode(int httpStatus);", "public static void validateResponseStatusCode(Response response) {\n\t\tresponse.then().statusCode(200);\n\n\t}", "@Test\n\tpublic void verifyStatusCode() {\n\t\tAssert.assertEquals(response.getStatusCode(), 200);\n\t}", "public void verif...
[ "0.76419365", "0.74559927", "0.7238159", "0.7093904", "0.6959093", "0.6959093", "0.69314134", "0.68849134", "0.6876601", "0.68313915", "0.6716241", "0.66806984", "0.6670488", "0.66536015", "0.664506", "0.6620245", "0.66098094", "0.6599943", "0.6591448", "0.653905", "0.6525687...
0.59158623
89
Checks the datetime the request was sent
@Description("request was sent after {date}") public static Criteria<HarEntry> recordedStartedDateTimeAfter(@DescriptionFragment("date") Date date) { checkArgument(nonNull(date), "Date should be defined"); return condition(entry -> { Date startedDateTime = entry.getStartedDateTime(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isReqTimeFresh(Date reqTime, String username) {\r\n\t\tDate oldReqTime = oldRequestTimes.get(username); \r\n\t\tif(oldReqTime!= null && oldReqTime.equals(reqTime))\r\n\t\t\tthrow new RuntimeException(\"This request has been sent before.\");\r\n\t\t\r\n\t\tDate current = new Date();\r\n\t\treturn cu...
[ "0.66670346", "0.65523875", "0.6380127", "0.63642603", "0.6362074", "0.6339582", "0.63251203", "0.6219347", "0.62035793", "0.6176962", "0.6140365", "0.6103596", "0.6095148", "0.60289514", "0.5968838", "0.5932916", "0.5915521", "0.5908294", "0.5895215", "0.5889281", "0.5878428...
0.0
-1
Checks the datetime the request was sent
@Description("request was sent before {date}") public static Criteria<HarEntry> recordedStartedDateTimeBefore(@DescriptionFragment("date") Date date) { checkArgument(nonNull(date), "Date should be defined"); return condition(entry -> { Date startedDateTime = entry.getStartedDateTime(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isReqTimeFresh(Date reqTime, String username) {\r\n\t\tDate oldReqTime = oldRequestTimes.get(username); \r\n\t\tif(oldReqTime!= null && oldReqTime.equals(reqTime))\r\n\t\t\tthrow new RuntimeException(\"This request has been sent before.\");\r\n\t\t\r\n\t\tDate current = new Date();\r\n\t\treturn cu...
[ "0.66670346", "0.65523875", "0.6380127", "0.63642603", "0.6362074", "0.6339582", "0.63251203", "0.6219347", "0.62035793", "0.6176962", "0.6140365", "0.6103596", "0.6095148", "0.60289514", "0.5968838", "0.5932916", "0.5915521", "0.5908294", "0.5895215", "0.5889281", "0.5878428...
0.0
-1
Checks the duration of the request
@Description("request duration is longer than {millis}") public static Criteria<HarEntry> recordedDurationLongerThan(@DescriptionFragment("millis") Long millis) { checkArgument(nonNull(millis), "Duration must be defined"); checkArgument(millis > 0, "Duration should be positive"); return con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasResponseTimeSec();", "boolean hasResponseTimeNsec();", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ ...
[ "0.6999907", "0.68479073", "0.67009485", "0.6473019", "0.6285459", "0.62839", "0.62338394", "0.6047849", "0.6024247", "0.5992712", "0.5988211", "0.59876806", "0.59748757", "0.59326386", "0.5920152", "0.590835", "0.5908133", "0.5901842", "0.5881583", "0.58629656", "0.5752644",...
0.0
-1
Checks the duration of the request
@Description("request duration is shorter than {millis}") public static Criteria<HarEntry> recordedDurationShorterThan(@DescriptionFragment("millis") Long millis) { checkArgument(nonNull(millis), "Duration must be defined"); checkArgument(millis > 0, "Duration should be positive"); return c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasResponseTimeSec();", "boolean hasResponseTimeNsec();", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ ...
[ "0.6999907", "0.68479073", "0.67009485", "0.6473019", "0.6285459", "0.62839", "0.62338394", "0.6047849", "0.6024247", "0.5992712", "0.5988211", "0.59876806", "0.59748757", "0.59326386", "0.5920152", "0.590835", "0.5908133", "0.5901842", "0.5881583", "0.58629656", "0.5752644",...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
private void initComponents() { jLabel1 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(); jScrollPane2 = new javax.swing.JScrollPane(); jList2 = new javax.swing.JList(); jLabel2 = new javax.swing...
{ "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.7320782", "0.72918797", "0.72918797", "0.72918797", "0.728645", "0.72498447", "0.7214492", "0.720934", "0.7197145", "0.71912014", "0.71852076", "0.7160113", "0.71487373", "0.70943654", "0.70820624", "0.7058153", "0.69883204", "0.6978216", "0.69558746", "0.6955715", "0.6945...
0.0
-1
TODO Autogenerated method stub
public void run() { boolean b = false; try { b = IreportRmiClient.rmiInterfactRemote.generateIndex(); if (!b) { // 0个索引文件 AddedOperator.log("索引到0个文件..可能你的路径配置错误,请查看服务端输出信息", IreportConstant.WARN_); } else { AddedOperator.log("新建索引成功", IreportConstant.R...
{ "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
End of variables declaration
private void removeDate() { MyReportProperties.removeProperties(IreportConstant.CLASS_NAME); MyReportProperties.removeProperties(IreportConstant.METHOD_NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "protected void initVars() {}", "private void assignment() {\n\n\t\t\t}", "private void declareLocals() {\r\n\t\t/...
[ "0.6759361", "0.6568837", "0.62458223", "0.61133546", "0.60982347", "0.6087512", "0.60586846", "0.5882926", "0.5873854", "0.5771458", "0.5769804", "0.57594293", "0.57517105", "0.57495594", "0.5749265", "0.5725298", "0.57189494", "0.5666249", "0.5654246", "0.5628506", "0.56269...
0.0
-1
TODO Autogenerated method stub
public int getSize() { return lists.size(); }
{ "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
undo the affects of this spell
@Override public void unInvoke() { if (!(affected instanceof MOB)) return; final MOB mob = (MOB) affected; super.unInvoke(); if ((canBeUninvoked()) && (mob.location() != null)) { if ((failed) || (!CMLib.flags().isSitting(mob)) || (room == null) || (title == n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void undo() {\n target.setCombatState( oldState );\n }", "public void undo() {\n\t\t\r\n\t}", "public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd =...
[ "0.7575821", "0.69549304", "0.69313836", "0.69243973", "0.6885768", "0.6877299", "0.68537545", "0.6783169", "0.67389387", "0.67120457", "0.6556124", "0.6544533", "0.6540869", "0.6489535", "0.6484746", "0.647066", "0.64495194", "0.6445719", "0.64256096", "0.64250064", "0.64042...
0.0
-1
TODO Autogenerated method stub
@Override public void loadReferDatas(Collection<BasicObj> batchDataList) throws Exception { if(getBatchRuleCommand().getParameter()!=null&&getBatchRuleCommand().getParameter().containsKey("subTaskWorkKind")){ subTaskWorkKind=(int) getBatchRuleCommand().getParameter().get("subTaskWorkKind"); } }
{ "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
Note that this does not test for duplicates. If invoked on an existing path it will overwrite the entry. Existence checking is handled at upper layers.
public void createDirectoryEntry( TableServiceClient tableServiceClient, UUID collectionId, String tableName, FireStoreDirectoryEntry createEntry) { tableServiceClient.createTableIfNotExists(tableName); TableClient tableClient = tableServiceClient.getTableClient(tableName); // Walk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(String path, T value) {\n checkNotEmpty(path);\n requireNonNull(value);\n\n List<String> components = pathToComponents(Paths.get(removeAsterisk(path)));\n\n if (path.endsWith(\"/\") || path.endsWith(\"/*\")) {\n // it is a directory\n components.add...
[ "0.6390929", "0.6221112", "0.5747137", "0.57381636", "0.54621416", "0.5410585", "0.53844166", "0.5382197", "0.53816473", "0.53636426", "0.535375", "0.5343412", "0.5341939", "0.53271693", "0.5305868", "0.5300858", "0.52943283", "0.5255334", "0.52532136", "0.5242555", "0.521342...
0.0
-1
true directory entry existed and was deleted; false directory entry did not exist
public boolean deleteDirectoryEntry( TableServiceClient tableServiceClient, UUID collectionId, String tableName, String fileId) { TableClient tableClient = tableServiceClient.getTableClient(tableName); // Look up the directory entry by id. If it doesn't exist, we're done TableEntity leafEntity = look...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDeleteFile();", "public boolean isDir() { return _entry==null; }", "@Override\n\tpublic boolean delete() {\n\t\tboolean result = false;\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.isDirectory()) {\n\t\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\t\tfor (java.io.File file : this.list...
[ "0.69568205", "0.69263303", "0.6710469", "0.6691073", "0.6609818", "0.65528876", "0.65321887", "0.6522058", "0.6509726", "0.6481524", "0.63944805", "0.6354664", "0.6353727", "0.63228714", "0.63228714", "0.63083124", "0.62764066", "0.6261281", "0.6260448", "0.6258151", "0.6240...
0.6466664
10
Each dataset/snapshot has its own set of tables, so we delete the entire directory entry table
public void deleteDirectoryEntriesFromCollection( TableServiceClient tableServiceClient, String tableName) { if (TableServiceClientUtils.tableExists(tableServiceClient, tableName)) { TableClient tableClient = tableServiceClient.getTableClient(tableName); tableClient.deleteTable(); } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n\n String filename = \"PurgeTable\";\n\n PreparedStatement stmt1 = null;\n try {\n stmt1 = conn.prepareStatement(\"delete from \" + filename);\n stmt1.executeUpdate...
[ "0.64588064", "0.63001066", "0.6171474", "0.603927", "0.60347563", "0.6021446", "0.6015945", "0.59829533", "0.5981899", "0.59691995", "0.59658825", "0.59491915", "0.5948166", "0.59462297", "0.5935844", "0.592217", "0.588928", "0.5881733", "0.58261997", "0.58042586", "0.580419...
0.63056535
1
Returns null if not found upper layers do any throwing
public FireStoreDirectoryEntry retrieveById( TableServiceClient tableServiceClient, String tableName, String fileId) { TableEntity entity = lookupByFileId(tableServiceClient, tableName, fileId); return Optional.ofNullable(entity) .map(d -> FireStoreDirectoryEntry.fromTableEntity(entity)) ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic BaseLayer GetUnderLayer() {\n\t\tif (p_UnderLayer == null)\n\t\t\treturn null;\n\t\treturn p_UnderLayer;\n\t}", "@Override\n\tpublic BaseLayer GetUpperLayer(int nindex) {\n\t\tif (nindex < 0 || nindex > nUpperLayerCount || nUpperLayerCount < 0)\n\t\t\treturn null;\n\t\treturn p_aUpperLayer.ge...
[ "0.5859105", "0.56595135", "0.5344928", "0.5313316", "0.5243863", "0.5215168", "0.51802176", "0.51672095", "0.5154232", "0.5113871", "0.5110372", "0.5072756", "0.50051296", "0.49870464", "0.49800345", "0.49779344", "0.49627912", "0.4961906", "0.49544618", "0.49271554", "0.491...
0.0
-1
Returns null if not found upper layers do any throwing
public FireStoreDirectoryEntry retrieveByPath( TableServiceClient tableServiceClient, UUID collectionId, String tableName, String fullPath) { String lookupPath = FileMetadataUtils.makeLookupPath(fullPath); TableEntity entity = lookupByFilePath(tableServiceClient, collectionId, tableName, lookupPath); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic BaseLayer GetUnderLayer() {\n\t\tif (p_UnderLayer == null)\n\t\t\treturn null;\n\t\treturn p_UnderLayer;\n\t}", "@Override\n\tpublic BaseLayer GetUpperLayer(int nindex) {\n\t\tif (nindex < 0 || nindex > nUpperLayerCount || nUpperLayerCount < 0)\n\t\t\treturn null;\n\t\treturn p_aUpperLayer.ge...
[ "0.5859105", "0.56595135", "0.5344928", "0.5313316", "0.5243863", "0.5215168", "0.51802176", "0.51672095", "0.5154232", "0.5113871", "0.5110372", "0.5072756", "0.50051296", "0.49870464", "0.49800345", "0.49779344", "0.49627912", "0.4961906", "0.49544618", "0.49271554", "0.491...
0.0
-1
results are sorted by partition key and row key
public List<FireStoreDirectoryEntry> enumerateFileRefEntries( TableServiceClient tableServiceClient, String collectionId, int offset, int limit) { TableClient tableClient = tableServiceClient.getTableClient(collectionId); ListEntitiesOptions options = new ListEntitiesOptions().setFilter("isFileRef eq true...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\trecordList.sort((Record r1, Record r2)->r1.getValue(PRIMARY_KEY_FIELD_INDEX).compar...
[ "0.56589174", "0.5503579", "0.54487836", "0.5388971", "0.53728", "0.5365245", "0.53515077", "0.53385663", "0.5253914", "0.5199525", "0.5171891", "0.5160966", "0.51558584", "0.51283115", "0.51213753", "0.51026267", "0.5102292", "0.5098189", "0.50682956", "0.5064734", "0.505598...
0.0
-1
Returns null if not found
private TableEntity lookupByFileId( TableServiceClient tableServiceClient, String tableName, String fileId) { try { ListEntitiesOptions options = new ListEntitiesOptions().setFilter(String.format("fileId eq '%s'", fileId)); if (!TableServiceClientUtils.tableHasEntries(tableServiceClient,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic T find(T element) {\n\t\treturn null;\r\n\t}", "public Object lookup(String id) {\n return null;\n }", "@Override\r\n public Match find(Match M) {\n return null;\r\n }", "@Override\n\tpublic Place f...
[ "0.7198144", "0.6781184", "0.6622892", "0.6570524", "0.6527415", "0.64000595", "0.63949656", "0.6339296", "0.6331376", "0.6299348", "0.6255504", "0.62268794", "0.6215272", "0.6204917", "0.6169644", "0.6140457", "0.6110324", "0.60976017", "0.60815907", "0.60760444", "0.6065919...
0.0
-1
Snapshot filesystem methods To improve performance of building the snapshot file system, we use three techniques: 1. Operate over batches so that we can issue requests to fire store in parallel 2. Cache directory paths so that we do not due extra lookups or creates on shared directory structure 3. Rewrite rather than r...
public void addEntriesToSnapshot( TableServiceClient datasetTableServiceClient, TableServiceClient snapshotTableServiceClient, UUID datasetId, String datasetDirName, UUID snapshotId, List<String> fileIds) { int cacheSize = configurationService.getParameterValue(ConfigEnum.SNAPSHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSnapshot(){\n \t\tthis.snapshot = new SnapShot(this.getAddress(),this.getRoot() + File.separatorChar + this.snapshot_dir);\n \t\tthis.pRecursiveDelete(this.getRoot() + File.separatorChar + this.snapshot_dir);\n \t\tthis.clearFilelist();\n \n \t\tfor(String str : this.dirRecursiveRel(this.getRoot(...
[ "0.61673754", "0.616118", "0.5520033", "0.5499095", "0.5462795", "0.54224086", "0.5309701", "0.5237861", "0.5188365", "0.51699245", "0.5152031", "0.5151531", "0.513713", "0.51206285", "0.51055545", "0.50878316", "0.50845915", "0.5057153", "0.50554633", "0.50488317", "0.501762...
0.63939327
0
Method used during snapshot create to add the first directory entry We have to create the top directory structure for the dataset and the root folder. Those components cannot be copied from the dataset, but have to be created new in the snapshot directory. We probe to see if the dirName directory exists. If not, we use...
@VisibleForTesting void storeTopDirectory(TableServiceClient tableServiceClient, UUID snapshotId, String dirName) { String dirPath = "/" + dirName; String snapshotTableName = StorageTableName.SNAPSHOT.toTableName(snapshotId); // Check if top directory already exists TableEntity directoryEntry = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "public void newFolderButtonClicked() {\n TreePath[] paths = _fileSystemTree.getSelectionPaths();\r\n List selection = getSelectedFolders(paths);\r\n if (selection.siz...
[ "0.59898204", "0.58703494", "0.581207", "0.571706", "0.5693342", "0.56859875", "0.5682717", "0.55465055", "0.5545392", "0.552193", "0.5517798", "0.5437363", "0.54171216", "0.5391882", "0.53826463", "0.5351373", "0.53481084", "0.53369755", "0.52822745", "0.52814656", "0.526707...
0.63182026
0
Fichier local de la ressource
public File getRessourceFile() { return local; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getResource();", "Resource getResource();", "public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}", "public URL getResourceLocation( String name );", "java.lang.String getResourceUri();", "protected abstract String getResour...
[ "0.7155598", "0.676355", "0.66466624", "0.6603258", "0.6411829", "0.6337556", "0.63041884", "0.6300247", "0.6173233", "0.6150513", "0.60828453", "0.60732156", "0.5996164", "0.5969589", "0.5966274", "0.5957122", "0.59515923", "0.59458834", "0.59124756", "0.5907083", "0.5900711...
0.64016855
5
initialize the Chrome browser here
@BeforeClass public void beforeClass() { driver = browserGetter.getChromeDriver(); //initialize page object class page = PageFactory.initElements(driver, WaiterPage.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialization()\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Mrunal\\\\chromedriver.exe\");\n\t\n\t\tif(prop.getProperty(\"browser\").contains(\"chrome\"))\n\t\t driver = new ChromeDriver();\n\t\t \n\t\t driver.manage().deleteAllCookies();\n\t\t driver.manage().timeouts().pageLoad...
[ "0.7521093", "0.7520654", "0.74625754", "0.74131596", "0.73716134", "0.7363537", "0.7348996", "0.7242489", "0.72238135", "0.71110946", "0.7065395", "0.70402086", "0.7032201", "0.69781035", "0.6974874", "0.6966154", "0.6953748", "0.69537055", "0.69513005", "0.6946757", "0.6944...
0.0
-1
SessionLocaleResolver localeResolver = new SessionLocaleResolver(); localeResolver.setDefaultLocale(Locale.US);
@Bean public LocaleResolver localeResolver() { CookieLocaleResolver localeResolver = new CookieLocaleResolver(); localeResolver.setCookieName("localeInfo"); localeResolver.setCookieMaxAge(-1); return localeResolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Bean\n public LocaleResolver localeResolver() {\n SessionLocaleResolver slr = new SessionLocaleResolver();\n slr.setDefaultLocale(Locale.US);\n return slr;\n }", "@Bean\n public LocaleResolver localeResolver() {\n SessionLocaleResolver slr = new SessionLocaleResolver();...
[ "0.81322336", "0.8022977", "0.8011779", "0.77160674", "0.7674535", "0.7604616", "0.7522899", "0.7189436", "0.711263", "0.7109788", "0.7041864", "0.7006353", "0.69331264", "0.68645734", "0.68603784", "0.6844948", "0.68310714", "0.68019265", "0.6801457", "0.6795691", "0.6754847...
0.68453306
15
specifying static resource location for themes related files (css etc)
@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**").addResourceLocations("/resources/"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getThemeURI(String themeName, PortletRequest request) {\n return getStaticFilesLocation(request) + \"/\" + THEME_DIRECTORY_PATH\n + themeName;\n }", "private static URL getResource(String resource)\r\n {\r\n String full = String.format(\"%s/%s\", RESOURCES_D...
[ "0.6790562", "0.664519", "0.64402896", "0.6295579", "0.61263895", "0.61012614", "0.6058273", "0.6043633", "0.60272866", "0.5991086", "0.59833336", "0.5879527", "0.58509123", "0.5844302", "0.57940835", "0.5785955", "0.57803917", "0.5777979", "0.57718915", "0.5746351", "0.57317...
0.51268166
53
mapping '/' to index view name without a controller
@Override public void addViewControllers(ViewControllerRegistry registry) { ViewControllerRegistration vcr = registry.addViewController("/"); vcr.setViewName("index"); // example view controller (mapping url to view without a controller) registry.addViewController("/view-controller"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/\")\r\n\tpublic String showIndex() {\r\n\t\treturn \"index\";\r\n\t}", "@RequestMapping(Mappings.INDEX)\n public ModelAndView index(){\n ModelAndView mv = new ModelAndView(ViewNames.INDEX);\n return mv;\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n ...
[ "0.804006", "0.794934", "0.782794", "0.77541614", "0.7727028", "0.7690279", "0.7633871", "0.7599415", "0.75218505", "0.75110704", "0.74070436", "0.73306453", "0.72736204", "0.7261591", "0.7231974", "0.7214101", "0.7189053", "0.7145672", "0.7145672", "0.7145672", "0.71411383",...
0.0
-1
Creates new form LecturerBarChart
public LecturerBarChart() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initBarChart() {\n\t\tBarChart<String, Number> chartLinguagens = new BarChart<String, Number>(new CategoryAxis(), new NumberAxis());\n\t\t// define o espaçamento entre as barras.\n\t\tchartLinguagens.setCategoryGap(30);\n\t\t// inserindo o title do grafico\n\t\tchartLinguagens.setTitle(\"Ranking de Li...
[ "0.66066873", "0.65841764", "0.6267152", "0.62557554", "0.6228244", "0.62168497", "0.6205734", "0.6197737", "0.6186596", "0.60685253", "0.5929017", "0.58017516", "0.5793444", "0.57576185", "0.5722587", "0.564967", "0.560824", "0.56075084", "0.5602174", "0.559591", "0.55821043...
0.78810596
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() { jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jComboBox1 = new javax.swing.JComboBox<>(); LPanal =...
{ "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.73213893", "0.72913563", "0.72913563", "0.72913563", "0.7286415", "0.724936", "0.72132975", "0.72076875", "0.71963966", "0.7190991", "0.7184836", "0.71593595", "0.71489584", "0.709429", "0.7080468", "0.70567", "0.6987573", "0.69780385", "0.69556123", "0.69538146", "0.69455...
0.0
-1
int N=vertices.size(); int idx = i % N; return vertices.get(idx);
public Vector2D getLocalVertex(int i){ return localVertices.get(i%localVertices.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default Spliterator.OfInt getNextVertices(int vidx) {\n class MySpliterator extends AbstractIntSpliterator{\n int index;\n int limit;\n public MySpliterator (int vidx, int lo, int hi) {\n super(hi,ORDERED|NONNULL|SIZED|SUBSIZED);\n limit=hi;\n ...
[ "0.62508804", "0.60439014", "0.6024985", "0.6014537", "0.5862385", "0.58604115", "0.5812595", "0.5761388", "0.5759354", "0.57409567", "0.5630247", "0.56228185", "0.55888414", "0.5548925", "0.5539471", "0.5533539", "0.5506754", "0.54902536", "0.5488309", "0.54628605", "0.54572...
0.62734574
0
Calculate COM and I
public void computeMassCOM(double density){ COM=new Vector2D(); area=0.0d; //I=0.0d; final double INV3=1.0d/3.0d; int N=vertices.size(); for(int i=0;i<N;i++){ //Triangle from origin Vector2D v1=vertices.get(i); Vector2D v2=vertices.get((i+1)%N); //Areas double parallelogramArea=v1.cross(v2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdCompI() {\n\t\treturn ID_COMP_I;\n\t}", "public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(...
[ "0.5630954", "0.5518537", "0.5498818", "0.5479388", "0.5449528", "0.539062", "0.5388604", "0.53780645", "0.5338001", "0.5334801", "0.53164864", "0.52881354", "0.5262367", "0.52391857", "0.51984024", "0.5191901", "0.5180265", "0.5147763", "0.51403874", "0.5135852", "0.5133839"...
0.49546424
46