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 |
|---|---|---|---|---|---|---|
Load a properties file from the classpath then from $SILVERPEAS_HOME/properties | public static Properties loadResource(String propertyName) throws IOException {
Properties properties = new Properties();
InputStream in = Configuration.class.getClassLoader().getResourceAsStream(propertyName);
try {
if (null == in) {
String path = propertyName.replace('/', separatorChar);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Prop... | [
"0.7151649",
"0.69755566",
"0.6889127",
"0.6872781",
"0.6846226",
"0.6831982",
"0.68089163",
"0.6642174",
"0.6637442",
"0.6522163",
"0.6519234",
"0.6453068",
"0.6439811",
"0.64367235",
"0.6409868",
"0.6406108",
"0.63903815",
"0.6346728",
"0.6333497",
"0.6308755",
"0.62945575"... | 0.5732822 | 78 |
Delete the directory if it is empty. | public static boolean deleteEmptyDir(File directory) {
return directory.exists() && directory.isDirectory() && directory.list() != null &&
directory.list().length == 0 && directory.delete();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void doDeleteEmptyDir(String dir) {\n\n boolean success = (new File(dir)).delete();\n\n if (success) {\n System.out.println(\"Successfully deleted empty directory: \" + dir);\n } else {\n System.out.println(\"Failed to delete empty directory: \" + dir);\n ... | [
"0.76425135",
"0.7109918",
"0.6942845",
"0.6888488",
"0.68864274",
"0.6793495",
"0.67609847",
"0.67341",
"0.6683313",
"0.6666092",
"0.6576394",
"0.6540788",
"0.65321565",
"0.65236336",
"0.65136063",
"0.6512627",
"0.6506557",
"0.64933836",
"0.64840525",
"0.64744467",
"0.646309... | 0.7351865 | 1 |
Created by BigBaws on 14/11/2016. | public interface IMessage {
Message getMessage(int userid);
Message getMessages(int userid);
Message sendMessage(int userid);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"... | [
"0.5982116",
"0.5900904",
"0.5835581",
"0.5752772",
"0.5752772",
"0.5742047",
"0.57037926",
"0.56913954",
"0.5665958",
"0.56362563",
"0.55778503",
"0.5560999",
"0.5549651",
"0.55347764",
"0.55299",
"0.5518078",
"0.5518078",
"0.5518078",
"0.5518078",
"0.5518078",
"0.5518078",
... | 0.0 | -1 |
1.get the authentication header.Tokens are supposed to be passed in the authentication header. | protected void doFilterInternal(HttpServletRequest request,HttpServletResponse response,FilterChain chain)throws ServletException,IOException {
String header=request.getHeader(jwtConfig.getHeader());
//2.validate the header and check the prefix
if(header==null || !header.startsWith(jwtConfig.getPrefix())) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AuthenticationTokenInfo authenticationTokenInfo(String headerToken);",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n String token = LogInActivity.token;\n headers.put(\"Aut... | [
"0.76490945",
"0.69338626",
"0.6925735",
"0.6881183",
"0.6879311",
"0.68351346",
"0.6795947",
"0.6703827",
"0.6703827",
"0.6638677",
"0.6636836",
"0.66131526",
"0.655142",
"0.65223885",
"0.6500493",
"0.64308465",
"0.6405897",
"0.6398022",
"0.6350738",
"0.6347253",
"0.6346218"... | 0.5956487 | 52 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.ID | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountLogId() {\n return accountLogId;\n }",
"int getBId();",
"public Integer getBlId() {\n return blId;\n }",
"public int getBId() {\n return instance.getBId();\n }",
"Long getDbId();",
"public StrColumn getEntityId() {\n return delegate.getCo... | [
"0.5565659",
"0.5553355",
"0.5500218",
"0.54648477",
"0.5438924",
"0.5383853",
"0.5345877",
"0.5337879",
"0.5337681",
"0.5323517",
"0.5312507",
"0.5239508",
"0.52370894",
"0.5223789",
"0.52193534",
"0.51869756",
"0.5186972",
"0.5169634",
"0.51611114",
"0.51482886",
"0.5140564... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.ID | public void setId(Long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAD_Column_ID (int AD_Column_ID);",
"private void setBId(int value) {\n \n bId_ = value;\n }",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public void setBlId(Integer blId) {\n this.blId = blId;\n }",
"public void setBrandid( Integer brandid )\n ... | [
"0.5349357",
"0.5334641",
"0.5212014",
"0.5203206",
"0.5200656",
"0.5166678",
"0.5047216",
"0.50025105",
"0.50025105",
"0.49984145",
"0.49329734",
"0.49306977",
"0.49013546",
"0.48781127",
"0.48420408",
"0.48354366",
"0.4828596",
"0.48248473",
"0.48226017",
"0.4814203",
"0.48... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.FUNC_NAME | public String getFuncName() {
return funcName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName()\n {\n return m_functionName;\n }",
"public String getFunctionName() {\r\n\t\treturn this.functionName;\r\n\t}",
"public static String getTriggerField(){\n return WHAT_IS_THE_SOURCE_OF_FUNDS.getFieldNameValue();\n }",
"public String getFunctionName()\n {\n ret... | [
"0.57860816",
"0.5743873",
"0.5697496",
"0.56090117",
"0.55548453",
"0.5508031",
"0.5499063",
"0.54966694",
"0.54239786",
"0.5418664",
"0.53022856",
"0.52872187",
"0.5282913",
"0.52454025",
"0.518247",
"0.5182389",
"0.5180673",
"0.51799536",
"0.50922084",
"0.5075438",
"0.5072... | 0.58701265 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.FUNC_NAME | public void setFuncName(String funcName) {
this.funcName = funcName == null ? null : funcName.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setFunctionName(String functionName) {\n\n }",
"public void setFunction (String columnName, String function)\n\t{\n\t\tsetFunction(getColumnIndex(columnName), function);\n\t}",
"public void setFuncname(String funcname) {\r\n this.funcname = funcname == null ? null : funcname.tr... | [
"0.53917277",
"0.53054506",
"0.5054184",
"0.49221674",
"0.49045885",
"0.48714176",
"0.48276943",
"0.47571287",
"0.47411922",
"0.47393048",
"0.46641043",
"0.46611083",
"0.46609747",
"0.4650547",
"0.46465182",
"0.4626573",
"0.46086133",
"0.45878264",
"0.45654133",
"0.45320433",
... | 0.5218018 | 2 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.OPERATETYPE | public Long getOperatetype() {
return operatetype;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOperTypeName() {\r\n\t\treturn operTypeName;\r\n\t}",
"public void setOperatetype(Long operatetype) {\n this.operatetype = operatetype;\n }",
"public int getOperationType() {\r\n return operationType;\r\n }",
"public String getOperTypeId() {\r\n\t\treturn operType... | [
"0.59107983",
"0.565785",
"0.5476808",
"0.54747564",
"0.54650795",
"0.54601705",
"0.5416695",
"0.5399988",
"0.5380546",
"0.5369915",
"0.53338027",
"0.52864355",
"0.52113265",
"0.5158879",
"0.5141612",
"0.51284355",
"0.5115965",
"0.5104085",
"0.51028925",
"0.5102317",
"0.50754... | 0.6352454 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.OPERATETYPE | public void setOperatetype(Long operatetype) {
this.operatetype = operatetype;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getOperatetype() {\n return operatetype;\n }",
"public void setOper(String oper) {\n this.oper = oper;\n }",
"public void setOperTypeName(String operTypeName) {\r\n\t\tthis.operTypeName = operTypeName;\r\n\t}",
"public void setTipoOperacion(java.lang.String tipoOperacion) {\n ... | [
"0.5644027",
"0.5530502",
"0.5497395",
"0.54092485",
"0.5371213",
"0.5297783",
"0.5230049",
"0.5193216",
"0.5090839",
"0.50866234",
"0.50761527",
"0.49902505",
"0.4944497",
"0.49416202",
"0.49403492",
"0.4905496",
"0.4903506",
"0.48186243",
"0.48141342",
"0.47868857",
"0.4783... | 0.61922425 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.EXCEPTIONINFO | public String getExceptioninfo() {
return exceptioninfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ExceptionInfo getExceptionInfo() {\n return exceptionInfo;\n }",
"@JsonProperty(\"exception\")\n public ExceptionInfo getException() {\n return exception;\n }",
"String getOnExceptionBegin(OnException onException, long row);",
"public String getParseExceptionInfo(SAXParseExcepti... | [
"0.5824636",
"0.54368687",
"0.53459644",
"0.5293863",
"0.50699615",
"0.5057372",
"0.50271964",
"0.49539962",
"0.48733678",
"0.48349583",
"0.48119587",
"0.47806558",
"0.47340414",
"0.47036463",
"0.47036463",
"0.46869546",
"0.46758804",
"0.464065",
"0.46396855",
"0.46284878",
"... | 0.6313391 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.EXCEPTIONINFO | public void setExceptioninfo(String exceptioninfo) {
this.exceptioninfo = exceptioninfo == null ? null : exceptioninfo.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getExceptioninfo() {\n return exceptioninfo;\n }",
"public ExceptionInfo getExceptionInfo() {\n return exceptionInfo;\n }",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\" ==> afterPropertiesSet in ErrorInfo...\");\n\t}"... | [
"0.5170384",
"0.49418402",
"0.47495088",
"0.47199333",
"0.46537656",
"0.4589313",
"0.4421523",
"0.4413045",
"0.4358817",
"0.43155435",
"0.42957243",
"0.42887855",
"0.4245268",
"0.42236197",
"0.4211926",
"0.41735473",
"0.4164338",
"0.41633552",
"0.41522047",
"0.4138672",
"0.41... | 0.5603208 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.IFSUCCESS | public Integer getIfsuccess() {
return ifsuccess;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIfsuccess(Integer ifsuccess) {\n this.ifsuccess = ifsuccess;\n }",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"public int getSuccess() {\n return success;\n }",
"private void reportTransactionStatus(boolean succ... | [
"0.5561751",
"0.5227718",
"0.5227718",
"0.5227718",
"0.5227718",
"0.5166262",
"0.5159755",
"0.50552845",
"0.5020714",
"0.5011672",
"0.5011672",
"0.50071365",
"0.49807966",
"0.49166113",
"0.49122098",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4875097"... | 0.56484836 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.IFSUCCESS | public void setIfsuccess(Integer ifsuccess) {
this.ifsuccess = ifsuccess;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuccess(boolean success);",
"public void setSuccess(boolean success) {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Setting success to -> \"+ success);\n this.success = success;\n }",
"public void setSuccess(boolean success) {... | [
"0.55367625",
"0.5467568",
"0.5463341",
"0.5463341",
"0.5435167",
"0.5433581",
"0.5376272",
"0.53135455",
"0.5294975",
"0.5294153",
"0.51992315",
"0.51519287",
"0.51519287",
"0.51519287",
"0.5107603",
"0.5100831",
"0.5077462",
"0.50328857",
"0.50298125",
"0.50190735",
"0.4966... | 0.6340251 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.COUNT | public Integer getCount() {
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int logCount() {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"SELECT COUNT(*) FROM log;\";\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n rs.nex... | [
"0.62090373",
"0.6098984",
"0.6076184",
"0.60108465",
"0.59757954",
"0.59757954",
"0.59517694",
"0.5942165",
"0.59402937",
"0.5896998",
"0.5888558",
"0.58605605",
"0.5840091",
"0.5810803",
"0.5803555",
"0.5779498",
"0.57214975",
"0.5693065",
"0.56906915",
"0.5677764",
"0.5672... | 0.52711654 | 82 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.COUNT | public void setCount(Integer count) {
this.count = count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCount(java.math.BigInteger count)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COUNT$8);\n if (target ==... | [
"0.58233917",
"0.5686797",
"0.5644424",
"0.56405354",
"0.5616211",
"0.55226123",
"0.5514501",
"0.5514501",
"0.5514501",
"0.5488397",
"0.548626",
"0.54842657",
"0.54633826",
"0.54633826",
"0.54633826",
"0.54633826",
"0.54633826",
"0.5448999",
"0.5410986",
"0.5395628",
"0.53467... | 0.5624611 | 9 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.RECDATE | public Date getRecdate() {
return recdate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"Date getDateRDV() {\n return this.dateRDV;\n }",
"publi... | [
"0.57111895",
"0.5699555",
"0.55234164",
"0.5520095",
"0.5495629",
"0.5448873",
"0.5416439",
"0.5334976",
"0.5309133",
"0.5263343",
"0.5194551",
"0.51581705",
"0.5158019",
"0.51505804",
"0.5118906",
"0.51146764",
"0.5114353",
"0.51117766",
"0.5106379",
"0.5098618",
"0.5095724... | 0.58796966 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.RECDATE | public void setRecdate(Date recdate) {
this.recdate = recdate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHistoryRebate(BigDecimal historyRebate) {\n this.historyRebate = historyRebate;\n }",
"public void setRecdate(java.sql.Timestamp newValue) {\n\tthis.recdate = newValue;\n}",
"public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (ne... | [
"0.5662708",
"0.56520396",
"0.5371403",
"0.52709776",
"0.5226462",
"0.52249324",
"0.5210663",
"0.5162273",
"0.5119714",
"0.5104003",
"0.5074715",
"0.50021267",
"0.49951184",
"0.4993503",
"0.49767378",
"0.49598503",
"0.4930773",
"0.4887491",
"0.48612842",
"0.4843041",
"0.48173... | 0.5825114 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.TYPEID | public Long getTypeid() {
return typeid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public String getId_type() {\n return id_type;\n }",
"public int getIdType() {\r\n return idType;\r\n }",
"public String getIdType() {\n return idType;\n }",
"public int getSqlType() { return _type; }",
"public ... | [
"0.6428179",
"0.632063",
"0.614591",
"0.6106802",
"0.60388476",
"0.5982437",
"0.5978089",
"0.5976179",
"0.59616023",
"0.59068567",
"0.58898926",
"0.58799314",
"0.5856428",
"0.5849792",
"0.5827279",
"0.578558",
"0.57624674",
"0.57575125",
"0.5757001",
"0.5732862",
"0.5730141",... | 0.6205823 | 2 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.TYPEID | public void setTypeid(Long typeid) {
this.typeid = typeid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIdType(int idType) {\r\n this.idType = idType;\r\n }",
"public void setId_type(String id_type) {\n this.id_type = id_type;\n }",
"public void setIdType(Integer idType) {\n this.idType = idType;\n }",
"public void setIdType(String idType) {\n this.idType = i... | [
"0.6307868",
"0.6255944",
"0.62001085",
"0.5975644",
"0.5897073",
"0.58758986",
"0.57474154",
"0.5689297",
"0.56644404",
"0.5648439",
"0.5648439",
"0.56335086",
"0.5609101",
"0.559696",
"0.55885875",
"0.5574962",
"0.5544399",
"0.5509843",
"0.54949594",
"0.54890406",
"0.548413... | 0.6039642 | 3 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.EXCEPTCODE | public Long getExceptcode() {
return exceptcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setExceptcode(Long exceptcode) {\n this.exceptcode = exceptcode;\n }",
"public long getExceptionCodeAsLong() {\r\n\t\treturn this.exceptionCode_;\r\n\t}",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
... | [
"0.5992893",
"0.5194065",
"0.5191372",
"0.5191372",
"0.51056814",
"0.50980717",
"0.50856495",
"0.5070929",
"0.49693635",
"0.49351096",
"0.49321032",
"0.49119285",
"0.4881133",
"0.48749378",
"0.48746836",
"0.48516682",
"0.48514423",
"0.48510292",
"0.48510292",
"0.48398343",
"0... | 0.6835993 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.EXCEPTCODE | public void setExceptcode(Long exceptcode) {
this.exceptcode = exceptcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getExceptcode() {\n return exceptcode;\n }",
"public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }",
"public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }",
"public void setBUSI_CODE(Integer BUSI_CODE) {\n this.BUSI_CODE = BUSI_CODE... | [
"0.59954154",
"0.51417404",
"0.51417404",
"0.49493766",
"0.4891516",
"0.48125637",
"0.47714794",
"0.46420863",
"0.46353048",
"0.46299425",
"0.459321",
"0.45929798",
"0.45929798",
"0.45924103",
"0.4572391",
"0.4572391",
"0.45690984",
"0.45643285",
"0.45623505",
"0.45536444",
"... | 0.6601215 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.UPDATEDATE | public Date getUpdatedate() {
return updatedate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }",
"public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }",
"Date getDateUpdated();",
"public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }",
"publi... | [
"0.6552534",
"0.6552534",
"0.63586825",
"0.61264586",
"0.61264586",
"0.61264586",
"0.6093119",
"0.60629296",
"0.6057605",
"0.60564727",
"0.6051393",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.59916",
"0.59824944",
"0.5... | 0.59380734 | 23 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.UPDATEDATE | public void setUpdatedate(Date updatedate) {
this.updatedate = updatedate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }",
"public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }",
"public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }",
... | [
"0.623414",
"0.623414",
"0.587004",
"0.58568764",
"0.57887053",
"0.57887053",
"0.57406425",
"0.57406425",
"0.57406425",
"0.5696287",
"0.56405205",
"0.56098825",
"0.55626446",
"0.5556641",
"0.5510348",
"0.5510348",
"0.5462816",
"0.5453076",
"0.54454345",
"0.5440686",
"0.544068... | 0.58169824 | 5 |
Convert a given Binary Tree to Doubly Linked List | Set 4 | void convertToDll1(){
head=null;
reverseInOrder(root);
printDLL(head);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ListNode> binaryTreeToLists(TreeNode root) {\n\t\tList<ListNode> list = new ArrayList<ListNode>();\n\t\tif (root == null) {\n\t\t\treturn list;\n\t\t}\n\n\t\tQueue<TreeNode> queue = new LinkedList<TreeNode>();\n\t\tqueue.offer(root);\n\t\tListNode dummy = new ListNode(0);\n\t\twhile (!queue.isEmpty()) ... | [
"0.6721721",
"0.66762656",
"0.65908957",
"0.65765524",
"0.65606505",
"0.64109457",
"0.63727427",
"0.61681336",
"0.6113419",
"0.6068827",
"0.60547316",
"0.58871245",
"0.5884211",
"0.588198",
"0.5863456",
"0.5824767",
"0.58239865",
"0.5791823",
"0.57770014",
"0.5760967",
"0.575... | 0.0 | -1 |
Memorymap the model file in Assets | private MappedByteBuffer loadModelFile(Activity activity) throws IOException {
AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);
FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());
FileChannel fileChannel = inputStream.getChannel();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n ... | [
"0.68194",
"0.62162757",
"0.6140819",
"0.5941411",
"0.54990923",
"0.5431435",
"0.54226124",
"0.5421304",
"0.5382833",
"0.5376529",
"0.5316807",
"0.5270012",
"0.5230166",
"0.5209965",
"0.52009374",
"0.5195099",
"0.5183483",
"0.5159262",
"0.51422477",
"0.51164687",
"0.51138526"... | 0.6840383 | 1 |
To classify an image, follow these steps: 1. preprocess the input image 2. run inference with the model 3. postprocess the output result for display in UI | public int classify(Bitmap bitmap) {
preprocess(bitmap);
runInference();
return postprocess();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSyst... | [
"0.656016",
"0.65111136",
"0.62991774",
"0.6279313",
"0.6146632",
"0.595069",
"0.59487665",
"0.59284186",
"0.588137",
"0.5865056",
"0.58537424",
"0.58419377",
"0.58368754",
"0.5822447",
"0.580652",
"0.57751864",
"0.57557565",
"0.5741179",
"0.5705116",
"0.56822884",
"0.5677312... | 0.65970105 | 0 |
Preprocess the bitmap by converting it to ByteBuffer & grayscale | private void preprocess(Bitmap bitmap) {
convertBitmapToByteBuffer(bitmap);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Bitmap convertToGrayscale(Bitmap bmpOriginal) {\n int height = bmpOriginal.getHeight();\n int width = bmpOriginal.getWidth();\n Log.e(TAG, \"width=\" + width + \" height=\" + height);//default size is 640*480 px\n Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.C... | [
"0.6363402",
"0.62158954",
"0.61971146",
"0.6093991",
"0.60063124",
"0.5992193",
"0.5977436",
"0.5885314",
"0.58714974",
"0.58714974",
"0.58698684",
"0.5800678",
"0.5758085",
"0.57139564",
"0.56159675",
"0.56087124",
"0.55870837",
"0.55853516",
"0.5550586",
"0.55486345",
"0.5... | 0.74735355 | 0 |
Run inference with the classifier model Input is image Output is an array of probabilities | private void runInference() {
interpreter.run(inputImage, outputArray);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\n protected Integer doInBackground(Integer... params) {\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5... | [
"0.617023",
"0.6093892",
"0.5747755",
"0.5718582",
"0.56266016",
"0.55754846",
"0.5556023",
"0.55285484",
"0.55285066",
"0.54993457",
"0.5498829",
"0.5471753",
"0.54338276",
"0.5363246",
"0.5329828",
"0.5316582",
"0.5259742",
"0.52342004",
"0.52105993",
"0.5195657",
"0.519348... | 0.6294692 | 0 |
Figure out the prediction of digit by finding the index with the highest probability | private int postprocess() {
// Index with highest probability
int maxIndex = -1;
float maxProb = 0.0f;
for (int i = 0; i < outputArray[0].length; i++) {
if (outputArray[0][i] > maxProb) {
maxProb = outputArray[0][i];
maxIndex = i;
}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getDominantI(float[] l) {\n float max = 0;\n int maxi = -1;\n for(int i=0;i<l.length;i++) {\n if (l[i]>max)\n max = l[i]; maxi = i;\n }\n return maxi;\n }",
"@Override\n\tpublic int predict(int[] ex) {\n\t\tdouble sum = 0.0; \n\t\tint pr... | [
"0.62320465",
"0.6208474",
"0.6120999",
"0.59655476",
"0.59584844",
"0.59405714",
"0.5829027",
"0.58018863",
"0.5778898",
"0.5741807",
"0.572912",
"0.57131916",
"0.5668002",
"0.56460863",
"0.56232715",
"0.55654556",
"0.55316556",
"0.5520826",
"0.5512142",
"0.5506327",
"0.5459... | 0.73573655 | 0 |
Specialized Constructor that receives the command set to execute. | public HydraFrame(final Stage tgtStage, final CommandSet useCommands) {
super(HydraFrame.DEFAULT_TITLE);
this.stage = tgtStage;
this.commands = useCommands;
this.initialize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Command() {\n this.arguments = new String[0];\n }",
"public Tree(Console console, String command[]) {\n userFileSystem = console.getFileSystem();\n commandArgument = command;\n }",
"Command(String command, int parameterCount) {\n this.command = command;\n this.parameterCount = p... | [
"0.65065956",
"0.64485705",
"0.64401233",
"0.63938826",
"0.6362856",
"0.6357402",
"0.63230056",
"0.6312683",
"0.6304613",
"0.6303943",
"0.6299983",
"0.62354916",
"0.62327814",
"0.62160325",
"0.6191959",
"0.6151853",
"0.6143268",
"0.61246586",
"0.6110096",
"0.6105112",
"0.6090... | 0.0 | -1 |
Intializes the frame and all of the sub components. | private void initialize() {
this.setExtendedState(Frame.MAXIMIZED_BOTH);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setResizable(true);
this.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();
this.getContentPane().setLayout(new BorderLayout());
// Initialize SubComponents and GUI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attrib... | [
"0.6103572",
"0.56607676",
"0.5615813",
"0.5598644",
"0.5524702",
"0.55204797",
"0.548803",
"0.5458853",
"0.54572374",
"0.5454769",
"0.5452115",
"0.5408583",
"0.5342545",
"0.5342545",
"0.5327469",
"0.528097",
"0.52732784",
"0.52457064",
"0.52142054",
"0.52009076",
"0.51729995... | 0.0 | -1 |
Initializes the split pane, explorer on top and console on bottom. | private void initializeSplitPane() {
this.splitPane = new JSplitPane();
this.splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
this.splitPane.setDividerLocation(this.screenDimensions.height / 2);
this.getContentPane().add(this.splitPane, BorderLayout.CENTER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsp... | [
"0.7715149",
"0.73800325",
"0.6979314",
"0.6953812",
"0.68960583",
"0.6797022",
"0.6771977",
"0.6738243",
"0.66962636",
"0.6666938",
"0.66638714",
"0.665624",
"0.6649861",
"0.66408074",
"0.6637467",
"0.66116524",
"0.6559877",
"0.65411913",
"0.64981616",
"0.647961",
"0.6459229... | 0.77291065 | 0 |
Initializes the hydra visualization panel, which provides a visual representation of the managed logical units. | private void initializeExplorer() {
this.hydraExplorer = new HydraExplorer(this.stage);
this.splitPane.setTopComponent(this.hydraExplorer);
this.initializeExplorerCommands();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Visualizador() {\n initComponents();\n inicializar();\n }",
"private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pa... | [
"0.63820475",
"0.61836386",
"0.6147676",
"0.6143351",
"0.61415",
"0.6138148",
"0.61090946",
"0.608928",
"0.6064507",
"0.6025706",
"0.59960264",
"0.59597397",
"0.5940474",
"0.5937976",
"0.59303844",
"0.59169614",
"0.5906832",
"0.59008074",
"0.5884278",
"0.5883347",
"0.587039",... | 0.5657018 | 50 |
Initializes the gui commands relevant for the hydra explorer. | private void initializeExplorerCommands() {
this.commands.add(new GUICmdGraphMouseMode("Transforming",
"GUICmdGraphMouseMode.Transforming", this.hydraExplorer,
ModalGraphMouse.Mode.TRANSFORMING));
this.commands.add(new GUICmdGraphMouseMode("Picking",
"GUICmdGraphMouseMode.Picking", this.hydraExplorer,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initializeExplorer() {\n\t\tthis.hydraExplorer = new HydraExplorer(this.stage);\n\t\tthis.splitPane.setTopComponent(this.hydraExplorer);\n\t\tthis.initializeExplorerCommands();\n\t}",
"protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r... | [
"0.7207112",
"0.6869463",
"0.68054974",
"0.67324877",
"0.668447",
"0.6591219",
"0.65798944",
"0.657115",
"0.6545247",
"0.6536451",
"0.6522175",
"0.6501091",
"0.6484122",
"0.64723086",
"0.6462507",
"0.645615",
"0.6455623",
"0.64376336",
"0.64305985",
"0.6429199",
"0.6429199",
... | 0.82308656 | 0 |
Initialize the hydra console which is used to display output to the user and to receive command line input from the user. | private void initializeConsole() {
this.hydraConsole = new HydraConsole(this.stage, this.commands);
this.splitPane.setBottomComponent(this.hydraConsole);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}",
"abstract void initiateConsole();",
"public Console() {\n initComponents();\n }",
"public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr ... | [
"0.73794454",
"0.7170263",
"0.7057201",
"0.6812334",
"0.6632388",
"0.65768933",
"0.64897513",
"0.6478243",
"0.6402889",
"0.63731945",
"0.6330152",
"0.6237366",
"0.61957294",
"0.6190575",
"0.6170539",
"0.6161224",
"0.6154571",
"0.61273766",
"0.6111766",
"0.6094681",
"0.6076143... | 0.82282525 | 0 |
Initialize the menu bar which provides selectable actions for the user to execute. | private void initializeMenuBar() {
this.hydraMenu = new HydraMenu(this.commands);
this.setJMenuBar(this.hydraMenu);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n comman... | [
"0.79748577",
"0.7695919",
"0.7605856",
"0.7577387",
"0.74034876",
"0.73983794",
"0.7355456",
"0.7336034",
"0.7270045",
"0.72445405",
"0.72185814",
"0.7156743",
"0.71279377",
"0.7068584",
"0.7048827",
"0.7015116",
"0.7014103",
"0.6998137",
"0.6982721",
"0.6962298",
"0.6948297... | 0.7109087 | 13 |
resets the frame probably | @Override
public void renderGameObject() {
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
//this is where we can actually display stuff on the screen
batch.begin();
batch.draw(new TextureRegion(background),100,100,100,100,200,200,1,1,0);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset ()\n {\n // position our buffer at the beginning of the frame data\n _buffer.position(getHeaderSize());\n }",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"public void reset() {\n\r\n\t}",
"private void reset() ... | [
"0.747288",
"0.7376584",
"0.73039615",
"0.72589034",
"0.72552073",
"0.7232739",
"0.72272235",
"0.72199327",
"0.72128654",
"0.72128654",
"0.7209067",
"0.7197873",
"0.71968365",
"0.71932423",
"0.71911514",
"0.71834654",
"0.7182506",
"0.7182506",
"0.7182506",
"0.7182506",
"0.716... | 0.0 | -1 |
Creates a new jCard value. | public JCardValue(List<JsonValue> values) {
this.values = Collections.unmodifiableList(values);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"public BJCard(Suit s, Value gVal)\r\n {\r\n suit = s;\r\n value= gVal;\r\n }",
"public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();",
"public static JCardValue single(Object value) {\n\t\tret... | [
"0.6325887",
"0.6278705",
"0.62786186",
"0.608739",
"0.6044805",
"0.60177773",
"0.5996432",
"0.588255",
"0.5800796",
"0.57950604",
"0.57538855",
"0.5750251",
"0.574208",
"0.57291925",
"0.5708596",
"0.5708433",
"0.568887",
"0.56631166",
"0.565551",
"0.5628515",
"0.55624765",
... | 0.49243087 | 84 |
Creates a new jCard value. | public JCardValue(JsonValue... values) {
this.values = Arrays.asList(values); //unmodifiable
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"public BJCard(Suit s, Value gVal)\r\n {\r\n suit = s;\r\n value= gVal;\r\n }",
"public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();",
"public static JCardValue single(Object value) {\n\t\tret... | [
"0.6323412",
"0.6278215",
"0.6277929",
"0.6088263",
"0.60434973",
"0.6017146",
"0.5994914",
"0.5880758",
"0.57995975",
"0.57938045",
"0.57524836",
"0.57487744",
"0.5739698",
"0.5728747",
"0.5708687",
"0.57063955",
"0.5686814",
"0.5661747",
"0.5654018",
"0.5628711",
"0.5562293... | 0.53440076 | 35 |
Creates a singlevalued value. | public static JCardValue single(Object value) {
return new JCardValue(new JsonValue(value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object createSingleClonedValue(Object oSingleValue_p)\r\n {\r\n return oSingleValue_p;\r\n }",
"NumberValue createNumberValue();",
"ObjectValue createObjectValue();",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"T value();",
"public BwValue mkValue... | [
"0.6552693",
"0.65349656",
"0.64067835",
"0.6400549",
"0.6400549",
"0.6315018",
"0.6262787",
"0.619546",
"0.6183892",
"0.6174878",
"0.6174878",
"0.6118122",
"0.6112017",
"0.5957992",
"0.5957326",
"0.59572774",
"0.5919409",
"0.590795",
"0.58980864",
"0.58980864",
"0.58980864",... | 0.66426396 | 0 |
Creates a multivalued value. | public static JCardValue multi(Object... values) {
return multi(Arrays.asList(values));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Values createValues();",
"ArrayValue createArrayValue();",
"Multi createMulti();",
"Map<String, List<String>> getFormDataMultivalue();",
"FromValues createFromValues();",
"public static JCardValue multi(List<?> values) {\n\t\tList<JsonValue> multiValues = new ArrayList<>(values.size());\n\t\tfor (Object ... | [
"0.5947393",
"0.5748297",
"0.5575866",
"0.55432963",
"0.55377954",
"0.5434732",
"0.53005326",
"0.526055",
"0.52346706",
"0.5109454",
"0.51074624",
"0.50910366",
"0.50879836",
"0.50664544",
"0.50607777",
"0.49851972",
"0.4937037",
"0.49292865",
"0.49067175",
"0.48775843",
"0.4... | 0.60016626 | 0 |
Creates a multivalued value. | public static JCardValue multi(List<?> values) {
List<JsonValue> multiValues = new ArrayList<>(values.size());
for (Object value : values) {
multiValues.add(new JsonValue(value));
}
return new JCardValue(multiValues);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static JCardValue multi(Object... values) {\n\t\treturn multi(Arrays.asList(values));\n\t}",
"Values createValues();",
"ArrayValue createArrayValue();",
"Multi createMulti();",
"Map<String, List<String>> getFormDataMultivalue();",
"FromValues createFromValues();",
"public JSONObject buildMultiva... | [
"0.5997797",
"0.5949197",
"0.574874",
"0.5572447",
"0.5542807",
"0.5539091",
"0.5299194",
"0.52631253",
"0.5232287",
"0.51126397",
"0.5108208",
"0.5089093",
"0.5086289",
"0.50665504",
"0.505787",
"0.49878085",
"0.49401805",
"0.49281722",
"0.49029478",
"0.48806772",
"0.4879045... | 0.5430986 | 6 |
Creates a structured value. | public static JCardValue structured(List<List<?>> values) {
List<JsonValue> array = new ArrayList<>(values.size());
for (List<?> list : values) {
if (list.isEmpty()) {
array.add(new JsonValue(""));
continue;
}
if (list.size() == 1) {
Object value = list.get(0);
if (value == null) {
v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Values createValues();",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{... | [
"0.64698744",
"0.6069953",
"0.6014879",
"0.59676963",
"0.59676665",
"0.59096223",
"0.5851366",
"0.57792175",
"0.576815",
"0.5762064",
"0.57398355",
"0.5736066",
"0.5730542",
"0.57221955",
"0.57187885",
"0.5710762",
"0.55931103",
"0.55931103",
"0.55931103",
"0.55931103",
"0.55... | 0.49259493 | 88 |
Gets all the JSON values. | public List<JsonValue> getValues() {
return values;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@JsonIgnore\n List<T> getValues();",
"@Override\n\tpublic JSONObject getAll() {\n\t\treturn null;\n\t}",
"public List<Object> getValues();",
"public Object getJsonObject() {\n return JSONArray.toJSON(values);\n }",
"List getValues();",
"public Collection<Object> values()\n {\n ... | [
"0.70826834",
"0.66455877",
"0.6537733",
"0.6469796",
"0.6410878",
"0.6404482",
"0.63254905",
"0.63254905",
"0.6291887",
"0.6291887",
"0.6291887",
"0.6269339",
"0.6260986",
"0.6229555",
"0.6216627",
"0.61912704",
"0.6180208",
"0.61762977",
"0.617287",
"0.59952784",
"0.5972655... | 0.7065517 | 1 |
initial the errorNum = 0 and start to lookahead. | public Parser() throws IOException {
lookahead = System.in.read();
errorNum = 0;
input = "";
output = "";
errorPos = "";
errorList = new ArrayList<String>();
wrongState = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void restart_lookahead() throws Exception {\r\n for (int i = 1; i < error_sync_size(); i++) {\r\n Symbol[] symbolArr = this.lookahead;\r\n symbolArr[i - 1] = symbolArr[i];\r\n }\r\n this.cur_token = scan();\r\n this.lookahead[error_sync_size() - 1] = this.cu... | [
"0.65061516",
"0.6460941",
"0.6386597",
"0.59813046",
"0.5875233",
"0.5758654",
"0.5692614",
"0.56285715",
"0.5609305",
"0.558978",
"0.54941595",
"0.549293",
"0.5381377",
"0.5354416",
"0.5340839",
"0.5323304",
"0.5311767",
"0.5310317",
"0.530489",
"0.5301219",
"0.5293159",
... | 0.0 | -1 |
deal with the input. | void expr() throws IOException {
input = input+(char)lookahead;
term();
rest();
printPostfix();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void processInput() {\n\t}",
"private void processInput() {\r\n\t\ttry {\r\n\t\t\thandleInput(readLine());\r\n\t\t} catch (WrongFormatException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void processInput() {\n\n\t}",
"protected void handleInput(String input) {}",
"... | [
"0.7456821",
"0.7198114",
"0.71261245",
"0.70484555",
"0.6564236",
"0.6548098",
"0.65316355",
"0.6509941",
"0.6492414",
"0.63114613",
"0.62999034",
"0.6297264",
"0.62932485",
"0.6293154",
"0.6278503",
"0.62477183",
"0.6240518",
"0.6240518",
"0.61877644",
"0.61829406",
"0.6176... | 0.0 | -1 |
deal with the +and. | void rest() throws IOException {
while(true) {
if (lookahead == '+') {
if(wrongState == false)
errorPos = errorPos+(char)' ';
else
wrongState = false;
match('+');
term();
if(errorNum == 0) {
output = output + (char)'+';
}
} else if (lookahead == '-') {
if(wrongState ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void passAND() {\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'a' && data[currentIndex] != 'A')) {\n\t\t\tthrow new LexerException(\"Ulaz ne valja!\");\n\t\t}\n\t\tcurrentIndex++;\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'n' && data[currentIndex] != 'N')) {\n\t\t\tth... | [
"0.69140357",
"0.67666984",
"0.67480946",
"0.67440253",
"0.6739466",
"0.6697963",
"0.66584134",
"0.6580107",
"0.6579349",
"0.6571932",
"0.65473014",
"0.6545959",
"0.6527735",
"0.6511445",
"0.64893836",
"0.6471629",
"0.6459901",
"0.63841385",
"0.63788396",
"0.63419414",
"0.633... | 0.0 | -1 |
deal with the digit.And check the lookahead if its digit. | void term() throws IOException {
if (Character.isDigit((char)lookahead)) {
if(errorNum == 0) {
output = output + (char)lookahead;
}
if(wrongState == false)
errorPos = errorPos+(char)' ';
else
wrongState = false;
match(lookahead);
} else if(lookahead == '+' || lookahead == '-') {
erro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}",
"private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }",
"@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput... | [
"0.6684202",
"0.6504488",
"0.6151358",
"0.60652417",
"0.60597587",
"0.6034636",
"0.60109776",
"0.5900952",
"0.5892191",
"0.58766997",
"0.5841467",
"0.57977366",
"0.57908225",
"0.5761418",
"0.5721138",
"0.57054937",
"0.5704213",
"0.5697427",
"0.5662022",
"0.56515455",
"0.56506... | 0.5704287 | 16 |
deal with the digit.And check the lookahead if its digit. | void match(int t) throws IOException {
if (lookahead == t) {
lookahead = System.in.read();
input = input + (char)lookahead;
} else {
throw new Error("syntax error");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}",
"private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }",
"@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput... | [
"0.6684222",
"0.65041286",
"0.6149705",
"0.60649353",
"0.6061188",
"0.6034744",
"0.6011104",
"0.5900415",
"0.58924115",
"0.5876622",
"0.58406",
"0.5797818",
"0.5790562",
"0.5762056",
"0.57207274",
"0.57064486",
"0.57042426",
"0.5703473",
"0.5696916",
"0.5661738",
"0.56517756"... | 0.0 | -1 |
printf the output if no Syntax ERROR. But printf the error if there are errors. | void printPostfix() {
System.out.println(output+"\n");
for(int i = 0; i < errorNum; i++) {
System.out.println("\nThere is an error:\"" + errorList.get(i) + "\" at:");
System.out.println(input);
int n = i;
for(int j = 0; j < errorPos.length(); j++) {
if(errorPos.charAt(j) != '^') {
System.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printErrors() {\r\n\t\tif (this.syntaxError) {\r\n\t\t\tSystem.err.println(\"\\nErrors found running the parser:\");\r\n\t\t\tfor (String error : errors) {\r\n\t\t\t\tSystem.err.println(\"\\t => \" + error);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void printErrorMessage() {\n System.out.p... | [
"0.7198056",
"0.6820216",
"0.65580237",
"0.65553373",
"0.6448083",
"0.64079",
"0.63841844",
"0.6357017",
"0.6324532",
"0.6277108",
"0.62536496",
"0.6185929",
"0.6172956",
"0.6116656",
"0.60432416",
"0.60209185",
"0.5969966",
"0.59513247",
"0.59274685",
"0.5897278",
"0.5892516... | 0.5371862 | 82 |
this condition checks if the subarrays are of length > 0 | private static void sortWrapper(int list[], int leftIndex, int rightIndex) {
if (leftIndex!=rightIndex) {
int midIndex = (leftIndex + rightIndex)/2;
//Sort left
sortWrapper(list, leftIndex, midIndex);
//Sort right
sortWrapper(list, midIndex+1, rightInd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"public boolean hasUnderflow() {\r\n\t\t\treturn (data.size() <= 0);\r\n\t\t}",
"private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n ar... | [
"0.706821",
"0.689389",
"0.68248034",
"0.65287673",
"0.6438967",
"0.6347955",
"0.63163334",
"0.6281935",
"0.62153715",
"0.621499",
"0.61969674",
"0.6159472",
"0.6154665",
"0.6121275",
"0.61106765",
"0.60939294",
"0.60482705",
"0.604148",
"0.6039248",
"0.60330653",
"0.60081536... | 0.0 | -1 |
return teacherService.list(); return teacherService.list(teacher); return teacherService.list(pageBean); | @RequestMapping("list")
List<Teacher> list(Teacher teacher, PageBean pageBean){
return teacherService.list(teacher,pageBean);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ITeacherService {\n\n List<Teacher> getAllTeacher();\n}",
"@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }",
"public void findallstudentservice() {\n... | [
"0.67277944",
"0.6652601",
"0.65990126",
"0.6525002",
"0.6461599",
"0.6366909",
"0.63484323",
"0.6343151",
"0.62964904",
"0.6230035",
"0.6206726",
"0.619215",
"0.61886764",
"0.61879814",
"0.6136389",
"0.60965896",
"0.6084007",
"0.6065308",
"0.6052744",
"0.60428745",
"0.604171... | 0.7954093 | 0 |
Created by Sermilion on 15/02/2017. Project: Listening <a href=" <a href=" | public interface ModelData<A> {
List<A> getPrimaryData();
Map<String, String> getMetaData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void linkPressed(String href) {\r\n String[] s = href.split(\":\");\r\n if (s.length >= 2) {\r\n /* Ex: \"toggle:Window lamp\"\r\n this means we should toggle the Window lamp. */\r\n if (s[0].equals(\"toggle\")) {\r\n ... | [
"0.61162275",
"0.58788824",
"0.5807308",
"0.5707244",
"0.5703681",
"0.56766236",
"0.56169015",
"0.55666524",
"0.55603117",
"0.5558839",
"0.5551768",
"0.5547441",
"0.5464703",
"0.5440323",
"0.54288256",
"0.542752",
"0.5417707",
"0.53743804",
"0.5356211",
"0.53476274",
"0.53436... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if (convertView == null) {
convertView = inflater.inflate(R.layout.list_search_item, null);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66730285",
"0.65698135",
"0.6524193",
"0.64818907",
"0.6477969",
"0.6459897",
"0.64150065",
"0.6378023",
"0.62785167",
"0.6256323",
"0.62391806",
"0.6225302",
"0.6203955",
"0.6196986",
"0.6196986",
"0.6193411",
"0.6188864",
"0.6175446",
"0.61352557",
"0.6129083",
"0.608151... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Filter getFilter() {
if(filter == null)
{
filter=new CustomFilter();
}
return filter;
} | {
"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
protected FilterResults performFiltering(CharSequence constraint) {
FilterResults results = new FilterResults();
if (constraint != null && constraint.length() > 0) {
//CONSTARINT TO UPPER
constraint = constraint.toString().toUpperCase();
... | {
"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
protected void publishResults(CharSequence constraint, FilterResults results) {
rowItems = (List<Product>) results.values;
notifyDataSetChanged();
} | {
"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 |
+0.5 teleport to the center of a block > avoid suffocating | public static void teleport(ServerPlayer player, ServerLevel world, BlockPos targetPos) {
player.teleportTo(world, targetPos.getX() + 0.5, targetPos.getY() + 0.1, targetPos.getZ() + 0.5, player.yRotO, player.xRotO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)\r\n/* 171: */ {\r\n/* 172:193 */ if (par9 < 12) {\r\n/* 173:194 */ return ForgeDirection.OPPOSITES[par5] + par9 & 0xF;\r\n/* 174: */ }\r\n/* 175:196 */ return pa... | [
"0.6668421",
"0.6639431",
"0.64958674",
"0.6267684",
"0.62140924",
"0.619627",
"0.61750525",
"0.61623514",
"0.6126287",
"0.60004514",
"0.5967872",
"0.5964074",
"0.59627575",
"0.595974",
"0.5940142",
"0.5930943",
"0.5923187",
"0.5920014",
"0.58922815",
"0.5887618",
"0.5887618"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getServerBroadcastPort() {
return 10081;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getClientBroadcastPort() {
return 10082;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getConnectionPort() {
return 10083;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Created by YZBbanban on 16/7/21. | public interface IPresenterDownload {
void findDownloadMessage();
void sendDownLoadMessage(DownloadDoc doc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpu... | [
"0.6198023",
"0.60642153",
"0.6050115",
"0.6016394",
"0.5951107",
"0.5951107",
"0.594118",
"0.5912864",
"0.5839768",
"0.5818272",
"0.5789637",
"0.57784826",
"0.576121",
"0.5754079",
"0.57378995",
"0.5735934",
"0.5734229",
"0.57247496",
"0.5723645",
"0.57234114",
"0.57234114",... | 0.0 | -1 |
Inserta un nuevo juego | public boolean insertarNuevoJuego(Juegos juego) {
String metodo="insertarNuevoJuego";
boolean res = false;
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
//gua... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}",
"@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}",
"private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo... | [
"0.74369204",
"0.72363603",
"0.7235082",
"0.7163073",
"0.71303195",
"0.71209824",
"0.7053432",
"0.69889545",
"0.6986787",
"0.6971665",
"0.6908767",
"0.6876474",
"0.6871865",
"0.6821081",
"0.6796276",
"0.6779221",
"0.6776329",
"0.6773178",
"0.67708004",
"0.67691797",
"0.674752... | 0.6411814 | 59 |
Obtiene todos los juegos activos del Casino | public ArrayList getJuegosCasino() {
String metodo = "getJuegosCasino";
ArrayList lista = new ArrayList();
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
lista ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Oficios> buscarActivas();",
"public void cargaJCIdiomas() {\n for (String idioma : lIdiomas) {\n Menus.jCIdioma.addItem(idioma);\n }\n }",
"private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }",
... | [
"0.6230798",
"0.6197751",
"0.60891354",
"0.5929776",
"0.59080803",
"0.5853972",
"0.58337563",
"0.579234",
"0.57913905",
"0.5782438",
"0.57614255",
"0.57594424",
"0.5739934",
"0.5735116",
"0.5721123",
"0.5662531",
"0.5658291",
"0.56511384",
"0.5649613",
"0.5624491",
"0.5622508... | 0.53893363 | 35 |
Busca un juego en la BBDD por codigo. | public Juegos getJuegoPorCodigo(int codigo) {
String metodo = "getJuegoPorCodigo";
Juegos juego = null;
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
juego = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }",
"String getCodi... | [
"0.5472821",
"0.5441756",
"0.5258558",
"0.5187626",
"0.51388484",
"0.51060915",
"0.51060915",
"0.5062147",
"0.50310755",
"0.5024175",
"0.5010735",
"0.5010644",
"0.49824014",
"0.49681434",
"0.49535158",
"0.49418142",
"0.4937305",
"0.4920758",
"0.49157226",
"0.49137908",
"0.489... | 0.0 | -1 |
Busca un juego en la BBDD por nombre. | public Juegos getJuegoPorNombre(String nombre) {
String metodo = "getJuegoPorNombre";
Juegos juego = null;
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
juego... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}",
"private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \")... | [
"0.6144052",
"0.6052098",
"0.5843714",
"0.55268085",
"0.54767174",
"0.5435841",
"0.5421732",
"0.53828335",
"0.537937",
"0.5351935",
"0.53327125",
"0.5321455",
"0.5307606",
"0.5289503",
"0.5235399",
"0.5234674",
"0.5224942",
"0.5215133",
"0.5199495",
"0.5186605",
"0.5181602",
... | 0.0 | -1 |
Sets up the LOGGER for this class using a default configuration. | public static void setupLaTeXLoggers(String filename) throws IOException {
Formatter formatter = new LaTeXLogFormatter();
Handler fileHandler = new FileHandler( filename);
fileHandler.setFormatter(formatter);
LOGGER.addHandler( fileHandler );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeAll\n public static void configureLogger() {\n new SuperStructure(null, null, null, null, null);\n\n Logger.configure(null);\n Logger.start();\n }",
"private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactor... | [
"0.7303654",
"0.7028612",
"0.6849772",
"0.68412125",
"0.68222046",
"0.6804227",
"0.67906624",
"0.67713934",
"0.67190266",
"0.6681296",
"0.6660813",
"0.6635594",
"0.66340476",
"0.66105294",
"0.6580789",
"0.6544263",
"0.6534321",
"0.651764",
"0.6498234",
"0.6492557",
"0.6465065... | 0.0 | -1 |
Prints a description to the statistical process carried out above the results. | public void printPreTestOutput(
double significanceThreshold,
boolean brunnerMunzel,
boolean paired,
int initialRuns,
int maxRuns,
CensoringStrategy cens,
boolean timeseries,
int artefactRepeats,
SetOfComparisons<? extends GeneratorOutput> gens,
ModifiedVarghaDelaney vdmod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}",
"public abstract void description();",
"@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"C... | [
"0.75850165",
"0.69739306",
"0.68711466",
"0.6802948",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6... | 0.0 | -1 |
Returns output describing each option set. | private List<String> describeOptions(
double significanceThreshold,
boolean brunnerMunzel,
boolean paired,
int initialRuns,
int maxRuns,
CensoringStrategy cens,
boolean timeSeries,
int artefactRepeats, SetOfComparisons<? extends GeneratorOutput> gens, ModifiedVarghaDelaney vdmod) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void printAllOptions() {\n\t\tOption op = null;\n\t\tfor (int i = 0; i < options.size(); i++) {\n\t\t\top = options.get(i);\n\t\t\tSystem.out.println(i + \". \" + op.getOptionName() + \":Price \"\n\t\t\t\t\t+ String.format(\"%.2f\", op.getPrice()));\n\t\t}\n\t}",
"public void printOptions() {\n\t\t\n\t... | [
"0.7044403",
"0.6836197",
"0.6722294",
"0.66514736",
"0.6627525",
"0.6586997",
"0.6558239",
"0.6404346",
"0.63907087",
"0.63658655",
"0.6344432",
"0.62969303",
"0.6282447",
"0.62789416",
"0.6272679",
"0.6272137",
"0.62332183",
"0.6140053",
"0.6129521",
"0.61127377",
"0.603427... | 0.58911324 | 27 |
Verifies that the specified name is valid for our service. In this example, we only require that the name is at least four characters. In your application, you can use more complex checks to ensure that usernames, passwords, email addresses, URLs, and other fields have the proper syntax. | public static boolean isValidName(String name) {
if (name == null) {
return false;
}
return name.length() > 3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNameValid(String name) {\n\n }",
"@Test\n public void testIsValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = \"toto\";\n boolean result = service.isValidName(name);\n assertEquals(true, result);\n }",
"public boolean checkName(S... | [
"0.7921179",
"0.76718235",
"0.75716907",
"0.7429845",
"0.7283936",
"0.72704184",
"0.7255382",
"0.7213237",
"0.72116804",
"0.7118933",
"0.71181417",
"0.7083828",
"0.70668733",
"0.7045413",
"0.7005096",
"0.69938505",
"0.696393",
"0.6949358",
"0.694653",
"0.6867807",
"0.68573266... | 0.7464309 | 3 |
POST /costoservicios : Create a new costoServicio. | @PostMapping("/costo-servicios")
@Timed
public ResponseEntity<CostoServicioDTO> createCostoServicio(@RequestBody CostoServicioDTO costoServicioDTO) throws URISyntaxException {
log.debug("REST request to save CostoServicio : {}", costoServicioDTO);
if (costoServicioDTO.getId() != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Servicio insertServicio(String nombre_servicio,\n String descripcion_servicio, \n String nombre_tipo_servicio){\n \n /*Se definen valores para servicio y se agrega a la base de datos*/\n Servicio mi... | [
"0.6634181",
"0.6472724",
"0.6423443",
"0.6331559",
"0.62447506",
"0.6197648",
"0.61244464",
"0.61169016",
"0.59384114",
"0.5913532",
"0.59094983",
"0.58917063",
"0.5838619",
"0.58370274",
"0.5834451",
"0.5825856",
"0.58097416",
"0.57979465",
"0.5759056",
"0.5749277",
"0.5696... | 0.7980531 | 0 |
GET /costoservicios : get all the costoServicios. | @GetMapping("/costo-servicios")
@Timed
public List<CostoServicioDTO> getAllCostoServicios() {
log.debug("REST request to get all CostoServicios");
return costoServicioService.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/general/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosGeneralById(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByTramite_general_id(id);\n// HttpHe... | [
"0.69978",
"0.69797295",
"0.69006205",
"0.68049306",
"0.66102093",
"0.6538866",
"0.6534907",
"0.65223074",
"0.64878994",
"0.64511484",
"0.6430361",
"0.6313089",
"0.6306879",
"0.61952215",
"0.6194219",
"0.61797297",
"0.6117927",
"0.610555",
"0.60347986",
"0.6013707",
"0.600023... | 0.8581269 | 0 |
GET /costoservicios/:id : get the "id" costoServicio. | @GetMapping("/costo-servicios/{id}")
@Timed
public ResponseEntity<CostoServicioDTO> getCostoServicio(@PathVariable Long id) {
log.debug("REST request to get CostoServicio : {}", id);
CostoServicioDTO costoServicioDTO = costoServicioService.findOne(id);
return ResponseUtil.wrapOrNotFound(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/general/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosGeneralById(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByTramite_general_id(id);\n// HttpHe... | [
"0.71817654",
"0.70263344",
"0.69728255",
"0.6941389",
"0.6896565",
"0.6745405",
"0.66877896",
"0.6651125",
"0.6630694",
"0.6607453",
"0.65860134",
"0.65646636",
"0.6493038",
"0.6468858",
"0.63925546",
"0.6375652",
"0.6364555",
"0.63351214",
"0.63191515",
"0.6304395",
"0.6273... | 0.8425222 | 0 |
DELETE /costoservicios/:id : delete the "id" costoServicio. | @DeleteMapping("/costo-servicios/{id}")
@Timed
public ResponseEntity<Void> deleteCostoServicio(@PathVariable Long id) {
log.debug("REST request to delete CostoServicio : {}", id);
costoServicioService.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DeleteMapping(\"/selo-cartaos/{id}\")\n public ResponseEntity<Void> deleteSeloCartao(@PathVariable Long id) {\n log.debug(\"REST request to delete SeloCartao : {}\", id);\n seloCartaoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, ... | [
"0.76351726",
"0.7618672",
"0.7459123",
"0.73029447",
"0.7291028",
"0.7284129",
"0.7276322",
"0.7263606",
"0.723154",
"0.72027546",
"0.7133476",
"0.70978034",
"0.7093471",
"0.7018604",
"0.69759816",
"0.6930785",
"0.69235307",
"0.68960583",
"0.68812805",
"0.68684936",
"0.68681... | 0.88780063 | 0 |
SEARCH /_search/costoservicios?query=:query : search for the costoServicio corresponding to the query. | @GetMapping("/_search/costo-servicios")
@Timed
public List<CostoServicioDTO> searchCostoServicios(@RequestParam String query) {
log.debug("REST request to search CostoServicios for query {}", query);
return costoServicioService.search(query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/_search/selo-cartaos\")\n public List<SeloCartao> searchSeloCartaos(@RequestParam String query) {\n log.debug(\"REST request to search SeloCartaos for query {}\", query);\n return seloCartaoService.search(query);\n }",
"@Override\n @Transactional(readOnly = true)\n public... | [
"0.7242424",
"0.6987763",
"0.68992597",
"0.6633295",
"0.6465831",
"0.640324",
"0.63788253",
"0.6368635",
"0.62687033",
"0.62401503",
"0.6146125",
"0.60731703",
"0.6061036",
"0.6054391",
"0.6034183",
"0.6033962",
"0.60252607",
"0.60062397",
"0.59823674",
"0.59732777",
"0.59480... | 0.85626686 | 0 |
GET /expedientes : get all by expedientes. | @GetMapping("/costo-servicios/expediente/{id}")
@Timed
public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {
log.debug("REST request to get a page of Expedientes");
List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);
// HttpHeaders headers... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(path=\"/expenses/all\")\n\tpublic @ResponseBody Iterable<Expenses> getAllExpenses(){\n\t\treturn expenseRepository.findAll();\n\t}",
"@RequestMapping(value = \"/exhibits\", method = RequestMethod.GET)\n public ResponseEntity<?> getExhibits() {\n logger.debug(messageSource.getMessage(\"contr... | [
"0.66681826",
"0.64079976",
"0.61207825",
"0.60918504",
"0.60801744",
"0.60760474",
"0.6068181",
"0.6057264",
"0.6038803",
"0.60275817",
"0.59966475",
"0.598441",
"0.5980483",
"0.59754175",
"0.5967491",
"0.5966145",
"0.59605205",
"0.5954262",
"0.59514827",
"0.59438235",
"0.59... | 0.6930805 | 0 |
GET /expedientes : get all by expedientes. | @GetMapping("/costo-servicios/migratorio/{id}")
@Timed
public List<CostoServicioDTO> getAllCostosMigratorioById(@PathVariable Long id) {
log.debug("REST request to get a page of Expedientes");
List<CostoServicioDTO> ls = costoServicioService.findByTramite_migratorio_id(id);
// HttpHeaders... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/expediente/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);\n// HttpH... | [
"0.69318426",
"0.66690373",
"0.6407441",
"0.6122163",
"0.6093149",
"0.60809535",
"0.60766363",
"0.6067018",
"0.6058658",
"0.6040166",
"0.602896",
"0.59972334",
"0.5985642",
"0.59823084",
"0.5976954",
"0.5968245",
"0.596554",
"0.59617907",
"0.5954961",
"0.59511214",
"0.5945120... | 0.0 | -1 |
GET /expedientes : get all by expedientes. | @GetMapping("/costo-servicios/general/{id}")
@Timed
public List<CostoServicioDTO> getAllCostosGeneralById(@PathVariable Long id) {
log.debug("REST request to get a page of Expedientes");
List<CostoServicioDTO> ls = costoServicioService.findByTramite_general_id(id);
// HttpHeaders headers ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/expediente/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);\n// HttpH... | [
"0.69312847",
"0.66677046",
"0.6407076",
"0.612186",
"0.6092835",
"0.60801715",
"0.6076631",
"0.6068008",
"0.60584986",
"0.6040113",
"0.6028747",
"0.5998014",
"0.59855086",
"0.59822017",
"0.5976165",
"0.59677637",
"0.596595",
"0.5961539",
"0.59539145",
"0.59504557",
"0.594533... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args)
{
} | {
"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 |
JFormDesigner Component initialization DO NOT MODIFY //GENBEGIN:initComponents | private void initComponents() {
lblHAUF = new JLabel();
jdcHAUF = new JDateChooser();
lblStation = new JLabel();
cmbStation = new JComboBox<>();
lblRoom = new JLabel();
cmbRoom = new JComboBox<>();
cbKZP = new JCheckBox();
//======== this ========
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}",
"public FormCompra() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Design... | [
"0.7980227",
"0.79100174",
"0.78056455",
"0.77578115",
"0.766456",
"0.7656488",
"0.76562065",
"0.7628607",
"0.76191956",
"0.75570554",
"0.75570554",
"0.75570554",
"0.75432783",
"0.75121176",
"0.748563",
"0.7464314",
"0.7459073",
"0.7452996",
"0.7452996",
"0.74487823",
"0.7432... | 0.74882853 | 14 |
Will write into the specified file the dot representation of the graf | public void toDotFile(String fileName, int index) throws IOException {
File file = new File(fileName);
FileWriter fWriter = new FileWriter(file);
fWriter.write(toDotString(index));
fWriter.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeDot(String filename)\t{\n\t\ttry {\n\t\t\t// PrintWriter(FileWriter) will write output to a file\n\t\t\tPrintWriter output = new PrintWriter(new FileWriter(filename));\n\n\t\t\t// Set up the dot graph and properties\n\t\t\toutput.println(\"digraph BST {\");\n\t\t\toutput.println(\"node [shape=reco... | [
"0.74791884",
"0.70052755",
"0.6843451",
"0.6757902",
"0.6641019",
"0.6593625",
"0.6358092",
"0.62732536",
"0.61566883",
"0.6131157",
"0.6110705",
"0.5987704",
"0.59795076",
"0.59425026",
"0.5914803",
"0.5897165",
"0.58838457",
"0.5882449",
"0.5873323",
"0.5841873",
"0.582905... | 0.6087252 | 11 |
TODO: move to ImageUtils | public static BufferedImage autoCrop(BufferedImage source, float threshold) {
int rgb;
int backlo;
int backhi;
int width = source.getWidth();
int height = source.getHeight();
int startx = width;
int starty = height;
int destx = 0;
int desty = 0;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat... | [
"0.74654204",
"0.7222431",
"0.706617",
"0.6795442",
"0.6638919",
"0.66301066",
"0.66301066",
"0.66301066",
"0.65855193",
"0.6549164",
"0.6548956",
"0.64878243",
"0.6415942",
"0.6358099",
"0.63228387",
"0.63228387",
"0.63186383",
"0.6300099",
"0.62990004",
"0.62937754",
"0.625... | 0.0 | -1 |
TODO: move to ImageUtils | public static byte[] toJPEG(BufferedImage source, float quality) throws Exception {
ImageWriter iw = ImageIO.getImageWritersByFormatName("JPEG").next();
ImageWriteParam iwp = iw.getDefaultWriteParam();
iwp.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
iwp.setCompressionQuality(quali... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat... | [
"0.7463209",
"0.7221478",
"0.7065686",
"0.67959416",
"0.663788",
"0.66262925",
"0.66262925",
"0.66262925",
"0.6584873",
"0.6550359",
"0.65476155",
"0.6487101",
"0.64169884",
"0.6356059",
"0.63219476",
"0.63219476",
"0.631869",
"0.6299891",
"0.6298765",
"0.629197",
"0.6248885"... | 0.0 | -1 |
TODO: move to ImageUtils | public static BufferedImage brighten(BufferedImage image) {
short brighten[] = new short[256];
for (int i = 0; i < 256; i++) {
short pixelValue = (short) (Math.sqrt((double) i * 255.0));
if (pixelValue > 255) {
pixelValue = 255;
} else if (pixelValue <... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat... | [
"0.7463209",
"0.7221478",
"0.7065686",
"0.67959416",
"0.663788",
"0.66262925",
"0.66262925",
"0.66262925",
"0.6584873",
"0.6550359",
"0.65476155",
"0.6487101",
"0.64169884",
"0.6356059",
"0.63219476",
"0.63219476",
"0.631869",
"0.6299891",
"0.6298765",
"0.629197",
"0.6248885"... | 0.0 | -1 |
TODO: move to ImageUtils | public static ImageIcon scaleAsIcon(Image img, int height) {
if (img == null) {
return null;
}
return new ImageIcon(img.getScaledInstance(
-1, height, Image.SCALE_AREA_AVERAGING));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat... | [
"0.7463209",
"0.7221478",
"0.7065686",
"0.67959416",
"0.663788",
"0.66262925",
"0.66262925",
"0.66262925",
"0.6584873",
"0.6550359",
"0.65476155",
"0.6487101",
"0.64169884",
"0.6356059",
"0.63219476",
"0.63219476",
"0.631869",
"0.6299891",
"0.6298765",
"0.629197",
"0.6248885"... | 0.0 | -1 |
TODO: move to ImageUtils | public static void createImageDirs(File base) {
String dirs[] = new String[]{
"0", "1", "2", "3", "4", "5", "6", "7",
"8", "9", "a", "b", "c", "d", "e", "f"};
for (String dir : dirs) {
File subdir = new File(base, dir);
if (!subdir.exists()) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat... | [
"0.74654204",
"0.7222431",
"0.706617",
"0.6795442",
"0.6638919",
"0.66301066",
"0.66301066",
"0.66301066",
"0.65855193",
"0.6549164",
"0.6548956",
"0.64878243",
"0.6415942",
"0.6358099",
"0.63228387",
"0.63228387",
"0.63186383",
"0.6300099",
"0.62990004",
"0.62937754",
"0.625... | 0.0 | -1 |
TODO: move to FileUtils | public static byte[] bytesFromFile(File file) throws Exception {
if (!file.exists()) {
return null;
}
FileImageInputStream in = null;
try {
byte bytes[] = new byte[(int) file.length()];
in = new FileImageInputStream(file);
in.read(bytes);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FileUtil() {}",
"String prepareFile();",
"private FileUtil() {\n \t\tsuper();\n \t}",
"private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<in... | [
"0.6474779",
"0.61508805",
"0.58338726",
"0.5811731",
"0.57686603",
"0.57686603",
"0.57686603",
"0.57407624",
"0.5656109",
"0.5656109",
"0.5647615",
"0.55918086",
"0.55127054",
"0.55038774",
"0.5488318",
"0.5488318",
"0.5486503",
"0.5482433",
"0.5431334",
"0.5431334",
"0.5399... | 0.0 | -1 |
TODO: move to FileUtils | public static void bytesToFile(byte[] bytes, File file) throws Exception {
FileOutputStream out = null;
if (bytes != null) {
try {
out = new FileOutputStream(file);
out.write(bytes);
} finally {
if (out != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FileUtil() {}",
"String prepareFile();",
"private FileUtil() {\n \t\tsuper();\n \t}",
"private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<in... | [
"0.6474779",
"0.61508805",
"0.58338726",
"0.5811731",
"0.57686603",
"0.57686603",
"0.57686603",
"0.57407624",
"0.5656109",
"0.5656109",
"0.5647615",
"0.55918086",
"0.55127054",
"0.55038774",
"0.5488318",
"0.5488318",
"0.5486503",
"0.5482433",
"0.5431334",
"0.5431334",
"0.5399... | 0.0 | -1 |
TODO: move to GuiUtils | public static void autoComplete(final JTextField field, final String column) {
field.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
String low = field.getText().toLowerCase();
if (low.length() == 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Gui getGui();",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
"@Override\n public void initGUI() {\n\n }",
"public void buildGui() {\n\t}",
"public Object getGuiObject();",
"GuiView g... | [
"0.6827287",
"0.6715209",
"0.6715209",
"0.66977435",
"0.6506501",
"0.64873725",
"0.6458213",
"0.64131755",
"0.6346175",
"0.633229",
"0.6318676",
"0.63143283",
"0.6280053",
"0.62711024",
"0.622929",
"0.62225795",
"0.6194126",
"0.6185091",
"0.6116643",
"0.6116643",
"0.6116643",... | 0.0 | -1 |
Returns the value of the 'Directory Path' attribute. | String getDirectoryPath(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDirectory() {\n return directoryProperty().get();\n }",
"public StringProperty directoryProperty() {\n return directory;\n }",
"public File getDirectoryValue();",
"public String directory () {\n\t\treturn directory;\n\t}",
"public String getDir() {\n return this.... | [
"0.7592753",
"0.7178265",
"0.69933033",
"0.692382",
"0.6696161",
"0.665056",
"0.6633352",
"0.657804",
"0.6492566",
"0.647678",
"0.647678",
"0.6449441",
"0.6443648",
"0.6438927",
"0.6438927",
"0.6438927",
"0.6424722",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"... | 0.6537856 | 8 |
Returns the value of the 'Docker Repository Name' attribute. | String getDockerRepositoryName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRepositoryName() {\n return this.repositoryName;\n }",
"public @Nullable String getRepositoryName() {\n return this.repositoryName;\n }",
"String getRepositoryName(URL repositoryUrl);",
"public static String getRepositoryName(@NotNull JSONObject jsonObject) {\n ret... | [
"0.7365171",
"0.72528136",
"0.6724674",
"0.6707811",
"0.66671723",
"0.6498295",
"0.6320132",
"0.6286415",
"0.6286415",
"0.6239886",
"0.6165532",
"0.59892607",
"0.5949627",
"0.5932108",
"0.5918214",
"0.5866578",
"0.58199066",
"0.5816818",
"0.5816818",
"0.57844406",
"0.5763132"... | 0.8269988 | 0 |
Returns the value of the 'Monitoring' attribute. | boolean isMonitoring(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMonitoringState() {\n StringBuilder sb = new StringBuilder();\n sb.append(queueManager.getMonitoringInfo());\n return sb.toString();\n }",
"public String getMetric() {\n return this.metric;\n }",
"public String getMonitorName() {\n return this.monitorNa... | [
"0.6592754",
"0.6424773",
"0.64139307",
"0.63707304",
"0.63569975",
"0.6322691",
"0.63101923",
"0.6247717",
"0.6120282",
"0.6099463",
"0.60367507",
"0.58804786",
"0.5861664",
"0.58480954",
"0.58247894",
"0.5812149",
"0.58118904",
"0.5797331",
"0.57955503",
"0.577613",
"0.5704... | 0.6002334 | 12 |
Returns the value of the 'Kubernetes Service Type' attribute. | String getKubernetesServiceType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTypeOfService(){\n\t\treturn typeOfService;\n\t}",
"public CodeableConcept serviceType() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_SERVICE_TYPE);\n }",
"public Integer getServiceType() {\r\n return serviceType;\r\n }",
"public String getTypeOf... | [
"0.74107915",
"0.7325474",
"0.6990525",
"0.6980961",
"0.66832006",
"0.6319702",
"0.62911695",
"0.6221715",
"0.6221715",
"0.6208362",
"0.61907786",
"0.6189631",
"0.61353135",
"0.61282545",
"0.6120153",
"0.6120153",
"0.6120153",
"0.6120153",
"0.6120153",
"0.61130154",
"0.611301... | 0.72906053 | 2 |
Creates new form datakontrak | public datakontrak() {
initComponents();
this.setLocationRelativeTo(this);
tb_kontrak.changeSelection(0, 0, true, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"FORM createFORM();",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulari... | [
"0.6831663",
"0.6829848",
"0.6243079",
"0.61917603",
"0.6012569",
"0.6004254",
"0.58357215",
"0.5833715",
"0.5803437",
"0.5790002",
"0.5776304",
"0.5770203",
"0.57595885",
"0.5758022",
"0.5682801",
"0.5675269",
"0.56732357",
"0.5641586",
"0.5640502",
"0.5639082",
"0.55858904"... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
petani = new javax.swing.JComboBox<>();
luas = new javax.swing.JTextField();
bibit = new javax.swing.JTextField();
pupuk = 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.7318948",
"0.7290426",
"0.7290426",
"0.7290426",
"0.7284922",
"0.7247965",
"0.7213206",
"0.72080696",
"0.7195916",
"0.7189941",
"0.71835536",
"0.71579427",
"0.7147217",
"0.70927703",
"0.7080282",
"0.7055882",
"0.6987108",
"0.69770193",
"0.6954159",
"0.69529283",
"0.6944756... | 0.0 | -1 |
Connect to JMX service on given url and init JMXClient | public void connect(String jmxServiceUrl) throws IOException {
log.debug("Creating an RMI connector client and " +
"connect it to the RMI connector server " + jmxServiceUrl);
url = new JMXServiceURL(jmxServiceUrl);
jmxc = JMXConnectorFactory.connect(url, null);
mbsc = jmxc.getMBeanServerCon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void connect(JMXServiceURL url, Map<String, Object> env) throws IOException;",
"private void connect() throws IOException\n {\n JMXServiceURL jmxUrl = new JMXServiceURL(String.format(fmtUrl, host, port));\n JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl, null);\n m... | [
"0.74112934",
"0.66995716",
"0.6501015",
"0.6377807",
"0.63639927",
"0.62074655",
"0.60814756",
"0.5898369",
"0.56781185",
"0.56061584",
"0.55936694",
"0.5539327",
"0.54743063",
"0.54695165",
"0.53661287",
"0.5338386",
"0.5337971",
"0.5337624",
"0.5330641",
"0.52805376",
"0.5... | 0.7031217 | 1 |
Create MBean proxies for EngineMetrics and StatementMetrics MBeans | public void createMBeanProxies() {
createMBeanProxy(EngineMetricMBean.class, getObjectName(EngineMetric.class));
createMBeanProxy(StatementMetricMBean.class, getObjectName(StatementMetric.class));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerJMX() {\n Hashtable<String, String> tb = new Hashtable<String, String>();\n tb.put(\"type\", \"statistics\");\n tb.put(\"sessionFactory\", \"HibernateSessionFactory\");\n try {\n ObjectName on = new ObjectName(\"hibernate\", tb);\n MBeanServer m... | [
"0.6341515",
"0.6215807",
"0.6206429",
"0.619411",
"0.6175335",
"0.61091393",
"0.6067462",
"0.604615",
"0.60293275",
"0.5962319",
"0.5865495",
"0.58580506",
"0.5848217",
"0.580899",
"0.58038884",
"0.5799099",
"0.57567",
"0.5749304",
"0.5731933",
"0.5701543",
"0.5687096",
"0... | 0.80784774 | 0 |
Create MBean proxy for given MBean class with given object name and add notification listener to it | private void createMBeanProxy(Class<? extends MBeanInf> mbeanClass, String objectName) {
ObjectName mbeanName = null;
try {
mbeanName = new ObjectName(objectName);
} catch (MalformedObjectNameException e) {
log.error("Unable to create object name from " + objectName, e);
return;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createMBeanNotificationListener(ObjectName mBeanName, NotificationListener listener) {\n log.debug(\"Adding notification listener for JMXClient \" + url.getURLPath());\n try {\n mbsc.addNotificationListener(mBeanName, listener, null, null);\n } catch (InstanceNotFoundException | IOExcept... | [
"0.6882657",
"0.6486824",
"0.5853364",
"0.5822897",
"0.58162355",
"0.5707487",
"0.5652486",
"0.5521532",
"0.5379514",
"0.53559136",
"0.5243329",
"0.5186728",
"0.51293474",
"0.51232",
"0.50881577",
"0.50823116",
"0.50780004",
"0.5074933",
"0.50198567",
"0.50095624",
"0.5008197... | 0.80292654 | 0 |
Add notification listener to given MBean name | private void createMBeanNotificationListener(ObjectName mBeanName, NotificationListener listener) {
log.debug("Adding notification listener for JMXClient " + url.getURLPath());
try {
mbsc.addNotificationListener(mBeanName, listener, null, null);
} catch (InstanceNotFoundException | IOException e) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addNotificationListener(ObjectName name,\r\n ObjectName listener,\r\n NotificationFilter filter,\r\n Object handback) throws InstanceNotFoundException, IOException {\r\n if (logger.isLoggab... | [
"0.6943929",
"0.6890046",
"0.60388726",
"0.5814422",
"0.5782097",
"0.5752929",
"0.57156116",
"0.56976116",
"0.5621879",
"0.5619322",
"0.55783534",
"0.5542098",
"0.5538501",
"0.5531528",
"0.55221665",
"0.54450154",
"0.5427079",
"0.5416646",
"0.5407022",
"0.5402845",
"0.540092"... | 0.77304316 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.