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
Shows a progress Dialog to inform the user, that the data is loading
protected void onPreExecute() { super.onPreExecute(); mProgressDialogTeacher = new ProgressDialog(getActivity()); mProgressDialogTeacher.setTitle(getResources().getString(R.string.please_wait)); mProgressDialogTeacher.setMessage(getResources().getText(R.string.loading)); mProgressDialogTeacher.setInde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayLoader() {\n pDialog = new ProgressDialog(AddReviewActivity.this);\n pDialog.setMessage(\"Adding Review...Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "protected void showLoading()\n {\...
[ "0.78476673", "0.77792794", "0.7770803", "0.77284616", "0.77174586", "0.77064145", "0.75953937", "0.74246234", "0.7343368", "0.73152", "0.73025316", "0.7265254", "0.72640884", "0.72310704", "0.72310704", "0.7229667", "0.7212157", "0.7194204", "0.718282", "0.7150399", "0.71418...
0.0
-1
Connects the Adapter with the available Times and setup for the ItemClickListener
@Override protected void onPostExecute(Void result) { mProgressDialogTeacher.dismiss(); listAdapter = new TimeListViewAdapter(getActivity(),timesList); listView.setAdapter(listAdapter); listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initScheduleList(){\n final ListView schedView = (ListView) findViewById(R.id.schedule_list);\n schedView.setDivider(new ColorDrawable(getResources().getColor(R.color.DarkGray)));\n schedView.setDividerHeight(1);\n schedView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n\n ...
[ "0.66718006", "0.64708126", "0.62696445", "0.6135802", "0.6040333", "0.5911413", "0.58778626", "0.5871289", "0.58650124", "0.583116", "0.58255064", "0.5810699", "0.5709915", "0.5703771", "0.57030934", "0.56652653", "0.5657745", "0.5657115", "0.56484866", "0.5622642", "0.56165...
0.0
-1
Queries the Data and calculates the available Times
@Override protected Void doInBackground(Void... params) { tOccslots = new ArrayList<Integer>(); pOccslots = new ArrayList<Integer>(); for (int i = 0; i < teacherDateList.size(); i++){ ParseObject o = teacherDateList.get(i); tOccslots.add(o.getInt(Constants.SLOTID)); } for (int i = 0; i ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gettimes() {\n\t\tCursor c=mydb.rawQuery(\"SELECT * FROM timedata \", null);\n\t\t System.out.println(\" $$$$$$$$$$$$$$$$$$$$$$$ fetchdata after retriving completed @@@@@@@@@@@@@@@@@@@@@\");\n\t\t c.moveToFirst();\n\t\t \n\t\t if(c!=null)\n\t\t {\n\t\t\t do{\n\t\t\t\t \n\t\t\t\t int c1=c...
[ "0.6404318", "0.6113548", "0.597154", "0.5855078", "0.58462065", "0.57283896", "0.57074994", "0.5697564", "0.56827784", "0.56545657", "0.5649578", "0.5634623", "0.5628167", "0.5596652", "0.55912536", "0.5556516", "0.55443627", "0.55389655", "0.5515533", "0.55138755", "0.55036...
0.53580827
37
Saves the Appointment in the Database
@Override protected Void doInBackground(Void... params) { ParseObject appointment = new ParseObject(Constants.APPIONT); appointment.put(Constants.PARENTID, currentUser.getUsername()); appointment.put(Constants.TEACHER_FIRSTNAME,tFirstname); appointment.put(Constants.TEACHER_LASTNAME, t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveAppointment(Appointment appointment) {\n\t\tappointmentDao.saveAppointment(appointment);\n\t}", "public void saveAppointment(ActionEvent event) throws IOException {\n if(!validateInputFields()){\n return;\n }\n if(!validateTime()){\n return;\n }\n...
[ "0.82803345", "0.7423102", "0.7135298", "0.71218395", "0.70556784", "0.684306", "0.68258834", "0.68008184", "0.6734431", "0.66422147", "0.65336823", "0.648233", "0.6395109", "0.63889027", "0.6386995", "0.63261926", "0.625882", "0.6241928", "0.6238365", "0.6231999", "0.6174185...
0.5720673
38
Disables the ListView, notifies the User the Appointment has been saved
@Override protected void onPostExecute(Void result) { listView.setVisibility(View.INVISIBLE); Toast.makeText(getActivity(), getResources().getString(R.string.saved), Toast.LENGTH_LONG).show(); update.setVisibility(View.VISIBLE); update.setText(getResources().getString...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetAppointmentsToIgnore();", "void setNilAppointmentsToIgnore();", "@Override\n public void onYesClicked() {\n // Find the appointment in Firestore and delete.\n final AppointmentModel deleteAppt = appointmentList.get(deletePos);\n final String deleteApptDate = deleteAppt.getDate...
[ "0.63965803", "0.6396285", "0.5982803", "0.59711117", "0.59217095", "0.5872265", "0.58468074", "0.5802843", "0.5770678", "0.569619", "0.567992", "0.56554353", "0.5655134", "0.556987", "0.556443", "0.5560935", "0.5553365", "0.5549238", "0.5532732", "0.5516887", "0.55005366", ...
0.0
-1
~ Methods ////////////////////////////////////////////////////////////////// / Retorna o metodo padrao usado pelo classificador
public ClassificationMethod getDefaultMethod() { return defaultMethod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Objet getObjetAlloue();", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n ...
[ "0.6311656", "0.6256966", "0.6234219", "0.6192888", "0.61777544", "0.60843885", "0.6029465", "0.6029465", "0.6014396", "0.60131705", "0.5922746", "0.58956283", "0.58831084", "0.5838936", "0.5814527", "0.5803195", "0.58012605", "0.57777745", "0.57720774", "0.57715565", "0.5754...
0.0
-1
/ Altera parametros sobre o conjunto de treinamento.
public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "public Tipo visitParameter(DECAFParser.ParameterContext ctx){\r\n\t\tVarDec var =new VarDec(ctx.ID().getText(),tablaSimbolos.searchTipo(ctx.parameterType().getText()),0,position)...
[ "0.7264469", "0.6193878", "0.6159213", "0.6151153", "0.61139256", "0.602584", "0.601017", "0.59767133", "0.5925222", "0.5893322", "0.5831159", "0.5830932", "0.57233274", "0.57007414", "0.5687425", "0.5622903", "0.55916023", "0.5586486", "0.55829436", "0.55816", "0.5563801", ...
0.0
-1
/ Faz uma consulta de texto ao classificador e retorna as classes de treino rankeadas por similaridade.
public abstract Rank<String,String> query(String input) throws ClassificationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList getClassList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n String adj = \"\";\n String storingClass = \"\";\n HashSet classWithAttr = new HashSet();\n storingClassWi...
[ "0.6420132", "0.5693007", "0.54214406", "0.5391878", "0.53440577", "0.53380066", "0.53282964", "0.53170186", "0.52497566", "0.5196631", "0.51899666", "0.51744753", "0.5123479", "0.5110548", "0.50803566", "0.5072153", "0.5071871", "0.50340575", "0.5007779", "0.50064296", "0.49...
0.46769357
60
/ Verifica se o classificador suporta um dado metodo
public abstract boolean supports(ClassificationMethod method);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean semelhante(Assemelhavel obj, int profundidade) {\n\t\treturn false;\n\t}", "public boolean isPorDescuento();", "@Override\n\tpublic boolean podeReceber(Fornecivel e) {\n\t\treturn (e instanceof Agua || e instanceof Cereal) ? true : false;\n\t}", "protected void checkSubclass() {\n...
[ "0.61938894", "0.6105324", "0.60492164", "0.5867845", "0.5852899", "0.5852899", "0.5852899", "0.5828405", "0.5806432", "0.57939774", "0.57422334", "0.57411283", "0.5721123", "0.5712791", "0.56720465", "0.56720465", "0.56720465", "0.56715024", "0.56715024", "0.56715024", "0.56...
0.0
-1
/ Fecha o classificador, liberando quaisquer recursos associados, como conexoes de rede e de banco de dados
public abstract void close();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object buscaRegistro(BaseJDBC baseJDBC, Class<?> classe, Object id, int profundidade, Class<?>[] classes, int classesVerifica, List<OMObtido> jaObtidos) throws Exception\r\n\t{\r\n\t\tObject objetoAux, idAux;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor(int i=0; i<jaObtidos.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tobjet...
[ "0.6042955", "0.5945645", "0.5934166", "0.56540596", "0.56423986", "0.5622452", "0.5542873", "0.552419", "0.54863644", "0.5395291", "0.53906995", "0.53854156", "0.5353121", "0.53522885", "0.5348898", "0.5336185", "0.5315386", "0.5301353", "0.52576095", "0.52554345", "0.525446...
0.0
-1
public static final String MyPREFERENCES = "MyPrefs"; SharedPreferences sharedPreferences;
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_question); // try { // Uri path = Uri.parse("android.resource://"+getPackageName()+"/raw/alarm.mp3"); // // The line below will set it as a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}", "SharedPreferences mo117960a();", "private static SharedPreferences ...
[ "0.74758506", "0.74176013", "0.73915184", "0.73158085", "0.7298986", "0.7271099", "0.7128615", "0.7128299", "0.7112983", "0.70345545", "0.7013117", "0.6963434", "0.68871284", "0.6848851", "0.68098545", "0.67744637", "0.67543167", "0.67307675", "0.67276144", "0.67212087", "0.6...
0.0
-1
editor = sharedPreferences.edit(); set.addAll(alA); editor.putStringSet("selected",set); editor.apply();
@Override public void onClick(View v) { j=0; dataBaseClass.updateData1(b1.getText().toString(),q.getText().toString()); Intent i=new Intent(Question.this,Congratulation.class); // i.putExtra("json",al); // i.putExtra("slectedAnswe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void storeDataForCashePrefrenceArray(SharedPreferences spinnerPrefs, Set<String> arrayOFSpinnersValue){//for new version\n SharedPreferences.Editor prefsEditor = spinnerPrefs.edit();\n prefsEditor.putStringSet(\"inputspinner_prefrance_set_for_cashe\",arrayOFSpinnersValue);\n prefsEdito...
[ "0.71887684", "0.6430479", "0.6378629", "0.6097538", "0.6082793", "0.5980519", "0.59583193", "0.59320384", "0.5886672", "0.5881308", "0.5740285", "0.57278395", "0.5718536", "0.570034", "0.56608903", "0.56554186", "0.5612338", "0.55823654", "0.5550388", "0.5547222", "0.5547060...
0.0
-1
editor = sharedPreferences.edit(); set.addAll(alA); editor.putStringSet("selected",set); editor.apply();
@Override public void onClick(View v) { j=0; dataBaseClass.updateData1(b2.getText().toString(),q.getText().toString()); Intent i=new Intent(Question.this,Congratulation.class); // i.putExtra("json",al); // i.putE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void storeDataForCashePrefrenceArray(SharedPreferences spinnerPrefs, Set<String> arrayOFSpinnersValue){//for new version\n SharedPreferences.Editor prefsEditor = spinnerPrefs.edit();\n prefsEditor.putStringSet(\"inputspinner_prefrance_set_for_cashe\",arrayOFSpinnersValue);\n prefsEdito...
[ "0.71887684", "0.6430479", "0.6378629", "0.6097538", "0.6082793", "0.5980519", "0.59583193", "0.59320384", "0.5886672", "0.5881308", "0.5740285", "0.57278395", "0.5718536", "0.570034", "0.56608903", "0.56554186", "0.5612338", "0.55823654", "0.5550388", "0.5547222", "0.5547060...
0.0
-1
ArrayBlockingQueue is a bounded, blocking queue that stores the elements internally in an array. That it is bounded means that it cannot store unlimited amounts of elements. There is an upper bound on the number of elements it can store at the same time. You set the upper bound at instantiation time, and after that it ...
public static void main(String[] args) { BlockingQueue<String> blockingQueue1 = new ArrayBlockingQueue<String>(3); // fair if true then queue accesses for threads blocked on insertion or // removal, are processed in FIFO order; if false the access order is // unspecified Boolean fair = Boolean.TRUE; Blocki...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws Exception{\n\n BlockingQueue<String> blockingQueue = new ArrayBlockingQueue<>(3);\n\n /*System.out.println(blockingQueue.offer(\"a\"));\n System.out.println(blockingQueue.offer(\"b\"));\n System.out.println(blockingQueue.offer(\"c\"));\n ...
[ "0.70005214", "0.68575525", "0.6573968", "0.64369243", "0.63790804", "0.614486", "0.60996467", "0.60994685", "0.6086728", "0.60562587", "0.6022978", "0.6015099", "0.5993644", "0.59777665", "0.5970756", "0.5964485", "0.59313375", "0.59029835", "0.58971953", "0.58886117", "0.58...
0.0
-1
Created by thuongle on 2/13/16.
interface SplashView extends ErrorView { void onSessionRestore(); void onNoSessionAvailable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.60841376", "0.6027869", "0.59372777", "0.5914552", "0.5896505", "0.58567804", "0.58567804", "0.5834579", "0.57930845", "0.5791396", "0.5744119", "0.5742035", "0.5740049", "0.5727408", "0.5724265", "0.5709778", "0.5709778", "0.5709778", "0.5709778", "0.5709778", "0.5700175"...
0.0
-1
Creates new form PLGSingleLogSetup
public PLGSingleLogSetup(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic void create() {\n\t\t\tsuper.create();\r\n\t\t\tsuper.getOKButton().setEnabled(false);\r\n\t\t\tsuper.setTitle(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t\tsuper.setMessage(Messages.MoveUnitsWizardPage1_Select_a_name_source_folder_and_a_);\r\n\t\t\tsuper.getShell().setText(Messages.M...
[ "0.575105", "0.5576772", "0.5491637", "0.5470512", "0.54480445", "0.5433337", "0.5415718", "0.54055345", "0.53446347", "0.5260506", "0.52402574", "0.5227532", "0.5226601", "0.52256787", "0.52098185", "0.52085334", "0.5194417", "0.5186543", "0.5155354", "0.5149526", "0.514722"...
0.5559537
2
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jBut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
TODO Autogenerated method stub
@Override public void requestLaw() { System.out.println("xiaoming-requestLaw"); }
{ "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 void requestLawyer() { System.out.println("xiaoming-requestLawyer"); }
{ "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 void requestNews() { System.out.println("xiaoming-requestNews"); }
{ "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
Takes user input for new game name and adds it to a database which fills the game combobox in the main form
@Override public void actionPerformed(ActionEvent e) { if (! newGame.getText().equals("")) { String gameName = newGame.getText(); controller.addGame(gameName); ArrayList<String> allGames = controller.getAllGames(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(nul...
[ "0.6626234", "0.65499943", "0.6454329", "0.63891554", "0.62386435", "0.6224571", "0.61019146", "0.59277654", "0.59257334", "0.5898524", "0.5887485", "0.5880534", "0.58746445", "0.58703446", "0.5861079", "0.5850037", "0.5818781", "0.580524", "0.57989913", "0.57965964", "0.5791...
0.7518822
0
overwride for heather's save method
public static void save() { Game.save(UI.askNgetString("Filename for this save file?")+".xml"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n \n }", "@Override\n public void save()\n {\n \n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n public void save() {\n\n }", "@Override\n public void Save() {\n\t \...
[ "0.79958236", "0.7960741", "0.7924046", "0.7924046", "0.7840219", "0.78014463", "0.77847695", "0.77847695", "0.75535935", "0.7425824", "0.72900814", "0.72602797", "0.7230907", "0.7220363", "0.7215976", "0.7167899", "0.71312314", "0.7128874", "0.7102135", "0.7065012", "0.70418...
0.0
-1
will return list of files from save directory
public static ArrayList<String> availableSaveFiles() { String path = "saveFiles/"; ArrayList<String> files = new ArrayList<String>(); File folder = new File(path); //if the save folder exists if (folder.exists()) { //get list of XML files String[] listOfFiles = folder.list(new File...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Path> getFiles();", "public void getImagesFromFolder() {\n File file = new File(Environment.getExternalStorageDirectory().toString() + \"/saveclick\");\n if (file.isDirectory()) {\n fileList = file.listFiles();\n for (int i = 0; i < fileList.length; i++) {\n ...
[ "0.73658234", "0.7190803", "0.71216077", "0.7020431", "0.69385356", "0.68878436", "0.68636", "0.6826849", "0.6811302", "0.6802398", "0.67538", "0.67076105", "0.66888523", "0.6646149", "0.6600738", "0.6592331", "0.65622777", "0.6546946", "0.65313995", "0.6526533", "0.6517982",...
0.81441617
0
get all players from the game who are playing
public static ArrayList<Player> getAllPlayingPlayers() { // Anton fix: Would copy the list itself, we want just the items. // Remove/add manipulations would affect original list /* * ArrayList<Player> all = players; for (Player player: all) { if * (!player.isPlaying()) { all.remove(player); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Player> getPlayers();", "public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}", "List<Player> findAllPlayers();", "static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}", "public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the...
[ "0.786035", "0.77785146", "0.76723725", "0.7611984", "0.75849706", "0.7564791", "0.7549002", "0.75457036", "0.753281", "0.751754", "0.7506504", "0.7462838", "0.7389344", "0.73309636", "0.7322235", "0.7290806", "0.72892827", "0.72892827", "0.7277799", "0.72663885", "0.7221089"...
0.7203876
22
get all who are playing except yourself
public static ArrayList<Player> getOtherPlayers() { ArrayList<Player> all = getAllPlayingPlayers(); all.remove(getCurrentPlayer()); return all; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Player> getOtherPlayers() {\r\n\t\tArrayList<Player> output = new ArrayList<Player>();\r\n\t\toutput.addAll(players);\r\n\t\toutput.remove(getWhoseTurn() - 1);\r\n\t\treturn output;\r\n\t}", "public ArrayList<Entity> getAllOtherEntities(Player player)\n {\n ArrayList<Entity> entitiesWi...
[ "0.6630963", "0.6420405", "0.6272185", "0.6252382", "0.62237585", "0.6131486", "0.6039991", "0.59999454", "0.598598", "0.5963526", "0.5928285", "0.5881473", "0.58479387", "0.583317", "0.58060205", "0.5755942", "0.5721696", "0.5720567", "0.5700077", "0.56671005", "0.5627504", ...
0.656451
1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { File f1=new File("E:\\py\\img\\1.jpg"); File f2=new File("C:\\Users\\meng\\Desktop\\1.jpg"); File f3=new File("C:\\Users\\meng\\Desktop\\liaotian.txt"); File f4=new File("C:\\Users\\meng\\Desktop\\country.txt"); cp(f1, f2); //2 liaot...
{ "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
private static ArrayList<CIty> duxushuji(File file) throws IOException { ArrayList<CIty>city=new ArrayList<>(); InputStreamReader isr = new InputStreamReader(new FileInputStream(file), "GBK"); BufferedReader br=new BufferedReader(isr); String str; while((str=br.readLine())!=null){ String[] strings=str....
{ "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
private static void chaxun(ArrayList<CIty> citys) { Scanner scanner=new Scanner(System.in); while(true){ System.out.println("您是要查询年份1,举办地2,还是冠军国3,退出请输入0:"); String i2=scanner.next(); int i=Integer.parseInt(i2); switch (i) { case 1: i=scanner.nextInt(); System.out.println(chaxunni...
{ "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
private static CIty chaxunguanjunguo(String guanjunguo, ArrayList<CIty> citys) { Iterator it=citys.iterator(); while(it.hasNext()){ CIty c=(CIty)it.next(); if(c.winner.equals(guanjunguo)) return c; } return null; }
{ "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
private static CIty chaxunjibandi(String jibandi, ArrayList<CIty> citys) { Iterator it=citys.iterator(); while(it.hasNext()){ CIty c=(CIty)it.next(); if(c.place.equals(jibandi)) return c; } return null; }
{ "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
private static CIty chaxunniangen(int i, ArrayList<CIty> citys) { Iterator it=citys.iterator(); while(it.hasNext()){ CIty c=(CIty)it.next(); if(c.year==i) return c; } return null; }
{ "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
private static void liaotian(File f3) throws IOException { System.out.println("输入聊天,quit退出"); FileWriter fw=new FileWriter(f3); BufferedWriter bw=new BufferedWriter(fw); int i=0; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(true){ SimpleDateFormat sdf=new SimpleDate...
{ "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
private static void cp(File f1,File f2) throws IOException{ FileInputStream fi=new FileInputStream(f1); FileOutputStream fo=new FileOutputStream(f2); BufferedOutputStream bof=new BufferedOutputStream(fo); BufferedInputStream bis=new BufferedInputStream(fi); byte[] buffer=new byte[1024]; int off=0; 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
delete the temp file
@Override public void handle(AsyncResult<Buffer> read) { file.delete(); // parse JsonArray json = new JsonArray(read.result().toString()); // iterate new As...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }", "private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }", "private void deleteTempFile...
[ "0.8445722", "0.79085255", "0.7571688", "0.75580424", "0.7280862", "0.7249328", "0.7185232", "0.71827567", "0.71453154", "0.7089127", "0.7036948", "0.70013016", "0.6990867", "0.6921979", "0.6831977", "0.6827458", "0.6674217", "0.66469383", "0.6632556", "0.6599191", "0.6578218...
0.0
-1
Retrieves ExternalFileResource based on accessToken
ExternalFileResource getExternalFileResourceByAccessToken(String accessToken);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FileReference getFile(String fileName);", "OauthResource getResourceByIllegalUri(String testId);", "com.google.apps.drive.activity.v2.DriveItem.DriveFile getDriveFile();", "private static String getAccessToken() throws IOException {\n\t\t \t\n\t\t GoogleCredential googleCredential = GoogleCredential\n\t ...
[ "0.56284225", "0.55323195", "0.5333086", "0.53190666", "0.5270437", "0.5264174", "0.52444637", "0.5242371", "0.5216223", "0.521418", "0.51675713", "0.5139618", "0.5129586", "0.5112403", "0.5112403", "0.50662047", "0.5062632", "0.5041076", "0.5029968", "0.5011799", "0.50065047...
0.8996006
0
Generates an accessToken before persisting the object.
String saveExternalFileResource(ExternalFileResource externalFileResource);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String generateAccessToken() {\n return accessTokenGenerator.generate().toString();\n }", "public void generateAccessToken(OAuthAccessor accessor)\n throws OAuthException {\n\n try {\n // generate oauth_token and oauth_secret\n // generate token and secret based...
[ "0.7162241", "0.6917269", "0.63389134", "0.6132236", "0.60629624", "0.59942955", "0.5966113", "0.5965403", "0.5965403", "0.59470993", "0.5944969", "0.58933395", "0.58697015", "0.5828162", "0.5826124", "0.5826124", "0.5816684", "0.5724835", "0.5723002", "0.57149297", "0.567527...
0.0
-1
Creates an empty SignalCanvas
public SignalCanvas() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DummyCanvas() {\n super(null);\n // super(null); ----------------ADDED TO COMPILE -----------------------------------------\n }", "private void newCanvas() {\n\t\timgCanvas = new ImageCanvas(1000, 563);\n\t\t//canvasJP.add(imgCanvas);\n\t}", "public SignalCanvas(DiscreteSignal sig) throws Ba...
[ "0.6394215", "0.6168345", "0.6120439", "0.6115736", "0.6090836", "0.60606873", "0.60246384", "0.59174615", "0.57534385", "0.5714147", "0.5687733", "0.56735426", "0.55741", "0.55404425", "0.5537213", "0.5511852", "0.55009925", "0.5485765", "0.5448705", "0.5444045", "0.5441337"...
0.80231315
0
Creates an SignalCanvas from a DiscreteSignal
public SignalCanvas(DiscreteSignal sig) throws BadSignalException { super(); image = getJavaSignal(sig); jsignal = sig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SignalCanvas(ComplexSignal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "public SignalCanvas() {\n\t\tsuper();\n\t}", "public SignalCanvas(RealSignal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal...
[ "0.65946555", "0.6565148", "0.63817954", "0.6296921", "0.51160556", "0.50308233", "0.47489682", "0.47182837", "0.46774516", "0.46199754", "0.45667312", "0.45539594", "0.45389864", "0.45331582", "0.45287508", "0.45013097", "0.4485337", "0.44822353", "0.4480439", "0.44769558", ...
0.7059057
0
Creates an SignalCanvas from a RealSignal
public SignalCanvas(RealSignal sig) throws BadSignalException { super(); image = getJavaSignal(sig); jsignal = sig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SignalCanvas(ComplexSignal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "public SignalCanvas(jigl.signal.Signal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "public SignalCanvas(Di...
[ "0.721669", "0.69806826", "0.6918171", "0.6763104", "0.522743", "0.50391686", "0.50080687", "0.4961567", "0.48109052", "0.48007402", "0.47682512", "0.47537544", "0.4685437", "0.46769032", "0.46706665", "0.46673805", "0.46628955", "0.46402848", "0.4626992", "0.45912638", "0.45...
0.7324956
0
Creates an SignalCanvas from a ComplexSignal
public SignalCanvas(ComplexSignal sig) throws BadSignalException { super(); image = getJavaSignal(sig); jsignal = sig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SignalCanvas() {\n\t\tsuper();\n\t}", "public SignalCanvas(RealSignal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "public SignalCanvas(DiscreteSignal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsigna...
[ "0.65155363", "0.64424944", "0.6442057", "0.6236634", "0.48634028", "0.4702932", "0.47002763", "0.46908605", "0.46856922", "0.46693552", "0.46556386", "0.4599493", "0.45981517", "0.4597571", "0.45925853", "0.45730022", "0.45677686", "0.4562207", "0.45182145", "0.45164275", "0...
0.7481427
0
Creates an SignalCanvas from a JIGL Signal
public SignalCanvas(jigl.signal.Signal sig) throws BadSignalException { super(); image = getJavaSignal(sig); jsignal = sig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SignalCanvas(ComplexSignal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "public SignalCanvas(RealSignal sig) throws BadSignalException {\n\t\tsuper();\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "public SignalCanvas(DiscreteSi...
[ "0.6845584", "0.66512764", "0.66418993", "0.6608965", "0.53179437", "0.51046985", "0.5008996", "0.4992387", "0.4948676", "0.49334797", "0.4898513", "0.47639915", "0.47444493", "0.47139615", "0.47115055", "0.46704572", "0.46628267", "0.46434745", "0.46397376", "0.46279052", "0...
0.69019693
0
Sets the Java signal to sig and jsignal to null
public void setSignal(java.awt.Image sig) { image = sig; jsignal = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSignal(jigl.signal.Signal sig) throws BadSignalException {\n\t\timage = getJavaSignal(sig);\n\t\tjsignal = sig;\n\t}", "void signal();", "public void setSignal(double signal) {_signal = signal;}", "public jigl.signal.Signal getSignal() {\n\t\treturn jsignal;\n\t}", "public SignalCanvas(jigl....
[ "0.7305969", "0.6486004", "0.6327156", "0.59703517", "0.5926034", "0.58333343", "0.57159853", "0.5707469", "0.5681929", "0.55960566", "0.55717635", "0.5458357", "0.5445538", "0.53355086", "0.52972096", "0.52671075", "0.51662356", "0.5160308", "0.5154251", "0.5144623", "0.5136...
0.7313587
0
Sets the Java signal to sig and jsignal to sig
public void setSignal(jigl.signal.Signal sig) throws BadSignalException { image = getJavaSignal(sig); jsignal = sig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSignal(java.awt.Image sig) {\n\t\timage = sig;\n\t\tjsignal = null;\n\t}", "public void setSignal(double signal) {_signal = signal;}", "void signal();", "public void setJcmdsig(Integer jcmdsig) {\n this.jcmdsig = jcmdsig;\n }", "public SignalCanvas(jigl.signal.Signal sig) throws Ba...
[ "0.7372023", "0.67595184", "0.6429641", "0.6291945", "0.6125371", "0.6117031", "0.60318506", "0.5778602", "0.5579635", "0.55537236", "0.5499173", "0.5438174", "0.5394025", "0.5342947", "0.5319742", "0.53191036", "0.5293073", "0.5291116", "0.5269681", "0.5263827", "0.52187836"...
0.7748346
0
Returns the JIGL signal
public jigl.signal.Signal getSignal() { return jsignal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getSignal() {return _signal;}", "java.lang.String getSignal();", "public int getAudioJittcomp();", "public Float getLsjg() {\n return lsjg;\n }", "Signal getSignal();", "public double getSignal(){\n\t\t\treturn SIGNAL; //a constant for olfactory\n\t\t}", "public java....
[ "0.6373346", "0.60480154", "0.6039412", "0.6018302", "0.5992645", "0.5980137", "0.592029", "0.5587014", "0.5525518", "0.5481695", "0.545074", "0.5440513", "0.539756", "0.5316811", "0.53120774", "0.5289503", "0.52628815", "0.5227565", "0.5209528", "0.5202448", "0.5151488", "...
0.66679466
0
Returns the Java signal
public java.awt.Image getJavaSignal() { return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSignal();", "public jigl.signal.Signal getSignal() {\n\t\treturn jsignal;\n\t}", "Signal getSignal();", "@Override\n public int getSignal() {\n return signal & 0xFF;\n }", "public double getSignal() {return _signal;}", "public double getSignal(){\n\t\t\treturn SIGNAL; ...
[ "0.75119716", "0.75023705", "0.7401125", "0.72095406", "0.7038541", "0.68577415", "0.66647995", "0.6616708", "0.6445268", "0.62512857", "0.6202227", "0.6183916", "0.6096247", "0.59030616", "0.5887211", "0.58457", "0.58014685", "0.57796997", "0.5777481", "0.5653654", "0.564330...
0.70699304
4
Returns an instance of Graphics that, when modified, modifies the Java signal
public Graphics setOffScreen() { java.awt.Image tempSignal; Graphics g; tempSignal = image; image = this.createImage(image.getWidth(this), image.getHeight(this)); g = image.getGraphics(); g.drawImage(tempSignal, 0, 0, this); return g; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawOn(Graphics g);", "public Graphics getGraphics()\n\t{\n\t\treturn g;\n\t}", "public Graphics2D createGraphics() {\n\treturn recorder.createGraphics();\n }", "private void doDrawing(Graphics g) {//Void function takes in g from Old graphics class\r\n\r\n Graphics2D g2d = (Graphics2D) ...
[ "0.608085", "0.6044968", "0.59459364", "0.5934204", "0.5930969", "0.58749956", "0.58290565", "0.580177", "0.578292", "0.57730746", "0.5766495", "0.5754581", "0.57305694", "0.57305694", "0.5729031", "0.5721121", "0.571961", "0.57030946", "0.5698589", "0.5691786", "0.5688943", ...
0.5499092
54
Returns an instance of Graphics that, when modified, modifies the Java signal
public Graphics setOffScreen(double xfactor, double yfactor) { java.awt.Image tempSignal; Graphics g; tempSignal = image; image = this.createImage((int) (image.getWidth(this) * xfactor), (int) (image .getHeight(this) * yfactor)); g = image.getGraphics(); g.drawImage(tempSignal, 0, 00, (int) (tempSign...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawOn(Graphics g);", "public Graphics getGraphics()\n\t{\n\t\treturn g;\n\t}", "public Graphics2D createGraphics() {\n\treturn recorder.createGraphics();\n }", "private void doDrawing(Graphics g) {//Void function takes in g from Old graphics class\r\n\r\n Graphics2D g2d = (Graphics2D) ...
[ "0.608085", "0.6044968", "0.59459364", "0.5934204", "0.5930969", "0.58749956", "0.58290565", "0.580177", "0.578292", "0.57730746", "0.5766495", "0.5754581", "0.57305694", "0.57305694", "0.5729031", "0.5721121", "0.571961", "0.57030946", "0.5698589", "0.5691786", "0.5688943", ...
0.0
-1
Returns the signal width.
public int imWidth() { return image.getWidth(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SVGLength getWidth() {\n return width;\n }", "public double getBandWidth() {\n\t\treturn bw * _mySampleRate;\n\t}", "public double getWidth() {\n\t\t\treturn width.get();\n\t\t}", "public double getWidth()\r\n {\r\n return width;\r\n }", "public double getWidth() {\n\t\treturn...
[ "0.72678244", "0.72067946", "0.7104305", "0.70893806", "0.70602703", "0.70602703", "0.70602703", "0.705492", "0.70259553", "0.7016144", "0.70130754", "0.70130754", "0.7007495", "0.7005328", "0.69977075", "0.6976062", "0.6976062", "0.6976062", "0.69513476", "0.6936312", "0.692...
0.0
-1
Return the signal height.
public int imHeight() { return image.getHeight(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SVGLength getHeight() {\n return height;\n }", "public double getHeight() {\n\t\tdouble height = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn height;\n\t}", "public double getHeight() {\n return this.height * 0.393701;\n }", "public doubl...
[ "0.76170754", "0.75999933", "0.7559537", "0.75204676", "0.74751854", "0.74751854", "0.7452665", "0.74282455", "0.74280673", "0.7425682", "0.7425682", "0.7425682", "0.7425682", "0.7425682", "0.7425682", "0.7425527", "0.74189025", "0.7418176", "0.7415727", "0.7394836", "0.73948...
0.0
-1
Takes a jigl signal as input, converts it to a java signal, and returns the java signal.
public java.awt.Image getJavaSignal(jigl.signal.Signal sig) throws BadSignalException, RuntimeException { // int w = 0; // int h = 0; java.awt.Image jsig = null; if (sig instanceof DiscreteSignal) { int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; DiscreteSignal nsig = SignalConverter.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public jigl.signal.Signal getSignal() {\n\t\treturn jsignal;\n\t}", "Signal getSignal();", "public interface SignalSource {\r\n\t\r\n\t/**\r\n\t * Returns the number of output signals from the device\r\n\t * @return the number of signals (>0)\r\n\t */\r\n\tpublic int getNumberOfSignals();\r\n\t\r\n\t/**\r\n\t ...
[ "0.5840298", "0.5707748", "0.54359674", "0.54202026", "0.53775877", "0.5237163", "0.51701444", "0.51438034", "0.5085942", "0.5060863", "0.49871716", "0.49814418", "0.49784333", "0.48777115", "0.48399922", "0.48121732", "0.48044103", "0.4802801", "0.4746517", "0.4745024", "0.4...
0.6444465
0
Repaints the SignalCanvas (including the selection box)
public void update(Graphics g) { java.awt.Image i = image; g.drawImage(i, 0, 0, this); // Graphics gr = this.getGraphics(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void repaint(Object canvas) {\r\n {\r\n }\r\n\t}", "public void requestRepaint() {\n }", "private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSel...
[ "0.68908113", "0.6839978", "0.681272", "0.6766282", "0.6724262", "0.67147416", "0.6602551", "0.6600405", "0.6600405", "0.6596314", "0.6524767", "0.64863616", "0.6466504", "0.64601666", "0.64580745", "0.64294666", "0.6412252", "0.6387619", "0.638531", "0.6349384", "0.6322872",...
0.0
-1
Overridden for smoother repainting
public void paint(Graphics g) { update(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void repaint() {}", "@Override\r\n public void repaint() {\r\n }", "public void repaint() {\n\n\t}", "public void repaint() {\n\t\n}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\n\...
[ "0.790082", "0.7897195", "0.78200597", "0.7687296", "0.76516", "0.76516", "0.7531074", "0.7462827", "0.74002635", "0.7382811", "0.73441994", "0.7326387", "0.72372144", "0.7165742", "0.71601546", "0.70532733", "0.7047155", "0.7026", "0.69667655", "0.6892684", "0.6850381", "0...
0.0
-1
A function for measuring the distance between two points. Should have the property that the closer two points are(lower distance) the more similary they should be(high similarity).
public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}", "double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math...
[ "0.8161882", "0.7662657", "0.76057786", "0.7579894", "0.75556356", "0.7545719", "0.7517162", "0.7495556", "0.74934715", "0.74779147", "0.7475038", "0.7461489", "0.7391188", "0.7379745", "0.7315681", "0.7314565", "0.7308651", "0.7262984", "0.72589946", "0.7223328", "0.7215695"...
0.0
-1
helper method uses the main thread to display a toast we use this because if this class is used by a Service as opposed to an Activity, we can't access the UI thread in the normal way using RunOnUIThread
static void displayToast(Handler handler, final Context con, final String text, final int toast_length){ handler.post(new Runnable(){ public void run(){ Toast.makeText(con, text, toast_length).show(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }", "private void showToast(final String message) {\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast...
[ "0.7703167", "0.711321", "0.70748967", "0.6994946", "0.6828141", "0.6824016", "0.6822189", "0.67576534", "0.6693088", "0.6669214", "0.66351193", "0.66296947", "0.66044414", "0.6599782", "0.6571704", "0.65674704", "0.6564199", "0.65632594", "0.6562842", "0.6558089", "0.6542328...
0.65359896
21
shows alert dialog box if user tries to log in again while BackgroundVideoRecorder is already running
static void showAlert(final Context con, final String title, final String msg){ AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(con); // set title alertDialogBuilder.setTitle(title); alertDialogBuilder.setMessage(msg).setCancelable(true) .setPositiveButton("OK", new DialogInterface.On...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onVideoRecordingStarted() {\n this.mUI.unlockCaptureView();\n }", "public void onConnectSpamDone() {\n loggingIn = false;\n }", "public void run() {\n onLoginSuccess(email,password);\n // onLoginFailed();\n pro...
[ "0.590358", "0.5834575", "0.57921624", "0.5781068", "0.57716084", "0.5745311", "0.57313454", "0.5718383", "0.5686224", "0.5684335", "0.56688637", "0.56509095", "0.5642931", "0.56266356", "0.5620162", "0.5619801", "0.56107515", "0.55890703", "0.5582558", "0.55816936", "0.55714...
0.0
-1
TODO Autogenerated method stub Do something
@Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); }
{ "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\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularF...
[ "0.6900981", "0.67433226", "0.65702623", "0.6540594", "0.65208787", "0.6479393", "0.64583063", "0.64583063", "0.6413181", "0.6403888", "0.6366576", "0.63625085", "0.6344666", "0.63431835", "0.6335929", "0.630386", "0.62894225", "0.62588394", "0.6248151", "0.6248151", "0.62481...
0.0
-1
creates Map of UUID's that we will monitor. Used to send to the beaconManager class
static Map<String, Boolean> getUUIDMap(){ Map<String, Boolean> m = new HashMap<String, Boolean>(); m.put(Config.DYNAMIC_PROXIMITY_UUID, false); m.put(Config.STATIC_PROXIMITY_UUID, false); return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<UUID, TimeRange> getUUIDToTimeRange() {\n return new HashMap<>(uuidToTimeRange);\n }", "protected abstract Map<String, Serializable> getEventKeyAndIdMap();", "static Map<String, Handlers> getIntentMap()\n\t{\n\t\tMap<String, Handlers> h_map = new HashMap<>();\n\t\t\n\t\t\n\t\th_map.put (AD...
[ "0.62543315", "0.5838957", "0.57187235", "0.5671702", "0.5651134", "0.5644933", "0.5623488", "0.5586189", "0.55683845", "0.5466256", "0.5433152", "0.5386846", "0.53817225", "0.5371471", "0.5370864", "0.5348115", "0.5342811", "0.5340341", "0.53379476", "0.53145385", "0.5287910...
0.7413609
0
Created by JHJ on 16/5/6.
public interface DailyFightGroupOrderReportService { /** * 返回导出的数据 * @param startTime * @param endTime * @return */ List<List<Object>> listFightGroupOrderReport(Date startTime,Date endTime); }
{ "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}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.59396666", "0.584825", "0.584423", "0.5815841", "0.5756201", "0.5744074", "0.5744074", "0.57268506", "0.57099104", "0.5682032", "0.5681654", "0.56688213", "0.56316525", "0.56312114", "0.56285024", "0.5626441", "0.56192595", "0.5616951", "0.56153584", "0.5605903", "0.560274...
0.0
-1
Creates new form result
public Main() { initComponents(); makeDirLookup(); ta.setEditable(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "FORM createFORM();", "@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n...
[ "0.7062249", "0.66080445", "0.6360564", "0.6012686", "0.58830255", "0.58358514", "0.57911235", "0.57883996", "0.57724637", "0.568328", "0.5680012", "0.5667168", "0.5652385", "0.562008", "0.55996865", "0.5592002", "0.5568738", "0.54828495", "0.5463475", "0.54354674", "0.542723...
0.0
-1
by default don't resolve
public Participant getResolvedPerformer() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void doResolve() {\n\r\n\t}", "void resolve();", "public abstract void resolve();", "@Override\n public abstract boolean needsResolving();", "public abstract String resolve();", "public void aboutToResolve(Scope scope) {\n\t// default implementation: do nothing\n}", "@Overri...
[ "0.7512587", "0.7472704", "0.7409367", "0.7193143", "0.69706106", "0.65462303", "0.6390637", "0.62278944", "0.5959088", "0.59532493", "0.59225833", "0.5873377", "0.5858102", "0.5752156", "0.57277477", "0.5641914", "0.5626848", "0.5625155", "0.55905807", "0.5575204", "0.555510...
0.0
-1
conditional performers never supports departments
public boolean definesDepartmentScope() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void reviewDeptPolicies() {\n if(metWithHr && metDeptStaff) {\n reviewedDeptPolicies = true;\n } else {\n System.out.println(\"Sorry, you cannot review \"\n + \" department policies until you have first met with HR \"\n + \"and then ...
[ "0.5946511", "0.5713696", "0.5622759", "0.5609635", "0.5543094", "0.5515369", "0.5476604", "0.5398488", "0.53876656", "0.537685", "0.5354205", "0.5339311", "0.53305715", "0.5308181", "0.5292849", "0.52890956", "0.5276732", "0.5247835", "0.5236791", "0.52081984", "0.51963353",...
0.6130181
0
conditional performers are never scoped
public boolean isDepartmentScoped() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasIsPerformOf();", "private static UnaryPredicate bepred() {\n return new UnaryPredicate() {\n public boolean execute(Object o) {\n\tif (o instanceof BulkEstimate) {\n\t return ((BulkEstimate)o).isComplete();\n }\n\treturn false;\n }\n };\n }", "@Override\n\tprotected Produced...
[ "0.56825435", "0.55225253", "0.54152435", "0.5385247", "0.5376429", "0.5338857", "0.5325305", "0.5324536", "0.53067684", "0.5298179", "0.52637166", "0.52374524", "0.5195529", "0.51865506", "0.5186368", "0.5165001", "0.5150288", "0.514736", "0.5138366", "0.51203966", "0.511753...
0.0
-1
Populates the app bar with the menu.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, menu); return super.onCreateOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplication...
[ "0.69491893", "0.6706855", "0.6687225", "0.66856635", "0.66389626", "0.6597113", "0.6563062", "0.65503067", "0.6499654", "0.6467342", "0.64489", "0.64408606", "0.6435216", "0.6426224", "0.6425208", "0.64227134", "0.6413359", "0.6395337", "0.6378128", "0.6368701", "0.63636744"...
0.0
-1
Handles user clicks on menu items.
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_geolocate: // COMMENTED OUT UNTIL WE DEFINE THE METHOD // Present the current place picker pickCurrentPlace(); return true...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onMenuItemClicked();", "public void menuItemClicked( Menu2DEvent e );", "public void menuClicked(MenuItem menuItemSelected);", "void clickAmFromMenu();", "void clickFmFromMenu();", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }", ...
[ "0.78072983", "0.7701913", "0.76856875", "0.75205016", "0.7159665", "0.71325016", "0.7004904", "0.6941886", "0.6938922", "0.69209075", "0.6865735", "0.68649286", "0.6857169", "0.6857169", "0.6847913", "0.6836166", "0.6832988", "0.6829189", "0.6809918", "0.6806129", "0.6740593...
0.0
-1
Toast.makeText(this, "ready to seasrch", Toast.LENGTH_SHORT).show();
private void readyToSearch() { Intent intent = new Intent(this, SearchActivity.class); startActivityForResult(intent, 21); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "public void showComingSoonMessage() {\n showToastMessage(\"Coming soon!\")...
[ "0.7974646", "0.76604843", "0.76391", "0.7439712", "0.7416168", "0.7415572", "0.7415572", "0.7320996", "0.73203474", "0.7313382", "0.73008585", "0.72762704", "0.72736484", "0.7263377", "0.7259643", "0.7253148", "0.72410125", "0.7214844", "0.7212454", "0.7212454", "0.71973705"...
0.0
-1
Prompts the user for permission to use the device location.
private void getLocationPermission() { /* * Request location permission, so that we can get the location of the * device. The result of the permission request is handled by a callback, * onRequestPermissionsResult. */ mLocationPermissionGranted = false; if (Co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void askForLocationPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //this code will be executed on devices running on DONUT (NOT ICS) or later\n askForPermission(Manifest.permission.ACCESS_FINE_LOCATION, Extra.LOCATION);\n }\n }", "private v...
[ "0.776698", "0.7651568", "0.7638665", "0.76210517", "0.74222696", "0.7376342", "0.72495216", "0.7231457", "0.72216654", "0.72000766", "0.7024308", "0.7022187", "0.7013939", "0.6992729", "0.6987125", "0.6987125", "0.6986646", "0.69855034", "0.698384", "0.69727206", "0.69494087...
0.69819254
20
Handles the result of the request for location permissions.
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) { mLocationPermissionGranted = false; switch (requestCode) { case PERMISSION...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n Log.d(TAG, \"Permission Result\");\n ...
[ "0.71567273", "0.7141907", "0.71304005", "0.7114405", "0.7099874", "0.69807446", "0.6941455", "0.6903116", "0.6890953", "0.68448895", "0.683298", "0.6827792", "0.6819534", "0.68057734", "0.68019074", "0.6792721", "0.67802286", "0.6773205", "0.67676735", "0.67322105", "0.67148...
0.6301209
80
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in...
@Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // Add a marker in Sydney and move the camera LatLng sydney = new LatLng(-34, 151); mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney")); mMap.moveCamera(CameraUpdateFactory.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ...
[ "0.8187966", "0.8043203", "0.80369437", "0.8032803", "0.79981315", "0.7977223", "0.79578143", "0.7957492", "0.7953909", "0.79428774", "0.7936515", "0.79303294", "0.7915085", "0.79050475", "0.7888802", "0.7885309", "0.7885309", "0.7885309", "0.7885309", "0.787769", "0.78448915...
0.0
-1
draggedMarker.setPosition(marker.getPosition()); /LatLng midLatLng = mMap.getCameraPosition().target; draggedMarker.setPosition(midLatLng);
@Override public void onMarkerDrag(Marker marker) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCameraIdle() {\n LatLng midLatLng = mMap.getCameraPosition().target;\n draggedMarker.setPosition(midLatLng);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in S...
[ "0.87945944", "0.775349", "0.76493484", "0.7573535", "0.75569296", "0.7475918", "0.74220914", "0.73881096", "0.7367179", "0.73344225", "0.73268265", "0.7323099", "0.71378106", "0.7113639", "0.7077304", "0.6994377", "0.69001", "0.68813443", "0.6874549", "0.67340785", "0.673004...
0.73824507
8
get latlng at the center by calling
@Override public void onCameraIdle() { LatLng midLatLng = mMap.getCameraPosition().target; draggedMarker.setPosition(midLatLng); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point getCenter();", "Point getCenter();", "public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //conten...
[ "0.7963245", "0.7963245", "0.7501722", "0.7467071", "0.7345376", "0.73068964", "0.71360403", "0.7112412", "0.7047811", "0.70387167", "0.6938225", "0.6889561", "0.6846913", "0.68017733", "0.67888546", "0.6757213", "0.67439526", "0.6728926", "0.67129946", "0.6695628", "0.669540...
0.0
-1
Calls the findCurrentPlace method in Google Maps Platform Places API. Response contains a list of placeLikelihood objects. Takes the most likely places and extracts the place details for access in other methods.
private void getCurrentPlaceLikelihoods() { // Use fields to define the data types to return. List<Place.Field> placeFields = Arrays.asList(Place.Field.NAME, Place.Field.ADDRESS, Place.Field.LAT_LNG); // Get the likely places - that is, the businesses and other points of interes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: ...
[ "0.713827", "0.7037936", "0.60780466", "0.596063", "0.5758382", "0.5637029", "0.55355346", "0.53694916", "0.5362828", "0.53620255", "0.53425604", "0.53306973", "0.5322849", "0.53121287", "0.52881294", "0.5171729", "0.5162798", "0.5131345", "0.51041734", "0.5096352", "0.509635...
0.7951302
0
Get the current location of the device, and position the map's camera
private void getDeviceLocation() { /* * Get the best and most recent location of the device, which may be null in rare * cases when a location is not available. */ try { if (mLocationPermissionGranted) { Task<Location> locationResult = mFusedLocatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n ...
[ "0.77770704", "0.77158237", "0.7678068", "0.76565397", "0.76411164", "0.7636113", "0.7582076", "0.755882", "0.75521076", "0.7493388", "0.747046", "0.7457338", "0.7412395", "0.7337549", "0.7132724", "0.71256536", "0.70594543", "0.7004422", "0.68331134", "0.68105817", "0.680261...
0.7506279
9
Fetch a list of likely places, and show the current place on the map provided the user has granted location permission.
private void pickCurrentPlace() { if (mMap == null) { return; } if (mLocationPermissionGranted) { getDeviceLocation(); } else { // The user has not granted permission. Log.i(TAG, "The user did not grant location permission."); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: ...
[ "0.7803867", "0.77337605", "0.69753635", "0.6559342", "0.6184021", "0.61500907", "0.6089947", "0.60850763", "0.6055276", "0.60520667", "0.60470754", "0.6037825", "0.6036743", "0.59917974", "0.5956302", "0.5949057", "0.5937809", "0.59293234", "0.59282154", "0.5923711", "0.5892...
0.6183314
5
position will give us the index of which place was selected in the array
public void onItemClick(AdapterView parent, View v, int position, long id) { LatLng markerLatLng = mLikelyPlaceLatLngs[position]; String markerSnippet = mLikelyPlaceAddresses[position]; if (mLikelyPlaceAttributions[position] != null) { markerSnippet = markerSnippet + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPosition(int index);", "public int getIndex(int position);", "public int[] get_position()\r\n\t{\r\n\t\treturn this.position;\r\n\t}", "public int getPosition();", "protected int getPositionIndex(int position) {\n return (position - startPosition);\n }", "int getGr...
[ "0.74758095", "0.714808", "0.6894332", "0.6846766", "0.6811246", "0.6776964", "0.67157745", "0.66948986", "0.66364634", "0.6632233", "0.66302097", "0.6621456", "0.65773636", "0.65740085", "0.65597147", "0.6523137", "0.65159893", "0.64906466", "0.6485725", "0.64761984", "0.646...
0.0
-1
Display a list allowing the user to select a place from a list of likely places.
private void fillPlacesList() { // Set up an ArrayAdapter to convert likely places into TextViews to populate the ListView ArrayAdapter<String> placesAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mLikelyPlaceNames); lstPlaces.setAdapter(placesAdapt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void displayFragmentPlaceTypeList(Location location);", "public void printList(ETPlace place) {\n place.getName();\n\n\n }", "private void openPlacesDialog() {\n // Ask the user to choose the place where they are now.\n DialogInterface.OnClickListener listener =\n new Dia...
[ "0.6917044", "0.6783875", "0.6392589", "0.6304931", "0.5982719", "0.59651166", "0.5955394", "0.5931074", "0.5928443", "0.58922374", "0.5847737", "0.58025616", "0.57927656", "0.57615227", "0.5716362", "0.57027304", "0.56522197", "0.5593643", "0.5570935", "0.5569791", "0.556184...
0.68092144
1
Created by Administrator on 2017/7/21.
public interface PreFragHomeI { void queryUserSwayBillList(String museId, String museOnlineTag, String musePwd, String currentPage, int pageSize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Ov...
[ "0.63245016", "0.6116907", "0.5834398", "0.5830839", "0.5810228", "0.5804827", "0.5749858", "0.572005", "0.5717348", "0.5715923", "0.5698115", "0.5697847", "0.56754726", "0.5673042", "0.56683165", "0.56683165", "0.5663652", "0.56555945", "0.56459606", "0.5645716", "0.5641503"...
0.0
-1
static method to create instance of Singleton class
public static DataController getInstance() { if (single_instance == null) single_instance = new DataController(); return single_instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton(){}", "private Singleton() { }", "private SingletonSample() {}", "private Singleton() {\n\t}", "private Singleton(){\n }", "private Singleton()\n\t\t{\n\t\t}", "private SingletonSigar(){}", "private SingletonObject() {\n\n\t}", "private LazySingleton(){}", "private Singleton(...
[ "0.8354055", "0.8101599", "0.7955176", "0.7903364", "0.7891584", "0.78692836", "0.7778135", "0.765638", "0.76129925", "0.75883126", "0.75095165", "0.74999946", "0.7464005", "0.74014896", "0.73950255", "0.7391344", "0.73908514", "0.7364851", "0.73357207", "0.7323278", "0.72686...
0.0
-1
select from ef_user where status = 0 or 1
public static List<user> getAll() throws SQLException { try { userExample example = new userExample(); List<Integer> values = new ArrayList<Integer>(); values.add(0); values.add(1); example.or().andStatusIn(values); return mapper.selectByExample(example); } finally { sqlSession.close(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(\"SELECT u FROM Usuario u WHERE u.estado > 0\")\n List<Usuario> obtenerUsuariosActivos();", "List<User> findUserByActive(Integer active);", "UserStatus getStatus();", "@Query(value = \"SELECT user FROM User user WHERE user.active = 1 AND user.userName = :userName\")\n User findByUsername(@Param...
[ "0.64240867", "0.6343457", "0.62860465", "0.61192524", "0.6112619", "0.60776085", "0.58867073", "0.5846856", "0.5807052", "0.57976747", "0.5780918", "0.57775223", "0.57586527", "0.5749431", "0.571018", "0.5696207", "0.5693538", "0.5686607", "0.56810135", "0.56586295", "0.5644...
0.646677
0
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
long countByExample(UserCourseHistoryExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665315", "0.5748959", "0.5640391", "0.5490801", "0.5372556", "0.5327376", "0.5291225", "0.5244358", "0.5226652", "0.5214865", "0.51868296", "0.5138679", "0.51077086", "0.5082593", "0.5076489", "0.50601465", "0.50598073", "0.5050413", "0.504367", "0.50371337", "0.5001896",...
0.47344294
60
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int deleteByExample(UserCourseHistoryExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665005", "0.5750093", "0.56398803", "0.54896873", "0.53728217", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50598925", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.500050...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int deleteByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665005", "0.5750093", "0.56398803", "0.54896873", "0.53728217", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50598925", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.500050...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int insert(UserCourseHistory record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665005", "0.5750093", "0.56398803", "0.54896873", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50598925", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.5000504", "0.4995881...
0.53728217
4
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int insertSelective(UserCourseHistory record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665315", "0.5748959", "0.5640391", "0.5490801", "0.5372556", "0.5327376", "0.5291225", "0.5244358", "0.5226652", "0.5214865", "0.51868296", "0.5138679", "0.51077086", "0.5082593", "0.5076489", "0.50601465", "0.50598073", "0.5050413", "0.504367", "0.50371337", "0.5001896",...
0.49586493
23
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase...
[ "0.6665005", "0.5750093", "0.54896873", "0.53728217", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50598925", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.5000504", "0.4995881...
0.56398803
2
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
UserCourseHistory selectByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabas...
[ "0.5750093", "0.56398803", "0.54896873", "0.53728217", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50598925", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.5000504", "0.499588...
0.6665005
0
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int updateByExampleSelective(@Param("record") UserCourseHistory record, @Param("example") UserCourseHistoryExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665005", "0.5750093", "0.56398803", "0.54896873", "0.53728217", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50598925", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.500050...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int updateByExample(@Param("record") UserCourseHistory record, @Param("example") UserCourseHistoryExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665315", "0.5748959", "0.5640391", "0.5490801", "0.5372556", "0.5327376", "0.5291225", "0.5244358", "0.5226652", "0.5214865", "0.51868296", "0.5138679", "0.51077086", "0.5082593", "0.5076489", "0.50601465", "0.50598073", "0.5050413", "0.504367", "0.50371337", "0.5001896",...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int updateByPrimaryKeySelective(UserCourseHistory record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665005", "0.5750093", "0.56398803", "0.54896873", "0.53728217", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50598925", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.500050...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table user_course_history
int updateByPrimaryKey(UserCourseHistory record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserCourseHistory selectByPrimaryKey(String id);", "public Courses getCourseTable();", "List<UserCourseHistory> selectByExample(UserCourseHistoryExample example);", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELEC...
[ "0.6665005", "0.5750093", "0.56398803", "0.54896873", "0.53728217", "0.5326284", "0.52917105", "0.52445734", "0.52257955", "0.5214775", "0.5185996", "0.513987", "0.51073", "0.50823224", "0.5076907", "0.50584495", "0.5051544", "0.5043173", "0.50390035", "0.5000504", "0.4995881...
0.50598925
15
Initializes the confabulator for usage. Please note that calling this method will clear the link data.
public void initialize(int maxLinkDistance,int maxLinkCount,List<Link> links) { lockMe(this); if (maxLinkDistance<2) { maxLinkDistance=2; } else if (maxLinkDistance>32) { maxLinkDistance=32; } if (maxLinkCount<100) { maxLinkCount=100; } this.maxLinkDistance = maxLinkDistance; this.maxLinkCount ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void _initLinks() {\n\tpeopleLink = null;\n\tchangeLogDetailsesLink = null;\n}", "protected void _initLinks() {\n\t\tleaseTaskStartsLink = null;\n\t\tleaseRulesLink = null;\n\t}", "public void initialize(ConfabulatorObject original) {\n\t\tinitialize(original.getMaxLinkDistance(),original.getMaxLinkC...
[ "0.67677295", "0.6559613", "0.62014455", "0.59576935", "0.59335965", "0.5866067", "0.5828717", "0.57413065", "0.57082886", "0.5702242", "0.56615174", "0.562555", "0.5620733", "0.56143373", "0.5595327", "0.559027", "0.55852693", "0.55807084", "0.5571048", "0.55535233", "0.5551...
0.0
-1
Initializes the confabulator for usage.
public void initialize(ConfabulatorObject original) { initialize(original.getMaxLinkDistance(),original.getMaxLinkCount(),original.getLinks()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void initialize() {\n \tinitialize(new Configuration().configure());\n }", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfi...
[ "0.6779911", "0.6680184", "0.66213435", "0.66187096", "0.65793955", "0.6522256", "0.648716", "0.64372844", "0.6434331", "0.6426129", "0.6420832", "0.6418373", "0.63918066", "0.63868797", "0.6330837", "0.6307288", "0.6295652", "0.62826425", "0.6264329", "0.62626976", "0.624361...
0.0
-1
Creates a copy of the confabulator which can then be used to initialize other confabulators.
public ConfabulatorObject getCopy() { ConfabulatorObject copy = new ConfabulatorObject(getMessenger()); lockMe(this); int maxD = maxLinkDistance; int maxC = maxLinkCount; List<Link> linksCopy = new ArrayList<Link>(); for (Link lnk: links) { linksCopy.add(lnk.getCopy()); } unlockMe(this); copy.initi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LogFramework copy() {\r\n\t\tLogFramework copy = new LogFramework();\r\n\t\tcopy.importSettings(this);\r\n\t\treturn copy;\r\n\t}", "public MinaConfiguration copy() {\n try {\n return (MinaConfiguration) clone();\n } catch (CloneNotSupportedException e) {\n throw new Ru...
[ "0.5428258", "0.53889585", "0.5345244", "0.5318098", "0.5299729", "0.5275549", "0.5170559", "0.5167672", "0.51596165", "0.5110133", "0.5069238", "0.5048648", "0.5037412", "0.5036019", "0.50240624", "0.5003089", "0.50016063", "0.49987158", "0.49955046", "0.49493763", "0.494810...
0.5447398
0
Returns the maximum sequence link distance used to limit symbol link learning.
public final int getMaxLinkDistance() { int r = 0; lockMe(this); r = maxLinkDistance; unlockMe(this); return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMaxSourceDistance();", "public double getMaximumDistance() {\n double l = 0;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.max(l, distances[i]);\n }\n\n return l;\n }", "public fi...
[ "0.7247192", "0.70820045", "0.66698486", "0.660011", "0.6139274", "0.6118572", "0.6053051", "0.60504913", "0.5966709", "0.5962117", "0.59502995", "0.590419", "0.58982635", "0.5864662", "0.583967", "0.58218056", "0.58192533", "0.5782888", "0.577599", "0.57589173", "0.5733614",...
0.82286876
0
Returns the maximum link count used when learning symbol links.
public final int getMaxLinkCount() { int r = 0; lockMe(this); r = maxLinkCount; unlockMe(this); return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getMaxLinkDistance() {\n\t\tint r = 0;\n\t\tlockMe(this);\n\t\tr = maxLinkDistance;\n\t\tunlockMe(this);\n\t\treturn r;\n\t}", "public int getMaxCount() {\n return maxCount_;\n }", "public int getMaxCount() {\n return maxCount_;\n }", "public int countLink() {\n\t\tint co...
[ "0.74987394", "0.6643194", "0.6596093", "0.6577533", "0.65195245", "0.64277864", "0.64153075", "0.6387218", "0.6336308", "0.63339573", "0.6332172", "0.629213", "0.6277425", "0.6248071", "0.6187125", "0.6185195", "0.6185195", "0.6136515", "0.6053832", "0.6020093", "0.6007796",...
0.8312564
0
Returns a copy of the list of links.
public final List<Link> getLinks() { List<Link> r = new ArrayList<Link>(); lockMe(this); for (Link lnk: links) { r.add(lnk.getCopy()); } unlockMe(this); return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Link> getLinks()\t{return Collections.unmodifiableList(allLinks);}", "public List<Link> getLinks() {\n\t return Collections.unmodifiableList(links);\n\t}", "List<Link> getLinks();", "public List<URI> getLinks() {\n return links; // this is already unmodifiable\n }", "public Li...
[ "0.7780428", "0.7583857", "0.7541669", "0.7485309", "0.7332544", "0.7161708", "0.70864546", "0.69844455", "0.6956084", "0.68690383", "0.68667835", "0.6857572", "0.68356884", "0.679682", "0.6790669", "0.6789872", "0.67814577", "0.6779891", "0.6723521", "0.66973764", "0.6679788...
0.74987054
3
Clears the list of links.
public final void clearLinks() { lockMe(this); links.clear(); linksFromDistance.clear(); linksToDistance.clear(); unlockMe(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearLinks();", "private void clearLinks() {\n links_ = emptyProtobufList();\n }", "public void removeAllLinks() {\n\t\tfor (int i=0; i<links.size(); i++){\n\t\t\tlinks.remove(i);\n\t\t}\n\t}", "public void clear()\t{nodes.clear(); allLinks.clear();}", "public void clearLinkRemovalTags() {\n\t...
[ "0.8802291", "0.8441252", "0.8135441", "0.753204", "0.7409046", "0.7054476", "0.7048473", "0.70355415", "0.6978891", "0.69118905", "0.6892563", "0.68817425", "0.6798448", "0.67570174", "0.67208016", "0.6680483", "0.6673988", "0.6631629", "0.6625299", "0.6617129", "0.65939873"...
0.8138785
2
Makes the thread for proccessConnection And sets the connection information and who is hosting and the type iof lobby to be created
public GameHandler(int serverPort, String ip, int caseNr, String hostName) { this.serverPort = serverPort; this.hostName = hostName; this.caseNr = caseNr; this.ip = ip; executorService = Executors.newFixedThreadPool(1); // Lager et pool av threads for bruk connect(); createNewLobby(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start(){\n log.debug(\"Starting Host Router\");\n lobbyThread = pool.submit(new Runnable() {\n public void run() {\n waitForClients();\n }\n });\n }", "public void startThread(){\n String message = \"Connecting to RescueNet......
[ "0.65271795", "0.6387651", "0.63682586", "0.63682586", "0.62101984", "0.6141969", "0.6036022", "0.6032963", "0.6031826", "0.602011", "0.6019066", "0.59796184", "0.5958776", "0.59341925", "0.5916341", "0.5913185", "0.59033746", "0.58452886", "0.5837796", "0.58269835", "0.58207...
0.0
-1
Gives the hostName of the user that is hosting the game
public String getHostName() { return hostName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRemoteHostName();", "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\treturn _userTracker.getRemoteHost();\n\t}", "public String getUserHost() {\n return userHost;\n }", "private String get...
[ "0.7374822", "0.7357229", "0.7357229", "0.73081034", "0.7284129", "0.72686815", "0.7246457", "0.7242686", "0.72376865", "0.72060007", "0.7148848", "0.7128052", "0.7128052", "0.71179646", "0.71179646", "0.7076967", "0.7076967", "0.7070445", "0.70335996", "0.69883496", "0.69797...
0.7130999
11
Connects to the gameserver with the given ip and serverPort set in the constructor and sends if the user is the host and the userName from when you login
public void connect() { try { connection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1 output = new BufferedWriter(new OutputStreamWriter( connection.getOutputStream())); input = new BufferedReader(new InputStreamReader( connection.getInputStream())); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login(String addr, String port, String user){\n if (state != State.NOCONNECTION){\n Log.d(\"State\", state.toString());\n return;\n }\n if (user.length() < 3){\n Log.d(\"Username\", \"length too short\");\n return; //BAD HUMAN!!!\n ...
[ "0.70372075", "0.6581612", "0.6531378", "0.65061057", "0.6478663", "0.645682", "0.6450158", "0.6414292", "0.6378545", "0.63741666", "0.6371679", "0.63671654", "0.63439846", "0.6330611", "0.6259775", "0.6216498", "0.61938244", "0.61735994", "0.6167169", "0.614368", "0.6132818"...
0.71900755
0
Method used to send a message to the server. Handled in a separate method to ensure that all messages are ended with a newline character and are flushed (ensure they are sent.)
public void sendText(String textToSend) { try { output.write(textToSend); output.newLine(); output.flush(); } catch (IOException ioe) { Main.LOGGER.log(Level.WARNING, "Unable to send message to server", ioe); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMessage(String msg) {\n try {\n out.write(msg);\n out.newLine();\n out.flush();\n \n } catch (IOException e) {\n \tshutdown();\n e.printStackTrace();\n }\n }", "@Override\n public void send(String message) {\n\n ...
[ "0.7167023", "0.71376634", "0.6877357", "0.6831733", "0.6817085", "0.6784803", "0.67649823", "0.6748069", "0.6675928", "0.66692233", "0.6662474", "0.6660236", "0.66514784", "0.6635271", "0.66262877", "0.6612163", "0.6602868", "0.6601171", "0.6586461", "0.65396106", "0.6531188...
0.0
-1