query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Gets the promotionInfo value for this BpValidationResponse.
public com.mgipaypal.ac1211.client.PromotionInfo[] getPromotionInfo() { return promotionInfo; }
[ "public void setPromotionInfo(com.mgipaypal.ac1211.client.PromotionInfo[] promotionInfo) {\r\n this.promotionInfo = promotionInfo;\r\n }", "public Long getPromotionId() {\r\n\t\treturn promotionId;\r\n\t}", "public String getPromotionTag() {\r\n\t\treturn promotionTag;\r\n\t}", "public String getPro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The constructor for creating a table.We create a table with a width and a height and a maximum number of points. The variables end1 and end2 are binded to an impossible value. No movements are made when created directionright is set to 0 which is right direction and directionleft to 2 which is the left direction
public Table(int m, double w, double h) { maxPoints = m; width = w; height = h; directionend = new int[]{0, 2}; end = new int[]{100, 100}; endy = new double[2]; endx = new double[2]; endy[0] = endy[1] = height / 2 - 80 / 2; endx[0] = endx[...
[ "public DoubleTable(){ \t\n }", "public CardTable()\n {\n this(360,180);\n }", "protected void initTable() {\n \n // make a new table; each cell is set to zero\n this._table = new TimeSpan[this.getCells() + 2];\n for(int i = 0; i < this._table.length; i++)\n \t this._table[i] = Ti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AstExpressionBitor__Group__0" $ANTLR start "rule__AstExpressionBitor__Group__0__Impl" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17188:1: rule__AstExpressionBitor__Group__0__Impl : ( ruleAstExpressionBitxor ) ;
public final void rule__AstExpressionBitor__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17192:1: ( ( ruleAstExpressionBitxor ...
[ "public final void rule__AstExpressionBitxor__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17364:1: ( rule__AstExpression...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a query builder
public QueryBuilder<Address, Long> getQueryBuilder() { return this.instance.queryBuilder(); }
[ "public QueryBuilder builder()\n {\n return new QueryBuilder(table);\n }", "public QueryBuilder buildQueryBuilder() {\n return dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get date active date active.
public DateActive getDateActive(){ return dateActive; }
[ "public DateTO getActiveDate() {\n\t\treturn activeDate;\n\t}", "public java.util.Calendar getDateActiveFrom() {\n return dateActiveFrom;\n }", "public Date getStartDateActive() {\n return (Date)getAttributeInternal(STARTDATEACTIVE);\n }", "public String getActiveBeginDate() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PredicatePrimary__Group_1__1" $ANTLR start "rule__PredicatePrimary__Group_1__1__Impl" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4793:1: rule__PredicatePrimary__Group_1__1__Impl : ( '!' ) ;
public final void rule__PredicatePrimary__Group_1__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4797:1: ( ( '!' ) ) // ../eu.quantico...
[ "public final void rule__Primary__Group_1__1__Impl() 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:8265:1: ( ( '!' ) )\n // .....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method performs a synchronous Thrift call to upgrade an agent.
@RpcMethod public UpgradeResponse upgrade() throws InterruptedException, RpcException { SyncHandler<UpgradeResponse, AgentControl.AsyncClient.upgrade_call> syncHandler = new SyncHandler<>(); upgrade(syncHandler); syncHandler.await(); return ResponseValidator.checkUpgradeResponse(syncHandler.getR...
[ "@RpcMethod\n public void upgrade(AsyncMethodCallback<AgentControl.AsyncClient.upgrade_call> handler)\n throws RpcException {\n ensureClient();\n\n UpgradeRequest upgradeRequest = new UpgradeRequest();\n\n clientProxy.setTimeout(UPGRADE_TIMEOUT_MS);\n logger.info(\"upgrade target: {}, request {}\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ypxx_backup.ZLCCSM
public void setZlccsm(String zlccsm) { this.zlccsm = zlccsm; }
[ "public void setZlcc(String zlcc) {\n this.zlcc = zlcc;\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public String getZlccsm() {\n return zlccsm;\n }", "public void setcZ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Requests updates to the configuration of an existing ProvisionedProduct object. If there are tags associated with the object, they cannot be updated or added with this operation. Depending on the specific updates requested, this operation may update with no interruption, with some interruption, or replace the Provision...
UpdateProvisionedProductResult updateProvisionedProduct(UpdateProvisionedProductRequest updateProvisionedProductRequest);
[ "public void updateProduct(Product product);", "public void update(Product prod);", "Product updateProductById(Long id);", "@PostMapping(value = \"/saveProduct\", headers = \"Accept=application/json\")\n public ResponseEntity saveProduct(@RequestBody Product newProduct) throws Exception {\n if (feat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests if task is within the date range if specified, and with the correct DoneFlag status if specified
@Override public boolean run(ReadOnlyTask task) { if(!checkDoneFlagSame(task)){ return false; } if(!dateRange.isEmpty() && !checkWithinDateRange(task)){ return false; } return true; }
[ "public static boolean checkDateConstraints(Task task) {\n if (task.getBeginDate().before(new Date()) ||\n task.getBeginDate().after(task.getEndingDate()) ||\n task.getBeginDate().equals(task.getEndingDate())) {\n return false;\n }\n return true;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a System property, defaulting to null if the property cannot be read. If a SecurityException is caught, the return value is null and a message is written to System.err.
public static String getSystemProperty(String property) { try { return System.getProperty(property); } catch (SecurityException ex) { // we are not allowed to look at this property System.err.println("Caught a SecurityException reading the system property '" + propert...
[ "private static String getSystemProperty(String property) {\n try {\n return System.getProperty(property);\n } catch (SecurityException ex) {\n // we are not allowed to look at this property\n System.err.println(\"Caught a SecurityException reading the system property '\" + property\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Move a step up in the list.
public int moveStepUp(final int index) { if ( index < 1 ) { return index; } final int newIndex = index - 1; Collections.swap( getSteps(), index, newIndex ); return newIndex; }
[ "public void moveUp() {\n\t\t\tint pageIndex = pages.indexOf(this);\n\t\t\tif (pageIndex > 0) {\n\t\t\t\tswap(pageIndex, pageIndex - 1);\n\t\t\t}\n\t\t}", "public void moveUp() {\n btMoveUp().push();\n }", "public void moveUp()\r\n {\r\n this.y -= this.offset;\r\n }", "public void moveU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build a JSON response according to the request object received. Claims requested in requestObj.userinfo.claims are added to any claims corresponding to requested scopes, if any.
private JsonObject toJsonFromRequestObj(UserInfo ui, Set<String> scope, JsonObject authorizedClaims, JsonObject requestedClaims) { // get the base object JsonObject obj = ui.toJson(); Set<String> allowedByScope = translator.getClaimsForScopeSet(scope); Set<String> authorizedByClaims = extractUserInfoCla...
[ "public String formatAsJSONString() {\n ObjectMapper mapper = new ObjectMapper();\n ObjectNode rootNode = mapper.createObjectNode();\n\n if (!idTokenRequestedClaims.isEmpty()) {\n rootNode.set(\"id_token\", convertClaimsToObjectNode(idTokenRequestedClaims));\n }\n if (!...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column fi_cashout_apply.deal_reason
public String getDealReason() { return dealReason; }
[ "java.lang.String getDiscountReason();", "public void setDealReason(String dealReason) {\r\n this.dealReason = dealReason == null ? null : dealReason.trim();\r\n }", "public String getTransactionReason() {\n return transactionReason;\n }", "public String getFeeReason() {\n return feeRea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor of the AbstractEnsemblistClause
public AbstractEnsemblistClause(String operator, String clause) { super(); this.clause += operator + " (" + clause + ")"; }
[ "public Clause()\r\n\t{\r\n\t\ttab = new ArrayList<Literal>(3);\r\n\t}", "Clause createClause();", "public Clause(Literal literal) {\n\t\tthis.literals = Collections.singletonList(literal);\n\t}", "public ExprImpl(){\n\t\t\n\t}", "DSL_ECA_STATEMENT createDSL_ECA_STATEMENT();", "public WhereClause() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the markdown flavor that should be used to parse markdown.
@NonNull Builder markdownFlavor(final MarkdownFlavor markdownFlavor);
[ "static @NonNull MiniMessage withMarkdownFlavor(final MarkdownFlavor markdownFlavor) {\n return new MiniMessageImpl(true, markdownFlavor, new TransformationRegistry(), MiniMessageImpl.DEFAULT_PLACEHOLDER_RESOLVER, false, MiniMessageImpl.DEFAULT_ERROR_CONSUMER);\n }", "private void markdown() {\n Markdo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all org.semanticwb.process.resources.SWPResourcesConfig with a determined Creator
public static java.util.Iterator<org.semanticwb.process.resources.SWPResourcesConfig> listSWPResourcesConfigByCreator(org.semanticwb.model.User value) { org.semanticwb.model.GenericIterator<org.semanticwb.process.resources.SWPResourcesConfig> it=new org.semanticwb.model.GenericIterator(value.getSe...
[ "public static java.util.Iterator<org.semanticwb.process.resources.SWPResourcesConfig> listSWPResourcesConfigs()\r\n {\r\n java.util.Iterator it=sclass.listInstances();\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.process.resources.SWPResourcesConfig>(it, true);\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A form using RetypePassword constraint should implement this interface
public interface RetypePasswordForm { String getPassword(); String getRetypePassword(); }
[ "public ChangePasswordForm() {\n\t}", "public Password(HtmlMarkupTag parent, Form form)\r\n {\r\n super(parent, form, \"password\");\r\n }", "ChangePassword.Req getChangePasswordReq();", "public void setRetypePassword(String retypePassword) {\n this.retypePassword = retypePassword;\n }", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If set to `true`, indicates that there is no change to the list of active breakpoints and the serverselected timeout has expired. The `breakpoints` field would be empty and should be ignored. bool wait_expired = 3;
@java.lang.Override public boolean getWaitExpired() { return waitExpired_; }
[ "public Builder setWaitExpired(boolean value) {\n\n waitExpired_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean getWaitExpired() {\n return waitExpired_;\n }", "protected boolean hasTimedOut() {\n checkValid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'furthest_point' field.
public java.lang.Integer getFurthestPoint() { return furthest_point; }
[ "public java.lang.Integer getFurthestPoint() {\n return furthest_point;\n }", "public void setFurthestPoint(java.lang.Integer value) {\n this.furthest_point = value;\n }", "public com.twc.bigdata.views.avro.viewing_info.Builder setFurthestPoint(java.lang.Integer value) {\n validate(fields()[5],...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set initial letter of according user's nickname( username if no nickname)
public static void setUserInitialLetter(ChatUser user) { final String DefaultLetter = "#"; String letter = DefaultLetter; final class GetInitialLetter { String getLetter(String name) { if (TextUtils.isEmpty(name)) { return DefaultLetter; ...
[ "public static void setUserInitialLetter(User user) {\n final String DefaultLetter = \"#\";\n String letter = DefaultLetter;\n if (!TextUtils.isEmpty(user.getNick())) {\n letter = Pinyin.toPinyin(user.getNick().toCharArray()[0]);\n user.setInitialLetter(letter.toUpperCase(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Random html temp filename.
public static String randomHtmlTempFilename() { return randomTempFilename("html"); }
[ "public static String getRandomFileName(){\n\t\treturn UUID.randomUUID().toString();\n\t}", "private String beautiplyFileNameGenerator() {\r\n\t\t// /randomvalue between 0 to 9\r\n\t\tString name = \"beautiply\" + new Random().nextInt(9) + \".png\";\r\n\r\n\t\treturn name;\r\n\t}", "public synchronized static S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Undeploy the provided carbon App by sending it through the registered undeployment handler chain.
private void undeployCarbonApp(CarbonApplication carbonApp, AxisConfiguration axisConfig) { log.info("Undeploying Carbon Application : " + carbonApp.getAppNameWithVersion() + "..."); // Call the undeployer handler chain try { for (int handlerIndex =...
[ "Result undeploy(UIContext uiContext);", "void undeploy(WebAppContext webAppCtx)\r\n throws OsgiWarDeploymentException;", "public void undeploy(String filePath) throws DeploymentException {\n CarbonApplication existingApp = null;\n for (CarbonApplication carbonApp : getCarbonApps()) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return whether this entity should NOT trigger a pressure plate or a tripwire.
public boolean doesEntityNotTriggerPressurePlate() { return true; }
[ "@Override\n public boolean doesEntityNotTriggerPressurePlate() {\n return this.getSpecialData().ignorePressurePlates;\n }", "public boolean doesEntityNotTriggerPressurePlate()\n {\n return true;\n }", "public boolean doesEntityNotTriggerPressurePlate ( ) {\n return false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the parent event type.
public void setParentEventType(EventType parentEventType) { this.parentEventType = parentEventType; }
[ "public void setParentType(TLAttributeType parentType) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.TYPE_ASSIGNMENT_MODIFIED, this )\n .setOldValue( this.parentType ).setNewValue( parentType ).buildEvent();\n\n this.parentType = parentType;\n publishEvent( event );...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used to register all the XStream converters scanned to a XStream instance
public void registerComponents(XStream xstream) { for(Converter converter : converters) { xstream.registerConverter(converter); logger.debug("registered Xstream converter for {}", converter.getClass().getName()); } for(SingleValueConverter converter : singleValueConverters) { xstream.registerConverter(c...
[ "private void registerDefaults()\n\t{\n\t\tregister(new BooleanConverter(), Boolean.TYPE);\n\t\tregister(new BooleanConverter(), Boolean.class);\n\n\t\tregister(new ByteConverter(), Byte.TYPE);\n\t\tregister(new ByteConverter(), Byte.class);\n\t\tregister(new ByteLocaleConverter(), Byte.TYPE);\n\t\tregister(new Byt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Servers the requested file.
private void serve() { if (request == null) { channel.close(); return; } logger.fine("Serving " + type + " request : " + request.getPath()); Response resp = RequestHandler.handle(request); if (resp.getRespCode() == ResponseCode.NOT_FOUND) { error404(resp); return; } StringBuilder header = new...
[ "private void doGetFile(Request request, Response response) {\n String fileName = getParameter(request, FILE_NAME_PARAMETER);\n // TODO in which case will getParameter return null?\n if (fileName != null) {\n try {\n File tempFile = null;\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'numberOfBMeasurements' field.
public java.lang.Integer getNumberOfBMeasurements() { return numberOfBMeasurements; }
[ "public java.lang.Integer getNumberOfBMeasurements() {\n return numberOfBMeasurements;\n }", "public void setNumberOfBMeasurements(java.lang.Integer value) {\n this.numberOfBMeasurements = value;\n }", "public com.xplordat.rtmonitoring.avro.Triangle.Builder setNumberOfBMeasurements(int value) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
dbs/corba/FailureFreeFE.java . Generated by the IDLtoJava compiler (portable), version "3.2" from dbs.idl Sunday, December 3, 2017 12:34:16 PM EST
public interface FailureFreeFE extends FailureFreeFEOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity { }
[ "public void createFailure() {\n\t\tgetController().changeFree(true);\t\t\n\t\tdisplayAdvertisement(\"opponent failure\");\n\t\tvalidate();\n\t}", "io.cloudstate.protocol.EntityProto.Failure getFailure();", "public long getRfgFailureRoutineFunctionPointer() {\n\t\treturn guardRfFailureRoutineFunctionPointer;\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Format tanggal sesuai dengan format tanggal yang ditampilkan oleh JQUERYDateTimePicker
public static String formatDateToDateTimePickerView(Date date) { if (date != null) { SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss"); return formatter.format(date); } return ""; }
[ "public void getTanggalKelahiran() {\r\n Date tanggalKelahiran = new Date(getTahunLahir() - 1900, getBulanLahir() - 1, getTanggalLahir());\r\n SimpleDateFormat ft = new SimpleDateFormat(\"dd - MM - yyyy\");\r\n System.out.println(ft.format(tanggalKelahiran));\r\n }", "public static SimpleD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the gkzBlock value for this BuildingFullData.
public void setGkzBlock(String gkzBlock) { this.gkzBlock = gkzBlock; }
[ "public String getGkzBlock() {\n return gkzBlock;\n }", "public void setBlock(MegaBlock block) {\n this.block = block;\n }", "public void setBlock(Block block) {\n this.block = block;\n }", "public void setBlock(String block) {\n this.block = block;\n }", "public void setBl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Posts a job that will be run after previously posted jobs with the same or higher priority, but before posted jobs with lower priority. You may use one of the PRIORITY_ constants defined in this class. A higher number indicates a higher priority.
public void postJob(Job job, int priority, JobListener listener) { synchronized (lock) { Integer index = null; for (int i = pendingJobs.size() - 1; index == null && i >= 0; i--) { JobDetails other = pendingJobs.get(i); if (other.priority >= priority) index = i + 1; } if (index == null) in...
[ "private void reorderJobs(JobInProgress job, JobSchedulingInfo oldInfo, \n CapacitySchedulerQueue queue, int runState) {\n if(queue.removeWaitingJob(oldInfo, runState) != null) {\n try {\n queue.addWaitingJob(job);\n } catch (IOException ioe) {\n // Ignore, cannot happen\n LOG...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This methods reload the configuration local cache following the steps: 1) Reload all the configuration cache in a new named clustered cache (only if the process is complete). 2) Stops the old clustered cache (only if the process is complete). 3) Sets as principal the new loaded cache (only if the process is complete). ...
public static void reloadConfigurationLocalCache(boolean completeProcess) throws ConfigurationCacheException { // Guardamos el momento de inicio de la operativa. long initTime = Calendar.getInstance().getTimeInMillis(); try { LOGGER.info(Language.getResCoreGeneral(ICoreGeneralMessages.UTILS_CACHE_005)); ...
[ "private void reloadFromCacheIfNeeded() {\n support.emptyTmpCache();\n //Do not reload, if cache-only is selected\n if (support.getChosenSimulatorType().equals(typeOfSimulator.Cache_Only)) {\n return;\n }\n\n //Check if cache-support is enabled\n support.emptyCac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleXConstructorCall" $ANTLR start "ruleXConstructorCall" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3053:1: ruleXConstructorCall : ( ( rule__XConstructorCall__Group__0 ) ) ;
public final void ruleXConstructorCall() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3057:2: ( ( ( rule__XConstructorCall__Group__0 )...
[ "public final void rule__XConstructorCall__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:24440:1: ( ( ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
General utils. Init a defualt logger with the given level.
protected void initLogger(String logLevel) { Logger.setLevel(logLevel); }
[ "protected void initLogger() {\n initLogger(\"DEBUG\");\n }", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "public void set_log_level(int level){logOptions.set_log_level(level);}", "private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default constructor initializing test action container and test runner fields.
public DefaultContainerRunner(TestActionContainer container, TestRunner testRunner) { this.container = container; this.testRunner = testRunner; }
[ "public ActionTest(String name) {\n\t\tsuper(name);\n\t}", "protected TeststepRunner() {}", "public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }", "public ActionManager() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests loading a configuration definition file that defines new providers.
@Test public void testConfigurationProvider() throws ConfigurationException { factory.setFile(PROVIDER_FILE); factory.getConfiguration(true); DefaultConfigurationBuilder.ConfigurationProvider provider = factory .providerForTag("test"); assertNotNull("Provider 'tes...
[ "public void testLookupProviders() {\n Iterator it = ServiceRegistry.lookupProviders(CorrectProviderConfiguration.class); \n assertEquals(\"Failed to find provider and instantiate it\",\n \"class javax.imageio.spi.CorrectProviderConfiguration\", \n it.next().getClass().to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Types into "Birthday Name 2" text box
public void TypeBirthdayName2(String TypeBirthdayName2) { birthdayname2.clear(); birthdayname2.sendKeys(TypeBirthdayName2); Log("Entered Birthday Name 2: " + TypeBirthdayName2); }
[ "public void TypeBirthdayName1(String TypeBirthdayName1) {\r\n\t\tbirthdayname1.clear();\r\n\t\tbirthdayname1.sendKeys(TypeBirthdayName1);\r\n\t\t\tLog(\"Entered Birthday Name 1: \" + TypeBirthdayName1);\r\n\t}", "public void TypeBirthdayName3(String TypeBirthdayName3) {\r\n\t\tbirthdayname3.clear();\r\n\t\tbirth...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new instance of this class given its parent (which must be a ToolBar), a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent. The style value is either one of the style constants defined in class SWT which is applicable to instances o...
public ToolItem (ToolBar parent, int style, int index) { super (parent, checkStyle (style)); this.parent = parent; int count = parent.getItemCount (); if (!(0 <= index && index <= count)) { error (SWT.ERROR_ITEM_NOT_ADDED); } createWidget (index); }
[ "public ToolItem (ToolBar parent, int style) {\n\tsuper (parent, checkStyle (style));\n\tthis.parent = parent;\n\tcreateWidget (parent.getItemCount ());\n}", "public ToolItem (ToolBar parent, int style, int index) {\r\n\tsuper (parent, checkStyle (style));\r\n\tthis.parent = parent;\r\n\tparent.createItem (this, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Nameserver constructor Code based around the nonblocking TCP server provided.
public NameServer() { hosts = new HashMap<String, String[]>(); try { // open selector selector = Selector.open(); // open socket channel serverSocketChannel = ServerSocketChannel.open(); // set the socket associated with this channel serverSocket = serverSocketChannel.socket(); //...
[ "public TcpServer() {\n }", "public NamingServer()\n {\n fileTree = FileTree.getTree();\n fileNode = fileTree.getRoot();\n serverTable = new Hashtable<>();\n\n InetSocketAddress regAddress =\n new InetSocketAddress(NamingStubs.REGISTRATION_PORT);\n regSkelet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new Message from a encrypted OmemoMessageElement. Add ourselves as the sender and the encrypted element. Also tell the server to store the message despite a possible missing body. The body will be set to a hint message that we are using OMEMO.
Message finishMessage(OmemoVAxolotlElement encrypted) { if (encrypted == null) { return null; } Message chatMessage = new Message(); chatMessage.setFrom(connection().getUser().asBareJid()); chatMessage.addExtension(encrypted); if (OmemoConfiguration.getAddOm...
[ "private void encryptMessage() {\n try {\n message.setMessage(this.MessageTextArea.getText());\n BigInteger key = this.getRecipientKey();\n BigInteger pubKey = this.getPublicKey();\n BigInteger privKey = this.getPrivateKey();\n message.sign(pubKey, privK...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the inheritance info.
private void setInheritanceInfo(DeployBeanInfo<?> info) { for (DeployBeanPropertyAssocOne<?> oneProp : info.getDescriptor().propertiesAssocOne()) { if (!oneProp.isTransient()) { DeployBeanInfo<?> assoc = deployInfoMap.get(oneProp.getTargetType()); if (assoc != null) { oneProp.getTabl...
[ "public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }", "public void handleInheritance() {\n if (resource instanceof InformationResource) {\n InformationResource ir = (InformationResource) resource;\n\n if (ir.isInheritingInvestigationInformation()) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Send a WHOIS message
public static void sendWhois(String id) { // Envoie un message Whois String msg = TYPE.WHOIS.toString()+":"+id; sendMessage(msg); }
[ "public void who(String name)\n\t{\n\t\tsendRaw(\"WHO :\" + name);\n\t}", "public void who(String channel){\n\t\t// Make a new ByteBuffer for easily concatenation of byte arrays\n\t\tByteBuffer byteBuffer = ByteBuffer.allocate(36);\nbyteBuffer.order(ByteOrder.LITTLE_ENDIAN);\t\t\t\n\tbyteBuffer.putInt(0,WHO); //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ =========================================================================== function: reverse() Reverse a list parmas: List transactions List transactions: the list to be reversed return: the reversed list ==========================================================================
private List<BankAccountEntity> reverse(List<BankAccountEntity> accounts) { List<BankAccountEntity> list = accounts; Collections.reverse(list); return list; }
[ "@NonNull\n ConsList<E> reverse();", "private void reverse(ListNode startNode, ListNode endNode) {\n endNode.next = null;\n ListNode pre = startNode, cur = startNode.next, newEnd = pre;\n while (cur != null) {\n ListNode nextNode = cur.next;\n cur.next = pre;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the orientation of the picture cat whether it is portrait or landscape
public String orientation() { int height = cat.getWidth(); int width = cat.getHeight(); if (height >= width) { return "landscape"; } else { return "portrait"; } }
[ "public int getOrientation();", "String getOrientation();", "public static int determineOrientation(InputStream input) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n\n BitmapFactory.decodeStream(input, null, options);\n if (opt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the awardID attribute.
public Long getAwardID() { return awardID; }
[ "public Integer getAwardId() {\n return awardId;\n }", "public Long getAwardId() {\n return awardId;\n }", "int getAwardId();", "public java.lang.Integer getAward () {\n\t\treturn award;\n\t}", "public String getAwardNumber() {\n return awardNumber;\n }", "public Integer getA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////////////////////////////////////////////// Implementing ISyntaxTreeSpecies methods /////////////////////////////////////////////////////////////// Creates a MultiSyntaxTreeIndividual
public MultiSyntaxTreeIndividual createIndividual() { return new MultiSyntaxTreeIndividual(); }
[ "Individual createIndividual();", "public abstract Individual makeChild(Individual otherIndividual);", "private Individual<T> createChild(List<Individual<T>> tournament) {\n Individual<T> child = mate(tournament.get(0), tournament.get(1));\n child = mutate(child);\n child = child.evaluate();\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create the default and close button.
private void createCloseButton() { centeredComp = new Composite(shell, SWT.NONE); GridLayout gl = new GridLayout(3, true); centeredComp.setLayout(gl); GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false); //gd.horizontalSpan = 3; centeredComp.setLayoutData...
[ "protected void createButtons() {\r\n\t\tthis.closeButton = this.createTitleButton();\r\n\t\tthis.closeButton.setAction(this.closeAction);\r\n\t\tthis.closeButton.setText(null);\r\n\t\tthis.closeButton.putClientProperty(\"paintActive\", Boolean.TRUE);\r\n\t\tthis.closeButton.setBorder(OntimizeTitlePane.handyEmptyBo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for creating entity manager factory that will help to create DAO objects.
public interface IEntityManagerFactory { /** * Called when entity manager factory will help to create DAO objects. * * @return */ EntityManager createEntityManager(); }
[ "public interface BaseManagerFactory {\n\n /**\n * @return BaseManager corresponds its entity\n */\n BaseManager createBaseManager(DAO dao);\n}", "interface EntityManagerFactory {\n /**\n * Creates a <em>new</em> entity manager using the given data source.\n *\n * @param dataSource ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A procedure declaration. A procedure is the supertype of methods and constructors.
public interface ProcedureDecl extends CodeDecl { /** The procedure's name. */ Id name(); /** The procedure's flags. */ FlagsNode flags(); /** * The procedure's formal parameters. * @return A list of {@link polyglot.ast.Formal Formal}. */ List<Formal> formals(); /** ...
[ "ProcedureDecl createProcedureDecl();", "Procedure createProcedure();", "public final void mPROCEDURE() throws RecognitionException {\n try {\n int _type = PROCEDURE;\n // /Users/benjamincoe/HackWars/C.g:14:11: ( 'procedure' )\n // /Users/benjamincoe/HackWars/C.g:14:13: '...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To add or remove the actual ads view container and disable/enable the ads.
private void shouldShowAds(boolean display) { if (display) { // AdRequest adRequest = new AdRequest.Builder() // .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) // .addTestDevice("ABC1234567890ABC1234567890") // .build(); RelativeLay...
[ "void callAdds()\n\t{\n adHouse = new AdView(this, AdSize.IAB_MRECT, M.HOUSE_ADV_ID);\n\t\tLinearLayout layout2 = (LinearLayout)findViewById(R.id.advhouse);\n\t\tadHouse.setGravity(Gravity.TOP);\n layout2.addView(adHouse);\n adHouse.loadAd(new AdRequest());\n /*AdHouse*/\n\t}", "privat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
implementing test case to post request response time to store data.
@Test public void storeLogDataTest() { StatisticsRequest request = new StatisticsRequest("testingid", "testing", 200, 3); webTestClient.post().uri("/logginResponseTime").contentType(MediaType.APPLICATION_JSON) .accept(MediaType.APPLICATION_JSON).body(Mono.just(request), StatisticsRequest.class).exchange() ...
[ "@Test(description = \"This test verifies api response time\", groups = { \"topmonitor\" }, enabled = false)\n\tpublic void testResponseTime() {\n\t\tString api = \"http://economictimes.indiatimes.com/homefeed.cms?feedtype=etjson&curpg=1\";\n\t\tLong startTime = System.currentTimeMillis();\n\t\tApiHelper.getAPIResp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add an edge incident on this vertex
public void addEdge(Edge e) { incident.add(e); }
[ "void addEdge(E edge);", "void addEdge(Edge e);", "void add(Edge edge);", "void addEdge(int v, int w);", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "public void addEdge(Vertex source, Vertex target);", "public void addEdge(int start, int end);", "public void addEdge(Edge e){\n edgeLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_proteinExportActionPerformed Export all peptide features to file.
private void peptideExportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_peptideExportActionPerformed outputGenerator.getPeptidesOutput(this, null, null, false, peptideValidated.isSelected(), peptideAccession.isSelected(), proteinDescriptionPeptideTab.isSelected(), !protein...
[ "private void exportProteinsJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exportProteinsJButtonActionPerformed\r\n //copyTableContentToClipboardOrFile(TableIndex.PROTEIN_TABLE); // @TODO: reimplement me!\r\n }", "private void psmExportActionPerformed(java.awt.event.ActionEven...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Integral Type'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseIntegralType(IntegralType object) { return null; }
[ "public IntType asInt() { return null; }", "public T caseIntType(IntType object)\n {\n return null;\n }", "public abstract AnyInt asAnyInt();", "public ClassOrInterfaceType toBoxedPrimitive() {\n throw new IllegalArgumentException(\"type must be primitive\");\n }", "public IntType asInt()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inicializa los datos de la factura de Gasto..
private void inicializarGasto() { this.dtoGasto.setTipoMovimiento(this.getDtoUtil().getTmFacturaGastoContado()); this.dtoGasto.setCondicionPago(this.getDtoUtil().getCondicionPagoContado()); this.dtoGasto.setProveedor(this.dto.getProveedor()); this.dtoGasto.setEstadoComprobante(this.getEstadoComprobantePendi...
[ "public Factura() {\r\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "public void inicializarMat() {\n for (int i = 0; i < tablero.length; i++) {\n for (int j = 0; j <...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the object with the settings used for calls to deleteSnapshot.
public UnaryCallSettings<DeleteSnapshotRequest, Operation> deleteSnapshotSettings() { return deleteSnapshotSettings; }
[ "public UnaryCallSettings.Builder<DeleteSnapshotRequest, Operation> deleteSnapshotSettings() {\n return deleteSnapshotSettings;\n }", "public OperationCallSettings<DeleteSnapshotRequest, Empty, OperationMetadata>\n deleteSnapshotOperationSettings() {\n return deleteSnapshotOperationSettings;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
keySet() returns a Set but this may not be the case with other YAML or JSON libs, thus we return a generic Collection of Objects
@Override public Collection<? extends Object> getKeys() { return yamlMap.keySet(); }
[ "Map<String,Object> getCollections();", "public Collection<S> getObjects() {\r\n \t\treturn hash.values();\r\n \t}", "@Override\r\n\tpublic Set<K> keySet() {\r\n\t\tSet<K> keySet = new HashSet<K>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tkeySet.addAll(b.keySet());\r\n\t\t}\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is to verify the message after sending the message to conatctUs people
public void verfiyMessage_AfterPostRequest(){ log.info("verifying the message"); String text = driver.findElement(message_AfterSendingRequest).getText(); if(text.equalsIgnoreCase(message)){ System.out.println("message matches after sending the post messaage"); } else{ System.out.println("message not ...
[ "boolean verifyMessage(String address, String signature, String message);", "void receivedEq(Object expectedMessage, VerificationMode verificationMode);", "public void verifyUser() {\n\t\toutMessage.setAction(1);\n\t\toutMessage.setObject(this.getUser());\n\t\tmodelCtrl.sendServerMessage(outMessage);\n\t\tinMes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests file comparison by contents when either of the files does not exist.
public void testCompareByContentsIsNotFile() throws Exception { logger_.info("Running testCompareByContentsIsNotFile..."); File dir = FileUtil.createTempDir(); FileUtil.setFileContents(fileB_, "fileB", false); FileComparator fc = FileComparator.COMPARE_CONTENTS; ...
[ "public void testCompareByContentsFileNotExist() throws Exception\n {\n logger_.info(\"Running testCompareByContentsFileNotExist...\");\n \n FileUtil.setFileContents(fileA_, \"fileB\", false);\n FileComparator fc = FileComparator.COMPARE_CONTENTS;\n \n try\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the days before password expires.
public int getDaysBeforePasswordExpires() { return daysBeforePasswordExpires; }
[ "public int getDaysBeforeOrderExpiration() {\n return Integer.valueOf(properties.getProperty(\"days-before-order-expiration\"));\n }", "@Override\n\tpublic int getDaysSinceLastLogin() {\n\t\tDate now = sabre.getTimeNow();\n\t\tlong timeDiff = now.getTime() - lastLogin.getTime();\n\t\tlong diffDays = Tim...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the buildingKind value for this RealtyShortData.
public kz.lof.webservices.store.bti.BuildingKind getBuildingKind() { return buildingKind; }
[ "public Byte getBuildingType() {\n return buildingType;\n }", "public String getBuildingType() {\n return (String) getAttributeInternal(BUILDINGTYPE);\n }", "public BuildingKind getBKind() {\n return BKind;\n }", "public Integer getBuildingtypeid() {\r\n\t\treturn buildingtypeid;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a valid next Node for a given Point the Point won't be validated, make sure it's ok
public Node next(Point p){ // int r, Point p, LinkedList<Point> parents // Time? Previous time + distance LinkedList<Point> nextParents = new LinkedList<Point>(parents); nextParents.add(p); double nextTime = this.time + (pos.distance(p) * this.speed); return new Node(nextTime, p, nextParents, this.spe...
[ "public PointNode (PointNode p){\r\n\t\t\r\n\t\tthis._next = p;\r\n\t\t\r\n\t}", "public Node(Point p) //is this needed\n\t{\n\t\tpoint = p;\n\t\tnext = null;\n\t}", "public Node(Point newP) {\n p = newP;\n next = null;\n }", "public Node firstToGo(Point2D targetPoint) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mark a socket as connected.
synchronized void addConnected(SocketIoSocket socket) { mConnectedSockets.put(socket.getId(), socket); }
[ "public void setSocket(SocketWrapper socket);", "private void notifyObserverOfConnect()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (m_socketObserver != null) m_socketObserver.connectionOpened(this);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n getNIOService().notifyException(e);\n\t\t}\n\t}", "public void setConnect...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methods Default main method that takes the string arguments and makes use of the hash table and memory manager to execute the commands as required.
public static void main(String[] args) throws IOException { // Prints an error message if the number of arguments passed is // incorrect if (args.length != 4) { System.out.println("Invalid command arguments"); System.out.println("Correct Format: DNAdbase <cmd_file>...
[ "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "public static void main(String[] args) {\n new DictionaryCommandline(new DictionaryManagement(new Dictionary(), new TrieNode())).dictionaryAdvance();\n }", "public static void main(String[] ar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method could not be decompiled. Original Bytecode: 3: aload_3 4: monitorexit 5: athrow 6: aload_0 7: dup 8: astore_3 9: monitorenter 10: aload_0 11: getfield facade/characters/wmedef/ReactionInfoWME.responderAttitude:I 14: istore_2 15: aload_0 16: iload_1 17: putfield facade/characters/wmedef/ReactionInfoWME.respo...
public void setResponderAttitude(final int p0) { // This method could not be decompiled. // // Original Bytecode: // // 3: aload_3 // 4: monitorexit // 5: athrow // 6: aload_0 // 7: dup ...
[ "public void setRespondingCharID(final int p0) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 3: aload_3 \n // 4: monitorexit \n // 5: athrow \n // 6: aload_0 \n // 7: du...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the books where uuid = &63; and groupId = &63; or returns null if it could not be found. Uses the finder cache.
public static Books fetchByUUID_G(String uuid, long groupId) { return getPersistence().fetchByUUID_G(uuid, groupId); }
[ "public static Books fetchByUUID_G(\n\t\tString uuid, long groupId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByUUID_G(uuid, groupId, useFinderCache);\n\t}", "public BookmarksEntry fetchByUUID_G(String uuid, long groupId);", "@Override\n\tpublic Bookmark fetchByUUID_G(\n\t\tString uuid, long...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the repository ID for the repository that contains the document.
public void setRepositoryId(String repositoryId) { this.repositoryId = repositoryId; }
[ "public void setRepository(Repository repo) {\n\t\tthis.repo = repo;\n\t}", "public void setDocumentRepository(DocumentRepository documentRepository)\n {\n this.documentRepository = documentRepository;\n }", "public void setRepository(Repository pRepository) {\n mRepository = pRepository;\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Initialize the adapter. Note that we pass a 'null' Cursor as the third argument. We will pass the adapter a Cursor only when the data has finished loading for the first time (i.e. when the LoaderManager delivers the data to onLoadFinished). Also note that we have passed the '0' flag as the last argument. This prevent...
private void setupLoadManagers() { mAdapter = new SimpleCursorAdapter(this, android.R.layout.two_line_list_item, // Specify used row template null, // Pass in the cursor to bind to. dataColumns, // Array of cursor columns to bind to. viewIDs, //...
[ "private void setupCursorAdapter() {\n // Column data from cursor to bind views from\n String[] uiBindFrom = {ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_URI};\n // View IDs which will have the respective column data inserted\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ritorna il componente unico di tipo JToggleButton. (campi di tipo CVBox)
public abstract JToggleButton getComponenteToggle();
[ "JToggleButton createToggleButton(String text, ImageIcon icon, ActionListener actionListener);", "private JToggleButton getDetailsToggleButton() {\r\n\t\tif (detailsToggleButton == null) {\r\n\t\t\ttry {\r\n\t\t\t\tdetailsToggleButton = new JToggleButton();\r\n\t\t\t\tdetailsToggleButton.setText(\"Vis detaljer\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_BtnClearOutputActionPerformed Called when the value of the telegram type combo box has changed.
private void ComboBoxTelegramTypeItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_ComboBoxTelegramTypeItemStateChanged // Only run this code if something was SELECTED. if (evt.getStateChange() != ItemEvent.SELECTED) { return; } // Enable or disable TxtFieldR...
[ "private void cbTipoActionPerformed(java.awt.event.ActionEvent evt) {\n if (cbTipo.getSelectedItem().equals(\"P\")) {\n ativaTblBotaoPeriodicos();\n txtCidadeCongresso.setText(null);\n txtDataCongresso.setText(null);\n txtNomeCongresso.setText(null);\n } els...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the entity in the cache and notifies peer caches.
@Override public void update(IBasicEntity ent) throws CachingException { EntityCachingServiceLocator.getEntityCachingService().update(ent); }
[ "public void update(CacheUpdateEvent e);", "private void updateCache() {\n try {\n LOGGER.debug(\"Starting update of {}\", this.getClass().getSimpleName());\n cache = loadCache();\n LOGGER.debug(\"{} updated\", this.getClass().getSimpleName());\n } catch (Exception ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks to see if the player has completed the maze. The player has completed the maze if they have reached the destination.
public static boolean isMazeCompleted() { // TODO: Implement this method. Boolean iscompleted=false; for(int i=0;i<no_of_rows;i++){ for(int j=0;j<board[i].length;j++){ if(board[y_position][x_position].equals("@")){ iscompleted=true; } } } return iscompleted; }
[ "boolean isMoveFinished(int tick);", "public boolean checkCompletion() {\n return board.isCompleted();\n }", "public boolean foundGoal() \r\n\t{\r\n\t\t// Write the method that determines if the walker has found a way out of the maze.\r\n\t\treturn ( currentCol < 0 || currentRow < 0 || \r\n\t\t\t\t cu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TIGTK13922 : This is a generic function use to get SLC Table attribute values by reading "Attribute Name" column setting
public Vector getSLCTableAttributeValue(Context context, String args[]) throws Exception { Vector attrValuesVector = new Vector(); try { long lStartTime = System.nanoTime(); HashMap programMap = (HashMap) JPO.unpackArgs(args); HashMap columnMap = (HashMap) programMap...
[ "private Hashtable readAttributes(String tableName)\r\n\t{\r\n\t\tHashtable<String, Attribute> attributes = new Hashtable<String, Attribute>();\r\n\t\tString filename = syscat.getDBName() + \"_\" + tableName + \".xml\";\r\n\t\ttry {\r\n DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this displays PledgeSkillList to the player.
public void showPledgeSkillList(final L2PcInstance player) { if (Config.DEBUG) { LOGGER.debug("PledgeSkillList activated on: " + getObjectId()); } if (player.getClan() == null) return; L2PledgeSkillLearn[] skills = SkillTreeTable.getInstance().getAvailablePledgeSkills(player); AquireSkillList asl ...
[ "public JPanel sectionSkills() {\n\t\t\n\t\tJLabel jlSkills = new JLabel();\n\t\tjlSkills.setText(\"Crew military skills: \");\n\t\tjlSkills.setFont(new Font(\"SansSerif\", Font.BOLD, 16));;\n\t\tString[] skills = {\"-select skill level-\", \"Excellent\", \"Very Good\", \"Good\", \"Normal\", \"Low\", \"None\"};\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log.e(TAG, "fetchPeliculaListData()"); set passed state
@Override public void fetchPeliculaListData() { CategoryItemCatalog category = getDataFromCategoryPelisListScreen(); if (category != null) { state.category = category; } // call the model model.fetchPeliculaListData(state.category, new Repository...
[ "void requestListData();", "private void initData() {\n\n if((List<SwitchDataBean>) getIntent().getSerializableExtra(\"timeList\")!=null){\n mList = (List<SwitchDataBean>) getIntent().getSerializableExtra(\"timeList\");\n } else {\n mList=new ArrayList<>();\n }\n\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes update airplane ================================ DELETE ================================
public void delete(Airplane a){ Connection conn = ConnectionFactory.getConnection(); PreparedStatement ppst = null; try { ppst = conn.prepareCall("DELETE FROM airplane WHERE airplane_key = ?"); ppst.setInt(1, a.getAirplaneKey()); ppst.executeUpdate(); ...
[ "@Test\n public void testDeleteAirplane() {\n System.out.println(\"deleteAirplane\");\n cta.deleteAirplane(9999);\n Assert.assertEquals(\"Airplane should not be found in the list\", null, cta.GetAirplane(9999));\n }", "public void close() {\n Log.log_1507();\n _apiServlet.dest...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'var281' field.
public void setVar281(java.lang.Boolean value) { this.var281 = value; }
[ "public com.dj.model.avro.LargeObjectAvro.Builder setVar281(java.lang.Boolean value) {\n validate(fields()[282], value);\n this.var281 = value;\n fieldSetFlags()[282] = true;\n return this;\n }", "public void setField281(java.lang.CharSequence value) {\n this.field281 = value;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use CSOpenHut.newBuilder() to construct.
private CSOpenHut(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private SCOpenHut(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private CSOpenHouse() {}", "private CS(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private C(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form frame6
public frame6() { initComponents(); }
[ "public NewJFrame9() {\n initComponents();\n }", "abstract public Frame newFrame(Label name, BoolList formals);", "Frame createFrame();", "public void createFrame()\n\t{\n\t\tframe = new JFrame(\"Question \" + questionCode + \":\"); // title is removed (see below)\n\t\tframe.setSize(600, 348);\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes a stream. Any any IOExceptions which occur are logged.
private static void closeStream(Closeable stream) { if (stream != null) { try { stream.close(); } catch (IOException e) { Log.e(TAG, "[Error closing stream] [Stack trace: " + e.getStackTrace() + "]"); } } }
[ "public void close() {\n try {\n if (reader != null) {\n reader.close();\n }\n } catch (final Exception ex) {\n if (LogUtil.configEnabled(this)) {\n LogUtil.config(\"Exception while closing stream.\", ex);\n }\n }\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XSwitchExpression__Group_6__0__Impl" $ANTLR start "rule__XSwitchExpression__Group_6__1" ../com.avaloq.tools.dslsdk.check.ui/srcgen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:12558:1: rule__XSwitchExpression__Group_6__1 : rule__XSwitchExpression__Group_6__1__Impl rule...
public final void rule__XSwitchExpression__Group_6__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:12562:1: ( rule__XSwi...
[ "public final void rule__XSwitchExpression__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:9137:1: ( rul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get string representation of the "\" diagonal containing the last play of the user
public String backslashDiagonal() { StringBuilder sb = new StringBuilder(height); for (int h = 0; h < height; h++) { int w = lastCol - lastTop + h; if (0 <= w && w < width) { sb.append(grid[h][w]); } } return sb.toString(); }
[ "public String slashDiagonal() {\n StringBuilder sb = new StringBuilder(height);\n\n for (int h = 0; h < height; h++) {\n int w = lastCol + lastTop - h;\n\n if (0 <= w && w < width) {\n sb.append(grid[h][w]);\n }\n }\n\n return sb.toString(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Inputs: (1) Name of league/division/tournament. (2) Number of participating teams/players (>= 4 <= 32). (3) Choose if fixtures are played once or home and away. (4) Point to be awarded to a team/player based on the outcome of a fixture (for each of win, draw, and loss). (5) Name of each team/player (in an array). Proc...
public static void createNewLeague() { //put code to get input from end-user here. //generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames); }
[ "public static void viewOutcomeOfPlayedFixtures() throws IOException\n\t{\n\t\tString leagueName = getInputFromEndUser(\"Enter the name of the league/division/tournament (case sensitive) to display its current results.\",\n\t\t\t\"View results of played fixtures.\");\n\t\tif (leagueName.equals(\"\"))\n\t\t\treturn;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes the 1D cubic interpolation using four (4^1) reference points (g0, g1, g2, g3) with their corresponding weights. The result of each reference point with the corresponding weight is summed up, whereby the total is the interpolation of the point.
public float cubicinterpolate(float g0, float g1, float g2, float g3, float factor) { float result = 0.0f; // interpolation takes into account 4 voxels in each direction result += g0 * weight(1 + factor, false); result += g1 * weight(factor, true); result += g2 * weight(1 - fac...
[ "static public final void interpolate (float weight,\n\t\tMlVector3 v0, MlVector3 v1, MlVector3 result)\n {\n result.m_vector[0] = (v0.m_vector[0] * (MlScalar.ML_SCALAR_ONE - weight)) +\n \t(v1.m_vector[0] * weight) ;\n result.m_vector[1] = (v0.m_vector[1] * (MlScalar.ML_SCALAR_ONE - weight)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reset variables based on edit mode or play mode
static void reset(String type) { if(type.equals("play")) { cursorX = -1; cursorY = -1; for(int a = 0; a < maze.length; a++) { for(int b = 0; b < maze[a].length; b++) { if(maze[a][b] == 'S') { playerX = b; playerY = a; ...
[ "public void clearEditMode()\n\t{\n\t\tpromptTarget = \"\";\n\t\tpromptType = \"\";\n\t\tcs = lastCs;\n\t}", "public void resetVariables() {\n longPressID = -1;\n longPressTimer = 0;\n longPress = false;\n clickID = -1;\n clickTimer = 0;\n }", "public void resetEdit() {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setup the alarm card adapter.
private void setupAlarmCardAdapter() { NacCardAdapter cardAdapter = this.getCardAdapter(); cardAdapter.build(); }
[ "private void addSetAlarmFromIntent()\n\t{\n\t\tIntent intent = getIntent();\n\t\tNacCardAdapter cardAdapter = this.getCardAdapter();\n\t\tNacAlarm alarm = NacIntent.getSetAlarm(this, intent);\n\n\t\tif (alarm != null)\n\t\t{\n\t\t\tint id = cardAdapter.getUniqueId();\n\n\t\t\talarm.setId(id);\n\t\t\tcardAdapter.ad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_SGSN_AUTHEN_PAGING.SGSN_NAME
public void setSgsnName(String sgsnName) { this.sgsnName = sgsnName; }
[ "public void setNameSP(String nameSP) {\n this.nameSP = nameSP;\n }", "public String getSgsnName() {\r\n return sgsnName;\r\n }", "public Builder setDbsnpRS(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n dbsnpRS_ =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Static Java stub's method name.
public final String getJavaStaticBridgeStubMethodName() { if (javaStaticBridgeStubMethodName == null) { synchronized (this) { if (javaStaticBridgeStubMethodName == null) { try { javaStaticBridgeStubMethodName = CxxUtils.getStaticStubName(th...
[ "public final String getJavaStaticStubMethodName() {\n if (javaStaticStubMethodName == null) {\n synchronized (this) {\n if (javaStaticStubMethodName == null) {\n try {\n javaStaticStubMethodName = CxxUtils.getStaticStubName(this, false);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create button event listener Gather input data and try to create a new family
public void onCreateButtonClick(View v) { String familyName = familyNameInput.getText().toString(); String userName = userNameInput.getText().toString(); if (!familyName.isEmpty() && !userName.isEmpty()) { Client.createNewFamily(this, familyName, userName); } else {...
[ "public void createEvents() {\n\t\tbtnNewButton.addActionListener(new ActionListener() { // when btnBuild button is pressed\n\t\t\tpublic void actionPerformed(ActionEvent e) { // the output comes out\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}", "public void manageInputPointCreation(){\n Button addInput...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
verify the required parameter 'customRoleKey' is set
@SuppressWarnings("rawtypes") private com.squareup.okhttp.Call getCustomRoleValidateBeforeCall(String customRoleKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { if (customRoleKey == null) { ...
[ "boolean hasLoginCreateRoleRequest();", "@Test\n\tpublic void testCheckRole_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString role = \"\";\n\n\t\tfixture.checkRole(role);\n\n\t\t// add additional test code he...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the fields of the route of the flight.
public BookingSerializedEntityBuilder setRouteFields(final Route route) { destinationAirport = route.getDestinationAirport().getIata(); originAirport = route.getOriginAirport().getIata(); return this; }
[ "public void setRoute(Route newRoute) {\n route = newRoute;\n }", "public abstract void setFlightPlan(FlightPlan flightPlan);", "public BookingSerializedEntityBuilder setFlightFields(final Flight flight) {\r\n departureDate = flight.getDepartureDate();\r\n departureTime = flight.getDep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Baseline the rule against the last scan result.
public synchronized boolean baseline() throws RuleBaselineException, SQLException{ Connection conn = null; try{ // 0 -- Precondition check if( this.scanRuleId < 0 ){ return false; } conn = this.appRes.getDatabaseConnection(DatabaseAccessType.SCANNER); // 1 -- Load the most current scan...
[ "public void setBaseline()\n\t{\n\t\tfor(int i = 0; i < 61; i++)\n\t\t{\n\t\t\tbaseline.add(this.model.get(Integer.toString(i)));\n\t\t}\n\t}", "public double getBaseline() {\n\t\treturn this.baseline;\n\t}", "public double getBaselineValueFromThisSequence() {\n return baseline;\n }", "private void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the wCellPaddingDefaultTop field for the TAP record.
public void setWCellPaddingDefaultTop( short field_42_wCellPaddingDefaultTop ) { this.field_42_wCellPaddingDefaultTop = field_42_wCellPaddingDefaultTop; }
[ "public void setFtsCellPaddingDefaultTop(\n byte field_46_ftsCellPaddingDefaultTop )\n {\n this.field_46_ftsCellPaddingDefaultTop = field_46_ftsCellPaddingDefaultTop;\n }", "public void setWCellSpacingDefaultTop( short field_50_wCellSpacingDefaultTop )\n {\n this.field_50_wCellSp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new TimeObjectPair with the specified values. Runtime O(1).
protected TimeObjectPair(int time, R value) { this.time = time; this.value = value; }
[ "@Override\n public TimeObjectPair clone() {\n return new TimeObjectPair(time, value);\n }", "private Pair(K key, V value) {\n \tthis.key = key;\n \tthis.value = value;\n }", "public Pair(K key, V value) {\n this.key = key;\n this.value = value;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines the entity type the action targets or is directly references by its opcode
public static EntityType op2EntityType(int opcode) { switch (Action.pruneOpcode(opcode)) { case OBJECT_ACTION_0: case OBJECT_ACTION_1: case OBJECT_ACTION_2: case OBJECT_ACTION_3: case OBJECT_ACTION_4: case EXAMINE_OBJECT: case I...
[ "Action getType();", "public TargetType getType();", "ActionType getType();", "public ActionType getType(){return type;}", "void entityActionSelected(Action action);", "protocol.rpc.CodeActionClientCapabilities.CodeActionLiteralSupport.CodeActionKind getCodeActionKind();", "java.lang.String getTargetKin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface task item listener
public interface TaskItemListener { void onTaskClick(View view, Task clickedTask); void onCompleteTaskClick(Task completedTask); void onActivateTaskClick(Task activatedTask); }
[ "public interface OnTaskSelectedListener {\n void onTaskSelected(int id, String title, String description, int deadline, int completed, int created);\n }", "interface TaskListStateListener {\n void onTaskListUpdated();\n}", "public interface EventListener {\n\n\t/**\n\t * Called when a task event h...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called when the user presses the 'Update book' button. It loads the .fxml for the dialog used when updating books; after the fields were filled in by the user it calls the function that updates the new entry in the library.db.
@FXML public void showUpdateBookDialog() { final BookAuthor bookAuthor = (BookAuthor) table.getSelectionModel().getSelectedItem(); if (bookAuthor == null) { System.out.println("No book selected."); return; } Dialog<ButtonType> dialog = new Dialog<>(); ...
[ "@FXML\n public void showInsertBookDialog() {\n Dialog<ButtonType> dialog = new Dialog<>();\n dialog.initOwner(mainBorderPane.getScene().getWindow());\n FXMLLoader fxmlLoader = new FXMLLoader();\n// fxmlLoader.setLocation(getClass().getResource(\"/view/librarian_view/insert_book/inser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides reprezentation of the contents as the URL parameters.
public interface Parametralizable { /** * Gets reprezentation of the contents as the URL parameters. * @return reprezentation of the contents as the URL parameters */ String toParameter(); }
[ "public abstract String toURLParam();", "public String getQueryString(String contentEncoding) {\n \n CollectionProperty arguments = getArguments().getArguments();\n // Optimisation : avoid building useless objects if empty arguments\n if(arguments.size() == 0) {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Search for the gatunek corresponding to the query.
Page<GatunekDTO> search(String query, Pageable pageable);
[ "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "Search getSearch();", "List<Prueba> search(String query);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }