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
Build call for patchThirdPartyConfiguration
public Call patchThirdPartyConfigurationCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/ThirdPartyConfiguration" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UpdateOperationConfiguration build();", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "@SuppressWarnings(\"rawtypes\")\n private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException {\n if (generalContract...
[ "0.62060195", "0.58580977", "0.5725322", "0.5510807", "0.5417368", "0.5391552", "0.53743285", "0.52924496", "0.5276715", "0.52712727", "0.5265386", "0.509936", "0.5042677", "0.5033372", "0.49032402", "0.48854673", "0.4883815", "0.4882187", "0.48431915", "0.48426867", "0.48028...
0.4875743
18
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call patchThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling patchThirdPartyConfiguration(Async)"); } return patchThirdPartyConfigurationCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract...
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.6210321", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5440859", "0.5439886", "0.5439886", "0.540831...
0.53983784
21
Build call for removeThirdPartyConfiguration
public Call removeThirdPartyConfigurationCall(String generalContractId, String thirdPartyName) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/ThirdPartyConfiguration/{thirdPartyName}" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())) .replaceAll("\\{" + "thirdPartyName" + "\\}", apiClient.escapeString(thirdPartyName.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deconfigure() throws CoreException {\n\t\tPTJavaFileBuilder.removeBuilderFromProject(fProject);\n\t\t// TO DO: delete markers here\n\t}", "@SuppressWarnings(\"rawtypes\")\n private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) t...
[ "0.5617179", "0.56123924", "0.5175892", "0.5092647", "0.50692844", "0.49456143", "0.49271536", "0.49037173", "0.48367786", "0.48151377", "0.48037124", "0.47910067", "0.47807986", "0.4769599", "0.47624674", "0.47482035", "0.46780056", "0.46675676", "0.46592095", "0.46202478", ...
0.45934367
22
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call removeThirdPartyConfigurationValidateBeforeCall(String generalContractId, String thirdPartyName) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling removeThirdPartyConfiguration(Async)"); } // verify the required parameter 'thirdPartyName' is set if (thirdPartyName == null) { throw new ApiException("Missing the required parameter 'thirdPartyName' when calling removeThirdPartyConfiguration(Async)"); } return removeThirdPartyConfigurationCall(generalContractId, thirdPartyName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract...
[ "0.6566565", "0.6497611", "0.64637333", "0.622235", "0.6210186", "0.6131018", "0.60290796", "0.59923744", "0.58934605", "0.58661616", "0.57160485", "0.57071656", "0.5653759", "0.55980074", "0.5569409", "0.553539", "0.5487554", "0.5440618", "0.5440618", "0.5439598", "0.5408142...
0.48840562
54
Build call for revokeAccrual
public Call revokeAccrualCall(String generalContractId) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/revokeAccrual" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void revoke();", "public Builder clearAccOpId() {\n \n accOpId_ = 0;\n onChanged();\n return this;\n }", "@SuppressWarnings(\"rawtypes\")\n private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n ...
[ "0.57940173", "0.53907996", "0.5259085", "0.51173425", "0.50574625", "0.49812168", "0.49812168", "0.49776965", "0.49497116", "0.49215776", "0.49051294", "0.49022022", "0.48259544", "0.4822986", "0.4814741", "0.47989908", "0.47983938", "0.4783607", "0.47825614", "0.4753694", "...
0.5135513
3
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call revokeAccrualValidateBeforeCall(String generalContractId) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling revokeAccrual(Async)"); } return revokeAccrualCall(generalContractId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract...
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5440859", "0.5439886", "0.5439886", "0.54083145", "0.53983...
0.6210321
4
Build call for terminate
public Call terminateCall(String generalContractId) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/terminate" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void terminate();", "public void terminate() {\n }", "public abstract void terminate();", "@Override\n public final void terminate() {\n }", "public void terminate() {\n\t}", "public void terminate() {\n\t}", "public void terminate() {\n\t}", "@Override\r\n\tpublic void terminate() {\...
[ "0.69939685", "0.69256", "0.6877401", "0.68448496", "0.6722823", "0.6722823", "0.6722823", "0.6689884", "0.6671844", "0.66622245", "0.66147757", "0.66147757", "0.66147757", "0.66147757", "0.66147757", "0.6234823", "0.6137633", "0.611819", "0.6083595", "0.60390747", "0.6021185...
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call terminateValidateBeforeCall(String generalContractId) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling terminate(Async)"); } return terminateCall(generalContractId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract...
[ "0.6566565", "0.6497611", "0.64637333", "0.622235", "0.6210186", "0.6131018", "0.60290796", "0.59923744", "0.58934605", "0.58661616", "0.57160485", "0.57071656", "0.5653759", "0.55980074", "0.5569409", "0.553539", "0.5487554", "0.5440618", "0.5440618", "0.5439598", "0.5408142...
0.53708893
23
Build call for updateBankAccount
public Call updateBankAccountCall(String generalContractId, BankAccountDescriptor body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/updateBankAccount" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateAccount();", "int updateAccountInfo(Account account);", "void updateAccount(Account account);", "public static String payCurrentBill(String account){\n return \"update current_bills set cb_paid = 1 where cb_account = '\"+account+\"'\";\n }", "Account.Update update();", "public void s...
[ "0.59548193", "0.59125996", "0.5869653", "0.5745686", "0.57400566", "0.56080645", "0.56047195", "0.55835927", "0.5556834", "0.54850185", "0.5479705", "0.5453298", "0.5426729", "0.5405824", "0.5389323", "0.5362046", "0.5338735", "0.53382134", "0.5333968", "0.53334785", "0.5296...
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call updateBankAccountValidateBeforeCall(String generalContractId, BankAccountDescriptor body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling updateBankAccount(Async)"); } return updateBankAccountCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract...
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.6210321", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5440859", "0.5439886", "0.5439886", "0.539837...
0.54083145
20
Build call for updateContract
public Call updateContractCall(String generalContractId, GeneralContractsDTO body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UpdateOperationConfiguration build();", "public @ResponseBody Contract updateContract(@RequestBody Contract Contract);", "public void createContract() {\n\r\n\t}", "public Builder setContract(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n...
[ "0.6531194", "0.6008839", "0.56700534", "0.54316884", "0.54316884", "0.54316884", "0.54316884", "0.54201275", "0.5399288", "0.538654", "0.5305781", "0.5303065", "0.53021437", "0.51907086", "0.51511353", "0.5100067", "0.5100067", "0.5100067", "0.5100067", "0.5084082", "0.50637...
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling updateContract(Async)"); } return updateContractCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call getOneValidateBeforeCall(String generalContractId) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling getOne(Async)\");\n }\n\n return g...
[ "0.6497611", "0.64637333", "0.622235", "0.6210186", "0.6131018", "0.60290796", "0.59923744", "0.58934605", "0.58661616", "0.57160485", "0.57071656", "0.5653759", "0.55980074", "0.5569409", "0.553539", "0.5487554", "0.5440618", "0.5440618", "0.5439598", "0.5408142", "0.5397067...
0.6566565
0
Build call for updateThirdPartyConfiguration
public Call updateThirdPartyConfigurationCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { Object localVarPostBody = body; // create path and map variables String localVarPath = "/General/Contracts/{generalContractId}/ThirdPartyConfiguration" .replaceAll("\\{" + "generalContractId" + "\\}", apiClient.escapeString(generalContractId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "oauth_token" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UpdateOperationConfiguration build();", "public abstract CONFIG build();", "Builder useBuildDistribution();", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "public abstract void updatePendingConfiguration(Configuration config);", "BuildClient createBuildClient();", "@Override\n\tpubli...
[ "0.66721636", "0.5903664", "0.5605112", "0.55307984", "0.54632705", "0.54334986", "0.53485036", "0.53198355", "0.5242069", "0.5230039", "0.5222986", "0.5194377", "0.5158292", "0.5090018", "0.50786775", "0.50662434", "0.5026396", "0.4970826", "0.4942699", "0.4926749", "0.48835...
0.0
-1
verify the required parameter 'generalContractId' is set
@SuppressWarnings("rawtypes") private Call updateThirdPartyConfigurationValidateBeforeCall(String generalContractId, ThirdPartyConfigurationDTO body) throws ApiException { if (generalContractId == null) { throw new ApiException("Missing the required parameter 'generalContractId' when calling updateThirdPartyConfiguration(Async)"); } return updateThirdPartyConfigurationCall(generalContractId, body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private Call updateContractValidateBeforeCall(String generalContractId, GeneralContractsDTO body) throws ApiException {\n if (generalContractId == null) {\n throw new ApiException(\"Missing the required parameter 'generalContractId' when calling updateContract...
[ "0.65667087", "0.6498893", "0.64641535", "0.62215364", "0.6210321", "0.61307234", "0.6029447", "0.5991647", "0.58935875", "0.5867352", "0.57154477", "0.5708672", "0.565344", "0.55975854", "0.5568958", "0.5535204", "0.54849637", "0.5439886", "0.5439886", "0.54083145", "0.53983...
0.5440859
17
Methods Writes a report file (or files) containing the results from the execution of MAESTRO. If there are too many lines in the resulting file, the report is written to a various files with a consecutive number after the provided name.
public static ArrayList<String> writeReport(MAESTROptimizer manager, String fileRoute, boolean writeConfig, boolean writeICHist, boolean writeGenHist, boolean writeEliteHist, boolean writeAllSolutions) throws IOException { ReportFile file = new ReportFile(); // Write header file.addLineToHeader(REPORT_HEADER_1); DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy K:mm:ss a"); Date date = new Date(manager.getStartTime()); file.addLineToHeader(STARTING_TIME_LABEL + dateFormat.format(date)); date = new Date(); file.addLineToHeader(TERMINATION_TIME_LABEL + dateFormat.format(date)); file.addLineToHeader(SOLUTIONS_LABEL + manager.getSolutionCount()); file.addLineToHeader(TERMINATION_LABEL + manager.getTerminationMessage()); file.addLineToHeader(""); if(writeConfig) { String restartElitism = manager.getRestartElitism() == MAESTROptimizer.RESTART_ELITISM_NO ? RESTART_ELITISM_NO : (manager.getRestartElitism() == MAESTROptimizer.RESTART_ELITISM_ALWAYS ? RESTART_ELITISM_ALWAYS : (manager.getRestartElitism() == MAESTROptimizer.RESTART_ELITISM_DEPENDS ? RESTART_ELITISM_DEPENDS : "N/A")); // Add general parameters int paramTable = file.addTable(); file.addLineToTableHeader(paramTable, PARAMETERS_TABLE_HEADER); file.addLineToTableBody(paramTable, PARAM_UPDATE_DIST + "\t" + manager.getUpdateDist()); file.addLineToTableBody(paramTable, PARAM_GEN_RATIO + "\t" + manager.getGenRatio()); file.addLineToTableBody(paramTable, PARAM_GEN_MIN + "\t" + manager.getGenMin()); file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_POP + "\t" + manager.getGenWeightPop()); file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_PART1 + "\t" + manager.getGenWeightPart1()); file.addLineToTableBody(paramTable, PARAM_GEN_WEIGHT_ELITE + "\t" + manager.getGenWeightElite()); file.addLineToTableBody(paramTable, PARAM_POP_GROWTH_RATE + "\t" + manager.getPopGrowthRate()); file.addLineToTableBody(paramTable, PARAM_PARTITION_COUNT + "\t" + manager.getPartitionCount()); file.addLineToTableBody(paramTable, PARAM_MIN_RARITY_STD + "\t" + manager.getMinRarityStd()); file.addLineToTableBody(paramTable, PARAM_MAX_RARITY_STD + "\t" + manager.getMaxRarityStd()); file.addLineToTableBody(paramTable, PARAM_ICT_REFUSE + "\t" + manager.getIctRefuse()); file.addLineToTableBody(paramTable, PARAM_ICT_UNIFORMITY + "\t" + manager.getIctUniformity()); file.addLineToTableBody(paramTable, PARAM_RESTART_ELITISM + "\t" + restartElitism); file.addLineToTableBody(paramTable, PARAM_THREAD_COUNT + "\t" + manager.getThreadCount()); file.addLineToTableBody(paramTable, PARAM_TIME_LIMIT + "\t" + manager.getTimeLimit() + " ms"); file.addLineToTableBody(paramTable, PARAM_SOLUTION_LIMIT + "\t" + manager.getSolutionLimit()); file.addLineToTableFooter(paramTable, ""); // Add generator configuration int genTable = file.addTable(); file.addLineToTableHeader(genTable, GENERATORS_TABLE_HEADER); file.addLineToTableHeader(genTable, GENERATORS_ID + "\t" + GEN_TOTAL_ID + "\t" + PARAMETERS_ID); ArrayList<GenWrapper> generators = manager.getGenerators(); for(GenWrapper generator : generators) { String line = ""; line += generator.getId() + " (" + generator.getShortId() + ")"; line += "\t" + generator.getGenTotal(); line += "\t" + generator.getParamSummary(); file.addLineToTableBody(genTable, line); } file.addLineToTableFooter(genTable, ""); } // Add inner cycle history if(writeICHist) { int icHistTable = file.addTable(); file.addLineToTableHeader(icHistTable, IC_HIST_TABLE_HEADER); file.addLineToTableHeader(icHistTable, INNER_CYCLE_ID + "\t" + POPULATION_ID + "\t" + SOLUTION_COUNT_ID + "\t" + FOUND_BETTER_ID + "\t" + IC_TERMINATION_ID); ArrayList<ICLogEntry> icLog = manager.getICLog(); for(int i = 0 ; i < icLog.size() ; i++) { ICLogEntry entry = icLog.get(i); String line = (i + 1) + ""; line += "\t" + entry.getPopulation(); line += "\t" + entry.getSolutions(); line += "\t" + entry.foundBest(); int term = entry.getTermination(); line += "\t" + (term == ICLogEntry.REFUSED ? IC_TERM_REFUSE : (term == ICLogEntry.UNIFORMITY ? IC_TERM_UNIFORMITY : IC_TERM_OC_ENDED)); file.addLineToTableBody(icHistTable, line); } file.addLineToTableFooter(icHistTable, ""); } // Add generator use history if(writeGenHist) { int genHistTable = file.addTable(); file.addLineToTableHeader(genHistTable, GEN_HIST_TABLE_HEADER); file.addLineToTableHeader(genHistTable, GENERATION_ID + "\t" + INNER_CYCLE_ID + "\t" + GENERATORS_ID + "\t" + GEN_SOLUTIONS_ID + "\t" + GEN_TIME + "\t" + GEN_TIME_PER_SOLUTION); ArrayList<String> gens = manager.getGenHist(); for(int i = 0 ; i < gens.size() ; i++) file.addLineToTableBody(genHistTable, (i + 1) + "\t" + gens.get(i)); file.addLineToTableFooter(genHistTable, ""); } // Add best solutions TreeSet<SolutionWrapper> bestSolutions = manager.getBestSolutions(); if(bestSolutions != null) if(bestSolutions.size() > 0) { int bestTable = file.addTable(); file.addLineToTableHeader(bestTable, BEST_SOLUTIONS_TABLE_HEADER); addSolutionHeader(manager, bestSolutions.first(), file, bestTable); Iterator<SolutionWrapper> solutions = bestSolutions.descendingIterator(); addSolutionList(manager, solutions, file, bestTable); file.addLineToTableFooter(bestTable, ""); } // Add elite solution history if(writeEliteHist) { ArrayList<SolutionWrapper> eliteHistory = manager.getEliteHistory(); if(eliteHistory.size() > 0) { int eliteTable = file.addTable(); file.addLineToTableHeader(eliteTable, ELITE_SOLUTIONS_TABLE_HEADER); addSolutionHeader(manager, eliteHistory.get(0), file, eliteTable); Iterator<SolutionWrapper> solutions = eliteHistory.iterator(); addSolutionList(manager, solutions, file, eliteTable); file.addLineToTableFooter(eliteTable, ""); } } // Add all solutions if(writeAllSolutions) { ArrayList<SolutionWrapper> allSolutions = manager.getAllSolutions(); if(allSolutions.size() > 0) { int allTable = file.addTable(); file.addLineToTableHeader(allTable, ALL_SOLUTIONS_TABLE_HEADER); addSolutionHeader(manager, allSolutions.get(0), file, allTable); Iterator<SolutionWrapper> solutions = allSolutions.iterator(); addSolutionList(manager, solutions, file, allTable); file.addLineToTableFooter(allTable, ""); } } // Save to file return file.writeFile(fileRoute); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeToFile(String outputName) throws Exception{\n if (trials == null || data == null) throw new Exception(\"Must read marker and data file before writing it out\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(outputName));\n \n //.. write out the headers\n ...
[ "0.6237774", "0.60828656", "0.6080929", "0.60741585", "0.604966", "0.6025098", "0.59498876", "0.59109855", "0.58646977", "0.5844537", "0.581797", "0.5807721", "0.57979494", "0.57949346", "0.5793268", "0.5731214", "0.56935984", "0.56926984", "0.56699073", "0.56314445", "0.5621...
0.59916526
6
Writes the header of the solution table
private static void addSolutionHeader(MAESTROptimizer manager, SolutionWrapper solution, ReportFile file, int table) { // Retrieve variable count ArrayList<Integer> discValues = solution.getSolution().getDiscValues(); ArrayList<Double> contValues = solution.getSolution().getContValues(); int total = 2; int discCount = discValues == null ? 0 : discValues.size(); int contCount = contValues == null ? 0 : contValues.size(); total += discCount; total += contCount; String[] line1 = new String[total]; String[] line2 = new String[total]; String fitnessHeader = solution.getSolution().getReportHeader(); String space = ""; for(int i = 0 ; i < fitnessHeader.split("\t").length - 1 ; i++) space += "\t"; line1[0] = "\t\t"; line1[1] = space; line2[0] = SOLUTIONS_ID + "\t" + INNER_CYCLE_ID + "\t" + GENERATORS_ID; line2[1] = fitnessHeader; int index = 2; int variableIndex = 0; // Add header for discrete variables if(discCount > 0) { variableIndex = 0; line1[index] = DISC_VARIABLES_ID; line2[index] = manager.getDiscVarName(variableIndex); index++; variableIndex++; int max = index + discCount - 1; for(int i = index ; i < max ; i++) { line1[i] = ""; line2[i] = manager.getDiscVarName(variableIndex); index++; variableIndex++; } } // Add header for continuous variables if(contCount > 0) { variableIndex = 0; line1[index] = CONT_VARIABLES_ID; line2[index] = manager.getContVarName(variableIndex); index++; variableIndex++; int max = index + contCount - 1; for(int i = index ; i < max ; i++) { line1[i] = ""; line2[i] = manager.getContVarName(variableIndex); index++; variableIndex++; } } // Add header lines to report file.addLineToTableHeader(table, line1); file.addLineToTableHeader(table, line2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printHeader () {\n System.out.println(\"COMPLETED HEADER PARSING\");\n System.out.println(\"________________________\");\n for(String header : parseTableHeader.keySet()) {\n System.out.print(header);\n System.out.println(parseTableHeader.get(header));\n ...
[ "0.672611", "0.66863126", "0.66119444", "0.66069406", "0.6562219", "0.6322844", "0.6293465", "0.62934583", "0.628093", "0.6263854", "0.62432003", "0.6232176", "0.6215909", "0.62021816", "0.618668", "0.61614376", "0.6160647", "0.6156693", "0.61431015", "0.6124977", "0.60996664...
0.7446437
0
Writes the list of solutions to the specified table in a report file
private static void addSolutionList(MAESTROptimizer manager, Iterator<SolutionWrapper> solutions, ReportFile file, int table) { while(solutions.hasNext()) { SolutionWrapper solution = solutions.next(); // Retrieve variable count ArrayList<Integer> discValues = solution.getSolution().getDiscValues(); ArrayList<Double> contValues = solution.getSolution().getContValues(); int total = 4; int discCount = discValues == null ? 0 : discValues.size(); int contCount = contValues == null ? 0 : contValues.size(); total += discCount; total += contCount; String[] line = new String[total]; line[0] = solution.getId(); line[1] = solution.getIcIndex() + ""; line[2] = manager.getGeneratorShortId(solution.getGenIndex()); line[3] = solution.getSolution().getReport(); int index = 4; // Add discrete values if(discCount > 0) for(int i = 0 ; i < discValues.size() ; i++) { int value = discValues.get(i); line[index] = String.valueOf(manager.getDiscValueID(i, value)); index++; } // Add continuous values if(contCount > 0) for(int i = 0 ; i < contValues.size() ; i++) { line[index] = String.valueOf(contValues.get(i)); index++; } // Add solution line to table file.addLineToTableBody(table, line); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addSolutionHeader(MAESTROptimizer manager, SolutionWrapper solution, \r\n\t\t\t\t\t\t\t\t\t\t\tReportFile file, int table)\r\n\t{\r\n\t\t// Retrieve variable count\r\n\t\tArrayList<Integer> discValues = solution.getSolution().getDiscValues();\r\n\t\tArrayList<Double> contValues = solution.getSo...
[ "0.64843726", "0.6427297", "0.63082194", "0.6295978", "0.62728965", "0.6251346", "0.61741495", "0.6153013", "0.61511445", "0.61441475", "0.6104438", "0.6098642", "0.6080671", "0.6066627", "0.6065406", "0.6020987", "0.5995132", "0.5935584", "0.5923793", "0.59014446", "0.585520...
0.6925609
0
This method will called after clicking on Send button.
public void actionPerformed(ActionEvent ae) { ta.append("Me: "+tf.getText()+"\n"); pw.println(tf.getText());//write the value of textfield into PrintWriter tf.setText("");//clean the textfield }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleSend() {\n model.sendMail();\n view.getChildren().clear();//it \"hides the display\" of the previous view\n }", "@Override\n public void onClick(View view) {\n send();\n }", "public void updateSendButtonText() {\r\n sendButton.setTe...
[ "0.74213755", "0.7405532", "0.7371027", "0.7261987", "0.7226024", "0.71367896", "0.7134674", "0.71123016", "0.70512223", "0.6975275", "0.6974683", "0.69113785", "0.6882818", "0.684496", "0.683817", "0.6829841", "0.68244284", "0.6821959", "0.68002355", "0.67839503", "0.6780371...
0.0
-1
Thread running as a process in background
public void run() { while(true) { try{ String s; s=br.readLine(); ta.append("pagal: "+s+"\n");//Append to TextArea }catch(Exception e) {} } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void backgroundProcess();", "void backgroundProcess();", "private void backgroundExecution() {\n // This moves the time consuming operation to a child thread.\n Thread thread=new Thread(null, doBackgroundThreadProcessing, \"Background\");\n thread.start();\n }", "private void s...
[ "0.7533469", "0.7342215", "0.7226498", "0.6459892", "0.6377971", "0.6335785", "0.6316973", "0.6194616", "0.6174788", "0.6136905", "0.6119032", "0.61148477", "0.6087901", "0.6083178", "0.60382015", "0.6019801", "0.6012305", "0.5998273", "0.59833944", "0.59802186", "0.59682274"...
0.0
-1
community name Constructor requires community id and name
public Community(String id, String name) { this.id = id; this.name = name; return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCommunityName() {\n return communityName;\n }", "public void setCommunityName(String communityName) {\n this.communityName = communityName == null ? null : communityName.trim();\n }", "Community() {}", "public Community()\r\n {\r\n //\r\n }", "public void s...
[ "0.71394026", "0.70218366", "0.68700945", "0.65736425", "0.6314665", "0.6313094", "0.6108198", "0.569947", "0.5681514", "0.5645238", "0.5540834", "0.5459125", "0.54389346", "0.54358274", "0.5435504", "0.5419929", "0.54046136", "0.53286076", "0.5328094", "0.5307614", "0.526385...
0.74017537
0
Returns whether the IResourceDelta contains the specified IFile.
public static boolean contains(IResourceDelta delta, IFile file){ IResourceDelta member = delta.findMember(file.getFullPath()); if(member==null){ return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean contains(File file, String resourceName) {\n try {\n if (!file.exists()) {\n return false;\n }\n\n if (file.isDirectory()) {\n File resource = new File(file, resourceName);\n\n if (resource.exists()) {\n ...
[ "0.67769945", "0.6760401", "0.671124", "0.6336297", "0.6266527", "0.62258005", "0.6215312", "0.6154271", "0.6035883", "0.60025746", "0.59853953", "0.59806824", "0.59445363", "0.59445363", "0.59299856", "0.5921786", "0.59161294", "0.59066695", "0.5887403", "0.5861635", "0.5837...
0.7757124
0
Escape HTML special characters.
public static String escapeHTML(String str){ return FuzzyXMLUtil.escape(str, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n return html.replaceAll(\"&\", \"&amp;\").replaceAll(\"<\", \"&lt;\").replaceAll(\n \">\", \"&gt;\");\n }", "private String escapeHtml(String html) {\n if (html == null) {\n return null;\n }\n r...
[ "0.73750883", "0.73750883", "0.7345054", "0.7334031", "0.7304987", "0.72494406", "0.72494406", "0.70228237", "0.67790186", "0.6636282", "0.6607913", "0.65785056", "0.64164263", "0.63753533", "0.6372292", "0.6366606", "0.63423985", "0.62964267", "0.62080866", "0.61839473", "0....
0.73412836
3
Replaces comments of CSS with whitespaces.
public static String cssComment2space(String source){ int index = 0; int last = 0; StringBuffer sb = new StringBuffer(); while((index = source.indexOf("/*",last))!=-1){ int end = source.indexOf("*/",index); if(end!=-1){ sb.append(source.substring(last,index)); int length = end - index + 2; for(int i=0;i<length;i++){ sb.append(" "); } } else { break; } last = end + 2; } if(last != source.length()-1){ sb.append(source.substring(last)); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stripComments() {\r\n if (command.contains(\"//\")) {\r\n command = command.substring(0, command.indexOf(\"//\"));\r\n }\r\n command = command.replace(\"\\n\", \"\");\r\n command = command.replace(\"\\t\", \"\");\r\n }", "private void skipWhiteSpace()\n ...
[ "0.65147007", "0.6448316", "0.64189404", "0.62464255", "0.57932544", "0.5788482", "0.5766049", "0.5725947", "0.56526244", "0.56016463", "0.5589107", "0.55160254", "0.5501287", "0.5496584", "0.54763293", "0.54573965", "0.54465896", "0.540845", "0.54065967", "0.5399341", "0.536...
0.71748835
0
Replace comments of HTML/JSP/XML with whitespaces. replace &lt;! ... &gt; to the whitespaces replace &lt;% ... %&gt; to the whitespaces
public static String comment2space(String source,boolean contentsOnly){ source = jspComment2space(source,contentsOnly); source = FuzzyXMLUtil.comment2space(source,contentsOnly); return source; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String jspComment2space(String source,boolean contentsOnly){\r\n\t\tint index = 0;\r\n\t\tint last = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\twhile((index = source.indexOf(\"<%--\",last))!=-1){\r\n\t\t\tint end = source.indexOf(\"--%>\",index);\r\n\t\t\tif(end!=-1){\r\n\t\t\t\tsb.appen...
[ "0.60536784", "0.5599177", "0.5571442", "0.5571442", "0.5569304", "0.55550176", "0.55058146", "0.55058146", "0.54754966", "0.5454447", "0.53962994", "0.53943306", "0.5338894", "0.5311469", "0.51796764", "0.5168733", "0.5165021", "0.515128", "0.5145366", "0.51382655", "0.51378...
0.6111083
0
Replace comments of the JSP with whitespaces.
public static String jspComment2space(String source,boolean contentsOnly){ int index = 0; int last = 0; StringBuffer sb = new StringBuffer(); while((index = source.indexOf("<%--",last))!=-1){ int end = source.indexOf("--%>",index); if(end!=-1){ sb.append(source.substring(last,index)); int length = end - index + 4; if(contentsOnly){ sb.append("<%--"); length = length - 8; } for(int i=0;i<length;i++){ sb.append(" "); } if(contentsOnly){ sb.append("--%>"); } } else { break; } last = end + 4; } if(last != source.length()-1){ sb.append(source.substring(last)); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String comment2space(String source,boolean contentsOnly){\r\n\t\tsource = jspComment2space(source,contentsOnly);\r\n\t\tsource = FuzzyXMLUtil.comment2space(source,contentsOnly);\r\n\t\treturn source;\r\n\t}", "private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex brea...
[ "0.635014", "0.580986", "0.5580711", "0.54866403", "0.5431039", "0.54169583", "0.5377187", "0.52583915", "0.52515113", "0.51215076", "0.5091607", "0.50791454", "0.5057986", "0.50354505", "0.5016399", "0.49934286", "0.49740544", "0.49481058", "0.49245566", "0.49036992", "0.488...
0.6493069
0
Replace scriptlet in the JSP to whitespaces.
public static String scriptlet2space(String source,boolean contentsOnly){ int index = 0; int last = 0; StringBuffer sb = new StringBuffer(); while((index = source.indexOf("<%",last))!=-1){ int end = source.indexOf("%>",index); if(end!=-1){ sb.append(source.substring(last,index)); int length = end - index + 2; if(contentsOnly){ sb.append("<%"); length = length - 4; } for(int i=0;i<length;i++){ sb.append(" "); } if(contentsOnly){ sb.append("%>"); } } else { break; } last = end + 2; } if(last != source.length()-1){ sb.append(source.substring(last)); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String fomatStrForJsp(String str){\t\t\n\t\tif( str==null || str.trim().equals(\"\")) return \"&nbsp;\";\n\t\treturn str;\n\t}", "public void doTag() throws JspException, IOException {\n\t\tgetJspContext().getOut().write(\"<p><strong>\" + name + \"</strong></p>\");\n\t}", "public static String Cl...
[ "0.5709579", "0.50377524", "0.5035857", "0.5001365", "0.49834922", "0.48800895", "0.48136213", "0.4743985", "0.47346827", "0.47296247", "0.47097018", "0.46745777", "0.46284994", "0.46116036", "0.45986083", "0.45887062", "0.45875168", "0.45498076", "0.4529526", "0.45264328", "...
0.57653505
0
Escape XML string. If value is null, this method returns an empty string.
public static String escapeXML(String value){ return FuzzyXMLUtil.escape(value, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String escapeXML(String val)\n {\n if (val == null) {\n return \"\";\n } else {\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < val.length(); i++) {\n char ch = val.charAt(i);\n switch (ch) {\n ...
[ "0.723797", "0.70593476", "0.6465881", "0.63053274", "0.57849246", "0.57564056", "0.5716876", "0.5669871", "0.5634869", "0.5606824", "0.5600112", "0.5587571", "0.5587571", "0.5568643", "0.55607796", "0.55173916", "0.55173916", "0.5512208", "0.54848653", "0.54721344", "0.54682...
0.780409
0
Wrapps XPathgetValue() of FuzzyXML. This method provides following additional features. returns null when exceptions are caused. trims a return value.
public static String getXPathValue(FuzzyXMLElement element,String xpath){ try { String value = (String)XPath.getValue(element,xpath); return value.trim(); } catch(Exception ex){ return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XPath getValue()\n {\n return m_valueExpr;\n }", "org.apache.xmlbeans.XmlString xgetValue();", "public Value getValue() {\n if (!dirty && !expressionUsesTime) {\n return cachedValue;\n }\n try {\n // System.out.print(\"/// {\" + number + \"} calculate \" +...
[ "0.63106513", "0.5993896", "0.58984745", "0.58021474", "0.5756635", "0.575124", "0.5741155", "0.5695306", "0.5652864", "0.5652147", "0.5638094", "0.5602029", "0.5559012", "0.55542415", "0.55540395", "0.5542199", "0.5531485", "0.5494795", "0.5462532", "0.5452149", "0.5412901",...
0.63486636
0
Returns an empty string if an argument is null.
public static String nullConv(String value){ if(value==null){ return ""; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArgumentString() {\n\t\treturn null;\n\t}", "public static String displayNull (String input)\r\n {\r\n //because of short circuiting, if it's null, it never checks the length.\r\n if (input == null || input.length() == 0)\r\n return \"N/A\";\r\n else\r\n ...
[ "0.6899492", "0.68341744", "0.6815006", "0.6758851", "0.6758851", "0.6541563", "0.652773", "0.64411557", "0.6440255", "0.62925845", "0.62124324", "0.618491", "0.6154401", "0.6102221", "0.60959333", "0.60485595", "0.60183513", "0.5985565", "0.5960935", "0.5932816", "0.5930778"...
0.541367
71
Sorts informations of code completion in alphabetical order.
public static void sortCompilationProposal(List<ICompletionProposal> prop){ Collections.sort(prop,new Comparator<ICompletionProposal>(){ public int compare(ICompletionProposal o1, ICompletionProposal o2){ return o1.getDisplayString().compareTo(o2.getDisplayString()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != ...
[ "0.6949712", "0.6856225", "0.66038036", "0.6506008", "0.6292799", "0.62395906", "0.62371933", "0.61810887", "0.61487484", "0.6128846", "0.61037284", "0.608848", "0.6042667", "0.6018947", "0.6005573", "0.60016096", "0.59732103", "0.59656954", "0.59307086", "0.5886933", "0.5869...
0.6398059
4
Returns a project encoding.
public static String getProjectCharset(IProject project){ try { String charset = project.getDefaultCharset(); if(charset.equals("MS932")){ // charset = "Shift_JIS"; charset = "Windows-31J"; } return charset; } catch(Exception ex){ HTMLPlugin.logException(ex); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEncoding();", "public String getEncoding () {\n return encoding;\n }", "Charset getEncoding();", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\n return encoding;\n ...
[ "0.6774387", "0.64758056", "0.6450394", "0.6366175", "0.6366175", "0.6366175", "0.63597476", "0.6356938", "0.63468325", "0.62715197", "0.6213546", "0.62049896", "0.6198991", "0.6122992", "0.61045444", "0.6096462", "0.6096462", "0.6039131", "0.60371053", "0.60358155", "0.59840...
0.6609586
1
Adds marker to the specified line.
public static void addMarker(IResource resource, int type, int line, String message){ try { IMarker marker = resource.createMarker(IMarker.PROBLEM); Map<String, Object> map = new HashMap<String, Object>(); map.put(IMarker.SEVERITY, Integer.valueOf(type)); map.put(IMarker.MESSAGE, message); map.put(IMarker.LINE_NUMBER,Integer.valueOf(line)); marker.setAttributes(map); } catch(CoreException ex){ HTMLPlugin.logException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void markLine() {\n lineMark = cursor;\n }", "public void line(String line) {\n\t\t}", "public synchronized void addLine(Line line)\r\n\t{\r\n\t\tlines.add(line);\r\n\t}", "public void markLine(Line line, Player player) {\n // The logic preventing double marking of a side is handled\n // in t...
[ "0.7038162", "0.6759363", "0.66498053", "0.6571961", "0.6484949", "0.6420322", "0.6354171", "0.6265856", "0.6192956", "0.6183888", "0.6073078", "0.60327035", "0.60118484", "0.5991645", "0.5991153", "0.5963649", "0.5916835", "0.5913406", "0.59045434", "0.5881981", "0.5858567",...
0.6069016
11
Adds task marker to the specified range.
public static void addTaskMarker(IResource resource,int priority, int line, String message){ try { IMarker marker = resource.createMarker(IMarker.TASK); Map<String, Object> map = new HashMap<String, Object>(); map.put(IMarker.PRIORITY, Integer.valueOf(priority)); map.put(IMarker.MESSAGE, message); map.put(IMarker.LINE_NUMBER,Integer.valueOf(line)); marker.setAttributes(map); } catch(CoreException ex){ HTMLPlugin.logException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public void add(final Task task) {\n }", "public synchronized void addTask(AnimatorTask task) {\r\n\r\n\t\tif (!running) {\r\n\t\t\ttasks.add(task);\r\n\t\t}\r\n\t}", "void addTask(Task task);", "void add(final Task task);", "void addTask(Tas...
[ "0.5867431", "0.56962216", "0.56523573", "0.56465816", "0.55422604", "0.55109334", "0.5498104", "0.54022765", "0.53954417", "0.5364213", "0.5268662", "0.5243014", "0.5201138", "0.5158036", "0.5156604", "0.5126477", "0.51251614", "0.5119903", "0.50985026", "0.5086713", "0.5086...
0.550807
6
Adds marker to the specified range.
public static void addMarker(IResource resource,int type, int line, int offset,int length,String message){ try { IMarker marker = resource.createMarker(IMarker.PROBLEM); Map<String, Object> map = new HashMap<String, Object>(); map.put(IMarker.SEVERITY, Integer.valueOf(type)); map.put(IMarker.MESSAGE, message); map.put(IMarker.CHAR_START,Integer.valueOf(offset)); map.put(IMarker.CHAR_END,Integer.valueOf(offset + length)); map.put(IMarker.LINE_NUMBER,Integer.valueOf(line)); marker.setAttributes(map); } catch(CoreException ex){ HTMLPlugin.logException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDataRange(long beginning, long ending, Line line){\n }", "public void addRange(int range) {\n this.range += range;\n if(this.range <= 0)\n this.range = 1;\n }", "public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }", "pu...
[ "0.6286257", "0.6155122", "0.61377186", "0.60147136", "0.57413226", "0.5412404", "0.52966386", "0.5286184", "0.5246874", "0.5233371", "0.5223414", "0.5204459", "0.518858", "0.51651216", "0.5158154", "0.51540333", "0.515263", "0.51429886", "0.51153874", "0.51146847", "0.509422...
0.46765396
71
Trim all elements in the array.
public static void trim(String[] array){ for(int i=0;i<array.length;i++){ array[i] = array[i].trim(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] trim(String[] in) {\n if (notNull(\"in\", in).length == 0) {\n return in;\n }\n String[] result = new String[in.length];\n System.arraycopy(in, 0, result, 0, result.length);\n// String[] result = ArrayUtils.copyOf(in);\n int last = 0;\n ...
[ "0.70845056", "0.7004695", "0.69574726", "0.68901646", "0.6757977", "0.67128104", "0.6657465", "0.6605278", "0.65649927", "0.6536606", "0.63920015", "0.63336974", "0.62912303", "0.6268096", "0.6259544", "0.6239185", "0.6219793", "0.6094195", "0.6035476", "0.5994358", "0.59507...
0.7814686
0
Returns the first child element of the specified element.
public static FuzzyXMLElement getFirstElement(FuzzyXMLElement element){ FuzzyXMLNode[] nodes = element.getChildren(); for(int i=0;i<nodes.length;i++){ if(nodes[i] instanceof FuzzyXMLElement){ return (FuzzyXMLElement)nodes[i]; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Element firstChild(Element element, String name) {\n NodeList nodes = element.getChildNodes();\n if (nodes != null) {\n for (int i = 0, size = nodes.getLength(); i < size; i++) {\n Node item = nodes.item(i);\n if (item instanceof Element) {\n ...
[ "0.7839312", "0.6737542", "0.67194396", "0.6382165", "0.63049465", "0.63049465", "0.62508994", "0.620916", "0.618056", "0.6139361", "0.6104324", "0.6088591", "0.60696876", "0.60439", "0.59643036", "0.59510344", "0.5943367", "0.5942831", "0.59061944", "0.5903195", "0.5892981",...
0.7002211
1
Returns the getter method name from the property name.
public static String getGetterName(String propertyName, boolean isBool){ if(isBool){ return "is" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1); } else { return "get" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPropertyAccessMethodName(String property) {\r\n if (\"this\".equals(property))\r\n return \"this\";\r\n return \"get\" + property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1);\r\n }", "String getPropertyName();", "public String getPrope...
[ "0.74562943", "0.7341109", "0.7061584", "0.69941664", "0.6973811", "0.6928111", "0.66328627", "0.6590788", "0.652756", "0.6512639", "0.64085144", "0.6366373", "0.63516074", "0.6348134", "0.6210665", "0.6210665", "0.6210665", "0.6210665", "0.61455005", "0.6141832", "0.61334896...
0.7041141
3
Returns the setter method name from the property name.
public static String getSetterName(String propertyName){ return "set" + propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String setterName(String name) {\n return genMethodName(name, \"set\", null);\n }", "private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }", "public String getSetMethodName() {\n return m_setMethodName;\n ...
[ "0.7656542", "0.7560479", "0.6730496", "0.6604631", "0.65877086", "0.6524201", "0.6512973", "0.63909096", "0.63304615", "0.6311671", "0.6240986", "0.62365353", "0.6073471", "0.60558325", "0.60544026", "0.60426337", "0.5989614", "0.5854489", "0.58514565", "0.5801201", "0.58002...
0.80024
0
Returns an active editor part in the workbench.
public static IEditorPart getActiveEditor(){ IWorkbench workbench = PlatformUI.getWorkbench(); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); IWorkbenchPage page = window.getActivePage(); IEditorPart editorPart = page.getActiveEditor(); return editorPart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized IEditorPart getActiveEditor() {\n return activeEditorMap.get(currentWindow);\n }", "public IWorkbenchPart getWorkbenchPart() {\n\t\treturn part;\n\t}", "protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (ed...
[ "0.77457374", "0.7484834", "0.7321617", "0.7178864", "0.7167527", "0.69659543", "0.6889656", "0.6861414", "0.67543054", "0.66732216", "0.662137", "0.6600914", "0.65722525", "0.6557639", "0.65203506", "0.64714015", "0.643936", "0.64110947", "0.63251877", "0.6301279", "0.625881...
0.8431323
0
Creates the ICompilationUnit to use temporary.
public synchronized static ICompilationUnit getTemporaryCompilationUnit( IJavaProject project) throws JavaModelException { if(unitMap.get(project) != null){ return unitMap.get(project); } IPackageFragment root = project.getPackageFragments()[0]; ICompilationUnit unit = root.getCompilationUnit("_xxx.java").getWorkingCopy( new NullProgressMonitor()); unitMap.put(project, unit); return unit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CompilationUnit parse(ICompilationUnit unit) {\n\t\t// create a AST of the source code\n\t\tASTParser parser = ASTParser.newParser(AST.JLS4);\n\t\tparser.setKind(ASTParser.K_COMPILATION_UNIT);\n\t\tparser.setSource(unit);\n\t\tparser.setResolveBindings(true);\n\t\tparser.setBindingsRecovery(true);\n\...
[ "0.5729563", "0.5653754", "0.557655", "0.54829246", "0.5470887", "0.54441744", "0.53619164", "0.5293256", "0.521401", "0.51691246", "0.5162859", "0.5085274", "0.49798346", "0.49582064", "0.49536806", "0.4951178", "0.49313906", "0.4878823", "0.48777795", "0.48378262", "0.48183...
0.63715863
0
Set contents of the compilation unit to the translated jsp text.
public static void setContentsToCU(ICompilationUnit unit, String value){ if (unit == null) return; synchronized (unit) { IBuffer buffer; try { buffer = unit.getBuffer(); } catch (JavaModelException e) { e.printStackTrace(); buffer = null; } if (buffer != null) buffer.setContents(value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setTranslation(String translation) {\n }", "private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}", "public void setContent(String content)\n/* */ {\n/* 1...
[ "0.5839208", "0.5556881", "0.5352131", "0.53085953", "0.5296291", "0.52887326", "0.526505", "0.5193927", "0.51713973", "0.51622146", "0.5153482", "0.514664", "0.51398134", "0.5137426", "0.51339924", "0.5132488", "0.5132488", "0.5132488", "0.5132488", "0.5132488", "0.5132488",...
0.5757378
1
Open the type select dialog.
public static String openClassSelectDialog(IJavaProject project, Control parent) { try { Shell shell = parent.getShell(); SelectionDialog dialog = JavaUI.createTypeDialog( shell,new ProgressMonitorDialog(shell), SearchEngine.createJavaSearchScope(new IJavaElement[]{project}), IJavaElementSearchConstants.CONSIDER_CLASSES,false); if(dialog.open()==SelectionDialog.OK){ Object[] result = dialog.getResult(); return ((IType)result[0]).getFullyQualifiedName(); } } catch(Exception ex){ HTMLPlugin.logException(ex); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTypeDialog(Context context) {\r\n\t\ttypeDialog = new DialogBase(context);\r\n\t\ttypeDialog.setContentView(R.layout.type);\r\n\t\ttypeDialog.setHeader(\"Channels\");\r\n\t\tfinal TextView txtVideos = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvVideos);\r\n\t\tfinal TextView txtChannel...
[ "0.6420607", "0.62877595", "0.6286204", "0.6220793", "0.6209577", "0.6205285", "0.6187898", "0.61503315", "0.6047556", "0.5891456", "0.58841026", "0.5797845", "0.57963055", "0.5771263", "0.5766615", "0.5766615", "0.57423055", "0.5724558", "0.56351817", "0.56227314", "0.561816...
0.5855183
11
does the player have the permission required to allow backing to death point
@EventHandler(priority = EventPriority.HIGHEST) private void onDeath(PlayerDeathEvent event) { if(!event.getEntity().hasPermission("karanteenials.player.death.back")) return; Location deathLocation = event.getEntity().getLocation(); Back back = new Back(event.getEntity()); back.setBackLocation(deathLocation); // instruct player to use /back to return to death position Karanteenials.getMessager().sendMessage(event.getEntity(), Sounds.NONE.get(), Prefix.NEUTRAL + ModuleFactory.getInstance().getTranslator().getTranslation(Karanteenials.getPlugin(Karanteenials.class), event.getEntity(), "death-return-with-back")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAdmissible();", "boolean hasInstantiatePermission();", "public boolean mayPass(Level level, int x, int y, Entity e) {\n\t\treturn e.canSwim(); // If the entity can swim (which only the player can), then it will allow that entity to pass.\n\t}", "public void playerHasInvincibility() {\n\t\tth...
[ "0.6900564", "0.671484", "0.6707324", "0.6664773", "0.66428196", "0.66366786", "0.66116416", "0.65335697", "0.6505158", "0.6505075", "0.64764726", "0.6466984", "0.6451945", "0.64488614", "0.6437345", "0.64334136", "0.6431836", "0.64273816", "0.642737", "0.6416172", "0.6413234...
0.0
-1
FileInputStream input = new FileInputStream("D:\\song\\data.txt");
public static void main(String[] args) throws Exception{ BufferedReader reader=new BufferedReader( new FileReader("D:\\song\\data.txt")); List<String> datas = new ArrayList<>(); while(reader.ready()){ String line = reader.readLine(); if(line.contains("元")) { datas.add(line); } } Collections.sort(datas, new Comparator<String>() { @Override public int compare(String o1, String o2) { return getMoney(o2) - getMoney(o1); } }); int total = 0; for (String data: datas) { //System.out.println(data); total += getMoney(data); } System.out.println("total = " + total); for (String data: datas) { if (data.contains("魏") || data.contains("尚") || data.contains("仪")) System.out.println(data); //total += getMoney(data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void openInput(String file)\r\n\t{\n\t\ttry{\r\n\t\t\tfstream = new FileInputStream(file);\r\n\t\t\tin = new DataInputStream(fstream);\r\n\t\t\tis = new BufferedReader(new InputStreamReader(in));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\r\n\t}", "private void load(FileInpu...
[ "0.61616516", "0.6048487", "0.60422564", "0.5975037", "0.58176756", "0.58158314", "0.5786434", "0.57711625", "0.57339215", "0.566829", "0.5666611", "0.5665939", "0.56632596", "0.56516033", "0.5631526", "0.5626756", "0.5618545", "0.55907243", "0.5566877", "0.55574757", "0.5550...
0.0
-1
Created by yi on 2016/11/29.
@UserScope @Component(modules = CreateRichDocModule.class,dependencies = NetComponent.class) public interface CreateRichDocComponent { void inject(CreateRichDocActivity activity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar()...
[ "0.6069433", "0.5979896", "0.59249735", "0.59249735", "0.5918983", "0.5917928", "0.5913268", "0.5896675", "0.5895724", "0.58029693", "0.5802744", "0.5788594", "0.5769616", "0.5766929", "0.57215387", "0.5709382", "0.5707987", "0.5677979", "0.5677309", "0.56667906", "0.565933",...
0.0
-1
TODO Autogenerated method stub
@Override public void endSessionSource(SessionSourceEvent sessionSourceEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Create contents of the dialog.
private void createContents() { shell = new Shell(getParent(), getStyle()); shell.setSize(250, 150); shell.setText(getText()); shell.setLayout(new BorderLayout(0, 0)); Composite composite = new Composite(shell, SWT.NONE); composite.setLayoutData(BorderLayout.SOUTH); composite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); Composite composite_1 = new Composite(shell, SWT.NONE); composite_1.setLayoutData(BorderLayout.CENTER); composite_1.setLayout(new GridLayout(4, false)); new Label(composite_1, SWT.NONE); Label lblHour = new Label(composite_1, SWT.NONE); lblHour.setSize(0, 0); lblHour.setText("Hour"); Label lblMin = new Label(composite_1, SWT.NONE); lblMin.setSize(0, 0); lblMin.setText("Min"); Button btnAm = new Button(composite_1, SWT.RADIO); btnAm.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { ampm=0; } }); btnAm.setSize(0, 0); btnAm.setText("AM"); Label lblStartTime = new Label(composite_1, SWT.NONE); lblStartTime.setSize(0, 0); lblStartTime.setText("Start Time:"); final Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER); hourSpinner.setSize(0, 0); hourSpinner.setMaximum(12); hourSpinner.setMinimum(1); final Spinner minSpinner = new Spinner(composite_1, SWT.BORDER); minSpinner.setSize(0, 0); minSpinner.setMaximum(59); minSpinner.setMinimum(0); Button btnPm = new Button(composite_1, SWT.RADIO); btnPm.setSize(0, 0); btnPm.setText("PM"); Button btnCancel = new Button(composite, SWT.NONE); btnCancel.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { shell.close(); } }); btnCancel.setText("Cancel"); Button btnOk = new Button(composite, SWT.NONE); btnOk.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { hour = Integer.valueOf(hourSpinner.getText()); minute = Integer.valueOf(minSpinner.getText()); parent.setHour(hour); System.out.println("print hour-->"+hour+". print parent.hour-->"+parent.hour); System.out.println(parent.hour); parent.setMinute(minute); parent.setAmpm(ampm); shell.close(); } }); btnOk.setText("OK"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAcc...
[ "0.7466308", "0.7121929", "0.7076964", "0.7058293", "0.70372325", "0.69826394", "0.69677204", "0.6853879", "0.6844699", "0.68149126", "0.6811977", "0.6802788", "0.6799058", "0.6798219", "0.6795771", "0.6789541", "0.6781222", "0.67697275", "0.6749127", "0.671979", "0.671894", ...
0.6241599
61
TODO Autogenerated method stub
@Override public User login(User user) { return userdao.findByUserId(user.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int selectCount() { return userdao.selectCount(); }
{ "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 instance of DTCCollection
public OBDParamCollection() { parser = new OBDParamFormulaParser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DTCCollection() {\n\t}", "public DTCCollection(final int initialCapacity) {\n\t\tsuper(initialCapacity);\n\t}", "Collection<?> create(int initialCapacity);", "public WECollection()\n {\n }", "public static IDatastreamCollection createDatastreamCollection(File f) throws ScapException {\r\n \tre...
[ "0.827222", "0.6748134", "0.6161539", "0.603627", "0.59276396", "0.5877046", "0.5793978", "0.56064916", "0.5601764", "0.55412215", "0.5522461", "0.54679424", "0.5416397", "0.5365141", "0.53274435", "0.523271", "0.5211114", "0.5199057", "0.51922166", "0.5185697", "0.5181573", ...
0.0
-1
write schedule data in excel sheet
public void writeExcel(String file_name, String path, DepartmentDto department, StageDto stage) throws FileNotFoundException, IOException { List<SlotDto> slots = null; try { //create workbook to generate .xls file XSSFWorkbook workbook = new XSSFWorkbook(); XSSFSheet sheet = workbook.createSheet(file_name); // Create a Font for styling header cells Font headerFont = workbook.createFont(); headerFont.setBold(false); headerFont.setFontHeightInPoints((short) 14); headerFont.setColor(IndexedColors.BLACK.getIndex()); Font headerFont2 = workbook.createFont(); headerFont2.setBold(true); headerFont2.setFontHeightInPoints((short) 14); headerFont2.setColor(IndexedColors.DARK_BLUE.getIndex()); Font headerFont1 = workbook.createFont(); headerFont1.setBold(true); headerFont1.setFontHeightInPoints((short) 14); headerFont1.setColor(IndexedColors.DARK_BLUE.getIndex()); CellStyle headerCellStyle3 = workbook.createCellStyle(); headerCellStyle3.setFont(headerFont1); headerCellStyle3.setAlignment(HorizontalAlignment.LEFT); // Create a CellStyle with the font CellStyle headerCellStyle = workbook.createCellStyle(); headerCellStyle.setFont(headerFont2); headerCellStyle.setFillForegroundColor(IndexedColors.SKY_BLUE.getIndex()); headerCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); headerCellStyle.setAlignment(HorizontalAlignment.CENTER); // Create a CellStyle with the font CellStyle headerCellStyle2 = workbook.createCellStyle(); headerCellStyle2.setFont(headerFont); headerCellStyle2.setFillForegroundColor(IndexedColors.WHITE.getIndex()); headerCellStyle2.setFillPattern(FillPatternType.SOLID_FOREGROUND); headerCellStyle2.setAlignment(HorizontalAlignment.LEFT); // Create a CellStyle with the font for day CellStyle headerCellStyle1 = workbook.createCellStyle(); headerCellStyle1.setFont(headerFont); headerCellStyle1.setFillForegroundColor(IndexedColors.LIGHT_YELLOW.getIndex()); headerCellStyle1.setFillPattern(FillPatternType.SOLID_FOREGROUND); headerCellStyle1.setAlignment(HorizontalAlignment.LEFT); // get arraylist of slots of schedule slots = new ArrayList<>(); slots = slotBao.viewSlotsOfSchedule(stage, department); //create all rows for (int r = 0; r < 30; r++) { // Create a Row XSSFRow headerRow = sheet.createRow(r); // Create all cells in row and set their style for (int i = 0; i < 9; i++) { Cell cell = headerRow.createCell(i); if ((i == 0 && r > 2) || r == 3 || r == 4) cell.setCellStyle(headerCellStyle); else if (r > 4) cell.setCellStyle(headerCellStyle2); else if (r < 3) cell.setCellStyle(headerCellStyle3); } } // create row and cell to set the schedule department sheet.getRow(0) .getCell(0) .setCellValue(department.getName()); sheet.getRow(0) .getCell(1) .setCellValue(department.getCode()); // create row and cell to set the academic year sheet.getRow(1) .getCell(0) .setCellValue("Academic year"); sheet.getRow(1) .getCell(1) .setCellValue(stage.getNumber()); // create row and cells to set the term of schedule sheet.getRow(2) .getCell(0) .setCellValue("Term"); sheet.getRow(2) .getCell(1) .setCellValue(slots.get(0).getTerm()); // create rows and cells to set time slots number and day sheet.getRow(3) .getCell(0) .setCellValue("Time slot"); sheet.getRow(3) .getCell(1) .setCellValue("Slot 1"); sheet.getRow(3) .getCell(3) .setCellValue("Slot 2"); sheet.getRow(3) .getCell(5) .setCellValue("Slot 3"); sheet.getRow(3) .getCell(7) .setCellValue("Slot 4"); // ceate row and cells to set start and end time of slots sheet.getRow(4) .getCell(1) .setCellValue("F 09:00-T 10:20"); sheet.getRow(4) .getCell(3) .setCellValue("F 10:30-T 12:00"); sheet.getRow(4) .getCell(5) .setCellValue("F 12:20-T 01:50"); sheet.getRow(4) .getCell(7) .setCellValue("F 2:00-T 03:30"); //set days sheet.getRow(5) .getCell(0) .setCellValue("Sunday"); sheet.getRow(10) .getCell(0) .setCellValue("Monday"); sheet.getRow(15) .getCell(0) .setCellValue("Tuesday"); sheet.getRow(20) .getCell(0) .setCellValue("Wednesday"); sheet.getRow(25) .getCell(0) .setCellValue("Thursday"); // Resize all columns to fit the content size for (int i = 0; i < 9; i++) { sheet.autoSizeColumn(i); } // loop to get slot of indexed day and time slot for (int i = 0; i < slots.size(); i++) { //define slot day int r = -1; if (slots.get(i) .getDay() .equalsIgnoreCase("Sunday")) r = 5; else if (slots.get(i) .getDay() .equalsIgnoreCase("Monday")) r = 10; else if (slots.get(i) .getDay() .equalsIgnoreCase("Tuesday")) r = 15; else if (slots.get(i) .getDay() .equalsIgnoreCase("Wednesday")) r = 20; else if (slots.get(i) .getDay() .equalsIgnoreCase("Thursday")) r = 25; int cell = slots.get(i).getNum() * 2 - 1; // set style for cells if ((r % 2 == 0 && (cell == 1 || cell == 2 || cell == 5 || cell == 6)) || (r % 2 != 0 && (cell == 3 || cell == 4 || cell == 7 || cell == 8))) { sheet.getRow(r) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 1) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 1) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 2) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 2) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 3) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 3) .getCell(cell + 1) .setCellStyle(headerCellStyle1); sheet.getRow(r + 4) .getCell(cell) .setCellStyle(headerCellStyle1); sheet.getRow(r + 4) .getCell(cell + 1) .setCellStyle(headerCellStyle1); } // set course name and code of slot sheet.getRow(r) .getCell(cell) .setCellValue(slots.get(i) .getCourse() .getName()); sheet.getRow(r) .getCell(cell + 1) .setCellValue(slots.get(i) .getCourse() .getCode()); // set type of slot sheet.getRow(r + 2) .getCell(cell) .setCellValue(slots.get(i).getSlot_type()); // set location of slot sheet.getRow(r + 3) .getCell(cell) .setCellValue(slots.get(i) .getLocation() .getName()); // check slot type then set plt of slot if (slots.get(i) .getSlot_type() .equals("LECTURE")) { sheet.getRow(r + 3) .getCell(cell + 1) .setCellValue(slots.get(i) .getCourse() .getPlt_lecture() .getCode()); } if (slots.get(i) .getSlot_type() .equals("SECTION")) { sheet.getRow(r + 3) .getCell(cell + 1) .setCellValue(slots.get(i) .getCourse() .getPlt_section() .getCode()); } // set student number of slot sheet.getRow(r + 4) .getCell(cell) .setCellValue("Student number"); sheet.getRow(r + 4) .getCell(cell + 1) .setCellValue(slots.get(i).getStudent_number()); /* * set staff of slot then check if members > 1 * then concatenate all members' names * and set to cell */ String staff = slots.get(i) .getStaff() .get(0) .getPosition() + "/" + slots.get(i) .getStaff() .get(0) .getName(); /* * set staff user email of slot then check if members > 1 * then concatenate all members' emails * and set to cell */ String[] email = slots.get(i) .getStaff() .get(0) .getUser() .getEmail() .split("@", 2); String user = email[0]; for (int j = 1; j < slots.get(i) .getStaff() .size(); j++) { staff = staff + " # " + slots.get(i) .getStaff() .get(j) .getPosition() + "/" + slots.get(i) .getStaff() .get(j) .getName(); String[] _email = slots.get(i) .getStaff() .get(j) .getUser() .getEmail() .split("@", 2); user = user + " # " + _email[0]; } sheet.getRow(r + 1) .getCell(cell) .setCellValue(staff); sheet.getRow(r + 1) .getCell(cell + 1) .setCellValue(user); } // write data to the file FileOutputStream fileOut = new FileOutputStream(path + "\\" + file_name); workbook.write(fileOut); fileOut.close(); // Closing the workbook workbook.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"client-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"recaudado-\"+date.getTime()+\".xls\";\n\t\tTabl...
[ "0.66716737", "0.6569554", "0.63727504", "0.63618684", "0.63405466", "0.61958116", "0.61958057", "0.60718656", "0.6034325", "0.5964675", "0.59101284", "0.5894949", "0.5892548", "0.5884467", "0.58587706", "0.58571124", "0.58560544", "0.5837748", "0.57900435", "0.5753126", "0.5...
0.67722297
0
editASLTVSdatetime.setText(date_time + (" "+hourOfDay + ":" + minute));
@Override public void onTimeSet(TimePicker view, int hourOfDay, int minute) { editASLTStime.setText((((hourOfDay < 10) ? "0" + hourOfDay : hourOfDay) + ":" + ((minute < 10) ? "0" + minute : minute) + ":00")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n ...
[ "0.77118295", "0.76579964", "0.7650999", "0.7640131", "0.76337695", "0.76007795", "0.7587325", "0.7587146", "0.75779736", "0.75735104", "0.7566715", "0.75430155", "0.7537147", "0.753094", "0.7528864", "0.75263935", "0.7526182", "0.75223035", "0.7519056", "0.75038016", "0.7502...
0.7799375
0
TODO Autogenerated method stub
@Override public int getCount() { return spiele.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int position) { return spiele.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public long getItemId(int position) { return position; }
{ "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 new form TelaSelecionar
public TelaInicio() { initComponents(); //j[0] - Jogador 1 //j[1] - Jogador 2 j[0] = Jogador.getInstance(); j[1] = Jogador.getInstance2(); p[0] = Personagem.getInstance(); String nomeP1 = p[0].getNome(); p[0].GetPersonagem(nomeP1); Icon icon = new ImageIcon("../images/f3.png"); txtNomeJ1.setText(j[0].getNome()); txtApelidoJ1.setText(j[0].getApelido()); J2Nome.setText(j[1].getNome()); J2Apelido.setText(j[1].getApelido()); if(!jRPar.isSelected() && !jRImpar.isSelected()) btnComecar.setEnabled(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "private void iniciaTela() {\n try {\n tfCod.setText...
[ "0.6876106", "0.6839721", "0.6545506", "0.6373543", "0.62878245", "0.62678933", "0.6261554", "0.6251916", "0.62385917", "0.6221975", "0.62180763", "0.6216996", "0.6212647", "0.6205487", "0.6191795", "0.6188694", "0.6166265", "0.61372113", "0.6135834", "0.61097515", "0.6090165...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btnComeca = new javax.swing.ButtonGroup(); jLayeredPane1 = new javax.swing.JLayeredPane(); Sortear = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); label = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); btnComecar = new javax.swing.JButton(); txtNomeJ1 = new javax.swing.JLabel(); txtApelidoJ1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtNomeJ2 = new javax.swing.JLabel(); J2Nome = new javax.swing.JLabel(); J2Apelido = new javax.swing.JLabel(); jRPar = new javax.swing.JRadioButton(); jLabel5 = new javax.swing.JLabel(); jRImpar = new javax.swing.JRadioButton(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1); jLayeredPane1.setLayout(jLayeredPane1Layout); jLayeredPane1Layout.setHorizontalGroup( jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); jLayeredPane1Layout.setVerticalGroup( jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Jogador 1"); setResizable(false); jPanel1.setBackground(new java.awt.Color(255, 255, 255)); jPanel1.setBorder(null); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setText("Jogador 1:"); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel2.setText("Nome:"); label.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N label.setText("Apelido:"); jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/quiz.png"))); // NOI18N btnComecar.setBackground(new java.awt.Color(255, 18, 61)); btnComecar.setFont(new java.awt.Font("sansserif", 1, 24)); // NOI18N btnComecar.setText("Sortear"); btnComecar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnComecarActionPerformed(evt); } }); txtNomeJ1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N txtApelidoJ1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel3.setText("Jogador 2:"); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel4.setText("Nome:"); txtNomeJ2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N txtNomeJ2.setText("Apelido:"); J2Nome.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N J2Apelido.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jRPar.setBackground(new java.awt.Color(255, 255, 255)); Sortear.add(jRPar); jRPar.setText("Par"); jRPar.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jRParStateChanged(evt); } }); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel5.setText("Jogador 1 selecione uma opção:"); jRImpar.setBackground(new java.awt.Color(255, 255, 255)); Sortear.add(jRImpar); jRImpar.setText("Impar"); jRImpar.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jRImparStateChanged(evt); } }); jRImpar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRImparActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(31, 31, 31) .addComponent(jRPar) .addGap(47, 47, 47) .addComponent(jRImpar)) .addComponent(jLabel1) .addComponent(jLabel5)) .addGap(305, 305, 305)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addComponent(label) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtApelidoJ1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomeJ1, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE) .addGap(201, 201, 201))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(txtNomeJ2))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel3) .addGap(12, 12, 12))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(J2Apelido, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(J2Nome, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(105, 105, 105))) .addComponent(jLabel7) .addGap(165, 165, 165)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(btnComecar, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(74, 990, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(19, 19, 19) .addComponent(jLabel7)) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jLabel3)) .addGap(60, 60, 60)) .addComponent(J2Nome, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jLabel2) .addComponent(txtNomeJ1, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(43, 43, 43) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(47, 47, 47) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtNomeJ2) .addComponent(J2Apelido, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(label) .addComponent(txtApelidoJ1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(63, 63, 63))) .addComponent(jLabel5) .addGap(32, 32, 32))) .addGap(21, 21, 21) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRPar) .addComponent(jRImpar)) .addGap(200, 200, 200) .addComponent(btnComecar, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(193, 193, 193)) ); jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/house (1).png"))); // NOI18N jMenu1.setText("Principal"); jMenuBar1.add(jMenu1); jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/info.png"))); // NOI18N jMenu2.setText("Sobre"); jMenuBar1.add(jMenu2); jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/power.png"))); // NOI18N jMenu3.setText("Sair"); jMenuBar1.add(jMenu3); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73195875", "0.7291065", "0.7291065", "0.7291065", "0.7286258", "0.7248489", "0.7213822", "0.7208757", "0.7195916", "0.7190243", "0.7184025", "0.71591616", "0.7148041", "0.70930153", "0.7080625", "0.7056986", "0.6987694", "0.69770867", "0.6955136", "0.69538426", "0.69452894...
0.0
-1
============== Save Student Info =============//
@RequestMapping(value = "saveStudentInfo", method = RequestMethod.POST) public ModelAndView saveStudentInfo(@ModelAttribute Student student, HttpSession session, final RedirectAttributes redirectAttributes, HttpServletRequest request) { //System.out.println("entrance"); if (session.getAttribute("logonSuccessYN") == "Y") { //System.out.println("name " + student.getStudentName()); //System.out.println("mobile " + student.getMobileNo()); //System.out.println("email " + student.getEmailId()); //System.out.println("photo " + student.getStudentAttachmentFile()); try { String attachmentPath = ""; String attachmentName = ""; MultipartFile attachment = student.getStudentAttachmentFile(); //System.out.println("attachmentFile " + student.getStudentAttachmentFile()); //System.out.println("attachment.getSize " + attachment.getSize()); if (attachment.getSize() > 614400) { redirectAttributes.addFlashAttribute("message", "File Must be less than 600 kb !!!"); redirectAttributes.addFlashAttribute("mCode", "0000"); } else { String fileExt = FilenameUtils.getExtension(attachment.getOriginalFilename()); if (attachment.getSize() <= 614400) { student.setStudentAttachmentName("student"); student.setStudentAttachmentExt(fileExt); } Student oStudent = new Student(); oStudent = studentService.saveStudentInfo(student); redirectAttributes.addFlashAttribute("message", oStudent.getMessage()); redirectAttributes.addFlashAttribute("mCode", oStudent.getMessageCode()); InputStream inputStream = null; OutputStream outputStream = null; if (attachment.getSize() <= 614400 && oStudent.getMessageCode().equals("1111")) { if (attachment.getSize() > 0) { inputStream = attachment.getInputStream(); attachmentPath = "/resources/attachment/studentPhoto"; String path = request.getSession().getServletContext().getRealPath(attachmentPath); //System.out.println("path " + path); File uploadRootDir = new File(path); // Create directory if it not exists. if (!uploadRootDir.exists()) { //System.out.println("uploadRootDir " + uploadRootDir); uploadRootDir.mkdirs(); } if (oStudent.getStudentId() != null) { outputStream = new FileOutputStream(uploadRootDir.getAbsolutePath() + File.separator + student.getStudentAttachmentName() + "_" + student.getStudentName() + "_" + oStudent.getStudentId() + "." + fileExt); // System.out.println("outputStream 1 " + // outputStream); } else { outputStream = new FileOutputStream(uploadRootDir.getAbsolutePath() + File.separator + student.getStudentAttachmentName() + "_" + student.getStudentName() + "_" + oStudent.getStudentId() + "." + fileExt); // System.out.println("outputStream 2 " + // outputStream); } int readBytes = 0; byte[] buffer = new byte[8192]; while ((readBytes = inputStream.read(buffer, 0, 8192)) != -1) { outputStream.write(buffer, 0, readBytes); } outputStream.close(); inputStream.close(); } } } redirectAttributes.addFlashAttribute("student", student); return new ModelAndView("redirect:/student/studentInfo"); } catch (Exception e) { e.printStackTrace(); redirectAttributes.addFlashAttribute("mCode", "0000"); redirectAttributes.addFlashAttribute("message", "Error occured!!"); redirectAttributes.addFlashAttribute("student", student); return new ModelAndView("redirect:/student/studentInfo"); } } else { return new ModelAndView("redirect:/login"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveStudent() {\n // Check that every required field has been filled in with valid parameters\n if (!checkUserInputValidity()) {\n return;\n }\n\n // Insert the new student info into the database\n if (isEditStudent) {\n updateStudentOnFirebaseD...
[ "0.8167717", "0.7832637", "0.78118956", "0.7800495", "0.76738006", "0.76116186", "0.7462039", "0.7393063", "0.7367881", "0.72912693", "0.7283701", "0.71449333", "0.698789", "0.6859585", "0.6801905", "0.6792916", "0.6746338", "0.6713152", "0.6649404", "0.66047996", "0.6570883"...
0.0
-1
start fired when the animation starts
public interface TitaniumUIAnimationStartHandler { /** * <b>start</b> * <p> * fired when the animation starts * @param source the source object that fired the event * @param type the name of the event fired */ void start(JavaScriptObject source, JavaScriptObject type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onAnimationStart();", "void startAnimation();", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "public abstract void animationStarted();", "@Override\n protected void animStart() {\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation ...
[ "0.8362959", "0.82307315", "0.8122204", "0.808208", "0.8030803", "0.7990519", "0.7990519", "0.79727066", "0.7963709", "0.7955258", "0.78907055", "0.78907055", "0.78885573", "0.78837013", "0.78325546", "0.78325546", "0.7820402", "0.7787406", "0.77766913", "0.7754004", "0.77164...
0.0
-1
start fired when the animation starts
void start(JavaScriptObject source, JavaScriptObject type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onAnimationStart();", "void startAnimation();", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "public abstract void animationStarted();", "@Override\n protected void animStart() {\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation ...
[ "0.83634377", "0.8231095", "0.81226224", "0.8082246", "0.80315846", "0.79908615", "0.79908615", "0.79733557", "0.7964018", "0.7955639", "0.78908837", "0.78908837", "0.7888877", "0.7884171", "0.7832847", "0.7832847", "0.78208095", "0.77873427", "0.7777213", "0.77544177", "0.77...
0.0
-1
get the bookings where arrival and departure are between the already booked dates
public ArrayList<RoomBooking> findRoomBookingsWithDates(int arrival, int departure, boolean retrieveAssociation) { ArrayList<RoomBooking> rbList = new ArrayList<>(); rbList=miscWhere("arrivalDate<="+arrival+" AND departureDate>="+arrival+ " OR arrivalDate<="+departure+" AND departureDate>="+departure, retrieveAssociation); return rbList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "@Query(\"select reservation from Reservation reservation where reservation.endBorrowing>=:endBorrowing\")\n List<Reservation> findByEndBorrowingAfter(@Param(\"endBorrowing\")Date endBorrowing);", "publ...
[ "0.65587837", "0.61064965", "0.6070297", "0.5901533", "0.5887722", "0.58494645", "0.5824118", "0.5779483", "0.5772586", "0.575915", "0.5632489", "0.5621542", "0.5620328", "0.55621654", "0.55568707", "0.5536737", "0.5524586", "0.5522533", "0.55121934", "0.54891235", "0.5487694...
0.7114759
0
Generated method Getter of the MyCustomer.email attribute.
public String getEmail(final SessionContext ctx) { return (String)getProperty( ctx, EMAIL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\...
[ "0.8566995", "0.8242252", "0.81075466", "0.80507237", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.80262774", "0.8016991", "0.8016529", "0.8006505", "0.8003671", "0.8003671", "0....
0.0
-1
Generated method Getter of the MyCustomer.email attribute.
public String getEmail() { return getEmail( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\...
[ "0.8566315", "0.8241811", "0.81085956", "0.8051756", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.80280524", "0.8018798", "0.80178076", "0.80051637", "0.80051637", "0.80042726", ...
0.0
-1
Generated method Setter of the MyCustomer.email attribute.
public void setEmail(final SessionContext ctx, final String value) { setProperty(ctx, EMAIL,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "@Override\n public void setEmail(String email) {\n\n }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public void setE...
[ "0.7948876", "0.78858054", "0.78694934", "0.77320004", "0.76599526", "0.76599526", "0.76509404", "0.7600703", "0.75433964", "0.74545056", "0.7428741", "0.73873365", "0.7370707", "0.7365634", "0.7334015", "0.7317234", "0.72878605", "0.7261201", "0.72383744", "0.7236771", "0.72...
0.0
-1
Generated method Setter of the MyCustomer.email attribute.
public void setEmail(final String value) { setEmail( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "@Override\n public void setEmail(String email) {\n\n }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public void setE...
[ "0.7948876", "0.78858054", "0.78694934", "0.77320004", "0.76599526", "0.76599526", "0.76509404", "0.7600703", "0.75433964", "0.74545056", "0.7428741", "0.73873365", "0.7370707", "0.7365634", "0.7334015", "0.7317234", "0.72878605", "0.7261201", "0.72383744", "0.7236771", "0.72...
0.6982484
46
Generated method Getter of the MyCustomer.firstName attribute.
public String getFirstName(final SessionContext ctx) { return (String)getProperty( ctx, FIRSTNAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public String getFirstName(){\n return(this.firstName);\n }", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName() {\n return this.fi...
[ "0.8742406", "0.84536105", "0.83862764", "0.8374953", "0.8374953", "0.83725077", "0.83725077", "0.83725077", "0.83699", "0.8368032", "0.83677685", "0.836113", "0.836113", "0.836113", "0.8358224", "0.83573705", "0.8343316", "0.8336508", "0.83325", "0.83325", "0.83325", "0.83...
0.0
-1
Generated method Getter of the MyCustomer.firstName attribute.
public String getFirstName() { return getFirstName( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public String getFirstName(){\n return(this.firstName);\n }", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName() {\n return this.fi...
[ "0.8742407", "0.84530693", "0.8385525", "0.8374112", "0.8374112", "0.83716005", "0.83716005", "0.83716005", "0.83691204", "0.83671844", "0.8366927", "0.83605015", "0.83605015", "0.83605015", "0.8357485", "0.8356837", "0.8342887", "0.83355135", "0.8331674", "0.8331674", "0.833...
0.0
-1
Generated method Setter of the MyCustomer.firstName attribute.
public void setFirstName(final SessionContext ctx, final String value) { setProperty(ctx, FIRSTNAME,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setFirstName(java.lang.String firstName) {\n _entityCustomer.setFirstName(firstName);\n }", "public void setFirstName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer first name can't be null.\" );\r\n else \r\n\t this.firstNa...
[ "0.84286875", "0.8041329", "0.8031002", "0.79811144", "0.79790187", "0.7946858", "0.794638", "0.79261005", "0.79178125", "0.7916446", "0.79033715", "0.785977", "0.7859083", "0.78412366", "0.78412366", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78...
0.0
-1
Generated method Setter of the MyCustomer.firstName attribute.
public void setFirstName(final String value) { setFirstName( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setFirstName(java.lang.String firstName) {\n _entityCustomer.setFirstName(firstName);\n }", "public void setFirstName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer first name can't be null.\" );\r\n else \r\n\t this.firstNa...
[ "0.84286875", "0.8041329", "0.8031002", "0.79811144", "0.79790187", "0.7946858", "0.794638", "0.79261005", "0.79178125", "0.7916446", "0.79033715", "0.785977", "0.7859083", "0.78412366", "0.78412366", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78375584", "0.78...
0.0
-1
Generated method Getter of the MyCustomer.lastName attribute.
public String getLastName(final SessionContext ctx) { return (String)getProperty( ctx, LASTNAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName()\n {\n return this.lastName;\n }", "publi...
[ "0.803231", "0.80141634", "0.7961379", "0.79045314", "0.78814113", "0.78251326", "0.7821773", "0.7820196", "0.7817071", "0.7817071", "0.7817071", "0.78104156", "0.7804572", "0.7804572", "0.7803594", "0.77665", "0.77533567", "0.77465916", "0.77462775", "0.77393687", "0.7707473...
0.0
-1
Generated method Getter of the MyCustomer.lastName attribute.
public String getLastName() { return getLastName( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName()\n {\n return this.lastName;\n }", "publi...
[ "0.8032125", "0.801402", "0.79607177", "0.79035765", "0.7880476", "0.7824299", "0.7820606", "0.7819335", "0.7815888", "0.7815888", "0.7815888", "0.78094", "0.78034604", "0.78034604", "0.7802934", "0.77656096", "0.7752301", "0.77453417", "0.7745052", "0.7738919", "0.77078205",...
0.0
-1
Generated method Setter of the MyCustomer.lastName attribute.
public void setLastName(final SessionContext ctx, final String value) { setProperty(ctx, LASTNAME,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLastName(java.lang.String lastName) {\n _entityCustomer.setLastName(lastName);\n }", "public void setLastName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer last name can't be null.\" );\r\n else \r\n\t this.lastName = na...
[ "0.82246983", "0.8084397", "0.80172896", "0.7834927", "0.7805669", "0.7797227", "0.7786226", "0.778122", "0.77714044", "0.76917064", "0.7685369", "0.7677049", "0.76770186", "0.7675557", "0.7673601", "0.76722056", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.7654...
0.0
-1
Generated method Setter of the MyCustomer.lastName attribute.
public void setLastName(final String value) { setLastName( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLastName(java.lang.String lastName) {\n _entityCustomer.setLastName(lastName);\n }", "public void setLastName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer last name can't be null.\" );\r\n else \r\n\t this.lastName = na...
[ "0.82246983", "0.8084397", "0.80172896", "0.7834927", "0.7805669", "0.7797227", "0.7786226", "0.778122", "0.77714044", "0.76917064", "0.7685369", "0.7677049", "0.76770186", "0.7675557", "0.7673601", "0.76722056", "0.76543033", "0.76543033", "0.76543033", "0.76543033", "0.7654...
0.70071393
76
Generated method Getter of the MyCustomer.phone attribute.
public String getPhone(final SessionContext ctx) { return (String)getProperty( ctx, PHONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public final String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n return phone;\r\n }"...
[ "0.86266136", "0.86070484", "0.82619333", "0.82418036", "0.82418036", "0.82418036", "0.82418036", "0.82418036", "0.82418036", "0.82261366", "0.81989694", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.8194674", "0.81...
0.0
-1
Generated method Getter of the MyCustomer.phone attribute.
public String getPhone() { return getPhone( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public final String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n return phone;\r\n }"...
[ "0.8626331", "0.86071444", "0.8264226", "0.82440007", "0.82440007", "0.82440007", "0.82440007", "0.82440007", "0.82440007", "0.82278675", "0.8201415", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", "0.81967604", ...
0.0
-1
Generated method Setter of the MyCustomer.phone attribute.
public void setPhone(final SessionContext ctx, final String value) { setProperty(ctx, PHONE,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setPhone(String phone);", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public void setPhone(String phone) {\n ...
[ "0.8314917", "0.8153204", "0.80994797", "0.80439866", "0.7993954", "0.7949552", "0.7939556", "0.79392177", "0.78836554", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "...
0.0
-1
Generated method Setter of the MyCustomer.phone attribute.
public void setPhone(final String value) { setPhone( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setPhone(String phone);", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public void setPhone(String phone) {\n ...
[ "0.8314917", "0.8153204", "0.80994797", "0.80439866", "0.7993954", "0.7949552", "0.7939556", "0.79392177", "0.78836554", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "0.78732187", "...
0.0
-1
get list by condition
List<Area> list();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getResult(String conditing) {\n\t\treturn null;\r\n\t}", "public List<DomainObject> getListByCondition(String condition) {\r\n Session session = getSession();\r\n List<DomainObject> lst = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n ...
[ "0.70522803", "0.6694403", "0.6537534", "0.6292337", "0.6236361", "0.6229989", "0.6199344", "0.61476713", "0.614058", "0.6101537", "0.60998064", "0.60600674", "0.6046834", "0.6034358", "0.5951065", "0.5942348", "0.59293115", "0.5880448", "0.58767545", "0.58291906", "0.5819940...
0.0
-1
/ / Extended API
public Iterator<JacksonJrValue> elements() { return _values.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "private ExtendedOperations(){}", "@Override\n protected void prot() {\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "void extend();", "@Override\n\tprotected void getExras() {\n\n\t}", "public API() {}", "@Override\n\tpublic void anul...
[ "0.6376206", "0.62999606", "0.6066071", "0.59679335", "0.5960104", "0.5899899", "0.58682674", "0.5850732", "0.58487016", "0.58487016", "0.58334804", "0.58207643", "0.58206767", "0.58045256", "0.5748512", "0.5740752", "0.57405776", "0.5724381", "0.5715495", "0.57137936", "0.57...
0.0
-1
Instantiates a new version factory.
private VersionFactory() { versions = ClassResolverUtils.findImpl(Version.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static VersionFactory getInstance() {\n\t\treturn SingletonHolder.versionFactory;\n\t}", "public Version createVersion(String versionValue);", "public AutomatizacionrevisionFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public static FvFactory init() {\n\t\ttry {\n\t\t\tFvFactory theFvFactory = (FvFactory)...
[ "0.7218382", "0.67338955", "0.65193355", "0.64729494", "0.64590096", "0.64501333", "0.64063996", "0.6268394", "0.62510306", "0.6149164", "0.6120167", "0.60820395", "0.604151", "0.6016524", "0.5992987", "0.5978473", "0.59432524", "0.58959925", "0.58924603", "0.58789015", "0.58...
0.75222373
0
Gets the single instance of VersionFactory.
public static VersionFactory getInstance() { return SingletonHolder.versionFactory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Version getVersion() {\n return new Version();\n }", "private VersionFactory() {\n\t\tversions = ClassResolverUtils.findImpl(Version.class);\n\t}", "public static OpenTypeFactory getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\...
[ "0.6859344", "0.66546607", "0.6453314", "0.63815534", "0.6257926", "0.6229275", "0.598491", "0.59791607", "0.5975639", "0.5953531", "0.5933627", "0.59237313", "0.58983546", "0.5817936", "0.5810937", "0.580235", "0.57781893", "0.57459843", "0.5716837", "0.5692524", "0.5686535"...
0.8578275
0
This is implemented by anyone that wants to simulate CPU instruction code. Think of this as a linebyline executor of some machine code run by a machine thread.
public interface Code { /** * Called to execute the "next" line of code in this * virtual hardware component. * * This can be any action (or sequence of actions) as desired by * the implementation to simulate hardware functions. * * @return true when this "process" wants to exit. */ public boolean executeNext(); /** * Called when this instruction set should terminate execution permanently. * This method SHOULD NOT modify the process Identifier or CPU. It should * only shut down any processing needs and reset internal data if this * process is executed again. */ public void shutdown(); /** * Get the program name. */ public String getName(); // </editor-fold> }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }", "public void run() {\r\n\t\t\r\n\t\t// While the PC is less than allocated memory and less than SP\r\n\t\twhile (getPC() < getLIM() && getPC() < get...
[ "0.62421936", "0.61460346", "0.6078098", "0.5893275", "0.5868776", "0.5855366", "0.57276267", "0.56395894", "0.5633768", "0.5627626", "0.557216", "0.55610627", "0.5552666", "0.5498002", "0.5497906", "0.5497727", "0.5490221", "0.54776883", "0.54604334", "0.54415417", "0.543904...
0.6021297
3
Called to execute the "next" line of code in this virtual hardware component. This can be any action (or sequence of actions) as desired by the implementation to simulate hardware functions.
public boolean executeNext();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}", "public void execute() {\n if(cb) {\n Main.cb.step(Main.cpu.get8BitImm());\n }\n }", "public void step() {\n try {\n int code = memory[pc];\n nextCode(code);\n pc++;\n ...
[ "0.6801252", "0.66340977", "0.655635", "0.62709725", "0.6220823", "0.6214504", "0.61891985", "0.61440605", "0.6107939", "0.60758996", "0.60758996", "0.60660875", "0.60660875", "0.6048168", "0.6038024", "0.602985", "0.602985", "0.60038966", "0.59877264", "0.5976757", "0.596819...
0.57737255
31
Called when this instruction set should terminate execution permanently. This method SHOULD NOT modify the process Identifier or CPU. It should only shut down any processing needs and reset internal data if this process is executed again.
public void shutdown();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processQuit() {\n System.exit(0);\n }", "public void terminate() {\n\t\tpostEvent(new IpcEvent(SimulationEvents.EVENT_TYPE_TERMINATE, this, null));\n\t}", "public void terminate() {\r\n running = false;\r\n }", "public void terminate() {\n\t\trunning = false;\n\t}", "public...
[ "0.6212536", "0.62053114", "0.62002844", "0.6189946", "0.6188206", "0.61183584", "0.61048114", "0.6077484", "0.5983071", "0.5981645", "0.5972006", "0.5969616", "0.5952206", "0.59251314", "0.58986306", "0.58975476", "0.58812743", "0.58508724", "0.5847087", "0.5845414", "0.5817...
0.0
-1
Get the program name.
public String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }", "public String getProgram...
[ "0.77596396", "0.7188131", "0.6972141", "0.69675076", "0.6932964", "0.67753017", "0.6771742", "0.6771742", "0.6771742", "0.673426", "0.6733935", "0.6733935", "0.6723887", "0.6701197", "0.66944134", "0.6688916", "0.6688916", "0.6660147", "0.6660147", "0.66585284", "0.66413504"...
0.0
-1
Raw height and width of image
public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) { final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; // Tamaño original del mapa de bits (width 3300 x height 1650). // Tamaño deseado (reqWidth 330 x reqHeight 200). if (height > reqHeight || width > reqWidth) { // Calculate ratios of height and width to requested height and width final int heightRatio = Math.round((float) height / (float) reqHeight); // Res: 8 final int widthRatio = Math.round((float) width / (float) reqWidth); // Res: 10. // Choose the smallest ratio as inSampleSize value, this will guarantee // a final image with both dimensions larger than or equal to the // requested height and width. inSampleSize = Math.max(heightRatio, widthRatio); } return inSampleSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().botto...
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946",...
0.0
-1
First decode with inJustDecodeBounds=true to check dimensions
public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) { final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(res, resId, options); // Calculate inSampleSize options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); // options.inSampleSize *= 1; // options.inSampleSize = 1; // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; return BitmapFactory.decodeResource(res, resId, options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public static Pair<Integer, Integer> decodeDimensions(InputStream param0) {\n }", "@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptio...
[ "0.64330935", "0.6134155", "0.51375324", "0.5103189", "0.5094085", "0.5088103", "0.50464207", "0.50199175", "0.50187564", "0.49512768", "0.49372807", "0.49353808", "0.49011984", "0.4898262", "0.48965445", "0.48904788", "0.48879516", "0.48648673", "0.48627484", "0.4849078", "0...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7249201", "0.7204109", "0.7197405", "0.71792436", "0.7109801", "0.7041446", "0.7040234", "0.70145714", "0.7011273", "0.6983118", "0.6946729", "0.6940447", "0.6936383", "0.6920103", "0.6920103", "0.6893587", "0.6885479", "0.6877562", "0.6877041", "0.6864375", "0.6864375", ...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904066", "0.7804976", "0.7766218", "0.7726716", "0.7631313", "0.76221544", "0.7584775", "0.7530617", "0.74878734", "0.7457033", "0.7457033", "0.74380976", "0.7421477", "0.7402898", "0.7391322", "0.7386477", "0.73788774", "0.7370012", "0.7362617", "0.73555875", "0.73451835...
0.0
-1
testVerifyInternationalCountryOfOrigin is used to Verifying table information when CountryOfOrigin is selected)
@Test (enabled = false, groups = {"smokeTest"}) public void testVerifyInternationalCountryOfOrigin() throws Exception { test = extent.createTest("Verify International Facts Country Of Origin"); driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);//this is global so no need to mention multiple times try { login.doLogin(test); WebElement helpButton = driver.findElement(By.cssSelector(".explore-quiries-inner")); helpButton.click(); test.log(Status.INFO, "Help button Clicked"); test.createNode("Help Button clicked"); Thread.sleep(5 * 1000); test.log(Status.INFO, "Sunburst Shown"); WebElement International = driver.findElement(By.id("mainArc-0b981a1b-32dc-43b1-b257-70c8c5a6cc6d")); International.click(); test.log(Status.INFO, "International Cluster Clicked on the Sunburst"); test.createNode("International cluster clicked"); Thread.sleep(5 * 1000); WebElement Countryoforigin = driver.findElement(By.id("mainArc-71ef3c15-be01-454d-bd1e-c59d13904a65")); Countryoforigin.click(); Thread.sleep(5 * 1000); test.log(Status.INFO, "Country of Origin Element Clicked on the Sunburst"); test.createNode("Country of Origin clicked"); WebElement helpButtoncountry = driver.findElement(By.id("mainArc-466ed1b9-526b-45c7-a02c-e6d419ef606f")); helpButtoncountry.click(); Thread.sleep(5 * 1000); WebElement TabularView = driver.findElement(By.id("simple-tab-0")); TabularView.click(); Thread.sleep(4*1000); /// VALIDATION /// WebElement tr = driver.findElement(By.id("total-records-count")); String value = tr.getText(); System.out.println("total record->"+value); if (Integer.parseInt(value) == 0) { test.log(Status.INFO, "No Table should appear since no data fetched for given query"); Assert.assertEquals(0, 0); Assert.assertFalse(Integer.parseInt(value) == 0); // to fail, parameter has to be true (0 == 0) => so true; assertFalse(true) means failed test } else { test.log(Status.INFO, "Table is shown with records since table records != 0"); Assert.assertEquals(Integer.parseInt(value) > 0, true); //setting to true since if it comes into this else, it is greater than 0 (can be any num greater than 0 so can't put set value for expected) Assert.assertTrue(Integer.parseInt(value) > 0); driver.findElement(By.xpath("//*[text()=' Total Records']")); test.log(Status.INFO, "Total Records found and table shown"); Thread.sleep(2 * 1000); test.createNode("Verified the table information is displayed when Country of origin is selected. "); WebElement Graphicalview = driver.findElement(By.id("simple-tab-1")); Graphicalview.click(); // Clicks on Graphical View test.createNode("Grahical view clicked"); Thread.sleep(2 * 1000); WebElement Ograph = driver.findElement(By.id("simple-tab-2")); Ograph.click(); // Clicks on Other Graphical View old one test.createNode("Other Graphical view clicked"); Thread.sleep(2 * 1000); WebElement Axis1 = driver.findElement(By.className("other-graph-axis-1-value")); Axis1.click(); // Click Axis 1 Thread.sleep(3 * 1000); test.createNode("clciked on Axis1"); driver.findElement(By.id("react-select-2-option-0")).click(); // Click origin country Thread.sleep(2 * 1000); WebElement Axis2 = driver.findElement(By.className("other-graph-axis-2-value")); Axis2.click(); // Click Axis 2 test.createNode("clciked on Axis2"); Thread.sleep(3 * 1000); WebElement count = driver.findElement(By.id("react-select-3-option-0")); count.click(); // Click count Thread.sleep(5 * 1000); WebElement Graph = driver.findElement(By.className("other-graph-type")); Graph.click(); //Click graph test.createNode("clicked on graph"); Thread.sleep(3 * 1000); WebElement bubblegraph = driver.findElement(By.id("react-select-4-option-4")); bubblegraph.click(); // Click bubble Graph Thread.sleep(4 * 1000); WebElement Show = driver.findElement(By.className("MuiButton-label")); // Click Show test.createNode("clicked ON Show button "); Show.click(); } } catch( Exception e) { test.createNode("Exception (" + e.toString() + ") found").fail(e); // e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void recipientCountryCodeTest() {\n // TODO: test recipientCountryCode\n }", "@Test\n\tpublic void validateCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tgiven().get(Endpoint.GET_COUNTRY).then().statusCode(200).\n\t\tand().conte...
[ "0.65647376", "0.63716686", "0.6346308", "0.629002", "0.6085211", "0.6061807", "0.58647037", "0.58540887", "0.5850894", "0.5822263", "0.5806369", "0.5768741", "0.5714637", "0.56988543", "0.5694692", "0.5650984", "0.56322086", "0.5624135", "0.56013346", "0.55864745", "0.558336...
0.6445567
1
testPrivateQueries is used to automate private queries button (verify its existence)
@Test (groups = {"regressionTest"}) public void testPrivateQueries() { test = extent.createTest("Verify Private Query Button"); driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);//this is global so no need to mention multiple times try { login.doLogin(test); test.createNode("Clicking on Help Button"); //test.log(Status.INFO, "Clicking on Help Button"); WebElement helpButton = driver.findElement(By.cssSelector(".explore-quiries-inner")); highlightHelper.highLightElement(driver, helpButton); helpButton.click(); test.createNode("Clicking on Private Query Button"); //test.log(Status.INFO, "Clicking on Private Query Button"); WebElement privateQueryButton = driver.findElement(By.id("scrollable-auto-tab-1")); highlightHelper.highLightElement(driver, privateQueryButton); privateQueryButton.click(); } catch (Exception e) { test.createNode("Exception (" + e.toString() + ") found").fail(e); Assert.assertTrue(false); } test.createNode("Verified Private Query Successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test (groups = {\"regressionTest\"})\n public void testPublicQueries() throws Exception {\n test = extent.createTest(\"Verify Public Query Button\");\n driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);\n try {\n login.doLogin(test);\n //Thread...
[ "0.6937975", "0.62611103", "0.6192139", "0.6028667", "0.6014243", "0.58755517", "0.57943827", "0.5776115", "0.5772085", "0.5759559", "0.575071", "0.5680118", "0.56038254", "0.5594812", "0.5589938", "0.55771124", "0.5576528", "0.55698067", "0.55655605", "0.55637467", "0.548407...
0.8153771
0
testColumresize is used to verify whether the columns can be resized are not.
@Test (groups = {"regressionTest"}) public void testColumresize() { test = extent.createTest("Verify testColumresize"); // WebDriverWait wait = new WebDriverWait(driver, 15); try { login.doLogin(test); WebElement searchBubble = driver.findElement(By.xpath("//input[@class='auto-suggestion-input']")); wait.until(ExpectedConditions.visibilityOf(searchBubble)); searchBubble.click(); searchBubble.sendKeys("list of customers"); searchBubble.sendKeys(Keys.ENTER); searchBubble.sendKeys(Keys.ENTER); wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"query-search-result-table\"]/div/div/div[1]/div/div[1]/div[2]/div/div/div[6]/div[1]")));//changes according to xpath Actions action; WebElement resize; for (int i = 1; i <= 4; i++) { resize = driver.findElement(By.xpath("//*[@id=\"query-search-result-table\"]/div/div/div[1]/div/div[1]/div[2]/div/div/div[" + i + "]/div[1]")); action = new Actions(driver); action.clickAndHold(resize); action.moveByOffset(100, 0); action.release(resize).perform(); } test.createNode("Columresize verified successfully"); //Thread.sleep(5000); //use this if you want to observe the size while execution. } catch (Exception e) { test.createNode("Exception " + e + "in testColumresize"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resizeColumns() {\n }", "public void testResize()\n {\n cover.resize(5, 5, 90);\n assertEquals(5.0, cover.getTop(), .1);\n assertEquals(5.0, cover.getLeft(), .1);\n }", "@Test\n public void testGetColumnCount() {\n System.out.println(\"getColumnCount\");\n ...
[ "0.65584296", "0.6403929", "0.6248748", "0.60907733", "0.60665065", "0.6040744", "0.6009768", "0.59887505", "0.59245026", "0.586101", "0.58224165", "0.58224165", "0.5817176", "0.57504237", "0.5735285", "0.57132035", "0.5684633", "0.5660451", "0.56162995", "0.5608633", "0.5575...
0.64877325
1
testPublicQueries is used to automate public queries button (verify its existence)
@Test (groups = {"regressionTest"}) public void testPublicQueries() throws Exception { test = extent.createTest("Verify Public Query Button"); driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS); try { login.doLogin(test); //Thread.sleep(4 * 1000); test.createNode("Clicking on Help Button"); test.log(Status.INFO, "Clicking on Help Button"); WebElement helpButton = driver.findElement(By.cssSelector(".explore-quiries-inner")); highlightHelper.highLightElement(driver, helpButton); helpButton.click(); //Thread.sleep(4 * 1000); test.createNode("Clicking on Public Query Button"); test.log(Status.INFO, "Clicking on Public Query Button"); WebElement publicQueryButton = driver.findElement(By.id("scrollable-auto-tab-2")); highlightHelper.highLightElement(driver, publicQueryButton); publicQueryButton.click(); //Thread.sleep(4 * 1000); } catch (Exception e) { test.createNode("Caught [ " + e + " ] exception in testPublicQueries"); } test.createNode("Verified Public Query Successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test (groups = {\"regressionTest\"})\n public void testPrivateQueries() {\n test = extent.createTest(\"Verify Private Query Button\");\n driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS);//this is global so no need to mention multiple times\n try {\n logi...
[ "0.7190442", "0.6582052", "0.6439441", "0.63100857", "0.6276846", "0.6211347", "0.6075801", "0.6062918", "0.60323364", "0.6023986", "0.5950666", "0.59364533", "0.59035933", "0.5897832", "0.58270687", "0.57194996", "0.56762654", "0.56681746", "0.5651817", "0.5627935", "0.56279...
0.801354
0
testFreightChareQueries is used to run some queries in search bubble
@Test public void testFreightChargeQueries() throws Exception { //Setup test = extent.createTest("Verify Freight Charges Queries"); try { driver.manage().timeouts().implicitlyWait(time_to_wait, TimeUnit.SECONDS); login.doLogin(test); test.log(Status.INFO, "Clicking on Search Bar"); //query 1 queryChecker.runSearchBubbleQuery(driver, "list all charges", test); test.createNode("list all Freight Charges verified successfully"); //query 2 queryChecker.runSearchBubbleQuery(driver, "list all charges where carrier id is fedex", test); test.createNode("list all charges where carrier id is fedex verified successfully"); //query 3 queryChecker.runSearchBubbleQuery(driver, "list all charges where charge type is Disk and freight charges amount > 100", test); test.createNode("list all charges where charge type is Disk and freight charges amount > 100 verified successfully"); //query 4 queryChecker.runSearchBubbleQuery(driver, "list all charges where carrier id is ups frieght", test); test.createNode("list all charges where carrier id is ups frieght verified successfully"); }catch (Exception e){ e.printStackTrace(); } test.createNode("Verified Freight Charge Queries Successfully!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testQuery() {\n mActivity.runOnUiThread(\n new Runnable() {\n public void run() {\n //TODO: Should compare this against the db results directly.\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(se...
[ "0.711651", "0.6552419", "0.6531162", "0.6474149", "0.64681816", "0.6457078", "0.6447234", "0.64378625", "0.6429543", "0.63489455", "0.61143476", "0.6112527", "0.6083634", "0.6057388", "0.6049363", "0.603321", "0.60042554", "0.5957052", "0.5949897", "0.5934078", "0.5907304", ...
0.7518604
0
TODO Autogenerated method stub
@Override public boolean containsKey(Object key) { String uKey = key.toString().toUpperCase(); return super.containsKey(uKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public T put(String key, T value) { String uKey = key.toUpperCase(); if ( containsKey(uKey)){ return super.get(uKey); }else{ return super.put(uKey, value); } }
{ "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
Get the identification number of the connection in question.
public long connectionId() { return connectionId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getConnectionId() {\n return connId;\n }", "public long getConnectionId() {\n return connectionId;\n }", "public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf....
[ "0.7077883", "0.7039791", "0.70035154", "0.70035154", "0.70035154", "0.69793147", "0.69793147", "0.69793147", "0.69346243", "0.69346243", "0.69346243", "0.68699586", "0.67614853", "0.6715348", "0.67034036", "0.6679115", "0.65694535", "0.6478608", "0.64729166", "0.64729166", "...
0.7168045
0
Get the address of the remote host that your session is connected to. If this is an offline session then this method will return "".
public String connectedHost() { return connectedHost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getRemoteHost();", "String getRemoteAddr();", "public final String getRemoteSocketAddress(){\r\n return remoteSocketHost;\r\n }", "public java.lang.String getRemoteHost() {\r\n return remoteHost;\r\n }", "@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\tretur...
[ "0.7978201", "0.7535884", "0.75342786", "0.74717456", "0.7404485", "0.73456204", "0.7343658", "0.73434126", "0.73292834", "0.7290443", "0.72565585", "0.72543746", "0.7232933", "0.7204466", "0.7179026", "0.71678823", "0.7162452", "0.71316195", "0.71316195", "0.7125125", "0.707...
0.7531752
3
Get the sequence number of the last message to be received by this session.
public int lastReceivedMsgSeqNum() { return lastReceivedMsgSeqNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized int getLastReceivedSequenceNumber()\n {\n return EASMessage.s_lastReceivedSequenceNumber;\n }", "public int lastSentMsgSeqNum()\n {\n return lastSentMsgSeqNum;\n }", "public long lastUpdateSequence() {\n\t\treturn message.getLastUpdateSequence();\n\t}", "@...
[ "0.81843984", "0.78394854", "0.6925608", "0.6833313", "0.6825808", "0.67739433", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6738299", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6710433", "0.6653604", ...
0.8493957
0
Get the sequence number of the last message to be sent from this session.
public int lastSentMsgSeqNum() { return lastSentMsgSeqNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int lastReceivedMsgSeqNum()\n {\n return lastReceivedMsgSeqNum;\n }", "public static synchronized int getLastReceivedSequenceNumber()\n {\n return EASMessage.s_lastReceivedSequenceNumber;\n }", "public long lastUpdateSequence() {\n\t\treturn message.getLastUpdateSequence();\n\t...
[ "0.83613485", "0.80299443", "0.714532", "0.7002589", "0.692083", "0.692083", "0.692083", "0.692083", "0.692083", "0.692083", "0.692083", "0.6913382", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.68983084", "0.6816437", "0.6754615", ...
0.8318448
1