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 |
|---|---|---|---|---|---|---|
formatDate Dinh dang ngay kieu java.sql.Date thanh String theo mau "dd/MM/yyyy" | public static String formatDate(java.sql.Date sDate) {
if (sDate == null) {
return null;
} else {
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
return dateFormat.format(sDate);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }",
"public static String formatDate(java.sql.Date date){\n\t\tretur... | [
"0.80746675",
"0.7850553",
"0.7674021",
"0.7652605",
"0.7591543",
"0.755684",
"0.7372991",
"0.7337088",
"0.72830224",
"0.72042453",
"0.7183873",
"0.7169315",
"0.7154141",
"0.7152534",
"0.7148625",
"0.70881397",
"0.7050206",
"0.70491827",
"0.7012444",
"0.6988052",
"0.6970012",... | 0.76200545 | 4 |
formatDatetime Dinh dang ngay gio kieu java.util.Date thanh String theo mau "dd/MM/yyyy HH:mm:ss" | public static String formatDatetime(java.util.Date uDate) {
if (uDate == null) {
return null;
} else {
SimpleDateFormat dateFormat = new SimpleDateFormat(
"dd/MM/yyyy HH:mm:ss");
return dateFormat.format(uDate);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String formatDateAndTime(String date){\n\n return dateTimeFormatter.parse(date).toString();\n\n }",
"public String getDateTimeFormated(Context context){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"\n , context.getResources().getConfiguration().local... | [
"0.73403347",
"0.7170487",
"0.712751",
"0.7052245",
"0.7040598",
"0.6931076",
"0.6885691",
"0.68517935",
"0.68421036",
"0.68421036",
"0.68344724",
"0.67694825",
"0.671735",
"0.67018986",
"0.6665069",
"0.66638404",
"0.6584177",
"0.65660614",
"0.65552735",
"0.65347207",
"0.6526... | 0.72825485 | 1 |
formatDatetime Dinh dang ngay gio kieu java.sql.Timestamp thanh String theo mau "dd/MM/yyyy HH:mm:ss" | public static String formatDatetime(java.sql.Timestamp timeStamp) {
if (timeStamp == null) {
return null;
} else {
SimpleDateFormat dateFormat = new SimpleDateFormat(
"dd/MM/yyyy HH:mm:ss");
return dateFormat.format(timeStamp);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSQLTimestampFormat();",
"public static String formatTimeStamp(Date dateTime, String format)\n {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n return formatter.format(dateTime);\n }",
"public String getDateTimeInsertString(java.sql.Timestamp aTimestamp){\r\n... | [
"0.6982236",
"0.69676983",
"0.6859709",
"0.67454255",
"0.6717729",
"0.6678184",
"0.6678184",
"0.6650106",
"0.6599169",
"0.65297693",
"0.64975774",
"0.6491327",
"0.64663935",
"0.64104295",
"0.64104295",
"0.6410066",
"0.6372718",
"0.63590884",
"0.6338138",
"0.63093466",
"0.6292... | 0.77595246 | 0 |
Returns a string value suitable for the web service token | public abstract String getEtokenValue() throws WebdavException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"String getTokenString();",
"public String getToken();",
"String getToken();",
"String getToken();",
"St... | [
"0.7962541",
"0.7962541",
"0.7962541",
"0.7962541",
"0.7962541",
"0.7962541",
"0.7934963",
"0.7813811",
"0.7652377",
"0.7652377",
"0.7652377",
"0.7652377",
"0.7652377",
"0.7522887",
"0.7318666",
"0.72984064",
"0.7235424",
"0.7235424",
"0.7235424",
"0.7227144",
"0.7178019",
... | 0.6503379 | 95 |
/ ==================================================================== Public methods ==================================================================== | public SysIntf getIntf() {
return sysi;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpu... | [
"0.64133626",
"0.6392726",
"0.6357235",
"0.63320154",
"0.61497897",
"0.61271966",
"0.61271966",
"0.6091852",
"0.60761875",
"0.60750043",
"0.60675275",
"0.60432404",
"0.60432404",
"0.6040891",
"0.5992904",
"0.59597653",
"0.5950205",
"0.59494644",
"0.5947803",
"0.5939456",
"0.5... | 0.0 | -1 |
Return a set of Qname defining reports this node supports. | @Override
public Collection<QName> getSupportedReports() throws WebdavException {
final Collection<QName> res = new ArrayList<>();
res.addAll(super.getSupportedReports());
res.addAll(supportedReports);
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Set<String> getQueryNames();",
"public String[] getReports()\n {\n return null;\n }",
"String getReportsTo();",
"public abstract Set<Measure> supportedMeasures();",
"@Override\n public Set<Measure> supportedMeasures() {\n return ImmutableSet.of();\n }",
"public S... | [
"0.606046",
"0.59452397",
"0.58742595",
"0.5827642",
"0.5801551",
"0.5629681",
"0.55806637",
"0.5505988",
"0.54666585",
"0.5296993",
"0.5227008",
"0.5160248",
"0.5138983",
"0.5094934",
"0.507092",
"0.50534225",
"0.50458133",
"0.50411785",
"0.50345564",
"0.49875098",
"0.498318... | 0.68190944 | 0 |
/ ==================================================================== Required webdav properties ==================================================================== | @Override
public boolean getContentBinary() throws WebdavException {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface WebDavProperty<T> extends PropEntry, ExtendedDavConstants {\n\n /**\n * <p>\n * Returns the text content of the property value as a string. The string\n * is calculated by concatening the text and character data content of\n * every element in the value.\n * </p>\n */\n ... | [
"0.66171306",
"0.5939014",
"0.58589846",
"0.5851099",
"0.55898285",
"0.5534943",
"0.55021197",
"0.5477106",
"0.54719245",
"0.5459823",
"0.5459823",
"0.5454134",
"0.54318786",
"0.54294467",
"0.5408941",
"0.53917754",
"0.53883505",
"0.537846",
"0.537842",
"0.53647",
"0.5357424"... | 0.0 | -1 |
/ ==================================================================== Property methods ==================================================================== | @Override
public boolean knownProperty(final QName tag) {
if (propertyNames.get(tag) != null) {
return true;
}
// Not ours
return super.knownProperty(tag);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Property getProperty();",
"Property getProperty();",
"java.lang.String getProperty();",
"Object getPropertytrue();",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"public String getProperty();",
"EProperties getProperties();",
"public interface Property extends Assign... | [
"0.7453203",
"0.7453203",
"0.73061687",
"0.7292421",
"0.7105468",
"0.7105468",
"0.7105468",
"0.70902574",
"0.6950889",
"0.69487995",
"0.6885992",
"0.68594956",
"0.67805856",
"0.67655736",
"0.6746402",
"0.67364156",
"0.6732763",
"0.67304635",
"0.671876",
"0.67056656",
"0.66610... | 0.0 | -1 |
/ ==================================================================== Protected methods ==================================================================== Return a set of PropertyTagEntry defining properties this node supports. | public Collection<PropertyTagXrdEntry> getXrdNames() throws WebdavException {
return xrdNames.values();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<PropertyType> getBuiltInProperties();",
"Property[] getProperties();",
"ArrayList<PropertyMetadata> getProperties();",
"EProperties getProperties();",
"public Collection<ModuleProperty> getProperties();",
"List<? extends T> getProperties();",
"public Set<ProductSectionProperty> get... | [
"0.68073803",
"0.6671062",
"0.66308117",
"0.65926653",
"0.65530664",
"0.63450795",
"0.63326144",
"0.6312011",
"0.6273924",
"0.6217548",
"0.6211091",
"0.61465406",
"0.6138035",
"0.6109135",
"0.6072182",
"0.606189",
"0.60560817",
"0.6022486",
"0.6020505",
"0.59942025",
"0.59764... | 0.0 | -1 |
Return a set of PropertyTagEntry defining CalWSSOAP properties this node supports. | public Collection<PropertyTagEntry> getCalWSSoapNames() throws WebdavException {
return calWSSoapNames.values();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<ProductSectionProperty> getProperties() {\n return properties;\n }",
"Property[] getProperties();",
"ArrayList<PropertyMetadata> getProperties();",
"public abstract List<PropertyType> getBuiltInProperties();",
"EProperties getProperties();",
"public Collection<ModuleProperty> getPropert... | [
"0.65650547",
"0.644725",
"0.6441821",
"0.6402708",
"0.6118095",
"0.6117163",
"0.6096231",
"0.60769516",
"0.60256016",
"0.58844197",
"0.58792204",
"0.58642983",
"0.5846289",
"0.58381265",
"0.58191264",
"0.58088034",
"0.57922155",
"0.5774127",
"0.5745329",
"0.57364774",
"0.573... | 0.0 | -1 |
/ ==================================================================== Object methods ==================================================================== | @Override
public String toString() {
final ToString ts = new ToString(this);
ts.append("path", getPath());
return ts.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getObject() ;",
"public Object getObject();",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"private void readObject() {}",
"private void readObject() ... | [
"0.70421445",
"0.676002",
"0.67175984",
"0.6673",
"0.6673",
"0.6673",
"0.6673",
"0.6641418",
"0.6641418",
"0.6641418",
"0.66106766",
"0.64953655",
"0.6468475",
"0.64581317",
"0.64130896",
"0.63937277",
"0.63644075",
"0.62832564",
"0.62479216",
"0.6230258",
"0.6182519",
"0.6... | 0.0 | -1 |
TODO Autogenerated method stub | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.getWriter().append("Served at: ").append(request.getContextPath());
} | {
"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 |
Even though this dude says this is not safe: for our purposes it is safe. Our ThreadPoolExecutor is only ever running one thread. | @Override
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
try {
executor.getQueue().put (r);
}
catch (InterruptedException e) {
// To get here, someone would have to intentionally interrupt the T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void test3() {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(1,1,10L, TimeUnit.SECONDS,new LinkedBlockingDeque<>(2),new ThreadPoolExecutor.DiscardPolicy());\n for (int i = 0; i < 10; i++) {\n executor.execute(new Runnable() {\n @Override\n ... | [
"0.6934864",
"0.6735338",
"0.65925944",
"0.6526471",
"0.6412308",
"0.63897586",
"0.63803726",
"0.63119394",
"0.6210535",
"0.6178887",
"0.6115364",
"0.6088371",
"0.6086038",
"0.6027549",
"0.6021923",
"0.59757394",
"0.5967785",
"0.5932674",
"0.5923191",
"0.5882959",
"0.5872174"... | 0.59295756 | 18 |
place a marker that indicates for next run that a crash was caught: | @Override
public final void uncaughtException(final Thread t, final Throwable e)
{
if (null != context) {
context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE).edit ().putBoolean (SHARED_PREF_KEY_CRASH_DETECTED, true).commit();
}
// log ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkForCrashes()\r\n {\r\n ReportManager.checkForCrashes(this);\r\n }",
"public void uncaughtException(java.lang.Thread r11, java.lang.Throwable r12) {\n /*\n r10 = this;\n setJavaThreadCrashed()\n boolean r0 = com.zipow.videobox.mainboard.Mainbo... | [
"0.6230033",
"0.60890424",
"0.6079122",
"0.607473",
"0.6074217",
"0.59849274",
"0.5946268",
"0.5880967",
"0.58252424",
"0.5801289",
"0.57806295",
"0.5778108",
"0.5757358",
"0.57381445",
"0.5733483",
"0.5722608",
"0.56896824",
"0.56851083",
"0.5655854",
"0.5653332",
"0.5648075... | 0.0 | -1 |
Context object must be set in order to use the Logger API. This is called automatically by BMSClient. | static public void setContext(final Context context) {
// once setContext is called, we can set up the uncaught exception handler since
// it will force logging to the file
if (null == LogPersister.context) {
// set a custom JUL Handler so we can capture third-party and internal jav... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LoggerContext getContext() {\n return context;\n }",
"public WriteHandler(ClientConnectionContext context, Logger logger) {\n this.context = context;\n this.logger = logger;\n }",
"@Override\n protected Logger getLogger() {\n return LOGGER;\n }",
"public static ... | [
"0.6825589",
"0.64475465",
"0.61567605",
"0.61371696",
"0.6004769",
"0.598254",
"0.593916",
"0.5829346",
"0.57742697",
"0.57491165",
"0.57151985",
"0.57126564",
"0.57068056",
"0.5704263",
"0.5695725",
"0.5672542",
"0.5658376",
"0.5655577",
"0.5652574",
"0.56085396",
"0.559422... | 0.6225516 | 2 |
Set the level and above at which log messages should be saved/printed. For example, passing LEVEL.INFO will log INFO, WARN, ERROR, and FATAL. A null parameter value is ignored and has no effect. | static public void setLogLevel(final Logger.LEVEL desiredLevel) {
ThreadPoolWorkQueue.execute(new Runnable() {
@Override
public void run() {
setLevelSync(desiredLevel);
// we do this mostly to enable unit tests to logger.wait(100) instead of
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setLevel(int level){\n\tlogLevel = level;\n }",
"public void setLogLevel(int level) {\n logLevel = level;\n }",
"public static void setLogLevel(int level) {\n mLogLevel = level;\n }",
"public static void setLogLevel(int level){\n\t\tswitch(level){\n\t\t\tcase ONE: \n... | [
"0.7453307",
"0.7030955",
"0.7003144",
"0.69647217",
"0.6898907",
"0.68338245",
"0.67444956",
"0.67091316",
"0.6666988",
"0.66065276",
"0.65481645",
"0.65400213",
"0.6532515",
"0.651588",
"0.6501469",
"0.64766663",
"0.6473921",
"0.64409906",
"0.64096326",
"0.63808733",
"0.635... | 0.642778 | 18 |
to avoid thread deadlocks, we have this method that can be called within a thread that is already on the work queue | private synchronized static void setLevelSync(final Logger.LEVEL desiredLevel) {
if (null == desiredLevel) {
return;
}
level = desiredLevel;
if (null != context) {
SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"protected abstract long waitOnQueue();",
"protected void onQueued() {}",
"private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }",
"@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tprotec... | [
"0.76742065",
"0.6978504",
"0.6620477",
"0.6566447",
"0.6426628",
"0.6235703",
"0.6222789",
"0.6222789",
"0.6208667",
"0.6183944",
"0.6140859",
"0.6118433",
"0.6105748",
"0.6066993",
"0.605359",
"0.6016338",
"0.6015573",
"0.60126793",
"0.6010254",
"0.6010254",
"0.6010254",
... | 0.0 | -1 |
Get the current Logger.LEVEL. | static public Logger.LEVEL getLogLevel() {
final Future<Logger.LEVEL> task = ThreadPoolWorkQueue.submit(new Callable<Logger.LEVEL>() {
@Override public Logger.LEVEL call() {
return getLevelSync();
}
});
try {
return task.get();
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static LogLevel getLevel(){\n return EZLoggerManager.lvl;\n }",
"public static int getLevel(){\n\treturn logLevel;\n }",
"public int get_log_level() {\r\n return logLevel;\r\n }",
"public static String getLogLevel()\n {\n return BaseBoot.getInstance().getGlobalConfig().getConfigPr... | [
"0.7918017",
"0.77433586",
"0.7660419",
"0.75491214",
"0.7473657",
"0.7439072",
"0.7429719",
"0.74105954",
"0.73660636",
"0.73551416",
"0.7307072",
"0.7096133",
"0.70757484",
"0.7063055",
"0.6940224",
"0.68592143",
"0.66918254",
"0.66273415",
"0.6624929",
"0.6592134",
"0.6572... | 0.7276243 | 11 |
to avoid thread deadlocks, we have this method that can be called within a thread that is already on the work queue | static synchronized public Logger.LEVEL getLevelSync() {
Logger.LEVEL returnValue = (null == level) ? getLevelDefault() : level;
if (null != context) {
SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);
// use the override
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"protected abstract long waitOnQueue();",
"protected void onQueued() {}",
"private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }",
"@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tprotec... | [
"0.7675534",
"0.6980063",
"0.66209024",
"0.6565899",
"0.64263856",
"0.62361974",
"0.62235284",
"0.62235284",
"0.62083316",
"0.61846346",
"0.6140298",
"0.6119462",
"0.61065316",
"0.60666597",
"0.605333",
"0.6017242",
"0.60158676",
"0.601188",
"0.6011303",
"0.6011303",
"0.60113... | 0.0 | -1 |
Global setting: turn persisting of log data passed to this class's log methods on or off. | static public void storeLogs(final boolean shouldStoreLogs) {
ThreadPoolWorkQueue.execute(new Runnable() {
@Override public void run() {
setCaptureSync(shouldStoreLogs);
// we do this mostly to enable unit tests to logger.wait(100) instead of
// Thread... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDataLogging (boolean dataLogging) {\n this.dataLogging = dataLogging;\n }",
"public void setLogging(boolean logging);",
"public void setLog(boolean log)\n {\n this.log = log;\n }",
"public void setLogging(boolean logging){\n this.logging=logging;\n }",
"public void set... | [
"0.6889281",
"0.6672021",
"0.66247493",
"0.6542431",
"0.65329015",
"0.6463204",
"0.64237034",
"0.6399911",
"0.6396408",
"0.6345416",
"0.6184378",
"0.61328423",
"0.6113367",
"0.6105316",
"0.60590667",
"0.60583293",
"0.6040633",
"0.60309064",
"0.6026108",
"0.6010922",
"0.600973... | 0.54300356 | 88 |
to avoid thread deadlocks, we have this method that can be called within a thread that is already on the work queue | static synchronized private void setCaptureSync(final boolean capture) {
LogPersister.capture = capture;
if (null != context) {
SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);
prefs.edit ().putBoolean (SHARED_PREF_KEY_logPersistence... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"protected abstract long waitOnQueue();",
"protected void onQueued() {}",
"private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }",
"@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tprotec... | [
"0.76742065",
"0.6978504",
"0.6620477",
"0.6566447",
"0.6426628",
"0.6235703",
"0.6222789",
"0.6222789",
"0.6208667",
"0.6183944",
"0.6140859",
"0.6118433",
"0.6105748",
"0.6066993",
"0.605359",
"0.6016338",
"0.6015573",
"0.60126793",
"0.6010254",
"0.6010254",
"0.6010254",
... | 0.0 | -1 |
Get the current value of the capture flag, indicating that the Logger is recording log calls persistently. | static public boolean getCapture() {
final Future<Boolean> task = ThreadPoolWorkQueue.submit(new Callable<Boolean>() {
@Override public Boolean call() {
return getCaptureSync();
}
});
try {
return task.get();
}
catch (Exception... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static synchronized private boolean getCaptureSync() {\n boolean returnValue = (null == capture) ? DEFAULT_capture : capture;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n // use the override\n ... | [
"0.72055346",
"0.68603426",
"0.6694778",
"0.638759",
"0.62892395",
"0.6195371",
"0.5940174",
"0.58868",
"0.58245033",
"0.5812328",
"0.57602596",
"0.5701762",
"0.56582826",
"0.5638721",
"0.5529066",
"0.55094534",
"0.54875857",
"0.54779446",
"0.5474425",
"0.5474425",
"0.547122"... | 0.531476 | 28 |
to avoid thread deadlocks, we have this method that can be called within a thread that is already on the work queue | static synchronized private boolean getCaptureSync() {
boolean returnValue = (null == capture) ? DEFAULT_capture : capture;
if (null != context) {
SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);
// use the override
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"protected abstract long waitOnQueue();",
"protected void onQueued() {}",
"private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }",
"@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tprotec... | [
"0.7675534",
"0.6980063",
"0.66209024",
"0.6565899",
"0.64263856",
"0.62361974",
"0.62235284",
"0.62235284",
"0.62083316",
"0.61846346",
"0.6140298",
"0.6119462",
"0.61065316",
"0.60666597",
"0.605333",
"0.6017242",
"0.60158676",
"0.601188",
"0.6011303",
"0.6011303",
"0.60113... | 0.0 | -1 |
to avoid thread deadlocks, we have this method that can be called within a thread that is already on the work queue | static synchronized private void setAnalyticsCaptureSync(final boolean capture) {
analyticsCapture = capture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"protected abstract long waitOnQueue();",
"protected void onQueued() {}",
"private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }",
"@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tprotec... | [
"0.7675313",
"0.69794184",
"0.66219985",
"0.65666306",
"0.64267504",
"0.62363094",
"0.62234414",
"0.62234414",
"0.620915",
"0.6185002",
"0.61409754",
"0.61192185",
"0.61061823",
"0.6067733",
"0.6053652",
"0.60165685",
"0.6016406",
"0.60127646",
"0.60110414",
"0.60110414",
"0.... | 0.0 | -1 |
to avoid thread deadlocks, we have this method that can be called within a thread that is already on the work queue | static synchronized private boolean getAnalyticsCaptureSync() {
boolean returnValue = (null == analyticsCapture) ? DEFAULT_analyticsCapture : analyticsCapture;
return returnValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"protected abstract long waitOnQueue();",
"protected void onQueued() {}",
"private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }",
"@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tprotec... | [
"0.76742065",
"0.6978504",
"0.6620477",
"0.6566447",
"0.6426628",
"0.6235703",
"0.6222789",
"0.6222789",
"0.6208667",
"0.6183944",
"0.6140859",
"0.6118433",
"0.6105748",
"0.6066993",
"0.605359",
"0.6016338",
"0.6015573",
"0.60126793",
"0.6010254",
"0.6010254",
"0.6010254",
... | 0.0 | -1 |
Set the maximum size of the local log file. Once the maximum file size is reached, no more data will be appended. Consider that this file is sent to a server. | static public void setMaxLogStoreSize(final int bytes) {
// TODO: also check if bytes is bigger than remaining disk space?
if (bytes >= 10000) {
logFileMaxSize = bytes;
}
if (null != context) {
SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLogCollectionMaxFileSize(int size);",
"public void setLogFileSizeLimit(int logFileSizeLimit) {\n agentConfig.setLogFileSizeLimit(logFileSizeLimit);\n logConfigChanged();\n }",
"public void setMaxFileSize(int sINGLESIZE) {\n\t\t\r\n\t}",
"public void setMaxLogSize(int size) {\n mEditL... | [
"0.76417077",
"0.7599986",
"0.75320005",
"0.71073276",
"0.69130754",
"0.6843854",
"0.68317384",
"0.659484",
"0.6561414",
"0.6535199",
"0.64329445",
"0.6409029",
"0.640862",
"0.6346749",
"0.63417983",
"0.6317613",
"0.628492",
"0.6274749",
"0.62589765",
"0.6211735",
"0.61841077... | 0.66371334 | 7 |
Get the current setting for the max file size threshold. | static public int getMaxLogStoreSize() {
return (null == logFileMaxSize) ? DEFAULT_logFileMaxSize : logFileMaxSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized final long getMaxFileSize() {\n return this.maxFileSize;\n }",
"private double getMaxThreshold() {\n return maxThreshold;\n }",
"public long getMaximumFileSize()\r\n\t{\r\n\t\treturn maxFileSize;\r\n\t}",
"private int getMaxSize() {\r\n return PropUtils.getValue(size... | [
"0.68589306",
"0.6838631",
"0.6768062",
"0.6754107",
"0.67031205",
"0.66321063",
"0.65908176",
"0.65908176",
"0.652678",
"0.6523995",
"0.65094954",
"0.65094954",
"0.65094954",
"0.64923275",
"0.6422579",
"0.64221936",
"0.6403709",
"0.64031684",
"0.6380152",
"0.6346241",
"0.633... | 0.600976 | 37 |
region Logger API instance methods | public static void doLog(final Logger.LEVEL calledLevel, String message, final long timestamp, final Throwable t, JSONObject additionalMetadata, final String loggerName, final boolean isInternalLogger, final Object loggerObject) {
// we do this outside of the thread, otherwise we can't find the caller to attach... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Logger (){}",
"protected abstract Logger getLogger();",
"private ExtentLogger() {}",
"protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }",
"private Logger(){ }",
"protected abstract ILogger getLogger();",
"private Logger() {\n\n }",
"public Logger() {\n ... | [
"0.77636886",
"0.7427822",
"0.74234515",
"0.7242259",
"0.72005564",
"0.7150073",
"0.70988643",
"0.7075303",
"0.70698357",
"0.70472074",
"0.7044285",
"0.7038048",
"0.7019082",
"0.6999722",
"0.69565886",
"0.6935352",
"0.69277203",
"0.690334",
"0.68894345",
"0.687909",
"0.686685... | 0.0 | -1 |
endregion private utility methods if we have callstack metadata, prepend it to the message | protected static String prependMetadata (String message, JSONObject metadata) {
try {
if (null != metadata) {
String clazz = "";
String method = "";
String file = "";
String line = "";
if (metadata.has ("$class")) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static JSONObject appendStackMetadata(JSONObject additionalMetadata) {\n JSONObject jsonMetadata;\n\n if(additionalMetadata != null){\n jsonMetadata = additionalMetadata;\n }\n else{\n jsonMetadata = new JSONObject();\n }\n\n try {\n ... | [
"0.5753392",
"0.5537153",
"0.5419842",
"0.5416285",
"0.5343671",
"0.53292835",
"0.52503604",
"0.52282023",
"0.518193",
"0.51622814",
"0.513721",
"0.5117559",
"0.5116048",
"0.5087095",
"0.50776964",
"0.50414675",
"0.5032412",
"0.50109565",
"0.50035673",
"0.49802133",
"0.497186... | 0.7279213 | 0 |
Get stack trace caused by Logger exceptions | protected static JSONObject appendStackMetadata(JSONObject additionalMetadata) {
JSONObject jsonMetadata;
if(additionalMetadata != null){
jsonMetadata = additionalMetadata;
}
else{
jsonMetadata = new JSONObject();
}
try {
// try/catch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getLogStackTrace();",
"String getLogRetryStackTrace();",
"public static String getStackTrace() {\n Exception e = new Exception();\n return getStackTrace(e);\n }",
"String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter p... | [
"0.77247185",
"0.71146095",
"0.64186615",
"0.6355464",
"0.6334091",
"0.6256695",
"0.61774236",
"0.61483663",
"0.60938084",
"0.6084175",
"0.6063724",
"0.60361576",
"0.6024415",
"0.60162944",
"0.60115373",
"0.59533167",
"0.5926512",
"0.5923112",
"0.58887255",
"0.5884436",
"0.58... | 0.0 | -1 |
Will create JSONObject with the passed parameters, and other relevant information. See classlevel documentation. | private static JSONObject createJSONObject(final Logger.LEVEL level, final String pkg, final String message, long timestamp, final JSONObject jsonMetadata, final Throwable t) {
JSONObject jsonObject = new JSONObject();
try {
jsonObject.put ("timestamp", timestamp);
jsonObject.put... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract JSONObject build();",
"public String createJsonObject() {\n JSONObject jsonObject = new JSONObject();\n\n try {\n if (!vslaId.equalsIgnoreCase(\"-1\")) {\n // editing existing information\n jsonObject.put(\"VslaId\", vslaId);\n ... | [
"0.75597996",
"0.67129254",
"0.65735984",
"0.65105057",
"0.65054125",
"0.643006",
"0.6355916",
"0.6351565",
"0.6249634",
"0.62134653",
"0.61961585",
"0.6188374",
"0.6159753",
"0.61592674",
"0.61118263",
"0.6107027",
"0.60935503",
"0.5997279",
"0.5976604",
"0.59678185",
"0.596... | 0.64132977 | 6 |
append the full stacktrace to a $stacktrace key JSONArray in the passed jsonMetadata object and return it. | private static JSONObject appendFullStackTrace (JSONObject jsonMetadata, Throwable t) {
JSONArray stackArray = new JSONArray();
Throwable throwable = t;
StackTraceElement[] stackTraceElements;
boolean first = true;
// walk up the throwable's call stack:
while (throwab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static JSONObject appendStackMetadata(JSONObject additionalMetadata) {\n JSONObject jsonMetadata;\n\n if(additionalMetadata != null){\n jsonMetadata = additionalMetadata;\n }\n else{\n jsonMetadata = new JSONObject();\n }\n\n try {\n ... | [
"0.6941676",
"0.5110781",
"0.4725798",
"0.47235602",
"0.46319163",
"0.45979723",
"0.44912034",
"0.44395354",
"0.44192532",
"0.4352222",
"0.4333434",
"0.42860854",
"0.4282352",
"0.42607984",
"0.42378613",
"0.42197326",
"0.4201363",
"0.41563872",
"0.41553125",
"0.41404322",
"0.... | 0.7412711 | 0 |
We only persist (append) to the log file if the passed jsonObject parameter has data, the Logger capture flag is set to true, and the log file size is less than FILE_SIZE_LOG_THRESHOLD. | private synchronized static void captureToFile (final JSONObject jsonObject, Logger.LEVEL calledLevel) {
boolean cap = getCaptureSync();
boolean analyticsCap = getAnalyticsCaptureSync();
if (context == null) {
if (!context_null_msg_already_printed) {
Log.w(LOG_TAG_NA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logEmissions(JSONObject object, Context context) {\n try {\n JSONArray jsonArray = readEmissionsLog(context);\n if (jsonArray == null) {\n jsonArray = new JSONArray();\n }\n FileOutputStream fos = context.openFileOutput(profileManager.ge... | [
"0.5615284",
"0.54394954",
"0.5384954",
"0.5384705",
"0.5380091",
"0.5313744",
"0.52603084",
"0.52486515",
"0.5227289",
"0.5211603",
"0.5185423",
"0.51644593",
"0.51542515",
"0.5049773",
"0.50360566",
"0.5024488",
"0.50171304",
"0.5012081",
"0.49938902",
"0.49892434",
"0.4988... | 0.7067945 | 0 |
This is mostly to enable unit test to avoid the filesystem. fileLoggerInstance may be a mock injected by LoggerTest, for example. | public static byte[] getByteArrayFromFile(File file) throws UnsupportedEncodingException {
return (fileLoggerInstance == null) ? new byte[]{} : fileLoggerInstance.getFileContentsAsByteArray(file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FileUtil() {}",
"private FileManager() {}",
"private FileUtil() {\n \t\tsuper();\n \t}",
"public static File mock() {\n\n\t\treturn mock(true);\n\t}",
"void setupFileLogging();",
"LogFile(File file)\n {\n this.file = file;\n }",
"private FileUtils() {\n }",
"private FileUtils() {\n ... | [
"0.6428685",
"0.63310266",
"0.63093746",
"0.6299978",
"0.62348616",
"0.6169473",
"0.61684847",
"0.61684847",
"0.609472",
"0.60744166",
"0.6070663",
"0.6025415",
"0.59680367",
"0.58525544",
"0.58217597",
"0.58062845",
"0.58027965",
"0.578484",
"0.57703876",
"0.57638913",
"0.57... | 0.0 | -1 |
PropertiesConfigurator is used to configure logger from properties file | public static void main(String[] args) {
Runner.class.getClassLoader().getResource("log4j.properties");
// Log in console
logger.info("Log4j console appender configuration is successful !!");
int N = 5;
Scanner sc = new Scanner(System.in);
logger.info("Choisir une valeur y/n >> ");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void configure(String propertyFileName)\n {\n PropertyConfigurator.configure(propertyFileName);\n }",
"public static void getLoggerConfiguration() {\n\t\tPropertyConfigurator.configure(System.getProperty(\"user.dir\")+ \"\\\\Config\\\\log4j.properties\");\n\t}",
"public void init(String log4... | [
"0.6735468",
"0.65843034",
"0.6555397",
"0.6390988",
"0.621755",
"0.61045426",
"0.6071224",
"0.60385776",
"0.5960635",
"0.59522134",
"0.59309125",
"0.59088844",
"0.5903271",
"0.58877075",
"0.58515555",
"0.583641",
"0.57891154",
"0.5712417",
"0.5703665",
"0.57023853",
"0.56640... | 0.0 | -1 |
Return the construct identified by the given id. | public IConstruct byId(final String id) {
if (ids == null) {
return null;
}
return (IConstruct) ids.get(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance getInstance(String id);",
"public Cd getById(int id) {\n\t\tString sql = \" from Cd where id=:id\";\n\t\tQuery query = HibernateUtil.getSession().createQuery(sql).setParameter(\"id\", id);\n\t\treturn (Cd)findOne(query);\n\t\t\n\t}",
"public Building getBuilding(int id){\n // Placeholder metho... | [
"0.6427215",
"0.6308906",
"0.6255473",
"0.6252651",
"0.6203797",
"0.6177181",
"0.61474735",
"0.6146083",
"0.6135782",
"0.6088136",
"0.6068772",
"0.5953517",
"0.5946873",
"0.5919869",
"0.5913807",
"0.5906233",
"0.5897158",
"0.58679473",
"0.58569866",
"0.5811557",
"0.5811259",
... | 0.80428463 | 0 |
Secure extraction of a construct by its identity from the given map. | public <T extends IConstruct> T byIdentity(Map<ILocator, T> map, ILocator l) {
if (map == null) {
return null;
}
return map.get(l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public <T extends IConstruct> Set<ILocator> getIdentities(Map<T, Set<ILocator>> map, T construct) {\r\n\t\tif (map == null || !map.containsKey(construct)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn HashUtil.getHashSet(map.get(construct));\r\n\t}",
"String map( String principal );",
"public Map instantiateB... | [
"0.55058897",
"0.51697683",
"0.5085226",
"0.5007889",
"0.49474952",
"0.47402093",
"0.4723096",
"0.46811527",
"0.46749422",
"0.4647114",
"0.46394417",
"0.45680234",
"0.4549604",
"0.45416722",
"0.44901785",
"0.44762465",
"0.44342947",
"0.4424058",
"0.4389684",
"0.43837333",
"0.... | 0.57781523 | 0 |
Return the construct identified by the given itemidentifier. | public IConstruct byItemIdentifier(final ILocator l) {
return byIdentity(itemIdentifiers, l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"I getIdentifier();",
"public IConstruct byId(final String id) {\r\n\t\tif (ids == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn (IConstruct) ids.get(id);\r\n\t}",
"public @NotNull Item findItem(@NotNull final Identifier identifier) throws ItemNotFoundException, BazaarException;",
"public String getIte... | [
"0.54295146",
"0.5423968",
"0.53884536",
"0.5291256",
"0.52595365",
"0.5236072",
"0.5229741",
"0.5080323",
"0.5046979",
"0.5046979",
"0.5046979",
"0.5046979",
"0.5046979",
"0.5046979",
"0.5046979",
"0.5039762",
"0.50343853",
"0.5029816",
"0.49820754",
"0.49535805",
"0.4924557... | 0.5656191 | 0 |
Return the topic identified by the given subjectidentifier. | public ITopic bySubjectIdentifier(final ILocator l) {
return byIdentity(subjectIdentifiers, l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/{subjectId}\")\n\tpublic Subject getSubject(@PathVariable Long subjectId) {\n\t\tSubject subject = subjectService.getSubject(subjectId);\n\t\tif (subject == null)\n\t\t\tthrow new ObjectNotFoundException(\"Subject not found of id-\" + subjectId);\n\t\treturn subject;\n\t}",
"public Sub... | [
"0.65436316",
"0.652243",
"0.61163133",
"0.61117756",
"0.60319716",
"0.6029502",
"0.5962956",
"0.5864953",
"0.58517176",
"0.58511174",
"0.5767199",
"0.57607263",
"0.57163435",
"0.57163435",
"0.5714334",
"0.5634431",
"0.5634431",
"0.55601716",
"0.5553971",
"0.5552735",
"0.5523... | 0.6164342 | 2 |
Return the topic identified by the given subjectlocator. | public ITopic bySubjectLocator(final ILocator l) {
return byIdentity(subjectLocators, l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ITopic bySubjectIdentifier(final ILocator l) {\r\n\t\treturn byIdentity(subjectIdentifiers, l);\r\n\t}",
"private TopicIF getTopic(TopicMapIF tm, TMObjectMatcherIF matcher) {\n if (matcher instanceof InternalTopicRefMatcher) {\n InternalTopicRefMatcher m = (InternalTopicRefMatcher) matcher;\n ... | [
"0.66961026",
"0.668321",
"0.5952894",
"0.5899255",
"0.5814788",
"0.5795618",
"0.5795618",
"0.5628267",
"0.5628267",
"0.5594825",
"0.5495323",
"0.5422152",
"0.5420244",
"0.54117495",
"0.53916264",
"0.53062284",
"0.53028095",
"0.5302506",
"0.52434593",
"0.5223331",
"0.52128744... | 0.66776645 | 2 |
Cache the mapping between the id and the construct into internal store. | public void cacheId(final String id, IConstruct c) {
if (ids == null) {
ids = new TreeBidiMap();
}
ids.put(id, c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching ... | [
"0.62699145",
"0.5973103",
"0.59303284",
"0.58912635",
"0.58642536",
"0.5813611",
"0.5707101",
"0.570481",
"0.56698674",
"0.56515574",
"0.54816884",
"0.54635763",
"0.5434725",
"0.534774",
"0.53432155",
"0.5330915",
"0.5304748",
"0.52826923",
"0.5253505",
"0.52528495",
"0.5226... | 0.7113903 | 0 |
Cache the mapping between the itemidentifier and the construct into internal store. | public void cacheItemIdentifier(final ILocator l, IConstruct c) {
if (itemIdentifiers == null) {
itemIdentifiers = HashUtil.getHashMap();
}
itemIdentifiers.put(l, c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheItemIdentifiers(IConstruct c, Set<ILocator> identifiers) {\r\n\t\tif (constructItemIdentifiers == null) {\r\n\t\t\tconstructItemIdentifiers = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tconstructItemIdentifiers.put(c, HashUtil.getHashSet(identifiers));\r\n\t}",
"void initCaches(Map<EObject, String> e... | [
"0.6726225",
"0.60079104",
"0.60044885",
"0.59892225",
"0.5610328",
"0.5594911",
"0.5534143",
"0.54454905",
"0.5427005",
"0.5382152",
"0.5340932",
"0.53035146",
"0.5299455",
"0.5293925",
"0.52719647",
"0.5201914",
"0.5189557",
"0.51760167",
"0.5162612",
"0.515257",
"0.5132586... | 0.6727599 | 0 |
Cache the mapping between the subjectidentifier and the topic into internal store. | public void cacheSubjectIdentifier(final ILocator l, ITopic t) {
if (subjectIdentifiers == null) {
subjectIdentifiers = HashUtil.getHashMap();
}
subjectIdentifiers.put(l, t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void cacheLoadThroughSubjects()\n {\n }",
"public void cacheSubjectLocator(final ILocator l, ITopic t) {\r\n\t\tif (subjectLocators == null) {\r\n\t\t\tsubjectLocators = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tsubjectLocators.put(l, t);\r\n\t}",
"public void cacheSubjectIdentifiers(ITopic t, Set... | [
"0.62241054",
"0.61052346",
"0.58508176",
"0.58227295",
"0.5748978",
"0.53368735",
"0.53331244",
"0.53311265",
"0.5304873",
"0.5223802",
"0.5038757",
"0.4996728",
"0.498101",
"0.4945319",
"0.49445015",
"0.48930848",
"0.4886075",
"0.4886075",
"0.4884552",
"0.48746222",
"0.4866... | 0.6696634 | 0 |
Cache the mapping between the subjectlocator and the topic into internal store. | public void cacheSubjectLocator(final ILocator l, ITopic t) {
if (subjectLocators == null) {
subjectLocators = HashUtil.getHashMap();
}
subjectLocators.put(l, t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheSubjectIdentifier(final ILocator l, ITopic t) {\r\n\t\tif (subjectIdentifiers == null) {\r\n\t\t\tsubjectIdentifiers = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tsubjectIdentifiers.put(l, t);\r\n\t}",
"public void cacheSubjectLocators(ITopic t, Set<ILocator> identifiers) {\r\n\t\tif (topicSubjectLoc... | [
"0.65702623",
"0.6389413",
"0.63538355",
"0.58012205",
"0.5660242",
"0.5579484",
"0.550952",
"0.5409107",
"0.5348478",
"0.5342377",
"0.5301327",
"0.5301327",
"0.51757896",
"0.5139312",
"0.51336163",
"0.5131979",
"0.5119041",
"0.50916237",
"0.50828344",
"0.5067187",
"0.5026308... | 0.6936873 | 0 |
Secure extraction of the identities of the given construct from the given map. | public <T extends IConstruct> Set<ILocator> getIdentities(Map<T, Set<ILocator>> map, T construct) {
if (map == null || !map.containsKey(construct)) {
return null;
}
return HashUtil.getHashSet(map.get(construct));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public <T extends IConstruct> T byIdentity(Map<ILocator, T> map, ILocator l) {\r\n\t\tif (map == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn map.get(l);\r\n\t}",
"String map( String principal );",
"private static Map<String,List<Integer>> getProvisionIdMapStream(Map<String,List<Integer>> nameMapIdMap,... | [
"0.5189395",
"0.5134713",
"0.50917",
"0.49739",
"0.49283478",
"0.4926416",
"0.49186942",
"0.4829965",
"0.48034918",
"0.47905114",
"0.47227088",
"0.46998277",
"0.4686078",
"0.46797925",
"0.46201202",
"0.4619798",
"0.4619798",
"0.4619798",
"0.4619798",
"0.4619798",
"0.4619798",... | 0.6211352 | 0 |
Return all itemidentifiers of the given construct. | public Set<ILocator> getItemIdentifiers(IConstruct c) {
return getIdentities(constructItemIdentifiers, c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void _writeItemIdentifiers(final Construct construct) throws IOException {\n if (_exportIIds) {\n _writeLocators(\"item_identifiers\", construct.getItemIdentifiers());\n }\n }",
"Collection<LocatorIF> getItemIdentifiers();",
"identifierList getIdentifierList();",
"public V... | [
"0.6585878",
"0.6454944",
"0.6027683",
"0.59295213",
"0.58256406",
"0.58003575",
"0.5706532",
"0.5691273",
"0.5596868",
"0.55775785",
"0.5530112",
"0.5529836",
"0.5523745",
"0.54193974",
"0.54038435",
"0.5402064",
"0.53607786",
"0.53408605",
"0.5334528",
"0.5324289",
"0.53156... | 0.71212405 | 0 |
Return all subjectidentifiers of the given topic. | public Set<ILocator> getSubjectIdentifiers(ITopic t) {
return getIdentities(topicSubjectIdentifiers, t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Integer> findAllSubjectId() {\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tList<Subject> list = dao.findAll();\n\t\tfor (Subject subject : list) {\n\t\t\t\n\t\t\tresult.add(subject.getSubjectId());\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"Collection<LocatorIF> getSubjectI... | [
"0.62978184",
"0.5987861",
"0.5944734",
"0.5944682",
"0.59059507",
"0.56667286",
"0.5605223",
"0.5551244",
"0.5447571",
"0.5412908",
"0.5339873",
"0.5295613",
"0.5293929",
"0.5273057",
"0.51580006",
"0.5131191",
"0.51288575",
"0.51288575",
"0.51169145",
"0.5085332",
"0.508162... | 0.57368386 | 5 |
Return all subjectlocator of the given topic. | public Set<ILocator> getSubjectLocators(ITopic t) {
return getIdentities(topicSubjectLocators, t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<LocatorIF> getSubjectIdentifiers();",
"Collection<LocatorIF> getSubjectIdentifiersByPrefix(String prefix);",
"public List<Topic> getAllTopics() {\n\t\tlogger.info(\"getAllTopics executed\");\n\t\t//return topics;\n\t\tList<Topic> topics = new ArrayList<Topic>();\n\t\ttopicRepository.findAll().forEac... | [
"0.59881693",
"0.58141464",
"0.56480026",
"0.56193966",
"0.5609206",
"0.5574571",
"0.54543555",
"0.5396991",
"0.5377385",
"0.53429484",
"0.5337342",
"0.5270254",
"0.525899",
"0.52322376",
"0.52288467",
"0.5212448",
"0.5195447",
"0.5153473",
"0.51445633",
"0.5124277",
"0.51223... | 0.5712406 | 2 |
Cache the itemidentifiers of the given construct to the internal store. | public void cacheItemIdentifiers(IConstruct c, Set<ILocator> identifiers) {
if (constructItemIdentifiers == null) {
constructItemIdentifiers = HashUtil.getHashMap();
}
constructItemIdentifiers.put(c, HashUtil.getHashSet(identifiers));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheItemIdentifier(final ILocator l, IConstruct c) {\r\n\t\tif (itemIdentifiers == null) {\r\n\t\t\titemIdentifiers = HashUtil.getHashMap();\r\n\t\t}\r\n\t\titemIdentifiers.put(l, c);\r\n\t}",
"private void _writeItemIdentifiers(final Construct construct) throws IOException {\n if (_exportIId... | [
"0.70044947",
"0.59844476",
"0.5975275",
"0.55999935",
"0.545176",
"0.5278695",
"0.5250043",
"0.5199279",
"0.5167139",
"0.51169276",
"0.5059677",
"0.503628",
"0.50251496",
"0.5001196",
"0.49623358",
"0.49506775",
"0.49315012",
"0.48829705",
"0.483066",
"0.48278785",
"0.482614... | 0.7555222 | 0 |
Cache the subjectidentifiers of the given topic to the internal store. | public void cacheSubjectIdentifiers(ITopic t, Set<ILocator> identifiers) {
if (topicSubjectIdentifiers == null) {
topicSubjectIdentifiers = HashUtil.getHashMap();
}
topicSubjectIdentifiers.put(t, HashUtil.getHashSet(identifiers));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheSubjectIdentifier(final ILocator l, ITopic t) {\r\n\t\tif (subjectIdentifiers == null) {\r\n\t\t\tsubjectIdentifiers = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tsubjectIdentifiers.put(l, t);\r\n\t}",
"protected void cacheLoadThroughSubjects()\n {\n }",
"public void cacheSubjectLocators(ITop... | [
"0.6391655",
"0.5703875",
"0.56737554",
"0.55215865",
"0.5286669",
"0.5286669",
"0.51348925",
"0.4956769",
"0.49085405",
"0.4890836",
"0.4890836",
"0.4881144",
"0.48096734",
"0.48096734",
"0.47995764",
"0.47794104",
"0.47224578",
"0.4721768",
"0.4703754",
"0.47026226",
"0.470... | 0.6459448 | 0 |
Cache the subjectlocators of the given topic to the internal store. | public void cacheSubjectLocators(ITopic t, Set<ILocator> identifiers) {
if (topicSubjectLocators == null) {
topicSubjectLocators = HashUtil.getHashMap();
}
topicSubjectLocators.put(t, HashUtil.getHashSet(identifiers));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void cacheLoadThroughSubjects()\n {\n }",
"public void cacheSubjectLocator(final ILocator l, ITopic t) {\r\n\t\tif (subjectLocators == null) {\r\n\t\t\tsubjectLocators = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tsubjectLocators.put(l, t);\r\n\t}",
"public void cacheSubjectIdentifiers(ITopic t, Set... | [
"0.619872",
"0.6157912",
"0.5862422",
"0.58389974",
"0.5838585",
"0.5064825",
"0.5005285",
"0.49942854",
"0.49861413",
"0.49257752",
"0.48519814",
"0.47184446",
"0.4715205",
"0.46840823",
"0.46313006",
"0.4631214",
"0.4614114",
"0.46057966",
"0.45793277",
"0.45496762",
"0.450... | 0.66983986 | 0 |
Return all internal stored identifiers. | public Set<ILocator> getIdentifiers() {
Set<ILocator> ii = getItemIdentifiers();
Set<ILocator> si = getSubjectIdentifiers();
Set<ILocator> sl = getSubjectLocators();
if (ii == null || si == null || sl == null) {
return null;
}
Set<ILocator> set = HashUtil.getHashSet();
set.addAll(ii);
set.ad... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector<String> getIdentifiers()\n\t{\n\t\tfinal Vector<String> rets = new Vector<String>();\n\t\trets.add(identifier);\n\t\treturn rets;\n\t}",
"Set<String> getIdentifiers();",
"public List<Identifier> getIdentifiers() {\r\n\r\n if (this.identifiers == null) {\r\n\r\n this.identifiers ... | [
"0.7310568",
"0.70726246",
"0.69690585",
"0.69683933",
"0.6936796",
"0.68182737",
"0.6767022",
"0.67357385",
"0.6731052",
"0.6718246",
"0.6630768",
"0.6578605",
"0.6442565",
"0.64300764",
"0.64062953",
"0.6388734",
"0.63886607",
"0.63162065",
"0.62931526",
"0.6285359",
"0.626... | 0.6038071 | 40 |
Extract the identities contained by the current topic map of the specified type. | public Set<ILocator> getIdentities(Key key) {
if (identities == null || !identities.containsKey(key)) {
return null;
}
return identities.get(key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getIdByType(String type)\n {\n return idTypeMap.get(type).intValue();\n }",
"protected List<Topic> doGetSupertypes(Topic type, int offset, int limit) {\r\n\t\tList<Topic> cache = HashUtil.getList(getParentIndex().getSupertypes(type));\r\n\t\treturn HashUtil.secureSubList(cache, off... | [
"0.5076965",
"0.49977726",
"0.4892145",
"0.4862784",
"0.48324457",
"0.47475067",
"0.4734223",
"0.46813315",
"0.46728322",
"0.46398425",
"0.45995858",
"0.4599482",
"0.4584104",
"0.45813656",
"0.45613226",
"0.4526769",
"0.4505508",
"0.4499985",
"0.4489038",
"0.44869345",
"0.447... | 0.45040816 | 17 |
Return all internal stored itemidentifiers. | public Set<ILocator> getItemIdentifiers() {
return getIdentities(Key.ITEM_IDENTIFIER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getItemIDs() {\n String[] IDs = new String[this.size()];\n for (int i = 0; i < IDs.length; i++) {\n IDs[i] = this.get(i).getItemId();\n }\n return IDs;\n }",
"public Vector getItemIds()\n {\n return mItemIds;\n }",
"public int[] getItemIDs() {\... | [
"0.7521642",
"0.75036865",
"0.74474436",
"0.73211104",
"0.7289232",
"0.71490675",
"0.7012406",
"0.7012406",
"0.69865453",
"0.68894166",
"0.6851001",
"0.6851001",
"0.6831089",
"0.6812825",
"0.68083805",
"0.6775868",
"0.666982",
"0.6567083",
"0.6547625",
"0.6547163",
"0.64818",... | 0.7463713 | 2 |
Return all internal stored subjectidentifiers. | public Set<ILocator> getSubjectIdentifiers() {
return getIdentities(Key.SUBJECT_IDENTIFIER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<LocatorIF> getSubjectIdentifiers();",
"@Override\n\tpublic List<Integer> findAllSubjectId() {\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tList<Subject> list = dao.findAll();\n\t\tfor (Subject subject : list) {\n\t\t\t\n\t\t\tresult.add(subject.getSubjectId());\t\n\t\t}\n\t\t\n\t\treturn... | [
"0.74682",
"0.73814166",
"0.65870124",
"0.6583818",
"0.6551369",
"0.65494174",
"0.6533633",
"0.651654",
"0.651095",
"0.6435229",
"0.6375222",
"0.6297627",
"0.62334466",
"0.62136066",
"0.6207838",
"0.61818606",
"0.6171502",
"0.61417264",
"0.61010885",
"0.6074487",
"0.6053257",... | 0.7488857 | 0 |
Return all internal stored subjectlocators. | public Set<ILocator> getSubjectLocators() {
return getIdentities(Key.SUBJEC_LOCATOR);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<ILocator> getSubjectLocators(ITopic t) {\r\n\t\treturn getIdentities(topicSubjectLocators, t);\r\n\t}",
"Collection<LocatorIF> getSubjectIdentifiers();",
"public Set<ILocator> getSubjectIdentifiers() {\r\n\t\treturn getIdentities(Key.SUBJECT_IDENTIFIER);\r\n\t}",
"public List<ACSubjectInfo> getSub... | [
"0.6799869",
"0.6707479",
"0.5941374",
"0.589029",
"0.5745543",
"0.5743431",
"0.57346416",
"0.5698878",
"0.5663894",
"0.5659291",
"0.56585485",
"0.5654537",
"0.5639871",
"0.561724",
"0.5603213",
"0.5588126",
"0.5550809",
"0.5530676",
"0.5508952",
"0.54413474",
"0.5438257",
... | 0.7221978 | 0 |
Cache the given identities to the internal cache | public void cacheIdentities(Key key, Set<ILocator> locators) {
if (identities == null) {
identities = HashUtil.getHashMap();
}
identities.put(key, locators);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheItemIdentifiers(IConstruct c, Set<ILocator> identifiers) {\r\n\t\tif (constructItemIdentifiers == null) {\r\n\t\t\tconstructItemIdentifiers = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tconstructItemIdentifiers.put(c, HashUtil.getHashSet(identifiers));\r\n\t}",
"protected abstract void setIdListToCac... | [
"0.6601185",
"0.6484814",
"0.6221459",
"0.6085091",
"0.60063195",
"0.5780205",
"0.57513946",
"0.57363784",
"0.57183325",
"0.57074004",
"0.5703331",
"0.55531776",
"0.5547877",
"0.5426706",
"0.540059",
"0.5371665",
"0.5369967",
"0.5369313",
"0.535498",
"0.535373",
"0.5318657",
... | 0.6443418 | 2 |
Returns the best label for the given topic | public String getBestIdentifier(ITopic t, boolean withPrefix) {
if (bestIdentifiers == null) {
return null;
}
return bestIdentifiers.get(new BestIdentifierKey(t, withPrefix));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBestLabel(ITopic t) {\r\n\t\tif (bestLabels == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn bestLabels.get(new BestLabelKey(t));\r\n\t}",
"public String getBestLabel(ITopic t, ITopic theme, boolean strict) {\r\n\t\tif (bestLabels == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn be... | [
"0.6403666",
"0.6232152",
"0.5793948",
"0.57249415",
"0.5597975",
"0.55733854",
"0.55507785",
"0.5526862",
"0.5507262",
"0.5490682",
"0.547366",
"0.54654795",
"0.5435085",
"0.5419911",
"0.5409552",
"0.5409552",
"0.53892",
"0.53892",
"0.53892",
"0.53707814",
"0.5366718",
"0.... | 0.0 | -1 |
Cache the best label of the given topic to the internal store. | public void cacheBestIdentifier(ITopic t, boolean withPrefix, String bestIdentifier) {
if (bestIdentifiers == null) {
bestIdentifiers = HashUtil.getHashMap();
}
bestIdentifiers.put(new BestIdentifierKey(t, withPrefix), bestIdentifier);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheBestLabel(ITopic t, ITopic theme, boolean strict, String bestLabel) {\r\n\t\tif (bestLabels == null) {\r\n\t\t\tbestLabels = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tbestLabels.put(generateKey(t, theme, strict), bestLabel);\r\n\t}",
"public void cacheBestLabel(ITopic t, String bestLabel) {\r\n\t\t... | [
"0.6371247",
"0.61499834",
"0.5612773",
"0.56104404",
"0.4869256",
"0.47391406",
"0.4710765",
"0.46879953",
"0.46620047",
"0.4654545",
"0.4644338",
"0.4592805",
"0.45853913",
"0.4555938",
"0.45556217",
"0.45311067",
"0.44957173",
"0.44716176",
"0.44288975",
"0.44256142",
"0.4... | 0.4866409 | 5 |
Returns the best label for the given topic | public String getBestLabel(ITopic t) {
if (bestLabels == null) {
return null;
}
return bestLabels.get(new BestLabelKey(t));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBestLabel(ITopic t, ITopic theme, boolean strict) {\r\n\t\tif (bestLabels == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn bestLabels.get(new BestLabelKey(t, theme, strict));\r\n\t}",
"public Topic retrieveTopic(String topic) //from hashmap\r\n\t{\r\n\t\treturn topics.get(topic);\r\n\t}",... | [
"0.6232152",
"0.5793948",
"0.57249415",
"0.5597975",
"0.55733854",
"0.55507785",
"0.5526862",
"0.5507262",
"0.5490682",
"0.547366",
"0.54654795",
"0.5435085",
"0.5419911",
"0.5409552",
"0.5409552",
"0.53892",
"0.53892",
"0.53892",
"0.53707814",
"0.5366718",
"0.53646076",
"0... | 0.6403666 | 0 |
Cache the best label of the given topic to the internal store. | public void cacheBestLabel(ITopic t, String bestLabel) {
if (bestLabels == null) {
bestLabels = HashUtil.getHashMap();
}
bestLabels.put(generateKey(t, null, false), bestLabel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheBestLabel(ITopic t, ITopic theme, boolean strict, String bestLabel) {\r\n\t\tif (bestLabels == null) {\r\n\t\t\tbestLabels = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tbestLabels.put(generateKey(t, theme, strict), bestLabel);\r\n\t}",
"private BestLabelKey generateKey(ITopic topic, ITopic theme, boo... | [
"0.63708895",
"0.5611884",
"0.5611592",
"0.48706734",
"0.48647994",
"0.4738496",
"0.4710364",
"0.46875778",
"0.4663423",
"0.46552837",
"0.46455267",
"0.45921776",
"0.45858976",
"0.4556343",
"0.45546812",
"0.45321593",
"0.44960797",
"0.44727594",
"0.44287413",
"0.44249848",
"0... | 0.61489874 | 1 |
Returns the best label for the given topic | public String getBestLabel(ITopic t, ITopic theme, boolean strict) {
if (bestLabels == null) {
return null;
}
return bestLabels.get(new BestLabelKey(t, theme, strict));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBestLabel(ITopic t) {\r\n\t\tif (bestLabels == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn bestLabels.get(new BestLabelKey(t));\r\n\t}",
"public Topic retrieveTopic(String topic) //from hashmap\r\n\t{\r\n\t\treturn topics.get(topic);\r\n\t}",
"public int classify(String doc){\n\t\tint... | [
"0.6403666",
"0.5793948",
"0.57249415",
"0.5597975",
"0.55733854",
"0.55507785",
"0.5526862",
"0.5507262",
"0.5490682",
"0.547366",
"0.54654795",
"0.5435085",
"0.5419911",
"0.5409552",
"0.5409552",
"0.53892",
"0.53892",
"0.53892",
"0.53707814",
"0.5366718",
"0.53646076",
"0... | 0.6232152 | 1 |
Cache the best label of the given topic to the internal store. | public void cacheBestLabel(ITopic t, ITopic theme, boolean strict, String bestLabel) {
if (bestLabels == null) {
bestLabels = HashUtil.getHashMap();
}
bestLabels.put(generateKey(t, theme, strict), bestLabel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheBestLabel(ITopic t, String bestLabel) {\r\n\t\tif (bestLabels == null) {\r\n\t\t\tbestLabels = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tbestLabels.put(generateKey(t, null, false), bestLabel);\r\n\t}",
"private BestLabelKey generateKey(ITopic topic, ITopic theme, boolean strict) {\r\n\t\tif (bestLa... | [
"0.61499834",
"0.5612773",
"0.56104404",
"0.4869256",
"0.4866409",
"0.47391406",
"0.4710765",
"0.46879953",
"0.46620047",
"0.4654545",
"0.4644338",
"0.4592805",
"0.45853913",
"0.4555938",
"0.45556217",
"0.45311067",
"0.44957173",
"0.44716176",
"0.44288975",
"0.44256142",
"0.4... | 0.6371247 | 0 |
Generates a key for the given topic and theme | private BestLabelKey generateKey(ITopic topic, ITopic theme, boolean strict) {
if (bestLabelCacheKeys == null) {
bestLabelCacheKeys = HashUtil.getHashMap();
}
Set<BestLabelKey> set = bestLabelCacheKeys.get(topic);
if (set == null) {
set = HashUtil.getHashSet();
bestLabelCacheKeys.put(topic, set)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createTopic(String topic) {\n\n\t}",
"private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}",
"public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n ... | [
"0.558261",
"0.5573429",
"0.5538012",
"0.55355066",
"0.54694027",
"0.5325949",
"0.5243391",
"0.5228424",
"0.52173895",
"0.52090025",
"0.52057415",
"0.519708",
"0.51793665",
"0.51484114",
"0.5090061",
"0.5089838",
"0.5067888",
"0.5045873",
"0.5023866",
"0.5007574",
"0.5007574"... | 0.695941 | 0 |
Removing all bestlabels for the given topic and all themes | private void removeBestLabels(ITopic topic, ITopic... themes) {
if (bestLabelCacheKeys == null || !bestLabelCacheKeys.containsKey(topic) || bestLabels == null) {
return;
}
Set<BestLabelKey> keys = bestLabelCacheKeys.get(topic);
/*
* remove non-theme best label
*/
BestLabelKey key = new BestLa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void removeBestIdentifiers(ITopic topic) {\r\n\t\tif (bestIdentifiers == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tbestIdentifiers.remove(new BestIdentifierKey(topic, false));\r\n\t\tbestIdentifiers.remove(new BestIdentifierKey(topic, true));\r\n\t}",
"public void clearLabelRecs()\n {\n multiLab... | [
"0.60022783",
"0.5638728",
"0.5382995",
"0.53285104",
"0.52969426",
"0.5275913",
"0.5272966",
"0.5234318",
"0.5225335",
"0.51888305",
"0.5183003",
"0.5183003",
"0.51289225",
"0.50696486",
"0.50634664",
"0.5061523",
"0.5034318",
"0.50156134",
"0.50024605",
"0.49958405",
"0.498... | 0.82077116 | 0 |
Removing all bestidentifiers of the given topic | private void removeBestIdentifiers(ITopic topic) {
if (bestIdentifiers == null) {
return;
}
bestIdentifiers.remove(new BestIdentifierKey(topic, false));
bestIdentifiers.remove(new BestIdentifierKey(topic, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteTopic(int topicId);",
"private final void removeTopicItemFromCache(ITopic topic, IConstruct notifier) {\r\n\t\t/*\r\n\t\t * clear subject-identifiers\r\n\t\t */\r\n\t\tif (topicSubjectIdentifiers != null && topicSubjectIdentifiers.containsKey(topic)) {\r\n\t\t\ttopicSubjectIdentifiers.remove(to... | [
"0.57971364",
"0.5740627",
"0.5554402",
"0.5553245",
"0.5452262",
"0.5310144",
"0.52437025",
"0.52406275",
"0.523973",
"0.5210687",
"0.5167762",
"0.51674914",
"0.51647735",
"0.5136813",
"0.51360863",
"0.5112718",
"0.5112513",
"0.50785923",
"0.50720024",
"0.50720024",
"0.50618... | 0.84156555 | 0 |
Internal method to remove all topic dependent entries from internal caches. | private final void removeTopicItemFromCache(ITopic topic, IConstruct notifier) {
/*
* clear subject-identifiers
*/
if (topicSubjectIdentifiers != null && topicSubjectIdentifiers.containsKey(topic)) {
topicSubjectIdentifiers.remove(topic);
}
if (subjectIdentifiers != null) {
for (Entry<ILocat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cleanup() {\n\t\tTreeSet<CacheEntry> entries = new TreeSet<CacheEntry>(map.values());\n\t\tint i = region.getItemsToEvict();\n\t\tIterator<CacheEntry> it = entries.iterator();\n\t\twhile (it.hasNext() && i > 0) {\n\t\t\tremoveEntry(it.next());\n\t\t\ti--;\n\t\t}\n\t}",
"@Override\n public void cl... | [
"0.6887503",
"0.6748399",
"0.6414874",
"0.64106333",
"0.6221254",
"0.6218227",
"0.616219",
"0.6127244",
"0.61074036",
"0.61030895",
"0.6078879",
"0.6051978",
"0.5985763",
"0.5982051",
"0.595909",
"0.59566367",
"0.595363",
"0.5918936",
"0.59165835",
"0.5909825",
"0.59090245",
... | 0.6597373 | 2 |
Remove all relevant cache entries for the given construct | private final void removeConstructItemFromCache(IConstruct construct, IConstruct notifier) {
/*
* clear item-identifiers
*/
if (constructItemIdentifiers != null && constructItemIdentifiers.containsKey(construct)) {
constructItemIdentifiers.remove(construct);
}
if (itemIdentifiers != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cleanup() {\n\t\tTreeSet<CacheEntry> entries = new TreeSet<CacheEntry>(map.values());\n\t\tint i = region.getItemsToEvict();\n\t\tIterator<CacheEntry> it = entries.iterator();\n\t\twhile (it.hasNext() && i > 0) {\n\t\t\tremoveEntry(it.next());\n\t\t\ti--;\n\t\t}\n\t}",
"@Override\n public void cl... | [
"0.6714461",
"0.66618603",
"0.666091",
"0.66481054",
"0.6560348",
"0.65559316",
"0.65559316",
"0.6544322",
"0.6458892",
"0.6405973",
"0.63993263",
"0.63403136",
"0.6336925",
"0.6311737",
"0.6276377",
"0.62657577",
"0.6258369",
"0.62398666",
"0.6231388",
"0.62241685",
"0.61180... | 0.71840036 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) throws SQLException {
Scanner scan=new Scanner(System.in);
int choice;
BookStoreSystemManager obj=new BookStoreSystemManager();
while(true){
try{
do{
System.out.println(" XYZ Book Store ");
System.out.println("------------------------");
System.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void init() throws SiDCException, Exception {
LogAction.getInstance().debug("Request:" + entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void check() throws SiDCException, Exception {
if (entity == null) {
throw new SiDCException(APIStatus.ILLEGAL_ARGUMENT, "illegal of request.");
}
if (StringUtils.isBlank(entity.getStatus())) {
throw new SiDCException(APIStatus.ILLEGAL_ARGUMENT, "illegal of status.");
}
if (StringUt... | {
"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 |
Send the lastTradeTime in millis as the first parameter to getTrades() | @Override
public Object[] getTradesParameters(Listing listing, final long lastTradeTime, long lastTradeId) {
return new Object[] { Long.valueOf(lastTradeId) };
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void recordLastTrade(QuoteAndSize lastTrade_, MarketDataSession marketDataSession_);",
"public Integer getTradeTime() {\n return tradeTime;\n }",
"public JSONArray lastTrades() throws Exception;",
"public void setTradeTime(Integer tradeTime) {\n this.tradeTime = tradeTime;\n }",
... | [
"0.6508709",
"0.63219225",
"0.62211597",
"0.58973527",
"0.58276546",
"0.5795941",
"0.57629395",
"0.5648414",
"0.55941033",
"0.546327",
"0.53774095",
"0.5373428",
"0.5347065",
"0.53377306",
"0.5333201",
"0.5306878",
"0.52554286",
"0.523868",
"0.5237402",
"0.52243894",
"0.52192... | 0.68054545 | 0 |
GETTING DATA FROM VIEWS NOTES To take in information from a View to a Controller, we can use a simple form defined with a post method in HTML. | @GetMapping("/join")
public String showJoinForm() {
return "join";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(\"/sendData\") // will wap to the incoming request address\n\tpublic String handelFormRequest(HttpServletRequest request, Model model) {\n\t\tString data = (String)request.getParameter(\"data\");\n\t\tmodel.addAttribute(\"testData\",data); // will be set in request attribute\n\t\tmodel.addAttribute... | [
"0.6135833",
"0.59933615",
"0.59140897",
"0.5892283",
"0.57205606",
"0.5680015",
"0.5630786",
"0.56161904",
"0.5564496",
"0.5439789",
"0.5433746",
"0.5402093",
"0.5387213",
"0.5365346",
"0.53612286",
"0.53504705",
"0.53471214",
"0.53464746",
"0.53416556",
"0.53268987",
"0.529... | 0.0 | -1 |
From here on in, it's an almost identical code path, so we won't be as exhaustive. | @SuppressWarnings("unchecked")
@Test
public void ordered_collection_with_service_lookup()
{
OrderedConfiguration configuration = mockOrderedConfiguration();
ServiceResources resources = mockServiceResources(tracker);
UpcaseService service = mockUpcaseService();
train_getServ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"public abstract void mo70713b();",
"protected boolean func_70814_o() { return true; }",
"public void smell() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"public void ... | [
"0.65014327",
"0.5985298",
"0.5926787",
"0.5779972",
"0.57789093",
"0.5698626",
"0.56682324",
"0.5639457",
"0.56137264",
"0.55989915",
"0.55984765",
"0.5597065",
"0.5593647",
"0.5588308",
"0.55779266",
"0.5541921",
"0.55282444",
"0.5507072",
"0.5490485",
"0.5484399",
"0.54745... | 0.0 | -1 |
Toast.makeText(SearchResultActivity.this, "Clicked: " + position, Toast.LENGTH_SHORT).show(); | @Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent = new Intent(SearchResultActivity.this, UrbanWordActivity.class);
intent.putExtra("position", position);
startActivity(intent);
} | {
"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(context, \"You Clicked \" + result[position], Toast... | [
"0.8231614",
"0.7999066",
"0.7609874",
"0.74891305",
"0.74293846",
"0.742841",
"0.7398322",
"0.7125816",
"0.70376843",
"0.701471",
"0.69631827",
"0.6950406",
"0.6936869",
"0.6914783",
"0.6909206",
"0.6872241",
"0.68613935",
"0.6839703",
"0.68253696",
"0.68205315",
"0.6800214"... | 0.71668595 | 7 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_search_result, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79052806",
"0.7806316",
"0.7767438",
"0.772778",
"0.76324606",
"0.7622031",
"0.758556",
"0.7531728",
"0.7489057",
"0.74576724",
"0.74576724",
"0.743964",
"0.7422121",
"0.74037784",
"0.73926556",
"0.7387903",
"0.73803806",
"0.73715395",
"0.7362778",
"0.7357048",
"0.7346653"... | 0.0 | -1 |
Created by Guillaume on 14/05/2017. | public interface UltraSoundInterface {
interface UltraSoundInterfaceFactory {
UltraSoundInterface create(DetectionModuleConfiguration.GPioPair pair);
}
void init();
long getMeasure();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"public final void mo51373a() {\n }",
"@Override\... | [
"0.58912235",
"0.58199793",
"0.5787325",
"0.57008725",
"0.5626027",
"0.5598755",
"0.55896485",
"0.55896485",
"0.5578516",
"0.55377233",
"0.5536993",
"0.55345356",
"0.5533896",
"0.5509825",
"0.55076957",
"0.5482256",
"0.54775274",
"0.5474512",
"0.5468811",
"0.5456893",
"0.5456... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getType() {
return "column";
} | {
"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 |
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getResolverConfig() != null)
sb.append("ResolverConfig: ").append(getResolverConfig());
sb.append("}");
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() { return stringify(this, true); }",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t... | [
"0.80981666",
"0.8073201",
"0.8046738",
"0.8046738",
"0.8023337",
"0.7973196",
"0.7937623",
"0.79282993",
"0.790899",
"0.7894078",
"0.77834874",
"0.77818394",
"0.776735",
"0.77665883",
"0.77665883",
"0.77665883",
"0.77554446",
"0.7727782",
"0.7721274",
"0.76733345",
"0.767333... | 0.0 | -1 |
on click updates hero's skill level | public void clickUpgradeButton(View view){
if (checkBox.isChecked()){
textView.setText(AUTOUPGR_WORN);
}else {
textView.setText(superHero.upgradeLevel());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void useSkill() {\n\t\tthis.defense+=20;\r\n\t\tthis.maxHp+=(this.maxHp/2);\r\n\t\tthis.hp+=(this.hp/2);\r\n\t\tthis.skillActive = true;\r\n\t\tthis.skillLast = 2;\r\n\t}",
"void updateSkill(Skill skill);",
"void changeSkill(Long pokemonId, int newSkill);",
"public void skillControl() {... | [
"0.6981101",
"0.68150634",
"0.67483556",
"0.67391634",
"0.6580669",
"0.6471599",
"0.6440977",
"0.6400394",
"0.63408583",
"0.626114",
"0.6259725",
"0.6258899",
"0.62546766",
"0.6206379",
"0.6166884",
"0.61637866",
"0.6150313",
"0.6135738",
"0.6060137",
"0.6045363",
"0.6026277"... | 0.0 | -1 |
on click replenishes hero's account | public void clickReplenishButton(View view){
if (TextUtils.isEmpty(editTextNumber.getText())){
textView.setText(PUT_MONEY);
}else {
superHero.setAccount(Double.parseDouble(editTextNumber.getText().toString()));
editTextNumber.setText(null);
if (check... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View view) {\n regUser();\n }",
"public void onClickcreateUserSignup(View view){\n\n String newName = ((EditText)findViewById(R.id.createUserUsername)).getText().toString();\n if(!newName.equals(\"\")) {\n Account.getIn... | [
"0.63728535",
"0.62859124",
"0.62485695",
"0.621092",
"0.61691546",
"0.6125188",
"0.61188155",
"0.610653",
"0.60950917",
"0.6091102",
"0.6042169",
"0.6040747",
"0.6039552",
"0.60053575",
"0.59936035",
"0.59929234",
"0.5988415",
"0.5987289",
"0.59785825",
"0.59782225",
"0.5953... | 0.5834357 | 32 |
TODO Autogenerated method stub | @Override
public String receita() {
return "Misturar os ingredientes; bater no liquidificador; colocar na máquina de waffle por 10m";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Created by hamargyuri on 2017. 05. 25.. | public interface RSSService {
//if only RSS feeds used the last-modified tag..
@HEAD
Call<Void> headFeed(@Url String url);
@GET
Call<RSSFeed> getFeed(@Url String url);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubli... | [
"0.5925986",
"0.5904391",
"0.57164246",
"0.56573915",
"0.564916",
"0.56253475",
"0.56253475",
"0.56201506",
"0.5556872",
"0.5552252",
"0.5545147",
"0.5543836",
"0.5510333",
"0.5503793",
"0.5503198",
"0.5462624",
"0.54561895",
"0.54561895",
"0.5440623",
"0.5429583",
"0.5419668... | 0.0 | -1 |
if only RSS feeds used the lastmodified tag.. | @HEAD
Call<Void> headFeed(@Url String url); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isRSS() { return _rss!=null; }",
"public DateAdp Modified_latest() {return modified_latest;}",
"public long getLastModified() { return _entry!=null? _entry.getLastModified() : 0; }",
"public long getLastModified()\r\n/* 283: */ {\r\n/* 284:424 */ return getFirstDate(\"Last-Modified\... | [
"0.6264385",
"0.6194263",
"0.6146791",
"0.6123148",
"0.60084337",
"0.59006965",
"0.5861854",
"0.5857903",
"0.58236855",
"0.5811374",
"0.580783",
"0.5780687",
"0.5769164",
"0.57461977",
"0.57390517",
"0.56880206",
"0.5681125",
"0.5663742",
"0.5649724",
"0.5632492",
"0.56284165... | 0.0 | -1 |
other methods / This method does a very simplistic name format validation. Minimum string length allowed: 3. Any other Unicode characters can be used and not only letters. | public static boolean isValidNameFormat( String source )
{
int minNameLength = 3;
return (source != null) && (source.length() >= minNameLength);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean nameIsValid(String name) {\n if (name.length() < 4 || name.length() > 11)\n return false;\n\n for (int i = 0; i < name.length(); i++) {\n int charIndex = name.charAt(i);\n\n // Each character can only be a letter or number\n if (charI... | [
"0.74302065",
"0.71518373",
"0.71082586",
"0.7021169",
"0.699191",
"0.694056",
"0.68629724",
"0.6851661",
"0.6847644",
"0.6811014",
"0.6708071",
"0.6705828",
"0.66894984",
"0.66571957",
"0.6560012",
"0.65362453",
"0.6520814",
"0.6503443",
"0.6500104",
"0.6490077",
"0.6484548"... | 0.7548446 | 0 |
/ This method does a very simplistic email format validation. | public static boolean isValidEmailFormat( String source )
{
int minEmailLength = 5;
return (source != null)
&& (source.length() >= minEmailLength)
&& (source.indexOf('@') == source.lastIndexOf('@'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email... | [
"0.7804164",
"0.762544",
"0.7455966",
"0.73705405",
"0.72326523",
"0.72150475",
"0.72150475",
"0.72150475",
"0.72150475",
"0.718405",
"0.716938",
"0.71654385",
"0.71539164",
"0.712632",
"0.7109706",
"0.70658505",
"0.70513695",
"0.7039213",
"0.7039148",
"0.703167",
"0.70079195... | 0.7192799 | 9 |
Default and only constructor. | public ShortestPathStateSpaceValidator(StateValidator validator) {
super();
if (validator==null) {
throw new IllegalArgumentException();
}
this.validator = validator;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"defaultConstructor(){}",
"void DefaultConstructor(){}",
"private Instantiation(){}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public Constructor(){\n\t\t\n\t}",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
... | [
"0.857597",
"0.83219886",
"0.778229",
"0.7758212",
"0.76379573",
"0.75649303",
"0.75144607",
"0.7385315",
"0.73831147",
"0.7342218",
"0.72236043",
"0.7168373",
"0.71640134",
"0.71438",
"0.71423006",
"0.70761275",
"0.7031707",
"0.7013034",
"0.7003783",
"0.6975782",
"0.69575983... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_tree_records, container, false);
Firebase rootRef = new Firebase("https://smartstreetadminapp2.firebaseio.com/");
... | {
"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 |
/ / / / / / / / / / | public ClientParamsStack(ClientParamsStack stack) {
/* 114 */ this(stack.getApplicationParams(), stack.getClientParams(), stack.getRequestParams(), stack.getOverrideParams());
/* */ } | {
"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;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50... | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.491564... | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / / / / | public ClientParamsStack(ClientParamsStack stack, HttpParams aparams, HttpParams cparams, HttpParams rparams, HttpParams oparams) {
/* 137 */ this((aparams != null) ? aparams : stack.getApplicationParams(), (cparams != null) ? cparams : stack.getClientParams(), (rparams != null) ? rparams : stack.getRequestParams()... | {
"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;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"static int getNumPatterns() { return 64; }",
"public Integer getWidth(){return t... | [
"0.5252089",
"0.5162638",
"0.5113111",
"0.51103437",
"0.5105258",
"0.5044678",
"0.5012341",
"0.49912453",
"0.4975886",
"0.4955009",
"0.49433956",
"0.49407932",
"0.4936583",
"0.4928883",
"0.49102026",
"0.4891688",
"0.4886558",
"0.48833638",
"0.48822355",
"0.4878658",
"0.487677... | 0.0 | -1 |
/ / / / / / / / / / / | public final HttpParams getApplicationParams() {
/* 150 */ return this.applicationParams;
/* */ } | {
"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;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"double passer();",
"int getWidth() {return width;}",
"public void zeichneQuadra... | [
"0.5540745",
"0.5444497",
"0.5205538",
"0.5182055",
"0.5094161",
"0.50587463",
"0.5053648",
"0.50452423",
"0.50258267",
"0.50122976",
"0.5012191",
"0.50119436",
"0.50044477",
"0.49989554",
"0.49980396",
"0.49847832",
"0.49795863",
"0.49785143",
"0.4966902",
"0.49588826",
"0.4... | 0.0 | -1 |
/ / / / / / / | public final HttpParams getClientParams() {
/* 159 */ return this.clientParams;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void b... | [
"0.54567957",
"0.53680295",
"0.53644985",
"0.52577376",
"0.52142847",
"0.51725817",
"0.514088",
"0.50868535",
"0.5072305",
"0.504888",
"0.502662",
"0.50005764",
"0.49740013",
"0.4944243",
"0.4941118",
"0.4937142",
"0.49095523",
"0.48940238",
"0.48719338",
"0.48613623",
"0.486... | 0.0 | -1 |
/ / / / / / / | public final HttpParams getRequestParams() {
/* 168 */ return this.requestParams;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void b... | [
"0.54567957",
"0.53680295",
"0.53644985",
"0.52577376",
"0.52142847",
"0.51725817",
"0.514088",
"0.50868535",
"0.5072305",
"0.504888",
"0.502662",
"0.50005764",
"0.49740013",
"0.4944243",
"0.4941118",
"0.4937142",
"0.49095523",
"0.48940238",
"0.48719338",
"0.48613623",
"0.486... | 0.0 | -1 |
/ / / / / / / | public final HttpParams getOverrideParams() {
/* 177 */ return this.overrideParams;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void b... | [
"0.54567957",
"0.53680295",
"0.53644985",
"0.52577376",
"0.52142847",
"0.51725817",
"0.514088",
"0.50868535",
"0.5072305",
"0.504888",
"0.502662",
"0.50005764",
"0.49740013",
"0.4944243",
"0.4941118",
"0.4937142",
"0.49095523",
"0.48940238",
"0.48719338",
"0.48613623",
"0.486... | 0.0 | -1 |
/ / / / / / / / / / / / / | public Object getParameter(String name) {
/* 192 */ Args.notNull(name, "Parameter name");
/* */
/* 194 */ Object result = null;
/* */
/* 196 */ if (this.overrideParams != null) {
/* 197 */ result = this.overrideParams.getParameter(name);
/* */ }
/* 199 */ if (result == nu... | {
"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;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"public Integer getWidth()... | [
"0.55104524",
"0.54136074",
"0.51382613",
"0.511921",
"0.5069645",
"0.50632066",
"0.5061232",
"0.50567037",
"0.50560975",
"0.50190926",
"0.50086707",
"0.50070775",
"0.49875844",
"0.4968691",
"0.49646097",
"0.4947161",
"0.4947018",
"0.49441117",
"0.49407196",
"0.4928466",
"0.4... | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / | public HttpParams setParameter(String name, Object value) throws UnsupportedOperationException {
/* 228 */ throw new UnsupportedOperationException("Setting parameters in a stack is not supported.");
/* */ } | {
"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;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"static int getNumPatterns() { r... | [
"0.53632194",
"0.5267668",
"0.5102956",
"0.5090099",
"0.50580454",
"0.5053091",
"0.50437534",
"0.50122213",
"0.49831557",
"0.4971345",
"0.49650738",
"0.49620116",
"0.49479946",
"0.49365285",
"0.4924433",
"0.49211192",
"0.49099046",
"0.49048215",
"0.49002576",
"0.4878354",
"0.... | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / | public boolean removeParameter(String name) {
/* 247 */ throw new UnsupportedOperationException("Removing parameters in a stack is not supported.");
/* */ } | {
"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;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"static int ... | [
"0.5397113",
"0.53011894",
"0.5098228",
"0.50863117",
"0.5063472",
"0.5054228",
"0.50342476",
"0.5017461",
"0.4998424",
"0.49947587",
"0.49830356",
"0.49792504",
"0.49692237",
"0.49518588",
"0.4929544",
"0.4919008",
"0.49048847",
"0.49048507",
"0.4904211",
"0.48935845",
"0.48... | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / / | public HttpParams copy() {
/* 268 */ return (HttpParams)this;
/* */ } | {
"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;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"static int getNumPatterns() { return 64; }",
"public Integer getWidth(){return t... | [
"0.5325424",
"0.5231534",
"0.51073265",
"0.50986385",
"0.5074471",
"0.5055148",
"0.503542",
"0.5007458",
"0.49692437",
"0.49604136",
"0.4952205",
"0.4945659",
"0.4941957",
"0.49405992",
"0.4935903",
"0.49022758",
"0.49018228",
"0.48986834",
"0.4895676",
"0.48776752",
"0.48724... | 0.0 | -1 |
Returns the value of the 'Start Solution' containment reference. If the meaning of the 'Start Solution' reference isn't clear, there really should be more of a description here... | SolutionRef getStartSolution(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getSolution() {\n\t\treturn solution;\n\t}",
"public Coordinate getStart( )\n\t{\n\t\treturn startLocation;\n\t}",
"public Node getStartNode() {\n return startNode;\n }",
"public String getSolution() {\n\t\treturn solution;\n\t}",
"public Node getStart(){\n return start;\n ... | [
"0.614596",
"0.59821534",
"0.5933691",
"0.5918878",
"0.58938235",
"0.5891781",
"0.5884946",
"0.5853181",
"0.5845945",
"0.5841703",
"0.5804709",
"0.5756043",
"0.5752185",
"0.5728635",
"0.57249004",
"0.5721095",
"0.57131934",
"0.57069916",
"0.5701879",
"0.56839776",
"0.56764156... | 0.74933726 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.