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 |
|---|---|---|---|---|---|---|
Get Configuration if object is Configurable | public static Configuration getConfIfPossible(Object object) {
if (object instanceof Configurable) {
return ((Configurable) object).getConf();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract Configurable<?> getConfigurable();",
"public interface Configurable {\n void setConf(Configuration conf);\n Configuration getConf();\n}",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"p... | [
"0.7799088",
"0.72202927",
"0.69086325",
"0.69086325",
"0.69086325",
"0.69086325",
"0.67763907",
"0.66901976",
"0.66901976",
"0.6616973",
"0.6596429",
"0.65919536",
"0.6478595",
"0.6463596",
"0.6458511",
"0.64555097",
"0.64555097",
"0.64555097",
"0.64555097",
"0.644648",
"0.6... | 0.78870994 | 0 |
Get path to output directory as Path | public static Path getOutputPath(Configuration conf) {
return new Path(getOutputDir(conf));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t ... | [
"0.7672602",
"0.74964356",
"0.73823786",
"0.7145306",
"0.71445894",
"0.71429646",
"0.69704586",
"0.68991506",
"0.6866032",
"0.6820043",
"0.67568886",
"0.6744907",
"0.67164123",
"0.66544044",
"0.66521317",
"0.66521317",
"0.66521317",
"0.66521317",
"0.66521317",
"0.6651018",
"0... | 0.7760175 | 0 |
Set output directory to use | public static void setOutputDir(Configuration conf, String path) {
conf.set(OUTPUT_DIR_KEY, path);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setOutputDir(String outputDir) {\n this.outputDir = outputDir;\n }",
"void setOutputPath(String outputPath);",
"public void setOutput(File file){\n outputDir = file;\n }",
"public void setOutputDirectory(String dir) {\n\t\tnew LabeledText(\"Output directory:\").set... | [
"0.7768638",
"0.76745915",
"0.7607667",
"0.74517494",
"0.7175016",
"0.69694424",
"0.68994874",
"0.68588936",
"0.67694217",
"0.66953707",
"0.6610938",
"0.6515678",
"0.6512169",
"0.639163",
"0.6362215",
"0.6340203",
"0.63274294",
"0.63233435",
"0.6307045",
"0.6296849",
"0.62685... | 0.7279061 | 4 |
Delete output directory for this job | public static void deleteOutputDir(Configuration conf) throws IOException {
Path outputPath = getOutputPath(conf);
outputPath.getFileSystem(conf).delete(outputPath, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@AfterClass\n public static void deleteOutputDir() throws OfficeException {\n\n // Delete the output directory\n FileUtils.deleteQuietly(new File(OUTPUT_DIR));\n }",
"public static void setupAndRemoveOutputIf(final JobConf job, String outputDirectory, boolean deleteIf) throws IOException {\r\n\t\t\r\n\t\... | [
"0.7123146",
"0.7087458",
"0.6820506",
"0.65834856",
"0.6464042",
"0.642637",
"0.63800395",
"0.6308178",
"0.6236598",
"0.6121952",
"0.60669047",
"0.59876925",
"0.5841857",
"0.5831736",
"0.5809056",
"0.58071417",
"0.57772213",
"0.577588",
"0.5754695",
"0.5748973",
"0.5725078",... | 0.74265903 | 0 |
Set number of map task attempts | public static void setMapAttempts(Configuration conf, int numAttempts) {
conf.setInt("mapred.map.max.attempts", numAttempts);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increaseAttempts() {\n attempts++;\n }",
"public void setAttempts(int value) {\n this.attempts = value;\n }",
"public void setAttempts(int A)\t\n\t{\t//start of setAttempts method\n\t\tattempts = A;\n\t}",
"public void setTries(int tries) {\n this.tries = tries;\n }... | [
"0.66830945",
"0.65835375",
"0.61640614",
"0.6036364",
"0.58904773",
"0.5861714",
"0.5782749",
"0.5735282",
"0.5661556",
"0.5653915",
"0.5624702",
"0.56100184",
"0.55914766",
"0.5591179",
"0.55633384",
"0.55577224",
"0.5542649",
"0.55409485",
"0.55283123",
"0.55019146",
"0.54... | 0.7248338 | 0 |
Set Hadoop Pool to use | public static void setPool(Configuration conf, String pool) {
conf.set("mapred.fairscheduler.pool", pool);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPoolNumber(int poolNumber);",
"public void setWorkerpool(Executor workerpool) {\n\t pool.setWorkerpool(workerpool);\n\t}",
"void setPoolName(java.lang.String poolName);",
"public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }",
"OMMPool getPool();",
"public static void setPo... | [
"0.6198882",
"0.6191533",
"0.604887",
"0.5983124",
"0.59691757",
"0.58241946",
"0.5818203",
"0.58085173",
"0.57717305",
"0.56789273",
"0.5673366",
"0.5606543",
"0.55978423",
"0.5577588",
"0.5528727",
"0.5479612",
"0.5446858",
"0.54428995",
"0.5437518",
"0.5415304",
"0.5409682... | 0.7069271 | 0 |
Check if output committer needs success marker | public static boolean needSuccessMarker(Configuration conf) {
return conf.getBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs",
false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isInterestedInSuccess() {\n\t\treturn false;\n\t}",
"@Override\n public void markSuccess() {\n }",
"boolean hasOutput();",
"public void reportSuccess() {\n Crashlytics.logBreadcrumb(\"MuunLockOverlay: reportSuccess\");\n\n pinInput.setSuccess();\n }"... | [
"0.64955354",
"0.6409002",
"0.6402011",
"0.6336851",
"0.59516543",
"0.5914265",
"0.58840656",
"0.5828817",
"0.5813389",
"0.5805918",
"0.5789828",
"0.578562",
"0.57824683",
"0.56420004",
"0.5614382",
"0.5594025",
"0.55872464",
"0.5585021",
"0.556422",
"0.5560505",
"0.5560505",... | 0.71388644 | 0 |
Set Hadoop Output Key class | public static void setOutputKeyWritableClass(Configuration conf,
Class<? extends Writable> writableClass) {
conf.set("mapred.output.key.class", writableClass.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Class<?> getNamedOutputKeyClass(JobContext job,\r\n\t\t\tString namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + KEY, null,\r\n\t\t\t\tWritableComparable.class);\r\n\t}",
"public Class<?> getKeyClass() \n\t{\n\t return keyClass ;\n\t}",
"public IndexMapKe... | [
"0.6466079",
"0.6070501",
"0.5971104",
"0.5969049",
"0.5762348",
"0.5704179",
"0.5674475",
"0.56216645",
"0.5616321",
"0.54968834",
"0.5476793",
"0.5472577",
"0.5379195",
"0.53356385",
"0.53332555",
"0.52651685",
"0.5238126",
"0.52251",
"0.51959705",
"0.51911855",
"0.51848006... | 0.78444207 | 0 |
Set Hadoop Output Value class | public static void setOutputValueWritableClass(Configuration conf,
Class<? extends Writable> writableClass) {
conf.get("mapred.output.value.class", writableClass.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOutValueClass() {\n return null;\n }",
"private static Class<? extends Writable> getNamedOutputValueClass(JobContext job, String namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + VALUE,\r\n\t\t\t\tnull, Writable.class);\r\n\t}",
"public void setVa... | [
"0.6173855",
"0.6128962",
"0.5871996",
"0.5827332",
"0.5783353",
"0.57159966",
"0.5705614",
"0.5686519",
"0.5475071",
"0.54339474",
"0.5429485",
"0.54173493",
"0.53545296",
"0.53507507",
"0.53496027",
"0.5342423",
"0.53248423",
"0.5279972",
"0.5263865",
"0.5246467",
"0.523627... | 0.7671866 | 0 |
Set worker output directory | public static void setWorkOutputDir(TaskAttemptContext context)
throws IOException
{
Configuration conf = context.getConfiguration();
String outputPath = getOutputDir(conf);
// we need to do this to get the task path and set it for mapred
// implementation since it can't be done automatically beca... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}",
"void setOutputPath(String outputPath);",
"@Override\n public void setOutputDir(String outputDir) {\n this.outputDir = outputDir;\n }",
"public void setOutputDirectory(String dir) {\n\t\tnew Labele... | [
"0.64528",
"0.642545",
"0.6400112",
"0.6306558",
"0.6228784",
"0.6171669",
"0.6065229",
"0.6017159",
"0.5998207",
"0.58742654",
"0.58392024",
"0.57629085",
"0.5703365",
"0.5700396",
"0.56957734",
"0.56307536",
"0.5618775",
"0.5584396",
"0.5583972",
"0.5573108",
"0.5539496",
... | 0.7174436 | 0 |
Set MapReduce input directory | public static void setInputDir(Configuration conf, String path) {
conf.set("mapred.input.dir", path);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void initialize() {\n int numReduceTasks = conf.getNumReduceTasks();\n String jobID = taskAttemptID.getJobID();\n File mapOutputFolder = new File(\"mapoutput\");\n if (!mapOutputFolder.exists()) {\n mapOutputFolder.mkdir();\n }\n for (int r... | [
"0.6133395",
"0.6108337",
"0.6010726",
"0.59729755",
"0.57130814",
"0.54378873",
"0.54274535",
"0.54262996",
"0.53389525",
"0.5321698",
"0.53116465",
"0.52422404",
"0.51933825",
"0.51890504",
"0.5181201",
"0.5147201",
"0.51438665",
"0.50400615",
"0.5038582",
"0.5030666",
"0.5... | 0.73445654 | 0 |
creating a new paramterized constructor with integer value to display weight | Cycle(int weight) {
//this keyword is used to differentiate between global and local variables
//"this.name" refers to the global instance variable
// "= name" refers to the local variable defined inside the constructor
this.weight = weight;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SpaceWeights(int weight)\n {\n earthWeight = weight;\n }",
"public Factorial(String name, int weight) {\n\t\tsuper(name, weight);\n\t}",
"public WeightingModel(){}",
"public ColorWeight()\n {\n weight = 0;\n }",
"public ConditionTargetWeight(int weig... | [
"0.6726181",
"0.6725299",
"0.6534354",
"0.64647436",
"0.6409911",
"0.6406189",
"0.62484723",
"0.617798",
"0.61551464",
"0.61310387",
"0.6106736",
"0.6094976",
"0.60800666",
"0.6066708",
"0.6056225",
"0.60305077",
"0.6021654",
"0.6020619",
"0.601919",
"0.6006455",
"0.5977092",... | 0.59016395 | 30 |
creating a new paramterized constructor with String value and integer value from Superclass since it extends SuperClass. | ByCicle(int weight, String name) {
//super keyword can be used to access the instance variables of superclass
//"super" can also be used to invoke parent class constructor and method
super(weight);//Accessign Superclass constructor and its variable
//Global Variable=Local variable
this.name... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }",
"MyArg(int value){\n this.value = value;\n }",
"TypesOfConstructor(int value){\n num = value;\n }",
"ConstuctorOverloading(int ... | [
"0.6717856",
"0.6542155",
"0.6473164",
"0.6460598",
"0.6440913",
"0.62657136",
"0.62426555",
"0.6234829",
"0.60747665",
"0.6026149",
"0.5981924",
"0.5924654",
"0.5870351",
"0.5847577",
"0.58327544",
"0.58105415",
"0.58053",
"0.57825667",
"0.5775769",
"0.5766973",
"0.57428473"... | 0.5860213 | 13 |
Creating a new Method "show" to display Values of the Weight and Name | void show() {
System.out.println("Weight of the Cycle is = " + weight);
System.out.println("Name of the Cycle is = " + name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString() {\n\t\treturn name() + \" \" + \"w:\" + weight + \" \" + \"d:\" + diameter;\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn String.format(\"%d-%d,%.2f\", v,w,weight);\r\n\t}",
"@Override\n public String toString() {\n return String.valueOf(this.weig... | [
"0.71014297",
"0.7066662",
"0.6904939",
"0.6703238",
"0.66765183",
"0.6618225",
"0.658102",
"0.6525541",
"0.6457602",
"0.6442496",
"0.6383548",
"0.6331921",
"0.63286525",
"0.63057566",
"0.6273204",
"0.6264117",
"0.62512296",
"0.62334794",
"0.6224167",
"0.62204254",
"0.618312"... | 0.7128353 | 0 |
Get value of name. | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }",
"String getValueName();",
"@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}",
"public Object getValue(final Str... | [
"0.7750309",
"0.76001453",
"0.7525621",
"0.7366065",
"0.7199267",
"0.71103513",
"0.703028",
"0.69870234",
"0.6908417",
"0.6908417",
"0.6908417",
"0.6908417",
"0.6908417",
"0.6908417",
"0.6878752",
"0.686022",
"0.686022",
"0.686022",
"0.686022",
"0.686022",
"0.686022",
"0.68... | 0.0 | -1 |
Set the value for name. | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String value) {\n\t\tname = value;\n\t}",
"public void setName(String value) {\n this.name = value;\n }",
"public void setName(final String nameValue) {\n this.name = nameValue;\n }",
"public void setName(final String nameValue) {\n this.name = nameV... | [
"0.84264684",
"0.83316606",
"0.8191679",
"0.8191679",
"0.8191679",
"0.8124033",
"0.8124033",
"0.8124033",
"0.8115681",
"0.8072459",
"0.8072459",
"0.80060965",
"0.79916394",
"0.79916394",
"0.79916394",
"0.7978473",
"0.7978473",
"0.7957",
"0.79275316",
"0.780971",
"0.7719728",
... | 0.0 | -1 |
[Give the description for method]. | public void addMethod(MethodInfo methodInfo) {
lstMethodInfo.add(methodInfo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public void method(){}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public abstract void description();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n ... | [
"0.75586814",
"0.7306428",
"0.72301036",
"0.6961131",
"0.6838251",
"0.6838251",
"0.67844236",
"0.6723815",
"0.66850483",
"0.66850483",
"0.66582906",
"0.6653695",
"0.6606951",
"0.6601848",
"0.65945834",
"0.65945834",
"0.6590085",
"0.6581249",
"0.65783703",
"0.6560285",
"0.6555... | 0.0 | -1 |
Get all methods by method name. | public List<MethodInfo> getMethod(String methodName) {
List<MethodInfo> matchedMethodInfo = new ArrayList<MethodInfo>();
for (MethodInfo method : this.lstMethodInfo) {
if (methodName.equals(method.getName())) {
matchedMethodInfo.add(method);
}
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Method> getAllMethods();",
"public List<IMethod> getMethods();",
"public List<IMethod> getMethods();",
"ISourceMethod[] getMethods();",
"@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();",
"public Enumeration getMethods()\n ... | [
"0.7859938",
"0.7272056",
"0.7272056",
"0.6955643",
"0.685927",
"0.6718194",
"0.6612175",
"0.6521728",
"0.64432555",
"0.6320639",
"0.63206106",
"0.63074875",
"0.6260406",
"0.62539434",
"0.62208796",
"0.6212909",
"0.6212909",
"0.6199662",
"0.61953026",
"0.6162311",
"0.6162311"... | 0.6761878 | 5 |
[Give the description for method]. | public List<MethodInfo> getMethods() {
return lstMethodInfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public void method(){}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public abstract void description();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n ... | [
"0.75586814",
"0.7306428",
"0.72301036",
"0.6961131",
"0.6838251",
"0.6838251",
"0.67844236",
"0.6723815",
"0.66850483",
"0.66850483",
"0.66582906",
"0.6653695",
"0.6606951",
"0.6601848",
"0.65945834",
"0.65945834",
"0.6590085",
"0.6581249",
"0.65783703",
"0.6560285",
"0.6555... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.all_audit_fragment, container, false);
textView = (TextView) view.findViewById(R.id.textView9);
recyclerView = (Rec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
A classifier is an element that describes behavioral and structural features; it comes in several specific forms, including class, data type, interface, component, artifact, and others that are defined in other meta model packages. In the meta model, a Classifier declares a collection of Features, such as Attributes, M... | public interface Classifier extends GeneralizableElement, Namespace {
/**
* <p>
* Adds a feature at the end of the ordered collection of the current object.
* </p>
*
* @param feature
* the feature to be added.
* @throws IllegalArgumentException
* if <co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Classifier getClassifier();",
"@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}",
"Classifier getBase_Classifier();",
"@Override\n public Classifier getClassifier() {\n return this.classifier;\n }",
"public Classifier getClassifier() {\n return clas... | [
"0.71950006",
"0.6966525",
"0.69079816",
"0.67978793",
"0.6792859",
"0.6667161",
"0.6642142",
"0.6596436",
"0.6568917",
"0.65417683",
"0.639294",
"0.63221484",
"0.6288216",
"0.62778294",
"0.6255014",
"0.62416065",
"0.62416065",
"0.62225306",
"0.6209873",
"0.61532307",
"0.6107... | 0.7239496 | 0 |
Adds a feature at the end of the ordered collection of the current object. | void addFeature(Feature feature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(Feature f){\n if (debug) logger.info(\"feature added\");\n int z = fc.size();\n fc.add(f);\n fcLastEdits.clear();//clear possible feature edits\n fcLastEdits.add(f);\n lastEditType = EDIT_ADD;\n fireTableRowsInserted(z+1, z+1);\n }",
"public voi... | [
"0.67579335",
"0.6692476",
"0.6648994",
"0.6459343",
"0.64459616",
"0.6421532",
"0.64143497",
"0.6262038",
"0.6262038",
"0.62365466",
"0.6186284",
"0.5925763",
"0.587614",
"0.5861104",
"0.57920676",
"0.57920676",
"0.57425123",
"0.568852",
"0.567498",
"0.56708336",
"0.5629012"... | 0.6523541 | 3 |
Adds a feature at specified index of the ordered collection of the current object. | void addFeature(int index, Feature feature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addFeatures(IFeature feature);",
"void setFeature(int index, Feature feature);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"void addFeature(Feature feature);",
"void addFeat... | [
"0.69465834",
"0.6905429",
"0.68254274",
"0.68254274",
"0.6710429",
"0.6663455",
"0.66269237",
"0.6613903",
"0.6556195",
"0.6530706",
"0.6487658",
"0.6383218",
"0.6330492",
"0.6330492",
"0.6300557",
"0.6291605",
"0.6291588",
"0.62859464",
"0.62748635",
"0.6198587",
"0.615276"... | 0.83751076 | 0 |
Sets the feature at specified index of the ordered collection of the current object. | void setFeature(int index, Feature feature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n targe... | [
"0.72679555",
"0.72679555",
"0.72545725",
"0.72234946",
"0.7034315",
"0.7034315",
"0.68914837",
"0.6891289",
"0.6652147",
"0.6506111",
"0.6317412",
"0.6308371",
"0.6300016",
"0.61651886",
"0.61533195",
"0.6056068",
"0.6029256",
"0.602711",
"0.5990883",
"0.5965293",
"0.5928510... | 0.8277993 | 0 |
Removes (and fetches) the feature at specified index from the ordered collection of the current object. | Feature removeFeature(int index); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeFeature(int i);",
"void removeFeature(int i);",
"public PointF remove(int index)\n {\n flushCache();\n return points.remove(index);\n }",
"protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature... | [
"0.72008985",
"0.72008985",
"0.67114043",
"0.6663283",
"0.66329885",
"0.6588231",
"0.6549243",
"0.6528689",
"0.647344",
"0.647344",
"0.6411255",
"0.64040804",
"0.6401197",
"0.63865787",
"0.6379798",
"0.63580513",
"0.6348123",
"0.6325296",
"0.6325296",
"0.6325296",
"0.6325296"... | 0.7708642 | 0 |
Removes a feature from the ordered collection of the current object. | boolean removeFeature(Feature feature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }",
"Feature removeFeature(int index);",
"public void removeFromfeatures (org.unitime.timetable.model.RoomFeature roomFeature) {\n \t\tif (null == getFeatures()) \n \t\t\tsetFeatures(new java.util.HashSet());\n \t\tgetFea... | [
"0.7398",
"0.731632",
"0.71435475",
"0.70953715",
"0.7037921",
"0.7037921",
"0.7023593",
"0.7023593",
"0.69711584",
"0.6967045",
"0.68287754",
"0.65112495",
"0.6455475",
"0.6347827",
"0.6335915",
"0.62892425",
"0.6265479",
"0.6222652",
"0.62225175",
"0.6208921",
"0.6208921",
... | 0.6712704 | 11 |
Removes all the objects of type "feature" from the ordered collection of the current object. | void clearFeatures(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeFeature(int i);",
"void removeFeature(int i);",
"public void clearFeatures() {\n localFeatureVector.clear();\n }",
"public void removeFeatures(Feature[] features) {\n //TODO: remove the features\n }",
"public void removeFromfeatures (org.unitime.timetable.model.RoomFeature roomFe... | [
"0.6649653",
"0.6649653",
"0.6599913",
"0.65696895",
"0.64098644",
"0.63631344",
"0.6348624",
"0.62737465",
"0.62360394",
"0.62360394",
"0.6155977",
"0.61159986",
"0.5978275",
"0.5976301",
"0.59442294",
"0.59068984",
"0.5886547",
"0.5875171",
"0.5855503",
"0.5800368",
"0.5800... | 0.67615634 | 0 |
Gets all the objects of type "feature" previously added to the ordered collection of the current object. Additions and removals of elements to and from the returned list do not change the state of current object (i.e. the returned list is a copy of the internal one of the current object). However, if an element contain... | List<Feature> getFeatures(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instanc... | [
"0.6574733",
"0.64374185",
"0.6405332",
"0.6322685",
"0.63213456",
"0.6253944",
"0.6243477",
"0.62365717",
"0.62365717",
"0.61964095",
"0.6094",
"0.60686845",
"0.6020334",
"0.60147744",
"0.588086",
"0.588086",
"0.5864955",
"0.5862286",
"0.5776038",
"0.57536197",
"0.57517105",... | 0.66901094 | 0 |
Checks if a feature is contained in the ordered collection of the current object. | boolean containsFeature(Feature feature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean containsFeature(Feature f);",
"boolean contains(SimpleFeature feature);",
"boolean hasFeaturesUsed();",
"public boolean getFeature(@Nonnull Feature f) {\r\n return features.contains(f);\r\n }",
"@Override\n public final boolean contains(final Object o) {\n return Collections.ex... | [
"0.663808",
"0.66072875",
"0.6550056",
"0.6481115",
"0.64621747",
"0.63290536",
"0.62602675",
"0.6212604",
"0.61598456",
"0.6146214",
"0.59863204",
"0.59310246",
"0.58988655",
"0.58949",
"0.58839816",
"0.5874778",
"0.5865139",
"0.57673067",
"0.57673067",
"0.57673067",
"0.5744... | 0.69853985 | 0 |
Gets the index of the specified feature in the ordered collection of the current object, or 1 if such a collection doesn't contain it. | int indexOfFeature(Feature feature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int indexOf(T feature) {\n\t\tif (duplicates) {\n\t\t\treturn featuresList.indexOf(feature);\n\t\t}\n\t\t// ELSE: binary search\n\t\tint min = 0;\n\t\tint max = featuresList.size()-1;\n\t\tint middle;\n\t\t\n\t\twhile (min<=max) {\n\t\t\tmiddle = (min+max)/2;\n\t\t\tint compare = featuresList.get(middle).co... | [
"0.7259718",
"0.6336533",
"0.60017097",
"0.5877733",
"0.585926",
"0.58388007",
"0.57842433",
"0.5736991",
"0.5736991",
"0.5736991",
"0.57361555",
"0.57361555",
"0.57361555",
"0.57361555",
"0.57361555",
"0.57361555",
"0.57361555",
"0.57361555",
"0.57361555",
"0.57361555",
"0.5... | 0.7119576 | 1 |
Returns the number of objects of type "feature" previously added to the ordered collection of the current object. | int countFeatures(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFeaturesCount();",
"public int getFeaturesCount();",
"public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}",
"public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\... | [
"0.7467023",
"0.74632764",
"0.73665136",
"0.73065114",
"0.7221217",
"0.7221217",
"0.71819663",
"0.7099453",
"0.7018394",
"0.6886238",
"0.6880029",
"0.68381125",
"0.68055403",
"0.67745626",
"0.6596037",
"0.6572104",
"0.64900875",
"0.6476762",
"0.6462533",
"0.6456947",
"0.64541... | 0.6801701 | 14 |
Adds a typed feature to the collection of the current object. | void addTypedFeature(StructuralFeature typedFeature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addFeatures(IFeature feature);",
"void addFeature(Feature feature);",
"void addFeatures(Features features);",
"public void addFeature(@Nonnull Feature f) {\r\n features.add(f);\r\n }",
"private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.get... | [
"0.71796066",
"0.70305187",
"0.68178123",
"0.67916924",
"0.67225474",
"0.6648845",
"0.6549793",
"0.6400203",
"0.63817966",
"0.637358",
"0.61941576",
"0.6169952",
"0.6052215",
"0.6019844",
"0.6019844",
"0.601915",
"0.60141945",
"0.59906626",
"0.5945719",
"0.5943363",
"0.594336... | 0.830272 | 0 |
Removes a typed feature from the collection of the current object. | boolean removeTypedFeature(StructuralFeature typedFeature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearTypedFeatures();",
"Feature removeFeature(int index);",
"public void removeFeature(Feature f)\n throws ChangeVetoException, BioException;",
"public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }",
"void removeFeature(int i);",
"void removeFeature(in... | [
"0.72323555",
"0.6769573",
"0.6503713",
"0.64561546",
"0.6393695",
"0.6393695",
"0.6360152",
"0.63424313",
"0.63397735",
"0.62950647",
"0.62711036",
"0.624224",
"0.624224",
"0.62354106",
"0.6192102",
"0.6185546",
"0.61823267",
"0.6143004",
"0.6131072",
"0.6117891",
"0.6111218... | 0.793136 | 0 |
Removes all the objects of type "typed feature" from the collection of the current object. | void clearTypedFeatures(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean removeTypedFeature(StructuralFeature typedFeature);",
"void clearFeatures();",
"Collection<StructuralFeature> getTypedFeatures();",
"public void clearFeatures() {\n localFeatureVector.clear();\n }",
"public final void removeAllCompositeTypes()\n {\n listModel.removeAllElements();\n\ta... | [
"0.7353476",
"0.6666429",
"0.6652265",
"0.6564511",
"0.64311266",
"0.61388063",
"0.61257553",
"0.601239",
"0.5995912",
"0.59800035",
"0.5914625",
"0.5903474",
"0.5833299",
"0.58216804",
"0.57834625",
"0.5719622",
"0.56995386",
"0.5698796",
"0.56941813",
"0.5688209",
"0.567640... | 0.81337386 | 0 |
Gets all the objects of type "typed feature" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an eleme... | Collection<StructuralFeature> getTypedFeatures(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public synchronized Set<FeatureType> getFeatures() {\n return features = nonNullSet(features, FeatureType.class);\n }",
"@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }"... | [
"0.662041",
"0.6527424",
"0.5985653",
"0.59207225",
"0.5828279",
"0.57989764",
"0.55937797",
"0.5567822",
"0.5562131",
"0.5535677",
"0.55299157",
"0.5450754",
"0.540696",
"0.53847015",
"0.53832245",
"0.53832245",
"0.53741235",
"0.53220755",
"0.5304479",
"0.52906233",
"0.52893... | 0.7256959 | 0 |
Checks if a typed feature is contained in the collection of the current object. | boolean containsTypedFeature(StructuralFeature typedFeature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean containsFeature(Feature feature);",
"public boolean containsFeature(Feature f);",
"boolean contains(SimpleFeature feature);",
"boolean hasFeaturesUsed();",
"boolean hasCustomFeatures();",
"@Override\n\tpublic boolean contains(Type t) {\n\t\treturn true;\n\t}",
"boolean hasType();",
"boolean h... | [
"0.69521624",
"0.67632705",
"0.66968185",
"0.63863444",
"0.63270336",
"0.62589455",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097",
"0.6212097... | 0.77804464 | 0 |
Returns the number of objects of type "typed feature" previously added to the collection of the current object. | int countTypedFeatures(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFeaturesCount();",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }",
"public int sizeOfFeatureArray()\r\n {\r\... | [
"0.70900273",
"0.7046578",
"0.7046578",
"0.7043702",
"0.7039939",
"0.69207114",
"0.6911661",
"0.6813404",
"0.6772771",
"0.67321676",
"0.66875696",
"0.66238946",
"0.66237265",
"0.6575417",
"0.6575417",
"0.65460724",
"0.6530178",
"0.64802355",
"0.64802355",
"0.6458579",
"0.6458... | 0.7846618 | 0 |
Adds a typed parameter to the collection of the current object. | void addTypedParameter(Parameter typedParameter); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}",
"@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, valu... | [
"0.6595863",
"0.6466496",
"0.64336234",
"0.63888496",
"0.63707316",
"0.63644975",
"0.63331324",
"0.6319675",
"0.62434286",
"0.6186785",
"0.61561614",
"0.61339897",
"0.61268836",
"0.6114357",
"0.61079526",
"0.6100644",
"0.60992664",
"0.60602516",
"0.6055081",
"0.60462266",
"0.... | 0.8133171 | 0 |
Removes a typed parameter from the collection of the current object. | boolean removeTypedParameter(Parameter typedParameter); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearTypedParameters();",
"public void removeParam(Object obj) {\n\t\tparams.remove(obj);\n\t}",
"public void removeParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tlong paramId = Long.parseLong(params.get(\"parameter... | [
"0.67264587",
"0.671589",
"0.6585977",
"0.6365818",
"0.63235825",
"0.63073254",
"0.6288837",
"0.6243512",
"0.624146",
"0.6220105",
"0.61889356",
"0.61346465",
"0.6118295",
"0.6114642",
"0.60553145",
"0.60491467",
"0.60068387",
"0.60039485",
"0.5971944",
"0.596872",
"0.5964237... | 0.794751 | 0 |
Removes all the objects of type "typed parameter" from the collection of the current object. | void clearTypedParameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean removeTypedParameter(Parameter typedParameter);",
"void clearTypedFeatures();",
"public final void removeAllCompositeTypes()\n {\n listModel.removeAllElements();\n\tallTypes.removeAllElements();\n }",
"public void removeParam(Object obj) {\n\t\tparams.remove(obj);\n\t}",
"Collection<Pa... | [
"0.71914405",
"0.61518794",
"0.60448825",
"0.60425836",
"0.5951933",
"0.58719873",
"0.58057165",
"0.57185787",
"0.56803375",
"0.56803375",
"0.567856",
"0.5658367",
"0.5639655",
"0.56013393",
"0.55933225",
"0.559182",
"0.5564101",
"0.55593324",
"0.5529018",
"0.54840827",
"0.54... | 0.78236943 | 0 |
Gets all the objects of type "typed parameter" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an ele... | Collection<Parameter> getTypedParameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<TypeDescriptor> getAllRelatedTypes() {\n final var types = getTypeParameters().stream()\n .flatMap(type -> type.getAllRelatedTypes().stream())\n .collect(Collectors.toCollection(HashSet::new));\n\n types.add(this);\n return types;\n }",
"<T> IList<T> getOb... | [
"0.53698814",
"0.5260069",
"0.50860876",
"0.5031089",
"0.5027402",
"0.49682677",
"0.49452806",
"0.49346787",
"0.49156466",
"0.49108878",
"0.48979893",
"0.48823652",
"0.48783883",
"0.48517907",
"0.48343673",
"0.48321143",
"0.48229682",
"0.48207462",
"0.48138127",
"0.47935015",
... | 0.6311244 | 0 |
Checks if a typed parameter is contained in the collection of the current object. | boolean containsTypedParameter(Parameter typedParameter); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean contains(CParamImpl param);",
"public boolean involvesTypeParameter(TypeReference tref) throws LookupException {\n\t\treturn ! involvedTypeParameters(tref).isEmpty();\n\t}",
"public boolean hasParameter(){\n\t\tif (parameterType==null)\n\t\t\treturn false;\n\t\telse{\n\t\t\treturn true;\n\t\t}\n... | [
"0.6723989",
"0.66123426",
"0.64033675",
"0.63274384",
"0.6242869",
"0.61622036",
"0.60585785",
"0.60561496",
"0.60534626",
"0.6051864",
"0.6016169",
"0.59602123",
"0.59196633",
"0.58764",
"0.58665425",
"0.5849547",
"0.5835925",
"0.58318913",
"0.57862115",
"0.57071304",
"0.56... | 0.76700157 | 0 |
Returns the number of objects of type "typed parameter" previously added to the collection of the current object. | int countTypedParameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void countParams() {\n if( paramCount >= 0 ) {\n return;\n }\n Iterator<AnyType> parser = name.getSignature( types );\n paramCount = needThisParameter ? 1 : 0;\n while( parser.next() != null ) {\n paramCount++;\n }\n valueType = parser.... | [
"0.67333746",
"0.6728821",
"0.6577136",
"0.6523483",
"0.6507109",
"0.64717054",
"0.64717054",
"0.6452821",
"0.6452821",
"0.64412415",
"0.64412415",
"0.6398902",
"0.63685316",
"0.6358109",
"0.6352633",
"0.6312334",
"0.6292199",
"0.6277666",
"0.6269605",
"0.62319684",
"0.622662... | 0.76512194 | 0 |
Adds a association to the collection of the current object. | void addAssociation(AssociationEnd association); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addAssociation(Association association);",
"public void addAssociation(String mPackage, Class type, RefObject a, RefObject b) throws CreationException {\n\t\t\n\t\ttrace.addTrace(TraceType.CREATION, \"Create Association of type \" + type.getSimpleName() + \" in target model.\");\n\t\t\n\t\tRefPackage pkg = ... | [
"0.76872206",
"0.601823",
"0.59869885",
"0.58899075",
"0.5834001",
"0.57420975",
"0.5697582",
"0.56738555",
"0.56738555",
"0.55824506",
"0.5465931",
"0.5461362",
"0.54329586",
"0.543198",
"0.5421476",
"0.5379933",
"0.5346765",
"0.53382283",
"0.5329858",
"0.52947503",
"0.52867... | 0.68676746 | 1 |
Removes a association from the collection of the current object. | boolean removeAssociation(AssociationEnd association); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearAssociations();",
"public void removeLastAssociation()\n\t{\n\t\tfinal Association a = associations.elementAt(associations.size()-1);\n\t\ta.B.assCount--;\n\t\ta.A.assCount--;\n\t\tassociations.remove(associations.size()-1);\n\t\tuser_responses--;\n\t}",
"public void supprimerCollection(){\r\n ... | [
"0.617963",
"0.614033",
"0.5987413",
"0.57847804",
"0.5677768",
"0.5665939",
"0.56629294",
"0.5658797",
"0.56302863",
"0.56080675",
"0.5601676",
"0.5573612",
"0.5523343",
"0.5467068",
"0.5462004",
"0.54401386",
"0.5433549",
"0.5432489",
"0.5387183",
"0.53711945",
"0.53273076"... | 0.67106754 | 0 |
Removes all the objects of type "association" from the collection of the current object. | void clearAssociations(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unsetFurtherRelations();",
"public void supprimerCollection(){\r\n collection.clear();\r\n }",
"private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }",
"public void removeLastAssociation()\n\t{\n\t\tfinal Association a = associations.elementAt(ass... | [
"0.6509274",
"0.6375863",
"0.62936777",
"0.6174743",
"0.6038163",
"0.60346675",
"0.5975661",
"0.58960885",
"0.5887343",
"0.58616465",
"0.585111",
"0.58312094",
"0.57785773",
"0.5740115",
"0.5725502",
"0.57192",
"0.57051736",
"0.5701766",
"0.56788766",
"0.5669559",
"0.5659425"... | 0.78931314 | 0 |
Gets all the objects of type "association" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element... | Collection<AssociationEnd> getAssociations(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ResultMap<Association> associations();",
"public ResultMap<Association> associations(QName associationTypeQName, Pagination pagination);",
"public ResultMap<Association> associations(Pagination pagination);",
"void readAssociations() {\n // proxy the collections for lazy loading\n Class ... | [
"0.6437654",
"0.595353",
"0.584405",
"0.5810434",
"0.5791149",
"0.5716975",
"0.5654666",
"0.5647936",
"0.55488706",
"0.5517832",
"0.5426111",
"0.5385935",
"0.53809243",
"0.53456616",
"0.53456616",
"0.5232724",
"0.5207877",
"0.5161166",
"0.5146965",
"0.5125104",
"0.507442",
... | 0.7160725 | 0 |
Checks if a association is contained in the collection of the current object. | boolean containsAssociation(AssociationEnd association); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetBelongs_to_collection() {\n return this.belongs_to_collection != null;\n }",
"public boolean containsRelations();",
"private boolean isAssociated(final KeyValuePair<K, V> association) {\n return indexMap.containsKey(association);\n }",
"@Override\n public boolean isOwning... | [
"0.7065049",
"0.65703744",
"0.6459333",
"0.641129",
"0.6320732",
"0.61781746",
"0.6162685",
"0.61268216",
"0.6101379",
"0.6017788",
"0.6005408",
"0.598457",
"0.59776545",
"0.59559804",
"0.59554046",
"0.5852159",
"0.5852159",
"0.5852159",
"0.5830098",
"0.57871324",
"0.577885",... | 0.7234905 | 0 |
Returns the number of objects of type "association" previously added to the collection of the current object. | int countAssociations(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }",
"public int size() {\n\t\treturn collection.size();\n\t}",
"public int size() {return collection.size(... | [
"0.7566293",
"0.69306624",
"0.69270515",
"0.68979806",
"0.68797797",
"0.68760777",
"0.66979784",
"0.66547406",
"0.6645567",
"0.6638671",
"0.65843654",
"0.65636265",
"0.6549729",
"0.6523932",
"0.6523363",
"0.64917797",
"0.6456729",
"0.6369204",
"0.634648",
"0.63089937",
"0.628... | 0.75216657 | 1 |
Adds a specified end to the collection of the current object. | void addSpecifiedEnd(AssociationEnd specifiedEnd); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addToEnd(T obj) {\r\n \t\t// Check obj is not null\r\n \t\tif(obj == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// Check if items is full\r\n \t\tif(numItems == items.length) {\r\n \t\t\tdoubleArrayLength();\r\n \t\t}\r\n \t\titems[numItems++] = obj;\r\n \t}",
"public M csmiAddTimeEnd(Object end){th... | [
"0.63600767",
"0.6350231",
"0.6341763",
"0.6318266",
"0.626774",
"0.625208",
"0.6211147",
"0.6169737",
"0.61419785",
"0.61203593",
"0.61010563",
"0.60775894",
"0.6074612",
"0.60244864",
"0.5923654",
"0.59233236",
"0.5899647",
"0.5887299",
"0.58871025",
"0.5871148",
"0.5795596... | 0.6998014 | 0 |
Removes a specified end from the collection of the current object. | boolean removeSpecifiedEnd(AssociationEnd specifiedEnd); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Type removeEnd(){\n Type value = null;\n if( !this.isEmpty() ){\n value = this.end.value;\n if(this.start == this.end){\n this.start = this.end = null;\n }else{\n this.end = this.end.prev;\n this.end.next = null;\n ... | [
"0.6659011",
"0.6615798",
"0.6579865",
"0.65578884",
"0.65253496",
"0.64793813",
"0.64714366",
"0.6436308",
"0.6383587",
"0.63518",
"0.6143652",
"0.6136543",
"0.61165017",
"0.6113527",
"0.6083918",
"0.6067986",
"0.6049493",
"0.60319406",
"0.59877783",
"0.5974377",
"0.5958854"... | 0.7014873 | 0 |
Removes all the objects of type "specified end" from the collection of the current object. | void clearSpecifiedEnds(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unsetEnd();",
"public Type removeEnd(){\n Type value = null;\n if( !this.isEmpty() ){\n value = this.end.value;\n if(this.start == this.end){\n this.start = this.end = null;\n }else{\n this.end = this.end.prev;\n thi... | [
"0.63055044",
"0.6284035",
"0.6192807",
"0.59675896",
"0.59408134",
"0.58885616",
"0.58822185",
"0.5849597",
"0.5792212",
"0.57820666",
"0.5745264",
"0.56875956",
"0.5663918",
"0.56204504",
"0.55896646",
"0.55886227",
"0.558225",
"0.556123",
"0.5479059",
"0.54773104",
"0.5473... | 0.58768606 | 7 |
Gets all the objects of type "specified end" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an eleme... | Collection<AssociationEnd> getSpecifiedEnds(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<AssociationEnd> getAssociations();",
"private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\... | [
"0.5693901",
"0.5367192",
"0.5350089",
"0.5270967",
"0.5216992",
"0.51606256",
"0.51400125",
"0.5105492",
"0.50495195",
"0.5030331",
"0.50171524",
"0.49895796",
"0.49189207",
"0.49188918",
"0.49108118",
"0.4906739",
"0.49016756",
"0.4896182",
"0.48386008",
"0.48273236",
"0.48... | 0.49790934 | 12 |
Checks if a specified end is contained in the collection of the current object. | boolean containsSpecifiedEnd(AssociationEnd specifiedEnd); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean containsAssociation(AssociationEnd association);",
"boolean hasIsPartOf();",
"@NoProxy\n @NoWrap\n public boolean inDateTimeRange(final String start, final String end) {\n if ((getEntityType() == IcalDefs.entityTypeTodo) &&\n getNoStart()) {\n // XXX Wrong? - true if start - end cover... | [
"0.69622964",
"0.6243561",
"0.61794543",
"0.61483747",
"0.61112946",
"0.61112946",
"0.59719765",
"0.5905631",
"0.5900351",
"0.58663964",
"0.5853157",
"0.5850234",
"0.5825913",
"0.5814727",
"0.5790878",
"0.5789031",
"0.5786252",
"0.57859844",
"0.57748824",
"0.5763071",
"0.5760... | 0.76227653 | 0 |
Returns the number of objects of type "specified end" previously added to the collection of the current object. | int countSpecifiedEnds(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size() {\n\t\treturn end;\n\t}",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"public long size() {\n\treturn end - start + 1;\n }",
"public int getCount() {\n return objects.size();\n }",
"public int size(){\n\t\tListUtilities start = ... | [
"0.65919787",
"0.6411524",
"0.64068663",
"0.63613206",
"0.6334546",
"0.6189147",
"0.6103228",
"0.6101447",
"0.6101447",
"0.6094317",
"0.60933363",
"0.6072798",
"0.60687375",
"0.6067686",
"0.6066362",
"0.6066362",
"0.60617113",
"0.60605526",
"0.60585326",
"0.6029945",
"0.60291... | 0.0 | -1 |
Adds a powertype range to the collection of the current object. | void addPowertypeRange(Generalization powertypeRange); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }",
"@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }",
"public void addRange(int range) {\n this.range += range;\n if(this.range <= 0)\n this.ran... | [
"0.6648584",
"0.6562582",
"0.6341937",
"0.59264237",
"0.5844878",
"0.5765667",
"0.57614034",
"0.56062037",
"0.5591481",
"0.5552105",
"0.5386697",
"0.53598344",
"0.52307045",
"0.5183351",
"0.5106448",
"0.51018614",
"0.5096419",
"0.5071647",
"0.50664514",
"0.5061463",
"0.504896... | 0.81579405 | 0 |
Removes a powertype range from the collection of the current object. | boolean removePowertypeRange(Generalization powertypeRange); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearPowertypeRanges();",
"public void removeRange(Range range) {\n ranges.remove(range);\n }",
"@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\... | [
"0.7065562",
"0.6577767",
"0.62087524",
"0.5978104",
"0.5874881",
"0.5839212",
"0.5836653",
"0.58020294",
"0.5775733",
"0.5607812",
"0.5607812",
"0.5607812",
"0.5607812",
"0.5607812",
"0.5607812",
"0.5607812",
"0.5599081",
"0.5591022",
"0.558057",
"0.5548076",
"0.545204",
"... | 0.7586326 | 0 |
Removes all the objects of type "powertype range" from the collection of the current object. | void clearPowertypeRanges(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean removePowertypeRange(Generalization powertypeRange);",
"@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}",
"public void clearAll() {\n ... | [
"0.7360077",
"0.61801875",
"0.5847832",
"0.5661473",
"0.5621461",
"0.55581295",
"0.5554355",
"0.5488041",
"0.5460188",
"0.5420117",
"0.54081494",
"0.5383551",
"0.5225463",
"0.5220431",
"0.51911056",
"0.51768285",
"0.5176044",
"0.51737386",
"0.51707894",
"0.5165224",
"0.514168... | 0.7560998 | 0 |
Gets all the objects of type "powertype range" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an ele... | Collection<Generalization> getPowertypeRanges(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CollectionRange createCollectionRange();",
"public Set<T> getRanges();",
"public List<Range> getRanges() {\n // Lazy initialization with double-check.\n List<Range> r = this.ranges;\n if (r == null) {\n synchronized (this) {\n r = this.ranges;\n if ... | [
"0.60166353",
"0.5924132",
"0.5816025",
"0.5678444",
"0.5574977",
"0.5541368",
"0.5517575",
"0.54525703",
"0.5444686",
"0.5348181",
"0.5315629",
"0.52900875",
"0.52761817",
"0.52551883",
"0.52411586",
"0.516199",
"0.51531994",
"0.5115094",
"0.51140827",
"0.510389",
"0.5100382... | 0.6680433 | 0 |
Checks if a powertype range is contained in the collection of the current object. | boolean containsPowertypeRange(Generalization powertypeRange); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }",
"@Override\r\n public boolean checkElements(SequenceConstructio... | [
"0.6551617",
"0.64103955",
"0.6097873",
"0.6091002",
"0.60847527",
"0.58959043",
"0.5888857",
"0.58707815",
"0.58644336",
"0.5769254",
"0.56957555",
"0.5691003",
"0.5682855",
"0.5671659",
"0.56675726",
"0.5641715",
"0.5622509",
"0.56205046",
"0.56194746",
"0.55996805",
"0.554... | 0.7862961 | 0 |
Returns the number of objects of type "powertype range" previously added to the collection of the current object. | int countPowertypeRanges(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int RangeCount()\n\t{\n\t\treturn _rangelist.size();\n\t}",
"int getPickupsCount();",
"public int getNumTypeBound() {\n return getTypeBoundList().getNumChild();\n }",
"private int getReferences() {\n int quantity = 0;\n for (Option o : criteriaList.get(currentCriteria).getOptionList... | [
"0.67744595",
"0.6098297",
"0.59130293",
"0.5875942",
"0.58412707",
"0.58239025",
"0.577762",
"0.5753073",
"0.57318664",
"0.57317126",
"0.5716915",
"0.5708738",
"0.56556",
"0.5640984",
"0.564013",
"0.56372",
"0.5636356",
"0.56292474",
"0.56181043",
"0.5603309",
"0.5603309",
... | 0.6952355 | 0 |
Adds a object flow state to the collection of the current object. | void addObjectFlowState(ObjectFlowState objectFlowState); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addState(E state) {\n if (!frozen && state != null && state.getClass() != null) {\n if (present != null) {\n past.addLast(present);\n }\n present = state;\n forgetFuture();\n }\n }",
"public void addState(State state){\n\t\ts... | [
"0.6323232",
"0.62600064",
"0.6187759",
"0.61546415",
"0.6102062",
"0.6087565",
"0.603927",
"0.5998153",
"0.5946331",
"0.5907466",
"0.5889987",
"0.58360255",
"0.5834452",
"0.5827735",
"0.58039725",
"0.5782576",
"0.57519084",
"0.57474643",
"0.5738983",
"0.5728965",
"0.57271373... | 0.8420536 | 0 |
Removes a object flow state from the collection of the current object. | boolean removeObjectFlowState(ObjectFlowState objectFlowState); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearObjectFlowStates();",
"public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }",
"private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.c... | [
"0.77571887",
"0.6326566",
"0.62968534",
"0.6269225",
"0.6230302",
"0.62181944",
"0.60116506",
"0.59444785",
"0.5922789",
"0.58974236",
"0.5860446",
"0.5848773",
"0.58340144",
"0.5816835",
"0.5807373",
"0.57076794",
"0.56995165",
"0.5677052",
"0.56723505",
"0.56510466",
"0.56... | 0.8347465 | 0 |
Removes all the objects of type "object flow state" from the collection of the current object. | void clearObjectFlowStates(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean removeObjectFlowState(ObjectFlowState objectFlowState);",
"private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }",
"@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }",
"Collection<ObjectFlo... | [
"0.74583036",
"0.70816433",
"0.6602452",
"0.6532646",
"0.6218169",
"0.6193238",
"0.6107686",
"0.610715",
"0.6104301",
"0.5985617",
"0.5973944",
"0.5893671",
"0.5879077",
"0.58766425",
"0.5848064",
"0.5847046",
"0.5839818",
"0.5839818",
"0.58191484",
"0.5818129",
"0.5786839",
... | 0.8245581 | 0 |
Gets all the objects of type "object flow state" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an e... | Collection<ObjectFlowState> getObjectFlowStates(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\t\n\tpublic InventoryObjectState getObjectsCurrentState();",
"public StateVariable getRelevantObjects () {\n return relevantObjects;\n }",
"public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n... | [
"0.5950077",
"0.58132446",
"0.57407564",
"0.5683233",
"0.56130546",
"0.56119496",
"0.55308956",
"0.54405224",
"0.54272777",
"0.5420912",
"0.5391524",
"0.538743",
"0.5240091",
"0.518584",
"0.5166551",
"0.514778",
"0.51377445",
"0.5135655",
"0.51232445",
"0.51166326",
"0.510023... | 0.7081549 | 0 |
Checks if a object flow state is contained in the collection of the current object. | boolean containsObjectFlowState(ObjectFlowState objectFlowState); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkWfState(String view_name, String objid)\n {\n ASPManager mgr = getASPManager();\n ASPContext ctx = mgr.getASPContext();\n String objid_ = (String)ctx.findGlobalObject(prefix_wf_ob_dr + view_name);\n if (\"ALL\".equals(objid_))\n return true;\n \n if (!mg... | [
"0.63371307",
"0.619343",
"0.6166202",
"0.6028145",
"0.6028145",
"0.6028145",
"0.6028145",
"0.6028145",
"0.6028145",
"0.6028145",
"0.600498",
"0.5996472",
"0.59874785",
"0.59803414",
"0.5968284",
"0.5968284",
"0.5968284",
"0.5968284",
"0.5968284",
"0.5968284",
"0.5968284",
... | 0.817357 | 0 |
Returns the number of objects of type "object flow state" previously added to the collection of the current object. | int countObjectFlowStates(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"public int getNumObjects(){\n return numObjects;\n }",
"public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}",
"public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}",
"... | [
"0.77619344",
"0.7200647",
"0.7184607",
"0.704058",
"0.7031246",
"0.69242656",
"0.69065285",
"0.68055654",
"0.66135174",
"0.6560494",
"0.6528209",
"0.644238",
"0.64005977",
"0.63598007",
"0.6338092",
"0.63192487",
"0.6317344",
"0.6317344",
"0.6317344",
"0.6313145",
"0.6304856... | 0.78306615 | 0 |
Adds a instance to the collection of the current object. | void addInstance(Instance instance); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}",
"void add(T instance);",
"@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}",
"@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }",
"@Override\n <T> void add(T o... | [
"0.7142063",
"0.7072026",
"0.65351963",
"0.6515934",
"0.6496596",
"0.63853323",
"0.63764083",
"0.63591266",
"0.63497853",
"0.62846166",
"0.6238758",
"0.62286794",
"0.62104326",
"0.61866933",
"0.6166792",
"0.61505944",
"0.6133672",
"0.61116314",
"0.61030036",
"0.6099634",
"0.6... | 0.7347758 | 0 |
Removes a instance from the collection of the current object. | boolean removeInstance(Instance instance); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void remove(T instance);",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove(... | [
"0.7124559",
"0.66097033",
"0.66097033",
"0.66097033",
"0.66097033",
"0.66097033",
"0.66097033",
"0.66097033",
"0.6591258",
"0.6460836",
"0.64255834",
"0.6411209",
"0.6411209",
"0.6411209",
"0.6411209",
"0.6411209",
"0.63983655",
"0.63767844",
"0.63608557",
"0.6339932",
"0.63... | 0.6849223 | 1 |
Removes all the objects of type "instance" from the collection of the current object. | void clearInstances(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearInstances() {\n\t\t\tinterceptor.printer = null;\n\t\t\tinterceptor.converter = null;\n\t\t}",
"public void removeDups(Instance instance) {\n ArrayList<Instance> toRemove = backRelation.get(instance);\n if(toRemove == null)\n return;\n for (Instance remove : toRemove) {\n ... | [
"0.70525384",
"0.68529564",
"0.675028",
"0.66539866",
"0.65272534",
"0.6506404",
"0.64618725",
"0.62933445",
"0.62392217",
"0.6237274",
"0.6082785",
"0.60231453",
"0.59807175",
"0.59706634",
"0.59706634",
"0.59706634",
"0.59706634",
"0.59706634",
"0.59706634",
"0.59706634",
"... | 0.73434913 | 0 |
Gets all the objects of type "instance" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element co... | Collection<Instance> getInstances(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\... | [
"0.6727117",
"0.6472645",
"0.62525797",
"0.6159192",
"0.60146403",
"0.59769416",
"0.59522814",
"0.5952162",
"0.5941661",
"0.58498126",
"0.58334374",
"0.58260065",
"0.58196944",
"0.581206",
"0.57830167",
"0.5683325",
"0.56828165",
"0.56149346",
"0.5611938",
"0.55986243",
"0.55... | 0.727682 | 0 |
Checks if a instance is contained in the collection of the current object. | boolean containsInstance(Instance instance); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }",
"public boolean contains(T instance);",
"boolean containsInstance(EObject modelElement);",
"public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}",
"boolean... | [
"0.69402385",
"0.68996054",
"0.67950225",
"0.6598483",
"0.6554116",
"0.64988744",
"0.6488632",
"0.6478562",
"0.64674085",
"0.6434564",
"0.6434564",
"0.6434564",
"0.6416309",
"0.6396047",
"0.6278358",
"0.62762433",
"0.62502855",
"0.6209207",
"0.6209207",
"0.6193312",
"0.617400... | 0.75567865 | 0 |
Returns the number of objects of type "instance" previously added to the collection of the current object. | int countInstances(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInstanceCount() {\n return instanceCount;\n }",
"public int getInstanceCount() {\n return instanceCount;\n }",
"@Required\n @Updatable\n public Integer getInstanceCount() {\n return instanceCount;\n }",
"public int getObjectCount() {\n\t\tretu... | [
"0.75739044",
"0.75739044",
"0.7318624",
"0.7126196",
"0.7096691",
"0.6974616",
"0.69629884",
"0.686074",
"0.68591416",
"0.68591416",
"0.6852383",
"0.6720563",
"0.66465425",
"0.66184676",
"0.6541082",
"0.6530393",
"0.6530393",
"0.6509573",
"0.64902455",
"0.64702475",
"0.64216... | 0.6905995 | 7 |
Returns the Red component of the RGB color. | public int getR(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getRedColor() {\n\t\treturn this.redColor;\n\t}",
"static public int getRed(int color) {\n return (color >> 16) & 0xff;\n }",
"public RGBColor getColor(){\r\n return this._color;\r\n }",
"public static int getRed(int color) {\n return (color & 0x00FF0000) >> 16;\n ... | [
"0.80406475",
"0.7890086",
"0.77948695",
"0.76885056",
"0.7501028",
"0.7403645",
"0.7306322",
"0.7208705",
"0.7185102",
"0.71848917",
"0.71848917",
"0.71848917",
"0.71848917",
"0.71848917",
"0.71498626",
"0.708854",
"0.7084342",
"0.7066277",
"0.70333785",
"0.6968953",
"0.6953... | 0.0 | -1 |
Returns the Green component of the RGB color. | public int getG(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public int getGreen(int color) {\n return (color >> 8) & 0xff;\n }",
"public static int getGreen(int color) {\n return color & 0x000000FF;\n }",
"public final int getG() {\n\t\treturn green;\n\t}",
"public int getGreen()\n\t{\n\t\treturn green;\n\t}",
"public float getGreen() {\n... | [
"0.8023079",
"0.7843616",
"0.73001975",
"0.70285726",
"0.670956",
"0.66155106",
"0.6601355",
"0.65526026",
"0.65384245",
"0.65384245",
"0.65384245",
"0.65384245",
"0.65384245",
"0.6504419",
"0.6445049",
"0.6331763",
"0.63156956",
"0.6310881",
"0.6258683",
"0.6250818",
"0.6216... | 0.0 | -1 |
Returns the Blue component of the RGB color. | public int getB(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public int getBlue(int color) {\n return color & 0xff;\n }",
"public static int getBlue(int color) {\n return (color & 0x0000FF00) >> 8;\n }",
"public final int getB() {\n\t\treturn blue;\n\t}",
"public static int getColorB(int color) {\r\n return color & 0xff;\r\n }",
... | [
"0.80165184",
"0.7801159",
"0.77324957",
"0.7472214",
"0.7368037",
"0.72309077",
"0.72133636",
"0.7145701",
"0.66494805",
"0.66159636",
"0.6615595",
"0.66099745",
"0.6563814",
"0.6563814",
"0.6563814",
"0.6563814",
"0.6563814",
"0.65596133",
"0.6529168",
"0.6303116",
"0.62845... | 0.0 | -1 |
Returns the Alpha component (transparency) of the RGB color, between 0 and 1. | public double getA(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getAlpha(int color) {\n return (color >> 24) & 0xFF;\n }",
"public int getAlpha()\n {\n return getColor().alpha();\n }",
"public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }",
"public static int getColorWithAlpha(float alpha, i... | [
"0.79673535",
"0.7700109",
"0.71110976",
"0.70711535",
"0.6963351",
"0.69183046",
"0.68707937",
"0.6859858",
"0.68359447",
"0.6785625",
"0.6785625",
"0.6774715",
"0.6760363",
"0.67423314",
"0.6658992",
"0.66551244",
"0.66330934",
"0.66235226",
"0.66050977",
"0.65244156",
"0.6... | 0.0 | -1 |
Returns a CCS compliant color string that can be set as a color on an HTML5 canvas. | public String getColorString(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getColor();",
"public static String cssColor(final char c) {\n\tfinal short[] array = _cssColor0(c);\n\treturn \"rgb(\"+array[0]+\",\"+array[1]+\",\"+array[2]+\")\";\n\t}",
"public String getColor() {\r\n\t\treturn \"Color = [\"+ ColorUtil.red(color) + \", \"+ ColorUtil.green(color) + \", \"+ ColorUtil.... | [
"0.6813692",
"0.6610416",
"0.6456026",
"0.6404343",
"0.6403552",
"0.63977623",
"0.6338196",
"0.63046616",
"0.61481565",
"0.61062014",
"0.61062014",
"0.6051958",
"0.6034517",
"0.60270554",
"0.60194296",
"0.60194296",
"0.60194296",
"0.60194296",
"0.60194296",
"0.60194296",
"0.6... | 0.67948884 | 1 |
Every fragment has to inflate a layout in the onCreateView method. We have added this method to avoid duplicate all the inflate code in every fragment. You only have to return the layout to inflate in this method when extends BaseFragment. | protected abstract int getFragmentLayout(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, Vi... | [
"0.80685645",
"0.80027664",
"0.7942582",
"0.79075134",
"0.78061056",
"0.77848303",
"0.7784188",
"0.7779864",
"0.77693063",
"0.77683294",
"0.7765343",
"0.7733279",
"0.7710199",
"0.7705993",
"0.76953876",
"0.7671548",
"0.767099",
"0.766542",
"0.7651362",
"0.76299316",
"0.762966... | 0.0 | -1 |
Enables or disables explicit health checks. | public void setEnabled(boolean enabled) {
synchronized (mLock) {
Slog.i(TAG, "Explicit health checks " + (enabled ? "enabled." : "disabled."));
mEnabled = enabled;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHasCustomHealth(boolean bool) {\n this.hasCustomHealth = bool;\n }",
"@GetMapping(path = ApiConstant.HEALTH_CHECK_API, produces = APPLICATION_JSON_VALUE)\n public ResponseEntity checkHealth() {\n logger.info(\"Health checking.\");\n HashMap<String, String> map = new Hash... | [
"0.576193",
"0.57423425",
"0.5699217",
"0.5692261",
"0.5674172",
"0.56637007",
"0.5590391",
"0.5572464",
"0.5529861",
"0.5488916",
"0.5480094",
"0.5458458",
"0.54469216",
"0.5389702",
"0.5383614",
"0.5380123",
"0.5379335",
"0.53731066",
"0.5369288",
"0.5338446",
"0.5304626",
... | 0.63863856 | 0 |
Sets callbacks to listen to important events from the controller. Should be called once at initialization before any other calls to the controller to ensure a happensbefore relationship of the set parameters and visibility on other threads. | public void setCallbacks(Consumer<String> passedConsumer,
Consumer<List<PackageConfig>> supportedConsumer, Runnable notifySyncRunnable) {
synchronized (mLock) {
if (mPassedConsumer != null || mSupportedConsumer != null
|| mNotifySyncRunnable != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCallbacks(Queue<EventCallback<T>> callbacks) {\n this.callbacks = callbacks;\n }",
"private void setListeners() {\n\n }",
"@Override\n\tpublic void setup()\n\t{\n\t\tCoreNotifications.get().addListener(this, ICoreContextOperationListener.class);\n\t\tCoreNotifications.get().addListe... | [
"0.6127828",
"0.61103004",
"0.6085649",
"0.5938671",
"0.59340686",
"0.59323347",
"0.5905914",
"0.5897417",
"0.5893089",
"0.58870757",
"0.58779943",
"0.5870271",
"0.5862546",
"0.5853684",
"0.5831896",
"0.58015305",
"0.5792693",
"0.578942",
"0.5775583",
"0.57652",
"0.57466626",... | 0.5811234 | 15 |
Binds to the explicit health check service if the controller is enabled and not already bound. | private void bindService() {
synchronized (mLock) {
if (!mEnabled || mConnection != null || mRemoteService != null) {
if (!mEnabled) {
Slog.i(TAG, "Not binding to service, service disabled");
} else if (mRemoteService != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doBind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(!isBound){\n \t\ti = new Intent(context, LocationService.class);\n \t\tcontext.bindService(i, SpeedConnection, Context.BIND_AUTO_CREATE);\n \t\tcontext.startService(i);\n \t\teditor.putBoolean(\"isBound\", tru... | [
"0.582308",
"0.5637887",
"0.5624047",
"0.5584248",
"0.5581337",
"0.55285335",
"0.5505504",
"0.5476783",
"0.5449085",
"0.53567684",
"0.53342146",
"0.5248189",
"0.5222727",
"0.52193695",
"0.5154028",
"0.5152735",
"0.51415914",
"0.5125568",
"0.5123864",
"0.5092971",
"0.5057036",... | 0.7209901 | 0 |
Service crashed or process was killed, onServiceConnected will be called. Don't need to rebind. | @Override
@MainThread
public void onServiceDisconnected(ComponentName name) {
Slog.i(TAG, "Explicit health check service is disconnected " + name);
synchronized (mLock) {
mRemoteService = null;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }",
"@Override\n public void onServiceDisconnected(ComponentName name) ... | [
"0.7565787",
"0.74734086",
"0.74553347",
"0.73770124",
"0.73732454",
"0.73376554",
"0.7217009",
"0.72051793",
"0.7188766",
"0.71839035",
"0.7162605",
"0.7123844",
"0.7123844",
"0.7116934",
"0.71096236",
"0.71096236",
"0.70866597",
"0.7082866",
"0.7082866",
"0.7078959",
"0.706... | 0.710057 | 16 |
Application hosting service probably got updated Need to rebind. | @Override
public void onBindingDied(ComponentName name) {
Slog.i(TAG, "Explicit health check service binding is dead. Rebind: " + name);
unbindService();
bindService();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void reconfigureService() {\n }",
"void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At ... | [
"0.6250976",
"0.62401",
"0.6020079",
"0.6009982",
"0.5951896",
"0.594914",
"0.59475815",
"0.584689",
"0.57955897",
"0.5747468",
"0.56513166",
"0.56351125",
"0.56314236",
"0.5575693",
"0.5531241",
"0.5523123",
"0.549931",
"0.5495754",
"0.5490561",
"0.54783297",
"0.5473199",
... | 0.582608 | 8 |
Should never happen. Service returned null from onBind. | @Override
public void onNullBinding(ComponentName name) {
Slog.wtf(TAG, "Explicit health check service binding is null?? " + name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void doBindService() {\n\n if (bindService(new Intent(MainActivity.this, PositionService.class),\n mConnection, Context.BIND_AUTO_CREATE)) {\n mBound = true;\n } else {\n Log.e(\"MY_APP_TAG\", \"Error: The requested service doesn't \" +\n \"exis... | [
"0.7682608",
"0.749427",
"0.7413393",
"0.7396515",
"0.7319886",
"0.73171544",
"0.73151493",
"0.7280991",
"0.7280991",
"0.7274565",
"0.72652537",
"0.72468185",
"0.7196997",
"0.7196226",
"0.71625787",
"0.71026385",
"0.7097509",
"0.709684",
"0.7067293",
"0.70363",
"0.69505036",
... | 0.0 | -1 |
Unbinds the explicit health check service. | private void unbindService() {
synchronized (mLock) {
if (mRemoteService != null) {
mContext.unbindService(mConnection);
mRemoteService = null;
mConnection = null;
}
Slog.i(TAG, "Explicit health check service is unbound");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unbindService(ServiceConnection connection);",
"@Override\n public void onBindingDied(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n ... | [
"0.68178976",
"0.6796177",
"0.67836696",
"0.6580098",
"0.65049845",
"0.65027434",
"0.643275",
"0.6384387",
"0.6339413",
"0.6236558",
"0.6216665",
"0.6152031",
"0.6149592",
"0.6094972",
"0.60899913",
"0.60767454",
"0.6048486",
"0.6030402",
"0.60241866",
"0.59652215",
"0.594621... | 0.81366354 | 0 |
This method gets the value from the index provided. | public int get(int i)
{
if(integerList != null)
return integerList[i];
else
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getValue(int index);",
"abstract public Object getValue(int index);",
"@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }",
"public int get(int index);",
"public T get(int index) {\n return v.get(index);\n }",
"publ... | [
"0.82284284",
"0.80888486",
"0.80303985",
"0.7981444",
"0.78812593",
"0.78211176",
"0.7756181",
"0.7618478",
"0.7618478",
"0.7597424",
"0.7596455",
"0.7560562",
"0.7560562",
"0.7560562",
"0.75506765",
"0.75506765",
"0.7546802",
"0.751516",
"0.7497478",
"0.7480492",
"0.7466355... | 0.0 | -1 |
Returns the getArrayLength of the current array. | public int length()
{
if(integerList == null)
return 0;
else
return integerList.length;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getArrayLength();",
"int getArrayLength();",
"public int getLength(){\r\n\t \treturn arraySize;\r\n\t }",
"public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }",
"public int size() {\n\t\treturn array.length();\n\t}",
"public int arrayCo... | [
"0.84385896",
"0.84385896",
"0.80211425",
"0.7943986",
"0.790487",
"0.78864455",
"0.78627735",
"0.78059685",
"0.7766548",
"0.76965714",
"0.76740724",
"0.75483596",
"0.7524163",
"0.7195932",
"0.7174264",
"0.71366894",
"0.70647544",
"0.7052528",
"0.70499307",
"0.7045208",
"0.68... | 0.0 | -1 |
getCompareSum returns the amount we want to compare our sum to. | public Long getCompareSum()
{
return compareSum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getSum();",
"double getSum();",
"public java.math.BigDecimal getSum() {\n\treturn sum;\n}",
"public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t... | [
"0.552107",
"0.552107",
"0.5461221",
"0.53835124",
"0.5377723",
"0.53390986",
"0.53213394",
"0.53127027",
"0.5292341",
"0.5252008",
"0.52197945",
"0.5212418",
"0.51852757",
"0.5183529",
"0.51701206",
"0.51457083",
"0.5107822",
"0.5050893",
"0.5025182",
"0.50152856",
"0.497556... | 0.7350887 | 0 |
getSum sums up the total from the integerList. | public long getSum()
{
long sum = 0;
for(int i = 0; i < integerList.length; i++)
{
sum = sum + integerList[i];
}
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int sumList(ArrayList<Integer> list){\r\n\t\tint result =0;\r\n\t\tfor(int i: list){\r\n\t\t\tresult = result + i;\r\n\t\t}\r\n\t\treturn result;\r\n\t\t\r\n\t}",
"public static int getSum(List<Object>list){\n\t\tint c=0;\n\t\tfor(int i=0;i<list.size();i++){\n\t\t\tif(list.get(i) instanceof Integer){\n... | [
"0.7470309",
"0.74188876",
"0.7332994",
"0.7269665",
"0.7219565",
"0.7214303",
"0.70887595",
"0.7086536",
"0.70854115",
"0.702743",
"0.702743",
"0.70136327",
"0.6836192",
"0.6832473",
"0.6808758",
"0.67221105",
"0.66840637",
"0.6558639",
"0.6555811",
"0.6534029",
"0.65206134"... | 0.79491764 | 0 |
/ This method allocates more space for the array. Precisely it double the space every time. | private void resizeArray()
{
int[] temp = new int[integerList.length * 2];//Create new array with twice the size.
for(int i = 0; i < integerList.length; i++)//Populate new array with data from old array
{
temp[i] = integerList[i];
}
integerList = temp;//Set the in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }",
"private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray =... | [
"0.7295891",
"0.7230984",
"0.7191749",
"0.7149707",
"0.71275246",
"0.7040889",
"0.6965933",
"0.6964724",
"0.6953754",
"0.690967",
"0.6796872",
"0.6762605",
"0.6753777",
"0.6743518",
"0.6739499",
"0.67257214",
"0.6690016",
"0.66792244",
"0.6667698",
"0.66545445",
"0.6651112",
... | 0.62515765 | 53 |
/ readFile opens a file and reads in all of the integers from the given file. | private void readInFile()
{
try
{
file = new File(fileAddress);//Create new file from the given file name
fileScanner = new Scanner(file);//Create a file scanner to scan for all the integers
}
catch(FileNotFoundException e) //Throws a FileNotFountException if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Integer> readFile(File file) {\n\t\tArrayList<Integer> fileData = new ArrayList<Integer>();\n\t\t// read the file\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile (sc.hasNextInt()) {\n\t\t\t\tfileData.add(sc.nextInt());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException ... | [
"0.76239395",
"0.73167664",
"0.71421367",
"0.7085026",
"0.6907366",
"0.67733496",
"0.67254484",
"0.6684564",
"0.6653301",
"0.66194284",
"0.65815985",
"0.6385675",
"0.63113713",
"0.63112295",
"0.63037825",
"0.6266334",
"0.6234429",
"0.6181558",
"0.6175353",
"0.6169802",
"0.616... | 0.64430636 | 11 |
Sends a specific order to the order broker. The method recives the message from the analysis executor. | public void send(Order brokerMsg) {
// System.out.println("Sending a transaction from. price" + brokerMsg.getPrice() + " buy : " + brokerMsg.isBuy());
MessageCreator messageCreator = new MessageCreator() {
@Override
public Message createMessage(Session session) throws JMSExcep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendOrderMessage(OrderEntity orderEntity) {\n\t\tOrderEntity cur = getCurrentOrder(orderEntity.getOrderId());\n\t\tif(!\"Y\".equals(cur.getSendStatus())) {\n\t\t\t\n\t\t\t//TODO send order by e-mail or other channels\n\t\t\t\n\t\t\tcur.setSendStatus(\"Y\");\n\t\t\tsaveOrder(cur);\n\t\t}\n\t\t\n\t}",
... | [
"0.72448796",
"0.7135796",
"0.68700606",
"0.6800426",
"0.65383536",
"0.6516659",
"0.64669466",
"0.6371336",
"0.63144004",
"0.63119864",
"0.6247917",
"0.6191299",
"0.6189426",
"0.6171628",
"0.6145693",
"0.60985917",
"0.60915446",
"0.60474235",
"0.60177815",
"0.60081875",
"0.59... | 0.6992557 | 2 |
Created by happy on 2019/9/20. | public interface SendSmsService {
public String sendSms(String phoneNum);
public boolean checkSmsCode(String phoneNum, String smsCode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}"... | [
"0.5842835",
"0.5719488",
"0.55224913",
"0.54229957",
"0.54229957",
"0.5408971",
"0.5400505",
"0.53956425",
"0.5391909",
"0.53582305",
"0.5345321",
"0.5344362",
"0.5294158",
"0.5235002",
"0.52107155",
"0.52085084",
"0.52068853",
"0.5196756",
"0.5196756",
"0.5196756",
"0.51967... | 0.0 | -1 |
Representation of a provision in the view. A provision is a "graphical" representation of a food in the GUI. | public interface ViewProvision extends Colorable {
/**
* @return the radius of the bacteria.
*/
Radius getRadius();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PVPlant extends ElectricityGenerator {\n\n\t/**\n\t * Total area of the panels.\n\t */\n\tAreaResource panelArea();\n\n\t/**\n\t * Inclination of the modules in degrees. <br>\n\t * 0 : horizontal <br>\n\t * 90 : vertical.\n\t */\n\tAngleResource inclination();\n\n\t/**\n\t * Azimuthal orientation ... | [
"0.55448526",
"0.545963",
"0.5362055",
"0.51870453",
"0.5050177",
"0.5030021",
"0.49932116",
"0.49916294",
"0.4938753",
"0.49357796",
"0.492442",
"0.4903004",
"0.48869",
"0.48727047",
"0.487213",
"0.48436263",
"0.48267037",
"0.48207638",
"0.48200294",
"0.48115268",
"0.4793329... | 0.49753627 | 8 |
Cloneable interface lets the compiler know that we intend to implement cloning (so there's compiletime exception check) | public interface Animal extends Cloneable {
Animal makeCopy();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Object clone();",
"public abstract Object clone() ;",
"public final Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }",
"@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedExcept... | [
"0.8091108",
"0.8020134",
"0.8011099",
"0.79737216",
"0.7912363",
"0.78923076",
"0.78554314",
"0.7849658",
"0.784448",
"0.7838096",
"0.7819632",
"0.78168786",
"0.77982074",
"0.77898276",
"0.77860755",
"0.775422",
"0.77317685",
"0.77309006",
"0.7713786",
"0.76953214",
"0.76111... | 0.7056832 | 70 |
Start a listener for completed spouts | @Override
public void run() {
TopologyKiller killer = new TopologyKiller();
killer.start();
// create the joiner bolt
BoltDeclarer declarer = builder.setBolt("join", new JoinerBolt(), joinerParallelism);
// connect all the spouts to the joiner bolt using fieldGrouping
for (String spout: spou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addFinishedListener(Consumer<List<S>> listener) {\n finishedListeners.add(listener);\n }",
"void onListeningFinished();",
"public interface GetUnfinishedSummaryListener {\n void onTaskEnded(PartyDetails data);\n}",
"private void notifyTtsCompleted()\n {\n //if(resources.get... | [
"0.6106959",
"0.57224435",
"0.5659876",
"0.55627507",
"0.554189",
"0.5505585",
"0.5365079",
"0.5331657",
"0.5320538",
"0.52970463",
"0.5282498",
"0.52821606",
"0.5244978",
"0.523058",
"0.51989275",
"0.51772434",
"0.51569957",
"0.5139239",
"0.511906",
"0.5109688",
"0.5092957",... | 0.0 | -1 |
Read an item stack in from an NBT tag. Returns null if no item exists. | public static ItemStack readItem(CompoundTag tag) {
BlockDataManager blockDataManager = ((GlowServer) Bukkit.getServer()).getBlockDataManager();
final Material[] material = {null};
if ((!tag.readString("id", id -> material[0] = ItemIds.getItem(id))
&& !tag.readShort("id",
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readInventoryFromNBT(CompoundNBT tag) {\n ListNBT nbttaglist = tag.getList(TAG_ITEMS, NBT.TAG_COMPOUND);\n\n int limit = this.getInventoryStackLimit();\n ItemStack stack;\n for (int i = 0; i < nbttaglist.size(); ++i) {\n CompoundNBT itemTag = nbttaglist.getCompound(i);\n int slot ... | [
"0.7101296",
"0.6627176",
"0.6580964",
"0.6549454",
"0.64952016",
"0.63032645",
"0.6164423",
"0.6110279",
"0.60615647",
"0.5991397",
"0.59906507",
"0.5970813",
"0.59211034",
"0.5816456",
"0.57901144",
"0.5769262",
"0.57602453",
"0.57394755",
"0.5706474",
"0.5698786",
"0.56981... | 0.80696243 | 0 |
Write an item stack to an NBT tag. Null stacks produce an empty tag, and if slot is negative it is omitted from the result. | public static CompoundTag writeItem(ItemStack stack, int slot) {
CompoundTag tag = new CompoundTag();
if (stack == null || stack.getType() == Material.AIR) {
return tag;
}
tag.putString("id", ItemIds.getName(stack.getType()));
tag.putShort("Damage", stack.getDurabilit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putBy... | [
"0.7008086",
"0.6852255",
"0.62623227",
"0.6252094",
"0.62075526",
"0.61661863",
"0.60797733",
"0.60683525",
"0.59863734",
"0.59215313",
"0.5902086",
"0.5897317",
"0.58894455",
"0.58638483",
"0.58546144",
"0.5854022",
"0.5793842",
"0.5789038",
"0.5763776",
"0.57418317",
"0.57... | 0.80538183 | 0 |
Read a full inventory (players, chests, etc.) from a compound list. | public static ItemStack[] readInventory(List<CompoundTag> tagList, int start, int size) {
ItemStack[] items = new ItemStack[size];
for (CompoundTag tag : tagList) {
tag.readByte("Slot", slot -> {
if (slot >= start && slot < start + size) {
items[slot - sta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n NBTTagList var2 = par1NBTTagCompound.getTagList(\"Items\");\n this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++va... | [
"0.6494618",
"0.62787837",
"0.6215564",
"0.6140612",
"0.6047781",
"0.5969134",
"0.5878153",
"0.5874475",
"0.579835",
"0.57928497",
"0.5766451",
"0.5732356",
"0.57025915",
"0.5673463",
"0.56670743",
"0.5639312",
"0.55937624",
"0.55850184",
"0.55755275",
"0.55644804",
"0.552968... | 0.6109424 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.