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
Jackson DeSerialization workaround constructor to create an operation with no arguments.
public Operation() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Operation() {\n /* empty */\n }", "public Operation() {\n\t}", "public Operation(){\n\t}", "private ExtendedOperations(){}", "public APIOperation()\n {\n super();\n }", "Operation createOperation();", "Operation createOperation();", "private static JsonOperation toBasicJ...
[ "0.65132004", "0.627249", "0.6190409", "0.61690223", "0.6073239", "0.6036544", "0.6036544", "0.5913872", "0.5633341", "0.558239", "0.55780375", "0.55211836", "0.55186284", "0.5515275", "0.5507274", "0.5471836", "0.5385619", "0.53483003", "0.52871186", "0.5286462", "0.52779835...
0.63305616
1
same principle as encrypt msg, but the other way
public String decryptMsg(String encryptedMsg) { encryptedMsg.toLowerCase(Locale.ROOT); //replace the things with the properties encryptedMsg = encryptedMsg.replace("1", "a"); encryptedMsg = encryptedMsg.replace("3", "e"); encryptedMsg = encryptedMsg.replace("5", "i"); encryptedMsg = encryptedMsg.replace("7", "o"); encryptedMsg = encryptedMsg.replace("9", "u"); //return the right value return encryptedMsg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String encryptMsg(String msg);", "@Override\n public String encryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] encMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n ch...
[ "0.8313076", "0.80919963", "0.78521794", "0.7292249", "0.71562606", "0.7086831", "0.70224005", "0.69406456", "0.6871091", "0.67991793", "0.6767501", "0.67286474", "0.6658953", "0.66584986", "0.66254574", "0.6587613", "0.65786815", "0.65131533", "0.6512517", "0.65092313", "0.6...
0.5945786
49
API of datatype above data needs the key to have Comparable interface
public PointSET() { // construct an empty set of points }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ABTree<Key extends Comparable<? super Key>, Value> extends SearchTree<Key, Value> {\n\n}", "public interface A1Interface<Key extends Comparable<Key>, Value> \n{\n // is the symbol table empty?\n public boolean isEmpty();\n\n // return number of key-value pairs in symbol table\n publi...
[ "0.6631127", "0.63007385", "0.61969185", "0.6176295", "0.6146657", "0.60936755", "0.60893", "0.6050443", "0.6010773", "0.5966441", "0.5963558", "0.5922069", "0.58700454", "0.58631057", "0.58523136", "0.58212525", "0.5737883", "0.572794", "0.571986", "0.5671157", "0.5656963", ...
0.0
-1
is the set empty?
public boolean isEmpty() { return pointsSet.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "public boolean isEmpty(){\n if(set.length == 0)\n return true;\n return false;\n }", "@Test \r\n\t\tpublic void testIsEmpty() {\n\t\ttestingSet= new IntegerSet();\r\n\t\tassertTrue(testingSet.isEmpty()); ...
[ "0.8873004", "0.86050224", "0.78456306", "0.76038516", "0.7603029", "0.7551578", "0.7547225", "0.75374055", "0.7532619", "0.75256264", "0.7517217", "0.75168276", "0.75119126", "0.7510218", "0.75053394", "0.7499788", "0.74975055", "0.7487075", "0.74815357", "0.74616337", "0.74...
0.7830479
3
number of points in the set
public int size() { return pointsSet.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n return pointSet.size();\n }", "int getPointsCount();", "public int getNPoints() {\n\t\treturn points.size();\n\t}", "public int size () {\n\t\treturn points.size();\n\t}", "public int size()\n {\n return points.size();\n }", "public int size() {\n\t\treturn po...
[ "0.8194409", "0.8145818", "0.7827455", "0.7713894", "0.7699195", "0.7662546", "0.7641959", "0.75635946", "0.74835366", "0.74633706", "0.74489987", "0.7409302", "0.7400688", "0.73960865", "0.73134375", "0.7254431", "0.72248435", "0.717072", "0.71571237", "0.71016437", "0.70960...
0.8254563
0
add the point to the set (if it is not already in the set)
public void insert(Point2D p) { if (p == null) { throw new IllegalArgumentException("cannot insert null pt"); } pointsSet.add(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean add(PointF point)\n {\n flushCache();\n return points.add(Geometry.clone(point));\n }", "public boolean addPoint(Point p);", "public void insert(Point2D p) {\n pointSet.add(p);\n }", "private DataPoint _addPoint(DataPoint point) {\n DataPoint existingPoint ...
[ "0.70140594", "0.6752311", "0.6636892", "0.6629129", "0.6549261", "0.64137477", "0.63614047", "0.6337756", "0.63077515", "0.61945444", "0.6146118", "0.6145603", "0.6116939", "0.61125886", "0.6088262", "0.6074566", "0.60070866", "0.6002687", "0.59997", "0.5985633", "0.5979244"...
0.6086784
15
does the set contain point p?
public boolean contains(Point2D p) { if (p == null) { throw new IllegalArgumentException("cannot query null pt"); } return pointsSet.contains(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(Point2D p) {\n return pointSet.contains(p);\n }", "public boolean contains(Point p);", "public boolean contains(Point point) {\n\t\treturn false;\r\n\t}", "public boolean contains(PointF point)\n {\n return contains(point.x, point.y);\n }", "public boolean ...
[ "0.81890833", "0.81619775", "0.75140715", "0.7438583", "0.7297772", "0.7287524", "0.7227806", "0.7210723", "0.72020024", "0.72013605", "0.7174726", "0.7117392", "0.7067896", "0.7058813", "0.7058313", "0.7036356", "0.70203906", "0.69785035", "0.6962605", "0.6961078", "0.694996...
0.7799045
2
draw all points to standard draw
public void draw() { for (Point2D i : pointsSet) i.draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n ...
[ "0.82382125", "0.80664873", "0.8009866", "0.7826353", "0.75318587", "0.74854314", "0.74854314", "0.74854314", "0.74854314", "0.7202023", "0.69082624", "0.68650997", "0.6765046", "0.67227316", "0.6691568", "0.6691568", "0.6691568", "0.66743994", "0.6586766", "0.64979273", "0.6...
0.80316365
2
all points that are inside the rectangle (or on the boundary)
public Iterable<Point2D> range(RectHV rect) { ArrayList<Point2D> returnArray = new ArrayList<Point2D>(); if (rect == null) { throw new IllegalArgumentException("rect input is null"); } for (Point2D i : pointsSet) { if (rect.contains(i)) returnArray.add(i); } return returnArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\...
[ "0.7702315", "0.753628", "0.7332039", "0.73251873", "0.7316209", "0.72635686", "0.7213226", "0.71824634", "0.7108298", "0.6999038", "0.69925684", "0.6917834", "0.6835881", "0.6829341", "0.6652541", "0.66317785", "0.66004986", "0.6595335", "0.65249044", "0.65095747", "0.647962...
0.7111637
8
a nearest neighbor in the set to point p; null if the set is empty
public Point2D nearest(Point2D p) { if (isEmpty()) { return null; } double minDistance = Double.POSITIVE_INFINITY; Point2D nearest = null; for (Point2D i : pointsSet) { if (i.distanceTo(p) < minDistance) { nearest = i; minDistance = i.distanceTo(p); } } return nearest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point nearestNeighbor(Point p) {\n\t\tif (p == null) {\n System.out.println(\"Point is null\");\n }\n if (isEmpty()) {\n return null;\n }\n\n return nearest(head, p, head).item;\n\t}", "public Point2D nearest(Point2D p) {\n \n if (p == null)\...
[ "0.7739295", "0.75227", "0.7503038", "0.7462829", "0.71213406", "0.70601207", "0.70376194", "0.70337546", "0.70267934", "0.69971085", "0.69853765", "0.69813806", "0.6979021", "0.6950165", "0.68718255", "0.68440634", "0.68306667", "0.6804725", "0.68036216", "0.6786987", "0.674...
0.7822242
0
Combine multiple states into one. Always reports as the worst state.
public static Health combine(Collection<Health> states) { Health res = GREEN; for (Health state : states) { if (state.ordinal() > res.ordinal()) { res = state; } } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mergeStates() {\n ArrayList<DFAState> newStates = new ArrayList<DFAState>();\r\n HashSet<Integer> newAcceptStates = new HashSet<Integer>();\r\n HashMap<Integer, Integer> merged = new HashMap<Integer, Integer>();\r\n ArrayList<ArrayList<Integer>> mergeGroups ...
[ "0.62367356", "0.60285324", "0.58558404", "0.5836675", "0.5766295", "0.56408536", "0.5521321", "0.53976643", "0.539293", "0.53904456", "0.538892", "0.5346455", "0.53085977", "0.5298549", "0.52962404", "0.5276273", "0.5228471", "0.5169116", "0.5168742", "0.511163", "0.5081617"...
0.6565198
0
Walks the tree of collection status to verify that any replicas not reporting a "down" status is on a live node, if any replicas reporting their status as "active" but the node is not live is marked as "down"; used by CLUSTERSTATUS.
@SuppressWarnings("unchecked") protected void crossCheckReplicaStateWithLiveNodes( List<String> liveNodes, NamedList<Object> collectionProps) { for (Map.Entry<String, Object> next : collectionProps) { Map<String, Object> collMap = (Map<String, Object>) next.getValue(); Map<String, Object> shards = (Map<String, Object>) collMap.get("shards"); for (Object nextShard : shards.values()) { Map<String, Object> shardMap = (Map<String, Object>) nextShard; Map<String, Object> replicas = (Map<String, Object>) shardMap.get("replicas"); for (Object nextReplica : replicas.values()) { Map<String, Object> replicaMap = (Map<String, Object>) nextReplica; if (Replica.State.getState((String) replicaMap.get(ZkStateReader.STATE_PROP)) != Replica.State.DOWN) { // not down, so verify the node is live String node_name = (String) replicaMap.get(ZkStateReader.NODE_NAME_PROP); if (!liveNodes.contains(node_name)) { // node is not live, so this replica is actually down replicaMap.put(ZkStateReader.STATE_PROP, Replica.State.DOWN.toString()); } } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean allDown(List<ServiceInstance> services) {\n Map<ServiceStatus, Long> countsByStatus = services.stream()\n .collect(Collectors.groupingBy(ServiceInstance::serviceStatus, counting()));\n\n return countsByStatus.getOrDefault(Service...
[ "0.52891487", "0.5232899", "0.5228387", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.518708", "0.5...
0.6605692
0
Represents a class that will populate a specific script's bindings with useful context details
public interface Binding extends AutoCloseable, Consumer<Bindings> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ScriptBinding\n{\n /**\n * Returns the list of variables this ScriptBinding provides, mapped by variable name.\n * @return The list of variables, or null if no variable is provided.\n */\n public Map<String, Object> getVariables();\n \n /**\n * Returns the list of varia...
[ "0.6946879", "0.59445953", "0.5741722", "0.5692966", "0.5692966", "0.5586711", "0.55737805", "0.5493363", "0.54838794", "0.5479638", "0.5479638", "0.5468331", "0.54527605", "0.5429446", "0.54244024", "0.5418342", "0.5400121", "0.53387064", "0.532296", "0.52983266", "0.5138132...
0.45709705
99
Get the date information.
public DateInfo getDateInfo() { return dateInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String Get_date() \n {\n \n return date;\n }", "java.lang.String getDate();", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public DateInfo getDate() {\r\n\t\treturn new DateInfo(super.getDate());\r\n\t\t//ret...
[ "0.7791954", "0.7740391", "0.7722006", "0.7722006", "0.7686632", "0.76462865", "0.763346", "0.75918484", "0.7579823", "0.7563912", "0.75487113", "0.75487113", "0.75438094", "0.7524133", "0.7524133", "0.75239486", "0.75239486", "0.75239486", "0.75239486", "0.75239486", "0.7522...
0.78128725
0
Getter and setter for moving violation type.
public MovingVioType getMovingVioType() { return movingVioType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getViolationType() {\n\t\treturn violationType;\n\t}", "public MovingViolationInfo(DateInfo dateInfo,\n MovingVioType movingVioType, Name offendingDriver) {\n this.dateInfo = dateInfo;\n this.movingVioType = movingVioType;\n this.offendingDriver = offendingDriver;\n }", "protected ...
[ "0.5593893", "0.53759384", "0.5281971", "0.5280304", "0.52492416", "0.52362764", "0.51808375", "0.5161029", "0.51224995", "0.5092405", "0.50294465", "0.50030494", "0.4987977", "0.49645743", "0.49533266", "0.49386334", "0.4871562", "0.4838539", "0.4781894", "0.47803676", "0.47...
0.48731542
16
A constructor of moving violation information.
public MovingViolationInfo(DateInfo dateInfo, MovingVioType movingVioType, Name offendingDriver) { this.dateInfo = dateInfo; this.movingVioType = movingVioType; this.offendingDriver = offendingDriver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InvalidMoveException() {\n super(\"Invalid move!\");\n }", "@SuppressWarnings(\"unused\")\n\tprivate StackFrameDTO()\n\t{\n\t\tthis.lineNumber = -1;\n\t\tthis.file = null;\n\t\tthis.level = -1;\n\t}", "protected Warning() {\n\n }", "private Transition(State sourceState) {\r\n \t\t\tthis.s...
[ "0.6022344", "0.58632666", "0.574931", "0.5656818", "0.56231946", "0.56161904", "0.5608652", "0.55839694", "0.5582509", "0.54924166", "0.5490919", "0.54898834", "0.54531324", "0.5452761", "0.54524523", "0.5433415", "0.5384575", "0.53783506", "0.5335917", "0.5332065", "0.52919...
0.6469848
0
Get the offending drivers' name.
public Name getOffendingDriver() { return offendingDriver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getDriverName() {\n\t\treturn driver.getName();\n\t}", "public String getDriverName() {\n return driverName;\n }", "String getParentDriverName();", "public String getDriver()\n {\n return m_driverName;\n }", "public String resolveDriverNameBinding() {\n Optional<S...
[ "0.7457975", "0.68661964", "0.6825762", "0.67717654", "0.6616262", "0.6526295", "0.64558184", "0.6442623", "0.6281489", "0.6206017", "0.6167571", "0.6153244", "0.6147456", "0.6142288", "0.6142288", "0.61402744", "0.6121916", "0.611342", "0.60860044", "0.6081452", "0.60746765"...
0.7474697
0
DateTimeFormatter formatter1 = DateTimeFormat.forPattern("yyyyMMdd"); DateTime d1 = DateTime.parse("20180101",formatter1); DateTime d2 = DateTime.parse("20080201",formatter1); System.out.println(Years.yearsIn(new Interval(d2,d1)).getYears());
public static void main(String[] args){ DateTimeFormatter formatter1 = DateTimeFormat.forPattern("yyyy-MM-dd"); DateTime d1 = DateTime.parse("2018-05-02",formatter1); DateTime d2 = DateTime.parse("2018-05-01",formatter1); System.out.println(Days.daysIn(new Interval(d2,d1)).getDays()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\t\tLocalDate current =LocalDate.now();\n\tLocalDate ld =\tLocalDate.of(1989, 11, 30);\n\t\t\n\tPeriod pd =\tPeriod.between(current, ld);\n\tSystem.out.println(pd.getYears());\n\t}", "public short getYearsFrom(DateTime from){\r\n \tshort year = (short)(this.year - ...
[ "0.63399416", "0.6297351", "0.6252337", "0.598987", "0.59496844", "0.59268713", "0.5902317", "0.5868349", "0.5803527", "0.5798113", "0.57824546", "0.5776125", "0.57586765", "0.57281", "0.5708558", "0.5658771", "0.5606595", "0.55874527", "0.558376", "0.5576665", "0.5541994", ...
0.63387203
1
instance variables replace the example below with your own
public static void main (String[] args){ int a = (int)(3*Math.random()); int b = (int)(3*Math.random()); int c = (int)(Math.random()); System.out.print("method 1:"); method1(a, b, c); System.out.print("method 2:"); method2(a, b, c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "private stendhal() {\n\t}", "public static void main(String[] args) {\n\t\tAge oj1 = new Age() { \n\t\t\t@Override\n\t\t\tpublic void getAge() { \n\t\t\t\t// printing age \n\t\t\t\tSystem.out.print(\"Age is \"+x); \n\t\t\t} \n\t\t}; \n\t\toj1.getAge(); \n\t}", "public static vo...
[ "0.6061054", "0.5922206", "0.578593", "0.57247394", "0.5666471", "0.56575406", "0.5642189", "0.5631505", "0.56227833", "0.56033605", "0.5595272", "0.5589099", "0.5557266", "0.5543885", "0.5541997", "0.553329", "0.5518849", "0.55186534", "0.5517938", "0.5485647", "0.54783", ...
0.0
-1
TODO Autogenerated method stub
@Override public void goToUiSelectClient(String modo) { if (modo.equalsIgnoreCase(constants.modoNuevo())) { uiHomeCobrador.getHeader().getLblTitulo().setText(constants.clientes()); uiHomeCobrador.getHeader().setVisibleBtnMenu(false); uiHomeCobrador.getContainer().showWidget(3); uiHomeCobrador.getUiClienteSelected().cargarClienteSinCobrador(); uiHomeCobrador.getUiClienteSelected().setBeanGestorCobranza(beanGestorCobranza); uiHomeCobrador.getUiClienteSelected().grid.getMultiSelectionModel().clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void goToUICMantCliente(String modo) { if (modo.equalsIgnoreCase(constants.modoNuevo())) { uiHomeCliente.getUIMantCliente().setModo(modo); uiHomeCliente.getUIMantCliente().activarCampos(); uiHomeCliente.getUIMantCliente().setTituloOperacion("Insertar"); uiHomeCliente.getContainer().showWidget(1); uiHomeCliente.getUIMantCliente().refreshScroll(); } else if (modo.equalsIgnoreCase(constants.modoEditar())) { ClienteProxy bean = grid.getSelectionModel().getSelectedObject(); //Window.alert(bean.getIdCliente()); if (bean == null){ //Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null); //Window.alert(constants.seleccioneCliente()); Notification not=new Notification(Notification.ALERT,constants.seleccioneCliente()); not.showPopup(); return; } uiHomeCliente.getUIMantCliente().setModo(modo); uiHomeCliente.getUIMantCliente().setBean(bean); uiHomeCliente.getUIMantCliente().activarCampos(); uiHomeCliente.getUIMantCliente().setTituloOperacion("Actualizar"); uiHomeCliente.getContainer().showWidget(1); uiHomeCliente.getUIMantCliente().refreshScroll(); } else if (modo.equalsIgnoreCase(constants.modoDesactivar())) { ClienteProxy bean = grid.getSelectionModel().getSelectedObject(); //Window.alert(bean.getIdCliente()); if (bean == null){ //Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null); //Window.alert(constants.seleccioneCliente()); Notification not=new Notification(Notification.ALERT,constants.seleccioneCliente()); not.showPopup(); return; } uiHomeCobrador.getUIMantCliente().setModo(modo); uiHomeCobrador.getUIMantCliente().setBean(bean); uiHomeCobrador.getUIMantCliente().activarCampos(); uiHomeCobrador.getUIMantCliente().setTituloOperacion("Desactivar"); uiHomeCobrador.getContainer().showWidget(4); uiHomeCobrador.getUIMantCliente().refreshScroll(); }else if (modo.equalsIgnoreCase(constants.modoEliminar())) { ClienteProxy bean = grid.getSelectionModel().getSelectedObject(); //Window.alert(bean.getIdCliente()); if (bean == null){ //Dialogs.alert(constants.alerta(),constants.seleccioneCliente(), null); //Window.alert(constants.seleccioneCliente()); Notification not=new Notification(Notification.ALERT,constants.seleccioneCliente()); not.showPopup(); return; } uiHomeCliente.getUIMantCliente().setModo(modo); uiHomeCliente.getUIMantCliente().setBean(bean); uiHomeCliente.getUIMantCliente().activarCampos(); uiHomeCliente.getUIMantCliente().setTituloOperacion("Eliminar"); uiHomeCliente.getContainer().showWidget(1); uiHomeCliente.getUIMantCliente().refreshScroll(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void cargarClienteSinCobrador() { popup.showPopup(); if(UIHomeSesion.usuario!=null){ lista = new ArrayList<ClienteProxy>(); FACTORY.initialize(EVENTBUS); ContextGestionCobranza context = FACTORY.contextGestionCobranza(); Request<List<ClienteProxy>> request = context.listarClienteSinCobrador(UIHomeSesion.usuario.getIdUsuario()).with("beanUsuario"); request.fire(new Receiver<List<ClienteProxy>>() { @Override public void onSuccess(List<ClienteProxy> response) { lista.addAll(response); grid.setData(lista); grid.getSelectionModel().clear(); popup.hidePopup(); } @Override public void onFailure(ServerFailure error) { popup.hidePopup(); //Window.alert(error.getMessage()); Notification not=new Notification(Notification.WARNING,error.getMessage()); not.showPopup(); } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void asignarClienteAcobrador() { Set<ClienteProxy> lista=grid.getMultiSelectionModel().getSelectedSet(); if(!lista.isEmpty()){ FACTORY.initialize(EVENTBUS); ContextGestionCobranza context = FACTORY.contextGestionCobranza(); Request<Boolean> request=context.asignarClientesAlCobrador(lista, beanGestorCobranza.getIdUsuarioOwner(), beanGestorCobranza.getIdUsuarioCobrador() , beanGestorCobranza.getIdGestorCobranza()); request.fire(new Receiver<Boolean>(){ @Override public void onSuccess(Boolean response) { // TODO Auto-generated method stub goToBack(); }}); }else{ Notification not=new Notification(Notification.ALERT,constants.seleccioneCliente()); not.showPopup(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onSuccess(Boolean response) { goToBack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void goToBack() { if(uiHomePrestamo!=null){ uiHomePrestamo.getHeader().getLblTitulo().setText(constants.prestamos()); uiHomePrestamo.getHeader().setVisibleBtnMenu(true); uiHomePrestamo.getContainer().showWidget(1); }else if(uiHomeCobrador!=null){ uiHomeCobrador.getContainer().showWidget(2); uiHomeCobrador.getUiClienteImpl().cargarClientesAsignados(); uiHomeCobrador.getUiClienteImpl().reloadTitleCobrador(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void goToUiCobrador() { if(uiHomeCobrador!=null){ uiHomeCobrador.getHeader().getLblTitulo().setText(constants.cobrador()); uiHomeCobrador.getHeader().setVisibleBtnMenu(true); uiHomeCobrador.getContainer().showWidget(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void selecciona() { ClienteProxy bean = grid.getSelectionModel().getSelectedObject(); if(bean!=null){ uiHomePrestamo.getHeader().getLblTitulo().setText("Devolpay"); uiHomePrestamo.getHeader().setVisibleBtnMenu(true); uiHomePrestamo.getUIMantPrestamoImpl().setBeanCliente(bean); uiHomePrestamo.getContainer().showWidget(1); }else{ //Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null); //Window.alert(constants.seleccioneCliente()); Notification not=new Notification(Notification.ALERT,constants.seleccioneCliente()); not.showPopup(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void exportarData() { Date date=new Date(); String nameFile="client-"+date.getTime()+".xls"; TableToExcel.save(grid,nameFile); }
{ "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
Wildcards are used when we cannot modify the existing source code
public static void print(Printer<? extends ICartridge> printer) { int fillPercentage = printer.getCartridge().getFillPercentage(); // Error // without // generics // (i.e., // Printer // printer) // - // The // method // getFillPercentage() // is // undefined // for // the // type // Object System.out.println("Fill percentage is : " + fillPercentage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean containsWildcard(final String min) {\n return min.contains(\"*\")\r\n || min.contains(\"+\")\r\n || min.contains(\"%\")\r\n || min.contains(\"_\");\r\n }", "protected void setWildcardClass(boolean wildcard) \r\n\t{\tthis.wildcard = wildcard;\t}", "@Test\n public void t...
[ "0.6889275", "0.65469044", "0.6454152", "0.642691", "0.6395165", "0.62828195", "0.62809944", "0.6279534", "0.6254759", "0.62114817", "0.613452", "0.6109113", "0.5918174", "0.5917779", "0.5899817", "0.58911866", "0.5868228", "0.5863085", "0.5860867", "0.5856953", "0.5756321", ...
0.0
-1
Called if InstanceID token is updated. May occur if the security of the previous token had been compromised and is initiated by the InstanceID provider.
@Override public void onTokenRefresh() { // Fetch updated Instance ID token and notify our app's server of any changes (if applicable). startService(new Intent(this, RegistrationIntentService.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateTokens(){}", "@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"Refreshed token: \" + refreshedToken);\n sendRegistrationToServer(refreshedToken);\n ...
[ "0.67065144", "0.65715224", "0.64611423", "0.64380836", "0.64297867", "0.6379063", "0.63334185", "0.6323886", "0.62963617", "0.62804484", "0.62797767", "0.62751496", "0.6268047", "0.62367207", "0.62350625", "0.6233048", "0.6187794", "0.61717737", "0.61716795", "0.6124227", "0...
0.68246347
0
insere um novo funcionario
void update(Seller obj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void inserirFuncionario(Funcionario funcionario) throws Exception {\n rnFuncionario.inserir(funcionario);\r\n }", "@Override\r\n\tpublic void inserir(Funcionario funcionario) throws SQLException {\n\t\topen();\r\n\t\t\r\n\t\tclose();\r\n\t\t\r\n\t}", "public void clickFunc() {...
[ "0.754303", "0.72644925", "0.71079534", "0.70694906", "0.6931737", "0.6747105", "0.6664475", "0.64735395", "0.6453917", "0.6367096", "0.6278028", "0.6163502", "0.60184056", "0.60072166", "0.5951979", "0.5933587", "0.5932812", "0.590614", "0.5898765", "0.585842", "0.5847564", ...
0.0
-1
atualiza dados de um funcionario existent
void deletById(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cadastrarFuncionario() {\n\t\tFuncionarioDAOImpl daoFuncionario = new FuncionarioDAOImpl();\n\t\tdaoFuncionario.save(funcionario);\n\t\t//return retorno;\n\t}", "@Override\r\n\tpublic void inserir(Funcionario funcionario) throws SQLException {\n\t\topen();\r\n\t\t\r\n\t\tclose();\r\n\t\t\r\n\t}", "...
[ "0.6128092", "0.60921335", "0.60611904", "0.602572", "0.59697497", "0.5933388", "0.5890163", "0.58184606", "0.5807079", "0.57674575", "0.5745924", "0.5714488", "0.56921476", "0.56795937", "0.56656283", "0.5653384", "0.5615933", "0.5605762", "0.55780244", "0.555892", "0.555359...
0.0
-1
remove um funcionario existe pelo ID
Seller findById(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void removerFuncionario(long id) throws Exception {\n rnFuncionario.remover(id);\r\n }", "public void eliminaFunctia(final Functie func) {\n this.functie = func;\n Utilizator user = utilitati.getUtilizatorLogat();\n try {\n ...
[ "0.7211347", "0.6686184", "0.6670952", "0.6657908", "0.6631067", "0.660864", "0.654063", "0.6516164", "0.6481182", "0.6455725", "0.6317775", "0.63068634", "0.63018894", "0.6229632", "0.62115186", "0.6200656", "0.61716396", "0.61576253", "0.6148111", "0.6148111", "0.6141857", ...
0.0
-1
detorna um funcionario existente pelo ID
List<Seller> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void removerFuncionario(long id) throws Exception {\n rnFuncionario.remover(id);\r\n }", "@Override\r\n\tpublic Function getFunctionById(int id) {\n\t\treturn getHibernateTemplate().get(Function.class, id);\r\n\t}", "int deleteByPrimaryKey(String funcId);", "@Override\r\n ...
[ "0.617205", "0.6043329", "0.5934177", "0.5801987", "0.57993263", "0.5693525", "0.568606", "0.5631346", "0.5621034", "0.55848175", "0.5510802", "0.5502152", "0.55014306", "0.5471876", "0.54603344", "0.543276", "0.53803724", "0.5336537", "0.5335535", "0.5303715", "0.5303715", ...
0.0
-1
retorna todos os funcionario atraves de uma lista
List<Seller> findByDepartment(Department department);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listaFuncionarios() {\n this.telaFuncionario.mensagemListaFuncionarios();\n for (Funcionario funcionarioCadastrado : funcionarioDAO.getList()) { //funcionariosDAO list - coloca tudo em um arrayzao e depois manda pra tela\n int matricula = funcionarioCadastrado.getMatricula();\n...
[ "0.73684025", "0.7143349", "0.6433754", "0.6352808", "0.6321595", "0.6284781", "0.62514704", "0.6228787", "0.62273467", "0.62219375", "0.61650604", "0.6154919", "0.61200553", "0.6099872", "0.6042947", "0.60139096", "0.59761506", "0.5963926", "0.5954936", "0.5941553", "0.59383...
0.0
-1
Default constructor needed by Kafka
public KafkaJsonSerializer() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KafkaConfig() { }", "public KafkaAvroSerializer() {\n super();\n }", "public TopicImpl() {\n\n super(false); // don't generate UUID\n }", "public TopicObject() {\n super();\n }", "defaultConstructor(){}", "public BrokerAlgo() {}", "public AbstractMessageProducer() {...
[ "0.80969226", "0.7449447", "0.69490343", "0.6880986", "0.68365604", "0.6831886", "0.67853373", "0.6625787", "0.6620817", "0.66084325", "0.6552663", "0.65275353", "0.6519846", "0.6481182", "0.64705676", "0.64635617", "0.6458921", "0.6425354", "0.6384083", "0.63752604", "0.6369...
0.7425421
2
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Delivery)) { return false; } Delivery other = (Delivery) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896072", "0.6839122", "0.6705258", "0.66412854", "0.66412854", "0.65923095", "0.65785074", "0.65785074", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.6561566", "0.6561566", "0.6545169", "0.6525343", "0.65168375", "0.64885366", "0....
0.0
-1
This method creates the message of the exception
public CassetteException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String toString() {\n\t\treturn \"Exception is..\" + msg;\r\n\t}", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.la...
[ "0.75547177", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.74898344", "0.7336442", "0.72190404",...
0.0
-1
Find purchaser by his userAccount
public Purchaser findOneByUserId(int purchaserId) { return purchaserRepository.findOneByUserId(purchaserId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Account getAccountByOwnerAndName(String user,String accountName);", "List<BankWallet> findByUser(User user);", "BankUserInfo selectByPrimaryKey(String userId);", "List<ItemUser> findByUserId(Long userId);", "public List<Account> findByUserDetails(UserDetails userDetails);", "List<Money> findByUser...
[ "0.6031191", "0.59495264", "0.5943393", "0.5839994", "0.5794926", "0.57904047", "0.574946", "0.5738328", "0.5672056", "0.56679404", "0.5630237", "0.5559788", "0.55526096", "0.5517689", "0.5511986", "0.5496437", "0.5484968", "0.5479895", "0.5475072", "0.5474167", "0.54255474",...
0.6436759
0
The purchaser who has spent more money
public Collection<Object> findPurchaserSpendMoreMoney(){ checkAdminRole(); Collection<Object> res=new ArrayList<Object>(); res=purchaserRepository.findPurchaserSpendMoreMoney(); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAmountBought() {\n //System.out.println(clientName + \" has bought \" + amountBought + \" shares of \" + companyName);\n return amountBought;\n }", "double purchasePrice();", "@Override\n\tpublic String getOffer() {\n\t\treturn \"Get 10% of on your next purchase\";\n\t}", "publ...
[ "0.6304241", "0.61660326", "0.61518127", "0.61464816", "0.6143128", "0.60912305", "0.60684806", "0.60587776", "0.60345805", "0.59948397", "0.5982765", "0.59710354", "0.59588003", "0.5902243", "0.5892276", "0.5890778", "0.58685553", "0.5858508", "0.5851133", "0.58484745", "0.5...
0.6975995
0
The purchaser who has purchased more artworks.
public Collection<Purchaser> findPurchaserMoreArtworkBought(){ checkAdminRole(); Collection<Purchaser> res=new ArrayList<Purchaser>(); res=purchaserRepository.findPurchaserMoreArtworkBought(); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int wasPurchased() {\n return wasPurchased;\n }", "public int countElectronicsByMaker(String maker)\n { \n \tint count = 0;\n \tfor( Gizmo g : purchases )\n \t{\n \t\tif( g.getMaker().equals( maker ) && g.isElectronic()==true )\n \t\t\tcount = count + 1; //or count++\n \t}\n \...
[ "0.5837723", "0.5650356", "0.56197894", "0.5522466", "0.55083853", "0.53339183", "0.53126705", "0.53032213", "0.52869767", "0.52754945", "0.52442163", "0.5217104", "0.5211808", "0.5171255", "0.51652926", "0.5126649", "0.51195496", "0.51107913", "0.51061976", "0.5075722", "0.5...
0.65353084
0
First create a Scanner variable to prompt the user for a number
public static void main(String[] args) { Scanner input = new Scanner(System.in); RecursionProblem user = new RecursionProblem(); System.out.println("Welcome to Jonard's factorial program!"); // This is NOT the calculation. This is only just checking to see if the user types a valid NUMBER, no letters or special characters String base = ""; String exponent = ""; int baseNum = 0; int expoNum = 0; // This is the prompt for both base and exponents System.out.println("Please type any number. This number will be the base.\n"); base = input.nextLine(); System.out.println("Now for the exponent. Pick a number for the exponent\n"); exponent = input.nextLine(); // THE USER BETTER ENTER AN INTEGER, NO SPECIAL CHARACTERS. IF SO, IT WILL REPEAT AND LOOP AND LOOP AND LOOP AND LOOP. while(true){ try { // If the number cannot concantenate into an integer, the user did NOT type a number baseNum = Integer.parseInt(base); expoNum = Integer.parseInt(exponent); break; } catch(NumberFormatException e) { System.out.println("ERROR! Please type a base and exponent as NUMBERS"); base = input.nextLine(); exponent = input.nextLine(); } } int startTime = 0; int endTime = 0; int timeOne = 0; int timeTwo = 0; //Now I am running the code and comparing the length it took in nanoseconds //I first have to time it before AND after the method begins to get the time it took for the method to finish startTime = (int)System.nanoTime(); System.out.println(user.rpow(baseNum,expoNum)); endTime = (int)System.nanoTime(); timeOne = endTime - startTime; System.out.println("The time it took for the first method to run is " + timeOne + " in nanoseconds"); startTime = (int)System.nanoTime(); System.out.println(user.rpow2(baseNum,expoNum)); endTime = (int)System.nanoTime(); timeTwo = endTime - startTime; System.out.println("The time it took for the second method to run is " + timeOne + " in nanoseconds"); System.out.println("The time difference is " + (timeTwo-timeOne)); // LAST PART // WERE GONNA TEST THE ODDEVENFACT FUNCTION FOR BOTH // ODD AND EVEN NUMBERS System.out.println("5! factorial is " + user.oddevenfact(5)); System.out.println("6! factorial is " + user.oddevenfact(6)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}", "public static int f_number_user() {\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"Input the number\");\n int numbe...
[ "0.7472093", "0.73316956", "0.73109806", "0.72231346", "0.7220453", "0.71839076", "0.71070653", "0.7075334", "0.70018774", "0.69190234", "0.68920124", "0.6842944", "0.6821703", "0.6813772", "0.6804957", "0.68041295", "0.6798523", "0.67711484", "0.6769677", "0.6705524", "0.668...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String s="INDIA"; char ch; ch=s.charAt(2); System.out.println(s); System.out.println(ch); }
{ "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 was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int countByExample(TbMessageExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.6981039", "0.66721654", "0.6632581", "0.6632581", "0.6348049", "0.62724227", "0.6138617", "0.6092825", "0.6086424", "0.6084778", "0.60299975", "0.59639686", "0.5960261", "0.59456104", "0.5943205", "0.5917797", "0.58711636", "0.58213794", "0.5802726", "0.5800813", "0.578759...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int deleteByExample(TbMessageExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.69795656", "0.66729075", "0.66322595", "0.66322595", "0.6348921", "0.62706256", "0.6139617", "0.6094306", "0.60876966", "0.6084568", "0.6031273", "0.5963937", "0.5961268", "0.59479326", "0.59434", "0.59184796", "0.5870635", "0.5822852", "0.5803314", "0.58008134", "0.578883...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int deleteByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.6979895", "0.6673871", "0.6631079", "0.6631079", "0.6348231", "0.62701404", "0.6138879", "0.60949665", "0.60885125", "0.60842514", "0.6031552", "0.59633183", "0.5961401", "0.5947012", "0.5943846", "0.5919086", "0.587074", "0.58234054", "0.580515", "0.58017206", "0.5789821"...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
void insert(TbMessage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.69799227", "0.6674042", "0.6631467", "0.6631467", "0.6347758", "0.6270585", "0.61395234", "0.6095475", "0.60881793", "0.60839534", "0.6029942", "0.59640783", "0.59603715", "0.5947752", "0.59421575", "0.59176636", "0.58714503", "0.5823678", "0.5804384", "0.5802664", "0.5789...
0.5519825
96
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
void insertSelective(TbMessage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.6981039", "0.66721654", "0.6632581", "0.6632581", "0.6348049", "0.62724227", "0.6138617", "0.6092825", "0.6086424", "0.6084778", "0.60299975", "0.59639686", "0.5960261", "0.59456104", "0.5943205", "0.5917797", "0.58711636", "0.58213794", "0.5802726", "0.5800813", "0.578759...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
List selectByExampleWithBLOBs(TbMessageExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.69795656", "0.66729075", "0.66322595", "0.66322595", "0.6348921", "0.62706256", "0.6139617", "0.6094306", "0.60876966", "0.6084568", "0.6031273", "0.5963937", "0.5961268", "0.59479326", "0.59434", "0.59184796", "0.5870635", "0.5822852", "0.5803314", "0.58008134", "0.578883...
0.5542566
79
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
List selectByExampleWithoutBLOBs(TbMessageExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.6979895", "0.6673871", "0.6631079", "0.6631079", "0.6348231", "0.62701404", "0.6138879", "0.60949665", "0.60885125", "0.60842514", "0.6031552", "0.59633183", "0.5961401", "0.5947012", "0.5943846", "0.5919086", "0.587074", "0.58234054", "0.580515", "0.58017206", "0.5789821"...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
TbMessage selectByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "public...
[ "0.69799227", "0.6674042", "0.6631467", "0.6631467", "0.6270585", "0.61395234", "0.6095475", "0.60881793", "0.60839534", "0.6029942", "0.59640783", "0.59603715", "0.5947752", "0.59421575", "0.59176636", "0.58714503", "0.5823678", "0.5804384", "0.5802664", "0.5789047", "0.5785...
0.6347758
4
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int updateByExampleSelective(TbMessage record, TbMessageExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.6981039", "0.66721654", "0.6632581", "0.6632581", "0.6348049", "0.62724227", "0.6138617", "0.6092825", "0.6086424", "0.6084778", "0.60299975", "0.59639686", "0.5960261", "0.59456104", "0.5943205", "0.5917797", "0.58711636", "0.58213794", "0.5802726", "0.5800813", "0.578759...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int updateByExampleWithBLOBs(TbMessage record, TbMessageExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.69795656", "0.66729075", "0.66322595", "0.66322595", "0.6348921", "0.62706256", "0.6139617", "0.6094306", "0.60876966", "0.6084568", "0.6031273", "0.5963937", "0.5961268", "0.59479326", "0.59434", "0.59184796", "0.5870635", "0.5822852", "0.5803314", "0.58008134", "0.578883...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int updateByExampleWithoutBLOBs(TbMessage record, TbMessageExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.6979895", "0.6673871", "0.6631079", "0.6631079", "0.6348231", "0.62701404", "0.6138879", "0.60949665", "0.60885125", "0.60842514", "0.6031552", "0.59633183", "0.5961401", "0.5947012", "0.5943846", "0.5919086", "0.587074", "0.58234054", "0.580515", "0.58017206", "0.5789821"...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int updateByPrimaryKeySelective(TbMessage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.69799227", "0.6674042", "0.6631467", "0.6631467", "0.6347758", "0.6270585", "0.61395234", "0.6095475", "0.60881793", "0.60839534", "0.6029942", "0.59640783", "0.59603715", "0.5947752", "0.59421575", "0.59176636", "0.58714503", "0.5823678", "0.5804384", "0.5802664", "0.5789...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int updateByPrimaryKeyWithBLOBs(TbMessage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.6981039", "0.66721654", "0.6632581", "0.6632581", "0.6348049", "0.62724227", "0.6138617", "0.6092825", "0.6086424", "0.6084778", "0.60299975", "0.59639686", "0.5960261", "0.59456104", "0.5943205", "0.5917797", "0.58711636", "0.58213794", "0.5802726", "0.5800813", "0.578759...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table tb_message
int updateByPrimaryKeyWithoutBLOBs(TbMessage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n }", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "TbMess...
[ "0.69795656", "0.66729075", "0.66322595", "0.66322595", "0.6348921", "0.62706256", "0.6139617", "0.6094306", "0.60876966", "0.6084568", "0.6031273", "0.5963937", "0.5961268", "0.59479326", "0.59434", "0.59184796", "0.5870635", "0.5822852", "0.5803314", "0.58008134", "0.578883...
0.0
-1
Checks the orientation of the screen, portrait linear, landscape grid 2 columns
private void setLayout() { if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL)); } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getLandscape();", "private boolean isLandscapeOrientation(){\n return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; \n }", "public abstract float doLandscapeLayout(float screenWidth, float screenHeight);", "public boolean isLandscape() {\n WindowMa...
[ "0.6280586", "0.6272191", "0.626727", "0.6256165", "0.6095798", "0.6037114", "0.590965", "0.58408755", "0.5747643", "0.5723012", "0.5680643", "0.5672547", "0.565444", "0.5641366", "0.5620055", "0.5616058", "0.5603069", "0.5584518", "0.55838996", "0.55235916", "0.5521079", "...
0.0
-1
TODO Autogenerated method stub load();
public static void main(String[] args) { loadServer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void load() ;", "public void load();", "public void load();", "@Override\r\n\tpublic void load() {\n\t}", "public void load() {\n\t}", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "public void load() {\n }", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotec...
[ "0.8766102", "0.8712353", "0.8712353", "0.86108696", "0.86040986", "0.85829407", "0.85744846", "0.8539511", "0.8539511", "0.8539511", "0.8499452", "0.8499452", "0.8490466", "0.8425988", "0.83900905", "0.83900905", "0.8314998", "0.8196414", "0.8138304", "0.8127005", "0.8023252...
0.0
-1
Load from index file of format BITMAP.
public void load(String indexPath, String dbPath, long[] graph_pos_map_list) { int lineIndex = 0; String line = ""; BatchInserter inserter = null; BufferedReader reader = null; int id; try { Map<String, String> config = new HashMap<String, String>(); config.put("dbms.pagecache.memory", "100g"); if (Util.pathExist(dbPath) == false) throw new Exception(dbPath + " does not exist!"); inserter = BatchInserters.inserter(new File(dbPath).getAbsoluteFile(), config); reader = new BufferedReader(new FileReader(new File(indexPath))); lineIndex++; line = reader.readLine(); String[] strList = line.split(","); int nodeCount = Integer.parseInt(strList[0]); int MAX_HOP = Integer.parseInt(strList[1]); for (int i = 0; i < nodeCount; i++) { lineIndex++; id = Integer.parseInt(reader.readLine()); long neo4j_ID = graph_pos_map_list[id]; for (int j = 1; j <= MAX_HOP; j++) { lineIndex++; line = reader.readLine(); strList = line.split(":"); int type = Integer.parseInt(strList[0]); switch (type) { case 0: inserter.setNodeProperty(neo4j_ID, reachGridName + "_" + j, strList[1]); // debug ImmutableRoaringBitmap rBitmap = Util.getImmutableRoaringBitmap(strList[1]); inserter.setNodeProperty(neo4j_ID, reachGridListName + "_" + j, ArrayUtil.iterableToList(rBitmap).toString()); break; case 1: inserter.setNodeProperty(neo4j_ID, rmbrName + "_" + j, strList[1]); break; case 2: if (strList[1].equals("true")) inserter.setNodeProperty(neo4j_ID, geoBName + "_" + j, true); else { inserter.setNodeProperty(neo4j_ID, geoBName + "_" + j, false); } break; default: throw new Exception(String.format("Vertex %d hop %d has type %d!", id, j, type)); } inserter.setNodeProperty(neo4j_ID, GeoReachTypeName + "_" + j, type); } } inserter.shutdown(); } catch (Exception e) { if (reader != null) try { reader.close(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } if (inserter != null) inserter.shutdown(); Util.println(String.format("line %d: %s", lineIndex, line)); e.printStackTrace(); System.exit(-1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void nikon_e900_load_raw()\n{\n int offset=0, irow, row, col;\n\n for (irow=0; irow < height; irow++) {\n row = irow * 2 % height;\n if (row == 1)\n offset = - (-offset & -4096);\n CTOJ.fseek (ifp, offset, CTOJ.SEEK_SET);\n offset += raw_width;\n getbits(-1);\n for (col=0; col < width; co...
[ "0.5899487", "0.5801097", "0.5582346", "0.55613023", "0.5352855", "0.53460985", "0.52795786", "0.522071", "0.5218596", "0.51694435", "0.50835824", "0.5074576", "0.50676805", "0.50549275", "0.5049123", "0.5026388", "0.5024336", "0.49990872", "0.49797815", "0.49671432", "0.4961...
0.515582
10
Load from index file of format BITMAP.
public void load(String indexPath, String dbPath) { int lineIndex = 0; String line = ""; BatchInserter inserter = null; BufferedReader reader = null; int id; try { Map<String, String> config = new HashMap<String, String>(); config.put("dbms.pagecache.memory", "100g"); if (Util.pathExist(dbPath) == false) throw new Exception(dbPath + " does not exist!"); inserter = BatchInserters.inserter(new File(dbPath).getAbsoluteFile(), config); reader = new BufferedReader(new FileReader(new File(indexPath))); lineIndex++; line = reader.readLine(); String[] strList = line.split(","); int nodeCount = Integer.parseInt(strList[0]); int MAX_HOP = Integer.parseInt(strList[1]); for (int i = 0; i < nodeCount; i++) { lineIndex++; id = Integer.parseInt(reader.readLine()); long neo4j_ID = graph_pos_map_list[id]; for (int j = 1; j <= MAX_HOP; j++) { lineIndex++; line = reader.readLine(); strList = line.split(":"); int type = Integer.parseInt(strList[0]); switch (type) { case 0: inserter.setNodeProperty(neo4j_ID, reachGridName + "_" + j, strList[1]); break; case 1: inserter.setNodeProperty(neo4j_ID, rmbrName + "_" + j, strList[1]); break; case 2: if (strList[1].equals("true")) inserter.setNodeProperty(neo4j_ID, geoBName + "_" + j, true); else { inserter.setNodeProperty(neo4j_ID, geoBName + "_" + j, false); } break; default: throw new Exception(String.format("Vertex %d hop %d has type %d!", id, j, type)); } inserter.setNodeProperty(neo4j_ID, GeoReachTypeName + "_" + j, type); } } inserter.shutdown(); } catch (Exception e) { if (reader != null) try { reader.close(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } if (inserter != null) inserter.shutdown(); Util.println(String.format("line %d: %s", lineIndex, line)); e.printStackTrace(); System.exit(-1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void nikon_e900_load_raw()\n{\n int offset=0, irow, row, col;\n\n for (irow=0; irow < height; irow++) {\n row = irow * 2 % height;\n if (row == 1)\n offset = - (-offset & -4096);\n CTOJ.fseek (ifp, offset, CTOJ.SEEK_SET);\n offset += raw_width;\n getbits(-1);\n for (col=0; col < width; co...
[ "0.5895834", "0.5801049", "0.5584729", "0.55616444", "0.5354404", "0.53470105", "0.52772355", "0.5218707", "0.5215674", "0.51682246", "0.51567596", "0.5085696", "0.507406", "0.50670755", "0.50546163", "0.50481826", "0.5024818", "0.49977848", "0.49808332", "0.49693424", "0.496...
0.5024809
17
Collecting all characters. Use string builder for efficiency
@Override public void characters(char[] ch, int start, int length) throws SAXException { super.characters(ch, start, length); builder.append(ch, start, length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n List<Character> charachterList = Arrays.asList('T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'S', 'p', 'a', 'r', 't', 'a', '!');\n String strings = charachterList.stream()\n .map(c -> c.toString())\n .collect(Collectors.joining());\n\n System.out....
[ "0.60771286", "0.6031899", "0.5993628", "0.5975231", "0.59122825", "0.5878404", "0.58649546", "0.5853774", "0.5832525", "0.5819234", "0.58148676", "0.58054906", "0.57643", "0.5742137", "0.5667408", "0.5628861", "0.5627883", "0.5618419", "0.5618406", "0.56015843", "0.5598577",...
0.5062815
96
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.ID
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getLogid() {\n return logid;\n }", "public int getLogid() {\n\treturn logid;\n}", "public String getLogId() {\r\n return logId;\r\n }", "int getLogId();", "public String getAccountLogId() {\n return accountLogId;\n }", "@Id\n @WhereSQL(sql = \"id=:WxPayconf...
[ "0.67646223", "0.6538368", "0.6490488", "0.6471635", "0.6117681", "0.5824636", "0.57711744", "0.57253826", "0.56941247", "0.54753506", "0.547408", "0.5449372", "0.5442947", "0.5400338", "0.539046", "0.5371602", "0.53710836", "0.5365455", "0.5279457", "0.5278797", "0.52739644"...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.ID
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLogid(Integer logid) {\n this.logid = logid;\n }", "public void setAD_Column_ID (int AD_Column_ID);", "public Integer getLogid() {\n return logid;\n }", "public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }", "public i...
[ "0.5895027", "0.5681371", "0.56387144", "0.56125593", "0.560539", "0.5478327", "0.5320946", "0.5275059", "0.52585423", "0.5213459", "0.5197815", "0.5197815", "0.5169411", "0.5159394", "0.51543236", "0.51383144", "0.51321924", "0.5127388", "0.51049197", "0.51002496", "0.509520...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.ADDRESS
public String getAddress() { return address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n ...
[ "0.6418692", "0.62923306", "0.6003207", "0.5959956", "0.5959956", "0.5908332", "0.58694005", "0.58659846", "0.5848468", "0.5848468", "0.5848468", "0.5848468", "0.5848468", "0.5848468", "0.5810315", "0.5804061", "0.579771", "0.579771", "0.5780928", "0.5777998", "0.5777998", ...
0.57232463
66
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.ADDRESS
public void setAddress(String address) { this.address = address == null ? null : address.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddress(java.lang.String address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target ...
[ "0.62257445", "0.59002566", "0.58817923", "0.5860674", "0.5860674", "0.5860674", "0.5860674", "0.5828942", "0.5806749", "0.5805631", "0.5774648", "0.57646483", "0.57468617", "0.57385427", "0.5709817", "0.57037926", "0.57037926", "0.57037926", "0.5697807", "0.56737083", "0.567...
0.55618155
63
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.HEADING
public String getHeading() { return heading; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Heading getHeading()\n {\n\treturn this.heading;\n }", "public int getHeading()\n\t{\n\t\treturn heading;\n\t}", "private String collectHeading(Document doc) {\n String heading = doc.select(\"[class^=header1 style]\").first().text();\r\n\r\n return heading;\r\n }", "public SSLHe...
[ "0.60842615", "0.58595747", "0.581226", "0.57279474", "0.5705732", "0.55708295", "0.5552024", "0.5443836", "0.5365911", "0.5316426", "0.5253559", "0.5247268", "0.52407324", "0.5220582", "0.5190932", "0.5184854", "0.5178204", "0.5178204", "0.5178204", "0.5173995", "0.5167112",...
0.59526175
2
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.HEADING
public void setHeading(String heading) { this.heading = heading == null ? null : heading.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setHeading(String heading) {\n }", "public void setHeading(String heading) {\n this.heading = heading;\n }", "public void setHeading(final SSLHeadingWidgetComponent value)\r\n\t{\r\n\t\tsetHeading( getSession().getSessionContext(), value );\r\n\t}", "public final nativ...
[ "0.5823442", "0.581514", "0.57239825", "0.5453249", "0.53819495", "0.5260899", "0.5212199", "0.518275", "0.51231676", "0.50543916", "0.50543916", "0.5003999", "0.5002139", "0.49360445", "0.49203616", "0.49141353", "0.49016017", "0.4881295", "0.4870852", "0.4869692", "0.485387...
0.5545707
3
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.CONTENTTYPE
public String getContenttype() { return contenttype; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContenttype() {\n\t\treturn contenttype;\n\t}", "int getContentTypeValue();", "public String getContentType() {\n return getProperty(Property.CONTENT_TYPE);\n }", "@java.lang.Override public int getContentTypeValue() {\n return contentType_;\n }", "@java.lang.Override public in...
[ "0.66588485", "0.5979182", "0.59665793", "0.5956143", "0.59132314", "0.59086746", "0.59017587", "0.58259207", "0.5701186", "0.56279534", "0.56252974", "0.5622151", "0.5597753", "0.5597009", "0.5596945", "0.5590853", "0.5590853", "0.5590853", "0.5562159", "0.5545899", "0.54856...
0.66657996
1
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.CONTENTTYPE
public void setContenttype(String contenttype) { this.contenttype = contenttype == null ? null : contenttype.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContentType(Header contentType) {\n/* 114 */ this.contentType = contentType;\n/* */ }", "public String getContenttype() {\n return contenttype;\n }", "public String getContenttype() {\n return contenttype;\n }", "public String getContenttype() {\n\t\treturn conten...
[ "0.5974089", "0.5915428", "0.5915428", "0.58464664", "0.57770485", "0.5749329", "0.5700355", "0.5637618", "0.5623328", "0.55630404", "0.5560455", "0.5549475", "0.54743654", "0.547216", "0.5453931", "0.5436933", "0.5409076", "0.5402984", "0.5399274", "0.539523", "0.5390141", ...
0.60220075
1
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.ENCODING
public String getEncoding() { return encoding; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DatabaseChangeProperty(exampleValue = \"utf8\")\n public String getEncoding() {\n return encoding;\n }", "@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }", "@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }", "public Stri...
[ "0.6048204", "0.5748486", "0.56671923", "0.5597013", "0.5597013", "0.5562765", "0.55443984", "0.5517408", "0.54699576", "0.5456495", "0.5401008", "0.53667176", "0.5330003", "0.53237337", "0.53059584", "0.53022957", "0.52729064", "0.52385706", "0.5215555", "0.5203777", "0.5198...
0.5423374
12
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.ENCODING
public void setEncoding(String encoding) { this.encoding = encoding == null ? null : encoding.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DatabaseChangeProperty(exampleValue = \"utf8\")\n public String getEncoding() {\n return encoding;\n }", "public void setEncoding (String encoding) {\n this.encoding = encoding;\n }", "public void setEncoding(Encoding encoding) {\n this.encoding = encoding;\n }", "@Override\n pub...
[ "0.5552759", "0.54625267", "0.5461138", "0.54206467", "0.54141325", "0.5337277", "0.532862", "0.532862", "0.532862", "0.5311568", "0.52695894", "0.51867497", "0.5136806", "0.50903594", "0.50810724", "0.5075854", "0.49819598", "0.49622366", "0.4937048", "0.49281037", "0.488016...
0.5078713
15
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.HTTPMETHOD
public String getHttpmethod() { return httpmethod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHttpMethod() {\n return httpMethod;\n }", "String getHttpMethod();", "String getHttpMethod();", "public HttpMethod getMethod()\r\n/* 31: */ {\r\n/* 32:60 */ return HttpMethod.valueOf(this.httpRequest.getMethod());\r\n/* 33: */ }", "public HttpMethod getMethod()\r\n/* ...
[ "0.6591241", "0.647069", "0.647069", "0.6426047", "0.63665086", "0.62749225", "0.62557524", "0.6239903", "0.6221444", "0.620978", "0.62097055", "0.60837954", "0.60447234", "0.5977802", "0.5957378", "0.59322923", "0.59212697", "0.5920691", "0.5908458", "0.58992124", "0.5882913...
0.7019612
0
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.HTTPMETHOD
public void setHttpmethod(String httpmethod) { this.httpmethod = httpmethod == null ? null : httpmethod.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMethod(HTTPMethod method);", "public String getHttpmethod() {\n return httpmethod;\n }", "public void setHttpMethod(int httpMethod) {\n method = httpMethod;\n }", "public String getHttpMethod() {\n return httpMethod;\n }", "public HttpMethod getMethod()\r\n/* 31...
[ "0.67122465", "0.6421233", "0.63680494", "0.5916956", "0.57709044", "0.56898767", "0.55623704", "0.55623704", "0.5543935", "0.55147153", "0.5483687", "0.5475617", "0.54742235", "0.54641914", "0.5432199", "0.54089075", "0.54047215", "0.5380086", "0.5368027", "0.5345069", "0.53...
0.6030109
3
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.HEADER
public String getHeader() { return header; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHeader();", "com.didiyun.base.v1.Header getHeader();", "public String getHeader() {\n\t\tif (null != this.header) {\n\t\t\treturn this.header;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"header\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getE...
[ "0.6388473", "0.63092977", "0.6297072", "0.62795466", "0.61840487", "0.61540186", "0.6097051", "0.60391045", "0.59976965", "0.5945473", "0.5904879", "0.5854403", "0.58341175", "0.582548", "0.57779986", "0.57513607", "0.57363695", "0.5722036", "0.57151127", "0.5707369", "0.563...
0.6282714
4
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.HEADER
public void setHeader(String header) { this.header = header == null ? null : header.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}", "public void setHeader(String header) {\n this.header = header;\n }", "public void setHeader(String header) {\n\t\t_header = header;\n\t}", "public void setHeader(String header) {\n\t\tthis.header = header;\n\t}", "public ...
[ "0.6225255", "0.62218744", "0.612131", "0.61198795", "0.60298", "0.60255206", "0.58345187", "0.5693171", "0.56900835", "0.5684839", "0.5663162", "0.55284774", "0.5515515", "0.548353", "0.53967214", "0.5374124", "0.5353294", "0.5342844", "0.5321447", "0.52761924", "0.5259627",...
0.5783411
7
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.MESSAGE
public String getMessage() { return message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLogMessage();", "public java.lang.String getMESSAGE() {\n return MESSAGE;\n }", "public String getMessage() {\r\n\treturn messageSB.toString();\r\n }", "public ScGridColumn<AcFossWebServiceMessage> newMessageColumn()\n {\n return newMessageColumn(\"Message\");\n ...
[ "0.63424873", "0.61748034", "0.6044631", "0.59720933", "0.58317333", "0.58168113", "0.58098245", "0.5763706", "0.5761887", "0.5754395", "0.57493794", "0.57315964", "0.57315964", "0.5722553", "0.5716221", "0.5716221", "0.57045317", "0.5691911", "0.5679827", "0.5679827", "0.567...
0.5601744
79
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.MESSAGE
public void setMessage(String message) { this.message = message == null ? null : message.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMESSAGE(java.lang.String MESSAGE) {\n this.MESSAGE = MESSAGE;\n }", "public void setMessage(String message);", "public void setMessage(String message);", "public void setMessage(String message);", "void setMessageID(long messageID);", "void setMessage(String message);", "void s...
[ "0.59447813", "0.57671636", "0.57671636", "0.57671636", "0.5732556", "0.56611115", "0.56611115", "0.5657403", "0.5641306", "0.55427825", "0.5481123", "0.5471071", "0.5469815", "0.54385436", "0.54111636", "0.54010856", "0.53640157", "0.53497076", "0.5342068", "0.53046757", "0....
0.509129
46
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.PAYLOAD
public String getPayload() { return payload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPayload() {\n\t\t\t\t\t\treturn payLoad;\r\n\t\t\t\t\t}", "public String getPayload() {\n return this.payload;\n }", "public int getPayload() {\n return payload;\n }", "public String getPayload() {\n return payload;\n }", "public String getPayload() {\n return paylo...
[ "0.59286654", "0.56210774", "0.5607746", "0.55757993", "0.55757993", "0.54078454", "0.5362134", "0.53414005", "0.5328529", "0.5315659", "0.52853584", "0.52711505", "0.5263309", "0.5159663", "0.5127652", "0.5127652", "0.511439", "0.511439", "0.5095279", "0.5044583", "0.5044583...
0.55640495
5
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.PAYLOAD
public void setPayload(String payload) { this.payload = payload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPayload(Payload payload) {\n this.payload = payload;\n }", "public void setOutboundPayload(Payload.Outbound newOutboundPayload);", "public void setPayload(String payload) {\n this.payload = payload;\n }", "public void setPayload(String payload);", "public void setInboundPayload(Paylo...
[ "0.55495715", "0.5447132", "0.54288876", "0.53576374", "0.5349745", "0.48740107", "0.48444775", "0.48313186", "0.47270986", "0.46853173", "0.4551379", "0.45484614", "0.45094973", "0.44971007", "0.4485849", "0.4485849", "0.4453772", "0.4430855", "0.43961874", "0.4376125", "0.4...
0.5389172
3
This method was generated by MyBatis Generator. This method returns the value of the database column AD_WSLOG.RESPONSECODE
public String getResponsecode() { return responsecode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int statusCode(){\n return code;\n }", "public String getRespcode() {\n\t\treturn respcode;\n\t}", "public int getResponseCode()\r\n {\r\n return this.responseCode;\r\n }", "public int getResponseCode() {\n return this.responseCode;\n }", "public Strin...
[ "0.66478765", "0.66296476", "0.6584224", "0.6556755", "0.6498956", "0.64723516", "0.6439446", "0.6416503", "0.6384705", "0.6384705", "0.6384705", "0.63607126", "0.63360083", "0.62782085", "0.6198723", "0.6145469", "0.61394703", "0.6114083", "0.6100614", "0.60915107", "0.60680...
0.6452595
6
This method was generated by MyBatis Generator. This method sets the value of the database column AD_WSLOG.RESPONSECODE
public void setResponsecode(String responsecode) { this.responsecode = responsecode == null ? null : responsecode.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setResponseCode(final int responseCode) {\n\t\thandler.responseCode = responseCode;\n\t}", "public void setResponseCode(int responseCode) {\n this.responseCode = responseCode;\n }", "public void setResponseCode(java.lang.String responseCode) {\n this.responseCode = response...
[ "0.7148393", "0.7048646", "0.6986489", "0.6913669", "0.6829044", "0.67192006", "0.6692827", "0.64469403", "0.6372446", "0.6266095", "0.6169189", "0.6153979", "0.6102884", "0.6080821", "0.60662097", "0.60638994", "0.6060715", "0.604907", "0.60459346", "0.60459036", "0.6038887"...
0.64547265
7
Creates new form Gui
public Gui() { initComponents(); paneles = new ArrayList(); btGroup.add(rbCrear); btGroup.add(rbConsultar); btGroup.add(rbModificar); btGroup.add(rbEliminar); paneles.add(panelCrearConsultarUsuario); //INDICE 0 paneles.add(panelCRUDItem); //INDICE 1 paneles.add(panelCRUDPedido); //INDICE 2 paneles.add(panelCRUDFactura); //INDICE 3 setPanelesInvisible(-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "FORM createFORM();", "public GUIForm() { \n initComponents();\n }", "private static void createAndShowGUI() {\n...
[ "0.72624403", "0.71898586", "0.7187214", "0.7167392", "0.71260935", "0.7099009", "0.7066188", "0.70160556", "0.6985065", "0.6979152", "0.6918728", "0.69031674", "0.6898675", "0.6888506", "0.6853021", "0.6841165", "0.68396205", "0.68385184", "0.6836528", "0.6831033", "0.682499...
0.66217434
66
PONE VISIBLE EL PANEL CON EL ID QUE LE MANDEN
public void setPanelesInvisible(int indicePanel) { for (int i = 0; i < paneles.size(); i++) { if (indicePanel != i) { paneles.get(i).setVisible(false); } else { paneles.get(i).setVisible(true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inhabilitaPanel() {\n\n\t\t//comboNombreCarta.setEnabled(false);\n\t\tjScrollPane1.setEnabled(false);\n\t\tjScrollPane1.getVerticalScrollBar().setEnabled(false);\n\t\tjScrollPane1.getHorizontalScrollBar().setEnabled(false);\n\t\tjScrollPane2.setEnabled(false);\n\t\tjScrollPane2.getVerticalScrollBar().s...
[ "0.6208858", "0.61937517", "0.61937517", "0.6174009", "0.6115711", "0.61062443", "0.6093461", "0.6092603", "0.60710144", "0.60564935", "0.6051427", "0.6051427", "0.6051427", "0.60513216", "0.60310364", "0.6022718", "0.6002955", "0.5960925", "0.59516895", "0.5947274", "0.59418...
0.546479
84
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() { btGroup = new javax.swing.ButtonGroup(); panelPrincipal = new javax.swing.JPanel(); lLogo = new javax.swing.JLabel(); panelAvisoPrueba = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); panelCrear = new javax.swing.JPanel(); btCrearUsuario = new javax.swing.JButton(); btCrearFactura = new javax.swing.JButton(); btCrearPedido = new javax.swing.JButton(); btCrearItem = new javax.swing.JButton(); panelOpciones = new javax.swing.JPanel(); rbCrear = new javax.swing.JRadioButton(); rbConsultar = new javax.swing.JRadioButton(); rbModificar = new javax.swing.JRadioButton(); rbEliminar = new javax.swing.JRadioButton(); jLayeredPane1 = new javax.swing.JLayeredPane(); panelCRUDItem = new javax.swing.JPanel(); jLabel18 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); ComboCategoria = new javax.swing.JComboBox<>(); IdItemText = new javax.swing.JTextField(); PrecioText = new javax.swing.JTextField(); ImagenText = new javax.swing.JTextField(); DescripcionText = new javax.swing.JTextField(); jLabel23 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); CantidadText = new javax.swing.JTextField(); Boton2 = new javax.swing.JButton(); Boton1 = new javax.swing.JButton(); panelCrearConsultarUsuario = new javax.swing.JPanel(); tfIdCrearModUsuario = new javax.swing.JTextField(); tfApellidoCrearModUsuario = new javax.swing.JTextField(); tfNombreCrearModUsuario = new javax.swing.JTextField(); tfDirCrearModUsuario = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); tfTelefonoCrearModUsuario = new javax.swing.JTextField(); jLabel8 = new javax.swing.JLabel(); tfCelularCrearModUsuario = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); tfCorreoCrearModUsuario = new javax.swing.JTextField(); jLabel11 = new javax.swing.JLabel(); tfPasswordCrearModUsuario = new javax.swing.JTextField(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); cbCargoCrearModUsuario = new javax.swing.JComboBox<>(); cbHorarioCrearModUsuario = new javax.swing.JComboBox<>(); bGuardarCrearModUsuario = new javax.swing.JButton(); bCancelarCrearModUsuario = new javax.swing.JButton(); jLabel14 = new javax.swing.JLabel(); cbTipoId = new javax.swing.JComboBox<>(); panelCRUDPedido = new javax.swing.JPanel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel22 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); jLabel27 = new javax.swing.JLabel(); idPedidoText = new javax.swing.JTextField(); idMesaText = new javax.swing.JTextField(); idMeseroText = new javax.swing.JTextField(); idTipoText = new javax.swing.JTextField(); horaInicioText = new javax.swing.JTextField(); horaEntregaText = new javax.swing.JTextField(); BotonGuardarPedido = new javax.swing.JButton(); BotonConsultaPedido = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); panelCRUDFactura = new javax.swing.JPanel(); jLabel15 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); panelPrincipal.setBackground(new java.awt.Color(255, 255, 255)); lLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo.PNG"))); // NOI18N panelAvisoPrueba.setBackground(new java.awt.Color(255, 255, 255)); panelAvisoPrueba.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel3.setText("VERSION"); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel1.setText("DE PRUEBA"); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel4.setText("ORM"); javax.swing.GroupLayout panelAvisoPruebaLayout = new javax.swing.GroupLayout(panelAvisoPrueba); panelAvisoPrueba.setLayout(panelAvisoPruebaLayout); panelAvisoPruebaLayout.setHorizontalGroup( panelAvisoPruebaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelAvisoPruebaLayout.createSequentialGroup() .addContainerGap(57, Short.MAX_VALUE) .addGroup(panelAvisoPruebaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addGroup(panelAvisoPruebaLayout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(jLabel4)) .addGroup(panelAvisoPruebaLayout.createSequentialGroup() .addGap(9, 9, 9) .addComponent(jLabel3))) .addGap(28, 28, 28)) ); panelAvisoPruebaLayout.setVerticalGroup( panelAvisoPruebaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelAvisoPruebaLayout.createSequentialGroup() .addGap(34, 34, 34) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel4) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); panelCrear.setBackground(new java.awt.Color(255, 255, 255)); panelCrear.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Elementos: ", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 3, 11))); // NOI18N btCrearUsuario.setText("Usuario"); btCrearUsuario.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btCrearUsuarioActionPerformed(evt); } }); btCrearFactura.setText("Factura"); btCrearPedido.setText("Pedido"); btCrearPedido.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btCrearPedidoActionPerformed(evt); } }); btCrearItem.setText("Item"); btCrearItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btCrearItemActionPerformed(evt); } }); javax.swing.GroupLayout panelCrearLayout = new javax.swing.GroupLayout(panelCrear); panelCrear.setLayout(panelCrearLayout); panelCrearLayout.setHorizontalGroup( panelCrearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCrearLayout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(btCrearUsuario) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btCrearFactura) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btCrearPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btCrearItem, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); panelCrearLayout.setVerticalGroup( panelCrearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCrearLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btCrearUsuario) .addComponent(btCrearFactura) .addComponent(btCrearPedido) .addComponent(btCrearItem)) ); panelOpciones.setBackground(new java.awt.Color(255, 255, 255)); panelOpciones.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Opciones: ", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 3, 11))); // NOI18N rbCrear.setBackground(new java.awt.Color(255, 255, 255)); rbCrear.setText("Crear"); rbConsultar.setBackground(new java.awt.Color(255, 255, 255)); rbConsultar.setText("Consultar"); rbModificar.setBackground(new java.awt.Color(255, 255, 255)); rbModificar.setText("Modificar"); rbEliminar.setBackground(new java.awt.Color(255, 255, 255)); rbEliminar.setText("Eliminar"); javax.swing.GroupLayout panelOpcionesLayout = new javax.swing.GroupLayout(panelOpciones); panelOpciones.setLayout(panelOpcionesLayout); panelOpcionesLayout.setHorizontalGroup( panelOpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelOpcionesLayout.createSequentialGroup() .addComponent(rbCrear) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(rbConsultar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(rbModificar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(rbEliminar)) ); panelOpcionesLayout.setVerticalGroup( panelOpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelOpcionesLayout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addGroup(panelOpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(rbCrear) .addComponent(rbConsultar) .addComponent(rbModificar) .addComponent(rbEliminar))) ); jLayeredPane1.setBackground(new java.awt.Color(204, 204, 204)); jLayeredPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel18.setText("Id Item:"); jLabel19.setText("Precio Actual:"); jLabel20.setText("Descripcion:"); jLabel21.setText("Cantidad :"); ComboCategoria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "1" })); ComboCategoria.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ComboCategoriaActionPerformed(evt); } }); IdItemText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IdItemTextActionPerformed(evt); } }); ImagenText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ImagenTextActionPerformed(evt); } }); jLabel23.setText("Categoria:"); jButton1.setText("Imagen"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); CantidadText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CantidadTextActionPerformed(evt); } }); Boton2.setText("Cancelar"); Boton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Boton2ActionPerformed(evt); } }); Boton1.setText("Guardar"); Boton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Boton1ActionPerformed(evt); } }); javax.swing.GroupLayout panelCRUDItemLayout = new javax.swing.GroupLayout(panelCRUDItem); panelCRUDItem.setLayout(panelCRUDItemLayout); panelCRUDItemLayout.setHorizontalGroup( panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDItemLayout.createSequentialGroup() .addGap(36, 36, 36) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel19) .addComponent(jLabel18) .addComponent(jLabel20) .addComponent(jLabel21) .addComponent(jLabel23)) .addGap(70, 70, 70) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(CantidadText) .addComponent(IdItemText) .addComponent(PrecioText) .addComponent(DescripcionText) .addComponent(ComboCategoria, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(71, 71, 71) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ImagenText, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(76, 76, 76)) .addGroup(panelCRUDItemLayout.createSequentialGroup() .addGap(120, 120, 120) .addComponent(Boton1, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(83, 83, 83) .addComponent(Boton2, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(143, Short.MAX_VALUE)) ); panelCRUDItemLayout.setVerticalGroup( panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDItemLayout.createSequentialGroup() .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDItemLayout.createSequentialGroup() .addGap(46, 46, 46) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(IdItemText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel18)) .addGap(18, 18, 18) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel19) .addComponent(PrecioText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel20) .addComponent(DescripcionText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel21) .addComponent(CantidadText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(panelCRUDItemLayout.createSequentialGroup() .addGap(62, 62, 62) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel23) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ComboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ImagenText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE) .addGroup(panelCRUDItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Boton2, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Boton1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(21, 21, 21)) ); panelCrearConsultarUsuario.setBackground(new java.awt.Color(204, 204, 204)); jLabel2.setText("Identificacion: "); jLabel5.setText("Nombre: "); jLabel6.setText("Apellidos: "); jLabel7.setText("Dirreccion: "); jLabel8.setText("Telefono: "); jLabel9.setText("Celular: "); jLabel10.setText("Correo: "); jLabel11.setText("Contraseña: "); jLabel12.setText("Cargo: "); jLabel13.setText("Horario: "); cbCargoCrearModUsuario.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "", "Gerente", "Cajero", "Mesero" })); cbHorarioCrearModUsuario.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "", "Mañana", "Tarde", "Noche" })); bGuardarCrearModUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/save.png"))); // NOI18N bGuardarCrearModUsuario.setText("Guardar"); bGuardarCrearModUsuario.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bGuardarCrearModUsuarioActionPerformed(evt); } }); bCancelarCrearModUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/cancel.png"))); // NOI18N bCancelarCrearModUsuario.setText("Cancelar"); bCancelarCrearModUsuario.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bCancelarCrearModUsuarioActionPerformed(evt); } }); jLabel14.setText("TipoId:"); cbTipoId.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "", "Cedula Ciudadania", "Pasaporte", "Tarjeta Identidad" })); javax.swing.GroupLayout panelCrearConsultarUsuarioLayout = new javax.swing.GroupLayout(panelCrearConsultarUsuario); panelCrearConsultarUsuario.setLayout(panelCrearConsultarUsuarioLayout); panelCrearConsultarUsuarioLayout.setHorizontalGroup( panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addContainerGap() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabel5) .addComponent(jLabel8) .addComponent(jLabel9)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(tfCelularCrearModUsuario) .addComponent(tfTelefonoCrearModUsuario) .addComponent(tfNombreCrearModUsuario) .addComponent(tfIdCrearModUsuario))) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addComponent(jLabel13) .addGap(21, 21, 21))) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(tfPasswordCrearModUsuario) .addComponent(cbHorarioCrearModUsuario, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGap(67, 67, 67)) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGap(175, 175, 175) .addComponent(bGuardarCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(bCancelarCrearModUsuario) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addComponent(jLabel12) .addGap(36, 36, 36) .addComponent(cbCargoCrearModUsuario, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addComponent(jLabel10) .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING)) .addComponent(jLabel14)) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(tfApellidoCrearModUsuario) .addComponent(tfDirCrearModUsuario) .addComponent(cbTipoId, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tfCorreoCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addGap(26, 26, 26)) ); panelCrearConsultarUsuarioLayout.setVerticalGroup( panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addContainerGap() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel14) .addComponent(cbTipoId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(23, 23, 23) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tfApellidoCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6)) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tfDirCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7))) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tfIdCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tfNombreCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tfTelefonoCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(tfCelularCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9) .addComponent(tfCorreoCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCrearConsultarUsuarioLayout.createSequentialGroup() .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11) .addComponent(tfPasswordCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13) .addComponent(cbHorarioCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12) .addComponent(cbCargoCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE) .addGroup(panelCrearConsultarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(bGuardarCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(bCancelarCrearModUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(33, 33, 33)) ); jLabel16.setText("PANEL DE PEDIDO"); jLabel17.setText("Id Pedido"); jLabel22.setText("Id Mesa"); jLabel24.setText("Id Mesero"); jLabel25.setText("id Tipo"); jLabel26.setText("Hora Inicio"); jLabel27.setText("Hora Entrega"); BotonGuardarPedido.setText("Guardar"); BotonGuardarPedido.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BotonGuardarPedidoActionPerformed(evt); } }); BotonConsultaPedido.setText("Consultar"); BotonConsultaPedido.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BotonConsultaPedidoActionPerformed(evt); } }); jButton2.setText("Eliminar"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout panelCRUDPedidoLayout = new javax.swing.GroupLayout(panelCRUDPedido); panelCRUDPedido.setLayout(panelCRUDPedidoLayout); panelCRUDPedidoLayout.setHorizontalGroup( panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addGap(299, 299, 299) .addComponent(jLabel16)) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addGap(51, 51, 51) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel22) .addComponent(jLabel24) .addComponent(jLabel26) .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addComponent(jLabel27) .addGap(49, 49, 49))) .addGap(37, 37, 37) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(idPedidoText) .addComponent(idMesaText) .addComponent(idMeseroText) .addComponent(idTipoText) .addComponent(horaInicioText, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE) .addComponent(horaEntregaText)) .addGap(98, 98, 98) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(BotonGuardarPedido) .addComponent(BotonConsultaPedido) .addComponent(jButton2)))) .addContainerGap(172, Short.MAX_VALUE)) ); panelCRUDPedidoLayout.setVerticalGroup( panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addGap(25, 25, 25) .addComponent(jLabel16) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addGap(56, 56, 56) .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCRUDPedidoLayout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(idPedidoText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(BotonGuardarPedido)))) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addGap(18, 18, 18) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(idMesaText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel22)) .addGap(18, 18, 18) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel24) .addComponent(idMeseroText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(panelCRUDPedidoLayout.createSequentialGroup() .addGap(34, 34, 34) .addComponent(BotonConsultaPedido))) .addGap(18, 18, 18) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(idTipoText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(horaInicioText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel26)) .addGap(23, 23, 23) .addGroup(panelCRUDPedidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel27) .addComponent(horaEntregaText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(40, Short.MAX_VALUE)) ); jLabel15.setText("PANEL DE FACTURA"); javax.swing.GroupLayout panelCRUDFacturaLayout = new javax.swing.GroupLayout(panelCRUDFactura); panelCRUDFactura.setLayout(panelCRUDFacturaLayout); panelCRUDFacturaLayout.setHorizontalGroup( panelCRUDFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDFacturaLayout.createSequentialGroup() .addGap(301, 301, 301) .addComponent(jLabel15) .addContainerGap(278, Short.MAX_VALUE)) ); panelCRUDFacturaLayout.setVerticalGroup( panelCRUDFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelCRUDFacturaLayout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(jLabel15) .addContainerGap(313, Short.MAX_VALUE)) ); jLayeredPane1.setLayer(panelCRUDItem, javax.swing.JLayeredPane.DEFAULT_LAYER); jLayeredPane1.setLayer(panelCrearConsultarUsuario, javax.swing.JLayeredPane.DEFAULT_LAYER); jLayeredPane1.setLayer(panelCRUDPedido, javax.swing.JLayeredPane.DEFAULT_LAYER); jLayeredPane1.setLayer(panelCRUDFactura, javax.swing.JLayeredPane.DEFAULT_LAYER); javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1); jLayeredPane1.setLayout(jLayeredPane1Layout); jLayeredPane1Layout.setHorizontalGroup( jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jLayeredPane1Layout.createSequentialGroup() .addComponent(panelCrearConsultarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelCRUDItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelCRUDPedido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelCRUDFactura, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jLayeredPane1Layout.setVerticalGroup( jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jLayeredPane1Layout.createSequentialGroup() .addComponent(panelCrearConsultarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 27, Short.MAX_VALUE)) .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelCRUDItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelCRUDPedido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelCRUDFactura, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout panelPrincipalLayout = new javax.swing.GroupLayout(panelPrincipal); panelPrincipal.setLayout(panelPrincipalLayout); panelPrincipalLayout.setHorizontalGroup( panelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelPrincipalLayout.createSequentialGroup() .addComponent(panelOpciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(panelCrear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLayeredPane1) .addGroup(panelPrincipalLayout.createSequentialGroup() .addComponent(lLogo) .addGap(18, 18, 18) .addComponent(panelAvisoPrueba, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); panelPrincipalLayout.setVerticalGroup( panelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelPrincipalLayout.createSequentialGroup() .addGroup(panelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(lLogo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(panelAvisoPrueba, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(panelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(panelOpciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(panelCrear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLayeredPane1) .addContainerGap()) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
parameterized constructor to initialize an employee object
public Employee(int employeeId, String employeeName, String employeeAddress) { this.employeeId = employeeId; this.employeeName = employeeName; this.employeeAddress = employeeAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee() {\t}", "public Employee() {}", "public Employee(){\r\n }", "public Employee(String nama, int usia) {\r\n // Constructor digunaka...
[ "0.79527634", "0.7800215", "0.7800215", "0.77916056", "0.77654684", "0.7739442", "0.772088", "0.7718853", "0.77165776", "0.7716509", "0.7712557", "0.7634655", "0.76201236", "0.7619577", "0.76012254", "0.76012254", "0.76012254", "0.7551533", "0.74747723", "0.7455993", "0.74536...
0.7219228
36
method to get the employee id
public int getEmployeeId() { return employeeId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getEmployeeId();", "public long getEmployeeId();", "public int getEmployeeId();", "public int getEmployeeId() {\n return employeeId_;\n }", "public int getEmployeeId() {\n return employeeId_;\n }", "@Override\n\tpublic long getEmployeeId() {\n\t\treturn _userSync.getEmployeeId();\...
[ "0.87768054", "0.85066706", "0.8280283", "0.82639", "0.82190365", "0.8209794", "0.8116879", "0.8107209", "0.8060207", "0.8059492", "0.8047364", "0.80409", "0.80409", "0.7792058", "0.77576005", "0.7610375", "0.7597152", "0.7552163", "0.7552163", "0.7440617", "0.743038", "0.7...
0.8300036
2
method to set the employee id
public void setEmployeeId(int employeeId) { this.employeeId = employeeId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setEmployeeId(long employeeId);", "public void setEmployeeid(long employeeid)\n {\n ...
[ "0.8543923", "0.8389717", "0.80629206", "0.7998972", "0.7894057", "0.76868975", "0.760183", "0.75194776", "0.7499974", "0.74899197", "0.74880314", "0.7445239", "0.7423297", "0.74022883", "0.7366965", "0.73590994", "0.7352871", "0.7343671", "0.7321553", "0.7287204", "0.7287204...
0.7631777
6
method to get the employee name
public String getEmployeeName() { return employeeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEmployeeName();", "public String getEmployeeName();", "public java.lang.String getEmployeeName() {\n java.lang.Object ref = employeeName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString)...
[ "0.9374167", "0.8409538", "0.80722916", "0.795542", "0.7955406", "0.78438854", "0.7349368", "0.7255456", "0.7174495", "0.71699584", "0.71698385", "0.71403676", "0.7030309", "0.6985566", "0.69404984", "0.683588", "0.68222857", "0.6819803", "0.6819803", "0.6819803", "0.6819803"...
0.8119291
2
method to set the employee name
public void setEmployeeName(String employeeName) { this.employeeName = employeeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setEmployeeName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n employeeName_ = value;\n onChanged();\n return this;\n }", "Employee setFirstname(String firstname);", "Employee setLastname(String last...
[ "0.78159595", "0.77968603", "0.7683073", "0.75502735", "0.7498203", "0.74278283", "0.73258895", "0.71453947", "0.7123941", "0.7101159", "0.70992094", "0.70853907", "0.70603615", "0.70177406", "0.6988687", "0.69807273", "0.69748145", "0.69644356", "0.69585747", "0.6956123", "0...
0.75876075
3
method to get the employee address
public String getEmployeeAddress() { return employeeAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHotelAddress();", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddre...
[ "0.7877725", "0.76407266", "0.7635088", "0.7635088", "0.7635088", "0.7635088", "0.7635088", "0.7635088", "0.7614215", "0.7614215", "0.75978297", "0.7541456", "0.7541456", "0.7455303", "0.74211353", "0.7340449", "0.7328207", "0.7284511", "0.7266115", "0.7231728", "0.72283053",...
0.8253136
0
method to set the employee address
public void setEmployeeAddress(String employeeAddress) { this.employeeAddress = employeeAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public abstract void setCustomerAddress(Address address);", "public void setAddress(Address address) {\n this.address = addres...
[ "0.7472071", "0.7472071", "0.7472071", "0.7472071", "0.73348695", "0.7298624", "0.7298624", "0.7298624", "0.7217485", "0.7189455", "0.71893144", "0.7177711", "0.7166377", "0.71621794", "0.71447897", "0.71407056", "0.7062557", "0.7062557", "0.70321393", "0.70120466", "0.699183...
0.7656675
0
method to display the list of the employees
public static void display(List<Employee> empList) { for(Employee e : empList) { System.out.println(e.getEmployeeId()+"\t"+e.getEmployeeName()+"\t"+e.getEmployeeAddress()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \...
[ "0.8331192", "0.82645273", "0.81825435", "0.80034727", "0.76538414", "0.7631766", "0.75939775", "0.75098205", "0.7507832", "0.7438874", "0.74346834", "0.7351515", "0.7290858", "0.7281", "0.72693735", "0.7268979", "0.7268824", "0.72400326", "0.7211215", "0.71894264", "0.718727...
0.7376063
11
method to compare two objects of employee
@Override public int compareTo(Employee emp) { if(this.getEmployeeId() == emp.getEmployeeId()) { return 0; } else if(this.getEmployeeId() > emp.getEmployeeId()) { return 1; } else { return -1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testReflexiveForEqual() throws Exception {\n\r\n EmployeeImpl emp1 = new EmployeeImpl(\"7993389\", \"gagandeep.singh@rbs.com\");\r\n EmployeeImpl emp2 = new EmployeeImpl(\"7993389\", \"ramandeep.singh@rbs.com\");\r\n\r\n Assert.assertTrue(\"Comparable implementation is...
[ "0.67864907", "0.6723069", "0.6681958", "0.6672376", "0.6619451", "0.6617007", "0.659054", "0.6562874", "0.6547065", "0.6524905", "0.64768517", "0.6463821", "0.64618486", "0.64502156", "0.644213", "0.644084", "0.64358616", "0.642785", "0.64081943", "0.6394793", "0.63855577", ...
0.6298223
28
Starting the thrift and UDP servers here
public void StartAllServices() { m_oCommServ.StartCmdService(m_oConfig.CmdPort()); //Giving introducer port here // bring up the heartbeat receiver m_oCommServ.StartHeartBeatRecvr(); //breing up the file report recvr m_oCommServ.StartFileReportRecvr(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void startAll() throws Throwable {\n\t\tthis.udpServer = new UDPServer(this.agent);\n\t\tthis.connectionServer = new TCPServer(this.agent);\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\" ThriftServer start ing ....\");\n\t\t\t\ttry { \n\t\t\t\t\tif (!server.isServing()) {\n...
[ "0.71129066", "0.6881484", "0.6577399", "0.6521124", "0.6492916", "0.6476662", "0.6439044", "0.63915217", "0.6354547", "0.6283245", "0.6229918", "0.6218579", "0.62015474", "0.6190792", "0.61681837", "0.61497694", "0.61243135", "0.60905826", "0.60822517", "0.6075796", "0.60717...
0.59849876
29
start heart beating thread
public void StartMemberlistHB() { m_HBThread = new Thread(m_oHeartbeat); m_HBThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(bLinked &&!isExit()){\r\n\t\t\t\tLog.d(\"123\", \"set heart beat threadid:\"+Thread.currentThread().getId());\r\n\t\t\t\tjni.talkSetHeartBeat();\r\n\t\t\t\tif(jni.talkGetRegisterState()!=1 ){\r\n\t\t\t\t\tLog.e(\"123\", \"心跳停止了\");\r\n\t\t\t\t\tbLinked = false;\r\n...
[ "0.7269313", "0.7227658", "0.7189742", "0.69633687", "0.6898137", "0.68756133", "0.68662155", "0.67997897", "0.65603876", "0.6535129", "0.64138687", "0.6322023", "0.6316578", "0.6259424", "0.6197234", "0.6149123", "0.6118933", "0.6110329", "0.60940933", "0.60859287", "0.60691...
0.6302542
13
start filereport sender thread
public void StartFRHB() { m_FRHBThread = new Thread(m_oNodeMgr); m_FRHBThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tList<ATTACH> mAttachs = SQLiteUtils.getInstance(mContext)\r\n\t\t\t\t\t\t.getEmailAttachsFromDb(emailUsername, emailUid);\r\n\t\t\t\t// feed = readFile(path + \"/\" + AppfileName);\r\n\t\t\t\tmDetails = SQLiteUtils.getInstance(mContext)\r\n\t\t\t\t\t\t.getEmailDetail...
[ "0.64732474", "0.63459724", "0.6194855", "0.6176156", "0.61688566", "0.614759", "0.6123798", "0.60974133", "0.6011413", "0.5977237", "0.597416", "0.58922225", "0.5887618", "0.58685416", "0.58633804", "0.5863136", "0.58259106", "0.5813424", "0.57970226", "0.5791994", "0.578880...
0.0
-1
start failure detection thread
public void StartFailureDetection() { m_FailDetThread = new Thread(m_oMember); m_FailDetThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void threadFail(Throwable e) {\n failure = e;\n resume(mainThread);\n }", "@Override\n protected void onFailure(Throwable e) {\n // terminate thread\n terminate(false);\n }", "public void run() {\n Intent in = new Intent(activity, serverconnectionerror.class...
[ "0.67914295", "0.63310194", "0.588438", "0.58351177", "0.58249074", "0.5801386", "0.57755834", "0.5714999", "0.5700383", "0.561706", "0.5611646", "0.5603093", "0.56014186", "0.5601065", "0.5599322", "0.5598226", "0.55773866", "0.5545614", "0.55361027", "0.55120826", "0.550462...
0.8082208
0
check if the current node is the leader. If yes start replication check thread
public void StartReplicationMgr() { if( hostIP.equals(m_oElection.GetLeaderIP())) { m_oSDFSMaster.StartReplicationMgr(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized boolean runLeaderElection(ZooKeeperService zkService) {\n List<String> children = List.ofAll(zkService.getChildren(ROOT, false))\n .sorted();\n\n\n // There should be at least one node at this point, as we have already registered ourselves.\n String leader =...
[ "0.6857479", "0.6587434", "0.64155495", "0.64155495", "0.6222767", "0.6094042", "0.6020916", "0.5909652", "0.5822631", "0.570422", "0.5690413", "0.5633571", "0.5555187", "0.5537942", "0.55271477", "0.54614186", "0.538608", "0.5333978", "0.53259397", "0.5282968", "0.5266471", ...
0.70707613
0
Introducer always comes up with serialNumber 0
public int IntroduceSelf() { if(m_sNodeType.equals(Commons.NODE_INTROCUDER)) { m_oLogger.Info(new String("Adding self as introducer and leader with Sno 0")); //If recover from checkpoint, set new leader in election. Don't reset serial number m_oMember.AddSelf(0); m_oElection.SetSerialNumber(0); m_oElection.SetLeader(m_oMember.UniqueId()); RecoverFromCheckPoint(); } else if(m_sNodeType.equals(Commons.NODE_PARTICIPANT)) { CommandIfaceProxy proxy = new CommandIfaceProxy(); int counter = 0; // continuous pinging for introducer to connect while(Commons.FAILURE == proxy.Initialize(m_oConfig.IntroducerIP(), m_oConfig.CmdPort(), m_oLogger)) { if( counter++ > 100) { m_oLogger.Error("Failed to connect to Introducer. Exiting after 100 tries"); return Commons.FAILURE; } // sleep 5 secs before next retry m_oLogger.Warning("Failed to connect to Introducer. Trying again in 5 secs"); try { Thread.sleep(5000); } catch (InterruptedException e) { // TODO Auto-generated catch block m_oLogger.Error(m_oLogger.StackTraceToString(e)); return Commons.FAILURE; } } // checkpointing will change this part of the logic //Added call to JoinGroup for getting serialNumbers try { int serialNumber = proxy.JoinGroup(); m_oLogger.Info(new String("Received serial number from introdcr : " + String.valueOf(serialNumber))); m_oMember.AddSelf(serialNumber); m_oElection.SetSerialNumber(serialNumber); } catch (TException e2) { // TODO Auto-generated catch block m_oLogger.Error(m_oLogger.StackTraceToString(e2)); } int leaderCounter = 0; try { while(!proxy.IsLeaderAlive()) { if( leaderCounter++ > 10) { m_oLogger.Error("Failed to receive leader. Exiting after 10 tries"); return Commons.FAILURE; } try { Thread.sleep(5000); } catch (InterruptedException e) { m_oLogger.Error(m_oLogger.StackTraceToString(e)); } m_oLogger.Warning(new String("Leader not alive. Trying in 5 secs")); } m_oElection.SetLeader(proxy.GetLeaderId()); } catch (TException e3) { m_oLogger.Error(m_oLogger.StackTraceToString(e3)); } ByteBuffer buf; try { buf = proxy.GetMembershipList(); } catch (TException e1) { // TODO Auto-generated catch block m_oLogger.Error(m_oLogger.StackTraceToString(e1)); return Commons.FAILURE; } byte[] bufArr = new byte[buf.remaining()]; buf.get(bufArr); try { m_oMember.MergeList(bufArr); } catch (Exception e) { // TODO Auto-generated catch block m_oLogger.Error(m_oLogger.StackTraceToString(e)); return Commons.FAILURE; } } return Commons.SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }", "@Override\n\tpublic int sequence() {\n\t\treturn 0;\n\t}", "void receiveSequenceNumber() {\r\n\t\t\r\n\t}", "void requestSequenceNumber() {\r\n\t\t// 부모가 가지고있는 메시지의 순서번호(시작 ~ 끝)를 요청 \r\n\t}", "public int getSequ...
[ "0.6874016", "0.6585235", "0.6573999", "0.6435272", "0.64349014", "0.6396557", "0.63386106", "0.63386106", "0.6239977", "0.62294006", "0.62294006", "0.6205101", "0.6164998", "0.61557424", "0.6142593", "0.61357194", "0.6118261", "0.6080374", "0.6076701", "0.6029971", "0.602997...
0.5988743
28