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
TODO: Update argument type and name
public void onInsuranceFragmentInteraction(Uri uri, int selectedImageView, Bitmap croppedBitmapImage, String base64Path);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
Describe the columns you'd like to have returned. Selecting from the Thumbnails location gives you both the Thumbnail Image ID, as well as the original image ID
public Uri getImageFromCamera() { String[] projection = { MediaStore.Images.Thumbnails._ID, // The columns we want MediaStore.Images.Thumbnails.IMAGE_ID, MediaStore.Images.Thumbnails.KIND, MediaStore.Images.Thumbnails.DATA}; String selecti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getColumnImage(Object arg0, int arg1) {\n\t\t\t\treturn null;\r\n\t\t\t\t\r\n\t\t\t}", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public Image getColumnImage(Object arg0, int arg1) {\n\t\t\treturn null;\r\n\t\t...
[ "0.6048984", "0.6002166", "0.5981683", "0.5780414", "0.5609057", "0.5499247", "0.54023355", "0.53893214", "0.53879267", "0.5337824", "0.5301075", "0.5285746", "0.5264482", "0.5253475", "0.52227694", "0.52227694", "0.52227694", "0.5220152", "0.52198637", "0.52198637", "0.52063...
0.5459449
6
/ Splits a merged VCF into individual files with noise
static void splitVcf(String inputFile, String outDir) throws Exception { int n = countInputs(inputFile); if(n == 0) { return; } // Make output directory for the split VCF files Path currentRelativePath = Paths.get(""); outDir = currentRelativePath.toAbsolutePath().toString() + "/" + outDir; File...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeSubcutaneousFatVOIfromIntensityProfiles() {\r\n \r\n int[] xLocsSubcutaneousVOI;\r\n int[] yLocsSubcutaneousVOI;\r\n int[] zVals;\r\n try {\r\n xLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n yLocsSubcutaneousVOI = new int [360...
[ "0.55757934", "0.5501059", "0.5460714", "0.54273987", "0.5396955", "0.5348446", "0.5307879", "0.52325016", "0.51669323", "0.51575124", "0.51069134", "0.5082644", "0.5049809", "0.5022725", "0.49703425", "0.4906847", "0.49060032", "0.48953727", "0.48716265", "0.48532808", "0.48...
0.69053996
0
/ Adjusts a string to incorporate errors and changes in its length
static String adjustStringLength(String s, int newLength) { char[] res = new char[newLength]; res[0] = s.charAt(0); if(newLength == s.length()) { // In this case no insertions or deletions are needed for(int i = 1; i<res.length; i++) { res[i] = s.charAt(i); } } else if(newLength < s.leng...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String makeCorrectSize(String s, int length){\n\t\tStringBuilder sb = new StringBuilder(s); \n\t\tfor(int i = sb.length(); i<length; i++){\n sb.append(\" \");\n }\n\t\treturn sb.toString(); \n\n\t}", "@Test\n public void testAdjustString() {\n Syste...
[ "0.70637816", "0.7045708", "0.6254327", "0.6241633", "0.62220216", "0.6212878", "0.61340225", "0.6071452", "0.6008066", "0.6000565", "0.59916633", "0.59761924", "0.5936974", "0.59234554", "0.5901248", "0.5886373", "0.5843666", "0.58312094", "0.5817645", "0.58051026", "0.57794...
0.6452237
2
/ Mutates a given base to a random other base with a fixed probability
static char mutateBaseWithProb(char base, double p) { if(rand.nextDouble() < p) { int baseAsInt = baseToInt(base); char newBase = intToBase((baseAsInt + rand.nextInt(3) + 1)%4); if(Character.isLowerCase(base)) { newBase += 'a' - 'A'; } return newBase; } else { return base; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "private void mutate(float probability) {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i <...
[ "0.5991264", "0.5880356", "0.5833723", "0.5724698", "0.5721356", "0.5650893", "0.560793", "0.5554363", "0.55371135", "0.55323243", "0.5528489", "0.5525791", "0.5508436", "0.5501425", "0.5499583", "0.5485345", "0.54806244", "0.5476071", "0.547198", "0.5454653", "0.54276955", ...
0.76701105
0
/ Converts integer in [0, 3] to the corresponding element of [A, C, G, T]
static char intToBase(int val) { if(val == 0) { return 'A'; } if(val == 1) { return 'C'; } if(val == 2) { return 'G'; } return 'T'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Integer> singleNumberIII(int[] A) {\n List<Integer> result = new ArrayList<>();\n if (A == null || A.length == 0) {\n return result;\n }\n\n int oxr = 0;\n\n for (int a : A) {\n oxr ^= a;\n }\n\n //2. 查看OXR 1的位置\n int indexOf...
[ "0.5643091", "0.55038077", "0.5395798", "0.5190243", "0.5164543", "0.5156837", "0.5153239", "0.5127192", "0.5117741", "0.51004356", "0.50989026", "0.5078068", "0.5074811", "0.5072243", "0.506977", "0.50574476", "0.504451", "0.5039742", "0.50355417", "0.50186723", "0.49862832"...
0.53411853
3
/ Converts basepair characters to an index (A = 0, C = 1, G = 2, T = 3)
static int baseToInt(char c) { if(c == 'a' || c == 'A') { return 0; } if(c == 'c' || c == 'C') { return 1; } if(c == 'g' || c == 'G') { return 2; } return 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%26 ;\n }", "String getIndexBits();", "private char getMappingCode(char c) {\n if (!Character.isLetter(c)) {\n return 0;\n } \n else {\n return soundexMapping[Character.toUpperCase(c)...
[ "0.66499263", "0.63773", "0.6307429", "0.620913", "0.6199498", "0.61847806", "0.6169923", "0.61368096", "0.6120434", "0.6099664", "0.6098816", "0.6057878", "0.59742576", "0.5955479", "0.5954874", "0.5936698", "0.5934349", "0.59114885", "0.58920705", "0.58916366", "0.58727956"...
0.64226156
1
/ Gets a random subsequence of a given length of integers in the range [minVal, maxVal]
static int[] getRandomSubsequence(int minVal, int maxVal, int subseqLength) { ArrayList<Integer> vals = new ArrayList<Integer>(); for(int i = minVal; i<=maxVal; i++) { vals.add(i); } Collections.shuffle(vals); int[] res = new int[subseqLength]; for(int i = 0; i<res.length; i++) { res[i] = vals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[] getRandomIntervalSamplingLengthFirst(Random rand, int min, int max, int seriesLength) throws Exception {\n\t\tint[] interval = new int[3]; //[start_index,end_index,length]\n\t\t\n\t\tif (max > seriesLength || max <= 0) {//if max == 0, assume max possible length\n\t\t\tmax = seriesLength;\n\t\t}...
[ "0.6524938", "0.6133722", "0.6060131", "0.59981275", "0.59344244", "0.5891631", "0.588068", "0.5872285", "0.57640976", "0.5726641", "0.5711402", "0.56781834", "0.5673868", "0.5670869", "0.56539994", "0.56469226", "0.56449425", "0.5633841", "0.562376", "0.5611668", "0.56046045...
0.8407534
0
/ Gets a uniform random number between 2average and 2average, inclusive
static int randomDelta(int average) { return rand.nextInt(4*average + 1) - 2*average; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double uniform() {\r\n return random.nextDouble();\r\n }", "public static double uniform() {\n return random.nextDouble();\n }", "public static double random() {\r\n return uniform();\r\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }...
[ "0.6992015", "0.69555426", "0.6952166", "0.6914932", "0.68452257", "0.68041396", "0.6784181", "0.67606777", "0.6719297", "0.6629036", "0.6597988", "0.6589608", "0.6552947", "0.64801246", "0.6456781", "0.64458084", "0.6424464", "0.64132077", "0.6411718", "0.6390132", "0.633621...
0.6869718
4
/ Counts how many input files were used to produced a given merged VCF File based on length of SUPP_VEC field
static int countInputs(String mergedVcf) throws Exception { Scanner input = new Scanner(new FileInputStream(new File(mergedVcf))); while(input.hasNext()) { String line = input.nextLine(); if(line.length() == 0 || line.startsWith("#")) { continue; } VcfEntry entry = new VcfEntry(line); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "int getSourceFileCoun...
[ "0.6198377", "0.59910977", "0.5948674", "0.59035665", "0.5897613", "0.5897613", "0.5859766", "0.58228683", "0.58228683", "0.57049954", "0.57049954", "0.563565", "0.563565", "0.5627574", "0.5602646", "0.55733144", "0.55460197", "0.5530989", "0.5529719", "0.5529719", "0.551636"...
0.79652673
0
TODO Autogenerated method stub
public static void sycNewTraderClient() { String key = "123"; try { if(newTradeServiceLock.tryLock(5, TimeUnit.SECONDS)){ try{ if(mapTradeService.containsKey(key)){ //客户端发起重连,但是服务端没有断开 } }finally{ newTradeServiceLock.unlock(); } } else{ System.err.println("线程已经超时返回! ke...
{ "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
Creates an effect that causes one more cards not on table (e.g. in a card pile, in hand, etc.) to be placed in a card pile simultaneously.
public PlaceCardsInCardPileFromOffTableSimultaneouslyEffect(Action action, Collection<PhysicalCard> cardsToPlaceInCardPile, Zone cardPile, String cardPileOwner, boolean toBottomOfPile) { super(action); _originalCardsToPlaceInCardPile = Collections.unmodifiableCollection(cardsToPlaceInCardPile); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fakeCards(){\n this.drawPile = new ArrayList<>();\n drawPile.add(new RemoveActionCard(\"Fernsprechgerät\", (float) 0.5, 4, new SpecialActions(0,0,1) ));\n drawPile.add(new MovingCard(\"Millionärin\", 4, 5, 4, 99, new COLOR[]{COLOR.SAND}));\n drawPile.add(new RemoveMoveSellCa...
[ "0.65086865", "0.60870785", "0.6054639", "0.5920541", "0.58268386", "0.5792186", "0.5785783", "0.5745137", "0.5738647", "0.5728", "0.5688667", "0.56439817", "0.56064016", "0.5595598", "0.557219", "0.5550538", "0.5524084", "0.551515", "0.55105466", "0.54840034", "0.5474299", ...
0.52209246
61
Sets some static variables during setup
public void setStaticVariables() throws KKException { KKConfiguration conf; StaticData staticData = staticDataHM.get(getStoreId()); if (staticData == null) { staticData = new StaticData(); staticDataHM.put(getStoreId(), staticData); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initVars() {}", "static void init() {}", "private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}", ...
[ "0.74041474", "0.70431113", "0.69591975", "0.6831681", "0.6746035", "0.67231715", "0.67092806", "0.6707551", "0.6653532", "0.66349995", "0.66340494", "0.66240525", "0.6609472", "0.65980834", "0.6574705", "0.6554909", "0.6554234", "0.654449", "0.65307164", "0.65307164", "0.652...
0.6463455
29
Return a payment details object for CyberSource IPN module
public PaymentDetails getPaymentDetails(Order order, PaymentInfo info) throws Exception { StaticData sd = staticDataHM.get(getStoreId()); /* * The CyberSourceZone zone, if greater than zero, should reference a GeoZone. If the * DeliveryAddress of the order isn't within that Ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPaymentInformation();", "com.dogecoin.protocols.payments.Protos.Payment getPayment();", "public IBankTransfert payment();", "public CreditCard getDefaultPaymentInfo();", "CarPaymentMethod processPayPal();", "public java.lang.String getPaymentinformation () {\r\n\t\treturn paymentinformation;\r\...
[ "0.70073175", "0.62787163", "0.6213744", "0.6105064", "0.6026886", "0.60026217", "0.59965587", "0.5992971", "0.59447753", "0.5907063", "0.5906196", "0.5902326", "0.58888435", "0.5835898", "0.5827223", "0.57899415", "0.5785694", "0.5751909", "0.57474583", "0.5740921", "0.57081...
0.62256473
2
Returns true or false
public boolean isAvailable() throws KKException { return isAvailable(MODULE_PAYMENT_CYBERSOURCESA_STATUS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getResult();", "boolean getResult();", "boolean getResult();", "boolean getResult();", "boolean getIsOk();", "protected boolean func_70814_o() { return true; }", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "bo...
[ "0.7090063", "0.7090063", "0.7090063", "0.7090063", "0.70810926", "0.69709766", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.69659144", "0.68238145", "0.68238145", ...
0.0
-1
Created by Malavika Ramprasad on 12/2/2017.
public interface PostSkillsAPI { @PUT("current_user/add_skills") Call<User> postSkills(@HeaderMap Map<String, String> headers,@Body @Root("user_skills") PostSkills skillObj); }
{ "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\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Overri...
[ "0.5902683", "0.5626138", "0.5611584", "0.56093955", "0.54944634", "0.54927", "0.54815596", "0.5481312", "0.54764044", "0.54702437", "0.54702437", "0.5430193", "0.5397939", "0.53816694", "0.5371588", "0.5370238", "0.53642917", "0.5350794", "0.53412545", "0.53412545", "0.53412...
0.0
-1
add by tsujioku. 2012.4.3
public void onItemImageClick(View view) { RecommendListAdapter listAdapter = new RecommendListAdapter(this, R.layout.search_row, itemList); String mediumURL = this.itemInfo.getMediumImageUrl(); final String largeURL = mediumURL.replace("ex=128x128", "ex=300x300"); listA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void add() {\n\n\t}", "public void add() {\n\t\t\n\t}", "@Override\n\tpublic void add() {\n\t\t\n\t}", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic in...
[ "0.7607049", "0.7004746", "0.68011314", "0.67361027", "0.6637875", "0.6637875", "0.6637875", "0.66296834", "0.635024", "0.63419914", "0.6309294", "0.62991923", "0.62906057", "0.61788833", "0.61653996", "0.615469", "0.6139395", "0.598278", "0.598278", "0.5870988", "0.5850374",...
0.0
-1
TODO: NEW 0327 /itemSearch = new ItemDetailSearchTask(this, shopId, shopName);
public void getItemDetail(String itemCode, String shopId, String shopName) { itemSearch = new ItemDetailSearchTask(this, shopId, shopName, getUUID()); try { itemSearch.execute(itemCode); } catch (RejectedExecutionException e) { LogUtils.getInstance() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\n\t\t\t\tList<StoreArticle> list = getShop().searchByArticle(filter);\n\t\t\t\tStoreArticle[] array = list.toArray(new StoreArticle[0]);\n\t\t\t\tadapter = new SearchByArticleAdapter(SearchActivity.this, R.layout.search_view, array);\n\t\t\...
[ "0.6019238", "0.5904888", "0.5874917", "0.5873434", "0.58527076", "0.57987225", "0.5711463", "0.5606134", "0.56034064", "0.55855906", "0.55730015", "0.5564699", "0.5560635", "0.555451", "0.54890186", "0.54827225", "0.547976", "0.5472562", "0.547255", "0.5459685", "0.54340816"...
0.7237693
0
Pages order in placing an order: ProductPage > CartPage > OrderAddressPage > OrderShippingPage > OrderPaymentPage > OrderSummaryPage > OrderConfirmationPage When
@Test(groups = {"smoke tests"}) public void validPurchase() { page.GetInstance(CartPage.class) .clickProceedToCheckoutButton() //to OrderAddressPage .clickProceedToCheckoutButton() //to OrderShippingPage .acceptTermsAndProceedToCheckout() //to OrderPaymentPage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }", "public static void PurchaseOrder_Navigation() {\n\n\t\tWebdriverWait.findElement(\"link\", \"PROCUREMENT\").click();\n\t\tWebdriverWait.findElement(\"link\", \"Purchase Order\").click();\n\n\t}", "Order placeN...
[ "0.63020027", "0.62504756", "0.6133002", "0.6109666", "0.6081264", "0.6056312", "0.6047293", "0.602191", "0.59453213", "0.59353584", "0.59197706", "0.5917716", "0.5914041", "0.58948475", "0.5889732", "0.5835492", "0.5815264", "0.575167", "0.5749833", "0.5706022", "0.57056165"...
0.6305569
0
Destruction of the servlet.
public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n\t\tsuper.destroy(); \n\t\tSystem.out.println(\"=====destory servlet=========\");\n\t}", "public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }", "@Override\r\n\tpublic void destroy() {\n\t\tSystem.out.println(\"second servlet de...
[ "0.8357607", "0.8068459", "0.7901647", "0.7500556", "0.7443264", "0.6997455", "0.69502616", "0.6783583", "0.6645547", "0.66289103", "0.65331405", "0.64577305", "0.641841", "0.6385528", "0.63693154", "0.63544", "0.63544", "0.63544", "0.63544", "0.6344062", "0.63351953", "0.6...
0.0
-1
The doGet method of the servlet. This method is called when a form has its tag value method equals to get.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOEx...
[ "0.7432514", "0.73521626", "0.7254457", "0.7252173", "0.7243877", "0.72416717", "0.7207163", "0.7207163", "0.7205729", "0.72009903", "0.72009677", "0.71832514", "0.71736676", "0.717088", "0.7159246", "0.71558", "0.71525633", "0.71515167", "0.71400803", "0.7138813", "0.7138813...
0.68978524
94
The doPost method of the servlet. This method is called when a form has its tag value method equals to post.
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String xml = request.getParameter("xml"); System.out.println(xml); PrintWriter out = response.getWriter(); String result = "<Items><Item><error>0</error><Message>ERROR</Message><MidID>OK</MidID><...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, H...
[ "0.7658935", "0.7604116", "0.7525584", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7470697", "0.7468392", "0.74292463", "0.74133605", "0.7403894", "0.7386615", "0.7372828", "0.7371357", ...
0.0
-1
Initialization of the servlet.
public void init() throws ServletException { // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() throws ServletException {\r\n\r\n\t}", "public void init() throws ServletException {\n }", "public void init() throws ServletException {\n\t\t\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t...
[ "0.8178207", "0.8166057", "0.81264925", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", ...
0.7924157
88
Showing notification with text only
private void showNotificationMessage(Context context, String title, String message, String timeStamp, Intent intent) { notificationUtils = new NotificationUtils(context); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); notificationUtils.showNotificationMessage(t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showNotification(final CharSequence text) {\n if (DEBUG) {\n Log.v(TAG, \"showNotification:\" + text);\n }\n // Set the info for the views that show in the notification panel.\n final Notification notification = new Notification.Builder(this)\n .se...
[ "0.76359785", "0.72690296", "0.725709", "0.7031429", "0.70011413", "0.69555193", "0.6948937", "0.6924694", "0.6908786", "0.68690807", "0.6865995", "0.6856011", "0.67886114", "0.6782964", "0.6777991", "0.67460555", "0.6723747", "0.6585565", "0.65836906", "0.6574985", "0.654489...
0.5836464
91
Showing notification with text and image
private void showNotificationMessageWithBigImage(Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) { notificationUtils = new NotificationUtils(context); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); notificationUt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification...
[ "0.7177952", "0.7136897", "0.71050173", "0.70781446", "0.70356023", "0.70314056", "0.699402", "0.69899684", "0.69706285", "0.6931758", "0.6905673", "0.68856", "0.6866918", "0.6796169", "0.67793787", "0.6760812", "0.6754186", "0.67400736", "0.6714269", "0.6713741", "0.67100537...
0.6744229
19
Initialize the contents of the frame.
public void initialize() { frame = new JFrame(); frame.getContentPane().setBackground(new Color(92, 255, 208)); frame.setBounds(100, 100, 1050, 500); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // Dispose on close, otherwise closes all the app frame.setTitle("Creació d'usuari"); Preferences pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
Button actions "Aceptar" & "Reset"
public void actionPerformed(ActionEvent e) { if (e.getSource() == reset) { String def = ""; tname.setText(def); tsurname.setText(def); temail.setText(def); ttlf.setText(def); tpass.setText(def); } else if (e.getSource() == sub) { tname.setText(tname.getText()); tsurname.setText(tsurname.getT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onClickReset(ActionEvent e) {\n\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n adaptee.btnReset_actionPerformed(e);\r\n\t}", "private void btnResetActionPerformed(java.awt.event.ActionEvent evt) {\n reset(); \n }", "private void resetBtn1ActionPerfor...
[ "0.7530472", "0.73226887", "0.7202699", "0.716777", "0.7085706", "0.70527536", "0.69872534", "0.67996025", "0.661644", "0.6600932", "0.658462", "0.6538395", "0.6490615", "0.647715", "0.6476506", "0.6471821", "0.6468622", "0.6468183", "0.6465629", "0.6442661", "0.64376277", ...
0.0
-1
Need to use SimpleCLI.parse() instead
private SimpleCLI(Options options) { this.options = options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void parse(CommandLine cli)\n {\n // Application ID option\n if(hasOption(cli, Opt.APPLICATION_ID, false))\n {\n applicationId = Long.parseLong(getOptionValue(cli, Opt.APPLICATION_ID));\n logOptionValue(Opt.APPLICATION_ID, applicationId);\n }\n\n ...
[ "0.7193369", "0.6992087", "0.69792444", "0.68799865", "0.6811308", "0.672537", "0.66794777", "0.66598845", "0.664224", "0.66130865", "0.65100545", "0.647844", "0.64746153", "0.6459233", "0.64548177", "0.6451203", "0.64252883", "0.6421482", "0.6400369", "0.63947237", "0.638512...
0.5941222
54
Get root folder for current repository.
public String getRepositoryRootFolder() { String userFolder = UnixPathUtil.unixPath(IdatrixPropertyUtil.getProperty("idatrix.metadata.reposity.root","/data/ETL/reposity/")); if (CloudApp.getInstance().getRepository() instanceof KettleFileRepository) { KettleFileRepository fileRepo = (KettleFileRepository) Cloud...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "public String getLocalRepositoryRootFolder() {\n\t\tString userFolder = IdatrixPropertyUtil.getProperty(\"idatrix.local.reposity.root\",getRepositoryRootFolder() );\n\t\tint index = userFolder.indexOf(\"://\");\n\t\tif(...
[ "0.7721618", "0.7631728", "0.7378118", "0.7346", "0.723385", "0.7165427", "0.71333957", "0.7115091", "0.70877224", "0.70496446", "0.70435405", "0.70401144", "0.6977499", "0.68994284", "0.6888738", "0.6849914", "0.6847095", "0.67237145", "0.6692271", "0.6654597", "0.6556852", ...
0.78458905
0
Get root folder for current repository.
public String getLocalRepositoryRootFolder() { String userFolder = IdatrixPropertyUtil.getProperty("idatrix.local.reposity.root",getRepositoryRootFolder() ); int index = userFolder.indexOf("://"); if(index > -1 ) { userFolder = userFolder.substring(index+3); } return userFolder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRepositoryRootFolder() {\n\t\tString userFolder = UnixPathUtil.unixPath(IdatrixPropertyUtil.getProperty(\"idatrix.metadata.reposity.root\",\"/data/ETL/reposity/\"));\n\t\tif (CloudApp.getInstance().getRepository() instanceof KettleFileRepository) {\n\t\t\tKettleFileRepository fileRepo = (KettleFi...
[ "0.78458905", "0.7721618", "0.7378118", "0.7346", "0.723385", "0.7165427", "0.71333957", "0.7115091", "0.70877224", "0.70496446", "0.70435405", "0.70401144", "0.6977499", "0.68994284", "0.6888738", "0.6849914", "0.6847095", "0.67237145", "0.6692271", "0.6654597", "0.6556852",...
0.7631728
2
Get meta store for given user.
public DelegatingMetaStore getMetaStore(String username) throws Exception { if(Utils.isEmpty(username)) { username = CloudSession.getResourceUser(); } if(Utils.isEmpty(username)) { return getDefaultMetaStore(); } DelegatingMetaStore dms = null ; if (metaStores.containsKey(username)) { dms ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserStoreManager getUserStoreManager() throws UserStoreException;", "public com.google.cloud.aiplatform.v1.MetadataStore getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetMetadataSt...
[ "0.6397244", "0.60785985", "0.59154147", "0.5905929", "0.5898508", "0.5871126", "0.5791949", "0.5575205", "0.55429834", "0.55029666", "0.5466731", "0.5463841", "0.5444531", "0.5423563", "0.53910905", "0.5365574", "0.5315916", "0.5309528", "0.5275976", "0.5261473", "0.5227106"...
0.76624656
0
Get default meta store (.meta).
public DelegatingMetaStore getDefaultMetaStore() { return metaStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MetadataStore getMetadataStoreForDisplay() {\n \t\t\tfinal MetadataStore store = omeMeta.getRoot();\n \t\t\tif (service.isOMEXMLMetadata(store)) {\n \t\t\t\tservice.removeBinData((OMEXMLMetadata) store);\n \t\t\t\tfor (int i = 0; i < getImageCount(); i++) {\n \t\t\t\t\tif (((OMEXMLMetadata) store).getTiffDa...
[ "0.68929756", "0.656462", "0.65441775", "0.63585865", "0.63335466", "0.6305399", "0.62246263", "0.62122905", "0.6187461", "0.606413", "0.6009534", "0.5930095", "0.5893638", "0.58130616", "0.57907003", "0.578778", "0.57293147", "0.57293147", "0.57293147", "0.57293147", "0.5729...
0.83968896
0
Initiate user cloud repository.
public String getCloudRepositoryPath(String username) { String userRepoPath = userRepositoryPath( username ); try { CloudRepository.createDir(userRepoPath, CLOUD_REPOSITORY_DIR); return userRepoPath + CLOUD_REPOSITORY_DIR + SEPARATOR; } catch (KettleException e) { logger.error("cloud路径创建失败.",e); retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initUser() {\n\t}", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "@Inject\n public UserRepositoryImpl() {\n database = Fire...
[ "0.63226414", "0.6059265", "0.60518336", "0.6047264", "0.6015475", "0.58315116", "0.5751184", "0.5709537", "0.5695957", "0.56898135", "0.56527555", "0.56345266", "0.5632624", "0.561332", "0.5609581", "0.5602147", "0.56015855", "0.55760974", "0.55648977", "0.55571955", "0.5536...
0.0
-1
Initiate user trans repository.
public String getUserTransRepositoryPath(String username,String group) { String userRepoPath = userRepositoryPath( username ); group = Const.NVL(group, CloudRepository.DEFAULT_GROUP_NAME); if(CloudRepository.ALL_GROUP_NAME.equalsIgnoreCase(group)) { group = null; } try { String transDir = TRAN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initUser() {\n\t}", "@PostConstruct\n public void initUsers() {\n List<MyUser> users = Stream.of(\n new MyUser(\"1\",\"Vaibhav\",\"Vaibhav\"),\n new MyUser(\"2\",\"Abhishek\",\"Abhishek\"),\n new MyUser(\"3\",\"admin\",\"admin\")\n ).collect...
[ "0.663452", "0.6053879", "0.5990824", "0.592208", "0.5897912", "0.5866348", "0.5862084", "0.5858524", "0.5819164", "0.575648", "0.5726491", "0.57085997", "0.57043755", "0.5649125", "0.56376415", "0.5627817", "0.56122756", "0.56066364", "0.5586705", "0.55863404", "0.5548257", ...
0.0
-1
Initiate user jobs repository.
public String getUserJobsRepositoryPath(String username,String group) { String userRepoPath = userRepositoryPath( username ); group = Const.NVL(group, CloudRepository.DEFAULT_GROUP_NAME); if(CloudRepository.ALL_GROUP_NAME.equalsIgnoreCase(group)) { group = null; } try { String jobDir = JOB_REPOSI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startJobs() {\n List<JobProfile> profileList = getJobConfDb().getAcceptedJobs();\n for (JobProfile profile : profileList) {\n LOGGER.info(\"init starting job from db {}\", profile.toJsonStr());\n addJob(new Job(profile));\n }\n }", "public JobManager(){\...
[ "0.6683503", "0.65143865", "0.5851294", "0.5782816", "0.5774481", "0.5689888", "0.56820214", "0.56463367", "0.5594466", "0.557396", "0.55696535", "0.54565674", "0.54450935", "0.54117763", "0.540182", "0.5385879", "0.53773534", "0.5370857", "0.53651536", "0.53556144", "0.53447...
0.0
-1
Initiate user logs repository.
public String getUserLogsRepositoryPath(String username) { String userRepoPath = userRepositoryPath( username ); try { CloudRepository.createDir(userRepoPath, LOG_REPOSITORY_DIR); return userRepoPath + LOG_REPOSITORY_DIR + SEPARATOR; } catch (KettleException e) { logger.error("日志路径创建失败.",e); return u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n LoggerContext ctx = (LoggerContext) LogManager.getContext(false);\n Configuration config = ctx.getConfiguration();\n LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);\n loggerConfig.setLevel(DEBUG ? Level.DEBUG : Level.INFO);\n ...
[ "0.6523507", "0.6183764", "0.6182473", "0.6160732", "0.60919404", "0.60757357", "0.6038833", "0.6023212", "0.5998711", "0.59887165", "0.5930462", "0.59161764", "0.58884495", "0.58761877", "0.58634657", "0.5831415", "0.57702917", "0.57277423", "0.5726324", "0.5691526", "0.5673...
0.0
-1
Get given current user Jndi path in repository.
public String getUserJndiRepositoryPath(String username ) { String userRepoPath = userRepositoryPath( username ); try { CloudRepository.createDir(userRepoPath, JNDI_REPOSITORY_DIR); return userRepoPath + JNDI_REPOSITORY_DIR + SEPARATOR; } catch (KettleException e) { logger.error("Jndi路径创建失败.",e); ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserStorageLocation(){\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String user = (String) auth.getPrincipal();\n return user + \"/\";\n }", "public String getLocalRepositoryRootFolder() {\n\t\tString userFolder = IdatrixPropertyUtil....
[ "0.60501057", "0.59942174", "0.5959383", "0.59482706", "0.58912516", "0.5811491", "0.56737995", "0.56445557", "0.5590049", "0.55855346", "0.55793375", "0.54949504", "0.54912466", "0.5471252", "0.5457578", "0.5451618", "0.5448704", "0.5448113", "0.54210603", "0.54210603", "0.5...
0.65304244
0
TODO Autogenerated method stub
@Override public void onClick(View arg0) { Intent intent = new Intent(Main2Activity.this, com.sha.location.NotifyService.class); Main2Activity.this.startService(intent); }
{ "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 onClick (View arg0){ stopService(new Intent(Main2Activity.this,NotifyService.class)); }
{ "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
/ To show a herb after choose a therapeutic propertie first in Render it is checking what herb need to be showed, according to checking list in every herb. For example if I click on LAXATIVE it calls "signForPrzeczyszczajace" as TRUE ( MainScreenTable) If it is TRUE and only this one is TRUE (it is checking in ALOE.jav...
public static void countLoading(Enum herbEnum){ System.out.println(finishedLoading++ + " Loaded asset: "+herbEnum.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.deb...
[ "0.63053966", "0.6232292", "0.6196125", "0.6124339", "0.6098781", "0.60982877", "0.60859174", "0.60821944", "0.6017382", "0.60100603", "0.6002409", "0.5984719", "0.5983524", "0.5963336", "0.59593606", "0.5943431", "0.5939053", "0.59330505", "0.5911764", "0.588732", "0.5880019...
0.0
-1
HashMap s2 = this.equipletList.get(pA_id);
public HashMap<AID, Long> getEquipletsForProductionStep(int pA_id){ return this.equipletList.get(pA_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object lookup(int par1)\n {\n int j = computeHash(par1);\n\n for (IntHashMapEntry inthashmapentry = this.slots[getSlotIndex(j, this.slots.length)]; inthashmapentry != null; inthashmapentry = inthashmapentry.nextEntry)\n {\n if (inthashmapentry.hashEntry == par1)\n ...
[ "0.5683249", "0.5618395", "0.55864227", "0.54227513", "0.54170054", "0.5391046", "0.5384974", "0.5379325", "0.535908", "0.5355587", "0.532636", "0.53231853", "0.5319894", "0.5261397", "0.52521694", "0.52493864", "0.5202466", "0.51792777", "0.5174653", "0.5174276", "0.5154507"...
0.71283567
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_teacher_calendar_detay, container, false); db = FirebaseFirestore.getInstance(); tvDate = view.findViewB...
{ "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
TODO code application logic here
public static void main(String[] args) { Mensaje m= new Mensaje(); System.out.println(m.recorre("buenos dias")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }"...
[ "0.60802186", "0.5912082", "0.58425087", "0.58339286", "0.5810548", "0.57580656", "0.57396024", "0.5721001", "0.5705411", "0.5666017", "0.5657976", "0.5613798", "0.5611188", "0.5611188", "0.55960613", "0.55933475", "0.557677", "0.5572332", "0.5565667", "0.55482084", "0.553657...
0.0
-1
Returns the list of nodes contained within this group.
List<CyNode> getNodeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Node> getNodes() {\n List<Node> list = getNodes(false, false);\n return list;\n }", "public List<Node> getNodes();", "List<Node> getNodes();", "public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}", "public List<Nodes> getNodes() {\n return nodes;\n }", ...
[ "0.8075618", "0.8008388", "0.7887947", "0.77226967", "0.76692176", "0.7654803", "0.76523274", "0.76463133", "0.76204515", "0.7593272", "0.7553537", "0.7525135", "0.75237584", "0.7495943", "0.74853706", "0.7471668", "0.74621063", "0.7452927", "0.7416127", "0.7393763", "0.73840...
0.73089325
24
Returns the list of edges contained within this group.
List<CyEdge> getInternalEdgeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Edge> getAllEdges(){\n\t\treturn edgeList;\n\t}", "public List<IEdge> getAllEdges();", "Collection<E> edges();", "public Set<Eventable> getAllEdges() {\n\t\treturn sfg.edgeSet();\n\t}", "List<IEdge> getAllEdges();", "public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\...
[ "0.79038954", "0.77929133", "0.7763357", "0.7749356", "0.770129", "0.7681241", "0.7667744", "0.7660523", "0.7656515", "0.7619587", "0.7568958", "0.7562498", "0.75191915", "0.75004095", "0.749953", "0.74961674", "0.7470513", "0.744734", "0.73917526", "0.73539245", "0.73487943"...
0.6514403
51
Returns the list of exterior edges connected to the nodes within this group.
Set<CyEdge> getExternalEdgeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }", "public Iterable<DirectedEdge> edges() {\n ArrayList<DirectedEdge> list = new ArrayList<DirectedEdge>();\n for (int v = 0; v < V; v++) {\n for (DirectedEdge e : adj(v)) {\n l...
[ "0.7063005", "0.68159914", "0.67714804", "0.6770543", "0.6768478", "0.6710676", "0.67091066", "0.66916287", "0.6663851", "0.6651214", "0.66370666", "0.6627179", "0.65847737", "0.65630406", "0.6542312", "0.6542113", "0.6521397", "0.651303", "0.64777803", "0.6476124", "0.646696...
0.67134637
5
Returns the network referenced by this group. All groups will point to a network, although the network might not have any nodes or edges. This is the internal network representation of the group, not the networks that the group is a member of.
CyNetwork getGroupNetwork();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Network network() {\n return network;\n }", "public Network getNetwork() {\r\n \t\treturn network;\r\n \t}", "public Node getNetworkNode() {\r\n return network;\r\n }", "public String getNetworkReference() {\n return networkReference;\n }", "public final void rule__AstNetwo...
[ "0.69339013", "0.6757265", "0.6718342", "0.6580486", "0.6497956", "0.6415484", "0.6271939", "0.6253987", "0.6245616", "0.62384915", "0.6199419", "0.6158864", "0.61406577", "0.6115571", "0.61035484", "0.6061473", "0.60292333", "0.6024845", "0.5972104", "0.5958262", "0.5946631"...
0.71509814
0
Add a list of nodes and their edges
void addNodes(List<CyNode> nodes);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addEdges(Collection<ExpLineageEdge> edges);", "public void addEdge(int start, int end);", "public void addEdge(Node from, Node to);", "public void addEdge(int start, int end, double weight);", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set...
[ "0.7100181", "0.7028778", "0.6952825", "0.6836554", "0.6829189", "0.68172324", "0.67654175", "0.66789633", "0.66301537", "0.6586796", "0.65809727", "0.64993817", "0.6494163", "0.6486173", "0.648377", "0.6478061", "0.6473242", "0.64505297", "0.6440868", "0.6424919", "0.6300847...
0.71727353
0
Remove a set of nodes and their edges from a group
void removeNodes(List<CyNode> nodes);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeEdges(List<CyEdge> edges);", "public void removeAllEdges() {\n }", "private void removeEdges()\r\n\t{\r\n\t final String edgeTypeName = edgeType.getName();\r\n\t for (final Edge e : eSet)\r\n\t\te.getSource().removeEdge(edgeTypeName, e.getDest());\r\n\t eSet.clear();\r\n\t}", "public v...
[ "0.7109333", "0.6998358", "0.6821228", "0.6744634", "0.65883505", "0.65713173", "0.6506684", "0.64456534", "0.6367647", "0.6354444", "0.63266724", "0.6274312", "0.6234255", "0.6228382", "0.6222163", "0.6218385", "0.62070227", "0.6169734", "0.61580306", "0.61191815", "0.611416...
0.6455369
7
Remove a set of edges from a group. Edges can be either internal edges or external edges.
void removeEdges(List<CyEdge> edges);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeEdges()\r\n\t{\r\n\t final String edgeTypeName = edgeType.getName();\r\n\t for (final Edge e : eSet)\r\n\t\te.getSource().removeEdge(edgeTypeName, e.getDest());\r\n\t eSet.clear();\r\n\t}", "public boolean removeEdges(Collection<? extends E> edges);", "public void removeEdge(int sta...
[ "0.7309765", "0.7171813", "0.6494713", "0.63748884", "0.6242624", "0.61536324", "0.5961991", "0.5948405", "0.59423494", "0.5936891", "0.58353364", "0.5823967", "0.5790856", "0.5760577", "0.5742255", "0.56586784", "0.56167984", "0.5546796", "0.55335337", "0.5527307", "0.550616...
0.72477645
1
Return the root network for this group. A group can only exist within one root network, and all nodes and edges that are part of the group must exist within that root network also.
CyRootNetwork getRootNetwork();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Group getRoot(){\n assert(root != null);\n return root;\n }", "@Override\r\n public Node[] getRootNodes() {\r\n return new Node[] {getNetworkNode()};\r\n }", "public Node getRoot() {\r\n\r\n\t\treturn root;\r\n\t}", "public final void rule__AstNetwork__Group_8_1__0() t...
[ "0.73755664", "0.590125", "0.58227223", "0.5777705", "0.57731193", "0.574191", "0.5724356", "0.5706297", "0.57022244", "0.56987995", "0.56931525", "0.5687423", "0.5687423", "0.5687423", "0.56794053", "0.56576025", "0.56150806", "0.5550485", "0.55401284", "0.5502695", "0.54899...
0.6630793
1
graphqljava will mutate GraphQLTypeReference inplace, so we need to create a new instance every time.
static GraphQLFieldDefinition field(@NotNull Set<String> typeNames) { return newFieldDefinition() .name(fieldName) .argument( newArgument() .name(argumentName) .type( new GraphQLNonNull( new GraphQLList( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TypeReference getTypeReference();", "protected JvmParameterizedTypeReference newTypeRef(EObject context, Class<?> type) {\n\t\tTypeReferences typeRefs = getTypeReferences();\n\t\treturn newTypeRef(context, type.getName(), typeRefs.getTypeForName(type, context));\n\t}", "public abstract R createReference(T type...
[ "0.60102516", "0.5788463", "0.564758", "0.56417", "0.5639298", "0.5580518", "0.5566647", "0.55618215", "0.5542683", "0.55305856", "0.5410044", "0.5344059", "0.533947", "0.5339174", "0.5332134", "0.53027725", "0.5293888", "0.523466", "0.52226436", "0.52130437", "0.5192102", ...
0.0
-1
till now only the first groupname gets parsed
private void addGroup(StreamTokenizer st) throws IOException { currentGroups.clear(); st.nextToken(); String gName = "default"; if (st.ttype == StreamTokenizer.TT_EOL) { LoggingSystem.getLogger(this).fine("Warning: empty group name"); st.pushBack(); } else gName = st.sval; // System.out.println("ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getGroup();", "public String group() { return group; }", "public String getGroup();", "public String getGroupName(){\r\n return Validator.unescapeJava(this.groupName);\r\n }", "private String formatGroupName (String groupName) {\n\t\treturn groupName;\n\t}", "private String par...
[ "0.72236526", "0.63279366", "0.6279273", "0.61502403", "0.61061215", "0.60743594", "0.6028893", "0.6011432", "0.5977064", "0.59677386", "0.5958712", "0.59375554", "0.5850466", "0.58392596", "0.5827252", "0.5816125", "0.5810856", "0.5768682", "0.5750036", "0.5743188", "0.57416...
0.62762123
3
TODO: check what smoothening should do...
void setSmoothening(boolean smoothShading) { if (true) return; smooth = smoothShading; material.setAttribute(CommonAttributes.POLYGON_SHADER + "." + CommonAttributes.SMOOTH_SHADING, smooth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void method_4270() {}", "@Override\n public void perish() {\n \n }", "private void strin() {\n\n\t}", "private void kk12() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "private FlyWithWings(...
[ "0.6013485", "0.5764953", "0.5655527", "0.5648325", "0.5575049", "0.5553173", "0.5532849", "0.5520157", "0.5512753", "0.5461871", "0.54244775", "0.54147947", "0.5394918", "0.53691214", "0.5355846", "0.53116953", "0.5242806", "0.523533", "0.5231567", "0.5229291", "0.5218175", ...
0.0
-1
make sure our public constants exist and have correct values
@Test public void testPublicConstants() { ip = new ImagePlus(); assertEquals(0,ImagePlus.GRAY8); assertEquals(1,ImagePlus.GRAY16); assertEquals(2,ImagePlus.GRAY32); assertEquals(3,ImagePlus.COLOR_256); assertEquals(4,ImagePlus.COLOR_RGB); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Constants() {\n\t\tthrow new AssertionError();\n\t}", "private Constants() {\n throw new AssertionError();\n }", "private Constantes() {\r\n\t\t// No way\r\n\t}", "private ApplicationConstants(){\n\t\t//not do anything \n\t}", "private PuzzleConstants() {\n // not called\n }", "priv...
[ "0.71725786", "0.7090101", "0.70276743", "0.6985547", "0.6881289", "0.68640345", "0.68640345", "0.6786249", "0.678469", "0.67775476", "0.6715539", "0.65796536", "0.65768725", "0.6547071", "0.6523879", "0.6510373", "0.64971447", "0.64962095", "0.64178413", "0.6379523", "0.6340...
0.63968205
19
make sure public variables exist note the source code mentions all of these but ip.changes are obsolete. May not need/want this test.
@Test public void testPublicInstanceVars() { ip = new ImagePlus(); assertFalse(ip.changes); /* OBSOLETE assertEquals(1.0,ip.pixelHeight,0.0); assertEquals(1.0,ip.pixelWidth,0.0); assertEquals("pixel",ip.unit); assertEquals("pixel",ip.units); assertFalse(ip.sCalibrated); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkPublic() {\n }", "boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}", "public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.get...
[ "0.61125755", "0.60927325", "0.5800662", "0.57413244", "0.56718475", "0.5649701", "0.55573124", "0.540784", "0.5374921", "0.53401965", "0.5332629", "0.52985907", "0.5293853", "0.5279392", "0.52515924", "0.52179337", "0.5180703", "0.5163197", "0.51549226", "0.51546246", "0.512...
0.6193585
0
pass in a null image
@Test public void testImagePlusStringImage() { ip = new ImagePlus("Cousin",(BufferedImage)null); assertNotNull(ip); assertEquals("Cousin",ip.getTitle()); assertNull(ip.getImage()); // pass in a real image Image img = new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB); ip = new ImagePlus("Vinny",...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Image getImage(Photo photo) {\n return null;\n }", "@Override\n\tpublic Image getImage(Object element) {\n\t\treturn null;\n\t}", "@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\...
[ "0.73132014", "0.72254467", "0.71724904", "0.7004745", "0.6984029", "0.6894855", "0.686931", "0.6765404", "0.67341214", "0.6640745", "0.6639479", "0.6610098", "0.65715635", "0.6535991", "0.6532748", "0.65224016", "0.6516833", "0.6474675", "0.6421661", "0.6406962", "0.6402772"...
0.0
-1
note the underlying ImagePlus method does nothing except call a public method. That method is tested later in this file so really there is nothing to do here
@Test public void testImagePlusStringImageProcessor() { proc = new ByteProcessor(20,45); ip = new ImagePlus("Houdini", proc); assertNotNull(ip); assertEquals(proc,ip.getProcessor()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enhanceImage(){\n }", "public native MagickImage enhanceImage() throws MagickException;", "public native MagickImage flopImage() throws MagickException;", "@Test\n\tpublic void testGetPixel() {\n\t\tip = new ImagePlus();\n\t\tassertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0));\n\n\t\t// ...
[ "0.73103803", "0.7023013", "0.683138", "0.67627764", "0.6740415", "0.6675402", "0.65333897", "0.6510469", "0.6435533", "0.6416236", "0.6380042", "0.6329218", "0.6240208", "0.6225519", "0.6208421", "0.62079406", "0.61902267", "0.61885697", "0.61885697", "0.6118933", "0.6100195...
0.56621087
77
ImagePlus(string) : the string is either a file location or a URL note: will not test URL version try a file that should not exist
@Test public void testImagePlusString() { ip = new ImagePlus(DataConstants.DATA_DIR + "hongKongFooey.tif"); assertNotNull(ip); assertNull(ip.getImage()); // try a file that should exist ip = new ImagePlus(DataConstants.DATA_DIR + "gray8-3x2-sub1.tif"); assertNotNull(ip); assertNotNull(ip.getImage()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testImagePlusStringImage() {\n\t\tip = new ImagePlus(\"Cousin\",(BufferedImage)null);\n\t\tassertNotNull(ip);\n\t\tassertEquals(\"Cousin\",ip.getTitle());\n\t\tassertNull(ip.getImage());\n\n\t\t// pass in a real image\n\t\tImage img = new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB);...
[ "0.71467197", "0.6742404", "0.6340807", "0.63142794", "0.6268125", "0.6241942", "0.6041801", "0.59756196", "0.5946317", "0.5889304", "0.5835615", "0.57667196", "0.57667196", "0.57399964", "0.5733036", "0.5689777", "0.5664821", "0.5651254", "0.56498784", "0.5639266", "0.563876...
0.7117773
1
getChannelProcessor() overridden by other classes. Default should be same as getProcessor()
@Test public void testGetChannelProcessor() { ip = new ImagePlus(DataConstants.DATA_DIR + "gray8-3x2-sub1.tif"); proc = ip.getProcessor(); assertEquals(proc,ip.getChannelProcessor()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getChannel()\n {\n return channel;\n }", "public Byte getChannel() {\n return channel;\n }", "public int getChannel() {\r\n\t\treturn channel;\r\n\t}", "public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }", "@Ov...
[ "0.62395704", "0.60324204", "0.6004438", "0.6001051", "0.5962234", "0.5946155", "0.5929981", "0.5830363", "0.578154", "0.5730368", "0.5724568", "0.57111317", "0.56810856", "0.5668234", "0.56654817", "0.5664386", "0.5651538", "0.5651538", "0.5646714", "0.5637025", "0.56184024"...
0.6318133
0
/ TODO find way to test. Had to use protected var ip.img to test value. Can't just use getImage() because it also can set ip.img in certain cases.
@Test public void testUpdateImage() { ip = new ImagePlus(); //assertNull(ip.img); ip.updateImage(); //assertNull(ip.img); ip = new ImagePlus(DataConstants.DATA_DIR + "head8bit.tif"); //assertNull(ip.img); ip.updateImage(); //assertNotNull(ip.img); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PImage getImage() {\n return _img;\n }", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "java.lang.String getImage();", "@Test\n public void testInterfaceIp() throws Exc...
[ "0.6203783", "0.61121887", "0.6108175", "0.60694826", "0.6033726", "0.59703904", "0.59673256", "0.5953482", "0.59404397", "0.5938496", "0.59318966", "0.59160495", "0.5913987", "0.5901641", "0.58893764", "0.5879118", "0.5817498", "0.58162737", "0.58034945", "0.58034945", "0.57...
0.56312764
45
note there is nothing I can test here its all gui or deeper stuff that nulls out
@Test public void testHide() { ip = new ImagePlus(); ip.hide(); // so nothing but a compile time check }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JTextField determineNull() {\r\n String t;\r\n\r\n try {\r\n t = rightSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return rightSideInput;\r\n }\r\n\r\n t = leftSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\...
[ "0.5800252", "0.57977515", "0.57712877", "0.57670045", "0.57194126", "0.5688175", "0.5677882", "0.56703675", "0.56546587", "0.56224626", "0.5608542", "0.56075925", "0.5593035", "0.55796105", "0.55794126", "0.5553866", "0.5545663", "0.5531701", "0.5529087", "0.5523095", "0.551...
0.0
-1
note there are gui things close() does and we can't test them
@Test public void testClose() { ip = new ImagePlus(); ip.setRoi(0,0,2,2); assertNotNull(ip.getRoi()); ip.close(); assertNull(ip.getRoi()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doClose() {\n\t if (parent==null)\n\t System.exit(0);\n\t else {\n setVisible(false);\n dispose();\n }\n\t}", "void forceClose();", "private void exit() {\n dispose();\r\n }", "public void close() {}", "void close();", "void close();", "v...
[ "0.7363197", "0.7295878", "0.71782637", "0.71752995", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", "0.71540594", ...
0.0
-1
note no need to test just calls show(String) method with argument "". if next test thorough this routine automatically handled
@Test public void testShow() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String display();", "public static void show() {\n\t\t\n\t}", "@Override\n public void showText(String s){\n }", "public void display(String result);", "public void show()\r\n {\r\n\tshow(\"\");\r\n }", "public abstract String display();", "public void show() {\r\n ...
[ "0.7045754", "0.6862521", "0.6837651", "0.6780965", "0.67790824", "0.6738695", "0.6686936", "0.6636271", "0.6617407", "0.6603265", "0.6595544", "0.657809", "0.6562251", "0.65493065", "0.6516093", "0.6512895", "0.64960164", "0.6427619", "0.64046335", "0.6344065", "0.63314474",...
0.6458884
17
TODO find way to test had to use protected var ip.img to successfully test this
@Test public void testGetImage() { ip = new ImagePlus(); //assertNull(ip.img); assertNull(ip.getImage()); ip = new ImagePlus(DataConstants.DATA_DIR + "gray8-3x2-sub1.tif"); //assertNull(ip.img); assertNotNull(ip.getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}", "@Test\n public void testInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }", "@Test\n public void testS...
[ "0.634337", "0.6233843", "0.591196", "0.58957905", "0.58904153", "0.5889566", "0.5848826", "0.5848826", "0.5844317", "0.58248234", "0.58248234", "0.57519114", "0.57519114", "0.57518315", "0.5726932", "0.5708937", "0.56368375", "0.56368375", "0.5614918", "0.56051546", "0.55980...
0.5428207
44
note can't really test. Its a getter with no side effects. Can't predict its value since its different after every creation of an ImagePlus.
@Test public void testGetID() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getIm() {\r\n return im;\r\n }", "public double getIm() {\n return im;\n }", "public PImage getImg() {\n \treturn img;\n }", "public double getIm() {\n\t\treturn im;\n\t}", "public float getIMG(){\n return profile.getImg();\n }", "PImage getImage() {\n ...
[ "0.6837224", "0.6728821", "0.6664923", "0.66004986", "0.658032", "0.6528156", "0.6519869", "0.6487798", "0.644276", "0.6431945", "0.64053255", "0.62885016", "0.62763876", "0.6262581", "0.62392235", "0.6230128", "0.62205714", "0.62061554", "0.6198417", "0.61826843", "0.6179130...
0.0
-1
throws exception if passed null processor
@Test public void testSetProcessor() { ip = new ImagePlus(); try { ip.setProcessor("DoesNotMatterForThisCase",null); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } // throws exception if passed processor has no pixels ip = new ImagePlus(); proc = new ByteProcessor(3,5,null,n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithNull() {\n\t\tprocessor.execute(null, ANONYMOUS_CSVCONTEXT);\n\t}", "public DroppingProcessor(Processor processor) {\n this.processor = Optional.of(processor);\n }", "@Test\r\n public void testExecute_inputNull() {\r\n ...
[ "0.67174727", "0.65665776", "0.62160176", "0.5908177", "0.5845668", "0.58263886", "0.58150387", "0.5722621", "0.56580484", "0.56289846", "0.55849147", "0.5542633", "0.55386317", "0.55203825", "0.5494275", "0.5470833", "0.5447032", "0.5441379", "0.5441021", "0.5416397", "0.541...
0.6198359
3
note will only test nongui capabilities of method stack size == 0 throws illArgExc
@Test public void testSetStackStringImageStack() { ip = new ImagePlus(); st = new ImageStack(2,2); try { ip.setStack("Gizzard",st); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } // not a virt stack and null imagearray (impossible) or 1st entry of imagearray is null (possible)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public boolean argsNotFull();", "@Test(timeout = 4000)\n public void test134() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n ty...
[ "0.6655302", "0.63440204", "0.62443817", "0.6101035", "0.60268766", "0.6021173", "0.60018426", "0.598782", "0.5923538", "0.59198064", "0.59060156", "0.5883667", "0.5826274", "0.5805225", "0.5778034", "0.5762557", "0.5742988", "0.5740563", "0.5734772", "0.5733603", "0.57310283...
0.0
-1
input dimensions do not match stack's size
@Test public void testSetStackImageStackIntIntInt() { st = new ImageStack(1,2,24); // 24 slices of 1x2 images ip = new ImagePlus(); for (int chan = 0; chan < 9; chan++) for (int slice = 0; slice < 9; slice++) for (int frame = 0; frame < 9; frame++) if (chan*slice*frame != 24) try { ip....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSize(){\n return this.stack.size();\n }", "@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}", "public int getSize() {\r\n\t\treturn stack.size();\r\n\t}", "private void ensureCapacity(){\n if(topIndex >= st...
[ "0.64108396", "0.6300791", "0.62309754", "0.6206776", "0.6174966", "0.60508704", "0.60459256", "0.602512", "0.60005146", "0.599067", "0.5971326", "0.59713256", "0.5946148", "0.5936266", "0.5931513", "0.58810025", "0.58501655", "0.58212453", "0.58129114", "0.579582", "0.571167...
0.5330149
60
note sets a private variable. And getFileInfo() can't act as a getter because it has a lot of side effects. As it is I can't really test this method.
@Test public void testSetFileInfo() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileInfo getFileInfo() {\n return fileInfo;\n }", "public final FileInfoBase getFileInfo() {\r\n return fileInfo;\r\n }", "public void fileInfo(String info);", "protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}", "@java.lang.Override\n ...
[ "0.7754032", "0.7153345", "0.6769036", "0.67650145", "0.669322", "0.669322", "0.6523694", "0.6521964", "0.6487778", "0.6487778", "0.6482773", "0.6482773", "0.6365948", "0.6342186", "0.62863183", "0.6275443", "0.6258021", "0.62526214", "0.62526214", "0.62259287", "0.6205426", ...
0.759658
1
note can only test nonGUI part of this code
@Test public void testGetWindow() { ip = new ImagePlus(); assertNull(ip.getWindow()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConf...
[ "0.62712413", "0.6112556", "0.60606873", "0.6000571", "0.5939146", "0.5912143", "0.5906486", "0.58928585", "0.58812994", "0.58662313", "0.58601516", "0.58341503", "0.5819495", "0.5809791", "0.5808093", "0.57800883", "0.57800883", "0.5750848", "0.5739075", "0.57364565", "0.573...
0.0
-1
note can only test nonGUI part of this code
@Test public void testIsVisible() { ip = new ImagePlus(); assertFalse(ip.isVisible()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConf...
[ "0.62712413", "0.6112556", "0.60606873", "0.6000571", "0.5939146", "0.5912143", "0.5906486", "0.58928585", "0.58812994", "0.58662313", "0.58601516", "0.58341503", "0.5819495", "0.5809791", "0.5808093", "0.57800883", "0.57800883", "0.5750848", "0.5739075", "0.57364565", "0.573...
0.0
-1
Note: can't really test and relies on package visibility which could change
@Test public void testSetColor() { proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); if (IJInfo.RUN_ENHANCED_TESTS) { // this test crashes with a null ptr exception ip = new ImagePlus("MyChemicalRomance", proc); ip.setColor(null); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JacobUtils() {}", "private Util() { }", "private stendhal() {\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private ProtomakEngineTestHelper() {\r\n\t}", "@Test public void singletonResolutionInFunctions() {\n fail( \"Not yet implemente...
[ "0.603564", "0.5844955", "0.5769031", "0.5758873", "0.5758873", "0.5758873", "0.5758873", "0.5758179", "0.572499", "0.5710906", "0.5682387", "0.5676065", "0.5668985", "0.5638191", "0.5627079", "0.5582202", "0.5562527", "0.5550366", "0.553119", "0.549768", "0.5489931", "0.54...
0.0
-1
no img and no proc returns null
@Test public void testGetProcessor() { ip = new ImagePlus(); assertNull(ip.getProcessor()); // otherwise it gets into the method // uncalibrated subcase proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3})); ip = new ImagePlus("FredFred",pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic ImageDescriptor getImageDescriptor() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n public Object createImage(Object data) {\r\n\t // N/A in JS\r\n\t return null;\r\n\t}", "public boolean shouldImageProcess() {\r\n\t\treturn table.getBoolean(SHOULD_IMAGE_PROCESS_KEY, false);\r\n\t}", ...
[ "0.56465685", "0.56112933", "0.55996335", "0.5587425", "0.55869436", "0.55833346", "0.55818003", "0.55806607", "0.5553641", "0.5511872", "0.5509123", "0.54870176", "0.5477284", "0.5443364", "0.54398", "0.5428088", "0.5426065", "0.53888303", "0.5384266", "0.5377533", "0.537645...
0.5127338
48
note ImageStatistics does not override equals() so I need to do some testing of my own Will test a subset of fields. Will also test floats for equality usually a nono but desired here I think
private boolean imageStatsEquals(ImageStatistics a, ImageStatistics b) { if (!Arrays.equals(a.histogram, b.histogram)) return false; if (a.pixelCount != b.pixelCount) return false; if (a.mode != b.mode) return false; if (a.dmode != b.dmode) return false; if (a.area != b.area) return false;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test void compareToNaive() {\n\t\tfor (var type : new ImageType[]{ImageType.SB_U8, ImageType.SB_U16, ImageType.SB_F32, ImageType.SB_F64}) {\n\t\t\tvar src = (ImageGray)type.createImage(width, height);\n\t\t\tvar dst = (ImageGray)type.createImage(1, 1);\n\n\t\t\tGImageMiscOps.fillUniform(src, rand, 0, 100);\n\n\t\...
[ "0.64513916", "0.63562006", "0.6330921", "0.62343115", "0.60846937", "0.5917444", "0.5822622", "0.5785056", "0.57031405", "0.5702863", "0.57012916", "0.5674085", "0.56691206", "0.5660184", "0.5640803", "0.5612106", "0.5600626", "0.55946386", "0.55693436", "0.55692947", "0.555...
0.72676986
0
just a getter do a compile time test
@Test public void testGetWidth() { ip = new ImagePlus(); ip.getWidth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isCompileTest() {\n return isCompileTest;\n }", "@Test(result=\"true\")\n Object getConstantValue2() {\n return f3.getConstantValue();\n }", "@Test\n public void testGetter()\n {\n assertEquals(\"Virtus\",test.getPatterName());\n assertNotEquals(\"Fury\",test.getPat...
[ "0.60950834", "0.58706576", "0.5870091", "0.5754489", "0.5701521", "0.5667622", "0.5667622", "0.5666315", "0.5662379", "0.56181115", "0.55019623", "0.5469712", "0.5469119", "0.5460324", "0.5455245", "0.5434684", "0.543097", "0.5430565", "0.5415487", "0.5407256", "0.5399145", ...
0.0
-1
just a getter do a compile time test
@Test public void testGetHeight() { ip = new ImagePlus(); ip.getHeight(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isCompileTest() {\n return isCompileTest;\n }", "@Test(result=\"true\")\n Object getConstantValue2() {\n return f3.getConstantValue();\n }", "@Test\n public void testGetter()\n {\n assertEquals(\"Virtus\",test.getPatterName());\n assertNotEquals(\"Fury\",test.getPat...
[ "0.60950834", "0.58706576", "0.5870091", "0.5754489", "0.5701521", "0.5667622", "0.5667622", "0.5666315", "0.5662379", "0.56181115", "0.55019623", "0.5469712", "0.5469119", "0.5460324", "0.5455245", "0.5434684", "0.543097", "0.5430565", "0.5415487", "0.5407256", "0.5399145", ...
0.0
-1
note getImageStackSize() is nearly identical to getStackSize() one needs to be retired? same tests will suffice
@Test public void testGetImageStackSize() { ip = new ImagePlus(); assertEquals(1,ip.getImageStackSize()); st = new ImageStack(2,2); st.addSlice("GrandmaKat", new byte[] {0,8,4,1}); st.addSlice("GrandpaHuff", new byte[] {0,8,4,1}); st.addSlice("UncleRemus", new byte[] {0,8,4,1}); st.addSlice("AuntRomulu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getStackSizeWishInKb();", "@Test\n\tpublic void testGetNFrames() {\n\t\tip = new ImagePlus(\"Groening\", (Image)null);\n\t\tst = new ImageStack(2,3);\n\t\tst.addSlice(\"silly\",new byte[] {1,2,3,4,5,6});\n\t\tip.setStack(\"AyeCarumba\",st);\n\t\tip.setDimensions(1,1,3);\n\t\tassertEquals(1,ip...
[ "0.7073758", "0.6943594", "0.67656606", "0.6697229", "0.659047", "0.656829", "0.65670395", "0.6469744", "0.64167106", "0.6366724", "0.6197918", "0.6111997", "0.6022617", "0.59996194", "0.59939563", "0.5989108", "0.5887168", "0.58248186", "0.57068217", "0.56892616", "0.5641804...
0.78585404
0
there is some gui code in the setDimensions method that is untested here
@Test public void testSetDimensions() { // empty stack ip = new ImagePlus(); ip.setDimensions(1,2,3); assertEquals(1,ip.getNChannels()); assertEquals(1,ip.getNSlices()); assertEquals(ip.getStackSize(),ip.getNFrames()); // stack but dimensions don't match ip = new ImagePlus("Kerbam",(Image)null); st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getB...
[ "0.7589982", "0.70565766", "0.68659675", "0.68470824", "0.68249655", "0.6777504", "0.6746695", "0.6742843", "0.6713707", "0.67070514", "0.6701833", "0.66845685", "0.66829234", "0.668275", "0.6669751", "0.66592246", "0.6629491", "0.66195893", "0.6614762", "0.6611274", "0.66064...
0.0
-1
due to lack of gui during tests, inside isHyperStack() isDisplayedHyperStack() always false openAs false, nDimensions <= 3
@Test public void testIsHyperStack() { ip = new ImagePlus("ack phooey", (Image)null); st = new ImageStack(1,4); st.addSlice("ouch",new byte[] {1,2,3,4}); st.addSlice("yowee",new byte[] {1,2,3,4}); st.addSlice("zounds",new byte[] {1,2,3,4}); ip.setStack("wonder twins activate", st); ip.setDimensions(1,1,3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testIsDisplayedHyperStack() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.isDisplayedHyperStack());\n\t}", "boolean hasGridLayout();", "boolean isDisplayed();", "public boolean isDisplayed();", "boolean hasGrid();", "boolean hasMosaicLayout();", "boolean isContentDisplayed();", ...
[ "0.6958888", "0.63634306", "0.5902301", "0.5884496", "0.58794695", "0.5833553", "0.58212674", "0.5818658", "0.57994485", "0.5793086", "0.57394004", "0.5706083", "0.56585723", "0.56486547", "0.56439763", "0.5615767", "0.56064874", "0.5596077", "0.557993", "0.5561925", "0.55604...
0.7091425
0
all dims <= 1
@Test public void testGetNDimensions() { ip = new ImagePlus("Agent007", (Image)null); st = new ImageStack(2,3); st.addSlice("suave",new byte[] {1,2,3,4,5,6}); ip.setStack("MoneyPenny",st); ip.setDimensions(1,1,1); assertEquals(2,ip.getNDimensions()); ip = new ImagePlus("Agent007", (Image)null); st = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int numberOfDimensions();", "public static int numDimensions_data() {\n return 1;\n }", "@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}", "int dim(){\n\t\treturn dimx*dimy;\n\t}", "int dimensionality();", "@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}", "int...
[ "0.6030347", "0.59009194", "0.58601505", "0.58226717", "0.5818066", "0.57869804", "0.57828796", "0.5649221", "0.564631", "0.5640204", "0.56342834", "0.5537711", "0.5527226", "0.5521196", "0.55152684", "0.55107486", "0.54947513", "0.5469043", "0.5457526", "0.5443739", "0.54346...
0.49853322
59
note method requires a gui can't fully test
@Test public void testIsDisplayedHyperStack() { ip = new ImagePlus(); assertFalse(ip.isDisplayedHyperStack()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "private static void initAndShowGUI() {\n }", "void gui(){\n _hasGUI = true;\n }", "private void updateGUIStatus() {\r\n\r\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", ...
[ "0.6924379", "0.65271103", "0.6425655", "0.63958114", "0.6394879", "0.6394879", "0.6379007", "0.6372292", "0.6332935", "0.6325296", "0.62363875", "0.6207847", "0.6154989", "0.61290246", "0.61018777", "0.6096134", "0.6015125", "0.5989003", "0.5985645", "0.5984041", "0.5953769"...
0.0
-1
stack does not match dimensions
@Test public void testGetNChannels() { ip = new ImagePlus("Groening", (Image)null); st = new ImageStack(2,3); st.addSlice("silly",new byte[] {1,2,3,4,5,6}); ip.setStack("AyeCarumba",st); ip.setDimensions(1,1,3); assertEquals(1,ip.getNChannels()); ip.setDimensions(1,3,1); assertEquals(1,ip.getNChannels(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new Imag...
[ "0.65293705", "0.6474458", "0.6356223", "0.62178344", "0.61261034", "0.60978824", "0.60806143", "0.60777086", "0.59847796", "0.59495294", "0.5885759", "0.58852845", "0.5856733", "0.58551866", "0.5793647", "0.57897717", "0.5748476", "0.57440466", "0.5737041", "0.57199854", "0....
0.59815896
9
stack does not match dimensions
@Test public void testGetNSlices() { ip = new ImagePlus("Groening", (Image)null); st = new ImageStack(2,3); st.addSlice("silly",new byte[] {1,2,3,4,5,6}); ip.setStack("AyeCarumba",st); ip.setDimensions(1,1,3); assertEquals(1,ip.getNSlices()); ip.setDimensions(1,3,1); assertEquals(1,ip.getNSlices()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new Imag...
[ "0.65293705", "0.6474458", "0.62178344", "0.61261034", "0.60978824", "0.60806143", "0.60777086", "0.59847796", "0.59815896", "0.59495294", "0.5885759", "0.58852845", "0.5856733", "0.58551866", "0.5793647", "0.57897717", "0.5748476", "0.57440466", "0.5737041", "0.57199854", "0...
0.6356223
2
stack does not match dimensions
@Test public void testGetNFrames() { ip = new ImagePlus("Groening", (Image)null); st = new ImageStack(2,3); st.addSlice("silly",new byte[] {1,2,3,4,5,6}); ip.setStack("AyeCarumba",st); ip.setDimensions(1,1,3); assertEquals(1,ip.getNFrames()); ip.setDimensions(1,3,1); assertEquals(1,ip.getNFrames()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetDimensions() {\n\n\t\t// empty stack\n\t\tip = new ImagePlus();\n\t\tip.setDimensions(1,2,3);\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(1,ip.getNSlices());\n\t\tassertEquals(ip.getStackSize(),ip.getNFrames());\n\n\t\t// stack but dimensions don't match\n\t\tip = new Imag...
[ "0.65293705", "0.6474458", "0.6356223", "0.62178344", "0.60978824", "0.60806143", "0.60777086", "0.59847796", "0.59815896", "0.59495294", "0.5885759", "0.58852845", "0.5856733", "0.58551866", "0.5793647", "0.57897717", "0.5748476", "0.57440466", "0.5737041", "0.57199854", "0....
0.61261034
4
null imageProc and null image
@Test public void testIsInvertedLut() { ip = new ImagePlus("CircusHell",(Image)null); assertFalse(ip.isInvertedLut()); // null image proc with non null image ip = new ImagePlus("CircusHell",new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB)); assertEquals(ip.ip.isInvertedLut(),ip.isInvertedLut()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic ImageDescriptor getImageDescriptor() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic ImageDescriptor getImageDe...
[ "0.6450893", "0.64401144", "0.6419463", "0.6385745", "0.6332043", "0.60781926", "0.59583086", "0.59343827", "0.59145325", "0.5914307", "0.58885133", "0.58863735", "0.5820972", "0.5817969", "0.58104575", "0.5753403", "0.5741353", "0.57213724", "0.57117754", "0.5707977", "0.570...
0.5259169
86
if null img then always return [0,0,0,0]
@Test public void testGetPixel() { ip = new ImagePlus(); assertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0)); // COLOR_256 IndexColorModel cm = new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}); proc = new ByteProcessor(1,1,new byte[] {0},cm); ip = new ImagePlus("SoupySales",proc); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getImg_0() {\n return img_0;\n }", "private static int[][][] getImagePixels(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPix...
[ "0.6766164", "0.6248043", "0.6186283", "0.6097323", "0.60952294", "0.6055068", "0.60116726", "0.599103", "0.59809387", "0.5977066", "0.5959751", "0.59453744", "0.5933957", "0.58951813", "0.5892817", "0.58737874", "0.5871555", "0.5854982", "0.5851492", "0.58427036", "0.5842703...
0.0
-1
if stack == null and proc == null return an "empty" stack
@Test public void testGetStack() { ip = new ImagePlus(); st = ip.getStack(); assertEquals(1,ip.getStackSize()); // if stack == null and not proc == null and no info string // do stuff and setRoi() if needed proc = new ByteProcessor(1,1,new byte[] {22}, null); ip = new ImagePlus("CareBearStation",proc)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", ...
[ "0.7493015", "0.6918699", "0.6685683", "0.6574159", "0.64090866", "0.64060366", "0.64028317", "0.6383624", "0.6340944", "0.6286338", "0.6286338", "0.6286338", "0.6283837", "0.62534255", "0.6226737", "0.62043774", "0.61960155", "0.619421", "0.611964", "0.61143744", "0.6106149"...
0.58384174
36
again equals() not defined for ImageSTack and thus I can't compare equality unless I make a method
@Test public void testGetImageStack() { ip = new ImagePlus(); assertNotNull(ip.getImageStack()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void equality() {\n ImageReference expected = createSampleImage();\n\n assertEquals(expected, createSampleImage());\n assertNotEquals(expected, new ImageReference.Builder()\n .setContentUri(\"content://bar\")\n .setIsTintable(true)\n ...
[ "0.68788207", "0.6646589", "0.6570937", "0.6533422", "0.6447082", "0.64442605", "0.6409419", "0.6376781", "0.63577956", "0.63329786", "0.63161427", "0.6301207", "0.62314683", "0.62241703", "0.6213459", "0.6136956", "0.60914475", "0.6067262", "0.6027984", "0.6008442", "0.60022...
0.5476859
94
will test in setPosIntIntInt
@Test public void testGetChannel() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}", "int attrib_int(int i, int v) {\n if (i < maxpos) {\n AllPos[i] = v;\n } else {\n int[] temp = new int[maxpos];\n int j;\n for...
[ "0.7026881", "0.65502816", "0.6524994", "0.6524994", "0.6470123", "0.6470123", "0.64345783", "0.6430832", "0.63550556", "0.63134027", "0.61801624", "0.61716014", "0.61523527", "0.60919607", "0.6091051", "0.60815835", "0.6070535", "0.6045709", "0.6037698", "0.6021377", "0.6020...
0.0
-1
will test in setPosIntIntInt
@Test public void testGetSlice() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}", "int attrib_int(int i, int v) {\n if (i < maxpos) {\n AllPos[i] = v;\n } else {\n int[] temp = new int[maxpos];\n int j;\n for...
[ "0.7026881", "0.65502816", "0.6524994", "0.6524994", "0.6470123", "0.6470123", "0.64345783", "0.6430832", "0.63550556", "0.63134027", "0.61801624", "0.61716014", "0.61523527", "0.60919607", "0.6091051", "0.60815835", "0.6070535", "0.6045709", "0.6037698", "0.6021377", "0.6020...
0.0
-1
will test in setPosIntIntInt
@Test public void testGetFrame() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}", "int attrib_int(int i, int v) {\n if (i < maxpos) {\n AllPos[i] = v;\n } else {\n int[] temp = new int[maxpos];\n int j;\n for...
[ "0.7026881", "0.65502816", "0.6524994", "0.6524994", "0.6470123", "0.6470123", "0.64345783", "0.6430832", "0.63550556", "0.63134027", "0.61801624", "0.61716014", "0.61523527", "0.60919607", "0.6091051", "0.60815835", "0.6070535", "0.6045709", "0.6037698", "0.6021377", "0.6020...
0.0
-1
note nothing to test as differences from previous method are simply UI related
@Test public void testSetPositionWithoutUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\r\n public void updateUI() {\r\n }", "public void updateUI(){}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", ...
[ "0.64555764", "0.64555764", "0.6407122", "0.60005915", "0.5974222", "0.5974222", "0.5974222", "0.5896393", "0.58421963", "0.5794756", "0.57600975", "0.5718005", "0.5715502", "0.56913275", "0.56230265", "0.5605135", "0.5578756", "0.5566854", "0.5560105", "0.55550075", "0.55446...
0.0
-1
stack doesn't exist should be immediate return
@Test public void testSetSlice() { ip = new ImagePlus(); ip.setSlice(1234567890); // this should be safe assertEquals(1,ip.getCurrentSlice()); // stack exists but asking for currentSlice and we have a processor - should do immediate return proc = new ColorProcessor(2,1,new int[] {2,1}); ip = new ImagePlu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }", "final boolean init_stacks()\n {\n stateptr = -1;\n val_init();\n return true;\n }", "void onStackEmpty();", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\...
[ "0.70712894", "0.68398523", "0.68140674", "0.68038917", "0.68038917", "0.68038917", "0.67944765", "0.6756121", "0.6720886", "0.663951", "0.65435797", "0.64944154", "0.63976175", "0.63754493", "0.6368397", "0.63613343", "0.6341929", "0.62175256", "0.6209497", "0.6206155", "0.6...
0.0
-1
note nothing to test same as previous method but with no GUI interaction
@Test public void testSetSliceWithoutUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "@Test\n public void TEST_GOTO_CHOOSING_UI() {\n GameData.mainMenuState = false;\n GameData.chooseDifficultyState = true;\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n GameData.currentU...
[ "0.60514706", "0.60360235", "0.59906286", "0.5930033", "0.5876055", "0.58512706", "0.5841651", "0.5800138", "0.5799241", "0.57862616", "0.57823247", "0.57692087", "0.57574916", "0.5750775", "0.57017976", "0.56999874", "0.5693437", "0.56933415", "0.5689977", "0.56804156", "0.5...
0.0
-1
note can't fully test this method as it depends on GUI vars and state and can draw too
@Test public void testCreateNewRoi() { proc = new ByteProcessor(1,3,new byte[] {7,5,3},null); ip = new ImagePlus("America's Hardware Store",proc); // this is the best that can be done ... ip.createNewRoi(5,10); assertNotNull(ip.getRoi()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "private void updateGUIStatus() {\r\n\r\n }", "@Override\n public void draw()\n {\n }", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = t...
[ "0.63919204", "0.63919204", "0.6283855", "0.62804693", "0.6278979", "0.6269687", "0.62484646", "0.62484646", "0.6245078", "0.6241742", "0.62246174", "0.6207795", "0.6198371", "0.6198371", "0.6193107", "0.6165712", "0.6165143", "0.61304176", "0.61303", "0.6121592", "0.61043364...
0.0
-1
/ Note this method has interacted badly with CurveFitter when running the two from the command line via org.junit.runn.JUnitCore.
@Test public void testRevert() { // note - the following code required minor changes to FileOpener. a helper of the revert method in FileOpener requires // the existence of a IJ instance to update its progress bar. we don't have an IJ and if I create one all subsequent // tests are affected. For now I have m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test58() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n double double0 = rectangle2D_Double0.getWidth();\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"\");\n CombinedDomainCategoryPlot combine...
[ "0.6063864", "0.60238415", "0.5994573", "0.59106123", "0.5880194", "0.58554655", "0.58462363", "0.5831961", "0.58238053", "0.5822523", "0.58195245", "0.57968366", "0.57872295", "0.5784389", "0.57802737", "0.5778458", "0.577337", "0.5772612", "0.5766383", "0.5761737", "0.57436...
0.0
-1
again I find I could use an equals() method for a class in this case FileInfo
private void areEquals(FileInfo a, FileInfo b) { // will test a subset for now assertEquals(a.width,b.width); assertEquals(a.height,b.height); assertEquals(a.nImages,b.nImages); assertEquals(a.whiteIsZero,b.whiteIsZero); assertEquals(a.intelByteOrder,b.intelByteOrder); assertEquals(a.pixels,b.pixels); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Object obj) {\n/* 64 */ if (this == obj) {\n/* 65 */ return true;\n/* */ }\n/* 67 */ if (obj == null) {\n/* 68 */ return false;\n/* */ }\n/* 70 */ if (getClass() != obj.getClass()) {\n/* 71 */ return false;\n/* */ }\n/* 73 */ FileBean oth...
[ "0.69109976", "0.6510577", "0.65092385", "0.64236385", "0.64007205", "0.6387662", "0.6372172", "0.63183445", "0.63061583", "0.62708926", "0.6197224", "0.6149327", "0.6149327", "0.6120842", "0.6029153", "0.5979831", "0.5968758", "0.59636045", "0.5945752", "0.5915593", "0.59092...
0.6802895
1
tested in previous method
@Test public void testSetIgnoreFlush() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public final void mo5...
[ "0.61774784", "0.6067081", "0.60139906", "0.60113686", "0.60029805", "0.5929477", "0.5917818", "0.5893066", "0.5881953", "0.5877502", "0.58735025", "0.5868901", "0.5868174", "0.5862139", "0.58299947", "0.57916546", "0.57785857", "0.5776291", "0.57536674", "0.57295156", "0.572...
0.0
-1
note nothing to test. exercise to do a compile time check of existence
@Test public void testStartTiming() { ip = new ImagePlus(); ip.startTiming(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean _non_existent();", "public abstract boolean doesExist();", "boolean hasDef();", "boolean hasExists();", "public abstract boolean exists();", "@Override\n\tpublic boolean exists(String arg0) {\n\t\treturn false;\n\t}", "private boolean programIfExists(String compiledPath) {\n\t\tboolean itExists...
[ "0.66541034", "0.6612048", "0.6120418", "0.61014825", "0.6030778", "0.60264075", "0.59782296", "0.5972085", "0.5902455", "0.5902455", "0.5894256", "0.5871129", "0.5844421", "0.5844421", "0.5838298", "0.58364636", "0.58364636", "0.58364636", "0.582644", "0.57834977", "0.576965...
0.0
-1