query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Something like Activity's onNewIntent()
@Override public void onNewBundle(Bundle args) { super.onNewBundle(args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onNewIntent(Intent intent) {\n }", "@Override\n public void onNewIntent(Intent intent) {\n }", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "@Override\n protected void onNewIntent(Intent intent) {\n }", "@Override\n protected void onNewInt...
[ "0.8628532", "0.85178745", "0.8453994", "0.8305543", "0.8218741", "0.8044428", "0.8013657", "0.79482013", "0.79482013", "0.792447", "0.7910576", "0.7868184", "0.78641677", "0.7812092", "0.7780541", "0.76478636", "0.761408", "0.7588732", "0.7443445", "0.73357624", "0.73210895"...
0.0
-1
The service is starting, due to a call to startService()
@Override public int onStartCommand(Intent intent, int flags, int startId) { Log.d(TAG, "Service started"); self = this; return super.onStartCommand(intent, flags, startId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void startService() {\n\t\t//if (!isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.startService(new Intent(this, LottoService.class));\n\t}", "private void startService() {\n\n if (!mAlreadyStartedService ) {\n\n //mMsgView.setText(R.string.msg_location_service_started);\n\n ...
[ "0.7639429", "0.75203407", "0.74427253", "0.7422241", "0.73985976", "0.7397425", "0.7283681", "0.7275288", "0.7129833", "0.7108537", "0.7059857", "0.70547605", "0.7009832", "0.69965625", "0.6976155", "0.69716007", "0.69110787", "0.6855412", "0.68524873", "0.68332565", "0.6828...
0.66625667
34
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println(divide(10, 5)); System.out.println(divide(10, 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method is called when a favorite is added to the movie listings screen. If this is the first listing to be added and the device in use is a tablet, the listing is selected in order to trigger an update to the detail screen.
public void addMovieListing(MovieListing listing) { movieListings.add(listing); notifyItemInserted(movieListings.size() - 1); if (MoviesApplication.getApp().isLargeLayout() && movieListings.size() == 1) { selectMovie(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveFavorite(){\n //make sure movie is NOT already a favorite\n if(!mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is a new favorite, favorite movie list status has changed\n mFavoriteChanged = true;\n\n //set movie item favorite status as true\n ...
[ "0.6687961", "0.6159111", "0.6109592", "0.6089149", "0.6080842", "0.5909376", "0.5839588", "0.5817096", "0.579184", "0.5780518", "0.5779118", "0.5754942", "0.57323676", "0.5639538", "0.56235695", "0.5601097", "0.5572425", "0.5563587", "0.5556184", "0.5532643", "0.54878825", ...
0.61236066
2
This method is called when a favorite is removed from the movie listings screen. The listing in question is only removed if it currently exists in the list.
public void removeMovieListing(int movieId) { Optional<MovieListing> movieListing = Stream.of(movieListings).filter(listing -> listing.getId() == movieId).findFirst(); if (movieListing.isPresent()) { int position = movieListings.indexOf(movieListing.get()); movieListings.remove(m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeFavorite(){\n //check if movie is in the user favorite list\n if(mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is in the favorite list, mark that list has changed\n mFavoriteChanged = true;\n\n //update movie item favorite status\n ...
[ "0.8086789", "0.74602604", "0.70123494", "0.6621033", "0.64403236", "0.63779163", "0.63578343", "0.63014835", "0.6242045", "0.62416965", "0.62081015", "0.616053", "0.6104434", "0.5932771", "0.5913215", "0.5911191", "0.5905169", "0.58646435", "0.5852746", "0.5812076", "0.57744...
0.61649776
11
This method is called when a movie filter other than favorites is selected, either by the user or on app launch. If the device in use is a tablet, If this is the first listing to be added and the device in use is a tablet, the first listing is selected in order to trigger an update to the detail screen.
public void setMovieListings(List<MovieListing> listings) { movieListings.clear(); movieListings = listings; notifyDataSetChanged(); fetchMovieDetails(); if (MoviesApplication.getApp().isLargeLayout()) { selectMovie(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tabletMovieSelected(MovieItem movie){\n //check if movie item is null\n if(movie != null){\n //save movie item to buffer\n mMovie = movie;\n\n //check local buffer if movie is a user favorite, set user favorite status\n mMovie.setFavorite(mMovie...
[ "0.5822883", "0.5438624", "0.5398937", "0.53164136", "0.53115493", "0.52516556", "0.52458507", "0.5244085", "0.520951", "0.5207471", "0.518859", "0.5173303", "0.5118646", "0.5099777", "0.50917715", "0.5089418", "0.5072904", "0.50652313", "0.506078", "0.5036538", "0.50363415",...
0.4892564
30
This method is called prior to the individual fetching of favorite listings, since those listings will be added one at a time.
public void clearMovieListings() { movieListings.clear(); notifyDataSetChanged(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initListFavorite() {\n favoritesList = mApiService.getFavorites();\n mRecyclerView.setAdapter(new MyNeighbourRecyclerViewAdapter(favoritesList, this));\n }", "@Override\n public void onResume() {\n super.onResume();\n initListFavorite();\n }", "public static vo...
[ "0.7135596", "0.67588484", "0.6501427", "0.6158592", "0.6102541", "0.6072709", "0.5953716", "0.58837205", "0.5809135", "0.57997805", "0.5798679", "0.5791515", "0.57817507", "0.5779774", "0.57440674", "0.57131547", "0.56802136", "0.5634464", "0.56309545", "0.561973", "0.555544...
0.0
-1
When a new batch of movie listings is set, API calls are made to prefetch poster images, details, trailers, and reviews, if available. Although these items are needed on the movie listings screen, anything that is prefetched will be cached for instant access when the user selects a movie from the list at any point ther...
private void fetchMovieDetails() { Stream.of(movieListings).forEach(movieListing -> { Picasso.with(MoviesApplication.getApp()).load(movieListing.getPosterUrl()).fetch(); MoviesApplication.getApp().getApiManager().getEndpoints().getMovieDetails(movieListing.getId()).enqueue(movieDetailCal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadMovies() {\n try {\n SharedPreferences prefs = getActivity().getSharedPreferences(\n PREFS_NAME, 0);\n if (prefs.contains(SP_FEED)) {\n\n JSONObject jsonObject = new JSONObject(prefs.getString(SP_FEED,\n \"\"));\...
[ "0.65433526", "0.6207095", "0.61085016", "0.60857576", "0.5981674", "0.597909", "0.5884073", "0.58821565", "0.58551335", "0.57716537", "0.573984", "0.5702979", "0.55923045", "0.5550047", "0.5537614", "0.5527057", "0.54448456", "0.54208565", "0.54017955", "0.5386437", "0.53842...
0.6988541
0
When a movie is selected from the movie listings screen, an event is fired to handle updating the movie details screen accordingly. If the device in use is a tablet, the selected position is tracked and updated to show the currently selected movie to the user.
private void selectMovie(int position) { EventBus.getDefault().post(new MovieSelectEvent(movieListings.get(position).getId())); if (MoviesApplication.getApp().isLargeLayout()) { notifyItemChanged(selectedPosition); selectedPosition = position; notifyItemChanged(select...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tabletMovieSelected(MovieItem movie){\n //check if movie item is null\n if(movie != null){\n //save movie item to buffer\n mMovie = movie;\n\n //check local buffer if movie is a user favorite, set user favorite status\n mMovie.setFavorite(mMovie...
[ "0.7055156", "0.64940387", "0.6426863", "0.62322176", "0.6064104", "0.60135597", "0.5922366", "0.5853809", "0.5847028", "0.58157307", "0.57919997", "0.5770403", "0.5708653", "0.5627305", "0.56150824", "0.55889577", "0.5565715", "0.55647", "0.55552465", "0.55276805", "0.552702...
0.70263773
1
This method binds the poster image for each movie listing to it's grid cell. If the device in use is a tablet, the selection indicator is shown if the position matches the tracked position.
@Override public void onBindViewHolder(MovieListingViewHolder holder, int position) { Picasso.with(holder.itemView.getContext()).load(movieListings.get(position).getPosterUrl()).placeholder(R.color.blue).into(holder.posterView); if (MoviesApplication.getApp().isLargeLayout()) { holder.in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NonNull\n @Override\n public View getView(int position, View convertView, @NonNull ViewGroup parent) {\n View gridItemView = convertView;\n\n if (gridItemView == null) {\n gridItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.movie_item, parent, fal...
[ "0.59228235", "0.56879324", "0.5681713", "0.5650964", "0.5640499", "0.55824524", "0.5576678", "0.556924", "0.5464375", "0.5456735", "0.5431999", "0.54312944", "0.5378162", "0.5372196", "0.5364541", "0.5323087", "0.52730596", "0.52479166", "0.5212015", "0.52048504", "0.5189379...
0.6339792
0
TODO Autogenerated method stub
@Override public View getView(int position, View convertView, ViewGroup parent) { View grid; LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (convertView == null) { grid = new View(context); grid = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
List lista = serviceVacantes.buscarTodas(); model.addAttribute("vacantes", lista);
@GetMapping("/index") public String mostrarIndex(Model model) { List<Usuario> listaUsuario = serviceUsuario.buscarTodosUsuarios(); model.addAttribute("usuarios", listaUsuario); return "usuarios/listUsuarios"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value=\"/listar\", method=RequestMethod.GET)\r\n\tpublic String listar(Model model) {\t\t\r\n\t\tmodel.addAttribute(\"titulo\", \"Listado de Pacientes\");\r\n\t\tmodel.addAttribute(\"pacientes\", pacienteService.findAll());\r\n\t\treturn \"listar\";\r\n\t}", "@RequestMapping(method=RequestMethod....
[ "0.75883114", "0.7118688", "0.70317185", "0.70266414", "0.7024793", "0.6956146", "0.69535166", "0.6905168", "0.68649185", "0.6850309", "0.6790009", "0.67632157", "0.67379385", "0.671088", "0.668474", "0.6678274", "0.6671312", "0.66188526", "0.65701616", "0.6562927", "0.655761...
0.0
-1
Esta interfaz define los metodos que debe implementar un DAO para el modulo de preguntas y respuestas.
public interface PreguntaDao { /** Devuelve las preguntas mas recientes, ordenadas desde la mas reciente hacia la mas antigua. * @param page La pagina de preguntas (comienza de la 1) * @param pageSize El numero de resultados a devolver por pagina. */ public List<Pregunta> getPreguntasRecientes(int page, int page...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActivi...
[ "0.7342782", "0.724847", "0.72357917", "0.72193563", "0.7095158", "0.70879734", "0.70285803", "0.70116824", "0.700817", "0.69877946", "0.69628245", "0.69492507", "0.69354904", "0.69336015", "0.69326544", "0.6902038", "0.6895955", "0.6879387", "0.686676", "0.68631685", "0.6842...
0.7372824
0
Devuelve las preguntas mas recientes, ordenadas desde la mas reciente hacia la mas antigua.
public List<Pregunta> getPreguntasRecientes(int page, int pageSize);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cruzarGenesMonopunto(Cromosoma padre, Cromosoma madre) {\n\t\t//obtenemos el punto de cruce\n\t\tint longCromosoma = this.poblacion[0].getLongitudCrom();\n\t\tint puntoCruce = (int) (Math.random() * longCromosoma) + 1;\n\t\t\n\t\tboolean[] infoPadre = padre.getCromosoma();\n\t\tboolean[] infoMadre = m...
[ "0.5766013", "0.56979334", "0.5655207", "0.56077033", "0.56033415", "0.55904573", "0.55686426", "0.5566963", "0.55356616", "0.55323005", "0.54828435", "0.5454581", "0.54379326", "0.54125303", "0.5374636", "0.5340409", "0.53236765", "0.5310978", "0.530112", "0.5294927", "0.529...
0.0
-1
Devuelve las preguntas hechas por el usuario indicado.
public List<Pregunta> getPreguntasUsuario(Usuario user);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printHomeChoises() {\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"\\nEcolha a seguir a ação deseja inserindo o numero relativo\")\n .append(\"\\n1 - Cadastrar Novo Usuário\")\n .append(\"\\n2 - Imprimir Usuários\")\n .append(\"\\n3 - Informação do ...
[ "0.48826107", "0.46656483", "0.46433634", "0.46269947", "0.45851552", "0.45554298", "0.44902918", "0.44729486", "0.44523975", "0.44430122", "0.4424836", "0.44212085", "0.4414709", "0.44060713", "0.4403033", "0.43859273", "0.43838", "0.43775898", "0.43688053", "0.43621916", "0...
0.0
-1
Devuelve las preguntas que contienen el tag especificado.
public List<Pregunta> getPreguntasConTag(TagPregunta tag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Pattern getTagPattern();", "public List<Pregunta> getPreguntasConTag(String tag);", "public List<TagPregunta> findMatchingTags(String parcial);", "public List<String> getMTFromParentTag(String tag) {\n\t\tString modifier = \"\";\n\t\tString newTag = \"\";\n\n\t\tPattern p = Pattern.compile(\"^\\\\[(\\\\w+)\\...
[ "0.6574167", "0.5820027", "0.56340665", "0.52721405", "0.5033217", "0.4989403", "0.49892864", "0.49721888", "0.4969615", "0.49654526", "0.486393", "0.48567456", "0.4832675", "0.47980052", "0.47823495", "0.474891", "0.474891", "0.47473535", "0.4747164", "0.47466394", "0.474400...
0.5787657
2
Devuelve todas las preguntas que tengan al menos uno de los tags especificados.
public List<Pregunta> getPreguntasConTags(Set<TagPregunta> tags);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<TagPregunta> findMatchingTags(String parcial);", "public List<Pregunta> getPreguntasConTag(TagPregunta tag);", "public List<Pregunta> getPreguntasConTag(String tag);", "public List<Pregunta> getPreguntas() {\n\t\treturn pdao.getPreguntasConTag(tag);\n\t}", "private void processTags() {\r\n ...
[ "0.63495433", "0.6316761", "0.61749053", "0.5802984", "0.5703595", "0.55816805", "0.5552435", "0.550688", "0.5490977", "0.54826415", "0.5465562", "0.5414261", "0.5315384", "0.5301019", "0.52642757", "0.5240669", "0.5222844", "0.521771", "0.5205305", "0.5173875", "0.5168891", ...
0.6473839
0
Devuelve las preguntas que contienen el tag especificado.
public List<Pregunta> getPreguntasConTag(String tag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Pattern getTagPattern();", "public List<Pregunta> getPreguntasConTag(TagPregunta tag);", "public List<TagPregunta> findMatchingTags(String parcial);", "public List<String> getMTFromParentTag(String tag) {\n\t\tString modifier = \"\";\n\t\tString newTag = \"\";\n\n\t\tPattern p = Pattern.compile(\"^\\\\[(\\\\...
[ "0.6574167", "0.5787657", "0.56340665", "0.52721405", "0.5033217", "0.4989403", "0.49892864", "0.49721888", "0.4969615", "0.49654526", "0.486393", "0.48567456", "0.4832675", "0.47980052", "0.47823495", "0.474891", "0.474891", "0.47473535", "0.4747164", "0.47466394", "0.474400...
0.5820027
1
Devuelve los tags mas utilizados en preguntas.
public List<TagPregunta> getTagsPopulares(int limit);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<TagPregunta> findMatchingTags(String parcial);", "UniqueTagList getTags();", "private void processTags() {\r\n tagNames.stream().map(name -> {\r\n tags.get(name).checkMembers();\r\n return name;\r\n }).forEach(name -> {\r\n if (!tags.get(name).hasMembe...
[ "0.66087735", "0.6361991", "0.6352845", "0.6349803", "0.62577593", "0.61158967", "0.60867226", "0.60618824", "0.60593075", "0.6024638", "0.6009255", "0.59663266", "0.59600425", "0.5912763", "0.58819264", "0.58683836", "0.58677095", "0.5835894", "0.58162904", "0.58137846", "0....
0.5290932
87
Devuelve la pregunta con el id especificado.
public Pregunta getPregunta(int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIdPregunta()\n {\n return idPregunta;\n }", "@Override\r\n public Assunto buscarId(int id) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto a WHERE a.id =:id\");\r\n query.setParameter(\"id\...
[ "0.6845688", "0.63489574", "0.6244503", "0.62381256", "0.61295223", "0.60953206", "0.5974408", "0.59188974", "0.58952755", "0.588592", "0.58609945", "0.58417815", "0.5815043", "0.5788291", "0.57532704", "0.57393193", "0.56829435", "0.5678209", "0.5674311", "0.56639904", "0.56...
0.75484765
0
Devuelve las respuestas a la pregunta especificada.
public List<Respuesta> getRespuestas(Pregunta q, int pageSize, int page, boolean crono);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleAllResponses(Vector respuestas, Vector aceptadas){\n\t\t\tint nPujas = 0;\n\t\t\t//String pujas = getPujas(respuestas);\n\n\t\t\tfor(Object resp : respuestas){\n\t\t\t\tACLMessage mensaje = (ACLMessage) resp;\n\n\t\t\t\tif(mensaje.getPerformative() == ACLMessage.PROPOSE){\t// Si los mensajes s...
[ "0.65811676", "0.63054705", "0.61500806", "0.61354184", "0.59909415", "0.5964069", "0.5957109", "0.59376836", "0.59156555", "0.59027684", "0.5861997", "0.58082634", "0.5739375", "0.5655653", "0.55912334", "0.55849755", "0.5521736", "0.551208", "0.55035466", "0.5499348", "0.54...
0.6454645
1
Devuelve la lista de preguntas con mas votos positivos.
public List<Pregunta> getPreguntasMasVotadas(int limit);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }", "public List<Pregunta> getPreguntas() {\n\t\treturn pdao.getPreguntasConTag(tag);\n\t}", "public static ArrayList<Puntaje> listadoPuntajes(String ruta, String jugador)\n { \n ArrayList<S...
[ "0.60875094", "0.6033028", "0.5932403", "0.58870703", "0.5832704", "0.5762674", "0.5711944", "0.5706248", "0.5628487", "0.5616739", "0.55774474", "0.55529106", "0.5547469", "0.5517848", "0.5516175", "0.5513365", "0.54985976", "0.54862696", "0.548551", "0.5481429", "0.54811126...
0.58984506
3
Devuelve la lista de preguntas que no tienen ni una sola respuesta.
public List<Pregunta> getPreguntasSinResponder(int limit);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Pregunta> getPreguntas() {\n\t\treturn pdao.getPreguntasConTag(tag);\n\t}", "public static HashSet<Pregunta> getPreguntas() {\n return preguntas;\n }", "@Override\n\tpublic HashSet<Registro> listDisponible() throws Exception {\n\t\treturn null;\n\t}", "public List<Respuesta> getRespuest...
[ "0.62076354", "0.6065143", "0.6059071", "0.5857312", "0.58321816", "0.5772113", "0.56758714", "0.564584", "0.56290925", "0.56058717", "0.5605021", "0.5532665", "0.551593", "0.5494839", "0.5490465", "0.54530877", "0.54323834", "0.54303384", "0.5393898", "0.5375697", "0.5375543...
0.6071543
1
Devuelve la lista de preguntas cuyo autor no ha elegido una respuesta.
public List<Pregunta> getPreguntasSinResolver(int limit);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Pregunta> getPreguntasUsuario(Usuario user);", "public List<Pregunta> getPreguntas() {\n\t\treturn pdao.getPreguntasConTag(tag);\n\t}", "public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }", "public static void listarRegistros() {\n Sys...
[ "0.67195475", "0.63630694", "0.6345733", "0.61982584", "0.61883533", "0.6095883", "0.6079761", "0.60178113", "0.60072047", "0.59328884", "0.5915844", "0.58592564", "0.5842354", "0.5790406", "0.57633656", "0.5749603", "0.5706836", "0.5705826", "0.5691428", "0.5690818", "0.5689...
0.5864619
11
Registra un voto que un usuario hace a una pregunta.
public VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registrarVenta(String fruta, String proteina, String grano, String almidon) {\n if(!this.sePuedePreparar(fruta, proteina, grano, almidon)) {\n throw new RuntimeException(\"Ingredientes insuficientes\");\n }\n \n Almuerzo almuerzo = new Almuerzo(this, fruta, proteina...
[ "0.6288591", "0.6137489", "0.6120515", "0.5975841", "0.5959335", "0.5925838", "0.59251094", "0.5917069", "0.5912566", "0.58618176", "0.58497787", "0.5825779", "0.5823073", "0.5785429", "0.5781078", "0.5780088", "0.57762355", "0.5772768", "0.57707393", "0.5767803", "0.57630986...
0.6671706
0
Registra un voto que un usuario hace a una respuesta que se hizo a una pregunta.
public VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;", "public Respuesta addRespuesta(String resp, Pregunta p, Usuario autor);", "public void registrarPreguntaRespuesta() throws SolrServerException, IOException{\n \tregistrarBaseDatosRedis(); //Regist...
[ "0.63659024", "0.63531244", "0.6177144", "0.59804976", "0.5919114", "0.5870439", "0.5840455", "0.5831197", "0.57825685", "0.57702905", "0.5747217", "0.57258207", "0.5626983", "0.5611612", "0.5590376", "0.5541363", "0.5541005", "0.55320275", "0.5526466", "0.5521056", "0.550969...
0.6321024
2
Busca y devuelve el voto realizado por el usuario indicado a la pregunta especificada, si es que existe.
public VotoPregunta findVoto(Usuario user, Pregunta pregunta);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VotoRespuesta findVoto(Usuario user, Respuesta respuesta);", "public VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;", "@Override\n\tpublic Boolean vota(String listaElettorale) {\n\t\t//definisco utente registato in questo momento\n\t\tString userVo...
[ "0.6694986", "0.64671594", "0.61194086", "0.60876226", "0.5905238", "0.5729377", "0.56265074", "0.5574797", "0.5558532", "0.5475403", "0.54744726", "0.5461859", "0.5422672", "0.5414539", "0.53962314", "0.5372744", "0.53726566", "0.5365619", "0.5359611", "0.53442633", "0.53301...
0.70955503
0
Busca y devuelve el voto hecho por el usuario indicado a la respuesta especificada, si es que existe.
public VotoRespuesta findVoto(Usuario user, Respuesta respuesta);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;", "public VotoPregunta findVoto(Usuario user, Pregunta pregunta);", "public Optional<Usuario> visualizarPerfil (String nome){\n\t\tOptional<Usuario> usuarioExistente = repository.findByNome(nome);\n\t\t\...
[ "0.6174372", "0.60442555", "0.57555825", "0.5743722", "0.56434864", "0.5592904", "0.5581592", "0.55035704", "0.55020314", "0.550087", "0.54546237", "0.5454412", "0.5346465", "0.53237516", "0.53230953", "0.53057325", "0.5291033", "0.5288179", "0.52794445", "0.52763456", "0.527...
0.70417774
0
Crea una respuesta con el texto especificado, para la pregunta especificada, por el autor especificado.
public Respuesta addRespuesta(String resp, Pregunta p, Usuario autor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar...
[ "0.5723543", "0.5637695", "0.56169504", "0.55551463", "0.55543077", "0.55494124", "0.5525421", "0.5464912", "0.5376094", "0.53676444", "0.534295", "0.53328586", "0.53268355", "0.5314402", "0.5291977", "0.5288724", "0.5263509", "0.5258148", "0.5252578", "0.52514625", "0.524519...
0.706037
0
Agrega un comentario a la pregunta especificada, a nombre del usuario especificado.
public ComentPregunta addComentario(String c, Pregunta p, Usuario autor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enviarRequisicaoPerguntarNome() {\n try {\n String nome = NomeDialogo.nomeDialogo(null, \"Informe o nome do jogador\", \"Digite o nome do jogador:\", true);\n if (servidor.verificarNomeJogador(nome)) {\n nomeJogador = nome;\n comunicacaoServic...
[ "0.66259414", "0.59989965", "0.5998216", "0.5978361", "0.59749013", "0.59223795", "0.58939767", "0.5884631", "0.5881666", "0.5873626", "0.5861061", "0.58515036", "0.5830823", "0.5810287", "0.5783226", "0.5734693", "0.57072276", "0.56575686", "0.56498003", "0.56358886", "0.563...
0.66028875
1
Agrega un comentario a la respuesta especificada, a nombre del usuario especificado.
public ComentRespuesta addComentario(String c, Respuesta r, Usuario autor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }", "public void obtenerNombreRespondedor(View v){\n String idUser = mAuth.getCurrentUser().getUid();\n dataBaseReference.child(\"Users\").child(idUser).addValueEventListener(new ValueEventListener()...
[ "0.66147083", "0.6396668", "0.6335462", "0.6253019", "0.6230697", "0.6145591", "0.6053085", "0.6040216", "0.6028987", "0.5995635", "0.5989458", "0.59675986", "0.5956817", "0.59241486", "0.5888344", "0.5870704", "0.58705765", "0.58292043", "0.580262", "0.5793542", "0.5779697",...
0.55772054
49
Agrega el tag especificado a la pregunta. Primero se busca el tag existente para relacionarlo con la pregunta, pero si no existe, se crea uno nuevo.
public void addTag(String tag, Pregunta p);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tag createTag();", "public void addTag(String t) {\n\t\tif (!tagList.containsKey(t)) {\n\t\t\ttagList.put(t, 0);\n\t\t} else {\n\t\t\tSystem.out.print(\"Tag already exists!\");\n\t\t}\n\t}", "public void agregar(T data, String tag) throws CloneNodeException, NullTagException {\n if (tag == null) {\n ...
[ "0.58676684", "0.5823165", "0.57299817", "0.56784034", "0.56691533", "0.56515855", "0.5589907", "0.5563652", "0.55466807", "0.5473243", "0.5432893", "0.5321568", "0.51914036", "0.5166484", "0.5164237", "0.51422095", "0.51311", "0.51253086", "0.511442", "0.5112626", "0.5102418...
0.7376523
0
Devuelve una lista con tags que contengan el texto parcial especificado.
public List<TagPregunta> findMatchingTags(String parcial);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getTags();", "@Nullable\n public abstract List<String> tags();", "private List<Tag> getTags(String text, boolean orderAlpha) {\r\n\t\tif (text != null)\r\n\t\t\tparseText(text);\r\n\t\tList<Tag> tags = new ArrayList<Tag>();\r\n\t\t// remplissage de la Liste des Tags\r\n\t\tEnumeration e = words....
[ "0.69646376", "0.6752027", "0.6734926", "0.67336893", "0.6649669", "0.6649669", "0.6643268", "0.66392684", "0.6626689", "0.6525843", "0.6464605", "0.6458408", "0.6458408", "0.64408386", "0.64215237", "0.6410239", "0.63640803", "0.6356292", "0.6354786", "0.6335986", "0.6332113...
0.6555638
9
An interface that allows external code to listen to browser history changes.
public static interface PopStateListener { /** * A state was popped off the browser's history stack * * @param event The event object describing the application state. Will * be <code>null</code> if no state object was explicitly given for a * particular history ent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IBackListener {\n\n void onBack();\n}", "void onHistoryButtonClicked();", "public interface HistoryCallback {\r\n void getHistory(ArrayList<MyPageResult.History> histories);\r\n}", "public void browserChanged() { }", "public static void listen(HistoryListener hl) {\n\t\tlisteners.add...
[ "0.6501296", "0.6464643", "0.638472", "0.6290548", "0.62178445", "0.61772096", "0.6176062", "0.60741204", "0.6016223", "0.59919786", "0.5968841", "0.5968841", "0.5965391", "0.5955629", "0.5893247", "0.58848214", "0.5828582", "0.5813318", "0.5809902", "0.58046025", "0.5787627"...
0.61516964
7
A state was popped off the browser's history stack
void popState(PopStateEvent event);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void popState();", "public void popState() {\n\t\tstates.pop();\n\t}", "public final void popState() {\n engine.getGameStateManager().popState();\n }", "public void back() {\n\t\tstate.back();\n\t}", "public void popState(AjaxBehaviorEvent e) {\n\t\tlstState = new ArrayList<StateMasterDesc...
[ "0.7884555", "0.7227097", "0.71474814", "0.71176565", "0.6773485", "0.67283225", "0.6675017", "0.658212", "0.64658403", "0.64288163", "0.63562787", "0.63237065", "0.629256", "0.623891", "0.6224942", "0.6214518", "0.6198235", "0.618659", "0.61144155", "0.6106813", "0.60961246"...
0.7555186
1
Checks whether this error has been cancelled or not.
public boolean isCancelled() { return cancelled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "@Override\n\tpublic boolean isCancelled() {\n\t\treturn cancelled;\n\t}", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "public final boolean isCancelled(){\n return cancel;\n }"...
[ "0.7858422", "0.7843456", "0.7832646", "0.77610224", "0.7755435", "0.7755435", "0.7755435", "0.7683506", "0.7658775", "0.76194996", "0.76044416", "0.7557479", "0.7546813", "0.7478527", "0.7417782", "0.7374262", "0.7139991", "0.7137165", "0.7114489", "0.71132296", "0.70923537"...
0.778562
3
Tells the browser to go back one step in its history stack.
public void back() { callFunction("back"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }", "public void back() {\n\t\tstate.back();\n\t}", "public void navigateToBack() {\n ...
[ "0.8009624", "0.7957188", "0.78984374", "0.771563", "0.76965934", "0.76557904", "0.76066875", "0.75727063", "0.7558262", "0.75376016", "0.74841255", "0.74703234", "0.7333076", "0.7249785", "0.724547", "0.7179922", "0.7145109", "0.7111605", "0.7102213", "0.70935655", "0.707985...
0.66753614
61
Tells the browser to go forward one step in its history stack.
public void forward() { callFunction("forward"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void navigateToForward() {\n WebDriverManager.getDriver().navigate().forward();\n }", "public static void navigateForward() {\n\t\tLOG.info(\"Navigate to forward page from current page.\");\n\t\tConstants.driver.navigate().forward();\n\n\t}", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n...
[ "0.77138215", "0.7565632", "0.7298232", "0.72944987", "0.70027554", "0.6840347", "0.6766607", "0.6722742", "0.65874285", "0.65733653", "0.6516383", "0.65021485", "0.64765745", "0.64512795", "0.637761", "0.6244555", "0.6179911", "0.61501855", "0.614253", "0.61421907", "0.61401...
0.61960906
16
Tells the browser to go forward or backwards a certain amount of steps in its history stack. Negative values go backwards, positive values go forwards.
@SuppressWarnings("boxing") public void go(final int steps) { callFunction("go", steps); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void past(int back);", "public void stepForward() {\n\t\tposition = forwardPosition();\n\t}", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}", "public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}", "public void back () {\r\n if (backHistory.size() > 1) {\r\n ...
[ "0.66265136", "0.64325696", "0.64011645", "0.635277", "0.62177986", "0.60752624", "0.60206854", "0.5967412", "0.5884738", "0.5807269", "0.5800202", "0.5711301", "0.5706", "0.56964684", "0.56915945", "0.56878537", "0.56779784", "0.5665265", "0.5639694", "0.5633704", "0.5618495...
0.5292465
48
this is assumes changing addresses!
private void fireListeners(final JsonObject state, final String address) { if (address.equals(lastAddress)) { return; } lastAddress = address; final PopStateEvent event = new PopStateEvent(state, address); for (final PopStateListener listener : popListeners) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resolveAddress(){\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof LabelCode){\n LabelCode code = (LabelCode)byteCodeList.get(i);\n labels.put(code.getLabel(), i);\n }else if(byteCodeList.get(i) instanceof Lin...
[ "0.6257088", "0.6221941", "0.62059826", "0.6157109", "0.6062339", "0.6005018", "0.5999959", "0.5984595", "0.5984595", "0.5984595", "0.5984595", "0.5984595", "0.5984595", "0.59665984", "0.5944022", "0.59366995", "0.5932989", "0.5924517", "0.590566", "0.589928", "0.58430254", ...
0.0
-1
/ This method is overridden to stop all clientside calls if the API is not supported. Otherwise we'd get a lot of unnecessary function calls that will simply end up failing.
@Override protected void callFunction(final String name, final Object... arguments) { if (!unsupported) { super.callFunction(name, arguments); } else { Logger.getLogger(getClass().getName()).warning( "PushState is unsupported by the client " ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleApiDisabled() {\r\n\t\thandler.post(new Runnable(){\r\n\t\t\tpublic void run(){\r\n\t\t \tUtils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disabled));\r\n\t\t\t}\r\n\t\t});\t\t\t\t\r\n }", "@Override\r\n\tprotected ResponseEntity<Object> handleHttpRequestMethodNotS...
[ "0.63800406", "0.5827296", "0.5806405", "0.5507814", "0.54603094", "0.5451891", "0.5413696", "0.5352837", "0.53483236", "0.53399336", "0.53256", "0.5311692", "0.52835375", "0.52799004", "0.52799004", "0.52734494", "0.52698356", "0.52666193", "0.52663153", "0.52526927", "0.525...
0.48444214
94
A helper method to configure a "pushState" enabled Navigator for given UI and ViewDisplay.
public static void configurePushStateEnabledNavigator(UI ui, ViewDisplay display) { HistoryExtension history = new HistoryExtension(); history.extend(ui); String contextPath = VaadinServlet.getCurrent().getServletContext() .getContextPath(); NavigationStateManager pushS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void configurePushStateEnabledNavigator(UI ui, ComponentContainer display) {\n HistoryExtension history = new HistoryExtension();\n history.extend(ui);\n\n String contextPath = VaadinServlet.getCurrent().getServletContext()\n .getContextPath();\n\n final Nav...
[ "0.81523824", "0.80540967", "0.50049686", "0.4949989", "0.49072015", "0.49050754", "0.4672357", "0.46696344", "0.46416974", "0.45697534", "0.45603725", "0.45252153", "0.44875464", "0.44614676", "0.44474867", "0.44254327", "0.43969828", "0.43969828", "0.43523863", "0.43400627", ...
0.83551365
0
A helper method to configure a "pushState" enabled Navigator for given UI and SingleComponentContainer to be used as view display.
public static void configurePushStateEnabledNavigator(UI ui, SingleComponentContainer display) { HistoryExtension history = new HistoryExtension(); history.extend(ui); String contextPath = VaadinServlet.getCurrent().getServletContext() .getContextPath(); final Navigatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void configurePushStateEnabledNavigator(UI ui, ComponentContainer display) {\n HistoryExtension history = new HistoryExtension();\n history.extend(ui);\n\n String contextPath = VaadinServlet.getCurrent().getServletContext()\n .getContextPath();\n\n final Nav...
[ "0.8016617", "0.7930131", "0.5008844", "0.49431238", "0.47217882", "0.46348238", "0.45810732", "0.45314592", "0.45046455", "0.44991562", "0.44876668", "0.44759268", "0.44461936", "0.44211802", "0.4391293", "0.43519565", "0.43471143", "0.43406618", "0.432169", "0.42955753", "0...
0.82068646
0
A helper method to configure a "pushState" enabled Navigator for given UI and ComponentContainer to be used as view display.
public static void configurePushStateEnabledNavigator(UI ui, ComponentContainer display) { HistoryExtension history = new HistoryExtension(); history.extend(ui); String contextPath = VaadinServlet.getCurrent().getServletContext() .getContextPath(); final NavigationState...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void configurePushStateEnabledNavigator(UI ui, SingleComponentContainer display) {\n HistoryExtension history = new HistoryExtension();\n history.extend(ui);\n\n String contextPath = VaadinServlet.getCurrent().getServletContext()\n .getContextPath();\n\n fin...
[ "0.8051436", "0.79315555", "0.48940265", "0.48615068", "0.48431492", "0.46887872", "0.46330023", "0.45989525", "0.45945323", "0.45939693", "0.4585143", "0.45380247", "0.45209748", "0.45110816", "0.44327208", "0.44157138", "0.43980068", "0.43782365", "0.43709725", "0.43441564", ...
0.80430084
1
main() for standalone version.
public static void main(String args[]) { StandaloneGameOfLife gameOfLife = new StandaloneGameOfLife(); gameOfLife.args = args; new AppletFrame( "Game of Life", gameOfLife ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(String[] args) {\n // TODO code application logic here\n // some testing? or actually we can't run it standalone??\n }", "public static void main()\n\t{\n\t}", "public static v...
[ "0.7714113", "0.7714113", "0.76858294", "0.7568184", "0.7565332", "0.7538708", "0.75234747", "0.7522348", "0.7509703", "0.7494039", "0.74867135", "0.7478047", "0.7476566", "0.7455732", "0.7455732", "0.7455732", "0.7452647", "0.7431651", "0.7403918", "0.7389382", "0.7389382", ...
0.0
-1
Override method, called by applet.
public String getParameter( String parm ) { return System.getProperty( parm ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initApplet() {\n\t}", "public HtmlTagApplet() {\n super(\"applet\");\n setValidAttributes(new String[]{\"align\", \"alt\", \"archive\", \"code\", \"codebase\", \"height\", \"hspace\", \"name\", \"object\", \"vspace\", \"width\"});\n }", "public void init(){\n ...
[ "0.74669826", "0.63816726", "0.6061057", "0.60379505", "0.6016442", "0.59669894", "0.5870767", "0.5862259", "0.5842165", "0.58153737", "0.5795693", "0.579143", "0.5765886", "0.5761568", "0.5759094", "0.5751507", "0.5748114", "0.5748114", "0.5748114", "0.5748114", "0.5748114",...
0.0
-1
Do not use showStatus() of the applet.
public void showStatus( String s ) { // do nothing }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showStatus(String paramString) {\n/* 258 */ getAppletContext().showStatus(paramString);\n/* */ }", "public String showStatus();", "private void updateGUIStatus() {\r\n\r\n }", "public void printStatus();", "private void displayStatusPanel(String message, String title, int status) {...
[ "0.76945513", "0.6757568", "0.6598299", "0.64330965", "0.64137864", "0.6253906", "0.6227145", "0.6205547", "0.61695725", "0.6167525", "0.6136448", "0.6129065", "0.60922915", "0.6067369", "0.6000243", "0.598899", "0.5981574", "0.5975196", "0.5968526", "0.5919089", "0.58845407"...
0.6547998
3
Process close window button.
public void processEvent( AWTEvent e ) { if ( e.getID() == Event.WINDOW_DESTROY ) System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void windowClose(CloseEvent e);", "private void btnCancelActionPerformed(ActionEvent e) {\n processWindowEvent(new WindowEvent(this,WindowEvent.WINDOW_CLOSING));\n }", "private void closeBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_closeBtnMouseClicked\n Sy...
[ "0.7863016", "0.78067696", "0.7796108", "0.76858", "0.7616798", "0.75947094", "0.7587951", "0.75749373", "0.7568888", "0.7538397", "0.7529782", "0.74943626", "0.74630713", "0.74527645", "0.74497515", "0.7435467", "0.7419462", "0.7419258", "0.7416414", "0.73788506", "0.7378850...
0.0
-1
logic to verify the action can be done based on current state and command parameters if (IsAlreadyInPort) throw Exception(); create an event of what happened with this action it should not mutate state, but it can capture external state when it arrives it's also based on current state and command parameters
public void arrive(Port port) { ShipArrived event = new ShipArrived("id", port, new Date()); // apply change du to the event // it should require only current state and apply(event); list.add(event); // events will be published to the rest of the system // from th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean runAction(Canvas cv, SUT system, State state, Taggable fragment){\n\t\tActionStatus actionStatus = new ActionStatus();\n\t\twaitUserActionLoop(cv,system,state,actionStatus);\n\n\t\tcv.begin(); Util.clear(cv);\n\t\t//visualizeState(cv, state);\n\t\tvisualizeState(cv, state,system); // by urueda \n\t...
[ "0.5584039", "0.54903716", "0.53991246", "0.53868806", "0.5364691", "0.5363863", "0.53618485", "0.5284997", "0.5268603", "0.522785", "0.520671", "0.5199632", "0.5198685", "0.51904917", "0.51877415", "0.5139975", "0.5117444", "0.51154083", "0.51154083", "0.51143414", "0.510503...
0.48686522
46
no decision should happen here ! currentState.Port = event.Port;
private void apply(ShipArrived event) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stateChanged(SensorPort arg0, int arg1, int arg2) {\n\t\t\n\t}", "abstract protected int PortToRunOn();", "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "private void setInPort(int value) {\n \n inPort_ = value;\n }", "private void setInPort(int v...
[ "0.677739", "0.6328303", "0.6076267", "0.6007168", "0.6007168", "0.5985524", "0.5985524", "0.5980739", "0.5928763", "0.5928763", "0.5896722", "0.586831", "0.5864748", "0.5822046", "0.5822046", "0.58174783", "0.58124214", "0.5811087", "0.5779217", "0.5760042", "0.57234114", ...
0.0
-1
Called when the user taps the Send button
public void sendMessage(View view) { Intent intent = new Intent(this, DisplayMessageActivity.class); EditText editText = (EditText) findViewById(R.id.editText); String message = editText.getText().toString(); intent.putExtra(EXTRA_MESSAGE, message); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendClick(View view) {\n String message = input.getText().toString();\n uart.send(message);\n }", "@Override\n public void onClick(View view) {\n send();\n }", "public void handleSendButton(ActionEvent event) {\n\n messageController.setMe...
[ "0.75633574", "0.7549932", "0.71221423", "0.7106012", "0.70827943", "0.70827943", "0.70536935", "0.7051776", "0.7042695", "0.69849074", "0.696726", "0.69670296", "0.6966191", "0.695143", "0.6935805", "0.690506", "0.68974376", "0.6879746", "0.6874844", "0.6863656", "0.6856257"...
0.63741976
74
increment the count number by one when the count button is clicked
public void countMe(View view){ //get the middle number TextView showCountTextView = (TextView) findViewById(R.id.numberBox); //get the value of the text view, convert it to a number and increment it. String countString = showCountTextView.getText().toString(); Integer count = I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementCount() {\n count++;\n }", "public void incrementCount() {\n\t\tcount++;\n\t}", "public void incrementCount(){\n count+=1;\n }", "public void increaseCount(View view) {\n count++;\n display(count);\n }", "void incrementCount();", "public v...
[ "0.8146654", "0.7996598", "0.78963685", "0.7695323", "0.7680204", "0.7591321", "0.7531834", "0.74824446", "0.74748415", "0.7353866", "0.7281176", "0.72803795", "0.7142066", "0.7097432", "0.7097432", "0.7097432", "0.70906126", "0.7060466", "0.7053813", "0.7053021", "0.7047291"...
0.7281063
11
reset count when the button is clicked
public void countReset(View view){ //get the textView and then set count to zero TextView showCountTextView = (TextView) findViewById(R.id.numberBox); showCountTextView.setText("0"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void resetCount() {\n count = 1;\n }", "public void resetCount() {\n count = 0;\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "void reset() {\n count = 0;\n\n }", "public void resetCount(View view) {\n\t\tcounterModel.resetCounter();\n\t\tcurre...
[ "0.7638129", "0.7637566", "0.7480502", "0.72895783", "0.7269076", "0.7121799", "0.7121799", "0.7000882", "0.6986814", "0.68972385", "0.67547315", "0.66698086", "0.66439533", "0.66410744", "0.6640471", "0.6636927", "0.6623952", "0.6584629", "0.65657175", "0.6529287", "0.652872...
0.7460505
3
create the intent to start the second activity
public void randomMe(View view){ Intent randomIntent = new Intent(this, RandomCountActivity.class); TextView countTextView = (TextView) findViewById(R.id.numberBox); String countString = countTextView.getText().toString(); Integer count = Integer.parseInt(countString); randomInte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }", "@Override\n\t\tpublic void onClick(View v)\n\t\t{\n\t\t\tIntent intent=new Intent();\n\t\t\tintent.setClass(MainActivity.this, SecondActiv...
[ "0.7603783", "0.7425584", "0.7327053", "0.7287322", "0.7180654", "0.7175427", "0.71533126", "0.7132314", "0.7123662", "0.71075493", "0.704279", "0.70412046", "0.7039332", "0.70175576", "0.6972361", "0.69179183", "0.69138855", "0.68186706", "0.68060356", "0.6798151", "0.678196...
0.0
-1
open maps activity when map button is clicked
public void mapsOpen (View view) { Intent mapIntent = new Intent(this, MapsActivity.class); startActivity(mapIntent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClickToMap(View view){\n startActivity(new Intent(MainActivity.this, MapsActivity.class));\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MapActivity.class);\n startActivity(intent);\n ...
[ "0.85374826", "0.8394179", "0.8334659", "0.81437933", "0.8114402", "0.80440825", "0.8018417", "0.80147314", "0.7996712", "0.79783326", "0.77958447", "0.7782418", "0.75954217", "0.75295883", "0.75211567", "0.7492621", "0.74918604", "0.7482586", "0.74231875", "0.741076", "0.735...
0.8271772
3
adds the trust domain section
public Widget asWidget() { this.keyLayout = new VerticalPanel(); this.keyLayout.setStyleName("fill-layout-width"); addActions(this.keyLayout); addTable(this.keyLayout); return keyLayout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void installTrustStore() {\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStore\", trustStore);\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStoreType\", trustStoreType);\n }\n if (trus...
[ "0.5499619", "0.54012", "0.52302325", "0.5196413", "0.5185705", "0.51837045", "0.5178355", "0.5146718", "0.5124516", "0.51091224", "0.5103569", "0.5099033", "0.50614744", "0.50456494", "0.5037651", "0.50364536", "0.50364536", "0.5012883", "0.50081354", "0.49082345", "0.490823...
0.0
-1
Tag of the Quiz ID of an Intent send to this class
@Override public void onReceive(Context context, Intent intent) { boolean entering = intent.getBooleanExtra(LocationManager.KEY_PROXIMITY_ENTERING, false); if (entering) { if (intent.getIntExtra(TAG_QUIZ_ID, -1) != Route.getCurrentQuizId()) return; if (!LocalBroadcastManager...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startQuiz() {\n Intent intent = new Intent(StartingScreenActivity.this, QuizActivity.class);\n startActivity(intent);\n\n Category selectedCategory = (Category) spinnerCategory.getSelectedItem();\n int categoryID = selectedCategory.getId();\n String categoryName = se...
[ "0.5723506", "0.5701522", "0.55070066", "0.5454084", "0.5432589", "0.54080033", "0.5407164", "0.53514063", "0.5339302", "0.53095937", "0.5302002", "0.53004086", "0.52966946", "0.52805537", "0.525897", "0.5246603", "0.5238862", "0.5227674", "0.5220605", "0.51836437", "0.513551...
0.0
-1
Task: Hash a given string using MD5 and return the result as a BigInteger.
public static BigInteger hashOf(String entity) { MessageDigest md = null; try { md = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } // we use MD5 with 128 bits digest byte[] entityByte = entity.getBytes(); // compute the hash of the input 'entity'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfina...
[ "0.68030417", "0.68030053", "0.67114884", "0.6676254", "0.6528769", "0.6474597", "0.6381967", "0.63731176", "0.6371739", "0.63575673", "0.6344755", "0.6313079", "0.63107604", "0.6290859", "0.6228558", "0.620357", "0.61764824", "0.616541", "0.6164878", "0.61305517", "0.6072592...
0.70605576
0
Task: compute the address size of MD5
public static BigInteger addressSize() { MessageDigest md = null; try { md = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } // get the digest length int lengde = md.getDigestLength(); // compute the number of bits = digest length * 8 int bits = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\...
[ "0.6565029", "0.6494391", "0.63249314", "0.6171005", "0.61535174", "0.6086949", "0.6020308", "0.6010921", "0.59186316", "0.5869141", "0.5865711", "0.58573", "0.5853754", "0.5836827", "0.5797818", "0.5765173", "0.5762334", "0.5747939", "0.5728185", "0.57240665", "0.5712396", ...
0.7691953
0
Restituisce l'indirizzo di spedizione dell'ordine
public IndirizzoBean getIndirizzo() { return indirizzo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public DatosIntercambio subirFichero(String nombreFichero,int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\n \t//AQUI HACE FALTA CONOCER LA IP PUERTO DEL ALMACEN\n \t//Enviamos los datos para que el servicio Datos almacene los metadatos \n \td...
[ "0.55872726", "0.5584583", "0.55747986", "0.5516386", "0.5417429", "0.54112947", "0.53987837", "0.52701443", "0.51884305", "0.51569444", "0.51127046", "0.51062375", "0.5097301", "0.5096454", "0.509595", "0.5093985", "0.5065953", "0.5055349", "0.5050957", "0.5032567", "0.50148...
0.0
-1
Setta l'indirizzo di spedizioned dell'ordine
public void setIndirizzo(IndirizzoBean indirizzo) { this.indirizzo = indirizzo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n ...
[ "0.5837112", "0.5790126", "0.5455919", "0.54378265", "0.5368494", "0.53026277", "0.5216976", "0.5175035", "0.5150536", "0.5150478", "0.5131639", "0.5098443", "0.50674474", "0.5065933", "0.5054061", "0.50482666", "0.5039132", "0.5036375", "0.50353134", "0.50350386", "0.5032133...
0.0
-1
Restituisce la carta di credito che ha effettuato l'ordine
public CartaBean getCarta() { return carta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTarjetaCredito(){\n return tarjetaCredito;\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "public void credentials(Object cred) {\n this.cred = cred;\n }", "public FiltroCreditoTipo() {\r\n\t}", "public Object credentials() {\n return cred;\n }", "...
[ "0.6436521", "0.6387872", "0.59590733", "0.59569836", "0.59497786", "0.59441173", "0.5923717", "0.58957833", "0.58735305", "0.5863025", "0.58247703", "0.5755831", "0.5755831", "0.573949", "0.57341355", "0.5690678", "0.56577057", "0.56488764", "0.56034964", "0.5582415", "0.556...
0.0
-1
Setta la carta di credito per l'ordine
public void setCarta(CartaBean carta) { this.carta = carta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void credentials(Object cred) {\n this.cred = cred;\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "private void setUserCredentials() {\n ((EditText) findViewById(R.id.username)).setText(\"harish\");\n ((EditText) findViewById(R.id.password)).setText(\"11111111\");\n ...
[ "0.6711105", "0.6671205", "0.61116844", "0.61009645", "0.5996714", "0.5979064", "0.5907005", "0.58959997", "0.58714056", "0.58364487", "0.5772077", "0.57138467", "0.5692281", "0.56700695", "0.56689954", "0.56654024", "0.5615914", "0.56039345", "0.55856353", "0.5578768", "0.55...
0.0
-1
Restituisce lo stato dell'ordine
public String getStato() { return stato; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "public StatoOrdine getStatoOrdine() {\r\n\t\tStatoOrdine eStato;\r\n\t\ttry {\r\n\t\t\teStato = StatoOrdine.valueOf(stato);\r\n\t\t} catch (Exception e) {\r\n\t\t\teStato = StatoOrdine.NONE;\r\n\t\t}\r\n\t\treturn eStato;\r\n...
[ "0.6361145", "0.62993157", "0.6221208", "0.61978567", "0.61908114", "0.61743397", "0.61554813", "0.6117434", "0.6117003", "0.61137265", "0.60863274", "0.6042868", "0.59987456", "0.598435", "0.5946733", "0.5943436", "0.5934854", "0.5924974", "0.5923711", "0.59228677", "0.58958...
0.5584313
49
Setta lo stato dell'ordine
public void setStato(String stato) { this.stato = stato; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0)...
[ "0.6512381", "0.6449502", "0.6375186", "0.63609046", "0.62860006", "0.627287", "0.62223315", "0.6177413", "0.6135087", "0.6122409", "0.60959053", "0.6087679", "0.6076706", "0.6049679", "0.6028859", "0.60121626", "0.60078126", "0.60019577", "0.5985103", "0.5985103", "0.5964380...
0.6041166
14
Restituisce il codice di tracking dell'ordine
public String getTracking() { return tracking; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract java.lang.String getCod_dpto();", "@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }", "public abstract java.lang.String getCod_localidad();", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public void llenar...
[ "0.5368408", "0.53596854", "0.53096783", "0.5292504", "0.52761644", "0.52680093", "0.526369", "0.52517885", "0.5156089", "0.51392", "0.51392", "0.5124228", "0.5124228", "0.5124228", "0.5096021", "0.50879335", "0.50666255", "0.5064207", "0.50535214", "0.50518644", "0.5047814",...
0.0
-1
Setta il codice di tracking dell'ordine
public void setTracking(String tracking) { this.tracking = tracking; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setCod_actividad(java.lang.Long newCod_actividad);", "@Generated(hash = 2094494111)\npublic void setOcorrencia(Ocorrencia ocorrencia) {\n synchronized (this) {\n this.ocorrencia = ocorrencia;\n codigoOcorrencia = ocorrencia == null ? null : ocorrencia.getId();\n ocorr...
[ "0.57740414", "0.5753239", "0.57530624", "0.56660557", "0.5647972", "0.56233907", "0.56138355", "0.55800706", "0.55800706", "0.5562395", "0.55112237", "0.5494205", "0.5476907", "0.5476907", "0.54681444", "0.54512584", "0.54348767", "0.54334307", "0.5429798", "0.5427429", "0.5...
0.0
-1
Restituisce il costo totale dell'ordine
public double getTotale() { return totale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTotalCost();", "public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n ...
[ "0.7512371", "0.7397642", "0.7310258", "0.7139408", "0.71291935", "0.6963594", "0.6942327", "0.6934409", "0.6899662", "0.6899662", "0.6897741", "0.6892109", "0.68767536", "0.6847186", "0.6842885", "0.6841433", "0.6841329", "0.6841329", "0.68329644", "0.68238026", "0.68166316"...
0.0
-1
Setta il costo totale dell'ordine
public void setTotale(double totale) { this.totale = totale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "double getTotalCost();", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelec...
[ "0.7158802", "0.6978164", "0.6976645", "0.69003963", "0.6888087", "0.687674", "0.68457735", "0.67981493", "0.6738918", "0.66978705", "0.66918653", "0.667063", "0.65916204", "0.6585579", "0.65799254", "0.65767926", "0.6554697", "0.65413785", "0.6524024", "0.651193", "0.6506731...
0.6375441
42
Restituisce il numero dell'ordine
public int getNumOrdine() { return numOrdine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n return dado1;\n }", "public String getPremierNumeroLibre() {\n\t\tString requete_s = \"SELECT id from LIVRES\";\n\t\tint i = 0;\n\t\tboolean egalite = true;\n\t\t\n\t\ttry{\n\t\t\trequete.execute(requete_s);\n\t\t\t\n\t\...
[ "0.6647357", "0.6628961", "0.66105694", "0.6568862", "0.6482414", "0.64182085", "0.6374074", "0.63435507", "0.63364756", "0.631997", "0.6285252", "0.6285252", "0.6285252", "0.61572105", "0.61333376", "0.6119267", "0.6115619", "0.60988814", "0.6094862", "0.60838723", "0.605192...
0.6687022
0
Setta il numero dell'ordine
public void setNumOrdine(int numOrdine) { this.numOrdine = numOrdine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumero(int numero) { this.numero = numero; }", "public void setNumero(int numero) {\n this.dado1 = numero;\n }", "public void setNumero(int index, int value){\r\n\t\tnumeros.set(index, value);\r\n\t}", "public void setNUMARGEO(int value) {\n this.numargeo = value;\n ...
[ "0.6970438", "0.6940768", "0.67608804", "0.6758687", "0.6754001", "0.66444194", "0.66361505", "0.6575743", "0.6573382", "0.65691686", "0.6482937", "0.6477174", "0.6468879", "0.64313984", "0.6428758", "0.6419717", "0.6412787", "0.6399985", "0.6384489", "0.6373372", "0.6373372"...
0.7246454
0
Restituise l'user che ha effettuato l'ordine
public String getUser() { return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void accionUsuario() {\n\t\t\r\n\t}", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUs...
[ "0.6875146", "0.67671394", "0.6715817", "0.66195613", "0.65808386", "0.6528009", "0.65045524", "0.6448775", "0.6436506", "0.6429349", "0.6417684", "0.6371994", "0.63101906", "0.6306602", "0.6296334", "0.6291225", "0.6259971", "0.6254898", "0.6248048", "0.62382376", "0.6213137...
0.0
-1
Setta l'user che ha effettuato l'ordine
public void setUser(String user) { this.user = user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void effacerUtilisateur() {\r\n this.modele.effacerUtilisateur(this.modele);\r\n this.modele = new Utilisateurs();\r\n }", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearP...
[ "0.7006214", "0.6919092", "0.67830676", "0.6779261", "0.6764969", "0.6701665", "0.6686549", "0.66297024", "0.6593306", "0.6581669", "0.65802", "0.6569298", "0.6561769", "0.6495938", "0.6489926", "0.6486386", "0.6481889", "0.647991", "0.6465047", "0.64363146", "0.64304554", ...
0.0
-1
Restituisce la lista di prodotto contenuti nell'ordine
public ArrayList<ProdottoOrdineBean> getProdotti() { return prodotti; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n ...
[ "0.6720129", "0.65584224", "0.65494055", "0.6526871", "0.6504004", "0.64580417", "0.6443641", "0.64355576", "0.6393088", "0.6365704", "0.6345468", "0.6334856", "0.63219434", "0.63206214", "0.6309853", "0.62843287", "0.6264308", "0.6258575", "0.6230322", "0.62237763", "0.62139...
0.61872405
24
Setta la lista di prodotto contenuti nell'ordine
public void setProdotti(ArrayList<ProdottoOrdineBean> prodotti) { this.prodotti = prodotti; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n ...
[ "0.6646057", "0.6469044", "0.6402657", "0.63429606", "0.6303202", "0.62902147", "0.6275862", "0.6261236", "0.62450594", "0.6184125", "0.61563164", "0.61527723", "0.6151145", "0.61507773", "0.61371636", "0.6136569", "0.6092579", "0.60881525", "0.6069793", "0.60646933", "0.6028...
0.6550192
1
Restituisce la data di consegna dell'ordine
public Date getDataConsegna() { return dataConsegna; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n ...
[ "0.6299259", "0.6219846", "0.6202861", "0.6072426", "0.60355425", "0.60326624", "0.6011927", "0.5939504", "0.5920249", "0.5900843", "0.59006333", "0.58969843", "0.5884932", "0.58579993", "0.5854584", "0.58459693", "0.5828804", "0.5801458", "0.57982635", "0.5794239", "0.579194...
0.566402
44
Setta la data di consegna dell'ordine
public void setDataConsegna(Date dataConsegna) { this.dataConsegna = dataConsegna; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }", "private void datos() {\n int row;\n...
[ "0.6562686", "0.64938295", "0.6432547", "0.63552725", "0.6262388", "0.6205301", "0.6177274", "0.6155453", "0.61487687", "0.6122765", "0.61129874", "0.6058348", "0.6045761", "0.60452557", "0.6036014", "0.60174435", "0.6006714", "0.5985134", "0.5976967", "0.59752566", "0.595830...
0.5919194
24
Copied from example during Wednesday's lecture
@FXML public void save() { try { File copy = new File(fileName.getText()); Scanner fileIn = new Scanner(result.getText()); PrintStream fileOut = new PrintStream(copy); while (fileIn.hasNextLine()) { fileOut.print(fileIn.nextLine()); } fileIn.close(); fileOut.close(); } ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kk12() {\n\n\t}", "void mo57277b();", "void mo1507n();", "@Override\n public void func_104112_b() {\n \n }", "public static void listing5_14() {\n }", "public void mo21877s() {\n }", "private static void cajas() {\n\t\t\n\t}", "void mo57278c();", "public abstract voi...
[ "0.55410904", "0.54236865", "0.5414787", "0.5410853", "0.5394259", "0.5370099", "0.53488564", "0.5310791", "0.52883416", "0.5285551", "0.52853334", "0.52638066", "0.52579445", "0.52376366", "0.52308834", "0.52249527", "0.52225596", "0.5214742", "0.5213874", "0.52028435", "0.5...
0.0
-1
Currently does nothing. Subclasses can override to provide unit tests, etc...
@Override public void runTest() throws Throwable {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n protected void prot() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n ...
[ "0.67688113", "0.6590705", "0.65896", "0.65896", "0.65896", "0.65896", "0.65896", "0.65896", "0.650624", "0.6479343", "0.64665914", "0.6435657", "0.6435161", "0.6426116", "0.6425989", "0.638866", "0.638866", "0.6345462", "0.6341645", "0.633905", "0.633905", "0.6309238", "...
0.0
-1
created 2 objects from Bahasa and English class
public static void main(String[] args) { Bahasa kata = new Bahasa("Thread 1"); English word = new English("Thread 2"); // calling getWord method to accept user input // kata.getWord(); // word.getWord(); //objects call start method from the Thread class // kata.sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Aritmetica(){ }", "public Language() {\r\n\t}", "Language create(Language language);", "public AntrianPasien() {\r\n\r\n }", "public Higiene(){\n\t\t\n\t}", "static void constructor(){\n /*SK*/ /*CZ*/ /*EN*/ \n /*0*/ SK.add(\"Základné nastavenia a ko...
[ "0.6105197", "0.6014995", "0.5999596", "0.5745822", "0.5700792", "0.5689079", "0.56813174", "0.5636135", "0.5630989", "0.56094146", "0.5575339", "0.55599344", "0.55218333", "0.5506488", "0.55013144", "0.5501081", "0.5494087", "0.5484774", "0.5476409", "0.5471354", "0.54705185...
0.0
-1
TODO Autogenerated method stub
@Override public void eliminar(IndicadorActividadEscala iae) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof DetalhesCrediario)) { return false; } DetalhesCrediario other = (DetalhesCrediario) object; if ((this.idDetalhesCrediario == null && other.idDetalhesCrediario != null) || (this.idDetalhesCrediar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Test para el plato Oriental
@Test public void Oriental()throws ParseException { System.out.println("Oriental Dish"); //Elementos del plato OrientalDish platoOriental; platoOriental = new OrientalDish("Arroz Oriental", "Arroz Estilo Oriental", "", "", 5500d, new ArrayList(), Size.ALL); platoOriental....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void needPortraitTest() {\n // TODO: test needPortrait\n }", "@Test\n public void testCondition5()\n {\n Double[] coordinates = null;\n Double before[] = _renderable.orientation();\n _renderable.orientation(coordinates);\n Double after[] = _renderable...
[ "0.63673645", "0.62734556", "0.62687063", "0.6177132", "0.61345285", "0.6047829", "0.6017345", "0.5986668", "0.58914715", "0.5890046", "0.58866775", "0.5872228", "0.5836084", "0.5762101", "0.5724787", "0.5720903", "0.5695825", "0.5695525", "0.5690013", "0.568702", "0.5680139"...
0.0
-1
Test para el plato Italian
@Test public void Italian()throws ParseException { System.out.println("Italian Dish"); //Elementos del palto ItalianDish platoItalian; platoItalian = new ItalianDish(); platoItalian = new ItalianDish("Pasta", "Pasta Estilo Italiano", "", "", 3000d, new ArrayList(), Size.A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldTranslateWithRegionalVariant() {\n List<String> sentence = Arrays.asList(\"it\", \"is\", \"cold\");\n String result = \"\";\n for (String token : sentence) {\n result += manager.message(Locale.CANADA_FRENCH, token, token) + \" \";\n }\n assertEquals(\"Il fait f...
[ "0.67479676", "0.6680478", "0.6392763", "0.62004393", "0.61334956", "0.6083785", "0.6083426", "0.5979711", "0.59653234", "0.58956015", "0.5881613", "0.588064", "0.58796257", "0.58358246", "0.5829447", "0.58127326", "0.5757483", "0.574814", "0.5735813", "0.5727863", "0.5679962...
0.55934495
26
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79044175", "0.7806529", "0.77667165", "0.772694", "0.76315796", "0.76219255", "0.75851756", "0.75312436", "0.7488551", "0.7458599", "0.7458599", "0.74389243", "0.74213", "0.7403157", "0.7392013", "0.73872125", "0.73794484", "0.73704696", "0.73621285", "0.7356082", "0.73457...
0.0
-1
It's OK to use blockingConnect() here as we are running in an IntentService that executes work on a separate (background) thread.
@Override protected ConnectionResult doInBackground(Void... params) { ConnectionResult connectionResult = googleApiClient.blockingConnect( Constants.GOOGLE_API_CLIENT_TIMEOUT_S, TimeUnit.SECONDS); return connectionResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "public v...
[ "0.6450345", "0.6396534", "0.636362", "0.62674767", "0.62674767", "0.6233542", "0.6210677", "0.61833274", "0.61750627", "0.6159601", "0.61595815", "0.61595815", "0.61545163", "0.61524415", "0.6151093", "0.61408997", "0.6134703", "0.6132627", "0.6132627", "0.61321384", "0.6130...
0.58004576
61
String name = enterName();
public static void main(String[] args) { pizzaOptions(); System.out.println(Arrays.toString(newOrder.toArray())); //printOrder("name"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\r\n public String askName() {\r\n Hello.display(\"Welcome! What is your name?\");\r\n Scanner in = new Scanner(System.in);\r\n String name = in.next();\r\n return name;\r\n }", "public static void enterName(String name) {\n System.out.println(\"Name en...
[ "0.8014827", "0.7893193", "0.78740567", "0.777867", "0.7685931", "0.75856006", "0.7463383", "0.7440636", "0.73267776", "0.72363865", "0.7207368", "0.7178122", "0.71591467", "0.71316093", "0.7101964", "0.7043817", "0.7029655", "0.7018727", "0.7013031", "0.69817734", "0.6927480...
0.0
-1
We cannot perform modification before notifying because the listener may want to query the state of the delegate prior to that.
@Override public boolean remove(Object o) { onAccess.accept(o); return delegate.remove(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object notify(NotifyDescriptor descriptor);", "private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }", "@Override\r\n public void notify(Object arg) {\n }", "protected void notifyChangeListeners()...
[ "0.6367716", "0.6038199", "0.6015538", "0.59991765", "0.59894115", "0.59718245", "0.5965795", "0.5953611", "0.59164655", "0.5767882", "0.57495385", "0.5737904", "0.57255244", "0.5717118", "0.57151747", "0.57151747", "0.57151747", "0.5695914", "0.5686724", "0.5651717", "0.5640...
0.0
-1
We cannot perform modification before notifying because the listener may want to query the state of the delegate prior to that.
@Override public boolean removeAll(Collection<?> collection) { for (Object o : collection) { onAccess.accept(o); } return delegate.removeAll(collection); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object notify(NotifyDescriptor descriptor);", "private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }", "@Override\r\n public void notify(Object arg) {\n }", "protected void notifyChangeListeners()...
[ "0.6367716", "0.6038199", "0.6015538", "0.59991765", "0.59894115", "0.59718245", "0.5965795", "0.5953611", "0.59164655", "0.5767882", "0.57495385", "0.5737904", "0.57255244", "0.5717118", "0.57151747", "0.57151747", "0.57151747", "0.5695914", "0.5686724", "0.5651717", "0.5640...
0.0
-1
The entrySet/keySet disallow adding elements to the set, making it covariant, so downcast is safe there.
@Override @SuppressWarnings("unchecked") protected Set<E> delegate() { return (Set<E>) delegate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Set<Map.Entry<K, V>> entrySet();", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "public Set<Entry<K, V>> entrySet() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public Set<Map.Entry...
[ "0.6718767", "0.64834243", "0.6468188", "0.6461186", "0.6314623", "0.6304489", "0.6303341", "0.6300467", "0.6162444", "0.6123049", "0.59923315", "0.599152", "0.5961911", "0.5955614", "0.5938329", "0.58948004", "0.5860475", "0.5822881", "0.5771106", "0.5771106", "0.5771106", ...
0.53907
49
Constructor that receives the training dataset, the maximum values of each attribute/class and the node identification. Delegates to the constructor of the super class.
public NodeMDL(int[][] training, int[] max_values, int node_id) { super(training, max_values, node_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Trainer(double[][] data, double[] attribute, int hiddenLayerNodeCount, int outputLayerNodeCount){\r\n this.data = data;\r\n this.attribute = attribute;\r\n hiddenLayer = new Node[hiddenLayerNodeCount];\r\n outputLayer = new Node[outputLayerNodeCount];\r\n activation = new ...
[ "0.6096904", "0.6018851", "0.59124655", "0.58325976", "0.5768158", "0.571052", "0.5682627", "0.56205827", "0.5600328", "0.5599375", "0.557891", "0.5570713", "0.55262476", "0.54825044", "0.54607856", "0.54563195", "0.54466844", "0.54375964", "0.54369044", "0.5433576", "0.54193...
0.6808421
0
Computes the value of the Alpha parameters accordingly to the MDL score.
@Override public void computeAlpha() { //Allocate memory for the alphas array alpha = new double[training[0].length-1]; //Checks every feature for(int i = 0; i < training[0].length-1; i++) { //Sets the position of the array corresponding to itself to NaN and continues the loop if(i == node_id) { a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getAlpha();", "private float calculateAlpha() {\n float alpha = 1.2f*(myCamera.getViewportWidth()/(2*Const.WORLD_WIDTH-myCamera.getViewportWidth()))-0.2f;\n if(alpha < 0) alpha = 0;\n if(alpha > 1) alpha = 1;\n return alpha;\n }", "public double getAlpha();", "public doub...
[ "0.68820137", "0.6808787", "0.6803789", "0.6803789", "0.67066693", "0.6689835", "0.6674809", "0.665536", "0.66545856", "0.66339326", "0.6613499", "0.6613499", "0.65455955", "0.65131766", "0.6377022", "0.6368404", "0.6335918", "0.6329911", "0.6317297", "0.62925524", "0.6206609...
0.69932294
0
First stage hadoop processing Processes it into all required metadata. Entries are written into their corresponding SURT entries
public void map(LongWritable key, WritableArchiveRecord value, Context context) throws IOException { ArchiveRecord rec = value.getRecord(); indexer.parseRecord(rec); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tConfiguration conf=context.getConfiguration() ;\n\t\t\tPath p=new Path(conf.get(\"HDFS\"));\n\t\t\tFileSystem fs = p.getFileSystem ( conf) ;\n\t\t//\tSequenceFile.Reade...
[ "0.63490254", "0.6297758", "0.60113037", "0.5886404", "0.5885288", "0.58802944", "0.58244616", "0.5785995", "0.5711139", "0.5650534", "0.5644307", "0.5578502", "0.5565955", "0.5548551", "0.54895383", "0.54599977", "0.54371727", "0.5430655", "0.54187256", "0.54172474", "0.5411...
0.0
-1
So, results are only written at Hadoop cleanup stage (after all maps are finished) so that fewer duplicates are sent to the next stage
@Override protected void cleanup(Context context) throws IOException, InterruptedException { logger.info("Cleanup"); super.cleanup(context); for (java.util.Map.Entry<String, FullImageMetadata> entry : indexer.getEntries().entrySet()) { String surt = entry.getK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void cleanup(Context context) throws IOException, InterruptedException {\n for (String artistId: songStat.keySet()) {\n // count#-#artistID%%artistName%%count\n String outVal = \"count#-#\"+songStat.get(artistId).getCount();\n// context.write(new Tex...
[ "0.6884895", "0.6762151", "0.6211032", "0.5800745", "0.5741534", "0.573037", "0.572305", "0.57205266", "0.565647", "0.5649155", "0.5612358", "0.5572664", "0.5542879", "0.5511496", "0.5505601", "0.5479007", "0.5470661", "0.5465605", "0.54576707", "0.54472095", "0.5444183", "...
0.5560038
12
Test of listarTodos method, of class CategoriaDAO.
@Test public void testListarTodos() throws Exception { limpar(); tx.begin(); Categoria categoria1 = new Categoria("Teste categoria1"); Categoria categoria2 = new Categoria("Teste categoria2"); Categoria categoria3 = new Categoria("Teste categoria3"); dao.persis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testConsultarTodos() {\n\t\tList<Dispositivo> dispositivos = new ArrayList<Dispositivo>();\n\t\ttry {\n\t\t\tdispositivos = dispositivoBL.consultarTodos();\n\t\t\tassertTrue(dispositivos.size() > 0);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "List<O> obtenertodos...
[ "0.71280235", "0.70197743", "0.6892946", "0.6643527", "0.6498779", "0.6453715", "0.6268863", "0.625671", "0.6249715", "0.62350684", "0.62331045", "0.6225222", "0.62112445", "0.6205613", "0.62012947", "0.61989886", "0.61875194", "0.6169578", "0.6167916", "0.6151448", "0.614115...
0.7962435
0
Test of persiste method, of class CategoriaDAO.
@Test public void testPersiste() throws Exception { Categoria categoria = new Categoria("Teste de categoria"); tx.begin(); dao.persiste(categoria); tx.commit(); em.refresh(categoria); assertTrue("O objeto não foi persistido", categoria.getId() != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testSalvar() {\r\n Categoria categoria = new Categoria();\r\n categoria.setDescricao(\"teste\");\r\n CategoriaDAO instance = new CategoriaDAO();\r\n instance.salvar(categoria);\r\n // TODO review the generated test code and remove the default call to fail...
[ "0.76162446", "0.7410761", "0.7205423", "0.7175476", "0.7101557", "0.7059515", "0.6856492", "0.65909475", "0.65396386", "0.6525844", "0.64729446", "0.6457593", "0.6431075", "0.641457", "0.6390285", "0.6336004", "0.6304697", "0.62414664", "0.6223417", "0.62079084", "0.6206638"...
0.8079389
0
Test of salvar method, of class CategoriaDAO.
@Test public void testSalvar() throws Exception { tx.begin(); Categoria categoria = new Categoria("Teste de update de categoria"); dao.persiste(categoria); tx.commit(); em.refresh(categoria); tx.begin(); categoria.setNome("Update"); categoria ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testSalvar() {\r\n Categoria categoria = new Categoria();\r\n categoria.setDescricao(\"teste\");\r\n CategoriaDAO instance = new CategoriaDAO();\r\n instance.salvar(categoria);\r\n // TODO review the generated test code and remove the default call to fail...
[ "0.8113325", "0.6987295", "0.65973514", "0.65588903", "0.64330316", "0.6331609", "0.6317255", "0.6098214", "0.603907", "0.6010283", "0.5991803", "0.59148186", "0.5864895", "0.5840253", "0.57894844", "0.5761749", "0.57287115", "0.5681329", "0.5675375", "0.5664873", "0.56527436...
0.72301
1
Test of carregarPeloId method, of class CategoriaDAO.
@Test public void testCarregarPeloId() throws Exception { tx.begin(); Categoria categoria = new Categoria("Teste carregar categoria por id"); dao.persiste(categoria); tx.commit(); em.refresh(categoria); Long id = categoria.getId(); Categoria result = d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract java.lang.Long getId_causal_peticion();", "public CategoriaArticuloServicio buscarPorId(int idCategoriaArticuloServicio)\r\n/* 29: */ {\r\n/* 30:64 */ return (CategoriaArticuloServicio)this.categoriaArticuloServicioDao.buscarPorId(Integer.valueOf(idCategoriaArticuloServicio));\r\n/* 31: ...
[ "0.66457695", "0.65306413", "0.64532655", "0.6449196", "0.6380353", "0.6361043", "0.63234305", "0.62923896", "0.62793046", "0.6177983", "0.6161687", "0.61425513", "0.6121001", "0.6079599", "0.6079398", "0.60699856", "0.60648954", "0.60645574", "0.60366666", "0.60277945", "0.6...
0.8198085
0
Test of remover method, of class CategoriaDAO.
@Test public void testRemover() throws Exception { tx.begin(); Categoria categoria = new Categoria("Teste remover categoria"); dao.persiste(categoria); tx.commit(); em.refresh(categoria); tx.begin(); dao.remover(categoria); tx.commit(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n ...
[ "0.73160267", "0.73022133", "0.7285072", "0.7141265", "0.7095951", "0.6965636", "0.6925741", "0.6888204", "0.6862848", "0.6788424", "0.6761058", "0.66662073", "0.66004544", "0.6587885", "0.6536225", "0.6532453", "0.65199447", "0.6508527", "0.6500661", "0.6474622", "0.64712924...
0.7775647
0