query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Instantiates a new student exam dao sql.
private StudentExamDaoSql() { }
[ "public ExamDao() {\n\t\tsuper(Exam.EXAM, ro.ghasachi.bt.persistence.tables.pojos.Exam.class);\n\t}", "public ProfessorDAO() {\n database = new Database();\n }", "public SchoolCourseStudentDAOImpl() {\r\n\t\tsuper();\r\n\t}", "TableExam(String exam, String date, String age) {\n this.exam ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "AppointmentsToIgnore" element
boolean isSetAppointmentsToIgnore();
[ "boolean isNilAppointmentsToIgnore();", "void setNilAppointmentsToIgnore();", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore getAppointmentsToIgnore();", "void setAppointmentsToIgnore(com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore appointmentsToIgnore);", "bool...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new enumerable consisting of repeating values.
public static <T> Enumerable<T> repeat(Supplier<T> supplier, int iterations) { return new Enumerable<>(() -> new RepeatIterator<>(supplier, iterations)); }
[ "IRepeat copy();", "public Enumerable<T> copy() {\n LinkedList<T> list = new LinkedList<>();\n forEach(x -> list.add(x));\n\n return new Enumerable<>(() -> list.iterator());\n }", "public Iterator makeFullIterator() {\r\n array = new String[] { \"a\", \"b\", \"c\" };\r\n li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
buscar un alumno por id
public static Alumno getAlumnoById(int id){ //instancia del alumno Alumno a = new Alumno(); try{ //obtener la conexion Connection con = Acciones_alumno.getConnection(); //querry String q = "select * from Alumnos where id_alu =...
[ "public Alumno buscar(int id) throws AccesoDatosException;", "public void setIdAlumno(int value) {\n this.idAlumno = value;\n }", "public int getIdAlumno() {\n return idAlumno;\n }", "tbl_clacousch selectByPrimaryKey(Integer id);", "ParametrosKeycloack buscarPorId(Integer id);", "Socia...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__S_Equations__Group__2" $ANTLR start "rule__S_Equations__Group__2__Impl" InternalGaml.g:8698:1: rule__S_Equations__Group__2__Impl : ( ( rule__S_Equations__FacetsAssignment_2 ) ) ;
public final void rule__S_Equations__Group__2__Impl() throws RecognitionException { int rule__S_Equations__Group__2__Impl_StartIndex = input.index(); int stackSize = keepStackSize(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 487) ) { return ; } ...
[ "public final void rule__S_Equation__Group__2() throws RecognitionException {\n int rule__S_Equation__Group__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 504) ) { return ; }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves an array of SampletypeBean using the relation table Contractsampletype given a ActBean object.
public SampletypeBean[] loadSampletypeViaContractsampletype(ActBean pObject) throws SQLException { Connection c = null; PreparedStatement ps = null; String strSQL = " SELECT " + " *" + " FROM " + " ...
[ "public ContractsampletypeBean[] loadContractsampletypeViaContractsampletype(ActBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n String strSQL = \" SELECT \"\n + \" *\"\n + \" FROM \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves a list of job identifiers for jobs belonging to a given userId out of a list jobId of specified job identifiers in one of the states described in the array jobStatusType. The list of identifiers returned can only be a subset of the jobId list passed as a parameter. A userId null means that the operation is be...
public List<String> retrieveJobId(List<String> jobId, String userId, int[] jobStatusType, Calendar startStatusDate, Calendar endStatusDate) throws DatabaseException, IllegalArgumentException;
[ "public List<String> retrieveJobId(int[] jobStatusType, String queueName, String batchSystem, String userId) throws DatabaseException, IllegalArgumentException;", "public List<String> retrieveJobId(String delegId, int[] jobStatusType, String userId) throws DatabaseException, IllegalArgumentException;", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This is a program that prompts a user to enter a number between 1 and 100 and then tells the user whether the number is odd or even. Under some conditions the program may also tell the user a range that the number falls within.
public static void main(String[] args) { Scanner scnr = new Scanner(System.in); String name; String endProgram = "y"; // initial user greeting System.out.println("Please enter your name: "); name = scnr.nextLine(); System.out.println("Hello, " + name + "."); /* A do while loop is used to prompt use...
[ "public static void main(String[] args) {\n Scanner data = new Scanner(System.in);\n\n System.out.println(\"Please enter the number even or odd\");\n int number = data.nextInt();\n\n if (number % 2 ==0){ //number /2 = 0\n System.out.println(\"your number is even number\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for the COM property "EnableRunImmediately"
@DISPID(30) // = 0x1e. The runtime will prefer the VTID if present @VTID(35) boolean enableRunImmediately();
[ "public java.lang.Boolean getSynchronizeImmediately() {\r\n return synchronizeImmediately;\r\n }", "public Boolean getEnableAutoReconnect() {\n\t\treturn this.enableAutoReconnect;\n\t}", "public void setSynchronizeImmediately(java.lang.Boolean synchronizeImmediately) {\r\n this.synchronizeImmed...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Opens the to do list activity and pass the trip id with it
public void goToToDoList() { if (isComplete()) { this.saveTrip(false); Intent intent = new Intent(this, ToDoListActivity.class); intent.putExtra("trip_id", Integer.toString(NewTrip.this.activeTrip.getID())); startActivity(intent); } else { Toast.makeText(NewTrip.this, "All Fields Require...
[ "public void startToDoList(View view) {\n\n startActivity(new Intent(this, toDoNewList.class));\n }", "public void startViewTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this,TripHistoryActivity.class);\r\n startActivity(intent);\r\n\t}", "private vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XCatchClause__Group__3" $ANTLR start "rule__XCatchClause__Group__3__Impl" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14936:1: rule__XCatchClause__Group__3__Impl : ( ')' ) ;
public final void rule__XCatchClause__Group__3__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14940:1: ( ( ')' ) ) /...
[ "public final void rule__XCatchClause__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:13322:1: ( rule__X...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 sendID = 2;
int getSendID();
[ "int getSendid();", "int getRecvID();", "long getSendPlayerId();", "int getReceiverid();", "public Integer getSendid() {\n return sendid;\n }", "public Integer getSendId() {\r\n return sendId;\r\n }", "Gogirl.GoGirlBaseMsg.PacketId getCid();", "int getMsgid();", "public int getSe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to move files from one directory to another
void moveFile(String pathToFile, String pathDirectory);
[ "private void moveFilesToDiffDirectory(Path sourcePath, Path destinationPath) {\n try {\n Files.move(sourcePath, destinationPath,\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n //moving file failed.\n e.printStackTrace();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo para listar Salas
public List<Salas> listar(){ return salaDAO.findSalasEntities(); }
[ "public List<Salon> listarSalones();", "public List<Salon> listarSalonesTodos(Integer id, String nombre);", "public List getSalutaionList() {\r\n return salutaionList;\r\n }", "private void buscarSala(){\n Query query = HibernateUtil.getCurrentSession().\n createQuery(\"FROM Sa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a job to the queue of jobs that have to be executed. As soon as a thread is available, the thread will retrieve a job from this queue if if one exists and start processing it.
public void addJob(Runnable r) throws InterruptedException { queue.add(r); }
[ "public void addJob(Job job){\n job.setState(State.QUEUED);\n jobQueue.add(job);\n }", "public void enqueueJob(AdmwlTask<Result> job){\n if (!isRunning.get()){\n logger.info(\"System could not accept a new job as it is terminated\");\n return;\n }\n\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updateCustomerModel updates the customer view via model.
public void updateCustomerModel() { customerList = bank.listCustomer(); customerModel.setWrappedData(customerList); }
[ "public void updateCustomer(Customer customer);", "public void update(Customer customer);", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/{id}\", params = \"form\", method = RequestMethod.POST)\n\tpublic String update(@Valid Customer customer, BindingResult bindingResult, \n\t\t\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the payment_expectation_days value for this CreditsafeNlPaymentExpectationsSummary.
public java.math.BigDecimal getPayment_expectation_days() { return payment_expectation_days; }
[ "public void setPayment_expectation_days(java.math.BigDecimal payment_expectation_days) {\n this.payment_expectation_days = payment_expectation_days;\n }", "public java.math.BigDecimal getIndustry_average_payment_expectation_days() {\n return industry_average_payment_expectation_days;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks the semantics of the external declaration.
public void checkSemantics() {}
[ "private static boolean declarationValidator(Declaration newDeclaration){\r\n\t\tif(newDeclaration == null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isDeclaration();", "boolean isExternalType();", "public boolean isExternalType() {\n return true;\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case: 5040:Event:Verify that user should able to cancel existing reservations and Verify the Cancellation popup while cancelling the Booking Reviewed by: Aditya on 5Feb2019, it covers test case: 5040 Test Run: PASS
@Test(enabled=false) public void verifyGroupEventBookingAndCancelBooking_TCID_5040() throws InterruptedException, AWTException { System.out.println("----> 5040:Event:Verify that user should able to cancel existing reservations and Verify the Cancellation popup while cancelling the Booking"); kidsGroupEventPage.val...
[ "@Test(enabled=false)\n\tpublic void verifyGroupEventBookingAndCancelTheCancelBookingWindow_TCID_5040() throws InterruptedException, AWTException {\n\t\tSystem.out.println(\"----> 5040:Event: Verify the Cancellation popup while cancelling the Booking\");\n\t\tkidsGroupEventPage.validateSearchLocation(\"\");//Enter ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this will decrement the correct ticket type after removing the seat, but before removing the order completely from the list
public void decrementTicketTypes(char removeThis) { if(removeThis == 'A') adult--; else if(removeThis == 'C') child--; else if(removeThis == 'S') senior--; }
[ "public void removeCompanyTicket(Ticket t){\r\n boolean deleted=false;\r\n \r\n for(int i=0;i<this.ourTickets.size()&&!deleted;i++){\r\n if(this.ourTickets.get(i)==t){\r\n this.ourTickets.remove(i);\r\n deleted=true;\r\n }\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method creates a GrowthFertiliser which has a purchasing price of $20 and reduces the crop growing time by 1 day. It can only be used on a Crop.
public GrowthFertiliser() { super("growth fertiliser", 20, "Reduces the crop growing time by 1 day."); }
[ "private void grow() {\n\t\tif (_growthRatio > 1 && (_age & 0x07) == 0x07 && alive && _energy >= _mass/10) {\n\t\t\t_growthRatio--;\n\t\t\tdouble m = _mass;\n\t\t\tdouble I = _I;\n\t\t\tsymmetric();\n\t\t\t// Cynetic energy is constant. If mass changes, speed must also change.\n\t\t\tm = FastMath.sqrt(m/_mass);\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the viewer's clusters or null
public int[][] getClusters() { return null; }
[ "public SME_Cluster[] getClusters();", "public int[][] getClusters() {\r\n return clusters;\r\n }", "@Override\r\n public List<ISpectralCluster> getClusters() {\r\n final Collection<ISpectralCluster> clusters = engine.getClusters();\r\n List<ISpectralCluster> holder = new ArrayList<IS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the TextView undoCounter to undoLeft
public void updateUndoCounter(int undoLeft) { TextView textView = findViewById(R.id.undoCounter); textView.setText(String.valueOf(undoLeft)); }
[ "public void setUndo()\r\n\t{\r\n\t\tthis.undo = 3;\r\n\t}", "void setNumUndo(int undo) {\n this.numUndo = undo;\n }", "public void undo(){\n \ttokenIndex--;\n }", "public void undo() { \n\t\t\taddRedo(text);\n\t\t\tString temp = undoStack.pop();\n\t\t\ttext = temp;\n\t\t\taddText(temp);\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Attaches a disk volume to a virtual machine.
public AttachVolumeResponse attachVolume(String diskVolumeId, String virtualMachineId, HashMap<String,String> optional) throws Exception { LinkedList<NameValuePair> arguments = server.getDefaultQuery("attachVolume", optional); ...
[ "VolumeAttachment attachVolumeToServerAsDevice(String volumeId, String serverId, String device);", "public EC2Volume attachVolume(EC2Volume request) {\n EC2Volume resp = new EC2Volume();\n try {\n request.setDeviceId(mapDeviceToCloudDeviceId(request.getDevice()));\n CloudStackV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of aIntegerDataSourceValue. This is the last value returned by the data source for aInteger.
public Long getAIntegerDataSourceValue() { return aIntegerDataSourceValue; }
[ "public static int getValueInt()\n {\n return Util.valueInt;\n }", "public Integer asInteger() {\r\n\t\treturn DataConverterRegistry.convert(Integer.class, value);\r\n\t}", "IntegerValueType getIntegerValue();", "EDataType getInteger();", "public final int intValue()\n\t{\n\t\treturn this.numbe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Plays a move as specified by the user's mouse click. Returns true if vertical is to play next, false otherwise. If an illegal move is attempted, this method has no effect and returns the value passed in for verticalToPlay.
public static boolean handleMouseClick(boolean[][] board, boolean verticalToPlay) { // TODO You have to write this while(!StdDraw.isMousePressed()){ // Wait for mouse press } double x = Math.round(StdDraw.mouseX()); double y = Math.round(StdDraw.mouseY()); while (StdDraw.isMousePressed()) { // Wait fo...
[ "private boolean moveTowardsPoint() {\n\tx_ += xspeed_;\r\n\ty_ += yspeed_; //Move towards goal point.\r\n\t\t\r\n\t\tif ((xspeed_ > 0) && (x_ >= goalx_)) {\r\n\t\t\txspeed_ = 0;\r\n\t\t\tx_ = goalx_;\r\n\t\t} else if ((xspeed_ < 0) && (x_ <= goalx_)) {\r\n\t\t\txspeed_ = 0;\r\n\t\t\tx_ = goalx_;\r\n\t\t} //If X is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a topologically sorted stack given parent operation.
private void topologicalSort(final Operation operation, final Deque<Operation> stack, final Set<Operation> visited) { LOG.trace("Topologically sorting operation: {} with stack: {} and visited: {}", operation, stack, visited); visited.add(operation); //DFS active edges & add to sta...
[ "public abstract OperatorImpl getParent();", "public Object getParent() { return _parentStack.peekFirst(); }", "public static List<Operation> getOperationChain(DataSource chainTop)\n\t{\n\t\tDeque<Operation> chainRev = new ArrayDeque<Operation>();\n\n\t\tList<Operation> leaves = chainTop.getAllLeafOperations()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor that creates a new ReplyMessageDBRepository
public ReplyMessageDBRepository(String url, String username, String password, Repository<Long, User> userDBRepository) { this.url = url; this.username = username; this.password = password; this.userDBRepository = userDBRepository; }
[ "public Reply() {\n\n }", "public ForumReply() {}", "public Reply() {\n\t\tsuper();\n\t}", "public Message()\n {\n // Hibernate only requires no-arg constructor\n }", "public Reply(String id,\n String ownerId,\n String questionId,\n String cont...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add value v in a new node at the beginning of the list and return the new node
public Node prepend(E v) { // TODO: This is the fourth method to write and test if (this.size == 0){ Node N0 = new Node(null, null, v); this.first = N0; this.last = N0; size = 1; return N0; } else{ Node N0 = new Node(null, this.first, v); this.first.prev = N0; this.first = N...
[ "public Node append(E v) {\r\n\t\t// TODO:This is the third method to write. Then you can begin testing\r\n\t\t// this method AND toStringand toString reverse at the same time.\r\n\r\n\t\t\r\n\t\tif (this.size == 0) {\r\n\t\t\tNode N1 = new Node(null, null, v);\r\n\t\t\tthis.first = N1;\r\n\t\t\tthis.last = N1;\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A214: Erzeugen Sie ein 2D short[][] Array mit nZeilen und mSpalten, dessen Werte im Intervall [Short.MIN_VALUE, Short.MAX_VALUE] liegen.
public static short[][] genRegShortArray(int n, int m){ short[][] short2DAry = new short[n][m]; for(int i=0; i<n; i++){ for(int j=0; j<m; j++){ short2DAry[i][j] = genShort(); } } return short2DAry; }
[ "public native short[][] __short2dArrayMethod( long __swiftObject, short[][] arg );", "public short[][] getShortArray2() throws MathLinkException;", "public abstract short[] toShortArray();", "public short[] getShortArray1() throws MathLinkException;", "public short[] floodFill2DShort() {\r\n\r\n int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Runtime Info' attribute. If the meaning of the 'Runtime Info' attribute isn't clear, there really should be more of a description here...
String getRuntimeInfo();
[ "String getRuntime();", "public String runtime() {\n return this.runtime;\n }", "public int getRuntime() {\n return runtime;\n }", "java.lang.String getRunInfo();", "public abstract String getRuntimeDescription();", "public void runtimeInfo(String info) {\n\t// log(\"Info:\", source, m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Positive test case for getMessageCollectionFromFolder method with mandatory parameters.
@Test(enabled = true, description = "outlookmail {getMessageCollectionFromFolder} integration test with mandatory " + "parameters.") public void testGetMessageCollectionFromFolderWithMandatoryParameters() throws IOException, JSONException { esbRequestHeadersMap.put("Action", "urn:getMessageCollectionFromFol...
[ "@Test\n public void testLoadMessageListFromFolder() {\n System.out.println(\"loadMessageListFromFolder\");\n String folder = \"\";\n ArrayList<String> expResult = new ArrayList<String>();\n ArrayList<String> result = instance.loadMessageListFromFolder(folder);\n assertEq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs NONNULL_PTR this_ptr);
public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
[ "public static native long ChannelManager_get_current_default_configuration(long this_arg);", "public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);", "public static native long UserConfig_get_own_channel_config(long this_ptr);", "public static native long ChannelConfig...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Vaisseau est Ordonnee Couverte'.
Vaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();
[ "Vaisseau createVaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_estAbscisseCouverte createVaisseau_estAbscisseCouverte();", "Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();", "Vaisseau_longueur createVaisseau_longueur();", "Vaisseau_occupeLaPosition createVaissea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Navigates the specified graph, identifying any nodes which meet the selection criteria of the market data selectors. Those which do match will have new nodes inserted into the graph, proxying the market data ndoes and providing the ability to perform transformations on the data as required.
public Map<DistinctMarketDataSelector, Set<ValueSpecification>> modifyDependencyGraph(DependencyGraph graph, ComputationTargetResolver.AtVersionCorrection resolver) { ArgumentChecker.notNull(graph, "graph"); String configu...
[ "public Set<NodesData<T>> traverse(Traversable partOfGraph){\r\n Queue<Node<T>> checkList = new LinkedList<Node<T>>();\r\n Node<T> startIndex = partOfGraph.getOrigin();\r\n discoveredQueue.add(new NodesData<>(startIndex,0));\r\n checkList.add(startIndex);\r\n while (!checkList.isE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
build block class definition for current regset instance
@Override protected void buildBaseBlockClass(String uvmBlockClassName, Boolean hasCallback) { //System.out.println("UVMRegsBuilder buildBaseBlockClass: fullId=" + uvmBlockClassName + ", getUVMBlockID()=" + getUVMBlockID()); String refId = ""; // ref used for base block structure lookup // generate register h...
[ "@Override\n\tprotected void buildBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t// create text name and description if null\n\t\tString id = regSetProperties.getId();\n\t\tString refId = regSetProperties.getBaseName(); // ref used for block structure lookup\n\t\t\n\t\tString textName = regSetPro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the follow up.
public void setFollowUp(final String followID) { followUp = followID; }
[ "public void setFollowUpNeeded(String followUpNeeded) {\r\n this.followUpNeeded = followUpNeeded;\r\n }", "private void setupFollowButton(User userElement) {\n // if the user was in a previous state of being followed by the current user\n if (userElement.isFollowed) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__SchedulerDef__Group__5__Impl" $ANTLR start "rule__SchedulerDef__Group__6" InternalDsl.g:19820:1: rule__SchedulerDef__Group__6 : rule__SchedulerDef__Group__6__Impl rule__SchedulerDef__Group__7 ;
public final void rule__SchedulerDef__Group__6() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:19824:1: ( rule__SchedulerDef__Group__6__Impl rule__SchedulerDef__Group__7 ) // InternalDsl.g:19825:2: rule__SchedulerDef__Group__6_...
[ "public final void rule__SchedulerDef__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:19797:1: ( rule__SchedulerDef__Group__5__Impl rule__SchedulerDef__Group__6 )\n // InternalDsl.g:19798:2: rule__Scheduler...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of GenerateHL7MessageId method, of class HL7MessageIdGenerator. device id, no input
@Test public void testGenerateHL7MessageId_1arg_NoInput() { log.info("testGenerateHL7MessageId_1arg"); II result = HL7MessageIdGenerator.GenerateHL7MessageId(null); assertEquals(result.getRoot(), HL7Constants.DEFAULT_LOCAL_DEVICE_ID); assertNotNull(result.getExtension()); }
[ "@Test\n public void testGenerateMessageId() {\n log.info(\"testGenerateMessageId\");\n\n String result = HL7MessageIdGenerator.GenerateMessageId();\n assertNotNull(result);\n }", "@Test\n public void testGenerateHL7MessageId_1arg() {\n log.info(\"testGenerateHL7MessageId_1arg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string type_money = 14; optional string type_money = 14;
boolean hasTypeMoney();
[ "java.lang.String getTypeMoney();", "public void setMoneyType(String moneyType) {\n this.moneyType = moneyType == null ? null : moneyType.trim();\n }", "public void setCashType (String CashType);", "public String getMoneyType() {\n return moneyType;\n }", "@Test\n\tpublic void test_Valid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
push value into stack array
public void push(T pushValue) { if (top == stackArr.length - 1) resize(2 * stackArr.length); stackArr[++top] = pushValue; }
[ "public void push(T value) {\n \tstack.add(value);\n }", "public void push(int val) {\n\t\tif ( isFull() )\n\t\t\treturn ;\n\t\tstack[++ topIndex] = val ;\n\t}", "public void push(int newValue)\r\n {\r\n checkForReSize();\r\n stackTopIndex++;\r\n stackData[stackTopIndex] = newValue...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a BufferedFSInputStream with the specified buffer size, and saves its argument, the input stream in, for later use. An internal buffer array of length size is created and stored in buf.
public BufferedFSInputStream(FSInputStream in, int size) { super(in, size); }
[ "public FastBytesOutputStream(int size) \r\n {\r\n \tbuf = new byte[size];\r\n }", "protected InputStream createBufferedBoundedStream(long offset, int size, boolean pread) {\n return new BufferedInputStream(new BoundedRangeFileInputStream(istream, offset, size, pread),\n Math.min(DEFAULT_BU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define o atributo nossoNumeroStringRetornoSP
public void setNossoNumeroStringRetornoSP(String nossoNumeroStringRetornoSP) { this.nossoNumeroStringRetornoSP = nossoNumeroStringRetornoSP; }
[ "public java.lang.String getNossoNumero() {\n return nossoNumero;\n }", "public void setNossoNumeroString(String nossoNumeroString) {\n this.nossoNumeroString = nossoNumeroString;\n }", "@Override\n public String getParteNumerica() {\n \n return getNie().substring(1, getNie(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the time list
public static List<Double> getTimeList() { return timeList; }
[ "java.util.List<eu.trentorise.smartcampus.services.smartplannerdata.data.message.Smartplannerdata.TripTime> \r\n getTripTimeList();", "java.util.List<proto.Logline.LogLine.Timing> \n getTimingsList();", "public List<TimeSpan> getRequestedTimes()\r\n {\r\n return myRequestedTimes;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Search ONE item in the Spotify database that fits best. Search 'type' (track, artist, album, playlist) is automatically set using the information given for track, artist, album and playlist.
public JSONObject searchBestItem(String track, String artist, String album, String playlist, String genre){ if (Is.nullOrEmpty(this.token) && (System.currentTimeMillis() - this.lastRefreshTry) < FAILED_AUTH_TIMEOUT ){ return JSON.make( "error", "not authorized", "status", 401 ); } if ((this.token...
[ "private void searchAndUpdateList(String artistId)\n {\n\n SpotifyService spotifyService;\n SpotifyApi api;\n\n if (artistId == null) { // prevent null exception\n // errmsg (no artist name)\n Toast.makeText(getActivity(), getResources().getText(R.string.msg_system_erro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get this Entity's EnumCreatureAttribute
public EnumCreatureAttribute getCreatureAttribute() { return EnumCreatureAttribute.UNDEAD; }
[ "public EnumCreatureAttribute getCreatureAttribute()\n {\n return EnumCreatureAttribute.ILLAGER;\n }", "public EnumCreatureAttribute getCreatureAttribute()\n {\n return EnumCreatureAttribute.UNDEFINED;\n }", "public EnumCreatureAttribute getCreatureAttribute()\n {\n return En...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a pretty string of all valid rerolls and explosions for a roll with the given reroll and explosion behavior.
public static String getPrettyString(Reroll reroll, Explosion explosion) { StringBuilder builder = new StringBuilder(); if (null != reroll) { builder.append(reroll); } if (null != explosion) { builder.append(explosion); } return builder.toString(); }
[ "private static String getCorrectlyFormattedRulesheet(Game game) {\n StringBuilder sb = new StringBuilder();\n for (Gdl gdl : game.getRules()) {\n sb.append(gdl).append(\"\\n\");\n }\n return sb.toString();\n }", "public String rollDescription() {\n\t\t// TODO: Use the me...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the read/write location in which the given bundle can manage private state.
public IPath getStateLocation(Bundle bundle) throws IllegalStateException { assertLocationInitialized(); return getStateLocation(bundle.getSymbolicName()); }
[ "String getPrivateKeyLocation();", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "String getFilestoreLocation();", "public abstract String getReusableBlocksLocation();", "protected final String getPrivateKeyLocation() {\n return this.privateKeyLocation;\n }", "public Fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the vmDirectPathGen2UnsupportedReason value for this HostCapability.
public java.lang.String[] getVmDirectPathGen2UnsupportedReason() { return vmDirectPathGen2UnsupportedReason; }
[ "public java.lang.String getVmDirectPathGen2UnsupportedReasonExtended() {\r\n return vmDirectPathGen2UnsupportedReasonExtended;\r\n }", "public void setVmDirectPathGen2UnsupportedReason(java.lang.String[] vmDirectPathGen2UnsupportedReason) {\r\n this.vmDirectPathGen2UnsupportedReason = vmDirectPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes all runtime objects for the process instance with the given instance UUID and delete also recorded data from the journal. If this instance was not found in the journal, then the archived instance is deleted from history. If the instance represented by the given instanceUUID has a parentInstance, then Undeletabl...
@POST @Path("deleteProcessInstance/{instanceUUID}") void deleteProcessInstance( @PathParam("instanceUUID") ProcessInstanceUUID instanceUUID, @FormParam("options") final Map<String, String> options) throws InstanceNotFoundException, UndeletableInstanceException, RemoteException;
[ "@POST @Path(\"deleteAllProcessInstances/{processUUID}\") \n void deleteAllProcessInstances(\n @PathParam(\"processUUID\") ProcessDefinitionUUID processUUID,\n @FormParam(\"options\") final Map<String, String> options) \n throws ProcessNotFoundException, UndeletableInstanceException, RemoteException;", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the staging data provider
public abstract StagingFileDataProvider getProvider();
[ "private PatchStore provider() {\n if ( provider == null )\n provider = createProvider();\n return provider;\n }", "public String getStagingDiskType() {\n return this.stagingDiskType;\n }", "public DataStorage getDataStorage();", "@Override\n public String getProviderN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Placer les mines sur la carte. Intervalle ou aucune mine ne peut apparaitre: [[xInterdit1, xInterdit+1],[yInterdit1, yInterdit+1]]
public void mine(int xInterdit, int yInterdit) { Intervalle2D inter = new Intervalle2D( new Intervalle(xInterdit-1, xInterdit+2), new Intervalle(yInterdit-1, yInterdit+2) ); //ON PLACE LES MINES for(int i=0;i<nbrMine;i++) { int x = new Random().nextInt(tailleX); int y = new Ran...
[ "private void setMines(){\n Random random = new Random();\r\n int counter = mines;\r\n while(counter>0){\r\n int rx = random.nextInt(this.x); //without +1 because it can be 0\r\n int ry = random.nextInt(this.y);\r\n if( ! this.grid[rx][ry].isMine() ){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get Poke and update ListView
@Override public void onDataChange(DataSnapshot dataSnapshot) { pokeList.clear(); for (DataSnapshot pokes: dataSnapshot.child("pokes").getChildren()) { Poke poke = pokes.getValue(Poke.class); if (poke != null) { ...
[ "public void updateList() {\n PokeshopAdapter adapter = new PokeshopAdapter(getApplicationContext(), pokemons, ownedPokemons);\n ListView pokemonlist = findViewById(R.id.pokemonListView);\n pokemonlist.setAdapter(adapter);\n }", "private void setupListView() {\n potList = loadPotLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the roll euler angle in radians, which is the rotation around the z axis. Requires that this quaternion is normalized.
public float getRollRad(float[] quat) { float x = quat[0]; float y = quat[1]; float z = quat[2]; float w = quat[3]; final int pole = getGimbalPole(quat); return (float) (pole == 0 ? Math.atan2((double) (2f * (w * z + y * x)), (double) (1f - 2f * (x * x + z * z))) : (float) pole * 2f ...
[ "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end count() Draws the board and the pieces on the board. This method does NOT draw the red line through the winning pieces after the game has been won.
public void drawBoard() { GraphicsContext g = getGraphicsContext2D(); g.setFill( Color.LIGHTGRAY ); // fill canvas with light gray g.fillRect(0,0,314,314); /* Draw lines separating the square and along the edges of the canvas. */ g.setStroke(Color.BLACK);...
[ "public void displayForPawn(Board board) {\n Square temp;\n\n if (board.getColor()) {\n System.out.print(\" \");\n for (int i = 0; i < board.getSIZE(); i++) System.out.print(ANSI_YELLOW + i + \" \");\n System.out.println();\n\n for (int x = 0; x < board.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether set of inputs can be completely satisfied by the search set, making sure to check descendants of input concepts for the subsumption.
public boolean isSubsumed(Set<String> inputs, Set<String> searchSet) { boolean satisfied = true; for (String input : inputs) { Set<String> subsumed = taxonomyMap.get(input).getSubsumedConcepts(); if (!isIntersection( searchSet, subsumed )) { satisfied = false; break; } } return satisfied; }
[ "public Set<String> getSatisfiedInputs(Set<String> inputs, Set<String> searchSet) {\n\t\tSet<String> satisfied = new HashSet<String>();\n\t\tfor (String input : inputs) {\n\t\t\tSet<String> subsumed = taxonomyMap.get(input).getSubsumedConcepts();\n\t\t\tif (isIntersection( searchSet, subsumed ))\n\t\t\t\tsatisfied....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the login of the current user.
public static String getCurrentUserLogin() { String userName = null; Optional<Object> principalOption = getCurrentUserPrincipal(); if (principalOption.isPresent()) { Object principal = principalOption.get(); if (principal instanceof UserDetails) { userNam...
[ "public String getLogin(){\r\n\t\treturn this.user.getLogin();\r\n\t}", "public String getUserLogin() {\r\n\r\n\t\treturn this.user_login;\r\n\r\n\t}", "public String getUserLogin() {\n return userLogin;\n }", "public String getCurrentLogin() {\n return sessionContext.getCallerPrincipal().get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a nes langscore
public TextLangsScoresBank addLangScore(LangScoreBankUnit langScoreBankUnit) { this.langsScores.add(langScoreBankUnit); return this; }
[ "public TextLangsScoresBank addLangScore(Lang lang,double score) {\n LangScoreBankUnit langScoreBankUnit = new LangScoreBankUnit(lang, score);\n this.langsScores.add(langScoreBankUnit);\n return this;\n }", "public void addScore(int score);", "public void add_to_score(int num){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the ending fill color of the row. The stroke color is used to fill the interior of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.
public void setEndFillColor(int row, int color) { setInt(row, VisualItem.ENDFILLCOLOR, color); }
[ "public void setEndStrokeColor(int row, int color) {\n setInt(row, VisualItem.ENDSTROKECOLOR, color);\n }", "public int getEndStrokeColor(int row) {\n return getInt(row, VisualItem.ENDSTROKECOLOR);\n }", "public int getEndFillColor(int row) {\n return getInt(row, VisualItem.ENDFILLCOL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use CIAccountAuthREQ.newBuilder() to construct.
private CIAccountAuthREQ(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private IAAccountAuthREQ(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ICAccountAuthRES(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = build...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a builder populated from an existing author.
public static Builder builder(final Author author) { return new Builder(author.id, author.name, author.email, author.link, author.displayName, author.description, author.image); }
[ "private Author(Builder builder) {\n super(builder);\n }", "Builder addAuthor(String value);", "Builder addAuthor(Person value);", "private BookAuthor(Builder builder) {\n super(builder);\n }", "public Author build() {\n return new Author(id, name, email, link, displayName, descripti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "enumSkillId" attribute
public boolean isSetEnumSkillId() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(ENUMSKILLID$10) != null; } }
[ "public boolean isSetEnumSkillName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ENUMSKILLNAME$8) != null;\n }\n }", "boolean hasFightSkillId();", "public boolean hasSkill() {\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method gets the field dataStatus.
String getDataStatus();
[ "public String getDataStatus() {\n return dataStatus; \n }", "public String getDataStatus() {\n return dataStatus;\n }", "public abstract DataStatus getDataStatus();", "se.lth.immun.protocol.MSDataProtocol.GetStatus getGetStatus();", "se.lth.immun.protocol.MSDataProtocol.Status getStatus...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column tb_special.voteurl
public String getVoteurl() { return voteurl; }
[ "public String getVoteURL() {\r\n\t\treturn voteURL;\r\n\t}", "public void setVoteurl(String voteurl) {\n this.voteurl = voteurl;\n }", "public void setVoteURL(String voteURL) {\r\n\t\tthis.voteURL = voteURL;\r\n\t}", "public String getVote() {\n return vote;\n }", "public Long getVote()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
On add chat window manager.
public abstract void onAddChatWindowManager( IChatWindowManager chatWindowManager);
[ "void onAddChatWindow(IChatWindow chatWindow);", "@Override\n public void onAddChatWindowManager(IChatWindowManager chatWindowManager) {\n Logger.d(TAG,\n \"onAddChatWindowManager() entry, the chatWindowManager is \"\n + chatWindowManager);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shares the music link to the facebook
public void shareToFacebook(final Music music, Context context) { FacebookSdk.sdkInitialize(context.getApplicationContext()); shareDialog = new ShareDialog(this); callbackManager = CallbackManager.Factory.create(); List<String> permissionNeeds = Arrays.asList("publish_actions"); ...
[ "private void publishMusicPost(Music music) {\n Bitmap image = null;\n try {\n image = new Utils().new Connection().execute(music.getAlbumArtPath()).get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CompuwareUEM.startup(null, "applicationID", " true, null); Replace AWT Event Queue
public static void initialize() { EventQueue eventQueue = Toolkit.getDefaultToolkit().getSystemEventQueue(); eventQueue.push(new DynaTraceEventQueue()); // <- Now we are in control of all AWT Events }
[ "private static void setupAppWindow() { \r\n EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n try {\r\n WindowUI appWindow = new WindowUI();\r\n appWindow.setVisible(true);\r\n } catch (Exception e) {\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a predicate from a list of IDs.
public IdMatchPredicate(Collection<Integer> idList) { requireNonNull(idList); this.relatedIds.addAll(idList); }
[ "IdListRule createIdListRule();", "Predicate createPredicate();", "private String idsConstrain(ArrayList <String> uids){\n String query = \"\";\n if(uids.size() > 0){\n query = \" ( \" \n // If uids used are PMC ids, remove PMC part - not recognized by Entrez utilites! \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserts the given element in the given array. The array is extended if necessary.
public static int[] insert(int[] array, int size, int index, int element) { array = extendArray(array, size + 1); // Move the last part. System.arraycopy(array, index, array, index + 1, size - index); array[index] = element; ...
[ "public static byte[] insert(byte[] array, int size, int index, byte element)\n {\n array = extendArray(array, size + 1);\n\n // Move the last part.\n System.arraycopy(array, index,\n array, index + 1,\n size - index);\n\n array[index] =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the info entry value that corresponds to the given key, or null if none exists.
public Object findInfoEntryValue(Object p_key) { return m_info.findEntryValue(p_key); }
[ "public V getValue(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\t\r\n\t\tif (slot < 0) \r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tMapEntry<K, V> e = table[slot];\r\n\t\treturn e.getValue();\r\n\t}", "public V get(K key) {\n\t\t// TODO Complete this!\n\t\tLinkedList<KVPair> x = map.get(getHashC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a reference to the io.binroot.regression.Minimizer used, for accessing io.binroot.regression.Minimizer methods directly. Note that no io.binroot.regression.Minimizer is used if fitType is any of STRAIGHT_LINE, EXP_REGRESSION, and POWER_REGRESSION.
public Minimizer getMinimizer() { return minimizer; }
[ "public OptimizationAlgorithm getOptimizationAlgorithm();", "public interface Minimizer<T extends DifferentiableFunction> {\n\n /**\n * Attempts to find an unconstrained minimum of the objective\n * <code>function</code> starting at <code>initial</code>, within\n * <code>functionTolerance</code>.\n *\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
when the netty channel idle trigger onChannelIdle
@Override public void onChannelIdle(String remoteAddress, Channel channel) { }
[ "@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n IdleStateEvent event = (IdleStateEvent) evt;\n if (event.state() == IdleState.ALL_IDLE) {\n Channel channel = ctx.channel();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used to retrieve all images from given tag. Mapped on GET method. Produces application/json.
@Path("/tags/{tag}") @GET @Produces(MediaType.APPLICATION_JSON) public Response getTagImages(@PathParam("tag") String tag) { String[] imgNamesArray = GalleryImageDB.getInstance().getTagImageNames(tag); if(imgNamesArray.length==0) { return Response.status(Response.Status.NOT_FOUND) .entity("N...
[ "public void getImageResults(String tag){\n showProgressBar(true);\n HttpClient.get(\"rest/\", getRequestParams(tag), new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n String response = n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleXBasicForLoopExpression" $ANTLR start "ruleXBasicForLoopExpression" InternalDroneScript.g:1388:1: ruleXBasicForLoopExpression : ( ( rule__XBasicForLoopExpression__Group__0 ) ) ;
public final void ruleXBasicForLoopExpression() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDroneScript.g:1392:2: ( ( ( rule__XBasicForLoopExpression__Group__0 ) ) ) // InternalDroneScript.g:1393:2: ( ( rule__XBasicForLoopExp...
[ "public final void rule__XBasicForLoopExpression__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:11493:1: ( rule__XBasicForLoopExpression__Group__0__Impl rule__XBasicForLoopExpression__Group__1 )\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asserts the About Activity is correct.
protected final void assertAboutActivity() throws Exception { _solo.assertCurrentActivity( getActivity().getResources().getString(com.nicjansma.tisktasks.R.string.title_about), ACTIVITY_ABOUT); }
[ "@Test(suiteName = \"Profile\", testName = \"Profile\", description = \"Validate whether About screen is displayed in Profile\", enabled = true, groups = {\n\t\t\t\"MOBANDEVER-770\" })\n\tpublic void validateAbout() {\n\t\tCommon common = new Common(driver);\n\t\tCommon.log(\"Verifying presence of about link on the...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the processing metadata pix flags (see SIA v1 section 4.2) that should be used for the format.
public String getPixFlags(String format) { return "image/fits".equals(format) ? "C" : "V"; }
[ "public int getAttributesBitmap();", "public int getIconFlags();", "java.lang.String getGifFlags();", "public int flags() {\n return FrameHeaderFlyweight.flags(content);\n }", "public IS getProcessingConsiderationCode() { \r\n\t\tIS retVal = this.getTypedField(20, 0);\r\n\t\treturn retVal;\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a value to property CopyrightInformationURL as an RDF2Go node
public static void addCopyrightInformationURL( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) { Base.add(model, instanceResource, COPYRIGHTINFORMATIONURL, value); }
[ "public void addCopyrightInformationURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), COPYRIGHTINFORMATIONURL, value);\r\n\t}", "public void setCopyrightInformationURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COPY...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setAge method, of class HealthInsurancePolicy.
@Test public void testSetAge() { System.out.println("setAge"); int Age = 0; HealthInsurancePolicy instance = null; instance.setAge(Age); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
[ "void setAge (double age);", "public void testSetAge() {\n System.out.println(\"setAge\");\n int age = 0;\n Student instance = null;\n instance.setAge(age);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
invokes an apstrata api by specifying the api name, parameters and an HttpClient object. the calling code is responsible for closing the httpClient upon consuming the stream. This method is used typically to request apstrata file attachments
public InputStream callAPIStream(String methodName, List<NameValuePair> params, Map<String, List<File>> files, AuthMode mode, HttpClient httpClient) throws Exception { String apiUrl = this.getSignedRequestUrl(methodName, params, files, mode); return getStreamResponse(apiUrl, params, files, httpClient); }
[ "private HttpResponse executeHttpGet(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpGet httprequest = new HttpGet(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set a new list of forks
public void setForkList(String[] forkList) throws RemoteException;
[ "public String[] getForkList() throws RemoteException;", "public ForkExecutor(SimuComSimProcess parent, ForkedBehaviourProcess[] forks) {\r\n this.forks = forks;\r\n this.parent = parent;\r\n }", "public void freeForks() {\r\n\t\t\t// send message to free forks\r\n\t\t\tString msg = \"right-for...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the bounds object of this PickBounds to the specified object.
public void set(Bounds boundsObject) { bounds = boundsObject; }
[ "public PickBounds(Bounds boundsObject) {\n\tbounds = boundsObject;\n }", "public static final void setBounds(UIObject o, Rect bounds) {\n setPosition(o, bounds);\n setSize(o, bounds);\n }", "public void setBounds(Rectangle bounds)\n {\n this.bounds = (Rectangle) bounds.clone();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
generates a GridLocation where grid contains an empty type cell and GridLocation is not the same location as [currentRow, currentCol]
protected GridLocation findEmptySpot(Grid grid, int currentRow, int currentCol) { int iter = 0; Random rn = new Random(); ArrayList<GridLocation> emptySpaces = findPotentialEmptySpaces(grid); GridLocation location=emptySpaces.get(rn.nextInt(emptySpaces.size())); int row=location.getRow(), col=location.getCol(...
[ "private ArrayList<GridLocation> findPotentialEmptySpaces(Grid grid) {\n\t\tArrayList<GridLocation> locations = new ArrayList<GridLocation>();\n\t\tint numRows = grid.getNumRows(), numCols = grid.getNumCols();\n\t\tfor (int row = 0; row < numRows; row++) {\n\t\t\tfor (int col = 0; col < numCols; col++) {\n\t\t\t\tG...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Creates a new instance of an Atmel class
public static Atmel CreateAtmel(String NewAVRName) { Atmel newAVR; try { newAVR = (Atmel)Class.forName("AVR."+NewAVRName).newInstance(); } catch (Exception e) { System.out.println("Exception creating " + Ne...
[ "Instance createInstance();", "Class19 createClass19();", "public NewClass() {\r\n }", "Class9 createClass9();", "Class createClass();", "Class15 createClass15();", "public static Synth instantiate(Class _class, String name, boolean throwaway, boolean setupMIDI, Midi.Tuple tuple)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column FMSAPPL_SEC_COMPONENTS.FIN_AMOUNT_PERC
public BigDecimal getFIN_AMOUNT_PERC() { return FIN_AMOUNT_PERC; }
[ "public BigDecimal getFC_AMOUNT() {\r\n return FC_AMOUNT;\r\n }", "public void setFIN_AMOUNT_PERC(BigDecimal FIN_AMOUNT_PERC) {\r\n this.FIN_AMOUNT_PERC = FIN_AMOUNT_PERC;\r\n }", "public BigDecimal getPAID_AMOUNT_FC() {\r\n return PAID_AMOUNT_FC;\r\n }", "public void setFC_AMOUN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a Manager and initializes an EntityManager and a SystemManager
public Manager() { entityManager = new EntityManager(); systemManager = new SystemManager(); initSystems(); }
[ "Manager createManager();", "ImplementationManager createManager();", "private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a user 'user' with the domain 'domain' as 'domain \ user' if the fullyQualified instanceof true, else 'user'.
public static String getUserName(UserDomainPasswordCredentials token, boolean fullyQualified) { if (fullyQualified) { return token.getUserIdentity(); } else { return token.getUser(); } }
[ "@Override\n public String getTenantDomain(String fullyQualifiedUserName) throws CharonException {\n return fullyQualifiedUserName.split(\"@\")[1];\n }", "java.lang.String getUserFirstName();", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCallingUser();", "public static Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ return the country code from the address, lower cased
private String countryCode(String address) { int j = address.lastIndexOf('.') + 1; String cc = address.substring(j); return cc.toLowerCase(); }
[ "public static String getCountryCode(String address, Context context) {\n try {\n Geocoder geocoder = new Geocoder(context);\n List<Address> addresses = geocoder.getFromLocationName(address, 1);\n if (addresses.size() >= 1) {\n return addresses.get(0).getCountr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
testGetUnrestrictedRandomVerbID() Tests for getUnrestrictedRandomVerbID(), which selects a random List of (unrestricted) verb IDs. Note that the verb IDs will be back to back.
@Test public void testGetUnrestrictedRandomVerbID(){ int id1 = 1; int id2 = 2; int id3 = 3; int id4 = 4; int id5 = 5; int id6 = 6; int id7 = 7; int id8 = 8; int id9 = 9; int id10 = 10; int conjNum1_2 = 2; int conjNum1...
[ "public List<IrregularVerb> getRandomVerbs(int count);", "@Test\n public void testGetRestrictedRandomVerbID(){\n\n int id1 = 1;\n int id2 = 2;\n int id3 = 3;\n int id4 = 4;\n int id5 = 5;\n int id6 = 6;\n int id7 = 7;\n int id8 = 8;\n int id9 = 9;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "xpath" element
public org.hl7.fhir.String addNewXpath() { synchronized (monitor()) { check_orphaned(); org.hl7.fhir.String target = null; target = (org.hl7.fhir.String)get_store().add_element_user(XPATH$6); return target; } }
[ "private XPath newXPath() {\n return xPathFactory.newXPath();\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "Object createXPath( String expression ) throws Exception;", "void setXpath(java.lang.String xpath);", "void setXPath(String xpath);", "public void unsetXpath...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column item_file.file_src
public String getFileSrc() { return fileSrc; }
[ "public String getSrcfile() {\n return srcfile;\n }", "public File getFileValue();", "@Column(name = \"ReferenceSeqFile\")\n public String getReferenceSeqFile() {\n return this.referenceSeqFile;\n }", "public String getValue_File_mp3() \n {\n return mp3File;\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the Fudge context.
public FudgeContext getFudgeContext() { return _fudgeContext; }
[ "protected FudgeContext getFudgeContext() {\n return _fudgeContext;\n }", "public Context getContext();", "public Context context() {\n return ctx;\n }", "public Context getContext() {\n return context;\n }", "public cl_context getContext() {\n\t\treturn context;\n\t}", "public cl_contex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an AssignDateCommand where a range of dates is stated to be assigned
public AssignDateCommand(Index index, EventDate startDate, EventDate endDate, EventDayTime eventDayTime) { requireNonNull(index); this.index = index; this.startOrTargetEventDate = Optional.of(startDate); this.endEventDate = Optional.of(endDate); this.eventDayTime = eventDayTime; ...
[ "public AssignDateCommand(Index index, EventDate targetEventDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(targetEventDate);\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add all the Schema's ObjectClasses
private void addObjectClasses( Schema schema, Registries registries ) throws LdapException, IOException { if ( schema.getSchemaLoader() == null ) { return; } for ( Entry entry : schema.getSchemaLoader().loadObjectClasses( schema ) ) { ObjectClass obje...
[ "private void addSchemaElements() {\n\t\tfor (Map.Entry<String, XSComplexType> entry : schemaObject\n\t\t\t\t.getComplexTypes().entrySet()) {\n\t\t\tXSContentType content = entry.getValue().getContentType();\n\t\t\tXSParticle particle = content.asParticle();\n\t\t\tif (particle != null) {\n\t\t\t\tXSTerm term = par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
deleteCheck get Corrections by deleting any one of the letters from the misspelled word.
private static TreeSet<String> deleteCheck(String badWord, HashSet<String> dictionary) { TreeSet<String> matches = new TreeSet<String>(); int index = 0; while (index < badWord.length()) { String needle = new StringBuilder(badWord).deleteCharAt(index).toString(); if (dicti...
[ "public ArrayList<String> deleteDistance(String word)\n {\n int tier;\n int wordLength = word.length();\n ArrayList<String> candidates = new ArrayList<>();\n if (wordLength > 1)\n {\n for (tier = 0; tier < wordLength; tier++)\n {\n StringBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the dash pattern used to draw the outline.
public void setOutlineDashPattern(DashPattern pat) { if (borderDash != pat) { borderDash = pat; itemChanged(); } }
[ "public DashPattern getOutlineDashPattern() {\n return borderDash;\n }", "@Override\n public void setColor(Color c) {\n if (c == Color.black) {\n _buffer.append(\"0 setgray\\n\");\n _buffer.append(\"[] 0 setdash\\n\");\n _buffer.append(\"1 setlinewidth\\n\");\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Track or untrack network resource of a Intent and it's installable Intents.
private void trackIntentResources(IntentData intentData, List<FlowRuleIntent> intentsToApply, Direction direction) { switch (direction) { case ADD: trackerService.addTrackedResources(intentData.key(), intentData.intent().resources()); intentsToApply.forEach(installabl...
[ "private void trackIntentResources(IntentData intentData, List<FlowRuleIntent> intentsToApply, Direction direction) {\n switch (direction) {\n case ADD:\n trackerService.addTrackedResources(intentData.key(), intentData.intent().resources());\n intentsToApply.forEach(i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of BookingBean
public BookingBean() { }
[ "Booking createBooking();", "public SeatBookingBean() {\n }", "public ApDayBookBean() {\n }", "public ReservationBean() {\r\n\t}", "public Booking() {\n this(\"\", \"\", \"\", \"\", \"\",\n null);\n }", "BookingController createBookingController();", "public Booking()\n {\n booki...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'DEAL_POINT_DESC' field.
public java.lang.CharSequence getDEALPOINTDESC() { return DEAL_POINT_DESC; }
[ "public java.lang.CharSequence getDEALPOINTDESC() {\n return DEAL_POINT_DESC;\n }", "public void setDEALPOINTDESC(java.lang.CharSequence value) {\n this.DEAL_POINT_DESC = value;\n }", "public org.LNDCDC_ADS_PRPSL.DEAL_POINT.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_POINT.Builder setDEALPOINTDESC(java.lang.C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run this animation at the given startTime. If the startTime has already passed, the animation will be synchronize as if it started at the specified start time. If the animation is already running, it will be canceled first.
public void run(int duration, double startTime) { // Cancel the animation if it is running cancel(); // Save the duration and startTime this.running = true; this.duration = duration; this.startTime = startTime; // Start synchronously if start time has passed if (update(Duration.current...
[ "public void setStartTime(long startTime) {\n\tthis.startTime = startTime;\n\t// This is used for passive wakeupOnElapsedFrame in\n\t// Interpolator to restart behavior after alpha.finished()\n\tVirtualUniverse.mc.sendRunMessage(J3dThread.RENDER_THREAD);\n }", "private void start(long startTime) {\n\t\twhile(!...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo de actualizacion de produtos mediante ResultSet
public void actualizarProduto(String codigo, int prezo) throws SQLException{ Connection conn = Conexion(); try{ Statement st = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs = st.executeQuery("select produtos.* from produtos"); while(rs.next(...
[ "public void inserirProduto(String codigo, String descricion, int precio) throws SQLException{\n Connection conn = Conexion();\n try{\n Statement st = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet rs = st.executeQuery(\"select produtos.* from ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }