query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method is always running in the thread so the server is always receiving and sending messages
@Override public void run() { try { // checks to see if a message is received from the client while ((message = in.readLine()) != null) { displayArea.append(message + "\n"); // display the server it on the server String parts[]; // stores the divided message // checks to see if...
[ "@Override\r\n\tpublic void run() {\r\n\t\tSystem.out.println(\"*** Server Broadcasting Thread Started! ***\");\r\n\t\twhile(true){\r\n try{\r\n JSONObject message = outMessages.take();\r\n for(ServerSender clientConnection : clientList){\r\n \tclientConnectio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set accessor for persistent attribute: firstName
public abstract void setFirstName(java.lang.String newFirstName);
[ "public void setFirstName(String fName) { firstName = fName; }", "@Override\n public void setFirstName(String first) {\n firstName = first;\n }", "public void setFirstName(String fn)\n {\n name.firstName = fn;\n }", "public void setFirstName(String newFirstName) {this.firstName = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To get the Browser type for the test
public static String getBrowserName() { return props.getString("Browser").toUpperCase(); }
[ "public DriverType getBrowser() {\n\t\tString browserName = properties.getProperty(\"browser\");\n\t\tif(browserName == null || browserName.equalsIgnoreCase(\"chrome\")) return DriverType.CHROME;\n\t\telse if(browserName.equalsIgnoreCase(\"firefox\")) return DriverType.FIREFOX;\n\t\telse if(browserName.equalsIgnore...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by wen on 2018/5/7.
public interface LoginContract { interface View extends BaseView<Presenter> { } interface Presenter extends BasePresenter { boolean isEmailValid(String email); boolean isPasswordValid(String password); void loginTask(LoginActivity activity, FirebaseAuth auth, String email, Str...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
OnResume resetting to previously left state of step_detector layout Author: Paras Bansal
protected void onResume() { super.onResume(); intent = new Intent(this, StepCountingService.class); viewInit(); }
[ "protected void onResume() {\n super.onResume();\n mSensorManager.registerListener(this, mStepDetectorSensor, SensorManager.SENSOR_DELAY_FASTEST);\n }", "@Override\r\n public void onResume(){\n this.overridePendingTransition(R.anim.fromleft, R.anim.toleft);\r\n super.onResume();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extend the given editor component with all current and future registered extensions. All extensions will be removed when the editor component is disposed.
void extend(@NotNull EditorComponent editorComponent);
[ "void extendEditor(WorkflowEntity entity, Frame screen) throws WorkflowException;", "public abstract IEditorPart tweakEditor(Object editorContribution);", "public void refreshContentExtensions() {\n final Iterator<Node> iterator = this.contentExtensionToolBar.getItems().iterator();\n Node child;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column ml_name_list.PHONE_NUMBER
public String getPhoneNumber() { return phoneNumber; }
[ "@AutoEscape\n\tpublic String getPhone_Number();", "public static String phoneNumber_id() {\n\t\treturn moduleProvider.get().phoneNumber_id;\n\t}", "public String getPhoneNumber() {\n return (String) getAttributeInternal(PHONENUMBER);\n }", "public String getPhoneNumber() {\n return phoneNumber...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Return type fixed from 'java.lang.Object' to match base method
@Override // android.os.Parcelable.Creator public VKApiPhotoSize createFromParcel(Parcel parcel) { return new VKApiPhotoSize(parcel, null); }
[ "@Override\r\n\tpublic Class<Object> returnedClass() {\r\n\t\treturn Object.class;\r\n\t}", "public abstract T mo14164b(Object obj);", "public Object object() { return obj; }", "@Override public TypeObj all_type() { return _funret._obj; }", "Object mo6179a(Object obj);", "public T object() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the index of the first hit that should be returned.
@JsonGetter("fromIndex") public Integer fromIndex() { return this.fromIndex; }
[ "int index(){\n if(cursor != null){\n return index;\n }else{ // otherwise returns -1.\n return -1;\n }\n }", "public int getStartIndex() {\n return pdbIndices.get(0); // XXX ?\n }", "public int getSearchedIndex()\r\n\t{\r\n\t\treturn searchedIndex;\r\n\t}", "Object getIndex();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invocado por los clientes para cortarse el pelo
public void cortarPelo(){ enter(); if (ocupado) colaClientes.await(); if (durmiendo) { System.out.println("Despierte, barbero"); durmiendo=false; despertador.signal(); } ocupado=true; System.out.println("Me estan cortando el pelo"); ...
[ "public void apostarCliente() {\n\t\tpanelApuestas.desabilidarCaballo();\n\t\tnombreC=obtenerNombre();\n\t\tapuestaC=obtenerApuesta();\n\t\t\n\t\tString[] a= new String[] {nombreC,apuestaC };\n\t\tapostar(a);\n\t\tpanelCarrera.ponerNombre(nombreC);\n\n\t\t}", "public void opcion6()\n {\n System.out.prin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find records that have creation_date IN (values) asynchronously limited by the given limit
public Single<List<com.dovaleac.guessing.game.jooq.jklingsporn.generated.tables.pojos.AccountingSystem>> findManyByCreationDate(Collection<OffsetDateTime> values, int limit) { return findManyByCondition(AccountingSystem.ACCOUNTING_SYSTEM.CREATION_DATE.in(values),limit); }
[ "public Future<List<cn.vertxup.integration.domain.tables.pojos.IDirectory>> findManyByCreatedAt(Collection<LocalDateTime> values, int limit) {\n return findManyByCondition(IDirectory.I_DIRECTORY.CREATED_AT.in(values),limit);\n }", "public Future<List<cn.vertxup.ambient.domain.tables.pojos.XC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int deleteOneCourse(int courseid) { return tCourseMapper.deleteByPrimaryKey(courseid); }
[ "@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" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(final LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.navigation_bar_main, container, false); view.findViewById(R.id.button_goto_info).setOnClickListener(new View.OnClickListener() { @Ove...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the shared instance
public static OrbPlugin getDefault() { return plugin; }
[ "public Object getInstance() {\n\t\treturn this.instance;\n\t}", "public static Common getInstance() {\n \t\treturn instance;\n \t}", "public static synchronized Instance getInstance() {\n return instance;\n }", "public static singleton getInstance(){\n\t\t return instance;\n\t\t }", "public stat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a Layer 3 (IP) address in a port to node definition
public void setL3Address(String address, boolean ipv6){ Element portElem = new Element("port", this.psNS.TOPO_L3); Element addrElem = new Element("address", this.psNS.TOPO_L3); addrElem.setAttribute("type", (ipv6?"ipv6":"ipv4")); addrElem.setText(address); portElem.addContent(addrElem); this.nodeElem.addCo...
[ "public void addThirdNode(String ip) {\n\t\t\n\t\tNodeTableRecord record = new NodeTableRecord(ip, 2863311530L, 4294967295L, \"\", \"\");\n\t\tthis.table.getTable().add(record);\n\t\t\n\t\ttry {\n\t\t\tthis.table.writeNodeTable();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void addLan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asserts liveliness of writers, whose QosLiveliness kind is MANUAL_BY_PARTICIPANT.
public void assertLiveliness() { livelinessManager.assertLiveliness(); }
[ "@Test\n\tpublic void levelOfWriterBelowMinimumLevel() {\n\t\tConfiguration.set(\"writer\", \"console\");\n\t\tConfiguration.set(\"writer.level\", \"trace\");\n\n\t\tCollection<Writer>[][] writers = ConfigurationParser.createWriters(emptyList(), Level.INFO, false);\n\n\t\tassertThat(writers).hasSize(2).allSatisfy(e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 day = 4;
public Builder setDay(int value) { bitField0_ |= 0x00000008; day_ = value; onChanged(); return this; }
[ "public void setDay(int day){this.day = day;}", "public int getDay()\r\n { return day; }", "public void setDay(java.lang.Integer value) {\n this.day = value;\n }", "public String getDayn(){return dayn;}", "public void setDay(int d)\n {\n day = d;\n }", "com.bol.protojx.xsdtypes.ProtoMessag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
call delete employee method
@GetMapping("/deleteEmployee/{id}") public String deleteEmployee(@PathVariable (value = "id") long id) { this.employeeService.deleteEmployeeById(id); return "redirect:/admin"; }
[ "public void deleteEmployee(Employee e){ \n\t template.delete(e); \n\t}", "public void delete(int employeeId) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(Long employeeId) {\n\r\n\t}", "@Override\npublic void deleteEmployee(Employee emp) {\n\t\n}", "public void deleteEmployee() \n\t{\n\t\tSystem.o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
res is going to store value of 1 ^ 2 ^ 3 .. ^ (n1) ^ arr[0] ^ arr[1] ^ .... arr[n1]
static int findRepeating(int arr[], int n) { int res = 0; for (int i = 0; i < n - 1; i++) res = res ^ (i + 1) ^ arr[i]; res = res ^ arr[n - 1]; return res; }
[ "public static void main(String args[] ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int arr[]= new int[2*n+1];\n for(int i=0;i<arr.length;i++){\n arr[i] =sc.nextInt();\n }\n int temp=0;\n Arrays.sort(arr);\n fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FIXME check this code
public String getMonthYear() { return MonthYear; }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "protected void method_5557() {}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "protected void m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sort By Add Time 99 to 1
public List<Product> getProductListSortByLast(){ return productDao.queryBuilder() .orderDesc(ProductDao.Properties.Time) .list(); }
[ "public void reorderByTime() {\r\n ArrayList<Command> tempA = new ArrayList<Command>();\r\n ArrayList<Integer> tempB = new ArrayList<Integer>();\r\n for (Command c:commands) {\r\n //System.out.println(c);\r\n if (tempB.contains((int)c.getParameter(0))==false)\r\n tempB.add(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the users that are in a GroupIndustrial, base on the ID
public List<User> findUsersByGroup(Integer groupId);
[ "@Override\r\n\t\tpublic List<Integer> getUseridbygroupid(String id) {\n\t\t\treturn userDao.getUseridbygroupid(id);\r\n\t\t}", "List<User> getInvites(Group group);", "@Override\r\n\t public List<OaKfbUser> getUserByGroup(Integer groupid) {\n\t\treturn userMapper.selectByGroup(groupid);\r\n\t}", "List<GroupUs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
////////////////////////////////////TEAM B/////////////////////////////////////////// //////////////////////////RUNS TEAM B////////////////////////////////////////// Displays the runs for Team B.
public void displayRunsForTeamB(int runsTeamB) { TextView runsView = (TextView) findViewById(R.id.team_b_runs); runsView.setText(String.valueOf(runsTeamB)); }
[ "public void teamBOneRun(View v) {\n teamBRuns += 1;\n displayForTeamB(teamBRuns, 1);\n }", "public void teamATwoRun(View v) {\n teamARuns += 2;\n displayForTeamA(teamARuns, 1);\n }", "String showRuns() {\n StringBuilder sb = new StringBuilder();\n for (PlanRun ru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method update the connections by key and value
public boolean updateConnection(int id,String key,String value){ boolean isUpdate = false; String query = "update "+TABLE_NAME+" set" +" "+key+"=? where "+COLUMN_ID+"=?"; try { connection = new DBConnection(); if(connection.getConnection() !=...
[ "public void updateConnection();", "private void setAuxConnectionPoints(String connection, Map<String, LinkedList<String>> mapConnections,\r\n\t\t\tString instanceName, Map<String, LinkedList<String>> connectionConnPointMap) {\r\n\t\tfor (String intConn : mapConnections.keySet()) {\r\n\t\t\t// System.out.println(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Incremente em uma unidade a quantidade de integrantes do grupo
public void setLimitIntegrantes() { this.limitIntegrantes++; }
[ "public void increaseQuantity()\n\t{\n\t\tthis.quantity=this.quantity+1;\n\t}", "public void increment(int amount);", "public void increment() {}", "public void incProductCount()\n {\n ProductCount++;\n }", "public void increment() {\n count += step;\n }", "public void incr() {\r\n\t\tthis.value+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Guess who might follow whom, from evidence found in tweets.
public static Map<String, Set<String>> guessFollowsGraph(List<Tweet> tweets) { Map<String, Set<String>> followGraph = new HashMap<String, Set<String>>(); Set<String> mentions, previous; String user; for (Tweet twt: tweets) { user = twt.getAuthor().toLowerCase(); mentions = Extract....
[ "public static Set<String> getMentionedUsers(List<Tweet> tweets) {\n\t\t// throw new RuntimeException(\"not implemented\");\n\t\tint i = 0, j = 0;\n\t\tboolean flag = false;\n\t\tSet<String> mentionedUsers = new HashSet<String>();\n\t\tStringBuffer mentioned = new StringBuffer();\n\t\tfor (i = 0; i < tweets.size();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns max, if x > max, min, if x < min, else x.
public static int clamp(int x, int min, int max) { if (x < min) return min; else if (x > max) return max; else return x; }
[ "public static int clamp(int value, int min, int max)\r\n/* 87: */ {\r\n/* 88:109 */ if (value < min) {\r\n/* 89:110 */ return min;\r\n/* 90: */ }\r\n/* 91:112 */ if (value > max) {\r\n/* 92:113 */ return max;\r\n/* 93: */ }\r\n/* 94:115 */ return value;\r\n/* 95:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void addAnnounce(Announce announce) { Session session=sessionFactory.getCurrentSession(); Transaction tx=session.beginTransaction(); session.save(announce); tx.commit(); }
[ "@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" ] ] } }
Intialize the authentification client from JRAW
public void initializeAuth(){ RedditClient reddit = new RedditClient(UserAgent.of("installed app", "com.squirrel.justrread", "v0.1", BuildConfig.USER_NAME)); reddit.setLoggingMode(LoggingMode.NEVER); mRedditTokenStore = new RedditTokenStore(this); //initialize Authentification manager ...
[ "private OauthClientInitializer()\n {\n\n\n this.serviceAccountUserId = \"CiscoUCServiceAccount\";\n this.serviceAccountPassword = \"|%a{!5w%N6sG:>~2f5M66HgJ56uXewGU\";\n this.scope = \"Identity:SCIM ciscouc:admin\";\n this.cisHost = \"https://idbroker.webex.com/idb\";\n this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void mouseReleased(MouseEvent e) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
vm args: verbose:gc Xmx20M Xms20M Xmn10M XX:+PrintGCDetails XX:SurvivorRatio=8 XX:+UseConcMarkSweepGC output logs: first allocation [GC (Allocation Failure) [ParNew: 6295K>497K(9216K), 0.0046935 secs] 6295K>4595K(19456K), 0.0047354 secs] [Times: user=0.01 sys=0.00, real=0.00 secs] second allocation third allocation [GC...
public static void main(String[] args) { long start = System.currentTimeMillis(); for(int i=0; i<1000; i++){ byte[] firstAlloc = new byte[_1M * 4]; System.out.println("first allocation"); byte[] secondAlloc = new byte[_1M * 4]; System.out.println("second...
[ "public void cGC() {\n }", "public static void main(String[] args) {\n\t\t\t\tgarbageTest();\n\t\t\t\t//System.gc()\n\t\t\t\t//RunTime.getRunTime().gc()\n\t\t\t\tSystem.gc();\n\t\t\t}", "private static void runGC () throws Exception\r\n {\r\n // for whatever reason it helps to call Runtime.gc()\r\n /...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Checks to see if the dealer or the player wins and prints the appropriate line.
public double checkWin(Hand dealerHand, Hand playerHand){ double payout; double bet; int playerPoints; int dealerPoints; bet=playerHand.getBet(); playerPoints = playerHand.getHandPointValue(); dealerPoints = dealerHand.getHandPointValue(); if(playerHand....
[ "public void printdealerWin()\n\t{\n\t\tSystem.out.println(\"Dealer won this hand with higher hand you lost\");\n\t}", "private void decideWinner() {\n\n if (player1Choice.equalsIgnoreCase(\"rock\") && player2Choice.equalsIgnoreCase(\"scissors\")){\n System.out.println(\"Player Wins!!!\\n\\\"Roc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function that displays the information about the failure in achieving the number of replication degree for a certain chunk number.
public static void chunkRepDegNotAccepted(int chunkNo, int stored){ System.out.println(stored + " Replication Degree not pleased for chunk number " + chunkNo); }
[ "private void displayFailure() {\r\n\t\tSystem.out.println(\"There is no nQueens solution for n = \" + n);\r\n\r\n\t}", "int getRecoverMessagesChunk();", "@Test\n public void testLaterChunkFailure() throws Exception {\n // choose a blob with two chunks, first one will succeed and second will fail.\n requ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save form information to the database
public void save() { // Either create a new instance of use existing instance Customer customer = selectedCustomer == null ? new Customer() : selectedCustomer; customer.setFirstName(txtFirstName.getText()); customer.setLastName(txtLastName.getText()); customer.setEma...
[ "private void saveForm() {\n updateData();\n \n /* Update item (DB) */\n ManagementSystemUI.msDB.appointment.get(appoint.index).copy(appoint);\n\n /* Update item (visually) */\n ManagementSystemUI.appointmentsList.set(appoint.index, appoint.toString());\n\n /* Close ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor. PlainDocument is prepared.
public SwingLogHandler() { this(new PlainDocument()); return; }
[ "public XMLDocument() {\r\n\t}", "public BasicDocument()\n/* */ {\n/* 59 */ this(PTBTokenizer.factory());\n/* */ }", "public DocumentWrapper(Document.NlpDocument document) {\n document_ = document;\n }", "public QSimpleDoc() {\n super(SimpleDoc.class);\n }", "public QueryDocum...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if the system has been configured to grant all requested mutual exclusion mutexes and database locks without regard for their actual availability. This method may be called at any time during the life of the application.
public boolean getNoLocking() { return noLocking; }
[ "private boolean allowWriteLock() {\n return activeReadLocks == 0 && activeWriteLocks == 0;\n }", "boolean hasExclusiveLock();", "public boolean isLocksSupported() {\n\t\treturn this.provider.isLocksSupported();\n\t}", "protected boolean canGetInstantaneousLocks()\n\t{\n\t\treturn !forUpdate;\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Three roles: LabAssistant, Doctor, Admin
public static Business configure(){ Business business = Business.getInstance(); AdminOrganization adminOrganization = new AdminOrganization(); DoctorOrganization doctorOrganization = new DoctorOrganization(); LabOrganization labOrganization = new LabOrganization();...
[ "abstract public String getRole();", "public String getRole() { return role; }", "public void setRole(Role role){ this.role = role; }", "public Role getRole();", "private void setRole() {\n\n\t}", "public interface Admin {\n \n /**\n * Defines the different roles in the system\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the common messaging concrete impl string.
public String getCommonMessagingConcreteImplStr() { return commonMessagingConcreateImplStr; }
[ "public java.lang.String getImplementation() {\r\n return this._implementation;\r\n }", "String getImplName();", "@Override\n public final String getImplementationName() {\n return getClass().getName();\n }", "String getMessageString();", "public java.lang.String getImplementingClassN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { popAllFragmentsExceptTheBottomOne(); Fragment NotificationSettingFragment = new NotificationSettingFragment(); getFragmentManager().beginTransaction().replace(R.id.fragmentRoot, NotificationSettingFragment, "NotificationSettingFragment").commit(); /*FragmentT...
[ "@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" ] ] } }
Constructor, call the superclass constructor with the Charset object and the encodings sizes from the delegate encoder.
NHCEncoder(Charset cs, CharsetEncoder baseEncoder) { super(cs, baseEncoder.averageBytesPerChar(), baseEncoder.maxBytesPerChar()); // We want to override the behaviour on seeing unmappable character input so // that we can do the mapping ourselves baseEncoder.onUnmappableCharacter(CodingErrorAction.REP...
[ "public CharSequenceInputStream(CharSequence cs, Charset charset) {\n/* 100 */ this(cs, charset, 2048);\n/* */ }", "public JSONEncoderCharset(Charset charset) {\n\t\tthis( charset, 8192 );\n\t}", "private JavaCharSet() {}", "public CharsetEncoder initialValue() {\n CharsetEncoder newE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//////////////////////////////////////////////// for 4th level Get code bycode 4 th string [ ].
@NonNull public String[] getCodeBycode4th(String zerolvlcode, String onelvlcode, String twolvlcode, String threelvlcode, String date, String propertyId, String level){ dbClient.Open(); Cursor c; if(statusMultiPart){ if(checkPreviousMiltiSceen.equalsIgnoreCase("0")) { ...
[ "private String getCode() {\n String r = \"[\";\n int paranteze = 1;\n while (paranteze > 0) {\n r += code.charAt(count);\n if (code.charAt(count) == '[') {\n paranteze++;\n } else if (code.charAt(count) == ']') {\n paranteze--;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Object getItem(int position) { return listData.get(position); }
[ "@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" ] ] } }
Raises an event to indicate the model has changed
private void indicateAddressBookChanged() { raise(new AddressBookChangedEvent(versionedAddressBook)); }
[ "@Override\n\tprotected void onModelChanged()\n\t{\n\t\tsuper.onModelChanged();\n\t}", "public void modelChanged(ModelChangeEvent aEvent) {\r\n \t\t// TODO Auto-generated method stub\r\n \r\n \t}", "public void notifyModelEvent(ModelEvent event);", "public void modelChanged() {\n\t\tformatMgr.modelChanged(thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prepare graphics context before drawing the prerendered view of the coordinate system. Does nothing but will be used in subclasses.
protected void prepare(Graphics g) {}
[ "@Override\n\tpublic void preparePaint() {\n\t}", "public void prepare() {\n\t\t\n\t\t//test which triangles are in front of each other\n\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\t\n\t\t//clear the color\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT|GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glClearColor(0, 0, 0, 1);\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<ContractDetailTO> findMpsCheckList(String startDate,String endDate) { return businessApplicationService.findMpsCheckList(startDate,endDate); }
[ "@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" ] ] } }
AppointmentSlot specific fields set below
public void fromDto(AppointmentSlot apptSlot) { this.setStartDate(apptSlot.getStartDate()); this.setEndDate(apptSlot.getEndDate()); // Type are in every entity though, in this case, named to AppointmentSlot this.setApptSlotState(apptSlot.getStateKey()); // Add attributes individu...
[ "public void setTimeslot(String timeslot){\n this.timeslot = timeslot;\n }", "private void setTimeSlot() {\n\t\tarrayListTimeSlot= new ArrayList<TimeSlot>();\n\t\t\n\t\tTimeSlot timeSlot = new TimeSlot(\"Select Time Slot\",\"3\");\n\t\tarrayListTimeSlot.add(timeSlot);\n\t\t\n\t\ttimeSlot = new TimeSlot(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Comments cannot appear inside direct element/attribute constructors. comment .
@org.junit.Test public void k2DirectConElemAttr28() { final XQuery query = new XQuery( "<foo attr=\"value\" (:comment:) attr2=\"value\" />", ctx); try { result = new QT3Result(query.value()); } catch(final Throwable trw) { result = new QT3Result(trw); } finally { query.cl...
[ "public Property_Comment()\n\t{\n\t\tthis(\"\");\n\t}", "public Comment() {\n\t\t\n\t}", "public AnnotationNode(int paramInt, String paramString) {\n/* 119 */ super(paramInt);\n/* 120 */ this.desc = paramString;\n/* */ }", "public Comment(){\n\n }", "private Attributes() {}", "AnnotatedEl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generic long aggregator. Type support is currently limited by the currently available primitive friendly consumers.
@Beta public interface LongAggregator extends LongConsumer { default void add(long item) { accept(item); } default void addAll(long... values) { for (long v : values) { accept(v); } } default void addAll(LongStream longStream) { longS...
[ "PrimitiveTypeLong createPrimitiveTypeLong();", "Long longValue();", "abstract long\tlongValue();", "@Override\r\n public void visit(LongValue arg0) {\n\r\n }", "public T addLong(K name, long value)\r\n/* 307: */ {\r\n/* 308: 353 */ return add(name, this.valueConverter.convertLong(value));\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Encode the given string to be URL safe.
private static String encode(String toEncode, String format) { try { return URLEncoder.encode(toEncode, format); } catch (UnsupportedEncodingException e) { return toEncode; } }
[ "private String urlEncode(String s)\n\t\t{\n\t\t\treturn s;\n\t\t}", "private static String urlEncode(String s) {\n try {\n return URLEncoder.encode(s, OAuthConstants.UTF_8_STRING).replaceAll(\"\\\\+\", \"%20\");\n } catch (UnsupportedEncodingException e) {\n throw new IllegalA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jSeparator1 = new javax.swing.JSeparator(); jScrollPane1 = new javax.swing.JScrollPane(); table = new javax.swing.JTable(); op...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wait for an element to become visible, failing if it does not.
public static void assertBecomesVisible(String msg, WebElement element, WebDriverWait wait) { try { wait.until(ExpectedConditions.visibilityOf(element)); } catch (TimeoutException e) { throw new AssertionError(msg, e); } }
[ "public void waitForVisible(PageElement element);", "protected void waitForVisibilityOfElement(WebElement element) {\n\t\tdriverWait.until(ExpectedConditions.visibilityOf(element));\n\t}", "public static void waitElementVisibility(WebElement element) {\n\t\tgetWait().until(ExpectedConditions.visibilityOf(elemen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column complain.info
public String getInfo() { return info; }
[ "@Override\n\t\t\tpublic String getInfo() {\n\t\t\t\treturn err.getMsg() + normal.getMsg();\n\t\t\t}", "@AutoEscape\n\tpublic String getMessageInfo();", "@Override\n public String getInfoMessage()\n {\n return super.getInfoMessage();\n }", "public String getInformaci() {\n\t\tif (this.informat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Devuelve la instancia de la clase.
public GestorCompras dameInstancia(){ if (_instancia == null){ // Intenta cargarlo de los datos almacenados _instancia = (GestorCompras) AyudantePersistencia.dameInstancia().recuperayVigila( versionTID); // Si no ha funcionado if (_instancia == null) { _instancia = new GestorCompras(); ...
[ "public Castle(){}", "private manejadorInstituto() {}", "public Curso(){\n \n }", "public Cachorro() {\r\n }", "public Direccion() {\n\t\t\n\t}", "private Registro() {\n\t}", "public Prodavac() {\n\t}", "public Parkiralista() {\n\n }", "private SingleClass(String name) {\n thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: langs is not intuitive at all. If there is a feature set, we need to use booleans, maybe wrapped into a class "LangFeatures"
public void setExplicitObjectSet(String langs, int line) { Token token = doc.getTokenListForLine(line); boolean found = false; Token prev = null; Token prevToPrev = null; String name = ""; String fullClassName = ""; for (; token != null && token.type != 0; token = token.getNextToken()) { if (token.type...
[ "proto.LanguageSupportOrBuilder getLanguageSupportsOrBuilder(\n int index);", "public interface LangOps {\n\tpublic String getRefreshSuccess();\n\tpublic String getLocateSuccess();\n\tpublic String getNo_Input();\n\tpublic String getNetError();\n\tpublic String getGPSNotFound();\n\tpublic String getCityNotFo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main Processing logic will be carried in this method. This method finds/sends the packaging information along with the amout for the given quantity.
public String processInput(Map<String, Item> receivedList, String inputItem, int input, Map<Integer, Integer> data) { BackeryLogger.log(Level.INFO, "Finding the packaging structure for the selected itemcode " + inputItem + " with the quantity " + input); List<Float> eachPackPrice = new ArrayList(); ...
[ "public void deliverProduct()\n {\n System.out.println(\"Deliver a quantity of product\");\n System.out.println();\n\n System.out.println(\"Enter the ID of the product\");\n String number = input.getInput();\n\n int id = Integer.parseInt(number);\n\n System.out.println( ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO add your handling code here:
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tprotected void handleResponse(Response response) {\n\n\t}", "@Override\n protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int dec_insert(BoardDto dto) { return dao.dec_insert(dto); }
[ "@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" ] ] } }
extract email and reset password
@Override public void onClick(DialogInterface dialog, int which) { String mail = resetMail.getText().toString().trim(); fAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() { @Override ...
[ "void sendPasswordRecoveryEmailTo(String email);", "void sendPasswordResetMail(String destinationEmail, PasswordResetRequest passwordResetRequest);", "String getTextEmail();", "void sendPasswordReset(Context context, String email, FirebaseAuth mAuth, onSubmitListener onSubmitListener);", "void sendPasswordR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BA.debugLineNum = 158;BA.debugLine="Sub Activity_Resume"; BA.debugLineNum = 160;BA.debugLine="End Sub";
public static String _activity_resume() throws Exception{ return ""; }
[ "public String _prevm_click() throws Exception{\n_movedate((int) (-1),(int) (0));\n //BA.debugLineNum = 381;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _listabel_click() throws Exception{\nanywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(\"thlefona\"));\n //BA.debugLi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test of method convertValue(): happy day.
public void testConvertListOfBBEnum() { PropertyChoice prop = this.createChoiceProperty( "<property name=\"test\" enum=\"org.rapidbeans.domain.org.Country\"" + " multiple=\"true\"/>"); List<Country> list1 = new ArrayList<Country>(); list1.add(Country.england); list1.add(Country.austria); list1.add(Country...
[ "boolean hasConvertedValue();", "net.badata.protobuf.converter.proto.ConverterProto.FieldConverterTest getFieldConversionValue();", "private void testConvert(BigDecimal value, String sourceCurrency, String destCurrency, String destRate, BigDecimal expectedValue) {\n // Given a response returned from the ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void onTestStart(ITestResult result) { test=extent.createTest(result.getMethod().getMethodName()); }
[ "@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 function implements the query for the adding patient action.
public void addPatient(String name, String surname, String username, String password, int phone, String email, String address) { try { Statement stmt = conn.createStatement(); String query = "INSERT INTO Patient (PatientID, Password, Name, Surname, Phone, Email, Address) VALUES ('" + username + "', '" +...
[ "public Patient addPatient(String type, int id, String name, String title, String sex, String maritalStatus, String dob,\n String address, String sub, String postcode, String country, String hphone, String ophone,\n String mphone,String fax, String email, St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End getAttribute //////////////////////////////////////////// Specialized functions only for meeting
public String getAgendaString() throws PmpException { return getAgendaString(true); }
[ "public java.lang.String getAttribute(){\n return localAttribute;\n }", "private String getAttribute(String string) {\n\t\treturn null;\n\t}", "public Object getAttribute(String name){\n return attributes.get(name);\n }", "public Object getAttr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Searches and returns a target.
IPosition searchTarget();
[ "void searchingTarget(String target);", "public boolean findTarget()\n\t{\n\t\tboolean found = false;\n\t\t\n\t\tfor (int i = 0; i < items.size(); i++)\n\t\t{\n\t\t\tif ( !found && items.get(i).getFormattedUrl().contains(TARGET_URL))\n\t\t\t{\n\t\t\t\tresultIndex = i;\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t}\n\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int id() { return 1276; }
[ "@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" ] ] } }
Function is called when there is player move Function exits when player move is 100% complete
private void updateDb() { JSONObject info = new JSONObject(); try { info.put("player_id", player.getPlayerId()); info.put("session_id", getSharedPreferences (getString(R.string.user_info_file), MODE_PRIVATE).getString ...
[ "public void issueMove(){\n if (isPlayer[b.turn == WHITE ? 0 : 1]) {\n playerMove();\n } else {\n moveToPlay = engine.getMove();\n System.out.println(moveToPlay);\n completeMove(); // no action listener to do this\n }\n }", "void onPlayerFinished...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 26 /Coverage entropy=2.833213344056216
@Test(timeout = 4000) public void test26() throws Throwable { OutputFormat outputFormat0 = new OutputFormat(); OutputFormat outputFormat1 = OutputFormat.createCompactFormat(); outputFormat1.setNewLineAfterNTags((-1779)); outputFormat0.setNewLineAfterNTags((-1)); outputFormat0.setOmitEn...
[ "@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" ] ] } }
Use PayForPurchaseRequest.newBuilder() to construct.
private PayForPurchaseRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "public PreparePaymentRequest createPreparePaymentRequest() {\n return new PreparePaymentRequest();\n }", "public Purchase() {\r\n\t\tsuper();\r\n\t}", "private PayTotalRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the value of reportTime
public String getReportTime() { return reportTime; }
[ "public String getTimeOfReport() { return this.timeOfReport; }", "public int getReportTime() {\n return timer*60;\n }", "public Date getTime() {\n return getLatestReport().getTimeOfReport();\n }", "public double getTime() {\r\n\t\treturn this.variables.get(\"Time\");\r\n\t}", "public int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts a relative filename to an absolute one, if necessary. Returns null if the file does not exist. Uses the default directory associated with the extension of the file the standard file directory the directory of the bib file
public static File expandFilename(final MetaData metaData, String name) { int pos = name.lastIndexOf('.'); String extension = ((pos >= 0) && (pos < (name.length() - 1))) ? name .substring(pos + 1).trim().toLowerCase() : null; // Find the default directory for this field type, if ...
[ "private String makeFilenameAbsolute(String inFileName)\n \t{\n \t\t// Is it relative to this character file?\n \t\tFile pcFile = new File(thePC.getFileName());\n \t\tFile inFile = new File(pcFile.getParentFile(), inFileName);\n \t\tif (inFile.exists())\n \t\t{\n \t\t\treturn inFile.getAbsolutePath();\n \t\t}\n \t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show empty screen for no articles available.
@Override public void showNoArticles() { mArticlesView.setVisibility(View.GONE); mNoArticlesView.setVisibility(View.VISIBLE); }
[ "@Override\n public void showEmptyView() {\n\n }", "protected void showEmpty() {\n emptyMsg = getString(R.string.no_data_found);\n // set empty text\n textEmpty.setText(emptyMsg);\n\n // show the suitable empty style\n showTheEmpty();\n }", "protected void showNoResul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: See below: perhaps we should just use a HashSet
void addVersion(Version current) { int index = findVersion(current); if (index < versionLog.size() && // I wish I didn't have to test // again... versionLog.elementAt(index).equals(current)) return; versionLog.insertElementAt(current, index); /* * System.out.print("Log: "); for (...
[ "public abstract HashSet<Temp> in();", "public static void learnHashSet() {\n\n // set.forEach(System.out::println);\n Set<String> hash = new HashSet<>();\n\n hash.add(\"castle\");\n hash.add(\"bridge\");\n hash.add(\"castle\"); // Duplicate element.\n hash.add(\"moat\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Copy the AndroidManifest.xml from androidManifestFile to destinationManifestFile
protected void copyManifest() throws MojoExecutionException { getLog().debug( "copyManifest: " + androidManifestFile + " -> " + destinationManifestFile ); if ( androidManifestFile == null ) { getLog().debug( "Manifest copying disabled. Using default manifest only" ); ...
[ "Path copyManifest(Path sourceManifest) throws IOException;", "@Override\n\t\tpublic void onMergeManifest(Document result, File to) {\n\t\t\tAndroidManifestDocument manifestDocument = new AndroidManifestDocument(result);\n\t\t\tAndroidManifest manifest = sourceSet.getManifest();\n\t\t\t\n\t\t\t// TODO: Need to co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo4918a(C1902e c1902e) { AppMethodBeat.m2504i(20324); C4990ab.m7416i("MicroMsg.ExtContentProviderBase", "checkIsLogin() onSceneEnd()"); c46484b.countDown(); AppMethodBeat.m2505o(20324); ...
[ "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" ] ] } }
Push an expression onto the stack.
public void push(Expr expr) { height += expr.type().stackHeight(); stack.add(expr); }
[ "public void push()\r\n {\n emitStack.push(currentExpr);\r\n }", "public void\tpush( E x ){\n _stack.add(x);\n }", "@Override\r\n public void push(T e) {\n this.stack.add(e);\r\n }", "private void pushOperandToStack(String token) throws IllegalArgumentException {\n\n Value...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all material types related to helmet.
public static List<Material> getHelmetTypes(){ return Collections.unmodifiableList(HELMET_TYPES); }
[ "public String[] getMaterialTypeNames() {\n List list = MaterialType.findAll();\n if (list == null || list.isEmpty())\n return null;\n String materialTypes[] = new String[list.size()];\n Iterator it = list.iterator();\n int i = 0;\n while (it.hasNext()) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Cambio al otro vertice utilizado en Lazy Prim
public int other(int pVertex) { int v = getIdInicio(); int w= getIdDestino(); if(pVertex == v) { return w; } else if (pVertex == w) { return v; } else { throw new IllegalArgumentException("Illegal endpoint"); } }
[ "private Vertice(int vert) {\r\n this.vert = vert;\r\n this.adjacentes = new LinkedList<>();\r\n }", "private VerticeRojinegro Abuelo(VerticeRojinegro vertice) {\n if (vertice.padre == null)\n return null;\n if (vertice.padre.padre == null) //nos referimos...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Entry__Group__2__Impl" $ANTLR start "rule__ListType__Group_0__0" ../de.emueller.xtext.recordmapper.ui/srcgen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:4468:1: rule__ListType__Group_0__0 : rule__ListType__Group_0__0__Impl rule__ListType__Group_0__1 ;
public final void rule__ListType__Group_0__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../de.emueller.xtext.recordmapper.ui/src-gen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:4472:1: ( rule__ListType__...
[ "public final void rule__ListType__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:18560:1: ( rule__ListType__Group_0__0__Impl rule__ListType__Group_0__1 )\n // InternalOperationDsl.g:18561:2: rul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the current opened file.
@FXML private void saveCurrentFile(ActionEvent event) { IFileEditor currentFile = (IFileEditor) this.openedFiles.getSelectionModel().getSelectedItem(); if(currentFile != null) { currentFile.saveContent(); } }
[ "public static void saveOpenFile() {\n\t\tsave(openFile);\n\t}", "public void saveFile() {\n\t\ttry{\n\t\t\tFileOutputStream out = new FileOutputStream(this.saveFile);\n\t\t\tObjectOutputStream objOut = new ObjectOutputStream(out);\n\n\t\t\t//save data\n\t\t\tobjOut.writeObject(this.saveFile);\n\t\t\tobjOut.close...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int64 offset = 3;
@java.lang.Override public long getOffset() { return offset_; }
[ "long GetInt64(int index);", "long getOffsetBytes();", "long getOffsetMilli();", "int getStandardOffset();", "public abstract int getOffset();", "public int offset() { return offset; }", "protected final int calcElementOffset(long index, int mask) {\n/* 62 */ return (int)index & mask;\n/* */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Based on the configured radius gathers all nearby GeoBeaconMessages around message. Also filters by beacon uuid of message.
private Collection<GeoBeaconMessage> gatherNearbyBeaconMessages(GeoBeaconMessage message) { ArrayList<GeoBeaconMessage> list = new ArrayList<>(); for (GeoBeaconMessage geoBeaconMessage : geoBeaconMessages.getItems()) { if (!geoBeaconMessage.getBeaconUuid().equals(message.getBeaconUuid())) { ...
[ "@Override\n public void onGeoQueryReady() {\n if ( !driverFound && radius < MAX_RADIUS_SEARCH ) {\n radius++;\n getClosestDriverInRadius( latitude, longitude );\n } else if ( radius >= MAX_RADIUS_SEARCH ) {\n mMapActi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Send a message to the specified address. This function call is asynchronous since a new thread will be created and the actual send will be done inside it.
public static void send(final String address, final String data) { new Thread() { public void run() { synchronized (sendLock) { DatagramConnection dgConnection = null; Datagram dg = null; try { d...
[ "private synchronized void sendMessage(String message, HostAddress address){\n\t\ttry {\n\t\t\tSocket messageSocket = new Socket(address.getIPAddress(), address.getPort());\n\t\t\tDataOutputStream outStream = new DataOutputStream(messageSocket.getOutputStream());\n\t\t\toutStream.writeBytes(message+\"\\r\");\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the qvalue of the wide peak
public double getqValue() { return qValue; }
[ "public double getPeakVal() {return maxabs;}", "double getPeakPower();", "public double getPeakValue() {\n return model.getPeakValue();\n }", "public FloatColumn getProbPeakValue() {\n return delegate.getColumn(\"prob_peak_value\", DelegatingFloatColumn::new);\n }", "private double getMa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean moveToLast() { 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" ] ] } }
/ JADX INFO: super call moved to the top of the method (can break code semantics)
zzef(zzea zzea, boolean z) { super(zzea); this.zzadv = zzea; this.zzaed = z; }
[ "public void method_5753() {\r\n super();\r\n }", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void parentMethod() throws Exception {\n\t\tsuper.parentMethod();\r\n\t}", "@Override\n }", "protected void method_5557() {}", "protected void d()\r\n/* 49...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether a string is numeric or not.
public static boolean isNumeric(String string) { return string.chars().allMatch(t -> Character.isDigit((char) t)); }
[ "public boolean isNumeric(String string) {\n try {\n Double.parseDouble(string);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "private boolean isNumeric(String strNum) {\n try {\n double d = Double.parseDouble(strNum);\n } catch (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form.
private void initComponents() { // buttons addButton = new JButton(); addButton.setText("Add 2 and 5"); addButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addButtonActionPerformed(evt); } }); subtractButton = new JButton...
[ "public StForm() {\n initComponents();\n }", "public arithmuMainForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public Form_Main() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public FormMai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
decide whether or not this element is to be a combo or not:
public StructureMap genRandomTree(StructureMap structure, String parentModuleId) { String moduleId = UUID.randomUUID().toString(); if (random.nextBoolean() || random.nextBoolean()) { String source = randomSource(); if (structure == null) { structure = new Structur...
[ "public void habilitarCombos() {\n\t\tif (rbTipoIndicador.equals(\"1\")) {\r\n\t\t\tintTipoIndicadorGrabacion = 0;\r\n\t\t\tblnDisabledTipoIndicador = Boolean.TRUE;\r\n\t\t}else {\r\n\t\t\tblnDisabledTipoIndicador = Boolean.FALSE;\r\n\t\t}\r\n\t\t//Combo Sucursal - SubSucursal\r\n\t\tif (rbSucursal.equals(\"1\")) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Slow methods to extend an array if needed
public static String[] extendArr(String[] old) //For strings { String[] n = new String[old.length + 100]; for(int i = 0; i < old.length; i++) { n[i] = old[i]; } return n; }
[ "private void extend() {\r\n E[] updated = (E[]) new Object[data.length * 2];\r\n System.arraycopy(data, 0, updated, 0, data.length);\r\n data = updated;\r\n }", "private static int[] extendArraySize(int [] array){\n\t\tint [] temp = array.clone();\n\t array = new int[array.length + 1];...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the model has changed.
void onModelChange();
[ "@Override\n\tprotected void onModelChanged()\n\t{\n\t\tsuper.onModelChanged();\n\t}", "public void modelChanged() {\n\t\tformatMgr.modelChanged(this);\n\t}", "@Override\n\tpublic void updateModel() {\n\t}", "public void modelChanged(ModelChangeEvent aEvent) {\r\n \t\t// TODO Auto-generated method stub\r\n \r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
functia care calculeaza similaritatea cosinus pentru fiecare document in care apare cel putin un cuvant din queryul de cautare
public void VectorialSearch() { initializeSimCosVec(); for(int i=0; i<keywords.size(); i++) { for(int j = 0; j< uniqueFileList.size(); j++) { cosSimScore[j] += round((MultiplyVectors(keywords.get(i), uniqueFileList.get(j))), 4); } } for(int k=0; k<uniqueFileList.size(); k++) { ...
[ "public void AutoUpdateCosinesAlreadyPresentInTable(){\n Database db1=new Database();\n db1.setConnection(true);\n // String query1=\"select count(cosine_score) from sna_related_articles where cosine_score=0\";\n String query2=\"select main_id,related_id from sna_related_articles where co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ level 1 area setMainArea()
protected void setLeftArea() { area_left = new GridPane(); txt_name.setPrefWidth(Utility.STANDARD_TEXT_WIDTH); cmb_type.setPrefWidth(Utility.STANDARD_TEXT_WIDTH); txt_value.setPrefWidth(Utility.STANDARD_TEXT_WIDTH); area_left.setHgap(Utility.SHORT_GAP); area_left...
[ "void showTerritoryMainArea(TerritoryArea territoryArea);", "public void setControlArea(ControlArea_type4 param) {\n localControlAreaTracker = param != null;\n\n this.localControlArea = param;\n }", "public void setControlArea(ControlArea_type6 param) {\n localControlArea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for the field blockScale.
public int getBlockScale() { return blockScale; }
[ "public float getScale() {\n return this.scale;\n }", "public double getScale() {\n return _scale;\n }", "public float getScale() {\n return scale;\n }", "public double getScale() {\r\n\t\t\treturn scale;\r\n\t\t }", "public Scaler getScale() {\r\n return this.scale;\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores contacts on disk from arrayList
public void storeContactsOnDisk() { }
[ "public synchronized void saveListToDisk(ArrayList<Contact> listOfContacts) {\n try (FileOutputStream fos = new FileOutputStream(savedContacts);\n ObjectOutputStream oos = new ObjectOutputStream(fos)) {\n oos.writeObject(listOfContacts);\n log.info(\"Contact list was saved t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__SpecificDirective__Group__2__Impl" $ANTLR start "rule__SpecificDirective__Group_1__0" InternalFormat.g:6517:1: rule__SpecificDirective__Group_1__0 : rule__SpecificDirective__Group_1__0__Impl rule__SpecificDirective__Group_1__1 ;
public final void rule__SpecificDirective__Group_1__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFormat.g:6521:1: ( rule__SpecificDirective__Group_1__0__Impl rule__SpecificDirective__Group_1__1 ) // InternalFormat.g:652...
[ "public final void rule__TargetSpecificAttribute__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/antlr/internal/InternalLLVM_IR.g:7602:1: ( rule__Targ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .NewRegister new_register = 11;
public boolean hasNewRegister() { return noticeCase_ == 11; }
[ "int register();", "public void Register() {\n\t}", "public void register() {\r\n\t\t\r\n\t}", "protected void _Register ()\n {\n _Register0 (null);\n }", "public interface Register {\n}", "public long getRegister() {\r\n return register;\r\n }", "java.lang.String getRegister();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The activity/fragment behavior. This class should be used instead of creating multiple activities and fragments. It have two callbacks (instantiation and creation) for each component. There are two default implementers for the most common cases.
public interface Behavior<TActivity, TFragment> extends Serializable { String EXTRA_ARGS_KEY = Behavior.class.getName() + ".KEY"; String EXTRA_ARGS_NAME = Behavior.class.getName() + ".NAME"; int DEFAULT_REQUEST_CODE = 1777; TFragment onNewFragmentInstance(String name, Context context); Intent onNewActivityI...
[ "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tpluginFragmentActivityName = getClassName(this);\n\t\t\n\t\tif(pluginFragmentActivityName != null){\n\t\t\tclassInstance = new PluginActivityFactory().orderParams(pluginFragmentActivityName,this);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Chess board frame Start chess board frame
public Board() { initialize(); frmChess.setVisible(true); }
[ "public void Chess() {\n\r\n JFrame frame = new JFrame(\"Chess\");\r\n frame.setBackground(Color.DARK_GRAY);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n Board currentBoard = new Board();\r\n \r\n Background ui = new Background(currentBoard);\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor with 1 parameter that sets the students ID.
public BooksIssued(int cardID){ setCardID(cardID); }
[ "public Student(long setId){\r\n id = setId;\r\n name = \"\";\r\n inGroup = null;\r\n }", "Student(int id, String name, String grade){\n\n this.id=id;\n this.name=name;\n this.grade=grade;\n\n }", "public Student(String andrewId) {\n if (validateAndrewId(andrewId)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by nikolalukic on 4/10/16.
public interface SystemManagerRepository extends JpaRepository<SystemManager, Long> { SystemManager findById(long id); SystemManager findByEmail(String email); SystemManager findByEmailAndPassword(String email, String password); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }