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
Constructor used when instantiating this class within its own main.
public ToolKitFinder(EdaContext aContext) throws IcofException { this(aContext, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Main() {\n\n super();\n }", "public Main() {\n\t\tsuper();\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "private Main ()\n {\n super ();\n }", "public Main() {\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Main() {\n \n \n...
[ "0.80686593", "0.7861194", "0.7849036", "0.78214383", "0.7555967", "0.750676", "0.742205", "0.7354902", "0.7350861", "0.7350861", "0.7271449", "0.723124", "0.71797466", "0.71797466", "0.7169403", "0.71243334", "0.70556825", "0.7054301", "0.69266045", "0.68970907", "0.6833616"...
0.0
-1
Instantiate the class and process the arguments.
public static void main(String argv[]) { TkAppBase myApp = null; try { myApp = new ToolKitFinder(null); start(myApp, argv); } catch (Exception e) { handleExceptionInMain(e); } finally { handleInFinallyBlock(myApp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void run(String classname, Vector args) throws BuildException {\r\n CommandlineJava cmdj = new CommandlineJava();\r\n cmdj.setClassname(classname);\r\n for (int i = 0; i < args.size(); i++) {\r\n cmdj.createArgument().setValue((String) args.elementAt(i));\r\n }\r\n ...
[ "0.6559003", "0.6452344", "0.6332843", "0.62768626", "0.6138277", "0.6046296", "0.6002044", "0.599029", "0.5963661", "0.59284663", "0.59181696", "0.5848434", "0.5837776", "0.5808015", "0.57995564", "0.5778944", "0.5758341", "0.5742251", "0.57406586", "0.57283276", "0.5717161"...
0.0
-1
Add, update, delete, or report on the specified applications.
public void process(EdaContext xContext) throws IcofException { // Connect to the database connectToDB(xContext); // Determine if branch/component are for a production or development TK. findToolKit(xContext); rollBackDBAndSetReturncode(xContext, APP_NAME, SUCCESS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApplications(int applications) {\r\n this.applications = applications;\r\n }", "@Override\n\tpublic void addNewInstallApps(List<ApplicationInfo> apps, String packageName) {\n ALog.d(\"Enter\");\n\n\n\t\tfor(ApplicationInfo info : apps){\n\t\t\tint[] pageInfo = LauncherProviderHelp...
[ "0.66510755", "0.6595167", "0.6283191", "0.6121523", "0.6064329", "0.60096794", "0.59488165", "0.5897108", "0.5868535", "0.581277", "0.5800891", "0.5795511", "0.5795161", "0.5787705", "0.57639825", "0.57487994", "0.5747711", "0.57236785", "0.5607216", "0.55868036", "0.5580697...
0.0
-1
Determines if this branch is valid for the specified Component name
public void findToolKit(EdaContext xContext) throws IcofException { // Lookup this branch name in the branch name DB table. If not found // then not a production branch. logInfo(xContext, "Looking up Branch name ...", verboseInd); BranchName myBranchName = new BranchName(xContext, getName()); try { myBranchName.dbLookupByName(xContext); logInfo(xContext, "Found Branch name ...", verboseInd); } catch(IcofException trap) { logInfo(xContext, "Unable to find ToolKit - Branch name not found.", true); return; } setBranchName(myBranchName); // Now determine if there's a tool kit for this Branch/Component pair. // If so then this is a production branch. logInfo(xContext, "Looking up ToolKit ...", verboseInd); Branch myBranch = new Branch(xContext, getBranchName(), null); Vector<ToolKit> tks = myBranch.findToolKits(xContext, getComponent()); if (! tks.isEmpty()) { for (ToolKit tk : tks) { tk.getToolKit().getRelease().dbLookupById(xContext); logInfo(xContext, tk.getToolKit().getDisplayName(), true); } } else logInfo(xContext, "Unable to find ToolKit - Component/Branch pair " + "not found in database.", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isValidComponent(String key){\r\n //Remove \"Components.\" from begining\r\n if(key.length() > 11 && key.subSequence(0, 11).equals(\"Components.\")){\r\n key = key.substring(11); \r\n } \r\n \r\n // Check Logical Component mappings\r\n for(Netl...
[ "0.6536262", "0.6186948", "0.6107331", "0.5985042", "0.5955747", "0.59286267", "0.5763251", "0.57430243", "0.5718285", "0.5685426", "0.56465876", "0.5592119", "0.5569719", "0.54879105", "0.5476882", "0.54716665", "0.5413695", "0.5409317", "0.53975254", "0.53885067", "0.534391...
0.0
-1
Read the Component name
protected String readParams(Hashtable<String,String> params, String errors, EdaContext xContext) throws IcofException { if (params.containsKey("-c")) { setComponent(xContext, params.get("-c")); } else { errors += "Component (-c) is a required parameter\n"; } // Read the Branch name if (params.containsKey("-b")) { setName((String) params.get("-b")); } else { errors += "Branch name (-n) is a required parameter\n"; } return errors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BaseComponent getComponentName();", "String getComponentName();", "String getComponentName();", "protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }", "@VisibleForTesting\n ComponentName getComponentName() {\n return mComponentName;\n...
[ "0.8063877", "0.7939395", "0.7939395", "0.76730794", "0.74222744", "0.7250612", "0.71064836", "0.7019181", "0.7012186", "0.6943298", "0.6882034", "0.6789822", "0.67059875", "0.6663987", "0.65802103", "0.65765685", "0.6574302", "0.6498172", "0.64942217", "0.64942217", "0.64942...
0.0
-1
Display this application's usage and invocation
protected void showUsage() { StringBuffer usage = new StringBuffer(); usage.append("------------------------------------------------------\n"); usage.append(" " + APP_NAME + " " + APP_VERSION + "\n"); usage.append("------------------------------------------------------\n"); usage.append("Prints the Tool Kit name for the given Branch and \n"); usage.append("Component.\n"); usage.append("\n"); usage.append("USAGE:\n"); usage.append("------\n"); usage.append(APP_NAME + " <-c component> <-b branch> [-y] [-h] [-db dbMode]\n"); usage.append("\n"); usage.append(" component = Component name (ess, pds, model, einstimer ...).\n"); usage.append(" branch = Branch name.\n"); usage.append(" -y = (optional) Verbose mode (echo messages to screen)\n"); usage.append(" dbMode = (optional) DEV | PROD (defaults to PROD)\n"); usage.append(" -h = Help (shows this information)\n"); usage.append("\n"); usage.append("Return Codes\n"); usage.append("------------\n"); usage.append(" 0 = application ran ok\n"); usage.append(" 1 = application error\n"); usage.append("\n"); System.out.println(usage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void showUsage() {\n System.out.printf(\"java app.App (-a | -r | -c | +WORD | ?WORD)\");\n }", "public void printUsage() {\n printUsage(System.out);\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"[0] apk files directory\");\n\t\tSystem.out.println(\"[1] an...
[ "0.8072755", "0.7635048", "0.75520873", "0.7520159", "0.7397508", "0.73140615", "0.7221991", "0.7198871", "0.71928096", "0.7157005", "0.71557325", "0.71511567", "0.7130792", "0.7105829", "0.71018654", "0.7075553", "0.70706743", "0.7009013", "0.6973564", "0.6963003", "0.695055...
0.8162893
0
Create contents of the view part.
@Override public void createPartControl(Composite parent) { Composite container = new Composite(parent, SWT.NONE); container.setLayout(new FillLayout(SWT.HORIZONTAL)); architectureCanvas = new ArchitectureCanvas(container, SWT.DOUBLE_BUFFERED); createActions(); initializeToolBar(); initializeMenu(); CadmosUi.getInstance() .addListener(cadmosEditorSelectionChangedListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\n\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLe...
[ "0.73335195", "0.6840024", "0.68376434", "0.6791247", "0.6565195", "0.65635043", "0.6548234", "0.64823693", "0.6479975", "0.64742506", "0.64499956", "0.64439386", "0.6440782", "0.64174914", "0.6348693", "0.6298088", "0.62598044", "0.62359047", "0.6225611", "0.6224184", "0.620...
0.5657165
90
This is the path where the file's name you want to take.
public static void main(String[] args) { String path = "D:\\workplace\\IDEA\\ECIPCSweb\\excel\\grade"; getFile(path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String ge...
[ "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7593034", "0.7451177", "0.7451177", "0.7451177", "0.7451177", "0.7451177", "0.7449116", "0.73763615", "0.73763615", "0.7326478", "0.72946864", "0.7271456", "0.7269558", ...
0.0
-1
get file list where the path has
public static List<String> getFile(String path){ File file = new File(path); // get the folder list File[] array = file.listFiles(); List<String> fileName = new ArrayList<>(); for(int i=0;i<array.length;i++){ if(array[i].isFile()){ // only take file name fileName.add(array[i].getName()); }else if(array[i].isDirectory()){ getFile(array[i].getPath()); } } return fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Path> getFiles();", "public List listFiles(String path);", "public List<String> getFiles();", "List<String> getListPaths();", "List<String> getFiles(String path) throws IOException;", "java.util.List<java.lang.String>\n getPathsList();", "private List<String> getFiles(String path){\n ...
[ "0.8245559", "0.79034746", "0.77342176", "0.7681433", "0.76792824", "0.7580073", "0.7530918", "0.75308937", "0.7515597", "0.75028586", "0.7473728", "0.7352647", "0.73034835", "0.7287184", "0.72718817", "0.72632426", "0.7261538", "0.72613406", "0.7217563", "0.720906", "0.72062...
0.6854402
39
/mean m = new mean(); m.pub(); m.pro(); m.def(); m.pri();
public static void main(String[] args){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double mean() {\n return StdStats.mean(stats);\r\n }", "private void fnMeanSale() {\n }", "public double mean() {\r\n\t\treturn mean;\r\n\t}", "public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }", "public double mean() {\n\t\treturn mean;\n\t}", "public ...
[ "0.6019883", "0.6010078", "0.6003441", "0.5991346", "0.5983548", "0.5983548", "0.59771734", "0.5948124", "0.59362006", "0.592913", "0.5917523", "0.5895856", "0.5883264", "0.58818924", "0.587349", "0.58701116", "0.5858457", "0.5831754", "0.5787407", "0.57357556", "0.5727158", ...
0.0
-1
Methods for reading and creating reports on ExpressinExperiments. Reports are typically updated either on demand or after an analysis; and retrieval is usually from the web interface.
public interface ExpressionExperimentReportService { /** * Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens. * * @param id the id of the entity to evict */ void evictFromCache( Long id ); /** * Generate a value object that contain summary information about links, biomaterials, and datavectors * * @param id the id of the ee to generate summary for * @return details VO */ ExpressionExperimentDetailsValueObject generateSummary( Long id ); /** * Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it * takes a while to run. */ @Secured({ "GROUP_AGENT" }) Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects(); void getAnnotationInformation( Collection<ExpressionExperimentDetailsValueObject> vos ); void populateEventInformation( Collection<ExpressionExperimentDetailsValueObject> vos ); /** * Fills in link analysis and differential expression analysis summaries, and other info from the report. * * @param vos value objects */ void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos ); /** * retrieves a collection of cached value objects containing summary information * * @param ids the ids of ees for which the summary objects should be retrieved. * @return a collection of cached value objects */ @SuppressWarnings("unused") // Possible external use Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids ); /** * Recalculates the batch effect and batch confound information for datasets that have been updated * in the last 24 hours. */ @SuppressWarnings("unused") // Used by scheduler @Secured({ "GROUP_AGENT" }) void recalculateBatchInfo(); /** * Recalculates the batch effect and batch confound information for the given dataset. * @param ee the experiment to recalculate the batch properties for. */ @Secured({ "GROUP_AGENT" }) void recalculateExperimentBatchInfo( ExpressionExperiment ee ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlrepo...
[ "0.6251191", "0.62073314", "0.6129261", "0.60676265", "0.5999684", "0.59453535", "0.5878098", "0.5859392", "0.5789451", "0.57328546", "0.57285285", "0.5692863", "0.56587493", "0.55219984", "0.5428996", "0.5420103", "0.5397417", "0.5325786", "0.5314184", "0.53087205", "0.52565...
0.4803798
64
Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens.
void evictFromCache( Long id );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void invalidate(String id);", "public void removeReCaseReportReg(final String id);", "void deleteTrackerCache(final Integer id);", "public void clearReports()\n {\n reports.clear();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete CaseReport : {}\", id...
[ "0.6379166", "0.58464944", "0.56363666", "0.5603933", "0.55767405", "0.552759", "0.550549", "0.54958534", "0.54611", "0.53565115", "0.522921", "0.5204716", "0.51783437", "0.51453495", "0.5114379", "0.5060717", "0.5002891", "0.49860296", "0.49739867", "0.49542618", "0.49503052...
0.5882572
1
Generate a value object that contain summary information about links, biomaterials, and datavectors
ExpressionExperimentDetailsValueObject generateSummary( Long id );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ChargeSummary> value();", "public void getValues(){\r\n //Get Values \r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varC...
[ "0.5541127", "0.5479812", "0.54270214", "0.53972447", "0.5383768", "0.52781224", "0.5238584", "0.52238995", "0.51903", "0.5134853", "0.51124096", "0.51087326", "0.50801975", "0.50716305", "0.50530577", "0.5051694", "0.50239575", "0.5023193", "0.501374", "0.5005271", "0.500077...
0.5304631
5
Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it takes a while to run.
@Secured({ "GROUP_AGENT" }) Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ExpressionExperimentReportService {\n\n /**\n * Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens.\n *\n * @param id the id of the entity to evict\n */\n void evictFromCache( Long id );\n\n /**\n * Generate a value...
[ "0.5993814", "0.5716391", "0.5598181", "0.53700334", "0.5354377", "0.5318973", "0.52860016", "0.52685136", "0.5203687", "0.5190864", "0.5158434", "0.5095912", "0.50954473", "0.5061216", "0.5030569", "0.50280905", "0.4999598", "0.4985859", "0.49707857", "0.496569", "0.4951967"...
0.5963746
1
Fills in link analysis and differential expression analysis summaries, and other info from the report.
void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "public abstract ...
[ "0.5903306", "0.57909775", "0.5782742", "0.5738982", "0.57330775", "0.57306004", "0.57125616", "0.5703188", "0.56522495", "0.5612196", "0.56027424", "0.5557933", "0.553721", "0.55354446", "0.55325425", "0.55300283", "0.5505629", "0.54882705", "0.5478808", "0.546472", "0.54609...
0.59986115
0
retrieves a collection of cached value objects containing summary information
@SuppressWarnings("unused") // Possible external use Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ChargeSummary> value();", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "public Item2Vector<Summary> getSummaries() { return summaries; }", "List<CacheHealth> getCacheHealth();", "Map<String, Object> getStats();", "public Coll...
[ "0.6529051", "0.6271143", "0.62569565", "0.61685073", "0.60824114", "0.60319346", "0.60301775", "0.60257304", "0.5984615", "0.59591484", "0.586843", "0.58090657", "0.5791193", "0.57851213", "0.5783883", "0.57629764", "0.57593244", "0.5724208", "0.57196856", "0.57159823", "0.5...
0.59357935
10
Recalculates the batch effect and batch confound information for datasets that have been updated in the last 24 hours.
@SuppressWarnings("unused") // Used by scheduler @Secured({ "GROUP_AGENT" }) void recalculateBatchInfo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void recompute () {\n current_part.t_Cl = current_part.t_Cd = current_part.t_Cm = null;\n computeFlowAndRegenPlot();\n }", "public synchronized void updateTransdailyData() {\n Instant startTime = Instant.now();\n log.debug(\"start updateTransdailyData startTime:{}\", startTime.to...
[ "0.58680767", "0.5861275", "0.5782513", "0.5779159", "0.5516902", "0.5428166", "0.5415983", "0.54036766", "0.5359344", "0.5356026", "0.5321655", "0.5301486", "0.5298471", "0.52966344", "0.52930844", "0.52901495", "0.52651584", "0.52400297", "0.5223578", "0.52193433", "0.51844...
0.61633325
0
Recalculates the batch effect and batch confound information for the given dataset.
@Secured({ "GROUP_AGENT" }) void recalculateExperimentBatchInfo( ExpressionExperiment ee );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void recompute () {\n current_part.t_Cl = current_part.t_Cd = current_part.t_Cm = null;\n computeFlowAndRegenPlot();\n }", "@SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();", "public void calc()\n\t\t\t\t\t\t{\n\t\t\t\t\t...
[ "0.5678551", "0.5441289", "0.52641135", "0.5197609", "0.5089818", "0.50439245", "0.4965669", "0.4931269", "0.49057242", "0.4842166", "0.48105446", "0.47921842", "0.4773979", "0.47729233", "0.47428572", "0.47302246", "0.47087446", "0.47030023", "0.46904564", "0.46815243", "0.4...
0.4467127
37
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
{ "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 void onTextChanged(CharSequence s, int start, int before, int count) { }
{ "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
Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
private void $$$setupUI$$$() { rootPanel = new JPanel(); rootPanel.setLayout(new GridLayoutManager(3, 5, new Insets(0, 5, 5, 5), -1, -1)); worldMap = new JPanel(); worldMap.setLayout(new GridBagLayout()); worldMap.setBackground(new Color(-1250068)); rootPanel.add(worldMap, new GridConstraints(1, 0, 2, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(500, 500), null, null, 0, false)); simulationTime = new JLabel(); simulationTime.setText("0s"); rootPanel.add(simulationTime, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label1 = new JLabel(); label1.setText("Simulation time:"); rootPanel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer1 = new Spacer(); rootPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); averageWaitingTime = new JLabel(); averageWaitingTime.setText("0s"); rootPanel.add(averageWaitingTime, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label2 = new JLabel(); label2.setText("Average waiting time"); rootPanel.add(label2, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "@Override\n public void initGUI() {\n\n }", "private void $$$setupUI$$$() {\n ST = ...
[ "0.69456124", "0.69456124", "0.67765963", "0.66016763", "0.65435326", "0.6496073", "0.64561814", "0.645548", "0.6438965", "0.64105684", "0.63636893", "0.63259995", "0.62934434", "0.62857145", "0.62822765", "0.62519974", "0.62099725", "0.61701167", "0.6147019", "0.6137538", "0...
0.0
-1
for example, Case 1: 44 444
public static void printT9WithCaseNumber(int i, String t9) { System.out.println("Case #" + i + ": " + t9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNum1();", "@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\");\n System.out.print...
[ "0.54522187", "0.5428934", "0.536755", "0.5360873", "0.5325509", "0.52781385", "0.5271214", "0.5240222", "0.5230904", "0.52298826", "0.52268386", "0.5220666", "0.5193248", "0.51746184", "0.5155249", "0.5148022", "0.51437074", "0.5137251", "0.51303303", "0.5127161", "0.5106444...
0.0
-1
hardcoded the T9 as a map with TreeSet in there so that we preserve the order
public static Map<Integer, TreeSet<Character>> buildT9Map() { Map<Integer, TreeSet<Character>> mapOfT9 = new HashMap<Integer, TreeSet<Character>>(); mapOfT9.put(2, new TreeSet<Character>(Arrays.asList('a', 'b', 'c'))); mapOfT9.put(3, new TreeSet<Character>(Arrays.asList('d', 'e', 'f'))); mapOfT9.put(4, new TreeSet<Character>(Arrays.asList('g', 'h', 'i'))); mapOfT9.put(5, new TreeSet<Character>(Arrays.asList('j', 'k', 'l'))); mapOfT9.put(6, new TreeSet<Character>(Arrays.asList('m', 'n', 'o'))); mapOfT9.put(7, new TreeSet<Character>(Arrays.asList('p', 'q', 'r', 's'))); mapOfT9.put(8, new TreeSet<Character>(Arrays.asList('t', 'u', 'v'))); mapOfT9.put(9, new TreeSet<Character>(Arrays.asList('w', 'x', 'y', 'z'))); return mapOfT9; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void Test() {\t\t\n\t\tTreeMap<String, Integer> treeMap = new TreeMap<String, Integer>();\n\t\ttreeMap.put(\"Key#1\", 1);\n\t\ttreeMap.put(\"Key#2\", 2);\n\t\ttreeMap.put(\"Key#2\", 3); // Duplicate is not allowed. Replaces old value with new\n\t\t//treeMap.put(null, 1); //NULL key is not allowed; th...
[ "0.6774782", "0.6745835", "0.6574753", "0.65574545", "0.65180326", "0.64113015", "0.62383884", "0.6213667", "0.6196287", "0.6150688", "0.60918427", "0.6079241", "0.606278", "0.6015446", "0.60115945", "0.59666085", "0.5965158", "0.59597266", "0.5939038", "0.593249", "0.5930177...
0.7495854
0
h(x) = x % M
private int funcaoHash(int x) { return (x % 37); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int hashFunction(int key) {\n\t\treturn key%M;\n\t}", "public int hash2(int h, int m) {\r\n//\t\tint m = this.capability>>1 + 1;\r\n\t\treturn 1+(h%(m-1));\r\n\t}", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at ea...
[ "0.702816", "0.6945149", "0.65809166", "0.6440153", "0.64044106", "0.62972045", "0.6269198", "0.6263033", "0.6258775", "0.6200793", "0.6142545", "0.61040765", "0.60578495", "0.60462046", "0.6005023", "0.5998196", "0.5997545", "0.5982703", "0.5949471", "0.58755964", "0.5858726...
0.59080744
19
Encontrar posicao da tabela por meio da funcao hash
public int inserir(Jogador elemento) throws Exception { int posicao = funcaoHash(elemento.getAltura()); // Verificar se esse elemento ja esta na lista if (tabela[posicao].localizar(elemento.getNome()) == null) // Elemento nao inserido ainda tabela[posicao].inserir(elemento, 0); // Nao sabe quantos elementos lista vai ter, sempre inserir no inicio else // Elemento ja inserido posicao = -1; return posicao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rehash(){\n\t\tHashTable that = new HashTable(2 * this.table.length);\n\t\tfor (int i = 0; i < this.table.length; i++){\n\t\t\tif (this.table[i] != null){\n\t\t\t\tthat.addRecord(this.table[i].getValue());\n\t\t\t}\n\t\t}\n\t\tthis.table = that.table;\n\t\treturn;\n\t}", "private void rehash() {\n ...
[ "0.7110978", "0.70353866", "0.7025741", "0.694338", "0.69309944", "0.6860237", "0.67772907", "0.67615455", "0.6731662", "0.6701778", "0.66737777", "0.66477025", "0.6645127", "0.6640638", "0.66066766", "0.6479634", "0.64417946", "0.641215", "0.6387479", "0.6376376", "0.6282645...
0.0
-1
SubscriptionManager provides access to all subscriptions in Data Mining.
public interface SubscriptionManager { void subscribe(Subscription subscription); void updateMetric(String tenant, String metricId, Metric.Update update); void updateForecaster(String tenant, String metricId, org.hawkular.datamining.forecast.Forecaster.Update update); boolean isSubscribed(String tenant, String metricId); Subscription subscription(String tenant, String metricId); Set<Subscription> subscriptionsOfTenant(String tenant); void unsubscribeAll(String tenant, String metricId); void unsubscribe(String tenant, String metricId, Subscription.SubscriptionOwner subscriptionOwner); void unsubscribe(String tenant, String metricId, Set<Subscription.SubscriptionOwner> subscriptionOwners); void setPredictionListener(PredictionListener predictionListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface ClientSubscriptionManager {\n /**\n * return how many subscriptions this manager has.\n */\n int getSubscriptionCount();\n\n /**\n * Adds the given subscription for the given client to this manager.\n * If this manager already has a subscription\n * for that client then the old subscription ...
[ "0.66166127", "0.6466003", "0.6394441", "0.63052654", "0.6299771", "0.6279742", "0.58965904", "0.5847976", "0.5735295", "0.5722503", "0.5721162", "0.5666918", "0.56593245", "0.5653011", "0.5618319", "0.55878127", "0.55313706", "0.5516878", "0.5511725", "0.5485127", "0.5473585...
0.7183911
0
TODO Autogenerated method stub
@Override public void onClick(View v) { Bundle bundle = new Bundle(); bundle.putInt(Constants.P_SEARCHLISTTYPE, 2); bundle.putLong(Constants.DEVICE_ID, deviceId); Constants.toActivity(AddDeviceActivity.this, SearchActivity.class, bundle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onDestroy() { Bimp.tempSelectBitmap.clear(); Bimp.max = 0; super.onDestroy(); Constants.removeActivity(this); }
{ "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 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { device_year.setContent(String.format("%d-%d-%d", year, monthOfYear + 1, dayOfMonth)); }
{ "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
Returns true to indicate this state is a document state.
@Override public boolean isDocumentState() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDocument() {\n\n return this.document;\n }", "public boolean isDocument(Document document) {\n return false;\n }", "public boolean hasDocumentType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasDocumentType() {\n return ((bitFi...
[ "0.76186657", "0.7228588", "0.7098409", "0.7060467", "0.70443624", "0.68712634", "0.67848235", "0.67848235", "0.67848235", "0.6757151", "0.6757151", "0.6757151", "0.6700031", "0.6700031", "0.6700031", "0.6592034", "0.6539409", "0.6329483", "0.6324005", "0.62741214", "0.624268...
0.8193441
0
Returns true to indicate this state can create new lists.
@Override public boolean isListFactory() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isListable();", "public boolean isAddNewHistoryRequired()\r\n {\r\n return addNewHistoryRequired_;\r\n }", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "public boolean hasList() {\n return msgCase_ == 5;\n }", "public bo...
[ "0.6135717", "0.6085271", "0.6041464", "0.6031988", "0.6023589", "0.59629893", "0.59629893", "0.59629893", "0.5954136", "0.5940805", "0.5936492", "0.5936492", "0.5904767", "0.5895637", "0.5895637", "0.58820796", "0.5871501", "0.58315444", "0.58230084", "0.57968533", "0.578890...
0.61183083
1
Returns true to indicate this state can create new paragraphs.
@Override public boolean isParagraphFactory() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "public boolean isCreate() {\r\n\t\treturn controller.closedByCreate;\r\n\t}", "public boolean createLesson() {\n...
[ "0.6332843", "0.6332843", "0.6332843", "0.62547606", "0.62333435", "0.6195184", "0.61448145", "0.61296517", "0.60611784", "0.60501313", "0.60392976", "0.5868174", "0.58449656", "0.5823374", "0.58233374", "0.58107686", "0.5779836", "0.5763403", "0.57178044", "0.5696156", "0.56...
0.59735584
11
Returns true to indicate this state can create new tables.
@Override public boolean isTableFactory() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean createTable();", "public boolean createAllTables (){\n try {\n this.execute(CREATE_PEOPLE);\n this.execute(CREATE_AUTHOR);\n this.execute(CREATE_EMPLOYEE);\n this.execute(CREATE_MEETING);\n this.execute(CREATE_COVERPRICE);\n this.ex...
[ "0.72070897", "0.68834156", "0.68068683", "0.67595875", "0.6655409", "0.6642103", "0.64617926", "0.6303331", "0.62819976", "0.62490624", "0.6232415", "0.62117183", "0.6201397", "0.6088927", "0.6031586", "0.6000901", "0.59928215", "0.5970549", "0.59572744", "0.5924979", "0.591...
0.63732
7
Created by mike on 7/27/2017.
public interface Shop extends SecondaryIndustry { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }...
[ "0.5924127", "0.58161867", "0.57572734", "0.5710163", "0.5679936", "0.56389284", "0.56330144", "0.5596721", "0.55859274", "0.55859274", "0.55824333", "0.5552038", "0.55164105", "0.5502171", "0.5498702", "0.549064", "0.5468172", "0.54509556", "0.54433984", "0.54229796", "0.540...
0.0
-1
SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(context); String trigger = SP.getString("triger", "test");
@Override public void onReceive(Context context, Intent intent) { settings = PreferenceManager.getDefaultSharedPreferences(context); String ric1 = "", ric2 = "", ric3 = "", ric4 = ""; String triger = ""; boolean useRic = false; boolean handleSMS = false; if (settings.getBoolean("checkboxRICtriger", false)) { ric1 = settings.getString("ric1", ""); ric2 = settings.getString("ric2", ""); ric3 = settings.getString("ric3", ""); ric4 = settings.getString("ric4", ""); useRic = true; } else { triger = settings.getString("triger_text", "ReCO"); } if (intent.getAction().equals(SMS_RECIVED)) { Bundle bundle = intent.getExtras(); Object[] pdus = (Object[]) bundle.get("pdus"); SmsMessage smsMsg = SmsMessage.createFromPdu((byte[]) pdus[0]); if (useRic) { //filter by RIC number String messageBody = smsMsg.getMessageBody(); if (ric1 != "") if (messageBody.contains(ric1)) handleSMS = true; if (ric2 != "") if (messageBody.contains(ric2)) handleSMS = true; if (ric3 != "") if (messageBody.contains(ric3)) handleSMS = true; if (ric4 != "") if (messageBody.contains(ric4)) handleSMS = true; } else { if (smsMsg.getMessageBody().contains(triger)) handleSMS = true; } if (handleSMS) { abortBroadcast(); Intent startAlertIntent = new Intent(context, alertActivity.class); startAlertIntent.putExtra("SMS", smsMsg.getMessageBody().toString()); startAlertIntent.putExtra("ADRESS", smsMsg.getOriginatingAddress().toString()); //startAlertIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startAlertIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(startAlertIntent); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_k...
[ "0.6826624", "0.6562088", "0.6516414", "0.6516414", "0.64694566", "0.6427471", "0.62806886", "0.62641054", "0.6249715", "0.6243954", "0.62111735", "0.617097", "0.6153518", "0.61511827", "0.6139763", "0.61338884", "0.6106127", "0.60788476", "0.60393393", "0.60370684", "0.60288...
0.0
-1
If paused don't update anything, else continue rendering
@Override public void render(float delta) { if(paused) { if (Gdx.input.isKeyPressed(Keys.P)) { paused = false; try { Thread.sleep(150); } catch (InterruptedException e) { e.printStackTrace(); } } } else { //Clear the screen Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); //Controlled ball control.color = Color.CYAN; control.update(); shape.begin(ShapeRenderer.ShapeType.Filled); control.draw(shape); shape.end(); //Create bouncing balls for (Ball ball : balls) { ball.update(); shape.begin(ShapeRenderer.ShapeType.Filled); ball.draw(shape); shape.end(); //When ball and controller collide make collision sound effect and flash to Red if (control.overlaps(ball) == true) { if (Options.isFxOn == true) collideSound.render(); control.color = Color.RED; shape.begin(ShapeRenderer.ShapeType.Filled); control.draw(shape); shape.end(); hasCollided = 1; } if (control.overlaps(ball) == false && hasCollided == 1) { healthcounter++; hasCollided = 0; } } //Drawing the timer batch.begin(); time.drawTime(batch); batch.end(); //Adding Balls Every 30 seconds if (time.thirtySecPassed() == true && hasThirty == 0) { balls.add(new Ball(gen.nextInt(100) + size, gen.nextInt(100) + size, gen.nextInt(25) + 5, gen.nextInt(15) + 1, gen.nextInt(15) + 1)); hasThirty = 1; } if ((int)time.dt % 30 != 0) hasThirty = 0; //Setting T or F Var for Ball Spawn if (time.tenSecPrior()) tenPrior = 1; if (time.thirtySecPassed()) tenPrior = 0; //Setting T or F Var for speed and size change if (time.fiveSecPrior()) fivePrior = 1; if (time.fifteenSecPassed()) fivePrior = 0; if (tenPrior == 1) { batch.begin(); alert.showAlertTwenty(batch); batch.end(); } if (fivePrior == 1) { batch.begin(); alert.showAlertTen(batch); batch.end(); } //Draw the healthbar batch.begin(); Healthbar.health.get(healthcounter).setSize(180f, 30f); Healthbar.health.get(healthcounter).setPosition(2, 450); Healthbar.health.get(healthcounter).draw(batch);; batch.end(); if (healthcounter >= 4) { score = time.dt; actualScore = df.format(score); System.out.println(actualScore); dispose(); goToEndScreen(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void pause() {\n log.debug(\"pause()\");\n // reset renderInterrupted\n renderInterrupted = true;\n\n }", "public final void \n onPause( ) {\n \t\n synchronized( this.mRenderLock ) {\n \tthis.isPaused = true;\n \tthis.isNewRenderQueueAvaila...
[ "0.7225078", "0.68345124", "0.67297417", "0.6644395", "0.65816945", "0.6573008", "0.6563635", "0.6563635", "0.65244055", "0.6483382", "0.6467916", "0.64506733", "0.6449861", "0.64468664", "0.6445293", "0.64405423", "0.6419878", "0.64152914", "0.6407279", "0.6399801", "0.63873...
0.0
-1
HiddenField fieldTroca = (HiddenField) demandasTrocaItemForm.getField("trocaPor"); if(fieldTroca) fieldTroca.setValueObject(idItemTroca);
public void onAdicionarItemTroca() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute(ProgramContext pc) throws ParserException {\n\t\tif (!pc.isEscribe()){\n\t\t\t//marco el field como hide, para que endform sepa que hacer con el\n\t\t\tfield.setHide(true);\n\t\t\treturn;\n\t\t}\n\t\tString res = \"\";\n\t\tString itemName = field.getItemName();\n\t\tString itemType = field.get...
[ "0.5780279", "0.57271814", "0.5646472", "0.5553224", "0.5551422", "0.5480064", "0.54778516", "0.5436215", "0.5425701", "0.54044086", "0.53776366", "0.536219", "0.5358684", "0.5358684", "0.53284293", "0.532251", "0.5302528", "0.52953094", "0.5293188", "0.5273258", "0.5263081",...
0.0
-1
private static final ThreadLocal service = new ThreadLocal(); private static final ThreadLocal session = new ThreadLocal(); private static final ThreadLocal transaction = new ThreadLocal(); private static final String _MYOWN = "sKmArKeR"; private static final long _SESSION_FACTORY_WAIT_TIME = 2000; // 10 seconds Tries to create SessionFactory and logs success or failure. Must be called on web application startup.
public static synchronized void init() { lazyinit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ThreadLocalTransaction() {\n }", "public WebServiceConfig()\n {\n// session1 = new sessionmanager(getApplicationContext);\n\n }", "public ThreadLocal() {}", "SessionManagerImpl() {\n }", "public void testContextManager() throws Exception {\n System.out.println(\"testContex...
[ "0.6473966", "0.63263845", "0.61471355", "0.6061772", "0.6022456", "0.5986965", "0.5984618", "0.59053445", "0.58927196", "0.5854209", "0.58172375", "0.57504666", "0.5729264", "0.5709379", "0.570514", "0.5650756", "0.5629556", "0.5619899", "0.56184995", "0.5589165", "0.5588636...
0.0
-1
Tries to create SessionFactory and logs success or failure. Must be called on web application startup.
private static synchronized void lazyinit() { try { if (sessionFactory == null) { System.out.println("Going to create SessionFactory "); sessionFactory = new Configuration().configure().buildSessionFactory(); // sessionFactory.openSession(); System.out.println("Hibernate could create SessionFactory"); } } catch (Throwable t) { System.out.println("Hibernate could not create SessionFactory"); t.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static SessionFactory buildSessionFact() {\n try {\n\n return new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\n \n } catch (Throwable ex) {\n \n System.err.println(\"Initial SessionFactory creation failed.\" + ex);\n throw new ExceptionInInitializerError(ex);\n }\...
[ "0.6444905", "0.6375678", "0.6228", "0.60237664", "0.6017885", "0.6001004", "0.58617365", "0.5815554", "0.5715745", "0.5630308", "0.5593397", "0.55802166", "0.55502397", "0.55365837", "0.55168754", "0.54946595", "0.5483284", "0.54629093", "0.54185504", "0.5417341", "0.5416015...
0.65434897
0
Tries to destroy SessionFactory and logs success or failure. Must be called on web application shutdown.
public static synchronized void destroy() { try { if (sessionFactory != null) { sessionFactory.close(); System.out.println("Hibernate could destroy SessionFactory"); } } catch (Throwable t) { System.out.println("Hibernate could not destroy SessionFactory"); t.printStackTrace(); } sessionFactory = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void shutdown() {\n\t\tgetSessionFactory().close();\n\t}", "@PreDestroy\n protected void destroy() {\n sessionFactory.getCurrentSession().close();\n }", "public void destroy() throws HibernateException {\n\t\tlogger.info(\"Closing Hibernate SessionFactory\");\n\t\ttry {\n\t\t\tbefore...
[ "0.77477473", "0.70333517", "0.6834316", "0.6712773", "0.6712761", "0.6689727", "0.6687472", "0.6668764", "0.66535604", "0.66505104", "0.66466266", "0.65418404", "0.6391534", "0.6380047", "0.6358851", "0.62298495", "0.6222568", "0.6164187", "0.613584", "0.60844743", "0.608077...
0.7637337
1
Return a transaction that is associated with the current resource
public static void beginTransaction() throws UAPersistenceException { final Session session = currentSession(); session.beginTransaction(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction getCurrentTransaction();", "public Transaction getTransaction()\n {\n return transaction;\n }", "public final static Transaction getCurrentTransaction() {\n return (Transaction) transactionTable.get();\n }", "public GlobalTransaction getCurrentTransaction()\n {\n return ge...
[ "0.7759502", "0.72488856", "0.7215", "0.7112496", "0.7066651", "0.70381546", "0.69801617", "0.6948386", "0.6884214", "0.6822667", "0.6818843", "0.6763989", "0.6746152", "0.67298687", "0.66291636", "0.6619946", "0.6608853", "0.65854836", "0.6559885", "0.6553909", "0.6542858", ...
0.0
-1
Commit the open transaction that is associated with the current resource.
public static void commitTransaction() throws UAPersistenceException { final Session session = currentSession(); Transaction tx = session.getTransaction(); if (tx != null) { try { tx.commit(); // session commited and closed. New session will be spawned upon calling currentSession on factory. } catch (HibernateException e) { System.out.println("commitTransaction: Throwing Exception e = " + e); throw new UAPersistenceException("cannot commit transaction, see stack trace", e); } } else { throw new IllegalStateException("Cannot commit transaction, no open transaction available!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void commit() throws ResourceException\n {\n if (inManagedTransaction)\n {\n try\n {\n inManagedTransaction = false;\n con.commit();\n }\n catch (SQLException e)\n {\n checkException(e);\n } // end of try-catch\n ...
[ "0.7573112", "0.7336362", "0.70192635", "0.6923765", "0.68889934", "0.6875608", "0.68488306", "0.68242764", "0.67923504", "0.6732723", "0.67305964", "0.66900843", "0.66834056", "0.661148", "0.6584033", "0.656523", "0.6530989", "0.6520697", "0.6499851", "0.6499851", "0.6499851...
0.5796174
63
Checks for open transaction. If one exists, rollback will be applied, session will be flushed and closed
public static void finishTransaction() { if (currentSession().getTransaction().isActive()) { try { System.out.println("INFO: Transaction not null in Finish Transaction"); Thread.dumpStack(); rollbackTransaction(); // throw new UAPersistenceException("Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back."); } catch (UAPersistenceException e) { System.out.println("Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openTheTransaction() {\n openTransaction();\n }", "public static void open() {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n }", "public void closeTransaction(){\n\t...
[ "0.6821852", "0.66827023", "0.6410682", "0.6331674", "0.630202", "0.6239069", "0.6237839", "0.6222842", "0.6215649", "0.616809", "0.6109568", "0.6001687", "0.5992928", "0.5991708", "0.59847933", "0.59821653", "0.5978091", "0.5947041", "0.5945475", "0.5942566", "0.59343314", ...
0.6574963
2
Return a list of objects matching the given hibernate query string, with the given parameter value map.
public static List find(String query, Map parameters) throws UAPersistenceException { // System.out.println("HibernateUtil.find: will execute HQL=" + query + "; params=" + parameters); Session sess = HibernateUtil.currentSession(); List retVal; try { Query q = sess.createQuery(query); setParameters(parameters, q); retVal = q.list(); // System.out.println("HibernateUtil.find: query result=" + retVal); } catch (HibernateException e) { throw new UAPersistenceException("HibernateUtil.find:: problems creating query, see stack trace", e); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List findByNamedQuery(String queryName, String[] paramNames, Object[] paramValues);", "@Override\r\n\tpublic List<T> find(String hql, List<Object> params) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(...
[ "0.6648815", "0.6575358", "0.6512504", "0.64843804", "0.64351845", "0.63820666", "0.6341811", "0.6283842", "0.6273755", "0.62510335", "0.6244373", "0.6240908", "0.62354755", "0.62351304", "0.6226764", "0.6210411", "0.6184829", "0.6175506", "0.6167854", "0.614842", "0.6140461"...
0.6220639
15
System.out.println("HibernateUtil.find: will execute HQL=" + query + "; params=" + parameters);
public static List pagedFind(String query, Map parameters, int firstResult, int maxResults) throws UAPersistenceException { Session sess = HibernateUtil.currentSession(); List retVal; try { Query q = sess.createQuery(query); q.setFirstResult(firstResult) .setMaxResults(maxResults); setParameters(parameters, q); retVal = q.list(); // System.out.println("HibernateUtil.find: query result=" + retVal); } catch (HibernateException e) { throw new UAPersistenceException("HibernateUtil.find:: problems creating query, see stack trace", e); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List find(String query, Map parameters) throws UAPersistenceException\n {\n // System.out.println(\"HibernateUtil.find: will execute HQL=\" + query + \"; params=\" + parameters);\n Session sess = HibernateUtil.currentSession();\n List retVal;\n try\n {\n ...
[ "0.69942516", "0.6607828", "0.6313396", "0.6283012", "0.6274406", "0.62657434", "0.6244058", "0.6207623", "0.61547995", "0.6148329", "0.6093276", "0.6084257", "0.60828745", "0.6069476", "0.6051213", "0.6022513", "0.598759", "0.5972766", "0.59689224", "0.5930214", "0.5919472",...
0.53921276
77
query (with given params map) returns exactly one result
public static Object getUnique(String query, Map parameters) throws UAPersistenceException { Session sess = HibernateUtil.currentSession(); Object retVal; try { Query q = sess.createQuery(query).setCacheable(true); setParameters(parameters, q); retVal = q.uniqueResult(); } catch (HibernateException e) { throw new UAPersistenceException("problems creating query, see stack trace", e); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Object queryAll(Map<String, Object> params) throws Exception {\n\t\treturn null;\n\t}", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public List<Usuario> findWhere(Map<String, String> params){\n try {\n QueryBuilder<Usuario, Integer> qu...
[ "0.6403971", "0.6387395", "0.63570684", "0.62691534", "0.6191131", "0.6119495", "0.60820365", "0.5877547", "0.5810742", "0.57819355", "0.57747036", "0.567583", "0.56249434", "0.5621501", "0.56169015", "0.5543441", "0.5541021", "0.5536474", "0.551309", "0.55067265", "0.5496749...
0.5219144
57
Returns an exemplar of this enum.
public static EjbcaExceptionClasses fromClass(Class<?> clazz) { EjbcaExceptionClasses ejbcaExceptionClasses = ExceptionClassHolder.map.get(clazz); return ejbcaExceptionClasses != null ? ejbcaExceptionClasses : UNKNOWN; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Value setNotDontEnum() {\n checkNotUnknown();\n if (isNotDontEnum())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTENUM_ANY;\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }", "public static Value makeAbsent() {\n ...
[ "0.6359047", "0.635019", "0.62335753", "0.60565585", "0.5914171", "0.5867217", "0.58427805", "0.5731876", "0.5711543", "0.5704692", "0.5704692", "0.57010514", "0.5656273", "0.5651372", "0.5639977", "0.5636513", "0.5610889", "0.55630785", "0.5545987", "0.5522247", "0.5455515",...
0.0
-1
Approach 1: sort string first, then use str.equal. Time Limit Exceeded.!!! Every time needs to sort two string.
private List<List<String>> groupAnagrams(String[] strs) { List<List<String>> ans = new ArrayList<>(); if (strs.length == 0) { return ans; } List<String> group = new ArrayList<>(); group.add(strs[0]); ans.add(group); for (int i = 1; i < strs.length; i++) { boolean flag = false; for (int j = 0; j < ans.size(); j++) { // cause time cost if (isAnagram(strs[i], ans.get(j).get(0))) { ans.get(j).add(strs[i]); flag = true; break; } } if (!flag) { List<String> newGroup = new ArrayList<>(); newGroup.add(strs[i]); ans.add(newGroup); } } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int cmp( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn -1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn 1;\n \t\t\t\n \t\t\tint p1 = 0;\n \t\t\tint p2 = 0;\n \t\t\tfor ( ;; ) {\n \t\t\t\tif ( p1>=str1.length() ...
[ "0.74832964", "0.74182993", "0.7361579", "0.706036", "0.7018402", "0.7008214", "0.70053345", "0.69800586", "0.6940879", "0.6921308", "0.68923974", "0.68620414", "0.68546736", "0.68501014", "0.68225276", "0.68147486", "0.6775404", "0.6770549", "0.67637926", "0.67581177", "0.67...
0.0
-1
_1: with default state. .id : bedroomsone .value : 1 .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject bed_1() { return new GuiTestObject( getMappedTestObject("bed_1")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "public int getBedrooms(){\r\n return bedrooms;\r\n }", "protected GuiTestObject bed_2() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObj...
[ "0.52555716", "0.524468", "0.5187997", "0.5163943", "0.5145605", "0.5134849", "0.50763893", "0.503151", "0.50132847", "0.5010132", "0.4991756", "0.49912998", "0.4916576", "0.48956764", "0.4877594", "0.48614937", "0.48470512", "0.48459005", "0.48345274", "0.48321477", "0.48235...
0.5687269
0
_1: with specific test context and state. .id : bedroomsone .value : 1 .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject bed_1(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_1"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n ...
[ "0.605476", "0.5734402", "0.5702287", "0.5601984", "0.55285054", "0.5474079", "0.5376537", "0.5267266", "0.5252425", "0.52423316", "0.5224438", "0.5186171", "0.5156614", "0.5147948", "0.5145423", "0.51370484", "0.5131956", "0.5130942", "0.5067467", "0.5053947", "0.50256556", ...
0.51406
15
_2: with default state. .id : bedroomstwo .value : 2 .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject bed_2() { return new GuiTestObject( getMappedTestObject("bed_2")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_1() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_1\"));\n\t}", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.in...
[ "0.5248479", "0.50532144", "0.50131494", "0.50009435", "0.49837172", "0.4931473", "0.48899153", "0.48816606", "0.48452324", "0.48135623", "0.4803451", "0.4776917", "0.47431865", "0.47200412", "0.4711887", "0.47020626", "0.4696055", "0.46946073", "0.46895418", "0.46894616", "0...
0.5255828
0
_2: with specific test context and state. .id : bedroomstwo .value : 2 .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject bed_2(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_2"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \...
[ "0.5712888", "0.55180454", "0.5451346", "0.54135984", "0.53125155", "0.5309897", "0.5295682", "0.5273535", "0.5248863", "0.52320796", "0.5230859", "0.5224979", "0.5224563", "0.52219146", "0.5220163", "0.52051926", "0.51983094", "0.51798415", "0.51751184", "0.5171539", "0.5159...
0.0
-1
_3: with default state. .id : bedroomsthree .value : 3 .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject bed_3() { return new GuiTestObject( getMappedTestObject("bed_3")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n ...
[ "0.6160762", "0.54886764", "0.5283485", "0.5258355", "0.5231703", "0.5230279", "0.52110296", "0.5198792", "0.51823604", "0.51611525", "0.5115812", "0.51004624", "0.50933355", "0.5090193", "0.5079651", "0.5079055", "0.5068068", "0.5067003", "0.5065592", "0.50644326", "0.505492...
0.5071564
16
_3: with specific test context and state. .id : bedroomsthree .value : 3 .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject bed_3(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_3"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void commonLoadTestForHtml(){\n\t\tWebElement tree = getElement(\"id=tree\");\n\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t//Make sure News attributes are correct\n\t\tWebElement news = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#news']['title']\\\"}\"...
[ "0.6167397", "0.58976763", "0.5831599", "0.5495255", "0.54464126", "0.54036677", "0.5353367", "0.5252372", "0.52061474", "0.5155321", "0.5139728", "0.5122566", "0.5109943", "0.5109462", "0.5081148", "0.50796056", "0.5067373", "0.50625587", "0.50513875", "0.50216866", "0.50172...
0.0
-1
_4: with default state. .id : bedroomsfour .value : 4 .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject bed_4() { return new GuiTestObject( getMappedTestObject("bed_4")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String storyID() {\r\n return \"HD\";\r\n }", "protected GuiTestObject bed_5() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_5\"));\n\t}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\...
[ "0.509975", "0.50726736", "0.49407095", "0.49214217", "0.48992375", "0.489109", "0.48884577", "0.4884318", "0.48499623", "0.48387322", "0.4834793", "0.48300377", "0.48266965", "0.482449", "0.48170546", "0.47935182", "0.47708213", "0.47703442", "0.4767269", "0.47601137", "0.47...
0.5107308
0
_4: with specific test context and state. .id : bedroomsfour .value : 4 .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject bed_4(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_4"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \...
[ "0.58334756", "0.5536692", "0.54411995", "0.53805137", "0.5320334", "0.52856946", "0.5274893", "0.52525806", "0.52515036", "0.52359134", "0.5223127", "0.5222444", "0.5153064", "0.5139862", "0.51326156", "0.5124693", "0.5106821", "0.5103052", "0.51019394", "0.51007277", "0.508...
0.0
-1
_5: with default state. .id : bedroomsfive .value : 5 .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bed_5() { return new GuiTestObject( getMappedTestObject("bed_5")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject bed_4() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bed_4\"));\n\t}", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeSta...
[ "0.510971", "0.5058283", "0.5055503", "0.5036451", "0.5023006", "0.501903", "0.501903", "0.501903", "0.5015224", "0.5011383", "0.49936497", "0.49703458", "0.49703053", "0.4955", "0.49466452", "0.49455464", "0.49389192", "0.4921534", "0.4904934", "0.49005538", "0.48991758", ...
0.559609
0
_5: with specific test context and state. .id : bedroomsfive .value : 5 .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bed_5(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bed_5"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \...
[ "0.5704923", "0.5686469", "0.5456995", "0.54417723", "0.5437681", "0.54081887", "0.53876626", "0.5317258", "0.52605146", "0.5257161", "0.5239677", "0.5223939", "0.5201218", "0.5197559", "0.5196837", "0.5191538", "0.5178757", "0.51667094", "0.5163481", "0.51484597", "0.5145551...
0.4944802
61
Bungalow: with default state. .id : propertybungalow .value : Bungalow .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bungalow() { return new GuiTestObject( getMappedTestObject("bungalow")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LabelValueBean() {\r\n\t\tsuper(\"\", \"\");\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn namaBulan;\n\t}", "@Override\n\t\t\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\t\t\treturn \"Bewerbung bewerten\";\n\t\t\t\t}", "public String getLabel(){\n\t\treturn sAnzeige;\n\t}",...
[ "0.58677286", "0.5756311", "0.5624605", "0.55374134", "0.54502225", "0.5445728", "0.5445728", "0.5434329", "0.5263804", "0.5236693", "0.52338076", "0.5226297", "0.5206004", "0.516893", "0.5164181", "0.5161782", "0.5159775", "0.5141664", "0.5127275", "0.5120725", "0.5120725", ...
0.5426032
8
Bungalow: with specific test context and state. .id : propertybungalow .value : Bungalow .title : .class : Html.LABEL .classIndex : 4
protected GuiTestObject bungalow(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("bungalow"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "protected GuiTestObject bungalow() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"bungalow\"));\n\t}", "@Test\r\n public void Actionable...
[ "0.59753406", "0.5885956", "0.5381116", "0.52404654", "0.52295357", "0.5214554", "0.5156334", "0.5124041", "0.5102985", "0.50824714", "0.50754905", "0.5066039", "0.5057541", "0.50202775", "0.50115055", "0.5008629", "0.5003307", "0.50017524", "0.50003916", "0.49930936", "0.495...
0.50747
11
Detached: with default state. .id : propertydetached .value : Detached .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject detached() { return new GuiTestObject( getMappedTestObject("detached")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject semiDetached() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached\"));\n\t}", "protected GuiTestObject semiDetached(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached...
[ "0.56345695", "0.5357566", "0.52771384", "0.51297367", "0.49976337", "0.4945127", "0.4923608", "0.4866387", "0.4866387", "0.4866387", "0.4866387", "0.48418477", "0.48385936", "0.4809378", "0.47548363", "0.4746538", "0.47320315", "0.47320315", "0.4730289", "0.47299483", "0.469...
0.5781356
0
Detached: with specific test context and state. .id : propertydetached .value : Detached .title : .class : Html.LABEL .classIndex : 3
protected GuiTestObject detached(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("detached"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject detached() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"detached\"));\n\t}", "protected GuiTestObject semiDetached() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"semiDetached\"));\n\t}", "protected GuiTestObje...
[ "0.6752919", "0.6411017", "0.5866897", "0.53935075", "0.5320795", "0.5140295", "0.5126578", "0.51093024", "0.50730455", "0.49377674", "0.48997974", "0.488288", "0.4862467", "0.4861481", "0.47563526", "0.47316685", "0.46938047", "0.46733546", "0.46677247", "0.46547827", "0.465...
0.59326595
2
FlatMaisonette: with default state. .id : propertyflat .value : Flat/maisonette .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject flatMaisonette() { return new GuiTestObject( getMappedTestObject("flatMaisonette")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}", "public Node makeTitle(String text) {\r\n VBox panel = new VBox();\r\n Label label = makeLabel(myResources.getString...
[ "0.53515667", "0.53429484", "0.5306899", "0.52764094", "0.521743", "0.51817024", "0.51464176", "0.5134105", "0.51277906", "0.51253694", "0.5123987", "0.5117099", "0.51064813", "0.5095769", "0.5091024", "0.50755507", "0.50751704", "0.50703466", "0.50539255", "0.5040206", "0.50...
0.47451022
77
FlatMaisonette: with specific test context and state. .id : propertyflat .value : Flat/maisonette .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject flatMaisonette(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("flatMaisonette"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n ...
[ "0.58386743", "0.5497206", "0.54509574", "0.5406207", "0.5383295", "0.52477986", "0.5204177", "0.5105016", "0.50310886", "0.5009286", "0.49869516", "0.49848086", "0.4977618", "0.4963516", "0.4917764", "0.4899865", "0.4898046", "0.48840007", "0.48682636", "0.48575258", "0.4845...
0.5022108
9
HMlandingPage_GetQuote: with default state. .text : Get a quote .id : HMlandingPage_GetQuote .href : .title : .class : Html.A .name : .classIndex : 0
protected GuiTestObject getQuote() { return new GuiTestObject( getMappedTestObject("getQuote")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void MyQuotePage()\n\t{\n\t\tbpmqobj.MyQuotesTab().click();\n\t\ttry { Thread.sleep(10000); } catch (InterruptedException e) {e.printStackTrace();}\n\t\tbpmqobj.MyQuoteResultCheckSingleCheckBox().click();\n\t\tnew Select(bpmqobj.MyQuotesQuoteActionsDropDown()).selectByVisibleText(\"Open\");\n\t\tbpmqobj.MyQ...
[ "0.604561", "0.59171194", "0.5771901", "0.5690755", "0.5605236", "0.5605055", "0.5590492", "0.5585384", "0.55838263", "0.5517938", "0.55023676", "0.5484848", "0.54351497", "0.5420583", "0.5391441", "0.5377517", "0.5373644", "0.53303444", "0.53220016", "0.5266478", "0.52613175...
0.59185773
1
HMlandingPage_GetQuote: with specific test context and state. .text : Get a quote .id : HMlandingPage_GetQuote .href : .title : .class : Html.A .name : .classIndex : 0
protected GuiTestObject getQuote(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("getQuote"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject getQuote() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"getQuote\"));\n\t}", "public void MyQuotePage()\n\t{\n\t\tbpmqobj.MyQuotesTab().click();\n\t\ttry { Thread.sleep(10000); } catch (InterruptedException e) {e.printStackTrace();}\n\t\tbpmqobj.MyQu...
[ "0.62229633", "0.60400265", "0.5856439", "0.5819526", "0.56423277", "0.5594156", "0.5534036", "0.5516549", "0.5484051", "0.54229385", "0.5419931", "0.5409833", "0.53233194", "0.53034294", "0.5291427", "0.5238269", "0.5207404", "0.5180929", "0.5165642", "0.5136055", "0.5129012...
0.5997174
2
HomeMembershipBoilerCoverHomeEmergencyAA: with default state. .title : Home Membership | Boiler Cover | Home Emergency | AA .class : Html.HtmlDocument .url : RegularExpression(homemembership)
protected DocumentTestObject homeMembership() { return new DocumentTestObject( getMappedTestObject("homeMembership")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getOssHomepage();", "void setOssHomepage(String ossHomepage);", "protected String getHomePageTitle() { \n return null; \n }", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get...
[ "0.5590675", "0.53381425", "0.52773005", "0.51932526", "0.5152225", "0.5146646", "0.5131322", "0.50973487", "0.5089884", "0.5072125", "0.50636023", "0.50376743", "0.50118303", "0.5003", "0.49978963", "0.49596608", "0.49579203", "0.4933963", "0.4919814", "0.49127916", "0.49120...
0.47182783
43
HomeMembershipBoilerCoverHomeEmergencyAA: with specific test context and state. .title : Home Membership | Boiler Cover | Home Emergency | AA .class : Html.HtmlDocument .url : RegularExpression(homemembership)
protected DocumentTestObject homeMembership(TestObject anchor, long flags) { return new DocumentTestObject( getMappedTestObject("homeMembership"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@TestCaseId( id = 1 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"WHEN user navigates to main page\",\n\t\t\t\t expectedResults = {\n\t\t\t\t\t\t\"THEN url matches the current locale and environment\",\n\t\t\t\t\t\t\"AND the site title, matches the locale defined title\",\n\t\t\t\t })\n\t})...
[ "0.5705822", "0.55565566", "0.5502292", "0.54723996", "0.5339439", "0.532164", "0.52468663", "0.5229706", "0.521901", "0.5174953", "0.5171531", "0.5163658", "0.5154206", "0.51511025", "0.5137602", "0.51198924", "0.51193637", "0.51148474", "0.51137686", "0.5108672", "0.5094856...
0.0
-1
house: with default state. .id : house .type : text .title : .class : Html.INPUT.text .name : house .classIndex : 0
protected TextGuiTestObject house_Number() { return new TextGuiTestObject( getMappedTestObject("house_Number")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHouse_number(int house_number) {\n this.house_number = house_number;\n }", "public static void main(String[] args) {\n String firstInitial, lastName, streetName, streetType, cityName;\n int houseNumber;\n Scanner keyboard=new Scanner(System.in);\n\n System.out...
[ "0.52111167", "0.5160554", "0.5049923", "0.49892998", "0.48381868", "0.47904995", "0.47544196", "0.47530356", "0.46945292", "0.46772486", "0.4665373", "0.45969495", "0.45680347", "0.45665517", "0.45582992", "0.4544627", "0.4538314", "0.45225585", "0.45002484", "0.44903958", "...
0.4950426
4
house: with specific test context and state. .id : house .type : text .title : .class : Html.INPUT.text .name : house .classIndex : 0
protected TextGuiTestObject house_Number(TestObject anchor, long flags) { return new TextGuiTestObject( getMappedTestObject("house_Number"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TextGuiTestObject house_Number() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"house_Number\"));\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n ...
[ "0.53222764", "0.5255497", "0.52524334", "0.516527", "0.51188433", "0.5059261", "0.49565116", "0.49110997", "0.4879749", "0.4868174", "0.4867996", "0.48440072", "0.4811233", "0.48066393", "0.47616902", "0.47430804", "0.47243923", "0.47189537", "0.4718426", "0.47050697", "0.46...
0.44328648
83
htmlBrowser: with default state. .class : Html.HtmlBrowser .browserName : MS Internet Explorer .processName : iexplore.exe
protected BrowserTestObject iE() { return new BrowserTestObject( getMappedTestObject("iE")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface WebBrowser {\r\n}", "public void openIe(){\n\n }", "String getBrowser();", "private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void se...
[ "0.6673413", "0.65668213", "0.6418155", "0.63792825", "0.63383096", "0.63337356", "0.6191489", "0.6191399", "0.6177138", "0.61727756", "0.6142977", "0.6136361", "0.61259216", "0.61223155", "0.6114998", "0.6109909", "0.6108326", "0.6102668", "0.6074006", "0.6028875", "0.602736...
0.0
-1
htmlBrowser: with specific test context and state. .class : Html.HtmlBrowser .browserName : MS Internet Explorer .processName : iexplore.exe
protected BrowserTestObject iE(TestObject anchor, long flags) { return new BrowserTestObject( getMappedTestObject("iE"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}", "private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabil...
[ "0.65795815", "0.6181926", "0.60249007", "0.60191894", "0.60106856", "0.5982617", "0.59667516", "0.5962851", "0.5960498", "0.5923392", "0.58922005", "0.58675903", "0.5858587", "0.5839026", "0.5831146", "0.58244085", "0.58101696", "0.5801322", "0.57999486", "0.57982063", "0.57...
0.0
-1
No: with default state. .id : memberfalse .value : No .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject member_No() { return new GuiTestObject( getMappedTestObject("member_No")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "public Identity(){\n set...
[ "0.60298014", "0.5957726", "0.5957726", "0.5957726", "0.5946163", "0.5909966", "0.5837052", "0.58186036", "0.57561064", "0.5712423", "0.5670539", "0.5670539", "0.56639236", "0.5645163", "0.5627965", "0.5599222", "0.5593138", "0.55849063", "0.5503544", "0.54908437", "0.5483100...
0.5301213
45
No: with specific test context and state. .id : memberfalse .value : No .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject member_No(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("member_No"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be adde...
[ "0.5992592", "0.5963328", "0.5791646", "0.5690282", "0.56810695", "0.5677698", "0.5618812", "0.56174165", "0.56051743", "0.55974543", "0.5584383", "0.55404186", "0.55364704", "0.550214", "0.55011755", "0.549284", "0.54910225", "0.5430962", "0.5428054", "0.54278225", "0.541045...
0.52564406
52
Yes: with default state. .id : membertrue .value : Yes .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject member_Yes() { return new GuiTestObject( getMappedTestObject("member_Yes")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSetLabel();", "@JSProperty(\"showFirstLabel\")\n boolean getShowFirstLabel();", "@JSProperty(\"showFirstLabel\")\n void setShowFirstLabel(boolean value);", "protected GuiTestObject member_Yes(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTes...
[ "0.6220172", "0.61735535", "0.6049444", "0.5971997", "0.59244514", "0.59244514", "0.59244514", "0.58098394", "0.57725793", "0.5628452", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", "0.55406576", ...
0.63623476
0
Yes: with specific test context and state. .id : membertrue .value : Yes .title : .class : Html.LABEL .classIndex : 0
protected GuiTestObject member_Yes(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("member_Yes"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject member_Yes() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"member_Yes\"));\n\t}", "@Test\n public void testBooleanPropertyQuick() {\n Assertions.assertTrue(classObject.getBoolean(\"Started\"));\n }", "boolean isSetLabel();", "boolean ...
[ "0.62011623", "0.5805598", "0.57554275", "0.5540013", "0.5540013", "0.5540013", "0.54462063", "0.5389752", "0.53684264", "0.53637797", "0.53345716", "0.5332963", "0.5318455", "0.5306729", "0.53040814", "0.5299706", "0.529075", "0.52856743", "0.52801526", "0.5278432", "0.52732...
0.57656443
2
Nextsubmit: with default state. .id : initdetails_nextButton .type : submit .value : Next .title : .class : Html.BUTTON .name : .classIndex : 0
protected GuiTestObject nextsubmit() { return new GuiTestObject( getMappedTestObject("nextsubmit")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"n...
[ "0.7818435", "0.7328615", "0.72656965", "0.7257168", "0.72201407", "0.69784796", "0.6957019", "0.69541925", "0.69329864", "0.68798643", "0.68535054", "0.6843473", "0.68160814", "0.67614996", "0.67364895", "0.664357", "0.6616127", "0.66015744", "0.6491139", "0.647717", "0.6398...
0.6734938
15
Nextsubmit: with specific test context and state. .id : initdetails_nextButton .type : submit .value : Next .title : .class : Html.BUTTON .name : .classIndex : 0
protected GuiTestObject nextsubmit(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("nextsubmit"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "protected GuiTestObject nextsubmit() \n\t{\n\t\treturn new GuiTestObject(\n ...
[ "0.787031", "0.73991144", "0.73264945", "0.7257676", "0.72134876", "0.7150805", "0.7043181", "0.693248", "0.6865035", "0.68249625", "0.6814236", "0.6591589", "0.659094", "0.65559477", "0.6429099", "0.6370658", "0.63592863", "0.63525003", "0.6342275", "0.63139915", "0.62776744...
0.6302911
20
postcode: with default state. .id : postcode .type : text .title : .class : Html.INPUT.text .name : postcode .classIndex : 1
protected TextGuiTestObject postCode() { return new TextGuiTestObject( getMappedTestObject("postCode")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPostcode(String postcode) {\n this.postcode = postcode;\n }", "public void setPostcode(java.lang.String postcode) {\r\n this.postcode = postcode;\r\n }", "public void setPostcode(java.lang.String postcode) {\n this.postcode = postcode;\n }", "public String getPost...
[ "0.69351614", "0.691073", "0.684684", "0.6773684", "0.67335135", "0.67033285", "0.66579103", "0.66579103", "0.6653184", "0.6565007", "0.6511412", "0.6495972", "0.6495972", "0.63676685", "0.63118196", "0.630757", "0.622305", "0.6202483", "0.6195161", "0.61069894", "0.60877705"...
0.5042518
76
postcode: with specific test context and state. .id : postcode .type : text .title : .class : Html.INPUT.text .name : postcode .classIndex : 1
protected TextGuiTestObject postCode(TestObject anchor, long flags) { return new TextGuiTestObject( getMappedTestObject("postCode"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPostcode(String postcode) {\n this.postcode = postcode;\n }", "public void setPostcode(java.lang.String postcode) {\r\n this.postcode = postcode;\r\n }", "public void setPostcode(java.lang.String postcode) {\n this.postcode = postcode;\n }", "public void setPostco...
[ "0.69281846", "0.6902656", "0.68468773", "0.65986705", "0.65986705", "0.65455556", "0.647199", "0.6446108", "0.64148605", "0.634543", "0.6317856", "0.6279211", "0.6219131", "0.6219131", "0.6214226", "0.6208904", "0.61218745", "0.61058676", "0.6067254", "0.6060726", "0.605894"...
0.0
-1
SemiDetached: with default state. .id : propertysemi .value : Semidetached .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject semiDetached() { return new GuiTestObject( getMappedTestObject("semiDetached")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Identity(){\n setLabel(\"I\");\n }", "@Override\n public int getId() {\n return 0;\n }", "void setId(int val);", "@Override\n public String getId() {\n return \"1\";\n }", "@Override\n\tpublic int getId() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getId() {\n\t\tr...
[ "0.5627711", "0.5623682", "0.5528127", "0.5521242", "0.5495638", "0.5495638", "0.5406889", "0.5376113", "0.5352073", "0.53470796", "0.5322007", "0.5254175", "0.52347755", "0.5233745", "0.52296007", "0.52209777", "0.51993996", "0.5196648", "0.51801884", "0.51801884", "0.518018...
0.0
-1
SemiDetached: with specific test context and state. .id : propertysemi .value : Semidetached .title : .class : Html.LABEL .classIndex : 2
protected GuiTestObject semiDetached(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("semiDetached"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", ...
[ "0.55554533", "0.5418597", "0.5336946", "0.5322252", "0.52834845", "0.52520806", "0.52423626", "0.52357304", "0.5138011", "0.5125792", "0.5120498", "0.5102353", "0.5093962", "0.50939596", "0.50578004", "0.504758", "0.50475645", "0.5023297", "0.5016095", "0.49955043", "0.49727...
0.48586407
30
Terraced: with default state. .id : propertyterraced .value : Terraced .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject terraced() { return new GuiTestObject( getMappedTestObject("terraced")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }"...
[ "0.5551524", "0.5551524", "0.5551524", "0.5551524", "0.5405068", "0.53038245", "0.5302689", "0.5244912", "0.5242104", "0.5230103", "0.51808333", "0.5176872", "0.51755065", "0.51559037", "0.5120409", "0.5106182", "0.50814056", "0.507024", "0.50665647", "0.5035386", "0.5021473"...
0.0
-1
Terraced: with specific test context and state. .id : propertyterraced .value : Terraced .title : .class : Html.LABEL .classIndex : 1
protected GuiTestObject terraced(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("terraced"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n public void testPseudoVariable() {\n String html = source.toHTML(new SEclipseStyle(), new SPseudoVariable());\n assertEquals(html, \"<pre style='color:#000000\"\n ...
[ "0.54400706", "0.53551495", "0.5201393", "0.5189997", "0.5121246", "0.5030812", "0.5016768", "0.49884403", "0.49699536", "0.491999", "0.4918369", "0.4916364", "0.4905643", "0.49005508", "0.49002767", "0.48888534", "0.4867079", "0.4867079", "0.4864886", "0.48559475", "0.485035...
0.0
-1
headerInner: with default state. .id : headerInner .title : .class : Html.DIV .classIndex : 0
protected GuiTestObject title() { return new GuiTestObject( getMappedTestObject("title")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebElement headerDiv() {\r\n return driver.findElement(By.id(\"header\"));\r\n }", "public JLabel buildDefaultHeader(){\n JLabel returnHeader = new JLabel();\n returnHeader.setHorizontalAlignment(SwingConstants.LEFT);\n returnHeader.setFont(new Font(\"Comic Sans MS\", Font.P...
[ "0.61462224", "0.6030846", "0.58432174", "0.5782986", "0.57781005", "0.56199497", "0.5618682", "0.56140214", "0.55605924", "0.55593395", "0.5548985", "0.5548985", "0.5540845", "0.55054355", "0.54610765", "0.5443712", "0.54370207", "0.5423361", "0.54225373", "0.5399338", "0.53...
0.0
-1
headerInner: with specific test context and state. .id : headerInner .title : .class : Html.DIV .classIndex : 0
protected GuiTestObject title(TestObject anchor, long flags) { return new GuiTestObject( getMappedTestObject("title"), anchor, flags); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void VerifyHeaderItem_CommonComponent_Div_H2(String renderingControl){\t\t\t\t\n\t\ttry{\n\t\t\tactualHeaderText=sitecoreObj.aboutusHeaderItemTitleRightTop.isDisplayed();\n\t\t\tAssert.assertEquals(actualHeaderText, true);\n\t\t\tlog.info(\"The Actual AboutUs \" + renderingControl + \" Title - <\"+si...
[ "0.6325171", "0.61189276", "0.5878773", "0.58476216", "0.58455366", "0.5797651", "0.5755977", "0.57339865", "0.5693399", "0.5624076", "0.55929583", "0.55871934", "0.55855507", "0.5558596", "0.5558596", "0.55501986", "0.55458236", "0.5531589", "0.5504872", "0.54795957", "0.547...
0.0
-1
Test if the wavelevel is right.
@Test public void test() { try { panel=new Panels(); panel.map=new DrawMap(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } panel.waveLevel=2; panel.map.map=new int [1][1]; panel.waveInitial(); assertEquals(3,panel.waveLevel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLevel(){\n return Math.abs(gyro_board.getPitch()) < LEVEL_TOLERANCE && Math.abs(gyro_board.getRoll()) < LEVEL_TOLERANCE;\n }", "public void wave() {\n leanRight = !leanRight;\n }", "public boolean isLevelOver() {\n\t\treturn waveControl.isLevelEnd();\n\t}", "public boolean isRi...
[ "0.6909925", "0.6325752", "0.6238291", "0.62066966", "0.6065843", "0.5970275", "0.59405863", "0.5934582", "0.5892563", "0.5877218", "0.57656133", "0.5735634", "0.5727752", "0.5720442", "0.57061315", "0.56278795", "0.5620817", "0.56124264", "0.56064236", "0.55792874", "0.55747...
0.0
-1
Converts all the values of a set of dices to an Integer array.
private static int[] convertDiceValueArray(ArrayList<Dice> dices) { int[] combos = new int[dices.size()]; for (int i = 0; i < dices.size(); i++) { combos[i] = dices.get(i).getValue(); } return combos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int[] toIntArray();", "public int[] convert(){\r\n int[] arreglo = new int[cedula.length()];\r\n for(int i=0; i<cedula.length(); i++){\r\n // convierte los char en int\r\n arreglo[i] = Character.getNumericValue(cedula.charAt(i));\r\n }\r\n return ...
[ "0.66765356", "0.6464409", "0.64365286", "0.6431172", "0.64131016", "0.6357208", "0.6351893", "0.631299", "0.6295395", "0.6266258", "0.6256028", "0.62431854", "0.6207361", "0.6124252", "0.6084391", "0.60667276", "0.60640013", "0.6043188", "0.6042495", "0.602003", "0.5965674",...
0.83198225
0
Calculates the Score of the dices by iterating over an Integer array several passes so make sure no score gets missed.
public static int calcScore(ArrayList<Dice> dices, int findValue) { int[] combos = convertDiceValueArray(dices); permutations = new ArrayList<>(); score = new ArrayList<>(); findPermutations( 0,combos); for(int arr[] : permutations){ compareArrays(arr, findValue); } int max = 0; for(int a : score){ if(max < a) max = a; } return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n ...
[ "0.6858635", "0.6823056", "0.66092056", "0.62378836", "0.6153525", "0.6061154", "0.60042953", "0.60011697", "0.59956795", "0.5962729", "0.5936217", "0.5789063", "0.57578087", "0.573986", "0.572924", "0.57248884", "0.57040656", "0.56878054", "0.5577617", "0.5569533", "0.556119...
0.64654285
3
Finds all Permutations of the given Valuearray.
public static void findPermutations(int position, int[] arr) { int[] array = Arrays.copyOf(arr, arr.length); if (position == array.length - 1) { permutations.add(array); } for (int i = position; i < array.length; i++) { int temp = array[position]; array[position] = array[i]; array[i] = temp; findPermutations(position + 1, array); array[i] = array[position]; array[position] = temp; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<List<Integer>> getPermutation(List<Integer> array){\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n getPermutation(array,new ArrayList<>(),result);\n return result;\n }", "public static List<int[]> getPermutations( int start, int end, int arraySize...
[ "0.68184525", "0.62902427", "0.6205875", "0.58479744", "0.5736594", "0.5715394", "0.5689773", "0.56352735", "0.55503464", "0.5545595", "0.5505403", "0.54860383", "0.54053754", "0.5372873", "0.5363427", "0.5333717", "0.5323305", "0.531516", "0.5297716", "0.52964747", "0.528983...
0.6234267
2
Calculates the Score of the dices by iterating over an Integer array several passes so make sure no score gets missed.
public static void compareArrays(int[] compare, int find) { int[] arr = Arrays.copyOfRange(compare, 0, compare.length); int totalScore = 0; // Outer loop for (int i = 0; i < arr.length; i++) { int currentSum = find; // Reset each pass for (int j = 0; j < arr.length - i; j++) { currentSum -= arr[i + j]; if (currentSum < 0) continue; // Combination found if (currentSum == 0) { // Sets dices used for calculation to 0; for (int y = i; y <= i + j; y++) { arr[y] = 0; } totalScore += find; currentSum = find; // reset i = 0; // Reset outer loop j = -1; // Reset inner loop } } } score.add(totalScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n ...
[ "0.6857176", "0.6821967", "0.6606249", "0.64636075", "0.62371224", "0.6151866", "0.60035574", "0.59991074", "0.59960186", "0.59611154", "0.5936466", "0.5787552", "0.57584894", "0.5739261", "0.57278466", "0.5722324", "0.5703501", "0.568618", "0.5575426", "0.55684936", "0.55601...
0.60619026
6
Calculates the Score when a user chooses Low score (special case).
public static int calcScoreLow(ArrayList<Dice> dices) { int[] arr = convertDiceValueArray(dices); int sum = 0; for (int i = 0; i < arr.length; i++) { if (arr[i] <= SCORE_LOW) { sum += arr[i]; } } Log.d("SCORECALC", String.valueOf(sum)); return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int lowerScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return lowerScore;\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecor...
[ "0.73118937", "0.66796786", "0.6614031", "0.65514314", "0.65490323", "0.65477663", "0.651209", "0.6430196", "0.6430196", "0.6382285", "0.63304454", "0.63094985", "0.63017696", "0.6229571", "0.6176399", "0.61738825", "0.6142078", "0.61117697", "0.61117697", "0.61117697", "0.61...
0.6157045
16
centerView = new Ponto(posicao.getX(), posicao.getY(), posicao.getZ()500);
public void girar(float amount) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public void setCenterPosition(ViewPosition p) {\n\n\t}", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "Viewpoi...
[ "0.66008013", "0.6500004", "0.64414555", "0.6408837", "0.6336174", "0.6272388", "0.6159894", "0.6089537", "0.60634637", "0.6037743", "0.6037743", "0.6008522", "0.59780747", "0.59448487", "0.5916316", "0.58880156", "0.5857734", "0.581813", "0.57988805", "0.57948285", "0.576477...
0.0
-1
Execute for given condition TODO Autogenerated method stub print the number for 1 to 10
public static void main(String[] args) { int z = 10 ; z = 11 ; System.out.println(z); for(int i = 1 ; i < 10 ; i++) { System.out.println(i); } // Execute till the condition is satisfied System.out.println("------------------------"); int y = 0 ; while(y <= 10) { System.out.println(y); y++; // 1 , 2 ,3 , 4 ,5 ,6 ,7 ,8 ,9 ,10,11 } System.out.println("-----------Do while-------------"); do { System.out.println(y); y++; }while(y<=10); System.out.println(y); // while -->First check the condition and then execute // Do- while first execute and then check for the condition }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loopWithCheck(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++) {\r\n\t\t\t\tif(q.getGreaterThan()==q.getLessThan()){\r\n\t\t\t\t\tq.setFinalCount(i+10000);\r\n\t\t\t\t\tq.setStatus(1);\r\n\t\t\t\t\tquitProgram(q);\r\n\t\t\t\t}...
[ "0.6135347", "0.606589", "0.6061278", "0.599144", "0.5978027", "0.59484226", "0.59083", "0.59078044", "0.5880096", "0.58713156", "0.5851251", "0.5815322", "0.5777247", "0.5766467", "0.5737513", "0.56597203", "0.5655615", "0.5629195", "0.5597987", "0.55960137", "0.5590952", ...
0.60002756
3
/ public: SelfShuntEvent (bean) interface
public Long getDomain() { return domain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consulterEvent() {\n\t\t\n\t}", "public Event getTheObject(){\n return this;\n }", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "Event () {\n // Nothing to do here.\n }", ...
[ "0.6416374", "0.6019017", "0.59952956", "0.59952956", "0.5990847", "0.59760076", "0.59210765", "0.59102637", "0.5896082", "0.5896082", "0.58764935", "0.58760536", "0.58389187", "0.58246726", "0.58177876", "0.58177876", "0.5784853", "0.5740853", "0.5724287", "0.5724287", "0.57...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int a = 2; b++; b++; }
{ "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
Created by liujiawang on 2019/4/29.
public interface CanteensDao extends JpaRepository<CanteensEntity,Integer>{ CanteensEntity queryByCanteenId(int id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\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\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r...
[ "0.59710085", "0.5924971", "0.55786216", "0.55786216", "0.55740494", "0.55647564", "0.5520576", "0.550359", "0.5441646", "0.54411715", "0.543595", "0.54229814", "0.54069346", "0.54054093", "0.5400313", "0.5397669", "0.5391351", "0.5384764", "0.5382996", "0.5382996", "0.538299...
0.0
-1
Constructor for the TestRenameFieldRefactoring object
public TestRenameFieldRefactoring(String name) { super(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test01() throws RefactoringException {\r\n RenameFieldRefactoring rfr = new RenameFieldRefactoring();\r\n rfr.setClass(\"field\", \"RenameFieldTest\");\r\n rfr.setField(\"simple\");\r\n rfr.setNewName(\"changed\");\r\n\r\n rfr.run();\r\n\r\n // Check things out\r\n F...
[ "0.7209031", "0.7204827", "0.71630293", "0.71427023", "0.6994482", "0.6944094", "0.6939367", "0.6380189", "0.63006765", "0.6266316", "0.6091713", "0.6000271", "0.58893263", "0.5816125", "0.57669234", "0.5729005", "0.5729005", "0.56971306", "0.56294453", "0.5574215", "0.555523...
0.8853182
0
A unit test for JUnit
public void test01() throws RefactoringException { RenameFieldRefactoring rfr = new RenameFieldRefactoring(); rfr.setClass("field", "RenameFieldTest"); rfr.setField("simple"); rfr.setNewName("changed"); rfr.run(); // Check things out File check = new File(this.check + "\\ut2\\step11"); FileCompare.assertEquals("RenameFieldTest is incorrect", new File(check, "RenameFieldTest.java"), new File(dest, "RenameFieldTest.java")); FileCompare.assertEquals("UsesFieldTest is incorrect", new File(check, "UsesFieldTest.java"), new File(dest, "UsesFieldTest.java")); FileCompare.assertEquals("InheritFieldTest is incorrect", new File(check, "InheritFieldTest.java"), new File(dest, "InheritFieldTest.java")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void simpleUse(){\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "public void testDumbJUnit() {\n }", "@Test\n\tpublic v...
[ "0.75710434", "0.74449277", "0.73627865", "0.731134", "0.7304504", "0.7222832", "0.7215483", "0.72147363", "0.72147363", "0.7214447", "0.72114563", "0.72114515", "0.7207631", "0.7183441", "0.71810764", "0.716787", "0.7122575", "0.71210265", "0.709407", "0.7086396", "0.7084878...
0.0
-1
A unit test for JUnit
public void test02() throws RefactoringException { RenameFieldRefactoring rfr = new RenameFieldRefactoring(); rfr.setClass("field", "RenameFieldTest"); rfr.setField("code"); rfr.setNewName("changed"); rfr.run(); // Check things out File check = new File(this.check + "\\ut2\\step12"); FileCompare.assertEquals("RenameFieldTest is incorrect", new File(check, "RenameFieldTest.java"), new File(dest, "RenameFieldTest.java")); FileCompare.assertEquals("UsesFieldTest is incorrect", new File(check, "UsesFieldTest.java"), new File(dest, "UsesFieldTest.java")); FileCompare.assertEquals("InheritFieldTest is incorrect", new File(check, "InheritFieldTest.java"), new File(dest, "InheritFieldTest.java")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void simpleUse(){\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "public void testDumbJUnit() {\n }", "@Test\n\tpublic v...
[ "0.75710434", "0.74449277", "0.73627865", "0.731134", "0.7304504", "0.7222832", "0.7215483", "0.72147363", "0.72147363", "0.7214447", "0.72114563", "0.72114515", "0.7207631", "0.7183441", "0.71810764", "0.716787", "0.7122575", "0.71210265", "0.709407", "0.7086396", "0.7084878...
0.0
-1