query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Create a project in SonarQube.
public boolean createProject(String name, String key) { List<NameValuePair> param = new ArrayList<>(); param.add(new BasicNameValuePair("name", name)); param.add(new BasicNameValuePair("key", key)); Map<String, String> props = new HashMap<>(); props.put("Authorization", Authentic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Project createProject();", "Project createProject();", "Project createProject();", "@TaskAction\n public void createProject()\n throws IOException {\n String projectName = getProjectName();\n\n // Get the output directory\n String outputDir = \"build/\";\n String projectFolderPath = outputD...
[ "0.6976646", "0.6976646", "0.6976646", "0.6961745", "0.6650083", "0.6635889", "0.66127825", "0.63241106", "0.61629725", "0.6062575", "0.59922945", "0.5957753", "0.5957043", "0.59304756", "0.58683455", "0.5852848", "0.5837739", "0.5815981", "0.5738684", "0.573479", "0.5721485"...
0.68486583
4
setTabPanel Panelcomponente suchen und durch ein neues Panel ersetzen
private Component setTabPanel(){ String componentKey = Integer.toString(focusL1) + "-" + Integer.toString(focusL2); Component wrapper = getComponentById(wrapperName); Component replacedPanel = getComponentById(panelName); Component panel; panel = panelMap.getPanelMap().get(comp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean setTabPannel(TabPanel tp){\n m_tp = tp;\n return true;\n \n }", "private void addPanel(TabComponent tabComp, PlotPanel pnl) {\n tabbedPanePlots.addTab(null, null, pnl, tabComp.getTitle());\n pnl.setParent(this);\n // replace the tab component and select th...
[ "0.75046873", "0.6797909", "0.67349833", "0.66032326", "0.6601165", "0.6527853", "0.65052223", "0.64948833", "0.64933884", "0.6491914", "0.64770496", "0.6346815", "0.6345956", "0.6338059", "0.6330645", "0.62918603", "0.628628", "0.62659156", "0.6265339", "0.6257116", "0.62525...
0.78295827
0
Save the id of the person who recently hosted the meeting
public static void saveLastMeetingHostId(int userId) { SP_UTILS.put(SPDataConstant.KEY_LAST_MEETING_HOST_ID, userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Meeting save(Meeting meeting) {\n\t\tmeeting.setCreationTs(System.currentTimeMillis());\n\t\tmeeting = repo.save(meeting);\n\n\t\t// send e-mail notification\n\t\tsendEmail(meeting);\n\t\treturn meeting;\n\t}", "ParticipantId getId();", "public static int getLastMeetingHostId() {\n r...
[ "0.6151675", "0.57801014", "0.57732415", "0.57566607", "0.5718748", "0.5667488", "0.5552365", "0.55135536", "0.55035734", "0.54712856", "0.54326606", "0.5421438", "0.54112947", "0.5406151", "0.5381622", "0.5381622", "0.5381622", "0.5381622", "0.53803325", "0.5339141", "0.5338...
0.69388175
0
Get the id of the last chairperson
public static int getLastMeetingHostId() { return SP_UTILS.getInt(SPDataConstant.KEY_LAST_MEETING_HOST_ID, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getLastID() {\n\t\t\n\t\tArrayList<Integer> domandeIdList = new ArrayList<>();\n\t\tdomandeIdList.add(0);\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\t\n\t\tfor(Map.Entry<Long, Domanda> domanda : domande.entrySet())\n\t\t\tif(domanda.getValue() instanceof Dom...
[ "0.7495251", "0.6943902", "0.6911638", "0.68412757", "0.68127185", "0.6748643", "0.6698436", "0.660548", "0.65882033", "0.6512735", "0.6445519", "0.6399903", "0.6394987", "0.63556975", "0.6347056", "0.6311893", "0.6309847", "0.6262828", "0.62454313", "0.62344694", "0.6191578"...
0.608617
29
Save the id of the most recent creator
public static void saveNewestUserId(int userId) { SP_UTILS.put(SPDataConstant.KEY_NEWEST_USER_ID, userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreator() {\n return creator;\n }", "public void setCreator(Long creator) {\n this.creator = creator;\n }", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public String getCrea...
[ "0.7132835", "0.70040065", "0.69544756", "0.69104666", "0.69104666", "0.6890338", "0.6845165", "0.6725958", "0.6680691", "0.66112083", "0.65978384", "0.6555376", "0.6550123", "0.65200496", "0.6484367", "0.6462117", "0.6412706", "0.6376716", "0.6332117", "0.62475324", "0.62211...
0.0
-1
Get the id of the most recent creator
public static int getNewestUserId() { return SP_UTILS.getInt(SPDataConstant.KEY_NEWEST_USER_ID, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreator() {\n return creator;\n }", "String getCreatorId();", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public java.lang.Integer getCreatorId() {\n return creatorId;\n }", "public String getCreatorId() {\n return creatorId;\n }",...
[ "0.7579353", "0.7427174", "0.7347096", "0.733788", "0.7270898", "0.7270898", "0.7145083", "0.70314574", "0.70104414", "0.7002499", "0.69835085", "0.6929485", "0.6897178", "0.68515974", "0.67788434", "0.66853404", "0.66853404", "0.66853404", "0.66853404", "0.66853404", "0.6685...
0.62830424
55
Save the date of the most recent meeting creation
public static void saveNewestMeetingDate(long timestamp) { SP_UTILS.put(SPDataConstant.KEY_LAST_MEETING_PUBLISH_DATE, timestamp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Meeting save(Meeting meeting) {\n\t\tmeeting.setCreationTs(System.currentTimeMillis());\n\t\tmeeting = repo.save(meeting);\n\n\t\t// send e-mail notification\n\t\tsendEmail(meeting);\n\t\treturn meeting;\n\t}", "@Override\n\tpublic java.util.Date getLastSavePoint() {\n\t\treturn _keHoachKiemD...
[ "0.6506305", "0.623979", "0.62047523", "0.60634655", "0.60343146", "0.5927995", "0.59268725", "0.5828083", "0.58116746", "0.57894623", "0.57794005", "0.57794005", "0.57495487", "0.5749025", "0.5727815", "0.5727282", "0.5721546", "0.57015145", "0.56991684", "0.5696355", "0.569...
0.6736486
0
Get the date of the most recent meeting creation
public static long getNewestMeetingDate() { return SP_UTILS.getLong(SPDataConstant.KEY_LAST_MEETING_PUBLISH_DATE, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}", "Date getCreationDate();", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteri...
[ "0.6370825", "0.6226388", "0.62028086", "0.6154244", "0.6153016", "0.61492395", "0.6098182", "0.6098182", "0.6098182", "0.6082597", "0.6079461", "0.6069324", "0.6054461", "0.60302854", "0.60235983", "0.60235983", "0.6009157", "0.5994468", "0.5988629", "0.5972711", "0.5947657"...
0.70215464
0
first resolve the lazy value at this node, then do anything.
private static int queryLazy(int[] segtree, int[] lazyValue, int l, int r, int ns, int ne, int index) { if(lazyValue[index]!=0){ segtree[index]+=lazyValue[index]; if(ns!=ne){ lazyValue[2*index]+=lazyValue[index]; lazyValue[2*index+1]+=lazyValue[index]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public final SoyValue resolve() {\n SoyValue localResolvedValue = resolvedValue;\n if (localResolvedValue == null) {\n localResolvedValue = compute();\n for (ValueAssertion curr = valueAssertion; curr != null; curr = curr.next) {\n curr.check(localResolvedValue);\n }\n ...
[ "0.73700964", "0.5844043", "0.56650513", "0.56572", "0.5593602", "0.54397357", "0.5398398", "0.5318428", "0.5311434", "0.5293448", "0.5276135", "0.51855487", "0.5132204", "0.51113033", "0.5099329", "0.50795186", "0.50716263", "0.505654", "0.5032593", "0.5025317", "0.50143266"...
0.0
-1
before going down,resolve the lazy value here & propogate it to left&right if it's not a leaf node
private static void updateRangeLazy(int[] segtree, int[] lazyValue, int l, int r, int inc, int ns, int ne, int index) { if (lazyValue[index] != 0) { segtree[index] += lazyValue[index]; if (ns != ne) { lazyValue[2 * index] += lazyValue[index]; l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode getLeft(){ return leftChild;}", "private void rebalanceLeft(TreeNodeDataType n) {\n left(n);\r\n \r\n \r\n }", "public TreeNode resolve(TreeNode root, TreeNode node){\n if (root == null) {\n return node;\n }\n else if(root.val > node.val){...
[ "0.62306756", "0.61208016", "0.60608995", "0.5952089", "0.59367937", "0.5899423", "0.58570874", "0.58125854", "0.5759323", "0.5737795", "0.5733302", "0.57107174", "0.5699874", "0.5689634", "0.5689634", "0.5689634", "0.5689634", "0.5689634", "0.5689634", "0.5689634", "0.568963...
0.59187895
5
increments the numbers in range from l to r by inc.
private static void updateRange(int[] segtree, int l, int r, int inc, int ns, int ne, int index) { if (r < ns || l > ne) { // no overlap-do nothing return; } if (ns == ne) { segtree[index] += inc; return; } else { // partial or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inc(){\n this.current += 1;\n }", "public void inc() {\n inc(1);\n }", "public static IntList dincrList(IntList L, int x) { //iteratively\n /* Your code here. */\n IntList p = L;\n while (p != null) {\n p.first = p.first + x; //this mutate...
[ "0.6247177", "0.60663915", "0.5893935", "0.58893776", "0.57779896", "0.5777865", "0.57491785", "0.5714795", "0.57062465", "0.57062465", "0.5681986", "0.56390107", "0.5625468", "0.5601003", "0.5601003", "0.5572945", "0.5541791", "0.5535036", "0.5524953", "0.55047065", "0.55018...
0.51235366
50
this function tries to answer the query for starting=l and end=r using a segment tree whose root is at index and root represents answer for a range between ns to ne
private static int query(int[] segtree, int l, int r, int ns, int ne, int index) { if (ns >= l && ne <= r) { // complete overlap return segtree[index]; } else if (ns > r || ne < l) { // no overlap return Integer.MAX_VALUE; } else { int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void updateRange(int[] segtree, int l, int r, int inc, int ns, int ne, int index) {\n\n if (r < ns || l > ne) {\n // no overlap-do nothing\n return;\n }\n if (ns == ne) {\n segtree[index] += inc;\n return;\n } else {\n ...
[ "0.6600007", "0.6368122", "0.6284005", "0.6024209", "0.5803106", "0.57748085", "0.57475173", "0.5694079", "0.5662775", "0.5635748", "0.5621126", "0.5613433", "0.5561295", "0.5537361", "0.54232085", "0.54198736", "0.5394416", "0.5385601", "0.5374657", "0.52902603", "0.5254681"...
0.7350663
0
given an array, this function tries to fill the elements in range between beg & end of arr in the segment tree's subtree whose root is at treeIndex and returns the value that is placed at root
private static int buildSegmentTree(int[] arr, int[] segtree, int beg, int end, int treeIndex) { if (beg == end) { segtree[treeIndex] = arr[beg]; } else { // recursive case int mid = (beg + end) / 2; int leftPart = buildSegmentTree(arr, segtree, beg, mid, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void buildtree(int arr[], int tree[], int start, int end, int index) {\r\n\t\tif (start == end) {\r\n\t\t\ttree[index] = arr[start];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint mid = (start + end) / 2;\r\n\t\tbuildtree(arr, tree, start, mid, 2 * index);\r\n\t\tbuildtree(arr, tree, mid + 1, end, (2 * index) + 1...
[ "0.68612236", "0.56914455", "0.5688918", "0.5688918", "0.55920887", "0.5577735", "0.55065763", "0.54356843", "0.53911865", "0.53468144", "0.5334521", "0.5325732", "0.5323108", "0.53206176", "0.5303066", "0.5280014", "0.5274492", "0.5265751", "0.5264679", "0.5239762", "0.52304...
0.72448254
0
4320P(8K) 76804320 2160P(4K) 38402160 1440P(HD) 1080P(HD) 19201080 720P (HD) 1280720 480P 360P 240P 144P
private void onShow() { if (DEBUG) MLog.d(TAG, "onShow(): " + printThis()); startBackgroundThread(); // When the screen is turned off and turned back on, the SurfaceTexture is already // available, and "onSurfaceTextureAvailable" will not be called. In that case, we can ope...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] determineScreenSize()\n {\n int heightInPixels, widthInPixels;\n int horizontal, vertical;\n\n // Determine initial values from CRTC registers (ensure dimensions are positive by casting byte to int)\n horizontal = ((((int) videocard.crtControllerRegister.regArray[1]) & 0...
[ "0.6221418", "0.6055661", "0.59490514", "0.5639221", "0.56360775", "0.56065196", "0.55994046", "0.55011916", "0.54305774", "0.53805393", "0.53725773", "0.53659385", "0.53578204", "0.53401744", "0.5333907", "0.5330501", "0.5320628", "0.53085536", "0.52976364", "0.52746487", "0...
0.0
-1
Sets up member variables related to camera.
private void setupCameraOutputs(int width, int height) { MLog.d(TAG, "setupCameraOutputs()" + " width: " + width + " height: " + height); Activity activity = getActivity(); CameraManager manager = (CameraManager) activity.getSystemService(Context....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cameraSetup();", "public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cro...
[ "0.79434925", "0.75714153", "0.75444806", "0.7431924", "0.741129", "0.7400925", "0.7345882", "0.7303766", "0.7296388", "0.7289243", "0.7270383", "0.72505695", "0.7221096", "0.7184847", "0.71646804", "0.706878", "0.7015198", "0.6947784", "0.694021", "0.6899687", "0.68680465", ...
0.0
-1
The camera is already closed
@Override public void onConfigured( CameraCaptureSession cameraCaptureSession) { if (null == mCameraDevice) { return; } // When the session is read...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cameraClosed();", "public void closeCamera()\n {\n }", "private void closeCamera() {\n if (null != cameraDevice) {\n cameraDevice.close();\n cameraDevice = null;\n }\n if (null != imageReader) {\n imageReader.close();\n imageReader = n...
[ "0.819081", "0.80881274", "0.7260934", "0.7144884", "0.7136317", "0.7016478", "0.68920213", "0.68624574", "0.6841933", "0.6812349", "0.68049127", "0.67768633", "0.67685986", "0.674063", "0.66460407", "0.6603918", "0.6600197", "0.6600197", "0.6600033", "0.65916586", "0.6590379...
0.0
-1
Initiate a still image capture.
private void takePicture() { lockFocus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void takePicture() {\n\n captureStillPicture();\n }", "public CaptureImage()\r\n\t{\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\tcapturedFrame = new Mat();\r\n\t\tprocessedFrame = new Mat();\r\n\t\tboard = new byte[32];\r\n\t\tfor (int i=0;i<board.length;i++){\r\n\t\t\tboard[i] =...
[ "0.73084533", "0.71856374", "0.7028567", "0.6878867", "0.6532955", "0.64858645", "0.64834964", "0.6456495", "0.64400095", "0.63163525", "0.6301249", "0.62468773", "0.6100211", "0.60924256", "0.6057044", "0.60431314", "0.6030755", "0.60129994", "0.60012037", "0.5905046", "0.58...
0.6084847
14
Unlock the focus. This method should be called when still image capture sequence is finished.
private void unlockFocus() { if (DEBUG) MLog.d(TAG, "unlockFocus(): " + printThis()); try { // Reset the auto-focus trigger // 重置自动对焦 mPreviewRequestBuilder.set( CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void unlockFocus() {\n try {\n // Reset the auto-focus trigger\n mPreviewRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER,\n CameraMetadata.CONTROL_AF_TRIGGER_CANCEL);\n setAutoFlash(mPreviewRequestBuilder);\n mCaptureSession.capture...
[ "0.7994598", "0.7986453", "0.7944067", "0.6697191", "0.6481172", "0.646617", "0.6455761", "0.6430685", "0.641867", "0.639637", "0.6201543", "0.616481", "0.6141927", "0.61394435", "0.6132339", "0.6130657", "0.6130657", "0.6095788", "0.60863024", "0.60519296", "0.60391814", "...
0.79731876
2
We cast here to ensure the multiplications won't overflow
@Override public int compare(Size lhs, Size rhs) { return Long.signum((long) lhs.getWidth() * lhs.getHeight() - (long) rhs.getWidth() * rhs.getHeight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "private void mul() {\n\n\t}", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }...
[ "0.6908364", "0.66634375", "0.63965327", "0.63280904", "0.62943107", "0.61848056", "0.61254025", "0.61102873", "0.61073506", "0.61052406", "0.60968256", "0.60906345", "0.6079607", "0.6035606", "0.601618", "0.6000751", "0.60002416", "0.5997322", "0.5987571", "0.5974536", "0.59...
0.0
-1
Driver class main method
public static void main(String[] args) throws Exception { KegiatanSatu keg1 = new KegiatanSatu(); System.out.println("Kegiatan Satu"); keg1.kegiatanSatu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\n //The driver of the methods created above\n //first display homeowork header\n homeworkHeader();\n //calls driver method\n System.out.println(\"Calling driver method:\");\n driver(true);//runs choice driver\n //when prompted...
[ "0.78424543", "0.7573542", "0.7463127", "0.7401283", "0.7314264", "0.7278195", "0.72677463", "0.7267111", "0.7258915", "0.71955293", "0.7187062", "0.7111401", "0.7110124", "0.7070836", "0.70680535", "0.70404816", "0.69703734", "0.69703734", "0.69689924", "0.69674635", "0.6967...
0.0
-1
gets the first child of the specific class
public AbstractDrawableSceneObject getChild(Class<?> childType, boolean removeChild) { AbstractDrawableSceneObject child = null; for (AbstractDrawableSceneObject abstractDrawableSceneObject : getChildren(true)) { if (abstractDrawableSceneObject.getClass().equals(childType)) { child = abstractDra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Jode first() {\n return children().first();\n }", "public <T extends AbstractSceneElement> T getChildOfClass(Class<T> childClass) {\n for(AbstractSceneElement element : children) {\n if(element.getClass() == childClass) {\n return (T)element;\n }\n ...
[ "0.687375", "0.6822408", "0.668785", "0.6646118", "0.657514", "0.63935596", "0.6380748", "0.62833655", "0.62099916", "0.620104", "0.61312735", "0.6129812", "0.6123954", "0.6107332", "0.60968095", "0.6034349", "0.60271955", "0.60145235", "0.6009823", "0.59655845", "0.5948868",...
0.0
-1
defining min and max coordinates
public void constructBoundingBox() { double a = m_Qmin.x; double b = m_Qmin.y; double c = m_Qmin.z; double d = m_Qmax.x; double e = m_Qmax.y; double f = m_Qmax.z; //constructing the vertexes of the bounding box SceneVertex A = new SceneVertex( new Vector3d(a, b, c)); SceneVertex B = new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "private void calculateMinMaxPositions() {\n boundingVolume = null;\n if ( minMax == null ) {\n minMax = new double[6];\n\n double minX = Double.MAX_VALUE;\n double minY = Double.MAX_VALUE;...
[ "0.7184689", "0.7120432", "0.71030825", "0.6886036", "0.6869718", "0.68288755", "0.67624545", "0.675346", "0.66790575", "0.6636058", "0.6583776", "0.6575398", "0.6542853", "0.6526052", "0.64940965", "0.6408475", "0.6384374", "0.63556683", "0.63353497", "0.63179266", "0.631457...
0.0
-1
update QMin and QMax
protected void buildRadius() { if (m_Qmax == null || m_Qmin == null) { updateQMinQMax(); } m_Radius = getMaxDistanceOrigin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateMinMax( ) {\r\n if( (data == null) || (data.size() < 1) ) {\r\n min = 0.0;\r\n max = 0.0;\r\n return;\r\n }\r\n\r\n min = data.get( 0 );\r\n max = data.get( 0 );\r\n\r\n for( int i = 1; i < data.size(); i++ ) {\r\n if(...
[ "0.6952908", "0.68906945", "0.6396023", "0.63850325", "0.6336517", "0.6283576", "0.61833507", "0.6177118", "0.6127154", "0.6113699", "0.60949516", "0.60894495", "0.60524", "0.60460246", "0.60120934", "0.595256", "0.58817106", "0.5874262", "0.58429116", "0.58297294", "0.581845...
0.0
-1
Created by sahba on 3/31/17.
public interface JungleDataKeeper { void keepData(String identifier, int iteration, double biomass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overri...
[ "0.59402525", "0.58495206", "0.58425164", "0.5834695", "0.5829644", "0.581616", "0.5717658", "0.5717658", "0.5685874", "0.5668224", "0.56674016", "0.5663686", "0.56597126", "0.56597126", "0.56597126", "0.56597126", "0.56597126", "0.5645615", "0.56447905", "0.56443274", "0.562...
0.0
-1
now Implement the firebase search
private void firebaseSearch(String searchtext) { String query = searchtext.toUpperCase() ; Query firebaseSearchQuery = mRef.orderByChild("title").startAt(query).endAt(query + "\uf8ff"); options = new FirebaseRecyclerOptions.Builder<Model>().setQuery(firebaseSearchQuery , Model.class) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void firebaseUserSearch(String searchText) {\n AllClubsList.clear();\n Query firebaseSearchQuery = mUserDatabase2.orderByChild(\"item_name\").startAt(searchText).endAt(searchText + \"\\uf8ff\");\n firebaseSearchQuery.addListenerForSingleValueEvent(valueEventListener);\n }", "priva...
[ "0.74205655", "0.7252328", "0.71719676", "0.7036888", "0.7017614", "0.7002992", "0.69728607", "0.6949877", "0.6923805", "0.6897451", "0.6897451", "0.6831573", "0.6821828", "0.680348", "0.6784979", "0.6754089", "0.6599951", "0.6554992", "0.6533463", "0.65307003", "0.6499723", ...
0.70700526
3
creating a function which will load data to Recylceview via OnStart Override method
@Override protected void onStart() { super.onStart(); /* FirebaseRecyclerAdapter <Model , viewHolder_cse> firebaseRecyclerAdapter = new FirebaseRecyclerAdapter<Model, viewHolder_cse>( Model.class , R.layout.row_for_cse_pdf, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onResume() {\n super.onResume();\n loadData();\n }", "@Override\n protected void onResume() {\n super.onResume();\n loadData();\n }", "@Override\n public void onResume() {\n super.onResume();\n initViewData();\n initdata...
[ "0.7385911", "0.7385911", "0.7200196", "0.6986785", "0.67728275", "0.6758672", "0.67582965", "0.6753372", "0.6753372", "0.6746499", "0.6743902", "0.67148274", "0.670158", "0.66810477", "0.66608584", "0.66528803", "0.66433305", "0.65913504", "0.65896106", "0.6587526", "0.65725...
0.0
-1
inflate the menu ; this adds items to the actionBar
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.search_bar_menu , menu ); MenuItem item = menu.findItem(R.id.action_search); SearchView searchView = (SearchView) MenuItemCompat.getActionView(item); searchView.setOnQueryTextListener(new Sea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= g...
[ "0.7233094", "0.7198471", "0.7197825", "0.7186825", "0.7132008", "0.71122175", "0.70609015", "0.7001368", "0.69981784", "0.6973873", "0.69597805", "0.6954558", "0.694699", "0.69016796", "0.6882247", "0.68608356", "0.6850127", "0.68493557", "0.6849167", "0.6844791", "0.6843537...
0.0
-1
getting the customer from principle
@Transactional public ResponseEntity<String> orderProductsFromCart(String email) { User user = userRepository.findByEmail(email); Customer customer = customerRepository.findCustomerById(user.getId()); // getting all ids for production variation from customer's cart List<Long> pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomer();", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n ...
[ "0.8003456", "0.75431615", "0.7328253", "0.71085393", "0.7101368", "0.7090473", "0.7033036", "0.7021769", "0.7014882", "0.70148224", "0.70111394", "0.70000917", "0.69925106", "0.6986287", "0.69807863", "0.69325", "0.6932492", "0.69123465", "0.6886823", "0.6886823", "0.6843476...
0.0
-1
getting the customer from principle
public ResponseEntity<String> orderPartialProductsFromCart(List<Long> productVariationIds, String email) { User user = userRepository.findByEmail(email); Customer customer = customerRepository.findCustomerById(user.getId()); // getting all ids for production variation from customer's cart ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomer();", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n ...
[ "0.8002897", "0.7542574", "0.7327766", "0.7107928", "0.71012694", "0.7090339", "0.70326364", "0.7021637", "0.70147586", "0.70140785", "0.7011035", "0.699999", "0.69917166", "0.69861996", "0.69805604", "0.69321936", "0.6932157", "0.69117844", "0.6886742", "0.6886742", "0.68433...
0.0
-1
getting the customer from principle
public ResponseEntity<String> directOrderProduct(Long productVariationId, Integer quantity, String email) { User user = userRepository.findByEmail(email); Customer customer = customerRepository.findCustomerById(user.getId()); ProductVariation productVariation = productVariationRepository.fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomer();", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n ...
[ "0.8003456", "0.75431615", "0.7328253", "0.71085393", "0.7101368", "0.7090473", "0.7033036", "0.7021769", "0.7014882", "0.70148224", "0.70111394", "0.70000917", "0.69925106", "0.6986287", "0.69807863", "0.69325", "0.6932492", "0.69123465", "0.6886823", "0.6886823", "0.6843476...
0.0
-1
getting the customer from principle
public ResponseEntity<String> cancelOrder(String email, long orderProductId) { User user = userRepository.findByEmail(email); Customer customer = customerRepository.findCustomerById(user.getId()); OrderProduct orderProduct = orderProductRepository.findById(orderProductId); if(order...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomer();", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n ...
[ "0.8003456", "0.75431615", "0.7328253", "0.71085393", "0.7101368", "0.7090473", "0.7033036", "0.7021769", "0.7014882", "0.70148224", "0.70111394", "0.70000917", "0.69925106", "0.6986287", "0.69807863", "0.69325", "0.6932492", "0.69123465", "0.6886823", "0.6886823", "0.6843476...
0.0
-1
getting the customer from principle
public ResponseEntity<String> returnOrder(String email, long orderProductId) { User user = userRepository.findByEmail(email); Customer customer = customerRepository.findCustomerById(user.getId()); OrderProduct orderProduct = orderProductRepository.findById(orderProductId); if(order...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomer();", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n ...
[ "0.8003456", "0.75431615", "0.7328253", "0.71085393", "0.7101368", "0.7090473", "0.7033036", "0.7021769", "0.7014882", "0.70148224", "0.70111394", "0.70000917", "0.69925106", "0.6986287", "0.69807863", "0.69325", "0.6932492", "0.69123465", "0.6886823", "0.6886823", "0.6843476...
0.0
-1
getting the customer from principle
public DisplayOrderDto viewOrder(String email, long orderId) { User user = userRepository.findByEmail(email); Customer customer = customerRepository.findCustomerById(user.getId()); DisplayOrderDto displayOrderDto = new DisplayOrderDto(); // getting order from order id Order...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomer();", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n ...
[ "0.8002897", "0.7542574", "0.7327766", "0.7107928", "0.71012694", "0.7090339", "0.70326364", "0.7021637", "0.70147586", "0.70140785", "0.7011035", "0.699999", "0.69917166", "0.69861996", "0.69805604", "0.69321936", "0.6932157", "0.69117844", "0.6886742", "0.6886742", "0.68433...
0.0
-1
finding user by email getting from principal
public ResponseEntity<String> changeOrderStatusForSeller(String email, long orderProductId , OrderStatus.Status fromStatus, OrderStatus.Status toStatus) { User user = userRepository.findByEmail(email); // finding the seller from user id we got from email Seller seller = sellerRep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User getUserByEmail(final String email);", "User getUserByEmail(String email);", "public User getUserByEmail(String email);", "public User getUserByEmail(String email);", "public User retrieveUserByEmail(String email) throws ApplicationException;", "public static User findUserByEmail(String email) {\n\n ...
[ "0.7927186", "0.79241735", "0.77675116", "0.77675116", "0.7666949", "0.76375085", "0.7621739", "0.76173204", "0.76086617", "0.7604376", "0.75719357", "0.75663316", "0.75501525", "0.75432014", "0.7532579", "0.7504978", "0.7484767", "0.74465615", "0.74051344", "0.73695385", "0....
0.0
-1
returns total amount for the order
private double returnOrderTotalAmount(List<ProductVariation> productVariationList, long customerId) { double totalAmount = 0; for (ProductVariation productVariation: productVariationList) { int quantityFromCart = cartRepository.getQuantityForCustomerIdAndVariationId(customerId ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += or...
[ "0.79520917", "0.7885921", "0.7788985", "0.7620186", "0.75797695", "0.7569575", "0.7526042", "0.74275887", "0.74009234", "0.7359632", "0.73379666", "0.73012984", "0.72810674", "0.7201939", "0.71583563", "0.71049595", "0.70816034", "0.70813173", "0.70576143", "0.70340836", "0....
0.6548257
52
Get the screen display title.
public String getTitle() { return "Booking Line Items"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrentWindowTitle(){\n buffer = new char[MAX_TITLE_LENGTH * 2];\n GetWindowTextW(GetForegroundWindow(), buffer, MAX_TITLE_LENGTH);\n return Native.toString(buffer);\n }", "public static String getTitle() {\r\n\t\tString titleStr = null;\r\n\t\ttry {\r\n\t\t\ttitleStr = d...
[ "0.7588959", "0.7228242", "0.7148108", "0.7142571", "0.70693654", "0.705524", "0.705524", "0.70406383", "0.7026585", "0.7021072", "0.7017537", "0.70150685", "0.70150685", "0.70150685", "0.70150685", "0.70150685", "0.7006777", "0.70023304", "0.6974027", "0.6967209", "0.6948392...
0.0
-1
Override this to open the main file. You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)).
public Record openMainRecord() { if (this.getRecord(BookingLine.BOOKING_LINE_FILE) != null) return this.getRecord(BookingLine.BOOKING_LINE_FILE); return new BookingLine(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TableEditor openTableEditor(){\n this.save();\n\t\treturn new TableEditor(this.getTitle());\n\t}", "public void openFile(File file) {\n// new FileSystem().readFile(addressBook, file);\n// addressBook.fireTableDataChanged();\n }", "public void openOtherRecords()\n {\n Booking rec...
[ "0.5819325", "0.58047205", "0.56758416", "0.5596158", "0.5462993", "0.5435884", "0.53259623", "0.5297748", "0.5295511", "0.52774227", "0.52561826", "0.5249491", "0.5233148", "0.51767164", "0.5175009", "0.5168099", "0.51672864", "0.51574147", "0.5156929", "0.515124", "0.514828...
0.65030044
0
Override this to open the other files in the query.
public void openOtherRecords() { Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); Tour recTour = (Tour)((ReferenceField)recBooking.getField(Booking.TOUR_ID)).getReferenceRecord(this); super.openOtherRecords(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performFileSearch() {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n\n // Filter to only show results that can be \"opened\", such as a file (as opposed to a list\n // of contacts or timezones)\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n\n // Filte...
[ "0.5835023", "0.57715946", "0.56076235", "0.55765", "0.54534227", "0.5400259", "0.5346959", "0.5335633", "0.5331362", "0.5328438", "0.5323395", "0.5252887", "0.5251681", "0.5232838", "0.52280825", "0.5222057", "0.5212328", "0.51933324", "0.5188008", "0.5180569", "0.51466596",...
0.5668042
2
Add all the screen listeners.
public void addListeners() { super.addListeners(); BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE); Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); recBooking.addArDetail(null, recBookingLine, false); recBoo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "public void addListeners() {\r\n\t\tbtnLogin.addActionListener(listener...
[ "0.73147786", "0.7190265", "0.7160894", "0.7098607", "0.700109", "0.6984402", "0.6945531", "0.6935786", "0.6935786", "0.69329846", "0.6922738", "0.69075876", "0.6895171", "0.68865883", "0.6794263", "0.6779317", "0.6767129", "0.67408115", "0.66437006", "0.6599085", "0.656852",...
0.0
-1
Add the toolbars that belong with this screen.
public ToolScreen addToolbars() { ToolScreen toolbar = super.addToolbars(); ToolScreen toolbar2 = new EmptyToolbar(this.getNextLocation(ScreenConstants.LAST_LOCATION, ScreenConstants.DONT_SET_ANCHOR), this, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null); BaseField converter = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupToolbars(){\n\t\ttopBar = new TopBar(0, 0, setup.getFrameWidth()+12, Constants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.COLOR_HEADER_1, setup);\n\t\t\n\t\tbottomBar = new BottomBar(0, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT+(Constants.WINDOW_MAP_MARGIN*2)+Constants.WINDOW_MAP_HEIGHT, \n\t\t\t\t...
[ "0.79039943", "0.7837182", "0.76907027", "0.7552378", "0.7351931", "0.72124535", "0.71318907", "0.70980954", "0.70205843", "0.69568694", "0.68876815", "0.66142714", "0.657771", "0.655293", "0.65185744", "0.64755845", "0.6384187", "0.6376274", "0.6355358", "0.6317992", "0.6311...
0.7380467
4
populateUI would be called to populate the UI when in update mode
private void populateUI(BookEntry book) { // Return if the task is null if (book == null) { return; } // Use the variable book to populate the UI mNameEditText.setText(book.getBook_name()); mQuantityTextView.setText(Integer.toString(book.getQuantity())); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateUI(){}", "@Override\r\n public void updateUI() {\r\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@O...
[ "0.7832233", "0.77557063", "0.74558896", "0.74558896", "0.74558896", "0.73002666", "0.73002666", "0.7138129", "0.71119213", "0.7109139", "0.70989436", "0.7080664", "0.7065511", "0.7052993", "0.70141196", "0.6985848", "0.69574875", "0.688982", "0.6869898", "0.686159", "0.68519...
0.0
-1
Setup the dropdown spinner that allows the user to select the suppler of the book.
private void setupSpinner() { // Create adapter for spinner. The list options are from the String array it will use // the spinner will use the default layout ArrayAdapter supplierSpinnerAdapter = ArrayAdapter.createFromResource(this, R.array.array_supplier_options, android.R.lay...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadSupplierSpinner() {\n //Retrieve Suppliers list from database\n ArrayList<String> suppliers = getAllSuppliers();\n //Create Adapter for Spinner\n spinnerAdapter= new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, suppliers);\n // Specify dropdow...
[ "0.7244812", "0.6598248", "0.6443767", "0.635182", "0.6303384", "0.6184366", "0.6167623", "0.6140182", "0.6133735", "0.61046255", "0.6098147", "0.6062041", "0.6061554", "0.6060482", "0.6037969", "0.6028974", "0.6025729", "0.59627074", "0.5953089", "0.59525645", "0.594787", ...
0.7612856
0
Because AdapterView is an abstract class, onNothingSelected must be defined
@Override public void onNothingSelected(AdapterView<?> parent) { mSupplier = BookEntry.SUPPLIER_UNKNOWN; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n }", "@Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n }", "@Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n }", "@Overr...
[ "0.9140743", "0.9140743", "0.9140743", "0.91055983", "0.9024272", "0.8994319", "0.89926064", "0.89926064", "0.89871067", "0.89871067", "0.8962797", "0.8952994", "0.89423794", "0.89423794", "0.89423794", "0.89423794", "0.8934432", "0.8934432", "0.8934432", "0.8934432", "0.8934...
0.0
-1
SaveData is called when the "save" options menu item is clicked. It retrieves user input and inserts that new task data into the underlying database.
private void saveData() { readViews(); final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString); AppExecutors.getInstance().diskIO().execute(new Runnable() { @Override public void run() { // Insert the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.t...
[ "0.71911913", "0.6985328", "0.6920634", "0.6605918", "0.6587292", "0.6462684", "0.6424102", "0.6377799", "0.6307151", "0.6253238", "0.6244674", "0.6165885", "0.61418444", "0.6092721", "0.6086487", "0.60561615", "0.60521203", "0.6046085", "0.6036003", "0.5968568", "0.59659904"...
0.6282537
9
Insert the book only if mBookId matches DEFAULT_BOOK_ID Otherwise update it call finish in any case
@Override public void run() { if (mBookId == DEFAULT_BOOK_ID) { mDb.bookDao().insertBook(bookEntry); } else { //update book bookEntry.setId(mBookId); mDb.bookDao().updateBook(bookEntry); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean insertBook(Book book) {\r\n books.add(book);\r\n return true;\r\n }", "public boolean insertBook(Book book) {\n \tassert _loggerHelper != null;\n \t\n \tif (book == null) {\n \t\tthrow new IllegalArgumentException();\n \t}\n \t\n \tboolean result = insertBook(...
[ "0.66873395", "0.658369", "0.6575898", "0.65669185", "0.63226974", "0.6302235", "0.62305135", "0.61634743", "0.61574054", "0.6142185", "0.6139827", "0.6115086", "0.6059939", "0.60482943", "0.5997679", "0.5993008", "0.59659255", "0.59606546", "0.59381497", "0.5900489", "0.5873...
0.717669
0
Perform the deletion of the book in the database.
private void deleteBook() { readViews(); final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString); AppExecutors.getInstance().diskIO().execute(new Runnable() { @Override public void run() { // Delete th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(Book book){\n try{\n String query = \"DELETE FROM testdb.book WHERE id=\" + book.getId();\n DbConnection.update(query);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "private void deleteBook() {\n if (currentBo...
[ "0.8171349", "0.8134893", "0.80911005", "0.7878423", "0.7587086", "0.7585488", "0.74985904", "0.7320216", "0.7267945", "0.7245022", "0.71861017", "0.715279", "0.70480335", "0.7018207", "0.69185203", "0.68763137", "0.68593174", "0.6851473", "0.67659265", "0.6707733", "0.669623...
0.82748044
0
Delete the book only if mBookId matches DEFAULT_BOOK_ID
@Override public void run() { if (mBookId != DEFAULT_BOOK_ID) { bookEntry.setId(mBookId); mDb.bookDao().deleteBook(bookEntry); } finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteBook() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n /...
[ "0.74978304", "0.73993254", "0.7375725", "0.71426576", "0.6881187", "0.6832967", "0.68116546", "0.68055165", "0.6738702", "0.66979337", "0.66411126", "0.6558852", "0.65569776", "0.65105337", "0.64741755", "0.6464038", "0.63818955", "0.62737715", "0.6264504", "0.6256621", "0.6...
0.6435871
16
Read from input fields Use trim to eliminate leading or trailing white space
private void readViews() { mNameString = mNameEditText.getText().toString().trim(); mQuantityString = Integer.parseInt(mQuantityTextView.getText().toString().trim()); mPriceString = Double.parseDouble(mPriceEditText.getText().toString().trim()); mPhoneString = Integer.parseInt(mPhoneEdit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void trim() {\n read(0);\n }", "public String getData() {\r\n Scanner sc = new Scanner(System.in);\r\n String s = sc.nextLine();\r\n while ((s.startsWith(\"\") && s.endsWith(\" \")) || (s.length() == 0) || (s.startsWith(\" \"))) {\r\n System.out.print(\"A space record, or a space ...
[ "0.6211137", "0.6153244", "0.6101061", "0.5933332", "0.5854031", "0.5765104", "0.56803656", "0.5650689", "0.5619073", "0.55918264", "0.558909", "0.55846643", "0.55662155", "0.55329365", "0.5518073", "0.54969084", "0.5470423", "0.5465738", "0.5460659", "0.54595673", "0.5447241...
0.5692869
6
Inflate the menu options from the res/menu/menu_editor.xml file. This adds menu items to the app bar.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_editor, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.editor_options_menu, menu);\n\n\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n ...
[ "0.7637035", "0.7341045", "0.7313956", "0.7292154", "0.7292154", "0.72204506", "0.71050364", "0.696265", "0.6823543", "0.6823543", "0.67735726", "0.6748865", "0.6711968", "0.6694241", "0.6682911", "0.6682911", "0.6680641", "0.6680641", "0.6680641", "0.6676812", "0.6667627", ...
0.72706443
11
User clicked on a menu option in the app bar overflow menu
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { // Respond to a click on the "Save" menu option case R.id.action_save: // Save book to database saveData(); // Exit activity fin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onMenuItemClicked();", "void clickFmFromMenu();", "void clickAmFromMenu();", "public void menuClicked(MenuItem menuItemSelected);", "public void menuItemClicked( Menu2DEvent e );", "@Override\n public void onMenuClick() {\n Toast.makeText(activity.getApplicationContext(), \...
[ "0.76200897", "0.7457642", "0.7439332", "0.7341113", "0.73030597", "0.6998091", "0.690978", "0.68531036", "0.6852806", "0.68527097", "0.6815378", "0.67972094", "0.67972094", "0.67972094", "0.67972094", "0.67557955", "0.67524546", "0.67518044", "0.67437166", "0.67392856", "0.6...
0.0
-1
Create an AlertDialog.Builder and set the message, and click listeners for the positive and negative buttons on the dialog.
private void showDeleteConfirmationDialog() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(R.string.delete_dialog_msg); builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n ...
[ "0.757845", "0.7389222", "0.7307885", "0.720965", "0.71970844", "0.70984334", "0.69882345", "0.6953497", "0.694219", "0.6899177", "0.6898502", "0.6893149", "0.685361", "0.6795003", "0.677041", "0.67525446", "0.6694843", "0.66902155", "0.6689455", "0.66752523", "0.66394997", ...
0.0
-1
User clicked the "Delete" button, so delete the book.
public void onClick(DialogInterface dialog, int id) { deleteBook(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteBook() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n /...
[ "0.83142185", "0.8123056", "0.80699754", "0.80455554", "0.7651962", "0.75891197", "0.7522042", "0.74065024", "0.7380345", "0.73533255", "0.7275375", "0.71421254", "0.7074106", "0.7067625", "0.70561284", "0.69928914", "0.69362915", "0.6912459", "0.6906882", "0.686503", "0.6858...
0.7284669
11
User clicked the "Cancel" button, so dismiss the dialog and continue editing the book.
public void onClick(DialogInterface dialog, int id) { if (dialog != null) { dialog.dismiss(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When use...
[ "0.72093266", "0.7158121", "0.7117079", "0.7026837", "0.7006901", "0.7005099", "0.7000542", "0.6990905", "0.69746506", "0.69726294", "0.69696903", "0.6965519", "0.6945606", "0.6924192", "0.6902754", "0.6899862", "0.68987507", "0.687996", "0.6852252", "0.68516105", "0.68317497...
0.0
-1
Created by robertoveigajunior on 19/11/16.
public interface CarroAPI { @GET("/carros/tipo/{tipo}") Call<List<Carro>> findBy(@Path("tipo") String tipo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\...
[ "0.6268754", "0.6144022", "0.6135807", "0.60431516", "0.5991209", "0.5991209", "0.5982954", "0.59575915", "0.5936696", "0.59181", "0.58989334", "0.58888113", "0.5888661", "0.58883715", "0.5886441", "0.5885706", "0.5882954", "0.5838204", "0.5797215", "0.5797215", "0.5797215", ...
0.0
-1
Telemetry is the root type for all pieces of telemetry data.
public interface Telemetry {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void outputTelemetry() {\n }", "public org.auvua.utils.protobuffer.AUVprotocol.AUVState.TelemetryOrBuilder getTelemetryOrBuilder() {\n return telemetry_;\n }", "public org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry getTelemetry() {\n return telemetry_;\n }", "org.auvua.u...
[ "0.62396115", "0.6066041", "0.60340136", "0.58738685", "0.5790321", "0.57598346", "0.56488305", "0.56116205", "0.55966055", "0.557325", "0.5461472", "0.5422463", "0.5292983", "0.5180698", "0.5138201", "0.5036336", "0.5019793", "0.4934912", "0.48859575", "0.48510867", "0.47434...
0.575691
6
The background thread must be started for the time to be updated, and this method does just that. This is necessary because the WebContext must be gotten, and this can only be done in the context of a request from a client, so we couldn't have just had a static instance of the thread started from a static initializer, ...
public void startPolling() { if (wContext == null) { wContext = WebContextFactory.get(); } if (t == null) { t = new DateUpdater(); t.setPriority(Thread.MIN_PRIORITY); t.setDaemon(true); t.start(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n boolean run = true;\n while (run) {\n try {\n // Update time and \"log\" it.\n d = new Date();\n System.out.println(d);\n // Update all clients.\n String currentPage = wContext.getCurrentPage();\n Collection sessions = wCo...
[ "0.6303798", "0.6048659", "0.6025919", "0.58661366", "0.5813624", "0.58042574", "0.57576615", "0.57253486", "0.57018346", "0.5647217", "0.5645845", "0.5494743", "0.5477457", "0.5477359", "0.54684055", "0.54291785", "0.5406902", "0.5391428", "0.53773665", "0.53410447", "0.5327...
0.69174933
0
The thread's run() method. Updates the time and all the DWR clients currently "connected" to the server.
public void run() { boolean run = true; while (run) { try { // Update time and "log" it. d = new Date(); System.out.println(d); // Update all clients. String currentPage = wContext.getCurrentPage(); Collection sessions = wContext.getScriptS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run()\n {\n try\n {\n logger.debug(\"Starting server-side thread\");\n while (active)\n {\n List<Node> nodesFromQuery = null;\n if (clients.size() > 0)\n {\n nodesFromQuery = BeanLocator.ge...
[ "0.6856705", "0.68481576", "0.68027985", "0.67698056", "0.6742289", "0.673489", "0.672706", "0.66863835", "0.6666702", "0.6654191", "0.66537344", "0.6639182", "0.66060185", "0.65935796", "0.65928835", "0.6590911", "0.65659094", "0.65525675", "0.65411484", "0.65315217", "0.651...
0.69054055
0
Check that the signatures all match to ensure that it was not tampered with. This also checks that all amounts are positive.
@Override public boolean isValid() { final BlockChainInt outputHash = getOutputHash(); return inputs.stream().map(input -> input.verifySignature(outputHash)).reduce(true, (a, b) -> a && b) && outputs.stream().map(output -> output.getAmount() >= 0).reduce(true, (a, b) -> a && b) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkSigns() {\n\t\tfor (int i = 0; i < signs.size(); i++) {\n\t\t\tif (signs.get(i).isInRange(player.pos, player.direction)) {\n\t\t\t\tsetSign(signs.get(i));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean verifiySignature() {\n\t\tString data = StringUtil.getStr...
[ "0.6200884", "0.617404", "0.60497814", "0.60124016", "0.59632593", "0.59617347", "0.5934042", "0.5848371", "0.58060384", "0.569039", "0.564846", "0.5526814", "0.54653233", "0.5418595", "0.54175645", "0.54032", "0.536851", "0.53271705", "0.53270894", "0.53178716", "0.53134435"...
0.6759555
0
Check how this transaction affects the balances of each wallet.
public Map<PublicKey, Long> getEffects() { Map<PublicKey, Long> effects = new HashMap<>(); for (CurrencyTransactionInput input : inputs) { effects.merge(input.getSourcePublicKey(), -input.getAmount(), (x, y) -> x + y); } for (CurrencyTransactionOutput output : outputs) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\...
[ "0.65876895", "0.6194552", "0.6135718", "0.6085485", "0.604424", "0.58520544", "0.579975", "0.5775113", "0.57413006", "0.5735961", "0.57070583", "0.5685206", "0.56681305", "0.5640536", "0.5629838", "0.55923027", "0.558587", "0.55767006", "0.55732995", "0.5560807", "0.5555934"...
0.0
-1
Metodo....:getAlertaPorAgendamento Descricao.:Busca o status do alarme baseado nas configuracoes de agendamento ("scheduling")
private String getAlertaPorAgendamento(Evento ultimoEvento) { // Busca o tempo de atraso da ultima execucao com o agendamento especificado // Caso o alarme ainda nao possua eventos registrados entao nao considera este // para o estudo do tempo de atraso Date dtAtual = Calendar.getInstance().getTime(); Date ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getAlertaPorStatusExecucao(Evento ultimoEvento)\n\t{\n\t\t// O alerta padrao sera o status atual do alarme, dependendo do valor do atraso esse alerta pode ser modificado\n\t\tString alerta = Alarme.ALARME_OK;\n\t\t// No caso de status de execucao, o alarme possui somente dois estados\n\t\t// Ok ou N...
[ "0.7078232", "0.70343053", "0.6221994", "0.5711966", "0.5630885", "0.55461174", "0.55306304", "0.5529068", "0.5421789", "0.54020077", "0.5363857", "0.5352941", "0.5292447", "0.5275244", "0.5237196", "0.52275467", "0.5201119", "0.51857406", "0.51697683", "0.5145807", "0.512764...
0.75329596
0
Metodo....:getAlertaPorValor Descricao.:Busca o valor do status do alarme baseado no valor do contador do ultimo evento
private String getAlertaPorValor(Evento ultimoEvento) { // O alerta padrao sera o status OK, dependendo do valor do atraso esse alerta pode ser modificado String alerta = Alarme.ALARME_OK; // Verifica se o contador classifica como alerta double valor = ultimoEvento.getValorContador(); // Verifica se o conta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getAlertaPorStatusExecucao(Evento ultimoEvento)\n\t{\n\t\t// O alerta padrao sera o status atual do alarme, dependendo do valor do atraso esse alerta pode ser modificado\n\t\tString alerta = Alarme.ALARME_OK;\n\t\t// No caso de status de execucao, o alarme possui somente dois estados\n\t\t// Ok ou N...
[ "0.7651331", "0.7000145", "0.6914451", "0.6191653", "0.5869434", "0.5745889", "0.56279296", "0.55610627", "0.55132276", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0.54879254", "0...
0.80666095
0
Metodo....:getAlertaPorStatusExecucao Descricao.:Retorna o status do alarme baseado no valor do status da ultima execucao
private String getAlertaPorStatusExecucao(Evento ultimoEvento) { // O alerta padrao sera o status atual do alarme, dependendo do valor do atraso esse alerta pode ser modificado String alerta = Alarme.ALARME_OK; // No caso de status de execucao, o alarme possui somente dois estados // Ok ou Nao Ok que entao se ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getStatusAlarme(Evento ultimoEvento)\n\t{\n\t\t// Se o ultimo evento nao existir para um dado alarme entao o novo status \n\t\t// sera o mesmo status atual definido para o alarme. Portanto a analise sera\n\t\t// feita somente se existir um ultimo evento\n\t\tString statusAlarme = alarme.getStatus();...
[ "0.67378944", "0.6520044", "0.6463138", "0.55637383", "0.5435676", "0.54289675", "0.5400165", "0.53956306", "0.538617", "0.53631985", "0.5329028", "0.53278345", "0.53278345", "0.53278345", "0.53278345", "0.53278345", "0.53278345", "0.53278345", "0.53278345", "0.53278345", "0....
0.8214494
0
Metodo....:getStatusAlarme Descricao.:Define o novo status que sera definido para o alarme
private String getStatusAlarme(Evento ultimoEvento) { // Se o ultimo evento nao existir para um dado alarme entao o novo status // sera o mesmo status atual definido para o alarme. Portanto a analise sera // feita somente se existir um ultimo evento String statusAlarme = alarme.getStatus(); if (ultimoEvento...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getStatus() {return status;}", "public Status getStatus();", "public Status getStatus() {\r\n\t return status;\r\n\t }", "public int getStatus();", "public int getStatus();", "public int getStatus();", "public String getAstatus() {\n return astatus;\n }", "public St...
[ "0.7595296", "0.75109947", "0.7319225", "0.7312145", "0.7312145", "0.7312145", "0.72928137", "0.729266", "0.7257356", "0.72561044", "0.71973366", "0.71973366", "0.71973366", "0.71973366", "0.71774584", "0.71595955", "0.71595955", "0.71595955", "0.71595955", "0.71595955", "0.7...
0.7227114
10
TODO Autogenerated method stub
@Override public Iterator createIterator() { return bestSongs.values().iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ access modifiers changed from: protected
public void subscribeActual(SingleObserver<? super R> singleObserver) { try { this.source.subscribe(new ReduceSeedObserver(singleObserver, this.reducer, ObjectHelper.requireNonNull(this.seedSupplier.call(), "The seedSupplier returned a null value"))); } catch (Throwable th) { Exc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375959", "0.70425177", "0.69218665", "0.6908857", "0.68462455", "0.68293995", "0.6805953", "0.6583417", "0.65397364", "0.65014184", "0.6491877", "0.6491877", "0.6472813", "0.64386034", "0.6432003", "0.6432003", "0.64291835", "0.6425716", "0.6419082", "0.6409203", "0.64066...
0.0
-1
Case 0: Identical person do not result in any differences
@Test public void testCompareEqualsCase0() throws IOException { Person p1 = DataUtil.readDataFromFile("test/data/case0/case0-person.json", Person.class); Person p2 = DataUtil.readDataFromFile("test/data/case0/case0-person.json", Person.class); IContext ctx = ObjectCompare.compare(p1, p2); debug(ctx.getD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testCompareCase1() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case1/case1-person1.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case1/case1-person2.json\", Person.class);\r\n\r\n\t\tIContext ctx = ObjectCompare.compare(p1, ...
[ "0.60556984", "0.5950092", "0.5840393", "0.58201385", "0.5599134", "0.55849844", "0.5574288", "0.5549634", "0.5536654", "0.5529148", "0.54402816", "0.5419475", "0.54188377", "0.54141724", "0.5405864", "0.53900224", "0.53685856", "0.53635883", "0.5338989", "0.5324938", "0.5323...
0.6184038
0
Case 1: If fields have different value, they result in differences.
@Test public void testCompareCase1() throws IOException { Person p1 = DataUtil.readDataFromFile("test/data/case1/case1-person1.json", Person.class); Person p2 = DataUtil.readDataFromFile("test/data/case1/case1-person2.json", Person.class); IContext ctx = ObjectCompare.compare(p1, p2); debug(ctx.getDiffe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEqualsReturnsFalseOnDifferentIdVal() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n }", "private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2...
[ "0.6324495", "0.62249374", "0.61573094", "0.6037697", "0.5920086", "0.58888996", "0.58854675", "0.5862201", "0.571179", "0.557898", "0.55456764", "0.54901475", "0.5470912", "0.5446864", "0.5416562", "0.541443", "0.54009604", "0.53601485", "0.53457755", "0.53414506", "0.533648...
0.0
-1
Case 2: One of the field is different but we can configure it to ignore
@Test public void testCompareCase2() throws IOException { Person p1 = DataUtil.readDataFromFile("test/data/case2/case2-person1.json", Person.class); Person p2 = DataUtil.readDataFromFile("test/data/case2/case2-person2.json", Person.class); // Custom context String ageFieldName = FieldUtil.makeFieldName(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean shouldSkipField(FieldAttributes f) {\n\t\t return f.getName().equals(\"user_id\")\n || f.getName().equals(\"owner\")\n || f.getName().equals(\"recipient\")\n || f.getName().equals(\"isGood\")\n || f.getName().equals(\"reward\");\n\t\t}...
[ "0.6514285", "0.6489749", "0.62608665", "0.59728146", "0.5733222", "0.56926864", "0.5692624", "0.5645839", "0.5624558", "0.560184", "0.54798234", "0.54720175", "0.5471452", "0.5459604", "0.5373047", "0.53618854", "0.53553754", "0.53493667", "0.5339831", "0.53317565", "0.53115...
0.0
-1
Case 3: Nested collection is compared. Collection is not in a order, but entities are identical.
@Test public void testCompareCase3() throws IOException { Person p1 = DataUtil.readDataFromFile("test/data/case3/case3-person1.json", Person.class); Person p2 = DataUtil.readDataFromFile("test/data/case3/case3-person2.json", Person.class); // Custom context IContext ctx = ObjectCompare.compare(p1, p2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean compareObjects(Object object1, Object object2, AbstractSession session) {\n Object firstCollection = getRealCollectionAttributeValueFromObject(object1, session);\n Object secondCollection = getRealCollectionAttributeValueFromObject(object2, session);\n ContainerPolicy containerP...
[ "0.65720814", "0.61649567", "0.60724777", "0.60681456", "0.6051369", "0.60402185", "0.6028083", "0.5961524", "0.5960683", "0.5914127", "0.5884079", "0.586213", "0.5851341", "0.5827973", "0.5794389", "0.5781936", "0.57335025", "0.5717599", "0.5691936", "0.5645845", "0.55967504...
0.0
-1
Case 4: Nested collection is compared and differences are identified. Collection is not in a order.
@Test public void testCompareCase4() throws IOException { Person p1 = DataUtil.readDataFromFile("test/data/case4/case4-person1.json", Person.class); Person p2 = DataUtil.readDataFromFile("test/data/case4/case4-person2.json", Person.class); // Custom context IContext ctx = ObjectCompare.compare(p1, p2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddAll_int_Collection_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n List expResult = Arrays.asList(3, 1...
[ "0.6342223", "0.62565494", "0.6096818", "0.60250825", "0.6022617", "0.601855", "0.59776294", "0.5926459", "0.5921754", "0.58816415", "0.58470947", "0.58350927", "0.58295685", "0.5808326", "0.57988656", "0.5773804", "0.57672155", "0.5757442", "0.5756103", "0.57280755", "0.5720...
0.0
-1
Case 4: Nested collection is compared and differences are identified. Collection is not in a order. second level nested collection has a difference.
@Test public void testCompareCase5() throws IOException { Person p1 = DataUtil.readDataFromFile("test/data/case5/case5-person1.json", Person.class); Person p2 = DataUtil.readDataFromFile("test/data/case5/case5-person2.json", Person.class); // Custom context IContext ctx = ObjectCompare.compare(p1, p2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddAll_int_Collection_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n instance.addAll(1, c);\n\n List expResult = Arrays.asList(3, 1...
[ "0.6127617", "0.6115955", "0.5977303", "0.59031415", "0.5879237", "0.5866703", "0.58500695", "0.5788291", "0.57667714", "0.56950074", "0.5683636", "0.5681265", "0.5663669", "0.56571263", "0.5651753", "0.5640336", "0.56279814", "0.56185234", "0.56109643", "0.56087995", "0.5591...
0.0
-1
Tries to do clearfixing of nodes with wrong height due to float
private void compareAndSetWidthHeight(HtmlNode n) { if (n.parent != null) { int parent_height = n.parent.height; int height = n.height; if (!n.isHidden() && height > parent_height) { n.parent.height = height; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update_height() {\r\n int tmp_height = 0;\r\n int tmp_left = -1;\r\n int tmp_right = -1;\r\n\r\n // set height of null children to -1\r\n if (leftChild != null) {\r\n tmp_left = leftChild.height;\r\n }\r\n if (rightChild != null) {\r\n ...
[ "0.6253995", "0.600218", "0.55661654", "0.54690915", "0.52906424", "0.52611816", "0.52524513", "0.5242327", "0.5219885", "0.5195378", "0.51427674", "0.51367486", "0.5106333", "0.509996", "0.5095576", "0.50820076", "0.50420445", "0.49981046", "0.49977714", "0.49860463", "0.498...
0.53192776
4
/System.out.printf("[%s] balanced? %b\n", "()", areParensBalanced("()")); System.out.printf("[%s] balanced? %b\n", "", areParensBalanced("")); System.out.printf("[%s] balanced? %b\n", "())", areParensBalanced("())")); System.out.printf("[%s] balanced? %b\n", "(()", areParensBalanced("(()")); System.out.printf("[%s] bal...
public static void main(String[] args) { TreeNode<Integer> node = new TreeNode<>(7); node.left = new TreeNode<>(2); node.left.left = new TreeNode<>(1); node.left.right = new TreeNode<>(3); node.right = new TreeNode<>(5); node.right.left = new TreeNode<>(4); node....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n String s=\"[()]{}{[()()]()}\";\n \n System.out.println(isBalanced(s));\n String s1=\"[(])\";\n System.out.println(isBalanced(s1));\n \n \n }", "public static void main(String[] args) \r\n\t\t{ \r\n\t\t\tString expr...
[ "0.72516453", "0.71085817", "0.70088285", "0.68331707", "0.6742805", "0.6414668", "0.6302725", "0.62190616", "0.6218073", "0.6213652", "0.6037073", "0.6002984", "0.59634775", "0.5949843", "0.5907058", "0.58640486", "0.58089066", "0.5797831", "0.5794589", "0.575033", "0.569029...
0.0
-1
size MUST be 2^n; capacity is size1: at least one element MUST be empty
public IntMap(int size){ hashMask=size-1; indexMask=(size<<1)-1; data=new int[size<<1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}", "private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t...
[ "0.7433702", "0.70418644", "0.683548", "0.6754281", "0.67530346", "0.67530346", "0.66767657", "0.66767657", "0.6653048", "0.66097647", "0.6560569", "0.6549498", "0.65383554", "0.6511266", "0.6458191", "0.6421716", "0.6407911", "0.6391674", "0.63903487", "0.63407385", "0.62926...
0.0
-1
same key must be used with the same hash
void put(final int hash, final int key, final int value){ //System.out.println("put("+hash+","+key+","+value+")"); if(key==0){ hasZeroKey=true; zeroValue=value; return; } int i=(hash&hashMask)<<1; int k; while((k=data[i])!=0 && k!=key) i=(i+2)&indexMask;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void hashCodeDifferentId() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setId(2);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Test\n\tpublic void hashCodeSameObject() {\n\t\tProductScanIma...
[ "0.7003196", "0.6981641", "0.6782015", "0.66996485", "0.66639173", "0.6551842", "0.65059423", "0.64616054", "0.6441431", "0.64369047", "0.6432322", "0.64242554", "0.6341809", "0.63311756", "0.6319842", "0.63002264", "0.6299673", "0.62746817", "0.62705094", "0.62705094", "0.62...
0.0
-1
Devolve um Array de Produtos vindo da API
public static ArrayList<Produto> parserJsonProdutos(JSONArray response, Context context){ System.out.println("--> Produto: " + response); ArrayList<Produto> tempListaProdutos = new ArrayList<Produto>(); try { for (int i = 0; i < response.length(); i++){ JSONObject ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET(\"montaje/proyectos/ver/\")\n Call<List<clsProyecto>> getProyectos();", "public Collection<Proyecto> leerProyectosCollection() {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto[] proyecto = plantilla.getForObject(\"http://localhost:5000/proyectos\", Proyecto[].class);\n\t\t\tList<Proy...
[ "0.63127005", "0.62384623", "0.62003285", "0.6131753", "0.6127004", "0.61169606", "0.61075103", "0.6060355", "0.59652084", "0.59189713", "0.5844459", "0.58430016", "0.5828811", "0.58015746", "0.58002263", "0.5796713", "0.5792707", "0.578953", "0.57888913", "0.578157", "0.5779...
0.64340436
0
Devolve um Produto vindo da API
public static Produto parserJsonProdutos(String response, Context context){ System.out.println("--> PARSER ADICIONAR: " + response); Produto auxProduto = null; try { JSONObject produto = new JSONObject(response); int id = produto.getInt("id"); int preco_uni...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET(\"montaje/proyectos/ver/\")\n Call<List<clsProyecto>> getProyectos();", "@GetMapping(\"/produtos/{id}\")\n @Timed\n public ResponseEntity<Produto> getProduto(@PathVariable Long id) {\n log.debug(\"REST request to get Produto : {}\", id);\n Produto produto = produtoRepository.findOne(i...
[ "0.5885306", "0.5789704", "0.5784693", "0.57568663", "0.56258786", "0.5580753", "0.5544523", "0.5525167", "0.55184513", "0.5506262", "0.54670566", "0.5450459", "0.54204714", "0.541448", "0.54138327", "0.53966916", "0.5366227", "0.5351148", "0.5343404", "0.53392076", "0.533859...
0.49992242
97
base Object, relations Lists (1 objects)
public List<Choosecat> FindAll_Choosecat() { return ChoosecatService.FindAll("id", JPAOp.Asc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Relations() {\n relations = new ArrayList();\n }", "public Set<Relation> getRelations();", "public String[] listRelations();", "@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();", "@Override\n public Set<Edge<PhysicalObj...
[ "0.6878032", "0.6675597", "0.65498644", "0.64164156", "0.6320341", "0.6164993", "0.61366487", "0.6122261", "0.60835445", "0.6081502", "0.6008996", "0.6006919", "0.59958583", "0.5984316", "0.59801906", "0.59326184", "0.591255", "0.59108716", "0.5908474", "0.58691263", "0.58550...
0.0
-1
base Object, relations Lists (1 objects)
@Override protected void ResetBaseObject() { super.ResetBaseObject(); // new Base Object baseEntity = new Chooseval(); // new other Objects and set them into Base object // refresh Lists baseEntityList = ChoosevalService.FindAll("id", JPAOp.Asc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Relations() {\n relations = new ArrayList();\n }", "public Set<Relation> getRelations();", "public String[] listRelations();", "@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();", "@Override\n public Set<Edge<PhysicalObj...
[ "0.6878032", "0.6675597", "0.65498644", "0.64164156", "0.6320341", "0.6164993", "0.61366487", "0.6122261", "0.60835445", "0.6081502", "0.6008996", "0.6006919", "0.59958583", "0.5984316", "0.59801906", "0.59326184", "0.591255", "0.59108716", "0.5908474", "0.58691263", "0.58550...
0.5611381
37
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view= inflater.inflate(R.layout.fragment_company_contactus, container, false); preferences=getActivity().getSharedPreferences("company_data",0); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
double latitude = location.getLatitude(); double longiTude = location.getLongitude(); String place = location.getAddrStr(); AttenceLimitInfo attenceLimitInfo = new AttenceLimitInfo(); attenceLimitInfo.setAntiTude((float) latitude); attenceLimitInfo.setLongiTude((float) longiTude); attenceLimitInfo.setDescription(place)...
@Override public void onReceiveLocation(BDLocation location) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showMyLocation() {\n\n LocationManager locationManager = (LocationManager) activity.getSystemService(LOCATION_SERVICE);\n\n String locationProvider = this.getEnabledLocationProvider();\n\n if (locationProvider == null) {\n return;\n }\n\n // Millisecond\n ...
[ "0.5955083", "0.5721751", "0.5687462", "0.56720924", "0.56599134", "0.5637939", "0.55719656", "0.5566247", "0.5519831", "0.55021983", "0.54709715", "0.54619783", "0.54146355", "0.53954095", "0.5394107", "0.53831226", "0.53811496", "0.53806514", "0.5368724", "0.53635806", "0.5...
0.0
-1
/ We cannot realistically handle negation as that would require translating most if not all query logic into collectRequiredTables. Specifically CQConcept/Filters. Additionally, it would require collectRequiredEntities to be perfect, instead of being good enough, since excluding entities that _might_ not be included wo...
@Override public RequiredEntities collectRequiredEntities(QueryExecutionContext context) { return new RequiredEntities(context.getBucketManager().getEntities().keySet()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void preconditions(Object entity) throws Exception {\n }", "@Test\n\tpublic void testExcludeEligible() throws InterruptedException, ExecutionException,\n\t\t\tIOException, TimeoutException {\n\t\ttestExcludeEligible(null, null, null, Arrays.asList(1, 2));\n\t\ttestExcludeEligible(Bool...
[ "0.54224944", "0.5293854", "0.5270529", "0.5256572", "0.5255789", "0.50956196", "0.49532595", "0.4953206", "0.49413955", "0.49193057", "0.48995122", "0.48426804", "0.48161986", "0.4807416", "0.47884455", "0.47650984", "0.47424424", "0.47396433", "0.47270975", "0.47041935", "0...
0.691058
0
store the new pattern by updating the broadcast state
@Override public void processBroadcastElement(SocketEvent event, Context ctx, Collector<KeyedDataPoint> out) throws Exception { BroadcastState<String, SocketEvent> bcState = ctx.getBroadcastState(amplificationDesc); // storing in MapState with null as VOID default value bcState.put(event.str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addObservingPattern(String pattern, SessionState state)\n\t{\n//\t\t// get the observer and add the pattern\n//\t\tContentObservingCourier o = (ContentObservingCourier) state.getAttribute(STATE_OBSERVER);\n//\t\to.addResourcePattern(ContentHostingService.getReference(pattern));\n//\n//\t\t// ad...
[ "0.5793395", "0.54497236", "0.5378101", "0.52751833", "0.52514815", "0.5237696", "0.5233814", "0.5165008", "0.5141906", "0.5049963", "0.5023568", "0.50063056", "0.49967688", "0.49960777", "0.4976151", "0.49739796", "0.49608764", "0.49343774", "0.49185237", "0.49138814", "0.49...
0.4613693
52
set adapter for plan fragment
private void refreshList() { ArrayAdapter<Plan> planAdapter = new PlanAdapter(); mListView.setAdapter(planAdapter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdapter() {\n binding.RvwalletAmount.setLayoutManager(new GridLayoutManager(getActivity(), 2));\n binding.RvwalletAmount.setHasFixedSize(true);\n WalletAdapter kyCuploadAdapter = new WalletAdapter(getActivity(), getListWallet(), this);\n binding.RvwalletAmount.setAdapter(...
[ "0.7137445", "0.6760209", "0.6637252", "0.654916", "0.65426403", "0.6494325", "0.6442731", "0.64196295", "0.6389616", "0.6389119", "0.62232417", "0.61370265", "0.6077939", "0.6074383", "0.6029289", "0.6003296", "0.6000931", "0.5971038", "0.5962671", "0.59366876", "0.58866215"...
0.61531526
11
load all data from database
private void loading(){ mDbHelper = new DbHelper(getActivity()); if(!(mDbHelper.getPlanCount() == 0)){ plan_list.addAll(mDbHelper.getAllPlan()); } refreshList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }", "public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}", "public abstract void load...
[ "0.7536474", "0.7319393", "0.72218907", "0.7210316", "0.7068121", "0.69916546", "0.6961671", "0.68366104", "0.6796208", "0.6796208", "0.67611563", "0.6751526", "0.6740732", "0.6736529", "0.6727243", "0.6713566", "0.6696749", "0.66888744", "0.66850525", "0.6672145", "0.664295"...
0.6399013
38
when floating action button clicked
@Override public void onClick(View v) { if(v == mFab) { final Dialog adddialog = new Dialog(getActivity()); adddialog.setContentView(R.layout.add_plan_layout); adddialog.setCancelable(false); adddialog.show(); Button confirm = (Button) adddialog.fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void showFloatingButton() {\n floatingActionButton.show();\n }", "private void setupFloatingActionButtons() {\n final FloatingActionButton fabAddFollow = (FloatingActionButton) myView.findViewById(R.id.fabAddFollow);\n fabAddFollow.setOnClickListener(new View.OnClickListener...
[ "0.69346684", "0.6842144", "0.68410736", "0.68232024", "0.6753614", "0.66614884", "0.66215587", "0.6498403", "0.6482909", "0.64398706", "0.63585347", "0.6339784", "0.6258757", "0.6249463", "0.62462676", "0.622086", "0.6193119", "0.6189394", "0.6142484", "0.6131375", "0.609222...
0.0
-1
end of setPartner to Login Class
public SearchGUI(){ super("Search GUI"); setSize(600,500); setResizable(false); setLocationRelativeTo(null); setLayout(new BorderLayout()); setDefaultCloseOperation(EXIT_ON_CLOSE); panelPro = new JPanel(new GridBagLayout()); add(panelPro, BorderLayout.NORTH); grid = new GridBagConstraints(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "protected void login() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public static void Login() \r\n\t{\n\t\t\r\...
[ "0.7910276", "0.7847887", "0.7774163", "0.73611367", "0.72820413", "0.7164554", "0.71597064", "0.71521366", "0.70789015", "0.7012796", "0.6990202", "0.6964777", "0.6935698", "0.6922884", "0.68701303", "0.6856549", "0.6853633", "0.68276095", "0.67802495", "0.67800236", "0.6778...
0.0
-1
TODO Autogenerated method stub
@Override public void deleteMsgById(int mid) { mp.deleteMsgById(mid); }
{ "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 deleteRes(int rid) { rmap.deleteRes(rid); }
{ "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 List<Sysmanager> findChecksys(Sysmanager sys) { return sm.checksys(sys); }
{ "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
move to the closing bracket
public static SignificanceHeuristic parse(XContentParser parser) throws IOException, QueryShardException { if (parser.nextToken().equals(XContentParser.Token.END_OBJECT) == false) { throw new ElasticsearchParseException( "failed to parse [percentage] significance heuristic. expected ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endBracket()\n\t\t{\n\t\tcurrentParseTree.rightBound = characterIndex;\n\n\t\t// convert the list of children to an array\n\t\tcurrentParseTree.children = new ParseTree[currentParseTreeChildren.size()];\n\t\tfor (int i = 0; i < currentParseTreeChildren.size(); i++)\n\t\t\tcurrentParseTree.children[i] =...
[ "0.6570012", "0.63505715", "0.6304025", "0.6270288", "0.613854", "0.61185557", "0.60528815", "0.59150475", "0.58634114", "0.5768577", "0.5745754", "0.5715565", "0.57120353", "0.567354", "0.566562", "0.5647465", "0.5644028", "0.56014454", "0.55311066", "0.5518889", "0.5516531"...
0.0
-1
Indicates the significance of a term in a sample by determining what percentage of all occurrences of a term are found in the sample.
@Override public double getScore(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize) { checkFrequencyValidity(subsetFreq, subsetSize, supersetFreq, supersetSize, "PercentageScore"); if (supersetFreq == 0) { // avoid a divide by zero issue return 0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected float score(BasicStats stats, float termFreq, float docLength) {\n double s = 0.75;\n\n long N = stats.getNumberOfDocuments();\n long df = stats.getDocFreq();\n float cwd = termFreq;\n float cwq = 1; //assume that the query term frequency is always one\n ...
[ "0.58621746", "0.58613867", "0.5838996", "0.57400566", "0.57352144", "0.56957936", "0.56839347", "0.56790215", "0.56433314", "0.56336397", "0.5582392", "0.5575175", "0.55409664", "0.5502984", "0.54664177", "0.545025", "0.5445568", "0.5434336", "0.5395909", "0.5385528", "0.537...
0.0
-1
Constructor to be used only by the builder.
protected Machine(final RestContext<AbiquoApi, AbiquoAsyncApi> context, final MachineDto target) { super(context, target); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Builder() {\n\t\t}", "private Builder()\n {\n }", "private Builder() {\n }", "private Builder() {\n }", "private Builder() {}", "public Builder() {\n\t\t}", "public Builder() {\n }", "public Builder() {\n }", "public Builder() {}", "public Builder...
[ "0.78753823", "0.7837411", "0.78064895", "0.78064895", "0.7691248", "0.76522386", "0.75209075", "0.75209075", "0.7426873", "0.7426873", "0.7426873", "0.7409102", "0.7376953", "0.73278487", "0.723683", "0.71667486", "0.71483856", "0.7136429", "0.70155394", "0.6987519", "0.6981...
0.0
-1
Parent access Retrieve the unmanaged rack where the machine is.
public Rack getRack() { RESTLink link = checkNotNull(target.searchLink(ParentLinkName.RACK), ValidationErrors.MISSING_REQUIRED_LINK + " " + ParentLinkName.RACK); ExtendedUtils utils = (ExtendedUtils) context.getUtils(); HttpResponse response = utils.getAbiquoHttpClient().get(link); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/rack\")\n\tpublic Rack getRack() {\n\n\t\treturn rack;\n\t}", "Rack getByResourceGroup(String resourceGroupName, String rackName);", "public String getClientMachine();", "public ArrayList<String> getRack() {\n\t\treturn subsets;\n\t}", "public com.hps.july.persistence.SuperRegion...
[ "0.69822115", "0.5949644", "0.568824", "0.55359197", "0.5403682", "0.53515285", "0.52285093", "0.50676167", "0.50625396", "0.49354735", "0.48507017", "0.48435843", "0.4806164", "0.48054063", "0.47997507", "0.47809482", "0.4777881", "0.4747604", "0.4742336", "0.47329867", "0.4...
0.71934146
0
Gets the list of virtual machines in the physical machine.
public List<VirtualMachine> listVirtualMachines() { MachineOptions options = MachineOptions.builder().sync(false).build(); VirtualMachinesWithNodeExtendedDto vms = context.getApi().getInfrastructureApi() .listVirtualMachinesByMachine(target, options); return wrap(context, VirtualMachine.cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VirtualMachine> listRemoteVirtualMachines() {\n MachineOptions options = MachineOptions.builder().sync(true).build();\n VirtualMachinesWithNodeExtendedDto vms = context.getApi().getInfrastructureApi()\n .listVirtualMachinesByMachine(target, options);\n return wrap(context, Vir...
[ "0.7743158", "0.74124056", "0.732596", "0.67864436", "0.6561057", "0.64595276", "0.64566284", "0.64428", "0.6223648", "0.6134944", "0.5916764", "0.5869538", "0.58595765", "0.5851662", "0.58228713", "0.58207923", "0.5767589", "0.57450145", "0.57280326", "0.5695068", "0.5689131...
0.82640564
0
Gets the list of virtual machines in the physical machine matching the given filter.
public List<VirtualMachine> listVirtualMachines(final Predicate<VirtualMachine> filter) { return Lists.newLinkedList(filter(listVirtualMachines(), filter)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VirtualMachine> listRemoteVirtualMachines(final Predicate<VirtualMachine> filter) {\n return Lists.newLinkedList(filter(listVirtualMachines(), filter));\n }", "public List<VirtualMachine> listVirtualMachines() {\n MachineOptions options = MachineOptions.builder().sync(false).build();\n ...
[ "0.7799426", "0.6585082", "0.6147667", "0.58498293", "0.58091056", "0.57572496", "0.5753083", "0.56608194", "0.56574136", "0.54663503", "0.5382314", "0.5378959", "0.5172227", "0.5094253", "0.50863695", "0.50453424", "0.5039486", "0.50348663", "0.4990187", "0.49717504", "0.489...
0.83323026
0
Gets a single virtual machine in the physical machine matching the given filter.
public VirtualMachine findVirtualMachine(final Predicate<VirtualMachine> filter) { return Iterables.getFirst(filter(listVirtualMachines(), filter), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VirtualMachine findRemoteVirtualMachine(final Predicate<VirtualMachine> filter) {\n return Iterables.getFirst(filter(listVirtualMachines(), filter), null);\n }", "public List<VirtualMachine> listVirtualMachines(final Predicate<VirtualMachine> filter) {\n return Lists.newLinkedList(filter(listV...
[ "0.7525826", "0.5965466", "0.5764368", "0.5312596", "0.5130798", "0.5130798", "0.5122882", "0.5083046", "0.5054382", "0.49704832", "0.49250475", "0.48139623", "0.47916391", "0.47685227", "0.47513625", "0.46126464", "0.45814833", "0.45768255", "0.45341337", "0.4519677", "0.451...
0.7931381
0
Gets the list of virtual machines in the physical machine synchronizing virtual machines from remote hypervisor with abiquo's database.
public List<VirtualMachine> listRemoteVirtualMachines() { MachineOptions options = MachineOptions.builder().sync(true).build(); VirtualMachinesWithNodeExtendedDto vms = context.getApi().getInfrastructureApi() .listVirtualMachinesByMachine(target, options); return wrap(context, VirtualMachi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VirtualMachine> listVirtualMachines() {\n MachineOptions options = MachineOptions.builder().sync(false).build();\n VirtualMachinesWithNodeExtendedDto vms = context.getApi().getInfrastructureApi()\n .listVirtualMachinesByMachine(target, options);\n return wrap(context, VirtualM...
[ "0.6909291", "0.6383007", "0.62625533", "0.6077801", "0.60466087", "0.5915172", "0.5603216", "0.555023", "0.5468563", "0.5349479", "0.5348559", "0.5298062", "0.5239825", "0.5236675", "0.52355164", "0.5222642", "0.52222735", "0.52101105", "0.51834565", "0.51515836", "0.5146267...
0.7582461
0
Gets the list of virtual machines in the physical machine matching the given filter synchronizing virtual machines from remote hypervisor with abiquo's database.
public List<VirtualMachine> listRemoteVirtualMachines(final Predicate<VirtualMachine> filter) { return Lists.newLinkedList(filter(listVirtualMachines(), filter)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VirtualMachine> listVirtualMachines(final Predicate<VirtualMachine> filter) {\n return Lists.newLinkedList(filter(listVirtualMachines(), filter));\n }", "public List<VirtualMachine> listRemoteVirtualMachines() {\n MachineOptions options = MachineOptions.builder().sync(true).build();\n ...
[ "0.72655725", "0.6671593", "0.62890893", "0.5879146", "0.5623036", "0.55624187", "0.5477845", "0.53991354", "0.53613025", "0.53095365", "0.5293374", "0.5265236", "0.50450087", "0.49742186", "0.49431264", "0.48929057", "0.48859194", "0.48838034", "0.48340857", "0.477417", "0.4...
0.75831056
0
Gets a single virtual machine in the physical machine matching the given filter synchronizing virtual machines from remote hypervisor with abiquo's database.
public VirtualMachine findRemoteVirtualMachine(final Predicate<VirtualMachine> filter) { return Iterables.getFirst(filter(listVirtualMachines(), filter), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VirtualMachine findVirtualMachine(final Predicate<VirtualMachine> filter) {\n return Iterables.getFirst(filter(listVirtualMachines(), filter), null);\n }", "public List<VirtualMachine> listRemoteVirtualMachines(final Predicate<VirtualMachine> filter) {\n return Lists.newLinkedList(filter(listV...
[ "0.70496225", "0.62166953", "0.56379056", "0.5458059", "0.51914567", "0.5035175", "0.4912477", "0.4909858", "0.49046853", "0.4892577", "0.48794982", "0.48711023", "0.48689118", "0.48240456", "0.48232266", "0.4807648", "0.4767622", "0.4754168", "0.4754168", "0.45522276", "0.45...
0.733283
0