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
TODO Autogenerated method stub
@Override public void draw(Graphics g) { }
{ "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
your code goes here
public static void main (String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); int t =sc.nextInt(); while(t!=0){ int n = sc.nextInt(); int sum = 3; int ans = 0; if(n==2){ System.out.println(1); //break; } else{ for(in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void themesa()\n {\n \n \n \n \n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Overr...
[ "0.57286084", "0.5721873", "0.5685595", "0.5611692", "0.5611692", "0.5596448", "0.5573983", "0.555654", "0.55509007", "0.5543824", "0.551758", "0.55170584", "0.54959154", "0.5489394", "0.54819673", "0.54768246", "0.5474171", "0.5460018", "0.5460018", "0.5429363", "0.5428646",...
0.0
-1
This is the default constructor
public CrearCuenta(UsuarioVO usu) { super(); logger.trace("Constructor CrearCuenta"); initialize(); this.setExtendedState(JFrame.MAXIMIZED_BOTH); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); usuario = usu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "defaultConstructor(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Orbiter() {\n }", "public Pitonyak_09_02() {\r\n }", "public PSRelation()\n {\n }", "p...
[ "0.85315686", "0.8274922", "0.75848484", "0.74773645", "0.7456932", "0.7447545", "0.7443651", "0.7441528", "0.7410326", "0.74039483", "0.7391621", "0.7377517", "0.73672515", "0.7351425", "0.73242426", "0.7324195", "0.73132765", "0.73016304", "0.7279156", "0.7262864", "0.72578...
0.0
-1
This method initializes this
private void initialize() { this.setSize(530, 329); this.setContentPane(getJContentPane()); this.setTitle("JFrame"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void init()\n\t\t{\n\t\t}", "public void initialize()\n {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void init() {\n \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "protected void initialize() {\n \t\n }", "@Override\r\n\tpub...
[ "0.8354825", "0.8309513", "0.8283604", "0.8257773", "0.8200911", "0.8199891", "0.8150085", "0.812387", "0.8104957", "0.8103473", "0.8103473", "0.8103473", "0.80656415", "0.8054776", "0.8038111", "0.8030163", "0.8019929", "0.7993678", "0.7993678", "0.7987857", "0.798652", "0...
0.0
-1
This method initializes jContentPane
private JPanel getJContentPane() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); jContentPane.add(getPanelCrearCuenta(), BorderLayout.CENTER); } return jContentPane; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", ...
[ "0.80564976", "0.79863834", "0.781657", "0.780102", "0.77667063", "0.75706494", "0.7561094", "0.75221556", "0.75199485", "0.7516095", "0.74889266", "0.74818385", "0.7474047", "0.745395", "0.7450439", "0.74450225", "0.74051523", "0.73895437", "0.7384667", "0.73795295", "0.7379...
0.7026264
50
This method initializes PanelCrearCuenta
private JPanel getPanelCrearCuenta() { if (PanelCrearCuenta == null) { GridBagConstraints gridBagConstraints51 = new GridBagConstraints(); gridBagConstraints51.gridx = 1; gridBagConstraints51.insets = new Insets(20, 0, 0, 0); gridBagConstraints51.ipadx = 60; gridBagConstraints51.ipady = 20; g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PanelCompra() {\n initComponents();\n lblNick.setText(PanelCuenta.cuenta.getNickName());\n lblNombre.setText(PanelCuenta.cuenta.getUsuario().getNombre());\n lblDireccion.setText(PanelCuenta.cuenta.getUsuario().getDireccion());\n llenarTabla();\n }", "public creacionem...
[ "0.8123539", "0.7479528", "0.7314282", "0.7307762", "0.72565013", "0.7217226", "0.7162295", "0.70966214", "0.7070857", "0.70695686", "0.70684636", "0.70514745", "0.7049925", "0.7037955", "0.7013972", "0.7007965", "0.7001244", "0.69884664", "0.69884664", "0.6959466", "0.695206...
0.74758524
2
This method initializes jTextFieldNick
private JTextField getJTextFieldNick() { if (jTextFieldNick == null) { jTextFieldNick = new JTextField(); } return jTextFieldNick; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JTextField getJTextFieldNick() {\r\n\t\tif (jTextFieldNick == null) {\r\n\t\t\tjTextFieldNick = new JTextField();\r\n\t\t\tjTextFieldNick.addKeyListener(new KeyListener() {\r\n\t\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\t\tif (jTextFieldNick.getText().length() == LIMITE) {\r\n\t\t\t\t\t\te.consume...
[ "0.7070939", "0.69396144", "0.65096754", "0.63964885", "0.6374724", "0.62850565", "0.6260265", "0.62235636", "0.61937994", "0.6185768", "0.618547", "0.6170933", "0.61550236", "0.61374825", "0.6134483", "0.6133507", "0.61235106", "0.6072849", "0.6046705", "0.6037516", "0.60336...
0.70667684
1
This method initializes jTextFieldNombre
private JTextField getJTextFieldNombre() { if (jTextFieldNombre == null) { jTextFieldNombre = new JTextField(); } return jTextFieldNombre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InstrutorCadastrarTela() {\n initComponents();\n //Limite de caracateres e apenas caracteres permitidos\n jTextFieldNome.setDocument(new classesBasicas.CaracterLimitePermitido(60));\n //Limitando os caracteres para (N), independende de ser numero ou letras\n jTextFieldRg.s...
[ "0.70037174", "0.68846226", "0.68280345", "0.67621756", "0.67239505", "0.6708406", "0.670133", "0.6701326", "0.66228205", "0.6608763", "0.65889066", "0.6581982", "0.6570472", "0.65674794", "0.655239", "0.65427804", "0.65354955", "0.65214056", "0.65191114", "0.6516514", "0.650...
0.7436366
0
This method initializes jTextFieldApellido
private JTextField getJTextFieldApellido() { if (jTextFieldApellido == null) { jTextFieldApellido = new JTextField(); } return jTextFieldApellido; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTxtapellido(String txtapellido) {\n this.txtApellido.setText(txtapellido);\n }", "public void setApellidos(String apellidos) { this.apellidos = apellidos; }", "public void setApellidos(String p) { this.apellidos = p; }", "public void setApellido(String apellido) {\n\t\tthis.apellido ...
[ "0.6350052", "0.63225234", "0.62995225", "0.6239137", "0.6211348", "0.6175539", "0.6110018", "0.60598224", "0.60038245", "0.5979801", "0.5959229", "0.5947811", "0.5942256", "0.5887152", "0.58834195", "0.58603406", "0.58387434", "0.57950526", "0.5783702", "0.5770909", "0.57430...
0.6997691
0
This method initializes jTextFieldPais
private JTextField getJTextFieldPais() { if (jTextFieldPais == null) { jTextFieldPais = new JTextField(); } return jTextFieldPais; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initText() {\n// urlText.setText(jPAConfig.getUrl());\n// userText.setText(jPAConfig.getUser());\n// dbNameText.setText(jPAConfig.getDbName());\n// portText.setText(jPAConfig.getPort());\n// passText.setText(jPAConfig.getPassword());\n }", "public JpSetting() {\...
[ "0.70462495", "0.6702081", "0.66946626", "0.6587556", "0.64946043", "0.6490103", "0.6463622", "0.6446632", "0.6433859", "0.6428471", "0.6378625", "0.6371487", "0.63560236", "0.6354042", "0.63409925", "0.63072044", "0.63057035", "0.63025194", "0.62967515", "0.62837267", "0.626...
0.70745444
0
This method initializes jPasswordFieldPWD
private JPasswordField getJPasswordFieldPWD() { if (jPasswordFieldPWD == null) { jPasswordFieldPWD = new JPasswordField(); } return jPasswordFieldPWD; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPasswordField getJTextFieldPasswd() {\r\n\t\tif (jTextFieldPasswd == null) {\r\n\t\t\tjTextFieldPasswd = new JPasswordField();\r\n\t\t\tjTextFieldPasswd.setBounds(new Rectangle(90, 82, 91, 23));\r\n\t\t}\r\n\t\treturn jTextFieldPasswd;\r\n\t}", "public void setPasswordField(final JPasswordField pwPasswo...
[ "0.69747174", "0.69676685", "0.690517", "0.6855873", "0.6712993", "0.6684317", "0.666915", "0.6583071", "0.6543341", "0.6510754", "0.6505842", "0.64864254", "0.64856297", "0.6471571", "0.6428245", "0.64237875", "0.64212006", "0.6415021", "0.64049697", "0.6389218", "0.6377308"...
0.79778945
0
This method initializes jPasswordFieldConfirmacion
private JPasswordField getJPasswordFieldConfirmacion() { if (jPasswordFieldConfirmacion == null) { jPasswordFieldConfirmacion = new JPasswordField(); } return jPasswordFieldConfirmacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangePassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n jPasswordField2.setEnabled(false);\n jPasswordField3.setEnabled(false);\n }", "public passwordForm() {\n initComponents();\n }", "public ChangePasswo...
[ "0.69463056", "0.68353534", "0.6668763", "0.6641338", "0.6608975", "0.64217484", "0.64092714", "0.6407161", "0.63886523", "0.6378973", "0.63779086", "0.6352985", "0.63524014", "0.63490903", "0.6332096", "0.6329098", "0.6302961", "0.62437624", "0.6224372", "0.6224308", "0.6196...
0.7823086
0
This method initializes jButtonCrear
private JButton getJButtonCrear() { if (jButtonCrear == null) { jButtonCrear = new JButton(); jButtonCrear.setText(BOTONCREAR); jButtonCrear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { crearCuenta(); } }); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\r\n\r\n\t\tfrmHistoriasDeZagas = new JFrame();\r\n\t\tfrmHistoriasDeZagas.getContentPane().setBackground(Color.BLACK);\r\n\t\tfrmHistoriasDeZagas.setTitle(\"Historias de Zagas\");\r\n\t\tfrmHistoriasDeZagas.setBackground(Color.WHITE);\r\n\t\tfrmHistoriasDeZagas\r\n\t\t\t\t.setIconImage(...
[ "0.7376827", "0.7218782", "0.70585376", "0.70131373", "0.69928116", "0.697917", "0.6977143", "0.69333005", "0.69133604", "0.68990725", "0.68926936", "0.6891699", "0.6889954", "0.6851395", "0.68434", "0.6824551", "0.6822235", "0.68205905", "0.6814771", "0.6758793", "0.6739172"...
0.70849854
2
This method initializes jButtonSalir
private JButton getJButtonSalir() { if (jButtonSalir == null) { jButtonSalir = new JButton(); jButtonSalir.setText(BOTONSALIR); jButtonSalir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { volver(); } }); } retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButtonImportarProductosVenta = new javax.swing.JButton();\n jButtonAdministrarPac = new javax.swing.JButton();\n jButton...
[ "0.7216521", "0.6883549", "0.6814309", "0.67887944", "0.6783199", "0.6718787", "0.6716906", "0.6714292", "0.66878206", "0.6683002", "0.6681066", "0.66620624", "0.6657345", "0.66505986", "0.6647328", "0.6646913", "0.66464406", "0.66423947", "0.6626889", "0.6626615", "0.6605096...
0.66637206
11
This method initializes jButtonCrearCuentaAdmin
private JButton getJButtonCrearCuentaAdmin() { if (jButtonCrearCuentaAdmin == null) { jButtonCrearCuentaAdmin = new JButton(); jButtonCrearCuentaAdmin.setText(BOTONCREARADMIN); jButtonCrearCuentaAdmin .addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Frame_Ajouter_Administrateur() {\n initComponents();\n }", "public adminUsuarios() {\n initComponents();\n showUsuarios();\n }", "public VentanaAdministradorVista() {\n initComponents();\n }", "public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnul...
[ "0.70809066", "0.6936903", "0.6922561", "0.689284", "0.68915325", "0.6866233", "0.6865017", "0.6860328", "0.68432856", "0.68008024", "0.67991143", "0.67605615", "0.6749323", "0.6668066", "0.66557175", "0.6655292", "0.66534853", "0.6652642", "0.6651618", "0.6642637", "0.663343...
0.7338003
0
METODO QUE RECIBE UN ARRAY DE CHAR Y DEVUELVE UN STRING
public static String deCharArrayAString(char[] array) { String aux = ""; for (int i = 0; i < array.length; i++) { aux = aux + array[i]; } return aux; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canUseCharArrays()\n/* */ {\n/* 405 */ return true;\n/* */ }", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n i...
[ "0.6027236", "0.6002238", "0.5956316", "0.5839477", "0.5748479", "0.5705978", "0.56438136", "0.56405306", "0.5442366", "0.5441674", "0.5400191", "0.5386095", "0.5360256", "0.53098226", "0.530401", "0.52986234", "0.5294952", "0.5293739", "0.52684224", "0.52628887", "0.52566767...
0.5842238
3
the number of line segments
public int numberOfSegments() { return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numberOfSegments() {\n return lineSegs.length;\n }", "public int numberOfSegments() {\n return lineSegments.size();\n }", "public int numberOfSegments() {\n return lineSegments.size();\n }", "public int numberOfSegments() {\n return lineSegments.length;\n }"...
[ "0.8383318", "0.83517814", "0.83517814", "0.8221763", "0.80951333", "0.79380965", "0.787432", "0.7798331", "0.76167154", "0.74910253", "0.7481031", "0.74531835", "0.7438764", "0.7392304", "0.73094493", "0.7247738", "0.7244732", "0.721197", "0.7200223", "0.7159518", "0.713085"...
0.7288137
15
An FSM is used to represent an instance of a finite state machine which has a transition function represented by an instance of StateEngine. An instance of an FSM may be created either by calling StateEngine.makeFSM( startState ) on a state engine, or by extending FSMImpl and using a constructor. Using FSMImpl as a bas...
public interface FSM { /** * Get the current state of this FSM. */ public State getState(); /** * Perform the action and transition to the next state based on the current state of the FSM and the input. */ public void doIt(Input in); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FSM() {\r\n \t\tstates = new HashMap<String, State>();\r\n \t\ttransitions = new LinkedHashMap<String, Transition>();\r\n \t}", "public interface FSMListener extends FSMInteractor\n{\n\tpublic void update();\n}", "public interface IFsm<T>\n extends IEventProcessor<IFsm>, IStateEnterListener, ISta...
[ "0.69922066", "0.6831345", "0.65288943", "0.6375857", "0.63353264", "0.6308191", "0.6076271", "0.6055851", "0.5871608", "0.5807442", "0.57645535", "0.5718373", "0.5646545", "0.5471551", "0.5432652", "0.53938687", "0.5378221", "0.5317708", "0.5268916", "0.52513885", "0.5238505...
0.75409734
0
Get the current state of this FSM.
public State getState();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public State getCurrentState() {\n \t\treturn currentState;\n \t}", "public State getCurrentState() {\n return currentState;\n }", "public State getCurrentState() {\n\t\treturn currentState;\n\t}", "public State getCurrentState() {\n\t\treturn currentState;\n\t}", "public S getState() {\n ...
[ "0.83280545", "0.82827795", "0.82816744", "0.82816744", "0.8260567", "0.8247316", "0.8231998", "0.81636167", "0.8054788", "0.8030584", "0.8030584", "0.80267465", "0.7995796", "0.7978284", "0.79349697", "0.79251695", "0.79251695", "0.79251695", "0.79251695", "0.79251695", "0.7...
0.82300824
8
Perform the action and transition to the next state based on the current state of the FSM and the input.
public void doIt(Input in);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void advance(){\n\t\tswitch(state){\n\t\t\n\t\tcase LOGINID: \n\t\t\tif(currentInput.length() > 0){ //not empty \n\t\t\t\tif(Bank.accountExists(Integer.parseInt(currentInput))){ //shouldn't need to check if int since input can only be int\n\t\t\t\t\taccountID = Integer.parseInt(currentInput);\n\t\t\t\t\tlog...
[ "0.6801995", "0.67641675", "0.6680594", "0.6616346", "0.65676934", "0.6485494", "0.6461594", "0.6347663", "0.62323976", "0.62208086", "0.6201956", "0.61946934", "0.61336845", "0.6109864", "0.60278183", "0.60238546", "0.5999277", "0.5988946", "0.59603846", "0.5941859", "0.5903...
0.0
-1
/ Determines if this family member has the name passed in arguments
public boolean is(String fName, String lName) { return firstName.equals(fName) && lastName.equals(lName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boo...
[ "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794", "0.72688794"...
0.5614167
92
TODO Autogenerated method stub
@Override public int hashCode() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean equals(Object arg0) { return false; }
{ "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
Create the ItemStack and get the ItemMeta
public static ItemStack JudgeBook() { ItemStack JudgeBook = new ItemStack(Material.BOOK_AND_QUILL); ItemMeta JudgeBookMeta = JudgeBook.getItemMeta(); //Set Lore/Name/Anything Else here JudgeBookMeta.setDisplayName("Judge Book"); //Append the Meta to the Item JudgeBook.setItemMeta(JudgeBookMeta); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ItemStack generateItem(){\n\t\tItemStack item = new ItemStack(material);\n\t\tif(damage >= 0) item.setDurability(damage);\n\t\t\n\t\tif(itemName.isEmpty() && loreLine.isEmpty()) return item;\n\t\t\n\t\tItemMeta meta = item.getItemMeta();\n\t\tif(meta == null) return item;\n\t\t\n\t\tmeta.setDisplayName(item...
[ "0.7472296", "0.71602243", "0.6981631", "0.6949555", "0.68100417", "0.6758343", "0.6722869", "0.6716552", "0.6467457", "0.6274152", "0.6194587", "0.61141336", "0.6068218", "0.6062784", "0.606262", "0.606046", "0.60419154", "0.60300034", "0.6027376", "0.6009047", "0.5958", "...
0.5636389
42
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } if (id == R.id.action_load_json) { new JsonParser(TwitchEmotesGlobal.JSO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7905683", "0.7805918", "0.7766949", "0.77280927", "0.76328415", "0.76229936", "0.7585238", "0.75312966", "0.7488599", "0.7458191", "0.7458191", "0.74387765", "0.74228644", "0.7403772", "0.7392029", "0.7387223", "0.73796284", "0.73707056", "0.7362735", "0.7356231", "0.73459...
0.0
-1
When a block is successfully run, perform actions based on the block
private static void onSuccess(@Nullable final Entity entity, @NotNull final ServerWorld world, @NotNull final Hand hand, @NotNull final BlockPos blockPos, @Nullable final Direction blockFace) { // Log the block being broken BlockBreakCallback.logBlockBreak(entity, world, blockPos); // T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String buildingBlockAction() throws Exception {\n\t\t\t\t\n\t return \"success\";\n\t }", "public void ifSuccessful(Consumer<T> consumer) {\n if (isSuccessful()) {\n consumer.accept(result);\n }\n }", "void notifyBlockComplete(MessageSnapshot snapshot);", "public void...
[ "0.5913131", "0.58487767", "0.5800939", "0.5741624", "0.5714023", "0.56781256", "0.561338", "0.5597977", "0.5504066", "0.549334", "0.5481845", "0.54719204", "0.545432", "0.545432", "0.5375244", "0.5367316", "0.5358596", "0.5337242", "0.53293014", "0.529648", "0.5295939", "0...
0.4997596
52
When a block break is failed, perform actions based on the block
private static void onFailure(@Nullable final Entity entity, @NotNull final ServerWorld world, @NotNull final Hand hand, @NotNull final BlockPos blockPos, @Nullable final Direction blockFace) { BlockState blockState = world.getBlockState(blockPos); if (entity instanceof ServerPlayerEntity player) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@EventHandler(priority = EventPriority.HIGH)\n public void onAttemptBreakLockedBlocks(BlockBreakEvent event) {\n if (event.isCancelled()) return;\n Block block = event.getBlock();\n Player player = event.getPlayer();\n if (LocketteProAPI.isLocked(block) || LocketteProAPI.isUpDownLock...
[ "0.6464559", "0.6425608", "0.63248426", "0.6316747", "0.62659276", "0.6116204", "0.6072082", "0.6025194", "0.6022398", "0.60147583", "0.5895531", "0.583431", "0.5820883", "0.58044463", "0.57865644", "0.57794094", "0.57284564", "0.5711177", "0.5640237", "0.560388", "0.55946225...
0.0
-1
Log the event of our block being broken into SQL
private static void logBlockBreak(@Nullable final Entity entity, @NotNull final ServerWorld world, @NotNull final BlockPos blockPos) { EventLogger.log(new BlockEvent(entity, EventLogger.BlockAction.BREAK, world.getBlockState(blockPos).getBlock(), blockPos)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logSQL(BindedCompiledSQL bsql, String sqlStatment, long nanoTime) ;", "public void logSQL(BindedCompiledSQL bsql, long nanoTime) ;", "private void traceSqlRequest(String sql) {\n\t\tDatabaseInfo databaseInfo = oneAgentSdk.createDatabaseInfo(\"myCoolDatabase\", \"UnsupportedDatabaseVendor\", Channel...
[ "0.6381075", "0.62213266", "0.6020266", "0.5889251", "0.5838728", "0.5565545", "0.55552626", "0.55308515", "0.53696156", "0.53619283", "0.53447074", "0.53390133", "0.5327686", "0.53057456", "0.5298233", "0.52620846", "0.52387625", "0.5237369", "0.5229968", "0.5203499", "0.520...
0.5877191
4
String status = TeacherStatus.TRANSFERRED;
public Table absentAndOnPaysheet() { Table table = new Table("TEACHERS WHO LEFT THE SCHOOL BUT STILL APPEARING ON PAYSHEET"); table.addContainerProperty("NUMBER", Integer.class, null); table.addContainerProperty("NAMES OF TEACHERS", String.class, null); table.addContainerProperty("EC NUMBER", String.class, nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.S...
[ "0.6590149", "0.6590149", "0.6590149", "0.6590149", "0.6590149", "0.6570796", "0.65627265", "0.65627265", "0.65627265", "0.65627265", "0.6558132", "0.6327259", "0.6327259", "0.6327259", "0.6327259", "0.6327259", "0.6327259", "0.6327259", "0.6327259", "0.6327259", "0.6327259",...
0.0
-1
This method allows you to modify the fitness of the individuals of a population. Note that by altering the fitness you may require your problem to store the unaltered fitness somewhere else so that you may still fetch it!
public void modifyFitness(Population population) { // prepare the calculation double[][] data = new double[population.size()][]; for (int i = 0; i < data.length; i++) { data[i] = ((AbstractEAIndividual)population.get(i)).getFitness(); } double min = Double.POSIT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setFitness(double fitness) throws UnsupportedOperationException;", "public void setFitness(int newFitness) {\n fitness = newFitness;\n }", "public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}", "public void incrementFitness()\n {\n this.fitness++;\n }", "p...
[ "0.7298065", "0.727451", "0.70366466", "0.68611133", "0.6767811", "0.67267644", "0.6718439", "0.66528994", "0.6565641", "0.65583897", "0.6416103", "0.6347555", "0.6265857", "0.6246493", "0.62270004", "0.622613", "0.62205803", "0.62117493", "0.619019", "0.6162475", "0.6156618"...
0.7812398
0
These are for GUI This method returns a global info string
public static String globalInfo() { return "This is a normation method based on Fitness Sharing. It adds a penalty for too similar individuals on the standard Normation method."; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String globalInfo();", "public static String globalInfo() {\n return \"This is a GA individual suited to optimize binary values.\";\n }", "public String getInfoString();", "public String globalInfo() {\n\n return \"Nearest-neighbor-like algorithm using non-nested generalized exem...
[ "0.8131042", "0.76046985", "0.7416671", "0.74059623", "0.73143244", "0.71231765", "0.70986485", "0.7061005", "0.70585036", "0.7009775", "0.6913166", "0.6889701", "0.67905986", "0.6790118", "0.6788748", "0.6757383", "0.6757383", "0.6649274", "0.66247", "0.6620241", "0.6599912"...
0.7044172
9
These methods allows you to set/get the Sharing Distance
public void setSharingDistance(double SharingDistance) { this.m_SharingDistance = SharingDistance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDistance(float dist);", "public double getDistance () {\n return distance;\n }", "public double getDistance(){\n\t\treturn this.distance;\n\t}", "public Distance getDistance() {\n return distance;\n }", "public float getDistance() {\r\n return distance;\r\n }", "pub...
[ "0.6235652", "0.60279304", "0.58761823", "0.5871794", "0.58647346", "0.58582544", "0.585359", "0.5845322", "0.5829316", "0.5817443", "0.5817443", "0.58008426", "0.5779941", "0.5771333", "0.575682", "0.57212996", "0.57212996", "0.5716297", "0.56973755", "0.56973755", "0.567493...
0.7800261
0
These methods allows you to set/get the type of Distance Metric.
public void setMetric(InterfaceDistanceMetric Metric) { this.m_Metric = Metric; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setDistance(double distance, int revolutions, int measurementsType) {\n distanceText.setText(String.format(\"%.1f\", distance));\n if (measurementsType == ThunderBoardPreferences.UNIT_METRIC) {\n distanceUnitsText.setText(getString(R.string.motion_meters));\n ...
[ "0.6494629", "0.64700824", "0.60553294", "0.5894874", "0.5885549", "0.58688974", "0.5852929", "0.5852929", "0.5812986", "0.5779401", "0.5749918", "0.5744674", "0.5714934", "0.562915", "0.56203485", "0.56122506", "0.56010664", "0.55639374", "0.55334157", "0.5522959", "0.551663...
0.5756603
10
Creates new form KullaniciSil
public KullaniciSil() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FormInserir() {\n initComponents();\n }", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEd...
[ "0.66556644", "0.6498492", "0.6459408", "0.64251214", "0.64132535", "0.63509977", "0.6339583", "0.63338083", "0.6265178", "0.625381", "0.6252695", "0.6240928", "0.6233714", "0.6227141", "0.6212237", "0.6208836", "0.61931103", "0.61828715", "0.6165475", "0.6159056", "0.6133856...
0.60768175
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() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); kullaniciSilAdText...
{ "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.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.6945...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return super.toString(); }
{ "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
The FTP filing manager. Creates a new instance of FTPFilingTest3
public RemoteFilingTest() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ClientFTP() {\n }", "public FtpServer(IFtpConfig ftpConfig) {\n m_ftpConfig = ftpConfig;\n m_log = m_ftpConfig.getLogFactory().getInstance(getClass());\n }", "public FileManager() {\n\t\t\n\t}", "private FileManager() {}", "protected FileItemFactory getFileItemFactory() {\r\n ...
[ "0.6118923", "0.608476", "0.5914936", "0.5656754", "0.5518283", "0.55131", "0.5497044", "0.54398054", "0.53778493", "0.53668857", "0.5304789", "0.5243571", "0.52198684", "0.5202382", "0.5189053", "0.5169263", "0.51670635", "0.5104949", "0.51024884", "0.51004714", "0.5089536",...
0.62223816
0
Get entities matching the aspect
public Set<Integer> getEntities(Aspect.Builder aspect) { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<IViewEntity> getEntities();", "public Set<IAspect> getAspects();", "@OnlyIn(Dist.CLIENT)\n public Collection<ResourceLocation> getAspectModels();", "@NotNull\r\n Entity[] getEntities();", "boolean getContainEntities();", "public List findByExample(E entityClass) ;", "@Override\n protected E...
[ "0.59500873", "0.58348274", "0.5829348", "0.57598335", "0.5672127", "0.5660716", "0.55739886", "0.55549496", "0.550708", "0.54901195", "0.5484269", "0.54796046", "0.5457663", "0.54514444", "0.54355896", "0.53718567", "0.53681755", "0.5361026", "0.53385675", "0.53235406", "0.5...
0.67990893
0
This returns the next target,calculated by the systematic aiming, with enemyShip knowledge gathered
@Override public OurShot getNextTarget(OurShots ourShots, OurShot ourShotCurrent, EnemyShips enemyShips) { OurShot newOurShot = null; if (ourShots.containsShotPosition(ourShotCurrent.getNorthPosition()) || ourShotCurrent.getNorthPosition().equals(null)) { newOurShot = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EntityID nextTarget(Set<StandardEntity> victims) {\n\n// Clustering clustering = this.moduleManager.getModule(SampleModuleKey.AMBULANCE_MODULE_CLUSTERING);\n\n// if (this.clusterIndex == -1) {\n this.clusterIndex = clustering.getClusterIndex(this.agentInfo.getID());\n// }\n\n\n ...
[ "0.737903", "0.721082", "0.6723129", "0.636782", "0.63078237", "0.6244496", "0.6221081", "0.6146912", "0.6127436", "0.6090381", "0.60166705", "0.5950892", "0.5948143", "0.59258205", "0.59065986", "0.5896169", "0.5895712", "0.5859924", "0.58571696", "0.5829653", "0.58130777", ...
0.67024773
3
First, load the default values (from app resources)
private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException { String fileName = baseFileName + ".properties"; Properties properties = new Properties(); try (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) { if (configStream != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadDefaultValues() {\r\n\t}", "public void initDefaultValues() {\n }", "private void loadDefaultValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n e.getKey().setText(Pref.getDefault(this, e.getValue()));\n }\n }", "private void loadDefault...
[ "0.8232183", "0.7597305", "0.73288804", "0.6998024", "0.67809844", "0.677796", "0.67398506", "0.6667651", "0.65621674", "0.64638776", "0.64090663", "0.63651764", "0.63393253", "0.62433004", "0.6220253", "0.62190497", "0.6204985", "0.61874926", "0.6179029", "0.6153651", "0.615...
0.0
-1
Method for updating the personal info about the employee
@Override public void update(String name, String surname) { this.name = name; this.surname = surname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEmployee(Employe employee) {\n\t\t\n\t}", "@Override\n\tpublic void updateEmployee() {\n\n\t}", "public void update(Employee e) {\n\t\t\r\n\t}", "@Override\n\tpublic void updateEmployee(Employee e) {\n\t\t\n\t}", "public void updateEmployeeDetails(EmployeeDetails employeeDetails);", "@O...
[ "0.7866181", "0.7604855", "0.7495884", "0.7345355", "0.73214024", "0.73118037", "0.7280434", "0.71891403", "0.71570367", "0.71158797", "0.71083444", "0.7074983", "0.6927345", "0.69231075", "0.6920488", "0.69093394", "0.6905473", "0.68724483", "0.6823205", "0.68177134", "0.679...
0.0
-1
Method for updating the balance of the employee
@Override public void updateBalance(Integer amount) throws EmployeeException { if (this.balance.longValue() + amount.longValue() < Integer.MIN_VALUE || this.balance.longValue() + amount.longValue() > Integer.MAX_VALUE) { throw new EmployeeException(); } this.balan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "@Override\n\tpublic void calculateAndUpdateBalance() {\n\n\t\tbalance -= fee;\n\n\t}", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" +...
[ "0.7006696", "0.69794273", "0.69308835", "0.6928236", "0.66678727", "0.6641959", "0.66375893", "0.66040504", "0.6603731", "0.65748507", "0.6566026", "0.65489787", "0.6546062", "0.65391827", "0.65332395", "0.65068644", "0.65020525", "0.65015817", "0.6467191", "0.640242", "0.63...
0.7277776
0
Note: This constructor is for internal use only. Clients should not call this constructor.
public ChangeTypeAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor = editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n ...
[ "0.7126767", "0.67220134", "0.67220134", "0.67220134", "0.67220134", "0.67220134", "0.67220134", "0.6721916", "0.6721123", "0.6614805", "0.6614495", "0.6608928", "0.65788275", "0.6560879", "0.6533956", "0.6523997", "0.65000325", "0.647237", "0.6457544", "0.64557505", "0.64546...
0.0
-1
Creates a new ChangeTypeAction. The action requires that the selection provided by the site's selection provider is of type org.eclipse.jface.viewers.IStructuredSelection.
public ChangeTypeAction(IWorkbenchSite site) { super(site); setText(RefactoringMessages.ChangeTypeAction_label); setToolTipText(RefactoringMessages.ChangeTypeAction_tooltipText); setDescription(RefactoringMessages.ChangeTypeAction_description); PlatformUI.getWorkbench().getHelpS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeTypeAction(JavaEditor editor) {\n this(editor.getEditorSite());\n fEditor = editor;\n setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);\n }", "ActionType createActionType();", "public JPopupMenu buildContextMenu(EditPart select) {\n\t\tJPopupMenu m...
[ "0.6400347", "0.5557171", "0.52709943", "0.52503693", "0.5221887", "0.5184157", "0.51770216", "0.5110439", "0.5110439", "0.51023", "0.5093284", "0.50890976", "0.5086709", "0.50463575", "0.5008559", "0.50060457", "0.49808392", "0.49692094", "0.4947384", "0.48954135", "0.487730...
0.68921405
0
Note: This method is for internal use only. Clients should not call this method.
@Override public void selectionChanged(JavaTextSelection selection) { try { setEnabled(RefactoringAvailabilityTester.isGeneralizeTypeAvailable(selection)); } catch (JavaModelException e) { setEnabled(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize(...
[ "0.6134709", "0.60255224", "0.59843147", "0.5974245", "0.5974245", "0.5974245", "0.5974245", "0.5974245", "0.5974245", "0.5880224", "0.58173555", "0.57939124", "0.5777048", "0.57394046", "0.57337576", "0.5701754", "0.5701754", "0.5697102", "0.5664149", "0.5664149", "0.565169"...
0.0
-1
render all the routes to a folder in the file system ngoy.renderSite(java.nio.file.Paths.get("site")); recreate while developing to have changes pickedup createApp();
@GetMapping() public void home(HttpServletResponse response) throws Exception { ngoy.render(response.getOutputStream()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) { //type “psvm + tab” to autocreate this\n // directing the server to immediate files it should access. Just like index\n staticFileLocation(\"/public\");\n\n\n // routes as per their handlebars templates. Make sure to read and understand what they do\n ...
[ "0.60927814", "0.57480526", "0.570859", "0.5576758", "0.5470583", "0.5410032", "0.53951895", "0.53700775", "0.5369838", "0.5346714", "0.5302582", "0.5245261", "0.5232934", "0.5164208", "0.5164042", "0.51471275", "0.5135509", "0.5117907", "0.510166", "0.50432175", "0.503703", ...
0.49695688
24
Constructor of the class
public TCPServer(ServerBoard serverBoard, OnMessageReceived messageListener, DiffieHellmanModule diffieHellmanModule) { this.messageListener = messageListener; this.diffieHellmanModule = diffieHellmanModule; this.serverBoard = serverBoard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private Instantiation(){}", "public CyanSus() {\n\n }", "public PSRelation()\n {\n }", "public _355() {\n\n }", "public Pitonyak_09_02() {\r\n }", "public Chick() {\n\t}", "public CSSTidier() {\n\t}", "public Chauf...
[ "0.8754536", "0.86078113", "0.7692669", "0.76075274", "0.7546966", "0.74499243", "0.7399253", "0.7374425", "0.7336829", "0.73363465", "0.73347443", "0.7327899", "0.7318515", "0.72887415", "0.7280536", "0.7268599", "0.7263573", "0.7245982", "0.72291625", "0.7209226", "0.720282...
0.0
-1
Method to send the messages from server to client
public void sendMessage(String message) { if (mOut != null && !mOut.checkError()) { // If encryption connection has been made if (diffieHellmanModule.isConnected()) { message = diffieHellmanModule.encryptString(message); } mOut.println(message); mOut.flush(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) ...
[ "0.7692887", "0.7384564", "0.73137826", "0.7280468", "0.7215718", "0.7128702", "0.71126884", "0.7093092", "0.707584", "0.7069998", "0.6993253", "0.6984912", "0.6979433", "0.69771814", "0.69738644", "0.6956304", "0.6953207", "0.6952932", "0.6951269", "0.69492006", "0.69068146"...
0.0
-1
Declare the interface. The method messageReceived(String message) will must be implemented in the ServerBoard class at on startServer button click
public interface OnMessageReceived { public void messageReceived(String message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnMessageReceived {\n void messageReceived(String message);\n }", "public interface OnMessageReceived {\n public void messageReceived(String message);\n }", "public interface MessageReceivedListener {\n\t\n\t/**\n\t * Called when new command/message received\n\t * @param ms...
[ "0.7538427", "0.7491619", "0.7429744", "0.7213127", "0.70601976", "0.6996917", "0.6995322", "0.6869971", "0.68004036", "0.6775099", "0.6757627", "0.6734004", "0.6718082", "0.6673289", "0.66702574", "0.66642433", "0.66548246", "0.65994376", "0.65855914", "0.65780693", "0.65755...
0.734842
3
/ Widening Casting (automatically) converting a smaller type to a larger type size byte > short > char > int > long > float > double Narrowing Casting (manually) converting a larger type to a smaller size type double > float > long > int > char > short > byte
public static void main(String[] args) { // Java is not a pure OOP language >> because we have primitive types in Java int num = 10; double num1 = 20; // if we know the number we want to convert takes enough space from the memory, // then we can do explicit casting. num = (int) num1; // this is an impl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n int a=10;\n byte b=(byte)a; //explicit casting\n System.out.println(b);\n\n double DecimalNumber=10.5;\n float FloatNumber=(float) DecimalNumber;\n System.out.println(FloatNumber);\n\n double DecimalNumber2=10.5;\n f...
[ "0.7388795", "0.6467305", "0.6348521", "0.6314189", "0.61939746", "0.61663985", "0.6074784", "0.59559405", "0.590889", "0.5876472", "0.5829364", "0.57687217", "0.56827784", "0.5603168", "0.55911106", "0.5558202", "0.553871", "0.5499672", "0.5375866", "0.53516316", "0.52999043...
0.5260222
23
Interface defining calls to the owner DAO.
public interface OwnerDao { /** * Add a new Owner. * * @param ownerModel Model containing the details of the new owner * @return Owner ID * @throws Exception Exception to throw */ int addNewOwner(OwnerModel ownerModel) throws Exception; /** * Retrieve o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract DbDAO AccessToDAO();", "public abstract UserDAO getUserDAO();", "D getDao();", "protected abstract Dao getDaoIntance(Context context);", "public abstract AccountDAO getAccountDAO();", "@Override\n public final IGeneralDAO<ObjectAndSecurity, Integer> getDAO() {\n return objectAnd...
[ "0.7779447", "0.7015927", "0.6967477", "0.6936603", "0.6840355", "0.68090546", "0.67501867", "0.66982967", "0.6649365", "0.6631487", "0.66214305", "0.66182613", "0.66128606", "0.66106725", "0.66004086", "0.65772486", "0.6572279", "0.6565336", "0.6554132", "0.65484595", "0.654...
0.7341533
1
Add a new Owner.
int addNewOwner(OwnerModel ownerModel) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long addOwner(Owner owner);", "@Nonnull\n ResourceOwner addOwner(@Nonnull final User owner, @Nonnull final Telegraf telegraf);", "@Override\n public boolean addOwner(Resident owner) {\n if (!owner.getTowns().contains(town))\n return false;\n\n return owners.add(owner);\n }", ...
[ "0.7741799", "0.68127143", "0.6785264", "0.6732636", "0.61464375", "0.61464375", "0.61464375", "0.61464375", "0.6123193", "0.6112784", "0.61040896", "0.6058765", "0.6043865", "0.6013111", "0.60094184", "0.6006528", "0.591553", "0.5906995", "0.58920556", "0.5773867", "0.575563...
0.7314062
1
Retrieve owner by ID.
OwnerModel getOwnerByID(int ownerID) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Owner getOwnerInformation(int id){\n\t\tOwner owner = entityManager.find(Owner.class, id); //find Owner by primary key(int id)\n\t\treturn owner;\n\t}", "@Override\n\tpublic Owner findById(Long id) {\n\t\treturn ownerRepository.findById(id).orElse(null);\n\t}", "@Override\n\tpublic Owner findById(Long i...
[ "0.7882723", "0.7770446", "0.7491748", "0.74296504", "0.7138014", "0.69542634", "0.694346", "0.6906383", "0.68894386", "0.6814053", "0.6814053", "0.6739172", "0.67022747", "0.65741056", "0.65741056", "0.6538195", "0.6533665", "0.65115565", "0.6507292", "0.6506305", "0.6463513...
0.746126
3
private SharedPreferences mSharedPreferences = this.getSharedPreferences(SHARED_PREFS_KEY, MODE_PRIVATE);
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_feeding_dashboard); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); mListener = this; mContext = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}", "private static SharedPreferences getSharedPreference(Context context)...
[ "0.7807013", "0.76419884", "0.75955003", "0.7528285", "0.74974906", "0.74861896", "0.7336923", "0.731504", "0.72894484", "0.72508365", "0.71555734", "0.71130747", "0.7046317", "0.69731367", "0.6949972", "0.6877051", "0.68383217", "0.67930335", "0.6765963", "0.6737095", "0.672...
0.0
-1
Might have to do these on a different thread. Monitor frames skipped
public void onGitheriSelect() { Food githeri = FoodRatios.getGitheriRatios(mTotalAttendance); Intent intent = new Intent(this, GitheriProgramActivity.class); intent.putExtra("GitheriMeal", Parcels.wrap(githeri)); intent.putExtra("attendancenum", mTotalAttendance); startActivity(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@androidx.annotation.Nullable\r\n public synchronized android.graphics.Bitmap getNextFrame() {\r\n /*\r\n r7 = this;\r\n monitor-enter(r7);\r\n r0 = r7.header;\t Catch:{ all -> 0x00ea }\r\n r0 = r0.frameCount;\t Catch:{ all -> 0x00ea }\r\n r1 = 3;\r\n r2 = 1;\r\n...
[ "0.6946853", "0.6508886", "0.6443779", "0.6340307", "0.60865325", "0.60763127", "0.60222954", "0.5986425", "0.5979522", "0.5970946", "0.5946595", "0.59272695", "0.58887947", "0.58741456", "0.5873619", "0.58525884", "0.5827843", "0.58262444", "0.5823177", "0.579459", "0.577395...
0.0
-1
Creates a StunAddressDiscoverer. In order to use it one must start the discoverer.
public SimpleAddressDetector(StunAddress serverAddress) { this.serverAddress = serverAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Adresse createAdresse();", "public SONETRouter(String address){\n\t\tsuper(address);\n\t}", "public void start()\n throws IOException, StunException\n {\n localSocket = new IceUdpSocketWrapper(\n new SafeCloseDatagramSocket(serverAddress));\n\n stunStack.addSocket(localSocket...
[ "0.5462674", "0.5426146", "0.5188181", "0.5029664", "0.5023202", "0.49949372", "0.49045947", "0.49013695", "0.48708504", "0.486259", "0.48439407", "0.48241416", "0.4771675", "0.47557864", "0.47516787", "0.4723289", "0.4715202", "0.47063568", "0.4679513", "0.46622822", "0.4659...
0.5981395
0
Shuts down the underlying stack and prepares the object for garbage collection.
public void shutDown() { StunStack.shutDown(); stunStack = null; stunProvider = null; requestSender = null; this.started = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n destroyIn(0);\n }", "public static void shutdown()\n\t{\n\t\tinstance = null;\n\t}", "public static void cleanUp() {\n\t\tHashDecay.stopAll();\n\t\tSystem.gc();\n\t}", "public final void cleanUp() {\n\t\tmgdmfunctions = null;\n\t\tmgdmlabels = null;\n\t\theap.finalize();\n...
[ "0.65665555", "0.6554129", "0.64870006", "0.6471243", "0.6373568", "0.63638383", "0.6337342", "0.6324574", "0.6320079", "0.62549573", "0.6247444", "0.6214372", "0.615939", "0.6147548", "0.607488", "0.6047228", "0.6047228", "0.6030006", "0.6020141", "0.60085636", "0.6003966", ...
0.67405564
0
Puts the discoverer into an operational state.
public void start() throws StunException { stunStack = StunStack.getInstance(); stunStack.start(); stunProvider = stunStack.getProvider(); started = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDiscoveryComplete() {\n BusProvider.getInstance().post(new DiscoveryCompleteEvent());\n }", "public void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);", "private void startDiscovery() {\n\t\tbtAdapter.cancelDiscovery();\n\t\tbtAdapter.startDiscovery();\n\t}"...
[ "0.54267704", "0.5374709", "0.53688115", "0.5317813", "0.52471125", "0.5200993", "0.51876575", "0.5150708", "0.5142208", "0.5131637", "0.5128697", "0.50731456", "0.50718015", "0.5028607", "0.5028607", "0.5016857", "0.50041395", "0.49747273", "0.49662474", "0.4940545", "0.4885...
0.0
-1
Creates a listening point from the following address and attempts to discover how it is mapped so that using inside the application is possible.
public StunAddress getMappingFor(StunAddress address) throws StunException { NetAccessPointDescriptor apDesc = new NetAccessPointDescriptor(address); stunStack.installNetAccessPoint(apDesc); requestSender = new BlockingRequestSender(stunProvider, apDesc); StunMessageEvent e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract InetSocketAddress listeningAddress();", "@Override\n protected void doBind(SocketAddress localAddress) throws Exception {}", "protected void doBind(SocketAddress localAddress) throws Exception {}", "EndPoint createEndPoint();", "protected abstract void onAddressAllocated(int lo...
[ "0.6487258", "0.5845338", "0.5840653", "0.5822301", "0.5752991", "0.57376796", "0.5644584", "0.5612977", "0.55805206", "0.5557893", "0.5529407", "0.5515722", "0.55127656", "0.5499201", "0.548833", "0.54816943", "0.5471983", "0.54579", "0.54470855", "0.5433371", "0.5411054", ...
0.51801753
38
Creates a listening point for the specified socket and attempts to discover how its local address is NAT mapped.
public StunAddress getMappingFor(DatagramSocket socket) throws StunException { NetAccessPointDescriptor apDesc = stunStack.installNetAccessPoint(socket); requestSender = new BlockingRequestSender(stunProvider, apDesc); StunMessageEvent evt = null; try { evt = req...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract InetSocketAddress listeningAddress();", "private void initServerSocket()\n\t{\n\t\tboundPort = new InetSocketAddress(port);\n\t\ttry\n\t\t{\n\t\t\tserverSocket = new ServerSocket(port);\n\n\t\t\tif (serverSocket.isBound())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Server bound to data port \" + serv...
[ "0.64159715", "0.6194849", "0.6135424", "0.592085", "0.59190553", "0.5916286", "0.5906411", "0.58701575", "0.58334243", "0.5819641", "0.5790029", "0.5789708", "0.5734323", "0.569253", "0.56543815", "0.5645878", "0.5643737", "0.56258595", "0.55803853", "0.55702806", "0.5557098...
0.49944055
72
Creates a listening point from the specified port and attempts to discover how it is being mapped.
public StunAddress getMappingFor(int port) throws StunException { return getMappingFor(new StunAddress(port)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startListen() {\n try {\n listeningSocket = new ServerSocket(listeningPort);\n } catch (IOException e) {\n throw new RuntimeException(\"Cannot open listeningPort \" + listeningPort, e);\n }\n }", "public void start(int port);", "private static ServerSo...
[ "0.6463177", "0.64624834", "0.6347519", "0.6289053", "0.6258645", "0.61885566", "0.61121756", "0.60892195", "0.6076718", "0.6015822", "0.59870684", "0.59870684", "0.59665686", "0.596594", "0.5958949", "0.5955501", "0.5951293", "0.59193707", "0.59157056", "0.5910814", "0.58324...
0.59536827
16
Metodo que carrega o layout e inicializa seus componentes.
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.cadastro_cliente_end); etRua = (EditText) findViewById(R.id.et_Rua_cc); etNumero = (EditText) findViewById(R.id.et_Numero_cc); etBairro = (EditText) fin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void iniciarLayout();", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n...
[ "0.75591546", "0.74488056", "0.73002076", "0.72974294", "0.72720486", "0.7212864", "0.7156891", "0.7143325", "0.71184415", "0.71129453", "0.7107028", "0.6994277", "0.69642097", "0.696013", "0.696013", "0.6910619", "0.68650985", "0.6860375", "0.6849208", "0.68315405", "0.68188...
0.0
-1
Metodo que gerencia o click nos botoes da tela.
@Override public void onClick(View v) { if (v==bt_salvar){ bt_salvar.setEnabled(false); rua = etRua.getText().toString(); numero = etNumero.getText().toString(); bairro = etBairro.getText().toString(); cep = etCep.getText().toString(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clickOnAmazon(By locator){\n\t\twebAction(locator).click();\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e){\n ...
[ "0.62710047", "0.6194267", "0.6189863", "0.6146539", "0.599058", "0.59749645", "0.5944367", "0.5898525", "0.588426", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.5877231", "0.58512187", ...
0.0
-1
Gerenciador a exibica de mensagem na tela.
private void exibe_mensagem(String msg){ Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void exibirMsgs() {\n StringBuilder s = new StringBuilder();\n for (MensagemSistema msgSis : mensagens) {\n switch (msgSis.getTipo()) {\n case ConstantsControl.MSG_ALERT:\n s.append(\"[Alerta]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n ...
[ "0.7138065", "0.6906337", "0.68833053", "0.65400374", "0.64821744", "0.6410423", "0.6340474", "0.6307083", "0.6299012", "0.6263104", "0.6259308", "0.6257245", "0.62477285", "0.62071127", "0.620159", "0.61862", "0.61810803", "0.61671215", "0.616558", "0.6160471", "0.615684", ...
0.68270713
3
Sets environment which reads application.properties
@Autowired public void setEnvironment(Environment environment) { this.environment = environment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setEnvironment(Properties properties);", "public void setEnvironment(Map<String, String> environment);", "Properties getEnvironment();", "Properties getEnvironment();", "@Override\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n this.property...
[ "0.73319125", "0.7025816", "0.7021029", "0.7021029", "0.6749276", "0.6725403", "0.66527367", "0.662983", "0.6570313", "0.64510316", "0.64127475", "0.6320592", "0.6310327", "0.63054854", "0.6242923", "0.61561686", "0.6115705", "0.61084926", "0.6083296", "0.60773194", "0.606353...
0.69265485
4
DataSource for my local database with Hicari coonnection pool
@Bean public DataSource dataSource() { HikariConfig hikariConfig = new HikariConfig(); hikariConfig.setDriverClassName(environment.getProperty("jdbc.driver")); hikariConfig.setJdbcUrl(environment.getProperty("jdbc.url")); hikariConfig.setUsername(environment.getProperty("jdbc.user"))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatabaseConnector() {\n HikariConfig config = new HikariConfig();\n config.setJdbcUrl(\"jdbc:postgresql://localhost:5547/go_it_homework\");\n config.setUsername(\"postgres\");\n config.setPassword(\"Sam@64hd!+4\");\n this.ds = new HikariDataSource(config);\n ds.setM...
[ "0.7344802", "0.7341136", "0.72399837", "0.7219225", "0.72106135", "0.71353924", "0.71342415", "0.7125225", "0.7091143", "0.70146734", "0.699934", "0.6929438", "0.6929146", "0.6910617", "0.68676335", "0.6849099", "0.67972475", "0.67713296", "0.6666902", "0.6656616", "0.661366...
0.6957507
11
Jdbc template for local database
@Bean public JdbcTemplate jdbcTemplate() { return new JdbcTemplate(dataSource()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DressDaoJdbc(NamedParameterJdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }", "public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(2...
[ "0.6656072", "0.6340525", "0.62812036", "0.61824876", "0.6084669", "0.6014092", "0.59879184", "0.5958354", "0.58896816", "0.5862565", "0.58586675", "0.58117867", "0.57857025", "0.5755574", "0.5755574", "0.57330835", "0.5682688", "0.5674805", "0.56672317", "0.56666297", "0.565...
0.61557794
4
Transaction manager platform to work with transactions.
@Bean public PlatformTransactionManager transactionManager() { DataSourceTransactionManager transactionManager = new DataSourceTransactionManager(); transactionManager.setDataSource(dataSource()); return transactionManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TransactionManager {\n\n\t/**\n\t * Start a new read only transaction.\n\t */\n\n\tStableView view();\n\n\t/**\n\t * Start a transaction for mutation.\n\t */\n\n\tMutableView begin();\n\n\t/**\n\t * Commit a previously prepared transaction for a two phase commit.\n\t *\n\t * @param tpcid\n\t * ...
[ "0.77638155", "0.7492881", "0.73498136", "0.7104994", "0.7100748", "0.6977491", "0.69621485", "0.6735563", "0.67313397", "0.67198896", "0.66833746", "0.6618844", "0.6615249", "0.6562512", "0.6528335", "0.6526395", "0.64503163", "0.6438077", "0.6436936", "0.64358526", "0.64157...
0.5806875
91
Sets up a new map for testing.
public void setUp() { map = new Map(5, 5, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void initialize()\n {\n map = new MapAdapter();\n }", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "private v...
[ "0.7882324", "0.7631838", "0.7461513", "0.7455227", "0.7341392", "0.725602", "0.7232844", "0.7156569", "0.7135755", "0.7126754", "0.71176976", "0.70149064", "0.7011396", "0.6999838", "0.6994379", "0.6993587", "0.6984975", "0.69748324", "0.69698864", "0.69516444", "0.69288576"...
0.85473955
0
Tests the getObjects method for map.
public void testGetObjects() { assertNotNull( map.getObjects() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testMapGet() {\r\n }", "@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}", "@Test\n @Override\n public void testMapGet() {\n }", "public ProofMapIndexProxy<String, String> testMap() {\n String fullName = namespace + \".test-map\";\n...
[ "0.70650864", "0.6771809", "0.6572953", "0.62750506", "0.623474", "0.6218986", "0.621444", "0.61425424", "0.6121819", "0.6101296", "0.60842955", "0.6083618", "0.6076398", "0.60757643", "0.607197", "0.6061659", "0.60001326", "0.599241", "0.59864503", "0.59596586", "0.5956965",...
0.86288005
0
Tests the getTerrain method for map.
public void testGetTerrain() { assertNotNull( map.getTerrain() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TerrainMap getTerrainMap(){\n\t\treturn this.terrainMap;\n\t}", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "boolean isSetRoadTerrai...
[ "0.7016333", "0.6250844", "0.62279826", "0.61303365", "0.6105623", "0.6008611", "0.5999106", "0.59418344", "0.5912638", "0.59083754", "0.5857101", "0.57963485", "0.57830083", "0.5763183", "0.5756758", "0.57387006", "0.57064337", "0.56990594", "0.5677295", "0.56324905", "0.551...
0.8847432
0
Tests the getBackground method for map.
public void testGetBackground() { assertNotNull( map.getBackground() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void notOnGroundTest(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{0,0},{0,0}},new byte[][]{{1,0},{1,1}}, tilepath);\n Rect cBox = new Rect(2,2,2,2);\n assertFalse(tileMap.isOnGround(cBox));\n }", "public void checkIfMapViewNeedsBackgroundUpdate() {\n f...
[ "0.6275249", "0.60607713", "0.5892247", "0.58896744", "0.5847017", "0.5662843", "0.55289215", "0.55047274", "0.5495578", "0.5480506", "0.5477284", "0.5476724", "0.547055", "0.5464862", "0.546149", "0.5446536", "0.5392391", "0.5382561", "0.5374261", "0.5363275", "0.5351349", ...
0.8728538
0
As standard: get X, Y training data
public void fit(int[][] trainingData, int[][] trainingLabels) { for(int epoch = 0; epoch < maxEpoch; epoch ++) { for(int i = 0; i < trainingData.length; i++) { train(trainingData[i], trainingLabels[i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[][] getTrainingData() {\n double[][] trainingData = new double[dataSetInReducedPca[0].length][dataSetInReducedPca.length + 1];\n \n for (int r = 0; r < dataSetInReducedPca[0].length; ++r) {\n // get data set in reduced pca\n for (int f = 0; f < dataSetInRedu...
[ "0.60632664", "0.5990468", "0.5837882", "0.5818186", "0.5706747", "0.5659447", "0.56133926", "0.557471", "0.55738765", "0.5550312", "0.5535642", "0.54998577", "0.54964626", "0.5494127", "0.5479254", "0.54617363", "0.5453389", "0.5443027", "0.5395155", "0.5363018", "0.53175575...
0.0
-1
As standard: get testingData
public int predict(int[] testingData) { // HIDDEN LAYER double[] hiddenActivations = new double[SIZE_HIDDEN_LAYER]; for(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) { hiddenActivations[indexHidden] = 0; for(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) { hid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTestData(RequestTestDataType testData) {\n return testDataMap.get(testData);\n }", "@DataProvider(name=\"Unverified test data\")\n\t\n\tpublic String[][] getTestData()\n\t {\n\t\tlog.info(\"reading exceldata\");\n\t\tString[][] testRecords=getData(\"Other.xlsx\", \"Unverified\");\n\t\t...
[ "0.73370713", "0.71875656", "0.69461983", "0.6914768", "0.69001794", "0.6628174", "0.6565002", "0.6530526", "0.65249056", "0.65249056", "0.64525867", "0.6445225", "0.6388261", "0.63589895", "0.6347109", "0.6347109", "0.63418853", "0.6336715", "0.6263828", "0.62569046", "0.620...
0.0
-1
/ It return the whole softmax probabilities instead of only the class predicted
public double[] predictSoft(double[] testingData) { double[] hiddenActivations = new double[SIZE_HIDDEN_LAYER]; double[] hiddenActivations2 = new double[SIZE_HIDDEN_LAYER]; for(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) { hiddenActivations[indexHidden] = 0; for(int indexInput = 0;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[] softmax(double[] input) {\n double output[] = new double[input.length];\n for (int i = 0; i < input.length; i++) {\n double div = 0.0;\n for (int j = 0; j < input.length; j++) {\n div += Math.exp( input[j] / softMax_temperature );\n }\n ...
[ "0.6484817", "0.61783516", "0.61430246", "0.611222", "0.59129536", "0.5801834", "0.57368785", "0.57228327", "0.57135487", "0.5679845", "0.56591684", "0.5644579", "0.56360394", "0.5608327", "0.5594032", "0.5584633", "0.5566004", "0.5533412", "0.5505552", "0.5440358", "0.543746...
0.66817504
0
/ Backpropagation learning algorithm
private void train(int[] trainingData, int[] trainingLabel) { // forward Propagation double[] activationsOfHiddenLayer = new double[SIZE_HIDDEN_LAYER]; double[] outputActivations = new double[SIZE_OUTPUT_LAYER]; forwardPropagation(trainingData, activationsOfHiddenLayer, outputActivations); // backward Propag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void applyBackpropagation( float expectedOutput[] ) {\n\t\t// The code for updating weights goes here \n\t\t// NOTE: if using a single perceptron, this is not technically back-propagation, despite the function name \n }", "private void backwardPropagation(int[] trainingData, int[] trainingLabel, double...
[ "0.7627533", "0.74327075", "0.7182869", "0.71628666", "0.7161495", "0.7138183", "0.71071607", "0.7082817", "0.6893169", "0.68013674", "0.67822766", "0.675799", "0.6735338", "0.6700753", "0.6628661", "0.6562031", "0.6548895", "0.6504053", "0.64978826", "0.6400047", "0.6373461"...
0.64564174
19
/ Should be the activations hiddenLayer, activations outputLayer (using activations hiddenLayer)
private void forwardPropagation(int[] trainingData, double[] activationsOfHiddenLayer, double[] outputActivations) { double[] hiddenActivations = new double[SIZE_HIDDEN_LAYER]; for(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) { hiddenActivations[indexHidden] = 0; for(int indexInput =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initLayers() {\n\t\t/* Initialise the weights */\n\t Random rng = new Random(1);\n double distributeRandom = 1.0 / SIZE_INPUT_LAYER;\n\t\tweightsOfHiddenLayer = new double[SIZE_HIDDEN_LAYER][SIZE_INPUT_LAYER]; \n\t\tweightsOfOutputLayer = new double[SIZE_OUTPUT_LAYER][SIZE_HIDDEN_LAYER]; \n\t...
[ "0.64377326", "0.6331536", "0.6167393", "0.6031687", "0.5928623", "0.59100616", "0.57737476", "0.57712764", "0.5737404", "0.5719112", "0.57065135", "0.5678794", "0.5674687", "0.56070465", "0.55183643", "0.5506596", "0.5501749", "0.5471489", "0.54580927", "0.54289526", "0.5378...
0.6753463
0
/ Find the error at the output units Create delta
private void backwardPropagation(int[] trainingData, int[] trainingLabel, double[] outputActivations, double[] hiddenActiv) { double[] delta = new double[SIZE_OUTPUT_LAYER]; // Update OutputLayer weights for(int indexOutput = 0; indexOutput < SIZE_OUTPUT_LAYER; indexOutput++) { // We define delta as the differ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double calculateError(double[] outputsActual, double[] outputsTarget) {\n return Utilities.calculateError(outputsActual, outputsTarget);\n }", "private double computeError(){\n double temp = 0;\r\n for(int trial_Number = 0; trial_Number < expectedOutputList.length; trial_Number++){\r\n ...
[ "0.6688998", "0.6673902", "0.6327255", "0.6265994", "0.6212894", "0.6078784", "0.60198474", "0.60041595", "0.5920608", "0.58027476", "0.580101", "0.5783899", "0.5749643", "0.56795675", "0.5656226", "0.5610653", "0.5589121", "0.55779725", "0.5553104", "0.55313724", "0.5495819"...
0.0
-1
/ It initialise the weights
public void initLayers() { /* Initialise the weights */ Random rng = new Random(1); double distributeRandom = 1.0 / SIZE_INPUT_LAYER; weightsOfHiddenLayer = new double[SIZE_HIDDEN_LAYER][SIZE_INPUT_LAYER]; weightsOfOutputLayer = new double[SIZE_OUTPUT_LAYER][SIZE_HIDDEN_LAYER]; /* Initialise the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initWeights(){\r\n Random rand = new Random();\r\n double e = Math.sqrt(6.0/(wordSize*windowSize+hiddenSize));\r\n \r\n W = SimpleMatrix.random(hiddenSize, windowSize*wordSize, -e, e, rand);\r\n b1 = new SimpleMatrix(hiddenSize, 1);\r\n b1.zero();\r\n \r\n ...
[ "0.81542104", "0.8128597", "0.7707981", "0.73265034", "0.727954", "0.7138505", "0.71333426", "0.71264815", "0.7119486", "0.6998359", "0.69304943", "0.691575", "0.691242", "0.68765604", "0.6794131", "0.67108905", "0.6677685", "0.66750383", "0.66552925", "0.664868", "0.66437644...
0.7032861
9
Basic contract on ESB Agent class. It is the class that will (1) create an asynchronous ProvaCommunicator; (2) implement send to allow a Prova agent to send goals as messages via bus; (3) accept messages from the bus and use ProvaCommunicator.add() to queue these messages on the agent.
public interface ProvaAgent { void receive(ProvaList terms) throws Exception; void send(String dest, ProvaList terms) throws Exception; String getAgentName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IPSAgent\n{\n /**\n * This method is the first one to be called by the Agent Manager just after\n * instantiating the implementing class object. This is called only once in\n * the object's life cycle.\n * @param configData - DOM Element representing the configuration data\n * def...
[ "0.6426655", "0.6415693", "0.6124545", "0.5939789", "0.5867367", "0.5694951", "0.56942385", "0.5619862", "0.5606838", "0.55942947", "0.5573141", "0.5530983", "0.54689056", "0.544973", "0.5434913", "0.5408949", "0.53953314", "0.53685856", "0.53614575", "0.53291017", "0.5321265...
0.752158
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_list_friend, container, false); setHasOptionsMenu(true); lvSearch = (ListView) view.findViewById(R.id.lvS...
{ "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
super.channelRead(ctx, msg); ByteBuf buffer = (ByteBuf) msg; System.out.println("received msg: "+ buffer.toString(CharsetUtil.UTF_8) + " current thread: " + Thread.currentThread().getName()); ctx.pipeline().write(buffer); System.out.println("received msg: "+ msg.toString() + " current thread: " + Thread.currentThread()...
@Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { // ctx.pipeline().write(buffer); // System.out.println("received msg: "+ msg.toString() // + " ---current thread: " + Thread.currentThread().getName()); logger.info("received ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) {\n System.out.println(\"Client received: \" + ByteBufUtil.hexDump(msg.readBytes(msg.readableBytes())));\n }", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\n ...
[ "0.7913225", "0.7911547", "0.77585787", "0.77301055", "0.76795214", "0.7546021", "0.74766666", "0.7342502", "0.7167789", "0.71423143", "0.70664585", "0.6942215", "0.6937418", "0.6915315", "0.6858832", "0.6836581", "0.6811689", "0.6784842", "0.6702003", "0.66993415", "0.668044...
0.7598814
5
Applies a velocity to each of the entities pushing them away from each other. Args: entity
@Override public void applyEntityCollision(Entity entity) { Vector3 v = Vector3.getNewVector(); Vector3 v1 = Vector3.getNewVector(); blockBoxes.clear(); int sizeX = blocks.length; int sizeY = blocks[0].length; int sizeZ = blocks[0][0].length; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updatePhysics ( ECSEntity entity, long t )\n {\n // Constants.\n \n final double SCREEN_HEIGHT = 600.0;\n final double FRICTION_COEFFICIENT = 0.0001 / SCREEN_HEIGHT;\n final double ACCELERATION = 0.001 / SCREEN_HEIGHT;\n \n // Initial...
[ "0.58726394", "0.58243203", "0.5722518", "0.55968004", "0.5538374", "0.5460749", "0.54341495", "0.5401065", "0.5366211", "0.5354703", "0.5218502", "0.5197951", "0.5174223", "0.5168982", "0.5168666", "0.5165864", "0.51623946", "0.51615936", "0.51611185", "0.51495564", "0.51352...
0.56345063
3
Called when the entity is attacked.
public boolean attackEntityFrom(DamageSource source, int damage) { if (damage > 15) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attack(Entity entity) {\n\t}", "@Override\n public void attack(Entity e) {\n e.hit(atk);\n }", "@Override\n\tpublic void attack() {\n\n\t}", "public void attack() {\n this.attacked = true;\n }", "@Override\n\tpublic void attack() {\n\t\t\n\t}", "@Override\n\tpublic void...
[ "0.81811714", "0.7902662", "0.7848498", "0.7842348", "0.78396326", "0.78251594", "0.78101593", "0.7778834", "0.7685258", "0.7608649", "0.74407953", "0.72904927", "0.72417223", "0.7238796", "0.7238796", "0.7216059", "0.7209634", "0.718743", "0.7186191", "0.71704334", "0.717043...
0.0
-1
Returns true if other Entities should be prevented from moving through this Entity.
@Override public boolean canBeCollidedWith() { return !this.isDead; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean continueExecuting()\n\t{\n\t\treturn this.entity.posX != this.xPosition && this.yPosition != this.entity.posY && this.entity.posZ != this.zPosition;\n\t}", "public boolean isBlockingTo(Entity wantsToMoveHere)\n\t{\n\t\treturn false;\n\t}", "private boolean canMove() {\n return !(bestMove[...
[ "0.66526324", "0.63386285", "0.62800926", "0.6242392", "0.6187628", "0.61847514", "0.61844003", "0.6159798", "0.61563206", "0.6110606", "0.6080698", "0.60604614", "0.59837747", "0.59606916", "0.59533286", "0.59489477", "0.5927099", "0.59114295", "0.5888292", "0.5834995", "0.5...
0.5431725
76
Returns true if this entity should push and be pushed by other entities when colliding.
@Override public boolean canBePushed() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isColliding() {\n\t\treturn phxService.isColliding(this);\n\t}", "@Override\n\tpublic boolean canBePushed() {\n\t\treturn super.canBePushed() && isEgg();\n\t}", "@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}", "private boolean isPusha...
[ "0.6355325", "0.6125077", "0.6086906", "0.6044926", "0.60097563", "0.5969812", "0.5795209", "0.5775939", "0.5759423", "0.57459134", "0.57184386", "0.5670901", "0.5588683", "0.55532235", "0.55366385", "0.553662", "0.5489457", "0.54817945", "0.54817945", "0.5480415", "0.5477269...
0.62419486
1
returns the bounding box for this entity
public AxisAlignedBB getBoundingBox() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Rectangle getBoundingBox() {\n\t\treturn getBounds();\n\t}", "@Override\n\tpublic Rectangle getBoundingBox() {\n\t\tRectangle rectangle = new Rectangle(this.image.getWidth(), this.image.getWidth());\n\t\trectangle.setLocation(this.position);\n\t\treturn rectangle;\n\t}", "public Rectangle getBoundingBox...
[ "0.81245303", "0.79324114", "0.78259903", "0.76834905", "0.7595736", "0.7527924", "0.7525918", "0.75229716", "0.7512145", "0.74959344", "0.7484371", "0.73014295", "0.7229195", "0.71547824", "0.71248174", "0.71157163", "0.7030013", "0.7007851", "0.6991495", "0.69751906", "0.69...
0.7011682
17
Checks if the entity's current position is a valid location to spawn this entity.
public boolean getCanSpawnHere() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkEnemy() {\n\t\tif (enemy != null)\n\t\tif (Integer.parseInt(getCurrentPositionX()) == enemy.getCurrentPositionX() && Integer.parseInt(getCurrentPositionY()) == enemy.getCurrentPositionY()) {\n\t\t\tx = spawnX;\n\t\t\ty = spawnY;\n\t\t}\n\t}", "@Override\n\tpublic boolean canCoordinateBeSpawn(int...
[ "0.69288224", "0.68893385", "0.6837175", "0.67701966", "0.67416394", "0.66756684", "0.6648431", "0.6585194", "0.6575402", "0.65661234", "0.65261346", "0.64639556", "0.6452394", "0.6342884", "0.63169175", "0.6314182", "0.62825537", "0.626334", "0.6239614", "0.622464", "0.62202...
0.0
-1
TODO Autogenerated method stub
@Override public ItemStack getCurrentArmor(int slotIn) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
First layer of player interaction
@Override public boolean interactFirst(EntityPlayer player) { ItemStack item = player.getHeldItem(); if (player.isSneaking() && item != null && item.getItem() instanceof ItemLinker && ((owner != null && player.getUniqueID().equals(owner)) || player.capabilities.isCreativeMod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void playerPassedStart(Player player);", "public void playerTurnStart() {\n\r\n\t}", "@Override\n public void landedOn(Player player) {}", "public abstract void activatedBy(Player player);", "public String callPlayer() {\n\t\treturn \"OVER HERE!!\";\n\t}", "public void enter(FieldPlayer player){\n ...
[ "0.7148206", "0.6582443", "0.6531266", "0.65207475", "0.6481238", "0.64773095", "0.64619696", "0.6460105", "0.6416956", "0.63705754", "0.63666695", "0.63666695", "0.63479596", "0.6313949", "0.62781715", "0.62774974", "0.6276841", "0.6268168", "0.62591857", "0.6246966", "0.624...
0.6350383
12
Will get destroyed next tick.
@Override public void setDead() { if (!worldObj.isRemote && !this.isDead) { if (blocks != null) { for (ItemStack[][] barrarr : blocks) { for (ItemStack[] barr : barrarr) for (ItemStack b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n\t\tdestroyRadius();\r\n\t\tisDestroyed = true;\r\n\t\ttimer.stop();\r\n\t\tthis.x -= 50;\r\n\t\tthis.y -= 50;\r\n\t\ttimer.setDelay(100);\r\n\t\ttimer.start();\r\n\t}", "void decrementTick();", "synchronized void destroy() {\n destroyed = true;\n }", "public void tick() {\n ...
[ "0.6680622", "0.66337997", "0.6623467", "0.6618789", "0.661351", "0.6560057", "0.6524197", "0.64671904", "0.6457083", "0.6448506", "0.63837004", "0.6366098", "0.63352895", "0.6332573", "0.62864316", "0.628445", "0.62659186", "0.62508684", "0.62411886", "0.62333196", "0.621052...
0.0
-1
Precalculate the different planes needed
public void update(Matrix4f viewProjectionMatrix) { for (int i = 0; i < 6; ++i) { planes[i] = viewProjectionMatrix.frustumPlane(i, planes[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final void resetClipPlanes()\n {\n // set the point for each plane to the viewer position\n Vector3d loc = myPosition.getLocation();\n myLeftClip.setPoint(loc);\n myRightClip.setPoint(loc);\n myBottomClip.setPoint(loc);\n myTopClip.setPoint(loc);\n myRi...
[ "0.66389203", "0.63119745", "0.6005128", "0.58454335", "0.57147217", "0.56263924", "0.5576034", "0.5569192", "0.55353063", "0.55290127", "0.5510147", "0.5503625", "0.547478", "0.54711837", "0.5455825", "0.5442388", "0.5430648", "0.5429968", "0.5402454", "0.5397372", "0.536924...
0.51739424
35
Make two deposits to the same account in separate threads. We start with a balance of $42: John deposits $100, Mary deposits $500.
private static void Demo() throws Exception { // int i; // We can access static class members with the class name, we don't need an object name MakeDeposit.balance = 42; /* * We need two instances of the class, each running in a separate * thread */ MakeDeposit johnThread = new MakeDeposit(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Random rand = new Random();\n rand.setSeed(0);\n for (int run = 0; run < 1000 * 1000; run++) {\n // Generate 2 arrays of 50 amounts.\n final int NUM = 50;\n int difference = 0;\n int[] amounts1 = new int[50]...
[ "0.6909084", "0.64734656", "0.6414569", "0.6271976", "0.6259793", "0.62539357", "0.61617154", "0.6127325", "0.6074288", "0.60554886", "0.60390306", "0.60316724", "0.6011777", "0.6005148", "0.59820324", "0.59684116", "0.58939385", "0.58665717", "0.58053714", "0.57731384", "0.5...
0.642725
2
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // BID_PRICE4 return BID_PRICE4; case 2: // BID_VOLUME4 return BID_VOLUME4; case 3: // BID_PRICE5 return BID_PRICE5; case 4: // BID_VOLUME5 return BID_VOLUME5; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n ...
[ "0.79869914", "0.7915354", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.78808534", "0.77862614", "0.7779145", "0.77291805", "0.7727816", "0.7721567", "0.77125883", "0.77125883", "0.7709597", "0.7708822", "0.7701162", "0.7699386", "0.76957756", "0.7...
0.0
-1
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields find...
[ "0.7626537", "0.7626537", "0.7626537", "0.7626537", "0.7626537", "0.7626537", "0.7626537", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0.76217574", "0....
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache...
[ "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "...
0.0
-1
Performs a deep copy on other.
public CThostFtdcMarketDataBid45Field(CThostFtdcMarketDataBid45Field other) { __isset_bitfield = other.__isset_bitfield; this.bidPrice4 = other.bidPrice4; this.bidVolume4 = other.bidVolume4; this.bidPrice5 = other.bidPrice5; this.bidVolume5 = other.bidVolume5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperti...
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", ...
0.0
-1
Returns true if field bidPrice4 is set (has been assigned a value) and false otherwise
public boolean isSetBidPrice4() { return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE4_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetBidPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE_ISSET_ID);\n }", "public boolean isSetBidPrice5() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE5_ISSET_ID);\n }", "public boolean isSetBidVolume4() {\n return EncodingUtils.testBit(__isset_bi...
[ "0.76758", "0.7220573", "0.72187155", "0.70055294", "0.69942766", "0.68164337", "0.67566586", "0.6724988", "0.6706602", "0.66881806", "0.6667175", "0.6666808", "0.66371953", "0.65638375", "0.6538531", "0.6519271", "0.64826477", "0.6428874", "0.63891405", "0.6388483", "0.63883...
0.8383622
0
Returns true if field bidVolume4 is set (has been assigned a value) and false otherwise
public boolean isSetBidVolume4() { return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME4_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetBidVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME_ISSET_ID);\n }", "public boolean isSetBidVolume5() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME5_ISSET_ID);\n }", "public boolean isSetBidPrice4() {\n return EncodingUtils.testBit(__isset...
[ "0.78722316", "0.750076", "0.73483187", "0.6617104", "0.6610414", "0.65604514", "0.65537614", "0.6416334", "0.64134836", "0.63965327", "0.6391873", "0.63734245", "0.62484574", "0.6066008", "0.6049055", "0.60407823", "0.6024757", "0.59736687", "0.59261066", "0.58858895", "0.58...
0.8464085
0