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 |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent i = new Intent(Akun.this, Akun.class);
startActivity(i);
} | {
"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 onClick(View v) {
Intent i = new Intent(Akun.this, Keranjang.class);
startActivity(i);
} | {
"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 |
map function of Mapper parent class takes a line of text at a time splits to tokens and passes to the context as word along with value as one | @Override
protected void map(LongWritable key, Text value,
Context context)
throws IOException, InterruptedException {
String line = value.toString();
StringTokenizer st = new StringTokenizer(line," ");
while(st.hasMoreTokens()){
System.out.println("in");
word.set(st.nextToken().toString());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tprotected void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tStringTokenizer str=new StringTokenizer(value.toString());\n//\t\t\tString[]str=new String(value.toString()).split(\"a\");\n\t\t\twhile(str.hasMoreTokens()){\n\t\t\t\tword.set(str.n... | [
"0.7726768",
"0.7643679",
"0.7199151",
"0.71432155",
"0.7105296",
"0.70343584",
"0.6768755",
"0.6740228",
"0.6632563",
"0.65891004",
"0.64874",
"0.6460493",
"0.6415616",
"0.6401162",
"0.63949597",
"0.63467157",
"0.6344561",
"0.63422644",
"0.6318773",
"0.63155246",
"0.6313753"... | 0.7388264 | 2 |
Creates SAM Enviornment and maps services from Service Pools that environment | public abstract SAMEnvironmentDetails createSAMEnvironment(String envName,
String description, List<ServiceEnvironmentMapping> services); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Fog_Services createFog_Services();",
"public static ServiceProvider createServiceProvider() {\n \t//return new ActiveMQProvider();\n \treturn new RSPServiceProvider();\n }",
"ProgramActuatorService createProgramActuatorService();",
"public Collection<Service> createServices();",
"Environment creat... | [
"0.5961801",
"0.5468666",
"0.5437844",
"0.5422994",
"0.53994036",
"0.53994036",
"0.5342087",
"0.5333738",
"0.5256943",
"0.520794",
"0.51991653",
"0.51900643",
"0.5131141",
"0.5109377",
"0.5105352",
"0.5089586",
"0.50814146",
"0.5024278",
"0.50205624",
"0.49732062",
"0.4938507... | 0.6706942 | 0 |
Deletes the specified SAM Environment | public abstract void deleteSAMEnvironment(String envName); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static it.vmt.gh.sb.model.Environment deleteEnvironment(\n\t\tit.vmt.gh.sb.model.Environment environment) {\n\n\t\treturn getService().deleteEnvironment(environment);\n\t}",
"@Override\n public void delete(EnvironmentVariable environmentVariable) throws Exception {\n\n }",
"public static it.vmt.gh.sb.... | [
"0.7130147",
"0.66942734",
"0.62207466",
"0.5743487",
"0.56425995",
"0.5561848",
"0.5490372",
"0.54903316",
"0.54388267",
"0.5383607",
"0.5359391",
"0.53564763",
"0.5352516",
"0.5350622",
"0.53470004",
"0.53397274",
"0.53373647",
"0.53259194",
"0.5312609",
"0.53080875",
"0.52... | 0.8345188 | 0 |
Scanner sc = new Scanner(System.in); System.out.println("Enter an array: "); int[] a = sc.nextInt(); | public static void main(String[] args) {
int[] a = {1,2,4,1,2};//4 = 100, 1 = 001{1^0 =1, 0^0=0, 0^1=1, 1^1=0}
int result = a[0];
for(int i =1; i<a.length;i++)
{
result=result^a[i];
}
System.out.println("single repeated elements is: "+result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\nint a[]=new int[4];\r\nSystem.out.println(\"enter array values\" );\r\n\r\nScanner sc=new Scanner(System.in);\r\na[0]=sc.nextInt();\r\na[1]=sc.nextInt();\r\na[2]=sc.nextInt();\r\na[3]=sc.nextInt();\r\n\r\n\r\n\r\n\r\n\t}",
"public static int[] input() {\n System.o... | [
"0.83395183",
"0.7975309",
"0.7357023",
"0.73482496",
"0.734559",
"0.7265019",
"0.7177918",
"0.71449894",
"0.7104637",
"0.70974433",
"0.70575863",
"0.69732267",
"0.69663304",
"0.68907106",
"0.6850942",
"0.6824482",
"0.6794046",
"0.6762701",
"0.67397726",
"0.67388606",
"0.6728... | 0.0 | -1 |
Interface redefining the same public non final methods as Object | private static interface WithObjectOverrides {
public boolean equals(Object obj);
public int hashCode();
public String toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void m21805a(Object obj);",
"private static interface WithoutObjectOverrides {\n\n public boolean equals();\n\n public long hashCode(Object obj);\n\n public void toString(long foo);\n }",
"void m21807c(Object obj);",
"void m21809e(Object obj);",
"void m21806b(Object obj);",
"void ... | [
"0.67904377",
"0.67553854",
"0.6691857",
"0.66467434",
"0.6584002",
"0.6559287",
"0.65508175",
"0.65447235",
"0.6507126",
"0.6489615",
"0.6407098",
"0.6399558",
"0.6253281",
"0.6174729",
"0.6146381",
"0.61116475",
"0.60544914",
"0.6033562",
"0.6000238",
"0.5983345",
"0.597763... | 0.65419674 | 8 |
Interface redefining similar methods than Object | private static interface WithoutObjectOverrides {
public boolean equals();
public long hashCode(Object obj);
public void toString(long foo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static interface WithObjectOverrides {\n\n public boolean equals(Object obj);\n\n public int hashCode();\n\n public String toString();\n }",
"void m21805a(Object obj);",
"void m21807c(Object obj);",
"void m21809e(Object obj);",
"void m21806b(Object obj);",
"void mo67921a(O... | [
"0.68199843",
"0.6666326",
"0.64805025",
"0.64350885",
"0.6407251",
"0.6389572",
"0.6384142",
"0.63304764",
"0.6315847",
"0.630101",
"0.6299454",
"0.6243186",
"0.6231133",
"0.6136135",
"0.6125244",
"0.61121464",
"0.6079343",
"0.605754",
"0.6033987",
"0.598942",
"0.59871507",
... | 0.666459 | 2 |
Simple interface defining a method | private static interface Base {
public void foo();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface SimpleInterface {\n String interfaceMethod(Integer value);\n}",
"public interface Hello{\n String res(String paramString) ;\n}",
"public interface Interface {\n void doSomething();\n void somethingElse(String arg);\n}",
"interface A9 {\r\n void test(int i, String s1); //test m... | [
"0.72307867",
"0.7075216",
"0.69804907",
"0.69731396",
"0.68864244",
"0.6858418",
"0.6839983",
"0.68380266",
"0.68334275",
"0.68297064",
"0.6811499",
"0.67913413",
"0.67913413",
"0.67770463",
"0.67655027",
"0.6751053",
"0.6747763",
"0.6721101",
"0.6711332",
"0.6701109",
"0.66... | 0.0 | -1 |
Simple interface overriding a non Object method | private static interface Derived extends Base {
public void foo();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}",
"public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}",
"public default void defaultMethod(){\r\n System.out.println(\"This is a method from Other Interface and c... | [
"0.70279235",
"0.6958593",
"0.6921177",
"0.68621856",
"0.6808435",
"0.673126",
"0.66685265",
"0.661398",
"0.6610416",
"0.66028494",
"0.66028494",
"0.6596913",
"0.6550795",
"0.65016174",
"0.64985853",
"0.6498468",
"0.64912564",
"0.6484546",
"0.64802176",
"0.64439684",
"0.64140... | 0.62187463 | 47 |
Creates a new DegreeSortedCircleLayout object. | public DegreeSortedCircleLayout(UndoSupport undoSupport, CyTableManager tableMgr) {
super(undoSupport, "degree-circle", "Degree Sorted Circle Layout", true);
this.tableMgr = tableMgr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setCircle() {\n\t\tlayout_Circle=new Circle[][] {{null, null, null, null, null, null, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, finishCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null... | [
"0.5363023",
"0.50648284",
"0.49419928",
"0.49302903",
"0.4874179",
"0.47826362",
"0.47811618",
"0.4769074",
"0.47641703",
"0.47622904",
"0.47275093",
"0.47194135",
"0.47140932",
"0.47048506",
"0.47043782",
"0.47030133",
"0.46955553",
"0.4695302",
"0.46740004",
"0.46669745",
... | 0.70507133 | 0 |
TODO Autogenerated method stub | @Override
public void afterReturning(Object arg0, Method arg1, Object[] arg2,
Object arg3) throws Throwable {
System.out.println("-------------------");
System.out.println("After method ");
} | {
"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 |
Constructors Create a detached PaymentmethodRecord | public PaymentmethodRecord() {
super(Paymentmethod.PAYMENTMETHOD);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Payment(double amountPaid, int method, Timestamp date, int cardDetailsID, int invoiceID){\n this.recordID = recordID;\n this.amountPaid = amountPaid;\n this.method = method;\n this.date = date;\n this.cardDetailsID = cardDetailsID;\n this.invoiceID = invoiceID;\n ... | [
"0.65164423",
"0.63780266",
"0.6094795",
"0.6068855",
"0.60629624",
"0.6018625",
"0.59409237",
"0.58803046",
"0.583397",
"0.570147",
"0.56778246",
"0.5601248",
"0.55922633",
"0.5439253",
"0.54266596",
"0.5373185",
"0.53729117",
"0.53569674",
"0.53407997",
"0.5307374",
"0.5298... | 0.71120197 | 0 |
Create a detached, initialised PaymentmethodRecord | public PaymentmethodRecord(Integer paymentmethodid, Integer paymentid, String paymentmethod, BigDecimal paymentamount) {
super(Paymentmethod.PAYMENTMETHOD);
set(0, paymentmethodid);
set(1, paymentid);
set(2, paymentmethod);
set(3, paymentamount);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }",
"public Payment(double amountPaid, int method, Timestamp date, int cardDetailsID, int invoiceID){\n this.recordID = recordID;\n this.amountPaid = amountPaid;\n this.method = method;\n this.date = date... | [
"0.673309",
"0.59535164",
"0.57069796",
"0.553134",
"0.547601",
"0.542447",
"0.53953266",
"0.5392375",
"0.5353659",
"0.52747464",
"0.5252016",
"0.52276653",
"0.52124155",
"0.52070653",
"0.5197398",
"0.5194695",
"0.5169557",
"0.51516736",
"0.5149979",
"0.51415884",
"0.5130274"... | 0.58049047 | 2 |
Returns all the beans.xml from METAINF and WEBINF folders | private List<IFile> getAllBeansXmls() {
List<IFile> beansXmls = new ArrayList<IFile>();
// From source folders
Set<IFolder> sourceFolders = getSourceFoldersForProjectsSet();
for (IFolder source : sourceFolders) {
IResource beansXml = source.findMember(new Path("/META-INF/beans.xml")); //$NON-NLS-1$... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<String> getApplicationContextResourcePaths();",
"protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNa... | [
"0.56285936",
"0.5427661",
"0.5407111",
"0.53690976",
"0.51371425",
"0.51326346",
"0.5055798",
"0.49995622",
"0.49916294",
"0.4926374",
"0.49137104",
"0.4883161",
"0.48239297",
"0.48023188",
"0.4796875",
"0.47960955",
"0.47901404",
"0.4762826",
"0.4745541",
"0.47343913",
"0.4... | 0.7615378 | 0 |
Validates a bean EL name. | private void validateBeanName(IBean bean) {
String name = bean.getName();
if(name!=null && !name.startsWith("/")) {
// Collect all relations between the bean and other CDI elements.
getValidationContext().addVariableNameForELValidation(name);
getValidationContext().addLinkedCoreResource(name, bea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNameValid(String name) {\n\n }",
"public boolean checkGoodName(Object bean, ValidatorAction va, Field field,\r\n\t\t\tActionMessages messages, HttpServletRequest request) {\r\n\r\n\t\tMemberForm memForm = (MemberForm)bean;\r\n\t\tString username = memForm.getMemberUserName();\r\n\r\n\r\n\t\t... | [
"0.56747127",
"0.5444234",
"0.5415798",
"0.5313826",
"0.52592605",
"0.5251971",
"0.5249979",
"0.5202107",
"0.5148751",
"0.51471865",
"0.51325864",
"0.5119267",
"0.5108007",
"0.50893724",
"0.50843745",
"0.5083467",
"0.5074049",
"0.503079",
"0.5024338",
"0.50188",
"0.5013764",
... | 0.74185884 | 0 |
/ Returns set of EL names which are declared in the resource | private Set<String> getELNamesByResource(IPath resourcePath) {
Set<IBean> beans = cdiProject.getBeans(resourcePath);
if(beans.isEmpty()) {
return Collections.emptySet();
}
Set<String> result = new HashSet<String>();
for (IBean bean : beans) {
String name = bean.getName();
if(name!=nul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getResourceAttributeNames()\n {\n return null;\n }",
"@Override\n\tpublic Enumeration<String> getKeys() {\n\t\treturn _resourceBundle.getKeys();\n\t}",
"public Set<String> getAttributeNames();",
"public Collection getESBComponentNames()\n {\n \treturn( getFrameworkXMLParser... | [
"0.5959365",
"0.5858123",
"0.58563596",
"0.5831604",
"0.5829432",
"0.5759864",
"0.5653281",
"0.5613338",
"0.5512966",
"0.54577947",
"0.5407573",
"0.53979033",
"0.5394056",
"0.5329401",
"0.5309875",
"0.5280872",
"0.52803624",
"0.52429074",
"0.5201026",
"0.51668245",
"0.5157933... | 0.73316574 | 0 |
/ 9.5.2. Interceptor binding types with members the set of interceptor bindings of a bean or interceptor, including bindings inherited from stereotypes and other interceptor bindings, has two instances of a certain interceptor binding type and the instances have different values of some annotation member | private void validateInterceptorBindings(IClassBean bean) {
try {
if(hasConflictedInterceptorBindings(bean)) {
//TODO consider putting markers to interceptor bindings/stereotype declarations.
ITextSourceReference reference = CDIUtil.convertToSourceReference(bean.getBeanClass().getNameRange());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validateInterceptor(IInterceptor interceptor) {\r\n \t\tif (interceptor.getName() != null) {\r\n \t\t\tITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = interceptor.getAnnotation(CDIConst... | [
"0.53215843",
"0.50830024",
"0.5001898",
"0.48849407",
"0.48736352",
"0.48470932",
"0.4764349",
"0.4725901",
"0.47137943",
"0.47137943",
"0.47067565",
"0.46886483",
"0.46886483",
"0.468425",
"0.468425",
"0.46547398",
"0.46175805",
"0.460348",
"0.45975655",
"0.45808902",
"0.45... | 0.6171856 | 0 |
/ 4.3.1. Direct and indirect specialization | private void validateSpecializingBean(IBean bean) {
IAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();
if(specializesDeclaration!=null) {
if(bean instanceof IDecorator) {
addError(CDIValidationMessages.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo25969f(TemplateInfo templateInfo);",
"public interface C2331r<T> {\n /* renamed from: g */\n Bundle mo7259g();\n}",
"@Override\n public boolean isGeneric() { \n return false;\n }",
"public abstract void mo32008e(TemplateInfo templateInfo);",
"InstrumentedType.WithFlexibleName repre... | [
"0.5250675",
"0.5148437",
"0.51171035",
"0.50763917",
"0.5001193",
"0.4946527",
"0.49368936",
"0.4925458",
"0.48930317",
"0.48889112",
"0.48857683",
"0.48760673",
"0.48440742",
"0.4797445",
"0.475827",
"0.47364956",
"0.470249",
"0.47014084",
"0.4688091",
"0.46876818",
"0.4678... | 0.47486618 | 15 |
If the method is not a static method and is not a business method of the session bean and is observer or disposer then mark it as incorrect. | private void validateSessionBeanMethod(IClassBean bean, IBeanMethod method, Set<ITextSourceReference> annotatedParams, String errorMessage, String preferencesKey, int id) {
if (bean instanceof ISessionBean && annotatedParams != null) {
IMethod iMethod = CDIUtil.getBusinessMethodDeclaration((SessionBean)bean, m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tboolean isRegistedMethodNotNeed() {\n\t\treturn true;\n\t}",
"public boolean isMethodCallAllowed(Object obj, String sMethod) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowe... | [
"0.6444744",
"0.614182",
"0.5876823",
"0.5792849",
"0.5532051",
"0.5439865",
"0.5412011",
"0.53525484",
"0.53367895",
"0.53282654",
"0.5323561",
"0.53067845",
"0.52917075",
"0.5290816",
"0.5287181",
"0.52846116",
"0.5283044",
"0.5269361",
"0.5250043",
"0.521404",
"0.51857984"... | 0.6552555 | 0 |
Validates class bean which may be both a session and decorator (or interceptor). | private void validateMixedClassBean(IClassBean bean) {
ITextSourceReference sessionDeclaration = CDIUtil.getSessionDeclaration(bean);
ITextSourceReference decoratorDeclaration = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);
ITextSourceReference interceptorDeclaration = bean.getAnnotation(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSessionValid(Object session);",
"private void validateManagedBean(IClassBean bean) {\r\n \t\tIAnnotationDeclaration decorator = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\tIAnnotationDeclaration interceptor = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME)... | [
"0.6202893",
"0.58993536",
"0.5774471",
"0.5279274",
"0.52105266",
"0.5204487",
"0.5199546",
"0.51114595",
"0.50956434",
"0.507062",
"0.50239927",
"0.49743757",
"0.49643207",
"0.4946625",
"0.4945738",
"0.49278513",
"0.49174002",
"0.4906422",
"0.49036044",
"0.48897076",
"0.487... | 0.75187045 | 0 |
/ 3.1. Managed beans | private void validateManagedBean(IClassBean bean) {
IAnnotationDeclaration decorator = bean.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);
IAnnotationDeclaration interceptor = bean.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATION_TYPE_NAME);
if (decorator != null && interceptor != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ListarInscritosManagedBean() {\n this.member1Service = new Member1Service();\n }",
"public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}",
"public ConversorManagedBean() {\r\n }",
"@Override\r\n\tprotected void criarNovoBean(... | [
"0.6492911",
"0.6396808",
"0.6386218",
"0.6292133",
"0.6235249",
"0.62336814",
"0.62207",
"0.6208993",
"0.60939366",
"0.6068288",
"0.60557014",
"0.60521007",
"0.6035021",
"0.6035021",
"0.6011713",
"0.5982313",
"0.5967643",
"0.5942548",
"0.5925586",
"0.5910039",
"0.5870931",
... | 0.5450446 | 80 |
/ 2.5.3. Beans with no EL name interceptor has a name (NonPortable behavior) | private void validateInterceptor(IInterceptor interceptor) {
if (interceptor.getName() != null) {
ITextSourceReference declaration = interceptor.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);
if (declaration == null) {
declaration = interceptor.getAnnotation(CDIConstants.INTERCEPTOR_ANNOTATI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validateBeanName(IBean bean) {\r\n \t\tString name = bean.getName();\r\n \t\tif(name!=null && !name.startsWith(\"/\")) {\r\n \t\t\t// Collect all relations between the bean and other CDI elements.\r\n \t\t\tgetValidationContext().addVariableNameForELValidation(name);\r\n \t\t\tgetValidationContext().a... | [
"0.5620218",
"0.5406796",
"0.5393033",
"0.52630275",
"0.5254561",
"0.5236678",
"0.5152231",
"0.5152231",
"0.5128626",
"0.51252574",
"0.50669247",
"0.50493354",
"0.5041847",
"0.5028284",
"0.5025159",
"0.49974388",
"0.499187",
"0.49679953",
"0.49334005",
"0.49234778",
"0.489477... | 0.0 | -1 |
/ 2.5.3. Beans with no EL name decorator has a name (NonPortable behavior) | private void validateDecorator(IDecorator decorator) {
if (decorator.getName() != null) {
ITextSourceReference declaration = decorator.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);
if (declaration == null) {
declaration = decorator.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validateBeanName(IBean bean) {\r\n \t\tString name = bean.getName();\r\n \t\tif(name!=null && !name.startsWith(\"/\")) {\r\n \t\t\t// Collect all relations between the bean and other CDI elements.\r\n \t\t\tgetValidationContext().addVariableNameForELValidation(name);\r\n \t\t\tgetValidationContext().a... | [
"0.55254024",
"0.5374504",
"0.5333273",
"0.5320459",
"0.52616775",
"0.5239785",
"0.52332884",
"0.52332884",
"0.5129689",
"0.5097954",
"0.5095347",
"0.5077105",
"0.50728387",
"0.50701785",
"0.50447714",
"0.5033737",
"0.5020914",
"0.4990801",
"0.4987322",
"0.49871278",
"0.49828... | 0.0 | -1 |
/ 2.2.2. Restricting the bean types of a bean | private void validateTyped(IBean bean) {
Set<ITypeDeclaration> typedDeclarations = bean.getRestrictedTypeDeclaratios();
if (!typedDeclarations.isEmpty()) {
Set<IParametedType> allTypes = bean.getAllTypes();
for (ITypeDeclaration typedDeclaration : typedDeclarations) {
IType typedType = typedDecl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void verifyReferencedTypes() {\n\t\tbeanType = resolve(getBuilder().getBean());\n\t\tbean = getContext().getModelSet().getBean(beanType, false);\n\t}",
"private void validateSpecializingBean(IBean bean) {\r\n \t\tIAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDec... | [
"0.5921226",
"0.58370477",
"0.5738226",
"0.57121855",
"0.5675084",
"0.5657862",
"0.5657862",
"0.5594405",
"0.5535939",
"0.5496445",
"0.5486436",
"0.547472",
"0.54124236",
"0.5395356",
"0.5376508",
"0.53734744",
"0.5341238",
"0.5233692",
"0.5206972",
"0.517274",
"0.51493734",
... | 0.58388543 | 1 |
Created by Administrator on 2017/7/26. | public interface ICourseInfoService {
Integer selectCount(Map<String, Object> params);
List<Map<String, Object>> selectList(Map<String, Object> params);
List<CourseInfo> selectAll();
/**
* 通过课程主键id查询课程
*
* @param ids
* @return
*/
List<CourseInfo> selectCourseByIds(Map<Stri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\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.63874805",
"0.6137591",
"0.587012",
"0.5864592",
"0.5839086",
"0.58213085",
"0.5766893",
"0.57560873",
"0.5749132",
"0.5747988",
"0.5727005",
"0.5725723",
"0.5723277",
"0.5723277",
"0.5720482",
"0.5699263",
"0.569707",
"0.5693975",
"0.56928897",
"0.56928897",
"0.56786054",... | 0.0 | -1 |
new tutorial published to tell all subscribed users | void notifyAllAboutChange(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void subscriptions() {\n\t\ttry {\n\t\t\tList<Subscription> subscriptions = PlatformClient\n\t\t\t\t\t.subscriptions(getUser());\n\t\t\trender(subscriptions);\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Can not get subscriptions : %s\", e.getMessage());\n\... | [
"0.6335029",
"0.6189457",
"0.5901636",
"0.58030486",
"0.57814825",
"0.5759302",
"0.57544935",
"0.57102996",
"0.57068956",
"0.5696143",
"0.56790483",
"0.5642353",
"0.5634878",
"0.5609841",
"0.5575165",
"0.5572994",
"0.55419195",
"0.55412376",
"0.55281466",
"0.54910475",
"0.547... | 0.0 | -1 |
description: author: freed on 2019/9/14 | public interface LoginView {
void showProgress();
void hideProgress();
void setUsernameError();
void setPasswordError();
void navigateToHome();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int describeContents() { return 0; }",
"@Override\n public String getDescription() {\n return DESCRIPTION;\n }",
"@Override\n protected String getDescription() {\n return DESCRIPTION;\n }",
"@Override\n public String getDescription() {\n return description;\n ... | [
"0.6314426",
"0.6259366",
"0.6197575",
"0.61886597",
"0.61086166",
"0.60977423",
"0.60634404",
"0.60318345",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
"0.59810174",
... | 0.0 | -1 |
Adiciona uma nova conta ao Banco. | public void addAccount(BankAccount newAccount) {
accounts.add(newAccount); // Insere no final do vetor.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void adicionar(ContaBancaria conta) {\n contas.add(conta);\n }",
"public void inserir(ContaBancaria contaBancaria) {\n\t\tcontas.add(contaBancaria);\n\n\t}",
"public void adicionarObraBD(Obra obra) {\n ContentValues values = new ContentValues();\n values.put(ID_OBRA, obra.getId()... | [
"0.7521302",
"0.7133539",
"0.607964",
"0.59886163",
"0.58943444",
"0.5874176",
"0.5863581",
"0.5853229",
"0.5789041",
"0.57797396",
"0.5731139",
"0.57240605",
"0.5702662",
"0.5686906",
"0.56540346",
"0.56342375",
"0.56301886",
"0.5608532",
"0.5603331",
"0.55953014",
"0.558833... | 0.0 | -1 |
(SelectionSort) Ordena todas as contas no banco, em ordem crescente, pelos seus saldos (balance). | public void sortBalance() {
for (int i=0; i < accounts.size() - 1; i++) {
int posicao_menor = i;
for (int j=i + 1; j < accounts.size(); j++) { // Cada iteração vai acumulando (a esquerda) a área ordenada.
if (accounts.get(j).getBalance() < accounts.get(posic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n ArrayList<BankAccount> accounts = makeBankingSystem();\n \n Collections.sort(accounts, BankAccount.createComparatorByBalance(false));\n for (BankAccount c: accounts){\n System.out.println(c.getName(c)+\", \"+c.getBalance(c));\n ... | [
"0.6353499",
"0.61284",
"0.6071711",
"0.58781916",
"0.5872826",
"0.5850195",
"0.58405215",
"0.5819615",
"0.5790117",
"0.57417893",
"0.5724782",
"0.57133013",
"0.5677633",
"0.5670784",
"0.5669587",
"0.56466156",
"0.5624483",
"0.5614409",
"0.5591663",
"0.5570551",
"0.55554324",... | 0.7766383 | 0 |
expands a node to add/show the children of the node, if node is not expanded and contracts a node to remove/hide the children of the node otherwise. | private void expandContractNode(Node parentNode) {
if (!parentNode.isExpanded()) {
expandNode(parentNode);
parentNode.setExpanded(true);
clearEdgeLinks();
} else {
removeNodeAndChildren(parentNode);
//if root node
if (parentNode.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void expandTree() {\n tree.expand();\n }",
"private void expandNode(Node parentNode) {\n VBox childrenVBox = parentNode.getChildrenVBox();\n PlaceManager placeManager = PlaceManager.getInstance();\n Place sourcePlace = placeManager.getPlace(parentNode.getNodeId());\n Array... | [
"0.68952835",
"0.681694",
"0.6786622",
"0.66797364",
"0.6499148",
"0.6469146",
"0.634616",
"0.62952447",
"0.62883043",
"0.61968684",
"0.6186601",
"0.61142254",
"0.6081462",
"0.6059667",
"0.6047976",
"0.601123",
"0.5997943",
"0.5991543",
"0.5939612",
"0.5918512",
"0.5902991",
... | 0.63983977 | 6 |
expands a nodes to show the children of the node | private void expandNode(Node parentNode) {
VBox childrenVBox = parentNode.getChildrenVBox();
PlaceManager placeManager = PlaceManager.getInstance();
Place sourcePlace = placeManager.getPlace(parentNode.getNodeId());
ArrayList<Place> childrenPlaces = sourcePlace.getChildren();
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<Node> expand();",
"public abstract List<Node> getChildNodes();",
"void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}",
"Node[] getChildren(Node node);",
"public List<TreeNode> getChildrenNodes();",
"private void expandTree() {\n for (int i=0; i<tree.getRowCoun... | [
"0.70344126",
"0.68063974",
"0.6783657",
"0.676652",
"0.6676781",
"0.6598529",
"0.65671176",
"0.6564449",
"0.6428307",
"0.6398681",
"0.6392748",
"0.6367519",
"0.6321436",
"0.63175243",
"0.63069457",
"0.6283996",
"0.6242393",
"0.6208984",
"0.6189199",
"0.618322",
"0.612624",
... | 0.63852453 | 11 |
clears and redraws the edge present in the central pane. used when nodes are moved around (when a node is expanded). | private void clearEdgeLinks() {
edges.clear();
//keep whole tree to maintain its position when it is expanded (within scroll pane bounds)
Node rootNode = nodes.get(0);
VBox rootVBox = (VBox) rootNode.getContainerPane().getParent();
rootVBox.layout();
Bounds rootNodeChildr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Clear() {\n OCCwrapJavaJNI.ShapeFix_EdgeConnect_Clear(swigCPtr, this);\n }",
"public void removeAllEdges() {\n }",
"public boolean resetEdges();",
"public void updateDeleteActiveEdges()\r\n\t{\r\n\t\tupdateDeleteActiveEdges(m_drawRoot);\r\n\t}",
"public void deleteSelection() {\r\n ... | [
"0.69301593",
"0.6427668",
"0.6425391",
"0.61999893",
"0.6148745",
"0.61482364",
"0.5990281",
"0.59826404",
"0.59695345",
"0.5968678",
"0.59583104",
"0.5954682",
"0.59508175",
"0.58779037",
"0.5818324",
"0.5770001",
"0.57641995",
"0.57609016",
"0.57432044",
"0.5728808",
"0.57... | 0.74522567 | 0 |
recursively redraws the edges then nodes are moved around, (when a node is expanded). | private void redrawEdges(Node startNode) {
if (startNode.getChildrenVBox().getChildren().isEmpty()) {
return;
}
for (javafx.scene.Node childGenericNode : startNode.getChildrenVBox().getChildren()) {
Pane containerPane = (Pane) childGenericNode;
Node childNode ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void repaintGraph() {\r\n this.repaint();\r\n ((GraphBuilder) getFrameParent()).getMiniMap().repaint();\r\n }",
"public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}",
"private void clearEdgeLinks() {\n edges.clear();\n //keep whole tree to maintain its position w... | [
"0.6936041",
"0.6884386",
"0.67483234",
"0.64687073",
"0.63922197",
"0.6326198",
"0.6321917",
"0.63182974",
"0.6255591",
"0.6227034",
"0.6219652",
"0.62141824",
"0.619525",
"0.61938804",
"0.6166844",
"0.6145602",
"0.6144809",
"0.6123215",
"0.6116482",
"0.60979366",
"0.6070657... | 0.70769346 | 0 |
recursively removes the children in the subtree of given node. Used when the user contracts a node | private void removeNodeAndChildren(Node node) {
Pane container = node.getContainerPane();
if (container.getChildren().size() < 2) {
return;
}
Iterator<javafx.scene.Node> iterator = container.getChildren().iterator();
while (iterator.hasNext()) {
javafx.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void RemoveLeaves(Node node){\r\n \r\n //Pre-Order removal of leaves is done here\r\n \r\n //First iterate of children from last so that we can use .remove functionality of ArrayList else we will face \r\n //NullPointerException if traversed from front \r\n f... | [
"0.7114786",
"0.6942873",
"0.6755131",
"0.6728496",
"0.66661006",
"0.6622032",
"0.65729976",
"0.6449543",
"0.63810223",
"0.6351067",
"0.632932",
"0.61952555",
"0.6112112",
"0.6085653",
"0.6059728",
"0.6052019",
"0.60367626",
"0.6031154",
"0.59121287",
"0.5899455",
"0.58784926... | 0.6473933 | 7 |
Mouse click event handle for expanding/contracting node | @Override
public void handle(MouseEvent event) {
if (event.getButton().equals(MouseButton.PRIMARY)) {
//Double click
if (event.getClickCount() == 2) {
expandContractNode(node);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void mouseClicked(MouseEvent e) {\r\n\t// TODO Auto-generated method stub\r\n\tif (selectedNode == null) {\r\n\t highlightNodes(e);\r\n\t} else if (selectedNode != null) {\r\n\t moveSteen(e);\r\n\t}\r\n\tupdateBord();\r\n }",
"public void mouseClicked(MouseEvent ev)\n\t{\n\t i... | [
"0.68606836",
"0.68005145",
"0.6735146",
"0.64702827",
"0.6466782",
"0.63687265",
"0.63369966",
"0.63274133",
"0.63105136",
"0.62545395",
"0.6252433",
"0.6252433",
"0.6252433",
"0.6252433",
"0.6252433",
"0.6252433",
"0.6252433",
"0.6252433",
"0.6252433",
"0.6252433",
"0.62475... | 0.7732041 | 0 |
us the display function | public static void display(){
//create an array : Remember positions
//wheat= 0
//Land = 1
//Population = 2
String[] items = {"Wheat", "Land", "Population"};
// call the crops object
Crops theCrops = Game.getCrop();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void display() {\n\t\t\n\t}",
"public void display() {\n\t\t\n\t}",
"protected abstract String display();",
"@Override\r\n\tpublic void display() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void display() {\n\t\t\r\n\t}",
"public void display()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\tpublic void displ... | [
"0.84901166",
"0.84901166",
"0.82829183",
"0.8246834",
"0.8246834",
"0.82424724",
"0.81945217",
"0.81945217",
"0.8188135",
"0.8181135",
"0.81049055",
"0.81049055",
"0.81049055",
"0.80437315",
"0.8041346",
"0.7971157",
"0.79661095",
"0.7963681",
"0.79353565",
"0.79353565",
"0.... | 0.0 | -1 |
Handles the event and performs operations on the players and the board | @Override
public void handleEvent(Player affectedPlayer, Player[] players, Board board) {
// Current fixed implementation for salary 200, can change for a constant read from map
if (targetSpace.getIndex() < affectedPlayer.getCurrentSpace().getIndex() && canCollectSalary) {
affectedPlayer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void onClickHandler(MouseEvent e) {\n Circle source = (Circle) e.getSource();\n int selectColumnIndex = GridPane.getColumnIndex(source);\n // Display the move of Player on the Grid, and registered that move to the Game logic\n checkCircle(selectColumnIndex);\n client.getH... | [
"0.67720234",
"0.66271514",
"0.6624912",
"0.66136056",
"0.6550955",
"0.63632584",
"0.63387126",
"0.6332779",
"0.632534",
"0.6255528",
"0.6229603",
"0.6189877",
"0.61835206",
"0.6163363",
"0.61580074",
"0.6150989",
"0.61505044",
"0.61479247",
"0.61438274",
"0.6137108",
"0.6136... | 0.640584 | 5 |
Computes the starting location for the component | @SuppressWarnings("WeakerAccess")
public int[] getNextComponentStartingLocation(Dimension dimension) {
for (int y = 0; y < lines.length; y++) {
for (int x = 0; x < lines[0].length; x++) {
if (lines[y][x]) {
continue;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Location getStartLocation() {\r\n \treturn new Location(0,0);\r\n }",
"public Location getStartingLocation() {\r\n return startingLocation;\r\n }",
"public Coordinate getStart( )\n\t{\n\t\treturn startLocation;\n\t}",
"protected Vector3D getStartPosition(){\r\n\t\treturn new Vector3D(\... | [
"0.7274549",
"0.7052742",
"0.69411063",
"0.67054",
"0.66756934",
"0.63691276",
"0.635929",
"0.6348279",
"0.6342",
"0.6340861",
"0.6340861",
"0.63399136",
"0.63222",
"0.6302549",
"0.6289981",
"0.6288056",
"0.6236853",
"0.6205435",
"0.61982733",
"0.6194685",
"0.61860716",
"0.... | 0.0 | -1 |
verif si la case n'est pas un mur et qu'elle fait bien partie de notre zone de jeu | public boolean isGround() {
return this != WALL && this != BOUNDS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isMenorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()>this.getValue(); \n }",
"boolean EsHemisferioSur()\r\n {\r\n if (getLat() < 29.46)\r\n return true;\r\n else\r\n return false;\r\n }",
"private boolean esVocalMayuscula(char letra)\n\t{\n\t\t\n... | [
"0.62161887",
"0.61402",
"0.60985464",
"0.60373855",
"0.60143554",
"0.5867515",
"0.5836862",
"0.5796992",
"0.57207763",
"0.5663031",
"0.5617527",
"0.55447024",
"0.55354524",
"0.5491712",
"0.5448527",
"0.5406631",
"0.53865737",
"0.5356272",
"0.5351229",
"0.5337883",
"0.53328",... | 0.0 | -1 |
Creates new form k | public InformationPoint(java.awt.Frame parent, boolean modal, String elementstring) {
super(parent, modal);
this.elementstring = elementstring;
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public BtxDetailsKcFormDefinition() {\n super();\n }",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String ... | [
"0.66508913",
"0.6343078",
"0.6063972",
"0.5627665",
"0.54984844",
"0.54481095",
"0.5437843",
"0.54184675",
"0.5409196",
"0.54004836",
"0.5346397",
"0.52802944",
"0.5278925",
"0.5267079",
"0.52454656",
"0.5244786",
"0.5239997",
"0.5239482",
"0.52343684",
"0.5228744",
"0.52286... | 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. GENBEGIN:initComponents | private void initComponents() {
this.setLocation(420, 300);
okButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
... | {
"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 GUIForm() { \n initComponents();\n }",
"public form() {\n ... | [
"0.77052563",
"0.7668779",
"0.7668779",
"0.7668779",
"0.765817",
"0.7638566",
"0.7622594",
"0.75436556",
"0.7534082",
"0.75074464",
"0.75061643",
"0.7473597",
"0.7458769",
"0.7399287",
"0.7395123",
"0.7390105",
"0.7390082",
"0.73825073",
"0.73822784",
"0.73718286",
"0.7365116... | 0.0 | -1 |
GENLAST:event_cancelButtonActionPerformed Closes the dialog | private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
doClose(RET_CANCEL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }",
"public void cancelDialog() {dispose();}",
"protected void closeDialogCancel() {\n dispose();\n }",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"private void cancelButtonActionPerformed(java.awt.event.Ac... | [
"0.8395496",
"0.8262556",
"0.82268465",
"0.79235274",
"0.7910158",
"0.7790214",
"0.7772643",
"0.77420974",
"0.77392846",
"0.77392846",
"0.77392846",
"0.7714417",
"0.769184",
"0.7678106",
"0.76768976",
"0.7666514",
"0.7657859",
"0.7657145",
"0.76421404",
"0.75943667",
"0.75939... | 0.7495298 | 25 |
Retorna la coordenada x (en pixeles) de la entidad | public int getX() {
return x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getX() { return xCoordinate;}",
"public int getX()\r\n {\r\n return xCoord;\r\n }",
"public double getXPixel()\n {\n return xPixel;\n }",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}",
"double getXPosition();",
"public int getX() {\n return xCoord;\n }",
"p... | [
"0.7994392",
"0.7951121",
"0.7929476",
"0.78637433",
"0.78631216",
"0.7856426",
"0.7775544",
"0.7756837",
"0.7739333",
"0.7739294",
"0.77384025",
"0.7727196",
"0.7727196",
"0.7727196",
"0.7698672",
"0.7685738",
"0.7679628",
"0.7679628",
"0.7677808",
"0.7624522",
"0.7601748",
... | 0.0 | -1 |
Retorna la coordenada y (en pixeles) de la entidad | public int getY() {
return y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getCoordinates();",
"long getCoordinates();",
"public Position getPositionFromPixelCoords(int y, int x){\n if (disp.rotated){\n return new Position(y / 64 + 1, (x - 640) / -64);\n } else {\n return new Position((y - 576) / -64, x / 64);\n }\n }",
"public sta... | [
"0.6746503",
"0.6746503",
"0.66212064",
"0.6563819",
"0.65078425",
"0.6446032",
"0.6436131",
"0.6421774",
"0.64210343",
"0.64158404",
"0.6390337",
"0.6382044",
"0.63720196",
"0.6364869",
"0.6357768",
"0.6346544",
"0.63440984",
"0.6327523",
"0.63206697",
"0.6304007",
"0.630400... | 0.0 | -1 |
Aceptar un Visitor de otra entidad y lo visita. | public abstract void accept(Visitor v); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void visit(User user);",
"public void visit(Request r);",
"@Override\r\n public void visit(final Context context, final Object object)\r\n {\r\n final CRMSpid serviceProvider = (CRMSpid) object;\r\n final Date dormantToDectivateDate;\r\n {\r\n final... | [
"0.6306256",
"0.6019138",
"0.5988699",
"0.5964923",
"0.5947523",
"0.5911801",
"0.589122",
"0.58837116",
"0.5878998",
"0.58603406",
"0.5830788",
"0.5807484",
"0.57918143",
"0.5769912",
"0.57560366",
"0.5746119",
"0.5729455",
"0.57085097",
"0.5631958",
"0.56286705",
"0.5620881"... | 0.56193084 | 21 |
Constructs a new plugin setting. | public Condition(@NonNull final Context context, @NonNull final Plugin plugin) {
assertNotNull(context, "context"); //$NON-NLS-1$
assertNotNull(plugin, "plugin"); //$NON-NLS-1$
if (PluginType.CONDITION != plugin.getType()) {
throw new IllegalArgumentException("plugin.getType() must ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Setting() {\n\t}",
"public Setting() {\n }",
"public Settings(){}",
"private Settings() { }",
"private Settings() {}",
"SettingType createSettingType();",
"public JpSetting() {\n initComponents();\n fillThongtin();\n }",
"private static void makeInstance(){\n\n if(se... | [
"0.64476514",
"0.6293886",
"0.61312085",
"0.6097146",
"0.60884744",
"0.60555714",
"0.5991532",
"0.5918954",
"0.57738215",
"0.5720866",
"0.57045674",
"0.56296474",
"0.55971295",
"0.5574615",
"0.55732673",
"0.5513087",
"0.551258",
"0.5504983",
"0.5421389",
"0.5401405",
"0.53828... | 0.0 | -1 |
Creates new form QWBPChart | public QWBPChart(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSett... | [
"0.67830783",
"0.6440951",
"0.64171904",
"0.6384307",
"0.6140701",
"0.6120848",
"0.59440607",
"0.59415877",
"0.59053797",
"0.58849776",
"0.58455074",
"0.5830798",
"0.57965404",
"0.57696193",
"0.5768055",
"0.5757773",
"0.5722407",
"0.57077014",
"0.56724936",
"0.56449395",
"0.5... | 0.52347904 | 64 |
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() {
jPanel1 = new javax.swing.JPanel();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new... | {
"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.73192346",
"0.7290526",
"0.7290526",
"0.7290526",
"0.7285891",
"0.72480357",
"0.7213616",
"0.7207808",
"0.71955067",
"0.71891475",
"0.71844363",
"0.7159038",
"0.71474695",
"0.7092269",
"0.7079923",
"0.70560205",
"0.69864315",
"0.697697",
"0.69552195",
"0.6953691",
"0.69458... | 0.0 | -1 |
Find function cycle using Brent's cycle detection algorithm. | private static FunctionCycle findCycleWithBrentsInternal(IntUnaryOperator func, int x0) {
int power = 1;
int lam = 1;
int t = x0;
int h = func.applyAsInt(x0);
// 'lam' will be equal to cycle length at the end of iteration
while (t != h) {
if (power == lam) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static FunctionCycle findCycleWithFloydsInternal(IntUnaryOperator func, int x0) {\n\n int t = func.applyAsInt(x0);\n int h = func.applyAsInt(func.applyAsInt(x0));\n\n // find point inside the cycle\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.app... | [
"0.7247716",
"0.6347063",
"0.632394",
"0.6276658",
"0.61966586",
"0.6050733",
"0.60252476",
"0.60202444",
"0.5977466",
"0.5906754",
"0.58407104",
"0.5821733",
"0.5815338",
"0.5779041",
"0.5758277",
"0.5727129",
"0.5714366",
"0.5678141",
"0.56218123",
"0.56192905",
"0.5610208"... | 0.73990816 | 0 |
Find function cycle using HashSet | private static FunctionCycle findCycleWithHashingInternal(IntUnaryOperator func, int x0) {
IntHashSet detectedValues = new IntHashSet();
int curValue = x0;
while (!detectedValues.contains(curValue)) {
detectedValues.add(curValue);
curValue = func.applyAsInt(curValue);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Set<NFAState> eClosure(NFAState s) {\r\n\t\tSet<NFAState> l = new HashSet<>();\r\n\t\treturn depthFirstSearch(l, s);\r\n\t}",
"private void reachable(Set s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCod... | [
"0.5984189",
"0.57777274",
"0.57459784",
"0.56227386",
"0.56160146",
"0.55936235",
"0.55640864",
"0.55152243",
"0.55111146",
"0.54477155",
"0.5407866",
"0.5399553",
"0.5384032",
"0.5354697",
"0.53470737",
"0.53369015",
"0.5321356",
"0.52996856",
"0.52896875",
"0.5278278",
"0.... | 0.6109554 | 0 |
Find function cycle using Floyd's cycle detection algorithm. | private static FunctionCycle findCycleWithFloydsInternal(IntUnaryOperator func, int x0) {
int t = func.applyAsInt(x0);
int h = func.applyAsInt(func.applyAsInt(x0));
// find point inside the cycle
while (t != h) {
t = func.applyAsInt(t);
h = func.applyAsInt(func.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static FunctionCycle findCycleWithBrentsInternal(IntUnaryOperator func, int x0) {\n\n int power = 1;\n int lam = 1;\n\n int t = x0;\n int h = func.applyAsInt(x0);\n\n // 'lam' will be equal to cycle length at the end of iteration\n while (t != h) {\n if ... | [
"0.7159461",
"0.61774886",
"0.6028344",
"0.6001418",
"0.59922504",
"0.5911578",
"0.5722297",
"0.5688768",
"0.5676582",
"0.5615768",
"0.5614361",
"0.5559715",
"0.550222",
"0.5501865",
"0.54854393",
"0.5430166",
"0.5428",
"0.5393668",
"0.53751886",
"0.53520954",
"0.532241",
"... | 0.7750297 | 0 |
Utility method to get a line of text from the input stream. | private String getTextLineFromStream( InputStream is ) throws IOException {
StringBuffer buffer = new StringBuffer();
int b;
while( (b = is.read()) != -1 && b != (int) '\n' ) {
buffer.append( (char) b );
}
return buffer.toString().trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLine()\n\t{\n\t\ttry\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn line;\n\t}",
"private String eatLine( InputStream stream ) throws IOException {\n buffer = new StringBuffer();\n for ( boolean done = false; ! done; )... | [
"0.6959577",
"0.6895817",
"0.6860428",
"0.67538166",
"0.67384624",
"0.67347336",
"0.6731782",
"0.6688857",
"0.6643913",
"0.6638361",
"0.66290677",
"0.66007227",
"0.6578163",
"0.6576571",
"0.6557449",
"0.64928395",
"0.64566714",
"0.63662",
"0.6337461",
"0.6326932",
"0.6302925"... | 0.7716359 | 0 |
Set a name/value pair, null values will be treated as an empty String | public void set(String name, String value)
{
envMap.put(name,name+"="+StringUtil.nonNull(value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set(String name, Object value) {\n }",
"void setValue(java.lang.String value);",
"public void setValue(String name, Object value) {\n\t\tif (this.fields == null)\n\t\t\tthis.fields = new HashMap<String, Object>();\n\t\tif (name != null)\n\t\t\tthis.fields.put(name, value);\n\t}",
"public void ... | [
"0.729679",
"0.6892235",
"0.6888401",
"0.68790805",
"0.68790805",
"0.68790805",
"0.68790805",
"0.67631596",
"0.67631596",
"0.6754204",
"0.67205924",
"0.67173725",
"0.67150116",
"0.6711361",
"0.670817",
"0.6635316",
"0.66092306",
"0.66092306",
"0.66092306",
"0.66034627",
"0.65... | 0.6643196 | 15 |
Get representation suitable for passing to exec. | public String[] getEnvArray()
{
return (String[])envMap.values().toArray(new String[envMap.size()]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getOutput();",
"String getOutput();",
"public abstract String serialise();",
"public String f() {\n StringWriter stringWriter = new StringWriter();\n dump(\"\", null, new PrintWriter(stringWriter), null);\n return stringWriter.toString();\n }",
"@Override\n\tpublic ... | [
"0.62558335",
"0.6085807",
"0.5876201",
"0.58365667",
"0.57008195",
"0.568986",
"0.5685377",
"0.56544733",
"0.5651125",
"0.56224126",
"0.56093085",
"0.56028956",
"0.5590328",
"0.5561807",
"0.55575556",
"0.5545128",
"0.5544243",
"0.55264413",
"0.5489212",
"0.5452132",
"0.54311... | 0.0 | -1 |
User: nik Date: 2/19/13 Time: 1:15 AM | public interface AnotherService {
String getAnotherExample();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Long getUserCreated();",
"@Override\n public String toString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'@'HH:mm:ss\");\n String userInformation = new String();\n Date date = new Date();\n userInformation = \"[\" + username + \" - \" +\n sock... | [
"0.59372973",
"0.5732233",
"0.57106996",
"0.57077956",
"0.56233543",
"0.5596609",
"0.5575027",
"0.55626726",
"0.555096",
"0.5536494",
"0.55318606",
"0.5527076",
"0.55230564",
"0.5508546",
"0.54987526",
"0.5495293",
"0.54829574",
"0.545832",
"0.5457568",
"0.5454447",
"0.544599... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_duel, container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
method to load the data from the clients file | public static int leerClientes(String[] nombres,String[] apellidos, String[]ruts,String[]contraseñas,double[]saldos) throws IOException{
File file = new File("clientes.txt");
Scanner arch = new Scanner(file);
int i = 0;
while ( arch.hasNextLine()){
String linea = arch.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\... | [
"0.73321664",
"0.7162854",
"0.69025487",
"0.68528473",
"0.67634046",
"0.66887504",
"0.6616218",
"0.66011053",
"0.6520648",
"0.6520648",
"0.6514105",
"0.6514105",
"0.6500783",
"0.64663243",
"0.6444984",
"0.6442898",
"0.6423962",
"0.6370332",
"0.626647",
"0.62486583",
"0.624067... | 0.0 | -1 |
method to load the data from the status file | public static int leerStatus( String[]ruts,String[]estadoPase, int numClientes) throws IOException{
File file = new File("status.txt");
Scanner arch1 = new Scanner(file);
int i = 0;
while ( arch1.hasNextLine()){
String linea = arch1.nextLine();
String [] pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadStatus (){\n\t}",
"private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * acce... | [
"0.75374633",
"0.649249",
"0.6159862",
"0.6015165",
"0.5997316",
"0.5995637",
"0.59915054",
"0.59690434",
"0.59608924",
"0.5943432",
"0.5943432",
"0.59282273",
"0.5900355",
"0.58984244",
"0.5875288",
"0.58671004",
"0.58258563",
"0.5809736",
"0.5809736",
"0.5794124",
"0.578645... | 0.0 | -1 |
method to load the data from the movie file | public static int leerPeliculas(String[] peliculas,String[] tipoPeliculas,double[]recaudaciones,int [] salas,String [] funciones) throws IOException{
File file = new File("peliculas.txt");
Scanner arch2 = new Scanner(file);
int i = 0;
while ( arch2.hasNextLine()){
Strin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadPanoramaMovie(String filename) {\n\t\tfinal int driveMultFactor = 2;\n\t\tdouble[] vector = new double[3];\n\t\tdouble[] quaternion = new double[4];\n\t\t\n\t\tArrayList endpoints = new ArrayList();\n\t\ttry {\n\t\t\tFile movieFile = new File(filename);\n\t\t\tExcelCSVReader csvReader = new ExcelCS... | [
"0.6672394",
"0.64725494",
"0.64725494",
"0.6407589",
"0.63846064",
"0.62944156",
"0.6276254",
"0.62683815",
"0.62561005",
"0.62510043",
"0.62363946",
"0.61924356",
"0.61923474",
"0.6190284",
"0.6190284",
"0.6160403",
"0.61426",
"0.6132516",
"0.612739",
"0.61200976",
"0.61054... | 0.0 | -1 |
method to print the client menu with the available options | public static void imprimirMenuCliente() {
System.out.println("---------------------------menu---------------------------");
System.out.println("opciones: (ingrese la letra)");
System.out.println("A: despliega la opción comprar entrada");
System.out.println("B: despliega la opción informacion usuario");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}",
"protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }",
"pri... | [
"0.8470386",
"0.83775103",
"0.8237314",
"0.80748796",
"0.80186033",
"0.80022043",
"0.7960267",
"0.7903452",
"0.77818996",
"0.7779036",
"0.77731323",
"0.77726746",
"0.77633166",
"0.77319056",
"0.7666732",
"0.7664482",
"0.76388866",
"0.76378655",
"0.7593537",
"0.75819105",
"0.7... | 0.6824425 | 96 |
method to print the administrator menu with the available options | public static void imprimirMenuAdmin() {
System.out.println("---------------------------menu---------------------------");
System.out.println("opciones: (ingrese la letra)");
System.out.println("A: despliega la opción taquilla");
System.out.println("B: despliega la opción informacion cliente");
System.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}",
"private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\... | [
"0.77593756",
"0.7731058",
"0.7720438",
"0.7661076",
"0.7549936",
"0.75238585",
"0.74976647",
"0.74353504",
"0.7405026",
"0.7391165",
"0.7361363",
"0.735424",
"0.73378974",
"0.7321392",
"0.7309425",
"0.73087585",
"0.7301572",
"0.72768587",
"0.7250956",
"0.7250447",
"0.7191312... | 0.74136865 | 8 |
method that allows to format the ru of the form with period and hyphen even if it is entered in different ways | public static String formatearRut(String rut){
int cont = 0;
String format;
rut= rut.replace(".", "");
rut = rut.replace("-", "");
format= "-" + rut.substring(rut.length()-1);
for(int i = rut.length()-2; i>=0;i--){
format=rut.substring(i,i+1)+format;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tprotected String formatValue(String text) {\n\t\t\t\treturn text.substring(0, text.lastIndexOf('.'));\n\t\t\t}",
"private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\... | [
"0.59426963",
"0.5629787",
"0.5567372",
"0.54356056",
"0.53570485",
"0.5342381",
"0.5223613",
"0.521764",
"0.51801336",
"0.5108576",
"0.5087991",
"0.5081667",
"0.504083",
"0.50223345",
"0.5014369",
"0.49982205",
"0.49923864",
"0.49867216",
"0.49798632",
"0.49755198",
"0.49428... | 0.6152328 | 0 |
method to print start menu with available options | public static void imprimirMenu() {
System.out.println("---------------------------menu---------------------------");
System.out.println("opciones: (ingrese como RF#)");
System.out.println("RF1: iniciar sesion ");
System.out.println("RF2: registrarse al sistema");
System.out.println("RF3: Salir");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }",
"private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}",
"pri... | [
"0.8149684",
"0.8059857",
"0.80185163",
"0.78821284",
"0.7847293",
"0.782749",
"0.7730917",
"0.76231587",
"0.76211023",
"0.76189387",
"0.7617712",
"0.758809",
"0.758319",
"0.757361",
"0.7546594",
"0.7545837",
"0.75374544",
"0.75275785",
"0.7523731",
"0.7520497",
"0.7506505",
... | 0.0 | -1 |
method to say goodbye after closing the start menu | public static void RF2() {
System.out.print("Gracias,Tenga un Buen Dia ");
System.out.print("Adios :D");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void printExitMenu() {\n System.out.println(\"Goodbye! Thanks for using the app!\");\n }",
"static void goodbye() {\n printGoodbyeMessage();\n System.exit(0);\n }",
"private void quit()\n\t{\n\t\tapplicationView.showChatbotMessage(quitMessage);\n\t\tSystem.exit(0);\n\t\t\n\t... | [
"0.79733",
"0.76813513",
"0.76760525",
"0.76250345",
"0.7522567",
"0.7509972",
"0.74646354",
"0.7460436",
"0.73971325",
"0.7366717",
"0.7330781",
"0.73157066",
"0.7314024",
"0.7308197",
"0.7307373",
"0.7296281",
"0.72537917",
"0.72500736",
"0.7236186",
"0.7192001",
"0.7183714... | 0.0 | -1 |
======================== Getters y setters ======================== | public String getNombreJugador() {
return nombreJugador;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public void setAge(int age) { this.age = age; }",
"public void setdat()\n {\n }",
"@Override\n protected void updateProperties() {\n }",
"@Test\n public void t... | [
"0.6509951",
"0.63838756",
"0.63683057",
"0.63117385",
"0.6210523",
"0.62105113",
"0.62023205",
"0.61918586",
"0.61899984",
"0.60904735",
"0.60657763",
"0.6050851",
"0.6032828",
"0.602472",
"0.60193264",
"0.60097504",
"0.5986685",
"0.5981478",
"0.59788036",
"0.5966029",
"0.59... | 0.0 | -1 |
Suma de las cartas de castillo del jugador | public int getCartasJugador() {
int suma = this.escudoTorre.getValor() + this.escudoRey.getValor()
+ this.escudoNobleza.getValor() + this.escudoRey.getValor();
return suma;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azu... | [
"0.6686324",
"0.6667925",
"0.6461545",
"0.64184",
"0.63025916",
"0.62385094",
"0.6234423",
"0.6180663",
"0.6156665",
"0.61032355",
"0.6086543",
"0.6032832",
"0.6003756",
"0.5927634",
"0.5910347",
"0.58783036",
"0.5848932",
"0.58037055",
"0.57804525",
"0.57792985",
"0.57749236... | 0.7182357 | 0 |
Se le llama al aumentar victorias | public void AumentarVictorias() {
this.victorias_actuales++;
if (this.victorias_actuales >= 9) {
this.TituloNobiliario = 3;
} else if (this.victorias_actuales >= 6) {
this.TituloNobiliario = 2;
} else if (this.victorias_actuales >= 3) {
this.TituloNobiliario = 1;
} else {
this.TituloNobil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n ... | [
"0.6577165",
"0.6359447",
"0.6321393",
"0.6251814",
"0.61926365",
"0.6178628",
"0.61322606",
"0.61060184",
"0.6085526",
"0.60554206",
"0.60480756",
"0.604032",
"0.6000756",
"0.5992072",
"0.59830505",
"0.5937959",
"0.5910774",
"0.5909694",
"0.5903944",
"0.58696187",
"0.5825208... | 0.7322055 | 0 |
Cambia las cartas del Castillo : Torre,Rey,Nobleza,Pueblo. | public void CambiarCartasCastillo() {
int aux;
// Asignamos el escudo del rey;
aux = (int) (Math.random() * 12) + 1;
escudoRey = new Escudo(aux, Escudo.GrupoEscudo.rey);
// Asignamos el escudo de la nobleza
aux = (int) (Math.random() * 12) + 1;
escudoNobleza = new Escudo(aux, Escudo.GrupoEscudo.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void barajarCartas()\n {\n for (int posicionActual = 0; posicionActual < mazo.size(); posicionActual++) {\n Carta carta1 = mazo.get(0);\n Random aleatorio = new Random();\n int posicionAleatoria = aleatorio.nextInt(mazo.size());\n mazo.set(posicionActual... | [
"0.67665255",
"0.6404481",
"0.6352937",
"0.61849564",
"0.61298823",
"0.6096512",
"0.6085119",
"0.6041086",
"0.60154825",
"0.5974932",
"0.5965807",
"0.5899341",
"0.58763736",
"0.5859794",
"0.5858863",
"0.5849316",
"0.58283824",
"0.5798699",
"0.5780171",
"0.5777972",
"0.5751997... | 0.7411937 | 0 |
Nobleza 1 Ganamos 0 Perdemos | public int LuchaEntreNobles(Escudo escudoNoblezaHeroe,
Escudo escudoNoblezaEnemigo) {
boolean bGanaHeroe, bGanaEnemigo;
float prob1 = ProbabilidadesLucha
.ProbabilidadCastillo(escudoNoblezaHeroe.getValor());
float prob2 = ProbabilidadesLucha
.ProbabilidadCastillo(escudoNoblezaEnemigo.getValor()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}",
"void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}",
"public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }",
"static void sueldo7diasl(){\nSystem.out.println(\"Ejempl... | [
"0.6788698",
"0.6717889",
"0.66600513",
"0.66127914",
"0.6585807",
"0.655847",
"0.6534585",
"0.6517691",
"0.65146565",
"0.6510259",
"0.6488477",
"0.647522",
"0.6466409",
"0.64588815",
"0.64021575",
"0.63727605",
"0.6346998",
"0.6342341",
"0.6340377",
"0.63331974",
"0.63143915... | 0.0 | -1 |
Pueblo 1 Ganamos 0 Perdemos | public int LuchaEntrePueblo(Escudo escudoPuebloHeroe,
Escudo escudoPuebloEnemigo) {
boolean bGanaHeroe, bGanaEnemigo;
float prob1 = ProbabilidadesLucha
.ProbabilidadCastillo(escudoPuebloHeroe.getValor());
float prob2 = ProbabilidadesLucha
.ProbabilidadCastillo(escudoPuebloEnemigo.getValor());... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }",
"public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n... | [
"0.67679864",
"0.67610085",
"0.66291994",
"0.6614254",
"0.6539869",
"0.65124744",
"0.6448992",
"0.6400551",
"0.63749605",
"0.6360241",
"0.63560236",
"0.634247",
"0.63384753",
"0.63361096",
"0.63261807",
"0.63167053",
"0.6307137",
"0.6303759",
"0.6301566",
"0.6301277",
"0.6299... | 0.0 | -1 |
/ renamed from: a | public static DatabaseProvider m6655a() {
return f5136f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public static void m6656a(Context context, String str, int i, OnSchemaChangeListener onSchemaChangeListener, List<C1916a> list) {
f5136f = new DatabaseProvider(context, onSchemaChangeListener, list, str, i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | SQLiteDatabase m6657b() {
if (this.f5138c == null) {
this.f5138c = getWritableDatabase();
}
return this.f5138c;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: c | public void m6658c() {
for (C1916a onLogout : this.f5137b) {
onLogout.onLogout();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",... | 0.0 | -1 |
Creates a new instance of UIAgent | @Override
public String getVersion() {
return "1.0";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }",
"protected Re... | [
"0.6625286",
"0.64564395",
"0.62253296",
"0.6124656",
"0.6046884",
"0.60142523",
"0.6006045",
"0.5971995",
"0.5964929",
"0.596126",
"0.594984",
"0.5856251",
"0.58354044",
"0.58298975",
"0.5797453",
"0.57865167",
"0.5775087",
"0.5749535",
"0.57444066",
"0.57398945",
"0.5735640... | 0.0 | -1 |
One agent will be kept alive over multiple sessions. Init will be called at the start of each nego session. | @Override
public void init() {
// System.out.println("init UIAgent");
// System.out.println("closing old dialog of ");
if (ui != null) {
ui.dispose();
ui = null;
}
// System.out.println("old dialog closed. Trying to open new dialog. ");
try {
ui = new EnterBidDialog(this, null, true,
(Additive... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"... | [
"0.7508588",
"0.701906",
"0.6635753",
"0.6582728",
"0.6580088",
"0.64063406",
"0.6178845",
"0.6105796",
"0.6037251",
"0.598288",
"0.59404814",
"0.58931947",
"0.58341914",
"0.5829996",
"0.57920206",
"0.57709056",
"0.57508624",
"0.57433486",
"0.57409936",
"0.5702871",
"0.569804... | 0.0 | -1 |
Return a list of all NetworkInterface hardware addresses in %x:%x:%x:%x:%x:%x format | public static List<String> getAllHardwareAddress() throws SocketException {
ArrayList<String> addresses = new ArrayList<>();
Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();
while (ifaces.hasMoreElements()) {
NetworkInterface iface = ifaces.nextElement(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> getHardwareAddresses() {\r\n\t\tList<String> result = new Vector<String>();\r\n\t\ttry {\r\n\t\t\tEnumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces();\r\n\t\t\tif (nis != null) {\r\n\t\t\t\twhile (nis.hasMoreElements()) {\r\n\t\t\t\t\tbyte[] mac = nis.nextElement(... | [
"0.76135546",
"0.6330142",
"0.6285607",
"0.6223967",
"0.62133807",
"0.60361975",
"0.5928028",
"0.5896372",
"0.5890878",
"0.5664562",
"0.5566477",
"0.5553998",
"0.5521991",
"0.54948026",
"0.54941976",
"0.54934",
"0.54721844",
"0.54255074",
"0.5397944",
"0.5370824",
"0.5363362"... | 0.7033998 | 1 |
Return a list of all NetworkInterface hardware addresses and addresses | public static List<InterfaceConfig> getAllAddress() throws SocketException {
ArrayList<InterfaceConfig> addresses = new ArrayList<>();
Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();
while (ifaces.hasMoreElements()) {
NetworkInterface iface = ifaces.ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> getHardwareAddresses() {\r\n\t\tList<String> result = new Vector<String>();\r\n\t\ttry {\r\n\t\t\tEnumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces();\r\n\t\t\tif (nis != null) {\r\n\t\t\t\twhile (nis.hasMoreElements()) {\r\n\t\t\t\t\tbyte[] mac = nis.nextElement(... | [
"0.788049",
"0.75634134",
"0.72772515",
"0.7200936",
"0.7116308",
"0.69262713",
"0.68226296",
"0.67637104",
"0.6457585",
"0.6402084",
"0.63714504",
"0.63302624",
"0.6324219",
"0.6277275",
"0.6247331",
"0.612889",
"0.61272126",
"0.6012306",
"0.59913105",
"0.5845093",
"0.580827... | 0.6663709 | 8 |
Converts an image bytearray to the Base64 equivalent | static String convertToBase64(byte[] image){
return !Objects.isNull(image)
? Base64.getEncoder().encodeToString(image)
: "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }",
"public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }",
"String convertImageToBase64String(final Bu... | [
"0.67599916",
"0.67171437",
"0.67117167",
"0.65806246",
"0.65581137",
"0.65483946",
"0.6514675",
"0.6492811",
"0.6428702",
"0.6403558",
"0.63883376",
"0.6340373",
"0.6284656",
"0.62566984",
"0.62389183",
"0.6224661",
"0.62209255",
"0.621393",
"0.6179448",
"0.61703384",
"0.609... | 0.80252844 | 0 |
Either encode a message from a file or decode a message from a file. Depending on the Boolean encoded. | public String readNwrite() {
if (encoded) {
try {
msgEncoded = Files.readAllLines(msgEncodedPath);
} catch (IOException e) {
e.printStackTrace();
}
for (String line : msgEncoded) {
try {
Files.wri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean canDecodeInput(File file) throws IOException;",
"String byteOrBooleanRead();",
"String byteOrBooleanWrite();",
"String encode(File message, File key,File crypted);",
"public abstract boolean canDecodeInput(Object source) throws IOException;",
"abstract protected boolean read();",
... | [
"0.5929413",
"0.5628385",
"0.53383696",
"0.51877207",
"0.51101965",
"0.50784004",
"0.5060873",
"0.4999928",
"0.48928875",
"0.48483726",
"0.48176378",
"0.478099",
"0.46947408",
"0.46792683",
"0.46458733",
"0.46138853",
"0.46115616",
"0.45793542",
"0.45768625",
"0.45763683",
"0... | 0.50114375 | 7 |
Generated by Protege ( Source Class: InputParam | public interface InputParam extends Parameter {
/* ***************************************************
* Property http://www.semanticweb.org/rami#isEquivalent
*/
/**
* Gets all property values for the isEquivalent property.<p>
*
* @returns a collection of values for the... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ParameterInput extends Input {\n\t\n\t/**\n\t * Returns the metadata of this parameter.\n\t * @return ParameterMetadata\tmetadata\n\t */\n\tpublic ParameterMetadata getMetadata();\n\t\n\t/**\n\t * Returns the parameter value of an option.\n\t * \n\t * @return Object option parameter value\n\t */\... | [
"0.7283747",
"0.6694676",
"0.6694676",
"0.6694676",
"0.66198695",
"0.6578013",
"0.65248454",
"0.65136445",
"0.64783996",
"0.6456395",
"0.6404776",
"0.6314765",
"0.6240746",
"0.62254363",
"0.6221291",
"0.62040037",
"0.62025726",
"0.61857224",
"0.61853516",
"0.61691564",
"0.616... | 0.6929172 | 1 |
/ Property Gets all property values for the isEquivalent property. | Collection<? extends Noun> getIsEquivalent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Set<OntProperty> getEquivalentProperties(OntProperty p)\n\t{\n\t\treturn getEquivalentProperties(p, false);\n\t}",
"boolean hasIsEquivalent();",
"public static Set<OntProperty> getEquivalentProperties(OntProperty p, boolean withSubProperties)\n\t{\n\t\t/* in some reasoners, listEquivalentProperti... | [
"0.66698396",
"0.6111621",
"0.5924114",
"0.55369985",
"0.5523277",
"0.5448787",
"0.5440749",
"0.52523583",
"0.5199121",
"0.51606965",
"0.51588225",
"0.514724",
"0.5134935",
"0.5127777",
"0.5122736",
"0.50793374",
"0.507678",
"0.50742006",
"0.50308794",
"0.50271785",
"0.502535... | 0.64760685 | 1 |
Checks if the class has a isEquivalent property value. | boolean hasIsEquivalent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkEquivalent(OWLClass class1, OWLClass class2) {\n for (OWLClass cls : loader.getEquivalentClasses(class1)) {\n if (cls.getIRI().equals(class2.getIRI())) {\n return true;\n }\n }\n return false;\n }",
"@Override // com.google.common.b... | [
"0.66445655",
"0.6562732",
"0.63829637",
"0.6109032",
"0.59396404",
"0.5706193",
"0.5437952",
"0.5433183",
"0.54324436",
"0.54324436",
"0.54324436",
"0.5423474",
"0.5380059",
"0.5350688",
"0.53274244",
"0.5303942",
"0.53010774",
"0.5297981",
"0.5281096",
"0.52686685",
"0.5253... | 0.7088117 | 0 |
Adds a isEquivalent property value. | void addIsEquivalent(Noun newIsEquivalent); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasIsEquivalent();",
"Collection<? extends Noun> getIsEquivalent();",
"@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }",
"@Override // com.google.common.base.Equivalence\n public boolean doEquivale... | [
"0.5649175",
"0.5412317",
"0.52593255",
"0.50266564",
"0.47696114",
"0.47685805",
"0.46828064",
"0.4625693",
"0.45607597",
"0.45581022",
"0.45154506",
"0.44819602",
"0.44724613",
"0.447049",
"0.44566804",
"0.44484782",
"0.44466528",
"0.44433773",
"0.44319338",
"0.4390063",
"0... | 0.67276937 | 0 |
Removes a isEquivalent property value. | void removeIsEquivalent(Noun oldIsEquivalent); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unsetIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ISCOMPARATION$2);\n }\n }",
"Property removeValue(PropertyValue<?, ?> value);",
"@Override\n \tpublic void removeIsCitedBy(Reference reference)... | [
"0.54788446",
"0.5219795",
"0.51328486",
"0.50632775",
"0.5040899",
"0.5013846",
"0.49970445",
"0.49016753",
"0.48969075",
"0.48678422",
"0.48007062",
"0.4799009",
"0.4763915",
"0.47635794",
"0.4762571",
"0.47596246",
"0.47532696",
"0.47334874",
"0.47191563",
"0.47176453",
"0... | 0.67217773 | 0 |
/ Property Gets all property values for the isInputTo property. | Collection<? extends MethodCall> getIsInputTo(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InputsType getInputs();",
"Inputs getInputs();",
"public boolean getInputsRelated(){\n return inputsRelated;\n }",
"public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }",
"public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return... | [
"0.59224707",
"0.59091187",
"0.5890568",
"0.5886252",
"0.5884349",
"0.5866781",
"0.5839187",
"0.58327764",
"0.56850934",
"0.56744325",
"0.5658781",
"0.56473327",
"0.5547495",
"0.55175775",
"0.5517084",
"0.54424727",
"0.54309",
"0.5417685",
"0.5378084",
"0.53654593",
"0.532740... | 0.60823333 | 0 |
Checks if the class has a isInputTo property value. | boolean hasIsInputTo(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isInput() {\n return input;\n }",
"@Override\n\tpublic boolean isInputPort() {\n\t\tif (getFlexoPort() != null) {\n\t\t\treturn getFlexoPort().isInPort();\n\t\t}\n\t\treturn false;\n\t}",
"public boolean is_set_inputs() {\n return this.inputs != null;\n }",
"boolean hasInputConfi... | [
"0.68998754",
"0.66851795",
"0.64113516",
"0.6370244",
"0.6370244",
"0.6370244",
"0.6296843",
"0.6247213",
"0.61499524",
"0.6056911",
"0.59946245",
"0.5977424",
"0.5958874",
"0.58558804",
"0.5847082",
"0.5830221",
"0.5765294",
"0.56667054",
"0.5592192",
"0.5592192",
"0.558239... | 0.7682248 | 0 |
Adds a isInputTo property value. | void addIsInputTo(MethodCall newIsInputTo); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setInput(boolean input) {\n this.input = input;\n }",
"boolean hasIsInputTo();",
"public boolean isInput() {\n return input;\n }",
"public abstract void setInput(boolean value);",
"public void setInput(Input input) {\n this.input = input;\n }",
"ListeningFuture<B... | [
"0.6259129",
"0.60087305",
"0.59847593",
"0.57743895",
"0.5513591",
"0.53069025",
"0.52885395",
"0.51598513",
"0.51503474",
"0.5143715",
"0.51158184",
"0.51092434",
"0.5065722",
"0.505698",
"0.504094",
"0.4980632",
"0.49716598",
"0.49451536",
"0.4943464",
"0.4938002",
"0.4898... | 0.62768555 | 0 |
Removes a isInputTo property value. | void removeIsInputTo(MethodCall oldIsInputTo); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeInputType(IInputType type);",
"public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inpu... | [
"0.6170249",
"0.5303913",
"0.5175902",
"0.5129659",
"0.49985242",
"0.4995483",
"0.49937472",
"0.49449226",
"0.48760498",
"0.48760498",
"0.48750934",
"0.48650497",
"0.4853748",
"0.48338327",
"0.48272777",
"0.47893003",
"0.4775116",
"0.47616872",
"0.47551122",
"0.474312",
"0.47... | 0.6714404 | 0 |
/ Property Gets all property values for the Label property. | Collection<? extends Object> getLabel(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPropertyLabel() {\n \t\treturn propertyLabel;\n \t}",
"public Object getLabels() {\r\n if (labels != null) {\r\n return labels;\r\n }\r\n ValueBinding vb = getValueBinding(\"labels\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }"... | [
"0.71947724",
"0.7106672",
"0.7004564",
"0.6947737",
"0.6914025",
"0.6891354",
"0.68061566",
"0.6796434",
"0.6775723",
"0.6775723",
"0.67626476",
"0.67600036",
"0.67379063",
"0.6721075",
"0.66808516",
"0.66691375",
"0.6668529",
"0.66476154",
"0.66472626",
"0.6640041",
"0.6625... | 0.6773085 | 11 |
Checks if the class has a Label property value. | boolean hasLabel(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasLabel()\n {\n return _label.isNotNull();\n }",
"@Override\n\t\tpublic boolean hasLabel(Label label) {\n\t\t\treturn false;\n\t\t}",
"boolean isSetLabel();",
"@Override\n\tpublic boolean isLabelProperty(Object arg0, String arg1) {\n\t\treturn false;\n\t}",
"public boolean isLa... | [
"0.802499",
"0.7807712",
"0.7567936",
"0.75583065",
"0.74492633",
"0.7426388",
"0.74193114",
"0.7350263",
"0.7287757",
"0.72780925",
"0.7247366",
"0.7137402",
"0.7137402",
"0.7137402",
"0.71179116",
"0.71179116",
"0.71179116",
"0.70722586",
"0.68872243",
"0.6867355",
"0.68494... | 0.80338764 | 2 |
Adds a Label property value. | void addLabel(Object newLabel); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}",
"String addLabel(String label);",
"public void setLabel(Object value) {\n this.setValue(LABEL_PROPERTY_KEY, value);\n }",
"public LabelField addLabelField(final Property prop) {\n return addLabelField(prop.getKey());\n }",
"com.mic... | [
"0.776741",
"0.7231809",
"0.71441764",
"0.70178884",
"0.69682044",
"0.68290854",
"0.68143755",
"0.6749839",
"0.67400336",
"0.66846746",
"0.66846746",
"0.6658488",
"0.66385",
"0.6588207",
"0.6571841",
"0.6562693",
"0.6501708",
"0.6476706",
"0.64285874",
"0.64005345",
"0.635100... | 0.7472403 | 2 |
Removes a Label property value. | void removeLabel(Object oldLabel); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void removeLabel(Label label) {\n\n\t\t}",
"String removeLabel(String label);",
"void unsetLabel();",
"public void removeConceptLabel(ConceptLabel lbl) {\n\t\tSystem.out.println(\"removing \"+lbl+\" ..\");\n\t\t\n\t\tlbl.setDeleted(true);\n\t\t// tokens.remove(lbl);\n\t\t// System.out.p... | [
"0.810001",
"0.75523514",
"0.75221205",
"0.7105833",
"0.6818063",
"0.669397",
"0.6654705",
"0.66177773",
"0.6458895",
"0.63513476",
"0.6340616",
"0.6259288",
"0.6248716",
"0.6175631",
"0.60859334",
"0.60279703",
"0.602536",
"0.60051656",
"0.5986243",
"0.5886017",
"0.58836436"... | 0.79199314 | 2 |
/ I have generated 100 random characters of digits, lowercase, and uppercases but I didnt do this part: sum of three numbers should be 100 I couldnt understand what I need to do exactly | public static void main(String args[]){
int n, r; char chr = 'a'; int sum = 0; int total = 0;
n = 100;
char C[];
C = new char[n];
for(int i = 0; i<n;i++){
r = (int)(Math.random()*3+1); /* generate random value between 1-3 */
switch(r){
case 1:
C[i] = getRandomLowerCaseLetter();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n ... | [
"0.67826515",
"0.6648466",
"0.64963955",
"0.635923",
"0.62795573",
"0.6263209",
"0.6262781",
"0.6256085",
"0.6250234",
"0.6194531",
"0.6189394",
"0.6188229",
"0.6177541",
"0.6150003",
"0.6135687",
"0.6126455",
"0.61218864",
"0.6099219",
"0.60983264",
"0.60867417",
"0.60619766... | 0.7104634 | 0 |
Genetare a random lowercase letter | public static char getRandomLowerCaseLetter(){
return getRandomCharacter('a','z');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}",
"public static String randLower(){\n int n = rand.nextInt(26)*2 + 1;\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"public static char getRandomUpperCaseLetter(){\n\t\tretu... | [
"0.78501856",
"0.7646329",
"0.7503189",
"0.7492016",
"0.7430991",
"0.7361209",
"0.71232814",
"0.7028264",
"0.70189613",
"0.6987024",
"0.6967196",
"0.6843444",
"0.6840816",
"0.6818913",
"0.6778854",
"0.67631847",
"0.67137223",
"0.6683574",
"0.66766",
"0.6660023",
"0.6643866",
... | 0.8593489 | 0 |
Generate a random uppercase letter | public static char getRandomUpperCaseLetter(){
return getRandomCharacter('A','Z');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String randUpper(){\n int n = rand.nextInt(26)*2;\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}",
"private char generateRandomCharacter(){\n String alph... | [
"0.79241604",
"0.79140574",
"0.74687797",
"0.7405192",
"0.71870947",
"0.70969397",
"0.705671",
"0.6845198",
"0.68337566",
"0.6771737",
"0.6757319",
"0.6722941",
"0.66936696",
"0.6623892",
"0.66183317",
"0.6611303",
"0.6563441",
"0.6555716",
"0.6554426",
"0.652856",
"0.6511403... | 0.87272906 | 0 |
Generate a random digit character | public static char getDigitCharacter(){
return getRandomCharacter('0','9');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}",
"private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabe... | [
"0.82512045",
"0.8068221",
"0.7725773",
"0.74648607",
"0.74126863",
"0.7283106",
"0.7279391",
"0.72344613",
"0.7218834",
"0.7079502",
"0.7061751",
"0.698779",
"0.6976856",
"0.69592947",
"0.6932893",
"0.6924896",
"0.6919181",
"0.68540716",
"0.6852282",
"0.683822",
"0.68318796"... | 0.7900153 | 2 |
Overrides version in ActiveEntity | public void scheduleActions(WorldModel world, ImageStore imageStore, EventScheduler eventScheduler)
{
eventScheduler.scheduleEvent(this, new Activity(this, world, imageStore),
getActionPeriod());
eventScheduler.scheduleEvent(this, new Animation(this, 0),
getAnimationP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean supportsVersioning()\n\t{\n\t\treturn true;\n\t}",
"@Override\n public int getVersion() {\n return 0;\n }",
"protected abstract int getVersion(EntityType entityType, String entityName) throws IOException;",
"@Override\r\n\tpublic int getVersion() {\n\t\treturn 0;\r\n\... | [
"0.6500853",
"0.64246404",
"0.6320241",
"0.6317126",
"0.62320995",
"0.62170976",
"0.61924666",
"0.61637956",
"0.6140299",
"0.6128171",
"0.6080396",
"0.603608",
"0.603608",
"0.603608",
"0.60194016",
"0.6015074",
"0.5992227",
"0.59676516",
"0.5958322",
"0.59418964",
"0.58945227... | 0.0 | -1 |
Create a new Chord Ring | ChordNode(String address, int port) {
this.address = address;
this.port = port;
// Convert the address and port to SHA1
SHA1Hasher sha1Hash = new SHA1Hasher(this.address + ":" + this.port);
this.id = sha1Hash.getLong();
this.hex = sha1Hash.getHex();
// Print sta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createChain(){\r\n Oscillator wt = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);\r\n Filter filt = new Filter(wt, this.filterCutoff, Filter.LOW_PASS);\r\n Envelope env = new Envelope(filt, \r\n new double[] {0.0, 0.0, 0.05, 1.0, ... | [
"0.5784096",
"0.5764343",
"0.56832474",
"0.54988956",
"0.543616",
"0.5435256",
"0.54169756",
"0.5412147",
"0.541154",
"0.539264",
"0.5313021",
"0.5309948",
"0.5308069",
"0.53077394",
"0.5293181",
"0.5278216",
"0.5262841",
"0.52486825",
"0.52482814",
"0.5240098",
"0.52361",
... | 0.48746374 | 76 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.