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
The plant mushroom function finds a random number between 0 and 200, and if that number is less than the birth rate of the snake it selects a number between 0 and 5 and plants a mushroom accordingly. It has a higher chance of planting a green mushroom than any other color, as those are the only ones that are 'good' for...
private void plantMushroom(){ if (rand.nextInt(200) < this.BIRTH_RATE){ int plant = rand.nextInt(5); Mushroom mush = null; switch (plant){ case 0: mush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10); for (int count = 0; count < mySnake.getList().siz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void reproduce (Species [][] map, int sheepHealth, int wolfHealth, int plantHealth) {\n \n // Place the baby\n int babyY, babyX;\n \n // Check if the baby has been placed\n int spawned = 0;\n \n for (int y = 0; y < map[0].length; y++){\n for (int x = 0; x < map.lengt...
[ "0.624156", "0.62112117", "0.6166865", "0.6011663", "0.6004758", "0.5988859", "0.59443176", "0.59115374", "0.58762306", "0.5826937", "0.57901025", "0.57803684", "0.5740435", "0.5736152", "0.5709967", "0.57082707", "0.5697375", "0.5691881", "0.5679413", "0.56775653", "0.567451...
0.81493604
0
The end game function opens up an input dialog with the list of high scores on it and asks the player to input their initials. It then calls the checkIfHighScore function to see if the player has a high score, and whether they do or not it writes the new list of high scores to the file.
public void endGame(){ String inits = JOptionPane.showInputDialog( "High Scores:\n" +scores[9].toString() +scores[8].toString() +scores[7].toString() +scores[6].toString() +scores[5].toString() +scores[4].toString() +scores[3].toString() +scores[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gameEnd(boolean win) {\n timer.stop();\n playing = false;\n if (win) {\n status.setText(\"You win!\");\n int score = (int) (Math.pow(boardWidth, 2) * Math.pow(boardHeight, 2) \n + Math.pow(mines, 3)) / timeElapsed;\n String nickn...
[ "0.68767697", "0.6762906", "0.67462337", "0.67257756", "0.6674244", "0.66508025", "0.66173744", "0.65706635", "0.6567629", "0.65510845", "0.64617664", "0.644673", "0.62780124", "0.6276377", "0.62022054", "0.6155768", "0.6135575", "0.61146885", "0.60876864", "0.6056645", "0.60...
0.8501986
0
The check if high score function takes in the initials of the player so that it can create a new high score object if necessary, then it goes through the list of high scores the game has a handle on, and if the player has a score that is high enough to be on the list it fits it into the list in the proper place and bum...
private void checkIfHighScore(String inits){ for(int count = 0; count < scores.length; count++){ if (count == 9 && points > scores[count].getScore()){ //If the player has a score higher than the highest score for (int counter = 0; counter < 8; counter++){ scores[counter] = scores[counter++]; //bumps d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkHighScore(){\n if(highScoreList.isEmpty() || highScoreList.size() < 5){\n return true;\n }\n //Any other case, we have to start comparing\n for(User user : highScoreList) {\n //We found a place to put their score!\n if(getScore() > us...
[ "0.70604545", "0.7050491", "0.70364857", "0.6970628", "0.6731394", "0.6692065", "0.65714836", "0.6543611", "0.6485534", "0.64469707", "0.6422285", "0.6378564", "0.63680065", "0.63451564", "0.6317884", "0.62276644", "0.61876035", "0.6167224", "0.61506855", "0.60905814", "0.606...
0.7240222
0
The drawOn function sets the graphics to be white if the snake is not frozen, and if they are it draws the snake as cyan instead to represent that. It then draws all of the mushrooms in its list.
public void drawOn(Graphics g){ if (ignoreStrokes > 0){ g.setColor(Color.cyan); //to show the player that they are frozen } else { g.setColor(Color.white); } mySnake.drawOn(g); for (Mushroom m : shrooms){ m.drawOn(g); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawGame() {\r\n //For each each cell of the grid if there is a snake draw green,\r\n //an apple draw red or nothing draw white.\r\n for (int x = 0; x < gridWidth; x++) {\r\n for (int y = 0; y < gridHeight; y++) {\r\n if (isSnakeAt(new Coordinates(x, y))...
[ "0.68090785", "0.6596813", "0.6560354", "0.6531604", "0.64711326", "0.6406957", "0.62386525", "0.6082556", "0.6037867", "0.6008714", "0.6003411", "0.5999755", "0.59747016", "0.59700215", "0.59522486", "0.59389913", "0.59311205", "0.59249896", "0.58654886", "0.58652467", "0.58...
0.78516597
0
The read scores from file function looks at a file of high scores and fills the list of high scores found in the game with these high scores.
public void readScoresFromFile(File f) throws IOException, FileNotFoundException{ BufferedReader br = null; try{ FileReader fr = new FileReader(f); br = new BufferedReader(fr); String str = br.readLine(); for (int count = 0; count < scores.length; count++){ scores[9-count] = new Hig...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFile(){\n try {\n highscores = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(\"Highscores.txt\"));\n String line = br.readLine();\n while (line != null){\n try{\n highscores.add(Integer...
[ "0.8079563", "0.80021757", "0.77870005", "0.75655246", "0.7132234", "0.7121221", "0.7090739", "0.7031473", "0.7000397", "0.69798434", "0.6809989", "0.6745098", "0.6736909", "0.6638058", "0.66342133", "0.65959764", "0.65005857", "0.6434317", "0.63928825", "0.6265856", "0.62508...
0.7756924
3
The write scores to file function writes down the list of high scores that the game has a handle on back to the file, replacing whatever was there before.
public void writeScoresToFile(File f) throws IOException, FileNotFoundException{ BufferedWriter bw = null; try{ FileWriter fw = new FileWriter(f); bw = new BufferedWriter(fw); for (int count = 0; count < scores.length; count++){ bw.write(scores[9-count].getInitials()+SEPARATOR+scores[9-count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveScores(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(topScores.get(0) + \"-\" + topScores.get(1) + \"-\" + topScores.get(2) + \"...
[ "0.82396203", "0.81551754", "0.79747355", "0.7898178", "0.7680496", "0.7653959", "0.75260425", "0.74107087", "0.7297568", "0.72738916", "0.7178743", "0.71764505", "0.6983473", "0.69023144", "0.6886917", "0.6879445", "0.6859087", "0.68201655", "0.6807025", "0.6783175", "0.6746...
0.72773445
9
endregion region GETTER SETTER
public String getWaehrung() { return Waehrung; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "String setValue();", "public int getSet() {\n return set;\n }", "@Override\n public void get() {}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "public Value makeSetter() {\n Value r = new Value(this);\n r....
[ "0.7147314", "0.6916883", "0.61926985", "0.6180276", "0.6155722", "0.6149138", "0.6118739", "0.6117708", "0.61035365", "0.6096311", "0.60637915", "0.60417885", "0.5941008", "0.5913595", "0.59124774", "0.5898988", "0.5871498", "0.587088", "0.5867463", "0.5867463", "0.5857512",...
0.0
-1
TODO : Make Singleton with Global Access
protected TestObject(String inputKey) throws IOException, URISyntaxException { // TODO : Validate Version format and existence on jira // String inputVersion = "2015.09.03"; String inputVersion = PropertiesParser.getVersionFromTerminal(); this.versionName = inputVersion; this.key ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private Singleton(){}", "private Singleton() {\n\t}", "private Singleton() { }", "private SingletonEager(){\n \n }", "private Singleton(){\n }", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singl...
[ "0.78586125", "0.78175807", "0.77998906", "0.76735246", "0.7656653", "0.7586552", "0.75694716", "0.7446443", "0.7436965", "0.7418046", "0.7401209", "0.7241247", "0.7241247", "0.7230687", "0.7190943", "0.71803784", "0.7120182", "0.7110101", "0.7082652", "0.7075814", "0.7033838...
0.0
-1
get Test execution Id for a Test, if not exists, creates one
public long getExecutionForTest() throws IOException, URISyntaxException { ConnectionManager.refreshSession(); executionCycleDOM = ConnectionManager.getTestExecutionForIssue(issue.getIdAsLong()); executionId = executionCycleDOM.getIdByVersion(versionId); logger.info("EXECUTION ID : " + e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int createNewTest(String testName) {\r\n\t\tint newTestId = -1;\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"insert into tests (name) VALUES (?)\", Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tpStat.setString(1, testName);\r\n\t\t\tpStat.execute();\r\n\r...
[ "0.7027479", "0.6775392", "0.6603564", "0.65650344", "0.6510445", "0.6276087", "0.6263099", "0.62108", "0.6180039", "0.5922249", "0.5853737", "0.57483566", "0.57282877", "0.5709575", "0.57086545", "0.5697204", "0.56161076", "0.56131405", "0.5574875", "0.55295056", "0.55295056...
0.62910354
5
executes a Test under a given test cycle
public void executeTestUnderCycle() throws IOException, URISyntaxException { ConnectionManager.addTestToTestCycle(issue.getKey(), versionId, issue.getProjectId(), Integer.toString(testCycleList.getTestCycleIdFromName(TEST_CYCLE_NAME))); testExecutedInSessi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "public void run(TestCase testCase) {\n }", "@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }", "@Override\n protected void executeTest() {\n ClientConnection<Event>...
[ "0.6751448", "0.6576475", "0.6529692", "0.64715517", "0.6435364", "0.64157975", "0.62000436", "0.61984426", "0.6166907", "0.6148157", "0.6119208", "0.61120117", "0.6080702", "0.607315", "0.60357434", "0.6025387", "0.6024289", "0.60221666", "0.60118496", "0.600528", "0.5974248...
0.6701793
1
3. Write a Java program to divide two numbers and print on the screen. Go to the editor Test Data : 50/3 Expected Output : 16
public static void main(String[] args) { int div, num1 = 50, num2 = 3; div = num1/num2; System.out.println("Total " + div ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tint a=20;\n\t\tint b=0;\n\t\tint c=a/b;\n\t\tSystem.out.println(c);\n\t\tSystem.out.println(\"division=\"+c);\n\t\tSystem.out.println(c);\n\n\t}", "@Test\n\tvoid divide() {\n\t\tfloat result = calculator.divide(12, 4);\n\t\tassertEquals(3,result);\n\t}", "public st...
[ "0.7621226", "0.7609141", "0.74843115", "0.7463625", "0.7389748", "0.7378897", "0.7287303", "0.72180325", "0.7217124", "0.7189427", "0.7162514", "0.7148248", "0.70703614", "0.7016143", "0.7005096", "0.6999398", "0.6992544", "0.6983226", "0.69610673", "0.694755", "0.6934466", ...
0.75500095
2
TPLOC teleports player to given coordinates
public static Boolean run(CommandSender sender, String alias, String[] args) { if (PlayerHelper.checkIsPlayer(sender)) { Player player = (Player)sender; if (!Utils.checkCommandSpam(player, "tp-tploc")) { // first of all, check permissions if (Permissions.checkPerms(player, "cex.tploc")) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean teleport(Player p1, Player p2, boolean change);", "public static void teleportPlayer(final Player player,\n \t\t\tfinal Location toLocation) {\n \t\tfinal Object networkManager = getNetServerHandler(getHandle(player));\n \t\ttry {\n \t\t\tnetworkManager.getClass().getMethod(\"teleport\", Location.class)\...
[ "0.6400738", "0.6286519", "0.6149206", "0.60311687", "0.60072094", "0.59542364", "0.5939122", "0.59360844", "0.59049565", "0.58795065", "0.58693844", "0.5867527", "0.58575", "0.58483875", "0.5729473", "0.5708273", "0.57002646", "0.56987286", "0.56836146", "0.5677309", "0.5646...
0.5891291
9
Defines the interface of a datastore.
public interface Datastore<DatastoreSession extends com.buschmais.cdo.spi.datastore.DatastoreSession, EntityMetadata extends DatastoreEntityMetadata<Discriminator>, Discriminator> extends AutoCloseable { /** * Initialize the datastore. * * @param registeredMetadata A collection of all registerted ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DatastoreText {\n\n /**\n * Stores a property.. The kind, name and property can be thought of as\n * corresponding roughly to table,column, row key.\n * \n * @param kind\n * @param name\n * @param property\n * @param value\n */\n void put(String kind, String n...
[ "0.67311555", "0.64310664", "0.63491595", "0.6345447", "0.63184834", "0.631016", "0.62786216", "0.62723386", "0.626399", "0.6191232", "0.6166828", "0.61223024", "0.6102227", "0.60942364", "0.6091337", "0.609091", "0.60712713", "0.6032017", "0.6031069", "0.6018788", "0.6002208...
0.7359472
0
Return the datastore specific metadata factory.
DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OBStoreFactory getFactory();", "@objid (\"0078ca26-5a20-10c8-842f-001ec947cd2a\")\n GenericFactory getGenericFactory();", "DTMCFactory getDTMCFactory();", "public MetaDataManager createMetaDataManager() throws ServiceException {\r\n initialize(); \r\n return new Met...
[ "0.64882874", "0.6013483", "0.59965307", "0.59584016", "0.5914041", "0.5819468", "0.5763684", "0.5759208", "0.57556605", "0.5742335", "0.56786776", "0.5672955", "0.56709135", "0.56663114", "0.5657093", "0.5652939", "0.5641408", "0.5616318", "0.56142205", "0.56019026", "0.5594...
0.77758396
0
Create a datastore session, e.g. open a connection to the datastore.
DatastoreSession createSession();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session);\n\t\treturn session;\n\t}", "DefaultSession createSession(String id);", "public Session createSession() {\n\t\treturn this.session;\n\t}", "@Override\n\tpublic Session createSession(SessionBasicInfo ses...
[ "0.7397343", "0.6865061", "0.66215336", "0.65159553", "0.6427248", "0.6325215", "0.6324108", "0.62660044", "0.6245066", "0.61020184", "0.6101078", "0.6093456", "0.6078773", "0.6058597", "0.60312515", "0.6016516", "0.59995836", "0.5973757", "0.5925465", "0.5910629", "0.5884173...
0.85042787
0
TODO Autogenerated method stub
public void applyBrake() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void applyHorn() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void applyGear() { }
{ "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
Fecha sistema es erroneo esta adelantado 3 horas
public Date getFechaSistema() { fechaSistema = new Date(); Calendar calendar = Calendar.getInstance(); calendar.setTime(fechaSistema); calendar.add(Calendar.HOUR, (-3)); fechaSistema = calendar.getTime(); return fechaSistema; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + ...
[ "0.5950659", "0.5891819", "0.5844187", "0.5817849", "0.57779986", "0.5732511", "0.5654901", "0.5633842", "0.5628365", "0.55435485", "0.5514611", "0.54980135", "0.5431555", "0.5419588", "0.5384892", "0.5371855", "0.53532094", "0.53239787", "0.53119236", "0.53085333", "0.529028...
0.0
-1
This will initialize an instance of the SecurePreferences class
public EncryptDecrypt(String secureKey) throws EncryptDecryptException { try { this.writer = Cipher.getInstance(TRANSFORMATION); this.reader = Cipher.getInstance(TRANSFORMATION); this.keyWriter = Cipher.getInstance(KEY_TRANSFORMATION); initCiphers(secureKey); //this.encryptKeys = encryptKeys; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "public Secure() {\n\t\tsuper();\n\t}", "private PreferencesModule() {\n }", "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "public DeveloperPrefsPanel(DeveloperPreferences prefs) {\n\t\tthis.prefs ...
[ "0.66998714", "0.66538703", "0.6483645", "0.64155954", "0.6359142", "0.6339286", "0.6286473", "0.626487", "0.6185886", "0.6180789", "0.61311585", "0.6097448", "0.60778177", "0.6023604", "0.59877497", "0.59367484", "0.59327435", "0.59302366", "0.5916032", "0.5893545", "0.58917...
0.0
-1
Search item by name (staring with).
@Query(value = "{'name': {$regex : ?0, $options: 'i'}}", sort = "{ name: 1}") List<Item> findByName(String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (s...
[ "0.7320778", "0.72580737", "0.7243219", "0.7199301", "0.7183148", "0.71498", "0.70691353", "0.7046923", "0.6846989", "0.68109655", "0.6809041", "0.67635614", "0.6747009", "0.67254657", "0.6719093", "0.6696031", "0.66527826", "0.6643273", "0.6529944", "0.65020186", "0.6443619"...
0.6795367
11
When the front camera supported CameraMetadataCONTROL_AE_MODE_ON_EXTERNAL_FLASH,better fontfacing flash support via an app drawing a bring white screen by reducing tatal capture time.
private void doStandardCapture() { String flashValue = mExposure.getCurrentFlashValue(); LogHelper.d(TAG, "[doStandardCapture] with flash = " + flashValue); switch (flashValue) { case FLASH_ON_VALUE: captureStandardPanel(); break; case FLAS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flash(){\n phoneCam.setFlashlightEnabled(!flash);\n flash = !flash;\n }", "boolean useCamera2FakeFlash();", "private boolean hasFlash() {\n return getApplicationContext().getPackageManager()\n .hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);\n }", ...
[ "0.7081446", "0.6942806", "0.6883667", "0.6810705", "0.66556025", "0.66467863", "0.6590885", "0.6461051", "0.6289976", "0.6265439", "0.6253566", "0.60651004", "0.6008263", "0.593114", "0.5866914", "0.58296114", "0.573344", "0.56756884", "0.5668107", "0.5645707", "0.563382", ...
0.600749
13
Request preview capture stream with auto focus trigger cycle.
private void sendAePreTriggerCaptureRequest() { // Step 1: Request single frame CONTROL_AF_TRIGGER_START. CaptureRequest.Builder builder = mDevice2Requester .createAndConfigRequest(mDevice2Requester.getRepeatingTemplateType()); if (builder == null) { LogHelper.w(TAG, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void startPreview() {\n OpenCamera theCamera = camera;\n if (theCamera != null && !previewing) {\n theCamera.getCamera().startPreview();\n previewing = true;\n autoFocusManager = new AutoFocusManager(context, theCamera.getCamera());\n }\n ...
[ "0.73906225", "0.70727044", "0.7047641", "0.70233715", "0.69987136", "0.67322195", "0.66593635", "0.6613117", "0.65778977", "0.653276", "0.6525709", "0.65088856", "0.64999443", "0.6426188", "0.64128876", "0.6365", "0.6363712", "0.6285819", "0.6265418", "0.6203887", "0.6193762...
0.5711726
44
Adds current regions to CaptureRequest and base AF mode + AF_TRIGGER_IDLE.
private void addBaselineCaptureKeysToRequest(CaptureRequest.Builder builder) { builder.set(CaptureRequest.CONTROL_AE_MODE, mAEMode); int exposureCompensationIndex = -1; if (mIsAeLockAvailable != null && mIsAeLockAvailable) { builder.set(CaptureRequest.CONTROL_AE_LOCK, mAeLock); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendAePreTriggerCaptureRequest() {\n // Step 1: Request single frame CONTROL_AF_TRIGGER_START.\n CaptureRequest.Builder builder = mDevice2Requester\n .createAndConfigRequest(mDevice2Requester.getRepeatingTemplateType());\n if (builder == null) {\n LogHelp...
[ "0.5022556", "0.47297987", "0.46002373", "0.45894772", "0.4492519", "0.44287843", "0.44116628", "0.44099617", "0.44021273", "0.43791947", "0.43659198", "0.435966", "0.43544275", "0.43400657", "0.43325552", "0.43194962", "0.4301616", "0.42958635", "0.42747822", "0.42646548", "...
0.4878902
1
Test of putdata method, of class connection.
@Test public void testPutdata() { System.out.println("putdata"); String name = ""; ArrayList<File> picfiles = null; int num = 0; connection instance = new connection(); instance.putdata(name, picfiles, num); // TODO review the generated test code and r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(T data){\r\n\t\tthis.data = data;\r\n\t}", "public void testSetBasedata() {\n }", "@Override\n\tpublic void put(String key, String cat, byte[] data) throws RemoteException {\n\t\t\n\t}", "public void putData(HelperData data);", "public boolean save(T data) throws MIDaaSException;", "@T...
[ "0.6652095", "0.604663", "0.6015158", "0.60116225", "0.5977894", "0.5911115", "0.58566695", "0.5819367", "0.5803024", "0.58018625", "0.57573867", "0.57543516", "0.57281363", "0.57176596", "0.5664692", "0.56539416", "0.56485784", "0.56216973", "0.5614087", "0.5613385", "0.5605...
0.79185563
0
Test of putaverage method, of class connection.
@Test public void testPutaverage() throws Exception { System.out.println("putaverage"); double[][] average = null; connection instance = new connection(); instance.putaverage(average); // TODO review the generated test code and remove the default call to fail. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetAverage() {\r\n System.out.println(\"getAverage\");\r\n Student instance = new Student();\r\n double expResult = 0.0;\r\n double result = instance.getAverage();\r\n assertEquals(expResult, result, 0.0);\r\n \r\n }", "@Test\r\n public...
[ "0.64977354", "0.60993063", "0.60218686", "0.5893489", "0.58299786", "0.5761328", "0.5741072", "0.56606525", "0.5653252", "0.5635128", "0.5585492", "0.55790037", "0.5568324", "0.5524269", "0.5493926", "0.5474895", "0.5474546", "0.5472696", "0.545778", "0.5454687", "0.5439999"...
0.82204896
0
Test of putweight method, of class connection.
@Test public void testPutweight() throws Exception { System.out.println("putweight"); double[][] weightvector = null; String[] name = null; int[] faceid = null; connection instance = new connection(); instance.putweight(weightvector, name, faceid); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetWeight()\n {\n this.testSetWeight();\n }", "public void testSetWeight()\n {\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>();\n assertEquals(WeightedKernel.DEFAULT_WEIGHT, instance.getWeight());\n \n double weight = RANDOM.nextDouble(...
[ "0.66208446", "0.64781135", "0.63769054", "0.6359602", "0.63286406", "0.6289776", "0.62785095", "0.6257171", "0.6214596", "0.6210354", "0.6192479", "0.617161", "0.61634415", "0.6130822", "0.60999036", "0.6098541", "0.6091258", "0.60763735", "0.60447365", "0.6018558", "0.60104...
0.78619075
0
Test of puteigen method, of class connection.
@Test public void testPuteigen() { System.out.println("puteigen"); double[][] eigTnormal = null; connection instance = new connection(); instance.puteigen(eigTnormal); // TODO review the generated test code and remove the default call to fail. fail("The test ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetConnection() {\r\n \r\n }", "@Test\n public void testGetConnection() {\n System.out.println(\"getConnection\");\n Connection result = instance.getConnection();\n assertTrue(result!=null);\n \n }", "@Test\r\n\tpublic void testChooseConnection() throw...
[ "0.7223336", "0.67998606", "0.6681723", "0.6408245", "0.636344", "0.6347211", "0.62373203", "0.621468", "0.6112436", "0.61116004", "0.6110955", "0.60791785", "0.60631204", "0.59972477", "0.5984615", "0.5975834", "0.597428", "0.5970585", "0.59620625", "0.5948975", "0.593353", ...
0.5915806
21
Test of geteigenmatrix method, of class connection.
@Test public void testGeteigenmatrix() { System.out.println("geteigenmatrix"); connection instance = new connection(); double[][] expResult = null; double[][] result = instance.geteigenmatrix(); assertArrayEquals(expResult, result); // TODO review the generated...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPuteigen() {\r\n System.out.println(\"puteigen\");\r\n double[][] eigTnormal = null;\r\n connection instance = new connection();\r\n instance.puteigen(eigTnormal);\r\n // TODO review the generated test code and remove the default call to fail.\r\n ...
[ "0.74727786", "0.6802758", "0.6377177", "0.63236064", "0.6295914", "0.6254952", "0.59058565", "0.5837329", "0.578344", "0.5663606", "0.5662106", "0.5554519", "0.5518915", "0.55003184", "0.5493777", "0.54734564", "0.5458123", "0.5455343", "0.5444406", "0.5441309", "0.542118", ...
0.87055343
0
Test of getweightmatrix method, of class connection.
@Test public void testGetweightmatrix() { System.out.println("getweightmatrix"); connection instance = new connection(); double[][] expResult = null; double[][] result = instance.getweightmatrix(); assertArrayEquals(expResult, result); // TODO review the genera...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Matrix getWeight() {\n return weights;\n }", "@Test\r\n public void testPutweight() throws Exception {\r\n System.out.println(\"putweight\");\r\n double[][] weightvector = null;\r\n String[] name = null;\r\n int[] faceid = null;\r\n connection instance = new...
[ "0.6622749", "0.63896894", "0.6154587", "0.607691", "0.60005665", "0.5888386", "0.58277076", "0.57597816", "0.5757035", "0.5650635", "0.5638218", "0.5598223", "0.5584324", "0.5584324", "0.55595255", "0.55329424", "0.5528766", "0.5517054", "0.54902023", "0.54625565", "0.545316...
0.85474336
0
Test of getaveragematrix method, of class connection.
@Test public void testGetaveragematrix() { System.out.println("getaveragematrix"); connection instance = new connection(); double[][] expResult = null; double[][] result = instance.getaveragematrix(); assertArrayEquals(expResult, result); // TODO review the gen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPutaverage() throws Exception {\r\n System.out.println(\"putaverage\");\r\n double[][] average = null;\r\n connection instance = new connection();\r\n instance.putaverage(average);\r\n // TODO review the generated test code and remove the default call...
[ "0.72243357", "0.66871125", "0.6376005", "0.59079206", "0.5834879", "0.57265687", "0.5723964", "0.5707717", "0.57038516", "0.55717874", "0.5570453", "0.55677164", "0.5540835", "0.54478127", "0.54437596", "0.54112184", "0.5389821", "0.5389337", "0.53813803", "0.5347207", "0.53...
0.87293196
0
Test of getname method, of class connection.
@Test public void testGetname() { System.out.println("getname"); connection instance = new connection(); String[] expResult = null; String[] result = instance.getname(); assertArrayEquals(expResult, result); // TODO review the generated test code and remove the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetName ()\n {\n System.out.println (\"getName\");\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n String expResult = \"nom\";\n String result = instance.getName ();\n Assert.assertEquals (expResult, result);\n\n }", "@Test\n\tpublic void test...
[ "0.6712658", "0.6694958", "0.6693125", "0.6638009", "0.66050905", "0.6604658", "0.6572679", "0.6547456", "0.65135753", "0.65068483", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", "0.6498115", ...
0.7325983
0
Test of deleteDirectory method, of class connection.
@Test public void testDeleteDirectory() { System.out.println("deleteDirectory"); File directory = null; boolean expResult = false; boolean result = connection.deleteDirectory(directory); assertEquals(expResult, result); // TODO review the generated test code an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDeleteDirectory() {\n System.out.println(\"deleteDirectory with existing folder as input\");\n File testFolder = new File(folder.toString()+fSeparator+\"Texts\");\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = insta...
[ "0.75870675", "0.6793876", "0.6210896", "0.61811554", "0.61561847", "0.6077528", "0.60686034", "0.60609853", "0.6011903", "0.5975404", "0.59664214", "0.5953575", "0.5949593", "0.59429336", "0.59345585", "0.5929067", "0.59234667", "0.5918491", "0.58936703", "0.5871226", "0.585...
0.8586312
0
Test of getdiffarrange method, of class connection.
@Test public void testGetdiffarrange() throws Exception { System.out.println("getdiffarrange"); double[][] average = null; connection instance = new connection(); double[][] expResult = null; double[][] result = instance.getdiffarrange(average); assertArrayEqua...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void integrateDisconnectionCommand() {\n Peer removedPeer1 = new Peer(2L, \"Peer Mock (id=2)\");\r\n integrateDisconnectionCommand.setPeerId(removedPeer1.getId());\r\n integrateDisconnectionCommand.execute();\r\n\r\n // Removing Peer with ID = 3\r\n Peer remov...
[ "0.53666663", "0.53388375", "0.5308899", "0.52177095", "0.5209482", "0.52060765", "0.51597506", "0.5151724", "0.51270825", "0.5039549", "0.50004476", "0.49996057", "0.49500126", "0.4940052", "0.49381337", "0.4915145", "0.4914422", "0.49142435", "0.49029168", "0.49005872", "0....
0.76198244
0
Constructs the key of multicast filtering objective store.
public McastFilteringObjStoreKey(ConnectPoint ingressCP, VlanId vlanId, boolean isIpv4) { checkNotNull(ingressCP, "connectpoint cannot be null"); checkNotNull(vlanId, "vlanid cannot be null"); this.ingressCP = ingressCP; this.vlanId = vlanId; this.isIpv4 = isIpv4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public OptimizedKey createOptimizedKey() {\r\n\t\treturn new OptimizedKey();\r\n\t}", "public MultiKey() {}", "String key();", "public HardZoneSearchKey()\n\t{\n\t\tsuper(new HardZone()) ;\n\t\t_Prefix = getTableName() + \".\";\n\t}", "String newKey();", "String getKey();", "String getKey();", ...
[ "0.56604105", "0.56456417", "0.56332076", "0.55641115", "0.5539149", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.54948246", "0.5482784", "0.5456345", ...
0.49556968
82
Returns the connect point.
public ConnectPoint ingressCP() { return ingressCP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Pure\n\tPT getGraphPoint();", "private Point2D calcConnectionPoint(double x1, double y1, double x2, double y2) {\n\t\t// calculating midpoint for x on the edge between obj1\n\t\t// and obj2\n\t\tif (x1 > x2) {\n\t\t\tx1 = ((x1 - x2) / 2) + x2;\n\t\t} else if (x2 > x1) {\n\t\t\tx1 = ((x2 - x1) / 2) + x1;\n\t\t}\...
[ "0.65447795", "0.6241636", "0.60807294", "0.60163486", "0.5981601", "0.5969477", "0.58874434", "0.5885367", "0.5854763", "0.5843404", "0.5843404", "0.58133507", "0.57936794", "0.5790819", "0.5789784", "0.57780075", "0.5752943", "0.5739597", "0.5708796", "0.5695195", "0.564717...
0.0
-1
Returns whether the filtering is for ipv4 mcast.
public boolean isIpv4() { return isIpv4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasClientIpV4();", "public boolean videoMulticastEnabled();", "public boolean verificarFormatoIPV4(String ip) {\n\t\ttry {\n\t\t\tif (ip == null || ip.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tString[] parts = ip.split(\"\\\\.\");\n\t\t\tif (parts.length != 4) {\n\t\t\t\treturn false;\n\t\t...
[ "0.5875425", "0.57135963", "0.55915344", "0.558785", "0.55853903", "0.54619265", "0.5455105", "0.5444441", "0.53977144", "0.53839463", "0.5256074", "0.52458346", "0.5238921", "0.5217122", "0.52148825", "0.51945025", "0.514637", "0.51354253", "0.5051923", "0.5051923", "0.50519...
0.66905934
0
Returns the vlan ID of this key.
public VlanId vlanId() { return vlanId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long vlan() {\n return this.innerProperties() == null ? 0L : this.innerProperties().vlan();\n }", "public org.apache.axis.types.UnsignedInt getVlan() {\n return vlan;\n }", "public String getVlan() {\n return vlan;\n }", "public String getKeyId() {\n return getProp...
[ "0.73828334", "0.68906575", "0.666191", "0.61570424", "0.6026382", "0.6010658", "0.5963065", "0.5823962", "0.57787645", "0.5771745", "0.5757553", "0.57459843", "0.5707022", "0.56667835", "0.5658291", "0.56426895", "0.5638571", "0.56333256", "0.5617332", "0.5617332", "0.561733...
0.78911626
0
Tests that assertions are enabled.
@Test(expected=AssertionError.class) public void testAssertionsEnabled() { assert false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAssertionsEnabled() {\n assertTrue(Assertions.ENABLED, \"assertion is disabled - enable it with 'java -ea ...'\");\n }", "@Test public void testAssertionsEnabled() {\n assertThrows(AssertionError.class, () -> {\n assert false;\n }, \"make sure asserti...
[ "0.8325878", "0.812283", "0.7394786", "0.6835295", "0.6523808", "0.6491753", "0.6433929", "0.6388031", "0.6374659", "0.63504064", "0.63329554", "0.62918717", "0.62866545", "0.62713283", "0.62713283", "0.6227881", "0.6209689", "0.61309636", "0.6125218", "0.61112416", "0.610544...
0.80754536
4
Scanner in = new Scanner(System.in); String s = in.nextLine(); a.viewnextchap(c,1,1); System.out.println( "" +s); int r = in.nextInt(); System.out.println("You entered integer "+r); float b = in.nextFloat(); System.out.println("You entered float "+b);
public void createbook(Author a, Connection c) throws SQLException{ a.insert(c, "While the cows lie", "Cows are big and cannot run", 2, 2, 0); //a.createTable(c); //String chapName= "Toodloo"; //String chap = "Bippidee boppidee"; //a.insert(c, chapName, chap); //a.viewnextchap(c,2); //a.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[])throws IOException\n\t{\n\tScanner obj=new Scanner(System.in);\n\n\t//Entering a string\n\tSystem.out.println(\"\\nEnter a string !\");\n\tString s=obj.nextLine();\n\tSystem.out.println(\"you have entered \"+ s);\n\n\t//entering a word\n\tSystem.out.println(\"\\nEnter a word !...
[ "0.74691373", "0.717235", "0.68144673", "0.67744374", "0.67672765", "0.67632675", "0.67512643", "0.6698534", "0.6643168", "0.6606635", "0.65666854", "0.65243655", "0.65198046", "0.6493552", "0.64803046", "0.6426351", "0.6393274", "0.63909966", "0.638099", "0.63743675", "0.637...
0.0
-1
insert into TEXTTOGAME values('Chapter 1', id, NULL, 'venus is big')
public void insert(Connection c, String name, String chap, int bookid, int id, int parid) { String query = "insert into Text-to-game values('" + name + "', " + id + ", '" + chap + "', NULL)"; Statement stmt = null; try { stmt = c.createStatement(); stmt.executeUpdate(query); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertTupel(Connection c) {\n try {\n String query = \"INSERT INTO \" + getEntityName() + \" VALUES (null,?,?,?,?,?);\";\n PreparedStatement ps = c.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, getAnlagedatum());\n ps.set...
[ "0.59369165", "0.5934074", "0.582938", "0.5811831", "0.57831603", "0.57819617", "0.5725441", "0.56048054", "0.5595268", "0.55667025", "0.5550217", "0.5506935", "0.55054337", "0.54705286", "0.54674596", "0.54656607", "0.54628265", "0.54601985", "0.5421809", "0.5406569", "0.540...
0.7048879
0
/ select , COUNT() from Chapter_registry inner join ParID on Chapter_registry.CHAP_ID = ParID.CHAP_ID where Chapter_registry.BOOK_ID = 1 AND ParID.PAR_ID = 2
public void getNextChap(Connection c, int chapid) { String query1 = "select *" + "from Chapter_registry " + "inner join ParID " + "on Chapter_registry.CHAP_ID = ParID.CHAP_ID " + "where Chapter_registry.BOOK_ID = 1 " + "AND ParI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int findtotalbooks() {\n\t\t\r\n\t\tString sql=\"select count(*) from books where tag=1\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tObject query = runner.query(sql, new ScalarHandler<Object>(1));\r\n\t\t\tLong long1=(Long)query;\r\n\t\t\treturn long1.intValue();\r\n\t\t} catch (SQLException e) {\r\n\t\t...
[ "0.5915333", "0.58309394", "0.58230126", "0.56426424", "0.56401914", "0.5623546", "0.5620292", "0.55978066", "0.5549267", "0.55252105", "0.551461", "0.5506405", "0.5490107", "0.5488561", "0.5465433", "0.5451058", "0.54497844", "0.54392695", "0.54341", "0.543135", "0.5417245",...
0.615164
0
If the consume permission for temporary queues is for an unnamed queue then it should be global for any temporary queue but not for any nontemporary queue
public void testTemporaryUnnamedQueueConsume() { ObjectProperties temporary = new ObjectProperties(); temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectProperties normal = new ObjectProperties(); normal.put(ObjectProperties.Property.AUTO_DELETE, Boole...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testTemporaryQueueFirstConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectPropertie...
[ "0.74451226", "0.7345836", "0.6906532", "0.68925744", "0.6782635", "0.58747166", "0.5604084", "0.55077654", "0.544272", "0.544272", "0.5437247", "0.5397937", "0.5364389", "0.52671236", "0.5257808", "0.5256416", "0.52538735", "0.5240975", "0.5217825", "0.5187152", "0.51683366"...
0.79186046
0
Test that temporary queue permissions before queue perms in the ACL config work correctly
public void testTemporaryQueueFirstConsume() { ObjectProperties temporary = new ObjectProperties(_queueName); temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectProperties normal = new ObjectProperties(_queueName); normal.put(ObjectProperties.Property....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertE...
[ "0.7079894", "0.70474184", "0.69257915", "0.6798731", "0.6685697", "0.6433196", "0.6096605", "0.60649353", "0.603696", "0.59193206", "0.5905725", "0.5873821", "0.5813474", "0.5796299", "0.5789118", "0.5749392", "0.5662653", "0.56617653", "0.56557775", "0.56248677", "0.5608598...
0.6859302
3
Test that temporary queue permissions after queue perms in the ACL config work correctly
public void testTemporaryQueueLastConsume() { ObjectProperties temporary = new ObjectProperties(_queueName); temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectProperties normal = new ObjectProperties(_queueName); normal.put(ObjectProperties.Property.A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFirstNamedSecondTemporaryQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertE...
[ "0.7114228", "0.70721686", "0.69828767", "0.69523686", "0.68219477", "0.65247077", "0.60833496", "0.60626733", "0.6036476", "0.59708095", "0.5789963", "0.5772784", "0.57648766", "0.5754325", "0.57378113", "0.5687965", "0.5631458", "0.5605046", "0.55887026", "0.55856484", "0.5...
0.6820242
5
/ Test different rules for temporary queues. The more generic rule first is used, so both requests are allowed.
public void testFirstNamedSecondTemporaryQueueDenied() { ObjectProperties named = new ObjectProperties(_queueName); ObjectProperties namedTemporary = new ObjectProperties(_queueName); namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); assertEquals(Resul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFirstTemporarySecondNamedQueueDenied()\n {\n ObjectProperties named = new ObjectProperties(_queueName);\n ObjectProperties namedTemporary = new ObjectProperties(_queueName);\n namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n assertE...
[ "0.6814109", "0.6724994", "0.66883004", "0.66397136", "0.6584378", "0.6177147", "0.60685354", "0.59531766", "0.5806901", "0.5502489", "0.5213718", "0.52093345", "0.51404554", "0.5136179", "0.5110749", "0.5002001", "0.49788997", "0.4961015", "0.49588978", "0.49321455", "0.4914...
0.6826658
0
The more specific rule is first, so those requests are denied.
public void testFirstTemporarySecondNamedQueueDenied() { ObjectProperties named = new ObjectProperties(_queueName); ObjectProperties namedTemporary = new ObjectProperties(_queueName); namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); assertEquals(Resul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera...
[ "0.679274", "0.64495707", "0.63326126", "0.56599826", "0.55153215", "0.55069274", "0.5441902", "0.52557397", "0.5249632", "0.52080643", "0.5190864", "0.5169459", "0.515467", "0.5151389", "0.5136909", "0.5134601", "0.51123214", "0.5103548", "0.5103191", "0.5093981", "0.5080734...
0.4828479
44
The more specific rules are first, so those requests are denied.
public void testFirstTemporarySecondDurableThirdNamedQueueDenied() { ObjectProperties named = new ObjectProperties(_queueName); ObjectProperties namedTemporary = new ObjectProperties(_queueName); namedTemporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE); ObjectPropertie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera...
[ "0.67029554", "0.6606595", "0.6449805", "0.62238514", "0.5804757", "0.57571447", "0.55947095", "0.55746794", "0.5556217", "0.5531396", "0.5453609", "0.54335433", "0.532688", "0.52841884", "0.52795285", "0.5274454", "0.5270798", "0.5266657", "0.5261334", "0.51995116", "0.51934...
0.0
-1
Tests support for ACL groups (i.e. inline groups declared in the ACL file itself).
public void testAclGroupsSupported() { assertTrue(_ruleSet.addGroup("aclgroup", Arrays.asList(new String[] {"usera", "userb"}))); _ruleSet.grant(1, "aclgroup", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); assertEquals(1, _ruleSet.getRuleCoun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNestedAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup1\", Arrays.asList(new String[] {\"userb\"})));\n assertTrue(_ruleSet.addGroup(\"aclgroup2\", Arrays.asList(new String[] {\"usera\", \"aclgroup1\"}))); \n \n _ruleSet.grant(1, \"aclgroup2\", Perm...
[ "0.7787401", "0.72007775", "0.65965617", "0.6419053", "0.6265967", "0.6002199", "0.59725624", "0.5941192", "0.5933126", "0.592397", "0.59037274", "0.58887786", "0.58373785", "0.580705", "0.5803845", "0.5803845", "0.5754531", "0.5726704", "0.57215095", "0.5710042", "0.5695777"...
0.80751383
0
Tests support for nested ACL groups.
public void testNestedAclGroupsSupported() { assertTrue(_ruleSet.addGroup("aclgroup1", Arrays.asList(new String[] {"userb"}))); assertTrue(_ruleSet.addGroup("aclgroup2", Arrays.asList(new String[] {"usera", "aclgroup1"}))); _ruleSet.grant(1, "aclgroup2", Permission.ALLOW, Operatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\", \"userb\"}))); \n \n _ruleSet.grant(1, \"aclgroup\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _r...
[ "0.7192932", "0.64561766", "0.63150567", "0.6251814", "0.624959", "0.624959", "0.62135017", "0.61922014", "0.61398834", "0.59421605", "0.5875424", "0.5824554", "0.57711864", "0.57711864", "0.5761323", "0.5750455", "0.57414305", "0.57000506", "0.56943315", "0.5689206", "0.5676...
0.83046734
0
Tests support for nested External groups (i.e. those groups coming from an external source such as an LDAP).
public void testExternalGroupsSupported() { _ruleSet.grant(1, "extgroup1", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); _ruleSet.grant(2, "extgroup2", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); assertEquals(2, _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNestedAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup1\", Arrays.asList(new String[] {\"userb\"})));\n assertTrue(_ruleSet.addGroup(\"aclgroup2\", Arrays.asList(new String[] {\"usera\", \"aclgroup1\"}))); \n \n _ruleSet.grant(1, \"aclgroup2\", Perm...
[ "0.673164", "0.6119689", "0.60152185", "0.59713566", "0.59713566", "0.5955474", "0.5670417", "0.56520087", "0.56520087", "0.5613851", "0.56077087", "0.5603212", "0.557064", "0.55586326", "0.5523956", "0.5514505", "0.54939044", "0.54897344", "0.54839975", "0.54795367", "0.5461...
0.7284632
0
Rule order in the ACL determines the outcome of the check. This test ensures that a user who is granted explicit permission on an object, is granted that access even although late a group to which the user belongs is later denied the permission.
public void testAllowDeterminedByRuleOrder() { assertTrue(_ruleSet.addGroup("aclgroup", Arrays.asList(new String[] {"usera"}))); _ruleSet.grant(1, "usera", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); _ruleSet.grant(2, "aclgroup", Permission.D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDenyDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"usera...
[ "0.81507146", "0.7060555", "0.6862893", "0.634386", "0.6303302", "0.62053525", "0.61702394", "0.60943556", "0.60403055", "0.60186243", "0.601854", "0.5964617", "0.59569705", "0.59514666", "0.5943688", "0.58963466", "0.58789414", "0.58524674", "0.5848106", "0.58387524", "0.581...
0.8698403
0
Rule order in the ACL determines the outcome of the check. This tests ensures that a user who is denied access by group, is denied access, despite there being a later rule granting permission to that user.
public void testDenyDeterminedByRuleOrder() { assertTrue(_ruleSet.addGroup("aclgroup", Arrays.asList(new String[] {"usera"}))); _ruleSet.grant(1, "aclgroup", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY); _ruleSet.grant(2, "usera", Permission.ALL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgro...
[ "0.81757975", "0.65573657", "0.6312244", "0.63118494", "0.6287425", "0.6283195", "0.6096306", "0.601234", "0.5781794", "0.5753684", "0.57250446", "0.5720548", "0.5713", "0.5636782", "0.5612284", "0.5552268", "0.55160344", "0.5462525", "0.544429", "0.53936064", "0.5316066", ...
0.85616773
0
Converts integer to string.
@Override public String convert(Long input) { return String.valueOf(input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String NumberToString(int number){return \"\"+number;}", "public static String integerToString(Integer i) {\n String ret = \"\";\n if (i!=null)\n ret = i.toString();\n\n return ret;\n }", "protected String parseIntToString(int value) {\n return String.valueO...
[ "0.80038047", "0.7828087", "0.7705449", "0.7666421", "0.75564355", "0.7199357", "0.71949047", "0.71704805", "0.71476334", "0.7146684", "0.7088579", "0.7088579", "0.7050425", "0.69694704", "0.6861023", "0.6807233", "0.67670643", "0.6754485", "0.66855663", "0.6631527", "0.65347...
0.6147038
40
cube chose agg modify
@Override public String getAggrFunctionName() { return FUNC_INTERSECT_COUNT_DISTINCT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}", "public static boolean createBasicAggregation(Cube cube)\r\n {\r\n String sqlBase;\r\n ...
[ "0.61796194", "0.6054068", "0.5793821", "0.578791", "0.5756235", "0.57330656", "0.5589866", "0.55860287", "0.5497824", "0.5480461", "0.5440227", "0.5432547", "0.541011", "0.5376334", "0.5364569", "0.5356388", "0.5336115", "0.5317258", "0.5284505", "0.5266747", "0.5265413", ...
0.0
-1
In order to keep compatibility with old version, tinyint/smallint/int column use value directly, without dictionary
private boolean needDictionaryColumn(FunctionDesc functionDesc) { DataType dataType = functionDesc.getParameter().getColRefs().get(0).getType(); if (dataType.isIntegerFamily() && !dataType.isBigInt()) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object toJdbcType(Object value) {\n return value;\n }", "protected abstract Map<String, String> getColumnValueTypeOverrides();", "@SuppressWarnings(value=\"unchecked\")\n public void put(int field$, java.lang.Object value) {\n if (field$ >= 0 && field$ < 8) {\n setDirty(f...
[ "0.61312044", "0.5954524", "0.592474", "0.58756214", "0.5869657", "0.5846992", "0.58464175", "0.57794994", "0.57794994", "0.5725861", "0.57216716", "0.5700901", "0.5670324", "0.56673247", "0.5663909", "0.56583315", "0.56564236", "0.5625116", "0.5603034", "0.5592029", "0.55661...
0.55850196
20
TODO Autogenerated method stub
public static void main(String[] args) { GarbageCollection s1= new GarbageCollection(); GarbageCollection s2= new GarbageCollection(); s1=null; s2=null; System.gc(); System.out.println(""+s1); }
{ "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
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCustId(){\n return this.custId;\r\n }", "int getListSnId(int index);", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public Long getCustId() {\n return custId;\n }", "public int getListId()\n {\n return listId;\n }", "@JsonI...
[ "0.5617551", "0.5439353", "0.53921086", "0.53571534", "0.5345535", "0.53305805", "0.53255177", "0.52288455", "0.52167255", "0.52008367", "0.52008367", "0.5200637", "0.5200637", "0.51666033", "0.51537997", "0.5134862", "0.50895983", "0.50884336", "0.50884336", "0.50865304", "0...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.id
public void setId(Long id) { setField("id", id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }", "public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }", "public void setM_Production...
[ "0.6327811", "0.55526686", "0.5284157", "0.5239551", "0.5229858", "0.5190373", "0.513533", "0.5129579", "0.51174796", "0.5102598", "0.5097308", "0.50938994", "0.5090888", "0.50709146", "0.5069421", "0.5069421", "0.5069421", "0.5069421", "0.5069421", "0.5069421", "0.5069421", ...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.cust_name
public String getCustName() { return custName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "String getCustomerNameById(int customerId);", "public String getCustomerName() {\r\n return name.getName();\r...
[ "0.65663755", "0.6271284", "0.6256634", "0.6094175", "0.6060487", "0.60604393", "0.6014186", "0.60050976", "0.5983833", "0.59287465", "0.5911838", "0.5900081", "0.58865666", "0.58710694", "0.58007175", "0.57753986", "0.57581204", "0.5751045", "0.5751045", "0.57312083", "0.572...
0.6393345
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.cust_name
public void setCustName(String custName) { custName = custName == null ? null : custName.trim(); setField("custName", custName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustName(String custName) {\n\t\tthis.custName = custName;\n\t}", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }", ...
[ "0.64214724", "0.6110823", "0.6092629", "0.6007337", "0.595093", "0.57974464", "0.5795941", "0.57525206", "0.5748166", "0.5662381", "0.56463295", "0.56434083", "0.54570365", "0.5451532", "0.54461384", "0.5435399", "0.5405949", "0.5405949", "0.53288734", "0.53288734", "0.53233...
0.62915486
1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.url
public String getUrl() { return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUrl() {\n return jdbcUrl;\n }", "@Column(length = 2048)\r\n @PlaceHolder(key = \"schema\")\r\n public String getUrlPath() {\r\n return urlPath;\r\n }", "public String getJdbcUrl()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_URL);\n }", "public S...
[ "0.55716026", "0.52336097", "0.52037567", "0.5143866", "0.512989", "0.5092416", "0.506144", "0.50259185", "0.495634", "0.49131507", "0.49131507", "0.49131507", "0.49025103", "0.49005306", "0.49000803", "0.48985127", "0.4883189", "0.48733985", "0.48686755", "0.48680943", "0.48...
0.47599247
48
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.url
public void setUrl(String url) { url = url == null ? null : url.trim(); setField("url", url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setURL(int index, URL value) throws SQLException;", "public void setUrl(String url) throws BuildException {\n jdbcUrl = url;\n }", "public void setJdbcUrl(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_URL, val);\n }", "protected void setLinkToUrl(UiAction uiAction, ResultSet ...
[ "0.6020362", "0.54906034", "0.5358892", "0.5356801", "0.5273646", "0.5220748", "0.51307416", "0.5127267", "0.51187295", "0.51110494", "0.51110494", "0.5110162", "0.50498366", "0.50139844", "0.49581346", "0.4935542", "0.49145555", "0.49098983", "0.49032786", "0.49021384", "0.4...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.cust_id
public Long getCustId() { return custId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCustId(){\n return this.custId;\r\n }", "public Long getCustId() {\n return custId;\n }", "public String getCustId() {\n return custId;\n }", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "java.lang.String getCustomerId();", "java.lang.String ge...
[ "0.6749003", "0.6629678", "0.64048725", "0.633102", "0.62983125", "0.62983125", "0.61940336", "0.61425805", "0.61076456", "0.60164106", "0.5939703", "0.5939703", "0.5917981", "0.5892949", "0.5847164", "0.58463544", "0.58450955", "0.58240783", "0.5820449", "0.582006", "0.58179...
0.6489231
3
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.cust_id
public void setCustId(Long custId) { setField("custId", custId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustId(Long custId) {\n this.custId = custId;\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}", "public void setCustomer_id(int customer_id){\n this.customer_id = cu...
[ "0.6525163", "0.6358611", "0.6280479", "0.61436903", "0.61362404", "0.599218", "0.5805831", "0.57188004", "0.5714299", "0.5667117", "0.56527954", "0.56437594", "0.56121063", "0.55816096", "0.55761296", "0.55761296", "0.55730695", "0.55543303", "0.54982144", "0.5481408", "0.54...
0.6041245
5
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.pos_id
public Long getPosId() { return posId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getPosId()\n\t{\n\t\treturn posId;\n\t}", "public Long getPosId() {\n return posId;\n }", "public int getIdCadastroSelecionado(int listPosition, String condition){\n \tif (listPosition == -1){\r\n \t\treturn 0;\r\n \r\n \t}else{\r\n \treturn Integer.parseInt(Controlador.ge...
[ "0.61129516", "0.60925066", "0.5912217", "0.58743083", "0.58486426", "0.5391441", "0.5331486", "0.5331486", "0.5303401", "0.5208061", "0.5188199", "0.5187888", "0.5155503", "0.5139721", "0.51254135", "0.511283", "0.5101596", "0.50992936", "0.50984395", "0.509377", "0.50914663...
0.59605086
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.pos_id
public void setPosId(Long posId) { setField("posId", posId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPosId(Long posId) {\n this.posId = posId;\n }", "public void setPosId (java.lang.Long posId) {\r\n\t\tthis.posId = posId;\r\n\t}", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "void setPosNr(String posNr);", "public void setSalesRep_ID (int SalesRe...
[ "0.5903674", "0.5721424", "0.56868553", "0.5579885", "0.54590106", "0.54590106", "0.5401485", "0.5374716", "0.53725326", "0.5358354", "0.5350984", "0.5317039", "0.5286065", "0.5276702", "0.52754706", "0.52754706", "0.5266133", "0.52660745", "0.5265103", "0.52542686", "0.52296...
0.55913585
3
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.create_id
public Long getCreateId() { return createId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCreateId() {\n\t\treturn createId;\n\t}", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public Integer getCreateUserId() {\n return createUserId;\n }", "public Integer getCreateUid() {\n return createUid;\n }", "public Integer getCreateUid() {\n re...
[ "0.64833486", "0.64833486", "0.58016497", "0.57821643", "0.57821643", "0.57821643", "0.57821643", "0.57821643", "0.5668914", "0.5660683", "0.5650343", "0.5638361", "0.5595589", "0.557947", "0.5562924", "0.54944783", "0.53092223", "0.5307371", "0.53024167", "0.5290805", "0.519...
0.6472739
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.create_id
public void setCreateId(Long createId) { setField("createId", createId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}", "public void setCreateId(String createId) {\n\t\tthis.createId = createId == null ? null : createId.trim();\n\t}", "public void setCreateUserid(Integer createUserid) {\n this.createUserid = ...
[ "0.5669922", "0.5669922", "0.5621062", "0.5501099", "0.5501099", "0.54822385", "0.54534054", "0.5439913", "0.53996146", "0.53996146", "0.5314837", "0.53025204", "0.5279902", "0.5279902", "0.5279902", "0.5279902", "0.5279902", "0.5251039", "0.51968", "0.5139118", "0.5095024", ...
0.55890435
3
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.create_time
public Date getCreateTime() { return createTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreatetime() {\n return createtime;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public String getCreateti...
[ "0.6797918", "0.6794182", "0.6794182", "0.6725998", "0.6683412", "0.6683412", "0.66501355", "0.66501355", "0.66501355", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.662934", "0.6625251", "0.6625251", "0.6607043", "0.6578175", "0.657...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.create_time
public void setCreateTime(Date createTime) { setField("createTime", createTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void set...
[ "0.68310666", "0.68310666", "0.6663539", "0.6663539", "0.6663539", "0.662962", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.65981835", "0.64946043", "0.64946043", "0.6492447", "0.64675826", "0.6445892", "0.63811296", "0....
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.update_id
public Long getUpdateId() { return updateId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public String getUpdateUserId() {\r\n re...
[ "0.6462685", "0.6462685", "0.6338156", "0.6338156", "0.58161676", "0.57919776", "0.5750976", "0.5669699", "0.55413795", "0.53881407", "0.53881407", "0.5344734", "0.5344734", "0.5344734", "0.5297418", "0.52915806", "0.52732265", "0.5231706", "0.5211935", "0.51519245", "0.51446...
0.63942015
2
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.update_id
public void setUpdateId(Long updateId) { setField("updateId", updateId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public void setUpdateId(String updateId) {\r\n this.updateId = updateId;\r\n }", "public void setUpdateId(String updateId) {\n\t\tthis.updateId = updateId == null ? null : updateId.trim();\n\t}", "public voi...
[ "0.58571607", "0.58571607", "0.5629258", "0.5629258", "0.54743576", "0.5444193", "0.53720987", "0.53720987", "0.5298059", "0.5276967", "0.5220333", "0.5220333", "0.51843846", "0.51770365", "0.51675195", "0.5100366", "0.50862813", "0.50497234", "0.50440687", "0.50440687", "0.5...
0.5501969
4
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.update_time
public Date getUpdateTime() { return updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public Date getUpda...
[ "0.6885688", "0.6885688", "0.6852171", "0.67586654", "0.6747034", "0.6747034", "0.67279816", "0.67279816", "0.659645", "0.65584666", "0.64938897", "0.64700955", "0.6465787", "0.6465787", "0.64572066", "0.6451899", "0.64432174", "0.64346915", "0.6413196", "0.6373589", "0.63664...
0.61214703
95
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.update_time
public void setUpdateTime(Date updateTime) { setField("updateTime", updateTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }", "public void set...
[ "0.68130237", "0.68130237", "0.66249514", "0.6565557", "0.6565557", "0.65182906", "0.64189816", "0.63045925", "0.62925583", "0.6278959", "0.6241891", "0.6241891", "0.61807257", "0.61807257", "0.61807257", "0.61807257", "0.61558485", "0.6154188", "0.6136116", "0.60968906", "0....
0.5805473
90
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.del_flag
public Short getDelFlag() { return delFlag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public Integer getDeleteflag() {\n return deleteflag;\n }", "public String getDeleteFlag() {\r\n r...
[ "0.6263052", "0.6263052", "0.6263052", "0.59291", "0.57531536", "0.56757534", "0.5661363", "0.5661363", "0.56324697", "0.5598577", "0.55847484", "0.55637044", "0.55632204", "0.5508137", "0.53259504", "0.52659065", "0.5262826", "0.51887214", "0.514317", "0.514033", "0.51321065...
0.5836541
4
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.del_flag
public void setDelFlag(Short delFlag) { setField("delFlag", delFlag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDelFlag(boolean delFlag) {\n this.delFlag = delFlag;\n }", "public void setDelFlag(String delFlag) {\n this.delFlag = delFlag;\n }", "public void delete(MakerBean maker) {\n\t\ttry {\r\n\r\n\t\t\tString query = \"update tb_maker set activeFlag = 2, updateBy=?, updateDate=getd...
[ "0.5925455", "0.5894239", "0.55989563", "0.5538799", "0.5538799", "0.5467866", "0.5429154", "0.5429154", "0.5407215", "0.5379424", "0.52948326", "0.52499235", "0.5187607", "0.5125748", "0.50682455", "0.5067742", "0.5060254", "0.50528467", "0.50528467", "0.50528467", "0.502488...
0.53853804
9
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.domain
public String getDomain() { return domain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDomainCd() {\n return this.domainCd;\n }", "public String getDomainNm() {\n return this.domainNm;\n }", "public List<String> getDomain() {\n\t\treturn null;\n\t}", "public Long getDomain()\n\t{\n\t\treturn domain;\n\t}", "public String getDomainId() {\n return do...
[ "0.6356161", "0.6100429", "0.60556644", "0.6048384", "0.59187984", "0.58410627", "0.5798997", "0.578683", "0.57648635", "0.5760895", "0.57480264", "0.5684201", "0.56592995", "0.56592995", "0.55870724", "0.55132705", "0.55132705", "0.5508111", "0.5421909", "0.5405762", "0.5396...
0.57380193
11
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.domain
public void setDomain(String domain) { domain = domain == null ? null : domain.trim(); setField("domain", domain); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDomain(String domain) {\r\n this.domain = domain;\r\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setDomain(String value) {\n\t\tapp.setSetting(\"domain\", v...
[ "0.5857978", "0.5734199", "0.5734199", "0.57023925", "0.5643411", "0.5607403", "0.55176973", "0.54539806", "0.54342896", "0.5400879", "0.53888553", "0.5367047", "0.5338081", "0.5280928", "0.52553475", "0.5230993", "0.5229691", "0.5171021", "0.5155738", "0.5059939", "0.5030838...
0.5047695
20
This method was generated by MyBatis Generator. This method returns the value of the database column tb_season_cust_list.invalidate
public Date getInvalidate() { return invalidate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<CustomerLoss> selectLossCustomer() {\n\t\treturn customerDao.selectLossCustomer();\n\t}", "@Override\n\tpublic void invalidate() {\n\n\t}", "public static ArrayList<CustomerInfoBean> getUnseenAlertsForAdmin() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> lis...
[ "0.48585698", "0.47312596", "0.46802244", "0.4670175", "0.4665263", "0.46597022", "0.45854592", "0.45839268", "0.45781153", "0.45708632", "0.4568753", "0.45681214", "0.4567899", "0.4562039", "0.45609027", "0.45159", "0.4515077", "0.45139337", "0.4501089", "0.44739377", "0.447...
0.45977142
6
This method was generated by MyBatis Generator. This method sets the value of the database column tb_season_cust_list.invalidate
public void setInvalidate(Date invalidate) { setField("invalidate", invalidate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void invalidateData() {\n mDashboardListAdapter.invalidateData();\n }", "public void invalidate() {\n\t\tthis.invalidated = true;\n\t}", "@Override\n\tpublic void invalidate() {\n\n\t}", "void setUserStatusExpired( List<Integer> listIdUser );", "public void invalidateData() {\n Log...
[ "0.48554987", "0.48135254", "0.47823027", "0.47292787", "0.47106975", "0.4683784", "0.46771836", "0.46748987", "0.4674888", "0.4624058", "0.46153423", "0.46117163", "0.4590351", "0.45839816", "0.4583156", "0.4577896", "0.45211813", "0.45168313", "0.45114636", "0.450432", "0.4...
0.4899119
0
Display the first 500 characters of the response string.
@Override public void onResponse(String response) { Toast.makeText(DemoLocationActivity.this,response,Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i...
[ "0.6098763", "0.5462494", "0.52524203", "0.5198244", "0.5148647", "0.51042295", "0.5014053", "0.5012863", "0.5007059", "0.49552792", "0.49431968", "0.4936323", "0.49273297", "0.48955184", "0.4895279", "0.4885787", "0.48645523", "0.48620734", "0.485772", "0.4851627", "0.483383...
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.home, 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.72497207", "0.72041494", "0.7198533", "0.71808106", "0.71110344", "0.7044596", "0.7042557", "0.7015272", "0.70119643", "0.6984017", "0.6950008", "0.6944079", "0.6937662", "0.6921333", "0.6921333", "0.6894039", "0.6887707", "0.6880534", "0.68777215", "0.6867014", "0.6867014...
0.0
-1
Get extra data included in the Intent
@Override public void onReceive(Context context, Intent intent) { Log.e("i m in Broadcast recive", "i m in Broadcast recive"); Double latitude = intent.getDoubleExtra("latitude",0.0); Double longitude = intent.getDoubleExtra("longitude",0.0); int pendingPoints = i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getExtra();", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "public String[] getEx...
[ "0.7976446", "0.7306751", "0.7294586", "0.7218195", "0.7154684", "0.7119123", "0.69274694", "0.68558574", "0.665363", "0.6604471", "0.6603971", "0.6529888", "0.6460084", "0.64293754", "0.6410902", "0.64082104", "0.6394297", "0.6389732", "0.63541335", "0.6350085", "0.6336622",...
0.0
-1
Can do greater than or less than with chars (for RPG)
public static void main(String[] args) { char aa = '\u0000'; char a = '\u0041'; char b = '\u0042'; char c = '\u0043'; char d = '\u0044'; char e = '\u0045'; char f = '\u0046'; char g = '\u0047'; char h = '\u0048'; char i = '\u0049'; char j = '\u004A'; char k = '\u004B'; char l = '\u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isGreater(MyChar c){\n if((content - c.content) > 0){\n return true;\n }\n return false;\n }", "private boolean isSmallLexi(String curr, String ori) {\n if (curr.length() != ori.length()) {\n return curr.length() < ori.length();\n }\n ...
[ "0.6376555", "0.6089537", "0.5902119", "0.5890988", "0.586735", "0.5826336", "0.5811415", "0.577489", "0.57621765", "0.57053804", "0.5699328", "0.5672054", "0.56657076", "0.5601917", "0.55749285", "0.5574569", "0.5524105", "0.5498371", "0.54911184", "0.54875386", "0.5461831",...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_crack); localWifiUtils = new WifiUtils(this); NetStateService = new Intent(this, ListenNetStateService.class); boolean isTrue = bindService( NetStateService, conn, Context.BIND...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Constructor Initialize a TFS client
public TFSClient(String masterIpAddress, int masterPort) { this.masterIpAddress = masterIpAddress; this.masterPort = masterPort; this.filesCache = new ArrayList<TFSClientFile>(); init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CoreHttpClientBase(final Object tfsConnection) {\r\n super(tfsConnection);\r\n }", "public static TFSTeamProjectCollection connectToTFS() throws Exception {\n \n \tlog.debug(\"connectToTFS\");\n \t//System.out.println(\"TFS_JNI_NATIVE path is: \" + tfsConfig.);\n \tif ( System.getPro...
[ "0.6447004", "0.6260855", "0.6149704", "0.5995056", "0.59351444", "0.5933583", "0.5912837", "0.5873264", "0.58637136", "0.5860133", "0.58285576", "0.5786611", "0.57688063", "0.5712321", "0.57104945", "0.5679132", "0.5655585", "0.5650005", "0.564102", "0.5639325", "0.5620554",...
0.56836396
15
Create the directory at a specified path
public int createDir(String dirName, String path) throws IOException { masterSock.write((CREATE_DIR + " " + dirName + " " + path).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = null; line = masterSock.readLine(); switch(line) { case STR_OK: return OK; cas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDirectory(String path) throws IOException {\n\t\tfinal Path p = Paths.get(path);\n\t\tif (!fileExists(p)) {\n\t\t\tFiles.createDirectory(p);\n\t\t}\n\t}", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e...
[ "0.8261407", "0.8049464", "0.7983797", "0.7915905", "0.7903383", "0.7630966", "0.7568522", "0.7541224", "0.74816656", "0.7450357", "0.7425461", "0.74107647", "0.7397731", "0.7352939", "0.7138481", "0.7097913", "0.70102805", "0.69883007", "0.6965142", "0.6951629", "0.6950587",...
0.62682486
49
Create a file inside a path
public int createFile(String fileName, String path, int numOfReplicas) throws IOException { masterSock.write((CREATE_FILE + " " + fileName + " " + path + " " + numOfReplicas).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = null; line = masterSock.readLine(); swit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }", "@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n ...
[ "0.7301747", "0.72047186", "0.69496137", "0.6840222", "0.67195463", "0.67039216", "0.65685266", "0.65386385", "0.65248746", "0.6475424", "0.6475259", "0.64203537", "0.63329", "0.62104267", "0.6192179", "0.61804414", "0.6145259", "0.61438996", "0.61134636", "0.6082415", "0.605...
0.0
-1
Delete a file providing the filePath
public int delFile(String filePath) throws IOException { masterSock.write((DELETE_FILE + " " + filePath).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = masterSock.readLine(); switch (line) { case STR_OK: return OK; case STR_NOT_FOUND: return NOT_FOUND; de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void deleteFile(String filePath) {\n File file = getFile(filePath);\n if (file.exists()) {\n file.delete();\n }\n }", "public static void fileDelete(String filePath) {\n\t\tFile f = new File(filePath);\n\n\t\t// noinspection ResultOfMethodCallIgnored\n\t\tf.delete();\n\t}", "public...
[ "0.8526604", "0.8422409", "0.8271895", "0.7857237", "0.7647414", "0.752559", "0.73777056", "0.7232794", "0.7146603", "0.71399635", "0.7079879", "0.7006471", "0.69487417", "0.6919118", "0.6846145", "0.68036574", "0.6773779", "0.67578536", "0.67508423", "0.67487377", "0.6712668...
0.6951492
12
Get names of all subdirectories of a directory
public String[] getSubDirs(String dirPath) throws IOException { masterSock.write((GET_DIR_INFO + " " + dirPath).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = masterSock.readLine(); String[] subdirs = null; switch (line) { case STR_OK: line = masterSock.readLi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getDirectories(String path) throws IOException;", "public abstract List<String> getDirs( );", "public String[] listDirectory( String directory, FileType type );", "public List<IDirectory> getAllChildDir() {\n return this.children;\n }", "List<String> getDirectories(String path, String sear...
[ "0.71463037", "0.6860416", "0.661089", "0.6484999", "0.6462901", "0.63733304", "0.6199965", "0.6178992", "0.617096", "0.6101863", "0.60746443", "0.601604", "0.6015311", "0.59269696", "0.5849161", "0.5810028", "0.5802033", "0.5783996", "0.5782658", "0.5764136", "0.5739874", ...
0.59644943
13
Get names of all subfiles of a directory
public String[] getSubFiles(String dirPath) throws IOException { masterSock.write((GET_DIR_INFO + " " + dirPath).getBytes()); masterSock.write("\r\n".getBytes()); masterSock.flush(); String line = masterSock.readLine(); String[] subfiles = null; switch (line) { case STR_OK: line = masterSock.read...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getFileNamesFromDir(File dir) {\n\t\tFile[] allFiles = dir.listFiles();\n\t\tSystem.out.println(\"Total Files: \" + allFiles.length);\n\t\tString[] allFileNames = new String[allFiles.length];\n\t\tfor (int i = 0; i < allFiles.length; i++) {\n\t\t\tallFileNames[i] = allFiles[i].getName();\n//\t\t\tS...
[ "0.7151123", "0.6899706", "0.6829608", "0.6730263", "0.66447353", "0.65991974", "0.65977186", "0.65941507", "0.6580904", "0.6566586", "0.6527371", "0.64610934", "0.642555", "0.6401879", "0.6400605", "0.6377926", "0.63776135", "0.6311636", "0.6299346", "0.62989897", "0.6298525...
0.6334617
17
Append a byte array to the end of the file.
public int append(String filePath, byte[] bytes) throws IOException { int ret; // check in file cache whether such file exists TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void append(byte[] bytes)\n\t{\n\t\t// create a new byte array object\n\t\tByteArray combined = combineWith...
[ "0.7386633", "0.72251004", "0.6994746", "0.6837821", "0.66522473", "0.64624804", "0.64049125", "0.6366513", "0.6306506", "0.6305124", "0.61267745", "0.6074858", "0.6069137", "0.60156196", "0.60077006", "0.59809387", "0.5955286", "0.59534574", "0.5945583", "0.58442956", "0.583...
0.0
-1
Read the data from a file at a specific location and length
public byte[] read(String filePath, int offset, int dataLength) throws IOException { int ret; TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != OK) return null; else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static IRubyObject read19(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject length, IRubyObject offset, RubyHash options) {\n // FIXME: process options\n \n RubyString pathStr = RubyFile.get_path(context, path);\n Ruby runtime = context.getRuntime();\n f...
[ "0.64502853", "0.6387598", "0.6321386", "0.62571335", "0.6148316", "0.61401176", "0.59920776", "0.5967241", "0.5957105", "0.5955157", "0.5946362", "0.5941444", "0.5926006", "0.5883421", "0.58477914", "0.58281183", "0.5822214", "0.5819515", "0.580796", "0.57920176", "0.5784784...
0.6321402
2
Read all the data from a tfs file
public byte[] readall(String filePath) throws IOException { int ret; TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != OK) return null; else { file = getFileFromCache(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromFile() {\n\n\t}", "TraceList read(File file) throws IOException;", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get...
[ "0.63610107", "0.6294116", "0.61367553", "0.59502476", "0.58760273", "0.58577865", "0.58399546", "0.5804985", "0.5794708", "0.57912445", "0.5761381", "0.575239", "0.5706549", "0.56934047", "0.56887203", "0.5685119", "0.56794494", "0.56779385", "0.5672464", "0.56693876", "0.56...
0.54539824
40
Counting the number of data item for this file
public int count(String filePath) throws IOException { int ret; TFSClientFile file = getFileFromCache(filePath); if (file == null) { // cannot find the file, try to get file info from the master ret = getFileInfo(filePath); if (ret != OK) return -1; else { file = getFileFromCache(filePath...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n }", "public int getDataCount() {\n return data_.size();\n ...
[ "0.74888366", "0.74888366", "0.74888366", "0.74888366", "0.74888366", "0.73780966", "0.7343445", "0.7343445", "0.7343445", "0.7343445", "0.7343445", "0.7297137", "0.722646", "0.722646", "0.7193004", "0.71425736", "0.71127313", "0.699477", "0.69942594", "0.6949488", "0.6859081...
0.0
-1
shared preferences for Android context classes
@Provides @Singleton SharedPreferences provideSharedPreferences(Application application) { return PreferenceManager.getDefaultSharedPreferences(application); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static SharedPreferences getSharedPreference(Context context){\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "private static SharedPreferences getSharedPreferences(Context context) {\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "pri...
[ "0.7575499", "0.7420455", "0.73035115", "0.72845167", "0.727551", "0.72565675", "0.7237191", "0.7210083", "0.7209554", "0.7135718", "0.7101633", "0.7075193", "0.695197", "0.69497526", "0.6880462", "0.6848837", "0.6831098", "0.68052053", "0.67938626", "0.67936224", "0.67596054...
0.6903198
14
Instantiates a new competence.
public Competence() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }", "public Produit() {\n }", "public Produto() {}", "public Potencial() {\r\n }", "public Produit() {\n\t\tsuper();\n\t}", "public Partage() {\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated con...
[ "0.68863136", "0.63049144", "0.625045", "0.6145671", "0.60280615", "0.5980589", "0.59373236", "0.5909663", "0.5880115", "0.5879505", "0.58691555", "0.5837404", "0.582282", "0.5808053", "0.5801025", "0.57999146", "0.5794422", "0.5785753", "0.5769217", "0.5758324", "0.5730193",...
0.77795565
0
Instantiates a new competence.
public Competence(String ref, String description, String cycle, AbstractDomaine abstractDomaine) { super(ref, description, cycle, abstractDomaine); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Competence() {\r\n\t\tsuper();\r\n\t}", "public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }", "public Produit() {\n }", "public Produto() {}", "public Potencial() {\r\n }", "public Produit() {\n\t\tsuper();\n\t}", "public Partage() {\n }", "public Composante...
[ "0.77795565", "0.68863136", "0.63049144", "0.625045", "0.6145671", "0.60280615", "0.5980589", "0.59373236", "0.5909663", "0.5880115", "0.5879505", "0.58691555", "0.5837404", "0.582282", "0.5808053", "0.5801025", "0.57999146", "0.5794422", "0.5785753", "0.5769217", "0.5758324"...
0.0
-1
Returns the first element of the list.
public static <T> T getFirst(List<T> list) { return list != null && !list.isEmpty() ? list.get(0) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getFirst() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\treturn get(1);\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getFirst on an empty list\");\r\n\t\t}\r\n\t}", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "pub...
[ "0.8146124", "0.8112738", "0.77573156", "0.77506304", "0.7700142", "0.76570886", "0.7622286", "0.7586902", "0.7581074", "0.7559773", "0.75595623", "0.7455288", "0.74141467", "0.7366526", "0.7242606", "0.72201276", "0.7210038", "0.7195026", "0.7170118", "0.7168016", "0.7140651...
0.80282
2