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
CelestialObject packageprivate constructor returning a celestial object and initializing some values
CelestialObject(String name, EquatorialCoordinates equatorialPos, float angularSize, float magnitude) { celestialName = Objects.requireNonNull(name); celestialEquatorialPosition = Objects.requireNonNull(equatorialPos); checkArgument(angularSize >= 0); celestialAngularSize = angularSiz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SingleObject()\r\n {\r\n }", "Reproducible newInstance();", "protected abstract void construct();", "private SingleObject(){}", "private SingleObject(){\n }", "public ObjectFactory() {\n\t}", "public ObjectFactory() {\r\n\t}", "private ObjectFactory() { }", "public LocalObject() {}...
[ "0.7153329", "0.704265", "0.6968854", "0.6842504", "0.67444575", "0.6738709", "0.67114055", "0.66683793", "0.66631174", "0.65982157", "0.6585885", "0.6526111", "0.6514715", "0.6493983", "0.64907724", "0.64817965", "0.64815843", "0.64659417", "0.64659417", "0.64659417", "0.646...
0.0
-1
Method name returning the name of the celestial object
public String name() { return celestialName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getObjectName();", "private String getName() {\n return method.getName();\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "St...
[ "0.77799714", "0.7595891", "0.7511897", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", "0.7413724", ...
0.0
-1
Method angularSize returning the angular size of the celestial object
public double angularSize() { return celestialAngularSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double angularSize() {\n return angularSize;\n }", "public double getSize() {\n return size_;\n }", "double getSize();", "public double getSize() \n {\n return size;\n }", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public double getSize() {\n retu...
[ "0.8211346", "0.6639572", "0.6638351", "0.6607718", "0.6606959", "0.6603693", "0.65355474", "0.6476783", "0.64736307", "0.6333658", "0.63273746", "0.62850535", "0.62784183", "0.62784183", "0.62575966", "0.6240838", "0.6239585", "0.6214115", "0.61879027", "0.6184727", "0.61819...
0.8354465
0
Method magnitude returning the magnitude of the celestial object
public double magnitude() { return celestialMagnitude; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double magnitude() {\r\n\t\treturn Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);\r\n\t}", "public double magnitude(){\n return Math.sqrt((this.x * this.x) + (this.y * this.y));\n }", "public double magnitude() {\n double totalX = this.xCoord * this.xCoord;\n double to...
[ "0.79887515", "0.7981786", "0.793248", "0.78933823", "0.7861252", "0.7840295", "0.7834807", "0.7808302", "0.7760619", "0.7747376", "0.77368504", "0.7697859", "0.7631808", "0.76298624", "0.7568327", "0.7560478", "0.7492632", "0.74714607", "0.74062157", "0.73824215", "0.7244047...
0.85874707
0
Method equatorialPos returning the equatorial coordinates of the celestial object
public EquatorialCoordinates equatorialPos() { return celestialEquatorialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EquatorialCoordinates equatorialPos() {\n return equatorialPos;\n }", "public static Dimension getPos()\n {\n Dimension pos = new Dimension( cX, cY );\n next();\n return pos;\n }", "public Coordinate getPosition();", "public Position findWeedPosition() {\n int x = 0;\n ...
[ "0.8273094", "0.59932625", "0.5990079", "0.5775645", "0.5765287", "0.5710493", "0.5662222", "0.565124", "0.56510097", "0.56487596", "0.5631289", "0.5631289", "0.5622029", "0.5579175", "0.55778444", "0.5564154", "0.55510104", "0.55120015", "0.5507308", "0.5497664", "0.54839486...
0.8546594
0
Method info returning the name of the celestial object
public String info() { return name(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getObjectName();", "public String infoName();", "public java.lang.String getObjectName(){\n return localObjectName;\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "protected String get_object_name() {\n\...
[ "0.76381373", "0.74883616", "0.71045935", "0.7104", "0.70372176", "0.70372176", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", "0.70222896", ...
0.0
-1
Overrode method toString returning the name of the celestial object calling the method info()
@Override public String toString() { return info(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n return \"info\";\n }", "public String getInfo(){\n return \" name: \" + this.name;\n }", "public String toString() {return name;}", "public String toString(){\n return getName();\n }", "@Override \n public String toString() {\n return getNam...
[ "0.81352973", "0.7836117", "0.77095824", "0.7707243", "0.7654894", "0.7631748", "0.7617088", "0.76127774", "0.76076585", "0.7606969", "0.75806", "0.75753844", "0.75398475", "0.7519906", "0.75181544", "0.75075907", "0.75075907", "0.7483716", "0.7482174", "0.74752104", "0.74744...
0.80300426
1
the value does not matter:
private void write(SidRegisterAddress reg) { o.reg(reg).write(UnsignedByte.x01); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }", "public int value() { \n return this.value; \n }", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "@Override\n public int retroceder() {\n return 0;\...
[ "0.6215194", "0.61704975", "0.6170193", "0.6157538", "0.6146859", "0.6127785", "0.6044086", "0.6018205", "0.6002286", "0.5928022", "0.58968604", "0.5824529", "0.5819595", "0.58100045", "0.57906723", "0.5759151", "0.5744679", "0.5738304", "0.5706957", "0.57024074", "0.5700078"...
0.0
-1
Configure the options used in code generation
@Override protected void doInitializeOptions() { netPrinter.setOptions(getOptions()); childrenPrinter.setOptions(getOptions()); // Create the empty folders new File(outputPath, "bin").mkdir(); new File(outputPath, "build").mkdir(); // Configure the path where source files will be written srcPath = new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConfigGeneratorApi(ToolOptions options) {\n super(options);\n }", "@Override\n @SuppressWarnings(\"static-access\")\n public void setJCLIOptions() {\n Option Help = new Option(\"h\", \"help\", false, \"Show Help.\");\n this.jcOptions.addOption(Help);\n this.jcOptions.addOpti...
[ "0.68582076", "0.64220834", "0.6299982", "0.61795765", "0.6086649", "0.6079579", "0.6065027", "0.6059934", "0.6053336", "0.6007044", "0.5928913", "0.5928913", "0.59156436", "0.5811286", "0.5754247", "0.57526237", "0.5732455", "0.57184565", "0.57164687", "0.5714442", "0.570341...
0.5648653
24
1. Take Screenshot and store it in a file format
public static void takeScreenshot(String filename) throws IOException { File file = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); //2. Now copy the file to the desired location using copyFile method FileUtils.copyFile(file, new File("E:\\Selenium\\SeleniumPractice\\src\\com\\seleniumpractice\\Sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeScreenShot(){\n\t\tDate d=new Date();\r\n\t\tString screenshotFile=d.toString().replace(\":\", \"_\").replace(\" \", \"_\")+\".png\";\r\n\t\t// store screenshot in that file\r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(sc...
[ "0.80313915", "0.7875923", "0.7755495", "0.76872176", "0.75431526", "0.75195813", "0.7464618", "0.74434614", "0.7350501", "0.7328561", "0.7320652", "0.7303937", "0.7298942", "0.72940266", "0.72765005", "0.72729164", "0.72726965", "0.7271835", "0.72682", "0.72094715", "0.72046...
0.6392065
95
Gets the value of the simulateStyle property.
public boolean isSimulateStyle() { return simulateStyle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSimulateStyle(boolean value) {\n this.simulateStyle = value;\n }", "public int getStyle() {\r\n\t\treturn this.style;\r\n\t}", "public String getStyle() {\r\n return style;\r\n }", "public String getStyle() {\n return style;\n }", "public String getStyle...
[ "0.722103", "0.71560866", "0.7134557", "0.71118826", "0.71118826", "0.71118826", "0.71118826", "0.7085067", "0.7055201", "0.69892627", "0.68956625", "0.6527648", "0.63683254", "0.63669217", "0.63327014", "0.62989503", "0.62525696", "0.62287974", "0.62107897", "0.61636806", "0...
0.77493256
0
Sets the value of the simulateStyle property.
public void setSimulateStyle(boolean value) { this.simulateStyle = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSimulateStyle() {\n return simulateStyle;\n }", "@attribute(value = \"\", required = false, defaultValue=\"NONE\")\r\n\tpublic void setStyle(String style) {\r\n\t\t// dummy function for comment\r\n\t}", "public void setStyle(String st){\n style = st;\n }", "void s...
[ "0.68800235", "0.60483384", "0.6027432", "0.59936225", "0.58553904", "0.58553904", "0.57798624", "0.56887484", "0.5669657", "0.551453", "0.5485129", "0.5474051", "0.5450262", "0.53706604", "0.53222895", "0.53030837", "0.52883846", "0.52689195", "0.5235274", "0.5235274", "0.52...
0.82900196
0
TODO Autogenerated method stub create the tree
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "protected void makeTheTree(){\n\n ...
[ "0.76777947", "0.75327027", "0.7510975", "0.7140259", "0.7082461", "0.706725", "0.6985937", "0.6979851", "0.69705325", "0.6954513", "0.6931045", "0.68234503", "0.6822201", "0.68071884", "0.6783203", "0.67606694", "0.67378676", "0.6629428", "0.6588919", "0.6576995", "0.6565483...
0.0
-1
Creates a new IcsSystemConsoleDesignation with the specified connection and encoding.
public IcsSystemConsoleDesignation(Connection connection, String encoding){ super(connection, encoding); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChessclubHelpConsoleDesignation(\n Connection connection, String encoding, boolean isConsoleCloseable) {\n super(connection, true, encoding, isConsoleCloseable);\n }", "private AbstractTerminal()\n\t{\n\t\tio = new SwingTextTerminal();\n\t}", "public Cli (BufferedReader in,PrintWriter out , Con...
[ "0.65773356", "0.4865485", "0.48586047", "0.48253563", "0.48177856", "0.4696689", "0.46639678", "0.46634153", "0.4662799", "0.45670366", "0.45659333", "0.45455727", "0.45025524", "0.44943237", "0.4482242", "0.4469986", "0.44328186", "0.44288605", "0.44092575", "0.44089192", "...
0.8157727
0
Returns whether the specified chat event is a personal tell to the user.
@Override protected boolean isPersonalTell(ChatEvent evt){ String type = evt.getType(); return "tell".equals(type) || "say".equals(type) || "ptell".equals(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean handlePersonalTell(String line){\n if (line.indexOf(\"tells you: \") == -1)\n return false;\n \n Matcher matcher = PERSONAL_TELL_REGEX.matcher(line);\n if (!matcher.matches())\n return false;\n\n String username = matcher.group(1);\n String titles = matcher.group(2);\n ...
[ "0.7025213", "0.6255196", "0.6223183", "0.6082665", "0.6041181", "0.5824652", "0.56077296", "0.5388852", "0.5302565", "0.52666193", "0.52586216", "0.5255707", "0.5247672", "0.5247672", "0.5244977", "0.52075577", "0.51943034", "0.5190677", "0.51905715", "0.5180759", "0.5170388...
0.7992493
0
Created by lz on 2017/5/15.
public interface CardLostDAO { int saveByVO(CardLostRecordModel vo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.5858299", "0.578621", "0.56555575", "0.5599921", "0.55861473", "0.5577075", "0.5577075", "0.55676985", "0.5542469", "0.5527706", "0.55077195", "0.54925525", "0.5466108", "0.5457711", "0.5451967", "0.5444285", "0.5428479", "0.5428479", "0.5428479", "0.5428479", "0.5428479",...
0.0
-1
Ignore swagger and configuration paths for discovery
@Override public void configure(WebSecurity web) throws Exception { web.ignoring().antMatchers("/v2/api-docs", "/configuration/ui", "/swagger-resources", "/configuration/security", "/swagger-ui.html", "/webjars/**", "/v2/swagger.json"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Bean\n public Docket api(){\n //Enables following endpoints once configured\n //http://localhost:8080/swagger-ui.html\n //http://localhost:8080/v2/api-docs\n return new Docket(DocumentationType.SWAGGER_2)\n //.apiInfo(ApiInfo.DEFAULT)\n .apiInfo(DEFAULT...
[ "0.62163925", "0.62081003", "0.6048387", "0.60347867", "0.58509797", "0.5797619", "0.5691844", "0.56856537", "0.566437", "0.5591929", "0.55692387", "0.5528881", "0.5519662", "0.5506743", "0.5370768", "0.5346333", "0.5344891", "0.5333258", "0.5315038", "0.52358264", "0.5232036...
0.6053896
2
Info: Access to api is configured via PreAuthorize and PostAuthorize Info: Session management disabled for stateless rest api (authentication is very fast because of JWT)
@Override public void configure(HttpSecurity http) throws Exception { http .addFilterBefore(getFirebaseAuthenticationFilter(), BasicAuthenticationFilter.class).authorizeRequests() .antMatchers(HttpMethod.OPTIONS,"/api/**").permitAll() .antM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void configure(HttpSecurity http) throws Exception {\n http\n .csrf().disable()\n .sessionManagement()\n .sessionCreationPolicy(SessionCreationPolicy.STATELESS)\n //.antMatchers(\"/api/user/login\").permitAll()\n\n\n ...
[ "0.6223224", "0.6062447", "0.5881205", "0.58767325", "0.58230764", "0.5795497", "0.5759824", "0.5712928", "0.57060903", "0.56407917", "0.56111246", "0.56097996", "0.56011593", "0.55788416", "0.55750555", "0.5573749", "0.55419546", "0.55360204", "0.5482023", "0.54652804", "0.5...
0.5418441
26
patch old apk and patch file to new apk
public static native PatchResult patch(String oldApkPath, String patchPath, String newApkPath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void fixDexElementsForProtectedApp(Application application, Object[] newDexElements) throws Exception {\n Field zipField = null;\n Field dexFileField = null;\n final Field mFileNameField = ShareReflectUtil.findField(DexFile.class, \"mFileName\");\n final Field mCookieFiel...
[ "0.5946261", "0.58735454", "0.5775739", "0.5713917", "0.56437814", "0.5522655", "0.55197406", "0.5320667", "0.5279289", "0.526756", "0.5262805", "0.5198667", "0.5142637", "0.512664", "0.5085214", "0.5059393", "0.50578636", "0.5038234", "0.5026714", "0.50208694", "0.50015223",...
0.7600969
0
TODO Autogenerated method stub
@Override public void resize(int width, int height) { }
{ "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 show() { }
{ "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 hide() { }
{ "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 pause() { }
{ "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 resume() { }
{ "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 dispose() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Get the String representation of this test status that should be stored in xml
String getValue() { return mValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatusString() {\n return status.toString();\n }", "public String getXmlStatus() {\n String msg = \"<object_status idobj=\\\"\" + codObjeto + \"\\\" \";\n msg += \" status=\\\"\" + status + \"\\\" tag=\\\"\" + tag + \"\\\" \";\n msg += \" flagInventario=\\\"\" + fl...
[ "0.7675852", "0.7482031", "0.73067266", "0.7185224", "0.71615297", "0.71615297", "0.71615297", "0.71615297", "0.70433366", "0.6983423", "0.69428927", "0.6916544", "0.6890881", "0.68854046", "0.68652785", "0.68608904", "0.68608904", "0.68608904", "0.68608904", "0.68608904", "0...
0.0
-1
ListView Clicked item index
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { try { int itemPosition = position; switch (itemPosition) { case 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onItemClick(int position);", "public void onItemClick(View view, int position);", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n Intent intent = new Intent(MainActivity.this, ImageActivity.class);\n intent.putExtra(\"index\", i...
[ "0.7279279", "0.72405237", "0.71664447", "0.71438044", "0.7133834", "0.71318424", "0.7110673", "0.71055347", "0.7104801", "0.7103004", "0.70707655", "0.70497495", "0.70497495", "0.70439893", "0.7032804", "0.7021206", "0.70159334", "0.6988654", "0.6982371", "0.6959986", "0.695...
0.0
-1
PDFont loads embedded fonts in its constructor so we have to handle IOExceptions from PDFont and translate them into validation errors.
protected void addFontError(COSDictionary dictionary, PreflightContext context, IOException e) { COSName type = dictionary.getCOSName(COSName.TYPE, COSName.FONT); if (!COSName.FONT.equals(type)) { addValidationError(context, new ValidationError(PreflightConstants.ERROR_FONTS_UNKN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n\n /**\n * FontFile1 = A stream containing a Type 1 font program\n * FontFile2 = A stream containing a TrueType font program\n * FontFile3 = A stream containing a font program other than Type 1 or\n * TrueType. The format of the font program is specified...
[ "0.6951542", "0.6751533", "0.65535104", "0.61729205", "0.60274494", "0.601433", "0.59896773", "0.5917287", "0.5882235", "0.5855622", "0.5721586", "0.56886196", "0.563814", "0.56031644", "0.5528659", "0.55218893", "0.5495313", "0.54741496", "0.5467593", "0.5457413", "0.5449496...
0.6427246
3
this method should be used to initialize variables instead of the constructor/class scope to avoid race conditions
protected void initVars() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "protected void initialize() {\n\t\tright = left = throttle = turn = forward = 0;\n\t}", "private void init() {\n cloudAmount = null;\n cloudGenus = null;\n cloudAltitude = null;\n cloudDescription = null;\n }", "priva...
[ "0.73910594", "0.7209957", "0.72055095", "0.7111951", "0.70437497", "0.70421916", "0.70421916", "0.70421916", "0.70421916", "0.70229316", "0.701307", "0.6984549", "0.6954564", "0.6950886", "0.6948665", "0.6948665", "0.69345117", "0.69307584", "0.69275635", "0.68945587", "0.68...
0.7903186
0
auth for MQTT such as EMQ:
@RequestMapping(value = "/mqtt/auth", method = { RequestMethod.POST, RequestMethod.GET }) public String auth4MQTT(HttpServletRequest request, HttpServletResponse response) { String r = new String(); Enumeration<String> params = request.getParameterNames(); String userName = request.getParameter("username"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectUsingToken() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t...
[ "0.6674586", "0.657701", "0.62692004", "0.58566564", "0.58566564", "0.58566564", "0.5789971", "0.5788436", "0.57449496", "0.5708703", "0.57039917", "0.5595171", "0.5584135", "0.5535193", "0.55146664", "0.549262", "0.5487019", "0.5458506", "0.5439111", "0.53791326", "0.5331138...
0.72791
0
TODO Autogenerated method stub
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: finish(); return true; case R.id.action_friendship: controller.showFriendshipOptions(); return true; defau...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Returns the value of the 'Name' attribute. If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name...
[ "0.85526824", "0.83111763", "0.83111763", "0.83111763", "0.8163431", "0.8146775", "0.79938203", "0.79938203", "0.79938203", "0.79563904", "0.7912841", "0.7835634", "0.782378", "0.7813174", "0.7806618", "0.77801347", "0.77782315", "0.77782315", "0.77782315", "0.77782315", "0.7...
0.0
-1
/ Selectors and Mutators / End of selectors and mutators / Other shit / / Main game life cycle methods
@Override public void gameInit() { font = new Font("Courier", Font.BOLD, 14); fontInfo = this.getFontMetrics(font); keys = new KeyValues(); background.loadImage("/images/sky.png"); tileset = new TileSet(10,10,32,32); tileset.loadTiles("/images/test_tiles.png"); map = new Map(tileset, 20, 5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void tick() {\r\n\r\n\t\t// Switches on the different states of the game that it could be in\r\n\t\tswitch (gameState) {\r\n\t\tcase MAINMENU:\r\n\t\t\t// If there is not already a Main menu instance that exists\r\n\t\t\tif (mainMenu == null) {\r\n\t\t\t\t// Create a new Menu Instance\r\n\t\t\t\tmain...
[ "0.63480526", "0.6263592", "0.62019175", "0.6182065", "0.6180651", "0.6168016", "0.61165476", "0.602886", "0.60272974", "0.601512", "0.6003341", "0.6002517", "0.59922004", "0.59898174", "0.59516144", "0.59516144", "0.5940732", "0.5939238", "0.5937298", "0.5931008", "0.5923623...
0.0
-1
IF [dead] then do nothing
@Override public void decide() { if (this.isDead) { return; } if(this.age >= this.lifeSpan) { // DIE this.environment.removeAgent(this.getPosX(), this.getPosY()); this.isDead = true; // Print if required if (this.appConfig.hasTrace()) { System.out.println("Agent;Death;Fish;" + this.getP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void dead() { this.alive = false; }", "private void bringToLife(){\n this.dead = false;\n }", "public boolean isDead();", "public boolean isDead()\n {\n // TODO: replace this line with your code\n }", "Boolean isDead();", "public void setDead(boolean value);", "public boolean get...
[ "0.7619446", "0.74339217", "0.7228164", "0.7225212", "0.71425766", "0.70957136", "0.7024346", "0.69415927", "0.6935935", "0.689847", "0.68572915", "0.68182284", "0.6780286", "0.6771176", "0.6766098", "0.67584455", "0.67421305", "0.6734112", "0.6643957", "0.6574919", "0.649226...
0.0
-1
Choose coordinates to move based on the random numbers
private int[] chooseCoordinates() { // Choose new (posX,posY) location for the Fish int pasX, pasY; // at least pasX or pasY not null do { pasX = this.appConfig.getRandom().nextInt(3) - 1; pasY = this.appConfig.getRandom().nextInt(3) - 1; } while (pasX == 0 && pasY == 0); // choose one free cell bas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}", "public void randomMove(Random choiceGen){\n\tint choice = choiceGen.nextInt(4);\n\tswitch(choice){\n case 0:\n\tif(position[0] < worldEdge[0]){\n\t position...
[ "0.8080077", "0.76190615", "0.7458756", "0.74246293", "0.73824584", "0.73442775", "0.7324188", "0.729575", "0.7288303", "0.7269668", "0.72268575", "0.7178555", "0.715377", "0.71534175", "0.7128515", "0.7048326", "0.7020311", "0.6998797", "0.69938254", "0.69878525", "0.6951908...
0.6716599
35
Current fish fucks in order to create another fish at the coordinates in parameters
private void fuck(int x, int y) { Fish son = new Fish(x, y, this.environment, this.appConfig, this.scheduler); son.color = Color.YELLOW; // yellow when fish is a newborn this.environment.addAgent(son, x, y); this.scheduler.birth(son); this.breedTime = this.appConfig.getFishBreedTime(); // reset breed time }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eat(ArrayList<Fish> list) {\n\t\tSystem.out.println(\">>>>>\"+list.size());\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t// ¾ØÐÎÏཻ¾ÍÅжÏsize\n\t\t\tFish fish1 = this;\n\t\t\tFish fish2 = list.get(i);\n\t\t\tif (fish1 != fish2\n\t\t\t\t\t&& ((fish1.x >= fish2.x && fish1.x <= fish2.x + fish2.siz...
[ "0.6042808", "0.5983264", "0.57832086", "0.566268", "0.56612754", "0.5589112", "0.5536637", "0.5502327", "0.5498041", "0.54937357", "0.54794866", "0.54565936", "0.54392534", "0.5409706", "0.5388489", "0.53830945", "0.5370405", "0.53378433", "0.5334281", "0.53305924", "0.53295...
0.6228327
0
TODO implement logic with ID
@Override public long getItemId(int position) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Integer getId() { return this.id; }", "protected abstract String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang...
[ "0.6911468", "0.6905102", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "0.6842361", "...
0.0
-1
/ sendVerificationBtn.setVisibility(View.INVISIBLE); inputPhoneNumEt.setVisibility(View.INVISIBLE); verifyBtn.setVisibility(View.VISIBLE); inputCodeEt.setVisibility(View.VISIBLE);
@Override public void onClick(View view) { String numberPhone = inputPhoneNumEt.getText().toString(); if(TextUtils.isEmpty(numberPhone)){ showToastMessage("phone number required!"); }else{ //loading bar put here ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onClick(View v) {\n\t\ttxt1.setVisibility(View.GONE);\r\n\t txt2.setVisibility(View.GONE);\r\n\t txt3.setVisibility(View.GONE);\r\n\t txt4.setVisibility(View.GONE);\r\n\t txt5.setVisibility(View.GONE);\r\n\t txt6.setVisibility(View.GONE);\r\n\t /* txt7....
[ "0.76236486", "0.7504797", "0.7060643", "0.70239884", "0.70159", "0.6988551", "0.6964159", "0.69500315", "0.6944646", "0.6944646", "0.6921754", "0.69122934", "0.6885477", "0.68660367", "0.68561876", "0.6853251", "0.66842914", "0.6596626", "0.6593318", "0.65841365", "0.6560193...
0.0
-1
The SMS verification code has been sent to the provided phone number, we now need to ask the user to enter the code and then construct a credential by combining the code with a verification ID.
@Override public void onCodeSent(@NonNull String verificationId, @NonNull PhoneAuthProvider.ForceResendingToken token) { Log.d(TAG, "onCodeSent:" + verificationId); showToastMessage("code has been sent!"); // Save verificati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n ...
[ "0.78353745", "0.7744453", "0.7704671", "0.7639931", "0.7581702", "0.7501231", "0.7390606", "0.7349715", "0.7342952", "0.7306408", "0.72993594", "0.7265084", "0.7263813", "0.7158405", "0.7154066", "0.6855513", "0.6804123", "0.6795792", "0.6763582", "0.6738477", "0.6704396", ...
0.6289761
34
Creates a new instance of UpgradeData
public UpgradeData(int c) { super(); JLabel l; // GridLayout grid; JPanel pan; JButton val; confignb = c; String fichier; NumberFormatter formatter = new NumberFormatter(new DecimalFormat("0")); formatter.setAllowsInvalid(false); try { sz_rss = new JFormattedTextField((NumberForm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected VersionData() {}", "public DataMigration(int version) {\n super(MigrationType.DATA, version);\n }", "public ReportVersionData() {\n this(\"report_version_data\", null);\n }", "public void init() {\r\n\t\tdbVersion = new DBVersion( getDefaultDatabase(), progress, upgradeFile.vers...
[ "0.63204193", "0.6075206", "0.57975286", "0.54515153", "0.5362934", "0.5286586", "0.5277172", "0.52296853", "0.5228756", "0.51951396", "0.5147757", "0.5147555", "0.51216644", "0.51106703", "0.5075847", "0.5036384", "0.5024973", "0.50139636", "0.49913493", "0.4965204", "0.4961...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static Add_simple_dish newInstance(String param1, String param2) { Add_simple_dish fragment = new Add_simple_dish(); 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) { View v=inflater.inflate(R.layout.fragment_add_simple_dish, container, false); ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(R.string.actionBa...
{ "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
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7324436", "0.7207491", "0.71337754", "0.7124179", "0.71227044", "0.70147455", "0.6976635", "0.6976635", "0.6976635", "0.69738007", "0.6967322", "0.69654423", "0.6960806", "0.69540006", "0.6943718", "0.6933451", "0.69287443", "0.6926101", "0.692234", "0.6910855", "0.6902918...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
Though the numbering of the "id" of article summaries starts at 1, this method expects earliest "start" value to be 0.
public List<ArticleSummary> getArticleSummariesDescFromTo(long start, int count, String tags) throws SQLException { return this.getArticleSummariesFromTo(start, count, tags, "desc"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStart(long start) { this.start = start; }", "public void setStart(int start) {\r\n this.start = start;\r\n }", "public void setStart(int start) {\n this.start=start;\n }", "public void setStart(int start) {\n\t\tthis.start = start;\n\t}", "void setStartAt(final Long start...
[ "0.63636935", "0.6243586", "0.6161345", "0.61278826", "0.60557973", "0.587199", "0.56884587", "0.56818414", "0.5656996", "0.56518173", "0.56418395", "0.5636907", "0.5633753", "0.56170017", "0.5611194", "0.5592746", "0.556587", "0.5559018", "0.5558201", "0.55464417", "0.554597...
0.0
-1
getArticleCount returns the number of articles, marked as published or not with the given tag list (comma separated) The authoring tool doradeblogauthoring has a better version of this method. And of many other methods.
public long getArticleCount(boolean published, String tags) throws SQLException { return this.getArticleOrShortCount(published, tags, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTagCount();", "public int countByArticle(java.lang.String articleId);", "public int countByArticle(java.lang.String articleId);", "int postsCount();", "public Integer getCount(String tag) {\n\t\treturn tagList.get(tag);\n\t}", "int getAuthoritiesCount();", "int getNewsindentifydetailCount();", ...
[ "0.64362454", "0.62700206", "0.62680477", "0.62453616", "0.62081504", "0.60767376", "0.58373356", "0.57347405", "0.5723713", "0.56114763", "0.55615336", "0.54852104", "0.545206", "0.5394923", "0.53772634", "0.5355111", "0.5305282", "0.53020996", "0.5290516", "0.52774316", "0....
0.70360786
0
Time Complexity: O(N) Runtime: 44ms, beats 91.06%
public int lengthOfLongestSubstring(String s){ if(s == null || s.length() == 0){ return 0; } char[] ch = s.toCharArray(); int[] map = new int[128]; int start = 0, end = 0, count = 0, maxLen = 0; while(end < s.length()){ // If map[ch[end]] > 0, it means ch[end] is duplicated now. if(map[ch[end]] >...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.73321944", "0.7092962", "0.6770475", "0.64221746", "0.64106935", "0.6344654", "0.61546445", "0.61410195", "0.6066928", "0.5894695", "0.5884094", "0.588319", "0.58682126", "0.5840537", "0.57564944", "0.574463", "0.5741454", "0.5732252", "0.5700291", "0.5660659", "0.56265277...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws UnsupportedEncodingException, FileNotFoundException { RiffRaff riff = new RiffRaff(); riff.readIn(); }
{ "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
Loads a provided config object from a given JSON file. If the file does not exist it also creates the file using the given object defaults
public static <T> T loadConfig(Class<T> clazz, File file, T fallback) throws IOException { if (file.createNewFile()) { //File does not exist, save fallback to file String json = gson.toJson(fallback); try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init(File jsonFile) throws PluginException {\n try {\n config = new JsonSimpleConfig(jsonFile);\n reset();\n } catch (IOException e) {\n log.error(\"Error reading config: \", e);\n }\n }", "void importDefaultConfiguration(Map<Str...
[ "0.61410385", "0.61386997", "0.604861", "0.59651315", "0.59535646", "0.5917394", "0.58762276", "0.58471304", "0.5846469", "0.5843314", "0.58357304", "0.57612544", "0.5712057", "0.56717575", "0.5667756", "0.56518406", "0.5650711", "0.5636564", "0.5609583", "0.55956084", "0.555...
0.63650435
0
Saves a config object to the specified file in JSON format
public static void saveConfig(Object config, File file) throws IOException { file.createNewFile(); String json = gson.toJson(parser.parse(gson.toJson(config))); try (PrintWriter out = new PrintWriter(file)) { out.println(json); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void exportJsonFile(File configFile) {\n Gson gson = new Gson();\n \n // Java object to JSON, and assign to a String\n String jsonInString = gson.toJson(GameConfig.getInstance());\n \n try {\n FileWriter writer = new FileWriter(configFile);\n ...
[ "0.7676084", "0.7147372", "0.6953834", "0.68290913", "0.6592396", "0.65648115", "0.6522556", "0.64761084", "0.6447715", "0.64374214", "0.6403147", "0.63787997", "0.63712573", "0.6361357", "0.63358575", "0.6330719", "0.62724817", "0.626979", "0.6225841", "0.62009794", "0.60815...
0.85376084
0
Create a new MoneyCommand which is used to display a user's balance.
public MoneyCommand() { super("money", "Displays the player's money", "/money", Arrays.asList("bal", "m")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Command createCommand();", "abstract Valuable createMoney(double value);", "public void gameUI(String username, BigDecimal balance){\n\n System.out.println(ANSI_RESET + username + \", balance: \" + ANSI_YELLOW + balance + \"\\n\" +\n ANSI_PURPLE + \"Command:\");\n }", "UserAccount cr...
[ "0.5730454", "0.56525093", "0.5616938", "0.5603008", "0.55654204", "0.5495277", "0.5478692", "0.54314184", "0.53864527", "0.5373799", "0.53495324", "0.533951", "0.52961606", "0.52695113", "0.5265302", "0.52401584", "0.5204202", "0.5200816", "0.5194283", "0.51795185", "0.51733...
0.7761249
0
racers are displayed in reverse queue order
private void displayRacerList(ArrayList<Racer> raceList, int finishIndex, int startIndex) { for(int i = startIndex; i >= finishIndex; i--) { if(timestamp.equals("")) { if(raceList == finishList) { cTEH.display += raceList.get(i).getNumber() + " " + cTEH.timer.getRunDuration(raceList.get(i).getStar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void reverse()\n\t{\n\t\tint a;\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\telse\n\t\t{\t\n\t\t\ta = dequeue();\n\t\t\treverse(); \n\t\t\tenqueue(a);\n\t\t}\n\t}", "public void display() {\n\t\tSystem.out.println(\"Queue display\");\n\t\tint maxi = (front < rear) ? rear : (rear + MAX_QUEUE_SIZE);\n\t\tfor (int i = fr...
[ "0.6740046", "0.6724584", "0.64971554", "0.6386743", "0.6352476", "0.6296186", "0.6245367", "0.6245147", "0.6108861", "0.6104501", "0.610203", "0.6096433", "0.6086682", "0.6081689", "0.6062907", "0.60360295", "0.6025986", "0.60192716", "0.5985682", "0.5949913", "0.59428245", ...
0.0
-1
Pulls information out of the d1 array along rows then columns;
public Matrix3D(double[] d1) { super(3,3); int k = -1; for (int i=0 ; i<3 ; i++) { // loop over rows for (int j=0 ; j<3 ; j++) { // loop over columns k++; set(i,j,d1[k]); // d[i][j] = d1[k]; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long[][] flatTo2D (long[] in_array1d){\n\t\tint sl = (int)Math.sqrt(in_array1d.length);\n\t\tlong[][] out_array = new long[sl][sl]; //declares output 2D array\n\t\tint q = 0; //temporary variable, used in following nested for loop\n\t\tfor(int a = 0; a < sl; a++){ //loops until a == side length\n\t\t\tfor(i...
[ "0.602927", "0.5714732", "0.56951874", "0.56204283", "0.55582213", "0.5421743", "0.53885484", "0.53769946", "0.5305653", "0.5269704", "0.52525294", "0.52270967", "0.5219647", "0.5195788", "0.51846075", "0.5183402", "0.5174487", "0.51654553", "0.51590854", "0.5133432", "0.5128...
0.5579274
4
Static Methods Multiplies C=AB
public static Matrix3D times(Matrix3D A, Matrix3D B) { Matrix3D C = new Matrix3D(); for (int i=0 ; i<=2 ; i++) { // loop over each row of A for (int j=0 ; j<=2 ; j++) { // loop over each column of B // Calculate the dot product of the ith row of A with the jth column of B: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mul() {\n\n\t}", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public void multiply() {\n\t\t\n\t}", "public int mult()\r\n\t{\r\n\t\tint a=10;\r\n\t\tint b=20;\r\n\t\tint c = a*b;\r\n\t\treturn(c);\r\n\t}", "public void sampleMethod()\n {\n int a = 6;\n System.o...
[ "0.6239144", "0.62061983", "0.6042975", "0.60426706", "0.5975087", "0.5971196", "0.5921341", "0.58958495", "0.5844507", "0.57877433", "0.575175", "0.5715783", "0.569373", "0.56499183", "0.5648438", "0.5642151", "0.558846", "0.5576457", "0.5564965", "0.5550902", "0.5548569", ...
0.0
-1
THESE ARE BODY ROTATIONS! Rotation around x axis.
public static Matrix3D rotX(double theta) { Matrix3D m = new Matrix3D(); m.set(1,1, Math.cos(theta)); m.set(1,2,-Math.sin(theta)); m.set(2,1, Math.sin(theta)); m.set(2,2, Math.cos(theta)); m.set(0,0, 1.0); return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void xRotate() {\n\t\t\n\t}", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "@Override\n \t\t\t\tpublic void doRotateX() {\n \n \t\t\t\t}", "public void zRotate() {\n\t\t\n\t}", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}"...
[ "0.6961154", "0.6851926", "0.6639045", "0.65035766", "0.6471454", "0.646612", "0.6438126", "0.6351201", "0.63490885", "0.6339042", "0.6332363", "0.627259", "0.6255892", "0.62261754", "0.6218166", "0.6198597", "0.61980295", "0.61874604", "0.6135561", "0.61041987", "0.6101537",...
0.0
-1
Rotation around y axis.
public static Matrix3D rotY(double theta) { Matrix3D m = new Matrix3D(); m.set(0,0, Math.cos(theta)); m.set(0,2, Math.sin(theta)); m.set(2,0,-Math.sin(theta)); m.set(2,2, Math.cos(theta)); m.set(1,1, 1.0); return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \t\t\t\tpublic void doRotateY() {\n \n \t\t\t\t}", "public double getYRotate() {\n\t\tif (Math.abs(getRawAxis(Axis_YRotate)) > stickDeadband) {\n\t\t\treturn getRawAxis(Axis_YRotate);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public float getRotationY() {\n return mRotationY;\n }", ...
[ "0.7661506", "0.7576765", "0.75416565", "0.734768", "0.7234285", "0.7112417", "0.675216", "0.6722399", "0.6602971", "0.65965724", "0.64878064", "0.64750445", "0.64525497", "0.6402456", "0.6396811", "0.6394187", "0.63940394", "0.63881695", "0.6348112", "0.62663066", "0.625686"...
0.58839786
41
Rotation around z axis.
public static Matrix3D rotZ(double theta) { Matrix3D m = new Matrix3D(); m.set(0,0, Math.cos(theta)); m.set(0,1,-Math.sin(theta)); m.set(1,0, Math.sin(theta)); m.set(1,1, Math.cos(theta)); m.set(2,2, 1.0); return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void zRotate() {\n\t\t\n\t}", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "public float getRotateZ() { return rotateZ; }", "public void rotateZ( float angle )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.rotZ( angle );\n\t\tmat.mul( opMat );\n\t}", "void rotate(float x, ...
[ "0.7878506", "0.7466755", "0.73135215", "0.7092782", "0.7009573", "0.69555837", "0.6918366", "0.6901382", "0.68494064", "0.6824227", "0.6781541", "0.6778907", "0.6757401", "0.67133147", "0.6674749", "0.66664016", "0.66145897", "0.6493475", "0.64648926", "0.6445018", "0.642463...
0.60388
59
Private Methods Multiplies y(i)=M_ix (dot product with a single row).
private double timesRow(int i,MyPoint3D x) { return d[i][0]*x.getX() + d[i][1]*x.getY() + d[i][2]*x.getZ(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j...
[ "0.6701933", "0.66132826", "0.64722264", "0.6402359", "0.6356819", "0.6347038", "0.6248077", "0.6245773", "0.6238487", "0.6193377", "0.6165633", "0.6126732", "0.6126488", "0.60866207", "0.60855955", "0.60555464", "0.60508776", "0.60178375", "0.6009139", "0.5995921", "0.598542...
0.0
-1
Read the rotation matrix:
@Override public String readSessionInformation(BufferedReader reader, boolean merge) { String textLine = FileUtils.readLine(reader); if (textLine==null) { return "Reading rotation matrix line."; } return readSessionInformation(reader,textLine); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DMatrix3C getRotation();", "void calculateRotationMatrix() {\n R[0][0] = (float) (Math.cos(angle[0]) * Math.cos(angle[1]));\n R[1][0] = (float) (Math.sin(angle[0]) * Math.cos(angle[1]));\n R[0][1] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) - Math.sin(angle[0]) * ...
[ "0.70386183", "0.6855661", "0.64768124", "0.6414966", "0.62423855", "0.62044686", "0.618571", "0.6173442", "0.6159509", "0.60352415", "0.60268474", "0.6003769", "0.5975681", "0.5954922", "0.59498036", "0.59245247", "0.592292", "0.5914075", "0.590865", "0.58580726", "0.5851055...
0.5515337
39
Read the rotation matrix:
public String readSessionInformation(BufferedReader reader, String textLineIn) { String textLine = textLineIn; if (textLine==null) { return "Reading rotation matrix line."; } textLine = textLine.trim(); String[] ss = textLine.split("[ ]+",10); if (ss.length<9) { return "Not enoug...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DMatrix3C getRotation();", "void calculateRotationMatrix() {\n R[0][0] = (float) (Math.cos(angle[0]) * Math.cos(angle[1]));\n R[1][0] = (float) (Math.sin(angle[0]) * Math.cos(angle[1]));\n R[0][1] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) - Math.sin(angle[0]) * ...
[ "0.70386183", "0.6855661", "0.64768124", "0.6414966", "0.62423855", "0.62044686", "0.618571", "0.6173442", "0.6159509", "0.60352415", "0.6003769", "0.5975681", "0.5954922", "0.59498036", "0.59245247", "0.592292", "0.5914075", "0.590865", "0.58580726", "0.5851055", "0.5839519"...
0.60268474
10
System.out.println(" FeatureInfo String: " + result);
public void init(String result) { resultStr.setText(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFeature();", "String getFeature();", "public String getInfoString();", "public String feature() {\n return feature;\n }", "public String getFeature() {\r\n return feature;\r\n }", "@Override\n public String toString() {\n return mFeatureStructures.toString();\n }", "S...
[ "0.6781825", "0.6781825", "0.657504", "0.6564545", "0.6443367", "0.6334075", "0.63258964", "0.6173087", "0.6113375", "0.60552067", "0.6016998", "0.5986442", "0.5977848", "0.5969622", "0.5961911", "0.59471667", "0.5938622", "0.5928048", "0.59272814", "0.5925714", "0.59132326",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.next(); int[] array = new int[N.length()]; String result = ""; for(int i=0;i<N.length();i++) { array[i] = (int)N.charAt(i)-'0'; } Arrays.sort(array); for(int j=array.length-1;j>=0;j...
{ "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
Convert a String to a MessageType.
public static Result<MessageType, JSONException> fromString(String str) { return Result.ofRuntime(() -> valueOf(str)) .mapError(ignored -> new JSONException("command not recognised")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MessageType parseMessageType(String messageType) {\n MessageType mt = null;\n for(MessageType messageType1 : values()) {\n if(messageType1.name().equals(messageType)) {\n mt = messageType1;\n }\n }\n\n return mt;\n }", "public <T e...
[ "0.7217342", "0.6437474", "0.6116049", "0.6030784", "0.601958", "0.601958", "0.59887654", "0.5812574", "0.5808455", "0.5754057", "0.57092166", "0.56675005", "0.5599833", "0.5573379", "0.5533414", "0.55068547", "0.5500879", "0.5484394", "0.5457261", "0.54428464", "0.5439355", ...
0.5890625
7
/ / / /
public MKMapView() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
/ / / /
@Method(selector = "setRegion:animated:") public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int n,sum = 0; System.out.println("enter the number:"); Scanner sc=new Scanner(System.in); n=sc.nextInt(); for(int i=0;i<=n;i++){ sum=sum+i; } System.out.println("sum is: " +sum); System.out.println("------------------------------------------------------------...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by e211303 on 3/24/2016. API interfaces General API for replay state management.
public interface ReplayState<T, I> { /** @return true if the subject has reached a terminal state. */ boolean terminated(); /** * Replay contents to the given observer. * @param observer the receiver of events * @return true if the subject has caught up */ boolean replayObserver(Subj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void replay() {\n\t\tcmd = new ReplayRecordCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public interface IState \n{\n\t/**\n\t * Gets the state\n\t * \n\t * @pre none\n\t * @post returns the state as defined in the shared definitions\n\t */\n\tpublic shared.de...
[ "0.6607655", "0.63401884", "0.61592424", "0.6150541", "0.61393344", "0.6035547", "0.5986939", "0.598561", "0.59681237", "0.59241945", "0.5872595", "0.5862003", "0.5825834", "0.58208275", "0.5746807", "0.5746295", "0.57452226", "0.5739802", "0.57323074", "0.5727993", "0.569379...
0.64578307
1
Replay contents to the given observer.
boolean replayObserver(SubjectSubscriptionManager.SubjectObserver<? super T> observer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void replay() {\n for (InnerDisposable<T> rp : (InnerDisposable[]) this.observers.get()) {\n this.buffer.replay(rp);\n }\n }", "I replayObserverFromIndex(\n I idx, SubjectSubscriptionManager.SubjectObserver<? super T> observer);", "I replayObserverF...
[ "0.74213403", "0.6571156", "0.6098495", "0.5965146", "0.58885235", "0.5839954", "0.5822746", "0.56979156", "0.5654034", "0.5579722", "0.54445344", "0.53664", "0.53651977", "0.5355315", "0.52461827", "0.5230057", "0.5185858", "0.5127896", "0.5106174", "0.5093706", "0.5079831",...
0.74693376
0
Replay the buffered values from an index position and return a new index
I replayObserverFromIndex( I idx, SubjectSubscriptionManager.SubjectObserver<? super T> observer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer mutate(int index);", "private long newBufferAndOffset(E[] nextBuffer, long index)\r\n/* 222: */ {\r\n/* 223:475 */ this.consumerBuffer = nextBuffer;\r\n/* 224:476 */ this.consumerMask = (LinkedArrayQueueUtil.length(nextBuffer) - 2 << 1);\r\n/* 225:477 */ return LinkedArrayQueueUti...
[ "0.59935766", "0.5838666", "0.5830717", "0.5786531", "0.5779041", "0.57525325", "0.57290465", "0.5725044", "0.57248867", "0.56862164", "0.56792796", "0.5674554", "0.56134075", "0.5610091", "0.559925", "0.55871373", "0.55718386", "0.5551345", "0.55442286", "0.5505092", "0.5478...
0.5848894
1
Replay the buffered values from an index position while testing for stale entries and return a new index
I replayObserverFromIndexTest( I idx, SubjectSubscriptionManager.SubjectObserver<? super T> observer, long now);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateIndex() {\n int i = this.index;\n if (i == -1 || i > HashBiMap.this.size || !Objects.equal(HashBiMap.this.keys[this.index], this.key)) {\n this.index = HashBiMap.this.findEntryByKey(this.key);\n }\n }", "protected final int nextIndex() {\n\...
[ "0.6001579", "0.575533", "0.5727954", "0.564463", "0.56252956", "0.5573084", "0.550007", "0.54929304", "0.5463387", "0.54553366", "0.5440937", "0.5375598", "0.5370254", "0.53108525", "0.5308621", "0.5287324", "0.5274577", "0.52584714", "0.5245459", "0.52173567", "0.52131146",...
0.54704714
8
Add an OnNext value to the buffer
void next(T value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void onNext();", "@Override\n\t\t\t\t\tpublic void onNext(Object p1) {\n\t\t\t\t\t}", "void onNext(T item);", "protected abstract void onNewNext(T t);", "@Override\n public void onNext(Void aVoid) {\n }", "@Override\n public void on...
[ "0.6900522", "0.666959", "0.6578822", "0.6515503", "0.6446011", "0.62715197", "0.6246077", "0.5993429", "0.5843866", "0.5806261", "0.5783926", "0.5732113", "0.5656993", "0.5653539", "0.5650458", "0.5647323", "0.5639855", "0.5639085", "0.56258357", "0.5621151", "0.5616576", ...
0.6105589
7
Add an OnCompleted exception and terminate the subject
void complete();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void taskFinished(Throwable t);", "void complete() {\n try {\n try {\n subscriber.onComplete();\n } catch (Throwable e) {\n Exceptions.handleUncaught(Conformance.onCompleteThrew(e));\n }\n } finally {\n ...
[ "0.65650773", "0.61948603", "0.604851", "0.6010226", "0.58855313", "0.58359057", "0.58109677", "0.57388514", "0.57337797", "0.57142675", "0.5685713", "0.5644306", "0.56376284", "0.5626602", "0.5614355", "0.5607882", "0.56037796", "0.55909383", "0.55706817", "0.5538115", "0.55...
0.0
-1
Copy the current values (minus any terminal value) from the buffer into the array or create a new array if there isn't enough room.
T[] toArray(T[] a);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getBufferAndFlush() {\r\n\t\tString[] answer = new String[this.BUFFER.getSize()];\r\n\r\n\t\tfor (int i = 0; i < answer.length; i++)\r\n\t\t\tanswer[i] = this.BUFFER.remove();\r\n\r\n\t\treturn answer;\r\n\t}", "public int[] toArray() {\n return Arrays.copyOf(buffer, elementsCount);\n }...
[ "0.60725766", "0.5932532", "0.5895393", "0.5620845", "0.5603334", "0.55717784", "0.55674475", "0.5547964", "0.55476254", "0.5535233", "0.5518511", "0.55051696", "0.5476427", "0.5464652", "0.5449132", "0.5427052", "0.54217184", "0.5416602", "0.5392184", "0.53866374", "0.537900...
0.0
-1
Returns the latest value that has been buffered or null if no such value present.
T latest();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E pollLast() {\r\n\t\tif (isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tE ret = (E) data.get(data.size() - 1);\r\n\t\tdata.remove(data.size() - 1);\r\n\t\treturn ret;\r\n\t}", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\...
[ "0.68346936", "0.67748296", "0.67212117", "0.6687552", "0.6436464", "0.6401183", "0.6398918", "0.6355749", "0.6321633", "0.6307649", "0.6300775", "0.6157277", "0.6157098", "0.61472964", "0.6058", "0.60370314", "0.6032514", "0.60274005", "0.6013877", "0.6010723", "0.5984883", ...
0.0
-1
It is the main function
public static void main(String args[]) { f=new steg(); f.setSize(800,800); f.setTitle("STEGANOGRAPHY "); f.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main()\n\t{\n\t}", "public static void main(){\n\t}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(Strin...
[ "0.78501505", "0.7673759", "0.76420206", "0.7559538", "0.7514963", "0.7502621", "0.7405485", "0.73506206", "0.734914", "0.73310703", "0.73179835", "0.73142284", "0.73142284", "0.73142284", "0.73142284", "0.73142284", "0.73142284", "0.7303846", "0.7303846", "0.73014796", "0.73...
0.0
-1
It reads the encrypted data from the image
public void init241() { width= p2[21]<<24 | p2[20]<<16 | p2[19]<<8 | p2[18]; height= p2[25]<<24 | p2[24]<<16 | p2[23]<<8 | p2[22]; int extra=(width*3)%4; if(extra!=0) padding=4-extra; int x,z=54; l=0; in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] getEncryptedContent() throws CoseException{\n if (rgbEncrypt == null) throw new CoseException(\"No Encrypted Content Specified\");\n \n return rgbEncrypt;\n }", "public void readDataFromFile(View view) throws GeneralSecurityException, IOException {\n encryptedFile = n...
[ "0.6370612", "0.62066126", "0.61649454", "0.5901222", "0.5722494", "0.5721898", "0.5671536", "0.56549835", "0.56174994", "0.56144613", "0.560085", "0.55910975", "0.55910975", "0.55910975", "0.55910975", "0.558564", "0.5534256", "0.55155694", "0.5481103", "0.5461444", "0.54566...
0.0
-1
It converts the data obtained from the image into binary data
public void stringcon() { int i,j,k; int temp[]=new int[8]; int a[]=new int[32]; i=0; j=0; for(i=0;i<10000;i++) bytes[i]=0; i=0; maxbinary1=0; for(i=0;i<24;i++) a[i]=binary[i]; for(i=0;i<24;i++) maxbinary1+=a[i]*Math.pow(2,23-i); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native byte[] imageToBlob(ImageInfo imageInfo);", "public byte[] get_byte_data(BufferedImage image) {\n WritableRaster raster = image.getRaster();\n DataBufferByte buffer = (DataBufferByte) raster.getDataBuffer();\n return buffer.getData();\n }", "private byte[] i...
[ "0.68547195", "0.6737765", "0.6722451", "0.6596411", "0.6534461", "0.6529222", "0.6407696", "0.636699", "0.6366107", "0.6338203", "0.6338203", "0.6338203", "0.6338203", "0.631516", "0.6297488", "0.6248478", "0.6223186", "0.6205343", "0.6159953", "0.6108813", "0.5980674", "0...
0.0
-1
It opens the text file and converts the data into cipher text
public void opentextfile(String path1) { FileInputStream fin,fin1; int i,j=0; String s=JOptionPane.showInputDialog(this,"Enter key with 16 letters"); char ch[]=new char[s.length()]; ch=s.toCharArray(); try { File...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readDataFromFile(View view) throws GeneralSecurityException, IOException {\n encryptedFile = new EncryptedFile.Builder(\n context,\n new File(MainActivity.this.getFilesDir(),\"test.txt\"), // File want to read\n mainKey, // Master key for encryption\...
[ "0.6926417", "0.67512655", "0.66810083", "0.65449506", "0.576895", "0.5750334", "0.5740568", "0.57085997", "0.57060945", "0.56314886", "0.5616689", "0.56040823", "0.5588604", "0.55769867", "0.55652267", "0.55149835", "0.5483514", "0.54832304", "0.5467983", "0.5459097", "0.545...
0.5974969
4
It converts the encrypted data into binary data
public void binarycon() { int i,j,k,t; int temp[]=new int[10]; int m=0; for(i=0;i<600000;i++) binary[i]=0; int b[]=new int[32]; int dum; dum=max; i=0; while(dum!=0) { b[i]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] process(byte[] data) throws Exception {\r\n\t\t\tif (data == null || data.length != 8) {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Argument 'data' must be 8 bytes (64 bits)\");\r\n\t\t\t}\r\n\t\t\tint transformedLength = cipher.getOutputSize(data.length);\r\n\t\t\tbyte[] transformedData = new b...
[ "0.60807556", "0.6069512", "0.6069512", "0.6069512", "0.6069512", "0.6059566", "0.6044065", "0.6044065", "0.5988122", "0.59141016", "0.58816546", "0.5871909", "0.58565414", "0.5845296", "0.5800529", "0.57908297", "0.5775746", "0.5737777", "0.5736748", "0.5720678", "0.5677366"...
0.0
-1
It opens the image file and hides the data in images
public void openimagefile(String fn,int sno) { try { i=0; FileInputStream fis = new FileInputStream(fn); DataInputStream dis=new DataInputStream(fis); while((ch=dis.readUnsignedByte())!=-1) { p[i]=ch; p1[i]=ch; i++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hidePics(){\n\t\t\tfor (int i = 0; i < 3; i++)\n\t\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\t\tpics[i][j].setVisible(false);\n\t\t}", "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\...
[ "0.64555657", "0.62676626", "0.6207651", "0.61660725", "0.6101619", "0.60968846", "0.60757947", "0.60743743", "0.60560095", "0.6026526", "0.60242933", "0.5977768", "0.59182715", "0.5911839", "0.59081966", "0.59024185", "0.58983207", "0.58976036", "0.5880383", "0.58020115", "0...
0.5563681
44
openfile ends It hides the binary data in the least significant bit of the image
public void init24() { width= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18]; height= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22]; int extra=(width*3)%4; if(extra!=0) padding=4-extra; int x,z=54; l=0; int j=0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage open(String id, int no)\n throws FormatException, IOException\n {\n if (!id.equals(currentId)) initFile(id);\n \n if (no < 0 || no >= getImageCount(id)) {\n throw new FormatException(\"Invalid image number: \" + no);\n }\n \n // First initialize:\n in.seek(offse...
[ "0.62628454", "0.6158847", "0.5945291", "0.5902", "0.5835235", "0.56020635", "0.55871546", "0.5575149", "0.5551728", "0.55357707", "0.5503908", "0.549602", "0.53277695", "0.53188646", "0.53051555", "0.5292985", "0.52864426", "0.5283837", "0.52622825", "0.5234493", "0.52068764...
0.0
-1
It generates 52 keys which is used to encrypt the data
void procedure() { try { fkey=new FileInputStream(file2); } catch(Exception e) { System.out.println(e); } keybuf= new byte[16]; try { fkey.read(keybuf); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String ke...
[ "0.7148992", "0.70701253", "0.7026112", "0.701586", "0.6948425", "0.6832915", "0.6805064", "0.67139417", "0.6678743", "0.66774654", "0.6671068", "0.6629034", "0.6561478", "0.65556794", "0.6536969", "0.6524178", "0.64922523", "0.6436647", "0.6436647", "0.63937074", "0.63846153...
0.57218444
90
This function encrypts the data using 52 keys and place the //o/p in a file
void encrypt() { try { size=fin.available(); p=size%8; if(p!=0) np=8-p; size+=np; if(p==0) nl=size/8; else nl=size/8+1; buf=new byte[8]; buf1=new byte[size+10]; fin.read(buf1); int en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OutputFile encryptingOutputFile();", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileI...
[ "0.7519572", "0.73924416", "0.70577127", "0.69228834", "0.68532443", "0.66753924", "0.66217965", "0.6541634", "0.6503229", "0.63254297", "0.6289588", "0.62834305", "0.6200167", "0.61731523", "0.616838", "0.615262", "0.613044", "0.61103934", "0.61023027", "0.6075133", "0.60238...
0.6058754
20
This function decrypts the data which in text file by using 52 keys
void decryption(String file) { try { fdec=new DataOutputStream(new FileOutputStream("dec.txt")); fenc1=new FileInputStream(file); } catch(Exception e) { System.out.println(e); } try { size=fenc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void runDecrypt(String filePath) {\n try {\n byte[] paramArrayOfbyte = Files.readAllBytes(Paths.get(filePath));\n if (paramArrayOfbyte.length >= 1024 && ((paramArrayOfbyte[0] == 73 && paramArrayOfbyte[1] == 71\n && paramArrayOfbyte[2] == 69 && paramArrayOfbyte...
[ "0.72404695", "0.70562214", "0.6938328", "0.67914814", "0.66123295", "0.65946054", "0.65827274", "0.65657276", "0.6468313", "0.6445604", "0.6277517", "0.6267178", "0.6241336", "0.62179375", "0.6182292", "0.61812955", "0.61703485", "0.6159048", "0.6080669", "0.60492885", "0.60...
0.7316792
0
It multiplies two numbers and returns (ab)%65537
int mul( int a , int b) { double c,d; if (a==0) c=65536; if(b==0) d=65536; c=(double)a; d=(double)b; a= (int)((c*d)%65537); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. i...
[ "0.6787988", "0.66366357", "0.6591648", "0.651365", "0.6501512", "0.6426463", "0.6281901", "0.6116628", "0.611173", "0.6088869", "0.60771424", "0.6039374", "0.60372263", "0.6026559", "0.6018412", "0.6009468", "0.59974384", "0.5968792", "0.5923944", "0.59104186", "0.58942175",...
0.7887663
0
It returns the multiplicative inverse modulo 65537 of z
int minverse(int z) { int to,t1; int q,y; if(z<=1) return z; t1=0x10001/z; y=0x10001%z; if(y==1) return (0xffff&(1-t1)); to=1; do { q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int ainverse(int z)\n {\n return (65536-z);\n }", "public static double inverseSquare(double z){ //TODO: This needs a little love. Should probably use the repel method instead.\n boolean positive = z >= 0;\n z += positive? 1:(-1);\n double s...
[ "0.778067", "0.639217", "0.6385185", "0.6111918", "0.5846904", "0.5837657", "0.5832245", "0.58249086", "0.5799687", "0.5679355", "0.5656584", "0.56472445", "0.5640302", "0.5626046", "0.5601423", "0.5599251", "0.5590304", "0.55807996", "0.5545214", "0.55431056", "0.5542029", ...
0.6458997
1
It return the additive inverse of z
int ainverse(int z) { return (65536-z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double inverseSquare(double z){ //TODO: This needs a little love. Should probably use the repel method instead.\n boolean positive = z >= 0;\n z += positive? 1:(-1);\n double square = Math.pow(z,2);\n return positive? 1/square:square;\n }", "Matrix InverseT()\n {\n ...
[ "0.7178958", "0.6150118", "0.6141441", "0.6020324", "0.5948845", "0.57555944", "0.57495636", "0.57223505", "0.5703836", "0.5646365", "0.5632647", "0.5622921", "0.5618788", "0.557676", "0.557676", "0.557676", "0.5527771", "0.5523165", "0.5514064", "0.5438532", "0.54328907", ...
0.73771346
0
Default constructor for test class Segment1Test
public Segment1Test() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SegmentTree() {}", "public ZTest1() {\n this(\"z_test1\", null);\n }", "public SegmentInformationTable()\n\t{\n\n\t}", "@Test\n public void constructorTest() throws IOException {\n LogSegment segment = getSegment(\"log_current\", LogSegmentTest.STANDARD_SEGMENT_SIZE, false);\n ...
[ "0.7204998", "0.6777912", "0.67096615", "0.6623738", "0.65404665", "0.64950246", "0.644031", "0.6407246", "0.6402404", "0.63869244", "0.6383983", "0.63393605", "0.6335447", "0.6322168", "0.63196105", "0.6307264", "0.6306414", "0.62477", "0.62448055", "0.6194718", "0.6190053",...
0.90371186
0
Sets up the test fixture. Called before every test case method.
@Before public void setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before public void setUp() { }", "protected void setUp() {\n\t}", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "protected void setUp() {\n\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", ...
[ "0.7875802", "0.78508884", "0.7750591", "0.7750591", "0.77189946", "0.7699059", "0.7699059", "0.7699059", "0.7699059", "0.7699059", "0.768649", "0.76622325", "0.7629051", "0.7627999", "0.7623902", "0.76179224", "0.76017296", "0.7595511", "0.7594185", "0.7586097", "0.75814986"...
0.7462182
58
Tears down the test fixture. Called after every test case method.
@After public void tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "@After\n public void tearDown() {\n fixture = null;\n }", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "@AfterTest\n\tpublic void teardown()\n\t{\n\t\t\n\t\tdriver.close();\n\t}", "pro...
[ "0.8343327", "0.8295237", "0.80239624", "0.80069876", "0.79356796", "0.79144764", "0.78988177", "0.78834516", "0.78801274", "0.7873192", "0.7862262", "0.7791972", "0.7791972", "0.77516323", "0.773132", "0.77117425", "0.7695534", "0.7691877", "0.767808", "0.76658434", "0.76589...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); String inputString; do { System.out.print(">"); inputString = sc.nextLine(); System.out.println(inputString); }while(!inputString.equals("q")); System.out.println("end"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Creates a new instance of JTextAreaAdapter
public J2DAreaAdapter(SwingDesigner designer, Component component) { super(designer, component); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TEXTAREA createTEXTAREA();", "void init(RichTextArea textArea, Config config);", "private JTextArea initializeChatArea() {\r\n\t\t// create and set properties of chat area.\r\n\t\tchatArea = new JTextArea();\r\n\t\tchatArea.setEditable(false);\r\n\t\tchatArea.setAutoscrolls(true);\r\n\t\tchatArea.setFont(new F...
[ "0.66755235", "0.63999176", "0.6375636", "0.61590457", "0.60340947", "0.5929267", "0.592778", "0.5925644", "0.5917901", "0.5877851", "0.58162284", "0.57809323", "0.5750643", "0.5699874", "0.5671469", "0.5653839", "0.5651041", "0.5622375", "0.5498631", "0.54765844", "0.5447936...
0.53482646
29
Insertion d'une collection d'objets.
public void saveList(List<T> ListObject) throws DaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long insertObjs(Collection<T> t) {\n\t\treturn insertObjs(false, t);\n\t}", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "@Override\n\tpublic void insert(Unidade obj) {\n\n\t}", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insert(\n Collection<? extends Conte...
[ "0.7279337", "0.701082", "0.6927793", "0.67186624", "0.6717179", "0.6645136", "0.6593111", "0.65545714", "0.65017414", "0.64688885", "0.6465261", "0.6404409", "0.6394096", "0.636218", "0.633605", "0.62721664", "0.62537223", "0.62066644", "0.62004817", "0.61336267", "0.6121288...
0.0
-1
Modification d'une collection d'objets.
public void updateList(List<T> ListObject) throws DaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection() {\n\t\tdb.close();\n\t\tEmbeddedConfiguration config = Db4oEmbedded.newConfiguration();\n\t\tconfig.common().objectClass(Car.class).cascadeOnUpdate(true);\n\t\tdb = Db4oEmbedded.openFile(config, DB4OFILENAME);\n\t\tObjectSet<Car> results = db...
[ "0.60899", "0.6041123", "0.5847127", "0.5821891", "0.5814912", "0.5776313", "0.5769907", "0.5694286", "0.5682128", "0.56672215", "0.56573004", "0.5626837", "0.5621934", "0.5610463", "0.5606564", "0.5598287", "0.5593051", "0.5577678", "0.5575545", "0.5567408", "0.55516887", ...
0.0
-1
public T getFromId(U id) throws DaoException ;
public T getFromId(U id, Class<T> clazz) throws DaoException ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getById(int id);", "T get(PK id);", "T getById(ID id);", "T get(Integer id);", "T getById(PK id);", "T get(ID id);", "T getById(Long id);", "T getbyId(I id);", "T queryForId(ID id) throws SQLException, DaoException;", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();...
[ "0.8493229", "0.84843236", "0.8435004", "0.83929235", "0.8384984", "0.8310041", "0.8301448", "0.8198754", "0.80903053", "0.7987158", "0.79735297", "0.79240113", "0.79207504", "0.78955483", "0.7854958", "0.7788961", "0.77643836", "0.7748939", "0.7731292", "0.7730835", "0.76609...
0.85406077
0
timecomplexity o(n), 2 pass
public int[] twoSum2(int[] nums, int target) { int[] res = new int[2]; int n = nums.length; Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < n; i++) { map.put(nums[i], i); } for (int i = 0; i < n; i++) { int key = target - nums[i]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.75540406", "0.7213416", "0.674471", "0.66593415", "0.66478616", "0.6585524", "0.6566015", "0.65655226", "0.6504032", "0.64850265", "0.6316463", "0.6275747", "0.6186475", "0.6096684", "0.60862505", "0.60699815", "0.60645646", "0.6049371", "0.6028631", "0.60229355", "0.60190...
0.0
-1
timecomplexity o(n), 1 pass
public int[] twoSum3(int[] nums, int target) { int[] res = new int[2]; int n = nums.length; Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < n; i++) { int key = target - nums[i]; if (map.containsKey(key) && map.get(key) != i) { res[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.7479313", "0.7225663", "0.6784904", "0.6668255", "0.6602834", "0.65659463", "0.6544435", "0.65185237", "0.64167666", "0.6392589", "0.6290618", "0.6255823", "0.61544806", "0.6108323", "0.6096053", "0.60724777", "0.60719323", "0.6053215", "0.605134", "0.6014717", "0.6008136"...
0.0
-1
handle passed in arguments
public static void main(String[] args) throws Exception { handleArguments(args); // grab current to timestamp in order // to label collected data with time Date collectionTime = new Date(System.currentTimeMillis()); if(initIndexesOnlyOption) { initIndexesOnly(collectionTime); // no need to go furt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "protected abstract void handle(Object... params);", "private static void processArguments(String[] args) {\r\n if (args.length < 2) {\r\n IO.displayGUI(args.length + \" arguments provided.\\nPlease provide input an...
[ "0.7407294", "0.7329224", "0.71868765", "0.7124378", "0.7124378", "0.6884152", "0.6833146", "0.66601396", "0.6488895", "0.64847136", "0.6453911", "0.64322054", "0.64025956", "0.63713485", "0.6259709", "0.6240963", "0.6238977", "0.62381375", "0.62313616", "0.621386", "0.620844...
0.0
-1
Handles passed in arguments
private static void handleArguments(String[] args) { if ( args.length > 0 && args[0].contains("--help")) { System.err.println (menuString); System.err.println("Example queue name are: *"); System.exit(0); } else { int i = 0; String arg; while (i < args.length && args[i].startsWith("--")) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "protected abstract void handle(Object... params);", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "priv...
[ "0.7505958", "0.73209107", "0.70690227", "0.70690227", "0.7028491", "0.65349096", "0.63855493", "0.6384049", "0.63309014", "0.63118297", "0.62488586", "0.62216043", "0.62025565", "0.6188382", "0.617088", "0.61045027", "0.60923153", "0.6069765", "0.6036577", "0.6007893", "0.60...
0.6720719
5