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 |
|---|---|---|---|---|---|---|
Reads listener config from the config repository and caches its content in to the hash table. | public static void load() {
log.info("Config : loading Listener info"); //$NON-NLS-1$
Collection children = Collections.EMPTY_LIST;
try {
Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);
Content conf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Int... | [
"0.60903096",
"0.5985098",
"0.58911544",
"0.58204746",
"0.5777559",
"0.57749975",
"0.5648328",
"0.56114227",
"0.55775744",
"0.55724293",
"0.5565359",
"0.55298257",
"0.55042905",
"0.55030096",
"0.54898036",
"0.54653233",
"0.545627",
"0.5396869",
"0.53715366",
"0.5338612",
"0.5... | 0.7265359 | 0 |
Register an event listener: reload cache configuration when something changes. | private static void registerEventListener() {
log.info("Registering event listener for Listeners"); //$NON-NLS-1$
try {
ObservationManager observationManager = ContentRepository
.getHierarchyManager(ContentRepository.CONFIG)
.getWorkspace()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onEnable(AutoReloadEvent event) {\n }",
"@EventListener(ContextRefreshedEvent.class)\n public void contextRefreshEvent() {\n\n MapConfigurationRegistrySingleton.getSingleton()\n .merge(mapConfigurationRegistry);\n }",
"void addChangeListener(Consumer<Co... | [
"0.6240319",
"0.6169908",
"0.6160754",
"0.6042286",
"0.5922371",
"0.5861004",
"0.5793402",
"0.5734315",
"0.5700436",
"0.56857574",
"0.5646081",
"0.5638458",
"0.55740875",
"0.55637926",
"0.5507482",
"0.5498567",
"0.5475532",
"0.5466416",
"0.5466069",
"0.54508114",
"0.54462004"... | 0.6763143 | 0 |
Cache listener content from the config repository. | private static void cacheContent(Collection listeners) {
Iterator ipList = listeners.iterator();
while (ipList.hasNext()) {
Content c = (Content) ipList.next();
try {
Map types = new Hashtable();
Listener.cachedContent.put(c.getNodeData("IP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void load() {\r\n\r\n log.info(\"Config : loading Listener info\"); //$NON-NLS-1$\r\n\r\n Collection children = Collections.EMPTY_LIST;\r\n\r\n try {\r\n\r\n Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);\r\... | [
"0.6856741",
"0.64044464",
"0.5512727",
"0.5503422",
"0.5417318",
"0.53885835",
"0.537969",
"0.5314309",
"0.53010815",
"0.52465314",
"0.5231444",
"0.5221378",
"0.51964",
"0.51950336",
"0.51888394",
"0.51617885",
"0.5152821",
"0.51489604",
"0.50971633",
"0.50707704",
"0.505139... | 0.71349734 | 0 |
Get access info of the requested IP. | public static Map getInfo(String key) throws Exception {
return (Hashtable) Listener.cachedContent.get(key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getInIp();",
"int getInIp();",
"int getIp();",
"int getIp();",
"int getIp();",
"String getIp();",
"String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp()... | [
"0.64746916",
"0.64746916",
"0.64007574",
"0.64007574",
"0.64007574",
"0.6373828",
"0.6373828",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6205542",
"0.61352587",
"0.61352587",
"0.612378",
"0.60516346",
"0.603410... | 0.0 | -1 |
Punto punto = new Punto(AutoIncremental.getAutoIncremental(), lat, lng); | @POST
@Consumes({MediaType.APPLICATION_FORM_URLENCODED, MediaType.APPLICATION_JSON} )
@Produces(MediaType.TEXT_HTML)
public void createPunto(Punto punto,
@Context HttpServletResponse servletResponse) throws IOException {
punto.setId(AutoIncremental.getAutoIncremental());
puntoService.agregarPunto(punto);
se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"public Plato(){\n\t\t\n\t}",
"Punto(){\r\n x=0;\r\n y=0;\r\n }",
"public TrazoLibre(Point2D punto) {\n this.linea = new ArrayList();\n this.linea.add(punto);\n }",
"public... | [
"0.6911025",
"0.6436523",
"0.62294835",
"0.62216574",
"0.62120515",
"0.6207147",
"0.6153126",
"0.6014229",
"0.5969758",
"0.5942968",
"0.5757354",
"0.57083404",
"0.5693636",
"0.56899196",
"0.56514496",
"0.5647534",
"0.56361675",
"0.56340516",
"0.56012046",
"0.5595928",
"0.5595... | 0.0 | -1 |
Created by Administrator on 2017/2/15. | public interface OrderMessageContract {
interface Presenter extends BasePresenter {
/**
* 获取消息列表
*/
void getMessage(String type, int page);
/**
* 删除消息
*/
void postDeleteMessage(List<ListBean> masageList);
/**
* 标记已读
*/
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Overr... | [
"0.628928",
"0.6083472",
"0.5852473",
"0.5843063",
"0.5812415",
"0.5797142",
"0.57966673",
"0.57447124",
"0.56976366",
"0.56908596",
"0.568323",
"0.56806725",
"0.56806725",
"0.5674008",
"0.56720704",
"0.56720704",
"0.5661574",
"0.56548154",
"0.56397563",
"0.5635253",
"0.56285... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_reports, container, false);
unbinder = ButterKnife.bind(this, view);
mFromButton.setText("From: " + mPre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
When binding a fragment in onCreateView, set the views to null in onDestroyView. ButterKnife returns an Unbinder on the initial binding that has an unbind method to do this automatically. | @Override public void onDestroyView() {
super.onDestroyView();
unbinder.unbind();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tunbinder.unbind();\n\t}",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n mUnbinder.unbind();\n }",
"@Override public void onDestroyView() {\n super.onDestroyView();\n ButterKnife... | [
"0.7956727",
"0.79231286",
"0.7903046",
"0.7823336",
"0.6988607",
"0.68826383",
"0.688071",
"0.68463093",
"0.684459",
"0.6806808",
"0.6797115",
"0.6763939",
"0.6749004",
"0.6749004",
"0.6747528",
"0.6747528",
"0.6747528",
"0.67299455",
"0.67299455",
"0.67282605",
"0.67282605"... | 0.79142076 | 2 |
Method findById__customers definition ends here.. Method destroyById__customers definition | public void destroyById__customers( String qualificationId, String fk, final VoidCallback callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteCustomerById(int customerId);",
"void deleteCustomerById(Long id);",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"@DeleteMapping(\"/customer/id/{id}\")\r\n\tpublic Customer deleteCustomerbyId(@PathVariable(\"id\") int customerId) {\r\n\tif(custService.delet... | [
"0.7327843",
"0.7254525",
"0.6973654",
"0.6939429",
"0.6910097",
"0.6842436",
"0.68320566",
"0.6809333",
"0.67892134",
"0.6770294",
"0.67604387",
"0.67604387",
"0.6756681",
"0.67524016",
"0.67324585",
"0.67175627",
"0.67021817",
"0.66970587",
"0.66689265",
"0.6620056",
"0.661... | 0.6178727 | 64 |
Method destroyById__customers definition ends here.. Method updateById__customers definition | public void updateById__customers( String qualificationId, String fk, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteCustomerById(int customerId);",
"void deleteCustomerById(Long id);",
"void updateCustomerById(Customer customer);",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"public void DeleteCust(String id);",
... | [
"0.7544591",
"0.7464879",
"0.72973084",
"0.7249688",
"0.711007",
"0.7108712",
"0.7084478",
"0.70258784",
"0.6986334",
"0.698109",
"0.6965555",
"0.692878",
"0.69249326",
"0.69249326",
"0.69208956",
"0.68622375",
"0.68609965",
"0.6837442",
"0.6816167",
"0.68019116",
"0.67956096... | 0.0 | -1 |
Method updateById__customers definition ends here.. Method link__customers definition | public void link__customers( String qualificationId, String fk, final ObjectCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateCustomer(String id) {\n\t\t\n\t}",
"void updateCustomerById(Customer customer);",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tth... | [
"0.78826267",
"0.78682196",
"0.75633895",
"0.73050785",
"0.7172885",
"0.71538645",
"0.7112722",
"0.7112722",
"0.71003735",
"0.7094099",
"0.70296293",
"0.70015216",
"0.6995791",
"0.6926436",
"0.6873646",
"0.68643224",
"0.6862481",
"0.68442845",
"0.68293023",
"0.6810218",
"0.67... | 0.0 | -1 |
Method link__customers definition ends here.. Method unlink__customers definition | public void unlink__customers( String qualificationId, String fk, final VoidCallback callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObje... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"void delete(Customer customer);",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Custome... | [
"0.6669156",
"0.6669156",
"0.6538112",
"0.6365409",
"0.61464095",
"0.6040761",
"0.6009536",
"0.60090065",
"0.5995333",
"0.59930354",
"0.5971067",
"0.5889432",
"0.5883941",
"0.58823824",
"0.5867638",
"0.58463985",
"0.5800175",
"0.5794335",
"0.5785539",
"0.57771647",
"0.5766499... | 0.63292783 | 4 |
Method unlink__customers definition ends here.. Method exists__customers definition | public void exists__customers( String qualificationId, String fk, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Obj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"public boolean deleteCustomer(String custId);",
... | [
"0.69280005",
"0.68891275",
"0.6762077",
"0.6762077",
"0.6694822",
"0.6636149",
"0.6588833",
"0.65404373",
"0.648186",
"0.6462914",
"0.6443365",
"0.63410014",
"0.62722653",
"0.62297577",
"0.61801505",
"0.6170341",
"0.6160966",
"0.6143743",
"0.61437005",
"0.613479",
"0.6100452... | 0.0 | -1 |
Method exists__customers definition ends here.. Method get__customers definition | public void get__customers( String qualificationId, Map<String, ? extends Object> filter, final DataListCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasCustomer();",
"boolean hasCustomer();",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
... | [
"0.7375537",
"0.7375537",
"0.7219958",
"0.72080153",
"0.7147607",
"0.71237767",
"0.7113414",
"0.7103166",
"0.7095101",
"0.70733064",
"0.70730966",
"0.7061675",
"0.70365256",
"0.7017421",
"0.7001507",
"0.6951698",
"0.69329834",
"0.6926892",
"0.6920157",
"0.6896169",
"0.6894200... | 0.0 | -1 |
Method get__customers definition ends here.. Method create__customers definition | public void create__customers( String qualificationId, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Customers createCustomers();",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDA... | [
"0.80275655",
"0.78002053",
"0.7766854",
"0.7711642",
"0.7553495",
"0.75108963",
"0.75108963",
"0.75108963",
"0.75108963",
"0.7323948",
"0.72462296",
"0.7234175",
"0.71806294",
"0.71744174",
"0.7147126",
"0.70874256",
"0.70561975",
"0.70474887",
"0.70348966",
"0.70321757",
"0... | 0.0 | -1 |
Method create__customers definition ends here.. Method delete__customers definition | public void delete__customers( String qualificationId, final VoidCallback callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new Has... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"Customers createCustomers();",
"void delete(Customer customer);",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"void deleteCustomerById(int customerId);",
... | [
"0.7563028",
"0.7407681",
"0.735901",
"0.73555076",
"0.73555076",
"0.70522034",
"0.7011432",
"0.69927675",
"0.69927675",
"0.69927675",
"0.69927675",
"0.69021136",
"0.6880068",
"0.6877782",
"0.6872994",
"0.686668",
"0.68624616",
"0.6819905",
"0.6799363",
"0.67988586",
"0.67447... | 0.612874 | 87 |
Method delete__customers definition ends here.. Method count__customers definition | public void count__customers( String qualificationId, Map<String, ? extends Object> where, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"int getCustomersCount();",
"public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}",
"private int getNumberOfCustomers(){\n FileServices fs = new FileServices();\n return fs.loadCustomers().size();\n }",
"@Test... | [
"0.78258437",
"0.7408062",
"0.7192641",
"0.69813514",
"0.69483656",
"0.69165504",
"0.6903407",
"0.6902494",
"0.6902494",
"0.6900698",
"0.6896048",
"0.684946",
"0.684946",
"0.6767989",
"0.66914016",
"0.6677796",
"0.6583254",
"0.6529722",
"0.65277016",
"0.65057",
"0.64688003",
... | 0.59878045 | 54 |
Method count__customers definition ends here.. Method create definition | public void create( Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hash... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"int getCustomersCount();",
"Customers createCustomers();",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"public abstract long countByCustomer(Customer customer);",
"public abstract long countByCustomer(Customer customer);",
... | [
"0.7687059",
"0.7530548",
"0.7189517",
"0.7142789",
"0.70528334",
"0.70528334",
"0.6905846",
"0.6863703",
"0.68406934",
"0.67679656",
"0.6734457",
"0.67334306",
"0.66686726",
"0.6621093",
"0.65879905",
"0.65879905",
"0.65879905",
"0.65879905",
"0.6579334",
"0.656395",
"0.6505... | 0.0 | -1 |
Method create definition ends here.. Method upsert definition | public void upsert( Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hash... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Department createOrUpdate(Department department);",
"Dao.CreateOrUpdateStatus createOrUpdate(T data) throws SQLException, DaoException;",
"void createOrUpdate(T entity);",
"int upsert(UserShare5Min record);",
"UpdateResponse upsert(UpdateRequest updateRequest) throws IOException;",
"boolean hasInsertOrUp... | [
"0.7061293",
"0.6950966",
"0.6709597",
"0.66716886",
"0.65406543",
"0.64670414",
"0.645889",
"0.6458432",
"0.6413516",
"0.6404172",
"0.63874984",
"0.6340518",
"0.6317972",
"0.6287854",
"0.62833446",
"0.6261783",
"0.6261127",
"0.624913",
"0.6229021",
"0.62266916",
"0.61947954"... | 0.5987414 | 53 |
Method upsert definition ends here.. Method exists definition | public void exists( String id, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int upsert(UserShare5Min record);",
"boolean hasInsertOrUpdate();",
"UpdateResponse upsert(UpdateRequest updateRequest) throws IOException;",
"public void upsert( Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){\n\n /**\n Call the onBefore eve... | [
"0.7065614",
"0.6979747",
"0.6922108",
"0.66803837",
"0.6611457",
"0.65366185",
"0.6527603",
"0.64152265",
"0.63813394",
"0.6286104",
"0.62836903",
"0.6249639",
"0.61641127",
"0.6141",
"0.6120172",
"0.6112048",
"0.6108924",
"0.6104254",
"0.61004543",
"0.6098497",
"0.609824",
... | 0.0 | -1 |
Method exists definition ends here.. Method findById definition | public void findById( String id, Map<String, ? extends Object> filter, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<Stri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findOne(int id);",
"@Override\npublic boolean existsById(String id) {\n\treturn false;\n}",
"boolean exists(Integer id);",
"public abstract T findByID(ID id) ;",
"T findById(final ID id) throws RequiredValueException, NoEntityFo... | [
"0.7706214",
"0.75456405",
"0.7381904",
"0.7310368",
"0.73094755",
"0.72522724",
"0.72325885",
"0.72288966",
"0.7214623",
"0.72033066",
"0.7197465",
"0.71362656",
"0.71329737",
"0.70874375",
"0.70874375",
"0.7087351",
"0.70792085",
"0.7073509",
"0.7064268",
"0.70164204",
"0.6... | 0.0 | -1 |
Method findById definition ends here.. Method find definition | public void find( Map<String, ? extends Object> filter, final DataListCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> ha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findOne(int id);",
"T findById(ID id) ;",
"public Data findById(Object id);",
"E findById(K id);",
"public abstract T findByID(ID id) ;",
"@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}",
"@Nullabl... | [
"0.8179571",
"0.79280776",
"0.7817188",
"0.77281344",
"0.7598666",
"0.75517225",
"0.7547179",
"0.7457473",
"0.7445618",
"0.74455094",
"0.7388743",
"0.73696387",
"0.735429",
"0.7347058",
"0.7306977",
"0.7305732",
"0.72980934",
"0.7285569",
"0.727322",
"0.7263078",
"0.7241548",... | 0.0 | -1 |
Method find definition ends here.. Method findOne definition | public void findOne( Map<String, ? extends Object> filter, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void find() {\n\n\t}",
"public abstract T findOne(int id);",
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findByID(ID id) ;",
"@Override\r\n\tpublic Personne find(int id) {\n\t\treturn null;\r\n\t}",
"@Override\n public CerereDePrietenie findOne(Lon... | [
"0.7351055",
"0.7333603",
"0.7117427",
"0.67782164",
"0.6709773",
"0.6675192",
"0.66463697",
"0.66458374",
"0.6544797",
"0.64865756",
"0.6483381",
"0.6479609",
"0.6459847",
"0.6457756",
"0.64517194",
"0.64479166",
"0.6442503",
"0.64114785",
"0.63793606",
"0.6367984",
"0.63602... | 0.0 | -1 |
Method findOne definition ends here.. Method updateAll definition | public void updateAll( Map<String, ? extends Object> where, Map<String, ? extends Object> data, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateSingleRecord(){\n MongoCollection<Document> table = db.getCollection(\"user\");\n Document document = new Document();\n document.put(\"userType\", \"Free\");\n\n Document updateDocument=new Document(\"$set\", document);\n\n ObjectId id = null;\n\n try { i... | [
"0.6464086",
"0.61436945",
"0.6103985",
"0.60823715",
"0.6071028",
"0.60603374",
"0.6006854",
"0.5994162",
"0.5969431",
"0.591991",
"0.58820015",
"0.5866406",
"0.58631676",
"0.58534586",
"0.5847507",
"0.5839694",
"0.58389413",
"0.58215207",
"0.5811802",
"0.57973313",
"0.57916... | 0.0 | -1 |
Method updateAll definition ends here.. Method deleteById definition | public void deleteById( String id, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void updateDelete(String id) {\n \tUpdate update = new Update();\r\n\t\tupdate.set(\"status\", Constants.MSG_STATUS_DELETED);\r\n\t\t\r\n\t\tmongoTemplate.updateFirst(new Query(Criteria.where(\"id\").is(id)), update, AsxDataVO.class);\r\n\t}",
"@Override\n\tpublic void deleteById(int id)... | [
"0.68786615",
"0.68605685",
"0.6796205",
"0.6752714",
"0.67410684",
"0.6680814",
"0.66805255",
"0.6668458",
"0.66598034",
"0.66340965",
"0.66315496",
"0.66280395",
"0.6618544",
"0.6613486",
"0.6613148",
"0.6613148",
"0.66084564",
"0.65972",
"0.65881205",
"0.65645784",
"0.6539... | 0.0 | -1 |
Method deleteById definition ends here.. Method count definition | public void count( Map<String, ? extends Object> where, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int deleteById(Integer id) throws Exception {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}",
"@Override\n\tpublic int delete(Integer id) {\n\t\treturn 0;\n\t}",
"Integer delete(int id);",
"@Override\n\tpublic void delete(long id) {\n\t\t\n\t}",
"@Ove... | [
"0.7639958",
"0.7613061",
"0.75924134",
"0.7584889",
"0.75709754",
"0.75709754",
"0.7566303",
"0.7557716",
"0.7557716",
"0.7556009",
"0.7554765",
"0.7548395",
"0.75415725",
"0.7540542",
"0.75288165",
"0.7523772",
"0.7521573",
"0.7520033",
"0.7496003",
"0.7496003",
"0.7496003"... | 0.0 | -1 |
Method count definition ends here.. Method updateAttributes definition | public void updateAttributes( String qualificationId, Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@java.lang.Override\n public int getAttributesCount() {\n return attributes_.size();\n }",
"final void setAttributes(int param1, int param2) {\n }",
"@Override\n\tpublic int numberOfAttributes() {\n\t\treturn 2 + numberOfCustomFields();\n\t}",
"@Override\n protected void update(ScanningContext c... | [
"0.67345625",
"0.67287135",
"0.67203826",
"0.6675688",
"0.6649428",
"0.66260904",
"0.65875435",
"0.65875435",
"0.64937294",
"0.64783716",
"0.64542973",
"0.64462125",
"0.63725144",
"0.63412833",
"0.6335944",
"0.62947905",
"0.6251617",
"0.62381285",
"0.6148869",
"0.61361986",
"... | 0.0 | -1 |
Method updateAttributes definition ends here.. Method getSchema definition | public void getSchema( final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addCreateUpdateAttributes(Context _context) throws EFapsException {\r\n Iterator iter = getType().getAttributes().entrySet().iterator();\r\n while (iter.hasNext()) {\r\n Map.Entry entry = (Map.Entry)iter.next();\r\n Attribute attr = (Attribute)entry.getValue();\r\n AttributeType... | [
"0.655383",
"0.6217703",
"0.6141155",
"0.6081176",
"0.5956701",
"0.5892119",
"0.5747427",
"0.57312185",
"0.57168347",
"0.5695026",
"0.56469643",
"0.5602525",
"0.5588495",
"0.5554345",
"0.5532806",
"0.54838467",
"0.5479002",
"0.5478916",
"0.54604816",
"0.5454026",
"0.5451723",... | 0.0 | -1 |
Method getSchema definition ends here.. Method getAbsoluteSchema definition | public void getAbsoluteSchema( final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSchemaLocation();",
"S getSchema();",
"public Schema getSchema();",
"AstroSchema getSchema();",
"public abstract String getSchemaURI();",
"SchemaDefinition createSchemaDefinition();",
"public SchemaDef getSourceSchema();",
"public SchemaInfo getSchema () throws Exception;",
"String... | [
"0.79272115",
"0.7845075",
"0.7772726",
"0.77048236",
"0.75939727",
"0.735138",
"0.731109",
"0.72510606",
"0.71614337",
"0.7120227",
"0.7110397",
"0.7046837",
"0.702286",
"0.6995758",
"0.6985566",
"0.69768685",
"0.6921628",
"0.6921628",
"0.69110143",
"0.68714976",
"0.68654203... | 0.6349451 | 59 |
Method getAbsoluteSchema definition ends here.. Method __connect__customers definition | public void __connect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Obj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSchemaLocation();",
"public abstract String getSchemaURI();",
"S getSchema();",
"protected void executeSchemaOperations() {\n }",
"public void setSchemaLocation(String schemaLocation) {\n\t\t\r\n\t}",
"public Schema getSchema();",
"@Override\n public void createSchema(Propertie... | [
"0.65404415",
"0.65285605",
"0.6289872",
"0.61557436",
"0.61265504",
"0.60937196",
"0.60616356",
"0.6000618",
"0.598137",
"0.59421194",
"0.59382415",
"0.593286",
"0.58794254",
"0.5847543",
"0.5834506",
"0.582272",
"0.5818779",
"0.5780179",
"0.5775748",
"0.5743",
"0.5743",
"... | 0.0 | -1 |
Method __connect__customers definition ends here.. Method __disconnect__customers definition | public void __disconnect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void __connect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n M... | [
"0.6129264",
"0.6078721",
"0.6053738",
"0.60336655",
"0.60336655",
"0.6017923",
"0.6009218",
"0.6009218",
"0.59696156",
"0.5949104",
"0.5923319",
"0.5919241",
"0.5919241",
"0.5891548",
"0.5884838",
"0.58694947",
"0.58159626",
"0.5811571",
"0.5791479",
"0.5791479",
"0.5791479"... | 0.5786121 | 21 |
Method __disconnect__customers definition ends here.. Method updateQualification definition | public void updateQualification( String customerId, DataList<String> qualificationIdList, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unlink__customers( String qualificationId, String fk, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Objec... | [
"0.6079061",
"0.58843935",
"0.58034104",
"0.54558927",
"0.5305382",
"0.5278392",
"0.5208451",
"0.5200317",
"0.519703",
"0.5165149",
"0.5135472",
"0.51206136",
"0.5093142",
"0.5093142",
"0.50529206",
"0.50277656",
"0.50233686",
"0.49908596",
"0.49887455",
"0.4981898",
"0.49715... | 0.594507 | 1 |
TODO Autogenerated method stub | @Override
public int getMenCount() {
return 5;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Returns the value of the 'Expression' containment reference. If the meaning of the 'Expression' containment reference isn't clear, there really should be more of a description here... | Expression getExpression(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression getValue();",
"Expression getValue();",
"XExpression getExpression();",
"public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"public Node getExpression() {\r\n return expression;\r\n }",
"public Object getExpression();",
"@Nullable\n public Expression getVa... | [
"0.70037025",
"0.70037025",
"0.66962683",
"0.66294223",
"0.65888715",
"0.65805167",
"0.6576622",
"0.6521752",
"0.6429465",
"0.64220047",
"0.63964176",
"0.6355739",
"0.6345876",
"0.62771237",
"0.6208891",
"0.614135",
"0.614135",
"0.614135",
"0.61333007",
"0.6114418",
"0.608687... | 0.6743059 | 5 |
Returns the value of the 'Assign op' containment reference. If the meaning of the 'Assign op' containment reference isn't clear, there really should be more of a description here... | assign_op getAssign_op(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getAssignOperatorId() {\n return assignOperatorId;\n }",
"@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }",
"@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ... | [
"0.6772184",
"0.6767813",
"0.66189516",
"0.6410031",
"0.6218059",
"0.62178487",
"0.6206518",
"0.61916876",
"0.607589",
"0.6068688",
"0.60531414",
"0.6030414",
"0.600461",
"0.600461",
"0.5995957",
"0.5938861",
"0.59014827",
"0.5896417",
"0.58855456",
"0.58790356",
"0.58731896"... | 0.7859097 | 0 |
Returns the value of the 'Expression List' containment reference. If the meaning of the 'Expression List' containment reference isn't clear, there really should be more of a description here... | ExpressionList getExpressionList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@ASTNodeAnnotation.ListChild(name=\"Expr\")\n public List<Expr> getExprList() {\n List<Expr> list = (List<Expr>) getChild(1);\n return list;\n }",
"List getExpressions();",
"Expression getValue();",
"Expression getValue();",
"public List<Expression> getSubExpressions();",
"public List<EntityAndAr... | [
"0.6135304",
"0.5872015",
"0.57638127",
"0.57638127",
"0.57589185",
"0.574945",
"0.56770444",
"0.56581366",
"0.5657008",
"0.5578704",
"0.5574667",
"0.5544571",
"0.55312276",
"0.5472378",
"0.5472378",
"0.5472378",
"0.5472378",
"0.5460033",
"0.54570806",
"0.53920305",
"0.538371... | 0.7032033 | 0 |
Returns the value of the 'ANY OTHER' attribute. If the meaning of the 'ANY OTHER' attribute isn't clear, there really should be more of a description here... | String getANY_OTHER(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOthers() {\n return others;\n }",
"public String getOthers() {\n return others;\n }",
"public boolean matchesAny() {\n return value == ANY;\n }",
"public Object getAny() {\n return any;\n }",
"public boolean isSetOther()\r\n {\r\n ... | [
"0.6273265",
"0.6273265",
"0.5838343",
"0.5761033",
"0.5687683",
"0.5668273",
"0.5665926",
"0.56577295",
"0.5649689",
"0.55874854",
"0.5587264",
"0.5557852",
"0.5555987",
"0.55534744",
"0.55247855",
"0.551569",
"0.54922354",
"0.54854965",
"0.54727155",
"0.5470194",
"0.5460225... | 0.7221216 | 0 |
Create a Date with the chosen year, month, day, hour and minute. | public Date(int year, int month, int day, int hour, int minute) throws InvalidDateException {
this.setYear(year);
this.setMonth(month);
this.setDay(day);
this.setHour(hour);
this.setMinute(minute);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Date createDate(int yyyy, int month, int day, int hour, int min) {\n/* 93 */ CALENDAR.clear();\n/* 94 */ CALENDAR.set(yyyy, month - 1, day, hour, min);\n/* 95 */ return CALENDAR.getTime();\n/* */ }",
"public static native JsDate create(int year, int month, int dayOfMonth, int hours... | [
"0.71219945",
"0.7071629",
"0.7068238",
"0.68700564",
"0.6841458",
"0.6793828",
"0.67841643",
"0.6750528",
"0.6721832",
"0.6600586",
"0.65939176",
"0.65527964",
"0.6535001",
"0.6531231",
"0.6447601",
"0.6428972",
"0.64257675",
"0.63954926",
"0.6363467",
"0.63009286",
"0.62723... | 0.6177247 | 26 |
Allows to add a certain number of minutes to the date. | public void addTime(int minutes) throws InvalidDateException{
if (minutes >= 0) {
int totalMinutes = this.minute + minutes;
if (totalMinutes > 59) {
int totalHours = this.hour + totalMinutes/60;
this.minute = totalMinutes%60;
if (totalHours > 23) {
int totalDays = this.day + totalHours/2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addMinutes(int minutes)\n {\n\n int h = minutes / 60;\n int m = minutes - (h * 60);\n\n hour += h;\n\n if (minute == 30 && m == 30)\n {\n minute = 0;\n hour++;\n }\n else\n {\n minute += m;\n }\n }",
"public static Date addMinut... | [
"0.7140778",
"0.6800216",
"0.6797791",
"0.6690599",
"0.65754175",
"0.65477216",
"0.6373754",
"0.630786",
"0.61612976",
"0.6131847",
"0.61185557",
"0.60446286",
"0.59700376",
"0.5939722",
"0.58790904",
"0.5844693",
"0.5844034",
"0.58269316",
"0.5818002",
"0.58092433",
"0.57993... | 0.64859253 | 6 |
Computes the difference in time between two dates. | public int timeSpentSince(Date beginDate) throws InvalidDateException {
int diffYears = this.year - beginDate.getYear();
int diffMonths = this.month - beginDate.getMonth();
int diffDays = this.day - beginDate.getDay();
int diffHours = this.hour - beginDate.getHour();
int diffMinutes = (this.minute - begi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected double difftime(double t2, double t1) {\n\t\treturn t2 - t1;\n\t}",
"private static long timeDiff(final Date startDate, final Date endDate, final TimeUnit timeUnit) {\n if (startDate == null) {\n throw new NullPointerException(\"start\");\n }\n\n if (endDate == null) {\n... | [
"0.69837904",
"0.6659508",
"0.6516603",
"0.6465042",
"0.6363082",
"0.6353079",
"0.63479745",
"0.633875",
"0.6277154",
"0.6171184",
"0.6124775",
"0.6122258",
"0.6094387",
"0.6033419",
"0.6020052",
"0.5992816",
"0.5958011",
"0.5946988",
"0.5900437",
"0.58914",
"0.5873582",
"0... | 0.50526136 | 94 |
Returns a boolean indicating if the Date that calls the method is posterior to the Date passed as argument. | public boolean isPosteriorTo(Date argdate) {
try {
this.timeSpentSince(argdate);
} catch (InvalidDateException e) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value ... | [
"0.6891451",
"0.6870763",
"0.6789317",
"0.6715417",
"0.663412",
"0.66213757",
"0.6457686",
"0.6366704",
"0.62730265",
"0.62633526",
"0.62418276",
"0.6225422",
"0.62157255",
"0.62140405",
"0.61828023",
"0.6177787",
"0.616524",
"0.61549115",
"0.6152467",
"0.61134475",
"0.609761... | 0.75386596 | 0 |
Returns a representation of the date as a String. | @Override
public String toString() {
String dispyear = "" + this.year;
String dispmonth = "" + this.month;
String dispday = "" + this.day;
String disphour = "" + this.hour;
String dispminute = "" + this.minute;
if (this.month < 10) {
dispmonth = "0" + dispmonth;
}
if (this.day < 10) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }",
"public String getDateString(){\n return Utilities.dateToString(date);\n }",
"public String getDateString() {\n DateFormat format = DateFormat.getDateInstance(DateFormat.FULL, ... | [
"0.8693063",
"0.86121386",
"0.7898898",
"0.7857493",
"0.78499854",
"0.77291256",
"0.7685381",
"0.7570496",
"0.75423306",
"0.7526682",
"0.7459297",
"0.7456914",
"0.74448866",
"0.7435607",
"0.74099725",
"0.74000996",
"0.7381051",
"0.7364031",
"0.7363955",
"0.73368853",
"0.73303... | 0.0 | -1 |
Changes the current date's year to the value of the year parameter (has to be between 2000 and 2100 included). | public void setYear(int year) throws InvalidDateException {
if (year <= 2100 & year >= 2000) {
this.year = year;
} else {
throw new InvalidDateException("Please enter a realistic year for the date (between 2000 and 2100) !");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setYear(int year) {\n\t\tthis.date.setYear(year);\n\t}",
"public void setYear (int yr) {\n year = yr;\n }",
"public void setYear(int y){\n\t\tyear = y ; \n\t}",
"public void setYear(int value) {\n\tthis.year = value;\n }",
"public void setYear(final int year) {\n\t\tthis.year = year;... | [
"0.8041857",
"0.77533084",
"0.7741114",
"0.7717305",
"0.7689251",
"0.7681412",
"0.76604253",
"0.76236635",
"0.7568602",
"0.7568602",
"0.75673294",
"0.75470513",
"0.7542344",
"0.7481239",
"0.74751866",
"0.7445723",
"0.7390994",
"0.73898566",
"0.7344054",
"0.7344054",
"0.730122... | 0.7407935 | 16 |
Changes the current date's month to the value of the month parameter (has to be between 1 and 12 included). | public void setMonth(int month) throws InvalidDateException {
if (month <= 12 & month >= 1) {
this.month = month;
} else {
throw new InvalidDateException("Please enter a realistic month for the date (between 1 and 12) !");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMonth(int month) {\n\t\tthis.date.setMonth(month);\n\t}",
"public void setMonth(int newMonth) {\n setMonth(newMonth, true);\n }",
"public void setMonth(int month) {\n if(month < 1 || month > 12) {\n this.month = 1;\n } else {\n this.month = month;\n ... | [
"0.76031065",
"0.7467364",
"0.74508625",
"0.7388153",
"0.73393756",
"0.7312535",
"0.73099595",
"0.7309068",
"0.72793156",
"0.7177469",
"0.7136857",
"0.7131555",
"0.7124117",
"0.7120971",
"0.7099856",
"0.7099856",
"0.6893621",
"0.68086594",
"0.6790647",
"0.6758248",
"0.6758248... | 0.6519796 | 26 |
Changes the current date's day to the value of the day parameter (has to be between 1 and 31 included). | public void setDay(int day) throws InvalidDateException {
if (day <= 31 & day >= 1) {
this.day = day;
} else {
throw new InvalidDateException("Please enter a realistic day for the date (between 1 and 31) !");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day... | [
"0.78107715",
"0.78107715",
"0.78107715",
"0.78107715",
"0.78107715",
"0.7775454",
"0.7598849",
"0.7565784",
"0.7520757",
"0.7520757",
"0.74522865",
"0.7393161",
"0.7346788",
"0.7326706",
"0.7164289",
"0.7080724",
"0.70556706",
"0.70086116",
"0.69355935",
"0.69066644",
"0.684... | 0.68908745 | 20 |
Changes the current date's hour to the value of the hour parameter (has to be between 0 and 23 included). | public void setHour(int hour) throws InvalidDateException {
if (hour < 24 & hour >= 0) {
this.hour = hour;
} else {
throw new InvalidDateException("Please enter a realistic hour for the date (between 0 and 23) !");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }",
"public void setHour(int hour){\n if(hour < 0 || hour > 23) {System.out.println(\"wrong input!\"); return;}\n this.hour = hour;\n }",
"public void setHour(int hour)... | [
"0.76116467",
"0.75459075",
"0.750744",
"0.7462543",
"0.7411131",
"0.7339087",
"0.72847635",
"0.7176758",
"0.7053705",
"0.6941704",
"0.6775655",
"0.674819",
"0.6704269",
"0.6681094",
"0.66643995",
"0.6642898",
"0.6594539",
"0.6546921",
"0.6543096",
"0.6494594",
"0.645319",
... | 0.7100184 | 8 |
Changes the current date's minute to the value of the minute parameter (has to be between 0 and 59 included). | public void setMinute(int minute) throws InvalidDateException {
if (minute < 60 & minute >= 0) {
this.minute = minute;
} else {
throw new InvalidDateException("Please enter a realistic minute for the date (between 0 and 59) !");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMinute(int minute)\n {\n this.minute = minute;\n }",
"public void setMinute(int minute) {\n\t\tthis.minute = minute;\n\t}",
"public void setMinute(int value) {\n this.minute = value;\n }",
"public Time4 setMinute( int minute ) \r\n { \r\n ... | [
"0.7519458",
"0.7508155",
"0.74747545",
"0.74678993",
"0.7459453",
"0.7438823",
"0.7076689",
"0.70466787",
"0.65864086",
"0.6505848",
"0.648862",
"0.6459823",
"0.64540505",
"0.64466023",
"0.63715464",
"0.63200396",
"0.6280991",
"0.6278151",
"0.6275926",
"0.6267221",
"0.620393... | 0.6875858 | 8 |
TODO: `List events` if use batch listener TODO: process the event here | @KafkaListener(topics = TW_SERVICE_TEMPLATE_EXAMPLE_TOPIC, containerFactory = EXAMPLE_CUSTOM_LISTENER)
public void process(TemplateEvent event) {
log.info(event.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onEvent(EventIterator events) {\n\n }",
"public void processEvent(Event event) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public void process(WatchedEvent event) {\n\t\t\n\t}",
"public void processEvents(Events events) {\n\n log.info(\"events processed: [{}]... | [
"0.6756034",
"0.6718437",
"0.67025965",
"0.66970444",
"0.6643415",
"0.6611045",
"0.64395165",
"0.63940966",
"0.6325205",
"0.6317102",
"0.63107246",
"0.62876856",
"0.62657815",
"0.62387145",
"0.62184465",
"0.62184465",
"0.62184465",
"0.62184465",
"0.62184465",
"0.6202352",
"0.... | 0.0 | -1 |
Constructs an entity with default values. | Creature()
{
super();
this.glyph = new Glyph('c', TextColor.ANSI.WHITE, TextColor.ANSI.BLACK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n ... | [
"0.67117494",
"0.6708409",
"0.6697924",
"0.6683463",
"0.6649938",
"0.6604877",
"0.6556583",
"0.6527881",
"0.6514264",
"0.6484926",
"0.6422341",
"0.6407632",
"0.6387969",
"0.6330304",
"0.63249683",
"0.63036305",
"0.627729",
"0.6276165",
"0.6271177",
"0.6271125",
"0.62511384",
... | 0.0 | -1 |
Move the creature by an increment of x and y if no collision. x and y may be negative. | public void move(@NotNull Map map, int x, int y)
{
if (map.map[this.x + x][this.y + y].isBlocking)
{
x = 0;
y = 0;
}
this.x += x;
this.y += y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void move() {\n if (!isCollision(xMove, 0))\n moveX();\n //else\n // adjustX(xMove);\n\n if (!isCollision(0, yMove))\n moveY();\n //else\n // adjustY(yMove);\n //check isCollision(gameObject) with calculating the position for next ... | [
"0.7413549",
"0.7206813",
"0.7066641",
"0.6976877",
"0.6900034",
"0.6892314",
"0.68563926",
"0.68503535",
"0.6818975",
"0.68148375",
"0.6799271",
"0.6789851",
"0.67695504",
"0.67674506",
"0.6754468",
"0.67481416",
"0.6720942",
"0.6698616",
"0.6673428",
"0.66289365",
"0.661617... | 0.6144744 | 81 |
Convert String to Character List | public String sortString(String s) {
List<Character> characters = s.chars().mapToObj(c -> (char) c).collect(Collectors.toList());
// Sort the input O(logN)
Collections.sort(characters);
StringBuilder result = new StringBuilder();
// Iterator over entire input array
while... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<Character> stringToCharArray( String str ) {\n List<Character> charactersOfString = new ArrayList<Character>();\n char[] letters = str.toCharArray();\n for( char c : letters ) \n charactersOfString.add( c );\n return charactersOfString;\n }",
"private ... | [
"0.7369356",
"0.71349055",
"0.6944308",
"0.6338762",
"0.6235387",
"0.61783934",
"0.6098405",
"0.60450757",
"0.59775114",
"0.5972257",
"0.59637046",
"0.59600306",
"0.5953836",
"0.5941537",
"0.5879383",
"0.5875549",
"0.58586013",
"0.5853219",
"0.5838874",
"0.58359134",
"0.58139... | 0.0 | -1 |
Setter and getter methods | public String getName() {
return this.name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String setValue();",
"protected abstract Set method_1559();",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"@Override\n public void get() {}",
"public void get() {\n }",
"public T get() {\n return value;\n }",
"@Override\n String get();",
"public String get();",
"public T get(... | [
"0.67781967",
"0.67664635",
"0.669132",
"0.66366184",
"0.65829295",
"0.641256",
"0.6402833",
"0.63822615",
"0.6356761",
"0.6356761",
"0.62800926",
"0.6274028",
"0.6252697",
"0.62066245",
"0.6175351",
"0.615297",
"0.6149969",
"0.61195374",
"0.61106735",
"0.610167",
"0.6094887"... | 0.0 | -1 |
=========================================================== Getter & Setter =========================================================== | public NewsSet getParsedData() {
return this.newsSet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"@Override\r\... | [
"0.6530707",
"0.6429242",
"0.6401354",
"0.638821",
"0.63802034",
"0.62655497",
"0.62175053",
"0.61730605",
"0.61435974",
"0.61435974",
"0.6134486",
"0.6133773",
"0.61026585",
"0.60648656",
"0.6047741",
"0.60232216",
"0.60173035",
"0.60173035",
"0.60173035",
"0.60173035",
"0.6... | 0.0 | -1 |
Gets be called on opening tags like: Can provide attribute(s), when xml was like: | @Override
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {
// <document>
if (localName.equals("document")) {
curArticle = new ArticleSmallOpinion();
curTagiot = new ArrayList<Tagit>();
// add values
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void addAttr(Attributes attr) throws SAXException {\n\t}",
"@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"@Override\n public String getXMLTag() {\n return XMLTAG;\n }",
"... | [
"0.64996904",
"0.6456962",
"0.6428416",
"0.64154804",
"0.6386212",
"0.62789696",
"0.6272373",
"0.6232443",
"0.61748093",
"0.61342",
"0.6130564",
"0.6130564",
"0.6125565",
"0.609728",
"0.6075238",
"0.6040785",
"0.60097927",
"0.5992435",
"0.595809",
"0.5891469",
"0.5890457",
... | 0.60129017 | 16 |
Gets be called on closing tags like: | @Override
public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
if (localName.equals("document")) {
// add tagiot to article
curArticle.setTagiot(curTagiot);
// add article to newSet
newsSet.addItem(curArticle);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void tagClose() {\n if( tagOpen ) {\n out.println( \">\" ); \n tagOpen = false;\n }\n }",
"public void closeEndTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.CLOSE_BRACKER);\n }",
"@Override\n\tpublic void endTag(String name, ... | [
"0.79148436",
"0.76053435",
"0.7538981",
"0.71502924",
"0.7123167",
"0.6968759",
"0.6950043",
"0.69498694",
"0.68825036",
"0.6856422",
"0.68010217",
"0.6569121",
"0.65425587",
"0.64923483",
"0.64846927",
"0.64557767",
"0.64270955",
"0.6427041",
"0.6410955",
"0.6372019",
"0.63... | 0.0 | -1 |
Gets be called on the following structure: characters | @Override
public void characters(char ch[], int start, int length) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void characters(String arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public String getCharacters()\n\t{\n\t\treturn characters;\n\t}",
"@Override \n\t public void characters(char ch[], int start, int length) { \n\t\t \n\t }",
"@Override\n void characters(char[] ch, int start, int length);",
"pub... | [
"0.7189892",
"0.701375",
"0.69807917",
"0.69630206",
"0.6890614",
"0.6837748",
"0.67728305",
"0.67343634",
"0.67217314",
"0.65969205",
"0.65935016",
"0.65068513",
"0.6476046",
"0.6465931",
"0.63947874",
"0.63833135",
"0.6349821",
"0.6337116",
"0.6316689",
"0.63054883",
"0.630... | 0.6898933 | 4 |
/ / / / / / / / / | public ResolvingXMLReader(CatalogManager manager) {
/* 86 */ super(manager);
/* 87 */ SAXParserFactory spf = JdkXmlUtils.getSAXFactory(this.catalogManager.overrideDefaultParser());
/* 88 */ spf.setValidating(validating);
/* */ try {
/* 90 */ SAXParser parser = spf.newSAXParser();
/* 91 */ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5532527",
"0.54391015",
"0.5251596",
"0.52418447",
"0.5150535",
"0.512878",
"0.50683415",
"0.5066834",
"0.50221753",
"0.50129646",
"0.50077325",
"0.50051177",
"0.49997202",
"0.499538",
"0.49736512",
"0.49707893",
"0.49684572",
"0.49598044",
"0.49381968",
"0.49364173",
"0.4... | 0.0 | -1 |
Deserialize profile preferences from the given JSON node. | public static ReaderBookmarks deserializeFromJSON(
final ObjectMapper jom,
final JsonNode node)
throws JSONParseException {
NullCheck.notNull(jom, "Object mapper");
NullCheck.notNull(node, "JSON");
final ObjectNode obj =
JSONParserUtilities.checkObject(null, node);
final Has... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"GistUser deserializeUserFromJson(String json);",
"public static Profile parseSingleProfile(JSONObject jsonProfile) throws JSONException {\n // Create a new Profile object and fill the attributes from the API in.\n Profile profile = new Profile(jsonProfile.getString(\"name\"));\n\n profile.se... | [
"0.5136201",
"0.50986344",
"0.5019235",
"0.4854903",
"0.48514932",
"0.48251918",
"0.46691316",
"0.46562424",
"0.45081693",
"0.4497919",
"0.44945893",
"0.4458085",
"0.44510645",
"0.4412336",
"0.4409697",
"0.44058958",
"0.43879613",
"0.4310828",
"0.43100858",
"0.43043292",
"0.4... | 0.3751087 | 96 |
Serialize profile preferences to JSON. | public static ObjectNode serializeToJSON(
final ObjectMapper jom,
final ReaderBookmarks description) {
NullCheck.notNull(jom, "Object mapper");
NullCheck.notNull(description, "Description");
final ObjectNode jo = jom.createObjectNode();
final ObjectNode by_id = jom.createObjectNode();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean saveSharedPreferencesToJsonFile(File dst, Context context) {\n\t\t\n\t\tSharedPreferences pref = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tSharedPreferences adminPreferences = context.getSharedPreferences(\n\t\t\t\tAdminPreferencesActivity.ADMIN_PREFERENCES, 0);\n... | [
"0.6052157",
"0.58129454",
"0.5780928",
"0.55294675",
"0.55266887",
"0.5495139",
"0.5491893",
"0.54327136",
"0.5424708",
"0.54077905",
"0.539292",
"0.53866297",
"0.53761035",
"0.5372756",
"0.5364068",
"0.531351",
"0.5310334",
"0.5308484",
"0.5301378",
"0.52684104",
"0.5265633... | 0.0 | -1 |
Serialize profile preferences to a JSON string. | public static String serializeToString(
final ObjectMapper jom,
final ReaderBookmarks description)
throws IOException {
final ObjectNode jo = serializeToJSON(jom, description);
final ByteArrayOutputStream bao = new ByteArrayOutputStream(1024);
JSONSerializerUtilities.serialize(jo, bao);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\... | [
"0.5876286",
"0.58120775",
"0.5789143",
"0.57677555",
"0.5654633",
"0.5630691",
"0.55978835",
"0.5560074",
"0.55370784",
"0.5521888",
"0.548494",
"0.54528165",
"0.5426545",
"0.54073334",
"0.53954136",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184... | 0.0 | -1 |
Class YYY overrides Protected Package Private Private | private ProducerState getProducerState(Invocation inv)
{
return (ProducerState)((DelegateSupport)inv.getTargetObject()).getState();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"private abstract void privateabstract();",
"private CommonMethods() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"public OOP_207(){\n\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n ... | [
"0.67000496",
"0.6642249",
"0.65887994",
"0.6497922",
"0.6446098",
"0.64367425",
"0.6342977",
"0.62642884",
"0.62538964",
"0.6199588",
"0.6179871",
"0.61744136",
"0.61015314",
"0.60940754",
"0.60521007",
"0.60426545",
"0.60378706",
"0.59986895",
"0.59766966",
"0.59766966",
"0... | 0.0 | -1 |
Constructor: Inicializa el nodo cima de la cesta a null | public Cesta() {
this.cima = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor ... | [
"0.7215313",
"0.7119041",
"0.6874055",
"0.6653287",
"0.6509982",
"0.6494503",
"0.6416001",
"0.63864076",
"0.63612527",
"0.63432264",
"0.6272153",
"0.62463105",
"0.62422824",
"0.6239991",
"0.62396866",
"0.6207007",
"0.6202263",
"0.6194905",
"0.6154742",
"0.61329025",
"0.611821... | 0.7336392 | 0 |
Constructor: Inicializa el nodo, cargandolo con el producto y estableciendo el nodo siguiente a null. | public NodoP(Productos _prod) {
this.producto = _prod;
this.siguiente = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}",
"public Nodo()... | [
"0.762114",
"0.7533676",
"0.7060903",
"0.69719374",
"0.6969185",
"0.6909347",
"0.6886306",
"0.67459345",
"0.6702625",
"0.6677809",
"0.6651483",
"0.6612433",
"0.6589626",
"0.65276116",
"0.64204025",
"0.63829213",
"0.6273529",
"0.62229484",
"0.6215511",
"0.61886644",
"0.6172016... | 0.79297715 | 0 |
Created by omerfarukcoban on 27.12.2019. | public interface Iterator {
boolean hasNext();
Object next();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override... | [
"0.5967267",
"0.56419164",
"0.55180043",
"0.54968834",
"0.54726636",
"0.5460348",
"0.5460348",
"0.5447238",
"0.54018223",
"0.5380395",
"0.5350975",
"0.5348815",
"0.5340301",
"0.5336017",
"0.5336017",
"0.5336017",
"0.5336017",
"0.5336017",
"0.5336017",
"0.53339756",
"0.5327467... | 0.0 | -1 |
Insert a record to DB | @Override
public E insert(E entity) {
LOG.info("[insert] Start: entity = " + entity.getClass().getSimpleName());
entityManager.persist(entity);
LOG.info("[insert] End");
return entity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void insert(BnesBrowsingHis record) throws SQLException;",
"void insert(OrderPreferential record) throws SQLException;",
"int insert(AccessModelEntity record);",
"int insert(Model record);",
"int insert(PmKeyDbObj record);",
"int insert(Assist_table record);",
"int insert(UserInfo record);",
"@Overri... | [
"0.78744465",
"0.76794803",
"0.7668299",
"0.7638662",
"0.7630426",
"0.76028174",
"0.759634",
"0.7581246",
"0.7579152",
"0.75704706",
"0.75693965",
"0.7548982",
"0.7548422",
"0.75395244",
"0.75217086",
"0.74924016",
"0.74740297",
"0.7466521",
"0.74660516",
"0.74364454",
"0.740... | 0.0 | -1 |
Update a record in DB | @Override
public E update(E entity) {
LOG.info("[update] Start: entity = " + entity.getClass().getSimpleName());
entityManager.merge(entity);
LOG.info("[update] End");
return entity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int updateByPrimaryKey(Yqbd record);",
"int updateByPrimaryKey(AccessModelEntity record);",
"int updateByPrimaryKey(RecordLike record);",
"int updateByPrimaryKey(Ltsprojectpo record);",
"int updateByPrimaryKey(Model record);",
"int updateByPrimaryKey(Commet record);",
"int updateByPrimaryKey(SysId reco... | [
"0.7936555",
"0.7855804",
"0.7846036",
"0.7834323",
"0.78288585",
"0.78213406",
"0.78046525",
"0.78018767",
"0.77970725",
"0.77920717",
"0.7791931",
"0.7779826",
"0.7765076",
"0.7764505",
"0.77606606",
"0.775832",
"0.7757925",
"0.7737116",
"0.7733607",
"0.7731995",
"0.7729180... | 0.0 | -1 |
Delete a record in DB | @Override
public E delete(final E entity) {
LOG.info("[delete] Start: entity = " + entity.getClass().getSimpleName());
entityManager.remove(entity);
LOG.info("[delete] End");
return entity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int deleteByPrimaryKey(BorrowDO record){\n return borrowExtMapper.deleteByPrimaryKey(record);\n }",
"int deleteByPrimaryKey(Integer recordId);",
"int deleteByPrimaryKey(PersonRegisterDo record);",
"public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=... | [
"0.764697",
"0.7517313",
"0.75053895",
"0.7473998",
"0.74540424",
"0.7453962",
"0.7449541",
"0.73295856",
"0.7329032",
"0.72911906",
"0.72719896",
"0.7261537",
"0.7226121",
"0.7194684",
"0.717579",
"0.71738076",
"0.7169712",
"0.7152108",
"0.7141469",
"0.71325535",
"0.71090233... | 0.0 | -1 |
Get a record by Id | @Override
public E getById(final I id) {
LOG.info("[getById] Start: Id = " + id);
LOG.info("[getById] End");
return entityManager.find(entityClass, id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Record readRecord(Long id);",
"@Override\n\tpublic Record getRecordById(int id) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tRecordDAO recordDAO = new RecordDAO();\n\t\tRecord R = null;\n\n\t\ttry {\n\t\t\tR = recordDAO.findById(id);... | [
"0.81750095",
"0.76920295",
"0.76476645",
"0.76198256",
"0.7615597",
"0.75681996",
"0.754142",
"0.7531936",
"0.73692656",
"0.7366876",
"0.72908044",
"0.7255101",
"0.7251041",
"0.7248813",
"0.72440416",
"0.72422695",
"0.7229122",
"0.72007483",
"0.7182801",
"0.71800464",
"0.717... | 0.65772396 | 98 |
Get EntityManager to use in child class | @Override
public EntityManager getEntityManager() {
return entityManager;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract EntityManager getEntityManager();",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}",
"abstract E getEntityManager();",
"@Override\n protected EntityManager getEntityManager() {\n return em;\n }",
"@Override\n\tprotected EntityManag... | [
"0.837513",
"0.8230992",
"0.81390816",
"0.8100898",
"0.80995786",
"0.80995786",
"0.80414844",
"0.80283797",
"0.7965878",
"0.78439754",
"0.7823161",
"0.7775839",
"0.77231276",
"0.7663612",
"0.755097",
"0.755097",
"0.755097",
"0.7542705",
"0.7539924",
"0.7497146",
"0.74951565",... | 0.8247753 | 1 |
Render the template once directly | public static void checkOutput(String expected, Template template, long milliseconds, Map<String, Object> globalVariables, Map<String, Object> variables)
{
String output1 = template.renders(milliseconds, globalVariables, variables);
assertEquals(expected, output1);
// Recreate the template from the dump of the ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void render(){}",
"public void render() {\n\t\t// do nothing... as we should\n\t}",
"@Override\n\tpublic void forceRender() {\n\n\t}",
"@Override\r\n\tpublic void render() {\n\t\t\r\n\t}",
"public void render()\r\n\t{\n\t}",
"private void render() {\n\n StateManager.getState().render();\... | [
"0.6713974",
"0.6445567",
"0.6207917",
"0.6166699",
"0.6115438",
"0.6070551",
"0.6061616",
"0.6055267",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6003819",
"0.5962317",
"0.59472007",
"0.593744",
"0.5914997",
"0.59076583",
"0.587827",
"... | 0.0 | -1 |
Execute the template once by directly compiling and calling it | private static void checkResult(Object expected, Template template, Map<String, Object> variables)
{
Object output1 = template.call(variables);
assertEquals(expected, output1);
// Recreate the template from the dump of the compiled template
Template template2 = Template.loads(template.dumps());
// Check th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void compile() /*-{\r\n\t\tvar template = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\r\n\t\ttemplate.compile();\r\n\t}-*/;",
"@Override\n\tpublic void compile() {\n\t\t\n\t}",
"public void compile(Template t, TemplateModel model, XmlResult out) throws TemplateCompileException;",
... | [
"0.6471106",
"0.61923915",
"0.5914754",
"0.59096426",
"0.5879249",
"0.58715266",
"0.5869652",
"0.5840151",
"0.5834396",
"0.5800835",
"0.57941735",
"0.57718456",
"0.56823224",
"0.56430525",
"0.5612646",
"0.5603882",
"0.55398005",
"0.5516501",
"0.5376963",
"0.5349699",
"0.53236... | 0.0 | -1 |
Without linefeeds the text will be output asis. | @Test
public void smart_whitespace() throws Exception
{
checkOutput("\tTrue", T("<?if True?>\tTrue<?end if?>", Template.Whitespace.smart));
// Line feeds will be removed from lines containing only a "control flow" tag.
checkOutput("True\n", T("<?if True?>\nTrue\n<?end if?>\n", Template.Whitespace.smart));
/... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void println ()\n {\n if (text != null)\n {\n text.append (Out.NL);\n col = 0;\n }\n else\n super.println ();\n }",
"private void newline() {}",
"private void textilize () {\n\n textIndex = 0;\n int textEnd = line.length() - 1;\n listChars = new StringB... | [
"0.657527",
"0.61106867",
"0.6100827",
"0.6100588",
"0.609294",
"0.60704833",
"0.60029763",
"0.59660983",
"0.59449255",
"0.5943631",
"0.59308094",
"0.58950645",
"0.5885321",
"0.58785754",
"0.5877786",
"0.58439755",
"0.58113",
"0.57427186",
"0.5657845",
"0.56384385",
"0.562939... | 0.0 | -1 |
Test that expressions for keyword arguments are evaluated in the order they are given | @Test
public void keywordEvaluationOrder()
{
Template t1 = T("<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(1), y=makevar(2))?>");
String output1 = t1.renders(V("makevar", new MakeVar()));
assertEquals("1;3", output1);
Template t2 = T("<?def t?><?print x?>;<?print y?><?end def?><?render t(x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean requiresExpression(int k);",
"@Test\n public void execute_nameParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"name\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_paramete... | [
"0.5832374",
"0.5704368",
"0.5605504",
"0.55712354",
"0.5483472",
"0.54776365",
"0.5450948",
"0.53603464",
"0.53375244",
"0.5230184",
"0.5162623",
"0.5109156",
"0.50666517",
"0.50279176",
"0.50115967",
"0.496968",
"0.49108875",
"0.48817882",
"0.48567387",
"0.48301443",
"0.482... | 0.5073293 | 12 |
Check that numbers that are not table fields don't get truncated to integer because the database doesn't know their scale | @Test
public void db_query_scale() throws Exception
{
Template t = T("<?for row in db.query('select 0.5 as x from dual')?><?print row.x > 0?><?end for?>");
Connection db = getDatabaseConnection();
if (db != null)
checkOutput("True", t, V("db", db));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void test_column_type_detection_integer_04() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDunsignedInt), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n ... | [
"0.6129997",
"0.6099717",
"0.60605794",
"0.6045268",
"0.5967309",
"0.59567547",
"0.58867353",
"0.57837224",
"0.5567524",
"0.55102164",
"0.54927737",
"0.548004",
"0.53948444",
"0.5336293",
"0.53237045",
"0.53200966",
"0.5304654",
"0.5297562",
"0.5294901",
"0.5291254",
"0.52739... | 0.0 | -1 |
Deploys a LiveCycle application | public void execute() throws BuildException {
ServiceClientFactory scf=super.getServiceClientFactory();
try {
ApplicationManagerClient amClient=new ApplicationManagerClient(scf);
amClient.deployApplication(applicationName,version);
// Log success message for feedback
log("Succe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deployApp(String marathonJson);",
"private void initialDeploy() {\n }",
"public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofNullable(kalixContext));\n }",
"CdapDeployAppStep createCdapDeployAppStep();",
"public v... | [
"0.6008114",
"0.5926055",
"0.5917713",
"0.5911566",
"0.5797469",
"0.56826025",
"0.56209624",
"0.548618",
"0.54472715",
"0.54036057",
"0.53829294",
"0.5351952",
"0.5343885",
"0.5323457",
"0.52438265",
"0.52215004",
"0.5169605",
"0.51593727",
"0.50956833",
"0.5081502",
"0.50789... | 0.60918856 | 0 |
Evaluates the function based on the parameters | public abstract double[] evaluateAt(double u, double v); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Result evaluate();",
"public MathObject evaluate(Function input);",
"protected abstract Value evaluate();",
"double evaluate(double[] argument);",
"public double evaluate(double x);",
"public abstract double evaluate(double value);",
"double eval();",
"public abstract double evaluate(Point p);",
"@... | [
"0.73276585",
"0.7043206",
"0.6971528",
"0.6890439",
"0.68100977",
"0.6733974",
"0.6731582",
"0.65882844",
"0.65835017",
"0.6570433",
"0.65304244",
"0.64865",
"0.64855945",
"0.64795184",
"0.641046",
"0.63854814",
"0.63642627",
"0.6322088",
"0.6237007",
"0.62257606",
"0.621069... | 0.56160384 | 61 |
The partial derivative if its hard coded in | public double[] partialU(double u, double v) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Function derivative();",
"@Override\n\tpublic Function derivative() {\n\t\tderivativeConstants[0] = 0;\n\t\tfor (int i = 0; i < constants.length - 1; i++) {\n\t\t\tderivativeConstants[i + 1] = constants[i] * (constants.length - i - 1);\n\t\t}\n\t\treturn new Polynomial(derivativeConstants);\n\t}"... | [
"0.7445129",
"0.7057525",
"0.68444717",
"0.654197",
"0.640817",
"0.63875693",
"0.6361245",
"0.6226262",
"0.62055755",
"0.6153911",
"0.60596335",
"0.6018383",
"0.5972306",
"0.58966017",
"0.58640486",
"0.58403647",
"0.5827727",
"0.577674",
"0.57633346",
"0.5702951",
"0.563787",... | 0.0 | -1 |
The partial derivative if its hard coded in | public double[] partialV(double u, double v) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Function derivative();",
"@Override\n\tpublic Function derivative() {\n\t\tderivativeConstants[0] = 0;\n\t\tfor (int i = 0; i < constants.length - 1; i++) {\n\t\t\tderivativeConstants[i + 1] = constants[i] * (constants.length - i - 1);\n\t\t}\n\t\treturn new Polynomial(derivativeConstants);\n\t}"... | [
"0.7444539",
"0.7058098",
"0.68450767",
"0.65420735",
"0.6408906",
"0.6387818",
"0.6361637",
"0.6227285",
"0.62046444",
"0.61524755",
"0.6060011",
"0.6017732",
"0.5972439",
"0.58969194",
"0.5863398",
"0.58413655",
"0.5827143",
"0.57763493",
"0.57633114",
"0.5704009",
"0.56393... | 0.0 | -1 |
Value will be injected from single parametrized constructor | public Node(char value) {
this.value = value;
this.left = null;
this.right = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MyArg(int value){\n this.value = value;\n }",
"public AbstractValueHolder() {\n }",
"public UserParameter() {\n }",
"private Params()\n {\n }",
"private Value() {\n\t}",
"public FactoryValue( ) \r\n {\r\n }",
"public BaseParameters(){\r\n\t}",
"public ParameterizedInstantiateFac... | [
"0.6427717",
"0.6313901",
"0.6221457",
"0.6019697",
"0.6014177",
"0.5983813",
"0.59260327",
"0.59159905",
"0.5892594",
"0.58903605",
"0.58856964",
"0.5884863",
"0.5870297",
"0.58677185",
"0.5838179",
"0.5826422",
"0.58221966",
"0.58075684",
"0.5748403",
"0.5730929",
"0.571268... | 0.0 | -1 |
Getters and Setters start here | public Node getLeft() {
return left;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"@Override\n public void get() {}",
"public void get() {\n }",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"... | [
"0.6717844",
"0.6596377",
"0.6484607",
"0.6295587",
"0.6247652",
"0.6247652",
"0.6231088",
"0.6215076",
"0.61850363",
"0.6122199",
"0.6108408",
"0.6073544",
"0.6051757",
"0.60449165",
"0.6032829",
"0.6022724",
"0.6004658",
"0.5951234",
"0.5916827",
"0.5916384",
"0.5893489",
... | 0.0 | -1 |
Created by Guillaume on 08/08/2017. back | @Repository
public interface RoleRepository extends CrudRepository<Role, Long> {
Role findByRole(String name);
List<Role> findAll();
Set<Role> findAllByIdIn(List<Long> id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bic... | [
"0.57712644",
"0.56499803",
"0.5633226",
"0.560552",
"0.55612886",
"0.55612886",
"0.5554776",
"0.55452085",
"0.55351686",
"0.5525691",
"0.55143726",
"0.5501882",
"0.5468943",
"0.54507744",
"0.54494697",
"0.5441359",
"0.54318595",
"0.54116285",
"0.54073876",
"0.5400144",
"0.53... | 0.0 | -1 |
to install app instead on openings it: use App & NewCommanTimeOut instead of appPackage & appAcitivity. | @Test
public void clickOnGift()
{WebDriverWait wait = new WebDriverWait(driver, 60);
// driver.navigate().back();
driver.findElement(By.id("il.co.mintapp.buyme:id/skipButton")).click();
driver.findElement(By.id("il.co.mintapp.buyme:id/skipTitle")).click();
wait.until(ExpectedC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void handleApplicationLaunch(Context context) {\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n\n boolean doNotRemindAgain = sharedPrefs.getBoolean(PREF_KEY_DO_NOT_REMIND_AGAIN, false);\n if (!doNotRemindAgain) {\n // Increme... | [
"0.6255848",
"0.62439525",
"0.624145",
"0.6047913",
"0.60263675",
"0.60103583",
"0.5944619",
"0.5847677",
"0.5843415",
"0.57608324",
"0.5706655",
"0.5668339",
"0.5652373",
"0.56203294",
"0.5547619",
"0.5536012",
"0.55254275",
"0.5519486",
"0.55168056",
"0.550924",
"0.5503252"... | 0.0 | -1 |
Get the value of job_KindString | public String getJob_KindString() {
return job_KindString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJob_KindString(String job_KindString) {\r\n this.job_KindString = job_KindString;\r\n }",
"@ApiModelProperty(value = \"The canonical name for the job followed by phase in brackets, ie. 'AVscan[1]', etc...\")\n public String getJobType() {\n return jobType;\n }",
"@Override\n pu... | [
"0.73586863",
"0.63754857",
"0.6208084",
"0.6155087",
"0.6110659",
"0.60936",
"0.60912085",
"0.6083678",
"0.60820067",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6043175",
"0.6043175",
"0.598836",
"0.598836",
"0.5977626",
"0.5893166",
"... | 0.8571727 | 0 |
Set the value of job_KindString | public void setJob_KindString(String job_KindString) {
this.job_KindString = job_KindString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getJob_KindString() {\r\n return job_KindString;\r\n }",
"@InterfaceAudience.Private\n public synchronized void setKind(Text newKind) {\n kind = newKind;\n renewer = null;\n }",
"public void setKind(String _kind) { kind = _kind; }",
"void setValueString(org.hl7.fhir.String val... | [
"0.71625644",
"0.60233235",
"0.597968",
"0.5656475",
"0.563542",
"0.5629625",
"0.56057614",
"0.5548414",
"0.54552037",
"0.54552037",
"0.5383511",
"0.5383511",
"0.53831434",
"0.5349797",
"0.53400636",
"0.53400636",
"0.53400636",
"0.53369254",
"0.5301311",
"0.5281381",
"0.52542... | 0.8294509 | 0 |
Get the value of job_Difficulty | public ComboBoxDataObject getJob_Difficulty() {
return job_Difficulty;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDifficulty() {\n return this.difficulty;\n }",
"public String getDifficulty() {\n return difficulty;\n }",
"public String getDifficulty() {\n\t\treturn difficulty;\n\t}",
"public int getDifficulty() {\n return getStat(difficulty);\n }",
"public int getDifficulty() {\n ... | [
"0.75250286",
"0.74723613",
"0.7439435",
"0.7422454",
"0.7363607",
"0.735132",
"0.7288838",
"0.7285832",
"0.7242817",
"0.7216546",
"0.71221393",
"0.71048933",
"0.64012164",
"0.6381012",
"0.63517433",
"0.6257931",
"0.62097234",
"0.6172962",
"0.5924609",
"0.59000397",
"0.588670... | 0.753232 | 0 |
Set the value of job_Difficulty | public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {
this.job_Difficulty = job_Difficulty;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDifficulty(Difficulty newDifficulty) {\n\t\tdifficulty = newDifficulty;\n\t}",
"public void setGameDifficulty(Difficulty selectedDifficulty) {\r\n\t\tgameInfo.setDifficulty(selectedDifficulty);\r\n\t}",
"public void setDifficulty(int difficulty) {\n if (this.difficulty != difficulty) {\n ... | [
"0.70211285",
"0.6961355",
"0.6896535",
"0.678526",
"0.6745914",
"0.65096116",
"0.62780726",
"0.6246176",
"0.62079203",
"0.6168984",
"0.6012305",
"0.5999744",
"0.59667253",
"0.5949406",
"0.59403616",
"0.5939541",
"0.5927566",
"0.5831066",
"0.5680343",
"0.5646115",
"0.5630894"... | 0.7370821 | 0 |
Get the value of job_TypeOfWork | public ComboBoxDataObject getJob_TypeOfWork() {
return job_TypeOfWork;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getJobType() {\n return jobType;\n }",
"public java.lang.Object getWorkTypeID() {\n return workTypeID;\n }",
"public JobType getType() { return type; }",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public void setJob_TypeOfWork(ComboBoxDataOb... | [
"0.7514318",
"0.7204614",
"0.7022263",
"0.68134516",
"0.671249",
"0.6640902",
"0.65813357",
"0.64635944",
"0.6458405",
"0.63285655",
"0.62846506",
"0.62461406",
"0.6243872",
"0.62235594",
"0.61861324",
"0.6145423",
"0.60446334",
"0.6021822",
"0.5953146",
"0.59250927",
"0.5913... | 0.8011065 | 0 |
Set the value of job_TypeOfWork | public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {
this.job_TypeOfWork = job_TypeOfWork;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJobType(int value) {\n this.jobType = value;\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public void setWorkTypeID(java.lang.Object workTypeID) {\n this.workTypeID = workTypeID;\n }",
"public void setWork(long work, F... | [
"0.74811614",
"0.6869649",
"0.6632532",
"0.652534",
"0.62832546",
"0.6271298",
"0.6223795",
"0.618074",
"0.61450326",
"0.6118288",
"0.6094469",
"0.60616237",
"0.5924602",
"0.5913015",
"0.5751934",
"0.5697001",
"0.5686553",
"0.5684489",
"0.56598014",
"0.5592445",
"0.5591474",
... | 0.7814318 | 0 |
Get the value of job_Designer | public EmployerDataObject getJob_Designer() {
return job_Designer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public String getJob() {\n ret... | [
"0.680359",
"0.6636924",
"0.6497585",
"0.6491829",
"0.6389793",
"0.63490367",
"0.62657315",
"0.616021",
"0.61360097",
"0.5965281",
"0.59280115",
"0.5862261",
"0.5847653",
"0.58272994",
"0.58224046",
"0.5802937",
"0.5782826",
"0.5776619",
"0.57684416",
"0.5761076",
"0.5750244"... | 0.79637295 | 0 |
Set the value of job_Designer | public void setJob_Designer(EmployerDataObject job_Designer) {
this.job_Designer = job_Designer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EmployerDataObject getJob_Designer() {\r\n return job_Designer;\r\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setDesigner(Designer d) {\n\t\tdesigner = d;\n\t}",
"public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer =... | [
"0.7046649",
"0.63825315",
"0.63006604",
"0.6233617",
"0.6175659",
"0.6057684",
"0.6021867",
"0.60115767",
"0.57779676",
"0.57361865",
"0.5718128",
"0.569476",
"0.5648352",
"0.56222063",
"0.5619943",
"0.558917",
"0.5586459",
"0.5556508",
"0.5475891",
"0.5468383",
"0.5449356",... | 0.8220909 | 0 |
Get the value of job_StatusCheck | public StatusCheckDataObject getJob_StatusCheck() {
return job_StatusCheck;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getJobStatus(int jNo);",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public Integer getJobStatus() {\n return jobStatus;\n }",
"public JobStatus getStatus();",
"public String getChe... | [
"0.76049876",
"0.7487108",
"0.7487108",
"0.73720086",
"0.7332041",
"0.72465634",
"0.72376233",
"0.6983102",
"0.6983102",
"0.688619",
"0.6686945",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.6... | 0.79897434 | 0 |
Set the value of job_StatusCheck | public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {
this.job_StatusCheck = job_StatusCheck;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setStatus(JobStatus ... | [
"0.70200664",
"0.68279046",
"0.68279046",
"0.66795963",
"0.65370166",
"0.65370166",
"0.6485615",
"0.64798295",
"0.63833356",
"0.6142807",
"0.6139123",
"0.61073387",
"0.6085371",
"0.6069983",
"0.60458356",
"0.6009141",
"0.59958154",
"0.59915507",
"0.59813756",
"0.5979425",
"0.... | 0.8268779 | 0 |
Get the value of job_TM | public String getJob_TM() {
return job_TM;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJob_TM(String job_TM) {\r\n this.job_TM = job_TM;\r\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public String getJob() {\n return job;\n }",
"pu... | [
"0.73273414",
"0.65257305",
"0.64365333",
"0.64298016",
"0.638291",
"0.61566395",
"0.60815114",
"0.60744715",
"0.5999343",
"0.5964792",
"0.5895684",
"0.5864699",
"0.5837894",
"0.58346766",
"0.57496023",
"0.574615",
"0.573359",
"0.570421",
"0.56892496",
"0.5681802",
"0.5665415... | 0.8356935 | 0 |
Set the value of job_TM | public void setJob_TM(String job_TM) {
this.job_TM = job_TM;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getJob_TM() {\r\n return job_TM;\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void setTjm(String tjm) {\n this.tjm = tjm == null ? null : tjm.trim();\n }",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontrolle... | [
"0.6864677",
"0.63866895",
"0.5549661",
"0.55267376",
"0.5517354",
"0.55083525",
"0.55065155",
"0.54670936",
"0.54411817",
"0.54342675",
"0.54177105",
"0.5384499",
"0.5379575",
"0.5273728",
"0.5264987",
"0.52619004",
"0.5259019",
"0.5167907",
"0.5142352",
"0.51367563",
"0.513... | 0.7977684 | 0 |
Get the value of job_Customer | public CustomerDataObject getJob_Customer() {
return job_Customer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }",
"public String getJob_customer_addresses_id() {\n return job_customer_addresses_id;\n }",
"public Integer getCustomer() {\n return customer;\n }",
"public String getCusto... | [
"0.68969816",
"0.66504747",
"0.6514621",
"0.651396",
"0.65107524",
"0.6388731",
"0.6325645",
"0.63121724",
"0.629243",
"0.6232507",
"0.61905",
"0.61905",
"0.61627454",
"0.6148205",
"0.6139004",
"0.61267376",
"0.61127293",
"0.6108032",
"0.61017513",
"0.60924476",
"0.60924476",... | 0.8166032 | 0 |
Set the value of job_Customer | public void setJob_Customer(CustomerDataObject job_Customer) {
this.job_Customer = job_Customer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCustomer(String Cus){\n\n this.customer = Cus;\n }",
"public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }",
"protected void setCustomer(Customer customer) {\n this.customer = customer;\n }",
"public void setCustomerId(long value) {\n ... | [
"0.6953588",
"0.6919984",
"0.68539786",
"0.6800784",
"0.6794306",
"0.6784034",
"0.6670869",
"0.6637408",
"0.6605821",
"0.66007006",
"0.6593921",
"0.6480009",
"0.6451202",
"0.6442883",
"0.6364933",
"0.63221246",
"0.62879056",
"0.6268699",
"0.6259249",
"0.6254132",
"0.6246725",... | 0.8681379 | 0 |
Find a refresh token based on the natural id i.e the token itself | public Optional<RefreshToken> findByToken(String token) {
return refreshTokenRepository.findByToken(token);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RefreshToken generateRefreshToken(){\n RefreshToken refreshToken = new RefreshToken();\n //Creates a 128bit random UUID. This serves as our refresh token\n refreshToken.setToken(UUID.randomUUID().toString());\n //Set creation timestampt\n refreshToken.setCreatedDate(Instan... | [
"0.6207496",
"0.6193389",
"0.6135563",
"0.609998",
"0.5969791",
"0.5965414",
"0.5842846",
"0.58282167",
"0.5781099",
"0.57661027",
"0.57431626",
"0.57033396",
"0.56895185",
"0.56895185",
"0.56878626",
"0.5656765",
"0.565261",
"0.5647817",
"0.5602125",
"0.55983806",
"0.557757"... | 0.6177716 | 2 |
Persist the updated refreshToken instance to database | public RefreshToken save(RefreshToken refreshToken) {
return refreshTokenRepository.save(refreshToken);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n saveToken(refreshedToken);\n sendRegistrationToServer(refreshedToken);\n }",
"@Override\n public void on... | [
"0.66788286",
"0.6618583",
"0.6379781",
"0.62347925",
"0.6220963",
"0.6216835",
"0.6150218",
"0.6133613",
"0.60481405",
"0.6041174",
"0.600882",
"0.6005868",
"0.5988483",
"0.5918793",
"0.5913729",
"0.58691174",
"0.5868335",
"0.58206546",
"0.58200365",
"0.57376605",
"0.5733683... | 0.708794 | 0 |
Creates and returns a new refresh token | public RefreshToken createRefreshToken() {
RefreshToken refreshToken = new RefreshToken();
refreshToken.setExpiryDate(Instant.now().plusMillis(refreshTokenDurationMs));
refreshToken.setToken(Util.generateRandomUuid());
refreshToken.setRefreshCount(0L);
return refreshToken;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RefreshToken generateRefreshToken(){\n RefreshToken refreshToken = new RefreshToken();\n //Creates a 128bit random UUID. This serves as our refresh token\n refreshToken.setToken(UUID.randomUUID().toString());\n //Set creation timestampt\n refreshToken.setCreatedDate(Instan... | [
"0.8217952",
"0.747353",
"0.67351997",
"0.66204387",
"0.6611577",
"0.6605328",
"0.6512928",
"0.6494787",
"0.6442395",
"0.64253104",
"0.6420824",
"0.6373137",
"0.6174432",
"0.6167553",
"0.6166547",
"0.60970604",
"0.6044652",
"0.6041487",
"0.60164684",
"0.6003172",
"0.59786546"... | 0.78709555 | 1 |
Verify whether the token provided has expired or not on the basis of the current server time and/or throw error otherwise | public void verifyExpiration(RefreshToken token) {
if (token.getExpiryDate().compareTo(Instant.now()) < 0) {
throw new TokenRefreshException(token.getToken(), "Expired token. Please issue a new request");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkTokenExpiry(String token) {\n System.out.println(token);\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(token);\n ... | [
"0.7807247",
"0.7722056",
"0.7517308",
"0.7507055",
"0.73908234",
"0.7343495",
"0.7331186",
"0.72937757",
"0.71636415",
"0.7126176",
"0.70724314",
"0.7047834",
"0.703569",
"0.6990847",
"0.6988698",
"0.69220823",
"0.6841929",
"0.67952275",
"0.6769033",
"0.67591053",
"0.6735834... | 0.775627 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.