query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
inserting element into the list at the back
void append(int data) { if (length() > 0) { // make new back node with parameter data Node newBack = new Node(data); // set previous and next node for new back newBack.previous = back; newBack.next = null; // set next for original back to new back back.next = newBack; // set back to be new bac...
[ "public void insertAtBack(Object insertItem);", "public void insertBack(Object elem) {\n if (tail == null) { // list is empty\n insertFront(elem);\n return;\n }\n Node newNode = new Node(elem, null);\n tail.next = newNode;\n tail = tail.next();\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets MainFrame's playList variable
public void setPlayListView(JList<String> playListView){ this.playListView = playListView; }
[ "public PlayerFrame() {\n \n initComponents();\n playListlistmodel = new DefaultListModel();\n playListManager=new PlayListManager();\n basePlayer=new BasicPlayerTest();\n jListPlayList.setCellRenderer(new SelectedListItemStyle());\n }", "private void initPlayerList() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (NotSupportedException ex) { Logger.getLogger(create.class.getName()).log(Level.SEVERE,...
[ "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}", "protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse respo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates or updates a load balancer.
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<LoadBalancer> beginCreateOrUpdateWithoutPolling( String resourceGroupName, String loadBalancerName, LoadBalancer parameters, Context context) { return this .serviceClient .beginCreateOrUpdateWithoutPollingAsync(resourceG...
[ "protected abstract void doCreateLoadBalancer(LoadBalancer lb, LoadBalancerHost lbHost) throws PluginException;", "private void createLoadBalancer(\n final IVpc vpc,\n final Optional<String> sslCertificateArn) {\n\n loadbalancerSecurityGroup = SecurityGroup.Builder.create(this, \"loadbalancerSecurityGro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Represent the vector as a quat
public final Quatd addScaledVectorLocal( Vec3d v, double scale ) { Quatd q = new Quatd(v.x * scale, v.y * scale, v.z * scale, 0); q.multLocal(this); x = x + q.x * 0.5f; y = y + q.y * 0.5f; z = z + q.z * 0.5f; w = w + q.w * 0.5f; return this; }
[ "void set(Quaternion quat);", "public static Matrix quatInv(Matrix q) {\n\t\tMatrix inv = q.copy().times(-1);\n\t\tinv.set(0, 0, -inv.get(0, 0));\n\t\tinv = inv.times(1 / Math.pow(inv.normF(), 2));\n\t\treturn inv;\n\t}", "public Quaternion( Vec4 vec ) {\n\t\tthis(vec.x,vec.y, vec.z, vec.w);\n\t}", "public fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Confirms parcels arrival to a station
public boolean confirmArrival(int stationID, Long id) { try { Session session = HibernateUtil.getSessionFactory().openSession(); session.beginTransaction(); SQLQuery query = session .createSQLQuery("update Parcel set currentStation=:station, train=null where parcelID=:id"); query.setLong("id", id); ...
[ "public synchronized void goToArrivalTerminal() {\n assert(this.getStat() == BusDriverStates.PARKING_AT_THE_DEPARTURE_TERMINAL);\n this.setStat(BusDriverStates.DRIVING_BACKWARD);\n repos.updateBDriverStat(BusDriverStates.DRIVING_BACKWARD);\n\n // simulates the bus going from the departur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select for auxiliar field
public static String selectDef7928_1(ConnectionProvider connectionProvider, String CreatedByR) throws ServletException { String strSql = ""; strSql = strSql + " SELECT ( COALESCE(TO_CHAR(table1.Name), '') ) as CreatedBy FROM AD_User table1 WHERE table1.isActive='Y' AND table1.AD_User_ID = ? "...
[ "Select selectFieldInstance();", "Select getSelect();", "SelectType getSelect();", "protected Object selectValue()\n{ return null; }", "@Override\r\n\tpublic LaVO selectLa(String la_num) throws SQLException {\n\t\treturn null;\r\n\t}", "public StringSelection getFieldSelection();", "public ValueReadQuer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field otherResultSetBehaviour is set (has been assigned a value) and false otherwise
public boolean isSetOtherResultSetBehaviour() { return EncodingUtils.testBit(__isset_bitfield, __OTHERRESULTSETBEHAVIOUR_ISSET_ID); }
[ "public Boolean getHasResultSet() {\n return this.hasResultSet;\n }", "public boolean canCloseResultSet() {\n\t\treturn true;\n\t}", "public boolean hasQueryResultSet() {\n return result.hasQueryResultSet();\n }", "public boolean getCacheResultSetMetadata() {\n/* 2006 */ return this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a String read from the buffer
public java.lang.String readString() { int i = currentOffset; while(buffer[currentOffset++] != 10); return new String(buffer, i, currentOffset - i - 1); }
[ "public String readString()\n {\n if (bufferIndex == bufferLast) return null;\n return new String(readBytes());\n }", "public String readstring()\r\n {\r\n String finalStr = \"\";\r\n int strSize = readshort();\r\n for(int i=0; i < strSize-1; i++)\r\n {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use ApplicationAttemptReportProto.newBuilder() to construct.
private ApplicationAttemptReportProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private CMsgClientUpdateAppJobReport(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ReportResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private tDr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows or hides the view responsible for notifying loading.
public void changeLoadingVisibility(int visibility) { changeViewVisibility(findViewById(R.id.loading_view), visibility); }
[ "private void showLoadingView() {\n\n }", "public void showLoading() {\n if (mGenericLoading != null) mGenericLoading.setVisibility(View.VISIBLE);\n }", "private void showLoading() {\n /* Then, hide the medication data */\n mMedicationRecyclerView.setVisibility(View.INVISIBLE);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates hashes of all of the passwords
private void generateHashes(Set<String> passwords) { parallelFor(passwords).exec(new ObjectLoop<String>() { @Override public void run(String s) throws Exception { MessageDigest md = null; try { md = MessageDigest.getInstance("SHA-256");...
[ "public String generatePasswordHash() {\n return BCrypt.hashpw(this.password, BCrypt.gensalt());\n }", "public String generatePassword() {\n\n PasswordCriteria criteria = new PasswordCriteria();\n\n return generatePassword(criteria).toString();\n\n }", "public String generatePassword(String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.object_detection.protos.GridAnchorGenerator grid_anchor_generator = 1;
private com.google.protobuf.SingleFieldBuilderV3< object_detection.protos.GridAnchorGeneratorOuterClass.GridAnchorGenerator, object_detection.protos.GridAnchorGeneratorOuterClass.GridAnchorGenerator.Builder, object_detection.protos.GridAnchorGeneratorOuterClass.GridAnchorGeneratorOrBuilder> getGridA...
[ "org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAnchorBOrBuilder();", "@Override\n public void init()\n {\n telemetry.addData(\"Beacon_stuff\", beacon.getAnalysis().getButtonString());\n visionBot = new VisionRobot(hardwareMap, this);\n ///VisionOpMode initialization\n //enable ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) { String value=adapter.getItem(position); Toast.makeText(getActivity(),value,Toast.LENGTH_SHORT).show(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column YZ.Email3
public void setEmail3(String email3) { this.email3 = email3 == null ? null : email3.trim(); }
[ "public void setEmail(String email)\r\n/* 470: */ {\r\n/* 471:484 */ this.email = email;\r\n/* 472: */ }", "public void setEmail(java.lang.String email)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the points that fall inside the specified region
List<P2d> getPointsInRegion(Region r);
[ "boolean allPointsInRegion(List<Vector3f> points);", "public boolean isInRegion(double x0, double y0);", "public Iterable<Point2D> range(final RectHV rect) {\n if (rect == null)\n throw new NullPointerException();\n\n\n final List<Point2D> inside = new ArrayList<>();\n\n for (fin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Ball[] balls=new Ball[3]; for(int i=0;i<balls.length;i++){ balls[i]=new Ball(INIT_LOCATION[i], INIT_LOCATION[i]); balls[i].setDirectionStrategy(new HorizonalMoveStrategy()); balls[i].setDrawStrategy(new RedDrawStrategy()); balls[i].start(); } new ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Can be overridden to customize the creation of the final UserDetailsObject which is returned by the loadUserByUsername method. protected String
@Override protected UserDetails createUserDetails(String username, UserDetails userFromUserQuery, List<GrantedAuthority> combinedAuthorities) { /* * - Dejar que lo cargue spring una vez cargado, * - Consultar su area adscrita. * - Crear una instancia de UsuarioSACE con la area adscrita */...
[ "default String getInfoUsedByAuthentication(UserModel user) {\n return user.getUsername();\n }", "@Override\n public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {\n return new StockPriceCustomUser(username, \"password\", new ArrayList<GrantedAuthority>(),\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the major version.
public int getMajor() { return major; }
[ "public static String getMajorVersion() {\r\n\t\treturn getMajorVersion(getSoftwareVersion());\r\n\t}", "public int getFileVersionMajor() {\n return VERSION;\n }", "public int getMajorVersion()\n {\n return imajor;\n }", "public int getMajorVersion() {\n return majorVersion_;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method from ServletContextListener Called when a Web application is about to be shut down (i.e. on Web server shutdown or when a context is removed or reloaded). Request handling will be stopped before this method is called. For example, the database connections can be closed here.
@Override public void contextDestroyed(ServletContextEvent evt) { // TODO add your code here e.g.: /* Connection con = (Connection) e.getServletContext().getAttribute("con"); try { con.close(); } catch (SQLException ignored) { } // close connection */ }
[ "public void contextDestroyed(ServletContextEvent sce) {\n// manager.shutdown();\n }", "protected void servletShutdown () {}", "@Override\n public void contextDestroyed(ServletContextEvent servletContextEvent)\n {\n \n }", "public void shutdown() {\n\t\tfor (Thread terminationHook : ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Throws an IllegalArgumentException if the validCondition argument is false.
public static void checkArgument(boolean validCondition, String argName, String message, Object... args) throws IllegalArgumentException { if (!validCondition) { throw new IllegalArgumentException(badArgumentMessage(argName, message, args)); } }
[ "@Test\n void testInvalidCondition() {\n assertThatThrownBy(() -> {\n // AND (op1)\n // --term1 - datetime equals 123456789\n // --term2 - field1 between 1 and 2\n\n final ExpressionOperator.Builder and = ExpressionOperator.builder();\n and.addTerm(St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds a state name given a state reference name
public String getStateName(String stateRef) throws XMLException { NodeList stateDefinitions = getRootElement().getElementsByTagName(DATA_FIELDS.get(4)); for (int i = 0; i < stateDefinitions.getLength(); i++) { String currentStateName = stateDefinitions.item(i).getTextContent(); String ref = getAttribute((Ele...
[ "public State getState(String name){\n\t\tfor(State s : states){\n\t\t\tif(s.getName().equals(name))\n\t\t\t\treturn s;\n\t\t}\n\t\treturn null;\n\t}", "private State getState(String name, int position) {\n\t\tfor (State s : states) {\n\t\t\tif (s.getName().equals(name) && s.getPosition() == position) {\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check initial network state
private void checkConnection() { ConnectivityManager connectivityManager = (ConnectivityManager) mApplication.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); Boolean connected = networkInfo != null && networkInfo.isConnected()...
[ "public void initialCheck()\n {\n LOGGER.debug(\"Initial RDS snapshot status: \" + initialSnapshot.getStatus());\n checkSnapshotId(initialSnapshot);\n checkSnapshotStatus(initialSnapshot);\n }", "public boolean initialConditions() {\n boolean state = false;\n String errorMessage = null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toast.makeText(MainActivity.this, "Song clicked", Toast.LENGTH_SHORT).show();
@Override public void onItemClick(Song song) { startService(song); }
[ "@Override\n public void onClick(View view) {\n Toast.makeText(MainActivity.this,\"点击\",Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View widget) {\n Toast.makeText(MainActivity.this, \"Clicked\", Toast.LENGTH_SHORT).show();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int compareTo(Position o) { return 0; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of mean method, of class Exponential.
@Test public void testMean() { System.out.println("mean"); ContinuousDistribution dist = new Exponential(0.5); assertEquals(2, dist.mean(), 1e-10); dist = new Exponential(2); assertEquals(0.5, dist.mean(), 1e-10); dist = new Exponential(12); assertEquals(0.083...
[ "@Test\n public void testMean() {\n logger.info(\"mean\");\n FlatDataCollection flatDataCollection = generateFlatDataCollection();\n double expResult = 14.595333333333;\n double result = SimpleRandomSampling.mean(flatDataCollection);\n assertEquals(expResult, result, Constants....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of var method, of class ShiftedGeometricDistribution.
@Test public void testVar() { System.out.println("var"); ShiftedGeometricDistribution instance = new ShiftedGeometricDistribution(0.3); instance.rand(); assertEquals(0.7/0.09, instance.var(), 1E-7); }
[ "public abstract double getVariance ();", "@Test\r\n public void testGetVarighet() {\r\n System.out.println(\"getVarighet\");\r\n Game instance = new Game();\r\n int expResult = 0;\r\n int result = instance.getVarighet();\r\n assertEquals(expResult, result);\r\n // TOD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void triggerDeleteProject(Project project) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for ATTRIBUTE3 using the alias name Attribute3
public String getAttribute3() { return (String) getAttributeInternal(ATTRIBUTE3); }
[ "public String getAttribute3_1_1_1_1_1_1() {\n return (String)getAttributeInternal(ATTRIBUTE3_1_1_1_1_1_1);\n }", "public java.lang.String getAttribute3String() {\n return attribute3String;\n }", "String attributeForAlias(String alias);", "public java.lang.String getAttribute3Type() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
pass result code for calling activity (playerlistactivity) to determine if item was edited and update visuals if so
@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); //if ok then edit occured if (resultCode == RESULT_OK) { //fetch updated coursemodel c = ObjectBox.get()...
[ "protected abstract boolean onPlayerEdit(Player player);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n //if edit activity completed ok\n if (resultCode == RESULT_OK && requestCode ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Below code for pending inquiry search
@ResponseBody @RequestMapping(path="/mendingController/pendingOrderSearch",method = RequestMethod.GET) public List<ModelMendingCustom> getPendingMendingOrderSearch(Model model, @RequestParam("buyerId")Long buyerId, @RequestParam("inquiryId")Long inquiryId , @RequestParam("mendedById")Long mende...
[ "public static void searchEnquiry()\r\n\t{\n\t\t\t\t\r\n\t\tSystem.out.println(\"==================================== SEARCH ENQUIRY ====================================\");\r\n\r\n\t\tSystem.out.println(\"ENTER ENQUIRY ID: \");\r\n\t\tint enquiryID=sc.nextInt();\r\n\t\t\r\n\t\tif(String.valueOf(enquiryID).isEmpty(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create data String and handle forbidden characters (| and ;) that would corrupt the persistent file
public void storePersistentData(String unlockedModes, int gameMode) { String dataString = unlockedModes + "|" + nameField.getText().replace("\\|", " ").replace(";", ",") + "|" + gameMode; try { String highscoreStringEncr = AES.encrypt(dataString, secretKey); PrintWriter writer; writer = new PrintWriter...
[ "private static String escapeString(String data) {\n StringBuilder sb = new StringBuilder();\n\n for (int i = 0; i < data.length(); ++i) {\n char c = data.charAt(i);\n switch (c) {\n case 0x00:\n log.warn(\"字符串中发现非法字符 0x00,已经将其删除\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return String.format("Time Series %d\n%s",id,values);
@Override public String toString() { return String.format("Time Series %d", getId()); // return "TimeSeries{" + "id=" + id + ", yValues=" + Arrays.toString(Arrays.copyOfRange(yValues, 0, 3)) + "... }"; }
[ "@Override\n public String toString() {\n return name+\"\\n\"+value[0]+value[0]+\":\"+value[2]+value[3];\n }", "@Override\n public String toString(){\n String gantt = \"|\";\n for(int i = 0; i < this.chart.size(); i++){\n if(i < 10)\n gantt = gantt + \" \" ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the specified element to this heap in the appropriate position according to its key value.
public void addElement(T obj) { HeapNode<T> node = new HeapNode<T>(obj); if (root == null) root=node; else { HeapNode<T> nextParent = getNextParentAdd(); if (nextParent.getLeft() == null) nextParent.setLeft(node); ...
[ "public void adding_the_heap(int element){\r\n if(isFull())\r\n throw new NoSuchElementException(\"Hey! The heap's full. You cannot add the element\");\r\n heapp[heapp_size++] = element;\r\n heapify_up(heapp_size -1);\r\n }", "public void add(T element) throws HeapException;", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for property xVersion.
public void setxVersion(String xVersion) { this.xVersion = xVersion; }
[ "private void setXuperApiVersion(int value) {\n \n xuperApiVersion_ = value;\n }", "public void setXmlVersion(String value) {\n if (needsSyncData()) {\n synchronizeData();\n }\n version = value;\n }", "void setVersion(it.csi.airquality.aqa.x100.VersionDocument.Ver...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_WK_CELL_QOS.S_DRPS
public Integer getsDrps() { return sDrps; }
[ "public double getPSMFDR() {\n return iPSMFDR;\n }", "public double getRMSSD() {\n return rmssd;\n }", "public double getRurDemandValue() {\r\n return rurDemandValue;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getOpenRecoveryResRprtng();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processa uma mensagem de um nodo afirmando ser coordenador e atualiza o coordenador atual
private void processCoordinator(DatagramPacket packet, String message) { int coordinatorId = Integer.parseInt(message.split(";")[1]); if (coordinatorId > this.currentNode.id) { this.coordinator = this.nodes.get(coordinatorId); System.out.println("c " + coordinatorId); } ...
[ "@Override\r\n\t\tpublic void Process() {\n\t\t\tLogicalDateTime d = getCurrentLogicalDate();\r\n\t\t\tLogger.Information(Owner(), \"Process MissionComplete\",\r\n\t\t\t\t\tString.format(Messages.MissionCompleted, getPosition(d)));\r\n\t\t\t// On calcule les coordonnees du point de plongee\r\n\t\t\tmissionCompleted...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register a namespace prefix
private java.lang.String registerPrefix( javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { java.lang.String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefi...
[ "public void addNamespace(String pPrefix) {\n // check if already registered.\n if (!namespaces.containsKey(pPrefix)) {\n LOGGER.debug(\"Add namespace for prefix '{}'\", pPrefix);\n namespaces.put(pPrefix, NAMESPACE_PREFIX + pPrefix);\n }\n }", "private java.lang.String registerPrefix(javax.xm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes the printing of a list of recognizable commands along with their formats.
@Override public void execute(TaskList taskList, DataStorage dataStorage) { Ui.printHelp(); }
[ "public static void showAll()\n {\n for(String command: validCommands) {\n System.out.print(command + \" \");\n }\n System.out.println();\n }", "private void printCommands() {\n SortedSet<String> sortedCommands = new TreeSet<>(commands.keySet());\n for (String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will take below arguments and returns true if got "java.lang.UnsupportedOperationException: Prepared Statements not supported yet" Support for PrepStmt was dropped from 8.x onwards
protected boolean preparedStatementValidation(String emHost, String emPort, String user, String passwd, String sqlQuery) throws SQLException { Connection conn = null; try { Class.forName(driver); final String strUrl = "jdbc:introscope:net//" + user + ":" + passwd + "@" + emHost + ":" + emPort; LOG...
[ "private PreparedStatement PreparedStatement(String sql) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Test(expected = SQLFeatureNotSupportedException.class)\n public void testParamSettingWhenNoParametersI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the player details on player view
public void updatePlayerPanel() { gameController.getMapSubPanelPlayer().repaint(); }
[ "private void fillPlayerView(){\n if(playerPosition != -1) {\n currentPlayer = coach.getPlayers().get(playerPosition);\n playerName.setText(currentPlayer.getName());\n playerSurname.setText(currentPlayer.getSurname());\n playerEmail.setText(currentPlayer.getEmail()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { runRaceBackgroundServices=false; // stop Service AppBackgroundServices.writeToSQLite=runRaceBackgroundServices; switch (item.getItemId()) { case R.id.action_settings: startActivity(new Intent(appCont...
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_counter, container, false); final Button button = (Button)view.findViewById(R.id.button); final EditText ...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Public method that validates a given object and throws exception if validation doesn't pass.
public void validate() { validators.forEach((validator, message) -> { boolean isValid = validator.apply(this); if (!isValid) { throw new InvalidRequestPayloadException(message); } }); }
[ "public synchronized void validate(@NonNull Object object) throws RaveException {\n validate(object, EMPTY_EXCLUSION);\n }", "Object validate();", "void validate() throws IllegalArgumentException;", "@Override\n public void validateObject() throws InvalidObjectException {\n if (this.getId(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the servants divider.
public int getServantsDivider(){ return this.servantsDivider; }
[ "public int getDivider()\n\t{\n\t\treturn m_divider;\n\t}", "public Drawable getDivider() {\n return divider;\n }", "public Divider getDivider()\n {\n // If already set, just return\n if (_divider!=null) return _divider;\n\n // Create and return\n Divider div = new Divider();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
penambahan node dari belakang
public void addLast(Node input) { if (isEmpty()) { head = tail = input; tail.next = head; } else { tail.next = input; input.next = head; tail = input; } size++; }
[ "void setNode(Node node);", "public void setinn(Node node) {\n nodeListe.add(node);\n antpro = antpro + node.hentpros(); //istedenfor aa kalkulere senere hvor mange prossesser som er i en rack, saa regner den det ut her\n antnode++;\n }", "public void prepararNewNode() {\n\n jGraph.clearSelecti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test that askLong method autopopulates dialog with value in .properties file. Also test that subsequent calls to the dialog show the lastused value.
@Test public void testAskLong() throws Exception { createScript(); long chosenLong = ask_TextInput(() -> { return script.askLong("Ask Test", "Enter a long:"); }); // Compare default value to expected properties value assertEquals((long) Math.pow(2, 18), chosenLong); // Now set the long value to a dif...
[ "@Test\n public void testOnRestartButtonLongClicked_showHint() {\n mWindowManager.mShouldShowHint = false;\n mWindowManager.createLayout(true /* show */);\n\n verify(mWindowManager).inflateCompatUILayout();\n verify(mCompatUILayout).setSizeCompatHintVisibility(false /* show */);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a name, start the cluster(s) if they can be autostarted.
CompletableFuture<Void> autostartCluster(String name);
[ "protected Ignite startIgniteCluster(String name) throws Exception {\n IgniteConfiguration cfg = igniteConfiguration(name, false);\n\n return startIgniteCluster(cfg);\n }", "boolean startCluster();", "public static void checkRealClusterName(String name) {\n checkEmpty(name);\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Administrator on 2018/6/10 0010.
public interface DuanContract { interface view extends BaseContract.BaseView{ void publishJoke(BaseBean baseBean); } interface presenter extends BaseContract.BasePersenter<view> { void publishJoke(String uid, String token,String content); } }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n public int utilite() {\n return 0;\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "public void mo5201a() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the next powerSet. Use an index to keep track of what the next powerset is. When the index becomes larger than the length of the set. It resets to 0 and return the first powerset.
public Relation powerSetNext(){ //Computes the powerset using the private method. //Takes the indexed string in the powerset, converts to Relation //and returns it. If it gets to the end of the list it returns the //first relation in the powerset. List<St...
[ "default PowerOutput getPowerOutput(int index) {\n return this.getPowerOutputs().stream().skip(index).findFirst().get();\n }", "com.power.grpc.Power getPower(int index);", "@Override\n public SimTupleset next() {\n if (i < 0) {\n i++;\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ subSet(fromIndex,toIndex): fromIndex is inclusive and toIndex is exclusive The returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
@Test public void subSet() { Set set = new TreeSet(); // Set set1 = set.subSet(0, 1); // ??? TreeSet treeSet = new TreeSet(); Set set2 = treeSet.subSet(0, 1); }
[ "public SortedSet<E> subSet(E fromElement, E toElement);", "AsyncDistributedSortedSet<E> subSet(E fromElement, E toElement);", "public SortedSet<E> subSet(int s, E from, E to) {\n\t\treturn this.map.get(s).subSet(from, to);\n\t}", "private SortedSet<E> subSetWithBoundOption(E fromElement, E toElement,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of AppBean
public AppBean() { }
[ "public AppInstance() {\n this(\"App_Instance\", null);\n }", "public static ApplicationBo create(ApplicationBo app) {\n final String[] COLUMNS = new String[] { \"aid\", \"acategory_id\", \"aposition\", \"atitle\",\n \"aicon\", \"asummary\" };\n final Object[] VALUES = new O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set fab as pressed when call is on hold
private void applyFabState(FloatingActionButton button, boolean enabled) { ColorStateList colorStateList = enabled ? ColorStateList.valueOf(ContextCompat.getColor(this, R.color.colorPrimaryDark)) : ColorStateList.valueOf(ContextCompat.getColor(this, ...
[ "public void fabClicked() {\n }", "@OnClick(R.id.fab_modify_time)\n public void onClickFab() {\n if(!isFABOpen){\n showFABMenu();\n }\n else {\n closeFABMenu();\n }\n }", "void downPressed();", "public void setPressed(boolean b);", "public void togg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Update argument type and name
public void onFragmentInteraction(Uri uri);
[ "private void parseArgument() {\n }", "@Override\n public void parseArguments(String[] args)\n {\n \n }", "@Test\r\n\tpublic void capturingArguments() {\r\n\t}", "public T userArgument();", "java.lang.String getArgu1();", "public Object_ArgumentTest(String name) {\n\t\tsuper(name);\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[Referrers] comment only =================================================================================== Accessor ========
public String[] getGroups() { checkSpecifiedProperty("groups"); return groups; }
[ "public String getRef()\n {\n \treturn _ref;\n }", "public Reference getRefid()\n {\n return reference;\n }", "@Override\r\n\tpublic int getReference() {\n\t\treturn 0;\r\n\t}", "public String getRefNumber()\n {\n return refNumber;\n }", "public String reference() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an aliased type
public IType createType(String name, IType alias, boolean reference, int pointer, int dimension) { return new IType(name, alias, reference, pointer, dimension); }
[ "public final TypeAliasDescriptor createTypeAlias(Name name) {\n byte[] bArr = (byte[]) this.typeAliasBytes.get(name);\n if (bArr != null) {\n TypeAlias parseDelimitedFrom = TypeAlias.parseDelimitedFrom(new ByteArrayInputStream(bArr), this.f29578c.getComponents().getExtensionRegistryLite())...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void deleteRetard(Integer id) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for item code
public void setCode(long code) { this.code = code; }
[ "public Builder setItemCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n itemCode_ = value;\n onChanged();\n return this;\n }", "public void setItemCode(java.lang.String param){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void setINSDSeq_createDate(java.lang.String param){ localINSDSeq_createDateTracker = param != null; this.localINSDSeq_createDate=param; ...
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns if these two specific rooms/rectangles are connected to each other.
public boolean pointsConnected(Point p, Point p2) { return paths.connected(convert(p.x(), p.y()), convert(p2.x(), p2.y())); }
[ "public boolean intersect(Room room1, Room room2){\n\t\tif (room1.getLeft() <= room2.getRight() &&\n\t\t\troom1.getRight() >= room2.getLeft() &&\n\t\t\troom1.getTop() <= room2.getBottom() &&\n\t\t\troom1.getBottom() >= room2.getTop()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If we are retrieving all the jobs, the task description just needs to start with `rollup_`
@Override public boolean match(Task task) { if (id.equals(Metadata.ALL)) { return task.getDescription().startsWith(RollupField.NAME + "_"); } // Otherwise find the task by ID return task.getDescription().equals(RollupField.NAME + "_" + id); ...
[ "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Task name = \" + sDescription + \" , employee = \" + employee + \" , deadline = \" + deadLine + \", Done = \" + isDone;\r\n\t}", "public String toString() {\n return \"[\" + taskType + \"][\" + super.getTaskStatus() + \"] \" + super.getTaskDescript...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toast.makeText(getActivity(), "on Move", Toast.LENGTH_SHORT).show();
@Override public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) { return false; }
[ "private void showToast(String msg)\n\t{\n\t\tToast.makeText(getActivity(), msg, Toast.LENGTH_SHORT).show();\n\t}", "@Override\n public void onClick(View view) {\n Toast.makeText(getActivity(), \"Ini event positif\", Toast.LENGTH_SHORT).show();\n }", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sustituye el elemento de la posicion especificada en la lista por el elemento especificado
public E set(int index, E e) { if (index < 0 || index > size - 1) { return null; } E temp = get(index); Node<E> current = head; for (int i = 0; i < index; i++) { current = current.next; } current.element = e; return temp; }
[ "public Object posterior(Object elemento) throws ListaException;", "private Object buscarSubObject(String nombreIdentificar, List<Object> lista, Object identificador){\r\n for (Object obj: lista) {\r\n Field atributo = obtenerFieldModel(obj.getClass(), nombreIdentificar);\r\n Object va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of properties for IPhpunitConfigurationMojo methods for IPhpunitConfigurationMojo Which postfix will be used to find testcases. The default is "Test" and all php files, ending with Test will be treated as test case files. E.g. Logic1Test.php will be used.
@Override public String getTestPostfix() { return testPostfix; }
[ "@Test\n public void testAddTestSources() {\n final List<String> parameters = Lists.newArrayList(\"abc\");\n\n final TestSources testSources = new TestSources();\n testSources.getIncludes().add(\"**/include/*One.java\");\n testSources.getIncludes().add(\"**/include/two/**.java\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stop recording ink profiling information during calls to Continue on Story. To generate a report from the profiler, call
public void endProfiling() { profiler = null; }
[ "@Override\n protected void onCurrentProfileChanged(Profile profile, Profile profile2) {\n profileTracker.stopTracking();\n }", "public void stopProfiler() {\n\n\t\tif (isRunning()) {\n\n\t\t\tString scriptProfiling = \"[\";\n\t\t\tfor(int i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resolves actual types for generic exceptions of executables exception types.
List<T> getExceptionTypes(TypeProvider<?> typeProvider, Executable executable);
[ "public boa.types.Ast.Type getExceptionTypes(int index) {\n return exceptionTypes_.get(index);\n }", "public static Type checkCatchClauseTypes(Type[] caughtTypes, TypeDefinition containingDefinition, boolean inStaticContext) throws ConceptualException\n {\n CoalescedConceptualException coalescedExce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO implement this without clipper
private static double intersectionAreaClipper(final Polygon2D a, final Polygon2D b) { final Clipper clipper = new DefaultClipper(); final Path aPath = convertToPath(a); final Path bPath = convertToPath(b); clipper.addPath(aPath, PolyType.CLIP, true); clipper.addPath(bPath, PolyType.SUBJECT, true); final Pat...
[ "@Override\r\n\tpublic void clip(Shape arg0) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void clipRect(int arg0, int arg1, int arg2, int arg3) {\n\t\t\t\t\n\t\t\t}", "public abstract Rectangle getClip(Rectangle rect);", "public Rectangle getClipBounds() {\n/* 186 */ return this.gc.getClipBounds();\n/* ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a vector with components (z, w, x, x)
T4 zwxx();
[ "private FieldVector3D<T> vector(final double x, final double y, final double z) {\n final T zero = q0.getField().getZero();\n return new FieldVector3D<T>(zero.add(x), zero.add(y), zero.add(z));\n }", "public Vector4d(double x, double y, double z, double w) {\n\t\tsuper(x, y, z, w);\n\t}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes an array of 3D coordinate to this SRF.
public int changeCoordinate3DArraySRF(Coord3D[] src, Coord3D[] tgt, SRM_Coordinate_Valid_Region_Code[] region) throws SrmException { boolean has_no_failure = true; double[] tgtValues = new double[3]; if (src...
[ "public void setArraysCoordinates() {\n\t\t \n\t }", "public final void set(Tuple3d tuple) {\n if (length < 3) {\n length = 3;\n values = new double[3];\n }\n values[0] = tuple.x;\n values[1] = tuple.y;\n values[2] = tuple.z;\n for (int i = 3; i < le...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private void regFliter() { IntentFilter filter = new IntentFilter(); filter.addAction(OsConstants.JSH.SCAN_WIFI_END); registerReceiver(mReceiver, filter); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds the current revision.
public String buildRevision(final String previousRevision) { HashMap<String, String> bufferMap = new HashMap<String, String>(); StringBuilder output = new StringBuilder(); if (previousRevision != null) { output.append(previousRevision); } int size = parts.size(); DiffPart part; for (int i = 0; i <...
[ "public Playlist4Service.GetCurrentRevisionArgs.Builder getGetCurrentRevisionArgsBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getGetCurrentRevisionArgsFieldBuilder().getBuilder();\n }", "public Builder setRevision(int value) {\n\n revision_ = value;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string id = 1;
public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; }
[ "public void setId(String id)\n {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n\n\n }", "public String getId(){\r\n\t return id;\r\n }", "public void setId(String id) {\n _id = id;\n }", "public void setId(Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .com.example.protobuf.protocol.AchievementResult result = 7;
java.util.List<com.example.protobuf.protocol.AchievementProto.AchievementResult> getResultList();
[ "grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder();", "transfer_protobuf.Commands.Command.Response getResponse();", "protobuf.clazz.s2s.Club_ProxyProto.PlayerStatusOrBuilder getStatusOrBuilder();", "proto.GameStatusEnum getStatus();", "com.google.protobuf.ByteString getResponse(int inde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Hechos y Reglas no manuales
public List<HeRe> getAllHeRe() { this.hechos = hechoController.getAllHecho(); this.reglas = reglaController.getAllRegla(); ArrayList<HeRe> heres = new ArrayList<HeRe>(); HeRe r = new HeRe(); r = new HeRe("Hechos:", ""); heres.add(r); r = new HeRe("", ""...
[ "public void mostrardatos() {\r\n\t\tSystem.out.println(\"Nombre :\" + getNombre() + \r\n\t\t\t\t\"\\nApeliido: \" +getApellido()+\r\n\t\t\t\t\"\\nEdad: \" +getEdad() + \r\n\t\t\t\t\"\\nCodigoestudiante : \" + codigoestudiante+\r\n\t\t\t\t\"\\nNota : \" +nota);\r\n\t}", "public void infos(){\n System.out....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//////////////////////// /d2k control methods /////////////////////
public boolean isReady(){ return super.isReady(); }
[ "public void set2D() {\n disableControl();\n if (mode != ViewMode.in2D) {\n keyListener = new KeyCommandListner2D();\n mode = ViewMode.in2D;\n }\n canvas.addKeyListener(keyListener);\n canvas.addMouseListener(zoomAndPan);\n canvas.addMouseMotionListene...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
transform the coordinates in parent space to local space
public boolean getAllDrawingsThatContainsPoint(double x, double y, List<IDrawing> outputList) { double point[] = {x,y}; this.transformToObject(point); // the point in local coordinates will be (xx,yy) double xx = point[0]; double yy = point[1]; // collec...
[ "public void worldToLocal() {\n Spatial ancestor = findAncestor(Spatial.class);\n \n /*\n * This is the root Spatial node so set it's local transform to it's \n * world transform.\n */\n if(ancestor == null)\n localTransform.setTo(worldTransform);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
NotEqual(!=). And NullOrEmptyIgnored, OnlyOnceRegistered.
public void setTemplateid_NotEqual(String templateid) { regTemplateid(CK_NE, fRES(templateid)); }
[ "public void setIgnoreEmpty() {\n equals = \"\";\n excludeNull = \"true\";\n }", "private MustNot() {\n \tthis(null,null,null);\n }", "public synchronized boolean acceptsNone() {\n prepareValue();\n \n return wildcard && negated;\n }", "public abstract boolean notEmpty();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a listener interface to receive hide window event.
void addHideWindowListener(HideWindowListener listener);
[ "public interface VTabHideListener {\n \n public void hide(VTabHideEvent event);\n \n public void show(VTabHideEvent event);\n \n}", "@Override\n public void hide() {\n \tVDVideoViewController controller = VDVideoViewController.getInstance(this.getContext());\n \tif(null!=controller)controller.remov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to handle Qnames
private void writeQName(javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String namespaceURI = qname.getNamespaceURI(); if (namespaceURI != null) { java.lang.String prefix ...
[ "public int getIndex(String qName);", "public void setQyName(String qyName) {\n this.qyName = qyName;\n }", "private String qName(Namespace namespace, String localName)\n {\n \tString prefix = namespaces.getPrefix(namespace.URI);\n if (prefix == null || prefix.equals(\"\"))\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of status method, of class QuickPay.
@Test public void testStatus() throws IOException { System.out.println("status"); String responseBody = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<response>" + "<qpstat>000</qpstat>" + "<qpstatmsg>OK</qpstatmsg...
[ "@Test\n void getStatus() {\n String status = melding.getStatus();\n\n assertEquals(\"OPEN\", status);\n assertNotEquals(\"GESLOTEN\", status);\n }", "testdata.v1.util.All.Status getStatus();", "public abstract boolean getStatus();", "public void testGetStatus() throws Exception {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Empty constructor for efficient cloning and parsing.
private Classifier() { // empty }
[ "public ConstructorEmpty() {}", "public Parser() {\n this(null);\n }", "public Parser() {\n reset();\n }", "public BPlusTree() {\n //Pedro -- I need an empty constructor to Jgroups deserialize the object\n }", "public ParseUtils(){\n\t\t// maybe unnecessary \n\t}", "public Pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remove wherever the index is from the array, if outside then remove the first or last element
public int remove(int index){ ArrayList<Integer> temp1 = new ArrayList<Integer>(); ArrayList<Integer> temp2 = new ArrayList<Integer>(); //temp1.size() == myArrayList.size(); for(int i = 0; i < index; i++) { temp1(i) = myArrayList(i); } for(int i = index +1; i < myArrayList.size(); i++) { tem...
[ "void removeArrayIndex(Object[] array, int index){\n for(int i = index; i < array.length; i++){\n if (i == array.length-1) {\n array[i] = null;\n return;\n }\n if (array[i+1] == null) {\n array[i] = null;\n return;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a RenderContext with a given transform and rendering hints. The area of interest is taken to be the entire renderable area.
public RenderContext(AffineTransform usr2dev, RenderingHints hints) { this(usr2dev, null, hints); }
[ "public TransformContext contextInit();", "@Override\n\t\tprotected Context makeContext() {\n\t\t\tContext cx = super.makeContext();\n\t\t\tcx.setWrapFactory(wrapFactory);\n\t\t\tcx.setSecurityController(securityController);\n\t\t\tcx.setClassShutter(classShutter);\n\t\t\tif (rhinoClassLoader == null) {\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes a hash code for the specified byte. Implementors can use the byte's own value or a custom scheme designed to minimize collisions for a known set of input.
public int computeHashCode(byte val);
[ "private int hashFunc(String input) {\n int hashCode = 0;\n for (char c : input.toCharArray()) { // only capstures lowercase char\n hashCode = (hashCode * 27 + (c - 'a' + 1)) % hashArray.length;\n }\n return hashCode;\n }", "public long hash(byte[] bytes);", "private in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the screen display title.
public String getTitle() { return "Review booking operation status"; }
[ "public String getWindowTitle() {\r\n\t\treturn driver.getTitle();\r\n\t}", "private String getTitle() {\n if (this.window instanceof Frame) {\n return ((Frame) this.window).getTitle();\n }\n if (this.window instanceof Dialog) {\n return ((Dialog) this.window).getTitle()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse the description out of the meta tag if one exists. Otherwise, return null
private String getDescriptionFromDocument(Document doc) { Elements metaDescriptionElements = doc.select("meta[name=description]"); return metaDescriptionElements.size() > 0 ? metaDescriptionElements .attr("content") : null; }
[ "public void crawlDescription(){\r\n\t\tDocument doc = this.getHtml();\r\n\t\tElements metaelements = doc.select(\"meta[name=description]\");\r\n\t\tif (metaelements == null) {\r\n\t\t\tthis.setDescription(\"-\");\r\n\t\t} else {\r\n\t\t\tString description = metaelements.first().attr(\"content\").trim().toString()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
task to be scheduled
@Override public void run() { handler.post(Update); }
[ "public void task(){}", "public void action() {\n\t\t\tDate currTime;\n\n\t\t\tfor (int i = 0; i < taskQueue.size() ; ++i)\n\t\t\t{\n\t\t\t\tTaskQ temp = (TaskQ) taskQueue.get(i);\n\t\t\t\t// Find tasks which can be run\n\n\t\t\t\tif (temp.running == false)\n\t\t\t\t{\n\t\t\t\t\t// Check if can be run\n\t\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Haalt binnen gekomen paramters op.
private void getIncomingIntent() { Bundle bundle = getIntent().getExtras(); if(bundle != null) { this.uidMelding = bundle.getString("uid_melding"); this.meldingGroep = bundle.getString("melding_groep"); } }
[ "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"nominal\", nominal);\n params.put(\"nomorhp\", nomorhp);\n params.put(\"nomor\", nomor);\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse the event data file.
public void parseEventFile() { FileInputStream is; try { is = new FileInputStream(super.getInput()); NxParser nxp = new NxParser(); System.out.println("Parsing " + super.getInput() + "..."); nxp.parse(is); for (Node[] nx : nxp) { String nodeid = nx[0].toString(); St...
[ "private void parseData() {\r\n\t File dataFile = new File(Configuration.getString(name+\".data\"));\r\n try {\r\n BufferedReader bufRdr = new BufferedReader(new FileReader(dataFile)); \r\n String line;\r\n while ((line = bufRdr.readLine()) != null) {\r\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Close the backupEnv abnormally.
void verifyAsEnv(File dir) throws EnvironmentLockedException, DatabaseException { DbInternal.getNonNullEnvImpl(backupEnv).abnormalClose(); Environment benv = new Environment(dir, envConfig); /* Note that verify modifies log files. */ benv.verify(vconfig, System.err); ben...
[ "@PreDestroy\n protected void close() {\n if (environment == null) {\n return;\n }\n try {\n closeStore();\n } finally {\n log.info(\"closing database environment\");\n environment.close();\n }\n }", "protected void endEnv() {}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether this subtree satisfies the AVL tree almost balanced requirement.
public abstract boolean isAlmostBalanced();
[ "public boolean isBalanced(TreeNode root){\n return maxDepth(root) != -1;\n }", "public boolean isBalanced()\n\t{\n\t\tif (isLeaf())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse if (left == null && right.isLeaf())\t\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse if (right == null && left.isLeaf())\n\t\t{\n\t\t\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column tb_jsxx.DELETE_STATUS
public Builder deleteStatus(String deleteStatus) { obj.setDeleteStatus(deleteStatus); return this; }
[ "public void setDeleteStatus(Boolean deleteStatus)\r\n\t{\r\n\t\tthis.deleteStatus = deleteStatus;\r\n\t}", "@Override\n\tpublic ResultSet cloudServerProviderGetFileDelete(String status) {\n\t\t\n\t\tResultSet rs=null;\n\t\t\n\t\tString sql=\"Select * from delete_table_request where status=?\";\n\t\t\n\t\tPrepare...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Analyze given text and tokenize it into a list of terms.
public static ArrayList<String> tokenize(String text) throws IOException { ArrayList<String> result = new ArrayList<String>(); TokenStream tokenStream = analyzer.tokenStream("name", text); CharTermAttribute attr = tokenStream.addAttribute(CharTermAttribute.class); tokenStream.reset(); ...
[ "List<String> tokenize(String document);", "static public ArrayList<String> tokenize(String text)\r\n\t{\r\n\t\ttext = text.replaceAll(\"([a-z0-9])(A-Z)\",\"$1 $2\");\r\n\t\tfor(int j = 0; j < (text.length() - 1); j++)\r\n\t\t\tif(Character.isLowerCase(text.charAt(j)) && Character.isUpperCase(text.charAt(j+1)))\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public final void mo3023d(int i, List<Long> list, boolean z) { boolean z2 = false; if (z) { this.f17440a.mo4362a(i, 2); int i2 = false; for (i = 0; i < list.size(); i++) { i2 += zzut.m22571e(((Long) list.get(i)).longValue()); } ...
[ "private void d() {\n }", "public void mo1857d() {\n }", "public void setD(String d) {\n this.d = d;\n }", "public boolean d() {\n }", "protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }", "protected void mo4791d() {\n }", "@Override\n\tpublic voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column s_b_yincomm_main.software_version
public String getSoftwareVersion() { return softwareVersion; }
[ "public static String getSoftwareVersion() {\r\n\t\t// Loop through the running apps to get one that we can check the\r\n\t\t// version of\r\n\t\tApplicationDescriptor[] descriptors = ApplicationManager.getApplicationManager().getVisibleApplications();\r\n\t\tint size = descriptors.length;\r\n\r\n\t\tfor (int i = s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last e s f renewal company in the ordered set where paymentType = &63;.
public it.ethica.esf.renewal.model.ESFRenewalCompany findByPaymentType_Last( int paymentType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.ethica.esf.renewal.NoSuchESFRenewalCompanyException;
[ "CommercialOrder getCommercialOrder();", "public double getLastPaymentAmount() {\n return this.lastPaymentAmount;\n }", "OrderPayment getLastAuthorizationPayments(final OrderShipment orderShipment);", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getUltimateMotherCompa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Saves a document to a String.
public static String saveToString(Document doc, String encoding, boolean pretty) throws Exception { OutputFormat format = new OutputFormat(doc, encoding, pretty); StringWriter stringOut = new StringWriter(); XMLSerializer serial = new XMLSerializer(stringOut, format); serial.asDOMSerializer()...
[ "public void save() {\n\t\tthis.document.save();\n\t}", "void save(String s) throws IOException;", "void setDocument(java.lang.String document);", "public static void save(document doc, string filepath)\n {\n try\n {\n outputformat format = new outputformat(doc); //serialize dom\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns SQL resource information defined by the user, including query, validated attributes and trigger.
public SqlResourceDefinition getDefinition();
[ "String getUserQuery();", "private String createResourceQuery(final Resource resource) {\n StringBuilder builder = new StringBuilder();\n builder.append(createQuery(DEFAULT_FIELD_RESOURCE, resource.getName()));\n return builder.toString();\n }", "public DatabaseQuery getDatabaseQuery();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Similar to map, but prevents a value from being wrapped multiple times by Lazy.
public <S> Lazy<S> flatMap(Transformer<? super T, ? extends Lazy<? extends S>> transformer) { return new Lazy<S>(() -> transformer.transform(this.get()).get()); }
[ "public interface Lazy<T> {\n T getValue();\n}", "private Lazy(T v) { \n this.value = Maybe.of(v);\n }", "public interface UnmodIterable<T> extends Iterable<T>, Transformable<T> {\n // ========================================== Static ==========================================\n\n // /**\n// Cau...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
declaration de la variable
public static void main(String[] args) { int[] array = {1, 15, -3, 0, 8, 7, 4, -2, 28, 7, -1, 17, 2, 3, 0, 14, -4} ; //Recherche le plus grand element int max=array[0]; for (int i=1; i<array.length;i++) { if (array[i]>max) max=array[i]; } System.out.println ("Le plus grand element du tableau : "+m...
[ "@Override\n\tprotected void initVariable() {\n\t\n\t}", "private void declararVar(){\n\t\ttry{\n\t\t\tfor(String s : variables){\n\t\t\t\tfichero.write(\"public static Integer \" + s + \";\");\n\t\t\t}\n\t\t}catch (IOException e) {\n\t\t\tSystem.out.println(\"exception: \" + e.toString());\n\t\t}\n\t}", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }