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
Adds one or more committers.
public void addCommitter(ICommitter... committer) { this.committers.addAll(Arrays.asList(committer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCommit(Commit commit) throws IOException {\n String fileName = commit.getShaCode();\n File actualFile = new File(Main.ALL_COMMITS, fileName);\n if (!actualFile.exists()) {\n actualFile.createNewFile();\n }\n Utils.writeObject(actualFile, commit);\n }"...
[ "0.5985805", "0.5842282", "0.5773402", "0.5401533", "0.5335106", "0.5325112", "0.5300237", "0.5295103", "0.5107085", "0.50897706", "0.5085132", "0.50569063", "0.50052494", "0.49541453", "0.49479586", "0.49464628", "0.49321938", "0.4929745", "0.49195507", "0.4894541", "0.48746...
0.7494262
0
Removes one or more committers.
public void removeCommitter(ICommitter... committer) { this.committers.removeAll(Arrays.asList(committer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void rm(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Please input the file to remove\");\n return;\n }\n Commit headCommit = currCommit.tree.getHeadCommit();\n if (!headCommit.containsFile(args[1])\n ...
[ "0.55593735", "0.52990717", "0.5172253", "0.51171106", "0.5110292", "0.5044304", "0.50287086", "0.5026093", "0.49740824", "0.496916", "0.49628723", "0.49431685", "0.49189135", "0.4907709", "0.4899588", "0.48930174", "0.4865505", "0.48427823", "0.47862992", "0.4775761", "0.476...
0.7330129
0
Get all the allergies.
@Override @Transactional(readOnly = true) public Page<AllergyDTO> findAll(Pageable pageable) { log.debug("Request to get all Allergies"); Page<Allergy> result = allergyRepository.findAll(pageable); return result.map(allergy -> allergyMapper.allergyToAllergyDTO(allergy)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Allergy> findAll(Context iContext) throws MapperException\n {\n try\n {\n ArrayList<ArrayList<String>> wValuesTable = AllergiesTDG.selectAll(iContext);\n ArrayList<Allergy> wStoredAllergies = new ArrayList<Allergy>(wValuesTable.size());\n for (int i = 0; i < wValuesTab...
[ "0.65710336", "0.59830374", "0.5927515", "0.58868253", "0.5885894", "0.58791715", "0.587667", "0.58746046", "0.58368665", "0.5815656", "0.5815122", "0.5781196", "0.5780273", "0.5722919", "0.5710787", "0.57062936", "0.57044774", "0.5690056", "0.56812495", "0.56593835", "0.5653...
0.5593165
28
Get one allergy by id.
@Override @Transactional(readOnly = true) public AllergyDTO findOne(String id) { log.debug("Request to get Allergy : {}", id); Allergy allergy = allergyRepository.findOne(id); AllergyDTO allergyDTO = allergyMapper.allergyToAllergyDTO(allergy); return allergyDTO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Allergy getOne(long iAllergyId, Context iContext) throws MapperException\n {\n try\n {\n ArrayList<String> fields = AllergiesTDG.select(iAllergyId, iContext);\n\n Allergy storedAllergy;\n Long id = Long.valueOf(fields.get(0));\n String allergy = fields.get(1);\n String...
[ "0.78180987", "0.6622277", "0.6605589", "0.6590268", "0.6580358", "0.6546958", "0.65468687", "0.6528998", "0.6508051", "0.65028614", "0.6492791", "0.64651763", "0.64476395", "0.6443885", "0.6434717", "0.6433811", "0.6429874", "0.6389703", "0.6389126", "0.63890916", "0.6378050...
0.7726906
1
Delete the allergy by id.
@Override public void delete(String id) { log.debug("Request to delete Allergy : {}", id); allergyRepository.delete(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void deleteAllergy(final Context context, final String allergyId) {\n\n // Set initial state\n loader.setVisibility(View.VISIBLE);\n allergyRecyclerViewList.setVisibility(View.GONE);\n\n // Url Creation\n String url = ServiceUrls.KEY_HEALTHBOOK_ALLERGIES\n ...
[ "0.76815", "0.72938925", "0.7271117", "0.7271117", "0.7271117", "0.7271117", "0.7271117", "0.7167076", "0.71517545", "0.7149294", "0.7149294", "0.7149294", "0.7149294", "0.7149294", "0.7149294", "0.7149294", "0.7149294", "0.7149294", "0.7149294", "0.7121466", "0.7088032", "...
0.86429214
0
either add or update
@POST @Path( "/" ) @Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } ) @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } ) public String addUpdateUser( User user ){ if( user.getId() == null ){ System.out.println( "adding user " + user ); api.addUser( user ); }else{ System.out.println( "updating user " + user ); api.updateUser( user.getId(), user ); } return user.getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "E update(E entiry);", "Update createUpdate();", "public boolean update(New object);", "public void addAndReturnOld() {\n\n }", "Item update(Item item);", "public void saveorupdate(Blog blog) {\n\t\t\r\n\t}", "E update(E entity);", "E update(E entity);", "@Override\n\tpublic void update(Object en...
[ "0.6507579", "0.6471769", "0.622227", "0.61529183", "0.61281836", "0.6073619", "0.60049903", "0.60049903", "0.5992799", "0.5976394", "0.5959604", "0.5877157", "0.58644694", "0.58633995", "0.58616304", "0.5849374", "0.5837665", "0.58211994", "0.58175105", "0.58147794", "0.5814...
0.0
-1
Test the calculMetricSuperior method in case the teacher has the best score but the student does not lose points
@Test public void calculMetricSuperiorTeacherBetterScoreButNoLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculMetricSuperior(new ModelValue(25f, 1f), 12f, 11f), new Float(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculMetricInferiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(25f, 1f), 12f, 13f), new Float(0));\r\n\t}", "@Test\r\n\tpublic void calculMetricInferiorStudentBetterScoreTest() {\r\n\t\tAssert.assertEquals(UtilCa...
[ "0.78966254", "0.78339237", "0.7553964", "0.75243425", "0.7507441", "0.6767303", "0.6721163", "0.67067957", "0.66722417", "0.65143406", "0.64983636", "0.644412", "0.6422344", "0.64120287", "0.6374801", "0.63638055", "0.6356056", "0.6352859", "0.6332009", "0.63194394", "0.6319...
0.8282656
0
Test the calculMetricSuperior method in case the teacher has the best score and the student loses points
@Test public void calculMetricSuperiorWithLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculMetricSuperior(new ModelValue(10f, 1f), 12f, 9f), new Float(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculMetricSuperiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricSuperior(new ModelValue(25f, 1f), 12f, 11f), new Float(0));\r\n\t}", "@Test\r\n\tpublic void calculMetricInferiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.asse...
[ "0.8272483", "0.7888385", "0.77277577", "0.7585104", "0.73517466", "0.6642251", "0.66113293", "0.6605792", "0.65927386", "0.6441017", "0.6422964", "0.6377978", "0.6372456", "0.6339045", "0.6270938", "0.6250483", "0.6243135", "0.62298274", "0.6214278", "0.62042695", "0.6200571...
0.7472283
4
Test the calculMetricInferior in case the student has the best score
@Test public void calculMetricInferiorStudentBetterScoreTest() { Assert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(25f, 2f), 12f, 8f), new Float(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculMetricInferiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(25f, 1f), 12f, 13f), new Float(0));\r\n\t}", "public double getBestScore();", "@Test\r\n\tpublic void calculMetricInferiorTeacherWithLostPointsTest...
[ "0.7344533", "0.7278847", "0.6992078", "0.6970935", "0.66770136", "0.64853907", "0.6331485", "0.6235339", "0.6222726", "0.6188881", "0.61694825", "0.6158854", "0.6146854", "0.6104224", "0.60217047", "0.6006867", "0.60029376", "0.59989613", "0.5979106", "0.59661084", "0.592169...
0.80869484
0
Test the calculMetricInferior method in case the teacher has the best score but the student does not lose points
@Test public void calculMetricInferiorTeacherBetterScoreButNoLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(25f, 1f), 12f, 13f), new Float(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculMetricInferiorStudentBetterScoreTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(25f, 2f), 12f, 8f), new Float(0));\r\n\t}", "@Test\r\n\tpublic void calculMetricInferiorTeacherWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.cal...
[ "0.8126423", "0.7989691", "0.79486895", "0.7233247", "0.689479", "0.67090684", "0.642355", "0.6407112", "0.6403034", "0.6348381", "0.6321082", "0.62540776", "0.61529076", "0.60980284", "0.60766625", "0.60729843", "0.6068935", "0.6065786", "0.60592675", "0.60488975", "0.602290...
0.8290299
0
Test the calculMetricInferior method in case the teacher has the best score and the student loses points
@Test public void calculMetricInferiorTeacherWithLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(10f, 1f), 12f, 15f), new Float(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculMetricInferiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricInferior(new ModelValue(25f, 1f), 12f, 13f), new Float(0));\r\n\t}", "@Test\r\n\tpublic void calculMetricInferiorStudentBetterScoreTest() {\r\n\t\tAssert.assertEquals(UtilCa...
[ "0.82798094", "0.79968685", "0.7895338", "0.6996404", "0.6817906", "0.6503532", "0.63410175", "0.63060695", "0.6213438", "0.6186083", "0.6180997", "0.61443835", "0.6128728", "0.6052757", "0.60366535", "0.6011133", "0.6004872", "0.59799176", "0.5938814", "0.59197617", "0.59184...
0.80301714
1
Test the calculQualityAxis method in the case where there is no loss of points
@Test public void calculQualityAxisWithNoLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 4f), new Float(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByQualityAxisTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseExcept...
[ "0.81458336", "0.71076864", "0.6970126", "0.6458979", "0.62034094", "0.6166459", "0.6166459", "0.6025716", "0.6004621", "0.5985917", "0.59597605", "0.5924628", "0.591369", "0.584853", "0.58358055", "0.5797557", "0.57910645", "0.57488585", "0.573397", "0.5695855", "0.5656019",...
0.7973446
1
Test the calculQualityAxis method in the case where there is loss of points
@Test public void calculQualityAxisWithLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculQualityAxisWithNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 4f), new Float(0));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByQualityAxisTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseExce...
[ "0.77170044", "0.72174096", "0.69108933", "0.6441283", "0.6141701", "0.6071107", "0.60153615", "0.60153615", "0.59853554", "0.5952076", "0.5927377", "0.588561", "0.5885262", "0.5826931", "0.57912415", "0.5706558", "0.5679898", "0.5670425", "0.5665655", "0.5661087", "0.5611149...
0.8127569
0
Test the calculLostPointsByOneRule method in the case where there is not loss of points
@Test public void calculLostPointsByOneRuleNoLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 0), new Float(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 1), new Float(1));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByRulesTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsBy...
[ "0.8446018", "0.77630806", "0.77342206", "0.7585393", "0.7378788", "0.7293457", "0.7052196", "0.6935371", "0.64574677", "0.62280256", "0.6204033", "0.6173162", "0.6074273", "0.59695", "0.59682244", "0.59532166", "0.5940035", "0.58844346", "0.5878208", "0.5829124", "0.58044034...
0.82578737
1
Test the calculLostPointsByOneRule method in the case where there is loss of points
@Test public void calculLostPointsByOneRuleWithLostPointsTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 1), new Float(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 0), new Float(0));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByRulesTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByRu...
[ "0.8112441", "0.7728548", "0.7676278", "0.7502418", "0.7318299", "0.7230452", "0.6974788", "0.68530995", "0.63885087", "0.6126752", "0.6117863", "0.60984135", "0.6078356", "0.5972522", "0.594576", "0.590991", "0.5886802", "0.5849992", "0.58238757", "0.57795715", "0.5746964", ...
0.8399875
0
Test the calculLostPointsByOneRule method in the case where there is the maximum lost of points
@Test public void calculLostPointsByOneRuleWithLostPointsMaxTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 4), new Float(3)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleAboveMaxTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 3f), new Integer(5)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsTest() {\r\n\t\tAssert.assertEqu...
[ "0.8307383", "0.8101647", "0.7849039", "0.7811747", "0.7804769", "0.7776861", "0.7428197", "0.71802276", "0.6358134", "0.61681414", "0.61394143", "0.6004646", "0.5987671", "0.59731454", "0.5972492", "0.594513", "0.59126115", "0.5849117", "0.58159566", "0.5786991", "0.5771771"...
0.8584191
0
Test the calculLostPointsByOneRule method in the case where the minimum and the maximum have the same value
@Test public void calculLostPointsByOneRuleSameMaxAndMinTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 1f), new Integer(1)), new Float(0.5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleBetweenMaxMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 4f), new Integer(3)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleAboveMaxTest() {\r\n\t\tAssert.assertEqua...
[ "0.8587551", "0.82298136", "0.80785096", "0.80229425", "0.7471957", "0.71437967", "0.7018208", "0.6795701", "0.6351793", "0.62922263", "0.5985186", "0.592142", "0.5914836", "0.5912157", "0.58941966", "0.58472735", "0.5820202", "0.5805988", "0.58034605", "0.5791757", "0.579056...
0.85758954
1
Test the calculLostPointsByOneRule method in the case where there is the maximum loss of points
@Test public void calculLostPointsByOneRuleAboveMaxTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 3f), new Integer(5)), new Float(1.5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsMaxTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 4), new Float(3));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade...
[ "0.8451035", "0.8155005", "0.7824953", "0.77427423", "0.7721268", "0.7574528", "0.7376598", "0.70609826", "0.6302233", "0.6144698", "0.61233294", "0.6005026", "0.59669054", "0.5902126", "0.58944464", "0.5861235", "0.58606845", "0.5786163", "0.5784562", "0.57841104", "0.577113...
0.8102123
2
Test the calculLostPointsByOneRule method in the case where there is no lost of points
@Test public void calculLostPointsByOneRuleBelowMinTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(2f, 0.5f, 3f), new Integer(1)), new Float(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 1), new Float(1));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calc...
[ "0.84678966", "0.8323226", "0.78703046", "0.77981937", "0.7405548", "0.73743886", "0.711806", "0.70326483", "0.6497389", "0.62691575", "0.6248399", "0.62018424", "0.61337435", "0.60936165", "0.6058259", "0.5923709", "0.59136987", "0.58948594", "0.5879857", "0.58283967", "0.58...
0.76336235
4
Test the calculLostPointsByOneRule method in the case where there is lost of points, but not the minimum loss or maximum loss
@Test public void calculLostPointsByOneRuleBetweenMaxMinTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 4f), new Integer(3)), new Float(1.5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 1), new Float(1));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calc...
[ "0.83035886", "0.80936813", "0.799385", "0.79132026", "0.77447855", "0.7684235", "0.7622606", "0.7188108", "0.6325896", "0.6232325", "0.6129972", "0.6091378", "0.5988136", "0.5899876", "0.5859215", "0.57947886", "0.5790817", "0.57784134", "0.57097405", "0.5704847", "0.5684685...
0.7438064
7
Test the calculLostPointsByQualityAxisTest method
@Test public void calculLostPointsByQualityAxisTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { listLostPoints.put("TestOfTeacher", 0.0f); Assert.assertEquals(UtilCalculGrade.calculLostPointsByQualityAxis(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, projectName, idModule), listLostPoints); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "@Test\r\n\tpublic void calculQualityAxisWithNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfSt...
[ "0.8468958", "0.7851625", "0.74788", "0.7299718", "0.7130885", "0.67437094", "0.6556324", "0.6497177", "0.6476212", "0.6391987", "0.63077444", "0.62252426", "0.6203391", "0.6189154", "0.6187728", "0.6118046", "0.6023919", "0.6004615", "0.59955144", "0.59885144", "0.5973219", ...
0.8138975
1
Test the calculLostPointsByQualityAxisTest method in the case where one of metric is absent
@Test public void calculLostPointsByQualityAxisIfOneMetricIsAbsentTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { listScoreMetricStudent.remove("test"); listLostPoints.put("TestOfTeacher", 0.0f); Assert.assertEquals(UtilCalculGrade.calculLostPointsByQualityAxis(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, projectName, idModule), listLostPoints); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByQualityAxisIfOneQualityAxisIsAbsentTest()\r\n\t\t\tthrows ClassNotFoundException,...
[ "0.8118438", "0.79471123", "0.78985065", "0.78703266", "0.70547026", "0.6811029", "0.6628164", "0.66165835", "0.6328559", "0.6259161", "0.6227096", "0.6196721", "0.61830723", "0.6148761", "0.6117726", "0.6095807", "0.6093641", "0.60894865", "0.6078185", "0.60662746", "0.60662...
0.80308723
1
Test the calculLostPointsByQualityAxisTest method in the case where one of quality axis is disabled
@Test public void calculLostPointsByQualityAxisIfOneQualityAxisIsAbsentTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { mapQuality.remove("Comments"); listLostPoints.remove("Comments"); listLostPoints.put("TestOfTeacher", 0.0f); Assert.assertEquals(UtilCalculGrade.calculLostPointsByQualityAxis(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, projectName, idModule), listLostPoints); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "@Test\r\n\tpublic void calculQualityAxisWithNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfSt...
[ "0.82014555", "0.7884111", "0.783239", "0.7327605", "0.6554659", "0.6449128", "0.6385282", "0.6372772", "0.6238454", "0.62307024", "0.6127002", "0.6062908", "0.59602576", "0.58786213", "0.58758736", "0.5868658", "0.5856843", "0.584966", "0.58278334", "0.58278334", "0.5821623"...
0.7691201
3
Test the calculLostPointsByRules methods
@Test public void calculLostPointsByRulesTest() { Assert.assertEquals(UtilCalculGrade.calculLostPointsByRules(mapConf, mapIssues), new Float(3.5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void calculLostPointsByOneRuleWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 1f, 3f), 1), new Float(1));\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calc...
[ "0.814826", "0.77701205", "0.7429338", "0.7132871", "0.7024664", "0.69248146", "0.6828207", "0.6817716", "0.65103096", "0.64962727", "0.6373492", "0.63510615", "0.61791754", "0.6150029", "0.614223", "0.607608", "0.6063145", "0.5999572", "0.5969985", "0.59530073", "0.59325904"...
0.84911126
0
Test the getAllGrades with no adjustment about the TestOfTeacher qualityAxis
@Test public void getAllGradesWithNoAdjustmentTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { listAllGrades.put("FinalGrade", 14.0f); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesTestWithDisableQualityAxisTest() {\r\n\t\tmapQuality.remove(\"Comments\");\r\n\t\tlistAllGrades.put(\"FinalGrade\", 15.5f);\r\n\t\ttry {\r\n\t\t\tAssert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher,\r\n\t\t\t\t\tmapConf, map...
[ "0.8135581", "0.8056568", "0.79180515", "0.7826154", "0.76562667", "0.739375", "0.7135859", "0.6994421", "0.69108856", "0.6739864", "0.66429704", "0.6565025", "0.63743985", "0.6338024", "0.6304901", "0.6121529", "0.6093092", "0.60785145", "0.59980136", "0.5799916", "0.5785209...
0.7026425
7
Test the getAllGrades with no adjustment about the TestOfTeacher qualityAxis because it is at the limit with the modification of lost points Comments
@Test public void getAllGradesWithNoAdjustementLimitTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { mapQuality.put("Comments", new ModelValue(25f, 3f)); listAllGrades.put("Comments", 3f); listAllGrades.put("TestOfTeacher", 0.0f); listAllGrades.put("FinalGrade", 12.5f); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule), listAllGrades); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesWithChangeOfTestOfTeacherValueAndNoAdjustementWithLimitTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tmapQuality.put(\"TestOfTeacher\", new ModelValue(90f));\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 9f)...
[ "0.8149694", "0.79299134", "0.7830311", "0.76072866", "0.74570334", "0.7280116", "0.7209664", "0.68826073", "0.68796253", "0.6750114", "0.66667837", "0.66610587", "0.6657453", "0.6621294", "0.63615555", "0.6299606", "0.6136111", "0.5933948", "0.5927877", "0.5903461", "0.58847...
0.76902044
3
Test the getAllGrades with adjustment about the TestOfTeacher qualityAxis with the modification of lost points Comments
@Test public void getAllGradesWithAdjustementTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { mapQuality.put("Comments", new ModelValue(25f, 5f)); listAllGrades.put("FinalGrade", 10.5f); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesWithChangeOfTestOfTeacherValueAndAdjustementTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tmapQuality.put(\"TestOfTeacher\", new ModelValue(90f));\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 10f));\r\n\t\t...
[ "0.78347886", "0.763811", "0.75721514", "0.747486", "0.71067226", "0.6966276", "0.69072545", "0.6558046", "0.6476315", "0.6410799", "0.63269603", "0.6238056", "0.6223581", "0.6205531", "0.6084773", "0.6012656", "0.5963906", "0.5934126", "0.5913338", "0.5900714", "0.58956534",...
0.7312474
4
Test the getAllGrades with no adjustment about the TestOfTeacher qualityAxis with the modification of TestOfTeacher quality axis value
@Test public void getAllGradesWithChangeOfTestOfTeacherValueAndNoAdjustementTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { mapQuality.put("TestOfTeacher", new ModelValue(90f)); mapQuality.put("Comments", new ModelValue(25f, 5f)); listAllGrades.put("FinalGrade", 10.5f); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesWithChangeOfTestOfTeacherValueAndAdjustementTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tmapQuality.put(\"TestOfTeacher\", new ModelValue(90f));\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 10f));\r\n\t\t...
[ "0.7703128", "0.7696212", "0.7605513", "0.73093057", "0.7219255", "0.6701414", "0.668712", "0.6608348", "0.6520768", "0.651966", "0.64139146", "0.63646847", "0.6196473", "0.610936", "0.60461205", "0.5965785", "0.59553695", "0.58869517", "0.5833878", "0.5827719", "0.5802907", ...
0.7749301
0
Test the getAllGrades with no adjustment (at the limit) about the TestOfTeacher qualityAxis with the modification of TestOfTeacher quality axis value
@Test public void getAllGradesWithChangeOfTestOfTeacherValueAndNoAdjustementWithLimitTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { mapQuality.put("TestOfTeacher", new ModelValue(90f)); mapQuality.put("Comments", new ModelValue(25f, 9f)); listAllGrades.put("FinalGrade", 6.5f); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesTestWithDisableQualityAxisTest() {\r\n\t\tmapQuality.remove(\"Comments\");\r\n\t\tlistAllGrades.put(\"FinalGrade\", 15.5f);\r\n\t\ttry {\r\n\t\t\tAssert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher,\r\n\t\t\t\t\tmapConf, map...
[ "0.76485384", "0.75946736", "0.756612", "0.72263724", "0.7224684", "0.6720864", "0.65917736", "0.6573586", "0.65229285", "0.64556533", "0.6376708", "0.6310993", "0.6017342", "0.59682447", "0.58778936", "0.5855909", "0.5779896", "0.5750749", "0.57179314", "0.56784505", "0.5673...
0.7673803
0
Test the getAllGrades with adjustment about the TestOfTeacher qualityAxis with the modification of TestOfTeacher quality axis value
@Test public void getAllGradesWithChangeOfTestOfTeacherValueAndAdjustementTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { mapQuality.put("TestOfTeacher", new ModelValue(90f)); mapQuality.put("Comments", new ModelValue(25f, 10f)); listAllGrades.put("FinalGrade", new Float(5.5)); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesWithChangeOfTestOfTeacherValueAndNoAdjustementTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tmapQuality.put(\"TestOfTeacher\", new ModelValue(90f));\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 5f));\r\n\t\...
[ "0.738001", "0.7307466", "0.7198928", "0.6980829", "0.6806002", "0.6717024", "0.6348558", "0.60673016", "0.6057839", "0.60308886", "0.595815", "0.58519506", "0.5803712", "0.57997376", "0.5759632", "0.575306", "0.5700244", "0.5699897", "0.5683543", "0.56818146", "0.5679528", ...
0.7787598
0
Test the getAllGrades when one of quality axis is disable
@Test public void getAllGradesTestWithDisableQualityAxisTest() { mapQuality.remove("Comments"); listAllGrades.put("FinalGrade", 15.5f); try { Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); } catch (ClassNotFoundException | SonarqubeDataBaseException | SQLException | IOException e) { // TODO Auto-generated catch block e.printStackTrace(); System.out.println(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesWithDisableAllQualityAxisTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tmapQuality.remove(\"Comments\");\r\n\t\tmapQuality.remove(\"TestOfTeacher\");\r\n\t\tmapQuality.remove(\"TestOfStudent\");\r\n\t\tmapQuality.remo...
[ "0.7730536", "0.64471936", "0.6297192", "0.62519443", "0.6248497", "0.6248497", "0.62178564", "0.61768806", "0.60430413", "0.5924663", "0.58709484", "0.5845521", "0.5845521", "0.58253163", "0.5786978", "0.57103324", "0.566209", "0.566209", "0.5656477", "0.5647937", "0.564591"...
0.7964835
0
Test the getAllGrades when all quality axis is disable
@Test public void getAllGradesWithDisableAllQualityAxisTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { mapQuality.remove("Comments"); mapQuality.remove("TestOfTeacher"); mapQuality.remove("TestOfStudent"); mapQuality.remove("Complexity"); listAllGrades.put("FinalGrade", 16.5f); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssues, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesTestWithDisableQualityAxisTest() {\r\n\t\tmapQuality.remove(\"Comments\");\r\n\t\tlistAllGrades.put(\"FinalGrade\", 15.5f);\r\n\t\ttry {\r\n\t\t\tAssert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher,\r\n\t\t\t\t\tmapConf, map...
[ "0.8114099", "0.65270185", "0.6440972", "0.6230945", "0.6164026", "0.61061925", "0.6062767", "0.59912324", "0.5969657", "0.5969657", "0.594799", "0.5877167", "0.5868077", "0.57932776", "0.57835704", "0.5773817", "0.5761424", "0.56881034", "0.56881034", "0.5649855", "0.5632388...
0.8031384
1
Test the getAllGrades when there are no issues so no lost points about the rules
@Test public void getAllGradesWithNoRuleLostPointsTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { listAllGrades.put("FinalGrade", 17.5f); Assert.assertEquals(UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssuesEmpty, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void getAllGradesWithNoAdjustementLimitTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 3f));\r\n\t\tlistAllGrades.put(\"Comments\", 3f);\r\n\t\tlistAllGrades.put(\"TestOfTeacher\", 0.0f)...
[ "0.7658537", "0.76080054", "0.7321868", "0.73061115", "0.7059442", "0.7048334", "0.68787783", "0.6858854", "0.65408814", "0.6380297", "0.63297194", "0.62269944", "0.6201113", "0.61562055", "0.60919714", "0.5996889", "0.59957707", "0.59387773", "0.59338474", "0.59116805", "0.5...
0.8025885
0
Test the getAllGrades when all is perfect, the student has 20 points
@Test public void getAllGradesWithPerfectGradeTest() throws ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException { // Filling with 'perfectScore' listScoreMetricStudent.put("comment_lines_density", 70f); listScoreMetricStudent.put("complexity", 11f); listScoreMetricStudent.put("test_success_density", 100f); listScoreMetricStudent.put("tests", 4f); listScoreMetricStudent.put("test_success_density_teacher", 1f); HashMap<String, Integer> mapIssuesEmpty = new HashMap<String, Integer>(); listAllGrades.put("FinalGrade", 20f); // changer project name par un projet Student nikel Assert.assertEquals( UtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf, mapIssuesEmpty, projectName, idModule).get("FinalGrade"), listAllGrades.get("FinalGrade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \n\tpublic void TestStudentGPA() throws PersonException{\n\t\tArrayList<Enrollment> EnrolledStudents = new ArrayList<Enrollment>();\n\t\tfor (int i = 0; i < Students.size(); i++){\n\t\t\tStudent student = Students.get(i);\n\t\t\tfor (int j = 0; j < Sections.size(); j++){\n\t\t\t\tSection section = Sections.g...
[ "0.7331831", "0.6924666", "0.67330027", "0.67207694", "0.6646601", "0.6641223", "0.64528763", "0.6372188", "0.63605493", "0.6237733", "0.6220465", "0.62120426", "0.6197756", "0.61600703", "0.6096623", "0.6084923", "0.60531604", "0.60028124", "0.5996337", "0.59672534", "0.5955...
0.7514758
0
After each test, the map is reconditionned
@After public void clean() { listAllGrades.put("FinalGrade", 9f); listScoreMetricStudent.put("comment_lines_density", 50f); listScoreMetricStudent.put("complexity", 13f); listScoreMetricStudent.put("test_success_density", 50f); listScoreMetricStudent.put("tests", 4f); listScoreMetricStudent.put("test_success_density_teacher", 0.75f); mapQuality.put("TestOfTeacher", new ModelValue(50f)); mapQuality.put("TestOfStudent", new ModelValue(4f, 1f)); mapQuality.put("Comments", new ModelValue(25f, 1.5f)); mapQuality.put("Complexity", new ModelValue(20f, 1f)); listAllGrades.put("Comments", 1f); listLostPoints.put("Comments", 1.5f); try { SonarDataBase.getInstance().deleteTestAndScoreTeacher(99); } catch (ClassNotFoundException | SQLException | SonarqubeDataBaseException | IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMapErreur() {\n System.out.println(\"mapErreur\");\n Map<String, Object> map = new HashMap<String, Object>();\n boolean condition = false;\n String nomErreur = \"error\";\n String messageErreur = \"Erreur\";\n AbstractObjetAffaire.mapErreur(map, ...
[ "0.66897255", "0.63712096", "0.6307866", "0.6128408", "0.6020657", "0.60191125", "0.59785026", "0.59405357", "0.5925547", "0.5906613", "0.58852816", "0.5876824", "0.5872001", "0.58598596", "0.58594674", "0.58493257", "0.58193034", "0.58040875", "0.57592773", "0.57576966", "0....
0.0
-1
Delete the value at the given position in the argument array, shifting all the subsequent elements down, and storing a 0 as the last element of the array.
public static void delete (int[] values, int pos) { if (pos < 0 || pos >= values.length) { return; } for (int i =pos;i<values.length-1;i++){ values[i]=values[i+1]; } values[values.length-1]=0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void remove(int index) {\n\t\tfor (int i = index; i < array.length - 1; i++) {\n\t\t\tarray[i] = array[i + 1];\n\t\t}\n\t\tint[] temp = new int[array.length - 1];\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\ttemp[i] = array[i];\n\t\t}\n\t\tint lastValue = array[array.length - 1];// index starts @ 0, so...
[ "0.70385414", "0.7017519", "0.6886514", "0.6618635", "0.6598399", "0.6370221", "0.6358928", "0.6257903", "0.62432814", "0.622368", "0.6192281", "0.61912423", "0.61718833", "0.612446", "0.6124451", "0.6114852", "0.61101013", "0.60718", "0.6055447", "0.60148585", "0.60140693", ...
0.62816685
7
Insert newInt at the given position in the argument array, shifting all the subsequent elements up to make room for it. The last element in the argument array is lost.
public static void insert (int[] values, int pos, int newInt) { if (pos < 0 || pos >= values.length) { return; } for (int i =values.length-1;i>pos;i--){ values[i]=values[i-1]; } values[pos]=newInt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(int newItem){\n itemArray[count] = newItem;\n count++;\n }", "public void insert(int i) {\n\t\tif (top > -2 && top < size - 1) {\n\t\t\ttop += 1;\n\t\t\tarr[top] = i;\n\t\t} else if (top == size - 1) {\n\t\t\tsize *= 2;\n\t\t\ttop += 1;\n\t\t\tarr = Arrays.copyOf(arr, size);\n...
[ "0.6577698", "0.65209085", "0.6302433", "0.625473", "0.6241101", "0.6202832", "0.6191634", "0.6127531", "0.6046703", "0.59850615", "0.58806854", "0.58708954", "0.5849615", "0.5844115", "0.57967204", "0.578046", "0.572711", "0.57176965", "0.5680419", "0.56566733", "0.56458664"...
0.70484805
0
Enforce memory limits at the query level
public void enforceMemoryLimits() { memoryManager.process(queries.values().stream() .filter(query -> query.getState() == RUNNING) .collect(toImmutableList())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getMemLimit();", "public void enforceCpuLimits()\n {\n for (QueryExecution query : queries.values()) {\n Duration cpuTime = query.getTotalCpuTime();\n Duration sessionLimit = getQueryMaxCpuTime(query.getSession());\n Duration limit = Ordering.natural().min(maxQuery...
[ "0.6463357", "0.6258122", "0.6142549", "0.61065906", "0.61053896", "0.61047816", "0.60904396", "0.59576476", "0.59384733", "0.5912205", "0.59090644", "0.58927375", "0.582437", "0.5767564", "0.5759958", "0.5665859", "0.5654348", "0.5645403", "0.56405324", "0.5621614", "0.56195...
0.7922804
0
Enforce query max runtime/execution time limits
public void enforceTimeLimits() { for (QueryExecution query : queries.values()) { if (query.getState().isDone()) { continue; } Duration queryMaxRunTime = SystemSessionProperties.getQueryMaxRunTime(query.getSession()); Duration queryMaxExecutionTime = SystemSessionProperties.getQueryMaxExecutionTime(query.getSession()); DateTime executionStartTime = query.getQueryInfo().getQueryStats().getExecutionStartTime(); DateTime createTime = query.getQueryInfo().getQueryStats().getCreateTime(); if (executionStartTime != null && executionStartTime.plus(queryMaxExecutionTime.toMillis()).isBeforeNow()) { query.fail(new PrestoException(EXCEEDED_TIME_LIMIT, "Query exceeded the maximum execution time limit of " + queryMaxExecutionTime)); } if (createTime.plus(queryMaxRunTime.toMillis()).isBeforeNow()) { query.fail(new PrestoException(EXCEEDED_TIME_LIMIT, "Query exceeded maximum time limit of " + queryMaxRunTime)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enforceCpuLimits()\n {\n for (QueryExecution query : queries.values()) {\n Duration cpuTime = query.getTotalCpuTime();\n Duration sessionLimit = getQueryMaxCpuTime(query.getSession());\n Duration limit = Ordering.natural().min(maxQueryCpuTime, sessionLimit);\n...
[ "0.67782617", "0.61578655", "0.6055849", "0.6024749", "0.6021401", "0.589849", "0.58485085", "0.57076204", "0.5688247", "0.5644335", "0.5541758", "0.5517438", "0.53197616", "0.5294798", "0.5286571", "0.52861553", "0.5282508", "0.52641845", "0.52637535", "0.52480423", "0.52396...
0.7773895
0
Enforce query CPU time limits
public void enforceCpuLimits() { for (QueryExecution query : queries.values()) { Duration cpuTime = query.getTotalCpuTime(); Duration sessionLimit = getQueryMaxCpuTime(query.getSession()); Duration limit = Ordering.natural().min(maxQueryCpuTime, sessionLimit); if (cpuTime.compareTo(limit) > 0) { query.fail(new ExceededCpuLimitException(limit)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enforceTimeLimits()\n {\n for (QueryExecution query : queries.values()) {\n if (query.getState().isDone()) {\n continue;\n }\n Duration queryMaxRunTime = SystemSessionProperties.getQueryMaxRunTime(query.getSession());\n Duration query...
[ "0.67912596", "0.61993307", "0.5999797", "0.5935547", "0.5715689", "0.5674095", "0.56102836", "0.5545965", "0.5501954", "0.5456445", "0.5380445", "0.5301391", "0.52398133", "0.52177536", "0.514283", "0.5126554", "0.5121441", "0.51158655", "0.50951743", "0.50728387", "0.505770...
0.7699659
0
Prune extraneous info from old queries
private void pruneExpiredQueries() { if (expirationQueue.size() <= maxQueryHistory) { return; } int count = 0; // we're willing to keep full info for up to maxQueryHistory queries for (QueryExecution query : expirationQueue) { if (expirationQueue.size() - count <= maxQueryHistory) { break; } query.pruneInfo(); count++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cleanCaches() {\n WorkspaceConfig workspace = mvc.model.getWorkspace();\n Set<String> used = new HashSet<>();\n // Get list of queries used by graphs\n for (GraphConfig graph : workspace.graphs) {\n graph.accept(new GraphVisitor() {\n\n @Override\n public void visit(Histo...
[ "0.6137974", "0.60396457", "0.60336506", "0.59666777", "0.5732814", "0.57315236", "0.5627398", "0.55582815", "0.55574006", "0.55375224", "0.55269736", "0.5515625", "0.5497979", "0.549117", "0.54909414", "0.5455026", "0.54494804", "0.5448657", "0.53781736", "0.5351406", "0.534...
0.7330001
0
Remove completed queries after a waiting period
private void removeExpiredQueries() { DateTime timeHorizon = DateTime.now().minus(minQueryExpireAge.toMillis()); // we're willing to keep queries beyond timeHorizon as long as we have fewer than maxQueryHistory while (expirationQueue.size() > maxQueryHistory) { QueryInfo queryInfo = expirationQueue.peek().getQueryInfo(); // expirationQueue is FIFO based on query end time. Stop when we see the // first query that's too young to expire if (queryInfo.getQueryStats().getEndTime().isAfter(timeHorizon)) { return; } // only expire them if they are older than minQueryExpireAge. We need to keep them // around for a while in case clients come back asking for status QueryId queryId = queryInfo.getQueryId(); log.debug("Remove query %s", queryId); queries.remove(queryId); expirationQueue.remove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pruneExpiredQueries()\n {\n if (expirationQueue.size() <= maxQueryHistory) {\n return;\n }\n\n int count = 0;\n // we're willing to keep full info for up to maxQueryHistory queries\n for (QueryExecution query : expirationQueue) {\n if (expira...
[ "0.6413024", "0.63464844", "0.60569656", "0.6046352", "0.5977744", "0.595924", "0.5899548", "0.5803787", "0.57309854", "0.55939883", "0.55511165", "0.5536414", "0.54937196", "0.54600847", "0.5451957", "0.5427613", "0.5425577", "0.5414294", "0.54102486", "0.5405757", "0.537071...
0.6647362
0
Set up a callback to fire when a query is completed. The callback will be called at most once.
static void addCompletionCallback(QueryExecution queryExecution, Runnable callback) { AtomicBoolean taskExecuted = new AtomicBoolean(); queryExecution.addStateChangeListener(newValue -> { if (newValue.isDone() && taskExecuted.compareAndSet(false, true)) { callback.run(); } }); // Need to do this check in case the state changed before we added the previous state change listener if (queryExecution.getState().isDone() && taskExecuted.compareAndSet(false, true)) { callback.run(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void queryDone(String queryId);", "public abstract void callback_query(CallbackQuery cq);", "@Override\n public void onCompleted() {\n logger.info(\"Forwarding for query {} complete.\", queryId);\n }", "public void callback() {\n }", "void databaseRequestCompleted();", "public void ca...
[ "0.6866363", "0.68124187", "0.64634573", "0.6433836", "0.63425714", "0.6165849", "0.6131895", "0.60969394", "0.60567373", "0.6041846", "0.60391706", "0.603861", "0.6037996", "0.6037996", "0.60235053", "0.59772587", "0.594987", "0.59466356", "0.5929146", "0.59143376", "0.59060...
0.66497445
2
CONSTRUCTORS. Creates a new ORS response that wraps the given generic FIX message. The message originated at the given originator and is associated with the given broker (identified by its ID). The message's actor and viewer users have the given IDs.
FIXResponseImpl (Message msg, BrokerID brokerID, Originator originator, UserID actorID, UserID viewerID) { super(msg); if (originator==null) { throw new NullPointerException(); } mBrokerID=brokerID; mOriginator=originator; mActorID=actorID; mViewerID=viewerID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private FIXResponseImpl()\r\n {\r\n mBrokerID=null;\r\n mOriginator=null;\r\n mActorID=null;\r\n mViewerID=null;\r\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic Response createResponse(ServerTransaction origServerTransaction, Response receivedResponse) throws SipException {...
[ "0.5470469", "0.50880176", "0.5002241", "0.49977988", "0.49283978", "0.4748907", "0.47200394", "0.4714359", "0.47093824", "0.46981284", "0.4696751", "0.46737733", "0.4623462", "0.46117765", "0.4607771", "0.45931906", "0.45853066", "0.45754963", "0.45748746", "0.4571277", "0.4...
0.69770765
0
Creates a new empty ORS response. This empty constructor is intended for use by JAXB.
private FIXResponseImpl() { mBrokerID=null; mOriginator=null; mActorID=null; mViewerID=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public BasicResponse() {\n }", "public static OperationResponse builder() {\n\t\treturn new OperationResponse();\n\t}", "public Response(){\n\t\t// nothing needed\n\t}", "private Response() {}", "private Response() {}", "public Res...
[ "0.6700569", "0.6561622", "0.6538784", "0.6320109", "0.6207654", "0.6207654", "0.61514753", "0.61312336", "0.6064919", "0.6064119", "0.60141015", "0.6010475", "0.600529", "0.5967317", "0.5954407", "0.5934422", "0.59017956", "0.5887787", "0.58673686", "0.58323675", "0.5822179"...
0.54715174
45
Assertion: (newPosition >= 1) && (newPosition <= numberOfEntries + 1)
private void makeRoom(int givenPosition) { int newIndex = givenPosition; int lastIndex = numberOfElements; // Move each entry to next higher index, starting at end of // list and continuing until the entry at newIndex is moved for (int index = lastIndex; index >= newIndex; index--) listArray[index + 1] = listArray[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assertEqual(long count, long size) {\n\t\t\n\t}", "@Test(timeout=1000)\n\tpublic void testAddWhenEndIsFull(){\n\t\tStudent[] array = new Student[7];\n\t\tarray[5] = s2; // This is the correct hash position of this student\n\t\tarray[6] = s4;\n\t\thashmap.setArray(array);\n\t\thashmap.add(s5);\n\t\t...
[ "0.595981", "0.5959586", "0.5852115", "0.58386594", "0.5817934", "0.577055", "0.5726139", "0.5693924", "0.56895137", "0.56800425", "0.56655335", "0.56220764", "0.56042296", "0.55995667", "0.5583512", "0.55805016", "0.55153203", "0.55056846", "0.54925203", "0.54685503", "0.544...
0.5035157
95
do deletion via api
@Override public void onClick(View v) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Response delete(Request request, Response response);", "@DELETE\n\tResponse delete();", "@Override\n public final void doDelete() {\n try {\n checkPermissions(getRequest());\n final List<APIID> ids = new ArrayList<APIID>();\n\n // Using ids in json inp...
[ "0.7795175", "0.7664374", "0.7389786", "0.7334245", "0.7323196", "0.7317715", "0.7303656", "0.7284355", "0.72746557", "0.7269513", "0.72170204", "0.7201085", "0.7199256", "0.7192013", "0.7182008", "0.7182008", "0.7182008", "0.7182008", "0.7182008", "0.7175482", "0.71706516", ...
0.0
-1
Peticiones a la API
public void mongoAPI(String url, String type) { final String URL_BASE = "https://api-rest-guia-miguelin-tfg.herokuapp.com/api"; // Local http://192.168.1.106:1234/ switch (type) { case ("GET"): new Login.GetDataTask().execute(URL_BASE + url); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"...
[ "0.6860081", "0.65967745", "0.65776837", "0.6571769", "0.64516556", "0.63420975", "0.6244077", "0.6233296", "0.6203747", "0.6140566", "0.61396134", "0.6126885", "0.61254936", "0.61004424", "0.6062432", "0.6061584", "0.60582674", "0.6058079", "0.605435", "0.6054335", "0.604287...
0.0
-1
Either this.step==null&&this.rest==null (Empty StepList) Or this.step!=null && this.rest!=null
public StepList(){ this.step=null; this.rest=null; this.weight=0; this.increment=0.0; this.decrement=0;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmptyStepList(){ return this.step==null&&this.rest==null;}", "private boolean isEmpty() {return first == null;}", "public ListOfStepList refine_StepList()\n { //When the inside stepList is a non-empty stepList\n if(!this.isEmptyStepList())\n { //If it is a Unknown structure, or a Unknow...
[ "0.8592179", "0.5999082", "0.5840628", "0.58235925", "0.5672565", "0.56227005", "0.55747885", "0.5547701", "0.5537655", "0.5504484", "0.54822797", "0.5447993", "0.54414237", "0.54414237", "0.54414237", "0.5433973", "0.54021096", "0.54008305", "0.54008305", "0.53924614", "0.53...
0.58776605
2
Constructor for empty stepList.
public StepList(Delta step, StepList rest) { this.step=step; this.rest=rest; this.weight=this.step.weight()+this.rest.weight(); this.increment=this.step.increase()+this.rest.increase(); this.decrement=this.step.decrease()+this.rest.decrease(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StepList(){ this.step=null; this.rest=null; this.weight=0; this.increment=0.0; this.decrement=0;}", "protected Step() {\n this(null);\n }", "public Step() {\n\n }", "private Node(@Nullable List<Step> steps) {\n this.step = null;\n this.children = constructChildNodes(steps)...
[ "0.76431364", "0.711104", "0.6778804", "0.6510628", "0.64503294", "0.6390682", "0.63129413", "0.6281211", "0.62804836", "0.6164203", "0.6162752", "0.61231345", "0.61129814", "0.6104511", "0.60919076", "0.6065273", "0.60470855", "0.60463256", "0.60135245", "0.60026246", "0.592...
0.6093881
14
Constructor for nonempty stepList.
public boolean isEmptyStepList(){ return this.step==null&&this.rest==null;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StepList(){ this.step=null; this.rest=null; this.weight=0; this.increment=0.0; this.decrement=0;}", "protected Step() {\n this(null);\n }", "public Step() {\n\n }", "private Node(@Nullable List<Step> steps) {\n this.step = null;\n this.children = constructChildNodes(steps)...
[ "0.7721153", "0.6828342", "0.65935725", "0.6563485", "0.6282939", "0.6181408", "0.6176365", "0.61419886", "0.6138304", "0.61366165", "0.6118225", "0.6117185", "0.5986596", "0.5900548", "0.58708113", "0.5868848", "0.5862717", "0.58166933", "0.5809616", "0.5809252", "0.5804551"...
0.5971854
13
insert a Delta in front of this list of delta
public StepList insert(Delta d){ return new StepList(d,this);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first...
[ "0.65800244", "0.63301516", "0.60612077", "0.6000127", "0.5950324", "0.5915911", "0.5893435", "0.5879797", "0.58688176", "0.5862621", "0.5838916", "0.5835393", "0.57926804", "0.5781395", "0.5777971", "0.5762926", "0.57582945", "0.5721833", "0.5712963", "0.56705314", "0.565617...
0.73933625
0
/Here should be a parameter whole_weight
public Sim sim() { if(!this.isEmptyStepList()) //non-empty StepList the weight is not 0 { double lwb=increase()/weight(); double upb=1-decrease()/weight(); //System.out.println("weight()="+weight()); //System.out.println("["+lwb+","+upb+"]"); return new Sim(lwb, upb); } else return new Sim(0.0,0.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setWeight(float weight){\n this.weight = weight;\n }", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "public void setWeight(float w) {\n weight = w;\n }", "public float getWeight();", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }...
[ "0.71781224", "0.70565706", "0.70366645", "0.70297015", "0.7025534", "0.7020067", "0.7002042", "0.7001454", "0.6992157", "0.6991001", "0.6972698", "0.6965003", "0.6961171", "0.6935473", "0.69042546", "0.6891187", "0.6884899", "0.6863941", "0.68592715", "0.68452495", "0.683638...
0.0
-1
A stepList is the constructor of DeltaList, DeltaSet, DeltaMultiset and DeltaMapping Take the DeltaList for example, the constructor of DeltaList is: DeltaList(StepList stepList) When the first partial solution candidate is a DeltaList, the stepList need to be refined. This refine_StepList() method will be called at that time by refine() method in DeltaList class
public ListOfStepList refine_StepList() { //When the inside stepList is a non-empty stepList if(!this.isEmptyStepList()) { //If it is a Unknown structure, or a UnknownRest structure if(!this.step.sim().isComplete()) { //If there is still some steps after, for example it is a Unknown structure //Refine this step and combine each of them to the rest steps // newStep1----+ // | // newStep2----+----this.rest // | // newStep3----+ if(!this.rest.isEmptyStepList()) { return this.rest.combine_StepList(this.step.refine());} //If there is no any step after else { if(!(this.step instanceof UnknownRest)) { return this.rest.combine_StepList(this.step.refine());} else{ return release(this.step.refine());} } } //If it is a deletion or insertion //It will be kept as the first step in this stepList //and it will be added to be the first step of each stepList generated by this.rest.refine_StepList() // +----restStepList1 // | //this.step---+----restStepList2 // | // +----restStepList3 else{ return extend_StepList(this.step, this.rest.refine_StepList());} } else return new ListOfStepList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StepList(Delta step, StepList rest)\n { this.step=step; \n this.rest=rest;\n this.weight=this.step.weight()+this.rest.weight();\n this.increment=this.step.increase()+this.rest.increase();\n this.decrement=this.step.decrease()+this.rest.decrease();\n }", "public StepList(){ this.step=null; th...
[ "0.61632603", "0.6002423", "0.58851564", "0.5870197", "0.5566338", "0.5289271", "0.5282119", "0.52353156", "0.51438385", "0.49879313", "0.49076036", "0.48816752", "0.48532388", "0.48457786", "0.4830903", "0.4830903", "0.48171428", "0.47929347", "0.4792022", "0.47644222", "0.4...
0.7124078
0
+stepList1 | return delta+stepList2 ======> ListOfStepList [(delta:stepList1),(delta:stepList2),(delta:stepList3)] | +stepList3
public ListOfStepList extend_StepList(Delta delta, ListOfStepList listoflist) { if (!listoflist.isEmptyListOfStepList()) { return extend_StepList(delta, listoflist.rest()).insert(listoflist.head().insert(delta));} else{ return new ListOfStepList();} // It is only used to recursion structure when listoflist.rest() is empty }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListOfStepList combine_StepList(CandidatesList cands)\n { if(!cands.isEmptyCandidatesList())\n { return combine_StepList(cands.restCands()).insert(new StepList(cands.fstDelta(),this));} \n else{ return new ListOfStepList();}\n }", "public ListOfStepList refine_StepList()\n { //When the inside ste...
[ "0.6170921", "0.61089987", "0.607243", "0.6043212", "0.5836524", "0.5822697", "0.5768628", "0.55581445", "0.5519908", "0.5519255", "0.5439766", "0.54051834", "0.53510344", "0.5251606", "0.52224684", "0.5206111", "0.52046645", "0.5202413", "0.51792806", "0.51300347", "0.511284...
0.64167655
0
cand1+ | return cand2+this ======> ListOfStepList [(cand1:this),(cand2:this)(cand3:this)] | cand3+
public ListOfStepList combine_StepList(CandidatesList cands) { if(!cands.isEmptyCandidatesList()) { return combine_StepList(cands.restCands()).insert(new StepList(cands.fstDelta(),this));} else{ return new ListOfStepList();} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTota...
[ "0.6291812", "0.5639954", "0.5623614", "0.5524628", "0.53814006", "0.5326576", "0.5220588", "0.5181395", "0.5144653", "0.50942796", "0.5079247", "0.5061748", "0.50594914", "0.5057616", "0.5052096", "0.50451964", "0.5031621", "0.502833", "0.50130236", "0.5012072", "0.5001744",...
0.6150311
1
Take DeltaList for example, Similarly apply to DeltaSet and DeltaMultiset cands=[ DeltaList(stepList1), DeltaList(stepList2), DeltaList(stepList3)] =====> return [stepList1, stepList2, stepList3]
public ListOfStepList release(CandidatesList cands) { if(!cands.isEmptyCandidatesList()) { if (cands.fstDelta() instanceof DeltaList) { DeltaList d=(DeltaList)cands.fstDelta(); return release(cands.restCands()).insert(d.getStepList()); } else if(cands.fstDelta() instanceof DeltaSet) { DeltaSet d=(DeltaSet)cands.fstDelta(); return release(cands.restCands()).insert(d.getStepList()); } else if(cands.fstDelta() instanceof DeltaMultiset) { DeltaMultiset d=(DeltaMultiset)cands.fstDelta(); return release(cands.restCands()).insert(d.getStepList()); } else if(cands.fstDelta() instanceof DeltaRec) { DeltaRec d =(DeltaRec) cands.fstDelta(); return release(cands.restCands()).insert(d.getStepList()); } else{ throw new RuntimeException("This release method will apply to the DeltaList, DeltaSet, DeltaMultiset and DeltaRec.\n"+cands);} } else{ return new ListOfStepList();} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListOfStepList extend_StepList(Delta delta, ListOfStepList listoflist)\n { if (!listoflist.isEmptyListOfStepList())\n { return extend_StepList(delta, listoflist.rest()).insert(listoflist.head().insert(delta));} \n else{ return new ListOfStepList();} // It is only used to recursion structure when lis...
[ "0.5928573", "0.5443688", "0.5337821", "0.5293537", "0.5111712", "0.50783306", "0.4937508", "0.49088436", "0.49013907", "0.48805854", "0.48769745", "0.48580718", "0.48536572", "0.48134595", "0.4811243", "0.4803138", "0.47993588", "0.47985741", "0.47815087", "0.47715414", "0.4...
0.5460957
1
TODO Autogenerated method stub
@Override public void coreProblemExecution() { }
{ "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 protected void onPostExecute(String result) { if (null != hud) hud.dismissHUD(); if (isCancelled()) { return; } if (result != null) { JSONObject obj = null; try { obj = new JSONObject(result); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { if (obj == null) { SomeDialog dialog = new SomeDialog("Error", Constant.INTERNET_CONNECT_ERROR, "OKay", "", null); dialog.show(fManager, "dialog"); } else { if (obj.getInt("success") == 1) { this.interfa.didSuccessWithMessage(obj.getString("message")); } else { this.interfa.didFailWithMessage(obj.getString("message")); } } } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } } else { SomeDialog dialog = new SomeDialog("Login", Constant.INTERNET_CONNECT_ERROR, "OK", "", null); dialog.show(fManager, "dialog"); } }
{ "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 protected void onPreExecute() { super.onPreExecute(); if (null != hud) hud.showHUD(); }
{ "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
Creates a new configuration option.
public ConfigurationOption(String key, T dflt, PropertyReader<T> reader) { this.key = key; this.dflt = dflt; this.value = dflt; this.reader = reader; if (OPTIONS.containsKey(key)) { throw new IllegalArgumentException("There is already a configuration option " + key + ". Cannot override."); } else { OPTIONS.put(key, this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract LcpConfigOption create(final int[] data);", "OPTION createOPTION();", "protected FromToOption createOption() {\n return new FromToOption();\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Configuration createConfiguration();", "private static Options makeOptions() {\n...
[ "0.6236046", "0.5962586", "0.5888914", "0.5855434", "0.58089465", "0.564141", "0.5629627", "0.55736405", "0.55552185", "0.54873234", "0.54870176", "0.5400746", "0.5382804", "0.5378257", "0.53645986", "0.5349769", "0.5343004", "0.5336156", "0.533232", "0.5327023", "0.532218", ...
0.55135345
9
Returns the value of this configuration option.
public T getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getConfigurationValue() {\n return newConfigValue;\n }", "public String getValue(String opt) {\n return (String)m_commandLine.getValue(opt);\n }", "public String getConfigurationValue(String name);", "public String getOption()\r\n {\r\n return ((COSString)option.getObjec...
[ "0.68577874", "0.67722493", "0.6708106", "0.65504694", "0.6481272", "0.6343294", "0.6343294", "0.6343294", "0.6343294", "0.6343294", "0.63392854", "0.6328932", "0.63220024", "0.63220024", "0.63212585", "0.6316458", "0.62944204", "0.62944204", "0.62944204", "0.62944204", "0.62...
0.0
-1
Returns the default value of this configuration option.
public T getDefault() { return dflt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDefaultValue () {\n return defaultValue;\n }", "public String getDefaultValue() {\n return defaultValue;\n }", "public String getDefaultValue() {\n\t\t\treturn this.defaultValue;\n\t\t}", "public String getDefaultValue() {\n return this.defaultValue;\n ...
[ "0.77755636", "0.7762527", "0.7745237", "0.77205837", "0.77063423", "0.7416858", "0.72810435", "0.72096664", "0.72096664", "0.7190134", "0.71650314", "0.71314937", "0.71311325", "0.7012629", "0.6995835", "0.6862627", "0.66956156", "0.6670308", "0.66083", "0.66083", "0.6575876...
0.5783528
71
Defines the value of this configuration option.
protected void setValue(T value) { this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConfigurationValue(String name, String value);", "void setOption(String name, Object value);", "FaxJob2HTTPRequestConverterConfigurationConstants(String value) {\n this.value = value;\n }", "public void setValue(Value value) {\n this.value = value;\n }", "public C...
[ "0.7109969", "0.62605757", "0.61512554", "0.5840083", "0.58141625", "0.57980263", "0.57980263", "0.57980263", "0.57980263", "0.57980263", "0.57600164", "0.5753116", "0.5753116", "0.5753116", "0.5753116", "0.5753116", "0.57472426", "0.5732385", "0.5722553", "0.57097644", "0.57...
0.0
-1
Returns the property key of this option.
public String getKey() { return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public String propKey() {\n return propKey;\n }", "public String getPropKey() {\n return propKey;\n }", "public String getPropertyMapKeyName() {\n return m_propertyMapKeyName;\n }", "public org.apache.calcite.av...
[ "0.78322005", "0.76687366", "0.7526891", "0.6671747", "0.6524124", "0.65208334", "0.6468758", "0.64491683", "0.64337486", "0.6423475", "0.64060473", "0.638593", "0.6384322", "0.6374955", "0.6374955", "0.6374955", "0.63725144", "0.63725144", "0.63725144", "0.6347066", "0.63470...
0.6250383
50
Turns this option into an entry of a properties set.
protected void toProperties(Properties properties, boolean dflt) { T val = dflt ? this.dflt : value; if (null != val) { properties.put(key, val); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Entry<String, Object>> propertySet(Object context);", "protected static Properties getProperties(boolean dflt) {\r\n Properties prop = new Properties();\r\n for (ConfigurationOption<?> option : OPTIONS.values()) {\r\n option.toProperties(prop, dflt);\r\n }\r\n return pr...
[ "0.56706876", "0.53164256", "0.4964775", "0.49634066", "0.485242", "0.48255956", "0.48130283", "0.47857893", "0.46978176", "0.46958065", "0.4692078", "0.4660224", "0.46527803", "0.46466112", "0.46403167", "0.46373937", "0.46373937", "0.46286255", "0.45963404", "0.45865366", "...
0.51205426
2
Reads this option from a properties file.
protected void fromProperties(Properties properties) { value = reader.read(properties, key, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertiesBasedOptionsReader(File path) throws IOException {\n\t\tthis.path = path.getCanonicalPath();\n\t\tif (!path.exists()) {\n\t\t\tLOGGER.info(\"File: \" + path.getName() + \" does not exist!\");\n\t\t\tLOGGER.info(\"Generating it!\");\n\t\t\tFileWriter fw = new FileWriter(path);\n\t\t\tfw.close();\n\...
[ "0.68664485", "0.6676402", "0.6256005", "0.6166365", "0.6154323", "0.6147221", "0.6131508", "0.6059028", "0.60248005", "0.60231346", "0.6019278", "0.59690773", "0.59615624", "0.59570813", "0.5861487", "0.5856432", "0.5852656", "0.5832135", "0.580061", "0.5795465", "0.57619655...
0.55017847
34
Clears this option by setting it to its default value.
protected void clear() { setValue(getDefault()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetToDefault() {\n if (_option != null) {\n setValue(_option.getDefault());\n notifyChangeListeners();\n }\n }", "public Builder clearDefaultValue() {\n bitField0_ = (bitField0_ & ~0x00000020);\n defaultValue_ = null;\n if (defaultValueBuilder_ != null) {\n ...
[ "0.7934357", "0.6905841", "0.6458897", "0.6448274", "0.628285", "0.62632525", "0.62517357", "0.62517357", "0.62517357", "0.62517357", "0.62517357", "0.62517357", "0.6220116", "0.62159216", "0.6205237", "0.62047654", "0.62047654", "0.61894965", "0.61406785", "0.61406785", "0.6...
0.71407205
1
Prevents external creation / static class.
protected Configuration() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ClassUtil() {}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "private PluginUtils() {\n\t\t//\t\tthrow new IllegalAccessError(\"Don't instantiate me. I'm a utility class!\");\n\t}"...
[ "0.6847133", "0.6763528", "0.66852534", "0.66323274", "0.65675336", "0.64256626", "0.64156234", "0.64156234", "0.6410282", "0.64067334", "0.64067334", "0.64067334", "0.64067334", "0.6394339", "0.6388286", "0.6366851", "0.6325852", "0.63214356", "0.63184816", "0.63015985", "0....
0.0
-1
Turns a String into a URL.
public static URL toUrl(String url) { URL result; try { result = new URL(url); } catch (MalformedURLException e) { LogManager.getLogger(Configuration.class).info("Turning " + url + " into URL : " + e.getMessage()); result = null; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static URL stringToUrl(String stringUrl) throws MalformedURLException{\r\n\t\treturn new URL(stringUrl);\r\n\t}", "protected URL stringToURL(String urlString){\n try{\n URL url = new URL(urlString);\n return url;\n }catch(MalformedURLException e){\n e.printS...
[ "0.78891724", "0.7700028", "0.73644835", "0.71885955", "0.7140535", "0.70869756", "0.70746326", "0.7068758", "0.7068758", "0.7064864", "0.703332", "0.6976374", "0.68869257", "0.6832905", "0.67306685", "0.66179585", "0.65772444", "0.6560044", "0.65456307", "0.63700235", "0.631...
0.7011072
11
Creates a String configuration option.
protected static ConfigurationOption<String> createStringOption(String key, String dflt) { return new ConfigurationOption<String>(key, dflt, PropertyReader.STRING_READER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}", "public CharStringOptionInspector() {\n this((CharTypeInfo) TypeInfoFactory.charTypeInfo);\n }", "StringConstant createStringConstant();", "public StringScalesOption(\n\t\t\tSt...
[ "0.5893402", "0.58044344", "0.57539", "0.57248676", "0.5692686", "0.5629585", "0.5611483", "0.5471324", "0.5430566", "0.5420042", "0.54091656", "0.54091656", "0.54091656", "0.54091656", "0.5396472", "0.53314596", "0.527162", "0.52633905", "0.5249166", "0.5245473", "0.52245635...
0.77200854
0
Creates a Boolean configuration option.
protected static ConfigurationOption<Boolean> createBooleanOption(String key, Boolean dflt) { return new ConfigurationOption<Boolean>(key, dflt, PropertyReader.BOOLEAN_READER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static PropertyDescriptionBuilder<Boolean> booleanProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Boolean.class, Parsers::parseBoolean);\n }", "BoolOperation createBoolOperation();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "Boolea...
[ "0.6791824", "0.6516602", "0.6353183", "0.6353183", "0.6353183", "0.6353183", "0.632724", "0.6059788", "0.6059788", "0.59413916", "0.5935365", "0.59061736", "0.5861163", "0.58524126", "0.5833169", "0.5823954", "0.575024", "0.56866354", "0.56445533", "0.5644528", "0.5644003", ...
0.7733358
0
Creates an Integer configuration option.
protected static ConfigurationOption<Integer> createIntegerOption(String key, Integer dflt) { return new ConfigurationOption<Integer>(key, dflt, PropertyReader.INTEGER_READER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static PropertyDescriptionBuilder<Integer> integerProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Integer.class, Parsers::parseInteger);\n }", "public abstract LcpConfigOption create(final int[] data);", "public TumpukanInteger(){\r\n this(KAPASITAS_DEFAULT);\r\n }", ...
[ "0.63210374", "0.63190717", "0.6217786", "0.60929143", "0.60314614", "0.60314614", "0.6030844", "0.59606147", "0.5672884", "0.56707263", "0.5587052", "0.5587052", "0.5542903", "0.5542903", "0.5491913", "0.54891485", "0.54612446", "0.54110354", "0.5406081", "0.5381993", "0.536...
0.78517413
0
Creates an Integer configuration option.
protected static ConfigurationOption<URL> createUrlOption(String key, URL dflt) { return new ConfigurationOption<URL>(key, dflt, PropertyReader.URL_READER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static ConfigurationOption<Integer> createIntegerOption(String key, Integer dflt) {\r\n return new ConfigurationOption<Integer>(key, dflt, PropertyReader.INTEGER_READER);\r\n }", "public static PropertyDescriptionBuilder<Integer> integerProperty(String name) {\n return PropertyDescript...
[ "0.78517413", "0.63210374", "0.63190717", "0.6217786", "0.60929143", "0.60314614", "0.60314614", "0.6030844", "0.59606147", "0.5672884", "0.56707263", "0.5587052", "0.5587052", "0.5542903", "0.5542903", "0.5491913", "0.54891485", "0.54612446", "0.54110354", "0.5406081", "0.53...
0.0
-1
Reads the configuration settings from the file.
public static void configure(File file) { Properties prop = new Properties(); FileInputStream in = null; try { in = new FileInputStream(file); prop.load(in); in.close(); Configuration.configure(prop); } catch (IOException e) { LogManager.getLogger(Configuration.class).error("While reading configuration file " + file.getAbsolutePath() + ": " + e.getMessage()); if (null != in) { try { in.close(); } catch (IOException e1) { // ignore } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void readConfigFile() {\n\n BufferedReader input = null;\n try {\n input = new BufferedReader(new FileReader(getConfigFile()));\n String sLine = null;\n while ((sLine = input.readLine()) != null) {\n final String[] sTokens = sLine.split(\"=\");\n ...
[ "0.7495376", "0.7036417", "0.6891699", "0.6888007", "0.6886657", "0.6748368", "0.6728861", "0.66651696", "0.6629505", "0.66269875", "0.6541595", "0.6525026", "0.64823955", "0.6475154", "0.64075434", "0.63340807", "0.6322379", "0.63004446", "0.6296282", "0.62868685", "0.624643...
0.64730144
14
Returns properties for default configuration (and modification).
public static Properties getDefaultProperties() { return getProperties(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Properties defaultProperties();", "public static Properties getPropertiesDefault() throws IOException {\n\t\treturn getProperties(\"/properties/configuration.properties\");\n\t\t\n\t}", "public final Properties getDefaultProperties() {\n \t\treturn properties;\n \t}", "public static Properties getDefaultProp...
[ "0.7760531", "0.7712014", "0.75686836", "0.7393798", "0.70889586", "0.70544684", "0.68998283", "0.6830459", "0.6821884", "0.6799249", "0.6730293", "0.6663306", "0.65880275", "0.6586291", "0.65673935", "0.6563451", "0.6551185", "0.65498483", "0.6545025", "0.6506654", "0.649673...
0.77501506
1
Returns properties for the actual configuration (and modification).
public static Properties getProperties() { return getProperties(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ConfigProperties getProperties() {\n return properties;\n }", "Map<String, String> getConfigProperties();", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "Properties getProperties();", "public abstract Properties getProperties();", "java...
[ "0.81435156", "0.7779627", "0.7687402", "0.74740934", "0.74173653", "0.74109715", "0.740422", "0.7321055", "0.7313991", "0.7270404", "0.7243973", "0.7179528", "0.7179528", "0.7130576", "0.71183354", "0.71183354", "0.71137196", "0.70890075", "0.7062231", "0.70194846", "0.70022...
0.713733
13
Returns properties for default configuration (and modification).
protected static Properties getProperties(boolean dflt) { Properties prop = new Properties(); for (ConfigurationOption<?> option : OPTIONS.values()) { option.toProperties(prop, dflt); } return prop; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Properties defaultProperties();", "public static Properties getDefaultProperties() {\r\n return getProperties(true);\r\n }", "public static Properties getPropertiesDefault() throws IOException {\n\t\treturn getProperties(\"/properties/configuration.properties\");\n\t\t\n\t}", "public final Properti...
[ "0.7760531", "0.77501506", "0.7712014", "0.75686836", "0.7393798", "0.70889586", "0.70544684", "0.68998283", "0.6830459", "0.6821884", "0.6799249", "0.6730293", "0.6663306", "0.65880275", "0.6586291", "0.65673935", "0.6563451", "0.6551185", "0.65498483", "0.6545025", "0.65066...
0.5855384
86
Creates a local configuration.
public static void configureLocal() { configure(getProperties(true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Configuration createConfiguration();", "public Config createConfig(String filename);", "public ManagedConfiguration createConfiguration() throws SmartFrogException, RemoteException {\n return ManagedConfiguration.createConfiguration(this, true, isClu...
[ "0.67377347", "0.6733373", "0.6505459", "0.61974216", "0.61760443", "0.61060905", "0.5992322", "0.5985753", "0.58477306", "0.5827095", "0.58268744", "0.57949615", "0.57715136", "0.5709285", "0.56616825", "0.56535", "0.56231356", "0.5607087", "0.5606574", "0.56040585", "0.5581...
0.67084754
2
Reads the configuration settings from the given properties.
public static void configure(Properties properties) { configure(properties, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\...
[ "0.7343569", "0.70375395", "0.6955661", "0.68327117", "0.68121964", "0.6797486", "0.6770553", "0.6765874", "0.6661096", "0.66034377", "0.6585537", "0.65854776", "0.6558759", "0.6451289", "0.6440318", "0.6422529", "0.6410395", "0.63741827", "0.6369869", "0.636438", "0.6353479"...
0.6543644
13
Reads the configuration settings from the given properties.
public static void configure(Properties properties, boolean useDefaults) { for (ConfigurationOption<?> option : OPTIONS.values()) { if (doSetProperty(properties, option.getKey(), useDefaults)) { option.fromProperties(properties); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\...
[ "0.7343569", "0.70375395", "0.6955661", "0.68327117", "0.68121964", "0.6797486", "0.6770553", "0.6765874", "0.6661096", "0.66034377", "0.6585537", "0.65854776", "0.6558759", "0.6543644", "0.6451289", "0.6440318", "0.6422529", "0.6410395", "0.63741827", "0.6369869", "0.636438"...
0.0
-1
Returns whether a property shall be taken from the given properties object.
private static boolean doSetProperty(Properties properties, String key, boolean useDefaults) { return useDefaults || (!useDefaults && null != properties.get(key)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isPropertyRelevant(String property) {\n return relevantProperties == null || relevantProperties.contains(property);\n }", "boolean hasProperty(String propertyName);", "boolean hasPropertyLike(String name);", "boolean containsProperty(String name);", "boolean hasProperty();", "boolean ...
[ "0.71541655", "0.7114978", "0.70901483", "0.70852023", "0.70569825", "0.70569825", "0.70569825", "0.69862336", "0.6907379", "0.6906482", "0.6789118", "0.67520034", "0.6750778", "0.6743775", "0.67188936", "0.66886073", "0.66829914", "0.6657248", "0.665582", "0.66356915", "0.66...
0.0
-1
Returns the address of the nimbus host.
public static String getNimbus() { return nimbus.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getInternalHostAddress() throws NotDiscoverUpnpGatewayException;", "public String getRnidsHostAddress() {\n\t\tString address = getProperties().getProperty(\"rnids.host.address\").trim();\n\t\treturn address;\n\t}", "private String GetHostAddress() throws UnknownHostException {\n return Inet4Addr...
[ "0.74357945", "0.7310796", "0.6834838", "0.67412376", "0.67053604", "0.65324855", "0.65072054", "0.6497783", "0.6353355", "0.6353312", "0.63470083", "0.6215398", "0.61933905", "0.61933905", "0.61668015", "0.61668015", "0.61668015", "0.6157703", "0.6150089", "0.61407286", "0.6...
0.6106749
21
Returns the address of the zookeeper server(s).
public static String getZookeeper() { return zookeeper.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getZookeeperUrl() {\n return zookeeper.getHost() + \":\" + zookeeper.getPort();\n }", "java.lang.String getServerAddress();", "public static int getZookeeperPort() {\r\n return zookeeperPort.getValue();\r\n }", "String zookeeperQuorum();", "public String getServerAddress() {\r\n...
[ "0.7386656", "0.6861203", "0.6799891", "0.6727018", "0.6719034", "0.6710208", "0.6561411", "0.6525129", "0.6492171", "0.64820105", "0.6470482", "0.64428943", "0.61001277", "0.609651", "0.6041015", "0.59984463", "0.59851503", "0.59760153", "0.59704405", "0.5945027", "0.5935486...
0.649074
9
Returns the zookeeper connect string from the given parameters.
public static String getZookeeperConnectString(String zookeepers, int zkPort) { StringTokenizer tokens = new StringTokenizer(zookeepers, ","); List<String> hosts = new ArrayList<String>(); while (tokens.hasMoreTokens()) { hosts.add(tokens.nextToken()); } Collections.shuffle(hosts); // try addressing different zookeepers as first StringBuffer result = new StringBuffer(); Iterator<String> iter = hosts.iterator(); while (iter.hasNext()) { result.append(iter.next()); result.append(":"); result.append(zkPort); if (iter.hasNext()) { result.append(","); } } return result.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getZookeeperUrl() {\n return zookeeper.getHost() + \":\" + zookeeper.getPort();\n }", "public static String getZookeeper() {\r\n return zookeeper.getValue();\r\n }", "String zookeeperQuorum();", "String getConnectionAlias();", "String getConnectionAlias();", "public String cre...
[ "0.6143442", "0.5630874", "0.55613786", "0.54710627", "0.54710627", "0.5438192", "0.54328454", "0.54162157", "0.5386156", "0.5386156", "0.5386156", "0.5349959", "0.52314895", "0.52314895", "0.52314895", "0.52314895", "0.50327855", "0.4959382", "0.4924063", "0.4924063", "0.487...
0.7219851
0
Returns the IP port to be used for zookeeper communications (curator).
public static int getZookeeperPort() { return zookeeperPort.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int zookeeperClientPort();", "default int getPort() {\n return getServer().getPort();\n }", "default Object port() {\n return metadata().get(\"server-port\");\n }", "public int getClientPort() {\n int clientPort = CLIENTSOCKET.getPort();\n return clientPort;\n }", "pu...
[ "0.8170358", "0.7327749", "0.7216459", "0.71180344", "0.71052736", "0.6986292", "0.6940914", "0.6936004", "0.6936004", "0.6936004", "0.69284374", "0.69096035", "0.6905731", "0.69031376", "0.6900234", "0.6893039", "0.6878093", "0.6878093", "0.6878093", "0.6878093", "0.68761635...
0.85736144
0
Returns the Zookeeper retry times.
public static int getZookeeperRetryTimes() { return zookeeperRetryTimes.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getZookeeperRetryInterval() {\r\n return zookeeperRetryInterval.getValue();\r\n }", "int getRetries();", "Integer totalRetryAttempts();", "public int getRetryCount() {\n return numberRetries;\n }", "public int getRecoveryRetries();", "public int getRetryCount() {\n ...
[ "0.7646703", "0.7264411", "0.7210489", "0.7198794", "0.7113833", "0.704674", "0.6973586", "0.6973586", "0.6936559", "0.6919966", "0.688783", "0.6876469", "0.682557", "0.6783107", "0.6748934", "0.672403", "0.6704179", "0.66857976", "0.66504395", "0.64829415", "0.63950646", "...
0.90846086
0
Returns the Zookeeper retry interval.
public static int getZookeeperRetryInterval() { return zookeeperRetryInterval.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getRetryInterval() {\r\n return configuration.getRetryInterval();\r\n }", "public long getRetryInterval() {\n return retryInterval;\n }", "public static int getZookeeperRetryTimes() {\r\n return zookeeperRetryTimes.getValue();\r\n }", "public int getRetryTimeoutInSec...
[ "0.81187236", "0.8106962", "0.75044715", "0.7373135", "0.71645397", "0.6896572", "0.6785797", "0.675772", "0.6684328", "0.659186", "0.6482066", "0.6469884", "0.6469884", "0.6468693", "0.6426405", "0.6403167", "0.63360435", "0.63099426", "0.6281983", "0.6263012", "0.62430567",...
0.8940778
0
Returns the thrift port.
@SuppressWarnings("rawtypes") public static int getThriftPort(Map stormConf) { int result = thriftPort.getValue(); // may be set explicitly, may be the default if (null != stormConf) { // on Nimbus, take over the one from Storm, ignore config Object cfg = stormConf.get(Config.NIMBUS_THRIFT_PORT); if (cfg instanceof Integer) { result = (Integer) cfg; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getThriftPort() {\r\n @SuppressWarnings(\"rawtypes\")\r\n Map stormConf = Utils.readStormConfig();\r\n return (Integer) stormConf.get(Config.NIMBUS_THRIFT_PORT);\r\n }", "public int getPort() {\n return this.config.getPort();\n }", "public int getPort();", ...
[ "0.8287569", "0.74750507", "0.74466443", "0.74466443", "0.74466443", "0.7416488", "0.7416488", "0.7399673", "0.73940045", "0.73750895", "0.73581606", "0.73581606", "0.73479843", "0.73479843", "0.73373073", "0.7316052", "0.7316052", "0.7316052", "0.7315572", "0.7315572", "0.73...
0.7507112
1
Returns the configured thrift port.
public static int getThriftPort() { @SuppressWarnings("rawtypes") Map stormConf = Utils.readStormConfig(); return (Integer) stormConf.get(Config.NIMBUS_THRIFT_PORT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\r\n public static int getThriftPort(Map stormConf) {\r\n int result = thriftPort.getValue(); // may be set explicitly, may be the default\r\n if (null != stormConf) { // on Nimbus, take over the one from Storm, ignore config\r\n Object cfg = stormConf.get...
[ "0.7752598", "0.7553752", "0.72447056", "0.7230022", "0.7140395", "0.71254027", "0.7094642", "0.7094642", "0.70866305", "0.70866305", "0.70866305", "0.7078184", "0.7078184", "0.7078184", "0.7078184", "0.7078184", "0.7078184", "0.70675206", "0.70675206", "0.70675206", "0.70669...
0.8407978
0
Returns the port of the event bus.
public static int getEventPort() { return eventPort.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPort() {\n\t\treturn Integer.parseInt(String.valueOf(port.getValue()));\n\t}", "public int getPort() {\n\t\treturn messageProcessor.getPort();\n\t}", "public Integer get_port() throws Exception {\n\t\treturn this.port;\n\t}", "public int getPort() {\n return this.config.getPort();\n }...
[ "0.7136318", "0.71213657", "0.69654536", "0.6946167", "0.6941143", "0.6941143", "0.69223607", "0.69223607", "0.69223607", "0.69096494", "0.69096494", "0.69048655", "0.69048655", "0.69048655", "0.69048655", "0.69048655", "0.69048655", "0.69048655", "0.69048655", "0.69048655", ...
0.7955047
0
Returns the event response timeout.
public static int getEventResponseTimeout() { return eventResponseTimeout.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTimeout() {\n return timeout;\n }", "public int getTimeout() {\n\t\treturn (Integer)getObject(\"timeout\");\n\t}", "public int getTimeout() {\r\n return timeout;\r\n }", "public long getTimeout() {\n return timeout;\n }", "public long getTimeout() {\n retu...
[ "0.78693926", "0.7863324", "0.78508747", "0.784136", "0.784136", "0.784136", "0.7805814", "0.77167684", "0.76865417", "0.76848316", "0.76722354", "0.75552833", "0.7487079", "0.7481314", "0.7413037", "0.73963755", "0.73389846", "0.73179615", "0.7227176", "0.71991676", "0.71167...
0.9041078
0
Returns the host of the event bus server.
public static String getEventHost() { return eventHost.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHost() {\n return messageProcessor.getIpAddress().getHostAddress();\n }", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "public String getHost() {\r\n \t\t...
[ "0.7673242", "0.72736233", "0.72679406", "0.72611636", "0.7221111", "0.72190845", "0.72190845", "0.7218159", "0.7214647", "0.7214647", "0.7196144", "0.7195356", "0.7195356", "0.7195356", "0.7195356", "0.7195356", "0.7195356", "0.71803164", "0.71331406", "0.7102711", "0.710093...
0.8131618
0
Returns whether Curator shall be used for pipeline signals.
public static boolean getPipelineSignalsCurator() { return pipelineSignalsCurator.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSignal();", "public boolean iCurrentInputSourceHasSignal() {\n\t\treturn mTVInputManager.getDefaultOutput().hasSignal();\n\t}", "boolean hasSignal();", "boolean hasPipelineContext();", "public boolean isCursing() {\n\t\treturn methods.settings.getSetting(1584) % 2 != 0;\n\t}", "public boolean i...
[ "0.65274745", "0.6090179", "0.6075198", "0.60670465", "0.57237923", "0.57070357", "0.5667155", "0.56507856", "0.56305635", "0.5523147", "0.55193925", "0.5469968", "0.5460685", "0.5447269", "0.54449195", "0.54361045", "0.54307693", "0.54225457", "0.54200715", "0.5399866", "0.5...
0.8141015
0
Returns the waiting time after sending the shutdown signals.
public static int getShutdownSignalWaitTime() { return shutdownEventWaitingTime.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getShutdownWaitTimeMs();", "public static int getWatcherWaitingTime() {\r\n return watcherWaitingTime.getValue(); \r\n }", "public int getWaitedTime() {\n\t\treturn this.waitedTime;\n\t}", "public int getTotalWait() {\n return totalWait;\n }", "public int getwaitTime(){\r\n\t...
[ "0.79678017", "0.7061213", "0.7041883", "0.69060916", "0.68253285", "0.67240906", "0.6611401", "0.6575627", "0.65210444", "0.64764225", "0.63729745", "0.6351063", "0.6316103", "0.6311898", "0.6300086", "0.6299614", "0.6257474", "0.6254883", "0.6233573", "0.6218368", "0.621572...
0.85355675
0
Turns the given text into a set of strings by splitting it using "," as delimiter.
public static Set<String> toSet(String text) { Set<String> result = new HashSet<String>(); if (null != text) { text = text.trim(); StringTokenizer names = new StringTokenizer(text, ","); while (names.hasMoreTokens()) { String tmp = names.nextToken(); tmp = tmp.trim(); if (tmp.length() > 0) { result.add(tmp); } } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<String> commaDelimitedStringToSet(String s) {\n Set<String> set = new HashSet<String>();\n String[] split = s.split(\",\");\n for (String aSplit : split) {\n String trimmed = aSplit.trim();\n if (trimmed.length() > 0)\n set.add(trimmed);\n...
[ "0.7221998", "0.71800077", "0.63775396", "0.631797", "0.61932206", "0.59420466", "0.58731365", "0.586018", "0.5844703", "0.5819821", "0.5809292", "0.5792671", "0.57855713", "0.576449", "0.57528645", "0.5703096", "0.56662256", "0.5642802", "0.5618933", "0.56133324", "0.5611682...
0.7875896
0
Transfers relevant infrastructure configuration information from this configuration to an options object.
public static void transferConfigurationTo(IOptionSetter options) { options.setOption(HOST_EVENT, getEventHost()); options.setOption(PORT_EVENT, getEventPort()); options.setOption(CONFIG_KEY_STORM_NIMBUS_HOST, getNimbus()); options.setOption(CONFIG_KEY_STORM_NIMBUS_PORT, getThriftPort()); options.setOption(EVENT_DISABLE_LOGGING, getEventDisableLogging()); options.setOption(PIPELINE_INTERCONN_PORTS, getPipelinePorts()); options.setOption(MONITORING_VOLUME_ENABLED, enableVolumeMonitoring()); options.setOption(RETRY_INTERVAL_ZOOKEEPER, getZookeeperRetryInterval()); options.setOption(RETRY_TIMES_ZOOKEEPER, getZookeeperRetryTimes()); options.setOption(WATCHER_WAITING_TIME, getWatcherWaitingTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConfigGeneratorApi(ToolOptions options) {\n super(options);\n }", "go.micro.runtime.RuntimeOuterClass.UpdateOptions getOptions();", "protected abstract void initializeOptions(Options options);", "public Options initOptions() {\n\n\t\tOptions privateOptions = new Options();\n\n\t\t//Algorithm optio...
[ "0.57968444", "0.5604578", "0.55597335", "0.5511616", "0.54630464", "0.5448833", "0.541403", "0.5375084", "0.53297853", "0.52332985", "0.52010864", "0.51907104", "0.5186587", "0.51842326", "0.51832104", "0.51401937", "0.5122", "0.51203924", "0.5118093", "0.51100826", "0.51039...
0.6793607
0
Transfers relevant parts of the Storm configuration back into the infrastructure configuration.
@SuppressWarnings({ "rawtypes" }) public static void transferConfigurationFrom(Map conf) { Properties prop = new Properties(); transferConfigurationFrom(conf, prop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void transferStateToConfig() {\r\n \t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.SEAM_DEFAULT_RUNTIME_NAME,\r\n \t\t\t\t\tjBossSeamHomeEditor.getValueAsString());\r\n \r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\...
[ "0.65677994", "0.59235984", "0.5877283", "0.58584815", "0.58165675", "0.56842023", "0.56667453", "0.5546133", "0.55456036", "0.55437195", "0.55419546", "0.55290765", "0.5479107", "0.5474444", "0.54555124", "0.5443438", "0.54312223", "0.54290044", "0.5422869", "0.54202914", "0...
0.49374542
94
Transfers relevant parts of the Storm configuration back into the infrastructure configuration.
@SuppressWarnings({ "rawtypes" }) protected static void transferConfigurationFrom(Map conf, Properties prop) { // transfer zookeeper information so that SignalMechanism can create Zookeeper frameworks if (null != conf.get(CONFIG_KEY_STORM_ZOOKEEPER_PORT)) { prop.put(PORT_ZOOKEEPER, conf.get(CONFIG_KEY_STORM_ZOOKEEPER_PORT).toString()); } if (null != conf.get(CONFIG_KEY_STORM_NIMBUS_PORT)) { prop.put(PORT_THRIFT, conf.get(CONFIG_KEY_STORM_NIMBUS_PORT).toString()); } if (null != conf.get(CONFIG_KEY_STORM_NIMBUS_HOST)) { prop.put(HOST_NIMBUS, conf.get(CONFIG_KEY_STORM_NIMBUS_HOST).toString()); } if (null != conf.get(CONFIG_KEY_STORM_ZOOKEEPER_SERVERS)) { Object zks = conf.get(CONFIG_KEY_STORM_ZOOKEEPER_SERVERS); String tmp = zks.toString(); if (zks instanceof Collection) { tmp = ""; for (Object o : (Collection) zks) { if (tmp.length() > 0) { tmp += ","; } tmp += o.toString(); } } prop.put(HOST_ZOOKEEPER, tmp); } if (null != conf.get(RETRY_TIMES_ZOOKEEPER)) { prop.put(RETRY_TIMES_ZOOKEEPER, conf.get(RETRY_TIMES_ZOOKEEPER).toString()); } if (null != conf.get(RETRY_INTERVAL_ZOOKEEPER)) { prop.put(RETRY_INTERVAL_ZOOKEEPER, conf.get(RETRY_INTERVAL_ZOOKEEPER).toString()); } // if storm has a configuration value and the actual configuration is not already // changed, than change the event bus configuration if (null != conf.get(HOST_EVENT)) { prop.put(HOST_EVENT, conf.get(HOST_EVENT)); } if (null != conf.get(Configuration.PORT_EVENT)) { prop.put(PORT_EVENT, conf.get(PORT_EVENT)); } if (null != conf.get(EVENT_DISABLE_LOGGING)) { prop.put(EVENT_DISABLE_LOGGING, conf.get(EVENT_DISABLE_LOGGING)); } if (null != conf.get(PIPELINE_INTERCONN_PORTS)) { prop.put(PIPELINE_INTERCONN_PORTS, conf.get(PIPELINE_INTERCONN_PORTS)); } // TODO use transfer above transfer(conf, prop, MONITORING_VOLUME_ENABLED, false); transfer(conf, prop, WATCHER_WAITING_TIME, false); if (prop.size() > 0) { System.out.println("Reconfiguring infrastructure settings: " + prop + " from " + conf); configure(prop, false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void transferStateToConfig() {\r\n \t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.SEAM_DEFAULT_RUNTIME_NAME,\r\n \t\t\t\t\tjBossSeamHomeEditor.getValueAsString());\r\n \r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\...
[ "0.65669775", "0.59253526", "0.5876415", "0.5857197", "0.58156866", "0.56661737", "0.55444986", "0.55438185", "0.55436814", "0.5540308", "0.55282575", "0.5477522", "0.5474559", "0.5452701", "0.5443945", "0.54315645", "0.5429138", "0.5421181", "0.54211116", "0.5387355", "0.538...
0.56836915
5
Transfers the setting key from conf to prop. Applies toString if requested.
@SuppressWarnings({ "rawtypes" }) protected static void transfer(Map conf, Properties prop, String key, boolean toString) { if (null != conf.get(key)) { Object val = conf.get(key); if (toString) { val = val.toString(); } prop.put(key, val); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSettingByKey(String key);", "StringSetting(Properties defaultProps, Properties props, String key, \n String defaultStr) {\n\t\tsuper(defaultProps, props, key, defaultStr);\n\t}", "private String get(String key)\n {\n return settings.getProperty(key);\n }", ...
[ "0.61097956", "0.6101139", "0.59970003", "0.5948849", "0.58782595", "0.5863354", "0.5778752", "0.5746706", "0.5742178", "0.5618132", "0.5479778", "0.5456504", "0.54473186", "0.5445169", "0.5427274", "0.5419918", "0.53740853", "0.5364456", "0.5349376", "0.5344441", "0.53264433...
0.783144
0