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 |
|---|---|---|---|---|---|---|
MyRunnable r = new MyRunnable(); | public static void main(String[] args) {
Runnable r1=()->{for (int i = 0; i < 10; i++) {
System.out.println("Lambda thread");
}
};
Thread t = new Thread(r1);
t.start();
for (int i = 0; i < 10; i++) {
System.out.println("main thread");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyRunnable(){\t\n\t}",
"Runnable mk();",
"@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}",
"@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDa... | [
"0.85642725",
"0.7307991",
"0.689781",
"0.6773779",
"0.6532388",
"0.65221304",
"0.6489312",
"0.6350733",
"0.62840796",
"0.62506497",
"0.6241212",
"0.6234589",
"0.6224945",
"0.62224823",
"0.62008643",
"0.62008643",
"0.61860025",
"0.6155119",
"0.6089311",
"0.6089311",
"0.608931... | 0.0 | -1 |
/ access modifiers changed from: protected | public SimpleDraweeControllerBuilder getControllerBuilder() {
return this.mSimpleDraweeControllerBuilder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ return new Greeting(counter.incrementAndGet(), String.format(template, name)); | @RequestMapping("/hello")
public String greeting(@RequestParam(value="name", defaultValue="World") String name) {
return name+" - TEST";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String greeting(final String inName);",
"@RequestMapping(\"/greeting\")\n public Greeting greeting(@RequestParam(value=\"name\", defaultValue=\"World\") String name) {\n return new Greeting(counter.incrementAndGet(),\n String.format(template, name));\n }",
"@GetMa... | [
"0.69445485",
"0.6637636",
"0.640041",
"0.6294515",
"0.629367",
"0.6237357",
"0.6229281",
"0.6145791",
"0.6100168",
"0.5989882",
"0.5963808",
"0.5929185",
"0.59032595",
"0.5820917",
"0.57937574",
"0.5746372",
"0.5714625",
"0.5635669",
"0.56187755",
"0.5612103",
"0.5604642",
... | 0.0 | -1 |
TODO Autogenerated method stub | public String getClubname() {
return clubname;
} | {
"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 |
retrieves list of players | public void releasesDisplay(){
ScahaDatabase db = (ScahaDatabase) ContextManager.getDatabase("ScahaDatabase");
List<Release> tempresult = new ArrayList<Release>();
try{
if (db.setAutoCommit(false)) {
CallableStatement cs = db.prepareCall("CALL scaha.getClubReleaseList(?)"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Player> getPlayers();",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"List<Player> listPlayers();",
"List<Player> findAllPlayers();",
"public List<Player> findAllP... | [
"0.83392984",
"0.8227275",
"0.81887025",
"0.7962936",
"0.79071426",
"0.7831788",
"0.78080696",
"0.77003205",
"0.76431936",
"0.76425916",
"0.7603698",
"0.7527202",
"0.7527202",
"0.7432823",
"0.73463875",
"0.7343782",
"0.73374903",
"0.7327547",
"0.7312871",
"0.72848326",
"0.725... | 0.0 | -1 |
first lets get club id for the logged in profile | public String getClubName(){
Integer clubid = 0;
String clubname = "";
ScahaDatabase db = (ScahaDatabase) ContextManager.getDatabase("ScahaDatabase");
try{
Vector<Integer> v = new Vector<Integer>();
v.add(this.getProfid());
db.getData("CALL scaha.getClubforPerson(?)", v);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getProfile_id() {\n return profileID;\n }",
"private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }",
"String getUserID();",
"Profile getProfile( String profileId );",
"java.lang.String getUserID();",
... | [
"0.6273116",
"0.6212295",
"0.5968173",
"0.5944456",
"0.58977664",
"0.58977664",
"0.58977664",
"0.5885397",
"0.5826484",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0... | 0.6323694 | 0 |
Execute command using a given data modification transaction. | void execute(final ReadWriteTransaction readWriteTransaction); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n public void executeTransaction(ClientTransaction transaction) {\n transaction.preExecute(this);\n getTransactionExecutor().execute(transaction);\n transaction.recycle();\n }",
"public void executeTransaction(Transaction transaction) {\n logger.info(\"Execute... | [
"0.61184525",
"0.6012722",
"0.5984037",
"0.58512485",
"0.58221024",
"0.5808508",
"0.57901233",
"0.5789615",
"0.57632226",
"0.5754888",
"0.56241035",
"0.5618917",
"0.56145155",
"0.55499876",
"0.55499876",
"0.55499876",
"0.5545307",
"0.5518012",
"0.54873097",
"0.54864156",
"0.5... | 0.62879306 | 0 |
metodo che stampa l'esame sostenuto in una certa data | public void stampaDaData(String data){
int cont = 0;
//GenericStack<Esame> EsamiInData = new GenericStack<Esame>();
try {
Date date =new SimpleDateFormat("dd-MM-yyyy").parse(data);
for (Esame var : librettoArray) {
if(var.getDataEsame().compareTo(date) =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void eleccionCasoDeUso(String casoDeUso) throws MareException{\t\t\n\t // Seteo de titulo y ID_BUSINESS\n\t if(casoDeUso.equals(LP_ID_ASOC_TERR)){\n\t\t\tidBusiness = ID_BUSINESS_ASOC_TERR;\n\t\t\tcodTituloLP = \"0378\";\n\t\t\tfichero= \"muestraUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_UG)){\n\t\t\... | [
"0.5936277",
"0.59156156",
"0.59111917",
"0.59065247",
"0.59024584",
"0.5879283",
"0.5874961",
"0.58383524",
"0.58382636",
"0.5810826",
"0.5801571",
"0.5746431",
"0.57450795",
"0.5733437",
"0.57330763",
"0.57204825",
"0.57052517",
"0.57036716",
"0.5687961",
"0.56782734",
"0.5... | 0.0 | -1 |
Funcion Auxiliar para ver la continuidad de las Cartas | public boolean EvaluaColor(char Familia, char Opuesto) {
if (Familia == Opuesto) {
return false;
} else if (Familia == 'C' && Opuesto != 'D') {
return true;
} else if (Familia == 'D' && Opuesto != 'C') {
return true;
} else if (Familia == 'P' && Opuest... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isCartValid();",
"public void testUsarCarta(){\n\t\tassertFalse(c1.haSidoUsada());\r\n\t\tc1.usarCarta();\r\n\t\tassertTrue(c1.haSidoUsada());\r\n\t\tc1.reiniciarCarta();\r\n\t\tassertFalse(c1.haSidoUsada());\r\n\t}",
"public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n ... | [
"0.6677486",
"0.65734905",
"0.64453363",
"0.6315408",
"0.62959665",
"0.62586564",
"0.61966443",
"0.61934566",
"0.6188093",
"0.6180121",
"0.61761",
"0.61654204",
"0.6152242",
"0.6130652",
"0.60792303",
"0.6026295",
"0.6013026",
"0.5928394",
"0.59228235",
"0.59124434",
"0.58848... | 0.0 | -1 |
Funcion Auxiliar para ver la continuidad de las Cartas | public boolean EvaluaSucesor(char Valor, char Sucesor) {
if (Valor == Sucesor) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isCartValid();",
"public void testUsarCarta(){\n\t\tassertFalse(c1.haSidoUsada());\r\n\t\tc1.usarCarta();\r\n\t\tassertTrue(c1.haSidoUsada());\r\n\t\tc1.reiniciarCarta();\r\n\t\tassertFalse(c1.haSidoUsada());\r\n\t}",
"public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n ... | [
"0.6677486",
"0.65734905",
"0.64453363",
"0.6315408",
"0.62959665",
"0.62586564",
"0.61966443",
"0.61934566",
"0.6188093",
"0.6180121",
"0.61761",
"0.61654204",
"0.6152242",
"0.6130652",
"0.60792303",
"0.6026295",
"0.6013026",
"0.5928394",
"0.59228235",
"0.59124434",
"0.58848... | 0.0 | -1 |
Constructor that takes screen and monitorType. | MoviePlayer(String name, String manufacturer, Screen screen, MonitorType monitorType) {
super(name, ItemType.Visual,manufacturer);
this.screen = screen;
this.monitorType = monitorType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScreenMonitor(){\n this(Configuration.SCREEN_MONITOR_UPDATE_DELAY,\n\t \t\tConfiguration.SCREEN_MONITOR_LOGS_SIZE, \n\t \t\tConfiguration.SCREEN_MONITOR_LINE_SEPERATOR,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_MEMORY,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_POWER);\n }",
"public M... | [
"0.7693345",
"0.6931157",
"0.6504003",
"0.6425341",
"0.6230131",
"0.61845183",
"0.61653244",
"0.6102943",
"0.5876538",
"0.58089286",
"0.58018136",
"0.5798142",
"0.57885164",
"0.574296",
"0.57407093",
"0.5697528",
"0.56671315",
"0.5647606",
"0.5604404",
"0.56020236",
"0.555457... | 0.7201155 | 1 |
Configure settings xmpptcp connection. | public XMPPTCPConnection configureSettings(ConnectionSettings settings) {
XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration
.builder();
config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
config.setServiceName(settings.getXmppDomain... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n th... | [
"0.63185275",
"0.6018479",
"0.58772004",
"0.5739549",
"0.5690781",
"0.56890976",
"0.5585405",
"0.5552163",
"0.5477027",
"0.54688424",
"0.5412599",
"0.53713787",
"0.5350831",
"0.53353256",
"0.5276027",
"0.5269233",
"0.5264464",
"0.5263095",
"0.5220014",
"0.51796216",
"0.517867... | 0.72170484 | 0 |
addPresenceListener Set the presence listener for all users available will handle here | private void addPresenceListener() {
StanzaTypeFilter presenceFilter = new StanzaTypeFilter(Presence.class);
connection.addAsyncStanzaListener(new StanzaListener() {
@Override
public void processPacket(Stanza packet) throws SmackException.NotConnectedException {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addParticipantPresenceListener(\n AdHocChatRoomParticipantPresenceListener listener)\n {\n synchronized (memberListeners)\n {\n if (!memberListeners.contains(listener))\n memberListeners.add(listener);\n }\n }",
"private void listenOnlineUse... | [
"0.6611818",
"0.63917375",
"0.6365882",
"0.6321843",
"0.6267185",
"0.62652934",
"0.6265079",
"0.621068",
"0.6072335",
"0.60634744",
"0.60571873",
"0.6051962",
"0.5914606",
"0.5905127",
"0.58750665",
"0.5858805",
"0.58117396",
"0.58037686",
"0.5797906",
"0.57825816",
"0.569155... | 0.81608963 | 0 |
Set whether to enable session for the consumer. | public void setSessionEnabled(Boolean sessionEnabled) {
this.sessionEnabled = sessionEnabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setConsumerSession(HttpServletRequest request, String consumerSession) {\n HttpSession session = request.getSession(true);\n session.setAttribute(USER_ATTR, consumerSession);\n }",
"@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this... | [
"0.5933671",
"0.5856491",
"0.5804186",
"0.5598443",
"0.5568061",
"0.538493",
"0.5339297",
"0.5333394",
"0.5330075",
"0.5321397",
"0.53208005",
"0.53118753",
"0.5304073",
"0.52834386",
"0.5283057",
"0.5245319",
"0.52059215",
"0.5188788",
"0.51784754",
"0.5172161",
"0.5171441",... | 0.6798959 | 0 |
Set whether to enable autocomplete. | public void setAutoComplete(Boolean autoComplete) {
this.autoComplete = autoComplete;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setAutoCompleterCallback(AutoCompleterCallback callback);",
"public void setSuggestion(String value) {\n setAttributeInternal(SUGGESTION, value);\n }",
"public void setCompletionEnabled(boolean isEnabled) {\n completionEnabled = isEnabled;\n }",
"public void startAutocompletePrefetch... | [
"0.604013",
"0.5859889",
"0.5818527",
"0.5804886",
"0.5725993",
"0.55827355",
"0.55511564",
"0.5549586",
"0.55489457",
"0.55194044",
"0.5476781",
"0.54453206",
"0.54057705",
"0.53948396",
"0.53948396",
"0.5339797",
"0.5315798",
"0.5262856",
"0.5240721",
"0.5234694",
"0.523086... | 0.7823674 | 0 |
Set the prefetch count. | public void setPrefetchCount(Integer prefetchCount) {
this.prefetchCount = prefetchCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPrefetchCardCount(int n) {\n mController.setPrefetchCardCount(n);\n }",
"public Http2ClientBuilder prefetch(int prefetch) {\n this.prefetch = prefetch;\n return this;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public v... | [
"0.7272037",
"0.68853813",
"0.6521662",
"0.6521662",
"0.6521662",
"0.64414465",
"0.6417079",
"0.62284535",
"0.61814463",
"0.61791104",
"0.61774737",
"0.61739814",
"0.61482865",
"0.61448056",
"0.6123092",
"0.61080635",
"0.61080635",
"0.61080635",
"0.61080635",
"0.61080635",
"0... | 0.8265971 | 0 |
Set the sub queue. | public void setSubQueue(SubQueue subQueue) {
this.subQueue = subQueue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue );\r\n }",
"public void enqueue( MyTreeNode<T> treeNode ) {\n\t\tQueueNode newNode = new QueueNode(treeNode);\n\t\t// the queue is empty\n\t\tif ( tail == null ) {\n\t\t\t// the tail and the head point to the same only element in ... | [
"0.6710857",
"0.591957",
"0.5850726",
"0.5789319",
"0.57270193",
"0.5724692",
"0.56721175",
"0.5645705",
"0.56080294",
"0.55804855",
"0.5557746",
"0.55479723",
"0.5504272",
"0.5489639",
"0.5484778",
"0.54777724",
"0.54643697",
"0.5447532",
"0.5441398",
"0.5439443",
"0.54356",... | 0.81573915 | 0 |
Set the receiving mode. | public void setReceiveMode(ServiceBusReceiveMode receiveMode) {
this.receiveMode = receiveMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReceiverMode(CardSet cardSetToAppend) {\n setReceiverMode(this.cardSet.canAcceptCards(cardSetToAppend));\n }",
"public abstract void setBufferMode(int mode);",
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void setR... | [
"0.6611133",
"0.63515985",
"0.62866783",
"0.6077268",
"0.5936673",
"0.5891288",
"0.5783868",
"0.57260257",
"0.57022923",
"0.5680417",
"0.56669384",
"0.565646",
"0.56301147",
"0.5620457",
"0.560214",
"0.55821896",
"0.5576896",
"0.5564774",
"0.555951",
"0.55363613",
"0.552535",... | 0.6757908 | 0 |
Set the subscription name. | public void setSubscriptionName(String subscriptionName) {
this.subscriptionName = subscriptionName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}",
"public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }",
"public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(... | [
"0.67380977",
"0.6713818",
"0.6699601",
"0.66506064",
"0.6649229",
"0.66459465",
"0.66450274",
"0.66431564",
"0.6628797",
"0.66277015",
"0.66277015",
"0.66277015",
"0.66277015",
"0.66252345",
"0.66237557",
"0.66237557",
"0.6623477",
"0.6618091",
"0.6618091",
"0.6614768",
"0.6... | 0.6991971 | 0 |
Set the mau auto lock renew duration. | public void setMaxAutoLockRenewDuration(Duration maxAutoLockRenewDuration) {
this.maxAutoLockRenewDuration = maxAutoLockRenewDuration;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAutoLockTime(int seconds)\n {\n if(seconds >= 59 && seconds <= 7200)\n m_iAutoLockTime = seconds;\n }",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"synchronized void setExpiration(long newExpiration) {\n \texpiration = newExpiration;\n... | [
"0.6726376",
"0.63051337",
"0.60818374",
"0.5955175",
"0.5887776",
"0.5778051",
"0.5675633",
"0.56722164",
"0.5595053",
"0.55838513",
"0.5563086",
"0.55529463",
"0.5552844",
"0.5509807",
"0.5502802",
"0.54939306",
"0.54804224",
"0.53895104",
"0.5385399",
"0.53385055",
"0.5327... | 0.6821563 | 0 |
The default port number. | public static void main(String args[]) {
int portNumber = 8000;
if (args.length < 2) {
System.out.println("Usage: java Server <portNumber>\n"
+ "Now using port number=" + portNumber + "\n" +
"Maximum user count=" + maxUsersCount);
} else {
portNumber = Integer.valueOf(args[0]).intValue();
maxUs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDefaultPort() {\n return defaultPort;\n }",
"public void setDefaultPort() {\r\n\t\tsetPort(DEFAULT_PORT);\r\n\t}",
"public int getStandardPort()\n\t{\n\t\treturn DEFAULT_PORT;\n\t}",
"protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }",
"@Override\n public int... | [
"0.874512",
"0.8337473",
"0.8211434",
"0.7934353",
"0.7775653",
"0.7630885",
"0.75865066",
"0.74741817",
"0.74535054",
"0.7420626",
"0.7420626",
"0.741554",
"0.7414862",
"0.74020267",
"0.73620635",
"0.73548925",
"0.7339174",
"0.73262167",
"0.73262167",
"0.7310589",
"0.7309272... | 0.0 | -1 |
For simplicity, set to 5. | public userThread(Socket userSocket, userThread[] threads) {
this.userSocket = userSocket;
this.threads = threads;
this.friends = new ArrayList<userThread>();
this.groups = new ArrayList<String>();
this.myGroups = new ArrayList<String>();
maxUsersCount = threads.length;
maxGroupsCount = 5;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStar5Count(Integer star5Count) {\n this.star5Count = star5Count;\n }",
"public void setOneNewWanted () {\r\n numWanted ++;\r\n }",
"public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.print... | [
"0.65123945",
"0.63623005",
"0.62474114",
"0.6107029",
"0.6078857",
"0.6021342",
"0.6021342",
"0.6021342",
"0.59915435",
"0.59915435",
"0.5957037",
"0.59343976",
"0.5904158",
"0.5896003",
"0.5891134",
"0.58399975",
"0.5836521",
"0.5816309",
"0.5800506",
"0.58002037",
"0.57959... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void destroy() {
} | {
"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 |
Get the value of uploadedfile | public UploadedFile getUploadedfile() {
return uploadedfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UploadedFileDTO getFile() {\r\n\t\ttype(ConfigurationItemType.FILE);\r\n\t\treturn fileValue;\r\n\t}",
"public File getFileValue();",
"public FileUpload getFileUpload() {\r\n return fileUpload;\r\n }",
"public MultipartFile getFile() {\n return this.file;\n }",
"public MultipartF... | [
"0.74288934",
"0.7387773",
"0.70500964",
"0.6686452",
"0.6652752",
"0.65849835",
"0.65849835",
"0.65340215",
"0.65001535",
"0.64998746",
"0.6457429",
"0.64227426",
"0.6385607",
"0.6376929",
"0.63573",
"0.6344939",
"0.6333414",
"0.6315171",
"0.63095766",
"0.63058096",
"0.62953... | 0.7158111 | 2 |
Set the value of uploadedfile | public void setUploadedfile(UploadedFile uploadedfile) {
this.uploadedfile = uploadedfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFile(UploadedFileDTO value) {\r\n\t\ttype(ConfigurationItemType.FILE);\r\n\t\tthis.fileValue = value;\r\n\t}",
"public void setFileUpload(FileUpload fileUpload) {\r\n this.fileUpload = fileUpload;\r\n }",
"public void setFile(File f) { file = f; }",
"public void setFile(File file);",... | [
"0.7820199",
"0.7077527",
"0.6883821",
"0.68299073",
"0.6673185",
"0.6491027",
"0.6462964",
"0.6428507",
"0.6389889",
"0.63813716",
"0.6229644",
"0.62259066",
"0.62253064",
"0.6202601",
"0.6189017",
"0.6160508",
"0.6127398",
"0.6122489",
"0.61154145",
"0.6114961",
"0.61087817... | 0.7024022 | 2 |
/ 1 Transaction method as Propagation behavior as REQUIRED REQUIRED :Indicates that the target method can not run without an active tx. If a tx has already been started before the invocation of this method, then it will continue in the same tx or a new tx would begin soon as this method is called. | @Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, readOnly = false, rollbackFor = Exception.class)
public long saveUser(UserBO userBO) {
logger.info("Begin : " + getClass().getName() + " :saveUser()");
long userId = 0;
/*DefaultTransactionDefinition definition = new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Transactional(Transactional.TxType.NOT_SUPPORTED)\n\tpublic void notSupported() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NOT_SUPPORTED\");\n\t // Here the container will make sure that the method will run in no transaction scope and will suspend any transaction started by the c... | [
"0.67594767",
"0.6452884",
"0.63926226",
"0.6369579",
"0.6177614",
"0.6080645",
"0.6076201",
"0.6064459",
"0.600184",
"0.5998819",
"0.58874214",
"0.58814865",
"0.58775645",
"0.5824548",
"0.58016497",
"0.57735443",
"0.57654023",
"0.5749982",
"0.56731176",
"0.562992",
"0.562791... | 0.0 | -1 |
/ Propagation as REQUIRES_NEW with Isolation as SERIALIZABLE SERIALIZABLE : A constant indicating that dirty reads, nonrepeatable reads, and phantom reads are prevented. This is the highest isolation level and usually requires the use of shared read locks and exclusive write locks (as in the case of MySQL). Phantom Rea... | @Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.SERIALIZABLE)
@Override
public List<UserBO> listUser(String criteria) {
logger.info("Begin : " + getClass().getName() + " : listUser()");
List<UserBO> userBOList = securityDao.listUser(criteria);
logger.info("User list 1st fetched : ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TransactionIsolation isolation();",
"@Transactional(Transactional.TxType.REQUIRES_NEW)\n\tpublic void requiresNew() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.REQUIRES_NEW\");\n\t // Here the container will always start a new transaction and run the method inside its scop... | [
"0.64788854",
"0.6439968",
"0.6300294",
"0.59965986",
"0.5991745",
"0.5904513",
"0.5902142",
"0.58678705",
"0.5703471",
"0.56591344",
"0.56231797",
"0.5613752",
"0.5540949",
"0.554047",
"0.55038196",
"0.5463897",
"0.545567",
"0.53826183",
"0.5381078",
"0.5366829",
"0.53604865... | 0.0 | -1 |
/ Spring Framework provides two ways to manage programmatic transaction list shown below: By using TransactionTemplate By using PlatformTransactionManager implementation directly to the code Typical usage: Allows for writing lowlevel data access objects that use resources such as JDBC DataSources but are not transactio... | @Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, readOnly = false, rollbackFor = Exception.class)
@Override
public long saveUserWithTemplate(UserBO user) {
logger.info("Begin : " + getClass().getName() + " :saveUser()");
long userId = 0;
try {
userId = security... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Bean\r\n public PlatformTransactionManager transactionManager() {\r\n return new DataSourceTransactionManager(dynamicDataSource());\r\n }",
"public SpringAwareJdbcTransactionManager() {\r\n }",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n Transacti... | [
"0.65002346",
"0.6335032",
"0.6330962",
"0.63073385",
"0.62593746",
"0.62576455",
"0.61701703",
"0.61477613",
"0.60135114",
"0.599848",
"0.5990575",
"0.5942086",
"0.59372693",
"0.59215146",
"0.58963794",
"0.58452857",
"0.5827151",
"0.58052117",
"0.5804635",
"0.57901853",
"0.5... | 0.0 | -1 |
ICR 25/09/2012 PAS20124E550000721 AJUSTES A 8 HORAS DE RECUPERACION PARA DL 1057(CAS) Y DL 276728 POR CADA DIA DE FERIADO COMPENSABLE AJUSTES A 8 HORAS DE RECUPERACION PARA DL 1057(CAS) Y DL 276728 POR CADA DIA DE FERIADO COMPENSABLE | public int calcularHorasCompensaModif(String dbpool, String codPers, String fechaIni, String fechaFin)
throws IncompleteConversationalState, RemoteException {
int numHoras = 0;
BeanMensaje beanM = new BeanMensaje();
try {
T01DAO paramDAO = new T01DAO();
T1270DAO dao = new T1270DAO();
String fIni ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getField1904();",
"public String getLBR_DocLine_ICMS_UU();",
"C2451d mo3408a(C2457e c2457e);",
"private String getABDATE(String LP_STRDT,int LP_DDCNT,char LP_ABFLG) \n\t{\n\t\t\n\t\tint L_YRVAL = Integer.parseInt(LP_STRDT.substring(6,10));\n\t if(L_YRVAL%4 == 0)\n\t\t arrDAYS[1] = \"29\";\... | [
"0.5613662",
"0.545065",
"0.5436296",
"0.54355305",
"0.5395058",
"0.5332737",
"0.5326393",
"0.53032386",
"0.529708",
"0.529686",
"0.52742434",
"0.5229639",
"0.5225652",
"0.5219926",
"0.5218684",
"0.52127314",
"0.51948774",
"0.5191293",
"0.5188497",
"0.51844156",
"0.51792634",... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void execute() {
for(int i=0;i<coms.length;i++)
coms[i].execute();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Creates a new ScrollView. | public ScrollView()
{
// Configure ScrollView
setBorder(SCROLL_VIEW_BORDER);
// Create Scroller and add listeners for scroll changes
_scroller = new Scroller();
_scroller.addPropChangeListener(pc -> scrollerDidPropChange(pc), Width_Prop, Height_Prop,
Scroller.Scr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScrollView(View aView) { this(); setContent(aView); }",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_Transf... | [
"0.73595184",
"0.627676",
"0.62667745",
"0.6247337",
"0.61831164",
"0.61147624",
"0.602588",
"0.58194923",
"0.57724714",
"0.5756379",
"0.57239056",
"0.5690682",
"0.56452465",
"0.5632766",
"0.5602254",
"0.55775154",
"0.55688924",
"0.5547533",
"0.5538483",
"0.5509755",
"0.54950... | 0.7501853 | 0 |
Creates a new ScrollView. | public ScrollView(View aView) { this(); setContent(aView); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScrollView()\n {\n // Configure ScrollView\n setBorder(SCROLL_VIEW_BORDER);\n\n // Create Scroller and add listeners for scroll changes\n _scroller = new Scroller();\n _scroller.addPropChangeListener(pc -> scrollerDidPropChange(pc), Width_Prop, Height_Prop,\n ... | [
"0.7501853",
"0.627676",
"0.62667745",
"0.6247337",
"0.61831164",
"0.61147624",
"0.602588",
"0.58194923",
"0.57724714",
"0.5756379",
"0.57239056",
"0.5690682",
"0.56452465",
"0.5632766",
"0.5602254",
"0.55775154",
"0.55688924",
"0.5547533",
"0.5538483",
"0.5509755",
"0.549505... | 0.73595184 | 1 |
ViewHost method: Override to send to Scroller. | public int getGuestCount() { return _scroller.getGuestCount(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
... | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383... | 0.0 | -1 |
ViewHost method: Override to send to Scroller. | public View getGuest(int anIndex) { return _scroller.getGuest(anIndex); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
... | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383... | 0.505693 | 65 |
ViewHost method: Override to send to Scroller. | public void addGuest(View aChild, int anIndex) { _scroller.addGuest(aChild, anIndex); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
... | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383... | 0.0 | -1 |
ViewHost method: Override to send to Scroller. | public View removeGuest(int anIndex) { return _scroller.removeGuest(anIndex); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
... | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383... | 0.0 | -1 |
Returns the view that handles scrolling. | public Scroller getScroller() { return _scroller; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ScrollPane scrollPane() {\r\n return (ScrollPane) this.getParent();\r\n }",
"public View getView() { return view; }",
"public OverScroller getScroller() {\n return mEventHandler.getScroller();\n }",
"public View getView() {\n return view;\n }",
"public ViewIdentificato... | [
"0.6403821",
"0.6250465",
"0.62472427",
"0.61632496",
"0.61470455",
"0.60793686",
"0.6049653",
"0.60122436",
"0.59920967",
"0.5821419",
"0.5805589",
"0.58016145",
"0.57997984",
"0.5779789",
"0.5763201",
"0.57399195",
"0.573127",
"0.5726803",
"0.56994253",
"0.56911105",
"0.568... | 0.57998323 | 12 |
Returns the Horizontal ScrollBar. | public ScrollBar getHBar()
{
if (_hbar!=null) return _hbar;
_hbar = new ScrollBar();
_hbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);
return _hbar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* ... | [
"0.8036095",
"0.7710129",
"0.7262618",
"0.69775933",
"0.69742095",
"0.67710406",
"0.672089",
"0.66849613",
"0.6382787",
"0.63647753",
"0.62590337",
"0.62491745",
"0.62369466",
"0.6214349",
"0.61810935",
"0.6145771",
"0.6144099",
"0.6116296",
"0.60851526",
"0.6045473",
"0.6037... | 0.6124233 | 17 |
Returns the vertical ScrollBar. | public ScrollBar getVBar()
{
if (_vbar!=null) return _vbar;
_vbar = new ScrollBar(); _vbar.setVertical(true);
_vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);
return _vbar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\... | [
"0.8174877",
"0.76847863",
"0.7369136",
"0.73139566",
"0.7309141",
"0.725794",
"0.6996339",
"0.6860988",
"0.6802129",
"0.67132616",
"0.6670899",
"0.66512066",
"0.6644163",
"0.6634223",
"0.66281205",
"0.6508082",
"0.6467551",
"0.6458801",
"0.62890196",
"0.6249381",
"0.62086207... | 0.7648499 | 2 |
Returns whether to show horizontal scroll bar (null means 'asneeded'). | public Boolean getShowHBar() { return _showHBar; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontall... | [
"0.7976274",
"0.76555544",
"0.7187078",
"0.71146685",
"0.693954",
"0.6936046",
"0.6888952",
"0.64063567",
"0.6399431",
"0.63742054",
"0.635711",
"0.62728536",
"0.6261338",
"0.6233121",
"0.622377",
"0.6208944",
"0.6091166",
"0.6077439",
"0.6019676",
"0.6006919",
"0.5969563",
... | 0.5556682 | 37 |
Sets whether to show horizontal scroll bar (null means 'asneeded'). | public void setShowHBar(Boolean aValue)
{
if (aValue==_showHBar) return;
firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public void setHorizontalScrollingEnabled(boolean enabled) {\n config.horizontalScrollingEnabled = enabled;\n }",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n ... | [
"0.70265716",
"0.6986172",
"0.68424577",
"0.6708212",
"0.6700886",
"0.6599659",
"0.6518335",
"0.64414066",
"0.63947743",
"0.6244925",
"0.620591",
"0.6162951",
"0.61340296",
"0.60782397",
"0.5990259",
"0.5902519",
"0.5741039",
"0.5722647",
"0.56875956",
"0.56627697",
"0.565347... | 0.50757533 | 45 |
Returns whether to show vertical scroll bar (null means 'asneeded'). | public Boolean getShowVBar() { return _showVBar; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBa... | [
"0.7161417",
"0.71331376",
"0.70962954",
"0.70496166",
"0.700315",
"0.6898071",
"0.6580564",
"0.65741384",
"0.65381694",
"0.64565825",
"0.64264643",
"0.6347756",
"0.6253834",
"0.6148656",
"0.61094654",
"0.610566",
"0.6104529",
"0.6088409",
"0.6084684",
"0.60567707",
"0.604883... | 0.59777856 | 26 |
Returns whether to show vertical scroll bar (null means 'asneeded'). | public void setShowVBar(Boolean aValue)
{
if (aValue==_showVBar) return;
firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBa... | [
"0.7161417",
"0.71331376",
"0.70962954",
"0.70496166",
"0.700315",
"0.6898071",
"0.6580564",
"0.65741384",
"0.65381694",
"0.64565825",
"0.64264643",
"0.6347756",
"0.6253834",
"0.6148656",
"0.61094654",
"0.610566",
"0.6104529",
"0.6088409",
"0.6084684",
"0.60567707",
"0.604883... | 0.0 | -1 |
Returns whether HBar is showing. | public boolean isHBarShowing() { return getHBar().getParent()!=null; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getShowHBar() { return _showHBar; }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"public boolean isMiniHealthBarVisible() {\n return miniHealthBarVisible;\n }",
"public boolean isHdrShow() {\n SettingsManager settingsManager = this.mActivity.ge... | [
"0.7995664",
"0.7487417",
"0.7357583",
"0.7333998",
"0.71794444",
"0.71493816",
"0.70678765",
"0.70636725",
"0.6981125",
"0.69236857",
"0.6841922",
"0.67776823",
"0.6747413",
"0.66354156",
"0.66288537",
"0.6519029",
"0.6491153",
"0.64613104",
"0.64466536",
"0.6439601",
"0.642... | 0.8798357 | 0 |
Sets whether HBar is showing. | protected void setHBarShowing(boolean aValue)
{
// If already set, just return
if (aValue==isHBarShowing()) return;
// If showing, add and update
ScrollBar hbar = getHBar();
if (aValue) {
addChild(hbar);
hbar.setViewSize(_scroller.getWidth());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setShowHBar(Boolean aValue)\n {\n if (aValue==_showHBar) return;\n firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);\n }",
"public Boolean getShowHBar() { return _showHBar; }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"private void ... | [
"0.85790503",
"0.77637744",
"0.759264",
"0.70024",
"0.6911833",
"0.68991",
"0.68763053",
"0.6436966",
"0.6369157",
"0.633461",
"0.6332161",
"0.62913024",
"0.6291034",
"0.62880945",
"0.62305987",
"0.62051797",
"0.61799216",
"0.61190265",
"0.60404676",
"0.6036999",
"0.60217214"... | 0.80169505 | 1 |
Returns whether VBar is showing. | public boolean isVBarShowing() { return getVBar().getParent()!=null; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getShowVBar() { return _showVBar; }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"public boolean isProgressBarVisible() {\r\n return pBarVisible;\r\n }",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n ... | [
"0.7874056",
"0.7373451",
"0.727501",
"0.7071241",
"0.70680547",
"0.7057405",
"0.6711968",
"0.6707126",
"0.66988987",
"0.6659398",
"0.6656693",
"0.65756166",
"0.6554411",
"0.6434335",
"0.6381786",
"0.637435",
"0.6369237",
"0.6369237",
"0.6369237",
"0.6358466",
"0.63480675",
... | 0.8875056 | 0 |
Sets whether VBar is showing. | protected void setVBarShowing(boolean aValue)
{
// If already set, just return
if (aValue==isVBarShowing()) return;
// If showing, add and update
ScrollBar vbar = getVBar();
if (aValue) {
addChild(vbar);
vbar.setViewSize(_scroller.getHeight());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setShowVBar(Boolean aValue)\n {\n if (aValue==_showVBar) return;\n firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);\n }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"public Boolean getShowVBar() { return _showVBar; }",
"public void s... | [
"0.846699",
"0.7659423",
"0.7620118",
"0.7080259",
"0.69083035",
"0.66236955",
"0.6586576",
"0.64696074",
"0.6464737",
"0.6380114",
"0.634562",
"0.6329147",
"0.6256724",
"0.6234594",
"0.61403364",
"0.6131034",
"0.60306615",
"0.6028156",
"0.5985461",
"0.59822786",
"0.5964596",... | 0.7953675 | 1 |
Returns the scroll bar size. | public int getBarSize() { return _barSize; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getHScrollbarHeight();",
"int getVScrollbarWidth();",
"public int getBarSize() {\n return mBarSize;\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"public int getScrollWidth() {\... | [
"0.7320244",
"0.71987844",
"0.7024007",
"0.7018261",
"0.696071",
"0.67655",
"0.6582604",
"0.65611404",
"0.6513067",
"0.64850545",
"0.6442935",
"0.6442935",
"0.64324474",
"0.6424959",
"0.6390635",
"0.6378868",
"0.63539875",
"0.63208413",
"0.6292751",
"0.6258048",
"0.6226835",
... | 0.6536316 | 8 |
Sets the scroll bar size. | public void setBarSize(int aValue)
{
if (aValue==_barSize) return;
firePropChange(BarSize_Prop, _barSize, _barSize = aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n ... | [
"0.71061033",
"0.6618197",
"0.61794454",
"0.61636853",
"0.61395276",
"0.612209",
"0.6098713",
"0.6080905",
"0.6061836",
"0.6055588",
"0.60106605",
"0.60106605",
"0.5991018",
"0.5991018",
"0.5991018",
"0.5991018",
"0.594441",
"0.5937904",
"0.5925067",
"0.59241945",
"0.59241945... | 0.623817 | 2 |
Returns whether this ScrollView fits content to its width. | public boolean isFillWidth() { return _scroller.isFillWidth(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasScrollableContent() {\n return true;\n }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"@java.lang.Override\n public boolean hasWidth() {\n return instance.hasWidth();\n }",
"public boolean hasContent() {\n return getContentSize() > 0... | [
"0.6838701",
"0.6455386",
"0.6455386",
"0.6455386",
"0.6210412",
"0.6113069",
"0.5957332",
"0.58725053",
"0.58699244",
"0.5866895",
"0.5864168",
"0.5828039",
"0.5828039",
"0.5828039",
"0.57997507",
"0.5751338",
"0.57498777",
"0.56731784",
"0.56009585",
"0.5590949",
"0.5589943... | 0.6411301 | 4 |
Sets whether this ScrollView fits content to its width. | public void setFillWidth(boolean aValue)
{
_scroller.setFillWidth(aValue);
relayout();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFitWidth(short width);",
"public boolean isFillWidth() { return _scroller.isFillWidth(); }",
"public void setViewportFit(@WebContentsObserver.ViewportFitType int value) {\n if (value == mViewportFit) return;\n\n mViewportFit = value;\n maybeUpdateLayout();\n }",
"@Override\n\... | [
"0.587911",
"0.5420504",
"0.5386598",
"0.53831935",
"0.53656024",
"0.5328994",
"0.53197366",
"0.52227724",
"0.5180795",
"0.51721877",
"0.51667464",
"0.5160641",
"0.5159516",
"0.5084597",
"0.5065821",
"0.50441957",
"0.50342196",
"0.5029178",
"0.5008194",
"0.49918804",
"0.49753... | 0.5680835 | 1 |
Returns whether this ScrollView fits content to its height. | public boolean isFillHeight() { return _scroller.isFillHeight(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasHeight();",
"boolean hasHeight();",
"boolean hasHeight();",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"public boolean hasScrollableContent() {\n return true;\n }",
"@java.lang.Override\n public b... | [
"0.71203375",
"0.71203375",
"0.71203375",
"0.69323224",
"0.6834723",
"0.67323583",
"0.6473485",
"0.6274489",
"0.62601745",
"0.61788607",
"0.606075",
"0.5964367",
"0.57095855",
"0.57058",
"0.5697025",
"0.5679612",
"0.5653471",
"0.56161326",
"0.560738",
"0.55689067",
"0.5568241... | 0.67820835 | 5 |
Sets whether this ScrollView fits content to its height. | public void setFillHeight(boolean aValue)
{
_scroller.setFillHeight(aValue);
relayout();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFitHeight(short height);",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public void setHeight (int height) {\n if (height < 10) {\n Log.warning(\"Attempted to set a checkbox height of less than 10 pixels.\");\n return;\n }\n\n synchr... | [
"0.60337096",
"0.5952731",
"0.5727599",
"0.5646049",
"0.5594346",
"0.5564402",
"0.55568486",
"0.5552874",
"0.5536009",
"0.5518068",
"0.55095136",
"0.5502245",
"0.5502245",
"0.5449399",
"0.5449399",
"0.5449399",
"0.5383067",
"0.5372848",
"0.536658",
"0.5342083",
"0.5338444",
... | 0.59243375 | 2 |
Calculates the minimum width. | protected double getMinWidthImpl()
{
Insets ins = getInsetsAll();
double minW = _scroller.getMinWidth();
return minW + ins.getWidth();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public int getMinWidth();",
"public float getMinWidth() {\r\n return width.min;\r\n }",
"public double getMinWidth() { return getMinWidth(-1); }",
"public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }",
"public int getMinimumWidth() ... | [
"0.8266591",
"0.8078456",
"0.8052226",
"0.7756002",
"0.7744762",
"0.74982464",
"0.71927994",
"0.7055198",
"0.70265955",
"0.70054984",
"0.70011884",
"0.69310296",
"0.692195",
"0.68651164",
"0.68547505",
"0.6836965",
"0.68060327",
"0.68054914",
"0.6778337",
"0.67687047",
"0.672... | 0.732249 | 6 |
Calculates the minimum height. | protected double getMinHeightImpl()
{
Insets ins = getInsetsAll();
double minH = _scroller.getMinHeight();
return minH + ins.getHeight();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"abstract public int getMinHeight();",
"public int getMinHeight() {\n checkWidget();\n return minHeight;\n }",
"public double getMinHeight(double aValue) { Double h = (Double)get(\"MinHeight\")... | [
"0.80669796",
"0.7943534",
"0.7627466",
"0.7471546",
"0.6830426",
"0.6760083",
"0.6740606",
"0.673316",
"0.6729271",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67... | 0.69858205 | 4 |
Calculates the preferred width. | protected double getPrefWidthImpl(double aH)
{
Insets ins = getInsetsAll();
double prefW = _scroller.getBestWidth(aH);
if (_showVBar == Boolean.TRUE)
prefW += getBarSize();
return prefW + ins.getWidth();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double getSuggestedPrefWidth()\n {\n Insets ins = getPadding();\n double prefW = ins.getWidth();\n\n // Add width for line numbers\n if (_showLineNumbers) {\n Font font = _textArea.getFont();\n int lineCount = _textArea.getLineCount();\n doubl... | [
"0.7439954",
"0.7275904",
"0.7240143",
"0.723472",
"0.7216797",
"0.7162926",
"0.713701",
"0.7136344",
"0.71170545",
"0.7054257",
"0.70461345",
"0.6960496",
"0.69553083",
"0.6938388",
"0.69198817",
"0.687862",
"0.6875283",
"0.6860597",
"0.6852056",
"0.6794514",
"0.67752314",
... | 0.0 | -1 |
Calculates the preferred height. | protected double getPrefHeightImpl(double aW)
{
Insets ins = getInsetsAll();
double prefH = _scroller.getBestHeight(aW);
if (_showHBar == Boolean.TRUE)
prefH += getBarSize();
return prefH + ins.getHeight();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void computeHeight() {\n\t\tif (getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 3 / 4);\n\t\t\t}\n\t... | [
"0.7670484",
"0.7471318",
"0.73919463",
"0.7384209",
"0.7360925",
"0.73173153",
"0.7302053",
"0.72996265",
"0.7249177",
"0.72485816",
"0.7244256",
"0.72372144",
"0.7234407",
"0.72257",
"0.7218433",
"0.7218433",
"0.7218433",
"0.7218433",
"0.7218433",
"0.7218433",
"0.72162145",... | 0.0 | -1 |
Override to layout children. | protected void layoutImpl()
{
// Get area bounds
Insets ins = getInsetsAll();
double areaX = ins.left;
double areaY = ins.top;
double areaW = getWidth() - ins.getWidth();
double areaH = getHeight() - ins.getHeight();
// Account for ScrollBars
boolean ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n ... | [
"0.748448",
"0.7342095",
"0.72759426",
"0.71182644",
"0.71140265",
"0.7082637",
"0.6960431",
"0.68988466",
"0.68208253",
"0.67721444",
"0.67460454",
"0.67151916",
"0.6663481",
"0.66543084",
"0.6651374",
"0.65656394",
"0.65294856",
"0.6503667",
"0.64825934",
"0.64682406",
"0.6... | 0.0 | -1 |
Called to update whether ScrollBars are showing. Returns true if any changes. | protected boolean updateScrollBarsShowing()
{
// Get Scroller Size
double scrollerW = _scroller.getWidth();
double scrollerH = _scroller.getHeight();
// Get child size
Size contentSize = _scroller.getContentPrefSize();
double contentW = contentSize.getWidth();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateScrollbars() {\n if (!inUpdateScrollbars) {\n inUpdateScrollbars = true;\n try {\n doUpdateScrollbar();\n } finally {\n inUpdateScrollbars = false;\n }\n } else {\n if (!inUpdateScrollbarsLogged) {\n inUpdateScrollbarsLogged = true;\n IL... | [
"0.6536667",
"0.62928927",
"0.6265502",
"0.62568843",
"0.6221777",
"0.6196048",
"0.6168481",
"0.6088603",
"0.6077235",
"0.59796417",
"0.59658605",
"0.59485316",
"0.5819317",
"0.5811028",
"0.575758",
"0.57339406",
"0.57163805",
"0.5711223",
"0.57092565",
"0.5707753",
"0.567628... | 0.81090593 | 0 |
Returns the default border. | public Border getDefaultBorder() { return SCROLL_VIEW_BORDER; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float border() {\n\t\treturn borderThickness;\n\t}",
"public Border getBorder()\n {\n return null;\n }",
"public java.lang.String getBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n ... | [
"0.7715494",
"0.7661617",
"0.7408482",
"0.7317311",
"0.7280692",
"0.7263836",
"0.7256603",
"0.7226312",
"0.7068803",
"0.69876856",
"0.69428205",
"0.6930008",
"0.69271237",
"0.68859446",
"0.68736184",
"0.68471587",
"0.67703617",
"0.66992205",
"0.6688395",
"0.6684714",
"0.66372... | 0.78987634 | 0 |
Handle Scroller property changes. | protected void scrollerDidPropChange(PropChange anEvent)
{
// Get Property Name
String pname = anEvent.getPropName();
// Handle Scroller.ScrollX change
if (pname==Scroller.ScrollX_Prop)
getHBar().setScroll(_scroller.getScrollX());
// Handle Scroller.ScrollY chan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void scrollBarDidPropChange(PropChange aPC)\n {\n String pname = aPC.getPropName();\n if (pname==ScrollBar.Scroll_Prop) {\n ScrollBar sbar = (ScrollBar)aPC.getSource();\n double val = sbar.getScrollRatio();\n if (sbar==_hbar)\n _scroller.setSc... | [
"0.6493487",
"0.6240477",
"0.59605044",
"0.59360445",
"0.5859578",
"0.58581257",
"0.58441955",
"0.58441955",
"0.5752953",
"0.5747143",
"0.57361925",
"0.5712792",
"0.57051075",
"0.56851023",
"0.56743497",
"0.56368667",
"0.5631013",
"0.55843705",
"0.5464011",
"0.5445663",
"0.54... | 0.6821332 | 0 |
Handle ScrollBar property changes. | public void scrollBarDidPropChange(PropChange aPC)
{
String pname = aPC.getPropName();
if (pname==ScrollBar.Scroll_Prop) {
ScrollBar sbar = (ScrollBar)aPC.getSource();
double val = sbar.getScrollRatio();
if (sbar==_hbar)
_scroller.setScrollXRatio(v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleScrollBarUpdate(ScrollBar scrollBar);",
"public void propertyChange(PropertyChangeEvent param1PropertyChangeEvent) {\n/* 1520 */ String str = param1PropertyChangeEvent.getPropertyName();\n/* 1521 */ if (str == \"horizontalScrollBar\" || str == \"verticalScrollBar\")\n/* */ ... | [
"0.80191267",
"0.74403584",
"0.73464787",
"0.6892067",
"0.6827332",
"0.6718419",
"0.6705209",
"0.66656995",
"0.6661924",
"0.6494815",
"0.64858675",
"0.64759195",
"0.64241725",
"0.6191685",
"0.61726636",
"0.615333",
"0.60991186",
"0.60577506",
"0.6021174",
"0.60093117",
"0.600... | 0.7425258 | 2 |
Create a special policy that only compacts single stripes, using standard methods. | @Test
public void testSingleStripeCompaction() throws Exception {
Configuration conf = HBaseConfiguration.create();
// Test depends on this not being set to pass. Default breaks test. TODO: Revisit.
conf.unset("hbase.hstore.compaction.min.size");
conf.setFloat(CompactionConfiguration.HBASE_HSTORE_COMP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testWithParallelCompaction() throws Exception {\n assertNull(createPolicy(HBaseConfiguration.create())\n .selectCompaction(mock(StripeInformationProvider.class), al(createFile()), false));\n }",
"protected static PolicyModelGenerator getCompactGenerator(PolicySourceModelCreator crea... | [
"0.48604348",
"0.47579774",
"0.47484562",
"0.47300476",
"0.46686035",
"0.45902207",
"0.45818135",
"0.45575905",
"0.4555275",
"0.45487967",
"0.4467609",
"0.44623256",
"0.44103736",
"0.44059646",
"0.43981698",
"0.4393088",
"0.4345982",
"0.43353498",
"0.43229148",
"0.42809954",
... | 0.5900675 | 0 |
TODO: currently only one compaction at a time per store is allowed. If this changes, the appropriate file exclusion testing would need to be done in respective tests. | @Test
public void testWithParallelCompaction() throws Exception {
assertNull(createPolicy(HBaseConfiguration.create())
.selectCompaction(mock(StripeInformationProvider.class), al(createFile()), false));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract CompactionContext createCompaction() throws IOException;",
"@Test\n public void testCompact_Overflow_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Overflow_Caching_... | [
"0.63077885",
"0.6036733",
"0.60261905",
"0.5998422",
"0.5961613",
"0.5949324",
"0.5900351",
"0.5899511",
"0.5815056",
"0.5794604",
"0.57199025",
"0.57066154",
"0.5702219",
"0.56833476",
"0.5548431",
"0.55282617",
"0.5518472",
"0.5481071",
"0.547642",
"0.5400333",
"0.53006405... | 0.59336853 | 6 |
test select ALL L0 files when L0 files count > MIN_FILES_L0_KEY | @Test
public void testSelectL0Compaction() throws Exception {
Configuration conf = HBaseConfiguration.create();
conf.setInt(StripeStoreConfig.MIN_FILES_L0_KEY, 4);
StripeCompactionPolicy policy = createPolicy(conf);
StripeCompactionPolicy.StripeInformationProvider si = createStripesWithSizes(10, 10L,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(timeout = 4000)\n public void test00() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"CV-~)\\\"Y\", \"-U#7E}O`T!okId wU\", \"zHFHC!.<lL5O#\", \"'>K(/]ff]lA`\", \"-U#7E}O`T!okId wU\", \"\");\n assertNull(f... | [
"0.54224145",
"0.54161114",
"0.53242946",
"0.5318241",
"0.53175384",
"0.5314818",
"0.5292967",
"0.51910794",
"0.515874",
"0.51539546",
"0.51509094",
"0.5098165",
"0.5062704",
"0.50601375",
"0.50526905",
"0.50282747",
"0.49676174",
"0.49155194",
"0.4887374",
"0.48807684",
"0.4... | 0.63699734 | 0 |
Verify the compaction that includes several entire stripes. | private void verifyWholeStripesCompaction(StripeCompactionPolicy policy,
StripeInformationProvider si, int from, int to, Boolean dropDeletes, Integer count, Long size,
boolean needsCompaction) throws IOException {
verifyCompaction(policy, si, getAllFiles(si, from, to), dropDeletes, count, size,
si.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testSingleStripeCompaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n // Test depends on this not being set to pass. Default breaks test. TODO: Revisit.\n conf.unset(\"hbase.hstore.compaction.min.size\");\n conf.setFloat(CompactionConfiguration.HBASE... | [
"0.71334565",
"0.6027082",
"0.5617527",
"0.531687",
"0.52902836",
"0.52840966",
"0.5265976",
"0.51924354",
"0.514248",
"0.51093584",
"0.50830084",
"0.50607365",
"0.5034328",
"0.50316334",
"0.5021051",
"0.5020048",
"0.5003825",
"0.49962607",
"0.49958315",
"0.4989651",
"0.49809... | 0.6990818 | 1 |
Verify no compaction is needed or selected. | private void verifyNoCompaction(StripeCompactionPolicy policy, StripeInformationProvider si)
throws IOException {
assertNull(policy.selectCompaction(si, al(), false));
assertFalse(policy.needsCompactions(si, al()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testWithParallelCompaction() throws Exception {\n assertNull(createPolicy(HBaseConfiguration.create())\n .selectCompaction(mock(StripeInformationProvider.class), al(createFile()), false));\n }",
"@Test\n @SmallTest\n public void tesUiccCartdInfoSanity() {\n assertEquals... | [
"0.6263677",
"0.5958486",
"0.57302725",
"0.561033",
"0.55703944",
"0.5540855",
"0.5473002",
"0.54504544",
"0.5421957",
"0.5420872",
"0.5365047",
"0.535779",
"0.53534377",
"0.53189373",
"0.53157526",
"0.52593946",
"0.5225038",
"0.5221882",
"0.52084655",
"0.51954865",
"0.519317... | 0.7021335 | 0 |
This method actually does all the work. | private static StripeInformationProvider createStripesWithFiles(List<byte[]> boundaries,
List<List<HStoreFile>> stripeFiles, List<HStoreFile> l0Files) throws Exception {
ArrayList<ImmutableList<HStoreFile>> stripes = new ArrayList<>();
ArrayList<byte[]> boundariesList = new ArrayList<>();
StripeInformat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void ru... | [
"0.6381818",
"0.6358439",
"0.6323066",
"0.6323066",
"0.6301135",
"0.62768054",
"0.62768054",
"0.620028",
"0.6177323",
"0.6155311",
"0.60901546",
"0.60901546",
"0.60567266",
"0.6053356",
"0.6031268",
"0.6003675",
"0.59895515",
"0.59503037",
"0.59436285",
"0.59436285",
"0.59426... | 0.0 | -1 |
Enables/Disables all child views in a view group. | public static void setViewAndChildrenEnabled(View view, boolean enabled) {
view.setEnabled(enabled);
if (view instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view;
for (int i = 0; i < viewGroup.getChildCount(); i++) {
View child = viewGroup.getChildAt(i)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void enableDisableViewGroup(ViewGroup viewGroup, boolean enabled) {\r\n int childCount = viewGroup.getChildCount();\r\n for (int i = 0; i < childCount; i++) {\r\n View view = viewGroup.getChildAt(i);\r\n if(view.isFocusable())\r\n ... | [
"0.71155083",
"0.63976204",
"0.5952395",
"0.571347",
"0.56684524",
"0.55791557",
"0.55778843",
"0.55615675",
"0.5462785",
"0.54549795",
"0.54470474",
"0.54468936",
"0.5403705",
"0.53642094",
"0.5344232",
"0.53337723",
"0.5308289",
"0.5299287",
"0.52320576",
"0.52316177",
"0.5... | 0.67279285 | 1 |
Setter for shipping cost | public void setshippingcost() {
shippingcost = getweight() * 3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setShipping(BigDecimal shipping);",
"public void setShippingCost(double shippingCost) {\n\t\tthis.shippingCost = shippingCost;\n\t}",
"public void setCost(double value) {\n this.cost = value;\n }",
"public PaymentRequest setShippingCost(BigDecimal cost) {\r\n if (shipping == null) {\r\n... | [
"0.7582285",
"0.7574619",
"0.74402666",
"0.74027205",
"0.73514116",
"0.73281276",
"0.7275003",
"0.72646606",
"0.7248047",
"0.7238668",
"0.723485",
"0.71581894",
"0.7117623",
"0.709508",
"0.7040017",
"0.7004513",
"0.696175",
"0.6905739",
"0.6808358",
"0.6798726",
"0.67740333",... | 0.8257012 | 0 |
Getter for shipping cost | public double getshippingcost() {
return shippingcost;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getShippingCost() {\n\t\treturn shippingCost;\n\t}",
"BigDecimal getShipping();",
"public BigDecimal getCost() {\r\n return cost;\r\n }",
"@NotNull\n public BigDecimal getCost() {\n return cost;\n }",
"public BigDecimal getCost() {\n return this.cost;\n }",
"public ... | [
"0.83077866",
"0.7963081",
"0.7669041",
"0.7662039",
"0.76348305",
"0.7540512",
"0.7511968",
"0.7490097",
"0.74382496",
"0.74339736",
"0.74339736",
"0.7397174",
"0.7385131",
"0.73840797",
"0.73682094",
"0.73665935",
"0.7361109",
"0.7352022",
"0.7352022",
"0.73393273",
"0.7322... | 0.8541161 | 0 |
List al =new ArrayList(); it accepts value of all type(int, char,string etc) | public static void main(String[] args) {
List<String> al =new ArrayList<String>(); // creating object for the array list and map it to the interface-(List)
al.add("India");
al.add("Canada");
al.add("China");
al.add("USA");
al.add("Australia");
al.add(2,"Africa");... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void m2(ArrayList<?> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(10);\n\t\t//al.add(10.5f);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public static void m4(ArrayList<? super Integer> al)\n\t{\n\t\t//al.add(\"... | [
"0.6957347",
"0.6699393",
"0.6697798",
"0.6426163",
"0.6412375",
"0.63601035",
"0.6357845",
"0.62197757",
"0.6197881",
"0.61919224",
"0.6020943",
"0.59819615",
"0.59649986",
"0.5957395",
"0.58822316",
"0.5871666",
"0.58692855",
"0.58636",
"0.58600634",
"0.5854561",
"0.5833984... | 0.0 | -1 |
checkstyle made me put javadoc here >:( whoever made this function pls edit the the javadoc tqtq wh. | public static void initialiseContext(String[] listOfKeys) {
for (String a : listOfKeys) {
keywords.add(a);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void tag4() \n\t{\n\t\t/** javadoc_single_style_tag: This is a JavaDoc single style tag.\n\t}\n\t\n\t/** Test a JavaDoc multi style comment in souce code.\n\t * \n\t */\n\tvoid tag5() \n\t{\n\t\t/** \n\t\t * javadoc_multi_style_tag: This is a JavaDoc multi style tag.\n\t\t */\n\t}\n\t\n\t/** Test a tag not at the ... | [
"0.6949996",
"0.67911327",
"0.67911327",
"0.6519858",
"0.6519858",
"0.64817256",
"0.62885594",
"0.62885594",
"0.6204323",
"0.6166114",
"0.6166114",
"0.60776484",
"0.60235",
"0.59694177",
"0.5873321",
"0.5764704",
"0.57586277",
"0.57552904",
"0.57336867",
"0.5708953",
"0.56974... | 0.0 | -1 |
Given the a certain Root command, the possible subRoot commands are returned. | public static ArrayList<String> getPossibilities(String key) {
ArrayList<String> hints = new ArrayList<>();
for (String a : keywords) {
if (a.toLowerCase().startsWith(key.toLowerCase())) {
hints.add(a);
}
}
return hints;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String[] getCommands(String root) {\n\t\treturn commands.get(root).toArray(new String[1]);\n\t}",
"String ls(String pRoot) throws RemoteException;",
"private ArrayList<Command> fillRoot() {\n var rootList = new ArrayList<Command>();\n while(!commands.isEmpty()) {\n rootLi... | [
"0.6401105",
"0.58177656",
"0.57415915",
"0.54357517",
"0.5402889",
"0.53041124",
"0.5210128",
"0.5188618",
"0.5155426",
"0.50544405",
"0.5048648",
"0.49891976",
"0.49780872",
"0.4960055",
"0.4931559",
"0.49279436",
"0.49221042",
"0.49165848",
"0.48749986",
"0.48493123",
"0.4... | 0.0 | -1 |
Gets the search result at a certain index. | public static MovieInfoObject getItemAtIndex(int i) {
return mCurrentMovies.get(i - 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SimilarResult get(int index) {\n lock();\n return results.get(index);\n }",
"@java.lang.Override\n public entities.Torrent.NodeSearchResult getResults(int index) {\n return results_.get(index);\n }",
"entities.Torrent.NodeSearchResult getResults(int index);",
... | [
"0.7604918",
"0.69198585",
"0.6709181",
"0.6653009",
"0.6605717",
"0.6601336",
"0.64513046",
"0.6327468",
"0.6319237",
"0.63165957",
"0.62701344",
"0.62701344",
"0.62701344",
"0.6229725",
"0.6229725",
"0.6229725",
"0.6229725",
"0.6229725",
"0.62136465",
"0.6199365",
"0.617558... | 0.0 | -1 |
Add results from the search query into search result context. | public static void addResults(ArrayList<MovieInfoObject> moviesInfo) {
mCurrentMovies.clear();
for (MovieInfoObject mi : moviesInfo) {
mCurrentMovies.add(mi);
}
if (mMovies.size() == 0) {
for (MovieInfoObject mi : moviesInfo) {
mMovies.add(mi);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected SearchSearchResponse doNewSearch(QueryContext queryContext) throws Exception {\n\t\t\n\t\tBooleanQuery query = _queryBuilder.buildSearchQuery(queryContext);\n\t\t\n\t\tBooleanQuery rescoreQuery = \n\t\t\t\t_queryBuilder.buildRescoreQuery(queryContext);\n\t\t\n\t\tList<Aggregation> aggregations = getAggre... | [
"0.62101424",
"0.6006239",
"0.5889846",
"0.58528703",
"0.5822027",
"0.58195585",
"0.5803667",
"0.57784027",
"0.56763697",
"0.5663496",
"0.56206214",
"0.5589479",
"0.5518528",
"0.5509642",
"0.54795885",
"0.54779035",
"0.5474812",
"0.5459485",
"0.5432145",
"0.54315066",
"0.5427... | 0.0 | -1 |
Gets the movies to display from the Search Result Context. | public static ArrayList<MovieInfoObject> getMoviesToDisplay() {
return mMovies;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n Syst... | [
"0.6908991",
"0.6686459",
"0.6587199",
"0.6513868",
"0.6484804",
"0.6408744",
"0.6401173",
"0.63599205",
"0.63556963",
"0.6330076",
"0.6310511",
"0.630131",
"0.62762076",
"0.6231907",
"0.6217187",
"0.6191818",
"0.6169941",
"0.6148466",
"0.6148382",
"0.61217475",
"0.61011755",... | 0.6539529 | 3 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] intArray = new int[3];
intArray[0] = 52;
intArray[1] = 13;
//intArray[2] = 41; 초기화 하지 않으면 0으로 세팅(정수형)
//실수형, boolean, char 기본값 알아보겟음
System.out.println("=============");
System.out.println(intArray.length);
System.out.println("========... | {
"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 |
Factory for a fresh StringTemplate instance that can be used in the local thread of execution. | public interface StringTemplateFactory {
/**
* Get a fresh StringTemplate instance that can be safely used in the current thread of execution.
* StringTemplates should not be shared between threads.
*
* @param templateName
* name of the template.
* @param locale
* for which ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}",
"StringTemplate createStringTemplate();",
"public ST createSingleton... | [
"0.77601117",
"0.76716",
"0.6673083",
"0.60481083",
"0.60132873",
"0.5985777",
"0.5719939",
"0.56485826",
"0.56288314",
"0.5586418",
"0.55814683",
"0.5502429",
"0.5479084",
"0.5445508",
"0.5396303",
"0.5388741",
"0.5381294",
"0.5377679",
"0.53621846",
"0.535317",
"0.53223896"... | 0.7558712 | 2 |
localizedTemplateString method will return the localized template string for the passed locale. | String localizedTemplateString(String templateName); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"StringTemplate createStringTemplate();",
"public interface StringTemplateFactory {\n \n /**\n * Get a fresh StringTemplate instance that can be safely used in the current thread of execution.\n * StringTemplates should not be shared between threads.\n * \n * @param templateName\n * name of t... | [
"0.6122299",
"0.6054253",
"0.5803302",
"0.57916874",
"0.5773308",
"0.573021",
"0.57227445",
"0.5718838",
"0.56144977",
"0.53307617",
"0.52883416",
"0.52670956",
"0.5255578",
"0.5186275",
"0.5185975",
"0.51596195",
"0.51166785",
"0.51068497",
"0.51023",
"0.50949675",
"0.508841... | 0.8052334 | 0 |
formdata; name="file"; filename="C:\file1.zip" formdata; name="file"; filename="C:\Note\file2.zip" | private String extractFileName(Part part) {
String contentDisp = part.getHeader("content-disposition");
String[] items = contentDisp.split(";");
for (String s : items) {
if (s.trim().startsWith("filename")) {
// C:\file1.zip
// C:\Note\file2.zip
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setContentDispositionFormData(String name, String filename)\r\n/* 162: */ {\r\n/* 163:245 */ Assert.notNull(name, \"'name' must not be null\");\r\n/* 164:246 */ StringBuilder builder = new StringBuilder(\"form-data; name=\\\"\");\r\n/* 165:247 */ builder.append(name).append('\"');\r\n/... | [
"0.6001858",
"0.58312345",
"0.5678522",
"0.5574906",
"0.55656326",
"0.54322284",
"0.53047323",
"0.53047323",
"0.53039086",
"0.5285451",
"0.5223633",
"0.5209488",
"0.50946367",
"0.5092333",
"0.5027877",
"0.5024248",
"0.49356022",
"0.49088082",
"0.49028417",
"0.48979598",
"0.48... | 0.5020249 | 16 |
TODO Autogenerated method stub | @Override
public Rect estimateDropLocation(DragSource source, int x, int y,
int xOffset, int yOffset, DragView dragView, Object dragInfo,
Rect recycle) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Synchronizes on the new stream | public void syncStream() {
JCudaDriver.cuStreamSynchronize(stream);} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void syncHandle() {\n syncOldStream();\n }",
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamW... | [
"0.7431529",
"0.7102275",
"0.62947756",
"0.5950975",
"0.59185696",
"0.58933586",
"0.58724624",
"0.5861164",
"0.58009166",
"0.5794639",
"0.57763124",
"0.5757804",
"0.57388234",
"0.56922233",
"0.567329",
"0.56703275",
"0.564152",
"0.55998814",
"0.5585832",
"0.5555677",
"0.55377... | 0.7949988 | 0 |
Synchronizes on the old stream | public void syncOldStream() {
ContextHolder.getInstance().setContext();
JCuda.cudaStreamSynchronize(oldStream);
/*
if(!oldEventDestroyed) {
JCuda.cudaStreamSynchronize(oldStream);
JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);
JCuda.cudaEventDestroy(oldEvent)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}",
"public void syncHandle() {\n syncOldStream();\n }",
"default void refreshStream() {}",
"T sync() throws IOException, ChallongeException;",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.... | [
"0.77295166",
"0.769682",
"0.6636364",
"0.6054836",
"0.60462797",
"0.60332644",
"0.60160106",
"0.60083544",
"0.5975875",
"0.58865404",
"0.58536637",
"0.5849087",
"0.5819369",
"0.5712268",
"0.5659298",
"0.5653672",
"0.56138754",
"0.5572161",
"0.553563",
"0.55212253",
"0.551400... | 0.7909535 | 0 |
Synchronizes on the old stream since the given handle will be associated with the stream for this context | public void syncHandle() {
syncOldStream();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestr... | [
"0.6710543",
"0.6674187",
"0.60963595",
"0.5891075",
"0.56388885",
"0.55359167",
"0.53071433",
"0.5275508",
"0.52659774",
"0.5222805",
"0.5187037",
"0.5171686",
"0.51241374",
"0.5104525",
"0.50563717",
"0.50509197",
"0.5049545",
"0.5024738",
"0.5022025",
"0.49979776",
"0.4985... | 0.84631556 | 0 |
Get the result pointer for the context | public CublasPointer getResultPointer() {
return resultPointer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected R getResult() {\n\t\treturn result;\n\t}",
"public int getResult(){\n return localResult;\n }",
"CTX_Context getContext();",
"public Object getResult(final SessionContext ctx)\n\t{\n\t\treturn getProperty( ctx, RESULT);\n\t}",
"private void... | [
"0.6321024",
"0.6137626",
"0.60132456",
"0.5989542",
"0.5975987",
"0.59484625",
"0.59140366",
"0.59140366",
"0.59092134",
"0.59003085",
"0.5870703",
"0.58673227",
"0.58157945",
"0.5798058",
"0.577972",
"0.5772604",
"0.5767995",
"0.57645214",
"0.5763116",
"0.5755268",
"0.57496... | 0.73256177 | 0 |
Associates the handle on this context to the given stream | public synchronized void associateHandle() {
JCublas2.cublasSetStream(handle,oldStream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"private void setInputStream(final ObjectInputStream stream) {\n\t\t// almacenamos el stream de entrada\n\t\tthis.inputStream = stream;\n\t}",
"public void syncHandle() {\n syncOldStream();\n }",
"public vo... | [
"0.62866133",
"0.59067285",
"0.5896528",
"0.5872371",
"0.58202916",
"0.57478154",
"0.57342774",
"0.5549438",
"0.5517471",
"0.54608464",
"0.5438626",
"0.54062724",
"0.5397047",
"0.5386661",
"0.5351486",
"0.5342576",
"0.5329627",
"0.5313899",
"0.5266046",
"0.5239227",
"0.523584... | 0.68055767 | 0 |
Record an event. This is for marking when an operation starts. | public void startOldEvent() {
// JCuda.cudaEventRecord(oldEvent, oldStream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void record(Event evt) {\n record0(evt);\n }",
"public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }",
"void onStartRecord();",
"public void start(String event) {\n started.put(event, System.currentTimeMillis());\n }",
"public RecordObject ad... | [
"0.6585343",
"0.63809",
"0.6237768",
"0.60646373",
"0.59307027",
"0.5741507",
"0.57194155",
"0.5692957",
"0.5688239",
"0.56240004",
"0.55965567",
"0.5585624",
"0.5574188",
"0.55563176",
"0.55202055",
"0.55202055",
"0.5519953",
"0.54906267",
"0.54570127",
"0.5451006",
"0.54488... | 0.55172515 | 17 |
Record an event (new). This is for marking when an operation starts. | public void startNewEvent() {
// JCudaDriver.cuEventRecord(cUevent,stream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"void onNewEvent(Event event);",
"public void record(Event evt) {\n record0(evt);\n }",
"@Override\n public void add(Event event) {\n persist(event);\n }",
"public void setEventCreated() {\n Date now = new Date();\n t... | [
"0.6465135",
"0.636119",
"0.6351219",
"0.617507",
"0.605298",
"0.6011914",
"0.5985152",
"0.59523076",
"0.59471315",
"0.58804977",
"0.58666956",
"0.5849222",
"0.58237445",
"0.580372",
"0.57770765",
"0.57689935",
"0.5746902",
"0.56558657",
"0.56524694",
"0.5646755",
"0.5622862"... | 0.6814297 | 0 |
Initializes the old stream | public void initOldStream() {
ContextHolder.getInstance().setContext();
if(oldStream == null) {
/* try {
oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();
} catch (Exception e) {
oldStreamFromPool = false;
o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized static void initStreams()\n {\n if ( !initialized )\n {\n out = ansiStream(true);\n err = ansiStream(false);\n initialized = true;\n }\n }",
"default void refreshStream() {}",
"private void initializeIOStreams() {\n try {\n ... | [
"0.69405013",
"0.6548208",
"0.6482489",
"0.64281195",
"0.63510495",
"0.63348234",
"0.6262921",
"0.6231152",
"0.6221838",
"0.61918074",
"0.6078288",
"0.60621876",
"0.6043294",
"0.60138285",
"0.59586155",
"0.5939213",
"0.59302163",
"0.59301984",
"0.5922566",
"0.58884865",
"0.58... | 0.73697466 | 0 |
Initializes a handle and associates with the given stream. initOldStream() should be called first | public void initHandle() {
if(handle == null) {
/* try {
handle = ContextHolder.getInstance().getHandlePool().borrowObject();
} catch (Exception e) {
handle = new cublasHandle();
JCublas2.cublasCreate(handle);
handleFromPool ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n ... | [
"0.67679423",
"0.6706605",
"0.6320287",
"0.62135834",
"0.6028131",
"0.59854245",
"0.59626085",
"0.5865421",
"0.5828471",
"0.570669",
"0.56508625",
"0.55843806",
"0.54990005",
"0.54802835",
"0.54783213",
"0.54708505",
"0.5442809",
"0.5406834",
"0.53906363",
"0.5385019",
"0.535... | 0.53124183 | 21 |
Destroys the context and associated resources | @Deprecated
public void destroy(CublasPointer resultPointer,boolean freeIfNotEqual) {
/*
if(handle != null && !handleReturned.get()) {
try {
if(handleFromPool)
ContextHolder.getInstance().getHandlePool().returnObject(handle);
else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroy() throws ContextDestroyException;",
"public void destroy() throws Exception {\n\t\tapplicationContext = null;\r\n\t}",
"public void destroy() {\n getBuildContextHolder().destroy();\n rememberedSet.clear();\n }",
"public void destroy() {\n \t\n }",
"@Override\r\n\tpublic voi... | [
"0.7935267",
"0.7661751",
"0.74264383",
"0.72848827",
"0.72614634",
"0.7251197",
"0.703458",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6979738",
"0.6968819",
"0.6955018",
"0.6954933",
"0.6952865",
"0.69311666",
"0.69293267",
"0.6922749",
"0.69023246",
"0.69023246... | 0.0 | -1 |
Destroys the context and associated resources | @Deprecated
public void destroy() {
/*
ContextHolder.getInstance().setContext();
if(stream != null && !streamReturned.get()) {
try {
if(streamFromPool)
ContextHolder.getInstance().getStreamPool().returnObject(stream);
else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroy() throws ContextDestroyException;",
"public void destroy() throws Exception {\n\t\tapplicationContext = null;\r\n\t}",
"public void destroy() {\n getBuildContextHolder().destroy();\n rememberedSet.clear();\n }",
"public void destroy() {\n \t\n }",
"@Override\r\n\tpublic voi... | [
"0.7935267",
"0.7661751",
"0.74264383",
"0.72848827",
"0.72614634",
"0.7251197",
"0.703458",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6979738",
"0.6968819",
"0.6955018",
"0.6954933",
"0.6952865",
"0.69311666",
"0.69293267",
"0.6922749",
"0.69023246",
"0.69023246... | 0.0 | -1 |
Finishes a blas operation and destroys this context | public void finishBlasOperation() {
//destroy();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endCompute();",
"public synchronized void release() {\r\n if (active) {\r\n if (clmNullDummy != null)\r\n clReleaseMemObject(clmNullDummy);\r\n if (kernelMatrixMultiplication != null)\r\n clReleaseKernel(kernelMatrixMultiplication);\r\n ... | [
"0.6187731",
"0.5854292",
"0.5684787",
"0.5512672",
"0.5452461",
"0.5435616",
"0.53993195",
"0.5297552",
"0.52889025",
"0.5279945",
"0.52795213",
"0.5268915",
"0.5262665",
"0.5227852",
"0.5226575",
"0.52216387",
"0.51985997",
"0.519556",
"0.5190254",
"0.51894516",
"0.51839805... | 0.75629216 | 0 |
Sets up a context with an old stream and a blas handle | public static CudaContext getBlasContext() {
Allocator allocator = AtomicAllocator.getInstance();
return allocator.getCudaContext();
/*
CudaContext ctx = new CudaContext();
//ctx.initOldStream();
ctx.initHandle();
//ctx.startOldEvent();
return ctx;*/
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n ... | [
"0.65910155",
"0.58071923",
"0.5352424",
"0.50044686",
"0.49611464",
"0.48846683",
"0.48197195",
"0.4762037",
"0.47571084",
"0.47076046",
"0.46599883",
"0.45863354",
"0.45796305",
"0.456627",
"0.45543784",
"0.45275438",
"0.45190006",
"0.45084378",
"0.4492456",
"0.44843894",
"... | 0.55949897 | 2 |
Calls cuda device synchronize | public void syncDevice() {
JCuda.cudaDeviceSynchronize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void syncStreamsTest() {\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createStream = context.eval(\"grcuda\", \"cudaStreamCreate\");\n Value stream1 = createStream.execute();\n Value stream2 = createStream.execute();\n\n ... | [
"0.6548537",
"0.6374037",
"0.6135193",
"0.6044829",
"0.5943426",
"0.57753646",
"0.56614983",
"0.5658973",
"0.5657132",
"0.54374117",
"0.541309",
"0.5401456",
"0.5258495",
"0.5159123",
"0.51565325",
"0.5115747",
"0.51145434",
"0.5100945",
"0.50755084",
"0.503655",
"0.49823648"... | 0.8210247 | 0 |
Read parameters from request. | public String execute(HttpServletRequest request, HttpServletResponse response) {
String userName = request.getParameter("userName");
String userEmail = request.getParameter("userEmail");
String message = request.getParameter("message");
Date date = new Date();
// Parameters validation.
boolea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readParameters()\n {\n readParameters(getData());\n }",
"private void getParameters(HttpServletRequest request) {\n\t\t// Recoger datos\n\t\tconcepto = request.getParameter(\"concepto\");\n\t\tString importeTexto = request.getParameter(\"importe\");\n\t\ttry {\n\t\t\timporte = Double.par... | [
"0.70583206",
"0.6981822",
"0.6749793",
"0.67319953",
"0.6435896",
"0.6427272",
"0.64072645",
"0.64072645",
"0.6404344",
"0.6362185",
"0.6362185",
"0.6332522",
"0.6260438",
"0.6256757",
"0.6244314",
"0.61390436",
"0.60414857",
"0.60396004",
"0.60310405",
"0.6006181",
"0.60039... | 0.0 | -1 |
/ this method is overkill since our LatLng is public, but it allows us to store MapNodes in the KDTree | public KDPoint getPoint() {
return new KDPoint(this.loc.lat,this.loc.lng,0.0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNode(int nodeId, double lat, double lon);",
"String addNewNode(Double lat, Double lon);",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"void setNode(int nodeId, double lat, double lon, double ele);",
"... | [
"0.6506542",
"0.628849",
"0.61525273",
"0.6112274",
"0.60265833",
"0.6014987",
"0.60084945",
"0.5842867",
"0.5695061",
"0.56570625",
"0.56563866",
"0.55234283",
"0.5516823",
"0.5490889",
"0.5488164",
"0.5475828",
"0.5465389",
"0.545756",
"0.544022",
"0.543718",
"0.5409325",
... | 0.0 | -1 |
Returns true if MapNode ids are equals | @Override
public boolean equals(Object o) {
if (o == this) return true;
if (!(o instanceof MapNode)) return false;
MapNode x = (MapNode) o;
return this.id.equals(x.id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapI... | [
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.63116306",
"0.62412274",
"0.6229425",
"0.621035",
"0.6129876",
"0.60418284",
"0.60269654",
"0.60184056",... | 0.7446839 | 0 |
Returns hash code of loc LatLng, which should be unique. | @Override
public int hashCode() {
return loc.hashCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashCode() {\n // This implementation will work, but you may want to modify it\n // for improved performance.\n\n checkRep();\n return (this.latitude / 1000000 + this.longitude / 1000000) / 2;\n }",
"@Override\n\tpublic int hashCode()\n\t{\n\t\tint hash = 5;\n\t\thash = ... | [
"0.70301086",
"0.6990472",
"0.6841492",
"0.67283535",
"0.65791714",
"0.65425897",
"0.6542285",
"0.63362586",
"0.62147856",
"0.61313486",
"0.6118298",
"0.60630614",
"0.60033154",
"0.5964819",
"0.59367204",
"0.5898358",
"0.5851543",
"0.5840578",
"0.58190024",
"0.581846",
"0.577... | 0.6851667 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.