query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Creates new form MENU_ADMINISTRADOR
public MENU_ADMINISTRADOR() { this.setContentPane(fondo); initComponents(); Date date = new Date(); DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); this.textField1.setText(dateFormat.format(date)); System.out.println("almacenado DPI:" + datos_solicitud_seguro....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku...
[ "0.68718207", "0.68005645", "0.662302", "0.6605793", "0.65613776", "0.64822584", "0.6481497", "0.64279264", "0.6201245", "0.6163001", "0.61563116", "0.61400115", "0.61203736", "0.6118874", "0.61132675", "0.6110327", "0.61098135", "0.6072316", "0.6059912", "0.6043534", "0.6022...
0.5896395
30
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() { jButton5 = new javax.swing.JButton(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jButton8 = n...
{ "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.73195183", "0.7290407", "0.7290407", "0.7290407", "0.72855854", "0.7248445", "0.7213232", "0.72084314", "0.7195551", "0.71902007", "0.71835697", "0.7158979", "0.71473545", "0.70928645", "0.70807934", "0.70575565", "0.6987147", "0.6976941", "0.69544566", "0.69541115", "0.69...
0.0
-1
Get the identifier of the TajoContainerId.
@Public @Stable public abstract int getId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getId(NameSpaceContainer container) {\n EntityId entityId;\n switch (container.getType()) {\n case SOURCE:\n entityId = container.getSource().getId();\n break;\n case SPACE:\n entityId = container.getSpace().getId();\n break;\n case HOME:\n entityId = co...
[ "0.7414463", "0.73801655", "0.72618246", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", "0.6403092", ...
0.0
-1
The interface that all plugins must implement to tell the framework about themselves. After instantiating each plugin via its noarg constructor, the framework also makes several lifecycle method calls into the plugin, in order: getApplicationContexts() allows the plugin to register any custom XML application context fi...
public interface Plugin { /** * What is the name of this plugin? * * The framework will use this name when storing the versions * (code version and schema version) in the database, and, if * this is the Application Plugin, in the help menu, main frame * title bar, and other displays wh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:...
[ "0.6931616", "0.6722338", "0.6567433", "0.62097627", "0.61930907", "0.611024", "0.6104505", "0.60889906", "0.60337883", "0.6016847", "0.59978664", "0.5994256", "0.58985883", "0.5888414", "0.5857869", "0.5856007", "0.5819118", "0.57962126", "0.57703614", "0.57584274", "0.57385...
0.81699276
0
What is the name of this plugin? The framework will use this name when storing the versions (code version and schema version) in the database, and, if this is the Application Plugin, in the help menu, main frame title bar, and other displays wherever the application name is shown. The column used to store this in the d...
String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPluginName(){\n\t\treturn pluginName;\n\t}", "@Override\n public String getPluginName() {\n return null;\n }", "@Override\n public String getPluginName() {\n return null;\n }", "public String getShortAppName();", "public void setPluginName(...
[ "0.7047606", "0.6782183", "0.6782183", "0.6496552", "0.6491467", "0.6413291", "0.62025326", "0.61851895", "0.61851895", "0.61851895", "0.61845005", "0.6103332", "0.59783536", "0.5961527", "0.5950763", "0.59416413", "0.59284127", "0.5913907", "0.58851254", "0.5878529", "0.5868...
0.0
-1
What is the version number of this plugin's code? The framework will use this name when storing the versions in the database.
String getVersion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVersionNumber ();", "public String getVersionNum();", "String getModuleVersionNumber();", "long getVersionNumber();", "public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String get...
[ "0.76562417", "0.76348984", "0.7492364", "0.7419131", "0.7244665", "0.72078305", "0.72078305", "0.72078305", "0.72078305", "0.72078305", "0.72078305", "0.72078305", "0.72078305", "0.7160705", "0.71432954", "0.71432954", "0.71432954", "0.71432954", "0.71408796", "0.7016694", "...
0.72325295
15
Allow a plugin to provide any pluginspecific application context files. Can return null or an empty list if there are none. The elements of the list are paths to resources inside the plugin's jar, e.g. org/devzendo/myapp/app.xml
List<String> getApplicationContextResourcePaths();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> externalResources();", "List<String> getConfigFilePaths();", "public IPath[] getAdditionalResources();", "@Override\r\n\tpublic ArrayList<String> readResourceFiles(String packageName,\r\n\t\t\tArrayList<String> resourceList) {\n\t\treturn null;\r\n\t}", "public PluginLocation[] getBuiltinPlugi...
[ "0.62384814", "0.5998289", "0.5996777", "0.57799536", "0.56554216", "0.5639584", "0.55796725", "0.5570208", "0.5568652", "0.5530908", "0.5454863", "0.5445675", "0.5445675", "0.5445675", "0.5443382", "0.53952503", "0.5370776", "0.5367006", "0.534933", "0.53177387", "0.5316762"...
0.6911077
0
Give the SpringLoader to the plugin, after the application contexts for all plugins have been loaded
void setSpringLoader(final SpringLoader springLoader);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SpringLoader getSpringLoader();", "@Override\n\tpublic void afterSpringLoad(AfterSpringLoadSupplierExtensionContext context) throws Exception {\n\t\tcontext.addThreadSynchroniser(() -> new SpringDataThreadSynchroniser());\n\t}", "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new S...
[ "0.6901187", "0.67489696", "0.646005", "0.64030486", "0.62463456", "0.59355336", "0.5933617", "0.58487356", "0.57194144", "0.5682246", "0.5647921", "0.5584947", "0.55719036", "0.5562511", "0.54131246", "0.54032564", "0.5384129", "0.5383455", "0.5378234", "0.5342479", "0.53363...
0.6700025
2
Obtain the SpringLoader for plugin use
SpringLoader getSpringLoader();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSpringLoader(final SpringLoader springLoader);", "@Override\n public Loader getClassLoader() {\n\treturn this.classLoader;\n }", "protected WjrConfigLoader getConfigLoader() {\r\n\t\treturn new WjrConfigLoader();\r\n\t}", "public ContainerLoader getLoader();", "public ClassLoader getClassLoad...
[ "0.6957472", "0.67036325", "0.66276085", "0.6590747", "0.6548559", "0.64988214", "0.6470319", "0.6413078", "0.63735896", "0.634268", "0.6338293", "0.6337457", "0.6299777", "0.6282581", "0.6206067", "0.6128453", "0.611491", "0.6022353", "0.5986491", "0.597692", "0.59595865", ...
0.89029354
0
What is the database schema version of this plugin? The framework will use this name when storing the versions in the database.
String getSchemaVersion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public int dbVersion();", "public String getDbVersion() {\r\n init();\r\n\r\n return _dbVersion;\r\n }", "public int getSchemaVersion() {\n return SCHEMA_VERSION;\n }", "public int getVersionForSchema() {\n try (ITransaction tx = transactionProvider.getTransaction()) {\n ...
[ "0.7036778", "0.7008443", "0.6993627", "0.69310737", "0.685849", "0.6801583", "0.67795014", "0.6726422", "0.6726422", "0.6718125", "0.66854763", "0.6568821", "0.6516801", "0.64443815", "0.6353237", "0.6312464", "0.62805563", "0.6263639", "0.6241638", "0.6089683", "0.6089683",...
0.74901795
0
Shut down the plugin, freeing any resources. Called by the framework upon system shutdown.
void shutdown();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void shutdown()\n {\n Log.info( \"Shutting down. Unloading all loaded plugins...\" );\n\n // Stop the plugin monitoring service.\n pluginMonitor.stop();\n\n // Shutdown all loaded plugins.\n for ( Map.Entry<String, Plugin> plugin : pluginsLoaded.entrySet() ...
[ "0.757001", "0.7432339", "0.7375962", "0.72463137", "0.70292056", "0.69903225", "0.697279", "0.69445634", "0.68909377", "0.68909377", "0.68909377", "0.68909377", "0.68591607", "0.6855403", "0.6852033", "0.68287534", "0.6797097", "0.67560154", "0.67380106", "0.67314446", "0.67...
0.66435444
39
Return set of successors for each instruction in a function
IndexList[] successors() { SortedMap<String,Integer> labelMap = new TreeMap<String,Integer>(); for (int i = 0; i < code.length; i++) { Inst c = code[i]; if (c instanceof LabelDec) labelMap.put(((LabelDec) c).name, i); } IndexList[] allSuccs = new IndexList[code.length]; for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashSet<N> getSuccessors(N node)\r\n/* 26: */ {\r\n/* 27: 56 */ assert (checkRep());\r\n/* 28: 57 */ return new HashSet(((Map)this.map.get(node)).keySet());\r\n/* 29: */ }", "public abstract LinkedList<Node> getSuccessors();", "Set<? extends IRBasicBlock> getSuccessors(IRBasicBlock...
[ "0.6457827", "0.6419115", "0.6281472", "0.61855537", "0.5953585", "0.57778054", "0.5597042", "0.5360185", "0.53026825", "0.5299987", "0.52824265", "0.5133889", "0.5088792", "0.50799984", "0.50397265", "0.49998283", "0.49894047", "0.4854156", "0.48460755", "0.484422", "0.48216...
0.64065766
2
Return sets of operands used by each Inst
RegSet[] used() { RegSet[] used = new RegSet[code.length]; for (int i = 0; i < code.length; i++) used[i] = code[i].used(); return used; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Deque<Operand> getOperands();", "public Collection<IOperator> getAllOperators()\r\n\t{\r\n\t\treturn expressionRegistry.getAllOperators();\r\n\t}", "public Map<String, AttributeDescriptor.Operator> getOperators()\n {\n \n Map<String, AttributeDescriptor.Operator> optrMap = \n ...
[ "0.60299873", "0.5835678", "0.57223684", "0.57193416", "0.5688111", "0.55986613", "0.55705893", "0.54988396", "0.54977125", "0.5487793", "0.5376851", "0.53451", "0.53251106", "0.531633", "0.53125733", "0.5283456", "0.5274759", "0.5274759", "0.52595204", "0.5258948", "0.521120...
0.49456233
38
Return sets of operands defined by each Inst
RegSet[] defined() { RegSet[] defined = new RegSet[code.length]; for (int i = 0; i < code.length; i++) defined[i] = code[i].defined(); // Parameters are implicitly defined at top of function for (String var : params) defined[0].add(new Id(var)); return defined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Deque<Operand> getOperands();", "public abstract Operand<T> result();", "OperandList createOperandList();", "public Collection<IOperator> getAllOperators()\r\n\t{\r\n\t\treturn expressionRegistry.getAllOperators();\r\n\t}", "Operands createOperands();", "public Map<String, AttributeDescri...
[ "0.5980625", "0.5683543", "0.56362736", "0.5582658", "0.5416905", "0.53993446", "0.53954846", "0.5354707", "0.5334715", "0.5271106", "0.5220952", "0.51819104", "0.51627696", "0.5113611", "0.5111106", "0.5046521", "0.504264", "0.503335", "0.5024702", "0.5020053", "0.5014366", ...
0.0
-1
Just fail if there are more than 6 args.
void gen() { int argCount = args.length; assert (argCount <= X86.argRegs.length); // If indirect jump through a register, make // sure this is not an argument register that // we're about to overwrite! X86.Operand call_target = null; if (ind) { if (tgt instanceof Reg) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void checkNumOfArguments(String[] args) throws IllegalArgumentException{\n\t\ttry{\n\t\t\tif(args.length != App.numberOfExpectedArguments ) {\t\n\t\t\t\tthrow new IllegalArgumentException(\"Expected \" + App.numberOfExpectedArguments + \" arguments but received \" + args.length);\n\t\t\t}\n }...
[ "0.7719321", "0.7470385", "0.7459556", "0.72672457", "0.7130899", "0.7046224", "0.7034773", "0.69644123", "0.6952488", "0.68052065", "0.67347026", "0.6690214", "0.6513953", "0.6420336", "0.6411889", "0.6411889", "0.6411889", "0.6411889", "0.6411889", "0.64066035", "0.6341141"...
0.0
-1
return value if any
void gen() { if (val != null) { X86.Operand r = val.gen_source_operand(true,X86.RAX); X86.emitMov(X86.Size.Q,r,X86.RAX); } // exit sequence // pop the frame if (frameSize != 0) X86.emit2("addq",new X86.Imm(frameSize),X86.RSP); // restore any callee save registers ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getElseValue();", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "boolean hasVal();", "boolean hasVal();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean h...
[ "0.61102813", "0.603066", "0.60262907", "0.60262907", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.60075814", "0.6006767", "0.5896271", ...
0.0
-1
remember: left and right are switched under gnu assembler
void gen() { X86.Operand mleft = src1.gen_source_operand(false,tempReg1); X86.Operand mright = src2.gen_source_operand(true,tempReg2); X86.emit2("cmp" + X86.Size.Q,mright,mleft); X86.emit0("j" + op.X86_name() + " F" + funcNumber + "_" + lab.name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLeftToRight(boolean ltor);", "boolean getLeftToRight();", "protected int left(int i ) { return 2 * i + 1; }", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 )...
[ "0.6335791", "0.611763", "0.6017292", "0.5987947", "0.59463704", "0.5761737", "0.56704813", "0.56598157", "0.56218183", "0.5609304", "0.55939126", "0.55871665", "0.5577637", "0.5554504", "0.54726183", "0.5469508", "0.546769", "0.545785", "0.54570925", "0.5446966", "0.5446966"...
0.50586283
66
Generate a source operand. If imm_ok is true, returning an immediate is ok; otherwise, result is definitely a register (possibly temp). Not all operands can return an immediate, so it is always possible that temp will be used even if imm_ok is true.
X86.Operand gen_source_operand(boolean imm_ok, X86.Reg temp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "X86.Reg gen_dest_operand();", "ExpOperand createExpOperand();", "Operand createOperand();", "public abstract Operand<T> result();", "OpFunctionArgOperand createOpFunctionArgOperand();", "@Override\n public OperandWithCode generateIntermediateCode(Executable executable) {\n \treturn integerExpressio...
[ "0.6458342", "0.5486528", "0.5364428", "0.5298549", "0.5198395", "0.46770617", "0.46025613", "0.45617107", "0.45590287", "0.45272675", "0.45166832", "0.4515093", "0.44842777", "0.4464076", "0.44612208", "0.44550478", "0.44288984", "0.44018754", "0.4376961", "0.43300682", "0.4...
0.853805
0
Generate a destination operand of the specified size. Returns null if dest wasn't given a location or if we are outside its live range; either way, it is dead at this point.
X86.Reg gen_dest_operand();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int size_dest() {\n return (8 / 8);\n }", "public static int offset_dest() {\n return (0 / 8);\n }", "public int getDest(){\r\n\t\treturn this.dest;\r\n\t}", "public Position destination(Position ep) throws InvalidPositionException;", "BinaryImmToReg(@NotNull String name, ...
[ "0.54353434", "0.51006687", "0.4992364", "0.49162215", "0.49016792", "0.48346388", "0.4722427", "0.45809317", "0.45566976", "0.45564497", "0.45291433", "0.45119563", "0.45109665", "0.44848374", "0.4469435", "0.4434819", "0.44312507", "0.4429744", "0.44187355", "0.44077823", "...
0.56911904
0
should be environment dependent
public void gen_const() { X86.emit1(".quad", new X86.GLabel(toString())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "File prepareEnvironment();", "private void randomizeEnvironment() {\n }", "protected void setupLocal() {}", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "public interface RealEnvironment extends Environment {\n\n}", "Environment createEnvironment();", "Environment createEnvi...
[ "0.67165613", "0.66387624", "0.66168565", "0.65408725", "0.64615846", "0.6357986", "0.6357986", "0.61085767", "0.6044606", "0.60092735", "0.5990866", "0.59803325", "0.59125346", "0.58969235", "0.58911145", "0.5889441", "0.5862482", "0.58401626", "0.582415", "0.5779928", "0.57...
0.0
-1
Defines the weapon object to associate with the ship
public ESWeapon addESGun() { return new ESUFOGun(); // Specific to regular UFO }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }", "public void setWeapon(int weapon)\n\t{\n\t\tthis.weapon = weapon;\n\t}", "public WeaponC...
[ "0.70769095", "0.6950972", "0.6785672", "0.67705435", "0.67546564", "0.6716965", "0.6693164", "0.66781044", "0.65941906", "0.6445932", "0.64320296", "0.642758", "0.64029497", "0.6372284", "0.63653815", "0.63168675", "0.63157195", "0.6291676", "0.6268407", "0.62532145", "0.624...
0.5829079
47
Defines the engine object to associate with the ship
public ESEngine addESEngine() { return new ESUFOEngine(); // Specific to regular UFO }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEngine(Engine engine);", "public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }", "public Engine(){\n name = \"Basic Engine\";\n moveDeduction = 1;\n }", "public void setEngine(Engine engine) {\n this.engine = engine;\n }", "public void setEngine(Strin...
[ "0.7235996", "0.71791303", "0.695845", "0.67989427", "0.649796", "0.6449297", "0.6449297", "0.638831", "0.62413704", "0.62285054", "0.618092", "0.6160238", "0.61412257", "0.6121669", "0.60848826", "0.60767883", "0.6064954", "0.60472244", "0.6026554", "0.60050476", "0.59981376...
0.60907
14
Must be called before creating JDialog for the desired effect JDialog.setDefaultLookAndFeelDecorated(true);
private void createAndShowGUI(String str) throws IOException { setUndecorated(true); setAlwaysOnTop(true); // Set some layout setLayout(new BorderLayout()); closeButton = new JButton("Ok."); closeButton.addActionListener(this); add(closeButton, Border...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void configuraInterface() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\ttry\t{\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Falhou o carregamento do L&F: \");\n\t\t\tSystem.out.println(ex);...
[ "0.7193437", "0.7158969", "0.71535635", "0.7116911", "0.70807356", "0.7001731", "0.69937813", "0.69882953", "0.6497923", "0.6493928", "0.6371413", "0.63059676", "0.6302983", "0.6259267", "0.6246148", "0.62306", "0.62269914", "0.6186905", "0.6161793", "0.6160322", "0.6131184",...
0.0
-1
Execute action of tracker.
public abstract void execute(InputCalc input, Calculator calculator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void executeAction( String actionInfo );", "void executeAction(String action, Map params,\n IPSAgentHandlerResponse response);", "@Override\n\tpublic void execute() {\n\t\tempfaengerA.doAction1();\n\t\tempfaengerA.doAction2();\n\t\tempfaengerA.doAction3();\n\n\t}", "protected void execute() {\n\n...
[ "0.6873495", "0.67426425", "0.6503973", "0.63541675", "0.63282275", "0.63119715", "0.62775993", "0.62665105", "0.62012404", "0.61972433", "0.6185752", "0.61534035", "0.61312765", "0.6120857", "0.6092826", "0.60877603", "0.6077031", "0.6074772", "0.6074772", "0.6065669", "0.60...
0.0
-1
Member only kwota za jedno spotkanie rady (uczestnictwo) / Gettery i settery
public String getAssistant() { return assistant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Member getMember() {\n\t\treturn member; ////changed 'MeMbEr' to 'member'\r\n\t}", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "public abstract Member mo23408O();", "@Test\r\n\tpublic void testGetMembers() {\r\n\t\tassertTrue(meetingu...
[ "0.5964604", "0.5759667", "0.570933", "0.56986153", "0.55318916", "0.5519549", "0.5485572", "0.5461925", "0.54587257", "0.54326904", "0.53609973", "0.5351331", "0.53033614", "0.5293823", "0.5292075", "0.52742666", "0.5260873", "0.52353245", "0.52172375", "0.5170435", "0.51628...
0.0
-1
TODO Autogenerated method stub
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String username = request.getParameter("username"); UserDao userDao = new UserDaoImpl(); boolean flag = userDao.checkUsername(username); response.setContentType("text/html;charset=UTF-8"); //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method loops through the file and creates processes and cycles for each process
private Queue<PCB> loadToJobQueue() throws FileNotFoundException { try { br = new BufferedReader(new FileReader(FILENAME)); fr = new FileReader(FILENAME); br = new BufferedReader(fr); int pid = 0; int cpuBurst = 0; int memory = 0; int IOBurst = 0; int counter = 0; String sCurr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public AlgorithmProcess createProcess() {\n return new FileLoaderProcess(file);\n }", "public void processFile() throws Exception {\n InputStream cwlFile = new FileInputStream( CWL_FILE );\n Yaml yaml = new Yaml();\n Map contents = (Map) yaml.load(cwlFile);\n for( Object key ...
[ "0.6110314", "0.5945318", "0.59439677", "0.5897032", "0.58111995", "0.58034235", "0.57094663", "0.5706792", "0.56878626", "0.5682878", "0.5658501", "0.56380546", "0.559925", "0.5571104", "0.55617636", "0.5557798", "0.5495904", "0.54662", "0.5439444", "0.5430116", "0.5424498",...
0.53691465
24
Returns the job queue with loaded processes from the file
public Queue<PCB> getProcesses() { try { return this.loadToJobQueue(); } catch (FileNotFoundException e) { System.err.println("File not found!!"); } return JobQueue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Queue<PCB> loadToJobQueue() throws FileNotFoundException {\r\n\t\ttry {\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(FILENAME));\r\n\t\t\tfr = new FileReader(FILENAME);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\tint pid = 0;\r\n\t\t\tint cpuBurst = 0;\r\n\t\t\tint memory = 0;\r\n\t\t\tint IOBurs...
[ "0.72643274", "0.6114993", "0.59150755", "0.58837956", "0.584229", "0.5829511", "0.571936", "0.57192236", "0.5689709", "0.56415826", "0.561541", "0.5605079", "0.55744004", "0.5541271", "0.5533303", "0.5512496", "0.5504096", "0.5491552", "0.54557294", "0.5434235", "0.54312617"...
0.7698448
0
Add an item to the Mobile Service Table
public BookUser addItemInTable(BookUser item) throws ExecutionException, InterruptedException { BookUser entity = Azure.mbook.insert(item).get(); return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}", "private void addDeviceItem() throws SQLException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttry{\r\n\t\t\tnameDevice = edtNameDevice.getText()....
[ "0.68667614", "0.6807135", "0.6657028", "0.6419823", "0.63970464", "0.63755614", "0.6305549", "0.62932247", "0.6175392", "0.6153965", "0.6144336", "0.6141297", "0.6089684", "0.6088535", "0.60715735", "0.60693324", "0.6061114", "0.6060359", "0.60482025", "0.60451436", "0.60398...
0.62508637
8
Creates a dialog and shows it
private void createAndShowDialog(Exception exception, String title) { Throwable ex = exception; if(exception.getCause() != null){ ex = exception.getCause(); } createAndShowDialog(ex.getMessage(), title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n ...
[ "0.7344519", "0.7241187", "0.7218946", "0.7183877", "0.71538234", "0.71434057", "0.7088582", "0.7011126", "0.70048153", "0.6969636", "0.69431597", "0.6928362", "0.6927173", "0.68758285", "0.6865261", "0.6854176", "0.6838312", "0.6832828", "0.6830904", "0.6790587", "0.678631",...
0.0
-1
Creates a dialog and shows it
private void createAndShowDialog(final String message, final String title) { final AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(message); builder.setTitle(title); builder.create().show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n ...
[ "0.7344519", "0.7241187", "0.7218946", "0.7183877", "0.71538234", "0.71434057", "0.7088582", "0.7011126", "0.70048153", "0.6969636", "0.69431597", "0.6928362", "0.6927173", "0.68758285", "0.6865261", "0.6838312", "0.6832828", "0.6830904", "0.6790587", "0.678631", "0.6769166",...
0.6854176
15
Run an ASync task on the corresponding executor
private AsyncTask<Void, Void, Void> runAsyncTask(AsyncTask<Void, Void, Void> task) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { return task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } else { return task.execute(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void execute(Task t);", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}", "@SuppressWarnings({\"unused\", \"unchecked\"})\n public void execute(Executor executor, IN... ins) {\n asyncTask.executeOnExecutor(execut...
[ "0.6652846", "0.6461947", "0.6449219", "0.6384129", "0.6379582", "0.63616216", "0.63449717", "0.6315661", "0.63038236", "0.6200144", "0.6194103", "0.61933804", "0.61701936", "0.60813254", "0.60255086", "0.6024417", "0.6002302", "0.5988537", "0.59579504", "0.59514123", "0.5948...
0.6188229
13
Show an error message as a toast
void showError() { Toast.makeText(this, "Please select answers to all questions.", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "private void showErrorToast() {\n }", "private void showErrorToast(String message) {\n Toast.makeText(CreateAccountActivity.this, message, Toast.LENGTH_LONG).show();\n...
[ "0.8339651", "0.8273279", "0.8128142", "0.8128142", "0.7826262", "0.78077805", "0.77832043", "0.7680177", "0.7680177", "0.759481", "0.75799245", "0.7556874", "0.7487612", "0.7467888", "0.74477285", "0.74414325", "0.7434455", "0.74249345", "0.7412281", "0.7402347", "0.73978424...
0.6804522
51
Return a list the people
public List<People> getPeople();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Person> getListPeople() {\n\t\tList<Person> people = new ArrayList<>();\n\t\tpeople.add(new Person(\"Juan\", 25));\n\t\tpeople.add(new Person(\"Ana\", 30));\n\t\tpeople.add(new Person(\"Eva\", 42));\n\t\tpeople.add(new Person(\"Piter\", 27));\n\t\tLOG.info(\"HELLO FROM SERVICE\");\n\t\tret...
[ "0.80342823", "0.80062425", "0.78918964", "0.7836486", "0.7684847", "0.7247407", "0.7243642", "0.714265", "0.71246105", "0.70975846", "0.70845413", "0.70813215", "0.7066812", "0.70435184", "0.7021119", "0.699512", "0.6970784", "0.6957893", "0.6957707", "0.69374585", "0.693637...
0.7984965
2
Return a People by id
public People getPeopleById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public People getPeopleById(ObjectId id) {\r\n if (id == null) {\r\n return null;\r\n }\r\n return datastore.getByKey(People.class, new Key<>(People.class, \"people\", id));\r\n }", "private static Person findPersonById(int id) {\n Person personReturn = null;\n\n for (Person person :...
[ "0.8100138", "0.7870476", "0.7859427", "0.7519045", "0.7339572", "0.7239846", "0.72174895", "0.7207482", "0.71884257", "0.71687686", "0.7130501", "0.71164924", "0.709288", "0.7074634", "0.69906676", "0.6978161", "0.6973713", "0.69647044", "0.6954156", "0.6864669", "0.68210346...
0.8781687
0
Create new People or update an existing one
public People savePeople(People people);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void lookupAndSaveNewPerson();", "private static Person updatePerson(Request req) {\n int id = Integer.parseInt(req.params(\"id\"));\n Person personRequested = gson.fromJson(req.body(), Person.class);\n \n // get the data from personRequested keeping the id\n Person personFound...
[ "0.70043266", "0.61598927", "0.61009663", "0.6047902", "0.6029754", "0.602656", "0.6013098", "0.6004133", "0.5945705", "0.59323895", "0.5918022", "0.5914143", "0.58967185", "0.58646315", "0.5858456", "0.585463", "0.58379513", "0.5834592", "0.58266014", "0.57928497", "0.572443...
0.6814699
1
Delete People an existing one
public boolean deletePeople(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteAllPeople() {\n }", "@Override\n\tpublic void deletePerson(Person p) {\n\n\t}", "@Override\r\n\tpublic void delete(Person p) \r\n\t{\n\t\t\r\n\t}", "@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }", "vo...
[ "0.74193436", "0.7378385", "0.7327618", "0.7306552", "0.7305378", "0.7293789", "0.7205611", "0.7081901", "0.70276976", "0.7004814", "0.7004322", "0.69629353", "0.69574213", "0.69454324", "0.6944991", "0.6899757", "0.68991244", "0.68950135", "0.6852794", "0.6813162", "0.665987...
0.7717816
0
Initializes the metrics for delete operation.
public void initMetrics(MeterRegistry meterRegistry) { String metricName = String.join(".", "pap", "policy", "deployments"); String description = "Timer for HTTP request to deploy/undeploy a policy"; undeploySuccessTimer = Timer.builder(metricName).description(description) .tags(Prom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearMetrics() {\n this.metrics_ = GeneratedMessageLite.emptyProtobufList();\n }", "@Override\n\tpublic synchronized void initialize(OperatorContext context)\n\t\t\tthrows Exception {\n\t\t// Must call super.initialize(context) to correctly setup an operator.\n\t\tsuper.initialize(c...
[ "0.5919001", "0.5838219", "0.5677664", "0.55797243", "0.5550191", "0.5550191", "0.5381961", "0.5370262", "0.5349716", "0.53493583", "0.53246045", "0.53187406", "0.52699846", "0.52699536", "0.526155", "0.526155", "0.52604705", "0.52189857", "0.5205505", "0.5193999", "0.5190648...
0.48370507
68
Deletes a PDP group.
@Override public ResponseEntity<PdpGroupDeleteResponse> deleteGroup(String groupName, UUID requestId) { return doOperation(requestId, () -> provider.deleteGroup(groupName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteGroup(Group group);", "Result deleteGroup(String group);", "DeleteParameterGroupResult deleteParameterGroup(DeleteParameterGroupRequest deleteParameterGroupRequest);", "public void deleteGroup(GroupUser group) {\n try{\n PreparedStatement s = sql.prepareStatement(\"DELETE ...
[ "0.7955283", "0.77564514", "0.71095306", "0.6877423", "0.6741202", "0.67086154", "0.6696798", "0.6686187", "0.66595113", "0.65750587", "0.65495557", "0.6539756", "0.6534372", "0.6504999", "0.6496133", "0.64090514", "0.6313128", "0.63033426", "0.6279533", "0.6276179", "0.62572...
0.6672971
8
Undeploys the latest version of a policy from the PDPs.
@Override public ResponseEntity<PdpGroupDeployResponse> deletePolicy(String policyName, UUID requestId) { return doUndeployOperation(requestId, () -> provider.undeploy(new ToscaConceptIdentifierOptVersion(policyName, null), getPrincipal())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removePolicy(){\n\texcludedPermissions = null;\n\tuncheckedPermissions = null;\n\trolePermissionsTable = null;\n\tremovePolicyFile(true);\n\tremovePolicyFile(false);\n\tremovePolicyContextDirectory();\n\tinitLinkTable();\n\tpolicy = null;\n\twriteOnCommit = true;\n }", "@Override\n public Resp...
[ "0.56174535", "0.5563818", "0.5489422", "0.51311016", "0.50421226", "0.49997494", "0.49136004", "0.48489663", "0.4809601", "0.4786654", "0.47570038", "0.47399366", "0.46363387", "0.46250325", "0.4615441", "0.46086997", "0.4556377", "0.45354447", "0.4503876", "0.44823262", "0....
0.54695815
3
Undeploys a specific version of a policy from the PDPs.
@Override public ResponseEntity<PdpGroupDeployResponse> deletePolicyVersion( String policyName, String version, UUID requestId) { return doUndeployOperation(requestId, () -> provider.undeploy(new ToscaConceptIdentifierOptVersion(policyName, version), getPrinci...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ResponseEntity<PdpGroupDeployResponse> deletePolicy(String policyName, UUID requestId) {\n return doUndeployOperation(requestId,\n () -> provider.undeploy(new ToscaConceptIdentifierOptVersion(policyName, null), getPrincipal()));\n }", "private void removePolicy(){\n\tex...
[ "0.59061605", "0.56677973", "0.55020756", "0.5384261", "0.53770345", "0.5330545", "0.5313511", "0.52652466", "0.51768094", "0.5155016", "0.50624144", "0.48489594", "0.47881722", "0.47708678", "0.47477305", "0.47226858", "0.47110054", "0.4694187", "0.4678605", "0.4648431", "0....
0.63087404
0
Suppose we abstract our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: dir subdir1 subdir2 file.ext The directory dir contains an empty subdirectory subdir1 and a subdirectory subdir2 containing a file file.ext. The string "dir\n\tsubdir1\n\t\tfile1.ext...
private boolean isDir(String fileName) { return !fileName.contains("."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int lengthOfLongestSubstring(String s) {\n return sol2a(s); \n //return sol3_WRONG(s); //NO! D & C (unlike LC53)\n }", "public int lengthOfLongestSubstring(String s) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n int res = 0;\n bool...
[ "0.6208289", "0.6126675", "0.61094856", "0.6094579", "0.60658544", "0.59970576", "0.5989202", "0.5956617", "0.5948199", "0.5927468", "0.5902452", "0.5894839", "0.58698136", "0.5849941", "0.5847816", "0.58345884", "0.58278716", "0.5816346", "0.5795594", "0.578284", "0.5777555"...
0.0
-1
Created by tothzs on 2017.11.13.. CRUD Methods for Car obejcts
public interface CarDAO { /** * * @return all car object in the database. */ Collection<Car> readCars(); /** * * @param producer selected producer * @return return all car of the selected producer */ Collection<Car> readCars(CarProducer producer); /** * Rea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Car getCarById(Integer id){\n\n return this.carCrudInterface.getById(id);\n\n }", "public Car saveCar(Car car) {\r\n return repository.save(car);\r\n }", "public List<Car>getAllCars(){\r\n return (List<Car>) repository.findAll();\r\n }", "@Dao\npublic interface CarDao {\n...
[ "0.696815", "0.6836275", "0.68190044", "0.6750532", "0.6710675", "0.66445667", "0.6625799", "0.65940636", "0.64556885", "0.64028805", "0.63893753", "0.6368868", "0.63537997", "0.6346249", "0.6334691", "0.6314142", "0.63064265", "0.62941796", "0.62731147", "0.62247175", "0.619...
0.65175515
8
Read a single car based on the plate number.
Car readCar(String plateNo) throws CarNotFoundException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchSpecificCar() {\n\t\tSystem.out.print(\"Enter Registration Number: \");\n\t\tSystem.out.println(application.displaySpecificCar(console.nextLine()));\n\t}", "public void setPlateNo(String plateNo) {\n\t\tthis.plateNo = plateNo;\n\t}", "public JalLibraryPlate getJalLibraryPlate(final String pl...
[ "0.5903144", "0.5836785", "0.5831533", "0.5767813", "0.5743267", "0.5741943", "0.56504303", "0.56087977", "0.55132985", "0.54946095", "0.54809546", "0.5434992", "0.5427066", "0.53960574", "0.538215", "0.53560686", "0.53515786", "0.53355926", "0.53105414", "0.53062785", "0.529...
0.8618744
0
Create a new Gen2PortalWithMaskID command
public Gen2PortalIDWithMaskCommand(byte packetLength, byte memoryBank, byte startingBit, byte maskLength, byte maskValue, byte qValue, byte timeout, byte repeat) { rawmessage = new byte[] { packetLength, 0x20, 0x5E, 0x02, 0x04, memoryBank, startingBit, maskLength,maskValue, 0x01, qValue, timeout, repe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createUserCampaignMask(CampaignMask mask) throws DataAccessException;", "void nodeCreate( long id );", "DigitalPin createDigitalPin();", "ID create(NewRoamingGroup group);", "String createContext(PortalControllerContext portalControllerContext, String domain, String code);", "Pin createPin();", "@...
[ "0.57585764", "0.5080592", "0.5046544", "0.49726465", "0.49583915", "0.48922354", "0.4880681", "0.48726034", "0.48193058", "0.48174837", "0.4815812", "0.47946477", "0.4773732", "0.47732884", "0.47721192", "0.4764956", "0.47633445", "0.47163647", "0.46973747", "0.46813926", "0...
0.64727086
0
Distributes messages over its listeners, the listeners need to find out by themselves if they have the correct object by calling instanceof.
public MessageProcessorDistributor() { this.messageProcessors = new LinkedList<MessageProcessor>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void send(Iterable<T> aMessages) {\n for (Listener<T> myL : _listeners)\n myL.arrived(aMessages);\n }", "public void shoutMessage(Talker t, Class cls) {\n\t\tfor (Listener l: mListenerSet) {\n\t\t\tif (l.getClass().isAssignableFrom(cls)) {\n\t\t\t\tl.onMessageReceived(t.getMessage())...
[ "0.6252939", "0.60709524", "0.56272465", "0.5624476", "0.5585374", "0.55694467", "0.55668366", "0.55622876", "0.5520723", "0.54916877", "0.54333955", "0.53648126", "0.5356231", "0.5352575", "0.5349655", "0.5348219", "0.5334316", "0.53289425", "0.52942246", "0.52888155", "0.52...
0.0
-1
Combined with a message"receiver" this calls a method of the robotarm
public void processMessage(byte[] message) { try { Object receivedMessage = Serializer.deserialize(message); processMessage(receivedMessage); } catch (IOException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void communicate() {\n // Send\n for (int i = 0; i < robots.length; i++) {\n if (i != this.id) {\n if (objectFound) {\n System.out.println(\"Robot \" + this.id + \": Telling everyone else...\");\n this.robots[i].mailbox[i] = new M...
[ "0.65000594", "0.6376396", "0.62639666", "0.62549716", "0.624865", "0.624668", "0.6218795", "0.61932087", "0.6179716", "0.6165971", "0.61383975", "0.61106616", "0.61089796", "0.61001086", "0.6085897", "0.6078474", "0.60742897", "0.60654145", "0.6055907", "0.6012077", "0.59845...
0.0
-1
Adds a MessageProcessor that receives messages.
public void addMessageProcessor(MessageProcessor messageProcessor) { this.messageProcessors.add(messageProcessor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addMessageProcessor(String xml) throws AxisFault {\n try {\n OMElement msElem = createElement(xml);\n MessageProcessor messageProcessor =\n MessageProcessorFactory.createMessageProcessor(msElem);\n if (messageProcessor != null && messageProcess...
[ "0.6471787", "0.61933666", "0.614538", "0.5864841", "0.58570224", "0.5856841", "0.5831086", "0.56974524", "0.56387854", "0.5603577", "0.5600574", "0.5594792", "0.55542934", "0.5551863", "0.5494454", "0.5494007", "0.54813206", "0.5475046", "0.54637164", "0.5424066", "0.533965"...
0.784643
0
store the numbers in a array from the string separated using the comma
public static int add(String numbers) { String[] numbersArray = numbers.split(","); //throw exception if more than two numbers are provided for addition if (numbersArray.length > 2) { throw new RuntimeException("upto two numbers are allowed seperated by comma"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int[] parseNumbers(String numbersString) {\n\t\tStringTokenizer tokenizer = new StringTokenizer(numbersString, \",\");\n\t\tint numbers[] = new int[tokenizer.countTokens()];\n\t\tint count = 0;\n\n\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\tnumbers[count++] = Integer.parseInt(token...
[ "0.68672186", "0.6660796", "0.63467723", "0.6336341", "0.5991869", "0.5919503", "0.59189713", "0.58892316", "0.5883985", "0.58696264", "0.5853505", "0.5836281", "0.5834136", "0.5824673", "0.57656926", "0.5720283", "0.56921834", "0.56682384", "0.5664402", "0.563583", "0.559577...
0.54220283
31
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println((int)'a'); System.out.println((int)'b'); System.out.println((int)'c'); System.out.println((int)'d'); System.out.println((int)'z'); }
{ "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
ogni 5 secondi invio le statistiche al server
@Override public void run() { while(running) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("--------------------------------------------------------------------...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void demoSchduleMethod() {\n log.info(\"Method executed at every 5 seconds. Current time is :: \" + new Date());\n }", "public int Recebe_salario() {\n\t\treturn 8000;\r\n\t}", "@Scheduled(fixedRate = 2000)\n private void doSendRpcUsage() {\n List<MethodCallDTO> items = stats.values(...
[ "0.5682506", "0.5672341", "0.56719387", "0.56619424", "0.5560706", "0.5521645", "0.5483848", "0.54278874", "0.54197925", "0.5400945", "0.5391624", "0.53762573", "0.5348258", "0.5326249", "0.53121746", "0.526845", "0.5264358", "0.52555597", "0.524538", "0.52172697", "0.5212025...
0.0
-1
quando invio le stats, se il server non risponde le salvo in un buffer di backup e riprovo fra 5 secondi
private void sendStatsToServer(List<Statistic> stats) { if(stats == null) { System.out.println("COORDINATOR - Nothing to send yet"); return; } ClientResponse response; String serverURI = coordinator.getNode().getServerURI(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}", "@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"send...
[ "0.5741935", "0.57038283", "0.56567943", "0.561908", "0.558843", "0.5569349", "0.5564013", "0.55038154", "0.5474358", "0.547071", "0.54255545", "0.54161036", "0.5401875", "0.5339745", "0.5323956", "0.5320066", "0.5310791", "0.530373", "0.5274598", "0.527332", "0.52516717", ...
0.5766482
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { assignmentAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_selectable_list_item); new getAllCourses().execute(""); return super...
{ "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.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348"...
0.0
-1
retrieve the item from stock list
public static int addRemoveItemToBasket(Basket basket, String item, int quantity) { StockItem stockItem = stockList.get(item); if (stockItem == null) { System.out.println("We don't sell " + item); return 0; } if (stockList.reserveStock(item, quantity) >= 0) { return basket.addToBasket(stockItem, quanti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stock retrieveStock(String symbol);", "public List<StockItem> getStockList();", "public List<Stockitem> getItem() {\n\t\treturn (ArrayList<Stockitem>) stockitemDAO.findAllStockitem();\n\t}", "io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);", "public int getStock(int pid) {\nfor (ProductS...
[ "0.73661315", "0.72611547", "0.7174413", "0.716698", "0.71271676", "0.70548165", "0.68433774", "0.6801404", "0.6801404", "0.6671593", "0.6620117", "0.65994287", "0.65662867", "0.6478446", "0.6467816", "0.6465498", "0.6412478", "0.6412478", "0.64119595", "0.6408381", "0.640777...
0.0
-1
retrieve the items from stock list
public static int checkout(Basket basket) { for (Map.Entry<StockItem, Integer> item : basket.Items().entrySet()) { String itemName = item.getKey().getName(); StockItem stockItem = stockList.get(itemName); if (stockItem == null) { System.out.println("We don't sell " + itemName); return 0; } stoc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<StockItem> getStockList();", "java.util.List<stockFilePT102.StockDocument.Stock> getStockList();", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "public List<Stockitem> getItem() {\n\t\treturn (ArrayList<...
[ "0.811745", "0.7605986", "0.75879914", "0.7585479", "0.7330154", "0.7129368", "0.70513666", "0.7044229", "0.7036958", "0.7020333", "0.7013007", "0.69540966", "0.6904107", "0.68925565", "0.6877378", "0.67258626", "0.6703767", "0.6692618", "0.66748327", "0.6670948", "0.6642431"...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String savePath = request.getServletContext().getRealPath("/") + "images"; File fileSaveDir=new File(savePath); if(!fileSaveDir.exists()){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
file name of the upload file is included in contentdisposition header like this: formdata; name="dataFile"; filename="PHOTO.JPG"
private String extractFileName(Part part) { String contentDisp = part.getHeader("content-disposition"); String[] items = contentDisp.split(";"); for (String s : items) { if (s.trim().startsWith("filename")) { return s.substring(s.indexOf("=") + 2, s.length()-1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContentDispositionFormData(String name, String filename)\r\n/* 162: */ {\r\n/* 163:245 */ Assert.notNull(name, \"'name' must not be null\");\r\n/* 164:246 */ StringBuilder builder = new StringBuilder(\"form-data; name=\\\"\");\r\n/* 165:247 */ builder.append(name).append('\"');\r\n/...
[ "0.7096284", "0.667953", "0.6675569", "0.656964", "0.6564737", "0.6530946", "0.6482337", "0.646816", "0.6465103", "0.63858503", "0.6279809", "0.6087526", "0.6013075", "0.5978006", "0.59685475", "0.59548163", "0.59340876", "0.59340876", "0.59229463", "0.59104043", "0.5905932",...
0.65259814
6
Created by zhangbo on 2017/6/27.
public interface StatusMapper extends BaseMapper<Status> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.61408067", "0.60016197", "0.59309494", "0.59028876", "0.58880615", "0.58880615", "0.5811887", "0.5797337", "0.5779256", "0.5741362", "0.5740257", "0.5739698", "0.5730851", "0.5698582", "0.569843", "0.5694899", "0.56865174", "0.56786567", "0.56780666", "0.56611454", "0.5659...
0.0
-1
create and initialize the retrofit instance
public static Retrofit create(){ Retrofit retrofit = new Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build(); return retrofit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void init() {\n client = new OkHttpClient();\n\n //Construct a HTTP builder\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(apiAddress)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n...
[ "0.8028581", "0.77967876", "0.7737628", "0.7586987", "0.74160314", "0.7414102", "0.7386711", "0.7360634", "0.7354287", "0.7306378", "0.7292581", "0.72472507", "0.70618796", "0.70436525", "0.69733715", "0.684201", "0.67805207", "0.6767313", "0.67385745", "0.6706236", "0.663971...
0.76289135
3
create a static method to use the interface verbs
public static Call<List<FlickR>> createCall(String user) { Retrofit retrofit = create(); ApiService apiService = retrofit.create(ApiService.class); return apiService.getFlickRItems(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface APIClient {\n\n\t// regular expression to parse the action name\n\tPattern actionNamePattern = Pattern.compile(\"violet\\\\.([\\\\w]+)\\\\.([\\\\w]+)\");\n\n\t/**\n\t * The simplest type of call when only one parameter is needed Works only if\n\t * Action type is GET (no side effects)\n\t * \n\t *...
[ "0.62925506", "0.6281801", "0.623713", "0.6231941", "0.61856145", "0.6163536", "0.61603624", "0.61105675", "0.60849077", "0.605425", "0.6051773", "0.6045794", "0.59787214", "0.59711844", "0.5969987", "0.59665096", "0.59665096", "0.5945399", "0.59275776", "0.5916439", "0.59150...
0.0
-1
create an interface to have all the paths and verbs for the REST api to use
interface ApiService { @GET("users/{user}/repos") Call<List<FlickR>> getFlickRItems(@Path("user") String user); @GET("users/{user}") Call<Owner> getFlickRMedia(@Path("user") String user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface APIEndpoints {\n\n @GET(\"user/{id}\")\n Call<User> getUser(@Path(\"id\") String userId);\n\n @GET(\"user\")\n Call<List<User>> getUsers();\n\n @POST(\"user\")\n Call<User> createUser(@Body User user);\n\n @PATCH(\"user/{id}\")\n Call<User> updateUser(@Body User user, @Path...
[ "0.7248546", "0.708564", "0.70700234", "0.7054111", "0.7017833", "0.7001134", "0.687891", "0.6872862", "0.68693316", "0.6866923", "0.6849324", "0.68043", "0.6796756", "0.6766978", "0.6746902", "0.6712274", "0.66964954", "0.6694311", "0.6677527", "0.6669232", "0.6666554", "0...
0.6649121
23
return new LoginProxy().home(mapping, form, request, response);
private ActionForward home(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { return new LoginProxy().loginHome(mapping, form, request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ActionForward autorizar(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn new LoginProxy().loginHome(mapping, form, request, response);\n\t}", "protected Response login() {\n return login(\"\");\n }", "Login.Req getLoginReq(...
[ "0.767392", "0.692989", "0.692088", "0.6830953", "0.67813784", "0.67617863", "0.66520184", "0.659762", "0.65492433", "0.6535658", "0.651978", "0.6495898", "0.64938456", "0.64775246", "0.64725196", "0.64549094", "0.64531815", "0.6452639", "0.6451184", "0.64335203", "0.6422933"...
0.7579392
1
return new LoginProxy().home(mapping, form, request, response);
private ActionForward autorizar(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { return new LoginProxy().loginHome(mapping, form, request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ActionForward home(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn new LoginProxy().loginHome(mapping, form, request, response);\n\t}", "protected Response login() {\n return login(\"\");\n }", "Login.Req getLoginReq();", ...
[ "0.7579392", "0.692989", "0.692088", "0.6830953", "0.67813784", "0.67617863", "0.66520184", "0.659762", "0.65492433", "0.6535658", "0.651978", "0.6495898", "0.64938456", "0.64775246", "0.64725196", "0.64549094", "0.64531815", "0.6452639", "0.6451184", "0.64335203", "0.6422933...
0.767392
0
Database db = new Database("data/restaurants.json", "data/reviews.json" , "data/users.json");
@Test public void test01() { User user1 = new User("megan"); user1.setUrl("url1"); assertEquals("url1", user1.getUrl()); // db.addRestaurant(rest1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Database(JsonObject data){\n this.obj = data;\n rest = (JsonArray) obj.get(\"restaurants\");\n /* TODO \nset the memebr variable declared above.*/\n }", "public YelpDB(String restaurants, String reviews, String users) throws IOException {\n\n this.gson = new Gson();\n ...
[ "0.6586117", "0.5897948", "0.58510596", "0.5782282", "0.57249427", "0.5707552", "0.5680607", "0.56400913", "0.56113285", "0.5583156", "0.5580644", "0.55678874", "0.55456257", "0.55059886", "0.5501014", "0.5468732", "0.5441115", "0.5436585", "0.54307485", "0.5422534", "0.54046...
0.0
-1
Database db = new Database("data/restaurants.json", "data/reviews.json" , "data/users.json");
@Test public void test02() { User user1 = new User("megan"); user1.setName("Name1"); assertEquals("Name1", user1.getName()); // db.addRestaurant(rest1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Database(JsonObject data){\n this.obj = data;\n rest = (JsonArray) obj.get(\"restaurants\");\n /* TODO \nset the memebr variable declared above.*/\n }", "public YelpDB(String restaurants, String reviews, String users) throws IOException {\n\n this.gson = new Gson();\n ...
[ "0.6587084", "0.59001803", "0.5850797", "0.5781519", "0.57244664", "0.57080203", "0.5680197", "0.56416494", "0.5611351", "0.55827695", "0.5581512", "0.5568205", "0.55459124", "0.5505512", "0.55007637", "0.546872", "0.54406625", "0.54374564", "0.5431057", "0.5422269", "0.54058...
0.0
-1
Database db = new Database("data/restaurants.json", "data/reviews.json" , "data/users.json");
@Test public void test03() { User user1 = new User("megan"); user1.setUser_id("UserID1"); assertEquals("UserID1", user1.getUser_id()); // db.addRestaurant(rest1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Database(JsonObject data){\n this.obj = data;\n rest = (JsonArray) obj.get(\"restaurants\");\n /* TODO \nset the memebr variable declared above.*/\n }", "public YelpDB(String restaurants, String reviews, String users) throws IOException {\n\n this.gson = new Gson();\n ...
[ "0.65861094", "0.58987033", "0.58500123", "0.57821256", "0.5724634", "0.5708028", "0.5680771", "0.5640059", "0.56118333", "0.5583557", "0.55817384", "0.55673295", "0.554575", "0.5505728", "0.55013376", "0.54694223", "0.54420274", "0.54371053", "0.5431664", "0.54222995", "0.54...
0.0
-1
construct a line object
public Line (double x0, double y0, double x1, double y1) { this.x0 = x0; this.y0 = y0; this.x1 = x1; this.y1 = y1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Line createLine();", "public Line(){\n\t\t\n\t}", "public static Line CreateLine(String id) { return new MyLine(id); }", "public OMAbstractLine() {\n super();\n }", "public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}", "public LineData()\n\t{\n\t}", "public Line() {\r\n this.line = new A...
[ "0.83665174", "0.812985", "0.7751703", "0.75308067", "0.7208539", "0.7160726", "0.70131564", "0.69879985", "0.6974155", "0.69313395", "0.6913928", "0.6888419", "0.68542254", "0.6842991", "0.6796845", "0.6769413", "0.6755601", "0.6719972", "0.66982085", "0.6684841", "0.6578138...
0.69038
11
calculate the slope of the line
public double getSlope( ){ if (x1 == x0){ throw new ArithmeticException(); } return (y1 - y0)/(x1 - x0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static double slope(Line line) {\n return (line.b == 1) ? -line.a : INF;\n }", "public double slope(){\n double x = getStart().getXco();\n double x1 = end.getXco();\n double y = getStart().getYco();\n double y1 = end.getYco();\n double num = y1 - y;\n d...
[ "0.8840291", "0.8596443", "0.84329706", "0.7992447", "0.78255165", "0.771974", "0.7617864", "0.7520947", "0.74105185", "0.72966677", "0.7269127", "0.72529227", "0.7250839", "0.7243178", "0.72020835", "0.719873", "0.71661717", "0.7161681", "0.7137247", "0.7080828", "0.6898559"...
0.75667185
7
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Add New Services method
public static void addNewServices() { displayAddNewServicesMenu(); processAddnewServicesMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addService(ServiceInfo serviceInfo);", "Service newService();", "public Collection<Service> createServices();", "public abstract T addService(ServerServiceDefinition service);", "Fog_Services createFog_Services();", "public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }", ...
[ "0.7521659", "0.73226607", "0.73019695", "0.7283026", "0.70783496", "0.6794216", "0.6790927", "0.67296755", "0.66419995", "0.66246575", "0.6622686", "0.66082317", "0.6575329", "0.65746933", "0.6501057", "0.648148", "0.646962", "0.6431798", "0.6352217", "0.6352217", "0.6335506...
0.731083
2
Process Add New Services method
public static void processAddnewServicesMenu() { switch (ScannerUtils.scanner.nextLine()) { case ADD_NEW_VILLA: addNewVilla(); break; case ADD_NEW_HOUSE: addNewHouse(); break; case ADD_NEW_ROOM: a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }", "void addService(ServiceInfo serviceInfo);", "public void addService() throws Throwable\r\n\t{\r\n\t\tselServicOpt.click();\r\n\t\tverifyService();\r\n\t\twdlib.waitForElement(getSelServic...
[ "0.806245", "0.75640994", "0.7217116", "0.71151364", "0.7015427", "0.6962962", "0.6759562", "0.6658083", "0.661295", "0.661276", "0.6577973", "0.6566626", "0.6535541", "0.6516138", "0.64875484", "0.64875484", "0.64767575", "0.6358367", "0.63355833", "0.6315609", "0.6304042", ...
0.68251777
6
Add New Villa method
public static void addNewVilla() { Services villa = new Villa(); villa = addNewService(villa); ((Villa) villa).setRoomType(FuncValidation.getValidName(ENTER_ROOM_TYPE,INVALID_NAME)); ((Villa) villa).setFacilities(FuncValidation.getValidName(ENTER_FACILITIIES,INVALID_NAME)); ((Vil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addMethod(Method method);", "org.hl7.fhir.CodeableConcept addNewMethod();", "Method createMethod();", "Method createMethod();", "private void addMethod(MethodNode methodNode){\n\t\t\tString[] exceptions = new String[methodNode.exceptions.size()];\n\t\t\tmethodNode.exceptions.toArray(exceptions);\n\t\t...
[ "0.74228317", "0.73515517", "0.6583698", "0.6583698", "0.65136504", "0.64701974", "0.6242491", "0.6206249", "0.61709535", "0.615008", "0.60892296", "0.60421336", "0.6038953", "0.6036298", "0.59926003", "0.59659076", "0.5960034", "0.59525627", "0.5916221", "0.58638525", "0.582...
0.5702607
34
Add New House method
public static void addNewHouse() { Services house = new House(); house = addNewService(house); ((House) house).setRoomType(FuncValidation.getValidName(ENTER_ROOM_TYPE,INVALID_NAME)); ((House) house).setFacilities(FuncValidation.getValidName(ENTER_FACILITIIES,INVALID_NAME)); ((...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createNewHouseAndAddToList(){\n\t\t\tHouse newHouse = new House();\r\n\t\t\tString id = createAutomaticallyID().trim();\r\n\t\t\tnewHouse.setId(id);\r\n\t\t\tnewHouse.setPrice(Double.parseDouble(priceTextField.getText().trim()));\r\n\t\t\tnewHouse.setNumberOfBathrooms(Integer.parseInt(bathroomsTextFiel...
[ "0.788326", "0.7318935", "0.6917635", "0.68958753", "0.68145967", "0.66095644", "0.6538855", "0.6437536", "0.638268", "0.63602847", "0.624132", "0.616572", "0.6081517", "0.60410166", "0.6032015", "0.598547", "0.5935933", "0.59149194", "0.58508116", "0.58410054", "0.5831603", ...
0.81656826
0
Add New Room method
public static void addNewRoom() { Services room = new Room(); room = addNewService(room); ((Room) room).setFreeService(FuncValidation.getValidFreeServices(ENTER_FREE_SERVICES,INVALID_FREE_SERVICE)); //Get room list from CSV ArrayList<Room> roomList = FuncGeneric.getListFromCSV(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Room createRoom(Room room);", "public void addRoom(){\r\n String enteredRoomNumber = mRoomNumber.getText().toString();\r\n if (!enteredRoomNumber.equals(\"\")){\r\n RoomPojo roomPojo = new RoomPojo(enteredRoomNumber,\r\n mAllergy.getText().toString(),\r\n ...
[ "0.7698664", "0.7684204", "0.7566619", "0.7260587", "0.72500813", "0.7185022", "0.7086234", "0.7039684", "0.70353854", "0.6986278", "0.69276434", "0.69067574", "0.6848473", "0.67372394", "0.67314523", "0.672192", "0.6686628", "0.66705704", "0.6669692", "0.66108245", "0.660036...
0.7790247
0
Add New Service method
public static Services addNewService(Services services) { services.setId(FuncValidation.getValidIdService(services,ENTER_SERVICE_ID,INVALID_SERVICE_ID)); services.setNameOfService(FuncValidation.getValidName(ENTER_SERVICE_NAME,INVALID_NAME)); services.setUsedArea(FuncValidation.getValidDoubleNum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Service newService();", "void addService(ServiceInfo serviceInfo);", "public abstract T addService(ServerServiceDefinition service);", "public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }", "public void service() {\n\t}", "public abstract T addService(BindableService bindableSe...
[ "0.7865219", "0.7771645", "0.77637553", "0.7093525", "0.70612335", "0.7016274", "0.6934671", "0.6934407", "0.6783919", "0.67540264", "0.671477", "0.6666423", "0.6662091", "0.6612837", "0.660182", "0.6600247", "0.6600247", "0.65906763", "0.6559363", "0.6546835", "0.6440094", ...
0.62741464
31
Return Add New Services Menu method
public static void returnAddNewServicesMenu() { System.out.print("Please enter a number to continue:"); processAddnewServicesMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }", "private Menu createServiceMenu() {\r\n\t\tMenu serviceMenu = new Menu(\"Service\");\r\n\r\n\t\tstartService = new MenuItem(\"Start\");\r\n\t\tstartService.addActionListener(new ActionListen...
[ "0.8423055", "0.7246143", "0.71047014", "0.6931017", "0.6880201", "0.665359", "0.6581175", "0.65407485", "0.64627385", "0.64049757", "0.6367149", "0.63476455", "0.6306267", "0.6275393", "0.62665987", "0.62468374", "0.622823", "0.6203571", "0.6159975", "0.6159975", "0.6159975"...
0.6771325
5
Process Show Services Menu method
public static void processShowServiesMenu(){ switch (ScannerUtils.scanner.nextLine()){ case SHOW_ALL_VILLA: showAllVilla(); break; case SHOW_ALL_HOUSE: showAllHouse(); break; case SHOW_ALL_ROOM: s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void returnShowServicesMenu(){\n System.out.print(\"Please enter a number to continue:\");\n processShowServiesMenu();\n }", "public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }", "private void mainMenu() {\r\n ...
[ "0.73919386", "0.7170494", "0.69385296", "0.69088316", "0.68785155", "0.6839094", "0.6832658", "0.6741938", "0.67403424", "0.6724705", "0.6720893", "0.67174923", "0.67117566", "0.6664603", "0.665011", "0.6629459", "0.66282755", "0.6613753", "0.6599618", "0.65817475", "0.65798...
0.7494624
0
Show All Villa method
public static void showAllVilla(){ ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA); displayList(villaList); showServices(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showAll();", "public void viewAll() {\n click(viewAllLink);\n }", "public String showAllNhanvien();", "@Override\n\tpublic String showAll() {\n\t\treturn null;\n\t}", "public void printAll()\n {\n r.showAll();\n }", "String showAllNodes();", "public static void showAllVilla...
[ "0.81530064", "0.7613464", "0.76061016", "0.7223314", "0.68656766", "0.67958397", "0.6595887", "0.6555735", "0.6528371", "0.6523691", "0.6482464", "0.6456459", "0.64412737", "0.64364165", "0.64222884", "0.63554585", "0.6326867", "0.6324131", "0.63240564", "0.6228322", "0.6225...
0.780122
1
Show All House method
public static void showAllHouse(){ ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE); displayList(houseList); showServices(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }", "void showAll();", "public static void...
[ "0.8341287", "0.71910614", "0.6743562", "0.6683344", "0.6583163", "0.6431002", "0.63398105", "0.6285376", "0.6282478", "0.6253694", "0.6241329", "0.62181205", "0.62143564", "0.6206578", "0.6193121", "0.6187785", "0.61748636", "0.6162499", "0.61511326", "0.6145566", "0.6144168...
0.8482748
0
Show All Room method
public static void showAllRoom(){ ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM); displayList(roomList); showServices(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Room> showAllRoom() {\r\n\t\t\r\n\t\tif(userService.adminLogIn|| userService.loggedIn) {\r\n\t\t\tList<Room> list = new ArrayList<>();\r\n\t\t\troomRepository.findAll().forEach(list::add);\r\n\t\t\treturn list;\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\...
[ "0.82505137", "0.77608556", "0.7677721", "0.7538157", "0.7499622", "0.7377199", "0.7308925", "0.72798365", "0.7226118", "0.7038173", "0.6933345", "0.68756384", "0.68630767", "0.6824342", "0.6739352", "0.668206", "0.6659442", "0.6619435", "0.6599557", "0.65881073", "0.6564367"...
0.8622591
0
Show All Villa Not Duplicate method
public static void showAllVillaNotDuplicate(){ showAllNameNotDuplicate(FuncGeneric.EntityType.VILLA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void duplicate() {\n System.out.println(\"Je bent al in bezit van deze vragenlijst!\");\n }", "public static void showAllHouseNotDuplicate(){\n showAllNameNotDuplicate(FuncGeneric.EntityType.HOUSE);\n }", "public static void showAllRoomNotDuplicate(){\n showAllNameNotDuplicat...
[ "0.68188953", "0.66411734", "0.63065964", "0.5827661", "0.5784379", "0.57609934", "0.56813717", "0.567992", "0.5656932", "0.5609906", "0.5461789", "0.543115", "0.53714585", "0.5333386", "0.5267066", "0.5243598", "0.52415305", "0.5226599", "0.5221148", "0.52163917", "0.5216284...
0.7501008
0
Show All House Not Duplicate method
public static void showAllHouseNotDuplicate(){ showAllNameNotDuplicate(FuncGeneric.EntityType.HOUSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }", "public static void showAllRoomNotDuplic...
[ "0.69008744", "0.6602754", "0.63777703", "0.60573405", "0.5820766", "0.5450638", "0.5444902", "0.5436119", "0.541282", "0.53993785", "0.53461313", "0.53412944", "0.5321595", "0.5305656", "0.52945566", "0.528583", "0.5264325", "0.52500224", "0.52461755", "0.5241383", "0.520297...
0.75369996
0
Show All Room Not Duplicate method
public static void showAllRoomNotDuplicate(){ showAllNameNotDuplicate(FuncGeneric.EntityType.ROOM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }", "public List<Room> showAllRoom() {\r\n\t\t\r\n\t\tif(userService.adminLogIn|| userService.loggedIn) {\r\n\t\t\tList<Room> list = new...
[ "0.7388193", "0.70308477", "0.6649789", "0.64055854", "0.63976216", "0.6180494", "0.6165093", "0.61597127", "0.61527973", "0.61461467", "0.61157435", "0.6098476", "0.5974941", "0.5960162", "0.5955821", "0.59348303", "0.5926841", "0.59049577", "0.5903988", "0.58807594", "0.583...
0.85053754
0
Return Show Services Menu method
public static void returnShowServicesMenu(){ System.out.print("Please enter a number to continue:"); processShowServiesMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Menu createServiceMenu() {\r\n\t\tMenu serviceMenu = new Menu(\"Service\");\r\n\r\n\t\tstartService = new MenuItem(\"Start\");\r\n\t\tstartService.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlocalPeer.startService();\r\n\t\t\t...
[ "0.7170376", "0.7080833", "0.70077866", "0.6978686", "0.69450796", "0.6940763", "0.6800058", "0.67221767", "0.6693721", "0.6690694", "0.6646612", "0.6620206", "0.6575025", "0.65661174", "0.65632766", "0.65607584", "0.65486306", "0.65156007", "0.64948255", "0.649433", "0.64828...
0.6504553
18
Creates the server socket.
private ServerSocket createServerSocket() throws IOException { ServerSocket serverSocket = new ServerSocket(Constants.SERVER_PORT); System.out.printf("Server for chatting started at %d\n", Constants.SERVER_PORT); return serverSocket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createServerSocket()\r\n {\r\n\t\tDebug.assert(port != 0, \"(Server/105)\");\r\n try {\r\n serverSocket = new ServerSocket(port);\r\n serverSocket.setSoTimeout(TIMEOUT);\r\n\t }\r\n\t catch (IOException e)\r\n\t \t{\r\n log(\"Could not create...
[ "0.7872524", "0.78059053", "0.7709289", "0.75912434", "0.7486886", "0.7455908", "0.7436188", "0.74117", "0.7402217", "0.7294146", "0.72418857", "0.71501136", "0.71296424", "0.7104778", "0.7086299", "0.7050807", "0.6969865", "0.6965126", "0.6941967", "0.69369596", "0.69353074"...
0.8123785
0
Runs the server. Note: Server should wait only for accepting new clients. Other things like chatting for a specific client should not be handled in server thread so that is not blocked and can spend the time in accepting new clients.
private void runServer() { while(true) { // This is a blocking call and waits until a new client is connected. Socket clientSocket = waitForClientConnection(); handleClientInNewThread(clientSocket); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void runServer()\n {\n int port = Integer.parseInt(properties.getProperty(\"port\"));\n String ip = properties.getProperty(\"serverIp\");\n \n Logger.getLogger(ChatServer.class.getName()).log(Level.INFO, \"Server started. Listening on: {0}, bound to: {1}\", new Object[]{port,...
[ "0.81615466", "0.8090205", "0.7946404", "0.7791606", "0.77654916", "0.7751868", "0.7706197", "0.76885974", "0.7686986", "0.76441747", "0.7613882", "0.75980663", "0.75615406", "0.748361", "0.7461497", "0.74458265", "0.7438127", "0.7415017", "0.74067456", "0.73734766", "0.73560...
0.84400904
0
Generates random 9digit student number
public static ColumnMatch isPhiTerm(final ColumnMetaData data, final String text) { if (StringUtils.isNotBlank(text) && Objects.equals(String.class, data.getColumnType()) && phiList.contains(text.trim().toLowerCase(Locale.ENGLISH))) { log.debug("PHI detected: " +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void studIdGenr()\n {\n \tthis.studentID = (int)(Math.random() * (2047300 - 2047100 + 1) + 2047100);\n }", "public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n fo...
[ "0.7500331", "0.7211322", "0.71448094", "0.7139813", "0.7077523", "0.693755", "0.6913095", "0.687542", "0.68739957", "0.68513083", "0.68214786", "0.68173426", "0.6809176", "0.678411", "0.6689483", "0.66152155", "0.6610483", "0.6573009", "0.65502495", "0.6525297", "0.6523184",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("This is my class "); }
{ "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 Scanner object representing the keyboard
public static void main(String[] args) { Scanner console = new Scanner(System.in); //declare constants final double NUM = 0.5, SENTINEL = -1; //declare variables double k, m = 0, v, average, sum = 0; int count = 0; while( m != SENTINEL)/...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "public Menu() {\n scanner = new Scanner(System.in);\n }", "private ConsoleScanner() {}", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in)...
[ "0.6901285", "0.6743287", "0.66531736", "0.66355056", "0.66355056", "0.6552428", "0.6426291", "0.625488", "0.62244457", "0.6205082", "0.61200535", "0.60767186", "0.6075158", "0.6051511", "0.599895", "0.599895", "0.5900208", "0.58740264", "0.58298475", "0.58278656", "0.5821314...
0.0
-1
Sanity checking on output, whether it is indeed inductive.
private boolean checkAllMapsTo( Set<BooleanFormula> from, SSAMap startSSA, Set<BooleanFormula> to, SSAMap finishSSA, BooleanFormula transition ) throws SolverException, InterruptedException { return solver.isUnsat(bfmgr.and( fmgr.instantiate(bfmgr.and(from), startSSA), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasOutput();", "boolean hasOutputPartialsBeforeLanguageDecision();", "public void testOutputIsVaild()\n {\n Collection<Puzzle> puzzles = new ArrayList<Puzzle>();\n\n puzzles = (Collection<Puzzle>) Config.get(\"Puzzles\", puzzles);\n\n for (Puzzle puzzle : puzzles)\n {\n by...
[ "0.64962804", "0.6138284", "0.59576577", "0.57881755", "0.56893045", "0.5625267", "0.56110245", "0.55435324", "0.5484283", "0.5464419", "0.5439931", "0.53977406", "0.5366676", "0.5296676", "0.5282157", "0.52348703", "0.523114", "0.5225755", "0.51881886", "0.5157997", "0.51566...
0.0
-1
Assume the formula to be a conjunction over disjunctions.
public BooleanFormula removeRedundancies(BooleanFormula input) throws InterruptedException { BooleanFormula nnf = fmgr.applyTactic(input, Tactic.NNF); return bfmgr.transformRecursively(nnf, new BooleanFormulaTransformationVisitor(fmgr) { @Override public BooleanFormula visitAnd(List<B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final ManchesterOWLSyntaxAutoComplete.conjunction_return conjunction() {\n ManchesterOWLSyntaxAutoComplete.conjunction_return retval = new ManchesterOWLSyntaxAutoComplete.conjunction_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.unary_return conjunct = null;\...
[ "0.66139466", "0.6470983", "0.6304428", "0.6293862", "0.61852926", "0.61308247", "0.5933291", "0.5771849", "0.5770589", "0.5717676", "0.5681996", "0.56761676", "0.55978584", "0.55688673", "0.55263895", "0.55235636", "0.54545975", "0.54318523", "0.5431663", "0.5392183", "0.538...
0.4991759
48
Create a TickEventMap that uses tick rounding (instead of tick clustering) to normalize starting tick.
public TickEventMap(long tickRoundingFactor) { this.tickRoundingFactor = tickRoundingFactor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void _setTicks() {\n if (!Double.isNaN(tickIncrement)) {\n setTicksByIncr(tickIncrement);\n return;\n }\n double diff = Math.abs(max - min);\n if (!(diff > 0.)) {\n int tn = 2;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;...
[ "0.57477695", "0.5144445", "0.49747938", "0.47778818", "0.4767009", "0.45286164", "0.45080125", "0.44562674", "0.44293725", "0.432355", "0.4322619", "0.42602357", "0.425356", "0.42533708", "0.42339227", "0.42011046", "0.4197036", "0.41966504", "0.41893512", "0.41858035", "0.4...
0.69856894
0
Only after logs have been read?
private void connectToABBOE() throws IOException, IllegalArgumentsException { Socket socket = Biomine3000Utils.connectToServer(args); this.connection = new ABBOEConnection(CLIENT_PARAMS, socket, log); this.connection.init(new ObjectHandler()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void completeLogs() throws IOException;", "void completeCurrentLog() throws IOException;", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "public void startOnNewTread() {\n stop();\n\n mReadLogsHandler = new ReadLogsHandler();\n\n ...
[ "0.74499744", "0.70698375", "0.64453876", "0.6372334", "0.62677485", "0.6174632", "0.6127734", "0.6083961", "0.6068239", "0.60569376", "0.60526097", "0.6034052", "0.6020825", "0.5983669", "0.5941501", "0.59251904", "0.5876518", "0.5875057", "0.5853929", "0.5849206", "0.582442...
0.0
-1
Fragment may be destroyed after this.
@Override public void onPause(){ if(myVM != null && myVM.UpdateEvent != null) myVM.UpdateEvent.unregister(updateListener); super.onPause(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDestroyView() {\n super.onDestroyView();\n Log.i(sFragmentName, \"onDestroyView()\");\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n Log.i(sFragmentName, \"onDestroy()\");\n }", "@Override\n\tpublic void onDestroy() {\n\t\ts...
[ "0.75836945", "0.75400156", "0.74547124", "0.7396591", "0.7341476", "0.72232807", "0.71246946", "0.7007738", "0.70009595", "0.69652826", "0.69353974", "0.69090885", "0.6872715", "0.6798206", "0.6706052", "0.67059225", "0.6688188", "0.6670521", "0.66235906", "0.65682036", "0.6...
0.0
-1
Select logic by btn id:
@Override public void onClick(View v) { try{ switch(v.getId()) { case R.id.deletePinButton: myVM.pressPinButton(10); break; case R.id.cancelPinButton: NavigationManager.Instance().setPage(PageTags.CHARGE_PAGE); break; case R.id.okPinButton: myVM.okPressed(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void selectGolem(int id) {\n }", "Button getBtn();", "public void setButtonSelection(String action);", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.A11:\n buttonPressed = \"A-11\";\n parse_Field = \"a...
[ "0.6165474", "0.61260366", "0.59637207", "0.59346473", "0.589252", "0.58701086", "0.5810608", "0.58041686", "0.5779823", "0.57036746", "0.56856674", "0.5673556", "0.5652994", "0.5647508", "0.56473124", "0.5644101", "0.5586719", "0.55095863", "0.54999185", "0.54963297", "0.546...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { Scanner scan = new Scanner(System.in); Process Process = new Process(); Scheduler Schedule = new Scheduler(); String fileInput; //ReadyQue //test for single file System.out.println("Press 1 to choose a file "); System.out.println("Pres...
{ "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
DOG REQUESTS START HERE. MAYBE SPLIT UP into two services..
public List<Dog> findAllDogsByOwner(int id) { List<Dog> dogs = dogRep.findDogByOwner_OwnerId(id); return dogs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRe...
[ "0.60733265", "0.5952743", "0.59443265", "0.57740456", "0.57443905", "0.57220536", "0.5709338", "0.5699279", "0.56941664", "0.56574297", "0.56480896", "0.5646378", "0.560463", "0.5601865", "0.5573456", "0.5543115", "0.55224895", "0.55185544", "0.55134875", "0.55098546", "0.55...
0.0
-1
We geven het resultaat van de laatste geevalueerde node terug, dus we moeten ook het type van deze node terug geven.
@Override public Type getType() { return nodeList.get(nodeList.size() - 1).getType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNodeValue ();", "public abstract int getNodeType();", "private static Object getValue(Object tree,Map context,Object root,Class resultType) throws OgnlException{\n Object result;\n OgnlContext ognlContext = (OgnlContext) addDefaultContext(root, context);\n\n Node node = (N...
[ "0.63625973", "0.61511874", "0.61217713", "0.6042117", "0.6027557", "0.60204107", "0.5811887", "0.5810626", "0.5806643", "0.5799926", "0.5783794", "0.577636", "0.57649463", "0.5737233", "0.57259196", "0.5720548", "0.570785", "0.56579417", "0.56577444", "0.5646137", "0.5631038...
0.54740536
33
Add edges to result matching and reconstruct graph (remove adjacent vertices, and connect stumps as paths can go) Return all available branches
public static ArrayList<State<BaseGenome>> shrink(State<BaseGenome> baseState, ArrayList<Graph.Edge> edges) throws GenomeException { ArrayList<State<BaseGenome>> results = new ArrayList<>(); results.add(baseState); for (Graph.Edge edge : edges) { ArrayList<State<Bas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Branch> findBranchs()\r\n\t{\t\r\n\t\tList<Branch> localBranchs = new ArrayList<>();\r\n\t\tHashMap<String, Node> destinationNodes = new HashMap<>();\r\n\t\t\r\n\t\t// Percorre todos os arcos da rede\r\n\t\tfor (Edge edge: this.getEdges())\r\n\t\t{\t\r\n\t\t\t// Se ha carga no no destino do arco, est...
[ "0.7156566", "0.647335", "0.6265242", "0.6177326", "0.6132542", "0.5799891", "0.5779478", "0.5776345", "0.57624584", "0.5712768", "0.566525", "0.56618506", "0.55477107", "0.5533663", "0.5524141", "0.54794496", "0.54691076", "0.5464939", "0.54453534", "0.54421127", "0.54349875...
0.0
-1
used to set movie page
public void setPage(View view){ HashMap movie = movieDataJson.getItem(0); String movieName = (String)movie.get("name"); String movieStars = (String)movie.get("stars"); String movieYear = (String)movie.get("year"); String movieDescription = (String)movie.get("description"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onLoadMovie(Movie movie);", "private void setMovie() {\n Movie movie = getIntent().getExtras().getParcelable(MOVIE);\n Glide.with(mMoviePoster).setDefaultRequestOptions(new RequestOptions().diskCacheStrategy(DiskCacheStrategy.ALL)).load(BuildConfig.IMG_DIR + movie.getPosterPath())\n ...
[ "0.65922934", "0.6394061", "0.63168895", "0.61942875", "0.6166268", "0.6056237", "0.5895981", "0.5837192", "0.5775089", "0.5775089", "0.5766532", "0.57317054", "0.5664356", "0.56477636", "0.5633888", "0.562433", "0.5587382", "0.5584427", "0.55722123", "0.5545986", "0.5542363"...
0.59111446
6