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
The sheriff will inspect the bags of the other players.
@Override public void inspect(final ArrayList<Player> players, final Queue<Goods> cardsDeck) { Player sheriff = getSheriff(players); for (Player player : players) { if (player.getRole() != RoleType.Sheriff) { Bag bag = player.getBag(); // Check if he has enough money for a inspection if (sheriff.getMoney() >= Constants.MIN_MONEY_FOR_INSPECTION) { if (!bag.hasBribe()) { sheriff.setMoney(bag.inspect(sheriff.getMoney(), cardsDeck)); } else { sheriff.setMoney(sheriff.getMoney() + bag.takeBribe()); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "@Test\r\n\tpublic void BushTest_2(){\r\n\t\tPlay...
[ "0.58673143", "0.58017147", "0.57561076", "0.5751633", "0.5746725", "0.5726003", "0.5684512", "0.56682926", "0.565071", "0.56246275", "0.5622656", "0.5619463", "0.56179875", "0.561706", "0.5596252", "0.55935407", "0.5530958", "0.5528809", "0.5519347", "0.54833317", "0.5478849...
0.6151983
0
private static final Color COLOR_BTN = Color.color(0.2863, 0.451, 0.2706); private static final Color COLOR_BTN_INACTIVE = Color.color(0.5608, 0.6824, 0.4706); private static final Color COLOR_BTN_ACTIVE = Color.color(0.2588, 0.3255, 0.2353);
public MDContentTop(Group groupTop, HRectangle rect, IMDColorSchema colorSchema) { super(groupTop, rect, colorSchema); bOpenFile = new MDButton("CHOOSE FILE", colorSchema.top().button().normal(), colorSchema.top().button().inactive(), colorSchema.top().button().hovered()); bOpenMDFile = new MDButton("CHOOSE \"MY DICT\" FILE", colorSchema.top().button().normal(), colorSchema.top().button().inactive(), colorSchema.top().button().hovered()); tPercent = new MDText("%", colorSchema.top().button().inactive()); visibilityHelper().hideImmediately(bOpenFile, bOpenMDFile, tPercent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getBtnColor() {\n\t\treturn btnColor;\n\t}", "public Color getButtonColor(){\n\t\treturn buttonColor;\n\t}", "public void clrBtn(String str)\n {\n String greenClr= \"#9FEF52\";\n String grayClr = \"#F3F3F3\";\n\n String clrLeft = grayClr;\n String clrRight = g...
[ "0.68451446", "0.68118006", "0.6804589", "0.6325545", "0.62880725", "0.6229503", "0.621286", "0.6191282", "0.60951036", "0.60641396", "0.60634845", "0.6050042", "0.6042989", "0.60410553", "0.6029889", "0.6023295", "0.60066307", "0.5998519", "0.59835947", "0.5976271", "0.59569...
0.0
-1
//////// Utility methods ////////
private Map<String, String> expectedSelectorLabels() { return Map.of(Labels.STRIMZI_CLUSTER_LABEL, CLUSTER, Labels.STRIMZI_NAME_LABEL, KafkaResources.zookeeperStatefulSetName(CLUSTER), Labels.STRIMZI_KIND_LABEL, Kafka.RESOURCE_KIND); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Util() { }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private FormatUtilities() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "public interface CommonUtils {\n\tpublic static String getP...
[ "0.6056509", "0.5752236", "0.5752236", "0.566854", "0.56223476", "0.56223476", "0.56223476", "0.56223476", "0.5443362", "0.54229796", "0.5383755", "0.5369303", "0.5369303", "0.5367497", "0.5328327", "0.53089195", "0.5306171", "0.52550864", "0.5247743", "0.5237901", "0.523624"...
0.0
-1
Unique identifier of the place.
@ApiModelProperty(value = "Unique identifier of the place.") public String getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String idOfPlace()\n {\n return id;\n }", "String getUniqueId();", "String getUniqueID();", "public String getUniqueID();", "public String getPlaceId() {\n return placeId;\n }", "public String getUniqueID ( ) { return _uniqueID; }", "public String getUniqueId() {\n retu...
[ "0.7224005", "0.71736825", "0.698896", "0.6955183", "0.68654644", "0.68616986", "0.68308145", "0.66916835", "0.66819614", "0.6633321", "0.6629397", "0.6611084", "0.66098255", "0.65911704", "0.65828437", "0.6543312", "0.65319866", "0.6508768", "0.6508768", "0.6508768", "0.6508...
0.7017367
2
Reference link to the place
@ApiModelProperty(value = "Reference link to the place") public String getHref() { return href; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ReferenceLink createReferenceLink();", "String getReference();", "String getReference();", "public String getReference();", "public String getReference();", "String getLink();", "public String getLink();", "String getHref();", "public String getReferenceUrl() {\n\t\tif ((this.getMdht().getText() !=...
[ "0.68317735", "0.65248704", "0.65248704", "0.64656836", "0.64656836", "0.6363487", "0.63505167", "0.5886907", "0.5845089", "0.57907224", "0.57632047", "0.5730662", "0.5730519", "0.5728537", "0.5727979", "0.5722303", "0.57196784", "0.57150674", "0.5710727", "0.5707133", "0.567...
0.66672784
1
The role that the place plays, e.g. \"UNI Site\", or \"ENNI Site\".
@ApiModelProperty(required = true, value = "The role that the place plays, e.g. \"UNI Site\", or \"ENNI Site\".") @NotNull public String getRole() { return role; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRole();", "String getRole();", "public String getRole() {\r\n return role;\r\n }", "public java.lang.String getRole() {\n return role;\n }", "public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}", "public String getRole() { return this.role; }", "public...
[ "0.7651077", "0.7651077", "0.7489987", "0.74808586", "0.74125636", "0.7410657", "0.74041903", "0.73956007", "0.7371846", "0.735632", "0.7238448", "0.72330135", "0.71939653", "0.69776267", "0.6947672", "0.69255215", "0.68977565", "0.68923247", "0.68603116", "0.6762055", "0.674...
0.7930761
0
The type to which the place is referring. This may be \"Site\", \"FormattedAddress\", \"FieldedAddress\", \"ReferencedAddress\", or \"GeographicLocation
@ApiModelProperty(value = "The type to which the place is referring. This may be \"Site\", \"FormattedAddress\", \"FieldedAddress\", \"ReferencedAddress\", or \"GeographicLocation") public String getType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PlaceType getType() {\n\t\treturn type;\n\t}", "@AutoEscape\n\tpublic String getLocationType();", "public String getLocationType() {\n return locationType;\n }", "LocationType getLocationType() {\r\n\t\treturn type;\r\n\t}", "public LocationType getLocationType(){\n\t\treturn type;\n\t}", ...
[ "0.72434765", "0.7008024", "0.6834037", "0.67924714", "0.67877334", "0.6622615", "0.6547435", "0.6492723", "0.6464515", "0.62684643", "0.61912984", "0.6181249", "0.61723775", "0.6148243", "0.6145458", "0.6142701", "0.61340326", "0.6111093", "0.609584", "0.60608137", "0.600961...
0.8639541
0
A name commonly used by people to refer to this Service Site.
@ApiModelProperty(value = "A name commonly used by people to refer to this Service Site.") public String getSiteName() { return siteName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSiteName() {\r\n\t\treturn siteName;\r\n\t}", "public String siteName() {\n return this.siteName;\n }", "public String getSiteName() {\n\t\treturn siteName;\n\t}", "public String getSiteName() {\n return siteName;\n }", "public String getNameSite(){\n return this...
[ "0.71818906", "0.7124917", "0.7123198", "0.71033555", "0.7069292", "0.68014556", "0.6798012", "0.6436647", "0.64078945", "0.6328801", "0.6215436", "0.6197233", "0.6185177", "0.6146087", "0.60726666", "0.60720336", "0.60720336", "0.6036375", "0.6034742", "0.6033111", "0.602750...
0.7381378
0
The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).
@ApiModelProperty(value = "The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).") public String getSiteCompanyName() { return siteCompanyName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multi-tenant building).\")\n\n\n public String getSiteCustomerName() {\n return siteCustomerName;\n }", "java.lang.String getCompanyNa...
[ "0.7471871", "0.7286255", "0.7286255", "0.713774", "0.7077464", "0.70689934", "0.7040482", "0.7040482", "0.7040482", "0.70379996", "0.7034168", "0.7016701", "0.69505286", "0.69456077", "0.69456077", "0.69456077", "0.69456077", "0.6940024", "0.692996", "0.68666583", "0.6860995...
0.79392236
0
The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multitenant building).
@ApiModelProperty(value = "The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multi-tenant building).") public String getSiteCustomerName() { return siteCustomerName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).\")\n\n\n public String getSiteCompanyName() {\n return siteCompanyName;\n }", "java.lang.String getCompanyName();", "java.lang.String ge...
[ "0.7457819", "0.7078939", "0.7078939", "0.6918541", "0.6863625", "0.684196", "0.6756452", "0.6756452", "0.6756452", "0.6754587", "0.673492", "0.6726925", "0.6716287", "0.6713921", "0.66979605", "0.6670569", "0.6664454", "0.6664454", "0.6664454", "0.6664454", "0.66541606", "...
0.72510356
1
Additional information about the Site.
@ApiModelProperty(value = "Additional information about the Site.") public String getAdditionalSiteInformation() { return additionalSiteInformation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\n return site;\n }", "public String getSiteName() {\n return siteName;\n }", "public String siteName() {\n return this.siteName;\n...
[ "0.7264611", "0.7264611", "0.7202533", "0.6654586", "0.6632864", "0.66213816", "0.6611836", "0.65655255", "0.65534973", "0.65475297", "0.65475297", "0.65430397", "0.65323454", "0.6501776", "0.64890766", "0.64889455", "0.64882994", "0.6412544", "0.6401353", "0.6383555", "0.637...
0.71299267
3
A textual description of the Service Site.
@ApiModelProperty(value = "A textual description of the Service Site.") public String getSiteDescription() { return siteDescription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServerDescription();", "public String getServiceSite() {\r\n\t\treturn serviceSite;\r\n\t}", "@ApiModelProperty(value = \"A name commonly used by people to refer to this Service Site.\")\n\n\n public String getSiteName() {\n return siteName;\n }", "public java.lang.CharSequence getSite(...
[ "0.7022915", "0.70002353", "0.6991293", "0.69863445", "0.695976", "0.6926571", "0.6926571", "0.6866554", "0.66174585", "0.65593094", "0.6539575", "0.6528421", "0.65143806", "0.64945173", "0.6492873", "0.6463322", "0.6455778", "0.6455778", "0.6455778", "0.6455778", "0.6455778"...
0.78784674
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.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.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0...
0.0
-1
einai mia methodos pou tha allhlepidroume me ton xrhsth kai tha grafoume ston arraylist ths main opoy tha vazoume foithtes kai pio mathima eggrfate o kathenas thn kanw static giati den exei nohma na ftiaksw object na thn kalesw
public static void readData(ArrayList<Student> students, ArrayList<Course> courses) { //emfanizie mnm ston xrhsth,dexetai apanthsh apo ton xrhsth //kai thn apanthsh thn epistrefei ws alfarithmitiko //String answer= JOptionPane.showInputDialog("Enter your name:"); boolean more= true; while(more) { String selection= JOptionPane.showInputDialog("1:Student 2:Graduate"); int choice =Integer.parseInt(selection); String name= JOptionPane.showInputDialog("Name: "); String id= JOptionPane.showInputDialog("Id: "); //to arxikopoiw ws null gia na mhn vgazei error //ayto symvanei dioti an mpei mesa sto if pernei mai timh an omws den mpei den tha parei timh kai tha vgazei error String supervisor=null; if(choice == 2) { supervisor= JOptionPane.showInputDialog("Supervisor: "); } Student student; if(choice==1) { student= new Student(name,id); } else { student= new Graduate(name,id,supervisor); } String coursename =JOptionPane.showInputDialog("Enter course name: "); //ftiaxnoume ena for wste na diatreksw ola ta mathimata poy exie mesa h lista //sthn synexeia tha sygkrinw to mathima me thn epilogh tou xrhsth for (Course course:courses) { if(course.getName().equals(coursename)) { student.addCourses(course); } } //ton foithth ton topothetoume sthn lista poy yparxeis thn main kai thn pernei ws orisma h synarthsh students.add(student); String answer= JOptionPane.showInputDialog("More Students (Y/N)"); //gia string tha mporousa na kanw=="n" if(answer.equals("N")) { more= false; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract NSMutableArray<I_WorkFlowItem> tachesObligatoires();", "public static void main(String[] args) {\n \n empleado[] misEmpleados=new empleado[3];\n //String miArray[]=new String[3];\n \n misEmpleados[0]=new empleado(\"paco gomez\",123321,1998,12,12);\n misEm...
[ "0.661472", "0.64001274", "0.638791", "0.6328929", "0.6267996", "0.6148926", "0.6098111", "0.6087616", "0.6031877", "0.5999586", "0.5999202", "0.59311146", "0.5926274", "0.59185714", "0.5883064", "0.58612484", "0.5844312", "0.58415246", "0.5808177", "0.58002955", "0.57926273"...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jComboBox1 = new javax.swing.JComboBox(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); jPasswordField1 = new javax.swing.JPasswordField(); jTextField4 = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextPane1 = new javax.swing.JTextPane(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jTextField5 = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); setBackground(new java.awt.Color(23, 23, 23)); setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(228, 228, 228))); jComboBox1.setBackground(new java.awt.Color(135, 132, 132)); jComboBox1.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jComboBox1.setForeground(new java.awt.Color(16, 14, 14)); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Staff", "Chef", "Manager" })); jComboBox1.setBorder(null); jLabel1.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel1.setForeground(new java.awt.Color(253, 243, 243)); jLabel1.setText("Register As"); jLabel2.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel2.setForeground(new java.awt.Color(253, 243, 243)); jLabel2.setText("Full Name"); jLabel3.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel3.setForeground(new java.awt.Color(253, 243, 243)); jLabel3.setText("Password"); jLabel4.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel4.setForeground(new java.awt.Color(253, 243, 243)); jLabel4.setText("User Name"); jLabel5.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel5.setForeground(new java.awt.Color(253, 243, 243)); jLabel5.setText("Email ID"); jLabel6.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel6.setForeground(new java.awt.Color(253, 243, 243)); jLabel6.setText("Phone No."); jTextField1.setBackground(new java.awt.Color(83, 83, 83)); jTextField1.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jTextField1.setForeground(new java.awt.Color(241, 234, 234)); jTextField1.setBorder(null); jTextField1.setCaretColor(new java.awt.Color(245, 235, 235)); jTextField2.setBackground(new java.awt.Color(83, 83, 83)); jTextField2.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jTextField2.setForeground(new java.awt.Color(241, 234, 234)); jTextField2.setBorder(null); jTextField2.setCaretColor(new java.awt.Color(245, 235, 235)); jTextField3.setBackground(new java.awt.Color(83, 83, 83)); jTextField3.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jTextField3.setForeground(new java.awt.Color(241, 234, 234)); jTextField3.setBorder(null); jTextField3.setCaretColor(new java.awt.Color(245, 235, 235)); jPasswordField1.setBackground(new java.awt.Color(83, 83, 83)); jPasswordField1.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jPasswordField1.setForeground(new java.awt.Color(246, 234, 234)); jPasswordField1.setBorder(null); jPasswordField1.setCaretColor(new java.awt.Color(245, 243, 243)); jTextField4.setBackground(new java.awt.Color(83, 83, 83)); jTextField4.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jTextField4.setForeground(new java.awt.Color(241, 234, 234)); jTextField4.setBorder(null); jTextField4.setCaretColor(new java.awt.Color(245, 235, 235)); jLabel7.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel7.setForeground(new java.awt.Color(253, 243, 243)); jLabel7.setText("Address"); jTextPane1.setBackground(new java.awt.Color(92, 90, 90)); jTextPane1.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jTextPane1.setForeground(new java.awt.Color(241, 234, 234)); jScrollPane1.setViewportView(jTextPane1); jLabel10.setBackground(new java.awt.Color(119, 119, 119)); jLabel10.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N jLabel10.setForeground(new java.awt.Color(246, 238, 238)); jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel10.setText("Close"); jLabel10.setBorder(null); jLabel10.setOpaque(true); jLabel10.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel10MouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { jLabel10MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jLabel10MouseExited(evt); } }); jLabel11.setBackground(new java.awt.Color(119, 119, 119)); jLabel11.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N jLabel11.setForeground(new java.awt.Color(246, 238, 238)); jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel11.setText("Register"); jLabel11.setBorder(null); jLabel11.setOpaque(true); jLabel11.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel11MouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { jLabel11MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jLabel11MouseExited(evt); } }); jLabel8.setFont(new java.awt.Font("DejaVu Sans", 1, 18)); // NOI18N jLabel8.setForeground(new java.awt.Color(250, 243, 243)); jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel8.setText("Add New Employee"); jLabel12.setBackground(new java.awt.Color(119, 119, 119)); jLabel12.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N jLabel12.setForeground(new java.awt.Color(246, 238, 238)); jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel12.setText("Add Pic"); jLabel12.setBorder(null); jLabel12.setOpaque(true); jLabel12.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel12MouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { jLabel12MouseEntered(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jLabel12MouseExited(evt); } }); jTextField5.setBackground(new java.awt.Color(83, 83, 83)); jTextField5.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jTextField5.setForeground(new java.awt.Color(241, 234, 234)); jTextField5.setBorder(null); jTextField5.setCaretColor(new java.awt.Color(245, 235, 235)); jLabel9.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N jLabel9.setForeground(new java.awt.Color(253, 243, 243)); jLabel9.setText("Salary($)"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(61, 61, 61) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jTextField2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE) .addComponent(jComboBox1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE) .addComponent(jTextField4)) .addContainerGap(34, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createSequentialGroup() .addGap(103, 103, 103) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addGap(0, 0, Short.MAX_VALUE)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(25, 25, 25) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(24, 24, 24) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel4) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(22, 22, 22) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel9) .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(36, 36, 36)) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7318948", "0.7290426", "0.7290426", "0.7290426", "0.7284922", "0.7247965", "0.7213206", "0.72080696", "0.7195916", "0.7189941", "0.71835536", "0.71579427", "0.7147217", "0.70927703", "0.7080282", "0.7055882", "0.6987108", "0.69770193", "0.6954159", "0.69529283", "0.6944756...
0.0
-1
Adds a number into the data structure.
public void addNum(int num) { minHeap.add(num); maxHeap.add(minHeap.poll()); if (minHeap.size() < maxHeap.size()) { minHeap.add(maxHeap.poll()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(int number) {\n sum.add(number);\n }", "public void add(int number) {\n numbers.put(number, numbers.getOrDefault(number, 0)+1);\n }", "public void addNumber(int number) {\n totalNumber += number;\n availableNumber += number;\n }", "public void addNumber(in...
[ "0.8080499", "0.77685523", "0.7699381", "0.7628925", "0.7549768", "0.7433662", "0.7425931", "0.7411523", "0.7397823", "0.73879", "0.73733556", "0.7319837", "0.73146677", "0.7300157", "0.7299552", "0.7297387", "0.72879845", "0.71337533", "0.7131123", "0.70962495", "0.7091559",...
0.0
-1
Returns the median of current data stream
public double findMedian() { return minHeap.size() > maxHeap.size() ? minHeap.peek() : (minHeap.peek() + maxHeap.peek()) / 2.0d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T median();", "public static double getMedian()\n {\n // add your code here\n if(s.size()==g.size()){\n return (double) ((s.peek()+g.peek())/2);\n }\n else if(s.size() > g.size()) {\n return (double) s.peek();\n }\n else {\n re...
[ "0.79925585", "0.759789", "0.72116417", "0.7128441", "0.7100888", "0.7088864", "0.7068119", "0.70391476", "0.69830686", "0.69734204", "0.680798", "0.6799214", "0.6771261", "0.67597145", "0.6717143", "0.6616435", "0.65829223", "0.65582687", "0.65432656", "0.6539855", "0.650228...
0.70829886
6
/ Ignore unneeded Header/Parent elements
public void startElement(String uri, String localName,String qName, Attributes attributes) throws SAXException { if(qName.equalsIgnoreCase("sce:PLPExtract") | (qName.equalsIgnoreCase("sce:Payload")) | (qName.equalsIgnoreCase("sce:Header"))) { return; } builder.append("<").append(qName).append(">"); if (qName.equalsIgnoreCase("sce:mRID")) { mRID = true; } if (qName.equalsIgnoreCase("sce:aliasName")) { aliasName = true; } if (qName.equalsIgnoreCase("sce:name")) { name = true; } if (qName.equalsIgnoreCase("sce:grandFatherFlag")) { grandFather = true; } if (qName.equalsIgnoreCase("sce:type")) { pType = true; } if (qName.equalsIgnoreCase("sce:value")) { value = true; } if (qName.equalsIgnoreCase("sce:baseKind")) { baseKind = true; } if (qName.equalsIgnoreCase("sce:classification")) { classification = true; } if (qName.equalsIgnoreCase("sce:unit")) { unit = true; } if (qName.equalsIgnoreCase("sce:speciesType")) { speciesT = true; } if (qName.equalsIgnoreCase("sce:rSMVal")) { rSMVal = true; } if (qName.equalsIgnoreCase("sce:specialProjectName")) { specialProj = true; } if (qName.equalsIgnoreCase("sce:currentRating")) { cRating = true; } if (qName.equalsIgnoreCase("sce:inServiceRating")) { iRating = true; } if (qName.equalsIgnoreCase("sce:highWindFlag")) { highWind = true; } if (qName.equalsIgnoreCase("sce:highFireFlag")) { highFire = true; } if (qName.equalsIgnoreCase("sce:srsName")) { srsName = true; } if (qName.equalsIgnoreCase("sce:xPosition")) { xPos = true; } if (qName.equalsIgnoreCase("sce:yPosition")) { yPos = true; } if (qName.equalsIgnoreCase("sce:description")) { desc = true; } if (qName.equalsIgnoreCase("sce:street")) { street = true; } if (qName.equalsIgnoreCase("sce:city")) { city = true; } if (qName.equalsIgnoreCase("sce:mapRefNumber")) { mapRef = true; } if (qName.equalsIgnoreCase("sce:installationDate")) { installDate = true; } if (qName.equalsIgnoreCase("sce:symbolRef")) { symbolRef = true; } if (qName.equalsIgnoreCase("sce:orientation")) { orientation = true; } if (qName.equalsIgnoreCase("sce:substationMRID")) { substationMRID = true; } if (qName.equalsIgnoreCase("sce:owner")) { owner = true; } if (qName.equalsIgnoreCase("sce:ownerType")) { ownerType = true; } if (qName.equalsIgnoreCase("sce:ratedVoltage")) { ratedVoltage = true; } if (qName.equalsIgnoreCase("gml:pos")) { pos = true; } if (qName.equalsIgnoreCase("sce:bundleType")) { bundleType = true; } if (qName.equalsIgnoreCase("sce:circuitName")) { circuitName = true; } if (qName.equalsIgnoreCase("sce:circuitSection")) { circuitSection = true; } if (qName.equalsIgnoreCase("sce:material")) { material = true; } if (qName.equalsIgnoreCase("sce:size")) { size = true; } if (qName.equalsIgnoreCase("sce:quantity")) { quantity = true; } if (qName.equalsIgnoreCase("sce:phase")) { phase = true; } if (qName.equalsIgnoreCase("gml:posList")) { posList = true; } if (qName.equalsIgnoreCase("sce:no_of_wires")) { no_of_wires = true; } if (qName.equalsIgnoreCase("sce:commIndicator")) { commIndicator = true; } if (qName.equalsIgnoreCase("sce:structureID")) { structureID = true; } if (qName.equalsIgnoreCase("sce:strucRefMRID")) { strucRefMRID = true; } if (qName.equalsIgnoreCase("sce:serviceType")) { serviceType = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void forceNotInsideHeader() {\n insideHeader = false;\n }", "private void cleanHeaders(Element e) {\n for (int headerIndex = 1; headerIndex < 3; headerIndex++) {\n Elements headers = e.getElementsByTag(\"h\" + headerIndex);\n for (int i = headers.size() - 1; i >= 0; ...
[ "0.66981685", "0.64169675", "0.6131209", "0.60576165", "0.58748466", "0.5803439", "0.5763202", "0.5722234", "0.5718107", "0.5700169", "0.5571681", "0.55279624", "0.55191875", "0.5487276", "0.5429115", "0.5305457", "0.530338", "0.5265382", "0.5261432", "0.52524126", "0.5220809...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which) { }
{ "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
GUI Components Constructor Card constructor
public Card (char inSuit, int inFace) { if (!setSuit(inSuit)) { System.out.println("Card class reports incorrect suit: " + inSuit); System.out.println("Setting suit to: " + DEFAULT_SUIT); } if (!setFace(inFace)) { System.out.println("Card class reports incorrect face: " + inFace); System.out.println("Setting face to: " + DEFAULT_FACE); } // not a wildcard by default wildcard = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BuilderRaceCard() {\n initComponents();\n }", "public Card () {}", "Card(){\t \n}", "public PlayerPanel(Game game) {\n super(game);\n initComponents();\n setBorder(GUIConstants.PANEL_BORDER);\n cardLabels = new ArrayList<>();\n cardLabels.add(card1Label);\n...
[ "0.71983737", "0.7129867", "0.7088638", "0.6929416", "0.69214106", "0.6890226", "0.6871205", "0.68594354", "0.68048614", "0.67787933", "0.67479575", "0.6739113", "0.67012686", "0.66723734", "0.6664935", "0.6664678", "0.6613091", "0.65778154", "0.65543157", "0.65519005", "0.65...
0.0
-1
Return the value of the card
final public int getPoints() { if (wildcard) { return 20; } if (isJoker()) { return 50; } return face; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCardValue()\n {\n return cardValue; \n }", "public String getCardValue() {\n return Cvalue;\n }", "public int getValue() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id % 13 != 0)\n\t\t\tretu...
[ "0.81840754", "0.79831463", "0.76327753", "0.7439547", "0.73498505", "0.7178942", "0.70840096", "0.6904575", "0.6884468", "0.68190694", "0.68006915", "0.68006915", "0.6777016", "0.6776743", "0.6770548", "0.67349464", "0.671802", "0.67148924", "0.6649184", "0.66277903", "0.662...
0.0
-1
Compare a given Card to this
public int compareTo(Card right) { if (face == right.face && suit == right.suit) { return 0; } if (face < right.face) { return -1; } if (face > right.face) { return 1; } // faces are the same at this point // TODO do we want to sort by suit in the order specified in Deck.SUITS? if (face < right.face) { return -1; } if (face > right.face) { return 1; } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equals(Card anotherCard){\n\t\t\n\t}", "public boolean equals(Card other) {\n return this.compareTo(other) == 0;\n }", "boolean similarCard(Card c);", "public boolean equals(Card OtherCard){\n\t\treturn (this.equals(OtherCard));\n\t}", "public boolean equals(Card card)...
[ "0.76717776", "0.74872357", "0.7231861", "0.7202607", "0.71062577", "0.7097842", "0.70776016", "0.70540655", "0.6956278", "0.69448626", "0.69376194", "0.6929459", "0.68489766", "0.67848027", "0.6751328", "0.67413", "0.67366505", "0.67276305", "0.66897684", "0.6662736", "0.664...
0.0
-1
Determine if the Card is a Joker
final public boolean isJoker() { return (face == 11 && (suit == '1' || suit == '2' || suit == '3')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean haveJ(char suit){\n for (int i=0; i<6; i++)\n if ((hand.get(i).suit == suit) && (hand.get(i).rank == 11))\n return true;\n return false;\n }", "boolean hasCardType();", "public boolean canCapture(Card otherCard) {\n return this.getRank().equals(Rank.JAC...
[ "0.67974526", "0.6502997", "0.6496594", "0.64593077", "0.64005536", "0.63401914", "0.6264692", "0.6214182", "0.6182767", "0.6138909", "0.6123534", "0.6101791", "0.60399556", "0.6038924", "0.59535205", "0.5930608", "0.58987564", "0.5879928", "0.58753324", "0.58729434", "0.5863...
0.80070555
0
Mutators Update the suit.
public boolean setSuit(char inSuit) { inSuit = Character.toUpperCase(inSuit); boolean status = false; switch (inSuit) { case 'S': case 'H': case 'C': case 'D': case 'T': case '1': case '2': case '3': suit = inSuit; status = true; break; default: suit = DEFAULT_SUIT; status = false; break; } return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSuit(Suit suit) {\n this.suit = suit;\n }", "public void update()\n {\n scorecard.update();\n scorer.update();\n }", "protected void apply() {\r\n\t\tplayer.setAutoRoll(autoroll);\r\n\t\tplayer.setMission(mission);\r\n\t\tplayer.setState(state);\r\n\t\tplayer.getC...
[ "0.644198", "0.6204386", "0.615477", "0.6024761", "0.59406024", "0.5904118", "0.581858", "0.5813244", "0.57717776", "0.5741438", "0.5741438", "0.57222056", "0.5717524", "0.5682365", "0.5651456", "0.56078714", "0.5604399", "0.5588661", "0.55868256", "0.55816096", "0.55638677",...
0.0
-1
Update the wildcard for the current round
public void updateWildcard(int inFace) { if (face == inFace) { wildcard = true; } else { wildcard = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setWildcardClass(boolean wildcard) \r\n\t{\tthis.wildcard = wildcard;\t}", "public void processWildcardsNext() {\n ws = new WildcardSegment();\n WildcardSegment next;\n int sw,mw; //Single Wildcard, Multi-Wildcard\n //currIndex = jta.getSelectionStart();\n int ci...
[ "0.5893559", "0.5738137", "0.5629451", "0.55738276", "0.54990786", "0.5483612", "0.53511", "0.52898467", "0.5288134", "0.5261777", "0.5238389", "0.5223147", "0.52087194", "0.51555467", "0.5150623", "0.51236993", "0.51135314", "0.5088846", "0.5013723", "0.49776512", "0.4905267...
0.7098459
0
Code Generation Code Explanation Utility Methods Printing Methods Return the card as a string
final public String toString() { switch (face) { case 10: return "X" + Character.toString(suit); case 11: return "J" + Character.toString(suit); case 12: return "Q" + Character.toString(suit); case 13: return "K" + Character.toString(suit); default: return face + Character.toString(suit); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String printCard(){\r\n return ranks[rank] + \" of \" + suits[suit];\r\n }", "public void printCard() {\r\n String print = \"[\";\r\n for (Card card : cards) {\r\n print += card.toString();\r\n print += \",\";\r\n }\r\n\r\n print = print.subst...
[ "0.78846365", "0.77481323", "0.7714869", "0.7685902", "0.76333255", "0.7493512", "0.7491798", "0.7489", "0.7477248", "0.7417131", "0.7402854", "0.73881036", "0.7364393", "0.7349964", "0.733351", "0.7316977", "0.7301463", "0.7265348", "0.72359437", "0.72034043", "0.7188955", ...
0.68423265
36
This is my Student constructor which takes in two arguments
public Student(String registrationNumber, int[] marks){ this.registrationNumber = registrationNumber; this.marks = marks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "public Student(){}", "public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }", "public Student() {\n \n }", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchale...
[ "0.8264123", "0.8221286", "0.81737596", "0.81706965", "0.8159421", "0.8144093", "0.8143557", "0.80544794", "0.80544794", "0.80544794", "0.7991634", "0.7960387", "0.795678", "0.7942838", "0.7895884", "0.78484017", "0.7845782", "0.7831705", "0.7824444", "0.7741897", "0.7725511"...
0.7142422
66
returns registrationNumber as String
public String getRegistrationNumber(){ return registrationNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getVehicleRegNumber() {\n LOGGER.info(\"Please type the vehicle registration number \"\n + \"and press enter key\");\n return inputReaderUtil.readVehicleRegistrationNumber();\n }", "public String getRegisterNumber() { return registerNumber; }", "public java.lang.S...
[ "0.76134163", "0.7196216", "0.71584356", "0.70635104", "0.7056935", "0.6820503", "0.68146735", "0.67955947", "0.6786332", "0.678504", "0.67611843", "0.675308", "0.6727679", "0.6727679", "0.66591436", "0.6624721", "0.66101134", "0.6576929", "0.65134954", "0.6506977", "0.647492...
0.76214135
0
Sets the value for registration Number registration number is changed registration number value
public void setRegistrationNumber(String newRegistrationNumber){ registrationNumber= newRegistrationNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setRegNum(int regNum) {\n this.regNum = regNum;\n }", "public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }", "public static void viewChangePropertyRegistrant() {\n\t\tint original_regNum = Integer.parseInt(getResponseTo(\"Enter o...
[ "0.6943533", "0.6754486", "0.6743659", "0.66355264", "0.65375787", "0.6440274", "0.6360676", "0.6338355", "0.63227177", "0.62698835", "0.6113725", "0.6099982", "0.60445786", "0.6010417", "0.5963414", "0.59552526", "0.5945041", "0.5940072", "0.58584124", "0.58535963", "0.58180...
0.8003639
0
returns marks as integer array of marks
public int[] getMarks(){ return marks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMarks(int[] marks) {\n\t\tthis.marks = marks;\n\t}", "public void setMarks(int[] newMarks){\n marks = newMarks;\n }", "public List<Mark> getMarks ()\r\n {\r\n return marks;\r\n }", "public double[] avgBtn (double marks[])\n {\n return marks; \n }", "public i...
[ "0.68511707", "0.6479304", "0.6243509", "0.61795086", "0.6115923", "0.6102521", "0.60335606", "0.5848026", "0.581111", "0.572781", "0.5722372", "0.569402", "0.5687714", "0.56860495", "0.5681559", "0.5664482", "0.56548464", "0.5631788", "0.56141", "0.5607112", "0.55982006", ...
0.80924356
0
Sets the values for marks marks is equal to changed values for marks
public void setMarks(int[] newMarks){ marks = newMarks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateMarks() {\n this.marks.addAll(thisTurnMarks);\n thisTurnMarks.clear();\n if(game != null)\n game.notifyUpdateMarks(this);\n }", "public void setMarks(int[] marks) {\n\t\tthis.marks = marks;\n\t}", "public void setMarks(float mark1, float mark2, float mark3, ...
[ "0.6960447", "0.68796504", "0.669459", "0.6433329", "0.6384158", "0.624148", "0.61689675", "0.6161271", "0.6144031", "0.6118997", "0.6112617", "0.5979567", "0.58905077", "0.58685166", "0.56642634", "0.56271243", "0.5605088", "0.5585904", "0.5582476", "0.5577148", "0.55496204"...
0.7288376
0
toString method will print Student in the specified style iwth specified information.
public String toString(){ return "The marks for student " + registrationNumber + "" + " are " + Arrays.toString(getMarks()) + "" + "their grade is " + totalMark() + "." + " This student passed: " + passed() + "."; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(Student s){\r\n\r\n\r\n\t\treturn \"******************************************************\\n*\"+ \r\n\r\n\t\t\t\t\t\" Name #\"+\" \"+s.getName()+\"\\n*\"+\r\n\t\t\t\t\t\" id number # \"+s.getId()+ \"\\n*\"+\r\n\t\t\t\t\t\" Grades # \"+s.getGrade(0)+\" |\"+ s.getGrade(1)+\" |\"+s.ge...
[ "0.74061114", "0.7242341", "0.71634114", "0.7103407", "0.7022271", "0.6979179", "0.6958083", "0.69449216", "0.6939236", "0.69369555", "0.6928052", "0.68685704", "0.6863874", "0.68261135", "0.68226504", "0.6821471", "0.68094337", "0.6774648", "0.6722409", "0.6659277", "0.66539...
0.62078404
46
This method will set the mark for a certain assignment
public void setAssignmentMark(int assignmentNumber, int mark){ // we subtract 1 from the assignment number so it will match to the // indices of the assignment in the array marks[assignmentNumber - 1] = mark; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMark\n (int r, int c,\n Mark mark);", "public void setMark(int mark) {\n\t\tthis.mark = mark;\n\t}", "public void mark()\n {\n mark = true;\n }", "public void changeMark() {\n marked = !marked;\n }", "public void setMark( String newMark )\n\t\t{\n\t\t\tmark = ne...
[ "0.76064765", "0.7482434", "0.737927", "0.7282328", "0.7208132", "0.72074735", "0.72004557", "0.7196711", "0.70550644", "0.7003337", "0.6994462", "0.69897896", "0.6985465", "0.68738043", "0.6782925", "0.67391217", "0.67111313", "0.6669934", "0.66689235", "0.66422075", "0.6603...
0.79684424
0
This method will return the total mark earned for a student based on marks. The method will iterate through the marks array and multiply those marks by the weighted marks in order to obtain the total marks earned by a student
public double totalMark(){ // Initializing variables for the loop double sumMarks = 0; double weightedGrade = 0; int totalRemovedWeight = 0; for (int i = 0; i < marks.length; i++){ if (marks[i] != -1){ weightedGrade = (marks[i] * weightPerMark[i]) / 100.; sumMarks += weightedGrade; }else if(marks[i] == -1){ marks[i] = 0; totalRemovedWeight += weightPerMark[i]; weightPerMark[i] = 0; weightedGrade = (marks[i] * weightPerMark[i]) / 100.; sumMarks += weightedGrade; } } // After loop finishes I need to make sure that the weight removed was // not larger than 50, if it was I need to return -1, otherwise I return // weighted grade of the student after normalizing for any removed marks // Math.round used to give me rounded percentage to 1 decimal point if (totalRemovedWeight > 50){ return -1; }else if (totalRemovedWeight < 50 && totalRemovedWeight > 0){ return Math.round(sumMarks/(100 - totalRemovedWeight) * 100 * 10) / 10.; }else{ return Math.round(sumMarks * 10) / 10.; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getSumOfMarks() {\r\n\r\n float sum = 0f;\r\n for (int i = 0; i < numberOfCourses; i++)\r\n sum += marks[i];\r\n return sum;\r\n }", "public double classAverage(double mark, double weight) {\n double weightedAvg = 0.0;\n\n for (int i = 0; i < tests.si...
[ "0.7090022", "0.6315774", "0.619727", "0.6098037", "0.605194", "0.6046682", "0.60107225", "0.5955355", "0.59335905", "0.5850501", "0.5799784", "0.579785", "0.5796683", "0.57777935", "0.5698183", "0.5689375", "0.56736034", "0.5602197", "0.5563356", "0.5555654", "0.5468715", ...
0.78333753
0
This method will return true if totalmarks() greater or equal 50, false if less than and, or "not enough marks" message if exeption was thrown due to not having sufficient marks for a student
public boolean passed(){ if (totalMark() == -1) { throw new IllegalArgumentException("Not enough marks to evaluate student"); } else if (totalMark() >= 50){ return true; }else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printGrade(int mark){\n \n if (mark <50){\n System.out.println(\"FAIL\");\n }\n else {\n System.out.println(\"PASS\");\n }\n }", "public boolean checkMarksNumber(Player shooter, int marks){\n int count...
[ "0.694175", "0.6486502", "0.6437909", "0.6351998", "0.6190531", "0.6137908", "0.60552645", "0.603033", "0.5922893", "0.58969235", "0.5816524", "0.57970047", "0.5795996", "0.57426006", "0.5684098", "0.5642745", "0.5616035", "0.560353", "0.5602822", "0.5577933", "0.5569034", ...
0.8066389
0
main method coded for running in my terminal
public static void main(String[] args){ int [] francesMarks = {90 , 57 , 50 , 90 , 50 , 90 , -1 , 50 , 12 , 90 , 50 , 40 , 100 , 100}; Student frances = new Student("1234", francesMarks); frances.setAssignmentMark(5, 90); System.out.println(frances); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[]args) throws IOException {\n }", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}...
[ "0.7215058", "0.7208168", "0.71744335", "0.71741503", "0.71674126", "0.71674126", "0.71556526", "0.71550685", "0.7126517", "0.71235734", "0.71216816", "0.71216816", "0.7121533", "0.71150863", "0.710612", "0.710612", "0.7097923", "0.7091388", "0.70820725", "0.70782286", "0.705...
0.0
-1
The name of the image author.
@JsonProperty("name") public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthorName() {\n return this.authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return mAuthorName;\n }", "public String getAuth...
[ "0.76623255", "0.7651915", "0.7651915", "0.7550585", "0.7548968", "0.74236125", "0.7409245", "0.7402495", "0.729466", "0.7230117", "0.7211844", "0.72074705", "0.720217", "0.7137355", "0.7122252", "0.711261", "0.7064837", "0.70354307", "0.70327824", "0.70327824", "0.70233965",...
0.0
-1
URL of the user page of the image author in Wikipedia.
@JsonProperty("url") public String getUrl() { return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected String getImageUrl() {\n\t\treturn user.getUserInfo().getImageUrl();\n\t}", "String getAvatarUrl();", "private String getAuthorLink(Status status, TweetPrinter printer) {\n \t\tString url = \"http://twitter.com/\" + status.getUser().getScreenName();\n \t\treturn printer.getLink(status.ge...
[ "0.6115763", "0.57891166", "0.57097447", "0.55743426", "0.5573392", "0.5554329", "0.5554329", "0.55436534", "0.5531973", "0.5527711", "0.54949933", "0.5474032", "0.5470694", "0.5466333", "0.54356444", "0.5431487", "0.54253864", "0.54236543", "0.5414976", "0.5363974", "0.53478...
0.0
-1
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.78843355", "0.7548756", "0.7496465" ]
0.7460632
99
Dung cho exception case
FdsPosSysTask findOneByObjecttaskAndTypetask(@Param("object") String object, @Param("type") String type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "void mo57276a(Exception exc);", "public void sendeFehlerHelo();", "public void falschesSpiel(SpielException e);", "public void Excepti() throws Exception{ \n throw new Exception(\"El dato especificado NO existe en la lista!!!\...
[ "0.6722626", "0.66866213", "0.6549029", "0.6534172", "0.64556605", "0.6449617", "0.62566555", "0.62399685", "0.6218756", "0.61954623", "0.61535984", "0.614298", "0.61428064", "0.6133254", "0.61281884", "0.61232966", "0.61230826", "0.6121542", "0.61204606", "0.6087905", "0.607...
0.0
-1
Creates a graphical Rubik's Cube model with the given square colours. All colour lists are in the order topleft, topmiddle, topright, middleleft, middle, middleright, bottomleft, bottommiddle, bottomright.
RubiksCubeModel( List<Colour> frontColours, List<Colour> leftColours, List<Colour> backColours, List<Colour> rightColours, List<Colour> topColours, List<Colour> bottomColours) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateCube() {\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElement(0, -1);\n\t\tverts[0].setElement(1, -1);\n\t\tverts[0].setElement(2, -1);\n\t\t\n\t\tverts[1].setElement(0, 1);\...
[ "0.65494937", "0.62242746", "0.61754304", "0.58461624", "0.58216506", "0.5805272", "0.5697866", "0.56487674", "0.5567978", "0.5563561", "0.55438334", "0.55386657", "0.5531682", "0.5464218", "0.54209465", "0.5420045", "0.53615236", "0.5354159", "0.53000027", "0.5248523", "0.51...
0.77419084
0
Draws the Rubik's Cube graphic to the OpenGL context.
void draw(GL10 gl) { long timeElapsed = SystemClock.uptimeMillis() - startTime; boolean animationFinished = animating && timeElapsed > ANIMATION_TIME; if (animationFinished) { animating = false; allSubCubes().forEach(Cube::finishAnimation); } allSubCubes().forEach(cube -> cube.draw(gl, timeElapsed)); // Must be called after cubes are drawn so doesn't start drawing new animation before last if (animationFinished && animationListener != null) { animationListener.animationFinished(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawCube() {\r\n GLES20.glUseProgram(program);\r\n\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n\r\n // Set the Model in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n\r\n ...
[ "0.7342917", "0.6771587", "0.67098993", "0.66907775", "0.6597234", "0.6587144", "0.65019965", "0.64574844", "0.6451782", "0.64361763", "0.638036", "0.6379364", "0.6359921", "0.6340941", "0.63103557", "0.62926316", "0.62584513", "0.62538725", "0.62436384", "0.6233611", "0.6229...
0.56616455
73
Animates the turning of the front face of the cube graphic clockwise.
void front() { startAnimation(frontSubCubes(), Axis.Z, Direction.CLOCKWISE); frontCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void frontInv() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.ANTICLOCKWISE);\n frontCubeSwap();\n frontCubeSwap();\n frontCubeSwap();\n }", "public void rotateToFront() {\n SXRTransform transform = mSceneRootObject.getTransform();\n transform.setRotation(1, 0...
[ "0.72756094", "0.6634206", "0.653682", "0.6500778", "0.6360257", "0.6204307", "0.6154713", "0.60775536", "0.60364485", "0.5989916", "0.59447867", "0.5887812", "0.58620936", "0.57001114", "0.5690515", "0.5677678", "0.5644894", "0.5630369", "0.55818975", "0.55587876", "0.553921...
0.73858875
0
Animates the turning of the front face of the cube graphic anticlockwise.
void frontInv() { startAnimation(frontSubCubes(), Axis.Z, Direction.ANTICLOCKWISE); frontCubeSwap(); frontCubeSwap(); frontCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void front() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.CLOCKWISE);\n frontCubeSwap();\n }", "public void rotateToFront() {\n SXRTransform transform = mSceneRootObject.getTransform();\n transform.setRotation(1, 0, 0, 0);\n transform.rotateByAxisWithPivot(-frontFac...
[ "0.77739173", "0.6855452", "0.65442985", "0.63009155", "0.62425077", "0.6116028", "0.6054637", "0.60389614", "0.60104173", "0.59628665", "0.5949907", "0.59431154", "0.58772695", "0.58012754", "0.5781629", "0.5719695", "0.57150036", "0.5675019", "0.56737757", "0.56548387", "0....
0.74816895
1
Animates the turning of the left face of the cube graphic clockwise.
void left() { startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE); leftCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void leftInv() {\n startAnimation(leftSubCubes(), Axis.X, Direction.CLOCKWISE);\n leftCubeSwap();\n leftCubeSwap();\n leftCubeSwap();\n }", "private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rig...
[ "0.74572027", "0.7291492", "0.7229596", "0.7211873", "0.7186947", "0.7095664", "0.7093079", "0.70373976", "0.70133626", "0.69013584", "0.67877406", "0.67762357", "0.67507523", "0.6718007", "0.67063034", "0.66968143", "0.6679448", "0.6646355", "0.66295874", "0.6616865", "0.659...
0.76418406
0
Animates the turning of the front face of the cube graphic anticlockwise.
void leftInv() { startAnimation(leftSubCubes(), Axis.X, Direction.CLOCKWISE); leftCubeSwap(); leftCubeSwap(); leftCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void front() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.CLOCKWISE);\n frontCubeSwap();\n }", "void frontInv() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.ANTICLOCKWISE);\n frontCubeSwap();\n frontCubeSwap();\n frontCubeSwap();\n }", "public v...
[ "0.77739173", "0.74816895", "0.6855452", "0.65442985", "0.63009155", "0.62425077", "0.6116028", "0.60389614", "0.60104173", "0.59628665", "0.5949907", "0.59431154", "0.58772695", "0.58012754", "0.5781629", "0.5719695", "0.57150036", "0.5675019", "0.56737757", "0.56548387", "0...
0.6054637
7
Animates the turning of the right face of the cube graphic clockwise.
void right() { startAnimation(rightSubCubes(), Axis.X, Direction.CLOCKWISE); rightCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void rightInv() {\n startAnimation(rightSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n rightCubeSwap();\n rightCubeSwap();\n rightCubeSwap();\n }", "public void turnRight()\r\n\t{\r\n\t\theading += 2; //JW\r\n\t\t//Following the camera\r\n\t\t//heading += Math.sin(Math.toRadians(1...
[ "0.70688266", "0.68274504", "0.67785674", "0.6611175", "0.6503233", "0.6463068", "0.6441281", "0.64060044", "0.6362524", "0.6321804", "0.631266", "0.62940335", "0.6229417", "0.6222571", "0.62185514", "0.61933225", "0.6157773", "0.6152936", "0.6137205", "0.6134913", "0.6133044...
0.7282736
0
Animates the turning of the left face of the cube graphic anticlockwise.
void rightInv() { startAnimation(rightSubCubes(), Axis.X, Direction.ANTICLOCKWISE); rightCubeSwap(); rightCubeSwap(); rightCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void left() {\n startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n leftCubeSwap();\n }", "void leftInv() {\n startAnimation(leftSubCubes(), Axis.X, Direction.CLOCKWISE);\n leftCubeSwap();\n leftCubeSwap();\n leftCubeSwap();\n }", "private void rot...
[ "0.79500544", "0.76759124", "0.73756313", "0.72034395", "0.71536356", "0.7137123", "0.71310526", "0.7056859", "0.70555395", "0.70525986", "0.70455176", "0.7010165", "0.70093167", "0.6973074", "0.69586605", "0.6929508", "0.6925708", "0.6898514", "0.68958884", "0.6736692", "0.6...
0.66379595
21
Animates the turning of the top face of the cube graphic clockwise.
void top() { startAnimation(topSubCubes(), Axis.Y, Direction.CLOCKWISE); topCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "void rotateInv() {\n startAnimation(allSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n rotateCubeSwap();\n rotateCubeSwap();\n rotateCubeSwap();\n }", "void t...
[ "0.70046735", "0.6839873", "0.6774444", "0.6562748", "0.64496076", "0.6305175", "0.6278495", "0.6219525", "0.61026263", "0.6076076", "0.5908159", "0.5875962", "0.5874131", "0.5873596", "0.5851468", "0.5732168", "0.56226736", "0.5620576", "0.55860037", "0.5556025", "0.5552108"...
0.6456678
4
Animates the turning of the top face of the cube graphic anticlockwise.
void topInv() { startAnimation(topSubCubes(), Axis.Y, Direction.ANTICLOCKWISE); topCubeSwap(); topCubeSwap(); topCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void top() {\n startAnimation(topSubCubes(), Axis.Y, Direction.CLOCKWISE);\n topCubeSwap();\n }", "void frontInv() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.ANTICLOCKWISE);\n frontCubeSwap();\n frontCubeSwap();\n frontCubeSwap();\n }", "void front() {...
[ "0.6903819", "0.681974", "0.66984385", "0.66457826", "0.65519685", "0.6535634", "0.6437196", "0.62972903", "0.6243334", "0.6110278", "0.6077944", "0.60121596", "0.5926477", "0.587721", "0.58085907", "0.5748706", "0.5740305", "0.5624335", "0.56079924", "0.5568018", "0.55121213...
0.70583814
0
Animates the turning of the bottom face of the cube graphic clockwise.
void bottom() { startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE); bottomCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bottomInv() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.CLOCKWISE);\n bottomCubeSwap();\n bottomCubeSwap();\n bottomCubeSwap();\n }", "public void animate() {\n // change our angle of view\n mRenderer.setAngle(mRenderer.getAngle() + 1.2f);\n\n i...
[ "0.69318676", "0.63371736", "0.6092459", "0.57766", "0.57595944", "0.57285964", "0.55817527", "0.5567339", "0.5541812", "0.5468734", "0.54360056", "0.5429684", "0.53698283", "0.5344256", "0.5330803", "0.5329574", "0.5295054", "0.5278144", "0.52775127", "0.5237613", "0.5196598...
0.6960763
0
Animates the turning of the bottom face of the cube graphic anticlockwise.
void bottomInv() { startAnimation(bottomSubCubes(), Axis.Y, Direction.CLOCKWISE); bottomCubeSwap(); bottomCubeSwap(); bottomCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }", "public void animate() {\n // change our angle of view\n mRenderer.setAngle(mRenderer.getAngle() + 1.2f);\n\n if (mCurrentAktieCubeLayer == null) {\n int...
[ "0.7372537", "0.6176095", "0.5861825", "0.57839286", "0.5781209", "0.56844324", "0.5603882", "0.5565499", "0.5558212", "0.55425245", "0.5537604", "0.54787433", "0.54662603", "0.5465449", "0.54648584", "0.5443381", "0.5443132", "0.54269195", "0.54110295", "0.5394002", "0.53861...
0.71446997
1
Animates the rotating of the cube graphic clockwise.
void rotate() { startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE); rotateCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void rotateInv() {\n startAnimation(allSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n rotateCubeSwap();\n rotateCubeSwap();\n rotateCubeSwap();\n }", "public void animate() {\n // change our angle of view\n mRenderer.setAngle(mRenderer.getAngle() + 1.2f);\n\n ...
[ "0.7381398", "0.7346571", "0.63658684", "0.6351733", "0.61397785", "0.61299896", "0.6120116", "0.6056939", "0.60174507", "0.6004602", "0.59534204", "0.5924317", "0.5909346", "0.58700943", "0.5809403", "0.5771118", "0.57436883", "0.5732966", "0.57094395", "0.569167", "0.565383...
0.7932115
0
Animates the rotating of the cube graphic anticlockwise.
void rotateInv() { startAnimation(allSubCubes(), Axis.Y, Direction.ANTICLOCKWISE); rotateCubeSwap(); rotateCubeSwap(); rotateCubeSwap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "public void animate() {\n // change our angle of view\n mRenderer.setAngle(mRenderer.getAngle() + 1.2f);\n\n if (mCurrentAktieCubeLayer == null) {\n int layerI...
[ "0.7914517", "0.7656312", "0.6604878", "0.64785045", "0.64413476", "0.6338436", "0.6290128", "0.62266165", "0.61132216", "0.60026497", "0.59824055", "0.59438264", "0.5872617", "0.58657897", "0.58637834", "0.5858101", "0.583888", "0.5810687", "0.58071893", "0.58054626", "0.579...
0.731903
2
Sets a listener to be informed when an animation is finished.
public void setAnimationFinishedListener(AnimationFinishedListener animationListener) { this.animationListener = animationListener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AnimationFinishedListener {\n /**\n * Called by RubiksCubeModel when an animation is finished.\n */\n void animationFinished();\n }", "public interface AnimationEndListener{\n void animationEnded();\n }", "void onAnimationEnd();", "@Override\n ...
[ "0.75094247", "0.73918355", "0.71670973", "0.7105331", "0.7103842", "0.7038755", "0.68359035", "0.66822726", "0.66822726", "0.65958375", "0.6538642", "0.65160567", "0.6509867", "0.64775866", "0.6442777", "0.6338454", "0.62904006", "0.6247691", "0.6183549", "0.6131007", "0.608...
0.79785115
0
Interface to be implemented by objects that want to listen for when an animation is finished.
public interface AnimationFinishedListener { /** * Called by RubiksCubeModel when an animation is finished. */ void animationFinished(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AnimationEndListener{\n void animationEnded();\n }", "public interface OnAnimationEndListener {\n\tvoid onAnimationEnded();\n\n}", "void animationFinished();", "public abstract void animationReelFinished();", "void onAnimationEnd();", "public interface AnimationCallBack {\n ...
[ "0.83700055", "0.82278144", "0.78431624", "0.7769521", "0.77318215", "0.75877035", "0.7530925", "0.7530925", "0.75274086", "0.7492326", "0.7354821", "0.70506436", "0.70355386", "0.70064795", "0.6977962", "0.6962757", "0.69434196", "0.69343346", "0.6891811", "0.6886679", "0.68...
0.83744925
0
Called by RubiksCubeModel when an animation is finished.
void animationFinished();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void animationReelFinished();", "public interface AnimationFinishedListener {\n /**\n * Called by RubiksCubeModel when an animation is finished.\n */\n void animationFinished();\n }", "public void onAnimationFinished() {\n destroyAnimation(getPendingTrans...
[ "0.79472935", "0.78029567", "0.77573925", "0.76686996", "0.76250136", "0.7559666", "0.74044806", "0.74044806", "0.7304508", "0.7259451", "0.71990407", "0.7101201", "0.7093149", "0.70406014", "0.70406014", "0.6985604", "0.69634634", "0.68259037", "0.6767522", "0.67533815", "0....
0.81425804
0
get service provider code
@Id @Column(name = "SERV_PROV_CODE", length = 15) public String getServiceProviderCode() { return serviceProviderCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getProvider();", "String getProviderString();", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public String getCode(){\n\t\treturn codeService;\n\t}", "public String getProviderClassName();", "@Id\n\t@Column(name = \"SERV_PROV_...
[ "0.72148496", "0.70497304", "0.69701564", "0.69701564", "0.69701564", "0.6918538", "0.68863076", "0.6777805", "0.658991", "0.6562573", "0.65376776", "0.64927655", "0.6433027", "0.6395903", "0.63900226", "0.6377077", "0.6328507", "0.6299102", "0.6276385", "0.62454164", "0.6239...
0.60145617
34
set service provider code
public void setServiceProviderCode(String serviceProviderCode) { this.serviceProviderCode = serviceProviderCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setServiceProviderCode(String serviceProviderCode)\n\t{\n\t\tthis.serviceProviderCode = serviceProviderCode;\n\t}", "public void setProvider(String value) { _provider = value; }", "public void setCode(String cod){\n\t\tcodeService = cod;\n\t}", "public void setProvider(String provider) {\n\t\tthi...
[ "0.8184762", "0.6971349", "0.68137336", "0.6619047", "0.6619047", "0.63540477", "0.6330594", "0.6282032", "0.6278237", "0.62226754", "0.6214678", "0.62131095", "0.6201306", "0.61963195", "0.61941004", "0.61791027", "0.6092766", "0.6089774", "0.60772", "0.5999571", "0.5993385"...
0.8191194
0
get user sequence number
@Id @Column(name = "USER_SEQ_NBR", length = 20) @XmlElement(nillable=true, required=true) public Long getUserSeqNbr() { return userSeqNbr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUserSeq() {\n return sessionData.getUserSeq();\n }", "@Column(name = \"USER_SEQ_NBR\")\n\tpublic Long getUserSeqNbr()\n\t{\n\t\treturn userSeqNbr;\n\t}", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", ...
[ "0.7573122", "0.75366056", "0.745773", "0.745773", "0.745773", "0.745773", "0.745773", "0.745773", "0.745773", "0.70771784", "0.7053407", "0.7026687", "0.6988852", "0.69163686", "0.6915249", "0.68905336", "0.68905336", "0.68883955", "0.6858999", "0.67867506", "0.6780411", "...
0.6956975
13
set user sequence number
public void setUserSeqNbr(Long userSeqNbr) { this.userSeqNbr = userSeqNbr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserSeqNbr(Long userSeqNbr)\n\t{\n\t\tthis.userSeqNbr = userSeqNbr;\n\t}", "void setSequenceNumber(int sequenceNumber);", "public void setUserSeq(Long userSeq) {\n sessionData.setUserSeq(userSeq);\n }", "public void setSequenceNo(long n) {\n\tsequenceNo = n;\n }", "public void setSeqN...
[ "0.75470376", "0.7505947", "0.7384051", "0.69261366", "0.68183154", "0.68183154", "0.6814156", "0.67094433", "0.6681487", "0.6670007", "0.6637797", "0.6637581", "0.6595153", "0.65855634", "0.6578115", "0.6573292", "0.65632576", "0.65631056", "0.65610236", "0.65610236", "0.651...
0.7598409
0
get proxy user sequence number
@Id @Column(name = "PROXYUSER_SEQ_NBR", length = 20) @XmlElement(nillable=true, required=true) public Long getProxyUserSeqNbr() { return proxyUserSeqNbr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUserSeq() {\n return sessionData.getUserSeq();\n }", "@Column(name = \"USER_SEQ_NBR\")\n\tpublic Long getUserSeqNbr()\n\t{\n\t\treturn userSeqNbr;\n\t}", "public void setProxyUserSeqNbr(Long proxyUserSeqNbr) \n\t{\n\t\tthis.proxyUserSeqNbr = proxyUserSeqNbr;\n\t}", "private static synchron...
[ "0.68693584", "0.6450155", "0.63694644", "0.630811", "0.627091", "0.6254061", "0.6222125", "0.62133014", "0.62133014", "0.62133014", "0.62133014", "0.6208065", "0.62039924", "0.6143619", "0.6143619", "0.6143619", "0.6143619", "0.6143619", "0.6143619", "0.6143619", "0.61409616...
0.7307979
0
set proxy user sequence number
public void setProxyUserSeqNbr(Long proxyUserSeqNbr) { this.proxyUserSeqNbr = proxyUserSeqNbr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Id\n\t@Column(name = \"PROXYUSER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getProxyUserSeqNbr() \n\t{\n\t\treturn proxyUserSeqNbr;\n\t}", "public void setUserSeqNbr(Long userSeqNbr) \n\t{\n\t\tthis.userSeqNbr = userSeqNbr;\n\t}", "public void setUserSeq(Long userSeq) ...
[ "0.6708215", "0.64925", "0.6470548", "0.6461465", "0.6378718", "0.60511816", "0.60426885", "0.59107226", "0.5861978", "0.58427197", "0.583265", "0.5813538", "0.5803214", "0.5780893", "0.57780576", "0.57314116", "0.5718145", "0.5699984", "0.56898963", "0.56525755", "0.5628038"...
0.7340268
0
in = new StreamTokenizer(new FileReader("input.txt"));
public static void main(String[] args) throws IOException { Input in = new Input("input.txt", 2 * 1024); PrintWriter out = new PrintWriter("output.txt"); l = in.nextInt(); int m = in.nextInt(); int n = in.nextInt(); pattern = new int[m + 1][l + 1]; for (int i = 0; i < m; ++i) { pattern[i][l] = in.nextInt(); for (int j = 0; j < l; ++j) pattern[i][j] = in.nextInt(); } rand = new Random(); sort(0, m - 1); int ok = 0, bad = 0, pos; buf = new int[l]; for (int i = 0; i < l; ++i) pattern[m][i] = Integer.MAX_VALUE; for (int i = 0; i < n; ++i) { for (int j = 0; j < l; ++j) buf[j] = in.nextInt(); pos = offer(0, m); if (pos >= 0) { out.println(pattern[pos][l]); ++ok; } else { out.println("-"); ++bad; } } out.println("OK=" + ok + " BAD=" + bad); out.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RingFactoryTokenizer() {\n this(new BufferedReader(new InputStreamReader(System.in,Charset.forName(\"UTF8\"))));\n }", "WikipediaTokenizerImpl(java.io.Reader in) {\n this.zzReader = in;\n }", "SentenceTokenizerImpl(java.io.Reader in) {\n this.zzReader = in;\n }", "public TemplexTok...
[ "0.7151683", "0.7029433", "0.68698055", "0.6747536", "0.66922426", "0.66571003", "0.6639692", "0.6620379", "0.65610254", "0.65575236", "0.65575236", "0.65289205", "0.650857", "0.650257", "0.6483325", "0.6483325", "0.6483325", "0.6483325", "0.64664066", "0.64235795", "0.639384...
0.0
-1
Returns time started and latency
@Override public Pair call() { long curTime = _curTTime.getCurrentTestTime(); try { Stopwatch timer = Stopwatch.createStarted(); String doc = (String) BrowU.get(_url, true); // _doc = Jsoup.parse(doc); // Logger.debug(_doc.text()); // accessJS(); // accessStyles(); // accessAssets(); timer.stop(); Duration dur = timer.elapsed(); try { Thread.sleep(2);// 'think time' pause; } catch (Exception e) { } Pair p = Pair.of(curTime, dur.toMillis()); return p; } catch (Throwable e) { logger.warn(e.getMessage()); Pair p = Pair.of(curTime, Long.MAX_VALUE); return p; } // t }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getLatency() {\n return latency;\n }", "public Double latency() {\n return this.latency;\n }", "public long startTime();", "public long getStartTime () {\n if (isPerformance) {\n return System.currentTimeMillis();\n }\n else\n {\n return 0;\n }\n }", "lon...
[ "0.73865163", "0.7302185", "0.7283284", "0.72147703", "0.6986905", "0.6954667", "0.6950681", "0.69376725", "0.6840984", "0.683019", "0.68050146", "0.6798183", "0.6796572", "0.6796572", "0.6796572", "0.6783516", "0.6740482", "0.6727853", "0.6727853", "0.6718551", "0.66882795",...
0.0
-1
TODO Autogenerated method stub
@Override public void service(AgiRequest request, AgiChannel channel) throws AgiException { String numsel = getVariable("EXTEN"); if (numsel.endsWith("#")) numsel = numsel.substring(0, numsel.length()-1); String oilnum = getVariable("oilponum"); int iNumSel = Integer.parseInt(numsel); int ioilNum = Integer.parseInt(oilnum); if (iNumSel>ioilNum || iNumSel<1) { setExtension("i"); setPriority("1"); return; } String docid = getVariable("DOC" + iNumSel); String phone = getVariable("PHONE" + iNumSel); setVariable("DOCID", docid); setVariable("oilcomphone", phone); // String conPhone = getVariable("custphone" + iNumSel); // String cellphone = getVariable("cellphone" + iNumSel); // setVariable("spphone", conPhone); // setVariable("SPDIALNUM", conName); // setVariable("spphone", conPhone); // setVariable("cellphone", cellphone); }
{ "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
Convenience method to send OK for the last request
public synchronized void sendOk() { beginMessage(); send(ServerConst.ANS + ServerConst.ANS_YES); endMessage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void serverSideOk();", "public boolean performOk() {\r\n\t\treturn super.performOk();\r\n\t}", "protected void reply_ok() throws java.io.IOException {\n byte[] ok = PushCacheProtocol.instance().okPacket();\n _socket.getOutputStream().write(ok, 0, ok.length);\n }", "@Override\n\tpublic...
[ "0.6814902", "0.67794293", "0.66326106", "0.655659", "0.65319395", "0.64532167", "0.6433904", "0.64260745", "0.6359024", "0.6309423", "0.62240475", "0.61277884", "0.6073459", "0.5960511", "0.59558386", "0.59530836", "0.5891095", "0.5879753", "0.58716345", "0.5861072", "0.5855...
0.6631125
3
Convenience method to send NO for the last request
public synchronized void sendNo() { beginMessage(); send(ServerConst.ANS + ServerConst.ANS_NO); endMessage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void reply_no() throws java.io.IOException {\n byte[] no = PushCacheProtocol.instance().noPacket();\n _socket.getOutputStream().write(no, 0, no.length);\n }", "protected void nop() throws Exception {\n reply_ok();\n }", "public void __getReplyNoReport() {\n __getRepl...
[ "0.6703707", "0.66978043", "0.647606", "0.6398359", "0.6092125", "0.60856205", "0.604357", "0.6023887", "0.5926291", "0.59085095", "0.58594084", "0.58539516", "0.58146214", "0.5811521", "0.5774326", "0.56818223", "0.5674544", "0.56509626", "0.56397575", "0.5612262", "0.559631...
0.65771693
2
Convenience method to UNKNOWN for the last request. Sends the request back to the client and marks it as "unknown" to signalize malformed requests
public synchronized void sendUnknown(final String _req) { beginMessage(); send(ServerConst.ANS + ServerConst.ANS_UNKNOWN + _req); endMessage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void nop() throws Exception {\n reply_ok();\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }", "private ...
[ "0.590035", "0.5876993", "0.5563621", "0.55191606", "0.5517642", "0.54910487", "0.5475296", "0.54174113", "0.5406926", "0.539638", "0.53841376", "0.534396", "0.53233534", "0.52983433", "0.5291161", "0.52895904", "0.5287629", "0.52569985", "0.52569985", "0.52339363", "0.522464...
0.660506
0
Convenience method to send INVALID for the last request
public synchronized void sendInvalid() { beginMessage(); send(ServerConst.ANS + ServerConst.ANS_INVALID); endMessage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void badRequest(Exception exception, Request req, Response res) {\n res.status(HttpStatus.SC_BAD_REQUEST);\n res.body(\"\");\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n protected ResponseEntity<Object> handleMethodArgum...
[ "0.6192295", "0.6184103", "0.6059008", "0.58874726", "0.5834191", "0.58180416", "0.5813319", "0.58079547", "0.5742472", "0.5706488", "0.56973946", "0.56858987", "0.5655454", "0.5634808", "0.5581679", "0.5572113", "0.5562773", "0.5557207", "0.55514616", "0.55312663", "0.552077...
0.748941
0
Send a line of text directly to the Client (unbuffered)
public synchronized void send(final String _mes) { // new Thread(new Runnable() { // @Override // public void run() { if (!closed) { output.write(_mes + "\r\n"); output.flush(); } // } // }).run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(String text) {\r\n try {\r\n outputStream.write((text + CRLF).getBytes());\r\n outputStream.flush();\r\n } catch (IOException ex) {\r\n notifyObservers(ex);\r\n }\r\n }", "public void send(String text) {\n ...
[ "0.72741264", "0.72048485", "0.7171467", "0.6955003", "0.6818278", "0.661354", "0.65645003", "0.65416706", "0.62181693", "0.620482", "0.61866146", "0.6116107", "0.60715926", "0.60681325", "0.6065739", "0.6010973", "0.600447", "0.5992814", "0.59471685", "0.5944848", "0.5921125...
0.5388978
67
shows all the funtions of ceo and hr show that we can create only service class object and don't need to create separate objects for hr and ceo
interface Services { public int addEmployee(Connection conn, String empDesignation); public void promote(Connection conn); public void deleteEmployee(Connection conn, int empId); public void changeSupervisor(Connection conn); // public void showEmployeesUnderMe(Map<Integer, Employee> employees, int // empId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ventilationServices() {\n\t\tSystem.out.println(\"FH----overridden method from hospital management--parent class of fortis hospital\");\n\t}", "public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//cas...
[ "0.5736583", "0.55467534", "0.5520158", "0.5500857", "0.54881805", "0.54728866", "0.5466847", "0.54114383", "0.54058737", "0.5345207", "0.53234506", "0.53170884", "0.5311032", "0.5310852", "0.53039265", "0.52588093", "0.52359515", "0.52314484", "0.52254516", "0.51958805", "0....
0.0
-1
Attacks accepted p. An argument "attacker" (which as a whole is known to be accepted) attacks another argument "attackee", if: they support different solutions AND (attacker and attackee unify AND the unification is an acceptable argument) OR (attackee subsumes attacker)
public static boolean attacksAcceptedP(Argument attacker, Argument attackee, ArgumentAcceptability aa, Ontology o, FTKBase dm) throws FeatureTermException { if (!attacker.m_rule.solution.equivalents(attackee.m_rule.solution)) { if (attackee.m_rule.pattern.subsumes(attacker.m_rule.pattern)) { if (DEBUG>=1) System.out.println("attacksAcceptedP: true (attacker subsumes by attackee)"); return true; } FeatureTerm u = FTUnification.simpleUnification(attacker.m_rule.pattern, attackee.m_rule.pattern, dm); Argument a = new Argument(new Rule(u,attacker.m_rule.solution,0.0f,0)); if (u!=null) { if (aa.accepted(a)) { if (DEBUG>=1) System.out.println("attacksAcceptedP: true (unification is acceptable)"); return true; } else { if (DEBUG>=1) { System.out.println("attacksAcceptedP: false -> unification is not acceptable:"); System.out.println(a.toStringNOOS(dm)); int tmp = ArgumentAcceptability.DEBUG; ArgumentAcceptability.DEBUG = 2; aa.accepted(a); ArgumentAcceptability.DEBUG = tmp; } } } else { if (DEBUG>=1) System.out.println("attacksAcceptedP: false -> arguments do not unify "); } } else { if (DEBUG>=1) System.out.println("attacksAcceptedP: false -> same solutions " + attacker.m_rule.solution.toStringNOOS(dm) + " = " + attackee.m_rule.solution.toStringNOOS(dm)); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void challengeArgument(T argument, T attack);", "protected Conjunction isAccepted(Argument a, Set<Argument> attackers) {\n\t\tConjunction result = new Conjunction(\"isAccepted_\" + a.getName());\n\t\tConjunction nonAttack = this.nonAttack(a, attackers);\n\t\tif(nonAttack != null) {\n\t\t\tresult.addSubfor...
[ "0.6491593", "0.6488248", "0.606166", "0.6005778", "0.5919908", "0.5915671", "0.58502245", "0.57993704", "0.5792835", "0.57792825", "0.5777723", "0.57480264", "0.57349586", "0.5721131", "0.57159257", "0.56821966", "0.56811225", "0.5664412", "0.56477773", "0.56230134", "0.5588...
0.7998031
0
Pinta uma borda apenas por baixo do componente, na mesma Color do foreground do component.
@Override public void paintBorder(Component c, Graphics g, int x, int y, int width, int height){ g.setColor( c.getForeground() ); g.drawLine(0, height - 1, width, height - 1); //Border Bottom }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color getForeground();", "public abstract void setCurForeground(Color colr);", "public Color getForegroundColor()\n {\n return foregroundColor;\n }", "@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\t...
[ "0.67141247", "0.6658409", "0.63695735", "0.6295422", "0.61239207", "0.61081934", "0.60936135", "0.6085617", "0.6077569", "0.6040165", "0.60316855", "0.6016686", "0.5995002", "0.59858656", "0.59399366", "0.5937954", "0.5921711", "0.5916135", "0.59160215", "0.590763", "0.58939...
0.5745412
37
Create a Caixa de Entrada
public CaixaDeEntrada() { this.emails = new ArrayList<Mensagem>(); this.emptyMessage = new Mensagem("", ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Compleja createCompleja();", "Compuesta createCompuesta();", "public abstract Anuncio creaAnuncioTematico();", "private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial...
[ "0.6933691", "0.6806431", "0.6737236", "0.66705424", "0.6608621", "0.6547991", "0.64540285", "0.6335281", "0.625896", "0.62296", "0.6173105", "0.6164262", "0.61432976", "0.61213994", "0.61035794", "0.60388416", "0.60112894", "0.599911", "0.59829444", "0.59706694", "0.59527975...
0.0
-1
Add a message to emails
public void adicionaMensagem(Mensagem m) { this.emails.add(m); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addMailMessage(MailMessage m)\r\n\t{\r\n\t\t// TODO: Play a sound and make the Messages button flash\r\n\t\tmessagesAnimationLabel.setVisible(true);\r\n\t\trepaint();\r\n\t\t\r\n\t\ttheGridView.addMailMessage(m);\r\n\t}", "public void addMessage(String message);", "public Message addMessage(Message...
[ "0.743891", "0.7401237", "0.71122265", "0.70649266", "0.7040685", "0.70191324", "0.67970496", "0.6762179", "0.6736558", "0.668393", "0.6616429", "0.6596609", "0.65698946", "0.6546026", "0.65208787", "0.64739066", "0.6459051", "0.64547926", "0.64513326", "0.6428629", "0.639824...
0.7029463
5
Access a Mensagem in emails list
public Mensagem acessaMensagem(int i) { try { return this.emails.get(i); } catch (Exception e) { System.out.println("ERROR: Mensagem não encontrada!\n"); return this.emptyMessage; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mailList() {\n for (int index = 0; index < emails.size(); index++) {\n Mensagem mensagem = emails.get(index);\n System.out.println(\"Email \" + index + \": \");\n System.out.println(\"De: \" + mensagem.remetente);\n System.out.println(\"Para: \" + mens...
[ "0.7738162", "0.64662087", "0.6353925", "0.6325814", "0.61743325", "0.61250323", "0.60937446", "0.6075007", "0.6035179", "0.5997569", "0.5924875", "0.5919162", "0.5908765", "0.59047455", "0.59035784", "0.5894345", "0.58645517", "0.58114946", "0.5797706", "0.57920974", "0.5792...
0.70539165
1
Remove an Mensagem from emails list
public void removeMessage(int i) { try { this.emails.remove(i); System.out.println("Email removido com sucesso!\n"); } catch (Exception e) { System.out.println("ERROR: Mensagem não existe!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAttendee(String attendee){\r\n for(int i = 0; i< attendees.size(); i++){\r\n if (attendees.get(i).equals(attendee)){\r\n attendees.remove(i);\r\n emails.remove(i);\r\n return;\r\n }\r\n }\r\n }", "public void de...
[ "0.66061866", "0.6300961", "0.62755895", "0.62359625", "0.6135695", "0.60642457", "0.6061057", "0.60376394", "0.6020205", "0.5904151", "0.5785434", "0.5783372", "0.5783372", "0.57543844", "0.57045823", "0.5704133", "0.5690414", "0.5680429", "0.5657617", "0.5654712", "0.565040...
0.7585656
0
List Mensagens with respectives indexes
public void mailList() { for (int index = 0; index < emails.size(); index++) { Mensagem mensagem = emails.get(index); System.out.println("Email " + index + ": "); System.out.println("De: " + mensagem.remetente); System.out.println("Para: " + mensagem.destinatario + "\n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Index getIndices(int index);", "public void setSmenindex(Integer smenindex) {\n this.smenindex = smenindex;\n }", "public static List<Integer> getRandomMLessThanN(int m, int n){\n\t\tif(m > n || m < 1 )\n\t\t\tthrow new InvalidParameterException(\"Invalid input parameters\");\n\t\tMap<Integer, Intege...
[ "0.54425037", "0.5389475", "0.53866065", "0.53140974", "0.5310888", "0.5297317", "0.5295711", "0.5279546", "0.52705556", "0.5245724", "0.52422845", "0.5223298", "0.52122396", "0.51823974", "0.51053107", "0.5086813", "0.5081099", "0.50809795", "0.50660527", "0.5058858", "0.503...
0.0
-1
Creates new form appliancesinfo
public AppliancesInfo() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString date = AppDateField.getText();\n\t\tString Time = AppTimeField.getText();\t\n\t\tString Name = AppPatNameField.getText();\n\t\tString Surname = AppPatSurnameField.getText();\n\t\tint Id = Integer.parseInt(AppPatIdField.getText());\n\t\tString Do...
[ "0.56396496", "0.5603562", "0.5559257", "0.55443114", "0.5531035", "0.5464616", "0.5441802", "0.5420599", "0.54037327", "0.53924084", "0.53334355", "0.5322568", "0.5320041", "0.5303661", "0.53", "0.5296306", "0.52825", "0.5281066", "0.5280342", "0.5278049", "0.527625", "0.5...
0.6241753
0
static String[][] Data1 = new String[20][6]; This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); kGradientPanel1 = new keeptoo.KGradientPanel(); jPanel2 = new javax.swing.JPanel(); jPanel5 = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jRadioButton1 = new javax.swing.JRadioButton(); jRadioButton2 = new javax.swing.JRadioButton(); jRadioButton3 = new javax.swing.JRadioButton(); jLabel10 = new javax.swing.JLabel(); AddButton = new javax.swing.JButton(); PID = new javax.swing.JTextField(); PN = new javax.swing.JTextField(); MN = new javax.swing.JTextField(); price = new javax.swing.JTextField(); category = new javax.swing.JComboBox<>(); ClearAdd = new javax.swing.JButton(); jPanel6 = new javax.swing.JPanel(); SearchTF = new javax.swing.JTextField(); SearchAppliance = new javax.swing.JButton(); jComboBox1 = new javax.swing.JComboBox<>(); ClearSearch = new javax.swing.JButton(); AccessoriesAvailable = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); SortID = new javax.swing.JButton(); SortPrice = new javax.swing.JButton(); jMenuBar1 = new javax.swing.JMenuBar(); File = new javax.swing.JMenu(); Import = new javax.swing.JMenuItem(); Exit = new javax.swing.JMenuItem(); JMenuHelp = new javax.swing.JMenu(); Help = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setAlwaysOnTop(true); jPanel1.setBackground(new java.awt.Color(217, 219, 218)); jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); kGradientPanel1.setkEndColor(new java.awt.Color(93, 230, 222)); kGradientPanel1.setkStartColor(new java.awt.Color(181, 142, 204)); javax.swing.GroupLayout kGradientPanel1Layout = new javax.swing.GroupLayout(kGradientPanel1); kGradientPanel1.setLayout(kGradientPanel1Layout); kGradientPanel1Layout.setHorizontalGroup( kGradientPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 954, Short.MAX_VALUE) ); kGradientPanel1Layout.setVerticalGroup( kGradientPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 600, Short.MAX_VALUE) ); jPanel2.setBackground(new java.awt.Color(69, 69, 69)); jPanel2.setOpaque(false); jPanel5.setBackground(new java.awt.Color(255, 255, 255)); jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Add", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 0, 24))); // NOI18N jPanel5.setOpaque(false); jLabel4.setText("Product ID:"); jLabel5.setText("Product Name:"); jLabel6.setText("Model Number:"); jLabel7.setText("Category:"); jLabel8.setText("Price:"); buttonGroup1.add(jRadioButton1); jRadioButton1.setText("Low"); buttonGroup1.add(jRadioButton2); jRadioButton2.setText("Medium"); buttonGroup1.add(jRadioButton3); jRadioButton3.setText("High"); jLabel10.setText("Range:"); AddButton.setText("Add"); AddButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AddButtonActionPerformed(evt); } }); category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "--Category--", "Keyboard", "RAM", "Mouse", "Headphones", "Motherboard", "Power Supply", "Case", "Processor", "Graphics Card", " " })); ClearAdd.setText("Clear"); ClearAdd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ClearAddActionPerformed(evt); } }); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(AddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 209, Short.MAX_VALUE) .addComponent(ClearAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(MN, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(PID, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(PN, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel10) .addGap(6, 6, 6) .addComponent(jRadioButton1) .addGap(10, 10, 10) .addComponent(jRadioButton2) .addGap(10, 10, 10) .addComponent(jRadioButton3)) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel8) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(category, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(price, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))))) .addContainerGap(16, Short.MAX_VALUE)) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(16, 16, 16) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(4, 4, 4) .addComponent(jLabel10)) .addComponent(jRadioButton1) .addComponent(jRadioButton2) .addComponent(jRadioButton3))) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(20, 20, 20) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(PID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addGap(21, 21, 21) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(PN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5) .addComponent(jLabel7) .addComponent(category, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(MN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8) .addComponent(price, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(18, 18, 18) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(AddButton) .addComponent(ClearAdd)) .addContainerGap()) ); jPanel6.setBackground(new java.awt.Color(255, 255, 255)); jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Search", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 0, 24))); // NOI18N jPanel6.setOpaque(false); SearchAppliance.setText("Search Appliance"); SearchAppliance.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SearchApplianceActionPerformed(evt); } }); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "--Categories--", "Keyboard", "RAM", "Mouse", "Headphones", "Motherboard", "Power Supply", "Case", "Processor", "Graphics Card", " " })); ClearSearch.setText("Clear"); ClearSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ClearSearchActionPerformed(evt); } }); AccessoriesAvailable.setText("Appliances available in category"); AccessoriesAvailable.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AccessoriesAvailableActionPerformed(evt); } }); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(ClearSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(SearchTF, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(SearchAppliance, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(AccessoriesAvailable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap()) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(SearchAppliance) .addComponent(SearchTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(AccessoriesAvailable)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(ClearSearch) .addGap(19, 19, 19)) ); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap(39, Short.MAX_VALUE) .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(36, 36, 36) .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jScrollPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Appliances Information System", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 0, 30))); // NOI18N jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null} }, new String [] { "Product ID", "Product Name", "Model Number", "Category", "Range", "Price" } ) { boolean[] canEdit = new boolean [] { false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTable1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); jTable1.setGridColor(new java.awt.Color(255, 255, 255)); jTable1.setShowGrid(false); jTable1.getTableHeader().setReorderingAllowed(false); jScrollPane1.setViewportView(jTable1); if (jTable1.getColumnModel().getColumnCount() > 0) { jTable1.getColumnModel().getColumn(0).setResizable(false); jTable1.getColumnModel().getColumn(2).setResizable(false); jTable1.getColumnModel().getColumn(3).setResizable(false); jTable1.getColumnModel().getColumn(4).setResizable(false); jTable1.getColumnModel().getColumn(5).setResizable(false); } SortID.setText("Sort by ID"); SortID.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SortIDActionPerformed(evt); } }); SortPrice.setText("Sort by price"); SortPrice.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SortPriceActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(658, 658, 658) .addComponent(SortID, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30, 30, 30) .addComponent(SortPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(51, 51, 51) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 873, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(0, 50, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(kGradientPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 279, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(16, 16, 16) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(SortID) .addComponent(SortPrice)) .addGap(18, 18, 18) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(36, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(kGradientPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())) ); jMenuBar1.setToolTipText(""); File.setText("File"); Import.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_DOWN_MASK)); Import.setText("Import"); Import.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ImportActionPerformed(evt); } }); File.add(Import); Exit.setText("Exit"); Exit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ExitActionPerformed(evt); } }); File.add(Exit); jMenuBar1.add(File); JMenuHelp.setText("Help"); Help.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_DOWN_MASK)); Help.setText("Help"); Help.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { HelpActionPerformed(evt); } }); JMenuHelp.add(Help); jMenuBar1.add(JMenuHelp); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public data2() {\n initComponents();\n }", "static void initSample1(){\n // put values into the sField\n sField[0][0] = \"X\";\n sField[0][1] = \"X\";\n sField[0][3] = \"X\";\n sField[0][4] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\...
[ "0.60514575", "0.59579504", "0.5885219", "0.5791755", "0.5764068", "0.5723493", "0.57171756", "0.5706107", "0.56404996", "0.56271845", "0.5624162", "0.56190187", "0.5590591", "0.55870163", "0.556003", "0.55517346", "0.554675", "0.55276024", "0.5508548", "0.5504288", "0.550097...
0.0
-1
GENLAST:event_HelpActionPerformed method to import data into the table
public void imp() { // TODO add your handling code here: if(countClickedTimes==0){ //condition for letting user know if they had already imported the file String filePath=".\\CSV and User manual file\\data.csv";//location of the file int row=0; //for empty row index boolean empty=false; //indicated the row is not empty do{ String b = (String) jTable1.getValueAt(row, 0); if (b != null && b.length() != 0) { row++; } else { empty = true; } } while (!empty); try { BufferedReader bufferreader=new BufferedReader(new FileReader(filePath)); String line=""; while((line=bufferreader.readLine())!=null) { String[] data=line.split(","); for(int i =0;i<data.length;i++) { jTable1.setValueAt(data[i], row, i); } row++; } JOptionPane.showMessageDialog(this, "File is Imported Successfully."); //message if the umported the file countClickedTimes++; } catch (FileNotFoundException ex) { JOptionPane.showMessageDialog(this, "File not Found"); } catch (IOException ex) { Logger.getLogger(AppliancesInfo.class.getName()).log(Level.SEVERE, null, ex); } } else{ JOptionPane.showMessageDialog(this, "The File has been already imported."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void actionPerformedImport ()\n {\n System.out.println (\"Import selected\");\n if (chooser.showOpenDialog (PreferencesDialog.this) == JFileChooser.APPROVE_OPTION)\n {\n try\n {\n InputStream in = new FileInputStream (chooser.getSelectedFile ()...
[ "0.64789325", "0.647889", "0.6386857", "0.6347153", "0.6289133", "0.6268904", "0.62536645", "0.6246759", "0.62379736", "0.6130849", "0.6122537", "0.6117971", "0.6103524", "0.6080536", "0.6059252", "0.6045177", "0.60418415", "0.60415286", "0.60236263", "0.6006049", "0.598539",...
0.0
-1
method to get all the data of price column only
public static int[] getPrice() { String TableData[][]= getTableData(); int row=getRowCount(); String SearchPrice[]=new String[row]; int a[]=new int[row]; for (int i=0;i<TableData.length;i++) { SearchPrice[i]= TableData[i][5]; a[i]=Integer.parseInt(SearchPrice[i]); //converts the data into integer as it was in string } return a; //returns price array }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void all_Data_retrieve_Price_Desc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Price desc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\...
[ "0.6869331", "0.68137103", "0.6752934", "0.664427", "0.6616797", "0.65944093", "0.6539993", "0.65009904", "0.6441914", "0.63558996", "0.6295667", "0.62770563", "0.62613446", "0.62445074", "0.62362677", "0.62098604", "0.6204017", "0.62004864", "0.6197459", "0.6186215", "0.6155...
0.6215428
15
method to get all the data of ID column only
public static int[] getID() { String TableData[][]= getTableData(); int row=getRowCount(); int ID[]=new int[row]; for (int i=0;i<TableData.length;i++) { ID[i]= Integer.parseInt(TableData[i][0]);//converts the data into integer as it was in string } return ID; //returnd ID array }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDataId();", "java.lang.String getDataId();", "@Transient\n public Object[] getID() {\n return new Object[]{this.getTableName()};\n }", "Collection<?> idValues();", "java.lang.String getDataInfoId();", "public List getAllIds();", "public static Alumni_data getAlumniData(...
[ "0.6765504", "0.6765504", "0.65031517", "0.63557136", "0.6325587", "0.63251585", "0.63017577", "0.6285586", "0.6272477", "0.62378097", "0.623525", "0.6189655", "0.6172798", "0.61632013", "0.6139947", "0.6126948", "0.6123001", "0.6082017", "0.6063389", "0.60542077", "0.6046554...
0.6487528
3
methos to get number of non empty row
public static int getRowCount(){ int row=0; boolean empty=false; //row is not empty do{ String b = (String) jTable1.getValueAt(row, 0); if (b != null && b.length() != 0) { row++; //row count } else { empty = true; } }while (!empty); return row; //returns row value }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countEmptyCells() {\n int result = 0;\n for (int[] row : field)\n for (int cell : row)\n if (cell == EMPTY_MARK)\n result++;\n return result;\n }", "@Override\n\tpublic int getRowCount() {\n\t\tint i = 0;\n\t\tfor(i=0;;i++){\n\t\t\ti...
[ "0.7968805", "0.7930619", "0.74383926", "0.7430168", "0.7361014", "0.71458536", "0.71273553", "0.7051896", "0.70182395", "0.7014922", "0.6942543", "0.694011", "0.6916431", "0.6906582", "0.6861203", "0.6861203", "0.68597883", "0.68409055", "0.68409055", "0.68409055", "0.684090...
0.8150153
0
method to get all the data stored in table
public static String[][] getTableData(){ int row=getRowCount();//jgets total number of non empty rows String TableData[][]=new String[row][6]; for(int i=0; i<row;i++){ for(int j=0; j<6; j++){ TableData[i][j]=(String)jTable1.getValueAt(i, j); } } return TableData; //returns table data }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<TblRetur>getAllDataRetur();", "public Table<Integer, Integer, String> getData();", "public Cursor getAllData() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from \" + TABLE_NAME, null);\n return res;\n }", "void all_Data_retrie...
[ "0.75921965", "0.7424378", "0.7250147", "0.7194431", "0.7176847", "0.716002", "0.7093268", "0.7090449", "0.7089539", "0.707092", "0.7064496", "0.7049261", "0.7042748", "0.7038373", "0.7013071", "0.6995487", "0.69942844", "0.6942321", "0.69193184", "0.6910188", "0.6910114", ...
0.0
-1
method inorder to clear all the valued entered/selected by user in add panel
public void ClearAdd(){ PID.setText(""); MN.setText(""); PN.setText(""); price.setText(""); category.setSelectedIndex(0); buttonGroup1.clearSelection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void btn_clearAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_clearAllActionPerformed\n \n //Code to remove all selected items \n txt_inDate.setDate(null);\n txt_iniId.setText(\"\");\n cbo_iniName.setSelectedItem(0);\n txt_inQty.setT...
[ "0.779816", "0.7589151", "0.73894984", "0.7377586", "0.7358721", "0.7350998", "0.7324518", "0.7264208", "0.7250435", "0.7204067", "0.71645916", "0.71554357", "0.7107246", "0.7090394", "0.70772564", "0.7070495", "0.70676076", "0.70518863", "0.70361733", "0.7028551", "0.7011772...
0.7845731
0
method inorder to clear all the valued entered/selected by user in search panel
public void ClearSearch(){ SearchTF.setText(""); jComboBox1.setSelectedIndex(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearSearch(){\n search.clear();\n }", "private void resetSearchValues() {\n this.IDOrNameText.setText(\"\");\n this.accordIDButton.setSelected(true);\n this.accordNameButton.setSelected(false);\n type = this.accordIDButton.getText();\n }", "public void clea...
[ "0.77775615", "0.775782", "0.7661418", "0.7396082", "0.7332465", "0.7328956", "0.7261367", "0.72258157", "0.7151934", "0.7136363", "0.7128174", "0.70594156", "0.70354295", "0.6978868", "0.6961689", "0.69502825", "0.694765", "0.6900172", "0.68893707", "0.6886112", "0.6871211",...
0.76705545
2
Sound when walked on
public static void registerBlocks() { Registry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, "egg_block"), EGG_BLOCK); // Yolk STILL_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, "yolk_flow"), new YolkFluid.Still()); FLOWING_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, "yolk_still"), new YolkFluid.Flowing()); YOLK = Registry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, "yolk"), new FluidBlock(STILL_YOLK, FabricBlockSettings.copy(Blocks.WATER)){}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void playerWalk()\n {\n walkSound.playLooped();\n }", "public void act()\n {\n if (Greenfoot.mouseClicked(this))\n Greenfoot.playSound(\"fanfare.wav\");\n }", "@Override\r\n\tpublic void sound() {\r\n\t\tsuper.sound();\r\n\t\tSystem.out.println(\"SportsCar sound: Vutu...
[ "0.8091727", "0.71080583", "0.70291126", "0.70212257", "0.700899", "0.69975746", "0.6968337", "0.6939315", "0.6939101", "0.68663967", "0.6828294", "0.6828294", "0.67730945", "0.675774", "0.67545587", "0.6741628", "0.6728435", "0.66927916", "0.66852516", "0.66557795", "0.65930...
0.0
-1
all lat long data as a single string for file output
public String getData() { StringBuffer sb = new StringBuffer(npoints * 24); for (int i = 0; i < npoints; i++) { sb.append(y[i] + " " + x[i] + " "); } return sb.substring(0, sb.length() - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String ToFile() {\n\t\tif (ismonitored) {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",1;\");\r\n\t\t} else {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",0...
[ "0.62404037", "0.6191744", "0.599738", "0.59686875", "0.59602076", "0.59365743", "0.5903105", "0.5881374", "0.5836818", "0.57465273", "0.57332045", "0.5677964", "0.56575", "0.5656487", "0.5650484", "0.5627496", "0.56104213", "0.55783945", "0.55576223", "0.5556959", "0.5544725...
0.58586
8
TODO: Implement this method
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); getActionBar().hide(); setContentView(R.layout.launchview); TextView codeinfo = (TextView)findViewById(R.id.version); PackageManager pm = getPackageManager(); PackageInfo inf = null; try{ inf = pm.getPackageInfo(getPackageName(),0); }catch(Exception e){ e.printStackTrace(); } codeinfo.setText(Html.fromHtml("Version "+inf.versionName)); Thread myThread=new Thread(){//创建子线程 @Override public void run() { try{ sleep(3000);//使程序休眠五秒 Intent itent=new Intent(getApplicationContext(),MainActivity.class);//启动MainActivity startActivity(itent); finish();//关闭当前活动 }catch (Exception e){ e.printStackTrace(); } } }; myThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t...
[ "0.6146684", "0.5972078", "0.5951665", "0.5893627", "0.5893573", "0.58674604", "0.57714313", "0.57463145", "0.5679119", "0.5679119", "0.56602454", "0.5640005", "0.56188494", "0.5614183", "0.5613904", "0.5604922", "0.55885965", "0.5585748", "0.5544809", "0.5542787", "0.5460681...
0.0
-1
This is the basic of the functional programming, with one parameters.
public interface Function<T, U> { static <X,Y,Z> Function<Y,Z> partialA(X i, Function<X,Function<Y,Z>> l) { return l.apply(i); } static <X,Y,Z> Function<X,Z> partialB(Y i, Function<X,Function<Y,Z>> l) { return x->l.apply(x).apply(i); } static <X,Y,Z> Function<X,Function<Y,Z>> curry(Function<Tuple<X,Y>,Z> l) { return x->y->l.apply(new Tuple<X,Y>(x,y)); } static <X,Y,Z> Function<Tuple<X,Y>,Z> unCurry(Function<X,Function<Y,Z>> l) { return x->l.apply(x._1).apply(x._2); } static <X,Y,Z> Function<X,Function<Y,Z>> reverseParameter(Function<Y,Function<X,Z>> l) { return x->y->l.apply(y).apply(x); } static <U> Function<U,U> composeAll(List<Function<U,U>> list) { return list.foldLeft(Function.<U>identity(),x->y->Function.compose(x,y)); } U apply(T arg); /** * It directly return a function which is trivial. It just return whatever input. * @param <T> * @return */ static <T> Function<T, T> identity() { return t -> t; } /** * Should be able to higherCompose two function into one function * @return */ static <X, Y, Z> Function<Function<X, Y>, Function<Function<Y, Z>, Function<X, Z>>> higherAndThen() { return x -> y -> z -> y.apply(x.apply(z)); } /** * It is similar to {@link #higherCompose} * @return */ static <X, Y, Z> Function<Function<Y, Z>, Function<Function<X, Y>, Function<X, Z>>> higherCompose() { return x -> y -> z -> x.apply(y.apply(z)); } static <X, Y, Z> Function<X, Z> composeAndThen(Function<X,Y> f1, Function<Y,Z> f2){ return Function.<X,Y,Z>higherAndThen().apply(f1).apply(f2); } static <X, Y, Z> Function<X, Z> compose(Function<Y,Z> f1, Function<X,Y> f2){ return Function.<X,Y,Z>higherCompose().apply(f1).apply(f2); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tFunction<Integer, Integer> f = (x) -> x+20;\r\n\t\tSystem.out.println(f.apply(20));\r\n\t\tFunction<Integer, Double> f1 = (x) -> x+20.0;\r\n\t\tSystem.out.println(f1.apply(20));\r\n\t\tFunction<String, Integer> f2 = (str) -> str.length();\r\n\t\tSystem.out.println(f2.a...
[ "0.7306894", "0.6994561", "0.68420106", "0.67860687", "0.6783244", "0.66550386", "0.6637044", "0.66168064", "0.6604451", "0.6537184", "0.64961004", "0.64937466", "0.6471329", "0.64348394", "0.64250624", "0.64075506", "0.63878536", "0.6364482", "0.6340908", "0.63267434", "0.63...
0.0
-1
It directly return a function which is trivial. It just return whatever input.
static <T> Function<T, T> identity() { return t -> t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Function createFunction();", "public Function getFunction();", "@FunctionalInterface\npublic interface Func0<Out> extends Func<Void, Out>, Supplier<Out>, Try.CheckedSupplier<Out> {\n\n\tdefault int arity(){\n\t\treturn 0;\n\t}\n\n\tdefault Out get() {\n\t\treturn apply();\n\t}\n\n\t@Override\n\tdefault <Last> ...
[ "0.6758493", "0.64728373", "0.62529844", "0.6155851", "0.61147934", "0.60768217", "0.6070295", "0.60110426", "0.5979651", "0.5965965", "0.5942439", "0.5914468", "0.5907568", "0.5821398", "0.5748689", "0.5727278", "0.5700171", "0.56798035", "0.56731546", "0.56731546", "0.56351...
0.6289982
2
Should be able to higherCompose two function into one function
static <X, Y, Z> Function<Function<X, Y>, Function<Function<Y, Z>, Function<X, Z>>> higherAndThen() { return x -> y -> z -> y.apply(x.apply(z)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <A, B, C> Function<A, C> combine(Function<A, B> functionOne, Function<B, C> functionTwo) {\n// return functionTwo.compose(functionOne);\n return (A a) -> functionTwo.apply(functionOne.apply(a));\n }", "private static <R, I, T> SerializableFunction<R, T> compose(\n Serializable...
[ "0.71659815", "0.68059224", "0.62635034", "0.62550306", "0.6252277", "0.6239608", "0.6219349", "0.6183467", "0.6175085", "0.613592", "0.60826266", "0.6055255", "0.60176766", "0.59419453", "0.59104836", "0.5856881", "0.5845741", "0.5829608", "0.5807312", "0.5757185", "0.571767...
0.6393428
2
This method was generated by MyBatis Generator. This method returns the value of the database column plugin.id
public String getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getPluginId() {\n return PLUGIN_ID;\n }", "protected abstract String getPluginId();", "public String getPluginIdAttr() {\n return pluginIdAttr;\n }", "@Override\n public int getPluginId() {\n return 10202;\n }", "@Nullable\n public abstract S...
[ "0.6935312", "0.69301397", "0.6682319", "0.6600805", "0.6597995", "0.6486354", "0.60439104", "0.58943975", "0.5880787", "0.5844703", "0.58430773", "0.5819937", "0.57947147", "0.5793096", "0.57862663", "0.57735026", "0.5762184", "0.57586914", "0.57304144", "0.5723664", "0.5705...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column plugin.id
public void setId(String id) { this.id = id == null ? null : id.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getPluginId() {\n return PLUGIN_ID;\n }", "@Override\n public int getPluginId() {\n return 10202;\n }", "protected abstract String getPluginId();", "public String getPluginIdAttr() {\n return pluginIdAttr;\n }", "public ScGridColumn<AcUspsInte...
[ "0.62898165", "0.6238199", "0.60901254", "0.60841566", "0.5824129", "0.5757791", "0.57231396", "0.5686303", "0.56639355", "0.55804926", "0.55124825", "0.54492676", "0.5383746", "0.5366569", "0.5338117", "0.5324358", "0.53183854", "0.52717", "0.52463645", "0.5239723", "0.52058...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column plugin.additional_info
public String getAdditionalInfo() { return additionalInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAdditionalInfo() {\r\n return additionalInfo;\r\n }", "String getAdditionalInfo();", "public String getAdditionalInformation() {\n return additionalInformation;\n }", "public String getAdditionalData() {\n return additionalData;\n }", "@javax.annotation.Nullable\n ...
[ "0.73748195", "0.69552076", "0.6869876", "0.64539415", "0.62919265", "0.6132575", "0.60901225", "0.60756934", "0.6036143", "0.58729666", "0.5861635", "0.5854725", "0.58488226", "0.5842321", "0.58307654", "0.5819737", "0.5790092", "0.5790092", "0.5759139", "0.5745121", "0.5745...
0.734126
2
This method was generated by MyBatis Generator. This method sets the value of the database column plugin.additional_info
public void setAdditionalInfo(String additionalInfo) { this.additionalInfo = additionalInfo == null ? null : additionalInfo.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdditionalInfo(String additionalInfo) {\r\n this.additionalInfo = additionalInfo;\r\n }", "public void setAdditionalInfo(String aAdditionalInfo) {\n additionalInfo = aAdditionalInfo;\n }", "public InitialConfiguration additionalInfo(Map<String, String> additionalInfo) {\n ...
[ "0.70493674", "0.68936944", "0.6267144", "0.6170317", "0.6143449", "0.61257625", "0.6096939", "0.6096939", "0.57282263", "0.56150454", "0.56059164", "0.56006545", "0.54511887", "0.54393464", "0.5423258", "0.5351046", "0.5331825", "0.53106135", "0.5302857", "0.52889484", "0.52...
0.6395498
2
This method was generated by MyBatis Generator. This method returns the value of the database column plugin.api_token
public String getApiToken() { return apiToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTokenId() {\n return tokenId;\n }", "private String getApiToken(final Account account) {\r\n return account.getStringProperty(PROPERTY_ACCOUNT_api_token);\r\n }", "public String userToken() {\n return userToken;\n }", "public String getToken() {\n return this.token;\n }...
[ "0.5997526", "0.59490556", "0.59120744", "0.588652", "0.58825105", "0.5850443", "0.5824897", "0.58237183", "0.5821652", "0.5821652", "0.58106816", "0.580943", "0.5799712", "0.5799712", "0.5799712", "0.5799712", "0.5799712", "0.5781113", "0.5773903", "0.576352", "0.575771", ...
0.7052164
0
This method was generated by MyBatis Generator. This method sets the value of the database column plugin.api_token
public void setApiToken(String apiToken) { this.apiToken = apiToken == null ? null : apiToken.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApiToken() {\n return apiToken;\n }", "User setTokenForUser(String username, String token) throws DatabaseException;", "public void setOauth_token(java.lang.String param){\r\n \r\n if (param != null){\r\n ...
[ "0.5995339", "0.57904106", "0.57860637", "0.5669702", "0.5494996", "0.54261094", "0.54146063", "0.5364582", "0.53419477", "0.5337672", "0.52960753", "0.52664655", "0.5239537", "0.5226856", "0.52042824", "0.5185032", "0.51166564", "0.5094776", "0.50598407", "0.50598407", "0.50...
0.63053125
0