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
This function updates content of categories listed in Used_categories.txt
void updateUsedCategoriesContent() { try{ InputStream inputStream = DMOZCrawler.class.getResourceAsStream("Used_categories.txt"); InputStreamReader inputStreamReader = new InputStreamReader(inputStream); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCategory(String category){}", "void updateCategory(Category category);", "void updateCategory(Category category);", "public void UpdateCategoriesCheckRepeats(){\n dbHandler.OpenDatabase();\n ArrayList<Category> CategoryObjectList = dbHandler.getAllCategory();\n // Create Categ...
[ "0.7061229", "0.66097367", "0.66097367", "0.63944143", "0.6331616", "0.62196785", "0.61027914", "0.60338753", "0.60300756", "0.59075564", "0.58970207", "0.5840109", "0.582191", "0.58193964", "0.58163", "0.5789299", "0.5721696", "0.5666555", "0.5658386", "0.565636", "0.5642011...
0.8499105
0
This function targets categories listed in Used_categories.txt file for updating the content in MongoDB.
void categoryContent(Integer categoryId){ Document query = new Document(); // selected_collection.find({'locations' : {'$exists' : False}}, no_cursor_timeout=True) query.put("id", categoryId); query.put("$where", "this.categoryContent.length==0"); FindIterable findIterable = mongo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateUsedCategoriesContent() {\n try{\n InputStream inputStream = DMOZCrawler.class.getResourceAsStream(\"Used_categories.txt\");\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStrea...
[ "0.76086485", "0.6376718", "0.61640257", "0.614582", "0.59640115", "0.5692701", "0.5692701", "0.56899935", "0.5688533", "0.568219", "0.55955553", "0.5558691", "0.55316174", "0.55078936", "0.5493616", "0.5484121", "0.5477502", "0.5376722", "0.535313", "0.53037274", "0.5266787"...
0.59404594
5
TODO Autogenerated method stub
@Override public void run() { for (int i = 0; i<100 ; i++) { pb.setProgress(i/1000.0); try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printSt...
{ "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
DFS function returns an array including all substrings derived from s.
static List<String> DFS(String s, Set<String> wordDict, HashMap<String, LinkedList<String>>map) { if (map.containsKey(s)) return map.get(s); LinkedList<String>res = new LinkedList<String>(); if (s.length() == 0) { res.add(""); return res; } fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> DFS(String s, Set<String> wordDict, HashMap<String, LinkedList<String>>map) {\n\t if (map.containsKey(s)) \n\t return map.get(s);\n\t \n\t LinkedList<String>res = new LinkedList<String>(); \n\t if (s.length() == 0) {\n\t res.add(\"\");\n\t return ...
[ "0.6156624", "0.6106537", "0.6105959", "0.582615", "0.5817731", "0.58174735", "0.5781247", "0.5760028", "0.5731743", "0.57213354", "0.567966", "0.567438", "0.5642325", "0.56204635", "0.5602179", "0.55395424", "0.5523105", "0.54876137", "0.5477179", "0.54628694", "0.54465604",...
0.6283376
0
custom cache : can be usd to ipmlement different types of cache
public interface CustomCache<K, V> { /** * gets a value by key * returns null if key is expired * * @param key * @return */ V get(K key); /** * puts into cache with given ttl * * @param key * @param value */ void put(K key, V value); /** ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ContentCache extends DataCache {\r\n String getValue(String code, Locale locale);\r\n\r\n Boolean containsLocale(Locale locale);\r\n\r\n Boolean containsCodeForLocale(String code, Locale locale);\r\n\r\n Map<String, Map<String, String>> getCachedData();\r\n}", "public interface ICach...
[ "0.729567", "0.72888076", "0.72579896", "0.7218155", "0.71844274", "0.7108608", "0.7100892", "0.70734966", "0.7040051", "0.7004525", "0.69038194", "0.68824756", "0.6844713", "0.68130517", "0.6795621", "0.67618465", "0.67556673", "0.66927123", "0.66580176", "0.66450685", "0.66...
0.7004788
9
gets a value by key returns null if key is expired
V get(K key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V getIfNotExpired(K key) {\n CacheableObject cObj;\n\n synchronized(theLock) {\n cObj = valueMap.get(key);\n }\n\n if (null != cObj) {\n if (isExpired(cObj)) {\n synchronized(theLock) {\n currentCacheSize -= cObj.containment...
[ "0.75728726", "0.72401965", "0.71675396", "0.710947", "0.7070574", "0.7042873", "0.70232534", "0.69975317", "0.69468457", "0.693149", "0.6931248", "0.69289505", "0.69257605", "0.6902295", "0.689382", "0.688972", "0.688972", "0.687431", "0.6867275", "0.68652034", "0.68463784",...
0.68998075
19
puts into cache with given ttl
void put(K key, V value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTtl(int ttl) {\n this.ttl = ttl;\n }", "public void setTtl(Integer ttl) {\n this.ttl = ttl;\n }", "public void set(int curtTime, int key, int value, int ttl) {\n int expire = ttl == 0 ? -1 : curtTime + ttl - 1;\n Element elem = new Element(value, expire);\n ...
[ "0.6883964", "0.68631685", "0.67812485", "0.65595955", "0.6551519", "0.6374698", "0.6288519", "0.6124312", "0.6108323", "0.60684925", "0.59793246", "0.5925304", "0.58667314", "0.58433264", "0.58069694", "0.5786685", "0.57690454", "0.57641035", "0.57591486", "0.5745684", "0.57...
0.0
-1
averages out the non expired values in cache. to be discussed in interview
double average();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getCacheMisses();", "public interface CustomCache<K, V> {\n\n /**\n * gets a value by key\n * returns null if key is expired\n *\n * @param key\n * @return\n */\n V get(K key);\n\n /**\n * puts into cache with given ttl\n *\n * @param key\n * @param value\n ...
[ "0.679565", "0.66160715", "0.6250586", "0.62226605", "0.6208703", "0.6107425", "0.6105437", "0.6046858", "0.6007988", "0.59088737", "0.5837085", "0.58163834", "0.5774259", "0.5764402", "0.573649", "0.5686305", "0.5676865", "0.5670993", "0.56555986", "0.5645159", "0.56408304",...
0.0
-1
/ enable only buttons existing in eventButtons for a transition TODO: implement checking the cast from List to List
private void enableButtonsForTransitionsOf(TransitionTarget pState) { for (Transition aTransition : (List<Transition>) pState.getTransitionsList()) { JButton buttonForTransitionEvent = eventButtons.get(aTransition.getEvent()); if (buttonForTransitionEvent != null) buttonForTransitionEvent.setEnabled(true); /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkButton(ActionEvent e) {\n List<PuzzleButton> selectedButtons = buttons.stream()\n .filter(PuzzleButton::isSelectedButton)\n .collect(Collectors.toList());\n PuzzleButton currentButton = (PuzzleButton) e.getSource();// getting current button\n cur...
[ "0.63392925", "0.6163289", "0.61027086", "0.6015911", "0.60008097", "0.59500897", "0.5908412", "0.58970046", "0.5883629", "0.58100444", "0.5790548", "0.5727662", "0.5725872", "0.56969535", "0.569563", "0.56917727", "0.5682249", "0.56550306", "0.56472814", "0.5644655", "0.5633...
0.78472215
0
/ update each JTextField in the GUI with the value, held in the datamodel, of the corresponding variable TODO: implement explicit cast from List to List
@Override public void onTransition(final TransitionTarget fromState, final TransitionTarget toState, final Transition aTransition) { List<Action> actionList = aTransition.getActions(); ArrayList<Assign> assignList = new ArrayList<Assign>(); for (Action a : actionList){ if(a.getClass().toString().equals("cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateVariables(){\n Map<String, Integer> specialParameter = myLogic.getSpecialParameterToDisplay();\n liveScore.setText(Double.toString(myLogic.getScore()));\n for (String parameter: specialParameter.keySet()) {\n numLives.setText(parameter + specialParameter.get(parame...
[ "0.60725635", "0.6013935", "0.59352744", "0.5909069", "0.59029496", "0.5886844", "0.5873612", "0.58542067", "0.57995677", "0.5788612", "0.5715489", "0.57104146", "0.5709595", "0.56962043", "0.56815344", "0.5668073", "0.565578", "0.5650077", "0.5637122", "0.5630187", "0.561594...
0.0
-1
Created by chsc on 25.03.17.
public interface BaseView<T extends BasePresenter> { void setPresenter(T presenter); boolean isActive(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Overrid...
[ "0.56738174", "0.5643423", "0.5630211", "0.5569837", "0.5502755", "0.5461902", "0.5459547", "0.5459547", "0.5459547", "0.5459547", "0.5459547", "0.54513067", "0.54513067", "0.5435878", "0.54277426", "0.54275656", "0.5416207", "0.54077566", "0.53892314", "0.53890157", "0.53799...
0.0
-1
Immediately draws the illumination dot on this SurfaceView's surface.
void drawIlluminationDot(@NonNull RectF sensorRect) { if (!mHasValidSurface) { Log.e(TAG, "drawIlluminationDot | the surface is destroyed or was never created."); return; } Canvas canvas = null; try { canvas = mHolder.lockCanvas(); mUdfpsIc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "private void drawLight() {\n final int pointMVPMatrixHandle = GLES20.glGetU...
[ "0.5516414", "0.5372028", "0.53547645", "0.53069025", "0.52468926", "0.5233459", "0.52130705", "0.5170754", "0.5147314", "0.51389086", "0.5076036", "0.5069208", "0.50561035", "0.5054478", "0.50410014", "0.5036764", "0.50349873", "0.5028911", "0.5022074", "0.49968034", "0.4995...
0.6039536
0
Defines some reserved/commonly used property keys and values.
public interface ObjectPropConstants { /** * A property key for models used to store the last-modified time stamp. * <p> * Type: A time stamp, encoded using ISO 8601. (Can be parsed using {@code java.time.Instant}.) * </p> */ String MODEL_FILE_LAST_MODIFIED = "tcs:modelFileLastModified"; /** * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }", "private static HashMap<String, DefinedPrope...
[ "0.6389632", "0.6317179", "0.63068366", "0.57488346", "0.572303", "0.5495292", "0.5481834", "0.54471004", "0.54471004", "0.5417051", "0.539525", "0.5362478", "0.53585446", "0.53545725", "0.5343337", "0.5323998", "0.52697235", "0.52642524", "0.52636665", "0.52510035", "0.52445...
0.56101227
5
restorna uma lista de device
public List<Device> findAll() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<String> listDevices();", "List<DeviceDetails> getDevices();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n ge...
[ "0.8063264", "0.8008549", "0.78828", "0.7799075", "0.7670278", "0.7633977", "0.74125165", "0.7404809", "0.7311456", "0.7297188", "0.71639156", "0.7085612", "0.7062528", "0.70387125", "0.70180196", "0.6977368", "0.6918504", "0.68500304", "0.6835736", "0.6821133", "0.6818151", ...
0.71098256
11
retorna o device pelo seu identificador
public Device findById(Long id) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UUID getDeviceId();", "java.lang.String getDeviceId();", "Integer getDeviceId();", "DeviceId deviceId();", "DeviceId deviceId();", "public SmartHomeDevice getCustomDevice(String id);", "Device createDevice();", "public Device findDeviceById(int id);", "Reference getDevice();", "public org.thethin...
[ "0.7534319", "0.7505682", "0.7398574", "0.72641647", "0.72641647", "0.72422713", "0.7208559", "0.7154882", "0.71260226", "0.70974946", "0.70348954", "0.698764", "0.6975008", "0.69131666", "0.68793356", "0.68361324", "0.67809534", "0.6747019", "0.6702116", "0.6682845", "0.6678...
0.6754982
17
encapsula os valores ao objeto device
public Device createObject(String brand, String model, Integer price, String photo, String date);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bytetest() {\n byte[] myByteArray = new byte[256];\n for (int i = 0; i < 256; ++i) {\n myByteArray[i] = (byte)i;\n }\n\n Intent writeIntent = new Intent(BGXpressService.ACTION_WRITE_SERIAL_BIN_DATA);\n writeIntent.putExtra(\"value\", myByteArray);\n writeIn...
[ "0.5357072", "0.51985896", "0.500052", "0.49860907", "0.49250054", "0.4907492", "0.4906309", "0.49024907", "0.48277622", "0.4816381", "0.48029187", "0.47826672", "0.4744889", "0.47411874", "0.4696946", "0.46955156", "0.4684164", "0.46733555", "0.46722782", "0.46691605", "0.46...
0.0
-1
build event data to packet message
public byte[] buildPacket() throws BeCommunicationEncodeException { if (apMac == null) { throw new BeCommunicationEncodeException("ApMac is a necessary field!"); } try { byte[] requestData = prepareRequestData(); /** * AP identifier 's length = 6 + 1 + apSerialNum.length()<br> * qu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static EventData constructMessage(long sequenceNumber) {\n final HashMap<Symbol, Object> properties = new HashMap<>();\n properties.put(getSymbol(SEQUENCE_NUMBER_ANNOTATION_NAME.getValue()), sequenceNumber);\n properties.put(getSymbol(OFFSET_ANNOTATION_NAME.getValue()), String.valueOf(...
[ "0.6665407", "0.64209163", "0.60101724", "0.5808206", "0.5801052", "0.5675349", "0.56681156", "0.56405747", "0.5634862", "0.5618322", "0.5598885", "0.55898887", "0.55787045", "0.5566222", "0.55305266", "0.55242467", "0.55236", "0.550017", "0.5489554", "0.5421467", "0.5416724"...
0.5570305
13
parse packet message to event data
protected void parsePacket(byte[] data) throws BeCommunicationDecodeException { super.parsePacket(data); // it's infoData is empty }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "private DatagramPacket parsePacket(DatagramPacket packet) {\n byte[] dataPacket = packet.getData();\n /**\n * Code ported to use the new parseData(byte[]) function\n */\n byte[][] information = helper...
[ "0.6778854", "0.6678521", "0.6598472", "0.6436354", "0.6335237", "0.62761927", "0.6182273", "0.6136023", "0.61008567", "0.6073773", "0.59732825", "0.59210664", "0.59060365", "0.58740646", "0.58169395", "0.57959354", "0.5769547", "0.5718688", "0.5696078", "0.5694796", "0.56736...
0.6313616
5
create a new account (w=insert a new row into table STU) insert fields are SNAME and SPASSWD
public static boolean creatAccount(String username, String passwd) { if (dao.insertStu(username, passwd)) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void createOnlineAccount(String name, \n String ssn, String id, String psw)\n {\n final String url = \n \"jdbc:mysql://mis-sql.uhcl.edu/<username>?useSSL=false\";\n \n Connection connection = null;\n Statement statement = null;\n ...
[ "0.70070213", "0.6888132", "0.6770195", "0.6743807", "0.6623722", "0.66169375", "0.659982", "0.65971625", "0.6584105", "0.6581124", "0.65658927", "0.6524226", "0.65184104", "0.6493432", "0.6469633", "0.64631474", "0.6449772", "0.64170283", "0.63974077", "0.6363539", "0.636353...
0.67359513
4
query all books' info of library
public static <T> void queryAll() { String sql = "SELECT * FROM LIBRARY ORDER BY BID "; @SuppressWarnings("unchecked") Class<T> clazz = (Class<T>) Lib.class; System.out.println("All books info is displayed below: "); try { List<T> eleList = dao.queryData(sql, clazz); for (T ele : eleList) { System.o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Book> getAllBooks();", "public List<Books> showAllBooks(){\n String sql=\"select * from Book\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n List<Books> list=new ArrayList<>();\n list=resultSetToBook(baseDao);\n return list;\n }", "public Books getBooks(S...
[ "0.710329", "0.7020676", "0.6970145", "0.6951933", "0.69319594", "0.6898097", "0.68314546", "0.6793179", "0.6741324", "0.6731311", "0.6723871", "0.66693825", "0.6627111", "0.65992004", "0.6595916", "0.6578618", "0.6566819", "0.6463871", "0.6458978", "0.64383626", "0.6436464",...
0.7554795
0
Executa o speaker, de forma a que este esteja sempre a processar novos pedidos.
public void run() { try { int i = 0; while (running) { try { TimeUnit.MILLISECONDS.sleep(250); } catch (InterruptedException e) { e.printStackTrace(); } if (requests.size() > 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void speakOut() {\n\n tts.speak(\"Hello I am jessie\", TextToSpeech.QUEUE_FLUSH, null);\n tts.setLanguage(Locale.ENGLISH);\n //tts.setPitch(9);\n tts.setSpeechRate(1);\n }", "private void speakOut() {\n\n tts.speak(dialogue, TextToSpeech.QUEUE_FLUSH, null);\n }", ...
[ "0.61174846", "0.60070974", "0.5718397", "0.57063836", "0.57019037", "0.56821895", "0.5677125", "0.5648358", "0.5627371", "0.5587621", "0.5532533", "0.54803216", "0.5458968", "0.5428748", "0.5421336", "0.5420944", "0.5406372", "0.5393476", "0.53873485", "0.53766805", "0.53638...
0.0
-1
/ renamed from: com.ss.android.ugc.asve.recorder.reaction.a
public interface C20779a { /* renamed from: a */ C15430g mo56154a(); /* renamed from: a */ void mo56155a(float f); /* renamed from: a */ void mo56156a(int i, int i2); /* renamed from: b */ float mo56157b(); /* renamed from: b */ boolean mo56158b(int i, int i2); /* rename...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m6600Q() {\n this.f5397Q = new C1290d(this, (C1296Ua) null);\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.RECORDER_STATE\");\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.HAND...
[ "0.58831215", "0.58810973", "0.5859", "0.5856456", "0.58168805", "0.58104265", "0.57934123", "0.57848585", "0.577781", "0.57766515", "0.5750008", "0.5746232", "0.5731442", "0.57256514", "0.570399", "0.5672355", "0.56685054", "0.5635925", "0.5635925", "0.5635925", "0.5635925",...
0.0
-1
/ renamed from: a
C15430g mo56154a();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
void mo56155a(float f);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
void mo56156a(int i, int i2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
float mo56157b();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: b
boolean mo56158b(int i, int i2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: c
int[] mo56159c();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: d
int[] mo56160d();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor...
[ "0.638065", "0.6162135", "0.60721403", "0.59957254", "0.58775103", "0.5871899", "0.5825093", "0.57583314", "0.57016605", "0.56614745", "0.56515896", "0.56363046", "0.5624395", "0.56153005", "0.56115246", "0.56115246", "0.5605619", "0.5600186", "0.5589427", "0.5571477", "0.555...
0.0
-1
/ renamed from: e
void mo56161e();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void e() {\n\n\t}", "public void e() {\n }", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n public void e(String TAG, String msg) {\n }", "public String toString()\r\n {\r\n return e.toString();\r\n }", "@Override\n\t\t\t\...
[ "0.72328156", "0.66032064", "0.6412127", "0.6362734", "0.633999", "0.62543726", "0.6232265", "0.6159535", "0.61226326", "0.61226326", "0.60798717", "0.6049423", "0.60396963", "0.60011584", "0.5998842", "0.59709895", "0.59551716", "0.5937381", "0.58854383", "0.5870234", "0.586...
0.0
-1
/ renamed from: f
ReactionWindowInfo mo56162f();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void func_70305_f() {}", "public static Forca get_f(){\n\t\treturn f;\n\t}", "void mo84656a(float f);", "public final void mo8765a(float f) {\n }", "@Override\n public int f() {\n return 0;\n }", "public void f() {\n }", "void mo9704b(float f, float f2, int i);", "void mo56155...
[ "0.7323683", "0.65213245", "0.649907", "0.64541733", "0.6415534", "0.63602704", "0.6325114", "0.63194084", "0.630473", "0.62578535", "0.62211406", "0.6209556", "0.6173324", "0.61725706", "0.61682224", "0.6135272", "0.6130462", "0.6092916", "0.6089471", "0.6073019", "0.6069227...
0.0
-1
/ renamed from: g
void mo56163g();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void g() {\n }", "public void gored() {\n\t\t\n\t}", "public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void stg() {\n\n\t}", "public xm n()\r\n/* 274: ...
[ "0.678414", "0.67709124", "0.6522526", "0.64709187", "0.6450875", "0.62853396", "0.6246107", "0.6244691", "0.6212993", "0.61974055", "0.61380696", "0.6138033", "0.6105423", "0.60355175", "0.60195917", "0.59741", "0.596904", "0.59063077", "0.58127505", "0.58101356", "0.5788687...
0.6057178
13
Se recogen los valores de la entrega y se validan
public void entregarAsignacionClick(ActionEvent actionEvent) { String comentario; String ruta = lbl_urlEjemplo.getText(); // Si existe un comentario if (txt_comentario.getText() != null) { if (txt_comentario.getText().length() > 255) { mostrarDialogoDatoNoVal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void valid...
[ "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "0.7237909", "...
0.0
-1
Marker Creation for OTOP Places
public boolean createMarker(ArrayList<LocationsData>datas) { boolean isNotEmpty= true; if (isNotEmpty) { placesMarker= placesMap.addMarker(new MarkerOptions() .position(new LatLng(datas.get(0).locationLatitude,datas.get(0).locationLongitude)) .title(da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat....
[ "0.66206324", "0.640999", "0.64072514", "0.61771274", "0.6173315", "0.6163162", "0.61309475", "0.6074453", "0.5966061", "0.59122694", "0.59065837", "0.5889992", "0.58440894", "0.5815161", "0.58141494", "0.5811403", "0.57892436", "0.57525915", "0.5739219", "0.5712763", "0.5699...
0.58533096
12
Check if Google Play Services is Available
public boolean isGooglePlayAvailable() { GoogleApiAvailability api= GoogleApiAvailability.getInstance(); int isAvailable= api.isGooglePlayServicesAvailable(this); if (isAvailable == ConnectionResult.SUCCESS) { return true; }else if (api.isUserResolvableError(isAvailable)){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkGooglePlayServices() {\n\t\tint status = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(getApplicationContext());\n\t\tif (D) {\n\t\t\tif (status == ConnectionResult.SUCCESS) {\n\t\t\t\t// Success! Do what you want\n\t\t\t\tLog.i(TAG, \"Google Play Services all good\");\n\t\t\t} e...
[ "0.8478294", "0.8432101", "0.8425624", "0.84053487", "0.8346497", "0.8339842", "0.832472", "0.8321911", "0.8321911", "0.8319848", "0.82806826", "0.82593167", "0.81504595", "0.81444365", "0.8137284", "0.8136649", "0.8136491", "0.8127348", "0.80944705", "0.8080711", "0.8066168"...
0.8106171
18
Getting last known Location
private void getLastKnownLocation() { loc=LocationServices.FusedLocationApi.getLastLocation(client); if (loc != null) { Log.i("LOCATION: ",loc.toString()); myCurrentLocationMarker= gMap.addMarker(new MarkerOptions() .position(new LatLng(loc.getLatitude(),lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Location getLastKnownLocation(){\n \t \tLocation loc = LocationUtil.getBestLastKnowLocation(ctx);\t\n \t \tStatus.getCurrentStatus().setLocation(loc);\t\n \t \treturn loc;\n \t}", "@SuppressLint(\"MissingPermission\")//Assumes that is checked before calling\n private Location getLastLocation ...
[ "0.8755016", "0.83392113", "0.82366943", "0.8056533", "0.79321563", "0.7913264", "0.7795655", "0.7768245", "0.773269", "0.76724017", "0.7652249", "0.76392454", "0.7621704", "0.7621704", "0.7621704", "0.7621704", "0.7584933", "0.75614756", "0.75516367", "0.7517914", "0.7473237...
0.0
-1
public static final String COL_8 = "LOCATION"; public static final String COL_8 = "DATEORDER";
public DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String [] getColumnName(){\r\n\t\tString [] columnNames = { DBSAResourceBundle.res.getString(\"no\"), DBSAResourceBundle.res.getString(\"title\"), \r\n\t\t\t\tDBSAResourceBundle.res.getString(\"authors\"), DBSAResourceBundle.res.getString(\"link\"),\r\n\t\t\t\tDBSAResourceBundle.res.getString(\"yea...
[ "0.5553979", "0.54839283", "0.544515", "0.5442534", "0.54409695", "0.5417618", "0.5389076", "0.53787166", "0.533437", "0.53323394", "0.53298783", "0.53162223", "0.5313954", "0.53033984", "0.52903324", "0.5287484", "0.52810025", "0.52790016", "0.5276485", "0.5273599", "0.52659...
0.0
-1
The type of request.
@Property public native MintRequestType getRequestType ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Type getType() {\n return Type.TypeRequest;\n }", "public String getRequestType() { return this.requestType; }", "public java.lang.String getRequestType() {\n return requestType;\n }", "public static String getRequestType(){\n return requestType;\n }", "public RequestT...
[ "0.82906795", "0.8287273", "0.8237101", "0.82215357", "0.8198818", "0.7929265", "0.76403135", "0.76335657", "0.75475127", "0.7532968", "0.72635955", "0.7120674", "0.7054836", "0.6882395", "0.6874538", "0.6861874", "0.6861783", "0.6837447", "0.6829708", "0.6723663", "0.6714659...
0.0
-1
A description with information about the request, such as a value when something has gone wrong or a notification.
@Property public native String getDescriptionResult ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}", "@ApiModelProperty(value = \"Purpose for which the to...
[ "0.6941665", "0.671574", "0.65196013", "0.64583015", "0.64504683", "0.6423692", "0.6419628", "0.64152294", "0.6361921", "0.6361921", "0.6361921", "0.6361921", "0.6361921", "0.6361921", "0.6361921", "0.6361921", "0.6361921", "0.63530755", "0.63371694", "0.6314944", "0.62995934...
0.0
-1
The result of the request.
@Property public native MintResultState getResultState ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Result getResult() {\n return result;\n }", "public Result getResult() {\n return result;\n }", "public Result getResult() {\n\t\treturn this._result;\n\t}", "public String getResult()\n {\n return result;\n }", "public String getResult()\r\n\t{\r\n\t\treturn result;\r...
[ "0.7513029", "0.7485772", "0.7408724", "0.7289098", "0.72864383", "0.72377527", "0.72377527", "0.72377527", "0.71571696", "0.7082356", "0.7042552", "0.704241", "0.7034276", "0.70337266", "0.70337266", "0.70329666", "0.70329666", "0.70126873", "0.7006192", "0.7006192", "0.7006...
0.0
-1
A NSException instance that provides you with information when a request fails.
@Property public native MintMessageException getExceptionError ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "String getException();", "String getException();", "public ApiException exception() {\n return this.exception;\n }", "public HTTPErrorException(String message) {\n super(message);\n }", "public void on...
[ "0.63935894", "0.638207", "0.638207", "0.62947357", "0.6280379", "0.6238441", "0.61822253", "0.6160771", "0.6116528", "0.6113145", "0.60923827", "0.6068401", "0.5976564", "0.5929669", "0.5921761", "0.590495", "0.5857317", "0.58497345", "0.5785355", "0.57752585", "0.57551515",...
0.0
-1
The JSON model that is sent to the server.
@Property public native String getClientRequest ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONModel() {\n jo = new JSONObject();\n }", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;...
[ "0.6870988", "0.68448484", "0.6802467", "0.6801764", "0.6799145", "0.6652248", "0.6646102", "0.66049373", "0.65837324", "0.65560615", "0.65418", "0.6481804", "0.6476792", "0.64616907", "0.64616907", "0.64616907", "0.64616907", "0.64616907", "0.64616907", "0.64616907", "0.6461...
0.0
-1
A Boolean that indicates whether the request was properly handled while debugging.
@Property public native boolean isHandledWhileDebugging ();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isDebugging() {\n\t\treturn debugging;\n\t}", "public boolean isDebugged() {\r\n\t\treturn debugged;\r\n\t}", "public boolean isDebug();", "protected boolean isContinueDebug() {\n\t\treturn continueDebug;\n\t}", "boolean isDebug();", "boolean isDebug();", "private final boolean isDebu...
[ "0.6681812", "0.6339038", "0.63340294", "0.6299877", "0.6294159", "0.6294159", "0.6187587", "0.612619", "0.6109798", "0.610891", "0.610891", "0.60934335", "0.6087054", "0.60809976", "0.6051968", "0.6014817", "0.60095495", "0.59875494", "0.59614056", "0.5907999", "0.5900823", ...
0.6327733
3
Creates a calculator instance and gives it height and width.
public Calculator(int width, int height) { buttons = new JButton[BUTTON_CAPTIONS.length]; operand = new StringBuilder("0"); initUI(width, height); firstOperand = true; expression = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CalcWindow (){\n\t\tsuper();\n\t\tsetProperties(\"Calculator\");\n\t}", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public Calculator()\n {\n \n frame = new JFrame();\n createCalculator(range);\n createCP(range);\n frame.setVisible(true);\n frame.setSize...
[ "0.6509424", "0.64905286", "0.64715326", "0.64209104", "0.6372601", "0.6234798", "0.6099005", "0.5995316", "0.5988807", "0.5953806", "0.59002036", "0.58954287", "0.58805734", "0.58446264", "0.58161896", "0.5750402", "0.5744614", "0.57425165", "0.56708044", "0.5567227", "0.550...
0.677877
0
Executes the previous command with the second operand.
private void executeCommand() { expression += operand; double execute = command.execute(expression); operand = new StringBuilder(Double.toString(execute)); firstOperand = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Operand execute(Operand first, Operand second);", "@Override\r\n\tpublic String pipeTwoCommands(String... args) {\r\n\t\treturn pipeCaller(args);\r\n\t}", "@Override\n\tpublic int execute(Short operand1,Short operand2) {\n\t\tint result[] = MainFunctionUnit.getInstance().getAdder().sub(operand1...
[ "0.6540275", "0.6030355", "0.576471", "0.56055886", "0.55942124", "0.5585368", "0.55616146", "0.5515863", "0.5422545", "0.5413353", "0.53987765", "0.5398763", "0.5325807", "0.5297202", "0.5280968", "0.5242259", "0.5218986", "0.52038676", "0.51659423", "0.5159908", "0.5134069"...
0.65105695
1
Testing closing popups and entering the login section.
@Test(priority = 1) public void testHomePage() { driver.navigate().to(HomePage.URL); driver.manage().window().maximize(); WebDriverWait wait = new WebDriverWait(driver, 10); HomePage.clickAnnouncementButton(driver); HomePage.clickCookiesButton(driver); HomePage.clickLogin(driver); String cu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void SignIn()\n\t{\n\t\tdriver.get(baseUrl);\n\t\tHomePage hp =new HomePage(driver);\n\t\thp.SignIn();\n\t\tString handle=driver.getWindowHandle();\n\t\tdriver.switchTo().window(handle);\n\t\t\n\t\t//2.\tLogin -Enter non-valid credentials. Expected error message is displayed\n\t\tLoginPage lp =new ...
[ "0.72230375", "0.7112271", "0.70620877", "0.69724125", "0.69419396", "0.6893561", "0.6851822", "0.6851336", "0.6833712", "0.6819844", "0.67564505", "0.6748831", "0.6744797", "0.67282724", "0.6686349", "0.6679138", "0.6674383", "0.6665335", "0.66569155", "0.6626363", "0.662176...
0.0
-1
Testing a login with positive credentials.
@Test(priority = 2) public void testLoginPage() { driver.navigate().to(Login.URL); driver.manage().window().maximize(); Login.typeEmail(driver, "email@mail.com"); Login.typePassword(driver, "lozinka"); WebDriverWait wait = new WebDriverWait(driver, 10); Login.clickLoginButton(driver); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void loginWithValidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_VALID.username, Credentials.USER_VALID.password);\n\t\tassertTrue(app.userDashboardScreen().isActive());\n\t}", "@Test\n\tpublic void loginWithInvalidCredentials(){\n\t\tapp.l...
[ "0.803783", "0.7791486", "0.76771605", "0.7648931", "0.7483539", "0.7476496", "0.738243", "0.73785424", "0.7357879", "0.7295239", "0.72346556", "0.72188205", "0.7191751", "0.7162095", "0.7100003", "0.7098514", "0.70884323", "0.70720357", "0.70577335", "0.704688", "0.70263195"...
0.65568876
83
get the source object that called the AL
public void actionPerformed(ActionEvent ae){ Object source = ae.getSource(); if(source instanceof JButton){ // cast source back to a button button = (JButton)source; // get location/name of button (it's a string) String s = ae.getActionCommand(); //************************************************...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object getSource();", "public Object getSource() {return source;}", "@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();", "public Object getSource() {\n\t\treturn source;\n\t}", "public Object getSource() {\n\t\treturn source;\n\t}", "public Object getSource() {\...
[ "0.741235", "0.7314419", "0.70868796", "0.70347124", "0.70347124", "0.7020149", "0.68821985", "0.67733777", "0.67733777", "0.67485297", "0.6728561", "0.6643741", "0.6643741", "0.66413796", "0.6633937", "0.6630607", "0.6602009", "0.65922517", "0.6575249", "0.6526363", "0.65088...
0.0
-1
Displays the right arm. Returns false if the arm cannot be fully displayed.
public boolean displayRightArm() { final List<Block> newBlocks = new ArrayList<>(); if (this.rightArmConsumed) { return false; } final Location r1 = GeneralMethods.getRightSide(this.player.getLocation(), 1).add(0, 1.5, 0); if (!this.canPlaceBlock(r1.getBlock())) { this.right.clear(); return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean displayLeftArm() {\r\n\t\tfinal List<Block> newBlocks = new ArrayList<>();\r\n\t\tif (this.leftArmConsumed) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfinal Location l1 = GeneralMethods.getLeftSide(this.player.getLocation(), 1).add(0, 1.5, 0);\r\n\t\tif (!this.canPlaceBlock(l1.getBlock())) {\r\n\t...
[ "0.647503", "0.6274703", "0.62187403", "0.60557926", "0.59574217", "0.57867134", "0.57850814", "0.5731796", "0.5708237", "0.5702946", "0.56839406", "0.56706417", "0.5611498", "0.5571525", "0.5544658", "0.54618424", "0.5452319", "0.5452319", "0.5429952", "0.5427877", "0.540473...
0.7598404
0
Displays the left arm. Returns false if the arm cannot be fully displayed.
public boolean displayLeftArm() { final List<Block> newBlocks = new ArrayList<>(); if (this.leftArmConsumed) { return false; } final Location l1 = GeneralMethods.getLeftSide(this.player.getLocation(), 1).add(0, 1.5, 0); if (!this.canPlaceBlock(l1.getBlock())) { this.left.clear(); return fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean displayRightArm() {\r\n\t\tfinal List<Block> newBlocks = new ArrayList<>();\r\n\t\tif (this.rightArmConsumed) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfinal Location r1 = GeneralMethods.getRightSide(this.player.getLocation(), 1).add(0, 1.5, 0);\r\n\t\tif (!this.canPlaceBlock(r1.getBlock())) {\r\...
[ "0.67803586", "0.66702837", "0.6356", "0.63509995", "0.63266206", "0.63151157", "0.6199976", "0.609593", "0.60222626", "0.60163563", "0.6006137", "0.59687954", "0.5961422", "0.59582233", "0.59193367", "0.59128124", "0.5884747", "0.58733666", "0.5847533", "0.5825701", "0.58251...
0.7803061
0
Calculate roughly where the player's right hand is.
private Location getRightHandPos() { return GeneralMethods.getRightSide(this.player.getLocation(), .34).add(0, 1.5, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Location getLeftHandPos() {\r\n\t\treturn GeneralMethods.getLeftSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}", "public void strafeRight()\r\n\t{\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] += Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis....
[ "0.70143235", "0.6755049", "0.67532635", "0.6747098", "0.6613235", "0.6593647", "0.6536043", "0.65134346", "0.6506528", "0.6393655", "0.6373956", "0.6364971", "0.6333938", "0.63172114", "0.6288866", "0.62852997", "0.6281824", "0.6266806", "0.623248", "0.6200686", "0.62004846"...
0.82539195
0
Calculate roughly where the player's left hand is.
private Location getLeftHandPos() { return GeneralMethods.getLeftSide(this.player.getLocation(), .34).add(0, 1.5, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getLeftArmEnd() {\r\n\t\tfinal Location l1 = GeneralMethods.getLeftSide(this.player.getLocation(), 2).add(0, 1.5, 0);\r\n\t\treturn l1.clone().add(this.player.getLocation().getDirection().normalize().multiply(this.initLength));\r\n\t}", "private Location getRightHandPos() {\r\n\t\treturn GeneralM...
[ "0.6889382", "0.6850089", "0.6840706", "0.6831532", "0.6819157", "0.67696935", "0.6753151", "0.6731121", "0.671214", "0.66974276", "0.66574556", "0.66533107", "0.6620413", "0.6596492", "0.6584644", "0.6583315", "0.657645", "0.6566676", "0.6553356", "0.65316075", "0.6523941", ...
0.8273378
0
Returns the location of the tip of the right arm, assuming it is fully extended. Use the displayRightArm() check to see if it is fully extended.
public Location getRightArmEnd() { final Location r1 = GeneralMethods.getRightSide(this.player.getLocation(), 2).add(0, 1.5, 0); return r1.clone().add(this.player.getLocation().getDirection().normalize().multiply(this.initLength)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Location getRightHandPos() {\r\n\t\treturn GeneralMethods.getRightSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}", "public Location getLeftArmEnd() {\r\n\t\tfinal Location l1 = GeneralMethods.getLeftSide(this.player.getLocation(), 2).add(0, 1.5, 0);\r\n\t\treturn l1.clone().add(this.player.g...
[ "0.6960958", "0.6615943", "0.6452474", "0.63081473", "0.62537235", "0.6235926", "0.6200072", "0.6157059", "0.6111943", "0.6091565", "0.60545623", "0.6047859", "0.60348123", "0.602556", "0.5970497", "0.59076416", "0.5907179", "0.58950424", "0.5882902", "0.5865629", "0.584867",...
0.71322626
0
Returns the location of the tip of the left arm assuming it is fully extended. Use the displayLeftArm() check to see if it is fully extended.
public Location getLeftArmEnd() { final Location l1 = GeneralMethods.getLeftSide(this.player.getLocation(), 2).add(0, 1.5, 0); return l1.clone().add(this.player.getLocation().getDirection().normalize().multiply(this.initLength)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Location getLeftHandPos() {\r\n\t\treturn GeneralMethods.getLeftSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}", "@Override\r\n\tpublic void BuildArmLeft() {\n\t\tg.drawLine(60, 50, 40, 100);\r\n\t}", "@Override\n\tpublic void buildArmLeft() {\n\t\tg.drawLine(60, 50, 30, 80);\n\t}", "pri...
[ "0.66094446", "0.63219625", "0.6301687", "0.625296", "0.6090066", "0.6027619", "0.6017757", "0.601579", "0.5990905", "0.5988568", "0.59254676", "0.5913918", "0.5862233", "0.58189017", "0.5818196", "0.5800241", "0.5770938", "0.5757658", "0.57510316", "0.57154673", "0.57126147"...
0.71581954
0
Switches the active arm of a player.
public void switchActiveArm() { if (this.activeArm.equals(Arm.RIGHT)) { this.activeArm = Arm.LEFT; } else { this.activeArm = Arm.RIGHT; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }", "public void changeActivePlayer() {\n\t\tif(this.getActivePlayer().equals(this.getPlayer1())) {\n\t\t\tthis.setActivePlayer(this.getPlayer2());\n\t\t} else {\n\t\t\tthis.setActivePlayer(this.getPlayer1());\n\t\t}\n\t}", "publi...
[ "0.6512988", "0.6317291", "0.6307103", "0.6120996", "0.611928", "0.6088446", "0.60702765", "0.59555143", "0.5946247", "0.59373266", "0.5924953", "0.5859844", "0.5801573", "0.5785851", "0.57549095", "0.57451403", "0.5706767", "0.56890935", "0.5687892", "0.5679889", "0.56716686...
0.785271
0
Bullets on top of node > store Other bullets > tick stored bullets > process and output all bullets > check
public void tick() { boolean shouldHaltAfterTick = false; List<Pair<Movement, Bullet>> movements = new ArrayList<>(); //Bullets on nodes Map<Coordinate, Bullet> capturedBullets = new HashMap<>(bullets); capturedBullets.keySet().retainAll(nodes.keySet()); //Bullets not ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbull...
[ "0.65874326", "0.65457517", "0.6380639", "0.6374498", "0.625299", "0.61710215", "0.6159539", "0.6115099", "0.6067967", "0.6025079", "0.60250705", "0.59853226", "0.5980545", "0.59721756", "0.59252286", "0.59207183", "0.5914744", "0.5890263", "0.5812775", "0.5812497", "0.577544...
0.6910653
0
Due to refactoring not applicable anymore
private List<AnchorCandidate> mockCandidates(List<Integer[]> features, int[] nCandidates, int[] positives) { List<AnchorCandidate> result = new ArrayList<>(); for (int i = 0; i < features.size(); i++) { AnchorCandidate candidate = createFakeParentCandidate(Arrays.asList(features.get(i))); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private stendhal() {\n\t}", "public final void ...
[ "0.5576494", "0.55481756", "0.5535632", "0.5525427", "0.5306923", "0.53051114", "0.5288325", "0.5251133", "0.5241982", "0.5222601", "0.5207427", "0.51999253", "0.5181556", "0.5178402", "0.515193", "0.51398003", "0.5133834", "0.51295257", "0.51228774", "0.51101035", "0.5110103...
0.0
-1
Creates the font with the given name, height and style.
public OneFont(String fontName, int fontHeight, int fontStyle) { name = fontName; height = fontHeight; style = fontStyle; font = new Font(Display.getDefault(), fontName, fontHeight, fontStyle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FONT createFONT();", "public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }", "Font createFont();", "public Font(String name, int style, int size) {\n\tthis.name = (name != null) ? name : \"Default\";\n\tthis.style = (style & ~0x03) == 0 ? style...
[ "0.740342", "0.7385881", "0.73176926", "0.7220621", "0.6970013", "0.6780265", "0.66755384", "0.6589563", "0.64723766", "0.64183956", "0.6416811", "0.6389118", "0.63708544", "0.6316346", "0.6234248", "0.619767", "0.6191338", "0.61482334", "0.60981214", "0.60753566", "0.601849"...
0.7000681
4
Creates the font from the given font data.
public OneFont(FontData fd) { name = fd.getName(); height = fd.getHeight(); style = fd.getStyle(); font = new Font(Display.getDefault(), fd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Font createFont();", "public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }", "public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getW...
[ "0.7300166", "0.6722493", "0.67008394", "0.66985345", "0.6578891", "0.65697265", "0.65566504", "0.6172429", "0.6159333", "0.6129549", "0.6125119", "0.60928786", "0.60830504", "0.6046362", "0.603391", "0.5948719", "0.5946448", "0.58777535", "0.58539516", "0.5840018", "0.583595...
0.6069413
13
Returns the name of the font.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return fontName;\n }", "public String fontName() {\n\t\treturn fontName;\n\t}", "public String getFontName() {\n Object value = library.getObject(entries, FONT_NAME);\n if (value instanceof Name) {\n return ((Name) value).getName();\n }\n ...
[ "0.885907", "0.86370295", "0.8445566", "0.8410254", "0.80025977", "0.78769946", "0.78769946", "0.78769946", "0.7807253", "0.77769965", "0.77508056", "0.7616797", "0.75873524", "0.75269645", "0.7511171", "0.7498516", "0.74783146", "0.7425876", "0.74186325", "0.7340844", "0.729...
0.0
-1
Returns the height of the font.
public int getHeight() { return height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public short getFontHeight()\n {\n return font.getFontHeight();\n }", "public int getHeight() {\r\n if ( fontMetrics != null ) {\r\n return fontMetrics.getHeight() + 6;\r\n } else {\r\n return 6;\r\n }\r\n }", "public short getFontHeight() {\n\t\tretur...
[ "0.86764705", "0.8495136", "0.8467608", "0.84539247", "0.79353064", "0.7745774", "0.7730932", "0.76584977", "0.7591307", "0.7218553", "0.72081065", "0.7174114", "0.7171453", "0.71463525", "0.7127046", "0.7080771", "0.7080771", "0.7053057", "0.70220083", "0.7016891", "0.697967...
0.69449466
36
Returns the style of the font.
public int getStyle() { return style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FontStyle getStyle();", "public TextStyle getStyle(\n )\n {return style;}", "public RMFont getFont()\n {\n return getStyle().getFont();\n }", "public Font getFont(\n )\n {return font;}", "public String getFont()\n {\n return (String) getStateHelper().eval(Prope...
[ "0.8845548", "0.81193376", "0.7851733", "0.7641898", "0.74857503", "0.7472506", "0.7401391", "0.73961765", "0.7377573", "0.7317331", "0.7283647", "0.71935505", "0.7181874", "0.71771866", "0.71771866", "0.71771866", "0.71771866", "0.71731836", "0.7170006", "0.71556085", "0.714...
0.6897804
34
Sets the new font.
public void setFont(Font newFont) { font = newFont; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFont(Font newFont) {\n\tfont = newFont;\n }", "private void setFont() {\n\t}", "private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputStream(FONT_PATH), 23));\n } catch (FileNotFoundException e) {\n setFont(Font.font(\"Verdana\", 23));\n ...
[ "0.8532785", "0.8524866", "0.8244018", "0.82399887", "0.82342726", "0.8221185", "0.8170964", "0.8159825", "0.8116784", "0.8090571", "0.80816936", "0.8053811", "0.80442774", "0.8018192", "0.7992164", "0.78335136", "0.7821905", "0.7804512", "0.78027904", "0.7762853", "0.7750205...
0.85477227
0
Indicates if the current font matches the given font data.
public boolean matches(FontData fd) { return fd.getName().equals(name) && fd.getHeight() == height && fd.getStyle() == style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static native boolean areFontsTheSame(int font1, int font2);", "public boolean equals(Object obj) {\n if (obj == this) {\n\t return true;\n }\n\n\tif (obj != null) {\n\t try {\n\t Font font = (Font)obj;\n\t if ((size == font.size) &&\n\t\t(pointSize == font.pointSize) &&\n\t\t(style == fo...
[ "0.6259226", "0.6005657", "0.5725034", "0.5705788", "0.5602689", "0.55705136", "0.55701065", "0.5495111", "0.5457409", "0.5427953", "0.5406597", "0.5380848", "0.53097564", "0.5279417", "0.52104485", "0.5178527", "0.5178185", "0.51675713", "0.5113612", "0.50232375", "0.4974536...
0.6875445
0
String launchType = DataProvider.getLaunchType(); String browser = DataProvider.getBrowser(); String locale = DataProvider.getLocale(); String remoteURL = DataProvider.getRemoteURL();
public static WebDriver beforeTest(String launchType,String browser,String locale,String remoteURL) throws IOException{ try{ SetDriver sd=new SetDriver(); wd=sd.setDriver(launchType, browser, locale, remoteURL); }catch(Exception e){ throw new RuntimeException("The The Driver setup Fail...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getBrowser();", "protected int getLaunchType() {\n return ILaunchConstants.LAUNCH_TYPE_WEB_CLIENT;\n }", "public String getBrowser() {\n String browser = null;\n\n try\n {\n browser = System.getProperty(\"browser\");\n if(browser !=null)\n r...
[ "0.6496504", "0.6273255", "0.598239", "0.5974808", "0.5780147", "0.57693386", "0.5763954", "0.5747203", "0.5721383", "0.5667112", "0.566088", "0.562647", "0.5587604", "0.55395424", "0.5535391", "0.55065364", "0.54838514", "0.54838514", "0.54520476", "0.5442406", "0.54021233",...
0.0
-1
Draws textures on gui
public OptimiserGui(InventoryPlayer player, OptimiserTileEntity tileEntity) { super(new OptimiserContainer(player, tileEntity)); this.player = player; this.tileEntity = tileEntity; this.xSize = XSIZE; this.ySize = YSIZE; this.optimiserHandler = new GuiOptimiserHandler(tileEntity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\r\n\r\n//\t\tif (textures.length > 1) {\r\n//\t\t\tfor (int i = 1; i < textures.length; i++) {\r\n\t\tif (textures.length > 1) {\r\n\t\t\tDrawQuadWithTexture(textures[0], x, y, width, height);\r\n\t\t\tDrawQuadWithRotatedTexture(textures[1], x, y, width, height, angle);\r\n\t\t} else {\r\n\t\t...
[ "0.7371593", "0.7182336", "0.69926864", "0.68884444", "0.68071264", "0.6766632", "0.6757245", "0.66342056", "0.65027916", "0.6470329", "0.64278746", "0.64025897", "0.6397245", "0.6348024", "0.6304453", "0.629396", "0.6261718", "0.62561363", "0.62510914", "0.6218809", "0.62093...
0.0
-1
use this method to access to database
public static synchronized DatabaseUserHelper getInstance(Context context) { if (sInstance == null) { mContext = context.getApplicationContext(); sInstance = new DatabaseUserHelper(mContext); } return sInstance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectDatabase(){\n }", "private void getDatabase(){\n\n }", "private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateDataBase();\n\t \t \t\n\t \t\n\t \t} catch (IOException ioe) {\n\t \n\t \t\tthrow new Error(\"Unable to create database\");\...
[ "0.7537335", "0.7372528", "0.73027456", "0.72373176", "0.6994434", "0.6854638", "0.6820698", "0.6793964", "0.67596453", "0.67401266", "0.67294997", "0.6691717", "0.6670594", "0.6599488", "0.65877944", "0.657187", "0.6568222", "0.65593565", "0.6534975", "0.65193117", "0.646303...
0.0
-1
Called when the database is created for the FIRST time. If a database already exists on disk with the same DATABASE_NAME, this method will NOT be called.
@Override public void onCreate(SQLiteDatabase db) { db.execSQL(KEY_CREATE_USER_TABLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\n execute(DBStrin...
[ "0.73322296", "0.73086715", "0.7205008", "0.7053697", "0.7039152", "0.6921914", "0.68765765", "0.6818082", "0.6754678", "0.6742818", "0.6720616", "0.6713481", "0.6713481", "0.6707026", "0.6706885", "0.6692763", "0.6659863", "0.6622707", "0.6622707", "0.66212875", "0.65816516"...
0.0
-1
because email id unique, so we user email to get userAccount
@Nullable public User getUserFromDatabase(String email) { User userAccount = null; try { SQLiteDatabase db = getReadableDatabase(); Cursor userAccountCursor = db.query( TABLE_USERS, new String[]{KEY_USER_NAME, KEY_USER_EMAIL, KEY_USER_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User getUser(String emailId);", "private static void lookupAccount(String email) {\n\t\t\n\t}", "UserAccount getUserAccountById(long id);", "@Override\r\n\tpublic AccountDTO getAccount(String email) {\n\t\treturn accountDao.getAccount(email);\r\n\t}", "User getUserByEmail(String email);", "User ge...
[ "0.7508362", "0.7369822", "0.73009086", "0.7299779", "0.7289626", "0.72521365", "0.7248117", "0.71683335", "0.7158507", "0.71565616", "0.71565616", "0.70796746", "0.70465213", "0.7039671", "0.7036865", "0.70039", "0.6915365", "0.690701", "0.6897481", "0.6879514", "0.6878097",...
0.6592165
43
update column hasPost table User
public void updateSQL(String email) { try { ContentValues drinkValues = new ContentValues(); drinkValues.put(KEY_USER_HAS_POST_TABLE, 1); SQLiteDatabase db = DatabaseUserHelper.getInstance(mContext).getWritableDatabase(); db.update(TABLE_USERS, drinkValues,KEY_USE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BlogPost updateLikes(BlogPost blogPost, User user);", "@Override\n\tpublic Post updatePost(Post post) {\n\t\treturn null;\n\t}", "@PutMapping(\"/\")\n private ResponseEntity<Post> updatePost(@RequestBody Post post) {\n User user = getCurrentUser();\n Post oldPost = postService.findById(post.ge...
[ "0.6255247", "0.59029394", "0.5885915", "0.5837337", "0.57846516", "0.57155204", "0.5584478", "0.5551046", "0.54745084", "0.5467874", "0.54477376", "0.54088336", "0.54083145", "0.5387505", "0.5382502", "0.53782034", "0.5367814", "0.5325564", "0.53077346", "0.5298328", "0.5289...
0.5602936
6
get table Post including image and title text,
public void queryPostTable(Context activityContext, String postTableName) { new GetCursorTablePost(activityContext).execute(postTableName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Post> viewAllPosts()\n\n {\n postList = new ArrayList<Post>();\n\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n String query = \"SELECT * FROM Post WHERE 1\";\n Cursor c = database.rawQuery(query, null);...
[ "0.5784596", "0.5781416", "0.5672388", "0.5599269", "0.55123734", "0.5495105", "0.54564536", "0.5401979", "0.5356328", "0.5345933", "0.53019387", "0.525794", "0.52047634", "0.5175265", "0.51378095", "0.5113471", "0.5094166", "0.5076752", "0.5058223", "0.5027025", "0.5015868",...
0.0
-1
help to interact with database
public interface OnDatabaseInteractionListener { void onResultPostTable(Cursor result); // this method'll return cursor after query post table. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectDatabase(){\n }", "DBConnect() {\n \n }", "private void getDatabase(){\n\n }", "private void executeQuery() {\n }", "public static void main(String[] args) {\n Connection conection = createConnection(\"people.db\");\n \n try {\n conection....
[ "0.7134462", "0.68657696", "0.6749289", "0.66722435", "0.6665168", "0.6628067", "0.66153175", "0.65880084", "0.6525719", "0.6503133", "0.6499185", "0.6495731", "0.64724076", "0.6405501", "0.6397608", "0.6375318", "0.6365501", "0.63548046", "0.63548046", "0.6328159", "0.631514...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
String plainText = "Hello, World! This is a Java/Javascript AES test.";
public static String encryptAngular(String plainText) throws Exception { String key = "u/Gu5posvwDsXUnV5Zaq4g=="; String iv = "5D9r9ZVzEYYgha93/aUK2w=="; SecretKey secretKey = new SecretKeySpec( Base64.getDecoder().decode(key.getBytes(StandardCharsets.UTF_8)), "AES"); AlgorithmPar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String encrypt(String plainText);", "public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes...
[ "0.7670004", "0.7355369", "0.70142275", "0.6917722", "0.6900583", "0.68650895", "0.6851284", "0.68244207", "0.67455256", "0.67286086", "0.66739345", "0.6543891", "0.64938086", "0.6429624", "0.6412331", "0.63965774", "0.6386", "0.63684195", "0.6357354", "0.63341975", "0.624694...
0.68309844
7
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.about, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Creates a new instance of this FieldWriter and configures is such that writing a value required minimal branching or secondary operations (metadata lookups, etc..)
public VarCharFieldWriter(VarCharExtractor extractor, VarCharVector vector, ConstraintProjector rawConstraint) { this.extractor = extractor; this.vector = vector; if (rawConstraint != null) { constraint = (NullableVarCharHolder value) -> rawConstraint.apply(value.isSet == 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Builder(Value other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.kd_kelas)) {\n this.kd_kelas = data().deepCopy(fields()[0].schema(), other.kd_kelas);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.hari_ke)) {\n this.hari_...
[ "0.52410305", "0.5236991", "0.5226648", "0.5200363", "0.5112656", "0.5088467", "0.50880253", "0.5071627", "0.5070829", "0.50624955", "0.5041685", "0.50315714", "0.5027648", "0.500351", "0.5003073", "0.49827525", "0.498171", "0.49771905", "0.49583456", "0.49363968", "0.4934202...
0.0
-1
Attempts to write a value to the Apache Arrow vector provided at construction time.
@Override public boolean write(Object context, int rowNum) throws Exception { extractor.extract(context, holder); if (holder.isSet > 0) { vector.setSafe(rowNum, holder.value.getBytes(Charsets.UTF_8)); } else { vector.setNull(rowNum); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setValue(V value);", "public V setValue(V value);", "@Test\n public void testSetValue() {\n System.out.println(\"setValue\");\n int index = 0;\n double value = 0.0;\n Vector instance = null;\n instance.setValue(index, value);\n // TODO review the generated test...
[ "0.5838165", "0.5795751", "0.57853746", "0.5748476", "0.550522", "0.54596657", "0.53812", "0.5357512", "0.5283926", "0.5246149", "0.5219979", "0.5211607", "0.5156348", "0.5141112", "0.5129749", "0.51264024", "0.5118343", "0.5091987", "0.50896955", "0.50770515", "0.50707304", ...
0.59033847
0
/constructor to print out the name of the car. The constructor is passed the parameter by the child class when wecreate theobject for the child class
public AbstractCar(String car){ System.out.println("\n\n The following are the details for : " + car); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Car(String carname) {\n this.carname = carname;\n }", "public Car(){\n\t\t\n\t}", "public Car(String description)\r\n {\r\n this.description = description;\r\n customersName = \"\";\r\n }", "@Override\n public String toString() {\n return \"Car{\" +\n ...
[ "0.7821964", "0.6951411", "0.6950791", "0.6934634", "0.6672524", "0.6668221", "0.6610074", "0.65606123", "0.65470564", "0.64714104", "0.6468745", "0.6465944", "0.6456808", "0.6441096", "0.6396577", "0.63674754", "0.6367119", "0.63661367", "0.6363124", "0.63626206", "0.6362088...
0.7893008
0
public abstract void fuelEconomy() ; public abstract void blindSpotMonitoring(); public abstract void emergencyAutoBrakes();
public abstract void maintenanceSchedule() ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void afvuren();", "public abstract void mo35054b();", "public abstract void mo2150a();", "public abstract void mo20900UP();", "public abstract void ratCrewGo();", "public abstract void mo70713b();", "public abstract void mo4359a();", "public abstract void mo30696a();", "public abstr...
[ "0.70893407", "0.7011902", "0.69834447", "0.69723237", "0.6874643", "0.68474823", "0.67956465", "0.67719406", "0.67676836", "0.6753972", "0.67363465", "0.6718253", "0.6685603", "0.6662422", "0.664397", "0.6620943", "0.6610561", "0.6596512", "0.6591083", "0.65827274", "0.65731...
0.6380474
34
Iterates over a set of elements and creates a List that contains all of them. The order of the elements in the List will be the order returned by iterator parameter.
public static <T> List<T> toList(Iterator<T> iterator) { List<T> newList = new ArrayList(); addToCollection(newList, iterator); return newList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> List<T> toList(Iterator<T> elements) {\n List<T> list = new LinkedList<T>();\n\n while (elements.hasNext()) {\n list.add(elements.next());\n }\n\n return list;\n }", "public static <T> List<T> toList(Iterable<T> elements) {\n return toList(elemen...
[ "0.7042098", "0.6651097", "0.6578251", "0.63272417", "0.59010005", "0.5894531", "0.5881426", "0.58546656", "0.58474916", "0.58311844", "0.5821164", "0.5726083", "0.5724373", "0.5715643", "0.5699562", "0.5699065", "0.56794566", "0.5674313", "0.5626201", "0.5587761", "0.5587051...
0.61030734
4
Adds the contents of an iterator to an existing Collection.
public static <T> void addToCollection(Collection<T> collection, Iterator<T> elementsToAdd) { while (elementsToAdd.hasNext()) { T next = elementsToAdd.next(); collection.add(next); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@CanIgnoreReturnValue\n public static <T> boolean addAll(Collection<T> collection, Iterator<? extends T> it) {\n Preconditions.checkNotNull(collection);\n Preconditions.checkNotNull(it);\n boolean z = false;\n while (it.hasNext()) {\n z |= collection.add(it.next());\n ...
[ "0.6482723", "0.63582844", "0.59851795", "0.59407234", "0.5920235", "0.59087664", "0.59077656", "0.57560617", "0.5712872", "0.5654249", "0.5647245", "0.56229275", "0.5462145", "0.54514503", "0.5442568", "0.54326355", "0.5289733", "0.5271267", "0.5258999", "0.52395064", "0.522...
0.65618974
0
Copies the contents of a List to a new, unmodifiable List. If the List is null, an empty List will be returned. This is especially useful for methods which take List parameters. Directly assigning such a List to a member variable can allow external classes to modify internal state. Classes may have different state depe...
public static <T> List<T> copyToUnmodifiableList(List<T> list) { if (list != null) { List<T> listCopy = new ArrayList(list); return Collections.unmodifiableList(listCopy); } else { return Collections.emptyList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> List<T> unmodifiableList(List<T> original) {\n ArrayList<T> list = new ArrayList<>(original.size());\n original.forEach(list::add);\n return Collections.unmodifiableList(list);\n }", "public static java.util.List unmodifiableList(java.util.List arg0)\n { return nu...
[ "0.7099561", "0.7083281", "0.6890263", "0.679757", "0.65768874", "0.65739113", "0.65033495", "0.6486175", "0.6467644", "0.633608", "0.61943763", "0.6168564", "0.6164404", "0.6143026", "0.6127561", "0.611831", "0.6116043", "0.6101336", "0.60718715", "0.6022269", "0.599665", ...
0.7813309
0
Copies the contents of a Collection to a new, unmodifiable Collection. If the Collection is null, an empty Collection will be returned. This is especially useful for methods which take Collection parameters. Directly assigning such a Collection to a member variable can allow external classes to modify internal state. C...
public static <T> Collection<T> copyToUnmodifiableCollection(Collection<T> collection) { if (collection != null) { Collection<T> collectionCopy = new ArrayList(collection); return Collections.unmodifiableCollection(collectionCopy); } else { return Collections.emptyList(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static java.util.Collection unmodifiableCollection(java.util.Collection arg0)\n { return null; }", "public Collection() {\n this.collection = new ArrayList<>();\n }", "public static java.util.Collection synchronizedCollection(java.util.Collection arg0)\n { return null; }", "pub...
[ "0.7087516", "0.65174484", "0.6500942", "0.6490624", "0.64628243", "0.64505535", "0.6397691", "0.6128131", "0.59260094", "0.5896016", "0.58171237", "0.57875365", "0.5771589", "0.5752326", "0.5721814", "0.57177377", "0.56132257", "0.5599796", "0.55916256", "0.55769926", "0.557...
0.76607674
0
Open a new handle to the database. The caller is responsible for closing the returned handle.
public SQLiteDatabase openDatabase() { synchronized (mLock) { Log.d("Opening database."); File path = mContext.getDatabasePath(DatabaseOpenHelper.NAME); //Check if database exists and if not copy from assests folder if (!path.exists()) { try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DBHandler open() throws SQLException\r\n {\r\n DBHelper = new DBHelper(context);\r\n DB = DBHelper.getWritableDatabase();\r\n return this;\r\n }", "public DBinterface open() throws SQLException {\r\n db = helper.getWritableDatabase();\r\n return this;\r\n }", ...
[ "0.71668977", "0.7165062", "0.7080477", "0.6807136", "0.6727241", "0.6689199", "0.66812813", "0.66613144", "0.6643718", "0.6635896", "0.662035", "0.66118395", "0.65881866", "0.65484995", "0.65422064", "0.65407205", "0.653616", "0.6508758", "0.6501198", "0.6501198", "0.6501198...
0.6033233
49
Delete all public databases. Current database handles will remain valid as the file isn't removed until all open file handles are closed.
public void deleteDatabase() { synchronized (mLock) { Log.d("Deleting database."); File path = mContext.getDatabasePath(DatabaseOpenHelper.NAME); FileUtils.deleteQuietly(path); mOpenHelper = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete() {\r\n\t\tfor (int i = 0; i <= DatabaseUniverse.getDatabaseNumber(); i++) {\r\n\t\t\tif (this.equals(DatabaseUniverse.getDatabases(i))) {\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().set(i, null);\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().remove(i);\r\n\t\t\t\tDatabaseUniverse.setDatabaseN...
[ "0.73340523", "0.6950764", "0.6853688", "0.6815194", "0.67706084", "0.67459905", "0.66045344", "0.65435076", "0.64291567", "0.6417644", "0.62920946", "0.6287499", "0.62664765", "0.62650484", "0.6257303", "0.6188378", "0.6141527", "0.60941076", "0.6087128", "0.6014996", "0.601...
0.6412927
10
Create a program which checks the int if it is odd number Odd : 1,3,5,7,9,11,... Even : 0,2,4,6,8,10...
public static void main(String[] args) { int num = 90; if (num % 2 == 1) { System.out.println(num+" is an odd number"); } // Create a program which checks the int if it is even number if (num % 2 == 0) { System.out.println(num+" is an even number"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void findOddEven() {\n\t\tif (number % 2 == 0) {\n\t\t\tif (number >= 2 && number <= 5)\n\t\t\t\tSystem.out.println(\"Number is even and between 2 to 5...!!\");\n\t\t\telse if (number >= 6 && number <= 20)\n\t\t\t\tSystem.out.println(\"Number is even and between 6 to 20...!!\");\n\t\t\telse\n\t\t\t\tSystem...
[ "0.79263765", "0.7827762", "0.7513354", "0.74541974", "0.7400156", "0.7397862", "0.7337798", "0.7325783", "0.7304134", "0.7291167", "0.72676146", "0.7229846", "0.7207441", "0.7200086", "0.7198447", "0.7173909", "0.7140642", "0.7085181", "0.7076805", "0.70655584", "0.7031461",...
0.7070868
19
creamos el objeto vehiculo
private void registrarVehiculo(String placa, String tipo, String color, String numdoc) { miVehiculo = new Vehiculo(placa,tipo,color, numdoc); showProgressDialog(); //empresavehiculo //1. actualizar el reference, empresavehiculo //2. mDatabase.child("ruc").child("placa").setValu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearVehiculo( clsVehiculo vehiculo ){\n if( vehiculo.obtenerTipoMedioTransporte().equals(\"Carro\") ){\n //Debo llamar el modelo de CARRO\n modeloCarro.crearCarro( (clsCarro) vehiculo );\n } else if (vehiculo.obtenerTipoMedioTransporte().equals(\"Camion\")){\n ...
[ "0.7563272", "0.70447075", "0.7005459", "0.69862163", "0.69184333", "0.69135284", "0.6836585", "0.68347037", "0.6803534", "0.6777847", "0.66615194", "0.66316015", "0.65957785", "0.6412122", "0.63990134", "0.63848406", "0.6334034", "0.6319914", "0.6286803", "0.626788", "0.6250...
0.0
-1
generating the hidden outputs
public double[] predict(double[] input_array) { Matrix_instance input = new Matrix_instance(input_array); Matrix_instance hidden = Matrix.Product(this.weights_ih, input); hidden.adder(this.bias_h); // activation function hidden.applyFunction(i -> sigmoid(i)); Matrix_instance output = Matrix.Product(this.we...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double[] getOutputSumDerivsForHiddenOutput() {\n\t\t//dOutputSum/dHiddenOutput\n\t\tdouble[] outputSumDerivs = new double[synapses[1][0].length];\n\t\t\n\t\tfor (int i = 0 ; i < outputSumDerivs.length; i++) {\n\t\t\toutputSumDerivs[i] = synapses[1][0][i].getWeight();\n\t\t}\n\t\t\n\t\treturn outputSumDeriv...
[ "0.6376007", "0.61667395", "0.60257876", "0.58499295", "0.5808121", "0.57072425", "0.5662223", "0.5631895", "0.5566668", "0.5563862", "0.5551572", "0.5530542", "0.54724514", "0.5459957", "0.54211456", "0.53702503", "0.53693074", "0.5358001", "0.5348081", "0.53329694", "0.5321...
0.0
-1
Checks if method arguments of matrix or vector types have the same size.
@Before("execution(@DimensionsEqual * *(..))") public void method(final JoinPoint jpoint) { this.constructor(jpoint); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default void checkLengthOfArrays(double[] a, double[] b) throws IllegalArgumentException {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"Dimensions are not the same.\");\n }\n }", "public boolean equals(JavaMethodSignature sig) {\n\t\t//if their signatures aren'...
[ "0.6117276", "0.5955556", "0.5904147", "0.58281994", "0.5823109", "0.5793523", "0.5739606", "0.57221097", "0.5718577", "0.571609", "0.571609", "0.571609", "0.5647594", "0.5647594", "0.5647594", "0.5647594", "0.55866945", "0.55847716", "0.5550128", "0.5536812", "0.5527555", ...
0.0
-1
Checks if constructor arguments of matrix or vector types have the same size.
@Before("execution(@DimensionsEqual *.new(..))") public void constructor(final JoinPoint jpoint) { final Object[] args = jpoint.getArgs(); final Map<Class<?>, Object> ref = new HashMap<>(); for (int arg = 0; arg < args.length; ++arg) { for (int idx = 0; idx < this.clazz.length; +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default void checkLengthOfArrays(double[] a, double[] b) throws IllegalArgumentException {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"Dimensions are not the same.\");\n }\n }", "private void checkStateSizes()\n\t{\n\t\tif (variableNames.size() != domainSizes....
[ "0.60371774", "0.5881246", "0.58297104", "0.58271843", "0.5781029", "0.5768713", "0.57124025", "0.5646671", "0.56022316", "0.559897", "0.5586396", "0.5586396", "0.5586396", "0.5586396", "0.5537277", "0.55210155", "0.5433735", "0.5425021", "0.5400972", "0.5359744", "0.5352844"...
0.5508785
16
Validates an array argument.
private static void validate(final Object object) { if (object instanceof Object[]) { final Object[] array = (Object[]) object; for (int idx = 1; idx < array.length; ++idx) { SameDimensionCheck.validate(array[0], array[idx]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String validate(Data[] data);", "public void testCheckArray() {\n Object[] objects = new Object[] {\"one\"};\n Util.checkArray(objects, \"test\");\n }", "public void testCheckArray_NullInArg() {\n Object[] objects = new Object[] {\"one\", null};\n try {\n Util.c...
[ "0.7084623", "0.68651766", "0.6825255", "0.681486", "0.6783325", "0.6762495", "0.6539758", "0.6527997", "0.6505754", "0.64115053", "0.6274265", "0.6177412", "0.6150035", "0.6139719", "0.6112873", "0.60458267", "0.60140705", "0.5967015", "0.59663033", "0.5945878", "0.5933867",...
0.6086284
15
ServletConfig methods Returns the value of the specified init parameter, or null if no such init parameter is defined.
public String getInitParameter( String name ) { return (String) _initParameters.get( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init() throws ServletException {\n super.init();\n\n dbConfigResource = getServletContext().getInitParameter(\"dbConfigResource\");\n jspPath = getServletContext().getInitParameter(\"jspPath\");\n }", "@Override\n\tpublic void init(ServletConfig config) throws S...
[ "0.717315", "0.7095312", "0.6841315", "0.67016584", "0.6592007", "0.6583916", "0.65568984", "0.65432346", "0.65432227", "0.65381163", "0.6530753", "0.6502694", "0.64934725", "0.6489981", "0.64674956", "0.6458875", "0.64120024", "0.6406974", "0.6406974", "0.6397701", "0.639770...
0.60772437
37
Returns an enumeration over the names of the init parameters.
public Enumeration getInitParameterNames() { return _initParameters.keys(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Enumeration getInitParameterNames()\n {\n \treturn config.getInitParameterNames();\n }", "Enumeration getParameterNames();", "@Override\n\t\tpublic Enumeration getParameterNames() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic Enumeration<String> getParameterNames() {\n\t\treturn nul...
[ "0.8615758", "0.74331856", "0.68604314", "0.67537546", "0.6706144", "0.66356677", "0.6599712", "0.65611684", "0.65444666", "0.644455", "0.6333226", "0.63205063", "0.6319621", "0.6263749", "0.6211141", "0.61530715", "0.6112205", "0.6095843", "0.609017", "0.60428524", "0.601687...
0.9072401
0
Returns the current servlet context.
public ServletContext getServletContext() { return _context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }", "public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}", "public ServletContext getServletContext() {\n return this.context;\n }", "public st...
[ "0.81022716", "0.80518115", "0.8050978", "0.7329037", "0.72533053", "0.71820766", "0.7151938", "0.7151933", "0.71325165", "0.71325165", "0.70115894", "0.6981985", "0.6959954", "0.69435257", "0.69372654", "0.6931081", "0.6904253", "0.6901998", "0.6856392", "0.67838764", "0.678...
0.81531227
0
Returns the registered name of the servlet, or its class name if it is not registered.
public java.lang.String getServletName() { return _name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getServletInfo();", "@Override\n public String getServletInfo() {\n return PAGE_NAME;\n }", "private String getBaseName(final String servletPath) {\n\t\treturn FilenameUtils.removeExtension(servletPath);\n\t}", "public String getServletInfo() {\n\t\treturn null; \n\t}", "public String g...
[ "0.6398335", "0.63382304", "0.6192833", "0.6164911", "0.6158877", "0.6066675", "0.60627913", "0.60604876", "0.60196227", "0.59964347", "0.59594834", "0.59067184", "0.5865777", "0.58177507", "0.58167964", "0.58167964", "0.58167964", "0.58167964", "0.5806205", "0.58038056", "0....
0.75133544
0
/ Encode the URI into canonicalized version.
private static String encodeURI(String url) { StringBuffer uri = new StringBuffer(url.length()); int length = url.length(); for (int i = 0; i < length; i++) { char c = url.charAt(i); switch (c) { case '!': case '#': case '$': case '%': case '&': case '\'': case '(': case ')'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String encode(String uri) {\n return uri;\n }", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t...
[ "0.74910665", "0.7237207", "0.6726856", "0.66509444", "0.6612382", "0.63238007", "0.6252602", "0.6134464", "0.58842736", "0.5869767", "0.5833109", "0.5816849", "0.57731336", "0.57254755", "0.5695371", "0.56927425", "0.56923586", "0.5686202", "0.5667971", "0.5663427", "0.56248...
0.64321584
5
Returns the name of the file that is pointed to by this URI.
public static String getName(URI uri) { if (uri != null) { String location = uri.getSchemeSpecificPart(); if (location != null) { String name = location; int index = location.lastIndexOf('/'); if (index != -1) { name = name.substring(index + 1, name.length()); } return name; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(...
[ "0.77801317", "0.74724185", "0.7465973", "0.7465973", "0.7429905", "0.74144995", "0.739962", "0.7397626", "0.7397626", "0.7397626", "0.7397626", "0.7397626", "0.7397626", "0.7397626", "0.7397626", "0.7397626", "0.73642206", "0.7349562", "0.7303816", "0.7287358", "0.7278371", ...
0.0
-1
Returns the extension of the file that is pointed to by this URI.
public static String getExtension(URI uri) { if (uri != null) { String location = uri.getSchemeSpecificPart(); if (location != null) { String name = location; int index = location.lastIndexOf('.'); if (index != -1) { name = name.substring(index + 1, name.length()); } return name; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String extension() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n return fullPath.substring(dot + 1);\n }", "public String fileExtension() {\r\n return getContent().fileExtension();\r\n }", "public String getExt() {\n\t\treturn IpmemsFile.getFileExtension(file);\n\t...
[ "0.80109483", "0.7903638", "0.7882344", "0.77681583", "0.770514", "0.7622851", "0.76064384", "0.75724226", "0.74624765", "0.7427767", "0.72938126", "0.7219773", "0.7106918", "0.70847166", "0.70756876", "0.707182", "0.7069146", "0.7052431", "0.703777", "0.7010296", "0.6926794"...
0.68948674
25
Returns the name of the directory that is pointed to by this URI.
public static String getDirectoryName(URI uri) { String location = uri.getSchemeSpecificPart(); if (location != null) { String name = location; int end = location.lastIndexOf('/'); if (end != -1) { int start = location.lastIndexOf('/', end - 1); name = name.substring(start + 1, end); } return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDirName();", "@Override\n\tpublic String getDirName() {\n\t\treturn StringUtils.substringBeforeLast(getLocation(), \"/\");\n\t}", "public java.lang.String getDirName() {\n java.lang.Object ref = dirName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protob...
[ "0.7228201", "0.7174553", "0.71007735", "0.70537984", "0.6746916", "0.6733758", "0.6631235", "0.66133595", "0.63700366", "0.6362447", "0.6277463", "0.6267955", "0.6214054", "0.6174895", "0.6097098", "0.6076316", "0.60622245", "0.6013984", "0.6003959", "0.6003449", "0.5995515"...
0.60867065
15
Creates a URI from a path, the path can be relative or absolute, '\' and '/' are normalised.
public static URI createURI(String path) { path = path.replace('\\', '/'); return URI.create(encodeURI(path)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String uri(String path) {\n return baseURI + '/' + path;\n }", "Uri.Builder with(String path) {\n return Uri.parse(toPath() + path).buildUpon();\n }", "URI createURI();", "@Override\n\t\t\tprotected URI toUriImpl(String path) throws URISyntaxException {\n\t\t\t\treturn toFileToURI(...
[ "0.64221174", "0.64071053", "0.6135005", "0.6081571", "0.59039176", "0.57918185", "0.57036304", "0.56729954", "0.5621521", "0.5524872", "0.5439856", "0.5423009", "0.5404098", "0.53751504", "0.526981", "0.526802", "0.5261677", "0.52109534", "0.5199068", "0.51957256", "0.506425...
0.8335001
0