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
Create the Solr Server client Create a list of SolrInputDocuments Iterate through the sample records
@Test public void addRecords() throws SolrServerException, IOException, ParseException { for (String[] record : sampleRecords) { // Create a new SolrInputDocument for this record // Iterate through this sample record for (int i = 0; i < record.length; i++) { } // Add the SolrInputDocument for this record to the list of SolrDocuments } // Add and commit the SolrInputDocuments to the Solr Server }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException, SolrServerException {\n\n\n CloudSolrClient cloudSolrClient = new CloudSolrClient(args[0]);\n cloudSolrClient.setDefaultCollection(args[1]);\n cloudSolrClient.connect();\n\n SolrInputDocument solrInputDocument = new SolrInputDocument();\n St...
[ "0.6103863", "0.5778356", "0.5644294", "0.5562849", "0.5562849", "0.5484818", "0.5400432", "0.53610086", "0.53129965", "0.52502745", "0.5142853", "0.5134689", "0.50703096", "0.50690156", "0.50503874", "0.5037872", "0.5019194", "0.5010924", "0.4957435", "0.4944024", "0.4935101...
0.76547563
0
Solr expects a certain format. This method takes a date in format yyyyMMdd and returns the correct Solr format
public static String formatSolrDate(String dateString) throws ParseException { SimpleDateFormat outputFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss'Z'"); String inputFormat = "MM/dd/yyyy"; return outputFormat.format(new SimpleDateFormat(inputFormat) .parse(dateString)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String formatDateForQuery(java.util.Date date){\n return (new SimpleDateFormat(\"yyyy-MM-dd\")).format(date);\n }", "java.lang.String getFoundingDate();", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd...
[ "0.57225823", "0.57050943", "0.56856376", "0.5674648", "0.56132364", "0.55779934", "0.557498", "0.5573831", "0.5573424", "0.5491385", "0.54584545", "0.53911", "0.53903025", "0.5382121", "0.5360759", "0.5346592", "0.532488", "0.53160316", "0.53054357", "0.52979326", "0.5277731...
0.6857582
0
private constructor prevent for creating instance
private IOUtils() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Instantiation(){}", "private Rekenhulp()\n\t{\n\t}", "Reproducible newInstance();", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private SimpleRepository() {\n \t\t// private ct to disa...
[ "0.79272646", "0.7873993", "0.7625785", "0.7617091", "0.7610215", "0.7555029", "0.74565417", "0.7330688", "0.7285631", "0.7264736", "0.723815", "0.7236294", "0.7234873", "0.7222167", "0.7208511", "0.7198915", "0.71872926", "0.7180656", "0.71740806", "0.7160788", "0.7160788", ...
0.0
-1
Read data from socket input stream to a new InputStream
public static ByteArrayInputStream readSocketStream(InputStream is) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); copyStream(is, bos); byte[] data = bos.toByteArray(); ByteArrayInputStream bis = new ByteArrayInputStream(data); closeStream(is); closeStream(bos); return bis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readData(InputStream inStream);", "private void openInputStream() throws IOException {\n InputStreamReader isReader = new InputStreamReader(this.sock.getInputStream());\n reader = new BufferedReader(isReader);\n }", "Stream<In> getInputStream();", "public void read(DataInputStrea...
[ "0.6460184", "0.6423156", "0.61242086", "0.6121176", "0.61047083", "0.60909075", "0.60293263", "0.5997067", "0.5927444", "0.5885602", "0.5808159", "0.5751085", "0.5740014", "0.569712", "0.56666505", "0.56666505", "0.56666505", "0.56608313", "0.56517315", "0.5651098", "0.56487...
0.7135933
0
Read stream to byte array. Note this method not suitable for read socket input stream
@SuppressWarnings({"all"}) public static byte[] read2Byte(InputStream is) { int read = -1; int total = -1; byte[] data = null; if (is != null) { try { total = is.available(); data = new byte[total]; read = is.read(data); } catch (Exception e) { logger.warn("read to byte[] meet an exception", e); } } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] readBytes() throws IOException {\n\t InputStream in = socket.getInputStream();\n\t DataInputStream dis = new DataInputStream(in);\n\n\t int len = dis.readInt();\n\t byte[] data = new byte[len];\n\t if (len > 0) {\n\t dis.readFully(data);\n\t }\n\t return data;\n\t}", "by...
[ "0.721772", "0.6961844", "0.6912786", "0.68653727", "0.6804918", "0.67833066", "0.6727149", "0.67021936", "0.6621277", "0.6611862", "0.65852296", "0.65652865", "0.65264595", "0.65184665", "0.6510485", "0.6488041", "0.64742696", "0.6457926", "0.64389217", "0.63841194", "0.6377...
0.68893707
3
end of function checkNumber..
public void isPrime(int num) { boolean check; check=checkNumber(num); if(check) System.out.printf("%s",toString()); else System.out.printf("%d is not prime",number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkNumber() {\n\t\treturn true;\n\t}", "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "static boolean checkNumber(int number) {\r\n\t\t\r\n\t\tint lastDigit= number%10;\r\n\t\tnumber/=10;\r\n\t\tboolean flag= false;\r\n\t\t\r\n\t\...
[ "0.8381788", "0.7305477", "0.72780716", "0.7163421", "0.71541584", "0.7002486", "0.6883318", "0.68469435", "0.68469435", "0.68469435", "0.6803469", "0.6785388", "0.6668098", "0.6604195", "0.65817314", "0.6578957", "0.65682775", "0.6555967", "0.6521113", "0.6510102", "0.648930...
0.0
-1
/DBDataSource ds = new DBDataSource(); ds.setName("mysql"); ds.setDatabaseType(DatabaseType.MYSQL); ds.setDriverClass("com.mysql.jdbc.Driver"); ds.setUrl("jdbc:mysql://localhost:3306/"); ds.setUserName("root"); ds.setPwd("7758521"); ClassPathDataSource ds = ClassPathDataSource.getInstance();
@Override public void start(Stage primaryStage) { try { FtpDataSource ds = FtpDataSource.getInstance("115.29.163.55", "wei_jc", "wjcectong2013#"); ds.load(); primaryStage.setScene(new Scene(new MUTree(ds.getNavTree()))); } catch (Exception e) { e.printStackTrace(); } primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernha...
[ "0.7340832", "0.7038605", "0.6943972", "0.68708396", "0.68553627", "0.6690014", "0.6671393", "0.6635615", "0.6627489", "0.6604591", "0.65829194", "0.65536106", "0.65325415", "0.6524552", "0.6502199", "0.6485268", "0.646528", "0.646528", "0.646528", "0.646528", "0.646528", "...
0.0
-1
Log.e("User2", "user: " + username + " " + authToken);
@Override public void acceptUserDataForFrogList(String username, String authToken) { mManager = new RestManager(); allFrogsRequest = new AllFrogsRequest(username, authToken); callGetAllFrogs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logUser() {\n }", "@Override\n public void onNewToken(String token) {\n Log.e(\"Token:\", token);\n }", "private static void logResult(Tokens tokens) {\n\t\tLog.i(\"Got access token: \"+ tokens.getAccessToken());\n\t\tLog.i(\"Got refresh token: \"+ tokens.getRefreshToken());\n\t\tL...
[ "0.69264525", "0.61187214", "0.6076663", "0.6051331", "0.59874594", "0.5959022", "0.5953401", "0.5867864", "0.58647954", "0.58461654", "0.5813544", "0.57761425", "0.57692504", "0.57372737", "0.57243514", "0.5682285", "0.56764615", "0.5667331", "0.5639563", "0.5623834", "0.559...
0.0
-1
we sort the rule set by runLevel
@Required public void setRules(Set<Rule> rules) { this.rules = new TreeSet<Rule>(new RuleComparator()); this.rules.addAll(rules); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Rule[] sortRules(Rule[] rules){\n \t\t\n \t\tArrayList<Rule> temp = new ArrayList<Rule>();\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\ttemp.add(rules[i]);\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\t...
[ "0.61555225", "0.5959305", "0.59481406", "0.5814475", "0.5674721", "0.56414914", "0.562838", "0.5546352", "0.55225164", "0.54689395", "0.54601353", "0.5397111", "0.5386673", "0.5386142", "0.5359646", "0.5351524", "0.53286606", "0.53220934", "0.53019047", "0.5270071", "0.52621...
0.0
-1
Created by nitin on Thursday, January/16/2020 at 2:13 AM
@Repository public interface CityRepository extends JpaRepository<City, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Date getCreated()\n {\n return null;\n }", "public abstract long getCreated();", "public DateTime getCreationTime() { return creationTime; }", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;...
[ "0.55050564", "0.5292173", "0.52516526", "0.5244451", "0.5244451", "0.5239429", "0.52370286", "0.52336055", "0.52133137", "0.5207837", "0.5193132", "0.5177713", "0.5136587", "0.5129252", "0.5121544", "0.5113629", "0.509104", "0.507365", "0.506457", "0.5059362", "0.5057086", ...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_first, container, false); etNumber1 = view.findViewById(R.id.etNumber1); etNumber2 = view.findViewById(R.id.etNumber2); btnCalculate = view.findViewById(R.id.btnCalculate); btnCalculate.setOnClickListener(this); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Adds the artifact filter to be applied.
public void add(final ArtifactFilter artifactFilter) { this.filters.add(artifactFilter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }", "public void addFilter(@NotNull final SceneFilter filter) {\n filters.add(filter);\n }", "void addRecipeFilter(RecipeFilter recipeFilter);", "private void applyFilterIcon() {\n addStyleName(\"appli...
[ "0.7210118", "0.6276263", "0.5918513", "0.57554346", "0.5733159", "0.5617976", "0.55992657", "0.55992657", "0.5549317", "0.5498701", "0.5458799", "0.5456764", "0.5440513", "0.5438494", "0.5362643", "0.53528666", "0.53365684", "0.5302197", "0.52918273", "0.51788354", "0.516819...
0.7942782
0
ensure client is in a transaction
@SuppressWarnings("unchecked") public <K, V> Map<K, V> getMap(String name, Class<K> keyClass, Class<V> valueClass) { if (Globals.threadTxMap.get(Thread.currentThread()) == null || Globals.threadTxMap.get(Thread.currentThread()).status != TxStatus.ACTIVE) { throw new ClientNotInTxException("Unable to get map: not in an active transaction"); } //ensure name is not blank/whitespace: if(name.trim().isEmpty()){ throw new IllegalArgumentException("Invalid map name"); } //ensure keyClass/valueClass is not null: if(keyClass == null || valueClass == null){ throw new IllegalArgumentException("Key/value class cannot be null"); } //ensure this name exists if(!Globals.alreadyExists(name)){ throw new NoSuchElementException("Unable to locate map with name: "+ name); } //ensure classes match DBTable<K, V> table = Globals.getTable(name); if(keyClass != table.keyClass || valueClass != table.valueClass){ throw new ClassCastException("Tried to get map with different classes than on file"); } //ensure serializable if(!Serializable.class.isAssignableFrom(keyClass)) throw new IllegalArgumentException("Key class is not serializable"); if(!Serializable.class.isAssignableFrom(valueClass)) throw new IllegalArgumentException("Value class is not serializable"); Globals.addTableToThread(name); return Globals.getTable(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction beginTx();", "void begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;", "void beginTransaction();", "IDbTransaction beginTransaction();", "public void authorizeTransaction() {}", "public boolean transactionStarted();", "public void beginTransaction() throws Exception;", "p...
[ "0.6608115", "0.6540842", "0.6496879", "0.64796925", "0.6375689", "0.6355585", "0.62973326", "0.628534", "0.6242251", "0.6211476", "0.6194896", "0.6191071", "0.6094028", "0.6092573", "0.6058749", "0.60513896", "0.6022718", "0.6018182", "0.6016102", "0.60102737", "0.60102737",...
0.0
-1
ensure this is not for a rolledback tx: ensure we are in a Tx:
@SuppressWarnings("unchecked") public <K, V> Map<K, V> createMap(String name, Class<K> keyClass, Class<V> valueClass) { if (Globals.threadTxMap.get(Thread.currentThread()) == null || Globals.threadTxMap.get(Thread.currentThread()).status != TxStatus.ACTIVE) { throw new ClientNotInTxException("Cannot create map: not in an active transaction"); } //ensure name is not blank/whitespace: if(name.trim().isEmpty()){ throw new IllegalArgumentException("Invalid map name"); } //ensure keyClass/valueClass is not null: if(keyClass == null || valueClass == null){ throw new IllegalArgumentException("Key/value class cannot be null"); } //ensure serializable if(!Serializable.class.isAssignableFrom(keyClass)) throw new IllegalArgumentException("Key class is not serializable"); if(!Serializable.class.isAssignableFrom(valueClass)) throw new IllegalArgumentException("Value class is not serializable"); //ensure that the name is not in use: if(Globals.alreadyExists(name)){ throw new IllegalArgumentException("This name is already in use"); } //let's start by creating the object: DBTable<K, V> table = new DBTable<>(name, keyClass, valueClass); //set the object's types: Globals.addNameTable(name, table); Globals.addTableToThread(name); //send it to TxMgrImpl: //writeToDisk(table, name); return (Map<K, V>) Globals.getTable(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void rollbackTx() {\n \n }", "Transaction beginTx();", "@Override\n public void startTx() {\n \n }", "@Override\n public void commitTx() {\n \n }", "public void forceCommitTx()\n{\n}", "public void rollbackTx()\n\n{\n\n}", "public void beginTransaction() throws Excepti...
[ "0.72746825", "0.71814805", "0.6951446", "0.69347256", "0.6809602", "0.67629826", "0.6687398", "0.6591831", "0.6472766", "0.6470741", "0.6431476", "0.64113563", "0.64001644", "0.638354", "0.6381625", "0.6368584", "0.63523144", "0.6344547", "0.6320127", "0.6290096", "0.6202873...
0.0
-1
Sets the duration of the "transaction timeout". A client whose transaction's duration exceeds the DBMS's timeout will be automatically rolled back by the DBMS.
@Override public void setTxTimeoutInMillis(int ms) { Globals.lockingTimeout = ms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setTransactionTimeout(int seconds) throws SystemException;", "@Override\r\n\tpublic void setTransactionTimeout(int seconds) throws SystemException {\r\n\t\trequireTransaction(\"timeout\");\r\n\t}", "public void setTransactionTimeout(Period period)\n {\n _transactionTimeout = period.getPeriod();\n ...
[ "0.7865148", "0.7322164", "0.71465886", "0.709714", "0.6700001", "0.6517481", "0.6513093", "0.64499855", "0.64424443", "0.6322806", "0.62597334", "0.6256544", "0.6229753", "0.61840373", "0.616415", "0.6151212", "0.61243004", "0.60844594", "0.6046054", "0.6039292", "0.5948148"...
0.6184863
13
Returns the current DBMS transaction timeout duration.
@Override public int getTxTimeoutInMillis() { return Globals.lockingTimeout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getTransactionTimeout()\n {\n return _transactionTimeout;\n }", "@Override\n public int getTransactionTimeout()\n {\n if (VFSStoreResource.LOG.isDebugEnabled()) {\n VFSStoreResource.LOG.debug(\"getTransactionTimeout\");\n }\n return 0;\n }", "int get...
[ "0.8241288", "0.7866678", "0.73925346", "0.73704076", "0.73393244", "0.72636443", "0.72181755", "0.72181755", "0.72181755", "0.71698654", "0.71178555", "0.711188", "0.7098579", "0.70767605", "0.7061472", "0.70024323", "0.69902474", "0.6963566", "0.69380724", "0.6934068", "0.6...
0.73586434
4
doesn't match the type when it should.
public <T> void assertFieldContainsSomeOf(String fieldName, Class<T> clazz) { assertFieldContains(fieldName, clazz::isInstance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected boolean checkType(String myType);", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "public abstract boolean isTypeCorrect();", "@Test\n public void testIsTypeOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_TYPE_OF);\n }", "publ...
[ "0.71376234", "0.7128797", "0.70807815", "0.6612594", "0.65423185", "0.65187985", "0.6450573", "0.6437988", "0.63718903", "0.6355482", "0.63088226", "0.6306656", "0.6293195", "0.6251462", "0.62457675", "0.61906564", "0.61845684", "0.61667645", "0.60702246", "0.60602146", "0.6...
0.0
-1
/ATD ATZ AT E0 AT L0 AT S0 AT H0 AT SP 0 command.put("restore_defaults", "AT D"); command.put("disable_echo", "AT E0"); command.put("disable_linefeed", "AT L0"); command.put("disable_headers", "AT H0\n"); command.put("disable_spaces", "AT S0\n");
private void performHandShake() { try { boolean OK = false; // String rsp= new String( this.defaultComTool.WriteAndRead((String) command.get("restore_defaults"))); // while(!OK) { } this.defaultComTool.WriteAndRead((String) command.get("disable_echo")); this.defaultComTool.WriteAndRead((String) command.get("disable_linefeed")); this.defaultComTool.WriteAndRead((String) command.get("disable_headers")); this.defaultComTool.WriteAndRead((String) command.get("disable_spaces")); this.defaultComTool.WriteAndRead((String) command.get("protocol auto set")); Thread.sleep(3000); this.CheckRequiredCommands_Availability(FIRSTLEVEL_CHECK); //Thread.sleep(2000); this.CheckRequiredCommands_Availability(SECONDLEVEL_CHECK); for (int i = 1; i < 6; i++) { switch (i) { case 1: if (av_commands[i] == false) { Kernel.interfc.sim.log.append("WARNING: RPM Reading is NOT SUPPORTED\n APP forcestopped!!\n"); synchronized (this) { Kernel.forcedstopped = true; } } break; case 2: if (av_commands[i] == false) { Kernel.interfc.sim.log.append("WARNING: SPEED Reading is NOT SUPPORTED\n APP forcestopped!!\n"); synchronized (this) { Kernel.forcedstopped = true; } } break; case 3: if (av_commands[i] == false) { Kernel.interfc.sim.log.append("WARNING: COOLANT TEMP Reading is NOT SUPPORTED\n APP forcestopped!!\n"); synchronized (this) { Kernel.forcedstopped = true; } } break; case 4: if (av_commands[i] == false) { int arbFuel; Random rnd = new Random(); arbFuel = rnd.nextInt(100) + 1; Kernel.interfc.sim.log.append("WARNING: FUEL LVL Reading is NOT SUPPORTED\n Arbitrary value (" + arbFuel + ") set!! \n"); } break; case 5: if (av_commands[i] == false) { int arbCheck; Random rnd = new Random(); arbCheck = rnd.nextInt(2); Kernel.interfc.sim.log.append("WARNING: CheckEngine Light Reading is NOT SUPPORTED\n Arbitrary value (" + arbCheck + ") set!! \n"); } break; } } { Kernel.interfc.sim.log.append("HANDSHAKE PERFORMED...Awaiting for SelfTest\n"); } } catch (Exception e) { System.out.println("PERFORM HANDSHAKE:" + e.getMessage() + " " + e.getLocalizedMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void WriteAtts(CommunicationBuffer buf)\n {\n if(WriteSelect(0, buf))\n buf.WriteString(host);\n if(WriteSelect(1, buf))\n buf.WriteInt(port);\n if(WriteSelect(2, buf))\n buf.WriteString(securityKey);\n if(WriteSelect(3, buf))\n buf....
[ "0.56834304", "0.54609096", "0.5460165", "0.53716725", "0.5258739", "0.51131743", "0.5040252", "0.5021874", "0.50086457", "0.5002275", "0.49483308", "0.4925929", "0.49204922", "0.4856125", "0.4834344", "0.4828841", "0.48276627", "0.4811801", "0.47694707", "0.4731924", "0.4723...
0.4433804
69
System.out.println("target: "+target+" with length: " +target.length());
private String clean(String target, String command) { String payload = target; int modifiedtimes = 0; for (int i = 0; i < target.length() - modifiedtimes; i++) { if (payload.charAt(i) == Character.LINE_SEPARATOR || payload.charAt(i) == '>' || payload.charAt(i) == Character.SPACE_SEPARATOR) { payload = removeCh(payload, i); i--; modifiedtimes++; // System.out.println("Current payload L: "+payload.length()+" with index:"+ i+" and ENDPOINT: "+(target.length()-modifiedtimes)); } } // System.out.println("CLEAN: payload before headercut is "+payload.length()); String headercut_payload = ""; int LastHeaderChar_index = command.length() - 1 - 1; // -1 pentru '\n' si -1 pentru ca incepe numaratoarea de la 0 for (int i = LastHeaderChar_index; i < payload.length(); i++) { headercut_payload = headercut_payload + payload.charAt(i); } // System.out.println("CLEAN: headercut_payload leght is "+headercut_payload.length()+" before trim"); headercut_payload.trim(); return headercut_payload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int length() { return length; }", "public int get_length();", "public int getLength() {return length;}", "int length()\n\t{\n\t\treturn length;\n\t}", "public int getLength(){\n return this.length;\n }", "public int getLength()\n {return length;}", "public int getLength(){\n ...
[ "0.69688576", "0.684355", "0.68432516", "0.6830065", "0.68212366", "0.68174374", "0.6787648", "0.6765993", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.672138", "0.6699004", "0.6677644", ...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int [] nums = {110,22,13,44,5}; System.out.println(Arrays.toString(nums)); Arrays.sort(nums); System.out.println(Arrays.toString(nums)); }
{ "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
/////////////////// Access operations /////////////////// Manipulate the method access flags.
public boolean isSynchronized() { return (getAccessFlags() & Constants.ACCESS_SYNCHRONIZED) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAccessFlags() {\n return access_flags;\n }", "void checkAccessModifier(Method method);", "public abstract int flags();", "public int getFlags();", "public int getFlags();", "String getAccess();", "String getAccess();", "public String getAccess();", "public long getFlags() {\...
[ "0.677695", "0.6621732", "0.6521668", "0.6447051", "0.6447051", "0.62385994", "0.62385994", "0.6230996", "0.6200764", "0.6200411", "0.61478156", "0.61478156", "0.6088907", "0.6054997", "0.60248744", "0.60248744", "0.6017415", "0.5944829", "0.590265", "0.5854112", "0.5847357",...
0.0
-1
Manipulate the method access flags.
public void setSynchronized(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_SYNCHRONIZED); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_SYNCHRONIZED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public boolean isNative() { return (getAccessFlags() & Constants.ACCESS_NATIVE) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public void setNative(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_NATIVE); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_NATIVE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public boolean isAbstract() { return (getAccessFlags() & Constants.ACCESS_ABSTRACT) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public void setAbstract(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_ABSTRACT); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_ABSTRACT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public boolean isStrict() { return (getAccessFlags() & Constants.ACCESS_STRICT) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public void setStrict(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_STRICT); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_STRICT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public boolean isVarArgs() { return (getAccessFlags() & Constants.ACCESS_VARARGS) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public void setVarArgs(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_VARARGS); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_VARARGS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public boolean isBridge() { return (getAccessFlags() & Constants.ACCESS_BRIDGE) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Manipulate the method access flags.
public void setBridge(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_BRIDGE); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_BRIDGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int g...
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", ...
0.0
-1
Return the bytecode for the return type of this method.
public BCClass getReturnBC() { return getProject().loadClass(getReturnName(), getClassLoader()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n...
[ "0.71736693", "0.70435953", "0.7027102", "0.7017667", "0.68015736", "0.6663439", "0.665727", "0.6624836", "0.6619939", "0.6523282", "0.6496446", "0.6488567", "0.6466035", "0.64510906", "0.64445114", "0.639526", "0.6364623", "0.63451564", "0.6241815", "0.61790085", "0.6156553"...
0.56942123
46
Set the return type of this method.
public void setReturn(String name) { setDescriptor(getProject().getNameCache().getDescriptor(name, getParamNames())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReturn(Class type) {\n setReturn(type.getName());\n }", "public void setReturnType(String returnType) {\n this.returnType = returnType;\n }", "public void setReturn(BCClass type) {\n setReturn(type.getName());\n }", "public void setSourceReturnType(Class<?> type) {\n ...
[ "0.7898304", "0.7452606", "0.72403896", "0.71555936", "0.6957776", "0.6841938", "0.6711746", "0.6658766", "0.66204953", "0.6500927", "0.6488238", "0.64104587", "0.6361748", "0.62933475", "0.62751424", "0.62280804", "0.6192333", "0.6188484", "0.60542226", "0.6018932", "0.59795...
0.0
-1
Set the return type of this method.
public void setReturn(Class type) { setReturn(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReturnType(String returnType) {\n this.returnType = returnType;\n }", "public void setReturn(BCClass type) {\n setReturn(type.getName());\n }", "public void setSourceReturnType(Class<?> type) {\n this.returnType = type;\n }", "public Builder setReturnType(\n St...
[ "0.7452606", "0.72403896", "0.71555936", "0.6957776", "0.6841938", "0.6711746", "0.6658766", "0.66204953", "0.6500927", "0.6488238", "0.64104587", "0.6361748", "0.62933475", "0.62751424", "0.62280804", "0.6192333", "0.6188484", "0.60542226", "0.6018932", "0.5979585", "0.58926...
0.7898304
0
Set the return type of this method.
public void setReturn(BCClass type) { setReturn(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReturn(Class type) {\n setReturn(type.getName());\n }", "public void setReturnType(String returnType) {\n this.returnType = returnType;\n }", "public void setSourceReturnType(Class<?> type) {\n this.returnType = type;\n }", "public Builder setReturnType(\n Stri...
[ "0.7898304", "0.7452606", "0.71555936", "0.6957776", "0.6841938", "0.6711746", "0.6658766", "0.66204953", "0.6500927", "0.6488238", "0.64104587", "0.6361748", "0.62933475", "0.62751424", "0.62280804", "0.6192333", "0.6188484", "0.60542226", "0.6018932", "0.5979585", "0.589261...
0.72403896
2
Return the bytecode for all the parameter types for this method.
public BCClass[] getParamBCs() { String[] paramNames = getParamNames(); BCClass[] params = new BCClass[paramNames.length]; for (int i = 0; i < paramNames.length; i++) params[i] = getProject().loadClass(paramNames[i], getClassLoader()); return params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Class[] getMethodParameterTypes() {\n\t\treturn new Class[]{byte[].class, int.class,byte[].class,\n\t\t byte[].class, int.class, byte[].class,\n\t\t int.class, byte[].class, byte[].class};\n\t}", "List<Type> getTypeParameters();", "public List<Class<?>> getSo...
[ "0.67304033", "0.61536056", "0.6114329", "0.6077135", "0.5975268", "0.58622307", "0.58575565", "0.58449674", "0.58102673", "0.5710492", "0.56467164", "0.56256706", "0.55907905", "0.5551291", "0.55234116", "0.551843", "0.550314", "0.5493882", "0.54518014", "0.5431802", "0.5408...
0.55427194
14
Set the parameter types of this method.
public void setParams(String[] names) { if (names == null) names = new String[0]; setDescriptor(getProject().getNameCache().getDescriptor(getReturnName(), names)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParams(Class[] types) {\n if (types == null)\n setParams((String[]) null);\n else {\n String[] names = new String[types.length];\n for (int i = 0; i < types.length; i++)\n names[i] = types[i].getName();\n setParams(names);\n ...
[ "0.7083143", "0.67132866", "0.66891664", "0.6488886", "0.6375148", "0.63389224", "0.6288558", "0.61555326", "0.6102848", "0.6078399", "0.60514104", "0.6050634", "0.6037454", "0.59405303", "0.59242874", "0.5905266", "0.59023005", "0.5901249", "0.5895398", "0.58951914", "0.5772...
0.0
-1
Set the parameter type of this method.
public void setParams(Class[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setTy...
[ "0.77794677", "0.7762594", "0.7500376", "0.7459485", "0.7226476", "0.7082893", "0.6764359", "0.67297643", "0.66649234", "0.6621631", "0.6581211", "0.65389514", "0.647611", "0.6433272", "0.63848823", "0.6382302", "0.6338869", "0.6327047", "0.6327047", "0.63140875", "0.63016504...
0.0
-1
Set the parameter type of this method.
public void setParams(BCClass[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setTy...
[ "0.77794677", "0.7762594", "0.7500376", "0.7459485", "0.7226476", "0.7082893", "0.6764359", "0.67297643", "0.66649234", "0.6621631", "0.6581211", "0.65389514", "0.647611", "0.6433272", "0.63848823", "0.6382302", "0.6338869", "0.6327047", "0.6327047", "0.63140875", "0.63016504...
0.0
-1
Add a parameter type to this method.
public void addParam(String type) { String[] origParams = getParamNames(); String[] params = new String[origParams.length + 1]; for (int i = 0; i < origParams.length; i++) params[i] = origParams[i]; params[origParams.length] = type; setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", ...
[ "0.7788107", "0.77232647", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.637958...
0.7459104
2
Add a parameter type to this method.
public void addParam(Class type) { addParam(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origP...
[ "0.7788107", "0.7459104", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586...
0.77232647
1
Add a parameter type to this method.
public void addParam(BCClass type) { addParam(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < ori...
[ "0.7788107", "0.77232647", "0.7459104", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.637958...
0.7363096
3
Add a parameter type to this method.
public void addParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length + 1]; for (int i = 0, index = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[index++]; } setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < ori...
[ "0.7788107", "0.77232647", "0.7459104", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.637958...
0.6465598
16
Add a parameter type to this method.
public void addParam(int pos, Class type) { addParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < ori...
[ "0.7788107", "0.77232647", "0.7459104", "0.7363096", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.637958...
0.7113688
4
Add a parameter type to this method.
public void addParam(int pos, BCClass type) { addParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < ori...
[ "0.7788107", "0.77232647", "0.7459104", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586...
0.69139814
8
Change a parameter type of this method.
public void setParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length]; for (int i = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[i]; } setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public ...
[ "0.72733945", "0.7111713", "0.68061686", "0.6789817", "0.66196436", "0.65000445", "0.6464128", "0.6360029", "0.6344383", "0.6325987", "0.6270046", "0.625604", "0.62227905", "0.61982507", "0.6170655", "0.614995", "0.614995", "0.6124251", "0.60968643", "0.60959744", "0.604978",...
0.58098036
36
Change a parameter type of this method.
public void setParam(int pos, Class type) { setParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public ...
[ "0.72733945", "0.7111713", "0.68061686", "0.6789817", "0.66196436", "0.65000445", "0.6464128", "0.6360029", "0.6344383", "0.6325987", "0.6270046", "0.625604", "0.62227905", "0.61982507", "0.6170655", "0.614995", "0.614995", "0.60968643", "0.60959744", "0.604978", "0.60492724"...
0.6124251
17
Change a parameter type of this method.
public void setParam(int pos, BCClass type) { setParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public ...
[ "0.72733945", "0.7111713", "0.68061686", "0.6789817", "0.66196436", "0.65000445", "0.6464128", "0.6360029", "0.6344383", "0.6325987", "0.6270046", "0.625604", "0.62227905", "0.61982507", "0.6170655", "0.614995", "0.614995", "0.6124251", "0.60968643", "0.60959744", "0.604978",...
0.6005477
25
Clear all parameters from this method.
public void clearParams() { setParams((String[]) null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearParameters() {\n\t\tqueryParameters.clear();\n\t}", "public Builder clearParameters() {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000800);\n\n return this;\n }", "void clearTypedParameters();", ...
[ "0.7783314", "0.7582644", "0.7540398", "0.7472876", "0.74431616", "0.7272298", "0.72125447", "0.7190858", "0.71849847", "0.71827143", "0.7034695", "0.7026387", "0.6978998", "0.6954059", "0.69010204", "0.6891954", "0.6848782", "0.6797751", "0.66921043", "0.66081506", "0.65708"...
0.79102576
0
Remove a parameter from this method.
public void removeParam(int pos) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length - 1]; for (int i = 0, index = 0; i < origParams.length; i++) if (i != pos) params[index++] = origParams[i]; setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tlong paramId = Long.parseLong(params.get(\"parameterId\"));\r\n\t\tthis.getLog().info(\"parameterId:\" + paramId);\r\n\t\t\r\n\t\tif(paramId != 0){\r\n\t\t\ttr...
[ "0.7585278", "0.7462238", "0.738395", "0.72514975", "0.7243423", "0.70848674", "0.6996269", "0.6973954", "0.68613905", "0.68183196", "0.6746384", "0.6667185", "0.6552928", "0.653219", "0.652522", "0.6517679", "0.65081716", "0.6501115", "0.64642006", "0.645881", "0.64164305", ...
0.66979057
11
////////////////////////////// VisitAcceptor implementation //////////////////////////////
public void acceptVisit(BCVisitor visit) { visit.enterBCMethod(this); visitAttributes(visit); visit.exitBCMethod(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void visit();", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "public abstract void accept(Visitor visitor);", "public abstract void accept(Visitor v);", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this...
[ "0.6685165", "0.6648125", "0.6581321", "0.6545279", "0.6354984", "0.63268715", "0.6304381", "0.62886083", "0.62599355", "0.6195844", "0.6173921", "0.61541325", "0.61512184", "0.6142437", "0.6128189", "0.6110677", "0.6103312", "0.60805804", "0.60734046", "0.60601115", "0.60271...
0.56231916
52
DB den alinan useri spring e vericek ve spring onun userDetails e donusturecek
public interface SecurityService extends UserDetailsService { @Override public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserDetails getDetails();", "@Query(\"SELECT id FROM Users t WHERE t.email =:email AND t.password =:password\")\n @Transactional(readOnly = true)\n Integer viewUser(@Param(\"email\") String email, @Param(\"password\") String password);", "UserDetails getCurrentUser();", "@Override\n protected UserDe...
[ "0.62685794", "0.6213772", "0.61827075", "0.6169364", "0.6152023", "0.6043249", "0.6040406", "0.60203433", "0.5973824", "0.59502125", "0.5950042", "0.59065217", "0.5897229", "0.5897073", "0.5888849", "0.58845943", "0.58764035", "0.5852939", "0.5848793", "0.58326584", "0.58300...
0.0
-1
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.62933207", "0.59871024", "0.59345496", "0.5807264", "0.57005894", "0.56254286", "0.56229895", "0.56043065", "0.55907774", "0.55277437", "0.55270976", "0.5502147", "0.5449934", "0.5449778", "0.5448262", "0.5438682", "0.5421909", "0.539829", "0.5392975", "0.5386786", "0.5378...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Producto)) { return false; } return id != null && id.equals(((Producto) o).id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.6329455", "0.610891", "0.5659298", "0.5650563", "0.55329704", "0.54645276", "0.5463555", "0.5449493", "0.54340285", "0.5415549", "0.5387973", "0.5379287", "0.5350966", "0.5341474", "0.5335219", "0.53296864", "0.53243345", "0.5322623", "0.5316597", "0.53026056", "0.5292526"...
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
public void dispose(GLAutoDrawable glad) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}...
[ "0.7744652", "0.73749053", "0.6966527", "0.6909395", "0.67964953", "0.6773559", "0.6771067", "0.6654384", "0.66389716", "0.6624263", "0.6609339", "0.6609339", "0.65914184", "0.6586954", "0.6555998", "0.6499744", "0.6462636", "0.64495736", "0.64296776", "0.6419897", "0.6382666...
0.0
-1
TODO Autogenerated method stub
@Override public int describeContents() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(ID); dest.writeString(Title); dest.writeString(More); dest.writeString(Tag); dest.writeString(PosterUrl); dest.writeString(VideoUrl); dest.writeString(Director); dest.writeString(Actor); dest.writeString(Grade); dest.writeString(Contents); dest.writeString(RunningTime); dest.writeString(HD); dest.writeString(Price); }
{ "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
Create topic with 1 partition to control who is active and standby
@Before public void setUp() { topic = USER_TOPIC + KsqlIdentifierTestUtil.uniqueIdentifierName(); TEST_HARNESS.ensureTopics(1, topic); TEST_HARNESS.produceRows( topic, USER_PROVIDER, FormatFactory.KAFKA, FormatFactory.JSON, timestampSupplier::getAndIncrement ); //Create stream makeAdminRequest( REST_APP_0, "CREATE STREAM " + USERS_STREAM + " (" + USER_PROVIDER.ksqlSchemaString(false) + ")" + " WITH (" + " kafka_topic='" + topic + "', " + " value_format='JSON');" ); //Create table output = KsqlIdentifierTestUtil.uniqueIdentifierName(); sql = "SELECT * FROM " + output + " WHERE USERID = '" + KEY + "';"; sqlMultipleKeys = "SELECT * FROM " + output + " WHERE USERID IN ('" + KEY + "', '" + KEY1 + "');"; List<KsqlEntity> res = makeAdminRequestWithResponse( REST_APP_0, "CREATE TABLE " + output + " AS" + " SELECT " + USER_PROVIDER.key() + ", COUNT(1) AS COUNT FROM " + USERS_STREAM + " GROUP BY " + USER_PROVIDER.key() + ";" ); queryId = extractQueryId(res.get(0).toString()); queryId = queryId.substring(0, queryId.length() - 1); waitForTableRows(); waitForStreamsMetadataToInitialize( REST_APP_0, ImmutableList.of(HOST0, HOST1, HOST2), queryId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTopic(String topic) {\n\n\t}", "@Override\n public void createPartition(Partition partition) {\n \n }", "public void createPartition(int nPid);", "public String createTopic(String topicName) throws Exception{\r\n\r\n\t\tpropTopic.put(\"bootstrap.servers\", config.getProperty(\"...
[ "0.7369884", "0.65778", "0.6439694", "0.63664746", "0.62905663", "0.6192863", "0.6117898", "0.6080505", "0.5797794", "0.5773436", "0.5731288", "0.56204206", "0.55762476", "0.5530196", "0.5515156", "0.55064195", "0.548062", "0.5478847", "0.54339033", "0.5419237", "0.54126924",...
0.0
-1
TODO Autogenerated method stub
@Override public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) { db.execSQL("DROP TABLE IF EXIST" + TABLE_NAME); onCreate(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void elementAlreadyActiveEffect(Ship ship, Element activeElement) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO add test methods here.
public void prueba(){ //Float f = Float.parseFloat(jtfValor.getText()); String s = "100.000,5"; String d = s.replace(".",""); // s.replaceAll(",", "."); // s.trim(); System.out.println(d); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void test() {\n\n\t}", "@Override\n protected v...
[ "0.6027187", "0.6015595", "0.58184975", "0.5790676", "0.5673687", "0.5658679", "0.5657986", "0.5657986", "0.5657986", "0.5657986", "0.5657986", "0.5657986", "0.5652669", "0.56347215", "0.5613453", "0.5604656", "0.55772966", "0.55162644", "0.5501187", "0.5496982", "0.54841995"...
0.0
-1
abro el reporte en un dialog
private void dialogoReporte(JasperPrint jasperPrint, String titulo) { JDialog dialogo = new JDialog(); dialogo.getContentPane().add(new JRViewer(jasperPrint)); dialogo.setModal(true); dialogo.setTitle(titulo); dialogo.setPreferredSize(Toolkit.getDefaultToolkit().getScreenSize()); dialogo.pack(); dialogo.setAlwaysOnTop(true); dialogo.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void crearReporte() {\n medirTiempoDeEnvio();\n SimpleDateFormat variableFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\n Calendar cal = Calendar.getInstance();\n String dia = String.valueOf(cal.get(cal.DATE));\n String mes = String.valueOf(cal.get(cal.MONTH) + 1);\n ...
[ "0.7278333", "0.6984007", "0.6966168", "0.6779904", "0.66607726", "0.6649649", "0.65659606", "0.65513134", "0.65152097", "0.65143484", "0.6499894", "0.64786786", "0.64603084", "0.64521456", "0.64468646", "0.6437858", "0.64000696", "0.63571644", "0.6340514", "0.6338353", "0.63...
0.75179154
0
Tencent.onActivityResultData(requestCode, resultCode, data, mUiListener);
public void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE){ if (resultCode == Constants.ACTIVITY_OK) { Tencent.handleResultData(data, listener); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fil...
[ "0.8545473", "0.8435956", "0.817456", "0.7962317", "0.7908593", "0.7858017", "0.7855952", "0.7733272", "0.77091277", "0.7638681", "0.7638681", "0.7593366", "0.7593366", "0.7593366", "0.7539356", "0.75309753", "0.7477154", "0.7472997", "0.72836554", "0.72391057", "0.7201195", ...
0.66944003
52
EFFECTS: returns JSON representation of tag
public static JSONObject tagToJson(Tag tag) { JSONObject tagJson = new JSONObject(); tagJson.put("name", tag.getName()); return tagJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String tagAsString();", "@JsonGetter(\"tag\")\r\n public String getTag() {\r\n return tag;\r\n }", "public NBTTagCompound writeToNBT(NBTTagCompound tag)\r\n/* 158: */ {\r\n/* 159:159 */ tag.setByte(\"Id\", (byte)getID());\r\n/* 160:160 */ tag.setByte(\"Amplifier\", (byte)getAmp...
[ "0.5740857", "0.5719212", "0.56868684", "0.5644439", "0.55787516", "0.55665797", "0.5516389", "0.55112207", "0.54885834", "0.54861057", "0.5463646", "0.5449831", "0.5415627", "0.53618836", "0.5359099", "0.5356455", "0.53368694", "0.5299523", "0.5294087", "0.5294087", "0.52940...
0.53960717
13
EFFECTS: returns JSON representation of priority
public static JSONObject priorityToJson(Priority priority) { JSONObject priorityJson = new JSONObject(); priorityJson.put("important", priority.isImportant()); priorityJson.put("urgent", priority.isUrgent()); return priorityJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static JSONObject getJsonPriority(Task task) {\n Priority myPriority = task.getPriority();\n return priorityToJson(myPriority);\n }", "String getPriority();", "String getPriority();", "String getPriority();", "public int getPriority();", "public int getPriority();", "String get...
[ "0.67553777", "0.66723615", "0.66723615", "0.66723615", "0.6467086", "0.6467086", "0.6390393", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.63476807", "0.6345672", "0.6309438", "0.62392163", "0.6238022", "0.6238022...
0.62731427
18
EFFECTS: returns JSON respresentation of dueDate
public static JSONObject dueDateToJson(DueDate dueDate) { if (dueDate == null) { return null; } JSONObject dueDateJson = new JSONObject(); Date myDate = dueDate.getDate(); Calendar myCal = Calendar.getInstance(); myCal.setTime(myDate); dueDateJson.put("year", myCal.get(Calendar.YEAR)); dueDateJson.put("month", myCal.get(Calendar.MONTH)); dueDateJson.put("day", myCal.get(Calendar.DAY_OF_MONTH)); dueDateJson.put("hour", myCal.get(Calendar.HOUR_OF_DAY)); dueDateJson.put("minute", myCal.get(Calendar.MINUTE)); return dueDateJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static JSONObject getJsonDate(Task task) {\n DueDate myDueDate = task.getDueDate();\n return dueDateToJson(myDueDate);\n }", "public String getDueDate()\r\n {\r\n return dueDate;\r\n }", "public Date getDue() {\n return this.due;\n }", "Date getDueDate();", "Date g...
[ "0.69587445", "0.6670341", "0.65565497", "0.6514107", "0.6514107", "0.640204", "0.6322109", "0.6310993", "0.6294984", "0.6275303", "0.62281597", "0.61862016", "0.61111385", "0.609561", "0.6063883", "0.60506237", "0.6034223", "0.595518", "0.59416366", "0.5936964", "0.59295946"...
0.6674537
1
EFFECTS: returns JSON representation of task
public static JSONObject taskToJson(Task task) { JSONObject taskJson = new JSONObject(); taskJson.put("description", task.getDescription()); taskJson.put("tags", getJsonTagSet(task)); if (getJsonDate(task) == null) { taskJson.put("due-date", JSONObject.NULL); } else { taskJson.put("due-date", getJsonDate(task)); } taskJson.put("priority", getJsonPriority(task)); taskJson.put("status", getStatus(task)); return taskJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAc...
[ "0.6877704", "0.6544414", "0.65148205", "0.6429199", "0.6370922", "0.63676244", "0.6340066", "0.62952214", "0.62722945", "0.6249871", "0.6249871", "0.62048405", "0.6204714", "0.60503894", "0.6049109", "0.6010715", "0.5982796", "0.594899", "0.5864327", "0.5830224", "0.58235383...
0.6441331
3
EFFECTS: returns JSON array representing list of tasks
public static JSONArray taskListToJson(List<Task> tasks) { JSONArray taskArray = new JSONArray(); for (Task t : tasks) { taskArray.put(taskToJson(t)); } return taskArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Task> getTaskdetails();", "@GET(\"/task/.json\")\n Call<Map<String, Task>> getAllTasks();", "List<ReadOnlyTask> getTaskList();", "List<ReadOnlyTask> getTaskList();", "@RequestMapping(method = RequestMethod.GET, value = \"/get-tasks\")\r\n\tpublic List<Task> getTasks() {\r\n\t\tList<Task> dummyT...
[ "0.71142876", "0.7009719", "0.6997822", "0.6997822", "0.6902687", "0.6833833", "0.6805229", "0.67991555", "0.66257584", "0.6604698", "0.6495164", "0.6492182", "0.643757", "0.6418146", "0.6418024", "0.63927597", "0.6388909", "0.63074064", "0.6292283", "0.6291399", "0.6291399",...
0.5799788
70
EFFECTS: returns a set of the JSON Tag set
private static ArrayList<JSONObject> getJsonTagSet(Task task) { ArrayList<JSONObject> myArray = new ArrayList<>(); Set<Tag> myTags = task.getTags(); for (Tag t : myTags) { JSONObject myOb = tagToJson(t); myArray.add(myOb); } return myArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tag [] getTagSet() {\n return this.TagSet;\n }", "public List getTags();", "private List<Tag> getTags() {\r\n\r\n\t\treturn getTags(null);\r\n\r\n\t}", "public Set<String> getTags(){return tags;}", "public List<Tag> getTagList();", "List<Tag> getTagList();", "List<Tag> getTagList();", ...
[ "0.63086426", "0.6132233", "0.5956082", "0.5911105", "0.5830013", "0.57878345", "0.57878345", "0.57679474", "0.5749653", "0.57376844", "0.5721307", "0.5720905", "0.5704887", "0.5659163", "0.56502765", "0.56194514", "0.56049013", "0.56049013", "0.56049013", "0.56049013", "0.56...
0.67560595
0
EFFECTS: returns the object for the task date
private static JSONObject getJsonDate(Task task) { DueDate myDueDate = task.getDueDate(); return dueDateToJson(myDueDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Task getFirstTestTask() {\n Task task = new Task();\n task.setName(\"Buy Milk\");\n task.setCalendarDateTime(TODAY);\n task.addTag(\"personal\");\n task.setCompleted();\n return task;\n }", "public void printTaskByDate(String date)\n {\n tasks.stream()\...
[ "0.613228", "0.61198246", "0.59060717", "0.58736587", "0.585187", "0.572259", "0.5682711", "0.5657095", "0.5650887", "0.5647255", "0.5632218", "0.56118023", "0.55852854", "0.55822295", "0.5561482", "0.55565447", "0.5556246", "0.5552674", "0.5544353", "0.5525942", "0.55144453"...
0.6486395
0
EFFECTS: returns the object for the task date
private static JSONObject getJsonPriority(Task task) { Priority myPriority = task.getPriority(); return priorityToJson(myPriority); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static JSONObject getJsonDate(Task task) {\n DueDate myDueDate = task.getDueDate();\n return dueDateToJson(myDueDate);\n }", "private Task getFirstTestTask() {\n Task task = new Task();\n task.setName(\"Buy Milk\");\n task.setCalendarDateTime(TODAY);\n task.ad...
[ "0.6486395", "0.613228", "0.61198246", "0.59060717", "0.58736587", "0.585187", "0.572259", "0.5682711", "0.5657095", "0.5650887", "0.5647255", "0.5632218", "0.56118023", "0.55852854", "0.55822295", "0.5561482", "0.55565447", "0.5556246", "0.5552674", "0.5544353", "0.5525942",...
0.0
-1
EFFECTS:prints the statuses without spaces
private static String getStatus(Task task) { Status myStatus = task.getStatus(); if (myStatus == Status.UP_NEXT) { return "UP_NEXT"; } else if (myStatus == Status.IN_PROGRESS) { return "IN_PROGRESS"; } else { return myStatus.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printStatus(){\n System.out.println();\n System.out.println(\"Status: \");\n System.out.println(currentRoom.getLongDescription());\n currentRoom.printItems();\n System.out.println(\"You have made \" + moves + \" moves so far.\");\n }", "public void printStatus();...
[ "0.703548", "0.68035483", "0.6581547", "0.6540321", "0.63032204", "0.6235454", "0.62105197", "0.61962163", "0.61962163", "0.61962163", "0.61962163", "0.6177006", "0.6126896", "0.61030173", "0.6096115", "0.60949886", "0.60909784", "0.6086361", "0.6053391", "0.6026553", "0.6011...
0.0
-1
The body of this method is generated in a way you would not otherwise write. This is done to optimize the compiled bytecode for size and performance.
@NonNull public static ActivityTicketingBinding bind(@NonNull View rootView) { int id; missingId: { id = R.id.bottom_nav; BottomNavigationView bottomNav = ViewBindings.findChildViewById(rootView, id); if (bottomNav == null) { break missingId; } id = R.id.btn_add_cat; Button btnAddCat = ViewBindings.findChildViewById(rootView, id); if (btnAddCat == null) { break missingId; } id = R.id.btn_viewall_activity; Button btnViewallActivity = ViewBindings.findChildViewById(rootView, id); if (btnViewallActivity == null) { break missingId; } id = R.id.etAddCategory; EditText etAddCategory = ViewBindings.findChildViewById(rootView, id); if (etAddCategory == null) { break missingId; } id = R.id.etPrice; EditText etPrice = ViewBindings.findChildViewById(rootView, id); if (etPrice == null) { break missingId; } id = R.id.etTicketCont; EditText etTicketCont = ViewBindings.findChildViewById(rootView, id); if (etTicketCont == null) { break missingId; } id = R.id.img1; ImageView img1 = ViewBindings.findChildViewById(rootView, id); if (img1 == null) { break missingId; } id = R.id.textView; TextView textView = ViewBindings.findChildViewById(rootView, id); if (textView == null) { break missingId; } id = R.id.textView1; TextView textView1 = ViewBindings.findChildViewById(rootView, id); if (textView1 == null) { break missingId; } id = R.id.topic1; TextView topic1 = ViewBindings.findChildViewById(rootView, id); if (topic1 == null) { break missingId; } return new ActivityTicketingBinding((RelativeLayout) rootView, bottomNav, btnAddCat, btnViewallActivity, etAddCategory, etPrice, etTicketCont, img1, textView, textView1, topic1); } String missingId = rootView.getResources().getResourceName(id); throw new NullPointerException("Missing required view with ID: ".concat(missingId)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "protected final void emitCode() {\n int bytecodeSize = request.graph.method() == null ? 0 : request.graph.getBytecodeSize();\n request.compilationResult.setHasUnsafeAccess(request.graph.hasUnsafeAccess());\n GraalCompiler.emitCode(...
[ "0.73024863", "0.6558568", "0.6414415", "0.63334614", "0.6257398", "0.6167283", "0.60765696", "0.60405153", "0.5964053", "0.5930892", "0.5919968", "0.5891898", "0.5889537", "0.5879938", "0.5860413", "0.58588773", "0.58558565", "0.58482856", "0.5823338", "0.5812645", "0.580380...
0.0
-1
Constructor will need the renderer for when the event happens.
public StartAnimationHandler(SceneRenderer initRenderer) { // KEEP THIS FOR LATER renderer = initRenderer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Renderer() {\n this.addGLEventListener(this);\n }", "public synchronized void rendererCreated (RendererEvent aRendererEvent)\n\t{\n\t\tMComponent theComponent = aRendererEvent.getComponent ();\n\t\tMauiApplication theApplication = (MauiApplication) theComponent.getRootParent ();\n\t\tnotifyListener...
[ "0.7355361", "0.715867", "0.6798438", "0.67752093", "0.6761132", "0.67558765", "0.67230314", "0.66850847", "0.6674741", "0.6670743", "0.6655242", "0.6655242", "0.6459794", "0.64222026", "0.6359763", "0.6351724", "0.6329791", "0.6312096", "0.6307127", "0.62860703", "0.6228633"...
0.6610305
12
Here's the actual method called when the user clicks the start animation method, which results in unpausing of the renderer, and thus the animator as well.
@Override public void actionPerformed(ActionEvent ae) { renderer.unpauseScene(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public abstract void animationStarted();",...
[ "0.7585563", "0.7538354", "0.7464854", "0.7388899", "0.73832834", "0.73591954", "0.7300012", "0.7260812", "0.7257628", "0.7250372", "0.7248183", "0.72444373", "0.72291213", "0.7223182", "0.7221037", "0.7204118", "0.7204118", "0.7196639", "0.7196639", "0.7177949", "0.7177949",...
0.6820283
56
The web server can handle requests from different clients in parallel. These are called "threads". We do NOT want other threads to manipulate the application object at the same time that we are manipulating it, otherwise bad things could happen. The "synchronized" keyword is used to lock the application object while we're manpulating it.
private appR getApp() throws JAXBException, IOException { synchronized (application) { appR App = (appR) application.getAttribute("App"); if (App == null) { App = new appR(); App.setFilePath(application.getRealPath("WEB-INF/Listings.xml")); application.setAttribute("App", App); } return App; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket client = serverSocket.accept();\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"连接到服务器的用户:\" + client);\n\t\t\t\t\t// 定义输入输出流\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\t\t\tPrintWriter...
[ "0.5725853", "0.5710096", "0.5699239", "0.561955", "0.55320656", "0.5518477", "0.5517142", "0.54914415", "0.5436914", "0.5378512", "0.53580576", "0.53567743", "0.535661", "0.53414106", "0.5334274", "0.53338736", "0.53265274", "0.53253114", "0.53208625", "0.5318529", "0.531547...
0.0
-1
get username of lister
@Path("lister/{email}") @GET @Produces(MediaType.APPLICATION_XML) public Listings getEmail(@PathParam("email") String email) throws JAXBException, IOException { appR applicationR = getApp(); Listings listings = applicationR.getListings(); Listings ret = new Listings(); Boolean s = false; for (Listing listing : listings.getList()) { if (listing.getEmail().equals(email)) { ret.addListing(listing); } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String ge...
[ "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.73601896", "0.7271622", "0.71925557", "0.7164674", "0.7152196", "0.7134272", "0.7116356", "0.7116356", "0.7116356", "0.7116356", "0.7116356", "0.7116356", ...
0.0
-1
method to get status
@Path("status/{avaliability}") @GET @Produces(MediaType.APPLICATION_XML) public Listings getStatus(@PathParam("avaliability") String avaliability) throws JAXBException, IOException { appR applicationR = getApp(); Listings listings = applicationR.getListings(); Listings ret = new Listings(); Boolean s = false; if (avaliability.equals("avaliable") || avaliability.equals("true")) { s = true; } for (Listing listing : listings.getList()) { if (listing.isAvailable() == s) { ret.addListing(listing); } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Status getStatus();", "public int getStatus();", "public int getStatus();", "public int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", ...
[ "0.8671553", "0.8603665", "0.8603665", "0.8603665", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8509997", "0.8509997", "0.844598", "0.844598", "0.844598", "0.844598", "0.84...
0.0
-1
metohd to get num guests
@Path("numofguests/{num}") @GET @Produces(MediaType.APPLICATION_XML) public Listings getNumOfGuests(@PathParam("num") int num) throws JAXBException, IOException { appR applicationR = getApp(); Listings listings = applicationR.getListings(); Listings ret = new Listings(); for (Listing listing : listings.getList()) { if (listing.getNumguests() == num) { ret.addListing(listing); } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfGuests();", "public int getGuestCount() { return _scroller.getGuestCount(); }", "int getGuestAcceleratorsCount();", "public int getguestID(){\n return givedata.returnGuestID();\n }", "public static void incrementGuestRoomCount() {numGuestRooms++;}", "static public int getGUEST()...
[ "0.83721435", "0.73764646", "0.6857542", "0.64410573", "0.6419513", "0.633889", "0.63238937", "0.6256596", "0.6100547", "0.6080544", "0.6080544", "0.6078125", "0.59695977", "0.58888435", "0.584658", "0.584658", "0.5845553", "0.58425176", "0.578231", "0.5759987", "0.5759987", ...
0.5969642
12
TODO Autogenerated method stub
@Override public void onReceive(Context arg0, Intent arg1) { }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.firstpage, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_timetable) { startActivity(new Intent(getApplicationContext(),timetable.class)); } else if (id == R.id.nav_contact) { startActivity(new Intent(getApplicationContext(),contacts.class)); } else if (id == R.id.nav_majorevents) { startActivity(new Intent(getApplicationContext(),eventspage.class)); } else if (id == R.id.nav_about) { startActivity(new Intent(getApplicationContext(),aboutdevelopers.class)); } else if (id == R.id.nav_form) { startActivity(new Intent(getApplicationContext(),ImportantForms.class)); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
The type of the id.
@XmlTransient @JsonIgnore public URI getType() { return this.type == null ? null : this.type.getType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId_type() {\n return id_type;\n }", "public String getIdType() {\n return idType;\n }", "public int getIdType() {\r\n return idType;\r\n }", "public Integer getIdType() {\n return idType;\n }", "public String getIDType() {\n return idType;\n ...
[ "0.8713768", "0.85805726", "0.84317255", "0.8356285", "0.8298169", "0.8256875", "0.81370455", "0.81079584", "0.8054307", "0.7978897", "0.79707587", "0.7815046", "0.77493995", "0.77468383", "0.76915795", "0.75928193", "0.75928193", "0.7573044", "0.75299364", "0.75071424", "0.7...
0.0
-1
The type of the id.
@JsonIgnore public void setType(URI type) { this.type = type == null ? null : new TypeReference<AlternateIdType>(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId_type() {\n return id_type;\n }", "public String getIdType() {\n return idType;\n }", "public int getIdType() {\r\n return idType;\r\n }", "public Integer getIdType() {\n return idType;\n }", "public String getIDType() {\n return idType;\n ...
[ "0.8713768", "0.85805726", "0.84317255", "0.8356285", "0.8298169", "0.8256875", "0.81370455", "0.81079584", "0.8054307", "0.7978897", "0.79707587", "0.7815046", "0.77493995", "0.77468383", "0.76915795", "0.75928193", "0.75928193", "0.7573044", "0.75299364", "0.75071424", "0.7...
0.0
-1
Set the value of the id type from a known alternate id type.
@JsonIgnore public void setKnownType(AlternateIdType knownType) { this.type = knownType == null ? null : new TypeReference<AlternateIdType>(knownType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdType(Integer idType) {\n this.idType = idType;\n }", "public void setId_type(String id_type) {\n this.id_type = id_type;\n }", "public void setIdType(int idType) {\r\n this.idType = idType;\r\n }", "private void setTypeId(int value) {\n \n typeId_ = value;...
[ "0.7294372", "0.72934055", "0.72280204", "0.7194069", "0.69411314", "0.68660814", "0.68427384", "0.6759094", "0.66336715", "0.63986015", "0.6234808", "0.6173006", "0.615656", "0.6086607", "0.60835236", "0.6048567", "0.6044805", "0.6037478", "0.60292137", "0.6018203", "0.59900...
0.6824458
7
Provide a simple toString() method.
@Override public String toString() { return (value == null) ? "" : value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "publi...
[ "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws MalformedURLException { AndroidDriver<AndroidElement> driver = Capabilities(); //Put implicit timeout so that system wont break before this time driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); //The below code explain how to scroll and select the appropriate element. ((FindsByAndroidUIAutomator<AndroidElement>) driver).findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\"Views\").instance(0))"); driver.findElement(By.xpath("//android.widget.TextView[@text='Views']")).click(); //1. Tap Gesture: using TouchAction class TouchAction t = new TouchAction(driver); WebElement expandList = driver.findElement(By.xpath("//android.widget.TextView[@text='Expandable Lists']")); t.tap(tapOptions().withElement(element(expandList))).perform(); //2. Longpress gesture using TouchAction class driver.findElement(By.xpath("//android.widget.TextView[@text='1. Custom Adapter']")).click(); WebElement pnames= driver.findElement(By.xpath("//android.widget.TextView[@text='People Names']")); t.longPress(longPressOptions().withElement(element(pnames)).withDuration(ofSeconds(2))).release().perform(); //Validate that Sample menu is displayed after longpress. System.out.println(driver.findElementById("android:id/title").isDisplayed()); }
{ "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
Este metodo recupera um registro de DvdCd pelo id correspondente
@Override public DvdCd getById(Integer id) { logger.info("Buscando DVD/CD por ID "+id); Optional<DvdCd> obj = itemRepository.findById(id); if (!obj.isPresent()) { logger.error("DvdCd nao encontrado, "+DvdCdServiceImpl.class); throw new ObjectNotFoundException("DvdCd nao encontrado, id: "+id); } return obj.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DVDDetails getDetails(String dvdID);", "public So_cdVO getById(String so_cd);", "DireccionDTO consultarDireccion(long idDireccion);", "public Coche consultarUno(int id) {\n Coche coche =cochedao.consultarUno(id);\r\n \r\n return coche;\r\n }", "Object getDados(long id);", "pu...
[ "0.6516871", "0.64433455", "0.635816", "0.62756604", "0.6218484", "0.619498", "0.61718893", "0.61507803", "0.61397916", "0.60835785", "0.60619897", "0.60448337", "0.5979608", "0.5928841", "0.58979523", "0.5896957", "0.58931607", "0.58820665", "0.5881075", "0.58700365", "0.585...
0.6819827
0
Este metodo lista todos os registros de DvdCd
@Override public List<DvdCd> getAll() { logger.info("Listando todos os DVDs/CDs"); return itemRepository.findAll(UserServiceImpl.authenticated().getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void listarRegistros() {\n System.out.println(\"\\nLISTA DE TODOS LOS REGISTROS\\n\");\n for (persona ps: pd.listaPersonas()){\n System.out.println(ps.getId()+ \" \"+\n ps.getNombre()+ \" \"+\n ps.getAp_paterno()+ \" \"+ \n ...
[ "0.69704497", "0.59142673", "0.5837024", "0.5803179", "0.57393235", "0.5650391", "0.5605999", "0.5600491", "0.55954206", "0.55787766", "0.5571285", "0.5567562", "0.5559726", "0.5537597", "0.55296034", "0.5514353", "0.55038637", "0.5499336", "0.5497563", "0.54901904", "0.54767...
0.56075317
6
Este metodo edita um registro de DvdCd
@Override public DvdCd update(Integer dvdCdId, DvdCd dvdCdDetails) { DvdCd dvd_cd = (DvdCd) this.getById(dvdCdId); logger.info("Atualizando DVD/CD "+dvd_cd.getTitulo()); dvd_cd.setTitulo(dvdCdDetails.getTitulo()); dvd_cd.setPreco(dvdCdDetails.getPreco()); dvd_cd.setObservacoes(dvdCdDetails.getObservacoes()); dvd_cd.setConteudo(dvdCdDetails.getConteudo()); dvd_cd.setEstado(dvdCdDetails.getEstado()); dvd_cd.setMarca(dvdCdDetails.getMarca()); dvd_cd.setStatusDeUso(dvdCdDetails.isStatusDeUso()); DvdCd updatedDvdCd = itemRepository.save(dvd_cd); return updatedDvdCd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void editar(Contato contato) {\n\t\tthis.dao.editar(contato);\n\t\t\n\t}", "public void editar() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Atualizar(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente editado com sucesso!\");\n\n ...
[ "0.678156", "0.672827", "0.66526544", "0.6605244", "0.65877396", "0.6563122", "0.652152", "0.6513", "0.6455344", "0.64390653", "0.6432357", "0.6351865", "0.63343084", "0.6332086", "0.63249356", "0.63084096", "0.62373745", "0.62145585", "0.6208564", "0.6199848", "0.6192135", ...
0.5661642
90
Busca DvdCd por filtro e tipo de filtro
public List<DvdCd> buscaPorFiltro(TipoFiltro tipoFiltro, String filtro){ if(tipoFiltro.equals(TipoFiltro.TITULO)) { logger.info("Buscando por filtro de titulo :"+filtro); return itemRepository.filtraPorTitulo(UserServiceImpl.authenticated().getId(), filtro); } else if (tipoFiltro.equals(TipoFiltro.MARCA)) { logger.info("Buscando por filtro de marca: "+filtro); return itemRepository.filtraPorMarca(UserServiceImpl.authenticated().getId(), filtro); } return itemRepository.findAll(UserServiceImpl.authenticated().getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDataItemFilter();", "public static String buildTypeSourceWhereFilter() {\n PDCOptionData pcOptions = PDCOptionData.getInstance();\n StringBuilder buffer = new StringBuilder();\n String returnValue = null;\n\n for (int i = 0; i < pcOptions.getTypeSourceChosenList()....
[ "0.5904323", "0.563782", "0.5541004", "0.5499943", "0.54802406", "0.5444873", "0.5326664", "0.5316321", "0.5285792", "0.5227783", "0.5227019", "0.5220961", "0.52085555", "0.5207145", "0.51850015", "0.5170918", "0.51486194", "0.51473826", "0.5113818", "0.51027757", "0.5047639"...
0.6318113
0
/ renamed from: a
public void mo8812a(int i) { if (i == 1) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_REMAIN_ZERO, (Bundle) null); } else if (i == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_MOVIE, (Bundle) null); } else if (i == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_MOVIE_RECORD_FAIL, (Bundle) null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public void mo8818b(int i) { if (i == 1) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_REMAIN_ZERO, (Bundle) null); } else if (i == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_PICTURE, (Bundle) null); } else if (i == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_PIC_CAPTURE_FAIL, (Bundle) null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: a
public void mo8813a(int i, int i2) { if (i == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_MOVIE, (Bundle) null); } else if (i == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_MOVIE, (Bundle) null); } else if (i == 4) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_MOVIE, (Bundle) null); } else if (i2 == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_PICTURE, (Bundle) null); } else if (i2 == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_PICTURE, (Bundle) null); } else if (i2 == 4) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_PICTURE, (Bundle) null); } else if (i != 1 || i2 != 1) { } else { if (C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_MOVIE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_MOVIE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_MOVIE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_PICTURE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_PICTURE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_PICTURE)) { C2331d.m10100a((Activity) C3720a.this); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public void mo8811a() { C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() { public void run() { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PROGRESS, (Bundle) null); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public void mo8817b() { C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() { public void run() { C2331d.m10100a((Activity) C3720a.this); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: c
public void mo8819c() { C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() { public void run() { C2331d.m10100a((Activity) C3720a.this); C2331d.m10114a((Activity) C3720a.this, C2328a.ON_DISCONNECT_NO_FINISH, (Bundle) null); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: d
public void mo8820d() { if (!((Activity) C3720a.this._context).getClass().getSimpleName().equalsIgnoreCase(LiveViewMoviePantilterCheckRangeActivity.class.getSimpleName())) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PANTILTER_NO_CONNECT, (Bundle) null); } else { C3720a.this.finish(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor...
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222...
0.0
-1