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 |
|---|---|---|---|---|---|---|
This action do nothing. we will use it to create student actors even if they didn't ask any request during the phases | public EmptyAction() {
setActionName("Empty Action");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createActions() {\n\n\t\t//-----------------------------------------------\n\t\t// Check if Party Exists\n\t\t//-----------------------------------------------\n\t\tpartyExists = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {return emailaddressField.noValue();}\n\t\t\tprotected void ... | [
"0.62039924",
"0.5971234",
"0.5758572",
"0.57264036",
"0.56893116",
"0.5661573",
"0.5627456",
"0.56247014",
"0.56176317",
"0.55746484",
"0.55325437",
"0.547728",
"0.54561174",
"0.54537255",
"0.54242307",
"0.54135066",
"0.53918064",
"0.53859097",
"0.53783894",
"0.53596747",
"0... | 0.0 | -1 |
Transform the final population to a RuleExplanationSet representing the result of the optimization procedure. | protected abstract RuleExplanationSet transformGenotypes(EvolutionResult<BitGene, Double> evolutionResult); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ExplanationPipeline<I, F>\n addRuleSetOptimizer(Optimizer<RuleExplanationSet, RuleExplanationSetFactory, ?, ?> toAdd) {\n return addRuleSetOptimizer(toAdd, false);\n }",
"public ExplanationPipeline<I, F>\n addRuleSetOptimizerWithTest(Optimizer<RuleExplanationSet, RuleExplanationSetFactory,... | [
"0.5770961",
"0.5417681",
"0.5385424",
"0.53625125",
"0.5358088",
"0.5348357",
"0.53054494",
"0.52630645",
"0.52244526",
"0.5142675",
"0.5138055",
"0.51105493",
"0.5066634",
"0.49929485",
"0.49752784",
"0.49711704",
"0.4930084",
"0.49036667",
"0.48913747",
"0.48519933",
"0.48... | 0.5542968 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.out.println(longestRepeatingSubstringUsingSuffixArray("abcabc"));
} | {
"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 |
/ abcabc bcabc cabc abc bc c | public static int longestRepeatingSubstringUsingSuffixArray(String s) {
int n = s.length();
SuffixArray sa = new SuffixArray(s);
int ans = 0;
for(int i = 1 ; i < n ; i++) {
int len = sa.lcp(i);
ans = Math.max(ans, len);
}
return ans;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }",
"public static void main(String[] args) {\n\n\t\tString s=\"xxxxxabcxxxx\";\n\t\tint m=s.length()/2;\n\t\t\n\t\tif(s.substring(m-1, m+2).equals(\"abc\")) {\n\t\t\t\n\t\tSy... | [
"0.6837144",
"0.61070085",
"0.6066215",
"0.6054075",
"0.6007768",
"0.59929526",
"0.59166276",
"0.5896798",
"0.58565646",
"0.58313066",
"0.58149856",
"0.57671213",
"0.57668334",
"0.57365745",
"0.5729478",
"0.5723001",
"0.570069",
"0.56975",
"0.5685443",
"0.5682184",
"0.5667425... | 0.0 | -1 |
Stack, and no need to store the temperatures | public int[] dailyTemperatures(int[] T) {
Stack<Integer> stack = new Stack<Integer>();
int[] res = new int[T.length];
for (int i = 0; i < T.length; i++) {
while (!stack.isEmpty() && T[i] > T[stack.peek()])
res[stack.peek()] = i - stack.pop();
stack.push(i);
}
return res;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }",
"public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}",
... | [
"0.61801296",
"0.6151566",
"0.61066586",
"0.6040887",
"0.6039907",
"0.6003054",
"0.5944196",
"0.5914965",
"0.5905415",
"0.58650666",
"0.58417195",
"0.5817981",
"0.5807668",
"0.58071536",
"0.5794043",
"0.5785637",
"0.578451",
"0.5755958",
"0.57454866",
"0.57399213",
"0.5736779... | 0.0 | -1 |
Stack, and we store the temperatures | public int[] dailyTemperatures2(int[] T) {
Stack<Integer> temperatures = new Stack<Integer>();
Stack<Integer> indices = new Stack<Integer>();
int[] res = new int[T.length];
for (int i = 0; i < T.length; i++) {
int t = T[i];
while (!temperatures.isEmpty() && t > temperatures.peek()) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void MIPSme()\n {\n sir_MIPS_a_lot.getInstance().push_temps();\n }",
"public float getTemps() {\n\t\treturn temps;\n\t}",
"public float getCurrentTemp(){\n return currentTemp;\n }",
"public double getTemp(){\n return currentTemp;\n }",
"public _30_min_stack() {\n ... | [
"0.603716",
"0.58022696",
"0.56448686",
"0.56120336",
"0.55747074",
"0.55710286",
"0.55642194",
"0.55297995",
"0.55144715",
"0.5491907",
"0.5452309",
"0.5437492",
"0.54243445",
"0.5391324",
"0.53600425",
"0.5309869",
"0.5309548",
"0.5292762",
"0.5278636",
"0.52704763",
"0.526... | 0.5524487 | 8 |
Creates the combobox model. | public TabComboBoxModel(JTabbedPane jtp) {
this.jtp = jtp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void crearModelo() {\r\n\t\tmodelo = new DefaultComboBoxModel<>();\r\n\t\tmodelo.addElement(\"Rojo\");\r\n\t\tmodelo.addElement(\"Verde\");\r\n\t\tmodelo.addElement(\"Azul\");\r\n\t\tmodelo.addElement(\"Morado\");\r\n\t}",
"public CustomComboBoxModel() {\n\t\t// TODO Auto-generated constructor stub\n\t\tZ... | [
"0.74358803",
"0.74313486",
"0.7114458",
"0.7086524",
"0.6748007",
"0.6679833",
"0.6659917",
"0.6628719",
"0.6570166",
"0.6568918",
"0.65405786",
"0.6466139",
"0.63341445",
"0.63320714",
"0.6304738",
"0.629129",
"0.62808603",
"0.6247513",
"0.6225715",
"0.61833197",
"0.6164367... | 0.0 | -1 |
Fires the event that the combo contents has been changed. | public void changed() {
this.fireContentsChanged(this, 0, this.getSize() - 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }",
"public void setCombo(Object newValue);",
"private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}",
"private void notifyComboBoxModelChan... | [
"0.6579228",
"0.6492283",
"0.647359",
"0.6465589",
"0.6465395",
"0.64413166",
"0.64146376",
"0.636999",
"0.63637567",
"0.6320659",
"0.6316759",
"0.63147336",
"0.6299444",
"0.62969244",
"0.6264679",
"0.62493235",
"0.62175715",
"0.6201198",
"0.6199531",
"0.6181822",
"0.6179126"... | 0.66919553 | 0 |
Returns the contents of the control panel. | private JPanel getContents(final JTabbedPane jtp,
final MyTabPreviewPainter mainTabPreviewPainter) {
FormBuilder builder = FormBuilder.create().
columns("right:pref, 4dlu, fill:min:grow(1), 2dlu, fill:min:grow(1)").
rows("p, 2dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Control getContent() {\n // checkWidget();\n return content;\n }",
"public ControlPanel controlPanel() {\n return this.controlPanel;\n }",
"protected JPanel getContents() {\r\n\t\tif (contents == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints38 = new GridBagConstraints();\r\... | [
"0.7321188",
"0.7092179",
"0.70619875",
"0.68647265",
"0.6801426",
"0.6544443",
"0.6448865",
"0.63068366",
"0.6281024",
"0.6253277",
"0.6246773",
"0.62425846",
"0.6238493",
"0.6230563",
"0.62148494",
"0.61888295",
"0.6183891",
"0.617122",
"0.6136684",
"0.61265236",
"0.603793"... | 0.0 | -1 |
Creates the tab control panel. | public TabControlPanel(JTabbedPane jtp, MyTabPreviewPainter previewPainter) {
super();
this.jtp = jtp;
this.closed = new LinkedList<>();
this.setLayout(new BorderLayout());
JPanel contents = getContents(jtp, previewPainter);
contents.setOpaque(false);
RadianceThe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n p... | [
"0.7518232",
"0.74608916",
"0.7222127",
"0.7129577",
"0.7094086",
"0.708678",
"0.69248474",
"0.69193745",
"0.69059026",
"0.6815611",
"0.68108654",
"0.6782416",
"0.6731104",
"0.6717332",
"0.668201",
"0.6662782",
"0.6650897",
"0.66374946",
"0.6632301",
"0.6624832",
"0.6622867",... | 0.6479113 | 31 |
Validates the configuration of the analysis context. | public ValidationResult validateConfiguration(@Nonnull AnalysisContext analysisContext) {
ValidationResult validation = ValidationResult.success();
validation = validate(analysisContext, validation, availableFilters);
validation = validate(analysisContext, validation, availableReporters);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void validateConfiguration() {}",
"protected void validate() throws ConfigurationException\n {\n\n }",
"private void validateContext() {\n\t\tif (irodsAccessObjectFactory == null) {\n\t\t\tthrow new JargonRuntimeException(\"null irodsAccessObjectFactory\");\n\t\t}\n\n\t\tif (dataProfilerSettings ==... | [
"0.7990806",
"0.7185843",
"0.70718324",
"0.6913079",
"0.6839608",
"0.6810911",
"0.67920667",
"0.66923946",
"0.65344626",
"0.6520468",
"0.64582247",
"0.6451416",
"0.6451416",
"0.6451416",
"0.6416721",
"0.6415275",
"0.6299404",
"0.6280776",
"0.6240378",
"0.62345743",
"0.6226608... | 0.6875197 | 4 |
don't you love Java generics? ;) | @Nonnull
public Builder withTransformsFromThreadContextClassLoader() {
@SuppressWarnings("rawtypes")
Iterable trs = ServiceLoader.load(DifferenceTransform.class);
@SuppressWarnings("unchecked")
Iterable<DifferenceTransform<?>> rtrs = (Iterable<DifferenceTransform... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo40877a(T t);",
"void mo11495a(T t);",
"void mo83698a(T t);",
"void mo16691c(T t);",
"void mo83696a(T t);",
"void mo3312a(T t);",
"void mo83695a(T t);",
"public void testGenericMethod() {\n \n }",
"public interface T93 {\n\n void get2(List<String> stringList);\n\n void get(Lis... | [
"0.62284476",
"0.62118506",
"0.6205762",
"0.6156306",
"0.6126952",
"0.604285",
"0.59839755",
"0.59556293",
"0.5883508",
"0.5868541",
"0.5867621",
"0.58615303",
"0.5850059",
"0.5791414",
"0.5772571",
"0.57518",
"0.5727692",
"0.56966317",
"0.5673755",
"0.5665363",
"0.5665096",
... | 0.0 | -1 |
don't you love Java generics? ;) | @Nonnull
public Builder withTransformsFrom(@Nonnull ClassLoader cl) {
@SuppressWarnings("rawtypes")
Iterable trs = ServiceLoader.load(DifferenceTransform.class, cl);
@SuppressWarnings("unchecked")
Iterable<DifferenceTransform<?>> rtrs = (Iterable<DifferenceTransf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo40877a(T t);",
"void mo11495a(T t);",
"void mo83698a(T t);",
"void mo16691c(T t);",
"void mo83696a(T t);",
"void mo3312a(T t);",
"void mo83695a(T t);",
"public void testGenericMethod() {\n \n }",
"public interface T93 {\n\n void get2(List<String> stringList);\n\n void get(Lis... | [
"0.62284476",
"0.62118506",
"0.6205762",
"0.6156306",
"0.6126952",
"0.604285",
"0.59839755",
"0.59556293",
"0.5883508",
"0.5868541",
"0.5867621",
"0.58615303",
"0.5850059",
"0.5791414",
"0.5772571",
"0.57518",
"0.5727692",
"0.56966317",
"0.5673755",
"0.5665363",
"0.5665096",
... | 0.0 | -1 |
setup validation in controller | @Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/book").setViewName("book");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void validate(Controller c) {\n\n\t}",
"ValidationResponse validate();",
"public void validate() {}",
"protected void validate() {\n // no op\n }",
"@Override\n public void validateModel() {\n }",
"@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}",
"@Override\... | [
"0.7464915",
"0.6878181",
"0.68362033",
"0.68125504",
"0.6736925",
"0.6685054",
"0.66672164",
"0.6664371",
"0.6664371",
"0.6664371",
"0.66628313",
"0.66567564",
"0.6634243",
"0.6611645",
"0.6524837",
"0.6480352",
"0.6454436",
"0.6399553",
"0.6399492",
"0.63654155",
"0.6365354... | 0.0 | -1 |
route to create a new book | @RequestMapping("/book/new")
public String newBook(Model model){
model.addAttribute("book", new Book ());
return "bookform";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.huqiwen.demo.book.model.Books create(long bookId);",
"void create(Book book);",
"public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}",
"@PostMapping(\"/books\")\n\tpublic Book createBook(@RequestBody Book book)\n\t{\n\t\treturn bookRepository.save(book);\... | [
"0.7246555",
"0.6993015",
"0.69922894",
"0.6990554",
"0.69576746",
"0.6953049",
"0.68536055",
"0.6816424",
"0.67521536",
"0.66192055",
"0.6582591",
"0.6564391",
"0.6473179",
"0.63500625",
"0.63084793",
"0.627388",
"0.61916703",
"0.6117509",
"0.6086291",
"0.6028547",
"0.602364... | 0.7337064 | 0 |
map Post request and /book url to controller method | @PostMapping("/book")
public String saveBook(@Valid Book book, BindingResult bindingResult){
if(bindingResult.hasErrors()){
return "bookform";
}
bookService.saveBook(book);
return "redirect:/book/" + book.getId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value=\"/createBook\",method=RequestMethod.POST,consumes=\"application/json\")\n\tpublic ResponseEntity<Void> createBook (@RequestBody Book bookMap,UriComponentsBuilder uri) throws JsonMappingException, JsonParseException, IOException{\n\t\tbookRepository.save(bookMap);\n\t\tHttpHeaders header = ne... | [
"0.6387943",
"0.63663274",
"0.60817283",
"0.5929717",
"0.5874485",
"0.57510686",
"0.5675794",
"0.5636",
"0.5523779",
"0.54997194",
"0.54944414",
"0.5457297",
"0.5430192",
"0.54143715",
"0.5404397",
"0.5397468",
"0.5396889",
"0.53871727",
"0.53803134",
"0.53638",
"0.53546584",... | 0.53505 | 21 |
route to get a single book page | @RequestMapping("/book/{id}")
public String showEmployee(@PathVariable Long id, Model model){
model.addAttribute("book", bookService.getBookById(id));
return "bookshow";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/getById/{id}\")\n public Book getBookById(@PathVariable(\"id\") Long id) throws BookNotFoundException {\n return bookService.getBookById(id);\n }",
"@GetMapping(\"/book/{id}\")\n public ResponseEntity<Book> get(@PathVariable(\"id\") String id) {\n Book result = bookService.g... | [
"0.68070716",
"0.66848826",
"0.66751236",
"0.66616464",
"0.65935457",
"0.65263766",
"0.6488967",
"0.64749545",
"0.64431894",
"0.6230438",
"0.6220121",
"0.6176388",
"0.61560744",
"0.61557096",
"0.6111015",
"0.6086998",
"0.6012387",
"0.59875816",
"0.59816825",
"0.59594136",
"0.... | 0.6553267 | 5 |
map Get request and /books url to controller method | @GetMapping("/books")
public String list(Model model){
model.addAttribute("book", bookService.findAllBooks());
return "books";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IteBooksApi {\n\n @GET(\"search/{query}\")\n Observable<SearchBookResult> getBooksByCategory(@Path(\"query\") String query);\n\n @GET(\"search/{query}/page/{number}\")\n Observable<SearchBookResult> getBooksByPage(@Path(\"query\") String query, @Path(\"number\") String number);\n\n ... | [
"0.6442578",
"0.6363931",
"0.63461846",
"0.6312234",
"0.62710136",
"0.6092243",
"0.60821337",
"0.6071314",
"0.59974706",
"0.5981821",
"0.59651893",
"0.5931525",
"0.590171",
"0.58863574",
"0.58444464",
"0.58300227",
"0.5818447",
"0.5807529",
"0.58034855",
"0.57932204",
"0.5788... | 0.63162905 | 3 |
Route to edit an book | @RequestMapping("/book/edit/{id}")
public String edit(@PathVariable Long id, Model model){
model.addAttribute("book", bookService.getBookById(id));
return "bookform";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/editBook\")\n public String editBook(Model model, @RequestParam(\"id\") int id) {\n Book book = bookService.getBookById(id);\n modelAndList(model, book);\n return \"editBook\";\n }",
"public book edit(book editedbook) {\n\t\t\n\t\treturn repository.save(editedbook);\n\t}... | [
"0.74392277",
"0.70303905",
"0.6832461",
"0.6579394",
"0.6503631",
"0.6375932",
"0.6358589",
"0.6321077",
"0.62578565",
"0.6243356",
"0.62418824",
"0.6209351",
"0.61817425",
"0.6171962",
"0.61592805",
"0.61370367",
"0.60647315",
"0.60380906",
"0.6017413",
"0.60045636",
"0.597... | 0.7893139 | 0 |
Route to delete a book | @RequestMapping("/book/delete/{id}")
public String delete(@PathVariable Long id){
bookService.deleteBook(id);
return "redirect:/books";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DeleteMapping(\"/book\")\n public ResponseEntity<?> delete(@RequestBody Book book) {\n bookService.delete(book);\n return ResponseEntity.ok().body(\"Book has been deleted successfully.\");\n }",
"@DeleteMapping(\"/delete/{id}\")\n public void deleteBookById(@PathVariable(\"id\") Long id) ... | [
"0.7597026",
"0.7531043",
"0.752113",
"0.7374201",
"0.73162687",
"0.72657275",
"0.72079736",
"0.7156465",
"0.7144095",
"0.7125119",
"0.71084684",
"0.70851064",
"0.7071955",
"0.70159274",
"0.69471276",
"0.69272333",
"0.6812323",
"0.6808621",
"0.680354",
"0.67429465",
"0.664505... | 0.79874885 | 0 |
Calculates and returns the score corresponding to the fitness of an individual in a population. How Fitness is defined will differ from problem to problem. | public abstract double evaluateFitness(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best would be\n\t\t// lowest.\n\t\tworstScore = population.get(maximum()).conflicts(... | [
"0.7824011",
"0.7418688",
"0.7393346",
"0.7298765",
"0.7271485",
"0.7230751",
"0.7218873",
"0.7196718",
"0.7151128",
"0.71073896",
"0.7088275",
"0.7079193",
"0.7066658",
"0.70337534",
"0.70328474",
"0.70278156",
"0.70071656",
"0.6994121",
"0.68782854",
"0.67829555",
"0.677357... | 0.71527696 | 8 |
Sets the score corresponding to the fitness of an individual in a population and returns the previous value. How Fitness is defined will differ from problem to problem. | public double setFitnessScore(double fitnessScore) {
double previousValue = this.fitnessScore;
this.fitnessScore = fitnessScore;
return previousValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFitnessScore(double score){\n fitnessScore = score;\n }",
"public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}",
"private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble w... | [
"0.76391447",
"0.71458226",
"0.7011095",
"0.6872776",
"0.6835176",
"0.6812267",
"0.6770795",
"0.67462677",
"0.6744621",
"0.6740655",
"0.6739098",
"0.6737306",
"0.6696311",
"0.66836035",
"0.6670243",
"0.66457623",
"0.66264397",
"0.6603798",
"0.6564218",
"0.65415394",
"0.650818... | 0.7616283 | 1 |
This method will be called once per scheduler run | @Override
public void periodic() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }",
"@Override\r\n\tpublic void doInitialSchedules() {\n\t}",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"protected abstract void scheduler_i... | [
"0.79959375",
"0.71370137",
"0.7053971",
"0.6965585",
"0.69561255",
"0.6893155",
"0.68800586",
"0.6876765",
"0.67826825",
"0.67659134",
"0.6764156",
"0.67577356",
"0.6701485",
"0.6687244",
"0.6663779",
"0.6658108",
"0.6658108",
"0.6658108",
"0.6658108",
"0.6644757",
"0.664475... | 0.62594575 | 97 |
TODO Autogenerated method stub | public static void main(String[] args) {
BlackjackGame game = new BlackjackGame("Blackjack", "Welcome to my BlackJack Game!");
game.playRound();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This method lists all the entities inserted in datastore. It uses HTTP GET method and paging support. | @SuppressWarnings({ "unchecked", "unused" })
@ApiMethod(name = "listUser")
public CollectionResponse<User> listUser(
@Nullable @Named("cursor") String cursorString,
@Nullable @Named("limit") Integer limit) {
EntityManager mgr = null;
Cursor cursor = null;
List<User> execute = null;
try {
mgr = getE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Entity> getAll() {\n return entities;\n }",
"List<T> getAll() throws PersistException;",
"@RequestMapping(value = \"/listallentities\", method = RequestMethod.GET)\n\tpublic @ResponseBody String listAllEntities() {\n\t\ttry {\n\t\t\t// System.out.println(\"USER ID FROM SESSION : \" +\n\t\t\t// ... | [
"0.71736336",
"0.715306",
"0.70934296",
"0.67312336",
"0.6640329",
"0.6619581",
"0.6580814",
"0.65696466",
"0.6549343",
"0.64611155",
"0.6430847",
"0.6427621",
"0.6388599",
"0.6388599",
"0.6388599",
"0.6388599",
"0.6388599",
"0.6366637",
"0.6330247",
"0.6301654",
"0.63001245"... | 0.0 | -1 |
This method gets the entity having primary key id. It uses HTTP GET method. | private User getUser(Long id) {
EntityManager mgr = getEntityManager();
User user = null;
try {
user = mgr.find(User.class, id);
} finally {
mgr.close();
}
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T get(PK id);",
"T getById(PK id);",
"@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;... | [
"0.73531216",
"0.72247344",
"0.71535695",
"0.71269304",
"0.70402205",
"0.7028197",
"0.702514",
"0.69951355",
"0.69563204",
"0.6951362",
"0.6927346",
"0.6905481",
"0.6880748",
"0.6821351",
"0.68195564",
"0.68005073",
"0.6770032",
"0.67416716",
"0.6717445",
"0.66732174",
"0.665... | 0.0 | -1 |
This method gets the entity having primary key id. It uses HTTP GET method. | @ApiMethod(name = "getCurrentUser")
public User getCurrentUser(@Named("apiKey") String apiKey) {
EntityManager mgr = getEntityManager();
User user = null;
try {
user = mgr.find(User.class, getCurrentUserKey(apiKey).getId());
} finally {
mgr.close();
}
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T get(PK id);",
"T getById(PK id);",
"@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;... | [
"0.73531216",
"0.72247344",
"0.71535695",
"0.71269304",
"0.70402205",
"0.7028197",
"0.702514",
"0.69951355",
"0.69563204",
"0.6951362",
"0.6927346",
"0.6905481",
"0.6880748",
"0.6821351",
"0.68195564",
"0.68005073",
"0.6770032",
"0.67416716",
"0.6717445",
"0.66732174",
"0.665... | 0.0 | -1 |
This inserts a new entity into App Engine datastore. If the entity already exists in the datastore, an exception is thrown. It uses HTTP POST method. | @ApiMethod(name = "insertNewUser")
public AuthResponse insertNewUser(@Named("email") String email,
@Named("password") String password,
@Named("firstName") String firstName,
@Named("lastName") String lastName,
@Named("displayName") String displayName) {
EntityManager mgr = getEntityManager();
AuthRespo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T insert(T entity) throws Exception;",
"public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;",
"WriteRequest insert(PiEntity entity);",
"Entity save(Entity entity);",
"@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().... | [
"0.68839055",
"0.686326",
"0.6837137",
"0.6605998",
"0.6579174",
"0.64036554",
"0.63467926",
"0.6344885",
"0.6337015",
"0.63151073",
"0.6295581",
"0.6219131",
"0.62022066",
"0.61863846",
"0.61847293",
"0.61847293",
"0.61847293",
"0.6176228",
"0.616341",
"0.6163338",
"0.616333... | 0.0 | -1 |
This inserts a new entity into App Engine datastore. If the entity already exists in the datastore, an exception is thrown. It uses HTTP POST method. | @ApiMethod(name = "insertUser")
public User insertUser(User user) {
EntityManager mgr = getEntityManager();
try {
if (containsUser(user)) {
throw new EntityExistsException("Object already exists");
}
mgr.persist(user);
} finally {
mgr.close();
}
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T insert(T entity) throws Exception;",
"public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;",
"WriteRequest insert(PiEntity entity);",
"Entity save(Entity entity);",
"@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().... | [
"0.68840545",
"0.6861135",
"0.68360597",
"0.66059065",
"0.6579657",
"0.64041865",
"0.6346591",
"0.6344",
"0.63372195",
"0.6315101",
"0.6296474",
"0.62195206",
"0.6202049",
"0.6185784",
"0.6184435",
"0.6184435",
"0.6184435",
"0.6175318",
"0.61637133",
"0.61637133",
"0.61629164... | 0.0 | -1 |
This method is used for updating an existing entity. If the entity does not exist in the datastore, an exception is thrown. It uses HTTP PUT method. | @ApiMethod(name = "updateUser")
public User updateUser(User user) {
EntityManager mgr = getEntityManager();
try {
if (!containsUser(user)) {
throw new EntityNotFoundException("Object does not exist");
}
mgr.persist(user);
} finally {
mgr.close();
}
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"E update(ID id, E entity, RequestContext context);",
"E update(E entity);",
"E update(E entity);",
"public void updateEntity();",
"void update(T entity) throws Exception;",
"boolean update(T entity) throws Exception;",
"E update(E entity) throws ValidationException;",
"public abstract boolean update(... | [
"0.7703508",
"0.75535107",
"0.75535107",
"0.74193317",
"0.7418102",
"0.741518",
"0.7350887",
"0.730677",
"0.72594833",
"0.7245603",
"0.72172177",
"0.72172177",
"0.6986568",
"0.6973012",
"0.69701564",
"0.6889793",
"0.684602",
"0.68432736",
"0.68432736",
"0.68087244",
"0.678255... | 0.0 | -1 |
This method removes the entity with primary key id. It uses HTTP DELETE method. | @ApiMethod(name = "removeUser")
public void removeUser(@Named("id") Long id) {
EntityManager mgr = getEntityManager();
try {
User user = mgr.find(User.class, id);
mgr.remove(user);
} finally {
mgr.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ApiResponse deleteEntityById(Integer id);",
"void deleteEntityById(Long id);",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"v... | [
"0.8207808",
"0.812792",
"0.79351705",
"0.76876706",
"0.7564304",
"0.75359523",
"0.75349337",
"0.75131613",
"0.7493797",
"0.7493797",
"0.7493797",
"0.7493797",
"0.74656874",
"0.7446863",
"0.7430773",
"0.7421799",
"0.7421799",
"0.74123454",
"0.7378535",
"0.7372401",
"0.7371449... | 0.0 | -1 |
todo for question 14 there are 4 assignments in total Each person has to do only 1. So 2 person team has to do 2 different ones, 3 person 3, 4 person 4. Make sure to commit under your user otherwise points won't count. I didn't number these so you can pick your favorite todo You are creating a rest controller for lesso... | @GetMapping
public List<Lesson> getLessons(@RequestParam(value = "course", required = false) String courseId,
@RequestParam(value = "year", defaultValue = "2020") Year year,
@RequestParam(value = "visitors", defaultValue = "MAX") String visitors)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PersonWashTaskService {\n\n int countTotal(PersonWashTask task);\n\n List<PersonWashTask> findByPage(ParamPage<PersonWashTask> page, PersonWashTask task);\n\n PersonWashTask findById(Integer id);\n\n int countTotalCheckDataByTask(Integer id, Integer clWorkStatus, Integer clReviewStatus... | [
"0.5679087",
"0.5613656",
"0.54217255",
"0.5419733",
"0.53958106",
"0.53659695",
"0.5349185",
"0.53424215",
"0.5334493",
"0.53328115",
"0.5323077",
"0.53140175",
"0.5307655",
"0.52908534",
"0.5277938",
"0.52720743",
"0.52615166",
"0.52089196",
"0.5197773",
"0.51695037",
"0.51... | 0.4944697 | 59 |
todo C create a method to query single lesson | @GetMapping("{id}")
public Lesson getLessonById(@PathVariable Long id) {
//code
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Lesson loadLesson(int id) throws DataAccessException;",
"public List<Lesson> findByCourseId(String courseId);",
"Collection<Lesson> getLessons() throws DataAccessException;",
"Collection<Lesson> getActiveLessons() throws DataAccessException;",
"public void queryLessonListFromDB(){\n\n //TODO: implem... | [
"0.7052022",
"0.65808815",
"0.647964",
"0.64031506",
"0.63176197",
"0.6311766",
"0.62778306",
"0.6151323",
"0.61416525",
"0.6114848",
"0.59447217",
"0.5899177",
"0.57462454",
"0.57256985",
"0.5676714",
"0.5666427",
"0.56578785",
"0.5626845",
"0.55902284",
"0.5576968",
"0.5559... | 0.59803665 | 10 |
todo D create a method to save a lesson | @PostMapping
public Lesson saveLesson(@RequestBody Lesson lesson) {
//code
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void storeLesson(Lesson lesson) throws DataAccessException;",
"public Lesson saveLesson(Lesson lesson) {\n lesson.setName(StringUtils.trim(lesson.getName()));\n\n saveRelatedTopics(lesson);\n\n Lesson savedLesson = presaveLessonCover(lesson);\n\n saveRelatedExpressionItems(savedLesson... | [
"0.7242922",
"0.72240734",
"0.7131203",
"0.69084674",
"0.6680246",
"0.6628281",
"0.6597686",
"0.64034563",
"0.6368577",
"0.6304299",
"0.62471664",
"0.6239757",
"0.6232285",
"0.62259465",
"0.6198547",
"0.61704254",
"0.61704254",
"0.61704254",
"0.61704254",
"0.6107054",
"0.6029... | 0.64513326 | 7 |
todo E create a method to update a lesson | @PutMapping("{id}")
public Lesson updateLesson(@RequestBody Lesson lesson,
@PathVariable long id) {
//code
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private CommandResult updateLesson() throws KolinuxException {\n timetable.executeUpdate(parsedArguments);\n logger.log(Level.INFO, \"User has updated the timetable.\");\n return new CommandResult(parsedArguments[0].toUpperCase() + \" \"\n +\n parsedArguments[1].t... | [
"0.7054505",
"0.6908482",
"0.67227226",
"0.6567314",
"0.64638764",
"0.6417899",
"0.6295369",
"0.62776107",
"0.62077904",
"0.6202132",
"0.61932117",
"0.6186222",
"0.60800534",
"0.6054439",
"0.60535645",
"0.60439914",
"0.6041619",
"0.602594",
"0.60182554",
"0.6016293",
"0.60069... | 0.7079097 | 0 |
todo F create a method to delete a lesson | @DeleteMapping("{id}")
public Lesson deleteLesson(@PathVariable long id) {
//code
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteLesson(Module module, Lesson target);",
"void deleteLesson(int id) throws DataAccessException;",
"private CommandResult deleteLesson() throws KolinuxException {\n timetable.executeDelete(parsedArguments);\n logger.log(Level.INFO, \"User has deleted\" + parsedArguments[0].toUpperCase()\... | [
"0.81789035",
"0.8011354",
"0.734238",
"0.71583575",
"0.71278644",
"0.7124814",
"0.7084416",
"0.70605636",
"0.69269836",
"0.686677",
"0.6865854",
"0.6848239",
"0.68463194",
"0.68289214",
"0.67783374",
"0.67662156",
"0.67605764",
"0.6760248",
"0.6741044",
"0.6734399",
"0.67343... | 0.7446227 | 2 |
todo G assuming each Lesson has students (onetomany relation) create a method to query lesson's students | @GetMapping("/{id}/students")
public List<Students> getStudents(@PathVariable long id) {
//code
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List <Student> getAllStudents();",
"List<Student> getAllStudents();",
"Collection<Lesson> getLessons() throws DataAccessException;",
"List<Student> selectByExample(StudentExample example);",
"@Override\n\tpublic List<Student> getStudentsByTeacher(String teacherName) {\n\t\tCollection<Student> allStu... | [
"0.64812964",
"0.6401618",
"0.63376343",
"0.63151014",
"0.62293077",
"0.62261117",
"0.6190153",
"0.61603576",
"0.6107656",
"0.6089679",
"0.6071322",
"0.60646343",
"0.6055176",
"0.6052928",
"0.60277563",
"0.6015081",
"0.5998647",
"0.5953328",
"0.5950323",
"0.5944761",
"0.59024... | 0.0 | -1 |
todo H create a method to update lesson's name (and nothing else) | @PatchMapping("{id}")
public Lesson updateLessonName(@RequestBody String name, @PathVariable long id) {
//code
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void editName() {\n Routine r = list.getSelectedValue();\n\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Enter the new name:\",\n \"Edit name\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, r.getName());... | [
"0.65216774",
"0.64704925",
"0.62140477",
"0.6204036",
"0.61953825",
"0.6163412",
"0.6142146",
"0.6118403",
"0.6079372",
"0.6075411",
"0.60534394",
"0.6032645",
"0.60031146",
"0.5998456",
"0.59794044",
"0.59760636",
"0.5968283",
"0.5945059",
"0.5940674",
"0.5932215",
"0.59243... | 0.56961143 | 99 |
subSciptionDateTime (current date and time) | public void signUpNew(String mail,String password){
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
String dateTime = simpleDateFormat.format(Calendar.getInstance().getTime());
//device ID
String deviceId = Settings.Secure.getString(context.getContentRes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String currentDateTime() {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }",
"public String getCurrentDateTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFo... | [
"0.5868872",
"0.5853317",
"0.5573787",
"0.5540081",
"0.5517279",
"0.54834116",
"0.54504144",
"0.5422247",
"0.5408073",
"0.5401529",
"0.5398652",
"0.5398652",
"0.539315",
"0.5388741",
"0.5375489",
"0.5353312",
"0.5340867",
"0.53355265",
"0.5321764",
"0.5305433",
"0.5276003",
... | 0.0 | -1 |
send profile data to server | public void sendUserProfile(int retailerID, String proprietor, String shopName, String mobileNo
, double longitude, double latitude
, String cityName, String stateName, String countryName) {
headers = new HashMap<>();
headers.put("Content-Type", "application/json");
head... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void callForProfileData(){\n socket.emit(\"user\");\n }",
"private void sendUserData() {\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference myref = firebaseDatabase.getReference(Objects.requireNonNull(firebaseAuth.getUid()));\n UserProf... | [
"0.7512581",
"0.67186767",
"0.66143274",
"0.6575831",
"0.64745086",
"0.6333901",
"0.63002867",
"0.61041373",
"0.60749024",
"0.60264534",
"0.59958625",
"0.59752053",
"0.5964964",
"0.59580094",
"0.5955129",
"0.5952298",
"0.5947007",
"0.59358025",
"0.5911431",
"0.59020346",
"0.5... | 0.6066062 | 9 |
check if user is present in permanent table in server at the time of SignUp | public void checkInPermanent(String mail, String password) {
headers = new HashMap<>();
headers.put("mail", mail);
headers.put("password", password);
headers.put("Content-Type", "application/json");
try {
jsonObject = new JSONObject();
jsonObject.put("mail... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void isUserExist() {\n\n if (firebaseAuth.getCurrentUser() != null) {\n\n final String user_id = firebaseAuth.getCurrentUser().getUid();\n users_database_reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataCha... | [
"0.7213817",
"0.7144157",
"0.71370804",
"0.70993423",
"0.7052055",
"0.6994382",
"0.6994382",
"0.6994382",
"0.6994382",
"0.6994382",
"0.6994382",
"0.6994382",
"0.6873925",
"0.68601996",
"0.6770776",
"0.6750881",
"0.6685215",
"0.6638359",
"0.6628418",
"0.6628418",
"0.6628418",
... | 0.0 | -1 |
user not present in permanent or temp table in server sign up the user | public void signUp(String email, String password) {
headers = new HashMap<>();
//headers.put("req_type", "signUp");
headers.put("mail", email.toString());
headers.put("password", password.toString());
headers.put("enterpriseName", "");
headers.put("propritor", "");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}",
"private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.... | [
"0.67160636",
"0.63803077",
"0.6376469",
"0.63383716",
"0.63167495",
"0.63017625",
"0.62472886",
"0.62276876",
"0.6207529",
"0.61771846",
"0.61045027",
"0.61038107",
"0.61005247",
"0.6080776",
"0.6066989",
"0.60628986",
"0.60628986",
"0.60628986",
"0.60628986",
"0.60628986",
... | 0.0 | -1 |
sign in the user | public void signInWithEmail(String email, String password) {
headers = new HashMap<>();
headers.put("req_type", "signInWithEmail");
headers.put("mail", email);
headers.put("password", password);
headers.put("Content-Type", "application/json");
try {
jsonObjec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signIn() {\n }",
"User signIn(String login, String password);",
"String signIn(String userName, String password) throws UserNotFoundException;",
"public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}",
"public void user_signin()\r\n\t{\r\n\t\t\r\n\t\tdriver.findElement... | [
"0.77956426",
"0.77397543",
"0.7463081",
"0.74534595",
"0.73831785",
"0.7255621",
"0.7242801",
"0.7213196",
"0.71595377",
"0.7144847",
"0.7109581",
"0.7109581",
"0.7109581",
"0.70874316",
"0.7086248",
"0.7086248",
"0.7086248",
"0.7086248",
"0.7053385",
"0.70433134",
"0.703762... | 0.0 | -1 |
send user email for verification (to verification script) | public void verifyEmail(String mail) {
databaseURL = "http://ec2-18-216-46-195.us-east-2.compute.amazonaws.com:6868/verify_email_id";
headers = new HashMap<>();
headers.put("mail", mail);
headers.put("Content-Type", "application/json");
try {
jsonObject = new JSONObje... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendEmailVerification() {\n showProgressDialog();\n\n // [START send_email_verification]\n final FirebaseUser user = mAuth.getCurrentUser();\n assert user != null;\n user.sendEmailVerification()\n .addOnCompleteListener(this, new OnCompleteListener<Voi... | [
"0.78535014",
"0.7770918",
"0.7504854",
"0.7087293",
"0.68907374",
"0.66723263",
"0.66603833",
"0.65414774",
"0.65241206",
"0.6502231",
"0.64559937",
"0.64442986",
"0.64366114",
"0.64307684",
"0.638468",
"0.63669854",
"0.6323951",
"0.62991744",
"0.6282996",
"0.6251724",
"0.62... | 0.0 | -1 |
send verification code from email to server to complete verification | public void sendVerificationCode(int code,String mail,String password) {
headers = new HashMap<>();
headers.put("code", String.valueOf(code));
headers.put("mail",mail);
headers.put("password",password);
headers.put("Content-Type", "application/json");
try {
d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendVerificationCode() {\n\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n \"+91\" + phoneNumber, // Phone number to verify\n 60, // Timeout and unit\n TimeUnit.SECONDS,\n this,\n mCallbacks\n );\n... | [
"0.7969969",
"0.7293003",
"0.7174216",
"0.7119604",
"0.70348555",
"0.7008972",
"0.693276",
"0.69253284",
"0.67482996",
"0.67148507",
"0.66807795",
"0.65907204",
"0.647772",
"0.6473513",
"0.64539456",
"0.6417637",
"0.6392402",
"0.6368404",
"0.63551074",
"0.6352428",
"0.6321439... | 0.7812467 | 1 |
actually send request with given body and headers to given url | private void sendRequest(String URL) {
RequestQueue requestQueue = Volley.newRequestQueue(context);
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL, new JSONObject(headers)
, new Response.Listener<JSONObject>() {
@Override
pub... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;",
"private HttpResponse httpRequest(URL url, List<Header> headers, String method) throws IOException {\n\n BufferedReader streamReader;\n\n HttpURLConnection connection = setupConnectio... | [
"0.65172446",
"0.6500005",
"0.6490383",
"0.6432823",
"0.63984317",
"0.63637626",
"0.6280409",
"0.62090015",
"0.5980951",
"0.59397155",
"0.5922538",
"0.59213555",
"0.5911337",
"0.58502156",
"0.5839287",
"0.5769262",
"0.5763387",
"0.5728824",
"0.5718035",
"0.570346",
"0.5697539... | 0.0 | -1 |
adiciona um objeto de dados personalizado para exibir o erro | public void addError(String sFieldName, String sMessage)
{
this.listErrors.add(new FieldMessage(sFieldName,sMessage));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void adicionarLetrasErradas() {\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n ... | [
"0.6161831",
"0.61463237",
"0.61367404",
"0.5979814",
"0.5947938",
"0.59074974",
"0.5891973",
"0.5872862",
"0.58716226",
"0.57932204",
"0.5635805",
"0.56273955",
"0.56235564",
"0.5582062",
"0.55714613",
"0.5566907",
"0.5556077",
"0.5547843",
"0.5527802",
"0.55156153",
"0.5511... | 0.0 | -1 |
/ confirmMessage should have the following format: original: Are you sure you want to delete this? transformed: ^Are you sure you want to delete this[\\s\\S]$ | public void confirmOK(String expectedMessage) throws InterruptedException {
for (int second = 0;; second++) {
if (second >= 60)
fail("timeout");
try {
if (selenium.isConfirmationPresent())
break;
} catch (Exception e) {
}
Thread.sleep(1000);
}
String actual = selenium.getCon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getConfirmationMessage();",
"protected boolean Confirm(String message) {\n String line = inputLine(message);\n if (line.length() == 0 || line.toUpperCase().charAt(0) == 'Y') {\n return true;\n } else {\n return false;\n }\n }",
"private void confirmat... | [
"0.6134107",
"0.60984004",
"0.59246886",
"0.5906524",
"0.56149",
"0.55899954",
"0.55616134",
"0.555948",
"0.5517515",
"0.54198116",
"0.5408659",
"0.5403939",
"0.53998154",
"0.53851163",
"0.53842574",
"0.53795874",
"0.53652984",
"0.5342854",
"0.53330594",
"0.5317867",
"0.52935... | 0.50686467 | 34 |
clickableElement should be set to the delete 'X' used to delete panels Set confirmMessage to null if no confirmation dialog will appear | public void removePanel(String clickableElement, String confirmMessage)
throws InterruptedException {
selenium.click(clickableElement);
if (confirmMessage != null)
confirmOK(confirmMessage);
waitForElementNotPresent(clickableElement);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickConfirmDeleteButton() {\n // GeneralUtilities.waitSomeSeconds(1);\n // validateElementText(titleConfirmDeleteToDo, \"Delete To-Do?\");\n // validateElementText(titleConfirmDeleteToDoDescription, \"Are you sure you'd like to delete these To-Dos? Once delete... | [
"0.7087213",
"0.6773399",
"0.6675426",
"0.66241395",
"0.66165084",
"0.6579882",
"0.6550603",
"0.65146583",
"0.65030557",
"0.6489077",
"0.6471622",
"0.6375766",
"0.6300006",
"0.62354875",
"0.6230262",
"0.62204695",
"0.61553735",
"0.6145603",
"0.612226",
"0.60916984",
"0.607717... | 0.68161803 | 1 |
/ Removes the last panel which has the clickable element. It should be | public void removeLastPanel(String clickableElement, String confirmMessage)
throws Exception {
String latestClickableElement = computeLatestElement(clickableElement,
true);
selenium.click(latestClickableElement);
if (confirmMessage != null)
confirmOK(confirmMessage);
waitForElementNotPresent(la... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeExtraPanel() {\n\t\tif (extraPanel != null) {\n\t\t\tremove(extraPanel);\n\t\t\textraPanel = null;\n\t\t\tupdate();\n\t\t}\n\t}",
"public void removePanel() \n\t{\n\t\tgame.remove(this);\n\t}",
"public void panelGone() {\n\t\tdisplayPanel.removeImage(this);\r\n\r\n\t}",
"@Override\n prot... | [
"0.71248037",
"0.7089604",
"0.67438805",
"0.6408663",
"0.63976973",
"0.6365256",
"0.63383025",
"0.63088673",
"0.62851954",
"0.6151677",
"0.6147348",
"0.6099932",
"0.60854185",
"0.6080587",
"0.60743105",
"0.5978992",
"0.5972083",
"0.5961581",
"0.59588104",
"0.59484166",
"0.593... | 0.6004072 | 15 |
/ waitForElementPresent should have an array index in the Name. For ex: | public void addLastPanel(String clickableElement,
String waitForElementPresent) throws Exception {
String latestElement = computeLatestElement(waitForElementPresent,
false);
selenium.click(clickableElement);
waitForElementPresent(latestElement);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifyElementIsVisible(String elementName) {\n wait.forElementToBeDisplayed(5, returnElement(elementName), elementName);\n Assert.assertTrue(\"FAIL: Yellow Triangle not present\", returnElement(elementName).isDisplayed());\n }",
"public void verifyAllStepsName(){\r\n String[] ... | [
"0.6353231",
"0.6332181",
"0.61980957",
"0.6196096",
"0.6167206",
"0.61067903",
"0.5912366",
"0.5883104",
"0.58559227",
"0.5822224",
"0.57597977",
"0.57088405",
"0.5678811",
"0.56530917",
"0.56324625",
"0.5631261",
"0.5573099",
"0.55688405",
"0.55674386",
"0.5560008",
"0.5555... | 0.0 | -1 |
Valores para preencherWebElements HTML Tags and Attributes | public BuscadorPage(WebDriver pDriver) {
this.aDriver = pDriver;
//this.aDriver.manage().window().maximize();
accessURL();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Element getElement();",
"public HTMLElement getElementValorEd() { return this.$element_ValorEd; }",
"@Test\n public void byAttributesAndStylesTest() throws Exception {\n /* Navigate to the Checkboxes section */\n driver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/ul/li[5]/a\")).click();\n... | [
"0.56347436",
"0.559986",
"0.55767936",
"0.55239147",
"0.5470299",
"0.54420507",
"0.54400367",
"0.5370761",
"0.5323627",
"0.5319554",
"0.5305782",
"0.53001755",
"0.5297298",
"0.5284957",
"0.52787554",
"0.52464956",
"0.5227788",
"0.52144337",
"0.51985264",
"0.5194577",
"0.5184... | 0.0 | -1 |
add the behavior to add numbers | @Test
public void testAddAndSubtract() {
when(calcService.add(20.0, 10.0)).thenReturn(30.0);
// subtract the behavior to subtract numbers
when(calcService.subtract(20.0, 10.0)).thenReturn(10.0);
// test the add functionality
Assert.assertEquals(mathApplication.add(20.0, 10.0), 30.0, 0);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void addNumbers() {\n calculator.add(2, 2);\n }",
"private void addTwoNumbers() {\n\t\t\n\t}",
"private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t... | [
"0.7580995",
"0.72107136",
"0.6750644",
"0.67022294",
"0.6634766",
"0.6608815",
"0.6563846",
"0.6533001",
"0.6501321",
"0.64034635",
"0.6401869",
"0.6398507",
"0.63452363",
"0.6304799",
"0.6303023",
"0.6263022",
"0.6260537",
"0.6235871",
"0.6230789",
"0.6217512",
"0.61902493"... | 0.0 | -1 |
write your code here | public static void main(String[] args) {
Course course1 = new Course("Data Structures");
Course course2 = new Course("Database Systems");
course1.addStudent("Deniz Salman");
course1.addStudent("Ahmet Kaya");
course1.addStudent("Neşet Ertaş");
course2.addStudent("Mahir Ç... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logic(){\r\n\r\n\t}",
"public static void generateCode()\n {\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"void pramitiTechTutorials() {\n\t\n}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpub... | [
"0.61019534",
"0.6054925",
"0.58806974",
"0.58270746",
"0.5796887",
"0.56999695",
"0.5690986",
"0.56556827",
"0.5648637",
"0.5640487",
"0.56354505",
"0.56032085",
"0.56016207",
"0.56006724",
"0.5589654",
"0.5583692",
"0.55785793",
"0.55733466",
"0.5560209",
"0.55325305",
"0.5... | 0.0 | -1 |
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.) | @Override
public boolean hasNext() {
if (Col + 1 == NCols) {
if (Row + 1 == NRows) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasMoreElements() {\n/* 64 */ return this.iterator.hasNext();\n/* */ }",
"@Override\r\n\tpublic boolean hasMoreElements() {\n\t\treturn it.hasNext();\r\n\t}",
"public boolean moreToIterate() {\r\n\t\treturn curr != null;\r\n\t}",
"public boolean hasNext() {\r\n if (current ... | [
"0.87193924",
"0.85583717",
"0.8127386",
"0.8114108",
"0.8064937",
"0.8037515",
"0.8033067",
"0.8033067",
"0.80216867",
"0.8017142",
"0.79953957",
"0.797056",
"0.7969138",
"0.7937353",
"0.787114",
"0.7867827",
"0.7818936",
"0.77829593",
"0.77821136",
"0.77771986",
"0.77549326... | 0.0 | -1 |
function to check if given string contains hex chars | private void checkHexnumber(String add,String errorMsg) throws NotHexNumber{
int subIndex=0;
if(add.substring(0,2).equals("0x")){
subIndex=2;
}
if(add.substring(subIndex).matches("^[0-9A-Fa-f]+$")==false){
throw new NotHexNumber("NotHexNumber."+errorMsg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isValidHexString(String inputStrInHex)\n\t{\n\t\tboolean isValidHexString = false;\n\n\t\tif(StringUtil.isInvalidString(inputStrInHex))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tchar[] charArray = inputStrInHex.toCharArray();\n\n\t\tfor(char c : charArray)\n\t\t{\n\t\t\tisValidHexString = fal... | [
"0.75088",
"0.74409884",
"0.7403128",
"0.7344204",
"0.71471",
"0.71410185",
"0.70245767",
"0.686847",
"0.6861168",
"0.66796213",
"0.66047823",
"0.65742767",
"0.65446204",
"0.65123206",
"0.6472547",
"0.6394092",
"0.6367911",
"0.63582116",
"0.6303101",
"0.620481",
"0.6200197",
... | 0.65625715 | 12 |
Get the data item for this position | @Override
public View getView(int position, View convertView, ViewGroup parent) {
Alerta dataModel = getItem(position);
// Check if an existing view is being reused, otherwise inflate the view
ViewHolder viewHolder; // view lookup cache stored in tag
final View result;
if (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}",
"public E getData(int pos) {\n\t\tif (pos >= 0 && pos < dataSize()) {\n\t\t\treturn data.get(pos);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn mDatas.get(position);\n\t\t}",... | [
"0.7668654",
"0.731151",
"0.72089416",
"0.71677965",
"0.7130208",
"0.7076344",
"0.70645505",
"0.70532256",
"0.7042189",
"0.7042189",
"0.7042189",
"0.70360523",
"0.7032629",
"0.6959",
"0.6956786",
"0.6956786",
"0.69467556",
"0.69467556",
"0.69104123",
"0.6871041",
"0.6827699",... | 0.0 | -1 |
endregion region Private methods | private void setupRecycler() {
final LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
RecyclerView attractionsRecycler = (RecyclerView) getActivity().findViewById(R.id.contentMain_attractionsRecycler);
attractionsRecycler.setLayoutManager(linearLayoutManager);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void co... | [
"0.6597406",
"0.63587224",
"0.6270996",
"0.62493384",
"0.6194695",
"0.6162944",
"0.61496603",
"0.61302084",
"0.60617095",
"0.6016014",
"0.6016014",
"0.60128516",
"0.5985439",
"0.5967439",
"0.5946587",
"0.594002",
"0.5928321",
"0.5927688",
"0.5927688",
"0.59256214",
"0.5921261... | 0.0 | -1 |
endregion region Public methods | public static void findFavourites() {
DataManager.currentFavouritesList.clear();
for (int i = 0; i < DataManager.fullFavouritesList.size(); i++) {
Attraction attraction = DataManager.findAttractionByName(DataManager.fullFavouritesList.get(i));
if (attraction != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n... | [
"0.64688",
"0.64162254",
"0.6390807",
"0.636338",
"0.63537353",
"0.62550014",
"0.6250354",
"0.624638",
"0.624638",
"0.61576414",
"0.614064",
"0.6118149",
"0.6115002",
"0.6115002",
"0.60642815",
"0.606347",
"0.6061156",
"0.60518825",
"0.6043444",
"0.6028654",
"0.60234225",
"... | 0.0 | -1 |
TODO: Get the Framework Hierarchy from Cassandra and load it to cache TODO: Filter out required category and return the data. | @Override
public Object execute(String operation, String cacheKey, String objectKey) {
return Arrays.asList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Category loadCategoryTree() {\n Category categoryTree = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n categoryTree = dbb.loadCategoryTree();\n dbb.commit();\n dbb.c... | [
"0.6645824",
"0.55028635",
"0.546113",
"0.5393524",
"0.53839797",
"0.5236338",
"0.52324075",
"0.5217061",
"0.5180256",
"0.51741844",
"0.51634765",
"0.5161776",
"0.51462",
"0.5143838",
"0.51276386",
"0.5122119",
"0.5084575",
"0.50789773",
"0.50608575",
"0.5055773",
"0.5048219"... | 0.0 | -1 |
TODO Autogenerated method stub | public UseCoinDTO selectBuyed(Connection con, int webNovNum, int webNovChapNum, int memNum) {
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 |
Repository class for ITEM_REPOSITORY table. | @Repository
public interface ItemRepository extends JpaRepository<Items, Long> {
/**
* Finds and returns List of Items.Native query to get items based on Category Id.
*
* @param itemCategoryId Long representing category Id.
* @return Returns list of Items.
*/
@Query(value = "SELECT * F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ItemRepository extends CrudRepository<Item, Long> {\n}",
"interface ItemRepository extends JpaRepository<Item, Long> {\n\n}",
"@Repository\npublic interface ItemRepository extends JpaRepository<Item, Long>{\n\n}",
"@Repository\npublic interface ItemComboRepository extends Neo4jRepository<Ite... | [
"0.67085564",
"0.666772",
"0.6419885",
"0.6293888",
"0.61968255",
"0.61968255",
"0.61414963",
"0.60706735",
"0.6052269",
"0.60046226",
"0.6001957",
"0.59768206",
"0.58339316",
"0.58244216",
"0.5806706",
"0.5771695",
"0.5728782",
"0.5726427",
"0.5721981",
"0.57131404",
"0.5711... | 0.53531444 | 82 |
Finds and returns List of Items.Native query to get items based on Category Id. | @Query(value = "SELECT * FROM ITEMS WHERE category_id = ?1", nativeQuery = true)
List<Items> findItemsByCategoryId(Long itemCategoryId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value=\"/{categoryId}/items\",\n\t\t\tmethod=RequestMethod.GET, \n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Collection<Item>> getCategoryItem(@PathVariable(\"categoryId\") Long categoryId){\n\t\t\n\t\tCollection<Item> items = itemService.findCategoryItems(categoryI... | [
"0.69939315",
"0.6894414",
"0.6837056",
"0.67932665",
"0.6780422",
"0.6692836",
"0.6485319",
"0.6440982",
"0.64406514",
"0.64311063",
"0.64261544",
"0.6422799",
"0.63348675",
"0.6263696",
"0.62378645",
"0.6217344",
"0.62021357",
"0.61986196",
"0.6188962",
"0.6188478",
"0.6184... | 0.81237024 | 0 |
TODO: place custom component creation code here | private void createUIComponents() {
this.selectorApplication = new AzureArtifactComboBox(project, true);
this.selectorApplication.refreshItems();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Component createComponent();",
"Component createComponent();",
"@Override\n public void initComponent() {\n }",
"@Override\n public void initComponent() {\n }",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"@Override\r\n public void initComponent() {\n... | [
"0.748043",
"0.748043",
"0.710925",
"0.710925",
"0.70801723",
"0.70445067",
"0.69780385",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.69689584",
"0.6... | 0.6226062 | 60 |
The getType implementation of the super Class | @Override
public Class<Employee> getType() {
return Employee.class;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Type getType();",
"abstract public Type getType();",
"protected abstract Class<T> getType();",
"public Class getType();",
"public Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType()... | [
"0.8292964",
"0.8292243",
"0.82104456",
"0.81130373",
"0.8068725",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.8067282",
"0.805208",
"0.79691243",
"0.78860724",
"0.78795505",
"0.7800026",... | 0.0 | -1 |
checks if the directory exist | public Boolean isExist() {
if(pfDir.exists())
return true;
else
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean directoryExists() {\n if (Meta.getInstance().containDirectory(dirName))\n return true;\n else\n return false;\n }",
"boolean directoryExists(String path) throws IOException;",
"private static boolean checkDirectory() {\n File baseDir = new File(Envi... | [
"0.8206236",
"0.7713889",
"0.759733",
"0.7242153",
"0.7214612",
"0.71927977",
"0.7111021",
"0.7106784",
"0.70616066",
"0.70565856",
"0.7039546",
"0.7033031",
"0.70286846",
"0.6997769",
"0.6933983",
"0.6912176",
"0.69012445",
"0.6829694",
"0.67625594",
"0.67475027",
"0.6702599... | 0.7137684 | 6 |
get the directory path | public String getPath() {
return pfDir.getPath();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDir();",
"String getDirectoryPath();",
"public String getDir();",
"public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}",
"java.lang.String getDirName();",
"Object getDir();",
"FsPath baseDir();",
"public String getDirectory() {\n return directoryProperty().get(... | [
"0.8410712",
"0.8404497",
"0.8298865",
"0.7705",
"0.76936173",
"0.7642926",
"0.75219136",
"0.74882877",
"0.74661154",
"0.7438397",
"0.7413571",
"0.7402091",
"0.7402091",
"0.7402091",
"0.7402091",
"0.7402091",
"0.7382532",
"0.7365111",
"0.73149467",
"0.72622824",
"0.7215411",
... | 0.7602308 | 6 |
get the path for the camera | public String getPFCameraTakenPath() {
// TODO Auto-generated method stub
String path = pfDir.getPath()+"/camera/";
return path;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getPath() {\n\t\t// Lấy đường dẫn link\n\t\tAuthentication auth1 = SecurityContextHolder.getContext().getAuthentication();\n\t\tAgentconnection cus = (Agentconnection) auth1.getPrincipal();\n\t\t \n\t\t//String PATH_STRING_REAL = fileStorageProperties.getUploadDir()+cus.getMerchant()+\"/... | [
"0.65854114",
"0.64600724",
"0.64600724",
"0.64600724",
"0.64600724",
"0.64600724",
"0.63495404",
"0.63495404",
"0.63495404",
"0.6329215",
"0.6304279",
"0.62487334",
"0.6202902",
"0.6159261",
"0.6077822",
"0.60499483",
"0.5997852",
"0.5986757",
"0.5964035",
"0.59582746",
"0.5... | 0.77241045 | 0 |
get the path for data | public String getPFDataPath() {
// TODO Auto-generated method stub
String path = pfDir.getPath()+"/data/";
return path;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDataPath() {\n\t\treturn \"data\";\r\n\t}",
"private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }",
"... | [
"0.84134173",
"0.8114964",
"0.7742876",
"0.768169",
"0.7278102",
"0.7278102",
"0.7278102",
"0.7278102",
"0.72667676",
"0.6952322",
"0.6952322",
"0.6952322",
"0.6952322",
"0.6952322",
"0.6930634",
"0.6920732",
"0.6920732",
"0.6920732",
"0.6837798",
"0.6821962",
"0.68215686",
... | 0.7782847 | 2 |
TODO Autogenerated method stub | public void createSubDirCameraTaken() {
File f = new File(getPFCameraTakenPath());
f.mkdirs();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void createSubDirData() {
File f = new File(getPFDataPath());
f.mkdirs();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
checks if there are existing SD Card mounted | public Boolean checkifItHasExternalMemory() {
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isSdcardExist() {\n return android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);\n }",
"public boolean checkSDCard() {\n String isSDSupportedDevice = Environment.getExternalStorageState(new File(EXTERNAL_SD_CARD));\n if(isSDSu... | [
"0.8215739",
"0.79344314",
"0.7797428",
"0.7749015",
"0.76907265",
"0.7662283",
"0.7649743",
"0.7397064",
"0.7339877",
"0.71545273",
"0.70942825",
"0.70555794",
"0.6830901",
"0.6773616",
"0.67716163",
"0.6671035",
"0.66256475",
"0.6434055",
"0.64119583",
"0.6372432",
"0.63659... | 0.621618 | 24 |
preluare date recente de la APIul node | public void getLatestDataFromMyAPI(String urlprimit) throws URISyntaxException, IOException {
dateCurente.clear();
ContextForStrategy contextForStrategy = new ContextForStrategy(new GetLastDataStrategy());
dateCurente = contextForStrategy.executeStrategy(urlprimit);
int i = 0;
fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DateAdp Modified_latest() {return modified_latest;}",
"long getFetchedDate();",
"Date getForLastUpdate();",
"public Date getRequestDate();",
"private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\t... | [
"0.6665207",
"0.65580505",
"0.63464373",
"0.6237649",
"0.61452925",
"0.61429185",
"0.609463",
"0.6091065",
"0.6088116",
"0.60765254",
"0.6053023",
"0.60388404",
"0.60258883",
"0.5964039",
"0.5948073",
"0.5945882",
"0.5940876",
"0.59345466",
"0.59331393",
"0.58682233",
"0.5867... | 0.0 | -1 |
Created by Fresher on 27/06/2018. | public interface ContactRepository extends CrudRepository<Contact, Integer>{
Iterable<Contact> findAll();
List<Contact> findByNameContaining(String s);
void delete(Contact c);
<T extends Contact>T save(T c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar()... | [
"0.6029434",
"0.5866301",
"0.56706667",
"0.56403106",
"0.56039596",
"0.56039596",
"0.5594606",
"0.5583206",
"0.55577123",
"0.55300945",
"0.55076545",
"0.5507292",
"0.5483803",
"0.5479696",
"0.54736704",
"0.54601437",
"0.54450047",
"0.5420071",
"0.53923994",
"0.5386735",
"0.53... | 0.0 | -1 |
Unload recursively all the collections inside the given ORI. | private void unloadCollections(ORI container) {
List<Collection> collections = resourceManager.loadChildren(Collection.class, container);
for (Collection collection : collections) {
unload(collection.getORI());
}
List<Folder> folders = resourceManager.loadChildren(Folder.cl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dropAll () {\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tif (dbCol.getIndexInfo().size()>0)\n\t\t\tdbCol.dropIndexes();\n\t\tdbCol.drop();\n\t\t\t \n\t\t\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPers... | [
"0.56411195",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5571856",
"0.5515335",
"0.5511885",
"0.54889923",
"0.53233916",
"0.52724063",
"0.52720845",
"0.52439827",
"0.5234218",
"0.5205011",
"0.5204525... | 0.7814694 | 0 |
/ Collator collator = Collator.getInstance(); Normalizer.(Normalizer.Form.NFC) TOFIX: only gets aprrox. upper bound (fix docId overlapping) | @Override
public synchronized Long count(String query) {
long count = 0L;
String nQuery = normalizeQuery(query);
Set<String> keys = suggestIndex.getKeys();
Map index = suggestIndex.getIndex();
LinkedHashSet<Long> result = new LinkedHashSet<Long>();
logger.debug("IN S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void Test4179686() throws Exception {\n RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US);\n // Create a collator with a few expanding character sequences in it....\n RuleBasedCollator coll = new RuleBasedCollator(en_us.getRules()\n ... | [
"0.6198053",
"0.6186226",
"0.61828107",
"0.5932051",
"0.58701485",
"0.57903504",
"0.55694485",
"0.54914474",
"0.5424238",
"0.5419648",
"0.53629833",
"0.5254238",
"0.5250335",
"0.52496594",
"0.5211026",
"0.51940227",
"0.5192408",
"0.51849043",
"0.51683354",
"0.51006925",
"0.50... | 0.0 | -1 |
Method takes GPS coordinates of two town and calculate distance between them | public static double distance(double latit1, double longit1, double latit2, double longit2)
{
double latitude1 = Math.toRadians(latit1); //latitude of the first location
double latitude2 = Math.toRadians(latit2); //latitude of the second location
double longitude1 = Math.toRadians(longit1); //longitude of the... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static double get_distance ( String one, String two){\n String temp[] = one.split(\" \");\n double lat1 = Double.parseDouble(temp[0]);\n double long1 = Double.parseDouble(temp[1]);\n\n String temp2[] = two.split(\" \");\n double lat2 = Double.parseDouble(temp2[0]);\n ... | [
"0.7522798",
"0.7422252",
"0.7403439",
"0.7391684",
"0.72949374",
"0.7249757",
"0.7240772",
"0.72260535",
"0.71886116",
"0.7111065",
"0.71081585",
"0.7100171",
"0.7097368",
"0.70722467",
"0.7037125",
"0.70311534",
"0.70048314",
"0.6989404",
"0.6985194",
"0.6931979",
"0.691134... | 0.701338 | 16 |
TCJLODO Autogenerated method stub | public JPanel createPanel(List<AbstractFieldEditor> editorList,int cols) {
JPanel panel=new JPanel();
panel.setLayout(new GridBagLayout());
int row = 0;
int col = 0;
for (int i = 0; i < editorList.size(); i++) {
AbstractFieldEditor comp = editorList.get(i);
if (co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTID();",
"public TTDB getTTDB();",
"@Override\r\n\tpublic <T> EktParam creatParam(T t) {\n\t\todo = (ODO) t;\r\n\t\todo.setEktSql(null);\r\n\t\tif (EKTIO.getInstance().ektSwitch()) {\r\n\t\t\t\r\n\t\t\tReg reg = ektParam.getReg();\r\n\t\t\tPat pat = ektParam.getPat();\r\n\t\t\t\r\n\t\t\tTParm ord... | [
"0.5491422",
"0.53774196",
"0.53205913",
"0.5313906",
"0.52549034",
"0.52419305",
"0.5223687",
"0.52062917",
"0.51965904",
"0.5173837",
"0.51547563",
"0.51126087",
"0.5100547",
"0.509487",
"0.50877047",
"0.5084647",
"0.50685287",
"0.5062779",
"0.50598365",
"0.5050864",
"0.504... | 0.0 | -1 |
public static Joystick xbox = new Joystick(2); Button x1 = new JoystickButton(xbox, 1); Button x2 = new JoystickButton(xbox, 2); Button x3 = new JoystickButton(xbox, 3); Button x4 = new JoystickButton(xbox, 4); Button x5 = new JoystickButton(xbox, 5); Button x6 = new JoystickButton(xbox, 6); Button x7 = new JoystickBut... | public OI(){
// c6.whenPressed(new dumpFlapOpen());
//c8.whenPressed(new dumpFlapClose());
// l7.whenPressed(new dumpFlapOpen());
//
// x3.whileHeld(new hopperCoil());
// x1.whileHeld(new hopperUnCoil());
// x2.whileHeld(new climber());
// x0.whenPressed(new climberReset());
// x8.toggleWhenPressed(new cam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private OI() {\n\t\t\n\t\tJoystickButton intakeIn = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_INTAKE);\n\t\tJoystickButton intakeOut = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_REVERSE_INTAKE);\n\t\tJoystickButton pivotOut = new JoystickButton(//gunner,\t\t\t\tThese create officially ea... | [
"0.75461227",
"0.7011257",
"0.6930122",
"0.69066924",
"0.68164885",
"0.6807845",
"0.6805261",
"0.6782341",
"0.66668844",
"0.6643791",
"0.6619464",
"0.65390354",
"0.65284646",
"0.6500731",
"0.6485385",
"0.6395653",
"0.63457984",
"0.6307355",
"0.6307355",
"0.62700045",
"0.62548... | 0.0 | -1 |
StackArrayImpl stack = new StackArrayImpl(a.length); | private static ArrayList getStocksSpan(int[] a) {
Stack<ValueIndex> stack = new Stack<>();
ArrayList<Integer> list = new ArrayList();
for(int i =0 ; i<a.length;i++){
if(stack.isEmpty())list.add(-1);
else if(stack.peek().value>a[i])list.add(i-1);
else if(stack.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}",
"public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }",
"public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by s... | [
"0.7821329",
"0.77598876",
"0.7668309",
"0.7502955",
"0.7431196",
"0.7371683",
"0.736498",
"0.73527616",
"0.732624",
"0.7311331",
"0.729534",
"0.7288822",
"0.7258056",
"0.7105535",
"0.7096883",
"0.7093225",
"0.69714385",
"0.69516754",
"0.68406874",
"0.6800553",
"0.6790974",
... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_reset_password, container, false);
resetPassword = (Button) view.findViewById(R.id.reset_password_button);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
fill in prestart cells | private static void fillDistances(CellData[][] cells) {
Set<Pair<Integer, Integer>> currentLayer = new HashSet<>();
for (int x = 0; x < cells.length; x++) {
for (int y = 0; y < cells[0].length; y++) {
if (cells[x][y].getType() == TrackCell.PRE_START_LINE) {
cells[x][y].offerDistanceToFinish(1);
cur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fillFirstRow() {\n\t\tputBeeper();\n\t\tputEveryOtherBeeper();\t\t\n\t}",
"private void fillQ() {\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 10; j++) {\n Cell cell = new Cell(i, j);\n addToQ(cell, true);\n }\n }\n }",
... | [
"0.7157319",
"0.6378354",
"0.63510686",
"0.6271",
"0.62513053",
"0.6155968",
"0.61358845",
"0.6125856",
"0.6040871",
"0.59920913",
"0.59528935",
"0.58868104",
"0.5862579",
"0.58561665",
"0.5851792",
"0.58217627",
"0.5794374",
"0.5778867",
"0.5770018",
"0.5765542",
"0.5763447"... | 0.0 | -1 |
check if this is the finishing move | private static int getMoveValue(CellData[][] cells, int fromX, int fromY,
int toX, int toY) {
Pair<Boolean, Intersection> moveResult = isMoveLegal(cells,
Pair.of(fromX, fromY), Pair.of(toX, toY));
if (!moveResult.getLeft()) {
throw new IllegalArgumentException("Illegal move: [" + fromX + ", "
+ fromY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }",
"protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>how... | [
"0.8180282",
"0.8039128",
"0.8004415",
"0.7963543",
"0.7944838",
"0.76665425",
"0.76439524",
"0.7634573",
"0.76249015",
"0.76199824",
"0.7611864",
"0.7586509",
"0.7551305",
"0.7546704",
"0.7504464",
"0.749758",
"0.74960643",
"0.74787843",
"0.7477541",
"0.7454977",
"0.7439268"... | 0.0 | -1 |
choose best move from pos | private Move getBestMove(RaceTrack track, CellData[][] cells,
Pair<Integer, Integer> pos, Pair<Integer, Integer> speed, int depth) {
CellData cellData = cells[pos.getLeft()][pos.getRight()];
Map<Pair<Integer, Integer>, Character> availableMoves = new HashMap<>();
int contX = pos.getLeft() + speed.getLeft();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Move getBestMove() {\n //System.out.println(\"AI chooses: \" + m.toString());\n return moves.get((int) (Math.random() * moves.size()));\n }",
"PrioritizedMove getBestMoveFor(int player, int desiredLength);",
"public Move pickBestMove(Board board) {\n\t\treturn null;\n\t}",
"public abstract v... | [
"0.78732437",
"0.7371976",
"0.73560107",
"0.7335476",
"0.7314355",
"0.72475916",
"0.7101504",
"0.704677",
"0.68811584",
"0.68654245",
"0.6830219",
"0.67875564",
"0.6786166",
"0.6756288",
"0.6703754",
"0.6650605",
"0.66274816",
"0.6612515",
"0.6609522",
"0.659141",
"0.65626967... | 0.6876337 | 9 |
A Security Group which is defined the the (ossecuritygroups) extension | @Deprecated
public interface SecGroupExtension extends ModelEntity {
/**
* Gets the identifier for the Security Group
*
* @return the identifier
*/
String getId();
/**
* Gets the name of the Security Group
*
* @return the name of the Group
*/
String getName();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"WsecGroup getGroupByName(String roleName);",
"public SecRolegroup getNewSecRolegroup();",
"private static void genSecGroup() {\n\t\tSystem.out.println(\"This Program will generate a security group\");\n\t\tSystem.out.println(\"with the name bitcrusher and ssh ability for\");\n\t\tSystem.out.println(\"your ip a... | [
"0.6592426",
"0.65699726",
"0.645467",
"0.6073761",
"0.58695775",
"0.5851211",
"0.5829979",
"0.5829979",
"0.5829979",
"0.5829979",
"0.5829979",
"0.575311",
"0.5665327",
"0.56548744",
"0.56528556",
"0.5624487",
"0.5614753",
"0.5590267",
"0.55887675",
"0.5583036",
"0.5575878",
... | 0.5895774 | 4 |
Gets the identifier for the Security Group | String getId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSecId();",
"public String getSGroupID() {\n return sGroupID;\n }",
"java.lang.String getGroupId();",
"java.lang.String getGroupId();",
"String getGroupId();",
"String getGroupId();",
"public String getSecId() {\n Object ref = secId_;\n if (ref instanceof String) {\n ... | [
"0.72399294",
"0.68851614",
"0.68760437",
"0.68760437",
"0.67822194",
"0.67822194",
"0.66152215",
"0.6600256",
"0.65246606",
"0.6501489",
"0.64997053",
"0.6488712",
"0.6468067",
"0.6396576",
"0.6368023",
"0.6363576",
"0.63261974",
"0.63097435",
"0.6277299",
"0.62518585",
"0.6... | 0.0 | -1 |
Gets the name of the Security Group | String getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getGroupName() {\n GitLabGroupInfo groupInfo = getGroupInfo();\n return (groupInfo != null) ? groupInfo.getName() : \"<could not fetch group information>\";\n }",
"public String getName()\n {\n return groupService.getName(this);\n }",
"public String getSGroupName() {... | [
"0.75891876",
"0.75635546",
"0.7499908",
"0.7472226",
"0.7279028",
"0.72262627",
"0.71886176",
"0.71862775",
"0.7185664",
"0.7185207",
"0.7185207",
"0.7179614",
"0.7175818",
"0.71470654",
"0.7141384",
"0.71126413",
"0.7099981",
"0.7053468",
"0.70394146",
"0.7005043",
"0.68339... | 0.0 | -1 |
Gets the tenant id associated with the group | String getTenantId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getTenantID();",
"public String getID(){\n return this.getKey().getTenantId(this.getTenantName());\n }",
"public String getTenant() {\n if ( this.token == null || this.token.isEmpty())\n return null;\n JsonObject pl = this.getPayload();\n if ( pl == null )\n return null;\n ... | [
"0.74043",
"0.7336635",
"0.681346",
"0.6755883",
"0.66669405",
"0.6642807",
"0.6614686",
"0.66078866",
"0.6516852",
"0.65112704",
"0.65112704",
"0.65112704",
"0.65112704",
"0.6469753",
"0.644228",
"0.64100486",
"0.6168467",
"0.6114329",
"0.61099064",
"0.60489917",
"0.5974437"... | 0.6798936 | 3 |
Gets the rules that make up this security group | List<? extends Rule> getRules(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<NetworkSecurityRule> getRules() {\n return this.rules;\n }",
"public ArrayList<String> getRules() {\n return rules;\n }",
"public List<Rule> getRules() {\r\n\t\treturn rules;\r\n\t}",
"@Override\n public List getRules() {\n return rules;\n }",
"public Rules... | [
"0.7744609",
"0.71343696",
"0.7110742",
"0.700817",
"0.6998933",
"0.6927255",
"0.67919123",
"0.67448044",
"0.67142385",
"0.6651163",
"0.65156174",
"0.65053976",
"0.63989955",
"0.6389206",
"0.62522346",
"0.6199745",
"0.61054695",
"0.60736954",
"0.60245156",
"0.5970471",
"0.596... | 0.68531424 | 6 |
Gets the reference / external links | List<? extends Link> getLinks(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getLinks();",
"protected java.util.Vector _getLinks() {\n\tjava.util.Vector links = new java.util.Vector();\n\tlinks.addElement(getPeopleLink());\n\tlinks.addElement(getChangeLogDetailsesLink());\n\treturn links;\n}",
"List<Link> getLinks();",
"public ArrayList<ExternalLink> getExternalLi... | [
"0.7604317",
"0.736991",
"0.7358423",
"0.7348908",
"0.7329586",
"0.72136647",
"0.719559",
"0.71779174",
"0.71485335",
"0.713891",
"0.70896655",
"0.707574",
"0.704674",
"0.70255256",
"0.6983761",
"0.6960358",
"0.6953232",
"0.69505966",
"0.6947211",
"0.6936575",
"0.69344246",
... | 0.6424396 | 41 |
Gets the parent group id. | String getParentGroupId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getParentGroupId() {\n return parentGroupId;\n }",
"public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"public Integer getParentid() {\n\t\treturn par... | [
"0.81842405",
"0.7722332",
"0.76019627",
"0.75757134",
"0.75245947",
"0.7498131",
"0.7486106",
"0.7486106",
"0.7486106",
"0.7476591",
"0.74648905",
"0.74648905",
"0.74648905",
"0.74648905",
"0.74648905",
"0.74648905",
"0.74648905",
"0.74648905",
"0.74648905",
"0.7439144",
"0.... | 0.7591723 | 3 |
Gets the tenant id. | String getTenantId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getTenantID();",
"public String getID(){\n return this.getKey().getTenantId(this.getTenantName());\n }",
"public String getTENANT_ID() {\n return TENANT_ID;\n }",
"public String getTenant() {\n if ( this.token == null || this.token.isEmpty())\n return null;\n JsonObject pl... | [
"0.84453017",
"0.8153678",
"0.7797006",
"0.7713399",
"0.77120763",
"0.7639628",
"0.7550865",
"0.7536365",
"0.75337374",
"0.75337374",
"0.75337374",
"0.75337374",
"0.75115776",
"0.732973",
"0.73297197",
"0.72669077",
"0.7224859",
"0.72018814",
"0.70128363",
"0.70046675",
"0.66... | 0.75722533 | 7 |
Gets the CIDR address range | String getCidr(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCidr() {\n return cidr;\n }",
"java.lang.String getMasterIpv4ReservedRange();",
"public AddressInfo getRange() {\r\n return range;\r\n }",
"String getPortRange();",
"public JsonArray getRangeInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t... | [
"0.6997648",
"0.6910236",
"0.6534258",
"0.6421435",
"0.6069062",
"0.58290446",
"0.57978135",
"0.57547545",
"0.57437015",
"0.57394236",
"0.5711796",
"0.56975216",
"0.56493145",
"0.56356",
"0.5570042",
"0.55585444",
"0.550678",
"0.54896855",
"0.54843795",
"0.547806",
"0.5448702... | 0.6063681 | 5 |
B2B Controller method for the public api validation.it validate the input xml with the xsd,authenticate and authorize the user. This method also peforms authentication and Authorization. | public String validateRequest(String ipAddress, String requestXML,
String xsdFileName) {
logger.info("Entering RequestValidator.validateRequest()");
boolean isRequestValid = false;
String validationStatus = null;
HashMap<String, String> clientCredentialMap = getclientCredentials(requestXML);
try {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ValidationResponse validate();",
"@PostMapping(\"/validate\")\r\n\tpublic ValidateOrderResponse validate(@RequestBody ValidateOrderRequest validateOrderRequest) {\n\t\tString updatedGSXML = validateOrderRequest.getInputDoc().replaceAll(\"xmlns=\\\\\\\"\\\\\\\"\", \"\");\r\n\r\n\t\tBiztalk1 gsxml = XmlObjectUtil.... | [
"0.63101214",
"0.5813913",
"0.5566375",
"0.54462314",
"0.5438237",
"0.5438237",
"0.5407026",
"0.5406459",
"0.5398201",
"0.5376979",
"0.5355208",
"0.53348786",
"0.53284687",
"0.5309848",
"0.52930933",
"0.5286299",
"0.5281874",
"0.52790546",
"0.5262057",
"0.5261267",
"0.5260536... | 0.533937 | 11 |
B2C Controller method for the public api validation.it validate the input xml with the xsd,authenticate and authorize the user. This method does not perform Authentication or Authorization. | public String validateRequest(String ipAddress, String requestXML,
String xsdFilePath, String xsdFileName) {
logger.info("Entering RequestValidator.validateRequest()");
String validationStatus = null;
try {
validationStatus = validateRequestXML(requestXML,xsdFilePath, xsdFileName);
} catch (Except... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ValidationResponse validate();",
"@PostMapping(\"/validate\")\r\n\tpublic ValidateOrderResponse validate(@RequestBody ValidateOrderRequest validateOrderRequest) {\n\t\tString updatedGSXML = validateOrderRequest.getInputDoc().replaceAll(\"xmlns=\\\\\\\"\\\\\\\"\", \"\");\r\n\r\n\t\tBiztalk1 gsxml = XmlObjectUtil.... | [
"0.64704037",
"0.5984876",
"0.57932657",
"0.5742844",
"0.5655575",
"0.56413263",
"0.5629378",
"0.5629378",
"0.5591591",
"0.55772954",
"0.55427104",
"0.55279",
"0.5515451",
"0.5502376",
"0.54757303",
"0.54658896",
"0.546523",
"0.54370934",
"0.5435377",
"0.54324806",
"0.5428296... | 0.53619266 | 27 |
triggers the api request logging process | public int logRequest(String ipAddress, String requestXML) {
return loggingProcess.logRequest(requestXML, ipAddress, appId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void logRequest(int method, String url) {\n switch (method) {\n\n case Method.GET:\n Log.d(TAG, \"Method : GET \");\n\n break;\n case Method.POST:\n Log.d(TAG, \"Method : POST \");\n break;\n default:\n ... | [
"0.70019287",
"0.67810154",
"0.6346827",
"0.6316279",
"0.62645185",
"0.62467635",
"0.61747015",
"0.6144149",
"0.60758287",
"0.6068511",
"0.6062995",
"0.59816575",
"0.593601",
"0.5929575",
"0.592471",
"0.5922152",
"0.59197086",
"0.5895171",
"0.58510756",
"0.584937",
"0.5803843... | 0.55108374 | 40 |
it validates the input xml with the xsd file | private String validateRequestXML(String strRequestXML,String xsdPathName, String xsdFileName)
throws Exception {
logger.info("Entering RequestValidator.validateRequestXML()");
URL xsdUrl = RequestValidator.class.getClassLoader().getResource(
xsdPathName + xsdFileName);
InputStream is = new ByteArra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.par... | [
"0.7167741",
"0.7027433",
"0.70156246",
"0.70156246",
"0.7008192",
"0.6985837",
"0.6978566",
"0.6929962",
"0.6929962",
"0.6839134",
"0.67421997",
"0.6715024",
"0.6624198",
"0.66099834",
"0.65535164",
"0.65526116",
"0.65401495",
"0.6523818",
"0.6426681",
"0.62674475",
"0.61786... | 0.6191707 | 20 |
it generates the schema object | private Validator createValidator(URL xsdUrl) throws SAXException,
ParserConfigurationException {
logger.info("Entering RequestValidator.createValidator()");
SchemaFactory schemaFactory = SchemaFactory
.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schema = schemaFactory.newSchema(xsdUrl);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Schema createSchema();",
"SchemaDefinition createSchemaDefinition();",
"S getSchema();",
"public ObjectSchema() {\n }",
"public Schema() {\n\t\tsuper();\n\t}",
"public Schema getSchema();",
"void schema(String schema);",
"void schema(String schema);",
"AstroSchema getSchema();",
"private void ... | [
"0.7917118",
"0.7300426",
"0.7230134",
"0.6989252",
"0.6970444",
"0.69037247",
"0.67829806",
"0.67829806",
"0.6765868",
"0.67292506",
"0.6580546",
"0.6563191",
"0.6512382",
"0.64856255",
"0.64795405",
"0.64450324",
"0.64450324",
"0.64450324",
"0.64450324",
"0.64450324",
"0.64... | 0.0 | -1 |
it extracts the user information from the input xml and stores it in a map | private HashMap<String, String> getclientCredentials(String strRequestXML) {
logger.info("Entering RequestValidator.getclientCredentials()");
HashMap<String, String> clientCredentialMap = new HashMap<String, String>();
try {
DocumentBuilderFactory factory = DocumentBuilderFactory
.newInstance();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Map<String, Map<String, String>> getEventsFromAnXML(Activity activity)throws XmlPullParserException, IOException {\n\t\tMap<String, Map<String, String>>detailMap = new HashMap<String, Map<String,String>>();\n//\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\tResources res = activity.getResources();... | [
"0.6262936",
"0.6210749",
"0.61287177",
"0.5997292",
"0.5874975",
"0.5820737",
"0.5810789",
"0.56053007",
"0.5602582",
"0.5596896",
"0.55767363",
"0.5559409",
"0.5543626",
"0.5506673",
"0.5419485",
"0.5419022",
"0.5416318",
"0.5412765",
"0.5393318",
"0.53917384",
"0.5386715",... | 0.48141998 | 78 |
/ This method verifies that errors are thrown when a duplicate user with the same username and email are entered as the exising one. | @Test(priority = 2)
public void invalidUserTest()
{
AdminDashboardPage adminPage=new AdminDashboardPage(driver);
adminPage.clickUsersTab();
UsersListViewPage ulPage=new UsersListViewPage(driver);
ulPage.clickNewUser();
CreateNewUserPage crUserPage=new CreateNewUserPage(driver);
crUserPage.en... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isUserAlreadyExist(String email) throws UserException {\n User user;\n\n if (email == null || email.equals(\"\")) {\n logger.error(\"invalid user id: \" + email);\n return false;\n }\n try {\n user = userDAO.getUserById(emai... | [
"0.67480505",
"0.66824865",
"0.667976",
"0.66797054",
"0.6642833",
"0.650214",
"0.6501113",
"0.64924073",
"0.64705944",
"0.64327335",
"0.64008766",
"0.6388087",
"0.63700736",
"0.63604283",
"0.63440883",
"0.6300176",
"0.6270565",
"0.6260163",
"0.62071353",
"0.61729974",
"0.617... | 0.677971 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.