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
Method to retrieve the command handler name
public String getCommandHandlerName() { return COMMAND_HANDLER_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCommandName() {\n try {\n if (command != null) {\n if (command.has(GnsProtocol.COMMANDNAME)) {\n return command.getString(GnsProtocol.COMMANDNAME);\n }\n }\n } catch (JSONException e) {\n // Just ignore it\n }\n return \"unknown\";\n }", "public...
[ "0.69953406", "0.6796195", "0.6712157", "0.6597453", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.6586755", "0.65835893", "0.6489484", "0.6448981", "0.6350876", "0.6329861", "0.63127774", "0.6304433", "0.6304433", "0.6282611", "0.62209016",...
0.7988126
1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.add_chat, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Get Values from the Dialog
@Override public void onClick(DialogInterface dialog, int id) { String chat = chat_field.getText().toString(); LandingActivity current_activity = (LandingActivity)getActivity(); if(current_activity != null){ new Chat(chat, current_user.getUsername(), getActivity()); } //Construct the new Object }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getValues(){\n username = etUsername.getText().toString();\n password = etPassword.getText().toString();\n }", "public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.g...
[ "0.6403375", "0.63864243", "0.59708077", "0.5966252", "0.58965063", "0.5864706", "0.5822212", "0.5816672", "0.5794982", "0.576876", "0.57300425", "0.57290137", "0.56900716", "0.56634223", "0.56571037", "0.56476307", "0.561191", "0.5607164", "0.56056035", "0.5585204", "0.55616...
0.0
-1
Test of map method, of class Training.
@Test public void testMap() { System.out.println("map"); String line = "failed"; int expResult = 1; int result = Training.map(line); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testMapGet() {\r\n }", "@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}", "@Test\n @Override\n public void testMapGet() {\n }", "@Test\n\tpublic void testMapper() {\n\n\t\t/*\n\t\t * For this test, the mapper's input will be \"1 cat c...
[ "0.72959536", "0.71313596", "0.7002861", "0.67424846", "0.6679277", "0.63683206", "0.6347895", "0.6319151", "0.63010126", "0.6274747", "0.61434174", "0.60280204", "0.602485", "0.6019895", "0.6014563", "0.60127145", "0.59977436", "0.59931064", "0.59857106", "0.5962547", "0.592...
0.803988
0
Test of train method, of class Training.
@Test public void testTrain() { System.out.println("train"); TokenizedLine tokenizedLine = null; ArrayList<Words> expResult = null; ArrayList<Words> result = Training.train(tokenizedLine); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TrainingTest createTrainingTest();", "public void train() throws Exception;", "public void train(){\n recoApp.training(idsToTest);\n }", "public void train ()\t{\t}", "public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new St...
[ "0.7804658", "0.74551713", "0.7273227", "0.7257969", "0.7058689", "0.69318414", "0.6851551", "0.6814725", "0.67657644", "0.66554374", "0.6562036", "0.654557", "0.65382123", "0.6516589", "0.6506412", "0.64931947", "0.6485282", "0.6484381", "0.64671373", "0.6442907", "0.6434490...
0.79084545
0
show a dialog that takes a solution. On ok, send to server
@Override public void invoke(@NotNull Project project, Editor editor, @NotNull PsiFile file) throws IncorrectOperationException { final Eddy.Output output = EddyFileListener.getOutputFor(editor); final CorrectionDialog d = new CorrectionDialog(project,output); if (d.showAndGet()) Eddy.Output.logSuggestion(project, output, d.getSuggestion()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DialogResult show();", "private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClic...
[ "0.7105962", "0.6671935", "0.66100407", "0.6547522", "0.64938587", "0.64019364", "0.63856417", "0.63541895", "0.63294387", "0.63136506", "0.63135076", "0.6295411", "0.62858015", "0.62505305", "0.6213681", "0.61923146", "0.6177499", "0.617642", "0.61524284", "0.61483496", "0.6...
0.0
-1
Returns the namespace of this requirement.
String getNamespace();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Optional<String> namespace() {\n return Codegen.stringProp(\"namespace\").config(config).get();\n }", "@Nullable public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return na...
[ "0.8184153", "0.81174767", "0.7949862", "0.7949862", "0.7949862", "0.7863692", "0.782933", "0.77521026", "0.765643", "0.7628835", "0.7574593", "0.7563405", "0.7511779", "0.74648494", "0.7452191", "0.74069506", "0.73932683", "0.7291436", "0.72529876", "0.7182632", "0.71672237"...
0.7509238
15
Returns the directives of this requirement.
Map<String, String> getDirectives();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<__Directive> getDirectives() {\n return (List<__Directive>) get(\"directives\");\n }", "public String[] getDirectiveNames ();", "public Map<String, Object> getDirectives();", "@Override\r\n\tpublic Map<String, String> getDirectives() {\n\t\treturn null;\r\n\t}", "public List<Lexi> dir...
[ "0.80198747", "0.74592453", "0.7226632", "0.7197346", "0.70431787", "0.6899027", "0.6878511", "0.6582371", "0.6472101", "0.60033613", "0.58558875", "0.57338834", "0.5665752", "0.56617635", "0.5658188", "0.5595132", "0.556932", "0.5564976", "0.55477136", "0.55242354", "0.54824...
0.74126065
3
Get the value of the given directive
String getDirective(String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getDirective(String key);", "TemplateModel getValue();", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "String getVal();", "String getValue();", "String getValue();", "String getValue();", "String getValue()...
[ "0.6753492", "0.6086256", "0.60196114", "0.5923398", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5772059", "0.5672648", "0.5672648", "0.5672648", "0.5672648", "0.5672648", "0.5672648", "0.5657464", ...
0.66971004
1
Returns the attributes of this requirement. Requirement attributes have no specified semantics and are considered extra user defined information.
Map<String, Object> getAttributes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "@Override\n public Map<String, Set<String>> getRequiredAttributes() {\n return requiredAttributes;\n }", "public String[] getRelevantAttributes();", "public java.util.Collection getAttributes();", "public String g...
[ "0.77292246", "0.7574287", "0.756116", "0.74767095", "0.74304914", "0.74304914", "0.7388537", "0.73829573", "0.7375643", "0.73707193", "0.73446435", "0.7340519", "0.73088056", "0.72978413", "0.72628134", "0.7250961", "0.7227543", "0.72169894", "0.7215595", "0.71565384", "0.71...
0.7010781
28
Get the value of the given attribute
Object getAttribute(String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Attribute getAttribute();", "java.lang.String getAttribute();", "Object getAttribute(int attribute);", "String getAttribute();", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "private String getAttributeValue(final Attribute ...
[ "0.7990298", "0.78897315", "0.7854109", "0.7785028", "0.76359326", "0.74018496", "0.736865", "0.736865", "0.736865", "0.72994196", "0.72816145", "0.72078794", "0.7143089", "0.7121298", "0.71057063", "0.70658106", "0.7057684", "0.70170254", "0.70073324", "0.70073324", "0.69935...
0.706686
16
A flag indicating that this is an optional requirement.
boolean isOptional();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isOptional()\n {\n return false;\n }", "public boolean isOptional() {\n return optional;\n }", "public boolean isOptional() {\n\t\treturn optional;\n\t}", "public boolean isOptional() {\n return m_optional;\n }", "public boolean isOptional() {\n\t\...
[ "0.7162309", "0.7079663", "0.6974579", "0.696027", "0.6957741", "0.695229", "0.67824084", "0.67810464", "0.67042214", "0.6689392", "0.6650794", "0.6572802", "0.6556069", "0.651008", "0.64718705", "0.6438954", "0.6438954", "0.6430622", "0.6429063", "0.6426849", "0.6401325", ...
0.6712317
8
Declaration of the velocities list
@Override public List<Velocity> initialBallVelocities() { List<Velocity> ballsVelocities = new ArrayList<Velocity>(); //Ball's Velocities int y = -8; for (int i = 0; i < 5; i++) { ballsVelocities.add(new Velocity(i + 1, y)); ballsVelocities.add(new Velocity(-1 * (i + 1), y)); y += 1; } return ballsVelocities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Velocity> initialBallVelocities();", "public List<Velocity> initialBallVelocities() {\r\n List<Velocity> velocities = new ArrayList<Velocity>();\r\n velocities.add(Velocity.fromAngleAndSpeed(330, 8));\r\n velocities.add(Velocity.fromAngleAndSpeed(360, 8));\r\n velocities.add(Velo...
[ "0.80018103", "0.7556352", "0.7492222", "0.7355543", "0.72240466", "0.7180105", "0.69540703", "0.684512", "0.6692475", "0.66657805", "0.66498107", "0.6570546", "0.6445658", "0.64207333", "0.64092", "0.6394917", "0.6391634", "0.63884175", "0.63581574", "0.6328265", "0.6316925"...
0.6978436
6
Declaration of the blocks list
@Override public List<Block> blocks() { List<Block> blocksList = new ArrayList<Block>(); //Setting the blocks for (int j = 0; j <= 14; j++) { if (j == 0 || j == 1) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN)); } else if (j == 2 || j == 3) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK)); } else if (j == 4 || j == 5) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE)); } else if (j == 6 || j == 7 || j == 8) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN)); } else if (j == 9 || j == 10) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW)); } else if (j == 11 || j == 12) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE)); } else if (j == 13 || j == 14) { blocksList.add(new Block(new Rectangle( new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED)); } } return blocksList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Block> blocks();", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.de...
[ "0.779307", "0.72289735", "0.7191683", "0.714212", "0.7112495", "0.71104705", "0.69993514", "0.6919533", "0.68172693", "0.6800407", "0.6720261", "0.6711748", "0.6645838", "0.66230917", "0.66144866", "0.66144866", "0.65961623", "0.65961623", "0.6507861", "0.6432633", "0.642913...
0.69400054
7
A get request to check if the service is available
public SearchResponse getStatus();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "public boolean isServiceReady();", "Object getService(String serviceName, boolean checkExistence);", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest()...
[ "0.72315264", "0.72315264", "0.72315264", "0.72315264", "0.72315264", "0.6824167", "0.67169076", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.66030693", "0.6569127", "0.6536059", "0.6462069", ...
0.0
-1
With a keyword in request object, this function will call multiple domain servers to fetch corresponding related information.
public SearchResponse search(SearchRequest request) throws SearchServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void search() {\n\t\tList<Domain> domains = DomainService.findAll();\n\t\t\n\t\tlogger.info(\"{} domains selected to search\", domains.size());\n\t\t\n\t\tMap<String, Integer> sourceMap = getSourceMap();\n\t\tString currentDomain = \"\";\n\t\t\n\t\tMap<String, SearchResult> resultMap = new HashMap<St...
[ "0.536567", "0.5273587", "0.5107069", "0.5064441", "0.49888343", "0.4959744", "0.4909077", "0.49009398", "0.48866493", "0.4878655", "0.48358336", "0.48247588", "0.4782142", "0.4778608", "0.47652656", "0.47639856", "0.47574833", "0.47572818", "0.4754238", "0.47446698", "0.4743...
0.0
-1
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd'T'HH:mm:ss'Z'");
public void setAge(String age) { Instant instant = Instant.parse(age) ; Date dateAge = Date.from(instant) ; //Date dateAge = format.parse(age); Log.e("age convert: ", String.valueOf(dateAge)); this.age = dateAge; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssX\"); // Quoted \"Z\" to indicate UTC, no timezone offset\n// df.setTimeZone(tz);\n// String nowAsISO = df.format(\"2017-04-21T21:25:35+05:00\");\n try {\n Date date =...
[ "0.64962524", "0.6209053", "0.6069732", "0.59866124", "0.5907144", "0.5880137", "0.58082944", "0.57854414", "0.57688993", "0.57533777", "0.5722569", "0.56792516", "0.5655362", "0.5618946", "0.56083083", "0.55910504", "0.5556153", "0.5550284", "0.55135787", "0.5512091", "0.548...
0.0
-1
Created by F on 2017/3/12.
public interface FilmRepository extends JpaRepository<Film , Integer> { Page<Film> findByYear(Short year, Pageable pageable); List<Film> findByYear(Short year); List<Film> findFilmDistinctByYearIsNotNull(); @Query(value = "Select DISTINCT(f.year) From Film f ORDER BY f.year desc ") List<Short> findYearDistinct(); @Query(value = "Select h.name From f_entity_human h where h.jobs = '导演' ORDER BY h.name desc ") List<String> findDirectorDistinct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.59504247", "0.57787114", "0.5770678", "0.5715341", "0.56610435", "0.56610435", "0.5635149", "0.5618579", "0.5611971", "0.5589627", "0.5578648", "0.55500495", "0.55362666", "0.5528199", "0.5509936", "0.5495955", "0.5482909", "0.548257", "0.5471296", "0.546694", "0.54504067"...
0.0
-1
alt shift s override~
@Override public void input() { // TODO Auto-generated method stub System.out.println("================="); System.out.println("매입 매출 등록"); System.out.println("-----------------"); String pname = null; while (true) { System.out.print("상품명(QUIET:입력중단)>>"); pname = scan.nextLine(); if (pname.equals("QUIET")) { return; } else if (pname.equals("")) { System.out.println("상품명은 반드시 입력해야합니다"); continue; } break; } System.out.print("거래일자(yyyy-mm-dd)"); String date = scan.next(); System.out.print("거래처 명 >>"); String dname = scan.next(); System.out.print("매입매출구분>>"); String iout = scan.next(); System.out.print("수량>>"); Integer qty = scan.nextInt(); Integer iprice = this.inputPrice("매입"); if (iprice == null) { return; } Integer oprice = this.inputPrice("매출"); if (oprice == null) { return; } IolistVO VO = new IolistVO(); VO.setPname(pname); VO.setDate(date); VO.setDname(dname); VO.setInout(iout); VO.setIprice(iprice); VO.setOprice(oprice); VO.setQty(qty); iolist.add(VO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveShiftRight();", "public void moveShiftLeft();", "protected abstract boolean shift();", "public static void main(String[] args) {\n shift();\n\n }", "public static void shift(StringBuilder s){\n\t\t\n\t\t\n\t\t\n\t}", "public static String symbol() {\n return \"ALT\";\n ...
[ "0.63903856", "0.60418713", "0.5804411", "0.5796926", "0.57205415", "0.5713634", "0.5616363", "0.5490184", "0.5490184", "0.5463012", "0.54525125", "0.54489475", "0.5405714", "0.5378236", "0.5376589", "0.537052", "0.5363998", "0.5357341", "0.53463656", "0.53351045", "0.5329599...
0.0
-1
/ Internal testing of the helpers for this release test below
public void testCreateAggregator() throws Exception { testCreateIndex(); List<SummaSearcher> searchers = createSearchers(Arrays.asList(new File(INDEX_ROOT, "index_1"))); SummaSearcher aggregator = createAggregator(searchers); log.info("Aggregated search for 'bar' resulted in:\n" + search(aggregator, "bar")); assertTrue("The result should contain a field with 'bar'", search(aggregator, "bar").contains("<field name=\"single_token\">bar</field>")); close(searchers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Util() { }", "private void test() {\n\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private WAPIHelper() { }", "@Test\n public void testGetProductInfo() throws Exception {\n }",...
[ "0.62472945", "0.62472945", "0.57613295", "0.56579626", "0.5648539", "0.5628449", "0.56247276", "0.5624141", "0.5624141", "0.5624141", "0.5624141", "0.55842054", "0.55744594", "0.5546296", "0.5542713", "0.55061895", "0.5503958", "0.55010736", "0.54478556", "0.54476756", "0.54...
0.0
-1
/ Helpers for this release test Performs a search for query and checks that the result contains the given recordIDs in the given order.
public static void assertResult( String message, SummaSearcher searcher, String query, List<String> recordIDs) throws IOException { String result = search(searcher, query); log.debug(String.format("The result for query '%s' was:\n%s", query, result)); // <field name="recordID">foo2</field> int lastPos = -1; String lastID = null; for (String recordID : recordIDs) { int pos = result.indexOf(String.format("<field name=\"recordID\">%s</field>", recordID)); if (pos == -1) { fail(String.format("%s. The id '%s' could not be located in the result for query '%s'. " + "The result was:\n%s", message, recordID, query, result)); } if (pos < lastPos) { fail(String.format("%s. The id '%s' was found at position %d, which is less than position %d from the " + "previous id '%s' in query '%s'. The result was:\n%s", message, recordID, pos, lastPos, lastID, query, result)); } lastPos = pos; lastID = recordID; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract List performQuery(String[] ids);", "@Test\r\n public void testSearchOrders() throws FlooringMasteryPersistenceException{\r\n order1();\r\n order2();\r\n\r\n List<Order> orders = dao.searchOrders(date);\r\n assertEquals(2, orders.size());\r\n }", "@Test\n ...
[ "0.6049795", "0.5703056", "0.5511172", "0.54346114", "0.5367334", "0.5364375", "0.53181803", "0.53176296", "0.53143424", "0.5299773", "0.52994573", "0.52787954", "0.52698535", "0.5238799", "0.521984", "0.5217751", "0.5216331", "0.5204085", "0.5199522", "0.51956904", "0.519350...
0.56293315
2
Create searchers for the given indexes. The searchers will have the names "searcher_", where goes from 0 to locations.size()1.
public static List<SummaSearcher> createSearchers(File termStatLocation, List<File> locations) throws Exception { List<SummaSearcher> searchers = new ArrayList<>(locations.size()); Configuration conf = Configuration.load("integration/distribution/search_configuration.xml"); // TODO: Check if this unit test makes sense after upgrade to Lucene trunk in 2012 /* if (termStatLocation != null) { conf.getSubConfiguration( LuceneSearchNode.CONF_TERMSTAT_CONFIGURATION).set( IndexWatcher.CONF_INDEX_WATCHER_INDEX_ROOT, termStatLocation.getAbsolutePath()); } */ int id = 0; for (File location : locations) { conf.set(IndexWatcher.CONF_INDEX_WATCHER_INDEX_ROOT, location); conf.set(RMISearcherProxy.CONF_BACKEND, SummaSearcherImpl.class.getCanonicalName()); conf.set(RMISearcherProxy.CONF_SERVICE_NAME, "searcher_" + id); id++; searchers.add(new RMISearcherProxy(conf)); } return searchers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildSearcher() throws IOException {\n IndexReader rdr = DirectoryReader.open(FSDirectory.open(new File(indexDir).toPath()));\n searcher = new IndexSearcher(rdr);\n parser = new QueryParser(\"text\", new StandardAnalyzer());\n }", "public static SolrIndexer indexerFromProperti...
[ "0.579269", "0.5782084", "0.5512487", "0.5415431", "0.5342766", "0.53181404", "0.5216957", "0.5146001", "0.51237696", "0.5123612", "0.5114773", "0.5102891", "0.5053942", "0.5010541", "0.4998859", "0.4981846", "0.4942572", "0.49040654", "0.4898356", "0.48934278", "0.4886135", ...
0.68145
0
Create a Summa index.
public static File createIndex(File indexDescriptor, File destination, List<Pair<String, List<Pair<String, String>>>> corpus) throws Exception { Configuration indexConf = Configuration.load("integration/distribution/index_configuration.xml"); indexConf.set(IndexControllerImpl.CONF_INDEX_ROOT_LOCATION, destination.getAbsolutePath()); indexConf.getSubConfiguration(IndexDescriptor.CONF_DESCRIPTOR). set(IndexDescriptor.CONF_ABSOLUTE_LOCATION, indexDescriptor.getAbsolutePath()); IndexControllerImpl indexer = new IndexControllerImpl(indexConf); PayloadFeederHelper feeder = new PayloadFeederHelper(createPayloads(indexDescriptor, corpus)); indexer.setSource(feeder); //noinspection StatementWithEmptyBody while (indexer.pump()) { } indexer.close(true); return indexer.getIndexLocation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "indexSet createindexSet();", "InstAssignIndex createInstAssignIndex();", "LuceneMemoryIndex createLuceneMemoryIndex();", "public void createIndex() {\n String indexName = INDEX_BASE + \"-\" +\n LocalDateTime...
[ "0.6566216", "0.6484746", "0.6264075", "0.6096072", "0.5908637", "0.58843434", "0.58006227", "0.5708268", "0.56506354", "0.5635065", "0.5620812", "0.56133205", "0.55897796", "0.55473083", "0.55442435", "0.5538252", "0.5520337", "0.5488333", "0.54280895", "0.5427394", "0.54123...
0.0
-1
corpus: List(id, (field, value)).
private static List<Payload> createPayloads( File indexDescriptor, List<Pair<String, List<Pair<String, String>>>> corpus) throws IOException { LuceneIndexDescriptor descriptor = new LuceneIndexDescriptor(indexDescriptor.toURI().toURL()); List<Payload> payloads = new ArrayList<>(corpus.size()); for (Pair<String, List<Pair<String, String>>> recordDef : corpus) { Document document = new Document(); for (Pair<String, String> content : recordDef.getValue()) { LuceneIndexField indexField = descriptor.getFieldForIndexing(content.getKey()); Field field = new Field(content.getKey(), content.getValue(), indexField.getStore(), indexField.getIndex(), indexField.getTermVector()); document.add(field); } Record record = new Record(recordDef.getKey(), "foo", new byte[0]); Payload payload = new Payload(record); payload.getObjectData().put(Payload.LUCENE_DOCUMENT, document); IndexUtils.assignBasicProperties(payload); payloads.add(payload); } return payloads; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Set<String> getTerms(Document doc);", "private static List<Term> toTerms(ByteBuffer... values)\n {\n List<Term> terms = new ArrayList<>();\n for (ByteBuffer value : values)\n terms.add(toTerm(value));\n return terms;\n }", "List<VocabWord> document(int inde...
[ "0.601041", "0.5590079", "0.55719167", "0.5558505", "0.55252033", "0.54041564", "0.52908623", "0.5260136", "0.51696306", "0.5155666", "0.51518434", "0.51398706", "0.51394737", "0.5096705", "0.5014813", "0.4963761", "0.49159077", "0.49058074", "0.49038318", "0.4899649", "0.486...
0.5376574
6
Convenience constructor, which shows offset and character output, with nonprinting and nonASCII characters replaced by spaces.
public HexDumpOutputStream(PrintWriter out) { this(out, ' '); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}", "public static void main(String[] args) {\n //sout[TAB KEY] -> println\n String str1 = \"J\"; // 암시적으로 객체가 생성된 String\n char ch1 = 'A'; // ''한 문자를 저장하기 위한 char\n System.out.println(\"문자열 : \" +str1);\n ...
[ "0.60837376", "0.5888526", "0.5767915", "0.5686571", "0.5604171", "0.5601157", "0.55892545", "0.5516212", "0.54882634", "0.54464614", "0.54452384", "0.54421014", "0.5441248", "0.54089195", "0.5401454", "0.539699", "0.5379037", "0.53723145", "0.53682405", "0.5336638", "0.53287...
0.0
-1
Implementation of OutputStream Closes the underlying Writer.
@Override public void close() throws IOException { _out.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close()\n throws IOException\n {\n outstream.close();\n }", "public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n ...
[ "0.69100875", "0.6745192", "0.6641541", "0.6635623", "0.6622578", "0.6560901", "0.6523129", "0.65044713", "0.6480884", "0.6451924", "0.64491916", "0.63653505", "0.634487", "0.63094443", "0.62546", "0.6245072", "0.61874175", "0.615007", "0.6141842", "0.61193573", "0.6106187", ...
0.664946
2
gives you pizza`s name
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Pizza getPizzaByName(String pizzaName) {\n\t\treturn mongoTemplate.findOne(Query.query(Criteria.where(\"name\").in(pizzaName)), Pizza.class);\n\t}", "public String getMealName() {\n return name.getText().toString();\n }", "public Pizza getPizza() {\n return this.pizzaType;\...
[ "0.7370362", "0.6783135", "0.67016006", "0.6653925", "0.66171885", "0.66089475", "0.6591075", "0.656738", "0.64802355", "0.6468457", "0.6417147", "0.6401355", "0.63927996", "0.6389028", "0.6340251", "0.62600666", "0.6244473", "0.6209122", "0.6199158", "0.6185966", "0.61383265...
0.0
-1
return true if all strings in focusedState are false otherwise, return true if at least one of them is true
public static boolean isAllFalse (String[] focusedState) { for(String s:focusedState) { boolean focused = Boolean.parseBoolean(s); if (focused) return false; //not all are false } return true; // all are false }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "private static boolean validState(String state) {\n\t\tfor (String goodState : validStates) {\n\t\t\tif (goodState....
[ "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.61770177", "0.6139929", "0.60596544", "0.60445964", "0.59783727", "0.5934124", "0.5922894", "0.5808953", "0.5803094", "0.57968545", "0.5795868", "0.5781139", "0.57705843", "0....
0.76273525
0
Created by adamlee on 2015/8/21.
public interface ViewAttacher<V extends View> { void attachView(V v); void detachView(V v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6176907", "0.6012124", "0.6007512", "0.5988195", "0.5873079", "0.5873079", "0.58451885", "0.5831213", "0.5779359", "0.5769865", "0.57649106", "0.5751498", "0.5738817", "0.57383794", "0.57197315", "0.57055146", "0.5690721", "0.5687197", "0.5667153", "0.5666741", "0.56559503...
0.0
-1
BHung find trans By Id
Transaction findTransactionById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Transaction getById(String id) throws Exception;", "Transaction get(String id) throws Exception;", "Transaction getTransctionByTxId(String txId);", "public Optional<Transaction> findTransactionById(int id);", "public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;", "@O...
[ "0.7214188", "0.6867634", "0.67671573", "0.6649355", "0.66316843", "0.6482866", "0.64682555", "0.643216", "0.63841844", "0.6354201", "0.62976706", "0.62843823", "0.6277114", "0.6216854", "0.6158842", "0.6151864", "0.6150822", "0.60969746", "0.60781", "0.60388196", "0.6026732"...
0.678242
2
CREATE BY ANH DUC
List<Account> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllAccount(Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Optional<Account> findById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Account findByEmail(String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllByFullName(String name, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllByBirthday(LocalDate birthday, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> findAllByPhoneNumber(String phone, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
public Page<AccountDTO> findAllByGender(String gender, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
public Page<AccountDTO> findAllByEmail(String gender, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Boolean checkEmailAlready(String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
void save(Account account);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
void remove(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
AccountDTO coverAccountToEmpDTO(Account account);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Account coverEmpDTOToAccount(AccountDTO accountDTO);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
Page<AccountDTO> coverListAccountToListEmpDTO(Page<Account> accounts);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
CREATE BY ANH DUC
List<Account> coverListEmpDTOToListAccount(List<AccountDTO> accountDTOList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int createTable(HbaseObj t);", "private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\...
[ "0.6137034", "0.6020893", "0.5953024", "0.5871004", "0.58520657", "0.5824135", "0.5783128", "0.5781292", "0.5779935", "0.5768486", "0.57018137", "0.569296", "0.5677845", "0.566757", "0.56516117", "0.5639093", "0.56084186", "0.5601316", "0.55988264", "0.5587084", "0.5586368", ...
0.0
-1
TODO Autogenerated method stub
public ctCurso get_ctPuesto(int id) throws RunTime4GLException, SystemErrorException, Open4GLException, IOException, SQLException { BooleanHolder oplResultado = new BooleanHolder(); StringHolder opcTexto = new StringHolder(); ResultSetHolder tt_ctCurso = new ResultSetHolder(); Connection conexion = DBConexion.getConnection(); AppServer app = new AppServer(conexion); ctCurso obj = new ctCurso(); try { app.as_ctCurso_get("SISIMB", id, tt_ctCurso, oplResultado, opcTexto); ResultSet rs_tt_ctCurso = tt_ctCurso.getResultSetValue(); while (rs_tt_ctCurso.next()) { obj.setiIdCurso(rs_tt_ctCurso.getInt("iIdCurso")); obj.setcNombre(rs_tt_ctCurso.getString("cNombre")); obj.setiMinCup(rs_tt_ctCurso.getInt("iMinCup")); obj.setiMaxCup(rs_tt_ctCurso.getInt("iMaxCup")); obj.setDePrecio(rs_tt_ctCurso.getBigDecimal("dePrecio")); obj.setDeIva(rs_tt_ctCurso.getBigDecimal("deIva")); obj.setDeTotal(rs_tt_ctCurso.getBigDecimal("deTotal")); obj.setId(rs_tt_ctCurso.getBytes("id")); } } catch (Exception ex) { System.err.println(ex); } finally { app._release(); DBConexion.closeConnection(conexion); } return obj; }
{ "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
On selecting a spinner item
@Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { String item = parent.getItemAtPosition(position).toString(); switch (item){ case "Alabama": url = "https://driving-tests.org/alabama/al-dmv-drivers-handbook-manual/"; break; case "Alaska": url = "https://driving-tests.org/alaska/ak-dmv-drivers-handbook-manual/"; break; case "Arizona": url = "https://driving-tests.org/arizona/az-dmv-drivers-handbook-manual/"; break; case "Arkansas": url = "https://driving-tests.org/arkansas/ar-dmv-drivers-handbook-manual/"; break; case "California": url = "https://driving-tests.org/california/ca-dmv-drivers-handbook-manual/"; break; case "Colorado": url = "https://driving-tests.org/colorado/co-dmv-drivers-handbook-manual/"; break; case "Connecticut": url = "https://driving-tests.org/connecticut/ct-dmv-drivers-handbook-manual/"; break; case "Delaware": url = "https://driving-tests.org/delaware/de-dmv-drivers-handbook-manual/"; break; case "District of Columbia": url = "https://driving-tests.org/district-columbia/dc-dmv-drivers-handbook-manual/"; break; case "Florida": url = "https://driving-tests.org/florida/fl-dmv-drivers-handbook-manual/"; break; case "Georgia": url = "https://driving-tests.org/georgia/ga-dds-drivers-handbook-manual/"; break; case "Hawaii": url = "https://driving-tests.org/hawaii/hi-dmv-drivers-handbook-manual/"; break; case "Idaho": url = "https://driving-tests.org/idaho/id-dmv-drivers-handbook-manual/"; break; case "Illinois": url = "https://driving-tests.org/illinois/il-dmv-drivers-handbook-manual/"; break; case "Indiana": url = "https://driving-tests.org/indiana/in-bmv-drivers-handbook-manual/"; break; case "Iowa": url = "https://driving-tests.org/iowa/ia-dmv-drivers-handbook-manual/"; break; case "Kansas": url = "https://driving-tests.org/kansas/ks-dmv-drivers-handbook-manual/"; break; case "Kentucky": url = "https://driving-tests.org/kentucky/ky-dmv-drivers-handbook-manual/"; break; case "Louisiana": url = "https://driving-tests.org/louisiana/la-dmv-drivers-handbook-manual/"; break; case "Maine": url = "https://driving-tests.org/maine/me-dmv-drivers-handbook-manual/"; break; case "Maryland": url = "https://driving-tests.org/maryland/md-mva-drivers-handbook-manual/"; break; case "Massachusetts": url = "https://driving-tests.org/massachusetts/ma-rmv-drivers-handbook-manual/"; break; case "Michigan": url = "https://driving-tests.org/michigan/mi-dmv-drivers-handbook-manual/"; break; case "Minnesota": url = "https://driving-tests.org/minnesota/mn-dmv-drivers-handbook-manual/"; break; case "Mississippi": url = "https://driving-tests.org/mississippi/ms-dmv-drivers-handbook-manual/"; break; case "Missouri": url = "https://driving-tests.org/missouri/mo-dor-drivers-handbook-manual/"; break; case "Montana": url = "https://driving-tests.org/montana/mt-dmv-drivers-handbook-manual/"; break; case "Nebraska": url = "https://driving-tests.org/nebraska/ne-dmv-drivers-handbook-manual/"; break; case "Nevada": url = "https://driving-tests.org/nevada/nv-dmv-drivers-handbook-manual/"; break; case "New Hampshire": url = "https://driving-tests.org/new-hampshire/nh-dmv-drivers-handbook-manual/"; break; case "New Jersey": url = "https://driving-tests.org/new-jersey/nj-mvc-drivers-handbook-manual/"; break; case "New Mexico": url = "https://driving-tests.org/new-mexico/nm-mvd-drivers-handbook-manual/"; break; case "New York": url = "https://driving-tests.org/new-york/ny-dmv-drivers-handbook-manual/"; break; case "North Carolina": url = "https://driving-tests.org/north-carolina/nc-dmv-drivers-handbook-manual/"; break; case "North Dakota": url = "https://driving-tests.org/north-dakota/nd-dmv-drivers-handbook-manual/"; break; case "Ohio": url = "https://driving-tests.org/ohio/oh-bmv-drivers-handbook-manual/"; break; case "Oklahoma": url = "https://driving-tests.org/oklahoma/ok-dmv-drivers-handbook-manual/"; break; case "Oregon": url = "https://driving-tests.org/oregon/or-dmv-drivers-handbook-manual/"; break; case "Pennsylvania": url = "https://driving-tests.org/pennsylvania/pa-dot-drivers-handbook-manual/"; break; case "Rhode Island": url = "https://driving-tests.org/rhode-island/ri-dmv-drivers-handbook-manual/"; break; case "South Carolina": url = "https://driving-tests.org/south-carolina/sc-dmv-drivers-handbook-manual/"; break; case "South Dakota": url = "https://driving-tests.org/south-dakota/sd-dmv-drivers-handbook-manual/"; break; case "Tennessee": url = "https://driving-tests.org/tennessee/tn-dmv-drivers-handbook-manual/"; break; case "Texas": url = "https://driving-tests.org/texas/tx-dmv-drivers-handbook-manual/"; break; case "Utah": url = "https://driving-tests.org/utah/ut-dmv-drivers-handbook-manual/"; break; case "Vermont": url = "https://driving-tests.org/vermont/vt-dmv-drivers-handbook-manual/"; break; case "Virginia": url = "https://driving-tests.org/virginia/va-dmv-drivers-handbook-manual/"; break; case "Washington": url = "https://driving-tests.org/washington/wa-dol-drivers-handbook-manual/"; break; case "West Virginia": url = "https://driving-tests.org/west-virginia/wv-dmv-drivers-handbook-manual/"; break; case "Wisconsin": url = "https://driving-tests.org/wisconsin/wi-dmv-drivers-handbook-manual/"; break; case "Wyoming": url = "https://driving-tests.org/wyoming/wy-dmv-drivers-handbook-manual/"; break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public voi...
[ "0.8101937", "0.8101937", "0.80715865", "0.8067969", "0.8067969", "0.8045854", "0.8045854", "0.8045854", "0.8044525", "0.8044457", "0.803459", "0.803459", "0.80322504", "0.8012349", "0.80110997", "0.801041", "0.799324", "0.7973094", "0.79713035", "0.79694265", "0.7965614", ...
0.0
-1
Uri uriUrl = Uri.parse(url); Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
private void goToUrl (String url) { Intent launchWebview = new Intent(this, ManualWebviewActivity.class); launchWebview.putExtra("url", url); startActivity(launchWebview); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }", "public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\...
[ "0.8826536", "0.86430156", "0.8142576", "0.80520153", "0.80460787", "0.8007352", "0.7997946", "0.7997543", "0.7949148", "0.79431385", "0.7835898", "0.78048104", "0.76659936", "0.7590681", "0.74954796", "0.7466064", "0.7441706", "0.7430349", "0.740573", "0.73812526", "0.736786...
0.7310851
25
TODO Autogenerated method stub
@Override public void onServiceConnected(ComponentName name, IBinder service) { Log.d("service", "onServiceConnected() " + name.getClassName()); mMyServ = ((MyService.LocalBinder) service).getService(); }
{ "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 onServiceDisconnected(ComponentName name) { Log.d("service", "onServiceDisconnected()" + name.getClassName()); }
{ "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
JosefCircleSingleLinkedList circleSingleLinkedList = new JosefCircleSingleLinkedList(); circleSingleLinkedList.add(5); circleSingleLinkedList.list(); circleSingleLinkedList.countBoy(1, 2, 5);
public static void main(String[] args) { JosefCirclePractice josefCirclePractice = new JosefCirclePractice(); josefCirclePractice.add(6); josefCirclePractice.show(); josefCirclePractice.countBoy(1, 2, 6); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLinkedList(){\n LinkedListMethods testList = new LinkedListMethods();\n testList.addItem(1);\n testList.addItem(2);\n testList.addItem(3);\n Assertions.assertEquals(3,testList.count());\n\n //Test of deletion of node\n testList.remove( 1);...
[ "0.667932", "0.6672353", "0.6238946", "0.6184373", "0.6033198", "0.59680754", "0.5953159", "0.59437674", "0.5932951", "0.5929314", "0.592416", "0.5909844", "0.58486396", "0.5840291", "0.5834406", "0.5806785", "0.57955825", "0.57909316", "0.57648444", "0.5757479", "0.5725617",...
0.53368396
84
metodo para crear los botones
private void ponerBoton(String rotulo) { JButton boton = new JButton(rotulo); milamina2.add(boton); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void crearBotones() {\n\t\tJButton botonTropa;\n\t\tArrayList<Tropa> tropasJugador = getJuego().getTurnoActual().getJugador().getTropas();\n\t\tint posicion = 0;\n\t\tfor (int i = 0; i < CANTIDADBOTONES; ++i) {\n\t\t\tif (tropasJugador.size() > i && !tropasJugador.get(i).isEnJuego()) {\n\t\t\t\tbotonTropa ...
[ "0.7083733", "0.69310474", "0.65849394", "0.6394617", "0.6314018", "0.62205976", "0.6142983", "0.6099476", "0.60691714", "0.60223615", "0.5984801", "0.5935784", "0.59162974", "0.5878701", "0.5774798", "0.5749573", "0.5709357", "0.56629056", "0.5636707", "0.5604286", "0.559501...
0.0
-1
Since Call is a oneshot type, clone it for each new observer.
@Override protected synchronized void subscribeActual(Observer<? super Response<T>> observer) { Call<T> call = originalCall.clone(); try { for (Annotation annotation : annotations) { if (annotation instanceof Cache) { time = ((Cache) annotation).time(); bindParams = ((Cache) annotation).bindParams(); break; } } MethodFactoryAdapter adapter = new MethodFactoryAdapter(call.request(), bindParams); MethodFactory factory = adapter.get(); HashMap<String, String> parseParameters = factory.parseParameters(); String url = call.request().url().toString(); boolean isFirst = true; StringBuffer buffer = new StringBuffer(); for (HashMap.Entry<String, String> entry : parseParameters.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); if (isFirst) { buffer.append("?").append(key).append("=").append(value); isFirst = false; } else { buffer.append("&").append(key).append("=").append(value); } } String cacheUrl = url + buffer.toString(); long nowTime = System.currentTimeMillis(); fileName = cacheUrl + "&" + nowTime; cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE); String responseCacheData = DiskLruCacheHelper.readCacheToString(cache, cacheUrl); int indexOfTime = responseCacheData.indexOf("\n"); String[] times = responseCacheData.substring(0, indexOfTime).split(":"); responseCacheData = responseCacheData.substring(indexOfTime + 1); long diskCacheTime = Long.parseLong(times[1]); if (!TextUtils.isEmpty(responseCacheData) && diskCacheTime != -1 && nowTime - time <= diskCacheTime) { E e = new Gson().fromJson(responseCacheData, E.class); Response<T> cacheResponse = (Response<T>) Response.success(e); observer.onNext(cacheResponse); } else { cache.delete(); cache = null; } } catch (Exception e) { if (cache != null && !cache.isClosed()) { try { cache.delete(); } catch (IOException e1) { } call = null; } } CallDisposable disposable = new CallDisposable(call); observer.onSubscribe(disposable); boolean terminated = false; try { Response<T> response = call.execute(); E e = (E) response.body(); String responseData = new Gson().toJson(e); if (cache == null) { cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE); } DiskLruCacheHelper.writeStringToCache(cache, responseData, fileName); if (!disposable.isDisposed()) { observer.onNext(response); } if (!disposable.isDisposed()) { terminated = true; observer.onComplete(); } } catch (Throwable t) { Exceptions.throwIfFatal(t); if (terminated) { RxJavaPlugins.onError(t); } else if (!disposable.isDisposed()) { try { observer.onError(t); } catch (Throwable inner) { Exceptions.throwIfFatal(inner); RxJavaPlugins.onError(new CompositeException(t, inner)); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Call<Void> clone() {\n return new HttpCall(httpClient, endpoint, compressionEnabled, encodedSpans);\n }", "public Object clone()\n {\n IObserverList list = new IObserverList();\n \n for ( int i = 0; i < observers.size(); i++ )\n list.observers.addEl...
[ "0.5878624", "0.5760265", "0.53311443", "0.5307777", "0.5275344", "0.52683955", "0.51480603", "0.5122658", "0.5121232", "0.5094709", "0.5093175", "0.5076042", "0.5061288", "0.5038816", "0.5023205", "0.501669", "0.50132596", "0.50110024", "0.50000066", "0.49974555", "0.4983836...
0.57657903
1
Executes calls using the Dodona API.
public interface DodonaExecutor { /** * Executes the given call, synchronously. * * @param call the call to execute * @param indicator the progress indicator * @param <T> return type of the response * @return the response from the call */ @Nonnull <T> T execute(Function<? super DodonaClient, T> call, ProgressIndicator indicator); /** * Executes the given call, asynchronously. * * @param project the project * @param title the dialog title * @param cancellable whether this request can be cancelled * @param indicator the progress indicator * @param call the call to execute * @param <T> return type of the response * @return the response from the call */ @Nonnull <T> DodonaFuture<T> execute(@Nullable Project project, String title, boolean cancellable, ProgressIndicator indicator, Function<? super DodonaClient, ? extends T> call); /** * Executes the given call, asynchronously. * * @param call the call to execute * @param <T> type of the response * @return the response from the call */ @Nonnull <T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "@Nonnull\n\t<T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call);", "public static void operation() {\n try ( QueryExecution qExec = QueryExecutionHTT...
[ "0.6486534", "0.62579775", "0.61372685", "0.5939997", "0.5934713", "0.58958167", "0.5796041", "0.5770591", "0.5696233", "0.56422687", "0.5632211", "0.5534038", "0.54720175", "0.54319954", "0.54208046", "0.5405774", "0.53977007", "0.53355855", "0.5334548", "0.5334548", "0.5334...
0.56694627
9
Executes the given call, synchronously.
@Nonnull <T> T execute(Function<? super DodonaClient, T> call, ProgressIndicator indicator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public <RT> RT doSynchronousCall(final Call<RT> call) {\n try {\n return call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static <T> T executeSync(Call<T> call) {\n try {\n ...
[ "0.73061746", "0.6945751", "0.66940016", "0.6350054", "0.62250704", "0.6061081", "0.60228837", "0.5830823", "0.5677305", "0.56664264", "0.56267476", "0.55781215", "0.55646217", "0.5549782", "0.548686", "0.54237044", "0.54223263", "0.54219145", "0.5405656", "0.53438383", "0.53...
0.530159
22
Executes the given call, asynchronously.
@Nonnull <T> DodonaFuture<T> execute(@Nullable Project project, String title, boolean cancellable, ProgressIndicator indicator, Function<? super DodonaClient, ? extends T> call);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private void synchronousInvokeCallback(Callable call) {\n\n Future future = streamingSlopResults.submit(call);\n\n try {\n future.get();\n\n } catch(InterruptedException e1) {\n\n logger.error(\"Callback failed\", e1);\n thr...
[ "0.6755073", "0.664126", "0.6526205", "0.63575137", "0.6039121", "0.60121703", "0.5945902", "0.5941658", "0.5860679", "0.58405983", "0.5805437", "0.5778082", "0.5664884", "0.56635803", "0.5549722", "0.55362666", "0.5526414", "0.5508626", "0.54783916", "0.5444974", "0.5425729"...
0.0
-1
Executes the given call, asynchronously.
@Nonnull <T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n private void synchronousInvokeCallback(Callable call) {\n\n Future future = streamingSlopResults.submit(call);\n\n try {\n future.get();\n\n } catch(InterruptedException e1) {\n\n logger.error(\"Callback failed\", e1);\n thr...
[ "0.6755073", "0.664126", "0.6526205", "0.63575137", "0.6039121", "0.60121703", "0.5945902", "0.5941658", "0.58405983", "0.5805437", "0.5778082", "0.5664884", "0.56635803", "0.5549722", "0.55362666", "0.5526414", "0.5508626", "0.54783916", "0.5444974", "0.5425729", "0.54248995...
0.5860679
8
Creates a new instance of MyPathResource
public MyPathResource() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Resource createResource();", "Path createPath();", "public <T> Config.Resource<T> toResource(Path path) {\n if (this.exists(path)) {\n return new Config.Resource.Filesystem<>(path);\n }\n return new Config.Resource.NotFound<>(path, this);\n }", "public MyResource() {\n ...
[ "0.70952535", "0.63552356", "0.6269494", "0.6226296", "0.6169349", "0.6167824", "0.61674505", "0.61246586", "0.6105013", "0.6098501", "0.6035784", "0.6031962", "0.602671", "0.60120213", "0.6011082", "0.6002738", "0.598419", "0.59780073", "0.59586775", "0.5955517", "0.59403944...
0.8166594
0
PUT method for updating or creating an instance of MyPathResource
@PUT @Consumes("text/plain") public void putText(String content) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }", "protected ValidatableResponse updateResource(String path, JSONObject newResource) throws JSONException {\n return given()\n .header(HEADER_AUTHORIZATION, authenticated())\n ...
[ "0.6909629", "0.68274903", "0.6424113", "0.62680984", "0.6261661", "0.6191063", "0.6056232", "0.6046694", "0.6037308", "0.59294087", "0.5897472", "0.58626264", "0.5792416", "0.56938547", "0.56673765", "0.5655308", "0.56321985", "0.56165653", "0.5583527", "0.55770266", "0.5561...
0.0
-1
ExStart ExFor:HtmlLoadOptions.ctor ExFor:HtmlLoadOptions.SupportVml ExSummary:Shows how to support conditional comments while loading an HTML document.
@Test (dataProvider = "supportVmlDataProvider") public void supportVml(boolean supportVml) throws Exception { HtmlLoadOptions loadOptions = new HtmlLoadOptions(); // If the value is true, then we take VML code into account while parsing the loaded document. loadOptions.setSupportVml(supportVml); // This document contains a JPEG image within "<!--[if gte vml 1]>" tags, // and a different PNG image within "<![if !vml]>" tags. // If we set the "SupportVml" flag to "true", then Aspose.Words will load the JPEG. // If we set this flag to "false", then Aspose.Words will only load the PNG. Document doc = new Document(getMyDir() + "VML conditional.htm", loadOptions); if (supportVml) Assert.assertEquals(ImageType.JPEG, ((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageType()); else Assert.assertEquals(ImageType.PNG, ((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageType()); //ExEnd Shape imageShape = (Shape)doc.getChild(NodeType.SHAPE, 0, true); if (supportVml) TestUtil.verifyImageInShape(400, 400, ImageType.JPEG, imageShape); else TestUtil.verifyImageInShape(400, 400, ImageType.PNG, imageShape); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags...
[ "0.560362", "0.5515084", "0.5235874", "0.5187604", "0.51788443", "0.51782715", "0.5056567", "0.4943571", "0.48350173", "0.48188233", "0.48153365", "0.47972557", "0.47458586", "0.47389325", "0.47015482", "0.46999922", "0.46944964", "0.46816787", "0.45823303", "0.45606324", "0....
0.58592653
0
JAVAadded data provider for test method
@DataProvider(name = "supportVmlDataProvider") public static Object[][] supportVmlDataProvider() throws Exception { return new Object[][] { {true}, {false}, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider\r\n\t\t public Object[][] getTestData()\r\n\t\t\t{\r\n\t\t\t \r\n\t\t\t\treturn TestUtil.getData(suiteProductDescPageXls,this.getClass().getSimpleName());\r\n\t\t\t}", "@DataProvider(name = \"TestDataMahindra\")\n\tpublic Object[][] amazonProviderMethod() {\n\t\treturn new Object[][] { { \"C...
[ "0.6898096", "0.6889451", "0.6735876", "0.6704479", "0.6684681", "0.6673519", "0.6590674", "0.65790355", "0.6549763", "0.6497317", "0.6469336", "0.64678746", "0.6439686", "0.6429753", "0.6366909", "0.6350328", "0.6343701", "0.6285762", "0.62525785", "0.6213626", "0.6203615", ...
0.0
-1
ExStart ExFor:HtmlLoadOptions.WebRequestTimeout ExSummary:Shows how to set a time limit for web requests when loading a document with external resources linked by URLs.
@Test //ExSkip public void webRequestTimeout() throws Exception { // Create a new HtmlLoadOptions object and verify its timeout threshold for a web request. HtmlLoadOptions options = new HtmlLoadOptions(); // When loading an Html document with resources externally linked by a web address URL, // Aspose.Words will abort web requests that fail to fetch the resources within this time limit, in milliseconds. Assert.assertEquals(100000, options.getWebRequestTimeout()); // Set a WarningCallback that will record all warnings that occur during loading. ListDocumentWarnings warningCallback = new ListDocumentWarnings(); options.setWarningCallback(warningCallback); // Load such a document and verify that a shape with image data has been created. // This linked image will require a web request to load, which will have to complete within our time limit. String html = $"\n <html>\n <img src=\"{ImageUrl}\" alt=\"Aspose logo\" style=\"width:400px;height:400px;\">\n </html>\n "; // Set an unreasonable timeout limit and try load the document again. options.setWebRequestTimeout(0); Document doc = new Document(new MemoryStream(Encoding.getUTF8().getBytes(html)), options); Assert.assertEquals(2, warningCallback.warnings().size()); // A web request that fails to obtain an image within the time limit will still produce an image. // However, the image will be the red 'x' that commonly signifies missing images. Shape imageShape = (Shape)doc.getChild(NodeType.SHAPE, 0, true); Assert.assertEquals(924, imageShape.getImageData().getImageBytes().length); // We can also configure a custom callback to pick up any warnings from timed out web requests. Assert.assertEquals(WarningSource.HTML, warningCallback.warnings().get(0).getSource()); Assert.assertEquals(WarningType.DATA_LOSS, warningCallback.warnings().get(0).getWarningType()); Assert.assertEquals($"Couldn't load a resource from \'{ImageUrl}\'.", warningCallback.warnings().get(0).getDescription()); Assert.assertEquals(WarningSource.HTML, warningCallback.warnings().get(1).getSource()); Assert.assertEquals(WarningType.DATA_LOSS, warningCallback.warnings().get(1).getWarningType()); Assert.assertEquals("Image has been replaced with a placeholder.", warningCallback.warnings().get(1).getDescription()); doc.save(getArtifactsDir() + "HtmlLoadOptions.WebRequestTimeout.docx"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void pageLoadTimeout()\n {\n\n driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n driver.get(\"https://www.google.com/\");\n\n /*\n In the code above, if your page does not load within 30 seconds, WebDriverException will be thrown.\n\n Seleni...
[ "0.5939669", "0.54019123", "0.53313637", "0.53205955", "0.5288206", "0.5228548", "0.5169568", "0.5115598", "0.51074207", "0.5092369", "0.5090142", "0.5083667", "0.50599813", "0.50539553", "0.50506395", "0.5049815", "0.5011012", "0.50077623", "0.49664122", "0.4912552", "0.4906...
0.7471022
0
ExStart ExFor:HtmlLoadOptions.ctor(LoadFormat,String,String) ExFor:LoadOptions.ctor(LoadFormat, String, String) ExFor:LoadOptions.LoadFormat ExFor:LoadFormat ExSummary:Shows how to specify a base URI when opening an html document. Suppose we want to load an .html document that contains an image linked by a relative URI while the image is in a different location. In that case, we will need to resolve the relative URI into an absolute one. We can provide a base URI using an HtmlLoadOptions object.
@Test public void baseUri() throws Exception { HtmlLoadOptions loadOptions = new HtmlLoadOptions(LoadFormat.HTML, "", getImageDir()); Assert.assertEquals(LoadFormat.HTML, loadOptions.getLoadFormat()); Document doc = new Document(getMyDir() + "Missing image.html", loadOptions); // While the image was broken in the input .html, our custom base URI helped us repair the link. Shape imageShape = (Shape)doc.getChildNodes(NodeType.SHAPE, true).get(0); Assert.assertTrue(imageShape.isImage()); // This output document will display the image that was missing. doc.save(getArtifactsDir() + "HtmlLoadOptions.BaseUri.docx"); //ExEnd doc = new Document(getArtifactsDir() + "HtmlLoadOptions.BaseUri.docx"); Assert.assertTrue(((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageBytes().length > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "public HTMLFile (URL url) {\n this.inFile = null;\n inURL = url;\n inName = url.toString();\n commonConstruction();\n }", "void setBaseUri(String baseUri);", "public AdmClientePreferencialHTML() {\n/* 191 */ ...
[ "0.54902816", "0.5450354", "0.53971446", "0.53868955", "0.52427936", "0.52204436", "0.5218899", "0.52121705", "0.5183884", "0.51703084", "0.5168762", "0.5152381", "0.51185036", "0.5106206", "0.5075833", "0.5068102", "0.501061", "0.50007546", "0.49977365", "0.49710536", "0.495...
0.74619627
0
ExStart ExFor:HtmlLoadOptions.PreferredControlType ExSummary:Shows how to set preferred type of document nodes that will represent imported and elements.
@Test public void getSelectAsSdt() throws Exception { final String HTML = "\n <html>\n <select name='ComboBox' size='1'>\n <option value='val1'>item1</option>\n <option value='val2'></option> \n </select>\n </html>\n "; HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions(); htmlLoadOptions.setPreferredControlType(HtmlControlType.STRUCTURED_DOCUMENT_TAG); Document doc = new Document(new MemoryStream(Encoding.getUTF8().getBytes(HTML)), htmlLoadOptions); NodeCollection nodes = doc.getChildNodes(NodeType.STRUCTURED_DOCUMENT_TAG, true); StructuredDocumentTag tag = (StructuredDocumentTag) nodes.get(0); //ExEnd Assert.assertEquals(2, tag.getListItems().getCount()); Assert.assertEquals("val1", tag.getListItems().get(0).getValue()); Assert.assertEquals("val2", tag.getListItems().get(1).getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPreferredType(String preferredType){\n m_preferredType = preferredType;\n }", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "void xsetControlType(org.landxml.schema.landXML11.TrafficControlType controlType);", "public void setDocumentType (...
[ "0.5644197", "0.53338015", "0.5265263", "0.51637197", "0.5122417", "0.50474924", "0.5044786", "0.49813607", "0.49802667", "0.4975232", "0.49676928", "0.4954692", "0.48199132", "0.48168898", "0.4796957", "0.47726518", "0.47675943", "0.47622868", "0.4734271", "0.4702178", "0.47...
0.41619596
96
ExStart ExFor:HtmlLoadOptions.IgnoreNoscriptElements ExSummary:Shows how to ignore HTML elements.
@Test (dataProvider = "ignoreNoscriptElementsDataProvider") public void ignoreNoscriptElements(boolean ignoreNoscriptElements) throws Exception { final String HTML = "\n <html>\n <head>\n <title>NOSCRIPT</title>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n <script type=\"text/javascript\">\n alert(\"Hello, world!\");\n </script>\n </head>\n <body>\n <noscript><p>Your browser does not support JavaScript!</p></noscript>\n </body>\n </html>"; HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions(); htmlLoadOptions.setIgnoreNoscriptElements(ignoreNoscriptElements); Document doc = new Document(new MemoryStream(Encoding.getUTF8().getBytes(HTML)), htmlLoadOptions); doc.save(getArtifactsDir() + "HtmlLoadOptions.IgnoreNoscriptElements.pdf"); //ExEnd Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(getArtifactsDir() + "HtmlLoadOptions.IgnoreNoscriptElements.pdf"); TextAbsorber textAbsorber = new TextAbsorber(); textAbsorber.Visit(pdfDoc); Assert.AreEqual(ignoreNoscriptElements ? "" : "Your browser does not support JavaScript!", textAbsorber.Text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider(name = \"ignoreNoscriptElementsDataProvider\")\r\n\tpublic static Object[][] ignoreNoscriptElementsDataProvider() throws Exception\r\n\t{\r\n\t\treturn new Object[][]\r\n\t\t{\r\n\t\t\t{true},\r\n\t\t\t{false},\r\n\t\t};\r\n\t}", "public void setIdxSearchNoHtml(boolean idxSearchNoHtml) {\n P...
[ "0.641789", "0.5617784", "0.54418474", "0.5300294", "0.5255939", "0.5251305", "0.51277435", "0.5096707", "0.508545", "0.508006", "0.5044368", "0.50032187", "0.49815702", "0.49500567", "0.49404624", "0.49152505", "0.49036393", "0.48965642", "0.48953396", "0.48535538", "0.47695...
0.81806076
0
JAVAadded data provider for test method
@DataProvider(name = "ignoreNoscriptElementsDataProvider") public static Object[][] ignoreNoscriptElementsDataProvider() throws Exception { return new Object[][] { {true}, {false}, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider\r\n\t\t public Object[][] getTestData()\r\n\t\t\t{\r\n\t\t\t \r\n\t\t\t\treturn TestUtil.getData(suiteProductDescPageXls,this.getClass().getSimpleName());\r\n\t\t\t}", "@DataProvider(name = \"TestDataMahindra\")\n\tpublic Object[][] amazonProviderMethod() {\n\t\treturn new Object[][] { { \"C...
[ "0.6898096", "0.6889451", "0.6735876", "0.6704479", "0.6684681", "0.6673519", "0.6590674", "0.65790355", "0.6549763", "0.6497317", "0.6469336", "0.64678746", "0.6439686", "0.6429753", "0.6366909", "0.6350328", "0.6343701", "0.6285762", "0.62525785", "0.6213626", "0.6203615", ...
0.0
-1
ExStart ExFor:HtmlLoadOptions.BlockImportMode ExFor:BlockImportMode ExSummary:Shows how properties of blocklevel elements are imported from HTMLbased documents.
@Test (dataProvider = "blockImportDataProvider") public void blockImport(/*BlockImportMode*/int blockImportMode) throws Exception { final String HTML = "\n <html>\n <div style='border:dotted'>\n <div style='border:solid'>\n <p>paragraph 1</p>\n <p>paragraph 2</p>\n </div>\n </div>\n </html>"; MemoryStream stream = new MemoryStream(Encoding.getUTF8().getBytes(HTML)); HtmlLoadOptions loadOptions = new HtmlLoadOptions(); // Set the new mode of import HTML block-level elements. loadOptions.setBlockImportMode(blockImportMode); Document doc = new Document(stream, loadOptions); doc.save(getArtifactsDir() + "HtmlLoadOptions.BlockImport.docx"); //ExEnd }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HTMLBlock parse () throws HTMLParseException {\r\n block = new HTMLBlock (pagepart, length);\r\n nextToken = START;\r\n match (START);\r\n page ();\r\n\r\n return block;\r\n }", "@DataProvider(name = \"blockImportDataProvider\")\r\n\tpublic static Object[][] blockImp...
[ "0.5411708", "0.5154087", "0.49411237", "0.4879486", "0.48662022", "0.4806047", "0.4780296", "0.47273478", "0.4721336", "0.47065926", "0.46461958", "0.4635939", "0.46200696", "0.46110645", "0.4590215", "0.45746997", "0.4553526", "0.45489812", "0.45445338", "0.45445338", "0.45...
0.8427594
0
JAVAadded data provider for test method
@DataProvider(name = "blockImportDataProvider") public static Object[][] blockImportDataProvider() throws Exception { return new Object[][] { {BlockImportMode.PRESERVE}, {BlockImportMode.MERGE}, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DataProvider\r\n\t\t public Object[][] getTestData()\r\n\t\t\t{\r\n\t\t\t \r\n\t\t\t\treturn TestUtil.getData(suiteProductDescPageXls,this.getClass().getSimpleName());\r\n\t\t\t}", "@DataProvider(name = \"TestDataMahindra\")\n\tpublic Object[][] amazonProviderMethod() {\n\t\treturn new Object[][] { { \"C...
[ "0.6898096", "0.6889451", "0.6735876", "0.6704479", "0.6684681", "0.6673519", "0.6590674", "0.65790355", "0.6549763", "0.6497317", "0.6469336", "0.64678746", "0.6439686", "0.6429753", "0.6366909", "0.6350328", "0.6343701", "0.6285762", "0.62525785", "0.6213626", "0.6203615", ...
0.0
-1
/ Create an array list of words. Remove every word that ends with "e". Use iterator
public static void main(String[] args) { ArrayList<String> word = new ArrayList<String>(); word.add("Phone"); word.add("Elite"); word.add("Hi"); word.add("Hello"); Iterator<String> iterator = word.iterator(); while (iterator.hasNext()) { String word1 = iterator.next(); if (word1.endsWith("e")) { iterator.remove(); } } System.out.println(word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeWord(String wordToBeRemoved) {\n int index = 0;\n String[] result = new String[wordsArray.length];\n for (int i = 0; i < wordsArray.length; i++) {\n if (!wordsArray[i].equals( wordToBeRemoved)){\n result[index]= wordsArray[i];\n ...
[ "0.6314073", "0.627023", "0.6085943", "0.58879757", "0.5875389", "0.58605903", "0.5815171", "0.5723511", "0.57172143", "0.5699037", "0.5684371", "0.56804985", "0.5635946", "0.5623031", "0.56201184", "0.5601839", "0.55844843", "0.55756694", "0.5524273", "0.55095506", "0.549370...
0.73095834
0
Sets the jdbc template.
public void setJdbcTemplate(JdbcTemplate jdbcTemplate) { this.jdbcTemplate = jdbcTemplate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTemplate(JdbcTemplate template) {\n\t\tthis.template = template;\n\t}", "public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }", "public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {\r\n this.jdbcTemplate = jdbcTemplate;\r\n }", ...
[ "0.7697338", "0.73104715", "0.7304766", "0.71978843", "0.66961354", "0.6395281", "0.6390888", "0.62015", "0.6173883", "0.6021898", "0.5990598", "0.5974418", "0.59674317", "0.5957551", "0.5890383", "0.58511555", "0.58078504", "0.5788077", "0.5788077", "0.5788077", "0.5788077",...
0.7197068
5
TODO Autogenerated method stub
@Override public boolean onKey(DialogInterface arg0, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { dismiss(); } return true; }
{ "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 with IntelliJ IDEA. User: Mateusz Date: 01.12.12 Time: 16:42 To change this template use File | Settings | File Templates.
public interface IConverter<T, S> { public T convert(S input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public static void generateCode()\n {\n \n }", "public void mo38117a() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo21785J()...
[ "0.6028108", "0.60051477", "0.5801164", "0.57010317", "0.569218", "0.56602734", "0.5659311", "0.5641426", "0.56252706", "0.5622279", "0.5600864", "0.5600577", "0.55964416", "0.5593453", "0.5590116", "0.5576935", "0.5570465", "0.5569811", "0.5569811", "0.5569546", "0.5548318",...
0.0
-1
Get customer by id
public static Customer getCustomer(int id_cust) { Connection c = connection(); PreparedStatement stmt; int id = 0; String name = null; String email = null; String password = null; Customer customer = null; try { String sql = "SELECT * FROM customer WHERE id=?;"; stmt = c.prepareStatement(sql); stmt.setInt(1, id_cust); ResultSet rs = stmt.executeQuery(); while (rs.next()) { id = rs.getInt("id"); name = rs.getString("name"); email = rs.getString("email"); password = rs.getString("password"); } stmt.close(); c.close(); customer = new Customer(id, name, email, password); } catch (SQLException e) { e.printStackTrace(); } return customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomerById(final Long id);", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId(...
[ "0.89494705", "0.8442947", "0.8371338", "0.83413076", "0.82874006", "0.8281708", "0.8266995", "0.8228515", "0.8222998", "0.81798637", "0.81181437", "0.8088721", "0.8081348", "0.8065338", "0.80638766", "0.80450994", "0.79918003", "0.7902995", "0.7881618", "0.78489804", "0.7828...
0.8241541
7
syntax: ArrayList variable = new ArrayList (); /ArrayList number = new ArrayList (); number.add(1); number.add(2); number.add(3); number.add(4); System.out.println(number); number.remove(2); System.out.println(number); System.out.println(number.get(1)); System.out.println(number.size());
public static void main(String[] args) { ArrayList <String> cars = new ArrayList <String>(); cars.add("Nissan"); cars.add("Mustang"); cars.add("BMW"); cars.add("Merc.Benz"); cars.add("Honda"); cars.add("Toyota"); System.out.println(cars); // System.out.println(cars.size());//here I use size method to get ArrayList size // System.out.println(cars.remove(1)); cars.set(0, "Jaguar"); System.out.println(cars.set(0, "Jaguar")); // System.out.println(cars); // System.out.println(cars.get(2));// here I use get method to get that index element /* cars.remove(3);//here I use remove method to remove an item from ArrayList System.out.println(cars); cars.add("Lexus");*/ //first to last element print /* for (int j=0;j<cars.size();j++) { System.out.println(cars.get(j)); } System.out.println(cars.size()); cars.set(0,"Jaguar"); System.out.println(cars); //last to first element print for (int k=cars.size()-1;k>=0;k--) { System.out.println(cars.get(k)); } /* ArrayList <Integer> even = new ArrayList <Integer>(); even.add(2); even.add(4); even.add(6); even.add(8); even.add(10); System.out.println(even.get(4)); System.out.println(even); //access an item System.out.println(even.get(1)); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n\n arrayList.add(1);\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(5);\n\n\n System.out.println(arrayList);\n System.out.println(arrayList.remove(1));\n Sy...
[ "0.7280602", "0.7031026", "0.6937264", "0.668906", "0.6534294", "0.65323216", "0.64624923", "0.6447063", "0.6442045", "0.6417172", "0.636269", "0.6319776", "0.630815", "0.6268022", "0.6264073", "0.62634146", "0.6252898", "0.622093", "0.6212877", "0.61801064", "0.61780316", ...
0.62118673
19
Construtor de um VisualizarEncontroDTO
public VisualizarEncontroDTO(String desigTorneio, Calendar dataInicio, JogadorDTO jogador, JogadorDTO advers, int qtdEncontros) { this.designacaoTorneio = desigTorneio; this.dataInicio = convertCalendarToString(dataInicio); this.jogadorCorrente = jogador; this.jogadorAdversario = advers; this.qtdEncontros = qtdEncontros; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CambioComplementariosDTO() { }", "public ViviendaDTO(ViviendaEntity entity, String condicion)\r\n {\r\n if (entity!=null){\r\n this.idVivienda=entity.getIdVivienda();\r\n this.ciudad=entity.getCiudad();\r\n this.descripcion=entity.getDescripcion();\r\n ...
[ "0.7308356", "0.67513055", "0.66660386", "0.6629481", "0.64716923", "0.63550985", "0.633731", "0.6328312", "0.62644947", "0.61745733", "0.6108937", "0.60933", "0.59819365", "0.5937772", "0.59203434", "0.5920256", "0.5783212", "0.5780648", "0.57555014", "0.574266", "0.5734145"...
0.64699525
5
Funcao que constroi a mensagem para ser visualizada pelo utilizador
@Override public String toString() { StringBuilder sb = new StringBuilder(); String dataInicioFormatada = this.dataInicio; sb.append(this.designacaoTorneio + " | "); sb.append(dataInicioFormatada + " | "); sb.append(this.jogadorAdversario.getNome() + "\t| "); sb.append(this.qtdEncontros + " | "); double diferenca = jogadorCorrente.getPontos() - this.jogadorAdversario.getPontos(); if (diferenca < 0.0) sb.append((Math.round(diferenca * 100) / 100.0) + "\n"); else sb.append("+" + (Math.round(diferenca * 100) / 100.0)); if (sb.length() == 0) sb.append(VisualizarEncontroDTO.NAO_EXISTEM_CONFRONTOS); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayMsg() {\n\t}", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "int displayNotification(Message message);", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\...
[ "0.6936928", "0.67331266", "0.66823345", "0.6653135", "0.6611584", "0.66060984", "0.6591159", "0.6578015", "0.6556274", "0.6556274", "0.65511423", "0.65334654", "0.65213805", "0.6493742", "0.64862543", "0.64862543", "0.64862543", "0.646923", "0.6440215", "0.6432407", "0.64230...
0.0
-1
Realiza a comparacao entre dois VisualizarEncontroDTO. O fator decisivo corresponde ah data de inicio de um torneio
public static Comparator<VisualizarEncontroDTO> comparator() { return (d1,d2) -> d1.dataInicio.compareTo(d2.dataInicio); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int compareTo(TaxaConhecimentoDto o) {\n\t\treturn valor.compareTo(o.getValor());\n\t}", "@Override\n\tpublic List<EntidadeDominio> VisualizarInativos(EntidadeDominio entidade) {\n\t\tPreparedStatement pst = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM l...
[ "0.62353337", "0.611329", "0.5796022", "0.57286435", "0.5693362", "0.56348044", "0.56120443", "0.5610313", "0.5586814", "0.5564145", "0.5542382", "0.5535062", "0.55139035", "0.55116284", "0.5508282", "0.550035", "0.5498976", "0.5485917", "0.54783416", "0.5453056", "0.5441317"...
0.7553593
0
verifier si il peut bien seplacer sur les terrain
public void seDeplacer(int x , int y) { if(this.coordoneX - x <= this.porteDeplacement || this.coordoneY - y <= this.porteDeplacement) { this.coordoneX = x; this.coordoneY = y; } else { throw new IllegalArgumentException("Deplacement impossible") ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLo...
[ "0.67157185", "0.6526112", "0.637653", "0.62449485", "0.62042594", "0.61600447", "0.5952476", "0.58632505", "0.58615965", "0.585828", "0.58440024", "0.57924026", "0.57398224", "0.5732406", "0.5709325", "0.5692342", "0.5685724", "0.5672054", "0.566784", "0.5658531", "0.5651509...
0.0
-1
simulate sync call via async messaging
public static void doClientMessageSend() { final String correlationId = "ABC123"; Message toSend = new Message("query message to server", correlationId); MessagingSystemInfo messagingSystemInfo = oneAgentSDK.createMessagingSystemInfo("myCreativeMessagingSystem", "theOnlyQueue", MessageDestinationType.QUEUE, ChannelType.TCP_IP, "localhost:4711"); // sending the request: { OutgoingMessageTracer outgoingMessageTracer = oneAgentSDK.traceOutgoingMessage(messagingSystemInfo); outgoingMessageTracer.start(); try { // transport the Dynatrace tag along with the message to allow the outgoing message tracer to be linked // with the message processing tracer on the receiving side toSend.setHeaderField(OneAgentSDK.DYNATRACE_MESSAGE_PROPERTYNAME, outgoingMessageTracer.getDynatraceStringTag()); theQueue.send(toSend); outgoingMessageTracer.setVendorMessageId(toSend.getMessageId()); // optional payload outgoingMessageTracer.setCorrelationId(toSend.correlationId); } catch (Exception e) { outgoingMessageTracer.error(e.getMessage()); } finally { outgoingMessageTracer.end(); } } // waiting for server response message: { IncomingMessageReceiveTracer receivingMessageTracer = oneAgentSDK.traceIncomingMessageReceive(messagingSystemInfo); receivingMessageTracer.start(); try { Message answer = theQueue.receive(correlationId); IncomingMessageProcessTracer processMessageTracer = oneAgentSDK.traceIncomingMessageProcess(messagingSystemInfo); // retrieve Dynatrace tag created using the outgoing message tracer to link both sides together processMessageTracer.setDynatraceStringTag(answer.getHeaderField(OneAgentSDK.DYNATRACE_MESSAGE_PROPERTYNAME)); processMessageTracer.setVendorMessageId(answer.msgId); processMessageTracer.setCorrelationId(answer.correlationId); processMessageTracer.start(); try { // handle answer message in sync way ... } catch (Exception e) { processMessageTracer.error(e.getMessage()); } finally { processMessageTracer.end(); } } catch (Exception e) { receivingMessageTracer.error(e.getMessage()); } finally { receivingMessageTracer.end(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void callSync() {\n\n }", "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.544 -0500\", hash_original_method = \"42BD69B2114459AD691B3AEBDAE73546\", hash_generated_method = \"C285A4D23...
[ "0.7601131", "0.6696006", "0.6681235", "0.6680146", "0.666935", "0.66431236", "0.6536787", "0.6460964", "0.63810176", "0.6224618", "0.6188929", "0.61887765", "0.61607313", "0.60970026", "0.6041783", "0.60347134", "0.597338", "0.59320295", "0.5853219", "0.58488345", "0.5829133...
0.0
-1
Create an input based on the provide sync set. The input is not initialized until prepareInput is called.
public HierarchicalModelProvider(ISynchronizePageConfiguration configuration, SyncInfoTree set) { super(configuration, set); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract BasicInput createInput( boolean isSeq ) throws IOException;", "INPUT createINPUT();", "Input createInput();", "protected Object getInitialInput() {\n return this;\n }", "private ConversationInputManager initNewInputManager(final Bundle savedState) {\n Mockito.when(mockConve...
[ "0.6090266", "0.5999262", "0.5989086", "0.5887627", "0.54990363", "0.542836", "0.5340888", "0.5241658", "0.5212821", "0.52107084", "0.51169115", "0.51113784", "0.50668263", "0.49938747", "0.49919844", "0.4975674", "0.49741104", "0.4953343", "0.49528134", "0.49320453", "0.4866...
0.0
-1
Invoked by the buildModelObject method to create the childen of the given node. This method can be overriden by subclasses but subclasses should inv
protected IDiffElement[] createModelObjects(ISynchronizeModelElement container) { IResource resource = null; if (container == getModelRoot()) { resource = ResourcesPlugin.getWorkspace().getRoot(); } else { resource = container.getResource(); } if(resource != null) { SyncInfoTree infoTree = getSyncInfoTree(); IResource[] children = infoTree.members(resource); ISynchronizeModelElement[] nodes = new ISynchronizeModelElement[children.length]; for (int i = 0; i < children.length; i++) { nodes[i] = createModelObject(container, children[i]); } return nodes; } return new IDiffElement[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected CodeSyncElement createModelElementChild(EObject object, View child) {\n\t\treturn null;\r\n\t}", "public ChildNode() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atrib...
[ "0.6423461", "0.63728446", "0.6255162", "0.6173931", "0.61155367", "0.61047435", "0.60987586", "0.6035795", "0.5997999", "0.59933424", "0.5986244", "0.59442353", "0.591168", "0.58929545", "0.5888031", "0.58670855", "0.5854566", "0.5825295", "0.5816837", "0.5809507", "0.574612...
0.0
-1
Invokes getModelObject(Object) on an array of resources.
protected Object[] getModelObjects(IResource[] resources) { Object[] result = new Object[resources.length]; for (int i = 0; i < resources.length; i++) { result[i] = getModelObject(resources[i]); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void refresh(BaseModel... objects);", "Collection<T> getSimpleModelObjects();", "public List<ModelObject> readAll();", "void refresh(Collection<? extends BaseModel> objects);", "public Object getModel();", "public void updateResources(List<Resource> resources) {\n\t\t\n\t}", "private void updateResourc...
[ "0.5629575", "0.5457408", "0.5248155", "0.49968198", "0.49952582", "0.49349293", "0.48831365", "0.47990683", "0.47946152", "0.4776659", "0.47701678", "0.47625342", "0.47294128", "0.46930385", "0.46922556", "0.46876758", "0.46850467", "0.4651032", "0.46255147", "0.46049803", "...
0.73804045
0
Handle the change for the existing diff node. The diff node should be changed to have the given sync info
protected void handleChange(ISynchronizeModelElement diffNode, SyncInfo info) { IResource local = info.getLocal(); if(diffNode instanceof SyncInfoModelElement) { ((SyncInfoModelElement)diffNode).update(info); propogateConflictState(diffNode, false); } else { removeFromViewer(local); addResources(new IResource[] {local}); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changedUpdate(DocumentEvent evt, FoldHierarchyTransaction transaction) {\n }", "@Override\n public void changed( Change change ) {\n if ( !( change.isSelected()\n && change.isForInstanceOf( Node.class )\n && change.isForProperty( \"other\" ) ) ) {\n ...
[ "0.53727436", "0.5262782", "0.52478355", "0.5237124", "0.51610076", "0.50909334", "0.5074281", "0.50588137", "0.50199693", "0.49844164", "0.4981827", "0.49758306", "0.49731362", "0.49147758", "0.49070546", "0.49039954", "0.4900255", "0.48640972", "0.4857249", "0.48546973", "0...
0.77674276
0
bla bla / B u fjjfodjfkl other comment
public static void main(String[] args) { String file = System.getProperty("user.dir") + "\\src\\" + TaskB.class.getName().replace(".", File.separator); String fileIn = file + ".java"; String fileOut = file + ".txt"; StringBuilder convert = new StringBuilder(); try (BufferedReader reader = new BufferedReader( new FileReader(fileIn))) { Boolean commentOne = false; Boolean commentTwo = false; String chars = ""; // text while (reader.ready()) { if (reader.ready()) { char currchar = (char) reader.read(); chars = chars + currchar; if (chars.equals("/" + "*")) { commentOne = true; commentTwo = true; convert.deleteCharAt(convert.length() - 1); } if (chars.equals("/" + "/")) { commentOne = true; commentTwo = false; convert.deleteCharAt(convert.length() - 1); } // text if (!commentOne) { convert.append(chars.substring(chars.length() - 1)); } if (chars.equals("\r\n") && commentOne && !commentTwo) { commentOne = false; commentTwo = false; convert.append(chars); } if (chars.equals("*" + "/") && commentOne && commentTwo) { commentOne = false; commentTwo = false; } chars = Character.toString(currchar); } /* may be the end */ } PrintWriter out = new PrintWriter(new FileWriter(fileOut)); System.out.print(convert); out.print(convert); out.close(); } catch (IOException e) { e.printStackTrace(); // the end! } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "public void comment(String data);", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "String getComment();", "String getComment();", "@Override\n public void comment(String comment)\n {\n }", "@Test\n public void comm...
[ "0.6804638", "0.67331415", "0.6700881", "0.6633742", "0.6633742", "0.6574014", "0.64414144", "0.6429277", "0.6304188", "0.6304188", "0.6304188", "0.6304188", "0.6304188", "0.6304188", "0.6295472", "0.62078077", "0.6070951", "0.60426843", "0.6026894", "0.60188085", "0.60174435...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_drug_small, container, false); //Toolbar toolbar = (Toolbar)view.findViewById(R.id.toolbar); //context.setSupportActionBar(toolbar); //initialize view Model searchview=view.findViewById(R.id.drug_searchView); tabLayout = view.findViewById(R.id.dr_tablayout); drugsViewModel = ViewModelProviders.of(this).get(DrugsViewModel.class); drugsViewModel.loadDrugs(pageNumber); initRecyclerView(view); subscribeToLiveData(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static HomeFragment newInstance(String param1, String param2) { HomeFragment fragment = new HomeFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { homeBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_home, container, false); // homeBinding.recyclerCategories.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false)); homeBinding.recyclerCategories.setHasFixedSize(true); homeBinding.recyclerPopularProducts.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false)); homeBinding.recyclerPopularProducts.setHasFixedSize(true); homeBinding.recyclerFeaturedProducts.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false)); homeBinding.recyclerCategories.setHasFixedSize(true); setValuesToFields(); getCategories(); getOffers(); getfeaturedProduct(); return homeBinding.getRoot(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
/ 7: / 8:
public OreStack(String mat, int qty) /* 9: */ { /* 10: 8 */ this.material = mat; /* 11: 9 */ this.quantity = qty; /* 12: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void level7() {\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "static void q8(){\t\n\t}", "static void q7(){\n\t}", "@Override\n\tpublic void challenge8() {\n\n\t}", "Main8(int a) {\n\t\tSystem.out.println(a);\n\t}", "@Override\n\tpublic void challenge9() {\n\n\t}", "static void ...
[ "0.6112501", "0.5765348", "0.5754567", "0.5618992", "0.558371", "0.5521559", "0.5421944", "0.54056245", "0.53499883", "0.5333221", "0.5322564", "0.53118336", "0.5273209", "0.5266734", "0.5266708", "0.5263158", "0.52528614", "0.52270573", "0.52151495", "0.52148783", "0.5200791...
0.0
-1
/ 13: / 14:
public OreStack(String mat) /* 15: */ { /* 16:13 */ this.material = mat; /* 17:14 */ this.quantity = 1; /* 18: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String mo3406c() {\n return \"Minute\";\n }", "void mo1506m();", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n ...
[ "0.5861009", "0.560535", "0.55880255", "0.5547447", "0.5442537", "0.54270667", "0.538788", "0.53654134", "0.5361993", "0.53346646", "0.5329271", "0.5307483", "0.5293754", "0.5272947", "0.5271207", "0.5261985", "0.5242313", "0.5226949", "0.5219455", "0.5212481", "0.52042395", ...
0.0
-1
Task failed with an exception
@Override public void onFailure(@NonNull Exception e) { e.printStackTrace(); Toast.makeText(context, "Image process failed", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onTaskFail() {\n\t\t\n\t}", "public static void handleInvalidTaskException() {\n System.out.println(\"\\tSorry sir, no such task was found in the list.\");\n Duke.jarvis.printDivider();\n }", "@Override\n public void onResponse(PersistentTasksCustomMetadata....
[ "0.78459567", "0.6872242", "0.6851851", "0.6750427", "0.6687407", "0.66295356", "0.66264623", "0.6602331", "0.65632164", "0.64615905", "0.64329576", "0.64329576", "0.6359681", "0.63189656", "0.6317757", "0.62705", "0.62427694", "0.6220895", "0.62054527", "0.6190558", "0.61758...
0.0
-1
TODO Analyze the text will probably work only in English How is it working? More info about android implementation: Use logs to print data into the log the objective is to fill up the receipt object with data
private void analyzeResult(final FirebaseVisionText firebaseVisionText, final Receipt receipt) { new AsyncTask<String, Boolean, Boolean>() { @Override protected Boolean doInBackground(String... strings) { String resultText = firebaseVisionText.getText(); Log.d(TAG, "All text: " + resultText); System.out.println("All text: " + resultText); receipt.setReceiptName(""); receipt.setAllData(resultText.toLowerCase()); for (FirebaseVisionText.TextBlock block : firebaseVisionText.getTextBlocks()) { String blockText = block.getText(); Float blockConfidence = block.getConfidence(); List<RecognizedLanguage> blockLanguages = block.getRecognizedLanguages(); Point[] blockCornerPoints = block.getCornerPoints(); Rect blockFrame = block.getBoundingBox(); for (FirebaseVisionText.Line line : block.getLines()) { String lineText = line.getText(); Float lineConfidence = line.getConfidence(); List<RecognizedLanguage> lineLanguages = line.getRecognizedLanguages(); Point[] lineCornerPoints = line.getCornerPoints(); Rect lineFrame = line.getBoundingBox(); searchInLineResult(receipt, line); for (FirebaseVisionText.Element element : line.getElements()) { String elementText = element.getText(); Float elementConfidence = element.getConfidence(); List<RecognizedLanguage> eƒlementLanguages = element.getRecognizedLanguages(); Point[] elementCornerPoints = element.getCornerPoints(); Rect elementFrame = element.getBoundingBox(); searchInElementResult(receipt, element); } } } return null; } @Override protected void onPostExecute(Boolean aBoolean) { Log.d(TAG, "Receipt: " + receipt.toString()); callback.onAnalyzeDone(true, receipt); } }.execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printReceipt(){\n\t\t//TO DO\n\t\t\n\t}", "private static void displayReceipt()\r\n\t{\r\n\t\tSystem.out.println(\"__________________________________________________________\");\r\n\t\tSystem.out.println(\"Receipt \");\r\n\t\tSystem.out.println(\"____...
[ "0.6816269", "0.66755354", "0.66014963", "0.63235676", "0.6307949", "0.6251374", "0.6176009", "0.6167995", "0.6155773", "0.61064446", "0.60918546", "0.5992662", "0.5933184", "0.5931003", "0.59009546", "0.5899459", "0.588998", "0.5865942", "0.58512825", "0.5809473", "0.580242"...
0.0
-1
TODO Autogenerated method stub
@Override public String getColumnName(int col) { return columnNames.get(col); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int getColumnCount() { return columnNames.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int getRowCount() { return rowData.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Object getValueAt(int rowIndex, int colIndex) { return rowData.get(rowIndex).get(colIndex); }
{ "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
This method must be called before you request the EntityManagerFactory
@BeforeAll public static void setUpClass() { EMF_Creator.startREST_TestWithDB(); emf = EMF_Creator.createEntityManagerFactoryForTest(); httpServer = startServer(); //Setup RestAssured RestAssured.baseURI = SERVER_URL; RestAssured.port = SERVER_PORT; RestAssured.defaultParser = Parser.JSON; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract EntityManagerFactory getEntityManagerFactory();", "@Override\n\tpublic EntityManagerFactory getEntityManagerFactory() {\n\t\treturn null;\n\t}", "private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\...
[ "0.76307774", "0.74729913", "0.74309415", "0.7388223", "0.73720205", "0.73687845", "0.73190546", "0.731202", "0.7301665", "0.72729874", "0.7248969", "0.72398734", "0.72398734", "0.7238956", "0.72032505", "0.71972483", "0.7189136", "0.70672834", "0.70152205", "0.6960958", "0.6...
0.0
-1
Setup the DataBase (used by the testserver and this test) in a known state BEFORE EACH TEST TODO Make sure to change the EntityClass used below to use YOUR OWN (renamed) Entity class
@BeforeEach public void setUp() { EntityManager em = emf.createEntityManager(); car1 = new Car("1997", "Ford", "E350",3000, new Date(), "Daniel"); car2 = new Car("1999", "Chevy", "Venture", 4900, new Date(), "Emil"); car3 = new Car("2000", "Chevy", "Venture", 5000, new Date(), "Jimmy"); car4 = new Car("1996", "Jeep", "Grand Cherokee", 4799, new Date(), "Jannich"); try { em.getTransaction().begin(); em.createNamedQuery("Car.deleteAllRows").executeUpdate(); em.createNativeQuery("ALTER TABLE CAR AUTO_INCREMENT = 1").executeUpdate(); em.persist(car1); em.persist(car2); em.persist(car3); em.persist(car4); em.getTransaction().commit(); } finally { em.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeClass\n public static void initTestFixture() throws Exception {\n entityManagerFactory = Persistence.createEntityManagerFactory(\"test\");\n entityManager = entityManagerFactory.createEntityManager();\n }", "@BeforeClass\n\tpublic static void setUpBeforeClass() throws Exception {\n\t\t...
[ "0.75621784", "0.749643", "0.7473466", "0.74296975", "0.73995805", "0.73755413", "0.73720366", "0.73221266", "0.72915864", "0.72822535", "0.7273213", "0.72707325", "0.7234612", "0.7233467", "0.71825427", "0.7174559", "0.7115673", "0.71012837", "0.70699173", "0.7048097", "0.70...
0.6569239
79
This test assumes the database contains two rows
@Test public void testDummyMsg() throws Exception { given() .contentType("application/json") .get("/cars/").then() .assertThat() .statusCode(HttpStatus.OK_200.getStatusCode()) .body("msg", equalTo("Hello World")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSelectSpecificRow() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n String commitID = commit.getCommitID();\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n CommitStructure commits = mysqlDatabase.sele...
[ "0.6700122", "0.65891844", "0.63661575", "0.6315008", "0.63084865", "0.63046056", "0.6299103", "0.629556", "0.62817025", "0.6253097", "0.61995065", "0.6192345", "0.61797905", "0.6168276", "0.61362684", "0.6135324", "0.61092937", "0.6101182", "0.6097147", "0.6081702", "0.60772...
0.0
-1
Represents a productlike (either a product or a tool) resource in the repository. This interface allows read access to fields which are specific to productlike things.
public interface ProductRelatedResource extends RepositoryResource { /** * Gets the productId for the resource. * * @return the product id, or null if it has not been set */ public String getProductId(); /** * Gets the edition of the product, if applicable. * * @return the edition of the product, or null if it is not set */ public String getProductEdition(); /** * Gets the install type of the product (e.g. "Archive") * * @return the install type, or null if it is not set */ public String getProductInstallType(); /** * Gets the version of the product * * @return the product version, or null if it is not set */ public String getProductVersion(); /** * Gets the features included in this product * * @return the features provided by this product, or null if not set */ public Collection<String> getProvideFeature(); /** * Gets the features that this product depends on * * @return the features required by this product, or null if not set */ public Collection<String> getRequireFeature(); /** * Gets the collection of OSGi requirements this product has * * @return the collection of OSGi requirements applicable to this product, or null if not set */ public Collection<Requirement> getGenericRequirements(); /** * Gets the version information for the Java packaged with this product * * @return The Java version information, or null if this product is not packaged with Java */ public String getPackagedJava(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Product {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\...
[ "0.6749092", "0.6001554", "0.5970496", "0.58631176", "0.5809381", "0.580358", "0.577071", "0.5677749", "0.5669477", "0.5668286", "0.5663909", "0.56565434", "0.56304777", "0.561296", "0.5598825", "0.55760115", "0.5562615", "0.5516671", "0.5510978", "0.5510978", "0.5503266", ...
0.7174686
0