query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
auths not ready at this time The purpose of this method is to perform delete operation of Deployementtest noun from database based on given noun id
@ApiOperation(value = "/delete_Deployementtest/{Deployementtest_id}", httpMethod = "DELETE",notes = "deletes a noun of Deployementtest",response = Deployementtest.class) @ApiResponses(value = { @ApiResponse(code = 200, message = Deployementtest01SwaggerUIConstants.SUCCESS), @ApiResponse(code = 404, message = De...
[ "public int deleteThuoc(int thuocId);", "public void deletePrestamo(Long id) throws Exception;", "@Override\n public void delete(final Long idAutosalon) {\n autosalonRep.deleteById(idAutosalon);\n\n }", "int deleteByExample(SitbPercargoExample example);", "public void deleteNhanVien(NhanVien nh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validate SAML 1 token where role information is provided within another SAML attribute
@org.junit.Test public void validateSAML1TokenDifferentRoleURI() throws Exception { SAML1CallbackHandler callbackHandler = new SAML1CallbackHandler(); callbackHandler.setStatement(SAML1CallbackHandler.Statement.ATTR); callbackHandler.setConfirmationMethod(SAML2Constants.CONF_BEARER); ...
[ "abstract public Boolean validateToken(String token);", "private Verification checkAttributes(Attributes attr) {\n\t\t\tif (currentVerifier.equals(\"Winery\") && currentVerificationID.equals(\"over18\")) {\n \t\t\t\tString age = new String(attr.get(\"over18\"));\n \t\t\t\tif (age.equalsIgnoreCase(\"yes\")) {\n \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form frmBuscarGuiaVentas
public frmBuscarGuiaVentas() { initComponents(); }
[ "private void btnMostrarListadoActionPerformed(java.awt.event.ActionEvent evt) {\n objUtils.vaciarTabla(dtmData); \n txtCedula.setText(\"\");\n txtNombreCliente.setText(\"\");\n \n frmListClientes ventana = new frmListClientes(null, true, \"12\");\n //new inventariopdf.JD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to update the Delivery status of orders by delivery agent
public static String updateDeliveryStatus_New(Vector<DeliveryAgentOrderDetailDco> vecSalesOrders, String deliveredBy, boolean isEOT) { arrOrderNumbers = new ArrayList<String>(); //need to change the object type here String strOrders = ""; String strXML = SOAP_HEADER + "<UpdateDeliveryStatus_New xml...
[ "public void updateStatusToReadyToShip(Order order) {\n }", "void updateStatus(OrderDetail orderDet);", "public void deliveryJobCompleted(Long id){\n DeliveryJobs completedJob = deliveryJobsRepository.findById(id).get();\n // DeliveryStatus updateDeliveryStatus = completedJobs.getOrder().getDeli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called repeatedly when this Command is scheduled to run
@Override protected void execute() { /* 2-21-2020 * As we decrease the distance that the ball is from the conveyor when we * start moving the conveyor, we more frequently encounter a situation * where the conveyor doesn't move because we are waiting for the previous ...
[ "@Override\n public void autonomousPeriodic()\n {\n CommandScheduler.getInstance().run();\n }", "@Override // Called every time the scheduler runs while the command is scheduled.\n public void execute() {\n run(m_driveStick.getRawAxis(driverTurninAxis), m_driveStick.getRawAxis(driverThrottleAxis));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 fantasy_league_id = 1;
public int getFantasyLeagueId() { return fantasyLeagueId_; }
[ "int winnerTeamId();", "public long getTeamid();", "long getPartyLobbyId();", "long getOwnerSteamid();", "long getSteamIdTarget();", "int getBattlePartyNumber();", "public static int getAftID(){\n return aftID;\n }", "int getCombatLeagueBadgeValue();", "public int getAllyTeamNumber() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_back, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional float rate = 4; optional float rate = 4;
boolean hasRate();
[ "default void setRate(float rate) {}", "public void setRate(int rate);", "@Override\n\tpublic void setRate() {\n\t\t\n\t}", "public void setRate(double rate) {\n this.rate = rate;\n }", "protected abstract void setRateImpl(float rate);", "@Override\r\n\tpublic\r\n\tvoid getRate() {\n\t\trate=7.5...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
private final void m30952a(long j) { while (true) { C9114Rs rs = this.f29182g; if (j >= rs.f21681b) { this.f29176a.mo32171a(rs.f21683d); this.f29182g = this.f29182g.mo28578a(); } else { return; } } }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void surfaceCreated(SurfaceHolder holder) { }
[ "@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" ] ] } }
Exception handler for NumberFormatException
@ExceptionHandler(NumberFormatException.class) public ResponseEntity<Object> numberFormatException(NumberFormatException ex, WebRequest request) { ErrorDetails errorDetails = new ErrorDetails(new Date(), "Invalid input, Id should be a number", request.getDescription(false)); return new ResponseEntity<>(errorDe...
[ "static NumberFormatException forInputString(String s) {\n\t\treturn new NumberFormatException(\"For input string: \\\"\" + s + \"\\\"\");\n\t}", "private static NumberFormatException method_2538(NumberFormatException var0) {\r\n return var0;\r\n }", "@Test\n public void testCreateNumberFailure_3() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes a minimum aggregation on the distance of a data point to cluster centers. Emits a keyvaluepair where the key is the id of the closest cluster center and the value is the coordinate vector of the data point. The CoordVectorCountSum data type is used to enable the use of a Combiner for the second Reduce PACT.
@Override public void reduce(PactPoint dataPoint, Iterator<Distance> distancesList, Collector<PactInteger, CoordinatesSum> out) { // initialize nearest cluster with the first distance Distance nearestCluster = null; if (distancesList.hasNext()) { nearestCluster = distancesList.next(); } else { ...
[ "@Override\n public Tuple2<Centroid, Point> map(Point p) {\n double minDistance = Double.MAX_VALUE;\n // check all cluster centers\n for (Centroid centroid : centroids) {\n // compute distance\n double distance = p.euclideanDistance(centroid);\n // update nearest cluster if necessary\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Posts a new user comment to the server.
@POST("rest/film_locations/{id}/user_comments/") Call<UserComment> postUserComment(@Header("Authorization") String authorization, @Body UserComment userComment, @Path(value = "id") UUID id);
[ "@RequestMapping(value = \"/home/postComment\", method = RequestMethod.POST)\r\n\tpublic String postComment(Model model, HttpServletRequest request,\r\n\t\t\tPrincipal user) {\r\n\t\tList<CommentsDto> commentList;\r\n\t\ttry {\r\n\t\t\tString discussionId = request.getParameter(\"discussionId\");\r\n\t\t\tString co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
unit test for two pair hand check
@Test public void testTwoPairHand() { Hand hand = InitializeTwoPair(firstCard, secondCard, thirdCard, fourthCard, fifthCard); PokerHand pokerhand = PokerHand.TWO_PAIR; ArrayList<Card> sortedHand = hand.sortHand(); boolean result = pokerhand.hasMatch(sortedHand); assertEquals(true,result); }
[ "public void testGoodDifferentLength() {\n\t\tDistanceVectorPair dp = DistanceVectorPair.makePair(ok1,ok2);\n\t\tassertTrue(dp == null);\n\t}", "public static boolean isTwoPair() {\r\n\t\t\r\n\t\tint count = 0;\r\n\t\tint amountOfPairs = 0;\r\n\t\t\r\n\t\tfor(int x = 0; x < hand.length; x++){\r\n\t\t\t\r\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the inserted values matche the type of the columns or not
private void checkInsertedColumns(Hashtable<String, Object> htblColNameValue) throws DBAppException { for (Entry<String, Object> entry : htblColNameValue.entrySet()) { String colName = entry.getKey(); if (!htblColNameType.containsKey(colName)) throw new DBAppException("Co...
[ "public boolean doesValueFitIntoColumn() {\n String columnSqlType = type.getSqlType().toLowerCase();\n\n boolean b = false;\n if (columnSqlType.contains(\"text\") == true) {\n b = doesValueFit_Text();\n } else if (columnSqlType.contains(\"varchar\") == true) {\n b = doesValueFit_Varchar();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the team color from the driver station alliance.
private void setTeamColor(){ DriverStation.Alliance color = DriverStation.getInstance().getAlliance(); if(color==DriverStation.Alliance.Blue){ teamColor="blue"; }else{ teamColor="red"; } }
[ "public void setTeamColor(String color){\n teamColor = color;\n }", "public static void setTeamColor(int t, Graphics2D g) {\n \tif (t == Team.RADIANT) {\n \t\tg.setPaint(Colors.GREEN);\n \t} else if (t == Team.DIRE) { \n \t\tg.setPaint(Colors.RED);\n \t} else if (t == Team.NEUTRAL) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We are now leaving the function so we need to check if the arguments are correct and get its return Type
@Override public void outAFunctionCall(AFunctionCall node) { //Get functionData and print error if not found FunctionData f = getFunctionData(node, true); if(f != null) { //Make String array of all parameter names of found function that we are calling Stri...
[ "abstract public void inspectTypes(Reference<Variadic.EnumType> resultType, List<Variadic.EnumType> parametersTypes);", "public static Type getUpperType(List<Type> typeList) {\n Type returnType = BuiltInType.NULL;\n for(var type:typeList)\n {\n if(type.noError()&&!type.isNullType()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required uint32 panId = 3; (uint16) Network PAN ID
public boolean hasPanId() { return ((bitField0_ & 0x00000004) == 0x00000004); }
[ "public java.lang.String getPanNo() {\n\t\treturn panNo;\n\t}", "public void setPanNo(java.lang.String panNo) {\n\t\tthis.panNo = panNo;\n\t}", "@ApiModelProperty(example = \"01\", value = \"Application PAN sequence number for the Token <br> __Length: 2__ \")\n public String getPanSequenceNumber() {\n retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/This prints the size of the deque
public void getSize() { System.out.println(); System.out.println("Size is "+size); }
[ "public int size() {\n return deque.size();\n }", "public void queueSize(){\n\t\tSystem.out.println(\"There are \"+ qLength + \" Visitors in the Queue.\");\n\t\t\n\t}", "@Override\n\tpublic int size() {\n\t\tif (this.front() <= this.rear()) {\n\t\t\treturn (this.rear() - this.front());\n\t\t} else {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows a description of the actions performed on a turn in the middle of the board
public void displayMidDescription(String text) { GUI.displayChanceCard(text); }
[ "@Override\n void show() {\n String actionPrint = \"\";\n \n for (int i = 0; i < 3; i++) {\n System.out.println(\"-------------\");\n for (int j = 0; j < 3; j++) {\n System.out.print(\"| \" + boardStatus[i][j] + \" \");\n }\n System....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads a ItemStack from the InputStream
public static ItemStack c(DataInputStream var0) { ItemStack var1 = null; short var2 = var0.readShort(); if (var2 >= 0) { byte var3 = var0.readByte(); short var4 = var0.readShort(); var1 = new ItemStack(var2, var3, var4); var1.tag = d(v...
[ "public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n direction = par1NBTTagCompound.getInteger(\"Direction\");\n \n NBTTagList var2 = par1NBTTagCompound.getTagList(\"Items\");\n this.chestContents = new ItemStack[this.getSiz...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if including assignments on this assignment, put them here, put in null to remove assignments
public AttributeAssignSave addAttributeAssignOnThisAssignment(AttributeAssignSave theAttributeAssignSave) { if (this.attributeAssignsOnThisAssignment == null) { this.attributeAssignsOnThisAssignment = new LinkedHashSet<AttributeAssignSave>(); } if (theAttributeAssignSave != null) { this.att...
[ "@VisibleForTesting\n void clearAssignmentsMovedInLastDrain() {\n assignmentsMovedInLastDrain = null;\n }", "@Override\n public VariableSymbol assign(Ast.Assign ast, Void arg) {\n Symbol.VariableSymbol vSymbol = visit(ast.left(), null);\n\n // Only do something if the left expr is a ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Should return a String that gives insight into this Manager and all their direct reports. It should return a string that is a combination of the TechnicalLead's employee status followed by each of their direct employee's status on subsequent lines. If the TechnicalLead has no reports it should print their employee st...
public String getTeamStatus(){ String Message = (this.toString() + " and is managing: \n"); for (Employee employee : WorkForce) { try{ Message = Message + ((SoftwareEngineer)employee).employeeStatus() + " \n"; } catch (Exception e){ Message...
[ "public String getTeamStatus(){\n if(team.size() == 0){\r\n return this.employeeStatus() + \" and no direct report yet\";\r\n }else{\r\n\r\n String s= this.employeeStatus() + \" and is managing:\";\r\n\r\n for(int i =0 ;i< team.size();i++){\r\n s += \"\\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores the data for the edge denoted by the two points.
public C setCorner(Point location, C data) { C old = corner.get(location); if (corner.containsKey(location)) { corner.put(location, data); return old; } else { throw new IllegalArgumentException( "Corner does not exist => no data can be stored: " + location); } }
[ "public abstract void setEdgeData(int s, int t, Object data);", "void storeDataPointToDB(DataPoint dataPoint){\n this.tripDbHelper.saveDataPoint(dataPoint);\n\n }", "public void addEdge(Point p1, Point p2) {\n\t\tEdge e = new Edge(p1, p2);\n\t\tedges.add(e);\n\t\tedgesHM.put(p1, p2);\n\t\t/*System.out...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Should only be used by the CompanionDeviceManagerService.
@NonNull Builder setNotifyOnDeviceNearby(boolean notifyOnDeviceNearby);
[ "public abstract long getDevice();", "@Override\n\tpublic void onAPDeviceListChanged() {\n\n\t}", "private void syncDeviceInformation() {\n \t\tHardwareAbstraction hw = new HardwareAbstraction(this);\n \t\thw.syncDeviceInformation(getSessionID());\n \t}", "public Device getDevice() {\r\n\t\treturn device;\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { launch(args); }
[ "@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" ] ] } }
TODO Autogenerated method stub
@Override public void destroy() { }
[ "@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" ] ] } }
methode utilisee pour l'ajout d'une photo a l'album
private boolean addFileToFolder(String str) { String[] element = new String[4]; int i = 0; try { while (str.length() > 0 & i < 4) { if (i < 3) { element[i] = str.substring(0, str.indexOf(" ")); } else { element[i] = str.substring(0, str.length()); } str = str.substring(str.indexOf(" "...
[ "void addPhoto(Foto photo);", "IPhoto addPhoto(String fileName, String caption, String albumName, IUser user);", "public void ordenarBibliotecaPorAlbum();", "@Override\n\tprotected void picPhotoOrAlbum() {\n\t\t\n\t}", "int addPhoto (int user_id, int map_id, int event_id, String photo);", "public void eve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show a calibration target with the given color.
public void showCalibrationTarget(PxlColor c) { showCalibrationTarget(c.dev()); }
[ "public void showColorPrincipal() {\r\n //TipoProductoService tps = new TipoProductoService();\r\n List<Color> colores = colorService.ListarColores();\r\n VistaUtil.showVistaPrincipal(colores, \"Color\", Color.class, this);\r\n }", "public void selectColor(int color){\t\t\n\t\t\n\t\t// Che...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes selected annotations from a given resource
public boolean deleteResourceAnnotations(String resourceURI, ArrayList<String> annotations) { boolean result = false; String prefix = "http://localhost/ontologies/ThesisOntology.owl#"; String relation = "has-annotation"; String modelURL = ConfigManager.getInstance().getProperty("baseModelPath"); String mod...
[ "@Modifying\n\tvoid deleteByAnnotationId(String annotationId);", "public void removeAnnotationFromSet(Annotation annotation) {\n \r\n }", "void onRemoveCanvasAnnotation(SubDataset dataset, AnnotationCanvasData annotation);", "JAnnotation removeAnnotation(JAnnotationType annotationType);", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Change name of a TrainCompany's Passenger
protected void changePassengerName(int id, String name) throws NoSuchPassengerIdException, InvalidPassengerNameException, NonUniquePassengerNameException{ if(!_passengers.contains(getPassenger(id))) throw new NoSuchPassengerIdException(id); Passenger _newnamed = getPassenger(id); if( name == null) ...
[ "static void changeCompany(){\n company = \"SareKannya\";\n }", "public void setName(String newname) {\n \n this.name = newname; \n }", "public void changePassengerName(int id, String newname) throws NoSuchPassengerIdException, InvalidPassengerNameException {\n\t\t_trainCompany.changePassengerN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
list or watch objects of kind Node
Mono<NodeList> list(ListOptions options);
[ "public ArrayList<Node> getNodeObjects() {\n return allNodes;\n }", "@Test\n public void ls() throws KeeperException, InterruptedException {\n\n List<String> children = zkClient.getChildren(\"/\", new Watcher() {\n public void process(WatchedEvent event) {\n System.ou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean onBackPressed() { return false; }
[ "@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" ] ] } }
Ingests the flow and speed data from Kafka
public DataStream<Tuple3<String, String, Long>> ingestStage(StreamExecutionEnvironment env) { FlinkKafkaConsumer<Tuple3<String, String, Long>> kafkaSource = new FlinkKafkaConsumer( Arrays.asList(kafkaProperty.getProperty("flow.topic"), kafkaProperty.getProperty("speed.topic")), // ...
[ "public void ingestData();", "public static void main(String[] args) throws Exception {\n final ParameterTool params = ParameterTool.fromArgs(args);\n\n if(params.getNumberOfParameters() < 4) {\n System.out.println(\"\\nUsage: FlinkReadKafka --read-topic <topic> --write-topic ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the nodeSize property: The level of compute power that each node in the Big Data pool has.
public NodeSize getNodeSize() { return this.nodeSize; }
[ "public int getNodeSize() {\r\n return nodeSize;\r\n }", "public int getNodeSize() {\n return this.nodeSize;\n }", "public int nodeSize();", "public double getNodesNeeded() {\n return getDouble(\"num_nodes\");\n }", "public int size() {\n return nodeSize;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
propogates cascadeInternalFrames to DesktopScrollPane
public void cascadeInternalFrames() { desktopScrollpane.cascadeInternalFrames(); }
[ "void setAssociatedFrame(JScrollInternalFrame associatedFrame);", "public CascadeInternalFramesAction(JDesktopPane desktop) {\n \t\tsuper(i18n.TITLE);\n \t\tsetJDesktopPane(desktop);\n \t}", "public void resizeComponents_webLookandfeel()\n{\n\n int frameWidth = this.getWidth();\n int frameHeight = this.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String sql ="delete from books where title =?"; String hql ="delete from books where title = ?";
public int deleteByTitle(String title,Session session) { String hql ="delete from books where title = :title"; Query query=session.createSQLQuery(hql); //query.setString(0, title); query.setParameter("title", title); // 模糊查询 query.setParameter("title", "%"+title+"%"); return query.executeUpdat...
[ "public void delete(String bookname) throws SQLException{\n\t Configuration conf = new Configuration() \n\t\t // 下面方法默认加载hibernate.cfg.xml文件 \n\t\t .configure(); \n\t\t // 以Configuration创建SessionFactory \n\t\t SessionFactory sf = conf.buildSessionFactory(); \n\t\t // ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.simple_main, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all of the humanreadable parameter names out of the message element.
private String[] getArgs(Element message) throws Exception { NodeList args = message.getElementsByTagName("arg"); int argCount = args.getLength(); String[] retval = new String[argCount]; for (int i = 0; i < argCount; i++) { Element arg = (Element) args.item(i); ...
[ "List<String> getParamNames();", "public String[] getParameterNames() {\r\n\t\tString[] params = new String[_param.values().length];\r\n\t\tfor (int i = 0; i < params.length; i++)\r\n\t\t\tparams[i] = _param.values()[i].toString();\r\n\t\treturn params;\r\n\t}", "public Enumeration getParameterNames() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Assign new clipBegin time from SeekBar position
@Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { int maxClipBegin = mBox.getClipDuration() - mBox.getDuration(); mBox.setClipBegin((int) (progress * (1.0 / mClipOffsetBar.getMax()) * maxClipBegin)); /* Update UI labels */ mCl...
[ "private void changeSeekbar() {\n seekBar.setProgress(mediaPlayer.getCurrentPosition());\n if (mediaPlayer.isPlaying()) {\n runnable = new Runnable() {\n @Override\n public void run() {\n changeSeekbar();\n passTime.setText...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
for delta = 1 there's a base window at 0..N|w|
@Test public void testGetWindowStartIndices() throws Exception { BaseWindowStatistics s = new BaseWindowStatistics(ts, 3, 1); assertArrayEquals(new int[]{0, 1, 2, 3, 4, 5, 6}, s.getWindowStartIndices()); // for |w| = N there's only one window at index 0 s = new BaseWindowStatistics(...
[ "private void applyWindow( final byte [] buf, final int len )\n {\n int i;\n\n if( window_data.length != len )\n {\n throw new RuntimeException( \"Window and buffer dimensions don't match. BT-Dub,\" +\n \"this is Mr. Window. Mr. Hanning Windo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
look at the docs to see what needs to be returned Remember 'A' is 65 'a' is 97 Note that they differ by 32 '0' is 48 These characters differ by 17 (48 to 65)
public char deCode() { char result=0; if (letter >= 'a' && letter <= 'z') result = (char) (letter - 32); // else if ???? // result = ???? // add all checks return result; }
[ "private static String alphaNumericStringManipulation() {\n\t\tSystem.out.println(\"Enter string\");\n\t\tString numericString=scan.next();\n\t\tString str=\"\";\n\t\tfor(int i=0;i<numericString.length();i++)\n\t\t{\n\t\t\tif(numericString.charAt(i)>='a' && numericString.charAt(i)<='z')\n\t\t\t{\n\t\t\t\tstr+=(char...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Comparison method for sorting roles, required by Comparable interface.
public abstract int compareTo(Object o);
[ "@Override\n\tpublic int compareTo(MyRole role) {\n\t\treturn roleName.compareTo(role.roleName);\n\t}", "@Override\n\tpublic int compareTo(@NotNull final PmRole that)\n\t{\n\t\treturn COMPARATOR.compare(this, that);\n\t}", "public RoleComparator(boolean asc) {\n this.asc = asc;\n }", "int ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JvmArgumentTypeReference__Alternatives" $ANTLR start "rule__JvmWildcardTypeReference__Alternatives_2" InternalSARL.g:5653:1: rule__JvmWildcardTypeReference__Alternatives_2 : ( ( ( rule__JvmWildcardTypeReference__Group_2_0__0 ) ) | ( ( rule__JvmWildcardTypeReference__Group_2_1__0 ) ) );
public final void rule__JvmWildcardTypeReference__Alternatives_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSARL.g:5657:1: ( ( ( rule__JvmWildcardTypeReference__Group_2_0__0 ) ) | ( ( rule__JvmWildcardTypeReference__Group_2_1__0 ) ) ) ...
[ "public final void rule__JvmWildcardTypeReference__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:15680:1: ( ( ( rule__JvmWildcardTypeReference__Alternatives_2 )? ) )\n // InternalAle.g:15681:1: ( ( r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier generalinfo: Reference to the active servicing session
public String getUnderwritingServicingSessionReference() { return underwritingServicingSessionReference; }
[ "bys mo37578C() throws RemoteException;", "@DISPID(15) //= 0xf. The runtime will prefer the VTID if present\n @VTID(24)\n String status();", "private ArrayList getCurrentStateForI13n(I13nActAccessBean act) throws java.lang.Exception {\n\n\tArrayList result = new ArrayList(); \n\t\n\tif( act.getType().equals(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the data type.
public String getDataType() { return m_dataType; }
[ "public String getDataType() {\n load();\n return _dataType;\n }", "public String getDataType()\n\t{\n\t\treturn dataType;\n\t}", "public String getType()\n {\n return dataType;\n }", "public static String dataType() {\n return dtype;\n }", "public DataType getDataType()\r\n\t{\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
One entry in the results returned for a search.
public interface SearchResult extends Serializable { /** * Gets the indexed document. * <p> * Gets the {@link Document} indexed and found as a result for a query.<br /> * The document can either be generated from its reference with a * {@link uk.ac.ox.oucs.search2.document.DocumentProducer}...
[ "public Object search() {\n\t\treturn null;\n\t}", "public T LookAtItem(T Entry){\n\t\tT temp = null;\n\t\tif(!isEmpty()){\n\t\t\tint i = FindItem(Entry);\n\t\t\tif(i>=0){\n\t\t\t\ttemp = Entry;\n\t\t\t}\n\t\t}\n\t\treturn temp;\n\t}", "void add_one_Search_result(Search_result sr, Search_statistics st);", "@O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new InvoiceItemVO with default values.
public InvoiceItemVO() { }
[ "public Invoice() {\n this(DSL.name(\"Invoice\"), null);\n }", "public Invoice() {\r\n // nothing to do\r\n }", "public Invoice()\n\t{\n\t\t\n\t}", "public InvoiceExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "protected InvoiceitemsExample(InvoiceitemsExampl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
processCmd method takes in 2 parameters to execute the user command
public void processCmd(String cmdMethod, String cmdTerm) { switch(cmdMethod) { case "find" : AmazonDataStore.ONE.getSearcher().getAsinFind(cmdTerm); break; case "reviewsearch" : AmazonDataStore.ONE.getSearcher().getReviewSearch(cmdTerm); break; case "qasearch" : AmazonDataStore.ONE.getSearc...
[ "private String processCommand(CommandLine cmd){\n //get the command from cmd\n Command command = cmd.getCommandWord().getCommand();\n //execute the command\n String action=command.act(cmd.getSecondWord(),this);\n return action;\n }", "private void process(String cmd, String[...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delay will delay the submission of emission by specified delay time, but once the emission starts it doesn't play any role.
private static void delay() { Observable.just(1, 2, 3, 4, 5) .delay(3000, TimeUnit.MILLISECONDS) .subscribe(System.out::println); RxJavaUtils.sleep(4000); }
[ "public void setDelay(Time delay) {\r\n\t\tthis.delay = delay;\r\n\t}", "public void delay() {\n try {\n Thread.sleep(delayMillis);\n } catch (InterruptedException e) {\n logger.error(\"delay was interrupted\", e);\n }\n }", "public void delay() {\n try {\n Thread.sleep(del...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
END copyDataBaseFromAssets onCreate is necessary for an SQLiteOpenHelper, but here is blank The DB is created by a call from the Content Provider to a method above
@Override public void onCreate(SQLiteDatabase db) { }
[ "public void copyDataBase() {\n\n int length;\n byte[] buffer = new byte[1024];\n String databasePath = DB_PATH + DB_NAME;\n\n try {\n InputStream databaseInputFile = this.context.getAssets().open(DB_NAME);\n OutputStream databaseOutputFile = new FileOutputStream(da...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Force use of static method outside of package (for tests)
EntityLineageResultCacheKey(Urn sourceUrn, LineageDirection direction, Long startTimeMillis, Long endTimeMillis, Integer maxHops) { this.sourceUrn = sourceUrn; this.direction = direction; this.startTimeMillis = startTimeMillis; this.endTimeMillis = endTimeMillis; this.maxHops = maxHops; }
[ "private static void staticMethod() {\n }", "static boolean staticMethod() {\n\t\treturn false;\n\t}", "default boolean staticMethod() {\n\t\treturn false;\n\t}", "private PathUtil() {\n throw new AssertionError(\"Class contains static methods only. You should not instantiate it!\");\n }", "sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for the angle.
public int getAngle() { return angle; }
[ "public Integer getAngle() {\n return angle;\n }", "public Integer getAngle()\n {\n return angle;\n }", "public double getAngle() {\n return this.angle;\n }", "@Override\r\n\tdouble get_angle() {\n\t\treturn angle;\r\n\t}", "public double getAngle() {\r\n\t\treturn this.vari...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public setter Specifies the maximum number of reviews per page (not guides) in the returned list. If not specified, the default returns 5 results per page.
public void setMaxResultsPerPage(Integer maxResultsPerPage) { this.maxResultsPerPage = maxResultsPerPage; }
[ "@ApiModelProperty(required = true, value = \"number of movies fetched per this request\")\n @NotNull\n\n\n public Integer getLimit() {\n return limit;\n }", "public int getBooksLimit();", "@ApiModelProperty(value = \"The maximum number of results to return, defaults to 100 for most\")\n public Integer g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true iff compilation in verbose mode is requested.
public boolean verboseMode() { return options.verbose; }
[ "public boolean isVerbose() {\r\n\t\treturn verbose;\r\n\t}", "public boolean isVerbose() {\r\n\t\treturn this.verbose.get();\r\n\t}", "public boolean isCompileWithTracing() {\n return env.isCompileWithTracing();\n }", "public boolean getVerboseDebug() {\r\n\t\r\n\t\treturn (this.verboseDebugLvl);\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Administrator on 2017/3/29.
public interface SelectSeatContract { //定义Presenter abstract class Presenter extends BasePresenter<Model,View> { } //定义Model interface Model extends BaseModel { } //定义View interface View extends BaseView { } }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {\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}", "private static void EX5() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the lastUpdate column of the given podcast (uses the lastUpdate attribute of the podcast).
int updateLastUpdate(Podcast podcast);
[ "public void setLastUpdate(Timestamp lastUpdate){\n this.lastUpdate = lastUpdate;\n }", "private void setLastUpdate(Date newUpdate){\n SharedPreferences settings = getSharedPreferences(this.currentUser.getName(), 0);\n SharedPreferences.Editor editor = settings.edit();\n\n editor.pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Has this number been ported to another network
public HLRLookupResponseBuilder isPorted(boolean isPorted) { hLRLookupResponse.setIsPorted(isPorted); return this; }
[ "boolean isFromNetwork();", "boolean isNet();", "int getPortContacted();", "public boolean networkRunning() {\n\t\treturn network != null;\n\t}", "public boolean hasPort() {\n return (getSentBy()).hasPort();\n }", "public boolean isNetwork() {\n return destination.isNetwork();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
double X = 1;
public double getX() { return x_; }
[ "public double x();", "void setX(double aX);", "public double x() {\n return x;\r\n }", "double getVarDouble();", "float x();", "public void setX(double X){\r\n\t\t\r\n\t\tthis.X = X;\r\n\t\t\r\n\t}", "public void setX(Double x) {\r\n this.x = x;\r\n }", "public double darX( )\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This makes sure that the autonomous stops running when teleop starts running. If you want the autonomous to continue until interrupted by another command, remove this line or comment it out.
@Override public void teleopInit() { if (autonomousCommand != null) autonomousCommand.cancel(); }
[ "@Override\n\tpublic void teleopInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\trunAuto = true;\n\t}", "@Override\n public void teleopInit() {\n \n m_autonomousCommand.cancel();\n //System.out.println(\"Testing \");\n \n if(skipAuto){\n Robot.m_navx.zeroAn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.ChangeSet changeSet = 2;
Service.ChangeSet getChangeSet();
[ "public void setChange() {\n\r\n\t}", "config.ConfigOuterClass.ChangeSet getChangeSet();", "public void setMultipleChanges(boolean flag);", "protected int changes() {\n/* 2294 */ return this.changes;\n/* */ }", "public ChangeSet getChangeSet() {\n\t\treturn changes;\n\t}", "@Override\r\n\t\tpub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the instance of the recycler layout manager and the current search results
@Override protected void onSaveInstanceState(Bundle outState) { outState.putParcelable(SAVED_INSTANCE_LAYOUT_MANAGER, recyclerView.getLayoutManager().onSaveInstanceState()); outState.putSerializable(SAVED_INSTANCE_ADAPTER_DATA, venuesRecyclerAdapter.getVenues()); if(searchView != null) ...
[ "@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState.putInt(\"scroll\", layout_manager.findFirstVisibleItemPosition());\n outState.putParcelableArray(\"movies\", search_grid.getData());\n }", "private void configureRecyclerView() {\r\n // - Reset list\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an array of Strings and prints everything in it
public static void main(String[] args) { String[] names = {"cat", "dog", "rabbit"}; for(int i = 0; i < names.length; i++) { System.out.println(names[i]); } // Creates a list of Strings and prints everything in it List <String> livestock = new ArrayList<String>(); livestock.add("cat"); livestock.add(...
[ "public static void printArray (String [] array){\n for ( String element : array){\n System.out.println(element);\n }\n\n }", "public void printArray(String[] array){\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tSystem.out.print(array[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XVariableDeclaration__Group_3__1__Impl" $ANTLR start "rule__JvmFormalParameter__Group__0" InternalFormat.g:19170:1: rule__JvmFormalParameter__Group__0 : rule__JvmFormalParameter__Group__0__Impl rule__JvmFormalParameter__Group__1 ;
public final void rule__JvmFormalParameter__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFormat.g:19174:1: ( rule__JvmFormalParameter__Group__0__Impl rule__JvmFormalParameter__Group__1 ) // InternalFormat.g:19175...
[ "public final void rule__FormalParameter__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:5522:1: ( rule__FormalParameter__Group__0__Impl rule__FormalParameter__Group__1 )\n // InternalMyDsl.g:5523:2: rule...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether the lift has hit the limit switch at least once
public boolean zeroedOnce() { return zeroedOnce; }
[ "public boolean isExceedingLimit(){\n return this.currentDegree > this.maxDegree;\n }", "boolean hasStoneLimit();", "boolean hasMaxUnavailable();", "boolean hasUpperLimit();", "boolean hasWoodLimit();", "boolean hasMaxCoinLimit();", "private boolean ballDidNotSurpassPaddle1UpperEdge() { return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "correlationsets" element
void unsetCorrelationSets();
[ "public void reset() {\r\n\t\tfor (int i = 0; i < elements.length; i++) {\r\n\t\t\tfor (int j = 0; j < elements[0].length; j++) {\r\n\t\t\t\tset(i,j,true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void unsetReconciliationcode();", "public void resetSets()\n {\n readsSetNode = new ArrayList<>();\n readsSet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onStartTrackingTouch(VerticalSeekBar seekBar) { }
[ "@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" ] ] } }
Compute the square of the distance between this and v, treating both vectors as 4D points.
public double distanceSquared(@Const Vector4 v) { double dx = x - v.x; double dy = y - v.y; double dz = z - v.z; double dw = w - v.w; return dx * dx + dy * dy + dz * dz + dw * dw; }
[ "public synchronized double getDistance(Vector2f v){\n return (float) Math.sqrt((this.x * v.x)+(this.y * v.y));\n\n }", "public double dist(Vector2D v) {\n return Math.sqrt((v.x - this.x) * (v.x - this.x) + (v.y - this.y) * (v.y - this.y));\n }", "public float distance(Vector v)\r\n\t{\r\n\t...
{ "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) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
[ "@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" ] ] } }
Uses an insertion sort (very efficient for small amounts of data) to do an ascending sort of the Planets by surface gravity. Calls the compareGravityTo() comparator of Planet.
void sortByGravity() { for( int p = 1; p < solarSystem.length; p++ ) { Planet tmp = solarSystem[ p ]; int j = p; for( ; j > 0 && tmp.compareGravityTo( solarSystem[ j - 1 ] ) < 0; j-- ) solarSystem[ j ] = solarSystem[ j - 1 ]; solarSyst...
[ "private void sort()\r\n {\n Comparator<Individual> myComparator = new Comparator<Individual>()\r\n { \r\n @Override\r\n public int compare(Individual i1, Individual i2)\r\n {\r\n int res = -1;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Data em que foi criado o aluno
public String getDia(){ return dia; }
[ "protected void iniziaData() {\n super.iniziaDataStandard();\n this.company.findOrCrea();\n this.utente.findOrCrea();\n }", "Ordenacion createOrdenacion();", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create client side open connection to address / port
public DataConnector(String address, int port) throws IOException { this.socket = new Socket(address, port); }
[ "String open(String host, int port);", "private void openConnection() {\n\t\tif (server == null || !server.isConnected())\n\t\t\tserver = new ClientConsole(this.host, this.port);\n\t}", "public void OpenConnection(String address, int port){\n try {\n clientSocket = new Socket(address, port);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to do update. This method is to be used during a transaction, otherwise use the doUpdate(TurbineUserGroupRole) method. It will take care of the connection details internally.
public static void doUpdate(TurbineUserGroupRole obj, Connection con) throws TorqueException { doUpdate(buildCriteria(obj), con); obj.setModified(false); }
[ "int updateByPrimaryKeySelective(AcUserGroupRole record);", "@Override\n public void update(Role role) {\n\n }", "@Override\r\n\tpublic void update(UserGroupVO userGroup) {\n\r\n\t}", "int updateRole(Role role);", "public void update(Userrole entity) {\n\r\n\t}", "public int update(UserRole t) {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new produc tobject and set variables to the text the user inputs
public void saveModifiedProductButtonPushed(ActionEvent event) throws IOException { Product newProduct = new Product(); String tempProductName = productName.getText(); String tempPrice = productPrice.getText(); String tempInstock = productInStock.getText(); String tempMin = produ...
[ "public static void main(String[] args) {\n Scanner input = new Scanner (System.in);\n tuna tunaObject= new tuna(\"Mahira khan\");\n tuna tunaObject2= new tuna(\"Mira khan\");\n //System.out.println(\"Enter your name first gf here: \");\n //String temp = input.nextLine();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert distance from world space to view space
@SuppressWarnings("unused") public float fromWorldToView (float d) { return d * mScaleFactor; }
[ "public void directionToViewSpace(IVector3f direction) {\n\t\tfloat newX, newY, newZ;\n\n\t\tIMatrix4f viewMatrix = getViewMatrix();\n\n\t\tnewX = direction.getX() * viewMatrix.get(0, 0);\n\t\tnewY = direction.getX() * viewMatrix.get(1, 0);\n\t\tnewZ = direction.getX() * viewMatrix.get(2, 0);\n\n\t\tnewX += directi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onDestroy() { super.onDestroy(); last = true; }
[ "@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" ] ] } }
Public Method to return the first vertex
public Vertex getEndPoint1(){ return vi;}
[ "public final Vertex getFirstVertex() {\n Vertex result;\n if (vertexSequence.isEmpty()) {\n result = null;\n } else {\n result = vertexSequence.getFirst();\n }\n return result;\n }", "public Vertex getFirst()\n {\n if ( list == null )\n {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public boolean m12341d() { return this.f11735d; }
[ "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" ] ] } }
$ANTLR end "rule__Create__EAnnotationsAssignment_0_0" $ANTLR start "rule__Create__EAnnotationsAssignment_0_1_1" ../pimar.editor.textual.xwcore.ui/srcgen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:27772:1: rule__Create__EAnnotationsAssignment_0_1_1 : ( ruleEAnnotation ) ;
public final void rule__Create__EAnnotationsAssignment_0_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../pimar.editor.textual.xwcore.ui/src-gen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:27776:1: ( ( rule...
[ "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setea como visitado un pixel
private void setVisitado(Pixel p, boolean contorno) { Pixel pixel = convertirPixel(p); if (pixel != null){ Matriz[pixel.getX()][pixel.getY()] = 1; } }
[ "void setPixel(int pixelIdx, int colorValue);", "public void ccSetPixel(int pxX, int pxY, int pxColor);", "public void setPixel(int x, int y, int p) {\r\n\t\tint index = index(x,y,width);\r\n\t\tpixels[index+Channel.RED.offset] = pixelChannel(p,Channel.RED);\r\n\t\tpixels[index+Channel.GREEN.offset] = pixelChan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To test if the data is not empty.
public Validator notEmpty(String data, int resId) throws ValidateException { if ("".equals(data)) { throw new ValidateException(mApp.getString( R.string.verify_not_empty, mApp.getString(resId))); } return this; }
[ "public abstract boolean isDataEmpty();", "public boolean isEmpty(){\n return data.isEmpty();\n }", "@Override\n public boolean isEmpty () {\n return data.isEmpty ();\n }", "public boolean empty() {\n return theData.size() == 0;\n }", "public boolean isEmpty() {\n \tif(da...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'clusterId' field.
public void setClusterId(java.lang.String value) { this.clusterId = value; }
[ "public Long getClusterId() {\n return clusterId;\n }", "public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n connectionCase_ = 1;\n connection_ = value;\n onChanged();\n return this;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Query for a specific task in the database with a query key.
public List<Task> query(String queryKey) { List<Task> tasks = new ArrayList<>(); try { File databaseFile = new File(databasePath); BufferedReader csvReader = new BufferedReader(new FileReader(databaseFile)); String line; while ((line = csvReader.readLine()...
[ "EcTask selectByPrimaryKey(Integer taskNo);", "Task findByName(String id);", "public void query(String queryKey) throws IOException {\n int index = new Random().nextInt(procList.size());\n int s = network.get(index).getSocket();\n\n Socket sock = new Socket(\"localhost\", s);\n Print...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a showtime with the given information.
public Showtime(Movie movie, Cineplex cineplex, Cinema cinema, Language language, Date startTime, boolean noFreePasses, boolean isPreview, Language[] subtitles) { this.movie = movie; this.cineplex = cineplex; this.cinema = cinema; this.seating = ne...
[ "public void showTime() \n {\n showText(\"Time: \" + time, 845, 15);\n }", "public ShowTime(Movie movie, LocalDate dateOfMovie, LocalTime timeOfMovie, HashMap<Character, Seat[]> seatLayout,\n Cineplex cineplex, Cinema cinema, MovieEnums.Language language, MovieEnums.Subtitle subtit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ compiled from: Clock / renamed from: com.facebook.common.l.b
public interface C5361b { /* renamed from: a */ public static final long f21945a = Long.MAX_VALUE; /* renamed from: a */ long mo4020a(); }
[ "public void onCreateClock() {\n }", "interface C3050m4 {\n Clock zzl();\n\n Context zzm();\n\n zzfo zzp();\n\n zzer zzq();\n\n zzx zzt();\n}", "public interface Clock {\n\n enum Type {\n MILLIS, SECOND, MINUTE, HOUR, DAY\n }\n\n Clock DEFAULT = new DefaultClock();\n\n /**\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action Foo in the provided background thread with the provided parameters.
private void handleActionFoo(String param1, String param2) { // TODO: Handle action Foo // throw new UnsupportedOperationException("Not yet implemented"); startActivity(new Intent(this, ScreenShotActivity.class)); }
[ "public void run() {\r\n\t\t// TODO Need exception handling\r\n\t\ttry {\r\n\t\t\tObject obj = target.internalInvoke(actionName, params, signature);\r\n\t\t\ttarget.notifyAsynchRequestComplete(new StringBuilder(actionName).append(renderParams(params)).toString(), obj, invocationIdentifier);\r\n\t\t} catch (Exceptio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end method mouseClicked handle event when mouse pressed
public void mousePressed( MouseEvent event ) { statusBar.setText( "Pressed at [" + event.getX() + ","+ event.getY() + "]"); }
[ "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }", "public void mouseClicked(int button);", "@Override\n\t\t\tpublic void mouseCl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds one ingredient to user's personal list of most used ingredients
private void addNewIngredient(String newIngredient){ boolean exists = false; for(int i = 0; i < this.ingredients.size(); i++){ if(ingredients.get(i).getIngredientName().equals(newIngredient)){ ingredients.get(i).increment(); exists = true; ...
[ "public void addIngredient() {\n ingredientRecyclerAdapter.addIngredient();\n }", "void addItems(String ingredient, int quantity){\n for (Ingredient ingredient1: items){\n if (ingredient1.getIngredientName().equals(ingredient)) ingredient1.setQuantity(ingredient1.getQuantity() + quantity);\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ID of the filesystem that should be detached. string filesystem_id = 2 [(.yandex.cloud.length) = "&lt;=50"];
boolean hasFilesystemId();
[ "public String getFileId() {\n Object ref = fileId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileId_ = s;\n }\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Optional<Customerinfo> findByCustId(int customerId, int shopId) { return null; }
[ "@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" ] ] } }
Return the result of applying this permutation to P modulo the alphabet size.
int permute(int p) { int x = wrap(p); return alpha.get(x); }
[ "int permute(int p) {\n if (!_cycleMap.containsKey(String.valueOf(alphabet().toChar(p)))) {\n throw new EnigmaException(\"Permute Error:\"\n + \" there is no such interger or chara in the alphabet\");\n } else {\n char from = _IntToCharMap.get(p);\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method removes the artifacts with scopes other than COMPILE, TEST or a null scope.
public static Set<AbstractChosenArtifactVersion> filterResolved(SearchContext searchContext, Set<AbstractChosenArtifactVersion> chosenArtifactVersions) { Set<AbstractChosenArtifactVersion> result = new LinkedHashSet<AbstractChosenArtifactVersion>(); for (AbstractChosenArtifactVersion artifact : chosenArtifactVersio...
[ "void scopeDeactivated(OntologyScope scope);", "void scopeDeregistered(OntologyScope scope);", "void finalizeScopes() {\n this.latestState = Collections.emptyList();\n }", "public Builder clearScope() {\n if (scopeBuilder_ == null) {\n scope_ = java.util.Collections.emptyList();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update diem nguoi choi
public long updatePlayer(String id, String name, int diem) { ContentValues cv = new ContentValues(); cv.put(Name, name); cv.put(Diem, diem); return ourDb.update(Create_Table, cv, RowID + " = " + id, null); }
[ "private void InputOutputTextFieldUpdate(Character c)\n {\n InputOutputTextField.setText(InputOutputTextField.getText()+c);\n this.ButtonClear.setEnabled(true);\n this.ButtonClear.setText(\"CE\");\n }", "@Override\n public void write(int b) throws IOException {\n dialo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adiciona a parte imaginaria do numero.
public void adicionaParteImaginaria(INumero operando) { }
[ "public void crearImagen() {\n imagen = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_RGB);\n Graphics2D g2 = imagen.createGraphics();\n g2.setColor(getColorFondoPantallaDibujo());\n g2.fillRect(0, 0, this.getWidth(), this.getHeight());\n dibujarFigur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / / / /
public GsonBuilder setFieldNamingPolicy(FieldNamingPolicy namingConvention) { /* 286 */ this.fieldNamingPolicy = namingConvention; /* 287 */ return this; /* */ }
[ "private void calculatePaths() {\n\n\n }", "protected int snapBits(){return 9;}", "@Override\n public int getWidth(){\n return width - 10;\n }", "private static void EX5() {\n\t\t\r\n\t}", "abstract protected String roam();", "public static void main (String arg[]){\n\tSystem.out.println(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transform binary code to decimal value.
private int bin2dec(byte[] binCode) { int codeLength = binCode.length; int res=0; int pow=0; for(int i=codeLength-1;i>=0;i--){ res=(binCode[i]==1)?(int)(res+ Math.pow(2, pow)):res; pow++; } return res; }
[ "private int binToDec(String binary) {\n \t\tint decimal = 0;\n \t\tint counter = 0;\n \t\tint conversion = 0;\n \t\tString binOne = new String();\n \t\t\n \t\t//Convert each binary digit until you reach the end of the binary number.\n \t\twhile (binary.length() > counter) \n \t\t{\n \t\t\t//Turn one digit, startin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/loop through all rows from base to top
public void run() { for (int i=0; i<BRICKS_IN_BASE; i++) { /*loop through all bricks on a given row starting with BRICKS_IN_BASE and ending with BIB - i forming a pyramid*/ for (int j=0; j<BRICKS_IN_BASE-i; j ++){ /*initializes starting x and y coordinates*/ int startingX = (getWidth() - (BRICKS_I...
[ "private void addInitialRows()\n {\n for (int count = minRow; count >= 1; count--)\n {\n addRow();\n }\n }", "public void showAll() {\n for(int i = top; i >= 0; i--) {\n }\n }", "@Override\n\tpublic int[][] next() {\n//\t\tSystem.err.println(\"READING TABLE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that allows the person to change the PIN The method return false if at any time, the person has entered the exit button, 0 True, otherwise, so the process can continue
public boolean ChangePIN(Scanner sc) { String pin; CardRepository cardRepository = CardRepository.getInstance(); LogService logService = LogService.getInstance(); System.out.println("| Enter your old PIN!"); // The person only has 3 tries to enter the PIN, after that, the card ...
[ "@Override\n\tpublic int enterPin(String password, int acNumber) {\n\t\treturn 0;\n\t}", "protected String set_new_pin(String pin){\r\n System.out.println(\"Enter new pin : \");\r\n Scanner sc = new Scanner(System.in); //System.in is a standard input stream\r\n pin = sc.nextLine();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes cancel
private JButton getCancel() { if (cancel == null) { cancel = new JButton(); cancel.setText("Cancel"); cancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { dispose(); } }); } return cancel; }
[ "protected void cancel() {\n }", "@Override\n public void cancel() {\n\n }", "@Override\r\n\tpublic void cancel() {\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void cancel() {\r\n \t\tcancelled = true;\r\n \t}", "public void cancel(){\n \t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sort the list into old and new members based on if values are numerical(new), Sort the old members, then append the new ones in there original order.
static List<String> orderedJunctionBoxes(int numberOfBoxes, List<String> boxList) { List<List<String>> oldList = new ArrayList<>(); List<String> newList = new ArrayList<>(); boxList.forEach(str -> { String[] strArray = str.split(" "); boolean isNew = true; fo...
[ "private ArrayBasedList<Miles> sortMilesList(ArrayBasedList<Miles> newMilesList) {\n\t\t//bubble sort\n\t\tfor (int i = newMilesList.size() - 1; i >= 0; i--) {\n\t\t for (int j = 1; j <= i; j++) {\n\t\t if (newMilesList.get(j - 1).getMiles() > newMilesList.get(j).getMiles()) {\n\t\t Miles temp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }