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
Use this factory method to create a new instance of this fragment using the provided parameters.
public static MapFragment newInstance(String param1, String param2) { MapFragment fragment = new MapFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onMapFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6621172", "0.6526441", "0.6475325", "0.6475325", "0.6437113", "0.63252234", "0.62386286", "0.61917204", "0.6160958", "0.6145177", "0.6125638", "0.6107997", "0.61007327", "0.6094713", "0.6049837", "0.6049837", "0.6046737", "0.6042596", "0.6042596", "0.60093063", "0.60007787...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onMapFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7326421", "0.7210251", "0.71373945", "0.7125518", "0.7122535", "0.7016066", "0.69772136", "0.69772136", "0.69772136", "0.6975176", "0.6969251", "0.69670266", "0.69624585", "0.69552404", "0.6943907", "0.6935636", "0.6931584", "0.6929771", "0.6923996", "0.6911123", "0.690410...
0.0
-1
TODO: Update argument type and name
void onMapFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
region Windows Form Designer generated code / / Required method for Designer support do not modify / the contents of this method with the code editor. /
private void InitializeComponent() { lblText = new jwinforms.Label(); btnOk = new jwinforms.Button(); btnCancel = new jwinforms.Button(); txtSystem = new jwinforms.TextBox(); chkTrack = new jwinforms.CheckBox(); this.SuspendLayout(); // // lblText // lblText.setAutoSize(true); lblText.setLocation(new java.awt.Point(8, 8)); lblText.setName("lblText"); lblText.setSize(new jwinforms.Size(177, 13)); lblText.setTabIndex(3); lblText.setText("Which system are you looking for?"); // // btnOk // btnOk.setDialogResult(DialogResult.OK); btnOk.setFlatStyle(jwinforms.FlatStyle.Flat); btnOk.setLocation(new java.awt.Point(43, 68)); btnOk.setName("btnOk"); btnOk.setSize(new jwinforms.Size(40, 22)); btnOk.setTabIndex(3); btnOk.setText("Ok"); // // btnCancel // btnCancel.setDialogResult(DialogResult.Cancel); btnCancel.setFlatStyle(jwinforms.FlatStyle.Flat); btnCancel.setLocation(new java.awt.Point(91, 68)); btnCancel.setName("btnCancel"); btnCancel.setSize(new jwinforms.Size(50, 22)); btnCancel.setTabIndex(4); btnCancel.setText("Cancel"); // // txtSystem // txtSystem.setLocation(new java.awt.Point(8, 24)); txtSystem.setName("txtSystem"); txtSystem.setSize(new jwinforms.Size(168, 20)); txtSystem.setTabIndex(1); txtSystem.setText(""); // // chkTrack // chkTrack.setLocation(new java.awt.Point(8, 48)); chkTrack.setName("chkTrack"); chkTrack.setSize(new jwinforms.Size(112, 16)); chkTrack.setTabIndex(2); chkTrack.setText("Track this system"); // // FormFind // this.setAcceptButton(btnOk); this.setAutoScaleBaseSize(new jwinforms.Size(5, 13)); this.setCancelButton(btnCancel); this.setClientSize(new jwinforms.Size(184, 97)); this.setControlBox(false); Controls.addAll(chkTrack, txtSystem, btnCancel, btnOk, lblText); this.setFormBorderStyle(jwinforms.FormBorderStyle.FixedDialog); this.setName("FormFind"); this.setShowInTaskbar(false); this.setStartPosition(FormStartPosition.CenterParent); this.setText("Find System"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"G...
[ "0.67625177", "0.67463577", "0.67463577", "0.67345077", "0.66662943", "0.6600957", "0.65466034", "0.6522678", "0.6520036", "0.6519667", "0.6513732", "0.64985514", "0.6475187", "0.6464854", "0.6455647", "0.64532954", "0.64471114", "0.64416826", "0.6440096", "0.64390194", "0.64...
0.6582948
6
/ Recursively find tile for food to be placed.
public GameTile getRandomFoodTile() { Random random = ThreadLocalRandom.current(); GameTile found = GameTile.getByCoords(random.nextInt(TILE_COLS), random.nextInt(TILE_ROWS)); if (found.getColor() == Color.BLACK) { return found; } return getRandomFoodTile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Tile> findTargets() {\n List<Tile> targets = new ArrayList<>(); // our return value\n int fearDistance = 2; // Ideally we're 2 spots away from their head, increases when we can't do that.\n int foodDistance = 3; // We look at a distance 3 for food.\n\n // If fearDistance ...
[ "0.63235545", "0.6262765", "0.5912725", "0.5794393", "0.57257825", "0.56909484", "0.567153", "0.56471926", "0.5572803", "0.5518052", "0.54836047", "0.5460011", "0.5433308", "0.5425776", "0.54006714", "0.53737146", "0.53529686", "0.53414243", "0.5317916", "0.5285324", "0.52625...
0.6430233
0
/ Check if tile is inside window.
public static boolean insideBounds(GameTile tile) { if (tile == null) { return false; } else { int x = tile.getXCoord(); int y = tile.getYCoord(); return !(x < 0 || y < 0) && !(x > TILE_COLS || y > TILE_ROWS); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isInGameWindow(){\n if (currPos.x > Window.getWidth() || currPos.y > Window.getHeight()){\n return false;\n }\n return true;\n }", "boolean checkWin(Tile initialTile);", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;...
[ "0.749216", "0.6898919", "0.68189186", "0.665674", "0.6565616", "0.6486167", "0.6439209", "0.6434675", "0.6403933", "0.62807393", "0.62591183", "0.625161", "0.6242562", "0.62206733", "0.6220299", "0.6191598", "0.61507756", "0.61403006", "0.608543", "0.60697454", "0.6058142", ...
0.6372203
9
for 403 access denied page
@RequestMapping(value = "/errors/403", method = RequestMethod.GET) public ModelAndView accesssDenied(HttpServletRequest req, Principal user) { ModelAndView model = new ModelAndView(); if (user != null) model.addObject("message", user.getName() + ", vous n'avez pas les droits"); else model.addObject("message", "Vous n'avez pas les droits"); model.addObject("retUrl", req.getHeader("referer")); model.setViewName("/errors/403"); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/denied\", method = RequestMethod.GET)\r\n\tpublic String getDeniedPage() {\r\n\t\treturn \"403\";\r\n\t}", "@RequestMapping(value = \"/403\", method = RequestMethod.GET)\n \tpublic ModelAndView accesssDenied() {\n\n \t ModelAndView model = new ModelAndView();\n \t\t\n \t //check ...
[ "0.7566976", "0.7496427", "0.73153925", "0.72116446", "0.7101488", "0.70800173", "0.70797235", "0.7019634", "0.6916336", "0.6902969", "0.68572176", "0.6827339", "0.6812424", "0.6762981", "0.6680252", "0.65344334", "0.6415277", "0.6412511", "0.6404263", "0.63552016", "0.633252...
0.6798863
13
counter2.countDown(); // Step 3 counter3.await(); // Step 6
public String waitThread() throws InterruptedException { return "Not Waiting Yet"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void countDown() {\r\n\t\t\tref.get().countDown();\r\n\t\t}", "public void incrementWaitCounter() {\n ticksWaitingToBeAssigned++;\n }", "void await() throws InterruptedException;", "void await() throws InterruptedException;", "void await() throws InterruptedException;", "public void fin...
[ "0.65475136", "0.62888426", "0.6062228", "0.6062228", "0.6062228", "0.60297316", "0.6007102", "0.5962454", "0.5901453", "0.58857924", "0.58596754", "0.5852601", "0.58508116", "0.5731297", "0.5708851", "0.5687964", "0.56854427", "0.56803674", "0.5659636", "0.5622925", "0.56224...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_cadastro_cliente_enderecos, container, false); logradouro = view.findViewById(R.id.textInputLogradouro); numero = view.findViewById(R.id.textInputNumero); complemento = view.findViewById(R.id.textInputComplemento); bairro = view.findViewById(R.id.textInputBairro); cep = view.findViewById(R.id.textInputCep); uf = view.findViewById(R.id.textInputEstado); municipio = view.findViewById(R.id.textInputMunicipio); if(getCliente() != null){ if(getCliente().getEndereco() != null){ if(logradouro.getEditText().getText() == null){ logradouro.getEditText().setText(getCliente().getEndereco()); } } if(getCliente().getNumero() !=null){ if(numero.getEditText().getText() == null){ numero.getEditText().setText(getCliente().getNumero()); } } if(getCliente().getComplemento() != null){ if(complemento.getEditText().getText()==null){ complemento.getEditText().setText(getCliente().getComplemento()); } } if(getCliente().getBairro() !=null){ if(bairro.getEditText().getText()==null){ bairro.getEditText().setText(getCliente().getBairro()); } } if(getCliente().getCep() !=null){ if(cep.getEditText().getText()==null){ cep.getEditText().setText(getCliente().getCep()); } } if (getCliente().getCodMunicipio()) } return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6740084", "0.6724855", "0.6721061", "0.669875", "0.6690866", "0.6688299", "0.66871583", "0.6685089", "0.6676965", "0.66749275", "0.6666751", "0.66662604", "0.6664662", "0.6660371", "0.6653889", "0.66494936", "0.6642919", "0.6638222", "0.66376024", "0.6634041", "0.6625364",...
0.0
-1
Construct a new instance.
public MethodInterceptorFactory(final InterceptorInstanceFactory instanceFactory, final Method interceptorMethod) { this(instanceFactory, interceptorMethod, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "Reproducible newInstance();", "Instance createInstance();", "protected abstract void construct();", "public Instance() {\n }", "public CMObject newInstance();", "public T newInstance();", "@Override\n protected T createInstance() throws Exception {\n return this.is...
[ "0.74514776", "0.72889066", "0.7221288", "0.71206033", "0.6838191", "0.6673225", "0.6671117", "0.6570021", "0.64899695", "0.64837885", "0.64145917", "0.6410344", "0.6406043", "0.64004815", "0.63298637", "0.63164264", "0.6303844", "0.6303844", "0.6292648", "0.6288881", "0.6288...
0.0
-1
We need our own custom onItemClickListener because there isn't one for a RecyclerView
public interface OnItemClickListener { void onItemClick(Attraction attraction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onItemClickListener(View view, int postion);", "@Override\n public void onClick(View v) {\n customItemClickListener.onItemClick(inflatedView, holder.getAdapterPosition());\n }", "@Override\n public void onItemClicked(RecyclerView recyclerView, int position, ...
[ "0.8233007", "0.80442154", "0.7931712", "0.78280205", "0.78178823", "0.78128326", "0.7801224", "0.77072716", "0.77072716", "0.77072716", "0.77072716", "0.7691966", "0.76913935", "0.7685857", "0.76612246", "0.7639605", "0.7597216", "0.75968575", "0.759581", "0.759581", "0.7595...
0.7660424
15
Create new views (invoked by the layout manager)
@Override public AttractionViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { // create a new item view View attraction_item_view = LayoutInflater.from(parent.getContext()) .inflate(R.layout.recycler_item, parent, false); return new AttractionViewHolder(attraction_item_view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "View createView();", "private void addViews() {\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "ViewContainer createViewContainer();", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutI...
[ "0.73330516", "0.7290258", "0.72524214", "0.6896963", "0.6842908", "0.67892873", "0.6757536", "0.66984254", "0.6675081", "0.66690147", "0.6597825", "0.658943", "0.65769076", "0.6563808", "0.6537989", "0.6486454", "0.6471762", "0.64565444", "0.64475906", "0.64475906", "0.63975...
0.0
-1
Replace the contents of a view
@Override public void onBindViewHolder(AttractionViewHolder holder, int position) { // Get the current Attraction object by its position in the ArrayList Attraction currentAttraction = mAttractions.get(position); // Bind the custom onItemClickListener to the current Attraction object holder.bind(currentAttraction, mOnItemClickListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateView(ClientView view);", "void updateView();", "void updateView();", "public void updateViews() {\n updateViews(null);\n }", "public void replaceView(){\n ((GameView) observers.get(0)).dispose();\n observers.remove(0);\n this.addObserver(new GameView(this));...
[ "0.6831025", "0.67846245", "0.67846245", "0.66322947", "0.6541791", "0.6453319", "0.6384625", "0.63737696", "0.6370174", "0.6294769", "0.6261874", "0.6231263", "0.62045264", "0.6160691", "0.6111676", "0.6088697", "0.6081621", "0.5991528", "0.5978666", "0.5964918", "0.59452", ...
0.0
-1
Return the size of the ArrayList
@Override public int getItemCount() { return mAttractions.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int length() {\n return this.myArrayList.size();\n }", "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}", "public int size() {\n\t return list.size();\n }", "...
[ "0.8307789", "0.8236305", "0.8236305", "0.8159428", "0.8152143", "0.8143941", "0.8143941", "0.81292045", "0.81119984", "0.8099", "0.8091638", "0.80895317", "0.8088915", "0.8069106", "0.8040043", "0.80290323", "0.80231595", "0.7991109", "0.7975049", "0.7926809", "0.7925785", ...
0.0
-1
Get the name for the current Attraction object and set text on the proper TextView
public void bind(final Attraction attraction, final OnItemClickListener listener) { mAttractionName.setText(attraction.getName()); // Display the provided image based on the resource ID mAttractionImage.setImageResource(attraction.getImageResourceId()); mAttractionImage.setVisibility(View.VISIBLE); // We will use our custom onItemClick listener to "implement" the onClick method itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { listener.onItemClick(attraction); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateNameView() {\n String insertedText = getName();\n\n if (seekBar.getProgress() == 0) {\n insertedText = \"\";\n }\n\n String text = String.format(res.getString(R.string.str_tv_firstName_value), insertedText);\n\n nameView.setText(text);\n }", "pu...
[ "0.6626353", "0.60286754", "0.59876764", "0.59874743", "0.5956887", "0.5931563", "0.5917861", "0.58732027", "0.5833779", "0.5781439", "0.5739398", "0.57285094", "0.571914", "0.5713049", "0.5710353", "0.57039183", "0.57007873", "0.5690955", "0.5686439", "0.56857324", "0.567504...
0.0
-1
Metodo standard di configurazione dell'applicazione nel caso delle webapp.
@Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(DemowebosApplication.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSI...
[ "0.6528598", "0.6506804", "0.63170576", "0.59125817", "0.5861914", "0.5794842", "0.57923156", "0.57903403", "0.5785539", "0.57052505", "0.5690221", "0.568878", "0.5652918", "0.56184053", "0.5580875", "0.55670035", "0.5564302", "0.5560295", "0.5554431", "0.5536604", "0.5527159...
0.0
-1
C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types: ORIGINAL LINE: char del(char a[15]);
public static void Main() { char del = char a[15]; int n; int i; char[][] s = new char[50][15]; String tempVar = ConsoleInput.scanfRead(); if (tempVar != null) { n = Integer.parseInt(tempVar); } for (i = 0;i < n;i++) { String tempVar2 = ConsoleInput.scanfRead(); if (tempVar2 != null) { s[i] = tempVar2.charAt(0); } } for (i = 0;i < n;i++) { del(s[i]); System.out.printf("%s\n", s[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(SpCharInSeq spCharInSeq);", "public int delete(int k)\r\n\t {\r\n\t\t return 42; // to be replaced by student code\r\n\t }", "public String deleteFrom(CharSequence sequence) {\n/* 125 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void delLiteral();", "SpCharInSe...
[ "0.6480573", "0.5859366", "0.5765267", "0.5736845", "0.57141465", "0.56294423", "0.5482974", "0.5396126", "0.5394646", "0.5376759", "0.5365902", "0.53447014", "0.5340787", "0.53285575", "0.52933556", "0.52883875", "0.5242421", "0.52357006", "0.5235539", "0.52248144", "0.52150...
0.56454396
5
Created by Tyler Johnson on 4/25/2016.
public interface InputListener { void onPress(MotionEvent event, int index); void onMove(MotionEvent event, int index); void onRelease(MotionEvent event, int index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "private stendhal() {\n...
[ "0.55875254", "0.5513707", "0.5511027", "0.5494124", "0.5493845", "0.5476381", "0.5440082", "0.5412682", "0.540172", "0.53350407", "0.53297144", "0.5310441", "0.5280516", "0.5280516", "0.52712655", "0.52569044", "0.5235489", "0.51946765", "0.5180395", "0.5176895", "0.51619536...
0.0
-1
We need to manually define the deserialization constructor since we aren't a transformed test.
public ReflectionStructureCodecTarget(Void ignore, int readIndex) { super(ignore, readIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "public void deserialize() {\n\t\t\n\t}", "T deserialize(InputStream stream) throws IOException;", "public abstract T deserialize(String serial);", "public abstract Object deserialize(Object object);", "private JsonApiEnvelopeD...
[ "0.702201", "0.6956765", "0.67223513", "0.6683776", "0.66477275", "0.6441644", "0.6431648", "0.63753825", "0.6348386", "0.632792", "0.63118345", "0.6295226", "0.6265663", "0.6212715", "0.61995363", "0.61616206", "0.6128489", "0.61211026", "0.61184675", "0.611491", "0.6054301"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String a = "9B768C"; String c = ""; int leng = a.length(); String array[] = new String[leng]; for(int i = 0 ; i<leng; i++) { array[i]= a.substring(i,i+1); System.out.println(c += array[i]); } }
{ "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
update (partial only some attributes)
@PatchMapping("recipes/{id}") public RecipeDto updateBook(@PathVariable("id") Long id, @RequestBody RecipeDto toUpdate) { logger.info("updating book with id: [{}] with new attributes: [{}]", id, toUpdate); return recipeService.updateRecipeWithAttributes(id, toUpdate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateNonDynamicFields() {\n\n\t}", "public void update(){}", "public void update(){}", "int updateByPrimaryKeySelective(AttributeExtend record);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "@Override\r\n\tpubli...
[ "0.6928894", "0.64239854", "0.64239854", "0.6365998", "0.63560814", "0.6274642", "0.6213205", "0.6172969", "0.6109991", "0.6102822", "0.6089764", "0.6073763", "0.6048554", "0.6037569", "0.6026179", "0.6022892", "0.6011766", "0.60054624", "0.60037285", "0.59997034", "0.5999703...
0.0
-1
/ Get an EGL instance
public void initEgl(Surface surface, EGLContext eglContext) { mEgl = (EGL10) EGLContext.getEGL(); /* * Get to the default display. */ mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { throw new RuntimeException("eglGetDisplay failed(egl获取显示设备失败)"); } /* * We can now initialize EGL for that display * 初始化默认显示设备 */ int[] version = new int[2]; if (!mEgl.eglInitialize(mEglDisplay, version)) { throw new RuntimeException("eglInitialize failed(初始化默认显示设备失败)"); } /** * 设置属性 */ int[] attribute = new int[]{ EGL10.EGL_RED_SIZE, 8, EGL10.EGL_GREEN_SIZE, 8, EGL10.EGL_BLUE_SIZE, 8, EGL10.EGL_ALPHA_SIZE, 8, EGL10.EGL_DEPTH_SIZE, 8,//深度大小 EGL10.EGL_STENCIL_SIZE, 8,//模板大小 EGL10.EGL_RENDERABLE_TYPE, 4,//2.0版本 值为4 EGL10.EGL_NONE //以此结尾 }; //5. int[] num_config = new int[1]; if (!mEgl.eglChooseConfig(mEglDisplay, attribute, null, 1, num_config)) { throw new IllegalArgumentException("eglChooseConfig failed(从系统中获取对应的属性失败)"); } int numConfigs = num_config[0]; if (numConfigs <= 0) { throw new IllegalArgumentException( "No configs match configSpec(没有匹配到相应的属性)"); } EGLConfig[] configs = new EGLConfig[numConfigs]; if (!mEgl.eglChooseConfig(mEglDisplay, attribute, configs, numConfigs, num_config)) { throw new IllegalArgumentException("eglChooseConfig#2 failed"); } //6, int[] attrib_list = {EGL14.EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE}; if (eglContext != null) { //如果不是null, mEglContext = mEgl.eglCreateContext(mEglDisplay, configs[0], eglContext, attrib_list); } else { //如果是null,创建一个新的eglContext mEglContext = mEgl.eglCreateContext(mEglDisplay, configs[0], EGL10.EGL_NO_CONTEXT, attrib_list); } //7. mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, configs[0], surface, null ); if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { int error = mEgl.eglGetError(); if (error == EGL10.EGL_BAD_NATIVE_WINDOW) { Log.e("EglHelper", "createWindowSurface returned EGL_BAD_NATIVE_WINDOW.(创建surface失败)"); } } //8 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { throw new IllegalArgumentException("eglMakeCurrent failed " + mEgl.eglGetError()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void create() {\n SharedLibrary EGL;\n switch (Platform.get()) {\n case LINUX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL.so.1\");\n break;\n case MACOSX:\n EGL = Li...
[ "0.6718436", "0.661309", "0.6518925", "0.65110296", "0.6145288", "0.6036168", "0.6016517", "0.59967315", "0.5767868", "0.56989086", "0.5692242", "0.5662532", "0.5632346", "0.55811656", "0.5548758", "0.5443974", "0.5435808", "0.5410707", "0.53704166", "0.53669584", "0.5363423"...
0.59260154
8
construct a MovablePoint instance
public static void main(String[] args) { MovablePoint mvp1 = new MovablePoint(1, 2, 3, 4); System.out.println(mvp1); mvp1.moveUp(); System.out.println(mvp1); mvp1.moveDown(); System.out.println(mvp1); mvp1.moveLeft(); System.out.println(mvp1); mvp1.moveLeft(); System.out.println(mvp1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point createPoint();", "Position createPosition();", "Viewpoint createViewpoint();", "public Point(Point obj)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = obj.x;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow copy point's x-coordinate\t\n\t\tthis.y = obj.y;\t\t\t\t\t\t\t\t\t\t\t\t// Shallow co...
[ "0.6344524", "0.62366307", "0.6178285", "0.61143374", "0.6094935", "0.60917103", "0.6066753", "0.6057387", "0.6036312", "0.6016049", "0.58965075", "0.58847356", "0.5871115", "0.5867731", "0.5863723", "0.5854049", "0.58421457", "0.5840417", "0.5819571", "0.5813747", "0.5807108...
0.60861295
6
Created by user on 03.02.2017.
public interface TestMethods { void pingHost(String url, int times); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overri...
[ "0.5800031", "0.577988", "0.56313014", "0.56090707", "0.5572682", "0.55615056", "0.5543213", "0.5543213", "0.55382264", "0.54595566", "0.5452085", "0.54105717", "0.540397", "0.54012674", "0.5398287", "0.53751296", "0.53751296", "0.53751296", "0.53751296", "0.53751296", "0.537...
0.0
-1
Suppression de la vue
@Override public void onDestroyView() { super.onDestroyView(); unbinder.unbind(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void vanish() {\n\t\t\r\n\t\tlpanel.addMouseMotionListener(new MouseAdapter() {\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tchecker.setEnabled(false);\r\n\t\t\t\tchecker.setVisible(false);\r\n\t\t\t\trequestL.setEnabled(false);\r\n\t\t\t\trequestL.setVisible(false);\r\n\t\t\t\tpat...
[ "0.6551638", "0.6116567", "0.60319686", "0.6016247", "0.5989846", "0.598902", "0.59579885", "0.59436315", "0.5894512", "0.5855502", "0.58379465", "0.58379465", "0.58379465", "0.5833531", "0.58216614", "0.5812732", "0.5805621", "0.5805621", "0.5779999", "0.57747644", "0.576085...
0.0
-1
This method will set state for buttons: Cancel, Back, Next, Finish. Back button doesn't display on first wizard step. Finish button only display on last wizard step. Cancel button doesn't display on last wizard step. Last step only display Finish button. If user click Back button, button next will be always enabled even if current data is invalid.
protected void updateButtonStates() { boolean isLastStep = isLastStep(currentStep); boolean isFirstStep = isFirstStep(currentStep); // Check whether current step data is valid or not boolean isValid = currentStep.onAdvance(); this.getCancelButton().setVisible(!isLastStep); this.getCancelButton().setEnabled(!isLastStep); this.getBackButton().setVisible(!isLastStep); this.getBackButton().setEnabled(!isFirstStep && !isLastStep); this.getNextButton().setVisible(!isLastStep); this.getNextButton().setEnabled(!isLastStep && isValid); this.getFinishButton().setEnabled(isLastStep); this.getFinishButton().setVisible(isLastStep); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setEndingButtons() {\n Button btnFinishEnable = (Button) findViewById(R.id.btnFinish);\n btnFinishEnable.setEnabled(true);\n Button btnNextEnable = (Button) findViewById(R.id.btnNext);\n btnNextEnable.setEnabled(false);\n }", "protected void updateButtons() {\n ...
[ "0.7204916", "0.6952551", "0.69010127", "0.66017425", "0.6571781", "0.64978075", "0.64744353", "0.64116216", "0.63236696", "0.6291215", "0.627323", "0.6229473", "0.6144631", "0.61233044", "0.61203593", "0.6056491", "0.60505223", "0.6041875", "0.6031382", "0.60284245", "0.5982...
0.8113452
0
download code ; two cluster mode: local and distributed
private void downloadStormCode(Map conf, String topologyId, String masterCodeDir) throws IOException, TException { String clusterMode = StormConfig.cluster_mode(conf); if (clusterMode.endsWith("distributed")) { downloadDistributeStormCode(conf, topologyId, masterCodeDir); } else if (clusterMode.endsWith("local")) { downloadLocalStormCode(conf, topologyId, masterCodeDir); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void downloadDistributeStormCode(Map conf, String topologyId,\n\t\t\tString masterCodeDir) throws IOException, TException {\n\n\t\t// STORM_LOCAL_DIR/supervisor/tmp/(UUID)\n\t\tString tmproot = StormConfig.supervisorTmpDir(conf) + File.separator\n\t\t\t\t+ UUID.randomUUID().toString();\n\n\t\t// STORM_LOCA...
[ "0.6258888", "0.59951776", "0.58279", "0.5775876", "0.57152957", "0.57033", "0.5686151", "0.56857353", "0.5680644", "0.5625558", "0.56247634", "0.5505736", "0.5480212", "0.5470329", "0.5464545", "0.5464529", "0.54568964", "0.5406833", "0.5403207", "0.53945225", "0.5394455", ...
0.6245715
1
Don't need synchronize, due to EventManager will execute serially
private void downloadDistributeStormCode(Map conf, String topologyId, String masterCodeDir) throws IOException, TException { // STORM_LOCAL_DIR/supervisor/tmp/(UUID) String tmproot = StormConfig.supervisorTmpDir(conf) + File.separator + UUID.randomUUID().toString(); // STORM_LOCAL_DIR/supervisor/stormdist/topologyId String stormroot = StormConfig.supervisor_stormdist_root(conf, topologyId); JStormServerUtils.downloadCodeFromMaster(conf, tmproot, masterCodeDir, topologyId, true); // tmproot/stormjar.jar String localFileJarTmp = StormConfig.stormjar_path(tmproot); // extract dir from jar JStormUtils.extract_dir_from_jar(localFileJarTmp, StormConfig.RESOURCES_SUBDIR, tmproot); FileUtils.moveDirectory(new File(tmproot), new File(stormroot)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consulterEvent() {\n\t\t\n\t}", "private void execute() {\n this.waitForFinish();\n this.stop();\n logger.info(\"Finished eventing test {}\", this.getClass().getSimpleName());\n Event currentEvent = null;\n Map<Long, Integer> orderVerifyMap = new HashMap<Long, Integ...
[ "0.6801766", "0.66649467", "0.6653952", "0.6585514", "0.6570409", "0.6491298", "0.6491298", "0.6438588", "0.6400436", "0.63240814", "0.63123536", "0.6302132", "0.6272302", "0.6261039", "0.62525576", "0.6242116", "0.6233942", "0.6228818", "0.6228818", "0.6226285", "0.62142277"...
0.0
-1
get mastercodedir for every topology
public static Map<String, String> getTopologyCodeLocations( Map<String, Assignment> assignments, String supervisorId) throws Exception { Map<String, String> rtn = new HashMap<String, String>(); for (Entry<String, Assignment> entry : assignments.entrySet()) { String topologyid = entry.getKey(); Assignment assignmenInfo = entry.getValue(); Set<ResourceWorkerSlot> workers = assignmenInfo.getWorkers(); for (ResourceWorkerSlot worker : workers) { String node = worker.getNodeId(); if (supervisorId.equals(node)) { rtn.put(topologyid, assignmenInfo.getMasterCodeDir()); break; } } } return rtn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void downloadDistributeStormCode(Map conf, String topologyId,\n\t\t\tString masterCodeDir) throws IOException, TException {\n\n\t\t// STORM_LOCAL_DIR/supervisor/tmp/(UUID)\n\t\tString tmproot = StormConfig.supervisorTmpDir(conf) + File.separator\n\t\t\t\t+ UUID.randomUUID().toString();\n\n\t\t// STORM_LOCA...
[ "0.57279676", "0.56986123", "0.53656304", "0.52296984", "0.5192922", "0.51040584", "0.50861686", "0.5081063", "0.50766057", "0.5059249", "0.505675", "0.5020881", "0.50139683", "0.49647558", "0.49472553", "0.49118945", "0.489738", "0.48566413", "0.48281658", "0.48226112", "0.4...
0.49302292
15
Creates a new instance of the main menu.
public GameMainMenu(Scanner in) { this.in = in; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }", "public MainMenu() {\n super();\n }", "public Menus( Main mainApp ) {\n this(); // call the default constructor, which must always be called first\n this.mainApp = mainApp; // save the reference to the Main ...
[ "0.7629362", "0.7590878", "0.7515657", "0.73001164", "0.71083814", "0.71077955", "0.7083426", "0.7070464", "0.70622355", "0.70467955", "0.6988189", "0.69622314", "0.69424784", "0.6929942", "0.6912851", "0.6910727", "0.6908208", "0.68966585", "0.6856385", "0.6856385", "0.68563...
0.0
-1
Displays the welcome message.
private void welcome() { System.out.println(Strings.MAIN_WELCOME_MESSAGE); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayWelcomeMessage() {\n\t\tSystem.out.println(\"Welcome to my program! :D\");\n\t\tSystem.out.println(\" Ryan Shupe \");\n\t\tSystem.out.println(\" CSCI 1250-004 Project 3 \");\n\t}", "public void welcome() {\n System.out.println(\"\\n-----------------------------------...
[ "0.8277452", "0.81848073", "0.7983731", "0.7924529", "0.7855865", "0.78425276", "0.77130055", "0.7683759", "0.7652178", "0.7626755", "0.7573241", "0.7479286", "0.747549", "0.74597", "0.74526453", "0.7440151", "0.7419305", "0.73915285", "0.7379075", "0.7335577", "0.73220026", ...
0.82971674
0
Displays the prompt of the menu.
private void prompt() { System.out.print(Strings.MAIN_PROMPT); System.out.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void showPrompt() {\r\n \r\n System.out.print(\"> \");\r\n \r\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n...
[ "0.7997996", "0.7840168", "0.7838202", "0.7754721", "0.7715859", "0.7705518", "0.7697885", "0.7681799", "0.7663901", "0.7632787", "0.7629875", "0.7617154", "0.7609158", "0.7584742", "0.75522065", "0.7543916", "0.7520267", "0.75009096", "0.7486002", "0.7477388", "0.74699134", ...
0.71159613
47
The handler for command "help". Displays help message consisting of commands available and their corresponding details.
private void help() { for (GameMainCommandType commandType : GameMainCommandType.values()) { System.out.printf("%-12s%s\n", commandType.getCommand(), commandType.getInfo()); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SlackerOutput handleHelp() {\n logger.debug(\"Handling help request\");\n List<WorkflowMetadata> metadata = registry.getWorkflowMetadata();\n Collections.sort(metadata, new Comparator<WorkflowMetadata>() {\n @Override\n public int compare(WorkflowMetadata m1, Work...
[ "0.77910465", "0.76659924", "0.7590933", "0.75394166", "0.75153214", "0.75109684", "0.7456426", "0.74356925", "0.7433572", "0.739876", "0.7359869", "0.73592776", "0.73557925", "0.73486054", "0.7281197", "0.7270855", "0.72662944", "0.72623533", "0.7257904", "0.72512066", "0.72...
0.69528323
38
The handler for command "about". Displays information about the system.
private void about() { System.out.println(Strings.MAIN_ABOUT_MESSAGE); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showAbout() {\r\n\t\tshowMessage(\"About\", \" Curtis Baldwin's Intelligent Building\"); // About message created when about button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\r\n\t}", "public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\", \"Abou...
[ "0.73922527", "0.73510975", "0.7245577", "0.7237538", "0.7086416", "0.70302266", "0.70145667", "0.69778866", "0.6959835", "0.69590336", "0.6946481", "0.6934478", "0.6890077", "0.68883646", "0.6857526", "0.6757721", "0.6735441", "0.67344445", "0.6714327", "0.6667036", "0.66489...
0.7776954
0
Use the factory to get BTCE exchange API using default settings
public static void main(String[] args) throws IOException { Exchange btce = ExchangeFactory.INSTANCE.createExchange(WexExchange.class.getName()); generic(btce); raw(btce); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BittrexApi() {\n this.apiKey = config.getVariable(\"BITTREX_API_KEY\");\n this.secretKey = config.getVariable(\"BITTREX_SECRET_KEY\");\n }", "ShipmentGatewayFedex createShipmentGatewayFedex();", "ShipmentGatewayConfig createShipmentGatewayConfig();", "BlockchainFactory getBlockchainFa...
[ "0.6295377", "0.59159464", "0.59127533", "0.58306736", "0.5744526", "0.571701", "0.57034063", "0.5697661", "0.5661309", "0.56593084", "0.5548788", "0.55309683", "0.5443275", "0.54415804", "0.54316396", "0.5392686", "0.53854614", "0.5383478", "0.53692734", "0.53614926", "0.535...
0.0
-1
Interested in the public market data feed (no authentication)
private static void generic(Exchange exchange) throws IOException { MarketDataService marketDataService = exchange.getMarketDataService(); // Get the latest trade data for BTC/EUR Trades trades = marketDataService.getTrades(CurrencyPair.BTC_EUR); System.out.println(trades.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebMarket getMarket() {\r\n return market;\r\n }", "public interface IMarketDataService {\n\n\t/**\n\t * Method used to retrieve market data.\n\t * @param symbol The symbol to query on\n\t * @return List of market data performance values\n\t */\n\tList<MarketPerformanceData> retrieveMarketData(S...
[ "0.5890121", "0.5823398", "0.5665894", "0.5651494", "0.5621566", "0.5621566", "0.55754364", "0.55564123", "0.5534776", "0.55253744", "0.5523836", "0.54689884", "0.5386801", "0.53846043", "0.53835666", "0.5349024", "0.5348502", "0.5335849", "0.52847517", "0.5266989", "0.525370...
0.47198823
86
Interested in the public market data feed (no authentication)
private static void raw(Exchange exchange) throws IOException { WexMarketDataServiceRaw marketDataService = (WexMarketDataServiceRaw) exchange.getMarketDataService(); // Get the latest trade data for BTC/USD Map<String, WexTrade[]> trades = marketDataService.getBTCETrades("btc_usd", 7).getTradesMap(); for (Map.Entry<String, WexTrade[]> entry : trades.entrySet()) { System.out.println("Pair: " + entry.getKey() + ", Trades:"); for (WexTrade trade : entry.getValue()) { System.out.println(trade.toString()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebMarket getMarket() {\r\n return market;\r\n }", "public interface IMarketDataService {\n\n\t/**\n\t * Method used to retrieve market data.\n\t * @param symbol The symbol to query on\n\t * @return List of market data performance values\n\t */\n\tList<MarketPerformanceData> retrieveMarketData(S...
[ "0.5890536", "0.58233863", "0.5665704", "0.56524307", "0.5621207", "0.5621207", "0.55759037", "0.5556284", "0.5535419", "0.5527289", "0.5524231", "0.54687977", "0.5387135", "0.53857595", "0.538379", "0.5349344", "0.534905", "0.5337843", "0.5284174", "0.5267659", "0.5254095", ...
0.0
-1
Allow you to focus on a specific zone
public void focusOn(Vector2i zone) { focusOn(zone.x, zone.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void focus() {}", "void focus();", "void focus();", "public void setFocus();", "public void Focus() {\n }", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "void addFocus();", "void...
[ "0.6842871", "0.67068857", "0.67068857", "0.6334092", "0.62981296", "0.62604755", "0.6252433", "0.62212807", "0.6216737", "0.6142486", "0.6133101", "0.6099684", "0.6097621", "0.6077043", "0.6077043", "0.6077043", "0.60449857", "0.5950354", "0.5919158", "0.5900508", "0.5897015...
0.8316238
0
Allow you to focus on a specific zone
public void focusOn(int x, int y) { this.x = x + zDim.x/2; this.y = y + zDim.y/2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void focusOn(Vector2i zone) {\n\t\tfocusOn(zone.x, zone.y);\n\t}", "public void focus() {}", "void focus();", "void focus();", "public void setFocus();", "public void Focus() {\n }", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "public void setFocus() ...
[ "0.8317131", "0.6843239", "0.67074054", "0.67074054", "0.6334352", "0.62983596", "0.62605965", "0.625279", "0.62208074", "0.62170714", "0.61428887", "0.61328757", "0.60997146", "0.60980165", "0.6077444", "0.6077444", "0.6077444", "0.6045071", "0.5919747", "0.59012395", "0.589...
0.59522283
18
Problem: Create a weighted random number generator. Create a class (be it Java, C++ or python) with 1 method (let say "getCountry()" ) and will return the country depending on the weights. The input is a table (let say hashTable) with the following data: country | weight (%) US | 44.75% UK | 22.2% China | 33.05%
public static void main(String[] args) { Map<String,Double> countries = new LinkedHashMap<>(); countries.put("US", 44.75); countries.put("UK", 22.2); countries.put("China", 33.05); for( int i = 0; i < 10; i++) { String country = getCountry(countries); System.out.println(String.format("%s) %s", i + 1, country)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int Weight();", "int getWeight();", "int getWeight();", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "public int getWeight();", "public Weight getWeight();", "public int weight ();", "public static float getRandomWeight() {\n\t\tfloat weight = (float)(Math.random...
[ "0.6215228", "0.6175462", "0.6175462", "0.6088496", "0.60827816", "0.60301465", "0.5948514", "0.5892802", "0.58803576", "0.57559884", "0.56807125", "0.5639986", "0.55771315", "0.5462494", "0.5410224", "0.5405232", "0.5398881", "0.53389853", "0.5318793", "0.53159904", "0.52908...
0.5030646
69
Dibuat dengan kerjakerasbagaiquda oleh Shifu pada tanggal 01/08/2018.
interface JSONMvpView extends MvpView { void onPostClicked(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getTanggalKelahiran() {\r\n Date tanggalKelahiran = new Date(getTahunLahir() - 1900, getBulanLahir() - 1, getTanggalLahir());\r\n SimpleDateFormat ft = new SimpleDateFormat(\"dd - MM - yyyy\");\r\n System.out.println(ft.format(tanggalKelahiran));\r\n }", "public void dataPadra...
[ "0.69981927", "0.6781961", "0.63753635", "0.63625985", "0.62824494", "0.6273631", "0.6258688", "0.6207998", "0.6170777", "0.6121711", "0.60821545", "0.60743487", "0.6059458", "0.60448", "0.60170776", "0.60156804", "0.6005912", "0.5974955", "0.5973628", "0.5968445", "0.5955915...
0.0
-1
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: ru.v2.fss.integration.types.sedo.v01
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DsmlprotoFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tDsmlprotoFactory eINSTANCE = svk.dsmlproto.profile.dsmlproto.impl.DsmlprotoFactoryImpl.init();\n\n\t/**\n\t * Returns a new o...
[ "0.6355166", "0.6201941", "0.6196921", "0.6156273", "0.6125577", "0.6125577", "0.6125577", "0.6113251", "0.6000707", "0.59952277", "0.5970001", "0.5948002", "0.5943723", "0.59398687", "0.5937431", "0.59367406", "0.5931678", "0.59286994", "0.5911069", "0.5908472", "0.5903589",...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_post_detail, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
/ insert into bookinfo (uid, bdate, btime, pid, sid, bremark)
private void add(HttpServletRequest request, HttpServletResponse resp) throws IOException { int rows=0; String msg="未知错误"; try { Bookinfo entity=new Bookinfo(); entity.setUid(StringUtils.str2Integer(request.getParameter("uid"), false)); entity.setBdate(StringUtils.str2DateBySql(request.getParameter("bdate"), false, "yyyy-MM-dd")); entity.setBtime(request.getParameter("btime")); entity.setPid(StringUtils.str2Integer(request.getParameter("pid"), false)); //随机分配座位 //entity.setSid(StringUtils.str2Integer(request.getParameter("sid"), false)); Integer spid=StringUtils.str2Integer(request.getParameter("pid"), false, null); SeatinfoDao seatinfoDao=new SeatinfoDaoImpl(); Map<String,Object> seatmap=new HashMap<String, Object>(); seatmap.put("spid", spid); List<Seatinfo> seatlist=seatinfoDao.findByCondition(seatmap); BookinfoDao bookinfoDao=new BookinfoDaoImpl(); Map<String,Object> bookmap=new HashMap<String, Object>(); bookmap.put("pid", spid); List<Bookinfo> booklist=bookinfoDao.findByCondition(bookmap); Random random=new Random(); ArrayList<Integer> list_seatinfosid = new ArrayList<Integer>(); for(Seatinfo seatinfo:seatlist){ list_seatinfosid.add(seatinfo.getSid()); } ArrayList<Integer> list_bookinfosid = new ArrayList<Integer>(); for(Bookinfo bookinfo:booklist){ list_bookinfosid.add(bookinfo.getSid()); } OUT: for(int i=0;;i++){ Integer seat=list_seatinfosid.get(random.nextInt(list_seatinfosid.size())); Map<String,Object> seattype=new HashMap<String, Object>(); seattype.put("sid", seat); List<Seatinfo> seatwp=seatinfoDao.findByCondition(seattype); // for(Seatinfo seatwplist:seatwp){ // String theswindow=seatwplist.getSwindow(); // String thespower=seatwplist.getSpower(); // } if(list_bookinfosid.size()==24){ // Writer sout = resp.getWriter(); // sout.write("此需求已满,请重新选择!");break; break; } else { for(Seatinfo seatwplist:seatwp){ if(list_bookinfosid.contains(seat)==false){ // if(request.getParameter("swindow").equals(seatwplist.getSwindow()) && request.getParameter("spower").equals("false")) { // entity.setSid(seat);break OUT; // } else if(request.getParameter("spower").equals(seatwplist.getSpower()) && request.getParameter("swindow").equals("false")) { // entity.setSid(seat);break OUT; // } else if(request.getParameter("spower").equals(seatwplist.getSpower()) && request.getParameter("swindow").equals(seatwplist.getSwindow())) { // entity.setSid(seat);break OUT; // } else { // entity.setSid(seat);break OUT; // } if(request.getParameter("spower").equals(seatwplist.getSpower()) || request.getParameter("swindow").equals(seatwplist.getSwindow())){ thissid=seat; entity.setSid(seat);break OUT; } } } } } entity.setBremark(request.getParameter("bremark")); if(StringUtils.str2Integer(request.getParameter("uid"), false, null)==null){ throw new RuntimeException("您没有登录"); } if(entity.getSid()==null){ throw new RuntimeException("座位分配失败"); } rows=bookinfoDao.saveBookinfo(entity); } catch (Exception e) { e.printStackTrace(); msg="保存失败:"+e.getMessage(); } Writer out = resp.getWriter(); if(rows>0){ out.write("true"); }else{ out.write("false"+msg); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(BookInfo record);", "String insert(BookDO record);", "int insertSelective(BookInfo record);", "@Override\n\tpublic void insertBookData(BookingBus b) {\n\t\tuserdao.insertBookData(b);\n\t}", "void insert(BnesBrowsingHis record) throws SQLException;", "public void insertBook(int ISBN, String Boo...
[ "0.6814981", "0.6609178", "0.6392956", "0.63427067", "0.62639713", "0.61593735", "0.6131865", "0.6104573", "0.6091846", "0.6091846", "0.60781515", "0.603806", "0.6031821", "0.5972271", "0.5963896", "0.5927869", "0.5900712", "0.58980006", "0.58684635", "0.5860325", "0.58461976...
0.0
-1
The colour of this Ball Permissable colours are: BLACK, BLUE, CYAN, DARKGREY, GREY, GREEN, LIGHTGREY, MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW or RRGGBB Constructor. Creates a Ball with the given parameters.
public Ball(double x, double y, double diameter, String col) { this.xPosition = x; this.yPosition = y; this.size = diameter; this.colour = col; this.layer = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ball(double x, double y, int r, java.awt.Color color) {\n this.center = new Point(x, y);\n this.r = r;\n this.color = color;\n this.gameEnvironment = new GameEnvironment();\n }", "public Ball(int x, int y, int radius, Color color, int xVelocity, int yVelocity, int xWall, int...
[ "0.71397966", "0.6867735", "0.6730936", "0.66733855", "0.6631784", "0.66086435", "0.65972894", "0.6553201", "0.64909494", "0.63900185", "0.63463134", "0.6282536", "0.628089", "0.6268403", "0.62278694", "0.6171956", "0.6140596", "0.6066218", "0.6015902", "0.5956592", "0.594735...
0.6713956
3
Constructor. Creates a Ball with the given parameters.
public Ball(double x, double y, double diameter, String col, int layer) { this.xPosition = x; this.yPosition = y; this.size = diameter; this.colour = col; this.layer = layer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Ball() {\r\n\t\tsetWidth(Settings.BALL_WIDTH);\t\t// sets width of ball from variable in settings\r\n\t\tsetHeight(Settings.BALL_HEIGHT);\t// ''width''\r\n\t\tresetPosition();\t\t\t\t\t// Call resetPosition\r\n\t}", "public Ball(int x, int y, int radius, Color color, int xVelocity, int yVelocity, int xWal...
[ "0.80438316", "0.8022993", "0.7882271", "0.7859266", "0.7747103", "0.76155293", "0.758551", "0.75055397", "0.74013126", "0.725413", "0.7210153", "0.7147872", "0.71318233", "0.7121783", "0.7114272", "0.71058327", "0.7065268", "0.6921743", "0.6917051", "0.6890169", "0.68497276"...
0.7293721
9
Obtains the current position of this Ball.
public double getXPosition() { return xPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Position getCurrentPosition() {\n return this.currentPosition;\n }", "public Position getCurrentPosion() {\n Position position = new Position();\n position.x = getLeft() + getWidth() / 2;\n position.y = getTop() + getHeight() / 2;\n return position;\n }", "public...
[ "0.7550808", "0.74839437", "0.7428251", "0.73914546", "0.7328504", "0.7296313", "0.7270552", "0.72373354", "0.7236188", "0.7228101", "0.7216266", "0.7214152", "0.72120214", "0.71892726", "0.71465427", "0.7128785", "0.71129364", "0.7102676", "0.7101735", "0.7101122", "0.708203...
0.0
-1
Obtains the current position of this Ball.
public double getYPosition() { return yPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Position getCurrentPosition() {\n return this.currentPosition;\n }", "public Position getCurrentPosion() {\n Position position = new Position();\n position.x = getLeft() + getWidth() / 2;\n position.y = getTop() + getHeight() / 2;\n return position;\n }", "public...
[ "0.75522745", "0.7485326", "0.7428369", "0.7392858", "0.73285586", "0.72971547", "0.7270379", "0.72372717", "0.72362924", "0.7228189", "0.7217951", "0.72147894", "0.72136766", "0.7190794", "0.7146733", "0.71291", "0.71135104", "0.7103297", "0.710155", "0.710154", "0.7081114",...
0.0
-1
Moves the current position of this Ball to the given coordinates
public void setXPosition(double x) { this.xPosition = x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveBallTo(int x, int y)\n {\n currentBallX = x;\n currentBallY = y;\n }", "protected void moveTo (int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;...
[ "0.7142298", "0.70771617", "0.7045493", "0.6919264", "0.6870888", "0.6868483", "0.6843568", "0.6811728", "0.67714095", "0.6761224", "0.6739507", "0.6736636", "0.6715354", "0.6709555", "0.6667868", "0.6663536", "0.6649797", "0.66321075", "0.6624041", "0.6616152", "0.6601021", ...
0.0
-1
Moves the current position of this Ball to the given coordinates
public void setYPosition(double y) { this.yPosition = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveBallTo(int x, int y)\n {\n currentBallX = x;\n currentBallY = y;\n }", "protected void moveTo (int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;...
[ "0.7140883", "0.70760643", "0.7043155", "0.6918575", "0.6869911", "0.68675214", "0.6842646", "0.6809195", "0.67707944", "0.67606074", "0.6737203", "0.6736339", "0.67139876", "0.6708843", "0.6665855", "0.6662779", "0.6647824", "0.66305023", "0.66217744", "0.6616011", "0.660196...
0.0
-1
Obtains the size of this Ball.
public double getSize() { return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public double getSize() {\n return size_;\n }", "public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}", "public float getSize() {\n\t\treturn size;\n\t}", "public long getSize() {\n return mSize;\n }", ...
[ "0.7138007", "0.7016721", "0.6967196", "0.6945201", "0.69342196", "0.69178474", "0.6915518", "0.6906662", "0.6899451", "0.6893911", "0.6866822", "0.6855109", "0.6822855", "0.682277", "0.6809046", "0.679735", "0.67885655", "0.67843556", "0.6783246", "0.6780101", "0.67739403", ...
0.69396836
4
Sets the diameter of this Ball to the given size.
public void setSize(double s) { size = s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDiameter(int diameter) {\n circleDiameter = diameter;\n\n }", "public void setDiameter(int diameter){\n\t\tthis.diameter = diameter;\n\t}", "public void setSize(double size) \n {\n this.size = size;\n }", "public void setSize(Dimension size) {\r\n this.size = size...
[ "0.71222925", "0.7076117", "0.6819137", "0.66834486", "0.6429844", "0.64149034", "0.64149034", "0.63776374", "0.6349837", "0.6330756", "0.6314616", "0.6314616", "0.6314616", "0.6314616", "0.63012505", "0.6292409", "0.6260717", "0.6243856", "0.61599135", "0.6044375", "0.603179...
0.5748085
34
Obtains the layer of this Ball.
public int getLayer() { return layer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Layer getLayer() {\n return layer;\n }", "public Layer getLayer() {\n return _layer;\n }", "public Layer getLayer() {\n\t\treturn layer;\n\t}", "public int getLayer() {\r\n\t\treturn layer;\r\n\t}", "public Layer.Layers getLayer();", "@Override\n\tpublic BaseLayer GetUnderLayer() {\n\t\tif...
[ "0.7615064", "0.7585278", "0.7579263", "0.72194445", "0.71863925", "0.6947072", "0.676233", "0.6606459", "0.65222454", "0.6507633", "0.6463368", "0.6379023", "0.63634586", "0.63521296", "0.63423276", "0.6332035", "0.6313895", "0.6306444", "0.62866384", "0.62559974", "0.624115...
0.7207918
4
Sets the layer of this Ball.
public void setLayer(int l) { layer = l; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLayer(Layer layer) {\n _layer = layer;\n setDirty(true);\n }", "public final void setActiveLayer(BaseDodlesViewGroup layer) {\n activeLayer = layer;\n }", "public void setLayerNum(int num) {\n\t\tint diff = num - layerNum;\n\t\tfor(LayerBoundingBox bbox : boundingBoxes) {\n\t\t\...
[ "0.72245693", "0.6333332", "0.62278086", "0.61793166", "0.6107917", "0.6055317", "0.60552055", "0.6048806", "0.5960935", "0.588012", "0.58695525", "0.58686674", "0.5838987", "0.5772448", "0.5766679", "0.56630576", "0.5637467", "0.5611092", "0.5593251", "0.5572192", "0.5559297...
0.6959532
1
Obtains the colour of this Ball.
public String getColour() { return colour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color getBallsColor() {\n return ballsColor;\n }", "public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}", "public Colour getColour() {\n\t\treturn colour;\n\t}", "public final Color getColor() {\n return color;\n }", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "pu...
[ "0.74745893", "0.72416085", "0.716616", "0.7154766", "0.713592", "0.7134566", "0.7134566", "0.7134566", "0.71300185", "0.71272486", "0.71220726", "0.7118764", "0.7118764", "0.7107722", "0.7101962", "0.7094907", "0.7094821", "0.70854324", "0.70723724", "0.7062907", "0.7058058"...
0.7184571
2
Sets the colour of this Ball.
public void setColour(String c) { colour = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setColor(Color color);", "public void setColor(Color c);", "public void setColor(Color c) { color.set(c); }", "public void setColor(int r, int g, int b);", "public void setColor()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"ye...
[ "0.703472", "0.6973951", "0.6964489", "0.69599944", "0.6949407", "0.69328535", "0.69139457", "0.68757075", "0.6842217", "0.6835685", "0.67996436", "0.67996436", "0.67948157", "0.6752554", "0.6731783", "0.6714924", "0.66491544", "0.66404366", "0.6625094", "0.66145664", "0.6614...
0.0
-1
Moves this Ball by the given amount.
public void move(double dx, double dy) { xPosition += dx; yPosition += dy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long moveOn(int amount) {\n\t\t\tthis.position += amount;\n\t\t\treturn amount;\n\t\t}", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "public double moveX(double amount)\n {\n //Check boundary ...
[ "0.7213479", "0.68860394", "0.66216165", "0.651471", "0.6464317", "0.6404181", "0.6396619", "0.6356185", "0.6300723", "0.62978786", "0.6297433", "0.6295507", "0.6237899", "0.61786985", "0.61671436", "0.6158241", "0.61516863", "0.6125474", "0.6105896", "0.61032796", "0.6102996...
0.0
-1
Determines if this Ball is overlapping the given ball.
public boolean collides(Ball b) { double dx = b.xPosition - xPosition; double dy = b.yPosition - yPosition; double distance = Math.sqrt(dx*dx+dy*dy); return distance < size/2 + b.size/2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean collides(Ball ball) //collision detection\n {\n if( ( position.y+height ) > ball.getPosY()-8 )\n {\n if( position.y+10 < ( ball.getPosY()-8 ) )\n {\n if(\n !((\n (ball.getPosX()-12 < ( position.x)...
[ "0.76275086", "0.7474444", "0.74174595", "0.71724796", "0.713378", "0.7078764", "0.6855848", "0.6848899", "0.6808907", "0.67071587", "0.6679445", "0.6649959", "0.66124296", "0.65586066", "0.65192956", "0.65054005", "0.64401805", "0.64383525", "0.6419355", "0.639334", "0.63434...
0.68043333
9
TODO Autogenerated method stub
@Override public int addRoleInfo(FRoleCustom fRoleCustom) throws Exception { DBContextHolder.setDBType("0"); return froleMapper.addRoleInfo(fRoleCustom); }
{ "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 Autogenerated method stub
@Override public int updateRoleInfo(FRoleCustom fRoleCustom) throws Exception { DBContextHolder.setDBType("0"); return froleMapper.updateRoleInfo(fRoleCustom); }
{ "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 Autogenerated method stub
@Override public int deleteRoleInfo(int roleid) throws Exception { DBContextHolder.setDBType("0"); return froleMapper.deleteRoleInfo(roleid); }
{ "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 Autogenerated method stub
@Override public List<FRoleCustom> findRoleInfo() throws Exception { DBContextHolder.setDBType("0"); return froleMapper.findRoleInfo(); }
{ "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 Autogenerated method stub
@Override public FRoleCustom findRInfoById(int roleid) throws Exception { return froleMapper.findRInfoById(roleid); }
{ "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 Autogenerated method stub
@Override public List<FRolefuncCustom> findRFunc(int roleid) throws Exception { return froleMapper.findRFunc(roleid); }
{ "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 Autogenerated method stub
@Override public int delRFunc(int roleid) throws Exception { return froleMapper.delRFunc(roleid); }
{ "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 Autogenerated method stub
@Override public int addRFunc(FRolefuncCustom fRolefuncCustom) throws Exception { return froleMapper.addRFunc(fRolefuncCustom); }
{ "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 Autogenerated method stub
@Override public int findRIdByName(String title) throws Exception { return froleMapper.findRIdByName(title); }
{ "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 Autogenerated method stub
@Override public List<FRoleCustom> findUserRoleTitle(int userid) throws Exception { return froleMapper.findUserRoleTitle(userid); }
{ "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
/a partire dalla lista di tweets dell'utente, restituisce una lista gli stems ottenuti da tutti i tweet
public ArrayList<String> getAllTweetsStems(long currentUserId) throws IOException, TwitterException { ArrayList <String> tweets = this.getTweets(currentUserId); ArrayList <String> allTweetsStems = new ArrayList<String>(); for(String tweet : tweets) { ArrayList<String> tweetStems = this.textProcessor.processString(tweet); for(String tweetStem : tweetStems) { allTweetsStems.add(tweetStem); } } return allTweetsStems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Status> getTweets() {\r\n\t\tincrementShutdownTimer();\r\n\t\treturn tweets;\r\n\t}", "public List<Tweet> getAllTweets() {\n\t\tList<Tweet> tweets = new ArrayList<Tweet>();\n\t\tString selectQuery = \"SELECT * FROM \" + TweetDataSource.TABLE_TWEETS;\n\n\t\tSQLiteDatabase db = this.getReadableDatabas...
[ "0.7083465", "0.7005046", "0.69296694", "0.6915896", "0.68964493", "0.67561024", "0.6752796", "0.6670635", "0.66384065", "0.65833443", "0.6528425", "0.65125823", "0.64909995", "0.6453158", "0.6445388", "0.6361519", "0.63162804", "0.62890863", "0.6222017", "0.6218435", "0.6208...
0.6134966
26
/ottiene la lista di tutti degli status di un utente, ne estrae i testi, ne ottiene gli stems e li restituisce in una ArrayList
public ArrayList<String> getTweets (long currentUserId) throws TwitterException { ArrayList<String> tweets = new ArrayList<String>(); Paging paging = new Paging(); ResponseList<Status> currentUserTimeLine = this.twitter.getUserTimeline(currentUserId, paging); for(Status status:currentUserTimeLine) { tweets.add(status.getText()); } return tweets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Ausleihe> sucheAusgehendeAnfragen(Benutzer benutzer, Status status) {\n List<Ausleihe> list = new ArrayList<Ausleihe>();\n for (Ausleihe b : benutzer.getAusgeliehen()) {\n if (b.getAusleihStatus().equals(status)) {\n list.add(b);\n }\n }\n ...
[ "0.677672", "0.6744841", "0.65430063", "0.6517644", "0.6422409", "0.64091146", "0.6332192", "0.63310176", "0.631752", "0.6317173", "0.6266436", "0.62238866", "0.6196367", "0.61533546", "0.6146174", "0.6072326", "0.60666394", "0.60624206", "0.60497415", "0.60437846", "0.602824...
0.0
-1
/ottiene la descrizione di un utente e ne estrae gli stems
public ArrayList<String> getDescriptionStems (long currentUserId) throws TwitterException, IOException { String description = this.twitter.showUser(currentUserId).getDescription(); ArrayList<String> stems = this.textProcessor.processString(description); return stems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}", "public void setDescrizione (String descrizione) {\r\n\t\tthis.descrizione=descrizione;\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {...
[ "0.6853763", "0.6778642", "0.664324", "0.6595419", "0.6552676", "0.6535062", "0.6459555", "0.6426083", "0.64033496", "0.6379746", "0.6379746", "0.6379746", "0.6379746", "0.6379746", "0.6379746", "0.6379746", "0.6379746", "0.6379746", "0.630212", "0.62045896", "0.62045896", ...
0.0
-1
TODO Investigate why the Exception is not thrown.
void readFaultyRecipientsTest() { Assertions.assertThrows(RuntimeException.class, () -> Reader.readRecipients(Paths.get("src/test/resources/faulty_recipients.txt"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", ...
[ "0.65850055", "0.65850055", "0.6577992", "0.6565411", "0.6484736", "0.64664716", "0.6439562", "0.6439562", "0.6439562", "0.6439562", "0.6439562", "0.6394213", "0.63820106", "0.6365466", "0.6354122", "0.62575364", "0.62255675", "0.6215043", "0.6213175", "0.61984175", "0.618921...
0.0
-1
fromDfas.set(fromDfa, false); gotoDfas.set(gotoDfa, true);
public void makeTran(int fromDfa, int gotoDfa) { throw new RuntimeException("This is never called"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean NFAtoDFA(){\n\t\tn2dfa_start=new DFA_State();\n\t\tHashSet<NFA_State> nfas=new HashSet<NFA_State>();\n\t\tnfas.add(nfa_start);\n\t\tnfas=getEClosure(nfas);\n\t\tspreadDFA(nfas,n2dfa_start);\n\t\treturn true;\n\t}", "public void resetDFA() {\n currentState = State.START;\n }", "public static v...
[ "0.5721407", "0.5430968", "0.54297787", "0.5335877", "0.52022374", "0.5155041", "0.5020227", "0.49999154", "0.49463636", "0.49260816", "0.49238238", "0.49009874", "0.47797367", "0.4734722", "0.46938318", "0.46601963", "0.46484295", "0.4637444", "0.4622788", "0.46070895", "0.4...
0.6369323
0
TODO Autogenerated method stub
@Override public Iterator<Integer> iterator() { return new Iterator<Integer>() { int index = -1; @Override public void remove() { } @Override public Integer next() { if (index >= length) throw new RuntimeException(); return offset + index * delta; } @Override public boolean hasNext() { return ++index < length; } }; }
{ "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 Autogenerated method stub
@SuppressWarnings("unchecked") @Override public Map<String, Object> query(String user, int page, String select) { Map<String, Object> map = new HashMap<String, Object>(); int userid = this.usercheck.checkUsername(user); List<Class> clist = this.cDAO.getMyClass(userid); int size = clist.size(); List<Object> selectlist = new ArrayList<Object>(); for(int i = 0; i < size; i++){ Map<String, Object> cmap = new HashMap<String, Object>(); int classid = clist.get(i).getClassId(); cmap.put("id", classid); cmap.put("class", this.cDAO.getClassName(classid)); selectlist.add(cmap); } //get the request class id int s = selectlist.size(); int classid; if(s == 0){ //list is null classid = -1; } else{ classid = (int) ((Map<String, Object>) selectlist.get(0)).get("id"); } for(int i = 0; i < s; i++){ if(select.equals(((Map<String, Object>) selectlist.get(i)).get("class"))){ classid = (int) ((Map<String, Object>) selectlist.get(i)).get("id"); } } //detail List<List<Map<String, Object>>> detaillist = this.cDAO.ClassOfTeacher(this.cDAO.getClassName(classid)); map.put("detail", detaillist); map.put("select", selectlist); map.put("page", 1); return map; }
{ "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
Creates a new RetrieveFileFromCacheRequest
public RetrieveFileFromCacheRequest(String fileRef, String uniquePluginName) { mFileRef = fileRef; mUniquePluginName = uniquePluginName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static CacheResult createCacheFile(String url, int statusCode,\n Headers headers, String mimeType, boolean forceCache) {\n // This method is public but hidden. We break functionality.\n return null;\n }", "public InputSource getCachedFile(String fileURI) {\t\t\n\t InputSource in = ...
[ "0.5788419", "0.57602984", "0.5648053", "0.5624438", "0.5558602", "0.5498376", "0.54949117", "0.5453278", "0.54526144", "0.5411606", "0.539555", "0.5360111", "0.53263694", "0.525522", "0.5178545", "0.515811", "0.5154019", "0.51231647", "0.5123071", "0.51161236", "0.5094984", ...
0.65991485
0
Implement to provide basic logging
protected abstract void logError(Exception e);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void initializeLogging();", "void log();", "@Override\n public void log()\n {\n }", "@Override\n public void logs() {\n \n }", "public static void loggingExample() {\n\t\tSystem.out.println(\"This is running with the default logger!\");\n\t\tnewLogger.fatal(\"This is fatal\");\n\t...
[ "0.77680045", "0.7616771", "0.75904536", "0.757195", "0.74743897", "0.7351707", "0.72705036", "0.72214395", "0.71586174", "0.71326065", "0.7082249", "0.7041607", "0.70317316", "0.69858515", "0.6981727", "0.6972672", "0.6941943", "0.6939589", "0.693178", "0.693074", "0.6917439...
0.0
-1
Implement to provide access to object persistence service with basic CRUD capability
protected abstract BeanCRUDService<BeanType> getBeanCRUDService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CRUDProduto {\r\n \r\n public boolean save(Produto produto);\r\n\r\n public boolean update(Produto produto);\r\n\r\n public boolean delete(Produto produto);\r\n\r\n public Produto get(long id);\r\n\r\n public List<Produto> getAll();\r\n}", "public interface Crud<T> {\n\n /**...
[ "0.69843775", "0.6747379", "0.67017174", "0.66832", "0.6640643", "0.6633409", "0.6621201", "0.6616136", "0.65168434", "0.6507003", "0.64927053", "0.6463533", "0.64528704", "0.6446554", "0.6445035", "0.6440989", "0.6438709", "0.6412954", "0.63919485", "0.63884056", "0.63821524...
0.0
-1
Implement to copy the parameters from the request into the bean
protected abstract void populateBeanFromRequest(BeanType bean, Request request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void populateBeanFromParameters(Object bean, HttpServletRequest request) {\n\t\tMap<String,String> parameters = getParametersMap(request) ;\n\t\tBeanMapper mapper = new BeanMapper();\n\t\tmapper.mapToBean(parameters, bean);\n\n\t}", "public PortletRequestParameterPropertyValues(PortletRequest request) ...
[ "0.71625316", "0.6211094", "0.6135347", "0.6133039", "0.6112952", "0.61099327", "0.61002713", "0.609527", "0.609527", "0.59404045", "0.5860172", "0.58538574", "0.5843192", "0.5830293", "0.58278733", "0.5823324", "0.5819707", "0.5789782", "0.57811123", "0.5775784", "0.5745659"...
0.63373446
1
========================================================================= POST: Create a new object Implement AbstractBaseRestlet
public void postRequest(Request request, Response response) { createObject(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@POST( CONTROLLER )\n VersionedObjectKey createObject( @Body CreateObjectRequest request );", "@POST\n @Path(\"/new\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response createNewBlah(\n BlahPayload entity,\n @Context UriInfo uri...
[ "0.7584634", "0.67668045", "0.6716387", "0.648245", "0.6457566", "0.6441665", "0.6421311", "0.6410997", "0.6362089", "0.6317635", "0.6294885", "0.62843406", "0.6173494", "0.6165224", "0.6160464", "0.6126599", "0.61202896", "0.6091096", "0.6085943", "0.6084125", "0.60839456", ...
0.0
-1
========================================================================= GET: Retrieve and return the object. Implement AbstractBaseRestlet
public void getRequest(Request request, Response response) { retrieveObject(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);", "public EntityType2 get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "RequesterVO get(int id);", "@Override\n @SuppressWarnings(\"unchecked...
[ "0.66853684", "0.6591616", "0.65719503", "0.6504745", "0.6478349", "0.64336884", "0.640185", "0.63887346", "0.6351218", "0.6339572", "0.6326419", "0.62939805", "0.623143", "0.6209496", "0.6201503", "0.6201503", "0.6201503", "0.6201503", "0.61900926", "0.61805105", "0.61064565...
0.0
-1
========================================================================= DELETE: Delete the project. Implement AbstractBaseRestlet
public void deleteRequest(Request request, Response response) { deleteObject(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/project/{id}\", method = RequestMethod.DELETE)\n\tpublic Response deleteProject(@PathVariable Integer id) {\n\t\tResponse response = new Response();\n\t\ttry {\n\t\t\tBoolean isDelete = projectService.removeProjectData(id);\n\t\t\tif (isDelete) {\n\t\t\t\tresponse.setCode(CustomResponse....
[ "0.74254215", "0.7362535", "0.72666246", "0.72340256", "0.7147098", "0.7049625", "0.7003499", "0.68560725", "0.68503076", "0.68366516", "0.6809736", "0.6793732", "0.6759535", "0.6626918", "0.66142976", "0.6575493", "0.6561614", "0.64863575", "0.64853615", "0.64631546", "0.645...
0.0
-1
========================================================================= PUT: Update the project. Implement AbstractBaseRestlet
public void putRequest(Request request, Response response) { updateObject(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updateProject(Project project);", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/projects/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Project> replaceProject(\n @Path(\"name\")...
[ "0.7000679", "0.686583", "0.66868955", "0.6612327", "0.6374822", "0.6278761", "0.62532645", "0.62447375", "0.6182853", "0.61715025", "0.6165747", "0.61288506", "0.61195284", "0.609581", "0.60850096", "0.6063066", "0.6048723", "0.6015217", "0.5968794", "0.5936262", "0.5930138"...
0.0
-1
Get the Project ID from the URL.
private Integer extractId(Request request) throws InvalidInputException { String intString = (String)request.getAttributes().get(RequestParamConstants.PARAM_META_ID); Integer id = null; try { id = new Integer(intString); } catch (NumberFormatException e) { throw new InvalidInputException("Bad integer format in id: "+intString, e); } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProjectId() {\n return getProperty(Property.PROJECT_ID);\n }", "java.lang.String getProjectId();", "public static String getProjectURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project;\n\t}", "private Option<String> getParleysId(S...
[ "0.6705442", "0.6593841", "0.65029985", "0.6456777", "0.6272508", "0.62630284", "0.6153971", "0.61334074", "0.60975856", "0.6092792", "0.6046234", "0.6043351", "0.60260105", "0.6021779", "0.6021779", "0.6021042", "0.5991268", "0.5985921", "0.5985556", "0.59695446", "0.5952202...
0.0
-1
Created by chenglu on 201939.
@Mapper @Component(value = "StudentinfoDao") public interface StudentinfoDao { int insert(Studentinfo studentinfo); int delete(Studentinfo studentinfo); int deleteByIds(@Param("ids") Integer[] ids); int update(Studentinfo studentinfo); Studentinfo getById(@Param("id") Integer id); Studentinfo getByName(@Param("accountname") String accountname); Studentinfo updateByAccountName(Studentinfo studentinfo); List<Studentinfo> list(Studentinfo studentinfo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpub...
[ "0.61181813", "0.60008615", "0.5910629", "0.58395475", "0.58323544", "0.58323544", "0.58116925", "0.5743354", "0.5720296", "0.57150865", "0.5694683", "0.56946397", "0.56939983", "0.56859726", "0.56834984", "0.56775624", "0.56639296", "0.5660391", "0.5650332", "0.5623817", "0....
0.0
-1
Constructor to create a custom dialog
public AddPlayerDialog(MainWindow frame, GameEngine gameEngine) { //create the labels and text fields JLabel heading = new JLabel("Add New Player"); JTextField name = new JTextField(30); JTextField credit = new JTextField(30); JLabel nameLabel = new JLabel("Player Name:"); JLabel creditLabel = new JLabel("Player Credit:"); //add player button and custom actionEventListnener JButton save = new JButton("Add Player"); save.addActionListener(new SaveNewPlayer(gameEngine, frame, name, credit, this)); //cancel button with custom actionEventListener JButton cancel = new JButton("Cancel"); cancel.addActionListener(new Cancel(this)); //panel that holds all components JPanel panel = new JPanel(); GroupLayout layout = new GroupLayout(panel); panel.setLayout(layout); //set out components in a Group layout pattern layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(heading) .addGroup(layout.createSequentialGroup() .addComponent(nameLabel, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(name, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(creditLabel, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(credit, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(cancel, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(save, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup(layout.createSequentialGroup() .addComponent(heading) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(nameLabel) .addComponent(name)) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(creditLabel) .addComponent(credit)) .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(cancel) .addComponent(save)) ); //add panel to dialog add(panel); //set dialog size and position setBounds(400, 400, 500, 400); pack(); setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StandardDialog() {\n super();\n init();\n }", "public Dialog() {\n\t}", "public CustomDialog(String title) {\n\t\tsuper();\n\t\tsetTitle(title);\n\t\tinit();\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "private Dialogs () {\r\n\t}", "public CustomDi...
[ "0.81778216", "0.79689145", "0.75666654", "0.7535757", "0.7412769", "0.73779064", "0.7337662", "0.72891414", "0.72496396", "0.72408193", "0.72229373", "0.72101015", "0.7198736", "0.7196112", "0.7123978", "0.7071621", "0.69741225", "0.69738173", "0.6899085", "0.6839486", "0.68...
0.0
-1
definitions for the observablelist of items definitions for the textfields, filepath and filename definitions for the table using hashmaps definitions for the tab, creating new tabs initialize the table using setCellValueFactory update the fields to edit in the table itself
@FXML public void buttonAddItem(ActionEvent actionEvent) { //adds a list item to the table }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void fillTable() {\r\n\t\ttabDate.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"transactionDate\"));\r\n\t\ttabSenderNumber.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"senderNumber\"));\r\n\t\ttabReceiverNumber\r\n\t\t\t\t.setCellValue...
[ "0.6524446", "0.63066405", "0.62092286", "0.6155419", "0.6090163", "0.60758144", "0.6070856", "0.601775", "0.5997993", "0.5964841", "0.5958584", "0.5908987", "0.59039104", "0.5897513", "0.5872258", "0.5857383", "0.58169913", "0.5800243", "0.57966954", "0.57950044", "0.5786329...
0.0
-1
check to see if row was selected removes a listitem from the table refresh the table
public void buttonRemoveItem(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\t Database.RemoveItem(Integer.toString(Database.IDs[table.getSelectedRow()]));\t\n\t\t\t\t Login.Refresh();\n\t\t\t }", "public void eliminarLista(){\n //se define la lista seleccionada y se elimina\n ListaCompras listaSeleccionada = ListasCompra...
[ "0.7205649", "0.7018882", "0.6789517", "0.6783655", "0.6779913", "0.66454047", "0.6619126", "0.66024333", "0.66008234", "0.6558373", "0.6526988", "0.65227056", "0.6521494", "0.65187055", "0.65115786", "0.65115786", "0.6505263", "0.6495157", "0.64879274", "0.6483154", "0.64757...
0.0
-1
check to see if row was selected change status to "complete" or "incomplete" refresh the table
public void buttonChangeStatus(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n ...
[ "0.6489557", "0.6330491", "0.62252676", "0.61690277", "0.612993", "0.60894215", "0.60809565", "0.60200226", "0.5910616", "0.5882654", "0.588155", "0.5857713", "0.584471", "0.5830579", "0.58288205", "0.5827478", "0.5819503", "0.57742697", "0.5769697", "0.57602614", "0.57104576...
0.0
-1
create a new ObservableList if the status is incomplete add to the new list refresh the table with that new list
public void buttonShowIncomplete(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillStatusList() {\n StatusList = new ArrayList<>();\n StatusList.add(new StatusItem(\"Single\"));\n StatusList.add(new StatusItem(\"Married\"));\n }", "private void refresh(){\r\n if (!clientList.isEmpty()){\r\n clientList.clear();\r\n ...
[ "0.6852506", "0.6733786", "0.6558739", "0.64030707", "0.63764346", "0.62098825", "0.6191571", "0.6171221", "0.6163159", "0.6156423", "0.604587", "0.6026077", "0.60074294", "0.6003454", "0.5951748", "0.59326655", "0.589934", "0.58947426", "0.58701235", "0.5860714", "0.585755",...
0.0
-1
create a new ObservableList if the status is complete add to the new list refresh the table with that new list
public void buttonShowComplete(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refresh(){\r\n if (!clientList.isEmpty()){\r\n clientList.clear();\r\n clientList = FXCollections.observableArrayList(Client.clientList());\r\n } \r\n table.setItems(clientList);\r\n }", "private void updateList() {\r\n\t\tlistaSt...
[ "0.69541156", "0.67418545", "0.6659187", "0.66245246", "0.6616323", "0.63740027", "0.6322538", "0.6286075", "0.62810576", "0.6243838", "0.6221681", "0.62177384", "0.61917585", "0.61670446", "0.6122349", "0.60611796", "0.6020551", "0.60162175", "0.5995915", "0.59503037", "0.59...
0.0
-1
The status does not matter refresh the table with the full list
public void buttonShowAll(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "@Overri...
[ "0.6971798", "0.6927879", "0.6919166", "0.68758845", "0.68540573", "0.68252", "0.67662716", "0.67401385", "0.66920125", "0.6628855", "0.6619897", "0.6616309", "0.66036624", "0.6587312", "0.6569001", "0.6549429", "0.6497593", "0.64839894", "0.6463894", "0.6455426", "0.64418393...
0.0
-1
Changes title of the current tabbed list
public void buttonChangeTitle(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setNewTitle(int index)\r\n {\r\n debug(\"setNewTitle(\" + index + \") - on Tab Panel\");\r\n // Get a copy of the Old Title\r\n String oldTitle = tabPane.getTitleAt(index);\r\n String newTitle = null;\r\n\r\n // Now we want to present a Dialog box to get a new title\r\n newTitle =\r...
[ "0.7911703", "0.7094167", "0.70190626", "0.70076764", "0.70076764", "0.70076764", "0.699617", "0.69442785", "0.69442785", "0.69442785", "0.69442785", "0.69442785", "0.692548", "0.6916906", "0.68981093", "0.6883698", "0.6878927", "0.6765169", "0.6738618", "0.6730676", "0.67195...
0.0
-1
creates a new tab by creating a new list with the same format allows for management of multiple individual lists
public void buttonNewTab(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTabList() throws UnsupportedEncodingException {\n\n org.mortbay.html.List tabList =\n new org.mortbay.html.List(org.mortbay.html.List.Unordered);\n tabsDiv.add(tabList);\n Integer tabCount = 1;\n for (Map.Entry letterPairs : startLetterList.entrySet()) {\n Character s...
[ "0.7014253", "0.6830493", "0.64535975", "0.63001907", "0.6253615", "0.6199791", "0.6197488", "0.6100627", "0.6063619", "0.6033116", "0.60202396", "0.60181785", "0.60087997", "0.5959266", "0.5940151", "0.5932415", "0.5896115", "0.588985", "0.5865271", "0.5855612", "0.5846451",...
0.0
-1
export current tab table as text file
public void buttonSaveList(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void exporter(JTable tab, File file) {\n try {\r\n\r\n TableModel model = tab.getModel();\r\n FileWriter out = new FileWriter(file);\r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n out.write(model.getColumnName(i) + \"\\t\");\r\n }\r\n ...
[ "0.78402203", "0.6708421", "0.65944326", "0.6492275", "0.6345193", "0.6208206", "0.6186762", "0.61602825", "0.6151519", "0.61218804", "0.6113361", "0.6021478", "0.60178995", "0.598506", "0.58490646", "0.58111745", "0.57980233", "0.57969695", "0.5789193", "0.5747629", "0.57458...
0.0
-1
get external text file import that textfile into the table of the current tab
public void buttonLoadList(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void importFromFile(SpreadsheetTable focusOwner, UIController uiController) {\n\n List<List<String>> listString = null;\n try {\n listString = readFile();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(ImportExportTextLinkStrategy.class.ge...
[ "0.6307797", "0.61417466", "0.589032", "0.5837435", "0.5750064", "0.56651115", "0.56474", "0.56333834", "0.56274134", "0.56098247", "0.56009233", "0.55853033", "0.5585033", "0.5574829", "0.5519055", "0.55091506", "0.5454886", "0.54471415", "0.5380392", "0.5373215", "0.5357955...
0.0
-1
allows the removal of an existing list
public void buttonRemoveTab(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "public void removeList(String name){\n }", "void removeList(ShoppingList _ShoppingList);", "public void removeFriendList(FriendList list);", "public void remove();", "public void remove();", "public void remove();", "pub...
[ "0.8347426", "0.7573392", "0.73744196", "0.71535146", "0.71255326", "0.71255326", "0.71255326", "0.71255326", "0.71255326", "0.7080974", "0.7080974", "0.7080974", "0.7080974", "0.7080974", "0.69993085", "0.69882476", "0.6919713", "0.68652165", "0.6852938", "0.6845563", "0.683...
0.0
-1
End of Fragment Content
@Override protected void onCreate(Bundle savedInstanceState) { Log.d("LagIssue", "onCreate : MainActivity"); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_sliding_up); mPreferences = LocationAlarmApp.getPreferences(); ButterKnife.bind(this); Otto.register(this); setUpSlidingToolbar(); initializeAppBarLayout(); initializeAppIndexing(); initializeMapAd(); if (Build.VERSION.SDK_INT >= 21) { Window window = getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.setStatusBarColor(getResources().getColor(R.color.colorPrimaryDark)); } alarmListFragment(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void endBlock() {\n }", "protected void end() {\n \n \n }", "protected void end() {\n \t// theres nothing to end\n }", "public void visitEnd()\n\t{\n\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "@Override\r\n protected void end() {\r\n...
[ "0.7158591", "0.70298517", "0.70176643", "0.7015406", "0.69541097", "0.69411975", "0.6889573", "0.68842405", "0.68842405", "0.68842405", "0.68692726", "0.68692726", "0.68692726", "0.68692726", "0.68692726", "0.68692726", "0.68692726", "0.68692726", "0.68692726", "0.68692726", ...
0.0
-1
End of Fragment Content
private void initializeMapAd() { mAdView = new NativeExpressAdView(this); mAdView.setAdSize(new AdSize(320, 80)); mAdView.setAdUnitId(mPreferences.getString(RemoteConfigService.AD_UNIT_ID + 1, "ca-app-pub-9949935976977846/4866656411")); RelativeLayout.LayoutParams layoutParams = new RelativeLayout .LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT); RelativeLayout layout = new RelativeLayout(this); layout.setLayoutParams(layoutParams); layout.addView(mAdView); mMapAdView.addView(layout); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void endBlock() {\n }", "protected void end() {\n \n \n }", "protected void end() {\n \t// theres nothing to end\n }", "public void visitEnd()\n\t{\n\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "@Override\r\n protected void end() {\r\n...
[ "0.71608716", "0.7032762", "0.7020003", "0.7016494", "0.69571805", "0.6944313", "0.689252", "0.688734", "0.688734", "0.688734", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0.6872165", "0....
0.0
-1