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
The range type of features may include special uima types that are not creatable, such as the primitive ones like integer, or string, or subtypes of string. Other types are reference types
boolean classifyAsRefType(String name, TypeImpl superType) { switch (name) { case CAS.TYPE_NAME_BOOLEAN: case CAS.TYPE_NAME_BYTE: case CAS.TYPE_NAME_SHORT: case CAS.TYPE_NAME_INTEGER: case CAS.TYPE_NAME_LONG: case CAS.TYPE_NAME_FLOAT: case CAS.TYPE_NAME_DOUBLE: case CAS.TYPE_NAME_STRING: // case CAS.TYPE_NAME_JAVA_OBJECT: // case CAS.TYPE_NAME_MAP: // case CAS.TYPE_NAME_LIST: return false; } // superType is null for TOP, which is a Ref type if (superType != null && superType.getName().equals(CAS.TYPE_NAME_STRING)) { // can't compare to // stringType - may // not be set yet return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int range(int feat) {\n return ((TypeImpl) (this.features.get(feat).getRange())).getCode();\n }", "RangeOfValuesType createRangeOfValuesType();", "public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}", "@Override\n public boolean i...
[ "0.62737083", "0.61781746", "0.5837374", "0.5688994", "0.56595343", "0.56301934", "0.5594899", "0.5553501", "0.55495405", "0.548708", "0.54615885", "0.54587936", "0.5438825", "0.54330593", "0.5420381", "0.5420381", "0.5396973", "0.5371446", "0.53542215", "0.5341566", "0.53415...
0.0
-1
/ note that subtypes of String are considered primitive
@Override public boolean ll_isPrimitiveType(int typeCode) { return !ll_isRefType(typeCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract SimpleType doParseString(String s);", "public boolean isPrimitiveOrString(String fieldType) {\n return fieldType.equals(\"int\") || fieldType.equals(\"short\") || fieldType.equals(\"long\") ||\n fieldType.equals(\"byte\") || fieldType.equals(\"char\") || fieldType.equals(\"float\") ||\...
[ "0.66242206", "0.6609504", "0.6488803", "0.62350535", "0.62097955", "0.61951643", "0.61940837", "0.6187201", "0.61868954", "0.6132897", "0.6087109", "0.6041826", "0.604018", "0.60365427", "0.59999985", "0.5981759", "0.5978914", "0.5978673", "0.5963686", "0.59635043", "0.59486...
0.0
-1
Get the range type for a feature.
public int range(int feat) { return ((TypeImpl) (this.features.get(feat).getRange())).getCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FeatureType getType();", "com.google.cloud.vision.v1p3beta1.Feature.Type getType();", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType.Enum getFeatureType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xm...
[ "0.6032708", "0.59727514", "0.5775364", "0.56539464", "0.5650306", "0.5646258", "0.54871863", "0.53701186", "0.5331632", "0.52814054", "0.526195", "0.5180934", "0.51800704", "0.5165186", "0.5140208", "0.5121019", "0.5119185", "0.50798756", "0.5067376", "0.5067287", "0.5054973...
0.71860605
0
For a given JCasRegistry index, that doesn't have a corresponding UIMA type, throw an appropriate exception
private void throwMissingUIMAtype(int typeIndex) { Class<? extends TOP> cls = JCasRegistry.getClassForIndex(typeIndex); if (cls == null) { throw new CASRuntimeException(CASRuntimeException.JCAS_UNKNOWN_TYPE_NOT_IN_CAS); } String className = cls.getName(); UIMAFramework.getLogger().error( "Missing UIMA type, JCas Class name: {}, index: {}, jcasRegisteredTypes size: {}", className, typeIndex, jcasRegisteredTypes.size()); dumpTypeSystem(); throw new CASRuntimeException(CASRuntimeException.JCAS_TYPE_NOT_IN_CAS, className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test163() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance0.assign(resultMatrixLatex0);\n ...
[ "0.5051994", "0.5036055", "0.49255177", "0.4883107", "0.4851077", "0.48104504", "0.48067546", "0.48032254", "0.47940284", "0.47888857", "0.47826782", "0.47647688", "0.47584385", "0.4743271", "0.4740138", "0.47389016", "0.47243816", "0.4723473", "0.47139692", "0.4702221", "0.4...
0.7246283
0
debug compare two type systems, print first different type
public static void compareTs(TypeSystem t1, TypeSystem t2) { TypeSystemImpl ts1 = (TypeSystemImpl) t1; TypeSystemImpl ts2 = (TypeSystemImpl) t2; if (ts1.types.size() != ts2.types.size()) { System.out.format("ts1 size: %,d ts2 size: %d%n", ts1.types.size(), ts2.types.size()); } for (int i = 1; i < ts1.types.size(); i++) { if (ts1.types.get(i).hashCode() != ts2.types.get(i).hashCode()) { System.out.format("ts1 type: %s%n%nts2 type: %s%n", ts1.types.get(i), ts2.types.get(i)); } } System.out.println("done"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingPa...
[ "0.658238", "0.65233666", "0.6407528", "0.61199766", "0.61147326", "0.6104605", "0.60741127", "0.60424125", "0.6028617", "0.6009416", "0.5986636", "0.5969378", "0.59354633", "0.58916163", "0.5804332", "0.5753205", "0.56799924", "0.5654627", "0.5540889", "0.553441", "0.5524491...
0.736789
0
Called when switching or initializing CAS's sharedviewdata instance of FsGenerator[] generators are kept in a map, unique for each type system, keyed by classloader.
public FsGenerator3[] getGeneratorsForClassLoader(ClassLoader cl, boolean isPear) { Map<ClassLoader, FsGenerator3[]> gByC = isPear ? generators4pearsByClassLoader : generatorsByClassLoader; synchronized (gByC) { FsGenerator3[] g = gByC.get(cl); // a separate map per type system instance if (g == null && !skip_loading_user_jcas) { g = FSClassRegistry.getGeneratorsForClassLoader(cl, isPear, this); gByC.put(cl, g); } return g; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}", "public static void startCaching() {\n\t\t/*\n\t\t * component caching happ...
[ "0.6265522", "0.6072752", "0.58185214", "0.5480921", "0.54400545", "0.5392744", "0.52979887", "0.5240906", "0.5217781", "0.51939344", "0.5147649", "0.5039523", "0.5003543", "0.5003543", "0.50032705", "0.500131", "0.50010073", "0.4992885", "0.4985145", "0.49733296", "0.4965780...
0.62399364
1
TODO Autogenerated method stub
public static void main(String[] args) { int[] number = {1,-2,3,-4,5,-6,7,-8}; System.out.print(findMaxSubArr(number)); }
{ "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
public static void main(String[] args) { Animal an = new Cat(); //使用instanceof运算符 进行判断 boolean b = an instanceof Dog; if(b){ Dog dd = (Dog)an; dd.lookHome(); } boolean b1 = an instanceof Cat; if(b1){ Cat c = (Cat)an; c.catchMouse(); } }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Creates an empty set of capabilities.
public Capabilities() { super(); this.caps = new HashSet<ICapability>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Capabilities getCapabilities() {\n\t\treturn null;\n\t}", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.NUMERIC_ATTRIBUTES);\n result.enable(...
[ "0.6454937", "0.644862", "0.6401434", "0.6352232", "0.6339231", "0.6313731", "0.6126226", "0.6104332", "0.60687035", "0.6016434", "0.6002618", "0.5991751", "0.59905505", "0.5965946", "0.592177", "0.5739697", "0.56750727", "0.5629098", "0.5534002", "0.545915", "0.544316", "0...
0.71422845
0
Part of Page358 class
public interface Page358InterfaceB { public void something(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void process(Page page) {\n\t\t\n\t}", "Page getPage();", "PageAgent getPage();", "public Page getPage() {return page;}", "@Override\r\n\tpublic void visit(Page page) {\r\n\t\t// Some business logic I won't expose here\r\n\t\t// My boss won't be happy ;-)\r\n\t}", "public abstract Adv...
[ "0.6770486", "0.65238047", "0.6492816", "0.6446433", "0.6398296", "0.63322467", "0.63131857", "0.62939906", "0.62844664", "0.62776893", "0.61872596", "0.6143667", "0.6143667", "0.6143667", "0.60288996", "0.598946", "0.598556", "0.593334", "0.5923234", "0.5910476", "0.59005386...
0.567885
49
Deletes the entire entry from the registry. Everything related to the schema id is deleted completely. All versions of schema are also deleted.
@DELETE @Path("contexts/{context}/schemas/{id}") @TransactionPolicy(value = TransactionControl.EXPLICIT) public void delete(HttpServiceRequest request, HttpServiceResponder responder, @PathParam("context") String namespace, @PathParam("id") String id) { respond(request, responder, namespace, ns -> { NamespacedId namespacedId = new NamespacedId(ns, id); TransactionRunners.run(getContext(), context -> { SchemaRegistry registry = SchemaRegistry.get(context); if (registry.hasSchema(namespacedId)) { throw new NotFoundException("Id " + id + " not found."); } registry.delete(namespacedId); }); return new ServiceResponse<Void>("Successfully deleted schema " + id); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteTapSchema(SchemaConfig schemaConfig) throws ConfigurationException;", "public void delete() {\r\n\t\tfor (int i = 0; i <= DatabaseUniverse.getDatabaseNumber(); i++) {\r\n\t\t\tif (this.equals(DatabaseUniverse.getDatabases(i))) {\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().set(i, null);\r\n\t\...
[ "0.6158945", "0.58739823", "0.58460593", "0.5823815", "0.57311654", "0.56893504", "0.5688742", "0.5683057", "0.56500995", "0.56256515", "0.5621022", "0.5619622", "0.5581406", "0.5558257", "0.5547812", "0.5547812", "0.5547812", "0.5547812", "0.5530453", "0.55212456", "0.550526...
0.551074
20
Deletes a version of schema from the registry for a given schema id.
@DELETE @Path("contexts/{context}/schemas/{id}/versions/{version}") @TransactionPolicy(value = TransactionControl.EXPLICIT) public void delete(HttpServiceRequest request, HttpServiceResponder responder, @PathParam("context") String namespace, @PathParam("id") String id, @PathParam("version") long version) { respond(request, responder, namespace, ns -> { TransactionRunners.run(getContext(), context -> { SchemaRegistry registry = SchemaRegistry.get(context); registry.remove(new NamespacedId(ns, id), version); }); return new ServiceResponse<Void>("Successfully deleted version '" + version + "' of schema " + id); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(String namespace, String id, long version) throws StageException;", "@DELETE\n @Path(\"contexts/{context}/schemas/{id}\")\n @TransactionPolicy(value = TransactionControl.EXPLICIT)\n public void delete(HttpServiceRequest request, HttpServiceResponder responder, @PathParam(\"context\") String...
[ "0.6504976", "0.62968665", "0.60491514", "0.5946633", "0.58214897", "0.57004184", "0.55850255", "0.55736977", "0.5523947", "0.552237", "0.54842865", "0.54834914", "0.54815567", "0.5464542", "0.5464542", "0.5464542", "0.5464542", "0.5464542", "0.5424646", "0.54199106", "0.5417...
0.60147375
3
Returns information of schema, including schema requested along with versions available and other metadata.
@GET @Path("contexts/{context}/schemas/{id}/versions/{version}") @TransactionPolicy(value = TransactionControl.EXPLICIT) public void get(HttpServiceRequest request, HttpServiceResponder responder, @PathParam("context") String namespace, @PathParam("id") String id, @PathParam("version") long version) { respond(request, responder, namespace, ns -> TransactionRunners.run(getContext(), context -> { SchemaRegistry registry = SchemaRegistry.get(context); return new ServiceResponse<>(registry.getEntry(new NamespacedId(ns, id), version)); })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SchemaInfo getSchema () throws Exception;", "public SchemaInfo readServerSchema() {\n String path = \"/schema\";\n Span span = this.tracer.buildSpan(\"Client.Schema\").start();\n try {\n try (CloseableHttpResponse response = clientExecute(\"GET\", path, null, null, \"Error ...
[ "0.7784788", "0.75334895", "0.72826403", "0.720396", "0.7051208", "0.6917939", "0.69112957", "0.68779814", "0.68667674", "0.68486786", "0.68118656", "0.68118656", "0.67944247", "0.672049", "0.67127734", "0.6697481", "0.6695607", "0.6676586", "0.6636893", "0.6614124", "0.65661...
0.0
-1
Returns information of schema, including schema requested along with versions available and other metadata. This call will automatically detect the currect active version of schema.
@GET @Path("contexts/{context}/schemas/{id}") @TransactionPolicy(value = TransactionControl.EXPLICIT) public void get(HttpServiceRequest request, HttpServiceResponder responder, @PathParam("context") String namespace, @PathParam("id") String id) { respond(request, responder, namespace, ns -> TransactionRunners.run(getContext(), context -> { SchemaRegistry registry = SchemaRegistry.get(context); return new ServiceResponse<>(registry.getEntry(new NamespacedId(ns, id))); })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SchemaInfo getSchema () throws Exception;", "public SchemaInfo readServerSchema() {\n String path = \"/schema\";\n Span span = this.tracer.buildSpan(\"Client.Schema\").start();\n try {\n try (CloseableHttpResponse response = clientExecute(\"GET\", path, null, null, \"Error ...
[ "0.73991203", "0.73153317", "0.6965529", "0.6925714", "0.69086146", "0.67770565", "0.6713986", "0.657709", "0.65618986", "0.6528551", "0.65276664", "0.64868206", "0.64843404", "0.64792126", "0.64710605", "0.646825", "0.646825", "0.64365447", "0.6420906", "0.638471", "0.637026...
0.0
-1
Returns list of versions for a give schema id.
@GET @Path("contexts/{context}/schemas/{id}/versions") @TransactionPolicy(value = TransactionControl.EXPLICIT) public void versions(HttpServiceRequest request, HttpServiceResponder responder, @PathParam("context") String namespace, @PathParam("id") String id) { respond(request, responder, namespace, ns -> TransactionRunners.run(getContext(), context -> { SchemaRegistry registry = SchemaRegistry.get(context); return new ServiceResponse<>(registry.getVersions(new NamespacedId(ns, id))); })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/{id}/version/\")\n public List<VersionDTO> getVersions(@PathParam(\"id\") final long id) {\n return service.getVersions(id);\n }", "public Set<Long> allVersions(String namespace, String id);", "public List<String> versions(final PomId i...
[ "0.6987638", "0.69872606", "0.6786042", "0.6423249", "0.632254", "0.62399256", "0.61868197", "0.6173184", "0.61084425", "0.61018354", "0.599258", "0.5900485", "0.57517046", "0.5715556", "0.5547644", "0.5510818", "0.5464544", "0.5437549", "0.54254174", "0.54253656", "0.5410671...
0.6136618
8
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JToggleButton tglbtnOn = new JToggleButton("LED"); tglbtnOn.setBackground(Color.WHITE); tglbtnOn.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { //post cde try { //String POST_PARAMS=tglbtnOn.getText().toString(); //String s1="{\n" + " \"tglbtnOn\"" + "\n }"; String s1 ="{\n" + " \"userid :\"" + "\r\n }"; if(tglbtnOn.isSelected()) { tglbtnOn.setText("LED ON"); tglbtnOn.setBackground(Color.GREEN); }else { tglbtnOn.setBackground(Color.RED); tglbtnOn.setText("LED OFF"); } System.out.println(tglbtnOn); URL obj = new URL("https://desktop-application-f68b7.firebaseio.com/post.json "); HttpURLConnection postConnection = (HttpURLConnection) obj.openConnection(); postConnection.setRequestMethod("POST"); postConnection.setRequestProperty("userId", "a1bcdefgh"); postConnection.setRequestProperty("Content-Type", "application/json"); postConnection.setDoOutput(true); // POST_PARAMS=tglbtnOn.getText().toString(); OutputStream os = postConnection.getOutputStream(); os.write(s1.getBytes()); os.flush(); os.close(); int responseCode = postConnection.getResponseCode(); System.out.println("POST Response Code : " + responseCode); System.out.println("POST Response Message : " + postConnection.getResponseMessage()); if (responseCode == HttpURLConnection.HTTP_CREATED) { // success BufferedReader in = new BufferedReader(new InputStreamReader(postConnection.getInputStream())); String inputLine; StringBuffer response = new StringBuffer(); while ((inputLine = in.readLine()) != null) { response.append(inputLine); } in.close(); // print result System.out.println(response.toString()); } } catch(Exception E) { System.out.println("POST NOT WORKED"); } } }); tglbtnOn.setBounds(145, 71, 121, 23); frame.getContentPane().add(tglbtnOn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.7768924", "0.7563384", "0.74402106", "0.73670715", "0.73646426", "0.73560405", "0.7312289", "0.7306752", "0.7296544", "0.72960514", "0.72767645", "0.7270245", "0.72680706", "0.72680706", "0.72132725", "0.7179349", "0.71677345", "0.71392596", "0.7139034", "0.7125148", "0.71...
0.0
-1
Template method: a method that contains a full prrocess where every action is encapsulated in a function. Any function could be overriden in the subclass to change that part of the process
public void makeTea() { boil(); addSugar(); addTea(); serve(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public ab...
[ "0.6712487", "0.6712487", "0.6494706", "0.6494706", "0.6494706", "0.6494706", "0.6492496", "0.6463418", "0.6451218", "0.64437604", "0.6359542", "0.6355381", "0.6294245", "0.6260477", "0.6243326", "0.62403864", "0.6223108", "0.6196519", "0.6195481", "0.6194727", "0.61474806", ...
0.0
-1
Sets starting health equal to maxHealth.
public HealthComponent(int maxHealth) { this(maxHealth, maxHealth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setHealth() {\n eliteMob.setHealth(maxHealth = (maxHealth > 2000) ? 2000 : maxHealth);\n }", "public void setMaxHealth() {\n\t\tthis.maxHealth *= level / 10;\n\t}", "protected void setBaseMaxHealth(int baseMaxHealth) \r\n\t{\tthis.baseMaxHealth = baseMaxHealth;\t}", "public void setMax...
[ "0.7448637", "0.73923993", "0.7355645", "0.7354305", "0.7348336", "0.72963977", "0.70303696", "0.68686354", "0.68009156", "0.67635053", "0.67419434", "0.66942555", "0.65859836", "0.6510059", "0.64567614", "0.6452875", "0.6441975", "0.64393073", "0.6432136", "0.6419908", "0.63...
0.64133173
20
capacity of the cache
public MyLRUCache(int capacity) { this.capacity = capacity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCapacity();", "public int capacity();", "public int capacity();", "public final int capacity() {\n return packetCache.getCapacity();\n }", "public Long getCapacity() {\n return capacity;\n }", "BigDecimal getCacheSpaceAvailable();", "abstract protected int getCapacity...
[ "0.77109396", "0.75720525", "0.75720525", "0.75685203", "0.7550667", "0.75335586", "0.75055313", "0.7462042", "0.74031574", "0.7402498", "0.73967546", "0.7384417", "0.7384417", "0.73536396", "0.7334692", "0.7334692", "0.7334692", "0.7315554", "0.73153466", "0.73153466", "0.73...
0.65021765
84
/ removes the node from the queue
void removeNode(CacheNode<K, V> node) { concurrentList.remove(node); // O(1) operation. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Node removeNode() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\t// BreadthFirstSearch using a queue, first in first out principle\n\t\treturn frontier.removeFirst();\n\t}", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "Node dequeue() {\n Node n = queue.removeFi...
[ "0.7495598", "0.73767185", "0.7212336", "0.71052593", "0.7040564", "0.70254266", "0.70039487", "0.70039487", "0.69708616", "0.6935338", "0.6905389", "0.6901824", "0.6893639", "0.68855965", "0.6852035", "0.6772896", "0.6770665", "0.6770665", "0.67599136", "0.67508453", "0.6750...
0.7025787
5
/ Inserts the specified element at the tail of the queue.
void offerNode(CacheNode<K, V> node) { concurrentList.offer(node); // O(1) operation }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertTail(T element) {\n\t\tif (size == 0) {\n\t\t\tadd(element);\n\t\t\treturn;\n\t\t}\n\t\tNode<T> newTail = new Node<>(element);\n\t\ttail.next = newTail;\n\t\ttail = newTail;\n\t\tsize++;\n\t}", "@Override\r\n\tpublic void enqueue(Object element){\r\n\t\tif(head == null) {\r\n\t\t\thead = new No...
[ "0.7469357", "0.72510034", "0.71320564", "0.7089696", "0.706249", "0.7026842", "0.6922977", "0.6917978", "0.6884098", "0.685844", "0.68434584", "0.68365234", "0.6824923", "0.68184435", "0.67974764", "0.6796495", "0.6791004", "0.67849", "0.67802", "0.67802", "0.6760781", "0....
0.0
-1
Rpc result must be successful. namely, result.isSuccessful() must be true;
@Override public void onSuccess(RpcResult<Void> result) { handleIfFinished(null, isSucessful.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSuccessful();", "com.google.rpc.Status getStatus();", "com.google.rpc.Status getStatus();", "public void receiveResultcheckServerStatus(\n loadbalance.LoadBalanceStub.CheckServerStatusResponse result\n ) {\n }", "protocol.Result.ResultCode getRe...
[ "0.6487638", "0.6446345", "0.6446345", "0.6436743", "0.63911295", "0.6265002", "0.6265002", "0.62309223", "0.618781", "0.61737055", "0.6055036", "0.604947", "0.60493296", "0.60493296", "0.60488385", "0.60488385", "0.60478127", "0.60478127", "0.60478127", "0.60478127", "0.6047...
0.6400236
4
/ always caused by network error
@Override public void onFailure(Throwable t) { isSucessful.compareAndSet(true, false); failedMessages.put(id.getName(), t.getMessage()); handleIfFinished(t, isSucessful.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void onNetworkError(NetworkError networkError) {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void onNetworkError(Reques...
[ "0.8414549", "0.78648907", "0.7643413", "0.7638783", "0.7254298", "0.72273284", "0.7208317", "0.7170234", "0.7093377", "0.70605123", "0.6986963", "0.6986963", "0.69611377", "0.6857389", "0.68414766", "0.6836934", "0.6797132", "0.6706966", "0.6657175", "0.6609785", "0.6599563"...
0.0
-1
timeout or returned error. WARN: NOT sure if object throwable have the certain type of NetconfDocumentedException.
@Override public void onFailure(final Throwable throwable) { transformed.setException(throwable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TimeoutException()\n {\n super(\"TimeoutExeption\");\n }", "public WriteTimeoutException()\n {\n super();\n }", "public String formTimeout()\r\n {\r\n return formError(\"503 Gateway timeout\",\"The connection timed out\");\r\n }", "Object getFailonerror();", "Object g...
[ "0.6250048", "0.5834881", "0.5795873", "0.5792795", "0.5792795", "0.57389593", "0.57339895", "0.5728784", "0.57203436", "0.57203436", "0.5686866", "0.5686866", "0.5674184", "0.5669301", "0.5657845", "0.56462747", "0.56461585", "0.564435", "0.5643546", "0.5640055", "0.5630372"...
0.0
-1
YangInstanceIdentifier path, NormalizedNode data
public TxOperation(TxOperationType operationType, InstanceIdentifier<?> mountPointPath, LogicalDatastoreType store, YangInstanceIdentifier path) { if (operationType != DELETE) { throw new IllegalArgumentException("Unexpected operation type " + operationType); } this.operationType = operationType; this.mountPointPath = mountPointPath; this.store = store; this.path = path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNode2();", "public IdentifierNode getIdentifier()throws ClassCastException;", "public UUID nodeId();", "String getIdNode1();", "public String toString(){\n return \"Node: \" + data;\n }", "Node(String d) {\n data = d;\n }", "public UUID originatingNodeId();", "...
[ "0.5661854", "0.564258", "0.5322097", "0.5272644", "0.514196", "0.50925595", "0.50021285", "0.4992065", "0.49910966", "0.49907634", "0.49907634", "0.4987404", "0.49868304", "0.49862966", "0.49579298", "0.49492034", "0.49220327", "0.48861527", "0.4883097", "0.48807064", "0.488...
0.0
-1
This method returns the database type
public String getDBType() { return sAbbreviation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DatabaseTypes getDatabaseType();", "protected abstract DbType getDatabaseType();", "public String getDatabaseType() {\r\n return m_databaseType;\r\n }", "public String getDBType() {\r\n return dbType;\r\n }", "@Override\n public DatabaseType getDatabaseType() {\n return mappin...
[ "0.9173278", "0.900099", "0.8759859", "0.8688511", "0.8434002", "0.82581025", "0.81622434", "0.8097557", "0.8055535", "0.8017167", "0.79727805", "0.7955835", "0.7803362", "0.7775494", "0.76632357", "0.75959843", "0.75832963", "0.7490568", "0.7433814", "0.7325334", "0.7297097"...
0.7561028
17
This method returns the database type
public String getDBType() { return sAbbreviation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DatabaseTypes getDatabaseType();", "protected abstract DbType getDatabaseType();", "public String getDatabaseType() {\r\n return m_databaseType;\r\n }", "public String getDBType() {\r\n return dbType;\r\n }", "@Override\n public DatabaseType getDatabaseType() {\n return mappin...
[ "0.9173278", "0.900099", "0.8759859", "0.8688511", "0.8434002", "0.82581025", "0.81622434", "0.8097557", "0.8055535", "0.8017167", "0.79727805", "0.7955835", "0.7803362", "0.7775494", "0.76632357", "0.75959843", "0.75832963", "0.7490568", "0.7433814", "0.7325334", "0.7297097"...
0.7561028
18
This method returns the database type
public String getDBType() { return sAbbreviation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DatabaseTypes getDatabaseType();", "protected abstract DbType getDatabaseType();", "public String getDatabaseType() {\r\n return m_databaseType;\r\n }", "public String getDBType() {\r\n return dbType;\r\n }", "@Override\n public DatabaseType getDatabaseType() {\n return mappin...
[ "0.9173587", "0.9001365", "0.8760129", "0.8688636", "0.8434387", "0.82583433", "0.8161906", "0.809706", "0.80560833", "0.80170935", "0.79741776", "0.7956556", "0.7802824", "0.77759045", "0.7662632", "0.7596298", "0.7583287", "0.7490318", "0.74332863", "0.7324597", "0.7296829"...
0.75620055
19
/ based on the permutation, time: O(n! n), space: O(n)
public boolean isChained(String[] arr) { if (arr == null || arr.length == 0) { return false; } boolean[] res = new boolean[] {false}; findPermutation(arr, 0, res); return res[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int[] computePermutations(int n) {\n final int[] indexes = new int[n];\n for (int i = 0; i < n; i++) {\n indexes[i] = i;\n //indexes[i] = i + 1;\n }\n\n final int total = computePermutations(indexes, 0, n);\n System.out.println(\"# \" + np + \...
[ "0.73643464", "0.71246344", "0.7017696", "0.697338", "0.69161844", "0.6900074", "0.686021", "0.67796123", "0.6705034", "0.67040896", "0.66952616", "0.66337514", "0.66230357", "0.66219115", "0.6602459", "0.65995497", "0.6594673", "0.6584679", "0.65372455", "0.6451866", "0.6415...
0.0
-1
Only valid if we can generate the test automatically... which is true for all the classes too....
@Test public void testSchemaIsComplete() { OrientGraph g = factory.getTx(); OrientVertexType t = g.getVertexType("ElementTrace"); assertThat(t, is(notNullValue())); OrientEdgeType et = g.getEdgeType("Accesses"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n\tpublic void testDoGeneration() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}", "@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }", ...
[ "0.73088485", "0.7287262", "0.70962185", "0.6956866", "0.69031006", "0.6901053", "0.6881752", "0.685281", "0.68394893", "0.6831016", "0.6819936", "0.68005234", "0.6777873", "0.6750431", "0.67483634", "0.67461485", "0.67417496", "0.67417496", "0.67299867", "0.6690415", "0.6682...
0.0
-1
Creates new form AllSnoopPanel
public AllSnoopPanel(MainFrame frame, JLayeredPane layerPane, ActionCardType type) { String description; this.frame = frame; this.layerPane = layerPane; initComponents(); this.type = type; if (type == ActionCardType.AllSnoopLeft) { description = "left."; } else { description = "right."; } setSubTitle("Everyone snoops on the player to their " + description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "private void makePanelList() {\r\n if (panelList == null) {\r\n ...
[ "0.6789634", "0.6543027", "0.6543027", "0.6505844", "0.6462266", "0.645328", "0.6369184", "0.6358844", "0.632712", "0.632712", "0.6311776", "0.6309742", "0.6306034", "0.6303263", "0.62813354", "0.6271336", "0.62688345", "0.6268634", "0.62466043", "0.6242513", "0.6242513", "...
0.0
-1
The facade that: 1) for Admin user: config profileTemplate and onboardingTemplate 2) for HR user: create an onboardingActivity 3) for Staff user: go thru onboardingActivity
@ThriftService public interface ProfileTemplateFacade { /** * Add the preset profileTemplate * * @param orgId * @param actorUserId * @param adminUserId * @return */ @ThriftMethod LongDTO addPresetProfileTemplate(long orgId, long actorUserId, long adminUserId); /** * Add custom profileTemplate with preset fields * * @param orgId * @param displayName * @param actorUserId * @param adminUserId * @return */ @ThriftMethod LongDTO addCustomProfileTemplate(long orgId, String displayName, long actorUserId, long adminUserId); /** * Get profileTemplate * * @param profileTemplateId * @return */ @ThriftMethod ProfileTemplateDTO getProfileTemplate(long orgId, long profileTemplateId, long actorUserId, long adminUserId); /** * List profileTemplate of org * * @param orgId * @param actorUserId * @param adminUserId * @return */ @ThriftMethod ProfileTemplateListDTO listProfileTemplate(long orgId, long actorUserId, long adminUserId); /** * Update the display name of profileTemplate * * @param orgId * @param displayName * @param actorUserId * @param adminUserId * @return */ @ThriftMethod VoidDTO updateProfileTemplateDisplayName( long orgId, long profileTemplateId, String displayName, long actorUserId, long adminUserId); /** * Delete a profileTemplates * * @param orgId * @param profileTemplateId * @param actorUserId * @param adminUserId * @return */ @ThriftMethod VoidDTO deleteProfileTemplate(long orgId, long profileTemplateId, long actorUserId, long adminUserId); /** * Add container-type profileField * * @param orgId * @param profileFieldDTO * @param actorUserId * @param adminUserId * @return */ @ThriftMethod LongDTO addContainerProfileField(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId); /** * Add data-type profileField * * @param orgId * @param profileFieldDTO * @param actorUserId * @param adminUserId * @return */ @ThriftMethod LongDTO addDataProfileField(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId); /** * Get specific profileField * * @param orgId * @param profileFieldId * @param actorUserId * @param adminUserId * @return */ @ThriftMethod ProfileFieldDTO getProfileField(long orgId, long profileFieldId, long actorUserId, long adminUserId); /** * Get specific profileField * * @param orgId * @param profileTemplateId * @param referenceName * @param actorUserId * @param adminUserId * @return */ @ThriftMethod ProfileFieldDTO getProfileFieldByReferenceName( long orgId, long profileTemplateId, String referenceName, long actorUserId, long adminUserId); /** * List all profileFields of a profileTemplate * * @param orgId * @param profileTemplateId * @param actorUserId * @param adminUserId * @return */ @ThriftMethod ProfileFieldListDTO listProfileField(long orgId, long profileTemplateId, long actorUserId, long adminUserId); /** * Update container profileField * * @param orgId * @param profileFieldDTO * @param actorUserId * @param adminUserId * @return */ @ThriftMethod VoidDTO updateContainerProfileField(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId); /** * Update data profileField * * @param orgId * @param profileFieldDTO * @param actorUserId * @param adminUserId * @return */ @ThriftMethod VoidDTO updateDataProfileField(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId); /** * Move container profileField and contained data profileFields * * @param orgId * @param profileFieldDTO * @param actorUserId * @param adminUserId * @return */ @ThriftMethod VoidDTO moveContainerProfileField(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId); /** * Move data profileField * * @param orgId * @param profileFieldDTO * @param actorUserId * @param adminUserId * @return */ @ThriftMethod VoidDTO moveDataProfileField(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId); /** * Delete container profileField * * @param profileFieldId * @param orgId */ @ThriftMethod VoidDTO deleteContainerProfileField(long orgId, long profileFieldId, long actorUserId, long adminUserId); /** * Delete data profileField * * @param profileFieldId * @param orgId */ @ThriftMethod VoidDTO deleteDataProfileField(long orgId, long profileFieldId, long actorUserId, long adminUserId); @ThriftMethod AddressRegionListDTO listAddressRegion(long orgId, long parentId, long actorUserId, long adminUserId); /******** Methods after refraction ********/ @ThriftMethod OrgPickOptionListDTO listOrgPickOptionOfConfigType(long orgId, int configType); @ThriftMethod VoidDTO batchUpdateOrgPickOptions(long orgId, OrgPickOptionListDTO orgPickOptionListDTO, long actorUserId); @ThriftMethod ProfileFieldListDTO listAllProfileFieldOfOrg(long orgId, long actorUserId, long adminUserId); @ThriftMethod VoidDTO updateUserProfileConfig(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProfileInteraction {\n public void setProfileData(String id, String username);\n// public void checkProfile();\n}", "public interface ActivityDetails {\n\n /**\n * Get the profile associated with the user.\n *\n * @return profile containing attributes for the user\n */\n...
[ "0.57129395", "0.56762666", "0.5499163", "0.5496324", "0.5400086", "0.539142", "0.5304007", "0.52818036", "0.5218586", "0.5200673", "0.51982415", "0.5157624", "0.5120572", "0.5115448", "0.51145315", "0.5100044", "0.50999933", "0.5095263", "0.50937825", "0.50804824", "0.507189...
0.0
-1
Add the preset profileTemplate
@ThriftMethod LongDTO addPresetProfileTemplate(long orgId, long actorUserId, long adminUserId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ThriftMethod\n LongDTO addCustomProfileTemplate(long orgId, String displayName, long actorUserId, long adminUserId);", "public void addToTemplates() {\n mTemplateId = mPreferenceManager.getTemplateId();\n if (isConverted) {\n if (mPreferenceManager.getTemplateId().equals(ConstantsManag...
[ "0.58843946", "0.56874686", "0.53894293", "0.5336747", "0.52806795", "0.52567154", "0.52447385", "0.51610893", "0.5100058", "0.5023734", "0.5015915", "0.5003241", "0.4978114", "0.49489442", "0.49478278", "0.4920467", "0.4846692", "0.48443922", "0.48273596", "0.47986647", "0.4...
0.60906464
0
Add custom profileTemplate with preset fields
@ThriftMethod LongDTO addCustomProfileTemplate(long orgId, String displayName, long actorUserId, long adminUserId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ThriftMethod\n LongDTO addPresetProfileTemplate(long orgId, long actorUserId, long adminUserId);", "TemplatePreview generateTemplatePreview(String templateId, Map<String, String> personalisation) throws NotificationClientException;", "public CreateProfile() {\n initComponents();\n }", "@Test\n ...
[ "0.59968615", "0.5495295", "0.5416713", "0.5406024", "0.5394568", "0.5326677", "0.5325823", "0.5321942", "0.530823", "0.52176666", "0.52002347", "0.51725286", "0.51406664", "0.5108582", "0.5106603", "0.5097039", "0.5088452", "0.50745326", "0.5071544", "0.50668406", "0.5060246...
0.6757995
0
List profileTemplate of org
@ThriftMethod ProfileTemplateListDTO listProfileTemplate(long orgId, long actorUserId, long adminUserId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getProfiles();", "java.util.List<org.beangle.security.session.protobuf.Model.Profile>\n getProfilesList();", "public String[] getProfiles();", "@RequestMapping(value = { \"/profiles/\" }, method = RequestMethod.GET)\n public ResponseEntity<List<ProfileVO>> listProfiles() {\n\n Li...
[ "0.62816983", "0.5895817", "0.5659527", "0.56428826", "0.5611807", "0.56099737", "0.55853117", "0.54680467", "0.5461147", "0.5455202", "0.5365327", "0.5351054", "0.53151804", "0.52886254", "0.52772367", "0.5270303", "0.52655643", "0.52563757", "0.5250173", "0.52014375", "0.51...
0.6331825
0
Update the display name of profileTemplate
@ThriftMethod VoidDTO updateProfileTemplateDisplayName( long orgId, long profileTemplateId, String displayName, long actorUserId, long adminUserId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateDisplayName();", "private void displayName(String name) {\n\t\tGLabel profileName = new GLabel(name);\n\t\tprofileName.setFont(PROFILE_NAME_FONT);\n\t\tprofileName.setColor(Color.BLUE);\n\t\tadd(profileName, LEFT_MARGIN, TOP_MARGIN + profileName.getHeight());\n\t\tnameY = profileName.getY();\n\t}", ...
[ "0.7034966", "0.67120606", "0.6259234", "0.6256181", "0.6220106", "0.6157594", "0.61421293", "0.6136551", "0.6110092", "0.5953542", "0.5930486", "0.5927413", "0.5927413", "0.5927413", "0.5927413", "0.5927413", "0.5927413", "0.5915258", "0.5913031", "0.5877571", "0.5865482", ...
0.7246108
0
List all profileFields of a profileTemplate
@ThriftMethod ProfileFieldListDTO listProfileField(long orgId, long profileTemplateId, long actorUserId, long adminUserId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getProfiles();", "public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTem...
[ "0.5921521", "0.59199256", "0.5867075", "0.5797915", "0.5734958", "0.5727265", "0.56362927", "0.55508375", "0.55386436", "0.5530976", "0.5520845", "0.5516159", "0.54708546", "0.54539096", "0.544796", "0.5445145", "0.54273087", "0.54024655", "0.54006755", "0.5372803", "0.53536...
0.6731868
0
Move container profileField and contained data profileFields
@ThriftMethod VoidDTO moveContainerProfileField(long orgId, ProfileFieldDTO profileFieldDTO, long actorUserId, long adminUserId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void copyTo(UserProfile userProfile) {\n userProfile.setId(getId());\n userProfile.setCity(getCity());\n userProfile.setZipcode(getZipcode());\n userProfile.setCountry(getCountry());\n userProfile.setTitle(getTitle());\n userProfile.setName(getName())...
[ "0.54491156", "0.5247162", "0.5223", "0.51292723", "0.50621474", "0.5046286", "0.49792323", "0.49515504", "0.4861299", "0.47770068", "0.47566682", "0.47216937", "0.4640833", "0.46290046", "0.45976117", "0.45903063", "0.45550308", "0.45518503", "0.4541376", "0.45280227", "0.45...
0.70351374
0
TODO Autogenerated method stub
@Override public void run() { while (!socket.isClosed()) { String line; try { socket.receive(recPacket); line = new String(recPacket.getData(), 0 , recPacket.getLength()); byte id = Byte.parseByte(line.substring(0, line.indexOf(" "))); String payload = line.substring(line.indexOf(" ") + 1, line.length()); packetMan.getPacketById(id).onRecieve(id, payload); //System.out.println(payload); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); disconnect(); } } }
{ "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
CountCodeLines c = new CountCodeLines("F:\\J2EE Project\\JeeCMS\\src", "java");
public static void main(String[] args) throws FileNotFoundException { CountCodeLines c1 = new CountCodeLines("D:\\wamp\\www\\NewMarketing\\App\\Home","php"); CountCodeLines c2 = new CountCodeLines("D:\\wamp\\www\\NewMarketing\\App\\Admin","php"); CountCodeLines c3 = new CountCodeLines("D:\\wamp\\www\\NewMarketing\\App\\Common","php"); CountCodeLines c4 = new CountCodeLines("D:\\wamp\\www\\NewMarketing\\App","html"); CountCodeLines c5 = new CountCodeLines("D:\\wamp\\www\\schoolactivity\\App","html"); System.out.println("总共"+(c1.startCount()+c2.startCount()+c3.startCount()+c4.startCount())+"行代码"); c1.printCount(); c2.printCount(); c3.printCount(); c4.printCount(); c5.startCount();c5.printCount(); /* CountCodeLines c4 = new CountCodeLines("F:\\J2EE Project\\ShopsshEx\\src\\com"); c4.startCount(); c4.endCount();*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSourceFileCount();", "@Test\r\n\tpublic void testCountFileLOC() throws Exception {\r\n\t\tMethod countFileLOC = ReportBuilder.class.getDeclaredMethod(\"countFileLOC\", String.class);\r\n\t\tcountFileLOC.setAccessible(true);\r\n\t\t// LOC = line of code\r\n\t\tassertEquals(287, countFileLOC.invoke(reportBu...
[ "0.64048797", "0.6141824", "0.6075166", "0.60074323", "0.60074323", "0.58558244", "0.5841181", "0.5841181", "0.56716406", "0.56557155", "0.5593882", "0.5579315", "0.557067", "0.5497086", "0.54870045", "0.5481324", "0.5454254", "0.53968453", "0.5373984", "0.5363445", "0.530308...
0.71942693
0
I don't know what is supposed to be in here
private void setFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void method_4270() {}", "public void mo38117a() {\n }", "private stendhal() {\n\t}", "private void m5036...
[ "0.62132704", "0.6201486", "0.6186653", "0.61827374", "0.6126679", "0.6060018", "0.6056649", "0.60289973", "0.60266113", "0.5981095", "0.59148663", "0.5912231", "0.58998203", "0.5872444", "0.58480513", "0.58480513", "0.58480513", "0.58480513", "0.58480513", "0.58480513", "0.5...
0.0
-1
Makes nodelist of all variations
private void setVariations(Element theElement) { NodeList planList = null; planList = theElement.getElementsByTagName("plan"); // Sets the number of variations numberOfVariations = planList.getLength(); // Sets the size of variation array variations = new MSVariation[numberOfVariations]; for (int x = 0; x < numberOfVariations; x++) { variations[x] = new MSVariation((Element) planList.item(x)); } String[] test = variations[0].getHumanReadable(); System.out.println(test); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector<Node> GetAdditionalSubNodes();", "public abstract List<Node> getChildNodes();", "private void listChildren(Node current) {\n if(current instanceof Element){ //finds the element tags in the XML document with XOM parser\n Element temp = (Element) current;\n switch(temp....
[ "0.61569154", "0.6121144", "0.5915109", "0.58076847", "0.578852", "0.5752554", "0.5669712", "0.5621458", "0.5578766", "0.5572198", "0.5563583", "0.54564", "0.5435866", "0.5431658", "0.54168147", "0.53789806", "0.5375778", "0.5365465", "0.5324985", "0.53114593", "0.5290494", ...
0.5285235
22
inflating the settings menu in the activity
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n switch (id) {\n case R.id.action_settings:\n Toast.makeText(getApp...
[ "0.67545944", "0.67442703", "0.6733163", "0.67062736", "0.6681187", "0.66804177", "0.66490924", "0.66157514", "0.6570775", "0.6529873", "0.6513263", "0.64858454", "0.64818966", "0.646006", "0.6446562", "0.64425683", "0.6422878", "0.6421671", "0.6411743", "0.63783866", "0.6378...
0.0
-1
Display the first 500 characters of the response string.
@Override public void onResponse(String response) { if(response!=null){ try { JSONObject jsonObj = new JSONObject(response); JSONArray array = jsonObj.getJSONArray("features"); for(int i=0;i<array.length();i++){ JSONObject item_earthquake = array.getJSONObject(i); JSONObject properties = item_earthquake.getJSONObject("properties"); String magnitude = properties.getString("mag"); String Location =properties.getString("place"); String Date = properties.getString("time"); String Url = properties.getString("url"); long timeInMilliseconds = Long.parseLong(Date); java.util.Date dateObject = new Date(timeInMilliseconds); SimpleDateFormat dateFormatter = new SimpleDateFormat("MMM DD, yyyy HH:mm:ss a"); String dateToDisplay = dateFormatter.format(dateObject); earthquakes.add(new earthquake(magnitude,Location,dateToDisplay,Url)); } } catch (JSONException e) { e.printStackTrace(); } } earthquakeAdapters adapter =new earthquakeAdapters(getApplicationContext(),R.layout.llist_items,earthquakes); ListView listView =findViewById(R.id.earthquakes_list); listView.setAdapter(adapter); //implementing item click listener to navigate to the website listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { //implicit intent to be implemented earthquake current_earthquake= (earthquake)adapterView.getItemAtPosition(i); Uri webpage = Uri.parse(current_earthquake.getUrl()); Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage); startActivity(webIntent); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i...
[ "0.60981774", "0.54616565", "0.52525747", "0.51992726", "0.5148689", "0.51043826", "0.5014136", "0.50134504", "0.5007669", "0.49549934", "0.4943962", "0.49368027", "0.49275893", "0.48958516", "0.489581", "0.48855156", "0.4863597", "0.48630118", "0.48571903", "0.4852229", "0.4...
0.0
-1
implicit intent to be implemented
@Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { earthquake current_earthquake= (earthquake)adapterView.getItemAtPosition(i); Uri webpage = Uri.parse(current_earthquake.getUrl()); Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage); startActivity(webIntent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "protected abstract Intent getIntent();", "void mo21580A(Intent intent);", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "@Override\n ...
[ "0.7353656", "0.734327", "0.7288845", "0.7240804", "0.7081509", "0.70814323", "0.6783506", "0.6749527", "0.66225576", "0.6586167", "0.6549112", "0.65356743", "0.649214", "0.6476978", "0.64585423", "0.6447356", "0.6405103", "0.6379619", "0.6367245", "0.63547295", "0.6343102", ...
0.0
-1
TODO Instead of switch create abstract class Page and Pages for each switch case?
private static void actOnUsersChoice(MenuOption option) { switch (option) { case VIEW_LIST_OF_ALL_PRODUCTS: viewListOfProductsInStore(); System.out.println("Store has " + productRepository.count() + " products."); break; case CHECK_IF_PRODUCT_EXISTS_IN_STORE: System.out.println(ENTER_SEARCHED_PRODUCT_NAME); System.out.println((isProductAvailable()) ? SEARCHED_PRODUCT_IS_AVAILABLE : ERROR_NO_SUCH_PRODUCT_AVAILABLE); break; case ADD_PRODUCT_TO_ORDER: addProductToOrder(); break; case VIEW_ORDER_ITEMS: viewOrderItems(order.getOrderItems()); break; case REMOVE_ITEM_FROM_ORDER: removeItemFromOrder(); break; case ADD_PRODUCT_TO_STORE: if (userIsAdmin) { addProductToStore(); } break; case EDIT_PRODUCT_IN_STORE: if (userIsAdmin) { System.out.println(ENTER_PRODUCT_NAME_TO_BE_UPDATED); Optional<Product> productToBeModified = getProductByName(); if (productToBeModified.isPresent()) { switch (productToBeModified.get().getType()) { case FOOD: Optional<Food> food = InputManager.DataWrapper.createFoodFromInput(); if (food.isPresent()) { Food newFood = food.get(); productRepository.update(productToBeModified.get().getName(), newFood); } break; case DRINK: Optional<Drink> drink = InputManager.DataWrapper.createDrinkFromInput(); if (drink.isPresent()) { Drink newDrink = drink.get(); productRepository.update(productToBeModified.get().getName(), newDrink); } break; } } else { System.err.println(ERROR_NO_SUCH_PRODUCT_AVAILABLE); } } break; case REMOVE_PRODUCT_FROM_STORE: if (userIsAdmin) { tryToDeleteProduct(); } break; case RELOG: userIsAdmin = false; start(); break; case EXIT: onExit(); break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Page value();", "Page getPage();", "public interface Page {\n\n public abstract String createTitle();\n public abstract Markup createMarkup();\n}", "@Override\r\n\tpublic void visit(Page page) {\r\n\t\t// Some business logic I won't expose here\r\n\t\t// My boss won't be happy ;-)\r\n\t...
[ "0.70009035", "0.6959819", "0.6760897", "0.6760436", "0.6682478", "0.6634867", "0.66116214", "0.6541495", "0.6526554", "0.6523552", "0.63788563", "0.6356524", "0.634477", "0.6278112", "0.62271255", "0.6194933", "0.61805385", "0.61661273", "0.61527187", "0.6151852", "0.6142123...
0.0
-1
Gets the value of the image property.
public byte[] getImage() { return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getImage() {\n return this.Image;\n }", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getI...
[ "0.763142", "0.76295465", "0.76295465", "0.76207364", "0.76164824", "0.76164824", "0.76164824", "0.76164824", "0.75644636", "0.75644636", "0.75644636", "0.75519204", "0.75507694", "0.7446596", "0.734274", "0.7339834", "0.73275024", "0.73197895", "0.7317501", "0.7308442", "0.7...
0.66861874
73
Sets the value of the image property.
public void setImage(byte[] value) { this.image = ((byte[]) value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImage(Image img) {\r\n this.img = img;\r\n }", "public void setImage(Image image) {\n this.image = image;\n }", "public void setImage(String _image)\n {\n this.image = _image;\n }", "void setImage(PImage img) {\n _img = img;\n }", "@Generated\n @Select...
[ "0.82128364", "0.8071662", "0.76179385", "0.76055837", "0.7596696", "0.75941676", "0.7583361", "0.7480131", "0.7471512", "0.7471512", "0.74419236", "0.7438221", "0.7399815", "0.73925936", "0.73853207", "0.7304103", "0.7290756", "0.7201927", "0.7199228", "0.71743506", "0.70890...
0.7436605
12
A placeholder username validation check
private boolean isUserNameValid(String username) { if (username == null) { return false; } if (username.contains("@")) { return Patterns.EMAIL_ADDRESS.matcher(username).matches(); } else { return !username.trim().isEmpty(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validationUsername( String name ) throws Exception {\n\t\t\t if ( name != null && name.trim().length() < 3 ) {\n\t\t\t throw new Exception( \"Le nom d'utilisateur doit contenir au moins 3 caractères.\" );\n\t\t\t }\n\t\t\t}", "public boolean nameValidation(String username){\n ret...
[ "0.7849542", "0.7849396", "0.7819781", "0.77629966", "0.7706821", "0.7644859", "0.7644093", "0.75003207", "0.7492363", "0.74224", "0.74025446", "0.7390685", "0.732196", "0.731361", "0.725514", "0.72435474", "0.72268194", "0.71664065", "0.71605", "0.71605", "0.71605", "0.716...
0.73687553
12
A placeholder password validation check
private boolean isPasswordValid(String password) { return password != null && password.trim().length() > 5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean validatePassword(String arg0, String arg1) {\n\t\treturn false;\r\n\t}", "private boolean isPasswordValid(String password) {\n return password.length() > 0;\r\n }", "boolean getPasswordValid();", "protected void validatePassword(){\n //Only Checking For Word Typ...
[ "0.7561559", "0.7516521", "0.74988705", "0.74197155", "0.7411248", "0.7411248", "0.73694617", "0.72990155", "0.72810096", "0.72810096", "0.72810096", "0.72810096", "0.72810096", "0.72810096", "0.72810096", "0.72810096", "0.7274454", "0.722787", "0.71970934", "0.7155064", "0.7...
0.6909089
47
A placeholder DOB validation check
private boolean isDOBValid(String DOB) { SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); dateFormat.setLenient(false); try { dateFormat.parse(DOB.trim()); } catch (ParseException pe) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void birthDateValidity();", "public static boolean isValidDOB(String userInput) {\n \n return Pattern.matches(Constants.DATE_VALIDATION, userInput);\n }", "public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n ...
[ "0.6953997", "0.685507", "0.66319615", "0.65676236", "0.6389493", "0.636624", "0.6274649", "0.6140624", "0.6129099", "0.6059045", "0.60448676", "0.60385364", "0.6012945", "0.6012056", "0.6007751", "0.6000319", "0.597049", "0.59296405", "0.59222054", "0.59206045", "0.59050655"...
0.7376015
0
shortening search string to load hints partial search string
public void partialSearchDriver(String DRIVER_NAME, String DRIVER_NUMBER, ActivityTestRule<MainActivity> mActivityRule) { String driverSearchString= DRIVER_NAME.substring(0,2).toLowerCase(); // Type text and then press the call button. enterDriverNameToSearch(driverSearchString); selectDriverAndCall(DRIVER_NAME,DRIVER_NUMBER,mActivityRule); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSearchHint();", "public String getSearchString() {\r\n return super.getSearchString();\r\n \r\n// String searchStr = \"\";\r\n// //put exact phrase at the very beginning\r\n// if(exactphrase != null && exactphrase.length() > 0)\r\n// {\r\n// searchStr += \"\\\"\" + exactph...
[ "0.68164784", "0.6262593", "0.5965188", "0.58396566", "0.57521415", "0.5573719", "0.5548056", "0.5532281", "0.5513346", "0.5429325", "0.5408295", "0.5407258", "0.5346511", "0.53389424", "0.5316535", "0.5279304", "0.5245917", "0.5229029", "0.52102613", "0.5193893", "0.5167572"...
0.0
-1
Type text and then press the call button.
public void searchDriver(String DRIVER_NAME, String DRIVER_NUMBER, ActivityTestRule<MainActivity> mActivityRule) { enterDriverNameToSearch(DRIVER_NAME); selectDriverAndCall(DRIVER_NAME,DRIVER_NUMBER,mActivityRule); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(phone_num_edt.getText().length() != 0){\n\t\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t\t callIntent.setData(Uri.parse(\"tel:\" + phone_num_edt.getText().toString()));\n\t\t\t\t startActivity(callIntent);\n\t\t\t\t}else{\n\t\t\...
[ "0.642707", "0.6398816", "0.63634306", "0.63459915", "0.62474865", "0.62206435", "0.61794764", "0.6153703", "0.61276764", "0.6124437", "0.61154336", "0.60729086", "0.60700756", "0.60300237", "0.6024817", "0.60168904", "0.60111666", "0.599526", "0.59847414", "0.5976256", "0.59...
0.0
-1
select the 2nd result (via the name) from the list
public void selectSearchResultByText(String DRIVER_NAME, ActivityTestRule<MainActivity> mActivityRule) { onView(withText(DRIVER_NAME)) .inRoot(withDecorView(not(is(mActivityRule.getActivity().getWindow().getDecorView())))) .perform(click()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<SecondSlideshow> selectByExample(SecondSlideshowExample example);", "SearchResult findNext(SearchResult result);", "public static Finder<WebElement, WebDriver> second(final Finder<WebElement, WebDriver> finder) {\n \t\treturn new BaseFinder<WebElement, WebDriver>() {\n \t\t\t\n \t\t\t@Override\n \t\t\tpub...
[ "0.5780959", "0.55460054", "0.55226064", "0.52738696", "0.52616507", "0.5216083", "0.52155095", "0.52041817", "0.51945287", "0.51762235", "0.5167178", "0.5157334", "0.51331276", "0.5102745", "0.5082705", "0.50700825", "0.504958", "0.5049124", "0.5030249", "0.5029598", "0.4956...
0.0
-1
Click on Call Button
public void callDriver() { onView(withId(R.id.fab)) .perform(click()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\tIntent phoneIntent = new Intent(Intent.ACTION_CALL);\r\n phoneIntent.setData(Uri.parse(\"tel:\"+phoneNumber));\r\n startActivity(Intent.createChooser(phoneIntent, \"Calling number...\"));\r\n \t\t\t}", "@Override\r\n\...
[ "0.7542077", "0.7451335", "0.7439794", "0.740139", "0.7377297", "0.7373571", "0.73595786", "0.73541886", "0.73332286", "0.7331838", "0.732029", "0.73028463", "0.72951967", "0.729146", "0.7278153", "0.7258349", "0.72418165", "0.72366387", "0.7177489", "0.7113713", "0.7084416",...
0.58619386
100
come back to the app as user might do by pressing back button
public void goBackToAppHome() { UiObject topNavigationBar = mDevice.findObject(new UiSelector().text("mytaxi demo")); int backpressCounter = 0; //to avoid infinite loops while(!topNavigationBar.exists()) { mDevice.pressBack(); backpressCounter++; if(backpressCounter>10) break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "public void back() {\n Views.goBack();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplic...
[ "0.8341285", "0.83283323", "0.83283323", "0.82230127", "0.81377554", "0.81177485", "0.81177485", "0.81035924", "0.81035924", "0.81035924", "0.80728877", "0.80624396", "0.80383366", "0.8025391", "0.80120313", "0.80116236", "0.80109197", "0.80087507", "0.79976773", "0.798937", ...
0.0
-1
This method is used to load data from file location.
public static PropertyDocument fromFileLocation(final String location) throws IOException, ConfigIOParseException { loadParser(); return parser_.readConfig(location); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "protected abstract void loadData();", "protected void loadData()\n {\n }", "@Override\n void load(String data) {\n }", "public abstract void loadData();", "public abstract void loadData();", "@Over...
[ "0.73896027", "0.70179", "0.6945323", "0.68981844", "0.684605", "0.684605", "0.6683791", "0.66593486", "0.6634085", "0.662715", "0.6624891", "0.6624816", "0.66247207", "0.6595153", "0.653407", "0.6526196", "0.65251863", "0.65251863", "0.64969563", "0.6486671", "0.642179", "...
0.0
-1
This method is used to load data from resouces.
public static PropertyDocument fromResources(final String location) throws IOException, ConfigIOParseException { InputStream stream = LoadFileLocation.class.getResourceAsStream(location); if(stream == null) throw new FileNotFoundException(String.format("Resource not found: %s", location)); try { loadParser(); return parser_.readConfig(stream); } finally { stream.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void loadData()\n {\n }", "public abstract ResourceDataSet loadResources() ;", "private void loadResourcesData(){\n //showResourceListView();\n\n String [] resourceData = new String [20];\n\n for(int stringCount = 1; stringCount <= 20; stringCount++) {\n resourceData...
[ "0.69829565", "0.68312496", "0.67324024", "0.6687591", "0.6662413", "0.6493425", "0.6377825", "0.6377825", "0.63108104", "0.62900954", "0.62672305", "0.6246165", "0.6246165", "0.62397486", "0.6148235", "0.6144889", "0.61405426", "0.6108601", "0.61049354", "0.6079683", "0.6053...
0.0
-1
This method is used to write data to file
static void writeFile(final PropertyArray data, final String file, boolean prettyPrint) throws IOException { if(data == null || data.isEmpty() || file == null || file.isEmpty()) throw new IOException("data or file path is null or empty."); if(prettyPrint) { writeFile(data, file, 2); return; } writeFile(data, file, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void writeDataToTxtFile() {\n\n }", "protected abstract void writeFile();", "public void Write_data() {\n // add-write text into file\n try {\n FileOutputStream fileout=openFileOutput(\"savedata11.txt\", MODE_PRIVATE);\n OutputStreamWriter outputWrit...
[ "0.77589905", "0.74050176", "0.735944", "0.73483187", "0.7285985", "0.7187541", "0.71306413", "0.70636576", "0.70375484", "0.700516", "0.698671", "0.6862496", "0.68519783", "0.68496156", "0.6823283", "0.68044716", "0.6801744", "0.6793582", "0.676087", "0.67054397", "0.6700461...
0.0
-1
This method is used to write data to file
private static void writeFile(final PropertyArray data, final String file, int indent) throws IOException { loadParser(); parser_.setIndent(indent); parser_.writeConfig(data, file); parser_.setIndent(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void writeDataToTxtFile() {\n\n }", "protected abstract void writeFile();", "public void Write_data() {\n // add-write text into file\n try {\n FileOutputStream fileout=openFileOutput(\"savedata11.txt\", MODE_PRIVATE);\n OutputStreamWriter outputWrit...
[ "0.77593255", "0.74043745", "0.73595726", "0.7347997", "0.7287272", "0.7187234", "0.71302694", "0.70641035", "0.7038429", "0.70052004", "0.6986823", "0.68636703", "0.6851339", "0.6849876", "0.68242586", "0.68052864", "0.68015635", "0.67937577", "0.6761309", "0.6705213", "0.67...
0.0
-1
This method is used to load parser.
private static void loadParser() { if(parser_ == null) parser_ = ConfigIOFactory.getInstance("json"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initParser() {;\r\n lp = DependencyParser.loadFromModelFile(\"edu/stanford/nlp/models/parser/nndep/english_SD.gz\");\r\n tokenizerFactory = PTBTokenizer\r\n .factory(new CoreLabelTokenFactory(), \"\");\r\n }", "private Parser () { }", "public Parser() {}", "CParser...
[ "0.690513", "0.68508226", "0.68303776", "0.6741229", "0.67371833", "0.66854835", "0.6627771", "0.64917874", "0.630544", "0.6296009", "0.6251412", "0.6203552", "0.61736554", "0.61385614", "0.6093905", "0.6093772", "0.60768783", "0.6043454", "0.6030305", "0.60219073", "0.601364...
0.7844189
0
Initialize number of ways to express x as nth powers of different natural numbers
private int calc(int x, int n, int i, int sum) { int ways = 0; // Calling power of 'i' raised to 'n' int p = (int) Math.pow(i, n); while (p + sum < x) { // Recursively check all greater values of i ways += calc(x, n, i + 1, p + sum); i++; p = (int) Math.pow(i, n); } // If sum of powers is equal to x // then increase the value of result. if (p + sum == x) ways++; // Return the final result return ways; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int pow (int x, int n) {\n\tif (n == 0)\n\t\treturn 1;\n\tif (n == 1)\n\t\treturn x;\n\tint t = pow (x, n/2);\n\tt *= t;\n\tif (n % 2 == 1)\n\t\tt *= x;\n\treturn t;\n}", "private int nextPowerOf2(int n)\n {\n if (n > 0 && (n & (n - 1)) == 0)\n return n;\n \n int count = 0;\n for (;n != ...
[ "0.6256223", "0.6046084", "0.60121423", "0.59799355", "0.5979453", "0.59489936", "0.5885389", "0.5881288", "0.5868055", "0.58649886", "0.58649886", "0.5860197", "0.58570987", "0.5814993", "0.57897896", "0.577947", "0.5767805", "0.5756406", "0.5719502", "0.5712993", "0.5704299...
0.53556824
46
Package interface extends the notion of container in a more logical entity in artifact assortment. It follows the Eclipse project/package logic.
public interface Package extends Container { /** * Returns all top-level--non-recursive-- {@link Package}s contained under this package. allows the * * @return the top-level {@link Package}s in the package. */ public Collection<Package> getPackages(); /** * Adds a {@link Package} to the package hierarchy. * */ /** adding packages can be done via {@link #addArtifact(Workspace,Artifact)} */ //@Deprecated //public void addPackage(Workspace workspace, Package pack); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ExportedPackageHolder {\n\n /**\n * \n * @return the name of the package being exported\n */\n public String getPackageName();\n\n /**\n * \n * @return the <code>Version</code> that the package is exported at as a String.\n */\n public String getVersion();\n ...
[ "0.661719", "0.65834564", "0.65828556", "0.6507983", "0.63737833", "0.6314593", "0.6252966", "0.61678684", "0.61510843", "0.61452764", "0.6139892", "0.61056125", "0.6087889", "0.6084645", "0.60842496", "0.6035694", "0.6026205", "0.6010796", "0.5993669", "0.5955225", "0.593978...
0.8249245
0
Created by Administrator on 2016/9/7.
public interface ArtMasterAttachmentManager { Map saveArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception; Map deleteArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Ov...
[ "0.62060773", "0.6169522", "0.6048518", "0.6026713", "0.59765667", "0.5963498", "0.59145856", "0.59093326", "0.587521", "0.58684266", "0.58684266", "0.58460194", "0.58460194", "0.58263224", "0.58246005", "0.582287", "0.58172774", "0.58016807", "0.576722", "0.57597196", "0.574...
0.0
-1
Sets the value of the delivery property.
public void setDelivery(double pDelivery) { mDelivery = pDelivery; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDeliveryOption(java.lang.String deliveryOption) {\r\n this.deliveryOption = deliveryOption;\r\n }", "public void setDeliveryFee(int deliveryFee)\n {\n this.deliveryFee = deliveryFee;\n }", "@FXML\n\tpublic void setOrderToDelivered() {\n\t\tString orderNumber = Integer.toSt...
[ "0.7277605", "0.7171847", "0.70686287", "0.70410323", "0.6996694", "0.69182354", "0.6907623", "0.6832571", "0.68002015", "0.65555185", "0.6450936", "0.6422245", "0.6415474", "0.6381809", "0.63489395", "0.6336862", "0.63047594", "0.63047594", "0.62942815", "0.62792283", "0.626...
0.8387771
0
Sets the value of the deliveryItems property.
public void setDeliveryItems(List<RepositoryItem> pDeliveryItems) { mDeliveryItems = pDeliveryItems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DeliveryParcelDraftBuilder items(\n @Nullable final java.util.List<com.commercetools.importapi.models.orders.DeliveryItem> items) {\n this.items = items;\n return this;\n }", "public DeliveryParcelDraftBuilder items(\n @Nullable final com.commercetools.importapi.mode...
[ "0.7044017", "0.69514585", "0.6848453", "0.6117393", "0.60920674", "0.6057367", "0.6024432", "0.59748185", "0.59326243", "0.5862643", "0.58194834", "0.5792026", "0.5699302", "0.5664606", "0.5649129", "0.5630823", "0.55562747", "0.5551281", "0.5536753", "0.5516043", "0.5496565...
0.80866885
0
Add items to deliveryItems list
public void addDeliveryItem(RepositoryItem pItem) { mDeliveryItems.add(pItem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDeliveryItems(List<RepositoryItem> pDeliveryItems) {\n mDeliveryItems = pDeliveryItems;\n }", "public DeliveryParcelDraftBuilder plusItems(\n @Nullable final com.commercetools.importapi.models.orders.DeliveryItem... items) {\n if (this.items == null) {\n this...
[ "0.7168394", "0.6759686", "0.637988", "0.6351694", "0.6286466", "0.6232523", "0.6200383", "0.61980945", "0.6188923", "0.6171702", "0.61557376", "0.6024741", "0.59798586", "0.59688187", "0.5965539", "0.59495556", "0.59046066", "0.58686024", "0.5866572", "0.58494115", "0.583369...
0.7467805
0
Sets the value of the type property.
public void setType(int pType) { mType = pType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }", "public void setType(Type t) {\n type = t;\n }", "public void setType(Type t) {\n\t\ttype = t;\n\t}", "public void setType(final Type type) {\n this.type = type;\n }", "public void setType(Type type) ...
[ "0.8391672", "0.8285924", "0.8197855", "0.81400764", "0.812652", "0.812652", "0.812652", "0.80684173", "0.8056604", "0.80422956", "0.8034034", "0.8021058", "0.8013497", "0.7993321", "0.79577774", "0.79256386", "0.7891242", "0.78896934", "0.78896934", "0.78896934", "0.7879038"...
0.0
-1
Sets the value of the deliveryTime property.
public void setDeliveryTime(String pDeliveryTime) { mDeliveryTime = pDeliveryTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setShippingTime (java.util.Date shippingTime) {\r\n\t\tthis.shippingTime = shippingTime;\r\n\t}", "public org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTimeResponse updateDeliveryTime\n (\n org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTim...
[ "0.70783424", "0.70046175", "0.66597444", "0.6505219", "0.6495225", "0.63044304", "0.62733203", "0.62715656", "0.6188797", "0.6182701", "0.6100252", "0.60945356", "0.60151887", "0.5935393", "0.5926691", "0.59067947", "0.5876367", "0.5870031", "0.58376646", "0.58060837", "0.57...
0.8543541
0
Sets the value of the supplierName property.
public void setSupplierName(String pSupplierName) { mSupplierName = pSupplierName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }", "public void setSupplier(\n @Nullable\n final String supplier) {\n rememberChangedField(\"Supplier\", this.supplier);\n this.supplier = supplier;...
[ "0.86156136", "0.764202", "0.72590685", "0.72076046", "0.6908163", "0.6881718", "0.68343264", "0.6675262", "0.6578922", "0.6553873", "0.651674", "0.64621025", "0.6315514", "0.622134", "0.60397285", "0.59646195", "0.5946876", "0.5937034", "0.59080434", "0.5897628", "0.5897329"...
0.8545932
1
Testing whether the output of the task is as expected
@Test public void confirmTaskAdded() { TaskList tasks = new TaskList("./test/junit.txt"); LocalDateTime date = LocalDateTime.parse("2015-10-20 1800"); String taskDescription = "read a book"; tasks.addDeadline(taskDescription, date); Task addedTask = tasks.get(0); assertEquals("[D][ ] read a book by: 2015-10-20 18:00", addedTask.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void addTaskOutput(){\n\t}", "boolean hasOutput();", "@Test \n\tvoid test3() {\n\t\tassertTrue(!r1.getOutput().isEmpty());\n\t}", "@Test\n\tpublic void check() {\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Unit Test Begins\");\n\t\t\t// Generate Random Log file\n\t\t\tUnitTestLogGenerator.genera...
[ "0.68962795", "0.6678152", "0.6369307", "0.6269598", "0.61127055", "0.6010459", "0.6003846", "0.59661347", "0.5929305", "0.5904119", "0.58705497", "0.5852749", "0.5836914", "0.5828308", "0.5827733", "0.58255893", "0.5811209", "0.5803398", "0.57891554", "0.5742301", "0.5736884...
0.0
-1
Testing the number of tasks in the list
@Test public void checkNumberOfTasks() { TaskList listOfTasks = new TaskList("./test/junit.txt"); LocalDateTime date = LocalDateTime.parse("2015-10-20"); for (int i = 0; i < 10; i++) { listOfTasks.addDeadline("read a book", date); } assertEquals(10 , listOfTasks.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int sizeOfList(){\n return tasks.size();\n }", "public int countList() {\n return tasks.size();\n }", "public int getCount() {\n\t return taskList.size();\n\t }", "int getTaskIdCount();", "public int size()\n {\n return tasks.size();\n }", "int getTaskDetailsCount();...
[ "0.772656", "0.7645531", "0.7336176", "0.7323292", "0.726783", "0.71342254", "0.704804", "0.6975014", "0.6846668", "0.68384033", "0.67322236", "0.67241997", "0.6643677", "0.6622336", "0.6619338", "0.66138804", "0.6601486", "0.6587928", "0.6576845", "0.6489699", "0.6424611", ...
0.7075286
6
TODO Autogenerated method stub
@Override public void onClick(View arg0) { finish(); }
{ "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 /Bundle bundle=new Bundle(); bundle.putString("goodsid", goods_id);
@Override public void onClick(View v) { Intent intent=new Intent(); intent.putExtra("goods_id", goods_id); intent.setClass(GoodsActivity.this, LoadurlActivity.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGoodsid(Integer goodsid) {\n this.goodsid = goodsid;\n }", "public void setGoodsId(Long goodsId) {\r\n this.goodsId = goodsId;\r\n }", "public void setGoodsId(Long goodsId) {\n this.goodsId = goodsId;\n }", "public void setGoodsId(Integer goodsId) {\n this....
[ "0.71451074", "0.7080872", "0.70516527", "0.70435774", "0.70435774", "0.70435774", "0.70435774", "0.70435774", "0.70435774", "0.70435774", "0.67080724", "0.6661704", "0.6407516", "0.6368699", "0.6327904", "0.6294787", "0.6294787", "0.6294787", "0.6294787", "0.6294787", "0.629...
0.524815
64
Do whatever you want with Bitmap
@Override public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { Log.v("catch",view+""); try{ if (loadedImage != null && view!=null) { ImageView imageView = (ImageView) view; // imageView.setImageBitmap(loadedImage); // 是否第一次显示 boolean firstDisplay = !displayedImages.contains(imageUri); if (firstDisplay) { // 图片淡入效果 FadeInBitmapDisplayer.animate(imageView, 800); displayedImages.add(imageUri); /* ViewGroup.LayoutParams params = imageView.getLayoutParams(); params.height =loadedImage.getHeight(); ((MarginLayoutParams)params).setMargins(10, 10, 10, 10); imageView.setLayoutParams(params);*/ } } }catch(Exception e){ Log.v("catch1",e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo12205a(Bitmap bitmap);", "Bitmap m7900a(Bitmap bitmap);", "public abstract void setUpBitmap(Context context);", "void setImage(Bitmap bitmap);", "public void showbitmap4() {\n \n \t}", "public void showbitmap3() {\n \n \t}", "public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}", "@Override\n ...
[ "0.7927353", "0.7579665", "0.72544354", "0.71321326", "0.70297045", "0.6968109", "0.6890351", "0.6855806", "0.6789591", "0.6770423", "0.6768852", "0.676835", "0.6749801", "0.67120343", "0.66916937", "0.66916937", "0.66699064", "0.6659178", "0.6642827", "0.65989065", "0.659237...
0.0
-1
This class was generated by the JAXWS RI. JAXWS RI 2.2.9b130926.1035 Generated source version: 2.2
@WebService(name = "SharedGalleryServerSOAP", targetNamespace = "http://SOAP.svr.tp1.sd/") @XmlSeeAlso({ ObjectFactory.class }) public interface SharedGalleryServerSOAP { /** * * @return * returns java.util.List<java.lang.String> */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "getListOfAlbums", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.GetListOfAlbums") @ResponseWrapper(localName = "getListOfAlbumsResponse", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.GetListOfAlbumsResponse") @Action(input = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest", output = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse") public List<String> getListOfAlbums(); /** * * @param arg0 * @return * returns java.util.List<java.lang.String> */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "getListOfPictures", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.GetListOfPictures") @ResponseWrapper(localName = "getListOfPicturesResponse", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.GetListOfPicturesResponse") @Action(input = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest", output = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse") public List<String> getListOfPictures( @WebParam(name = "arg0", targetNamespace = "") String arg0); /** * * @param arg1 * @param arg0 * @return * returns byte[] */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "getPictureData", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.GetPictureData") @ResponseWrapper(localName = "getPictureDataResponse", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.GetPictureDataResponse") @Action(input = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest", output = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse") public byte[] getPictureData( @WebParam(name = "arg0", targetNamespace = "") String arg0, @WebParam(name = "arg1", targetNamespace = "") String arg1); /** * * @param arg0 * @return * returns java.lang.String */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "createAlbum", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.CreateAlbum") @ResponseWrapper(localName = "createAlbumResponse", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.CreateAlbumResponse") @Action(input = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest", output = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse") public String createAlbum( @WebParam(name = "arg0", targetNamespace = "") String arg0); /** * * @param arg0 * @return * returns java.lang.Boolean */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "deleteAlbum", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.DeleteAlbum") @ResponseWrapper(localName = "deleteAlbumResponse", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.DeleteAlbumResponse") @Action(input = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest", output = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse") public Boolean deleteAlbum( @WebParam(name = "arg0", targetNamespace = "") String arg0); /** * * @param arg2 * @param arg1 * @param arg0 * @return * returns java.lang.String */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "uploadPicture", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.UploadPicture") @ResponseWrapper(localName = "uploadPictureResponse", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.UploadPictureResponse") @Action(input = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest", output = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse") public String uploadPicture( @WebParam(name = "arg0", targetNamespace = "") String arg0, @WebParam(name = "arg1", targetNamespace = "") String arg1, @WebParam(name = "arg2", targetNamespace = "") byte[] arg2); /** * * @param arg1 * @param arg0 * @return * returns java.lang.Boolean */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "deletePicture", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.DeletePicture") @ResponseWrapper(localName = "deletePictureResponse", targetNamespace = "http://SOAP.svr.tp1.sd/", className = "sd.tp1.clt.ws.DeletePictureResponse") @Action(input = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest", output = "http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse") public Boolean deletePicture( @WebParam(name = "arg0", targetNamespace = "") String arg0, @WebParam(name = "arg1", targetNamespace = "") String arg1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName ...
[ "0.6381716", "0.6315477", "0.61410564", "0.60775703", "0.6076035", "0.6071439", "0.60690486", "0.6051622", "0.6023936", "0.60155046", "0.6001288", "0.59991896", "0.59961015", "0.5995417", "0.5986488", "0.5985413", "0.59797424", "0.5969843", "0.59660625", "0.59635067", "0.5945...
0.5825942
46
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.724863", "0.7203384", "0.7197011", "0.71784776", "0.71090055", "0.7040796", "0.7039464", "0.7013998", "0.70109546", "0.6982435", "0.6946134", "0.6939684", "0.6935636", "0.69193685", "0.69193685", "0.6892893", "0.6884914", "0.68768066", "0.68763", "0.68635243", "0.68635243"...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79039484", "0.78061193", "0.7765948", "0.772676", "0.76312095", "0.76217103", "0.75842994", "0.7530533", "0.748778", "0.7458179", "0.7458179", "0.7438179", "0.74213266", "0.7402824", "0.7391232", "0.73864055", "0.7378979", "0.73700106", "0.7362941", "0.73555434", "0.734530...
0.0
-1
Write this method so that it is an initialization call. This should be
public void create(HandlerContext context, Management request, Management response) { // TODO Auto-generated method stub }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void init() {\n\t\t}", "protected void initialize() {}", "protected void initialize() {}", "public void initialize()\n {\n }", "@Override\r...
[ "0.84676236", "0.84480906", "0.84221643", "0.84164155", "0.8415747", "0.8415747", "0.8413152", "0.8383742", "0.8358529", "0.8325071", "0.8318402", "0.83155286", "0.83092076", "0.8307662", "0.82972556", "0.82972556", "0.82972556", "0.828645", "0.8283907", "0.82720476", "0.8272...
0.0
-1
This method should be implemented to lazily instantiate. This method should only be executed once. This method is meant to be used for initialization tasks that: could require SOAP communication with other handlers could require expensive database initialization
public Management initialize(HandlerContext context, Management request, Management response) throws SOAPException, JAXBException, DatatypeConfigurationException, IOException { if(subscription_source_id==null){ //Then must locate the subscription manager details //Send create request for EVENT_SOURCE to register with SUB_MAN //Extract the created id and initalize the sub_source reference //?? Wrap in it's own thread? String srcId = MetadataUtility.registerEventSourceWithSubscriptionManager( this, true, true); subscription_source_id = srcId; } response.setAction(Metadata.INITIALIZE_RESPONSE_URI); response.setMessageId(ManagementMessageValues.DEFAULT_UID_SCHEME+UUID.randomUUID()); response.setReplyTo(Addressing.ANONYMOUS_ENDPOINT_URI); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "public void initializeOnInstantiation() \n\t\t...
[ "0.6846179", "0.68230575", "0.66994333", "0.66991955", "0.6688357", "0.6663106", "0.6578872", "0.65655553", "0.65098935", "0.6496647", "0.64657605", "0.64538646", "0.64538646", "0.6439623", "0.64391804", "0.64272994", "0.64236754", "0.641378", "0.64117616", "0.638235", "0.633...
0.0
-1
TODO Autogenerated method stub
public Management subscribe(String resource, HandlerContext context, Management request, Management response) throws JAXBException, SOAPException, DatatypeConfigurationException, IOException { return null; }
{ "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 will take you back to the main page
public void backToMain(View view) { Intent back = new Intent(this,MainActivity.class); startActivity(back); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void back() {\n Views.goBack();\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }", "private void backPage()\n {\n page--;\n open();\n }", "private void backToMain()...
[ "0.8084885", "0.8014563", "0.7670665", "0.76082367", "0.7608228", "0.75983053", "0.75344384", "0.7463904", "0.74537957", "0.74537957", "0.74414474", "0.74327004", "0.7360641", "0.7335405", "0.73101646", "0.7280672", "0.7278004", "0.72750235", "0.72750217", "0.7256617", "0.725...
0.7620646
3
this method will clear everything an allow the user to retry the quiz
public void clearButton(View view) { question1.clearCheck(); question2.clearCheck(); question33.clearCheck(); question44.clearCheck(); question55.clearCheck(); score.setText(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\n\t\tacceptAnswers = false;\n\t\tcurrentQuestion = null;\n\t\tsubmissions = null;\n\t}", "private void clearQuizQuestions() {\n RadioGroup questionOneRadioGroup = (RadioGroup) findViewById(R.id.question_one_radio_group);\n questionOneRadioGroup.clearCheck();\n\n RadioGr...
[ "0.764876", "0.7386125", "0.7323596", "0.7263206", "0.72138804", "0.7044719", "0.70434904", "0.7021132", "0.6972011", "0.6948345", "0.6844717", "0.6822387", "0.67622757", "0.6727664", "0.67177093", "0.66846335", "0.6657991", "0.6645542", "0.66049564", "0.65430826", "0.6539385...
0.68127024
12
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Lplus2)) { return false; } Lplus2 other = (Lplus2) object; if ((this.l2UserDateId == null && other.l2UserDateId != null) || (this.l2UserDateId != null && !this.l2UserDateId.equals(other.l2UserDateId))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896072", "0.6839122", "0.6705258", "0.66412854", "0.66412854", "0.65923095", "0.65785074", "0.65785074", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.6561566", "0.6561566", "0.6545169", "0.6525343", "0.65168375", "0.64885366", "0....
0.0
-1
Add fruit object to the ArrayLsit
void addFruit(Fruit item){ fruitList.add(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFruit(int foodX, int foodY) {\n\t\t\n\n\t\tfruits.add(new Fruit(foodX, foodY)); // add new fruit to fruit array\n\t}", "void addFoil(Foil foil) {\n Foil[] arr = new Foil[foil_arr.length+1];\n int ai = 0;\n for (; ai < foil_arr.length; ai++) arr[ai] = foil_arr[ai];\n arr[ai] = foil;\n ...
[ "0.6825253", "0.68218344", "0.6087334", "0.59404874", "0.59178716", "0.5789862", "0.5765931", "0.5759373", "0.57216084", "0.57192636", "0.5673476", "0.5630999", "0.5622758", "0.56223", "0.5569354", "0.5560076", "0.5504855", "0.5499395", "0.54777795", "0.544643", "0.5429545", ...
0.70051754
0
Returns the fruit names in a List
List<String> getFruitNameList() { List<String> fruitNameList = new ArrayList<>(); for(Fruit fruit : fruitList){ fruitNameList.add(fruit.getName()); } return fruitNameList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull List<String> getNameList();", "public ArrayList<String> recipeNameList(){\n\t\t\n\t\tLog.d(TAG, \"Create list of recipe names\");\n\t\t\n\t\t//Temp variable to hold the recipe names\n\t\tArrayList<String> recipeNames = new ArrayList<String>();\n\t\t\n\t\t//Iterator for moving through the recipe list\n\t...
[ "0.6964464", "0.6517781", "0.6482571", "0.636468", "0.6305284", "0.6246185", "0.62371564", "0.62092876", "0.61849", "0.61820054", "0.61724347", "0.6119349", "0.61108094", "0.61065763", "0.6071533", "0.6027906", "0.5976226", "0.59694606", "0.5962845", "0.59066176", "0.5900034"...
0.81041414
0
Returns the total cost of the basket
double checkout() { double total = 0; for (Fruit item : fruitList){ total += item.getPrice(); } // Apply offers and calculate total double discountGetOneFree = Offer.getOfferBuyOneGetOneFree(getFruitNameList(), new Apple() ); discountGetOneFree += Offer.getOfferBuyOneGetOneFree(getFruitNameList(), new Banana() ); double discountThreeForTwo = Offer.getOfferThreeForTwo(getFruitNameList(), new Orange() ); discountThreeForTwo += Offer.getOfferThreeForTwo(getFruitNameList(), new Melon() ); double discountCheapestForFree = Offer.cheapestFruitForFree(getFruitList()); total += - discountGetOneFree - discountThreeForTwo - discountCheapestForFree; DecimalFormat df = new DecimalFormat("#,##0.00"); // Print out the total cost and saving System.out.println(String.format("£ %s Total cost", df.format(total))); if (discountGetOneFree > 0) System.out.println(String.format("£ %s Promotional Saving *** Buy One Get One Free ***", df.format(discountGetOneFree))); if (discountThreeForTwo > 0) System.out.println(String.format("£ %s Promotional Saving *** 3 for the price of 2 ***", df.format(discountThreeForTwo))); if (discountCheapestForFree > 0) System.out.println(String.format("£ %s Promotional Saving *** Cheapest for free ***", df.format(discountCheapestForFree))); return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "public float totalCost() {\n\t\tttCost = 0;\n\t\tfor (int i = 0; i < itemsOrdered.size(); i++) {\n\t\t\tttCost += itemsO...
[ "0.8144693", "0.7788682", "0.75144976", "0.7487475", "0.74700385", "0.7463549", "0.7463371", "0.7408142", "0.73786354", "0.73784244", "0.73683476", "0.73294204", "0.7305598", "0.72712064", "0.7233011", "0.72151166", "0.71831775", "0.7181949", "0.71600133", "0.71594745", "0.71...
0.0
-1
Creates the page for the Driver that is specified in Constructor Call
public HospitalsPage(DriverType driverType) { switch (driverType) { case ANDROID: appiumDriver = DeviceDriver.getAndroidDriver(); break; case IOS: appiumDriver = DeviceDriver.getIosDriver(); break; case ANDROID_SAMSUNG_S105G: appiumDriver = DeviceDriver.getSamsungS105GDriver(); break; case ANDROID_GOOGLE_PXL4: appiumDriver = DeviceDriver.getPixel4ADriver(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Page(WebDriver driver) {\n this.driver = driver;\n }", "public Page(WebDriver driver) {\r\n\t\tthis.driver = driver;\r\n\t}", "public PageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n }", "Page createPage();", "public BuscadorPage...
[ "0.7485374", "0.74473", "0.74346316", "0.7367654", "0.7306047", "0.7224789", "0.7197268", "0.7171709", "0.71519345", "0.71410745", "0.7139755", "0.7131893", "0.7107829", "0.7107336", "0.7070496", "0.7058587", "0.704125", "0.70370907", "0.7035975", "0.7030442", "0.7028919", ...
0.6286312
93
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "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
List cloudUsers = Arrays.asList(conf.getCloud_users());
public List<User_apps> getUserAppsList() { return Arrays.asList(conf.getUser_apps()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "public String[] listUsers();", "List<KingdomUser> getUsers();...
[ "0.69603753", "0.6960046", "0.694687", "0.6887097", "0.6766968", "0.6644762", "0.65954685", "0.65954685", "0.6595035", "0.6539915", "0.64223826", "0.639382", "0.6391985", "0.63590115", "0.63128406", "0.62986207", "0.62979275", "0.6295883", "0.6269271", "0.62591976", "0.624753...
0.0
-1
Do nothing because of X and Y.
@Override public void configure(Map<String, ?> configs, boolean isKey) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean legalOrNot(int x,int y) {\n\t\tif((x == 14 && y ==2) || (x== 2 && y == 14)) {\n\t\t\treturn true;\n\t\t}else if((x-y) == 1 || (x-y) == -1 ) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean noLife(int x, int y){\n \tint a[] = {x - 1 , x + 1 , x , x};\n ...
[ "0.6272379", "0.6270732", "0.6159826", "0.60555416", "0.596082", "0.595221", "0.59088933", "0.5907184", "0.5899049", "0.58828956", "0.58718157", "0.58225274", "0.5812633", "0.5808113", "0.5802439", "0.5796924", "0.57450473", "0.5735127", "0.57309544", "0.57136524", "0.5695445...
0.0
-1
Do nothing because of X and Y.
@Override public void close() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean legalOrNot(int x,int y) {\n\t\tif((x == 14 && y ==2) || (x== 2 && y == 14)) {\n\t\t\treturn true;\n\t\t}else if((x-y) == 1 || (x-y) == -1 ) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean noLife(int x, int y){\n \tint a[] = {x - 1 , x + 1 , x , x};\n ...
[ "0.6274982", "0.6272596", "0.61587757", "0.60544", "0.59620667", "0.5950558", "0.5907734", "0.590574", "0.5898659", "0.5882396", "0.5870522", "0.5821193", "0.5811302", "0.5809177", "0.58000565", "0.57978696", "0.5742766", "0.57326514", "0.5729215", "0.5714978", "0.5692767", ...
0.0
-1
TODO Autogenerated method stub
@Override public Boolean isEmpty() { return null; }
{ "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 delete(Key key) { }
{ "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 Iterator<Key> iterator() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Creates new form FormTestte
public TelaPesquisarClientes() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public FormInserir() {\n initComponents();\n }", "public void testFormTeste...
[ "0.737822", "0.7171412", "0.68932325", "0.6841386", "0.647611", "0.63911784", "0.638074", "0.62487143", "0.6228403", "0.62033784", "0.61542696", "0.61440927", "0.61170876", "0.6095828", "0.6029504", "0.6021112", "0.6020325", "0.60087436", "0.599478", "0.5982845", "0.59713334"...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTextField1 = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTablePesquisarCliente = new javax.swing.JTable(); jLabel2 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Pesquisar Clientes"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } }); jTextField1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); jTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTextField1KeyReleased(evt); } }); jLabel1.setText("Pesquisar Clientes:"); jTablePesquisarCliente.setAutoCreateRowSorter(true); jTablePesquisarCliente.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jTablePesquisarCliente.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "CONTA", "NOME", "AGÊNCIA", "CIDADE", "TIPO DA CONTA", "CPF", "STATUS CONTA", "STATUS CLIENTE" } ) { boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTablePesquisarCliente.setToolTipText(""); jTablePesquisarCliente.setAlignmentX(10.0F); jTablePesquisarCliente.setAlignmentY(10.0F); jTablePesquisarCliente.setGridColor(new java.awt.Color(0, 153, 153)); jTablePesquisarCliente.setIntercellSpacing(new java.awt.Dimension(2, 1)); jTablePesquisarCliente.setMaximumSize(new java.awt.Dimension(2147483647, 1)); jTablePesquisarCliente.setMinimumSize(new java.awt.Dimension(75, 20)); jTablePesquisarCliente.setRowHeight(24); jTablePesquisarCliente.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTablePesquisarClienteMouseClicked(evt); } }); jScrollPane1.setViewportView(jTablePesquisarCliente); if (jTablePesquisarCliente.getColumnModel().getColumnCount() > 0) { jTablePesquisarCliente.getColumnModel().getColumn(0).setMinWidth(75); jTablePesquisarCliente.getColumnModel().getColumn(0).setPreferredWidth(2); jTablePesquisarCliente.getColumnModel().getColumn(0).setMaxWidth(75); jTablePesquisarCliente.getColumnModel().getColumn(1).setMinWidth(250); jTablePesquisarCliente.getColumnModel().getColumn(1).setMaxWidth(250); jTablePesquisarCliente.getColumnModel().getColumn(2).setMinWidth(80); jTablePesquisarCliente.getColumnModel().getColumn(2).setMaxWidth(80); jTablePesquisarCliente.getColumnModel().getColumn(3).setMinWidth(185); jTablePesquisarCliente.getColumnModel().getColumn(3).setMaxWidth(185); jTablePesquisarCliente.getColumnModel().getColumn(4).setMinWidth(180); jTablePesquisarCliente.getColumnModel().getColumn(4).setMaxWidth(180); jTablePesquisarCliente.getColumnModel().getColumn(5).setMinWidth(120); jTablePesquisarCliente.getColumnModel().getColumn(5).setMaxWidth(120); jTablePesquisarCliente.getColumnModel().getColumn(6).setMinWidth(120); jTablePesquisarCliente.getColumnModel().getColumn(6).setMaxWidth(120); } jLabel2.setForeground(new java.awt.Color(0, 102, 204)); jLabel2.setText("Sair"); jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jLabel2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel2MouseClicked(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField1) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1191, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel2))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel2) .addGap(8, 8, 8) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(115, Short.MAX_VALUE)) ); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.732017", "0.7291279", "0.7291279", "0.7291279", "0.7286003", "0.7249014", "0.721411", "0.720819", "0.7196242", "0.7190395", "0.71849346", "0.7159721", "0.7148069", "0.70934445", "0.7079763", "0.7056577", "0.6987638", "0.6978011", "0.69549644", "0.69530493", "0.6945049", ...
0.0
-1
Define uma mensagem de alerta
public static void setWarningMessage(String text) { JOptionPane optionPane = new JOptionPane(text,JOptionPane.WARNING_MESSAGE); JDialog dialog = optionPane.createDialog("Atenção"); dialog.setAlwaysOnTop(true); dialog.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showAlert(String message);", "public void msgErreur(){\n \n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Entrée invalide\");\n alert.setHeaderText(\"Corriger les entrées invalides.\");\n alert.setContentText(\"Les informations entrées sont ...
[ "0.73205465", "0.7169818", "0.71555346", "0.712665", "0.7094002", "0.706982", "0.7037371", "0.70220596", "0.7005411", "0.69391143", "0.68213564", "0.6760784", "0.67389417", "0.6719078", "0.66110414", "0.6605272", "0.6597631", "0.6519184", "0.6493334", "0.64752656", "0.6437367...
0.0
-1
Define uma mensagem de erro
public static void setErrorMessage(String text) { JOptionPane optionPane = new JOptionPane(text,JOptionPane.ERROR_MESSAGE); JDialog dialog = optionPane.createDialog("Erro"); dialog.setAlwaysOnTop(true); dialog.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "public void mensagemErro(String m) {\r\n Alert alerta = new Alert(Alert.AlertType.ERROR);\r\n alerta....
[ "0.75033414", "0.72817063", "0.7158348", "0.70635056", "0.70255286", "0.7022397", "0.69791543", "0.69687915", "0.69687915", "0.69347817", "0.6889668", "0.6847589", "0.6733444", "0.67303234", "0.6707378", "0.66807973", "0.66406906", "0.6630721", "0.65929955", "0.65928096", "0....
0.0
-1
Selects the entered text.
public void selectAll () { editor.selectAll (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchAndSelect() {\n currIndex = 0;\n Highlighter h = jta.getHighlighter();\n h.removeAllHighlights();\n String text = jtfFind.getText();\n \n String jText = jta.getText();\n if (text.equals(\"\")) {\n jtfFind.setBackground(Color.WHITE);\n ...
[ "0.64798445", "0.64188254", "0.63933676", "0.6382217", "0.6366732", "0.63239485", "0.61909026", "0.61744237", "0.6171756", "0.6170192", "0.6123239", "0.6073264", "0.6045614", "0.6030118", "0.60061276", "0.59813577", "0.59711766", "0.5966365", "0.5962047", "0.5920741", "0.5913...
0.0
-1