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
/ Initializeaza "map" cu listele in care vom tine HashMapurile locale alea fragmentelor
public void initialilzeMapEntry(String file){ map.put(file, new LinkedList<HashMap<Integer, Integer>>()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catc...
[ "0.69341624", "0.68146724", "0.6714114", "0.6641473", "0.6557876", "0.64737433", "0.64682686", "0.6435763", "0.6393855", "0.6340345", "0.63193375", "0.6315613", "0.6262283", "0.62306327", "0.6214426", "0.6206592", "0.61971384", "0.61613244", "0.6160722", "0.61431026", "0.6141...
0.6443034
7
/ Cum LinkedList nu este thread safe , pentru a adauga la lista unui fisier de hashmapuri , trebuie sa facem functia syncronised
public synchronized void addHashToList(String file,HashMap<Integer,Integer> outcome){ LinkedList<HashMap<Integer, Integer>> list = (LinkedList<HashMap<Integer,Integer>>)map.get(file); list.add(outcome); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLoreEntries() {\n entryIDMap = new ConcurrentHashMap<>();\n entryIDThreads = new ThreadGroup(\"entryIDThreads\");\n\n for (int i = 0; i < bookSelectionData.size(); i++) {\n\n final String entryName = bookSelectionData.get(i).getBookName();\n final long en...
[ "0.58843637", "0.5648756", "0.5625865", "0.5584115", "0.5522565", "0.5515938", "0.5514219", "0.5511384", "0.55062467", "0.54969656", "0.5453093", "0.54524547", "0.54500484", "0.5417801", "0.5403245", "0.53692484", "0.5359796", "0.5349379", "0.5331017", "0.53205794", "0.531599...
0.51542103
45
/ Cum LinkedList nu este thread safe , pentru a adauga la lista unui string maximal local, trebuie sa facem functia syncronised
public synchronized void addMaxWordToList(String file, LinkedList<String> wordsListfile){ wordsListfile.add(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}", "private static void containerListNotSafe() {\n List<String> list = new CopyOnWriteArrayList<>();\n // 开启了20个线程\n for (int i = 1; i <= 30; i++) {\n new Thread(() -> {\n list.add(UUID.randomUUID().t...
[ "0.61253136", "0.58859086", "0.5847567", "0.58150774", "0.58017445", "0.5766298", "0.574427", "0.5696329", "0.5673194", "0.564713", "0.5620344", "0.5597439", "0.5569319", "0.55570847", "0.55487233", "0.54792154", "0.54611325", "0.5413141", "0.5411052", "0.54088056", "0.539844...
0.0
-1
Functie care incearca obtinera unui task din workpool. Daca nu sunt taskuri disponibile, functia se blocheaza pana cand poate fi furnizat un task sau pana cand rezolvarea problemei este complet terminata
public synchronized PartialSolution getWork() { if (tasks.size() == 0) { // workpool gol nWaiting++; /* condtitie de terminare: * nu mai exista nici un task in workpool si nici un worker nu e activ */ if (nWaiting == nThreads) { ready = true; /* problema s-a terminat, anunt toti ceilalti wor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int createTask() {\n Calendar cal = Calendar.getInstance();\n String taskName = \"Task-\" + cal.getTimeInMillis();\n\n return TaskServiceClient.createTask(\n projObjKey, // projObjKey-新建立工作項目所在的專案key值\n parentObjKey, // parentObjKey-新建立工作項目所屬的子專案/專案key值\n ...
[ "0.65066034", "0.64363414", "0.6339891", "0.6335557", "0.62581956", "0.61782897", "0.61061203", "0.6097284", "0.60423887", "0.59639996", "0.5960334", "0.59580666", "0.59470546", "0.59460515", "0.59223115", "0.5893104", "0.5867149", "0.58426327", "0.58403325", "0.58289057", "0...
0.5880807
16
Functie care introduce un task in workpool.
synchronized void putWork(PartialSolution sp) { tasks.add(sp); /* anuntam unul dintre workerii care asteptau */ this.notify(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CollectTaskPool() {\n\t\tsuper();\n\t}", "private synchronized void addTask(Runnable runnable) {\r\n mTaskQueue.add(runnable);\r\n try {\r\n if (mPoolThreadHandler==null){\r\n mSemaphorePoolThreadHandler.acquire();\r\n }\r\n } catch (Interrupted...
[ "0.67768234", "0.6710273", "0.6555545", "0.65408045", "0.65354276", "0.649885", "0.6483722", "0.6483676", "0.64195853", "0.63740975", "0.63418114", "0.633638", "0.633196", "0.6207948", "0.61976236", "0.61798465", "0.6178232", "0.6159152", "0.61449337", "0.61345524", "0.613271...
0.6905372
0
Component define from which modules dependencies are provided
@SingleScope @Component(modules = ModuleDatabase.class) public interface SavedComponent { WorkWithDatabase getDatabase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Component(\n modules = {\n ComputerModule.class,\n AccessoriesModule.class,\n DrinksModule.class\n }\n)\npublic interface DemoComponent {\n\n Programmer programmer();\n void inject(MainActivity activity);\n\n}", "Requires getRequires();", "@Component(modules = AppM...
[ "0.6349751", "0.63450587", "0.63361734", "0.61704916", "0.6121088", "0.60342324", "0.6005455", "0.5963778", "0.5960859", "0.5948476", "0.5939158", "0.5931784", "0.59199524", "0.58723676", "0.5864331", "0.58480376", "0.5836693", "0.58166367", "0.5803296", "0.57993037", "0.5797...
0.0
-1
create a new user
public EmailValidation create(EmailValidation user);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(User user) {\n\n\t}", "public void createUser(User user);", "UserCreateResponse createUser(UserCreateRequest request);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public void creatUser(String name, String phone, String email, String password);", "public...
[ "0.84836423", "0.84226006", "0.8235405", "0.81968474", "0.79670024", "0.79277605", "0.7920496", "0.7893078", "0.7866628", "0.7816121", "0.78091216", "0.770903", "0.7697361", "0.76969904", "0.7692735", "0.76808196", "0.7672427", "0.7671642", "0.76257664", "0.75345206", "0.7530...
0.0
-1
TODO Autogenerated method stub
@Override public void sale() { System.out.println("销售联想电脑"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Default constructor. Creates an empty stack of states.
public Context() { states = new ObjectStack<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Stack() {}", "public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}", "public Stack() {\n stack = new LinkedList();\n }", "public Stack() {\r\n\t\tthis.items = new ArrayList<>();\t\r\n\t}", "public OpStack() {\n opStack = new Stack();\n }", "public Stack() {\r\n first = nul...
[ "0.75779366", "0.75599724", "0.73890615", "0.73605704", "0.73515654", "0.72927445", "0.7183883", "0.7140907", "0.7124109", "0.7111338", "0.71079844", "0.707847", "0.70657206", "0.70626724", "0.70406336", "0.70283896", "0.70210636", "0.6993567", "0.69680834", "0.6964264", "0.6...
0.6755801
31
Gets the current state of a turtle.
public TurtleState getCurrentState() { return states.peek(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GraphicsState getState(\n )\n {return state;}", "public S getCurrentState();", "public State getState();", "public State getState();", "public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}", "public TState getState() {\n return state;\n }", "public T getState() {\r\n\t\tr...
[ "0.68322206", "0.66991264", "0.66790193", "0.66790193", "0.6677438", "0.65686154", "0.6541668", "0.6486975", "0.6461354", "0.64487904", "0.64487904", "0.64487904", "0.64487904", "0.6448422", "0.6425262", "0.64148504", "0.638787", "0.638787", "0.6367939", "0.6352579", "0.63495...
0.7755512
0
Adds a new state as a current state.
public void pushState( TurtleState state ) { states.push( state ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addState(State state){\n\t\tstates.add(state);\n\t}", "public State addState(String name) {\r\n \t\tState state = states.get(name);\r\n \t\tif (state == null) {\r\n \t\t\tstate = new State(name, index++);\r\n \t\t\tstates.put(name, state);\r\n \t\t\ttransitions.put(name, new Transition(state));\r\n \...
[ "0.76623505", "0.73369795", "0.72577584", "0.70433503", "0.7030528", "0.68487364", "0.68269116", "0.681589", "0.6791191", "0.6746524", "0.67462724", "0.6734384", "0.6717326", "0.6713998", "0.6646327", "0.6639732", "0.65548974", "0.6548897", "0.6461621", "0.6453287", "0.643690...
0.6608386
16
Sets the previous state as current state.
public void popState() { states.pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPreviousState(State prevState)\r\n\t{\r\n\t\tthis.previousState = new State();\r\n\t\tthis.previousState = prevState;\r\n\t}", "public void setPrevious()\n {\n\tint currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex -1);\n\t\n\t// never let currentNode be null, wra...
[ "0.81045943", "0.7314829", "0.71621263", "0.71562874", "0.71329755", "0.69849557", "0.6981923", "0.6967974", "0.6919296", "0.6917376", "0.6855206", "0.6826043", "0.6795157", "0.67910814", "0.6788686", "0.67569125", "0.67183083", "0.6715191", "0.6674355", "0.65664655", "0.6536...
0.0
-1
Send Email > Suite execution start..
@Override public void onStart(ISuite suite) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SendEmail() {\t\n\t}", "public void onFinish(ISuite arg0) {\n\t\tMonitoringMail mail=new MonitoringMail();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmessageBody = \"http://\"+InetAddress.getLocalHost().getHostAddress()+\":8080/job/git-DataDriven-Framework/Extent_20reports//\";\r\n\t\t} catch (UnknownHostException e) {\r\n\t...
[ "0.7307588", "0.7100346", "0.69853693", "0.6860094", "0.6844433", "0.66272044", "0.657423", "0.65395284", "0.6515361", "0.6440098", "0.6433544", "0.6384256", "0.63214076", "0.62544817", "0.6247945", "0.62402964", "0.62372106", "0.619228", "0.61781514", "0.6128465", "0.6127507...
0.0
-1
Snend Email with all of the reports
@Override public void onFinish(ISuite suite) { Map<String, ISuiteResult> results = suite.getResults(); Iterator<ISuiteResult> itestresults = results.values().iterator(); System.out.println(":::Cases passed::::::"+itestresults.next().getTestContext().getPassedTests().size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMailReport() {\n mailService.sendMail(\"users@example.org\", \"ToDo report\",\n String.format(\"There are '%s' todo entries!\", todoListService.getAllEntries().size()));\n }", "public static void SendReportAsEmail(String[] EmailIds) {\n\t\t// Recipient's email ID needs to...
[ "0.7266347", "0.6950102", "0.6835067", "0.6657697", "0.6570693", "0.641084", "0.63781005", "0.632579", "0.6205004", "0.61669755", "0.6161156", "0.609668", "0.6075458", "0.60421056", "0.6019492", "0.60011", "0.59206265", "0.58979774", "0.5893522", "0.58827525", "0.58366", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> parent) { }
{ "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
Verifies service is certified with version 1.0
public static void verifyServiceCertified(ServiceReqDetails createServiceInUI, User user) { Supplier<RestResponse> serviceGetter = () -> FunctionalInterfaces.swallowException( () -> ServiceRestUtils.getServiceByNameAndVersion(user, createServiceInUI.getName(), "1.0")); Function<RestResponse, Boolean> serviceVer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testVersion() {\n\t\tassertEquals(\"HTTP/1.0\", myReply.getVersion());\n\t}", "@Override\n public void checkVersion() {\n }", "public String getServiceVersion();", "public void verifyServerCertificates(boolean yesno);", "String getVersion() throws IOException, SoapException;", ...
[ "0.6089147", "0.5959634", "0.58327836", "0.5808006", "0.57920665", "0.57412416", "0.5652737", "0.564097", "0.564097", "0.5588423", "0.55808353", "0.55679494", "0.5555714", "0.55392903", "0.5536264", "0.5531483", "0.55010617", "0.5486209", "0.5454608", "0.5408208", "0.5401047"...
0.5846697
2
Log.v("TIMING", "Bitmap generation started " + getTimeStamp()); final List results = detector.recognizeImage(croppedBitmap); Log.v("TIMING", "Bitmap generation Ended " + getTimeStamp());
public void processImage() { ++timestamp; final long currTimestamp = timestamp; byte[] originalLuminance = getLuminance(); tracker.onFrame( previewWidth, previewHeight, getLuminanceStride(), sensorOrientation, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// ...
[ "0.771042", "0.6700607", "0.66912293", "0.6525185", "0.6489113", "0.63394564", "0.6298256", "0.6141745", "0.6096726", "0.601558", "0.59703183", "0.5969423", "0.59529567", "0.592449", "0.5918613", "0.59090805", "0.5900574", "0.58985907", "0.5886401", "0.58672065", "0.5832325",...
0.73914707
1
Date d = new Date();
public String getTimeStamp() { return new SimpleDateFormat("dd.MM.yyyy HH.mm.ss").format(new Date()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getDate();", "Date getDate();", "Date getDate();", "public Date GetDate();", "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "public static Date date() {\n GregorianCalendar cal = new GregorianCalendar();\n return cal.getTime();\n }", "public Date() {\r\n ...
[ "0.74267375", "0.74267375", "0.74267375", "0.7295205", "0.7269423", "0.7179003", "0.71726394", "0.7075368", "0.7021604", "0.6966145", "0.69458246", "0.690263", "0.6856814", "0.68455166", "0.6755726", "0.67552835", "0.67463803", "0.6703504", "0.66858155", "0.6678655", "0.66716...
0.0
-1
Adds the key value pair to the tree
public void put(String key, T value) { root = put (root, key, value, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(K key, V value) {\n Node<K,V> node = root, parent = null;\n int cmp = -1;\n\n while (node != null) {\n cmp = key.compareTo(node.key);\n parent = node;\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n ...
[ "0.7845929", "0.77158356", "0.7335465", "0.7289132", "0.7205823", "0.7147434", "0.7110337", "0.7073955", "0.70708966", "0.6966852", "0.69657683", "0.6910254", "0.69093853", "0.68754417", "0.6839094", "0.67775595", "0.67697906", "0.6762102", "0.67070043", "0.6700125", "0.66860...
0.64539015
30
Gets the value for the key
public T getValue(String key) { Node node = getNode(root, key, 0); return node == null ? null : node.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Value get(Key key);", "public V getValue(K key);", "public V getValue(K key);", "public Value get(Key key) ;", "String getValue(String type, String key);", "public String get(String key) {\n return getData().get(key);\n }", "public V get(K key);", "public V get(K key) {\n if (null =...
[ "0.81906235", "0.80345047", "0.80345047", "0.7962681", "0.7726903", "0.767447", "0.7668869", "0.7646224", "0.7629525", "0.7623098", "0.7580264", "0.75735337", "0.7557683", "0.7522518", "0.7522518", "0.7522518", "0.7522518", "0.7522518", "0.7522518", "0.7522518", "0.7519215", ...
0.74831706
24
Checks whether the key exists in the tree
public boolean contains(String key) { return getValue(key) != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }", "public boolean containsKey(String key) {\n \treturn (getNode(key) != null);\n }", "@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgu...
[ "0.7845527", "0.7778096", "0.7764536", "0.77319205", "0.77097607", "0.76538336", "0.7560837", "0.7553928", "0.7549111", "0.7468734", "0.744665", "0.74385804", "0.7392979", "0.7382304", "0.73727036", "0.72973585", "0.72834474", "0.72834474", "0.72834474", "0.72834474", "0.7283...
0.65147716
82
Get the picker's current picking request.
public Optional<PickingRequest> getTask() { return Optional.ofNullable(task); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final PickResult getPickResult() {\n return pickResult;\n }", "public String getDevicePickupId() {\n return this.devicePickupId;\n }", "static synchronized RequestProcessor getSelectionProcessor() {\n if (selectionProcessor == null) {\n selectionProcessor = new Requ...
[ "0.6085582", "0.54948807", "0.5354878", "0.53517795", "0.5332991", "0.5268638", "0.52121204", "0.5200554", "0.51851904", "0.51584584", "0.5152097", "0.51421875", "0.5129302", "0.5122476", "0.51215595", "0.50998366", "0.5096336", "0.5093233", "0.5088309", "0.5079368", "0.50791...
0.5775332
1
Set the task of the picker.
public void setTask(PickingRequest task) { this.task = task; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTask(Task inTask){\n punchTask = inTask;\n }", "public void setTask(Task task) {\n this.task = task;\n }", "public void setTask(TaskDTO task) {\n\t\tthis.task = task;\r\n\t\t\r\n\t\t\r\n\t}", "public Builder setTaskId(\n String value) {\n if (value == null) ...
[ "0.6823399", "0.67863554", "0.6418745", "0.6057908", "0.60470515", "0.6040919", "0.6020674", "0.59547895", "0.58914757", "0.58881307", "0.58719015", "0.5833784", "0.5717071", "0.5681587", "0.5649182", "0.56482106", "0.5638421", "0.56078345", "0.5589552", "0.55876833", "0.5580...
0.73973286
0
Creates an image pane with no set image.
public LImagePane() { setLayout(null); setOpaque(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImagePane() {\r\n\t\tsuper();\r\n\t}", "private ImageView createImageView(final File imageFile) {\n\n ImageView imageView = null;\n try {\n final Image image = new Image(new FileInputStream(imageFile), 150, 0, true,\n true);\n imageView = new ImageVie...
[ "0.7800026", "0.64362586", "0.63562405", "0.630541", "0.62363726", "0.6193035", "0.6147309", "0.5991254", "0.5958052", "0.58986485", "0.58771074", "0.5848691", "0.5842481", "0.58377165", "0.57902074", "0.5771693", "0.57434845", "0.5717545", "0.57071906", "0.56858206", "0.5664...
0.75973564
1
Default constructor using default endpoint configuration.
public SftpServer() { this(new SftpEndpointConfiguration()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void init(EndpointConfig arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "public EndpointDetail() {\n }", "public void init(EndpointConfig arg0) {\n\t\t\n\t}", "public Ore...
[ "0.7438557", "0.73872745", "0.73872745", "0.72102296", "0.71328354", "0.70777524", "0.6854074", "0.67956436", "0.678899", "0.67129964", "0.66988593", "0.6676337", "0.66718704", "0.6666831", "0.6578339", "0.65739006", "0.6475434", "0.643309", "0.6381265", "0.63759667", "0.6370...
0.0
-1
Constructor using endpoint configuration.
public SftpServer(SftpEndpointConfiguration endpointConfiguration) { this.endpointConfiguration = endpointConfiguration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void init(EndpointConfig arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "public EndpointDetail() {\n }", "public void init(EndpointConfig arg0) {\n\t\t\n\t}", "public End...
[ "0.75072247", "0.74590963", "0.74590963", "0.73502666", "0.7182448", "0.7122103", "0.70066595", "0.67832804", "0.6732964", "0.6689107", "0.66496897", "0.6610354", "0.65201086", "0.6375776", "0.63141227", "0.6265788", "0.6252103", "0.61697215", "0.6149635", "0.61315674", "0.60...
0.0
-1
Applies textures and models to a given block and it's item form.
public static void render(Block block) { Item item = Item.getItemFromBlock(block); ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bakeItemModels() {\n/* 754 */ Iterator<ResourceLocation> var1 = this.itemLocations.values().iterator();\n/* */ \n/* 756 */ while (var1.hasNext()) {\n/* */ \n/* 758 */ ResourceLocation var2 = var1.next();\n/* 759 */ ModelBlock var3 = (ModelBlock)this.models.get(var...
[ "0.6336106", "0.61915344", "0.5928253", "0.58889043", "0.58178586", "0.5800948", "0.5718055", "0.56085646", "0.5605717", "0.56023973", "0.55576146", "0.5525948", "0.548305", "0.5473552", "0.5440928", "0.5388374", "0.5373895", "0.53282124", "0.5271816", "0.5201814", "0.5185582...
0.6855298
0
Registers a block and itemblock pair. This exists for the sake of compactness.
public static void register(Block block, ItemBlock itemBlock) { GameRegistry.register(block); GameRegistry.register(itemBlock); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Item registerBlockItem(Block block, Item.Settings settings){\n Identifier id = Registry.BLOCK.getId(block);\n return CottonItemHelper.registerItem(id.getNamespace(), id.getPath(), new BlockItem(block, settings));\n }", "@SubscribeEvent\n public static void registerItem(final Re...
[ "0.7055655", "0.70347035", "0.6832996", "0.68272007", "0.67614084", "0.651037", "0.6468266", "0.6336359", "0.62370944", "0.6107178", "0.60698485", "0.6053917", "0.6013415", "0.59734225", "0.5947515", "0.58751315", "0.58305943", "0.57736325", "0.5758082", "0.57548875", "0.5736...
0.7295433
0
TODO Autogenerated method stub
@Override public int getIntersert() { return (8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public ModelAndView dataPreview(HttpServletRequest request, HttpServletResponse response) throws Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Extract data included in the Intent
@Override public void onReceive(Context context, Intent intent) { String message = intent.getStringExtra("message"); Log.d("receiver", "Got message: " + message); switch (message){ case "prev": currPic -= 1; if (currPic ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getInte...
[ "0.75900763", "0.7584439", "0.73961705", "0.73166925", "0.72308016", "0.69476646", "0.6936286", "0.68751186", "0.6744542", "0.6669544", "0.66489804", "0.6646749", "0.6632755", "0.6632531", "0.6567754", "0.6523626", "0.64673245", "0.64544547", "0.6428623", "0.64271057", "0.638...
0.0
-1
Get gets the latest date of ingestion.
public DateTime ingestionTime() { return this.ingestionTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tqu...
[ "0.6433337", "0.64096", "0.6397471", "0.62735", "0.6259098", "0.61784303", "0.60558563", "0.5987354", "0.5948008", "0.5838857", "0.58351994", "0.5828656", "0.58186555", "0.5804575", "0.5790618", "0.5774107", "0.5768687", "0.57541907", "0.5748413", "0.5742093", "0.57374173", ...
0.62229186
5
Set gets the latest date of ingestion.
public ProfileStoreStateInfo withIngestionTime(DateTime ingestionTime) { this.ingestionTime = ingestionTime; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDate() {\n this.date = new Date();\n }", "public void SetDate(Date date);", "@Override\n\tprotected void setDate() {\n\n\t}", "void setDate(Date data);", "public void setDate(long value) {\n this.date = value;\n }", "public abstract void setDate(Timestamp uneDate);", "publi...
[ "0.67376226", "0.6660524", "0.6651326", "0.65999776", "0.647429", "0.6447813", "0.64331454", "0.6374869", "0.6374869", "0.6374869", "0.6374869", "0.6374869", "0.6374869", "0.6374869", "0.6374869", "0.6374869", "0.63727134", "0.62832767", "0.62752825", "0.62731063", "0.6273106...
0.0
-1
Get the primaryInfo value.
public ProfileStoreCollectionInfo primaryInfo() { return this.primaryInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String primary() {\n return this.primary;\n }", "public String getInfoPkid() {\n return infoPkid;\n }", "public Boolean primary() {\n return this.primary;\n }", "public java.lang.String getPrimaryName() {\n return primaryName;\n }", "public String getPrimaryUs...
[ "0.76530755", "0.67106384", "0.66668856", "0.6649322", "0.65523326", "0.6541241", "0.65078014", "0.6496764", "0.649328", "0.6442115", "0.6394224", "0.6292538", "0.6285813", "0.62699634", "0.62350136", "0.61894184", "0.6186681", "0.6184003", "0.616485", "0.6131844", "0.6114086...
0.7532694
1
Set the primaryInfo value.
public ProfileStoreStateInfo withPrimaryInfo(ProfileStoreCollectionInfo primaryInfo) { this.primaryInfo = primaryInfo; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setPrimary(boolean primary)\r\n\t{\tthis.primary = primary;\t}", "public void setPrimaryUser ( final String primaryUser ) {\n this.primaryUser = primaryUser;\n }", "public void setPrimaryColor(String primaryColor) {\r\n //System.out.print(\"Setting PrimaryColor...\");\r\n ...
[ "0.7087913", "0.6394838", "0.6328885", "0.6314564", "0.6248605", "0.6104597", "0.61018294", "0.602801", "0.59632516", "0.5948551", "0.59398365", "0.5937289", "0.59333694", "0.5927437", "0.59033525", "0.5901134", "0.5898025", "0.5885063", "0.5876618", "0.58742666", "0.58016735...
0.6258449
4
Get the secondaryInfo value.
public ProfileStoreCollectionInfo secondaryInfo() { return this.secondaryInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String secondary() {\n return this.secondary;\n }", "public java.lang.String getSecondary2() {\n return secondary2;\n }", "public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }", "public java.lang.String getSecondary1() {\n return secondary...
[ "0.7887718", "0.7521613", "0.68877393", "0.6824989", "0.66237074", "0.6391504", "0.6309593", "0.6298504", "0.6279711", "0.62195915", "0.6217635", "0.6120146", "0.6053906", "0.60280925", "0.6006692", "0.59888196", "0.591023", "0.5884671", "0.58677316", "0.58174413", "0.5816529...
0.7614152
1
Set the secondaryInfo value.
public ProfileStoreStateInfo withSecondaryInfo(ProfileStoreCollectionInfo secondaryInfo) { this.secondaryInfo = secondaryInfo; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSecondary(boolean secondary)\r\n\t{\tthis.secondary = secondary;\t}", "void setSecondaryColor(String secondaryColor){\n this.secondaryColor = secondaryColor;\n }", "public void setSecondary2(java.lang.String secondary2) {\n this.secondary2 = secondary2;\n }", "public void s...
[ "0.6776382", "0.6618872", "0.6615341", "0.6177702", "0.60824114", "0.5999895", "0.5850767", "0.569381", "0.5676053", "0.56469566", "0.5635778", "0.56350404", "0.55915254", "0.55756783", "0.5540818", "0.5518379", "0.55067945", "0.54498017", "0.5414436", "0.5368005", "0.533886"...
0.6165544
4
Get customer Insights instance id associated with this object.
public UUID instanceId() { return this.instanceId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public...
[ "0.64660704", "0.64514905", "0.6425787", "0.6368884", "0.6368884", "0.6368884", "0.6368884", "0.6368884", "0.6368884", "0.6368884", "0.631052", "0.6226819", "0.61503685", "0.60912246", "0.60612345", "0.60457593", "0.60457593", "0.6038769", "0.60337156", "0.60337156", "0.60163...
0.6029463
20
Set customer Insights instance id associated with this object.
public ProfileStoreStateInfo withInstanceId(UUID instanceId) { this.instanceId = instanceId; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }", "publ...
[ "0.62881947", "0.60387975", "0.59754837", "0.58916295", "0.588489", "0.58460474", "0.5745659", "0.5689296", "0.5686535", "0.5667318", "0.5667318", "0.5667318", "0.5606011", "0.5606011", "0.55979615", "0.5514695", "0.54857445", "0.5483531", "0.54581493", "0.545637", "0.5443252...
0.0
-1
/ Returns concats the given character to the given name until reached the given string length.
public static String bufferLeft(char c, int i, String name) { while (name.length() < i) { name = c + name; } return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n// x = x + 2;\n// System.out.println(name.substring(x,x+2));\n\n String name = \"Gokyuzum\";\n ...
[ "0.5960483", "0.5801117", "0.57594347", "0.5757547", "0.57305384", "0.5721253", "0.5649502", "0.55828196", "0.5559707", "0.553574", "0.5454845", "0.5445935", "0.5416952", "0.540611", "0.5395893", "0.53878903", "0.53876996", "0.5356059", "0.5341252", "0.5316033", "0.53134364",...
0.66069865
0
Initialize a random array to sort
public static void main(String[] args) { int[] array=new int[5]; Random ran=new Random(); for(int i=0;i<array.length;i++) { //assign each item a value range from 0~99 array[i]=ran.nextInt(100); } System.out.println("Before Insertion Sort: "+Ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = d...
[ "0.71236306", "0.71082675", "0.676497", "0.67476726", "0.6713415", "0.6704165", "0.6702927", "0.6609328", "0.6598126", "0.65925044", "0.6587699", "0.657604", "0.6555265", "0.64971966", "0.6430861", "0.6415372", "0.6389752", "0.63304174", "0.6313689", "0.6305048", "0.6263871",...
0.58255965
89
mimic some longrunning process here...
@Override protected Void doInBackground() throws Exception { Thread.sleep(SLEEP_TIME); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract long doWork();", "private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }", "protected abstract void process(WorkerThread current_, double now_);", "public interface LongProcessOperations \n{\n ServoConRemote.LongProcessPackage.Status Completed...
[ "0.64571196", "0.6018424", "0.59426624", "0.58245164", "0.5815585", "0.57886654", "0.5784486", "0.5765948", "0.57561016", "0.57029855", "0.56865627", "0.5681897", "0.56678647", "0.5635529", "0.56273675", "0.56013197", "0.5594603", "0.55726194", "0.5563944", "0.55614185", "0.5...
0.0
-1
Initialize the contents of the frame.
private void initialize() { ClassLoader classLoader = ClassLoader.getSystemClassLoader(); frmSteapps = new JFrame(); frmSteapps.setTitle("STEApps"); frmSteapps.setResizable(false); frmSteapps.setBounds(100, 100, 1080, 720); frmSteapps.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmSteapps.getConten...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
Creates new form Kalkulator
public Kalkulator() { initComponents(); angka=""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public Kalkulator() {\n initComponents();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public FormInserir() {\n initComponents();\n }", "public BtxDetailsKcFormDefinition() {\n super();\n }"...
[ "0.6721123", "0.668086", "0.6536288", "0.59480244", "0.5874434", "0.58600885", "0.5677919", "0.56628966", "0.56605625", "0.5629462", "0.5622538", "0.5619092", "0.5616992", "0.5611941", "0.5584548", "0.55805504", "0.55744046", "0.55721307", "0.555338", "0.55381364", "0.5521548...
0.62676483
3
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jb7 = new javax.swing.JButton(); jb8 = new javax.swing.JButton(); jb9 = new javax.swing.JButton(); jbtambah = new javax.swing....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319396", "0.7290941", "0.7290941", "0.7290941", "0.7285927", "0.7248002", "0.72139066", "0.72086275", "0.71958303", "0.718997", "0.7184516", "0.7159095", "0.71481097", "0.709288", "0.70806605", "0.70578784", "0.6986726", "0.6977067", "0.6955257", "0.6954392", "0.6945326",...
0.0
-1
parametro do usuario que esta acessando
MenuPrincipal(String pLogin, String pUsuario) { setTitle("Sistema de Gerenciamento de Estoque e Frente de Caixa - Não Fiscal"); setSize(1100,700); setLocationRelativeTo(null); // painel p1 = new JPanel(); p1.setLayout(null); p1.setBackground(new Color(192,192,192)); getContentPane().a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void accionUsuario() {\n\t\t\r\n\t}", "public java.lang.String getUsuario();", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n \r\n }", "public String usuarioconectado() {\n\t\tString nome;\n\t\tObject principal = SecurityContextHolder.getContext().getAuth...
[ "0.7080693", "0.6993699", "0.68708444", "0.68425804", "0.6822199", "0.6822199", "0.66418153", "0.660702", "0.6603903", "0.6603903", "0.6543668", "0.6518252", "0.65129036", "0.6500355", "0.64878964", "0.6486154", "0.6478076", "0.6475412", "0.6467126", "0.6464943", "0.642739", ...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { return super.onCreateOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79046476", "0.7805623", "0.7766615", "0.77274555", "0.7632045", "0.76220745", "0.75848633", "0.7531134", "0.74884325", "0.74575055", "0.74575055", "0.74388313", "0.74218154", "0.7403308", "0.7391667", "0.7386889", "0.73792624", "0.73705244", "0.7362704", "0.7355958", "0.73...
0.0
-1
This method overrides Application start method. It takes image url and create image. Images are placed on Gridpane with centre alignment.
@Override public void start(Stage primaryStage) throws Exception { GridPane pane = new GridPane(); pane.setAlignment(Pos.CENTER); pane.setPadding(new Insets(10,10,10,10)); pane.setHgap(5.5); pane.setVgap(5.5); ImageView i1 = new ImageView(establishConnection("https:/...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override \n\t\t// Override the start method in the Application class.\n\t\t\n\t\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tPane pane = new FlowPane();\n\t\t\tpane.setPadding(new Insets (10, 10, 10, 10));\n\t\t\t\n\t\t\t\n\t\t\t//Place nodes in the pane.\n\t\t\tpane.getChildren().add(new Imag...
[ "0.6497404", "0.6374187", "0.6257741", "0.6150707", "0.612244", "0.6113312", "0.60479873", "0.59872395", "0.5964207", "0.5963839", "0.59576327", "0.5935288", "0.592292", "0.58953637", "0.5892699", "0.5879799", "0.5853727", "0.5850767", "0.58380234", "0.5830649", "0.5817167", ...
0.56717616
30
This method creates url connection for loading image through URL.
private Image establishConnection(String url) throws IOException { String imgUrl = url; URLConnection connection = new URL(imgUrl).openConnection(); connection.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"); Image image = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Bitmap LoadImage(String URL, BitmapFactory.Options options) {\r\n Bitmap bitmap = null;\r\n InputStream in = null;\r\n try {\r\n in = OpenHttpConnection(URL);\r\n bitmap = BitmapFactory.decodeStream(in, null, options);\r\n in.close();\r\n } catch...
[ "0.65175456", "0.65088546", "0.6440622", "0.6274939", "0.6270831", "0.62471306", "0.61924773", "0.618844", "0.6125292", "0.60966855", "0.6073601", "0.60359925", "0.60358405", "0.60272425", "0.6006557", "0.5971747", "0.59623", "0.5927172", "0.59186196", "0.589635", "0.58954644...
0.7077
0
Main function that contains application launch function. This will launch and display UI.
public static void main(String args[]) { try { Application.launch(args); } catch (Exception e) { System.out.println("Exception found: " + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStar...
[ "0.7523086", "0.74637854", "0.7462809", "0.73960716", "0.7349562", "0.7313137", "0.7307426", "0.7281286", "0.72800374", "0.72769356", "0.7270326", "0.7266094", "0.7250402", "0.7242849", "0.7242441", "0.72080123", "0.71737105", "0.71599025", "0.7124796", "0.71230936", "0.71063...
0.0
-1
/ esta variable se usa para calcular el numero de iteraciones que se haran durante la ejecucion del algortimo
public Biseccion(InterfaceB funcion) { // En el constructor de la clase se recibe un parametro de tipo interface (InterfaseB) f = funcion; // al atributo f se le pasa el parametro que se esta recibiendo (funcion); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getIterations();", "public int getIteration();", "int getMaximalIterationCount();", "@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}", "private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, Lin...
[ "0.7073597", "0.69597024", "0.6797991", "0.67725194", "0.6699266", "0.6404907", "0.6398617", "0.63524187", "0.6337389", "0.63313514", "0.6326238", "0.6323938", "0.63226414", "0.63044333", "0.62313074", "0.62313074", "0.62165856", "0.6206746", "0.61818457", "0.6176579", "0.617...
0.0
-1
En el metodo raiz se piden los parametros y metodos siguientes f es el atributo sobre el que se usa el metodo eval() de la clase InterfaceB eval(x); es el metodo que se usa para evaluar el argumento requerido en el atibuto f
public final double raiz(double x0, double x1, double t) { // se reciben tres parametros en el metodo Double x = Double.NaN; // valor inicial not a number if (f.evaluar(x0) * f.evaluar(x1) < 0) { // f(x) evaluada en x1 y x0 (formula) para saber si existen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Biseccion(InterfaceB funcion) { // En el constructor de la clase se recibe un parametro de tipo interface (InterfaseB)\n f = funcion; // al atributo f se le pasa el parametro que se esta recibiendo (funcion);\n \n }", "public abstract Object eval();", "H...
[ "0.61826533", "0.61224806", "0.587828", "0.5814722", "0.55742514", "0.55583936", "0.5552957", "0.5536007", "0.5536007", "0.55140644", "0.55126476", "0.5445388", "0.54439485", "0.54341435", "0.5423974", "0.53709805", "0.5367038", "0.53640556", "0.5335708", "0.53355575", "0.531...
0.0
-1
String string = "110011011";
public static void main(String[] args) { String string = "101101101"; int[][] dp = new int[string.length()+1][string.length() +1]; int len = string.length(); for (int i=0 ; i<= len ;i++) { for (int j=0 ;j<=len ;j++) { dp[i][j] = -1; } }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int beautifulBinaryString(String b) {\n int index = b.indexOf(\"010\", 0) ;\n int change = 0;\n while (index != -1) {\n change++;\n index = b.indexOf(\"010\", index + 3) ;\n }\n return change;\n }", "public static int stringToBits(String s) {\n ...
[ "0.6571203", "0.64595354", "0.6266955", "0.61980677", "0.6130154", "0.6092611", "0.59933585", "0.5892151", "0.58570915", "0.580784", "0.58056736", "0.5797274", "0.57821476", "0.5693039", "0.5686834", "0.5666944", "0.564515", "0.5642756", "0.56414634", "0.56329566", "0.5617829...
0.0
-1
TODO code application logic here
public static void main(String[] args) { SecureRandom random = new SecureRandom(); random.nextBytes(hash); data = new byte[hash.length + 1]; System.arraycopy(hash, 0, data, 0, hash.length); long c = 0; while (true) { recalculateData(); byte[] dataHash = crc32AsByteArray(data); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }"...
[ "0.60802186", "0.5912082", "0.58425087", "0.58339286", "0.5810548", "0.57580656", "0.57396024", "0.5721001", "0.5705411", "0.5666017", "0.5657976", "0.5613798", "0.5611188", "0.5611188", "0.55960613", "0.55933475", "0.557677", "0.5572332", "0.5565667", "0.55482084", "0.553657...
0.0
-1
/ limited power function
private int power(int base, int exp) { int p = 1; for( int i = exp ; i > 0; i-- ) { p = p * base; } return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getPower();", "public Node power()\r\n\t{\r\n\t\tNode fact = factor();\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.POW)\r\n\t\t{\t\t\t\r\n\t\t\tNode pow = power();\r\n\t\t\tif(pow!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Pow(fact,pow);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.set...
[ "0.751367", "0.74452543", "0.7422774", "0.7051299", "0.69988585", "0.6977821", "0.69403934", "0.6934597", "0.69014084", "0.6803696", "0.6790638", "0.67844164", "0.6779958", "0.67536026", "0.6735693", "0.6720749", "0.6706906", "0.66811997", "0.66811967", "0.66781104", "0.66490...
0.6931429
8
Add feature conjunctions to all tokens in the document
public void extract (Document document) { List<Token> tokenList = document.getTokenList(); for (Token token : tokenList) { FeatureSet fs = token.boundaryFeatureSet; // check for each pattern whether the feature set satisfies it for (String[] features : patternList) { boolean matches = true; for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void partOfSpeech(List<Token> tokenList)\r\n\t{\r\n\t\tString[] article = {\"a\", \"an\", \"the\"};\r\n\t\tString[] conjunction = {\"and\", \"but\", \"or\", \"nor\", \"for\", \"so\", \"yet\"};\r\n\r\n\t\tfor(Token tk : tokenList)\r\n\t\t{\t\r\n\t\t\tif (Arrays.asList(article).contains(tk.getName())) ...
[ "0.60003287", "0.560919", "0.5479912", "0.54119015", "0.5389522", "0.53798807", "0.53777474", "0.534162", "0.5289709", "0.5245139", "0.5245139", "0.5193977", "0.5193977", "0.5130401", "0.5114174", "0.5093443", "0.5005218", "0.5001083", "0.49221647", "0.48787338", "0.48750696"...
0.63262635
0
Do something if sensor value changes
@Override public void onSensorChanged(SensorEvent event) { timestamp = event.timestamp; gyroX = event.values[0]; gyroY = event.values[1]; gyroZ = event.values[2]; this.setChanged(); this.notifyObservers(Sensor.TYPE_GYROSCOPE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onSensorChanged() {\n\t\tsensorChanged();\n\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n long now = SystemClock.elapsedRealtime();\n\n long deltaMs = 0;\n if (mLastUpdateTS != 0) {\n deltaMs = now - mLa...
[ "0.7589713", "0.695826", "0.69470257", "0.6919857", "0.68224347", "0.67328274", "0.672769", "0.66880846", "0.66722506", "0.66722506", "0.6647713", "0.66293126", "0.6623617", "0.655249", "0.6508785", "0.64990956", "0.6497168", "0.64728504", "0.6446468", "0.6432502", "0.6422673...
0.6196731
38
Constructs a new StatCollectorCondCSAMMVar.
public StatCollectorCondCSAMMVar() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StatCollectorCondCSAMMVar(String name) {\n this(name, true);\n }", "public StatCollectorCondCSAMMVar(String name, boolean autoCollect) {\n this.name = name;\n this.autoCollect = autoCollect;\n }", "public Cond newCond() {\n return new Cond();\n }", "public com.google.pro...
[ "0.8436962", "0.7115916", "0.54725057", "0.519172", "0.5136996", "0.5127177", "0.50386566", "0.50222635", "0.5004195", "0.4958061", "0.488465", "0.4829995", "0.48126486", "0.48091072", "0.4802501", "0.47831738", "0.4776736", "0.47578007", "0.4698623", "0.45844534", "0.4547423...
0.8576658
0
Constructs a new StatCollectorCondCSAMMVar.
public StatCollectorCondCSAMMVar(String name, boolean autoCollect) { this.name = name; this.autoCollect = autoCollect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StatCollectorCondCSAMMVar() {\n }", "public StatCollectorCondCSAMMVar(String name) {\n this(name, true);\n }", "public Cond newCond() {\n return new Cond();\n }", "public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref i...
[ "0.8576658", "0.8436962", "0.54725057", "0.519172", "0.5136996", "0.5127177", "0.50386566", "0.50222635", "0.5004195", "0.4958061", "0.488465", "0.4829995", "0.48126486", "0.48091072", "0.4802501", "0.47831738", "0.4776736", "0.47578007", "0.4698623", "0.45844534", "0.4547423...
0.7115916
2
Constructs a new StatCollectorCondCSAMMVar. (Automatic by default.)
public StatCollectorCondCSAMMVar(String name) { this(name, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StatCollectorCondCSAMMVar() {\n }", "public StatCollectorCondCSAMMVar(String name, boolean autoCollect) {\n this.name = name;\n this.autoCollect = autoCollect;\n }", "public Cond newCond() {\n return new Cond();\n }", "public com.google.protobuf.ByteString\n getInitCon...
[ "0.85660315", "0.7425277", "0.52670354", "0.51315325", "0.5110636", "0.50736386", "0.5049621", "0.49641004", "0.49504244", "0.49470517", "0.4846185", "0.48407444", "0.47456974", "0.47157612", "0.47091594", "0.46785256", "0.4634545", "0.46246022", "0.45878842", "0.4573015", "0...
0.8377254
1
Add value to stat calculation for this object if condition met.
public void addValueFor(Object object) { if (meetsCondition(object)) { addValue(getValue(object)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean add(CompoundStat stat) {\n return add(stat, null);\n }", "protected void add() {\n\t\tfinal float previous = value;\n\t\tvalue = Math.min(max, value + incrementStep);\n\n\t\tif (value != previous) {\n\t\t\tupdateAndAlertListener();\n\t\t}\n\n\t\treturn;\n\t}", "double getBasedOnValue()...
[ "0.54909295", "0.54602844", "0.5241342", "0.52348745", "0.52246106", "0.5214159", "0.5206839", "0.5196223", "0.51843864", "0.5133624", "0.50745696", "0.5032131", "0.50148475", "0.49913895", "0.49823108", "0.49344516", "0.4930496", "0.49245572", "0.48626578", "0.48547134", "0....
0.6048699
0
method required for adding horse
Horse addHorse(Horse horse);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Horse getHorse(long id);", "public Horse(String name)\n {\n this.name = name;\n }", "Horse updateHorse(Horse horse);", "public static void horse() {\n System.out.println(\"There was an old woman who swallowed a horse,\");\n System.out.println(\"She died of course.\");\n }", "p...
[ "0.7633066", "0.76179874", "0.73006016", "0.7169758", "0.702502", "0.69879794", "0.6858701", "0.6456693", "0.64467365", "0.62124693", "0.6177917", "0.6136483", "0.61312294", "0.6064355", "0.5966235", "0.59499127", "0.593636", "0.5936138", "0.58325446", "0.58185583", "0.581754...
0.8379892
0
method required for updating horse
Horse updateHorse(Horse horse);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void thisHorse() {\n\t\tHorsesView horses = (HorsesView) manager.getPanel(Constants.H_VIEW_NAME);\n\t\tif (horses.getPhv().getAmount().isEmpty() || !horses.getPhv().getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\")\n\t\t\t\t|| Float.parseFloat(horses.getPhv().getAmount()) <= 0) {\n\t\t\tnew Dialeg().setWarni...
[ "0.7012949", "0.6803202", "0.6781207", "0.6762761", "0.6474668", "0.643591", "0.63520193", "0.6284176", "0.62177706", "0.61804086", "0.61550534", "0.6095794", "0.6086866", "0.60203993", "0.59883976", "0.59826833", "0.59820896", "0.59331673", "0.5925886", "0.5905638", "0.58491...
0.8609428
0
method required for getting horse by id
Horse getHorse(long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Horse deleteHorse(long id);", "@Override\n public String getChosenHorse() {\n return chosenHorse.getName();\n }", "List<Horse> getAllHorses();", "Horse addHorse(Horse horse);", "Horse updateHorse(Horse horse);", "public Horse(String name)\n {\n this.name = name;\n }", "@GetMap...
[ "0.72878313", "0.69057894", "0.6625799", "0.6415136", "0.6414529", "0.6412712", "0.6317568", "0.6110955", "0.60811067", "0.5984432", "0.58766", "0.5843004", "0.5795022", "0.5750927", "0.5742347", "0.5740802", "0.57266086", "0.5719369", "0.56781495", "0.56749403", "0.5667441",...
0.88882345
0
method required for getting all horses
List<Horse> getAllHorses();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getCount() {\n return horses.size();\n }", "private List<Horse> parseHorses(String[] horsesId) throws ServiceException {\r\n\r\n List<Horse> horses = new ArrayList<>();\r\n for (String stringId : horsesId){\r\n int id = Integer.parseInt(stringId);\r\n ...
[ "0.6499369", "0.6482685", "0.63303274", "0.6295397", "0.62829894", "0.62758243", "0.5979385", "0.5883195", "0.5790614", "0.5772095", "0.5708071", "0.57055867", "0.5693828", "0.566963", "0.5633258", "0.56264454", "0.5598336", "0.5574624", "0.55703104", "0.55660266", "0.5551576...
0.7912154
0
method required for deletion horse by id
Horse deleteHorse(long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteMataKuliah (int id);", "void deleteChallengeById(int id);", "public void deleteById(int theId);", "@Override\r\n\tpublic String deleteDeal() {\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine headLine = headLineService.load(iId);\r\n\t\t\tString filePa...
[ "0.729181", "0.70943594", "0.70242864", "0.6994548", "0.69803697", "0.6877636", "0.6863092", "0.68574023", "0.68547475", "0.6840266", "0.68182206", "0.6812309", "0.6810238", "0.6810238", "0.68016773", "0.6801586", "0.6791393", "0.67836046", "0.67836046", "0.67836046", "0.6783...
0.90951866
0
/ WARNING Removed try catching itself possible behaviour change.
public Class_17594 Method_6214() { Class_17594 class_17594; this.Field_6199.lock(); try { Class_17594 class_175942; if (this.Field_6192 != null && this.Field_6192.Method_17610() == Class_15815.Field_15817) { Class_17594 class_175943; Class_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n...
[ "0.6632181", "0.6445396", "0.6306119", "0.62854445", "0.62589747", "0.6257267", "0.62414694", "0.6176756", "0.61748254", "0.6164259", "0.61007214", "0.60852796", "0.605599", "0.6040991", "0.59922194", "0.59886706", "0.59456414", "0.5924899", "0.5917984", "0.5904189", "0.58977...
0.0
-1
/ WARNING Removed try catching itself possible behaviour change.
public void Method_6217(Class_26579 class_26579) { this.Field_6177.lock(); try { long l = System.nanoTime(); if (this.Field_6209.Method_26587()) { this.Field_6183 = l; } this.Field_6184 = l; this.Field_6209 = class_26579; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n...
[ "0.66330636", "0.64455503", "0.63069844", "0.62863445", "0.62601554", "0.6258713", "0.6242378", "0.617764", "0.61751425", "0.616476", "0.6102337", "0.60861343", "0.60565096", "0.6041599", "0.5993011", "0.5989686", "0.5945846", "0.59253937", "0.59183633", "0.5905668", "0.58978...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return data.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return songList.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return "下载链接:"+showLink; }
{ "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
construct property, given its rents
public Property(String name, int pos, int rent, int oneH, int twoH, int threeH, int fourH, int hotel, int value, int houses) { this.rent = rent; this.oneH = oneH; this.twoH = twoH; this.threeH = threeH; this.fourH = fourH; this.hotel = hotel; this.value = value; this.houses = houses; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Property createProperty();", "PropertyCallExp createPropertyCallExp();", "PropertyRule createPropertyRule();", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(Ro...
[ "0.73066777", "0.640828", "0.6381268", "0.6343732", "0.62571687", "0.6237304", "0.61553633", "0.6063132", "0.60291845", "0.60250413", "0.6010021", "0.59893835", "0.5972281", "0.59162325", "0.5911789", "0.58807987", "0.587792", "0.5846573", "0.5831928", "0.5810363", "0.5808522...
0.6017734
10
update status of property to owned
public void purchase(Player player) { owned = true; owner = player; updateMonopoly(player); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }", "@Override\n public void setFollowableStatus(Followable.FollowableStatus status) {\n logger.debug(\"setFollowableStatus(status: {})\", status);\n // process upda...
[ "0.6516935", "0.59089494", "0.5866912", "0.5829229", "0.57975626", "0.5795634", "0.5763598", "0.56687194", "0.5596628", "0.55816084", "0.5575426", "0.5530097", "0.5507497", "0.549752", "0.54213035", "0.53894734", "0.5368322", "0.5360831", "0.5356157", "0.53524494", "0.5337029...
0.0
-1
update building status by integer input
public void build(int a) { buildings += a; if (buildings > 5) throw new IllegalArgumentException("Cannot build past hotel!"); if (buildings < 0) throw new IllegalArgumentException("Cannot build negative buildings!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateHouseStatus(long houseId, int status);", "void updateHouseStatus(String username, long houseId, int status);", "void updateRoomStatus(long roomId, int status);", "void updateRoomStatus(String username, long roomId, int status);", "public void setStatus(int v) \n {\n \n if ...
[ "0.7135974", "0.6965803", "0.6846519", "0.6532544", "0.6130839", "0.60282457", "0.60022515", "0.60020167", "0.5971852", "0.59670705", "0.5943951", "0.5943951", "0.5904124", "0.5900979", "0.5900979", "0.5900979", "0.5900979", "0.5900979", "0.5900979", "0.5900979", "0.59005386"...
0.0
-1
switch status of monopoly
public boolean monopoly() { return monopoly; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0,...
[ "0.6661877", "0.6555115", "0.6445561", "0.62968886", "0.62242925", "0.6157352", "0.613742", "0.6132631", "0.6108069", "0.60982215", "0.6089014", "0.6066448", "0.6036878", "0.6024505", "0.5977137", "0.59676725", "0.5963416", "0.5961699", "0.59616345", "0.59535074", "0.58963084...
0.0
-1
cost to purchase property
public int cost() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateCost(Purchase purchase);", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "double getCost();", "double getCost();", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "public void purcha...
[ "0.81009036", "0.7326355", "0.71865046", "0.71865046", "0.7128192", "0.71161026", "0.7061196", "0.7015848", "0.7013262", "0.7013167", "0.699852", "0.6942242", "0.6922533", "0.6895894", "0.68943805", "0.68943805", "0.68943805", "0.6893255", "0.6869508", "0.6859956", "0.6854114...
0.0
-1
return number of buildings owned
public int numHouses() { return buildings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getOwnedEntryCount();", "public int getTotalbuildings() {\n\t\treturn totalbuildings;\n\t}", "public int getBuildings(){\r\n\t\treturn buildings;\r\n\t}", "public int getBuildings() {\r\n\t\treturn this.buildings;\r\n\t}", "public int getNumberOfUserSpacesActivities(Identity ownerIdentity);", "publi...
[ "0.7119945", "0.6833987", "0.6585635", "0.6494513", "0.62939686", "0.61926615", "0.6128704", "0.6105659", "0.6084053", "0.6076195", "0.6059062", "0.6058372", "0.59865636", "0.59586024", "0.5950907", "0.5914952", "0.58679986", "0.58422476", "0.58281815", "0.58260804", "0.57976...
0.7122995
0
return cost to purchase one house
public int houseCost() { return houses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateCost(Purchase purchase);", "double getCost();", "double getCost();", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "int getCost();", "int getCost();", "int getCost();", "@Override\n public double cost()\n {\n re...
[ "0.77440506", "0.72712404", "0.72712404", "0.714288", "0.708346", "0.708346", "0.708346", "0.70586157", "0.69965327", "0.6966299", "0.6963287", "0.6958877", "0.69311136", "0.68135476", "0.6791771", "0.67608917", "0.67501515", "0.6708845", "0.67057747", "0.6705628", "0.6703244...
0.6755148
16
retrieve information about the profile with the provided id
@GET @Path("/{userid}/{password}") public Response logIn(@PathParam("userid") String userid, @PathParam("password") String password) throws ProfileDaoException { Optional<Profile> user = api.getProfile(userid); if(BCrypt.hashpw(password, user.get().getPassword()).equals(user.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getProfileInfo(String id) {\n\n new WebRequestTask(this, _handler, Constants.GET_METHOD,\n WebServiceDetails.GET_PROFILE_INFO_PID, true, WebServiceDetails.GET_PROFILE_INFO + id).execute();\n }", "@Override\r\n public Profile getProfileById(int id) {\r\n return profi...
[ "0.8523881", "0.80976677", "0.8062232", "0.78460634", "0.78457266", "0.7650972", "0.75422204", "0.73232377", "0.7183972", "0.71753967", "0.7106202", "0.71003985", "0.7008095", "0.69933677", "0.6874031", "0.6855578", "0.6824431", "0.6777835", "0.6758583", "0.67405266", "0.6730...
0.0
-1
retrieve information about the profile with the provided id
@POST @Path("/create") @Consumes(MediaType.APPLICATION_JSON) public Response createUser(ProfileJson json) throws ProfileDaoException { Profile profile = json.asProfile(); profile.setPassword(BCrypt.hashpw(profile.getPassword(), BCrypt.gensalt())); //add checking if profile doesn't ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getProfileInfo(String id) {\n\n new WebRequestTask(this, _handler, Constants.GET_METHOD,\n WebServiceDetails.GET_PROFILE_INFO_PID, true, WebServiceDetails.GET_PROFILE_INFO + id).execute();\n }", "@Override\r\n public Profile getProfileById(int id) {\r\n return profi...
[ "0.8524347", "0.8097211", "0.80616", "0.7846074", "0.7845621", "0.76516545", "0.7541668", "0.7323517", "0.71843505", "0.7175176", "0.7105255", "0.7099468", "0.700741", "0.6993613", "0.68731827", "0.6854258", "0.6824359", "0.6776609", "0.67594415", "0.6740764", "0.67290825", ...
0.0
-1
Returns the session ID of the multimedia session
public abstract String getSessionId() throws RcsServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSessionID ()\n\t{\n\t\treturn sessionID;\n\t}", "java.lang.String getSessionID();", "public String getSessionID() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com....
[ "0.7556451", "0.7488139", "0.7476531", "0.7476531", "0.74457264", "0.744396", "0.744396", "0.7405683", "0.7373749", "0.7318964", "0.7318964", "0.73171353", "0.72120225", "0.7171385", "0.7128386", "0.71150047", "0.7110082", "0.7081192", "0.7081192", "0.701504", "0.701504", "...
0.0
-1
Returns the remote contact identifier
public abstract ContactId getRemoteContact() throws RcsServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getRemoteContact(ChatMessage message) {\n Logger.d(TAG, \"formatRemote() entry, message.getRemote() is \"\n + message.getContact());\n String remote = message.getContact();\n String displayName = Utils\n .extractDisplayNameFromUri(remote);\n ...
[ "0.71746504", "0.71127003", "0.64754784", "0.63648254", "0.6308398", "0.6288533", "0.6234522", "0.6232527", "0.62158895", "0.6206472", "0.6170108", "0.6149914", "0.6133001", "0.6127318", "0.61220986", "0.6079406", "0.6061217", "0.6052029", "0.59899056", "0.59784317", "0.59621...
0.72869194
0
Returns the service ID
public abstract String getServiceId() throws RcsServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceId();", "String getService_id();", "String getServiceId();", "public String getServiceID();", "public int getServiceID() {\n return serviceID;\n }", "public ID getServiceID() {\n\treturn serviceID;\n }", "public java.lang.Long getServiceId() {\n return servi...
[ "0.85396165", "0.85299075", "0.85154843", "0.83691376", "0.8321991", "0.8299618", "0.825567", "0.8250338", "0.82344615", "0.8018184", "0.79675543", "0.7849318", "0.78306204", "0.7825367", "0.77018267", "0.7519261", "0.74384916", "0.7411402", "0.729104", "0.72658163", "0.71744...
0.7640426
15
Returns the state of the session
public abstract int getState() throws RcsServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSessionState();", "protected final SessionState getSessionState() {\n Session currentSession = sessionTracker.getSession();\n return (currentSession != null) ? currentSession.getState() : null;\n }", "SessionStatus getStatus();", "public Byte getUserState() {\r\n r...
[ "0.7844135", "0.7603039", "0.73464465", "0.7083099", "0.70425475", "0.69877017", "0.6930561", "0.6875474", "0.6864307", "0.68489355", "0.68489355", "0.68402016", "0.68326604", "0.6825962", "0.6825962", "0.6825962", "0.6825962", "0.6825962", "0.6825962", "0.6825917", "0.682591...
0.0
-1
Returns the direction of the session (incoming or outgoing)
public abstract int getDirection() throws RcsServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDirection() {\r\n return direction;\r\n }", "public int getDirection() {\n return direction_;\n }", "public String getDirection() {\n return direction;\n }", "public String getDirection() {\n\t\treturn this.direction;\n\t}", "public String getDirection() {\n ...
[ "0.6901755", "0.68977517", "0.6897636", "0.6883779", "0.6881116", "0.6822257", "0.6812102", "0.68048644", "0.678085", "0.67519677", "0.67398334", "0.67398334", "0.67398214", "0.67398214", "0.6725913", "0.6724117", "0.6668551", "0.6648325", "0.66369015", "0.66304237", "0.66233...
0.55919254
80
An interface to identify costs that sacrifice permanents
public interface SacrificeCost extends Cost { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double getCost();", "double getCost();", "double getCost();", "public double getCosts();", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "double getTotalCost();", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", ...
[ "0.68487495", "0.6740443", "0.6740443", "0.6631031", "0.65931934", "0.65241414", "0.65016615", "0.65016615", "0.65016615", "0.64212483", "0.64212483", "0.64212483", "0.6373702", "0.6363065", "0.63565415", "0.6324795", "0.6266283", "0.6222428", "0.620551", "0.6197241", "0.6160...
0.6626659
4
NOTE: have to build the filter here:
@PostConstruct public void init() { zeroLeggedOAuthProviderProcessingFilter = new ZeroLeggedOAuthProviderProcessingFilter( oauthConsumerDetailsService, oauthNonceServices, oauthProcessingFilterEntryPoint, oauthAuthenticationHandler, oauthProviderTokenServices, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public abstract void filter();", "@Override\...
[ "0.74241996", "0.74241996", "0.7178594", "0.7105444", "0.69680244", "0.69670546", "0.6925673", "0.68463504", "0.6823554", "0.6800605", "0.67924047", "0.67507136", "0.6711915", "0.6696826", "0.6653399", "0.66337705", "0.66201055", "0.6594537", "0.65890026", "0.65418535", "0.65...
0.0
-1
NOTE: we don't use the OAuthProviderTokenServices for 0legged but it cannot be null
@Bean(name = "oauthProviderTokenServices") public OAuthProviderTokenServices oauthProviderTokenServices() { return new InMemoryProviderTokenServices(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected OAuthProvider getOAuthProvider() {\r\n \tOAuthProvider provider = new CommonsHttpOAuthProvider(MendeleyApiUrls.OAuthUrls.REQUEST_TOKEN_URL,\r\n \t\t\tMendeleyApiUrls.OAuthUrls.ACCESS_TOKEN_URL, MendeleyApiUrls.OAuthUrls.AUTHORIZE_URL);\r\n \t\r\n \tprovider.setOAuth10a(true);\r\n// for...
[ "0.67561555", "0.65812564", "0.6562313", "0.6547364", "0.6472313", "0.63891286", "0.638802", "0.63158315", "0.6290098", "0.6258947", "0.6251299", "0.6211915", "0.61293334", "0.60760766", "0.6045625", "0.59960145", "0.5978167", "0.5966795", "0.5885605", "0.58793324", "0.585789...
0.66243774
1
Return the unique identifier of this class
public Integer getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }", "public String getUniqueID();", "public String getUniqueID ( ) { return _uniqueID; }", "String getUniqueID();", "public String getClassid() {\n return classid;\n }", "String getUniqueId()...
[ "0.8099061", "0.7793248", "0.7745005", "0.773952", "0.76971465", "0.76135826", "0.75959677", "0.75864595", "0.754388", "0.75299907", "0.75275266", "0.7500354", "0.7487855", "0.74852705", "0.74435693", "0.7425048", "0.74089086", "0.74007654", "0.73874485", "0.7354514", "0.7352...
0.0
-1
Set the unique identifier of this class
public void setId(Integer id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setID() {\n\t\tthis.ID = UUID.randomUUID().toString();\n\t}", "public void setUniqueID(String uniqueID)\r\n {\r\n m_uniqueID = uniqueID;\r\n }", "@Override\n\tpublic void setUniqueId(int id) {}", "public void setUniqueId(final String uniqueId) {\n _uniqueId = uniqueId;\n }", "publi...
[ "0.7281828", "0.7188852", "0.70595604", "0.7058688", "0.69680285", "0.6883223", "0.6781155", "0.67765903", "0.67603344", "0.6737482", "0.6681386", "0.66533566", "0.6612935", "0.66081303", "0.66040903", "0.6576922", "0.657261", "0.65361136", "0.653008", "0.6522364", "0.6506520...
0.0
-1
Return the value associated with the column: id_checklist
public Checklist_Base getIdChecklist() { return idChecklist; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> getValue() {\n\n\t\tArrayList<String> value = new ArrayList<String>();\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb.getValue()) {value.add(id);}\n\t\t}\n\t\treturn...
[ "0.578712", "0.57502764", "0.5727252", "0.5624909", "0.5353991", "0.53455764", "0.5287698", "0.5278731", "0.5198517", "0.5173206", "0.5107967", "0.5097295", "0.50600386", "0.5015537", "0.49981868", "0.49740398", "0.49702796", "0.494245", "0.4939129", "0.48967665", "0.4880277"...
0.6059381
0
Set the value related to the column: id_checklist
public void setIdChecklist(Checklist_Base idChecklist) { this.idChecklist = idChecklist; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}", "@Override\n public void onCheckedChange...
[ "0.621873", "0.5856036", "0.5763242", "0.56902695", "0.55951524", "0.55196184", "0.5472935", "0.5439458", "0.5432707", "0.54160553", "0.53731096", "0.53663546", "0.53181654", "0.52896756", "0.52890897", "0.5287659", "0.5283639", "0.5283639", "0.5275755", "0.52639", "0.5242650...
0.70767874
0
Return the value associated with the column: id_jour_ferie
public Jour_Ferie getIdJourFerie() { return idJourFerie; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getIdFiche(){\r\n return this.idFiche;\r\n }", "@Override\r\n\tpublic Famille getFamille(Long idFamilleComp) {\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\tObject C=session.get(Famille.class, idFamilleCom...
[ "0.69187945", "0.63679045", "0.6296829", "0.6294333", "0.6288713", "0.62492687", "0.61891246", "0.6159161", "0.6152227", "0.6145086", "0.61294776", "0.6127009", "0.61268634", "0.6106837", "0.60990673", "0.60853285", "0.6071729", "0.6057127", "0.6011766", "0.59941864", "0.5984...
0.61961234
6
Set the value related to the column: id_jour_ferie
public void setIdJourFerie(Jour_Ferie idJourFerie) { this.idJourFerie = idJourFerie; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "public void setIdUsuario(int value) {\n this.idUsuario = value;\n }", "public void setId_anneeScolaire(int id_anneeScolaire) {this.id_anneeScolaire = id_anneeScolaire;}", "public void setIdDetalle_Ventaf(int idD...
[ "0.69026303", "0.6758256", "0.6641567", "0.64266795", "0.64057493", "0.63375604", "0.63083553", "0.6298434", "0.6292544", "0.62808806", "0.6266617", "0.62634915", "0.6247752", "0.6247143", "0.6193981", "0.61810315", "0.61613655", "0.61610496", "0.61395746", "0.613919", "0.613...
0.6781767
1
Return the value associated with the column: lendeveille
public Integer getLendeveille() { return lendeveille; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLendeveille(Integer lendeveille) {\r\n\t\tthis.lendeveille = lendeveille;\r\n\t}", "public int getLongueur() {\n\t\treturn this.longueur;\n\t}", "public int getLongitudDeCaracteres() {\n Integer a = new Integer(longitudDeCaracteres);\n if (a == null) {\n try {\n ...
[ "0.64331263", "0.60000366", "0.59681046", "0.58722377", "0.58683896", "0.5849957", "0.5715813", "0.570104", "0.5679761", "0.5640499", "0.5638936", "0.55354565", "0.55206335", "0.55206335", "0.5517151", "0.54997444", "0.5498469", "0.5475634", "0.54640895", "0.5455819", "0.5446...
0.6639435
0
Set the value related to the column: lendeveille
public void setLendeveille(Integer lendeveille) { this.lendeveille = lendeveille; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWidth(int nuova_larghezza)\n {\n \tboolean bo = informaPreUpdate();\n larghezza = nuova_larghezza;\n\t\tinformaPostUpdate(bo);\n }", "public Integer getLendeveille() {\r\n\t\treturn lendeveille;\r\n\t}", "public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}", "public v...
[ "0.6220216", "0.6169125", "0.6096114", "0.6088754", "0.59479177", "0.59479177", "0.58780444", "0.58529687", "0.57741517", "0.57741517", "0.57551134", "0.5743812", "0.5735296", "0.5683776", "0.56671673", "0.5602658", "0.55857664", "0.5585696", "0.5573432", "0.5570832", "0.5559...
0.74103016
0
The elevator also contains a request object. This is the constructor for the class where it sets default values to its parameters.
public Elevator() { currentFloor = 1; elevatorState = IDLE; request = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Elevator() {\n _currentFloor = Floor.FIRST;\n _passengersOnboard = 0;\n _directionOfTravel = DirectionOfTravel.UP;\n\n }", "public Elevator() {\n\t\t\n \tsuper(\"Elevator\", RobotConstants.ELEVATOR_P, RobotConstants.ELEVATOR_I, RobotConstants.ELEVATOR_D);\n \t\t\n\t\t// TODO Auto-ge...
[ "0.7349366", "0.7340519", "0.69283015", "0.68121254", "0.67395836", "0.6710603", "0.6683558", "0.6665341", "0.65841395", "0.6488701", "0.64796275", "0.64796275", "0.6384623", "0.6379302", "0.6327191", "0.63066566", "0.628861", "0.6166152", "0.6132193", "0.6118529", "0.6101719...
0.775625
0
This is the accessor method to get the current floor the elevator is in.
public int getCurrentFloor() { return currentFloor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurrentFloorForElevator(int elevator) {\t\t\n\t\treturn elevators.get(elevator).getCurrentFloor();\n\t}", "public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }", "public String getFloor() {\n retur...
[ "0.8364475", "0.83246475", "0.7822086", "0.7725904", "0.77154416", "0.77089953", "0.77010727", "0.76918286", "0.7643148", "0.74395597", "0.7313832", "0.704662", "0.70351803", "0.6928416", "0.69102055", "0.6883677", "0.682791", "0.67329305", "0.6707796", "0.6613754", "0.649713...
0.78386426
3