query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
EXTRA CONSTRUCTOR TO HELP WITH TEST SAVE
public CourseWorkspace(CourseApp initApp, boolean value){ taData = new CourseTADataPane(initApp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCtor() {\r\n new FileSystemPersistence();\r\n }", "public void testCtorSuccess() {\r\n new FileSystemPersistence(10);\r\n }", "public StoreTest() {\n }", "@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}", "public Saving() {\n super();\n }", "public...
[ "0.6749058", "0.66799337", "0.66642994", "0.6626688", "0.6448768", "0.6338073", "0.6295309", "0.6286755", "0.6239353", "0.6237113", "0.62322396", "0.6227595", "0.6225034", "0.62203544", "0.6190922", "0.614067", "0.61404896", "0.6138024", "0.61278063", "0.612279", "0.60927224"...
0.0
-1
TAB GETTERS Tab taDataTab; Tab recitationDataTab; Tab scheduleDataTab; Tab projectDataTab; Tab courseDetailsTab;
public Tab getDataTab(){ return taDataTab; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tab getTab();", "public abstract String getTab();", "public String getTab()\n\t{\n\t\treturn tab;\n\t}", "private ArrayList<Tab> getTabs() {\n ArrayList<Tab> res = new ArrayList<Tab>();\n res.add(getRegisterTab());\n res.add(getRouleauTab());\n res.add(getCoinageTab());\n res.add(getBillTab()...
[ "0.7512463", "0.7208386", "0.70455265", "0.69162816", "0.69116646", "0.68990433", "0.6573083", "0.65290684", "0.6491808", "0.6476878", "0.645348", "0.6413233", "0.621531", "0.62060744", "0.6190005", "0.6177152", "0.61605006", "0.6128822", "0.609416", "0.60846084", "0.6071383"...
0.7444561
1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public void resetWorkspace() { taData.getOfficeHoursGridPane().getChildren().clear(); taData.getOfficeHoursGridTimeHeaderPanes().clear(); taData.getOfficeHoursGridTimeHeaderLabels().clear(); taData.getOfficeHoursGridDayHeaderPanes().clear(); taData.getOfficeHoursGr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}...
[ "0.77443457", "0.7373967", "0.6966467", "0.69094384", "0.67967474", "0.6772981", "0.6770611", "0.66534495", "0.6639043", "0.66233534", "0.6609316", "0.6609316", "0.6591667", "0.65871775", "0.65558785", "0.6499027", "0.64613366", "0.64500856", "0.6429774", "0.6419923", "0.6382...
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. CourseWorkspace wrkspace = new CourseWorkspace(app); CourseData appData = new CourseData(app); CourseFiles file = new CourseFiles(app); CourseStyle style = new CourseStyle(app); app.setWorkspa...
@Override public void reloadWorkspace(AppDataComponent dataComponent) { CourseData data = (CourseData)dataComponent; taData.reloadOfficeHoursGrid(data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateDataCell();", "@Override\n public void reloadGridsData() {\n \n }", "public updatedata() {\n initComponents();\n }", "private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.se...
[ "0.55666363", "0.5527532", "0.55157137", "0.5509298", "0.5494886", "0.545645", "0.5439131", "0.5412054", "0.5410779", "0.53982645", "0.53828484", "0.5380952", "0.53747606", "0.5365562", "0.5302575", "0.52892214", "0.52502793", "0.5238552", "0.52382684", "0.5233993", "0.522768...
0.7884731
0
The request builder for the CloudPcProvisioningPolicy
public CloudPcProvisioningPolicyRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { super(requestUrl, client, requestOptions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n public CloudPcProvisioningPolicyRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n return new com.microsoft.graph.requests.CloudPcProvisioningPolicyRequest(getRequestUrl(), getClient(), requestOptions);\n }", "@Deprecated\n...
[ "0.7489216", "0.5555002", "0.54567665", "0.5369088", "0.533525", "0.52426654", "0.5209425", "0.52052593", "0.51871276", "0.51560706", "0.5087507", "0.5078909", "0.5048405", "0.5038593", "0.50265396", "0.5000822", "0.49473527", "0.4870938", "0.48645392", "0.48530084", "0.48184...
0.6855426
1
Creates the request with specific requestOptions instead of the existing requestOptions
@Nonnull public CloudPcProvisioningPolicyRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { return new com.microsoft.graph.requests.CloudPcProvisioningPolicyRequest(getRequestUrl(), getClient(), requestOptions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RequestOptions() {}", "public RequestDataBuilder options() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.OPTIONS);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n ...
[ "0.68804574", "0.64238805", "0.63052243", "0.6273172", "0.60970235", "0.5978128", "0.5863807", "0.5832537", "0.58048224", "0.578", "0.5774387", "0.5727616", "0.57251215", "0.5642112", "0.5612165", "0.5587985", "0.5564291", "0.55625045", "0.55532444", "0.5520044", "0.5498049",...
0.5461478
22
Gets a request builder for the CloudPcProvisioningPolicyAssignment collection
@Nonnull public com.microsoft.graph.requests.CloudPcProvisioningPolicyAssignmentCollectionRequestBuilder assignments() { return new com.microsoft.graph.requests.CloudPcProvisioningPolicyAssignmentCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("assignments"), getClient(), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n public CloudPcProvisioningPolicyRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n return new com.microsoft.graph.requests.CloudPcProvisioningPolicyRequest(getRequestUrl(), getClient(), requestOptions);\n }", "public CloudP...
[ "0.6783773", "0.6242201", "0.58018434", "0.56260353", "0.5060759", "0.50220597", "0.47617343", "0.4604545", "0.45717803", "0.44494912", "0.4433301", "0.4378638", "0.435602", "0.43000934", "0.42971283", "0.42911217", "0.4276306", "0.42609248", "0.42511725", "0.42431033", "0.42...
0.6830679
0
Gets a request builder for the CloudPcProvisioningPolicyAssignment item
@Nonnull public com.microsoft.graph.requests.CloudPcProvisioningPolicyAssignmentRequestBuilder assignments(@Nonnull final String id) { return new com.microsoft.graph.requests.CloudPcProvisioningPolicyAssignmentRequestBuilder(getRequestUrlWithAdditionalSegment("assignments") + "/" + id, getClient(), null); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n public CloudPcProvisioningPolicyRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n return new com.microsoft.graph.requests.CloudPcProvisioningPolicyRequest(getRequestUrl(), getClient(), requestOptions);\n }", "public CloudP...
[ "0.6594717", "0.62483966", "0.6236434", "0.5647166", "0.5016503", "0.49721777", "0.46582973", "0.453152", "0.44754747", "0.4458294", "0.4446398", "0.44212157", "0.43766195", "0.4361526", "0.43468195", "0.4345619", "0.42795366", "0.42655617", "0.42502934", "0.42402086", "0.421...
0.54521054
4
Gets a builder to execute the method
@Deprecated @Nonnull public CloudPcProvisioningPolicyApplyRequestBuilder apply(@Nonnull final CloudPcProvisioningPolicyApplyParameterSet parameters) { return new CloudPcProvisioningPolicyApplyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.apply"), getClient(), null, parameters); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MethodBuilder method() {\n\t\treturn new MethodBuilder();\n\t}", "public static Builder builder(){ return new Builder(); }", "static Builder builder() {\n return new Builder();\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "public AriBui...
[ "0.7296824", "0.68669903", "0.6745313", "0.6448071", "0.6430937", "0.63872045", "0.63872045", "0.63872045", "0.63872045", "0.63824797", "0.63742065", "0.6365171", "0.6365171", "0.6365171", "0.6307005", "0.6307005", "0.6307005", "0.6307005", "0.6307005", "0.6307005", "0.630700...
0.0
-1
Gets a builder to execute the method
@Deprecated @Nonnull public CloudPcProvisioningPolicyAssignRequestBuilder assign(@Nonnull final CloudPcProvisioningPolicyAssignParameterSet parameters) { return new CloudPcProvisioningPolicyAssignRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.assign"), getClient(), null, parameters);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MethodBuilder method() {\n\t\treturn new MethodBuilder();\n\t}", "public static Builder builder(){ return new Builder(); }", "static Builder builder() {\n return new Builder();\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "public AriBui...
[ "0.7297146", "0.6868028", "0.67467064", "0.64494866", "0.6430965", "0.6388798", "0.6388798", "0.6388798", "0.6388798", "0.638167", "0.6374362", "0.6366725", "0.6366725", "0.6366725", "0.63085496", "0.63085496", "0.63085496", "0.63085496", "0.63085496", "0.63085496", "0.630854...
0.0
-1
OnGroupClick request the API for the teams of the competition clicked
private void setListenerToListView () { competitionsList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() { @Override public boolean onGroupClick(final ExpandableListView parent, View v, final int groupPosition, long id) { if (parent.isGroupExpanded(g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateTeams() {\n\n // TODO: Can't get teams assigned to judges for now. Instead, getting all teams in an event\n AsyncHttpClient client = new AsyncHttpClient();\n client.addHeader(\"Authorization\", \"Token token=\" + this.user.getToken().getAccess_token());\n client.get...
[ "0.6553649", "0.64877146", "0.63360363", "0.61827767", "0.6058564", "0.6049908", "0.599072", "0.58960056", "0.58656126", "0.58549714", "0.5841403", "0.57414675", "0.5695446", "0.5588111", "0.5583811", "0.55716693", "0.5568757", "0.55648357", "0.55584073", "0.5557294", "0.5519...
0.54834014
22
if id of team 0 is 1 or tems is empty, error message
@Override public void run() { if (finalTeamsOfCompetition.isEmpty()) { errorMessage.setText("You have no internet connection..."); errorMessage.setVisibilit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetTeam_id() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TEAM_ID_ISSET_ID);\n }", "public void setTeamId(int value) {\n this.teamId = value;\n }", "public Teams getTeamById(UUID id)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(...
[ "0.59408617", "0.59099036", "0.57671785", "0.572545", "0.5642333", "0.55612755", "0.55608034", "0.5521067", "0.5475575", "0.5473103", "0.5437601", "0.5407497", "0.539814", "0.53834075", "0.53736264", "0.5373092", "0.53319806", "0.53204966", "0.53000355", "0.5299352", "0.52908...
0.0
-1
on selecting grid view image launch full screen activity
@Override public void onClick(View v) { Intent i = new Intent(mActivity, ShowPhotoFragment.FullScreenViewActivity.class); i.putExtra("position", _postion); mActivity.startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fullscreen() {\n Intent intent = DocumentImageFullScreenActivity.newIntent( getContext(), adapter.getItems(), index );\n startActivityForResult(intent, REQUEST_CODE_INDEX);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n ...
[ "0.69229716", "0.6398272", "0.63738596", "0.63185346", "0.63127774", "0.6291033", "0.62657076", "0.6257178", "0.6230999", "0.6223114", "0.6191755", "0.6177376", "0.6177376", "0.61432064", "0.6106004", "0.61059886", "0.6087047", "0.60866755", "0.6068474", "0.60530204", "0.6047...
0.6325518
3
Return Data to MovieDao
public static ArrayList<Movie> getMoviesList(){ return movieInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MovieDao{\n\n int deleteByPrimaryKey(Integer id);\n\n int insert(Movie record);\n\n Movie selectByPrimaryKey(Integer id);\n\n /**\n * 分页查询所有\n * @return\n */\n Page<Movie> selectAllMovie();\n\n /**\n * 查询大图\n * @return\n */\n List<Movie> selectIndexMovi...
[ "0.7206781", "0.71512276", "0.7060889", "0.691282", "0.6807046", "0.678462", "0.6758986", "0.67234784", "0.6655945", "0.66135484", "0.6571964", "0.65292054", "0.65158546", "0.6513667", "0.64193404", "0.6385109", "0.6365367", "0.6322401", "0.6301895", "0.62959135", "0.6285758"...
0.5777469
80
pg 361 p[i] = price of rod of length i
@Test public void testNaive() { assertEquals(10, cuttingRod.naive(clrsArr, 4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getPricePerPerson();", "public Rod(int index, int length, double price) {\n\t\tthis.index = index;\n\t\tthis.length = length;\n\t\tthis.price = price;\n\t\tthis.priceRatio = this.price/this.length;\n\t}", "public int[] podium(){\n //TODO\n int [] pod = new int[3];\n int [] tab = Tri...
[ "0.58406174", "0.58130485", "0.57403207", "0.5681262", "0.5631466", "0.56105554", "0.5566936", "0.55294955", "0.55263096", "0.5461401", "0.53948927", "0.53630763", "0.5362794", "0.53181607", "0.5316645", "0.53036726", "0.5303008", "0.5298854", "0.5297973", "0.52921575", "0.52...
0.0
-1
SOV data uploaded successfully. 201
@Test(priority = 1) public void validePathWithValideData() { System.out.println("file "+currentDirectory); System.out.println( new File("./src/test/resources/Sovdata.xlsx")); test.log(LogStatus.INFO, "My test is starting....."); Response resp=given() .contentType("multipart/form-data") .mult...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "int uploadNdvi(File file, String project, DataDate date, DataDate updated) throws IOExce...
[ "0.6655844", "0.619615", "0.6081292", "0.60721076", "0.6071718", "0.6006021", "0.5988074", "0.591571", "0.59034705", "0.58514154", "0.57875544", "0.57407063", "0.5708425", "0.56659764", "0.56492615", "0.5623124", "0.5615437", "0.5598696", "0.5578029", "0.55760646", "0.5572397...
0.61183006
2
body is empty. 400 Should not Be Empty
@Test(priority = 3) public void emptyBody() { test.log(LogStatus.INFO, "My test is starting....."); Response resp=given() .contentType("multipart/form-data") .multiPart("product_line","") .multiPart("file", "") .post(APIPath.apiPath.POST_VALID_PATH); Assert.assertEquals(resp.getStatusCode()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }", "@Test\n public void create_400() throws Exception {\n\n // PREPARE THE DATABASE\n // No data needed in database\n\n // PREPARE THE TEST\n // No preparation ...
[ "0.6990499", "0.6735423", "0.65739185", "0.6479423", "0.6295635", "0.61287904", "0.60700107", "0.60221356", "0.6013319", "0.6009674", "0.60053706", "0.600201", "0.591323", "0.5882717", "0.5871334", "0.58668363", "0.58556086", "0.5852016", "0.58434355", "0.5833789", "0.5827946...
0.71669513
0
Invalid file formate 400
@Test(priority = 4) public void inValideFileType() throws JsonProcessingException { test.log(LogStatus.INFO, "My test is starting....."); Response resp=given() .contentType("multipart/form-data") .multiPart("product_line","testing") .multiPart("file", new File("./src/test/resources/statuscode.txt")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileFormatException() {\r\n super();\r\n }", "public InvalidFileFormatException(String message){\n super(message);\n }", "public void InvalidFormat();", "@Test (expected = IllegalArgumentException.class)\r\n\tpublic void testInvalidConsultPatientFile() {\r\n\t\tsessionController.lo...
[ "0.6453096", "0.6450557", "0.63305944", "0.5994935", "0.5954089", "0.59341687", "0.58798367", "0.5853742", "0.58268476", "0.57683086", "0.57607055", "0.5753531", "0.57483053", "0.57088524", "0.570321", "0.56385374", "0.5623305", "0.561526", "0.55859864", "0.5580935", "0.55792...
0.58929956
6
Oops some error occured, please try again. 500
@Test(priority = 6) public void internalServerError() throws JsonProcessingException { test.log(LogStatus.INFO, "My test is starting....."); Response resp=given() .contentType("multipart/form-data") .multiPart("product_line","testing") .multiPart("file", new File("./src/test/resources/Sovdata.xl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/500\")\n public void error()\n {\n throw new BadRequestException(\"500\", \"500 Internal Server Error - Threw BadRequestException.\");\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public String formInternalError() \r\n {...
[ "0.7196196", "0.69034976", "0.6729856", "0.66759616", "0.66529816", "0.65309495", "0.6504844", "0.6463977", "0.6444437", "0.6431684", "0.63271356", "0.62605923", "0.62567", "0.6230623", "0.6230623", "0.6230623", "0.6230623", "0.62295616", "0.6198924", "0.6171708", "0.616889",...
0.610439
25
204 Record not found
@Test(priority = 8) public void recordNotFound() throws JsonProcessingException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordNotFoundException() {\n super();\n }", "public boolean resourceNotFound() {\n return statusCode == 404;\n }", "@Test\n public void listAll_404() throws Exception {\n\n // PREPARE THE DATABASE\n // No data needed in database\n\n // PREPARE THE TEST\n ...
[ "0.6136412", "0.6093309", "0.60046226", "0.5967239", "0.59578925", "0.5927887", "0.5913861", "0.59094244", "0.58930516", "0.581741", "0.57966495", "0.57402104", "0.5712278", "0.57085115", "0.5690908", "0.5686446", "0.5660118", "0.5623425", "0.5580342", "0.55780613", "0.557579...
0.6308017
0
Collect local statistics into global, update UI, etc... / "Dummy message" je sprava ktora sa prida a ihned odoberie do frontov v simulacii aby sa bral pre statistiky cas ukoncenia replikacie nie poslednej zmeny daneho frontu, ktory moze byt pre registraciu napriklad aj o hodiny, co je samozrejme zle. Start of dummy mes...
@Override public void replicationFinished() { MyMessage dummyMessage = new MyMessage(this); registration().getQueue().enqueue(dummyMessage); registration().getQueue().dequeue(); examination().getQueue().enqueue(dummyMessage); examination().getQueue().dequeue(); va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles =...
[ "0.61105376", "0.6088595", "0.6013059", "0.579891", "0.5796396", "0.5728843", "0.5713546", "0.5708153", "0.56492543", "0.5644731", "0.5616745", "0.55919135", "0.5568473", "0.5560956", "0.55534935", "0.55298", "0.5527166", "0.55172426", "0.5504671", "0.550084", "0.5498474", ...
0.0
-1
meta! userInfo="Generated code: do not modify", tag="begin"
private void init() { setModel(new Model(Id.model, this, null)); setEnviroment(new Enviroment(Id.enviroment, this, model())); setVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model())); setCanteen(new Canteen(Id.canteen, this, vaccinationCenter())); setRegistration(new Registration(Id.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected MetadataUGWD() {/* intentionally empty block */}", "public static void generateCode()\n {\n \n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void saveBeforeJavadoc() { }"...
[ "0.6115262", "0.61062646", "0.6064173", "0.6010268", "0.6003994", "0.6003994", "0.5834921", "0.58111787", "0.5777371", "0.5734301", "0.5734301", "0.57083005", "0.5692401", "0.5691995", "0.5687991", "0.567739", "0.56534255", "0.5649807", "0.5639037", "0.56241244", "0.55855614"...
0.0
-1
/ Returns GSP Plan Price and SKU
@Override public Map<String, String> getGSPData(String type, int term, float price) throws DataAccessException { return getJdbcTemplate().queryForObject(selectQuery1, new Object[] {type, new Integer(term), new Float(price), new Float(price) }, new RowMapper<Map<String, String>>() { @Override publi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBSCA_PrintPrice2();", "double purchasePrice();", "private String getShippingPrice(Document item) {\n String result;\n result = item.select(\"span[class^=shippingPrice]\").html();\n return result;\n }", "String getPrice();", "double getPrice();", "double getPrice()...
[ "0.6713851", "0.6627117", "0.647961", "0.6474927", "0.6373539", "0.6373539", "0.6373539", "0.633618", "0.633618", "0.631341", "0.6278611", "0.62496257", "0.6197251", "0.6188831", "0.61695033", "0.61293983", "0.6120431", "0.6119823", "0.61052144", "0.60939753", "0.60929894", ...
0.0
-1
Exportar un Reporte a pdf
public void BotonExportarPDF(String nomRep) { //ABRIR CUADRO DE DIALOGO PARA GUARDAR EL ARCHIVO JFileChooser fileChooser = new JFileChooser(); fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("todos los archivos *.PDF", "pdf", "PDF"));//filtro para ver solo archivos .pdf ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "public void btnGenerarReporteDestruccionPDF() {\n try {\n byte[] b...
[ "0.72681844", "0.7257732", "0.7022867", "0.7003344", "0.67384005", "0.67281574", "0.6684342", "0.6680598", "0.66163707", "0.6596282", "0.6541798", "0.6528731", "0.6487666", "0.6462931", "0.6447881", "0.6428803", "0.6412894", "0.6392638", "0.6390821", "0.63812023", "0.6363822"...
0.73548883
0
REPORTE CON UN LOGO
public void reportLogo(String nomRep, String nomlogoiReport, String logo, String tituloReport) { try { Connection connection = Conexion.getInstance().getConnection(); Map parame = new HashMap(); String rta = System.getProperties().getProperty("user.dir") + "/src/reportes/" + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crear...
[ "0.66968834", "0.66172665", "0.6240081", "0.61463785", "0.6038681", "0.5975682", "0.59250325", "0.5895157", "0.58730364", "0.5806289", "0.5802926", "0.5761149", "0.5745778", "0.5739715", "0.57236797", "0.5715126", "0.569077", "0.5663443", "0.565576", "0.5635391", "0.5635035",...
0.0
-1
pega o usuario e senha escrito na tab
public void actionPerformed(ActionEvent e) { String usuario = tab.getUsuario(); String senha = tab.getSenha(); //se não digitou a porta if(tab.getPorta().isEmpty()){ JOptionPane.showMessageDialog(null, "A porta do servidor deve ser entre 1024 a 65535.", "Porta Inválida", JOptio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomBu...
[ "0.664672", "0.6489037", "0.62605053", "0.6239261", "0.62156045", "0.6086793", "0.60303956", "0.6003258", "0.5996859", "0.59747046", "0.59661204", "0.59339446", "0.58874553", "0.58358455", "0.58095187", "0.58038604", "0.57973695", "0.5795904", "0.57913536", "0.57696015", "0.5...
0.62569493
3
/ find verify method from many annotations
private List<CalledMethodScanResult> findVerifyMethodsFromAnnotation(CalledMethodScanResult whenMethod, AnnotationScanResult annotationWithVerify) { List<CalledMethodScanResult> verifyList = annotationWithVerify.getCalledMethodScanResultList() .stream() .filter(calledMethod -> calledMethod.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canDetect_ParameterAnnotation_OneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder() {\n final MethodInfo methodInfo = classInfo.getMethodInfo()\n .getSingleMethod(\"oneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder\");\n\n assertThat(methodInf...
[ "0.66673344", "0.66153115", "0.66037446", "0.63848984", "0.63692236", "0.59796643", "0.58257216", "0.5818733", "0.57510173", "0.57506424", "0.56777406", "0.5676938", "0.5676938", "0.5648452", "0.563102", "0.56305313", "0.56166637", "0.56061053", "0.55964303", "0.556676", "0.5...
0.70146716
0
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { // A user is not needed ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.70041436", "0.665852", "0.66030794", "0.6510141", "0.6447041", "0.6442381", "0.6440304", "0.643176", "0.64281464", "0.6424449", "0.6424449", "0.6419869", "0.6419869", "0.6419869", "0.6418233", "0.6413868", "0.6413868", "0.6400206", "0.6394063", "0.6394063", "0.639276", "...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.7327792", "0.71364146", "0.71150917", "0.7103484", "0.7098967", "0.7022197", "0.7014374", "0.6963617", "0.6887727", "0.67830557", "0.6772561", "0.67459744", "0.6666483", "0.65569043", "0.655617", "0.65236866", "0.6523533", "0.6523533", "0.6523533", "0.652217", "0.65187013"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87637174", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.853123", "0.853123", "0.85280925", "0.8528092...
0.85103893
31
end TicTacToeClient constructor turn client's data into origin state
public void resetClient() { map.clear(); idField.setText( "" ); turnLabel.setText( "" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initiateClient(){\n btnNewGame.addActionListener(clientAction);\n btnNewGame.setActionCommand(\"NEWGAME\");\n btnQuit.addActionListener(clientAction);\n btnQuit.setActionCommand(\"QUIT\");\n btnResign.addActionListener(clientAction);\n btnResign.setActionComma...
[ "0.62775445", "0.60008216", "0.5978323", "0.58829844", "0.58575845", "0.58475786", "0.57831717", "0.5776091", "0.576377", "0.5734074", "0.5679006", "0.56686246", "0.56494397", "0.56137836", "0.5601035", "0.55893683", "0.5587511", "0.5566847", "0.55621237", "0.55475533", "0.55...
0.53903353
43
control thread that allows continuous update of displayArea
public void run() { myMark = "Z"; myTurn = false; displayMessage( "Entered message loop\n"); while( !gameover ) { if( input.hasNextLine() ) processMessage( input.nextLine() ); } // end while displayMessage( "Left message loop\n" ); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void run() {\n\t\twhile (true) \n\t\t{\n\t\t\t//\n\t\t\tmove();\n\t\t\t\n\t\t\t// \n\t\t\tcollisions();\n\t\t\t\n\t\t\t// Refresh the display\n repaint(); // Callback paintComponent()\n // Delay for timing control and give other threads a chance\n try {\n ...
[ "0.7333681", "0.7127221", "0.70408976", "0.68545914", "0.6814968", "0.67659914", "0.67641336", "0.6756894", "0.6713856", "0.67023534", "0.67020553", "0.6700277", "0.6674333", "0.66699874", "0.66686285", "0.66270256", "0.6606413", "0.6603154", "0.6593413", "0.6588031", "0.6587...
0.0
-1
end method run process messages received by client
private void processMessage( String message ) { displayMessage( "Got message \"" + message + "\"\n" ); if( message.equals( Gaming.ENTER_DENIED /*"ENTER_DENIED"*/ ) ) { JOptionPane.showMessageDialog( this, "Error connecting to server", Language.CAPTION_ERROR, JOptionPane.PLAIN_MESSAGE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t...
[ "0.73323274", "0.70893615", "0.69898385", "0.6958768", "0.68473524", "0.68351513", "0.68344676", "0.67939", "0.6790755", "0.6749812", "0.674295", "0.6742175", "0.6719029", "0.6702549", "0.66834164", "0.66631615", "0.6652774", "0.6645536", "0.663273", "0.66204184", "0.65945005...
0.0
-1
end method processMessage manipulate displayArea in eventdispatch thread
private void displayMessage( final String messageToDisplay ) { if( logger != null ) logger.displayMessage( "Client: " + messageToDisplay ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tdisplayArea.append(messageToDisplay);\r\n\t\t\t\tdisplayArea.setCaretPosition(displayArea.getText().length());\t//把文本区域中的输入光标定位到文本区域中最后一个字符之后\r\n\t\t\t}", "private void displayMessage( final String messageToDisplay )\r\n\t{\r\n\t\tSwingUtilities.invokeLater(\r\n\t\...
[ "0.68572104", "0.67883706", "0.67753476", "0.67250955", "0.66259915", "0.6544006", "0.63107675", "0.6289827", "0.6228387", "0.62085676", "0.61935043", "0.61755747", "0.61367327", "0.61192393", "0.60135126", "0.6011776", "0.60052466", "0.5965095", "0.5963692", "0.5938456", "0....
0.0
-1
end method displayMessage send message to server indicating clicked square
public void sendClickedSquare( int location ) { // if it is my turn if( myTurn ) { output.format( "%d\n", location ); // send location to server output.flush(); myTurn = false; // not my turn any more } // end if }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMessage(int x, int y, String message) {\n }", "public void actionPerformed(ActionEvent ae)\r\n\t\t\t\t\t{\n\t\t\t\t\t\ttheGridView.addTextBubble(basicAvatarData.getUsername(), \"This is another chat bubble!\", 100);\r\n\t\t\t\t\t}", "boolean onMessageBubbleClick(EMMessage message);", "void...
[ "0.67071164", "0.6607249", "0.6488601", "0.64330584", "0.6398757", "0.6370604", "0.6360469", "0.63193244", "0.6302813", "0.62962335", "0.62742865", "0.6202885", "0.620018", "0.618528", "0.6156251", "0.6147231", "0.61402327", "0.6090268", "0.60759497", "0.6060122", "0.6060122"...
0.69752914
0
Inflate the layout for this fragment, return inflater.inflate(R.layout.fragment_probe, container, false);
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_probe, container, false); ButterKnife.bind(this, view); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup c...
[ "0.7341039", "0.71558124", "0.70551515", "0.7013328", "0.69866335", "0.6982594", "0.6982594", "0.6981534", "0.6950162", "0.6941162", "0.69396687", "0.6920339", "0.69124866", "0.69078326", "0.69049037", "0.6903649", "0.69032913", "0.69032717", "0.69011736", "0.6899224", "0.689...
0.7193133
1
Check speed of the connection
public static String checkingNetworkSpeed(int type, int subType) { if (type == ConnectivityManager.TYPE_WIFI) { return "WIFI"; } else if (type == ConnectivityManager.TYPE_MOBILE) { switch (subType) { case TelephonyManager.NETWORK_TYPE_1xRTT: re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkSpeed() {\n\t\tboolean flag = oTest.checkSpeed();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boole...
[ "0.6673806", "0.6582208", "0.6582208", "0.6582208", "0.6582208", "0.6582208", "0.6582208", "0.63556", "0.6222661", "0.6214511", "0.6170173", "0.61451226", "0.60578203", "0.59829843", "0.5922812", "0.5917669", "0.5912972", "0.58770025", "0.584871", "0.5839447", "0.5815206", ...
0.0
-1
Retrieve the CloudTrailSource attributes.
@Override public Map<String, String> getSourceAttributes() { return sqsMessage.getAttributes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String sourceAttributeName() {\n return this.sourceAttributeName;\n }", "public String getSourceAttribute() {\n return sourceAttribute;\n }", "public final String getPerunSourceAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"perunSourceAttribute\");\n\t}", "@JsonP...
[ "0.63481003", "0.630953", "0.5798747", "0.57499015", "0.5727676", "0.57231355", "0.5677901", "0.5607935", "0.5565782", "0.55261075", "0.5505673", "0.5492457", "0.544296", "0.54373056", "0.54250145", "0.53442883", "0.534097", "0.5322694", "0.5322694", "0.53219485", "0.5313878"...
0.5888194
2
/ This method is called when the CicsComponent receives a message through an inbound endpoint configured in muleconfig.xml
public Object onCall(MuleEventContext context) throws Exception { String interfaceFile = cicsService.getInterfaceFile(); MuleMessage message = context.getMessage(); message.setStringProperty("interfaceFile", interfaceFile); context.transformMessage(); // Check if an error occured durin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleInboundMessage(Object msg) {\n/* 748 */ inboundMessages().add(msg);\n/* */ }", "@Bean\n public MessageProducer inboundMessageHandler() {\n MqttPahoMessageDrivenChannelAdapter adapter =\n new MqttPahoMessageDrivenChannelAdapter(UUID.randomUUID().toString(), ...
[ "0.61760086", "0.60278857", "0.59056425", "0.5896127", "0.5821423", "0.58183956", "0.57813805", "0.57343704", "0.55669695", "0.55556756", "0.55328655", "0.5453655", "0.54167396", "0.5413558", "0.53871983", "0.53804916", "0.53684", "0.5341828", "0.5341433", "0.5332739", "0.530...
0.66771233
0
Returns the installed app
public List<PackageInfo> getInstalledApps(boolean includeSystem) { List<PackageInfo> installedApps = new ArrayList<>(); //Filter the Intent. We want Intents that can be launched. Then, retrieve the list of Activities that //correspond to that criteriom. final Intent intent = new Intent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApp();", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public String getDefaultApp()\n {\n if (defaultApp == null)\n {\n return apps.get(0).getName();\n }\n\n return defaultApp;\n }", "p...
[ "0.7222566", "0.71139866", "0.71139866", "0.71139866", "0.7032281", "0.6917011", "0.6732346", "0.661513", "0.656178", "0.648817", "0.6468527", "0.6389267", "0.6378295", "0.6367536", "0.63592887", "0.6335645", "0.62984836", "0.6293222", "0.629009", "0.62603", "0.62511903", "...
0.6083027
36
Returns the associated permissions of the apps given in argument
public Hashtable<PackageInfo, List<String>> getAppsPermissions(List<PackageInfo> apps) { Hashtable<PackageInfo, List<String>> permissions = new Hashtable<>(); for (PackageInfo pkg : apps) { List<String> appPermissions = new ArrayList<>(); //Default value: no permissions try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void listAppPermissionsTest() throws ApiException {\n String appId = null;\n String filter = null;\n String naked = null;\n Long limit = null;\n Long offset = null;\n // List<Permission> response = api.listAppPermissions(appId, filter, naked, limit, offse...
[ "0.6896983", "0.6889023", "0.6707729", "0.6596155", "0.6287262", "0.62834054", "0.60413754", "0.59784853", "0.5977396", "0.5975829", "0.5936818", "0.5934004", "0.58801275", "0.5863149", "0.5828606", "0.58240724", "0.5709901", "0.5705361", "0.56789535", "0.5649411", "0.5589093...
0.76432645
0
Return all the active applications, in background or foreground
public List<PackageInfo> getActiveApps() { ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); List<ActivityManager.RunningAppProcessInfo> tasks = activityManager.getRunningAppProcesses(); List<PackageInfo> installedApps = getInstalledApps(tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> getAllRunningApp() {\n\t\tArrayList<String> apps = new ArrayList<String>();\n\t\tActivityManager activityManager = (ActivityManager)getSystemService(ACTIVITY_SERVICE);\n\t\tList<RunningAppProcessInfo> runningAppProcesses = activityManager.getRunningAppProcesses();\n\t\t\n\t\tfor (RunningAp...
[ "0.75085276", "0.7371015", "0.68420446", "0.6733545", "0.66734374", "0.6478899", "0.6431248", "0.6402255", "0.6393783", "0.6282037", "0.62473047", "0.6233032", "0.62242734", "0.6125745", "0.6083662", "0.60516065", "0.59925824", "0.5983596", "0.5969259", "0.59537035", "0.59328...
0.79130834
0
Return the app that is currently displayed on the screen, used by the user
public List<UsageStats> getUsedForegroundApp(long interval) { String context_usage_stats_service = "usagestats"; // = Context.USAGE_STATS_SERVICE, but this is not recognize for an unknown reason @SuppressWarnings("ResourceType") UsageStatsManager manager = (UsageStatsManager) context.getSystemService(c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApp();", "public TApplication getApplication() {\n return window.getApplication();\n }", "public static InteractiveApp getApp() {\n return (InteractiveApp) ApplicationInstance.getActive();\n }", "public String getDefaultApp()\n {\n if (defaultApp == null)\n ...
[ "0.7586712", "0.7226169", "0.69694114", "0.69002527", "0.6842384", "0.67943835", "0.67771053", "0.67024136", "0.669345", "0.66675484", "0.66675484", "0.66675484", "0.6656469", "0.66244686", "0.6612109", "0.65545577", "0.6531151", "0.65280557", "0.6521064", "0.65081155", "0.64...
0.0
-1
Return if a given package belogs to the system
public boolean isSystem(PackageInfo pi) { // check if bit the for the flag "system" is 1. // if is NOT system, (f1 & flag_system) = 0 //is system if (f1 & flag_system) != 0 // (basic bitwise operation) return (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPackageName();", "boolean isPackageInstaller(String packageName);", "boolean isSystemPackage(String packageName);", "public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }", "boolean hasPackageid();", "boolean hasPackageid();", "private...
[ "0.6636966", "0.63611484", "0.6313549", "0.623246", "0.61913323", "0.61913323", "0.59893924", "0.59879154", "0.59502935", "0.58854884", "0.58288467", "0.58039737", "0.57563585", "0.57138175", "0.56775117", "0.5637182", "0.5609063", "0.5499478", "0.5478274", "0.54423237", "0.5...
0.5375304
25
Return the name of the application to which this package belogs to
public String getAppName(PackageInfo packageInfo) { return (String) packageInfo.applicationInfo.loadLabel(packageManager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic final String getName() {\n\t\treturn getClass().getSimpleName().replaceAll(\"Application$\", \"\").toLowerCase();\n\t}", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "String getIntegApplicationName();", "public final String getA...
[ "0.7627596", "0.7328972", "0.7328972", "0.7328972", "0.7281328", "0.7237325", "0.7183849", "0.7146099", "0.71155566", "0.709612", "0.6980527", "0.68948495", "0.6874547", "0.6874547", "0.6841995", "0.6826436", "0.6816636", "0.6816636", "0.6808428", "0.6808428", "0.6803154", ...
0.66064197
28
Read the uploaded data amount from system file for the given uid
protected long getUploadedDataAmountFromFile(int uid){ String result = ""; try { File fr = new File("/proc/uid_stat/" + uid + "/tcp_snd"); Scanner sc = new Scanner(new FileReader(fr)); while (sc.hasNext()) { result += sc.nextLine(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected long getDownloadedDataAmountFromFile(int uid){\n String result = \"\";\n try {\n File fr = new File(\"/proc/uid_stat/\" + uid + \"/tcp_rcv\");\n Scanner sc = new Scanner(new FileReader(fr));\n\n while (sc.hasNext()) {\n result += sc.nextLine()...
[ "0.7817891", "0.77426", "0.690553", "0.64683604", "0.6328634", "0.6071034", "0.6025161", "0.59174937", "0.5871285", "0.5855085", "0.57408124", "0.5736068", "0.56844205", "0.56568223", "0.56568223", "0.5642874", "0.56187564", "0.55811554", "0.5570939", "0.55134577", "0.5456781...
0.84632665
0
Read the downlaoded data amount from system file for the given uid
protected long getDownloadedDataAmountFromFile(int uid){ String result = ""; try { File fr = new File("/proc/uid_stat/" + uid + "/tcp_rcv"); Scanner sc = new Scanner(new FileReader(fr)); while (sc.hasNext()) { result += sc.nextLine(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected long getUploadedDataAmountFromFile(int uid){\n String result = \"\";\n try {\n File fr = new File(\"/proc/uid_stat/\" + uid + \"/tcp_snd\");\n Scanner sc = new Scanner(new FileReader(fr));\n\n while (sc.hasNext()) {\n result += sc.nextLine();\...
[ "0.7720895", "0.71182144", "0.6843828", "0.66083753", "0.65728897", "0.647207", "0.569993", "0.5630515", "0.5478423", "0.54098225", "0.5358912", "0.5319916", "0.52144253", "0.5199114", "0.5169558", "0.5112192", "0.5098885", "0.5067371", "0.5051415", "0.50412416", "0.5038477",...
0.82132524
0
Returns the uploaded data amount since device start
public long getUploadedDataAmount(int uid){ long uploadedData = TrafficStats.getUidTxBytes(uid); long snd = getUploadedDataAmountFromFile(uid); //If TrafficStats is working, use these data, otherwise, load data from another way //if TrafficsStat is not working, then data will be 0. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long amountUploaded();", "public long getTotalAmountUploaded();", "public long getUploadedBytes() {\n\t\treturn uploadedBytes;\n\t}", "protected long getUploadedDataAmountFromFile(int uid){\n String result = \"\";\n try {\n File fr = new File(\"/proc/uid_stat/\" + uid + \"/tcp...
[ "0.7595394", "0.75188494", "0.6753699", "0.6739731", "0.66833156", "0.65711457", "0.6509229", "0.64920294", "0.6489818", "0.6374921", "0.63600886", "0.63432246", "0.6330138", "0.6314807", "0.62635034", "0.622777", "0.61366415", "0.6136341", "0.6132283", "0.61258197", "0.61096...
0.7287458
2
Returns the downlaoded data amonnt since device start
public long getDownloadedDataAmount(int uid){ long downloadedData = TrafficStats.getUidRxBytes(uid); long snd = getDownloadedDataAmountFromFile(uid); //If TrafficStats is working, use these data, otherwise, load data from another way //if TrafficsStat is not working, then data will be 0....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void getDatas() {\n\t\tAutoUpdate autoUpdate=new AutoUpdate();\n\t\tautoUpdate.getVersionData(this, \"0\");\n\t}", "private void getSleepData() {\n\n }", "public DataUsage getusageData(int uid)\n {\n Calendar calendar=Calendar.getInstance();\n long to=calendar.getTimeInMil...
[ "0.5496014", "0.54881036", "0.5481439", "0.54732716", "0.54730713", "0.5359394", "0.5348158", "0.53154004", "0.52605057", "0.522341", "0.522341", "0.52202815", "0.5178189", "0.51674485", "0.51436764", "0.50959754", "0.5085907", "0.5075159", "0.50742584", "0.5065313", "0.50629...
0.50921935
16
Executes the Event command which creates a Event Task. Taking the TaskList and Storage object of the main Duke class as arguments, this command will create a new Deadline Task which will then be added to the TaskList and Storage objects. The UI will also be used to print a newTask message into the console.
public String execute(TaskList taskList, Storage storage) { ArrayList<Task> list = taskList.getTaskList(); Task event = new Event(eventName, date); taskList.addTaskList(event); storage.writeToFile(list); return UI.newTask(list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void execute(TaskList taskList, Ui ui, Storage storage) throws DukeException {\n Deadline deadline = new Deadline(description, by);\n taskList.addTask(deadline);\n ui.showAddTask(deadline, taskList.getSize());\n storage.save(taskList.getData());\n }", "public ...
[ "0.7175495", "0.66658956", "0.6619024", "0.6594782", "0.64147365", "0.6368531", "0.6329502", "0.63140416", "0.62176275", "0.62081623", "0.6148525", "0.6110209", "0.61002487", "0.6093466", "0.6071418", "0.6070625", "0.6062862", "0.5990846", "0.59752804", "0.59359694", "0.59156...
0.6642066
2
TODO implement the "view account" tab
private void updateAccountStatus() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}", "public String viewAccount() {\n ConversationContext<Account> ctx = AccountController.newEditContext(getPart().getAccount());\n ctx.setLabelWithKey(\"part_account\");\n getCurrentConversation().setNextContextSubReadOnly(ctx);\n ...
[ "0.7850382", "0.7501812", "0.7177296", "0.6853702", "0.6722803", "0.6634954", "0.66173416", "0.6488071", "0.64497244", "0.64029", "0.6398408", "0.6369456", "0.6349993", "0.63278294", "0.6324388", "0.6317821", "0.6316563", "0.6314362", "0.62846094", "0.61864674", "0.6169517", ...
0.0
-1
Init CPU stat. This method must be invoked after core number and cpu frequencies were parsed.
public void init(){ coreNumber = this.readIntValueFromFile(MAX_CORE_ID) + 1; parseAvailableFrequencies(); mBaseCpuSpeedTimes = new long[cpuFrequencies.length]; mRelCpuSpeedTimes = new long[cpuFrequencies.length]; cores = new Core[coreNumber]; for(int i = 0; i < coreNumber; i++){ cores[i] = new Cor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateCpuStats() {\n\t\tmNumStatsUpdated = 0;\n\t\tList<String> stats = ShellHelper.getProc(CPU_STAT_PROC);\n\t\tif (stats == null || stats.isEmpty()) return;\n\t\t\n\t\tString[] parts = null;\n\t\tString line = null;\n\t\tfor (int i = 0; i < stats.size(); ++i) {\n\t\t\tline = stats.get(i);\n\t\t\tif ...
[ "0.70785934", "0.7035257", "0.6750109", "0.66767985", "0.6352193", "0.6287496", "0.6195134", "0.61017007", "0.6069381", "0.6067793", "0.59978175", "0.5947026", "0.59404653", "0.59347093", "0.59040743", "0.5866986", "0.5838681", "0.58280313", "0.5822693", "0.5805641", "0.57973...
0.73594505
0
user, nice, sys, idle, iowait, irq, softirq
private boolean updateCPUTime(long[] data){ if(data == null || data.length < 7) return false; long usr = data[0] + data[1]; long sys = data[2] + data[5] + data[6]; mRelCPUTime = (usr - mBaseUserTime) + (sys - mBaseSysTime); mBaseUserTime = usr; mBaseSysTime = sys; double activeTime = 1.0 * m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void serviceIRQorNMI() {\r\n // NMI requested?\r\n if (this.isNMILow && !this.lastNMIState) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffa);\r\n...
[ "0.5467406", "0.5219005", "0.5184769", "0.5160107", "0.5127617", "0.51257586", "0.5014321", "0.49942312", "0.4903161", "0.48705107", "0.48306018", "0.4815763", "0.4810555", "0.47949064", "0.47877172", "0.47860304", "0.47834754", "0.4782561", "0.4778902", "0.47739118", "0.4766...
0.0
-1
Get the available frequencies of the processor.
private void parseAvailableFrequencies(){ String str = parser.readFile(FREQ_AVAILABLE, 256); if(str == null) return; String[] frestrs = str.split(" "); int[] freqs = new int[frestrs.length - 1]; for(int i = 0; i < freqs.length; i++) freqs[i] = Integer.valueOf(frestrs[i]); cpuFrequencies = freqs;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getAvailableFrequencies() {\n\t\t\tif (mAvailableFrequencies == null) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + AVAILABLE_FREQUENCIES);\n\t\t\t\tif (list == null || list.isEmpty()) return null;\n\t\t\t\tString[] results = list.get(0).split(\"\\\\s+\");\n\t\t\...
[ "0.77841944", "0.7339213", "0.7320674", "0.727812", "0.70963615", "0.6949364", "0.6943266", "0.6851377", "0.68044895", "0.67201465", "0.66781956", "0.66581094", "0.6625765", "0.65771693", "0.65740645", "0.6517358", "0.65163344", "0.65111357", "0.6495888", "0.6492357", "0.6481...
0.70940244
5
Get the time that the CPU worked in each frequency.
private void parseCPUSpeedTimes(){ String str = parser.readFile(SYS_CPU_SPEED_STEPS, 512); if(str == null) return; String[] vals; int index = 0; long time; for(String token : str.split("\n")){ if(str.trim().length() == 0) continue; try{ vals = token.split(" "); time = Long.valueOf(val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCpuTimeSec() {\n\treturn getCpuTime() / Math.pow(10, 9);\t\t\n}", "int getCPU_time();", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "private long getCpuTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n r...
[ "0.7871555", "0.7689496", "0.7432834", "0.7227266", "0.71660066", "0.71226203", "0.7118066", "0.7073257", "0.7063986", "0.70502", "0.7022142", "0.70062226", "0.6959572", "0.6932524", "0.6921055", "0.6858923", "0.6758701", "0.6673571", "0.6659705", "0.6654385", "0.6637562", ...
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78857815", "0.7550259", "0.749803", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", "0.74623454", ...
0.0
-1
represents all but the last element of the location list TODO: this field is initialized, but never read! I removed it, see the version control history. private Criterion parentCriterion; Creates a new GenericArrayLocationCriterion specifying that the element is an outer type, such
public GenericArrayLocationCriterion() { this(null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenericArrayLocationCriterion(List<TypePathEntry> location) {\n this.location = location;\n this.typePath = TypePathEntry.listToTypePath(location);\n }", "private GenericArrayLocationCriterion(TypePath typePath, List<TypePathEntry> location) {\n this.typePath = typePath;\n this.location = loc...
[ "0.6646559", "0.6197959", "0.58065885", "0.5488866", "0.5171502", "0.5166484", "0.48849326", "0.47412974", "0.46334538", "0.46069202", "0.457975", "0.4559286", "0.45252228", "0.44925243", "0.44896173", "0.4477259", "0.44742525", "0.44739416", "0.44616777", "0.44519034", "0.44...
0.70122725
0
Creates a new GenericArrayLocationCriterion representing the end of the given path.
public GenericArrayLocationCriterion(TypePath typePath) { this(typePath, TypePathEntry.typePathToList(typePath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private GenericArrayLocationCriterion(TypePath typePath, List<TypePathEntry> location) {\n this.typePath = typePath;\n this.location = location;\n }", "public GenericArrayLocationCriterion(List<TypePathEntry> location) {\n this.location = location;\n this.typePath = TypePathEntry.listToTypePath(loca...
[ "0.6568958", "0.64585567", "0.637555", "0.4670429", "0.465066", "0.46114543", "0.4557131", "0.45185855", "0.44894722", "0.44705734", "0.44013473", "0.4393358", "0.4358886", "0.43544248", "0.43516234", "0.43486947", "0.42921644", "0.42581913", "0.42205936", "0.4219114", "0.420...
0.68889767
0
Creates a new GenericArrayLocationCriterion representing the end of the given path.
public GenericArrayLocationCriterion(List<TypePathEntry> location) { this.location = location; this.typePath = TypePathEntry.listToTypePath(location); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenericArrayLocationCriterion(TypePath typePath) {\n this(typePath, TypePathEntry.typePathToList(typePath));\n }", "private GenericArrayLocationCriterion(TypePath typePath, List<TypePathEntry> location) {\n this.typePath = typePath;\n this.location = location;\n }", "public GenericArrayLocati...
[ "0.68910426", "0.65704036", "0.637823", "0.46706092", "0.46508154", "0.4609713", "0.4553378", "0.45174053", "0.4492375", "0.44685763", "0.4398939", "0.43908143", "0.4355413", "0.43513006", "0.43496475", "0.43475923", "0.42902082", "0.4257085", "0.42177063", "0.42175198", "0.4...
0.6460154
2
Creates a new GenericArrayLocationCriterion representing the end of the given path.
private GenericArrayLocationCriterion(TypePath typePath, List<TypePathEntry> location) { this.typePath = typePath; this.location = location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenericArrayLocationCriterion(TypePath typePath) {\n this(typePath, TypePathEntry.typePathToList(typePath));\n }", "public GenericArrayLocationCriterion(List<TypePathEntry> location) {\n this.location = location;\n this.typePath = TypePathEntry.listToTypePath(location);\n }", "public GenericA...
[ "0.68900687", "0.64578635", "0.63756925", "0.4670409", "0.46502742", "0.46094203", "0.45563334", "0.45176393", "0.44892368", "0.4470397", "0.44007725", "0.43925297", "0.43590257", "0.43545562", "0.4349552", "0.4347749", "0.42921874", "0.42573082", "0.42201155", "0.4217478", "...
0.6568472
1
Main method to run the bundle calculator
public static void main(String[] args) { try { // default files paths String bundleFilePath = "src/main/resources/bundles.txt"; String orderFilePath = "src/main/resources/order.txt"; // custom files paths from user if (args.length == 2) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n new Calculator();\n }", "public static void main (String args[]){\r\n\t\tCalculator s = new Calculator();\r\n\t\ts.launchFrame();\r\n\t}", "public static void main(String[] args) {\n Calculator calc=new Calculator();\r\n double operand1,ope...
[ "0.684666", "0.68395257", "0.6767984", "0.67006654", "0.66187114", "0.6614678", "0.65948564", "0.6525261", "0.64849705", "0.64602715", "0.6449115", "0.64471966", "0.6423456", "0.64150923", "0.6388198", "0.6373798", "0.6370896", "0.6342421", "0.6332702", "0.63303053", "0.63229...
0.6621687
4
TODO Autogenerated method stub
public static void main(String[] args) { Deco deco = new Deco(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Utility method to find the distance between two points.
public double getDistance(double x, double y, Point p) { double s1 = Math.sqrt((x - p.x)*(x - p.x) + (y - p.y)*(y - p.y)); return s1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}", "double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math...
[ "0.8095876", "0.7956907", "0.78999424", "0.7862115", "0.7851475", "0.7807408", "0.7797874", "0.7787616", "0.77618515", "0.7714236", "0.7689353", "0.7639483", "0.75571275", "0.75545084", "0.75544703", "0.75294596", "0.75272214", "0.7523312", "0.7509803", "0.74244773", "0.74191...
0.6899673
64
/ Overridden method of Shape interface to get the id of the Circle.
@Override public int getShapeId() { return shapeId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getShapeId();", "long getBusinessCircleId();", "public Circle getShape(){\n\t\treturn new Circle();\n\t}", "@Override\n public String getID() {\n return \"MyEllipse@\" + this.createDate.getTime();\n }", "public Coordinate getCircle();", "@Override\n public String getShapeSetId() {\n ...
[ "0.7648608", "0.66949147", "0.66802144", "0.6647962", "0.6621065", "0.65233153", "0.65196455", "0.6499843", "0.63993454", "0.63564825", "0.6341493", "0.63094467", "0.6220842", "0.611354", "0.6072075", "0.6068925", "0.60608596", "0.60262173", "0.6001321", "0.59941274", "0.5937...
0.6996159
1
/ Overridden method of Shape interface to get the area of the Circle.
@Override public double getArea() { double area = (radius*radius)*pi; return area; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCircleArea();", "@Override\n\tpublic double area() {\n\t\treturn Shape.PI*radius*radius;\n\t}", "@Override\r\n public double getArea() {\r\n return radius * radius * Math.PI;\r\n }", "@Override\n public double getArea() {\n return (int) this.radiusX * (int) this.radius...
[ "0.8596887", "0.81466335", "0.80225617", "0.7978133", "0.79593587", "0.7953717", "0.7888714", "0.7888714", "0.78706443", "0.78678936", "0.78608096", "0.7854882", "0.78442913", "0.7839584", "0.7836642", "0.7831688", "0.781179", "0.778104", "0.77663034", "0.76943845", "0.767104...
0.7758253
19
/ Overridden method of Shape interface to get the perimeter of the Circle.
@Override public double getPerimeter() { double perimeter = radius*2*pi; return perimeter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic double calPerimeter() {\n\t\treturn 2*Math.PI*radius;\n\t}", "public double getPerimeter() {\n return 2 * radius * Math.PI;\n }", "@Override\n public double getPerimeter() {\n return 4 * ((int) this.radiusX + (int) this.radiusY - (4 - Math.PI) * ((int) this.radiusX * (in...
[ "0.83067167", "0.82627755", "0.825117", "0.8190978", "0.81483984", "0.81164914", "0.807043", "0.8052549", "0.8041739", "0.7999146", "0.7999146", "0.7983803", "0.79823047", "0.79406273", "0.793147", "0.7895796", "0.7895796", "0.7895796", "0.7895796", "0.7887767", "0.7825375", ...
0.82769746
1
/ Overridden method of Shape interface to get the origin of the Circle.
@Override public double[] getOrigin() { double origin[] = new double[] {originX, originY}; return origin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coordinate getCircle();", "@Override\n public Point getOrigin() {\n return origin;\n }", "public Point getOrigin() {\n return origin;\n }", "@Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }", "public Point2D ...
[ "0.7351074", "0.7155885", "0.7025754", "0.6981621", "0.6973442", "0.6912761", "0.6871455", "0.68484646", "0.66955906", "0.66240114", "0.6601968", "0.6542367", "0.64715797", "0.6464986", "0.64642465", "0.64009696", "0.64009696", "0.64007914", "0.6388738", "0.6383456", "0.63376...
0.62735504
24
/ Overridden method of Shape interface to check if the point is enclosed by the Circle.
@Override public boolean isPointEnclosed(Point p) { double[] centre = circleCentre(); double distance = Math.sqrt((centre[0] - p.x)*(centre[0] - p.x) + (centre[1] - p.y)*(centre[1] - p.y)); if(distance <= radius) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCircle();", "public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}", "@Override\r\n\tpublic boo...
[ "0.782055", "0.7784467", "0.7268447", "0.7097758", "0.70305824", "0.69541544", "0.69221646", "0.69011915", "0.689247", "0.68642753", "0.67751443", "0.6772391", "0.67562944", "0.6741692", "0.67279243", "0.6721835", "0.6704905", "0.66879696", "0.661642", "0.6611857", "0.6581993...
0.77857304
1
/ Utility method to find the centre of the circle.
double[] circleCentre() { double toOriginLength = Math.sqrt(originX*originX + originY*originY); double toCentreLength = toOriginLength + radius; double[] centrePoint = new double[2]; centrePoint[0] = (toCentreLength * originX)/toOriginLength; centrePoint[1] = (toCentreLength * originY)/toOriginLength; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point getCenter();", "Point getCenter();", "public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }", "public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }", "public FPointType calculateCenter() {\n fRec...
[ "0.7748671", "0.7748671", "0.75495327", "0.746863", "0.72882813", "0.72172487", "0.71839833", "0.7132501", "0.71012455", "0.7099105", "0.70783055", "0.7037035", "0.7025039", "0.70165426", "0.69919175", "0.6985042", "0.6983533", "0.69770306", "0.6974964", "0.69699293", "0.6934...
0.8086755
0
Creates a new reference set, based on the contents of the supplied workbook.
public MicrobiologySerologyMolecularRefset(Workbook workbook, TerminologyClient terminologyClient, UcumService ucumService) throws ValidationException { this.workbook = workbook; this.terminologyClient = terminologyClient; this.ucumServi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWorkbook(Workbook workbook){\n this.workbook = workbook;\n }", "BSet createBSet();", "public Excel(Workbook workbook){\n this.workbook = workbook;\n isValid = false;\n initialized = false;\n }", "public BeansToExcel(Workbook styleTemplate) {\n this.styl...
[ "0.52787346", "0.51078165", "0.5072235", "0.4699946", "0.46306333", "0.4567596", "0.45138744", "0.45124704", "0.44969732", "0.44198948", "0.4416285", "0.43997025", "0.43947476", "0.4390216", "0.43529296", "0.43163043", "0.42917144", "0.42709288", "0.42576003", "0.42255998", "...
0.48138073
3
Gets a list of all entries within this reference set.
@Override public List<RefsetEntry> getRefsetEntries() { return refsetEntries; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object[] entrySet() {\n MyStack<Object> result = new MyStack<>();\n\n for (Object entry : this.table) {\n if (entry != null) {\n Entry<K, V> current = (Entry<K, V>) entry;\n\n while (current.hasNext()) {\n result.push(current);\n ...
[ "0.71297866", "0.70627654", "0.7021708", "0.6974623", "0.6929018", "0.6900747", "0.688423", "0.6835805", "0.6810162", "0.676111", "0.67437863", "0.673031", "0.6727324", "0.6711097", "0.6698877", "0.668055", "0.6646937", "0.6636939", "0.6621362", "0.657253", "0.65411514", "0...
0.78505546
0
TODO Autogenerated method stub
@Override public void startup() { String wechatID = "gh_f49bb9a333b3"; String Token = "spotlight-wechat"; NoIOClient client = new NoIOClient("mg.protel.com.hk",5010); client.addCRouter(wechatID, Token,null,null); client.startup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Constructs a new refresher.
public Refresher(Refreshable refreshObject, int refreshInterval) { this.refreshObject = refreshObject; this.refreshInterval = refreshInterval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Refrigerator() {\r\n\t\tthis(1, 0, 0);\r\n\t\t\r\n\t}", "public static TimedRefreshManager getInstance() {\n\t\t\n\t\tif (_instance == null) {\n\t\t\t_instance = new TimedRefreshManager();\n\t\t}\n\t\treturn _instance;\n\n\t}", "@Override\n public void refresh() {\n refresher.enqueueRefresh();...
[ "0.56264865", "0.559458", "0.55669", "0.55092716", "0.53908956", "0.5390773", "0.5384222", "0.53690356", "0.5356969", "0.5340443", "0.5335939", "0.5315184", "0.5223925", "0.5171656", "0.5147781", "0.5129978", "0.51163197", "0.5075054", "0.5050557", "0.5047622", "0.50288606", ...
0.6447434
0
Workaround to apply refreshing progressview
private void setRefreshing() { mSwipe.setProgressViewOffset(false, 0, (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 24, getResources().getDisplayMetrics())); mSwipe.setRefreshing(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }", "@Override\n protecte...
[ "0.78203756", "0.71290874", "0.7036514", "0.7031185", "0.69878983", "0.69318753", "0.6859379", "0.6855869", "0.682125", "0.6819717", "0.6813215", "0.6775428", "0.67635036", "0.67403656", "0.67403656", "0.6739282", "0.67360264", "0.6733698", "0.6733698", "0.6716582", "0.667867...
0.6518774
43
Basic constructor for a KI population
public Population(int size, ArrayList<Individual> KIS){ this.size = size; this.individuals = KIS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Generation(int i)\r\n {\r\n k = i;\r\n }", "public Genetic() {\r\n }", "public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }", "public Kurama(){\n super(\"Kurama\",3,800,800,\"n\",19,5);\n }", "publi...
[ "0.63415974", "0.6285836", "0.6207127", "0.6178018", "0.602088", "0.59830606", "0.5969219", "0.59633565", "0.5953012", "0.5945727", "0.589183", "0.5871628", "0.58712983", "0.5865136", "0.5862594", "0.58583224", "0.58399904", "0.5829781", "0.5817879", "0.5803354", "0.5793924",...
0.63136786
1
Gets KI with given ID
public Individual getIndividual(int id){ for(Individual individual : individuals){ if(individual.getId() == id){ return individual; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "V get(K id);", "public String getIdKlinik() {\n return idKlinik;\r\n }", "private final static String getKey( Integer id ) {\n\t\treturn \"\" + id ;\n\t}", "RiceCooker getById(long id);", "D getById(K id);", "public Korisnici findOne(Integer korID) {\n\t\treturn korisniciRepository.findOne(ko...
[ "0.621006", "0.61620766", "0.5871332", "0.5866178", "0.5849273", "0.5831585", "0.58146846", "0.57932585", "0.57932585", "0.5781291", "0.5733902", "0.5720177", "0.57079273", "0.5691303", "0.56656194", "0.5661813", "0.5650968", "0.5635899", "0.55933887", "0.5571287", "0.5553038...
0.0
-1
Determines the best KI
public Individual getFittest(){ Individual fittest = individuals.get(0); for (Individual individual: individuals){ if(fittest.equals(individual)){ continue; } else if(fittest.getFitness() < individual.getFitness()){ fittest = individual; } } return fittest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int find_bestSplit(KnowledgeBase kb, int attIndex, ArrayList<ArrayList<ArrayList<Integer>>> multiple_counters) {\r\n\t\tif(multiple_counters.size() >0){\r\n\t\t\tfloat best_Gini = calculImpurity2D(kb.getSamples().size(),multiple_counters.get(0));; // it's a minimum!!\r\n\t\t\tint index_Best_Gini =0;\r\n\t\...
[ "0.6231542", "0.618816", "0.60689396", "0.60190433", "0.59745675", "0.5931594", "0.5913729", "0.59132946", "0.59118295", "0.5853692", "0.58470136", "0.58232766", "0.5748327", "0.57268536", "0.56803256", "0.5660442", "0.5657517", "0.5654865", "0.5639885", "0.5635507", "0.56166...
0.0
-1
Sorts the individual based on the fitness, best is the first one , worst the last one
public ArrayList<Individual> getSortedPopulation(){ ArrayList<Individual> sortedIndividuals = new ArrayList<Individual>(); for(Individual individual: individuals){ int indexToadd = 0; if(sortedIndividuals.isEmpty()){ sortedIndividuals.add(individual); } else { for(Indiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sortPopulation() {\n println(\"sortPopulation()\", 1);\n //population_size = population.size();\n for(int i = 1; i < population_size; i++) {\n \n //current is the one we're going to put in the right place\n Individual current = population[i];\n ...
[ "0.7160847", "0.7112741", "0.66615", "0.63493687", "0.62622154", "0.621928", "0.6182213", "0.60561675", "0.6044228", "0.6006025", "0.5971831", "0.59497213", "0.5911902", "0.5903275", "0.5890732", "0.58634806", "0.58301216", "0.58135384", "0.58130056", "0.579199", "0.5786302",...
0.69855
2
Declare a TCP socket object and initialize to null ServerSocket serverSocket = null; Set the port number.
public static void main(String[] args) throws Exception { int port = 3030; ServerSocket serverSocket = null; // Establish the listen socket try { serverSocket = new ServerSocket(port); System.out.println("TCP server created on port =" + port); // Process HTTP service requests in an infinite loop. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Server() throws IOException\n {\n socket = new ServerSocket(port);\n }", "public DefaultTCPServer(int port) throws Exception {\r\n\t\tserverSocket = new ServerSocket(port);\t}", "private void initServerSocket()\n\t{\n\t\tboundPort = new InetSocketAddress(port);\n\t\ttry\n\t\t{\n\t\t\tserver...
[ "0.7751222", "0.77260685", "0.75807565", "0.7575652", "0.75425994", "0.7500238", "0.7500152", "0.74374485", "0.7432504", "0.7431119", "0.7425502", "0.7341443", "0.7333619", "0.7247244", "0.7244645", "0.7157504", "0.71356547", "0.7133153", "0.71221274", "0.70449907", "0.697323...
0.0
-1
Passing the socket object in HTTP request Constructor
public HttpRequest(Socket socket) throws Exception { this.socket = socket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HttpRequestA(Socket socket) throws Exception {\n this.socket = socket;\n }", "public HttpGetSocket(SocketHandler h)\r\n {\r\n super(h);\r\n }", "public RequestThread(Socket soc){\r\n this.soc = soc; \r\n }", "public TCPRequest(ServerSocket ss) {\n try {\n ...
[ "0.77739805", "0.7367822", "0.7309126", "0.69714886", "0.69054615", "0.68090993", "0.6800242", "0.67963344", "0.67963344", "0.6731653", "0.6714247", "0.6696553", "0.6651043", "0.65808547", "0.6538235", "0.6492771", "0.648504", "0.64829105", "0.6480133", "0.64082015", "0.63912...
0.77216524
1
Process Client Request here and printing the connection information
private void processRequest() throws Exception { String server_url = "http://localhost:" + socket.getPort() + "/"; System.out.println("server " + server_url); URL url = new URL(server_url); System.out.println("URL " + url); InputStream in = socket.getInputStream(); DataOutputStream op = new DataOutputStream...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processRequest() throws Exception {\n InputStream is = socket.getInputStream();\n DataOutputStream os = new DataOutputStream(socket.getOutputStream());\n\n // Set up input stream filters.\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n \n // Get the request lin...
[ "0.7004511", "0.6772251", "0.674728", "0.6699296", "0.6148625", "0.611834", "0.5941698", "0.5924427", "0.5919552", "0.59192526", "0.5885838", "0.58559066", "0.5852873", "0.58438617", "0.58290374", "0.58094394", "0.5796772", "0.57877994", "0.57606226", "0.5709742", "0.5701776"...
0.65401375
4
contentType Method which evalutes the file extension
private static String contentType(String fileName) { if (fileName.endsWith(".txt") || fileName.endsWith(".html")) { return "text/html"; } if (fileName.endsWith(".jpg") || fileName.endsWith(".jpeg")) { return "image/jpeg"; } if (fileName.endsWith(".gif")) { return "image/gif"; } return "applicatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getContentType(String fileExtension);", "protected abstract String getFileExtension();", "public String getFileExtension();", "public abstract String getFileExtension();", "String getFileExtension();", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n ...
[ "0.80780923", "0.77802825", "0.77513117", "0.77273005", "0.7682058", "0.74073094", "0.73444134", "0.7263863", "0.7195985", "0.7178371", "0.7027555", "0.7014845", "0.7014845", "0.70003664", "0.6991769", "0.69299364", "0.69299364", "0.69299364", "0.68773156", "0.6865982", "0.68...
0.67076373
24
Construct a 1K buffer to hold bytes on their way to the socket.
private static void sendBytes(FileInputStream fis, OutputStream op) throws Exception { byte[] buffer = new byte[1024]; int bytes = 0; // Copy requested file into the socket’s output stream. while ((bytes = fis.read(buffer)) != -1) { op.write(buffer, 0, bytes); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Buffer createBuffer();", "abstract public Buffer createBufferFromData(byte[] data, int size);", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "public FastBytesOutputStream(int size) \r\n {\r\n \tbuf = new byte[size];\r\n }", "public IBuffer newB...
[ "0.6531513", "0.6355374", "0.6330337", "0.621925", "0.6071418", "0.606082", "0.60386467", "0.59887844", "0.59792024", "0.5947472", "0.5941116", "0.5934746", "0.5927224", "0.5908332", "0.5882243", "0.58752537", "0.58229893", "0.57906115", "0.5790169", "0.57103175", "0.5688211"...
0.0
-1
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() { jSplitPane1 = new javax.swing.JSplitPane(); jPanel1 = new javax.swing.JPanel(); userNameLabel = new javax.swing.JLabel(); jLab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73199165", "0.7291065", "0.7291065", "0.7291065", "0.72868747", "0.72488254", "0.7214099", "0.7209363", "0.7196111", "0.7190702", "0.7184576", "0.71590984", "0.71483636", "0.7093415", "0.70814407", "0.70579475", "0.69872457", "0.69773155", "0.6955104", "0.69544697", "0.694...
0.0
-1
Initialize B.A.S.E transaction manager.
public void init() throws SQLException { EventBusInstance.getInstance().register(new BestEffortsDeliveryListener()); if (TransactionLogDataSourceType.RDB == transactionConfig.getStorageType()) { Preconditions.checkNotNull(transactionConfig.getTransactionLogDataSource()); createTa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TManagerImp() {\n transactions = new ConcurrentHashMap<>();\n }", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "public PTPTransactionManager () {\n transactions = new HashMap<>();\n ...
[ "0.69899184", "0.6853851", "0.67743874", "0.67444", "0.66125476", "0.6588313", "0.6433376", "0.63927805", "0.6378538", "0.63569885", "0.6268777", "0.61985", "0.61910826", "0.618195", "0.61671656", "0.6153286", "0.6138154", "0.6126014", "0.61005366", "0.6085893", "0.60771424",...
0.588028
35
Get transaction configuration from current thread.
public static Optional<SoftTransactionConfiguration> getCurrentTransactionConfiguration() { Object transactionConfig = ExecutorDataMap.getDataMap().get(TRANSACTION_CONFIG); return (null == transactionConfig) ? Optional.<SoftTransactionConfiguration>absent() : Optional.of(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Transaction getThreadLocalTransaction() {\n return threadlocal.get();\n }", "public Transaction currentTransaction() {\r\n\t\treturn threadTransaction.get();\r\n\t}", "TransportLayerAttributes getConfig();", "public TransactionPool getTransactionPool() {\n // still can not figu...
[ "0.64772266", "0.6023234", "0.5991992", "0.5939504", "0.58989465", "0.5891574", "0.5890079", "0.5739837", "0.5713902", "0.5674345", "0.56662935", "0.5653613", "0.5640239", "0.56333745", "0.5632901", "0.5631753", "0.56259066", "0.5617263", "0.56059605", "0.560182", "0.5597424"...
0.681712
0
Close transaction manager from current thread.
static void closeCurrentTransactionManager() { ExecutorDataMap.getDataMap().put(TRANSACTION, null); ExecutorDataMap.getDataMap().put(TRANSACTION_CONFIG, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}", "public static void closeEntityManager() {\n EntityManager em = tl.get();\n if (em != null) {\n em.close();\n tl.set(null);\n }\n }", "public static void close(EntityManager entityManager)\n...
[ "0.71209276", "0.68367237", "0.66908044", "0.6589439", "0.6509168", "0.62377936", "0.6160967", "0.6026021", "0.59747165", "0.59626424", "0.5958141", "0.59428215", "0.59419245", "0.5939433", "0.5933923", "0.59046876", "0.5880126", "0.5831051", "0.58289", "0.58060926", "0.57966...
0.6976421
1
TODO Autogenerated method stub
public static void main(String[] args) { BookClient bc = new BookClient(); // bc.addBook("1235", "title2", "author2", 2001.00, 20L, null); System.out.println(bc.getBooks().toString()); bc.deleteBook("1234"); System.out.println(bc.getBooks().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Create, Read, Update and Delete controller. Takes in inputs for each action to be sent to a service class
public interface CrudController<T> { void readAll(); void create(); void update(); void delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrudController<T, ID extends Serializable> {\n\n // Getting entity by id\n Object get(ID id) throws Exception;\n\n //Getting list of entities\n Object getAll(WebRequest webRequest, HttpServletResponse response, Model model) throws Exception;\n\n Object create(T entity,\n ...
[ "0.63094085", "0.60744506", "0.6069217", "0.60266083", "0.5992941", "0.5954903", "0.5913034", "0.58780587", "0.57534254", "0.575327", "0.5715518", "0.5625177", "0.5602479", "0.55814606", "0.5569601", "0.5552782", "0.55089235", "0.5461727", "0.5456813", "0.5446895", "0.5403909...
0.6250903
1
Creates new form TelaLogin
public TelaLogin(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); InterfaceUtils.centralizarFrame(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TelaLogin() {\n initComponents();\n }", "public TelaLogin() {\n initComponents();\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "publi...
[ "0.6928485", "0.6928485", "0.67198515", "0.6606949", "0.6583441", "0.64381486", "0.64347965", "0.63565195", "0.6330202", "0.62594616", "0.6228933", "0.6220769", "0.61699766", "0.6130719", "0.6130536", "0.61242986", "0.61030215", "0.60997677", "0.6094404", "0.60606", "0.605355...
0.0
-1
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() { jPanel1 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); txtUsuario = new javax.swing.JTextField(); btnBuscar =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73200226", "0.7291205", "0.7291205", "0.7291205", "0.7286934", "0.72486174", "0.72148067", "0.7208562", "0.7196016", "0.7190541", "0.71850747", "0.71595925", "0.71484745", "0.7093441", "0.708049", "0.70576906", "0.6987498", "0.6977434", "0.69557697", "0.6954114", "0.694637...
0.0
-1
EPackage sourcePackage, EPackage corrPackage, EPackage targetPackage
public TestPN2SCValidationBWD() { super(PetriNetLanguagePackage.eINSTANCE, PetriNetToStatechartIntegrationPackage.eINSTANCE, StatechartLanguagePackage.eINSTANCE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "public interface TransformationPackage extends EPackage {\n\t/**\n * The package name.\n * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n * @generated\n */\n\tString eNAME = \"transformation\";\n\n\t/...
[ "0.69479376", "0.69479376", "0.5689883", "0.5652962", "0.56379545", "0.5633359", "0.5628078", "0.559991", "0.55978847", "0.55960953", "0.55367637", "0.552411", "0.5474849", "0.5445932", "0.5436526", "0.5434378", "0.53927207", "0.5384163", "0.53367347", "0.53208333", "0.530532...
0.0
-1
check if this row has the Highlight column is selected
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (0 == row % 2) this.setBackground(Color.WHITE); else this.setBackground(Color.lightGray); return super.getTableCellRendererComponent(table, value, isSel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "public abstract boolean hasSelection();", "public boolean isSelected() { \n \treturn selection != null; \n }", "boolean isHighlighted();", "@Override\n public boolean select() {\n cell.setStat...
[ "0.7459435", "0.69492304", "0.69013476", "0.68669015", "0.6814745", "0.6687724", "0.65749836", "0.6544863", "0.6499725", "0.6492666", "0.64702564", "0.6467246", "0.6465032", "0.6428836", "0.63878787", "0.63878787", "0.63878787", "0.63788205", "0.6334459", "0.6321362", "0.6286...
0.0
-1
Will attemp to connect to an index structure, execute a query and display the results.
public void executeDisplaySearch(String indexfile, String queryString) { if (queryString.trim().length() < 1) { JOptionPane.showMessageDialog(this, "No text given to seach!", "Search issues", JOptionPane.ERROR_MESSAGE); return; } //System.out.println("going to open: " + indexfile); //lets see if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String execute() throws Exception {\n\t\treturn \"index\";\n\t}", "public void run() {\n System.out.println(\"Running Indexing\");\n Indexer.index();\n }", "public void start() throws Exception {\n\n createIndex();\n }", "public static void main(String[] args) throws ...
[ "0.6600417", "0.6255398", "0.6019306", "0.59549564", "0.59512097", "0.5942521", "0.5933083", "0.59314674", "0.5712748", "0.56691074", "0.5602272", "0.5590299", "0.5585696", "0.55289334", "0.55265677", "0.5506832", "0.55060744", "0.5474026", "0.54614675", "0.5449547", "0.54394...
0.5834224
8
Creates an indexed search crawl of a selection of the data.
private void createSearch(boolean realSearch) { String sqlQuery = new String(); if (useLucene.isSelected()) { if (datachoose.getSelectedIndex() == data_ABOVE) { // need to reference the above data. String usp = (String) winG.getSelectedUser(); String dates[] = winG.getDateRange_toptoolbar(); s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void selectAllIndexes();", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "TSearchResults createSearchResults(TSearchQ...
[ "0.56799483", "0.5662482", "0.5625969", "0.5539109", "0.5463913", "0.5460341", "0.540534", "0.5349261", "0.53383946", "0.53257924", "0.53161746", "0.5313018", "0.530002", "0.52786344", "0.5193664", "0.51639867", "0.5140434", "0.5139875", "0.51354396", "0.5104375", "0.5101757"...
0.54639107
5
Will compare 2 dates as string and return greater than zero if the second is larger, 0 if equal , less than zero if less
public static int compareDatesString(String dateFirst, String dateSecond) { if (dateFirst.equals(dateSecond)) { return 0; } ///lets check the years from format yyyy-mm-dd int year1 = Integer.parseInt(dateFirst.substring(0, 4)); int year2 = Integer.parseInt(dateSecond.substring(0, 4)); if (year1 < year2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int compareDates(String date1, String date2) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d1 = HISDate.valueOf(date1);\r\n HISDate d2 = HISDate.valueOf(date2);\r\n cmpResult = d1.compare(d2);\r\n } catch (Exception e) {\r\n ...
[ "0.71943533", "0.6772317", "0.66149706", "0.65773404", "0.65767586", "0.653881", "0.648637", "0.64841646", "0.6466661", "0.6408991", "0.64045286", "0.63664514", "0.62225664", "0.6160301", "0.61251855", "0.6118347", "0.6115354", "0.6098942", "0.60206985", "0.6000304", "0.59880...
0.7388527
0
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in...
@Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // Add a marker in Sydney and move the camera LatLng wroclaw = new LatLng(51.110, 17.034); mMap.addMarker(new MarkerOptions().position(wroclaw)); mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(wrocl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ...
[ "0.81884885", "0.8042996", "0.80369604", "0.8033771", "0.7998488", "0.79770344", "0.7957945", "0.7957621", "0.7954723", "0.79429656", "0.7936834", "0.79301476", "0.7915297", "0.79048723", "0.7888234", "0.7885085", "0.7885085", "0.7885085", "0.7885085", "0.7878164", "0.7844682...
0.77963114
24
TODO Autogenerated method stub
@Override public List<Courseschedule> getAllCourseschedules() { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "from Courseschedule where state=:state"; Query query = session.createQuery(hql).setInteger("state", 0); List<Courseschedule> lists = query....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Courseschedule> getCourseschedulesByClassroomId(int classroomId) { session = sessionFactory.openSession(); Transaction tran = session.beginTransaction(); String hql = "from Courseschedule where classroomId=:classroomId and state=:state"; List<Courseschedule> lists = session.createQu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1