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 |
|---|---|---|---|---|---|---|
this is a nonportable call | private void truncateTable() throws SQLException {
trace("truncateTable");
String command = "TRUNCATE TABLE " + _tableName;
Statement stmt = _connection.createStatement();
stmt.executeUpdate(command);
stmt.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"zzafe mo29840Y() throws RemoteException;",
"@Override\n public void func_104112_b() {\n \n }",
"zzang mo29839S() throws RemoteException;",
"public abstract void mo70713b();",
"private stendhal() {\n\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"public void method_4270() {}",
"pub... | [
"0.6080194",
"0.5978864",
"0.5973215",
"0.5843041",
"0.583912",
"0.58269876",
"0.5799802",
"0.57949317",
"0.5792664",
"0.5756772",
"0.5731513",
"0.57269824",
"0.5717713",
"0.5710455",
"0.56999046",
"0.56756306",
"0.5656351",
"0.56512535",
"0.56383085",
"0.56321657",
"0.563046... | 0.0 | -1 |
Creates a new RenderKitBean. | public RenderKitBean()
{
_renderers = new TreeMap();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void create() {\r\n render();\r\n }",
"@Override\n public BeanWraper createBeanWraper() {\n \treturn newBeanWraper();\n }",
"public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }",
"@Override\n\tpublic Object creatBean(BeanEntity ... | [
"0.59303147",
"0.574609",
"0.5724093",
"0.5634736",
"0.5631709",
"0.55964273",
"0.5397464",
"0.5366263",
"0.53318924",
"0.53318924",
"0.5316617",
"0.5272326",
"0.5252173",
"0.5231422",
"0.52206445",
"0.520471",
"0.5174235",
"0.5165223",
"0.51618475",
"0.5158947",
"0.5144291",... | 0.67886126 | 0 |
Sets the render kit id for this component. | public void setRenderKitId(
String renderKitId)
{
_renderKitId = renderKitId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRenderKitId()\r\n {\r\n return _renderKitId;\r\n }",
"public String getRenderKitId()\n {\n return _renderKitId;\n }",
"@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}",
"@Override\n public RenderKit getRenderKit(String renderKitId) {\n return c... | [
"0.7203696",
"0.7132006",
"0.6122356",
"0.6090489",
"0.6052925",
"0.58413154",
"0.5797947",
"0.5742856",
"0.57232904",
"0.56909907",
"0.5639552",
"0.5606658",
"0.5593522",
"0.55861306",
"0.55850905",
"0.55850905",
"0.557126",
"0.557126",
"0.557126",
"0.5561299",
"0.55595773",... | 0.76155716 | 0 |
Returns the render kit id type for this component. | public String getRenderKitId()
{
return _renderKitId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getIdType() {\n return idType;\n }",
"public String getId_type() {\n return id_type;\n }",
"public int getRenderType()\r\n {\r\n return mod_FCBetterThanWolves.iCustomPlatformRenderID;\r\n }",
"public int getTypeId() {\n return instance.getTypeId();\n }",... | [
"0.70032096",
"0.695059",
"0.6927609",
"0.6913604",
"0.68964094",
"0.6872473",
"0.67579585",
"0.67516136",
"0.6746642",
"0.6732146",
"0.671931",
"0.66915727",
"0.66637677",
"0.6663418",
"0.66383517",
"0.6617665",
"0.66095686",
"0.6575681",
"0.6562473",
"0.655409",
"0.6489426"... | 0.672186 | 10 |
Adds a renderer to this render kit. | public void addRenderer(
RendererBean renderer)
{
String componentFamily = renderer.getComponentFamily();
String rendererType = renderer.getRendererType();
String compositeKey = componentFamily + "|" + rendererType;
_renderers.put(compositeKey, renderer);
FacesConfigBean owner = getOwner();
if (owner != null)
renderer.attach(owner);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void addRenderer(Renderer renderer)\n {\n renderers.add(renderer);\n Collections.sort(renderers);\n }",
"public void registerRenderer() {}",
"public void registerRenderer() {}",
"public void setRenderer(Renderer renderer)\n\t{\n\t\tgetObject().setRenderer(renderer);\n\t\treturn;\n\... | [
"0.745024",
"0.7229706",
"0.7229706",
"0.6764335",
"0.6548181",
"0.6424376",
"0.64170015",
"0.6321913",
"0.6247287",
"0.6079734",
"0.60705584",
"0.60453236",
"0.6003626",
"0.5921509",
"0.589519",
"0.58909243",
"0.58035445",
"0.5791283",
"0.5675337",
"0.5618693",
"0.55748326",... | 0.73608917 | 1 |
Returns the renderer for this component family and renderer type. | public RendererBean findRenderer(
String componentFamily,
String rendererType)
{
String compositeKey = componentFamily + "|" + rendererType;
return _renderers.get(compositeKey);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRendererType();",
"public Renderer getRenderer()\n\t{\n\t\treturn getObject().getRenderer();\n\t}",
"@Override\n public abstract String getRendererType();",
"java.lang.String getRenderer();",
"@NativeType(\"bgfx_renderer_type_t\")\n public static int bgfx_get_renderer_type() {\n long... | [
"0.7697829",
"0.7409063",
"0.71755314",
"0.70533144",
"0.69990456",
"0.6875924",
"0.6817042",
"0.67858815",
"0.66154665",
"0.65860224",
"0.657765",
"0.6572652",
"0.6455398",
"0.64177436",
"0.6415278",
"0.64046574",
"0.6382341",
"0.61811745",
"0.6163083",
"0.6158073",
"0.61475... | 0.7929438 | 0 |
Returns true if this render kit has any renderers. | public boolean hasRenderers()
{
return !_renderers.isEmpty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasRegistry() {\n return registryBuilder_ != null || registry_ != null;\n }",
"public boolean hasRegistry() {\n return registry_ != null;\n }",
"public boolean isReadyToRender() {\n return mHasSwapChain;\n }",
"public boolean hasViewers() {\n return super.h... | [
"0.6897281",
"0.66880465",
"0.66829365",
"0.66091436",
"0.6404055",
"0.63853383",
"0.6346594",
"0.63203675",
"0.6263432",
"0.6263432",
"0.6260665",
"0.6244974",
"0.61395293",
"0.61395293",
"0.61170965",
"0.60824347",
"0.60760355",
"0.6060404",
"0.6052157",
"0.6052157",
"0.605... | 0.8450425 | 0 |
Returns an iterator for all renderers in this render kit. | public Iterator<RendererBean> renderers()
{
return _renderers.values().iterator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Collection<TreeRendererDescriptor> registeredRenderers() {\n return Collections.unmodifiableCollection(REGISTRY.values());\n }",
"public TraceViewRenderer[] getRenderers() {\n List<TraceViewRenderer> renderers = new ArrayList<TraceViewRenderer>();\n for (IViewLayer viewLayer : getLa... | [
"0.6568516",
"0.633778",
"0.61733055",
"0.61410964",
"0.6032388",
"0.6005141",
"0.5945211",
"0.59442616",
"0.58768773",
"0.5696288",
"0.566005",
"0.5623789",
"0.54649115",
"0.5451865",
"0.54264385",
"0.54238105",
"0.5407193",
"0.53962255",
"0.5393374",
"0.53886914",
"0.538689... | 0.819661 | 0 |
Attaches the component and all event references. | protected void attach(
FacesConfigBean owner)
{
super.attach(owner);
Iterator<RendererBean> renderers = renderers();
while (renderers.hasNext())
{
RendererBean renderer = renderers.next();
renderer.attach(owner);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void componentAdded(ContainerEvent arg0){}",
"protected void attachListeners() {\n\t\t\n\t}",
"@Override\n \t\t\t\tpublic void doAttachTo() {\n \n \t\t\t\t}",
"@Override\r\n\tprotected void attachListeners() {\n\t\t\r\n\t}",
"public abstract void onAttach();",
"@Override\n ... | [
"0.5890059",
"0.5825959",
"0.5819228",
"0.5779021",
"0.5410811",
"0.53836536",
"0.53830546",
"0.5377359",
"0.5373623",
"0.5370566",
"0.5343441",
"0.5343441",
"0.5313032",
"0.5313032",
"0.5312906",
"0.530315",
"0.529816",
"0.52600074",
"0.5250626",
"0.52494407",
"0.52391344",
... | 0.528438 | 17 |
constructor for JAVA services | public RedisTopicMapSystem() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Service(){\n\t\t\n\t}",
"private Service() {}",
"public InitService() {\n super(\"InitService\");\n }",
"public CallService() {\n super(\"My\");\n }",
"public ServiceClient() {\n\t\tsuper();\n\t}",
"public TestService() {}",
"private WebServicesFabrica(){}",
"public VehmonS... | [
"0.8129728",
"0.7844317",
"0.76666677",
"0.74695945",
"0.7465574",
"0.74178696",
"0.73967206",
"0.73906404",
"0.7385082",
"0.7357023",
"0.7311334",
"0.7274499",
"0.72650105",
"0.7230775",
"0.72216123",
"0.7220457",
"0.7214595",
"0.71793365",
"0.71719366",
"0.71633387",
"0.715... | 0.0 | -1 |
public String sum(Values value); | public int set_code(String b); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSum();",
"double getSum();",
"double getSum();",
"public static String sumStringValues(String... values) {\n\t\tFloat total = new Float(0);\n\t\tfor (String value : values) {\n\t\t\ttotal += formatString(value);\n\t\t}\n\t\treturn curencyFormatterString(total);\n\t}",
"public T sum();",
... | [
"0.7544775",
"0.69116724",
"0.69116724",
"0.6696879",
"0.6561051",
"0.65411735",
"0.6270552",
"0.6244004",
"0.62375677",
"0.6212203",
"0.6205406",
"0.61930066",
"0.61691386",
"0.6146593",
"0.6108814",
"0.60841674",
"0.602764",
"0.6024291",
"0.59713495",
"0.5969349",
"0.596589... | 0.0 | -1 |
visitor pattern accept method | public void accept(ProcessEngine engine,ProcessInstance instance) throws Exception
{
//engine.process(this, instance);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void accept(Visitor visitor);",
"public abstract void accept(Visitor v);",
"public abstract void visit();",
"public Object accept(Visitor v, Object params);",
"public void accept(Visitor visitor);",
"void accept(Visitor visitor);",
"void accept(Visitor<V> visitor);",
"@Override\n\tpub... | [
"0.7932193",
"0.7798181",
"0.7685794",
"0.7598962",
"0.7557328",
"0.7419082",
"0.7305987",
"0.72771525",
"0.7217442",
"0.7161726",
"0.71250665",
"0.70852804",
"0.69485617",
"0.69324285",
"0.6930472",
"0.6925446",
"0.6925446",
"0.6924585",
"0.69063175",
"0.69056785",
"0.689684... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args)throws IOException ,SQLException {
log.debug("Hello this is a debug message");
log.info("Hello this is a info message");
log.warn("Sample warn message ");
log.error("Sample error message ");
log.fatal("Sample fatal message ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Creates a new UnsignedInteger32 object. | public UnsignedInteger32(long a) {
if ( (a < MIN_VALUE) || (a > MAX_VALUE)) {
throw new NumberFormatException();
}
value = new Long(a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UnsignedValue createUnsignedValue();",
"@Test(expected = IOException.class)\n\tpublic void testUint32Overflow() throws IOException {\n\t\tBinaryReader br = br(true, 0xff, 0xff, 0xff, 0xff, 0xff);\n\t\tint value = br.readNextUnsignedIntExact();\n\t\tAssert.fail(\n\t\t\t\"Should not be able to read a value that is... | [
"0.633858",
"0.58401656",
"0.57987356",
"0.56179446",
"0.54009247",
"0.5197491",
"0.51881397",
"0.51783395",
"0.5147466",
"0.5112086",
"0.50117683",
"0.49831882",
"0.4930417",
"0.49241468",
"0.48927552",
"0.48891693",
"0.48891693",
"0.4878831",
"0.4873911",
"0.4843145",
"0.48... | 0.64162135 | 0 |
Creates a new UnsignedInteger32 object. | public UnsignedInteger32(String a) throws NumberFormatException {
Long temp = new Long(a);
long longValue = temp.longValue();
if ( (longValue < MIN_VALUE) || (longValue > MAX_VALUE)) {
throw new NumberFormatException();
}
value = new Long(longValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnsignedInteger32(long a) {\r\n if ( (a < MIN_VALUE) || (a > MAX_VALUE)) {\r\n throw new NumberFormatException();\r\n }\r\n\r\n value = new Long(a);\r\n }",
"UnsignedValue createUnsignedValue();",
"@Test(expected = IOException.class)\n\tpublic void testUint32Overflow() throws IOException ... | [
"0.64156675",
"0.6339951",
"0.58389693",
"0.5619756",
"0.54005516",
"0.5196615",
"0.51884323",
"0.5178624",
"0.5148113",
"0.5112414",
"0.50118804",
"0.49821025",
"0.49314788",
"0.492291",
"0.4893964",
"0.48888126",
"0.48888126",
"0.4878483",
"0.48715782",
"0.48420966",
"0.482... | 0.5798675 | 3 |
This returns a JSON or XML with the users | @GetMapping(path="/all")
public @ResponseBody Iterable<Resource> getAllUsers() {
return resourceRepository.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}",
"public... | [
"0.7664993",
"0.7364839",
"0.73002803",
"0.7145995",
"0.71292555",
"0.70709586",
"0.7007832",
"0.7007535",
"0.693743",
"0.68945104",
"0.6879514",
"0.6871711",
"0.68554366",
"0.68467534",
"0.6827243",
"0.6775051",
"0.67645824",
"0.67630523",
"0.67601866",
"0.67510986",
"0.6729... | 0.0 | -1 |
This returns a JSON or XML with the users | @GetMapping(path="/load")
public @ResponseBody Iterable<Resource> loadAllUsers() {
try {
List<Resource> resources = DataLoader.loadData(DataUtils.SLA2017);
resourceRepository.save(resources);
List<Resource> resourcesFalabella = DataLoader.loadData(DataUtils.FALABELLA);
resourceRepository.save(resourcesFalabella);
List<Resource> resourcesSantiago = DataLoader.loadData(DataUtils.SANTIAGO2017);
resourceRepository.save(resourcesSantiago);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}",
"public... | [
"0.7664993",
"0.7364839",
"0.73002803",
"0.7145995",
"0.71292555",
"0.70709586",
"0.7007832",
"0.7007535",
"0.693743",
"0.68945104",
"0.6879514",
"0.6871711",
"0.68554366",
"0.68467534",
"0.6827243",
"0.6775051",
"0.67645824",
"0.67630523",
"0.67601866",
"0.67510986",
"0.6729... | 0.0 | -1 |
Created by qiaoyunrui on 16826. | public interface SignUpContract {
interface Presenter extends BasePresenter {
void signUp(String username, String password, int type, Closure<User> callback);
}
interface View extends BaseView<Presenter> {
void showProgressBar();
void hideProgressBar();
void showToast(String message);
void enableSignUp();
void unenableSignUp();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Overri... | [
"0.6378155",
"0.6190049",
"0.61203086",
"0.6105434",
"0.6062218",
"0.6062218",
"0.6055945",
"0.60535526",
"0.60518456",
"0.6043732",
"0.6019983",
"0.6008132",
"0.6003459",
"0.5986422",
"0.59785527",
"0.5966587",
"0.5962174",
"0.59210473",
"0.59210473",
"0.5907252",
"0.5890105... | 0.0 | -1 |
Put data into the context | public void setProperty(Object key, Object value) {
properties.put(key, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addContextData( String key,\n String value );",
"void setContext(Map<String, Object> context);",
"public void putData(HelperData data);",
"public void put(T data){\r\n\t\tthis.data = data;\r\n\t}",
"public void setData(T data){\n this.data = data;\n }",
... | [
"0.68433493",
"0.6494051",
"0.62283075",
"0.6133683",
"0.59580773",
"0.594965",
"0.5927248",
"0.59078526",
"0.58815783",
"0.57846075",
"0.5780623",
"0.5777428",
"0.57761633",
"0.57737625",
"0.57560086",
"0.5716469",
"0.5699183",
"0.5639889",
"0.56369305",
"0.56332374",
"0.563... | 0.0 | -1 |
Get data from the context | public Object getProperty(Object key) {
return properties.get(key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getCurrentData();",
"Object getData();",
"Object getData();",
"public Object getUserData();",
"public Object getData();",
"T getData() {\n\t\treturn data;\n\t}",
"Object getUserData();",
"Map<String, Object> getContext();",
"public Map<String, Object> getCurrentData() throws Exception;",
"... | [
"0.6875318",
"0.64190197",
"0.64190197",
"0.64162564",
"0.63770723",
"0.63630474",
"0.63162565",
"0.63099635",
"0.626314",
"0.6250078",
"0.62449753",
"0.6241461",
"0.6241366",
"0.6221527",
"0.6203129",
"0.6179242",
"0.61675376",
"0.61524117",
"0.61462307",
"0.61453235",
"0.61... | 0.0 | -1 |
Remove data from the context | public void removeProperty(Object key) {
properties.remove(key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearData() {}",
"public void clearData()\r\n {\r\n \r\n }",
"@Override\n public void clearData() {\n }",
"public void cleanupData() {\n\t}",
"public void clearData() {\r\n\t\tdata = null;\r\n\t}",
"public void clearData(){\n\r\n\t}",
"public void removeAllData() ... | [
"0.6664053",
"0.6498848",
"0.6460008",
"0.6438511",
"0.63866174",
"0.6383372",
"0.637035",
"0.6304153",
"0.62404084",
"0.61873347",
"0.61814845",
"0.6099392",
"0.60535336",
"0.60424405",
"0.6018959",
"0.59986454",
"0.59897846",
"0.5944499",
"0.59230244",
"0.5914833",
"0.59131... | 0.0 | -1 |
Constructor using webDriver instance. | public AbstractWebSite(final WebDriver webDriver) {
assertNotNull(webDriver);
this.webDriver = webDriver;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Page(WebDriver webDriver) {\n this.webDriver = webDriver;\n\t}",
"public Page(WebDriver webDriver) {\n\t\tthis.webDriver = webDriver;\n wait = new WebDriverWait(webDriver, 10);\n\t}",
"public Page(final WebDriver webDriver) {\n\t\tthis.webDriver = webDriver;\n\t}",
"public Page(WebDriver... | [
"0.82470757",
"0.7783316",
"0.76371574",
"0.7525735",
"0.7518157",
"0.74212366",
"0.7307048",
"0.72431064",
"0.7202568",
"0.7178666",
"0.7143563",
"0.7130658",
"0.71258354",
"0.70747167",
"0.7060746",
"0.7040845",
"0.70232016",
"0.70069337",
"0.69760823",
"0.692523",
"0.69187... | 0.704467 | 15 |
Constructor using site url. | public AbstractWebSite(final String siteUrl) {
this(WebDriverFactory.defaultWebDriver());
open(siteUrl);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Site() {\n\n\t}",
"public CasterSite() {\n\t}",
"public Siteword(String site) {\r\n\t this.site = site;\r\n }",
"public ResourceSite() {\n this( null);\n }",
"public PackageSite(String name) {\r\n myName = name;\r\n myURL = null;\r\n myPackages = new ArrayList();... | [
"0.73507684",
"0.7122723",
"0.6774261",
"0.6662538",
"0.6621375",
"0.6552699",
"0.6511967",
"0.6465889",
"0.6464216",
"0.6406135",
"0.63405424",
"0.6315816",
"0.6283773",
"0.6236275",
"0.6214212",
"0.6201098",
"0.6177849",
"0.6117224",
"0.61047715",
"0.6056545",
"0.6042163",
... | 0.7058341 | 2 |
The page is loaded. | public void thePageIsLoaded() {
this.page.isLoaded();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}",
"@Override\r\n\tpublic boolean isPageLoaded() {\n\t\treturn false;\r\n\t}",
"public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}",
"@Override\n public void waitUntilPageObje... | [
"0.82137406",
"0.77254456",
"0.75546145",
"0.7359716",
"0.7192193",
"0.71917725",
"0.714839",
"0.7115329",
"0.70430905",
"0.7033636",
"0.6966949",
"0.6964305",
"0.6955762",
"0.69515425",
"0.69366556",
"0.689134",
"0.6845827",
"0.6823906",
"0.68148035",
"0.6772752",
"0.6765395... | 0.84555686 | 0 |
Top down approach Recursion + Memoization | public static int fibTD(int n) {
int[] dp = new int[n + 1];
Arrays.fill(dp, -1);
return fibTD(n, dp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int percolateUpLeaf(){\n\t\treturn percolateUp(heap.size()-1);// TODO: A one-line function that calls percolateUp()\n\t}",
"StackManipulation cached();",
"private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at e... | [
"0.6121989",
"0.5993928",
"0.5948735",
"0.5867871",
"0.5658638",
"0.5592303",
"0.55792063",
"0.55370283",
"0.5480296",
"0.54476005",
"0.54371685",
"0.53904307",
"0.5382087",
"0.53819805",
"0.53655094",
"0.5315069",
"0.53149676",
"0.5286825",
"0.52831453",
"0.527535",
"0.52144... | 0.0 | -1 |
Zur Quelle gehen, falls lockon nicht schon vorhanden | @Override
public void damage(CombatObject source, Projectile proj, int dmg) {
if (lockOn != null)
return;
// Distanz prüfen
if (!source.isInRange(host, lockPhysicalDetectionRange))
return;
if (source == MainZap.getPlayer() && getHost().isFriend())
return; // Friendly-Fire
// Alle Bedingungen erfüllt
if (parked) // Park-Bremse aufheben
parked = false;
lockOn = source;
host.setShootingAim(source);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lock() {\r\n super.lock();\r\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n\n }",
"@Override\n\tpublic boolean isLocked() { return true... | [
"0.7816328",
"0.775895",
"0.775895",
"0.775895",
"0.77300394",
"0.77197754",
"0.7697559",
"0.76794493",
"0.76794493",
"0.75739735",
"0.7483915",
"0.72545767",
"0.7246728",
"0.72210306",
"0.71975344",
"0.7153221",
"0.71166974",
"0.7054944",
"0.7040745",
"0.70083994",
"0.700643... | 0.0 | -1 |
Creates new form FileCreator | public FileCreator() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FileInfo create(FileInfo fileInfo);",
"private void createResultFilePart() {\n\t\t//------------------------------------------------\n\t\t// Result File Label\n\t\t//------------------------------------------------\n\t\tLabel resultFileLabel = new Label(generalSettingsGroup, SWT.NONE);\n\t\tresultFileLabel.setLa... | [
"0.6431512",
"0.63463676",
"0.6222263",
"0.6135942",
"0.61351997",
"0.61128676",
"0.60841936",
"0.5987535",
"0.5974674",
"0.59726334",
"0.59693694",
"0.5940552",
"0.5921278",
"0.59173054",
"0.58819264",
"0.58621776",
"0.58552283",
"0.5808112",
"0.58000475",
"0.5799344",
"0.57... | 0.75765467 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jButton2 = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jTextField1 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jButton4 = new javax.swing.JButton();
jButton2.setText("jButton2");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
jButton1.setText("CREATE");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton3.setText("DELETE");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jLabel1.setText("FILE NAME");
jLabel2.setText("CONTENT");
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel3.setText("CREATE A FILE");
jButton4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jButton4.setText("BACK");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(129, 129, 129)
.addComponent(jButton1)
.addGap(43, 43, 43)
.addComponent(jButton3)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(jButton4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(60, 60, 60)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addGap(71, 71, 71))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton4))
.addGap(17, 17, 17)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(33, 33, 33)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton3))
.addContainerGap(65, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73206544",
"0.7291311",
"0.7291311",
"0.7291311",
"0.7286492",
"0.7249181",
"0.7213362",
"0.72085494",
"0.71965617",
"0.7190475",
"0.7184897",
"0.7159234",
"0.71483016",
"0.7094075",
"0.7081491",
"0.70579433",
"0.6987627",
"0.69776064",
"0.69552463",
"0.69549114",
"0.69453... | 0.0 | -1 |
TODO add your handling code here: | private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
String filename=jTextField1.getText();
if(filename != null && !filename.isEmpty() ){
try {
/*BufferedWriter out = new BufferedWriter
(new FileWriter("C:\\Users\\mahendra's\\Desktop\\RAILS\\"+filename+".txt"));
out.write("aString1\n");
out.close();*/
boolean success = (new File("E:\\Lucene\\Data\\"+filename+".txt")).delete();
//boolean success = (new File("Lucene\\Data\\"+filename+".txt")).delete();
if (success) {
filename="E:\\Lucene\\Data\\"+filename+".txt";
//filename="Lucene\\Data\\"+filename+".txt";
JOptionPane.showMessageDialog(this, filename+"deleted successfully");
System.out.println("The file has been successfully deleted");
Class.forName("com.mysql.jdbc.Driver");
Connection con= DriverManager.getConnection("jdbc:mysql://localhost:3306/search","root","");
PreparedStatement ps=con.prepareStatement("DELETE FROM persons where filename=?");
ps.setString(1, filename);
int rs=ps.executeUpdate();
}
else{
System.out.println("File does not exist");
JOptionPane.showMessageDialog(this, "File does not exist");
}
}
catch (Exception e) {
System.out.println("exception occoured"+ e);
}}
else
{
JOptionPane.showMessageDialog(this, "No empty strings");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n ... | [
"0.5557473",
"0.5498902",
"0.5450944",
"0.5450944",
"0.5395783",
"0.5395783",
"0.5366429",
"0.53481",
"0.53102505",
"0.52850616",
"0.52711827",
"0.5249684",
"0.52391154",
"0.5232431",
"0.5208431",
"0.52051324",
"0.5189088",
"0.5181179",
"0.5176057",
"0.51709473",
"0.5162897",... | 0.0 | -1 |
TODO add your handling code here: | private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new AdminSelect().setVisible(true);
setVisible(false);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n ... | [
"0.55580616",
"0.5500082",
"0.5451889",
"0.5451889",
"0.5396291",
"0.5396291",
"0.53675294",
"0.53492755",
"0.5310049",
"0.528535",
"0.5273072",
"0.5250345",
"0.5240692",
"0.5233124",
"0.52079433",
"0.52062225",
"0.51898336",
"0.5182602",
"0.5173781",
"0.51709044",
"0.5162973... | 0.0 | -1 |
/ renamed from: X.0nD reason: invalid class name and case insensitive filesystem | public interface AbstractC14990nD {
void ACi(View view);
void ACk(View view);
void ACo(View view);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String fixClassName(String strClassName) {\r\n\t\tstrClassName = strClassName.replace('\\\\', '.');\r\n\t\tstrClassName = strClassName.replace('/', '.');\r\n\t\tstrClassName = strClassName.substring(0, strClassName.length() - 6);\r\n\t\t// remove \".class\"\r\n\t\treturn strClassName;\r\n\t}",
"public v... | [
"0.6942452",
"0.656496",
"0.64305425",
"0.63628036",
"0.619957",
"0.6114481",
"0.607624",
"0.5933581",
"0.5879573",
"0.5868662",
"0.58540195",
"0.5848928",
"0.58411956",
"0.58217514",
"0.5795619",
"0.5754842",
"0.57438976",
"0.5723444",
"0.56930447",
"0.5649717",
"0.56441754"... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_about, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577... | 0.0 | -1 |
Created by Aaric on 2016/3/16. | public interface TravelsService {
/**
* Get data list.
*
* @param query default ""
* @param page default 1
* @return
* @throws Exception
*/
@GET(App.SUFFIX_URL_TRAVELS)
Call<TravelsMapObject> getData(@Query("query") String query, @Query("page") Integer page) throws Exception;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.62134993",
"0.59669507",
"0.5928948",
"0.59061414",
"0.58949167",
"0.58949167",
"0.5828561",
"0.58145356",
"0.5775536",
"0.577357",
"0.5772526",
"0.5714022",
"0.56930035",
"0.5689139",
"0.5681715",
"0.5677547",
"0.56709445",
"0.5668403",
"0.56641483",
"0.5659366",
"0.56489... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onResume() {
super.onResume();
try{
mProfileInfoModel = (ProfileInfoModel)getIntent().getParcelableExtra("profile");
//mProfileInfoModel = extras.getParcelable("profile");
mProfileInfoModel.getFirstname();
//mProfileInfoModel = SingleTon.getInstance().getProfileInfoModel();
txt_ridername.setText(mProfileInfoModel.getFirstname());
txt_rideremail.setText(mProfileInfoModel.getEmail());
txt_rider_mobilenumber.setText(mProfileInfoModel.getMobile());
txt_vehicleCompanyName.setText(mProfileInfoModel.getVechile_make());
txt_vehiclename.setText(mProfileInfoModel.getVechile_model());
textView_address.setText(mProfileInfoModel.getAddress());
txtvehicleNumber.setText(mProfileInfoModel.getLicenseplatenumber());
txt_zipCode.setText("Zip Code:"+" "+mProfileInfoModel.getZipcode());
txt_socialSecurityNumber.setText("Social no:"+" "+mProfileInfoModel.getSocialsecuritynumber());
txt_lisenseNo.setText("Licence no:"+" "+mProfileInfoModel.getDrivinglicensenumber());
imageViewProfilepic=(ImageView)findViewById(R.id.imageViewProfilepic);
imageLoader = new ImageLoader(GetProfile.this);
//new DownloadImageTask((ImageView)findViewById(R.id.imageViewProfilepic)).execute(mProfileInfoModel.getImage());
//imageLoader.DisplayImage(mProfileInfoModel.getImage(),riderImg );
//Uri url = new Uri(mProfileInfoModel.getImage());
// imageLoader = new ImageLoader(VehicleSearchActivity.this);
imageLoader.DisplayImage(prefs.getString("userimage", ""), imageViewProfilepic);
Log.e("prodile","image12222222ggg"+ mProfileInfoModel.getImage());
Log.e("prodile","image12222222gggg"+ mProfileInfoModel.getImage());
imageLoader.DisplayImage(mProfileInfoModel.getVechile_img_location(), driverImg);
rel_vehicleinfo1=(RelativeLayout)findViewById(R.id.RelativeLayout_Vehicleinfo1);
lin_vehicleinfo2=(LinearLayout)findViewById(R.id.LinearLayout_vehicleLayout);
if(mProfileInfoModel.getAddress()==null)
{}
else
{
if(mProfileInfoModel.getAddress().equals(""))
{
rel_vehicleinfo1.setVisibility(View.INVISIBLE);
lin_vehicleinfo2.setVisibility(View.INVISIBLE);
}
}
}catch(Exception e){}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void processFinish(String output, String methodName) {
ZiraParser parser=new ZiraParser();
Log.e("logout", output);
if(methodName.equals("Logout"))
{
String result=parser.Logout(output);
if(result.equals("0"))
{
e.putString("FBAccessToken","");
e.putLong("FBAccessExpires",0);
e.putString("Login", "");
e.putString("Userid", "");
e.putString("mode", "");
e.putString("_Login", "");
e.clear();
e.commit();
Intent mIntent=new Intent(GetProfile.this,LoginActivity.class);
SingleTon.getInstance().setEdited(true);
mIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(mIntent);
}
else
{
Util.alertMessage(GetProfile.this, result);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ crud here afficher tous les tickets : | public List<Ticket> getAllTickets(){
List<Ticket> tickets=ticketRepository.findAll();
return tickets;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Ticket> getTickets() {return tickets;}",
"private void loadTickets() {\n\t\topenTickets.clear();\n\t\tclosedTickets.clear();\n\t\tArrayList<Ticket> tickets = jdbc.getTickets();\n\t\t\n\t\tfor (Ticket t : tickets) {\n\t\t\tUser u = jdbc.get_user(t.submittedBy);\n\t\t\tString submittedBy = \"Submitted ... | [
"0.7267105",
"0.7126021",
"0.7005626",
"0.68434995",
"0.6671384",
"0.6644964",
"0.66416264",
"0.6490194",
"0.6469676",
"0.6447805",
"0.64153063",
"0.64001447",
"0.637019",
"0.63597286",
"0.6342654",
"0.6336871",
"0.6335196",
"0.6315383",
"0.6309009",
"0.6290672",
"0.6266312",... | 0.72812426 | 0 |
ajouter des tickets : | public Ticket addTicket(Ticket ticket){
ticket.setDate(Instant.now());
ticket.setAddition(0);
List<Met> mets= ticket.getMets();
this.tableservice.searchById(ticket.getTable().getId());
this.clientservice.searchById(ticket.getClient().getId());
for (Met met:mets){
Optional<Met> opt=metRepository.findById(met.getId());
if(opt.isPresent()){
ticket.setAddition(ticket.getAddition()+opt.get().getPrix());
}else {
throw new NoSuchElementException("Met avec id :"+met.getId()+" introuvable");
}
}
Ticket ticketInBase=ticketRepository.save(ticket);
return ticketInBase;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void sendTicket(Ticket t) throws SQLException {\r\n\t\ttools.Search.deleteTicket(t.getMesa());\r\n\t\tif(t.getProductosComanda().size() == 0) {\r\n\t\t\tm.getTicketsFrame().setTicketOnTable(t);\r\n\t\t\tm.getTablesFrame().setTicketOnTable(t.getMesa());\r\n\t\t\tbbddManager.TicketDBManager.deleteComan... | [
"0.73728436",
"0.6971285",
"0.6702885",
"0.66547906",
"0.66367507",
"0.65800285",
"0.6410304",
"0.63613546",
"0.6260625",
"0.6178882",
"0.61323655",
"0.6121998",
"0.6120472",
"0.60972697",
"0.59723204",
"0.5948081",
"0.59282774",
"0.5869826",
"0.5866832",
"0.5864213",
"0.5856... | 0.64064807 | 7 |
supprimer une ticket : | public String deleteTicket(int num){
searchById(num);
ticketRepository.deleteById(num);
return " Ticket supprimée! ";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int deleteTicket(Booking_ticket bt) {\n\t\treturn 0;\n\t}",
"public void removeTicket(Ticket ticket) throws DavException;",
"public void removeTicket(int num){\n if (!tickets.isEmpty() && num < tickets.size() && num > 0){\n tickets.remove(num);\n }\n }",
"boolean deleteTick... | [
"0.73322254",
"0.72867745",
"0.7100928",
"0.67963123",
"0.6685529",
"0.65256643",
"0.64637715",
"0.63297135",
"0.62055266",
"0.6183183",
"0.6149674",
"0.61379284",
"0.6122864",
"0.6061059",
"0.6042744",
"0.60209894",
"0.59466916",
"0.5941537",
"0.5904018",
"0.5883283",
"0.583... | 0.6983971 | 3 |
modifier une ticket : | public TicketRes modifierTicket(int num ,TicketReq ticketreq){
Ticket newTicket=mapp.map(ticketreq,Ticket.class);
searchById(num);
Optional<Ticket> opt=ticketRepository.findById(num);
Ticket oldTicket= opt.isPresent()?opt.get():null;
//generated auto
if (newTicket.getNumero()!=0)
oldTicket.setNumero(newTicket.getNumero());
if(newTicket.getAddition()!=0)
oldTicket.setAddition(newTicket.getAddition());
if (newTicket.getNbCouvert()!=0)
oldTicket.setNbCouvert(newTicket.getNbCouvert());
ticketRepository.save(oldTicket);
return mapp.map(oldTicket,TicketRes.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }",
"@Override\n\tpublic int updateTicket(Booking_ticket bt) {\n\t\treturn 0;\n\t}",
"public boolean ingresarPrimerContactoDeTicket(Ticket ticket, Usuario usuario) {\n try {\n //Se agrega la información de actualización y mod... | [
"0.7102136",
"0.6944061",
"0.6738127",
"0.6627941",
"0.6544652",
"0.6538234",
"0.6526432",
"0.6499502",
"0.649481",
"0.6473631",
"0.64418256",
"0.6368756",
"0.62974465",
"0.6272047",
"0.62650883",
"0.6259959",
"0.62496406",
"0.6234024",
"0.6232455",
"0.6226671",
"0.6188583",
... | 0.6991236 | 1 |
Retourner le revenu par jour, semaine et mois : | public String RevenueDerniere(){
List<Ticket> tickets=ticketRepository.findAll();
double revenueJours=0,revenueSemaine=0,revenuemois=0;
for (Ticket ticket:tickets){
if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(30)))){
revenuemois=revenuemois+ticket.getAddition();
}
if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(7)))){
revenueSemaine=revenueSemaine+ticket.getAddition();
}
if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(1)))){
revenueJours=revenueJours+ticket.getAddition();
}
}
return "Revenue moins derniere :"+revenuemois+"\n Revenue semaine derniere :"+revenueSemaine+"\n "
+ "Revenue jour derniere :"+revenueJours;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void FirstUmpieRevire() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}",
"public String consultaValorRevenda() {\n\t\treturn \"[REVENDA] Celular #\" + this.modelo + \": R$ \" + this.valorRevenda;\n\t}",
"public void recorrer(){\r\n \r\n NodoJugador temp... | [
"0.66274697",
"0.6404074",
"0.60721266",
"0.6051252",
"0.6023545",
"0.5908155",
"0.5894645",
"0.5866967",
"0.5827332",
"0.5811409",
"0.5810589",
"0.5804968",
"0.5778773",
"0.57288045",
"0.5710533",
"0.5690261",
"0.56679213",
"0.56595457",
"0.56583565",
"0.560272",
"0.5591536"... | 0.52614254 | 81 |
rechercher les tickets par son id : | public TicketRes searchById(int num){
Optional<Ticket> ticketOpt=ticketRepository.findById(num);
Ticket ticket;
if(ticketOpt.isPresent())
ticket=ticketOpt.get();
else
throw new NoSuchElementException("ticket avec num ("+num+") introuvable ;");
return mapp.map(ticket,TicketRes.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Transactional(readOnly = true)\n public List<Ticket> findByUser_Id(Long id) {\n log.debug(\"Request to findByUser_Id : {}\", id);\n List<Ticket> tickets = ticketRepository.findByUser_Id(id);\n return tickets;\n }",
"public Ticket getTicket(String id);",
"Ticket(int id)//Instanciacio... | [
"0.71732676",
"0.70928574",
"0.690802",
"0.6578441",
"0.6568372",
"0.6493722",
"0.6491928",
"0.6446793",
"0.64103353",
"0.64007",
"0.6378293",
"0.63690114",
"0.63170534",
"0.6285961",
"0.6239713",
"0.6226172",
"0.62217885",
"0.6185386",
"0.61333156",
"0.61137265",
"0.6070975"... | 0.5266925 | 82 |
voir les client lees plus fideles : | public Client ClientplusFidel(Instant debutperiode,Instant finperiode){
List<Ticket>tickets=ticketRepository.findAll();
List<Ticket>ticketss=new ArrayList<>();
for(Ticket ticket:tickets){
if(ticket.getDate().isAfter(debutperiode)&&ticket.getDate().isBefore(finperiode)){
ticketss.add(ticket);
}
}
List<Client> cl= ticketss.stream().map(tic->tic.getClient()).collect(Collectors.toList());
Client fidel=cl.stream().collect(Collectors.groupingBy(l->l, Collectors.counting())).entrySet().stream().max(Comparator.comparing(Map.Entry::getValue)).get().getKey();
return fidel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void AfficherListClient() throws Exception{\n laListeClient = Client_Db_Connect.tousLesClients();\n laListeClient.forEach((c) -> {\n modelClient.addRow(new Object[]{ c.getIdent(),\n c.getRaison(),\n ... | [
"0.73122114",
"0.7195121",
"0.680208",
"0.68011194",
"0.68010277",
"0.6770353",
"0.67036355",
"0.66334724",
"0.6539615",
"0.64825946",
"0.641936",
"0.6414784",
"0.6409741",
"0.63992876",
"0.63903",
"0.63851345",
"0.63125795",
"0.6285144",
"0.62834173",
"0.6252592",
"0.6250542... | 0.0 | -1 |
TODO Autogenerated method stub | public Instant JourPlusReserveduClient(int id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public Double RevenuePeriod(Instant begin, Instant end) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Fetches a all the applications deployed to a Marathon Cluster. | @Override
public MarathonDeployedAppList get(Application application, Component component, Environment environment) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/rest/application\", method = RequestMethod.GET,\n produces = \"application/json\")\n @Timed\n public List<Application> getAllForCurrentUser() {\n log.debug(\"REST request to get all Application\");\n try {\n User currentLoggedInUser = userRepository.getOne(SecurityUtils... | [
"0.651054",
"0.6435929",
"0.6356597",
"0.62972707",
"0.6207198",
"0.616732",
"0.6128944",
"0.61115736",
"0.60017616",
"0.5973579",
"0.5954709",
"0.5919498",
"0.5914463",
"0.5900465",
"0.5830448",
"0.5791714",
"0.57249296",
"0.5722391",
"0.567403",
"0.5672508",
"0.5655421",
... | 0.60432893 | 8 |
Fetches a DeployApplication Object | @Override
public MarathonDeployedAppList get(String componentName) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public POSApplication getApplicationById(String appId) {\n String url = Configuration.getGS_URL() + APPLICATION_SERVICE + appId;\n Logger.get().info(\"Calling application service url: \" + url);\n\n try {\n POSApplication application = HttpClientApi.getGson(url, POSApplication.class... | [
"0.67592573",
"0.65334",
"0.6313274",
"0.6176291",
"0.6165853",
"0.61041087",
"0.60246927",
"0.6024563",
"0.6008205",
"0.59769326",
"0.5962052",
"0.59547186",
"0.5923138",
"0.5903588",
"0.58972514",
"0.58551025",
"0.5853161",
"0.5852382",
"0.5831018",
"0.5822985",
"0.5807998"... | 0.0 | -1 |
Creates a new Users and saves it to the store. | @Override
public String deploy(String applicationName, Environment environment, Component component) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}",
"public void create(Users users) {\n try {\n session = sessionFactory.openSession();\n transaction = session.beginTransaction();\n session.save(user... | [
"0.74646676",
"0.7294464",
"0.7236973",
"0.7200851",
"0.6659208",
"0.6649712",
"0.6634665",
"0.66196316",
"0.6609703",
"0.65600914",
"0.6442197",
"0.6435891",
"0.642056",
"0.639631",
"0.6391019",
"0.63829195",
"0.63311",
"0.6323684",
"0.63141155",
"0.63043696",
"0.630023",
... | 0.0 | -1 |
main method begins execution of java application | public static void main(String[] args)
{
System.out.printf( "%s\n%s\n","5+2","5+9" );
Scanner input = new Scanner( System.in ); // takes input
int sum1; // user input of sum1
int sum2; // user input of sum2
int number1; // sum of first eq
int number2; // sum of second eq
number1 = 7; //true sum
number2 = 14; //true sum
Case1:
System.out.print( "Enter first sum: " );
sum1 = input.nextInt();
if ( number1 == sum1 )
System.out.printf("That is correct\n"+"%d == %d\n", number1, sum1 );
else {
System.out.print( "Incorrect, please try again\n" );
}
Case2:
System.out.print( "Enter second sum: " );
sum2 = input.nextInt();
if ( number2 == sum2 )
System.out.printf("That is correct\n"+"%d == %d\n", number2, sum2 );
else {
System.out.print( "Incorrect, please try again\n" );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main()\n\t{\n\t}",
"public static void main(String... args) {\n doMain().run();\n }",
"public static void main(){\n\t}",
"public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}",
"public static void main(String[] args) throws IO... | [
"0.7718957",
"0.7657804",
"0.7630499",
"0.7597905",
"0.75880075",
"0.75737756",
"0.75737756",
"0.75655067",
"0.7558111",
"0.7495253",
"0.7467022",
"0.7461003",
"0.74500865",
"0.74391234",
"0.7433952",
"0.7420275",
"0.7417973",
"0.7416266",
"0.74116105",
"0.74052244",
"0.73983... | 0.0 | -1 |
Shutdown scheduler on stopping server | @Override
public void onDisable()
{
if (this.schedulerManager.getScheduler() != null)
{
try
{
this.schedulerManager.getScheduler().shutdown();
} catch (SchedulerException e)
{
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void shutdownInstance() {\n if (this.computationScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.computationScheduler).shutdown();\n }\n if (this.ioScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.ioSchedul... | [
"0.7449523",
"0.7357204",
"0.7315578",
"0.7082979",
"0.7009362",
"0.6834551",
"0.6828911",
"0.67688155",
"0.6714165",
"0.66975427",
"0.66431004",
"0.6611495",
"0.6611495",
"0.6611495",
"0.6611495",
"0.66109085",
"0.6587843",
"0.6567489",
"0.6550499",
"0.65162647",
"0.65137106... | 0.63535774 | 54 |
TODO Autogenerated method stub | @Override
public void start(Stage primaryStage) throws Exception {
RegisterView.primaryStage = primaryStage;
RegisterView.primaryStage.setTitle("Sign up");
showRegisterPane();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
insert a token into a jdom tree under the element specified by labelParts | private void insertToken(Element parent, String span, String[] labelParts) {
if (labelParts.length > 0) {
String labelPart = labelParts[0];
Element child;
if ((child = lastChild( parent )) == null || labelPart.startsWith( "^" ) || !labelPart.equals( child.getName() )) {
labelPart = labelPart.replaceFirst( "^\\^", "" );
child = new Element( labelPart );
parent.addContent( child );
}
List tails = Arrays.asList( labelParts ).subList( 1, labelParts.length );
String[] labelTail = (String[])tails.toArray( new String[tails.size()] );
insertToken( child, span, labelTail );
}
else {
parent.addContent( span );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void insertTokenPosition(Element parent, String span, String[] labelParts, BoxCoordinates positionSpan) {\n //associate position here\n adjustPosition(parent, positionSpan);\n// parent.setAttribute(\"llx\", String.valueOf(positionSpan.getLlx()));\n// parent.setAttribute(\"lly\",... | [
"0.7011186",
"0.629567",
"0.5658096",
"0.55204827",
"0.5358207",
"0.5344536",
"0.5242705",
"0.5143038",
"0.510434",
"0.510434",
"0.5064435",
"0.5005867",
"0.49959946",
"0.49576685",
"0.49518776",
"0.4949597",
"0.4906174",
"0.48716927",
"0.48712292",
"0.48697254",
"0.48630142"... | 0.79792106 | 0 |
kzaporojets insert a token into a jdom tree under the element specified by labelParts, includes the position of the element | private void insertTokenPosition(Element parent, String span, String[] labelParts, BoxCoordinates positionSpan) {
//associate position here
adjustPosition(parent, positionSpan);
// parent.setAttribute("llx", String.valueOf(positionSpan.getLlx()));
// parent.setAttribute("lly", String.valueOf(positionSpan.getLly()));
// parent.setAttribute("urx", String.valueOf(positionSpan.getUrx()));
// parent.setAttribute("ury", String.valueOf(positionSpan.getUry()));
//end associate position
if (labelParts.length > 0) {
String labelPart = labelParts[0];
Element child;
if ((child = lastChild( parent )) == null || labelPart.startsWith( "^" ) || !labelPart.equals( child.getName() )) {
labelPart = labelPart.replaceFirst( "^\\^", "" );
child = new Element( labelPart );
parent.addContent( child );
}
List tails = Arrays.asList( labelParts ).subList( 1, labelParts.length );
String[] labelTail = (String[])tails.toArray( new String[tails.size()] );
//associate position here
//end associate position
insertTokenPosition(child, span, labelTail, positionSpan);
}
else {
parent.addContent( span );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void insertToken(Element parent, String span, String[] labelParts) {\n\t\tif (labelParts.length > 0) {\n\t\t\tString labelPart = labelParts[0];\n\t\t\tElement child;\n\n\t\t\tif ((child = lastChild( parent )) == null || labelPart.startsWith( \"^\" ) || !labelPart.equals( child.getName() )) {\n\t\t\t\tlabel... | [
"0.7692278",
"0.6054288",
"0.560818",
"0.5559942",
"0.5124786",
"0.51047456",
"0.50670403",
"0.5038782",
"0.49909917",
"0.4955316",
"0.49395525",
"0.49351877",
"0.49341568",
"0.49326038",
"0.49319187",
"0.49014232",
"0.4900951",
"0.48882192",
"0.48613125",
"0.48567465",
"0.48... | 0.7349013 | 1 |
kzaporojets: adjust the position | private void adjustPosition(Element elem, BoxCoordinates pos)
{
try {
if (elem.getAttribute("llx") == null || elem.getAttribute("llx").getDoubleValue() > pos.getLlx()) {
elem.setAttribute("llx", String.valueOf(pos.getLlx()));
}
if (elem.getAttribute("lly") == null || elem.getAttribute("lly").getDoubleValue() < pos.getLly()) {
elem.setAttribute("lly", String.valueOf(pos.getLly()));
}
if (elem.getAttribute("urx") == null || elem.getAttribute("urx").getDoubleValue() < pos.getUrx()) {
elem.setAttribute("urx", String.valueOf(pos.getUrx()));
}
if (elem.getAttribute("ury") == null || elem.getAttribute("ury").getDoubleValue() > pos.getUry()) {
elem.setAttribute("ury", String.valueOf(pos.getUry()));
}
}
catch(org.jdom.DataConversionException ex)
{
log.error( ex.getClass().getName() + ": " + ex.getMessage() );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void componentPositionAdjustment() {\n // set the y position of each element\n AnchorPane.setTopAnchor(nameLabel, 30.0);\n AnchorPane.setTopAnchor(name, 30.0);\n AnchorPane.setTopAnchor(fiberLabel, 70.0);\n AnchorPane.setTopAnchor(proteinLabel, 110.0);\n AnchorPane.setTopAnchor(fatLabel, ... | [
"0.7196094",
"0.68886054",
"0.6612236",
"0.6610288",
"0.64361924",
"0.6428103",
"0.64075845",
"0.63965464",
"0.6375102",
"0.62892413",
"0.62452674",
"0.6242809",
"0.61801076",
"0.61395735",
"0.6135811",
"0.61349434",
"0.6129646",
"0.6127636",
"0.61273855",
"0.61044335",
"0.60... | 0.5900426 | 32 |
TODO Autogenerated method stub | @Override
public List<PatientCaseDto> getAll() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<PatientCaseDto> getAllByDoctor(Long doctorId) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<PatientCaseDto> getAllByPatient(Long patientId) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<PatientCaseDto> getMany() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PatientCaseDto getById(Long id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PatientCaseDto getByDoctor(Long doctorId) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PatientCaseDto getByPatient(Long patientId) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PatientCaseDto getByDoctorPatient(Long patientId, Long doctorId) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PatientCaseDto createByDoctor(PatientCaseDto patientCaseDto) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public PatientCaseDto updateByDoctor(PatientCaseDto patientCaseDto) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Default id length is 30 bytes. | public RandomIdNoLuhnProvider() {
this(DEFAULT_ID_LENGTH);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newStri... | [
"0.7224128",
"0.69502705",
"0.6913039",
"0.6906395",
"0.68314743",
"0.6746206",
"0.67246544",
"0.66882443",
"0.656211",
"0.65263534",
"0.650814",
"0.6497059",
"0.6485272",
"0.6485272",
"0.6485272",
"0.6485272",
"0.6485272",
"0.6485272",
"0.6485272",
"0.6485272",
"0.6485272",
... | 0.0 | -1 |
Creates provider that generates id string encoding length bytes. | RandomIdNoLuhnProvider(int length) {
this.length = length;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newStri... | [
"0.68800455",
"0.6733991",
"0.6625822",
"0.64509326",
"0.6406916",
"0.639112",
"0.6135152",
"0.5994064",
"0.59499663",
"0.5939147",
"0.5871635",
"0.58606905",
"0.5837125",
"0.5837012",
"0.5836258",
"0.58241075",
"0.58048195",
"0.5774211",
"0.5758445",
"0.57350564",
"0.5730953... | 0.6711151 | 2 |
Encode the bytes into a String with a slightly modified Base64algorithm | private char[] encode(byte[] data) {
char[] out = new char[getLengthInCharacters(data.length)];
//
// 3 bytes encode to 4 chars. Output is always an even
// multiple of 4 characters.
//
for (int i = 0, index = 0; i < data.length; i++, index += CHARACTERS_IN_BLOCK) {
boolean quad = false;
boolean trip = false;
int val = byteValue(data[i]);
val <<= MULTIPLY_BY_256;
i++; // NOSONAR each loop is actually i+3, and we increment counter inside loop
if (i < data.length) {
val |= byteValue(data[i]);
trip = true;
}
val <<= MULTIPLY_BY_256;
i++; // NOSONAR each loop is actually i+3, and we increment counter inside loop
if (i < data.length) {
val |= byteValue(data[i]);
quad = true;
}
out[index + 3] = SESSION_ID_ALPHABET[(quad ? (val & MASK_6_BITS) : FILLER_CHARACTER_INDEX)]; // NOSONAR 3 is not magic!
val >>= DIVIDE_BY_64;
out[index + 2] = SESSION_ID_ALPHABET[(trip ? (val & MASK_6_BITS) : FILLER_CHARACTER_INDEX)]; // NOSONAR 2 is not magic!
val >>= DIVIDE_BY_64;
out[index + 1] = SESSION_ID_ALPHABET[val & MASK_6_BITS];
val >>= DIVIDE_BY_64;
//
// evry odd step use only alpha characters for last digit, so any number sequence will be at most 7 characters
//
if ((i & 0x01) != 0) { // NOSONAR we check last bit
out[index] = SESSION_ID_ALPHABET[val & MASK_6_BITS];
} else {
out[index] = SESSION_ID_ALPHABET_2[val & MASK_6_BITS];
}
}
return out;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }",
"private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}",
"private String byteToBase64(final byte[] bytes... | [
"0.7720083",
"0.76903397",
"0.76797956",
"0.7665545",
"0.760022",
"0.75544924",
"0.74925035",
"0.74738586",
"0.7450542",
"0.740026",
"0.73976237",
"0.7392476",
"0.73848116",
"0.738311",
"0.7296535",
"0.7261804",
"0.7202449",
"0.7173714",
"0.71221757",
"0.7092321",
"0.7059684"... | 0.0 | -1 |
Read corpus file. Generate the features vector to insert in a weka file | private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {
FileWriter fw = null;
int nTerms = 1000;
try {
fw = new FileWriter(outputFile);
fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));
fw.flush();
ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());
assert files != null;
int countFiles = 0;
for (File file : files)
{
System.out.println("--> Generating " + (++countFiles) + "/" + files.size());
try {
Hashtable<String, Integer> oDocBOW = new Hashtable<>();
Hashtable<String, Integer> oDocNgrams = new Hashtable<>();
String sFileName = file.getName();
//File fJsonFile = new File(path + "/" + sFileName);
//Get name without extension
String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));
Scanner scn = new Scanner(file, "UTF-8");
String sAuthorContent = "";
//Reading and Parsing Strings to Json
while(scn.hasNext()){
JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());
String textTweet = (String) tweet.get("text");
sAuthorContent += textTweet + " " ;
StringReader reader = new StringReader(textTweet);
NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);
CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);
gramTokenizer.reset();
gramTokenizer.reset();
while (gramTokenizer.incrementToken()) {
String sTerm = charTermAttribute.toString();
int iFreq = 0;
if (oDocBOW.containsKey(sTerm)) {
iFreq = oDocBOW.get(sTerm);
}
oDocBOW.put(sTerm, ++iFreq);
}
gramTokenizer.end();
gramTokenizer.close();
}
Features oFeatures = new Features();
oFeatures.GetNumFeatures(sAuthorContent);
if (oTruth.containsKey(sAuthor)) {
TruthInfo truth = oTruth.get(sAuthor);
String sGender = truth.gender.toUpperCase();
//If gender is unknown, this author is not interesting
if (sGender.equals("UNKNOWN")) continue;
String sCountry = truth.country.toUpperCase();
if (classValues.contains("MALE")) {
fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));
} else {
fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));
}
fw.flush();
}
} catch (Exception ex) {
System.out.println("ERROR: " + ex.toString());
}
}
} catch (Exception ex) {
System.out.println("ERROR: " + ex.toString());
} finally {
if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void selectFeature() throws IOException {\n\t\tString trainPath = \"./corpus/trainData\";\n\t\tString stopPath = \"./corpus/english.stop\";\n\t\tString outPath = \"./corpus/features\";\n\t\tFileWriter fw = new FileWriter(outPath);\n\t\tFileReader fr = new FileReader(trainPath);\n\t\tFileReader fr2 = ... | [
"0.62361974",
"0.6124469",
"0.6013838",
"0.59656084",
"0.5957809",
"0.59363204",
"0.59134126",
"0.5857975",
"0.58291817",
"0.57660216",
"0.5759331",
"0.57521605",
"0.5661816",
"0.56403685",
"0.5579406",
"0.5564878",
"0.5514867",
"0.54984206",
"0.5491815",
"0.54821414",
"0.546... | 0.53288287 | 31 |
Read NGrams. This method read from file if it exists, in other case generate this file | private static ArrayList<String> ReadTrigramsChar(String corpusPath, String ngramPath) {
Hashtable<String, Integer> oNgrams = new Hashtable<>();
ArrayList<String> aNgrams = new ArrayList<>();
if (new File(ngramPath).exists()) {
FileReader fr = null;
BufferedReader bf = null;
try {
fr = new FileReader(ngramPath);
bf = new BufferedReader(fr);
String sCadena = "";
while ((sCadena = bf.readLine())!=null)
{
String []data = sCadena.split(":::");
if (data.length==2) {
String sTerm = data[0];
aNgrams.add(sTerm);
}
}
} catch (Exception ex) {
System.out.println(ex.toString());
} finally {
if (bf!=null) { try { bf.close(); } catch (Exception k) {} }
if (fr!=null) { try { fr.close(); } catch (Exception k) {} }
}
} else {
ArrayList<File> files = getFilesFromSubfolders(corpusPath, new ArrayList<File>());
//File directory = new File(corpusPath);
//File []files = directory.listFiles();
int countFiles = 0;
for (File file : files) {
System.out.println("--> Preprocessing " + (++countFiles) + "/" + files.size());
try {
Scanner scn = new Scanner(file, "UTF-8");
//Reading and Parsing Strings to Json
while(scn.hasNext()){
JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());
String textTweet = (String) tweet.get("text");
StringReader reader = new StringReader(textTweet);
NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);
CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);
gramTokenizer.reset();
while (gramTokenizer.incrementToken()){
String sTerm = charTermAttribute.toString();
if (sTerm.endsWith(":")){
sTerm = sTerm.substring(0, sTerm.length()-1);
}
int iFreq = 0;
if (oNgrams.containsKey(sTerm)) {
iFreq = oNgrams.get(sTerm);
}
oNgrams.put(sTerm, ++iFreq);
//System.out.println(charTermAttribute.toString());
}
gramTokenizer.end();
gramTokenizer.close();
}
} catch (Exception ex) {
System.out.println("Error reading JSON file");
}
}
//Se ordena por frecuencia
ValueComparator bvc = new ValueComparator(oNgrams);
TreeMap<String,Integer> sorted_map = new TreeMap<>(bvc);
sorted_map.putAll(oNgrams);
//Se guarda en disco
FileWriter fw = null;
try {
fw = new FileWriter(ngramPath);
for( Iterator it = sorted_map.keySet().iterator(); it.hasNext();) {
String sTerm = (String)it.next();
int iFreq = oNgrams.get(sTerm);
aNgrams.add(sTerm);
fw.write(sTerm + ":::" + iFreq + "\n");
fw.flush();
}
} catch (Exception ex) {
System.out.println("ERROR: " + ex.toString());
} finally {
if (fw!=null) { try {fw.close();} catch(Exception k) {} }
}
}
return aNgrams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n... | [
"0.56046313",
"0.5545808",
"0.5395085",
"0.5343688",
"0.52968264",
"0.5231259",
"0.5192663",
"0.51886797",
"0.5170796",
"0.51209444",
"0.5106591",
"0.5091062",
"0.50830775",
"0.50492257",
"0.5030688",
"0.5027667",
"0.49945158",
"0.49549752",
"0.49462283",
"0.49442232",
"0.493... | 0.5386569 | 3 |
Read truth file where class item is known | private static Hashtable<String, TruthInfo> ReadTruth(String path) {
Hashtable<String, TruthInfo> oTruth = new Hashtable<String, TruthInfo>();
FileReader fr = null;
BufferedReader bf = null;
try {
fr = new FileReader(path);
bf = new BufferedReader(fr);
String sCadena = "";
while ((sCadena = bf.readLine())!=null)
{
String []data = sCadena.split(":::");
if (data.length==3) {
String sAuthorId = data[0];
if (!oTruth.containsKey(sAuthorId)) {
TruthInfo info = new TruthInfo();
info.country = data[1];
info.gender = data[2];
oTruth.put(sAuthorId, info);
}
}
}
} catch (Exception ex) {
System.out.println(ex.toString());
} finally {
if (bf!=null) { try { bf.close(); } catch (Exception ignored) {} }
if (fr!=null) { try { fr.close(); } catch (Exception ignored) {} }
}
return oTruth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readFromFile() {\n\n\t}",
"public String[] readClasses();",
"public boolean readAttributeFile(File file);",
"abstract void read(ConstantParser cp) throws ClassException;",
"@Test\n public void readFile() throws IOException {\n ModelInfo modelInfo = ModelReader.create().load();\n\n ... | [
"0.5766488",
"0.5550133",
"0.5506305",
"0.54941535",
"0.5475875",
"0.54615563",
"0.5379422",
"0.5356699",
"0.5315196",
"0.5300321",
"0.5296118",
"0.52931035",
"0.5192863",
"0.517358",
"0.5157696",
"0.5157622",
"0.5148367",
"0.5120337",
"0.5112075",
"0.5100228",
"0.50963163",
... | 0.570133 | 1 |
Get all files from directory. It returns files from subfolders and discard first level files from directoryName | private static ArrayList<File> getFilesFromSubfolders(String directoryName, ArrayList<File> files) {
File directory = new File(directoryName);
// get all the files from a directory
File[] fList = directory.listFiles();
for (File file : fList) {
if (file.isFile() && file.getName().endsWith(".json")) {
files.add(file);
} else if (file.isDirectory()) {
getFilesFromSubfolders(file.getAbsolutePath(), files);
}
}
return files;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location tex... | [
"0.68965435",
"0.688427",
"0.6882781",
"0.6869403",
"0.68260765",
"0.67661357",
"0.67362267",
"0.6729431",
"0.6599288",
"0.6550011",
"0.6545953",
"0.65439665",
"0.6510748",
"0.64685404",
"0.6445154",
"0.64313245",
"0.6385789",
"0.637421",
"0.6369032",
"0.63459915",
"0.6342978... | 0.72298205 | 0 |
TODO Autogenerated method stub | @Override
public IBinder onBind(Intent arg0) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ The links to the images are hardcoded in the service. To bin the images to the right image views we pass the view ids here as well | private void downloadInBackground(){
downloadResourceInBackground(imageUrl1, R.id.dl_image_1, R.id.dl_progressbar_1);
downloadResourceInBackground(imageUrl2, R.id.dl_image_2, R.id.dl_progressbar_2);
downloadResourceInBackground(imageUrl3, R.id.dl_image_3, R.id.dl_progressbar_3);
downloadResourceInBackground(imageUrl4, R.id.dl_image_4, R.id.dl_progressbar_4);
downloadResourceInBackground(imageUrl5, R.id.dl_image_5, R.id.dl_progressbar_5);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo36483b(int i, ImageView imageView, Uri uri);",
"public void setImageGenResults(HashMap<String, View> viewMap, HashMap<String, Bitmap> imageMap) {\n if (map != null) {\n// calling addImages is faster as separate addImage calls for each bitmap.\n map.addImages(imageMap);\n }\n// nee... | [
"0.6650707",
"0.6639721",
"0.662605",
"0.65789115",
"0.657315",
"0.6468871",
"0.6450644",
"0.63265574",
"0.61591345",
"0.6154455",
"0.6137186",
"0.6134989",
"0.6132244",
"0.6116183",
"0.6106702",
"0.61012244",
"0.6099172",
"0.60990095",
"0.6080775",
"0.6029875",
"0.60215515",... | 0.0 | -1 |
Launch the application. Create the frame. | public LoginGUI1(String judul, int posX, int posY, int width,
int height, JFrame parent) {
setBounds(100, 100, 450, 300);
getContentPane().setLayout(null);
JLabel label = new JLabel("");
label.setBounds(41, 60, 46, 14);
getContentPane().add(label);
JLabel lblNewLabel = new JLabel("ID :");
lblNewLabel.setBounds(51, 125, 46, 14);
getContentPane().add(lblNewLabel);
JLabel lblNewLabel_1 = new JLabel("Password :");
lblNewLabel_1.setBounds(51, 164, 60, 14);
getContentPane().add(lblNewLabel_1);
txtUser = new JTextField();
txtUser.setBounds(168, 122, 86, 20);
getContentPane().add(txtUser);
txtUser.setColumns(10);
JButton btnLogin = new JButton("Login");
btnLogin.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String usr=txtUser.getText();
//String pass=Users.generateMD5(txtPass.getText());
//String pDef=Users.generateMD5("lh091011");
String pass=(txtPass.getText());
String pDef=("lh091011");
int jml=ut.viewAll().size();
Users lg=ut.cariById(txtUser.getText());
if(jml==0 && usr.equals("adm") && pass.equals(pDef)){
((MainGUI)getParent()).setLogin("adm","A");
dispose();
}else if(usr.equals(lg.getId()) && pass.equals(lg.getPass())){
((MainGUI)getParent()).setLogin(lg.getId(),lg.getJenis());
dispose();
}else{
JOptionPane.showMessageDialog(null, "Username dan Password salah", "Toko Obat", JOptionPane.ERROR_MESSAGE);
}
}
});
btnLogin.setBounds(55, 207, 89, 23);
getContentPane().add(btnLogin);
JButton btnExit = new JButton("Exit");
btnExit.setBounds(165, 207, 89, 23);
getContentPane().add(btnExit);
txtPass = new JPasswordField();
txtPass.setBounds(168, 161, 86, 20);
getContentPane().add(txtPass);
JLabel lblSilahkanLoginDisini = new JLabel("Silahkan Login Disini");
lblSilahkanLoginDisini.setFont(new Font("Sylfaen", Font.PLAIN, 13));
lblSilahkanLoginDisini.setBounds(103, 85, 126, 14);
getContentPane().add(lblSilahkanLoginDisini);
JLabel lblNewLabel_2 = new JLabel("Aplikasi Penjualan Toko Obat Herbal");
lblNewLabel_2.setFont(new Font("Traditional Arabic", Font.PLAIN, 15));
lblNewLabel_2.setBounds(41, 60, 237, 14);
getContentPane().add(lblNewLabel_2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }",
"public launchFrame() {\n \n initComponents();\n \n }",
"public void launchFrame() {\n\t\tf.getContentPane().add(sbrText);\n\t\tf.getContentPane().add(btnQuit);\n\n\t\t// Close when the close button ... | [
"0.7721892",
"0.76707876",
"0.7565719",
"0.7008798",
"0.678548",
"0.67594814",
"0.6729858",
"0.67280066",
"0.66726524",
"0.6650487",
"0.6631978",
"0.65843105",
"0.6557438",
"0.64923507",
"0.6491741",
"0.6484104",
"0.64702684",
"0.6447394",
"0.6410865",
"0.63922954",
"0.636858... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<ApartmentDetailsBean> getApartmentList(String location) {
List<ApartmentDetailsBean> apartment = new ArrayList<ApartmentDetailsBean>();
String query = "Select * from Apartments where area=?";
//Connection con = DatabaseConnection.connect();
ResultSet rs=null;
// PreparedStatement pstmt=null;
System.out.println("Inside AparmentDaoImpl");
try {
//pstmt = con.prepareStatement(query);
PreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setString(1, location);
rs = pstmt.executeQuery();
while (rs.next()) {
ApartmentDetailsBean apt = new ApartmentDetailsBean();
apt.setApartmentId(rs.getInt("apartmentId"));
apt.setDepositAmt(rs.getInt("depositAmt"));
apt.setRent(rs.getInt("rent"));
apt.setAvailablityFrom(rs.getDate("availablityFrom"));
apt.setUtilities(rs.getString("utilities"));
apt.setArea(rs.getString("area"));
apt.setStreet(rs.getString("street"));
apt.setDoorNo(rs.getString("doorNo"));
apt.setCity(rs.getString("city"));
apt.setno_of_rooms(rs.getInt("no_of_rooms"));
apt.setno_of_bathroom(rs.getInt("no_of_bathroom"));
apt.setFlooring(rs.getString("flooring"));
apt.setType_bathroom(rs.getString("type_bathroom"));
apartment.add(apt);
}
} catch (SQLException e) {
e.printStackTrace();
}
return apartment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Map getApartmentDetails(int id) {
Map apartmentDetails = new HashMap();
String query = "Select * from Apartments where apartmentId=?";
apartmentDetails.put("ApartmentDetails", getApartmentInfo(query, id));
query = "Select * from Tenant where apartmentId=?";
apartmentDetails.put("TenantDetails", getTenantDetails(query, id));
query = "Select * from ApartmentOwner where ownerId IN(select ownerId from Apartments where apartmentId=? )";
apartmentDetails.put("OwnerDetails", getOwnerDetails(query, id));
query = "Select rating,comments from Feedback where apartmentId=?";
apartmentDetails.put("ReviewAndRatings", getReviewComments(query, id));
/*query = "select photo from aptImages where apartmentId=?";
apartmentDetails.put("images", getImages(query, id));*/
return apartmentDetails;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | private List<String> getImages(String query, int id) {
ResultSet rs=null;
List<String> imageList = new ArrayList<String>();
try {
//pstmt = con.prepareStatement(query);
PreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
while (rs.next())
{
imageList.add(rs.getString(1));
}
}catch (SQLException e) {
e.printStackTrace();
}
return imageList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | private List<ApartmentReviewBean> getReviewComments(String query, int id) {
ResultSet rs=null;
List<ApartmentReviewBean> apartmentReviews = new ArrayList<ApartmentReviewBean>();
try {
//pstmt = con.prepareStatement(query);
PreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
while (rs.next()) {
ApartmentReviewBean review = new ApartmentReviewBean();
review.setComments(rs.getString("comments"));
review.setRating(rs.getInt("rating"));
apartmentReviews.add(review);
}
} catch (SQLException e) {
e.printStackTrace();
}
return apartmentReviews;
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | private OwnerBean getOwnerDetails(String query, int id) {
ResultSet rs=null;
OwnerBean owner = new OwnerBean();
try {
//pstmt = con.prepareStatement(query);
PreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
while (rs.next()) {
owner.setoEmail(rs.getString("oEmail"));
owner.setoFirstName(rs.getString("oFirstName"));
owner.setoLastName(rs.getString("oLastName"));
owner.setoPassword(rs.getString("oPassword"));
owner.setoPhoneNo(rs.getLong("oPhoneNo"));
owner.setOwnerId(rs.getInt("ownerId"));
}
} catch (SQLException e) {
e.printStackTrace();
}
return owner;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | private List<TenantBean> getTenantDetails(String query, int id) {
ResultSet rs=null;
List<TenantBean> tenants = new ArrayList<TenantBean>();
try {
//pstmt = con.prepareStatement(query);
PreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
while (rs.next()) {
TenantBean tenant = new TenantBean();
tenant.setApartmentId(rs.getInt("apartmentId"));
tenant.setDegree(rs.getString("degree"));
tenant.setEating_pref(rs.getString("Eating_pref"));
tenant.setMajor(rs.getString("Major"));
tenant.setNationality(rs.getString("Nationality"));
tenant.setTage(rs.getInt("tage"));
tenant.settBOD(rs.getDate("tBOD"));
tenant.settEmail(rs.getString("tEmail"));
tenant.setTenantId(rs.getInt("tenantId"));
tenant.setTfirstName(rs.getString("tfirstName"));
tenant.setTgender(rs.getString("tgender"));
tenant.setTlastName(rs.getString("tlastName"));
tenant.settPassword(rs.getString("tPassword"));
tenant.settPhoneNo(rs.getString("tPhoneNo"));
tenant.setVisa_status(rs.getString("tPassword"));
tenants.add(tenant);
}
} catch (SQLException e) {
e.printStackTrace();
}
return tenants;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | private ApartmentDetailsBean getApartmentInfo(String query, int id) {
ResultSet rs=null;
ApartmentDetailsBean apt = new ApartmentDetailsBean();
try {
//pstmt = con.prepareStatement(query);
PreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setInt(1, id);
rs = pstmt.executeQuery();
while (rs.next()) {
apt.setApartmentId(rs.getInt("apartmentId"));
apt.setDepositAmt(rs.getInt("depositAmt"));
apt.setRent(rs.getInt("rent"));
apt.setAvailablityFrom(rs.getDate("availablityFrom"));
apt.setUtilities(rs.getString("utilities"));
apt.setArea(rs.getString("area"));
apt.setStreet(rs.getString("street"));
apt.setDoorNo(rs.getString("doorNo"));
apt.setCity(rs.getString("city"));
apt.setno_of_rooms(rs.getInt("no_of_rooms"));
apt.setno_of_bathroom(rs.getInt("no_of_bathroom"));
apt.setFlooring(rs.getString("flooring"));
}
} catch (SQLException e) {
e.printStackTrace();
}
return apt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<ApartmentDetailsBean> getApartmentDetails(String emailId) {
List<ApartmentDetailsBean> apartment = new ArrayList<ApartmentDetailsBean>();
String query = "Select * from Apartments where ownerId=(select ownerId from ApartmentOwner where oEmail=?)";
//Connection con = DatabaseConnection.connect();
ResultSet rs=null;
// PreparedStatement pstmt=null;
System.out.println("Inside AparmentDaoImpl");
try {
//pstmt = con.prepareStatement(query);
PreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setString(1, emailId);
rs = pstmt.executeQuery();
while (rs.next()) {
ApartmentDetailsBean apt = new ApartmentDetailsBean();
apt.setApartmentId(rs.getInt("apartmentId"));
apt.setDepositAmt(rs.getInt("depositAmt"));
apt.setRent(rs.getInt("rent"));
apt.setAvailablityFrom(rs.getDate("availablityFrom"));
apt.setUtilities(rs.getString("utilities"));
apt.setArea(rs.getString("area"));
apt.setStreet(rs.getString("street"));
apt.setDoorNo(rs.getString("doorNo"));
apt.setCity(rs.getString("city"));
apt.setno_of_rooms(rs.getInt("no_of_rooms"));
apt.setno_of_bathroom(rs.getInt("no_of_bathroom"));
apt.setFlooring(rs.getString("flooring"));
apt.setType_bathroom(rs.getString("type_bathroom"));
apartment.add(apt);
}
} catch (SQLException e) {
e.printStackTrace();
}
return apartment;
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getNewApartmentId(ApartmentDetailsBean aptDetails,String email) {
int id=getOwnerId(email);
String query = "insert into Apartments(ownerId,depositAmt,rent,availablityFrom,utilities,area,street,doorNo,city,no_of_rooms,type_bathroom,flooring) "
+ "values (?,?,?,?,?,?,?,?,?,?,?,?)";
ResultSet rs=null;
PreparedStatement pstmt;
System.out.println("Date is - "+aptDetails.getDate());
java.util.Date dateJ=new java.util.Date(aptDetails.getDate());
java.sql.Date dateS=new java.sql.Date(dateJ.getTime());
try {
pstmt = dataSource.getConnection().prepareStatement(query,Statement.RETURN_GENERATED_KEYS);
pstmt.setInt(1, id);
pstmt.setInt(2, aptDetails.getDepositAmt());
pstmt.setInt(3, aptDetails.getRent());
pstmt.setDate(4, dateS);
pstmt.setString(5, aptDetails.getUtilities());
pstmt.setString(6, aptDetails.getArea());
pstmt.setString(7, aptDetails.getStreet());
pstmt.setString(8, aptDetails.getDoorNo());
pstmt.setString(9, aptDetails.getCity());
pstmt.setInt(10, aptDetails.getno_of_rooms());
pstmt.setString(11, aptDetails.getType_bathroom());
pstmt.setString(12, aptDetails.getFlooring());
pstmt.execute();
//pstmt.executeUpdate();
rs=pstmt.getGeneratedKeys();//executeUpdate(). //pstmt.executeUpdate(query, autoGeneratedKeys)
if(rs.next())
{
System.out.println(rs.getLong(1));
return (int) rs.getLong(1);
}
//rs = pstmt.executeQuery();
}catch(SQLException e)
{
e.printStackTrace();
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | private int getOwnerId(String email) {
int ownerId=-1;
ResultSet rs=null;
String query1="select ownerId from ApartmentOwner where oEmail=?";
PreparedStatement pstmt;
try {
pstmt = dataSource.getConnection().prepareStatement(query1);
pstmt.setString(1, email);
rs = pstmt.executeQuery();
rs.next();
ownerId=rs.getInt(1);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return ownerId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void addTenant(String aptId, TenantBean newTenant) {
String query = "insert into Tenant(apartmentId,tfirstName,tlastName,tEmail,tgender,tage,Nationality) "
+ "values (?,?,?,?,?,?,?)";
ResultSet rs=null;
PreparedStatement pstmt;
try {
pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setInt(1, Integer.parseInt(aptId));
pstmt.setString(2, newTenant.getTfirstName());
pstmt.setString(3, newTenant.getTlastName());
pstmt.setString(4, newTenant.gettEmail());
pstmt.setString(5, newTenant.getTgender());
pstmt.setInt(6, newTenant.getTage());
pstmt.setString(7, newTenant.getNationality());
pstmt.executeUpdate();
//e.printStackTrace();
}catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<TenantBean> getTenants(int aptId) {
String query = "Select * from Tenant where apartmentId=?";
List<TenantBean> tenants=getTenantDetails(query, aptId);
return tenants;
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateTenant(int aptId,TenantBean tenant) {
String query = "update Tenant set tfirstName=?,tlastName=?,tEmail=?,tgender=?,tage=?,Nationality=? where tenantId=?";
ResultSet rs=null;
PreparedStatement pstmt;
try {
pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setString(1, tenant.getTfirstName());
pstmt.setString(2, tenant.getTlastName());
pstmt.setString(4, tenant.getTgender());
pstmt.setString(3, tenant.gettEmail());
pstmt.setInt(5, tenant.getTage());
pstmt.setString(6, tenant.getNationality());
pstmt.setInt(7, aptId);
pstmt.executeUpdate();
}catch(SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateApartment(ApartmentDetailsBean aptUpdated) {
String query = "update Apartments set depositAmt=?,rent=?,utilities=?,area=?,street=?,city=?,doorNo=?,no_of_rooms=?,type_bathroom=?,flooring=? where apartmentId=?";
ResultSet rs=null;
PreparedStatement pstmt;
try {
pstmt = dataSource.getConnection().prepareStatement(query);
pstmt.setInt(1, aptUpdated.getDepositAmt());
pstmt.setInt(2, aptUpdated.getRent());
//pstmt.setDate(4, aptUpdated);
pstmt.setString(3, aptUpdated.getUtilities());
pstmt.setString(4, aptUpdated.getArea());
pstmt.setString(5, aptUpdated.getStreet());
pstmt.setString(7, aptUpdated.getDoorNo());
pstmt.setString(6, aptUpdated.getCity());
pstmt.setInt(8, aptUpdated.getno_of_rooms());
pstmt.setString(9, aptUpdated.getType_bathroom());
pstmt.setString(10, aptUpdated.getFlooring());
pstmt.setInt(11, aptUpdated.getApartmentId());
pstmt.executeUpdate();
}catch(SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ renamed from: org.chromium.base.o$a / compiled from: TimeUtils | public interface AbstractC33066a {
/* renamed from: a */
long mo133613a();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private TimeUtil() {}",
"@SuppressWarnings(\"deprecation\")\n private void initTime() {\n //Time time = new Time(System.currentTimeMillis());\n time = new Date().getTime();\n }",
"public void setTimeInNs(long r1) {\n /*\n // Can't load method instructions: Load method exceptio... | [
"0.71896535",
"0.59372187",
"0.5921867",
"0.5908549",
"0.58911604",
"0.585825",
"0.5807806",
"0.5801548",
"0.5771099",
"0.5733766",
"0.5724952",
"0.5706726",
"0.5686421",
"0.56655365",
"0.56653273",
"0.5643396",
"0.5622503",
"0.5620829",
"0.5606931",
"0.56050867",
"0.5593499"... | 0.0 | -1 |
/ renamed from: a | long mo133613a(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
initialize an array of type LineOfCode | public static void main(String[] args) throws IOException {
LineOfCode[] inputProgram = new LineOfCode[32];
// Initialize an array of type LineOfMachineCode
LineOfMachineCode[] instructions = new LineOfMachineCode[32];
String[] opcodes = {"LDA", "ADD", "SUB", "STA", "MPY", "DIV",
"INP", "OUT", "JMP", "JMI" };
String[] tokens = new String[80];
String line = "";
// prepare to read program from file
File filename = new File("MysteryProgram_0.txt");
Scanner filescan = new Scanner(filename);
Scanner input = new Scanner(System.in);
int numOfLines = 0;
// Read the file containing the program one line at a time.
// instantiate a LineOfCode Object for each line read in
// and assign line tokens to the fields of the new object.
while(filescan.hasNext()){
line = filescan.nextLine();
String comments = " ";
// instantiate a LineOfCode object with empty fields
inputProgram[numOfLines] = new LineOfCode();
if(!line.isEmpty()){
tokens = line.split("\\s+");
// if comments exits, create a comments string to holed them
// and assign the comments to the appropriate instance variable
if(tokens.length > 3 ){
for(int i = 3; i < tokens.length; i++ )
comments += tokens[i] + " ";
}else{
comments = " ";
}
inputProgram[numOfLines].setComments(comments);
// check each token from the line and assign it to
// its appropriate instance variable
if(tokens[1].equals("DC")){
inputProgram[numOfLines].setOpcode(tokens[1]);
inputProgram[numOfLines].setLabel(tokens[0]);
inputProgram[numOfLines].setOperand(tokens[2]);
}else if(tokens[1].equals("DL")){
inputProgram[numOfLines].setOpcode(tokens[1]);
inputProgram[numOfLines].setLabel(tokens[0]);
}else{// Big Else
for(int x = 0;x < opcodes.length; x++){
if(opcodes[x].equals(tokens[0])){
inputProgram[numOfLines].setOpcode(tokens[0]);
inputProgram[numOfLines].setOperand(tokens[1]);
}
if(opcodes[x].equals(tokens[1])){
inputProgram[numOfLines].setOpcode(tokens[1]);
inputProgram[numOfLines].setLabel(tokens[0]);
inputProgram[numOfLines].setOperand(tokens[2]);
}
} //for loop
} //Big Else
numOfLines++;
} //Super If
} // while,
// finished reading the file
filescan.close();
// Assemble machine code out of each LineOfCode object
// from the inputProgram array.
for(int i = 0; i < numOfLines; i++){
instructions[i] = new LineOfMachineCode();
// handle pseudo-opcodes if they are present in the line
if(inputProgram[i].getOpcode().equals("DL"))
instructions[i].setOperand(0);
else if(inputProgram[i].getOpcode().equals("DC"))
instructions[i].setOperand(Integer.parseInt(inputProgram[i].getOperand()));
else{
// helper variables
int opc = 0;
int op = 0;
for(int j = 0; j < opcodes.length;j++){
if(inputProgram[i].getOpcode().equals(opcodes[j])){
// assign opcode in program to correct index of opcode array
opc = j;
instructions[i].setOpcode(opc);
}
}
for(int k = 0; k < numOfLines; k++){
if(inputProgram[k].getLabel().equals(inputProgram[i].getOperand()))
{
// assign memory location of label to operand
op = k;
instructions[i].setOperand(op);
}
}
//if opcode == 0 which is LDA how to handle it
// handle operand greater than 9 ex. 12
if(opc == 0 && op > 9)
//System.out.print(opc + "" + op );
instructions[i].setOpcode(opc);
//else if(opc == 0 && op < 10)
//System.out.print(opc + "0" + op + "\n");
else{
//System.out.print( (opc * 100 + op) + "\n");
instructions[i].setOpcode(opc);
instructions[i].setOperand(op);
}
} // Big else
// At this point we have everything converted to machine code
// Option I - have another for loop start here to begin execution of lineOfMachineCode
}// outer for
// Vars used during execution Execute the program
int pc = 0;
int store = 0;
int opcode = 0;
int value = 0;
int accumulator = 0;
// Program execution
while( pc < numOfLines){
opcode = instructions[pc].getOpcode();
if(opcode == 8){
pc = instructions[pc].getOperand();
opcode = instructions[pc].getOpcode();
}else if(opcode == 9 && accumulator < 0 ){
pc = instructions[pc].getOperand();
opcode = instructions[pc].getOpcode();
}
switch(opcode){
case 0: // LDA
if(inputProgram[pc].getOpcode().equals("DC"))
accumulator = instructions[pc].getOperand();
else if(inputProgram[pc].getOpcode().equals("DL"))
accumulator = instructions[pc].getOperand();
break;
case 1: //ADD
accumulator += value;
break;
case 2: //SUB
accumulator -= value;
break;
case 3: // STA
store = accumulator;
break;
case 4: // MPY
accumulator *= value;
break;
case 5: // DIV
accumulator /= value;
break;
case 6: //INP
System.out.println("Enter an Integer");
value = input.nextInt();
break;
case 7: // OUT
System.out.println(store);
break;
default:
System.out.println("Invalid opcode");
break;
}
pc++;
}// while
System.out.println("Total Lines: " + numOfLines);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createLinesArray()\n {\n //This will iterate through the lines array\n for (int i = 0; i < lines.length; i++)\n {\n //Stop at end-of-File\n if (mapScanner.hasNextLine())\n {\n //Add the current line to the lines array\n ... | [
"0.64339566",
"0.6337241",
"0.6108081",
"0.579878",
"0.57865226",
"0.5757701",
"0.5688602",
"0.5679704",
"0.56597465",
"0.5641585",
"0.55847245",
"0.5581619",
"0.5576701",
"0.5560971",
"0.5545842",
"0.55246013",
"0.55223453",
"0.54859596",
"0.54666257",
"0.54451764",
"0.53920... | 0.500611 | 49 |
BC: if n is 0, no 8s exist | static int count8(int n) {
if (n == 0)
return 0;
if (n % 10 == 8) {
// RC1: if two rightmost digits is 88, count as 2, and recurse on rest
if (n % 100 == 88)
return 2 + count8(n / 10);
else
// RC2: if rightmost digit is just one 8, standard--count as 1 and recurse on rest
return 1 + count8(n / 10);
} else
// RC3: if rightmost not 8, recurse on rest
return count8(n / 10);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int findMissingNumber( int[] a, int n) {\n int result = 0;\n for(int i=1; i<(n+1)+1; i++) {\n result = result ^ i;\n }\n for(int i=0; i<a.length; i++) {\n result = result ^ a[i];\n }\n return result;\n }",
"public static void main... | [
"0.64425504",
"0.6251045",
"0.6198897",
"0.6112171",
"0.6112171",
"0.6056254",
"0.6047024",
"0.59783137",
"0.5942177",
"0.5897491",
"0.58685297",
"0.5834355",
"0.58314544",
"0.5821957",
"0.5812546",
"0.57981384",
"0.5797714",
"0.5795905",
"0.5789724",
"0.57453364",
"0.5718835... | 0.6689626 | 0 |
Objects implementing this interface listen to WSLPlayerEvents generated by a WSLPlayer to report state transitions. | public interface WSLPlayerListener {
/**
* This method is called by <code>WSLPlayer</code> whenever it changes from
* one state to another (e.g., playing to paused).
*
* @param event information associated with the state transition.
*/
public void playerStateChanged(WSLPlayerEvent event);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void playerStateChanged(WSLPlayerEvent event);",
"private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n ... | [
"0.77560306",
"0.59328544",
"0.5918591",
"0.58146334",
"0.57223815",
"0.56395763",
"0.5615684",
"0.5609633",
"0.5603671",
"0.55796635",
"0.557857",
"0.5544627",
"0.55211216",
"0.55148435",
"0.5495641",
"0.54621667",
"0.5458686",
"0.5441218",
"0.54216516",
"0.54141617",
"0.539... | 0.803294 | 0 |
This method is called by WSLPlayer whenever it changes from one state to another (e.g., playing to paused). | public void playerStateChanged(WSLPlayerEvent event); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPlayState(PlayerState state) { isPaused = !state.playing; }",
"public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n el... | [
"0.7104595",
"0.68775",
"0.6669389",
"0.6620635",
"0.65511036",
"0.65177786",
"0.650673",
"0.6449938",
"0.6441738",
"0.6384262",
"0.63269204",
"0.6319361",
"0.63113236",
"0.6309898",
"0.625522",
"0.6240387",
"0.6220206",
"0.6213499",
"0.61858714",
"0.61530733",
"0.6145982",
... | 0.7310885 | 0 |
Creates new form JfAeroports | public JfAeroports() {
initComponents();
tableUpdate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JPImportarFatura() {\n initComponents();\n }",
"public FormPortlet( )\n {\n }",
"private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelP... | [
"0.6383402",
"0.5706353",
"0.5570859",
"0.53694975",
"0.5367369",
"0.53167003",
"0.5314484",
"0.5274213",
"0.52616906",
"0.5259023",
"0.5258598",
"0.5256574",
"0.524572",
"0.5243858",
"0.52311575",
"0.5227353",
"0.5215367",
"0.52124655",
"0.52071285",
"0.5206214",
"0.5201443"... | 0.6269739 | 1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
inputNameAeroport = new javax.swing.JTextField();
inputVilleAeroport = new javax.swing.JTextField();
inputPaysAeroport = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
btnAjouterAeroport = new javax.swing.JButton();
btnModifierAeroport = new javax.swing.JButton();
btnSupprimerAeroport = new javax.swing.JButton();
jLabel4 = new javax.swing.JLabel();
inputIdAeroport = new javax.swing.JTextField();
btnMenu = new javax.swing.JButton();
jScrollPane3 = new javax.swing.JScrollPane();
tableAeroports = new javax.swing.JTable();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jPanel1.setBackground(java.awt.Color.gray);
inputNameAeroport.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
inputNameAeroportActionPerformed(evt);
}
});
inputVilleAeroport.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
inputVilleAeroportActionPerformed(evt);
}
});
inputPaysAeroport.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
inputPaysAeroportActionPerformed(evt);
}
});
jLabel1.setText("Nom");
jLabel2.setText("Ville");
jLabel3.setText("Pays");
btnAjouterAeroport.setText("Ajouter");
btnAjouterAeroport.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
btnAjouterAeroportMouseClicked(evt);
}
});
btnAjouterAeroport.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnAjouterAeroportActionPerformed(evt);
}
});
btnModifierAeroport.setText("Modifier");
btnModifierAeroport.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
btnModifierAeroportMouseClicked(evt);
}
});
btnModifierAeroport.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnModifierAeroportActionPerformed(evt);
}
});
btnSupprimerAeroport.setText("Supprimer");
btnSupprimerAeroport.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
btnSupprimerAeroportMouseClicked(evt);
}
});
btnSupprimerAeroport.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnSupprimerAeroportActionPerformed(evt);
}
});
jLabel4.setText("Id");
inputIdAeroport.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
inputIdAeroportActionPerformed(evt);
}
});
btnMenu.setText("Menu");
btnMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnMenuActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(25, 25, 25)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jLabel2)
.addComponent(jLabel3)
.addComponent(jLabel4))
.addGap(27, 27, 27)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(inputPaysAeroport)
.addComponent(inputVilleAeroport)
.addComponent(inputNameAeroport)
.addComponent(inputIdAeroport, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(12, 12, 12)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(btnModifierAeroport, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnAjouterAeroport, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnSupprimerAeroport, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(20, 20, 20))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(btnMenu)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addComponent(btnMenu)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(inputIdAeroport, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(inputNameAeroport, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(inputVilleAeroport, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addGap(24, 24, 24)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(inputPaysAeroport, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(15, 15, 15)
.addComponent(btnAjouterAeroport)
.addGap(18, 18, 18)
.addComponent(btnModifierAeroport)
.addGap(24, 24, 24)
.addComponent(btnSupprimerAeroport)))
.addGap(55, 55, 55))
);
btnAjouterAeroport.getAccessibleContext().setAccessibleDescription("");
tableAeroports.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Id", "Nom", "Ville", "Pays"
}
));
tableAeroports.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
tableAeroportsMouseClicked(evt);
}
});
jScrollPane3.setViewportView(tableAeroports);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(46, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 439, Short.MAX_VALUE))
.addGap(36, 36, 36))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(73, 73, 73))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73206544",
"0.7291311",
"0.7291311",
"0.7291311",
"0.7286492",
"0.7249181",
"0.7213362",
"0.72085494",
"0.71965617",
"0.7190475",
"0.7184897",
"0.7159234",
"0.71483016",
"0.7094075",
"0.7081491",
"0.70579433",
"0.6987627",
"0.69776064",
"0.69552463",
"0.69549114",
"0.69453... | 0.0 | -1 |
Initialize a proxy using context (recommended). This context will be used for security checking when the get and setmethods without context parameters are called. The get and setmethods with context parameter should be used when for instance sudo access is necessary (IContext.createSudoClone() can be used to obtain sudo access). | public static xlsreport.proxies.MxSheet initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)
{
return new xlsreport.proxies.MxSheet(context, mendixObject);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static synchronized void initialize(Context context) {\n instance.context = context;\n initInternal();\n }",
"void init(@NotNull ExecutionContext context);",
"public abstract void makeContext();",
"Context createContext();",
"Context createContext();",
"void init(HandlerContext context);",
... | [
"0.6193475",
"0.61861223",
"0.597648",
"0.5966809",
"0.5966809",
"0.5861257",
"0.58311385",
"0.5809359",
"0.5781403",
"0.5741943",
"0.57390004",
"0.5730815",
"0.564217",
"0.56418544",
"0.5549166",
"0.55490625",
"0.5499643",
"0.546307",
"0.5456354",
"0.5454914",
"0.543523",
... | 0.0 | -1 |
Commit the changes made on this proxy object. | public final void commit() throws com.mendix.core.CoreException
{
com.mendix.core.Core.commit(context, getMendixObject());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void commit() {\n doCommit();\n }",
"public void commit() {\n\t\tcommitted = true;\n\t}",
"public void commit() {\n tryCommit(true);\n }",
"private void commit() {\n if (vote != Vote.COMMIT) {\n throw new IllegalStateException(\"Cannot commit transaction with vote: \" +... | [
"0.6872447",
"0.67434233",
"0.666545",
"0.65336454",
"0.6424924",
"0.64205754",
"0.641361",
"0.63909537",
"0.62750685",
"0.6274178",
"0.62695974",
"0.6140473",
"0.6140473",
"0.6140473",
"0.6140473",
"0.6128984",
"0.60854495",
"0.60854495",
"0.6001486",
"0.5997031",
"0.5961925... | 0.6219147 | 13 |
Commit the changes made on this proxy object using the specified context. | public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException
{
com.mendix.core.Core.commit(context, getMendixObject());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{... | [
"0.68284506",
"0.68284506",
"0.68284506",
"0.68284506",
"0.6198343",
"0.6077365",
"0.5883697",
"0.5819727",
"0.5819727",
"0.5819727",
"0.5819727",
"0.5819727",
"0.5735581",
"0.5735581",
"0.5735581",
"0.5735581",
"0.5645163",
"0.5608459",
"0.55641294",
"0.550533",
"0.5467042",... | 0.6841245 | 3 |
Delete the object using the specified context. | public final void delete(com.mendix.systemwideinterfaces.core.IContext context)
{
com.mendix.core.Core.delete(context, getMendixObject());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void delete(Context context);",
"public final void delete(com.mendix.systemwideinterfaces.core.IContext context)\n\t{\n\t\tcom.mendix.core.Core.delete(context, getMendixObject());\n\t}",
"public final void delete(com.mendix.systemwideinterfaces.core.IContext context)\n\t{\n\t\tcom.mendix.core.C... | [
"0.77639383",
"0.7757907",
"0.7757907",
"0.7757907",
"0.7757907",
"0.6889786",
"0.6768719",
"0.6634246",
"0.65886116",
"0.6562792",
"0.65391535",
"0.65277755",
"0.6518788",
"0.64955115",
"0.64736897",
"0.64335287",
"0.6369484",
"0.6346575",
"0.63429517",
"0.6338845",
"0.63332... | 0.77735937 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.