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 |
|---|---|---|---|---|---|---|
Nulls out current lease and decrements usage count. Caller must be synchronized on this lock token. | private void basicReleaseLock() {
if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {
logger.trace(LogMarker.DLS_VERBOSE, "[DLockToken.basicReleaseLock] releasing ownership: {}",
this);
}
leaseId = -1;
lesseeThread = null;
leaseExpireTime = -1;
thread = null;
recursion = 0;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void deleteIfZeroRefCount() {\n }",
"void clearSoftLock(SoftLock softLock);",
"@Override\n\tprotected void unLockNbr() {\n\t\t\n\t}",
"void dropLease(Lease lease);",
"public void reset(){\n\t\topen[0]=false;\n\t\topen[1]=false;\n\t\topen[2]=false;\n\t\tcount = 0;\n\t\t//System.out.println(\... | [
"0.60979635",
"0.5983042",
"0.5891128",
"0.5889282",
"0.5750956",
"0.5721052",
"0.5678564",
"0.5635924",
"0.56237936",
"0.56201905",
"0.5612858",
"0.5571738",
"0.55016756",
"0.5475842",
"0.5447973",
"0.54453653",
"0.5414327",
"0.5389317",
"0.5387666",
"0.5363137",
"0.5354018"... | 0.7496871 | 0 |
Private implementation methods Returns true if lease is held using specified lease id. Caller must synchronize on this lock token. | private boolean isLeaseHeld(int memberLeaseId) {
return memberLeaseId == leaseId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized boolean isLeaseHeld() {\n return leaseId > -1;\n }",
"public abstract boolean isLocked(String oid);",
"public abstract boolean isValidLock(String oid, String lockKey);",
"synchronized boolean releaseLock(int leaseIdToRelease, RemoteThread remoteThread) {\n return releaseLock(leaseIdToRele... | [
"0.81378365",
"0.676259",
"0.6628485",
"0.6534011",
"0.6526231",
"0.6515673",
"0.6436301",
"0.6387551",
"0.62398654",
"0.6216984",
"0.6173431",
"0.6091202",
"0.60610104",
"0.60610104",
"0.60116744",
"0.60053957",
"0.596264",
"0.5921742",
"0.5887352",
"0.5859261",
"0.57975",
... | 0.77633893 | 1 |
Increments or decrements usage count by the specified amount. Caller must synchronize on this lock token. | private void incUsage(int amount) {
if (amount < 0 && !destroyed) {
Assert.assertTrue(usageCount - amount >= 0,
amount + " cannot be subtracted from usageCount " + usageCount);
}
usageCount += amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double Increase(long amount) \n {\n lastAmount = amount;\n return count += amount;\n }",
"public void incrementAmount() { amount++; }",
"public int increase(int amount)\n {\n this.setCount(this.getCount() + amount);\n return this.getCount();\n }",
"public void incValue(fina... | [
"0.70290303",
"0.6743175",
"0.6686475",
"0.6318771",
"0.63063467",
"0.6127078",
"0.6122493",
"0.60921425",
"0.5994523",
"0.59609056",
"0.59281915",
"0.5905688",
"0.59052575",
"0.58673567",
"0.5801736",
"0.5763089",
"0.5761562",
"0.5751593",
"0.57494986",
"0.5732583",
"0.57033... | 0.75081205 | 0 |
Increments or decrements recursion by the specified amount. Caller must synchronize on this lock token. | private void incRecursion(int amount) {
if (amount < 0) {
Assert.assertTrue(recursion - amount >= 0,
amount + " cannot be subtracted from recursion " + recursion);
}
recursion += amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void incrementAmount() { amount++; }",
"public void refill(int amount) {\n myAmount = myAmount + amount;\n }",
"public double Increase(long amount) \n {\n lastAmount = amount;\n return count += amount;\n }",
"public int increase(int amount)\n {\n this.setCount(this.getCount() ... | [
"0.61748445",
"0.60674417",
"0.59953076",
"0.5893204",
"0.5813231",
"0.5775728",
"0.5610259",
"0.5600279",
"0.55735606",
"0.55636406",
"0.555185",
"0.5500365",
"0.5459324",
"0.539052",
"0.5353734",
"0.53320706",
"0.53318405",
"0.5324234",
"0.5304242",
"0.5291133",
"0.5275101"... | 0.7367465 | 0 |
Throws IllegalStateException if this lock token has been destroyed. Caller must synchronize on this lock token. | private void checkDestroyed() {
if (destroyed) {
IllegalStateException e = new IllegalStateException(
String.format("Attempting to use destroyed token: %s", this));
throw e;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void unlock() {\n }",
"public RangeReadWriteLock(RangeToken token) {\n this.token = token;\n }",
"private void releaseTokenState() {\n //checks if token is taken\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getContext()... | [
"0.6039644",
"0.600148",
"0.59977174",
"0.58346325",
"0.5810579",
"0.578593",
"0.5773564",
"0.5717393",
"0.57056445",
"0.5600221",
"0.55293185",
"0.5526899",
"0.55055785",
"0.540606",
"0.53988785",
"0.5398391",
"0.53931373",
"0.53920466",
"0.5339346",
"0.53356874",
"0.5308003... | 0.69938177 | 0 |
Record the token's owning thread as having lost its lease, so it can throw an exception later if it tries to unlock. A weak reference to the thread is used. Caller must synchronize on this lock token. | private void noteExpiredLease() {
if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {
logger.trace(LogMarker.DLS_VERBOSE, "[noteExpiredLease] {}", thread);
}
if (expiredLeases == null) {
expiredLeases = new WeakHashMap();
}
expiredLeases.put(thread, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n ... | [
"0.64826655",
"0.62220764",
"0.5861455",
"0.58472234",
"0.5815189",
"0.56862277",
"0.56060266",
"0.5514668",
"0.5496441",
"0.5492881",
"0.54374725",
"0.5432366",
"0.54074204",
"0.5401199",
"0.5368892",
"0.53646404",
"0.533394",
"0.5332283",
"0.5323682",
"0.53025764",
"0.52732... | 0.65839934 | 0 |
java.lang.Object methods Returns a string representation of this object. | @Override
public String toString() {
synchronized (this) {
return "DLockToken" + "@" + Integer.toHexString(hashCode()) + ", name: " + name
+ ", thread: <" + getThreadName() + ">" + ", recursion: " + recursion
+ ", leaseExpireTime: " + leaseExpireTime + ", leaseId: " + leaseId
+... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() { return stringify(this, true); }",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteA... | [
"0.83784693",
"0.80843514",
"0.80553865",
"0.8037671",
"0.8037671",
"0.8028117",
"0.79757047",
"0.7952061",
"0.7948919",
"0.7928946",
"0.7918121",
"0.7907245",
"0.78665274",
"0.78665274",
"0.78665274",
"0.7859269",
"0.7859269",
"0.7859269",
"0.7859269",
"0.7859269",
"0.785926... | 0.0 | -1 |
Constructor which takes the threads name | private HouseKeeper(String threadName) {
super(threadName);
setDaemon(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SimulatorThreadGroup(String name) {\n\t\tsuper(name);\n\t}",
"public NamedThreadFactory(String name)\n {\n this(name, null);\n }",
"public void setThreadName(String name) {\n threadName = name;\n }",
"public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n th... | [
"0.7278547",
"0.71983993",
"0.7178201",
"0.69424903",
"0.6898073",
"0.6894357",
"0.68900424",
"0.6840336",
"0.6637409",
"0.6586468",
"0.63789284",
"0.63656783",
"0.62765867",
"0.621744",
"0.6205911",
"0.6203984",
"0.61967516",
"0.6187944",
"0.6168249",
"0.6159077",
"0.6154169... | 0.61575156 | 20 |
private constructor prevents external instantiation | private GroupManager() {
queueManagers = new HashMap<Integer,QueueManager>();
queueManagerDeletionTimeout = -1;
housekeepingSleep = HOUSEKEEPING_SLEEP;
houseKeeper = new HouseKeeper("GroupManager_HouseKeeper");
houseKeeper.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"private Rekenhulp()\n\t{\n\t}",
"Reproducible newInstance();",
"private SystemInfo() {\r\n // forbid object construction \r\n }",
"private MApi() {}",
"private Utils()\n {\n /... | [
"0.786451",
"0.77703655",
"0.7599288",
"0.7586093",
"0.7583136",
"0.7560307",
"0.7523356",
"0.7516841",
"0.7463434",
"0.7422178",
"0.74157995",
"0.7383232",
"0.7356838",
"0.7321478",
"0.7308083",
"0.7308083",
"0.7287396",
"0.7281159",
"0.7243387",
"0.7218839",
"0.7213559",
... | 0.0 | -1 |
Returns the singleton instance | public static GroupManager getInstance() {
return theInstance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public stati... | [
"0.8795531",
"0.8726638",
"0.829773",
"0.8251552",
"0.82147837",
"0.8198578",
"0.8191231",
"0.8182484",
"0.8169251",
"0.8145029",
"0.812055",
"0.8120161",
"0.8099656",
"0.808931",
"0.80756366",
"0.80108607",
"0.7985633",
"0.7985024",
"0.79437065",
"0.7922833",
"0.7910187",
... | 0.0 | -1 |
Reinitializes the singleton. This should only be used for testing. | public static void reInitialize() {
Thread houseKeeperTemp = theInstance.houseKeeper;
theInstance.houseKeeper = null; // shuts down the housekeeper thread
houseKeeperTemp.interrupt();
theInstance = new GroupManager();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void reinit() {\n init();\n }",
"@VisibleForTesting\n static void resetInstance() {\n sInstance = null;\n }",
"protected void reInitialize() {\n resetCurrent();\n incrementIterCount();\n setFirst(true);\n recoverRunningVersion();\n }",
"pri... | [
"0.7667856",
"0.71595806",
"0.7155128",
"0.6851501",
"0.6824527",
"0.67613703",
"0.67247957",
"0.67142123",
"0.67002946",
"0.665137",
"0.656187",
"0.646195",
"0.6450347",
"0.6428058",
"0.63053167",
"0.6292842",
"0.61795884",
"0.61753106",
"0.61598325",
"0.61598325",
"0.613911... | 0.697541 | 3 |
Gets the queueManager for a group qualified by the groups magic number | public synchronized QueueManager getQueueManager(int magicNumber) {
QueueManager qM = queueManagers.get(magicNumber);
if( qM == null ) {
if( queueManagerDeletionTimeout < 0 ) {
qM = new QueueManager(magicNumber);
} else {
qM = new QueueManager(magicNumber, queueManagerDeletionTimeout);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ServiceQueue getManager(String route) {\n return route != null && registry.containsKey(route)? registry.get(route).getManager() : null;\n }",
"String getBaseQueueManagerName();",
"String getQueueManagerHost();",
"ZigBeeGroup getGroup(int groupId);",
"private Group getMibObjectGroup(String ... | [
"0.597792",
"0.5957144",
"0.5953811",
"0.5938936",
"0.56605893",
"0.5549062",
"0.55129933",
"0.5501207",
"0.54735506",
"0.5452449",
"0.5275309",
"0.52254456",
"0.5213132",
"0.5206025",
"0.52016795",
"0.5197092",
"0.5130151",
"0.5084397",
"0.5067644",
"0.5059772",
"0.50518876"... | 0.7323778 | 0 |
Performs the housekeeping. This includes calling the method houseKeepingAndTestForDelete of all connected QueueManagers and deleting them from the Map if the method returns true. | private synchronized void performHouseKeeping() {
Set<Map.Entry<Integer,QueueManager>> eS = queueManagers.entrySet();
for( Iterator<Map.Entry<Integer,QueueManager>> i = eS.iterator(); i.hasNext(); ) {
Map.Entry<Integer,QueueManager> qMME = i.next();
QueueManager qM = qMME.getValue();
if( qM.houseKeepi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void cleanup() {\n for (String key : cache.keySet()) {\n CacheObject co = cache.get(key).get();\n if (co.isExpired()) {\n synchronized (co) {\n if (co.isExpired()) {\n cache.remove(key);\n ... | [
"0.5849355",
"0.5640546",
"0.5620829",
"0.55741143",
"0.53854233",
"0.5380006",
"0.5316985",
"0.5296161",
"0.52877736",
"0.5275156",
"0.5252368",
"0.52011454",
"0.5195426",
"0.51677036",
"0.5147795",
"0.51405233",
"0.5135055",
"0.5124381",
"0.50971425",
"0.50816625",
"0.50516... | 0.82290787 | 0 |
Gets the number of QueueManagers in this GroupManager | public synchronized int getSize() {
return queueManagers.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumQueues() {\n return queues.size();\n }",
"public int getCount() {\n return queue.size();\n }",
"public int getJobsCount() {\n if (jobsBuilder_ == null) {\n return jobs_.size();\n } else {\n return jobsBuilder_.getCount();\n }\n }",
"p... | [
"0.78496015",
"0.6578555",
"0.65381753",
"0.6535338",
"0.6509808",
"0.6502881",
"0.6459322",
"0.6457528",
"0.6443167",
"0.64351994",
"0.64197946",
"0.6406368",
"0.6381157",
"0.6377258",
"0.63615143",
"0.6357738",
"0.6350779",
"0.6324072",
"0.63201886",
"0.62710387",
"0.624531... | 0.7941515 | 0 |
Sets the timeout parameters for creating the underlying queue managers | public void setQueueManagerTimeoutParameters( int queueManagerDeletionTimeout ) {
if( queueManagerDeletionTimeout < 0 ) {
throw new IllegalArgumentException("queueManagerDeletionTimeout needs to be a nonnegaive integer");
}
this.queueManagerDeletionTimeout = queueManagerDeletionTimeout;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void setDefaultEnqueueTimeout (long enqueueTimeout) throws IOException,IllegalArgumentException;",
"T setStartTimeout(Integer timeout);",
"private void setupTimeoutJob() {\n eventLoopGroup.scheduleAtFixedRate(() -> {\n\n /*\n * We cannot wait for the request infinite... | [
"0.6702695",
"0.645499",
"0.63546884",
"0.6233582",
"0.623055",
"0.6219744",
"0.6088229",
"0.6054797",
"0.6043396",
"0.5971095",
"0.5953512",
"0.59408385",
"0.58782196",
"0.5876484",
"0.58750385",
"0.5866021",
"0.5814336",
"0.5811061",
"0.5782863",
"0.57708514",
"0.5750907",
... | 0.6723985 | 0 |
Sets the sleep time of the housekeeping thread | void setHousekeepingSleep(int housekeepingSleep) {
if( housekeepingSleep <= 0 ) {
throw new IllegalArgumentException("housekeepingSleep must be positive");
}
this.housekeepingSleep = housekeepingSleep;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }",
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sle... | [
"0.7228027",
"0.7062409",
"0.6997777",
"0.6971619",
"0.69552535",
"0.69062006",
"0.68369603",
"0.6751906",
"0.67191106",
"0.6701545",
"0.6639518",
"0.6626236",
"0.66103107",
"0.65869063",
"0.65621376",
"0.65604144",
"0.65356106",
"0.6511619",
"0.64914453",
"0.64693975",
"0.64... | 0.66356546 | 11 |
BasicCounterTest testUmgebung = new BasicCounterTest(); testStandardKonstruktor(testUmgebung); testParameterKonstruktor(testUmgebung); testSetUndReset(testUmgebung); LimitedCounterTest testUmgebung = new LimitedCounterTest(); test_Standard_Konstruktor_MaximumIs_und_IsMaximumReached(testUmgebung); LimitedCounterTest.Tes... | public static void main(String[] args) {
WarningCounterTest wcounter = new WarningCounterTest();
wcounter.allgemeineTest();
//wcounter.maximumException();
wcounter.minimumException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countTestCases() {\n return 1;\n }",
"@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }",
"public void incrementerTest() {\n\t\tthis.nbTests++;\n\t}",
"@Test\n // begin method verifyInitialCount\n public void verifyInitialCount() {\n\n ... | [
"0.66184735",
"0.6522669",
"0.6463448",
"0.6459328",
"0.63753647",
"0.6303902",
"0.62707496",
"0.6260752",
"0.62487674",
"0.6223614",
"0.61954945",
"0.6191757",
"0.61691666",
"0.6164045",
"0.6156905",
"0.61549306",
"0.6144782",
"0.6123656",
"0.6108765",
"0.6054423",
"0.605343... | 0.6282996 | 6 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"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 |
Reading the file path and dynamic variable from from external .properties files | public static void read_Environment_Variable_for_Web() {
Properties prop = new Properties();
InputStream input = null;
try {
input = new FileInputStream("/Environment File/environmentVariableForWebProduction2.properties");
// load a properties file
prop.load(input);
// get the property value and p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.... | [
"0.74029416",
"0.7237309",
"0.7086318",
"0.69513535",
"0.6857871",
"0.67401934",
"0.67019135",
"0.65385276",
"0.6517577",
"0.6499336",
"0.645654",
"0.6443441",
"0.64137053",
"0.6405146",
"0.63734484",
"0.63569117",
"0.63500607",
"0.63430494",
"0.6326899",
"0.63219947",
"0.630... | 0.5650708 | 91 |
Creates the default instance used when the context classloader is unavailable | @Override
protected BeanUtilsBean initialValue() {
// 创建cglib代理
BeanUtilsBean beanUtilsBean = (BeanUtilsBean) _createProxy(BeanUtilsBean.class, new OptionalUnpacker());
// 注册Optional Converter
beanUtilsBean.getConvertUtils().register(new OptionalConverter(), Optio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract ApplicationLoader.Context context();",
"public DefaultLoaderDefinition() {\n\t\t// nothing to do\n\t}",
"@Deprecated\n\tprotected ContextLoader createContextLoader() {\n\t\treturn null;\n\t}",
"public static GenericBootstrap byDefaultProvider() {\n return new GenericBootstrapImpl();\n }",... | [
"0.63396144",
"0.62750256",
"0.6257112",
"0.62286013",
"0.616904",
"0.61085486",
"0.6093151",
"0.6084528",
"0.6084528",
"0.60786045",
"0.60192347",
"0.6012637",
"0.6011727",
"0.59993875",
"0.5976769",
"0.59533703",
"0.592516",
"0.59110034",
"0.58477956",
"0.5843762",
"0.58353... | 0.0 | -1 |
Construct the repository path, default getWorkingDirectory() is used. If the system property repo.path can be used to override the default. If repo.path starts with a '.' then the path is taken relative to the getWorkingDirectory(). | private String getRepositoryPath() {
if (repoPath != null) {
return repoPath;
}
final String pathProp = System.getProperty(SYSTEM_PATH_PROPERTY);
if (pathProp == null || pathProp.isEmpty()) {
repoPath = getWorkingDirectory();
} else if (pathProp.charAt(0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Path getRepositoryBaseDir();",
"String getRepositoryPath();",
"public Path getRemoteRepositoryBaseDir();",
"public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }",
"String getRepositoryPath(String name);",
"public Path getRepositoryGroupBaseDir();",
"public... | [
"0.7129819",
"0.71204215",
"0.6695524",
"0.6453243",
"0.6338001",
"0.6305066",
"0.62049735",
"0.5990505",
"0.5765737",
"0.57041085",
"0.5588092",
"0.5558552",
"0.55237615",
"0.5494331",
"0.54914975",
"0.54479736",
"0.5410738",
"0.54100555",
"0.53932345",
"0.53579867",
"0.5352... | 0.83066255 | 0 |
If the "file://" protocol is used, the path MUST be absolute. In all other cases the config file is used as a class resource. | private static InputStream getRepositoryConfigAsStream() throws RepositoryException {
String configPath = System.getProperty(SYSTEM_CONFIG_PROPERTY);
if (configPath == null || "".equals(configPath)) {
configPath = System.getProperty(SYSTEM_SERVLETCONFIG_PROPERTY);
}
if (con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static PathAnchor classpath() {\n return classpath(Config.class.getClassLoader());\n }",
"public File getConfigurationFile();",
"public URI getConfigurationFile() {\n return configurationFile;\n }",
"private void LoadConfigFromClasspath() throws IOException \n {\n ... | [
"0.6227165",
"0.606196",
"0.6042585",
"0.60347754",
"0.6025584",
"0.5832272",
"0.58306193",
"0.5788149",
"0.57748705",
"0.5772808",
"0.5762174",
"0.5723669",
"0.57158273",
"0.57062244",
"0.56995773",
"0.5696583",
"0.56594455",
"0.5645793",
"0.56341934",
"0.56054664",
"0.55918... | 0.0 | -1 |
Migration via the UpdaterEngine is enabled when the UpdaterEngine is on the classpath. Users must explicitly add the dependency to their project in order to use the old style updaters. | private void migrate(final Session jcrRootSession) throws RepositoryException {
try {
final Class<?> updaterEngineClass = Class.forName("org.hippoecm.repository.updater.UpdaterEngine");
final Method migrate = updaterEngineClass.getMethod("migrate", Session.class, boolean.class);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean upgrade() {\n\t\treturn true;\n\t}",
"@Override\n public void install() {\n Migrator.migrateIfConfigurationMissing();\n }",
"public abstract void upgrade();",
"protected abstract boolean isMigrationNecessary();",
"public interface ILocalUpdater {\r\n\r\n\t/**\r\n\t ... | [
"0.6187517",
"0.5942754",
"0.5711529",
"0.5564719",
"0.5544514",
"0.5397714",
"0.5380088",
"0.53551096",
"0.5319479",
"0.5278505",
"0.5263483",
"0.5257672",
"0.5213654",
"0.51956975",
"0.5194327",
"0.5181864",
"0.516199",
"0.51438737",
"0.5061719",
"0.49908078",
"0.49884015",... | 0.54183006 | 5 |
Creates new form Fenetre | public Fenetre() {
initComponents();
timerNR = new javax.swing.Timer(5000, new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
timerNRActionPerformed(evt);
}
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n... | [
"0.6239068",
"0.617645",
"0.6141873",
"0.61002475",
"0.6089537",
"0.60609674",
"0.6034243",
"0.600705",
"0.5983652",
"0.5979672",
"0.59692556",
"0.59351075",
"0.59184027",
"0.5889503",
"0.58815795",
"0.58661395",
"0.58649915",
"0.58597004",
"0.5851288",
"0.5846316",
"0.584372... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
bStart = new javax.swing.JButton();
bStop = new javax.swing.JButton();
bPanne = new javax.swing.JButton();
trafficLigtht = new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7322098",
"0.7292275",
"0.7292275",
"0.7292275",
"0.72872275",
"0.72507876",
"0.7214814",
"0.7209056",
"0.7197325",
"0.71918863",
"0.71856284",
"0.7160448",
"0.7148918",
"0.7094831",
"0.70820963",
"0.70585436",
"0.6988433",
"0.6978755",
"0.69569016",
"0.6955245",
"0.694635... | 0.0 | -1 |
listen for table selection to enable action buttons related to table | public void tableListener() {
resultsTable.getSelectionModel().selectedItemProperty().addListener((obs, oldSelection, newSelection) -> {
if (newSelection != null) {
delBtn.setDisable(false);
changeBtn.setDisable(false);
} else {
delBtn.setD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }",
"public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);",
"public void actionPerformed(ActionEvent evt)\r\n {\n int index = tabPane.getSele... | [
"0.7136637",
"0.70852107",
"0.70612586",
"0.6764849",
"0.6609645",
"0.6605409",
"0.65576684",
"0.6534551",
"0.65284234",
"0.65178806",
"0.645488",
"0.6429317",
"0.6424288",
"0.642388",
"0.63837343",
"0.63809985",
"0.6378086",
"0.6376973",
"0.63658816",
"0.63573056",
"0.634967... | 0.74099857 | 0 |
formatar data de entrada do carro | private String formatDate(Date date){
SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm", Locale.getDefault());
return format.format(date);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void formatarDadosEntidade(){\n\t\tcodigoMunicipioOrigem = Util.completarStringZeroEsquerda(codigoMunicipioOrigem, 10);\n\t\tcodigoClasseConsumo = Util.completarStringZeroEsquerda(codigoClasseConsumo, 2);\n\n\t}",
"public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tb... | [
"0.7552862",
"0.6848611",
"0.66466504",
"0.6469586",
"0.6400681",
"0.63739485",
"0.63643825",
"0.6363164",
"0.6334887",
"0.6258963",
"0.62218267",
"0.62023455",
"0.6180167",
"0.6123989",
"0.5988511",
"0.59793425",
"0.59764355",
"0.59622276",
"0.59555703",
"0.59438324",
"0.592... | 0.0 | -1 |
Dimension of this layer | public int getDimension() {
return dim;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Dimension getSize();",
"Dimension getSize();",
"Dimension getDimension();",
"public final int getDimension() {\r\n\t\treturn this.dimension;\r\n\t}",
"Dimension getDimensions();",
"public int getDimension() {\n\t\treturn dimension;\n\t}",
"public int getwDimension()\n {\n return wDimension;\n... | [
"0.76559293",
"0.76559293",
"0.76287985",
"0.7574108",
"0.7522939",
"0.74771905",
"0.74327624",
"0.74263114",
"0.7417805",
"0.7401437",
"0.7398034",
"0.73784",
"0.7345541",
"0.73365146",
"0.7302309",
"0.7301599",
"0.7276109",
"0.7272911",
"0.7272911",
"0.7259996",
"0.7254009"... | 0.7592395 | 3 |
Get feature weight vector. | public Matrix getWeight() {
return weights;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vec getRawWeight();",
"public double[] getVectorW() { \r\n return w;\r\n }",
"@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}",
"public Weight[] getWeights() {\n return weights;\n }",
"public float getWeight() {\n\t\t\treturn weight;\n\t\t}",... | [
"0.72806513",
"0.70547014",
"0.6737185",
"0.6695603",
"0.6675311",
"0.6671598",
"0.6669799",
"0.66539603",
"0.6627678",
"0.6614182",
"0.66134405",
"0.66090316",
"0.66090316",
"0.66075975",
"0.66075975",
"0.66072094",
"0.6598982",
"0.6598982",
"0.6592106",
"0.65715575",
"0.655... | 0.681414 | 2 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getCount() {
return list==null?0:list.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Object getItem(int arg0) {
return list.get(arg0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public long getItemId(int arg0) {
return arg0;
} | {
"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 |
Path / Suffix is obtained but not used ? | @Override
protected Response handleRequest(Request request) throws IOException {
String path = request.getParameter(PATH);
Resource res = request.getResource();
String type = res.getValueMap().get(TYPE, String.class);
Response answer;
if(COMPONENTS.equals(type)) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSuffix();",
"public void setPathSuffix(String pathSuffix);",
"public final String getSuffix() {\n/* 62 */ return \".jpg\";\n/* */ }",
"private String getOptimizedSuffix(final String baseName) {\n\t\tif (\"index\".equals(baseName) || \"login\".equals(baseName)) {\n\t\t\t// Use environment... | [
"0.70774585",
"0.6927566",
"0.6661884",
"0.6445916",
"0.6407241",
"0.6405005",
"0.6348093",
"0.6326716",
"0.6260356",
"0.62393075",
"0.62205654",
"0.6204486",
"0.6173583",
"0.61435986",
"0.6113855",
"0.6098163",
"0.6081541",
"0.60339075",
"0.6029357",
"0.6027356",
"0.60252655... | 0.0 | -1 |
String query = "select from per:Page where jcr:path like '/content/%/templates%' order by jcr:path"; | private Response findTemplates(Request request) throws IOException {
String query = "select * from per:Page where jcr:path like '/content/%/templates%'";
return findAndOutputToWriterAsJSON(request, query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<UserContentAccess> findContentAccessByExp(@Param(\"pathExp\") String pathExp);",
"public List<PageContent> getAllPageContent();",
"@Query(\"SELECT * FROM content.pages WHERE URL = :url ORDER BY slice\")\n public Result<Slice> getAllByUrl(@Param(\"url\") String url);",
"io.dstore.values.StringValue ge... | [
"0.5300624",
"0.5150873",
"0.5129296",
"0.50537795",
"0.4994224",
"0.496693",
"0.49505985",
"0.49359694",
"0.49295902",
"0.49234343",
"0.49015749",
"0.48823673",
"0.48809364",
"0.48767802",
"0.48684925",
"0.4864764",
"0.48573014",
"0.48539922",
"0.48537406",
"0.4835186",
"0.4... | 0.61577845 | 0 |
Intialize Map method used to intialize goodle mapv2 | private void intializeMap() {
if (googleMap == null) {
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
// getPlacesMarkers();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void createMap();",
"public Map() {\n\n\t\t}",
"protected WumpusMap() {\n\t\t\n\t}",
"protected MapImpl() {\n }",
"MAP createMAP();",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"public Map() {\n\t\t//intially empty\n\t}",
"p... | [
"0.7723638",
"0.7541044",
"0.73974836",
"0.73753124",
"0.7358014",
"0.7318059",
"0.7274959",
"0.72072196",
"0.71638197",
"0.7049401",
"0.69937116",
"0.6982551",
"0.6943966",
"0.69172573",
"0.6895789",
"0.68929666",
"0.68541956",
"0.6801889",
"0.67924577",
"0.6780553",
"0.6770... | 0.0 | -1 |
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device. This method will only be trigge... | @Override
public void onMapReady(GoogleMap map) {
googleMap = map;
map.setMapType(GoogleMap.MAP_TYPE_NORMAL);
// map.setTrafficEnabled(true);
map.setIndoorEnabled(true);
map.setBuildingsEnabled(true);
map.getUiSettings().setZoomControlsEnabled(true);
if (Con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ... | [
"0.8153167",
"0.8083888",
"0.8079157",
"0.8077223",
"0.8068818",
"0.8056179",
"0.8047941",
"0.80289227",
"0.8014457",
"0.8002623",
"0.7999103",
"0.79780084",
"0.79450685",
"0.79450685",
"0.79450685",
"0.79450685",
"0.79441196",
"0.7926604",
"0.79259706",
"0.79099816",
"0.7908... | 0.0 | -1 |
create marker method used to put marker specific marker on specific latitutde and longtitude | private Marker createMarker(final int a, final String id1, String lat, String lng, final String title) {
mMarkerMap.put(marker, a);
mMarkerMap1.put(marker, title);
Log.e("Data", "" + lat + "-->>>>" + lng + "--->>" + title);
if (a == 999999999) {
marker = googleMap.addMark... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat.... | [
"0.76707625",
"0.74684006",
"0.7443391",
"0.720181",
"0.7198489",
"0.7097402",
"0.7042544",
"0.6973293",
"0.6936854",
"0.6932623",
"0.69065",
"0.6897515",
"0.67677325",
"0.6763792",
"0.67097574",
"0.6689879",
"0.6649829",
"0.6634955",
"0.6624088",
"0.6597813",
"0.6567693",
... | 0.68976235 | 11 |
/ Create on 20180605 Convert DateTime To ReportDay | public static int ConvertDateTimeToReportDay()
{
// Create an instance of SimpleDateFormat used for formatting
// the string representation of date (month/day/year)
DateFormat df = new SimpleDateFormat("yyyyMMdd");
// Get the date today using Calendar object.
Date today = Ca... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int SubDateTimeAndConvertToReportDay(int amount, int calendarType)\n {\n // Create an instance of SimpleDateFormat used for formatting\n // the string representation of date (month/day/year)\n DateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\n // Get the date today... | [
"0.5947346",
"0.59090614",
"0.55606496",
"0.5520252",
"0.54459906",
"0.5429789",
"0.53502697",
"0.5342294",
"0.52956605",
"0.52637935",
"0.5224585",
"0.521933",
"0.5211332",
"0.51989204",
"0.5182549",
"0.51740474",
"0.5169672",
"0.5164552",
"0.5150987",
"0.512798",
"0.5126495... | 0.7583263 | 0 |
/ Create on 20180606 Sub DateTime And Convert To ReportDay | public static int SubDateTimeAndConvertToReportDay(int amount, int calendarType)
{
// Create an instance of SimpleDateFormat used for formatting
// the string representation of date (month/day/year)
DateFormat df = new SimpleDateFormat("yyyyMMdd");
// Get the date today using Calend... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int ConvertDateTimeToReportDay()\n {\n // Create an instance of SimpleDateFormat used for formatting\n // the string representation of date (month/day/year)\n DateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\n // Get the date today using Calendar object.\n D... | [
"0.6970599",
"0.5568392",
"0.5543514",
"0.5519113",
"0.55149204",
"0.5396018",
"0.5377376",
"0.53736746",
"0.53550196",
"0.5289886",
"0.52559465",
"0.5232461",
"0.52263397",
"0.5210408",
"0.52103525",
"0.52020925",
"0.5201296",
"0.5197524",
"0.5185174",
"0.51616865",
"0.51537... | 0.5970195 | 1 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
} | {
"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 |
Instantiates a new Fight controller. | public FightController(Character character, Room room) {
super(character, room);
cardRewardGiven = false;
relicRewardGiven = false;
goldRewardGiven = false;
potRewardGiven = false;
isGameOver = false;
turn = 0;
enemies = ((EnemyRoom)room).getEnemies();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WfController()\n {\n }",
"public TaxiInformationController() {\n }",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public FilmOverviewController() {\n }",
"private Fight() { }",
"public Controller() {\n\t\tthis(null);\n\t}",
"public PlantillaController() ... | [
"0.6764503",
"0.61942214",
"0.61187357",
"0.60952705",
"0.6071568",
"0.5989046",
"0.5943701",
"0.59170836",
"0.5833786",
"0.5830933",
"0.5826755",
"0.57942456",
"0.57883036",
"0.5750513",
"0.5723633",
"0.56995606",
"0.5690982",
"0.56859887",
"0.5681847",
"0.56383866",
"0.5633... | 0.56062275 | 25 |
Start. it calls the correct method of effect handler to apply the effects that are active at the begginning of the fight. | private void start(){
character.fillEnergy();
piles.getDrawPile().shuffle();
for(int i = 1 ; i <= 5 ; i++ ){
piles.drawCard();
}
effectHandler.startFight();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public default void doEffectStart(SpellData data, World world, Side onSide){ }",
"@Override\n public void onStart() {\n game = bwClient.getGame();\n self = game.self();\n intel = IntelligenceAgent.getInstance(game);\n combat = CombatAgent.getInstance(game);\n \n comba... | [
"0.6716306",
"0.6464227",
"0.62856203",
"0.626967",
"0.62649894",
"0.6157982",
"0.6099805",
"0.6065073",
"0.60529256",
"0.6012035",
"0.6005461",
"0.5987175",
"0.59812313",
"0.5937912",
"0.5926231",
"0.59221864",
"0.5909681",
"0.58930826",
"0.58892286",
"0.5832409",
"0.583067"... | 0.63612175 | 2 |
Play card. It returns true if given card can be played to given target enemy. returns false otherwise. | public boolean playCard(Card card, Enemy enemy){
if( isGameOver() )return false;
if( card.isHasTarget() && !enemyController.hasEnemy(enemy) )return false;
System.out.println("IN PLAYCARD METHOD");
boolean b = effectHandler.playCard( card , enemy);
System.out.println( "HAND CARDS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean playCard(Card card){\n boolean b = effectHandler.playCard( card , null);\n return b;\n }",
"public boolean canUseCard(Card card) {\r\n\t\tif (card.cardColor.contains(CardColor.GREEN)\r\n\t\t\t\t|| card.cardColor.contains(CardColor.GREY)) {\r\n\t\t\treturn false;\r\n\t\t} else if (... | [
"0.6969802",
"0.649895",
"0.6387738",
"0.63522667",
"0.6351286",
"0.62957686",
"0.62948364",
"0.62924874",
"0.6174993",
"0.6077045",
"0.6072153",
"0.6061225",
"0.6018942",
"0.60130185",
"0.6007082",
"0.59894943",
"0.59685606",
"0.5966861",
"0.5955733",
"0.5921111",
"0.5919812... | 0.7606581 | 0 |
Play card. Plays the given card if card is targetless. returns true if card can be played, false otherwise. | public boolean playCard(Card card){
boolean b = effectHandler.playCard( card , null);
return b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean playCard(Card card, Enemy enemy){\n if( isGameOver() )return false;\n if( card.isHasTarget() && !enemyController.hasEnemy(enemy) )return false;\n\n System.out.println(\"IN PLAYCARD METHOD\");\n boolean b = effectHandler.playCard( card , enemy);\n System.out.println... | [
"0.69952315",
"0.6897855",
"0.6837469",
"0.6667124",
"0.6645554",
"0.65965694",
"0.6452622",
"0.64502597",
"0.6354746",
"0.6298784",
"0.62835175",
"0.62796175",
"0.62795776",
"0.6272276",
"0.62436336",
"0.6197051",
"0.61828256",
"0.6182364",
"0.6179526",
"0.6132494",
"0.61229... | 0.7818539 | 0 |
End turn. calls the effect handler methods in correct order to apply the player end enemy effects when character turn is over. | public void endTurn(){
int block = character.getBlock();
int energy = character.getEnergy();
if( !isGameOver() ){
effectHandler.endPlayerTurn();
piles.handToDiscard();
playEnemy();
effectHandler.startPlayerTurn();
effectHandler.applyBlo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endTurn()\n\t{\n\t\tthis.decrementEffectDurations();\n\t\tdoneWithTurn = true;\n\t}",
"@Override\n public void endTurn() {\n battle.setState(new EnemyTurn(battle));\n battle.continueBattle();\n }",
"public void endGame(){\n if(character.getHp() > 0 )effectHandler.endGame(... | [
"0.8117429",
"0.74244046",
"0.72593635",
"0.71667814",
"0.7058808",
"0.70474684",
"0.7001497",
"0.6982009",
"0.69457936",
"0.68991596",
"0.6854824",
"0.6768249",
"0.6749074",
"0.6748258",
"0.67144746",
"0.67067856",
"0.6677776",
"0.66617316",
"0.6650023",
"0.6630224",
"0.6628... | 0.7024491 | 6 |
Play enemy. This method calls the effect handler methods in correct order to applys the enemy effects in order. | public void playEnemy(){
// System.out.println("staaaaaaaaaaaaaaaaaaaaar"+character.getBlock());
for(int i = 0 ; i < enemyController.getSize() ; i++){
if (! enemies.get(i).isDead())
effectHandler.playEnemy( i );
}
for( int i = 0 ; i < enemyController.getSize() ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void explosion(){\n explosionEffect.play(pitch, volume);\n }",
"public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n... | [
"0.6356213",
"0.6352556",
"0.63341606",
"0.6278976",
"0.61227256",
"0.60962635",
"0.6064588",
"0.60105073",
"0.5968291",
"0.5960251",
"0.5929565",
"0.5903823",
"0.58960867",
"0.5879052",
"0.58317935",
"0.58277494",
"0.58190525",
"0.5761535",
"0.5756299",
"0.574918",
"0.572788... | 0.7214727 | 0 |
Get hand pile pile. | public Pile getHandPile(){
return piles.getHandPile();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Pile getDeckPile() {\n return deckPile;\n }",
"public Pile getDiscardPile(){\n return piles.getDiscardPile();\n }",
"public Pile getDrawPile(){\n return piles.getDrawPile();\n }",
"public Pile getExhaustPile(){\n return piles.getExhaustPile();\n }",
"public int pile... | [
"0.71486574",
"0.7098397",
"0.6967689",
"0.6548329",
"0.6414242",
"0.63983744",
"0.6228278",
"0.6225639",
"0.62247074",
"0.61520314",
"0.6132017",
"0.603535",
"0.597069",
"0.5901453",
"0.5901453",
"0.58772993",
"0.5867623",
"0.58203393",
"0.58154655",
"0.5783912",
"0.5782301"... | 0.86367524 | 0 |
Get discard pile pile. | public Pile getDiscardPile(){
return piles.getDiscardPile();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Card getTopCardDiscardPile() {\r\n return discardPile.get(discardPile.size() - 1);\r\n }",
"public List<CardSprite> getDiscardPile() {\n return this.discardPile;\n }",
"public List<Card> getDiscardPile() {\r\n return discardPile;\r\n }",
"public Pile getExhaustPile(){\n ... | [
"0.7234256",
"0.6770633",
"0.67196244",
"0.6684677",
"0.6405653",
"0.62649643",
"0.6251152",
"0.6060336",
"0.60594195",
"0.5861766",
"0.57529193",
"0.5727969",
"0.5570105",
"0.55472976",
"0.546616",
"0.5371197",
"0.53563887",
"0.53477806",
"0.5347724",
"0.534377",
"0.53284335... | 0.8368218 | 0 |
Get exhaust pile pile. | public Pile getExhaustPile(){
return piles.getExhaustPile();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Pile getDiscardPile(){\n return piles.getDiscardPile();\n }",
"protected IPile getPile(PileType type, int pileNum) throws IllegalArgumentException {\n switch (type) {\n case FOUNDATION:\n if ((pileNum >= 0) && (this.foundationPiles.size() > pileNum)) {\n return this.found... | [
"0.66052294",
"0.60529464",
"0.60273904",
"0.5931923",
"0.56422454",
"0.5604893",
"0.5603113",
"0.5456482",
"0.5446365",
"0.54130644",
"0.5385349",
"0.53326136",
"0.5332492",
"0.53170717",
"0.5301957",
"0.5294206",
"0.52698123",
"0.5264372",
"0.5262053",
"0.5256321",
"0.52505... | 0.82276 | 0 |
Get draw pile pile. | public Pile getDrawPile(){
return piles.getDrawPile();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Pile getDiscardPile(){\n return piles.getDiscardPile();\n }",
"public Pile getDeckPile() {\n return deckPile;\n }",
"public Pile getHandPile(){\n return piles.getHandPile();\n }",
"public int pileSize() {\n return size;\n }",
"public Pile getExhaustPile(){\n ... | [
"0.7054444",
"0.6834426",
"0.68283117",
"0.66864353",
"0.65621066",
"0.64469916",
"0.6359533",
"0.63349175",
"0.62588125",
"0.61736494",
"0.61615384",
"0.5841216",
"0.57970244",
"0.57466495",
"0.5709417",
"0.5671669",
"0.56352204",
"0.55872005",
"0.558485",
"0.556738",
"0.555... | 0.8402504 | 0 |
Get enemy room enemy room. | public EnemyRoom getEnemyRoom(){
return (EnemyRoom) room;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Room getRoom();",
"Room getRoom();",
"public EnemyManager getEnemyManager() {\n return map.getEnemyManager();\n }",
"public Room getRoom(){\n\t\treturn this.room;\n\t}",
"public Room getRoom()\n {\n return currentRoom;\n }",
"public Enemy getEnemy(int whichEnemy);",
"public Room ... | [
"0.7275461",
"0.7275461",
"0.69593215",
"0.6940019",
"0.68955636",
"0.68702155",
"0.6859768",
"0.6835972",
"0.6835378",
"0.682222",
"0.68078566",
"0.6789461",
"0.67362624",
"0.67220336",
"0.6716873",
"0.66706747",
"0.66543144",
"0.65865755",
"0.6553091",
"0.6538591",
"0.65334... | 0.8112374 | 0 |
Is game over boolean. returns true if game is over and calls the endGame() method for it to apply end game effects. returns false otherwise. | public boolean isGameOver(){
if( character.getHp() <= 0 ){
System.out.println("GAME IS OVER BECAUSE CHARACTER DEAD");
return true;
}
for (int i = 0 ; i < enemies.size() ; i++)
{
if(!enemies.get(i).isDead()){
System.out.println("NOT ALL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean gameOver() \n {\n \treturn status() != GAME_NOT_OVER;\n }",
"public boolean gameOver() {\n\t\treturn gameOver;\n\t}",
"public abstract boolean gameIsOver();",
"public boolean isGameOver()\n {\n if(bird.isOnTheFloor||gameOver||pipes.getWhereToDrawB().intersect(bird.getWhereTo... | [
"0.78521657",
"0.77905494",
"0.7755467",
"0.77483654",
"0.77408457",
"0.7714261",
"0.7714261",
"0.7701962",
"0.76747316",
"0.76720345",
"0.76567405",
"0.7642235",
"0.7642235",
"0.75771236",
"0.7576591",
"0.7576591",
"0.75345844",
"0.75072575",
"0.7505918",
"0.7501551",
"0.747... | 0.7005613 | 48 |
Get rewards reward. Get the rewards of the current fight. | public Reward getRewards(){
reward = ((EnemyRoom)room).giveReward();
return reward;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getReward() {\n return reward;\n }",
"public ArrayList<Reward> getRewards() {\n return rewards;\n }",
"public double getReward() {\n if (inGoalRegion()) {\n return REWARD_AT_GOAL;\n } else {\n return REWARD_PER_STEP;\n }\n }",
"p... | [
"0.7354176",
"0.7206527",
"0.7055291",
"0.6825743",
"0.64532197",
"0.63926643",
"0.61749005",
"0.6159468",
"0.61267275",
"0.61237955",
"0.6049048",
"0.60223967",
"0.59974694",
"0.59738314",
"0.59511566",
"0.59053475",
"0.58452994",
"0.5836095",
"0.5805144",
"0.57758355",
"0.5... | 0.7861022 | 0 |
Take gold reward. Gives the fold reward of current fight to character. returns true if character wins the game, false otherwise or if gold reward is already taken. | public boolean takeGoldReward(){
if(!isGameOver() || character.getHp() <= 0 )return false;
if( goldRewardGiven )return false;
int gold = character.getGold();
character.setGold( gold + reward.getGold() );
goldRewardGiven=true;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean takeRelicReward(){\n if(!isGameOver() || character.getHp() <= 0 )return false;\n if( relicRewardGiven )return false;\n character.addRelic( reward.getRelic() );\n relicRewardGiven=true;\n return true;\n }",
"public boolean hasEnoughGold(int gold)\n\t{\n\t\tretu... | [
"0.64739054",
"0.59709644",
"0.5936493",
"0.59137654",
"0.573866",
"0.57038623",
"0.5641788",
"0.5631582",
"0.55168086",
"0.54134977",
"0.5408917",
"0.53941077",
"0.5227574",
"0.51751024",
"0.51739734",
"0.51421577",
"0.51278156",
"0.5095472",
"0.5091347",
"0.5078707",
"0.507... | 0.7873319 | 0 |
Take card reward boolean. Gives the card reward of current fight to character. returns true if character wins the game, false otherwise or if card reward is already taken. | public boolean takeCardReward(int i){
if(!isGameOver() || character.getHp() <= 0 )return false;
if( cardRewardGiven )return false;
Pile cPile = character.getDeck();
Card c = reward.getCards().get(i);
System.out.println("**IN takeCardReward, card name is : " + c.getName());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean takeRelicReward(){\n if(!isGameOver() || character.getHp() <= 0 )return false;\n if( relicRewardGiven )return false;\n character.addRelic( reward.getRelic() );\n relicRewardGiven=true;\n return true;\n }",
"public boolean takeGoldReward(){\n if(!isGameO... | [
"0.7364945",
"0.70215476",
"0.6561627",
"0.64391553",
"0.6236709",
"0.6205273",
"0.5727913",
"0.5642141",
"0.56024224",
"0.5590265",
"0.55873334",
"0.5584075",
"0.55833364",
"0.554434",
"0.55357",
"0.55078024",
"0.5499435",
"0.5475296",
"0.542354",
"0.5408233",
"0.54070497",
... | 0.6473347 | 3 |
Take potion reward boolean. Gives the potion reward of current fight to character. returns true if character wins the game, false otherwise or if potion reward is already taken. | public boolean takePotionReward(){
if(!isGameOver() || character.getHp() <= 0 )return false;
if( potRewardGiven )return false;
boolean isAdded = character.addPotion( reward.getPot() );
potRewardGiven=true;
return isAdded;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean takeRelicReward(){\n if(!isGameOver() || character.getHp() <= 0 )return false;\n if( relicRewardGiven )return false;\n character.addRelic( reward.getRelic() );\n relicRewardGiven=true;\n return true;\n }",
"public boolean takeGoldReward(){\n if(!isGameO... | [
"0.7181902",
"0.7008498",
"0.6686082",
"0.6508822",
"0.6250381",
"0.58048534",
"0.5697666",
"0.5590733",
"0.55589074",
"0.55485964",
"0.55232805",
"0.5516589",
"0.5477551",
"0.54265976",
"0.5381769",
"0.53671426",
"0.5321001",
"0.5319252",
"0.53174543",
"0.53151953",
"0.53081... | 0.7498896 | 0 |
Take relic reward boolean. Gives the relic reward of current fight to character. returns true if character wins the game, false otherwise or if potion reward is already taken. | public boolean takeRelicReward(){
if(!isGameOver() || character.getHp() <= 0 )return false;
if( relicRewardGiven )return false;
character.addRelic( reward.getRelic() );
relicRewardGiven=true;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean takePotionReward(){\n if(!isGameOver() || character.getHp() <= 0 )return false;\n if( potRewardGiven )return false;\n boolean isAdded = character.addPotion( reward.getPot() );\n potRewardGiven=true;\n return isAdded;\n }",
"public boolean takeGoldReward(){\n ... | [
"0.65800357",
"0.6541437",
"0.61939186",
"0.61238056",
"0.6090975",
"0.5927507",
"0.55151635",
"0.55064106",
"0.5413011",
"0.54064715",
"0.5404876",
"0.53499955",
"0.534292",
"0.53023535",
"0.52990896",
"0.52990896",
"0.527647",
"0.5220237",
"0.51561254",
"0.5131275",
"0.5110... | 0.8277822 | 0 |
End game. calls the effect handler to apply end game effects | public void endGame(){
if(character.getHp() > 0 )effectHandler.endGame();
character.clearBuffs();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}",
"@Override\n\tpublic void end() {\n\t\tspriteManager.discard();\n\t\teffectHandler.discard();\n\t\tcircle.discard();\n\t}",
"public void endTurn()\n\t{\n\t\tthis.decrementEffectDurations();\n\t\tdoneWithTurn = true;\n\t}",
"@Override\n\tpublic... | [
"0.77319354",
"0.77305365",
"0.75592357",
"0.7435234",
"0.72099596",
"0.7109843",
"0.7091491",
"0.7085163",
"0.7064931",
"0.70212793",
"0.69992185",
"0.69411045",
"0.6921053",
"0.6853442",
"0.68402267",
"0.68189377",
"0.67748785",
"0.6774193",
"0.674877",
"0.67284185",
"0.670... | 0.8194595 | 0 |
Apply potion. returns true if potion is played. returns false otherwise. | public boolean applyPotion( Potion potion){
if(potion.isHasTarget() )return false;
if(!character.hasPotion(potion))return false;
effectHandler.playPotion( potion ,null);
character.getPotions().remove(potion);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean applyPotion( Potion potion, Enemy enemy){\n if(!character.hasPotion(potion))return false;\n if( potion.isHasTarget() && !enemyController.hasEnemy(enemy) )return false;\n effectHandler.playPotion( potion ,enemy);\n character.getPotions().remove(potion);\n return tru... | [
"0.730785",
"0.6359079",
"0.60818845",
"0.57866955",
"0.5739066",
"0.5719351",
"0.5719351",
"0.5645548",
"0.5602872",
"0.556656",
"0.55177677",
"0.5484657",
"0.5463149",
"0.54589784",
"0.54369926",
"0.54356253",
"0.5392761",
"0.535435",
"0.5347109",
"0.53379464",
"0.5294947",... | 0.7877481 | 0 |
Apply potion to given target. returns true if potion can be applied to given enemy. | public boolean applyPotion( Potion potion, Enemy enemy){
if(!character.hasPotion(potion))return false;
if( potion.isHasTarget() && !enemyController.hasEnemy(enemy) )return false;
effectHandler.playPotion( potion ,enemy);
character.getPotions().remove(potion);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean applyPotion( Potion potion){\n if(potion.isHasTarget() )return false;\n if(!character.hasPotion(potion))return false;\n effectHandler.playPotion( potion ,null);\n character.getPotions().remove(potion);\n return true;\n }",
"@Override\r\n\tpublic boolean attack... | [
"0.6855064",
"0.6658505",
"0.6595818",
"0.6341833",
"0.6306264",
"0.6209834",
"0.61118776",
"0.60005873",
"0.5898252",
"0.5847871",
"0.58378184",
"0.5782659",
"0.57727104",
"0.5754194",
"0.57185537",
"0.57075685",
"0.5672739",
"0.56452817",
"0.55733293",
"0.55663526",
"0.5534... | 0.7410149 | 0 |
Get enemy effects array list. Gets the enemy effects that enemy is going to be played at the next turn. | public ArrayList<Effect> getEnemyEffects(int index){
return enemyController.seeEnemyEffect(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<Effect> getEffect() {\n \treturn new ArrayList<Effect>(effects);\n }",
"public List<Effect> getEffects()\n {\n return m_effects;\n }",
"public void getEnemyBattleEffects(Enemy enemy) {\n try {\n Ability chosenAbility = enemy.getLastUsableAbility().clone()... | [
"0.70183265",
"0.6895368",
"0.669416",
"0.6643088",
"0.6372612",
"0.6234558",
"0.606733",
"0.60494936",
"0.60087764",
"0.59936756",
"0.5985669",
"0.5977287",
"0.59679097",
"0.5897245",
"0.586074",
"0.5808792",
"0.5768566",
"0.5768171",
"0.5767588",
"0.5749178",
"0.5711864",
... | 0.78852683 | 0 |
Is final room boolean. | public boolean isFinalRoom(){
System.out.println("------------------------------------------ ->"+((EnemyRoom) room).getType());
return ((EnemyRoom) room).getType().equals("Boss");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isIsFinal() {\n\t\treturn _esfTournament.isIsFinal();\n\t}",
"public boolean isFinal() {\r\n\t\treturn isFinal;\r\n\t}",
"public boolean isFinal() {\n\t\treturn isFinal;\n\t}",
"@Override\n\tpublic boolean getIsFinal() {\n\t\treturn _esfTournament.getIsFinal();\n\t}",
"public st... | [
"0.7312912",
"0.69682837",
"0.693077",
"0.6787092",
"0.678204",
"0.67789173",
"0.6775876",
"0.677216",
"0.6741002",
"0.6730692",
"0.6712189",
"0.6712189",
"0.6669602",
"0.6667528",
"0.66404206",
"0.6618044",
"0.66152",
"0.65355784",
"0.65335387",
"0.6451627",
"0.6429785",
"... | 0.7428686 | 0 |
Notifies the host the its visible bounds may have potentially changed. | void notifyVisibleBoundsChanged(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onBoundsChange(Rect bounds) {\r\n }",
"void msgViewableChanged() {\n resetViewport(start);\n }",
"public void onBoundsResolved()\n {\n updateTransform();\n }",
"@Override\n public void update(final Observable the_observed, final Object the_arg)\n {\n if (!my_board.isFu... | [
"0.6719582",
"0.63848597",
"0.61176133",
"0.61097217",
"0.6092795",
"0.60656387",
"0.6060167",
"0.6050538",
"0.60013396",
"0.5956509",
"0.5944783",
"0.5901814",
"0.58781046",
"0.58448356",
"0.5835157",
"0.57809085",
"0.5737444",
"0.56944793",
"0.5670853",
"0.5666032",
"0.5637... | 0.7985908 | 0 |
Notifies the host when its parent wants to start premounting content. | void onRegisterForPremount(@Nullable Long frameTimeMs); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void beforeParentInit() {\n // by default do nothing\n }",
"@Override \n\t protected void onStartLoading() {\n\t if (mChildList != null) {\n\t // If we currently have a result available, deliver it\n\t // immediately.\n\t deliverResult(mChildList);\n... | [
"0.5775646",
"0.55918497",
"0.55918497",
"0.55707973",
"0.54893976",
"0.5482859",
"0.5457382",
"0.5442799",
"0.5386169",
"0.5318234",
"0.5307643",
"0.52846336",
"0.52828354",
"0.5266315",
"0.52157366",
"0.52121806",
"0.5210595",
"0.5208721",
"0.52036554",
"0.52036554",
"0.518... | 0.0 | -1 |
Notifies the host when its parent wants to stop premounting content. | void onUnregisterForPremount(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n \t\t\t\tpublic void doDettachFromParent() {\n \n \t\t\t\t}",
"@Override\r\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\r\n\t\tstartAsync = false;\r\n\t}",
"private void notifyStopped(Service parent) {\n synchronized (this) {\n runningParents.remove(parent);\n noti... | [
"0.65162927",
"0.5551603",
"0.5475016",
"0.5469694",
"0.54516125",
"0.5392525",
"0.50727904",
"0.5066093",
"0.50486755",
"0.50183827",
"0.49983162",
"0.49752125",
"0.4958168",
"0.49548623",
"0.49325365",
"0.4923568",
"0.49226445",
"0.49134216",
"0.49134216",
"0.49115008",
"0.... | 0.5800986 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
PizzaStore pizzaStore = new PizzaStore();
Pizza pizza = pizzaStore.orderPizza("cheese");
System.out.println(pizza+" 고객전달\n");
/*pizza = pizzaStore.orderPizza("Greek");
System.out.println(pizza+" 고객전달\n");*/
pizza = pizzaStore.orderPizza("pepperoni");
System.out.... | {
"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 robertsikora on 25.03.2016. | public interface UserRepo extends ObjectRepo<User, Long> {
} | {
"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\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.59793305",
"0.57950574",
"0.5737239",
"0.56869185",
"0.56194067",
"0.56194067",
"0.5567228",
"0.55595505",
"0.55229366",
"0.55198103",
"0.5515118",
"0.55085284",
"0.54987717",
"0.54902655",
"0.5486522",
"0.54601353",
"0.54601353",
"0.54601353",
"0.54601353",
"0.54601353",
... | 0.0 | -1 |
LocalDateTime > DateTime with DateTimeZone | private DateTime goodLocalDateTimeUse() {
LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);
return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),
ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),
DateTimeZone.forID("A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DateTime goodLocalTimeUse2() {\n LocalTime lt = new LocalTime(8, 0, 0, 0);\n return new DateTime().toDateTime(DateTimeZone.getDefault())\n .withTime(lt)\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }",
"private DateTime goodLocalTimeUse() {\n LocalTime lt = new Lo... | [
"0.6316706",
"0.6169244",
"0.6166149",
"0.6008675",
"0.5992265",
"0.59920466",
"0.5979671",
"0.5909176",
"0.5893427",
"0.58167565",
"0.5799015",
"0.5792457",
"0.56762713",
"0.56503946",
"0.564489",
"0.55671936",
"0.5520173",
"0.5441915",
"0.54241145",
"0.5402816",
"0.5397588"... | 0.6028702 | 3 |
LocalDateTime > DateTime without DateTimeZone | private DateTime goodLocalDateTimeUse2() {
LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);
return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),
ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),
DateTimeZone.getDefa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DateTime goodLocalDateTimeUse() {\n LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);\n return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),\n ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),\n DateTimeZone... | [
"0.6535202",
"0.6487784",
"0.63920754",
"0.6313472",
"0.63058263",
"0.62492675",
"0.62340605",
"0.6135593",
"0.6124087",
"0.60982734",
"0.590624",
"0.59028316",
"0.5866754",
"0.5813002",
"0.5799315",
"0.5763446",
"0.57394373",
"0.57335216",
"0.5712405",
"0.5649716",
"0.562453... | 0.6311847 | 4 |
LocalTime > DateTime with DateTimeZone | private DateTime goodLocalTimeUse() {
LocalTime lt = new LocalTime(8, 0, 0, 0);
return new DateTime().toDateTime(DateTimeZone.forID("America/New_York"))
.withTime(lt)
.toDateTime(DateTimeZone.forID("America/Los_Angeles"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DateTime goodLocalTimeUse2() {\n LocalTime lt = new LocalTime(8, 0, 0, 0);\n return new DateTime().toDateTime(DateTimeZone.getDefault())\n .withTime(lt)\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }",
"public java.time.LocalDateTime convertToCurrentZone(java.time.Lo... | [
"0.65727085",
"0.63465303",
"0.6079727",
"0.5959166",
"0.591221",
"0.5911286",
"0.5871962",
"0.58103395",
"0.5775233",
"0.57283413",
"0.57232493",
"0.56444716",
"0.5621854",
"0.5621854",
"0.55711955",
"0.5568654",
"0.5555761",
"0.54912394",
"0.54721177",
"0.54452497",
"0.5440... | 0.66440177 | 0 |
LocalTime > DateTime without DateTimeZone | private DateTime goodLocalTimeUse2() {
LocalTime lt = new LocalTime(8, 0, 0, 0);
return new DateTime().toDateTime(DateTimeZone.getDefault())
.withTime(lt)
.toDateTime(DateTimeZone.forID("America/Los_Angeles"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DateTime goodLocalTimeUse() {\n LocalTime lt = new LocalTime(8, 0, 0, 0);\n return new DateTime().toDateTime(DateTimeZone.forID(\"America/New_York\"))\n .withTime(lt)\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }",
"private DateTime goodLocalDateTimeUse() {\n Loc... | [
"0.6936046",
"0.64412004",
"0.64305425",
"0.6343207",
"0.6314956",
"0.61896247",
"0.6146492",
"0.614264",
"0.61337835",
"0.6064089",
"0.60628766",
"0.6013557",
"0.58930016",
"0.5876145",
"0.584945",
"0.58073086",
"0.5790544",
"0.5781763",
"0.5765731",
"0.5758266",
"0.57543516... | 0.6894184 | 1 |
LocalDate > DateTime with DateTimeZone | private DateTime goodLocalDateUse() {
LocalDate ld = new LocalDate(2020, 6, 2);
LocalTime now = LocalTime.now();
return new DateTime(ld.getYear(), ld.getMonthOfYear(), ld.getDayOfYear(), now.getHourOfDay(),
now.getMinuteOfHour(), now.getSecondOfMinute(), now.getMillisOfSecond(),
DateTimeZone... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testLocalDateLocalDateTimeConsistency() {\n\t\tfinal LocalDate referenceDate = LocalDate.of(2016, 1, 1);\n\t\tfor(int i=0; i<1000; i++) {\n\t\t\tfinal LocalDate date = referenceDate.plusDays(i);\n\n\t\t\tfinal double floatingPointDate = FloatingpointDate.getFloatingPointDateFromDate(referenceD... | [
"0.5999092",
"0.5846039",
"0.57028574",
"0.5697542",
"0.5655646",
"0.5585734",
"0.55849195",
"0.55337983",
"0.549213",
"0.5488641",
"0.54678416",
"0.5408393",
"0.54045814",
"0.5400399",
"0.53018516",
"0.52529097",
"0.52406186",
"0.52339023",
"0.52335525",
"0.52046895",
"0.520... | 0.58365357 | 2 |
LocalDate > DateTime without DateTimeZone | private DateTime goodLocalDateUse2() {
LocalDate ld = new LocalDate(2020, 6, 2);
LocalTime now = LocalTime.now();
return new DateTime(ld.getYear(), ld.getMonthOfYear(), ld.getDayOfYear(), now.getHourOfDay(),
now.getMinuteOfHour(), now.getSecondOfMinute(), now.getMillisOfSecond(),
DateTimeZon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testLocalDateLocalDateTimeConsistency() {\n\t\tfinal LocalDate referenceDate = LocalDate.of(2016, 1, 1);\n\t\tfor(int i=0; i<1000; i++) {\n\t\t\tfinal LocalDate date = referenceDate.plusDays(i);\n\n\t\t\tfinal double floatingPointDate = FloatingpointDate.getFloatingPointDateFromDate(referenceD... | [
"0.6411916",
"0.6341374",
"0.6185744",
"0.60331297",
"0.58945316",
"0.5857974",
"0.5818216",
"0.57534426",
"0.5746089",
"0.57457966",
"0.5704323",
"0.56396574",
"0.5630209",
"0.56212074",
"0.5587702",
"0.5569828",
"0.5511071",
"0.5498085",
"0.54960495",
"0.5476322",
"0.547167... | 0.6105222 | 3 |
LocalDate > DateTime with DateTimeZone toDateTimeAtStartOfDay | private DateTime goodLocalDateUse3() {
LocalDate ld = new LocalDate(2020, 6, 2);
return ld.toDateTimeAtStartOfDay(DateTimeZone.forID("America/New_York"))
.toDateTime(DateTimeZone.forID("America/Los_Angeles"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DateTime goodLocalDateUse() {\n LocalDate ld = new LocalDate(2020, 6, 2);\n LocalTime now = LocalTime.now();\n return new DateTime(ld.getYear(), ld.getMonthOfYear(), ld.getDayOfYear(), now.getHourOfDay(),\n now.getMinuteOfHour(), now.getSecondOfMinute(), now.getMillisOfSecond(),\n Da... | [
"0.5964997",
"0.59016377",
"0.5859196",
"0.5765218",
"0.5696174",
"0.563732",
"0.54800403",
"0.54411733",
"0.539649",
"0.5386249",
"0.53474724",
"0.5283154",
"0.52816737",
"0.5249424",
"0.5224395",
"0.5193199",
"0.519166",
"0.51857394",
"0.51844764",
"0.51696646",
"0.51632035... | 0.56775737 | 5 |
LocalDate > DateTime with DateTimeZone toDateTimeAtCurrentTime | private DateTime goodLocalDateUse4() {
LocalDate ld = new LocalDate(2020, 6, 2);
return new DateTime().toDateTime(DateTimeZone.forID("America/New_York"))
.withDate(ld)
.toDateTime(DateTimeZone.forID("America/Los_Angeles"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.time.LocalDateTime convertToCurrentZone(java.time.LocalDateTime time_input){\r\n java.time.LocalDateTime newDateTime = time_input.atZone(ZoneId.of(\"GMT\")).withZoneSameInstant(getTimeZone().toZoneId()).toLocalDateTime();\r\n return newDateTime;\r\n }",
"@Test\n\tpublic void testLoca... | [
"0.58604926",
"0.5831481",
"0.5704113",
"0.5666272",
"0.5656364",
"0.56552505",
"0.56166786",
"0.55317914",
"0.55153686",
"0.5487798",
"0.5441121",
"0.5435196",
"0.5387332",
"0.53493845",
"0.53334785",
"0.5296272",
"0.5274462",
"0.51706433",
"0.5165043",
"0.514387",
"0.513695... | 0.49288115 | 31 |
LocalDate > DateTime without DateTimeZone toDateTimeAtCurrentTime | private DateTime goodLocalDateUse5() {
LocalDate ld = new LocalDate(2020, 6, 2);
return new DateTime().toDateTime(DateTimeZone.getDefault())
.withDate(ld)
.toDateTime(DateTimeZone.forID("America/Los_Angeles"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testLocalDateLocalDateTimeConsistency() {\n\t\tfinal LocalDate referenceDate = LocalDate.of(2016, 1, 1);\n\t\tfor(int i=0; i<1000; i++) {\n\t\t\tfinal LocalDate date = referenceDate.plusDays(i);\n\n\t\t\tfinal double floatingPointDate = FloatingpointDate.getFloatingPointDateFromDate(referenceD... | [
"0.6410359",
"0.6409523",
"0.6299976",
"0.6090239",
"0.5949208",
"0.59097123",
"0.57478774",
"0.5588195",
"0.55525064",
"0.5529942",
"0.550882",
"0.54935795",
"0.5469431",
"0.54149795",
"0.5389396",
"0.53827083",
"0.5372203",
"0.5362874",
"0.5350328",
"0.53449243",
"0.5338182... | 0.5566033 | 8 |
/ workaround for free/premium issue on stable 09581 | @Override
public int getMaxSimultanPremiumDownloadNum() {
return maxPrem.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean func_70814_o() { return true; }",
"protected boolean func_70041_e_() { return false; }",
"protected void mo6255a() {\n }",
"public boolean func_145773_az() { return true; }",
"public final void mo51373a() {\n }",
"private void m50366E() {\n }",
"@Override\n public void... | [
"0.5881512",
"0.5597509",
"0.55161345",
"0.54699725",
"0.541594",
"0.534412",
"0.5316365",
"0.53148276",
"0.53148276",
"0.53148276",
"0.53148276",
"0.53148276",
"0.53148276",
"0.53148276",
"0.52745456",
"0.5267925",
"0.5247896",
"0.52453077",
"0.5245117",
"0.5227622",
"0.5226... | 0.0 | -1 |
main method is responsible for precessing the commandline argument, and handling any error processing PRE: The strings in the file are unique. | public static void main(String[] args) {
// If command line argument is left over, use default dictionary file: "sowpods.txt"
String dictFile = "sowpods.txt";
AnagramDictionary dictionary = null;
try {
// If there is a command line argument for a specific dictionary, take th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = arg... | [
"0.6634238",
"0.66290176",
"0.65381557",
"0.6512273",
"0.65090674",
"0.64864695",
"0.6432996",
"0.64294803",
"0.6406975",
"0.6387961",
"0.6380364",
"0.63778603",
"0.63659406",
"0.6365762",
"0.635169",
"0.63398445",
"0.63258344",
"0.63166296",
"0.6304165",
"0.62980855",
"0.629... | 0.0 | -1 |
Find all anagrams of a rack that are legal words in dictionary | private static ArrayList<String> allAnagrams(ArrayList<String> subsets, AnagramDictionary dictionary) {
ArrayList<String> anagrams = new ArrayList<>();
for (int i = 0; i < subsets.size(); i++) {
if (dictionary.getAnagramsOf(subsets.get(i)).size() != 0) {
anagrams.addAll(dicti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<String> allWords(int ret, ArrayList<Character> mustIn){\n String mustContain = \"\";\n for (int inde = 0; inde < mustIn.size(); inde++) {\n mustContain+=mustIn.get(inde);\n }\n \n ArrayList<String> a... | [
"0.64961046",
"0.6314722",
"0.6290203",
"0.6275254",
"0.6262541",
"0.6214062",
"0.61268425",
"0.6117988",
"0.60983074",
"0.6079414",
"0.6066567",
"0.60556364",
"0.59498185",
"0.5922122",
"0.5906697",
"0.5891662",
"0.5876181",
"0.5857672",
"0.58519167",
"0.58455586",
"0.584448... | 0.6016229 | 12 |
If the request if to CREATE a partition container, return host. If the request is to CREATE a sibling partition or to create an inner partition, ignore. If the request is to ADD a partition, return null (do not accept the reparenting of a partition directly on the diagram background: at least a partition container shou... | @objid ("29905fee-55b6-11e2-877f-002564c97630")
@Override
public EditPart getTargetEditPart(Request request) {
// Only care about specific creation or add requests, super can handle
// the rest.
if (RequestConstants.REQ_ADD.equals(request.getType()) || RequestConstants.REQ_MOVE.equals(re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@objid (\"29905ff5-55b6-11e2-877f-002564c97630\")\n @Override\n protected Command getCreateCommand(CreateRequest request) {\n // Only care about request for partitions, super can handle the rest.\n final ModelioCreationContext ctx = (ModelioCreationContext) request.getNewObject();\n if (... | [
"0.70819724",
"0.68951887",
"0.5812149",
"0.5357748",
"0.53472716",
"0.530789",
"0.5158713",
"0.49354845",
"0.49210417",
"0.4905865",
"0.4874585",
"0.47742864",
"0.4769842",
"0.47474343",
"0.47052684",
"0.4684282",
"0.46574897",
"0.46553287",
"0.46193826",
"0.4608205",
"0.460... | 0.76948893 | 0 |
If the request if to create a partition container, return specific command. If the request is to create a sibling partition or to create an inner partition, ignore. Other return the result of super.getCreateCommand(). | @objid ("29905ff5-55b6-11e2-877f-002564c97630")
@Override
protected Command getCreateCommand(CreateRequest request) {
// Only care about request for partitions, super can handle the rest.
final ModelioCreationContext ctx = (ModelioCreationContext) request.getNewObject();
if (ctx.getJavaC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Command getCreateCommand(CreateRequest request);",
"@Override\n\tprotected Command getCreateCommand(CreateRequest request) {\n\t\treturn null;\n\t}",
"@objid (\"29905ffc-55b6-11e2-877f-002564c97630\")\n @Override\n protected Object getConstraintFor(CreateRequest request) {\n fin... | [
"0.65670526",
"0.6423739",
"0.6347481",
"0.6235264",
"0.59970313",
"0.5961428",
"0.53414726",
"0.5281409",
"0.5190827",
"0.5122806",
"0.50906676",
"0.50540423",
"0.50378555",
"0.49205008",
"0.48610753",
"0.48457494",
"0.48298925",
"0.48114",
"0.47922063",
"0.47484496",
"0.474... | 0.7969305 | 0 |
Only care about request for partitions, super can handle the rest. | @objid ("29905ffc-55b6-11e2-877f-002564c97630")
@Override
protected Object getConstraintFor(CreateRequest request) {
final ModelioCreationContext ctx = (ModelioCreationContext) request.getNewObject();
if (ctx.getJavaClass() != ActivityPartition.class) {
return super.getConstraintFor(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"FieldAccessNotGuarded\")\n @Override\n public int partitions()\n {\n return partitions.length;\n }",
"@Override\n public void createPartition(Partition partition) {\n \n }",
"@Override\n\tpublic void prepareResult(Partition partition) {\n\t}",
"public void ... | [
"0.61686003",
"0.5939009",
"0.5920048",
"0.56103534",
"0.5599787",
"0.55687934",
"0.55199295",
"0.55081695",
"0.5444191",
"0.5440358",
"0.53613096",
"0.5352889",
"0.5345538",
"0.5340196",
"0.52823687",
"0.52727216",
"0.5272078",
"0.5252816",
"0.5250635",
"0.5241705",
"0.52259... | 0.5080018 | 32 |
Closes the networks on the contexts and shuts down the executor. Call this after test. | public void shutdown() {
executor.shutdown();
try {
executor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@AfterClass\n public static void cleanup() throws Exception {\n try {\n if (client != null) client.close();\n if (runners != null) {\n int i = 0;\n for (final NodeRunner runner: runners) {\n print(false, false, \"<<< stoping the JPPF node \" + (++i));\n runner.shutdown... | [
"0.65049624",
"0.62688076",
"0.6232921",
"0.6132682",
"0.6124175",
"0.60405385",
"0.59610444",
"0.5956919",
"0.59372294",
"0.59016234",
"0.58860713",
"0.5875048",
"0.58747494",
"0.58292556",
"0.58149916",
"0.58027816",
"0.5757394",
"0.575162",
"0.57256734",
"0.57243955",
"0.5... | 0.0 | -1 |
Returns a default network configuration. | public static NetworkConfiguration defaultNetworkConfiguration(Integer myId,
List<Integer> partyIds) {
Map<Integer, Party> parties = new HashMap<>();
for (Integer partyId : partyIds) {
parties.put(partyId, new Party(partyId, "localhost", 8000 + partyId));
}
return new NetworkConfigurationImp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@java.lang.Override\n public com.google.cloud.datafusion.v1beta1.NetworkConfig getNetworkConfig() {\n return networkConfig_ == null\n ? com.google.cloud.datafusion.v1beta1.NetworkConfig.getDefaultInstance()\n : networkConfig_;\n }",
"public com.google.cloud.datafusion.v1beta1.NetworkConfig get... | [
"0.70635694",
"0.69947445",
"0.69795054",
"0.68280846",
"0.67744726",
"0.67744726",
"0.66598374",
"0.662893",
"0.64473563",
"0.6411076",
"0.63701373",
"0.630895",
"0.6294537",
"0.6289178",
"0.6258932",
"0.6205427",
"0.6151178",
"0.6114923",
"0.6098503",
"0.60551894",
"0.60459... | 0.65538365 | 8 |
Runs the task defined for each party. Currently assumes that all parties receive the same type of output. This method assumes that tasks are ordered by party. | public <T> List<T> runPerPartyTasks(List<Callable<T>> tasks) {
try {
List<Future<T>> results = executor.invokeAll(tasks, 90L,
TimeUnit.SECONDS);
// this is a bit of a mess...
@SuppressWarnings("unchecked")
List<T> unwrappedResults = results.stream().map(future -> {
try {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void run(\n DependencyResolver deps,\n long runTimeMillis,\n Output output) throws InterruptedException {\n ControlSignal controlSignal = new ControlSignal();\n\n // Agents are defined by the @Agent or @Agents annotations.\n // Their timings are defined by the @AgentPause annotation... | [
"0.5815402",
"0.5554901",
"0.55524695",
"0.5525953",
"0.55130094",
"0.54073817",
"0.5366957",
"0.53642076",
"0.53517425",
"0.5343465",
"0.533181",
"0.5320791",
"0.5318267",
"0.53070945",
"0.5283425",
"0.5272452",
"0.5208667",
"0.52018833",
"0.5198912",
"0.5187737",
"0.5186574... | 0.51876235 | 20 |
TODO Autogenerated method stub | @Override
public void characters(char[] arg0, int arg1, int arg2) throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void endDocument() throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void endElement(String arg0, String arg1, String arg2)
throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void endPrefixMapping(String prefix) throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void ignorableWhitespace(char[] ch, int start, int length)
throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void processingInstruction(String target, String data)
throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void setDocumentLocator(Locator locator) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void skippedEntity(String name) throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void startDocument() throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void startElement(String uri, String localName, String qName,
Attributes atts) throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void startPrefixMapping(String prefix, String uri)
throws SAXException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void geometry(Geometry geometry) {
} | {
"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 |
constructor for linked list | public MyLinkedList() {
length = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public linkedList() { // constructs an initially empty list\r\n\r\n }",
"public LinkedLists() {\n }",
"public LinkedList() {\n\t\tthis(\"list\");\n\t}",
"public MyLinkedList() \n\t{\n\t\t\n\t}",
"public MySinglyLinkedList() { }",
"public MyLinkedList() {\n first = null;\n n = 0;\n }... | [
"0.8298189",
"0.8083718",
"0.79707605",
"0.796399",
"0.7827367",
"0.7759352",
"0.77169603",
"0.7702813",
"0.7685585",
"0.7681454",
"0.7651919",
"0.7633439",
"0.7613234",
"0.75947744",
"0.75934976",
"0.7591538",
"0.75860363",
"0.7563327",
"0.75560266",
"0.751439",
"0.7508067",... | 0.74095154 | 33 |
inserts object into linked list | public void insert(LinkedNode l) {
if (length == 0) {
head = l;
tail = l;
}
else {
LinkedNode current = head;
while (current != null &&
current.value().getName().
compareTo(l.value().getName()) > 0) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert(\n ContentObject object\n )\n {\n if(index == -1)\n {index = 0;}\n\n objects.add(index,object);\n refresh();\n }",
"public void insert(T object) {\n\t createInternalStorage(object.getIndexes().length);\n\t for(int i=0;i<object.getIndexes().length;i++) {\n\t\tLinkedList<T>... | [
"0.74510455",
"0.7372872",
"0.714643",
"0.7117799",
"0.7062927",
"0.69315886",
"0.69256186",
"0.6920322",
"0.6811272",
"0.67670804",
"0.6615681",
"0.661486",
"0.66086",
"0.6599606",
"0.64251584",
"0.63847786",
"0.6375425",
"0.6367684",
"0.63625205",
"0.63576466",
"0.6348148",... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.