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 |
|---|---|---|---|---|---|---|
Returns true if field bidPrice5 is set (has been assigned a value) and false otherwise | public boolean isSetBidPrice5() {
return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE5_ISSET_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetBidPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE_ISSET_ID);\n }",
"public boolean isSetBidPrice4() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE4_ISSET_ID);\n }",
"public boolean isSetBidVolume5() {\n return EncodingUtils.testBit(__isset_bi... | [
"0.7533059",
"0.73039544",
"0.72187513",
"0.69462365",
"0.6695993",
"0.6657525",
"0.65849066",
"0.6502601",
"0.6456568",
"0.6445495",
"0.6417571",
"0.6415544",
"0.64085275",
"0.63573986",
"0.63096833",
"0.6309677",
"0.62930286",
"0.6228368",
"0.61646235",
"0.61595124",
"0.615... | 0.8359873 | 0 |
Returns true if field bidVolume5 is set (has been assigned a value) and false otherwise | public boolean isSetBidVolume5() {
return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME5_ISSET_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetBidVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME_ISSET_ID);\n }",
"public boolean isSetBidVolume4() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME4_ISSET_ID);\n }",
"public boolean isSetBidPrice5() {\n return EncodingUtils.testBit(__isset... | [
"0.78344446",
"0.7603567",
"0.73003495",
"0.66318685",
"0.6452742",
"0.64485407",
"0.6399127",
"0.6385354",
"0.63141346",
"0.621829",
"0.62093157",
"0.6097404",
"0.6063566",
"0.60243887",
"0.5977678",
"0.59729093",
"0.5940396",
"0.5912192",
"0.58978146",
"0.5856739",
"0.57926... | 0.8412349 | 0 |
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise | public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case BID_PRICE4:
return isSetBidPrice4();
case BID_VOLUME4:
return isSetBidVolume4();
case BID_PRICE5:
return isSetBidPrice5();
case BID_VOLUME5:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n ... | [
"0.79056656",
"0.79056656",
"0.78333884",
"0.78036314",
"0.77937067",
"0.7780796",
"0.7780796",
"0.7780796",
"0.7780796",
"0.76468164",
"0.754723",
"0.75451803",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179... | 0.0 | -1 |
check for required fields check for substruct validity | public void validate() throws org.apache.thrift.TException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol... | [
"0.75401354",
"0.74719286",
"0.7333375",
"0.7304861",
"0.72982836",
"0.729518",
"0.72577775",
"0.7225706",
"0.71371984",
"0.7129901",
"0.7116786",
"0.7092598",
"0.70728713",
"0.70518136",
"0.70367175",
"0.70314413",
"0.69580764",
"0.690188",
"0.68602306",
"0.6692948",
"0.6679... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public User getModel() {
user = new User();
return user;
} | {
"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 |
Log.d(TAG, "" + position); | @Override
public void onBindViewHolder(MovieViewHolder holder, int position) {
MovieModel movie = movieModelList.get(position);
//holder.title.setText(movie.getTitle());
Picasso.with(mContext)
.load("http://image.tmdb.org/t/p/w185/"+movie.getPoster_path())
.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(RecycleTestActivity.this, pos + \"\", Toast... | [
"0.6331245",
"0.6280982",
"0.62347996",
"0.6230406",
"0.615567",
"0.61237127",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6115748",
"0.6090386",
"0.6088981",
"0.60527337",
"0.60326904",
"0.59797657",... | 0.0 | -1 |
/metodo che mi restituisce instance | public static Replica1Singleton getInstance() {
if (instance==null){
/*System.err.println("Istanza creata");*/
instance = new Replica1Singleton();
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}",
"public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }",
"public SolicitudREST() {\n gson = new Gson();\n ... | [
"0.7085334",
"0.69901943",
"0.6879184",
"0.675192",
"0.67349714",
"0.67226815",
"0.66528964",
"0.6640929",
"0.6600888",
"0.647717",
"0.6420368",
"0.6376692",
"0.6369546",
"0.6366727",
"0.62887686",
"0.62699777",
"0.62585986",
"0.6252956",
"0.61692023",
"0.6135232",
"0.6095253... | 0.0 | -1 |
Shuts down the gui. Only shuts swingy bits down if this is NOT a full jvm shutdown. (to avoid deadlock) | public void shutdown(boolean endGame) {
if (!endGame) trayicon.shutdown();
saveTabs();
status.shutdown();
//do this last:
if (!endGame) {
dispose();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {\r\n\t\t// Tell the Gui Agent to shutdown the system\r\n\t\tGui.shutdown = true;\r\n\t}",
"@Override\r\n\tpublic void shutDown() {\r\n\t\tdown.set(true);\r\n\t\tif (shutDownImmediatelly) {\r\n\t\t\ttry {\r\n\t\t\t\tsuper.shutDown();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrac... | [
"0.70904684",
"0.7082321",
"0.6902659",
"0.6831112",
"0.67925483",
"0.6701824",
"0.6654363",
"0.66129714",
"0.65592",
"0.654821",
"0.6537862",
"0.6513701",
"0.6467137",
"0.6437424",
"0.64084405",
"0.6398432",
"0.6398432",
"0.6398432",
"0.6398432",
"0.6398432",
"0.6398432",
... | 0.6346502 | 37 |
Sets a hint into the status bar for when a mouseenter occurs. | public void setStatusHint(String hint) {
status.setInfoText(hint);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void mouseEntered(MouseEvent me) \n\t{\n\t\tif (me.getSource() == help1)\n\t\t{\n\t\t\tusernameSelect.setForeground(Settings.SITE_ORANGE);\n\t\t\tfullnameSelect.setForeground(Settings.SITE_ORANGE);\n\t\t\tfirstNameSelect.setForeground(Settings.SITE_ORANGE);\n\t\t}\n\t\telse if (me.getSource() =... | [
"0.6260128",
"0.6189726",
"0.6165308",
"0.5957003",
"0.5937913",
"0.58951026",
"0.5883708",
"0.58517915",
"0.58399564",
"0.58370113",
"0.58150727",
"0.5796363",
"0.5770084",
"0.57646513",
"0.5749649",
"0.57258147",
"0.56818986",
"0.567807",
"0.56714666",
"0.56547695",
"0.5649... | 0.572754 | 15 |
with an icon too! | public void setStatusHint(StatusHint hint) {
status.setInfoTextWithIcon(hint.text, hint.icon);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Icon createIcon();",
"public abstract String typeIcon();",
"String getIcon();",
"String getIcon();",
"Icon getIcon();",
"@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"@Override\n public boolean isIcon(){\n ... | [
"0.78636026",
"0.7789161",
"0.7784384",
"0.7784384",
"0.7773748",
"0.7605385",
"0.7601386",
"0.7601386",
"0.7401964",
"0.73972154",
"0.7294074",
"0.723778",
"0.71442354",
"0.7130331",
"0.7130331",
"0.7069061",
"0.7060145",
"0.700534",
"0.6991642",
"0.6959376",
"0.69570166",
... | 0.0 | -1 |
Opens the settings tab to the page specified by the class supplied. ie: ShareSettings.class for the shares page. | public void openSettingsPage(Class<? extends SettingsPanel> settingClass) {
openTab(FS2Tab.SETTINGS);
((SettingsTab)instantiatedTabs.get(FS2Tab.SETTINGS)).showSetting(settingClass);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }",
"private void gotoSettings() {\n \t\tIntent i = new Intent( this, GlobalSettingsActivity.class );\n \t\tthis.startActivity( i );\n \t}",
"private void openSetti... | [
"0.7033388",
"0.6819228",
"0.67337865",
"0.6625253",
"0.6606388",
"0.65620327",
"0.65460455",
"0.65136826",
"0.65104795",
"0.6293924",
"0.6224377",
"0.6221175",
"0.6208437",
"0.6188924",
"0.6175977",
"0.61321265",
"0.6116538",
"0.611297",
"0.6095487",
"0.6090304",
"0.6048567"... | 0.85344756 | 0 |
Returns the singleton instance. | public static ChartDataUpdater getInstance(){
return ChartDataUpdaterInstanceHolder.instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public stati... | [
"0.8822471",
"0.87570286",
"0.84804916",
"0.8441053",
"0.8359148",
"0.83195096",
"0.8303231",
"0.8235651",
"0.8220296",
"0.8217972",
"0.81511813",
"0.81132245",
"0.80848545",
"0.8077749",
"0.8023748",
"0.8014843",
"0.8010512",
"0.7973557",
"0.7972792",
"0.79717726",
"0.795726... | 0.0 | -1 |
Creates a new connector task. | public ConnectorTask(Component aComponent, List<String> someAccumulatorNames){
component = aComponent;
accumulatorNames = someAccumulatorNames;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public CreateWirelessGatewayTaskResult createWirelessGatewayTask(CreateWirelessGatewayTaskRequest request) {\n request = beforeClientExecution(request);\n return executeCreateWirelessGatewayTask(request);\n }",
"Task createTask();",
"Task createTask();",
"Task createTask();",
... | [
"0.68961465",
"0.6792322",
"0.6792322",
"0.6792322",
"0.67251414",
"0.61417025",
"0.6118694",
"0.6035301",
"0.5990319",
"0.59847015",
"0.59834087",
"0.5940188",
"0.5847896",
"0.5824413",
"0.5750797",
"0.57040197",
"0.56756127",
"0.56539387",
"0.5653612",
"0.5633107",
"0.56258... | 0.0 | -1 |
Creates a new task for given application and component. | public ChartUpdaterTask( Component aComponent){
super( aComponent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Task createTask();",
"Task createTask();",
"Task createTask();",
"@Override\n public CreateFuotaTaskResult createFuotaTask(CreateFuotaTaskRequest request) {\n request = beforeClientExecution(request);\n return executeCreateFuotaTask(request);\n }",
"public abstract AbstractTask createTa... | [
"0.643907",
"0.643907",
"0.643907",
"0.6399036",
"0.6123013",
"0.59858423",
"0.59791017",
"0.5815544",
"0.57761246",
"0.5756574",
"0.5747747",
"0.5714897",
"0.56757414",
"0.5641533",
"0.56389976",
"0.5581274",
"0.5550181",
"0.55185163",
"0.5502693",
"0.54765475",
"0.54461217"... | 0.52224284 | 45 |
Method to get the information message | public java.lang.String getMessage()
{
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@AutoEscape\n\tpublic String getMessageInfo();",
"public String getInfoString();",
"String getInfo();",
"public InfoMessage createInfoMessage();",
"public String getInformation() {\n return information;\n }",
"Information getInfo();",
"public String getInfo()\n {\n return info;\n ... | [
"0.7706329",
"0.76433146",
"0.76309234",
"0.75729734",
"0.74667704",
"0.74435174",
"0.7380074",
"0.7338941",
"0.7303786",
"0.73000056",
"0.73000056",
"0.72992045",
"0.72992045",
"0.72967607",
"0.72896177",
"0.728781",
"0.72855735",
"0.72620237",
"0.7235455",
"0.7173332",
"0.7... | 0.0 | -1 |
Method to get the proxy Host Domain | public java.lang.String getProxyHost()
{
return proxyHost;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getHttpProxyHost();",
"public String getHttpProxyHost();",
"public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }",
"public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }",
"public String getProxyHost() {\n return cfg.g... | [
"0.7759454",
"0.7717159",
"0.7613519",
"0.7613519",
"0.75590706",
"0.74316216",
"0.7304552",
"0.71413577",
"0.71164113",
"0.71147716",
"0.70756453",
"0.70756453",
"0.6989693",
"0.68763137",
"0.6832604",
"0.68208104",
"0.68208104",
"0.6790646",
"0.6765923",
"0.6744082",
"0.674... | 0.7577427 | 4 |
Method to get the proxy User ID Name | public java.lang.String getProxyName()
{
return proxyName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getHttpProxyUsername();",
"protected static String getProxyUsername() {\n if (\"?\".equals(proxyUsername)) {\n Console console = System.console();\n if (console != null) {\n proxyUsername = console.readLine(\"Proxy username:\");\n } else {\n throw new UnsupportedOperationEx... | [
"0.7539916",
"0.7224824",
"0.7216744",
"0.7216744",
"0.7216744",
"0.72056043",
"0.71179897",
"0.71179897",
"0.71179897",
"0.7055391",
"0.7014455",
"0.6987952",
"0.69757074",
"0.69757074",
"0.69735986",
"0.6965049",
"0.694503",
"0.68895894",
"0.68895894",
"0.68895894",
"0.6889... | 0.6529311 | 78 |
Method to get the proxy Port | public String getProxyPort()
{
return proxyPort;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getHttpProxyPort();",
"public int getHttpProxyPort();",
"public synchronized String getProxyPort() {\n \n return this.port;\n }",
"public int getProxyPort() {\n return cfg.getProxyPort();\n }",
"public final String getProxyPort() {\n return properties.get(PROXY_PORT_PROPER... | [
"0.88211524",
"0.87530416",
"0.8711637",
"0.86141354",
"0.8557486",
"0.8469105",
"0.8469105",
"0.8398291",
"0.8048814",
"0.76106995",
"0.71981674",
"0.7187862",
"0.7134046",
"0.7123501",
"0.71199435",
"0.70643073",
"0.7061731",
"0.70411557",
"0.70318234",
"0.70318234",
"0.703... | 0.851914 | 5 |
Method to get the proxy Password | public java.lang.String getProxyPswd()
{
return proxyPswd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getHttpProxyPassword();",
"public String getProxyPassword() {\n return cfg.getProxyPassword();\n }",
"public String getProxyPassword() {\n return proxyPassword;\n }",
"protected static String getProxyPassphrase() {\n if (\"?\".equals(proxyPassphrase)) {\n Console console = ... | [
"0.9173874",
"0.86925596",
"0.8521589",
"0.75558937",
"0.73885477",
"0.73607236",
"0.73039156",
"0.72499466",
"0.72499466",
"0.72499466",
"0.72499466",
"0.72499466",
"0.72499466",
"0.72499466",
"0.72111815",
"0.7130207",
"0.7130207",
"0.71122205",
"0.71122205",
"0.70926464",
... | 0.0 | -1 |
Method to get the proxy Realm | public java.lang.String getProxyRealm()
{
return proxyRealm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Proxy getProxy();",
"public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }",
"IRealm getRealm();",
"public Object getProxy() {\n\t\t\r\n\t\treturn getProxy(this.advised.getTargetClass().getClassLoader());\r\n\t}",
"public Proxy getProxy() {\n return proxy;\n }",
... | [
"0.730862",
"0.72368693",
"0.7179811",
"0.7003843",
"0.684115",
"0.66642624",
"0.6627815",
"0.6448567",
"0.63095415",
"0.6207792",
"0.6193424",
"0.6121969",
"0.59847087",
"0.5905539",
"0.5839414",
"0.58206826",
"0.5814084",
"0.5781077",
"0.5672646",
"0.56652576",
"0.5624518",... | 0.8217778 | 0 |
Method to get the proxy Scheme | public java.lang.String getProxyScheme()
{
return proxyScheme;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Proxy getProxy();",
"public String getHttpProxyHost();",
"String getHttpProxyHost();",
"public Proxy getProxy() {\n return proxy;\n }",
"public Protocol getProtocol() {\n Protocol result = null;\n \n if (getResourceRef() != null) {\n // Attempt to guess the protoco... | [
"0.709378",
"0.6588838",
"0.64940274",
"0.6370259",
"0.6352209",
"0.6326256",
"0.6275877",
"0.62383175",
"0.62383175",
"0.62383175",
"0.618904",
"0.6169671",
"0.616447",
"0.6147488",
"0.6139369",
"0.6116896",
"0.6089543",
"0.6087899",
"0.60722077",
"0.60557395",
"0.60132015",... | 0.82050157 | 0 |
Method to Handle a response when authorization fails It calls back to the main appliction and provides the details required to populate correct info to pass a URL | public NVPair getUsernamePassword(AuthorizationInfo challenge, boolean forProxy)
{
if (forProxy && proxyName != null)
{
if (been_here)
{
System.err.println();
System.err.println("Proxy authorization failed");
this.setSuccess(false);
return null;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }",
"@Override\n public void ... | [
"0.70246774",
"0.69516605",
"0.682666",
"0.6777449",
"0.64062184",
"0.6396332",
"0.6284129",
"0.62782305",
"0.620355",
"0.6179992",
"0.61618704",
"0.6147444",
"0.614437",
"0.6139361",
"0.6104441",
"0.60823613",
"0.6064539",
"0.60645145",
"0.6054703",
"0.6030689",
"0.6029977",... | 0.0 | -1 |
Method to ask if it was succeesful operation | public boolean isSuccess()
{
return success;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasIsSuccess();",
"public boolean isSuccess();",
"public boolean isSuccess();",
"boolean isSuccessful();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"public bo... | [
"0.79314804",
"0.78649616",
"0.78649616",
"0.78274053",
"0.7702678",
"0.7702678",
"0.7702678",
"0.7702678",
"0.7702678",
"0.7702678",
"0.7702678",
"0.76025116",
"0.74240404",
"0.7290905",
"0.72704166",
"0.72704166",
"0.72704166",
"0.72704166",
"0.725876",
"0.72157913",
"0.709... | 0.6985454 | 36 |
Method to set the information Message | protected void setMessage(java.lang.String newMessage)
{
if (message == null)
{
message = newMessage;
}
else
{
message += "\n" + newMessage;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMessageInfo(String messageInfo);",
"public void setInformation(String information);",
"public String setInfo() {\n\t\treturn \"There is no parameter\";\r\n\t}",
"public void setMessageInfo(String[] info, UUID messageID, UUID viewer){\n this.mailSender = UUID.fromString(info[0]);\n ... | [
"0.7785584",
"0.7241012",
"0.679239",
"0.6778693",
"0.66957444",
"0.66685605",
"0.66214705",
"0.66119444",
"0.66119444",
"0.6576461",
"0.6546858",
"0.6544844",
"0.65138525",
"0.6497757",
"0.648536",
"0.6480783",
"0.64537823",
"0.6430278",
"0.641867",
"0.6397349",
"0.6397349",... | 0.59909487 | 74 |
Method to set the proxy Host domain | public void setProxyHost(java.lang.String newProxyHost)
{
System.out.println("Host: " + newProxyHost);
proxyHost = newProxyHost;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHttpProxyHost(String host);",
"public void setProxyHost(String hostname) {\n proxyHost = hostname;\n }",
"public final GetHTTP setProxyHost(final String proxyHost) {\n properties.put(PROXY_HOST_PROPERTY, proxyHost);\n return this;\n }",
"public void setHost(String host);",
"... | [
"0.77448004",
"0.7675909",
"0.71703774",
"0.71179533",
"0.7111178",
"0.6903826",
"0.6848139",
"0.68144715",
"0.6768695",
"0.67393124",
"0.6718952",
"0.67052513",
"0.6700211",
"0.665387",
"0.6648977",
"0.6597344",
"0.6597344",
"0.65645725",
"0.65645725",
"0.65645725",
"0.65645... | 0.72788215 | 2 |
Method to set the proxy User ID Name | public void setProxyName(java.lang.String newProxyName)
{
System.out.println("Name: " + newProxyName);
proxyName = newProxyName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setUser_name(String user_name);",
"public void setUserName(String UserName){\n\t\tObjLogInPage.getUserName().sendKeys(UserName);\n\t}",
"@Override\n\tpublic void setUserName(String userName);... | [
"0.6987361",
"0.67826796",
"0.67676216",
"0.6739077",
"0.6739077",
"0.67284894",
"0.6660096",
"0.66498685",
"0.6594812",
"0.6590969",
"0.6568942",
"0.6563681",
"0.6557383",
"0.6532603",
"0.6525044",
"0.6502545",
"0.64868516",
"0.64419264",
"0.64351237",
"0.64316976",
"0.64292... | 0.68264294 | 1 |
Method to set the proxy Port | public void setProxyPort(int newProxyPort)
{
System.out.println("Port: " + newProxyPort);
proxyPort = "" + newProxyPort;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHttpProxyPort(int port);",
"public void setProxyPort(int port) {\n proxyPort = port;\n }",
"public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }",
"public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }",
"public void ... | [
"0.8828553",
"0.85874075",
"0.828518",
"0.828518",
"0.8235142",
"0.8050402",
"0.78218454",
"0.7755733",
"0.77232",
"0.76711863",
"0.7622305",
"0.75930345",
"0.75667995",
"0.75667995",
"0.75088567",
"0.7435876",
"0.7355881",
"0.72766143",
"0.717768",
"0.71021473",
"0.7055267",... | 0.8190341 | 5 |
Method to set the proxy Port | public void setProxyPort(String newProxyPort)
{
proxyPort = newProxyPort;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHttpProxyPort(int port);",
"public void setProxyPort(int port) {\n proxyPort = port;\n }",
"public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }",
"public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }",
"public void ... | [
"0.8828553",
"0.85874075",
"0.828518",
"0.828518",
"0.8190341",
"0.8050402",
"0.78218454",
"0.7755733",
"0.77232",
"0.76711863",
"0.7622305",
"0.75930345",
"0.75667995",
"0.75667995",
"0.75088567",
"0.7435876",
"0.7355881",
"0.72766143",
"0.717768",
"0.71021473",
"0.7055267",... | 0.8235142 | 4 |
Method to set the proxy Password | public void setProxyPswd(java.lang.String newProxyPswd)
{
proxyPswd = newProxyPswd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProxyPassword(String proxyPassword) {\n\t proxyHandler.setProxyPassword(proxyPassword);\n\t}",
"public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }",
"public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyP... | [
"0.8075587",
"0.8030096",
"0.8030096",
"0.78866017",
"0.78691626",
"0.7459921",
"0.70221865",
"0.69648904",
"0.69504213",
"0.69504213",
"0.69504213",
"0.67913437",
"0.67533684",
"0.6704094",
"0.67012644",
"0.6689764",
"0.66866684",
"0.667562",
"0.6668791",
"0.66496813",
"0.66... | 0.0 | -1 |
Method to set the proxy realm | public void setProxyRealm(java.lang.String newProxyRealm)
{
System.out.println("Realm: " + newProxyRealm);
proxyRealm = newProxyRealm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getProxyRealm()\r\n {\r\n return proxyRealm;\r\n }",
"void setRealm(String realm);",
"public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }",
"public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set p... | [
"0.7316964",
"0.69322246",
"0.6760077",
"0.66733783",
"0.66198987",
"0.6077304",
"0.6036444",
"0.60234904",
"0.59137875",
"0.58927524",
"0.5876768",
"0.5870317",
"0.5850671",
"0.57788306",
"0.57332647",
"0.5706414",
"0.56884027",
"0.56578964",
"0.5652404",
"0.56401217",
"0.56... | 0.77704704 | 0 |
Method to set the proxy Scheme | public void setProxyScheme(java.lang.String newProxyScheme)
{
System.out.println("Scheme: " + newProxyScheme);
proxyScheme = newProxyScheme;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getProxyScheme()\r\n {\r\n return proxyScheme;\r\n }",
"public void setHttpProxyHost(String host);",
"public void setProxy(Proxy proxy) {\n\t\tthis.proxy = proxy;\n\t}",
"public void setHttpProxyPort(int port);",
"protected static void setProxyLocation(URI proxyLocation) {\n ... | [
"0.7499494",
"0.6539101",
"0.65336597",
"0.63364726",
"0.63031936",
"0.6203743",
"0.6203457",
"0.6167715",
"0.6047571",
"0.60266495",
"0.60011464",
"0.5996011",
"0.5976235",
"0.5975219",
"0.5957993",
"0.59172124",
"0.58795714",
"0.5877596",
"0.5866885",
"0.58256954",
"0.57840... | 0.77648824 | 0 |
Method to set the successfule operation | protected void setSuccess(boolean newSuccess)
{
success = newSuccess;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"public void setSuccess(boolean success) {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.de... | [
"0.783783",
"0.783783",
"0.78353775",
"0.78307754",
"0.7824747",
"0.7821811",
"0.7821811",
"0.7821811",
"0.7816848",
"0.7683714",
"0.7518789",
"0.7518789",
"0.72484547",
"0.7198675",
"0.71379024",
"0.7104884",
"0.7095194",
"0.7084613",
"0.7076164",
"0.70723855",
"0.7042585",
... | 0.7849598 | 0 |
This method will test the URL if it is success we will see the results in an output file. if it is a failure we will also see the results and what is required to pass through the proxy. | public void testURL()
{
BufferedReader in = null;
PrintStream holdErr = System.err;
String errMsg = "";
try
{
this.setSuccess(false);
PrintStream fileout = new PrintStream(new FileOutputStream("testURLFile.html"));
System.setErr(fileout);
System.err.println(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean testConn(String URL)\n {\n\n if(TestHTTP.test(URL))\n \treturn true;\n else \n {\n \tlogfile.severe(URL+\" DOWN\");\n \treturn false;\n }\n }",
"public static boolean saveToCache(String urlString) {\n\n try {\n int fileExtIn... | [
"0.62719744",
"0.5856059",
"0.5757538",
"0.56749386",
"0.56675345",
"0.5624909",
"0.5612268",
"0.5575264",
"0.55126673",
"0.5450652",
"0.54471594",
"0.54408693",
"0.5437166",
"0.5418658",
"0.5418267",
"0.5417196",
"0.5416806",
"0.540995",
"0.537119",
"0.53632194",
"0.53608054... | 0.6902818 | 0 |
Method to clear the proxy data | protected void clearData()
{
System.getProperties().put("https.proxyHost", "");
System.getProperties().put("https.proxyPort", "");
System.getProperties().put("http.proxyHost", "");
System.getProperties().put("http.proxyPort", "");
proxyScheme = null;
proxyName = null;
proxyPswd = n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearProxyConfig();",
"private void clearData() {}",
"@Override\n public void clearData() {\n }",
"public void clearData()\r\n {\r\n \r\n }",
"public void clearData() {\r\n\t\tdata = null;\r\n\t}",
"public void clearLoci() {\n // Override in proxy if lazily loaded... | [
"0.7791675",
"0.7554394",
"0.7536889",
"0.74693406",
"0.7420701",
"0.7331394",
"0.72984207",
"0.7274648",
"0.72252697",
"0.7216558",
"0.72145593",
"0.70681274",
"0.7066401",
"0.69022924",
"0.6872839",
"0.6871795",
"0.6851951",
"0.6788073",
"0.6779862",
"0.67561775",
"0.675438... | 0.81540483 | 0 |
ArrayList out_tmp_tobias = new ArrayList(); | private ObjectCounter<PathCalculatorDft.Manipulation> calculateWER(String s1, String s2) {
// out_tmp_tobias.add(s2 + "^" + s1);
ObjectCounter<PathCalculatorDft.Manipulation> counterWER = new ObjectCounter<>();
List<String> s1_split = new ArrayList<>();
List<String> list = Arrays.asList(s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Integer> getTemp() { return temp; }",
"public ArrayList<Double> getOutputs()\n {\n return outputs;\n }",
"public Molt(){\n molt=new ArrayList<>();\n }",
"public List<A> getOutValues() {\n return outValues;\n }",
"public ArrayList<Integer> makeIndividual();",
"p... | [
"0.6260575",
"0.59824705",
"0.5672107",
"0.56274575",
"0.56236154",
"0.54958695",
"0.54799706",
"0.5476845",
"0.54758966",
"0.5451914",
"0.54515743",
"0.54341924",
"0.54292613",
"0.5428685",
"0.5418149",
"0.5379152",
"0.5363267",
"0.53591913",
"0.5347935",
"0.5346396",
"0.533... | 0.0 | -1 |
Model tests for ProcessWebhook | @Test
public void testProcessWebhook() {
// TODO: test ProcessWebhook
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\n public void updateWebHook() {\n }",
"@Test\n public void zulipOutgoingWebhooksTest() throws Exception {\n\n // TODO: delete this line and uncomment the next\n // InlineResponse200 response = api.zulipOutgoingWebhooks();\n // TODO: complete test assertions\n }",
"@Test... | [
"0.6140108",
"0.5982218",
"0.55509394",
"0.55100465",
"0.5421461",
"0.5393959",
"0.5393163",
"0.5355531",
"0.5334646",
"0.533418",
"0.5323039",
"0.53043514",
"0.5282712",
"0.52700233",
"0.5199307",
"0.5199057",
"0.5182748",
"0.51714325",
"0.51585704",
"0.5134865",
"0.51293707... | 0.7689539 | 0 |
This method is called once with the initial value and again whenever data at this location is updated. | @Override
public void onDataChange(DataSnapshot dataSnapshot) {
User value = dataSnapshot.getValue(User.class);
Toast.makeText(MainActivity.this, "Response: " + value.getNama(), Toast.LENGTH_SHORT).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}",
"private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n... | [
"0.6856542",
"0.6654883",
"0.6446471",
"0.64045274",
"0.62937367",
"0.62570226",
"0.62508667",
"0.624989",
"0.6217914",
"0.6217914",
"0.6217914",
"0.61913645",
"0.6187112",
"0.61626685",
"0.6160627",
"0.6160627",
"0.61481184",
"0.614558",
"0.6142754",
"0.6118363",
"0.6087983"... | 0.0 | -1 |
Failed to read value | @Override
public void onCancelled(DatabaseError error) {
Log.w(TAG, "Failed to read value.", error.toException());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean shouldReadValue();",
"Object readValue();",
"private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignore... | [
"0.6520245",
"0.644224",
"0.62601036",
"0.6077715",
"0.6027265",
"0.59389204",
"0.5928014",
"0.5897478",
"0.5892562",
"0.5891626",
"0.5821752",
"0.5813256",
"0.5813256",
"0.58093756",
"0.58006567",
"0.5798476",
"0.5776234",
"0.5774579",
"0.57361126",
"0.5728217",
"0.57143444"... | 0.5678807 | 39 |
TODO Autogenerated method stub | @Override
public void getAllRole() {
System.out.println(roles);
} | {
"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 getAllUser() {
System.out.println(users);
} | {
"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 static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Lotto 번호를 추첨하겠습니다.");
Random rd = new Random();
int[]lotto = new int[6];
int i;
int j;
for(i=0; i<6; i++) {
lotto[i]=rd.nextInt(45)+1;
for(j=0; j<i; j++) {
if(lotto[i]==lotto[j]) {
i--;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
10 / \ 6 14 /\ /\ 4 8 12 16 | private static void test01() {
BinaryTreeNode node10 = new BinaryTreeNode();
node10.value = 10;
BinaryTreeNode node6 = new BinaryTreeNode();
node6.value = 6;
BinaryTreeNode node14 = new BinaryTreeNode();
node14.value = 14;
BinaryTreeNode node4 = new BinaryTreeNode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int rightChild(int i){return 2*i+2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int parent(int i){return (i-1)/2;}",
"@Test(timeout = 4000)\n public void test072() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPat... | [
"0.5473678",
"0.54474646",
"0.5330374",
"0.51268196",
"0.5123817",
"0.5122482",
"0.51204556",
"0.5108089",
"0.5107896",
"0.50650346",
"0.5055653",
"0.50440866",
"0.50205797",
"0.50056237",
"0.49760407",
"0.49713477",
"0.4955534",
"0.49092618",
"0.49038655",
"0.48990417",
"0.4... | 0.0 | -1 |
5 / 4 / 3 / 2 / 1 | private static void test02() {
BinaryTreeNode node1 = new BinaryTreeNode();
node1.value = 1;
BinaryTreeNode node2 = new BinaryTreeNode();
node2.value = 2;
BinaryTreeNode node3 = new BinaryTreeNode();
node3.value = 3;
BinaryTreeNode node4 = new BinaryTreeNode();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}",
"public void divide() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n\n ... | [
"0.6285945",
"0.62187624",
"0.62183046",
"0.6098907",
"0.6058939",
"0.6053144",
"0.595679",
"0.5900007",
"0.58890826",
"0.5838125",
"0.5829732",
"0.5817407",
"0.57812434",
"0.5737321",
"0.5723127",
"0.5716741",
"0.5714901",
"0.5696145",
"0.5684555",
"0.5673132",
"0.563848",
... | 0.0 | -1 |
1 \ 2 \ 3 \ 4 \ 5 | private static void test03() {
BinaryTreeNode node1 = new BinaryTreeNode();
node1.value = 1;
BinaryTreeNode node2 = new BinaryTreeNode();
node2.value = 2;
BinaryTreeNode node3 = new BinaryTreeNode();
node3.value = 3;
BinaryTreeNode node4 = new BinaryTreeNode();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j+... | [
"0.5586132",
"0.54995716",
"0.5293773",
"0.52490085",
"0.5239915",
"0.5200128",
"0.5180775",
"0.5159022",
"0.5156009",
"0.5153617",
"0.51287013",
"0.51183456",
"0.51127535",
"0.5110195",
"0.5090657",
"0.5081111",
"0.50708365",
"0.50694424",
"0.5052809",
"0.50377405",
"0.50377... | 0.0 | -1 |
create a hash map | public static void main(String args[]) {
HashMap hm = new HashMap();
// out elements to the map
//hm.put("John Doe", new Double(3434.34));
hm.put("John Doe", 3434.34);
hm.put("Tom Smith", 123.22);
hm.put("Jane Baker", 1378.00);
hm.put("Todd Hall", 99.22);
hm.put("Ralph Smith", -19.08);
// ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}",
"private static <K, V> Map<K, V> newHashMap() {\n ret... | [
"0.7719212",
"0.7273167",
"0.72453505",
"0.71623176",
"0.7036078",
"0.6887203",
"0.6842238",
"0.68260294",
"0.6757364",
"0.6723265",
"0.671459",
"0.6705452",
"0.66805506",
"0.666522",
"0.6585441",
"0.65853536",
"0.6582218",
"0.65084696",
"0.6498441",
"0.6491153",
"0.6466061",... | 0.0 | -1 |
This is just a dummy skill for the soul crystal skill condition, since the Soul Crystal item handler already does everything. | @Override
public void useSkill(Creature activeChar, Creature targets) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void skillControl() {\n\t\tif(skillActive) {\r\n\t\t\tif(skillLast > 0)\r\n\t\t\t{\r\n\t\t\t\tskillLast--;\r\n\t\t\t}else if(skillLast == 0) {\r\n\t\t\t\tskillActive = false;\r\n\t\t\t\tthis.hp/=2;\r\n\t\t\t\tthis.maxHp/=2;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Skills chooseSkill() {\n\t\t\n\t... | [
"0.59408766",
"0.5934592",
"0.5830421",
"0.57768357",
"0.5722892",
"0.5669183",
"0.5650828",
"0.5644465",
"0.5593149",
"0.5529449",
"0.5522286",
"0.54699326",
"0.5445962",
"0.54331046",
"0.54315656",
"0.5419847",
"0.5408983",
"0.54044807",
"0.53931975",
"0.5384302",
"0.538321... | 0.5266696 | 32 |
HiveDeserializer is used to deserialize the data from hadoop Writable to a custom java object that can be of any type that the developer wants. HiveDeserializer also provides the ObjectInspector which can be used to inspect the internal structure of the object (that is returned by deserialize function). All deserialize... | public interface Deserializer extends SerDe {
/**
* Deserialize an object out of a Writable blob. In most cases, the return
* value of this function will be constant since the function will reuse the
* returned object. If the client wants to keep a copy of the object, the
* client needs to clone the retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object deserialize(Writable blob) throws SerDeException;",
"public abstract Object deserialize(Object object);",
"public void deserialize() {\n\t\t\n\t}",
"ObjectInspector getObjectInspector() throws SerDeException;",
"@Override\r\n\tprotected Object readObject() throws IOException, SerializeException {\r\... | [
"0.659941",
"0.6111718",
"0.58095616",
"0.572879",
"0.5694705",
"0.5546422",
"0.5464408",
"0.5452853",
"0.54491425",
"0.54464376",
"0.53970146",
"0.5388397",
"0.5364505",
"0.5324612",
"0.53021574",
"0.519225",
"0.5177138",
"0.51603806",
"0.5160111",
"0.51458985",
"0.5132856",... | 0.69347715 | 0 |
Deserialize an object out of a Writable blob. In most cases, the return value of this function will be constant since the function will reuse the returned object. If the client wants to keep a copy of the object, the client needs to clone the returned deserialized value by calling ObjectInspectorUtils.getStandardObject... | Object deserialize(Writable blob) throws SerDeException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Deserializer extends SerDe {\n\n /**\n * Deserialize an object out of a Writable blob. In most cases, the return\n * value of this function will be constant since the function will reuse the\n * returned object. If the client wants to keep a copy of the object, the\n * client needs to clo... | [
"0.7245315",
"0.71392524",
"0.66463304",
"0.6183103",
"0.6181333",
"0.6179921",
"0.6154319",
"0.6115205",
"0.6115205",
"0.6115205",
"0.60271186",
"0.5993128",
"0.5945941",
"0.5928535",
"0.5871544",
"0.58593386",
"0.5841483",
"0.58263755",
"0.58005494",
"0.57814395",
"0.577771... | 0.8410762 | 0 |
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...). | ObjectInspector getObjectInspector() throws SerDeException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInspector() {\r\n return inspector;\r\n }",
"public interface Deserializer extends SerDe {\n\n /**\n * Deserialize an object out of a Writable blob. In most cases, the return\n * value of this function will be constant since the function will reuse the\n * returned object. If th... | [
"0.62357485",
"0.606717",
"0.59986955",
"0.5948008",
"0.5843195",
"0.58230406",
"0.5768205",
"0.57415694",
"0.5663686",
"0.5657013",
"0.56113195",
"0.55963326",
"0.5581712",
"0.5556903",
"0.554119",
"0.5465338",
"0.543383",
"0.54004204",
"0.53893095",
"0.53837246",
"0.5364121... | 0.77409303 | 0 |
writes the WImage to the file specified by fname the type of the imagefile is automatically set by the file extension (.jpg, .png,...). see doc of javax.imageio.ImageIO for further information. | public static void write(WImage img, String fname) {
BufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(),
BufferedImage.TYPE_BYTE_GRAY);
WritableRaster r = bi.getRaster();
r.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData());
File f = new File(fname);
try {
ImageIO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeImage(String fname) throws java.io.IOException {\n System.out.println(\"Writing the image.\");\n \n File f= new File(fname);\n if (f.exists()) {\n System.out.println(\"File \" + f.getAbsolutePath() + \" exists. It was not overwritten.\");\n return;... | [
"0.7846077",
"0.69399345",
"0.67237896",
"0.6259129",
"0.61724836",
"0.61367977",
"0.6081432",
"0.6062708",
"0.6034957",
"0.5999426",
"0.5989717",
"0.5900907",
"0.5840305",
"0.57940686",
"0.57727236",
"0.56966496",
"0.5585802",
"0.5570752",
"0.5570139",
"0.55158484",
"0.54852... | 0.76910776 | 1 |
writes the WImage to the file specified by fname the type of the imagefile is automatically set by the file extension (.jpg, .png,...). see doc of javax.imageio.ImageIO for further information. | public static void write(WImage img, String fname, Context context,
LongWritable key) {
BufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(),
BufferedImage.TYPE_BYTE_GRAY);
WritableRaster r = bi.getRaster();
r.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData());
try {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeImage(String fname) throws java.io.IOException {\n System.out.println(\"Writing the image.\");\n \n File f= new File(fname);\n if (f.exists()) {\n System.out.println(\"File \" + f.getAbsolutePath() + \" exists. It was not overwritten.\");\n return;... | [
"0.78459",
"0.7690569",
"0.67233557",
"0.62589455",
"0.61728483",
"0.61353636",
"0.60797167",
"0.6061902",
"0.6033311",
"0.59981954",
"0.59888285",
"0.59009445",
"0.58392966",
"0.57933855",
"0.57717043",
"0.5695968",
"0.5584662",
"0.55698127",
"0.5569307",
"0.5514998",
"0.548... | 0.6939393 | 2 |
Fill with Perlin noise | @Override
protected void generateAreas() {
PerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence());
for (int y = 0; y < getHeight(); y ++) {
for (int x = 0; x < getWidth(); x ++) {
if (getValue(x, y) != BASE) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int noise(int xin, int yin, int zin);",
"M generateNoise();",
"@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise((int) getSeed(), perlinTemplate.getScale(), perlinTemplate.getOctaves(), perlinTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++)... | [
"0.60583776",
"0.60376006",
"0.5886837",
"0.58770096",
"0.5717301",
"0.5552887",
"0.54914385",
"0.5463105",
"0.54429543",
"0.5433705",
"0.5386281",
"0.5368366",
"0.53506035",
"0.5329519",
"0.52768844",
"0.52062005",
"0.52049625",
"0.5194533",
"0.5165551",
"0.51485825",
"0.513... | 0.4695851 | 51 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\Javed_1\\Automation_Of_Coding\\Automation\\Driver\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.facebook.com");
driver.manage().window().maximize();
driver.manage().time... | {
"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 |
Inserts a value into the tree. Expands the tree if necessary. | public MerkleTreeBuilder<V> push(V value) {
if (!tree.push(value)) {
expandTree();
push(value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert(T value) {\n\n // Assigns the new node as the root if root is empty.\n if (root == null) root = new Node<>(value);\n\n // Otherwise, traverses the tree until an appropriate empty branch is found.\n else insertRecursively(root, value);\n }",
"public void insert(in... | [
"0.819128",
"0.7913675",
"0.7775786",
"0.75455266",
"0.75294405",
"0.74797624",
"0.73463863",
"0.7324958",
"0.72676396",
"0.72655076",
"0.725936",
"0.7237804",
"0.7194952",
"0.7155973",
"0.7143166",
"0.7067116",
"0.7066587",
"0.70639646",
"0.7060886",
"0.70515215",
"0.705152"... | 0.6352579 | 66 |
Doubles the tree in size. | private void expandTree() {
tree.expand();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTreeSize(Double newtreesize)\n {\n treesize = newtreesize; \n }",
"public double getTreeSize()\n {\n return treesize; \n }",
"public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}",
"public v... | [
"0.703064",
"0.68633115",
"0.6653571",
"0.64282936",
"0.6382575",
"0.61145467",
"0.60577023",
"0.6019987",
"0.5982399",
"0.59774446",
"0.595608",
"0.5921705",
"0.5838954",
"0.5831485",
"0.58060896",
"0.5800259",
"0.5777848",
"0.57015634",
"0.5693774",
"0.56562495",
"0.5637772... | 0.52177465 | 61 |
Returns a unmodifiable version of the tree. | public Hashtree<V> build() {
return new UnmodifiableMerkleTree<>(tree);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SubstitutedBodyDecl treeCopyNoTransform() {\n SubstitutedBodyDecl tree = (SubstitutedBodyDecl) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform... | [
"0.66842204",
"0.66079307",
"0.63553506",
"0.6253944",
"0.62178665",
"0.61803347",
"0.6095997",
"0.60892445",
"0.60553557",
"0.6045254",
"0.60348016",
"0.60054934",
"0.59883314",
"0.5980012",
"0.59538513",
"0.5881924",
"0.58625084",
"0.57976884",
"0.576829",
"0.5735652",
"0.5... | 0.65005195 | 2 |
Clears the tree of all of it's hashes and values. | public void clear() {
tree.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clear() {\n\t\troot.left = null;\n\t\troot.right = null;\n\t\troot = null;\n\t\tsize = 0;\n\t}",
"public void clear() {\n\t\troot = null;\n\t\tcount = 0;\n\t}",
"public void clear(){\n root = null;\n count = 0;\n }",
"public void clear() {\n count = 0;\n root = null;\n }",
"p... | [
"0.7837885",
"0.7824184",
"0.7823753",
"0.77893883",
"0.7777516",
"0.7777516",
"0.77661127",
"0.7721209",
"0.7721209",
"0.770536",
"0.7628466",
"0.76207787",
"0.76207787",
"0.76207787",
"0.7602923",
"0.75514126",
"0.7530797",
"0.749269",
"0.74397594",
"0.7433982",
"0.733026",... | 0.8249616 | 0 |
Sets the hashcode for a Node at a given Index. Indexing follows a breathfirst approach. | public void setHash(int position, long hash) {
tree.setHash(position, hash);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFirstNode(byte[] hash)\n {\n if (!this.isInitialized)\n {\n this.initialize();\n }\n this.firstNode = hash;\n this.firstNodeHeight = this.maxHeight;\n this.isFinished = true;\n }",
"public void set(long index);",
"public void setHashCode... | [
"0.64648867",
"0.63563013",
"0.63524824",
"0.6132155",
"0.6051422",
"0.59818715",
"0.59788287",
"0.5953617",
"0.5939567",
"0.5920567",
"0.5839113",
"0.5778607",
"0.57767564",
"0.574277",
"0.5740835",
"0.5707228",
"0.5681569",
"0.5621308",
"0.56021047",
"0.55994135",
"0.559354... | 0.6674387 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_weather, container, false);
unbinder = ButterKnife.bind(this, view);
moveSenseSnapshot = new MoveSenseSnap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
dinero total de todas las tiendas | public Tienda(String direccion,float dinero){
this.direccion = direccion;
this.dinero = dinero;
numeroTiendas++;
totalDinero+=dinero;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double darTiempoTotal(){\n\t\treturn tiempoComputacionalGrasp+tiempoComputacionalSetCovering;\n\t}",
"public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\... | [
"0.75749165",
"0.7473398",
"0.70865285",
"0.7076656",
"0.69262505",
"0.6819018",
"0.68117017",
"0.6787844",
"0.67721665",
"0.67568606",
"0.66685134",
"0.6628446",
"0.66118824",
"0.6595782",
"0.6578832",
"0.6545941",
"0.6545941",
"0.6495707",
"0.64835835",
"0.64833045",
"0.648... | 0.0 | -1 |
String datestr = new String("20151120 17:45:19"); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd HH:mm:ss"); LocalDateTime dateFrom = LocalDateTime.parse(datestr, formatter); LocalDateTime dateTo = LocalDateTime.now(); | @Override
public List<ExpenceSummary> getReportsForMonth(String owner,int year, int month) {
AggregationResults<ExpenceSummary> results = operations.aggregate(newAggregation(Expence.class, //
match(where("owner").is(owner))
// .andOperator(where("date").lte(LocalDateTime.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LocalDateTime toLocalDateTime(String value) throws DateTimeException {\n String[] valueComponents = value.split(\" \");\n String dateWithStartTime = valueComponents[0] + \" \" + valueComponents[1];\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n ... | [
"0.6496194",
"0.6447763",
"0.6382525",
"0.62669367",
"0.62410975",
"0.6240096",
"0.62188756",
"0.61561227",
"0.60790694",
"0.5929711",
"0.58870333",
"0.58625257",
"0.58265513",
"0.5774041",
"0.5763708",
"0.57544905",
"0.57370716",
"0.5619451",
"0.5615536",
"0.55898154",
"0.55... | 0.0 | -1 |
first initialize positions Appliction defualt Constructor the constructor initialize the LocalDate to be 1.1.20 and then call the other constructor that recive a year and a month | public Appliction()
{
date=LocalDate.of(2020,1,1);//just a start point for the calendar
Appliction p=new Appliction(date.getYear(),date.getMonthValue());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}",
"public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true ... | [
"0.65794295",
"0.63407385",
"0.63380975",
"0.63357323",
"0.6329881",
"0.6298115",
"0.62552446",
"0.6218262",
"0.6185036",
"0.61200154",
"0.61081105",
"0.60725474",
"0.6004311",
"0.59967256",
"0.5989643",
"0.59820604",
"0.5915715",
"0.5871773",
"0.5839787",
"0.58302194",
"0.58... | 0.66524124 | 0 |
Appliction Constructor to initialize all the instance variables the constuctor also handel the buttons and the listeners | public Appliction(int y,int m)
{
year=y;month=m;
frame=new JFrame("Calender");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(1000, 700);
panel=new JPanel();
cmdChooseYear=new JButton("change year");
cmdChooseMonth=new JButton("cha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public App() {\n\t\tContainer pane = getContentPane();\n\t\t\n\t\ttetapan = new JButton(\"Tetapan\");\n\t\tpane.add(tetapan);\n\t\ttetapan.setBounds(10, 20, 80, 30);\n\t\t// tetapan.addActionListener(arg0);\n\t\tcarian = new JTextField(\"Cari...\");\n\t\tpane.add(carian);\n\t\tcarian.setBounds(260, 20, 150, 30);\n... | [
"0.7566183",
"0.726741",
"0.708662",
"0.7068794",
"0.7068794",
"0.70388484",
"0.7024178",
"0.70213544",
"0.7015959",
"0.69545424",
"0.69540596",
"0.6885812",
"0.68567514",
"0.68405825",
"0.6808263",
"0.67625594",
"0.6744217",
"0.6740151",
"0.6721181",
"0.67150533",
"0.6637611... | 0.0 | -1 |
Method intToMonth convert an to a month as a String | public String intToMonth(int a)
{
if(a==1)return "Januray";
else if(a==2)return "February";
else if(a==3)return "March";
else if(a==4)return "April";
else if(a==5)return "May";
else if(a==6)return "June";
else if(a==7)return "July";
else if(a=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String numToMonth(int m)\n {\n return monthsArray[m-1];\n }",
"public String monthConvert(int month) {\n\t\t\tif (month == 1) return \"Jan\";\r\n\t\t\telse if (month == 2) return \"Feb\";\r\n\t\t\telse if (month == 3) return \"Mar\";\r\n\t\t\telse if (month == 4) return \"Apr\";\r\n\t\t\telse... | [
"0.7729356",
"0.7521924",
"0.74424905",
"0.73307717",
"0.7190045",
"0.7078463",
"0.6952815",
"0.6876545",
"0.6828376",
"0.68136233",
"0.67788345",
"0.67428553",
"0.67325324",
"0.6710722",
"0.66863275",
"0.664482",
"0.6632225",
"0.66292995",
"0.6623255",
"0.65485746",
"0.65265... | 0.8342121 | 0 |
Method buildMonth bulding the wanted month on the frame. the method uses the instance varibles of the month and year and start to run the for loop and create buttons and the listeners, and after locate the buttons in the correct postion in the frame | public void buildMonth()
{
int i=0,k=0;
date=LocalDate.of(year,month,1);
String st;
for(int j=0;date.getMonthValue()==month;j++)
{
if(date.getDayOfWeek().name()=="SUNDAY"){k=0;i++;}
else if(date.getDayOfWeek().name()=="MONDAY"){k=1;}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Appliction(int y,int m)\r\n {\r\n year=y;month=m;\r\n frame=new JFrame(\"Calender\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setSize(1000, 700);\r\n panel=new JPanel();\r\n cmdChooseYear=new JButton(\"change year\");\r\n cmdCho... | [
"0.7058402",
"0.6684667",
"0.6572933",
"0.6369778",
"0.6299916",
"0.62867564",
"0.6181981",
"0.61430633",
"0.6133733",
"0.6095093",
"0.60815024",
"0.6073101",
"0.6023725",
"0.59744203",
"0.5964047",
"0.59597105",
"0.5923243",
"0.5906785",
"0.58982074",
"0.58809495",
"0.58452"... | 0.8187329 | 0 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.rounds, 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_changepassword) {
Intent j = new Intent(Rounds.this, CHANGE_PASSWORD.class);
j.setFlags(Intent.FLAG_ACTIVITY_CLEAR_... | {
"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 |
Handle navigation view item clicks here. | @SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.nav_trauma) {
Intent i = new Intent(Rounds.this, Trauma.class);
i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }",
"void onDialogNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr... | [
"0.7882029",
"0.7235578",
"0.6987005",
"0.69458413",
"0.6917864",
"0.6917864",
"0.6883472",
"0.6875181",
"0.68681556",
"0.6766498",
"0.67418456",
"0.67207",
"0.6716157",
"0.6713947",
"0.6698189",
"0.66980195",
"0.66793925",
"0.66624063",
"0.66595167",
"0.6646381",
"0.6641224"... | 0.0 | -1 |
Getter for the current user. | public static String getUser() {
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCurrentUser() {\n return currentUser;\n }",
"public UserCredential getCurrentUser() {\n return this.currentUser;\n }",
"public User getCurrentUser() {\n return currentUser;\n }",
"public User getUser(){\n\t\treturn currentUser;\n\t}",
"public User getCurrentUs... | [
"0.8421379",
"0.83686966",
"0.83561105",
"0.8315655",
"0.8250745",
"0.81927055",
"0.8162265",
"0.807535",
"0.8054035",
"0.8035336",
"0.8025984",
"0.8025984",
"0.7998608",
"0.7983209",
"0.79539484",
"0.79539484",
"0.79539484",
"0.7936665",
"0.79323584",
"0.79306984",
"0.790299... | 0.8008686 | 12 |
Sets the current user's string data. (NRIC, "admin" or "" if there is no current user) | public static void setUser(String user) {
Account.user = user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void assignCurrentAdminUser(final String val) {\n currentAdminUser = val;\n }",
"public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}",
"public void setUser(String paramUser) {\n\tstrUser = paramUser;\n }",
"public void setTxtUser(String txtUser) {\n t... | [
"0.7006709",
"0.6999837",
"0.65149915",
"0.6495769",
"0.644339",
"0.644339",
"0.644339",
"0.63853425",
"0.6382805",
"0.6337177",
"0.631503",
"0.62732214",
"0.62153465",
"0.62006617",
"0.6197795",
"0.6177527",
"0.61540616",
"0.6134064",
"0.6127601",
"0.6111303",
"0.60927165",
... | 0.6160238 | 16 |
Checks if the current user is vaccinated. | public static boolean isUserPassed() {
return isUserPassed(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }",
"public boolean checkIfUserAllowed(String userEmail, String id){\n boolean eventVIP = getEvent(id).getVIPStatus();\n boolean userVIP = userManager.emailToVIPStatus(userEmai... | [
"0.7342473",
"0.63343406",
"0.6076999",
"0.607114",
"0.6063747",
"0.59822845",
"0.5978643",
"0.59436405",
"0.59133303",
"0.59071237",
"0.5885688",
"0.5876834",
"0.5836471",
"0.5832294",
"0.58161175",
"0.5778761",
"0.5754729",
"0.5736245",
"0.5731589",
"0.571834",
"0.5706423",... | 0.0 | -1 |
Gets the date of vaccination of the current user. | public static String getUserPassDate() {
return getUserPassDate(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getVipEnddate() {\n return vipEnddate;\n }",
"public String getCurrentDate() {\n return currentDate;\n }",
"Date getInvoicedDate();",
"ValuationDate getValuationDate();",
"public Date getVipStartdate() {\n return vipStartdate;\n }",
"public Date getCurrentDate()\r\n ... | [
"0.64652723",
"0.62597764",
"0.6242486",
"0.6240634",
"0.6226833",
"0.62142485",
"0.6179999",
"0.6178967",
"0.6170798",
"0.6167882",
"0.61358255",
"0.61272484",
"0.60529476",
"0.59907234",
"0.59727514",
"0.59585583",
"0.5957983",
"0.59334743",
"0.5931295",
"0.5931295",
"0.591... | 0.6454112 | 1 |
Overloading method Checks if a given user is vaccinated. | public static boolean isUserPassed(String username) {
if (username.equals("") || username.equals("admin")) return false;
Boolean b = map.get(username);
return b != null && b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void isAllowed(String user) {\n \r\n }",
"boolean hasSelectedUser();",
"@Override\n\tpublic boolean isVeifyUser(Lt_User user) throws Lt_Blog_Exception {\n\t\treturn false;\n\t}",
"boolean hasObjUser();",
"Boolean acceptRequest(User user);",
"public abstract boolean checkPolicy(User user)... | [
"0.67088175",
"0.659521",
"0.6436321",
"0.6403364",
"0.63564104",
"0.6299716",
"0.62991816",
"0.62623966",
"0.6200739",
"0.6148143",
"0.6148143",
"0.6148143",
"0.6148143",
"0.6148143",
"0.6148143",
"0.6148143",
"0.6134188",
"0.60737145",
"0.6034111",
"0.6034111",
"0.59984916"... | 0.0 | -1 |
Overloading method Gets the date of vaccination of a given user. | public static String getUserPassDate(String username) {
if (username.equals("")) return "";
String s = dateMap.get(username);
return (s != null) ? s : "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ValuationDate getValuationDate();",
"@Override\n\tpublic User getUserDt(int id) {\n\t\treturn userdao.getUserDt(id);\n\t}",
"Date getInvoicedDate();",
"public String[] getUserDate() {\n\t\treturn this.userDate;\n\t}",
"public static String getUserPassDate() {\n return getUserPassDate(user);\n }",... | [
"0.61710614",
"0.61705697",
"0.60905445",
"0.6084104",
"0.6077789",
"0.5969678",
"0.5964258",
"0.5935191",
"0.5915137",
"0.5861635",
"0.5834715",
"0.5817447",
"0.5817447",
"0.5817447",
"0.5789166",
"0.5789166",
"0.57796943",
"0.5761285",
"0.57563746",
"0.57508904",
"0.574038"... | 0.0 | -1 |
Setter for whether the current user has been vaccinated. | public static void setUserPassed(boolean passed, @Nullable Context context) {
Account.passed = passed;
// if logging out, there is no need to update the map or database
if (user.equals("")) return;
map.put(user, passed);
// also update the database
try {
St... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCurrentUserCanChangeAccountStatus() {\r\n return currentUserCanChangeAccountStatus;\r\n }",
"public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }",
"public void setCurrentUser(AVUser aVUser) {\n this.curre... | [
"0.65520906",
"0.6344451",
"0.60955536",
"0.59452105",
"0.5817176",
"0.5806173",
"0.57764226",
"0.574488",
"0.5725511",
"0.5680816",
"0.5651604",
"0.5648778",
"0.55782557",
"0.5548457",
"0.5533154",
"0.55006146",
"0.548578",
"0.5470765",
"0.54706514",
"0.54516757",
"0.5451257... | 0.0 | -1 |
Method to load data from a the external files. | public static void load(Context context) throws IOException {
// read the file
String raw = File.readFile("vaccine.txt", context);
// clear the map and load contents of file into the map
map.clear();
for (String line : raw.split("\n")) {
if (line.equals("")) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void loadData();",
"public abstract void loadData();",
"public abstract void loadData();",
"void loadData();",
"void loadData();",
"protected void loadData()\n {\n }",
"@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}",
"String []... | [
"0.7221069",
"0.7043353",
"0.7043353",
"0.7009587",
"0.7009587",
"0.68956757",
"0.6869301",
"0.665064",
"0.66195107",
"0.66165197",
"0.6562094",
"0.6493054",
"0.647476",
"0.6435448",
"0.6427078",
"0.6410783",
"0.64056844",
"0.6389266",
"0.6378352",
"0.63570803",
"0.63456136",... | 0.0 | -1 |
Handler is an interface that should be implemented by any class that want to be notified when a message is read from a client socket channel. | @FunctionalInterface
public interface Handler {
/**
* Gets called when a message is received.
*
* @param session the session object that handles the communication between the server and the client.
*/
public void onMessage(Session session);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface MessageHandler {\n void onMessage(final byte messageType, final int messageId, final byte[] buffer, final int startIndex, final int length);\n}",
"public interface MsgListener {\n\n public void handlerMsg(Channel ctx, SocketMsg msg);\n}",
"public void handleMessageFromClient(Object msg) ... | [
"0.6998736",
"0.69957393",
"0.6931682",
"0.6821579",
"0.6804508",
"0.6775488",
"0.6722254",
"0.6708941",
"0.6705646",
"0.6686641",
"0.6681183",
"0.6672351",
"0.6665446",
"0.6603236",
"0.6570645",
"0.6542473",
"0.6536537",
"0.65264827",
"0.65129757",
"0.65124923",
"0.64124674"... | 0.65695727 | 15 |
Gets called when a message is received. | public void onMessage(Session session); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}",
"void onMessageReceived(Message message);",
"public void messageReceived() {\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.messagesRecieved, this.getClass()), this\n\t\t.getMessageType(), 1);\n\tTrackedMessa... | [
"0.82911724",
"0.82907176",
"0.80542564",
"0.80396503",
"0.7990698",
"0.79007787",
"0.78859997",
"0.7880348",
"0.782968",
"0.7759888",
"0.7659463",
"0.76434946",
"0.7642499",
"0.75571823",
"0.752257",
"0.74950284",
"0.7479763",
"0.7472363",
"0.74712574",
"0.7453684",
"0.74278... | 0.6718362 | 98 |
/ end of global gn3270_screen data | public void paint(Graphics g){
/*
* override default paint to draw
* screen image in panel using current
* scn_background.
*/
g.drawImage(scn_image,0,0,scn_width,scn_height,scn_background_color,this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void finalScreen() {\r\n\t\tdisplay.setLegend(GAME_OVER);\r\n\t\tdisplay.removeKeyListener(this);\r\n\t}",
"public void updateScreen()\n {\n field_50064_a.updateCursorCounter();\n }",
"void switchScreen()\n {\n\n byte[] data = new byte[13];\n data[0] = (byte)0xF0;\n ... | [
"0.68261784",
"0.6505281",
"0.62924784",
"0.6144395",
"0.61207455",
"0.6102038",
"0.60369617",
"0.6031213",
"0.601048",
"0.59864783",
"0.5975672",
"0.5922017",
"0.59157574",
"0.58888113",
"0.5882215",
"0.5876758",
"0.587473",
"0.5871304",
"0.5856631",
"0.5839798",
"0.5803093"... | 0.0 | -1 |
/ start thread used to repaint image at fixed intervals whenever scn_repaint has been set true | public synchronized void start_scn_updates() {
if (scn_update_thread == null){
scn_update_thread = new Thread(this);
scn_update_thread.start();
}
scn_ready = true;
repaint();
scn_repaint = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\r\n\t\t\r\n\t\tlong lastTime = new Date().getTime();\r\n\t\t\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tlong ct = new Date().getTime();\r\n\t\t\tif (ct-lastTime < 50)\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//thread.slee(10-ct+lastTime);\r\n\t\t\t\t\tThread.sleep(50);\r\n\t\t\t\t} catch (InterruptedException ... | [
"0.71829504",
"0.71690226",
"0.70372635",
"0.7027626",
"0.69161177",
"0.6902876",
"0.68790334",
"0.68375874",
"0.68269634",
"0.6732516",
"0.66934043",
"0.6677797",
"0.665396",
"0.6647206",
"0.66453826",
"0.6635531",
"0.6631468",
"0.6624201",
"0.6602261",
"0.6599609",
"0.65451... | 0.7334526 | 0 |
/ initialize screen panel based on rows, columns, text font and font size, background and text color | public void set_screen(int new_rows, int new_cols, Font new_font, Color new_background_color, Color new_text_color){
stop_scn_updates();
scn_rows = new_rows;
scn_cols = new_cols;
scn_font = new_font;
scn_background_color = new_background_color;
scn_text_color ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }",
"private void initializePanels(... | [
"0.72101897",
"0.6620606",
"0.65505636",
"0.6385377",
"0.6360604",
"0.635373",
"0.6336454",
"0.6316179",
"0.6309412",
"0.62940884",
"0.62779105",
"0.6220463",
"0.6219028",
"0.6200912",
"0.61691827",
"0.6144279",
"0.6137885",
"0.61266536",
"0.61115015",
"0.61067665",
"0.610286... | 0.69312906 | 1 |
/ resize screen to fill current window by adjusting to max font size that will fit | public void resize_screen(){
stop_scn_updates();
scn_font_size = min_font_size+1;
while (scn_font_size < max_font_size){
scn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);
calc_screen_size();
if (scn_image.getWidth() < main_panel_width
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void renderWindowToFit(int x, int y, String title) {\r\n\t\tSystem.out.printf(\"Setting window size: (%d, %d)\", x, y);\r\n\r\n\t\tthis.setTitle(title);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setSize(x, y);\r\n\t\tthis.repaint();\r\n\t\tthis.revalidate();\r\n\t\tthis.setResi... | [
"0.6778408",
"0.666645",
"0.6603492",
"0.63907593",
"0.6328211",
"0.6327813",
"0.6151112",
"0.6125224",
"0.61100566",
"0.61019546",
"0.6094614",
"0.6082999",
"0.60752475",
"0.60576755",
"0.6057341",
"0.6056009",
"0.60463953",
"0.60437536",
"0.6042435",
"0.6011714",
"0.5988238... | 0.81890094 | 0 |
/ calc scn_width and scn_height for current scn_rows, scn_cols, scn_font | private void calc_screen_size(){
scn_grid.setFont(scn_font);
scn_context = scn_grid.getFontRenderContext();
scn_layout = new TextLayout("X",scn_font,scn_context);
scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();
scn_char_height = (int) (scn_ch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resize_screen(){\r\n \tstop_scn_updates();\r\n \tscn_font_size = min_font_size+1;\r\n \twhile (scn_font_size < max_font_size){\r\n \t\tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \t\tcalc_screen_size();\r\n \t\tif (scn_image.getWidth() < m... | [
"0.6503975",
"0.58014303",
"0.5787452",
"0.56783324",
"0.56508464",
"0.5625654",
"0.5617592",
"0.5601538",
"0.5586069",
"0.555671",
"0.5540763",
"0.55310464",
"0.55256027",
"0.55153555",
"0.55038726",
"0.54915893",
"0.5469651",
"0.54633254",
"0.54625654",
"0.5457925",
"0.5451... | 0.78845364 | 0 |
/ compiled from: Prioritized | public interface lw {
int b();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void preorder() {\n\n\t}",
"@Override\n public void preprocess() {\n }",
"@Override\n public void preprocess() {\n }",
"void preProcess();",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"public void pr... | [
"0.61016333",
"0.6099962",
"0.6088777",
"0.606869",
"0.5988295",
"0.5988295",
"0.5988295",
"0.5988295",
"0.56509894",
"0.56051254",
"0.5492577",
"0.54578066",
"0.5369465",
"0.53576756",
"0.528283",
"0.52666426",
"0.52460575",
"0.5238233",
"0.5237206",
"0.52251047",
"0.5217916... | 0.0 | -1 |
Created by dongt 2019/1/12/012 16:44 | public interface WebSocketSessionAware {
void setWebSocketSession(WebSocketSession webSocketSession);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"public void mo6081a() {\n }",
"public void mo38117a() {\n }",
"public Pitonyak_09_02() {\r\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"public v... | [
"0.52979004",
"0.5260671",
"0.5189381",
"0.5178612",
"0.5175041",
"0.5172081",
"0.5119111",
"0.5107957",
"0.5107957",
"0.5107957",
"0.5107957",
"0.5107957",
"0.5107957",
"0.5107957",
"0.51042974",
"0.50824195",
"0.50823677",
"0.5066044",
"0.5063856",
"0.4991175",
"0.49879175"... | 0.0 | -1 |
Creates a new server object. | public Master(GeneticProgram geneticProgram, ISimulator[] simulators, int generations)
throws RemoteException {
super(54614);
this.geneticProgram = geneticProgram;
this.simulators = simulators;
this.generations = generations;
programsRemaining = geneticProgram.getPopu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static RoMServer createServer() throws IOException, Exception {\r\n \t\t// Ip and Port out of config\r\n \t\tIConfig cfg = ConfigurationFactory.getConfig();\r\n \r\n \t\treturn RoMServer.createServer(cfg.getIp(), cfg.getPort());\r\n \t}",
"public Server createServer(Server server){\n\t\tlogger.info(\"Crea... | [
"0.73401296",
"0.7339507",
"0.7134376",
"0.70553625",
"0.6996883",
"0.68431467",
"0.67824227",
"0.67354804",
"0.67314464",
"0.66473645",
"0.65863484",
"0.6520659",
"0.6514807",
"0.6489184",
"0.6479771",
"0.64677835",
"0.64338225",
"0.6416669",
"0.6404338",
"0.6362922",
"0.634... | 0.0 | -1 |
Register with RMI and run the GP. | public synchronized void runGP() throws RemoteException {
initRMI();
initGP();
log.info("Starting program dispatcher");
new Thread(this).start();
int targetFitness = 0;
for (ISimulator simulator : simulators)
targetFitness += simulator.getTerminationFitness(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n\t try{\n \t\tRegistry registry = LocateRegistry.createRegistry(1099);\n \t\tTestUnitImpl testUnit = new TestUnitImpl();\n \t\tProxyMonitoringUnit proxyUnit= new ProxyMonitoringUnit();\n\t registry.rebind(\"TestingUnit\", testUnit);\n\t registry.rebind(\"ProxyUnit\", ... | [
"0.7056626",
"0.70042676",
"0.6912309",
"0.6595052",
"0.6478649",
"0.64688224",
"0.63777936",
"0.63375074",
"0.6317434",
"0.6310491",
"0.627901",
"0.6271997",
"0.624589",
"0.6230196",
"0.622492",
"0.6128836",
"0.61285603",
"0.60939807",
"0.60881144",
"0.6087551",
"0.6067514",... | 0.6096018 | 17 |
Registers this server with RMI. | private void initRMI() throws RemoteException {
log.info("Registering with RMI");
Registry registry = LocateRegistry.getRegistry();
registry.rebind(address, this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerWithServer();",
"public void register(IObserver obj);",
"public void registerServer() {\n log.info(\"Registering service {}\", serviceName);\n cancelDiscovery = discoveryService.register(\n ResolvingDiscoverable.of(new Discoverable(serviceName, httpService.getBindAddress())... | [
"0.77748054",
"0.67850983",
"0.6749538",
"0.6698743",
"0.6489723",
"0.6458656",
"0.63450074",
"0.63382864",
"0.6286794",
"0.62738395",
"0.62708086",
"0.6116553",
"0.60693246",
"0.606557",
"0.6055274",
"0.60541165",
"0.6020603",
"0.5973826",
"0.5967302",
"0.5944858",
"0.593351... | 0.72119343 | 1 |
Setup GP related state. | private void initGP() {
log.info("Initializing GP");
geneticProgram.addPopulationObserver(this);
geneticProgram.initialize();
frontRunner = geneticProgram.getProgram(0); // A safe default
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void gameSetup(){\n\t\tboard.boardSetup();\n\t\tdirectionArray = setUpDirectionArray();\n\t\tcurrentPlayer = SharedConstants.PlayableItem.BLACK;\n\t\tcurrentState = SharedConstants.GameStatus.PLAYING;\n\t\tgameStateModel = new GameSateModel();\n\t\tloadGame = new GameStateRetriever();\n\t\tsaveGame = new G... | [
"0.6562643",
"0.621393",
"0.6195032",
"0.6184521",
"0.5855249",
"0.5851209",
"0.5803497",
"0.5793893",
"0.5757662",
"0.57545954",
"0.568872",
"0.5688314",
"0.56804675",
"0.5665662",
"0.5643272",
"0.5642732",
"0.56210625",
"0.55855393",
"0.5571088",
"0.55695784",
"0.5547543",
... | 0.68770707 | 0 |
Releases clients, stops the program dispatch thread and writes a final checkpoint. | private void cleanup() throws RemoteException {
log.info("GP run complete.");
running = false;
log.info("Releasing clients.");
for (IClient client : clients)
client.release();
clients.clear();
writeCheckpoint("final_generation");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dispose() throws ClientException {\n try {\n scheduler.pauseTaskGraph();\n scheduler.flushTaskGraph();\n taskgraph = null;\n processWaiting.setSize(0);\n } catch (SchedulerException except) {\n throw (new ClientException(except));\n ... | [
"0.611802",
"0.584072",
"0.56925976",
"0.5523363",
"0.5521267",
"0.55104095",
"0.5501946",
"0.5482332",
"0.5453929",
"0.5414963",
"0.54118264",
"0.54113305",
"0.5406572",
"0.53962827",
"0.5386279",
"0.5379797",
"0.53720766",
"0.53424174",
"0.5315768",
"0.5305459",
"0.5305248"... | 0.6961306 | 0 |
Dispatches programs for evaluation. | @Override
public void run() {
while (running) {
synchronized (this) {
while (pendingPrograms.isEmpty())
try { wait(); } catch (InterruptedException ignored) { }
}
IndexedProgram entry = getNextProgram();
sendForEvaluatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\r\n // Execute the program\r\n int index = 0;\r\n\r\n while (index < operations.size()) {\r\n Operation o = operations.get(index);\r\n index = o.execute(index, stack, symbolTable);\r\n }\r\n }",
"void evaluate()\n\t{\n\t\toperation.evaluat... | [
"0.6140709",
"0.5943529",
"0.5875247",
"0.56961215",
"0.5685162",
"0.56717485",
"0.5666226",
"0.5646286",
"0.55644065",
"0.5552732",
"0.5496796",
"0.5468726",
"0.5463434",
"0.54546875",
"0.5447333",
"0.5437551",
"0.5422545",
"0.5416039",
"0.53983486",
"0.53919303",
"0.5383473... | 0.5276117 | 30 |
Writes a checkpoint file. | private void writeCheckpoint(String filename) {
File file = new File(checkpointDir, filename);
try {
geneticProgram.savePopulation(new FileOutputStream(file));
} catch (FileNotFoundException e) {
log.log(Level.WARNING, "Exception in dump", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void writeCheckpoint() {\n\t\tflush();\n\t\tpw.println(\"CHECKPOINT \" \n\t\t\t\t\t+ TransactionManager.instance().transactionList());\n\t\tflush();\n\t}",
"void checkpoint() throws IOException;",
"public void flushCheckpoint(long checkpoint)\r\n/* 124: */ {\r\n/* 125:155 */ this.c... | [
"0.69295967",
"0.66093594",
"0.5931999",
"0.5794088",
"0.57393223",
"0.5671676",
"0.5426662",
"0.5391709",
"0.5363129",
"0.53585094",
"0.534616",
"0.5320663",
"0.5301346",
"0.52977145",
"0.5274095",
"0.5261248",
"0.52547073",
"0.5238459",
"0.5233353",
"0.52315587",
"0.5218973... | 0.71965516 | 0 |
Creates a thread to handle I/O with a client. | private void sendForEvaluation(final int index, final Program program) {
final IClient client = getNextClient();
Thread t = new Thread(new Runnable() {
@Override
public void run() {
try {
int fitness = client.evaluateProgram(program.program);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startInThread() {\n final Client fthis = this;\n if (in != null && in.isAlive()) in.interrupt();\n in = new Thread(() -> {\n while (true) {\n if (client.isClosed()) break;\n try {\n InputStream inFromServer = client.getIn... | [
"0.6840744",
"0.6830531",
"0.66302806",
"0.6625492",
"0.6624555",
"0.6535384",
"0.6473124",
"0.6419385",
"0.6382633",
"0.63536334",
"0.6343368",
"0.6302756",
"0.62860227",
"0.62794095",
"0.6244761",
"0.6234486",
"0.6232118",
"0.61998314",
"0.61612207",
"0.61418086",
"0.612968... | 0.0 | -1 |
Updates the fitness of a program with the GeneticProgram. | private synchronized void updateFitness(int index, int fitness) {
geneticProgram.setProgramFitness(index, fitness);
programsRemaining--;
updateStatistic(index, fitness);
notifyAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }",
"public void setFitness(int newFitness) {\n fitness = newFitness;\n }",
"private void updateStatistic(int index, int fitness) {\... | [
"0.70739543",
"0.6623254",
"0.6598296",
"0.6529128",
"0.64446205",
"0.641054",
"0.63366514",
"0.6290761",
"0.62038934",
"0.6099382",
"0.60959876",
"0.60909945",
"0.608453",
"0.592607",
"0.59012264",
"0.5872333",
"0.5794065",
"0.5786129",
"0.5727194",
"0.5703852",
"0.5671021",... | 0.7222052 | 0 |
Enqueues a client for processing, handling notification. | private synchronized void enqueueClient(IClient client) {
clients.add(client);
notifyAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void produce(Client client) throws InterruptedException {\n\t\tqueue.put(client);\n\t\tclient.setQueueStartTime(System.nanoTime() / Controller.divider - Controller.startTime);\n\t}",
"public synchronized void enqueue(Socket clientSocket) {\n\t\tqueue.add(clientSocket);\n\t\tnotifyAll(); // Wake up anyone ... | [
"0.6688081",
"0.623886",
"0.5932902",
"0.5929418",
"0.58214146",
"0.5719143",
"0.5530659",
"0.5514275",
"0.5512976",
"0.5505865",
"0.5503374",
"0.5471985",
"0.54593176",
"0.54220986",
"0.5364808",
"0.5353097",
"0.5339742",
"0.53322196",
"0.5311688",
"0.52999604",
"0.5292339",... | 0.72175854 | 0 |
Enqueues a program, handling notification. | private synchronized void enqueueProgram(int index, Program individual) {
pendingPrograms.add(new IndexedProgram(index, individual));
notifyAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TriggerRegistrar(ProgramManager<ISPProgram> programMan) {\n _progMan = programMan;\n _pool = Executors.newCachedThreadPool();\n\n // Listen to all the programs.\n List<ISPProgram> progs = programMan.getPrograms();\n for (ISPProgram prog : progs) {\n prog.addCompositeCh... | [
"0.5385765",
"0.536495",
"0.53239924",
"0.5209478",
"0.52041596",
"0.5203713",
"0.5199444",
"0.5144666",
"0.5141067",
"0.5138",
"0.50776786",
"0.50455326",
"0.5006013",
"0.4999387",
"0.49829993",
"0.4971564",
"0.4951349",
"0.4950132",
"0.49478948",
"0.49300784",
"0.4927464",
... | 0.6512887 | 0 |
Updates the statistics fields with new fitness information. | private void updateStatistic(int index, int fitness) {
if (fitness < worst)
worst = fitness;
if (fitness > best) {
best = fitness;
frontRunner = geneticProgram.getProgram(index);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }",
"public void incrementFitness()\n {\n this.fitness++;\n }",
"public abstract void updateFitness();",
"public void setFitness(float ... | [
"0.69800127",
"0.66777843",
"0.6546924",
"0.6533754",
"0.6473912",
"0.6473496",
"0.637501",
"0.6345269",
"0.63428146",
"0.63034314",
"0.62726253",
"0.62608814",
"0.6248963",
"0.623906",
"0.61583036",
"0.61433506",
"0.61406994",
"0.61099166",
"0.608541",
"0.6077681",
"0.606254... | 0.69765216 | 1 |
Resets the statistics fields. | private void resetStatistics() {
worst = Integer.MAX_VALUE;
best = Integer.MIN_VALUE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetStatistics()\n {\n }",
"public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }",
"public void reset() {\n\t\tfor (int i = 0; i < stats.size(); i++) {\n\t\t\tstats.get(i).reset();\n\t\t}\n\t}",
"p... | [
"0.83352405",
"0.827494",
"0.79295564",
"0.7926881",
"0.789929",
"0.74916756",
"0.7482785",
"0.7461174",
"0.7460829",
"0.7407365",
"0.7398709",
"0.7321102",
"0.7304593",
"0.7167716",
"0.71317923",
"0.70166177",
"0.6928677",
"0.6924175",
"0.6909214",
"0.69060415",
"0.68906236"... | 0.70035803 | 16 |
Registers a new server with RMI. This entry point accepts one required and one option argument. The required argument is the directory path to the simulator files and it appears first. It is optionally followed by the path to a checkpoint directory, which (if specified) will load the last version of that GP and continu... | public static void main(String[] args) throws Exception {
if (args.length < 1) {
System.err.println("Usage: Master <simulation_directory> "
+ "[checkpoint_directory]");
System.exit(-1);
}
SimulationDirLoader sdl = new SimulationDirLoader(args[0]);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerWithServer();",
"public static void main(String[] args) {\n\n try {\n\n Registry registry = LocateRegistry.createRegistry( 1888);\n registry.rebind(\"YStudentServerImpl\", new YStudentServerImpl());\n\n\n }\n catch (Exception ex){\n System... | [
"0.614563",
"0.6041246",
"0.5964096",
"0.5789064",
"0.5680281",
"0.5650225",
"0.55993253",
"0.5578888",
"0.5530824",
"0.5524071",
"0.55088466",
"0.5486147",
"0.54561025",
"0.5353177",
"0.5305878",
"0.52675104",
"0.52643585",
"0.51958275",
"0.51957303",
"0.5188381",
"0.5180692... | 0.48765752 | 47 |
Loads a checkpoint of a genetic program. | private static GeneticProgram loadCheckpoint(String arg) {
CheckpointLoader cpl = new CheckpointLoader(arg);
GeneticProgram gp = cpl.instantiate();
if (gp == null) {
System.err.println("Could not load checkpoint.");
System.exit(-1);
}
return gp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ComputationGraph loadCheckpointCG(Checkpoint checkpoint){\n return loadCheckpointCG(checkpoint.getCheckpointNum());\n }",
"public ComputationGraph loadCheckpointCG(int checkpointNum) {\n return loadCheckpointCG(rootDir, checkpointNum);\n }",
"public static ComputationGraph loadCheckp... | [
"0.63930607",
"0.6373238",
"0.6143514",
"0.59858274",
"0.5977188",
"0.57210404",
"0.56247056",
"0.5425799",
"0.539379",
"0.5382676",
"0.5359003",
"0.53343487",
"0.5332523",
"0.5306242",
"0.52137595",
"0.52092916",
"0.518046",
"0.5120735",
"0.51145196",
"0.51126224",
"0.510360... | 0.7848121 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.