query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method will set the values to salary type attributes and finally return the array of Salary type
protected SalaryType[] getBudgetTotalAndSummarySalaryTypes(boolean includeNonPersonnel) { List<SalaryTypeVO> salaryTypeVoList = new ArrayList<SalaryTypeVO>(); List<List<BudgetLineItemCalculatedAmount>> budgetLineItemCalcAmountsList = new ArrayList<List<BudgetLineItemCalculatedAmount>>(); Map<Str...
[ "public Integer updateSalaryTypeInfo_Service(SalaryType obj) {\n return null;\r\n }", "public void setSalary( double Salary ) {\n\tthis.Salary = Salary;\n }", "public static void main(String[] args){\n Employee[] employees = new Employee[2];\n\n // initialise array with Employees\n\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test processEvent() method in LoadEvent class.
@Test public void testprocessEvent() throws Exception { load.processEvent("Loader Bill scan 11", system); }
[ "public void processEvent(Event event) {\n\t\t\n\t}", "public abstract void processEvent(IAEvent e);", "void process(Event event);", "void onDesiredEventProcessed() {\n }", "public void process(WatchedEvent event) {\n }", "@Override\n public void process(WatchedEvent event) {\n }", "S proc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
(Highcharts, Highstock, Highmaps, Gantt) An id for the series. This can be used after render time to get a pointer to the series object through chart.get().
@JSProperty("id") @Nullable String getId();
[ "public String getSeriesComponentIdentifier() {\n return seriesComponentIdentifier;\n }", "String getSalesForecastHistoryId();", "public com.anychart.core.stock.series.Base getSeries(Number id) {\n return new com.anychart.core.stock.series.Base(String.format(Locale.US, jsBase + \".getSeries(%s)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean sendPrepare(Args a) { return false; }
[ "@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" ] ] } }
uncomment if you need an extra log "curllike" for debugging
public void executeRequest(HttpUriRequest getRequest,String url) throws Exception { String curl = "curl --request "+methodType+" -i "; for(Header h : getRequest.getAllHeaders()) { curl += " --header \""+h.getName()+":"+h.getValue()+"\""; } if(getRequest instanceof HttpPut ||...
[ "static void logRequest(String message) {\n \tTimestamp timestamp = new Timestamp(System.currentTimeMillis());\n \t \n \tSystem.out.println(timestamp + \" - \" + message);\n }", "private void log() {\n }", "public void log() {\n\t\t\r\n\t}", "private void log(String ip, Headers headers, int cod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String s; char ch,c; int count=0; Scanner scan=new Scanner(System.in); System.out.println("Enter the string"); s=scan.next(); System.out.println("Enter the character"); ch=scan.next().charAt(0); /*scan.close(); for(int i=0;i<s.length();i++) { c=s.char...
[ "@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" ] ] } }
Auto generated getter method
public java.lang.String getFreeProductFault(){ return localFreeProductFault; }
[ "public MethodDoc getGetter()\r\n {\r\n return m_jvdGetter;\r\n }", "public long getGetter() {\n return getter_;\n }", "public T get() {\n return value;\n }", "public abstract M get();", "@Override\n \tpublic String get() {\n \t\treturn null;\n \t}", "public Object get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
list or watch objects of kind StatefulSet
public ApiResponse<V1StatefulSetList> listStatefulSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { com.squareup.okhttp.Call call = listStatefulSetForAll...
[ "public RemoteIterator<? extends SetInfo> listSetInfo() throws RepositoryException;", "public final Set<?> getObjects() {\n\t\treturn objectsUm;\n\t}", "public final Set<Creature> getWatcherSet() {\n/* 6323 */ return this.watchers;\n/* */ }", "public Set<AutomataState> states();", "public List<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The policy id as stored in the database is just a number. In some situations we need a prefixed, fixedlength id for example to have an identifiable id type that can be returned by BTXDetailsgetDirectlyInvolvedObjects() to index a transaction. This function assumes that its argument is an id string that contains the pre...
public static String makeRealPolicyId(String prefixedId) { if (ApiFunctions.isEmpty(prefixedId)) { return prefixedId; } else { String numberPart = prefixedId.substring(2); // Skip over leading zeros, the string we return will be the most natural // string representation of the id num...
[ "public void setPolicyId(String id) {\n policyId = id;\n }", "public String getPolicyId()\n\t{\n\t\treturn m_policyId;\n\t}", "private String pseudoID(DBElement db_element)\n\t{\n\t\tString id_tail = trailingNChars(db_element._id, 9);\n\t\t\n\t\tString pseudo_id_big = id_tail + \"-\" + db_element._nam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ActionLister for choosing the file.
private void chooseFile() { if (isPositiveInt(myTextField.getText())) { myTopN = Integer.parseInt(myTextField.getText()); final int option = this.myDirectory.showOpenDialog(this); if (option == JFileChooser.APPROVE_OPTION) { final File file = myDirectory.getSe...
[ "void openFile(Consumer<File> action) {\n File file = getFileChooser(\"Open File\").showOpenDialog(gui.getWindow());\n if (file != null) {\n action.accept(file);\n }\n }", "public void on_file_open(ActionEvent actionEvent);", "@Override\n\t\t\tpublic void actionPerformed(Actio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TFSDOCTYPE.LG_FIN_REDEMP_ASSET_GL
public void setLG_FIN_REDEMP_ASSET_GL(BigDecimal LG_FIN_REDEMP_ASSET_GL) { this.LG_FIN_REDEMP_ASSET_GL = LG_FIN_REDEMP_ASSET_GL; }
[ "public void setLT_FINANCIAL_ASSETS_R(BigDecimal LT_FINANCIAL_ASSETS_R) {\r\n this.LT_FINANCIAL_ASSETS_R = LT_FINANCIAL_ASSETS_R;\r\n }", "public void setGBSeq_altSeq(gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.GBSeq_altSeq_type0 param){\n localGBSeq_altSeqTracker = param != n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string s2c_msg = 2;
java.lang.String getS2CMsg();
[ "public void setMessage2(String message2){\n this.message2 = message2;\n }", "public com.futu.opend.api.protobuf.Notify.S2C getS2C() {\n return s2C_;\n }", "CtoSMessage parseInCtoSMessage(String message);", "public pomelo.area.ActivityHandler.totalInfo getS2CData() {\n if (s2CDataBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XConstructorCall__Group_4_1_1__1__Impl" $ANTLR start "rule__XConstructorCall__Group_4_1_1_1__0" InternalBotDuino.g:17639:1: rule__XConstructorCall__Group_4_1_1_1__0 : rule__XConstructorCall__Group_4_1_1_1__0__Impl rule__XConstructorCall__Group_4_1_1_1__1 ;
public final void rule__XConstructorCall__Group_4_1_1_1__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBotDuino.g:17643:1: ( rule__XConstructorCall__Group_4_1_1_1__0__Impl rule__XConstructorCall__Group_4_1_1_1__1 ) // Internal...
[ "public final void rule__XConstructorCall__Group_4_1_1_1__0() 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:20586:1: ( rule__XConstruct...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void handleMtopResponse(RxResponse rxResponse, RxMtopResponse<T> rxMtopResponse) { if (rxResponse == null) { rxMtopResponse.isReqSuccess = false; return; } try { if (rxResponse.data == null) { rxMtopResponse.result = null; } ...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getABlockedDateTime method will return a blocked date with a specific location
public DateTime getABlockedDateTime(int index) { int startIndex = 0; if (index >= blockedDateTimeList.size() || index < startIndex) { return null; } return blockedDateTimeList.get(index); }
[ "public String bannedUntil() {\n \tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\");\r\n \tint bantime = DBConfigHandler.getDeathBanTime();\r\n \t\r\n \tCalendar calendar = Calendar.getInstance();\r\n \tcalendar.add(Calendar.MINUTE, bantime);\r\n \t\r\n\t\tString time = dateFor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void processReferNotification(String referId, int state) { }
[ "@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" ] ] } }
because of the method call in View, ViewFrame subclasses must only have one argument that is a String
public ViewFrame(String windowTitle) { super(windowTitle); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); setFocusable(true); }
[ "void mo98809e(View view);", "public abstract void setFrameFromString(String string);", "abstract protected String getViewType();", "public void mo12338a(View view) {\n }", "String mo37774a(Context context, String str, View view);", "public ViewOfString(String str) {\n this.str = str;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Der Setter von Y.
public void setY(int y) { this.y = y; }
[ "public void setY(Y newY);", "public void setY(T y) {\n\t\tObjects.requireNonNull(y, \"Number cannot be null.\");\n\t\tthis.y = y;\n\t}", "public void setY(double y) {\r\n this.y = y;\r\n }", "public void setY(double Y){\r\n\t\t\r\n\t\tthis.Y = Y;\r\n\t\t\r\n\t}", "void setY(int y)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ustawia stan platformy na STEPPED_ON
public void stepOn(){ state_ = PlatformState.STEPPED_ON; }
[ "public void onMovementPhaseStart() {\n // Todo: implement\n }", "private void machePlatz() {\n\t\tmotor.fahreGerade(1);\n\t\tmotor.setGeschwindigkeit(0);\n\t\tmotor.forward();\n\t\tmotor.stop();\n\t}", "protected abstract void onTimeStep();", "@Override\n\t\n\tpublic void teleopPeriodic() {\n\t\t\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 iptv_channels_count = 8;
public Builder clearIptvChannelsCount() { bitField0_ = (bitField0_ & ~0x00000080); iptvChannelsCount_ = 0; onChanged(); return this; }
[ "public int GetNChannels()\n {\n return n_channels;\n }", "private void setChannelCount(int value) {\n bitField0_ |= 0x00000008;\n channelCount_ = value;\n }", "public int getChannelsPerFrame () {\n\t\treturn getIntAt (28);\n\t}", "public native int getChannelCount();", "int getDtv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns biggest seed on the outskirts, musn't have children
public int getHighestSeed(DoubleNode s) { if (s.top != null && s.bottom != null) { return (getHighestSeed(s.top) > getHighestSeed(s.bottom) ? getHighestSeed(s.top) : getHighestSeed(s.bottom)); } else if (s.top != null) { return getHighestSeed(s.top); } else if (s.bottom != null) { return getHighestS...
[ "public String mostCommonSeed() {\n\t\tString result = null;\n\t\tint maxOccurences = 0;\n\t\tfor(String seed : keySet()){\n\t\t\tint occurences = get(seed).size();\n\t\t\tif(occurences > maxOccurences){\n\t\t\t\tresult = seed;\n\t\t\t\tmaxOccurences = occurences;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "priva...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table batch_chg
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
[ "@Override\n\tpublic void batchUpdate(List<B2bOrderRmtPkgBean> paramList) {\n\t\t\n\t}", "public void startBatchUpdate() {\n\t\t\n\t}", "private void nettoyageBatch(){\r\n\t\tList<BatchHisto> listHisto = batchHistoRepository.findByStateBatchHisto(ConstanteUtils.BATCH_RUNNING);\r\n\t\tlistHisto.forEach(batchHist...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 20 /Coverage entropy=2.5983833927870665
@Test(timeout = 4000) public void test20() throws Throwable { JDayChooser jDayChooser0 = new JDayChooser(true); BasicOptionPaneUI basicOptionPaneUI0 = new BasicOptionPaneUI(); JOptionPane jOptionPane0 = new JOptionPane(); jOptionPane0.getInitialValue(); basicOptionPaneUI0.selectInitial...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "PrivilegeId" element
boolean isSetPrivilegeId();
[ "boolean hasDoctorId();", "boolean hasUuId();", "boolean hasOpenUDID();", "boolean hasVillageId();", "boolean hasAttackerId();", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Privilege)) {\r\n return false;\r\n }\r\n Privilege other = (P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the image data in the format BufferImage object.
BufferedImage getBufferImage();
[ "public Image getBuffer(){\r\n return buffer;\r\n }", "private byte[] getData(BufferedImage image) {\n return ((DataBufferByte) image.getRaster().getDataBuffer()).getData();\n }", "@NotNull\n @Override\n public byte[] getImageData() {\n\n final Field dataField = this.getField(heade...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests CompleteProfileActioncheckConfiguration() for failure. It tests the case that when saveUserProfileOperationType is empty and expects CompleteProfileActionConfigurationException.
public void testCheckConfiguration_EmptysaveUserProfileOperationType() { instance.setSaveUserProfileOperationType(" "); try { instance.checkConfiguration(); fail("CompleteProfileActionConfigurationException expected."); } catch (CompleteProfileActionConfigurationExce...
[ "public void testIsProfileComplete_Accuracy2() throws Exception {\r\n t.setLog(log);\r\n user.setFirstName(null);\r\n assertEquals(false, t.isProfileComplete(user));\r\n }", "@Test(expected = ConfigurationException.class)\n public void testCheckConfigurationFail5() throws Exception {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Array association mutator for key Name_ on array Name_L10N_ARRAY
public void setName_en_US(java.lang.String value) { __getInternalInterface().setLocalizedFieldValueForCodeGen((com.guidewire.commons.entity.type2.IAssociativeArrayPropertyInfo)TYPE.get().getTypeInfo().getProperty("Name_en_US"), value); }
[ "public void setName(String[] sName)\n\t{\n\t\tname = sName;\n\t}", "private static void arrayChange2(ArrayList<String> arr) {\n\t\tArrayList<String> newarr = new ArrayList<String>();\n\t\tnewarr.add(\"mani1\");\n\t\tnewarr.add(\"mani2\");\n\t\tarr = newarr;\n\t}", "ArrayPropertyType getArrayProperty();", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Basic AdvancedQuery Example Finding Processes with a Variable + Value
@Test public void testGetAllProcessInstancesWithVariables() { // Source File : src/main/resources/query-definitions.json QueryDefinition query = queryServicesClient.getQuery(TestWorkflowConstant.QUERIES.ALL_PROCESSES_WITH_VARS); assertNotNull(query); assertTrue(StringUtils.isNotBlan...
[ "HistoricCaseInstanceQuery variableValueLike(String name, String value);", "@Test\n public void testProcessQueryByList() {\n SystemInfo si = new SystemInfo();\n OperatingSystem os = si.getOperatingSystem();\n assertNotNull(\"OS family shouldn't be null\", os.getFamily());\n assertNo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CHAMA TELA CRIAR ATENDENTE
@RequestMapping("/atendente/criar.html") public String criar() { return "atendente/criar.html"; }
[ "private void escribirEnPantalla() {\n }", "public void anular() {\n\t\t_Data _data = (_Data) this._data;\n\t\tString id = frame.get_txt_idcobranza().getText();\n\t\tif (id.compareTo(\"\") != 0) {\n\n\t\t\tif (_data.exist_cobranza(id)) {\n\t\t\t\tif (_data.anulada(id)) {\n\t\t\t\t\terror(\"La cobranza \" + id ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
protected final /* synthetic */ IInterface m34042a(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.location.internal.IGoogleLocationManagerService"); return queryLocalInterface insta...
[ "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" ] ] } }
get payment per piece
public double getPaymentPerPiece() { return paymentperpiece; }
[ "String getAmountPerPayment();", "public double getPayment(){\n\t\treturn payments;\n\t}", "private PayPalPayment getThingToBuy() {\n return new PayPalPayment(new BigDecimal(\"3.99\"), \"USD\", \"TruMedicine Pro version\",\n PayPalPayment.PAYMENT_INTENT_SALE);\n }", "PaymentData getPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Controls subscription for specific message types. Methods have no return value, because they can act asynchronously. The implementor of this interface is not required to remember the subscription details; therefore, there are no methods provided to query the current state (such as "hasType", etc.). The user of this int...
public interface TypeSubscriptionController { /** * Subscribe to all available types (no filtering). */ public void subscribeToAllTypes (); /** * Subscribe to specified types. */ public void setTypes(String ... names); /** * Add t...
[ "public abstract boolean subscribeTo( @Nonnull String messageType )\n throws IllegalStateException, IllegalArgumentException;", "boolean hasSubscriptionType();", "public boolean isSubscribe();", "void subscribe(MessageSet messageSet);", "public final void subscribe() {\n processRequest(createJson(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 app_id = 2;
public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = 0; onChanged(); return this; }
[ "public int getAppid() {\n return appid_;\n }", "long getIosAppStoreId();", "public AppID getAppID()\n {\n return id;\n }", "public String getAppId(){\n\t\t// Usually this can be a field rather than a method variable\n\t Random rand = new Random();\n\t // nextInt is norm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The user access token. The option is a: java.lang.String type. Group: security
default FacebookComponentBuilder oAuthAccessToken( java.lang.String oAuthAccessToken) { doSetProperty("oAuthAccessToken", oAuthAccessToken); return this; }
[ "public String GetTokenUser(String token);", "public String getAcessToken( )\n\t{\n\t\treturn accessToken;\n\t}", "public String getAccessToken() \n {\n return accessToken;\n }", "public String getAccessToken()\n {\n return accessToken;\n }", "public String getAccessToken() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Should be called when the server is shut down by the client. This closes the socket and exits, bypassing the infinite loop of listening for clients.
@Override public void interrupt() { shutdown_normally = true; System.out.println("Server shutting down..."); for (Thread t : threadpool) t.interrupt(); System.out.println("Waiting for current connections to finish..."); try { serverSocket.close(); } catch (IOException e) { return; } }
[ "public void shutdown() {\n try {\n serverSocket.close();\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, e.getMessage(), e);\n }\n }", "public void shutDown() {\n try {\n isMqsUIRunning = false;\n serverSocket.close(); // close so...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a task instance which finish its work after 5 seconds.
public static MockTask fiveSecondsDelayedTask() { return new MockTask(5); }
[ "@Override\r\n\t\t\t\tprotected Task<Integer> createTask() {\n\t\t\t\t\treturn new Task<Integer>() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tprotected Integer call() throws Exception {\r\n\t\t\t\t\t\t\tThread.sleep(60 * 1000);\r\n\t\t\t\t\t\t\tlist.clear();\r\n\t\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update DB table makeploy_commerce. The sql statement for this operation is update makeploy_commerce set COMMERCE_SECRETARY_PARTY=?, GMT_MODIFIED=CURRENT_TIMESTAMP where (COMMERCE_ID = ?)
public int changeSecretaryParty(String commerceSecretaryParty, String commerceId) throws DataAccessException;
[ "public void update() {\n try {\n String sql = \"update projects set projectName=?, projectNumber=?, partNumber=?, ROS=?, ROCE=?, volumes=?, DDCost=?, prototypeCosts=?, \" +\n \"lastUpdate=?, customer_id =? where id=?\";\n update(DbContext.getConnection().prepareSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Database interface class for Sakai BigBlueButton persistence.
public interface SqlGenerator { /** Map of TABLE_NAME -> SQL CREATE STATEMENT */ Map<String, String> getSetupStatements(); /** SQL Statement to check if table exists in DB (if it produces results, then table is created) */ String getShowTableStatement(String table); /** SQL Statement to store meeting in DB */ ...
[ "TransactionLayer database();", "public interface PersistentDatabase {\n int insert(String table, HashMap<String, Object> values);\n int update(String table, HashMap<String, Object> values, int columnID);\n HashMap<String, String> find(String table, String[] proyection, int columnID);\n Collection<Has...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
METODO PARA CAPTURAR LA PANTALLA, SOLO CAPTURA LA ZONA DE LA TABLA, QUE SE INDICA DEBAJO DE TODO EN LA LLAMADA AL METODO guardarActionPerformed.
void capturarPantalla(Component component) { Rectangle rect = component.getBounds(); try { String format = "jpg"; component.setName("listaClase"); String fileName = component.getName() + "." + format; BufferedImage captureImage = new BufferedImage(rect.width, re...
[ "private void BtnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnGuardarActionPerformed\n MetodoPagoModelo metodo = new MetodoPagoModelo();\n metodo.agregarMetodo(TxtMetodo.getText());\n JOptionPane.showMessageDialog(this, \"Se han guardado los datos en la BD.\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Link Type'.
LinkType createLinkType();
[ "LinkNodeType createLinkNodeType();", "public Linkage() {\n this.type = SIMPLE;\n }", "public Integer getLinkType() {\n return linkType;\n }", "public <T extends LinkResource> T newLink(final Class<T> resourceClass);", "RelatingTypeType createRelatingTypeType();", "TypeLiaison createTy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update lock a Materialexportdetail
@PreAuthorize("@materialexportdetailAuthorize.canUpdate(#materialexportdetail)") @RequestMapping(value = "/updateLock/{id}", method = RequestMethod.PUT) public ResponseEntity<?> updateLock(@PathVariable("id") Integer id) throws JsonParseException, JsonMappingException, IOException { Integer result = materialexpo...
[ "ConditionBean lockForUpdate();", "@Override\r\n public void lockUpdate() {\n\r\n }", "public LockDTO renewResourceLock(LockDTO lockDTO) throws LockNotAllowed, LockNotHeld,LockValidationException;", "private void releaseUpdateLock(){\r\n try{\r\n //connect to server and release the lock\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
code for method refering text view
public void onClick(View v){ TextView myText=(TextView)findViewById(R.id.textView2); myText.setText("lollll"); }
[ "TextView mo92776l();", "@Override\n\tpublic void onText(CharSequence text) {\n\t}", "public TextView invoke() {\n return (TextView) this.f57881a.f57859j.findViewById(R.id.brx);\n }", "private void changeTextViewText() {\n\t\tmcc=cust_mobile1_code.getText().toString();\n\t\tcustname.append(H...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if given privilege names are valid.
private void validatePrivileges(Set<String> privNames) { for (String privName : privNames) { if (!ALLPRIVS.equalsIgnoreCase(privName)) { try { final KVStorePrivilegeLabel privLabel = KVStorePrivilegeLabel.valueOf( ...
[ "public boolean checkPrivStringArray(String[] privs, String priv) {\n boolean present = false;\n for (int i = 0; i < privs.length; i++) {\n if (privs[i].equals(priv)) {\n\n present = true;\n }\n }\n\n //true if present; false if not present\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the FtcRobotControllerActivity changes activity states.
public void newActivityState(final State state) { Log.instance.lines("Activity requested " + state.toString()); FtcRobotControllerActivity.instance.runOnUiThread(new Runnable() { @Override public void run() { switch (state) { case PAUSE: ...
[ "public void updateActivityState() {}", "public void onActivityStateChange(int newState);", "public ActivityChangedCallback(ActivityEnum activity) {\n this.activity = activity;\n }", "private void handleAirplaneModeChange(Intent intent) {\n mIsAirplaneModeOn = intent.getBooleanExtra(\"state\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column FMSPAYPLANDET_JOINT_CIF.SETTLEMENT_AMOUNT
public BigDecimal getSETTLEMENT_AMOUNT() { return SETTLEMENT_AMOUNT; }
[ "public double getSettlementAmount() {\n return _settlementAmount;\n }", "java.lang.String getTxnAmount();", "public Currency getTransactionAmount() {\n return transactionAmount;\n }", "public String getTransactionAmt() {\n return transactionAmt;\n }", "public BigDecimal getJP_TaxBas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional float Amount = 4;
public Builder setAmount(float value) { bitField0_ |= 0x00000008; amount_ = value; onChanged(); return this; }
[ "public void setAmount(float value) {\r\n this.amount = value;\r\n }", "public abstract void expression(float amount);", "public void setAmountToDeposit(float amountToDeposit) {\n }", "public abstract int getFertilizeAmount();", "public void setMinimumamount(double param){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Collects necessary stats for message received by SPI.
public synchronized void onMessageReceived(TcpDiscoveryAbstractMessage msg) { assert msg != null; Integer cnt = F.addIfAbsent(rcvdMsgs, msg.getClass().getSimpleName(), 0); rcvdMsgs.put(msg.getClass().getSimpleName(), ++cnt); }
[ "private void statsCollect() {\n int wi = workUnits.incrementAndGet();\n\n //System.out.printf(\"used= %d, wi=%d\\n\", used, wi);\n WorkerThreadReport.registerWorker();\n }", "private final void trackMessageStats(ByteBuffer msgBuffer)\n {\n int remaining = msgBuffer.rema...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.middleware.proto.Login login = 9;
public boolean hasLogin() { return operationCase_ == 9; }
[ "network.message.ServerResponses.Login getLogin();", "SessionId login(RpcCredentials inCredentials);", "Object handleLogin(String method, String name, String path, HttpServletRequest request, SsoLoginModel ssoLoginModel);", "public String login(String request,LoginRequest r);", "private LoginResult login(Lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void keyTyped(KeyEvent arg0) { }
[ "@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" ] ] } }
Restores the state of the RectPlayer when the GameActivity has been destroyed and then reopened.
protected RectPlayer(Parcel in) { rectangle = (Rect) in.readValue(Rect.class.getClassLoader()); idle = (Animation) in.readValue(Animation.class.getClassLoader()); walkRight = (Animation) in.readValue(Animation.class.getClassLoader()); walkLeft = (Animation) in.readValue(Animation.class.g...
[ "public synchronized void restoreState(Bundle savedState) {\n synchronized (mSurfaceHolder) {\n setState(STATE_PAUSE); \n\n mDifficulty = savedState.getInt(KEY_DIFFICULTY); \n numSprites = savedState.getInt(KEY_WINS);\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Set a intermediate state in this presenter until we get an update for onAudioMode(). This will make UI response immediate if it turns out to be slow
public void setAudioMode(int mode) { Log.d(this, "Sending new Audio Mode: " + AudioState.audioRouteToString(mode)); TelecomAdapter.getInstance().setAudioRoute(mode); }
[ "private void showAudioModePopup() {\n if (DBG) log(\"showAudioModePopup()...\");\n\n dismissAudioModePopup();\n\n if (null == mAudioModePopup) {\n mAudioModePopup = new PopupMenu(mInCallScreen /* context */,\n mVTAudio /* anchorView */);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
spawn enemies with different properties according to level Boss(int x, int y, int speed, int health, int canvasW, int enemySkinID, Resources resources)
public Boss generateBoss(int lvl) { switch (lvl) { case 1: //moon - gunner idleList.clear(); idleList.add(BitmapFactory.decodeResource(resources,R.drawable.frame_0000)); idleList.add(BitmapFactory.decodeResource(resources,R.drawable.frame_0010)); ...
[ "private void spawnEnemy() {\r\n\t\t//Generate spawn area first\r\n\t\trandomValue = MathUtils.random(1, 4);\r\n\t\tswitch (randomValue) {\r\n\t\t\tcase 1: \r\n\t\t\t\t//Left spawner\r\n\t\t\t\tspawnX = MathUtils.random(10, 90);\r\n\t\t\t\tspawnY = MathUtils.random(235, 365);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Origin: dp (zoomRatio / (screenWidth / density))
public static double dpToLynxNumber(double dp) { return dpToPx(dp) * sZoomRatioDp / ScreenUtil.getScreenWidth(); }
[ "float getMinZoomRatio();", "float getZoomFactor();", "double scale() {\n\t\treturn min(window.getWidth() / BG_WIDTH, window.getHeight() / BG_HEIGHT);\n\t}", "private double getScreenScale() {\n double scale = DEFAULT_DPR;\n\n if (this.context != null) {\n DisplayMetrics metrics = con...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
map&lt;string, .org.apache.dubbo.common.serialize.protobuf.model.PhoneNumber&gt; doubleMap = 9;
public java.util.Map<String, PhoneNumber> getDoubleMapMap() { return internalGetDoubleMap().getMap(); }
[ "public static double getDouble(String key){\n\t\treturn doubleMap.get(key);\n\t}", "Long2DoubleMap finishMap();", "public static void mapZeroesToIntDoubleMap(Map<Integer, Double> map) {\n for (int i = 0; i < 13; i++) {\n map.put(i, 0.0);\n }\n }", "public LinkedHashMap<String, Pai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the description of the error. It may be the empty string, but is always nonnull.
public String getDetails() { return details; }
[ "public String getErrorDesc() {\n\t\treturn errorDesc;\n\t}", "public synchronized final String getErrorDescription() {\n\t\tfinal StringBuilder s = new StringBuilder();\n\t\tif (this.getSource() == 0L) {\n\t\t\ts.append(\" State Group fehlt!\");\n\t\t}\n\t\tif (this.getDestination() == 0L) {\n\t\t\ts.append(\" ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo que cambia la orienctacion del movimiento hacia arriba.
public void moverArriba(){ if(getBoundsInParent().getMinY() > 0){ velocidad = -3; } }
[ "public Ora getOrarioArrivo() { return orarioArrivo; }", "private void parametrizarArbol(Rama ramaEnTurno){\n //Variables Auxiliares\n Nodo nodoEnTurno; \n int noNodos = ramaEnTurno.getNodos().size();\n int noHijosNodoEnTurno;\n \n for(int nodo=0; nodo<noNodos;nodo++){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert a tag into a row of the XFTTable.
String[] makeRow(final DicomObject object, final DicomElement element, final String parentTag, final int maxLen) { final String tag = TagUtils.toString(element.tag()); // If this element has nested tags it doesn't have a value and trying to // extract one using dcm4che will result in an Unsupp...
[ "default DeXTable getByTag(String tag) {\n\t\treturn DeX.getByTag(this, tag);\n\t}", "public TRow getRow();", "public T visit(RIRow row);", "public Row transformRow(Row row);", "public WPTable tracTable(TableOfContentTag tableOfContentTag) {\r\n\t\tWPTable table = null;\r\n\t\tWPCell cell = null;\r\n\t\tArr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter function for continent
public void setContinent(String continent) { this.continent = continent; }
[ "Continent getContinent();", "public void setContinent(Continent c) {\n\t\tcontinent = c;\n\t}", "public Continent(String n, int v)\n {\n name=n;\n value=v;\n }", "public String getContinent() {\n return continent;\n }", "public String getCountryContinent(){\n return count...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onProgressUpdate(Integer... values) { super.onProgressUpdate(values); }
[ "@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 "entryRuleBirthday" $ANTLR start "ruleBirthday" InternalStubbrLang.g:1563:1: ruleBirthday : ( ( rule__Birthday__Group__0 ) ) ;
public final void ruleBirthday() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:1567:2: ( ( ( rule__Birthday__Group__0 ) ) ) // InternalStubbrLang.g:1568:2: ( ( rule__Birthday__Group__0 ) ) { ...
[ "public final void ruleDateNow() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.verticon.mongo.json.query.ui/src-gen/org/json/ui/contentassist/antlr/internal/InternalMongoQuery.g:411:2: ( ( ( rule__DateNow__Group__0 ) ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Chaya: 22June2011: For queries in Hebrew, call URLEncoder.encode before setting the query
public void setQuery(String query) { clean(); this.query = queryRefinement(query); }
[ "static public String reEncode(String input) throws Exception {\r\n \tString value = URLDecoder.decode(input, \"UTF-8\");\r\n \treturn URLEncoder.encode(value, \"UTF-8\");\r\n }", "public static String URLEncode(String str) {\r\n //str = StringUtils.replace(str, \"&\", \"&amp;\");\r\n str =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct that creates a tensor of zeros given its number of elements
public Tensor(int size) { values = new double[size]; }
[ "public Vector zeros(int length) {\n\t\treturn block_vector(length, type.zero());\n\t}", "public Matrix zeros(int numberOfRows, int numberOfCols) {\n\t\treturn block_matrix(numberOfRows, numberOfCols, type.zero());\n\t}", "static public MatrixLib zeros(int rows, int cols) {\n double[][] result = new double[r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Method : A block of reusable code with a name to perform certain tasks. Optionally accept external data or return a value after the action. Introduction:
public static void main(String[] args) { System.out.println("Hello there"); introduceYourself(); System.out.println("Welcome"); introduceYourself(); }
[ "public void performFunction(ProgramData data);", "void run(){\n executeUseCase(requestValues);\n }", "public abstract Object task(ClientHelper p4) throws Exception;", "public abstract void workOnTask(Request param);", "void stuffForYouToDo() {\n\t\t// Write your code here...\n\t\t\n\t\t\n\t\t\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Apply a set of features to a given image or a given shape.
public void doCommandApplyFeatures(int imageId, int shapeId, List<String> featureDescriptors) { LetterFeatureTester featureTester = new LetterFeatureTester(jochreSession); LetterFeatureParser letterFeatureParser = new LetterFeatureParser(); Set<LetterFeature<?>> features = letterFeatureParser.getLetterFeatureSet...
[ "public abstract void reduceFeatures(Features features);", "void processFeature(SourceFeature feature, FeatureCollector features);", "abstract public void apply(Collection<ImageFloat32> inputs, ImageFloat32 output, int index);", "void selectFeatures(@Nonnull List<ICanvasFeature> features);", "void selectFea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Move replicas residing in the given cluster and given healthy source broker having given set of topic partitions to eligible brokers. Replica movements are guaranteed not to violate the requirements of optimized goals.
boolean moveReplicasInSourceBrokerToEligibleBrokers(ClusterModel clusterModel, SortedSet<Replica> replicasInBrokerToMove, Set<Goal> optimizedGoals, Set<String...
[ "@Override\n void moveShards() {\n Queue<RoutingNode> eligibleNodes = new ArrayDeque<>();\n Queue<RoutingNode> excludedNodes = new ArrayDeque<>();\n classifyNodesForShardMovement(eligibleNodes, excludedNodes);\n\n if (excludedNodes.isEmpty()) {\n logger.debug(\"No excluded ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The doGet method of the servlet. This method is called when a form has its tag value method equals to get.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request, response); }
[ "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(request, response); //susing doPost方法执行 对应jsp页面中的form表单中的method\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 354: / 355:
public static byte decCharToByte(char c) /* 356: */{ /* 357: 592 */if ((c < '0') || (c > '9')) { /* 358: 593 */return 0; /* 359: */} /* 360: 595 */return (byte) (c - '0'); /* 361: */}
[ "@Test(timeout = 4000)\n public void test54() throws Throwable {\n String string0 = SQLUtil.normalize(\"I/(iDc0 hv\", true);\n assertEquals(\"I / (iDc0 hv\", string0);\n }", "public static void main(String[] args) {\n\t\t\n\t\tString phone = \"13611150913\";\n\t\tSystem.out.println(phone.substring(0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes the underlying connection for keeps.
public void close () throws SQLException;
[ "void close() {\n\t\t\tthis.connection.close();\n\t\t\tif (hasWriteLock) {\n\t\t\t\tsleuthkitCase.releaseSingleUserCaseWriteLock();\n\t\t\t\thasWriteLock = false;\n\t\t\t}\n\t\t}", "public void close() {\n\n connection.close();\n }", "public void closeConnection() {\n connection.disconnect();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Similar to the method above, but deserializes from a |ByteBuffer| instance.
public static CookieManagerGetAllCookiesResponseParams deserialize(java.nio.ByteBuffer data) { if (data == null) return null; return deserialize(new org.chromium.mojo.bindings.Message( data, new java.util.ArrayList<org.chromium.mojo.system.Handle>())); ...
[ "T readFrom(ByteBuffer byteBuffer);", "@NotNull ByteBuffer toByteBuffer();", "public static ObjectChanged fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "public static SmallConsumerObjectAvro fromByteBuffer(\n java.nio.ByteBuffer b) throws...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This class was generated by the JAXWS RI. JAXWS RI 2.2.9b130926.1035 Generated source version: 2.2
@WebService(name = "ScoringAndVerificationInterface", targetNamespace = "urn:gf-scoring-verification:wsdl") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @XmlSeeAlso({ ObjectFactory.class }) public interface ScoringAndVerificationInterface { /** * * @param parameters * @return...
[ "@WebService(targetNamespace = \"http://laegler.com/openbanking/soap/service\", name = \"authserver_PortType\")\n@XmlSeeAlso({com.laegler.openbanking.soap.model.ObjectFactory.class})\npublic interface AuthserverPortType {\n}", "@WebService(serviceName = \"DocumentReceiver\", targetNamespace = \"https://SOAP.SOR2....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Initialize standard Hardware interfaces
public void initDrive(LinearOpMode opMode) { // Save reference to Hardware map myOpMode = opMode; /*leftWheelF = myOpMode.hardwareMap.get(DcMotor.class, "D0"); rightWheelF = myOpMode.hardwareMap.get(DcMotor.class, "D2"); leftWheelR = myOpMode.hardwareMap.get(DcMotor.class, "D3"...
[ "public void initHardware() {\n drivetrain.initHardware();\n intake.initHardware();\n outtake.initHardware();\n markerArm.setPosition(MARKER_ARM_UP);\n }", "@Override\r\n public void init() {\r\n robot = new HardwareChassis(hardwareMap);\r\n colorTools = new ColorTo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Personne)) { return false; } Personne other = (Personne) object; if ((this.numeroSecu == null && other.numeroSecu != null) || (this.numeroSecu != null && !this.numeroSecu.equals(other.numeroSecu))) {...
[ "public int getId () { return id; }", "public int getId(){ return this.id;}", "public int id() {return this.id;}", "@Override\n public int getId() { return id; }", "public void setId(long id){ \r\n this.id = id; \r\n }", "public void setId( int id ) { this.id = id; }", "public void setId( l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Query the entire table, return all rows
public ArrayList<ExerciseEntry> fetchEntries() { ArrayList<ExerciseEntry> entries = new ArrayList<ExerciseEntry>(); Cursor cursor = database.query(DATABASE_TABLE_NAME, LIST_OF_ALL_COLUMNS, null, null, null, null, null); cursor.moveToFirst(); while (!cursor.isAfterLast()...
[ "public Cursor getAllRows() {\n String where = null;\n Cursor c = \tdb.query(true, DATABASE_TABLE, ALL_KEYS, where, null, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }", "public ResultSet findAll(String table) throws SQLEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check that the cache contains a value of the given type
boolean contains(Class<?> type);
[ "public boolean contains(Type value);", "private <T> boolean typeMatches( T type ) {\n return type.getClass().isAssignableFrom( getValueClass() );\n }", "private boolean checkInCache(String key, Cache myCache) {\n\t\tboolean returnValue = false;\n\t\t\n\t\tElement element = myCache.get(key);\n\t\tif...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Drops the underlying database table.
public static void dropTable(Database db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"ARTICLE\""; db.execSQL(sql); }
[ "public void dropTable() throws SQLException {\n\tconnect_func();\n\t\n\t// drop the table and create a new one\n\tstatement = (Statement) connect.createStatement();\n\tstatement.executeUpdate(\"SET FOREIGN_KEY_CHECKS = 0\");\n\tstatement.executeUpdate(\"DROP TABLE IF EXISTS videotag\");\n\tstatement.executeUpdate(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: unmarshall void type ??? nothing???
public static void unmarshallVoid(byte[] data) { }
[ "public abstract void unMarsha();", "public boolean isVoidType()\t\t{ return false; }", "void visit(voidTypeNode n) {\n\t}", "@Override\n\tpublic void caseVoidType(VoidType t) {\n\n\t}", "void visit(voidTypeNode n){\n\t}", "static AST.Type voidFor(Token t) {\n return new AST.Type(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default constructor. 100 element FIFO queue which drops oldest element when full.
public UnbiasedQueue() { this(DEFAULT_MAX_OBJECTS, DROP_OLDEST_OBJECT); }
[ "public CircularFifoQueue() {\n this(32);\n }", "public FIFO(){}", "public FifoLifoQueue() {\n\t\tsuper();\n\t}", "public LinkedBlockingQueue() {\n\t\tthis(Integer.MAX_VALUE);\n\t}", "public FixedQueue(int capacity) {\n\t array = new Object[capacity];\n\t }", "Queue(int numElements) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<UserDetail> getUserDetailByIdList(List<Integer> ids) { return userDetailDao.findByUserIdIn(ids); }
[ "@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" ] ] } }
Creates a new instance of class TupleSet with tuples of length 2 from the given collection of pairs of numbers.
public static TupleSet createTupleSetFromPairs(Collection<Pair<Integer,Integer>> pairs){ int[][] values = new int[pairs.size()][2]; int index = 0; for (Pair<Integer,Integer> pair : pairs){ values[index][0] = pair.r; values[index][1] = pair.s; index++; ...
[ "public IntegerSet (List<Integer> elements) {\n this.elements = elements.copy();\n removeDuplicates();\n }", "@Test\r\n public void HashSetTest() {\r\n Collection<Pair<String, Integer>> x = new HashSet<>();\r\n\r\n Pair<String, Integer> hello = new Pair<>(\"Hello\", 1);\r\n Pair<S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter gia to email tou User.
public void setEmail(String em){email = em ;}
[ "public void setEmail(java.lang.String value) {\n\t\tsetValue(com.schedushare.core.database.tables.User.USER.EMAIL, value);\n\t}", "public void setUserEmail(String userEmail)\r\n\t{\r\n\t\tthis.userEmail = userEmail;\r\n\t}", "public void setUserEmail(String email) {\r\n SharedPreferences.Editor editor =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void prepare() throws Exception { }
[ "@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 the exact length in bytes of the stream.
public long getLength() throws LiteCoreException { return withPeerOrDefault(0L, C4BlobReadStream::getLength); }
[ "public long getLengthS() {\r\n\t length = connectionS.getContentLengthLong();\r\n\t return length;\r\n\t }", "public long getLength() throws IOException;", "public int getLength() {\n\t\treturn byteLength;\n\t}", "public int getLength() {\r\n return buffer.limit();\r\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET /blogs : get all the posts.
@GetMapping("/blogs") @Timed public ResponseEntity<Page<Post>> getAllPosts(@RequestParam MultiValueMap<String, String> queryParams, UriComponentsBuilder uriBuilder, Pageable pageable) { log.debug("REST request to get a page of blog posts - public"); Page<Post> page = postRepository.findByStatus(...
[ "@ResponseStatus(code = HttpStatus.OK)\n\t@GetMapping(\"/all\")\n\tpublic List<BloggerDetails> viewAllBloggers() {\n\t\tList<Blogger> list = bService.viewAllBloggers();\n\t\tList<BloggerDetails> detailList = bUtil.bloggerListToBloggerDetailsList(list);\n\t\treturn detailList;\n\t}", "@GetMapping(\"/\")\n publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 status = 6;
public boolean hasStatus() { return ((bitField0_ & 0x00000020) == 0x00000020); }
[ "int get_status();", "public int getStatus() { return _status; }", "public int getStatus(){\n return status;\n }", "public void setStatus(int status)\n/* */ {\n/* 194 */ this.status = status;\n/* */ }", "public abstract R mo38135a(Status status);", "com.yunhui.job.common.proto.Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { RecyclerView.ViewHolder vh; if (viewType == VIEW_ITEM) { View v = LayoutInflater.from(parent.getContext()).inflate( R.layout.check_avilable_bars_elements, parent, false); vh = new AvilableBarsViewHolder(v);...
[ "@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" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { Intent callIntent = new Intent(Intent.ACTION_VIEW); callIntent.setData(Uri.parse("tel:2148879330")); ...
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User clicked "Discard" button, close the current activity.
@Override public void onClick(DialogInterface dialogInterface, int i) { finish(); }
[ "public void cancelClick(View view) {\n finish();\n }", "public void onDiscardTrackedActivity(View v) {\n\n\t\t//If the user is sure they want to discard this activity, the user is safely taken back to the\n\t\t//main menu, stopping the service and losing the tracked session\n\t\tDialogInterface.OnClick...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
HashCode igual ao Equals
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((clientes == null) ? 0 : clientes.hashCode()); return result; }
[ "public abstract int formHashCode();", "@Test\n public void testHashCode() {\n BigInteger id = IdUtil.next();\n AbstractEntity a = new TestEntity();\n a.setId(id);\n\n AbstractEntity b = new TestEntity();\n b.setId(id);\n\n AbstractEntity c = new TestEntity();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field targetDataList is set (has been assigned a value) and false otherwise
public boolean isSetTargetDataList() { return this.targetDataList != null; }
[ "public boolean isSetTarget() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TARGET_ISSET_ID);\n }", "public boolean isSetData()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_el...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
consultas a la tabla que contiene los datos de las ciudades
public static Iterator consultarCiudad() { Session sesion = ConexionBaseDatos.conectarBBDD(); Iterator iter = sesion.createQuery("from Ciudad").iterate(); return iter; }
[ "private void llenarTablaContratoAbonados() throws SQLException {\n CDAbonado cda = new CDAbonado();\n String codAbonado = (String.valueOf(this.jTblAbonados.getValueAt(this.jTblAbonados.getSelectedRow(), 0)));\n\n List<CLAbonado> miLista = cda.listaContratoAbonado(codAbonado);\n DefaultT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void move(test.ui.Direction direction) { }
[ "@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 "entryRuleIntLink" $ANTLR start "ruleIntLink" ../protolipse.ui/srcgen/protolipse/ui/contentassist/antlr/internal/InternalProtobuf.g:462:1: ruleIntLink : ( ( rule__IntLink__TargetAssignment ) ) ;
public final void ruleIntLink() throws RecognitionException { int stackSize = keepStackSize(); try { // ../protolipse.ui/src-gen/protolipse/ui/contentassist/antlr/internal/InternalProtobuf.g:466:2: ( ( ( rule__IntLink__TargetAssignment ) ) ) // ../protolipse.ui/sr...
[ "public void setLink(IntNode _link)\r\n\t{\r\n\t\tlink = _link;\r\n\t}", "public final EObject entryRuleLink() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleLink = null;\n\n\n try {\n // ../org.eclipse.xtext.xdoc/src-gen/org/eclipse/xtext/xdoc/parser/an...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface to define the service method contract
public interface TransactionService { public List<String> getParsedListOfTransactions(Resource input, String customerId); public List<Transaction> getTransactions(List<String> transactionList); }
[ "@Contract\npublic interface SegadsService {\n /**\n *\n */\n void command();\n void configure();\n void control();\n String info();\n}", "public interface DemoService {\n \n\n /**\n * Auto generated method signature\n * \n * @param getGr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if there is a collision between a spaceship and the planet. If there is one and that the spaceship is an ennemy, the planet looses available ships, if the spaceship is an allied the planet gains available ships.
public Spaceship checkCollision(Spaceship spaceship, Controller spaceShipOwner) { if (contains(spaceship.getPos())) { if (this.getOwner() != spaceShipOwner){ this.setHit(spaceship.getDamage()); if(!Utils.OPTIMIZED) this.collisions.add( new Collisio...
[ "public void checkCollisions() {\r\n\r\n Rectangle r3 = spaceship.getBounds();\r\n\r\n for (Enemigo alien : aliens) {\r\n \r\n Rectangle r2 = alien.getBounds();\r\n\r\n if (r3.intersects(r2) && alien.isVisible()) {\r\n if(VIDAS == 0){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new JWT authentication strategy
public JWTAuthenticator() { }
[ "public interface JwtService {\r\n\t/**\r\n\t * This method creates a token from authentication\r\n\t * \r\n\t * @param authentication\r\n\t * @return\r\n\t * @throws JsonProcessingException \r\n\t */\r\n\tpublic String create(Authentication authentication) throws JsonProcessingException;\r\n\r\n\t/**\r\n\t * This ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
helper function to check if point is null
private void checkPoint(Point2D p) { if (p == null) { throw new NullPointerException("Point provided is NULL"); } }
[ "private void checkPoint(Point2D p) {\n if (p == null)\n throw new java.lang.NullPointerException(\"Null point\");\n }", "private boolean isValidDatapoint(SingleSensorDataPoint dataPoint) {\n return dataPoint.getValue() != null;\n }", "private void assertPoint(Point arg) {\n if (arg ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
=========================================================== Methods for/from SuperClass/Interfaces ===========================================================
@Override public void read(final DataInputStream pDataInputStream) throws IOException { final byte serverIPLength = pDataInputStream.readByte(); this.mServerIP = new byte[serverIPLength]; for(int i = 0; i < this.mServerIP.length; i++) { this.mServerIP[i] = pDataInputStream.readByte(); } this...
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "interface Interface{}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get list answers for post
@GetMapping("/getTopSubjects") public ResponseEntity<List<SubjectDTO>> getTopSubjects(@RequestParam(required = false) Integer offset, @RequestParam(required = false) Integer limit) throws Exception { try { List<SubjectDTO> result = forumService.getTopSubjects(offset, limit); ...
[ "public List<Answer> getAnswers(Question question);", "@Override\n\tpublic List<Answer> getAnswerList() {\n\t\treturn answer;\n\t}", "public List<Answer> answers() {\n return answers;\n }", "public List<Answer> getAnswerList() {\n return answerList;\n }", "@Override\n\tpublic ArrayList<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
@Override // androidx.lifecycle.ViewModel public void onCleared() { this.f42170b.onNext(f42169a); super.onCleared(); }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
input : list of a given link's occupied wavelengths output : fragmentation coefficient
private double calculateFragmentation(List<Double> linkWavelengths) { freeMax = -999; free = 0; double t = 0.1; double point1 = minWavelength; double point2; double separation; int collisionsDetected = 0; for (int i = 0; i < linkWavelengths.size(); i++) { ...
[ "public ArrayList<Double> calculateWeight(){\n ArrayList<Double> weights = new ArrayList<>();\n for (String fragment : fragments) {\n Map<Character, Double> fragmentWeights = new HashMap<>();\n char[] dnaChar = fragment.toCharArray();\n for (char base : dnaChar) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }