query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Process the bidding info before the scoring screen is shown.
public static boolean processBidding() { boolean done = true; //Check if all the choice boxes have been selected. if (FrameUtils.player1Bid.getSelectedIndex() == -1 || FrameUtils.player1Bid.getSelectedIndex() == 0) { done = false; } if (FrameUtils.player2Bid.getSelectedIndex() == -1 || ...
[ "private void bidding() {\n \n \t\tint bidValue = 0;\n \n \t\tdata.setBidValue(0);\n \n \t\tlog.debug(\"ask middle and fore hand...\"); //$NON-NLS-1$\n \n \t\tbidValue = twoPlayerBidding(Player.MIDDLEHAND, Player.FOREHAND,\n \t\t\t\tbidValue);\n \n \t\tlog.debug(\"Bid value after first bidding: \" //$NON-NLS-1$\n \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a part of the definition of a Static, as a CString The part is designated by its name, as a CString If the required value is not a string, it is converted to a CString then returned If is not present, or not defined for , this function returns an empty string Allowed parts for CDef : family : the family type : ...
public static String CDef(String name, String part) { return OCCwrapJavaJNI.Interface_Static_CDef(name, part); }
[ "java.lang.String getDefinition();", "String getConstant();", "java.lang.String getConstantValue();", "public abstract String getDefinition();", "String getDefinition() throws IOException;", "DefinitionName getDefName(String n){\n \tDefinitionName rc = null;\n \ttry {\n\t\t\trc = new DefinitionName(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the progress color, corresponding to "chrome:colorProgress".
public void setProgressColor(int color) { mProgressPaint.setColor(color); postInvalidateOnAnimation(); }
[ "public void setProgressColor(int progressColor) {\n mProgressPaint.setColor(progressColor);\n invalidate();\n }", "public void setProgressColor(int progressColor) {\n\t\tmProgressPaint.setColor(progressColor);\n\t\tinvalidate();\n\t}", "public void setProgressColor(int color) {\n\t\tarcColor.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the stepUdfs value for this TestCaseStepExecution.
public org.wso2.www.php.xsd.UserDefinedFieldArray[] getStepUdfs() { return stepUdfs; }
[ "public ArrayList<TestCaseStep> getSteps() {\n\t\treturn steps;\n\t}", "public String[] getSteps() {\r\n return steps;\r\n }", "public List<Step> getSteps() {\n return steps;\n }", "public List<NewTaskStepValues> getStepsValues() {\n return stepsValues;\n }", "public org.wso2.w...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
C(n, m) % mod
long select(int n, int m, long mod) { long[][] dp = new long[n + 1][m + 1]; for (int i = 1; i <= n; ++i) { dp[i][0] = 1; if (i <= m) { dp[i][i] = 1; } for (int j = 1; j < i && j <= m; ++j) { dp[i][j] = (dp[i - 1][j] + dp[i - 1][j - 1]) % mod; } } return dp[n...
[ "public int findModulusEffective(int n, int m){ // m >1\n int F_first = 0;\n int F_second = 1;\n int result = 0;\n for (int i = 2; i <= n; i++) {\n result = (F_first + F_second ) % m;\n F_first = F_second;\n F_second = result;\n\n }\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
finds the average of a given variable type
public static double avg(Centroid cen, int type) { double sum = 0; int count = 0; for (LightPoint[] row : tmap) { for (LightPoint p : row) { if (p.cen.tag == cen.tag && p.lum != -1) { count++; if (type == 0) { sum += p.r; } else if (type == 1) { sum += p.c; } else { ...
[ "float getAverageFloat();", "StrictQueryValue<Double> avg(StrictQueryValue<? extends Number> selection);", "float getAqiAvg();", "static double avg(double[] inp) {\n\t\tdouble sum = 0;\n\t\tfor(int i=0;i<inp.length;i++) {\n\t\t\tsum += inp[i];\n\t\t}\n\t\treturn sum/inp.length;\n\t}", "@GetMapping(\"average...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the file name 'jboss.xml'.
@Override public String getFileName() { return "jboss.xml"; }
[ "public String getXmlFile() {\n\t\tString filename = \"\";\n\t\tif (xmlFile != null) {\n\t\t\tif (xmlFile.contains(\"/\")) {\n\t\t\t\tfilename = xmlFile.substring(xmlFile.lastIndexOf(\"/\") + 1);\n\t\t\t} else if (xmlFile.contains(\"\\\\\")) {\n\t\t\t\tfilename = xmlFile.substring(xmlFile.lastIndexOf(\"\\\\\") + 1)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleOrOperator" $ANTLR start "ruleOrOperator" ../eu.artist.postmigration.nfrvt.lang.gml/srcgen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4393:1: ruleOrOperator returns [EObject current=null] : ( () (otherlv_1= 'or' | otherlv_2= '||' ) ) ;
public final EObject ruleOrOperator() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token otherlv_2=null; enterRule(); try { // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang...
[ "public final void ruleGOrOperator() 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:1705:1: ( ( ( 'or' ) ) )\n // ../org.gemoc.gel.xtex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disable auto renewal for the domain in the account.
public EmptyResponse disableAutoRenewal(Number account, String domain) { return client.empty(DELETE, account + "/registrar/domains/" + domain + "/auto_renewal", ListOptions.empty(), null); }
[ "public void disable(){\r\n\t\tisAutoPosistionEnabled = false;\r\n\t\tperiodTimer.stop();\r\n\t}", "public EmptyResponse enableAutoRenewal(Number account, String domain) {\n return client.empty(PUT, account + \"/registrar/domains/\" + domain + \"/auto_renewal\", ListOptions.empty(), null);\n }", "void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return the last read part of a Scalar attribute
public String getLastScalarAttrValue(String completeAttributeName) throws DevFailed { String result = null; if (newestValueCommand != null) { // res should contains the timestamp and the read part of the attribute separated by ; // eg 1363947098786; -10.176605465035054 ...
[ "public double getLastvalue()\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(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the hour part of the header datetime.
public int getHour() { return headerHour; }
[ "public int getHour(){\n\t\treturn time.getHour();\n\t}", "java.lang.String getStartHour();", "public int getHour()\n {\n return hour;\n }", "public int getHour(){\n\t\tif(hour > 12){\n\t\t\treturn hour-12;\n\t\t}\n\t\treturn hour;\n\t\t\n\t}", "public double getHour() {\n\t\treturn this.hour;\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end ruleTypeAliasDefinition $ANTLR start entryRuleRecordDefinition ../org.eclipselabs.mscript.language/srcgen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:460:1: entryRuleRecordDefinition returns [EObject current=null] : iv_ruleRecordDefinition= ruleRecordDefinition EOF ;
public final EObject entryRuleRecordDefinition() throws RecognitionException { EObject current = null; EObject iv_ruleRecordDefinition = null; try { // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:461:2: (iv_r...
[ "public final EObject entryRuleTypeAliasDefinition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTypeAliasDefinition = null;\n\n\n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A pair of a timestamp along with a numeric partition identifier that may be used by some Atlas clients operating some keyvalue services to more efficiently store data.
@Value.Immutable @JsonSerialize(as = ImmutableTimestampAndPartition.class) @JsonDeserialize(as = ImmutableTimestampAndPartition.class) public interface TimestampAndPartition { @Value.Parameter long timestamp(); /** * A numeric partition identifier. Some Atlas clients may use this identifier to more ef...
[ "int getPartitionId();", "public abstract int getPartitionId();", "public int getPartitionId();", "java.lang.String getPartitionID();", "public int getPartition (Object key) { throw new RuntimeException(); }", "String getPartitionKey(int index);", "private long getBucketTimestamp(long predictionTimest...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__GRelationExpression__Group_1__2" $ANTLR start "rule__GRelationExpression__Group_1__2__Impl" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:7044:1: rule__GRelationExpression__Group_1__2__Impl : ( ( rule__GRelationExpression__RightOperandAssignment_1_2 ) ) ;
public final void rule__GRelationExpression__Group_1__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:7048:1: ( ( ( rule__GRelationExpression__Right...
[ "public final void rule__GXorExpression__Group_1__2__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:6583:1: ( ( ( rule__GXorExpression__Rig...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the 3 latest books in the book table by category
public ArrayList<BookBean> retrieveLatestBooksByCategory(long categoryId, long bookId) { data = null; try { data = (ArrayList<BookBean>) bdao.retrieveRecords(); } catch (SQLException e) { log.error("Error in retrieving a record in User table", e); return null; } ArrayList<BookBean> latestBooks =...
[ "public ArrayList<BookBean> retrieveAllBooksByCategory(long categoryId) {\n\t\tdata = null;\n\t\ttry {\n\t\t\tdata = (ArrayList<BookBean>) bdao.retrieveRecords();\n\t\t} catch (SQLException e) {\n\n\t\t\tlog.error(\"Error in retrieving a record in User table\", e);\n\t\t\treturn null;\n\t\t}\n\n\t\tArrayList<BookBe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find phone by id.
Phone findPhoneById(int phoneId);
[ "SdkPhone selectByPrimaryKey(Integer id);", "@Override\n public Phone get(final int id) {\n Phone phone = phoneRepository.findOne(id);\n return nonNull(phone) ? phone : new Phone();\n }", "PhoneCode selectByPrimaryKey(Integer id);", "public List getPhone(String id) {\n\n List<Contac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Increase block breaking speed
@SubscribeEvent public void onBreakSpeed(BreakSpeed event) { int cheat = CheatProxyCommon.BLOCKBREAKSPEED.getInt(); if (cheat > 0) { if (event.block.getUnlocalizedName().equalsIgnoreCase("tile.blockbarrel")) { return; } int multiplier = 25; if (cheat == 2) multiplier = 10...
[ "public void modifyBreakSpeed(BreakSpeedInfo blockBreakSpeed);", "public int breakBlock() {\r\n\t\tif (hardness > 0)\r\n\t\t\thardness -= 1;\r\n\t\treturn hardness;\r\n\t}", "private void breakBlockAction() {\n\t\tint selectedBlock = 0;\n\n\t\t// Get targeted block based on view\n\t\tif(changeViewSlider.getValu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines whether if the food exists in a given restaurant of a given restaurant owner
private boolean doesFoodExist(String name, String restaurantName, String restaurantOwnerUsername) { if (name == null || name.equals("") || restaurantName == null || restaurantName.equals("")) return false; else { ResultSet rset = null; int restaurantID = getRestaurantID(restaurantName, restaurantOwnerUsern...
[ "private boolean doesRestaurantExist(String name, String restaurantOwnerUsername) {\n\t\tif (name == null || name.equals(\"\") || restaurantOwnerUsername == null || restaurantOwnerUsername.equals(\"\"))\n\t\t\treturn false;\n\t\telse {\n\t\t\tint restaurantOwnerID = udb.getRestaurantOwnerID(restaurantOwnerUsername)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Renders the slider that controls the inputBranchGrowthRatio field
@FXML private void renderBranchGrowthRatioSlider() { renderSlider(0.5, 1, inputBranchGrowthRatio, (e) -> { inputBranchGrowthRatio = slider.getValue(); renderTree(); }); }
[ "@FXML\n private void renderBranchWitherSlider() {\n renderSlider(0, 1, inputBranchWitherRatio, (e) -> {\n inputBranchWitherRatio = slider.getValue();\n renderTree();\n });\n }", "@FXML\n private void renderBranchLengthSlider() {\n renderSlider(1, 100, inputBran...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
broadcasts a message to all processes including itself
public void broadcastMessage(Message message) { try { for(int i=0;i<numProcesses;i++) { sendMessage(i, message); } time++; } catch (Exception ex) { System.out.println(ex); } }
[ "public void broadcast() {\n for (int i = 1; i <= nbMessagesToBroadcast; i++) {\n Message broadcastMsg = new Message(pid, pid, i,false, null);\n lcb.broadcast(broadcastMsg);\n logs.add(String.format(\"b %d\\n\",i));\n }\n }", "public void broadcast(Message msg_bro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the text matrix in the context `c' to `t'. APISince: 2.0
@Generated @CFunction public static native void CGContextSetTextMatrix(@Nullable CGContextRef c, @ByValue CGAffineTransform t);
[ "public Matrix getTextMatrix()\n {\n return textMatrix;\n }", "@Generated\n @CFunction\n @ByValue\n public static native CGAffineTransform CGContextGetTextMatrix(@Nullable CGContextRef c);", "public void editText(String t, Context ctx){\n\t\t\tChildInteraction cDb = new ChildInteraction(ct...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the minimum object ID for objects that should be listed.
public long getMinObjectID() { return minObjectID; }
[ "public long getMinObjectID() {\n\t\t\treturn minObjectID;\n\t\t}", "private int findMinIDIndex() {\n int minIndex = 0;\n for(int count=0; count < this.deckCards.size(); count++) {\n if(Integer.parseInt(this.deckCards.get(count).getID()) < Integer.parseInt(this.deckCards.get(minIndex).get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the 'Meet Me Admin Command' literal with the specified integer value.
public static MeetMeAdminCommand get(int value) { switch (value) { case EJECT_LAST_USER_VALUE: return EJECT_LAST_USER; case KICK_ONE_USER_VALUE: return KICK_ONE_USER; case KICK_ALL_USERS_VALUE: return KICK_ALL_USERS; case UNLOCK_VALUE: return UNLOCK; case LOCK_VALUE: return LOCK; case UNMUTE_...
[ "public static MeetMeAdminCommand get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tMeetMeAdminCommand result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getMember...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .alluxio.proto.journal.AddMountPointEntry add_mount_point = 2;
alluxio.proto.journal.File.AddMountPointEntryOrBuilder getAddMountPointOrBuilder();
[ "alluxio.proto.journal.File.AddMountPointEntry getAddMountPoint();", "public alluxio.proto.journal.File.AddMountPointEntryOrBuilder getAddMountPointOrBuilder() {\n return addMountPoint_;\n }", "public Builder setAddMountPoint(alluxio.proto.journal.File.AddMountPointEntry value) {\n if (addMountPo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return value of numeric field SFTOT as a BigDecimal.
public BigDecimal getBigDecimalSFTOT() { return fieldSFTOT.getBigDecimal(); }
[ "public BigDecimal getBigDecimalSALTEF() {\n return fieldSALTEF.getBigDecimal();\n }", "BigDecimal getDecimalValue();", "public BigDecimal getBigDecimalSALGEN() {\n return fieldSALGEN.getBigDecimal();\n }", "public BigDecimal getBigDecimalSFCDI() {\n return fieldSFCDI.getBigDecimal(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set default values to OTEL config. OTEL config has a higher precedence.
private static void setDefaultConfig() { AgentConfig agentConfig = HypertraceConfig.get(); OpenTelemetryConfig.setDefault(OTEL_EXPORTER, "zipkin"); OpenTelemetryConfig.setDefault( OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue()); OpenTelemetryConfig.setDefault( ...
[ "void setDefaultConfig();", "protected static void setDefaultTelescopeConfig() {\n\t\tTelescopeConfig telescopeConfig = new TelescopeConfig(\"ISS_Default\");\n\t\ttelescopeConfig.setAutoGuiderStarSelectionMode(TelescopeConfig.STAR_SELECTION_RANK);\n\t\ttelescopeConfig.setAutoGuiderStarSelection1(1);\n\t\ttelescop...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an adjacency list representation of the graph referred to by the list of edges. The map contains adjacency list with key as a child and value as the list of parents.
protected Map edgeList2Graph(Collection<PCRelation> relations, Map nameIDMap){ Map map = new HashMap(); List l = null; for( Iterator it = relations.iterator(); it.hasNext(); ){ PCRelation rel = (PCRelation)it.next(); if(map.containsKey(nameIDMap.get(rel.child))){ ...
[ "public Map<V,List<E>> adjacencyMap(){\n\t\tMap<V,List<E>> ret = new HashMap<V,List<E>>();\n\t\tfor (E e : edges){\n\t\t\tif (virtualEdges.contains(e))\n\t\t\t\tcontinue;\n\t\t\tList<E> list;\n\t\t\tif (!ret.containsKey(e.getOrigin())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getOrigin(), list);\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an game situation considering the given settings. Initializes all fields where the board size is defined in the given settings.
public GameSituation(GameSettings gameSettings) { this.currentLevel = gameSettings.getLevel(1); this.score = 0; this.gameSettings = gameSettings; initFields(); }
[ "private static void setUpGame()\n {\n frame = new JFrame();\n getSizeFromUserInput();\n String initMessage = \"Please enter a start state.\";\n init = getStateFromUserInput(initMessage);\n String goalMessage = \"Now, enter a final state.\";\n goal = getStateFromUserInpu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates matches of 3 ghosts or more, combines any intersecting matches, and removes them from the grid Called when no match chain is active, thereby creating a chain
public void matchingThree() { Matcher m = new Matcher(); for (int i = 0; i < 10; i++) { m.matchRowThree(i); m.matchColumnThree(i); } //m.merging(); //currently buggy m.destruction(); }
[ "private void destruction() {\n\t\t\tint hi = 0, vi = 0, ti = 0;\n\t\t\twhile (ti < tMatches.size()) {\n\t\t\t\tMatch t = tMatches.get(ti);\n\t\t\t\tfor (Coordinate c : t.getSpaces()) {\n\t\t\t\t\tgrid[c.getRow()][c.getCol()].removeGhost();\n\t\t\t\t}\n\t\t\t\tti++;\n\t\t\t}\n\t\t\twhile (hi < hMatches.size()) {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column registerinfo.Ext_Tran_Ind
public String getExtTranInd() { return extTranInd; }
[ "public String getTransactionNo() {\r\n return transactionNo;\r\n }", "public String getEinoTransNo() {\r\n return einoTransNo;\r\n }", "public void setExtTranInd(String extTranInd) {\n this.extTranInd = extTranInd == null ? null : extTranInd.trim();\n }", "public String getTranI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test that mutates the same key on a different cache (backingmap) than the one that the frontdoor EP is executing on. Test that the user and PK indices remain correct.
@Test public void testSameKeyAccessDiffCache() { doStressTest("IdxTestSKADC", getCacheName0(), getCacheName1(), IdentityExtractor.INSTANCE, new CompositeKeyCreator() { public CompositeKey getCompositeKey(Object oKeyNatural, NamedCac...
[ "@Test\n public void testSameKeyAccessDiffCacheMulti()\n {\n doStressTest(\"IdxTestSKADCM\", getCacheName0(), getCacheName1(),\n IdentityExtractor.INSTANCE,\n new CompositeKeyCreator()\n {\n public CompositeKey getCompositeKey(Object o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserts into task_panel table
public static void createTaskPanel( TaskTaskKey aTaskTask, PanelKey aPanel ) { TaskPanelTable lTaskPanelTable = TaskPanelTable.create( new TaskPanelKey( aTaskTask, 1 ) ); lTaskPanelTable.setPanel( aPanel ); lTaskPanelTable.insert(); }
[ "int insertTask(PerunSession sess, Task task);", "void insert(Issuetaskctrl record);", "@Insert\r\n void insertTask(Task task);", "void insertPendingTasks(Map<Integer, ITaskConfig> tasks);", "private void addNewTask() {\n //load data from form to this.task object\n updateTask();\n //call t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the miss latency of the translation lookaside buffer (TLB).
public void setTlbMissLatency(int tlbMissLatency) { this.tlbMissLatency = tlbMissLatency; }
[ "public int getTlbMissLatency() {\n return tlbMissLatency;\n }", "public void setTlbHitLatency(int tlbHitLatency) {\n this.tlbHitLatency = tlbHitLatency;\n }", "public void updateLatency(U64 latency);", "@Override\n\tprotected int getMissDelay() {\n\t\t// TODO Auto-generated method stub\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for classes that wrap a Collection Record (an Item in a Collection of Collection Records) in a repository that assignes handles to its contents (including Collection Records).
public interface CollectionRecord { /** * Gets the id attribute of the CollectionRecord object * * @return The id value */ public String getId(); /** * Gets the setSpec attribute of the CollectionRecord object * * @return The setSpec value */ public String getSetSpec(); /** * Gets t...
[ "public interface CollectionField extends RelationField {\n\n}", "protected abstract Collection createCollection();", "public interface CimiCollection<E> extends CimiResource {\n\n /**\n * Get the real collection.\n * \n * @return The collection\n */\n CimiArray<E> getCollection();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
li[datacategory='trending news'] li span:nthchild(2)
public static void main(String[] args) { String workDir = System.getProperty("user.dir").toString(); String geckoDriver = Paths.get(workDir,"Driver","geckodriver.exe").toString(); System.setProperty("webdriver.gecko.driver", geckoDriver); WebDriver driver = new FirefoxDriver(); driver.get("https://in.yahoo.co...
[ "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public void selectRandomNews(){\n webDriver.findElement(By.cssSelector(\"div:nth-of-...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the todos before and after the current todo in the ordered set where todoText = &63;.
public Todo[] findByTodoText_PrevAndNext( long todoId, String todoText, com.liferay.portal.kernel.util.OrderByComparator<Todo> orderByComparator) throws NoSuchTodoException;
[ "public Todo[] findByUuid_PrevAndNext(\n\t\t\tlong todoId, String uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;", "public Todo[] findByUuid_C_PrevAndNext(\n\t\t\tlong todoId, String uuid, long companyId,\n\t\t\tcom.liferay.portal.k...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the border color for this tank.
protected final void setBorderColor(Color borderColor) { BorderStroke bStroke = new BorderStroke(borderColor, BorderStrokeStyle.SOLID, null, new BorderWidths(MonitoringViewConstants.TANK_BORDER_WIDTH)); Border newBorder = new Border(bStroke); this.setBorder(newBorder); }
[ "public void setBorderColor(Color borderColor)\r\n {\r\n this.borderColor = borderColor;\r\n }", "public void setBorderColor(Color newColor) { borderColor = newColor; redrawSelf(); }", "void setBorder(Color color, int thickness);", "public void setBorderColour(Color borderColour) {\n\t\tthis.borderCo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calcula deslocamento (offset) a partir da pagina e do limite
public int getOffset() { return (this.limite * (this.pagina - 1)); }
[ "public int getOffset()\n {\n \n int offset = 0;\n if (_currentPage > 0)\n {\n offset = (_currentPage - 1) * _pageSize;\n }\n \n return offset;\n }", "private float fixPageOffset(GalleryView view) {\n int pageRange = pagerLayout.getPageRange();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get current state of the leader.
public KetchLeader.State getState() { return state; }
[ "LeaderCardState getState();", "public PublicPlayerState currentPlayerState() {\n return playerState.get(currentPlayerId);\n }", "public String getLeader() {\n return leader;\n }", "@Override\r\n public PlayerState currentPlayerState() {\r\n return privatePlayerState.get(currentPlayerI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the creditStatusDate value for this Account.
public void setCreditStatusDate(java.lang.String creditStatusDate) { this.creditStatusDate = creditStatusDate; }
[ "public void setStatusDate(Date statusDate)\r\n {\r\n m_statusDate = statusDate;\r\n }", "public void setAccountStatusDate(java.lang.String accountStatusDate) {\n this.accountStatusDate = accountStatusDate;\n }", "@Override\n public void setStatusDate(java.util.Date statusDate) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Simplify this and all following flowblocks.
public void simplify() { block.simplify(); if (nextByCodeOrder != null) nextByCodeOrder.simplify(); }
[ "public void simplify() {\n if (this.list.size() == 1\n && (this.list.get(0) instanceof CodeBlockStmt)) {\n CodeBlockStmt block = (CodeBlockStmt) this.list.get(0);\n block.getBody().simplify();\n\n this.list.clear();\n this.list.addAll(block.getBody(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get view lesson permissions
@PreAuthorize("hasAnyAuthority('" + ROLENAME_TEACHER + "','" + ROLENAME_ALP_TEMPLATE_ADMIN + "')") @GetMapping(URL_MY_LIBRARY_LESSON_USER_PERMISSIONS) @ResponseBody @ReadOnlyConnection public JsonResult<ResourceUserPermissionModel> getViewLessonPermission(@PathVariable UUID lessonUuid) { JsonResult<Resourc...
[ "public abstract Permissions getPermissions(Permissible mod);", "List<IPermission> getPermissions();", "List<AccessRights> getAccessRights();", "String getPermission();", "Access getAccess();", "abstract public void getPermission();", "int getPermissionRead();", "Access getAccess(Level level);", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Close ascii IrregularXsectsInp data file
protected void close() { try { _asciiIn.close(); } catch (IOException e) { System.out.println( "Error ocurred while closing file " + _directory + _filename + _filetype + ":" + e.getMessage()); } // catch }
[ "public static void closeRoundSevenFile()\n {\n readFile.close();\n }", "void\ncloseSubpHeader();", "public static void closeRoundSixFile()\n {\n readFile.close();\n }", "public void close()\nthrows HdfException\n{\n if (bugs >= 1) {\n prtf(\"HdfFileWriter.close: filePath: \\\"\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test for bug 40944. configure(URL) never closed opened stream.
@Test public void testURL() throws IOException { final File file = new File("target/unclosed.properties"); try (final FileWriter writer = new FileWriter(file)) { writer.write("log4j.rootLogger=debug"); } final URL url = file.toURI().toURL(); PropertyConfigurator.c...
[ "@Test\n public void openDoesNothingIfAlreadyOpen() throws IOException\n {\n HttpsTransport transport = new HttpsTransport(mockConfig);\n transport.open();\n transport.open();\n\n final DeviceClientConfig expectedConfig = mockConfig;\n new Verifications()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
crawl recipes starting with the seed
public void crawl() { crawl(this.seed); // crawl the remaining links Set<String> remaining = Sets.difference(recipeLinks, crawled); remaining.forEach(this::crawl); writeInlinks(); if (inlinksFile.length() > 21 && outlinksFile.length() > 23) { System.out.pri...
[ "public static void crawlB(URL seed) throws IOException, InterruptedException{\n\t linkcount = 0;\n\t int pagesSearched = 0;\n\t frontier.add(seed); // Add seed to frontier\n\t URL website = seed;\n\t while( (website = frontier.peek()) != null && linkcount < 1000)\n\t {\n\t\t URL del;\n\t\t Pattern csumass...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Property accessor, returns NULL/NA if not overloaded.contextConductionInd.
public BL getContextConductionInd() { return BLimpl.NI; /* should be NA, but that causes trouble for string-literal hibernated properties. */ }
[ "public boolean isContextConductionInd() {\n\t\treturn contextConductionInd;\n\t}", "public CS getContextControlCode() { return CSnull.NI; /* should be NA, but that causes trouble for string-literal hibernated properties. */ }", "public void setContextConductionInd(BL contextConductionInd) { /*throw new Unsuppo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a dataset with 0 instances based on a list of facts
Instances generateDatasetHeader(ArrayList<IFact> facts);
[ "private static StatisticalCategoryDataset createDataset() {\n\n final DefaultStatisticalCategoryDataset result = new DefaultStatisticalCategoryDataset();\n\n int numStims = 20;\n double[] FRs = SachMathUtil.randRange(100d, 0d, numStims);\n double[] stdevs = SachMathUtil.randRange(30d, 0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method for returning the admin panel to the driver as an HBox
public HBox getAdminPanel() { return mainBox; }
[ "public StackPane getAdminPanel() { return adminPanel; }", "private HBox setupMenu(){\n HBox hbox = new HBox();\r\n Button instructionsButton = new Button(\"Instructions\");\r\n instructionsButton.setOnAction((ActionEvent event) -> {\r\n System.out.println(event);\r\n sh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "wsdlbinding" element
com.sun.java.xml.ns.j2Ee.XsdQNameType getWsdlBinding();
[ "ServiceBinding getBinding();", "public Binding getBinding(QName name);", "Binding getBinding();", "public QName getPortBinding() {\n if (super.getProperty(BINDING_NAME) == null) {\n return null;\n } else {\n return QName.valueOf(super.getProperty(BINDING_NAME));\n }\n }", "WsdlServicePr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Installs the secondary LRU software in the following procedure: Loop through all the secondary LRUs and generate the installsecondary.txt file
private boolean installSecondaryLru(final List<String> secondaryLruList, final HashMap<String, ParentCI> parentCIsToInstall) { boolean isStepNumberIncremented = false; for (final String secondaryLru : secondaryLruList) { if (parentCIsToInstall.containsKey(secondaryLru)) { if(!isStepNumberIncremented) { ...
[ "private boolean installSecondaryLru(final ParentCI newParentCI) {\r\n\t\tstepName = \"Secondary LRU: \" + newParentCI.getLruType();\r\n\t\tString subStepName = \"Generating secondary LRU install list for: \" + newParentCI.getLruType();\r\n\t\tsendSA(subStepName, \"0%\", true, true);\r\n\t\tif(updateService.isInfo(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the response footers in the order in which they were read.
public Header[] getResponseFooters() { return getResponseTrailerHeaderGroup().getAllHeaders(); }
[ "@Override\n public List<Component> getFooters()\n {\n if (footers == null)\n {\n footers = new ArrayList<>();\n }\n return footers;\n }", "public Set<String> getLastResponseHeaderNames() {\r\n\t\treturn (lastResponseHeaders != null) ? Collections.unmodifiableSet(la...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns wheel by Id
private WheelView getWheel(int id) { return (WheelView) globalView.findViewById(id); }
[ "private WheelView getWheel(int id) {\n return (WheelView) findViewById(id);\n }", "private WheelView getWheel(int id) {\n\t\treturn (WheelView) findViewById(id);\n\t}", "RiceCooker getById(long id);", "public MotorCycle findId(String id){\r\n\t\treturn motorCycleDao.findId(id);\r\n\t}", "Widget g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Publishes the specified object to the topic with the specified topicName. That is, the object will be published immediately as an ObjectMessage, with the specified messageProperties and messageType, to the message service. If this MessageServiceClient is not a publisher on the topic with the topicName yet, it will auto...
public void publishNowTo( final String topicName, final Serializable object, final Properties messageProperties, final String messageType) throws MessageServiceException { publishNowTo(topicName, object, getMessageProperties(messageProperties, messageType)); }
[ "public void publishNowTo(final String topicName, final Serializable object, final String messageType)\r\n throws MessageServiceException {\r\n publishNowTo(topicName, object, getMessageProperties(null, messageType));\r\n }", "public void publishNowTo(final String topicName, final Serializable object...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends condition "process variable vName == vValue"
public ActivityIteratorExpressionBuilder addProcessVariableEquals(String vName, String vValue);
[ "public ActivityIteratorExpressionBuilder addProcessVariableEquals(String vName,\n Object vValue) throws RootException;", "public ActivityIteratorExpressionBuilder addVariableEquals(String vName,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests for simple iterate keys operation.
@Test public void simpleIterateKeysTest() { Map<String, String> expKeyValMap = new HashMap<>(); for (int i = 0; i < 10; i++) { String expKey = UUID.randomUUID().toString(); String expVal = UUID.randomUUID().toString(); expKeyValMap.put(expKey, expVal); ...
[ "@Test\n public void test_keys() {\n\n Enumeration<String> keys = ht10.keys();\n while (keys.hasMoreElements()) {\n String s = keys.nextElement();\n assertTrue(\"Missing key from enumeration\", keyVector.contains(s));\n }\n\n assertEquals(\"All keys not retrieved...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine if displays within this display manager should allow editing.
public boolean allowsEditing() { if (type==SOURCE) return true; else return false; }
[ "protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}", "protected abstract boolean canEdit(final C component);", "public boolean isEditEnabled() {\r\n\t\t// entry is already deleted\r\n\t\tif (entity.getState().equals(DataState.DELETE)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Method that populates recycler view of activity with reddit's post data
public void populateUI(final List<PostData> childList){ /*final boolean favoriteListHasData = mDataViewModel.getAllFavorites().getValue() != null && mDataViewModel.getAllFavorites().getValue().size() > 0;*/ homePageAdapter = new HomePageAdapter(childList, new HomePageAdapter.ButtonsListe...
[ "private void configureRecyclerView(){\n this.postAdapter = new PostAdapter(generateOptionsForAdapter(PostHelper.getAllMyPosts(BaseActivity.getUid())),\n Glide.with(this), this,false, false);\n\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerVi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test si dans le groupe l'etudiant est seul
public boolean estSeul(int idGroupe) throws RemoteException { String requete = "select count(*) from groupeassoc where ga_idGroupe = " + idGroupe; System.out.println("requete estSeul : " + requete); DataSet data = database.executeQuery(requete); String[] line = null; int...
[ "public boolean isGroup();", "private boolean findEmptyGroup(){\r\n boolean isEmpty = true;\r\n TreeNode root = (TreeNode)sponsorHierarchyTree.getModel().getRoot();\r\n TreePath result = findEmptyGroup(sponsorHierarchyTree, new TreePath(root));\r\n if( result != null && result.getL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a HexagonShape instance with specified values for instance variables.
public HexagonShape(int x, int y, int deltaX, int deltaY, int width, int height) { super(x, y, deltaX, deltaY, width, height); }
[ "public HexagonShape() {\n\t\tsuper();\n\t}", "public HexagonShape(int x, int y) {\n\t\tsuper(x, y);\n\t}", "public HexagonShape(int x, int y, int deltaX, int deltaY) {\n\t\tsuper(x, y, deltaX, deltaY);\n\t}", "private static Hexagon createHexagon(String[] input) {\r\n int px = Integer.parseInt(input[1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a gridder for the specified tensors.
public BlendedGridder2(Tensors2 tensors) { setTensors(tensors); }
[ "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "private Grid makeGrid()\n\t{\n\t\tGrid grid = Grid.grid().\n\t\t\t\tBus(\"1\").\n\t\t\t\tSlackSource(\"Slack\", BASE_VOLTAGE, 0, 0, 0).\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns all the Education Types
public List<EducationTypeRes> getEducationTypes() { List<EducationType> educationtype = dao.getEducationTypes(); List<EducationTypeRes> educationtypeList = new ArrayList<>(); EducationTypeRes educationtypeRes = null; for (EducationType educationtypes : educationtype) { educationtypeRes = new Edu...
[ "public ArrayList<EducationalInfo> getEducation() {\n return education;\n }", "public List<String> getBasicExpenseObjectTypes(Integer universityFiscalYear);", "public List<String> getExpenseObjectTypes(Integer universityFiscalYear);", "public Enumeration<String> expertises();", "String[] getSchool...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AADM_Model__Group_1__0__Impl" $ANTLR start "rule__AADM_Model__Group_1__1" InternalAADMParser.g:3582:1: rule__AADM_Model__Group_1__1 : rule__AADM_Model__Group_1__1__Impl ;
public final void rule__AADM_Model__Group_1__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:3586:1: ( rule__AADM_Model__Group_1__1__Impl ) // InternalAADMParser.g:3587:2: rule__AADM_Model__Group_1__1__Impl ...
[ "public final void rule__AADM_Model__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:3532:1: ( rule__AADM_Model__Group_0__1__Impl )\n // InternalAADMParser.g:3533:2: rule__AADM_Model__Group_0__1__Im...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleJoinNode" $ANTLR start "entryRuleMergeNode" InternalActivityDiagram.g:396:1: entryRuleMergeNode : ruleMergeNode EOF ;
public final void entryRuleMergeNode() throws RecognitionException { try { // InternalActivityDiagram.g:397:1: ( ruleMergeNode EOF ) // InternalActivityDiagram.g:398:1: ruleMergeNode EOF { before(grammarAccess.getMergeNodeRule()); pushFollow(FollowSe...
[ "public final void entryRuleJoinNode() throws RecognitionException {\n try {\n // InternalActivityDiagram.g:369:1: ( ruleJoinNode EOF )\n // InternalActivityDiagram.g:370:1: ruleJoinNode EOF\n {\n before(grammarAccess.getJoinNodeRule()); \n pushFollow(F...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Original signature : int OpenMM_AmoebaOutOfPlaneBendForce_getNumOutOfPlaneBends(const OpenMM_AmoebaOutOfPlaneBendForce)
public static native int OpenMM_AmoebaOutOfPlaneBendForce_getNumOutOfPlaneBends(PointerByReference target);
[ "public static native int OpenMM_AmoebaStretchBendForce_getNumStretchBends(PointerByReference target);", "public static native int OpenMM_AmoebaOutOfPlaneBendForce_usesPeriodicBoundaryConditions(PointerByReference target);", "public static native void OpenMM_AmoebaOutOfPlaneBendForce_getOutOfPlaneBendParameters...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if two given provinces are connected
private boolean confirmIfProvincesConnected(String province1, String province2) throws IOException { String content = Files .readString(Paths.get("src/unsw/gloriaromanus/province_adjacency_matrix_fully_connected.json")); JSONObject provinceAdjacencyMatrix = new JSONObject(content); ...
[ "private boolean sameConnection(PortProto pp1, PortProto pp2)\n \t{\n \t\tArcProto [] arcs1 = pp1.getBasePort().getConnections();\n \t\tArcProto [] arcs2 = pp2.getBasePort().getConnections();\n \t\tif (arcs1 == arcs2) return true;\n \t\tboolean [] found = new boolean[arcs2.length];\n \t\tfor(int i=0; i<arcs1.length...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if a library is equal to this one. Ignores versions.
@Override public boolean equals(Object object){ if(object.getClass() != getClass()) return false; Library library = (Library) object; return library.group.equals(group) && library.name.equals(name); }
[ "@Override\n public boolean equals(Object o) {\n if (o instanceof Library) {\n if (((Library) o).getId() == this.ID) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "public boo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Expression Boolean'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseExpression_Boolean(Expression_Boolean object) { return null; }
[ "public T caseOpBool(OpBool object)\n {\n return null;\n }", "public T caseExprBool(ExprBool object)\n {\n return null;\n }", "public T caseBooleanExpression(BooleanExpression object) {\n\t\treturn null;\n\t}", "public T caseBooleanBinaryExpression(BooleanBinaryExpression object) {\n\t\treturn null;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a thread ListAdapter set to a specific page. Used for returning to a page after orientation change or starting at the beginning of a thread. It does not validate the page range.
public ThreadListAdapter createThreadAdapter(int threadid, ThreadDisplayFragment display, int page) { ThreadListAdapter ad = new ThreadListAdapter(threadid, display, page); fragments.add(ad); return ad; }
[ "public ThreadListAdapter createThreadAdapter(int id, AwfulUpdateCallback frag) {\n \t\tThreadListAdapter ad = new ThreadListAdapter(id, frag);\n \t\tfragments.add(ad);\n \t\treturn ad;\n \t}", "public SelectThreadPage() {\n initComponents();\n tbm = (DefaultTableModel) tblthread.getModel();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Release any references to factory instances associated with the class loader for the calling web application. This method should be called as apart of web application shutdown in a container where the JavaServer Faces API classes are part of the container itself, rather than being included inside the web application.
public static void releaseFactories() throws FacesException { // Identify the web application class loader ClassLoader cl = getClassLoader(); // Release any and all factory instances corresponding to this // class loader synchronized (applicationMaps) { Hash...
[ "public static void release(){ \n\t\t\tFacesContext facesContext = null;\n\t\t\ttry{\n\t\t\t\tfacesContext = FacesContext.getCurrentInstance();\n\t\t\t\tfacesContext.release();\n\t\t\t} catch(Exception e){\n\t\t\t\tif(log.isErrorEnabled()){\n\t\t\t\t\tlog.error(\"Error occurs @release()...\", e);\n\t\t\t\t}\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the property 'sorts'
@Test public void sortsTest() { // TODO: test sorts }
[ "public abstract boolean shouldSortPropertiesAlphabetically();", "boolean testSort(Tester t) {\n return t.checkExpect(this.unsorted1.sort(), new ConsLoString(\"aBc\",\n new ConsLoString(\"dEf\", new ConsLoString(\"dxy\",\n new ConsLoString(\"lmn\", new ConsLoString(\"u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets The endpoint URL of the search service.
SearchServiceRestClientImpl setEndpoint(String endpoint) { this.endpoint = endpoint; return this; }
[ "protected void setEndpointUrl(String endpointUrl)\n {\n this.endpointUrl = endpointUrl;\n }", "public void setServiceEndPoint(String urlStr) {\r\n\t\tprintDebugMessage(\"setServiceEndpoint\", \"urlStr: \" + urlStr, 1);\r\n\t\tthis.serviceEndPoint = urlStr;\r\n\t}", "public void setEndpointAddress(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the external resource configuration keys map, indexed by the resource name. The configuration key should be used for deployment specific container request.
public static Map<String, String> getExternalResourceConfigurationKeys( Configuration config, String suffix) { final Set<String> resourceSet = getExternalResourceSet(config); final Map<String, String> configKeysToResourceNameMap = new HashMap<>(); LOG.info("Enabled external resources...
[ "public abstract ImmutableMap<String, ResourceNameConfig> getResourceNameConfigs();", "public Map<String, ResourceConfiguration> getResourceConfigs() {\n return _resourceConfigMap;\n }", "LinkedHashMap<String, ResourceSpecification> resources();", "public Map retrieveApplicationConfigurationsMap();", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the parent Geometrie object
public void setParent(Geometrie parent) { m_parent = parent; }
[ "void setParent(TrieNode parent)\n {\n this.parent = parent;\n }", "public Geometrie getParent()\r\n {\r\n return m_parent;\r\n }", "public void setParent(HtmlMap<T> parent)\n\t{\n\t\tthis.m_parent = parent;\n\t}", "public void setParent(iTData parent)\r\n {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets Service Area ID.
public int getServiceAreaId() { return mServiceAreaId; }
[ "public ServiceArea getServiceArea(final Long id);", "UUID getAreaId();", "public String getArea_id(){\r\n\t\treturn this.area_id ;\r\n\t}", "public Integer getAreaId() {\r\n return areaId;\r\n }", "public int getAreaId() {\r\n return areaId;\r\n }", "public Integer getAreaId() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Private constructor for ComputerDAO singleton.
ComputerDAO() { }
[ "public ProtocoloDAO() {\n }", "protected AbstractDAO() {\n }", "public ApppicDAOImpl() {\n\t\tsuper();\n\t}", "public CertidaoDAOImpl() {\n\t\tsuper(Certidao.class, NOME_COMANDO_PESQUISAR, NOME_COMANDO_CONSULTAR_IDDB2);\n\t}", "public DatabaseAbstractor() {\r\n // do nothing\r\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the hist_type value for this PO_Details_ResponseGR_ITEMITEM.
public void setHist_type(java.lang.String hist_type) { this.hist_type = hist_type; }
[ "public java.lang.String getHist_type() {\r\n return hist_type;\r\n }", "@Override\n public void setItem_type(java.lang.String item_type) {\n _parts.setItem_type(item_type);\n }", "public void setLossHistoryType(typekey.LossHistoryType value) {\n __getInternalInterface().setFieldValu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a player reference in all scenes
public void addPlayerToAllScenes( ) { for( SceneDataControl sceneDataControl : scenesDataControlList ) sceneDataControl.addPlayerInReferenceList( ); }
[ "void playerAdded();", "void addObjectToPlayer(Player player);", "public void addPlayer(Color player ){\n playersOwn.add(player);\n }", "public void addPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n player.m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Entity__Group_5__2__Impl" $ANTLR start "rule__Entity__Group_5__3" InternalDomain.g:1323:1: rule__Entity__Group_5__3 : rule__Entity__Group_5__3__Impl rule__Entity__Group_5__4 ;
public final void rule__Entity__Group_5__3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDomain.g:1327:1: ( rule__Entity__Group_5__3__Impl rule__Entity__Group_5__4 ) // InternalDomain.g:1328:2: rule__Entity__Group_5__3__Impl rule__...
[ "public final void rule__Entity__Group_5__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:1339:1: ( ( ( rule__Entity__Group_5_3__0 )* ) )\n // InternalDomain.g:1340:1: ( ( rule__Entity__Group_5_3__0 )* )\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the cluster utilization factor specifying what percentage of hosts in the cluster already have a foreign (different role) preemptible job instance assigned to them.
double getVictimClusterUtilization() { return victimClusterUtilization; }
[ "public int getCurrentCpuFailoverResourcesPercent() {\r\n return currentCpuFailoverResourcesPercent;\r\n }", "float getCostFactor();", "public double getCpuUsage() {\n \t\tif (cpuUsage > 100) {\n \t\t\treturn 100;\n \t\t}\n \t\treturn cpuUsage;\n \t}", "private double createNodesInCluster() {\n t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
friend group action persistent provider.
public interface FriendGroupActionPersistentProvider { /** * save change log. * * @param changeLog change log. */ void save(FriendGroupChangeLog changeLog); void save(FriendGroupContactChangeLog contactChangeLog); Collection<FriendGroupContactChangeLog> loadContactLogs(FriendGroup...
[ "InternalResponse insertGroupSetToAction(ActionRequest actionRequest);", "default void onKicked(GroupID group, String name) {}", "public ResourceLocation getFriendKey() {\n return KEY_OVERSLIME_FRIEND;\n }", "protocol.Message.NotifyFriendChangedReqMsg.Detail.Action getAction();", "default void onInvited...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Detect if program closed normally using file If closed normally do nothing, if not then ask to delete settings If safe file doesn't exist (first start?) then make it
private void safe() { safe = new File(dotfolder + File.separator + ".safe"); safe.deleteOnExit(); if (!safe.exists()) { try { safe.createNewFile(); } catch (IOException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex...
[ "private void checkSettingsFile() throws IOException {\n\t\tif (!settingsFile.exists()) {\n\t\t\tsettingsFile.createNewFile();\n\n\t\t}\n\t\treturn;\n\t}", "private void closeFile() {\n if (fileSpec != null) {\n boolean modOK = modIfChanged();\n if (currentFileModified) {\n filePrefs.handl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes a neuronal network with given number of neurons and weights, biases and activation functions
void initNeuronalNetwork(int numOfInputNeurons, int numOfHiddenLayers, int[] numOfHiddenLayerNeurons, int numOfOutputLayerNeurons, double[][][] weightsHiddenLayer, double[][] weightsOutputLayer, double[][] biasesHiddenLayer, double[] biasesOutputLayer, ActivationFunction[][] activationFunctionsHiddenLayer, ActivationFu...
[ "void initNeuronalNetwork(int numOfInputNeurons, int numOfHiddenLayers, int[] numOfHiddenLayerNeurons, int numOfOutputLayerNeurons, CostFunction costFunction, LearningAlgorithm learningAlgorithm, double learningRate) {\n Random r = new Random(); // Initializes a random class (For creating the random weights ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleNET_DECLARATION" $ANTLR start "entryRuleLIST_OF_NET_DECL_ASSIGNMENTS" ../com.ironglass.hdlforge.ui/srcgen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:537:1: entryRuleLIST_OF_NET_DECL_ASSIGNMENTS : ruleLIST_OF_NET_DECL_ASSIGNMENTS EOF ;
public final void entryRuleLIST_OF_NET_DECL_ASSIGNMENTS() throws RecognitionException { try { // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:538:1: ( ruleLIST_OF_NET_DECL_ASSIGNMENTS EOF ) // ../com.ironglass.hdlf...
[ "public final void entryRuleLIST_OF_NET_ASSIGNMENTS() throws RecognitionException {\r\n try {\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:286:1: ( ruleLIST_OF_NET_ASSIGNMENTS EOF )\r\n // ../com.ironglass.hdl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rewrite the Hosts file with the new network number
void doHostFile(boolean applyForReal, String net, int thisNum, int maxNum) { PrintWriter hf; try { if (applyForReal) hf = new PrintWriter(new FileWriter(HOSTS)); else hf = new PrintWriter(System.out); hf.println("# This host file built by Java CrsSetup "); hf.println("127.0.0.1\tlocalhos...
[ "private void changeServerName()\n\n {\n String jmxLoadFile;\n try {\n jmxLoadFile =\n FileUtils.readFileToString(new File(\"/root/Hammond/apache-jmeter-3.0/AT_Load.JMX\"));\n String newjmxLoadFile = jmxLoadFile.replaceAll(\"HostName\", agcMachine + \".ca.com\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 display_time = 4;
int getDisplayTime();
[ "public int getDisplayTime() {\n return displayTime_;\n }", "public long getNoShowTime();", "public void setNoShowTime(long time);", "int getCreatetimeus();", "public void setFlextime() {}", "private void updateDisplay() {\n\t\ttime = hours.getDisplayValue() + \":\" + minutes.getDisplayValue();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new evp division with the primary key. Does not add the evp division to the database.
@Override @Transactional(enabled = false) public EVPDivision createEVPDivision(long evpDivisionId) { return evpDivisionPersistence.create(evpDivisionId); }
[ "public EVPDivision create(long evpDivisionId);", "Division createDivision();", "@Indexable(type = IndexableType.REINDEX)\n\t@Override\n\tpublic EVPDivision addEVPDivision(EVPDivision evpDivision) {\n\t\tevpDivision.setNew(true);\n\n\t\treturn evpDivisionPersistence.update(evpDivision);\n\t}", "public EVPDivi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all Entity class from persistence units bundle , The persistence units bundle have MetaPersistenceScanPackage information on the MANIFEST.mf.
public List<Class<?>> getPersistenceList(){ List<Class<?>> clazzList = new ArrayList<Class<?>>(); Bundle[] bundles = bundleContext.getBundles(); try { clazzList = resolverAllPersistenceUnitsClass(bundles); } catch (Exception e) { logger.error("getPersistenceList fail...",e); } return clazzList...
[ "public static Set<Class<? extends Entity>> getEntityBeans() {\r\n\t\tfinal Set<Class<? extends Entity>> entityClasses=new HashSet<>();\r\n\t\tfinal ClassLoader cl=Thread.currentThread().getContextClassLoader();\r\n\t\tfinal URL packageURL=cl.getResource(\r\n\t\t\t\tENTITY_BEANS_PACKAGE.replace(\".\", \"/\")+\"pack...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field segmentationHost is set (has been assigned a value) and false otherwise
public boolean isSetSegmentationHost() { return this.segmentationHost != null; }
[ "public boolean is_set_host() {\n return this.host != null;\n }", "public boolean isSetHost() {\r\n return this.host != null;\r\n }", "public boolean isSetHost() {\n return this.host != null;\n }", "public boolean isSetAgenthost()\r\n {\r\n synchronize...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the spouseType value for this CustomerFamily.
public com.soprabanking.amplitude.CustomerThirdPartyType getSpouseType() { return spouseType; }
[ "public void setSpouseType(com.soprabanking.amplitude.CustomerThirdPartyType spouseType) {\n this.spouseType = spouseType;\n }", "public java.lang.String getFamilyType() {\n return familyType;\n }", "public String getCustomer_Type() {\n return (String) getAttributeInternal(CUSTOMER_TY...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use BeaconController.newBuilder() to construct.
private BeaconController(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "public Beacon() {\n method = AnalysisMethod.DEFAULT;\n }", "BeaconDto create(BeaconDto beacon);", "public io.opencannabis.schema.proximity.BluetoothBeacon.Builder getBeaconBuilder() {\n \n onChanged();\n return getBeaconFieldBuilder().getBuilder();\n }", "io.opencannabis.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Locate property sources for CAS via the given environment and other resources.
Optional<PropertySource<?>> locate(Environment environment, ResourceLoader resourceLoader);
[ "private void setEnvPropertySources(\r\n\t\t\tfinal ConfigurableApplicationContext applicationContext,\r\n\t\t\tfinal String appName) throws IOException {\r\n\r\n\t\tfinal ConfigurableEnvironment contextEnv = applicationContext\r\n\t\t\t\t.getEnvironment();\r\n\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that applies the current theme to the activity
void applyTheme() { Theme theme = ThemeManager.getCurrentTheme(this); theme.setBaseTheme(this, true); // View theme.setBackgroundDrawable(this, this.mRootView, "background_drawable"); //$NON-NLS-1$ this.mNavigationView.applyTheme(); }
[ "public static void applyTheme(Context activ)\n\t{\n\t\tSharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activ);\n\t\tactiv.setTheme(preferences.getBoolean(PreferenceUtils.PREF_THEME, isDefaultThemeDark()) ? DARK_THEME : LIGHT_THEME);\n\t}", "private static void setActivityTheme(Conte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetch records that have receive_type IN (values)
public List<com.moseeker.baseorm.db.hrdb.tables.pojos.HrInterviewNotice> fetchByReceiveType(Integer... values) { return fetch(HrInterviewNotice.HR_INTERVIEW_NOTICE.RECEIVE_TYPE, values); }
[ "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids);", "List<TapiBroadcastType> broadcastFilteringTypeList();", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Home ID property for Home.
public void setHomeID(int _homeID) { homeID = _homeID; }
[ "public int getHomeID() {\n\t\treturn homeID;\n\t}", "public Integer getHomeId() {\n return homeId;\n }", "public int getHomeId() {\n return controller.getHomeId();\n }", "public final String getHomeId() {\r\n\t\treturn this.agentOwner.getHomeName();\r\n\t}", "public void setHome(Locatio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the company ID of this employee interview schedule.
@Override public long getCompanyId() { return _employeeInterviewSchedule.getCompanyId(); }
[ "@Override\n public long getEmployeeInterviewScheduleId() {\n return _employeeInterviewSchedule.getEmployeeInterviewScheduleId();\n }", "@Override\n public long getInterviewScheduleId() {\n return _employeeInterviewSchedule.getInterviewScheduleId();\n }", "@Override\n\tpublic long getC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if the defuzzified score given evaluates to 'yes' (i.e., should harvest).
public static boolean isYes(double score) { return (score >= 0.9); }
[ "boolean isPerfect(double score);", "public boolean isSuccessful() {\n\n return averageScore() >= 12 ;\n }", "public boolean isSalved(){\n return this.heuristic() == 0;\n }", "public boolean questionShouldBeShown() {\n\t\treturn this.score < MAX_SCORE; // this.score == 3 ? false : true\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the words from readDocument
@Override public List<String> displayDocument() { return words; }
[ "public void readWordList() {\n try {\n wordList = XmlStringArrayParser.parse(getAssets().open(Constant.WORDLISTFILE),\n settings.getInt(\"wordMaxLength\", 7));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Text[] getWords () ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
addCourseTaken() Method for adding a course taken to the coursesTaken attribute of a StudentRecord object
public void addCourseTaken(CourseTaken courseTaken) { coursesTaken.add(courseTaken); }
[ "public void addTakenCourse(CourseTaken takenCourse) {\r\n\t\tcoursesTaken.add(takenCourse);\r\n\t}", "public void addTakenCourse(List<CourseTaken> takenCourses) {\r\n\t\tcoursesTaken.addAll(takenCourses);\r\n\t}", "public void addCourse(Course course) {\r\n\r\n courseTaken.add(course);\t\t\t\t\t\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ecs_takegoods_order.tg_id
public void setTgId(Integer tgId) { this.tgId = tgId; }
[ "public Integer getTgId() {\n return tgId;\n }", "public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }", "public void setTpg(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg tpg)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the limit on the number of dialogs this endpoint can concurrently start.
@Override public int getNumDialogsLimit() { return endpointHandler.getNumDialogsLimit(); }
[ "int getMaximumSendAttempts();", "public int getMaxConcurrentRequests() {\n return maxConcurrentRequests;\n }", "int getMaximumSurveyRequestSendAttempts()\n throws SurveyServiceException;", "int getAttemptLimit();", "public int getMaxConcurrentRequest() {\n return maxConcurrentRequest;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }