query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
ERROR_REGION_MONITORING_DENIED (int) static error constant (iOS 4.0+ only) Platforms: android iphone ipad, Since: 0.1
public static native int ERROR_REGION_MONITORING_DENIED() /*-{ return Titanium.Geolocation.ERROR_REGION_MONITORING_DENIED; }-*/;
[ "@Override\n public void onCellularAvailible() {\n }", "@android.webkit.JavascriptInterface\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void getDeviceStatus(java.lang.String r5) {\n /*\n // Method dump skipped, instructions count: 107\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'Summary' field has been set.
public boolean hasSummary() { return fieldSetFlags()[14]; }
[ "@java.lang.Override\n public boolean hasSummary() {\n return summary_ != null;\n }", "public boolean isNeedSummary() {\n return needSummary;\n }", "@java.lang.Override\n public boolean hasMetricSummary() {\n return metricSummary_ != null;\n }", "public boolean isShowSummary() {\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "T__22" $ANTLR start "T__23"
public final void mT__23() throws RecognitionException { try { int _type = T__23; int _channel = DEFAULT_TOKEN_CHANNEL; // ../de.nie.fin/src-gen/de/nie/fin/parser/antlr/internal/InternalFin.g:20:7: ( 'Bemerkung' ) // ../de.nie.fin/src-gen/de/nie/fin/parser/an...
[ "static final public void TypeId() throws ParseException {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case IDENTIFIER:\n jj_consume_token(IDENTIFIER);\n break;\n case INTEGER:\n jj_consume_token(INTEGER);\n break;\n case STRING:\n jj_consume_token(STRING);\n break;\n de...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the key to be used if this component is wired to a map of references.
public void setKey(String key) { this.key = key; }
[ "public void setKey(java.lang.String key)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEY$2, 0);\r\n if (targ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds multiple selected files
public void showFileChooserAndAddFiles() { showFileChooserAndAddFiles(false); }
[ "private void addFiles() {\n JFileChooser dialog = new JFileChooser();\n dialog.setMultiSelectionEnabled(true);\n dialog.addChoosableFileFilter(new FileNameExtensionFilter(\"ANTLRv4\", \"g4\", \"g\"));\n dialog.showOpenDialog(frame);\n\n // Add selected files\n files.addAll...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use map of double int
public Field[] getFieldsFromRegion() { Class regionClass = Region.class; return regionClass.getFields(); }
[ "public static void mapZeroesToIntDoubleMap(Map<Integer, Double> map) {\n for (int i = 0; i < 13; i++) {\n map.put(i, 0.0);\n }\n }", "void put( final int _key, final double _value );", "default void putAll(Long2DoubleMap map) {\n for (Long2DoubleMap.Entry e: Long2DoubleMaps.f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Buat Uri dari intent string. Gunakan hasilnya untuk membuat Intent.
@Override public void onClick(View v) { gmmIntentUri1[0] = Uri.parse("google.navigation:q=" + serabi); // Buat Uri dari intent gmmIntentUri. Set action => ACTION_VIEW mapIntent1[0] = new Intent(Intent.ACTION_VIEW, gmmIntentUri1[0]); // Set pa...
[ "public void m29209a(String str, Intent intent) {\n try {\n Intent intent2 = new Intent(\"android.intent.action.VIEW\", Uri.parse(str));\n intent2.setFlags(268435456);\n m29216e(intent);\n startActivity(intent2);\n } catch (Throwable th) {\n C6864...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests InvalidDateException for a nonexistent dates between 1900 and 2020.
@Test(expected = InvalidDateException.class) public void testInvalidDate() throws InvalidDateException, InvalidUserInputException { String userDatePairInput = "30 06 1982, 01 02 2021"; dateDiffReporterTester = new DateDiffReporter(userDatePairInput, customDateProcessor); assertEquals(dateDif...
[ "@Test\n\t@DisplayName(\"16: Test pass when 1500-2-31 has IllegalArgumentException\")\n\t void test16(){\n\t Assertions.assertThrows(IllegalArgumentException.class, () -> new Date(1500,2,31));\n\t \n\t }", "public void testIsValidDate() {\n\t\tassertFalse(\"Invalid Date!\\n\", Main2.isValidDate(\"sushi\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO / ======================================== MOD START // =====================================
public ItemStack getEntityItem() { return (ItemStack) this.getDataManager().get(ITEM); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n protected void start() {\n\n }", "@Override\n }", "@Override\r\n\tpublic void limpar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void start() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n \tpublic void init() {\n \n \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create the initial menu panel with all its elements.
private void prepareInitialElements() { background = new Background(); background.setBackground(new ImageIcon(getClass().getResource("/Resources/Icon/background.jpg"))); background.setBounds (0,0,745,750); logo = new Background(); logo.setBackground(new ImageIcon(getClass().getResource("/Resources/Icon/Icon...
[ "private void setupMenu() {\r\n layout_.gridwidth = 2;\r\n layout_.gridheight = 1;\r\n layout_.weightx = 1;\r\n layout_.weighty = 1;\r\n layout_.gridx = 1;\r\n layout_.gridy = 0;\r\n layout_.anchor = GridBagConstraints.PAGE_START;\r\n layout_.insets = MENU_PADDING_;\r\n this.add(menu_, la...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates the instance with required initial setups.
protected PluginManager() { this.pluginData = new HashMap<>(); this.listeners = new CopyOnWriteArraySet<>(); // create the class loader which will hold the exported and required class definitions and therefore be // responsible for their creation this.commonClassLoader ...
[ "private Initializer() {\n suiteConfig = new Configuration();\n runner = new VisualGridRunner(6);\n eyes = new Eyes(runner);\n }", "public final void initialize() {\n\t\tcreate(beanManager.createCreationalContext(this));\n\t}", "public Initiation()\n {\n \n }", "private vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method help to take screen shot if any Scenario is failed.
public void ScreenShotOfFailedScenario(Scenario scn) { if (scn.isFailed()) { TakesScreenshot screenShot = (TakesScreenshot) driver; byte[] data = screenShot.getScreenshotAs(OutputType.BYTES); scn.attach(data, "image/png", "failed step name ::> " + scn.getName()); logger.info("Test case isn't passed, scr...
[ "@After\n public void after_scenario(Scenario scenario) throws Exception {\n try {\n String TCNum = scenario.getName().substring(scenario.getName().length()-8);\n if(scenario.getName().equalsIgnoreCase(\" \")){\n\n }\n if(scenario.getStatus().equalsIgnoreCase(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update some fields of the table
public void updatePartitive(PartitiveFields fields, @Param("id") K id);
[ "void updateFields();", "public void update(){\n updateFields();\n }", "@Override\n\tpublic void update(Alumno t) {\n\t}", "public void update() {\n try {\n String sql = \"update projects set projectName=?, projectNumber=?, partNumber=?, ROS=?, ROCE=?, volumes=?, DDCost=?, prototypeCost...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.dstore.values.IntegerValue language_id = 2;
public Builder clearLanguageId() { if (languageIdBuilder_ == null) { languageId_ = null; onChanged(); } else { languageId_ = null; languageIdBuilder_ = null; } return this; }
[ "public void setM_WarehouseTo_ID (int M_WarehouseTo_ID)\n{\nset_Value (\"M_WarehouseTo_ID\", new Integer(M_WarehouseTo_ID));\n}", "io.dstore.values.StringValue getOrderContentNo();", "public void setAD_Workbench_ID (int AD_Workbench_ID)\n{\nset_ValueNoCheck (\"AD_Workbench_ID\", new Integer(AD_Workbench_ID));\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
[ "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}", "protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse respo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get one productDetails by id.
@Override @Transactional(readOnly = true) public Optional<ProductDetails> findOne(Long id) { log.debug("Request to get ProductDetails : {}", id); return productDetailsRepository.findById(id); }
[ "@Override\n\tpublic Product getProductById(String id) {\n\t\treturn productDao.getProductById(id) ;\n\t}", "public Product get(long id);", "public Product getProductById(int id){\n\t\t return repository.findById(id).orElse(null);\n\t }", "@Override\n\tpublic ProductService getProductById(int id) {\n\t\tOptio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Jacob on 10/06/16.
public interface ISongAPI { @GET(Constants.CLASSIC_URL) Observable<Results> getClassicSongs(); @GET(Constants.POP_URL) Observable<Results> getPopSongs(); @GET(Constants.ROCK_URL) Observable<Results> getRockSongs(); }
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "protected void mo4791d() {\n }", "@Override\n \tpublic void init...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
abstract update method for the Sprite Class, to be handled differently by subclasses. Creates the Image and set the position of the Sprite based on the given image source and position.
public abstract void update(Input input, int delta);
[ "abstract void setUpSprite();", "public void updateSprite() {\r\n\t\tthis.controller.updateSprite();\r\n\t}", "public void update() {\n position.update();\n sprite.update();\n }", "@Override\n public void createSprite() {\n \n }", "@Override\n\tpublic void updateImage() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the circular deque is empty or not.
public boolean isEmpty() { return currSize == 0 ? true : false; }
[ "public boolean empty() {\n\t\treturn deque.size() == 0;\n\t}", "public boolean empty() {\n return inDeque.isEmpty() && outDeque.isEmpty();\n }", "public boolean isEmpty() {\r\n return (front == null);\r\n }", "public boolean isEmpty() {\n return this.front == null;\n }", "public boo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overrides serialization for xrefs and annotations (inner classes not serializable)
private void writeObject(ObjectOutputStream oos) throws IOException { // default serialization oos.defaultWriteObject(); // write the methods oos.writeObject(getDbDetectionMethods()); }
[ "public /*override*/ boolean CanSerializeToString() { return false; }", "@Override\n public boolean objectSerialiserOnly() {\n return true;\n }", "@Override\n\tpublic void serialize(ObjectOutputStream ois) throws IOException {\n\t}", "@Override\n\tprotected String onSerial...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transferable / What actions transfer works with
@Override public int getSourceActions(JComponent component) { return COPY_OR_MOVE; }
[ "public void transfer(){\n }", "void transfer(S source, T target);", "public interface IAction {\r\n // get the ActionType of this actions\r\n ActionType getActionType();\r\n\r\n // get the worker string of the relevant worker in this action\r\n String getWorker();\r\n\r\n // get the Direction ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public String getShipAt(Coordinate fireCoordinate) { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
OpenSearch type host groups of the cluster. repeated .yandex.cloud.mdb.opensearch.v1.OpenSearchCreateSpec.NodeGroup node_groups = 2;
public Builder addAllNodeGroups( java.lang.Iterable<? extends yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup> values) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(...
[ "public SearchGroup createSearchGroup();", "@Public\n @Stable\n public abstract int getNumClusterNodes();", "@Override\r\n protected Node[] createNodes(String key) {\r\n InstanceProperties ip = InstanceProperties.getInstanceProperties(key);\r\n Project serverSuite = SuiteManager.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Will return MULTIPLE "Elements"
public List <WebElement> getElements(By locator) { List <WebElement> elementList = driver.findElements(locator); return elementList; }
[ "List<T> getElements();", "public List<Element> getAllIndependentElements();", "public Elements getAllElements() {try{__CLR4_2_11rn1rnjpaexqg3.R.inc(2651);\n __CLR4_2_11rn1rnjpaexqg3.R.inc(2652);return Collector.collect(new Evaluator.AllElements(), this);\n }finally{__CLR4_2_11rn1rnjpaexqg3.R.flushNee...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
========================== Helper so Jobs can link to JobPoll
public static String link(Key key) { return "/Jobs/"+key; }
[ "String getJobUrl();", "String getJob();", "Object getOtherjob();", "public interface JobTask extends Job {\n public void work();\n public String getName();\n public String getCronExpression();\n}", "@When(\"^click build job link$\")\n public void click_build_job_link() throws Throwable {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the match screen
public void printMatch(String setup, String timer, List<String> players, String turnState) { String thisplayer = deparser.findPlayer(setup); deparser.setMyplayer(thisplayer); out.print(ansi().eraseScreen(Erase.ALL)); out.print(ansi().saveCursorPosition()); this.printMatchOt...
[ "public void printMatches() {\n\t\tmatches.forEach(match -> System.out.println(match.getMatchCode()));\n\t}", "public void printMatch(){\n\t\tSystem.out.println(\"\\t\" + person + \" : \" + option);\n\t}", "public void printResults(){\n System.out.println(\"Matches are: \");\n for (Map.Entry match...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ts_user.update_time
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
[ "private void setLastUpdateTime(long updateTime) {\r\n\t\tthis.lastUpdateTime = updateTime;\r\n\t\tuserView.setLastUpdateTime(this.lastUpdateTime);\r\n\t}", "public void setLastUpdated(long time);", "@Override\n\tpublic int userUpdateTokenTime(UserBeans userBeans) {\n\t\t\n\t\tint n=1;\n\t\t\n\t\tString sql=\"u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the last element with the specified name in the subtree of which this element is the root. The notion of last element relates to a depthfirst search in the tree.
@Override public OptionElement findLastWithName(final String name) { final List<OptionElement> list = findAllWithName(name); return list.isEmpty() ? null : list.get(list.size() - 1); }
[ "private SubTask findLastTaskInGroup(String name) {\n SubTask last = null;\n for (Day day : days) {\n for (SubTask subTask : day.getSubTasks()) {\n if (subTask.getParentName().equals(name)) {\n if (last == null)\n last = subTask;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO this method seems to be tied to some semantics, if we modified it, things become slow and maybe wrong we must make sure that this is not the case
@Override public String toString() { return name; }
[ "@Override\n public void extornar() {\n \n }", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "protected void method_5557() {}", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "protected void mo4791d() {\n }", "private static void EX5...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the cmdOutput of Locally New files to the mercurial Repository Their status will change to added and they will be added on the next mercurial hg add.
public static void doAdd(File repository, List<File> addFiles, OutputLogger logger) throws HgException { if (repository == null) return; if (addFiles.isEmpty()) return; List<String> basicCommand = new ArrayList<String>(); basicCommand.add(getHgCommand()); basicCommand.add(HG_ADD...
[ "private void outputCommandFile() {\n try {\n FileWriter writer = new FileWriter(\"outputCommandFile.txt\", true);\n writer.append(results);\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(MenuInterface.class.getName()).log(Level.SEVERE, nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void addOntology(String iri, String name, String namespaceIRI, String namespaceURI, String label, String created, String modified, String title, String comment, String versionInfo, String imports) { name = iri + name; Resource resource = getModel().createResource(assignIRI(name)); Resource classRes...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String getType(Uri uri) { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Obj Type' attribute. If the meaning of the 'Obj Type' attribute isn't clear, there really should be more of a description here...
Integer getObjType();
[ "public java.lang.String getObjecttype() {\n java.lang.Object ref = objecttype_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of DefaultReviewPaymentCalculator.
public DefaultReviewPaymentCalculator() { // Empty }
[ "public static Evaluator create() {\n return new RpnEvaluator(\n LexerFactory.initLexer(),\n OperatorsSupportFactory.instantiate()\n );\n }", "private synchronized static void createInstance(){\n //Por si no hay una calculadora, se crea una nueva\n if (calculator == null){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//GENEND:initComponents Resizes a BufferedImage to a new specified width and height.
public static BufferedImage resize(BufferedImage img, int newW, int newH) { Image tmp = img.getScaledInstance(newW, newH, Image.SCALE_SMOOTH); BufferedImage dimg = new BufferedImage(newW, newH, BufferedImage.TYPE_INT_ARGB); Graphics2D g2d = dimg.createGraphics(); g2d.drawImage(tmp, 0, 0...
[ "IImage downscale(int newHeight, int newWidth);", "private BufferedImage resizeImage(BufferedImage originalImage, int width, int height, int type) throws IOException {\r\n BufferedImage resizedImage = new BufferedImage(width, height, type);\r\n Graphics2D g = resizedImage.createGraphics();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default constructor with default values for orientation angles and altitude
public CovidRecord(float risk, float certainty, GeoPoint location, Timestamp timestamp) { this.risk = risk; this.certainty = certainty; this.location = location; this.timestamp = timestamp; this.orientationAngles = new float[3]; this.orientationAngles[0] = 0.0f; t...
[ "public Orientation(){\n super();\n angle = new Angle();\n \n }", "public Horizon(double alt, double azim)\n/* */ {\n/* 1625 */ this.altitude = alt;\n/* 1626 */ this.azimuth = azim;\n/* */ }", "public AntiBullyingSensor() {\n\t\tthis(0, 3);\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the membershipId value for this User.
public void setMembershipId(long membershipId) { this.membershipId = membershipId; }
[ "void updateMembershipId(String username, int membershipId) throws DaoException;", "void setMembership(Membership membership) {\n this.membership = membership;\n }", "public void setMembershipIds(String[] membershipsIds1) {\r\n this.membershipIds = membershipsIds1;\r\n }", "public void setMember...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public ArrayList<Sucursal> listaSucursal() throws Exception{ ArrayList<Sucursal>sucursales = new ArrayList<Sucursal>(); Sucursal sucursal = null; Connection con = null; PreparedStatement ps = null; ResultSet rs = null; String consulta = "select codigo_suc, descripcion_suc from sucursal"; ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Passing the focus request to the viewer's control.
public void setFocus() { viewer.getControl().setFocus(); }
[ "public void setFocus() {\r\n // viewer.getControl().setFocus();\r\n }", "@Override\n public void setFocus() {\n _viewer.getControl().setFocus();\n }", "public void setFocus() {\n//\t\t viewer.getControl().setFocus();\n\t}", "public void setFocus()\n\t{\n\t\tviewer.getControl().setFocus();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CRC32c checksum. For more information about using the CRC32c checksum, see [ and ETags: Best Practices]. string crc32c = 11;
com.google.protobuf.ByteString getCrc32CBytes();
[ "@java.lang.Override\n public com.google.protobuf.ByteString getCrc32CBytes() {\n java.lang.Object ref = crc32C_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n crc32C_ = b;\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ RULE STATEMENT rule := RULE stringId (EXTENDS stringId)? annotation attributes? lhs? rhs END
public RuleDescr rule(PackageDescrBuilder pkg) throws RecognitionException { RuleDescrBuilder rule = null; try { rule = helper.start(pkg, RuleDescrBuilder.class, null); // 'rule' match(input, DRL6Lexer.ID, ...
[ "CompositeRule<A, B> withId(String id);", "Rule label(String label);", "public interface Rule {\n\n}", "public final void mRULE_ATTRIBUTE_ID() throws RecognitionException {\n try {\n int _type = RULE_ATTRIBUTE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.inte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method as this will called twice. once for predicting cost, once for actual selecting tests
@Override CodeCoverage createCoverage(Program p){ CodeCoverageAnalyzer cca = CodeCoverageAnalyzerFactory.create(af,testapp,p,testSuite); CodeCoverage srcTraces = cca.createCodeCoverage(EntityType.SOURCE); return srcTraces; }
[ "public static void main(String[] args) {\n double[][] training = new double[75][4]; // training data\n double[][] target = new double[75][3]; // target value \n double[][] test = new double[75][4]; // testing data\n \n // 순수 입력 ****************************************************...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an URL for the provided path or return null if no such URL can be found.
public abstract URL getURL(P path) throws NullPointerException, IOException;
[ "public URL getUrl(String path) {\r\n try {\r\n if (HTTPS_SCHEME.equals(getScheme()) && httpsHandler != null) {\r\n // This branch is not currently covered by unit tests as I\r\n // could not figure out a generic way to get the default\r\n // HTTPS hand...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public getter Unique Folder ID of parent folder. If no ParentFolderID is submitted, Folder is added to root level.
public Long getParentFolderID() { return this.parentFolderID; }
[ "public String getParentId() {\n return mBodyMap.containsKey(BoxFolder.FIELD_PARENT) ? (String) mBodyMap.get(BoxFolder.FIELD_ID) : null;\n }", "public static String getParentFolder() {\n return PARENT_FOLDER;\n }", "public String getParentPath() {\n\t\treturn folderPath;\n\t}", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of sample method, of class RandomizedQueue.
@Test public void RandomCals() { System.out.println("50 random calls"); Random r = new Random(); RandomizedQueue instance = new RandomizedQueue(); for (int i = 0; i < 10000; i++) { double val = r.nextGaussian(); Object expResult = val; ...
[ "public Item sample(){\n if (size == 0){\n throw new NoSuchElementException(\"can get sample from empty queue\");\n }\n int random = StdRandom.uniform(size);\n return queue[start+random];\n }", "public Item sample() {\n return queue.q[StdRandom.uniform(queue.head, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the vmware property: Infra network profile for VMware platform.
public VirtualNetworksPropertiesInfraVnetProfileVmware vmware() { return this.vmware; }
[ "public abstract VirtualMachineScaleSetNetworkProfile networkProfile();", "public java.lang.String getSoftSwitchProfile() {\n return softSwitchProfile;\n }", "DeploymentProfile getProfile();", "public String getIpNetToMediaPhysAddress(){\r\n\t\treturn ipNetToMediaPhysAddress;\r\n\t}", "public Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Indicates whether return null value when the mob file is missing or corrupt. The information is set in the attribute "empty.value.on.mobcell.miss" of scan.
public static boolean isReadEmptyValueOnMobCellMiss(Scan scan) { byte[] readEmptyValueOnMobCellMiss = scan.getAttribute(MobConstants.EMPTY_VALUE_ON_MOBCELL_MISS); try { return readEmptyValueOnMobCellMiss != null && Bytes.toBoolean(readEmptyValueOnMobCellMiss); } catch (IllegalArgumentException e...
[ "public boolean getInformationNull() {\n return informationNull_;\n }", "boolean getInformationNull();", "public Boolean getHasMmrImmunisation()\n {\n return StringUtils.isNotEmpty(mmrFilename);\n }", "@Override\r\n\tpublic CardDetails getInvalidMasterCard() {\n\t\treturn null;\r\n\t}", "privat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { lblCuenta = new javax.swing.JLabel(); lblNumeroCuentaD = new javax.swing.JLabel(); lblSaldoA = new javax.swing.JLabel(); lblSa...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the radius options to be distance based.
public GeoRadiusOptions setWithDist(boolean bool) { this.withdist = bool; return this; }
[ "void setRadius(float radius);", "public void set(double r)\r\n { \r\n radius = r;\r\n }", "public synchronized void setRadius(double radius) {\n // convert to meters\n this.radius = capRadius(radius) * KILOMETER_TO_METER;\n if (this.hasListeners()) {\n this.setupQueri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated string show_name_regexes = 11;
int getShowNameRegexesCount();
[ "public interface Regular {\n String namePattern=\"[A-Z][a-z]{2,}\";\n String namePatternUA = \"^[А-ЩЬЮЯҐІЇЄ][а-щьюяґіїє']{2,20}$\";\n String surnamePattern=\"[A-Z][a-z]{2,}\";\n String surnamePatternUA = \"^[А-ЩЬЮЯҐІЇЄ][а-щьюяґіїє']{2,20}$\";\n String loginPattern=\"^[A-Za-z0-9_-]{3,16}$\";\n Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses a version from a given string
public static Version parse(String text) { Version version = new Version(); String[] tokens = text.trim().split("\\-|\\+"); String[] numbers = tokens[0].split("\\."); if (numbers.length > 0) version.major = integer(numbers[0], 0); if (numbers.length > 1) version.minor = integer(numbers[1], 0); ...
[ "public static Version parseVersion(String s, String groupId, String artifactId)\n/* */ {\n/* 145 */ if ((s != null) && ((s = s.trim()).length() > 0)) {\n/* 146 */ String[] parts = V_SEP.split(s);\n/* 147 */ return new Version(parseVersionPart(parts[0]), parts.length > 1 ? parseVersionPart(par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
1 for pass, 0 for blocked, 1 for dead
@Override public int didPassCollision(Organism org) { if(getName()==org.getName()) { //System.out.println("collision with same specie on pos" + org.getPos().getX() +", "+org.getPos().getY()); attemtReproduct(); return 0; } else if(org.getStrengh()<getStrengh()) { //org.died("killed by...
[ "Boolean checkBlocked();", "boolean hasBlocked();", "public boolean canBlock(){\r\n return true;\r\n }", "boolean passes();", "public int getBlocked() {\n return blocked;\n }", "public int inDeadband()\n {\n return mLoopsSatisfied;\n }", "@Override\n public void run()\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when a figure changes its location.
public void moved( int sr, int sc, int dr, int dc, Figure figure );
[ "public void moveFigure (int figureId, int destination);", "public void newFigure()\r\n\t{\r\n\t\tfPosition.x = 4;\r\n\t\tfPosition.y = 0;\r\n\t\tfShape = nextFigure;\r\n\t\tnextFigure = randFigure();\r\n\t}", "public void onLocationChanged(Location location) {\n drawMarker(location);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method used to get API from governance artifact specific to copyAPI
public static API getAPI(GovernanceArtifact artifact, Registry registry, APIIdentifier oldId, String oldContext) throws APIManagementException { API api; try { String providerName = artifact.getAttribute(APIConstants.API_OVERVIEW_PROVIDER); String apiName = artifact....
[ "ForgeGradleAPI getAPI(Project project);", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/{id}/copy\")\n IRAnalysisDTO copy(@PathParam(\"id\") final int id);", "Map<String, ICpComponent> getApis();", "protect buildAPIClient();", "@Test\n public void getSpecificBuyingAreasTest() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Tests memOnly mode with a home dir that does not exist. [15255]
@Test public void testMemOnly() throws Throwable { EnvironmentConfig envConfig = TestUtils.initEnvConfig(); envConfig.setAllowCreate(true); envConfig.setTransactional(true); envConfig.setConfigParam (EnvironmentParams.LOG_MEMORY_ONLY.getName(), "true"); ...
[ "private static boolean m4067i() {\n StringBuilder sb = new StringBuilder();\n sb.append(Environment.getExternalStorageDirectory().toString());\n sb.append(File.separatorChar);\n sb.append(\"windows\");\n sb.append(File.separatorChar);\n sb.append(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column public.crd_executed.judges
public void setJudges(String judges) { this.judges = judges == null ? null : judges.trim(); }
[ "private void setDeferredJobStatsReported(DeferredJobStatsReported value) {\n if (value != null) {\n this.pushed_ = value;\n this.pushedCase_ = 85;\n return;\n }\n throw new NullPointerException();\n }", "public static void updat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FIXME Task 7: Implement a basic playable Focus Game in JavaFX that only allows pieces to be placed in valid places
private void makePieces() { pieces.getChildren().clear(); int i =0; for (char m = 'a'; m < 'k'; m++) { PieceView d = new PieceView(this, m,true); pieces.getChildren().add(d); PS[i] = d; i = i + 1; } }
[ "private void makePieces() {\n warning.getChildren().clear();\n warningO.getChildren().clear();\n pieces.getChildren().clear();\n for (char p = 'A'; p < 'M'; p++) {\n pieces.getChildren().add(new DraggableFXPiece(p));\n checkMove();\n }\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When Necklaces category is clicked, this segment is executed
public void showNecklacesActivity(View v) { Intent NecklacesIntent= new Intent(this, ListActivity.class); NecklacesIntent.putExtra("Objects", aNecklaces); NecklacesIntent.putExtra("Title", "Necklaces"); startActivity(NecklacesIntent); }
[ "public void click_on_category () {\n\t\t\ttype(\"pantalon\",buscar);\n\t\t\tVisit(\"https://www.levi.com.ar/e-shop/hombres/categorias.html\");\n\t\t\tclick(Camisas);\n\t\t\tclick(Pantalones);\n\t\t\t\n\n\t\t}", "void catOnClick(String subCatName);", "void onCategoryItemClicked(CategoriaSecondaria cat, int posi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table historico
public HistoricoExample() { oredCriteria = new ArrayList<Criteria>(); }
[ "public ArrayList<Historial> GetAllOcupados(){\n \n Connection con;\n PreparedStatement p;\n ArrayList<Historial> historias = new ArrayList<>();\n ResultSet rs;\n \n try{\n con = DBUtils.getConnection();\n\n p = con.prepareStatement(\"select * f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
INTERFACE METHODS Formatable methods
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { super.readExternal(in); changedColumnIds = ArrayUtil.readIntArray(in); storagePositionIds = ArrayUtil.readIntArray(in); positionedUpdate = in.readBoolean(); numColumns = in.readInt(); }
[ "public void lowLevelFormat(){\n\n\t }", "public abstract String getFormatDescription();", "public interface Formatter {\n String format(String msg);\n}", "public String format(Object obj) throws FormattingException;", "public interface FormatterInterface {\n /**\n * Formatuje radku logu, vklada s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns beverage cost pre: none post: beverage cost is returned
public void setCost(double c) { cost = c; }
[ "public double calcCost()\n {\n return (getShares() * (getPurchPrc() - divAmount)); \n }", "@Override\r\n\tpublic double getCost() {\n\t\treturn tempPizza.getCost();\r\n\t}", "public double calculateCost()\r\n {\r\n return price;\r\n }", "Double getTotalCost();", "public BigDecimal getCost();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
no authorization rules to check
@Override public void checkCanResendInvitationMessage() { }
[ "@Override\r\n\tpublic boolean checkAuthorization(HttpServletRequest request) {\n\t\treturn true;\r\n\t}", "@java.lang.Override\n public boolean hasNoAuth() {\n return securityCase_ == 2;\n }", "public abstract boolean canExplicitDeny();", "@Override\n public boolean checkAccess(User user...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
we do not really use this for walls
public void respawn() { x = Math.random() * 924; y = Math.random() * 668; }
[ "private void wall() {\n \t\tfor (int i = 0; i <= 8; i++) {\n \t\t\tfor (int j = 0; j <= 8;j++) {\n \t\t\t\tBoard settingClone = new BoardImpl((BoardImpl)setting);\n \t\t\t\tPlayer moverClone = new PlayerImpl(currentTurn);\n \t\t\t\tPlaceWallImpl vTentative = new PlaceWallImpl(i, j, Wall.VERTICAL, moverClone, setti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
transform the 4 vector by the matrixed formed by the 5 and 12 vectors as columns
public void transform_4_by_5_12() { final double t = x_5 * x_4 + x_12 * y_4; y_4 = y_5 * x_4 + y_12 * y_4; x_4 = t; }
[ "void transform(double v[][], int tv[][], int np) {\n // np can be different from v.length\n for (int i = 0; i < np; i++) {\n double x = v[i][0], y = v[i][1], z = v[i][2];\n tv[i][0] = (int) (xx * x + xy * y + xz * z + xo);\n tv[i][1] = (int) (yx * x + yy * y + yz * z ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves an Interac Terminal refund object by ID. Terminal refund objects are available for 30 days.
public GetTerminalRefundResponse getTerminalRefund( final String terminalRefundId) throws ApiException, IOException { return prepareGetTerminalRefundRequest(terminalRefundId).execute(); }
[ "@Override\n\tpublic void getRefund(int receiptId) {\n\t\t\n\t}", "@VisibleForTesting\n public abstract Transaction getRefundTransaction();", "public Long getRefundOpId() {\n return refundOpId;\n }", "public TransactionRefundResponse refundTransaction(TransactionRefundRequest request) throws Exce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method returns the chosen auxiliary deposit
public AuxiliaryDeposit getAuxiliaryDeposit(int positionIndex){ if(positionIndex >= 0 && positionIndex <= auxiliaryDeposits.size() - 1) return auxiliaryDeposits.get(positionIndex); return null; }
[ "public double deposit(double deposit){\n\t\n\t\treturn super.deposit(deposit);\n\t}", "org.jgn.api.proto.ApiProto.Deposit getDeposit();", "double deposit() {\n\t\treturn balance += 3000;\n\t}", "public int deposit(int amount);", "public double depositJoint (double deposit) {\n\t\tif (deposit < 0) {\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void keyReleased(int key, char c) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TIAssignment__Group__0" $ANTLR start "rule__TIAssignment__Group__0__Impl" InternalBSQLLog2Java.g:5007:1: rule__TIAssignment__Group__0__Impl : ( ( rule__TIAssignment__Instance_nameAssignment_0 ) ) ;
public final void rule__TIAssignment__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQLLog2Java.g:5011:1: ( ( ( rule__TIAssignment__Instance_nameAssignment_0 ) ) ) // InternalBSQLLog2Java.g:5012:1: ( ( rule__TIAssig...
[ "public final void ruleTIAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2SQL.g:366:2: ( ( ( rule__TIAssignment__Group__0 ) ) )\n // InternalBSQL2SQL.g:367:2: ( ( rule__TIAssignment__Group__0 ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the vector's direction (angle in radians) in 2D, ie. in the XY plane. The positive X axis equals 0 degrees / radians, the positive Y axis (toward the South) equals 90 degrees / halfpi radians, the negative X axis (toward the West) equals 180 degrees, pi radians, the negative Y axis (toward the North) equals 270...
public final float heading() { return getAngle(y, x); }
[ "public Vector2 getDirectionVector () {\r\n\t\tVector2 directionVector;\r\n\t\tif (this.getLocalVelocity().y > 0)\r\n\t\t\tdirectionVector = new Vector2(0,1);\r\n\t\telse\r\n\t\t\tdirectionVector = new Vector2(0,-1);\r\n\t\t\t\r\n\t\treturn directionVector.rotate((float) Math.toDegrees(this.body.getAngle()));\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<CardListVO> getAll() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use this to get position in the world and convert it into outside coordinate
public void getWorldToScreenToOut(Vec2 argWorld, Vec2 argScreen) { viewportTransform.getWorldToScreen(argWorld, argScreen); }
[ "@Test\n public void toWorldCoordinatesConvertsOrigin() {\n Bot bot = mockBot();\n Bullet bullet = buildBullet(bot.getGame(), pt(5.0, 7.0));\n assertThat(bullet.toWorldCoordinates(pt(0, 0)), is(closeTo(pt(5.0, 7.0))));\n }", "public Point getDoorOutsidePoint(int DoorRelativePositiontoRo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new preference of locales by copying the provided locales list.
public PreferredLocales(List<Locale> locales) { if (locales == null || locales.isEmpty()) { locales = Collections.singletonList(Locale.ROOT); } this.locales = Collections.unmodifiableList(locales); }
[ "public static void setAvailablePakLocales(String[] locales) {\n assert sAvailableLocales == null;\n sAvailableLocales = locales;\n }", "@Generated\n @CFunction\n public static native CFArrayRef CFBundleCopyPreferredLocalizationsFromArray(CFArrayRef locArray);", "ListBotLocalesResult list...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// for context assist for consecutive keywords, see Absence: 'it' 'is' 'never' 'the' 'case' 'that' p=Proposition 'holds'?;
public AbsenceElements getAbsenceAccess() { return pAbsence; }
[ "public KeyWords keywords() {\r\n return new ScenarioGivenWhenThenAnd();\r\n }", "KEYWORD getKeywords();", "boolean isParagraph() {\n/* 139 */ return (this == P || this == IMPLIED || this == DT || this == H1 || this == H2 || this == H3 || this == H4 || this == H5 || this == H6);\n/* */ }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<Map<String, Object>> getItemService() { return adminDao.selectItemListDb(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
delete a file from temp storage.
public static void removeFromTempArea(String key) { FileManager.deleteTempFile(key); }
[ "private synchronized void deleteTempFile() {\n if (fileInClosed && file != null && file.delete()) {\n file = null;\n }\n }", "private static void deleteFileIfExists(String tempFile)\n\t{\n\t\tFile fileTemp = new File(tempFile);\n\t\tif (fileTemp.exists())\n\t\t{\n\t\t\tfileTemp.delete...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/This function is responsible for calculating score of the dics that User has entered. Calculate the score based on Rules Argument taken(2): Integer that has Rule number in the HashMap as the Array that has User entered values Return a score
public int score(int x, String [] val){ int rulevalue = x; int scorepoint = 0; int multiple =1; int arrayvalue =0; int arrayvalueold=0; int setone =0; int settwo =0; int icount =0; Arrays.sort( val ); /*For loop uses sorted array User values and then * if the consecutive ...
[ "public void calculateScore() {\n\t\t\r\n\t}", "public void computeScore()\n\t{\n\t\tif (unique != null)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tIterator<String> myList = unique.iterator();\n\t\t\tString word = \"\";\n\n\t\t\twhile ( myList.hasNext() ) \n\t\t\t{\n\t\t\t\tword = myList.next().trim();\n\n\t\t\t\tswit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set additional patient attributes
@Override public Patient setPatientFromHL7(Message message, Date encounterDate, Location sendingFacility, HL7PatientHandler hl7PatientHandler, HashMap<String,Object> parameters) // CHICA-1185 Add parameters { Patient hl7Patient = super.setPatientFromHL7(message, encounterDate, sendingFacility, hl7...
[ "public void setPatient(Patient patient) {\r\n \t\tsetPerson(patient);\r\n \t}", "public void setPatient(final Patient patient) { // 1a\n \t\tthis.patient = patient;\n\t}", "public void setPatient(String patient) {\n this.patient = patient;\n }", "public void setPatient(PersonVO patient)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the application settings including 'UseAllTrainingData'.
public Observable<ApplicationSettings> getSettingsAsync(UUID appId) { return getSettingsWithServiceResponseAsync(appId).map(new Func1<ServiceResponse<ApplicationSettings>, ApplicationSettings>() { @Override public ApplicationSettings call(ServiceResponse<ApplicationSettings> response) { ...
[ "public TrainingDataSettings trainingData() {\n return this.trainingData;\n }", "protected final Map<String,Object> getJenaSettings() {\r\n\t\treturn ctx.getJenaSettings();\r\n\t}", "private void getSettings() {\n mChkAutoRefresh.setChecked(GlobalValue.prefs.getBooleanValue(Args.KEY_UI_AUTO_REF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void setCustomerId(int param){ this.localCustomerId=param; }
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_people, container, false); userListView = (ListView) v.findViewById(R.id.people); //groupName = (TextView) v....
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo que da la conexion debido a que esta privada
public Connection getConexion(){ return con;//retornamos objeto de la conexion }
[ "public boolean isSecureConnection();", "public boolean canConnect() {\n\treturn false;\n}", "boolean controllaCredenziali(String nickname, String password);", "private void connexion_admin() {\n System.out.println(\"Tentative de connexion en admin\");\n boolean connexion_admin_reussie = false;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Initialize the unit test variables for each test run. (nonJavadoc)
protected void setUp() throws Exception { super.setUp(); }
[ "@Before\n public void assigningTestInstanceVars() {\n this.toAddresses = new ArrayList<String>();\n this.ccAddresses = new ArrayList<String>();\n this.bccAddresses = new ArrayList<String>();\n this.embAttachments = new ArrayList<File>();\n this.regAttachments = new ArrayList<F...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
METODO PER INSERIRE NUOVI CIBI NEL CORRETTO PASTO DEL DATABASE
public void inserimento(String pietanza, String pasto, Date date){ //tiro fuori le informazioni dalla data int year= date.getYear(); int month= date.getMonth(); int day= date.getDay(); try { //se il pasto non esiste viene lanciata un'eccezione Meal pastoAt...
[ "private void delTables() {\n try {\n if(stmt == null) {\n stmt = con.createStatement(); }\n stmt.executeUpdate(\"DROP DATABASE \" + DB_NAME);\n stmt.executeUpdate(\"CREATE DATABASE \" + DB_NAME);\n stmt.executeQuery(\"USE \" + DB_NAME);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getCity method, of class Person.
@Test public void testGetCity() { String expResult = "Happivale"; String result = validPerson.getCity(); assertEquals(expResult, result); }
[ "@Test\r\n\tpublic void testFindCity() {\r\n\t\tassertTrue(r3.findCity(\"Esti\").getName().equals(\"Esti\"));\r\n\r\n\t\tfor (City c : r3.getCities()) {\r\n\t\t\tassertEquals(r3.findCity(c.getName()), c);\r\n\t\t}\r\n\t}", "@Test\n public void testGetCity() {\n System.out.println(\"getCity\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int64 TackID = 2;
boolean hasTackID();
[ "long getMsgID();", "public int getID() {return TID;}", "public byte getId() {\n/* 82 */ return 9;\n/* */ }", "public abstract String getAckID(String message);", "@Override\r\n\tpublic String getID() {\n\t\treturn \"00001556\";\r\n\t}", "private String assignMessageId() {\n String messag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method return the number of words for a given KeyWord (excepted the keyWord add)
public int getLen() { return -1; }
[ "int getKeywordFrequenciesCount();", "public int wordInDictionary(String word){\n return 0;\n }", "@Override\n public int wordCount() {\n return wordCount;\n }", "public int getTotalWords();", "public static int getDictionarySize() {\n return getWords().size();\n }", "private in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of exist method, of class List.
@Test public void testExist() { List<String> list = new List<>(); list.addToEnd("test1", 1); list.addToEnd("test2", 3); list.addToEnd("test3", 5); for (String current : list) { assertTrue(list.exist(current)); } }
[ "@Override\r\n public void test_list_in_list() {\n }", "public boolean exists(Object elemento) throws ListaException;", "@Override\n public boolean hasData()\n {\n return list.size() > 0;\n }", "boolean hasUserList();", "boolean hasEntityList();", "public boolean exists() {\n\t\treturn t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Internal method to set the number of rows in the table
private void setNumPlaylists(){ //Plus one for now playing if(playlists == null){ setRowCount(1); }else{ setRowCount(playlists.length + 1); } }
[ "@Override\n public int getNumRows() {\n return 10;\n }", "public static void setRows(int data){\n\t\trows = data;\n\t}", "public void setRows(long rows) {\r\n this.rows = rows;\r\n }", "public void setNumRows(int numRows) {\r\n\t\tthis.numRows = numRows;\r\n\t}", "private void update...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the recTime value for this AppVideoForXIAN.
public java.util.Calendar getRecTime() { return recTime; }
[ "public int getTime(){\r\n\t\treturn currentTime;\r\n\t}", "public java.util.Date getAwWatchtime () {\n\t\treturn awWatchtime;\n\t}", "public long getTime() {\n Logger.trace(\"getTime()\");\n \n return libvlc.libvlc_media_player_get_time(mediaPlayerInstance);\n }", "public int getCurrentPlayTime...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test method for
public void testGetWorkSumByMonthForUsers() { Integer[] personIds = {497434}; Integer[] projectIds = {477997}; Date startDate = null; Date endDate = null; try { List list = assignmentDAO.getWorkSumByMonthForUsers(personIds, projectIds, startDate, endDate); ...
[ "private void doTest() {\r\n\r\n\t}", "@Override\n public void test() {\n }", "@Override\n\t\tpublic void testMe() {\n\t\t\t\n\t\t}", "@Test\n\t\tpublic void test()\n\t\t{\n\t\t}", "private void testing() {\n\t}", "public void testSample(){\r\n\r\n\t}", "public void testGetItem() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ //see base class method for details This is used to make sure the name of the edited Location Scheme is unique among its siblings.
public void validate(@SuppressWarnings("unused")FacesContext context, @SuppressWarnings("unused")UIComponent component, Object value) { if (! (value instanceof String)) throw new IllegalArgumentException("value must be instanceof String"); String svalue = (String) value...
[ "private static void editLocations() {\n\t\t\n\t}", "@Override\r\n \tpublic void setLocation(Location newLocation) {\n \t\t\r\n \t}", "protected void makeUseOfNewLocation(Location location) {\n\n\t}", "@Override\r\n\t\t\tprotected void onRelevantLocationChanged(\r\n\t\t\t\t\tLocation newLocation) {\n\t\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the script name for the JS code of the top JS call frame.
public final native String getCallerScriptName() /*-{ return this.callerScriptName || ""; }-*/;
[ "java.lang.String getScriptName();", "public java.lang.String getScriptName() {\n java.lang.Object ref = scriptName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n scriptName_ = s;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add new salary grade
public boolean create(SalaryGrade sg) { try { con = db.getConnection(); pst = con.prepareStatement(SQL_CREATE); pst.setString(1, sg.getGradeName()); pst.setFloat(2, sg.getGradeNum()); if (pst.executeUpdate() == 1) { this.setLastError("C...
[ "public abstract void addGrade(TestGraded g);", "public void addGrade(int grade){\n grades.add(grade);\n }", "public SalaryGrade addEmployeeSalarySheet(RetailscmUserContext userContext, String salaryGradeId, String employeeId, BigDecimal baseSalary, BigDecimal bonus, BigDecimal reward, BigDecimal pers...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an index writer to perform batched write operations
public <T> IndexWriter createWriter( DataAdapter<T> adapter, PrimaryIndex... index ) throws MismatchedIndexToAdapterMapping;
[ "private IndexWriter getIndexWriter( ) throws Exception\n {\n Directory dir = IndexationService.getDirectoryIndex( );\n IndexWriterConfig conf = new IndexWriterConfig( IndexationService.getAnalyser( ) );\n conf.setOpenMode( OpenMode.CREATE );\n return new IndexWriter( dir, conf );\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the image from SQLite DB
public byte[] retreiveImageFromDB() { //Create and/or open a database that will be used for reading and writing. SQLiteDatabase db = this.getWritableDatabase(); Cursor cur = db.query(true, DATABASE_TABLE_TASKS, new String[]{KEY_TASK_IMAGE,}, null, null, null, null, ...
[ "BmImg selectByPrimaryKey(String imgId);", "@Source(\"database.png\")\n\tImageResource database();", "Newsimg selectByPrimaryKey(Integer id);", "private static Image getImage() {\n\t\ttry {\n\t\t\tif (image == null) {\n\t\t\t\timage = new Image(IMAGE_LOC);\n\t\t\t}\n\t\t\treturn image;\n\t\t} catch (SlickExce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to remove the plant
public void removePlant() { this.residingPlant = null; }
[ "@Override\n public void delPlant(final int id) {\n this.plantMap.remove(id);\n }", "public void removePlant(Plant deadPlant) {\n plantsList.remove(deadPlant);\n }", "public void remove() {\n\t\t\r\n\t}", "void removeFromVehicle();", "public void removePet() {\n if (currentPet ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overloaded constructor with depth parameter
public Triangle(Vertex2D a, Vertex2D b, Vertex2D c, int depth){ this(a, b, c); this.divide(depth); }
[ "public ConstructorChaining(int weight) {\n this(weight, 16); // calls constructor with 2 parameters\n }", "public SceneGraphPath()\n {\n this(DEFAULT_DEPTH);\n }", "private Tree(){\r\n }", "TwoThreeTreeClass( TwoThreeTreeClass copied )\n {\n root = copyConstructorHelper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fixed sliding window window m sums to d
static int solve(int n, int[] s, int d, int m){ // Complete this function if(s.length < m) return 0; int ret = 0, sum=0; for(int i=0; i<s.length; i++){ sum += s[i]; if(i >= m) sum -= s[i-m]; if(i >= m-1 && sum == d) ret++; } return ret;...
[ "private int recalcuateSum(int window_size) {\n\t\t\tint local_index = start;\r\n\t\t\tint count = 0;\r\n\t\t\tint local_sum = 0;\r\n\t\t\t\r\n\t\t\twhile(count < window_size) {\r\n\t\t\t\t\r\n\t\t\t\tlocal_sum += past_readings[local_index];\r\n\t\t\t\tlocal_index--;\r\n\t\t\t\tcount++;\r\n\t\t\t\t\r\n\t\t\t\tif (l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns id of wrapped time zone object.
public String getId() { return zoneId.getId(); }
[ "String getTimeZoneID();", "default ZoneId getZoneId() {\n\t\treturn getTimeZone().toZoneId();\n\t}", "TimeZone getTz(String id);", "ZoneId getZone();", "public String getTimezoneID(Integer customerId);", "@Override\n\tpublic java.lang.String getTimeZoneId() {\n\t\treturn _marketingEvent.getTimeZoneId();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
tutaj dodatkowo wykonuje obliczenia do strzalki nawigujacej
public void run() { dblPreviousDistance = dblDistance; Latitude = CHMainMenu.latitude; Longitude = CHMainMenu.longitude; // ustalenie aktualnej lokalizacji szukajacego Location actLocation = new Location(""); actLocation.setLatitude(Latitude); ...
[ "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "public static void testik()\n {\n //Definujeme tri promenne hodnotoveho typu String\n String hodnota_1 = \"Prvni\";\n String hodnota_2 = \"Druhy\";\n //Druha a treti promenna bude odkazovat na stejny objekt\n String hodnot...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }