query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method was generated by MyBatis Generator. This method returns the value of the database column jin_ledger.zongjia
public String getZongjia() { return zongjia; }
[ "public Integer getZhuanjiaid() {\n return zhuanjiaid;\n }", "public String getJianChaBiaoZhun() {\n return jianChaBiaoZhun;\n }", "public void setZongjia(String zongjia) {\n this.zongjia = zongjia;\n }", "public Integer getJiaoshibianhao() {\n return jiaoshibianhao;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The handleRequest method processes the request SOAP message. The default implementation of this method returns true. This indicates that the handler chain should continue processing of the request SOAP message. This method should be overridden if the derived Handler class needs to specialize implementation of this meth...
public boolean handleRequest(MessageContext msgContext) { return true; }
[ "public void handleRequest()\n\t{\n\n\t\tgetSuccessor().handleRequest();\n\t}", "@Override\n public boolean handleRequest(MessageContext messageContext) {\n\n LOG.info(\"\\n\\n:: Custom Logger Handler Invoked :: Handle Request :: \" + System.currentTimeMillis() + \"\\n\\n\");\n return true;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all projections (with the movie ids)
@GetMapping("/projections/movie_ids") public List<Projection> getAllProjections() { return projectionRepository.findAll(); }
[ "public ArrayList<Projection> findProjectionByMovieId(int movieId) {\n\t\t\n\t\tConnection connection = ConnectionManager.getConnection();\n\t\t\n\t\tArrayList<Projection> projections = new ArrayList<Projection>();\n\t\t\t\t\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rset = null;\n\t\t\n\t\ttry {\n\t\t\t\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starts the selector, heartbeat and worker threads.
public void start() { try { heart = new Heart(); int threads = Integer.parseInt(properties.getProperty("threads", "5")); for (int i = 0; i < threads; i++) { Worker worker = new Worker(this, i); workers.add(worker); //System.err.println(worker.index() + "|" + worker.id()); } client ...
[ "public void run() {\r\n logger.info(\"Selector started.\");\r\n \r\n// PerformanceLogger p = PerformanceLogger.getLogger(\"Selector\");\r\n// long start = System.currentTimeMillis();// \r\n// int c = 0;\r\n // run main loop until thread is interrupted\r\n whi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//GENEND:|177getter|2| //GENBEGIN:|179getter|0|179preInit Returns an initiliazed instance of okCommand7 component.
public Command getOkCommand7() { if (okCommand7 == null) {//GEN-END:|179-getter|0|179-preInit // write pre-init user code here okCommand7 = new Command("Ok", Command.OK, 0);//GEN-LINE:|179-getter|1|179-postInit // write post-init user code here }//GEN-BEGIN:|179-getter|2|...
[ "public Command getOkCommand1 () {\nif (okCommand1 == null) {//GEN-END:|50-getter|0|50-preInit\n // write pre-init user code here\nokCommand1 = new Command (\"Ok\", Command.OK, 0);//GEN-LINE:|50-getter|1|50-postInit\n // write post-init user code here\n}//GEN-BEGIN:|50-getter|2|\nreturn okCommand1;\n}", "public C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Print loadingbar prints the loadingbar with ShapeRenderer every 0,5sec the loadingbar progresses 10%, if it reaches 100%, set the screen to MenuScreen
private void showLoadProgress() { long currentTimeStamp = TimeUtils.nanoTime(); if (currentTimeStamp - startTime > TimeUtils.millisToNanos(5)) { startTime = currentTimeStamp; progress = progress + 1; } float progressBarWidth = ((float) TickTackBummGame.WIDTH / 10...
[ "private void splashScreen() {\r\n\t\t// Clear the screen, reset the level, and display the legend\r\n\t\tclear();\r\n\t\tdisplay.setLegend(\"Asteroids\");\r\n\r\n\t\t// Place four asteroids near the corners of the screen.\r\n\t\tplaceAsteroids();\r\n\t}", "@Override\n public void showLoadingBar() {\n l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the halfEmptyMismatch value.
public boolean isHalfEmptyMismatch() { return halfEmptyMismatch; }
[ "public boolean isFullEmptyMismatch() {\n return fullEmptyMismatch;\n }", "public double mismatchTolerance()\n\t{\n\t\treturn _mismatchTolerance;\n\t}", "public Float getUlTbfFail() {\r\n return ulTbfFail;\r\n }", "public /*@pure@*/ static double missingValue() {\n\n return MISSING_VALU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new transaction for the given graph iff transactions are enabled. Otherwise it does nothing.
protected void createTransaction(Graph g) { if (implementationType == ImplementationType.TRANSACTION) { g.newTransaction(); } }
[ "public void createTransaction(Transaction trans);", "Transaction newTransaction(TransactionOptions options);", "public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;", "Transaction newTransaction();", "protected abstract Transaction createAndAdd();", "Datast...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test multicolumn slice restrictions with 2 descending clustering columns (e.g '(clustering_0, clustering_1) > (1, 2)')
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoDescendingClusteringColumns() { CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.DESC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); // (clustering_0, clus...
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoAscendingAndTwoDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBuffer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates the configuration dag from the avro dag. It extracts configurations of vertices from the avro dag and creates a dag that contains the configuration. By doing this, we can decouple the generation logic of execution dag from the avro dag.
DAG<ConfigVertex, MISTEdge> generate(AvroDag avroDag);
[ "@DefaultImplementation(DefaultConfigDagGeneratorImpl.class)\npublic interface ConfigDagGenerator {\n /**\n * Generates the configuration dag from the avro dag.\n * It extracts configurations of vertices from the avro dag and creates a dag that contains the configuration.\n * By doing this, we can decouple t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Post post = new Post(); post.setId(null); post.setAuthorId(null); post.setLikes(new ArrayList()); post.setComments(new ArrayList()); post.setCreatedAt(null); post.setTitle(null); post.setMassage(null); return post;
public static Post getEmptyEntityPost() { Post post = new Post(); post.setId("123"); post.setAuthorId("vin76423"); post.setLike(new Like()); post.setComment(new Comment()); post.setCreatedAt(LocalDateTime.now()); post.setTitle("some_title"); post.setMassa...
[ "public Post() {\n\n }", "public Post() {\n }", "public NewsFeed()\n {\n posts = new ArrayList<Post>();\n }", "public LatestPost() {\n\t}", "public void createPost(Post post);", "public Post() {\n this(new DateTime().toDate(), \"\", null);\n }", "private void createPost() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads the data from the PlayerData to the player.
public void loadPlayer(IPlayerData data) { if(data.getCurrentPlanet() != null) { if(getPlanets().containsKey(data.getCurrentPlanet())) { setCurrentPlanet(getPlanets().get(data.getCurrentPlanet())); } } setCoordX(data.getX()); setCoordY(data.getY()); setBuffs(data.getBuffs()); for(ItemStack itemS...
[ "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "public void loadPlayerData() {\n final UUID uuid = player.getUniqueId();\n if (!(playerExists()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initiate the removal of indexes of the given HarvestResult.
void initiateRemoveIndexes(HarvestResultDTO harvestResult) throws DigitalAssetStoreException;
[ "public abstract void deselectAllIndexes();", "public void resetIndexSearcher() {\n\t if(!generatingIndex) {\n\t \tthis.searcher.reloadIndex(this.idxSelect);\n\t }\n\t}", "void indexReset();", "void clearAllIndexes();", "public void onIndexReset();", "@AfterClass\n public static void cleanUpIndi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor it generates an empty basket with a specific invoice number
public Basket(Inventory inventory){ myBasket = new HashMap<>(); totalCost = 0; isPaid = false; Random randomGenerator = new Random(); invoiceNumber = randomGenerator.nextInt(30000) + 1; this.inventory = inventory; }
[ "public BasketItemBuilder() {\n generateRandomId();\n }", "public Invoice() {\n\t\t//\n\t}", "public PurchaseOrder() {}", "public Basket() throws IOException {\n this.catalog = new Catalog();\n this.offerPackage = new OfferPackage(catalog);\n this.items = new HashMap<>();\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Local interface for GestionEnterprise.
@Local public interface GestionEnterpriseLocal { /** * Perform an initial save of a previously unsaved Enterprise entity. All * subsequent persist actions of this entity should use the #update() * method. * * @param entity * Enterprise entity to persist * @throws RuntimeException * ...
[ "public interface EventListener {\r\n\r\n /**\r\n * Evento chamado quando uma célula é adicionada ao EntityGrid. Deve retornar\r\n * o novo valor a ser exibido na célula ou 'value'.\r\n * @param entityInfo EntityInfo referente à linha da célula que está sendo\r\n * adicionada.\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getParent method, of class Node.
@Test public void testGetParent() { System.out.println("getParent"); Category element = new Category("Name", "10DC"); Node node = new Node(element); assertNull(node.getParent()); Category element1 = new Category("Anotha one", "11DC"); Node child = new Node(element1);...
[ "public TreeNode getParentNode();", "public void testNodeHasParentSet()\n {\n Node node = new Node(1,0);\n Node parent = new Node(0,0);\n node.setParent(parent);\n assertTrue(node.getParent().equals(parent));\n }", "public TestResultTable.TreeNode getParent() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
draw the user's location and search range pin
@Override public void showThePoint(Location location) { LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); moveCameraTo(latLng); int range = SharedPreferencesUtil.getSharedPreferences(this).getInt(ConfigValues.SEARCH_RADIUS, 500); drawPinOntheTargetLocation(...
[ "private void Userlocation()\n\t{\n\t\t//manage panning and zooming of a map.\n\t\tmap_controller = map.getController();\n\t\t//An Overlay for drawing the user's current location (and accuracy) on the map, and/or a compass-rose inset. \n\t\tuser_overlay = new MyLocationOverlay(this, map);\n\t\t//ftiaxnw to overlay ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'bounding_box' field.
public twitter.PlaceDetails.Builder clearBoundingBox() { bounding_box = null; bounding_boxBuilder = null; fieldSetFlags()[7] = false; return this; }
[ "public void clearBBox() { bbox=null; }", "public void removeBounds() {\n setBounds(null);\n }", "public void setBoundingBox(twitter.BoundingBox value) {\n this.bounding_box = value;\n }", "public void clearTileBBox() { tilebbox=null; }", "public void clearOCLocation() {\n\t\tsetOCLocation(\"\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When set, no more than the given number of tags are allowed to add (default: undefined). When maxTags is reached, a class 'bootstraptagsinputmax' is placed on the tagsinput element.
public void setMaxTags(final int maxTags) { options.setMaxTags(maxTags); }
[ "public void setMaxCount(int maxCount) { this.maxCount = maxCount; }", "public void setTagSize(int value)\n\t{\n\t\ttag_size = value;\n\t}", "public void setMaxNumFeatures(int maxNumFeatures);", "public void setMaxElements(int _maxElements) {\n\t\tmaxElements = _maxElements;\n\t}", "public void setMaxStrike...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
It skippes white spaces after evaluation. varsetname ::= ident[["."|","]ident]
protected String varsetname() throws TableFunctionMalformedException { // we don't have to set header's varsetname here because ifStatement (upper caller) would do so. String ret = ""; // a string containing "varsetname" (e.g. "st.sr.z") // scan for the ident do { // scanNoSkip(); // no ...
[ "private void var(){\n \n if(match(\"Identifier\",1)){\n nextToken();\n \n if(match(\"seperator\",2)){\n // identifier , var\n nextToken();\n var();\n }\n \n }\n \n }", "public final PythonParser.with_var_return with_var() throws Recogniti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.receiver_name
public String getReceiverName() { return receiverName; }
[ "public String getReceiver_name() {\n return receiver_name;\n }", "public String getReceiverName() {\r\n return receiverName;\r\n }", "String getReceiverName();", "public String getReceiver() {\n\t\treturn receiver.getUsername();\n\t}", "@Override\n\tpublic java.lang.String getReceiverNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the lifespan of all cached items. Items that exceed this duration will be considered stale and will be removed when newItem or isItemCached methods are called using the same group id and item id of the stale item.
@Override public void setItemDuration(Duration duration) { this.duration = duration; }
[ "abstract void setLifespan();", "@Override\n public void refreshArtists() {\n mCacheInvalid = true;\n }", "public void setLifeTime(int lifeTime) {\n this.lifeTime = lifeTime;\n }", "protected void scheduleExpiry()\n {\n long dtExpiry = 0L;\n int cDelay ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a State instance with the specified name.
State(String name) { this.name = name; }
[ "public DFAState(String name) {\n this.name = name;\n this.hashCode = name.hashCode();\n }", "void create( State state );", "public DFAState(String name) {\r\n this.name = name;\r\n }", "State createState();", "private State(String name, int index) {\r\n \t\t\tthis.index = index;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleIsRoot" $ANTLR start "ruleIsRoot" InternalJSchema.g:237:1: ruleIsRoot : ( ( rule__IsRoot__StringAssignment ) ) ;
public final void ruleIsRoot() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalJSchema.g:241:2: ( ( ( rule__IsRoot__StringAssignment ) ) ) // InternalJSchema.g:242:2: ( ( rule__IsRoot__StringAssignment ) ) { // ...
[ "public final void rule__IsRoot__StringAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:2847:1: ( ( ( 'root' ) ) )\n // InternalJSchema.g:2848:2: ( ( 'root' ) )\n {\n // InternalJS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PrimaryExpr2__Group_1_0__0" $ANTLR start "rule__PrimaryExpr2__Group_1_0__0__Impl" InternalGo.g:12892:1: rule__PrimaryExpr2__Group_1_0__0__Impl : ( ( rule__PrimaryExpr2__SelectorAssignment_1_0_0 ) ) ;
public final void rule__PrimaryExpr2__Group_1_0__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalGo.g:12896:1: ( ( ( rule__PrimaryExpr2__SelectorAssignment_1_0_0 ) ) ) // InternalGo.g:12897:1: ( ( rule__PrimaryExpr2__Se...
[ "public final void rule__PrimaryExpr__Group_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:12695:1: ( rule__PrimaryExpr__Group_0__2__Impl )\r\n // InternalGo.g:12696:2: rule__PrimaryExpr__Group_0__2__I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test truncate operation with near cache.
@Test public void testNearTruncate() { NamedCache cache = getNamedCache("near-client-listener-truncate"); cache.clear(); clearEvents(); cache.put(MapListenerTests.KEY, MapListenerTests.VALUE); assertEquals(cache.get(MapListenerTests.KEY), MapListenerTests.VALUE); ...
[ "public void testTruncate() throws Exception {\n //TODO: Test goes here...\n assert AlgoUtil.truncate(3.1415, 2) == 3.14;\n assert AlgoUtil.truncate(3.9235634, 4) == 3.9235;\n assert AlgoUtil.truncate(3.393939, 5) == 3.39393;\n assert AlgoUtil.truncate(1.0/7.0, 5) == 0.14285;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes Property variables for the given TemplateBuildPlan which handles a NodeTemplate
private void initPropsAsVarsInNode(final Property2VariableMapping map, final BPELScope templatePlan, final AbstractServiceTemplate serviceTemplate) { final AbstractNodeTemplate nodeTemplate = templatePlan.getNodeTemplate(); if (nodeTemplate.getProperties() != nu...
[ "public Property2VariableMapping initializePropertiesAsVariables(final BPELPlan buildPlan,\r\n final AbstractServiceTemplate serviceTemplate) {\r\n return this.initializePropertiesAsVariables(buildPlan, serviceTemplate,\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Is this a coldstarted execution?
public final boolean isColdStarted() { return this.coldstart; }
[ "boolean hasImmediateStartNeeded();", "boolean hasStoplossExecTime();", "public boolean isStarted();", "public boolean checkRunCondition() {\n return getTime() < endTime || runningProcesses > 0;\n }", "public boolean hasStarted() {\n return phase != Phase.IN_LOBBY && phase != Phase.GRACE_PE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column order_company_journal.comp_id
public Long getCompId() { return compId; }
[ "public Long getCompid() {\n return compid;\n }", "public Integer getComp_id() {\n\t\treturn comp_id;\n\t}", "public Integer getCompId() {\n return compId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public abstract Integer getCompt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.appscode.kubernetes.v1beta1.Spec spec = 6;
com.appscode.api.loadbalancer.v1beta1.Spec getSpec();
[ "@Test\n public void podSpecPatchTest() {\n // TODO: test podSpecPatch\n }", "public void setSpec(String spec) {\n this.spec = spec;\n }", "public DeploymentSpec spec(){\n\t\tDeploymentSpec spec=new DeploymentSpec();\n\t\t\n\t\t\n\t\t//FIXME: generate spec from properties ?\n\t\tspec.inst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an instance of tabs context from the top of the stack.
public TabsContext getCurrentContext() { return (TabsContext) getContextsStack().peek(); }
[ "private TabsContext pushContext() {\n return (TabsContext) getContextsStack().push(createContext());\n }", "TabContext currentTab();", "private TabsContext createContext() {\n return new TabsContext();\n }", "public static ThreadContextStack createContextStack() {\n return getInsta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates a news with a title, a link, a description, an article, the rawArticle and the url of an image
public News(String title, String link , String description, String article, String rawArticle, String imageurl) { this.title = title; this.link = link; this.description = description; this.article = article; this.rawArticle = rawArticle; this.imageurl = imageurl; }
[ "@Override\n public String toString() {\n return \"News{\" +\n \"title='\" + title + '\\'' +\n \", link='\" + link + '\\'' +\n \", description='\" + description + '\\'' +\n \", article='\" + article + '\\'' +\n \", imageurl='\" + i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add note to notepad Throw NotepadOverflowException if notepad is static and all notes are filled
public void addNote(Note newNote) throws NotepadOverflowException { for (int i = 0; i < _notes.length; i++) { if (_notes[i] == null) { _notes[i] = newNote; return; } } if (DynamicNotepad) { enlargeNotepad(_notes.length); ...
[ "private void addNote() {\n if (checkNote()) {\n return;\n }\n\n Note note = new Note(noteTitle.getText(), noteBody.getText());\n\n notesToAdd.add(note);\n\n broadcast(\"Note successfully added!\");\n }", "public void addNote(){\n Note note = new Note(this.n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns ECR2: "Date/Time Completed" creates it if necessary
public DTM getEcr2_DateTimeCompleted() { DTM retVal = this.getTypedField(2, 0); return retVal; }
[ "public String getCompletedDateAsString();", "public Date getCompletedDate();", "int getCreatetime();", "public Date getCompleteTime() {\n return completeTime;\n }", "public String getCreateEndTime() {\n return createEndTime;\n }", "int getCreatetimeus();", "public String toString(){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints messages to destination.
private static void actuallyPrint(OutputStream destination, String[] messages) { if (destination == null) { /* no point actually doing anything */ return; } try { String message; for (int i = 0; i < messages.length; i++) { message = messages[i]; if (message != null) { /* null: ignore */ ...
[ "public void printMessages(){\n for(int i =0; i<msgCount;++i){\n System.out.printf(\"%s %s\\n\",messages[i].getRecipient()+\":\",messages[i].getDecodedMessage());\n }\n }", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the setter method. this will set the domainNames This field identifies the subdomains that are hosted on the dns vs. Gslbservice(s) whose fqdns map to one of the subdomains will be hosted on this dns vs. If no subdomains are configured, then the default behavior is to host all the gslbservices on this dns vs. F...
public void setDomainNames(List<String> domainNames) { this.domainNames = domainNames; }
[ "public void setDomains(List<String> domains) {\n\t\tthis.m_domains = domains;\n\t}", "public void setDnsServers(String[] servers);", "public void setDnsServers(String servers[]);", "public void setDomainName(java.lang.String domainName) {\r\n this.domainName = domainName;\r\n }", "@ApiModelProper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs the bends of a mirror edge.
private void updateMirrorEdgeBends(Edge edge, MirrorEdge mirrorEdge) { while (mirrorEdge.bends.size() < originalBends.get(edge).size()) { Node bendNode = mirrorGraph.newNode(); mirrorEdge.bends.add(bendNode); reverseEdgeMap.put(bendNode, edge); } while (mirror...
[ "public Node addMirrorBend(MirrorEdge mirrorEdge, Edge segment) {\n Coordinates bendPosition = Geom.eXD.midPoint(mirrorPositions.get(segment.source()), mirrorPositions.get(segment.target()));\n return addMirrorBend(mirrorEdge, segment, bendPosition);\n }", "public Node addMirrorBend(MirrorEdge mi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Note we saw a packet timeout.
protected void pktTimeout() {}
[ "int getRawTimeout();", "int getIncomingTimeout();", "long getTimeout();", "int getTimeout();", "static void assertNoMorePackets(DatagramSocket datagramSocket) {\n try {\n receivePacket(datagramSocket, SHORT_SOCKET_TIMEOUT);\n fail(\"Packet received, when none expected!\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a BufferedImage of the given frame number of this dataset
BufferedImage toBufferedImage(int frame);
[ "public byte[] getImage(int frame);", "public abstract java.util.List<BufferedImage> grabFrame(int numCopies);", "public void setFrame(int frameNumber, BufferedImage image) {\n\t\tif (frameNumber < images.size())\n\t\t\timages.set(frameNumber,image);\n\t\telse {\n\t\t\twhile (images.size() < frameNumber-1)\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
with Models that specifiy objects that can be persisted to a DB, we ALWAYS include a noargs constructor and a parameterized constructor / A model class is simply intended to store data. This particular model corresponds directly to the Artist table in our DB We always include 2 constructors (a noargs and a parametieriz...
public Artist() { }
[ "public Artist () {\n name = \"N/A\";\n album = \"N/A\";\n twitterHandle = \"N/A\";\n rating = 0;\n }", "public Model() {\r\n\r\n\t}", "public Model() {\n\t}", "public Model(Arg... args) {\n\t\tmap = new HashMap<String, List<String>>();\n\t\tinit(args);\n\t}", "public MusicMod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check IO exception handling in the run method of RunnableClosableQueueProvider.
@Test public void checkRunnableClosableQueueProviderRunIException() throws Exception { final DatagramSocket mockSocket = Mockito.mock(DatagramSocket.class); Mockito.doThrow(IOException.class).when(mockSocket) .receive(Mockito.any(DatagramPacket.class)); Mockito.w...
[ "@Override\n public final CriticalStopError handleIOException(IOException e) {\n critical_stop_error = new CriticalStopError(e.getMessage(), e);\n throw critical_stop_error;\n }", "@Test\n public void checkRunnableClosableQueueProviderRun() throws Exception {\n\n final DatagramSocket mockSocket ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the ith object from the collection, wrapped as a TemplateModel.
@Override public TemplateModel get(int index) throws TemplateModelException { // Don't forget to keep getSupportsIndexedAccess in sync with this! if (object instanceof List) { try { return wrap(((List) object).get(index)); } catch (IndexOutOfBoundsExceptio...
[ "@Override\n public TemplateModel get(int index) throws TemplateModelException {\n // make sure that the object returned is also wrapped to the freemarker model\n return wrap(arrayNode.get(index));\n }", "Template retrieveById(UUID templateId);", "public MailTemplateModel fetchByName(String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the indicator which determines whether a specific Call is currently streaming the local video (to a remote destination).
boolean isLocalVideoStreaming(Call call);
[ "public boolean isLocalVideoStreaming()\n {\n Iterator<T> peers = getCallPeers();\n \n while (peers.hasNext())\n {\n if (peers.next().isLocalVideoStreaming())\n return true;\n }\n return false;\n }", "public boolean isRemoteCallStream() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the laGrades value for this FrameDTO.
public int getLaGrades() { return laGrades; }
[ "public int getLoGrades() {\n return loGrades;\n }", "public int getGrades(){\n\t\treturn grades;\n\t}", "public List<PredictionGradesItem> grades() {\n return this.grades;\n }", "public Double getLactationAverageDailyGain() {\n return lactationAverageDailyGain;\n }", "public d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a test web client.
public TestWebClient() { resources = new LinkedList<Resource>(); }
[ "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "@BeforeClass\n public static void createWebClients() {\n noJsWebClient = create(JENKINS_PER_SUITE, false);\n jsEnabledClient = create(JENKINS_PER_SUITE, true);\n }", "@BeforeClass(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Actor with movies toString().
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Actor {") .append("id='").append(id).append('\'') .append(", firstName='").append(firstName).append('\'') .append(", lastName='").append(lastName).append('\'') .append(", ").append(moviesToStri...
[ "public java.lang.String toString()\r\n\t{\r\n\t\tString output;\r\n\t\t\r\n\t\toutput = sourceActor + \" to \" + destinationActor + \" via \" + movieNameConnection;\r\n\t\t\t\t\t\t\t\t\r\n\t\treturn output;\t\r\n\t}", "public void displayMoviesOfActor(String actor){\n Vertex thisVertex = this.graph.getVer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to check is the king is checked or stalemated.
public int isCheckmatedOrStalemated() { /* *returns: 0-nothing, 1-checkmate, 2-stalemate */ if (this.allMoves().size() == 0) { for (int i = 0; i < 8; ++i) { for (int j = 0; j < 8; ++j) { if (chessboard.getSquare(i, j).getPiece() != null ...
[ "public boolean checkKing(){\n \tSystem.out.println(\"Checking Kings\");\r\n \treturn(this.checkBlackKing() || this.checkWhiteKing());\r\n }", "private boolean isInCheckmate(King k) {\n\t\tif(k.isTan()) {\n\t\t\treturn tanCheck && generateValidMoves(k).isEmpty();\n\t\t} else {\n\t\t\treturn whiteCheck &&...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
isValidIANAEncoding(String):boolean Returns true if the encoding name is a valid Java encoding. This method does not verify that there is a decoder available for this encoding, only that the characters are valid for an Java encoding name.
public static boolean isValidJavaEncoding(String javaEncoding) { if (javaEncoding != null) { int length = javaEncoding.length(); if (length > 0) { for (int i = 1; i < length; i++) { char c = javaEncoding.charAt(i); if ((...
[ "public static boolean isValidIANAEncoding(String ianaEncoding) {\n if (ianaEncoding != null) {\n int length = ianaEncoding.length();\n if (length > 0) {\n char c = ianaEncoding.charAt(0);\n if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the number of ReservationOnRequest message received from the AT that the FAP RNC failed.
public void setNumReservationOnRequestsFailed(Long numReservationOnRequestsFailed) { this.numReservationOnRequestsFailed = numReservationOnRequestsFailed; }
[ "void setConnectionFailedRepetition(int value);", "public Long getNumReservationOnRequestsFailed() {\n\t\treturn numReservationOnRequestsFailed;\n\t}", "public void setReservationId(int value) {\n this.reservationId = value;\n }", "public void setNumReservationOnRequestsReceived(Long numReservation...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getAllDVDs method, of class DvdLibraryService.
@Test public void testGetAllDVDs() { List<Dvd> dvdList = service.getAllDVDs(); assertEquals(0, dvdList.size()); }
[ "private void listAllDVDs(){\r\n try{\r\n DVDCtr dvdCtr = new DVDCtr();\r\n System.out.println(\"\\f\" + dvdCtr.listAllDVDs());\r\n pause();\r\n }catch(NullPointerException e){\r\n System.out.println(e.getMessage());\r\n pause();\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ opens the cell so the cell's value will be exposed to the player if value is 0, opens every unopened neighbour recursively returns a value of how many cells that was opened, a value used in grid.play() to update the value cellsOpened.
public int open(int number) { opened = true; int returnNumber = number; if(!isBomb() && value == 0) { for (int i = 0; i < 8; i++) { if(neighbours[i] != null && neighbours[i].opened == false) { //opens every neighbour that is !opened returnNumber += neighbours[i].open(number); //adds 1 to returnNumbe...
[ "public void openCell(Integer xOpen, Integer yOpen){\n \r\n if(isValidCell(xOpen,yOpen)){\r\n // System.out.println(\" openCell(). es celda Valida\");\r\n if(grid[xOpen][yOpen].isMine()){\r\n // System.out.println(\" openCell().Perdiste, habia una mina en g[\"+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write the first line of the file.
private void writeFirstLine() throws IOException{ write( String.join( Reporter.COMMA , COLUMN_NAMES ) + "\n" ); }
[ "public void setFirstLine(int firstLine) {\n this.firstLine = firstLine;\n }", "public static void first_line_insert(String content) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tRandomAccessFile f = new RandomAccessFile(\"GUI.txt\", \"rw\");\n\t\tf.setLength(0);\n\t\tf.writeChars(co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check for RECEIVE_WAP_PUSH permission
public static boolean checkReceiveWAPPushPermission(Activity activity) { int res = activity.checkCallingOrSelfPermission(SMS.RECEIVE_WAP_PUSH); return (res == PackageManager.PERMISSION_GRANTED); }
[ "public int checkNotificationPermission() throws android.os.RemoteException;", "boolean hasSendPushNotifications();", "@Override\n public int checkNotificationPermission() throws android.os.RemoteException {\n android.os.Parcel _data = android.os.Parcel.obtain();\n andro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load all content from self zip entries
public boolean load() { boolean bret = false; Enumeration<? extends ZipEntry> entries = entries(); if (entries != null) { ZipEntry entry = null; String ename; entry = getEntry("mimetype"); if (entry != null) { Str...
[ "public void extractAll() {\n ZipUtil.unpack(new File(zipFile.toString()), new File(zipFile.getParent().toString()));\n }", "private void unZipFile(){\n\t\tint size = 4096; // buffer 4kb\n\t\tString strEntry;\n\t\ttry{\n\t\t\tBufferedOutputStream dest = null; \n\t\t\tInputStream fis = instance.getResources()....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is redundant in this class, as items are placed in the List at locations according to their orders. As a result, this method just called the standard add(T) method and ignores the location argument.
@Override public void add(int location, T object) { add(object); }
[ "public void add(T element, int pos);", "@Override\n public boolean add(T object) {\n int position = getSortedPosition(object);\n list.add(position, object);\n return true;\n }", "public void add(LocationOverlayItem location)\n {\n items.add(location);\n populate();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the field protector.
public java.lang.String getProtector() { return protector; }
[ "private Field getCollisionField() {\n\t\treturn this.collisionField;\n\t}", "public org.openyolo.proto.Credential getProto() {\n return mProto;\n }", "public void setProtector(java.lang.String _protector)\n {\n protector = _protector;\n }", "com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads an entire matrix from a reader, but if it's already been read once before returns the previously read one
public synchronized Matrix readMatrix(String index) throws MatrixException { if (readMatrices.containsKey(index)) { return (Matrix) readMatrices.get(index); } Matrix m = baseReader.readMatrix(index ); readMatrices.put(index,m); return m; }
[ "public void readMatrices(MatrixCacheReader mr) {\n }", "private void readMatrixFromFile(DoubleMatrix2D matrix, BufferedReader reader) {\n\t\tString line;\n\t\ttry {\n\t\t\tif((line = reader.readLine()) != null) {\n\t\t\t\tArrayList<String> stringData = new ArrayList<>(Arrays.asList(line.split(\" \")))...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merge a[lo..mid] with a[mid+1..hi].
public static void merge(Integer[] a, int lo, int mid, int hi) { int i = lo, j = mid + 1; for (int k = lo; k <= hi; k++) // Copy a[lo..hi] to aux[lo..hi]. aux[k] = a[k]; for (int k = lo; k <= hi; k++) // Merge back to a[lo..hi]. if (i > mid) ...
[ "private static void merge(int[] a, int[] aux, int lo, int mid, int hi) {\n // copy to aux[]\n for (int k = lo; k <= hi; k++) {\n aux[k] = a[k];\n }\n\n // merge back to a[]\n int i = lo, j = mid + 1;\n for (int k = lo; k <= hi; k++) {\n if (i > mid) a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Let the listener know to the meta chnaged
@Override public void onMetaChanged() { for (final MusicStateListener listener : mMusicStateListener) { if (listener != null) { listener.onMetaChanged(); } } }
[ "public boolean addMetaEventListener(MetaEventListener listener);", "void fireMetadataAvailable(TorrentId torrentId, Torrent torrent);", "void mediaMetaChanged(MediaPlayer mediaPlayer, int metaType);", "protected void onModified()\n\t{\n\t\tm_modified = true;\n\t\tif (m_metadata != null)\n\t\t{\n\t\t\tm_metad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes the solar azimuth angle at the given location.
public double getAzimuthAngle(double longitude, double latitude){ double zenithAngle = getZenithAngle(longitude, latitude); double azimuthAngle = 0.0D; if(zenithAngle > 0.0D){ double aSubsolarLat = getSolarDeclination(); double aSubsolarLong = getSubsolarLongitude(); double hourAngle = longitude - aSubso...
[ "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public String getAzimuth();", "public double domGetAzimuth() throws RTException;", "private float sunAzimuth(float solarTime, float solarDeclination, float latitude) {\r\n\t \treturn -(float)(\r\n\t \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ get returns the object at the head
public Object get() { return get(0); }
[ "public Object get(int pos){ \r\n Link p = first;\r\n\r\n p = getLinkAtPos(pos);\r\n return p.item;\r\n }", "public Object getObjectAt(int i) {\n// if (i < 0 || i >= this.countNodes)\n// throw new IllegalArgumentException(\"index i is out of range of singlylinkedlist...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Detect the type of the clone from the name
public static CloneType detectType(String name) { if (name.startsWith("vb-")) return CloneType.VIRTUALBOX; else if (name.startsWith("amazon-")) return CloneType.AMAZON; else if (name.startsWith("kvm-")) return CloneType.KVM; else { // System.err.println("The type of this clone cou...
[ "@Test\n public void testClone() {\n assertEquals(three.getName(), prototype.clone(\"namethree\").getName());\n assertEquals(two.getName(), prototype.clone(\"nametwo\").getName());\n assertEquals(one.getName(), prototype.clone(\"nameone\").getName());\n \n }", "public void setClo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Simplified method form for invoking the ListHostedZonesByName operation with an AsyncHandler.
@Override public java.util.concurrent.Future<ListHostedZonesByNameResult> listHostedZonesByNameAsync( com.amazonaws.handlers.AsyncHandler<ListHostedZonesByNameRequest, ListHostedZonesByNameResult> asyncHandler) { return listHostedZonesByNameAsync(new ListHostedZonesByNameRequest(), asyncHandler...
[ "@Override\n public java.util.concurrent.Future<ListHostedZonesByNameResult> listHostedZonesByNameAsync() {\n\n return listHostedZonesByNameAsync(new ListHostedZonesByNameRequest());\n }", "@Override\n public java.util.concurrent.Future<ListHostedZonesResult> listHostedZonesAsync(\n com...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CTSTRS_HISTORY.RECEIVER_BANK
public void setRECEIVER_BANK(BigDecimal RECEIVER_BANK) { this.RECEIVER_BANK = RECEIVER_BANK; }
[ "public void setRECEIVER_BANK_NAME(String RECEIVER_BANK_NAME) {\r\n this.RECEIVER_BANK_NAME = RECEIVER_BANK_NAME == null ? null : RECEIVER_BANK_NAME.trim();\r\n }", "public void setRECEIVER_CORR_BANK_BR(String RECEIVER_CORR_BANK_BR) {\r\n this.RECEIVER_CORR_BANK_BR = RECEIVER_CORR_BANK_BR == null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Handling LOC (lines of code) Returns the number of lines of code in a file.
public static int getLinesOfCodeInFile(File file) { String fileContent = FileIO.readStringFromFile(file); int line = 1; for (int i = 0; i < fileContent.length(); i++) if (fileContent.charAt(i) == '\n') line++; return line; }
[ "public void countLines() {\n try{\n FileInputStream fStream = new FileInputStream(getFilePath());\n DataInputStream dStream = new DataInputStream(fStream);\n BufferedReader bReader = new BufferedReader(new InputStreamReader(dStream));\n String strLine;\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines a keyboard based operation.
public interface KeyboardOperation { /** * Gets the @{link com.google.gwt.event.dom.client.KeyCodes} that this operation matches. * @return A key code. */ int getKeyCode(); /** * Gets the shift-key state that this operation matches. * @return true if the shift-key is down. */...
[ "public interface ConsoleOperations\n{\n\tfinal String CR = System.getProperty (\"line.separator\");\n\n\tfinal char BACKSPACE = '\\b';\n\tfinal char RESET_LINE = '\\r';\n\tfinal char KEYBOARD_BELL = '\\07';\n\n\tfinal char CTRL_A = 1;\n\tfinal char CTRL_B = 2;\n\tfinal char CTRL_C = 3;\n\tfinal char CTRL_D = 4;\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes a player's turn until a valid position has been chosen.
private void playerTurn(Player player) { while(true) { playerPrompt(player); String input = Application.input.nextLine(); if(input.toLowerCase().equals("exit")) exitGame(); if(board.tryPlayPosition(input, HexPiece.createPiece(player.getPieceColor()...
[ "public void processTurn(Player player) {\n Move move;\n do {\n Scanner scan = new Scanner(System.in);\n\n System.out.println(\"Enter current position of Piece you want to move\");\n // Positions entered by player\n int startX = scan.nextInt();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Optional. Type of the boot disk (default is "pdstandard"). Valid values: "pdbalanced" (Persistent Disk Balanced Solid State Drive), "pdssd" (Persistent Disk Solid State Drive), or "pdstandard" (Persistent Disk Hard Disk Drive). See [Disk types]( string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
java.lang.String getBootDiskType();
[ "com.google.protobuf.ByteString getBootDiskTypeBytes();", "java.lang.String getDiskType();", "public Builder setDiskType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000400;\n diskType_ = value;\n onChanged();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the model's current "why not" trace.
public void outputWhyNot () { output ("\n> (why-not)\n"); if (model!=null) model.outputWhyNot(); }
[ "String getTraceabilityNotes();", "public boolean isTraceDisabled() { return _trace.isDisabled(); }", "public void traceback() {\n assert (ran);\n traceback(1,n);\n String copy = traceback_str;\n\n for (int i = copy.length() - 2; i >= 0; i--)\n traceba...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes data to the cache.
public void write(Object key, Object data) { CacheEntry entry = cacheEntryFactory.newCacheEntry(key, data); synchronized(cache) { cache.put(key, entry); } }
[ "void writeCachesToDisk();", "private void writeInfosToCache()\n {\n writeObjToCache(TASKS_KEY, this.tasks);\n }", "public void submitToCache (String key, String dataToCache);", "public void saveCache() {\n\t\tPerformanceMonitor.startOperation(\"ConsulCache\", \"saveCache\");\n\t\tvlogDebug(\"Sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use SlowPingRequestProto.newBuilder() to construct.
private SlowPingRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private PingMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Ping(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFiel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add an row to the property grid with an label for the property name and an editable field for the value.
private void addPropertyRow(String name, Property<String> property) { Label label = new Label(name + ": "); EditableProperty<String> editable = new EditableProperty<>( property, EditableProperty.stringEditorFactory() ); propertyGrid.getChildren()...
[ "private void initPropertiesTable(Resources resources) {\n propertiesTable = new CellTable<Property>(15, resources);\n Column<Property, String> nameColumn = new Column<Property, String>(new TextCell()) {\n @Override\n public String getValue(Property object) {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This test compares the results of the getMean() and getStdDev() methods when setting a Site and a point EqkRupture object with the results of the get getMeanForPointRup(m,r) and getTotalStdDevForPointRup(r) methods when passing directly the magnitude and hypocentral distance values. This test is meant to validate if th...
@Test public void pointEqkRupture() { double mag = 5.0; double aveRake = 0.0; Location hypo = new Location(0.0, 0.0, 5.0); Site site = new Site(new Location(0.0, 0.1, 0.0)); EqkRupture rup = getPointEqkRupture(mag, hypo, aveRake); double hypoDist = Ma...
[ "@Test\n public void interEventStdForPointRupture() {\n Site site = new Site(new Location(0.0, 0.0, 0.0));\n EqkRupture rup = getEqkRuptureFromPointSource();\n aw_2010_AttenRel.setSite(site);\n aw_2010_AttenRel.setEqkRupture(rup);\n\n aw_2010_AttenRel.getParameter(StdDevTypePar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Expansion Duration Setting'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseExpansionDurationSetting(ExpansionDurationSetting object) { return null; }
[ "public T caseExpansionDurationValue(ExpansionDurationValue object) {\n\t\treturn null;\n\t}", "public T caseDuration(Duration object) {\n\t\treturn null;\n\t}", "public T caseValueSetExpansion(ValueSetExpansion object) {\n\t\treturn null;\n\t}", "@JsonIgnore\r\n public String getPrepTimeDuration() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove the specific page id from the buffer pool. Needed by the recovery manager to ensure that the buffer pool doesn't keep a rolled back page in its cache. Also used by B+ tree files to ensure that deleted pages are removed from the cache so they can be reused safely
public void discardPage(PageId pid) { pageMap.remove(pid); }
[ "public synchronized void discardPage(PageId pid) {\n // some code goes here\n // only necessary for lab5\n bufferPool.remove(pid);\n }", "public synchronized void discardPage(PageId pid) {\n // some code goes here\n // not necessary for lab1\n pages.remove(pid);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__UnfoldingStrategy__InstantiationPredicatesAssignment_7" $ANTLR start "rule__LocalVariable__NameAssignment_1" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:8664:1: rule__LocalVariable__NameAssignment_1 : ( RULE_ID ) ;
public final void rule__LocalVariable__NameAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:8668:1: ( ( RULE_ID ) ) // ../org.gemoc....
[ "public final void rule__LocalVariable__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:3617:1: ( ( ( rule__LocalVariable__NameAss...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new dialog with a title, a message and an "OK" button which, when pressed, it closes the dialog. Also, it attaches to the button the given action listener.
JDialog createActionDialog(JFrame owner, String title, String message, ActionListener actionListener);
[ "private void createDialog(){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Are you sure?\").setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }", "public void makeAlert(String title, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets player sort by type ressource.
List<Player> getPlayerSortByTypeRessource(TypeRessource tp);
[ "String getPlayerType();", "public ArrayList<String> sortTypeTiles(){\n\t\tArrayList<String> titles = new ArrayList<>();\n\t\ttitles.add(MainActivity.getContext().getString(R.string.rec_time));\n\t\ttitles.add(MainActivity.getContext().getString(R.string.rec_protocol));\n titles.add(MainActivity.getContext...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a count of the current number of repetitions of Command Response Parameters (ECR3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
public int getEcr3_CommandResponseParametersReps() { return this.getReps(3); }
[ "public int getRepetitions() {\n // Get value of key repetitions or one by default\n int repetitions = experiment.optInt(\"repetitions\", 1);\n\n // Returns 1 if value is zero or below\n if (repetitions < 1) {\n return 1;\n }\n\n return repetitions;\n }", "S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A dialog that manages inserting and updating data
public InsertUpdateDialog(String tableName, ArrayList<String> data, boolean inserting, JTable table) { setBounds(20, 20, 800, 500); JLabel lblInsertData = new JLabel("Insert data"); lblInsertData.setFont(new Font("Tahoma", Font.PLAIN, 22)); if(!inserting) lblInsertData.setText("Update data"); ...
[ "private void updateStudentDialog() throws SQLException {\r\n Alert dlg = new Alert(Alert.AlertType.INFORMATION);\r\n dlg.setTitle(\"Successfully updated.\");\r\n dlg.setContentText(\"Student \" + student_to_update.getFirstName() + \" information is successfully updated.\");\r\n //dlg.se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the layout resource to create the drop down views.
public void setDropDownViewResource(int resource) { mDropDownResource = resource; }
[ "public void setDropDownViewResource(int resource) {\n this.mDropDownResource = resource;\n }", "@Override\r\n\tpublic void setLayout(Layout layout) {\r\n\t\tcheckWidget();\r\n\t\treturn;\r\n\t}", "@Override\n\tpublic void setLayout(java.lang.String layout) {\n\t\t_scienceApp.setLayout(layout);\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get publication by Id
public Publication getPublicationById(int id) { EntityManager em = emf.createEntityManager(); @SuppressWarnings("unchecked") List<Publication> publications = (List<Publication>) em.createNamedQuery("Publication.findById") .setParameter("id", id).getResultList(); em.close(); Publication pub = null;...
[ "public Optional<Publication> findById(final Long id);", "public Publication get(Integer id) throws PersistException {\n try (Connection connection = pool.getConnection()) {\n MySqlPublicationDao productDao = (MySqlPublicationDao) factory.getDao(Publication.class, connection);\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the affectedattribute of this AttributeChange.
public String getAffectedattribute() { return this.affectedattribute; }
[ "public Object getChangedAttribute()\r\n\t{\r\n\t\treturn changedAttribute;\r\n\t}", "public Integer getAttributechangeid() {\n return this.attributechangeid;\n }", "public WedgeAttribute getAttribute() {\r\n\t\treturn attribute;\r\n\t}", "public void setAffectedattribute(String affectedattribute) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setter for the project version
public void setProjectVersion(int v) { this.project_version = v; }
[ "void setVersion(String version);", "void setVersion(long version);", "public void setVersion(int value) {\n this.version = value;\n }", "private void setVersionNumber(int version) {\n versionNumber = version;\n }", "void setLatestVersion(VV version);", "public void setVersionNo (Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column biz_repayment_plan.EXT_VALUE
public void setExtValue(String extValue) { this.extValue = extValue == null ? null : extValue.trim(); }
[ "public void setEXTENSION_NO(BigDecimal EXTENSION_NO)\r\n {\r\n\tthis.EXTENSION_NO = EXTENSION_NO;\r\n }", "public void setJP_SalesRep_Value (String JP_SalesRep_Value);", "public void setConvertedShrinkQty (BigDecimal ConvertedShrinkQty)\n{\nset_Value (\"ConvertedShrinkQty\", ConvertedShrinkQty);\n}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the txn date.
public void setTxnDate(Date txnDate) { this.txnDate = txnDate; }
[ "public void setTdate(java.util.Date tdate) {\n _sTransaction.setTdate(tdate);\n }", "public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }", "public void setTransDate(Date transDate);", "public void setTransactionDate(Date transactionDate) {\n this.transactionDat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of insert method, of class PriorityQueue.
@Test public void testInsert() { PriorityQueue<Integer> instance = new PriorityQueue<>(); instance.insert(5); assertEquals(1, instance.size()); assertEquals(new Integer(5), instance.delMin()); }
[ "@Test\n\tpublic void testInsert() {\n\t\tHeap<Integer, String> test = new Heap<Integer, String>();\n\t\tassertEquals(0, test.size());\n\t\ttest.insert(3, \"Kiss\");\n\t\ttest.insert(0, \"Me\");\n\t\ttest.insert(35, \"I\");\n\t\ttest.insert(8, \"Miss\");\n\t\ttest.insert(10, \"You\");\n\t\tassertEquals(5, test.size...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
instanciation is not allowed iTunesApp Class
public static IiTunes createiTunesApp() { return COM4J.createInstance( IiTunes.class, "{DC0C2640-1415-4644-875C-6F4D769839BA}" ); }
[ "private SCAskIAPProductList() {}", "private CSAskIAPProductList() {}", "private AppUtils() {\n // Hidden constructor\n }", "protected App instantiateApp() throws IllegalAccessException, InstantiationException\n\t{\n\t\tlogger.trace(\"Instantiating app class: \" + getAppClass().getName());\n\t\tretu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value related to the column: LAST_CHANGE_BY
public void setLastChangeBy (java.lang.String lastChangeBy) { this.lastChangeBy = lastChangeBy; }
[ "public void setLastupdateby(int value) {\n this.lastupdateby = value;\n }", "public java.lang.String getLastChangeBy () {\n\t\treturn lastChangeBy;\n\t}", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a ONDEX listener listener from the list.
public void removeONDEXListener(ONDEXListener l) { listeners.remove(l); }
[ "public void removeONDEXONDEXListener(ONDEXListener l) {\r\n\t\teventListenerList.remove(ONDEXListener.class, l);\r\n\t}", "void removeListener(BotListener l);", "public void removeListener();", "public void removeListener(L listener) {\n listeners.remove(listener);\n }", "public void removeNPTLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The license model that the recommended reservation supports.
public String getLicenseModel() { return this.licenseModel; }
[ "public java.lang.String getLicensingModel() {\n return licensingModel;\n }", "public String getLicense();", "public com.flexnet.operations.webservices.LicenseModelIdentifierType getLicenseModelIdentifier() {\n return licenseModelIdentifier;\n }", "public String getVehicleLicense() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A table which is target of replication should not be queued for stats update, and hence its stats state should not change.
@Test(timeout=80000) public void testNoStatsUpdateForTxnReplTable() throws Exception { testNoStatsUpdateForReplTable("txn", "TBLPROPERTIES (\"transactional\"=\"true\",\"transactional_properties\"=\"insert_only\")"); }
[ "@Test(timeout=80000)\n public void testNoStatsUpdateForSimpleReplTable() throws Exception {\n testNoStatsUpdateForReplTable(\"simple\", \"\");\n }", "@Test\n public void testUpdateTableStatsSlow_removesDoNotUpdateStats() throws TException {\n // Create database and table\n Table tbl = new TableBuilde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test to check if the SignIn fails with the invalid password
@Test(dataProvider = "Authentication") public void testWithInvalidPasswords(String userName, String password){ signInPage.enterUserDetails(userName, password); Assert.assertTrue(signInPage.invalidPassword()); }
[ "@Test\n public void testSignInWrongPassword(){\n makePopulatedUserManager();\n boolean thrownWrongPassword = false;\n try{\n userManager.signIn(\"player1\", \"1234\");\n }catch (AccountsException e){\n thrownWrongPassword = true;\n }\n Assert.asser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sdet_tregistration_date timestamp without time zone Fecha de regustro de venta
public void setSdetTregistrationDate(Date sdetTregistrationDate) { this.sdetTregistrationDate = sdetTregistrationDate; }
[ "public Timestamp getBPJSRegistrationDate();", "public Date getSdetTregistrationDate() {\n\t return sdetTregistrationDate;\n\t }", "public java.sql.Timestamp getRegdate()\n {\n return regdate; \n }", "public Date getSeriTregistratonDate() {\n return seriTregistratonDate;\n }", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new commit from a previous commit.
public Commit(Commit old, String message1, String parent1) { this.message = message1; this.parent = parent1; if (old.refs == null) { this.refs = new HashMap<>(); } else { this.refs = new HashMap<>(); this.refs.putAll(old.refs); } this.t...
[ "TCommit createCommit();", "void createBranchAtCommit(TCommit commit, String branchName, TRepo repo);", "CommitId createCommitId(String commitId);", "public static void makeCommit(String[] args) throws IOException {\n if (!DOTFILE.exists()) {\n System.out.println(\"Not in an initialized Gitl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates Landmarks i need to add graphics on the map to show these
public void createLandmarks() { // Landmark(String name, float xCoord, float yCoord, int cultureVal) new Landmark("Vatican City", 154, 215, 8); new Landmark("Pantheon", 924, 509, 4); new Landmark("Colloseum", 1399, 856, 8); new Landmark("Castel St. Angelo", 535, 296, 7); ...
[ "public void showAllLandmarks(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n for(int i = 0; i<landmarkList.size(); i++){\n if(landmarkList.get(i).data.type == \"Landmark\")\n drawLandmarks(landmar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).
@ApiModelProperty(value = "The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).") public String getSiteCompanyName() { return siteCompanyName; }
[ "@ApiModelProperty(value = \"The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multi-tenant building).\")\n\n\n public String getSiteCustomerName() {\n return siteCustomerName;\n }", "java.lang.String getCompanyNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "enumConstant" $ANTLR start "enumBodyDeclarations" Java.g:261:1: enumBodyDeclarations : ';' ( classBodyDeclaration ) ;
public final void enumBodyDeclarations() throws RecognitionException { int enumBodyDeclarations_StartIndex = input.index(); try { dbg.enterRule(getGrammarFileName(), "enumBodyDeclarations"); if ( getRuleLevel()==0 ) {dbg.commence();} incRuleLevel(); dbg.location(261, 1); ...
[ "public final void enumConstant() throws RecognitionException {\n int enumConstant_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"enumConstant\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(257, 1);\n\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
converts color from integer value to String
public static String colorIntToString(int color) { switch (color) { case -8355712: return "GRAY"; case -256: return "YELLOW"; case -16776961: return "BLUE"; case -65536: return "RED"; case -14336: return "ORANGE"; case 16711935: return "MAGENTA"; case -65281: return "...
[ "public String getHexStringFromColor () {\n \n return String.format(\"#%02X%02X%02X\", (int) (this.red * 255), (int) (this.green * 255), (int) (this.blue * 255));\n }", "public\n static\n String convertColorToString(Color val)\n {\n String ret_String;\n\n int a;\n try {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set of alternative labels or synonyms
public Set<String> getAlternativeLabels(){ if (alternativeLabels==null) return Collections.emptySet(); return alternativeLabels; }
[ "String getSynonyms();", "@Override\n public String[] alternativeNames() {\n return normAlts;\n }", "List<String> getSynonyms();", "public Set<String> labelSet();", "Set<String> getAliases();", "public Set<String> getAlternativeNames() {\n \t\treturn new HashSet<String>(this.translationMap.values());...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }