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
Wrapper method to display all data
public int display(){ return display(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayAll() {\n\t\tSystem.out.println(\"Title \"+this.getTitle());\n\t\tSystem.out.println(\"Artist \"+this.getArtist());\n\t\tSystem.out.println(\"Genre \"+this.genre);\n\t}", "public void displayData();", "public void displayAll() {\n\t\t\n\t\tbankop.disp...
[ "0.76403314", "0.75942403", "0.73437047", "0.73257947", "0.71045804", "0.70949316", "0.7074664", "0.70687", "0.69947726", "0.69237775", "0.69108504", "0.68128747", "0.68024004", "0.67370075", "0.6700686", "0.66936237", "0.66932935", "0.66648835", "0.6648856", "0.6624713", "0....
0.0
-1
If the tree exists, delete tree
private void deleteTree(tnode root){ if (root != null) root = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteTree(TreeNode node) \n {\n root = null; \n }", "public void delete() {\n this.root = null;\n }", "public boolean removeTree(String treeName);", "public boolean Delete(int num) {\r\n\t\t//initialize boolean field, set to true if value found in tree\r\n\t\tboolean found;\r\n\t...
[ "0.7594081", "0.7466455", "0.7105491", "0.68708694", "0.6815698", "0.6675795", "0.6638881", "0.6588636", "0.65602005", "0.6536757", "0.65267706", "0.65024835", "0.64376396", "0.640024", "0.6377503", "0.6373802", "0.6373676", "0.6367904", "0.63636136", "0.63413936", "0.6338548...
0.7347209
2
/ holder.tvDiscount.setText(TextUtils.concat(productHuntList.get(position).getSubCatName() + " " + mContext.getString(R.string.in) + " " + productHuntList.get(position).getCategoryName()));
@Override public void onBindViewHolder(@NonNull final ProductHuntViewHolder holder, final int position) { holder.tvDiscount.setText(productHuntList.get(position).getHuntTitle()); holder.tvPostedOn.setText(TextUtils.concat(mContext.getString(R.string.expected_delivery_date) + " : ")); holder.tvPostedDate.setText(AppUtils.getInstance().formatDate(productHuntList.get(position).getExpectedDeliveryDate(), SERVICE_DATE_FORMAT, DATE_FORMAT)); holder.tvInstructions.setText(productHuntList.get(position).getDescription()); if (!productHuntList.get(position).getBuddyAcceptCount().equals("") && Integer.parseInt(productHuntList.get(position).getBuddyAcceptCount()) > 0) { int buddyCount = Integer.parseInt(productHuntList.get(position).getBuddyAcceptCount()); holder.tvBuddies.setVisibility(View.VISIBLE); holder.tvBuddies.setText(TextUtils.concat(productHuntList.get(position).getBuddyAcceptCount() + " " + mContext.getString(buddyCount == 1 ? R.string.buddy_has : R.string.buddies_have) + " " + mContext.getString(R.string.accepted_request))); }else { holder.tvBuddies.setVisibility(View.GONE); } if (productHuntList.get(position).getHuntImage() == null || productHuntList.get(position).getHuntImage().equals("")){ holder.tvNoOfItems.setText(TextUtils.concat("0 " + mContext.getString(R.string.txt_images))); holder.ivProductImage.setImageResource(R.drawable.ic_placeholder); }else { holder.tvNoOfItems.setText(TextUtils.concat(productHuntList.get(position).getHuntImage().split(",").length + " " + mContext.getString(R.string.txt_images))); if (productHuntList.get(position).getHuntImage() != null && productHuntList.get(position).getHuntImage().split(",").length > 0) { AppUtils.getInstance().setImages(mContext, productHuntList.get(position).getHuntImage().split(",")[0], holder.ivProductImage, 0, R.drawable.ic_placeholder); } } holder.rlPostRow.setBackgroundColor(AppUtils.getInstance().getProductBackgroundColor(mContext, position % 5)); if (productHuntList.get(position).getProductType().equals("1")) { holder.tvPostedDate.setVisibility(View.VISIBLE); holder.tvPostedOn.setVisibility(View.VISIBLE); }else { holder.tvPostedDate.setVisibility(View.GONE); holder.tvPostedOn.setVisibility(View.GONE); } if (productHuntList.get(position).getBuddyId().equals("") || productHuntList.get(position).getBuddyId().equals("0")) { holder.ivMenu.setVisibility(View.VISIBLE); }else { holder.ivMenu.setVisibility(View.GONE); } holder.ivMenu.setOnClickListener(v -> { holder.ivMenu.setVisibility(View.GONE); showPopupWindow(holder.ivMenu, position, holder.rlPostRow); }); holder.rlPostRow.setOnClickListener(v -> { productHuntListingFragment.openBuddyListActivity(position); }); if (productHuntList.get(position).getBuddyAcceptCount().equals("0")) { if (productHuntList.get(position).getIsRead().equals("1")) { holder.ivIcon.setVisibility(View.INVISIBLE); } else { if (productHuntList.get(position).getNotificationAction().equals("15")) { holder.ivIcon.setVisibility(View.VISIBLE); } else holder.ivIcon.setVisibility(View.INVISIBLE); } }else { if (productHuntList.get(position).getIsRead().equals("1")) { holder.ivIcon.setVisibility(View.INVISIBLE); } else { holder.ivIcon.setVisibility(View.VISIBLE); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onBindViewHolder(@NonNull subfavViewHolder holder, int position) {\nholder.favval.setText(String.valueOf(ctgr.getItems().get(position)));\n }", "private void updateExpensesCategoriesBreakdown() {\n TextView amountEntertainment = (TextView) findViewById(R.id.amount_categoryBre...
[ "0.6480935", "0.6347177", "0.61378115", "0.611932", "0.5924885", "0.5893213", "0.5863139", "0.585941", "0.5843845", "0.5827557", "0.5797775", "0.57747847", "0.5729664", "0.57105064", "0.5707473", "0.56933403", "0.56930465", "0.56707996", "0.5669717", "0.5655493", "0.5646075",...
0.59101814
5
method to show te popup window
private void showPopupWindow(final ImageView mIvImage, final int position, final RelativeLayout mRlPost) { LayoutInflater layoutInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View popupView = layoutInflater.inflate(R.layout.popup_row_appointment_option, null); final PopupWindow popupWindow = new PopupWindow( popupView, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); popupWindow.setFocusable(true); popupWindow.setOutsideTouchable(true); popupWindow.setOnDismissListener(() -> mIvImage.setVisibility(View.VISIBLE)); TextView tvEdit = popupView.findViewById(R.id.tv_edit); TextView tvDelete = popupView.findViewById(R.id.tv_sold_out); tvDelete.setText(mContext.getString(R.string.delete)); // tvDelete.setVisibility(View.GONE); tvEdit.setOnClickListener(v -> { productHuntListingFragment.onPopupItemClick(1, position); popupWindow.dismiss(); }); tvDelete.setOnClickListener(v -> { productHuntListingFragment.onPopupItemClick(2, position); popupWindow.dismiss(); }); int location[] = new int[2]; // Get the View's(the one that was clicked in the Fragment) location mIvImage.getLocationOnScreen(location); float margingX = mContext.getResources().getDimension(R.dimen._30sdp); float margingY = mContext.getResources().getDimension(R.dimen._1sdp); int locationX = (int) (location[0] - margingX); int locationY = (int) (location[1] + margingY); // Using location, the PopupWindow will be displayed right under anchorView popupWindow.showAtLocation(mIvImage, Gravity.NO_GRAVITY, locationX, locationY); popupWindow.showAsDropDown(mIvImage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPopupWindow() {\r\n \t//\r\n }", "public void showGenPopup() {\n\t\ttv_popupTitle.setText(R.string.title3);\n\t\ttv_popupInfo.setText(R.string.description3);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.a...
[ "0.79142815", "0.77397984", "0.7715941", "0.7698112", "0.7686202", "0.76553905", "0.75282127", "0.73568106", "0.727832", "0.708029", "0.7068242", "0.7065513", "0.70415056", "0.7040221", "0.6941044", "0.6939784", "0.69379944", "0.69365996", "0.6912901", "0.6909079", "0.6888385...
0.0
-1
TODO Autogenerated method stub
@Override public void windowClosing(WindowEvent arg0) { jdbcoperate.closeJDBCOperate(); student.dispose(); jf.setVisible(true); }
{ "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
For verification only can start like this..
public MultiKey() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void initVerify() {\n\t\t\n\t}", "public static void verify() {\n\n\t\t\t\n\t\t\t\n\t\t\n\t}", "@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}", "private void start() {\n\n\t}", "@Override\n public void beforeStart() {\n \n }", "protected void start() {\n }",...
[ "0.6629168", "0.64365727", "0.64180714", "0.63230675", "0.62025756", "0.61821187", "0.61495495", "0.6115944", "0.6115873", "0.6097154", "0.6083059", "0.60713816", "0.60447156", "0.60409755", "0.6025168", "0.6025168", "0.6025168", "0.6025168", "0.60204494", "0.6016634", "0.601...
0.0
-1
Create a MultiKey for verification with this public key
public MultiKey(MiniData zPublicKey) { setPublicKey(zPublicKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MultiKey() {}", "@Test\n\tpublic void createNewMyKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean r1 = ks.createNewMyKeyPair(\"newkp\");\n\t\tboolean r2 = ks.createNewMyKeyPair(\"newtwo\");\n\t\tassertTrue(\"Should have added the key\", r1);\n\t\tassertTrue(\"Should have added the second key...
[ "0.7181599", "0.6628892", "0.635269", "0.63372093", "0.6207036", "0.61894476", "0.6164643", "0.6093044", "0.6081299", "0.6073658", "0.606424", "0.6021452", "0.5948077", "0.59031695", "0.5901081", "0.5896803", "0.5862732", "0.58489525", "0.5844132", "0.582461", "0.5821744", ...
0.6684397
1
Use Default settings to create a MultiKey
public MultiKey(int zBitLength) { this(MiniData.getRandomData(zBitLength/8), DEFAULT_KEYS_PER_LEVEL, DEFAULT_LEVELS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MultiKey() {}", "void setPropertyKeySettings(List<PropertyKeySetting> settingList);", "public MultiKey(final K key1, final K key2, final K key3) {\n this(newArray(key1, key2, key3), false);\n }", "public MultiKeyMap() {\n this.map = new java.util.HashMap<String,V>();\n return;\...
[ "0.7414939", "0.5922558", "0.57706696", "0.5751895", "0.5690292", "0.5596884", "0.559654", "0.55789834", "0.55067426", "0.5478068", "0.547282", "0.5447264", "0.54314864", "0.540093", "0.5386668", "0.5384864", "0.53536355", "0.5350522", "0.5342562", "0.53350973", "0.53033996",...
0.5591802
7
Create a deterministic seed from a private seed and a number
protected MiniData getHashNumberConcat(int zNumber, MiniData zData, int zBitStrength) { MiniData numberdata = new MiniData(BaseConverter.numberToHex(zNumber)); MiniData newdata = numberdata.concat(zData); byte[] hashdata = Crypto.getInstance().hashData(newdata.getData(), zBitStrength); return new MiniData(hashdata); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void new_seed( Seed seed );", "public void seed(long seed) {\n }", "void setSeed(long seed);", "void setSeed(final long seed);", "private String getRandomSeed() {\n long newSeed = 0;\n Random randBoolean = new Random(randomSeed);\n for (int i = 0; i < 48; i++) {\n if (ran...
[ "0.7201006", "0.68019104", "0.67038155", "0.66871816", "0.6579472", "0.65191674", "0.6389931", "0.6292001", "0.6218037", "0.6175072", "0.612899", "0.6095674", "0.6088393", "0.60857576", "0.59916556", "0.5984302", "0.59609413", "0.59551996", "0.5907273", "0.5888819", "0.588725...
0.0
-1
The below 3 methods are from "HouseDesign" Interface
public void chooseColor() { // TODO Auto-generated method stub }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract Object mo1771a();", "public interface CalP...
[ "0.63467354", "0.61700565", "0.61611766", "0.61583245", "0.6105268", "0.60288924", "0.6006124", "0.5937464", "0.59063214", "0.5906227", "0.58850896", "0.57786447", "0.5770723", "0.5763933", "0.57549995", "0.5738857", "0.57337606", "0.5731182", "0.5731182", "0.5729211", "0.572...
0.0
-1
TODO Autogenerated method stub
public void designBasement() { }
{ "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.5886006
35
TODO Autogenerated method stub
public int getNumberOfFloors() { return 2; }
{ "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
Extra / Can have your own methods in addition what interface told you
public void carParking() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Customizable {\n\n /**\n * This method adds based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is added successfully, otherwise false\n */\n boolean add(Object obj);\n\n /**\n * This method removes based on the para...
[ "0.6946747", "0.6764511", "0.6697254", "0.66073644", "0.6591008", "0.6588294", "0.6482324", "0.6449581", "0.64323545", "0.64289343", "0.6419028", "0.6409592", "0.6396012", "0.63683414", "0.636347", "0.6358441", "0.63505095", "0.6335774", "0.6327439", "0.63236386", "0.63212365...
0.0
-1
add class and main method respectively
public static void main (String [ ] args) { int value = (int)(Math.random ()*101); //generates integer 0-100 int e=0; //even counter int o=0; //odd counter System.out.println( " Random number generated: " +value ); //print out value generated if(value!=0){ //if not zero, run program if(value%2==0) { //all even values System.out.print( " The output pattern: "); do{ System.out.print( "*"); e++; }//close do loop while (e<value); } //close if statement for even integers else{ //all odd values do{ System.out.print( "&"); o++; }//close do loop while (o<value); } }//close first if statement else { //if random value is 0, then print nothing... System.out.print( " "); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tSystem.out.println(\"add new class\");\n\n\t}", "String mainClass();", "public static void main(String[] args) {\n System.out.println(\"Class 1\");\n }", "public static void main(String[] args) {// we can create psvm method but cannot create objects in ab...
[ "0.78797555", "0.71710426", "0.69938624", "0.69414735", "0.6936172", "0.69331044", "0.6921705", "0.6906374", "0.68723565", "0.68462235", "0.6842143", "0.68183225", "0.6800712", "0.6753279", "0.67440903", "0.6689201", "0.667335", "0.6671772", "0.66669285", "0.6653641", "0.6653...
0.0
-1
Called every time the player takes a turn to see if that player needs to draw a card or has a possible move in its hand.
@Override public boolean shouldDrawCard(Card topPileCard, Card.Suit changedSuit) { topCard = topPileCard; boolean drawCard = true; for (Card card : cardsInHand) { if (card.getSuit().equals(changedSuit) || card.getRank().equals(topPileCard.getRank())) { drawCard = false; break; } } return drawCard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkIfWinOrDraw() {\r\n\t\tif (theModel.getIsDraw() == true) {\r\n\t\t\tDrawNum++;\r\n\t\t\tactivePlayer = winningPlayer;\r\n\t\t\t// cards go to communalPile\r\n\r\n\t\t} else {\r\n\t\t\ttheModel.winningCard(winningPlayer);\r\n\t\t\ttheModel.transferWinnerCards(winningPlayer);\r\n\t\t}\r\n\r\n\t}", ...
[ "0.74001884", "0.6963427", "0.6847056", "0.6818772", "0.6812043", "0.6801356", "0.6797039", "0.6774508", "0.6755738", "0.6752565", "0.67190087", "0.671889", "0.67171663", "0.67001927", "0.6688416", "0.6662661", "0.6655688", "0.6647598", "0.6641441", "0.66163653", "0.6607897",...
0.0
-1
Called when the player is able to play card. In this PlayerStrategy, playCard looks for the suit and rank that is most common in their own hand and tries to eliminate cards with that suit or rank. This ensures that the player's hand has as much variety as possible, lessening the chances that the player gets stuck having to draw.
@Override public Card playCard() { List<Card> rank1 = new ArrayList<>(); List<Card> rank2 = new ArrayList<>(); List<Card> rank3 = new ArrayList<>(); List<Card> rank4 = new ArrayList<>(); for (Card card : cardsInHand) { if (card.getRank().equals(Card.Rank.EIGHT)) { rank1.add(card); break; } else if (card.getSuit().equals(idealSuit) && card.getRank().equals(idealRank) && (topCard.getSuit().equals(card.getSuit()) || topCard.getRank().equals(card.getRank()))) { rank2.add(card); } else if ((card.getSuit().equals(idealSuit) || card.getRank().equals(idealRank)) && (topCard.getSuit().equals(card.getSuit()) || topCard.getRank().equals(card.getRank()))) { rank3.add(card); } else if (topCard.getSuit().equals(card.getSuit()) || topCard.getRank().equals(card.getRank())) { rank4.add(card); } } List<List<Card>> playPossibilities = new ArrayList<>(Arrays.asList(rank1, rank2, rank3, rank4)); for (List<Card> list : playPossibilities) { if (list.size() > 0) { cardsInHand.remove(list.get(0)); return list.get(0); } } // This method will never return null if shouldDrawCard() is called beforehand. return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card PlayCard() {\n\t Card ret = null;\n\t Card card;\n\t if (mCardCount > 0) {\n\t\t // To work out what card to play, see what cards can be played\n\t\t \tCard[] playableCards;\n\t\t \tplayableCards = mRules.GetPlayableCards();\n\t\t \tCard[] selectedCards;\n\t\t \tselectedCards = new Card[8];\n\t...
[ "0.70794415", "0.69334245", "0.6785233", "0.67556334", "0.6716169", "0.66657037", "0.6608398", "0.6562634", "0.649777", "0.64502877", "0.6380348", "0.6379574", "0.6372185", "0.63662803", "0.63645804", "0.63624495", "0.63572526", "0.6346785", "0.6340224", "0.6305561", "0.63033...
0.7947361
0
Finds the ideal suit and rank to play. The ideal suit and rank is the suit and rank most common in the player's own hand.
private void findIdealSuitAndRank() { Map<Card.Suit, Integer> suitsInHand = new HashMap<Card.Suit, Integer>(); Map<Card.Rank, Integer> ranksInHand = new HashMap<Card.Rank, Integer>(); // Use the enumerable methods in Card class to put all the keys in the HashMaps for (Card.Suit suit : Card.Suit.values()) { suitsInHand.put(suit, 0); } for (Card.Rank rank : Card.Rank.values()) { ranksInHand.put(rank, 0); } // Place all cards played in their respective locations in the HashMap for (Card card : cardsInHand) { suitsInHand.put(card.getSuit(), suitsInHand.get(card.getSuit()) + 1); ranksInHand.put(card.getRank(), ranksInHand.get(card.getRank()) + 1); } /** * The following for loop was derived from * https://stackoverflow.com/questions/5911174/finding-key-associated-with-max-value-in-a-java-map * for finding the key with the max value in a HashMap. */ Map.Entry<Card.Suit, Integer> maxEntrySuit = null; for (Map.Entry<Card.Suit, Integer> entry : suitsInHand.entrySet()) { if (maxEntrySuit == null || entry.getValue().compareTo(maxEntrySuit.getValue()) > 0) { maxEntrySuit = entry; } } idealSuit = maxEntrySuit.getKey(); Map.Entry<Card.Rank, Integer> maxEntryRank = null; for (Map.Entry<Card.Rank, Integer> entry : ranksInHand.entrySet()) { if (maxEntryRank == null || entry.getValue().compareTo(maxEntryRank.getValue()) > 0) { maxEntryRank = entry; } } idealRank = maxEntryRank.getKey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int calcRank() {\n sortCardsInHand();\n\n // check Royal flush\n if (this.areCardsInStraight() && this.cards[0].getValue() == 10 && areCardsInSameSuite()) return 10;\n\n // Straight flush: All five cards in consecutive value order, with the same suit\n if (areCardsInSameSu...
[ "0.70513123", "0.6802489", "0.67902756", "0.6597304", "0.65913314", "0.64944583", "0.642971", "0.6423915", "0.6417074", "0.63321877", "0.63125634", "0.6156293", "0.6146247", "0.6107948", "0.6102249", "0.6062541", "0.6054956", "0.60347545", "0.60347545", "0.6021023", "0.600692...
0.78408784
0
Creates the reference frame that is at the joint and rigidly attached to the joint's predecessor.
public static MovingReferenceFrame newFrameBeforeJoint(JointReadOnly joint, RigidBodyTransformReadOnly transformToParent) { String beforeJointName = "before" + MecanoTools.capitalize(joint.getName()); return newJointFrame(joint, transformToParent, beforeJointName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MovingReferenceFrame newFrameAfterJoint(JointReadOnly joint)\n {\n MovingReferenceFrame frameBeforeJoint = joint.getFrameBeforeJoint();\n\n if (frameBeforeJoint == null)\n throw new NullPointerException(\"The frameBeforeJoint has to be created before the frameAfterJoint.\");\n\n ...
[ "0.69804794", "0.6917459", "0.510971", "0.48451447", "0.48108706", "0.47712603", "0.47413945", "0.47106132", "0.4708251", "0.46912026", "0.46747488", "0.4669283", "0.46322867", "0.46218035", "0.46186918", "0.46137232", "0.460568", "0.45675194", "0.45555007", "0.4551381", "0.4...
0.6960459
1
Creates the reference frame that is at the joint and rigidly attached to the joint's predecessor.
public static MovingReferenceFrame newJointFrame(JointReadOnly joint, RigidBodyTransformReadOnly transformToParent, String beforeJointName) { MovingReferenceFrame parentFrame; RigidBodyReadOnly parentBody = joint.getPredecessor(); if (parentBody.isRootBody()) { parentFrame = parentBody.getBodyFixedFrame(); /* * TODO Special case to keep the beforeJointFrame of the SixDoFJoint to be the elevatorFrame. This * should probably removed, might cause reference frame exceptions though. */ if (transformToParent == null) return parentFrame; } else parentFrame = parentBody.getParentJoint().getFrameAfterJoint(); return MovingReferenceFrame.constructFrameFixedInParent(beforeJointName, parentFrame, transformToParent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MovingReferenceFrame newFrameAfterJoint(JointReadOnly joint)\n {\n MovingReferenceFrame frameBeforeJoint = joint.getFrameBeforeJoint();\n\n if (frameBeforeJoint == null)\n throw new NullPointerException(\"The frameBeforeJoint has to be created before the frameAfterJoint.\");\n\n ...
[ "0.69799787", "0.69591904", "0.51146865", "0.48457846", "0.48049423", "0.4767985", "0.47437993", "0.47165182", "0.4715671", "0.46922454", "0.46742383", "0.46682847", "0.46369013", "0.46224195", "0.46223685", "0.46155837", "0.4610501", "0.45616534", "0.45597303", "0.455631", "...
0.69159293
2
Creates the reference frame that is at the joint and rigidly attached to the joint's successor.
public static MovingReferenceFrame newFrameAfterJoint(JointReadOnly joint) { MovingReferenceFrame frameBeforeJoint = joint.getFrameBeforeJoint(); if (frameBeforeJoint == null) throw new NullPointerException("The frameBeforeJoint has to be created before the frameAfterJoint."); return new MovingReferenceFrame("after" + MecanoTools.capitalize(joint.getName()), frameBeforeJoint) { @Override protected void updateTransformToParent(RigidBodyTransform transformToParent) { joint.getJointConfiguration(transformToParent); } @Override protected void updateTwistRelativeToParent(Twist twistRelativeToParentToPack) { twistRelativeToParentToPack.setIncludingFrame(joint.getJointTwist()); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MovingReferenceFrame newJointFrame(JointReadOnly joint, RigidBodyTransformReadOnly transformToParent, String beforeJointName)\n {\n MovingReferenceFrame parentFrame;\n RigidBodyReadOnly parentBody = joint.getPredecessor();\n if (parentBody.isRootBody())\n {\n parentFrame...
[ "0.6926796", "0.65345055", "0.5381833", "0.51389384", "0.50921583", "0.50557697", "0.5046574", "0.5041005", "0.49636006", "0.4937711", "0.4877397", "0.48767626", "0.48453975", "0.48417678", "0.4839418", "0.4834843", "0.4830505", "0.48304597", "0.48068553", "0.4785025", "0.478...
0.75954515
0
Creates a new transform updater that is optimized when the joint axis is aligned with either the x, y, or z axis of the local frame.
public static RevoluteJointTransformUpdater newRevoluteJointTransformUpdater(RevoluteJointReadOnly joint) { FrameVector3DReadOnly jointAxis = joint.getJointAxis(); RevoluteJointTransformUpdater jointTransformUpdater; if (jointAxis.geometricallyEquals(Axis.X, TRANSFORM_UPDATER_EPSILON)) { jointTransformUpdater = transform -> transform.setRotationRollAndZeroTranslation(joint.getQ()); } else if (jointAxis.geometricallyEquals(Axis.Y, TRANSFORM_UPDATER_EPSILON)) { jointTransformUpdater = transform -> transform.setRotationPitchAndZeroTranslation(joint.getQ()); } else if (jointAxis.geometricallyEquals(Axis.Z, TRANSFORM_UPDATER_EPSILON)) { jointTransformUpdater = transform -> transform.setRotationYawAndZeroTranslation(joint.getQ()); } else { AxisAngle axisAngle = new AxisAngle(); jointTransformUpdater = transform -> { axisAngle.set(joint.getJointAxis(), joint.getQ()); transform.setRotationAndZeroTranslation(axisAngle); }; } return jointTransformUpdater; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateJointTransform(RigidBodyTransform jointTransformToUpdate);", "private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] +...
[ "0.6687651", "0.5715076", "0.5637236", "0.55665565", "0.5383874", "0.5311712", "0.5308835", "0.53020006", "0.5294784", "0.52886397", "0.5264399", "0.5140677", "0.5140649", "0.5139238", "0.5128281", "0.51120764", "0.5098027", "0.50492954", "0.49725533", "0.4926261", "0.4925061...
0.5749906
1
Implementations of this interface can provide a custom updater that benefits from the joint property and allows to optimize the joint transform calculation.
public static interface RevoluteJointTransformUpdater { /** * Updates the joint transform given its current configuration. * * @param jointTransformToUpdate the transform to update. Modified. */ void updateJointTransform(RigidBodyTransform jointTransformToUpdate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateJointTransform(RigidBodyTransform jointTransformToUpdate);", "public PulleyJoint getJoint()\r\n\t{\r\n\t\treturn (PulleyJoint)joint;\r\n\t}", "protected abstract void addJointImpl( Joint joint );", "public static RevoluteJointTransformUpdater newRevoluteJointTransformUpdater(RevoluteJointReadOnly ...
[ "0.78872615", "0.57360095", "0.5723537", "0.56717604", "0.5511963", "0.54625356", "0.5347795", "0.5295207", "0.5280046", "0.5236677", "0.5233273", "0.5226604", "0.51879174", "0.518769", "0.5186834", "0.51812464", "0.51692355", "0.5103721", "0.5103721", "0.5103721", "0.5091221...
0.7120582
1
Updates the joint transform given its current configuration.
void updateJointTransform(RigidBodyTransform jointTransformToUpdate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static interface RevoluteJointTransformUpdater\n {\n /**\n * Updates the joint transform given its current configuration.\n * \n * @param jointTransformToUpdate the transform to update. Modified.\n */\n void updateJointTransform(RigidBodyTransform jointTransformToUpdate);...
[ "0.6481714", "0.62145495", "0.55476797", "0.5277154", "0.525749", "0.5156869", "0.51411855", "0.49882242", "0.49475613", "0.49456698", "0.49101734", "0.4894905", "0.48799688", "0.48565498", "0.4849714", "0.48000535", "0.47579092", "0.47424698", "0.47224927", "0.47173354", "0....
0.80147076
0
Creates quaternion that is restricted to describe a rotation around the yaxis.
public static QuaternionBasics newPitchOnlyQuaternionBasics() { return new QuaternionBasics() { private double x, y, z, s; @Override public double getX() { return x; } @Override public double getY() { return y; } @Override public double getZ() { return z; } @Override public double getS() { return s; } @Override public void setUnsafe(double qx, double qy, double qz, double qs) { x = qx; y = qy; z = qz; s = qs; if (Math.abs(x) > 1.0e-5 || Math.abs(z) > 1.0e-5) setToPitchOrientation(getPitch()); } @Override public String toString() { return EuclidCoreIOTools.getTuple4DString(this); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Transform newYRotation(float th){\n float sinth = (float) Math.sin(th);\n float costh = (float) Math.cos(th);\n return new Transform(new float[][]{\n {costh, 0.0f, sinth, 0.0f},\n {0.0f, 1.0f, 0.0f, 0.0f},\n {-sinth, 0.0f, costh, 0.0f}...
[ "0.6027501", "0.59230834", "0.56047165", "0.52631956", "0.5194816", "0.5190343", "0.51507396", "0.51272875", "0.5115077", "0.5110006", "0.50854945", "0.50466144", "0.50335", "0.50306207", "0.5027091", "0.4995032", "0.499219", "0.49916148", "0.49714562", "0.49654278", "0.49404...
0.5099024
10
Creates a new point that is restricted to the XZplane.
public static Point3DBasics newXZOnlyPoint3DBasics() { return new Point3DBasics() { private double x, z; @Override public double getX() { return x; } @Override public double getY() { return 0.0; } @Override public double getZ() { return z; } @Override public void setX(double x) { this.x = x; } @Override public void setY(double y) { } @Override public void setZ(double z) { this.z = z; } @Override public String toString() { return EuclidCoreIOTools.getTuple3DString(this); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point createPoint();", "public Point( Double x, Double y, Double z ) {\n this.x = x;\n this.y = y;\n this.z = z;\n\n keepExtent();\n }", "public Pj3dPlane Pj3dPlane(int x, int z)\r\n\t{\r\n \tPj3dPlane plane = new Pj3dPlane(this, x, z);\r\n\t\treturn plane;\r\n\t}", "public ...
[ "0.6426493", "0.59603995", "0.59109664", "0.5767576", "0.55889595", "0.5566304", "0.5535775", "0.55315435", "0.55082065", "0.55076784", "0.5478439", "0.54518515", "0.54358715", "0.5434988", "0.53895485", "0.5374796", "0.53737175", "0.53701", "0.53603315", "0.5350662", "0.5329...
0.557356
5
Creates a vector that is restricted to the XZplane.
public static FixedFrameVector3DBasics newXZOnlyFixedFrameVector3DBasics(ReferenceFrame referenceFrame) { return new FixedFrameVector3DBasics() { private double x, z; @Override public ReferenceFrame getReferenceFrame() { return referenceFrame; } @Override public double getX() { return x; } @Override public double getY() { return 0.0; } @Override public double getZ() { return z; } @Override public void setX(double x) { this.x = x; } @Override public void setY(double y) { } @Override public void setZ(double z) { this.z = z; } @Override public String toString() { return EuclidCoreIOTools.getTuple3DString(this); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "Vector getZeroVector();", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no me...
[ "0.60497075", "0.6019027", "0.5968545", "0.59629124", "0.5920669", "0.59155506", "0.58942086", "0.58751065", "0.58542377", "0.57326674", "0.57237333", "0.5661078", "0.563364", "0.56131727", "0.55601126", "0.55092466", "0.5496968", "0.54768884", "0.54741246", "0.5461996", "0.5...
0.5069708
61
Creates a vector that is restricted to the yaxis.
public static FixedFrameVector3DBasics newYOnlyFixedFrameVector3DBasics(ReferenceFrame referenceFrame) { return new FixedFrameVector3DBasics() { private double y; @Override public ReferenceFrame getReferenceFrame() { return referenceFrame; } @Override public double getX() { return 0.0; } @Override public double getY() { return y; } @Override public double getZ() { return 0.0; } @Override public void setX(double x) { } @Override public void setY(double y) { this.y = y; } @Override public void setZ(double z) { } @Override public String toString() { return EuclidCoreIOTools.getTuple3DString(this); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector deflectY() {\n\t\treturn new Vector(deltaX, -deltaY);\n\t}", "default void setY(double y)\n {\n getAxis().setY(y);\n }", "protected NumberAxis createVAxis() {\n NumberAxis yAxis = new NumberAxis(0, 55, 5);\n //yAxis.setLabel(\"Price\");\n yAxis.setSide(Side.RIGHT);\n...
[ "0.6446902", "0.62568784", "0.6253113", "0.6143118", "0.6030045", "0.5930026", "0.59052753", "0.5885189", "0.5877503", "0.5848503", "0.58473295", "0.5824942", "0.5793757", "0.5792252", "0.57911724", "0.57742083", "0.57629496", "0.57563007", "0.5742624", "0.57369304", "0.57179...
0.0
-1
Creates a new pose 3D that is restricted to the XZplane.
public static Pose3DBasics newPlanarPose3DBasics() { return new Pose3DBasics() { private final QuaternionBasics jointRotation = newPitchOnlyQuaternionBasics(); private final Point3DBasics jointTranslation = newXZOnlyPoint3DBasics(); @Override public Point3DBasics getPosition() { return jointTranslation; } @Override public QuaternionBasics getOrientation() { return jointRotation; } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pj3dPlane Pj3dPlane(int x, int z)\r\n\t{\r\n \tPj3dPlane plane = new Pj3dPlane(this, x, z);\r\n\t\treturn plane;\r\n\t}", "public static Vect3 mkXYZ(double x, double y, double z) {\n\t\treturn new Vect3(x,y,z);\n\t}", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);"...
[ "0.7027603", "0.6710127", "0.64007527", "0.638012", "0.63569206", "0.6270587", "0.61701566", "0.61361694", "0.60152155", "0.59945226", "0.59290123", "0.5915713", "0.5895436", "0.58844906", "0.5882448", "0.58750653", "0.58629316", "0.5858374", "0.57952696", "0.5776175", "0.577...
0.5234415
50
Creates a twist that is constrained to the XZplane. The frames of the new twist cannot be changed.
public static FixedFrameTwistBasics newPlanarFixedFrameTwistBasics(ReferenceFrame bodyFrame, ReferenceFrame baseFrame, ReferenceFrame expressedInFrame) { return new FixedFrameTwistBasics() { private final FixedFrameVector3DBasics angularPart = newYOnlyFixedFrameVector3DBasics(expressedInFrame); private final FixedFrameVector3DBasics linearPart = newXZOnlyFixedFrameVector3DBasics(expressedInFrame); @Override public ReferenceFrame getBodyFrame() { return bodyFrame; } @Override public ReferenceFrame getBaseFrame() { return baseFrame; } @Override public ReferenceFrame getReferenceFrame() { return expressedInFrame; } @Override public FixedFrameVector3DBasics getAngularPart() { return angularPart; } @Override public FixedFrameVector3DBasics getLinearPart() { return linearPart; } @Override public String toString() { return MecanoIOTools.getTwistString(this); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tube(float x) {\r\n topTube = new Texture(\"topTube.png\");\r\n botTube = new Texture(\"botTube.png\");\r\n rand = new Random();\r\n\r\n posTopTube = new Vector2(x, rand.nextInt(FLUCT) + TUBE_GAP + LOWEST_OPENING);\r\n posBotTube = new Vector2(x, posTopTube.y - TUBE_GAP - ...
[ "0.49370435", "0.4902606", "0.47344685", "0.463922", "0.4617739", "0.45943516", "0.45435646", "0.44644853", "0.4422914", "0.4405067", "0.4398902", "0.43950287", "0.43802676", "0.4375382", "0.43598446", "0.43521568", "0.43488285", "0.43355876", "0.43326864", "0.4329505", "0.43...
0.4477927
7
Creates a acceleration that is constrained to the XZplane. The frames of the new acceleration cannot be changed.
public static FixedFrameSpatialAccelerationBasics newPlanarFixedFrameSpatialAccelerationVectorBasics(ReferenceFrame bodyFrame, ReferenceFrame baseFrame, ReferenceFrame expressedInFrame) { return new FixedFrameSpatialAccelerationBasics() { private final FixedFrameVector3DBasics angularPart = newYOnlyFixedFrameVector3DBasics(expressedInFrame); private final FixedFrameVector3DBasics linearPart = newXZOnlyFixedFrameVector3DBasics(expressedInFrame); @Override public ReferenceFrame getBodyFrame() { return bodyFrame; } @Override public ReferenceFrame getBaseFrame() { return baseFrame; } @Override public ReferenceFrame getReferenceFrame() { return expressedInFrame; } @Override public FixedFrameVector3DBasics getAngularPart() { return angularPart; } @Override public FixedFrameVector3DBasics getLinearPart() { return linearPart; } @Override public String toString() { return MecanoIOTools.getSpatialAccelerationString(this); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private native void UpdateAcceleration(float infAccelerationX, float infAccelerationY, float infAccelerationZ);", "public void setAcceleration(double x, double y, double z) {\n getMotion().setAcceleration(x, y, z);\n }", "public void accelerateXR() {\n double temp;\n temp = this.getxSpe...
[ "0.54129297", "0.53938085", "0.53065264", "0.5296389", "0.51968557", "0.506751", "0.50503886", "0.50410575", "0.50392854", "0.5003886", "0.5000826", "0.49850747", "0.4945383", "0.49337304", "0.4917158", "0.48971534", "0.4894723", "0.48813635", "0.48558095", "0.48540053", "0.4...
0.0
-1
Creates a wrench that is constrained to the XZplane. The frames of the new wrench cannot be changed.
public static FixedFrameWrenchBasics newPlanarFixedFrameWrenchBasics(ReferenceFrame bodyFrame, ReferenceFrame expressedInFrame) { return new FixedFrameWrenchBasics() { private final FixedFrameVector3DBasics angularPart = newYOnlyFixedFrameVector3DBasics(expressedInFrame); private final FixedFrameVector3DBasics linearPart = newXZOnlyFixedFrameVector3DBasics(expressedInFrame); @Override public ReferenceFrame getBodyFrame() { return bodyFrame; } @Override public ReferenceFrame getReferenceFrame() { return expressedInFrame; } @Override public FixedFrameVector3DBasics getAngularPart() { return angularPart; } @Override public FixedFrameVector3DBasics getLinearPart() { return linearPart; } @Override public String toString() { return MecanoIOTools.getWrenchString(this); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setX() {\n m_frontLeft.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(45)));\n m_frontRight.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(-45)));\n m_rearLeft.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(-45)));\n m_rearRight.setDesiredS...
[ "0.4991046", "0.49166653", "0.48425192", "0.4815239", "0.4791942", "0.47342986", "0.47307384", "0.46842843", "0.4634785", "0.46287277", "0.45933315", "0.45895898", "0.45267576", "0.45183542", "0.44925594", "0.44718143", "0.44261178", "0.44025365", "0.43746275", "0.4357342", "...
0.51489544
0
Creates a new spatial acceleration that can be used to describe the gravitational acceleration that a multisystem is under.
public static SpatialAccelerationReadOnly newGravitationalSpatialAcceleration(RigidBodyReadOnly rootBody, double gravity) { Vector3D gravitationalAcceleration = new Vector3D(0.0, 0.0, gravity); Vector3D zero = new Vector3D(); MovingReferenceFrame bodyFixedFrame = rootBody.getBodyFixedFrame(); ReferenceFrame worldFrame = ReferenceFrame.getWorldFrame(); return new SpatialAcceleration(bodyFixedFrame, worldFrame, bodyFixedFrame, zero, gravitationalAcceleration); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void add_gravitational_acceleration( Body body ) {\r\n double x, y, z, r, a;\r\n double G = 6.671984315419034E-11; // G = NASA mu / b[0].m Orbit3D sep 2017 value\r\n Body that;\r\n\r\n if ( ap.localGravity ) {\r\n// body.currentState.ay = body.currentStat...
[ "0.6270572", "0.5642183", "0.54736465", "0.53934693", "0.52745545", "0.52307063", "0.51443696", "0.514175", "0.5113155", "0.50724053", "0.506152", "0.5026274", "0.5006674", "0.49811426", "0.49472487", "0.4939046", "0.49366102", "0.49126068", "0.4902154", "0.48989767", "0.4892...
0.6286991
0
/ Create the frame.
public VerOffersGUI(RuralHouse casa , String noches) { setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setBounds(100, 100, 566, 576); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); contentPane.setLayout(null); JLabel lblbltitulo = new JLabel("Estos son las offertas de la casa seleccionada:"); lblbltitulo.setFont(new Font("Tahoma", Font.BOLD, 14)); lblbltitulo.setBounds(31, 13, 312, 16); contentPane.add(lblbltitulo); JButton btnVolver = new JButton("Volver"); btnVolver.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { setVisible(false); } }); btnVolver.setBounds(238, 491, 97, 25); contentPane.add(btnVolver); Vector<Offer> vectoroffertas = facade.getOffersbyHouse(casa) ; JList list = new JList(vectoroffertas); list.setBounds(31, 71, 485, 357); ScrollPane scrollPane = new ScrollPane(); scrollPane.setBounds(31, 71, 485, 357); scrollPane.add(list); contentPane.add(scrollPane); Label label = new Label(""); label.setBounds(348, 10, 70, 24); contentPane.add(label); label.setText(casa.getCity()); JButton btnReservar = new JButton("Reservar"); btnReservar.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { Offer of= (Offer) list.getSelectedValue(); JFrame reserva = new ReservarCasaGUI(of,noches,casa); reserva.setVisible(true); dispose(); } }); btnReservar.setBounds(238, 444, 97, 25); contentPane.add(btnReservar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Frame createFrame();", "private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }", "private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }", "FRAME createFRAME();", "public void buildFrame();", "private Frame buil...
[ "0.80522114", "0.79215586", "0.78444064", "0.7717215", "0.75586283", "0.7378475", "0.71732086", "0.6884698", "0.68607867", "0.67691016", "0.6755912", "0.6735963", "0.66175365", "0.6455467", "0.6453924", "0.64262384", "0.6356539", "0.6333556", "0.62825817", "0.6279396", "0.625...
0.0
-1
/ renamed from: a
public static final boolean m2896a(float f, float f2, float f3) { return Math.abs(f - f2) < f3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public static final boolean m2895a(float f, float f2) { return m2896a(f, f2, 0.001f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public static float m2894a(float f) { float f2 = 1.5707964f * ((float) (f < 0.0f ? -1 : 1)); float f3 = f - (((float) ((int) (f / f2))) * f2); float f4 = 0.0f - f3; float f5 = f2 - f3; return Math.abs(f4) < Math.abs(f5) ? f4 : f5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { createBookingTimeStart.localTimeProperty().set(LocalTime.of(0,0)); createBookingTimeEnd.localTimeProperty().set(LocalTime.of(0,0)); booking = new Booking(); createBookingType.getItems().addAll(dbH.getBookingTypes(2).toArray(new String[dbH.getBookingTypes(2).size()])); createBookingMechanic.getItems().addAll(getMechanicNames(dbH.getAllMechanics())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
Listener for when they change booking type
public void addListeners(){ createBookingType.valueProperty().addListener(new ChangeListener<String>() { @Override public void changed(ObservableValue ov, String t, String t1) { createBookingFee.setText(dbH.getBookingPrice(t1).toString()); updateFreeBays(); } }); //Listener for when they change start time createBookingTimeStart.localTimeProperty().addListener(new ChangeListener<LocalTime>() { @Override public void changed( ObservableValue<? extends LocalTime> observableValue, LocalTime oldValue, LocalTime newValue) { updateFreeBays(); } }); //Listener for when they change end time createBookingTimeEnd.localTimeProperty().addListener(new ChangeListener<LocalTime>() { @Override public void changed( ObservableValue<? extends LocalTime> observableValue, LocalTime oldValue, LocalTime newValue) { updateFreeBays(); } }); //EventHandler for when they change the date createBookingDate.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { updateFreeBays(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBookedStatus(JGGTimeSlotModel timeSlot) {\n JGGTimeSlotBookedStatus status = timeSlot.getStatus();\n switch (status) {\n case none:\n case not_booked:\n backLayout.setBackgroundResource(R.drawable.book_background);\n ...
[ "0.6424436", "0.62096334", "0.6150886", "0.6078971", "0.6019267", "0.5888769", "0.57218826", "0.5687427", "0.5671283", "0.5665473", "0.560991", "0.55699784", "0.5530448", "0.55244786", "0.5500116", "0.54695195", "0.5463676", "0.54383284", "0.5428741", "0.5421273", "0.54047334...
0.59882593
5
if (dbH.getBookingTypeIDbyName(createBookingType.getSelectionModel().getSelectedItem().toString()) == 3)
public void insertBooking(){ Validator v = new Validator(); if (createBookingType.getValue() == null) { Dialogs.create() .owner(prevStage) .title("Error!") .masthead(null) .message("Set Booking Type!") .showInformation(); return; } if (createBookingType.getValue().toString().equals("Repair")) Dialogs.create() .owner(prevStage) .title("Error!") .masthead(null) .message("Go to Diagnosis and Repair tab for creating Repair Bookings!") .showInformation(); if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()), parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue())) && customerSet) { int mID = GLOBAL.getMechanicID(); try { mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1)); } catch (Exception ex) { Dialogs.create() .owner(prevStage) .title("Error!") .masthead(null) .message("Set Mechanic!") .showInformation(); return; } if (mID != GLOBAL.getMechanicID()) if (!getAuth(mID)) return; createBookingClass(); dbH.insertBooking(booking); booking.setID(dbH.getLastBookingID()); appointment = createAppointment(booking); closeWindow(); } else { String extra = ""; if (!customerSet) extra = " Customer and/or Vehicle is not set!"; Dialogs.create() .owner(prevStage) .title("Error!") .masthead(null) .message("Errors with booking:"+v.getError()+extra) .showInformation(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {\n try{\n String selection=(String)jComboBox3.getSelectedItem();\n String sql=\"select * from book where \"+selection+\"=?\";\n pst=(OraclePreparedStatement) conn.prepareStatement(sql);\n pst.setString(1,jTextF...
[ "0.60691744", "0.5878058", "0.58186877", "0.5779084", "0.5772576", "0.574381", "0.5694626", "0.5662806", "0.56533855", "0.56485206", "0.5632327", "0.5593978", "0.5591602", "0.5583785", "0.55728316", "0.5543617", "0.55335355", "0.552811", "0.5527125", "0.5522136", "0.5503971",...
0.5514024
20
Booking b = booking;
public void updateDisplayFields(Booking b){ Vehicle v = b.getVehicle(); CustomerAccount ca = v.getCustomer(); createCustomerName.setText(ca.getFirstName()); createCustomerSurname.setText(ca.getLastName()); createCustomerNumber.setText(ca.getPhoneNumber()); createCustomerAddress1.setText(ca.getAddressLine1()); createCustomerAddress2.setText(ca.getAddressLine2()); createCustomerCounty.setText(ca.getCounty()); createCustomerPostal.setText(ca.getPostCode()); createCustomerCompany.setText(ca.getCompanyName()); //VEHICLES createVehicleMake.setText(v.getMake()); createVehicleModel.setText(v.getModel()); createVehicleReg.setText(v.getRegistration()); createVehicleMileage.setText(Integer.toString(v.getMileage())); createVehicleEngine.setText(v.getEngineSize()); createVehicleColour.setText(v.getColour()); createVehicleFuel.setText(v.getFuelType()); String MOTexpire = ""; if (v.getMOTExpire() == null) MOTexpire = "N/A"; else MOTexpire = v.getMOTExpire().getTime().toString(); createVehicleMOT.setText(MOTexpire); String ServiceDate = ""; if (v.getLastService() == null) ServiceDate = "N/A"; else ServiceDate = v.getLastService().getTime().toString(); createVehicleService.setText(ServiceDate); createVehicleWarranty.setText(v.getWarrantyCompany()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBooking(Set<Booking> aBooking) {\n booking = aBooking;\n }", "public static Booking getBooking() {\n return sBooking;\n }", "public void makeBooking (Object booking);", "public Set<Booking> getBooking() {\n return booking;\n }", "@ModelAttribute(value = \"bookin...
[ "0.68493384", "0.6736278", "0.6634263", "0.646085", "0.6340368", "0.6190555", "0.6161778", "0.6081426", "0.6030253", "0.5987026", "0.5856122", "0.5855767", "0.5847381", "0.5847381", "0.57898384", "0.5756416", "0.5745987", "0.5743655", "0.563083", "0.56046367", "0.5571557", ...
0.0
-1
Add to the end of the list
public void add(E e){ Node newNode = new Node(e); if(tail == null){ this.head = newNode; } else { tail.next = newNode; newNode.prev = tail; } tail = newNode; size++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLast(Item x);", "@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n ...
[ "0.7275925", "0.7264504", "0.7179358", "0.7053321", "0.70303077", "0.70299214", "0.7015354", "0.6970939", "0.6930469", "0.69165885", "0.69164574", "0.68627197", "0.6848598", "0.6836366", "0.6835886", "0.6833108", "0.68195647", "0.6805765", "0.6790249", "0.67701757", "0.676822...
0.0
-1
CGet this checked. No
public BasicListIterator<E> basicListIterator(){ return new BasicLinkedListIterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int thisC()\r\n\t{\r\n\t return thisc;\r\n\t}", "public Entry method_1584() {\n return this.c();\n }", "public boolean c()\n {\n return false;\n }", "@Override\n public boolean c() {\n return false;\n }", "private final T self() { return (T)this; }", "private fi...
[ "0.69365114", "0.6363812", "0.63399476", "0.6194537", "0.61886597", "0.61886597", "0.6152941", "0.6109381", "0.59810495", "0.5954394", "0.59524065", "0.59278077", "0.59117806", "0.5903954", "0.59013397", "0.58055", "0.57882667", "0.57815343", "0.5776587", "0.5756114", "0.5673...
0.0
-1
clear() //loop through and make all null and head and tail null
public int size() { return this.size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear()\n {\n\thead = null;\n\ttail = null;\n }", "public void clear() {\n\t\thead = tail = null;\n\t}", "public void clear(){\n firstNode = null;\n lastNode = null;\n }", "public void clear()\r\n {\r\n first = null;\r\n last = null;\r\n count = 0;\r...
[ "0.7909612", "0.79006463", "0.77461827", "0.77433795", "0.7701679", "0.7679903", "0.7583403", "0.7568815", "0.7563668", "0.75017774", "0.747098", "0.7439493", "0.7405202", "0.7390088", "0.7282936", "0.7247694", "0.722119", "0.7178262", "0.71466506", "0.7118645", "0.7081254", ...
0.0
-1
T peekFirst(); // getting value of 1st node. T removeFirst();
private T remove(Node<T> rm_node) { //if(node.previous == null) return removeFirst(); //If its a first node to remove. //if(node.next == null) return removeLast(); //If it's last node to remove. rm_node.next.previous = rm_node.previous; //pointing deleting nodes next element to deleting nodes prev. 3 <--- 4 ---> 5 rm_node.previous.next = rm_node.next; //pointing deleting nodes prev element to deleting nodes next. deleting 4 T data = rm_node.data; //to return deleted node data. rm_node.data = null; rm_node = rm_node.previous = rm_node.next = null; //Clearing node --size; return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp...
[ "0.7797311", "0.7792998", "0.7791522", "0.76997244", "0.7686222", "0.7631596", "0.75527567", "0.7548503", "0.754525", "0.7538472", "0.75328535", "0.7517918", "0.75123805", "0.74867976", "0.74798304", "0.74411917", "0.743609", "0.74030715", "0.7375839", "0.7360807", "0.733987"...
0.0
-1
/ This method adds entity to Candidate table
public CandidateEntity addCandidate(CandidateEntity entity){ PartyEntity party =new PartyEntity("BJP", "PM", "Lotus"); entity.setParty(party); entityManager.getTransaction().begin(); entityManager.merge(entity); entityManager.getTransaction().commit(); logger.info("Candidate with Id" + entity.getCandidate_id()+ "is added"); return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(method = RequestMethod.POST)\r\n public ResponseObject insert(@Validated @RequestBody Candidate candidate) {\r\n return candidateService.insert(candidate);\r\n }", "public static void candidate_add()\n {\n Alert a;\n //run sql query\n try\n {\n ...
[ "0.6678828", "0.64346886", "0.61913985", "0.60263973", "0.5864533", "0.58428335", "0.58111495", "0.5802706", "0.5798042", "0.5792071", "0.57322174", "0.57156104", "0.5710477", "0.569226", "0.568267", "0.5641047", "0.562151", "0.5614802", "0.5590993", "0.5565882", "0.5553683",...
0.784052
0
/ This method check Id of entity is not null in Candidate table
public CandidateEntity checkId(Integer candidateId) throws NullValueFoundException { CandidateEntity candidateEntity = entityManager.find(CandidateEntity.class, candidateId); logger.info("Checking candidate with id: " + candidateEntity); if(candidateEntity==null) throw new NullValueFoundException("CandidateId: " + candidateId); return candidateEntity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testfindByIdCandidateOK() {\r\n\t\tassertTrue(evaluationService.findByIdCandidate(1).size() > 0); // Necessite au moins une evaluation associée au candidat de id=1\r\n\t}", "@Test\r\n\tpublic void testfindByIdCandidateKO() {\r\n\t\tassertTrue(evaluationService.findByIdCandidate(Integer.MAX...
[ "0.62791544", "0.61823803", "0.6080729", "0.59592766", "0.58797365", "0.58426064", "0.57497835", "0.5715547", "0.5685179", "0.5677098", "0.56510824", "0.5589191", "0.55818874", "0.55818874", "0.55803835", "0.5575379", "0.55508286", "0.5518748", "0.5518748", "0.5518748", "0.55...
0.74837106
0
/ This method check name of entity is not null in Candidate table
public CandidateEntity checkName(String candidateName) throws NullValueFoundException { String jpql = "SELECT candidate FROM CandidateEntity candidate where candidate.candidate_name=:pname"; TypedQuery<CandidateEntity> query = entityManager.createQuery(jpql, CandidateEntity.class); query.setParameter("pname", candidateName); query.setMaxResults(1); CandidateEntity entity = query.getSingleResult(); if (entity == null) { throw new NullValueFoundException("faculty not found"); } return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CandidateEntity checkId(Integer candidateId) throws NullValueFoundException {\n\t\tCandidateEntity candidateEntity = entityManager.find(CandidateEntity.class, candidateId);\n\t\tlogger.info(\"Checking candidate with id: \" + candidateEntity);\n\t\tif(candidateEntity==null)\n\t\t\tthrow new NullValueFoundExc...
[ "0.5869747", "0.57564133", "0.5514408", "0.548119", "0.54287016", "0.54277855", "0.5403526", "0.5374674", "0.5341657", "0.53044355", "0.52520704", "0.5235009", "0.5233684", "0.5224092", "0.52074236", "0.52074236", "0.5190189", "0.5171811", "0.51651764", "0.51439583", "0.51411...
0.7359875
0
/ This method display all entity from candidate table
public CandidateEntity viewCandidate(int candidate_id) throws RecordNotFoundException { CandidateEntity entity = entityManager.find(CandidateEntity.class, candidate_id); Query query = entityManager.createQuery("SELECT c from CandidateEntity c"); @SuppressWarnings("unchecked") List<CandidateEntity> list = (List<CandidateEntity>)query.getResultList(); logger.info("Candidate List"); for(CandidateEntity c: list) { System.out.println(c); } if(entity==null) { throw new RecordNotFoundException("CandidateId"+candidate_id); } return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= resul...
[ "0.6510984", "0.6483715", "0.64328796", "0.63101494", "0.62229973", "0.61544645", "0.6147698", "0.61137176", "0.6094256", "0.60695887", "0.6065819", "0.60332876", "0.6022988", "0.60140777", "0.59880954", "0.59868693", "0.59667414", "0.593872", "0.5936536", "0.59347326", "0.59...
0.61131924
8
two points Manhattan distance.
private int distance(int[] a, int[] b) { return Math.abs(a[0] - b[0]) + Math.abs(a[1] - b[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getManhattanDistance(Point p2) {\n return Math.abs(t_location.x-p2.x) + Math.abs(t_location.y-p2.y);\n }", "public final static float manhattanDistance(float[] a, float[] b) {\n\t\tint n = Math.min(a.length, b.length);\n\t\t\n\t\tfloat dis = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif...
[ "0.75610715", "0.7506692", "0.74406147", "0.73226887", "0.7240132", "0.7063452", "0.7019003", "0.7014599", "0.68556833", "0.6804095", "0.6741246", "0.6597794", "0.6582796", "0.6569254", "0.6294346", "0.6247622", "0.6103048", "0.609408", "0.6050724", "0.6044578", "0.60310507",...
0.57806194
41
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.790348", "0.7805071", "0.7765095", "0.77266747", "0.76311177", "0.76214445", "0.75832206", "0.75293607", "0.7486633", "0.74573547", "0.74573547", "0.7437626", "0.74210477", "0.7402851", "0.73908484", "0.7386029", "0.7378385", "0.7369379", "0.7362063", "0.7355019", "0.73446...
0.0
-1
Test of setZoomToMouse method, of class DraggingCamera.
@Test public void testSetZoomToMouse() { final DraggingCamera camera = newValueObject(); testBoundField(camera, DraggingCamera.ZOOM_TO_MOUSE, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSetZoomMin() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MIN, 1.1f);\n }", "@Test\n public void testSetZoomMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, Dr...
[ "0.69961494", "0.6903942", "0.6561085", "0.6527653", "0.6521561", "0.6505554", "0.63993037", "0.63804847", "0.6376801", "0.6354767", "0.63412446", "0.6212748", "0.62056106", "0.61792207", "0.61461663", "0.61159515", "0.6063516", "0.6053372", "0.60498375", "0.6021897", "0.6021...
0.8706289
0
Test of setDragMultiplier method, of class DraggingCamera.
@Test public void testSetDragMultiplier() { final DraggingCamera camera = newValueObject(); testBoundField(camera, DraggingCamera.DRAG_MULTIPLIER, 1.678f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSetZoomMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MULTIPLIER, 1.678f);\n }", "public void setMultiplier(int newValue) {\n multiplier = newValue;\n }", "private void setMultipliers(double healthMul...
[ "0.7193057", "0.6107795", "0.6034968", "0.5939385", "0.5930206", "0.5858554", "0.57648885", "0.5737624", "0.56823355", "0.5531747", "0.54996383", "0.5463972", "0.53905165", "0.5250684", "0.5220026", "0.5219407", "0.5214541", "0.51670307", "0.51525384", "0.51204294", "0.504466...
0.83192354
0
Test of setZoomMultiplier method, of class DraggingCamera.
@Test public void testSetZoomMultiplier() { final DraggingCamera camera = newValueObject(); testBoundField(camera, DraggingCamera.ZOOM_MULTIPLIER, 1.678f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSetZoomMin() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MIN, 1.1f);\n }", "@Test\n public void testSetDragMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, Dr...
[ "0.72142136", "0.7092877", "0.7019479", "0.6916088", "0.67795104", "0.668469", "0.66811603", "0.66648465", "0.6583749", "0.65249467", "0.64755005", "0.64669365", "0.6444177", "0.64225465", "0.64225465", "0.6421", "0.64064085", "0.6404073", "0.63984203", "0.6370809", "0.635450...
0.8589385
0
Test of setZoomMax method, of class DraggingCamera.
@Test public void testSetZoomMax() { final DraggingCamera camera = newValueObject(); testBoundField(camera, DraggingCamera.ZOOM_MAX, 10.0f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native final void setMaxZoom(double maxZoom)/*-{\n this.maxZoom = maxZoom;\n }-*/;", "public void setMaxzoom(Integer maxzoom) {\n this.maxzoom = maxzoom;\n }", "@Test\n public void testSetZoomMin() {\n final DraggingCamera camera = newValueObject();\n testBoundField(...
[ "0.79049593", "0.77893555", "0.7545496", "0.74282956", "0.7299718", "0.6924519", "0.66942775", "0.66342986", "0.6633169", "0.6586325", "0.652405", "0.64738303", "0.6472699", "0.6469223", "0.6320974", "0.6310906", "0.62836957", "0.62049156", "0.61658126", "0.6164435", "0.61639...
0.8777246
0
Test of setZoomMin method, of class DraggingCamera.
@Test public void testSetZoomMin() { final DraggingCamera camera = newValueObject(); testBoundField(camera, DraggingCamera.ZOOM_MIN, 1.1f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMinZoom();", "@Test\n public void testSetZoomMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MULTIPLIER, 1.678f);\n }", "@Test\n public void testSetZoomMax() {\n final DraggingCamera camera = newValueObject();\n ...
[ "0.73179424", "0.7288741", "0.72348666", "0.70066893", "0.63970613", "0.6344076", "0.6292152", "0.6272265", "0.6247594", "0.62348676", "0.62229073", "0.6205616", "0.6198897", "0.6192944", "0.6181044", "0.6174026", "0.61654234", "0.6144082", "0.6142262", "0.61372745", "0.61278...
0.8742926
0
/ maybe make this into an loop, using sine so it loops back and forth a few times
private void run() { while(fraction<=1){ UI.clearGraphics(); redraw(); UI.sleep(rate); this.fraction += step; UI.repaintGraphics(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void run() {\n\t\tdouble x = 0.1;\n\t\tTime.start(\"a\");\n\t\tdouble y = 0;\n\t\tint n = 10000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sin(x); // 450 ms /10 000 000 = 45 ns\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sin((x - 0.1) / x); // 526\...
[ "0.7229713", "0.6593823", "0.64583266", "0.6256121", "0.61167103", "0.60864854", "0.600943", "0.59797937", "0.5962182", "0.59136385", "0.5897111", "0.5852728", "0.58383286", "0.58383286", "0.57960033", "0.57659966", "0.57515186", "0.57378846", "0.57243776", "0.5713051", "0.57...
0.0
-1
Movement for the asteroid. Will only fall straight down at constant speed.
private void fall() { if (handler.getWorld().AsteroidCount < 200) { deltaX = 0; deltaY = speed; } else { if (x < player.getX()) { deltaX = speed; deltaY = speed; } if (x > player.getX()+player.getWidth()) { deltaX = -speed; deltaY = speed; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move()\n {\n move(WALKING_SPEED);\n }", "public void moveAsteroidUpandDown() {\t\t\t\r\n\t\tsetX(this.getX()+1);\r\n\t}", "public void move() {\n\t\tsuper.move();\n\t\t\n\t\t// if the slime hit the ground\n\t\tif (y >= 64*2) {\n\t\t\t// begin sliding (only needed for the first time he ...
[ "0.7143158", "0.68082327", "0.67068714", "0.66522557", "0.652748", "0.6476294", "0.647062", "0.6462389", "0.6455823", "0.644376", "0.644076", "0.6423931", "0.6412564", "0.6360439", "0.6358197", "0.6351381", "0.6331206", "0.6310448", "0.6299282", "0.6299032", "0.62982494", "...
0.57707226
97
Boolean for detecting collisions takes in Player object so we can have access to position.
public boolean containsPoint(Player player) { //Initially calculate the squared values of the distance between the player and the object float xSquared = (player.getX() - x)*(player.getX() - x); float ySquared = (player.getY() - y)*(player.getY() - y); float radiusSquared = radius*radius; //While our asteroid is within the x bounds of our player. while (x > player.getX() && x < player.getX()+player.getWidth()) { xSquared = 0; //Set to zero so we can calculate distance from the top //of the square rather than the top left x value //If statement for if the asteroid is below the player if (y > player.getY()+player.getHeight()) { ySquared = ((player.getY()+player.getHeight())-y)*((player.getY()+player.getHeight())-y); if (xSquared + ySquared - radiusSquared <= 0) return true; else return false; } //For if the asteroid is above the player do nothing but compare if (xSquared + ySquared - radiusSquared <= 0) return true; else return false; } //While our asteroid is within the y bounds of our player while (y > player.getY() && y < player.getY()+player.getHeight()) { ySquared = 0; //Similar to pervious while statement. We only care about //the x-component this time rather than the y-component. //If the asteroid is to the right of the player if (x > player.getX()+player.getWidth()) { xSquared = ((player.getX()+player.getWidth())-x)*((player.getX()+player.getWidth())-x); if (xSquared + ySquared - radiusSquared <= 0) return true; else return false; } //Asteroid is to the left so compare if (xSquared + ySquared - radiusSquared <= 0) return true; else return false; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean collides(Rectangle player) {\r\n return player.overlaps(boundsTop) || player.overlaps(boundsBot);\r\n }", "private boolean playerDetection() {\n\t\tAxisAlignedBB axisalignedbb = new AxisAlignedBB(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).grow(DETECTION_RANGE);\n\t\tList<EntityPlaye...
[ "0.7444263", "0.73351103", "0.7327561", "0.6941159", "0.6920152", "0.6875629", "0.68298894", "0.6820606", "0.6811058", "0.67993426", "0.6772854", "0.6750337", "0.67155904", "0.6642771", "0.6606975", "0.6591389", "0.6588562", "0.6524448", "0.6522061", "0.6516465", "0.6514774",...
0.60923153
56
Boolean method to determine if the asteroid has reached the end of the screen or not
public boolean hasPassed() { if (y<=450.0f) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isFinished() {\n\tif(this.motionMagicEndPoint >0) {\n \tif(Math.abs(RobotMap.motorLeftTwo.get() )< 0.09 && Math.abs(RobotMap.motorRightTwo.get() )> -0.09&& Timer.getFPGATimestamp()-starttime > 10) {\n \t\treturn true;\n \t}\n\t}\n\t\n return false;\n }", "public boolean round...
[ "0.7211265", "0.718884", "0.7182846", "0.7093286", "0.7093286", "0.70893896", "0.70680904", "0.70591664", "0.70245564", "0.7008884", "0.69994056", "0.6942839", "0.6930611", "0.69204366", "0.69071716", "0.69052815", "0.68658996", "0.68305105", "0.68205833", "0.6811493", "0.680...
0.0
-1
Tick and Render methods
public void tick() { //We have to respawn the circles if they reach the bottom of the screen if (hasPassed()) { //Randomly reset the x coordinates. this.x = minRandom + new Random().nextFloat()*(maxRandom-minRandom); //Fixed Y spawn this.y = spawnY; //Randomly reset the width,height, and radius of the new asteroid int newHeight, newWidth; newHeight = 32 + (int) (new Random().nextFloat()*(64.0f-32.0f)); newWidth = newHeight; setWidth(newWidth); setHeight(newHeight); this.radius = width*0.5f; //Create a new Random color Random gen = new Random(); int red, green, blue = 50; do { red = 40 + (int) (gen.nextFloat()*(255.0f-40.0f)); green = 40 + (int) (gen.nextFloat()*(255.0f-40.0f)); blue = 40 + (int) (gen.nextFloat()*(255.0f-40.0f)); } while (red != green && red != blue); this.color = new Color(red,green,blue); } else { fall(); move(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "public void onRenderTick() {\n updateLang();\n updateRenderEngine();\n }", "void drawCurrentTick();", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "public void...
[ "0.81497926", "0.77320844", "0.75920326", "0.74602896", "0.74602896", "0.7427159", "0.74162394", "0.73340166", "0.7300047", "0.7300047", "0.7300047", "0.7300047", "0.7300047", "0.7300047", "0.7300047", "0.72798574", "0.7254559", "0.7254559", "0.72328573", "0.72328573", "0.723...
0.0
-1
Construct a list iterator for the specified array.
public ArrayListIterator(E... array) { this(array, 0, array.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayListIterator(E[] array, int start, int length) {\r\n\t\tsuper(array, start, length);\r\n\t\tthis.minIndex = start;\r\n\t}", "public ArrayIntListIterator iterator() {\n\t return new ArrayIntListIterator(this);\n\t }", "public static Iterator buildIterator(Object[] paramArrayOfObject)\n/* ...
[ "0.6574298", "0.6380649", "0.62966055", "0.6234194", "0.6154118", "0.60932124", "0.6065959", "0.59865", "0.5949874", "0.59498256", "0.59154034", "0.59137034", "0.5822169", "0.5785476", "0.5734677", "0.572265", "0.5584229", "0.55368793", "0.55368793", "0.55368793", "0.55368793...
0.6882212
0
Construct a list iterator for the specified array, starting at the specified start index and continuing for the specified length.
public ArrayListIterator(E[] array, int start, int length) { super(array, start, length); this.minIndex = start; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjectArrayIterator(final E array[], final int start) {\n this(array, start, array.length);\n }", "private ArrayRangeIterator(Object[] paramArrayOfObject, int paramInt1, int paramInt2)\n/* */ {\n/* 60 */ this.m_array = paramArrayOfObject;\n/* 61 */ this.m_offset = paramInt1;\n/* ...
[ "0.6127978", "0.5661055", "0.56307244", "0.5626456", "0.5620885", "0.55196685", "0.5427968", "0.5427838", "0.5426494", "0.5288555", "0.5278391", "0.52491885", "0.5224874", "0.5196635", "0.5162181", "0.5152567", "0.513328", "0.5120027", "0.51200247", "0.50406826", "0.50047195"...
0.7407942
0
====================================== = Getters & Setters = ====================================== returns the username of the user who flagged the recipe
public Users getFlagger() { return flagger; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getUserName() {\n\t\treturn _changesetEntry.getUserName();\n\t}", "public String getName(){\n return username;\n\t}", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang...
[ "0.61843145", "0.6071997", "0.60111594", "0.60111594", "0.60111594", "0.60111594", "0.60111594", "0.60111594", "0.60111594", "0.60111594", "0.60111594", "0.6010095", "0.5987621", "0.59487206", "0.59487206", "0.59480447", "0.59463406", "0.5936957", "0.5936795", "0.5926579", "0...
0.0
-1
sets flagger to the username of the user who flagge the recipe
public void setFlagger(Users flagger) { this.flagger = flagger; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flagUser() {\n\t\tsuper.flagUser();\n\t}", "void setUserUsername(String username);", "public Users getFlagger() {\n return flagger;\n }", "protected static void setUsername(String username) {\n Program.username = username;\n }", "public void setUser_name(String user_name);", "pu...
[ "0.68172073", "0.6004775", "0.5890581", "0.5858809", "0.56555617", "0.5598545", "0.55815196", "0.5566798", "0.55180967", "0.5490564", "0.5432646", "0.54295516", "0.54171073", "0.5413298", "0.53911835", "0.5383764", "0.5379532", "0.53741324", "0.53674245", "0.5351033", "0.5337...
0.7135088
0
returns the date when the flag was done
public long getFlaggingDate() { return flaggingDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "Date getCheckedOut();", "public String getDateFla...
[ "0.72482634", "0.72482634", "0.72482634", "0.72482634", "0.6753669", "0.65294254", "0.647182", "0.643566", "0.64132106", "0.63626915", "0.6306268", "0.62817144", "0.6041715", "0.6029234", "0.60233384", "0.60164046", "0.5968413", "0.5967943", "0.59658456", "0.5935194", "0.5899...
0.6587476
5
sets the flagging date to flaggingDate
public void setFlaggingDate(long flaggingDate) { this.flaggingDate = flaggingDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getFlaggingDate() {\n return flaggingDate;\n }", "@Override\n\tpublic void setRequestedDate(java.util.Date requestedDate) {\n\t\t_dmGtStatus.setRequestedDate(requestedDate);\n\t}", "public void setDateFlag(String flag) {\n this.mDateFlag = flag;\n if (null != mTextViewTime) ...
[ "0.71383137", "0.65199625", "0.6514316", "0.629114", "0.62352765", "0.6234683", "0.61938524", "0.6185664", "0.61757153", "0.60887337", "0.60714257", "0.60676193", "0.6050951", "0.6037031", "0.60223967", "0.6019435", "0.6014613", "0.6014613", "0.59807456", "0.5972019", "0.5965...
0.8567234
0
returns the group that is flagged
public Groups getFlaggedGroup() { return flaggedGroup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GroupOpt getGroup();", "public long getGroup()\r\n { return group; }", "public Group getGroup() {\n return this.inGroup;\n }", "public String getGroup();", "public int getGroup() {\n return group;\n }", "public boolean getInValidGroup(){return this.inValidGroup;}", "java.lang.Str...
[ "0.7056631", "0.70340323", "0.6996188", "0.68966365", "0.68226326", "0.68055564", "0.67891777", "0.67375064", "0.67375064", "0.66712326", "0.66712326", "0.66712326", "0.66712326", "0.66712326", "0.66712326", "0.66712326", "0.66712326", "0.66712326", "0.66712326", "0.66712326", ...
0.82640606
0
Constructs an object to hold the data and point to null as the next node.
public Node(T theData) { this.data = theData; this.next = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Node(){\r\n\t\tdata = null;\r\n\t\tnext = null;\r\n\t}", "public Node() {\n\t\tdata = null;\n\t\tnext = null;\n\t\tprevious = null;\n\t}", "private Node(Object dataPortion) {\n\t\t\tdata = dataPortion;\n\t\t\tnext = null;\n\t\t}", "public Node()\n {\n\t this.data = 0;\n\t this.prev = null;\n\t this.next ...
[ "0.8019956", "0.79114103", "0.7589935", "0.7547071", "0.73860294", "0.7325141", "0.7291513", "0.72907585", "0.72500616", "0.72286135", "0.71348023", "0.7113211", "0.71086234", "0.7104771", "0.708528", "0.6989325", "0.6984778", "0.6970106", "0.6915836", "0.687667", "0.68572026...
0.6810043
22
Constructs an object to hold the data and point to another element as the next node.
public Node(T theData, Node<T> another) { this.data = theData; this.next = another; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node(E data, Node next) {\n\t\t\tthis.data = data;\n\t\t\tthis.next = next;\n\t\t}", "public Node(Object _data, Node _next) {\r\n\t\t\tnext = _next;\r\n\t\t\tdata = _data;\r\n\t\t}", "@SuppressWarnings(\"unused\")\n public Node(Object dataValue, Node nextValue) \n {\n next = nextValue;\...
[ "0.7019737", "0.69910055", "0.6835244", "0.6771144", "0.67289037", "0.6703427", "0.66834664", "0.66828406", "0.66732424", "0.6649884", "0.6614132", "0.65582395", "0.6525295", "0.65137523", "0.651074", "0.649904", "0.64837044", "0.64831513", "0.6465155", "0.6445058", "0.641949...
0.6806116
3
Checks if this node is pointing to another Node object.
public boolean isLastNode() { // Checks if I am pointing to null*. // If so, then I know I am the last node. // *Note: From the perspective of this instance of Node. if (this.next == null) { return true; } // Otherwise, I know I am not last, // because there is a next node after me. return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic boolean isSameNode(Node other)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public boolean isRealNode();", "public boolean isRealNode();", "public boolean isSameNodeInfo(NodeInfo other) {\n if (!(other instanceof DocumentWrapper)) {\n return false;\n }\n ...
[ "0.69853413", "0.6495545", "0.6495545", "0.6329205", "0.61989397", "0.61306167", "0.61061394", "0.60408926", "0.59867734", "0.59832925", "0.59787315", "0.59605676", "0.5959555", "0.5948588", "0.5948588", "0.5903176", "0.58724374", "0.58656645", "0.5844664", "0.5840904", "0.58...
0.0
-1
Mutator method returns the data portion of the node.
public T getData() { return this.data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String data() {\n return this.data;\n }", "@Override\r\n\tpublic E getData() {\n\t\treturn data;\r\n\t}", "public Object data() {\n return this.data;\n }", "T getData() {\n\t\treturn data;\n\t}", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public T getDa...
[ "0.70218873", "0.70195645", "0.69345623", "0.6933073", "0.69302875", "0.6924975", "0.69109553", "0.69026285", "0.68898267", "0.6888819", "0.6864459", "0.6849068", "0.6848131", "0.68228847", "0.6806641", "0.67949593", "0.6793197", "0.67927605", "0.67805207", "0.67602265", "0.6...
0.69612956
2
Mutator method sets the next node.
public void setNext(Node<T> another) { this.next = another; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNext(Node n) { next = n; }", "public void setNextNode(Node<T> next) {\n itsNext = next;\n }", "public void setNext(Node<E> next) { this.next = next; }", "public void setNext(Node<T> next) {\n this.next = next;\n }", "public void setNext(Node<T> next) {\r\n ...
[ "0.84968567", "0.8418384", "0.841007", "0.8393143", "0.83913404", "0.834861", "0.83238184", "0.83134514", "0.8311646", "0.8237957", "0.82330525", "0.82009786", "0.8158873", "0.8157342", "0.815634", "0.80638564", "0.80190206", "0.7997854", "0.7970803", "0.7967081", "0.79623365...
0.779985
27
Mutator method get the next node.
public Node<T> getNext() { return this.next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node getNext() { return next; }", "public Node getNext(){\n\t\t\treturn next;\n\t\t}", "public Node getNext(){\n\t\treturn next;\n\t}", "public node getNext() {\n\t\t\treturn next;\n\t\t}", "public LLNode<T> getNext() {\n return next;\n }", "public DNode getNext() { return next; }", "Node<T...
[ "0.81066656", "0.8073717", "0.8037022", "0.8034359", "0.8033073", "0.8022699", "0.79955006", "0.7979924", "0.7962218", "0.7925701", "0.7923559", "0.7923234", "0.7920443", "0.7904178", "0.7902915", "0.7902915", "0.79006577", "0.789948", "0.787997", "0.7871084", "0.78658926", ...
0.7782577
27
String representation of the node as follows: data
public String toString() { String result = ""; result += this.data; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n return \"Node: \" + data;\n }", "public String toString() {\n return \"\" + data;\n }", "public String printNodeData(Node<T> node){\n return String.valueOf(node.data);\n }", "@Override\n public String toString() {\n return \" \" + this.dat...
[ "0.83493406", "0.76687676", "0.76638883", "0.74279207", "0.7373921", "0.7373921", "0.73596895", "0.73453194", "0.7339088", "0.72737575", "0.7264625", "0.72012126", "0.7194248", "0.7156707", "0.71254015", "0.70886964", "0.702056", "0.6965982", "0.69325864", "0.69263864", "0.68...
0.7254019
11
2 ms 114.6 MB
public static boolean isMonotonic(int[] nums) { int length = nums.length; boolean flag = nums[0] < nums[length - 1]; for (int i = 0; i < length - 1; i++) { if (flag) { if (nums[i] > nums[i + 1]) return false; } else { if (nums[i] < nums[i + 1]) return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n ...
[ "0.61241096", "0.6100889", "0.5777276", "0.5730346", "0.571137", "0.57110196", "0.5689911", "0.55810624", "0.5580607", "0.55334353", "0.55247504", "0.5519012", "0.5490121", "0.548662", "0.5480916", "0.5476107", "0.545837", "0.5436514", "0.54351306", "0.5426581", "0.5408991", ...
0.0
-1
6 ms 114.8 MB
public static boolean isMonotonic1(int[] nums) { boolean increase = true, decrease = true; for (int i = 0; i < nums.length - 1; i++) { if (nums[i] > nums[i + 1]) increase = false; if (nums[i] < nums[i + 1]) decrease = false; } return increase || decrease; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n ...
[ "0.63969433", "0.6332025", "0.61424464", "0.60513026", "0.60473", "0.6043711", "0.6014679", "0.60102683", "0.5943639", "0.59301764", "0.59278226", "0.5851695", "0.5850987", "0.573731", "0.5729703", "0.57233465", "0.57048273", "0.5701943", "0.5672105", "0.56402177", "0.5634192...
0.0
-1
TODO Autogenerated method stub
@Override public void load() { }
{ "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 persist() { }
{ "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
/ Debug purposes: display contents of Event
public String toString() { return this.getGeoEvent().toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}", "protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n...
[ "0.7710328", "0.76706666", "0.70349133", "0.69706136", "0.6842825", "0.679413", "0.67477727", "0.6738805", "0.6734385", "0.6705707", "0.6694921", "0.66763234", "0.65889865", "0.6559425", "0.65557605", "0.65231323", "0.65060824", "0.6502849", "0.64707154", "0.64366394", "0.642...
0.6029213
49
Created by liang on 2018/5/14.
@Component @Mapper public interface LearnCurrentMapper { /** * 查询用户在这个科目下, * @param userid * @param subjectid * @return */ @Select(value = "select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} " ) long findLearnCurrentMcodeBySubjectid(long userid, String subjectid); /** * 查询用户在这个科目下的当前对象, * @param userid * @param subjectid * @return */ @Select(value = "select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} " ) LearnCurrent findLearnCurrentObjBySubjectid(@Param("userid") long userid,@Param("subjectid") String subjectid); /** * 查询用户在这个类型模拟年份下的当前学习的题目编号, * @param userid * @param moniname * @return */ @Select(value = "select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} " ) long findLearnCurrentMcodeByMoniname(@Param("userid") long userid, @Param("subjectid") String subjectid,@Param("moniname") String moniname); /** * 查询用户在这个类型模拟年份下的当前学习的 当前对象, * @param userid * @param moniname * @return */ @Select(value = "select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}" ) LearnCurrent findLearnCurrentObjByMoniname(@Param("userid") long userid, @Param("subjectid") String subjectid,@Param("moniname") String moniname); /** * 创建对象 * @param learnCurrent */ @Insert("insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )") void save(LearnCurrent learnCurrent); @Update("update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}") void update(LearnCurrent learnCurrent); @Select("select * from tb_learncurrent where pkid = #{pkid}") LearnCurrent find(@Param("pkid") long pkid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private voi...
[ "0.59421337", "0.5847526", "0.5662756", "0.56185156", "0.55710506", "0.55710506", "0.55706304", "0.5559844", "0.5552433", "0.55258936", "0.5454937", "0.54450685", "0.5444919", "0.54325455", "0.5421472", "0.5414356", "0.54041564", "0.53981334", "0.5390578", "0.53900284", "0.53...
0.0
-1
I want get the order count of John 1. Add a field for the back pointer. 2. Decide which class will control the association. 3. Create a helper method on the noncontrolling side of the association. Name this method to clearly indicate its restricted use. 4. If the existing modifier is on the controlling side, modify it to update the back points. 5. If the existing modifier is on the controlled side, create a controlling method on the controlling side to call it from the existing modifier.
public int countOrderByCustomerName(String name) { return customers.stream() .filter(x -> x.getName().equals(name)) .findFirst() .get() .friendOrders().size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getCntOther();", "public int getOrder();", "int countAssociations();", "@VTID(10)\r\n int getOrder();", "int getOverriddenCount();", "int getAchieveInfoCount();", "public Integer getOrder();", "public int getAdvisorCount();", "public abstract int getCntPrepaid();", "@FameProp...
[ "0.61083305", "0.5787953", "0.55758476", "0.55622977", "0.5551727", "0.5547871", "0.5505667", "0.5469187", "0.5461936", "0.5438538", "0.540618", "0.539956", "0.5368925", "0.53533924", "0.5327189", "0.5307826", "0.5288957", "0.52863836", "0.5274833", "0.5249748", "0.52171683",...
0.0
-1
Finds a user by UserName.
@NotNull TUser findByUserName(String username) throws NotFoundException, ErrorConnectionException, TException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "public User findUser(String name) {\n\t\treturn null;\r\n\t}", "public boolean findUserBYName(String name);", "User findUserByName(String name);", "@Override\n\tpublic User findUserByName(String n...
[ "0.7989248", "0.7852687", "0.7756541", "0.7621454", "0.76121426", "0.75041205", "0.74616176", "0.73820186", "0.7356937", "0.72977376", "0.72917837", "0.72802377", "0.7232988", "0.7225001", "0.71777105", "0.7153229", "0.71234065", "0.71108085", "0.71108085", "0.70784926", "0.7...
0.0
-1
Tests if user with specified name exists.
boolean isUserExist(String username) throws ErrorConnectionException, TException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public boolean existsUser(String username);", "boolean exists(String userName);", "public boolean userNameExist(String username);", "boolean hasUserName();", "@Override\n public boolean isUserNameExists(String userName) {\n ...
[ "0.86495924", "0.81908435", "0.79088444", "0.7766535", "0.7765986", "0.7660523", "0.7659331", "0.76564324", "0.76147395", "0.75853103", "0.7560996", "0.75445145", "0.7512195", "0.75035024", "0.74982214", "0.7446861", "0.74372226", "0.7423691", "0.741504", "0.74051976", "0.738...
0.0
-1
Puts all elements to ComboBox to see visual
private void putElementsToComboBox(HashMap<String, Map<String, String>> projectsInfo) { for ( String key : projectsInfo.keySet() ) { this.comboBox.addItem(key); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void InitComboBox() {\n\t\t\r\n\t}", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(...
[ "0.7363104", "0.72475445", "0.7005399", "0.69072306", "0.6900577", "0.68813115", "0.68370503", "0.6836307", "0.6757864", "0.6746214", "0.6670709", "0.6668609", "0.6582156", "0.6575993", "0.65615886", "0.6514692", "0.65145636", "0.65103555", "0.6480709", "0.6467189", "0.645796...
0.0
-1
Returns a state of this frame
public boolean isActive() { return this.state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public State getState();", "public State getState();", "public State getState() {\n\t\treturn state;\n\t}", "public State getState() {\n\t\treturn state;\n\t}", "public STATE getState() {\n\t\n\t\treturn state;\n\t}", "public S getState() {\r\n\t\treturn state;\r\n\t}", "public State getState()\r\n\t{\...
[ "0.7932356", "0.7932356", "0.78500044", "0.78500044", "0.78493893", "0.7841364", "0.7810028", "0.77829844", "0.77829844", "0.7770838", "0.7770838", "0.7770838", "0.7770838", "0.7770838", "0.7770292", "0.7770292", "0.7770292", "0.7770292", "0.7744589", "0.7744589", "0.7731174"...
0.0
-1
When the send button is clicked
public void send(View v) { if(staticSpinner.getSelectedItemPosition() == 0) { TextView errorText = (TextView)staticSpinner.getSelectedView(); errorText.setError(""); errorText.setTextColor(Color.RED);//just to highlight that this is an error errorText.setText("Harap Pilih Kategori"); } else if(msgTextField.getText().toString().equals("") ){ msgTextField.setError("required"); msgTextField.setHintTextColor(Color.RED);//just to highlight that this is an error msgTextField.setHint("Harap Diisi"); } else { if (staticSpinner.getSelectedItem().equals("Nama Produk")) { spinK = "nama_produk"; } else if (staticSpinner.getSelectedItem().equals("Nama Produsen")) { spinK = "nama_produsen"; } else { spinK = "nomor_sertifikat"; } String msgSearch = msgTextField.getText().toString(); Intent searchIntent = new Intent(MainActivity.this, HasilCari.class); Bundle extras = new Bundle(); extras.putString("spinKat", spinK); extras.putString("msgSearch", msgSearch); searchIntent.putExtras(extras); startActivity(searchIntent); Log.v(TAG, spinK); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleSendButton(ActionEvent event) {\n\n messageController.setMessageSystem(this.message.getText(), this.toUsername.getText(),this.sender);\n if (messageController.sendMessage()){\n sentValid.setVisible(true);\n sentInvalid.setVisible(false);\n\n }\n e...
[ "0.7801247", "0.7663302", "0.7551979", "0.74780583", "0.744195", "0.74034566", "0.7368098", "0.7288597", "0.7276684", "0.7211354", "0.71925884", "0.7176486", "0.70755976", "0.7041639", "0.7030029", "0.6994377", "0.69611", "0.69581205", "0.6955976", "0.6942012", "0.693272", ...
0.0
-1
Get current time as Unix timestamp.
public static long getTime() { return (long)(new Date()).getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long currentTimeInSecond() {\n return Instant.now().getEpochSecond();\n }", "public static long longTimestamp() {\n return now().getTime();\n }", "public static long time() {\n return date().getTime();\n }", "private static long getCurrentTime() {\n return (...
[ "0.73148227", "0.7289958", "0.72009444", "0.7056558", "0.7034741", "0.69962037", "0.69244534", "0.68846023", "0.6839329", "0.6828704", "0.68178445", "0.6814224", "0.68080175", "0.6792859", "0.67718595", "0.6743478", "0.6733347", "0.67020816", "0.6679852", "0.6676371", "0.6662...
0.71665907
3
Get time as Unix timestamp.
public static long getTime(String $timeString/* = null*/) { if ($timeString == null) { return getTime(); } try { return (new SimpleDateFormat(SQL_DTS)).parse($timeString).getTime(); } catch (Exception ex) { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long timestamp();", "public static long getTime() {\n return (long)(new Date()).getTime();\n }", "public static long time() {\n return date().getTime();\n }", "public static long longTimestamp() {\n return now().getTime();\n }", "@ExecFunction(name = \"unix_timestamp\", argTyp...
[ "0.7007096", "0.6943016", "0.6934163", "0.6922427", "0.689584", "0.6865777", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.67375124", "0.6670614", "0.6665592", "0.65...
0.0
-1
Get Unix timestamp from date/time extracted from RSSfeed.
public static long fromRss(String $timeString) { try { return (new SimpleDateFormat(RSS_DTS)).parse($timeString).getTime(); } catch (Exception ex) { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getTimestamp()\r\n {\r\n return safeConvertLong(getAttribute(\"timestamp\"));\r\n }", "Long timestamp();", "public long getTimeStamp() {return attributes.getLongValue(TIMESTAMP,-1);}", "public long DateStringToUnixTimeStamp(String sDateTime) {\n DateFormat formatter;\n ...
[ "0.6135207", "0.5932446", "0.58647454", "0.58531517", "0.5834907", "0.5806603", "0.5787275", "0.56482285", "0.55978847", "0.5597689", "0.5594928", "0.55897427", "0.55386573", "0.5513634", "0.5497332", "0.5497332", "0.5497332", "0.5497332", "0.5497332", "0.5497332", "0.5497332...
0.6955063
0
Format to string presentation.
public static String format(String $formatString) { return format($formatString, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String format();", "@VTID(8)\r\n java.lang.String format();", "void format();", "public String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = ...
[ "0.7910927", "0.76226306", "0.73320925", "0.69361115", "0.6813091", "0.67925334", "0.67416304", "0.6694869", "0.66909456", "0.6686788", "0.66796035", "0.66385764", "0.6534323", "0.6519079", "0.6507877", "0.64754087", "0.64729005", "0.6448094", "0.6422495", "0.63922054", "0.63...
0.0
-1
Format time from Unix timestamp to string presentation.
public static String format(String $formatString, long $timeValue /*= 0*/) { return (new SimpleDateFormat($formatString)).format($timeValue == 0 ? new Date() : new Date($timeValue)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String formatToString(long unixTimeInSecond) {\n LocalDateTime dateTime = LocalDateTime.ofInstant(Instant.ofEpochSecond(unixTimeInSecond), ZoneOffset.systemDefault());\n return DateTimeFormatter.ofPattern(DEFAULT_TIME_PATTERN).format(dateTime);\n }", "public static String getFormat...
[ "0.720883", "0.7146743", "0.71207285", "0.7020374", "0.6883249", "0.6736519", "0.6718424", "0.67170084", "0.67164946", "0.6704075", "0.6696275", "0.6657817", "0.6614772", "0.6589241", "0.65610886", "0.65608", "0.65262645", "0.6503809", "0.6500612", "0.64845204", "0.6471354", ...
0.0
-1
Format current time to GMT string presentation.
public static String gmtFormat(String $formatString) { return gmtFormat($formatString, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getGMTTime(String format) {\r\n\t\tfinal Date currentTime = new Date();\r\n\r\n\t\tfinal SimpleDateFormat sdf = new SimpleDateFormat(format);\r\n\r\n\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n\t\treturn sdf.format(currentTime);\r\n\t}", "public static String getGMTTime() {\r\n\t\...
[ "0.7057051", "0.68414843", "0.6704763", "0.6537466", "0.6496604", "0.6491955", "0.641445", "0.6403537", "0.639927", "0.639721", "0.6364635", "0.6357162", "0.6318541", "0.6298944", "0.62988293", "0.62626934", "0.6209832", "0.6186879", "0.6178881", "0.617677", "0.6147893", "0...
0.0
-1
Format time from timestamp to GMT string presentation.
public static String gmtFormat(String $formatString, long $timeValue /*= 0*/) { SimpleDateFormat df = new SimpleDateFormat($formatString); df.setTimeZone(TimeZone.getTimeZone("UTC")); return df.format($timeValue == 0 ? new Date() : new Date($timeValue)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFormattedTime(){\r\n\t\tlong timestampInMs = ((long) timestamp * 1000);\r\n\t\tmessageTimestampTimeFormat = new SimpleDateFormat(messageTimestampTimeFormatString, Locale.getDefault()); \t//Initialise the time object we will use\r\n\t\tmessageTimestampTimeFormat.setTimeZone(TimeZone.getDefault());\...
[ "0.6753627", "0.6727799", "0.67220026", "0.655605", "0.647452", "0.6460203", "0.63420093", "0.61786544", "0.6149091", "0.6130439", "0.6108766", "0.6041088", "0.6039809", "0.60337186", "0.6015197", "0.60083824", "0.5998245", "0.59851533", "0.5984308", "0.59821147", "0.59218496...
0.6249192
7
TODO Autogenerated method stub
@Override public void windowActivated(WindowEvent arg0) { }
{ "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 windowDeactivated(WindowEvent arg0) { }
{ "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 windowDeiconified(WindowEvent arg0) { }
{ "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 windowIconified(WindowEvent arg0) { }
{ "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 windowOpened(WindowEvent arg0) { }
{ "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