query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Konstruktor, ktery vytvari session a uklada si ji do atributu.
public EmployeeRepository() { SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); this.session = sessionFactory.openSession(); }
[ "SessionConfig connect();", "public void encapsular (){\n\t\tHttpSession sesion=request.getSession();\n\t\tString cadena = request.getParameter(tipo);\n\t\tString nombreAtribSesion=(String)this.tablaIdString.get(tipo);\n\t\tsesion.setAttribute(nombreAtribSesion,cadena);\n\t}", "private void startSession(){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the user clicks a marker.
@Override public boolean onMarkerClick(final Marker marker) { // Retrieve the data from the marker. Integer clickCount = (Integer) marker.getTag(); // Check if a click count was set, then display the click count. if (clickCount != null) { clickCount = clickCount + 1; ...
[ "@Override\n public boolean onMarkerClick(Marker marker) {\n\n // Retrieve the data from the marker.\n final Event event = (Event) marker.getTag();\n\n // Check if a click count was set, then display the click count.\n if (event != null) {\n String personID = event.getPerso...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Batchupdate the list with varying requests. For example, self(selfCalculationSpecification), specify(updateColumnSpecification) , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). Other specifications are same as batchUpdate(entityList).
public int[] varyingBatchUpdate(List<WhiteMyself> whiteMyselfList, UpdateOption<WhiteMyselfCB> option) { assertUpdateOptionNotNull(option); return doBatchUpdate(whiteMyselfList, option); }
[ "public int[] batchUpdate(List<EnterpriseOffer> enterpriseOfferList, SpecifyQuery<EnterpriseOfferCB> updateColumnSpec) {\r\n return doBatchUpdate(enterpriseOfferList, createSpecifiedUpdateOption(updateColumnSpec));\r\n }", "@Override\n\tpublic void batchUpdate(List<B2bOrderRmtPkgBean> paramList) {\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for this course's name.
public String getName() { return this.name; }
[ "public String getName() {\n return courseName;\n }", "public String getCourseName ( )\n\t{\n\t\treturn courseName;\n\t}", "public String getCourseName() {\r\n return courseName;\r\n }", "public String getCourseName(){\r\n\t\treturn courseName;\r\n\t}", "public String getCourseName () {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Concatenates the given file paths.
public static SeekableByteChannel forPaths(final Path lastSegmentPath, final Iterable<Path> paths) throws IOException { Objects.requireNonNull(paths, "paths"); Objects.requireNonNull(lastSegmentPath, "lastSegmentPath"); final List<Path> filesList = new ArrayList<>(); paths.forEach(files...
[ "public static String getConcatPath(String... paths) {\n\t\tif (paths.length == 0) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tif (paths.length == 1) {\n\t\t\treturn paths[0];\n\t\t}\n\n\t\tif (paths[0] == null) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tStringBuilder concatPath = new StringBuilder(paths[0]);\n\n\t\tfor (int i = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the average fitness score of population members.
public double getMeanFitness() { return meanFitness; }
[ "static double getAverageFitness(Population population) {\n int counter = 0;\n for (int i = 0; i < population.getPopulation().size(); i++) {\n counter += getFitness((Organism) population.getPopulation().get(i));\n }\n return counter/population.getPopulation().size();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads an s15Fixed16Number. This type represents a fixed signed 4 byte/32 bit quantity which has 16 fractional bits. An example of this encoding is: 32768.080000000h 00000000h 1.000010000h 32767 + (65535/65536)7FFFFFFFh
public double readS15Fixed16Number() throws IOException { int s15 = in.readShort(); int p15 = in.readUnsignedShort(); return (double) s15 + (double) p15 / 65536.0; }
[ "short readS16() throws EndOfMessageException;", "short readInt16(@Nonnull String fieldName);", "public static int $noinline$getUint16FromStaticShortField() {\n return staticShortField & 0xffff;\n }", "private int readShort() {\n // read 16-bit value, LSB first\n int byte1 = mData[mPosition+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional bool result = 1;
public boolean getResult() { return result_; }
[ "void resultTrue();", "abstract boolean optional();", "public boolean truthValue(){return truthValue;}", "void mo33158a(boolean z);", "void mo59100a(boolean z);", "public boolean hasResult();", "void mo66492a(boolean z);", "boolean hasValue002();", "boolean hasResultNum();", "public boolean a(){ r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Getters END / Setters START
public void setOperator(Operator operator) { this.operator = operator; }
[ "@Test\n\tpublic void testMoreSetters() {\n\t\tSong song = new Song();\n\t\tsong.setNoteLength(\"4\");\n\t\tassertEquals(\"1/4\", song.getNoteLength());\n\t\tsong.setNoteLength(8);\n\t\tassertEquals(\"1/8\", song.getNoteLength());\n\t\tsong.setNoteLength(\"1/2\");\n\t\tassertEquals(\"1/2\", song.getNoteLength());\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get columns Returns the columns configured for a filter. The column configuration is used when the filter&39;s results are viewed in List View with the Columns set to Filter. This operation can be accessed anonymously. [Permissions](permissions) required: None, however, column details are only returned for: filters own...
public List<ColumnItem> getColumns(Long id, Map<String, Object> params) throws IOException { HttpResponse response = getColumnsForHttpResponse(id, params); TypeReference<List<ColumnItem>> typeRef = new TypeReference<List<ColumnItem>>() {}; return apiClient.getObjectMapper().readValue(response.ge...
[ "public Flux<ColumnItem> comAtlassianJiraRestV2SearchFilterResourceGetColumnsGet(Long id) throws RestClientException {\n Object postBody = null;\n // verify the required parameter 'id' is set\n if (id == null) {\n throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, \"Missing t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cada orden que se cree se agregara a los datos del cliente correspondiente
public static void ActualizaCliente(int clienteID, int ordenID) { MongoCollection <Document> collection = database.getCollection("Cliente"); //Identifica el documento del cliente Document found = (Document) collection.find(new Document("clienteID",clienteID)).first(); //Actualizamos valores collection.upd...
[ "private void historialMovimientosClientes() {\n\t\ttry {\n\t\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\t\tDate desde = Utiles.getFechaInicioOperaciones();\n\t\t\tDate hasta = this.hasta;\n\t\t\tCliente cliente = rr.getClienteByEmpresa(this.selectedItem.getId());\n\t\t\tboolean incluirChequesRechazad...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds 'CREATE TABLE' sql query for specified instances.
public String buildCreateTableQuery(String tableName, Instances instances) { StringBuilder queryString = new StringBuilder(); if (usePrimaryKeyColumn) { if (instances.attribute(primaryKeyColumnName) != null) { throw new IllegalStateException( String.fo...
[ "public String generateCreateTableSQL(TableType table);", "protected String createTableStatement() {\n\t\tStringBuilder createSql = new StringBuilder();\n\t\tField[] fields = modelClass.getDeclaredFields();\n\t\tcreateSql.append(\"CREATE TABLE \");\n\t\tcreateSql.append(tableName());\n\t\tcreateSql.append(\"(\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Actualiza el campo de importado
protected void actualizarImportacion(Long sucursalId,String...ids){ String sql="UPDATE SX_CXC_ABONOS SET TX_IMPORTADO=? WHERE ABONO_ID IN ("; for(int i=0;i<ids.length;i++){ String id=ids[i]; sql+="\'"+id+"\'"; if(i==(ids.length-1)) sql+=")"; else sql+=","; } sql+=" AND SUCURSAL_ID=...
[ "public void iniciarImportacao() {\n\n\t}", "public void actualizar(){\r\n\t\tif(getNota().getTipo().equals(\"V\") || isPorDescuento())\r\n\t\t\taplicarDescuento();\r\n\t\telse\r\n\t\t\taplicarImporte();\r\n\t}", "private void actualizar() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tint cantidad=In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Copies all pictures from template sheet to result sheet, shift picture depending on area dependencies
protected void copyPicturesFromTemplateToResult(HSSFSheet templateSheet, HSSFSheet resultSheet) { List<HSSFClientAnchor> list = getAllAnchors(getEscherAggregate(templateSheet)); int i = 0; if (CollectionUtils.isNotEmpty(orderedPicturesId)) {//just a shitty workaround for anchors without picture...
[ "public static void replaceImageOfParticularShapes() {\n\t\t\ttry {\n\t\t\t\t// ExStart:ReplaceImageOfParticularShapes_17.12\n\t\t\t\tCellsDocument doc = Document.load(CellsDocument.class, Common.mapSourceFilePath(FILE_PATH));\n\n\t\t\t\tString imagePath = Common.WATERMARK_IMAGE_PATH;\n\t\t\t\tFile imageFile = new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the underlying source of conventions.
protected ConventionSource getUnderlying() { return _underlying; }
[ "public String getDefinitionSource() {\n if (definitionSource == null)\n return \"\";\n else \n return definitionSource; \n }", "ConventionMapping getConventionMapping();", "public CharSequence source() { return this.underlying.source(); }", "public @Nullable Convention getOutCon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A search method which determines the bucket which should hold a book title and add all matching titles to a list
public MyLinkedList<Book> findAllTitleMatches(String title/*, MyLinkedList<Book>[] titleSortedTable*/) { MyLinkedList<Book>[] titleSortedTable = sortByTitle(); MyLinkedList<Book> searchResults = new MyLinkedList<Book>(); int bucket = hashByLetter(title.toUpperCase()); for(int i=0; i<titleSortedTable[bucket].getLen...
[ "public List<Book> searchBookByTitle(String title);", "public abstract List<Book> searchBookByTitle(final String searchTerm);", "static Book searchByTitle(String title) {\n\t\t\n\t\t\n\t\t//create a temp_list\n\t\tArrayList<String> auth = new ArrayList<String>();\n\t\tauth.add(\"\\n\");\n\t\t Book temp_list = n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiating the destination class or retrieving the destination.
public final static AgentId createDestination( String destName, AgentId adminId, String destClassName, byte type, Properties properties, boolean freeReading, boolean freeWriting) throws Exception { AgentId destId = null; StringBuffer strbuf = new StringBuffer(); Des...
[ "public abstract D getDestination();", "public Destination() {\r\n }", "public Destination getDestination() {\n Object obj = library.getObject(entries, \"Dest\");\n if (obj != null) {\n return new Destination(library, obj);\n }\n return null;\n }", "protected void de...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void updateRecipe(Recipe recipe) { recipeDao.update(recipe); }
[ "@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 widgetDefaultSelected(SelectionEvent e) { ModuleDoubleClicked(list_bus); }
[ "@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" ] ] } }
repeated .protocol.rpc.SelectionRange selection_ranges = 1;
int getSelectionRangesCount();
[ "protocol.RangeOrBuilder getSelectionRangeOrBuilder();", "public void selectLines(int[] range) {\n Element root=document.getDefaultRootElement();\n Element startElement=root.getElement(range[0]);\n Element endElement=root.getElement(range[1]);\n int start=startElement.getStartOffse...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_WK_CELL_QOS.CELLNAME
public void setCellname(String cellname) { this.cellname = cellname; }
[ "public void setCellname(java.lang.Integer newCellname) {\n\tcellname = newCellname;\n}", "public void setName(String stockName) throws RemoteException;", "public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RETORNA EL STRING QUE CONTIENE TODOS LOS MARCADOS
public String getlog () { return log; }
[ "public String toString(){\r\n String s=\"\";\r\n for (int i=0;i<tamanho;i++)\r\n s = s + \" \" + dados[i].toString();\r\n return s;\r\n }", "public String mejoresPuntuaciones(){\n String aux = \"\";\n for (int i = 0; i < MAX_JUGADORES ; i++) {\n aux += ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { try { movieModel = MovieModel.getInstance(); categoryModel = CategoryModel.getInstance(); catMovieModel = CatMovieModel.getInstance(); categoryView.setItems(categoryModel.getAllCategori...
[ "public Controller(){\t\n\t}", "public GameEriController() {\r\n\t\tinit();\r\n\t\t\r\n\t}", "public MainController(){\n \n }", "public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo(10000);\n\t}", "public MainController() {\n try {\n log.debug(\"Starting Mai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the (optional) hypervisor which will be used by protocol constructors
public void setHypervisor(Hypervisor h);
[ "public int getHypervisor() {\n return hypervisor_;\n }", "public void setHost(Host host) {\n\t\tthis.host = (HostAgent) host;\n }", "public void setSpec(com.vmware.converter.HostProxySwitchSpec spec) {\r\n this.spec = spec;\r\n }", "public void setHyperThreading(Boolean hyperThreading) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JvmWildcardTypeReference__Group_2_0__1" $ANTLR start "rule__JvmWildcardTypeReference__Group_2_0__1__Impl" InternalStubbrLang.g:41801:1: rule__JvmWildcardTypeReference__Group_2_0__1__Impl : ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 ) ) ;
public final void rule__JvmWildcardTypeReference__Group_2_0__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:41805:1: ( ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 )* ) ) // InternalStub...
[ "public final void rule__JvmWildcardTypeReference__Group_2_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:15762:1: ( ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 ) ) )\n // InternalAle....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
static binding. Binding happens at the time of compilation
public static void walk() { System.out.println("Human walks"); }
[ "public void Bind() {\n\t\t\n\t}", "public Static(Environment theEnv)\r\n\t{\r\n\t\tsuper(theEnv);\r\n\t\ttheEnv.addStatic(this);\r\n\t}", "public void bind()\n {\n glUseProgram(this.programID);\n }", "@Override\n\tpublic boolean isStatic() {\n\t\treturn false;\n\t}", "@Override\n\t\tprotected ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column M_INTERACCIONES.M_CFD_XML.XMLP
public void setXMLP(byte[] XMLP) { this.XMLP = XMLP; }
[ "public void setSQLXML(String arg0, SQLXML arg1) throws SQLException {\n\t\t\r\n\t}", "public void setXml(java.lang.String param){\n localXmlTracker = true;\n \n this.localXml=param;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes the given json to a filename based on the given qualified class name.
private void writeJsonToFile(JsonObject json, Name qualifiedName) { File jsonFile = new File(destDir, qualifiedName.toString().replace('.', '/') + ".json"); jsonFile.getParentFile().mkdirs(); try (PrintWriter writer = new PrintWriter(new FileWriter(jsonFile))) { writer.println(gson.toJson(json)); } catch ...
[ "private void writeJson(Object obj, String filename) throws IOException {\n File file = new File(this.outputDir, filename);\n Writer writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(file));\n this.gson.toJson(obj, writer);\n } finally {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private static final Logger logger = Logger.getLogger(ClientHTTP.class);
public static void main(String[] args) { clientHTTPAutenticado(); }
[ "private HttpClientHelper() {\n\t}", "public CustomLogger getGETLog() { return _GETLog; }", "public HttpClientURLFetcher() {\n httpClient = HttpClients.createDefault();\n }", "private EchoLogger() {}", "public Client(){\n this.myNetworkHandler=new NetworkHandler(this);\n clientLogger...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
How many items are in the data set represented by this Adapter.
@Override public int getCount() { if (mEpisodeList == null || mEpisodeList == null) { return 0; } return mEpisodeList.size(); }
[ "public int getCount() {\n\t\treturn dataList.size();\n//\t\treturn 5;\n\t}", "@Override\n\tpublic int getItemsCount() {\n\t\treturn adapter.getItemsCount();\n\t}", "public int getCount() {\n if(dataArray.size()<=0)\n return 1;\n return dataArray.size();\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TFSDOCTYPE.LC_INW_SIGHT_LIAB_FIN_DIV
public void setLC_INW_SIGHT_LIAB_FIN_DIV(BigDecimal LC_INW_SIGHT_LIAB_FIN_DIV) { this.LC_INW_SIGHT_LIAB_FIN_DIV = LC_INW_SIGHT_LIAB_FIN_DIV; }
[ "public void setSP_IIS_WRITE_OFF_SL(BigDecimal SP_IIS_WRITE_OFF_SL) {\r\n this.SP_IIS_WRITE_OFF_SL = SP_IIS_WRITE_OFF_SL;\r\n }", "public void setLBR_IOFAmt (BigDecimal LBR_IOFAmt);", "public void setIIS_WRITE_OFF_CIF(BigDecimal IIS_WRITE_OFF_CIF) {\r\n this.IIS_WRITE_OFF_CIF = IIS_WRITE_OFF_CI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates buffer writer if not exist
private void CreateWriter(Map<String, String> scenarioData) { if (_bufferWriterFinal == null) { try { file_Data = new File(path + "Data_" + scenarioData.get(SETSCENARIO_KEY) + ".csv"); file_Final = new File(path + "Final_" + scenarioData.get(SETSCENARIO_KEY) + ".csv")...
[ "private void prepareForWriting() {\n if(outputFile == null || writer == null) {\n \n try {\n \n outputFile = new File(fileName);\n\n if(!outputFile.exists()) {\n outputFile.createNewFile();\n outputFile.setW...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function that display an error with a message
public static void errorMsg(String msg){ System.out.println("ERROR - " + msg); }
[ "void showErrorMsg(String error);", "void displayErrorMessage(String message);", "void showError(int errorType, String error);", "void showError(String message, String description, Exception exception);", "public void displayLastError();", "public void error( String message );", "void error(String messa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method called for writing this class' content to the specified XMLWriter.
private void writeContent(XMLWriter out) throws IOException{ if(this.getRow1()!=null) this.getRow1().write(out); if(this.getRow2()!=null) this.getRow2().write(out); if(this.getRow3()!=null) this.getRow3().write(out); if(this.getRow4()!=null) this.getRow4().write(out); if(this.getRow5()!=null) t...
[ "@Override\n protected void setWriter( Writer writer)\n {\n setXmlWriter( new XmlWriter( writer));\n }", "protected abstract void setWriterOnElementWriter(BufferedWriter resultWriter);", "protected synchronized void writeXML() {\r\n\t\tSystem.out.println(\"IQM: Writing the annotations to XML file...\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines a component that provides content for a popup window.
public static interface PopupProvider { /** * Returns the content for a popup window. */ public Component getPopupContent(); }
[ "public Component addComponent(Component component)\n {\n return popup.add(component);\n }", "public void popupWindow() {\n\t}", "public PopUp() {\n initComponents();\n }", "public popupVORowImpl() {\n }", "@Override\n public void mouseClicked(MouseEvent pE)\n {\n popupWind...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Create an Intent that will start the Main WordPress Activity.
public void run() { XNetUtil.APPPrintln("APPDataCache: "+APPDataCache); XNetUtil.APPPrintln("APPDataCache.User: "+APPDataCache.User); Intent mainIntent = new Intent(LaunchPage.this, Start_login.class); Intent mIntent=new Intent(LaunchPage.this,MainActivity...
[ "protected void launchMainActivity() {\n startActivity(new Intent(this, MainActivity.class));\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_MAIN, null);\n// intent.setClassName(\"org.artoolkit.ar.samples.ARMovie\",\"A...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check to be used in undo() and redo() methods
protected int requireNonZeroHistory() { if (this.history == 0) throw new IllegalStateException("Operation history is empty"); return this.history; }
[ "protected boolean okayToUndo() {\n\t\treturn true;\n\t}", "boolean undoAvailable();", "public final boolean canUndo() {\n return commandStack.size() > 0;\n }", "public boolean undoPossible()\n\t{\n\t\treturn (stack[current+1] != null);\n\t}", "@Override\r\n\tpublic boolean isUndo() {\n\t\treturn ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loop through the current set of Label objects and assign value to the name attribute of each of it.
public LabelSet withName(String value) { for (Label obj : this) { obj.setName(value); } return this; }
[ "public void setLabel(int i) {\n\t\t\r\n\t}", "protected void initializeLabels()\n {\n mLabels = new HashMap<String, Label>();\n mValues = new HashMap<String, Label>();\n\n for (String name : mLabelNames)\n {\n mLabels.put(name, new Label(name + \":\"));\n mValues.put(name, n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes the data back to the file it was parsed from ie. the file that was passed to the constructor.
public boolean writeToFile() throws IOException { if (usedFileConstructor) { writeToStream(new FileOutputStream(slkFile)); return true; } return false; }
[ "private void writeToFile() throws IOException {\n fileOutUnarch.write(buffer);\n fileOutUnarch.close();\n }", "void toFile() throws IOException {\n FileOutputStream fileToWrite = new FileOutputStream(file);\n ObjectOutputStream objectToWrite = new ObjectOutputStream(fileToWrite);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for regdate. The new value is set only if compareTo() says it is different, or if one of either the new value or the current value is null. In case the new value is different, it is set and the field is marked as 'modified'.
public void setRegdate(java.sql.Timestamp newVal) { if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || (newVal == null && this.regdate == null && regdate_is_initialized)) { return; } this.regdate = newVal; regdate_is_modif...
[ "public void setRegistDate(Date arg, String compcode, String left_paren, String right_paren, String and_or) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + WorkingInformation.REGISTDATE.toString(), arg, compcode, left_paren, right_paren, and_or);\n\t}", "public void setPlanRegistDate(Date arg, String compc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the highest version number from all passed graph database directories.
private static int getLastVersionNumber(final File[] files) { if (files != null) { int max = 0; for (final File file : files) { final int version = ModelProviderUtil.getVersionNumber(file); if (max < version) { max = version; ...
[ "int getNextVdbVersion(String vdbName) {\n int latestVersion = 0;\n for (VDBArchive vdb: loadedVDBs.values()) {\n if (vdb.getName().equals(vdbName)) { \n latestVersion = Math.max(latestVersion, Integer.parseInt(vdb.getVersion()));\n }\n }\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes the gradientAt of teh item response model with respect to the item parameters
public double[] gradient(double theta, int k){ //empty method return null; }
[ "public ArrayList<Double> getGradient(ArrayList<Double> point);", "void gradient(double feedback, int action, double[] values, double[] gradient, double weight);", "@Override\n\tpublic double[] calcGradient() {\n\t\tpredict();\n\t\tArrays.fill(gradient, 0.0); // First guess: All parameters are zero\n\n\t\tint c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void tagliandi(String[] data) { }
[ "@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" ] ] } }
Set this State's value to v.
public void setValue(int v) { value = v; }
[ "public void setValue(int v) {\n\t\tthis.value = v;\n\t}", "@Override\r\n\t\tpublic void setValue(int v) {\n\t\t\tthis.value = v;\r\n\t\t}", "public void setValue(V value)\n {\n this.value = value;\n }", "protected void setValue(int v) {\n \t_setValue(v);\n }", "public S setValu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form Clase_Royale
public Clase_Royale() { initComponents(); this.setExtendedState(MAXIMIZED_BOTH); }
[ "public ClausulForm()\n {\n \tthis.clausulBean = new Clausul();\n \tthis.isNewClausul = true;\n }", "public void newPersona() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}", "public String doNewForm(){\n\t\tsetUser(ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void removePresenceListener(IPresenceListener listener) { }
[ "@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" ] ] } }
Whenever a new visualisation plugin is added for the specific FactType this method is called as an update caller. This method will update the in memory tree so it will display the current available visualisations
public void update(Observable arg0, Object arg1) { log.debug("New visualisation plugin for this fact: " + factName); //Cast the update from the model to a RStoreFactType RStoreFactType factType = (RStoreFactType) arg0; //Remove all the children so we can rebuild the tre...
[ "@Override\r\n protected void refreshVisuals() {\n super.refreshVisuals();\r\n }", "public void updateVisuals();", "@objid (\"6115efb6-55b6-11e2-877f-002564c97630\")\n @Override\n protected void refreshVisuals() {\n GmBpmnLane partitionModel = (GmBpmnLane) getModel();\n getFigur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(ManterNucleoController.class.getName())....
[ "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}", "protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse respo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test vol lopping when call number has part suffix
@Test public void testPartSuffix() { String callnum = "540.6 .C517J PART 2"; assertEquals("540.6 .C517J", CallNumUtils.removeDeweyVolSuffix(callnum)); assertEquals("540.6 .C517J", CallNumUtils.removeDeweySerialVolSuffix(callnum)); }
[ "@Test\n\tpublic void testLCSerialVolumeSorting()\n\t{\n\t\tString lopped = \"B8.14 L3\";\n\t\tString shelfkey = edu.stanford.CallNumUtils.getShelfKey(lopped, CallNumberType.LC, \"fake\").toLowerCase();\n\t\t// compute list: non-serial volume sorting\n\t\tMap<String,String> volSortString2callnum = new HashMap<Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Description setter method to set StatusMessage
public String getStatusMessage() { return statusMessage; }
[ "public void setStatusMessage(String statusMessage) {\n this.statusMessage = statusMessage == null ? null : statusMessage.trim();\n }", "public Builder setStatusMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n stat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dado un nombre de categoria dado por el combobox de busqueda devuelve el numero de categoria correspondiente.
public static String viewCategorie(String comboBoxValue){ String categoria = null; if (comboBoxValue.equals(FieldVerifier.ANIMALES)) { categoria = Utilidades.MASCOTAS; } else if (comboBoxValue.equals(FieldVerifier.ARTE_ANTIGUEDAD)) { categoria = Utilidades.ANTIGUEDADES; } else if (comboBoxValue.eq...
[ "public void onChange$cmbCategorias() {\n\t\t// se crea el catalogo y se llama\n\t\tComboitem li = cmbCategorias.getSelectedItem();\n\t\tCategoriaCompetencia c1 = (CategoriaCompetencia) li.getValue();\n\t\tequipos = servicioEquipo.listarEquipoPorCategoria(c1.getCategoria()\n\t\t\t\t.getCodigoCategoria());\n\t\tbind...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
once the random flash is done say and explode the final number
@Override public void run() { if (q < 20) { runOnUiThread(flash); q++; } else { //BUTTON CLICKABLE AGAIN if (x == 0)...
[ "@Override\r\n\tpublic int compete()\r\n\t{\n\t\tRandom random=new Random();\r\n\t\treturn (random.nextInt(800%301)+500);\r\n\t}", "public void extractAgain() {\n Random random = new Random();\n this.number = random.nextInt(NUMBER_OF_SIDES) + 1;\n }", "private static void randomizer() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method decrements the Goomba's health when defeated by Mario (ultimately killing the Goomba)
public void hurt() { this.health -= 1; }
[ "public void hurt() {\n this.health--;\n }", "public void decreaseHealth() {\r\n\r\n\t}", "public void kill() {\n setHealth(0);\n remove();\n }", "public void dieAway()\n {\n if (health <= 0)\n {\n this.remove();\n }\n }", "private void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get value from "f:param"
public String getCountryParam(FacesContext fc){ Map<String,String> params = fc.getExternalContext().getRequestParameterMap(); return params.get("menuSelId"); }
[ "String getParam(String name);", "String getParameter(String paramName);", "float getParameter();", "public String getParameter(final String name);", "public String getParameter()\r\n {\r\n return parameterString;\r\n }", "@Override protected String getParamType(final String param) {\n fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
boolean getPageRefreshed() Method getParameter
public org.light.portal.portlet.config.Parameter getParameter(int index) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index >= _parameterList.size())) { throw new IndexOutOfBoundsException("getParameter: Index value '"+index+"'...
[ "@Override\n public void refresh(IElementParameter param, boolean check) {\n\n }", "boolean hasParamsRef();", "boolean hasRefreshType();", "public void setPageCursorFieldIncludesLastRetrieved(java.lang.String param){\n localPageCursorFieldIncludesLastRetrievedTracker = true;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a test environment based on the default settings Programmer: Kyle Sullivan
public TestBrowser createBrowser() throws IOException { return getTestBrowser(primaryBrowser); }
[ "@BeforeClass\n\tpublic static void setEnvironment() {\n\t\tSTAFEnvironment.registerEnvironment(CukesTest.class);\n\t\tSteps.initialize(\"Smp.xml\");//Data input file name (present in SampleTools/src/test/resources) is provided\n\t}", "public synchronized TestEnvironment createTestEnvironment(\n TestPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an angle value from a parameters map. The angle is considered to be in degrees in the file, it will be returned in radians
public double getAngle(final Key key) throws NoSuchElementException { return FastMath.toRadians(getDouble(key)); }
[ "public float calulateAngles() {\n\n float minAngle = 0;\n float maxAngle = 55;\n\n return PApplet.parseInt(random(minAngle, maxAngle));\n}", "public int getAngle(){\n return degToInt.intValue();\n }", "public double getAngle() {\r\n\t\treturn this.variables.get(\"Angle\");\r\n\t}", "public nativ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a singleton CQLEntityManager
public CQLEntityManager getEm() { return em; }
[ "public static DatabaseManager getInstance() {\n return instance;\n }", "public static EntityCreator getInstance() {\n\t\treturn instance;\n\t}", "public static EntityManager getEntityManager() {\r\n\t\treturn initEntityManger(null, null);\r\n\t}", "public static EntityManager getEntityManager() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the value for the lexeme Number.
@ASTNodeAnnotation.Token(name="Number") public int getNumber() { return tokenint_Number; }
[ "java.lang.String getValue129();", "long getValue139();", "long getValue099();", "private int getNumericVal(lexeme l) {\n \tint val = Integer.parseInt(l.getToken(), l.getRadix());\n \tif (l.getNegate()) val *= -1;\n \treturn val;\n }", "public long getValue123() {\n return value123_;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stop following queue updates
public void unfollowQueue() throws MarietjeException { if (channel.getException() != null) throw channel.getException(); this.followingQueue = false; try { this.channel.sendMessage(new JSONObject( "{'type':'unfollow','which':['requests']}")); } catch (JSONException e) { throw new Marietj...
[ "public void stopUpdating();", "private void stop()\n {\n if (! m_isStarted)\n return; // already stopped\n\n m_isStarted = false;\n m_items.clear();\n\n }", "public synchronized void stopListener() {\n JSONObject poison = new JSONObject();\n poison.put(\"poison\", \"tru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Recursion with 2D memory
public static int MinAdjustmentCost2(ArrayList<Integer> A, int target) { if (A == null || A.size() == 0) { return 0; } int[][] f = new int[A.size()][101]; for (int i = 0; i < A.size(); i++) { for (int j = 0; j < 101; j++) { f[i][j] = Integer.MAX_VALUE; } } return helper...
[ "public void mandelbrot() {\n Complex c = new Complex();\n for (int i = 0; i < height; ++i) {\n c.im = upperLeft.im + i * (lowerRight.im - upperLeft.im) / (height - 1);\n for (int j = 0; j < width; ++j) {\n c.re = upperLeft.re + j * (lowerRight.re - upperLeft.re) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
static void printArray(int[] indexes) { double[] d = todouble(indexes); printArray(d); }
[ "private void Bersih() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private String throwException() {\n throw new UnsupportedOperationException(\"Not supported\");\n }", "protected void unsupport...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ compiled from: merged_dialog_video_call
public interface Callback { void m10756a(OperationResult operationResult); void m10757a(Throwable th); }
[ "public static dmt.p1861av.video.C47419ae m148186a(com.p280ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel r22, android.arch.lifecycle.C0043i r23, android.view.SurfaceView r24) {\n /*\n r0 = r22\n dmt.av.video.g r1 = new dmt.av.video.g\n r1.<init>()\n ja...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initialize the fitness assignment process
public void initialize() { // do nothing }
[ "public void initialize()\n\t{\t\t\n\t\tArrayList<Integer> oddVertices = new ArrayList<Integer>();\n\t\tfor(int i=0;i<G.V();i++)\n\t\t{\n\t\t\tint degree = EdgeWeightedGraph.degree(G, i);\n\t\t\tif((degree%2)!=0)\n\t\t\t\toddVertices.add(i);\n\t\t}\nint sizeOfPopulation = 6;\n\t\tpopulation = new Population();\n\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a DuplicateSuggestion that reports that an AI attempted to make a Suggestion more than once.
public DuplicateSuggestion(Suggestion suggestion) { super("Made the duplicate Suggestion %s.", suggestion); }
[ "public void testDuplicateHintEntries() throws Exception {\n performTestDoNotPerform(\"TestDuplicate\", 5, 15);\n }", "public void didDuplicate();", "@Override\n\tpublic abstract Answer duplicateWithoutAnswers();", "public ILimitChecker duplicate()\n {\n DuplicateFinder df = new DuplicateFin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void C2() { this.x0.removeCallbacks(this.z0); }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public /* synthetic */ void a(String[] strArr, View view) { if (strArr != null && strArr.length > 0 && strArr[0] != null && !strArr[0].equals("")) { if (getInteractor() != null) { ((a) getInteractor()).changeDynamicEndpoint(strArr[0]); } if (getView() != null)...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This function addes Bought TCs in to DB
boolean insertTcDenom(FBContext fbContext, TCData tcData, Connection conn, String ibInd) throws WorkflowException { //FCUBS11.0 Changes SFR# 387 PreparedStatement pstmt = null; ResultSet res = null; String TillId = tcData.getTillId(fbContext); String cc...
[ "public void bought()\n {\n // Fill in code for the method\n // Will probably need to complete this\n for (int i = 0; i<=coinsInMachine.length-1;i++){\n coinsInMachine[i] = coinsInMachine[i] + tempCoins[i];\n }\n theMoneyInTheMachine = theMoneyInTheMachine + theCredit;\n theCredit=0;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to encrypt data by using public key from server side
private String encrypt(String data, PublicKey publicKey) { String encryptedData = null; try { // get an RSA cipher object and print the provider final Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding"); // encrypt the plain text using the public key cipher.init(Cipher.ENCRYPT_MODE, p...
[ "private void initSecurityAES() {\n // create new key\n aes = new AES();\n\n // encrypt aes key using rsa with server's public key \n RSA clientSideRSA = new RSA()\n .preparePublicKey(\"publicKey\");\n\n String aesKey = aes.getSecretKey();\n String aesKeyEncr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter para la el elemento de musica de la intro..
public static MediaPlayer getmPlayer() { return mPlayer; }
[ "public java.lang.String getIntro() {\r\n\t\treturn intro;\r\n\t}", "public abstract String getDintro();", "public int getMusic() {\n return music;\n }", "public String dimeTitulo(){\n return titulo;\n }", "public String getmInsightVideoIntro() {\n return mInsightVideoIntro;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Print Success or failure message accordingly Toast.makeText(context,result?"Message successfully sent!":"There was some error in sending message. Please try again after some time.",Toast.LENGTH_LONG).show();
@Override protected void onPostExecute(Boolean result){ }
[ "@Override\n protected void onPreExecute() {\n Toast.makeText(context, mR.getString(R.string.toast_sending_sms), Toast.LENGTH_SHORT).show();\n }", "private void showToastSuccessMessage() {\n runOnUiThread(() -> ToastNotification.show(SubmitSuggestionActivity.this,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column T_TRADE.TRADETYPE
public String getTradetype() { return tradetype; }
[ "public final TradeType getTradeType() {\n return tradeType;\n }", "public LoanTradingType getTradeType() {\n return tradeType;\n }", "public TradeType getEnumTradeType() { return tradeType; }", "public TransactionType getTransactionType() {\r\n return transactionType;\r\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if this item can be visually activated(defaults to true)
public Boolean getCanActivate() { if (null != this.canActivate) { return this.canActivate; } ValueExpression _ve = getValueExpression("canActivate"); if (_ve != null) { return (Boolean) _ve.getValue(getFacesContext().getELContext()); } else { return null; } }
[ "public boolean isItemVisible() {\r\n\t\treturn (getImage() != null);\r\n\t}", "boolean isVisible()\n\t{\n\t\treturn !(mState == STATE_NONE);\n\t}", "@Override\n\tpublic boolean isVisible() {\n\t\tif (view.getVisibility() == View.VISIBLE) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if (e.getKeyCode() == KeyEvent.VK_TAB) eventQueue.add(new MochaDoomInputEvent(MochaDoomInputEvent.KeyRelease, e));
@Override public boolean dispatchKeyEvent(KeyEvent e) { return false; }
[ "@Override\n public void keyPressed(KeyEvent e) { //tab functionality\n if (e.getKeyCode() == KeyEvent.VK_TAB) {\n passwordArea.requestFocus();\n e.consume();\n }\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent event...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use the current date as the default date in the date picker
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final Calendar c = Calendar.getInstance(); int year = c.get(Calendar.YEAR); int month = c.get(Calendar.MONTH); int day = c.get(Calendar.DAY_OF_MONTH); String type; //Creat...
[ "public void setDefaultDate(Date defaultDate){\r\n\t\ttriggerOption( \"defaultDate\", defaultDate);\r\n\t}", "private void setTodayDate()\n {\n \tmCalendar.setTime(new Date());\n \tString currentDateString = G.dateFormatterToDisplay.format(mCalendar.getTime());\n \tString currentTimeString = G.timeFor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the bitmap and its filename and invalidates the fragment.
public void setBitmap(RotatedBitmap bm, String fileName) { mBitmap = bm; mFileName = fileName; invalidate(); }
[ "public void setBitmap(String bitmap) {\n this.bitmap = bitmap;\n }", "public BitmapFile(String filename) {\r\n\t\t_bitmap = load(filename);\r\n\t}", "@Override\n\tpublic void setImageV() throws FileNotFoundException {\n\t\t\n\t}", "private void setImage(ImageView imageView, File file) {\n Bi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The parameter method,processes the parameters of a method
public void parameter() { String varName=""; int lineNum = -1; String type = ""; boolean array = false; boolean flag = true; while(flag == true) { if(newlist.get(x).getName().equals("LOCAL_MODIFIER_LIST")) { type = newl...
[ "public abstract String processParameters();", "Parameter[] getParameters( );", "ArgumentList getParam();", "SM9Parameter getParams();", "public void visit(MethodDeclaration n, Void args) {\n \tint numParams = n.getParameters().size();\n\n if (numParams >= PARAMETER_THRESHOLD) {\n smell...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string achievement = 1;
public boolean hasAchievement() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "private String getBeforeThirtyAchievement() {\n\t\treturn null;\n\t}", "public Achievement save(String goal);", "@Override\n\tpublic void showAchievement() {\n\t\t\n\t}", "int getCombatLeagueBadgeValue();", "private String getObtainedAchievements() {\n\n if (mapLayout.getAchievements() == null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "T__38" $ANTLR start "T__39"
public final void mT__39() throws RecognitionException { try { int _type = T__39; int _channel = DEFAULT_TOKEN_CHANNEL; // ../org.telcodev.dsl.ui/src-gen/org/telcodev/dsl/ui/contentassist/antlr/internal/InternalDime.g:29:7: ( 'else' ) // ../org.telcodev.dsl.ui/src...
[ "final public void start() throws ParseException {\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case LEFT_PAR:\n case PLUS:\n case MINUS:\n case UNIT:\n case NOT:\n case BITNOT:\n case DECIMAL:\n case BASE1:\n case BASE2:\n case BASE3:\n case BASE4:\n case BASE5:\n case BA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__FunctionAssignment__Group__5__Impl" $ANTLR start "rule__FunctionAssignment__Group__6" ../org.earthsystemmodeling.psyche.ui/srcgen/org/earthsystemmodeling/ui/contentassist/antlr/internal/InternalPsyche.g:6135:1: rule__FunctionAssignment__Group__6 : rule__FunctionAssignment__Group__6__Impl ;
public final void rule__FunctionAssignment__Group__6() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.earthsystemmodeling.psyche.ui/src-gen/org/earthsystemmodeling/ui/contentassist/antlr/internal/InternalPsyche.g:6139:1: ( rule__FunctionAs...
[ "public final void rule__StrucFuncDef__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:7674:1: ( rule__StrucFuncDef__Group__6__Impl )\n // InternalOcelet.g:7675:2: rule__StrucFuncDef__Group__6__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method determines the type of the bean for autowiring purposes
@Override public Class<?> getObjectType() { return BeanCreatedByFactory.class; }
[ "public Class<?> getBeanType() {\n/* 106 */ return this.beanType;\n/* */ }", "public void setBeanType(String beanType) {\n this.beanType = beanType;\n }", "public void setBeanType(Class beanType)\n\t{\n\t\tthis.beanType = beanType;\n\t}", "@Override\n\tprotected Class getClazz() {\n\t\treturn Ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
delete event from given schedule, return true if delete successfully.
public boolean deleteEvent (int scheduleID, String EventName, String startTimeString, String endTimeString) throws ParseException, ScheduleNotFoundException { Schedule s = getScheduleByID(scheduleID); HashMap<String, List<List<Date>>> events = s.getEvents(); if (!(events.containsKey(EventName...
[ "@Override\r\n\tpublic int scheDelete(Attend_schedule schedule) {\n\t\treturn as.scheDelete(schedule);\r\n\t}", "public boolean delete(Events events);", "@Override\r\n\t\t\tpublic boolean deleteCalendar(String arg0)\r\n\t\t\t\t\tthrows SchedulerException {\n\t\t\t\treturn false;\r\n\t\t\t}", "public void dele...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new iRODSFile instance from a parent pathname string and a child pathname string. If parent is null then the new IRODSFile instance is created as if by invoking the singleargument IRODSFile constructor on the given child pathname string. Otherwise the parent pathname string is taken to denote a directory, and...
public IRODSFile(final IRODSFileSystem fileSystem, final String parent, final String child) { super(fileSystem, parent, child); resource = iRODSFileSystem.getDefaultStorageResource(); makePathCanonical(parent); }
[ "public RemoteFile(final RemoteFileSystem fileSystem, final String parent,\n\t\t\tfinal String child) throws NullPointerException {\n\t\tsuper(fileSystem, parent, child);\n\t}", "public static File newFile(String parent, String child) {\r\n\t\ttry {\r\n\t\t\treturn new File(parent, child).getCanonicalFile();\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 170: / 171:
public String cleanInput(String input) /* 172: */ { /* 173:261 */ return Jsoup.clean(StringEscapeUtils.unescapeHtml4(input), Whitelist.basic()); /* 174: */ }
[ "public final void mo107010O() {\n Activity activity = this.f33526d_;\n if (activity == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) activity, \"activity!!\");\n C10751a a = new C10752a(activity).mo25738b((int) R.string.e1f).mo25731a(3000).mo25737a();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table cityarea
List<Cityarea> selectAll();
[ "CityArea getArea(String id);", "@Override\r\n\tpublic List<Area> getAreasbyCityId(Integer cityId) {\n\t\treturn null;\r\n\t}", "public NM getAreaCityCode() {\n return this.areaCityCode;\n }", "@Override\n\tpublic List<TblAreaCode> findCity(String areaSupCode) {\n\t\treturn areaCodeMapper.findCity(a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generated method Getter of the Age.searchTermsLists attribute.
public String getSearchTermsLists() { return getSearchTermsLists( getSession().getSessionContext() ); }
[ "public Set<String> getTerms();", "public List<BasicString> getTermsExtent() {\n return termsExtent;\n }", "public String[] getTermsArray() {\r\n return terms;\r\n }", "public List<List<Term>> getLists() {\n return lists;\n }", "Collection<TermsConfiguration> getTerms();", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ TODO: this method's implementation must be completed.
protected void restoreState(jbt.execution.core.ITaskState state) { }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "protected void method_5557() {}", "private static void EX5() {\n\t\t\r\n\t}", "protected void m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table `basedata_airport`
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
[ "public void updateAirportTable() throws SQLException {\n airportTable = new AirportTable(airportService.getData(null, null, null));\n airportTable.createTable();\n populateAirportTable(airportTableView, airportTable.getData());\n }", "@Override\n public String asTableDbName() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean isRequired() { 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" ] ] } }
This method is overridden from PickupDragController to make the Drag widget start and drag from the cursor instead of the left side of the table row.
@Override public void dragMove() { context.desiredDraggableX = context.mouseX; context.desiredDraggableY = context.mouseY + 16; super.dragMove(); }
[ "@Override\r\n public void dragOver(DragSourceDragEvent dsde) {\r\n DragSourceContext context = dsde.getDragSourceContext();\r\n context.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\r\n }", "public void moveCursorLeft() {\n\t\tif (!(cursorLocation.x == 0 && cursorLocation.y ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test add method. When add 1 and 2 result should be 3 and should be written to result field
public void whenAddOneAndTwoResultShouldBeThree() { Calculator calc = new Calculator(); // calc.add(1, 2); assertEquals(3.0, calc.getResult(), 0.0); }
[ "@Test\n\tpublic void add() {\n\t\tint result = calculator.add(1, 2);\n\t\t// 判断方法的返回结果\n\t\tassertEquals(3, result);// 第一个参数是期望值,第二个参数是要验证的值\n\t}", "@Test\n\tvoid testadd() {\n\t\t\n\t\t\n\t\t//set wht is expected\n\t\tint expected =2;\n\t\t\n\t\t//Actual\n\t\tint actual = calc.add(1, 1);\n\t\t\n\t\t//verify \n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asserts that the arrays are equivalent and contain the same values
protected void assertArrayEquals(Object[] expected, Object[] value) { String message = "expected array: " + InvokerHelper.toString(expected) + " value array: " + InvokerHelper.toString(value); assertNotNull(message + ": expected should not be null", expected); assertNotNull(message +...
[ "private void assertEquals(final double[] actual, final double[] expected) {\n Assert.assertEquals(actual.length, expected.length, \"Arrays do not have equal lengths\");\n\n for (int i = 0; i < actual.length; ++i) {\n Assert.assertEquals(actual[i], expected[i], \"Array differ at position \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Classifies the image and returns the prediction results.
public String classifyImage(float[] features) throws Exception { // Check if classifier has been built. if (m_Data.numInstances() == 0) { throw new Exception("No classifier available."); } // Convert message string into instance. Instance instance = makeInstance(features); // Filter instance. /...
[ "Classes classify(Mat image);", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tVisualClassification result =\n\t\t\t\t\t\t\tvrService.classify(\n\t\t\t\t\t\t\t\t\tnew ClassifyImagesOptions.Builder()\n\t\t\t\t\t\t\t\t\t\t\t.images(imageFile)\n\t\t\t\t\t\t\t\t\t\t\t.build()\n\t\t\t\t\t\t\t).execute();\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Permite cambiar el password del usuario.
public String changePass(String userID, String currentPass, String newPass) { try { ctx = getInitialDirContext(); ModificationItem[] mods = new ModificationItem[2]; mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE, new BasicAttribute...
[ "public String getUserPassword();", "public void setPassword(String nuevoValor) { password = nuevoValor; }", "public Facebook setPasswordPasswordField() {\n return setPasswordPasswordField(data.get(\"PASSWORD\"));\n }", "void changeUserPassword(User user, String password);", "public void setPasswo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the current state protocol buffer from underlying storage.
PersistentState read() throws IOException;
[ "protected abstract void readState(ByteBuffer buffer) throws IOException;", "INGREDIENT read(FriendlyByteBuf buffer);", "private void read_state() throws FileNotFoundException\n {\n FileInputStream fis = new FileInputStream(\"save/server_state_\" + this.port + \".obj\");\n\n try\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is called when the camera is open
@Override public void onOpened(CameraDevice camera) { Log.e(StateSingleton.getInstance().TAG, "On camera callback was called, so the preview can be shown."); cameraDevice = camera; createCameraPreview(); }
[ "public void openCamera() {\n }", "@Override\n public void onOpened(CameraDevice cameraDevice) {\n mCameraOpenCloseLock.release();\n QrInputService.this.mCamera = cameraDevice;\n //createCameraPreviewSession();\n }", "public void onCameraOpened(CameraProxy camer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent evt) { if((evt.getActionCommand().equals("login"))) { if(MainDemo.webService.LoginProcess(userText.getText(), passwordText.getText())){ securityZone.setVisible(true); this.setVisible(false); } else{ JOptionPane.showMessageDialog(this, "Check ID...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 262: / 263:
public int getId() /* 264: */ { /* 265:301 */ return getIdEstadoFinanciero(); /* 266: */ }
[ "public int method_2493() {\r\n return 16777215;\r\n }", "public void mo26342c() {\n }", "void mo8166KB();", "public int c()\r\n/* 288: */ {\r\n/* 289:256 */ return 64;\r\n/* 290: */ }", "public int U()\r\n/* 2728: */ {\r\n/* 2729:2743 */ return 256;\r\n/* 2730: ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column tp_fabulous.id
public void setId(Integer id) { this.id = id; }
[ "public abstract void setFluj_id(java.lang.Integer newFluj_id);", "public void cambiaId(int id) {\n\t\tthis.id=id;\n\t}", "public void setId(int id) {\r\n\t\tthis.Id = id;\r\n\t}", "public void setId(int id) \n {\n this.id = id;\n }", "public void setId(int id){\n this.id = id;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }