query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
$ANTLR end "rule__Catch__Group__3" $ANTLR start "rule__Catch__Group__3__Impl" InternalSparrow.g:1417:1: rule__Catch__Group__3__Impl : ( ( rule__Catch__ActionAssignment_3 ) ) ;
public final void rule__Catch__Group__3__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSparrow.g:1421:1: ( ( ( rule__Catch__ActionAssignment_3 )* ) ) // InternalSparrow.g:1422:1: ( ( rule__Catch__ActionAssignment_3 )* ) ...
[ "public final void rule__XAssignment__Group_0__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:10131:1: ( rule__XAssignment__Group_0__3__Impl )\n // InternalOcelet.g:10132:2: rule__XAssignment__Group_0__3__Impl\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor for the property "SendBackupsTask" Getter for property SendBackupsTask. The task that is responsible to send scheduled backup message ($BackupAllRequest) for the pending backup changes.
public PartitionedCache.SendBackupsTask getSendBackupsTask() { return __m_SendBackupsTask; }
[ "public java.util.List<xapp.battle.Battle.Task> getTaskList() {\n if (taskBuilder_ == null) {\n return java.util.Collections.unmodifiableList(task_);\n } else {\n return taskBuilder_.getMessageList();\n }\n }", "protected List<BatchContextTask> getSubmittedTasks() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 NumberOfMedicPersonnel = 7;
public int getNumberOfMedicPersonnel() { return numberOfMedicPersonnel_; }
[ "public int getNumPeople()\n {\n return myNumPeople;\n }", "static int getNbPersonnes(){\n return nbPersonnes;\n }", "public int getNCausesMax();", "public int getTier1MaxLots(){\r\n return localTier1MaxLots;\r\n }", "public int getTier...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
rdfs:label has group name rdfs:description Experimental groups are often described with synonyms in a scientific text, e.g. control group ('control') versus treated group ('treated').
@Override public ExperimentalGroup setGroupNames(List<IGroupName> groupNames){ if(groupNames==null){throw new IllegalArgumentException("Can not set list objects to null.");}this.groupNames = groupNames; return this;}
[ "public void setGroupDescription(final String description) {\r\n this.description = description;\r\n }", "@Override\n\tpublic String toString() {\n\t\tString result = \"Group \" + getElementId();\n\t\tif (textLabel != null && !Utils.stringEquals(textLabel, \"\")) {\n\t\t\tresult = result + \": \" + text...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Konvertiert und validiert die request parameter
protected boolean convertAndValidate(String command){ if (command == null) return true; if (command.equals("bewerten")){ rezept = new Rezept(); convert(FROM_UI); } return errors.isEmpty(); }
[ "@Override\n\tpublic void getParameterFromRequest(HttpServletRequest req) {\n\t\t\n\t}", "@Override\r\n\tprotected void validateRequest() {\n\t\t\r\n\t}", "HttpReqParam getPostParameter(String parameter);", "java.lang.String getRequestInof();", "@GetMapping(\"/mix-params-request\")\n\tpublic String param(Ht...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Long countStudentReports(Map<String, Object> params) { return dataReportDetailsMapper.countStudentReports(params); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs an initially empty sample dimension.
public DefaultSampleDimension() { }
[ "public Dimension() {\n\tthis(0, 0);\n }", "public Sample(short c, int dim) {\n\t\tthis.c = c;\n\t\tx = new double [dim];\n\t}", "public Builder clearDimensions() {\n dimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to Initialize Task
public void initializeTimerTask() { try { timerTask = new TimerTask() { public void run() { //use a handler to run a toast that shows the current timestamp handler.post(new Runnable() { public void run() { ...
[ "public Task() {\n\t\t// basic constructor\n\t}", "void init(ITaskExecution task, IScheduler sched);", "public BasicTask() {\n\n }", "public void init() {\n\n\t\t// Locate our personal Task Config.\n\t\tconfig = configRegistry.getTaskConfig(this);\n\n\t\tinitialized = true;\n\n\t\ttry {\n\t\t RCS_Controll...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Put methods for controlling this subsystem here. Call these from Commands.
public void initDefaultCommand() { // Set the default command for a subsystem here. //setDefaultCommand(new MySpecialCommand()); }
[ "public void controlCommand(){\n\t\t}", "private void initCommandHelper() {\n permissionHandler = new CSPermissions(this);\n commandHandler = new CommandHandler(this, permissionHandler);\n // register the commands\n if (allow_afk) {\n commandHandler.registerCommand(new AfkCo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Has the lowest possible priority.
@Override public int getPriority() { return 1; }
[ "public boolean isPriority()\r\n/* 58: */ {\r\n/* 59:55 */ return true;\r\n/* 60: */ }", "public boolean isPriority()\r\n/* 43: */ {\r\n/* 44:42 */ return false;\r\n/* 45: */ }", "@Override\n\tpublic boolean hasPriority() {\n\t\treturn false;\n\t}", "public boolean hasPriority() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the given long field name for the current PortletSignUp.
public long getLongFieldValue(String fieldName) throws NoSuchFieldException { return super.getLongFieldValue(fieldName); }
[ "@Field(1) \n\tpublic Pointer<Byte > long_name() {\n\t\treturn this.io.getPointerField(this, 1);\n\t}", "public String getLongName() {\r\n return longName;\r\n }", "public long longValue() {\n/* 132 */ return (new Long(this.name)).longValue();\n/* */ }", "public java.lang.String getNewPas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table T_JS_ZSCQ
int deleteByPrimaryKey(JsZscqKey key);
[ "public void setJsqdzcs(Integer jsqdzcs) {\n this.jsqdzcs = jsqdzcs;\n }", "@Select({\r\n \"select\",\r\n \"BASE_DATE, ORG_CD, BRANCH_CD, DEPT_CD, OFFICE_CD, START_DATE, END_DATE, UPDATE_DATE, \",\r\n \"UPDATE_UID, ORG_SEND_YN\",\r\n \"from OP.T_FN_EMART_DEMAND_DATE\",\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int isNullable(int column) throws SQLException { return 0; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the default value of MaxCacheSize from dtd
public static String getDefaultMaxCacheSize() { return "512".trim(); }
[ "public int getMaxCacheSize() {\n return maxCacheSize;\n }", "public static int getDefaultLruCacheSize() {\n final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); //4MB indeeed\n final int cacheSize = maxMemory / 8;\n\n return cacheSize;\n }", "public long getL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Send a request to the SafetyNet Attestation API See
@ReactMethod public void sendAttestationRequest(String nonceString, String apiKey, final Promise promise){ byte[] nonce; Activity activity; nonce = stringToBytes(nonceString); activity = getCurrentActivity(); SafetyNet.getClient(baseContext).attest(nonce, apiKey) .addOnSuccessListener(activity...
[ "private static void sendRequest() {\n\n try {\n // Create request\n Content content = Request.Post(\"http://localhost:7474/db/data/transaction\")\n\n // Add headers\n .addHeader(\"X-stream\", \"true\")\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return the start date attribute for the employee
public Date getStartDate() { return startDate; }
[ "public Date getStartDate() \r\n\t{\r\n\t\treturn startDate;\r\n\t}", "public Date getStartDate() {\r\n\t\tsuper.tryFetch();\r\n\t\treturn startDate;\r\n\t}", "protected AbsoluteDate getStartDate() {\n return startDate;\n }", "public Date getStartDate()\r\n {\r\n return startDate;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<FestivalBeer> getAllFestivalBeers() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We can switch to frame by index, by name or ID, by WebElement javadoc: This method will switch to a frame by the given frame index
public static void switchToFrame(int frameIndex) { try { driver.switchTo().frame(frameIndex); } catch (NoSuchFrameException e) { e.printStackTrace(); } }
[ "public void switchframe(WebDriver driver, int index) \r\n\t{\r\n\t\tdriver.switchTo().frame(index);\r\n\t}", "@Then(\"^I switch to frame (.*)$\")\n\tpublic void switch_frame_by_element(String name)\n\t{\n\t\tElementObject pObj= PageObjectGenerator.getElementObject(name);\n\t\tnavigationObj.switchFrame(pObj.getAc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleExpression500fx" $ANTLR start "entryRuleExpression400yfx" ../ai.vital.flora2.edit/srcgen/ai/vital/flora2/edit/parser/antlr/internal/InternalFlora2Editor.g:1312:1: entryRuleExpression400yfx returns [EObject current=null] : iv_ruleExpression400yfx= ruleExpression400yfx EOF ;
public final EObject entryRuleExpression400yfx() throws RecognitionException { EObject current = null; EObject iv_ruleExpression400yfx = null; try { // ../ai.vital.flora2.edit/src-gen/ai/vital/flora2/edit/parser/antlr/internal/InternalFlora2Editor.g:1313:2: (iv_ruleExpression400yf...
[ "public final void entryRuleXExpression() throws RecognitionException {\n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:2080:1: ( ruleXExpression EOF )\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fill list with all registered decorators in the state
public FacetTypeDecorator getDecoratorBy(ID facetTypeID) { List<FacetTypeDecorator> tDecors = new LinkedList<FacetTypeDecorator>(); tDecors.addAll(state.getAdditionalFacets()); tDecors.addAll(state.getPresentedFacets()); for (Facet selectedFacet : state.getSelectedFacets()) { tDecors.add(DynamicDecorat...
[ "public void clearDecorator()\r\n\t{\r\n\t\tdecoratorList.clear();\r\n\t}", "@Override\n\tpublic ArrayList<ILandDecorator> getDecorators() {\n\t\treturn null;\n\t}", "public Set<DecoratorDef> getDecoratorDefs()\n {\n return Collections.emptySet();\n }", "public List<? extends AbstractDecorator> g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Product getProductByName(String name) { return productDAO.getProductByName(name); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a String with all attributes in name = value format.
public String toString() { final String TAB = " "; StringBuilder retValue = new StringBuilder(); retValue.append("StringIDArrayForm ( ") .append(super.toString()).append(TAB) .append("id = ").append(this.id).append(TAB) .append(" )"); return re...
[ "String getAttributesToString();", "protected String paramString () {\n return \"attributes=\" + attributes\n + \", attributeGroups=\" + attributeGroups;\n }", "@SyntheticMember\n @Pure\n protected String attributesToString() {\n StringBuilder result = new StringBuilder(super.attributesToString())...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////////////////////////////////////////////////////////////////////// PUBLIC METHODS /////////////////////////////////////////////////////////////////////////////////////// Returns the dirty status of THIS object but when computing the dirty status, NOT every dependant objects
public boolean isThisDirty();
[ "@objid (\"01f41744-0000-001b-0000-000000000000\")\n boolean isDirty();", "@Override\n public boolean isDirty()\n {\n return !isReadOnly() && isDirty;\n }", "public boolean dirty() {\r\n\t\t\r\n\t\treturn dirty;\r\n\t\t\r\n\t}", "public boolean isDirty() {\n return getBooleanPropertyDefa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ClassLoader classLoader = new ClassLoader(); Launcher.getLauncher().getClassLoader();
public static void main(String[] args) { ClassLoaderParentTest classLoaderTest = new ClassLoaderParentTest(); classLoaderTest.getClass().getClassLoader().getParent(); System.out.println(classLoaderTest.a); System.out.println(classLoaderTest.b); }
[ "LaunchClassLoader getClassLoader() { return this.classLoader; }", "@Override\r\n\tpublic ClassLoader getClassLoader() {\n\t\treturn activity.getClassLoader();\r\n\t}", "private static ClassLoader getPluginClassLoader() {\n if (CL == null) {\n try {\n if (JDUtilities.getRunType(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Memunculkan atau menyembunyikan dashboard
private void animateDashboard(boolean show) { if (show) { // munculkan if (dashboardView.getVisibility() == View.GONE) { dashboardView.setY(-view.getHeight()); dashboardView.setVisibility(View.VISIBLE); } animDash.setFloatValues(dashboardView.getY(), topbar.getHeight()); dashboard.init(); ca...
[ "public void dashboard(){\n }", "public void showDashboard()\n {\n }", "public ViewAdminTambahDosenKelas() {\n initComponents();\n setTitle(\"Tambah Dosen Kelas | Admin\");\n setLocationRelativeTo(null);\n }", "private void showMenue() {\n\t\tint i = 1;\n\t\tSystem.out.println...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Divides and modifies caller's instance variables. Input is unaffected.
public void divide(Rational inp) { if (inp._denom != 0) { _num /= inp._num; _denom /= inp._denom; } else { System.out.println("Divide by 0 error"); } }
[ "public void divide(){\n /* IMPLEMENTATION */\n }", "private void computeDivision() {\n\n }", "public UReal divideBy(MassTemperature r) {\nreturn super.divideBy(r).value.clone();\n}", "static void div(final MethodVisitor mv, final CodeGenContext context) {\n saveX(mv, context);\n mv....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Render method to draw Aliens in the LevelBuilder.
public void renderDrawAliens(Graphics g) { g.drawString("Selected Alien: ", Main.WIDTH / 3, menuHeight / 2); g.drawString("1: MiniAlien ", Main.WIDTH - Main.WIDTH / 4, menuHeight / 6); g.drawString("2: SmallAlien ", Main.WIDTH - Main.WIDTH / 4, 2 * menuHeight / 6); g.drawStrin...
[ "public void createAlien() {\n\t if (System.currentTimeMillis() - lastAlienTime < alienTime)\n\t return;\n\t \n\t // Reset lastAlienTime to now\n\t lastAlienTime = System.currentTimeMillis();\n\t \n\t // add to alien list\n\t // Reflection/ Generated code to assign dynamically?\n\t for(int i = 0;i<level...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the path discounting factors.
public Double[][][] getPathDiscountingFactor() { return _pathDiscountingFactor; }
[ "public static float DiscountFactor(int path_size) {\n\t\t\n\t\tfloat factor = discount_fact_buff.get(discount_fact_buff.size() - 1);\n\t\tfor(int i=discount_fact_buff.size(); i<path_size; i++) {\n\t\t\tfactor *= FACTOR;\n\t\t\tdiscount_fact_buff.add(factor);\n\t\t}\n\t\t\n\t\treturn discount_fact_buff.get(path_siz...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo para obtener un usuario dados sus datos de donacion
public UsuarioRegistradoDTO obtener(DonanteDTO donanteDTO) throws MyException;
[ "public void cargarInformacionUsuario(){\n //todo En caso que el usurio no se ha registrado en usuario es el \"invitado\"\n\n //todo Debe cargar las facturas asociadas\n }", "public List<DonacionUsuarioRegistradoDTO> obtener(String cedula) throws MyException;", "private void cargaUsuarios() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column cm_billing_acct.REGION_ID
public String getRegionId() { return regionId; }
[ "@AutoEscape\n\tpublic String getRegionId();", "public BigDecimal getRegionId() {\n return regionId;\n }", "public int getRegionId() {\r\n return regionId;\r\n }", "public int getRegionId() {\n\t\treturn this.id;\n\t}", "private java.lang.Integer getRegionID() {\n\t\treturn regionID;\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the part size to be used in multi part upload.
long getPartSize() { return partSize; }
[ "private int getPartSize() throws IOException {\n\t\tinputStream = Files.newInputStream(Paths.get(filePath));\n\t\tint lastPartNumber = readPartHeader();\n\t\tinputStream.close();\n\t\treturn lastPartNumber + 1;\n\t}", "public long getSize() {\n\t\treturn m_partList.size();\n\t}", "int getMaximumUploadSize();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<AdminRefundnExchangeVO> AdminOrderList(PagingCriteria cri) throws Exception { return ses.selectList(namespace+".AdminOrderList",cri); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Remote getPort(Class arg0) throws ServiceException { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of up floors that need to be stopped at.
public boolean[] getUpArray() { return eci.getUpArray(); }
[ "public void goUp() {\r\n\t\tint index = 0;\r\n\r\n\t\tfor (Integer current : goingUp) {\r\n\t\t\ttry {\r\n\t\t\t\twait.sleep(3000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tif (index <= 7 && index != 4) {\r\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for AttributeNum6, using the alias name AttributeNum6.
public Number getAttributeNum6() { return (Number)getAttributeInternal(ATTRIBUTENUM6); }
[ "public String getAttributeValue7() {\r\n return attributeValue7;\r\n }", "public java.lang.String getAttribute6Type() {\n return attribute6Type;\n }", "public String getAttribute7_1_1_1_1_1_1() {\n return (String)getAttributeInternal(ATTRIBUTE7_1_1_1_1_1_1);\n }", "public Number...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column sys_role_menu.id
public Long getId() { return id; }
[ "public Number getRoleMenuItemsRoleId() {\n return (Number) getAttributeInternal(ROLEMENUITEMSROLEID);\n }", "public String getMenuId() {\n\t\treturn menuId;\n\t}", "public List<RoleMenu> getRoleMenu(Long menuId) ;", "public Long getMenuTypeId() {\n return id;\n }", "public String getrol...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to broadcast a system message from a player, will be subject to mute and spam checks. Will not be seen by people ignoring the player.
public boolean playerSystemBroadcast(IPlayer player, String message) { if (!muteCheck(player)) return false; broadcastMessage(message, ignoreHandler.getPlayersIgnoring(player)); return true; }
[ "void broadcast( String message, String permission );", "public void broadcast(String message) {\n\t\tfor(Player p : Bukkit.getOnlinePlayers())\n\t\t\tp.sendMessage(message);\n\t\tBukkit.getConsoleSender().sendMessage(message);\n\t}", "public void broadcast(Session sender, Message msg) {\n // TODO: imple...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toast.makeText(view.getContext(), title.getText() + " | " + subtitle.getText(), Toast.LENGTH_SHORT).show(); Toast.makeText(view.getContext()," Ciao ", Toast.LENGTH_SHORT).show();
@Override public void onClick(View view) { }
[ "@Override\n public void onClick(View v) {\n TextView viewMain =(TextView) v.findViewById(R.id.textTitle);\n Toast.makeText(context, \"You Clicked \" + viewMain.getText(), Toast.LENGTH_LONG).show();\n }", "private void displayToast(CharSequence text){\n C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public ValueInclusion[] getPropertyUpdateGenerationInclusions() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public QueryBuilder groupBy(String... fields) { return this; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
protected void captureImage() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Uri fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This method handles note save even if the user id already exists. If user id already exists the new note is added to the list of existing notes of that user. If user id is not present then new note is inserted with that user id.
public boolean createNoteOfUser(Note note) { boolean status = false; try { List<Note> noteList = getAllNoteByUserId(note.getNoteCreatedBy()); note.setNoteId(getLastNoteId(noteList) + 1); note.setNoteCreationDate(new Date()); if (note.getCategory() != null) { note.getCategory().setCategoryCreationDa...
[ "public void addNote(String userId, String note)\n throws Exception {\n \tcheckDataExist();\n \t\n \tif (currentUser.role == Role.GRADUATE_PROGRAM_COORDINATOR) {\n \t\tStudentRecord currentRecord = getTranscript(userId);\n List<String> currentNote = currentRecord.getNotes();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a HyConfig object.
public HyConfig(File configFile) { this(configFile, true, false); }
[ "protected abstract IConfigNetwork make_config();", "private Config() {\n init();\n }", "public Config()\r\n\t{\r\n\t}", "public Config() {\n }", "HMIConfiguration createHMIConfiguration();", "ConfigurationWps createConfigurationWps();", "public Configuration() {\n\t\t\n\t}", "HashCon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 eresult = 1 [default = 2];
public Builder setEresult(int value) { bitField0_ |= 0x00000001; eresult_ = value; onChanged(); return this; }
[ "int getResultNum();", "public int getResultValue() {\n return result_;\n }", "int getSrval();", "public int getRet() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getResult(int x) {\n\t\treturn 0;\n\t}", "long getValue111();", "long getValue031();", "long getResult();", "long getValue011();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Join for two abstract values
public static L join(L v1, L v2) { // TODO: Implement union if (v1 == L.P && v2 == L.P) { return L.P; } if (v1 == L.N && v2 == L.N) { return L.N; } if (v1 == L.Z && v2 == L.Z) { return L.Z; } if (v1 == L.Bott...
[ "static final <T,U> DynamoDBMapperValueConverter<U> join(final DynamoDBMapperValueConverter<T> source, final DynamoDBTypeConverter<T,U> target) {\n return new DynamoDBMapperValueConverter<U>() {\n @Override\n public final DynamoDBAttributeType getDynamoDBAttributeType() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end entryRuleBaseTrait $ANTLR start ruleBaseTrait ../org.xtext.example.swrtj.ui/srcgen/org/xtext/example/ui/contentassist/antlr/internal/InternalSwrtj.g:491:1: ruleBaseTrait : ( ( rule__BaseTrait__Alternatives ) ) ;
public final void ruleBaseTrait() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.swrtj.ui/src-gen/org/xtext/example/ui/contentassist/antlr/internal/InternalSwrtj.g:495:2: ( ( ( rule__BaseTrait__Alternatives ) ) ) // .....
[ "public final EObject ruleTraitExpression() throws RecognitionException {\n EObject current = null;\n\n EObject lv_traitList_0_0 = null;\n\n EObject lv_traitList_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the geometrical type of this shape. May be computed dynamically (from the JTS inner geometry) or stored somewhere (in the attributes of the shape, using TYPE_ATTRIBUTE)
public IShape.Type getGeometricalType();
[ "String getGeometryType();", "public String getType() {\n return GEOMETRY_TYPE;\n }", "public GeoJsonObjectType determineGeoJsonType() {\n\t\tif (numberOfClosedPolygons == 0) {\n\t\t\treturn GeoJsonObjectType.LINE_STRING;\n\t\t} else if (numberOfClosedPolygons == 1) {\n\t\t\treturn GeoJsonObjectType.P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string MeetingHandle = 14;
public Builder setMeetingHandleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; meetingHandle_ = value; onChanged(); return this; }
[ "public static String meeting_id() {\n\t\treturn moduleProvider.get().meeting_id;\n\t}", "public void setSenderSocialNo(java.lang.String param){\r\n localSenderSocialNoTracker = true;\r\n \r\n this.localSenderS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onSuccess(Request request) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
change way of sorting based on way selected
@Override public boolean onNavigationItemSelected(int itemposition, long itemid) { ClientData cd = new ClientData(activitycontext); sortList(itemposition, dataManager, cd); qla.update(); return true; }
[ "void switchSorting() {\n sortOrder.swap();\n }", "public void sort() {\n if (sortingpref == 0)\n sortByName();\n if (sortingpref == 1)\n sortByDate();\n if (sortingpref == 2)\n sortByBirthYear();\n }", "public void reSort() {\n switch (Activ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List orders = orderService.query(10001); System.out.println(orders);
@Test public void testOrder(){ Order order = orderService.query(100001, 633370312214679552L); System.out.println(order); orderService.delete(633370312214679552L); order = orderService.query(100001, 633370312214679552L); System.out.println(order); // Order order = n...
[ "public List<Order> listAllOrders();", "@Test\n public void hisOrders() {\n OrderRequest orderRequest = new OrderRequest(\"INSBTC\");\n List<Order> openOrders = client.getOpenOrders(orderRequest);\n System.out.println(JSON.toJSONString(openOrders));\n }", "List<OrderServiceModel> find...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get device token from SharedPreferences
private void updateUI() { deviceToken = getDeviceToken(); // Registration failed? if (deviceToken == null) { Log.e(TAG, "failed generate token "); // Stop execution return; } }
[ "public static String getDeviceToken(Context context) {\r\n return getInstance(context).getString(PreferenceConstants.DEVICE_TOKEN, \"\");\r\n }", "public String getUser(){\n SharedPreferences sharedPreferences = context.getSharedPreferences(SHARED_PREF_NAME,context.MODE_PRIVATE);\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onProviderEnabled(String provider) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the logger instance.
public Entity setLogger(final SafeLogger aLogger) { this.logger = aLogger; return this; }
[ "public static synchronized void setLog(ILogger logger) {\r\n\t\tlog = logger;\r\n\t}", "void setLog(Logger log);", "public final static void setLogger(final Logger logger) {\n JQuantLib.logger = logger;\n }", "@Override\r\n\tpublic void setLogger(Logger paramLogger) {\n\t\t\r\n\t}", "public stati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Execute this script using the supplied IConfigure to interact with the user. We create a work list of screens, then repeatedly scan the list looking for the first screen that is ready to be executed. When a screen is found, we remove it from the work list and execute it. The process stops when the work list is empty, o...
public void execute(Configure configure) throws ConfigureException { List<Screen> workList = new LinkedList<Screen>(); workList.addAll(screens); boolean progress; do { progress = false; for (Iterator<Screen> it = workList.iterator(); it.hasNext(); /**/) { ...
[ "public void run() throws HaBitUiException {\n defaultDisplay();\n Scanner in = new Scanner(System.in);\n String userInput = readUserInput(in);\n while (!userInput.equals(\"5\") && !userInput.equals(\"6\")) {\n scenario1To4(userInput);\n userInput = readUserInput(in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 4. when some views conflict with swipe back , you should do these, for example:
@Override public void onPageSelected(int position) { if (position != 0) { /// if the current view page is not the first, make 'viewPager' receive touch event. // helper.disableSwipeBack(); /// or enable edge mode ...
[ "@Override\n public void onBack(View view) {\n super.onBack(view);\n }", "@Override\n\tpublic void onClickBackView(int position) {\n\t}", "@Override\n public void onGoBack() {\n }", "@Override\n protected boolean canGoBack() {\n return fal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
you can change the simpleDist according to what you need
public float simpleDist(String s1, String s2) { float min = Math.abs(s1.length() - s2.length()); return min; }
[ "public void setDist(Number dist) { this.dist = dist; }", "double getTotalDist();", "public void setDistWeight( float weight ) {\r\n distWeight = weight;\r\n }", "static double getDistance() {\n\t\r\n\tultraProvider.fetchSample(ultraSample, 0);\r\n\treturn ultraSample[0];\r\n \r\n}", "private doub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
print out the instruction list.
public void printInsList(){ System.out.println("Code block: "); for(Instruction ins: instructionList){ ins.printFields(); } }
[ "public void printInstructions() {\n\t\tSystem.out.println(\"#########################################################\");\n\t\tSystem.out.println(\"# 1. Afficher vos cartes ouvriers\t\t\t\t\t\t\");\n\t\tSystem.out.println(\"# 2. Afficher vos cartes batiments\t\t\t\t\t\t\");\n\t\tSystem.out.println(\"# 3. Afficher ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column vehicle_type.vehicle_type_id
public Integer getVehicleTypeId() { return vehicleTypeId; }
[ "public VehicleType getVehicleType(int vehicleTypeID);", "@Column(name=\"type_id\")\n public int getTypeId()\n {\n return typeId;\n }", "public String getVehicleId() {\r\n return this.Vehicle_id;\r\n }", "public Long getTypeID()\n {\n return typeID;\n }", "@NotNull\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construye un campo de texto al cual se le aplicara un formateo del tipo dd/MM/yyyy, iniciandolo con la fecha que se le pasa como argumento.");
public JTextFieldDate(String text) { super(text); setFormatter(mf); setMinimumSize(size); setPreferredSize(size); setMaximumSize(size); DefaultFormatterFactory dff = new DefaultFormatterFactory(mf, mf, mf); setFormatterFactory(dff); addFocusListener(new j...
[ "public EditeurDate()\n {\n super(new JTextField());\n formatDate = \"dd/MM/yyyy\";\n }", "public String aStringFecha() {\r\n String fecha = null;\r\n\r\n if (Main.config.getFormFecha() == \"1\") {\r\n fecha = this.day + \"/\" + this.month + \"/\" + this.year;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the documentNumber attribute value.
public void setDocumentNumber(String documentNumber) { this.documentNumber = documentNumber; }
[ "@Nonnull\n public BDEWPayloadParams setDocumentNumber (final int nDocumentNumber)\n {\n return setDocumentNumber (Integer.toString (nDocumentNumber));\n }", "public void setDocumentNumber(String documentNumber) {\n this.documentNumber = documentNumber == null ? null : documentNumber.trim();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if FileChannel.transferTo can be used. Will generally only be true if the resource is served from a FileChannel.
boolean supportsTransfer ();
[ "public boolean isFileTransfer();", "@Element ( name = \"XFERSRC\", required = true, order = 20 )\n public Boolean getSupportsTransferToOtherAccountOperations() {\n return supportsTransferToOtherAccountOperations;\n }", "@Element ( name = \"XFERDEST\", required = true, order = 30 )\n public Boolean getSup...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Format the date value according to the appointed format and locale.
public void formatDate(String formatStr, Locale locale) { this.setFormatString(formatStr, Value.DATE, locale); }
[ "public String formatDate(Date date) {\n return getDateFormatForCurrentLocale().format(date);\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\", Locale.US);\n dateFormat.setTimeZone(TimeZone.getDefault());\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all org.semanticwb.process.model.TransactionSubProcess with a determined Creator
public static java.util.Iterator<org.semanticwb.process.model.TransactionSubProcess> listTransactionSubProcessByCreator(org.semanticwb.model.User value) { org.semanticwb.model.GenericIterator<org.semanticwb.process.model.TransactionSubProcess> it=new org.semanticwb.model.GenericIterator(value.getS...
[ "@Override\n\tpublic List<ProcessInfo> readAllSubprocess(int processId) {\n\t\tString sql = \"SELECT * FROM Process where process_parent_id=:processId ORDER BY dt_created ASC\";\n\t\tMap<String, Integer> params = ImmutableMap.of(\"processId\", processId);\n\t\tList<ProcessInfo> processInfos = this.namedJdbcTemplate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rename the adaptation profile and all of its associated rules
public void renameAdaptationProfile( String oldName, String newName ){ // delete all adaptation rules ids associated to deleted profile List<String> adp = adaptationIdentifiers.get(oldName); for (int i = 0; i<adp.size(); i++ ){ this.deleteAdaptationRuleId(adp.get(i), oldName ); } // delete the profile I...
[ "private void changename() {\r\n\t\tcopy.changeName(parser.getNewName());\r\n\r\n\t}", "public void refactorRenameSchema() {\n startTest();\n\n ProjectsTabOperator pto = new ProjectsTabOperator();\n\n // work with nodes\n ProjectRootNode prn = pto.getProjectRootNode(\"XSDTestProject\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Use Runtime file ANY TYPE? find type of rhs, make appropriate type
private void write(Codes.Assign o) throws Exception { if(o.type() instanceof Type.Array){ Type.Array list = (Type.Array) o.type(); js.add(getIndentBlock() + "var r" + o.target() + " = r" + o.operand(0) + ".clone(" + getType(list.element()) + ");//" + o.toString() + "\n"); } else if(o.type() instanceof Ty...
[ "protected abstract Expression type(Expression left, Expression right);", "public RetType forExprType(ExprType that);", "@Override\n\tpublic Object visitBinaryExpression(BinaryExpression binaryExpression, Object arg) throws Exception {\n\t\tTypeName e0=(TypeName)binaryExpression.getE0().visit(this, null);\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getLastName put your documentation comment here
public CMSInputVerifier getLastNameVerifier() { return (new CMSInputVerifier() { /** * @param c * @return */ public boolean verify(JComponent c) { try { CMSCustomer cms = new CMSCustomer(); cms.setLastName(pnlCustBasic.getLastN...
[ "public String getLastName(){\n return this.lastName;\n }", "public String getLastname() { return this.lastname; }", "public void setLastName(String lastName)\n {\n this.lastName = lastName;\n }", "public String getLastName() \n {\n return lastName;\n }", "public String allocatelas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
static boolean m37011a(C7023h hVar, C7015a aVar, C7015a aVar2) { C7024i iVar = hVar.f24948i; C7021f fVar = aVar.f24896a; C7021f fVar2 = aVar2.f24896a; boolean z = false; if (fVar.f24919b.f24922e == iVar) { if (fVar2.f24919b.f24922e != iVar) { if (C7025...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
retrieve all GameObject which name contains filterName.
public List<GameObject> getFilteredObjectList(String filterName) { List<GameObject> filtered = new ArrayList<>(); for (GameObject o : objects.values()) { if (o.name.contains(filterName)) { filtered.add(o); } } return filtered; }
[ "@Override\n public List<String> findComponentNames(String filter) {\n List<String> answer = new ArrayList<String>();\n\n List<String> names = findComponentNames();\n for (String name : names) {\n String json = componentJSonSchema(name);\n if (json != null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////// Service and Answers methods //////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////...
@ Override public String inputAnyString(Words words) { return words.inputAnyString(); }
[ "public interface ReplyService extends Service<Reply> {\r\n /**\r\n * 搜索一个讨论下所有回复\r\n * @param d_id\r\n * @return\r\n */\r\n List<Reply> searchReplise(int d_id);\r\n\r\n /**\r\n * 搜索回复\r\n * @param p_id\r\n * @return\r\n */\r\n String searchReply(int p_id,int r_id);\r\n\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XBasicForLoopExpression__Group_7__1" $ANTLR start "rule__XBasicForLoopExpression__Group_7__1__Impl" ../org.yazgel.snow.notation.text.module.ui/srcgen/org/yazgel/snow/notation/text/ui/contentassist/antlr/internal/InternalModule.g:12532:1: rule__XBasicForLoopExpression__Group_7__1__Impl : ( ( rule__XBas...
public final void rule__XBasicForLoopExpression__Group_7__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.yazgel.snow.notation.text.module.ui/src-gen/org/yazgel/snow/notation/text/ui/contentassist/antlr/internal/InternalModule.g:1...
[ "public final void rule__XBasicForLoopExpression__Group_7_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:18444:1: ( rule__XBasicF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent e) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the initial position of the picobot.
public void setInitialPosition(int xCoordinate, int yCoordinate);
[ "public void resetPosition() {\n\t\tsetX(defaultX);\n\t\tsetY(defaultY);\n\t}", "void setInitialPosition( int objectID, Point2D ip );", "private void setInitPosition() {\n setPositionX((Math.random() * (mapDimX - 0)) + 0);\n setPositionY((Math.random() * (mapDimY - 0)) + 0);\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for distributed training workers
public interface RemoteTrainer extends Remote { public static Collection<RemoteTrainer> getTrainers( final List<String> servers) throws MalformedURLException, RemoteException, NotBoundException { final Collection<RemoteTrainer> result = new ArrayList<>(); for (final String server : servers) { final Stri...
[ "public interface ParallelPacketWorkersSingleConfig extends Runnable { \n public void run();\n}", "@WorkerClient(worker = PiWorker.class)\npublic interface PiWorkerClient {\n public Promise<Double> calculate(long start, long elements);\n}", "@Override\n public Iterable<R> call(Iterator<PortableDataS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Elimina una tarjeta del bus especificando el numero de la tarjeta
public void deleteBus(String numeroTarjeta) { String sql = "DELETE FROM BUS WHERE numeroTarjeta = ?"; try ( Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql) ) { ...
[ "@Override\n\tpublic void deleteBusByRegNumber(String number) {\n\t\t\n\t}", "public void removeBus(int index){\n\t\tbusesArchive.remove(index);\n\t}", "public Task delete(String command) {\n int taskNo = Integer.parseInt(command.substring(7)) - 1;\n System.out.println(taskNo);\n Task task ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private int port = 1;
public static MainUI getInstance() { return me; }
[ "public int getPort()\r\n {\r\n return port;\r\n }", "public int getPort() {\n/* 250 */ return this.port;\n/* */ }", "public int getPort() {\r\n\treturn port;\r\n }", "public int getPort()\n {\n \treturn port;\n }", "public synchronized int getPort()\n {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ toString method uses a PrintVisitor to print an AST
@Override public String toString() { ToStringVisitor v = new ToStringVisitor(); try { visit(v, ""); } catch (Exception e) { e.printStackTrace(); } return v.getString(); }
[ "public String toStringAST()\r\n/* 25: */ {\r\n/* 26:46 */ return getChild(0).toStringAST() + \"=\" + getChild(1).toStringAST();\r\n/* 27: */ }", "public void PrintMe() {\n\t\t/* AST NODE TYPE = AST EXP STRING */\n\t\t/**********************************/\n\t\tSystem.out.format(\"AST NODE: EXP_STR( %s ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fill the map with all domain classes and associated dao instance.
void createDaos(Map<Class<?>, Dao<?>> daoMap, DaoBuilder builder);
[ "protected void inicializeMaps(){\n\n daos.put(Pessoa.class.getName(), pessoaDAO);\n daos.put(Usuario.class.getName(), usuarioDAO);\n daos.put(TipoTelefone.class.getName(), tipoTelefoneDAO);\n daos.put(Carta.class.getName(), cartaDAO);\n daos.put(Endereco.class.getName(), endereco...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int k, i=3, j=4; k=i+j; System.out.println("在复合块外的输出 k="+k); { float f; f=j+4.5F; i++; System.out.println("在复合块内的输出 f="+f); System.out.println("在复合块内的输出 k="+k); } System.out.println("在复合块外的输出 i="+i); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__IfMetaSql__Group_2_2__0" $ANTLR start "rule__IfMetaSql__Group_2_2__0__Impl" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:27033:1: rule__IfMetaSql__Group_2_2__0__Impl : ( RULE_BOR ) ;
public final void rule__IfMetaSql__Group_2_2__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:27037:1: ( ( RULE_BOR ) ) // ../...
[ "public final void rule__IfExpCS__Group__6__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational.ui/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/ui/contentassist/antlr/i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to compute the model repeatability in a given direction.
private int computeRepeatability(Direction dir) { double overlap = Double.NaN; switch (dir) { case West: overlap = this.overlapHorizontal; break; case North: overlap = this.overlapVertical; break; } // filter the translations to obtain a set of valid Has...
[ "protected boolean updateDiscriminative(){\n\t\t\n\t\tthis._opt.setVariables(this._weights);\n \tthis._opt.setObjective(-this._obj);\n \tthis._opt.setGradients(this._counts);\n \t/*System.err.println(\"Global param\");\n \tSystem.err.println(Arrays.toString(this._weights));\n \tSystem.err.println(-th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .proto_def.RoomMembersResp.Member members = 2;
public Builder addMembers( int index, proto_def.RoomMessage.RoomMembersResp.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChan...
[ "TfGcmessages.CTFLobbyPlayerProto getMembers(int index);", "List<_member> listMembers();", "public SteammessagesClientserver.CMsgClientMMSJoinLobbyResponse.MemberOrBuilder getMembersOrBuilder(\n int index) {\n if (membersBuilder_ == null) {\n return members_.get(index); } else {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main_page, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public List<T> subList(int fromIndex, int toIndex) { throw new UnsupportedOperationException(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void listEnded(VSEResourceEvent event) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write code here that turns the phrase above into concrete actions
@And("^user input \"([^\"]*)\" to password box$") public void userInputToPasswordBox(String arg0){ loginPage.insertPassword(arg0); }
[ "@Override\n public void doAction(MentionOf s) {\n\t\n }", "public void action(String name) {}", "@Override\n\t\tpublic void action() {\n\n\t\t}", "private void processAction(char action) throws IOException {\n switch (action) {\n case 'u':\n Viite tallennettava = getRef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an Upload object
public Upload(String authToken){ this.authToken = authToken; }
[ "UploadResponse upload(UploadRequest request);", "public UploadResource() {\n }", "public UploadResult() {\r\n }", "public UploadAction() {\r\n\t\tsuper();\r\n\t}", "private Upload createUpload() {\n Upload upload = new Upload(\"Upload CSV File\", new Upload.Receiver() {\n @Overr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new parameter with a default name and label.
public EntityDescriptorParameter() { super("descriptor", "Type"); }
[ "public Parameter createParameter(String name) {\n\t\treturn delegate.createWrappedIndividual(name, Vocabulary.CLASS_PARAMETER, DefaultParameter.class);\n }", "public Parameter createParamWithDefaultValueSet(String paramName) {\n ParamProperties paramProps = getParamProperties(paramName);\n Param...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a list of places corresponding to a given id and place types.
public List<Place> stopPointGet_0(String id, List<String> placeTypes) throws ApiException { ApiResponse<List<Place>> resp = stopPointGet_0WithHttpInfo(id, placeTypes); return resp.getData(); }
[ "public Places getItemById(Long id) {\n\t\treturn placesrepository.findById(id).get();\n\t}", "public Place getPlace(String id) {\n\t\t// TODO Auto-generated method stub\n\t\treturn this.places.get(id);\n\t}", "public PlacesDataModel getPlaceWithId(String id) {\n return realm.where(PlacesDataModel.class)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: i
public boolean mo3602i() { return (this.f4017k & 4) == 4; }
[ "public void mo2977a(int i) {\n }", "public abstract void mo91949l(int i);", "public abstract void mo46067wj(int i);", "public void mo39659c(int i) {\n }", "private int harta(int i) {\n\t\treturn 0;\n\t}", "public void mo9595a(int i) {\n }", "public void mo105a(int i) {\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds a Result to the students current list of results if the student has previously failed the result will be updated and the current course removed from the students set of courses. returns a boolean result based on success
@Override public boolean addResults(Result result) { if (this.courses.contains(result.getCourse())) { Iterator<Result> iter = results.iterator(); while (iter.hasNext()) { Result r = (Result) iter.next(); if (result.getCourse().equals(r.getCourse()) ...
[ "@Override\r\n public boolean addResults(Result result) {\r\n if (this.courses.contains(result.getCourse())) {\r\n Iterator<Result> iter = results.iterator();\r\n while (iter.hasNext()) {\r\n Result r = (Result) iter.next();\r\n if (result.getCourse().eq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
make the point a whole number
public boolean hasVisited(Point3D point){ Point3D newPoint = new Point3D(Math.round((float)point.getX()), Math.round((float)point.getY()), Math.round((float)point.getZ())); if(DEBUG) System.out.println("path size : "+couplePath.size()); if(DEBUG) System.out.println("point to analy...
[ "int pointConvertX(){\n if (scenePos == FRONT) {\n return ((int) ((Double.valueOf(rocketPerciseX)) / Double.valueOf(CONVERSION_FACTOR))) + 500 - 14;\n }\n else if (scenePos == RIGHT){\n return -((int) ((Double.valueOf(rocketPerciseZ)) / Double.valueOf(CONVERSION_FACTOR))) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public abstract int mo81592d();
[ "private void d() {\n }", "public void mo1857d() {\n }", "public void setD(String d) {\n this.d = d;\n }", "public boolean d() {\n }", "protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }", "protected void mo4791d() {\n }", "@Override\n\tpublic voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A call statement can return a variable containing the json representation of the builtins to execute. This method is to collect that value to use it in business action without user mentioning it in the out param.
private static void retrieveQafeBuiltInList(DataIdentifier id, Object serviceOutcome) { if(serviceOutcome instanceof Map) { // Call statement always returns a Map.(In case of java if the same functionality needed it should also return Map) // If we do not do this check excpetion can happen in case of simple...
[ "Variable output() { return myOutput; }", "R getReturn();", "public JSONObject callAndGetReturnData(){\r\n\t\treturn mode.toLowerCase().equals(\"get\")?callAndGetReturnData(new String[]{}):callAndGetReturnData(null,null);\r\n\t}", "@Override\n public Literal execute(Environment env) {\n \tif(!executed) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true if theres no one waiting
public boolean noWait(Event arrival){ double incoming = arrival.getTime(); if(incoming>=waitTime){ //theres no one waiting waitTime = this.nextServeTime; es.addWait(this.nextServeTime-incoming); this.nextServeTime = this.nextServeTime + 1; es.addEvent...
[ "public boolean shouldWait();", "private Boolean somebodyIsWaiting() {\n return !building.getFloor(currentFloor)\n .queueIsEmpty(adjustDirection(direction));\n }", "public boolean isWaiting() {\n return megaApi.isWaiting();\n }", "synchronized public boolean waitForDone(){\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
handles the advaced/simple, restore defaults, and start gbad buttons
public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals(advancedText)) { advanced.setActionCommand(simpleText); advanced.setText(simpleText); hideParameters(false); } else if(e.getActionCommand().equals(simpleText)) { advanced.setActionCommand(advancedText); advanced.se...
[ "void pressedSettings();", "@Override\n public void initGui() {\n if (page == 1) {\n addButton(1, Feature.SHOW_ENCHANTMENTS_REFORGES, 1, EnumUtils.ButtonType.TOGGLE);\n addButton(1, Feature.SHOW_BACKPACK_PREVIEW, 2, EnumUtils.ButtonType.TOGGLE);\n addButton(1, Feature.MI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table public.m_user_detail
public String getOrderByClause() { return orderByClause; }
[ "@SuppressWarnings(\"unchecked\")\n\tpublic List<UserDetail> listDetail() {\n\t\tList<UserDetail> userDetailList=sessionFactory.getCurrentSession().createQuery(\"from UserDetail\").getResultList();\n\t\treturn userDetailList;\n\t}", "@Override\n\tpublic List<UserDetail> getUserList() {\n\t\t\n\t\tSystem.out.print...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void queryByPage(Page<OrderContractGoods> page, OrderContractGoods t) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column YR_REGION_QOS.S_DRPR
public void setsDrpr(Float sDrpr) { this.sDrpr = sDrpr; }
[ "public void setQRC_ASR_ID(int QRC_ASR_ID);", "public void setR(double r) {\n\t\tR = r;\n\t}", "public void setR(double r) {\n \tthis.r = r;\n }", "public void setsDrps(Float sDrps) {\r\n this.sDrps = sDrps;\r\n }", "public void setDr(int dr)\n {\n synchronized (monitor())\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }