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
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { stationPanel = new javax.swing.JPanel(); enemyPanel = new javax.swing.JPanel(); fight = new javax.swing.JButton(); nextTurn = new javax.swing.JButton(); message = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setPreferredSize(new java.awt.Dimension(1100, 900)); stationPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); stationPanel.setPreferredSize(new java.awt.Dimension(600, 480)); stationPanel.setRequestFocusEnabled(false); enemyPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); enemyPanel.setMinimumSize(new java.awt.Dimension(200, 200)); enemyPanel.setPreferredSize(new java.awt.Dimension(399, 373)); fight.setText("Combatir"); fight.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fightActionPerformed(evt); } }); nextTurn.setText("Siguiente Turno"); nextTurn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nextTurnActionPerformed(evt); } }); message.setText("fdf"); jLabel1.setFont(new java.awt.Font("Bitstream Vera Sans", 1, 14)); // NOI18N jLabel1.setText("Información de la partida:"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(stationPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 574, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(message) .addComponent(jLabel1)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(nextTurn) .addComponent(enemyPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 436, Short.MAX_VALUE) .addComponent(fight, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(enemyPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 430, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(nextTurn) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(fight, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(stationPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 512, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(message) .addGap(22, 22, 22)))) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319573", "0.72908455", "0.72908455", "0.72908455", "0.7286827", "0.7248724", "0.7213511", "0.7208325", "0.7195998", "0.7190202", "0.7184771", "0.7158966", "0.7147921", "0.7093225", "0.7080275", "0.7057302", "0.69875276", "0.6977057", "0.6955658", "0.6953942", "0.69454855"...
0.0
-1
Class Description: Required Outputs sum of two numbers
public int addNum(int a, int b){ return a+b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getSum()\n {\n return first + second;\n }", "public int add(int a, int b) //add method take two int values and returns the sum\n {\n int sum = a + b;\n return sum;\n }", "@Override\n\t\t\tpublic Integer apply(Integer num1, Integer num2) {\n\t\t\t\treturn num1+num2...
[ "0.75073475", "0.7374856", "0.733158", "0.7311855", "0.7282164", "0.7255538", "0.7251541", "0.7175058", "0.7175058", "0.71735954", "0.7168047", "0.71261424", "0.7121683", "0.7088828", "0.7077189", "0.7061476", "0.70550865", "0.705007", "0.70377237", "0.6996056", "0.69742805",...
0.0
-1
Method Description: Driver Collecting two numbers in args
public static void main (String args[]) throws NumberFormatException { try{ for(int i=0; i<args.length; i++){ //Not needed, used for debugging System.out.println("Numbers: ("+args[i]+")"); } int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); example obj = new example(); int sum = obj.addNum(a, b); System.out.println("sum of "+args[0]+" and "+args[1]+" is: "+sum); } catch(NumberFormatException nfe){ //input is not a number, forcefully tell user to a number in args System.out.println("Your argument is not a number fam. \nPlease use a number"); System.exit(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tint arr[] = { 0, 3, 7, 6, 4, 0, 5, 5, 5 };\n\t\tplusOne(arr);\n\t\tplusOne1(new ArrayList<Integer>(Arrays.asList(0, 3, 7, 6, 4, 0, 5, 5, 5)));\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tList<Integer> l1=Arrays.asList(1,2,3); \n\t System.out.p...
[ "0.6667644", "0.6481565", "0.6468304", "0.646756", "0.6417649", "0.6408684", "0.638986", "0.6366016", "0.63342035", "0.6306338", "0.62862337", "0.6249493", "0.620589", "0.6199945", "0.6186387", "0.6180196", "0.6168067", "0.6147182", "0.6146059", "0.6135067", "0.61061007", "...
0.0
-1
TODO: there is currently no use for this method.
@Override public List<Transfer> getTransfers(int limit) { throw new NotImplementedError("Use MergedWallet instead."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int describeContents() { return 0; }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override public int describeContents() { return 0; }", "priva...
[ "0.55686533", "0.55102074", "0.55090517", "0.5431565", "0.53954405", "0.5304399", "0.52645326", "0.5201489", "0.5184227", "0.517867", "0.51699907", "0.51443756", "0.51238006", "0.51210713", "0.5106706", "0.50939894", "0.50718695", "0.50693905", "0.50693905", "0.50693905", "0....
0.0
-1
found in network log. not sure we can send it, since our token is limited..
ChangeState(String state, String otp, String walletPassphrase) { this.state = state; this.otp = otp; this.walletPassphrase = walletPassphrase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendTokenToRemote() { }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "@Override\...
[ "0.66710573", "0.6518708", "0.6518708", "0.6518708", "0.6518708", "0.64652175", "0.64210916", "0.6403572", "0.62755746", "0.6208887", "0.62024397", "0.6191042", "0.6156358", "0.61269593", "0.6101321", "0.61007893", "0.6093439", "0.609314", "0.607461", "0.60559916", "0.6055991...
0.0
-1
Earth radius in meter
private static double getSinSquare(Double value){ return Math.pow(Math.sin(value/2), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static double earthRadiusKm(double gcLatitude) {\n return (earthRadius(gcLatitude) * EARTH_MEAN_EQUATORIAL_RADIUS_KM);\n }", "long getRadius();", "double getRadius();", "int getRadiusUnitsValue();", "private double getSatelliteCircleRadius() {\r\n GeoPoint satNadir = new GeoPoint(Math.toRadi...
[ "0.71761245", "0.70522606", "0.7043786", "0.6847659", "0.6812845", "0.6771957", "0.6705319", "0.66200864", "0.65798575", "0.65689963", "0.65644723", "0.6555643", "0.6532551", "0.6528413", "0.6521657", "0.6521498", "0.6521498", "0.6496442", "0.6472133", "0.64645314", "0.646393...
0.0
-1
this method that provides approximate distance between two points using the Haversine formula
public static double getDistance(GPSCoordinates point1, GPSCoordinates point2) { return EARTH_RADIUS * 2 * Math.atan2( Math.sqrt( getHaversinePart(point1, point2)), Math.sqrt( getHaversinePart(point1, point2) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double haversineDist(CityNode a, CityNode b) {\n\n double distLat = Math.toRadians(a.getLat() - b.getLat());\n double distLong = Math.toRadians(a.getLong() - b.getLong());\n\n // Convert latitudes to radians\n double startLat = Math.toRadians(b.getLat());\n double endLat = Math.toRadians(a.g...
[ "0.77938366", "0.76988536", "0.74804866", "0.7328302", "0.7303431", "0.7250422", "0.7118595", "0.71106005", "0.70974326", "0.7017294", "0.70118153", "0.70056856", "0.6983771", "0.6917376", "0.6821861", "0.67819625", "0.6781344", "0.67566365", "0.6750932", "0.67179024", "0.671...
0.6613899
31
Setting up driver and maximizing window
@BeforeClass public static void setup() { String driverPath = ""; System.setProperty("webdriver.chrome.driver", driverPath); driver = new ChromeDriver(); driver.manage().window().maximize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void maximizeWindow() {\n\t\tdriver.manage().window().maximize();\n\t}", "public static void MaximizeWindow() {\n\t\tBrowser.Driver.manage().window().maximize();\n\t}", "private static void maximizeFirefoxWindow(int screenWidth, int screenHeight,WebDriver driver)\n {\n driver.manage().window(...
[ "0.7669504", "0.7532519", "0.72574407", "0.72031385", "0.7164336", "0.7114649", "0.7100863", "0.7029522", "0.68591887", "0.6793438", "0.6724621", "0.6579861", "0.6528809", "0.6488291", "0.64826477", "0.64718044", "0.64611053", "0.6427565", "0.6414855", "0.63992596", "0.631526...
0.0
-1
Setting parameters for login
@Test public void stage03_testLogin() { String userName = ""; String password = ""; //Sign in SignIn signIn = new SignIn(driver); HomePage homePage = signIn.loginValidUser(userName, password); //Get login name String loginName = homePage.getLoginName(); //Testing if login name is correct assertEquals(loginName, (userName)); //logging if (loginName.equals(userName)) { logger.info("Loged in succesfully."); logger.info("( stage02_testOpenLoginPage )Actual username : " + loginName + password); } else { logger.error("Unable to login."); logger.error("( stage02_testOpenLoginPage )Actual username : " + loginName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setLoginInformation()\n {\n // Set up the login form.\n mIPView_ = (EditText) findViewById( R.id.IP );\n mPortView_ = (EditText) findViewById( R.id.password );\n\n // Set the intial display\n if ( rememberLoginIsSet_ )\n {\n if ( properties_.cont...
[ "0.6821073", "0.67622143", "0.67410475", "0.6736501", "0.6675961", "0.6601156", "0.65204966", "0.6452252", "0.6442425", "0.64201987", "0.64073384", "0.6386733", "0.63354415", "0.6331297", "0.6331297", "0.632441", "0.6309132", "0.6300396", "0.62771744", "0.62702787", "0.627015...
0.0
-1
Setting search keyword and page paramter
@Test public void stage04_searchAndPage() { String keyWord = "bilgisayar"; Integer pageNumber = 2; //Searching with parameters SearchKey searchKey = new SearchKey(driver); HomePage homePage = searchKey.search(keyWord, pageNumber); //Getting current url String currentUrl = homePage.getCurrentURL(); //Testing if this is desired page assertEquals(currentUrl, "https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2"); //logging if (currentUrl.equals("https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2")) { logger.info("( stage02_testOpenLoginPage )Actual location : " + currentUrl); } else { logger.error("( stage02_testOpenLoginPage )Actual location : " + currentUrl); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSearchPagePath(String pagePath) {\r\n this.searchPagePath = pagePath;\r\n }", "@RequestMapping(\"/search\")\n public String searchItemList(String keyword, @RequestParam(defaultValue = \"1\") Integer page, Model model) throws IOException, SolrServerException {\n SearchResult res...
[ "0.6426916", "0.6332979", "0.6257493", "0.62399113", "0.6236994", "0.62029576", "0.6151307", "0.6122174", "0.6121372", "0.61051774", "0.6084369", "0.6053151", "0.60387784", "0.59995914", "0.5989845", "0.5963274", "0.5953557", "0.59451264", "0.59438336", "0.59432244", "0.59422...
0.55139834
67
Return the number of matching entities in the database.
@Transactional(readOnly = true) public long countByCriteria(FactureCriteria criteria) { log.debug("count by criteria : {}", criteria); final Specification<Facture> specification = createSpecification(criteria); return factureRepository.count(specification); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int findAllCount() ;", "public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }", "public int count() {\n return Query.count(itera...
[ "0.72055745", "0.7112963", "0.7040392", "0.6930659", "0.6835712", "0.6823517", "0.6775256", "0.67737544", "0.6716066", "0.6703935", "0.66931164", "0.66503805", "0.66427094", "0.6639231", "0.6639231", "0.6639231", "0.6639231", "0.6639231", "0.6639231", "0.6639231", "0.6639231"...
0.0
-1
/ renamed from: a
static C5706h m10487a(JsonReader reader, C5830g composition) throws IOException { return new C5706h(composition, C5814r.m10472a(reader, composition, C5829f.m10534a(), C5821y.f10090a, reader.peek() == JsonToken.BEGIN_OBJECT)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
return groups that contains this member Note that a user may belong to several groups.
public List<Group> getMyGroups(String myName) { List<Group> myGroup = new ArrayList<>(); for (Group g : groups) { if (g.getMembers().contains(myName)) { g.setMySelf(myName); myGroup.add(g); } } return myGroup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Group> getGroups() {\n List<Group> groups = new ArrayList<Group>();\n Set<String> keys = memberships.keySet();\n for (String key: keys) {\n \tgroups.add(memberships.get(key).getGroup());\n }\n groups.sort(new GroupTitleComparator());\n return groups;\n\n...
[ "0.76090646", "0.7348996", "0.7221041", "0.7094554", "0.7059888", "0.70521396", "0.70215094", "0.6960744", "0.6941666", "0.6923102", "0.69143766", "0.6903408", "0.6873546", "0.6871338", "0.6865517", "0.68554294", "0.68488383", "0.6831115", "0.6827108", "0.6800694", "0.6798869...
0.64616174
33
POINTCUT DEFINITIONS SECTION Pointcut for Implementing Interface 'IWBValidator'
@Pointcut("target(scriptsengine.uploadengine.validations.interfaces.IWBValidator)") public void WBValidatorInterface() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IValidationHandler {\n\n\t/**\n\t * Returns the validation module definition\n\t * @return module definition\n\t */\n\tpublic ValidationModule getModuleDefinition();\n\n /**\n * Validates the content with given validator\n * @param inputs\n * @return\n */\n public TestStepRep...
[ "0.61945266", "0.6069081", "0.6027612", "0.599237", "0.59635615", "0.59336805", "0.59336805", "0.59336805", "0.5908371", "0.58336246", "0.58317524", "0.58207893", "0.5789931", "0.5738878", "0.5714493", "0.5691877", "0.56370777", "0.56259215", "0.5622393", "0.5618271", "0.5613...
0.82566786
0
main pido la opcion para el menu
private static int menu() { int opcion; opcion = Leer.pedirEntero("1:Crear 4 Almacenes y 15 muebeles" + "\n2: Mostrar los muebles" + "\n3: Mostrar los almacenes" + "\n4: Mostrar muebles y su almacen" + "\n0: Finalizar"); return opcion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\n Menu iniciar_menu = new Menu();\r\n }", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptRejec...
[ "0.6952111", "0.6908766", "0.6840081", "0.6817577", "0.6777808", "0.67113906", "0.66538376", "0.66194254", "0.6619017", "0.66189337", "0.66141486", "0.6595578", "0.659513", "0.65788776", "0.65441406", "0.65413815", "0.65335995", "0.65285426", "0.65231895", "0.6518961", "0.651...
0.63308394
36
creo los muebles con parametros predefinidos pero con un almacen aleatorio
private static void crearMuebles(Mueble[] muebles, Almacen[] almacenes) { for (int i = 0; i < 15; i++) { muebles[i] = new Mueble("mueble "+ (i + 1) , 3, 3, 3); //hacemos aqui la asignacion de almacenes con random if(muebles[i].getAsignado()==false){ almacenes[(int)(Math.random()*4)].guardarMueble(muebles[i]); muebles[i].setAsignado(true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public static void main(String[] args) {\n Alumno aaDatos []; // E...
[ "0.5952532", "0.58804", "0.5818171", "0.57919675", "0.5764862", "0.57576215", "0.57520276", "0.57519585", "0.5733997", "0.5714412", "0.5683899", "0.5680058", "0.5670695", "0.5670358", "0.5630221", "0.56299084", "0.5627163", "0.5618884", "0.55926174", "0.5576482", "0.5558078",...
0.55978155
18
creo los almacenes automaticamente con sus valores
private static void crearAlmacenes(Almacen[] almacen) { almacen[0] = new Almacen("Muebles SA", "Poligono Industrial 34, Madrid"); almacen[1] = new Almacen("Leroy Merlin", "Plaza España 20, Zaragoza"); almacen[2] = new Almacen("Bricomania", "Gran Via 77, Barcelona"); almacen[3] = new Almacen("Ikea", "Calle Mayor 42, Murcia"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atra...
[ "0.67072", "0.6347843", "0.60153073", "0.6004821", "0.59943855", "0.59462816", "0.5940992", "0.59233874", "0.5908426", "0.58949673", "0.5894806", "0.5856837", "0.5809433", "0.57991534", "0.57839966", "0.5765675", "0.5764661", "0.5763357", "0.5762971", "0.5721432", "0.5708688"...
0.6702946
1
Private Methods // inflate views from xml file
private void inflateViews() { toolbar = findViewById(R.id.toolbar); viewPager = findViewById(R.id.view_pager); tabLayout = findViewById(R.id.tab_layout); toolbar.setTitle("ChatApp"); setSupportActionBar(toolbar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void loadXml() {\n\t\tsetContentView(R.layout.activity_my_message);\n\t}", "@Override \n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.article_reader_lay...
[ "0.67786324", "0.6758574", "0.67437315", "0.65312725", "0.65069765", "0.64809614", "0.6466109", "0.6458005", "0.6366911", "0.6360415", "0.6322449", "0.6314636", "0.62944955", "0.62926716", "0.62907153", "0.6283775", "0.627945", "0.6279179", "0.6276193", "0.6272918", "0.627081...
0.6402638
8
init view pager with tabs layout
private void initViewPager() { List<Fragment> fragments = new ArrayList<>(); FragmentManager fragmentManager = getSupportFragmentManager(); ChatsFragment chatsFragment = new ChatsFragment(); Bundle bundle = new Bundle(); bundle.putSerializable("currentUser", currentUser); chatsFragment.setArguments(bundle); GroupsFragment groupsFragment = new GroupsFragment(); groupsFragment.setArguments(bundle); ContactsFragment contactsFragment = new ContactsFragment(); contactsFragment.setArguments(bundle); fragments.add(chatsFragment); fragments.add(contactsFragment); fragments.add(groupsFragment); List<String> titles = new ArrayList<>(); titles.add("Chats"); titles.add("Contacts"); titles.add("Groups"); TabsAdapter tabsAdapter = new TabsAdapter(fragmentManager, fragments, titles); viewPager.setAdapter(tabsAdapter); tabLayout.setupWithViewPager(viewPager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initViewPager() {\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n if (viewPager != null) {\n viewPager.setAdapter(new MainPagerAdapter(getFragmentManager()));\n }\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayou...
[ "0.82683975", "0.8004574", "0.79773843", "0.7953777", "0.79368687", "0.78646374", "0.7845418", "0.7799443", "0.77841276", "0.77799654", "0.7720041", "0.7674123", "0.76505435", "0.761873", "0.7596441", "0.7526556", "0.7443023", "0.74330705", "0.7426407", "0.74141985", "0.73877...
0.79348683
5
TODO Autogenerated method stub
@Override public void onClick(View v) { if (v.getId() == R.id.textView1 || v.getId() == R.id.event_title || v.getId() == R.id.menuLayout) { finish(); overridePendingTransition(R.anim.trans_right_in, R.anim.trans_right_out); } else if (v.getId() == R.id.placeorder) { new Webservice().execute(); } }
{ "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
Metodo que se ejecuta cuando se abre el bandbox. Se selecciona el radio visible que es el que indica el parametro o criterio de busqueda. Se limpian los demas componentes y por ultimo se parametriza el control de paginacion
public void onOpenBandboxEvent() { log.info("Ejecutando el mEtodo [onOpenBandboxEvent()]..."); try { if (permitirBuscar) { visualizarColumnas(); idMCRZRgrCriterio.setSelectedIndex(0); // seleccionar primer radio visible cuando se este usando un // solo // parametro de busqueda int totalRadios = 0; Radio radioVisible = null; if (idMCRZRgrCriterio != null) { for (Radio componentRadio : idMCRZRgrCriterio.getItems()) { if (componentRadio.isVisible()) { radioVisible = componentRadio; totalRadios++; } } } if (totalRadios == 1) { radioVisible.setSelected(true); } // -------------------------------------------------------- idMCRZTbxCriterio.setFocus(true); idMCRZTbxCriterio.setValue(null); idMCRZLbxlista.getItems().clear(); onMostrarListboxConsulta(); parametrizarPagingControl(); } else { Notificaciones.mostrarNotificacionAlerta(tituloMensajeExtra, mensajeExtra, 7000); } } catch (Exception e) { log.info("Eroor......................."+e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void seleccionarBeneficiario(){\n\t\tvisualizarGrabarRequisito = false;\r\n\t\ttry{\r\n\t\t\tlog.info(\"intItemBeneficiarioSeleccionar:\"+intItemBeneficiarioSeleccionar);\r\n\t\t\tif(intItemBeneficiarioSeleccionar.equals(new Integer(0))){\r\n\t\t\t\tbeneficiarioSeleccionado = null;\r\n\t\t\t\tlistaEgresoDet...
[ "0.60170275", "0.59857106", "0.59844923", "0.5838047", "0.5812018", "0.5797694", "0.5784788", "0.57065797", "0.57023156", "0.5681036", "0.561467", "0.55974644", "0.55560344", "0.5481818", "0.5469018", "0.5449478", "0.54292494", "0.54128075", "0.53927475", "0.5387473", "0.5375...
0.65920776
0
Metodo que se ejecuta cuando se presiona la tecla Enter sobre el bandbox o cuando se da click sobre el boton de busqueda
public void onConsultarEvent() { log.info("Ejecutando el mEtodo [onConsultarEvent()]..."); try { if (permitirBuscar) { log.info("Ejecutando el mEtodo [onConsultarEvent(1)]..."); visualizarColumnas(); log.info("Ejecutando el mEtodo [onConsultarEvent(2)]..."); onMostrarListboxConsulta(); log.info("Ejecutando el mEtodo [onConsultarEvent(3)]..."); onConsultar(idMCRZTbxCriterio.getValue(), false); log.info("Ejecutando el mEtodo [onConsultarEvent(4)]..."); } else { Notificaciones.mostrarNotificacionAlerta(tituloMensajeExtra, mensajeExtra, 7000); } } catch (Exception e) { log.info("Eroor......................."+e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clickEnter(){\n\t\tString commandInput = textInput.getText();\n\t\tString feedback;\n\n\t\tif (commandIsClear(commandInput)) {\n\t\t\tusedCommands.addFirst(commandInput);\n\t\t\tclearLinkedDisplay();\n\n\t\t} else {\n\t\t\tif (commandInput.trim().isEmpty()) {\n\t\t\t\tfeedback = \"Empty command\";\n\t...
[ "0.7091924", "0.67657125", "0.6664724", "0.65589416", "0.6475165", "0.64517796", "0.63807136", "0.6337141", "0.6334233", "0.6324799", "0.6321852", "0.63045347", "0.62988925", "0.62889653", "0.62772644", "0.625996", "0.6228779", "0.62128246", "0.61737585", "0.6139368", "0.6112...
0.0
-1
Visualizar las columnas de codigo y nombre en el listbox de resultados
public void visualizarColumnas() throws Exception { if (!usaColumnaCodigo) { idMCRZLhdCodigo.setVisible(false); } if (!usaColumnaNombre) { idMCRZLhdNombre.setVisible(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getColumnNames() {\n try {\n String qry1 = \"select * from \" + StaticData.tablename;\n ResultSet rs = EstablishConnection.executeQuery(qry1);\n rsmd = rs.getMetaData();\n int columnCount = rsmd.getColumnCount();\n DefaultListModel dlm=new ...
[ "0.69204104", "0.65210396", "0.6489683", "0.64251083", "0.6401604", "0.6334178", "0.6310148", "0.62919813", "0.6288561", "0.62474823", "0.6215283", "0.6171676", "0.6164065", "0.6144187", "0.6117961", "0.61046743", "0.6102613", "0.6093118", "0.6090015", "0.6087221", "0.6083392...
0.6132731
14
Hace visible el listbox de resultados y oculta la etiqueta de mensaje vacio
public void onMostrarListboxConsulta() { getIdMCRZLbxlista().setVisible(true); getIdMCRZLbxlista().applyProperties(); getIdMCRZLbxlista().invalidate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showEmptyListMessage() {\n Toast.makeText(getBaseContext(), \"Lista de opiniones vacia!\", Toast.LENGTH_LONG).show();\n }", "public void verSeleccionarResultadosRevisados()\r\n\t{\r\n\t\tactualizarFinalizacionConvocatorias();\r\n\t\tseleccionarresultadosrevis = new SeleccionarResultadosRevi...
[ "0.6827355", "0.6607489", "0.6561719", "0.6513971", "0.64779335", "0.64484674", "0.6355963", "0.63123685", "0.6269771", "0.6180428", "0.61578166", "0.61481225", "0.6125378", "0.6102189", "0.6097578", "0.60673", "0.6066066", "0.60280514", "0.6016259", "0.59999305", "0.5990886"...
0.76069874
0
Devuelve una instancia de una entidad de negocio con criterios definidos. El valor del criterio va con UpperCase
public IBeanAbstracto setObjeto(String campo, String criterio, IBeanAbstracto obj) { if (criterio != null && !criterio.isEmpty()) { criterio = "%" + criterio.trim().toUpperCase() + "%"; } if (campo.equals("codigo")) { obj.setCodigo(criterio); } else { if (campo.equals("nombre")) { obj.setNombre(criterio); } } return obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@In Boolean caseSensitive();", "private Criteria buildInactiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, false);\r\n\r\n return criteria;\r\n }", "private static LogicalExpression negateCase(LogicalExpression e){\n\t\t// ret...
[ "0.55781716", "0.5555526", "0.5535166", "0.5402784", "0.53336173", "0.531128", "0.5294614", "0.52045286", "0.5170975", "0.51630235", "0.51294094", "0.5111464", "0.5100291", "0.5041973", "0.50355625", "0.5034746", "0.502769", "0.50250375", "0.49911913", "0.49900353", "0.495050...
0.0
-1
Devuelve una instancia de una entidad de negocio con criterios definidos El valor del criterio va normal (como se manda)
public IBeanAbstracto setObjeto(IBeanAbstracto obj, String campo, String criterio) { if (criterio != null && !criterio.isEmpty()) { criterio = "%" + criterio.trim() + "%"; } if (campo.equals("codigo")) { obj.setCodigo(criterio); } else { if (campo.equals("nombre")) { obj.setNombre(criterio); } } return obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Relation getNegation();", "private Criteria buildInactiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, false);\r\n\r\n return criteria;\r\n }", "boolean getNegated();", "public Query not() {\n builder.negateQuery();\n ...
[ "0.6321441", "0.61550754", "0.60162485", "0.5963804", "0.59558594", "0.59246826", "0.5836263", "0.571246", "0.5638793", "0.5633482", "0.5624708", "0.55363435", "0.5491046", "0.54792523", "0.5477956", "0.5477956", "0.54586107", "0.5452687", "0.5436472", "0.5417896", "0.5409007...
0.0
-1
Esta es la parametrizacion del pagingControl (Control de paginacion). Creacion del render para los resultados
private void parametrizarPagingControl() throws Exception { log.info("Ejecutando metodo [parametrizarPagingControl()]..."); idMCRZPGCTRLMaestro.setComponenteReferencia(idMCRZLbxlista); idMCRZPGCTRLMaestro.setStatementConsultaPaginada(getConsultaPaginada()); idMCRZPGCTRLMaestro.setPageSize(5); idMCRZPGCTRLMaestro.setConsultaDinamica(isDinamic()); idMCRZPGCTRLMaestro.setSqlConsultaDinamica(getConsultaDinamica()); idMCRZPGCTRLMaestro.setTipoClase(objetoClase); idMCRZPGCTRLMaestro.setTablaPadreFrom(tablaPadreFrom); idMCRZLhdNombre.setVisible(usaColumnaNombre); // idAUTZCTRLControl.setMold("os"); idMCRZPGCTRLMaestro.setPagingControlFilas(new PagingControlFilas() { @Override public void render(Component component, IBeanAbstracto iBeanAbstracto) { // final Listitem fila = getAssemblerStandard() // .crearListitemDesdeDto((Listitem) component, // iBeanAbstracto); final Listitem fila = getAssemblerStandard() .crearListitemDinamico(null, iBeanAbstracto.getMD5(), (Listitem) component, iBeanAbstracto.getCodigo(), iBeanAbstracto.getNombre()); final BandboxFindPaging padre = BandboxFindPaging.this; final IBeanAbstracto object = iBeanAbstracto; fila.addEventListener(Events.ON_CLICK, new EventListener<Event>() { public void onEvent(Event arg0) throws Exception { onSeleccionarMaestro(object, padre); } }); if (interfaz != null) { fila.addEventListener(Events.ON_CLICK, new EventListener<Event>() { public void onEvent(Event arg0) throws Exception { if (ids != null) fila.setAttribute("ID", ids); interfaz.onValidateSeleccion(fila, object); } }); } } }); idMCRZPGCTRLMaestro .agregarAtributosColumnas(new ArrayList<PagingControlColumnas>()); idMCRZPGCTRLMaestro.setComponenteContenedor(idMCRZLftPaging); if (usaColumnaCodigo && usaColumnaNombre) { log.info("@parametrizarPagingControl ===> usaColumnaCodigo=" + usaColumnaCodigo + ";usaColumnaNombre=" + usaColumnaNombre); ((Listfooter) idMCRZLftPaging.getChildren().get(0)).setSpan(2); ((Listfooter) idMCRZLftPaging.getChildren().get(0)) .appendChild(idMCRZPGCTRLMaestro); ((Listfooter) idMCRZLftPaging.getChildren().get(1)) .setVisible(false); } else if (!usaColumnaCodigo && usaColumnaNombre) { log.info("@parametrizarPagingControl ===> usaColumnaCodigo=" + usaColumnaCodigo + ";usaColumnaNombre=" + usaColumnaNombre); ((Listfooter) idMCRZLftPaging.getChildren().get(0)) .setVisible(false); ((Listfooter) idMCRZLftPaging.getChildren().get(1)) .setVisible(true); ((Listfooter) idMCRZLftPaging.getChildren().get(1)) .appendChild(idMCRZPGCTRLMaestro); } else if (usaColumnaCodigo && !usaColumnaNombre) { log.info("@parametrizarPagingControl ===> usaColumnaCodigo=" + usaColumnaCodigo + ";usaColumnaNombre=" + usaColumnaNombre); ((Listfooter) idMCRZLftPaging.getChildren().get(0)).setSpan(1); ((Listfooter) idMCRZLftPaging.getChildren().get(0)) .appendChild(idMCRZPGCTRLMaestro); ((Listfooter) idMCRZLftPaging.getChildren().get(1)) .setVisible(false); ((Listhead) this.getFellow("idMCRZListHead")) .removeChild(idMCRZLhdNombre); idMCRZLhdNombre.setStyle("visibility: hidden"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int doStartTag() throws JspException {\n\n int pageCount = (this.recordCount + this.pageSize - 1) / this.pageSize;\n StringBuilder sb = new StringBuilder();\n\n if (this.recordCount != 0 && this.recordCount > this.pageSize) {\n sb.append(\"<ol class=\\\"paginat...
[ "0.6103874", "0.60249406", "0.5933932", "0.5925586", "0.5883152", "0.5872945", "0.58238965", "0.58145696", "0.5710481", "0.5685897", "0.5683426", "0.56405425", "0.56133085", "0.5607881", "0.55775416", "0.5577453", "0.5523072", "0.5523072", "0.55063874", "0.55022824", "0.54997...
0.70763576
0
final Listitem fila = getAssemblerStandard() .crearListitemDesdeDto((Listitem) component, iBeanAbstracto);
@Override public void render(Component component, IBeanAbstracto iBeanAbstracto) { final Listitem fila = getAssemblerStandard() .crearListitemDinamico(null, iBeanAbstracto.getMD5(), (Listitem) component, iBeanAbstracto.getCodigo(), iBeanAbstracto.getNombre()); final BandboxFindPaging padre = BandboxFindPaging.this; final IBeanAbstracto object = iBeanAbstracto; fila.addEventListener(Events.ON_CLICK, new EventListener<Event>() { public void onEvent(Event arg0) throws Exception { onSeleccionarMaestro(object, padre); } }); if (interfaz != null) { fila.addEventListener(Events.ON_CLICK, new EventListener<Event>() { public void onEvent(Event arg0) throws Exception { if (ids != null) fila.setAttribute("ID", ids); interfaz.onValidateSeleccion(fila, object); } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Mapper(componentModel = \"spring\")\npublic interface ListeAttenteMapper {\n ListeAttenteDto listeAttenteToListeAttenteDto(ListeAttente listeAttente);\n ListeAttente listeAttenteDtoToListeAttente(ListeAttenteDto listeAttenteDto);\n}", "private List<EquipoDetailDTO> listEntity2DTO(List<EquipoEntity> li...
[ "0.6678318", "0.6639218", "0.6500138", "0.64191943", "0.6359217", "0.63196665", "0.6259252", "0.62101364", "0.6179101", "0.61778593", "0.6157939", "0.6146554", "0.6075168", "0.60086185", "0.59996164", "0.59933764", "0.59794354", "0.59580016", "0.59258735", "0.5922246", "0.591...
0.6300735
6
Modificador del id o nombre de la consulta en el mapper (Archivo XML) de la consulta paginada
public void setConsultaPaginada(String consultaPaginada) { this.consultaPaginada = consultaPaginada; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RespuestaRest<ParqueaderoEntidad> consultar(String id);", "public PersonaDTO consultarPersona(Long idPersona) ;", "public AnuncioDTO ObtenerAnuncioID(int id){\n AnuncioDTO anuncioDTO=null;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\...
[ "0.6166545", "0.5976965", "0.5849381", "0.58362985", "0.5793002", "0.5731036", "0.568246", "0.56543", "0.5645968", "0.56455296", "0.5557403", "0.55526876", "0.5541868", "0.553842", "0.5513414", "0.55118793", "0.5492447", "0.54921466", "0.54894704", "0.54768175", "0.5475048", ...
0.0
-1
Retorna la id o nombre de la consulta en el mapper (Archivo XML) de la consulta paginada
public String getConsultaPaginada() { return consultaPaginada; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RespuestaRest<ParqueaderoEntidad> consultar(String id);", "private String armarQueryPaginandoNoPorOid(String consultaOri, DTOSiccPaginacion dto) {\n Long ultLineaPresentada = dto.getIndicadorSituacion();\n Integer cantidadLineas = dto.getTamanioPagina();\n \n if ((ultLineaPresentada =...
[ "0.6092495", "0.5845632", "0.58427376", "0.57893384", "0.5734407", "0.57156634", "0.57022715", "0.56888443", "0.5678691", "0.5652749", "0.56427425", "0.5603871", "0.5539777", "0.5523189", "0.5504257", "0.54742134", "0.5469553", "0.5466047", "0.54565233", "0.5448249", "0.54339...
0.0
-1
Modificador de la consultaDinamica
public void setConsultaDinamica(String consultaDinamica) { this.consultaDinamica = consultaDinamica; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,...
[ "0.7104589", "0.66915214", "0.6647013", "0.6570499", "0.65512705", "0.6547663", "0.6459252", "0.6455036", "0.6453053", "0.64406407", "0.64074695", "0.6377792", "0.6357973", "0.63551235", "0.6353433", "0.6324993", "0.63214815", "0.6307544", "0.6296636", "0.6274825", "0.6265935...
0.0
-1
Retorna la consulta dinamica con la que esta trabajando el macro
public String getConsultaDinamica() { return consultaDinamica; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (ou...
[ "0.6383787", "0.62116474", "0.6199193", "0.60784125", "0.60642576", "0.5980604", "0.5977503", "0.5943773", "0.5937958", "0.5922522", "0.59219664", "0.59212035", "0.5916347", "0.59151745", "0.5905735", "0.588275", "0.5867681", "0.58240473", "0.58238614", "0.5817009", "0.578637...
0.542885
92
this is the passenger's thread
public void run() { int stime; int dest; Ship sh; while (enjoy) { try { // Wait and arrive to the port stime = (int) (700*Math.random()); sleep(stime); // Choose the destination dest = (int) (((double) Assignment2.DESTINATIONS)*Math.random()); System.out.println("Passenger " + id + " wants to go to " + Assignment2.destName[dest]); // come to the harbour and board a ship to my destination // (might wait if there is no such ship ready) sh = sp.wait4Ship(dest); // Should be executed after the ship is on the dock and taking passengers System.out.println("Passenger " + id + " has boarded ship " + sh.id + ", destination: "+Assignment2.destName[dest]); // wait for launch sh.wait4launch(); // Enjoy the ride // Should be executed after the ship has launched. System.out.println("Passenger "+id+" enjoying the ride to "+Assignment2.destName[dest]+ ": Yeahhh!"); // wait for arriving sh.wait4arriving(); // Should be executed after the ship has landed System.out.println("Passenger " + id + " leaving the ship " + sh.id + " which has " + sh.numSeats + " seats"); // Leave the ship sh.leave(); } catch (InterruptedException e) { enjoy = false; // have been interrupted, probably by the main program, terminate } } System.out.println("Passenger "+id+" has finished its rides."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public void run ()\n {\n travelToAirport();\t\t\t\t//Passenger...
[ "0.6894869", "0.6894869", "0.68832624", "0.68730986", "0.6863202", "0.6857076", "0.6857076", "0.68486553", "0.67925537", "0.67925537", "0.67845744", "0.6783487", "0.6783487", "0.6783487", "0.6783487", "0.6783487", "0.6783487", "0.6783487", "0.6783487", "0.6783487", "0.6769652...
0.0
-1
your code here (other local variables and semaphores) constructor
public Ship(Harbour sp, int id) { this.sp = sp; this.id = id; enjoy = true; numSeats = 2; inship = new ArrayList<Passenger>(); readyToboard = new Semaphore(0);// set a semaphore to whether is ready to go readyToLeave = new Semaphore(0); // your code here (local variable and semaphore initializations) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Semaphore() {\n m_available = true;\n }", "public RCC() {\n v = new Semaphore(1);\n s = new Semaphore(0);\n mutex = new Semaphore(1);\n suspendidos_s = 0;\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsemaphore.acquire();\n\t\t\t\t\t...
[ "0.69282657", "0.67681307", "0.6544416", "0.6526618", "0.65190786", "0.6436552", "0.64362437", "0.634758", "0.6315834", "0.6198664", "0.6197989", "0.61888653", "0.6181404", "0.61778754", "0.6147741", "0.6122163", "0.61115557", "0.60858804", "0.60794234", "0.6056205", "0.60493...
0.5838517
45
the ship thread executes this
public void run() { int stime; int dest; while (enjoy) { try { // Wait until there an empty arriving dock, then arrive dest = sp.wait4arriving(this); System.out.println("ship " + id + " arriving on dock " + dest); // Tell the passengers that we have arrived // Wait until all passengers leave System.out.println("ship " + id + " boarding to "+Assignment2.destName[dest]+" now! With " + numSeats + " seats"); // the passengers can start to board now // Wait until full of passengers // 4, 3, 2, 1, Start! System.out.println("ship " + id + " Departs towards "+Assignment2.destName[dest]+"!"); // tell the passengers we have launched, so they can enjoy now ;-) // Sail in water stime = 500+(int) (1500*Math.random()); sleep(stime); } catch (InterruptedException e) { enjoy = false; // have been interrupted, probably by the main program, terminate } } System.out.println("ship "+id+" has finished its rides."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run ()\n {\n travelToAirport();\t\t\t\t//Passenger takes some time to arrive to the departure airport\n da.waitInQueue();\t\t\t\t//Passenger enters the queue and then waits for is turn to be checked\n da.showDocuments();\t\t\t\t//Passenger starts preparing to show...
[ "0.66578054", "0.6549205", "0.6549205", "0.65376043", "0.6525456", "0.6507828", "0.6501414", "0.6496262", "0.6472284", "0.6472284", "0.64260566", "0.6424057", "0.6403408", "0.6387885", "0.63741344", "0.6336657", "0.6336657", "0.6329743", "0.6319564", "0.6315621", "0.6315621",...
0.63924193
13
service functions to passengers called by the passengers leaving the ship
public void leave() throws InterruptedException { inship.clear(); // your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void leave() {\n LeaveReq leaveReq = new LeaveReq(node.getCred());\n String msg = leaveReq.getMessageAsString(Constant.Action.LEAVE);\n for (Cred neighbourCred : node.getRoutingTable()) {\n String uri = Constant.HTTP + neighbourCred.getNodeIp() + \":\" + neighb...
[ "0.62595284", "0.62279636", "0.6153036", "0.6151926", "0.6147413", "0.60433996", "0.59901726", "0.5970792", "0.5970792", "0.5970792", "0.5958347", "0.5937462", "0.58641297", "0.5863239", "0.58577746", "0.58391476", "0.5826289", "0.5798534", "0.5757527", "0.5714765", "0.569879...
0.5469967
36
called by the passengers sitting in the ship, to wait until the launch
public void wait4launch() throws InterruptedException { if(inship.size()<2){ readyToabaord.waitSem(); }else{ readyToabaord.signalSem(); } // your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void waitWhileShipPlacement(Player player) {\n\t\twhile (true) {\n\t\t\tif (player.isReadyWithPlaceShips()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n in...
[ "0.69617546", "0.66250175", "0.6512294", "0.65022206", "0.64511746", "0.6327641", "0.6315847", "0.6290364", "0.6270836", "0.62225485", "0.62222594", "0.621796", "0.6215062", "0.618585", "0.6144297", "0.6118959", "0.61138356", "0.6081398", "0.6052674", "0.6051767", "0.6000126"...
0.65869576
2
called by the bored passengers sitting in the ship, to wait until arriving
public void wait4arriving() throws InterruptedException { // your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void waitWhileShipPlacement(Player player) {\n\t\twhile (true) {\n\t\t\tif (player.isReadyWithPlaceShips()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public int wait4arriving(Ship s...
[ "0.73725843", "0.69993055", "0.6869351", "0.6827949", "0.68073255", "0.67799306", "0.6740897", "0.6734665", "0.6711643", "0.6703018", "0.6627909", "0.66251725", "0.65433025", "0.644635", "0.64373046", "0.6384085", "0.6314658", "0.62532425", "0.6214358", "0.61882746", "0.61651...
0.619917
19
what is sitting on a given dock your code here (other local variables and semaphores) constructor
public Harbour() { int i; docks = new Ship[Assignment2.DESTINATIONS]; // docks[] is an array containing the ships sitting on corresponding docks // Value null means the dock is empty for(i=0; i<Assignment2.DESTINATIONS; i++){ docks[i] = null; } // your code here (local variable and semaphore initializations) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected PayerThread() {\n\t\t\tEvent.ASSERTION.issue(sets == null, \"builders is null\");\n\t\t\tEvent.ASSERTION.issue(workloadConfiguration == null, \"configuration is null\");\n\n\t\t\tsetDaemon(true);\n\t\t}", "public MainThread()\n {\n super();\n setPriority(1);\n setId(0x55); ...
[ "0.5833582", "0.57675225", "0.5714377", "0.56562847", "0.5532146", "0.5532146", "0.5532146", "0.5531054", "0.54726624", "0.54582465", "0.54186314", "0.53668493", "0.53612685", "0.5357163", "0.5323797", "0.5323797", "0.5323797", "0.5315767", "0.53124267", "0.5306929", "0.52883...
0.53430015
14
called by a passenger wanting to go to the given destination returns the ship he/she boarded Careful here, as the dock might be empty at this moment
public Ship wait4Ship(int dest) throws InterruptedException { // your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDestination();", "Destination getDestination();", "public void findDestination() {\n\t\t\n\t}", "ShippingPointStructure getShipTo();", "private boolean didMyShipSink(int x, int y) {\n boolean sunk = false; //assumes ship hasn't sunk\n for (int i = 0; i < fleet.size(); i++) { //going through fl...
[ "0.6353953", "0.6166903", "0.6131982", "0.60519445", "0.6046427", "0.60172695", "0.6017239", "0.6009431", "0.5971884", "0.59695774", "0.5949873", "0.5949416", "0.59432817", "0.5923561", "0.5914957", "0.59130675", "0.5891407", "0.5883869", "0.58797884", "0.58701277", "0.581109...
0.5823334
20
called by an ship to tell the harbour that it is accepting passengers now to destination dest
public void boarding(int dest) throws InterruptedException { // your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destination, build a copy of\n * it, apply export...
[ "0.6578343", "0.6094775", "0.58711445", "0.5782491", "0.5746506", "0.57213277", "0.5702669", "0.5693931", "0.5658987", "0.5655822", "0.565533", "0.56101364", "0.56047595", "0.55967236", "0.55916065", "0.5589464", "0.55850923", "0.55498403", "0.5544467", "0.5542424", "0.553688...
0.0
-1
Called by an ship returning from a trip Returns the number of the empty dock where to land (might wait until there is an empty dock). Try to rotate the docks so that no destination is starved
public int wait4arriving(Ship sh) throws InterruptedException { for(int i = 0; i < docks.length.i++){ if(){ string inHarbour = dock } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testDocked() {\n\t\tgateInfoDatabase.docked(0);\n\t\tgateInfoDatabase.docked(1);\n\t\tassertEquals(0, gateInfoDatabase.getStatus(0));\n\t\tassertEquals(0, gateInfoDatabase.getStatus(1));\n\t\t\n\t\t// Test what happens if the methods are executed in the correct order:\n\t\t\n\t\t// Allocate th...
[ "0.5963418", "0.584528", "0.55537486", "0.53604233", "0.5320718", "0.52904147", "0.5227238", "0.51814365", "0.51238453", "0.50869906", "0.5017395", "0.5004315", "0.49942225", "0.49872714", "0.49745792", "0.4968388", "0.496313", "0.4921458", "0.49104944", "0.49092528", "0.4884...
0.5602209
2
called by an ship when it Departs, to inform the harbour that the dock has been emptied
public void launch(int dest) throws InterruptedException { // your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void reset()\r\n\t{\r\n\t\t\r\n\t\toriginDock = null;\r\n\t\tdraggedDockable = null;\r\n\r\n\t}", "private void clear() {\r\n\t\tpstate.clear();\r\n\t\tdisplay.setLegend(\"\");\r\n\t\tship = null;\r\n\t}", "public void undock() {\n if (getSpeed() == 0) {\n inDock = false;\n }\n...
[ "0.6502571", "0.6078531", "0.59581935", "0.5926747", "0.5892003", "0.5891475", "0.5853072", "0.583842", "0.58163244", "0.58063626", "0.57628113", "0.57597", "0.5723921", "0.57175493", "0.57129985", "0.5699079", "0.56814766", "0.56799954", "0.56602174", "0.56527364", "0.565027...
0.0
-1
/ renamed from: com.zhihu.android.editor.question_rev.b.a / compiled from: QuestionEditorService
public interface QuestionEditorService { @GET(mo135023a = "/questions/{question_id}/relationship") /* renamed from: a */ Observable<Response<Relationship>> mo89774a(@AbstractC33319s(mo135037a = "question_id") long j); @FormUrlEncoded @PUT(mo135033a = "/questions/{question_id}") /* renamed from: a */ Observable<Response<Question>> mo89775a(@AbstractC33319s(mo135037a = "question_id") long j, @FieldMap Map<String, Object> map); @FormUrlEncoded @PUT(mo135033a = "/questions/{question_id}/anonymous") /* renamed from: a */ Observable<Response<Relationship>> mo89776a(@AbstractC33319s(mo135037a = "question_id") long j, @Field(mo135020a = "is_anonymous") boolean z); @POST(mo135032a = "/questions") @FormUrlEncoded /* renamed from: a */ Observable<Response<Question>> mo89777a(@FieldMap Map<String, Object> map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C46861b {\n /* renamed from: a */\n SharedPreferences mo117960a();\n\n /* renamed from: a */\n boolean mo117961a(Editor editor);\n\n /* renamed from: b */\n Editor mo117962b();\n}", "public interface IStoryRecordService {\n\n /* renamed from: com.ss.android.ugc.aweme.service...
[ "0.5866689", "0.57948035", "0.57758355", "0.55751514", "0.5557152", "0.5531036", "0.549849", "0.5493883", "0.5480971", "0.5447957", "0.536877", "0.53518856", "0.53136724", "0.5297068", "0.52948827", "0.52644575", "0.5200243", "0.51885855", "0.5182904", "0.5181278", "0.5158511...
0.62969553
0
Method that returns the maximum (as you compare) element of the collection
public ConcurrentSkipListSet<Olders> getCollectionsOlders(){ return this.collectionsOlders; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T max() {return max(comparator);}", "public E findMax() {\r\n\t\treturn heap.get(0);\r\n\t}", "private <T extends Number> T computeMax(final Collection<T> inputCollection) {\n\r\n\t\tT res = null;\r\n\r\n\t\tif (!inputCollection.isEmpty())\r\n\t\t\tfor (final T t : inputCollection)\r\n\t\t\t\tif (res ==...
[ "0.7787544", "0.7692858", "0.76439446", "0.7603036", "0.75444895", "0.7515429", "0.7475325", "0.7469605", "0.7433729", "0.73760223", "0.73007315", "0.7299186", "0.72783136", "0.7244618", "0.7232269", "0.7231393", "0.7168838", "0.71659553", "0.7112161", "0.7036209", "0.7013127...
0.0
-1
Method that returns a collection of objects in the Instruments class
public CopyOnWriteArrayList<Instruments> getArrInstruments(){ return this.containerOfInstruments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HashMap<String, Instrument> getInstruments();", "public List<Instance> getSamples(){\n\t\treturn arrIns;\n\t}", "private String[] getInstrumentIds(){\n logger.info(\"Getting Instruments from cache\");\n return instruments.keySet().toArray(new String[instruments.size()]);\n }", "List<SoftObje...
[ "0.6608219", "0.64616156", "0.6129755", "0.5988394", "0.593785", "0.5934828", "0.58716744", "0.58580023", "0.5790718", "0.578727", "0.57665193", "0.5742721", "0.5717065", "0.57107455", "0.5708532", "0.56953174", "0.56785375", "0.5627642", "0.56185114", "0.56150985", "0.561470...
0.5622272
18
a method that displays information about the collection (collection type, initialization date and size)
public String info() { String instrumentsString = " "; for(Instruments i : Instruments.values()){ instrumentsString +=i.toString() + "\n"; } return ("База данных представляет из себя набор старцев(обьектов Olders)," +"\n"+ "каждый из которых имеет поля :" +"\n"+ "id(уникальный идентификатор)" +"\n"+ "name(имя старца)" +"\n"+ "userid(уникальный идентификатор пользователя, который является его владельцем)" +"\n"+ "dateofinit-дата инициализация старца"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DataCollectionInfo getInfo();", "public String getSubcollectionInfo () throws SDLIPException {\r\n XMLObject subcolInfo = new sdlip.xml.dom.XMLObject();\r\n tm.getSubcollectionInfo(subcolInfo);\r\n// return postProcess (subcolInfo, \"subcolInfo\", false);\r\n return subcolInfo.getString();\r\n }", ...
[ "0.6816674", "0.6244874", "0.6224974", "0.619689", "0.613835", "0.6098535", "0.6092771", "0.60371", "0.6017129", "0.60159904", "0.6012931", "0.5993098", "0.59699476", "0.5914087", "0.5894688", "0.58745503", "0.580272", "0.5801496", "0.5788666", "0.57223034", "0.5689883", "0...
0.0
-1
This method removes objects that are less than this value.
public String remove_lower(Olders o) { try { CompareOlders compare = new CompareOlders(); for(Olders p : collectionsOlders){ if(compare.compare(p,o)==-1){ collectionsOlders.remove(p); return "Обьект "+p+ " удален из коллекции"; } } }catch(IllegalArgumentException e) { return "Обьект данного типа не может быть удален из коллекции"; } return "В коллекции нет обьектов, меньше заданного"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeSmaller(double value){\r\n\t DoubleNode cursor2; \r\n\tfor(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\tif(cursor.getData() < value){\r\n\t\t\tif(cursor == head){\r\n\t\t\t\thead = head.getLink(); \r\n\t\t\t\tmanyNodes--; \r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcursor2 = curs...
[ "0.682678", "0.6696043", "0.6271088", "0.59530133", "0.5951215", "0.5881194", "0.5860798", "0.5802309", "0.57926005", "0.5750474", "0.5707273", "0.56966996", "0.5682729", "0.56776875", "0.5662403", "0.5599295", "0.55966216", "0.5580369", "0.5576611", "0.55476016", "0.55428034...
0.0
-1
This method clears the collection.
public String clear() { collectionsOlders.clear(); return "Коллекция была очищена"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {collection.clear();}", "public void clear() {\n this.collection.clear();\n }", "public void clear() {\n\t\tcollection.clear();\n\t}", "private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }", "public void supprimerCollection(){\r\...
[ "0.9090764", "0.90159655", "0.8967538", "0.8411607", "0.8270602", "0.77582717", "0.7724705", "0.7692168", "0.76023746", "0.7566448", "0.75379235", "0.7533786", "0.7519974", "0.7497012", "0.7483045", "0.74769574", "0.74642545", "0.74530894", "0.74262124", "0.74134135", "0.7404...
0.7148148
78
The method adds object Olders to the collection.
public String add(Olders o) { try { if(collectionsOlders.add(o)) { collectionsOlders.add(o); return "Обьект "+o.toString() + " был добавлен в коллекцию"; }else { return "Обьект уже существует в коллекции! Попробуйте еще раз"; } }catch(ArrayStoreException e) { return "Обьект данного типа не может быть добавлен в коллекцию"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConcurrentSkipListSet<Olders> getCollectionsOlders(){\n\t\t\treturn this.collectionsOlders;\n\t\t}", "public void addObervor(Obervor obervor) {\n this.obervors.add(obervor);\n }", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n ...
[ "0.5181744", "0.48098823", "0.47110683", "0.46697846", "0.4661638", "0.46503845", "0.4646003", "0.46187267", "0.46187267", "0.46187267", "0.46187267", "0.46187267", "0.46187267", "0.46187267", "0.45956925", "0.4566518", "0.45586395", "0.4552346", "0.45403048", "0.45226136", "...
0.52453035
0
The method adds an item to the collection.
public String add_if_max(Olders olders) { try { CompareOlders comp = new CompareOlders(); Olders olderMax = Collections.max(collectionsOlders); for(Olders op : collectionsOlders) { if (!collectionsOlders.contains(olders)) { if (comp.compare( olders, olderMax) > 0) { InsertInStream insertInStream = (st, element) -> { List<Olders> list = (List<Olders>) st.collect(Collectors.toList()); list.add(element); return list.stream(); }; return "Обьект добавлен в коллекцию"; } else { return "Данный обьект не максимальный!"; } } else { return "Данный обьект уже существует в коллекции! Попробуйте еще раз"; } } }catch(ArrayStoreException e){ return "Обьект данного типа не может быть добавлен в коллекцию"; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(Item item);", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public void addItem(Item item) {\n items.add(item);\n }", "public void addItem(Item item) {\n items.add(item);\n }", "public void add(E item);", "public void add() {\n\t\tcart.add(item.createCopy());\...
[ "0.79089105", "0.7605648", "0.74659336", "0.74659336", "0.74381495", "0.74333984", "0.7426036", "0.7398794", "0.7362598", "0.73325425", "0.72792715", "0.7228107", "0.7228107", "0.7228107", "0.72201467", "0.72035545", "0.7195074", "0.7169914", "0.7164814", "0.71475405", "0.714...
0.0
-1
This method removes the object o of the Olders class.
public String remove(Olders o) { try { collectionsOlders.remove(o); return "Обьект "+o.toString()+ " удален из коллекции"; }catch(IllegalArgumentException e) { return "Вы не можете удалить этот обьект, так как его нету в коллекции!"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "void remover(Object o);", "public void removeByObject()\r\n\t{\n\t}", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "public void eliminar(Object o) {\n\t\t\n\t}", "public String remove_lower(Olders o) {\n\t\t\ttry {\n\t\t\tCo...
[ "0.6115092", "0.60718745", "0.5985489", "0.59122187", "0.58830166", "0.583517", "0.5708892", "0.5706429", "0.5660233", "0.5633091", "0.5617166", "0.5583434", "0.5564461", "0.55590796", "0.5539755", "0.5528124", "0.5497166", "0.5486114", "0.54673666", "0.5464522", "0.5461425",...
0.6670141
0
The method shows the contents of the collection in Json format.
public String show() { String result =""; Gson gson = new Gson(); for(Olders o : collectionsOlders){ result+=gson.toJson(o,Olders.class) + "\n"; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void jsonPresentation () {\n System.out.println ( \"****** Json Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n String jsonData = \"\";\n ObjectMapper mapper = new ObjectMapper();\n bookArrayList = new Request().postRequestBook();\n ...
[ "0.6715088", "0.6473867", "0.62980366", "0.6285598", "0.623295", "0.62322694", "0.62227196", "0.6203467", "0.61809546", "0.61394954", "0.61236703", "0.6102595", "0.60257995", "0.6008723", "0.59841156", "0.5918845", "0.5905999", "0.58861107", "0.5885469", "0.58821416", "0.5879...
0.6959938
0
The method saves the contents of the collection in Json format to the source file.
public String save() { try { File file = new File(CollectionFileScanner.getFileName()); String fileName = CollectionFileScanner.getFileName(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.newDocument(); Element tagCollections = document.createElement("Collections"); document.appendChild(tagCollections); for (Olders e : collectionsOlders) { if (e.getId() != 0) { Element tagOlders = document.createElement("Older"); Element nameOlder = document.createElement("Name"); Element tagID = document.createElement("ID"); Element tagDimension = document.createElement("Dimension"); Text iDText = document.createTextNode(new Long(e.getId()).toString()); tagCollections.appendChild(tagOlders); tagOlders.appendChild(nameOlder); Text nameText = document.createTextNode(e.getName()); nameOlder.appendChild(nameText); tagOlders.appendChild(tagID); tagID.appendChild(iDText); tagOlders.appendChild(tagDimension); } } DOMImplementation impl = document.getImplementation(); DOMImplementationLS implLS = (DOMImplementationLS) impl.getFeature("LS", "3.0"); LSSerializer ser = implLS.createLSSerializer(); ser.getDomConfig().setParameter("format-pretty-print", true); String wellDone = ser.writeToString(document); LSOutput out = implLS.createLSOutput(); out.setEncoding("UTF-8"); try { out.setByteStream(Files.newOutputStream(Paths.get(fileName))); } catch (IOException e1) { return "Файл не найден или не доступен"; } try { ser.write(document, out); } catch (LSException l) { } return "Коллекция успешно была сохранена!"; } catch (ParserConfigurationException e) { return "Ошибка парсинга файла!"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public void SaveJsonCollectionsToFiles(){\n try {\n String formattedDate = FileNameUtils.DATE_FORMAT.format(new Date());\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n writer.writeValue(new File(FileNameUtils.GetValues...
[ "0.6944278", "0.6384814", "0.6368301", "0.6281858", "0.62381893", "0.6196555", "0.6112556", "0.6098584", "0.60936844", "0.59247416", "0.58254653", "0.5745746", "0.57227284", "0.56960285", "0.5627313", "0.5591882", "0.5580221", "0.55800384", "0.5571776", "0.55611783", "0.55418...
0.5375246
35
constructor to initialize instance variables
public Country (String instanceName, int numYears) { name = instanceName; indicators = new Indicator[numYears]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public void init() {\n \n }", "@Override public void init()\n\t\t{\n\t\t}", "protected void initVars() {}", "public void init(){}", "public void init() {\n\t\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n ...
[ "0.72721326", "0.72707176", "0.7219765", "0.7187439", "0.7184507", "0.716253", "0.7156581", "0.7156581", "0.7156581", "0.7156581", "0.71518695", "0.7136957", "0.7089401", "0.70873487", "0.70837617", "0.70837617", "0.7082188", "0.7082188", "0.7082188", "0.7080803", "0.7080803"...
0.0
-1
constructor to initialize instance variable name and used to search for name of a country within data structure
public Country (String instanceName) { name = instanceName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getCountryName(String name)\r\n {\r\n }", "public Country(String countryName) {\n\t\tthis.countryName = countryName.toLowerCase();\n\t}", "public Country findByName(String name);", "public Country(String aName, int anArea)\n {\n name = aName;\n area = anArea;\n }", "p...
[ "0.6931845", "0.68279546", "0.6783453", "0.67728287", "0.67653435", "0.65980387", "0.6574838", "0.65684575", "0.65471625", "0.6445908", "0.64364034", "0.6410936", "0.63805526", "0.6326067", "0.6204443", "0.61903", "0.61536354", "0.6114526", "0.6051023", "0.6034311", "0.602325...
0.8100031
0
method to compare input name with name of this instance
public boolean equals(String instanceName) { if (name.equals(instanceName)) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isNameEquals(String name) {\n\n return (_name.equalsIgnoreCase(name));//Checks not case sensitive\n }", "public InputValidator validateName_v() {\r\n \t\treturn new InputValidator(new InputValidator.CustomValidator() {\r\n \t\t\t@Override\r\n \t\t\tpublic boolean validate(String original...
[ "0.7018795", "0.6743532", "0.66712403", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", "0.6632469", ...
0.6132564
40
to provide name of country instance
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Country (String instanceName)\n {\n name = instanceName;\n }", "public String getCountryName();", "java.lang.String getCountryName();", "private String getCountryName(String name)\r\n {\r\n }", "public void setCountryName(String value);", "public String getCountryName() {\n ...
[ "0.836401", "0.8029397", "0.7992695", "0.7860172", "0.7787897", "0.7406127", "0.7406127", "0.7406127", "0.7237498", "0.7237498", "0.7093579", "0.7009305", "0.6983481", "0.6956361", "0.6940159", "0.6940159", "0.6934829", "0.68881935", "0.6879332", "0.6879332", "0.68773335", ...
0.0
-1
to provide start year
public int getStartYear() { return indicators[0].getYear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getStartingYear()\n {\n return 2013;\n }", "public int getStartYear() {\n\t\treturn startYear;\n\t}", "public void setStartYear(java.math.BigInteger startYear) {\r\n this.startYear = startYear;\r\n }", "public void setStartYear(int startYear) {\n\t\tthis.startYear = startYea...
[ "0.83661723", "0.80049855", "0.7804199", "0.7789958", "0.77354985", "0.7689526", "0.764646", "0.76356536", "0.76296693", "0.7424612", "0.7370728", "0.7362722", "0.73206675", "0.7226042", "0.71994126", "0.7192879", "0.71638304", "0.71638304", "0.71452636", "0.71400404", "0.713...
0.73115396
13
to provide end year
public int getEndYear() { return indicators[indicators.length - 1].getYear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getEndingYear()\n {\n return -1;\n }", "public int getEndYear() {\n\t\treturn endYear;\n\t}", "public void setEndYear(int endYear) {\n\t\tthis.endYear = endYear;\n\t}", "java.lang.String getEndDateYYYY();", "public int getEndYear()\n\t{\n\t\treturn this.mEndYear;\n\t}", "int getYe...
[ "0.8123323", "0.7801096", "0.7728911", "0.7635788", "0.7544332", "0.73219", "0.72035354", "0.70105237", "0.70038766", "0.6992049", "0.69864655", "0.6949823", "0.69143873", "0.6898079", "0.68658495", "0.6848166", "0.6836384", "0.6836384", "0.6798881", "0.67814076", "0.6748104"...
0.7228951
6
returns indicator data of year provided
public Indicator getIndicatorForYear(int requestedYear) { int incrementYear; if (indicators[0] == null) { return null; } incrementYear = indicators[0].getYear(); for (int i = 0; i < indicators.length; i++) { if (incrementYear == requestedYear) { return indicators[i]; } incrementYear++; } throw new IllegalArgumentException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getStartYear()\n {\n return indicators[0].getYear();\n }", "public void setIndicatorForYear(int requestedYear, Indicator data)\n {\n int incrementYear;\n if (indicators[0] == null)\n {\n indicators[0] = data;\n return;\n }\n incr...
[ "0.708732", "0.6625903", "0.6586793", "0.63512206", "0.63512206", "0.621033", "0.6180642", "0.6169806", "0.6151593", "0.6151593", "0.6127384", "0.61246884", "0.61185765", "0.6108366", "0.6108366", "0.6108366", "0.61062956", "0.6103676", "0.6095263", "0.6086556", "0.60822517",...
0.70368534
1
sets the indicator data for a certain year
public void setIndicatorForYear(int requestedYear, Indicator data) { int incrementYear; if (indicators[0] == null) { indicators[0] = data; return; } incrementYear = indicators[0].getYear(); for (int i = 0; i < indicators.length; i++) { if (incrementYear == requestedYear) { indicators[i] = data; return; } incrementYear++; } throw new IllegalArgumentException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setYear (int yr) {\n year = yr;\n }", "public void setYear(int value) {\r\n this.year = value;\r\n }", "public void setYear(int _year) { year = _year; }", "public void setYear(int value) {\n\tthis.year = value;\n }", "public void setYear(int year)\n {\n this....
[ "0.7397704", "0.7304984", "0.7280137", "0.725404", "0.7164229", "0.71215105", "0.70875126", "0.70541024", "0.70541024", "0.7048159", "0.70415264", "0.7035016", "0.7035016", "0.7035016", "0.7030247", "0.6970144", "0.69099754", "0.68982434", "0.6879006", "0.6879006", "0.6847351...
0.79042166
0
provides indicator data for provided range of years
public Indicator[] getIndicatorForPeriod(int start, int end) { int index = 0; int validStart = indicators[0].getYear(); int validEnd = indicators[indicators.length - 1].getYear(); int oldStart = start, oldEnd = end; int startIndex = start - validStart; int counter = 0; if (start > end || (start < validStart && end < validStart) || (start > validEnd && end > validEnd)) { throw new IllegalArgumentException("Invalid request of start and end year " + start + ", " + end + ". Valid period for " + name + " is " + validStart + " to " + validEnd); } boolean changed = false; if (start < indicators[0].getYear()) { changed = true; start = indicators[0].getYear(); } if (end > indicators[indicators.length - 1].getYear()) { changed = true; end = indicators[indicators.length - 1].getYear(); } if (changed) { System.out.println("Invalid request of start and end year " + oldStart + "," + oldEnd + ". Using valid subperiod for " + name + " is " + start + " to " + end); } int numberOfYears = (end - start)+1; Indicator[] outputArray = new Indicator[numberOfYears]; for (int i = startIndex; i < numberOfYears; i++) { outputArray[counter] = indicators[i]; counter++; } return outputArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeYears() {\n int j, k;\n WaterPurityReport earliest = _purityReportData.get(1);\n WaterPurityReport latest = _purityReportData.get(_purityReportData.getCount());\n if (earliest != null) {\n// j = earliest.getDate().toInstant().atZone(ZoneId.of(\"EST\")).t...
[ "0.6628993", "0.6601052", "0.6425879", "0.6190341", "0.6098337", "0.607026", "0.60306656", "0.594778", "0.59477216", "0.5920202", "0.5914929", "0.58360493", "0.58360493", "0.58203375", "0.58203375", "0.58203375", "0.57438475", "0.5697196", "0.56766206", "0.5670033", "0.566896...
0.6336689
3
provides string object that represents the indicator data of a country instance
public String toString() { String output = getName(); for(int i = 0; i < indicators.length; i++) { output += " " + getIndicatorForYear(indicators[i].getYear()); } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getData() {\n\t\treturn countryName + \" (\" + countryID + \")\";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.country;\n\t}", "java.lang.String getCountry();", "java.lang.String getCountry();", "public String getCountryName();", "@Override\n public String toString()...
[ "0.69164157", "0.6811415", "0.65719336", "0.65719336", "0.65685415", "0.65237606", "0.6286691", "0.6228357", "0.61726445", "0.61260444", "0.61214536", "0.6087218", "0.60818017", "0.60818017", "0.6080926", "0.60753566", "0.6034502", "0.60341257", "0.6006296", "0.6006296", "0.6...
0.5920709
30
Method allowing to capture a set of exception and apply on it further actions.
@ExceptionHandler(value= {FunctionalException.class}) public ResponseEntity<Object> handleFunctionalException(FunctionalException functionalException, WebRequest webRequest){ return handleExceptionInternal(functionalException, functionalException.getMessage(), new HttpHeaders(), functionalException.getStatus(), webRequest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "public void setExceptionHandlers(Catch[] exceptions);", "public Catch[] exceptionHandlers();", "void dealException(List<E> elements, Exception e);", "@AfterThrowing(pointcut = \"selectAll()\", throwing = \"ex\")\n public void A...
[ "0.6642243", "0.65527034", "0.62074167", "0.59525454", "0.5876796", "0.5876584", "0.5868999", "0.58483416", "0.58261997", "0.582522", "0.5756291", "0.57174134", "0.5666956", "0.5663519", "0.56629145", "0.56503516", "0.56453985", "0.564144", "0.5603285", "0.5600502", "0.557815...
0.0
-1
default constructor contains a reference to an account array with the size of 10. The data stored in those accounts is extracted from a external file.
public Bank() throws Exception { Scanner fileScan = new Scanner(new File("C:\\Users\\jason\\workspace\\proj1fa14\\bankdata.txt")); accounts = new Account[10]; numAccounts = 0; Customer customer; Account account; for(int i = 0; i<9; i++) { String first = fileScan.next(); //System.out.println(first); String last = fileScan.next(); //System.out.println(last); int age = fileScan.nextInt(); String pN = fileScan.next(); int ba = fileScan.nextInt(); int ch = fileScan.nextInt(); String accNum = fileScan.next(); customer = new Customer(first,last,age,pN); account = new Account(customer,ba,ch, accNum); accounts[i] = account; numAccounts++; } fileScan.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BankDataBase()\n {\n accounts = new Account[ 2 ];\n accounts[ 0 ] = new Account( 12345, 54321, 1000.0, 1200.0 );\n accounts[ 1 ] = new Account( 98765, 56789, 200.0, 200.0 );\n }", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public Bank(Strin...
[ "0.7150024", "0.7044202", "0.68494534", "0.68399954", "0.62288564", "0.61590415", "0.6156647", "0.61162657", "0.60789496", "0.60621846", "0.6044696", "0.60430866", "0.6015611", "0.59591943", "0.5951191", "0.5946489", "0.59460557", "0.5919899", "0.5917536", "0.5912011", "0.590...
0.7083147
1
deposit method to make a deposit. First it uses a for loop to find the account information to match it with the account passed through the parameters. After looping through each account it jumps into an if/else statement. If all the accounts have been checked and the counter is less than the size of the array that means the account has been found and the deposit can be made. The method will then return true signifying that this transaction has been processed. If no account was found then false is returned.
public boolean deposit(String customerAcc, int amount) { int counter = 0; for(int i = 0; i<numAccounts; i++) { if(!accounts[counter].getAccountNum().equals(customerAcc)) counter++; else i=numAccounts; } if(counter < numAccounts) { accounts[counter].deposit(amount); return true; } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeDposit(String accountName, Transaction deposit){\n for (int i=0; i<=accounts.size();i++)\n {\n if (accounts.get(i).name.equals(accountName))\n {\n// found = true;\n this.accounts.get(i).makeTransaction(deposit);\n retu...
[ "0.74774927", "0.66498595", "0.66337556", "0.65444386", "0.6470229", "0.64445716", "0.63905656", "0.6379679", "0.6290843", "0.62828827", "0.61411536", "0.61215806", "0.60864353", "0.5987848", "0.5972034", "0.59088796", "0.58919924", "0.5881762", "0.58366334", "0.5835902", "0....
0.67249167
1
withdrawal method to make a withdrawal. First it uses a for loop to find the account information to match it with the account passed through the parameters. After looping through each account it jumps into an if/else statement. If all the accounts have been checked and the counter is less than the size of the array that means the account has been found also if the amount that the user wants to withdraw is less than or equal to the amount exist. The withdrawal can be made after these two conditions are met. The method will then return true signifying that this transaction has been processed. If no account was found then false is returned.
public boolean withdrawal(String customerAcc, double amount) { int counter = 0; int dollars = (int) amount; double chan = amount - dollars; int change = (int) (chan * 100); for(int i = 0; i<numAccounts; i++) { if(!accounts[counter].getAccountNum().equals(customerAcc)) counter++; else i = numAccounts; } if(counter < numAccounts && accounts[counter].withdrawal(dollars, change) == true) { accounts[counter].withdrawal(dollars, change); return true; } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean withdraw(WithdrawBean wb, double amount) throws WalletException {\n\t\tboolean isValid = true;\r\n\t\tfor (CustomerBean cb : customerList) {\r\n\t\t\tif(cb.getPhoneNum()==wb.getPhoneNum()) {\r\n\t\t\t\tif(wb.getBalance()>amount) {\r\n\t\t\t\twb.setBalance(wb.getBalance()-amount);\r\n\...
[ "0.70052844", "0.68372136", "0.6643294", "0.65508527", "0.6549379", "0.6496374", "0.64907604", "0.6477615", "0.6453838", "0.63942754", "0.63812226", "0.6310436", "0.62777054", "0.62771964", "0.62529445", "0.62340015", "0.6222847", "0.620234", "0.6139651", "0.61334926", "0.610...
0.6619745
3
balance method to find an accounts balance. A for loop is used to find the account in the array. similar to the deposit and withdraw methods if the number the loop returns is greater than the amount of accounts than that account doesn't exist.
public double balance(String customerAcc) { int counter = 0; for(int i = 0; i<numAccounts; i++) { if(!accounts[counter].getAccountNum().equals(customerAcc)) counter++; else i=numAccounts; } if(counter < numAccounts) return accounts[counter].getBalance(); else return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Account[] search(int findBalance){\n //will find the size of the account array, then create\n //the according account array size\n int sizeAcc = 0;\n for(int i = 0; i < currAccounts; i++){\n if(bankAccounts[i].getBal() == findBalance){\n sizeAcc++;\n }\n }\n Account[] foun...
[ "0.68495214", "0.6743234", "0.6554521", "0.63348055", "0.6296108", "0.6227433", "0.6218613", "0.61510944", "0.61510944", "0.6122362", "0.61123997", "0.60933495", "0.6092585", "0.60733515", "0.60589665", "0.6057594", "0.6048483", "0.6035269", "0.6032635", "0.5978542", "0.59776...
0.5584662
74
toString Returns a string representing the current state of the accounts.
public String toString() { String str = new String(); for(int i = 0; i<numAccounts; i++) str = str + accounts[i].toString() + "\n"; return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return \"Account \" + name + \" has $\" + balance + \"and is \" + getState()\n + \"\\n\";\n }", "public String toString() {\r\n\t\tDecimalFormat f = new DecimalFormat(\"#0.00\");\r\n\t\treturn \"Account Number: \" + this.getAccountNumber() + \" balance in you...
[ "0.83350235", "0.7712922", "0.76380044", "0.75386226", "0.7517005", "0.7462135", "0.7458103", "0.7418817", "0.73550826", "0.73306817", "0.7299122", "0.729756", "0.72054183", "0.72026986", "0.71572745", "0.7111583", "0.70830166", "0.70630074", "0.70516497", "0.7048438", "0.702...
0.78870034
1
No args constructor for use in serialization
public GetAllCarsDTO() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MyEncodeableWithoutPublicNoArgConstructor() {}", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "defaultConstructor(){}", "public Data() {}", "private SerializerFactory() {\n ...
[ "0.74630904", "0.7387007", "0.7210724", "0.7029566", "0.7018587", "0.6977819", "0.69339114", "0.6881743", "0.6739828", "0.6727297", "0.6717886", "0.67169136", "0.669586", "0.669586", "0.66750634", "0.66246814", "0.6604095", "0.6532946", "0.65235436", "0.6500072", "0.6466648",...
0.0
-1
add a new cost to inventory table in database
public void addCostItem(CostItem item) throws CostManagerException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}", "public void add_cost(float cost){\n costs[next_index] = cost;\n next_index++;\n }", "org.hl7.fhir.Quantity addNewValueQuantity();", "void setCost(double cost);", "public void setCost(BigDecimal cost) {\r\n this.cost = cost;\r\...
[ "0.72857153", "0.6493323", "0.6282621", "0.62426347", "0.6215346", "0.62021816", "0.6194137", "0.6190827", "0.61590225", "0.6133886", "0.6128803", "0.61125517", "0.6098048", "0.60730433", "0.6042592", "0.60303754", "0.6024696", "0.602377", "0.6009501", "0.600568", "0.5988941"...
0.6800999
1
delete a cost from inventory table in database
public void deleteCostItem(CostItem item) throws CostManagerException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "public void delete() throws SQLException {\n Statement stmt...
[ "0.61766213", "0.6038389", "0.6020617", "0.59736115", "0.5972766", "0.59638137", "0.58885175", "0.5881897", "0.58665204", "0.58521783", "0.58308035", "0.5804168", "0.5800024", "0.5799225", "0.5783818", "0.5765485", "0.57586384", "0.57508785", "0.57472384", "0.57234246", "0.57...
0.6745641
0
add a new cost to categories table in database
public void addNewCategory(Category category) throws CostManagerException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}", "void add(ProductCategory category);", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "void addCatFood(Long catId, Long foodId);", ...
[ "0.6997776", "0.6271895", "0.62463665", "0.6245066", "0.6162912", "0.612887", "0.6075551", "0.6068857", "0.60685813", "0.60348105", "0.6020638", "0.5963119", "0.5960486", "0.593907", "0.5892873", "0.58236635", "0.57756233", "0.5767687", "0.5765497", "0.57574135", "0.57558054"...
0.7008385
0
get report from all the costs between specific dates
public CostItem[] getCostReport(String start, String end) throws CostManagerException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public DebitReport getReport(Range<Date> range) {\n\n return DebitReport.builder()\n .debits(\n debitRepository.findByDateBetween(\n range.lowerEndpoint(),\n range.upperEndpoint())\n ...
[ "0.6254417", "0.6158104", "0.60875314", "0.60829705", "0.6004186", "0.59687626", "0.59624726", "0.5954253", "0.5943189", "0.5928798", "0.58402324", "0.58230346", "0.5812468", "0.5796425", "0.5770678", "0.57706547", "0.5764662", "0.56943125", "0.5671496", "0.5659503", "0.56483...
0.6513491
0
get pie chartr from all the costs between specific dates
public JFreeChart getPieChart(String start, String end) throws CostManagerException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PieData generateDataPie() {\n\n ArrayList<PieEntry> entries = new ArrayList<>();\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n TransactionBeans transactionBeans = transactionDB.getTransactionRecordsYe...
[ "0.6476468", "0.61474895", "0.58800983", "0.5623533", "0.55355924", "0.5446782", "0.543313", "0.5274502", "0.52743334", "0.52297586", "0.5206821", "0.5204443", "0.51616055", "0.51389635", "0.5127673", "0.5115942", "0.511252", "0.5104993", "0.5102672", "0.50310194", "0.5026350...
0.6635982
0
Created by nrege on 1/19/2017.
public interface IndexedFieldSetMapper<T> { T mapFieldSet(ExecutionContext executionContext, FieldSet fieldSet, int index) throws BindException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Ov...
[ "0.5971491", "0.5904511", "0.579008", "0.57878923", "0.5740541", "0.5691763", "0.5691763", "0.56567556", "0.56004685", "0.55940366", "0.5583387", "0.5582732", "0.5575755", "0.5549966", "0.5547015", "0.5526758", "0.5511679", "0.55102545", "0.55016565", "0.54882216", "0.5487185...
0.0
-1
Override method, that visit this object;
@Override public void accept(EquipmentVisitor equipmentVisitor) { equipmentVisitor.visitHDD(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}", "@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "@Override\n\tpublic v...
[ "0.72525454", "0.71887237", "0.71751136", "0.7086563", "0.7020021", "0.7005332", "0.6938834", "0.6912737", "0.69047576", "0.6874501", "0.68475", "0.68113554", "0.6807825", "0.6754479", "0.67404854", "0.67386794", "0.67386794", "0.6731076", "0.6699462", "0.66358745", "0.660242...
0.0
-1
DateTime lastDepartureDate = formatter.parseDateTime("1292014 12:00");
@Test public void testUploadWithMandatoryColumns() throws IOException { InputStream is = getClass().getResourceAsStream("/schedule-upload/scheduleUploadMandatoryColumns.xls"); ScheduleResponse response = parser.parse(is); ScheduleResponse expected = new ScheduleResponse(); expected.setVoyages(new Voyage[3]); expected.getVoyages()[0] = new Voyage(null, "Nuuk", null, null, formatter.parseDateTime("19-09-2014 13:00").toDate(), formatter.parseDateTime("19-09-2014 17:00").toDate(), null, null, null); expected.getVoyages()[1] = new Voyage(null, "Upernavik", null, null, formatter.parseDateTime("20-09-2014 09:00").toDate(), formatter.parseDateTime("20-09-2014 13:00").toDate(), null, null, null); expected.getVoyages()[2] = new Voyage(null, "Ilulissat", null, null, formatter.parseDateTime("20-09-2014 15:00").toDate(), formatter.parseDateTime("20-09-2014 18:00").toDate(), null, null, null); expected.setErrors(new String[0]); ReflectionAssert.assertReflectionEquals(expected, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DateTimeField parse(Chronology chronology);", "DateTime extractDeadline() {\r\n int indexOfBy = Arrays.asList(lowerParams).lastIndexOf(\"by\");\r\n if (indexOfBy < 0) {\r\n return null;\r\n } else {\r\n paramsByIndex = indexOfBy;\r\n }\r\n // get the rest of the params after \"by\"\r\n ...
[ "0.6040371", "0.60302764", "0.59067035", "0.57643247", "0.5729863", "0.56525904", "0.5613065", "0.55970067", "0.5502287", "0.5500664", "0.5475975", "0.54755956", "0.5439056", "0.5439056", "0.5420348", "0.5366657", "0.53662294", "0.53246784", "0.5317831", "0.53095216", "0.5302...
0.0
-1
DateTime lastDepartureDate = formatter.parseDateTime("1292014 12:00");
@Test public void testUploadWithAllColumns() throws IOException { InputStream is = getClass().getResourceAsStream("/schedule-upload/scheduleUploadAllColumns.xls"); ScheduleResponse response = parser.parse(is); ScheduleResponse expected = new ScheduleResponse(); expected.setVoyages(new Voyage[3]); expected.getVoyages()[0] = new Voyage("OWDD-2014-32-1", "Nuuk", null, null, formatter.parseDateTime("19-09-2014 13:00").toDate(), formatter.parseDateTime("19-09-2014 17:00").toDate(), 10 , 10, Boolean.TRUE); expected.getVoyages()[1] = new Voyage("OWDD-2014-32-2", "Upernavik", null, null, formatter.parseDateTime("20-09-2014 09:00").toDate(), formatter.parseDateTime("20-09-2014 13:00").toDate(), 12, 15, Boolean.TRUE); expected.getVoyages()[2] = new Voyage("OWDD-2014-32-3", "Ilulissat", null, null, formatter.parseDateTime("20-09-2014 15:00").toDate(), formatter.parseDateTime("20-09-2014 18:00").toDate(), 12, 12, Boolean.FALSE); expected.setErrors(new String[0]); ReflectionAssert.assertReflectionEquals(expected, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DateTimeField parse(Chronology chronology);", "DateTime extractDeadline() {\r\n int indexOfBy = Arrays.asList(lowerParams).lastIndexOf(\"by\");\r\n if (indexOfBy < 0) {\r\n return null;\r\n } else {\r\n paramsByIndex = indexOfBy;\r\n }\r\n // get the rest of the params after \"by\"\r\n ...
[ "0.6040371", "0.60302764", "0.59067035", "0.57643247", "0.5729863", "0.56525904", "0.5613065", "0.55970067", "0.5502287", "0.5500664", "0.5475975", "0.54755956", "0.5439056", "0.5439056", "0.5420348", "0.5366657", "0.53662294", "0.53246784", "0.5317831", "0.53095216", "0.5302...
0.0
-1
Several of the ice pilots have succeded creating Excel sheets, where date cells seem to be created correctly if opened in Excel or Calculator (Linux), but underneath is a type error, where the column in fact has type text (HSSFCell.CELL_TYPE_STRING) As this problem is hidden to our users, they have no change of solving the problem them selves. Instead we should parse the text value if indeed a valid string.
@Test public void testUploadWithDatesInTextCells() throws IOException { InputStream is = getClass().getResourceAsStream("/schedule-upload/ScheduleWithDatesInTextCells.xls"); ScheduleResponse response = parser.parse(is); ScheduleResponse expected = new ScheduleResponse(); expected.setVoyages(new Voyage[3]); expected.getVoyages()[0] = new Voyage("ID-1", "Akureyri / Iceland", null, null, formatter.parseDateTime("18-07-2016 09:00").toDate(), formatter.parseDateTime("18-07-2016 20:00").toDate(), 0, 600, Boolean.FALSE); expected.getVoyages()[1] = new Voyage("ID-2", "Ammassalik (Tasiilaq) / Greenland", null, null, formatter.parseDateTime("20-07-2016 09:00").toDate(), formatter.parseDateTime("20-07-2016 12:00").toDate(), 0, 600, Boolean.FALSE); expected.getVoyages()[2] = new Voyage("ID-3", "Qeqertsuaq (Godhavn) / Greenland", null, null, formatter.parseDateTime("23-07-2016 17:00").toDate(), formatter.parseDateTime("23-07-2016 21:45").toDate(), 0, 600, Boolean.FALSE); expected.setErrors(new String[0]); ReflectionAssert.assertReflectionEquals(expected, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test47889() {\n XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.openSampleWorkbook(\"47889.xlsx\");\n XSSFSheet sh = wb.getSheetAt(0);\n \n XSSFCell cell;\n \n //try a string cell\n cell = sh.getRow(0).getCell(0);\n assertEquals(XSSFCell.CELL_TYPE_STRIN...
[ "0.6602751", "0.60743403", "0.6001003", "0.59076214", "0.588184", "0.5836533", "0.5831604", "0.58178455", "0.5766693", "0.5673795", "0.5652492", "0.5579867", "0.55537367", "0.5542991", "0.55135995", "0.55085784", "0.54870915", "0.5479414", "0.54702306", "0.54152983", "0.54093...
0.542932
19
~ Constructors Creates a new CloudWatchReporter object.
public CloudWatchReporter(final String awsLogGroupName, final String awsLogStreamName, final String awsLogStreamFlushPeriodInSeconds, String aRegion) { // figure out the flush period int flushPeriod = AWS_LOG_STREAM_FLUSH_PERIOD_IN_SECONDS; if (awsLogStreamFlushPeriodInSeconds != null) { try { flushPeriod = Integer.parseInt(awsLogStreamFlushPeriodInSeconds); } catch (NumberFormatException nfe) { debug("Bad awsLogStreamFlushPeriodInSeconds (" + awsLogStreamFlushPeriodInSeconds + "), defaulting to: " + AWS_LOG_STREAM_FLUSH_PERIOD_IN_SECONDS + "s"); } } else { debug("No awsLogStreamFlushPeriodInSeconds specified, defaulted to " + AWS_LOG_STREAM_FLUSH_PERIOD_IN_SECONDS + "s"); } this.flushPeriodMillis = flushPeriod * 1000; try { this.awsLogsClient = new AWSLogsClient(); // this should pull the credentials automatically from the environment try { this.awsLogsClient.setRegion(Region.getRegion(Regions.fromName(aRegion))); } catch (IllegalArgumentException e) { debug("Invalid region: " + aRegion + " using default eu-central-1"); this.awsLogsClient.setRegion(Region.getRegion(Regions.EU_CENTRAL_1)); } // set the group name this.logGroupName = awsLogGroupName; String logStreamNamePrefix = awsLogStreamName; if (logStreamNamePrefix == null) { logStreamNamePrefix = ENV_LOG_STREAM_NAME; } if (logStreamNamePrefix == null) { logStreamNamePrefix = AWS_INSTANCE_ID; } String finalLogStreamName; finalLogStreamName = logStreamNamePrefix; this.sequenceTokenCache = createLogGroupAndLogStreamIfNeeded(this.logGroupName, finalLogStreamName); this.logStreamName = finalLogStreamName; } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CNWatch() {\n }", "public StopWatch() {\n }", "CloudwatchFactory getCloudwatchFactory();", "private TestReporter() {\n\n }", "public CodeCoverageStatsRecord() {\n super(CodeCoverageStats.CODE_COVERAGE_STATS);\n }", "public MonitoredData() {}", "public desmoj.core.report.Rep...
[ "0.60516274", "0.592689", "0.5814622", "0.58024585", "0.5763053", "0.56932646", "0.5547993", "0.5537257", "0.55254984", "0.54744875", "0.5459632", "0.5382134", "0.52953196", "0.5284045", "0.5239782", "0.5198606", "0.51202464", "0.51182425", "0.51023185", "0.5100195", "0.51001...
0.47565246
69
~ Methods private final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy.MM.dd HH.mm.ss"); // aws doesn't allow ":" in stream name DOCUMENT ME
public void append(final String aEvent, long aTimestamp) { final InputLogEvent awsLogEvent = new InputLogEvent(); final String message = aEvent; awsLogEvent.setTimestamp(Long.valueOf(aTimestamp)); awsLogEvent.setMessage(message); if (!this.queue.offer(awsLogEvent) && !this.queueFull) { debug("Log queue is full!"); this.queueFull = true; } else if (this.queueFull) { this.queueFull = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void constructVssDateTimeFormat() {\n vssDateTimeFormat = new SimpleDateFormat(\"'Date: '\" + this.dateFormat + \" 'Time: 'hh:mma\"); \n }", "public void testElementWithFormat() {\n ElementWithFormatTestDTO obj = new ElementWithFormatTestDTO();\n obj.element = getDateFo...
[ "0.6011273", "0.5737101", "0.5636515", "0.56238997", "0.56075543", "0.55612344", "0.5533208", "0.5473506", "0.5425895", "0.5418007", "0.5393636", "0.535063", "0.5349941", "0.5342406", "0.5337486", "0.5326998", "0.53064185", "0.5305042", "0.5299635", "0.52949554", "0.52667785"...
0.0
-1
Create log group ans log stream if needed.
private String createLogGroupAndLogStreamIfNeeded(String logGroupName, String logStreamName) { debug("Using log group " + logGroupName); // final DescribeLogGroupsResult describeLogGroupsResult = this.awsLogsClient.describeLogGroups(new DescribeLogGroupsRequest().withLogGroupNamePrefix(logGroupName)); // System.out.println("Log bucket result: " + describeLogGroupsResult); // boolean createLogGroup = true; // if (describeLogGroupsResult != null && describeLogGroupsResult.getLogGroups() != null && !describeLogGroupsResult.getLogGroups().isEmpty()) // { // for (final LogGroup lg : describeLogGroupsResult.getLogGroups()) // { // if (logGroupName.equals(lg.getLogGroupName())) // { // createLogGroup = false; // break; // } // } // } // if (createLogGroup) // { // debug("Creating logGroup: " + logGroupName); // final CreateLogGroupRequest createLogGroupRequest = new CreateLogGroupRequest(logGroupName); // this.awsLogsClient.createLogGroup(createLogGroupRequest); // } String logSequenceToken = null; boolean createLogStream = true; final DescribeLogStreamsRequest describeLogStreamsRequest = new DescribeLogStreamsRequest(logGroupName).withLogStreamNamePrefix(logStreamName); final DescribeLogStreamsResult describeLogStreamsResult = this.awsLogsClient.describeLogStreams(describeLogStreamsRequest); debug("Starting search fo existing buckets..."); if ((describeLogStreamsResult != null) && (describeLogStreamsResult.getLogStreams() != null) && !describeLogStreamsResult.getLogStreams().isEmpty()) { for (final LogStream ls : describeLogStreamsResult.getLogStreams()) { debug("Found a bucket named " + ls.getLogStreamName()); if (logStreamName.equals(ls.getLogStreamName())) { createLogStream = false; logSequenceToken = ls.getUploadSequenceToken(); } } } if (createLogStream) { debug("Creating logStream: " + logStreamName); final CreateLogStreamRequest createLogStreamRequest = new CreateLogStreamRequest(logGroupName, logStreamName); this.awsLogsClient.createLogStream(createLogStreamRequest); } return logSequenceToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLogGroup(String value)\n {\n logGroup = value;\n }", "public void setLogGroup(int aNewGroup) {\n mLogGroup = aNewGroup;\n }", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n Sam...
[ "0.59958416", "0.5728981", "0.5589963", "0.55111194", "0.5504164", "0.54448926", "0.5413164", "0.54028285", "0.53442097", "0.53301966", "0.5326306", "0.52850324", "0.52492076", "0.5221184", "0.5215673", "0.51801676", "0.5166347", "0.5160111", "0.51554346", "0.51523495", "0.51...
0.67585474
0
send the order to the warehouse
public Boolean submit(Warehouse warehouse) { Boolean submitted = orderPublisher.submit(this, warehouse); if (submitted) { //set the submission date this.submissionDate = new Date(); //email the customer that the order has been submitted Boolean emailed = emailGateway.sendOrderSubmittedEmail(this); return emailed; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SendOrder(Order order){\r\n\r\n try {\r\n String orderString=Order.packageOrder(order);\r\n out.writeChars(orderString);\r\n out.flush();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n ...
[ "0.74799865", "0.7015821", "0.6822156", "0.679575", "0.678404", "0.6761192", "0.67544407", "0.6705372", "0.6563938", "0.6555344", "0.6339284", "0.6330287", "0.6240329", "0.6238732", "0.6233921", "0.62238663", "0.6196877", "0.6180532", "0.61551803", "0.6149547", "0.61441475", ...
0.59109443
37
Abrir otra app con datos en el intent.
public static boolean openApp(Context context, String packageName, Bundle bundle) { PackageManager manager = context.getPackageManager(); try { Intent i = manager.getLaunchIntentForPackage(packageName); i.putExtra("data", bundle); if (i == null) { throw new PackageManager.NameNotFoundException(); } i.addCategory(Intent.CATEGORY_LAUNCHER); context.startActivity(i); return true; } catch (PackageManager.NameNotFoundException e) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, st...
[ "0.67115444", "0.66033787", "0.6582649", "0.632279", "0.61384416", "0.60883677", "0.6083152", "0.60774684", "0.6059522", "0.60469043", "0.60249245", "0.6003863", "0.59907544", "0.598345", "0.59642863", "0.5963141", "0.59452814", "0.5929889", "0.591646", "0.5903582", "0.590083...
0.0
-1
Created by Martha on 6/25/2017.
public interface EmailService { void sendCandidateAccountCreation(String email, String name, String key); void sendCandidatePasswordChange(String email, String name, String key); void sendCompanyAccountCreation(String email, String name, String key); void sendCompanyPasswordChange(String email, String name, String key); void sendCandidateInvitation(String email, String name, String body); void sendUserPasswordChange(String email, String name, String body); void sendUserReceiveMessage(String email, String name, String body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.59651095", "0.5859731", "0.5809349", "0.57277524", "0.5674327", "0.5646058", "0.5646058", "0.56206405", "0.5568351", "0.5561225", "0.5553079", "0.5552715", "0.55419254", "0.55257344", "0.55248827", "0.5512885", "0.55069804", "0.5502485", "0.5501325", "0.54992986", "0.54986...
0.0
-1
initialize parameters reading config file
public static void main(String[] args) { initialize(""); //making instance from file name String str = "A-n32-k5.vrp"; String fileName = "input//" + str; Instance problem = new VRPInstance(fileName); System.out.println(problem.comment); //solve problem //Solver solver2 = new SimpleGreedySolver(problem); //Solver solver2 = new NearestNeighborGreedySolver(problem); //Solver solver = new ClarkeWrightGreedySolver(problem); //Solver solver = new EHSBASolver(problem); //solver2.solve(); //solver2.printResult(); //solver = new ClarkeWrightGreedySolver(problem); Solver solver3 = new EHSBASolver(problem); solver3.solve(); solver3.printResult(); System.out.println("finished."); /*File folder = new File("input"); File[] listOfFiles = folder.listFiles(); for(int i = 0; i < listOfFiles.length; i++) { String str = listOfFiles[i].getName(); System.out.println(str); if(listOfFiles[i].isFile() && str.substring(0, 1).equalsIgnoreCase("A")) fileName = "input\\" + str; else continue; //fileName = "input\\" + fileName; Instance problem = new VRPInstance(fileName); System.out.println(problem.comment); //solve problem //Solver solver = new SimpleGreedySolver(problem); //Solver solver = new NearestNeighborGreedySolver(problem); Solver solver = new ClarkeWrightGreedySolver(problem); //Solver solver = new EHSBASolver(problem); solver.solve(); solver.printResult(); }*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC,...
[ "0.71110314", "0.70063335", "0.6963304", "0.68443686", "0.68247974", "0.68192315", "0.6818271", "0.68139726", "0.6808734", "0.6793535", "0.6767728", "0.6755678", "0.67409796", "0.67363346", "0.670764", "0.6680393", "0.6667034", "0.66562384", "0.66532826", "0.6640501", "0.6632...
0.0
-1
Initialize parameters to set to the desired values in Parameters class; reading from config file.
private static void initialize(String configFile) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Configuracion(Parametros params) {\n this.params = params;\n\n if (params.properties != null) {\n try {\n properties.load(new FileInputStream(params.properties));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n ...
[ "0.6898436", "0.6673863", "0.6527026", "0.6519079", "0.6444402", "0.6422135", "0.6401408", "0.63873595", "0.63872445", "0.6355471", "0.6312504", "0.6271458", "0.6265938", "0.6261335", "0.6165645", "0.61576265", "0.6148206", "0.61283946", "0.6124958", "0.6124201", "0.61133605"...
0.0
-1
/ renamed from: a
static C7394e m22228a(C7444g gVar) { return gVar.mo20291o(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
static C7454a m22230a(C7444g gVar, C6037a aVar, C5969i iVar, C5983k kVar, Context context, boolean z, C7391d dVar, C5920a aVar2, C3572r0 r0Var, C5948c cVar, C2366i0 i0Var, C7383c cVar2) { C7437a aVar3 = new C7437a(aVar, iVar, kVar, context, z, gVar, dVar, aVar2, r0Var, cVar, i0Var, cVar2); C7444g gVar2 = gVar; return (C7454a) C5856o0.m18893a((Fragment) gVar, C7454a.class, (Provider<T>) aVar3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
static /* synthetic */ C7454a m22229a(C6037a aVar, C5969i iVar, C5983k kVar, Context context, boolean z, C7444g gVar, C7391d dVar, C5920a aVar2, C3572r0 r0Var, C5948c cVar, C2366i0 i0Var, C7383c cVar2) { C7454a aVar3 = new C7454a(aVar, null, iVar, kVar, context.getResources().getInteger(C7311e.series_detail_season_count), z, gVar.mo20291o(), dVar, aVar2, r0Var, cVar, i0Var, cVar2); return aVar3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
static C7396f m22227a() { return C7444g.f16350k0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ JADX WARNING: Code restructure failed: missing block: B:16:0x0039, code lost: if (r1.zzaSR != null) goto L_0x003b; / JADX WARNING: Code restructure failed: missing block: B:43:0x0093, code lost: if (r1.zzaSR != null) goto L_0x003b; / Code decompiled incorrectly, please refer to instructions dump.
public static com.google.android.gms.dynamite.DynamiteModule zza(android.content.Context r9, com.google.android.gms.dynamite.DynamiteModule.zzd r10, java.lang.String r11) throws com.google.android.gms.dynamite.DynamiteModule.zzc { /* java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r0 = zzaSJ java.lang.Object r0 = r0.get() com.google.android.gms.dynamite.DynamiteModule$zza r0 = (com.google.android.gms.dynamite.DynamiteModule.zza) r0 com.google.android.gms.dynamite.DynamiteModule$zza r1 = new com.google.android.gms.dynamite.DynamiteModule$zza r2 = 0 r1.<init>(r2) java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r3 = zzaSJ r3.set(r1) com.google.android.gms.dynamite.zzh r3 = zzaSK // Catch:{ all -> 0x00e3 } com.google.android.gms.dynamite.zzi r3 = r10.zza(r9, r11, r3) // Catch:{ all -> 0x00e3 } int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 } if (r4 == 0) goto L_0x00b9 int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 } r5 = -1 if (r4 != r5) goto L_0x0026 int r4 = r3.zzaSU // Catch:{ all -> 0x00e3 } if (r4 == 0) goto L_0x00b9 L_0x0026: int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 } r6 = 1 if (r4 != r6) goto L_0x002f int r4 = r3.zzaSV // Catch:{ all -> 0x00e3 } if (r4 == 0) goto L_0x00b9 L_0x002f: int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 } if (r4 != r5) goto L_0x0046 com.google.android.gms.dynamite.DynamiteModule r9 = zzG(r9, r11) // Catch:{ all -> 0x00e3 } android.database.Cursor r10 = r1.zzaSR if (r10 == 0) goto L_0x0040 L_0x003b: android.database.Cursor r10 = r1.zzaSR r10.close() L_0x0040: java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ r10.set(r0) return r9 L_0x0046: int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 } if (r4 != r6) goto L_0x009e int r4 = r3.zzaSV // Catch:{ zzc -> 0x005f } com.google.android.gms.dynamite.DynamiteModule r4 = zza((android.content.Context) r9, (java.lang.String) r11, (int) r4) // Catch:{ zzc -> 0x005f } android.database.Cursor r9 = r1.zzaSR if (r9 == 0) goto L_0x0059 android.database.Cursor r9 = r1.zzaSR r9.close() L_0x0059: java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r9 = zzaSJ r9.set(r0) return r4 L_0x005f: r4 = move-exception java.lang.String r6 = "Failed to load remote module: " java.lang.String r7 = r4.getMessage() // Catch:{ all -> 0x00e3 } java.lang.String r7 = java.lang.String.valueOf(r7) // Catch:{ all -> 0x00e3 } int r8 = r7.length() // Catch:{ all -> 0x00e3 } if (r8 == 0) goto L_0x0074 r6.concat(r7) // Catch:{ all -> 0x00e3 } goto L_0x0079 L_0x0074: java.lang.String r7 = new java.lang.String // Catch:{ all -> 0x00e3 } r7.<init>(r6) // Catch:{ all -> 0x00e3 } L_0x0079: int r6 = r3.zzaSU // Catch:{ all -> 0x00e3 } if (r6 == 0) goto L_0x0096 com.google.android.gms.dynamite.DynamiteModule$zzb r6 = new com.google.android.gms.dynamite.DynamiteModule$zzb // Catch:{ all -> 0x00e3 } int r3 = r3.zzaSU // Catch:{ all -> 0x00e3 } r7 = 0 r6.<init>(r3, r7) // Catch:{ all -> 0x00e3 } com.google.android.gms.dynamite.zzi r10 = r10.zza(r9, r11, r6) // Catch:{ all -> 0x00e3 } int r10 = r10.zzaSW // Catch:{ all -> 0x00e3 } if (r10 != r5) goto L_0x0096 com.google.android.gms.dynamite.DynamiteModule r9 = zzG(r9, r11) // Catch:{ all -> 0x00e3 } android.database.Cursor r10 = r1.zzaSR if (r10 == 0) goto L_0x0040 goto L_0x003b L_0x0096: com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 } java.lang.String r10 = "Remote load failed. No local fallback found." r9.<init>(r10, r4, r2) // Catch:{ all -> 0x00e3 } throw r9 // Catch:{ all -> 0x00e3 } L_0x009e: com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 } int r10 = r3.zzaSW // Catch:{ all -> 0x00e3 } r11 = 47 java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ all -> 0x00e3 } r3.<init>(r11) // Catch:{ all -> 0x00e3 } java.lang.String r11 = "VersionPolicy returned invalid code:" r3.append(r11) // Catch:{ all -> 0x00e3 } r3.append(r10) // Catch:{ all -> 0x00e3 } java.lang.String r10 = r3.toString() // Catch:{ all -> 0x00e3 } r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r2) // Catch:{ all -> 0x00e3 } throw r9 // Catch:{ all -> 0x00e3 } L_0x00b9: com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 } int r10 = r3.zzaSU // Catch:{ all -> 0x00e3 } int r11 = r3.zzaSV // Catch:{ all -> 0x00e3 } r3 = 91 java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x00e3 } r4.<init>(r3) // Catch:{ all -> 0x00e3 } java.lang.String r3 = "No acceptable module found. Local version is " r4.append(r3) // Catch:{ all -> 0x00e3 } r4.append(r10) // Catch:{ all -> 0x00e3 } java.lang.String r10 = " and remote version is " r4.append(r10) // Catch:{ all -> 0x00e3 } r4.append(r11) // Catch:{ all -> 0x00e3 } java.lang.String r10 = "." r4.append(r10) // Catch:{ all -> 0x00e3 } java.lang.String r10 = r4.toString() // Catch:{ all -> 0x00e3 } r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r2) // Catch:{ all -> 0x00e3 } throw r9 // Catch:{ all -> 0x00e3 } L_0x00e3: r9 = move-exception android.database.Cursor r10 = r1.zzaSR if (r10 == 0) goto L_0x00ed android.database.Cursor r10 = r1.zzaSR r10.close() L_0x00ed: java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ r10.set(r0) throw r9 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(android.content.Context, com.google.android.gms.dynamite.DynamiteModule$zzd, java.lang.String):com.google.android.gms.dynamite.DynamiteModule"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\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.Pr...
[ "0.7096767", "0.7037124", "0.7011917", "0.6987205", "0.69557846", "0.6896859", "0.6885528", "0.6863833", "0.6862216", "0.6828553", "0.675689", "0.6644179", "0.66283184", "0.6616744", "0.65838486", "0.65702164", "0.6567411", "0.6563649", "0.6560806", "0.65525377", "0.6538793",...
0.0
-1
/ JADX WARNING: type inference failed for: r1v5, types: [android.os.IInterface] / JADX WARNING: Multivariable type inference failed / JADX WARNING: Unknown variable types count: 1 / Code decompiled incorrectly, please refer to instructions dump.
private static void zza(java.lang.ClassLoader r3) throws com.google.android.gms.dynamite.DynamiteModule.zzc { /* r0 = 0 java.lang.String r1 = "com.google.android.gms.dynamiteloader.DynamiteLoaderV2" java.lang.Class r3 = r3.loadClass(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } r1 = 0 java.lang.Class[] r2 = new java.lang.Class[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } java.lang.reflect.Constructor r3 = r3.getConstructor(r2) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } java.lang.Object[] r1 = new java.lang.Object[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } java.lang.Object r3 = r3.newInstance(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } android.os.IBinder r3 = (android.os.IBinder) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } if (r3 != 0) goto L_0x001a r3 = r0 goto L_0x002e L_0x001a: java.lang.String r1 = "com.google.android.gms.dynamite.IDynamiteLoaderV2" android.os.IInterface r1 = r3.queryLocalInterface(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } boolean r2 = r1 instanceof com.google.android.gms.dynamite.zzl // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } if (r2 == 0) goto L_0x0028 r3 = r1 com.google.android.gms.dynamite.zzl r3 = (com.google.android.gms.dynamite.zzl) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } goto L_0x002e L_0x0028: com.google.android.gms.dynamite.zzm r1 = new com.google.android.gms.dynamite.zzm // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } r1.<init>(r3) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } r3 = r1 L_0x002e: zzaSH = r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 } return L_0x0031: r3 = move-exception com.google.android.gms.dynamite.DynamiteModule$zzc r1 = new com.google.android.gms.dynamite.DynamiteModule$zzc java.lang.String r2 = "Failed to instantiate dynamite loader" r1.<init>(r2, r3, r0) throw r1 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(java.lang.ClassLoader):void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t ...
[ "0.63380766", "0.6327651", "0.62900233", "0.62669355", "0.61728764", "0.6140238", "0.61334133", "0.6045443", "0.60448253", "0.6037819", "0.60198146", "0.5984887", "0.5975202", "0.59432876", "0.5927687", "0.5925809", "0.59170455", "0.5902479", "0.5889505", "0.5868267", "0.5856...
0.0
-1
/ JADX WARNING: type inference failed for: r1v7, types: [android.os.IInterface] / JADX WARNING: Code restructure failed: missing block: B:32:0x0068, code lost: return null; / JADX WARNING: Multivariable type inference failed / JADX WARNING: Unknown variable types count: 1 / Code decompiled incorrectly, please refer to instructions dump.
private static com.google.android.gms.dynamite.zzj zzaT(android.content.Context r4) { /* java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r0 = com.google.android.gms.dynamite.DynamiteModule.class monitor-enter(r0) com.google.android.gms.dynamite.zzj r1 = zzaSG // Catch:{ all -> 0x0069 } if (r1 == 0) goto L_0x000b com.google.android.gms.dynamite.zzj r4 = zzaSG // Catch:{ all -> 0x0069 } monitor-exit(r0) // Catch:{ all -> 0x0069 } return r4 L_0x000b: com.google.android.gms.common.zze r1 = com.google.android.gms.common.zze.zzoW() // Catch:{ all -> 0x0069 } int r1 = r1.isGooglePlayServicesAvailable(r4) // Catch:{ all -> 0x0069 } r2 = 0 if (r1 == 0) goto L_0x0018 monitor-exit(r0) // Catch:{ all -> 0x0069 } return r2 L_0x0018: java.lang.String r1 = "com.google.android.gms" r3 = 3 android.content.Context r4 = r4.createPackageContext(r1, r3) // Catch:{ Exception -> 0x004d } java.lang.ClassLoader r4 = r4.getClassLoader() // Catch:{ Exception -> 0x004d } java.lang.String r1 = "com.google.android.gms.chimera.container.DynamiteLoaderImpl" java.lang.Class r4 = r4.loadClass(r1) // Catch:{ Exception -> 0x004d } java.lang.Object r4 = r4.newInstance() // Catch:{ Exception -> 0x004d } android.os.IBinder r4 = (android.os.IBinder) r4 // Catch:{ Exception -> 0x004d } if (r4 != 0) goto L_0x0033 r4 = r2 goto L_0x0047 L_0x0033: java.lang.String r1 = "com.google.android.gms.dynamite.IDynamiteLoader" android.os.IInterface r1 = r4.queryLocalInterface(r1) // Catch:{ Exception -> 0x004d } boolean r3 = r1 instanceof com.google.android.gms.dynamite.zzj // Catch:{ Exception -> 0x004d } if (r3 == 0) goto L_0x0041 r4 = r1 com.google.android.gms.dynamite.zzj r4 = (com.google.android.gms.dynamite.zzj) r4 // Catch:{ Exception -> 0x004d } goto L_0x0047 L_0x0041: com.google.android.gms.dynamite.zzk r1 = new com.google.android.gms.dynamite.zzk // Catch:{ Exception -> 0x004d } r1.<init>(r4) // Catch:{ Exception -> 0x004d } r4 = r1 L_0x0047: if (r4 == 0) goto L_0x0067 zzaSG = r4 // Catch:{ Exception -> 0x004d } monitor-exit(r0) // Catch:{ all -> 0x0069 } return r4 L_0x004d: r4 = move-exception java.lang.String r1 = "Failed to load IDynamiteLoader from GmsCore: " java.lang.String r4 = r4.getMessage() // Catch:{ all -> 0x0069 } java.lang.String r4 = java.lang.String.valueOf(r4) // Catch:{ all -> 0x0069 } int r3 = r4.length() // Catch:{ all -> 0x0069 } if (r3 == 0) goto L_0x0062 r1.concat(r4) // Catch:{ all -> 0x0069 } goto L_0x0067 L_0x0062: java.lang.String r4 = new java.lang.String // Catch:{ all -> 0x0069 } r4.<init>(r1) // Catch:{ all -> 0x0069 } L_0x0067: monitor-exit(r0) // Catch:{ all -> 0x0069 } return r2 L_0x0069: r4 = move-exception monitor-exit(r0) // Catch:{ all -> 0x0069 } throw r4 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzaT(android.content.Context):com.google.android.gms.dynamite.zzj"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t ...
[ "0.67394036", "0.6596067", "0.6486268", "0.6446733", "0.64196676", "0.64105755", "0.63959324", "0.6342099", "0.6339922", "0.63258773", "0.63065904", "0.6303009", "0.6301236", "0.62998813", "0.6274413", "0.6258078", "0.62411594", "0.6237227", "0.6213849", "0.62098885", "0.6208...
0.0
-1
/ JADX WARNING: Removed duplicated region for block: B:53:0x00af / Code decompiled incorrectly, please refer to instructions dump.
private static int zzd(android.content.Context r8, java.lang.String r9, boolean r10) throws com.google.android.gms.dynamite.DynamiteModule.zzc { /* r0 = 0 if (r10 == 0) goto L_0x000d java.lang.String r10 = "api_force_staging" goto L_0x000f L_0x0006: r8 = move-exception goto L_0x00ad L_0x0009: r8 = move-exception r9 = r0 goto L_0x009e L_0x000d: java.lang.String r10 = "api" L_0x000f: java.lang.String r1 = "content://com.google.android.gms.chimera/" java.lang.String r1 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 } java.lang.String r2 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 } int r2 = r2.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 } int r2 = r2 + 1 java.lang.String r3 = java.lang.String.valueOf(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 } int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 } int r2 = r2 + r3 java.lang.String r3 = java.lang.String.valueOf(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 } int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 } int r2 = r2 + r3 java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0009, all -> 0x0006 } r3.<init>(r2) // Catch:{ Exception -> 0x0009, all -> 0x0006 } r3.append(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 } r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 } java.lang.String r10 = "/" r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 } r3.append(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 } java.lang.String r9 = r3.toString() // Catch:{ Exception -> 0x0009, all -> 0x0006 } android.net.Uri r2 = android.net.Uri.parse(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 } android.content.ContentResolver r1 = r8.getContentResolver() // Catch:{ Exception -> 0x0009, all -> 0x0006 } r3 = 0 r4 = 0 r5 = 0 r6 = 0 android.database.Cursor r8 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x0009, all -> 0x0006 } if (r8 == 0) goto L_0x0096 boolean r9 = r8.moveToFirst() // Catch:{ Exception -> 0x0091, all -> 0x008d } if (r9 == 0) goto L_0x0096 r9 = 0 int r9 = r8.getInt(r9) // Catch:{ Exception -> 0x0091, all -> 0x008d } if (r9 <= 0) goto L_0x0087 java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r10 = com.google.android.gms.dynamite.DynamiteModule.class monitor-enter(r10) // Catch:{ Exception -> 0x0091, all -> 0x008d } r1 = 2 java.lang.String r1 = r8.getString(r1) // Catch:{ all -> 0x0084 } zzaSI = r1 // Catch:{ all -> 0x0084 } monitor-exit(r10) // Catch:{ all -> 0x0084 } java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ // Catch:{ Exception -> 0x0091, all -> 0x008d } java.lang.Object r10 = r10.get() // Catch:{ Exception -> 0x0091, all -> 0x008d } com.google.android.gms.dynamite.DynamiteModule$zza r10 = (com.google.android.gms.dynamite.DynamiteModule.zza) r10 // Catch:{ Exception -> 0x0091, all -> 0x008d } if (r10 == 0) goto L_0x0087 android.database.Cursor r1 = r10.zzaSR // Catch:{ Exception -> 0x0091, all -> 0x008d } if (r1 != 0) goto L_0x0087 r10.zzaSR = r8 // Catch:{ Exception -> 0x0091, all -> 0x008d } r8 = r0 goto L_0x0087 L_0x0084: r9 = move-exception monitor-exit(r10) // Catch:{ all -> 0x0084 } throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d } L_0x0087: if (r8 == 0) goto L_0x008c r8.close() L_0x008c: return r9 L_0x008d: r9 = move-exception r0 = r8 r8 = r9 goto L_0x00ad L_0x0091: r9 = move-exception r7 = r9 r9 = r8 r8 = r7 goto L_0x009e L_0x0096: com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ Exception -> 0x0091, all -> 0x008d } java.lang.String r10 = "Failed to connect to dynamite module ContentResolver." r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r0) // Catch:{ Exception -> 0x0091, all -> 0x008d } throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d } L_0x009e: boolean r10 = r8 instanceof com.google.android.gms.dynamite.DynamiteModule.zzc // Catch:{ all -> 0x00ab } if (r10 == 0) goto L_0x00a3 throw r8 // Catch:{ all -> 0x00ab } L_0x00a3: com.google.android.gms.dynamite.DynamiteModule$zzc r10 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00ab } java.lang.String r1 = "V2 version check failed" r10.<init>(r1, r8, r0) // Catch:{ all -> 0x00ab } throw r10 // Catch:{ all -> 0x00ab } L_0x00ab: r8 = move-exception r0 = r9 L_0x00ad: if (r0 == 0) goto L_0x00b2 r0.close() L_0x00b2: throw r8 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzd(android.content.Context, java.lang.String, boolean):int"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final void mo56977b() {\n /*\n r2 = this...
[ "0.619839", "0.6146344", "0.61069727", "0.60994464", "0.60511124", "0.60330486", "0.60211", "0.5978441", "0.5973174", "0.5967982", "0.5933832", "0.5933832", "0.59174764", "0.5899384", "0.5892856", "0.58745635", "0.58707803", "0.586697", "0.5843443", "0.5827612", "0.5823767", ...
0.0
-1
Returned once a user has successfully linked their Item.
@javax.annotation.Nullable @ApiModelProperty(value = "Returned once a user has successfully linked their Item.") public String getPublicToken() { return publicToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSuccess() {\n int tabIndex = (user.equals(currentUser)) ? LovesPagerAdapter.SENT_TAB_INDEX : LovesPagerAdapter.RECEIVED_TAB_INDEX;\n UserLoveFragment fragment = (UserLoveFragment) fragmentAdapter.getRegisteredFragment(tabInd...
[ "0.5703072", "0.56153446", "0.5512217", "0.5290727", "0.5282215", "0.52616274", "0.52518344", "0.5199142", "0.5184137", "0.51825094", "0.5181652", "0.5146734", "0.51189834", "0.5117699", "0.5106357", "0.50930303", "0.5070987", "0.5070417", "0.50473565", "0.50376934", "0.50354...
0.48692307
39
The Plaid Item ID. The &x60;item_id&x60; is always unique; linking the same account at the same institution twice will result in two Items with different &x60;item_id&x60; values. Like all Plaid identifiers, the &x60;item_id&x60; is casesensitive.
@javax.annotation.Nullable @ApiModelProperty(value = "The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.") public String getItemId() { return itemId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getItemID(String item) {\n\t\titem = item.replace(\" \", \"%20\");\n\t\t//log(\"Item: \" + item);\n \ttry {\n \tString webPage = \"http://\" + serverIP + \"/getid.php?i=\" + item;\n \t//log(\"Webpage: '\" +webPage+\"'\");\n \tURL url = new URL(webPage);\n \tURLConnection urlConnection = ...
[ "0.6274183", "0.6270262", "0.6244309", "0.6092891", "0.6087248", "0.60835034", "0.607643", "0.60741234", "0.603789", "0.5983049", "0.5930596", "0.5896437", "0.58897465", "0.58897465", "0.5889002", "0.5863819", "0.5850084", "0.5799807", "0.57780826", "0.57507503", "0.56987125"...
0.82533526
0
The Plaid Institution ID associated with the Item.
@javax.annotation.Nullable @ApiModelProperty(value = "The Plaid Institution ID associated with the Item.") public String getInstitutionId() { return institutionId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId(...
[ "0.6739469", "0.6724393", "0.6485976", "0.64754117", "0.62343854", "0.62216485", "0.6178049", "0.61431074", "0.5908656", "0.5803099", "0.57601035", "0.5759267", "0.56925863", "0.5684011", "0.5660441", "0.5652732", "0.5636413", "0.56181175", "0.5601533", "0.5560604", "0.555529...
0.71113425
0