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
Creates a quadric robust estimator based on 3D point samples and using provided points and default robust estimator method.
public static QuadricRobustEstimator create(List<Point3D> points) { return create(points, DEFAULT_ROBUST_METHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points)...
[ "0.7054301", "0.68869704", "0.67260724", "0.6499658", "0.6463312", "0.6307621", "0.62429863", "0.55867416", "0.5306271", "0.5242023", "0.51704663", "0.51307833", "0.51163", "0.5020803", "0.49975553", "0.4959032", "0.49344122", "0.49090242", "0.48569658", "0.48147103", "0.4782...
0.7287432
0
Creates a quadric robust estimator based on 3D point samples and using provided listener and default robust estimator method.
public static QuadricRobustEstimator create( QuadricRobustEstimatorListener listener) { return create(listener, DEFAULT_ROBUST_METHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }", "public static QuadricRobustEstimator create(\n Quadr...
[ "0.7008802", "0.69833285", "0.6631452", "0.65789855", "0.6345754", "0.602949", "0.5995362", "0.5988174", "0.5971876", "0.5816892", "0.5802911", "0.56735945", "0.54573303", "0.5437766", "0.536116", "0.5278804", "0.5271737", "0.52686", "0.5262119", "0.5254051", "0.5168571", "...
0.62832016
5
Creates a quadric robust estimator based on 3D point samples and using provided listener and points and default robust estimator method.
public static QuadricRobustEstimator create( QuadricRobustEstimatorListener listener, List<Point3D> points) { return create(listener, points, DEFAULT_ROBUST_METHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }", "public static QuadricRobustEstimator create(\n Quadr...
[ "0.719776", "0.687331", "0.67711115", "0.65699774", "0.6509163", "0.63876003", "0.6340484", "0.595516", "0.5882987", "0.58323234", "0.5711681", "0.56991255", "0.5500376", "0.54064244", "0.53832144", "0.537532", "0.5311069", "0.52902955", "0.5207701", "0.51797163", "0.51475346...
0.7277887
0
Creates a quadric robust estimator based on 3D point samples and using default robust estimator method.
public static QuadricRobustEstimator create(double[] qualityScores) { return create(qualityScores, DEFAULT_ROBUST_METHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }", "public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n ...
[ "0.6567202", "0.64364773", "0.6429722", "0.63715166", "0.6078404", "0.6020438", "0.5961994", "0.59596395", "0.5916434", "0.5779811", "0.55352813", "0.5475058", "0.53647023", "0.50479853", "0.50322753", "0.5023113", "0.4919555", "0.4864228", "0.47349322", "0.4688753", "0.45749...
0.55974317
10
Creates a quadric robust estimator based on 3D point samples and using provided points and default estimator method.
public static QuadricRobustEstimator create(List<Point3D> points, double[] qualityScores) { return create(points, qualityScores, DEFAULT_ROBUST_METHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }", "public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n ...
[ "0.728825", "0.7139521", "0.6772934", "0.65650034", "0.65244895", "0.63198435", "0.62723386", "0.56896454", "0.55108714", "0.5288839", "0.5281673", "0.5256638", "0.5207702", "0.51479197", "0.5147021", "0.51403135", "0.50627154", "0.5022348", "0.49185905", "0.48824874", "0.486...
0.68198454
2
Creates a quadric robust estimator based on 3D point samples and using provided listener and default estimator method.
public static QuadricRobustEstimator create( QuadricRobustEstimatorListener listener, double[] qualityScores) { return create(listener, qualityScores, DEFAULT_ROBUST_METHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }", "public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> po...
[ "0.69240046", "0.6899806", "0.6635222", "0.659267", "0.6321383", "0.61084926", "0.6017797", "0.597198", "0.58962846", "0.58246505", "0.57731223", "0.56989956", "0.56146306", "0.5414024", "0.5377447", "0.5351532", "0.52989393", "0.528339", "0.5272547", "0.525358", "0.52424866"...
0.629391
5
Creates a quadric robust estimator based on 3D point samples and using provided listener and points and default estimator method.
public static QuadricRobustEstimator create( QuadricRobustEstimatorListener listener, List<Point3D> points, double[] qualityScores) { return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }", "public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> po...
[ "0.72492296", "0.6894729", "0.6773283", "0.65686005", "0.6442744", "0.64253825", "0.6345568", "0.5920434", "0.5902", "0.58624136", "0.57658124", "0.5707259", "0.5532043", "0.54432625", "0.54418737", "0.5425497", "0.5358663", "0.5294653", "0.5261978", "0.51960427", "0.51747024...
0.7114982
1
Estimates a quadric using a robust estimator and the best set of 3D points that fit into the locus of the estimated quadric found using the robust estimator.
public abstract Quadric estimate() throws LockedException, NotReadyException, RobustEstimatorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyExcepti...
[ "0.605116", "0.59665996", "0.5867155", "0.5504191", "0.54802823", "0.5397565", "0.5380712", "0.50658816", "0.50626224", "0.50617194", "0.49870157", "0.49683037", "0.49451798", "0.4933517", "0.48829338", "0.4871689", "0.48154062", "0.48069227", "0.4698754", "0.4639145", "0.462...
0.63662726
0
Returns method being used for robust estimation.
public abstract RobustEstimatorMethod getMethod();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "object_detection.protos.Calibration.FunctionApproximation getFunctionApproximation();", "@Override\n public RobustEstimatorMethod getMethod() {\n return RobustEstimatorMethod.LMedS;\n }", "ValuationMethod getValuationMethod();", "@java.lang.Override\n public object_detection.protos.Calibratio...
[ "0.61379695", "0.59977466", "0.5973037", "0.55671346", "0.54845", "0.5436725", "0.543244", "0.5414592", "0.54042435", "0.5343464", "0.53057957", "0.52801764", "0.5261815", "0.52557445", "0.5238813", "0.52082825", "0.517999", "0.51542455", "0.5142845", "0.50568336", "0.5045464...
0.6895952
0
Internal method to set lists of points to be used to estimate a quadric. This method does not check whether estimator is locked or not.
private void internalSetPoints(List<Point3D> points) { if (points.size() < MINIMUM_SIZE) { throw new IllegalArgumentException(); } mPoints = points; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPoints(List<Point3D> points) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n internalSetPoints(points);\n }", "public void setPoints(List<GeoPoint> points){\n\t\tclearPath();\n\t\tint size = points.size();\n\t\tmOriginalPoints = ...
[ "0.65825814", "0.61240894", "0.6069168", "0.5969298", "0.5810455", "0.5749621", "0.57085633", "0.5661857", "0.5588042", "0.5573815", "0.5566646", "0.55408406", "0.5539814", "0.5522628", "0.5456912", "0.54502594", "0.5426741", "0.5398066", "0.5358869", "0.53435606", "0.5310355...
0.683893
0
Computes the residual between a quadric and a point.
protected double residual(Quadric q, Point3D point) { q.normalize(); try { if (mTestQ == null) { mTestQ = q.asMatrix(); } else { q.asMatrix(mTestQ); } if (mTestPoint == null) { mTestPoint = new Matrix( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getSumResidualsSqr() {\n double[] params = getParams();\n if (params != null) {\n return params[numParams];\n } else {\n return Double.NaN;\n }\n }", "public double r() { return Math.sqrt(x*x + y*y); }", "public double getR() {\n double ...
[ "0.5445393", "0.5329438", "0.52318096", "0.52181745", "0.519062", "0.51265436", "0.5098923", "0.50952446", "0.50744575", "0.50744575", "0.50188667", "0.50034183", "0.49919397", "0.49470967", "0.49341106", "0.48736542", "0.4824247", "0.48118722", "0.47542804", "0.4743361", "0....
0.7690561
0
Interface used to trigger callbacks when the image parsing is complete Created by Aurelian Cotuna
public interface OnPicturesParsedListener { void onSuccess(ArrayList<ImageData> results); void onError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ImageCallback {\n public void onImageFetched(Bitmap bitmap, File imageFile);\n}", "public interface ImageViewLoaderListener {\n public void onFinishLoader();\n}", "void onPictureCompleted();", "public interface ImageDownLoadCallBack {\n void onDownLoadSuccess(File file);\n void o...
[ "0.711761", "0.6933884", "0.6890669", "0.68831867", "0.6854683", "0.6821441", "0.6777169", "0.6641452", "0.6632675", "0.656054", "0.65173405", "0.6482086", "0.64761543", "0.6471788", "0.6429052", "0.63670164", "0.6350703", "0.6336039", "0.6334062", "0.6318328", "0.6314123", ...
0.7212284
0
Creates new form frmConsultoras
public FrmCadConsultoras(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); txtCodigo.setEnabled(false); txtCodigo.setText("0"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClien...
[ "0.7552936", "0.6980408", "0.6925091", "0.68391603", "0.6802635", "0.67955524", "0.67841476", "0.67487234", "0.67450404", "0.6740636", "0.67205125", "0.6703314", "0.669701", "0.6690409", "0.66448903", "0.66259927", "0.66206664", "0.66169584", "0.66067207", "0.6586507", "0.655...
0.0
-1
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() { lblCodigo = new javax.swing.JLabel(); lblNome = new javax.swing.JLabel(); lblCpf = new javax.swing.JLabel(); lblCodSite = new ...
{ "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.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
Created by uemit.seren on 10/2/15.
public interface TrackDatasource { }
{ "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\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void ...
[ "0.60844743", "0.59675694", "0.5870918", "0.5840639", "0.5802367", "0.57803077", "0.57753414", "0.5766876", "0.5766876", "0.57115054", "0.5705273", "0.5699771", "0.5690803", "0.5690803", "0.5690803", "0.5690803", "0.5690803", "0.5684278", "0.5680308", "0.56720006", "0.5667781...
0.0
-1
It's like activating the components of activity_main.xml
private void setupUIViews() { toolbar = (Toolbar)findViewById(R.id.ToolbarMain); listview = (ListView)findViewById(R.id.lvMain); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "private void creatingMainElements() {\n Mai...
[ "0.6683933", "0.6532899", "0.6469602", "0.64273286", "0.64273286", "0.64273286", "0.64207935", "0.6383689", "0.63415754", "0.62768453", "0.62724483", "0.6260963", "0.6241942", "0.6235903", "0.62330645", "0.6209498", "0.62039644", "0.6199591", "0.6190799", "0.61824155", "0.617...
0.0
-1
The below function is necessary because the toolbar is not interactive It is like a dead widget. But by converting it to actionBar then it can become interactive.
private void initToolbar() { setSupportActionBar(toolbar); if(getSupportActionBar() != null) { getSupportActionBar().setTitle("Timetable App"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Toolbar provideSupportActionbar();", "private void updateActionBar() {\n\t\tif (!(getContext() instanceof AppCompatActivity)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttoolbar.setSubtitle(R.string.cvv_enter_security_code);\n\t}", "void requestActionBar();", "private void actionBarManager() {\n ...
[ "0.77071774", "0.7291401", "0.7209262", "0.71505004", "0.7148063", "0.6952009", "0.6946114", "0.6925638", "0.68722266", "0.6839443", "0.6837339", "0.6809564", "0.6799881", "0.67941636", "0.6787595", "0.67776376", "0.6776592", "0.67561036", "0.67481583", "0.6735426", "0.673502...
0.6470955
39
We pass the required data for all the CardViews through this function To the simpleAdapter.
private void setupListView() { //Main and Description are located in the strings.xml file String[] title = getResources().getStringArray(R.array.Main); String[] description = getResources().getStringArray(R.array.Description); SimpleAdapter simpleAdapter = new SimpleAdapter(this, title, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CardViewKelasAdapter(Context context){this.context = context;}", "public CardAdapter(ArrayList<CardContent>data) {\n this.data = data;\n }", "private void initCards() {\n\t\tArrayList<Card> cardsChart = new ArrayList<Card>();\n\t\tCard card = init_info_card(tmp.getFull(), tmp.getStatus(), tmp....
[ "0.6903736", "0.6838298", "0.67816013", "0.6662963", "0.6591161", "0.6436987", "0.6432301", "0.6370247", "0.635351", "0.63534284", "0.6348941", "0.633955", "0.6317505", "0.63102746", "0.6274377", "0.62446505", "0.623512", "0.6220309", "0.62052315", "0.61589104", "0.61541396",...
0.0
-1
Main activity has access only to activity_main.xml But since we want to put the contents of the CardView(main_activity_single_item) to the listview(activity_main.xml) we need to get access to the main_activity_single_item. convertView helps in that way.
@Override public View getView(int position, View convertView, ViewGroup parent) { if(convertView == null) { convertView = layoutInflater.inflate(R.layout.main_activity_single_item, null); } title = (TextView)convertView.findViewById(R.id.tvMain); d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n //if the view is empty, access the card layout in activity_main_2\n if (convertView == null) {\n convertView = inflater.inflate(R.layout.acitivity_main_2, null);\n }\n ...
[ "0.71017784", "0.6734956", "0.6614582", "0.66055423", "0.65828794", "0.6523831", "0.65162253", "0.64414865", "0.6394264", "0.6380294", "0.63663185", "0.63463205", "0.6310391", "0.6302363", "0.62729055", "0.6269577", "0.62521106", "0.62481165", "0.62427664", "0.623486", "0.622...
0.7376052
0
Creates new form Professor
public TelaProfessor() throws ClassNotFoundException, SQLException { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FProfessor() {\n professorRN = new Professor_RN();\n professorVO = new Professor_VO();\n initComponents();\n }", "public Professor(Professor prof)\r\n {\r\n this.name = prof.name;\r\n this.id = prof.id;\r\n }", "public Professor()\n\t{\n\t\t//stuff\n\t}", "private...
[ "0.710202", "0.6927327", "0.69247544", "0.64925134", "0.64603907", "0.64498705", "0.6447193", "0.62514484", "0.6177124", "0.6125983", "0.607551", "0.60586077", "0.6049604", "0.60415894", "0.60343844", "0.6033635", "0.6024224", "0.6010773", "0.59869987", "0.59544563", "0.59498...
0.59005183
26
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() { btn_AdicionaProfessor = new javax.swing.JButton(); btn_ExcluiProfessor = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JSc...
{ "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.73195875", "0.7291065", "0.7291065", "0.7291065", "0.7286258", "0.7248489", "0.7213822", "0.7208757", "0.7195916", "0.7190243", "0.7184025", "0.71591616", "0.7148041", "0.70930153", "0.7080625", "0.7056986", "0.6987694", "0.69770867", "0.6955136", "0.69538426", "0.69452894...
0.0
-1
get value matches the key.
public static String getValue(String key) { load(); return properties.getProperty(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Value get(Key key);", "public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Value get(Key key) ;", "public V lookup(K key);", "public V getValue(K key...
[ "0.7629653", "0.76274985", "0.7480588", "0.7365114", "0.735042", "0.735042", "0.72982645", "0.72510606", "0.72313154", "0.723067", "0.7187329", "0.7150081", "0.71355814", "0.71355814", "0.71355814", "0.71355814", "0.71355814", "0.71355814", "0.71355814", "0.71287644", "0.7128...
0.0
-1
TODO Extract messages to separate container
@Override public void onClick(View tagView) { switch (tagView.getId()) { case R.id.aortaTag: InfoTooltip popup = new InfoTooltip(getApplicationContext(), "Main artery which distributes oxygenated blood\n" + " to all parts of the human body "); popup.show(tagView, AlignMode.BOTTOM); break; case...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setupExternalMessages();", "private void initMsgs() {\n }", "private void initMsgs() {\n }", "private Messages() {\n\t}", "private HeartBeatMessage() {\n initFields();\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n\tpublic void ...
[ "0.62945837", "0.6138992", "0.6138992", "0.60885733", "0.6081414", "0.60581875", "0.60457116", "0.6040823", "0.6015877", "0.5977276", "0.585236", "0.58404845", "0.5833071", "0.5807798", "0.5793125", "0.57866395", "0.5776192", "0.5768613", "0.5729479", "0.57244915", "0.5724491...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main, menu); return super.onCreateOptionsMenu(menu); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Handle presses on the action bar items
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_done: quitPlay(); return true; default: return super.onOptionsItemSelected(item); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n ret...
[ "0.71735585", "0.6922375", "0.6922375", "0.6922375", "0.6922375", "0.69097394", "0.68841994", "0.68813336", "0.68239003", "0.68201715", "0.6805166", "0.6801966", "0.6786479", "0.6786479", "0.67605627", "0.6753628", "0.6752333", "0.67470205", "0.67354536", "0.6728134", "0.6725...
0.649579
61
get parent of node
public RBNode<T> parentOf(RBNode<T> node) { return node != null? node.parent : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node getParent();", "public TreeNode getParentNode();", "Node<T> parent();", "public IRNode getParent(IRNode node);", "@JsProperty\n Node getParentNode();", "public Node getParent(){\n return parent;\n }", "public int getParentNode(){\n\t\treturn parentNode;\n\t}", "public TreeNod...
[ "0.8524213", "0.84368783", "0.8358386", "0.82426864", "0.807736", "0.7969916", "0.79457647", "0.7944476", "0.78604126", "0.7858097", "0.7855926", "0.78486216", "0.78486216", "0.7836806", "0.78337526", "0.78239805", "0.7805295", "0.7805295", "0.77169836", "0.7673754", "0.76708...
0.79215604
8
set parent of node
public void setParent(RBNode<T> node, RBNode<T> parent) { if(node != null) node.parent = parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParent(Node node) {\n parent = node;\n }", "public void setParent(Node parent){\n this.parent = parent;\n }", "private void setParent(Node<T> parent) {\n this.parent = parent;\n }", "public void setParent(Node parent) {\n this.parent = parent;\n ...
[ "0.8635046", "0.8544115", "0.8439564", "0.83655286", "0.8294433", "0.8291698", "0.81722826", "0.8070915", "0.80169535", "0.80169535", "0.7923835", "0.7923835", "0.79162025", "0.7885562", "0.787084", "0.78345793", "0.78279537", "0.782038", "0.7751753", "0.7750546", "0.77409786...
0.8028283
8
get color of node
public boolean colorOf(RBNode<T> node) { return node != null? node.color : BLACK; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getColor() {\n return currentLocation.getNodeColor();\n }", "public NodeColor getNodeColor() {\n String str = findSelected(node_colors);\n if (str.equals(NODE_CO_WHITE)) { return NodeColor.WHITE;\n } else if (str.equals(NODE_CO_VARY)) { return NodeColor....
[ "0.82090825", "0.8174525", "0.81589544", "0.8026667", "0.7534871", "0.7534871", "0.7534871", "0.7534871", "0.7534871", "0.74455625", "0.7399607", "0.7399607", "0.7392213", "0.7381766", "0.7358254", "0.73482305", "0.73482305", "0.7325897", "0.73206663", "0.7302856", "0.7272553...
0.7073435
51
return true if node is red
public boolean isRed(RBNode<T> node) { return (node != null)&&(node.color == RED)? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isRed(Node n){\n if(n == null)\n return false;\n return n.isColor() == RED;\n }", "public static boolean isRed(Node<?> node) {\r\n\t\treturn getColor(node) == RED;\r\n\t}", "private Boolean isRed(Node h){\n\t\tif(h.color == null)\n\t\t\treturn false;\n\t\treturn h.col...
[ "0.83319163", "0.8178888", "0.80583435", "0.8047348", "0.7852805", "0.77536476", "0.73043185", "0.7258269", "0.7211288", "0.70493615", "0.7007857", "0.6917164", "0.68966514", "0.67905736", "0.67179585", "0.6515198", "0.65136385", "0.6490608", "0.64313626", "0.64276963", "0.63...
0.84518987
0
set color of node = red
public void setRed(RBNode<T> node) { if(node != null) node.color = RED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void nodeColor(String str) { setSelected(node_colors, str); }", "private void colorNode(NodeImpl node) {\n nodeColorizer.color(node);\n }", "public void changeColor (Color color){\n ((Label) _node).setTextFill(color);\n }", "public void color(Node node, Color color)\n {\n ...
[ "0.7994475", "0.79758966", "0.785627", "0.78058225", "0.7688173", "0.76191473", "0.74493766", "0.74216753", "0.725732", "0.7202002", "0.7187285", "0.711523", "0.7097455", "0.7097455", "0.70877993", "0.70784664", "0.7077353", "0.70616186", "0.7060843", "0.7005994", "0.69988644...
0.84678626
0
set color of node = red
public void setBlack(RBNode<T> node) { if(node != null) { node.color = BLACK; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRed(RBNode<T> node) {\n if(node != null)\r\n node.color = RED;\r\n }", "public void nodeColor(String str) { setSelected(node_colors, str); }", "private void colorNode(NodeImpl node) {\n nodeColorizer.color(node);\n }", "public void changeColor (Color color){\n ...
[ "0.84683794", "0.7994667", "0.7976077", "0.78565013", "0.78069115", "0.76872545", "0.7619011", "0.74496365", "0.74223703", "0.72573763", "0.7202109", "0.7187482", "0.7115037", "0.7097585", "0.7097585", "0.7088117", "0.7078573", "0.7077177", "0.7062208", "0.7060842", "0.700628...
0.68282616
28
search for Node with data key
public RBNode<T> search(T key) { return search1(key); // return search2(root, key); //recursive version }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean search(String key){\n DataPair dp = getDataPair(key);\n BTNode out=null;\n if (dp != null)\n out = search(dp);\n return out != null;\n }", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\...
[ "0.71356386", "0.70148057", "0.6820259", "0.6819718", "0.6811231", "0.67741394", "0.664539", "0.6629351", "0.6624996", "0.66019404", "0.6592804", "0.65907073", "0.6538807", "0.6529545", "0.6478694", "0.647328", "0.64513624", "0.6438997", "0.64376044", "0.6421414", "0.63635874...
0.6550325
12
get successor of current node, which is the smallest node bigger than current node
public RBNode<T> successor(RBNode<T> x) { //if current node have rightChild, then successor is the smallest node in a tree with the root of x.right if(x.right != null) return minNode(x.right); //if x have no rightChild, there are two cases: //1. x is the leftChild of par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node getSuccessorBasedOnMin(Node node) {\n Node successor = localMinAndItsParent(node)[0];\n Node successorParent = localMinAndItsParent(node)[1];\n if (successor != node.rightChild) {\n successorParent.leftChild = successor.rightChild;\n successor.rightChild = no...
[ "0.7282213", "0.718673", "0.7134502", "0.68204224", "0.6773545", "0.67056143", "0.66165704", "0.6580358", "0.65442896", "0.65035474", "0.6486157", "0.6473845", "0.6420197", "0.6417871", "0.6406615", "0.6399124", "0.6399031", "0.63900703", "0.6360151", "0.63079715", "0.6277914...
0.6988822
3
get predecessor of current node, which is the biggest node smaller than current node
public RBNode<T> predecessor(RBNode<T> x) { //if current node have leftChild, then predecessor is the biggest node in a tree with the root of x.left if(x.left != null) return maxNode(x.left); //if x have no leftChild, there are two cases: //1. x is the rightChild of pare...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private IAVLNode findPredecessor(IAVLNode node)\r\n\t{\r\n\t\t//minimum node has no predecessor\r\n\t\tif (node == minimum) \r\n\t\t\treturn null; \r\n\t\t\r\n\t\tif (node.getLeft().isRealNode()) \r\n\t\t\treturn maxPointer(node.getLeft()); \r\n\t\telse \r\n\t\t{\r\n\t\t\tIAVLNode parent = node.getParent();\r\n\t\...
[ "0.77107126", "0.75121856", "0.7485352", "0.7349415", "0.7217619", "0.7211064", "0.7080895", "0.70043653", "0.69812137", "0.6980643", "0.6968693", "0.69088733", "0.68971753", "0.6830752", "0.6819079", "0.67974246", "0.67663383", "0.67128813", "0.66947025", "0.6674923", "0.667...
0.732724
4
Left Rotate Operation from Node x node x must have rightChild p p / / x y / \ / \ lx y > x ry / \ / \ ly ry lx ly Left Rotate Operation includes three steps: 1. deal with y's leftChild, move it to x's rightChild: update x's rightChild as y's leftChild update y.left.parent as x (only y.left is not null) p p / / x x y lx...
private void leftRotate(RBNode<T> x) { // node x must have rightChild RBNode<T> y = x.right; //1. deal with y's leftChild, move it to x's rightChild: // update x's rightChild as y's leftChild x.right = y.left; // update y.left.parent as x (only y.left is no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void leftRotate(Node<E> x){\n \n \t/*\n If x is the root of the tree to rotate with left child subtree T1 and right child y, \n where T2 and T3 are the left and right children of y:\n x becomes left child of y and T3 as its right child of y\n T1 becomes left child o...
[ "0.81641716", "0.81043476", "0.8093102", "0.80151373", "0.7990614", "0.79767483", "0.7947173", "0.7942328", "0.791959", "0.7911786", "0.78598475", "0.7832336", "0.77678275", "0.7717054", "0.76490384", "0.7630905", "0.7470468", "0.74536574", "0.73903984", "0.7354065", "0.72918...
0.8496318
0
Right Rotate Operation from Node y node y must have leftChild p p / / y x / \ / \ x ry > lx y / \ / \ lx rx rx ry Left Rotate Operation includes three steps: 1. deal with x's rightChild, move it to y's leftChild: update y's leftChild as x's rightChild, update x.right.parent as y (only x.right is not null) p p / / y y x...
private void rightRotate(RBNode<T> y) { //node y must have leftChild RBNode<T> x = y.left; //1. deal with x's rightChild, move it to y's leftChild: // update y's leftChild as x's rightChild, y.left = x.right; //update x.right.parent as y (only x.right is not nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private NodeRB<K, V> rotateRight(NodeRB<K, V> x) {\n\t\tNodeRB<K, V> xParent = x.parent;\n\n\t\tNodeRB<K, V> y = x.left;\n\t\tx.left = y.right;\n\t\ty.right = x;\n\n\t\t// Parents relations fix\n\t\tif (xParent != null) {\n\t\t\tif (x.isLeftChild()) {\n\t\t\t\txParent.left = y;\n\t\t\t} else {\n\t\t\t\txParent.rig...
[ "0.8000735", "0.7931905", "0.791221", "0.79032075", "0.7818723", "0.7808127", "0.7784329", "0.77597576", "0.77467775", "0.7746346", "0.76536465", "0.75934535", "0.7559348", "0.754533", "0.7418443", "0.7375437", "0.7365336", "0.7344923", "0.7306445", "0.7290008", "0.72445333",...
0.8269198
0
insertion insert new node
public void insert(T key) { RBNode<T> node = new RBNode<>(key, RED, null, null, null); if(node != null) insert(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(Node n);", "public void insert(HuffmanTree node);", "public void insertnode ()\n\t// insert an empty node\n\t{\n\t\tif (Pos.haschildren() && !GF.askInsert()) return;\n\t\tNode n = new Node(Pos.node().number());\n\t\tPos.insertchild(new TreeNode(n));\n\t\tn.main(Pos);\n\t\tgetinformation();\n...
[ "0.82356256", "0.76940614", "0.7539022", "0.7309999", "0.7250476", "0.7227552", "0.7227523", "0.72256106", "0.71760243", "0.71697104", "0.7116987", "0.7113941", "0.70226014", "0.70138127", "0.69767195", "0.69722784", "0.6881253", "0.68766606", "0.685067", "0.6827444", "0.6820...
0.0
-1
insert new node into the RBTree, same as BTree
private void insert(RBNode<T> node) { RBNode<T> current = this.root; //need to save the information of parentNode //because need the parentNode to connect the new node to the tree RBNode<T> parentNode = null; //1. find the insert position while(current != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertNodeIntoTree(Node node) {\n\t\troot = insert(root,node);\t\n\t}", "public void insert(HuffmanTree node);", "public void insert(Node n);", "public void add(Comparable obj)\n { \n \t //TODO\n \t //add code\n \t Node n = new Node(); \n \t n.data = obj;\n \t // \tn.left = null...
[ "0.7876214", "0.7634108", "0.7435071", "0.7332612", "0.72598666", "0.7087345", "0.70461863", "0.70449567", "0.69649374", "0.69595116", "0.6912358", "0.69101596", "0.6897125", "0.6894725", "0.6891158", "0.68858254", "0.6884955", "0.68817526", "0.6873114", "0.6866706", "0.68638...
0.8056596
0
Node represents the node to be modified, that is, the child node of the successor node (because the successor node has been moved to the place where the node was deleted).
private void removeFixUp(RBNode<T> node, RBNode<T> parent) { RBNode<T> other; while((node == null || isBlack(node)) && (node != this.root)) { if(parent.left == node) { //node is leftChild other = parent.right; //brother of node if(isRed(other)) { //case...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Node deleteSuccessor(Node node) {\r\n\t\tNode successor = node.right , parentSuccessor = node ;\r\n\t\twhile( successor.left != null ) {\r\n\t\t\tparentSuccessor = successor ;\r\n\t\t\tsuccessor = successor.left ;\r\n\t\t}\r\n\t\tint value = node.value ;\r\n\t\tnode.value = successor.value ;\r\n\t\tsuccessor.value...
[ "0.6692499", "0.66591126", "0.6531348", "0.65174675", "0.63784397", "0.63717365", "0.63572305", "0.63033354", "0.6150238", "0.6120516", "0.60762835", "0.59950805", "0.5989558", "0.5961084", "0.59403974", "0.5936826", "0.5933633", "0.5917134", "0.59013695", "0.58993095", "0.58...
0.0
-1
/ keydata of node direction 0:current node is root 1:current node is parent.left 2:current node is parent.right
private void print(RBNode<T> tree, T key, int direction) { if(tree != null) { if(0 == direction) System.out.printf("%2d(B) is root\n", tree.key); else System.out.printf("%2d(%s) is %2d's %6s child\n", tree.key, isRed(tree)?"R"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char parentSide() {\n\t\t\tif (this.getParent().getKey() == -1) {\n\t\t\t\treturn 'N';\n\t\t\t}\n\t\t\tif (this.key == this.parent.getRight().getKey()) {\n\t\t\t\treturn 'R';\n\t\t\t}\n\t\t\treturn 'L';\n\t\t}", "public AvlNode(int key) {\n this.key=key;\n this.left=null;\n this.right...
[ "0.6439204", "0.64386374", "0.6321188", "0.6182226", "0.6054594", "0.59806377", "0.590328", "0.5888277", "0.58837265", "0.5858631", "0.5843065", "0.5822278", "0.5782566", "0.5773968", "0.57562697", "0.57559067", "0.5732068", "0.5705244", "0.56953657", "0.5675477", "0.5674133"...
0.56555736
24
/ Problem Statement: Need to print biggest number from given numbers
public static void main (String[] args) { Integer a=7,b=4,c=10,d=18; if (a > b) { if(a > c){ if (a >d){ System.out.println(a+ " is biggest"); } } } if (b > c) { if(b > d){ if (b >a)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void printBiggestNumber() {\n System.out.println(\"Enter number 1:\");\r\n Scanner num1 = new Scanner(System.in);\r\n int i1 = Integer.parseInt(num1.nextLine());\r\n System.out.println(\"Enter number 2:\");\r\n Scanner num2 = new Scanner(System.in);\r\n int ...
[ "0.76923996", "0.7307856", "0.7148635", "0.7133075", "0.71144223", "0.70842284", "0.69829726", "0.697271", "0.69064814", "0.6904163", "0.6900981", "0.68972975", "0.6885027", "0.68678623", "0.6866255", "0.6862327", "0.6846498", "0.68335617", "0.683327", "0.68252313", "0.680820...
0.7135615
3
Couleur de fond du panneau des trois couleurs
public void paintComponent(Graphics g) { g.setColor(Color.yellow); g.fillRect(0, 0, 150, 250); //rondeur des couleurs (taille et position) g.setColor(rouge); g.fillOval(50, 30, 50, 50); g.setColor(jaune); g.fillOval(50, 100, 50, 50); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void verficarChoques() {\n\t\t\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\t\n\t\t\tElemento e1 = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\t//guaramos las coordenadas para verificar si choco contra el tablero\n\t\t\tint coord1 = e1.getPosicion().getX();\n\t\t\tint coord2 = e1.getPos...
[ "0.60492754", "0.5943638", "0.59129983", "0.58758825", "0.5869354", "0.58650017", "0.58538294", "0.5842726", "0.5823715", "0.58123255", "0.5808725", "0.5805837", "0.58018994", "0.5798279", "0.5782926", "0.57735115", "0.5771962", "0.57705975", "0.57630897", "0.5738757", "0.572...
0.0
-1
define the HTTP that this is a GET method
@RequestMapping(method = RequestMethod.GET) //function to return all students public Collection<Student> getAllStudent() { return studentService.getAllStudent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "public static boolean isGet(String argRequestMethod) {\r\n\t\treturn HttpConstants.GET.equalsIgnoreCase(argRequestMethod);\r\n\t}", "public static boolean isGet(HttpServletRequest argRequest) {\r\n\t\treturn HttpConstants.GET.equalsIgn...
[ "0.808296", "0.7514799", "0.7266993", "0.71343446", "0.7051918", "0.6954639", "0.6840799", "0.68276525", "0.6795088", "0.67224693", "0.67224693", "0.6598562", "0.6577605", "0.6563044", "0.6547262", "0.65210444", "0.6499698", "0.6498678", "0.64968085", "0.64882916", "0.6488291...
0.0
-1
handle student update function consumes tells the springboot to consume a JSON value sent by the function
@RequestMapping(method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE) //Request Body is requesting the student parameter public void updateStudent(@RequestBody Student student){ studentService.updateStudent(student); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t public ResponseEntity<Student> updateStudent( @RequestBody Student std)\n\t\t\t{\n\t\t\t\tOptional<Student> findById=studentrepo.findById(std.getStudentId());\n\t\t\t\ttry {\n\t\t\t\tif(findById.isPresent())\n\t\t\t\t{\n\t\t\t\t\t studentrepo.save(std);\n\t\t\t\t\t return new ResponseEntity<Studen...
[ "0.71908516", "0.70392096", "0.6575562", "0.65666234", "0.6558519", "0.65324366", "0.63848656", "0.63679767", "0.6305422", "0.62887424", "0.62834", "0.62799793", "0.62652904", "0.6232214", "0.6176851", "0.6176462", "0.6173021", "0.60606", "0.60006267", "0.5953108", "0.5920388...
0.7487713
0
export object to WORB
public void activate(ObjectId oxID, Object obj, MarshaledOX extState) throws Exception { for (int i = 0; i < oclass.length; i++) { String adress = ExehdaUtil.getWorb().exportService(obj, oclass[i], objectClass + oxID.toString() + i); contactAddress.addElement(adress); } // update the ox meta-attribute 'con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeObject ();", "String objectWrite();", "void writeObject(OutputSerializer out) throws java.io.IOException;", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "public void exportObject(Target paramTarget) throws RemoteException {\n/* 147 */ this.ep.e...
[ "0.6290567", "0.5979882", "0.59197164", "0.5725567", "0.56881124", "0.56357604", "0.557142", "0.5553332", "0.55177027", "0.5517602", "0.55150384", "0.5504268", "0.5471587", "0.54282576", "0.5422687", "0.5397279", "0.5372431", "0.5367514", "0.5350146", "0.53473824", "0.5299915...
0.0
-1
obtain master contact from oxm
public static <C> C getRemoteObjectReference(ObjectId oxhandle, Class<C> chandle, String remote_interface) { OXHandle oxh = ExehdaUtil.getOXManager().createHandle(oxhandle); String contact = (String) oxh.getAttribute(ATT_WORB_CONTACT + remote_interface); // get master from worb return getRemoteObjectReference(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPrimaryContact();", "public Address getPrimaryContactParsed();", "com.polytech.spik.protocol.SpikMessages.Contact getContact();", "kr.pik.message.Profile.Contact getContact();", "public SourceContact getContact()\n {\n return contact;\n }", "ContactGroup getServerStoredConta...
[ "0.6538271", "0.642249", "0.5922849", "0.58553785", "0.5842903", "0.5742364", "0.56680614", "0.56116366", "0.5603309", "0.5603309", "0.5603309", "0.5603309", "0.5603309", "0.5581137", "0.5567298", "0.5564785", "0.5559611", "0.5557926", "0.55363244", "0.55363244", "0.55272686"...
0.0
-1
Get the vpnClientAddressPool value.
public AddressSpace vpnClientAddressPool() { return this.vpnClientAddressPool; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FreeClientPool getClientPool()\n\t{\n\t\treturn this.peer.getClientPool();\n\t}", "public VpnClientConfiguration withVpnClientAddressPool(AddressSpace vpnClientAddressPool) {\n this.vpnClientAddressPool = vpnClientAddressPool;\n return this;\n }", "java.lang.String getPoolId();", "pub...
[ "0.62766165", "0.59792745", "0.5597378", "0.55135566", "0.5494892", "0.54586744", "0.5450855", "0.54284126", "0.5312292", "0.5231557", "0.5231557", "0.52042866", "0.51472634", "0.51127785", "0.51022685", "0.509721", "0.5042447", "0.4993901", "0.49881187", "0.49016833", "0.488...
0.80550605
0
Set the vpnClientAddressPool value.
public VpnClientConfiguration withVpnClientAddressPool(AddressSpace vpnClientAddressPool) { this.vpnClientAddressPool = vpnClientAddressPool; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AddressSpace vpnClientAddressPool() {\n return this.vpnClientAddressPool;\n }", "void setPoolNumber(int poolNumber);", "void setPoolId(java.lang.String poolId);", "public void setPoolClass(final cto.framework.service.schema.types.PoolClassType poolClass) {\r\n this._poolClass = poolCl...
[ "0.6285437", "0.57896143", "0.57506645", "0.53456074", "0.53308713", "0.52457947", "0.524243", "0.52113837", "0.5209602", "0.5099602", "0.5056506", "0.50146514", "0.49591827", "0.48548627", "0.473747", "0.4642652", "0.4611758", "0.45908728", "0.45718423", "0.45683476", "0.454...
0.6313052
0
Get the vpnClientRootCertificates value.
public List<VpnClientRootCertificateInner> vpnClientRootCertificates() { return this.vpnClientRootCertificates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VpnClientConfiguration withVpnClientRootCertificates(List<VpnClientRootCertificateInner> vpnClientRootCertificates) {\n this.vpnClientRootCertificates = vpnClientRootCertificates;\n return this;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n ...
[ "0.62800246", "0.6126066", "0.6126066", "0.612379", "0.61033773", "0.61033773", "0.6034424", "0.60181814", "0.60181814", "0.5926657", "0.58747405", "0.58458704", "0.58458704", "0.5845294", "0.5845294", "0.5835368", "0.5835368", "0.57697123", "0.57697123", "0.5733778", "0.5733...
0.8661064
0
Set the vpnClientRootCertificates value.
public VpnClientConfiguration withVpnClientRootCertificates(List<VpnClientRootCertificateInner> vpnClientRootCertificates) { this.vpnClientRootCertificates = vpnClientRootCertificates; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VpnClientRootCertificateInner> vpnClientRootCertificates() {\n return this.vpnClientRootCertificates;\n }", "public Builder setCertificates(liubaninc.m0.pki.CertificatesOuterClass.Certificates value) {\n if (certificatesBuilder_ == null) {\n if (value == null) {\n ...
[ "0.7020835", "0.56788075", "0.56788075", "0.56545997", "0.5362269", "0.5362269", "0.5115297", "0.5115297", "0.5099288", "0.5064394", "0.5044596", "0.5044596", "0.4943102", "0.4943102", "0.48990777", "0.48213452", "0.47729313", "0.47363254", "0.47289833", "0.47289833", "0.4711...
0.70099914
1
Get the vpnClientRevokedCertificates value.
public List<VpnClientRevokedCertificateInner> vpnClientRevokedCertificates() { return this.vpnClientRevokedCertificates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VpnClientRootCertificateInner> vpnClientRootCertificates() {\n return this.vpnClientRootCertificates;\n }", "public static Collection<ApplicationGatewayClientRevocationOptions> values() {\n return values(ApplicationGatewayClientRevocationOptions.class);\n }", "public VpnClientCo...
[ "0.63209194", "0.60354775", "0.5857151", "0.5228036", "0.51392996", "0.49926016", "0.49926016", "0.49683952", "0.49683952", "0.49464238", "0.49317485", "0.49317485", "0.48736444", "0.48409095", "0.48409095", "0.47959042", "0.47959042", "0.47842583", "0.47842583", "0.47241306", ...
0.85957414
0
Set the vpnClientRevokedCertificates value.
public VpnClientConfiguration withVpnClientRevokedCertificates(List<VpnClientRevokedCertificateInner> vpnClientRevokedCertificates) { this.vpnClientRevokedCertificates = vpnClientRevokedCertificates; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VpnClientRevokedCertificateInner> vpnClientRevokedCertificates() {\n return this.vpnClientRevokedCertificates;\n }", "public static Collection<ApplicationGatewayClientRevocationOptions> values() {\n return values(ApplicationGatewayClientRevocationOptions.class);\n }", "public vo...
[ "0.718616", "0.5306795", "0.51260203", "0.48976249", "0.48510897", "0.4803634", "0.4803634", "0.47458205", "0.47328383", "0.46884587", "0.46275008", "0.4596037", "0.45150438", "0.45150438", "0.44520584", "0.44520584", "0.4445041", "0.44331127", "0.43925127", "0.43746755", "0....
0.6833944
1
verify the conference When debug, delete the param "request"
@PostMapping("/Verify") public ResponseEntity<String> verify(@RequestBody VerifyRequest request){ logger.debug("verify request"); String username = conferenceService.findConference(request.getId()).getOwner(); Conference conference = conferenceService.findConference(request.getId()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void handleRequest(final Message request, final ConnectionKey connkey, final Peer peer) {\n final Message answer = new Message();\n answer.prepareResponse(request);\n AVP avp;\n avp = request.find(ProtocolConstants.DI_SESSION_ID);\n if (avp != null) {\n answer.add(avp);\n...
[ "0.5570297", "0.5564141", "0.55494356", "0.5541639", "0.5365726", "0.53334165", "0.5303924", "0.52817494", "0.5258412", "0.523656", "0.523656", "0.523656", "0.523656", "0.523656", "0.523656", "0.523656", "0.523656", "0.523656", "0.523656", "0.52159894", "0.52095985", "0.519...
0.66306454
0
TODO Autogenerated method stub
public static void main(String[] args) { Scanner input = new Scanner(System.in); String cardNum; int a, b, c, d, e; int total = 0; int choice = -1; System.out.println("Welcom 老九商城!"); System.out.print("请输入您的5位会员编号:"); cardNum = input.nextLine(); if (cardNum.length() == 5) { a = Integer.parseInt(St...
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { firebaseAuth = FirebaseAuth.getInstance(); View rootview = inflater.inflate(R.layout.signup, container, false); signupbutton = rootview.findViewByI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
$FF: renamed from: (l, ag, ag, r1, io.netty.util.concurrent.GenericFutureListener[]) void
void method_8298(class_120 var1, class_906 var2, class_906 var3, class_250 var4, GenericFutureListener[] var5) { this.field_8039 = var1; this.field_8035 = var2; this.field_8036 = var3; this.field_8037 = var4; this.field_8038 = var5; super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void notifyListeners0(Future<?> future, DefaultFutureListeners listeners)\r\n/* 518: */ {\r\n/* 519:599 */ GenericFutureListener<?>[] a = listeners.listeners();\r\n/* 520:600 */ int size = listeners.size();\r\n/* 521:601 */ for (int i = 0; i < size; i++) {\r\n/* 522:602 */ not...
[ "0.687535", "0.6697804", "0.66808593", "0.66766286", "0.66296375", "0.65209734", "0.64086527", "0.6354885", "0.62618923", "0.62346125", "0.6206648", "0.61236465", "0.61153543", "0.6036018", "0.58909315", "0.5841612", "0.57800055", "0.5747432", "0.5744762", "0.5699282", "0.567...
0.60888696
13
$FF: renamed from: () void
static void method_8299() { boolean var10000 = true; char[] var10003 = "Ò˜œÛ¢ï¬ó".toCharArray(); Object var10004 = var10003.length; Object var4 = true; char[] var10002 = var10003; char[] var10001 = (char[])var10004; int var0 = 0; while(true) { var10...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo57277b();", "void mo80455b();", "public void m23075a() {\n }", "public final void mo91715d() {\n }", "void mo80452a();", "void mo28194a();", "public void mo6944a() {\n }", "void mo72113b();", "public abstract void mo70713b();", "void mo41083a();", "void berechneFlaeche() {\n\t}"...
[ "0.72795963", "0.7225973", "0.72084284", "0.71587247", "0.71335757", "0.71323025", "0.7119732", "0.71036863", "0.70683205", "0.7063202", "0.70547444", "0.7054249", "0.70516425", "0.7044244", "0.70297474", "0.7017108", "0.7001084", "0.6983421", "0.69825494", "0.69790375", "0.6...
0.0
-1
Gets last delete time.
public Long getLastDeleteTime() { return lastDeleteTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTime getDeletionTime() {\n return deleted;\n }", "public long getDeleteAt()\n\t{\n\t\treturn deleteAt;\n\t}", "public Date getDelTime() {\n return delTime;\n }", "public void setLastDeleteTime(Long lastDeleteTime) {\n this.lastDeleteTime = lastDeleteTime;\n }", "public Lo...
[ "0.7692488", "0.7154105", "0.71457934", "0.70785606", "0.6834438", "0.67436916", "0.67009974", "0.66939247", "0.66876715", "0.66845673", "0.66777027", "0.66626674", "0.6657863", "0.66552246", "0.6653235", "0.6553979", "0.6487796", "0.63783985", "0.6354975", "0.63540375", "0.6...
0.883895
0
Sets last delete time.
public void setLastDeleteTime(Long lastDeleteTime) { this.lastDeleteTime = lastDeleteTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getLastDeleteTime() {\n return lastDeleteTime;\n }", "public void setDeletionTime(DateTime deletionTime) {\n this.deleted = deletionTime;\n }", "public DateTime getDeletionTime() {\n return deleted;\n }", "public void setDelTime(Date delTime) {\n this.delTime = delTime;\n...
[ "0.7253425", "0.70855314", "0.6534653", "0.64313453", "0.6382961", "0.60551715", "0.5995194", "0.59917474", "0.5920689", "0.59050184", "0.58862317", "0.58332783", "0.5831159", "0.5820333", "0.580932", "0.579216", "0.5777819", "0.574562", "0.5743592", "0.5739939", "0.57057416"...
0.8244507
0
Reminder: collideWith calls g's collision handlers
public void run() { h.collideWith(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void collide(InteractiveObject obj);", "public abstract void collideWith(Entity entity);", "public void collideWith(Rigidbody obj) {\n\t\t\r\n\t}", "@Override\n\tpublic void collide(Entity e) {\n\n\t}", "protected void collidesCallback(){\n\t\tphxService.collidingCallback(this);\n\t}", "p...
[ "0.7940425", "0.7919489", "0.7634883", "0.76097745", "0.74006253", "0.7353602", "0.7257184", "0.7249705", "0.72428167", "0.7240201", "0.71991926", "0.7197256", "0.71509016", "0.71371293", "0.71117276", "0.70643806", "0.7027885", "0.7004558", "0.69851565", "0.6911235", "0.6908...
0.66357076
41
Accesses the sprites member.
public HashMap<String, BufferedImage> getSprites() { return sprites; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sprite getSprite()\n\t{\n\t\treturn sprite;\n\t}", "@Override\n\tpublic final Sprite getSprite() {\n\t\treturn this.sprite;\n\t}", "public Sprite getSprite() {\n\t\treturn sprite;\n\t}", "public Sprite getSprite() {\n\t\treturn sprite;\n\t}", "public Sprite getSprite() {\n\t\treturn image;\n\t}", ...
[ "0.6814999", "0.6742858", "0.6680644", "0.6680644", "0.6605307", "0.641885", "0.6366635", "0.635103", "0.6246516", "0.6193137", "0.6180403", "0.6179201", "0.616442", "0.6111184", "0.5949443", "0.59131986", "0.5876383", "0.5858068", "0.58559453", "0.58319163", "0.5793784", "...
0.6200336
9
Accesses the timeGameStarted member.
public long getTimeGameStarted() { return timeGameStarted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getTimeStarted() {\n\t\treturn _timeStarted;\n\t}", "public boolean\t\t\t\t\t\tisGameStarted()\t\t\t\t\t\t\t\t{ return this.gameStarted; }", "public boolean gameStarted() {\r\n\t\treturn this.gameStarted;\r\n\t}", "Time started() {\n return started;\n }", "public int getTimeStart() {\r\n ...
[ "0.7445771", "0.72213846", "0.7089211", "0.6989819", "0.688217", "0.6835286", "0.6798423", "0.6681037", "0.66745234", "0.66576177", "0.66563827", "0.6633088", "0.6614787", "0.6604541", "0.6586135", "0.6542748", "0.6533606", "0.65229154", "0.64901274", "0.6489028", "0.64767796...
0.8426723
0
Remove the acceleration from the RecycleBin when the arrow keys are released.
public void keyReleased(KeyEvent e) { switch (e.getKeyCode()) { case KeyEvent.VK_LEFT: if (!isPaused && !isOver) { rb.setAccel(new Point2D.Double(0, 0)); } break; case KeyEvent.VK_RIGHT: if (!isPaused && !isOver) { rb.setAccel(new Point2D.Double(0, 0)); } break; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void releaseArrow()\n {\n \tif(bowCharge >= minReleaseCharge)\n \t{\n\t currentArrow.release(bowCharge);\n\t firedArrows.add(currentArrow);\n\t System.out.println(\"released arrow, power \" + bowCharge\n\t \t+ \" angle \" + currentArrow.getMovementAngle()); \n ...
[ "0.63173455", "0.62661564", "0.6243099", "0.6234653", "0.62152857", "0.6160591", "0.5960498", "0.58353823", "0.5825531", "0.5812745", "0.5809351", "0.57889915", "0.5788513", "0.57010347", "0.5692606", "0.56483454", "0.56478167", "0.5646364", "0.56460893", "0.5630383", "0.5624...
0.65065527
0
Gives the recycle bin acceleration on depression of the left or right arrow keys. Space pauses, and escape closes. The Windows key will start the game too, fitting in with the Windows XP lookandfeel.
public void keyPressed(KeyEvent e) { switch (e.getKeyCode()) { case KeyEvent.VK_LEFT: if (!isPaused && !isOver) { rb.setAccel(new Point2D.Double(-3, 0)); } break; case KeyEvent.VK_RIGHT: if (!isPaused && !isOver) { rb.setAccel(new Point2D.Double(+3, 0)); } break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void keyReleased(KeyEvent e) {\n \t\tswitch (e.getKeyCode()) {\n \t\t\tcase KeyEvent.VK_LEFT:\n \t\t\t\tif (!isPaused && !isOver) {\n \t\t\t\t\trb.setAccel(new Point2D.Double(0, 0));\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase KeyEvent.VK_RIGHT:\n \t\t\t\tif (!isPaused && !isOver) {\n \t\t\t\t\trb.setAccel(ne...
[ "0.63428307", "0.63381284", "0.62067366", "0.6045598", "0.59980357", "0.5962235", "0.59251523", "0.58772683", "0.58718425", "0.58646864", "0.5856032", "0.585023", "0.58168775", "0.5814346", "0.5808755", "0.58064246", "0.57849526", "0.5767278", "0.5767278", "0.5760943", "0.575...
0.6790007
0
Loads all of the requisite images from the working directory, 7 in all.
private void loadSprites() throws IOException { sprites.put("fullBin", ImageIO.read(new File("user-trash-full64.png"))); sprites.put("emptyBin", ImageIO.read(new File("user-trash64.png"))); sprites.put("sysfileLarge", ImageIO.read(new File("sysfile1-48.png"))); sprites.put("sysfileMedium", ImageIO.read(new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadImages(){\n try{\n System.out.println(System.getProperty(\"user.dir\"));\n\n t1img = read(new File(\"resources/tank1.png\"));\n t2img = read(new File(\"resources/tank1.png\"));\n backgroundImg = read(new File(\"resources/background.jpg\"));\n ...
[ "0.7307833", "0.72380084", "0.7098363", "0.70495266", "0.6857028", "0.68234444", "0.67638606", "0.67086816", "0.66250014", "0.65946734", "0.654396", "0.6537462", "0.6528341", "0.6513495", "0.6421886", "0.64112496", "0.63935274", "0.6308628", "0.62689686", "0.6150493", "0.6130...
0.59614176
31
Draws the sprites of all of the GameObjects
public void paintComponent(Graphics g) { super.paintComponent(g); // The background. g.drawImage(sprites.get("grass"), 0, 0, getWidth(), getHeight(), null); if (isOver) { drawGameOverScreen(g); return; } if (!isStarted) { drawTitleScreen(g); } synchronized (lock) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "private void drawObjects(Graphics g) {\n\n g.setColor(Color.white);\n g.fillRect(0,0,WIDTH,HEIGHT);\n\n Player player = physics.getPlayer(...
[ "0.77254933", "0.7725445", "0.7402953", "0.7391259", "0.728307", "0.72129935", "0.7205203", "0.714272", "0.711161", "0.7082038", "0.70763355", "0.70726436", "0.70510113", "0.69899035", "0.69711554", "0.6934749", "0.6867767", "0.68666655", "0.68493646", "0.67711717", "0.672523...
0.631119
55
Accesses the cpuUsage variable. Used to update the metre in the HUD.
public double getCpuUsage() { if (cpuUsage > 100) { return 100; } return cpuUsage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "private void collectCpuMemoryUsage(){\r\n\t\tHmDomain hmDomain = CacheMgmt.getInstance().getCac...
[ "0.7500574", "0.7105083", "0.69965965", "0.68143064", "0.67998683", "0.6768262", "0.6700342", "0.66355157", "0.6547501", "0.63843316", "0.6379788", "0.6365669", "0.6352238", "0.6175345", "0.6151271", "0.6138728", "0.613727", "0.612515", "0.6087483", "0.60734963", "0.6051674",...
0.71799237
1
ArrayList questions; Create a popup question. Called repeatedly.
private void makeDialog() { final BackgroundGame thisPanel = this; final JInternalFrame dialog = new JInternalFrame("Question!"); dialog.addInternalFrameListener(new InternalFrameListener() { @Override public void internalFrameOpened(InternalFrameEvent arg0) { } @Override public void ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showQuesAndAnswers() {\r\n QuestionData qd = theQuestions.get(thisQues);\r\n TextView tv = (TextView)findViewById(R.id.theQuestion);\r\n tv.setText(Titles[bookNbrIx] + \", question nbr: \" + qd.quesNbr\r\n + \", line: \" + thisQues + \"\\n\\n\" + qd.questi...
[ "0.718681", "0.6753832", "0.6468075", "0.6459925", "0.63076204", "0.6306554", "0.62823606", "0.6264108", "0.616568", "0.61100703", "0.6056777", "0.60336745", "0.60160613", "0.6009875", "0.60078096", "0.5937153", "0.5931636", "0.59285575", "0.5909208", "0.59054905", "0.5898624...
0.635258
4
Draws the instructive title screen.
private void drawTitleScreen(Graphics g) { g.setColor(new Color(0, 0x66, 0xcc, 150)); g.fillRect(0, 60, getWidth(), getHeight() - 120); g.setColor(Color.WHITE); g.setFont(new Font("Courier New", Font.BOLD, 30)); g.drawString("POP UP QUIZ!", 50, 100); g.setFont(new Font("Courier New", Font.BOLD, 18)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void drawTitle(){\n titleBox = new Rectangle(155,380, 490, 200);\n titleBorder = new Rectangle(150, 375, 500, 210);\n titleBorder.setFillColor(pink);\n titleBorder.setFilled(true);\n titleBox.setFillColor(Color.BLACK);\n titleBox.setFilled(true);\n title =...
[ "0.7779918", "0.7671192", "0.74879146", "0.7478242", "0.74720436", "0.71283275", "0.7007509", "0.69790226", "0.6959655", "0.68875265", "0.6845182", "0.6773824", "0.6686335", "0.6647149", "0.6589908", "0.6565347", "0.6551285", "0.65465415", "0.65352505", "0.6532518", "0.63628"...
0.7699467
1
Increases the CPU usage by some amount.
public void increaseCpuUsage(double val) { cpuUsage += val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void decreaseCpuUsage(double val) {\n \t\tcpuUsage -= val;\n \t\tif (cpuUsage < 0) {\n \t\t\tcpuUsage = 0;\n \t\t}\n \t}", "public void Increase()\n {\n Increase(1);\n }", "public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}", "private void incrementSpeed(double amount){\n currentS...
[ "0.69373363", "0.65086544", "0.6411355", "0.6342721", "0.63090146", "0.62984365", "0.6266656", "0.6250875", "0.6198613", "0.616332", "0.61369586", "0.61133236", "0.6111484", "0.6111484", "0.6076246", "0.6050465", "0.6042127", "0.6009577", "0.5986948", "0.59375095", "0.5900945...
0.82494545
0
Routine for ending the game (showing the bluescreen).
public void endGame() { isOver = true; timeGameEnded = System.nanoTime(); removeAll(); requestFocusInWindow(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}", "public void endGame() {\n dispose();\n System.out.println(\"Thank you for playing\");\n System.exit(0);\n }", "public void endGame()\n\t{\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tstopThreads();\n\t\tsendSco...
[ "0.78023607", "0.7757859", "0.76472014", "0.7637208", "0.7624124", "0.7616482", "0.7574844", "0.74965084", "0.74919534", "0.74866843", "0.74156225", "0.73306435", "0.7309458", "0.72890335", "0.7283881", "0.72734904", "0.72010666", "0.71909165", "0.7166785", "0.71598506", "0.7...
0.78024536
0
Decreases the CPU usage by some amount.
public void decreaseCpuUsage(double val) { cpuUsage -= val; if (cpuUsage < 0) { cpuUsage = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void increaseCpuUsage(double val) {\n \t\tcpuUsage += val;\n \n \t}", "public void decrementWorkload() {\n workload--;\n }", "void decUsage() {\n incUsage(-1);\n }", "public void decrease() {\r\n\r\n\t\tdecrease(1);\r\n\r\n\t}", "void decrease();", "void decrease();", "public void crunch...
[ "0.6607883", "0.6532489", "0.6416914", "0.6347082", "0.630077", "0.630077", "0.6260547", "0.61049783", "0.6017597", "0.6014067", "0.60029227", "0.60021645", "0.5939176", "0.5894287", "0.5845193", "0.5840273", "0.5824864", "0.5823306", "0.5821054", "0.5796702", "0.5796702", ...
0.8218385
0
Toggles the paused state of the game.
private void togglePaused() { if (!isPaused) { timeFirstPaused = System.nanoTime(); } else { // Offset the time spent paused. timeGameStarted += (System.nanoTime() - timeFirstPaused); } isPaused = !isPaused; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pauseToggle() {\r\n if(gameState == 1) {\r\n gameState = 0;\r\n }\r\n else gameState = 1;\r\n }", "public void pauseGame(boolean state) {\r\n paused = state;\r\n }", "public void pause() {\n paused = true;\n }", "public void pause() {\n ...
[ "0.8562623", "0.8245276", "0.7983081", "0.7983081", "0.7950894", "0.79390997", "0.786793", "0.78063035", "0.7780863", "0.77551454", "0.7748591", "0.766673", "0.76393837", "0.7598645", "0.7570809", "0.7564307", "0.7561378", "0.7561378", "0.75545585", "0.75376296", "0.74767923"...
0.83827263
1
Begins the game proper!
public void startGame() { timeGameStarted = System.nanoTime(); isStarted = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startGame() {\r\n this.setupGame();\r\n }", "private void startGame() {\r\n setGrid();\r\n setSnake();\r\n newPowerUp();\r\n timer.start();\r\n }", "@Override\n public void beginGame() {\n }", "public void beginGame() {\r\n data.gameState = 3;\r\...
[ "0.82059324", "0.8110383", "0.8096018", "0.8007517", "0.79450047", "0.7814868", "0.7795995", "0.77865237", "0.7736151", "0.7726226", "0.767043", "0.76610446", "0.76549214", "0.76549214", "0.76549214", "0.76501334", "0.7604597", "0.7588612", "0.75046295", "0.7489164", "0.74691...
0.7998163
4
What to do whilst the game is running. Called in the background loop thread. This method is strictly for things specific to each game. e.g. Collision detection which is universal does not go here. Creation of the junk items and popups does go here. The difficulty increases exponentially as the recycling bin collects mo...
private void gameCycle() { // The first item is the recycle bin RecycleBin rb = (RecycleBin) objects.get(0); double r = Math.random(); // Exponential difficulty for each item collected if (Math.pow(1.1, -0.002 * rb.getAmountCollected()) < r) { makeDialog(); } // Large items should be cr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loop() {\r\n\t\tfloat elapsed;\r\n\t\tfloat accumulated = 0f;\r\n\t\tfloat interval = 1f / TARGET_UPS;\r\n\t\tdouble time;\r\n\t\tdouble lastCall = System.nanoTime();\r\n\t\t\r\n\t\trunning = true;\r\n\t\t//loop while running and the window hasn't received a close command\r\n\t\twhile (runnin...
[ "0.6724682", "0.645844", "0.6224889", "0.6180912", "0.61028844", "0.6064546", "0.6045991", "0.6034066", "0.6003669", "0.5959638", "0.59311515", "0.5909237", "0.5908218", "0.58985674", "0.58977616", "0.58875495", "0.5878508", "0.585191", "0.5831847", "0.58229065", "0.58181965"...
0.7404407
0
Whether the game is paused.
public boolean isPaused() { return isPaused; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPaused(){\r\n\t\tif (this.pauseGame(_p)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "public boolean isPaused() {\n synchronized (lockForPause) {\n return (pause == true);\n }\n }", "public boolean isPaused() {\r\n return this.paused;\r\n ...
[ "0.89037335", "0.8651181", "0.8637587", "0.86168975", "0.8588373", "0.8571303", "0.8556869", "0.8534942", "0.8533753", "0.84941334", "0.84294015", "0.84115213", "0.83939743", "0.8376213", "0.8277083", "0.81554294", "0.8090999", "0.8006257", "0.78781134", "0.7868643", "0.78493...
0.86093014
4
whether the game has started
public boolean isStarted() { return isStarted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean gameStarted() {\n\t\treturn startGame;\n\t}", "protected boolean hasGameStarted() {\r\n return super.hasGameStarted();\r\n }", "public boolean isInGame() {\n return this.hasStarted;\n }", "public boolean gameStarted() {\r\n\t\treturn this.gameStarted;\r\n\t}", "public boolean\t...
[ "0.8596778", "0.8519178", "0.8224819", "0.8183855", "0.80329525", "0.7953819", "0.7853789", "0.77254766", "0.75981563", "0.75975454", "0.75843686", "0.7575223", "0.7549933", "0.7549933", "0.7348527", "0.7342655", "0.7342655", "0.73424315", "0.7258411", "0.7255601", "0.7210531...
0.7065875
26
Whether the game is over
public boolean isOver() { return isOver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean gameOver() \n {\n \treturn status() != GAME_NOT_OVER;\n }", "boolean isGameOver();", "boolean isGameOver();", "public boolean isOver() {\n \treturn status == GameStatus.victory || status == GameStatus.draw || status == GameStatus.quit;\n }", "boolean isGameOver() {\n\t\treturn...
[ "0.88844126", "0.8615938", "0.8615938", "0.85845214", "0.85842425", "0.8576849", "0.8576849", "0.851792", "0.8489394", "0.8489394", "0.84736586", "0.84564596", "0.8379665", "0.8372594", "0.8345596", "0.83454055", "0.83311415", "0.82800055", "0.82756615", "0.82411444", "0.8232...
0.7517301
70
Draws a BSOD with game information, signifying a game over.
private void drawGameOverScreen(Graphics g) { g.setColor(Color.blue); g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(Color.white); g.setFont(new Font("Courier New", Font.PLAIN, 18)); g.drawString("A problem has been detected and your computer", 50, 30); g.drawString("has been shut down to preve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawGameOverBanner(Graphics g){\n\t\tg.setColor(Color.BLUE);\n\t\tg.fillRect(0,0,Frame_Size_X, Frame_Size_Y);\n\t\tg.setColor(Color.BLACK);\n\t\tg.setFont(bigFont);\n\t\tif(playerWon){\n\t\t\tg.drawString(\"You Win!\",Frame_Size_X/2-100, Frame_Size_Y/2);\n\t\t} else{\n\t\t\tg.drawString(\"You Died!\",...
[ "0.7196273", "0.68001264", "0.6729035", "0.67104346", "0.6708309", "0.66865075", "0.66691077", "0.6629814", "0.6581777", "0.6574205", "0.6547701", "0.6532874", "0.6520937", "0.6451526", "0.64474183", "0.6445413", "0.6423061", "0.6422696", "0.63867456", "0.6376489", "0.6366717...
0.71750695
1
Loads the questions from QuestionBank.txt. The format is Question Choice Choice Choice Choice And the answer will be marked with two hyphens (""). Deviation will cause an exception to be raised.
private void loadQuestions() throws IOException, FileNotFoundException { questions = new ArrayList<>(); BufferedReader br = new BufferedReader(new FileReader("QuestionBank.txt")); String question; String[] choices = new String[4]; int correctIndex = 0; question = br.readLine(); while (questio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadFromFile(ArrayList<Question> questionsList) {\n String tempString = \"\"; // Holds the \"identifier\" of the line\n String question = \"\"; // text containing actual question\n ArrayList<I...
[ "0.67015153", "0.65061665", "0.638972", "0.6372021", "0.63654107", "0.6338595", "0.6323633", "0.63046765", "0.62483215", "0.6088081", "0.60646987", "0.6024496", "0.60024273", "0.59325516", "0.5927598", "0.5881459", "0.5865874", "0.5855336", "0.58355284", "0.577539", "0.573961...
0.7931711
0
TODO Autogenerated method stub
@Override public void init(ServletConfig config) throws ServletException { bookService = new BookService(); }
{ "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 void save(HttpServletRequest request, HttpServletResponse response) throws IOException { Book book = new Book(); book.setId(bookService.list().size()+1); book.setBookname(request.getParameter("bookname")); book.setAuthor(request.getParameter("author")); book.setPrice(Float.parseFloat(request.getPa...
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
private void list(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/html;charset=UTF-8"); response.setCharacterEncoding("UTF-8"); PrintWriter out = response.getWriter(); out.println("<table width=400 border=1>"); out.println("<tr><th>���</th><...
{ "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
Instantiates a new class with grade.
public ClassWithGrade(float grade, String name) { m_grade = grade; m_className = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public grade(){}", "public GradeRubric() {\r\n\t}", "public Course (String courseCode, String department, int grade) {\r\n this.courseCode = courseCode;\r\n this.department = department;\r\n this.grade = grade;\r\n existingClasses = new ArrayList<Classroom>();\r\n numClasses = 0;\r\n ...
[ "0.7542718", "0.65834314", "0.6365163", "0.63003", "0.6257096", "0.622043", "0.61760867", "0.61741203", "0.61099035", "0.6087575", "0.60663676", "0.60398495", "0.5994327", "0.59762573", "0.5952051", "0.59431374", "0.5911041", "0.5904401", "0.58963495", "0.58857876", "0.588300...
0.7226461
1
Object that create a new game controller. Please note that this interface is agnostic to the specific game controller
public interface GameControllerFactory { /** * Creates a new game controller that will be hosted by the given lobby controller. */ GameController makeGameController(LobbyController lobbyController); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GameController makeGameController(LobbyController lobbyController);", "private void createGameController() {\n\t\tLog.i(LOG_TAG, \"createGameController\");\n\n\t\tBundle intent = this.getIntent().getExtras();\n\t\t\n\t\tthis.punchMode = intent.getString(\"punchMode\");\n\t\t\n\t\tthis.gameController = new TimeTr...
[ "0.7173845", "0.7046143", "0.7009207", "0.6897225", "0.66752505", "0.6589622", "0.64804775", "0.64448285", "0.64301085", "0.64279485", "0.6375222", "0.6368925", "0.6326474", "0.6291489", "0.625456", "0.62109137", "0.617789", "0.6174153", "0.6153636", "0.61229557", "0.60983425...
0.7046405
1
Creates a new game controller that will be hosted by the given lobby controller.
GameController makeGameController(LobbyController lobbyController);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GameControllerFactory {\n\n /**\n * Creates a new game controller that will be hosted by the given lobby controller.\n */\n GameController makeGameController(LobbyController lobbyController);\n\n}", "public void createGame()\n {\n //call Client Controller's setState metho...
[ "0.75415874", "0.6731252", "0.6397966", "0.6243641", "0.60768694", "0.5877845", "0.5760085", "0.5576679", "0.55727035", "0.55680907", "0.55144876", "0.5506354", "0.546916", "0.54639405", "0.5444201", "0.5385745", "0.5383302", "0.5365913", "0.5365856", "0.53581804", "0.5357430...
0.76595825
0
Nasty bug fix; no thumbnails references here = null pointers
public void setDefaultSettings() { this.IndexerEffort = 0; this.indexZIPFiles = true; this.thumbnailsMatrix = "64"; this.SaveThumbnails = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getThumbnail();", "private void setUpVideoThumbnail() {\n Pictures pictures = video.getPictures();\n if (pictures != null) {\n List<Size> sizes = pictures.getSizes();\n if (sizes != null && sizes.size() > 0) {\n Size size = sizes.get(sizes.size() -...
[ "0.6002904", "0.5985573", "0.59429544", "0.5918396", "0.5790529", "0.575611", "0.5737271", "0.5732632", "0.5726594", "0.570182", "0.5667838", "0.5662941", "0.56586903", "0.5652249", "0.5630734", "0.5608881", "0.5607492", "0.5605291", "0.55954266", "0.55777746", "0.5570324", ...
0.0
-1
Creates a MidiDeviceStatus with zero for all port open counts
MidiDeviceStatus(android.media.midi.MidiDeviceInfo deviceInfo) { throw new RuntimeException("Stub!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newDeviceStatus(String deviceId, Boolean statusOK);", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "private void createStatusNotificationChannel(){\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n statusChannel = new Notifica...
[ "0.5704443", "0.5345946", "0.52252024", "0.51194566", "0.5106937", "0.4936046", "0.48415256", "0.478722", "0.47476137", "0.4709625", "0.46806556", "0.46607453", "0.46553126", "0.464596", "0.46136975", "0.46082512", "0.45911327", "0.4577216", "0.4525948", "0.45132208", "0.4510...
0.6028455
0
Returns true if an input port is open. An input port can only be opened by one client at a time.
public boolean isInputPortOpen(int portNumber) { throw new RuntimeException("Stub!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isInputPort() {\n\t\tif (getFlexoPort() != null) {\n\t\t\treturn getFlexoPort().isInPort();\n\t\t}\n\t\treturn false;\n\t}", "public boolean openPort() {\n comPort.openPort();\r\n return comPort.isOpen();\r\n }", "public boolean isOpen(int port)\n {\n try(Datag...
[ "0.75335383", "0.7286582", "0.7235715", "0.7232058", "0.7232058", "0.70260316", "0.6945496", "0.6765904", "0.6720713", "0.663859", "0.6328788", "0.63216513", "0.63071233", "0.6304615", "0.6275932", "0.6214766", "0.61687356", "0.6142241", "0.61372584", "0.6119885", "0.6115274"...
0.83682275
0
Returns the number of clients currently connected to the specified output port. Unlike input ports, an output port can be opened by multiple clients at the same time.
public int getOutputPortOpenCount(int portNumber) { throw new RuntimeException("Stub!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOutPortCount() {\n\t\treturn rightPortCount;\n\t}", "int getConnectionsCount();", "Integer getConnectorCount();", "public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}", "public int getNumConnects() {\n\t\treturn numConnects;\n\t}", "int getDelegatedOutputsCount();", ...
[ "0.6299737", "0.61785847", "0.6072198", "0.60047054", "0.5912695", "0.58494854", "0.58479744", "0.5827091", "0.5783251", "0.57679117", "0.57636184", "0.5724562", "0.5699533", "0.5698545", "0.56579477", "0.56501925", "0.55876285", "0.5580358", "0.55734086", "0.55734086", "0.55...
0.67815286
0
this plugin gets installed via the 'file://' mechanism; does not work on Windows due to the Unixstyle path separator
@Test public void testMapperSizePlugin() throws ElasticsearchClientException { Assume.assumeTrue(SystemUtils.IS_OS_WINDOWS == false); // create an index and enable the mapper _size attribute client.put("/plugins", "{ \"mappings\": { \"es\": { \"_size\": { \"enabled\": true } } }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected String getFileSeparator() { return \"/\"; }", "public FilePlugin()\n {\n super();\n \n //create the data directory if it doesn't exist\n File dataDir = new File(FilenameUtils.dataDir);\n if(!dataDir.exists()) FilePersistenceUtils.makeDirs(dataDir);\n...
[ "0.59202284", "0.54442793", "0.54213715", "0.53858435", "0.53436583", "0.53263855", "0.5325679", "0.531383", "0.5182817", "0.5166793", "0.5129957", "0.5105325", "0.50963247", "0.50937986", "0.50806046", "0.5066061", "0.5039072", "0.50314593", "0.50300455", "0.50273645", "0.50...
0.0
-1
create an index with custom analyzer
@Test public void testAnalysisPhoneticPlugin() throws ElasticsearchClientException { client.put("/phonetic_sample", "{"+ "\"settings\": {"+ "\"index\": {"+ "\"analysis\": {"+ "\"analyzer\": {"+ "\"my_an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "public void createIndex(Configuration configuration){\n }", "LuceneMemoryIndex createLuceneMemoryIndex();", "public SimpleIndexFactory() {\n\t}", "boolean createIndex(String indexName);", "@Ignore\n @Test\n public void...
[ "0.78574777", "0.675663", "0.6687618", "0.6628334", "0.6487038", "0.64864635", "0.646195", "0.6457939", "0.644164", "0.63670975", "0.6257215", "0.6252294", "0.6250028", "0.62457055", "0.61771274", "0.61594623", "0.6086507", "0.603571", "0.60254806", "0.60061455", "0.6003702",...
0.0
-1
Creates an simple item storing information about a coverage at a certain location
private CoverageInformationItem(Location location, long count, String modelName, int layer) { this.location = location; this.locationString = this.location.toString(); this.count = count; this.modelName = modelName; this.layer = layer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Location getLocationByCoverageType(String coverageType, String spatialCoverage);", "ShipmentItem createShipmentItem();", "private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\")...
[ "0.5888419", "0.58520436", "0.5745058", "0.5655438", "0.5604367", "0.55877244", "0.55877244", "0.5549727", "0.55397534", "0.5515161", "0.5515161", "0.55075276", "0.54913324", "0.54877657", "0.54487354", "0.5410775", "0.53950274", "0.53819585", "0.5338118", "0.5296997", "0.528...
0.6268045
0
If two CCI are colocated (overlapping, nested, ...), the layer indicates which one is considered more important.
public int getLayer() { return layer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isTransitive();", "public float compare(Cluster other) {\n \treturn compare(center, other.center);\n }", "int getLayer();", "@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // This is similar to WedgeContainsOrCrosses, except that we want to\...
[ "0.5314012", "0.51651484", "0.5080555", "0.50422394", "0.49975187", "0.48752904", "0.4855231", "0.48490515", "0.48422873", "0.4821672", "0.4797929", "0.47776297", "0.47731206", "0.4761539", "0.4744202", "0.47404888", "0.47315738", "0.47281623", "0.4726037", "0.47154745", "0.4...
0.0
-1
Parses the coverage information item from a string
public static CoverageInformationItem parse(String outputMessage, String modelName) { // " line 84, col 32 to line 85, col 73 of module AtomicBakery: 1012492" outputMessage = outputMessage.trim(); final int layer = outputMessage.lastIndexOf(TLCGlobals.coverageIndent) + 1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static Item parseStringToItem(String str) {\n String[] strList = str.split(\",\");\n if (strList.length != 3) {\n System.err.println(\"File line data is not in the correct format.\");\n return null;\n }\n\n //find the index of the place where the cost num...
[ "0.63938826", "0.5247222", "0.5232758", "0.52254194", "0.51656926", "0.5128484", "0.5120317", "0.50861526", "0.50368017", "0.5024429", "0.50024146", "0.49989328", "0.4978513", "0.4972202", "0.4959611", "0.49490118", "0.4933509", "0.4930657", "0.49031126", "0.48963413", "0.485...
0.5757693
1
Parses coverage timestamp from the string
public static String parseCoverageTimestamp(String outputMessage) { return outputMessage.substring(outputMessage.lastIndexOf(AT) + AT.length()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Date parseTimestampWithSeconds(String timestring) throws ParseException{\r\n boolean containsT = timestring.contains(\"T\");\r\n boolean containsSpace = timestring.contains(\" \");\r\n if(!containsT && containsSpace){\r\n try {\r\n Date date = formatSec...
[ "0.6312532", "0.6120957", "0.6107335", "0.59884155", "0.5970462", "0.58851147", "0.58696896", "0.5801193", "0.58010703", "0.57389796", "0.5721839", "0.57171345", "0.5706628", "0.5693645", "0.5650998", "0.56085545", "0.5607042", "0.55596805", "0.552851", "0.5513697", "0.551326...
0.6901121
0
The name of the model.
public String getModelName() { return modelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName()\n {\n return _model.getName();\n }", "public String getName()\n\t{\n\t\treturn _model.getName();\n\t}", "public String getModelName() {\n\t\treturn modelName;\n\t}", "public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}", "@Override\n public Str...
[ "0.85463554", "0.85346055", "0.8203427", "0.7352941", "0.72970027", "0.7217533", "0.7157476", "0.7141907", "0.70798767", "0.7047931", "0.70058864", "0.69740534", "0.69693273", "0.6965071", "0.6957409", "0.6952312", "0.69475055", "0.69475055", "0.69475055", "0.6938036", "0.693...
0.82704484
2
Create a new PassiveEntity object with basic entity properties to be used as an obstacle.
public PassiveEntity(Location loc, String imageName, int size) { super(loc); addHealth = 0; addSpeed = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "protected Entity createEntity()\n\t{\n\t\tLane lane = getLane();\n\t\t//sanity check\n\t\tif( lane instanceof PedestrianLane){\n\t\t\tPedestrianLane pLane = (PedestrianLane) lane;\n\t\t\t\n\t\t\t//create the pedestrian\n\t\t\t//Range of values within the lane a Pedestrian can be spawned...
[ "0.6492486", "0.6353814", "0.62477547", "0.6218823", "0.6203353", "0.61757785", "0.6170606", "0.61613816", "0.60952795", "0.60643154", "0.6032763", "0.6031482", "0.60018986", "0.5949886", "0.5949886", "0.59194297", "0.5914277", "0.5888188", "0.58453894", "0.5802815", "0.57976...
0.6390884
1
Create a new PassiveEntity object with additional health and additional speed values for use in powerups.
public PassiveEntity(Location loc, float addHealth, float addSpeed) { super(loc); this.addHealth = addHealth; this.addSpeed = addSpeed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PassiveEntity(Location loc, String imageName, int size)\n {\n super(loc);\n addHealth = 0;\n addSpeed = 0;\n }", "@Builder\n public PassEntity(Long id,String name, Integer price, String passType, Integer duration, Integer timeDuration,String passTimeDurationType, boolean avai...
[ "0.6704972", "0.62555057", "0.59063274", "0.55316573", "0.5526209", "0.53850055", "0.53130096", "0.53087884", "0.5304368", "0.5280366", "0.52783024", "0.52782977", "0.5252335", "0.525043", "0.5222285", "0.518945", "0.518106", "0.51737285", "0.5167429", "0.51590866", "0.514723...
0.7456893
0
Sets the amount of additional health the entity can provide to an active entity.
public void setAddHealth(float addHealth) { this.addHealth = addHealth; setChanged(); notifyObservers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addHealth(int amt) {\n currentHealth = currentHealth + amt;\n }", "private void setHealth() {\n eliteMob.setHealth(maxHealth = (maxHealth > 2000) ? 2000 : maxHealth);\n }", "public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }", "@Ov...
[ "0.7430319", "0.725086", "0.71564615", "0.71517414", "0.7088901", "0.6996438", "0.69261205", "0.68758947", "0.6837712", "0.68183804", "0.674576", "0.67447907", "0.6714622", "0.6690896", "0.6652235", "0.66382915", "0.66323006", "0.65885264", "0.6519671", "0.6500016", "0.640090...
0.71892047
2