query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Return true if this Variable could possibly be part of an Event
public boolean isPossiblyEvent() { if (isArray() == true || isEnum() == true || isCustom() == true || isEvent() == true) { return true; } return false; }
[ "public boolean isEvent() {\n return true;\n }", "boolean hasEvent2();", "boolean hasEvent1();", "public boolean isEventCondition() {\n/* 72 */ return false;\n/* */ }", "public boolean hasEventName() {\n return ((bitField1_ & 0x00004000) == 0x00004000);\n }", "public boolean has...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check that we have a file upload request
public static void upload(HttpServletRequest request, HttpServletResponse response) { final String address = "E:\\SUBJECT\\JAVA"; final int yourMaxMemorySize = 1024 * 1024*3; //3M final int yourMaxRequestSize = 1024 * 1024*50; //50M //kt minh da bo doan enctype... do chua boolean isMultipart = ServletF...
[ "boolean isMultipart(HttpServletRequest request);", "public boolean haveUploadingFile() {\n Realm realm = Realm.getDefaultInstance();\n FileToAttach fileToAttach = realm.where(FileToAttach.class).equalTo(\"uploadState\", UploadState.UPLOADING.name()).findFirst();\n return fileToAttach != null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets intDate and datetimes[STARTDATE]
public void setIntDate(int intDate) { this.intDate = intDate; datetimes.set(Keywords.INDEX_STARTDATE, Formatter.fromIntToDate(String.valueOf(intDate))); }
[ "public static void setStartDate (Date newDate) {startDate = newDate;}", "public void setStartDate(long startDate);", "public abstract void setStartDate(Calendar startDate);", "public abstract void setStartDate(Calendar startDate, int hourOfDay,\r\n\t\t\tint minutes, int seconds);", "public void setDate(){\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the category property.
public short getCategory() { return category; }
[ "public String getCategory() {\n\t\treturn this.getString(\"category\");\n\t}", "@mdl.propgetter\n public String getCategory() {\n return this.category;\n }", "public java.lang.Integer getCategory () {\n\t\treturn category;\n\t}", "public String getCategory() {\r\n\t\treturn strCategory;\r\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return an existing connection. If the connection does not exists a new connection is established.
protected Connection getConnection(){ if(con==null) try { //Register the JDBC driver for MySQL. Class.forName(driverName); con = DriverManager.getConnection(url,user, password); } catch(Exception e){ e.printStackTrace(); } return con; }
[ "@Override\n public Connection getConnection() {\n Connection connection = null;\n connection = createConnection();\n synchronized (connections) {\n if (connection != null) {\n connections.add(connection);\n }\n }\n return connection;\n }", "final Connection obtainNewConnection()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the current quote for this Stock element.
public double getQuote() { return this.currentQuote; }
[ "public TransferwiseQuote getQuote() {\n return this.quote;\n }", "public java.lang.CharSequence getQuoteCurrency() {\n return quoteCurrency;\n }", "@Async\n public CompletableFuture<Quote> getCompletableQuote() {\n QuoteResource quoteResource = fetchQuote();\n return CompletableFut...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string common = 3;
com.google.protobuf.ByteString getCommonBytes();
[ "public String gcdOfStrings3(String str1, String str2) {\n int num = getMaxCommonDivisor(str1.length(), str2.length());\n return str1.substring(0, num).equals(str2.substring(0, num)) ? str1.substring(0, num) : \"\";\n }", "static int commonChild(String s1, String s2) {\r\n\t\tint[][] mem = new in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Cipher Instance RSA With ECB Mode and OAEPWITHSHA512ANDMGF1PADDING Padding
public static String decrypt (byte[] cipherTextArray, PrivateKey privateKey) throws Exception { Cipher cipher; cipher = Cipher.getInstance("RSA/ECB/OAEPWITHSHA-512ANDMGF1PADDING"); //Initialize Cipher for DECRYPT_MODE cipher.init(Cipher.DECRYPT_MODE, privateKey); //P...
[ "private RSA() { }", "public Bignum2 rsaE() { return rsaE; }", "public RSA() {\n\n\t\tArrayList<Integer> primes = getPrime(60, 120); // Get primes\n\t\tRandom random = new Random();\n\t\tint test = 123;\n\t\tdo {\n\t\t\tp = primes.get(random.nextInt(primes.size())); // Select p\n\t\t\tq = primes.get(random.next...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
LEFT JOIN FETCH i.produit p
@Query(queryWithDependency + " where i.produit.id =:x" ) public List<InfoCompProduit> getByProduit(@Param("x") Long idProduit);
[ "@Query(\"select j from JugadorEntity j left join fetch j.donaciones d where j.id=?1\")\n JugadorEntity fetchByIdWithDonaciones(Long id);", "public void testReadDepartmentsWithLeftJoinFetch() {\r\n\r\n EntityManager em = emf.createEntityManager();\r\n\r\n String qStrDIST = \"SELECT DISTINCT dept...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allows entering a new smart boolean for the Fridge Pre:The Fridge object must be created Post:the smart boolean will be saved in the variable "smart"
public void setSmart(boolean smart) { this.smart = smart; }
[ "public void setIsSameTax (boolean IsSameTax)\n{\nset_Value (\"IsSameTax\", new Boolean(IsSameTax));\n}", "public void setIsValid (boolean IsValid)\n{\nset_Value (\"IsValid\", new Boolean(IsValid));\n}", "public void setIsEuro (boolean IsEuro)\n{\nset_Value (\"IsEuro\", new Boolean(IsEuro));\n}", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is on a background thread.
@Override public List<BookingListing> loadInBackground() { if (mURL == null) { return null; } // Perform the network request, parse the response, and extract a list of bookinglist. List<BookingListing> books = BookUtils.fetchBookData(mURL); return books; }
[ "@Override\n\t\t\t\tpublic void doInBackground() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public synchronized void run() {\n }", "@Override\r\n\tpublic void backgroundProcess() {\n\t\t\r\n\t}", "public void run() {\n \t\n }", "@Override\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Queue<String> pq=new PriorityQueue<>(); pq.add("Pavan"); pq.add("raju"); pq.add("rushi"); Queue<String> pq1=new PriorityQueue<>(); pq1.add("Somu"); pq1.add("Rushi"); pq.addAll(pq1); // pq.peek(); // pq.element(); // pq.offer(null); // pq.poll(); ...
[ "@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" ] ] } }
.proto_def.RoomSubscribeResp.STATUS status = 1;
int getStatusValue();
[ "grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder();", "grpc.testing.Messages.EchoStatus getResponseStatus();", "protobuf.clazz.s2s.Club_ProxyProto.PlayerStatusOrBuilder getStatusOrBuilder();", "proto.GameStatusEnum getStatus();", "com.yunhui.job.common.proto.RequestProto.Status getStatu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .FileInfo files = 4;
com.torrent.gen.Torr.FileInfo getFiles(int index);
[ "public void incrementNumFiles() {\r\n\t\tthis.numFiles++;\r\n\t}", "public void incrementNumFileSets() {\r\n\t\tthis.numFileSets++;\r\n\t}", "int getDiffFileInfoCount();", "@Override\r\n public void readMultipleFile() {\n \r\n }", "SteammessagesClientserver.CMsgClientUFSUploadCommitResponse.File getFi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Populate the activity with the toplevel headers.
@Override public void onBuildHeaders(List<Header> target) { loadHeadersFromResource(R.xml.preference_headers, target); }
[ "private void initializeHeader() {\n for (int i = 0; i < numberOfColumns; i++) {\n calendarMonthPanel.add(new CalendarMonthHeader(i + 1).getRoot(), i, 0, 1, 1);\n }\n }", "public final void initHeaderView() {\n AppMethodBeat.i(43194);\n this.omD = v.hu(this).inflate(R.lay...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_report.report_hosp_name
public void setReportHospName(String reportHospName) { this.reportHospName = reportHospName == null ? null : reportHospName.trim(); }
[ "public void setHospitalName(java.lang.String hospitalName) {\n\t\tthis.hospitalName = hospitalName;\n\t}", "public void setHealthCareProvider(java.lang.String hospitalName){\n \n setHealthcareProviderID(hospitalName);\n \n }", "@Override\n public String getReportName() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate
public long getSessionId() { return this.sessionId; }
[ "protected void method_5557() {}", "@Override\n }", "@Override\n public void extornar() {\n \n }", "public void mo28221a() {\n }", "protected void mo4791d() {\n }", "protected void method_2117() {\n }", "@Override\r\n public void publicando() {\n }", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void getPositionInfoReceived(final float duration, final float currentTime) { PlayerActivity.this.runOnUiThread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub if (duration > 0) { timeSeekBar.setProgress((int)(currentTime *100/duration)); ...
[ "@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" ] ] } }
Once construct class, start computation
public RandomnessExtractor(List<Byte> bitsList) { int len = bitsList.size(); byte[] bits = new byte[len]; for (int i = 0; i < len; i++) { bits[i] = bitsList.get(i); } loadCodeTable(); String[] subStrings = subStringByMalkov(bits, MALKOV_ORDER); codeT...
[ "@Override\n\tpublic void run() {\n\t\twhile(true)\n\t\t{\n\t\t\tCompute2 c = new Compute2();\n\t\t\tc.BaseMethod2();\n\t\t}\n\t}", "public void run() {\n\t\ttry {\n\t\t\tfinal byte[] temp = new byte[512];\n\t\t\trng.nextBytes(temp);\n\t\t\t\n\t\t\twekaClassifier.buildClassifier(wekaTrainingInstances);\n\t\t\tcla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get strings to display in layout
@Override public RemoteViews getViewAt(int position) { String recipeTitle = ""; String ingredient =""; String quantity = ""; if(mCursor == null) { RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.widget_recipe_button_layout); return view...
[ "String getStaticText();", "private String getInfoText()\n {\n String infoText = getResources().getString(panelResourceName, null, \"Error : could not load the infoText text !\");\n if (substituteVariables()) {\n // Parses the infoText text and substitute variables\n infoTex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
not in app settings yet
int getVerticalDrawerVerticalMargin();
[ "private void getSettingsAttribute() {\n try {\n mSharedPreferences = getSharedPreferences(PREFS_NAME, 0);\n if (mSharedPreferences.getString(\"UUID\", mGetuuid) != null)\n mPrefUUID = mSharedPreferences.getString(\"UUID\", mGetuuid);\n mSharedPreferences = Pre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance representing zero tests.
public TestSummary() { }
[ "public SimpleTests() {\n }", "@Test\n public void testEmptyConstruction() {\n final LoopCounter loopCounter = new LoopCounter();\n\n Assert.assertNull(loopCounter.getName());\n Assert.assertNull(loopCounter.getType());\n Assert.assertNull(loopCounter.getFrom());\n Assert....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the confidence of the form type identified by the model.
public Float getFormTypeConfidence() { return formTypeConfidence; }
[ "public float getConfidence() {\n\t\t\t/*\n\t\t\t * TODO Provide a useful explanation count for redundant constraints.\n\t\t\t * The explanation count for redundant constraints is currently useless.\n\t\t\t * To avoid confusing the user, do not take it into account when giving confidence hints and default to 1.\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of variables declaration//GENEND:variables Establece una nueva fuente al texto
private void actualizaFuente(String fuente) { this.jTextField1.setText(fuente); this.font = new Font(fuente, this.font.getStyle(), this.font.getSize()); this.jTextArea1.setFont(font); }
[ "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXtіцваі Розділ333dddghfhds$$%&*^&*(&)\" + Integer.toString(rnd.nextInt(999999999));\n\t}", "static String titoloFonte( Source fon ) {\n\t\tString tit = \"\";\n\t\tif( fon != null )\n\t\t\tif( fon.getAbbreviation() != null )\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert an item into the DB
public boolean insertItem(String itemName, String itemDueTime, String itemPriority) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues contentValues = new ContentValues(); contentValues.put(TODO_COLUMN_ITEM_TEXT, itemName); contentValues.put(TODO_COLUMN_ITEM_DUE_TIME, itemDu...
[ "public ItemPk insert(Item dto) throws ItemDaoException;", "@Override\r\n\tpublic int insertItem(ItemDTO itemDTO) {\n\t\tConnection con = DBUtility.getConnection();\r\n\t\tSavepoint first = null;\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\t\r\n\t\t\tint item_id = itemDTO.getItemid();\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fungsi onclick pada button btnLogin
@Override public void onClick(View view){ nama = edEmail.getText().toString();//menyimpan inputan user di edEmail ke dalam variable nama password = edPass.getText().toString();//menyimpan inputan user di edPass ke dalam variable password //Toast t = Toast.mak...
[ "void loginButtonSelected();", "public void clickLogin(){\n \t\n \ttry {\n \t\tbtnLogin.click();\n \t}\n \tcatch (Exception e){\n \t\tthrow e;\n \t}\n }", "public void clickOnLoginButton() {\n loginButton.click();\n }", "public void clickOnLoginButton() {\n clickOnElem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new TransformerConfigurationException with no detail mesage.
public TransformerConfigurationException() { super("Configuration Error"); }
[ "public InvalidConfigurationException() {\r\n }", "public ConfluenceManagementServiceConfigurationException() {\r\n super();\r\n }", "protected TransformerFactory newTransformerFactory(Class<? extends TransformerFactory> transformerFactoryClass)\n/* */ {\n/* 198 */ if (transformerFactoryC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////////////////////////////////////////////// Constructors /////////////////////////////////////////////////////////////// Empty constructor.
public FuzzyRule() { super(); }
[ "public Tanh() {\n\t}", "public Cachorro() {\r\n }", "public Innlegg() {\n\t\t\n\t}", "public CommonTS() {\n }", "private O()\r\n {\r\n super();\r\n }", "public HeteroAST() { ; }", "protected ExampleObject() {\n super();\n }", "protected GeometricObject(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void setSector(java.lang.String param){ localSectorTracker = true; this.localSector=param; }
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use java net url to as a webClient
@Override public String GetHtmlResouceByURL(String url, String encoding) { StringBuffer buffer = new StringBuffer(); URL urlobj = null; URLConnection uc = null; InputStreamReader isr = null; BufferedReader input = null; try { urlobj = new URL(url); uc = urlobj.openConnection(); isr = new ...
[ "LowLevelClient setUrl(URL url);", "String getURL() throws ClientException;", "String sendGetRequest(String url);", "private byte[] getResourceFromWeb(URL url) {\n try {\r\n return httpc.singleGET(url, 5000, null, null, remoteProxyHost, remoteProxyPort);\r\n } catch (IOException e)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Codigo para calentar habitacion
@Override public void calentarHabitacion() { }
[ "@Override\r\n\tpublic long calculaCusto() {\n\t\treturn 0;\r\n\t}", "public void calculaImposto(){\n\t\t\n\t}", "public int getTiepNhanTrucTiep();", "public long getFaseNoAsistida();", "public java.lang.Integer getHr_hora_fin();", "public int getStato() {\r\n\t\tint stato = -1;\r\n\t\tif(colpita && !affo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invoked before we get the actually collection size. Always assume that the collection size should take 3 bytes.
void writeMapBegin(byte keyType, byte valueType, ByteBuf byteBuf) throws TException { /** * origin implementation: * if (map.size == 0) { * writeByteDirect(0); * } else { * writeVarint32(map.size); * writeByteDirect(getCompactType(map.keyType) << 4...
[ "public long getDefaultCappedCollectionSize() {\n return _defaultCappedCollectionSize;\n }", "@Override\n public int size() {\n return getCollection().size();\n }", "@Test\n public void collectionSizeTest() {\n boardTrainToLimit(this.trainH, 50);\n assertEquals(this.trainH.passen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the getter method this will return the attribute value. Enable lldp. Field introduced in 18.2.10, 20.1.1. Allowed in enterprise edition with any value, essentials edition(allowed values true), basic edition(allowed values true), enterprise with cloud services edition. Default value when not specified in API or ...
public Boolean getLldpEnable() { return lldpEnable; }
[ "@Attribute(defaultValue = \"\" + AUTH_PASS_THROUGH_ENABLED, dataType = Boolean.class)\n String getAuthPassThroughEnabled();", "public Number getEnable() {\n return (Number) getAttributeInternal(ENABLE);\n }", "public String getPilotValve_Attr(){\n\t\treturn obj.findElement(pilotValve).getAttribute...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a movement object from the relationship object defining it in the graph database.
private Movement createMovement(final Record movementRecord) { String id = ""; Integer batchSize = null; Integer departureDate = null; String departureId = ""; Integer destinationDate = null; String destinationId = ""; Integer marketDate = null; String ma...
[ "DirectedRelationship createDirectedRelationship();", "private EntityRelation createRelation(Entity source, Entity target, double weight,\n double[] weightOverTime) {\n EntityRelation relation = new EntityRelation();\n relation.setOriginEntity(source);\n relation.setRelatedEntity(target);\n relat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Read map SV and LT from file3 ,
public static List<BitSet> genOptTokenClient() throws Exception { FileReadWrite fOperation = new FileReadWrite(); //Read map SV from file3 List<String> content = new ArrayList<String>(); content = fOperation.readFileToStringList(file3); Iterator<String> it = content.iterator(); Map<Character, byte[]> ...
[ "public static HashMap<String, Double> readSDMap( String filename )throws IOException{\n\n HashMap<String, Double> map = new HashMap<String, Double>();\n\n BufferedReader br = new BufferedReader(new FileReader(filename) );\n try{\n String line = br.readLine();\n\n while( l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
change the movement step of the player
public void setMovementStep (int step){ this.movementStep=step; }
[ "@Override\r\n public void move() {\r\n this.playerCoordinates = new Point(this.playerCoordinates.x+STEP_SIZE*this.playerDirectionX,\r\n this.playerCoordinates.y+STEP_SIZE*this.playerDirectionY);\r\n }", "public void move()\r\n\t{\r\n\t\tthis.setSequence(ETAPE.MOVE);\r\n\t\tm_isOnNewNe...
{ "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.guid, 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" ] ] } }
repeated .de.tubs.androidlab.instameet.server.protobuf.Pair_Int32_SimpleAppointment map = 1;
public java.util.List<de.tubs.androidlab.instameet.server.protobuf.Messages.Pair_Int32_SimpleAppointment> getMapList() { if (mapBuilder_ == null) { return java.util.Collections.unmodifiableList(map_); } else { return mapBuilder_.getMessageList(); } }
[ "public Map<String , Object> getMeetingMap(int meetNo) throws Exception;", "public TimeMap2222() {\n map = new HashMap<>();\n }", "@SerializedName(\"pending\")\n public abstract Optional<Map<String, Object>> getPendingMap();", "public static void m117270a(Context context, PendingIntent pendingInt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: of
public static ScalingUtils.AbstractC3990b m109380of(String str) { if (TextUtils.isEmpty(str)) { return ScalingUtils.AbstractC3990b.f17966i; } char c = 65535; int hashCode = str.hashCode(); if (hashCode != 1093738280) { if (hashCode != 1676875157) { ...
[ "public void into(Target p1) {\n }", "public void from(IFact from);", "public interface OooO00o {\n /* renamed from: a */\n void mo27271a();\n\n /* renamed from: b */\n void mo27272b();\n }", "public void from(ITuples from);", "public static void opgave2For() {\n\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called to update incident execution status from workflow
public void updateIncidentExecStatusFromWorkflow( IncidentExecDtls incidentExecDtls) throws ApplicationException { try { incidentExecDtlsDAO .updateIncidentExecStatusFromWorkflow(incidentExecDtls); } catch (ApplicationException e) { throw e; } catch (Exception e) { throw new ApplicationException(...
[ "public void updateStatus() throws CanceledExecutionException;", "public void updateStatusResolved () throws InterruptedException {\n //Click Issue Tracker menu\n navigateIssueTracker();\n\n //Search Issue\n searchIssue();\n\n //Change Status to Resolved\n xSendKeyBoardke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
NOTE SET SCHEMA 'schemaName' (with quotes) is only effective for PostgreSQL versions >= 8.4 For 8.3, we must use SET search_path TO schemaName (without quotes) This is compatible w/ future versions as well; hence, we keep it (unfortunately, can't easily bring up version 8.3 on an app server environment for easy testing...
@Override public void setDataSourceSchema(Connection conn, PhysicalSchema schema) { JdbcHelper jdbc = this.getJdbcTemplate(); jdbc.update(conn, "SET search_path TO " + schema.getPhysicalName()); }
[ "public void switchSchema(final String schema) {\n\t\tAssert.notNull(schema);\n\t\texecute(\"USE \" + schema);\n\t}", "@Override\r\npublic void setSchema(String schema) throws SQLException {\n\t\r\n}", "public void setSchema(Schema schema) {\r\n\t\tthis.schema = schema;\r\n\t}", "static void checkSchemaName (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The default behavior of this method is to return setHeader(String name, String value) on the wrapped response object.
public void setHeader(String name, String value) { this._getHttpServletResponse().setHeader(name, value); }
[ "Response header(String name, String value);", "void addHeader(String header, String value)\r\n {\n ResponseHeader.put(header, value);\r\n }", "public HttpResponseBuilder<T> header(String name, String value) {\r\n\t\theadersBuilder().append(name, value);\r\n\t\treturn this;\r\n\t}", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: i
float mo9990i();
[ "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" ] ] } }
.warmup.type.Categories category = 6;
int getCategoryValue();
[ "Meter build();", "@Bean\n MeterRegistryCustomizer<MeterRegistry> metricsCommonTags() {\n return registry -> {\n registry.config().commonTags(\"application\", \"question-generator-service\");\n };\n }", "@Benchmark\n public void wellHelloThere() {\n }", "@Override\r\n \tpublic Cate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Added by Jomar Diago 01072012
public String getFormattedEndtExpDate(){ SimpleDateFormat formatter = new SimpleDateFormat("MM-dd-yyyy"); if(this.endtExpiryDate != null){ return formatter.format(this.endtExpiryDate); } else { return null; } }
[ "private static void EX5() {\n\t\t\r\n\t}", "public void mo28221a() {\n }", "void mo37715E_();", "public void mo17751g() {\n }", "protected void mo4791d() {\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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assuming that ROWS are rows from the respective tables from which my columns are selected, returns the result of performing the test I denote.
boolean test(Row... rows) { String value1 = _col1.getFrom(rows); String value2; if (_col2 != null) { value2 = _col2.getFrom(rows); } else { value2 = _val2; } int val = value1.compareTo(value2); switch (_rel) { case "<": ...
[ "@Test\n public void getRowTest() {\n assertEquals(0, rook1.getRow());\n assertEquals(0, rook2.getRow());\n }", "@Test\n public void getResults() throws SQLException {\n String query = \"SELECT * FROM users\";\n SQLQueryRunner queryRunner = new SQLQueryRunner(query, conn);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A constructor for UserManager and Initialize the six attributes.
public UserManager() { permanentUsers = new ArrayList<>(); trialUsers = new ArrayList<>(); suspensions = new HashMap<>(); freezes = new ArrayList<>(); lastLoginTime = new HashMap<>(); tempInfo = new HashMap<>(); }
[ "public UserManager() {\n fileHandler = new UserFileHandler();\n statusHandler = new UserStatusHandler();\n loadFromFile();\n }", "private UserManager()\n\t{\n\t}", "private UserManager() {\n\t\tusers = DataLoader.loadUsers();\n\t\tcurrentUser = new User();\n\t}", "public User()\n\t{\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asserts that a query contains the given key and value as a fuzzy search. Does not depend on the exact fuzziness of the query. Each value in the array must occur a separate time within the given query.
public static void assertQueryContainsFuzzy(final Query query, final String key, final String[] values) { if (values == null) { return; } for (String value : values) { FuzzyQuery testQuery = new FuzzyQuery(new Term(key, value)); // remove actual fuzziness just so that we aren't dependent on that Stri...
[ "@NonNull\n public Query equalTo(@Nullable String value, @Nullable String key) {\n validateEqualToCall();\n return this.startAt(value, key).endAt(value, key);\n }", "@NonNull\n public Query equalTo(double value, @Nullable String key) {\n validateEqualToCall();\n return this.startAt(value, key).endA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The heap method that works
private void saveNode(TNode _node, TPath _path, GBNodes from, GBNodes _to) { List<Integer> list = _node.getReference(); _node.setNode_id(-1l); _path.setPath_id(-1l); Session sess = _to.getDBConnectionManager().getSession(); try { sess.beginTransaction(); // save the node and the coresponding path object...
[ "private void heapify() {\n\t\t\n\t\tint parent = (lastIndex - 1) / 2;\n\t\t\n\t\twhile (parent >= 0) {\n\t\t\tsiftDown(parent);\n\t\t\t--parent;\n\t\t}\n\t\t\n\t}", "private void buildHeap()\n\t{\n\t\tfor (int i = currentSize / 2;i > 0;i--)\n\t\t\tpercolateDown(i);\n\t}", "private void expandHeap() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); esconderSysUI(); setContentView(R.layout.activity_cuestionario); idMedicion = getIntent().getLongExtra("medicion_id", 0); alt1 = (Button) findViewById(R.id.alt1b); alt2 = (Button) findViewById(R....
[ "@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" ] ] } }
repeated .dstore.engine.Message message = 3;
java.util.List<? extends io.dstore.engine.MessageOrBuilder> getMessageOrBuilderList();
[ "void mo31256a(Message message);", "Recorder setMessage(String message);", "public void d(Message message) {\n if (message != null) {\n int i = 1;\n if (message.arg1 >= 1) {\n i = message.arg1;\n }\n this.g = i;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sort Triplet items in a problem based on ratio cost/weight and the reverse the list. this way most valuable package with less weight would be in the head of the list.
private void sortProblemTripletsWithRatio(Problem problem) { problem.getTriplets().sort(Comparator.comparing(Triplet::getRatio).reversed()); }
[ "double fractionalKnapsack(int W, Item arr[], int n) \n {\n // Your code here\n //Sort acc to value per weight\n Arrays.sort(arr,\n (a,b) -> (((double)a.value/(double)a.weight)>((double)b.value/(double)b.weight))?-1:\n (((double)a.value/(double)a.weight)<((double)b.value/(double)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get event bus handlers registrations
final protected RegistrationList getRegistrationList() { return registrationList; }
[ "Map<EventType<? extends Event>, Collection<? extends EventHandler<? extends Event>>> getEventHandlers() {\n\t\treturn hub.getEventHandlers();\n\t}", "@EventHandler\n public HandlerList getHandlers() {\n return handlers;\n }", "public List<MessageHandler> getHandlers() {\n\n\t\treturn Collections.u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This event is triggered soon after onCreateView(). Any view setup should occur here. E.g., view lookups and attaching view listeners.
@Override public void onViewCreated(final View view, Bundle savedInstanceState) { // Setup any handles to view objects here // EditText etFoo = (EditText) view.findViewById(R.id.etFoo); super.onViewCreated(view, savedInstanceState); tvStateName = view.findViewById(R.id.tvStateName);...
[ "@Override public void onViewInitialised() {\n super.onViewInitialised();\n }", "protected void onViewCreated(Bundle savedInstanceState) {\n }", "@Override\n public void onViewInitFinished(boolean arg0) {\n }", "@Override\r\n\tpublic void onViewCreated(View view, Bundle savedInstanc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
push function to add element to stack
public void push(T item){ Node<T> temp=first; first =new Node<T>(item,null); first.next=temp; tos++; size++; }
[ "public void push(T element){\n \n myStack.add( element) ;\n count++;\n \n }", "public void push(T element){\n\n Node<T> new1 = new Node(element,this.stackelement);\n this.stackelement=new1;\n\n }", "public void push(Object newItem) throws StackException;", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the event persistence.
public EventPersistence getEventPersistence() { return eventPersistence; }
[ "FHIRPersistenceEvent getPersistenceEvent();", "public EnrolmentPersistence getEnrolmentPersistence() {\n\t\treturn enrolmentPersistence;\n\t}", "private Persistor getPersistenceSession() {\n return ExpressiveObjectsContext.getPersistenceSession();\n }", "public ApplicationPreferencesPersistence get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Change to ContainerImpl.class when implemented
@Override public Container createContainer(final Transaction transaction, final String identifier) { return (Container) createResource(Container.class); }
[ "Object getContainer();", "@Override\n public Class<? extends Container> getContainer() {\n return null;\n }", "public interface ContainerService {\n\n String getContainerType();\n\n}", "public ContainerXuggle(IContainer container) { this.container = container; }", "@Override\n public boo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the MBeanOperationInfo of the MBean for this operation
public MBeanOperationInfo getOperationInfo() { return operationInfo; }
[ "public ModelMBeanOperationInfo createOperationInfo() {\n\n // Return our cached information (if any)\n if (info != null)\n return (info);\n\n // Create and return a new information object\n ParameterInfo params[] = getSignature();\n MBeanParameterInfo parameters[] =\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mapEndpoints(Javalin app) { app.get("/clients", getAllClients); app.get("/clients/:id", getClientByID); app.post("/clients", postNewClient); app.put("/clients/:id", updateClientByID); }
[ "@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 channel soSender and the fast garbling circuit that the protocol uses.
public PartyOne(Channel channel, OTBatchSender otSender, FastGarbledBooleanCircuit circuit){ //Set the given parameters./* this.channel = channel; this.otSender = otSender; this.circuit = circuit; }
[ "protected void setSender(ISender sender) {\n \t\tthis.sender = sender;\n \t\tlog.debug(\n \t\t\t\"pipe [\"\n \t\t\t\t+ getName()\n \t\t\t\t+ \"] registered sender [\"\n \t\t\t\t+ sender.getName()\n \t\t\t\t+ \"] with properties [\"\n \t\t\t\t+ sender.toString()\n \t\t\t\t+ \"]\");\n \t}", "@Override\n\tpublic vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compiles a list of all entities this unit is able to attack
public void findTargets() { targets.clear(); if (!canAct) return; for (Entity e: entityManager.getEntityList()) { if (!e.isActive()) continue; if (e instanceof Unit && player == ((Unit) e).getPlayer()) continue; int diffX = Math.abs(coord.x - e.getCoord().x); int diffY = Math.abs(coord.y - e.getCoor...
[ "public Collection<Attack> getAllAttacks();", "public List<OntologyClass> getActiveEntities();", "void performAttack( List<CreatureCard> creatures);", "public final ArrayList<AEntity> generateAST() throws TamagoCCException {\r\n\t\tArrayList<AEntity> res = new ArrayList<AEntity>();\r\n\t\tTamagoCCLogger.prin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .CMsgQAngle angle = 1;
public Netmessages.CMsgQAngle getAngle() { if (angleBuilder_ == null) { return angle_ == null ? Netmessages.CMsgQAngle.getDefaultInstance() : angle_; } else { return angleBuilder_.getMessage(); } }
[ "public float getAngle() { return this.angle; }", "public Integer getAngle()\n {\n return angle;\n }", "@Override\n public float getAngle() {\n return 0;\n }", "public T getAngle() {\n br.ufmg.labsoft.mutvariants.schematalib.SchemataLibMethods.listener.listen(\"org.apache.comm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests accuracy of addSupplier(Collection). Value should be set correctly.
public void testAddSuppliers_Accuracy() { Collection<ModelElement> collection = new ArrayList<ModelElement>(); ModelElement testObj1 = new ModelElementAbstractImpl() {}; collection.add(testObj1); ModelElement testObj2 = new ModelElementAbstractImpl() {}; collection.add(testObj2);...
[ "@Test\n\tpublic void testAdd() {\n\t\tset.add(45);\n\t\tassertTrue(set.has(45));\n\t\tint count = set.getCount();\n\t\tset.add(45);\n\t\tset.add(45);\n\t\tassertEquals(count, set.getCount(), \"There are duplicates\");\n\t\tassertThrows(UnsupportedOperationException.class, ()-> { //Set full? -> error!\n\t\t\tset.ad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Dto saveAdcShiftDutyDetailItem(Dto pDto) { 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" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FMSPAYPLANDET_JOINT_CIF.SETTLED_PROFIT_AMT
public void setSETTLED_PROFIT_AMT(BigDecimal SETTLED_PROFIT_AMT) { this.SETTLED_PROFIT_AMT = SETTLED_PROFIT_AMT; }
[ "public void setTicketProfitAmt(BigDecimal ticketProfitAmt) {\r\n this.ticketProfitAmt = ticketProfitAmt;\r\n }", "private void setEstimateData(Pcesthmt pcesthmt) throws ParseException\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnf.setGroupingUsed(true);\r\n\t\t\tnf.setMaximumFractionDigits(2);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
verilen iki sayinin yerlerini degistiriniz
public static void main(String[] args) { int num1=11; //33 int num2=33; //11 System.out.println("...degisiklik oncesi"); System.out.println("1.sayi = " + num1); System.out.println("2.sayi = " + num2); int bos=num1; //1.sayiyi bos a atiyoruz num1=num2; //2.sayiyi bire atiyoruz num2=bos; //bos ici...
[ "@Override\n\tpublic void askerlikDurumuSorgula() {\n\t\tif(askerlik) {\n\t\t\tSystem.out.println(\"Askerligimi yaptim\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Askerligimi henuz yapmadim\");\n\t\t}\n\t\t\n\t}", "public void bilgilendirme() {\n // 6. adimda yazdirmamizi istedi\n\t\tSystem.out.println(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the ButtonViewSave property value.
private javax.swing.JButton getButtonViewSave() { if (ivjButtonViewSave == null) { try { ivjButtonViewSave = new javax.swing.JButton(); ivjButtonViewSave.setName("ButtonViewSave"); ivjButtonViewSave.setMnemonic('s'); ivjButtonViewSave.setText("View/Save/Print Output File"); ivjButtonViewSave.setEnable...
[ "public JButton getBtnSave() {\n return btnSave;\n }", "public String getSaveValue();", "public String getSaveObject() {\n return saveObject;\n }", "public boolean getSave(){\n return isSavePoint;\n }", "public String getValue_click_Login_To_saveList_Button(){\r\n\t\treturn cli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sign in when redirected to google
public String yakutiaSignInGoogleSignInApproveGet() { signInAndApprove(dh); // Get header from yakutia create account page WebElement header = (new WebDriverWait(dh.getDriver(), 10)) .until(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[@id=\"overview\"]/div/h1"))); ...
[ "private void signInGoogle() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, REQUEST_CODE_GOOGLE);\n }", "@OnClick(R.id.iv_login_google)\n public void googleLogin() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(Goog...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
over riding the interface function
@Override public String energylevel(){ return "very good energy level"; }
[ "@Override\r\n public void publicando() {\n }", "interface Interface{}", "@Override\n public void extornar() {\n \n }", "public void custumer(){\n \n }", "@Override\n\tvoid atacar() {\n\n\t}", "@Override\n\tpublic void NelsonInterface() {\n\n\t}", "public interface C33482a {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
validate primo pick end date
private void validatePrimoPickEndDate(){ if (StringUtils.isNotBlank(primoPick.getPrimoPickEndDate())){ if(DateUtils.getLocalDate(primoPick.getPrimoPickEndDate(),DFLT_DATE_FORMAT)==null) { primoPick.getErrors().add(ERROR_INVALID_END_DATE); }else if (!DateUtils.isGreaterThanToday(primoPick.getPrimoPickEndDate...
[ "public void validateDates( ){\n setIsValidDate(false);\n newTerm.setStartYr(newTerm.getStartDate());\n newTerm.setEndTrmYr(newTerm.getEndDate());\n if(newTerm.getEndDate().before(newTerm.getStartDate())){\n System.out.println(\" Sorry! End date is less than Start Date\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
[ "public void consume() {\r\n\t\tthis.p++;\r\n\t\tif (this.p >= this.input.length()) {\r\n\t\t\tthis.c = EOF;\r\n\t\t} else {\r\n\t\t\tthis.c = this.input.charAt(this.p);\r\n\t\t}\r\n\t}", "public void consume() {\n \tif (input != null){\n \t\tif ( !(p < input.length()) ) inputLine(); \n \t} else c= EOF;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A AuthenticatedFunction is passed in when executing the google authenticated service. The authenticated function of the class is called with the current authentication token for the service. The function should execute whatever operations with the google service without concern for whether the client will throw an erro...
public interface AuthenticatedFunction { public abstract void run(String authenticationToken) throws AuthenticationException, IOException; }
[ "public interface AuthServiceClient {\n /**\n * Authenticate and return Access token\n * @param token\n * @return\n */\n TokenResponse getToken(String token);\n\n /**\n * Authenticate given access token against given oAuth Service and returns access token\n * @param token\n * @p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns if a match has been found in this sequnece if returns false it mean either no match, or it hasn't been processed yet
public boolean matchFound(){ return count != 0; }
[ "public boolean nextMatch() {\n return false;\n }", "public boolean getMatchHasResults() {\n return this.matchResults.size() > 0;\n }", "private boolean findMatch () throws IOException {\n if (firstSpans.doc() != currentDocNum) {\n currentDocNum = firstSpans.doc();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Swaps any two specified elements.
private void swap(int index1, int index2) { Base temp1 = heapArray[index1]; Base temp2 = heapArray[index2]; heapArray[index1] = temp2; heapArray[index2] = temp1; // print debug message if (debug) { System.err.println(SWAP + temp1.getName() + AND + temp2.getName()); } }
[ "private void swap_elements(int array[], int a, int b) { \n\t\tint temp = array[a];\n\t\tarray[a] = array[b];\n\t\tarray[b] = temp;\n\t}", "private void swap(int i1, int i2) {\n\t E tmp = this.elements.get(i1);\n\t this.elements.set(i1, this.elements.get(i2));\n\t this.elements.set(i2, tmp);\n }", "voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { if (tv_check.isChecked()) { tv_check.setCheckMarkDrawable(R.mipmap.ic_launcher_round); } else { tv_check.setCheckMarkDrawable(R.mipmap.ic_launcher); } ...
[ "@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 String getLabel() { return "TESTADD (AE|RE)"; }
[ "@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 MyBatis Generator. This method corresponds to the database table address_data
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
[ "public TABLE_OF_ZFIAP_ADDRESS_DATA getIT_ADDRESS_DATA(){\r\n return localIT_ADDRESS_DATA;\r\n }", "@Select({\n \"select\",\n \"id, phone, name, telephone, addr, addr_details, tags, remark, uid, is_first\",\n \"from xxd_user_addr\",\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Releases Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
public void closeStatement(Statement statement) { if (statement != null) { try { statement.close(); } catch (SQLException e) { log.error("Statement is null.", e); } } }
[ "public void close() throws SQLException {\n if ( isClosed ) {\n return;\n }\n \n // close the the server's statement object (if necessary)\n if(resultSet != null) {\n resultSet.close();\n resultSet = null;\n }\n \n isClosed = true;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares the source code generated by the combination of the parser and unparser. Unparse(Parse(Unparse(Parse(Code)))) == Unparse(Parse(Code))
public static boolean isSameSourceCode(String path, Obfuscator obf) throws FileNotFoundException, ParseException { List<Obfuscator> obfList = new ArrayList<Obfuscator>(); obfList.add(obf); return isSameSourceCode(path, obfList); }
[ "public void analyzeCode(PHPParser parser)\n {\n }", "private boolean parseScript(android.icu.impl.locale.StringTokenIterator r1, android.icu.impl.locale.ParseStatus r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.locale.Lan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if you know the assign ids you want, put them here
public void setWsAttributeAssignLookups(WsAttributeAssignLookup[] wsAttributeAssignLookups1) { this.wsAttributeAssignLookups = wsAttributeAssignLookups1; }
[ "private void collectIds() {\n for (OntClass clazz: this.referencedClasses)\n this.createId(clazz);\n for (OntProperty property: this.referencedProperties)\n this.createId(property);\n }", "public void setIncludeAttributeAssignments(java.lang.String param){\n localInclu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int delete(int r_idx) throws Exception { 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" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table bat_mat
int insert(Bat_mat record);
[ "@SqlMapper\npublic interface BusiDictionariesMaterialMapper {\n /**\n * 新增\n * @param material\n */\n Long save(BusiDictionariesMaterial material) ;\n\n /**\n * 查询列表\n * @return\n */\n List<BusiDictionariesMaterial> list();\n\n /**\n * 修改\n * @param material\n */\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column temperature_sensor1.gmt_create
public Date getGmtCreate() { return gmtCreate; }
[ "@Basic\n @Column(name = \"gmtCreate\")\n public Timestamp getGmtCreate() {\n return gmtCreate;\n }", "public java.sql.Date getDatecreate() {\n\treturn datecreate;\n}", "public Date getTimecreate() {\r\n return timecreate;\r\n }", "public java.sql.Timestamp getCreateDatetime() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Message createEntity(EntityManager em) { Message message = new Message() .serverTime(DEFAULT_SERVER_TIME) .deviceTime(DEFAULT_DEVICE_TIME) .rawMessageSHA256(DEFAULT_RAW_MESSAGE_SHA_256) .rawMessage(DEFAULT_RAW_MESSAGE) .rawMessageContentT...
[ "protected abstract Entity createEntity();", "EntityInstance createEntityInstance();", "@Override\n protected void createEntity() {\n Company company = createCompany(1001);\n setEntity(company);\n }", "public final Entity createEntity() {\n Entity entity = new Entity(this);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set given score to runtime storage
void setScore(int score, BaseCallback callback);
[ "public void setScore(double score){\n this.score = score;\n }", "public void setScore(long score) {\n this.score = score;\n }", "public void setScore(int score) {\n currentScore = score;\n }", "public void setScore(int score){\n this.score = score;\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Propose amendment to the value of dwc:taxonID if it can be unambiguously resolved from bdq:sourceAuthority using the available taxon terms. where bdq:sourceAuthority is the default GBIF Backbone Taxonomy. Provides: 57 AMENDMENT_TAXONID_FROM_TAXON Version: 20230704
@Amendment(label="AMENDMENT_TAXONID_FROM_TAXON", description="Propose amendment to the value of dwc:taxonID if it can be unambiguously resolved from bdq:sourceAuthority using the available taxon terms.") @Provides("431467d6-9b4b-48fa-a197-cd5379f5e889") @ProvidesVersion("https://rs.tdwg.org/bdq/terms/431467d6-9...
[ "java.lang.String getSupplierTaxID();", "java.lang.String getSellerTaxId();", "public void setTaxId(String taxId) {\n this.taxId = taxId;\n }", "public void setTaxiID(int taxiID){ this.taxiID = taxiID; }", "public String getTaxId() {\n return this.taxId;\n }", "public Builder setSeller...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Audio__Group__0__Impl" $ANTLR start "rule__Audio__Group__1" InternalVideoMontageSVJD.g:1839:1: rule__Audio__Group__1 : rule__Audio__Group__1__Impl rule__Audio__Group__2 ;
public final void rule__Audio__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalVideoMontageSVJD.g:1843:1: ( rule__Audio__Group__1__Impl rule__Audio__Group__2 ) // InternalVideoMontageSVJD.g:1844:2: rule__Audio__Group__1__Imp...
[ "public final void rule__OptionalVideoSeq__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalVideoGen.g:1012:1: ( rule__OptionalVideoSeq__Group__1__Impl )\n // InternalVideoGen.g:1013:2: rule__OptionalVideoSeq__Gr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DatePickerDialog dialog = new DatePickerDialog(getContext(), date, myCalendar .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH), myCalendar.get(Calendar.DAY_OF_MONTH)); dialog.getDatePicker().setMaxDate(maxDate); dialog.show();
@Override public void onClick(View view) { CustomDatePicker(); }
[ "@Override\n public void onClick(View v) {\n DatePickerDialog dpDialog = new DatePickerDialog(RegisterUser.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH));\n\n DatePicker date...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Update sig with nonces and DiffieHellman public key.
private void updateSignature(Signature sig, byte[] clntNonce, byte[] svrNonce) throws SignatureException { sig.update(clntNonce); sig.update(svrNonce); sig.update((byte)(p.length >> 8)); sig.update((byte)(p.length & 0x0ff)); sig.update(p); ...
[ "private void updateSignature(Signature sig, byte clntNonce[],\n byte svrNonce[]) throws SignatureException {\n int tmp;\n\n sig.update(clntNonce);\n sig.update(svrNonce);\n\n tmp = dh_p.length;\n sig.update((byte)(tmp >> 8));\n sig.update((byte)(tmp & 0x0ff));\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void completed(String arg0, String arg1, boolean arg2) { }
[ "@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 game's score.
public int getScore() { return score; }
[ "public int getScore() {\r\n\t\treturn game_score;\r\n\t}", "public double getGameScore() {\n\t\tif (_gameScore == -1.0)\n\t\t\t_gameScore = _stateObservation.getGameScore();\n\t\treturn _gameScore;\n\t}", "public int getScore() {\n return scoreBoard.getScore();\n }", "public static int getScore()\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asigna el valor al campo numeroEmpleado.
public void setNumeroEmpleado(String numeroEmpleado) { this.numeroEmpleado = numeroEmpleado; }
[ "public void setCodigoEmpresa(int value) {\n this.codigoEmpresa = value;\n }", "public int getCodigoEmpleado() { return this.codigoEmpleado; }", "public void setEmpNo(String empNo)\r\n\t{\r\n\t\tthis.empNo = empNo;\r\n\t}", "public void setCodEmpresa(java.lang.Integer codEmpresa) {\n this.cod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checks list for requested value
public List<Shop> filterChain (List<Shop> inList, String value){ ArrayList<Shop> inlat = new ArrayList<Shop>(inList); ArrayList<Shop> newList = new ArrayList<Shop>(); for(int i = 0; i<inlat.size(); i++){ if(inlat.get(i).chainOrIndie.equals(value)){ newList.add(inlat.get(i)); } } return newList; ...
[ "private boolean contains(String[] list, String value) throws Exception {\r\n for(String entry : list) {\r\n if(entry == value) {\r\n return true;\r\n }\r\n if(entry.equals(value)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select stat=new Select(driver.findElement(By.id("status"))); stat.selectByVisibleText("active");
public void selectvaluefromdropdown (String value) { Select select = new Select(driver.findElement(By.xpath("//select[@id='ctl00_cphContent_ddlstate']"))); select.selectByVisibleText(value); }
[ "public static void selectByVisibleTextState(WebElement obj,String text) throws InterruptedException{\r\n\t\tif(obj.isDisplayed()){\r\n\t\t\tThread.sleep(3000);\r\n\t\tSelect sel3 = new Select(obj);\r\n\t\tsel3.selectByVisibleText(\"NALANDA\");\r\n\t\tSystem.out.println(\"state is selected\");\r\n\t}\r\n\t\telse{\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
auto generated Axis2 call back method for BatchResultsRetrievalTransaction method override this method for handling normal response from BatchResultsRetrievalTransaction operation
public void receiveResultBatchResultsRetrievalTransaction( org.caqh.www.soap.wsdl.RtxStub.COREEnvelopeBatchResultsRetrievalResponse result ) { }
[ "public org.caqh.www.soap.wsdl.RtxStub.COREEnvelopeBatchResultsRetrievalResponse BatchResultsRetrievalTransaction(\n\n org.caqh.www.soap.wsdl.RtxStub.COREEnvelopeBatchResultsRetrievalRequest cOREEnvelopeBatchResultsRetrievalRequest10)\n \n\n thro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this resource has any child resources associated with it.
protected boolean hasChildResources() { return ! childResources.isEmpty(); }
[ "public boolean hasChildren() {\n if (children.isEmpty() || children == null) {\n return false;\n }\n return true;\n }", "public boolean hasChildren() {\n return !(children == null || children.isEmpty());\n }", "public boolean hasChildren()\n {\n return !ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string key = 1;
public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref;...
[ "public void setKey(String key1) {\r\n this.key = key1;\r\n }", "@NotNull\n String makeKey();", "@Override\n public void setKey(String str) {\n }", "int getKey1();", "public String getKey () {\n return key; \n }", "public void setKey(String key) {\n this.key = Args.notBlank(key, \"key\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ambiguity is not allowed
public static void main(String[] args) { int minDistanceJump = Jumpable.MIN_DISTANCE; }
[ "public boolean isAmbiguous(String phrase);", "public String disambiguate() {\n\t\treturn null;\n\t}", "protected abstract boolean checkForNameConflict(String a);", "public Resolve_AmbiguousName(String message, Tree P) {\n\tsuper(message);\n\tambiguousPackage = P;\n }", "@Override\n public void report...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 64: / 65:
public String limpiar() /* 66: */ { /* 67: 74 */ return null; /* 68: */ }
[ "long ord();", "public static void main(String[] args) {\n\tfor(int i=1;i<=26;i++){\n\tchar\tletter= (char) (64+i);\n\t\tSystem.out.print(letter+\"\"+i);\n\t\t\n\t\t\n\t}\n\t\n\t\n\t\n\t\n\t\n}", "private boolean esIdClase(char c) {\n\t\treturn c > 64 && c < 90;\n\t}", "private static char[] m7963z(String str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Should verify if there are any physical faults with the Rover, broken sensors etc.
private void checkRoverFault() { // Dummy method for Rover faults. // Since the Rovers are in a simulator, they can't physically break in any way. }
[ "private synchronized boolean checkIfArmIsFaulted() {\n\n\t\tboolean armSensorPresent = mArmMotor.getSensorCollection().getPulseWidthRiseToRiseUs() != 0;\n\t\t//armSensorPresent = true;\n\n\t\tErrorCode errorCode = mArmMotor.getLastError();\n\t\tif (errorCode != ErrorCode.OK) {\n\t\t\tConsoleReporter.report(\"Error...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }