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
Mengembalikan Fragment yang terkait dengan posisi tertentu
@Override public Fragment getItem(int position) { switch (position){ case 0: return new TerbaruFragment(); case 1: return new UrutkanFragment(); case 2: return new SetujuFragment(); case 3: return new BelumSetujuFragment(); default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n if (v == thigsfrag1){\n\n thingstodonear = Sessiondata.getInstance().getThingsfrontdatanear();\n thingstodonear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setS...
[ "0.6756525", "0.6754298", "0.67406523", "0.6603853", "0.65594745", "0.65514445", "0.6483846", "0.6479076", "0.64477384", "0.64274615", "0.64216125", "0.64041924", "0.6403289", "0.6400544", "0.6392711", "0.6391631", "0.63909876", "0.63594884", "0.63569766", "0.6351159", "0.634...
0.0
-1
Mengembalikan jumlah tampilan yang tersedia.
@Override public int getCount() { return number_tabs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "p...
[ "0.722689", "0.684196", "0.67780447", "0.66999185", "0.6699598", "0.66463166", "0.66368544", "0.6612842", "0.66102105", "0.6587827", "0.6553492", "0.6549541", "0.6502443", "0.64839774", "0.64778525", "0.64508295", "0.6374045", "0.6325983", "0.63243496", "0.6317019", "0.631103...
0.0
-1
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
This is the property in the Bank master node that would store the branch master reference
public String getRefPropertyName() { // TODO Auto-generated method stub return "lfims:branches"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRefNodeKey() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn BankMaster.class.getName();\r\n\t\t\t\t\t}", "public String getBranchNo() {\r\n return branchNo;\r\n }", "public String getBranchno() {\n return branchno;\n }", "public String getBranchNo() {\n return branchNo;\n...
[ "0.7439933", "0.6838233", "0.6795778", "0.67740047", "0.6702559", "0.6690203", "0.6599856", "0.65750223", "0.6563307", "0.6486489", "0.64786065", "0.64766693", "0.6419441", "0.6378875", "0.6342846", "0.6312978", "0.61861426", "0.610587", "0.6087542", "0.6017626", "0.6006713",...
0.6578714
7
The node type of the reference in this case its branch master
public String getRefNodeType() { return "lfims:branchDetails"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NodeType getType();", "public BiType getType() {\n return BiType.NODE;\n }", "public static String getNodeType() {\n\t\treturn NODE_TYPE;\n\t}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "public short getNodeType();", "Class<?> getNodeType() {\n retu...
[ "0.7053872", "0.7025661", "0.6936277", "0.6905067", "0.67266834", "0.6724431", "0.6719969", "0.67152804", "0.66487896", "0.6646885", "0.6631256", "0.66216254", "0.66005903", "0.65468913", "0.65381336", "0.64926076", "0.6456555", "0.6416006", "0.6335907", "0.63318586", "0.6331...
0.77828467
0
This is used to look up the parent note from the clild
public String getRefNodeKey() { return BankMaster.class.getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ContentIdentifier getParent(ContentIdentifier cid);", "public String getParent() {\n return _theParent;\n }", "public String getParent() {\r\n return parent;\r\n }", "public String getParent() {\n return _parent;\n }", "public String getParent() {\n return parent;\n }", ...
[ "0.7234515", "0.69800603", "0.69731444", "0.692108", "0.6861921", "0.6855998", "0.6855998", "0.68390554", "0.6734129", "0.66791534", "0.6659459", "0.66505635", "0.65524244", "0.6523095", "0.6518819", "0.6518819", "0.6511079", "0.65106386", "0.6498695", "0.649761", "0.64895755...
0.0
-1
TODO Autogenerated method stub
public String getPayload() { return payLoad; }
{ "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
Created by srir on 9/04/2015.
public interface OrderDao { List<Order> findAllOrders(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\...
[ "0.60508746", "0.60264254", "0.5956518", "0.585559", "0.585559", "0.58307266", "0.5815967", "0.5814364", "0.58121914", "0.57981133", "0.5781757", "0.5775627", "0.57717764", "0.57716167", "0.575885", "0.5757531", "0.57227147", "0.57221884", "0.5719794", "0.57150257", "0.570867...
0.0
-1
TODO Autogenerated method stub
@Override public void onChanged() { super.onChanged(); initChildViews(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO This is sloppy...
@Override public ActionResponse<CheatDealResult> exec(GameContext ctx, ActionParam.WithActor<CheatDealParam> param) { if (ctx.game().rules().getClass().equals(TichuRules.class)) { throw new IllegalStateException("Can't cheat-deal with the regular rules class"); } if (ctx.game().isStarted()) { throw new IllegalStateException("Game is already started"); } if (ctx.game().isReadyToStart()) { throw new IllegalStateException("Game is ready to start, too late to cheat"); } final Player player = ctx.player(param.actor()); param.param().cards().forEach(c -> player.deal(c)); return new SimpleResponse<>(param.actor(), ActionType.CHEAT_DEAL, CheatDealResult.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "private void strin() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", ...
[ "0.5566492", "0.54256403", "0.52754027", "0.5270461", "0.5269765", "0.5212683", "0.5130019", "0.51017374", "0.5090999", "0.5027073", "0.50259113", "0.50235355", "0.4999774", "0.4974401", "0.49684623", "0.49649876", "0.49641055", "0.4955089", "0.4950038", "0.4948624", "0.49014...
0.0
-1
program entry point (this method is special) public controls visibility allow the function to be called from any package static associate this with a class rather than INSTANCE of that class for now always use publiv and static void return type, void means return nothing otherwise, it is a data type main method name, by convention use cameCase (not PascalCase) (String[] args) parentheses contain a comma separated list of parameters parameters are variables which holds the input to a function BEFORE the method is called The data passed INTO the parameters
public static void main(String[] args){ // int[] testArray = {82, 95, 71, 6, 34}; // // int min = Aggregate.min(testArray); // int max = Aggregate.max(testArray); // int sum = Aggregate.sum(testArray); // double avg = Aggregate.average(testArray); // double div = Aggregate.standardDeviation(testArray); // // System.out.println(min); // 6 // System.out.println(max); //95 // System.out.println(sum); //288 // System.out.println(avg); //57.6 // System.out.println(div); //36.719 final int ROCK = 1; final int SCISSORS = 2; final int PAPER = 3; int computerDecision = getComputerChoice(); int userDecision = getUserChoice(); System.out.print("user: " + printChoice(userDecision)); switch(userDecision) { case ROCK: if(computerDecision == ROCK){ System.out.println("That's a Tie!"); } else if(computerDecision == SCISSORS ){ System.out.println("Congrats! You won"); } else{ System.out.println("Sorry,You lost!"); } break; case SCISSORS: if(computerDecision == ROCK){ System.out.println("Sorry,You lost!"); } else if(computerDecision == SCISSORS ){ System.out.println("That's a Tie!"); } else{ System.out.println("Congrats! You won"); } break; case PAPER: if(computerDecision == ROCK){ System.out.println("Congrats! You won"); } else if(computerDecision == SCISSORS ){ System.out.println("Sorry,You lost!"); } else{ System.out.println("That's a Tie!"); } break; default: } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){ //Declaration of the main function. Public it's an access specifier that means that you can \r\n\t \t\t\t\t\t//call this method from outside the class (publically). Static it's an access modifier that \r\n\t \t\t\t\t\t//creates space in memory automatically when java p...
[ "0.76846755", "0.72126716", "0.71629417", "0.709617", "0.70826226", "0.7081535", "0.7066801", "0.70551383", "0.70172316", "0.70054626", "0.697306", "0.6955729", "0.69535905", "0.6933282", "0.6933282", "0.6933282", "0.6933282", "0.6932828", "0.6928018", "0.6920423", "0.6917418...
0.0
-1
/ Role Repository Repository for holding roles.
@Repository public interface RoleRepo extends JpaRepository<Role, Long>{ Optional<Role> findByName(ValidRoles name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RoleRepository {\n public List<UserRole> getAll();\n public UserRole getById(int id);\n public UserRole getByName(String name);\n public void create(UserRole userRole);\n}", "public interface SysRoleRepository {\n\n\n Long save(SysRole role);\n\n void delete(Long roleId);\n\n ...
[ "0.7749607", "0.7472166", "0.7452196", "0.73142517", "0.729247", "0.7119554", "0.7098657", "0.70701915", "0.702338", "0.7017586", "0.6953982", "0.6937142", "0.6920014", "0.6906364", "0.68733907", "0.68732196", "0.68691677", "0.68394834", "0.6809492", "0.6808361", "0.6732162",...
0.0
-1
Creates new form CVBasePanel
public MultiplierGenericModifierPanel(MultiplierGenericModifier genericModifier) { initComponents(); setupIcons(); setGenericModifier(genericModifier); valueText.setVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public VirtualPanel() {}", "public void createPartControl(Composite parent) {\n \n \t\tgetImages();\n \n \t\ttoolkit = new FormToolkit(parent.getDisplay());\n \t\tform = toolkit.createScrolledF...
[ "0.6629273", "0.6629273", "0.6577611", "0.6512747", "0.64848876", "0.6371652", "0.6364762", "0.63442135", "0.63231164", "0.63195693", "0.62973666", "0.62946486", "0.6267635", "0.6267635", "0.6246111", "0.6241585", "0.6236605", "0.6222708", "0.62223357", "0.6212954", "0.620301...
0.0
-1
Add a PropertyChangeListener to the listener list.
public void addPropertyChangeListener(PropertyChangeListener l) { getPropertyChangeSupport().addPropertyChangeListener(l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPropertyChangeListener(PropertyChangeListener l);", "public void addPropertyChangeListener(PropertyChangeListener listener);", "public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "public void addPropertyChangeListener(PropertyChangeListener listener...
[ "0.8391693", "0.8360006", "0.8343752", "0.8318155", "0.82616794", "0.8251751", "0.825082", "0.8190173", "0.8177724", "0.8079411", "0.80712795", "0.8042455", "0.8013826", "0.79943013", "0.79843783", "0.7966603", "0.7966603", "0.7966603", "0.7951404", "0.7946334", "0.7928102", ...
0.8214967
7
Removes a PropertyChangeListener from the listener list.
public void removePropertyChangeListener(PropertyChangeListener l) { getPropertyChangeSupport().removePropertyChangeListener(l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "public void removePropertyChangeListener(PropertyChangeListener l);", "public void removePropertyChangeListener(PropertyChangeListener listener);", "public void removePropertyChangeListener(@NotNull PropertyCh...
[ "0.8622321", "0.8619852", "0.8618918", "0.8594184", "0.85084647", "0.85079926", "0.8504282", "0.8462379", "0.8411163", "0.84056264", "0.83918124", "0.8388762", "0.8381843", "0.8379979", "0.8379979", "0.83588386", "0.8349761", "0.8317073", "0.83161604", "0.82847905", "0.827755...
0.8457826
8
Getter for property value.
public double getMultiplier() { return genericModifier.getMultiplier(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public Object getValue()\n {\n return getProperty(VALUE_KEY);\n }", "public String getValueProperty() {\r\n return getAttributeAsString(\"valueProperty\");\r\n }", "public String getPropValue() {\n return propValue;\n }", "private String getPropertyValue() {\n retur...
[ "0.8138846", "0.7813325", "0.7801191", "0.7570955", "0.75451374", "0.7539366", "0.75181097", "0.7515194", "0.7495814", "0.74894327", "0.74641037", "0.74438465", "0.744141", "0.74243885", "0.74176705", "0.74157614", "0.74102134", "0.74102134", "0.74102134", "0.74102134", "0.74...
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 FormEditor. //GENBEGIN:initComponents
private void initComponents() { activeCheck = new javax.swing.JCheckBox(); descriptionLabel = new javax.swing.JLabel(); valueLabel = new javax.swing.JLabel(); valueText = new javax.swing.JTextField(); buttonPanel = new javax.swing.JPanel(); upButton = new javax.swing.JButton(); downButton = new javax.swing.JButton(); activeCheck.setPreferredSize(new java.awt.Dimension(18, 18)); activeCheck.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { activeCheckStateChanged(evt); } }); descriptionLabel.setFont(new java.awt.Font("Arial", 0, (int) (22 * GlobalFontSettings.SizeMagnification))); descriptionLabel.setText("description"); valueLabel.setFont(new java.awt.Font("Arial", 0, (int) (22 * GlobalFontSettings.SizeMagnification))); valueLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); valueLabel.setText("value"); valueLabel.setMinimumSize(new java.awt.Dimension(38, 14)); valueLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { valueLabelMouseClicked(evt); } }); valueText.setHorizontalAlignment(javax.swing.JTextField.RIGHT); valueText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { valueTextActionPerformed(evt); } }); valueText.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { valueTextFocusLost(evt); } }); buttonPanel.setPreferredSize(new java.awt.Dimension(15, 18)); buttonPanel.setLayout(new javax.swing.BoxLayout(buttonPanel, javax.swing.BoxLayout.Y_AXIS)); upButton.setBorderPainted(false); upButton.setContentAreaFilled(false); upButton.setFocusPainted(false); upButton.setPreferredSize(new java.awt.Dimension(13, 9)); upButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { upButtonActionPerformed(evt); } }); buttonPanel.add(upButton); downButton.setBorderPainted(false); downButton.setContentAreaFilled(false); downButton.setFocusPainted(false); downButton.setPreferredSize(new java.awt.Dimension(13, 9)); downButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { downButtonActionPerformed(evt); } }); buttonPanel.add(downButton); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(activeCheck, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(6, 6, 6) .addComponent(descriptionLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE) .addGap(0, 0, 0) .addComponent(valueLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(valueText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(buttonPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(activeCheck, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(valueLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(descriptionLabel) .addComponent(valueText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(buttonPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n ...
[ "0.75254345", "0.7491351", "0.7478579", "0.7436969", "0.7436969", "0.7436969", "0.73987657", "0.7343613", "0.7328327", "0.72963923", "0.7281088", "0.72586226", "0.72264683", "0.72040117", "0.718394", "0.71691567", "0.71622086", "0.7144946", "0.714334", "0.711347", "0.71082664...
0.0
-1
Creates a presenter object instance.
void setupPresenter() { mPresenter = new leaguePresenter(this); ScheduleList.getInstance().setPresenter(mPresenter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void createPresenter_setsThePresenterToView() {\n historyPresenter = new HistoryPresenter(historyView, remoteDataSource,\n sharedPreferenceService);\n\n // Then the presenter is set to the view.\n verify(historyView).setPresenter(historyPresenter);\n }", "...
[ "0.72782373", "0.72168773", "0.71983516", "0.714339", "0.7077375", "0.70623577", "0.7057463", "0.66301435", "0.65064406", "0.64517313", "0.63949436", "0.61794204", "0.61720556", "0.6145493", "0.6124031", "0.61181206", "0.60790426", "0.60677785", "0.60476357", "0.6027545", "0....
0.6697246
7
/ access modifiers changed from: packageprivate
public void setNext(Waiter next2) { AbstractFuture.ATOMIC_HELPER.putNext(this, next2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public void unpark() { Thread w = this.thread; if (w != null) { this.thread = null; LockSupport.unpark(w); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ JADX DEBUG: Multivariable search result rejected for r4v0, resolved type: java.lang.Object / JADX WARN: Multivariable type inference failed
private V getDoneValue(Object obj) throws ExecutionException { if (obj instanceof Cancellation) { throw cancellationExceptionWithCause("Task was cancelled.", ((Cancellation) obj).cause); } else if (obj instanceof Failure) { throw new ExecutionException(((Failure) obj).exception); } else if (obj == NULL) { return null; } else { return obj; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final com.p111d.p112a.p121c.p134k.C7119d m3865a(com.p111d.p112a.p121c.aa r14, com.p111d.p112a.p121c.p128f.C1451n r15, com.p111d.p112a.p121c.C5354j r16, com.p111d.p112a.p121c.C1545o<?> r17, com.p111d.p112a.p121c.p131i.C1478f r18, com.p111d.p112a.p121c.p131i.C1478f r19, com.p111d.p112a.p121c.p128f.C5328e r...
[ "0.5287955", "0.5217967", "0.50123847", "0.50016576", "0.499058", "0.4977887", "0.49633673", "0.49392885", "0.4924127", "0.48682654", "0.48547652", "0.48332983", "0.48328167", "0.4829396", "0.48257005", "0.48249", "0.48190966", "0.48139948", "0.48017678", "0.4780437", "0.4775...
0.0
-1
/ access modifiers changed from: protected
public void interruptTask() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public final boolean wasInterrupted() { Object localValue = this.value; return (localValue instanceof Cancellation) && ((Cancellation) localValue).wasInterrupted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean set(V value2) { Object valueToSet; if (value2 == null) { valueToSet = NULL; } else { valueToSet = value2; } if (!ATOMIC_HELPER.casValue(this, null, valueToSet)) { return false; } complete(this); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public boolean setException(Throwable throwable) { if (!ATOMIC_HELPER.casValue(this, null, new Failure((Throwable) Preconditions.checkNotNull(throwable)))) { return false; } complete(this); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: private
public static Object getFutureValue(ListenableFuture<?> future) { Object failure; if (future instanceof TrustedFuture) { Object v = ((AbstractFuture) future).value; if (!(v instanceof Cancellation)) { return v; } Cancellation c = (Cancellation) v; if (!c.wasInterrupted) { return v; } if (c.cause != null) { return new Cancellation(false, c.cause); } return Cancellation.CAUSELESS_CANCELLED; } try { Object v2 = Futures.getDone(future); if (v2 == null) { failure = NULL; } else { failure = v2; } } catch (ExecutionException exception) { failure = new Failure(exception.getCause()); } catch (CancellationException cancellation) { failure = new Cancellation(false, cancellation); } catch (Throwable t) { failure = new Failure(t); } return failure; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ JADX DEBUG: Failed to insert an additional move for type inference into block B:13:0x0001 / JADX WARN: Multivariable type inference failed / JADX WARN: Type inference failed for: r6v0, types: [com.google.common.util.concurrent.AbstractFuture] / JADX WARN: Type inference failed for: r6v1, types: [com.google.common.util.concurrent.AbstractFuture] / JADX WARN: Type inference failed for: r6v3, types: [com.google.common.util.concurrent.AbstractFuture, com.google.common.util.concurrent.AbstractFuture] / JADX WARN: Type inference failed for: r5v4, types: [com.google.common.util.concurrent.AbstractFuture$AtomicHelper] / access modifiers changed from: private / JADX WARNING: Unknown variable types count: 1 / Code decompiled incorrectly, please refer to instructions dump.
public static void complete(com.google.common.util.concurrent.AbstractFuture<?> r6) { /* r1 = 0 L_0x0001: r6.releaseWaiters() r6.afterDone() com.google.common.util.concurrent.AbstractFuture$Listener r1 = r6.clearListeners(r1) r6 = 0 L_0x000c: if (r1 == 0) goto L_0x0035 r0 = r1 com.google.common.util.concurrent.AbstractFuture$Listener r1 = r1.next java.lang.Runnable r3 = r0.task boolean r5 = r3 instanceof com.google.common.util.concurrent.AbstractFuture.SetFuture if (r5 == 0) goto L_0x002f r2 = r3 com.google.common.util.concurrent.AbstractFuture$SetFuture r2 = (com.google.common.util.concurrent.AbstractFuture.SetFuture) r2 com.google.common.util.concurrent.AbstractFuture<V> r6 = r2.owner java.lang.Object r5 = r6.value if (r5 != r2) goto L_0x000c com.google.common.util.concurrent.ListenableFuture<? extends V> r5 = r2.future java.lang.Object r4 = getFutureValue(r5) com.google.common.util.concurrent.AbstractFuture$AtomicHelper r5 = com.google.common.util.concurrent.AbstractFuture.ATOMIC_HELPER boolean r5 = r5.casValue(r6, r2, r4) if (r5 == 0) goto L_0x000c goto L_0x0001 L_0x002f: java.util.concurrent.Executor r5 = r0.executor executeListener(r3, r5) goto L_0x000c L_0x0035: return */ throw new UnsupportedOperationException("Method not decompiled: com.google.common.util.concurrent.AbstractFuture.complete(com.google.common.util.concurrent.AbstractFuture):void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final R mo2484a(long r4, java.util.concurrent.TimeUnit r6) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.Proce...
[ "0.65092474", "0.631342", "0.59778184", "0.59745103", "0.5933447", "0.5915363", "0.58622587", "0.58505005", "0.5789469", "0.57667863", "0.56811464", "0.5665399", "0.56516284", "0.56265175", "0.55586874", "0.55412656", "0.55174834", "0.5497395", "0.54968476", "0.5495919", "0.5...
0.0
-1
/ access modifiers changed from: protected
public void afterDone() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public String pendingToString() { Object localValue = this.value; if (localValue instanceof SetFuture) { return "setFuture=[" + userObjectToString(((SetFuture) localValue).future) + "]"; } if (this instanceof ScheduledFuture) { return "remaining delay=[" + ((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS) + " ms]"; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: packageprivate
public abstract boolean casListeners(AbstractFuture<?> abstractFuture, Listener listener, Listener listener2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public abstract boolean casValue(AbstractFuture<?> abstractFuture, Object obj, Object obj2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public abstract boolean casWaiters(AbstractFuture<?> abstractFuture, Waiter waiter, Waiter waiter2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public abstract void putNext(Waiter waiter, Waiter waiter2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public abstract void putThread(Waiter waiter, Thread thread);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public void putThread(Waiter waiter, Thread newValue) { UNSAFE.putObject(waiter, WAITER_THREAD_OFFSET, newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public void putNext(Waiter waiter, Waiter newValue) { UNSAFE.putObject(waiter, WAITER_NEXT_OFFSET, newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casWaiters(AbstractFuture<?> future, Waiter expect, Waiter update) { return UNSAFE.compareAndSwapObject(future, WAITERS_OFFSET, expect, update); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casListeners(AbstractFuture<?> future, Listener expect, Listener update) { return UNSAFE.compareAndSwapObject(future, LISTENERS_OFFSET, expect, update); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casValue(AbstractFuture<?> future, Object expect, Object update) { return UNSAFE.compareAndSwapObject(future, VALUE_OFFSET, expect, update); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public void putThread(Waiter waiter, Thread newValue) { this.waiterThreadUpdater.lazySet(waiter, newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public void putNext(Waiter waiter, Waiter newValue) { this.waiterNextUpdater.lazySet(waiter, newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casWaiters(AbstractFuture<?> future, Waiter expect, Waiter update) { return this.waitersUpdater.compareAndSet(future, expect, update); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casListeners(AbstractFuture<?> future, Listener expect, Listener update) { return this.listenersUpdater.compareAndSet(future, expect, update); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casValue(AbstractFuture<?> future, Object expect, Object update) { return this.valueUpdater.compareAndSet(future, expect, update); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public void putThread(Waiter waiter, Thread newValue) { waiter.thread = newValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public void putNext(Waiter waiter, Waiter newValue) { waiter.next = newValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casWaiters(AbstractFuture<?> future, Waiter expect, Waiter update) { boolean z; synchronized (future) { if (((AbstractFuture) future).waiters == expect) { ((AbstractFuture) future).waiters = update; z = true; } else { z = false; } } return z; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casListeners(AbstractFuture<?> future, Listener expect, Listener update) { boolean z; synchronized (future) { if (((AbstractFuture) future).listeners == expect) { ((AbstractFuture) future).listeners = update; z = true; } else { z = false; } } return z; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper public boolean casValue(AbstractFuture<?> future, Object expect, Object update) { boolean z; synchronized (future) { if (((AbstractFuture) future).value == expect) { ((AbstractFuture) future).value = update; z = true; } else { z = false; } } return z; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
ExecutorService executorService = Executors.newSingleThreadExecutor();
private void threads() { { Observable myObservable = Observable.create ( new Observable.OnSubscribe<GetArtistQuery>() { public void call(Subscriber<? super GetArtistQuery> sub) { //System.out.println(Thread.currentThread().getName()); sub.onNext(getArtistQuery); sub.onCompleted(); } } ); Subscriber mySubscriber = new Subscriber<GetArtistQuery>() { public void onNext(GetArtistQuery s) { try { s.execute(); } catch (SQLException ex) { System.out.println(ex); } } public void onCompleted() { } public void onError(Throwable e) {System.out.println(e); } }; //myObservable.subscribe(mySubscriber); try { myObservable. subscribeOn(Schedulers.io()). //observeOn(Schedulers.from(executorService)). observeOn(Schedulers.trampoline()). subscribe(mySubscriber); Thread.sleep(2); //executorService.shutdown(); } catch(InterruptedException ex) {Thread.currentThread().interrupt();} } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ScheduledExecutorService getExecutorService();", "void setExecutorService(ExecutorService executorService);", "private void ejecutorDeServicio(){\r\n dbExeccutor = Executors.newFixedThreadPool(\r\n 1, \r\n new databaseThreadFactory()\r\n ); \r\n }", "public static Execu...
[ "0.7207872", "0.7134157", "0.71225506", "0.7085882", "0.7012891", "0.7012891", "0.7012891", "0.7012891", "0.6986354", "0.67341775", "0.66556567", "0.65951985", "0.65403515", "0.6535481", "0.6498896", "0.6487968", "0.648518", "0.6481356", "0.6478389", "0.6469588", "0.64450014"...
0.57123965
86
Created by Allen on 2015/7/22.
public interface AddStudentBookOrderPackageService extends EntityService<StudentBookOrderPackage> { public StudentBookOrderPackage addStudentBookOrderPackage(String spotCode, String orderCodes, String logisticCode, int isNoce, String loginName)throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n...
[ "0.62587833", "0.6144967", "0.6116518", "0.6058918", "0.6058918", "0.60293347", "0.6011814", "0.59684914", "0.59627146", "0.5903523", "0.58621126", "0.5860418", "0.58551747", "0.5853466", "0.5832159", "0.58244264", "0.58236283", "0.5811829", "0.5799364", "0.57960176", "0.5792...
0.0
-1
EJERCICO 3 TALLER 6
public static void main(String[] args) { Profesor a = new Profesor("Juan Hernández","Garcia","22-387-11"); System.out.println(a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabi...
[ "0.61895555", "0.6142339", "0.6132489", "0.6097694", "0.60790503", "0.60686564", "0.6054714", "0.60268897", "0.5996727", "0.5966267", "0.5958823", "0.5940318", "0.59389204", "0.5924716", "0.5921543", "0.59137136", "0.58880275", "0.58871144", "0.5881942", "0.58589196", "0.5835...
0.0
-1
Constructs a new rectangular button
public Button(int x, int y, int width, int height, String text) { super(x,y,width,height); this.text = text; this.isHovered = false; this.isPressed = false; this.buttonListener = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Button createButton();", "public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.get...
[ "0.7251219", "0.6942687", "0.68710047", "0.68679416", "0.68492126", "0.68353844", "0.6751906", "0.67265886", "0.67222786", "0.6652695", "0.6579795", "0.6571111", "0.6552247", "0.6542578", "0.6439334", "0.6389119", "0.6375275", "0.63715756", "0.636785", "0.63589424", "0.635283...
0.60236675
55
Sets the listener that will run when the button is clicked
public void setListener(ButtonListener buttonListener) { this.buttonListener = buttonListener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void enablButtonListener();", "void configureButtonListener();", "public void click() {\n\t\tif(this.buttonListener != null) {\n\t\t\tthis.buttonListener.onClicked();\n\t\t}\n\t}", "private void setListener() {\n Log.d(TAG, \"TAG - MainActivity - setListener()\");\n\n if (buttonShow != null) {\...
[ "0.7774974", "0.7762145", "0.7274834", "0.7198433", "0.71812874", "0.70692325", "0.7037811", "0.7032134", "0.6990737", "0.6968603", "0.69582266", "0.69480544", "0.69296527", "0.6922729", "0.68776387", "0.6874075", "0.6865108", "0.6840064", "0.6838318", "0.6789958", "0.6782007...
0.6891464
14
Draws the button when the button is assigned to a panel or frame
@Override protected void draw() { if(p != null) { p.pushStyle(); p.noStroke(); p.textAlign(PApplet.CENTER,PApplet.CENTER); p.textSize(12); if(this.isPressed) { p.fill(122, 138, 153); p.rect(x,y,width,height); p.fill(181, 206, 228); p.rect(x+2,y+2,width-4,height-4); p.fill(Color.BLACK.getRGB()); p.text(text, x, y,width,height); }else { if(this.isHovered) { this.p.fill(122, 138, 153); this.p.rect(x, y, width, height); setGradient(x+2,y+2,width-5,height-5,new Color(255,255,255),new Color(190, 211, 231)); this.p.fill(Color.BLACK.getRGB()); this.p.text(text, x, y,width,height); }else { this.p.fill(122, 138, 153); this.p.rect(x, y, width, height); setGradient(x+1,y+1,width-3,height-3,new Color(255,255,255),new Color(190, 211, 231)); this.p.fill(Color.BLACK.getRGB()); this.p.text(text, x, y,width,height); } } p.popStyle(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JButton drawButton ()\n {\n\n if (isAlive())\n {\n button.setBackground(ALIVE_COLOUR);\n }\n else \n {\n button.setBackground(DEAD_COLOUR);\n }\n\n button.addActionListener(this);\n return button;\n }", "public void drawBu...
[ "0.7141021", "0.7043531", "0.68995607", "0.6882212", "0.68809426", "0.685298", "0.6801755", "0.678528", "0.67673975", "0.67641103", "0.6725727", "0.66897464", "0.6680167", "0.6679277", "0.6662291", "0.6648675", "0.65987", "0.65759104", "0.6556612", "0.6550044", "0.6519967", ...
0.0
-1
Gets called when the user moves the mouse
public void mouseMoved() { if(detectCollision(this.p.mouseX,this.p.mouseY)) { this.isHovered = true; }else { this.isHovered = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "void mouseMoved(double x, double y, MouseEvent e );", "public void mouseMoved(MouseEvent e){}", "public void mouseMov...
[ "0.80144507", "0.80144507", "0.796976", "0.79571915", "0.7946273", "0.79273784", "0.79115635", "0.78963536", "0.7883138", "0.78332764", "0.78021497", "0.7794281", "0.77909595", "0.7767591", "0.77178043", "0.77178043", "0.7701428", "0.7691568", "0.76872903", "0.76872903", "0.7...
0.7637169
32
Gets called when the user releases the mouse 1 button
public void mouseReleased() { this.isPressed = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }", "public void mouseReleased( MouseEvent event ){}", "@Override\n public void mouseUp(MouseEvent me) {\n if (me.button > 3) {\n return;\n ...
[ "0.79503894", "0.7852438", "0.7831702", "0.7763798", "0.769011", "0.7638923", "0.76348805", "0.76346004", "0.76346004", "0.76346004", "0.76251745", "0.76223695", "0.7609437", "0.75386363", "0.75167173", "0.7489745", "0.74714255", "0.7465557", "0.74607444", "0.7449728", "0.744...
0.78149736
3
Gets called when the user presses down the mouse 1 button
public void mousePressed() { if(detectCollision(this.p.mouseX,this.p.mouseY)) { this.isPressed = true; click(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent a...
[ "0.7709615", "0.7709615", "0.7709615", "0.7709615", "0.7709615", "0.7709615", "0.7709615", "0.7692842", "0.7692842", "0.76378334", "0.7631931", "0.75782984", "0.7565243", "0.75378287", "0.74627864", "0.74381196", "0.74217045", "0.7420627", "0.74185234", "0.74185234", "0.74185...
0.7243206
46
Gets whether the x and y positions collide with the button
public boolean detectCollision(int x, int y) { if(this.x <= x && this.y <= y && this.x + width >= x && this.y + height >= y) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean collidepoint(float mX, float mY){\n return super.shape.contains(mX, mY);\n //return isPressed;\n }", "public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }", "public boolean collidesWith(double x, double y) {\n\t...
[ "0.7840163", "0.70458037", "0.70084774", "0.6977543", "0.6712204", "0.67066634", "0.6638663", "0.6619062", "0.66044843", "0.6575755", "0.65662825", "0.65481824", "0.65478253", "0.6544119", "0.6536487", "0.64835125", "0.6479145", "0.64711654", "0.6434461", "0.6411918", "0.6358...
0.67217654
4
Runs when the button is clicked
public void click() { if(this.buttonListener != null) { this.buttonListener.onClicked(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonClicked();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "public void settingBtnClick() {\n\t}", "@Override\n public void onClick() {\n System.out.println(\"Button has been J...
[ "0.7999077", "0.77304536", "0.74787056", "0.7288694", "0.7275953", "0.72539353", "0.7169864", "0.7151365", "0.70554346", "0.70214", "0.7010524", "0.7010524", "0.7010524", "0.7010524", "0.7009693", "0.69575095", "0.69464874", "0.6945254", "0.69416004", "0.69403833", "0.6940061...
0.7001941
15
Sets the hover state
public void hover(boolean hover) { this.isHovered = hover; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHovered(boolean hovered);", "public void HoverOver(boolean a)\n {\n hoverOver = a;\n }", "public void hover() {\n\t}", "public void hover();", "public void setShowHover(boolean h)\n {\n showHover = h;\n }", "public void setHoverColor(IsColor hoverColor) {\n\t\tsetHoverCol...
[ "0.8075902", "0.70564616", "0.70475805", "0.6798096", "0.6686818", "0.6558624", "0.65500027", "0.64840305", "0.6435374", "0.63995713", "0.6398133", "0.63961", "0.63850594", "0.63718706", "0.6369333", "0.6283345", "0.6275816", "0.62398136", "0.62253654", "0.6211899", "0.617733...
0.79868776
1
Returns the text displayed on the button
public String getText() { return this.text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String GetButtonText() {\n\t\treturn getWrappedElement().getText();\n\t}", "@objid (\"477ed32e-345e-478d-bf2d-285fddcaf06e\")\r\n public Text getTextButton() {\r\n return this.text;\r\n }", "public String getText_click_Digital_coupons_button(){\r\n\t\treturn click_Digital_coupons_button.get...
[ "0.8322937", "0.7593278", "0.75167996", "0.73742604", "0.7271199", "0.7246017", "0.7213069", "0.7118792", "0.69395876", "0.6937062", "0.6924702", "0.69077325", "0.6825776", "0.6820925", "0.6820925", "0.6820925", "0.6820925", "0.6808593", "0.6764805", "0.67513376", "0.6727275"...
0.0
-1
Sets the gradient of the button Button colors and pattern are currently static
protected void setGradient(int x, int y, float w, float h, Color c1, Color c2) { p.pushStyle(); p.noFill(); for (int i = y; i <= y+h/4; i++) { float inter = PApplet.map(i, y, (y+h/4), 1, 0); p.stroke(p.lerpColor(p.color(c1.getRGB()), p.color(c2.getRGB()), inter)); p.line(x, i, x+w, i); } for (int i = (int) (y+h/4)+1; i <= y+h; i++) { float inter = PApplet.map(i, y+h/4, y+h, 0, 1); p.stroke(p.lerpColor(p.color(c1.getRGB()), p.color(c2.getRGB()), inter)); p.line(x, i, x+w, i); } p.popStyle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setBtnStyle(Button btn) {\n btn.setStyle(\"-fx-background-color: #3c7fb1, linear-gradient(#fafdfe, #e8f5fc), linear-gradient(#eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%)\");\n\n }", "public void setFillGradient(Gradient gradient);", "private void getDynamicData() {\n ...
[ "0.6351186", "0.6258679", "0.61969316", "0.5974999", "0.58798075", "0.5854885", "0.57719874", "0.5762475", "0.5757804", "0.57225424", "0.5719226", "0.5624599", "0.5551127", "0.5499359", "0.54787344", "0.53658557", "0.5346709", "0.5281549", "0.52722174", "0.5213859", "0.519461...
0.5403041
15
Method to run when the button is clicked
public void onClicked();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonClicked();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "public void settingBtnClick() {\n\t}", "@Override\n public void onClick() {\n System.out.println(\"Button has been J...
[ "0.8002933", "0.7615786", "0.72529626", "0.72393316", "0.7116292", "0.70738393", "0.7047689", "0.6974673", "0.69537586", "0.6932644", "0.6929196", "0.6884", "0.6865173", "0.68362796", "0.68288887", "0.6817961", "0.68049383", "0.6798435", "0.6794964", "0.6794964", "0.6794964",...
0.6801689
17
/ Find the sum of all multiples of 3 and 5 under SUPREMUM. ARGS
public static void main(String[] args) { int count = 0; int sum = 0; final int supremum = 1000; while (count < supremum) { if ((count % 3) == 0 || (count % 5) == 0) { sum += count; } count += 1; } System.out.println(sum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\n\t{\n\t\tSystem.out.println(\"Please enter a number to find the sum of the multiples of 3 and 5:\");\n\t\tScanner kb = new Scanner(System.in);\n\t\tint number = kb.nextInt();\n\t\tint sum = 0;\n\t\t\n\t\tfor (int i=0; i < number; i++)\n {\n if (i % 3 == 0)\n ...
[ "0.74015814", "0.72088784", "0.7146382", "0.70588005", "0.6584226", "0.65735877", "0.65013283", "0.6448642", "0.6309807", "0.62957174", "0.6267312", "0.6249148", "0.62002885", "0.6195828", "0.6148547", "0.61081827", "0.6089974", "0.6076855", "0.6067116", "0.6044852", "0.59895...
0.6907314
4
Finds domain object in the repository according to given Specification.
T findOne(Specification<T> specification);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "E findOne(Specification<E> spec);", "List<E> findAll(Specification<E> spec);", "Repository findByName(String name);", "@Override\n public DriverDO find(Long driverId) throws EntityNotFoundException {\n return findDriverChecked(driverId);\n }", "E find(Id id) throws RepositoryException;", "@R...
[ "0.7344631", "0.6174345", "0.6098541", "0.60919917", "0.60803086", "0.6054098", "0.60253567", "0.59416014", "0.59217286", "0.58865845", "0.5879411", "0.5868446", "0.58462954", "0.5841284", "0.5772605", "0.57349855", "0.57255995", "0.56332684", "0.5623768", "0.5615477", "0.561...
0.73946726
0
Returns objects count in database for specified type.
Long count();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getCount(MigrationType type);", "@Override\r\n\tpublic int getTotalCount(Class<T> type) {\n\t\treturn (int) super.getSessionFactory().getCurrentSession().createQuery(\"select count(1) as num from \"+\r\n\t\t\t\ttype.getName()+\"\").uniqueResult();\r\n\t}", "public int countByType(long typeId);", ...
[ "0.7394291", "0.73686534", "0.7347055", "0.708634", "0.686761", "0.686661", "0.6858321", "0.66944504", "0.66695154", "0.66688603", "0.65502894", "0.6521167", "0.6488569", "0.64667004", "0.64107925", "0.6394528", "0.6383685", "0.63767207", "0.63753486", "0.6344965", "0.6343714...
0.5978053
50
Saves the entity into the repository.
T save(T entity);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity save(Entity entity);", "void save(Object entity);", "void save(E entity);", "E save(E entity);", "@Override\n\tpublic T save(T entity) {\n\t\treturn getDao().save(entity);\n\t}", "@Override\n public Building save(Building entity) {\n return dao.save(entity);\n }", "public void save(...
[ "0.7812235", "0.7810009", "0.7749835", "0.7709529", "0.74091756", "0.7385858", "0.73641694", "0.7339407", "0.7325315", "0.7241312", "0.7236182", "0.7201815", "0.7153771", "0.70990956", "0.708619", "0.7006996", "0.69847", "0.6967154", "0.6961315", "0.68862945", "0.6829056", ...
0.7327696
9
Deletes the entity from the repository
boolean delete(Long id, Class<T> type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n ...
[ "0.79833674", "0.7785374", "0.77585936", "0.7594739", "0.75383604", "0.74423915", "0.7424509", "0.73185205", "0.73185205", "0.73184377", "0.7308005", "0.7299585", "0.7294473", "0.72799903", "0.72353214", "0.72197247", "0.7208202", "0.72002006", "0.7172571", "0.71713537", "0.7...
0.0
-1
Updates the entity state in the repository.
T update(T entity);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "public void update(E entity);", "@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }", "E updat...
[ "0.728956", "0.69673085", "0.6869849", "0.68624836", "0.68624836", "0.6851829", "0.6696787", "0.6586081", "0.6586081", "0.65557796", "0.6553247", "0.6471327", "0.6449292", "0.6380841", "0.63629895", "0.6318717", "0.6296381", "0.6287136", "0.6286813", "0.6281712", "0.62529033"...
0.63658494
15
Add source to visited and print the source. Keep on visiting each vertex reachable from the source if the vertex has not been visited yet.
private void dfs(String source) { visited.add(source); System.out.println(source); for (Object vertex : graph.get(source)) { if (!visited.contains(vertex)) dfs((String) vertex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printPath( Vertex dest )\n {\n if( dest.prev != null )\n {\n printPath( dest.prev );\n // System.out.print( \" to \" );\n }\n System.out.print( dest.name +\" \" );\n }", "private void printPath(int currentVertex, int[] parents) {\n // Bas...
[ "0.65465474", "0.6463948", "0.62962765", "0.60209185", "0.59859663", "0.59615666", "0.5947033", "0.5945677", "0.5882445", "0.576997", "0.5765762", "0.57638705", "0.57304066", "0.57172", "0.57133764", "0.57072544", "0.56776166", "0.5663299", "0.564636", "0.5642252", "0.5642014...
0.7055158
0
if the current is destination then true else if the graph has not connected vertex and visited node is just current node then return false
private boolean isReachable(String current, String destination) { if (current.equals(destination)) { return true; } else if (visited.contains(current) || graph.get(current) == null) { return false; } // similar to dfs visited.add(current); for (Object vertex : graph.get(current)) { if (isReachable((String) vertex, destination)) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean isConnected(V start, V destination) {\r\n return !shortestPath(start, destination).isEmpty();\r\n }", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);...
[ "0.7534206", "0.73743606", "0.73643214", "0.7348699", "0.7194841", "0.7194841", "0.7053406", "0.69426477", "0.6919744", "0.6878531", "0.6826388", "0.68216866", "0.67812383", "0.6745637", "0.6718927", "0.6718522", "0.6662547", "0.6649897", "0.6635107", "0.66094464", "0.6609446...
0.7705656
0
Created by Lenovo on 2017/07/05.
public interface MediaPlayer { public void play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "pub...
[ "0.57771593", "0.57335985", "0.57063967", "0.55192506", "0.5451658", "0.5451658", "0.5451658", "0.5451658", "0.5451658", "0.5451658", "0.5451658", "0.5441282", "0.54339534", "0.54339534", "0.54201186", "0.54144293", "0.541239", "0.5392412", "0.53731734", "0.53717947", "0.5368...
0.0
-1
Sets the object that receives sensorrelated event notifications.
public static void setEventClient(NetMapListener eventClient_) { eventClient = eventClient_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSendEvent(EventOccurrence sendEvent);", "@Override\n public void setObject(Object arg0)\n {\n \n }", "@Override\r\n public void setObject(String object) {\n }", "@Override\n public void notify(Object event){\n }", "public void setObject(T object)\n\t{\n\t\tthis.ob...
[ "0.5460952", "0.54138285", "0.54069144", "0.5364693", "0.5259604", "0.5175449", "0.5126901", "0.5126103", "0.5070594", "0.5048708", "0.5043725", "0.5032097", "0.50215113", "0.50041944", "0.5000888", "0.50002104", "0.49991304", "0.498232", "0.49807766", "0.49678963", "0.496002...
0.0
-1
Public method pickupTime() simulates a car pickup by a client
public void pickupTime(Car car, Customer customer, String date) { System.out.println("Automobilul " + car.getMake() + " " + car.getModel()+ " va fi ridicat de clientul " + customer.getFirstName() + " " + customer.getLastName() + " la data si ora " + date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getArrivalTime();", "java.lang.String getArrivalTime();", "public int getArrivalTime()\n {\n return arrivalTime;\n }", "public int getArrivalTime(){return arrivalTime;}", "double getClientTime();", "public double getTruckArrivalTime() {\r\n\t\treturn truckArrivalTime.sample();\r...
[ "0.63276607", "0.63276607", "0.6122243", "0.61047316", "0.60194206", "0.5914952", "0.587954", "0.5874489", "0.58714366", "0.58149475", "0.57618856", "0.5740953", "0.5736695", "0.56608343", "0.5628846", "0.5617396", "0.5578149", "0.55721635", "0.5566869", "0.55625993", "0.5536...
0.66567117
0
Public method returnTime() simulates a return of a car previously picked up
public void returnTime(Car car, Customer customer, String date) { System.out.println("Automobilul " + car.getMake() + " " + car.getModel()+ " va fi inapoiat de clientul " + customer.getFirstName() + " " + customer.getLastName() + " la data si ora " + date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCBRTime();", "int getRaceTime() {\r\n\t\tint pace = getPaceSeconds();\r\n\t\tRace selectedRace = (Race)raceBox.getSelectedItem();\r\n\t\tdouble raceLength = selectedRace.getLength();\r\n\t\t\r\n\t\tint totalTime = (int)(raceLength * pace);\r\n\t\treturn totalTime;\r\n\t}", "public abstract dou...
[ "0.6511534", "0.6479448", "0.64271617", "0.6369725", "0.6335575", "0.6248867", "0.6209291", "0.6202163", "0.6202163", "0.6158791", "0.6154024", "0.61430156", "0.61312383", "0.610867", "0.6105706", "0.6099086", "0.6088216", "0.6078419", "0.60773367", "0.60719883", "0.6070741",...
0.651506
0
Create contents of the dialog.
@Override protected Control createDialogArea(Composite parent) { Composite container = (Composite) super.createDialogArea(parent); container.setLayout(new GridLayout(1, false)); ScrolledComposite scrolledComposite = new ScrolledComposite(container, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); scrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); scrolledComposite.setExpandHorizontal(true); scrolledComposite.setExpandVertical(true); final Composite composite = new Composite(scrolledComposite, SWT.NONE); composite.setLayout(new GridLayout(1, false)); Group grpSlectionDuMois = new Group(composite, SWT.NONE); grpSlectionDuMois.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1)); grpSlectionDuMois.setText("S\u00E9lection du mois :"); grpSlectionDuMois.setLayout(new FillLayout(SWT.HORIZONTAL)); _comboViewer = new ComboViewer(grpSlectionDuMois, SWT.NONE); _comboViewer.setContentProvider(new MoisStatCP(_controler)); _comboViewer.setLabelProvider(new MoisLP()); _comboViewer.setInput(new Object()); _comboViewer.addSelectionChangedListener(new ISelectionChangedListener() { @Override public void selectionChanged(SelectionChangedEvent event) { if (_comboViewer.getSelection() instanceof IStructuredSelection) { if (((IStructuredSelection) _comboViewer.getSelection()).getFirstElement() instanceof Calendar) { _controler.setSelectedMois((Calendar) ((IStructuredSelection) _comboViewer.getSelection()).getFirstElement()); _tableViewer.refresh(); cpcc.reDoChart(); } } } }); _comboViewer.setSorter(new ViewerSorter(){ @Override public int compare(Viewer viewer, Object e1, Object e2) { return ((Calendar)e1).compareTo((Calendar) e2); } }); Group grpDpenses = new Group(composite, SWT.NONE); grpDpenses.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1)); grpDpenses.setText("D\u00E9penses :"); grpDpenses.setLayout(new FillLayout(SWT.HORIZONTAL)); _tableViewer = new TableViewer(grpDpenses, SWT.BORDER | SWT.FULL_SELECTION); _table = _tableViewer.getTable(); _table.setLinesVisible(true); _table.setHeaderVisible(true); _tableViewer.setContentProvider(new CategorieMoisStatCP(_controler)); _tableViewer.setInput(new Object()); TableViewerColumn tableViewerColumn = new TableViewerColumn(_tableViewer, SWT.NONE); TableColumn tblclmnCatgorie = tableViewerColumn.getColumn(); tblclmnCatgorie.setWidth(200); tblclmnCatgorie.setText("Cat\u00E9gorie"); tableViewerColumn.setLabelProvider(new CategorieCellLP()); TableViewerColumn tableViewerColumn_1 = new TableViewerColumn(_tableViewer, SWT.NONE); TableColumn tblclmnNewColumn = tableViewerColumn_1.getColumn(); tblclmnNewColumn.setWidth(100); tblclmnNewColumn.setText("Moyenne"); tableViewerColumn_1.setLabelProvider(new CategorieMeanCellLP(_controler)); TableViewerColumn tableViewerColumn_2 = new TableViewerColumn(_tableViewer, SWT.NONE); TableColumn tblclmnNewColumn_1 = tableViewerColumn_2.getColumn(); tblclmnNewColumn_1.setWidth(100); tblclmnNewColumn_1.setText("Total"); tableViewerColumn_2.setLabelProvider(new CategorieTotalCellLP(_controler)); grpGraphique = new Group(composite, SWT.NONE); grpGraphique.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); grpGraphique.setLayout(new FillLayout()); grpGraphique.setText("Graphique :"); cpcc =new CategoriePieChartComposite(grpGraphique,_controler); grpGraphique.setLayout(new FillLayout(SWT.HORIZONTAL)); scrolledComposite.setContent(composite); scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT)); _tableViewer.refresh(); _comboViewer.refresh(); return container; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAcc...
[ "0.7465564", "0.71213424", "0.70750844", "0.7056892", "0.7035284", "0.6982003", "0.6966167", "0.6853646", "0.68448454", "0.6811343", "0.68096405", "0.6801873", "0.67985934", "0.6798088", "0.679386", "0.6789257", "0.67799765", "0.6769032", "0.6748607", "0.67194223", "0.6717503...
0.0
-1
Create contents of the button bar.
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, "Fermer", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(...
[ "0.6913502", "0.6871041", "0.68701905", "0.686933", "0.68208027", "0.68044573", "0.6800045", "0.67828447", "0.6762876", "0.6758984", "0.67203665", "0.6683782", "0.6627532", "0.6588972", "0.65856755", "0.657202", "0.657155", "0.65673095", "0.6549483", "0.6549218", "0.65480584"...
0.6439501
37
TODO Autogenerated method stub
@Override public void run() { for(int i=0;i<15;i++){ System.out.println("inside the run method of thread"+ Thread.currentThread().getName() +",i is"+i); try{ Thread.sleep(100); } catch(InterruptedException e){ } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { for(int i=0;i<15;i++){ System.out.println("inside the run method of thread"+ Thread.currentThread().getName() +",i is"+i); try{ Thread.sleep(100); } catch(InterruptedException e){ } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { for(int i=0;i<15;i++){ System.out.println("inside the run method of thread"+ Thread.currentThread().getName() +",i is"+i); try{ Thread.sleep(100); } catch(InterruptedException e){ } } }
{ "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
&47; The identity pubkey of the Lightning node string pubkey = 1[json_name = "pubkey"];
java.lang.String getPubkey();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OctetString getPublicKey();", "String getPublicKey();", "java.lang.String getPublicKey();", "public String getPublicKeyIdentifier();", "public String getPublicKey();", "com.google.protobuf.ByteString getPublicKeyBytes();", "public void mo9437a(CPubKey cPubKey) throws AddressFormatException {\n }", ...
[ "0.60350585", "0.59874886", "0.5971865", "0.5912559", "0.58498365", "0.5695146", "0.56464505", "0.5635707", "0.5575335", "0.5509112", "0.547138", "0.54713327", "0.5426429", "0.5408765", "0.54016674", "0.5381442", "0.53271306", "0.53254163", "0.5316156", "0.5314834", "0.531483...
0.574628
5
&47; The identity pubkey of the Lightning node string pubkey = 1[json_name = "pubkey"];
com.google.protobuf.ByteString getPubkeyBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OctetString getPublicKey();", "String getPublicKey();", "java.lang.String getPublicKey();", "public String getPublicKeyIdentifier();", "public String getPublicKey();", "java.lang.String getPubkey();", "com.google.protobuf.ByteString getPublicKeyBytes();", "public void mo9437a(CPubKey cPubKey) throws ...
[ "0.6036908", "0.5989082", "0.5974017", "0.5913717", "0.5851482", "0.57477707", "0.56971693", "0.56482506", "0.5637271", "0.55768704", "0.5510367", "0.54713964", "0.547127", "0.54279125", "0.5407487", "0.5403095", "0.5383236", "0.5328757", "0.5323028", "0.5317348", "0.5312612"...
0.5213793
27
&47; The network location of the lightning node, e.g. `69.69.69.69:1337` or `localhost:10011` string host = 2[json_name = "host"];
java.lang.String getHost();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBoxNetHost();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getRnidsHostAddress() {\n\t\tString address = getProperties().getProperty(\"rnids.host.address\").trim();\n\t\treturn address;\n\t}", "String getHost();", "Strin...
[ "0.5821512", "0.55562025", "0.5402224", "0.5398546", "0.53945595", "0.53806764", "0.53806764", "0.53584534", "0.5345283", "0.53416276", "0.53111243", "0.5310451", "0.52655214", "0.52620983", "0.5257524", "0.5236338", "0.52308816", "0.5229211", "0.5224999", "0.51972663", "0.51...
0.5468375
2
&47; The network location of the lightning node, e.g. `69.69.69.69:1337` or `localhost:10011` string host = 2[json_name = "host"];
com.google.protobuf.ByteString getHostBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBoxNetHost();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "java.lang.String getHost();", "java.lang.String getHost();", "public String getRnidsHostAddress() {\n\t\tString address = getProperties().getProperty(\"rnids.host.address\").t...
[ "0.58199704", "0.5554581", "0.5466438", "0.5466438", "0.54013807", "0.539659", "0.5393039", "0.5378577", "0.5378577", "0.53566474", "0.53447396", "0.5339877", "0.5309994", "0.5308889", "0.52646995", "0.5260447", "0.52554125", "0.52345806", "0.52298", "0.5227893", "0.5223725",...
0.0
-1
Gets the command keyword from the user input.
public static String getCommand(String input) { String[] strArr = input.split(" ", 2); return strArr[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String inputCommand() {\n String command;\n Scanner in = new Scanner(System.in);\n\n command = in.nextLine();\n\n return command;\n }", "public String readCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }", "public Strin...
[ "0.72521526", "0.72371244", "0.71717215", "0.71278006", "0.71180737", "0.7095782", "0.7089306", "0.70750874", "0.703619", "0.69869816", "0.6787997", "0.6654638", "0.6650019", "0.66009426", "0.6588748", "0.65709776", "0.65648746", "0.65482444", "0.65068036", "0.6457701", "0.64...
0.6784022
11
Takes in user input as a string and returns the task number for commands like delete and done.
public static int taskNumber(String input) throws MissingTaskNumberException { String[] strArr = input.split(" ", 2); if (strArr.length < 2) { Ui.showWarningMissingNumber(); //show in log Response.showWarningMissingNumber(); //show in app throw new MissingTaskNumberException(); } else { String number = strArr[1]; return Integer.parseInt(number); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task done(String numString) throws DukeException {\n try {\n int num = Integer.parseInt(numString);\n return tasks.set(num - 1, tasks.get(num - 1).completeTask());\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(\"The task does not exist!\")...
[ "0.66750264", "0.6598798", "0.65856034", "0.6578942", "0.6510051", "0.6473894", "0.64332813", "0.6382286", "0.63703233", "0.6364494", "0.6333972", "0.62853116", "0.6248048", "0.622978", "0.62183785", "0.6216336", "0.61106515", "0.60847896", "0.603662", "0.59472376", "0.592949...
0.7179
0
Takes in user input and returns the keyword after 'find' command.
public static String getKeyword(String input) throws MissingKeywordException{ String[] strArr = input.split(" ", 2); if (strArr.length < 2) { Ui.showWarningMissingKeyword(); Response.showWarningMissingKeyword(); throw new MissingKeywordException(); } else { return strArr[1]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FindCommand(String keyword) {\n this.keyword = keyword;\n }", "public FindCommand(String keyword) {\n super();\n this.keyword = keyword;\n }", "public FindCommand(String keyWord) {\n this.keyWord = keyWord;\n }", "public FindCommand(String keyword) throws EmptyDesc...
[ "0.687288", "0.6660749", "0.64231426", "0.6416796", "0.62514085", "0.6169138", "0.6134658", "0.6090162", "0.59718716", "0.5950015", "0.5874461", "0.5871547", "0.5849742", "0.5819765", "0.5783851", "0.5763418", "0.57611406", "0.57446736", "0.57342744", "0.56728226", "0.5648897...
0.0
-1
Gets the description of the task after the command word from user's input.
public static String getDescription(String input) throws MissingDescriptionException { String[] strArr = input.split(" ", 2); if (strArr.length < 2) { Ui.showWarningMissingDescription(strArr[0]); Response.showWarningMissingDescription(strArr[0]); throw new MissingDescriptionException(); } else { return strArr[1]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void helpCommand() {\n output.println(\"HELP COMMAND\");\n output.println(\"read tasks: 'r all/today/before/after', write new task: 'w dd/mm/yyyy taskName' (wrong format of date -> default today date)\");\n }", "public String getDescription()\r\n {\r\n return \"Approver of the ...
[ "0.6938951", "0.6817084", "0.67315453", "0.6721779", "0.6701127", "0.66608495", "0.6546052", "0.6546052", "0.6486849", "0.64269894", "0.64163506", "0.6342032", "0.6294918", "0.6279132", "0.62661177", "0.62606865", "0.62308395", "0.62143123", "0.61901957", "0.6189058", "0.6141...
0.0
-1
Identifies the type of task and creates an instance of the subclasses of Task such as Todo, Deadline and Event.
static Task identifyType(String input) throws DukeException { String command = Parser.getCommand(input); String description = Parser.getDescription(input); switch (command) { case "todo": return new Todo(description); case "deadline": String deadlineDescription = Deadline.getDeadlineDescription(description); Deadline deadline = new Deadline(deadlineDescription, Deadline.getDate(input), Deadline.getTime(input)); //todo return deadline; case "event": String eventDescription = Event.getEventDescription(description); Event event = new Event(eventDescription, Event.getEventDetails(input)); return event; default: return new Task("NA"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Task makeTask(String taskType, Optional<String> taskDescription, \r\n Optional<LocalDateTime> taskDeadline, \r\n Optional<LocalDateTime> taskStartDateTime,\r\n Optional<LocalDateTime> taskEndDateTime) {\r\n \r\n Task task;\r\n \r\n if (taskDescri...
[ "0.72911394", "0.6841138", "0.67174506", "0.67174506", "0.67174506", "0.6600691", "0.6593252", "0.64707565", "0.6449838", "0.6442164", "0.6430191", "0.6349031", "0.62816185", "0.62589365", "0.615763", "0.6133858", "0.60700977", "0.6068889", "0.60676855", "0.6045489", "0.60129...
0.6508106
7
This method is for CLI application for duke. Parses the string input of the user to get the command keyword in order to carry out the action such as add, delete, complete and exit.
public static void parseCommand(TaskList taskList, File file, PrintWriter writer) throws DukeException { Scanner input = new Scanner(System.in); while (true) { String action = input.nextLine(); String command = Parser.getCommand(action); switch (command) { case "done": // mark task as done int taskNum = Parser.taskNumber(action); String oldDescription = taskList.getIndividualTask(taskNum - 1).toString(); taskList.completeTask(taskNum); Storage.saveAsCompleted(file, taskList.getIndividualTask(taskNum - 1), oldDescription); case "todo": // add todo case "deadline": // add deadline case "event": // add event taskList.addTask(identifyType(action)); Storage.addData(writer, identifyType(action)); case "list": // list all items taskList.listItems(); case "bye": // exit Ui.showGoodbyeMessage(); break; case "delete": // delete task int num = Parser.taskNumber(action); Storage.markAsDeleted(file, taskList.getIndividualTask(num - 1)); taskList.deleteTask(num); case "find": // find tasks String keyword = getKeyword(action); taskList.findTasks(keyword); default: // if there is an invalid input Ui.showInvalidInputMessage(); throw new IllegalArgumentException(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Command parse(String input) throws DukeException {\r\n String[] inputArr = input.split(\" \", 2);\r\n String command = inputArr[0];\r\n\r\n switch (command) {\r\n case \"bye\":\r\n return new ExitCommand();\r\n case \"list\":\r\n return new Lis...
[ "0.68866765", "0.6736494", "0.6410994", "0.6334575", "0.63276356", "0.63239247", "0.6231131", "0.6216403", "0.61914283", "0.61752516", "0.61549115", "0.61411357", "0.61286145", "0.61225283", "0.60522985", "0.6019345", "0.59857225", "0.5984505", "0.59583676", "0.5953241", "0.5...
0.0
-1
Parses user input to find the command and generate the corresponding response.
public static String getCommandResponse(TaskList taskList, File file, PrintWriter writer, String action) throws DukeException { String command = Parser.getCommand(action); switch (command) { case "done": int taskNum = Parser.taskNumber(action); String oldDescription = taskList.getIndividualTaskInString(taskNum - 1); taskList.completeTask(taskNum); Storage.saveAsCompleted(file, taskList.getIndividualTask(taskNum - 1), oldDescription); return Response.showCompletedMessage(taskList.getIndividualTask(taskNum - 1)); case "todo": case "deadline": case "event": Task task = identifyType(action); taskList.addTask(task); Storage.addData(writer, identifyType(action)); return Response.showAddedTask(task, taskList.getLength()); case "list": return Response.showList(taskList); case "delete": int num = Parser.taskNumber(action); Task taskToDelete = taskList.getIndividualTask(num - 1); Storage.markAsDeleted(file, taskToDelete); taskList.deleteTask(num); return Response.showSuccessfulDelete(taskToDelete, taskList.getLength()); case "find": String keyword = getKeyword(action); return taskList.findTasks(keyword); default: return Response.showInvalidInputMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Command parseCommand(String response) {\n String[] command = response.split(\" \", 10);\n switch (command[0]) {\n case \"list\":\n return new ListCommand(command);\n case \"done\":\n case \"undo\":\n return new DoneUndoCommand(command);\n ...
[ "0.7163245", "0.71425056", "0.69675356", "0.6937028", "0.68755245", "0.68508697", "0.6710153", "0.6704951", "0.6667684", "0.6648695", "0.66186965", "0.65739226", "0.65209603", "0.6478589", "0.6471388", "0.6450379", "0.64307725", "0.64256144", "0.64232", "0.63997895", "0.63973...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static CandidateEnterFragment newInstance(String param1, String param2) { CandidateEnterFragment fragment = new CandidateEnterFragment(); Bundle args = new Bundle(); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_candidate_enter, container, false); box1 = view.findViewById(R.id.can1); box2 = view.findViewById(R.id.can2); box3 = view.findViewById(R.id.can3); box4 = view.findViewById(R.id.can4); box1.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { } public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void afterTextChanged(Editable editable) { box2.requestFocus(); } }); box2.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { } public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void afterTextChanged(Editable editable) { box3.requestFocus(); } }); box3.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { } public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void afterTextChanged(Editable editable) { box4.requestFocus(); } }); enterCodeBtn = view.findViewById(R.id.chooseBTN); enterCodeBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int[] code = new int[4]; code[0] = Integer.parseInt("" + box1.getText()); code[1] = Integer.parseInt("" + box2.getText()); code[2] = Integer.parseInt("" + box3.getText()); code[3] = Integer.parseInt("" + box4.getText()); ScannedResult.getInstance().setSelectedCode(code); DisplayFinalCodeFragment newFragment = new DisplayFinalCodeFragment(); Bundle args = new Bundle(); newFragment.setArguments(args); FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction(); // Replace whatever is in the fragment_container view with this fragment, // and add the transaction to the back stack so the user can navigate back transaction.replace(R.id.fragment_container, newFragment); // Commit the transaction transaction.commit(); } }); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7325128", "0.7207981", "0.71355015", "0.7124422", "0.71224433", "0.70151067", "0.69761205", "0.69761205", "0.69761205", "0.69745713", "0.69676787", "0.6965594", "0.6960806", "0.6953875", "0.69436187", "0.69350636", "0.6929767", "0.6928443", "0.6922766", "0.69102424", "0.69...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
Sets the registry of transcoding rules to apply to encode attributes.
public void setTranscoderRegistry(@Nullable final ReloadableService<AttributeTranscoderRegistry> registry) { checkSetterPreconditions(); transcoderRegistry = registry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setAttributesIntoStrategy() {\n ResolverStrategy strategy = _resolverStrategy;\n strategy.setProperty(\n ResolverStrategy.PROPERTY_LOAD_PACKAGE_MAPPINGS, \n _loadPackageMappings);\n strategy.setProperty(\n ResolverStrategy.PROPERT...
[ "0.5643011", "0.53074896", "0.52972335", "0.5253046", "0.51811314", "0.5079275", "0.4984083", "0.49663755", "0.49535143", "0.48901862", "0.4835263", "0.47319353", "0.47207546", "0.47199655", "0.47051656", "0.47037905", "0.46763209", "0.46396357", "0.45998448", "0.4580644", "0...
0.50409716
6
Sets the filter service to use for inbound attributes.
public void setAttributeFilter(@Nullable final ReloadableService<AttributeFilter> filterService) { checkSetterPreconditions(); attributeFilterService = filterService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}", "void setFilter(Filter f);", "public void setPointAttributeFilter( AttributeFilter filter )\n \t{\n \t\tpointAttributeFilter = filter;\n \t}", "public void setAttributeService(AttributeService attributeService) {\n this...
[ "0.6316893", "0.60320175", "0.58810663", "0.58187425", "0.5780481", "0.5733993", "0.5674825", "0.5595131", "0.553387", "0.5515665", "0.55095476", "0.5500932", "0.5488086", "0.5440945", "0.5423791", "0.54235685", "0.53881884", "0.53867966", "0.5342199", "0.530287", "0.53000146...
0.7062515
0
Set a metadata source to use during filtering.
public void setMetadataResolver(@Nullable final MetadataResolver resolver) { checkSetterPreconditions(); metadataResolver = resolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSource(String source);", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setSource (String source);", "static public void setDataSource(DataSource source) {\n ds = source;\n }", "public void setDatasource(DataSource s...
[ "0.6683161", "0.66332966", "0.6536473", "0.6428554", "0.6414239", "0.6385776", "0.6264634", "0.624773", "0.61867857", "0.61670536", "0.61670536", "0.61277366", "0.60235983", "0.60121256", "0.60110456", "0.59885615", "0.5987485", "0.5980459", "0.5854998", "0.5836835", "0.58155...
0.0
-1