query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
The product price on which the fee estimate is based. | public String getIdentifier() {
return identifier;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getPriceActual();",
"public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}",
"BigDecimal getPrice();",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n ... | [
"0.7725587",
"0.76910806",
"0.7627757",
"0.7607901",
"0.7600313",
"0.7568124",
"0.7555019",
"0.75458896",
"0.754355",
"0.75297374",
"0.75297374",
"0.75223917",
"0.75055826",
"0.7482343",
"0.7482343",
"0.7482343",
"0.7482343",
"0.7482343",
"0.7477469",
"0.7459445",
"0.7438672"... | 0.0 | -1 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.7885466",
"0.75500387",
"0.7497769"
] | 0.0 | -1 |
Load the preferences from an XML resource | @Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
setPreferencesFromResource(R.xml.pref_filters, rootKey);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadPreferences() {\n\t\tXSharedPreferences prefApps = new XSharedPreferences(PACKAGE_NAME);\n\t\tprefApps.makeWorldReadable();\n\n\t\tthis.debugMode = prefApps.getBoolean(\"waze_audio_emphasis_debug\", false);\n }",
"void loadPreferences() throws OntimizeJEERuntimeException;",
"private void lo... | [
"0.6325364",
"0.6273263",
"0.6254157",
"0.62462354",
"0.6165279",
"0.60642046",
"0.60406",
"0.6015898",
"0.59732085",
"0.5951365",
"0.58436936",
"0.5820871",
"0.57963324",
"0.5778513",
"0.57635826",
"0.5751787",
"0.5713918",
"0.5660983",
"0.5633989",
"0.56185824",
"0.56013775... | 0.52861714 | 41 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = super.onCreateView(inflater,container,savedInstanceState);
mListener.setTitleName(getString(R.string.title_filters));
mListener.changeFloatingButtonDone();
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.67412907",
"0.6724716",
"0.6723187",
"0.670014",
"0.66930395",
"0.668976",
"0.66880935",
"0.66859615",
"0.66779804",
"0.6676099",
"0.666739",
"0.666672",
"0.66664",
"0.66621804",
"0.66547215",
"0.6650026",
"0.6644537",
"0.6640096",
"0.66391146",
"0.6635195",
"0.6625797",
... | 0.0 | -1 |
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnFiltersFragmentInteractionListener {
void changeFloatingButtonDone();
void setTitleName(String name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public int... | [
"0.73235685",
"0.720846",
"0.71351564",
"0.71232235",
"0.71222746",
"0.70140475",
"0.69755626",
"0.69755626",
"0.69755626",
"0.69729954",
"0.6966197",
"0.696411",
"0.6959307",
"0.6952445",
"0.6942727",
"0.6933436",
"0.6929703",
"0.6927678",
"0.6921319",
"0.69094676",
"0.69028... | 0.0 | -1 |
The constructor with basic setting with loading the driver. | public MySQLMariaDBConnector(
String url, String port, String database, String username, String password
) {
this.URL = url;
this.PORT = port;
this.DATABASE = database;
this.USERNAME = username;
this.PASSWORD = password;
this.connection = null;
this.statement = null;
this.prepared = null;
this.resultSet = null;
this.loadDriver();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Driver() {\n setupFiles();\n }",
"public void initializeDriver() {\n }",
"private void initialize() {\n if (driver == null)\n createNewDriverInstance();\n }",
"private Driver() {\n\n }",
"public void initialization() {\n\t\t\t\n\t\t if(prop.getProperty(\"brow... | [
"0.77642703",
"0.73494965",
"0.72224563",
"0.70413077",
"0.70199335",
"0.7006621",
"0.6891626",
"0.68730134",
"0.6850723",
"0.68036973",
"0.679381",
"0.6792178",
"0.6783423",
"0.67642784",
"0.674704",
"0.6667481",
"0.66576326",
"0.6657367",
"0.66208845",
"0.6618229",
"0.66165... | 0.0 | -1 |
Return true when the driver is loaded successfully but false otherwise. | private boolean loadDriver() {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch(ClassNotFoundException ex) {
Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDriverInitialized() {\r\n\t\tif (driver == null)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"public static boolean loadDriver() {\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(errorM... | [
"0.77530545",
"0.7424538",
"0.6882566",
"0.6642095",
"0.65225977",
"0.6438164",
"0.6435179",
"0.6257732",
"0.6204062",
"0.614958",
"0.60934734",
"0.6072582",
"0.6062523",
"0.59288466",
"0.5856472",
"0.58443016",
"0.58188874",
"0.5816323",
"0.5786499",
"0.5771564",
"0.57569087... | 0.7101821 | 2 |
Return true when the connection is made successfully but false otherwise. | protected boolean connect() {
try {
String metaData = "";
metaData += "jdbc:mysql://";
metaData += this.URL + ":";
metaData += this.PORT + "/";
metaData += this.DATABASE;
this.connection = DriverManager.getConnection(metaData, this.USERNAME, this.PASSWORD
);
} catch(SQLException ex) {
Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);
System.exit(1);
}
return this.connection != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = ... | [
"0.73773164",
"0.71546125",
"0.71546125",
"0.713256",
"0.7115744",
"0.704577",
"0.70222366",
"0.69891936",
"0.6979647",
"0.6900496",
"0.68960345",
"0.68791926",
"0.686585",
"0.68506545",
"0.68256664",
"0.68256664",
"0.68256664",
"0.68256664",
"0.68256664",
"0.68256664",
"0.68... | 0.0 | -1 |
Return true when the connection is closed successfully but false otherwise. | protected boolean close() {
try {
if(this.connection != null) {
this.connection.close();
this.connection = null;
}
if(this.statement != null) {
this.statement.close();
this.statement = null;
}
if(this.prepared != null) {
this.prepared.close();
this.prepared = null;
}
if(this.resultSet != null) {
this.resultSet.close();
this.resultSet = null;
}
} catch(SQLException ex) {
Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean close() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tboolean success = true;\t\t// holds whether or not connection was closed successfully\n\t\t\n\t\t// try to close the connection\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\tsuccess = false;\n\t\t\... | [
"0.7696658",
"0.7565504",
"0.7516908",
"0.71971875",
"0.71568185",
"0.69745153",
"0.6897062",
"0.6753949",
"0.67456436",
"0.67299",
"0.66968715",
"0.6650585",
"0.6614801",
"0.65921676",
"0.6590267",
"0.65884787",
"0.65845853",
"0.6583638",
"0.6579892",
"0.6548473",
"0.6542157... | 0.6141913 | 65 |
Checks connectivity with the database server. | protected synchronized boolean checkConnectivity() {
return this.connect();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void CheckConnection() {\n\t\tconn = SqlConnection.DbConnector();\n\t\tif (conn == null) {\n\t\t\tSystem.out.println(\"Connection Not Successful\");\n\t\t\tSystem.exit(1);\n\t\t} else {\n\t\t\tSystem.out.println(\"Connection Successful\");\n\t\t}\n\t}",
"public static boolean testConn() {\r\n\t\tboolean b... | [
"0.7823843",
"0.736325",
"0.728299",
"0.71212727",
"0.7097336",
"0.7003018",
"0.6866955",
"0.68627393",
"0.68256104",
"0.68186104",
"0.67707974",
"0.67251915",
"0.655093",
"0.6531209",
"0.65246576",
"0.6498044",
"0.6485393",
"0.6432079",
"0.6425451",
"0.64005655",
"0.635054",... | 0.6265884 | 26 |
Send select query to the server and the ResultSet must be closed outside of an instance of this class. | protected synchronized ResultSet pureSQLSelect(String query) {
if(this.connect()) {
try {
this.statement = this.connection.createStatement();
this.resultSet = this.statement.executeQuery(query);
} catch(SQLException ex) {
Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);
this.resultSet = null;
}
}
return this.resultSet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n } \n }",
"private void sendQuery(String sqlQuery) {\n... | [
"0.6897558",
"0.6876091",
"0.66229355",
"0.6383686",
"0.6154377",
"0.6010852",
"0.59942144",
"0.5929682",
"0.592125",
"0.59145266",
"0.585517",
"0.5853191",
"0.5796507",
"0.5731058",
"0.5725821",
"0.56985813",
"0.5694355",
"0.5676206",
"0.5663904",
"0.5650039",
"0.5649771",
... | 0.58010674 | 12 |
Send update query to the server and close the connection after. | protected synchronized void pureSQLUpdate(String query) {
if(this.connect()) {
try {
this.statement = this.connection.createStatement();
this.statement.executeUpdate(query);
} catch(SQLException ex) {
Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);
} finally {
this.close();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update(String query) {\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tst.executeUpdate(query);\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}",
"private int sendUpdate(String sqlQuery) {\n ... | [
"0.68734086",
"0.6711188",
"0.6575774",
"0.6425602",
"0.63751435",
"0.6347234",
"0.63287354",
"0.62964725",
"0.6196486",
"0.61948025",
"0.6134256",
"0.6131326",
"0.609867",
"0.6027296",
"0.601065",
"0.5999381",
"0.59375215",
"0.59352726",
"0.5930439",
"0.5924",
"0.592263",
... | 0.6303301 | 7 |
Send insert query to the server and close the connection after. | protected synchronized void pureSQLInsert(String query) {
if(this.connect()) {
try {
this.statement = this.connection.createStatement();
this.statement.executeUpdate(query);
} catch(SQLException ex) {
Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);
} finally {
this.close();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"public void insert(){\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n \n ... | [
"0.6394359",
"0.61771005",
"0.6098301",
"0.6097429",
"0.6092929",
"0.60863435",
"0.60672176",
"0.5993047",
"0.5991295",
"0.5943948",
"0.58745587",
"0.582388",
"0.58202773",
"0.5812931",
"0.580132",
"0.57879996",
"0.57287294",
"0.5710046",
"0.56897634",
"0.5684047",
"0.5671277... | 0.6102746 | 2 |
Provides synchronous access to DesignateService operations on the OpenStack designate API. | @RequestFilters(AuthenticateRequest.class)
@Consumes(MediaType.APPLICATION_JSON)
public interface SynchronizeApi {
/**
* Synchronize all domains
*/
@Named("Synchronize:Domain")
@POST
@Path("/domains/sync")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Fallback(NullOnNotFoundOr404.class)
void synchronizeAllDomain();
/**
* Synchronize one domain
*/
@Named("Synchronize:oneDomain")
@POST
@Path("/domains/{domainId}/sync")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Fallback(NullOnNotFoundOr404.class)
void synchronizeOneDomain(@PathParam("domainId") String domainId);
/**
* Synchronize one record
*/
@Named("Synchronize:record")
@POST
@Path("/domains/{domainId}/records/{recordId}/sync")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Fallback(NullOnNotFoundOr404.class)
void synchronizeOneRecord(@PathParam("domainId") String domainId, @PathParam("recordId") String recordId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Fog_Services createFog_Services();",
"public interface ContinuingEducationService extends EducatonCommonService<ContinuingEducationModel>\r\n{\r\n\tpublic ContinuingEducationModel getByPK(ContinuingEducationPKModel pk) throws AAException;\r\n\t\t\r\n\t/**\r\n\t * Check all the continuing educations in specific c... | [
"0.5748013",
"0.56889033",
"0.5661984",
"0.5494401",
"0.54885113",
"0.54639244",
"0.54552305",
"0.538776",
"0.5339474",
"0.53357613",
"0.5306396",
"0.52692705",
"0.5257185",
"0.5224869",
"0.5213874",
"0.52093697",
"0.5204397",
"0.52042913",
"0.52034533",
"0.5200053",
"0.51939... | 0.0 | -1 |
/ 15: / 16: | public void setMappings(Properties mappings)
/* 17: */ {
/* 18: 70 */ CollectionUtils.mergePropertiesIntoMap(mappings, this.urlMap);
/* 19: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int method_2436() {\r\n return 16;\r\n }",
"@Override\n\tpublic void challenge16() {\n\n\t}",
"void mo1501h();",
"void mo1506m();",
"@Override\n\tpublic void challenge15() {\n\n\t}",
"void mo1507n();",
"C1458cs mo7613iS();",
"public void mo21783H() {\n }",
"static void viteza(int d... | [
"0.5682014",
"0.56789243",
"0.5443412",
"0.54357874",
"0.54238033",
"0.5420656",
"0.5242471",
"0.51672655",
"0.5151734",
"0.51323754",
"0.5125118",
"0.5124536",
"0.5118519",
"0.50876653",
"0.50836897",
"0.5061641",
"0.5046952",
"0.50042284",
"0.4991986",
"0.49875548",
"0.4973... | 0.0 | -1 |
/ 20: / 21: | public void setUrlMap(Map<String, ?> urlMap)
/* 22: */ {
/* 23: 82 */ this.urlMap.putAll(urlMap);
/* 24: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void kk12() {\n\n\t}",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo21877s() {\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public static void listing5_16() {\n }",
"public void mo2470d() {\n }",
"public void mo2... | [
"0.5517648",
"0.5480331",
"0.5331697",
"0.525187",
"0.5165448",
"0.51332366",
"0.51107424",
"0.50800484",
"0.5050716",
"0.5046771",
"0.5040776",
"0.50369644",
"0.5036305",
"0.5034454",
"0.5028616",
"0.50210226",
"0.5005136",
"0.49951705",
"0.49890035",
"0.498509",
"0.49841073... | 0.0 | -1 |
/ 25: / 26: | public Map<String, ?> getUrlMap()
/* 27: */ {
/* 28: 93 */ return this.urlMap;
/* 29: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo2476b() {\n Collections.reverse(mo2625k());\n }",
"private void kk12() {\n\n\t}",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 *... | [
"0.5910141",
"0.58280075",
"0.5712075",
"0.5649909",
"0.5626392",
"0.55814916",
"0.5581042",
"0.5537394",
"0.55363303",
"0.5520437",
"0.5487419",
"0.5446118",
"0.542106",
"0.540228",
"0.539165",
"0.53765297",
"0.53495044",
"0.53390557",
"0.5320572",
"0.5317091",
"0.5311092",
... | 0.0 | -1 |
/ 30: / 31: | public void initApplicationContext()
/* 32: */ throws BeansException
/* 33: */ {
/* 34:103 */ super.initApplicationContext();
/* 35:104 */ registerHandlers(this.urlMap);
/* 36: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Period mo20733e();",
"private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interv... | [
"0.5811478",
"0.54071677",
"0.5296445",
"0.5292185",
"0.5188544",
"0.51846635",
"0.5079204",
"0.5078107",
"0.5058056",
"0.50123006",
"0.50060886",
"0.5000706",
"0.49461797",
"0.49355474",
"0.49200195",
"0.49180463",
"0.48976237",
"0.48931977",
"0.48887938",
"0.48840135",
"0.4... | 0.0 | -1 |
/ 37: / 38: | protected void registerHandlers(Map<String, Object> urlMap)
/* 39: */ throws BeansException
/* 40: */ {
/* 41:114 */ if (urlMap.isEmpty()) {
/* 42:115 */ this.logger.warn("Neither 'urlMap' nor 'mappings' set on SimpleUrlHandlerMapping");
/* 43: */ } else {
/* 44:118 */ for (Map.Entry<String, Object> entry : urlMap.entrySet())
/* 45: */ {
/* 46:119 */ String url = (String)entry.getKey();
/* 47:120 */ Object handler = entry.getValue();
/* 48:122 */ if (!url.startsWith("/")) {
/* 49:123 */ url = "/" + url;
/* 50: */ }
/* 51:126 */ if ((handler instanceof String)) {
/* 52:127 */ handler = ((String)handler).trim();
/* 53: */ }
/* 54:129 */ registerHandler(url, handler);
/* 55: */ }
/* 56: */ }
/* 57: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void keyLeft();",
"@Override\n\tpublic void arrowInput(int keyCode) {\n\t\t\n\t}",
"void keyHome();",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\r\n\t\tkey = e.getKeyCode();\r\n\t\t\r\n\t\t//up arrow\r\n\t\tif (key == KeyEvent.VK_UP) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn = (\"up\");\r\n\t\... | [
"0.6058723",
"0.60572654",
"0.60206187",
"0.60166895",
"0.5856919",
"0.58431023",
"0.5803421",
"0.5791283",
"0.5791283",
"0.5769089",
"0.5763379",
"0.57580495",
"0.57580495",
"0.5749001",
"0.57311773",
"0.57227516",
"0.57217073",
"0.57159543",
"0.56755835",
"0.56413704",
"0.5... | 0.0 | -1 |
read the content of excel | public List<String> readSearchUserName( InputStream is ) throws ExcelImportException
{
List<String> content = new ArrayList<String>();
openFirstSheetInWorkBook(is);
int rowNum = (isOldFormat ? sheet : xsheet).getLastRowNum();
for( int i = 1; i <= rowNum; i++ )
{
String name = isOldFormat ? getCellValueByIndex(sheet.getRow(i), 0) : getCellValueByIndex(xsheet.getRow(i), 0);
String idNumer = isOldFormat ? getCellValueByIndex(sheet.getRow(i), 1) : getCellValueByIndex(xsheet.getRow(i), 1);
if (!name.equals("")) {
content.add(name);
// if (idNumer.equals("")) {
// throw new ExcelImportException("第" + (i + 1) + "行" + "身份证号码为空" + "或不支持的数据格式");
// }
content.add(idNumer);
}
}
if (content.size() > 3000) {
throw new ExcelImportException("由于查询速度和系统的限制,比对人员数量不允许超过1500。");
}
return content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String read_XL_Data(String path,String sheet,int row,int cell) throws EncryptedDocumentException, FileNotFoundException, IOException \r\n{\r\n\tString data=\"\";\r\n\r\n\tWorkbook wb = WorkbookFactory.create(new FileInputStream(path));\r\n\tdata=wb.getSheet(sheet).getRow(row).getCell(cell).toString();\r\n\... | [
"0.717038",
"0.6976932",
"0.69147456",
"0.68373984",
"0.6827042",
"0.6615101",
"0.66070324",
"0.66003615",
"0.65678024",
"0.6497148",
"0.64892524",
"0.6456071",
"0.6407362",
"0.63889766",
"0.63644487",
"0.62690717",
"0.62669164",
"0.62648165",
"0.6263273",
"0.62427604",
"0.62... | 0.0 | -1 |
Creates new form TENDER | public CLIENTORDER() {
initComponents();
ModelLogin cl = new ModelLogin();
ModelCO mc = new ModelCO();
mc.statusComboo(jComboBox_ClientId);
mc.statusComboo1(jComboBox_LPRno);
mc.statusComboo2(jComboBox2);
this.setIconImage(ic);
this.setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"p... | [
"0.7040921",
"0.68932676",
"0.64234436",
"0.6336699",
"0.6141265",
"0.6128102",
"0.6120963",
"0.608728",
"0.6079545",
"0.6057857",
"0.6036772",
"0.5967792",
"0.5965428",
"0.5956117",
"0.5867089",
"0.5827413",
"0.5818169",
"0.5795067",
"0.57844424",
"0.5770922",
"0.5770476",
... | 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() {
jLabel2 = new javax.swing.JLabel();
jButton12 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
jLabel4 = new javax.swing.JLabel();
jButton10 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();
jButton7 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jButton9 = new javax.swing.JButton();
jButton11 = new javax.swing.JButton();
jButton13 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
Client_Name = new javax.swing.JLabel();
jLabel22 = new javax.swing.JLabel();
jLabel23 = new javax.swing.JLabel();
jLabel24 = new javax.swing.JLabel();
jButton20 = new javax.swing.JButton();
jLabel26 = new javax.swing.JLabel();
jLabel28 = new javax.swing.JLabel();
jComboBox_LPRno = new javax.swing.JComboBox<>();
status = new javax.swing.JComboBox<>();
jComboBox_ClientId = new javax.swing.JComboBox<>();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jButton16 = new javax.swing.JButton();
jButton17 = new javax.swing.JButton();
jButton18 = new javax.swing.JButton();
jLabel30 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
jButton14 = new javax.swing.JButton();
jButton19 = new javax.swing.JButton();
Quotation_No = new javax.swing.JLabel();
LPO_Number = new javax.swing.JTextField();
Order_Address = new javax.swing.JTextField();
Order_BudgetCode = new javax.swing.JTextField();
Order_Delievry_Date = new com.toedter.calendar.JDateChooser();
OrderDate = new com.toedter.calendar.JDateChooser();
jLabel21 = new javax.swing.JLabel();
Client_Image = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
CDate = new javax.swing.JLabel();
jComboBox3 = new javax.swing.JComboBox<>();
jComboBox2 = new javax.swing.JComboBox<>();
jComboBox5 = new javax.swing.JComboBox<>();
jComboBox6 = new javax.swing.JComboBox<>();
jComboBox7 = new javax.swing.JComboBox<>();
jComboBox8 = new javax.swing.JComboBox<>();
jLabel2.setText("jLabel2");
jButton12.setBackground(new java.awt.Color(0, 0, 0));
jButton12.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton12.setForeground(new java.awt.Color(153, 153, 153));
jButton12.setText(" ATTACH IMAGE");
jButton12.setBorder(null);
jButton12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton12ActionPerformed(evt);
}
});
jButton4.setBackground(new java.awt.Color(102, 102, 102));
jButton4.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton4.setText("SAVE");
jButton4.setBorder(null);
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jButton5.setBackground(new java.awt.Color(102, 102, 102));
jButton5.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton5.setText("UPDATE");
jButton5.setBorder(null);
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jButton3.setBackground(new java.awt.Color(102, 102, 102));
jButton3.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton3.setText("DELETE");
jButton3.setBorder(null);
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setUndecorated(true);
jPanel1.setLayout(null);
jLabel4.setFont(new java.awt.Font("Tw Cen MT", 1, 36)); // NOI18N
jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel4.setText("A.D & COMPANY");
jPanel1.add(jLabel4);
jLabel4.setBounds(460, 10, 300, 60);
jButton10.setBackground(new java.awt.Color(0, 0, 0));
jButton10.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton10.setForeground(new java.awt.Color(153, 153, 153));
jButton10.setText(" QUOTATION");
jButton10.setBorder(null);
jButton10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton10ActionPerformed(evt);
}
});
jPanel1.add(jButton10);
jButton10.setBounds(60, 260, 160, 30);
jButton8.setBackground(new java.awt.Color(0, 0, 0));
jButton8.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton8.setForeground(new java.awt.Color(153, 153, 153));
jButton8.setText(" GENERATE BILL");
jButton8.setBorder(null);
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
jPanel1.add(jButton8);
jButton8.setBounds(60, 340, 160, 30);
jButton7.setBackground(new java.awt.Color(0, 0, 0));
jButton7.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton7.setForeground(new java.awt.Color(153, 153, 153));
jButton7.setText(" CLIENT ORDER");
jButton7.setBorder(null);
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jPanel1.add(jButton7);
jButton7.setBounds(60, 380, 160, 30);
jButton6.setBackground(new java.awt.Color(0, 0, 0));
jButton6.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton6.setForeground(new java.awt.Color(153, 153, 153));
jButton6.setText("CLIENT INFORMATION");
jButton6.setBorder(null);
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jPanel1.add(jButton6);
jButton6.setBounds(60, 540, 160, 30);
jButton9.setBackground(new java.awt.Color(0, 0, 0));
jButton9.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton9.setForeground(new java.awt.Color(153, 153, 153));
jButton9.setText(" GET RATES");
jButton9.setBorder(null);
jButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton9ActionPerformed(evt);
}
});
jPanel1.add(jButton9);
jButton9.setBounds(60, 300, 160, 30);
jButton11.setBackground(new java.awt.Color(0, 0, 0));
jButton11.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton11.setForeground(new java.awt.Color(153, 153, 153));
jButton11.setText(" TENDER");
jButton11.setBorder(null);
jButton11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton11ActionPerformed(evt);
}
});
jPanel1.add(jButton11);
jButton11.setBounds(60, 220, 160, 30);
jButton13.setBackground(new java.awt.Color(0, 0, 0));
jButton13.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton13.setForeground(new java.awt.Color(153, 153, 153));
jButton13.setText("GENERATE PAYMENT");
jButton13.setBorder(null);
jButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton13ActionPerformed(evt);
}
});
jPanel1.add(jButton13);
jButton13.setBounds(60, 500, 160, 30);
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGES/deal (4).png"))); // NOI18N
jPanel1.add(jLabel3);
jLabel3.setBounds(10, 20, 270, 180);
jLabel5.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel5.setForeground(new java.awt.Color(255, 255, 255));
jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel5.setText("CLIENT ORDER");
jPanel1.add(jLabel5);
jLabel5.setBounds(550, 60, 120, 20);
jLabel6.setFont(new java.awt.Font("Tw Cen MT", 1, 18)); // NOI18N
jLabel6.setForeground(new java.awt.Color(153, 153, 153));
jLabel6.setText(" CLIENT ORDER");
jLabel6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 3));
jPanel1.add(jLabel6);
jLabel6.setBounds(310, 350, 760, 30);
jLabel7.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel7.setForeground(new java.awt.Color(255, 255, 255));
jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel7.setText("DATE");
jLabel7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel7);
jLabel7.setBounds(690, 390, 150, 20);
jLabel10.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel10.setForeground(new java.awt.Color(255, 255, 255));
jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel10.setText("STATUS");
jLabel10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel10);
jLabel10.setBounds(690, 450, 150, 20);
jLabel12.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel12.setForeground(new java.awt.Color(255, 255, 255));
jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel12.setText("ADDRESS");
jLabel12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel12);
jLabel12.setBounds(340, 480, 150, 20);
Client_Name.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
Client_Name.setForeground(new java.awt.Color(255, 255, 255));
Client_Name.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
Client_Name.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(Client_Name);
Client_Name.setBounds(510, 160, 150, 20);
jLabel22.setFont(new java.awt.Font("Tw Cen MT", 1, 18)); // NOI18N
jLabel22.setForeground(new java.awt.Color(153, 153, 153));
jLabel22.setText(" CLIENT ORDER LINE ITEM");
jLabel22.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 3));
jPanel1.add(jLabel22);
jLabel22.setBounds(310, 510, 760, 30);
jLabel23.setFont(new java.awt.Font("Tw Cen MT", 1, 18)); // NOI18N
jLabel23.setForeground(new java.awt.Color(153, 153, 153));
jLabel23.setText(" CLIENT INFORMATION");
jLabel23.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 3));
jPanel1.add(jLabel23);
jLabel23.setBounds(310, 90, 760, 30);
jLabel24.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel24.setForeground(new java.awt.Color(255, 255, 255));
jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel24.setText("ID");
jLabel24.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel24);
jLabel24.setBounds(340, 130, 150, 20);
jButton20.setBackground(new java.awt.Color(0, 0, 0));
jButton20.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton20.setForeground(new java.awt.Color(153, 153, 153));
jButton20.setText("PAY THE PAYMENT");
jButton20.setBorder(null);
jButton20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton20ActionPerformed(evt);
}
});
jPanel1.add(jButton20);
jButton20.setBounds(60, 460, 160, 30);
jLabel26.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel26.setForeground(new java.awt.Color(255, 255, 255));
jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel26.setText("QOUTATION NUMBER");
jLabel26.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel26);
jLabel26.setBounds(340, 450, 150, 20);
jLabel28.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel28.setForeground(new java.awt.Color(255, 255, 255));
jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel28.setText("NAME");
jLabel28.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel28);
jLabel28.setBounds(340, 160, 150, 20);
jComboBox_LPRno.setBackground(new java.awt.Color(153, 153, 153));
jComboBox_LPRno.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox_LPRno.setForeground(new java.awt.Color(153, 153, 153));
jComboBox_LPRno.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select Number" }));
jComboBox_LPRno.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox_LPRno.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox_LPRno.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox_LPRno.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox_LPRnoActionPerformed(evt);
}
});
jPanel1.add(jComboBox_LPRno);
jComboBox_LPRno.setBounds(510, 420, 150, 22);
status.setBackground(new java.awt.Color(153, 153, 153));
status.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
status.setForeground(new java.awt.Color(153, 153, 153));
status.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Status", "Complete", "Incomplete" }));
status.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
status.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
status.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
status.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
statusActionPerformed(evt);
}
});
jPanel1.add(status);
status.setBounds(860, 450, 150, 22);
jComboBox_ClientId.setBackground(new java.awt.Color(153, 153, 153));
jComboBox_ClientId.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox_ClientId.setForeground(new java.awt.Color(153, 153, 153));
jComboBox_ClientId.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select" }));
jComboBox_ClientId.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox_ClientId.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox_ClientId.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox_ClientId.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox_ClientIdActionPerformed(evt);
}
});
jPanel1.add(jComboBox_ClientId);
jComboBox_ClientId.setBounds(510, 130, 150, 22);
jTable1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
jTable1.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jTable1.setForeground(new java.awt.Color(102, 102, 102));
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"DESCRIPTION", "QUANTITY", "UNIT PRICE ", "TOTAL PRICE"
}
));
jTable1.setGridColor(new java.awt.Color(153, 153, 153));
jTable1.setSelectionBackground(new java.awt.Color(0, 0, 0));
jTable1.setSelectionForeground(new java.awt.Color(51, 51, 51));
jScrollPane1.setViewportView(jTable1);
if (jTable1.getColumnModel().getColumnCount() > 0) {
jTable1.getColumnModel().getColumn(0).setCellEditor(new DefaultCellEditor(jComboBox2));
}
jPanel1.add(jScrollPane1);
jScrollPane1.setBounds(330, 550, 750, 140);
jButton16.setBackground(new java.awt.Color(0, 0, 0));
jButton16.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton16.setForeground(new java.awt.Color(153, 153, 153));
jButton16.setText("VENDOR INFORMATION");
jButton16.setBorder(null);
jButton16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton16ActionPerformed(evt);
}
});
jPanel1.add(jButton16);
jButton16.setBounds(60, 580, 160, 30);
jButton17.setBackground(new java.awt.Color(0, 0, 0));
jButton17.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton17.setForeground(new java.awt.Color(153, 153, 153));
jButton17.setText("PRDOUCT INFORMATION");
jButton17.setBorder(null);
jButton17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton17ActionPerformed(evt);
}
});
jPanel1.add(jButton17);
jButton17.setBounds(60, 620, 160, 30);
jButton18.setBackground(new java.awt.Color(0, 0, 0));
jButton18.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton18.setForeground(new java.awt.Color(153, 153, 153));
jButton18.setText(" ISSUE MATERIAL");
jButton18.setBorder(null);
jButton18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton18ActionPerformed(evt);
}
});
jPanel1.add(jButton18);
jButton18.setBounds(60, 420, 160, 30);
jLabel30.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel30.setForeground(new java.awt.Color(255, 255, 255));
jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel30.setText("BUDGET CODE");
jLabel30.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel30);
jLabel30.setBounds(340, 390, 150, 20);
jLabel31.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel31.setForeground(new java.awt.Color(255, 255, 255));
jLabel31.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel31.setText("DELIEVERY DATE");
jLabel31.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel31);
jLabel31.setBounds(690, 480, 150, 20);
jLabel32.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel32.setForeground(new java.awt.Color(255, 255, 255));
jLabel32.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel32.setText("LPO NUMBER");
jLabel32.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel32);
jLabel32.setBounds(690, 420, 150, 20);
jButton14.setBackground(new java.awt.Color(102, 102, 102));
jButton14.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton14.setText("SAVE");
jButton14.setBorder(null);
jButton14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton14ActionPerformed(evt);
}
});
jPanel1.add(jButton14);
jButton14.setBounds(1020, 400, 70, 20);
jButton19.setBackground(new java.awt.Color(102, 102, 102));
jButton19.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jButton19.setText("VIEW");
jButton19.setBorder(null);
jButton19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton19ActionPerformed(evt);
}
});
jPanel1.add(jButton19);
jButton19.setBounds(1020, 440, 70, 17);
Quotation_No.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
Quotation_No.setForeground(new java.awt.Color(255, 255, 255));
Quotation_No.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
Quotation_No.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(Quotation_No);
Quotation_No.setBounds(510, 450, 150, 20);
LPO_Number.setText("Enter LPO No");
LPO_Number.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
LPO_Number.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
LPO_NumberMouseClicked(evt);
}
});
LPO_Number.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
LPO_NumberActionPerformed(evt);
}
});
LPO_Number.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
LPO_NumberKeyPressed(evt);
}
public void keyTyped(java.awt.event.KeyEvent evt) {
LPO_NumberKeyTyped(evt);
}
});
jPanel1.add(LPO_Number);
LPO_Number.setBounds(860, 420, 150, 20);
Order_Address.setText("Enter Address");
Order_Address.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
Order_Address.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
Order_AddressMouseClicked(evt);
}
});
Order_Address.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Order_AddressActionPerformed(evt);
}
});
Order_Address.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
Order_AddressKeyPressed(evt);
}
public void keyTyped(java.awt.event.KeyEvent evt) {
Order_AddressKeyTyped(evt);
}
});
jPanel1.add(Order_Address);
Order_Address.setBounds(510, 480, 150, 20);
Order_BudgetCode.setText("Enter Budget Code");
Order_BudgetCode.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
Order_BudgetCode.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
Order_BudgetCodeMouseClicked(evt);
}
});
Order_BudgetCode.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Order_BudgetCodeActionPerformed(evt);
}
});
Order_BudgetCode.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
Order_BudgetCodeKeyPressed(evt);
}
public void keyTyped(java.awt.event.KeyEvent evt) {
Order_BudgetCodeKeyTyped(evt);
}
});
jPanel1.add(Order_BudgetCode);
Order_BudgetCode.setBounds(510, 390, 150, 20);
Order_Delievry_Date.setBackground(new java.awt.Color(204, 204, 204));
Order_Delievry_Date.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
Order_Delievry_Date.setOpaque(false);
jPanel1.add(Order_Delievry_Date);
Order_Delievry_Date.setBounds(860, 480, 150, 20);
OrderDate.setBackground(new java.awt.Color(204, 204, 204));
OrderDate.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
OrderDate.setOpaque(false);
jPanel1.add(OrderDate);
OrderDate.setBounds(860, 390, 150, 20);
jLabel21.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jLabel21.setForeground(new java.awt.Color(255, 255, 255));
jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel21.setText("LPR NUMBER");
jLabel21.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(jLabel21);
jLabel21.setBounds(340, 420, 150, 20);
Client_Image.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
jPanel1.add(Client_Image);
Client_Image.setBounds(690, 130, 220, 200);
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGES/close-cross-circular-interface-button (2).png"))); // NOI18N
jButton1.setContentAreaFilled(false);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jPanel1.add(jButton1);
jButton1.setBounds(1040, 10, 30, 30);
CDate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGES/black_background_lines_scratches_69440_1366x768.jpg"))); // NOI18N
jPanel1.add(CDate);
CDate.setBounds(-10, 0, 1110, 750);
jComboBox3.setBackground(new java.awt.Color(153, 153, 153));
jComboBox3.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox3.setForeground(new java.awt.Color(153, 153, 153));
jComboBox3.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select Number" }));
jComboBox3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox3.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox3ActionPerformed(evt);
}
});
jPanel1.add(jComboBox3);
jComboBox3.setBounds(510, 420, 150, 22);
jComboBox2.setBackground(new java.awt.Color(153, 153, 153));
jComboBox2.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox2.setForeground(new java.awt.Color(153, 153, 153));
jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select Number" }));
jComboBox2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox2.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox2ActionPerformed(evt);
}
});
jPanel1.add(jComboBox2);
jComboBox2.setBounds(510, 380, 150, 22);
jComboBox5.setBackground(new java.awt.Color(153, 153, 153));
jComboBox5.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox5.setForeground(new java.awt.Color(153, 153, 153));
jComboBox5.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select Number" }));
jComboBox5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox5.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox5ActionPerformed(evt);
}
});
jPanel1.add(jComboBox5);
jComboBox5.setBounds(510, 420, 150, 22);
jComboBox6.setBackground(new java.awt.Color(153, 153, 153));
jComboBox6.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox6.setForeground(new java.awt.Color(153, 153, 153));
jComboBox6.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select Number" }));
jComboBox6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox6.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox6ActionPerformed(evt);
}
});
jPanel1.add(jComboBox6);
jComboBox6.setBounds(510, 420, 150, 22);
jComboBox7.setBackground(new java.awt.Color(153, 153, 153));
jComboBox7.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox7.setForeground(new java.awt.Color(153, 153, 153));
jComboBox7.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select Number" }));
jComboBox7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox7.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox7ActionPerformed(evt);
}
});
jPanel1.add(jComboBox7);
jComboBox7.setBounds(510, 420, 150, 22);
jComboBox8.setBackground(new java.awt.Color(153, 153, 153));
jComboBox8.setFont(new java.awt.Font("Tw Cen MT", 1, 14)); // NOI18N
jComboBox8.setForeground(new java.awt.Color(153, 153, 153));
jComboBox8.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select Number" }));
jComboBox8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jComboBox8.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jComboBox8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox8ActionPerformed(evt);
}
});
jPanel1.add(jComboBox8);
jComboBox8.setBounds(510, 420, 150, 22);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1102, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 701, javax.swing.GroupLayout.PREFERRED_SIZE)
);
pack();
} | {
"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.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.6945... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean IsSatisfiedBy(Member member) {
boolean res=member.getLoans().stream().filter(Loan::hasNotBeenReturned).count()<3;
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This method prints the random world layout to the console, as created by the ThirdPartyFractalGenerator. | public static void main(String args[]){
Game game = new GameImpl(new TestFactory());
WorldStrategy worldStrategy = new ThirdPartyWorldAdapter();
worldStrategy.createWorld(game);
// Print World as it is "seen" by the Game
for ( int r = 0; r < GameConstants.WORLDSIZE; r++ ) {
String line = "";
for ( int c = 0; c < GameConstants.WORLDSIZE; c++ ) {
String type = game.getTiles().get(new Position(r,c)).getTypeString();
if (type.equals(GameConstants.OCEANS)){ line += '.';}
if (type.equals(GameConstants.PLAINS)){ line += 'o';}
if (type.equals(GameConstants.MOUNTAINS)){ line += 'M';}
if (type.equals(GameConstants.FOREST)){ line += 'f';}
if (type.equals(GameConstants.HILLS)){ line += 'h';}
}
System.out.println(line);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printWorld()\n\t{\n\t\tSystem.out.println(\"***********************World Info*************************\");\n\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < gameObj[i].size(); j++)\n\t\t\t\tSystem.out.println(gameObj[i].get(j).toString());\n\t\t}\n\t\tSystem.out.println(\"****... | [
"0.7269398",
"0.6910495",
"0.651178",
"0.59833694",
"0.5966024",
"0.5960265",
"0.5937013",
"0.59287846",
"0.5921195",
"0.58662325",
"0.58568543",
"0.5855167",
"0.5840557",
"0.5839316",
"0.58369833",
"0.58367723",
"0.5821739",
"0.582034",
"0.5801502",
"0.5800428",
"0.5794092",... | 0.6473385 | 3 |
wait for remote memory information; the receive request posted when client endpoint is created (AppClientEndpoint.init()) | private void run() throws InterruptedException, IOException {
endpoint.getWcEvents().take();
//process received data
processRecv();
for (int i=0; i < 1000000; i++) {
//change data in remote memory
writeData(i);
//wait for writing remote memory to complete
endpoint.getWcEvents().take();
}
System.out.println("ClientWrite::finished!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n requestServerToGetInformation();\n }",
"private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n ... | [
"0.57953846",
"0.57559365",
"0.5445565",
"0.54155546",
"0.53366566",
"0.5307055",
"0.5300083",
"0.5245049",
"0.523995",
"0.5239707",
"0.5228635",
"0.52272254",
"0.51891667",
"0.51877815",
"0.5185158",
"0.5129768",
"0.5118172",
"0.51125634",
"0.5068115",
"0.50609773",
"0.50413... | 0.46157283 | 99 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_nightlife, container, false);
databaseNightlife = FirebaseDatabase.getInstance().getReference("nightlife");
butmore = (Button) v.findViewById(R.id.butmore);
listViewNightlife = (ListView) v.findViewById(R.id.listViewNightlife);
nightlifeList = new ArrayList<>();
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6742135",
"0.6726157",
"0.6724717",
"0.67012674",
"0.66944426",
"0.66910595",
"0.66888237",
"0.668751",
"0.66790944",
"0.667782",
"0.66679764",
"0.66676605",
"0.6667572",
"0.6663008",
"0.66553324",
"0.66510403",
"0.6644715",
"0.6641966",
"0.6639501",
"0.66363883",
"0.66273... | 0.0 | -1 |
Calls the intoInvertedIndex method of InvertedIndex class to create inverted indices for both the files. | public static InvertedIndex createInvertedIndex(String arg1,String arg2) {
Path path1 = Paths.get(arg1);
Review r = new Review();
QA qa = new QA();
InvertedIndex reviews = ReadAndDisplayOperation.readFile(path1,r);
path1 = Paths.get(arg2);
InvertedIndex qas = ReadAndDisplayOperation.readFile(path1,qa);
qas.sortAll();
return qas;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tSt... | [
"0.8031789",
"0.7078804",
"0.6867947",
"0.61722124",
"0.59062666",
"0.5901269",
"0.57988065",
"0.5726157",
"0.5720186",
"0.5657072",
"0.55922246",
"0.55917054",
"0.55697435",
"0.5535275",
"0.55065364",
"0.5506505",
"0.55058795",
"0.54969853",
"0.54878795",
"0.5442444",
"0.540... | 0.6922577 | 2 |
TODO Autogenerated method stub | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
No args constructor for deserialization purpose. | private HaFlowPath() {
data = new HaFlowPathDataImpl();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void init(String file_name) { deserialize(file_name); }",
"public Data() {}",
"public JSONLoader() {}",
"public Payload() {}",
"public JsonFactory() { this(null); }",
"public void deserialize() {\n\t\t\n\t}",
"public Data() {\n \n }",
"public Data() {\n }",
"public Data()... | [
"0.70668703",
"0.6981839",
"0.6907971",
"0.67559385",
"0.6728807",
"0.66885525",
"0.6627505",
"0.6611888",
"0.6611888",
"0.6542209",
"0.65239805",
"0.6486125",
"0.64820015",
"0.64444435",
"0.6415356",
"0.641043",
"0.63483846",
"0.6337336",
"0.6336516",
"0.63141453",
"0.630184... | 0.0 | -1 |
Sets the bandwidth. This also updates the corresponding sub paths. | public void setBandwidth(long bandwidth) {
data.setBandwidth(bandwidth);
List<FlowPath> subPaths = getSubPaths();
if (subPaths != null) {
subPaths.forEach(path -> path.getData().setBandwidth(bandwidth));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDownloadBandwidth(int bw);",
"public void setUploadBandwidth(int bw);",
"public void setBandwidthBand(List<Double> bandwidthBand) {\n this.bandwidthBand = bandwidthBand;\n }",
"public void setExpectedBandwidth(int bw);",
"public void setBandwidth(String name,\n\t\t\t int value)... | [
"0.6937401",
"0.6024319",
"0.6000811",
"0.5997849",
"0.5988001",
"0.5779063",
"0.5771579",
"0.55890465",
"0.55802983",
"0.5490504",
"0.5293411",
"0.5268488",
"0.52285856",
"0.5216532",
"0.5213429",
"0.5207594",
"0.512719",
"0.5043054",
"0.5033825",
"0.5014121",
"0.49992183",
... | 0.8061922 | 0 |
Sets the ignoreBandwidth flag. This also updates the corresponding sub paths. | public void setIgnoreBandwidth(boolean ignoreBandwidth) {
data.setIgnoreBandwidth(ignoreBandwidth);
List<FlowPath> subPaths = getSubPaths();
if (subPaths != null) {
subPaths.forEach(path -> path.getData().setIgnoreBandwidth(ignoreBandwidth));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBandwidth(long bandwidth) {\n data.setBandwidth(bandwidth);\n List<FlowPath> subPaths = getSubPaths();\n if (subPaths != null) {\n subPaths.forEach(path -> path.getData().setBandwidth(bandwidth));\n }\n }",
"public void setDownloadBandwidth(int bw);",
"p... | [
"0.68805224",
"0.62826985",
"0.59048533",
"0.589401",
"0.5301861",
"0.516053",
"0.500625",
"0.49776706",
"0.49585062",
"0.49330056",
"0.48955274",
"0.4849574",
"0.48475826",
"0.46940732",
"0.46917814",
"0.46556345",
"0.4646297",
"0.46414793",
"0.46165162",
"0.45994672",
"0.45... | 0.85110587 | 0 |
Returns set of sub flow endpoint switch ids. Shared switch id is not included into this set. | public Set<SwitchId> getSubFlowSwitchIds() {
return getHaSubFlows().stream()
.map(HaSubFlow::getEndpointSwitchId)
.collect(Collectors.toSet());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<SwitchId> getEndpointSwitchIds() {\n Set<SwitchId> result = getSubFlowSwitchIds();\n result.add(getSharedSwitchId());\n return result;\n }",
"public Set<SwitchId> getAllInvolvedSwitches() {\n Set<SwitchId> switchIds = new HashSet<>();\n for (FlowPath subPath : get... | [
"0.81074846",
"0.7469474",
"0.5256267",
"0.5246642",
"0.5222738",
"0.5211582",
"0.51425123",
"0.51018906",
"0.50667846",
"0.50606644",
"0.5016554",
"0.50058174",
"0.4998262",
"0.4943092",
"0.49374056",
"0.4894037",
"0.48885077",
"0.48580298",
"0.48374686",
"0.4833258",
"0.481... | 0.8595349 | 0 |
Returns set of haflow endpoint switch ids. | public Set<SwitchId> getEndpointSwitchIds() {
Set<SwitchId> result = getSubFlowSwitchIds();
result.add(getSharedSwitchId());
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<SwitchId> getSubFlowSwitchIds() {\n return getHaSubFlows().stream()\n .map(HaSubFlow::getEndpointSwitchId)\n .collect(Collectors.toSet());\n }",
"public Set<SwitchId> getAllInvolvedSwitches() {\n Set<SwitchId> switchIds = new HashSet<>();\n for (Fl... | [
"0.7329787",
"0.62615424",
"0.53994906",
"0.53844345",
"0.53313375",
"0.5244235",
"0.5211922",
"0.52117276",
"0.5202292",
"0.5126794",
"0.5119998",
"0.5106561",
"0.51006985",
"0.5077021",
"0.50743705",
"0.5070701",
"0.50621074",
"0.5043359",
"0.50433105",
"0.5019599",
"0.5016... | 0.7746645 | 0 |
Get all switches used by the path (including segment switches). | public Set<SwitchId> getAllInvolvedSwitches() {
Set<SwitchId> switchIds = new HashSet<>();
for (FlowPath subPath : getSubPaths()) {
for (PathSegment segment : subPath.getSegments()) {
switchIds.add(segment.getSrcSwitchId());
switchIds.add(segment.getDestSwitchId());
}
}
return switchIds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HashMap<String,SLR1_automat.State> get_switches();",
"public List<Short> getKOsByPathway(Short pw) {\n\t\tif (pathway2ko == null) {\n\t\t\treadDumpedKeggPathways();\n\t\t}\n\t\treturn pathway2ko.get(pw);\n\t}",
"public List<Short> getPathwaysByKO(Short ko) {\n\t\tif (ko2pathway == null) {\n\t\t\treadDum... | [
"0.623881",
"0.5698326",
"0.54432213",
"0.5424171",
"0.53742343",
"0.5335236",
"0.52675056",
"0.5257489",
"0.52531797",
"0.51989365",
"0.51371604",
"0.5101829",
"0.50650895",
"0.49963206",
"0.4942957",
"0.49394917",
"0.49369583",
"0.49187705",
"0.49046212",
"0.490227",
"0.489... | 0.6602565 | 0 |
Checks whether this path is a protected path for the flow. | public boolean isProtected() {
HaFlow haFlow = getHaFlow();
return haFlow != null && haFlow.isProtectedPath(getHaPathId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isProtected(String name);",
"public boolean isProtected()\n {\n ensureLoaded();\n return m_flags.isProtected();\n }",
"public boolean isProtected() {\n\t\treturn isProtected;\n\t}",
"public final boolean needsPermission() {\n return FileUtil.needsPermission(this.for... | [
"0.6258398",
"0.6243826",
"0.62135154",
"0.5878037",
"0.5722186",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
"0.55834645",
... | 0.7642792 | 0 |
Defines persistable data of the FlowPath. | public interface HaFlowPathData {
PathId getHaPathId();
void setHaPathId(PathId haPathId);
String getHaFlowId();
HaFlow getHaFlow();
SwitchId getSharedSwitchId();
Switch getSharedSwitch();
void setSharedSwitch(Switch sharedSwitch);
SwitchId getYPointSwitchId();
void setYPointSwitchId(SwitchId yPointSwitchId);
FlowSegmentCookie getCookie();
void setCookie(FlowSegmentCookie cookie);
MeterId getYPointMeterId();
void setYPointMeterId(MeterId meterId);
MeterId getSharedPointMeterId();
void setSharedPointMeterId(MeterId meterId);
GroupId getYPointGroupId();
void setYPointGroupId(GroupId groupId);
long getBandwidth();
void setBandwidth(long bandwidth);
boolean isIgnoreBandwidth();
void setIgnoreBandwidth(boolean ignoreBandwidth);
FlowPathStatus getStatus();
void setStatus(FlowPathStatus status);
List<HaSubFlow> getHaSubFlows();
void setHaSubFlows(Collection<HaSubFlow> haSubFlows);
List<FlowPath> getSubPaths();
void setSubPaths(Collection<FlowPath> subPaths);
Instant getTimeCreate();
void setTimeCreate(Instant timeCreate);
Instant getTimeModify();
void setTimeModify(Instant timeModify);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void storeProperties() {\n storeValue(Variable.MODE);\n storeValue(Variable.ITEM);\n storeValue(Variable.DEST_PATH);\n storeValue(Variable.MAXTRACKS_ENABLED);\n storeValue(Variable.MAXTRACKS);\n storeValue(Variable.MAXSIZE_ENABLED);\n storeValue(Variable.MAXSIZE);\n storeValue(Varia... | [
"0.6081453",
"0.6081072",
"0.6037335",
"0.6036084",
"0.5963892",
"0.5944742",
"0.5890212",
"0.583431",
"0.5733551",
"0.5724608",
"0.5703439",
"0.56920636",
"0.56590366",
"0.5632907",
"0.56079066",
"0.5599636",
"0.5597876",
"0.5591247",
"0.5573266",
"0.5532179",
"0.5527599",
... | 0.5522388 | 22 |
Defines methods which don't need to be delegated. | interface FlowPathInternalData {
void setBandwidth(long bandwidth);
void setIgnoreBandwidth(boolean ignoreBandwidth);
void setSharedBandwidthGroupId(String sharedBandwidthGroupId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected Set<Method> createMethods();",
"@Override\n\tpublic String[] getMethods() {\n\t\treturn null;\n\t}",
"void unsetMethod();",
"@Override\n\tboolean isRegistedMethodNotNeed() {\n\t\treturn true;\n\t}",
"@Override\r\n \tpublic void addMethods(KawaWrap kawa) throws Throwable {\r\n \tkawa.... | [
"0.6189046",
"0.6083662",
"0.6065939",
"0.60578644",
"0.5868259",
"0.58171356",
"0.5803894",
"0.5793887",
"0.5766918",
"0.57380563",
"0.5723972",
"0.5681403",
"0.5669597",
"0.5664868",
"0.5627721",
"0.5612972",
"0.5596659",
"0.55258197",
"0.5484835",
"0.54594404",
"0.5458256"... | 0.0 | -1 |
Set the sub paths. | @Override
public void setSubPaths(Collection<FlowPath> subPaths) {
for (FlowPath subPath : subPaths) {
if (subPath.getHaSubFlow() == null) {
throw new IllegalArgumentException(
format("Sub path %s must has ha sub flow to be added into ha flow path %s",
subPath, getHaPathId()));
}
FlowPathData data = subPath.getData();
if (data instanceof FlowPathDataImpl) {
((FlowPathDataImpl) data).haFlowPath = haFlowPath;
}
}
this.subPaths = new ArrayList<>(subPaths);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setPaths(Double[][] paths){\n this.paths=paths;\n }",
"private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n whil... | [
"0.646161",
"0.63998634",
"0.62429327",
"0.62277484",
"0.61854863",
"0.61612344",
"0.6134339",
"0.6122991",
"0.60207963",
"0.5977261",
"0.5971213",
"0.58945066",
"0.5854758",
"0.58134973",
"0.579935",
"0.5778307",
"0.57620573",
"0.5736824",
"0.5701355",
"0.56830776",
"0.56798... | 0.7067307 | 0 |
A cloner for FlowPath entity. | @Mapper(collectionMappingStrategy = CollectionMappingStrategy.TARGET_IMMUTABLE)
public interface HaFlowPathCloner {
HaFlowPathCloner INSTANCE = Mappers.getMapper(HaFlowPathCloner.class);
@Mapping(target = "haSubFlows", ignore = true)
void copyWithoutHaSubFlows(HaFlowPathData source, @MappingTarget HaFlowPathData target);
@Mapping(target = "sharedSwitch", ignore = true)
@Mapping(target = "subPaths", ignore = true)
@Mapping(target = "haSubFlows", ignore = true)
void copyWithoutSwitchesAndSubPaths(HaFlowPathData source, @MappingTarget HaFlowPathData target);
/**
* Performs deep copy of entity data.
*
* @param source the path data to copy from.
* @param targetHaFlow the HA-flow to be referred ({@code HaFlowPathData.getHaFlow()}) by the new path data.
*/
default HaFlowPathData deepCopy(HaFlowPathData source, HaFlow targetHaFlow) {
HaFlowPathDataImpl result = new HaFlowPathDataImpl();
result.haFlow = targetHaFlow;
copyWithoutSwitchesAndSubPaths(source, result);
result.setSharedSwitch(new Switch(source.getSharedSwitch()));
Map<String, HaSubFlow> subFlowMap;
if (targetHaFlow == null || targetHaFlow.getHaSubFlows() == null) {
subFlowMap = new HashMap<>();
} else {
subFlowMap = targetHaFlow.getHaSubFlows().stream()
.collect(Collectors.toMap(HaSubFlow::getHaSubFlowId, Function.identity()));
}
List<FlowPath> subPaths = new ArrayList<>();
for (FlowPath subPath : source.getSubPaths()) {
HaSubFlow targetHaSubFlow = subFlowMap.get(subPath.getHaSubFlowId());
if (targetHaSubFlow == null) {
throw new IllegalArgumentException(format("Couldn't copy HaFlowPath %s because target ha-flow has "
+ "no ha-subflow %s", source, subPath.getHaSubFlowId()));
}
subPaths.add(new FlowPath(subPath, null, targetHaSubFlow));
}
result.setSubPaths(subPaths);
List<HaSubFlow> subFlows = new ArrayList<>();
for (HaSubFlow subFlow : source.getHaSubFlows()) {
subFlows.add(new HaSubFlow(subFlow, targetHaFlow));
}
result.setHaSubFlows(subFlows);
return result;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object cloner() {\n return cloner((Sommet)origine.cloner(), (Sommet)destination.cloner());\n }",
"@Override\n public MovePath clone() {\n final MovePath copy = new MovePath(getGame(), getEntity());\n copy.steps = new Vector<MoveStep>(steps);\n copy.careful = careful;\n r... | [
"0.67508703",
"0.6592317",
"0.6478634",
"0.623671",
"0.6125802",
"0.6123693",
"0.6091815",
"0.6084279",
"0.59296566",
"0.58430713",
"0.57024235",
"0.5660519",
"0.5616352",
"0.5616352",
"0.55499643",
"0.5543683",
"0.55164576",
"0.548617",
"0.5483371",
"0.54774",
"0.5467474",
... | 0.73009515 | 0 |
private static final String RESOURCE_ID = "UserRoleService"; | @Override
public void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/**").authenticated()
.and().exceptionHandling().accessDeniedHandler(new OAuth2AccessDeniedHandler());
// http.authorizeRequests().antMatchers(HttpMethod.GET, "/**").access("#oauth2.hasScope('read')")
// .antMatchers(HttpMethod.POST, "/**").access("#oauth2.hasScope('write')")
// .antMatchers(HttpMethod.DELETE, "/**").access("#oauth2.hasScope('write')");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getResourceId();",
"ResourceRole createResourceRole();",
"public interface RoleInfoService extends Service<RoleInfo> {\n RoleInfo queryRoleInfoById(int id);\n}",
"int getResourceId();",
"public interface ISysRoleService {\n Set<String> selectRolePermissionByUserId(Long userId);\n}",
"... | [
"0.65331316",
"0.6447952",
"0.64472556",
"0.6373408",
"0.63364875",
"0.633011",
"0.6326547",
"0.63003236",
"0.6282162",
"0.626603",
"0.6251393",
"0.62445766",
"0.6203141",
"0.6202151",
"0.61647445",
"0.61059654",
"0.60546833",
"0.6035156",
"0.6010129",
"0.5999763",
"0.5998168... | 0.0 | -1 |
Constructor that sets the listener | public CapsulePingTask(TaskListener listener) {
this.setListener(listener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setListener() {\n\t}",
"@Override\n\tpublic void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"protected Listener(){super();}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpub... | [
"0.7813155",
"0.75272757",
"0.75144625",
"0.75144625",
"0.7435517",
"0.73975706",
"0.73975706",
"0.7390809",
"0.72889566",
"0.7163684",
"0.69883275",
"0.69679296",
"0.69445336",
"0.693608",
"0.6846497",
"0.68439066",
"0.6834992",
"0.6740693",
"0.6700419",
"0.67002994",
"0.669... | 0.0 | -1 |
Sets the listener for the AsyncTask | @Override
public void setListener(TaskListener listener) {
try {
this.mListener = (AsyncTaskListeners.CapsulePingTaskListener) listener;
} catch (ClassCastException e) {
throw new ClassCastException(
listener.toString() + " does not implement CapsulePingTaskListener");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void ListenerForAsynctask() {\n\t\tAsyncTaskCall.setCallback(new CallbacksFromAsynctask() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onCallbackRecieved(int requestCode, int statuscode,\r\n\t\t\t\t\tString result) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\td.dismissCustomSpinProgress();\r\n\t... | [
"0.6831111",
"0.6367335",
"0.6336871",
"0.63274825",
"0.62335265",
"0.61586225",
"0.61586225",
"0.6154344",
"0.6130205",
"0.6130205",
"0.6105266",
"0.60777557",
"0.6034322",
"0.6013591",
"0.6002995",
"0.59881157",
"0.5981928",
"0.5935852",
"0.59009176",
"0.5893358",
"0.589287... | 0.6975601 | 0 |
Removes the listener that handles the callbacks | @Override
public void removeListener() {
this.mListener = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cleanUp() { listener = null; }",
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"public void unregisterListeners(){\n listeners.clear();\n }",
"@Override\n\tpublic void unregistListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.unregiste... | [
"0.81087834",
"0.7904637",
"0.7843875",
"0.7677205",
"0.7663719",
"0.7653231",
"0.7652831",
"0.7649325",
"0.76491",
"0.7647293",
"0.7585139",
"0.7583074",
"0.7528592",
"0.74719965",
"0.74586344",
"0.74409974",
"0.7435354",
"0.7415408",
"0.7397983",
"0.7375057",
"0.73738754",
... | 0.8358359 | 0 |
Delegates the background work to the listener | @Override
protected CapsulePingResponse doInBackground(String... params) {
if (this.mListener != null) {
return this.mListener.duringCapsulePing(params);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n DownloadListener.getListener().execute();\n }",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"void enableBackgroundData();",
"private void backgro... | [
"0.641839",
"0.64025265",
"0.6224466",
"0.6180908",
"0.6169891",
"0.6151379",
"0.61201185",
"0.61021054",
"0.6063713",
"0.6045781",
"0.60317147",
"0.60235643",
"0.59554267",
"0.5925817",
"0.58674",
"0.58369917",
"0.5825168",
"0.58193946",
"0.580938",
"0.57109755",
"0.5661905"... | 0.0 | -1 |
Delegates the work to the listener | @Override
protected void onPreExecute() {
if (this.mListener != null) {
this.mListener.onPreCapsulePing();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"@Override\r\n\tpublic void... | [
"0.6599044",
"0.6597686",
"0.6597686",
"0.65415347",
"0.650151",
"0.650151",
"0.64569616",
"0.64136046",
"0.639889",
"0.62691754",
"0.62521136",
"0.6172807",
"0.6114724",
"0.60884476",
"0.6087059",
"0.6080691",
"0.6014053",
"0.59864676",
"0.5938036",
"0.5938036",
"0.59310436"... | 0.0 | -1 |
Delegates the process to the listener | @Override
protected void onPostExecute(CapsulePingResponse response) {
if (this.mListener != null) {
this.mListener.onPostCapsulePing(response);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}",
"public abstract void onProcess();",
"@Override\n\tpublic void addTextProcessListener(TextProcessStatusListener listener) {\n\n\t\tlisteners.add(TextProcessStatusListener.class, listener);\n\t}",
"public void attachListener(IProcessStatusListen... | [
"0.77184546",
"0.7595524",
"0.6266091",
"0.62028503",
"0.6018762",
"0.6002936",
"0.59471077",
"0.59451085",
"0.59127945",
"0.591162",
"0.58964515",
"0.5887232",
"0.58776283",
"0.58632696",
"0.58358896",
"0.5812255",
"0.5808291",
"0.5805821",
"0.5777436",
"0.5712944",
"0.56984... | 0.0 | -1 |
Delegates the work to the listener | @Override
protected void onCancelled() {
if (this.mListener != null) {
this.mListener.onCapsulePingCancelled();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"@Override\r\n\tpublic void... | [
"0.6598984",
"0.6598106",
"0.6598106",
"0.65422225",
"0.6502304",
"0.6502304",
"0.64576125",
"0.64139754",
"0.6399603",
"0.6270351",
"0.6253257",
"0.6173346",
"0.6114702",
"0.6089175",
"0.608732",
"0.6080358",
"0.60139626",
"0.5986869",
"0.5938124",
"0.5938124",
"0.5932946",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public double getSlowness() {
return 10;
} | {
"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 |
Demo service used in demo jobs | public interface ITextService {
List<TextEntity> findAllBetweenTextDates(String startDate, String endDate);
List<TextEntity> findAllBetweenTextDates(Date startDate, Date endDate);
TextEntity insert(TextEntity te);
List<TextEntity> insertList(List<TextEntity> tes);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IDemoService {\n /**\n * 查询测试申请列表\n *\n * @return\n */\n Map<String, Object> getTestPage(JSONObject jsonObject);\n\n /**\n * 新建测试申请\n *\n * @param jsonObject\n * @return\n */\n int addApply(JSONObject jsonObject);\n\n /**\n * 根据iD获取详细信息\n ... | [
"0.6795946",
"0.66141725",
"0.66057765",
"0.6513277",
"0.6473497",
"0.6375154",
"0.6339567",
"0.6278227",
"0.6223403",
"0.6218237",
"0.6175947",
"0.6154919",
"0.6124472",
"0.6101078",
"0.60828",
"0.606317",
"0.60600245",
"0.60408515",
"0.60408515",
"0.60408515",
"0.602677",
... | 0.0 | -1 |
Saves model into file | public void saveModel(Path file) throws IOException {
try (PrintStream stream = new PrintStream(file.toString())) {
for (int k = 0; k < numberOfTopics; k++) {
for (int w = 0; w < sizeOfVocabulary; w++)
stream.format("%05d ", wordCountByTopicAndTerm[k][w]);
stream.println();
}
} catch (FileNotFoundException e) {
throw new IOException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveToFile(File file, Model model) throws IOException;",
"void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"public void saveToStream(OutputStream strea... | [
"0.88324934",
"0.78411484",
"0.761867",
"0.7531407",
"0.7497529",
"0.7493584",
"0.7403443",
"0.74012864",
"0.7368237",
"0.73610723",
"0.73392916",
"0.7309573",
"0.7309573",
"0.7309573",
"0.72442406",
"0.72337216",
"0.72043276",
"0.71971124",
"0.7165043",
"0.7165043",
"0.71650... | 0.0 | -1 |
Return model build by sampler | public HDPModel getModel() {
HDPModelBuilder builder = new HDPModelBuilder(numberOfTopics, totalNumberOfWords);
for (int k = 0; k < numberOfTopics; k++) {
for (int w = 0; w < sizeOfVocabulary; w++) {
builder.addTopicWordCount(k, w, wordCountByTopicAndTerm[k][w]);
}
}
return builder.build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildModel() {\n }",
"SerializableState getSampleModel(Long id) throws RemoteException;",
"Build_Model() {\n\n }",
"@Override\n public SampleModel getSampleModel() {\n return this.sampleModel;\n }",
"public boolean buildModel() {\n \treturn buildModel(false, false);\n }... | [
"0.6274624",
"0.6109987",
"0.6010585",
"0.573034",
"0.56635684",
"0.5647649",
"0.55633444",
"0.5557583",
"0.5476372",
"0.54761314",
"0.5446509",
"0.5435988",
"0.5415817",
"0.53936553",
"0.5392146",
"0.5368852",
"0.53622025",
"0.53088963",
"0.53041524",
"0.53007054",
"0.529962... | 0.49115148 | 85 |
destroy the decoder to release all resources decoder.destroy(); decoder = null; | private void reset() {
files = new HashMap<>();
params = new HashMap<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized public void destroy() {\n \t\tsuper.destroy();\n \t\tp = null;\n \t\tp_layer = null;\n \t}",
"protected synchronized void cleanup() {\n frameStorage.clear();\n if (frameIterator != null) {\n try {\n frameIterator.close();\n } catch (IOException ex) ... | [
"0.65771824",
"0.65229297",
"0.6522718",
"0.635029",
"0.6337973",
"0.62898624",
"0.62825805",
"0.62574035",
"0.6243299",
"0.62320954",
"0.6212086",
"0.6211653",
"0.6189879",
"0.61714965",
"0.6157525",
"0.615445",
"0.6147174",
"0.6147174",
"0.6147174",
"0.6147174",
"0.6147174"... | 0.0 | -1 |
initialize your data structure here. | public LC155_MinStack2() {
data = new Stack<Long>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n\t}",
"private void initData() {\n }",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Over... | [
"0.7977482",
"0.7960524",
"0.77892214",
"0.77469254",
"0.77469254",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7555887",
"0.74711394",
"0.74664557",
"0.7456787",
"0.7442776",
"0.74332404",
"0.74293566",
"0.74293566",
"0.74293566",
"0.7424... | 0.0 | -1 |
Verify that the input is valid. | public String greetServer(String input) throws IllegalArgumentException {
if (!FieldVerifier.isValidName(input)) {
// If the input is not valid, throw an IllegalArgumentException back to
// the client.
throw new IllegalArgumentException(
"Name must be at least 4 characters long");
}
String serverInfo = getServletContext().getServerInfo();
String userAgent = getThreadLocalRequest().getHeader("User-Agent");
// Escape data from the client to avoid cross-site script vulnerabilities.
input = escapeHtml(input);
userAgent = escapeHtml(userAgent);
String str = "test";
try {
str = testOntology();
} catch (OWLOntologyCreationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return str;
//+ input + "!<br><br>I am running " + serverInfo
// + ".<br><br>It looks like you are using:<br>" + userAgent ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isInputValid() {\n return true;\n }",
"private boolean isValidInput() {\n\t\treturn true;\n\t}",
"protected abstract boolean isInputValid();",
"public abstract boolean verifyInput();",
"@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}",
"protected abstract int i... | [
"0.80482864",
"0.79739434",
"0.7803724",
"0.74288964",
"0.7197441",
"0.71822625",
"0.71569073",
"0.7077677",
"0.7012728",
"0.6960829",
"0.6784898",
"0.67726207",
"0.6746711",
"0.67349637",
"0.6702338",
"0.667762",
"0.66763514",
"0.6673552",
"0.66682065",
"0.66531646",
"0.6638... | 0.0 | -1 |
Escape an html string. Escaping data received from the client helps to prevent crosssite script vulnerabilities. | private String escapeHtml(String html) {
if (html == null) {
return null;
}
return html.replaceAll("&", "&").replaceAll("<", "<").replaceAll(
">", ">");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn html.replaceAll(\"&\", \"&\").replaceAll(\"<\", \"<\").replaceAll(\">\", \">\");\r\n\t}",
"private String escapeHtml(String html) {\r\n\t\tif (html == null) {\r\n\t\t\treturn null;\r\n\t\t}\... | [
"0.7028388",
"0.69884163",
"0.6975073",
"0.69697523",
"0.6954711",
"0.6954711",
"0.68090475",
"0.6246308",
"0.6182366",
"0.6130956",
"0.6098147",
"0.59120494",
"0.5806291",
"0.57985204",
"0.57618445",
"0.57003117",
"0.5684059",
"0.5632743",
"0.56241643",
"0.55538774",
"0.5537... | 0.7094813 | 1 |
Car c = Car.newInsatance(); Car c2 = Car.newInsatance(); System.out.println(c == c2); c.run(); Moveable m = new Plane(); m.run(); PlaneFactory planeFactory = new PlaneFactory(); Moveable m =planeFactory.cratePlane(); | public static void main(String[] args) {
VehicleFactory factory = new CarFactory();
Moveable moveable = factory.Create();
moveable.run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t//Class name variable - new ClassName(); \n\t\n Car car1=new Car(); // we create a new object by using NEW\n \n //1 Object\n System.out.println(\"---------The first object----------\");\n car1.make=\"Honda\"; //you assign features acc... | [
"0.6454126",
"0.6237683",
"0.61602926",
"0.61428094",
"0.6123043",
"0.6087723",
"0.60677713",
"0.6055827",
"0.6044645",
"0.6024411",
"0.60095507",
"0.59967095",
"0.59908295",
"0.5933611",
"0.5929691",
"0.5899238",
"0.58903825",
"0.58867216",
"0.5871155",
"0.5854426",
"0.58465... | 0.5979315 | 13 |
direction of neighbor boid | public NeighborBoid(Double2D relativePosition, Double2D direction) {
this.relativePosition = relativePosition;
this.direction = direction;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double direction (IPoint other);",
"int getDirection();",
"public double direction(){\n return Math.atan2(this.y, this.x);\n }",
"public int getDirection();",
"public float getDirection();",
"public Bearing getLeftNeighbour() {\n return this == N || this == S ? W : N;\n }",
"@Generated\n... | [
"0.6989399",
"0.6434098",
"0.6422666",
"0.63575375",
"0.6233736",
"0.6175189",
"0.60873896",
"0.6049889",
"0.6044738",
"0.6035934",
"0.60315293",
"0.59649956",
"0.5927508",
"0.5896196",
"0.5891303",
"0.5860001",
"0.58449817",
"0.58426064",
"0.5826836",
"0.5822543",
"0.5786149... | 0.58434385 | 17 |
Method start crawling from given as param url | Collection<PageLink> crawl(CrawlerArgs args); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void crawl(String url);",
"public CrawlerResult crawl(URL url){\n //Creating the crawler result\n CrawlerResult rslt = new CrawlerResult(url);\n logger.info(url +\" started crawling....\");\n try{\n //Get the Document from the URL\n Document doc = Jsoup.connect(url.toString()).get();... | [
"0.8105988",
"0.7086027",
"0.70313984",
"0.700983",
"0.69145447",
"0.6804398",
"0.6772994",
"0.6726457",
"0.6648947",
"0.6562412",
"0.6560758",
"0.6541596",
"0.64695007",
"0.6416776",
"0.63780206",
"0.63433754",
"0.6310018",
"0.63026625",
"0.6288825",
"0.62806374",
"0.6264508... | 0.626122 | 21 |
Construct new MusicFestival with different start and end dates | public MusicFestival(int id, String name, String genres, String startDate, String endDate, Location location, String website, Map flags) {
super(FestivalType.MUSIC, id, name, genres, startDate, endDate, location, website);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MusicFestival(int id, String name, String genres, String date, Location location, String website, Map flags) {\n super(FestivalType.MUSIC, id, name, genres, date, location, website);\n }",
"@Test\n public void constructor() {\n Event event1 = new Event(\"Eat Apple\", \"2020-12-12 12:00... | [
"0.56936604",
"0.5311254",
"0.51988065",
"0.5146793",
"0.5102127",
"0.50945634",
"0.5093782",
"0.504595",
"0.5043355",
"0.5013205",
"0.5002127",
"0.4990226",
"0.49594295",
"0.49591047",
"0.4949362",
"0.49293196",
"0.48948634",
"0.48606196",
"0.48540685",
"0.48475084",
"0.4830... | 0.62594503 | 0 |
Construct new MusicFestival with same start and end date | public MusicFestival(int id, String name, String genres, String date, Location location, String website, Map flags) {
super(FestivalType.MUSIC, id, name, genres, date, location, website);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MusicFestival(int id, String name, String genres, String startDate, String endDate, Location location, String website, Map flags) {\n super(FestivalType.MUSIC, id, name, genres, startDate, endDate, location, website);\n }",
"private void makeNewMusic() {\n File f = music.getFile();\n ... | [
"0.6146093",
"0.5312365",
"0.51094955",
"0.5106931",
"0.5086667",
"0.5035509",
"0.49991065",
"0.49843392",
"0.49547955",
"0.49432668",
"0.49430385",
"0.49381343",
"0.4897274",
"0.48929346",
"0.4856884",
"0.48386657",
"0.4825645",
"0.48220766",
"0.48006427",
"0.47762486",
"0.4... | 0.56182426 | 1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof PortalcvGoogledata)) {
return false;
}
PortalcvGoogledata other = (PortalcvGoogledata) object;
if ((this.idgoogledata == null && other.idgoogledata != null) || (this.idgoogledata != null && !this.idgoogledata.equals(other.idgoogledata))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896568",
"0.6839589",
"0.6705305",
"0.66411185",
"0.66411185",
"0.6592062",
"0.65784657",
"0.65784657",
"0.65749544",
"0.65749544",
"0.65749544",
"0.65749544",
"0.65749544",
"0.65749544",
"0.6561728",
"0.6561728",
"0.6545076",
"0.65248877",
"0.651606",
"0.6488212",
"0.647... | 0.0 | -1 |
returns the bytes of the response header. NB: The response header may be a "100 Continue" response. Callers MUST check if the response code is "100", and be prepared to call getHeader() again to retrieve the real response headers, BEFORE calling getResponseContent(). | public byte[] getResponseHeader() throws IOException,
MessageFormatException {
if (state != State.REQUEST_HEADER_SENT
&& state != State.REQUEST_CONTENT_SENT) {
throw new IllegalStateException(
"Ilegal state. Can't read response header when state is "
+ state);
}
InputStream is = socket.getInputStream();
HeaderByteArrayOutputStream header = new HeaderByteArrayOutputStream();
int i = -1;
try {
responseHeaderStartTime = responseHeaderEndTime = 0;
while (!header.isEndOfHeader() && (i = is.read()) > -1) {
if (responseHeaderStartTime == 0) {
responseHeaderStartTime = System.currentTimeMillis();
}
header.write(i);
}
responseHeaderEndTime = System.currentTimeMillis();
} catch (SocketTimeoutException ste) {
logger.fine("Timeout reading response header. Had read "
+ header.size() + " bytes");
if (header.size() > 0) {
logger.fine(AsciiString.create(header.toByteArray()));
}
throw ste;
}
if (i == -1) {
throw new IOException("Unexpected end of stream reading header");
}
MutableResponseHeader.Impl rh = new MutableResponseHeader.Impl();
rh.setHeader(header.toByteArray());
String status = rh.getStatus();
if (status.equals("100")) {
state = State.RESPONSE_CONTINUE;
} else {
state = State.RESPONSE_HEADER_READ;
responseContent = getContentStream(rh, is);
}
return rh.getHeader();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getResponseHeader();",
"private byte[] getHeader(int responseCode, String contentLength, String resourceName) {\n String specificResponse = \"\";\n switch (responseCode) {\n case 200:\n specificResponse = responseCode + \" \" + \"OK\";\n break;\n ... | [
"0.66067487",
"0.62224144",
"0.60734075",
"0.6047497",
"0.6045851",
"0.60192883",
"0.58972424",
"0.5849312",
"0.5846067",
"0.5824619",
"0.5824606",
"0.5824606",
"0.5824606",
"0.58219546",
"0.5821725",
"0.5733887",
"0.5723362",
"0.5693813",
"0.56739575",
"0.56524324",
"0.56330... | 0.63871425 | 1 |
we do it here because we have direct access to the buffer | public boolean isEndOfHeader() {
int i = count;
return i > 4 && buf[i - 4] == '\r' && buf[i - 3] == '\n'
&& buf[i - 2] == '\r' && buf[i - 1] == '\n';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"byte [] getBuffer ();",
"@Override\n protected void releaseBuffer() {\n }",
"@Override\n public void resetBuffer() {\n\n }",
"@Override\n public void onBufferReceived(byte[] buffer) {\n }",
"protected int populateBuffer()\n {\n interlock.beginReading();\n // System.... | [
"0.71157175",
"0.68898124",
"0.67736554",
"0.6694675",
"0.66888934",
"0.66838354",
"0.6674431",
"0.65264475",
"0.6493524",
"0.6478101",
"0.64493066",
"0.6427218",
"0.641968",
"0.64156955",
"0.6396854",
"0.6362852",
"0.627398",
"0.6269056",
"0.6249831",
"0.62453324",
"0.623956... | 0.0 | -1 |
end of setters Getters | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"@Override\n public void saveValues() {\n \n }",
"@Override\n public void get() {}",
"@Override\n protected void updateProperties() {\n }",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n ... | [
"0.691105",
"0.62547433",
"0.60888916",
"0.6072037",
"0.60557246",
"0.6040709",
"0.60385334",
"0.60347986",
"0.60347986",
"0.5991659",
"0.59604335",
"0.5957872",
"0.59438837",
"0.59299064",
"0.5890912",
"0.58878386",
"0.5858102",
"0.5856954",
"0.58443975",
"0.5838427",
"0.581... | 0.0 | -1 |
Hashcode value is derived from the value of the title field. It's good practice for the hash code to be generated based on a value that doesn't change. | @Override
public int hashCode() {
return new HashCodeBuilder(17, 31).
append(title).hashCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override public int hashCode()\n\t{\n\t\tString lowerTitle = title.toLowerCase();\n\t\treturn lowerTitle.hashCode();\n\t}",
"public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_title );\r\n hash ^= hashValue( m_description );\r\n return hash;\r\n ... | [
"0.7613891",
"0.7073317",
"0.681496",
"0.6716711",
"0.6608309",
"0.6589701",
"0.64949316",
"0.64914954",
"0.64836335",
"0.6478701",
"0.64483404",
"0.6446587",
"0.64432555",
"0.6430811",
"0.63792545",
"0.63654447",
"0.63080424",
"0.6246878",
"0.6244148",
"0.6244148",
"0.624039... | 0.7953992 | 0 |
Get create user query | private String getCreateUserSQL(String targetSchemaName) {
return "CREATE USER " + targetSchemaName + ";";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"UserCreateResponse createUser(UserCreateRequest request);",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"@Override\n\tpublic String create... | [
"0.7214235",
"0.7150172",
"0.70833933",
"0.6851008",
"0.6573886",
"0.65280545",
"0.6498391",
"0.6489887",
"0.64741546",
"0.64403474",
"0.64403474",
"0.6384114",
"0.63647217",
"0.63461465",
"0.6337736",
"0.63295454",
"0.63295454",
"0.6313259",
"0.6297989",
"0.6279204",
"0.6279... | 0.609181 | 43 |
private final Map analyticsEventPublishApi; | public void run() {
List<Map> queries = (List<Map>) server.get("queries");
Connection connection = null;
if (queries != null && !queries.isEmpty()) {
String dbServerDisplayName = (String) server.get("displayName");
try {
long timeBeforeConnection = System.currentTimeMillis();
connection = getConnection();
long timeAfterConnection = System.currentTimeMillis();
logger.debug("Time taken to get Connection: " + (timeAfterConnection - timeBeforeConnection));
logger.debug("Time taken to get Connection for " + dbServerDisplayName + " : " + (timeAfterConnection - timeBeforeConnection));
if (connection != null) {
logger.debug(" Connection successful for server: " + dbServerDisplayName);
for (Map query : queries)
executeQuery(connection, query);
} else {
logger.debug("Null Connection returned for server: " + dbServerDisplayName);
}
} catch (SQLException e) {
logger.error("Error Opening connection", e);
status = false;
} catch (ClassNotFoundException e) {
logger.error("Class not found while opening connection", e);
status = false;
} catch (Exception e) {
logger.error("Error collecting metrics for "+dbServerDisplayName, e);
status = false;
}
finally {
try {
if (connection != null) {
closeConnection(connection);
}
} catch (Exception e) {
logger.error("Issue closing the connection", e);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Map<String, Event> getEvents();",
"protected abstract Map<String, Serializable> getEventKeyAndIdMap();",
"public interface WatchApi {\n @C6456g\n @C6468s(mo15750a = \"/aweme/v1/commit/watch/user/\")\n C12466b<WatchStatus> turnPostNotification(@C6455f Map<String, String> map);\n}",
"p... | [
"0.6127826",
"0.5928434",
"0.58580774",
"0.58356756",
"0.56530607",
"0.56009114",
"0.5584829",
"0.5568304",
"0.55413824",
"0.5537267",
"0.5530384",
"0.5504647",
"0.5498978",
"0.545917",
"0.5442627",
"0.54246527",
"0.54044735",
"0.54035616",
"0.53921187",
"0.534082",
"0.528718... | 0.0 | -1 |
Get All function. GET HTTP. | @GetMapping
public List<JoinEvent> getAll() {
return this.service.getAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"public static String getAll() {\n Result r = new Result();\n int status = 0;\n if((status = doGetList(r)) != 200) return \"Error from server \"+ status;\n ... | [
"0.7443682",
"0.7437187",
"0.7437187",
"0.7437187",
"0.7437187",
"0.7437187",
"0.7405791",
"0.71563184",
"0.71276236",
"0.71153164",
"0.7037659",
"0.7009499",
"0.69952613",
"0.69686306",
"0.69634384",
"0.6955507",
"0.69513613",
"0.69476736",
"0.69207454",
"0.69105756",
"0.689... | 0.0 | -1 |
Get One by ID. GET HTTP | @GetMapping("{id}")
public JoinEvent getOne(@PathVariable final Long id) throws NotFoundException {
return this.service.getOne(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T get(ID id);",
"String get(String id);",
"T getById(ID id);",
"Object get(ID id) throws Exception;",
"T getById(int id);",
"T get(Integer id);",
"T readOne(int id);",
"T getById(Long id);",
"T findOne(Long id);",
"public abstract T findOne(int id);",
"Corretor findOne(Long id);",
"@Override\... | [
"0.7745036",
"0.76402014",
"0.7545324",
"0.7538213",
"0.7536532",
"0.7511537",
"0.7337328",
"0.7322631",
"0.72670275",
"0.72222525",
"0.72130316",
"0.71822417",
"0.71423465",
"0.71198595",
"0.71026325",
"0.709036",
"0.70769054",
"0.7035131",
"0.7030636",
"0.7025432",
"0.70231... | 0.0 | -1 |
Update an Join. PUT HTTP. | @PutMapping("{id}")
public JoinEvent update(@PathVariable final Long id, @Valid @RequestBody final JoinEvent inscription)
throws BadRequestException, NotFoundException {
final JoinEvent entity = this.service.getOne(id);
// Use ObjectMapper mapper = new ObjectMapper();
return this.service.create(entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update(Join j) {\n\t\tString sql = \"update Join set pwd = ?, name = ?, email = ? where id = ?\";\n\t\tPreparedStatement pstmt = null;\n\t\tSystem.out.println(\"dao\"+j.getId());\n\t\tSystem.out.println(\"dao\"+j.getPwd());\n\t\tSystem.out.println(\"dao\"+j.getName());\n\t\tSystem.out.prin... | [
"0.647337",
"0.5290082",
"0.52789176",
"0.52256984",
"0.52175975",
"0.5188345",
"0.516914",
"0.51579386",
"0.51437855",
"0.5093376",
"0.5067946",
"0.50532055",
"0.5050152",
"0.501687",
"0.5002506",
"0.49938044",
"0.49897826",
"0.4961955",
"0.49616557",
"0.49489582",
"0.494084... | 0.5498414 | 1 |
Delete one by ID. DELETE HTTP. | @DeleteMapping("{id}")
@ResponseStatus(HttpStatus.NO_CONTENT)
public void delete(@PathVariable final Long id) throws NotFoundException {
this.service.delete(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(int id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer i... | [
"0.8131957",
"0.8131957",
"0.8131957",
"0.8131957",
"0.8131957",
"0.80712426",
"0.8047114",
"0.8047114",
"0.8047114",
"0.80083144",
"0.80083144",
"0.80083144",
"0.80083144",
"0.80083144",
"0.80083144",
"0.80083144",
"0.80083144",
"0.80083144",
"0.80083144",
"0.7990518",
"0.79... | 0.0 | -1 |
adapterLevel = new AdapterLevel(lista, null, getActivity().getAssets()); | @RequiresApi(api = Build.VERSION_CODES.M)
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
Objects.requireNonNull(getDialog().getWindow())
.getAttributes().windowAnimations = R.style.DialogAnimation2;
Objects.requireNonNull(getDialog().getWindow()).setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
}
View view = inflater.inflate(R.layout.fragment_fragment__levels, container, false);
msj = view.findViewById(R.id.tv_msj_level_modal);
msj2 = view.findViewById(R.id.tv_msj_level_modal2);
Typeface custom_font = Typeface.createFromAsset(getActivity().getAssets(), "fonts/font.ttf");
msj.setTypeface(custom_font);
msj2.setTypeface(custom_font);
pp1 = view.findViewById(R.id.iv1pp);
pp0_5 = view.findViewById(R.id.iv0_5pp);
ll1 = view.findViewById(R.id.iv1ll);
ll0_5 = view.findViewById(R.id.iv0_5ll);
note_button = view.findViewById(R.id.iv2);
note_image = view.findViewById(R.id.image_skin);
switch_autoplay = view.findViewById(R.id.switch_autoplay);
avBar= view.findViewById(R.id.seekBar_av);
tv_FD=view.findViewById(R.id.tv_fd);
/*TextView tv1 = view.findViewById(R.id.tvsped);
TextView tv2 = view.findViewById(R.id.tvsped2);
TextView tv3 = view.findViewById(R.id.tvsped3);
TextView tv4 = view.findViewById(R.id.tvsped4);*/
TextView tv5 = view.findViewById(R.id.title_apear);
tvRush = view.findViewById(R.id.tvrush);
tvJudge = view.findViewById(R.id.tv_judge);
TextView title3 = view.findViewById(R.id.tv_msj_level_modal3);
title3.setTypeface(custom_font);
tv5.setTypeface(custom_font);
//tvRush.setTypeface(custom_font);
tvJudge.setTypeface(custom_font);
switch_autoplay.setTypeface(custom_font);
tvRush.setOnClickListener(v -> {
ParamsSong.rush += 0.1f;
if (ParamsSong.rush > 1.5f) {
ParamsSong.rush = 0.8f;
}
songList.playSoundPool(songList.spSelect);
setTxtRush();
});
switch_autoplay.setChecked(ParamsSong.autoplay);
switch_autoplay.setOnCheckedChangeListener((buttonView, isChecked) -> ParamsSong.autoplay = isChecked);
tvJudge.setOnClickListener(v -> {
ParamsSong.judgment = (ParamsSong.judgment + 1) % 7;
setTxtJudge();
songList.playSoundPool(songList.spSelect);
});
setTxtJudge();
setTxtRush();
pp1.setOnClickListener(v -> {
velocity += 1;
changeVelocity();
songList.playSoundPool(songList.spSelect);
});
pp0_5.setOnClickListener(v -> {
velocity += 0.5f;
songList.playSoundPool(songList.spSelect);
changeVelocity();
});
ll1 = view.findViewById(R.id.iv1ll);
ll1.setOnClickListener(v -> {
velocity -= 1;
songList.playSoundPool(songList.spSelect);
changeVelocity();
});
ll0_5.setOnClickListener(v -> {
velocity -= 0.5f;
songList.playSoundPool(songList.spSelect);
changeVelocity();
});
tv_FD.setOnClickListener(v->{
ParamsSong.FD=!ParamsSong.FD;
setFD();
});
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
skins = NoteSkin.arraySkin(getContext());
indexNS = ParamsSong.skinIndex;
setImageNS();
}
avBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
int av=progress*10;
ParamsSong.av=av;
if (av==0){
msj.setText("AV OFF");
msj2.setText("Velocity " + ParamsSong.speed);
}
else {
setAv();
}
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {}
@Override
public void onStopTrackingTouch(SeekBar seekBar) { }
});
note_button.setOnClickListener(v -> changeNS());
note_image.setOnClickListener(v -> changeNS());
if (ParamsSong.av>0){
avBar.setProgress(ParamsSong.av/10);
setAv();
}else{
changeVelocity();}
setFD();
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inicializarAdaptador()\n {\n //creamos el adaptador y le pasamos el arreglo de mascotas, en que activity estamos\n //y el numero es para saber en la clase MascotaAdaptador como mostrara los datos y si seran clicables o no\n MascotaAdaptador adaptador = new MascotaAdaptador(masco... | [
"0.6397903",
"0.63615197",
"0.6337322",
"0.6292698",
"0.62899643",
"0.62216944",
"0.6173149",
"0.61626494",
"0.6162145",
"0.6128017",
"0.60716003",
"0.6062326",
"0.6022272",
"0.60188764",
"0.60123134",
"0.6010037",
"0.59963596",
"0.59914404",
"0.5961448",
"0.59602314",
"0.595... | 0.0 | -1 |
attach the Details fragment listener to the MainActivity | @Override
public void onAttach(Context context) {
super.onAttach(context);
listener = (DeleteFishListener) context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void detailScreenFragment(CarDetail carDetail) {\n\n Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.main_container);\n\n if (!(fragment instanceof DetailScreenFragment)) {\n\n DetailScreenFragment detailScreenFragment = new DetailScreenFragment(MainActivity.th... | [
"0.6936476",
"0.6321724",
"0.62969375",
"0.6265365",
"0.6238797",
"0.6233724",
"0.6206044",
"0.6181598",
"0.61746395",
"0.615463",
"0.6148546",
"0.60987955",
"0.60731876",
"0.6040862",
"0.60383826",
"0.6037529",
"0.5987634",
"0.5971758",
"0.59577096",
"0.5956722",
"0.5942838"... | 0.0 | -1 |
remove DetailsFragmentListener when fragment detached | @Override
public void onDetach() {
super.onDetach();
listener = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onDetach() {\n super.onDetach();\n Log.i(sFragmentName, \"onDetach()\");\n }",
"@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\tLog.d(\"Fragment02\",\"onDetach\");\n\t}",
"@Override\n public void onDetach() {\n super.onDetach();\n L... | [
"0.7326124",
"0.7249597",
"0.7051537",
"0.6963515",
"0.68612385",
"0.6776517",
"0.66889155",
"0.66506255",
"0.6525512",
"0.6497705",
"0.6497705",
"0.64678746",
"0.6436033",
"0.64102834",
"0.6358593",
"0.6350721",
"0.6325348",
"0.6313801",
"0.6309378",
"0.6308465",
"0.62456185... | 0.71111625 | 3 |
Notice that if f < function(fumble, fooey) fbody, then f(f = 1, fo = 2) is illegal, even though the 2nd actual argument only matches fooey. f(f = 1, fooey = 2) is legal though since the second argument matches exactly and is removed from consideration for partial matching. | @Test
public void partialAndExactMatching() {
eval( "f <- function(fumble, fooey) { fumble ^ fooey } ");
assertThat( eval( "f(f = 3, fooey = 4)"), equalTo( c(81) ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void higherOrderFunction(Function<Integer, Integer> function2,\n Predicate<Integer> predicate){\n System.out.println(\"Higher fn1: \" + function2.apply(10)); // output: Higher fn1: 11\n System.out.println(\"Higher fn2: \" + predicate.test(10)); // output: Higher fn2: fals... | [
"0.5603079",
"0.55802524",
"0.5172455",
"0.500482",
"0.49992347",
"0.49294543",
"0.48500562",
"0.4836533",
"0.47945625",
"0.47892296",
"0.47650656",
"0.47466215",
"0.47430393",
"0.46900707",
"0.46669823",
"0.46404433",
"0.46331292",
"0.4628779",
"0.4613647",
"0.4603893",
"0.4... | 0.57353735 | 0 |
this fails in R2.1.0 but I think this behavior is more consistent! | @Test
public void autoPrintingFun2() {
eval( "f <- function( a = if(FALSE) {1 } ) { a; a}" );
eval( "f()");
assertThat(topLevelContext.getGlobals().isInvisible(), equalTo(false));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"public boolean method_2434() {\r\n return false;\r\n }",
"public boolean method_4088() {\n return false;\n }",
"public boolean method_4132() {\n return false;\n }",
"... | [
"0.59391904",
"0.59105444",
"0.57001966",
"0.5667149",
"0.5665009",
"0.5649787",
"0.5630345",
"0.5615937",
"0.557463",
"0.55332345",
"0.55208707",
"0.55107045",
"0.54760116",
"0.547598",
"0.546162",
"0.54531753",
"0.54084265",
"0.53675336",
"0.5324425",
"0.53225994",
"0.53168... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "D:\\Work\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.jqueryui.com/droppable/");
Actions ac =new Actions(driver);
driver.switchTo().frame(driver.findElement(By.cssSelector("iframe[class='demo-frame']")));
WebElement source=driver.findElement(By.id("draggable"));
WebElement target=driver.findElement(By.id("droppable"));
Thread.sleep(5000);
ac.dragAndDrop(source, target).build().perform();
System.out.println("Drag and Drop Performed");
} | {
"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 |
Test a cell with a non integer value (voids R1) | @Test
public void TestR1NonIntegerParseableChars() {
String invalid_solution = "a74132865635897241812645793126489357598713624743526189259378416467251938381964572";
assertEquals(-1, sv.verify(invalid_solution));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean checkIfCellHasValue(int row, int col);",
"@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}",
"private Boolean pointNotMyCell(Position3D cell,int d, int r, int c) {\n return !(d == cell.getDepthIndex() && c == cell.getColumnIndex() && r == cell.get... | [
"0.6828605",
"0.647043",
"0.6018005",
"0.6012304",
"0.5846494",
"0.583722",
"0.58328503",
"0.5816668",
"0.5775935",
"0.5752035",
"0.57343507",
"0.56991637",
"0.5638374",
"0.5629241",
"0.55385095",
"0.55208194",
"0.5510888",
"0.55072033",
"0.54636973",
"0.546143",
"0.545803",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
} | {
"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 onResume() {
super.onResume();
Intent intent = getIntent();
if (intent != null) {
if (action == null) {
return;
}
if (action.equals(ACTION_NEWS)) {
} else if (action.equals(ACTION_FORM)) {
intent.setClass(this, BalanceActivity.class);
intent.putExtra(BalanceActivity.META_TYPE, id);
intent.setAction(BalanceActivity.ACTION_PUSH);
startActivity(intent);
}
}
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ renamed from: com.zhihu.android.api.service2.b / compiled from: ActionCardService | public interface ActionCardService {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ICardService {\r\n /**\r\n * 查询帖子\r\n * @param params {\"bbsid\": 1, \"housename\": \"test\"}\r\n * @return\r\n * @throws Exception\r\n */\r\n String search(String params) throws Exception;\r\n\r\n /**\r\n * 创建帖子\r\n * @param params {'bbsId':1,'customerId':1,'c... | [
"0.6838698",
"0.67200977",
"0.67152774",
"0.6397176",
"0.6160928",
"0.614935",
"0.6126729",
"0.61066407",
"0.6027054",
"0.60138243",
"0.5976392",
"0.59216034",
"0.5856966",
"0.56978345",
"0.5655028",
"0.56481874",
"0.5635243",
"0.56160337",
"0.55827224",
"0.5576024",
"0.55701... | 0.7593095 | 0 |
Make sure we have a view to work with (may have been given null) | @Override
public View getView(int position, View convertView, ViewGroup parent) {
View itemView = convertView;
if (itemView == null)
itemView = getActivity().getLayoutInflater().inflate(
R.layout.vote_item, parent, false);
Vote postedVote = votes.get(position);
User postedUser = users.get(position);
TextView nameText = (TextView) itemView
.findViewById(R.id.textView1);
nameText.setText(postedUser.getUsername());
TextView qText = (TextView) itemView.findViewById(R.id.textView2);
qText.setText(postedVote.getVoteQ());
final TextView condionText = (TextView) itemView
.findViewById(R.id.textView3);
CountDownTimer cdt = counters.get(condionText);
if (cdt != null) {
cdt.cancel();
cdt = null;
}
Date date = new Date();
Timestamp now = new Timestamp(date.getTime());
long diff = postedVote.getEndAt().getTime() - now.getTime();
if (diff <= 0)
condionText.setText("Finished");
else {
cdt = new CountDownTimer(diff, 1000) {
public void onTick(long millisUntilFinished) {
long seconds = millisUntilFinished / 1000;
long minutes = seconds / 60;
long hours = minutes / 60;
long days = hours / 24;
String time = days + " : " + hours % 24 + " : "
+ minutes % 60 + " : " + seconds % 60;
condionText.setText("Remaining: " + time);
}
public void onFinish() {
condionText.setText("Finished");
}
};
counters.put(condionText, cdt);
cdt.start();
}
return itemView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }",
"public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }",
"public boolean getViewMissing() {\n return view == null;\n }",
"protected ReliedOnView() {}",
"protected abstract void in... | [
"0.7088772",
"0.7088772",
"0.70363116",
"0.68597436",
"0.68020785",
"0.675205",
"0.6735718",
"0.6735718",
"0.6722342",
"0.6722342",
"0.6699008",
"0.6685256",
"0.6685256",
"0.6644515",
"0.6638025",
"0.6588466",
"0.6588466",
"0.65810776",
"0.65620726",
"0.6554065",
"0.65470195"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View arg0) {
Intent in = new Intent();
in.setClass(CollegeDetails.this,CollegeCourses.class);
startActivity(in);
//finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent in=new Intent(Intent.ACTION_VIEW,Uri.parse(uri));
startActivity(in);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent in = new Intent();
in.setClass(CollegeDetails.this,CollegePlacements.class);
startActivity(in);
//finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent in = new Intent();
in.setClass(CollegeDetails.this,CollegeContact.class);
startActivity(in);
// finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent in=new Intent(Intent.ACTION_VIEW,Uri.parse(uri2));
startActivity(in);
} | {
"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 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_college_details, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.72474307",
"0.720233",
"0.71960056",
"0.7177653",
"0.71080536",
"0.70401675",
"0.7038553",
"0.70127106",
"0.7010449",
"0.6981193",
"0.6946711",
"0.694019",
"0.6934445",
"0.69181925",
"0.69181925",
"0.68916565",
"0.6884232",
"0.6875887",
"0.6875264",
"0.68624145",
"0.686241... | 0.0 | -1 |
Devuelve un funcionario por dni | public Persona funcionarioByDNI(String usr_login) throws Exception {
Persona f = null;
ResultSet consulta = conDao
.consultaSQL("SELECT p.per_id as dni , p.per_nombres as nombres, "
+ " p.per_apellidos as apellidos, p.per_correo as correo, "
+ " f.fun_cargo as cargo, f.fun_jefe_inmediato as jefe, f.fun_gerencia as gerencia, f.fun_direccion as direccion, "
+ " (select pe.per_nombres||' '||pe.per_apellidos "
+ " from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as nombreJefe "
+ " FROM gen_persona p INNER JOIN gen_usuario u ON p.per_id = u.per_id "
+ " INNER JOIN gen_funcionario f on f.per_id = u.per_id "
+ " WHERE u.usu_login = '" + usr_login + "'");
if (consulta != null) {
consulta.next();
f = new Persona();
f.setPerDNI(consulta.getString("dni"));
f.setPerNombres(consulta.getString("nombres"));
f.setPerApellidos(consulta.getString("apellidos"));
f.setPerCorreo(consulta.getString("correo"));
f.setCargo(consulta.getString("cargo"));
f.setJefeInmediato(consulta.getString("jefe"));
f.setPerGerencia(consulta.getString("gerencia"));
f.setPerDireccion(consulta.getString("direccion"));
}
return f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"public void llamarFuncion(String nombreFuncion, String symb, Integer in) throws Exception{\n\n boolean running = false;\n java.lang.reflect.Method method = null;\n try{\n method = this.getClass().getMethod(... | [
"0.643819",
"0.62720454",
"0.6259701",
"0.6114805",
"0.6114171",
"0.6069006",
"0.59915394",
"0.5979856",
"0.5885388",
"0.5775184",
"0.5745731",
"0.5692413",
"0.56814",
"0.5680593",
"0.5652999",
"0.5629445",
"0.5581748",
"0.55632734",
"0.55543125",
"0.5538942",
"0.5538942",
... | 0.0 | -1 |
Devuelve un funcionario por dni | public Persona personasolicitudByDNI(String per_id) throws Exception {
Persona f = null;
ResultSet consulta = conDao
.consultaSQL("SELECT p.per_id as dni , p.per_nombres as nombres, "
+ " p.per_apellidos as apellidos, p.per_correo as correo, "
+ " f.fun_cargo as cargo, f.fun_jefe_inmediato as jefe, f.fun_gerencia as gerencia, f.fun_direccion as direccion, "
+ " (select pe.per_nombres||' '||pe.per_apellidos "
+ " from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as nombreJefe, "
+ " (select pe.per_correo from gen_persona pe where pe.per_id=f.fun_jefe_inmediato) as correojefeinmediato"
+ " FROM gen_persona p INNER JOIN gen_usuario u ON p.per_id = u.per_id "
+ " INNER JOIN gen_funcionario f on f.per_id = u.per_id "
+ " WHERE p.per_id = '" + per_id + "'");
if (consulta != null) {
consulta.next();
f = new Persona();
f.setPerDNI(consulta.getString("dni"));
f.setPerNombres(consulta.getString("nombres"));
f.setPerApellidos(consulta.getString("apellidos"));
f.setPerCorreo(consulta.getString("correo"));
f.setCargo(consulta.getString("cargo"));
f.setJefeInmediato(consulta.getString("jefe"));
f.setPerGerencia(consulta.getString("gerencia"));
f.setPerDireccion(consulta.getString("direccion"));
f.setCorreoJefeInmediato(consulta.getString("correojefeinmediato"));
}
return f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"public void llamarFuncion(String nombreFuncion, String symb, Integer in) throws Exception{\n\n boolean running = false;\n java.lang.reflect.Method method = null;\n try{\n method = this.getClass().getMethod(... | [
"0.64365965",
"0.62694365",
"0.6258089",
"0.61135626",
"0.6112208",
"0.60661143",
"0.5990464",
"0.59781134",
"0.5884346",
"0.5772366",
"0.5745298",
"0.56905884",
"0.5681127",
"0.56783533",
"0.5651151",
"0.5629459",
"0.5580642",
"0.5562106",
"0.5553196",
"0.55374193",
"0.55374... | 0.0 | -1 |
Devuelve un funcionario por dni | public Oferta ValorMaximoXItem1(Integer item_id) throws Exception {
Oferta o = null;
System.out.println(item_id);
ResultSet consulta = conDao
.consultaSQL("select o.ofer_id as id, o.pos_id as post, o.item_id as item, o.ofer_valor_oferta as valormaximo, "
+ "o.ofer_fecha_oferta as fechaofer FROM sub_ofertas o WHERE o.ofer_fecha_oferta=(SELECT MIN(p.ofer_fecha_oferta) "
+ "FROM sub_ofertas p where p.item_id = "
+ item_id
+ " "
+ "and p.ofer_valor_oferta= (SELECT MAX(q.ofer_valor_oferta) FROM sub_ofertas q))");
if (consulta != null) {
consulta.next();
o = new Oferta();
System.out.println("entra a la consulta");
o.setOferId(Integer.parseInt(consulta.getString("id")));
o.setSubPostulante(consulta.getString("post"));
o.setSubItem(Integer.parseInt(consulta.getString("item")));
o.setOferValorOferta(new BigDecimal(consulta
.getString("valormaximo")));
o.setOferFechaOferta(new Timestamp(Funciones.stringToDate(
consulta.getString("fechaofer")).getTime()));
}
return o;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"public void llamarFuncion(String nombreFuncion, String symb, Integer in) throws Exception{\n\n boolean running = false;\n java.lang.reflect.Method method = null;\n try{\n method = this.getClass().getMethod(... | [
"0.64364654",
"0.6269808",
"0.625928",
"0.61131793",
"0.611251",
"0.60664284",
"0.59894556",
"0.5978655",
"0.58825696",
"0.577275",
"0.5746076",
"0.56901205",
"0.5680483",
"0.5678926",
"0.56532323",
"0.5629516",
"0.55801874",
"0.55622274",
"0.55521476",
"0.55377287",
"0.55377... | 0.0 | -1 |
Consulta para buscar la aplicacion del usuario | public static String consultaSQL(String usr) throws Exception {
String cc = "jdbc:postgresql://10.1.0.158:5432/app_permisos?user=adm_svcyachay&password=_50STg-FGh2h";
Connection conexion = null;
Statement comando = null;
ResultSet resultado = null;
try {
Class.forName("org.postgresql.Driver");
conexion = DriverManager.getConnection(cc);
comando = conexion.createStatement();
resultado = comando
.executeQuery("SELECT per_id FROM app_usuario WHERE usu_login = '"
+ usr + "';");
if (resultado.next()) {
return resultado.getString("per_id");
} else {
return null;
}
} catch (Exception e) {
throw new Exception(e.getMessage());
} finally {
if (resultado != null)
resultado.close();
if (comando != null)
comando.close();
if (conexion != null)
conexion.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/consultarusuariossistema\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse findallusers(@RequestParam String llave_seguridad, HttpServletRequest request)\n {\n CommonsResponse response = new CommonsResponse();\n Map<S... | [
"0.66923434",
"0.655472",
"0.64945185",
"0.6473411",
"0.6383944",
"0.6334305",
"0.62794125",
"0.61760813",
"0.61694896",
"0.61320126",
"0.61320126",
"0.61310714",
"0.6107575",
"0.6072451",
"0.60626334",
"0.6058406",
"0.60479057",
"0.60305727",
"0.6022271",
"0.6008612",
"0.600... | 0.5651558 | 79 |
Converts a modern server list ping response into an legacy disconnect packet. | public static LegacyDisconnect fromServerPing(ServerPing response,
LegacyMinecraftPingVersion version) {
Players players = response.getPlayers().orElse(FAKE_PLAYERS);
switch (version) {
case MINECRAFT_1_3:
// Minecraft 1.3 and below use the section symbol as a delimiter. Accordingly, we must
// remove all section symbols, along with fetching just the first line of an (unformatted)
// MOTD.
return new LegacyDisconnect(String.join(LEGACY_COLOR_CODE,
cleanSectionSymbol(getFirstLine(PlainComponentSerializer.INSTANCE.serialize(response.getDescription()))),
Integer.toString(players.getOnline()),
Integer.toString(players.getMax())));
case MINECRAFT_1_4:
case MINECRAFT_1_6:
// Minecraft 1.4-1.6 provide support for more fields, and additionally support color codes.
return new LegacyDisconnect(String.join("\0",
LEGACY_COLOR_CODE + "1",
Integer.toString(response.getVersion().getProtocol()),
response.getVersion().getName(),
getFirstLine(LegacyComponentSerializer.legacy().serialize(response.getDescription())),
Integer.toString(players.getOnline()),
Integer.toString(players.getMax())
));
default:
throw new IllegalArgumentException("Unknown version " + version);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;",
"public void sendUnbindResponse(Pdu packet);",
"protected abstract void disconnect(UUID[] players, String reason, IntConsumer response);",
"public static void parseResponse(byte[] response) {\n int qr = ((response[2] & 0b100000... | [
"0.530594",
"0.507344",
"0.4987595",
"0.489943",
"0.48835996",
"0.48728126",
"0.47958636",
"0.46849808",
"0.4675309",
"0.4671911",
"0.4652229",
"0.465035",
"0.46412084",
"0.46349224",
"0.46324697",
"0.46112347",
"0.460679",
"0.46046394",
"0.4602288",
"0.45869136",
"0.45781803... | 0.690765 | 0 |
set unique host id to each host | public Host()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHostId(Integer hostId) {\n this.hostId = hostId;\n }",
"public String getHostID() { return hostID; }",
"public Integer getHostId() {\n return hostId;\n }",
"public String getHostId() {\n\t\treturn (hid);\n\t}",
"public void setHostId(String hid) {\n\t\tthis.hid = hid;\n\t... | [
"0.689578",
"0.6676711",
"0.652107",
"0.62029785",
"0.6125283",
"0.6085835",
"0.60564786",
"0.5920325",
"0.59133327",
"0.58925384",
"0.5890942",
"0.58179146",
"0.58129597",
"0.5781169",
"0.5747782",
"0.5745437",
"0.5735353",
"0.56880945",
"0.56612235",
"0.56186044",
"0.561800... | 0.0 | -1 |
processLifecycleEvent: Invoked when the registered event is triggered. | @Override
public void processLifecycleEvent(LifecycleEvent lifecycleEvent) throws ActionException {
// okay, we need the user login for the event
User user = null;
try {
user = PortalUtil.getUser(lifecycleEvent.getRequest());
}
catch (PortalException e) {
_logger.error("Error accessing login user: " + e.getMessage(), e);
}
if (user == null) {
_logger.warn("Could not find the logged in user, nothing to track.");
return;
}
// we have the user, let's invoke the service
getService().updateUserLogin(user.getUserId(), new Date());
// alternatively we could just use the local service util:
// UserLoginLocalServiceUtil.updateUserLogin(user.getUserId(), new
// Date());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onEvent(GuiceyLifecycleEvent event);",
"public void processEvent(Event event) {\n\t\t\n\t}",
"public void setLifecycle(String lifecycle) {\n this.lifecycle = lifecycle;\n }",
"@Override\n\tpublic void addLifecycleListener(LifecycleListener listener) {\n\t\tlifecycle.addLifecycleListener(listener);\n... | [
"0.66680723",
"0.58450574",
"0.5719313",
"0.5599819",
"0.5587146",
"0.55627483",
"0.55225337",
"0.55078626",
"0.5449885",
"0.54470587",
"0.54053724",
"0.5398531",
"0.53803915",
"0.53754896",
"0.53298414",
"0.53298414",
"0.53202444",
"0.52759373",
"0.52656436",
"0.52290654",
"... | 0.50636107 | 32 |
getService: Returns the user tracker service instance. | public UserLoginLocalService getService() {
ServiceTracker<UserLoginLocalService, UserLoginLocalService> userLoginLocalServiceTracker = _registry
.trackServices(UserLoginLocalService.class);
userLoginLocalServiceTracker.open();
UserLoginLocalService userLoginLocalService = userLoginLocalServiceTracker.getService();
userLoginLocalServiceTracker.close();
return userLoginLocalService;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static OpUserService getService() {\r\n return (OpUserService) XServiceManager.getService(OpUserServiceImpl.SERVICE_NAME);\r\n }",
"@NotNull\n public static UsageTracker getInstance() {\n return ServiceManager.getService(UsageTracker.class);\n }",
"public UserService getUserService() {\n ... | [
"0.6916916",
"0.69151473",
"0.6866877",
"0.6449575",
"0.64362085",
"0.6378984",
"0.6378984",
"0.6378984",
"0.6244714",
"0.6222658",
"0.6219724",
"0.6211326",
"0.6111279",
"0.61035264",
"0.6078996",
"0.5990499",
"0.5985869",
"0.5965072",
"0.5939874",
"0.5936367",
"0.59330875",... | 0.65280014 | 3 |
Start RMI registry on port 3000 | public static void main(String[] args) throws Exception {
LocateRegistry.createRegistry(DBRASSchemeInterface.PORT, new SslRMIClientSocketFactory(), new SslRMIServerSocketFactory(null,null, true));
System.out.println("RMI registry running on port "+DBRASSchemeInterface.PORT);
// Sleep forever
Thread.sleep(Long.MAX_VALUE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RegistryImpl(int port) throws RemoteException\n {\n Skeleton skeleton = new Skeleton(this, \"127.0.0.1\", port, 0);\n skeleton.start();\n }",
"public void launch(int port) {\n try {\n Registry registry = LocateRegistry.createRegistry( port );\n\n EchoServic... | [
"0.66144305",
"0.65108496",
"0.64095765",
"0.6407409",
"0.64053476",
"0.63890314",
"0.6341148",
"0.63022363",
"0.62757164",
"0.6217066",
"0.62020814",
"0.6179995",
"0.6097485",
"0.6052539",
"0.60412604",
"0.603546",
"0.60063195",
"0.59929246",
"0.59603256",
"0.5945981",
"0.59... | 0.60033125 | 17 |
Gets the Speed Multiplier | public float getSMultiplier(){
return this.SMultiplier;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Double getMultiplier();",
"public double getMultiplier() {\r\n return multiplier;\r\n }",
"public double getMultiplier() {\n\t\t\tint currentWidth = Display.getWidth();\n\t\t\treturn currentWidth / (double) width;\n\t\t}",
"public double getMultiplier() {\n return genericModifier.getMultipli... | [
"0.75275624",
"0.7175658",
"0.69524086",
"0.69325465",
"0.69240254",
"0.68838465",
"0.6779908",
"0.67793584",
"0.67765063",
"0.6757976",
"0.67446965",
"0.66957223",
"0.6613561",
"0.66065884",
"0.65875655",
"0.6576984",
"0.6576984",
"0.6576984",
"0.6576984",
"0.6576984",
"0.65... | 0.682005 | 6 |
Sets the Speed Multiplier | public void setSMultiplier(float SMultiplier){
this.SMultiplier = SMultiplier;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSpeed(double multiplier);",
"public void setSpeed(int newTicksMultiplier) {\r\n this.ticksMultiplier = newTicksMultiplier;\r\n }",
"public void setSpeed(float val) {speed = val;}",
"public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\... | [
"0.8512374",
"0.7338015",
"0.71426004",
"0.70535064",
"0.69823945",
"0.6950835",
"0.6890979",
"0.687274",
"0.6861504",
"0.6853363",
"0.6808921",
"0.6786529",
"0.6756733",
"0.67014617",
"0.66793567",
"0.66503423",
"0.66186845",
"0.6605856",
"0.6589998",
"0.6552977",
"0.6514337... | 0.6656754 | 15 |
Gets the Entity of this Asteroid | public Entity getEntity() {
return DodgeBlawk.getDataManager().getEntity(getId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public E getEntity() {\n return this.entity;\n }",
"@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}",
"public Entity getEntity() {\n\t\treturn entity;\n\t}",
"public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity =... | [
"0.70698506",
"0.70497596",
"0.702124",
"0.69028246",
"0.68727857",
"0.68727857",
"0.68727857",
"0.6863593",
"0.67847615",
"0.67764425",
"0.6699331",
"0.668074",
"0.6502452",
"0.6447033",
"0.6424471",
"0.64219487",
"0.641238",
"0.63271135",
"0.6246967",
"0.6245848",
"0.620145... | 0.7226943 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.