query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns the create date of this employee. | @Override
public java.util.Date getCreateDate() {
return _employee.getCreateDate();
} | [
"Date getCreateDate();",
"public Date getCreateDt() {\t\n return this.createDt;\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _esfState.getCreateDate();\n\t}",
"@Override\n public java.util.Date getCreateDate() {\n return _person.getCreateDate();\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new lqn handler. | public LqnHandler(File lqnFile) {
initLQN(lqnFile.toPath());
} | [
"Handler createHandler();",
"public GenericHandler() {\n\n }",
"private void initLQN(Path lqnFilePath) {\r\n\t\tthis.lqnFilePath = lqnFilePath;\r\n\t}",
"public AbstractHandler() {\r\n }",
"public static IQueryHandler getQueryHandler() {\n if (queryHandler == null) {\n \tqueryHandler = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the AceEntity with ID 'id', or null if no such AceEntity. | AceEntity findEntity (String id) {
for (int i=0; i<entities.size(); i++) {
AceEntity entity = (AceEntity) entities.get(i);
if (entity.id.equals(id)) {
return entity;
}
}
System.err.println ("*** unable to find entity with id " + id);
return null;
} | [
"public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 tx_out_index = 4; | public int getTxOutIndex() {
return txOutIndex_;
} | [
"int getTxOutIndex();",
"public int getTxOutIndex() {\n return txOutIndex_;\n }",
"public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);",
"public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);",
"protected voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get redis settings from a file. | @Test
public void getRedisSettings() throws FileNotFoundException {
GsonBuilder gsonBuilder = new GsonBuilder();
Gson gson = gsonBuilder.create();
RedisSettings settings = gson.fromJson(new BufferedReader(new FileReader("src/test/resources/settings.json")), RedisSettings.class);
as... | [
"@Test\n public void setRedisSettingsFromFile() throws FileNotFoundException {\n Settings.setRedisSettings(\"src/test/resources/settings.json\");\n\n assertEquals(true, Settings.getRedisSettings().getUseRedis());\n assertEquals(6379, Settings.getRedisSettings().getRedisPort());\n asse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method deletes exception note from exceptionNoteList at specified index. | public void deleteExceptionNote(int lineNum) {
correctionExceptionNoteList.remove(lineNum);
} | [
"private void delete(int index) {\r\n notes.remove(index);\r\n }",
"public void deleteNote(int index) throws NotepadOutOfBoundsException {\n if (!isRightBounds(index))\n throw new NotepadOutOfBoundsException(index);\n _notes[index - 1] = null;\n _notes = moveNotes(index);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use SearchSeatWorksResponse.newBuilder() to construct. | private SearchSeatWorksResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private SearchSeatWorksRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GetRandSeatWorkQeustionsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DeleteSeatWorkResponse(com.google.protobuf.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
overwritten paint method, scales tour and paints it into the panel | protected void paintComponent(Graphics g)
{
// clear panel
g.setColor(Color.white);
g.fillRect(0, 0, getSize().width, getSize().height);
if( coords == null )
return;
int[][] tour = scaleTour(getSize().width, getSize().height);
int nnodes = tour[0].length;
// ... | [
"public void paint( Graphics g ){\n super.paint(g);\n if( g instanceof Graphics2D ){\n g2d = (Graphics2D)g;\n int width = this.getWidth();\n int height = this.getHeight();\n squareSize = Math.min(width,height);\n halfSquareSize = squareSize*0.5f;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column CIF_KYC_FINANCIAL_INFO.KYC_FINANCIAL_RELATIONSHIP | public String getKYC_FINANCIAL_RELATIONSHIP() {
return KYC_FINANCIAL_RELATIONSHIP;
} | [
"public void setKYC_FINANCIAL_RELATIONSHIP(String KYC_FINANCIAL_RELATIONSHIP) {\r\n this.KYC_FINANCIAL_RELATIONSHIP = KYC_FINANCIAL_RELATIONSHIP == null ? null : KYC_FINANCIAL_RELATIONSHIP.trim();\r\n }",
"ManagerRelationshipType getFinanceMgrRelationship();",
"public PSRelationship getCurrentRelation... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleStringList" $ANTLR start "entryRuleQualityRisk" InternalNgt.g:1040:1: entryRuleQualityRisk returns [EObject current=null] : iv_ruleQualityRisk= ruleQualityRisk EOF ; | public final EObject entryRuleQualityRisk() throws RecognitionException {
EObject current = null;
EObject iv_ruleQualityRisk = null;
try {
// InternalNgt.g:1040:52: (iv_ruleQualityRisk= ruleQualityRisk EOF )
// InternalNgt.g:1041:2: iv_ruleQualityRisk= ruleQualityRisk ... | [
"public final EObject entryRuleStringList() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStringList = null;\n\n\n try {\n // InternalNgt.g:960:51: (iv_ruleStringList= ruleStringList EOF )\n // InternalNgt.g:961:2: iv_ruleStringList= ruleString... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modifiers change TrackElements to produce effects | public interface Modifier<T extends TrackElement> {
void apply(T t);
} | [
"private void defineEffects() {\n EffectElementFactory factory = EffectElementFactory.getNewInstance(this.getContext());\n for(EffectEnum effect : EffectEnum.values()) {\n EffectElement effectElement = factory.createEffectElement(effect);\n\n // Trigger button action and add to t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Announces that the indicated coin has been emitted from the coin dispenser. Also increments the amount of coin emitted | @Override
public void coinRemoved(CoinDispenser dispenser, Coin coin) {
this.emitted = true;
this.amountEmitted += 1;
isFull = false;
} | [
"public void incrementCoinCount() {\n coinCount++;\n System.out.println(\"Rich! Coin count = \" + coinCount);\n }",
"public CoinDispenserListenerImplement() {\n\t\tthis.empty = true;\n\t\tthis.resetEmitted();\n\t\tthis.amountEmitted = 0;\n\t\tthis.isFull = false;\n\t}",
"public void betCoin(){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of CWL types | public List<CWLType> getTypes() {
return types;
} | [
"public Types getTypes();",
"List<String> getTypeNames();",
"TypeDescription[] getTypes();",
"public List getComponentTypes();",
"public List<String> getTypes() {\n return Collections.unmodifiableList(types);\n }",
"Set<String> getTypeNames();",
"public List<String> getAllDocumentTypes() {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the JLabel of the search section of the Panel (top right) | public JLabel getSearchLabel() {
return searchLabel;
} | [
"public JPanel getSearchResultPanel(){return searchResultPanel;}",
"public FindTopComponent() {\n initComponents();\n setName(Bundle.CTL_FindTopComponent());\n setToolTipText(Bundle.HINT_FindTopComponent());\n\n // Setup the single column / vertical row layout:\n final BoxLayout... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the third wrong author of the quote. | public String getFakeAuthor3() {
return fakeAuthor3;
} | [
"private String getAuthorEntry() throws InvalidEntry {\n if (authorText.getText().equals(\"\")) {\n clearAuthorField();\n throw new InvalidEntry(3);\n } else {\n return authorText.getText();\n }\n }",
"public String getOriginalAuthor() {\n return ori... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returning the integer "totalAttackBoost" | public int checkForWeapons(){
int totalAttackBoost = 0;
for(int i = 0; i < playerInventory.size(); i++){
if(playerInventory.get(i).name.toLowerCase().equals("dagger")){
totalAttackBoost = totalAttackBoost + 2;
}
else if(playerInventory.get(i).name.toLowerCase().equals("rapi... | [
"public int getTotalAttackBuff()\n {\n return 1;\n }",
"public int getnBoost(){\r\n\t\treturn nBoost;\r\n\t}",
"public int getTotalDefenseBuff()\n {\n return 1;\n }",
"public int getBonusAttackLevel();",
"public int getAttackBonus()\n {\n int attackBonus = 0;\n\n I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method creates a new floating point atom corresponding to the given value. | public static RealAtom newAtom(final float aValue) {
if (aValue == 0.0f) {
return mZero;
}
else if (aValue == 1.0f) {
return mOne;
}
else if (aValue == 2.0f) {
return mTwo;
}
else if (aValue == -1.0f) {
return mMinus... | [
"public void createNewFloat(double value);",
"FloatValue createFloatValue();",
"Float createFloat();",
"public static StackValue createFloatValue(float value) {\n return new StackValue(ValueType.FLOAT, value);\n }",
"public static Value create(AnyFloat anyFloat)\n {\n Object[] edma_pair = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Output only. The upgrade a Local campaign to a Performance Max campaign recommendation. .google.ads.googleads.v13.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation upgrade_local_campaign_to_performance_max_recommendation = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; | com.google.ads.googleads.v13.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getUpgradeLocalCampaignToPerformanceMaxRecommendation(); | [
"com.google.ads.googleads.v13.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder getUpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder();",
"boolean hasUpgradeLocalCampaignToPerformanceMaxRecommendation();",
"com.google.ads.googleads.v13.resources.Recommendation.Shoppi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a dice roll instance from a long primitive. | public DiceRoll(final long value) {
this.setValue(value);
} | [
"public LLong(long value) {\n super(size, value);\n }",
"public LongValue(long l)\n {\n m_long = l;\n }",
"public static Value createLong(long value) {\n return new Value(JDWPConstants.Tag.LONG_TAG, Long.valueOf(value));\n }",
"public static LuaNumber valueOf(long l) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the Longitude of this Blob. | public double getLongtidue(){
return this.longitude;
} | [
"public double getLongitude()\n\t{\n\t\treturn this.realBin.getLocation().getLongitude();\n\t}",
"public SignedInteger getLongitude() {\n return this.longitude;\n }",
"public double getLonValue() {\n return this.longitude;\n }",
"long getLongitude();",
"public double getLon() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for updating experiment details on experiment panel | private void refreshExperimentDetailPanel() {
JScrollPane jScrollPane = initExperimentTableWithScrolls();
this.add("br hfill vfill", jScrollPane);
this.updateUI();
} | [
"private void setExperiment(Experiment expt) {\n this.expt = expt;\n }",
"void UpdateExerciseDetail(Exercise exercise);",
"void setExperimentId(final int newExperimentID);",
"public void refreshDetails(ExperimentGroup expGrp) {\r\n Iterator expIter = expGrp.getExperimentCollection().iterator();\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'nextMatePosition' field. The mapping of the primary alignment of the `(readNumber+1)%numberReads` read in the fragment. It replaces mate position and mate strand in SAM. | public org.ga4gh.models.Position getNextMatePosition() {
return nextMatePosition;
} | [
"public org.ga4gh.models.Position getNextMatePosition() {\n return nextMatePosition;\n }",
"public org.ga4gh.models.ReadAlignment.Builder setNextMatePosition(org.ga4gh.models.Position value) {\n validate(fields()[14], value);\n this.nextMatePosition = value;\n fieldSetFlags()[14] = true;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method returns the value of the database column REPORT_DATA.ORG_NO | public String getOrgNo() {
return orgNo;
} | [
"public String getOrgno() {\n return orgno;\n }",
"public String getIntOrgNum() {\n return intOrgNum;\n }",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__MethodDecl__Group__4__Impl" $ANTLR start "rule__MethodDecl__Group__5" InternalGo.g:4699:1: rule__MethodDecl__Group__5 : rule__MethodDecl__Group__5__Impl ; | public final void rule__MethodDecl__Group__5() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalGo.g:4703:1: ( rule__MethodDecl__Group__5__Impl )
// InternalGo.g:4704:2: rule__MethodDecl__Group__5__Impl
{
... | [
"public final void rule__MethodDecl__Group__4() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:4676:1: ( rule__MethodDecl__Group__4__Impl rule__MethodDecl__Group__5 )\r\n // InternalGo.g:4677:2: rule__MethodD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to remove the answer icon and text(if text exists) from the question box. Also hides the "Next" button and displays the "Submit" button. NOTE: Called automatically when a new question is displayed. | public void removeAnswer(){
hideNextButton();
if(answerText != null)
questionBox.remove(answerText);
if(answerIcon != null)
questionBox.remove(answerIcon);
if(answerNote != null)
questionBox.remove(answerNote);
answerText = null;
answerIcon = null;
answerNote = null;
questionBox.reDraw();... | [
"private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}",
"private void removeQuestion(){\n\t\tif(questionText != null){\n\t\t\tquestionBox.remove(questionText);\n\t\t\tquestionBox.reDraw();\n\t\t}\n\t}",
"private void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PUT /pgmsElpcs > Updates an existing pgmsElpc. | @RequestMapping(value = "/pgmsElpcs",
method = RequestMethod.PUT,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<PgmsElpc> updatePgmsElpc(@Valid @RequestBody PgmsElpc pgmsElpc) throws URISyntaxException {
log.debug("REST request to update PgmsElpc : {}", pgmsEl... | [
"public void pceModify(PCEModifyContent pceModify) { \n \n String method = \"PCERuntimeSoapHandler.pceModify\";\n OSCARSNetLogger netLogger = OSCARSNetLogger.getTlogger();\n String transId = pceModify.getMessageProperties().getGlobalTransactionId();\n netLogger.init(ModuleName.PCE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
build double cell value | public static CellValueModel buildDoubleCellValueModel() {
CellValueModel model = new CellValueModel();
model.setValueType(CellValueType.NUMBER);
model.setValueHandler(new DoubleTransformHandler());
return model;
} | [
"void setCellValue(double value);",
"Double getABinaryDoubleDataSourceValue();",
"@Override\n public Double visitDouble(CellDouble d) {\n return d.evaluateCell();\n }",
"public native double getValueDouble();",
"Double getDoubleValue();",
"public static void doubleToEntry( double val, DatabaseEntry... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the languIso value for this Bapisdtext. | public java.lang.String getLanguIso() {
return languIso;
} | [
"public java.lang.String getLangu() {\n return langu;\n }",
"public void setLanguIso(java.lang.String languIso) {\n this.languIso = languIso;\n }",
"public String getAppLanguageIsoCodeFromPrefs() {\n return (String)mPrefManager.readPref(PrefManager.PREFERENCE.APP_LANGUAGE);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encodes the dangerous file types defined in DangerousFileType and prints the resulting string. When file types are added or modified, run this method to generate the new setting. | public static void main(String[] args) {
try {
String setting = encodeSetting(DangerousFileType.getKnownTypes());
decodeSetting(setting);
System.out.println(setting);
} catch(IOException e) {
System.err.println("Setting could not be encoded: " + e);
... | [
"protected static String encodeSetting(DangerousFileType[] types)\n throws IOException {\n List<String> mime = new ArrayList<String>();\n List<List<String>> ext = new ArrayList<List<String>>();\n HashMap<String, List<?>> payload = new HashMap<String, List<?>>();\n payload.put(\"m\", m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setTimeEntry method, of class Step. | @Test
public void testSetTimeEntry() {
System.out.println("setTimeEntry");
Measure expResult = new Measure(22.2, "km");
this.step.setTimeEntry(expResult);
assertEquals(expResult, this.step.getTimeEntry());
} | [
"@Test\n\tpublic void testGetTimeEntry() {\n\t\tSystem.out.println(\"getTimeEntry\");\n\t\tMeasure expResult = new Measure(22.2, \"km\");\n\t\tthis.step.setTimeEntry(expResult);\n\t\tassertEquals(expResult, this.step.getTimeEntry());\n\t}",
"public void testGetTimeEntry() throws Exception {\r\n TimeEntry t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Snap a LevelElement to the top side of another LevelElement. | void snapTop(LevelElement other); | [
"void snapBottom(LevelElement other);",
"void snapLeft(LevelElement other);",
"void snapRight(LevelElement other);",
"public void liftToTop(){\n setLiftPosition(LIFT_UPPER_LIMIT);\n }",
"private void MoveToTop(){\n\t\tViewContentProvider vcp2 = (ViewContentProvider) viewer.getContentProvider();\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a utf8 char sequence codec. | public static ICodec<CharSequence> utf_8_sequence() {
return c_provider.utf_8_sequence();
} | [
"public ICodec<CharSequence> utf_8_sequence();",
"public ICodec<String> utf_8();",
"public static ICodec<String> utf_8() {\n\t\treturn c_provider.utf_8();\n\t}",
"public ICodec<CharSequence> iso_8859_1_sequence();",
"public ICodec<char[]> utf_8_array();",
"public ICodec<CharSequence> utf_16_sequence();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a describe volume request. | public DescribeVolumesRequest describeVolumeRequest(String volumeId) {
final DescribeVolumesRequest request = new DescribeVolumesRequest()
.withVolumeIds(volumeId);
return request;
} | [
"@Override\n @DB\n @ActionEvent(eventType = EventTypes.EVENT_VOLUME_CREATE, eventDescription = \"creating volume\", create = true)\n public VolumeVO allocVolume(CreateVolumeCmd cmd) throws ResourceAllocationException {\n // FIXME: some of the scheduled event stuff might be missing here...\n A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.pb4server.MoveCityAskReq moveCityAskReq = 35; | pb4server.MoveCityAskReqOrBuilder getMoveCityAskReqOrBuilder(); | [
"pb4server.MoveCityAskReq getMoveCityAskReq();",
"pb4server.MakeCityAskReq getMakeCityAskReq();",
"pb4server.RandomPointMoveCityAskReq getRandomPointMoveCityAskReq();",
"pb4server.MakeCityAskReqOrBuilder getMakeCityAskReqOrBuilder();",
"pb4server.RandomPointMoveCityAskReqOrBuilder getRandomPointMoveCityAskR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the provisioningState property: Provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. | public ApplicationGatewayFrontendIpConfigurationPropertiesFormat withProvisioningState(String provisioningState) {
this.provisioningState = provisioningState;
return this;
} | [
"public void setProvisioningState(com.profitbricks.api.ws.ProvisioningState provisioningState) {\r\n this.provisioningState = provisioningState;\r\n }",
"public StorageTargetInner withProvisioningState(ProvisioningStateType provisioningState) {\n this.provisioningState = provisioningState;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds block ID into queue | public void addIntoQueue(Integer block_id){
if(this.queue_set){
if(this.queue.contains(block_id) == false){
this.queue.add(block_id);
}
}
} | [
"public void add_block(Block block) throws InterruptedException {\n block_queue.put(block);\n }",
"synchronized void putBlock(ICBlock block) {\n mQueue.add(block);\n }",
"public void setNextBlockId(int blockId)\n {\n\tintBuffer.put(3, blockId);\n }",
"public void loadQueue(){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replies the style identifier that should be used for rendering the outline. If an identifier exists, the outline will be enclosing by an HTML div tag with the class and id attributes set to the value. | public String getOutlineStyleId() {
return this.outlineStyleId;
} | [
"public StyleId getStyleId ();",
"public java.lang.String getStyleId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STYLEID$30);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE /courses/:id : delete the "id" course. | @DeleteMapping("/courses/{id}")
@Timed
public ResponseEntity<Void> deleteCourse(@PathVariable Long id) {
log.debug("REST request to delete Course : {}", id);
courseService.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).bui... | [
"void delete(String courseId);",
"@DeleteMapping(\"/courses/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCourses(@PathVariable Long id) {\n log.debug(\"REST request to delete Courses : {}\", id);\n coursesService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.create... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
place the player's ship at (x,y). Places ships in descending order of size. | private void placePlayerShip(int x, int y) {
if (shipsToPlace == 3) {
longShipCoords = new int[2];
longShipCoords[0] = x;
longShipCoords[1] = y;
// creates long ship at x,y on egrid
for (int i = 0; i < 5; i++)
egrid[x + i][y] = 1;
// makes ship tiles blue on enemy's board
for (int counter =... | [
"public void placeShip()\n\t{\n\t\tint shipsToPlace = numShips();\n\t\twhile (shipsToPlace > 0) {\n\t\t\tSystem.out.println(\"Ships to place: \"+shipsToPlace);\n\t\t\tship_strategy.place(DefaultShipSize);\n\t\t\tnotifyObservers(0);\n\t\t\tif (is_valid)\n\t\t\t\t--shipsToPlace;\n\t\t\telse\n\t\t\t\tSystem.out.printl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Permite Modificar la programacion pago | void modificar(Programar programar); | [
"@Command\n\t@NotifyChange(\"*\")\n\tpublic void paginarLista(){\n\t\tint page=pagAnalistas.getActivePage();\n\t\tcambiarAnalistas(page, null, null);\n\t}",
"public void inializarGestorPaginas(){\n\t\t//sesion anonima\n\t\tagregarPaginas(\"publico\",\"OFERTA_FORMATIVA\",\"OK\",\"/virtuaula/pages/publico/ofertaFor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data repository for the ConsPractObservacion entity. | @SuppressWarnings("unused")
@Repository
public interface ConsPractObservacionRepository extends JpaRepository<ConsPractObservacion, Long> {
} | [
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContratRepository extends JpaRepository<Contrat, Long> {}",
"@Repository\npublic interface ComentarioRepository extends JpaRepository<Comentario, Long> {\n\n}",
"public interface IDescuentoRepository extends CrudRepository<Descuento, Integer> {}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleActionSubtraction" $ANTLR start "entryRuleActionAddition" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:924:1: entryRuleActionAddition : ruleActionAddition EOF ; | public final void entryRuleActionAddition() throws RecognitionException {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS");
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/in... | [
"public final void entryRuleActionSubtraction() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for setting the position of the player's vehicle | public void setPosition(int position) {
vehicle.setPosition(position);
} | [
"public void updatePosition(){\n setPosition(new Vector2f(physicModel.getPosition().x, physicModel.getPosition().y));\n }",
"public void setPlayerPosition()\r\n\t{\r\n\t\tthis.setPosition2D(new Vector2f(currentCol * myMaze.blockWidth,currentRow * -myMaze.blockHeight));\r\n\t}",
"IVehicle setGoalpositi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Document__Group__1" $ANTLR start "rule__Document__Group__1__Impl" InternalMyDsl.g:13220:1: rule__Document__Group__1__Impl : ( RULE_OBJECT_START ) ; | public final void rule__Document__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:13224:1: ( ( RULE_OBJECT_START ) )
// InternalMyDsl.g:13225:1: ( RULE_OBJECT_START )
{
// InternalMyDsl.... | [
"public final void rule__NamespaceObject__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5158:1: ( rule__NamespaceOb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the highest age of an employee | private long yearsOldestEmployee()
{
return employees.stream()
.map(employee -> employee.getAge())
.reduce(Integer::max).get();
} | [
"int getMaximumAge();",
"public int getMaximumAge() {\n\t\treturn maximum_age;\n\t}",
"public int getMaxAge()\r\n {\r\n return MAX_AGE;\r\n }",
"abstract public int getMaxAge();",
"public int getMaxAge()\n {\n return MAX_AGE;\n }",
"public Integer getMaxAge() {\r\n\t\t\treturn ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
close printOrders method printTotalOrders method's job is to print the total amount of items ordered so far | public static void printTotalOrders(){
System.out.println("*********Total Ordered**********");
System.out.println("Total pizzas ordered: "+totalPizzasOrdered);
System.out.println("Total Hoagies ordered: "+totalHoagiesOrdered);
System.out.println("Total Bread sticks ordered: "+totalBr... | [
"public static void printOrders(){\r\n System.out.println(\"*********Current Order**********\");\r\n System.out.println(\"Current pizzas ordered: \"+numPizzasOrdered);\r\n System.out.println(\"Current Hoagies ordered: \"+numHoagiesOrdered);\r\n System.out.println(\"Current orders of Brea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reset number of undo to a specific number. | void setNumUndo(int undo) {
this.numUndo = undo;
} | [
"public void setUndo()\r\n\t{\r\n\t\tthis.undo = 3;\r\n\t}",
"void performUndo(int count) throws Exception;",
"public void setUndoCount(int undoCount) {\r\n\t\tthis.undoCount = undoCount;\r\n\t}",
"public void resetUndos() {\n\t\tundos = 3;\n\t}",
"void reduceUndo(){\n this.undo--;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use to set multicast address to be used for audio stream. | public void setAudioMulticastAddr(String ip) throws LinphoneCoreException; | [
"public void setAudioMulticastAddr(String ip);",
"public void setVideoMulticastAddr(String ip);",
"public void setVideoMulticastAddr(String ip) throws LinphoneCoreException;",
"void setMulticast(boolean multicast) {\n this.multicast = multicast;\n }",
"public String getAudioMulticastAddr();",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default Constructor for OtherUser object | public otherUser() {
} | [
"private User()\n \t{\n \t\tsuper(\"user\");\n \t}",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public User()\n\t{\n\t\t// Start of user code constructor for User)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"public SecurityUser() {\n\t\tsuper();\n\t}",
"public DatabaseUser()\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of dataaware components to which JdbNavToolBar attaches itself. | public Component [] getDataSetAwareComponents() {
return userSetDataAwareComponents;
} | [
"public JToolBar[] getToolbars() {\n\t\treturn toolbars_;\n\t}",
"Map<ToolbarPosition, ? extends Node> getRegisteredToolBars();",
"public ArrayList getComboBoxToolbarPlugInDescriptors()\n {\n return workflowPlugIn.getComboBoxToolbarDescriptors();\n /*\n ArrayList allComboBoxDescriptors =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get product Final Rate | public Double getFinalRate(){
//Round of the result in 2 decimal places
String result = String.format("%.2f", mFinalRate);
return Double.parseDouble(result);
} | [
"public BigDecimal getACTUAL_RATE_OF_RETURN()\r\n {\r\n\treturn ACTUAL_RATE_OF_RETURN;\r\n }",
"public java.math.BigDecimal getRate() {\n return rate;\n }",
"double getBaseRate();",
"public double getRate() {\n return estRate;\n }",
"default double getRate(){\n\t\treturn 2.50;\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the jdbc call reports. | public void setJdbcCallReports(SimpleJdbcCall jdbcCallReports) {
this.jdbcCallReports = jdbcCallReports;
} | [
"public void setReport(Report report);",
"public SimpleJdbcCall getJdbcCallReports() {\r\n\t\treturn jdbcCallReports;\r\n\t}",
"public void setReport(TabularReport report)\n {\n this.report = report;\n }",
"public void setReports(Integer reports) {\n this.reports = reports;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new IdentificationVariableStateObject. | public IdentificationVariableStateObject(StateObject parent) {
super(parent);
} | [
"public IdentificationVariableStateObject(StateObject parent, String variable) {\n\t\tsuper(parent, variable);\n\t}",
"StateVariable createStateVariable();",
"StateVariableDeclaration createStateVariableDeclaration();",
"@Override\r\n public IObjectiveState createState(final Serializable staticState) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the AbstractGoods(GoodsType,int) constructor test. | @Test
public void testAbstractGoods_3()
throws Exception {
GoodsType type = new GoodsType("", new Specification());
int amount = 1;
AbstractGoods result = new AbstractGoods(type, amount);
// add additional test code here
assertNotNull(result);
assertEquals("1 ", result.toString());
assertEquals("abst... | [
"@Test\n\tpublic void testAbstractGoods_1()\n\t\tthrows Exception {\n\n\t\tAbstractGoods result = new AbstractGoods();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"0 (null)\", result.toString());\n\t\tassertEquals(null, result.getType());\n\t\tassertEquals(\"abstractGoods\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve el valor del atributo unitOfMeasure: Porcentaje en que se satisface el indicador | public String getUnitOfMeasure() {
return this.unitOfMeasure;
} | [
"java.lang.String getUnitOfMeasure();",
"public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }",
"public String getUnitOfMeasure() {\n return this.unitOfMeasure;\n }",
"public String unitOfMeasure() {\n return this.innerProperties() == null ? null : this.innerPrope... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'var108' field has been set. | public boolean hasVar108() {
return fieldSetFlags()[109];
} | [
"public boolean hasVar112() {\n return fieldSetFlags()[113];\n }",
"public boolean hasVar109() {\n return fieldSetFlags()[110];\n }",
"public boolean hasVar118() {\n return fieldSetFlags()[119];\n }",
"public boolean hasVar105() {\n return fieldSetFlags()[106];\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates whether the Alt key is active (true) or inactive (false). | final public native boolean isAltKey() /*-{
return this.altKey;
}-*/; | [
"public boolean isAltMode() {\r\n return this.altMode;\r\n }",
"public static boolean isAltKeyDown() { return Keyboard.isKeyDown(56) || Keyboard.isKeyDown(184); }",
"public static boolean isAlt ( final int modifiers )\n {\n return ( modifiers & InputEvent.ALT_MASK ) != 0;\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to send the REQUEST message with timestamp and file identifier | public synchronized void crit_request(int ts,String filename)
{
out.println("REQUEST");
out.println(ts);
out.println(my_c_id);
out.println(filename);
} | [
"void fileReceived(IMSession session, String requestId, String fileId, String filePath);",
"public void sendFile(String sendFilePath) {\n\n }",
"@PostMapping(\"/\"+URL_POSTINFO)\n void postinfo(@RequestParam(\"file_name\") String file_name, @RequestParam(\"file_url\") String file_url,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
contract for a symbol table that can be written into (I know the name choice of Writeable vs Mutable sucks) | public interface WriteableSymbolTable extends SymbolTable {
/**
* Return the id of the mapping for the given symbol or add the symbol as a new mapping and
* return the newly assigned id
* @param symbol
* @return
*/
int getOrAdd(String symbol);
/**
* This puts the given mapping in with the spec... | [
"public interface SymbolTable\n{\n /**\n * Indicates that a symbol's integer ID could not be determined. That's\n * generally the case when constructing value instances that are not yet\n * contained by a datagram.\n */\n public final static int UNKNOWN_SYMBOL_ID = -1;\n\n\n /**\n * Ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the firstname of this registration. | @Override
public String getFirstname() {
return _registration.getFirstname();
} | [
"public String getFirstname() {\r\n\t\treturn firstname;\r\n\t}",
"public java.lang.String getFirst_name() {\n return first_name;\n }",
"public final String getNameFirst()\n\t{\n\t\treturn nameFirst;\n\t}",
"public String getFirstName() {\n return (String)getAttributeInternal(FIRSTNAME);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method returns the value of the database column t_order_price_history.leaf | public Integer getLeaf() {
return leaf;
} | [
"public BigDecimal getHistoryPrice() {\n return historyPrice;\n }",
"public String getLeaf() {\n return leaf;\n }",
"public Commit getLeaf(){\n\t\treturn myLeaf;\n\t}",
"public int[] getLeafOrder() {\r\n return leafOrder;\r\n }",
"public BigDecimal getHistoryMarketPrice() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public String getPluginTemplateBasePath(WebPlugin webPlugin); | public String getPluginTemplateBasePath(String pluginName); | [
"String getTemplateProjectPath();",
"public String getTemplatePath();",
"String getTemplatePath();",
"String getTemplateRessourcePath();",
"public String getDeployWebappPath( String strPluginName )\r\n {\r\n return getWebAppPath( ) + PATH_DEPLOY + strPluginName + FOLDER_WEBAPP;\r\n }",
"Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get required configurable variables as a JsonArray. | private static JsonArray getRequiredConfigs(List<ConfigVariable> configVariables) {
JsonArray requiredConfigs = new JsonArray();
for (ConfigVariable configVariable : configVariables) {
if (configVariable.isRequired()) {
requiredConfigs.add(configVariable.name());
... | [
"Set<Variable> getRequiredGlobalVariables();",
"org.apache.geronimo.xbeans.connector.GerConfigPropertySettingType[] getConfigPropertySettingArray();",
"public IBuildConfiguration[] getRequestedConfigs();",
"public abstract String[] getVariables();",
"public static List<String[]> getPredefinedJexlVarDefs()\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the size of the bytes in the blob. | public int size() {
return api.sqlite3_blob_bytes(blobHandle.getPointer());
} | [
"public synchronized int size() {\n int s = 0;\n for (blobItem bi: blobs) s += bi.blob.size();\n return s;\n }",
"public short sizeInBytes() {\n switch (version) {\n case BLOB_ID_V1:\n return (short) (VERSION_FIELD_LENGTH_IN_BYTES + partitionId.getBytes().length + UUID_S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets array of all "addedBasicAuthenticationTypes" elements | public org.apache.xmlbeans.XmlString[] xgetAddedBasicAuthenticationTypesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();
get_store().find_all... | [
"public java.lang.String[] getAddedBasicAuthenticationTypesArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();\n get_store().find_all_el... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Matches fields with the specified predicate | public FieldPredicate withPredicate(Predicate<Field> predicate) {
this.predicate = predicate;
return this;
} | [
"public FieldPredicate(String fieldName) {\n this.fieldName = fieldName;\n }",
"@Test\n public void testConditionsSearchIsInterpretedAsANDSearch() throws Exception\n {\n ingestObject( \"demo:1\", new String[]{ \"Jenseits von Gut und Böse\" }, \"\", \"Freddy Nietzsche\" );\n fieldsea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An optional identifier of the acceptoratom site that defines the hydrogen bond. This data item is a pointer to _atom_site.label_alt_id in the ATOM_SITE category. | public StrColumn getAtomSiteLabelAltIdA() {
return (StrColumn) (isText ? textFields.computeIfAbsent("atom_site_label_alt_id_A", StrColumn::new) :
getBinaryColumn("atom_site_label_alt_id_A"));
} | [
"public StrColumn getAtomSiteLabelAltIdH() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"atom_site_label_alt_id_H\", StrColumn::new) :\n getBinaryColumn(\"atom_site_label_alt_id_H\"));\n }",
"public StrColumn getAtomSiteLabelAsymIdH() {\n return (StrColumn) (isText ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when the constructor is called by the internal static method get(), a hundred of Crime will be created and put into the ArrayList | private CrimeLab(Context context) {
mContext = context.getApplicationContext();//Listing 14.4
mDatabase = new CrimeBaseHelper(mContext).getWritableDatabase();//Listing 14.4
// mCrimes = new LinkedHashMap<>();//using mDatabase instead
/*
for (int i=0;i<100;i++){
Cri... | [
"ArrayList<Crime> listCrime();",
"public ArrayList<CrimeCase> getCrimeCases()\n\t{\n\t\treturn CrimeList;\n\t}",
"private Crime addNewCrime() {\n CrimeLab cL = CrimeLab.get(getActivity());\n Crime c = new Crime();\n // Adds the crime\n cL.addCrime(c);\n return c;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the current total earnings of the store. | public int getTotalEarnings() {
int total = 0;
for (int i = 0; i < this.receiptissued.size(); i++) {
total = total + this.receiptissued.get(i).getPrice();
}
return total;
} | [
"public double getTotalEarnings() {\n return this.totalEarnings;\n }",
"public double totalEarnings() {\n\t\treturn dayEarnings;\n\t}",
"public int getEarnings () \n throws DataObjectException {\n beforeAnyGet();\t// business actions/assertions prior to data return\n checkLoad();\n return d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'field727' field has been set | public boolean hasField727() {
return fieldSetFlags()[727];
} | [
"public boolean hasField713() {\n return fieldSetFlags()[713];\n }",
"public boolean hasField757() {\n return fieldSetFlags()[757];\n }",
"public boolean hasField737() {\n return fieldSetFlags()[737];\n }",
"public boolean hasField706() {\n return fieldSetFlags()[706];\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Atomic__Group_8__2" $ANTLR start "rule__Atomic__Group_8__2__Impl" InternalDsl.g:33629:1: rule__Atomic__Group_8__2__Impl : ( '.' ) ; | public final void rule__Atomic__Group_8__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:33633:1: ( ( '.' ) )
// InternalDsl.g:33634:1: ( '.' )
{
// InternalDsl.g:33634:1: ( '.' )
// ... | [
"public final void rule__Atomic__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8475:1: ( rule__Atomic__Group_2__1__Impl )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Append an attribute such as "ExtensionList: lib0 lib1 lib2" using specified prefix and counting up to specified size. Also use specified extensionKey so that can generate list of optional dependencies aswell. | private void appendExtensionList( final Attributes attributes,
final Attributes.Name extensionKey,
final String listPrefix,
final int size )
{
final StringBuffer sb = new StringBuffer();
... | [
"private void appendLibraryList( final Attributes attributes,\n final String listPrefix,\n final ArrayList librarys )\n throws TaskException\n {\n final int size = librarys.size();\n\n for( int i = 0; i < size; i++ )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Decodes byte array to bitmap | public static native Bitmap nativeDecodeByteArray(byte[] data, BitmapFactory.Options options); | [
"private Bitmap convertToBitmap(byte[] b){\n\n return BitmapFactory.decodeByteArray(b, 0, b.length);\n\n }",
"private static Bitmap ByteArrayToBitmap(byte[] bytes) {\n return BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\n }",
"public Bitmap getByteToBitmap(byte[] image) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column cs_outp_emr.audit_time | public String getAuditTime() {
return auditTime;
} | [
"public Date getAuditTime() {\n return auditTime;\n }",
"public Date getAuditingTime() {\r\n return auditingTime;\r\n }",
"public Date getAuditingTime() {\n return auditingTime;\n }",
"@Generated(value = \"org.mybatis.generator.api.MyBatisGenerator\", date = \"2020-04-12T12:59:05... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .eu.m6r.format.openrtb.Amount exchangeprice = 4; Mbr: Actual price paid in the exchange currency. | org.adscale.format.opertb.AmountMessage.Amount getExchangeprice(); | [
"org.adscale.format.opertb.AmountMessage.AmountOrBuilder getExchangepriceOrBuilder();",
"org.adscale.format.opertb.AmountMessage.Amount getCampaignprice();",
"public org.adscale.format.opertb.AmountMessage.AmountOrBuilder getExchangepriceOrBuilder() {\n return exchangeprice_;\n }",
"public org.adscale... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the child challenges before and after the current child challenge in the ordered set of child challenges that the user has permission to view where groupId = &63;. | @Override
public ChildChallenge[] filterFindByGourpId_PrevAndNext(
long childChallengeId, long groupId, OrderByComparator orderByComparator)
throws NoSuchChildChallengeException, SystemException {
if (!InlineSQLHelperUtil.isEnabled(groupId)) {
return findByGourpId_PrevAndNext(childChallengeId, groupId,
or... | [
"@Override\n\tpublic ChildChallenge[] filterFindByGroupIdAndChallenge_PrevAndNext(\n\t\tlong childChallengeId, long groupId, long challengeId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchChildChallengeException, SystemException {\n\t\tif (!InlineSQLHelperUtil.isEnabled(groupId)) {\n\t\t\treturn find... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Fact Type Shape Type'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseFactTypeShapeType(FactTypeShapeType object) {
return null;
} | [
"public T caseShapeType(ShapeType object) {\n\t\treturn null;\n\t}",
"public T caseShapesType(ShapesType object) {\n\t\treturn null;\n\t}",
"public T caseObjectTypeShapeType(ObjectTypeShapeType object) {\n\t\treturn null;\n\t}",
"String getShapeType();",
"abstract ShapeType getShapeType();",
"ShapeType ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
UnSpawns a character. Relays messages to backend. | private void unspawn_character(int actor_id) {
Actor actor = this.gameworld.actor_by_id.get(actor_id);
assert actor != null;
new Manipulator(this.gameworld).unspawn_character(actor_id);
this.sync.on_actor_unspawned(actor_id);
} | [
"public void killCharacter() {\n\tthis.isAlive = false;\n\t}",
"@Override\n\t protected void despawnEntity() {}",
"private void createCharacter() {\n getContentPane().removeAll();\n getContentPane().repaint();\n createCharacterScreen();\n choosePlayerName();\n }",
"protected voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new HTTPServletStarter for the specified WAR file, on the specified port, as a daemon thread. A listener is started on the port immediately. | public HTTPServletStarter(File warFile, int port)
throws Exception {
this(warFile, port, true);
} | [
"public HTTPServletStarter(File warFile, int port, boolean deamon)\r\n throws Exception {\r\n this(warFile, port, deamon, ServletClassLoader.USE_WAR_EXTERNAL_LIB);\r\n }",
"public HTTPServletStarter(String servletClassName, int port, boolean deamon)\r\n throws Exception {\r\n ClassLoader loader = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create ZK curator client from a configuration (map holds the configs for that) | public static CuratorFramework createZKClient(Map<String, String> properties) {
String root = MapUtils.getString(properties, ZK_ROOT_NODE_PROPERTY, DEFAULT_ZK_ROOT);
LOG.info("Connecting to ZooKeeper at " + properties.get(ZK_CONNECT_STRING_PROPERTY) + root);
return CuratorFrameworkFactory.builder()
.c... | [
"private CuratorFramework createCurator() {\n // Create list of Servers\n final String serverStr = sharedZookeeperTestResource.getZookeeperConnectString();\n final List<String> serverList = Arrays.asList(Tools.splitAndTrim(serverStr));\n\n // Create config map\n final Map<String, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "arrivedondate" element | java.lang.String getArrivedondate(); | [
"org.apache.xmlbeans.XmlString xgetArrivedondate();",
"public java.lang.String getArrivalDate() {\r\n return arrivalDate;\r\n }",
"public Date getDateOfArrival();",
"@Override\n\tpublic java.util.Date getArrivalDate() {\n\t\treturn _tempNoTiceShipMessage.getArrivalDate();\n\t}",
"public String get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new integer based PkValue for the specified entity. If the cache is empty it is refilled again. | private Long cachedPkValue(String ename) {
Stack s = cacheStack(ename);
if (s.empty()) {
synchronized (s) {
if (s.empty()) {
fillPkCache(s, ename);
}
}
}
Long pkValue = (Long) s.pop();
return pkValue;
} | [
"public Object generatePkForDbEntity(DataNode node, DbEntity ent) throws Exception {\n\n // check for binary pk\n Object binPK = binaryPK(ent);\n if (binPK != null) {\n return binPK;\n }\n\n DbKeyGenerator pkGenerator = ent.getPrimaryKeyGenerator();\n int cacheSi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Goal: To test that the setTile() method works correctly. Testing Method: Try setting a tile. Check it is correctly set. Check the status is updated. | @Test
public void testSetTile()
{
try
{
Square s = new Square();
s.setTile(Tile.E); // Add a tile
assertEquals(Tile.E, s.getTile()); // Check the tile is now on the square
assertTrue(s.isOccupied()); // Check the status is now true
}
... | [
"public void testGetValidTile() {\n int testX = 0;\n int testY = 0;\n board.addTile(tree, testX, testY);\n Tile retrievedTile = board.getTile(testX, testY);\n assertSame(tree, retrievedTile);\n }",
"@Test\r\n\tpublic void TileTests() {\r\n\t\tTile tile = new Tile(\"String image path is stored as s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for property boolDetailsVisibleColumns. | public void setBoolDetailsVisibleColumns(boolean[] boolDetailsVisibleColumns) {
this.boolDetailsVisibleColumns = boolDetailsVisibleColumns;
} | [
"public void setDetailsVisibleColumns(int[] detailsVisibleColumns) {\r\n this.detailsVisibleColumns = detailsVisibleColumns;\r\n }",
"public boolean[] getBoolDetailsVisibleColumns() {\r\n return this.boolDetailsVisibleColumns;\r\n }",
"public int[] getDetailsVisibleColumns() {\r\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cross fade from image1 to image2 on obj. | public CrossFadeEffect(IImageObject obj, Image image1, Image image2,
long lengthMilli, IMovement movement) {
this(obj, image1, image2, lengthMilli, movement, null, null);
} | [
"public CrossFadeEffect(IImageObject obj, Image image1, Image image2,\n\t\t\tlong lengthMilli, IMovement movement, Runnable onStop,\n\t\t\tRunnable onCancel) {\n\t\tsuper(lengthMilli, movement, onStop, onCancel);\n\t\tthis.obj = obj;\n\t\tthis.image1 = image1;\n\t\tthis.image2 = image2;\n\n\t\tif (!image1.getBounds... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets how many attacks the player should have | public void setAttacks(int attacks) { this.attacks = attacks; } | [
"public void setAttack(int value) {\n this.attack = value;\n }",
"public void incrementNumAttacked( ){\n this.numAttacked++;\n }",
"public void\t\t\t\t\tincreaseAttacks()\t\t\t{ this.attacks += 1; }",
"public void setAttack(int attack) {\n base.setAttack(attack);\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if token is written with percent or percentage token | private boolean isWrittenWithPercentage(String token) {
if (token == null || token.equals("") || token.isEmpty())
return false;
if (token.equals("percent") || token.equals("Percent") || token.equals("PERCENT") ||
token.equals("percentage") || token.equals("Percentage") || tok... | [
"private boolean isPercent(String metricName) {\n return metricName.endsWith(\"%\");\n }",
"public boolean isPercentExpression(){\n return expression.equals(\"%\") || expression.equals(\"percent\") || expression.equals(\"percentage\");\n }",
"private static boolean checkToken(String token){\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether the given string value is a date or not. | public boolean isDate(String value) {
return isDateTime(dateParsers, value);
} | [
"public static boolean isDate(String value) {\n if (StringUtils.isEmpty(value)) {\n return false;\n }\n\n return isValueMatchingPattern(value, DATE_PATTERNS);\n }",
"public static boolean isDate(String str) {\n\t\treturn same(str, Date);\n\t}",
"public static boolean isDateTime( String value)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates if the Member passed into the function is equivalent to this member. | public boolean isSameAs(Member that); | [
"public Boolean isSameKindAs(Member member) {\r\n\t\treturn false; // STUB\r\n\t}",
"public Boolean isSameKindAs(Member member) {\r\n\t\treturn member.getImpl().getReferent().getImpl().isReception();\r\n\t}",
"boolean isMember();",
"abstract public boolean isUniqueSofaMember ();",
"public Boolean getOtaMemb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets values for xCheckpointPos and yCheckpointPos. Invoked when entering a new section of the maze. | public void markCheckpoint(){
this.xCheckpointPos = this.getXPos();
this.yCheckpointPos = this.getYPos();
} | [
"public void setCheckpoint(Location location) {\n\n }",
"static synchronized void makeNewCheckpoint() {\n HashMap<String, String> newCheckpoint = new HashMap<>(localState);\n checkpoints.put(Thread.currentThread(), newCheckpoint);\n }",
"public void setLocation ()\r\n {\r\n dots.moveTo (Place... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .NodeSearchResult results = 3; | entities.Torrent.NodeSearchResultOrBuilder getResultsOrBuilder(
int index); | [
"entities.Torrent.NodeSearchResult getResults(int index);",
"SearchResult findNext(SearchResult result);",
"java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();",
"void setNumberOfResults(int numberOfResults);",
"void setNumberOfResults(int number) {\r\n\r\n numberOfResults = nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column case_pacs.modality_id | public String getModalityId() {
return modalityId;
} | [
"public void setModalityId(String modalityId) {\n this.modalityId = modalityId == null ? null : modalityId.trim();\n }",
"public Integer getCommodityId() {\n return commodityId;\n }",
"public Integer getCommodityId() {\n\t\treturn commodityId;\n\t}",
"public String getModality() {\n\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Original signature : void OpenMM_AmoebaAngleForce_setAmoebaGlobalAngleSextic(OpenMM_AmoebaAngleForce, double) | public static native void OpenMM_AmoebaAngleForce_setAmoebaGlobalAngleSextic(PointerByReference target, double sexticK); | [
"public static native void OpenMM_AmoebaAngleForce_setAmoebaGlobalAnglePentic(PointerByReference target, double penticK);",
"public static native void OpenMM_AmoebaInPlaneAngleForce_setAmoebaGlobalInPlaneAngleSextic(PointerByReference target, double sexticK);",
"public static native double OpenMM_AmoebaAngleFor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Call SetRepo's findById() method and return a Set in the 101 database with the corresponding id | @Override
@Transactional
public FlashcardSet findById(int id) {
return setRepo.findByFcSetId(id);
} | [
"DocumentSet findDocumentSet(String id);",
"CurrencySet get(int id);",
"public T findById(final ID id);",
"Set createSet();",
"public Set<SearchResult> findInSet()\r\n\t{\r\n \treturn getHyperGraph().getTransactionManager().ensureTransaction(new Callable<Set<SearchResult>>() {\r\n \tpublic Set<Sea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a unary operator op, and a function f1: T > SibillaValue, returns the function that given a parameter t returns the result of the application of op to the evaluation of f1(t). | static <T> Function<T,SibillaValue> apply(UnaryOperator<SibillaValue> op, Function<T,SibillaValue> f1) {
return arg -> op.apply(f1.apply(arg));
} | [
"static <T> Function<T,SibillaValue> apply(BinaryOperator<SibillaValue> op, Function<T,SibillaValue> f1, Function<T, SibillaValue> f2) {\n return arg -> op.apply(f1.apply(arg), f2.apply(arg));\n }",
"static <T, U> BiFunction<T,U,SibillaValue> apply(BinaryOperator<SibillaValue> op, BiFunction<T, U, Sibil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field isagency is set (has been assigned a value) and false otherwise | public boolean isSetIsagency() {
return __isset_bit_vector.get(__ISAGENCY_ISSET_ID);
} | [
"public boolean isIsAgency() {\n return isAgency;\n }",
"public void setIsAgency(boolean value) {\n this.isAgency = value;\n }",
"public void setIsAgency(java.lang.String isAgency) {\n this.isAgency = isAgency;\n }",
"public boolean isSetAgenthost()\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a nil slice for the given element type. | public Slice(GoClass elementType) {
super(GoClass.forSlice(elementType));
this.array = null;
this.offset = 0;
this.length = 0;
this.capacity = 0;
} | [
"public void createEmptyArray();",
"public static <T extends GoObject> Slice<T> make(GoClass elementType, int length, int capacity) {\n return new Slice<>(elementType, length, capacity);\n }",
"public static <T> T[] emptyArray(Class<T> kind) {\n if (kind == Object.class) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accessor to set the target Gaussian z for the registration. | public void setTargetGaussZ(float x) {
targetGaussZ = x;
} | [
"public void setZ(double z) {\r\n this.z=z;\r\n }",
"public DynamicCuboid setZ(float z) {\n this.z = z;\n return this;\n }",
"public void setSourceGaussZ(float x) {\r\n sourceGaussZ = x;\r\n }",
"public void setZ(double z){\n this.zCoord = z;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if this attribute is the scope, false otherwise. | boolean isScope(); | [
"public boolean isSetScope() {\r\n return this.scope != null;\r\n }",
"public boolean isInScope () {\n if (watch != null) return watch.isInScope ();\n return false;\n }",
"public boolean isBindToScope() {\n return bindToScope;\n }",
"@Override\n public boolean isScoped() {\n \tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the industry value for this DatacloudCompany. | public void setIndustry(java.lang.String industry) {
this.industry = industry;
} | [
"public void setIndustry(String industry) {\n\t\tthis.industry = industry;\n\t}",
"public void setIndustry(String industry) {\n this.industry = industry;\n }",
"public void setIndustry ( jobmatch.data.IndustryDO Industry )\n throws DataObjectException {\n try {\n\t // business actions/assertio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |