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
LeDeviceListAdapter() Initializes the list of BLE devices and the layout inflater.
public LeDeviceListAdapter() { super(); mLeDevices = new ArrayList<BluetoothDevice>(); mInflater = DeviceScanActivity.this.getLayoutInflater(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void configureDeviceListView(){\n deviceListView = findViewById(R.id.device_listView);\n combinedDeviceList = new ArrayList<>();\n deviceListAdapter = new DeviceListAdapter(this, combinedDeviceList);\n deviceListView.setAdapter(deviceListAdapter);\n }", "@Override\n prote...
[ "0.68483186", "0.6540946", "0.6410193", "0.64095896", "0.6366598", "0.6204844", "0.6111298", "0.6100723", "0.6096071", "0.60912687", "0.6034624", "0.60102576", "0.60086143", "0.5966576", "0.5908848", "0.5891963", "0.58574444", "0.5855029", "0.58408916", "0.5728267", "0.572606...
0.8292018
0
addDevice() Add the a BLE device to the list of BLE devices if it is not already in the list.
public void addDevice(BluetoothDevice device) { if(!mLeDevices.contains(device)) { mLeDevices.add(device); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(BlueteethDevice device) {\n boolean isAlreadyInList = false;\n for (BlueteethDevice d : mDevices) {\n if (device.getMacAddress().equals(d.getMacAddress())) {\n isAlreadyInList = true;\n break;\n }\n }\n\n if (!isAlready...
[ "0.7337758", "0.7171175", "0.6720551", "0.65736765", "0.6492918", "0.63494974", "0.620156", "0.61495113", "0.60977435", "0.6095221", "0.6093354", "0.6043905", "0.6043894", "0.5978378", "0.59198546", "0.5916491", "0.59106684", "0.5779721", "0.5779721", "0.5691972", "0.56658256...
0.78208745
0
getDevice() Gets the BLE device in a certain position of the list.
public BluetoothDevice getDevice(int position) { return mLeDevices.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BluetoothDevice getDevice() {\n return this.device;\n }", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "Reference getDevice();", "private void getDevice(){\n\t\tdialog.setContentView(R.layout.device_list_popup);\n\t\tdialog.setCancelable(true);\n\t\tdialog.setTitle(\...
[ "0.6781333", "0.6417652", "0.6047073", "0.59640455", "0.594304", "0.59027755", "0.5803254", "0.5773414", "0.5744429", "0.5706667", "0.5698411", "0.56657284", "0.56039673", "0.5602398", "0.5527032", "0.5526952", "0.5518466", "0.5487921", "0.54742604", "0.54562676", "0.5444161"...
0.7507915
0
clear() Deletes list of currently stored/discovered BLE devices.
public void clear() { mLeDevices.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearDeviceLists()\n {\n deviceList.clear();\n deviceMap.clear();\n adapter.notifyDataSetChanged();\n }", "public void clear() throws DeviceException;", "public void clearList() {\n\t\tdeletedList.clear();\n\t}", "private void ClearAllDevices()\n thro...
[ "0.7348402", "0.68868154", "0.6437972", "0.64258647", "0.6316403", "0.62479985", "0.61308324", "0.6117028", "0.6102412", "0.60902137", "0.60697496", "0.60697496", "0.6002385", "0.5979318", "0.5978517", "0.59738624", "0.5937664", "0.592896", "0.5916177", "0.5916177", "0.589360...
0.73864394
0
getCount() Gets the number of BLE devices currently stored/discovered.
@Override public int getCount() { return mLeDevices.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "public int getConnectedDeviceCount() {\n return g...
[ "0.73727864", "0.7297142", "0.68500066", "0.671036", "0.66720295", "0.66102874", "0.6597705", "0.6591106", "0.6591106", "0.6591106", "0.6528641", "0.6523431", "0.6485742", "0.6485742", "0.6450309", "0.64316946", "0.6431485", "0.6431123", "0.64288324", "0.64160717", "0.6415085...
0.0
-1
getItem() Gets the BLE device in a certain position of the list.
@Override public Object getItem(int i) { return mLeDevices.get(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BluetoothDevice getDevice(int position) {\n return mLeDevices.get(position);\n }", "@Override\n public FoundDevice getItem(int index)\n {\n if (index <= getCount()) //IndexOutOfBoundsException fix\n return this.foundDevices.get(index);\n return this.foun...
[ "0.74189496", "0.69744766", "0.6729907", "0.6546897", "0.6454148", "0.63716006", "0.6359186", "0.633661", "0.633661", "0.633661", "0.63090664", "0.63003707", "0.63003707", "0.63003707", "0.63003707", "0.6298392", "0.6297386", "0.62681127", "0.62681127", "0.62681127", "0.62432...
0.71505046
1
getItemId() Returns the row identifier of the BLE device at a certain position. Not really needed, but it still has to be overridden or can't instantiate class.
@Override public long getItemId(int i) { return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract long getItemId(int position);", "@Override\n\tpublic long getItemId(int position) {\n\t\tLog.d(\"jereh\",\"getItemId()\");\n\t\treturn position;\n\t}", "public int getArmorId() {\r\n\t\treturn super.getItemId();\r\n\t}", "public String getItemIdentifier();", "@Override\n\t\tpublic long getI...
[ "0.63469", "0.6345881", "0.63056433", "0.62343264", "0.60782593", "0.6054061", "0.60401636", "0.6032895", "0.59902513", "0.58971596", "0.58967763", "0.5890823", "0.5881594", "0.5877996", "0.5856131", "0.5856131", "0.5856131", "0.5856131", "0.5856131", "0.5856131", "0.5856131"...
0.0
-1
getView() Gets a view that displays the data of a BLE device in list. This is used by the listview to determine how to display each BLE device in list.
@Override public View getView(int i, View view, ViewGroup viewGroup) { ViewHolder viewHolder; /** * Inflate a new view using a layout file or reuse the view * if it exists. */ if (view == null) { view = mInflater.inflate(R.layout.listitem_device, null); viewHolder = new ViewHolder(); viewHolder.deviceAddress = view.findViewById(R.id.device_address); viewHolder.deviceName = view.findViewById(R.id.device_name); view.setTag(viewHolder); } else { viewHolder = (ViewHolder) view.getTag(); } /** * Fill out the data/fields of the new BLE device view so that * the listview can display it. */ BluetoothDevice device = mLeDevices.get(i); final String deviceName = device.getName(); if ( (deviceName != null) && (deviceName.length() > 0) ) viewHolder.deviceName.setText(deviceName); else viewHolder.deviceName.setText(R.string.unknown_device); viewHolder.deviceAddress.setText(device.getAddress()); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n ViewHolder viewHolder;\n TextView deviceNameTextView;\n TextView deviceAddressTextView;\n\n // Creates a new row view.\n if (convertView == null) {\n ...
[ "0.7254368", "0.7038538", "0.6893566", "0.6748677", "0.65309286", "0.64626867", "0.634267", "0.6276336", "0.626966", "0.6169234", "0.6168316", "0.61630106", "0.615207", "0.60644287", "0.5932024", "0.5928652", "0.5908388", "0.5892943", "0.5841207", "0.58289033", "0.5793579", ...
0.7324199
0
onLeScan() Is called when a BLE device is found during a scan. It then stores the BLE device into the list and notifies any views that are displaying the list of BLE devices to update themselves. This is run specifically on the UI (main) thread.
@Override public void onLeScan(final BluetoothDevice device, int rssi, byte[] scanRecord) { runOnUiThread(new Runnable() { @Override public void run() { mLeDeviceListAdapter.addDevice(device); mLeDeviceListAdapter.notifyDataSetChanged(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scanLeDevice(boolean enabled) {\n\n if (enabled) {\n\n Log.v(TAG, \"SCANNING START\");\n\n // Stops scanning after a pre-defined scan period.\n mHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n\n ...
[ "0.6961379", "0.6959302", "0.6800949", "0.65944755", "0.65204126", "0.6463773", "0.64356774", "0.6305814", "0.6230638", "0.6175732", "0.6168606", "0.6159338", "0.6126505", "0.61052763", "0.6072574", "0.60628045", "0.6038388", "0.602569", "0.6025392", "0.59756935", "0.5907715"...
0.79242754
0
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. //GENBEGIN:initComponents
private void initComponents() { mainPanel = new javax.swing.JPanel(); invalidID = new javax.swing.JLabel(); authenticateButton = new javax.swing.JButton(); logServiceButton = new javax.swing.JButton(); memberNumberField = new javax.swing.JFormattedTextField(); menuBar = new javax.swing.JMenuBar(); javax.swing.JMenu fileMenu = new javax.swing.JMenu(); autenticateMenuItem = new javax.swing.JMenuItem(); javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem(); listMenu = new javax.swing.JMenu(); memberMenuItem = new javax.swing.JMenuItem(); providerMenuItem = new javax.swing.JMenuItem(); servicesMenuItem = new javax.swing.JMenuItem(); reportMenu = new javax.swing.JMenu(); providerReportMenuItem = new javax.swing.JMenuItem(); memberReportMenuItem = new javax.swing.JMenuItem(); accountsPayabelMenuItem = new javax.swing.JMenuItem(); addMenu = new javax.swing.JMenu(); addMemberMenuItem = new javax.swing.JMenuItem(); providerAddMenuItem = new javax.swing.JMenuItem(); serviceAddMenuItem = new javax.swing.JMenuItem(); jMenu1 = new javax.swing.JMenu(); jMenuItem1 = new javax.swing.JMenuItem(); jMenuItem2 = new javax.swing.JMenuItem(); mainPanel.setName("mainPanel"); // NOI18N org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(pdx.edu.cs300_group9.DesktopApplication2.class).getContext().getResourceMap(HomeScreen.class); invalidID.setFont(resourceMap.getFont("invalidID.font")); // NOI18N invalidID.setForeground(resourceMap.getColor("invalidID.foreground")); // NOI18N invalidID.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); invalidID.setText("Invalid ID"); // NOI18N invalidID.setName("invalidID"); // NOI18N javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(pdx.edu.cs300_group9.DesktopApplication2.class).getContext().getActionMap(HomeScreen.class, this); authenticateButton.setAction(actionMap.get("authenticateMember")); // NOI18N authenticateButton.setText(resourceMap.getString("authenticateButton.text")); // NOI18N authenticateButton.setName("authenticateButton"); // NOI18N logServiceButton.setAction(actionMap.get("openLogServiceForm")); // NOI18N logServiceButton.setText(resourceMap.getString("logServiceButton.text")); // NOI18N logServiceButton.setName("logServiceButton"); // NOI18N memberNumberField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("000000000")))); memberNumberField.setName("memberNumberField"); // NOI18N memberNumberField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { memberNumberFieldFocusGained(evt); } }); javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel); mainPanel.setLayout(mainPanelLayout); mainPanelLayout.setHorizontalGroup( mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(mainPanelLayout.createSequentialGroup() .addGap(30, 30, 30) .addComponent(authenticateButton) .addGap(84, 84, 84) .addComponent(logServiceButton) .addContainerGap(40, Short.MAX_VALUE)) .addGroup(mainPanelLayout.createSequentialGroup() .addGap(135, 135, 135) .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(invalidID, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE) .addComponent(memberNumberField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)) .addGap(137, 137, 137)) ); mainPanelLayout.setVerticalGroup( mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(mainPanelLayout.createSequentialGroup() .addGap(57, 57, 57) .addComponent(invalidID) .addGap(51, 51, 51) .addComponent(memberNumberField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(33, 33, 33) .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(authenticateButton) .addComponent(logServiceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(107, Short.MAX_VALUE)) ); menuBar.setName("menuBar"); // NOI18N fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N fileMenu.setName("fileMenu"); // NOI18N autenticateMenuItem.setText(resourceMap.getString("autenticateMenuItem.text")); // NOI18N autenticateMenuItem.setName("autenticateMenuItem"); // NOI18N fileMenu.add(autenticateMenuItem); exitMenuItem.setAction(actionMap.get("quit")); // NOI18N exitMenuItem.setName("exitMenuItem"); // NOI18N fileMenu.add(exitMenuItem); menuBar.add(fileMenu); listMenu.setAction(actionMap.get("openProviderList")); // NOI18N listMenu.setText(resourceMap.getString("listMenu.text")); // NOI18N listMenu.setName("listMenu"); // NOI18N memberMenuItem.setAction(actionMap.get("openMemberList")); // NOI18N memberMenuItem.setText(resourceMap.getString("memberMenuItem.text")); // NOI18N memberMenuItem.setName("memberMenuItem"); // NOI18N listMenu.add(memberMenuItem); providerMenuItem.setAction(actionMap.get("openProviderList")); // NOI18N providerMenuItem.setText(resourceMap.getString("providerMenuItem.text")); // NOI18N providerMenuItem.setName("providerMenuItem"); // NOI18N listMenu.add(providerMenuItem); servicesMenuItem.setAction(actionMap.get("openServicesList")); // NOI18N servicesMenuItem.setText(resourceMap.getString("servicesMenuItem.text")); // NOI18N servicesMenuItem.setName("servicesMenuItem"); // NOI18N listMenu.add(servicesMenuItem); menuBar.add(listMenu); reportMenu.setAction(actionMap.get("openProviderReport")); // NOI18N reportMenu.setText(resourceMap.getString("reportMenu.text")); // NOI18N reportMenu.setName("reportMenu"); // NOI18N providerReportMenuItem.setAction(actionMap.get("openMemberReport")); // NOI18N providerReportMenuItem.setText(resourceMap.getString("providerReportMenuItem.text")); // NOI18N providerReportMenuItem.setName("providerReportMenuItem"); // NOI18N reportMenu.add(providerReportMenuItem); memberReportMenuItem.setAction(actionMap.get("openProviderReport")); // NOI18N memberReportMenuItem.setText(resourceMap.getString("memberReportMenuItem.text")); // NOI18N memberReportMenuItem.setName("memberReportMenuItem"); // NOI18N reportMenu.add(memberReportMenuItem); accountsPayabelMenuItem.setAction(actionMap.get("openAccountsPayableReport")); // NOI18N accountsPayabelMenuItem.setText(resourceMap.getString("accountsPayabelMenuItem.text")); // NOI18N accountsPayabelMenuItem.setName("accountsPayabelMenuItem"); // NOI18N reportMenu.add(accountsPayabelMenuItem); menuBar.add(reportMenu); addMenu.setText(resourceMap.getString("addMenu.text")); // NOI18N addMenu.setName("addMenu"); // NOI18N addMemberMenuItem.setAction(actionMap.get("addNewMember")); // NOI18N addMemberMenuItem.setText(resourceMap.getString("addMemberMenuItem.text")); // NOI18N addMemberMenuItem.setName("addMemberMenuItem"); // NOI18N addMenu.add(addMemberMenuItem); providerAddMenuItem.setAction(actionMap.get("addNewProvider")); // NOI18N providerAddMenuItem.setText(resourceMap.getString("providerAddMenuItem.text")); // NOI18N providerAddMenuItem.setName("providerAddMenuItem"); // NOI18N addMenu.add(providerAddMenuItem); serviceAddMenuItem.setAction(actionMap.get("addNewService")); // NOI18N serviceAddMenuItem.setText(resourceMap.getString("serviceAddMenuItem.text")); // NOI18N serviceAddMenuItem.setName("serviceAddMenuItem"); // NOI18N addMenu.add(serviceAddMenuItem); menuBar.add(addMenu); jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N jMenu1.setName("jMenu1"); // NOI18N jMenuItem1.setText(resourceMap.getString("jMenuItem1.text")); // NOI18N jMenuItem1.setName("jMenuItem1"); // NOI18N jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); jMenu1.add(jMenuItem1); jMenuItem2.setText(resourceMap.getString("jMenuItem2.text")); // NOI18N jMenuItem2.setName("jMenuItem2"); // NOI18N jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2ActionPerformed(evt); } }); jMenu1.add(jMenuItem2); menuBar.add(jMenu1); setComponent(mainPanel); setMenuBar(menuBar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public Form() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public GUIForm() { \...
[ "0.7393088", "0.7393088", "0.7393088", "0.7352474", "0.7332488", "0.73308676", "0.7295957", "0.7267518", "0.72273046", "0.72161627", "0.7160379", "0.71560824", "0.7151832", "0.71421707", "0.7137452", "0.7133948", "0.7120324", "0.7120062", "0.71157074", "0.71115243", "0.708932...
0.0
-1
Constructs a new SystemRequest object
public SystemRequest() { super(FunctionID.SYSTEM_REQUEST.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SystemCommandRequest()\r\n\t{\r\n\t}", "public SystemRequest(@NonNull RequestType requestType){\r\n\t\tthis();\r\n\t\tsetRequestType(requestType);\r\n\t}", "protected TTL_SystemRequest( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( int...
[ "0.78489995", "0.7447661", "0.6974646", "0.68935007", "0.67058575", "0.65581864", "0.6270547", "0.61202866", "0.6100547", "0.6092867", "0.6053701", "0.6050713", "0.6022015", "0.59901303", "0.59760725", "0.5947325", "0.5947325", "0.59083414", "0.59024996", "0.58928186", "0.589...
0.80174124
0
Constructs a new SystemRequest object
public SystemRequest(@NonNull RequestType requestType){ this(); setRequestType(requestType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SystemRequest() {\r\n super(FunctionID.SYSTEM_REQUEST.toString());\r\n }", "public SystemCommandRequest()\r\n\t{\r\n\t}", "protected TTL_SystemRequest( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }", ...
[ "0.8017414", "0.7849006", "0.6974743", "0.6893484", "0.67057943", "0.6558226", "0.62704206", "0.6120144", "0.6100418", "0.6092807", "0.60535425", "0.6050456", "0.60220116", "0.5990303", "0.5976", "0.594721", "0.594721", "0.59085107", "0.5902353", "0.58927083", "0.58900625", ...
0.74474216
2
TODO: product search. Retrieve parameters from the request
@Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String productSetDisplayName = request.getParameter("productSetDisplayName"); String productCategory = request.getParameter("productCategory"); String businessId = request.getParameter("businessId"); String sortOrder = request.getParameter("sortOrder"); String searchId = request.getParameter("searchId"); // Set parameters to apprpriate defaults, if necessary. if (businessId.equals("getFromDatabase")) { businessId = userService.getCurrentUser().getUserId(); } if (productCategory.equals("none")) { productCategory = null; } String productSetId = null; ProductSetEntity productSet = null; if (!productSetDisplayName.equals("none")) { // true indicates we are searching with the displayname instead of the id. productSet = ServletLibrary.retrieveProductSetInfo(datastore, productSetDisplayName, true); } if (productSet != null) { productSetId = productSet.getProductSetId(); } // Search database based on the filters. List<ProductEntity> products = ServletLibrary.findProducts(datastore, businessId, productSetId, productCategory, sortOrder); if (searchId != null) { SearchInfo searchInfo = ServletLibrary.retrieveSearchInfo(datastore, searchId); if (searchInfo.getGcsUrl() != null) { String generalProductSetId = "cloudberryAllProducts"; List <String> productSearchIds = ProductSearchLibrary.getSimilarProductsGcs(generalProductSetId, searchInfo.getProductCategory(), changeGcsFormat(searchInfo.getGcsUrl())); List<ProductEntity> imageSearchProducts = new ArrayList<>(); productSearchIds.forEach(productId->imageSearchProducts.add(ServletLibrary.retrieveProductInfo(datastore, productId))); Set<ProductEntity> uniqueProducts = new HashSet<>(products); List<ProductEntity> productsDisplayed = new ArrayList<>(); for (ProductEntity product : imageSearchProducts) { if (uniqueProducts.contains(product)) productsDisplayed.add(product); } products = productsDisplayed; } // Text query if it is specified, will take in this list and output a new // list that satisfies the query. if (searchInfo.getTextSearch() != null) { products = TextSearchLibrary.textSearch(datastore, products, searchInfo.getTextSearch()); } } // Send the response. String json = gson.toJson(products); response.setContentType("application/json;"); response.getWriter().println(json); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);", "@GetMapping(\"/search\")\r\n\tpublic ProductDetails searchProduct(@Valid @RequestBody SearchProduct request) {\r\n\treturn productUtil.toProductDetails(productService.searchProduct(request.getProduct_Id()));\r\n\r\n\t}", "priv...
[ "0.7365978", "0.69386226", "0.68732494", "0.67592883", "0.6693551", "0.65924835", "0.6581359", "0.65482265", "0.6439543", "0.64175344", "0.6325172", "0.61956877", "0.61723256", "0.61062366", "0.60893923", "0.6077688", "0.6059704", "0.6039757", "0.6031402", "0.6004761", "0.599...
0.6606201
5
/ I VALIDANDO A DATA PARA GERAR CONFORME CONFIGURADO
@Override public BoletoLocal onGerarBoleto(Contrato contrato, ConfiguracoesBoleto config) { int diaVencimento = contrato.getDiaVencimento(); Calendar dataHj = Calendar.getInstance(); //SE O DIA DO VENCIMENTO DO BOLETO FOR MENOR OU IGUAL // A DATA DE HJ GERA NORMAL, SE NÃO ELE GERA PRO PROXIMO MES if (dataHj.get(Calendar.DAY_OF_MONTH) <= diaVencimento) { } else { dataHj.add(Calendar.MONTH, 1); } dataHj.set(Calendar.DAY_OF_MONTH, diaVencimento); Calendar dataMaxima = Calendar.getInstance(); dataMaxima.add(Calendar.DAY_OF_MONTH, 20); //SE A DATA FOR MAIOS QUE O MÁXIMO CONFIGURADO NÃO GERA NADA. if (dataHj.after(dataMaxima)) { System.out.println("data depois de 20 dias"); return null; } /* * INFORMANDO DADOS SOBRE O CEDENTE. */ Cedente cedente = new Cedente(config.getBanco().getNomeBeneficiado(), config.getDocBeneficiado()); /* * INFORMANDO DADOS SOBRE O SACADO. */ Sacado sacado = new Sacado(contrato.getLocatario().getNome(), contrato.getLocatario().getDocumento()); // Informando o endereço do sacado. org.jrimum.domkee.comum.pessoa.endereco.Endereco enderecoSac = new org.jrimum.domkee.comum.pessoa.endereco.Endereco(); enderecoSac.setUF(UnidadeFederativa.valueOfSigla(contrato.getLocatario().getEndereco().getCodUf())); enderecoSac.setLocalidade(contrato.getLocatario().getEndereco().getCidade()); enderecoSac.setCep(new CEP(contrato.getLocatario().getEndereco().getDesCep())); enderecoSac.setBairro(contrato.getLocatario().getEndereco().getDesBairro()); enderecoSac.setLogradouro(contrato.getLocatario().getEndereco().getDesLogradouro()); enderecoSac.setNumero(contrato.getLocatario().getEndereco().getDesNumero()); sacado.addEndereco(enderecoSac); /* * INFORMANDO OS DADOS SOBRE O TÍTULO. */ // Informando dados sobre a conta bancária do título. ContaBancaria contaBancaria = null; if (config.getBanco().getBanco() == BancosEnum.ITAU) { contaBancaria = new ContaBancaria(BancosSuportados.BANCO_ITAU.create()); } if (contaBancaria == null) { System.out.println("Conta bancária não cadastrada"); return null; } contaBancaria.setNumeroDaConta(new NumeroDaConta(Integer.parseInt(config.getBanco().getContaNumero()), config.getBanco().getContaDigito())); contaBancaria.setCarteira(new Carteira(Integer.parseInt(config.getCarteira()))); contaBancaria.setAgencia(new Agencia(Integer.parseInt(config.getBanco().getAgenciaNumero()), config.getBanco().getAgenciaDigito())); Titulo titulo = new Titulo(contaBancaria, sacado, cedente); titulo.setNumeroDoDocumento(config.getNumeroDocumento()); titulo.setNossoNumero(config.getNossoNumero()); titulo.setDigitoDoNossoNumero(config.getNossoNumeroDigito()); titulo.setValor(contrato.getValor()); titulo.setDataDoDocumento(new Date()); titulo.setDataDoVencimento(dataHj.getTime()); titulo.setTipoDeDocumento(TipoDeTitulo.DM_DUPLICATA_MERCANTIL); titulo.setAceite(Aceite.A); // titulo.setDesconto(BigDecimal.ZERO); // titulo.setDeducao(BigDecimal.ZERO); // titulo.setMora(BigDecimal.ZERO); // titulo.setAcrecimo(BigDecimal.ZERO); // titulo.setValorCobrado(BigDecimal.ZERO); /* * INFORMANDO OS DADOS SOBRE O BOLETO. */ Boleto boletoBank = new Boleto(titulo); boletoBank.setLocalPagamento(config.getLocalPagamento()); boletoBank.setInstrucaoAoSacado(config.getInstrucaoSacado()); boletoBank.setInstrucao1(config.getInstrucao1()); boletoBank.setInstrucao2(config.getInstrucao2()); boletoBank.setInstrucao3(config.getInstrucao3()); boletoBank.setInstrucao4(config.getInstrucao4()); boletoBank.setInstrucao5(config.getInstrucao5()); boletoBank.setInstrucao6(config.getInstrucao6()); boletoBank.setInstrucao7(config.getInstrucao7()); boletoBank.setInstrucao8(config.getInstrucao8()); /* * GERANDO O BOLETO BANCÁRIO. */ // Instanciando um objeto "BoletoViewer", classe responsável pela // geração do boleto bancário. BoletoViewer boletoViewer = new BoletoViewer(boletoBank); // Alterado para pegar o path do sistema automático , gerando dentro // do projeto. // Gerando o arquivo. No caso o arquivo mencionado será salvo na mesma // pasta do projeto. Outros exemplos: // WINDOWS: boletoViewer.getAsPDF("C:/Temp/MeuBoleto.pdf"); // LINUX: boletoViewer.getAsPDF("/home/temp/MeuBoleto.pdf"); String pasta = "/boletos"; String caminhoCompletoPasta = FacesUtil.getExternalContext().getRealPath(pasta) + "/"; BoletoLocal boletoLocal = new BoletoLocal(); contrato.getBoletos().add(boletoLocal); boletoLocal.setContrato(contrato); String nomeArquivoPDF = contrato.getLocatario().getNome().replace(" ", "_") + boletoLocal.getMes() + boletoLocal.getAno() + ".pdf"; System.out.println(caminhoCompletoPasta + nomeArquivoPDF); File arquivoPdf = boletoViewer.getPdfAsFile(caminhoCompletoPasta + nomeArquivoPDF); boletoLocal.setPath(pasta + nomeArquivoPDF); super.save(boletoLocal); return boletoLocal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validateData() {\n }", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\...
[ "0.68449074", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668273", "0.668...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_summary, container, false); _listView = (ListView)view.findViewById(R.id.listview_summary_items); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Log.d("IndianCook", "Trying to fetch the resource:" + ingredientId); ResourceHelper.getMultiTypedArray(context, "INGREDIENT" + ingredientId);
public static List<String> getResourceList(Context context, String ingredientId){ String[] ingredientList = null; int ingredientIdentifier = context.getResources().getIdentifier(ingredientId, "array", context.getPackageName()); try { if(ingredientIdentifier != 0) { ingredientList = context.getResources().getStringArray(ingredientIdentifier); return Arrays.asList(ingredientList); } }catch(Exception e){ } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }", "static ArrayList<Integer> getAllQuestionIDs(Context context){\n JsonReader reader;\n ArrayList<Integer> questionIDs = new ArrayList<>();\n try {\n reader = readJSONFromAsset(context);\n ...
[ "0.5962604", "0.5610028", "0.5603138", "0.5489454", "0.5437543", "0.5380076", "0.5375898", "0.5342237", "0.53230995", "0.53224635", "0.5321373", "0.520684", "0.5186625", "0.5157896", "0.5157113", "0.5152906", "0.5141998", "0.51374364", "0.51344186", "0.5130382", "0.5107276", ...
0.62634486
0
Hamburger has been clicked
@Override public void onMenuClick() { Toast.makeText(activity.getApplicationContext(), "Menu click", Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmenu.toggle();\r\n\t\t\t}", "public void Hamburger(View view){\n\n //Ensure no other views can interrupt process by removing their clickability.\n disableViewClickability();\n //Delete any unsaved stories\n deleteDirectories...
[ "0.69663167", "0.67052716", "0.66975117", "0.6663209", "0.660075", "0.64676017", "0.6426729", "0.632196", "0.62475634", "0.62239426", "0.62060034", "0.6175692", "0.6146204", "0.61420316", "0.6135598", "0.6123818", "0.6123818", "0.6123818", "0.61029035", "0.60952705", "0.60582...
0.5945154
31
Use this to tint the screen
@Override public void onSearchOpened() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Color tint(Color c, int tint) {\n int r = c.getRed();\n int g = c.getGreen();\n int b = c.getBlue();\n\n float ftint = tint / 100.0f;\n\n int red = Math.round(ftint * r + (1 - ftint) * 255);\n int green = Math.round(ftint * g + (1 - ftint) * 255);\n i...
[ "0.6406422", "0.6319866", "0.63056576", "0.59268653", "0.5852944", "0.5837024", "0.5795906", "0.57547814", "0.57449174", "0.5711775", "0.56918514", "0.5686563", "0.5650206", "0.5578327", "0.55367976", "0.551003", "0.54405916", "0.5434471", "0.54176086", "0.5380061", "0.535587...
0.0
-1
Use this to untint the screen
@Override public void onSearchClosed() { closeSearch(toolbar, searchbox, activity); ((AppCompatActivity) activity).getSupportActionBar().setTitle(currentTitle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearScreen();", "@Override\n\tpublic void undo() {\n\t\tlight.off();\n\t}", "void invalidatePalette();", "public void unpin();", "public void unpin();", "public final void mo39711K() {\n setBackgroundColor(0);\n }", "private void unhighlightText(Text text){\r\n\t text.change...
[ "0.6398453", "0.6265642", "0.6141453", "0.6083833", "0.6083833", "0.60425854", "0.5958872", "0.59543777", "0.5929043", "0.59253514", "0.5884636", "0.5873052", "0.5862601", "0.58510184", "0.58063257", "0.5783555", "0.5762082", "0.57351285", "0.5734678", "0.56975955", "0.568349...
0.0
-1
React to the search term changing Called after it has updated results
@Override public void onSearchTermChanged(String term) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSearchTermChanged() {\n }", "public void onSearchSubmit(String queryTerm);", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void onSearchResults(String term, List<WikiPage> results);", "public void doSearch(String query)\n \t{\...
[ "0.8175736", "0.7421237", "0.70245934", "0.67986923", "0.67511094", "0.6709418", "0.6687315", "0.66470164", "0.6623134", "0.6583686", "0.6559645", "0.6549335", "0.65361255", "0.6510306", "0.6489286", "0.64867127", "0.64731526", "0.64697826", "0.64535457", "0.6446251", "0.6436...
0.8106845
1
React to result being clicked
@Override public void onResultClick(SearchResult result) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View v) {\n\t\t\t\t\tinvokeResults();\r\n\t\t\t\t}", "public void mouseClicked(MouseEvent e)\n {\n displaySelectedQuestion();\n }", "@Override\n public void onResultClick(SearchResult result) {\n Log.v(\"SearchBox\", \"onResultClick\" + result);\n ...
[ "0.7054796", "0.6517036", "0.6455904", "0.64306116", "0.6403676", "0.6304678", "0.6285362", "0.62406456", "0.62195784", "0.62074", "0.61737776", "0.61652595", "0.616", "0.61584586", "0.61584586", "0.61312383", "0.61312383", "0.61312383", "0.61312383", "0.61312383", "0.6131238...
0.77072847
0
Server Socket Channel Master Thread Group(default 2coreSize)
public static void startServer() throws InterruptedException { EventLoopGroup bossGroup = new NioEventLoopGroup(); // Accept Channel Worker Thread Group NioEventLoopGroup workerGroup = new NioEventLoopGroup(); // Set I/O percentage workerGroup.setIoRatio(50); try { ServerBootstrap bootstrap = new ServerBootstrap(); // Set Time Loop Object, BossGroup for Accept Event, WorkerGroup for Connected I/O bootstrap.group(bossGroup, workerGroup); // for Create new Connect and create serverSocketChannel Factory bootstrap.channel(NioServerSocketChannel.class); // pre Add inboundHandler for Accept channel pipeline bootstrap.childHandler(new ChannelInitializer<SocketChannel>() { @Override public void initChannel(SocketChannel channel) { System.err.println("******** GBT BOSS Server Start **********"); channel.config().setAutoRead(true); // explain http request message handler channel.pipeline().addLast(new HttpRequestDecoder()); // encode response into http response message sending channel.pipeline().addLast(new HttpResponseEncoder()); // custom define Http handler channel.pipeline().addLast(new GbtBossHttpServerHandler()); } }).option(ChannelOption.SO_BACKLOG, 128) // 流控 .childOption(ChannelOption.SO_KEEPALIVE, true) ; // bind method will created serverChannel, and register current channel to EventLoop ChannelFuture future = bootstrap.bind(serverPort).sync(); System.err.println("******** GBT BOSS Server run ********"); // block util close serverChannel future.channel().closeFuture().sync(); } finally { workerGroup.shutdownGracefully(); bossGroup.shutdownGracefully(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "@Override\n\tpublic int getMaxTh...
[ "0.6366452", "0.62619007", "0.60843295", "0.5919986", "0.5869389", "0.58458936", "0.5833799", "0.5811346", "0.5806029", "0.58016586", "0.5789954", "0.576205", "0.5758556", "0.569678", "0.5685009", "0.56767815", "0.5675431", "0.5664842", "0.56565225", "0.5643853", "0.56397754"...
0.5402674
44
Created by Noah on 28/04/2018.
public interface ApiCategoria { @GET("4A/webresources/categorias") Call<List<Categoria>> getCategorias(); @GET("4A/webresources/categorias/{id}") Call<List<Produto>> getProdutos(@Path("id") int id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Ov...
[ "0.59819424", "0.5833777", "0.5710553", "0.5611143", "0.55857944", "0.5571062", "0.5566933", "0.5502608", "0.5502608", "0.54791266", "0.54558736", "0.54522073", "0.54438823", "0.5443709", "0.5434928", "0.5434928", "0.5434928", "0.5434928", "0.5434928", "0.5434928", "0.5430491...
0.0
-1
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 Salesmen)) { return false; } Salesmen other = (Salesmen) object; if ((this.scode == null && other.scode != null) || (this.scode != null && !this.scode.equals(other.scode))) { 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
constructor method for Recursive Object
public RecursiveArray(int[] arr){ //creates initial array and use it to substantiate array size this.arr = arr; this.arraySize = arr.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FractalTree() {\r\n }", "public RBTree() {\r\n\t\t// well its supposed just create a new Red Black Tree\r\n\t\t// Maybe create a new one that does a array of Objects\r\n\t}", "public Hierarchy() {\n }", "public HIRTree(){\r\n\t\t\r\n\t}", "public SNode(object obj)\r\n {\r\n\t\r\n\toop=obj;\r\n }", "...
[ "0.67259264", "0.67172956", "0.65483826", "0.6370549", "0.62905085", "0.62707067", "0.6208305", "0.6147757", "0.6142296", "0.61128443", "0.61036205", "0.6103418", "0.60862905", "0.6085276", "0.6075653", "0.60696286", "0.60361975", "0.60343766", "0.6025933", "0.6015269", "0.60...
0.0
-1
getset methods for array & array size
public void setArr(int[] arr){ this.arr = arr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\n\n int[] myArray = new int[5];\n\n Array.set(myArray,0,100); // another way as shown above --> myArray[0] = 100;\n Array.set(myArray,1,81);\n Array.set(myArray,2,64);\n Array.set(myArray,3,49);\n Array.set(myArray,4, 36);\n\n/...
[ "0.63339704", "0.6314668", "0.6205544", "0.61152387", "0.6110967", "0.61049396", "0.6099544", "0.6099544", "0.6043198", "0.5958803", "0.5928032", "0.59272134", "0.5867287", "0.58640766", "0.5827886", "0.5813274", "0.5798825", "0.5776517", "0.57349324", "0.5731364", "0.5715195...
0.6358378
0
returns a String to the final toString method of the array values
public String getArrayValues(){ String tempString = ""; for(int y = 0; y < this.arraySize; y++){ tempString += " "+this.arr[y]+" "; } return tempString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }", "@Override\n public String toString() {\n ...
[ "0.8498504", "0.8366792", "0.8223534", "0.8219548", "0.8139529", "0.8119327", "0.8033673", "0.79928356", "0.7985853", "0.7907464", "0.78921145", "0.7859651", "0.7725036", "0.769884", "0.7677418", "0.7656429", "0.76260865", "0.76214784", "0.7610797", "0.759599", "0.7556001", ...
0.80295014
7
Construct an old language from XML. Intended for test use only.
OldLanguage(Element oldLanguageElement) throws JDOMException, SAXException { this.oldLangFile = null; parseOldLanguage(oldLanguageElement, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readOldLanguage(boolean descriptionOnly) throws IOException {\n\n\t\tInputStream is = null;\n\t\ttry {\n\t\t\tis = new BufferedInputStream(oldLangFile.getInputStream());\n\t\t\tSAXBuilder sax = XmlUtilities.createSecureSAXBuilder(false, false);\n\t\t\tDocument document = sax.build(is);\n\t\t\tElement ...
[ "0.5848931", "0.5835552", "0.5788582", "0.5778109", "0.5644734", "0.5620994", "0.56181556", "0.54912436", "0.541851", "0.5412128", "0.53659576", "0.53409106", "0.5323223", "0.5312714", "0.53002644", "0.52544206", "0.52373946", "0.52188367", "0.52052224", "0.5174747", "0.51579...
0.6695248
0
If instantiated from a file, this method must be invoked prior to the factory handing out this instance. This will complete the parsing of the old language file and the initialization of this instance.
void validate() throws JDOMException, SAXException, IOException { if (oldLangFile != null && addressFactory == null || registerMgr == null) { readOldLanguage(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Language makeLanguage(File file, boolean isAdditional) throws IllegalAccessException, InstantiationException {\n Objects.requireNonNull(file, \"file cannot be null\");\n if (!file.getName().endsWith(\".xml\")) {\n throw new RuleFilenameException(file);\n }\n String[] parts = file.ge...
[ "0.64302725", "0.62243944", "0.61835474", "0.6155021", "0.6083762", "0.6076336", "0.6057963", "0.60174793", "0.59199274", "0.5901326", "0.5899437", "0.5879046", "0.587242", "0.5852487", "0.58391935", "0.5825224", "0.58072174", "0.5770658", "0.572907", "0.5693374", "0.5642118"...
0.53721553
58
Returns language description associated with this old language.
LanguageDescription getDescription() { return langDescription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLanguage();", "java.lang.String getLanguage();", "public String getDescription(String lang) {\n/* 188 */ return getLangAlt(lang, \"description\");\n/* */ }", "public Object language() {\n return this.language;\n }", "public java.lang.String getLanguage() {\n r...
[ "0.69388354", "0.69388354", "0.6895546", "0.6830015", "0.680402", "0.680402", "0.6767341", "0.67657727", "0.6759768", "0.6759768", "0.6759768", "0.6744562", "0.67396116", "0.67286026", "0.671889", "0.67127734", "0.67127734", "0.66840506", "0.6683952", "0.6680453", "0.66624975...
0.7670583
0
Old Language File Parsing Code
private void readOldLanguage(boolean descriptionOnly) throws IOException { InputStream is = null; try { is = new BufferedInputStream(oldLangFile.getInputStream()); SAXBuilder sax = XmlUtilities.createSecureSAXBuilder(false, false); Document document = sax.build(is); Element root = document.getRootElement(); parseOldLanguage(root, descriptionOnly); } catch (SAXNotRecognizedException e) { throw new IOException("Failed to parse old language: " + oldLangFile, e); } catch (JDOMException e) { throw new IOException("Failed to parse old language: " + oldLangFile, e); } catch (SAXException e) { throw new IOException("Failed to parse old language: " + oldLangFile, e); } finally { if (is != null) { try { is.close(); } catch (IOException e1) { } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tparseFile(\"english_file.txt\");\r\n\t\t\t\t}", "private static Language makeLanguage(File file, boolean isAdditional) throws IllegalAccessException, InstantiationException {\n Objects.requireNonNull(file, \"file cannot be null\");\n if (!file.getName().e...
[ "0.64357656", "0.59850544", "0.5967592", "0.59539986", "0.59042424", "0.58425796", "0.5816584", "0.5767338", "0.576285", "0.575669", "0.57438517", "0.5727478", "0.5715825", "0.56996816", "0.5692679", "0.568093", "0.5669242", "0.56595594", "0.5636542", "0.56320655", "0.5602488...
0.6314601
1
If this old language corresponds to a legacy language which was tied to a specific compiler specification, a suitable ID will be returned.
public CompilerSpecID getOldCompilerSpecID() { Collection<CompilerSpecDescription> compatibleCompilerSpecDescriptions = langDescription.getCompatibleCompilerSpecDescriptions(); if (!compatibleCompilerSpecDescriptions.isEmpty()) { return compatibleCompilerSpecDescriptions.iterator().next().getCompilerSpecID(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLegacyId();", "String getLangId();", "long getCodeId();", "long getCodeId();", "long getCodeId();", "io.dstore.values.IntegerValue getValueLanguageId();", "java.lang.String getLegacyCommentId();", "public String getLegacyId() {\n return (String)getAttributeInternal(LEGACYID...
[ "0.62998605", "0.59123594", "0.5704538", "0.5704538", "0.5704538", "0.5442769", "0.5398954", "0.5371951", "0.53402025", "0.5312946", "0.5304615", "0.52857584", "0.5231453", "0.5218652", "0.52071184", "0.5193352", "0.51829916", "0.5174559", "0.5172819", "0.5142424", "0.5132921...
0.760831
0
Constructor private to stop getting initiated...
private SingletonObject() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Rekenhulp()\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n protected void init() {\n }", "private void init() {\n\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n...
[ "0.7577312", "0.75221443", "0.741211", "0.73980856", "0.7395417", "0.7379113", "0.7379113", "0.7379113", "0.7379113", "0.7373663", "0.73445463", "0.73428786", "0.73173857", "0.73018336", "0.72895926", "0.7276902", "0.7275674", "0.7268394", "0.7266525", "0.72593594", "0.725923...
0.0
-1
Interface for rain entity, extended from the generic CRUD interface.
public interface RainService extends CrudService<Rain> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ReminderRepository {\n public void add(ReminderEntity reminderEntity);\n public void update(ReminderEntity reminderEntity);\n public ReminderEntity remove(Integer id);\n public ReminderEntity find(Integer id);\n public List<ReminderEntity> findAll();\n}", "public interface CRUDPro...
[ "0.6296268", "0.62593776", "0.6204944", "0.62038183", "0.61885977", "0.6161733", "0.6117098", "0.6071692", "0.6071076", "0.6068359", "0.6044204", "0.6004728", "0.59972614", "0.596791", "0.5934269", "0.58863413", "0.5881305", "0.58782893", "0.58773607", "0.5876829", "0.5867942...
0.6740341
0
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 TaskDTO)) { return false; } TaskDTO other = (TaskDTO) object; if ((this.taskID == null && other.taskID != null) || (this.taskID != null && !this.taskID.equals(other.taskID))) { 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.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
build paging sqlserver sql
@Override public String getLimitSql(String sql, int offset, int limit) { StringBuffer stringBuffer = new StringBuffer("SELECT * FROM (SELECT TOP " + limit + " * FROM ( SELECT TOP " + (offset + limit) + " * FROM ("); stringBuffer.append(sql).append(") ORDER BY ID ASC ) ORDER BY ID DESC) ORDER BY ID ASC"); return stringBuffer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String paging(String sql) {\n\t\treturn null;\r\n\t}", "public Result sqlQueryByPage(String sql,Page page,Object... params);", "abstract protected String buildSQL(BatchSQLEnum sql);", "@Override\n\tpublic String paginationSqlWrap(String originalSql, int currentPage, int pageSize) {\n\t\...
[ "0.64810246", "0.639604", "0.61236286", "0.60497177", "0.5767124", "0.5678574", "0.5596694", "0.55920553", "0.5571495", "0.5514379", "0.55069923", "0.54973453", "0.54679394", "0.5463498", "0.54603976", "0.54438996", "0.5435556", "0.5435037", "0.5434511", "0.5430051", "0.54228...
0.6166322
2
Creates new form DoctorCreatePerscriptionView
public DoctorCreatePerscriptionView() { initComponents(); DoctorCreatePerscriptionAppointmentSelector.setRenderer(createListRenderer()); //make appointment selector use custom renderer }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/newRecipeDoctor\")\r\n\tpublic ModelAndView newRecipeDoctor(@RequestParam Integer recipe_idr) {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"recipe_idr\", recipe_idr);\r\n\t\tmav.addObject(\"doctor\", new Doctor());\r\n\t\tmav.addObject(\"newFlag\", true);\r\n\t\tmav.setV...
[ "0.56641686", "0.5439792", "0.5414514", "0.54126984", "0.54026157", "0.53991574", "0.5361798", "0.53554404", "0.5338909", "0.5310024", "0.52939075", "0.5283635", "0.5265002", "0.5248048", "0.52419454", "0.5180541", "0.5175727", "0.51661503", "0.5153258", "0.51331633", "0.5119...
0.61185896
0
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() { DoctorCreatePerscriptionHeaderLabel = new javax.swing.JLabel(); DoctorCreatePersciptionSubmitButton = new javax.swing.JButton(); DoctorCreatePerscriptionBackButton = new javax.swing.JButton(); DoctorCreatePerscriptionPatientSelector = new javax.swing.JComboBox<>(); DoctorCreatePerscriptionMedicineSelector = new javax.swing.JComboBox<>(); DoctorCreatePerscriptionPatienLabel = new javax.swing.JLabel(); DoctorCreatePerscrioptionMedicineLabel = new javax.swing.JLabel(); DoctorCreatePerscriptionAppointmentSelector = new javax.swing.JComboBox<>(); DoctorCreatePerscriptionAppointmentLabel = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); DoctorCreatePerscriptionDosageTextEntry = new javax.swing.JTextArea(); DoctorCreatePerscriptionDosageLabel = new javax.swing.JLabel(); DoctorCreatePerscriptionQuantitySelector = new javax.swing.JSpinner(); DoctorCreatePerscriptionHeaderLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); DoctorCreatePerscriptionHeaderLabel.setText("Create A Perscription"); DoctorCreatePersciptionSubmitButton.setText("Submit"); DoctorCreatePerscriptionBackButton.setText("Back"); DoctorCreatePerscriptionPatienLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); DoctorCreatePerscriptionPatienLabel.setText("Patient:"); DoctorCreatePerscrioptionMedicineLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); DoctorCreatePerscrioptionMedicineLabel.setText("Medicine:"); DoctorCreatePerscriptionAppointmentLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); DoctorCreatePerscriptionAppointmentLabel.setText("Attach appointment Notes:"); DoctorCreatePerscriptionDosageTextEntry.setColumns(20); DoctorCreatePerscriptionDosageTextEntry.setRows(5); jScrollPane1.setViewportView(DoctorCreatePerscriptionDosageTextEntry); DoctorCreatePerscriptionDosageLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); DoctorCreatePerscriptionDosageLabel.setText("Dosage:"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(DoctorCreatePerscriptionHeaderLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(DoctorCreatePerscriptionBackButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(DoctorCreatePersciptionSubmitButton)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(DoctorCreatePerscriptionMedicineSelector, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DoctorCreatePerscriptionQuantitySelector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 198, Short.MAX_VALUE)) .addComponent(DoctorCreatePerscriptionDosageLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING)) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(DoctorCreatePerscriptionAppointmentSelector, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(DoctorCreatePerscrioptionMedicineLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(DoctorCreatePerscriptionAppointmentLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(DoctorCreatePerscriptionPatientSelector, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(DoctorCreatePerscriptionPatienLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(DoctorCreatePerscriptionHeaderLabel) .addGap(32, 32, 32) .addComponent(DoctorCreatePerscriptionPatienLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DoctorCreatePerscriptionPatientSelector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DoctorCreatePerscrioptionMedicineLabel) .addGap(1, 1, 1) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(DoctorCreatePerscriptionMedicineSelector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(DoctorCreatePerscriptionQuantitySelector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DoctorCreatePerscriptionAppointmentLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(DoctorCreatePerscriptionAppointmentSelector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DoctorCreatePerscriptionDosageLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(DoctorCreatePersciptionSubmitButton) .addComponent(DoctorCreatePerscriptionBackButton)) .addContainerGap()) ); }
{ "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.73199165", "0.7291065", "0.7291065", "0.7291065", "0.72868747", "0.72488254", "0.7214099", "0.7209363", "0.7196111", "0.7190702", "0.7184576", "0.71590984", "0.71483636", "0.7093415", "0.70814407", "0.70579475", "0.69872457", "0.69773155", "0.6955104", "0.69544697", "0.694...
0.0
-1
getters required to create a new perscription
public Patient getSelectedPatient(){ return (Patient)DoctorCreatePerscriptionPatientSelector.getSelectedItem(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PrescriptionDetailCreator() {\n detail=new PrescriptionDetail();\n\n }", "@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}", "CreationData creationData();", "Compuesta createCompuesta();", "public void create(Person p) {\n\t\t\n\t}", "public void addPrescription(Prescript...
[ "0.6812672", "0.61976564", "0.6194918", "0.6076652", "0.6041426", "0.5944847", "0.5872402", "0.5871249", "0.58482486", "0.58457357", "0.5829259", "0.58243746", "0.5799007", "0.5798147", "0.57828116", "0.5781924", "0.57774246", "0.5773808", "0.57544035", "0.57462794", "0.57427...
0.0
-1
custom cell renderer just shows appointment date for appointment list box
private static ListCellRenderer<? super Appointment> createListRenderer() { return new DefaultListCellRenderer() { private Color background = new Color(0, 100, 255, 15); private Color defaultBackground = (Color) UIManager.get("List.background"); public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { Component c = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); if (c instanceof JLabel) { JLabel label = (JLabel) c; Appointment app = (Appointment) value; if(app != null){ label.setText(String.format("%s",app.getAppointmentDate().toString())); } if (!isSelected) { label.setBackground(index % 2 == 0 ? background : defaultBackground); } } return c; } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalDate getViewDate();", "@Override\n public View getItem(int index, View cachedView, ViewGroup parent) {\n\t\t\tint day = index;\n\t\t\t\n\t\t\tLog.e(TAG, \"index = \" + index + \" ,day = \" + day);\n\t\t\t\n Calendar newCalendar = (Calendar) calendar.clone();\n newCalendar...
[ "0.5652274", "0.56496924", "0.56437206", "0.56334764", "0.5619071", "0.56127745", "0.5611886", "0.5559978", "0.555884", "0.55288655", "0.55210435", "0.5503698", "0.5492985", "0.5428589", "0.5422633", "0.5390556", "0.5376602", "0.5370111", "0.53594786", "0.5354356", "0.5353367...
0.7340594
0
calculate Sum of firdt n natural number
public static int calculateSum(int n) { int sum =0 ; for(int i = 3;i <= n; i++ ) { if(i%3 == 0 || i%5 == 0) { sum += i; } } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}", "public static void SumOfNaturalNumbers(int num)\n {\n\n int sum = 0;\n for (int i=1; i<=num; i++){\n sum = sum + i;\n System.out.println(i);\n }\n System.out.println(\"The ...
[ "0.7197904", "0.71453846", "0.7143375", "0.70902187", "0.7017569", "0.68589246", "0.68125784", "0.68012226", "0.6737795", "0.6737385", "0.66974765", "0.66784865", "0.66290253", "0.6618926", "0.6608186", "0.6607417", "0.65808725", "0.655825", "0.6551753", "0.6531005", "0.64906...
0.68842113
5
TODO Autogenerated method stub
@Override public void onReceive(Context context, Intent intent) { if(intent.getAction().equals(Intent.ACTION_MEDIA_BAD_REMOVAL) || intent.getAction().equals(Intent.ACTION_MEDIA_REMOVED) || intent.getAction().equals(Intent.ACTION_MEDIA_UNMOUNTED)) { mDLManager.stopAllDownload(); } else if(intent.getAction().equals(Intent.ACTION_MEDIA_MOUNTED)) { if(!ToolsUtil.checkSDcard()) { return; } mDLManager.addTask(null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by gerardo8 on 19/05/16.
public interface CTicketStatusDao extends InterfaceDao<CTicketStatus> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n...
[ "0.59358317", "0.58582824", "0.5747641", "0.57404053", "0.57221067", "0.5712571", "0.5712571", "0.57099944", "0.5674543", "0.56716007", "0.5635163", "0.56312925", "0.5629704", "0.56207776", "0.56069255", "0.5592417", "0.5585733", "0.5584161", "0.5582094", "0.5580997", "0.5575...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel3 = new javax.swing.JPanel(); id_usuario = new javax.swing.JTextField(); jPanel4 = new javax.swing.JPanel(); jLabel7 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); cbxMarca1 = new javax.swing.JComboBox<>(); jLabel11 = new javax.swing.JLabel(); cbxMedida1 = new javax.swing.JComboBox<>(); jLabel15 = new javax.swing.JLabel(); txtDescripcion1 = new javax.swing.JTextField(); jLabel16 = new javax.swing.JLabel(); cbxTipos1 = new javax.swing.JComboBox<>(); btnAgregarTipo1 = new javax.swing.JButton(); btnAgregarMedida1 = new javax.swing.JButton(); btnAgreMarca1 = new javax.swing.JButton(); jLabel17 = new javax.swing.JLabel(); txtPeso1 = new javax.swing.JTextField(); btnAgreEnvase1 = new javax.swing.JButton(); jLabel18 = new javax.swing.JLabel(); cbxEnvase1 = new javax.swing.JComboBox<>(); codigo = new javax.swing.JTextField(); jLabel19 = new javax.swing.JLabel(); producto = new javax.swing.JTextField(); jLabel22 = new javax.swing.JLabel(); txtcantMinima = new javax.swing.JTextField(); jLabel20 = new javax.swing.JLabel(); cbxIva = new javax.swing.JComboBox<>(); editarPrecio = new javax.swing.JButton(); jLabel12 = new javax.swing.JLabel(); txtUnidades = new javax.swing.JTextField(); cbxReceta = new javax.swing.JComboBox<>(); jLabel4 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); codigo2 = new javax.swing.JTextField(); cbcucategoria = new javax.swing.JComboBox<>(); jLabel1 = new javax.swing.JLabel(); btnagregacategoria = new javax.swing.JButton(); txtFechaActual1 = new javax.swing.JTextField(); jLabel14 = new javax.swing.JLabel(); btnModificar = new javax.swing.JButton(); jLabel21 = new javax.swing.JLabel(); lblEliminar = new javax.swing.JLabel(); lblGuardar = new javax.swing.JLabel(); lblImprimir = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jLabel23 = new javax.swing.JLabel(); lblCerrar = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setUndecorated(true); jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50), 2)); jPanel3.setOpaque(false); id_usuario.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N id_usuario.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); id_usuario.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { id_usuarioActionPerformed(evt); } }); jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50), 2)); jPanel4.setOpaque(false); jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel7.setForeground(new java.awt.Color(0, 27, 134)); jLabel7.setText("PRODUCTO:"); jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel9.setForeground(new java.awt.Color(0, 27, 134)); jLabel9.setText("MARCA/LABORATORIO:"); cbxMarca1.setEditable(true); cbxMarca1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N cbxMarca1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbxMarca1ActionPerformed(evt); } }); jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel11.setForeground(new java.awt.Color(0, 27, 134)); jLabel11.setText("UNIDAD DE MEDIDA:"); cbxMedida1.setEditable(true); cbxMedida1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N cbxMedida1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbxMedida1ActionPerformed(evt); } }); jLabel15.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel15.setForeground(new java.awt.Color(0, 27, 134)); jLabel15.setText("DESCRIPCION:"); txtDescripcion1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N txtDescripcion1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); txtDescripcion1.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { txtDescripcion1FocusLost(evt); } }); jLabel16.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel16.setForeground(new java.awt.Color(0, 27, 134)); jLabel16.setText("TIPO:"); cbxTipos1.setEditable(true); cbxTipos1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N cbxTipos1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); cbxTipos1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbxTipos1ActionPerformed(evt); } }); btnAgregarTipo1.setBackground(new java.awt.Color(0, 27, 134)); btnAgregarTipo1.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N btnAgregarTipo1.setForeground(new java.awt.Color(255, 255, 255)); btnAgregarTipo1.setText("AGREGAR"); btnAgregarTipo1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnAgregarTipo1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAgregarTipo1ActionPerformed(evt); } }); btnAgregarMedida1.setBackground(new java.awt.Color(0, 27, 134)); btnAgregarMedida1.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N btnAgregarMedida1.setForeground(new java.awt.Color(255, 255, 255)); btnAgregarMedida1.setText("AGREGAR"); btnAgregarMedida1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnAgregarMedida1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAgregarMedida1ActionPerformed(evt); } }); btnAgreMarca1.setBackground(new java.awt.Color(0, 27, 134)); btnAgreMarca1.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N btnAgreMarca1.setForeground(new java.awt.Color(255, 255, 255)); btnAgreMarca1.setText("AGREGAR"); btnAgreMarca1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnAgreMarca1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAgreMarca1ActionPerformed(evt); } }); jLabel17.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel17.setForeground(new java.awt.Color(0, 27, 134)); jLabel17.setText("PESO:"); txtPeso1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N txtPeso1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); txtPeso1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtPeso1ActionPerformed(evt); } }); btnAgreEnvase1.setBackground(new java.awt.Color(0, 27, 134)); btnAgreEnvase1.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N btnAgreEnvase1.setForeground(new java.awt.Color(255, 255, 255)); btnAgreEnvase1.setText("AGREGAR"); btnAgreEnvase1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnAgreEnvase1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAgreEnvase1ActionPerformed(evt); } }); jLabel18.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel18.setForeground(new java.awt.Color(0, 27, 134)); jLabel18.setText("PRESENTACION:"); cbxEnvase1.setEditable(true); cbxEnvase1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N cbxEnvase1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbxEnvase1ActionPerformed(evt); } }); codigo.setEditable(false); codigo.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N codigo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); codigo.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { codigoFocusLost(evt); } }); jLabel19.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel19.setForeground(new java.awt.Color(0, 27, 134)); jLabel19.setText("CODIGO:"); producto.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N producto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); producto.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { productoFocusLost(evt); } }); jLabel22.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel22.setForeground(new java.awt.Color(0, 27, 134)); jLabel22.setText("CANT. MINIMA STOCK:"); txtcantMinima.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N txtcantMinima.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); txtcantMinima.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtcantMinimaActionPerformed(evt); } }); jLabel20.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel20.setForeground(new java.awt.Color(0, 27, 134)); jLabel20.setText("IVA:"); cbxIva.setEditable(true); cbxIva.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N cbxIva.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "NO", "SI" })); cbxIva.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbxIvaActionPerformed(evt); } }); editarPrecio.setBackground(new java.awt.Color(0, 27, 134)); editarPrecio.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N editarPrecio.setForeground(new java.awt.Color(255, 255, 255)); editarPrecio.setText("EDITAR PRECIOS"); editarPrecio.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); editarPrecio.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { editarPrecioActionPerformed(evt); } }); jLabel12.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel12.setForeground(new java.awt.Color(0, 27, 134)); jLabel12.setText("UNIDADES:"); txtUnidades.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N txtUnidades.setText("0"); txtUnidades.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); txtUnidades.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtUnidadesActionPerformed(evt); } }); txtUnidades.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { txtUnidadesKeyReleased(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { txtUnidadesKeyTyped(evt); } }); cbxReceta.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "SIN RECETA ", "CON RECETA" })); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel4.setForeground(new java.awt.Color(0, 27, 134)); jLabel4.setText("CODIGO DE BARRAS:"); jButton1.setBackground(new java.awt.Color(0, 27, 134)); jButton1.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N jButton1.setForeground(new java.awt.Color(255, 255, 255)); jButton1.setText("MODIFICAR"); jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); codigo2.setEditable(false); codigo2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N codigo2.setHorizontalAlignment(javax.swing.JTextField.CENTER); codigo2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); cbcucategoria.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N cbcucategoria.setEnabled(false); cbcucategoria.setRequestFocusEnabled(false); cbcucategoria.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbcucategoriaActionPerformed(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setForeground(new java.awt.Color(0, 27, 134)); jLabel1.setText("CATEGORIA:"); btnagregacategoria.setBackground(new java.awt.Color(0, 27, 134)); btnagregacategoria.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N btnagregacategoria.setForeground(new java.awt.Color(255, 255, 255)); btnagregacategoria.setText("AGREGAR"); btnagregacategoria.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnagregacategoria.setEnabled(false); btnagregacategoria.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnagregacategoriaActionPerformed(evt); } }); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jLabel17) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtPeso1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel12) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtUnidades, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27) .addComponent(cbxReceta, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel19) .addComponent(jLabel16) .addComponent(jLabel18) .addComponent(jLabel9) .addComponent(jLabel22) .addComponent(jLabel11) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cbxEnvase1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(cbxMarca1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(cbxMedida1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(cbcucategoria, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(cbxTipos1, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 12, Short.MAX_VALUE))) .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnagregacategoria, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgregarMedida1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgregarTipo1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgreEnvase1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgreMarca1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel20) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(cbxIva, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(txtcantMinima, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(editarPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jLabel4) .addGap(30, 30, 30) .addComponent(codigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel7) .addComponent(jLabel15)) .addGap(68, 68, 68) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtDescripcion1, javax.swing.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE) .addComponent(producto)))) .addGap(32, 32, 32)))) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(7, 7, 7) .addComponent(jLabel4)) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(codigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cbxIva, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(producto, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtDescripcion1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(cbcucategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnagregacategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cbxMedida1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgregarMedida1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(cbxTipos1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgregarTipo1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(cbxEnvase1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgreEnvase1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cbxMarca1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAgreMarca1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtcantMinima, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(editarPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtPeso1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtUnidades, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cbxReceta, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18)) ); txtFechaActual1.setEditable(false); txtFechaActual1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N txtFechaActual1.setHorizontalAlignment(javax.swing.JTextField.CENTER); txtFechaActual1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50))); jLabel14.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel14.setForeground(new java.awt.Color(0, 27, 134)); jLabel14.setText("FECHA:"); btnModificar.setBackground(new java.awt.Color(0, 27, 134)); btnModificar.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N btnModificar.setForeground(new java.awt.Color(255, 255, 255)); btnModificar.setText("MODIFICAR"); btnModificar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnModificar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnModificarActionPerformed(evt); } }); jLabel21.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel21.setForeground(new java.awt.Color(0, 27, 134)); jLabel21.setText("USUARIO:"); lblEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/iconos/eliminar.png"))); // NOI18N lblEliminar.setText("ELIMINAR"); lblEliminar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); lblEliminar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lblEliminarMouseClicked(evt); } }); lblGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/iconos/guardar.png"))); // NOI18N lblGuardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); lblGuardar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lblGuardarMouseClicked(evt); } }); lblImprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/iconos/imprimir.png"))); // NOI18N lblImprimir.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); lblImprimir.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lblImprimirMouseClicked(evt); } }); jPanel1.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(50, 99, 50))); jPanel1.setOpaque(false); jLabel23.setBackground(new java.awt.Color(0, 153, 153)); jLabel23.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N jLabel23.setForeground(new java.awt.Color(0, 27, 134)); jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel23.setText("PRODUCTO"); jLabel23.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { jLabel23MouseDragged(evt); } }); jLabel23.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { jLabel23MousePressed(evt); } }); lblCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/iconos/cerrar.png"))); // NOI18N lblCerrar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); lblCerrar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lblCerrarMouseClicked(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(251, 251, 251) .addComponent(jLabel23) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lblCerrar) .addGap(44, 44, 44)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(lblCerrar) .addContainerGap()) ); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel21) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(id_usuario) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel14) .addGap(6, 6, 6) .addComponent(txtFechaActual1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(btnModificar, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(14, 14, 14)) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(126, 126, 126) .addComponent(lblImprimir) .addGap(100, 100, 100) .addComponent(lblGuardar) .addGap(88, 88, 88) .addComponent(lblEliminar)) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(24, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtFechaActual1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnModificar, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(id_usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblGuardar) .addComponent(lblImprimir) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(11, 11, 11) .addComponent(lblEliminar)))) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); 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
This method was generated by MyBatis Generator. This method returns the value of the database column img_file.id_
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageId(){\n \t\treturn imageId;\n \t}", "public int getImage_id() {\n\t\treturn image_id;\n\t}", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "public Long getImgId() {\r\n return imgId;\r\n }", "public int getImageId() {\n return imageId_;\n }", "pu...
[ "0.7283041", "0.70932233", "0.7049425", "0.7039885", "0.6954392", "0.6917763", "0.69160813", "0.68848836", "0.6876956", "0.68716043", "0.6864304", "0.6859063", "0.6849942", "0.67211646", "0.669625", "0.65676546", "0.6445313", "0.6443392", "0.64020663", "0.6344095", "0.6294181...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column img_file.id_
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImage(int imageId) {\n this.imageId=imageId;\n\t}", "public void setImgId(Long imgId) {\r\n this.imgId = imgId;\r\n }", "public Builder setImageId(int value) {\n \n imageId_ = value;\n onChanged();\n return this;\n }", "public void writeImage(File file, Str...
[ "0.7263595", "0.6965856", "0.6786899", "0.6659733", "0.6614466", "0.6565365", "0.6548574", "0.65382576", "0.65294576", "0.65280133", "0.6501405", "0.64756", "0.6380272", "0.63359386", "0.6273309", "0.62107974", "0.62047875", "0.61908925", "0.6190135", "0.6183221", "0.61626303...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column img_file.url_
public String getUrl() { return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AutoEscape\n\tpublic String getFileUrl();", "public String getImageUrl();", "public String getImageURL() \r\n\t{\r\n\t\t\r\n\t\treturn imageURL;\r\n\t\t\r\n\t}", "public String getImageURL()\n\t{\n\t\treturn imageURL;\n\t}", "public String getImgurl() {\n return imgurl;\n }", "public String ge...
[ "0.64488727", "0.64402175", "0.643256", "0.638948", "0.6386574", "0.63617414", "0.6348038", "0.63262033", "0.63262033", "0.63262033", "0.63262033", "0.63262033", "0.62941706", "0.6291777", "0.6289371", "0.6233821", "0.6232752", "0.6227558", "0.6162849", "0.6136058", "0.609328...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column img_file.url_
public void setUrl(String url) { this.url = url == null ? null : url.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setImageFromURL(String imageURL);", "public void setImgUrl(String imgUrl) {\r\n this.imgUrl = imgUrl;\r\n }", "public static void setImg(nsIDOMElement img, String fileImageName) {\r\n img.setAttribute(HTML.ATTR_SRC, \"file://\" //$NON-NLS-1$\r\n + getAbsoluteResourcePath(...
[ "0.66366374", "0.646219", "0.6310651", "0.6306701", "0.62036186", "0.6167397", "0.6140038", "0.612076", "0.60953754", "0.60953754", "0.60953754", "0.60953754", "0.6024732", "0.60239905", "0.6022963", "0.5973503", "0.5966061", "0.5935014", "0.5920433", "0.5882948", "0.5877819"...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column img_file.type_
public String getType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getImageType() {\n\t\treturn imageType;\n\t}", "ImageType getType();", "public String getFileType(){\n\t\treturn type;\n\t}", "public String getFiletype() {\n return filetype;\n }", "public Integer getFileType() {\n return fileType;\n }", "public java.lang.Stri...
[ "0.710266", "0.6951786", "0.6948729", "0.68233925", "0.67433643", "0.6623432", "0.6617874", "0.66080856", "0.65909934", "0.65871024", "0.65703464", "0.6567652", "0.65637845", "0.6472902", "0.6471645", "0.6410193", "0.63562477", "0.632887", "0.63215435", "0.62821716", "0.62386...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column img_file.type_
public void setType(String type) { this.type = type == null ? null : type.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPictureType ( int code )\n {\n pictureType = code;\n }", "public void setFileType(FileType typ) {\n fileType = typ;\n }", "public void setFileType(Integer fileType) {\n this.fileType = fileType;\n }", "@Override\n\tpublic int getImageType() {\n\t\treturn imageType;\n\...
[ "0.6647172", "0.65494376", "0.6412377", "0.6386953", "0.63365054", "0.63173676", "0.630322", "0.6194885", "0.6116713", "0.61116284", "0.6102823", "0.6034183", "0.60260695", "0.5988855", "0.59672195", "0.5929388", "0.5911536", "0.5907892", "0.58688474", "0.58471286", "0.584493...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column img_file.create_by_
public Long getCreateBy() { return createBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void createFile(FileModel file) {\n\t\tString sql = \"INSERT INTO file VALUES (?,?,?,?,?,?,now(),now())\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tfile.getFile_id(),\n\t\t\t\tfile.getFile_path(),\n\t\t\t\tfile.getFile_name(),\n\t\t\t\tfile.getFile_type(),\n\t\t\t\...
[ "0.6165412", "0.59875005", "0.5670736", "0.5593547", "0.5551016", "0.5539589", "0.55244267", "0.5512732", "0.55005974", "0.5485009", "0.5459756", "0.54405004", "0.54207236", "0.54141843", "0.53920645", "0.53887564", "0.53887564", "0.5381632", "0.5380186", "0.5379244", "0.5370...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column img_file.create_by_
public void setCreateBy(Long createBy) { this.createBy = createBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void createFile(FileModel file) {\n\t\tString sql = \"INSERT INTO file VALUES (?,?,?,?,?,?,now(),now())\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tfile.getFile_id(),\n\t\t\t\tfile.getFile_path(),\n\t\t\t\tfile.getFile_name(),\n\t\t\t\tfile.getFile_type(),\n\t\t\t\...
[ "0.63018167", "0.6032099", "0.60113895", "0.60111713", "0.5971417", "0.58074546", "0.5751636", "0.570293", "0.55538917", "0.54964334", "0.54417735", "0.53416187", "0.5328231", "0.5303852", "0.5288161", "0.52659947", "0.5253686", "0.52334994", "0.52141017", "0.5197778", "0.518...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column img_file.create_time_
public Date getCreateTime() { return createTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreatetime() {\n return createtime;\n }", "public Integer getCreateTime() {\r\n return createTime;\r\n }", "public int getCreatedTime() {\n return createdTime_;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getCreateTime() {\n return (java...
[ "0.64959407", "0.64264554", "0.64011616", "0.6366225", "0.6357104", "0.6337635", "0.6326224", "0.63072276", "0.6301422", "0.629484", "0.6290352", "0.6286898", "0.6278701", "0.62644947", "0.6254242", "0.6245446", "0.62361306", "0.62314796", "0.62314796", "0.6225061", "0.621908...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column img_file.create_time_
public void setCreateTime(Date createTime) { this.createTime = createTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void defineColumn_ExifTime() {\r\n\r\n\t\tfinal ColumnDefinition colDef = TableColumnFactory.PHOTO_FILE_TIME.createColumn(_columnManager, _pc);\r\n\t\tcolDef.setLabelProvider(new CellLabelProvider() {\r\n\t\t\t@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\r\n\r\n\t\t\t\tfinal Photo photo =...
[ "0.64645255", "0.6194109", "0.6125992", "0.604443", "0.5991351", "0.5928491", "0.5928491", "0.58773154", "0.5803008", "0.5799161", "0.57001245", "0.5692075", "0.56426305", "0.56426305", "0.56426305", "0.55728626", "0.5560106", "0.55517226", "0.5530661", "0.5530661", "0.553066...
0.0
-1
Creates new form update_profile
public update_profile(int loginid) { initComponents(); this.getContentPane().setBackground(new Color(98,182,170)); this.setSize(850, 500); this.setLocationRelativeTo(null); this.setResizable(false); t1.setText(""+loginid); t1.setEditable(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createEditProfileSession(Profile profile) {\n editor.putString(KEY_EMAIL, profile.getMail());\n editor.putString(KEY_NAME, profile.getName());\n editor.putString(KEY_NUMBER,profile.getMobile());\n editor.commit();\n }", "@RequestMapping(value = \"/profile\", method = Re...
[ "0.7051966", "0.6753572", "0.6736922", "0.6721773", "0.6698387", "0.66525304", "0.66132087", "0.65712047", "0.6553821", "0.6508918", "0.64753336", "0.64715964", "0.6456807", "0.6452538", "0.63132614", "0.62541074", "0.6236335", "0.6151082", "0.61059254", "0.61051923", "0.6105...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); t1 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); t3 = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); t4 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); t2 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { formComponentShown(evt); } }); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel1.setBackground(new java.awt.Color(255, 255, 255)); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel1.setText("Update Profile"); getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 120, 130, -1)); getContentPane().add(t1, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 180, 136, -1)); jLabel4.setBackground(new java.awt.Color(255, 255, 255)); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel4.setText("Password"); getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 220, 103, -1)); jLabel8.setBackground(new java.awt.Color(255, 255, 255)); jLabel8.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel8.setText("Email ID"); getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 260, 103, -1)); getContentPane().add(t3, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 260, 136, -1)); jLabel9.setBackground(new java.awt.Color(255, 255, 255)); jLabel9.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel9.setText("Contact Number"); getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 310, 156, -1)); getContentPane().add(t4, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 310, 136, -1)); jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/game_score_board/update_important.gif"))); // NOI18N getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 440, 500)); getContentPane().add(t2, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 220, 136, -1)); jButton1.setBackground(new java.awt.Color(255, 255, 255)); jButton1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jButton1.setText("Update"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 380, -1, -1)); jLabel2.setBackground(new java.awt.Color(255, 255, 255)); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel2.setText("LoginId"); getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 180, 103, -1)); jButton2.setBackground(new java.awt.Color(255, 255, 255)); jButton2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jButton2.setText("Back"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(640, 380, -1, -1)); 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
init style and user image
private void init(Context context, AttributeSet attrs) { actionBarHeight = UiUtil.calculateActionBarSize(getContext()); //load default and custom style. TypedArray a = context.getTheme().obtainStyledAttributes( attrs, R.styleable.BlurImageView, 0, 0); try { mRoundImagePosition = a.getInteger(R.styleable.BlurImageView_roundImagePosition, 0); mDefaultSrc = a.getResourceId(R.styleable.BlurImageView_defaultSrc, 0); mTopLeftPadding = a.getDimensionPixelSize(R.styleable.BlurImageView_topLeftPadding, 0); } finally { a.recycle(); } if(mDefaultSrc!=0) { mRoundBitmap = BitmapFactory.decodeResource(getResources(), mDefaultSrc); } this.post(new Runnable() { @Override public void run() { // TODO Auto-generated method stub setPath(null); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n homeScreen = HomeScreenController.getInstance();\n User u = homeScreen.getCurrentUser();\n CRUDUser...
[ "0.6753", "0.662864", "0.65806764", "0.65797305", "0.6562195", "0.65550184", "0.64836574", "0.6428752", "0.6387379", "0.6380906", "0.62636", "0.62472004", "0.6244261", "0.6215576", "0.6208634", "0.6200917", "0.61898935", "0.6168037", "0.61643", "0.6159511", "0.6150063", "0....
0.5714711
77
TODO Autogenerated method stub
@Override public void run() { setPath(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
draw round image after all children drawn
public void setTopLeftPadding(int roundImgPadding) { this.mTopLeftPadding = roundImgPadding; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawImages() {\n\t\t\r\n\t}", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_...
[ "0.73547024", "0.73283416", "0.7022804", "0.70059", "0.6995688", "0.69460016", "0.69005346", "0.6893166", "0.68790984", "0.6828961", "0.6770343", "0.6701741", "0.66351074", "0.66321224", "0.66101277", "0.66078347", "0.6582062", "0.6564434", "0.65219635", "0.64983773", "0.6493...
0.0
-1
This class will extract data from the ResultSet and create a data model.
public Object extractData(ResultSet resultSet) throws SQLException { GPERecordDataModel record = new GPERecordDataModel(); record.setIdentifier(resultSet.getString(1).trim()); record.setDescription(resultSet.getString(2).trim()); record.setAutomaticOrManualApply(resultSet.getString(3).trim()); record.setPropagateToAllUnits(resultSet.getString(4).trim()); return record; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic List<Boimpl> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\t\tdata = new ArrayList<Boimpl>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t// | id | name | address | city | sallary | job | DEPARTMENT\r\n\r\n\t\t\t\tBoimpl obj = new Boimpl();\r\n\t\t\t\tobj.setId(rs.get...
[ "0.712045", "0.674528", "0.63321835", "0.632518", "0.612646", "0.6123808", "0.61199045", "0.6091663", "0.6082361", "0.6019062", "0.5974436", "0.5963786", "0.59603304", "0.59566915", "0.5945648", "0.5913891", "0.5902273", "0.5890272", "0.5881929", "0.5846977", "0.5832672", "...
0.66756296
2
/ If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see
public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(formPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(formPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(formPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(formPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new formPrincipal().setVisible(true); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isNimbus()\n/* */ {\n/* 152 */ return UIManager.getLookAndFeel().getName().contains(\"Nimbus\");\n/* */ }", "static void customizeNimbus()\r\n\t\tthrows Exception\r\n\t{\n\t\tUIManager.put(\"control\", BACKGROUND);\r\n\r\n\t\t// TODO: imilne 04/SEP/2009 - No longer working since J...
[ "0.7881879", "0.7794961", "0.7757441", "0.735503", "0.73013985", "0.71136224", "0.7099988", "0.69733083", "0.6862968", "0.6854138", "0.6842349", "0.6819353", "0.67494243", "0.66554356", "0.6649475", "0.6642927", "0.65063095", "0.6503379", "0.64634335", "0.6438136", "0.6394170...
0.0
-1
Helper to remove a list of transparent nodes from the document
public static void clear(List<Element> elements) { for (Element e : elements) { if (e.getParentElement() != null) { if (NodeManager.getTransparency(e) == Skip.DEEP) { e.removeFromParent(); } else { DomHelper.unwrap(e); } } // Break circular references in browsers with poor gc NodeManager.setTransparentBackref(e, null); } elements.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeNodes(List<CyNode> nodes);", "void tryRemoveNodes(Collection<Node> nodesToRemove) throws Exception;", "public void removeTransNotInTree(){\n // Get the list of transparents which take part into the tree\n Vector transparents=values.getListTransparents();\n Vector<FiniteStates> varsToRemove ...
[ "0.6430516", "0.6064886", "0.5984351", "0.5939161", "0.59076554", "0.5837086", "0.5809165", "0.5771589", "0.5767416", "0.5732078", "0.56725925", "0.5658912", "0.56575626", "0.5611608", "0.55887324", "0.55427563", "0.5540016", "0.5536833", "0.5536348", "0.55130476", "0.5495537...
0.51557446
58
increment parent comments counter
@Transactional() public Comment create(User author, Post parent, String content) { parent.setComments(parent.getComments() + 1); postService.save(parent); // create comment post var commentPost = new Post(author, content); postService.save(commentPost); // save comment var comment = new Comment(commentPost, parent); return save(comment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int incCommentCount(Comment comment);", "public int getParentCounter(){\r\n\t\tint returning = parentCounter;\r\n\t\tparentCounter++;\r\n\t\treturn returning;\r\n\t}", "private void updateCommentCount() {\n mProceessComment = true;\n final DatabaseReference ref = FirebaseDatabase.getInstance().get...
[ "0.7071189", "0.6989243", "0.6703637", "0.6550792", "0.6492326", "0.64417946", "0.6339605", "0.6326309", "0.62160003", "0.62114006", "0.6159826", "0.60920286", "0.608456", "0.59445906", "0.5939872", "0.5928371", "0.5921304", "0.58910334", "0.58810985", "0.58346313", "0.582237...
0.56421256
37
POST /record25herfinancieerings : Create a new record25Herfinancieering.
@PostMapping("/record-25-herfinancieerings") @Timed public ResponseEntity<Record25Herfinancieering> createRecord25Herfinancieering(@RequestBody Record25Herfinancieering record25Herfinancieering) throws URISyntaxException { log.debug("REST request to save Record25Herfinancieering : {}", record25Herfinancieering); if (record25Herfinancieering.getId() != null) { throw new BadRequestAlertException("A new record25Herfinancieering cannot already have an ID", ENTITY_NAME, "idexists"); } Record25Herfinancieering result = record25HerfinancieeringRepository.save(record25Herfinancieering); return ResponseEntity.created(new URI("/api/record-25-herfinancieerings/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void create(Singer newRecord);", "public void create(Hashtable fieldValues) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tcreate(fieldValues,myData);\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatu...
[ "0.60085934", "0.53389627", "0.52810884", "0.5264857", "0.52124196", "0.5211062", "0.5136963", "0.51206875", "0.51186675", "0.51022154", "0.5101167", "0.5079284", "0.50208175", "0.501635", "0.5004028", "0.49967736", "0.49684983", "0.49428785", "0.48736545", "0.48696393", "0.4...
0.78742176
0
GET /record25herfinancieerings : get all the record25Herfinancieerings.
@GetMapping("/record-25-herfinancieerings") @Timed public List<Record25Herfinancieering> getAllRecord25Herfinancieerings() { log.debug("REST request to get all Record25Herfinancieerings"); return record25HerfinancieeringRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/record-25-herfinancieerings/{id}\")\n @Timed\n public ResponseEntity<Record25Herfinancieering> getRecord25Herfinancieering(@PathVariable Long id) {\n log.debug(\"REST request to get Record25Herfinancieering : {}\", id);\n Optional<Record25Herfinancieering> record25Herfinancieerin...
[ "0.6763835", "0.58922535", "0.58380055", "0.5771706", "0.57493246", "0.57427794", "0.57315993", "0.5711362", "0.5551683", "0.5454084", "0.5351963", "0.53272516", "0.5307566", "0.52151716", "0.52119696", "0.5173869", "0.51410466", "0.51294744", "0.51199615", "0.5117784", "0.51...
0.8725715
0
GET /record25herfinancieerings/:id : get the "id" record25Herfinancieering.
@GetMapping("/record-25-herfinancieerings/{id}") @Timed public ResponseEntity<Record25Herfinancieering> getRecord25Herfinancieering(@PathVariable Long id) { log.debug("REST request to get Record25Herfinancieering : {}", id); Optional<Record25Herfinancieering> record25Herfinancieering = record25HerfinancieeringRepository.findById(id); return ResponseUtil.wrapOrNotFound(record25Herfinancieering); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/record-25-herfinancieerings\")\n @Timed\n public List<Record25Herfinancieering> getAllRecord25Herfinancieerings() {\n log.debug(\"REST request to get all Record25Herfinancieerings\");\n return record25HerfinancieeringRepository.findAll();\n }", "@DeleteMapping(\"/record-25-h...
[ "0.695188", "0.6636818", "0.5646485", "0.5637642", "0.5591263", "0.55678225", "0.55286807", "0.5527299", "0.55164534", "0.5496983", "0.54598516", "0.54569125", "0.542918", "0.5418684", "0.5387993", "0.53854287", "0.5370523", "0.53623587", "0.5361907", "0.535853", "0.5358118",...
0.82772374
0
DELETE /record25herfinancieerings/:id : delete the "id" record25Herfinancieering.
@DeleteMapping("/record-25-herfinancieerings/{id}") @Timed public ResponseEntity<Void> deleteRecord25Herfinancieering(@PathVariable Long id) { log.debug("REST request to delete Record25Herfinancieering : {}", id); record25HerfinancieeringRepository.deleteById(id); return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DeleteMapping(\"/infact-record/{id}\")\n\tpublic ResponseEntity<?> delete(@PathVariable(\"id\") long id) {\n\t\tinfactRecordServiceImpl.delete(id);\n\t\treturn ResponseEntity.ok().body(\n\t\t\t\t\"infact-record has been deleted successfully.\");\n\t}", "public void deleteById(String id);", "public void delete...
[ "0.7214007", "0.7060712", "0.70228475", "0.70228475", "0.70228475", "0.70228475", "0.70228475", "0.7016912", "0.7016912", "0.7016912", "0.7016912", "0.7016912", "0.7016912", "0.7016912", "0.7016912", "0.7016912", "0.7016912", "0.70102483", "0.70102483", "0.69996196", "0.69995...
0.86306256
0
System.out.println("Param2::saveState clientid=" + getClientId(_context) + " id=" + getId() + " varname=" + varname);
@Override public Object saveState(FacesContext _context) { if (_values == null) { _values = new Object[6]; } _values[0] = super.saveState(_context); _values[1] = description; _values[2] = varname; _values[4] = param; _values[5] = simple; return _values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public java.lang.String getSpId(){\r\n ...
[ "0.59836584", "0.5883323", "0.58661366", "0.5679313", "0.54986835", "0.5475801", "0.5471031", "0.5462673", "0.5442325", "0.5409818", "0.5407612", "0.53584546", "0.5319024", "0.52890337", "0.5277052", "0.5241714", "0.5235026", "0.5228053", "0.5193826", "0.51774645", "0.515321"...
0.57384706
3
System.out.println("Param2::encodeBegin id=" + getClientId(ctx) + " " + getContainerClientId(ctx));
@Override public void encodeBegin(FacesContext ctx) throws IOException { if (param) { return; } ResponseWriter w = ctx.getResponseWriter(); String id = getClientId(ctx); if (!simple) { w.startElement(TR, this); w.startElement(TD, this); String vn = getVarname(); String d = vn; if (description != null) { d = description; } else { int ix = vn.lastIndexOf('.'); if (ix != -1) { d = vn.substring(ix + 1); if (d.equals("Enable") && ix > 1) { ix = vn.lastIndexOf('.', ix - 1); if (ix != -1) { d = vn.substring(ix + 1); d.replace('.', ' '); } if (d.startsWith("{i}.")) { d = d.substring(4); } } } } w.writeText(d, null); w.endElement(TD); w.startElement(TD, this); } w.startElement("input", this); Parameter dm = getDataModel(); String type = (dm != null) ? dm.getType() : "string"; if (fNew) { String value = getVariableValue(varname); if (value == null) { if (dm != null && dm.getDefaultValue() != null) { value = dm.getDefaultValue(); if (value.startsWith("\"") && value.endsWith("\"")) { value = value.substring(1, value.length() - 1); } if (value.equals("-") || value.equals("<Empty>")) { value = ""; } } else { value = ""; } } setValue(value); } if (type.equals("boolean")) { w.writeAttribute("type", "checkbox", null); Object value = getValue(); if (value != null && getValue().equals("1")) { w.writeAttribute("checked", "checked", null); } } else { w.writeAttribute("type", "text", null); w.writeAttribute("value", getValue(), "value"); w.writeAttribute("size", 50, "size"); } w.writeAttribute("name", id, "name"); w.endElement("input"); if ((type.equals(Type.INT.toString()) || type.equals(Type.UNSIGNEDINT.toString())) && dm != null) { if (dm.getMin() != Parameter.INFINITY_LOW || dm.getMax() != Parameter.INFINITY_HIGH) { w.writeText("[" + (dm.getMin() == Parameter.INFINITY_LOW ? "unbound" : dm.getMin()) + ".." + (dm.getMax() == Parameter.INFINITY_HIGH ? "unbound" : dm.getMax()) + "]", null); } } if (!simple) { w.endElement(TD); w.startElement(TD, this); } else { w.writeText(" ", null); } if (valid != Parameter.VALIDATION_OK) { if (dm == null) { dm = Parameter.lookup(varname); } if (dm != null) { switch (valid) { case Parameter.VALIDATION_BADDATE: case Parameter.VALIDATION_BADBOOLEAN: case Parameter.VALIDATION_BADINT: w.writeText("Value not valid for type " + type, null); break; case Parameter.VALIDATION_TOOBIG: w.writeText("Value exceeds maximum of " + dm.getMax(), null); break; case Parameter.VALIDATION_TOOSMALL: w.writeText("Value less than minimum of " + dm.getMin(), null); break; case Parameter.VALIDATION_TOOLONG: w.writeText("Value longer than " + dm.getMaxLength(), null); break; } } else { w.writeText("Can not validate", null); } } if (!simple) { w.endElement(TD); w.endElement(TR); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:55:06.831 -0500\", hash_original_method = \"E7A2FB4AC135D29D78CE09D5448C290F\", hash_generated_method = \"74B066602ECC20A74FD97E770D65E8BD\")\n \npublic String encodeBody() {\n return encodeBody(new StringBu...
[ "0.5632404", "0.5627586", "0.55500597", "0.53676814", "0.5364028", "0.53578347", "0.5349959", "0.53379613", "0.5268062", "0.5247613", "0.5247613", "0.5247613", "0.5247613", "0.52130365", "0.5183462", "0.5146769", "0.5142415", "0.51402843", "0.51256555", "0.5083702", "0.508093...
0.0
-1
onCreate metode der skaber klassen minetilladelser med rette layout, toolbar og style
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mine_tilladelser); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); toolbar.setTitleTextAppearance(this, R.style.TitleTextApperance); getSupportActionBar().setTitle("Consentcoin"); //Vises her at metoden også har en drawer-menu DrawerLayout drawer = findViewById(R.id.drawer_layout); NavigationView navigationView = findViewById(R.id.nav_view); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); drawer.addDrawerListener(toggle); toggle.syncState(); navigationView.setNavigationItemSelectedListener(this); FirebaseDatabase database = FirebaseDatabase.getInstance(); DatabaseReference myRef = database.getReference("Consents"); //Her instansieres vores childEventListener ChildEventListener childEventListener = new ChildEventListener() { //Denne metode sætter texten i vores textview som findes i mineTilladelser. //Metoden benytter sig af en listener "onChildAdded" som tager dataen fra vores firebase database og laver det til en string //Derefter tilføjes text til mineTilladelser via "textView.append" og linjen skiftes @Override public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) { String text = dataSnapshot.getValue().toString(); TextView textView = findViewById(R.id.Samtykker); textView.append(text + "\n"); } @Override public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) { } @Override public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) { } @Override public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) { } @Override public void onCancelled(@NonNull DatabaseError databaseError) { } }; myRef.addChildEventListener(childEventListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(getLayoutId());\n toolbar = (Toolbar)findViewById(R.id.toolbar);\n if ( toolbar != null ) {\n setSupportActionBar(toolbar);\n }\n }",...
[ "0.7702934", "0.739241", "0.7355756", "0.73464864", "0.7303159", "0.7266344", "0.7249151", "0.7248317", "0.7238191", "0.716513", "0.7099336", "0.7077385", "0.7075586", "0.7044336", "0.7044258", "0.7037439", "0.7010403", "0.7009544", "0.69994086", "0.6999098", "0.69885784", ...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7905683", "0.7805918", "0.7766949", "0.77280927", "0.76328415", "0.76229936", "0.7585238", "0.75312966", "0.7488599", "0.7458191", "0.7458191", "0.74387765", "0.74228644", "0.7403772", "0.7392029", "0.7387223", "0.73796284", "0.73707056", "0.7362735", "0.7356231", "0.73459...
0.0
-1
check if category exists
@Override public PostListDTO getPosts( Long categoryId, int pageNum, int pageSize ) { if( categoryId != null && categoryId > -1) validateCategoryId( categoryId ); //create a PageRequest PageRequest pageRequest = pageRequestBuilder.buildPageRequest( pageNum, pageSize, Sort.Direction.DESC,"created" ); //retrieve the posts Page<Post> page; if ( categoryId > -1 ) page = postRepository.findAllByCategory_IdAndParentNull( categoryId, pageRequest ); else page = postRepository.findAllByParentNullOrderByCreatedDesc( pageRequest ); List<PostDTO> postDTOS = new ArrayList<>(); page.forEach( post -> { PostDTO dto = buildReturnDto( post ); postDTOS.add( dto ); } ); return new PostListDTO( postDTOS, PageRequestBuilder.buildPageInfoResponse(page) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCategory();", "public boolean hasCategory(String category)\n\t{\n\t\treturn categories.contains(category);\n\t}", "public boolean containsCategory(String categoryName);", "public boolean exist(Long cid) {\n\t\treturn categoryDao.exist(cid);\n\t}", "public int checkCategoryExists(int id) throws S...
[ "0.82956386", "0.71467906", "0.7072348", "0.7059292", "0.6921974", "0.6921151", "0.67903996", "0.6754546", "0.667343", "0.6625112", "0.66200817", "0.661726", "0.6602661", "0.6564354", "0.65205634", "0.65006113", "0.6459723", "0.6428257", "0.63470066", "0.6333142", "0.63285094...
0.0
-1
check if user exists and category exists
@Override public PostListDTO getPostsForUser( Long userId, Long categoryId, int pageNum, int pageSize ) { validateUserId( userId ); if (categoryId != null && categoryId > -1) validateCategoryId( categoryId ); //create a PageRequest PageRequest pageRequest = pageRequestBuilder.buildPageRequest( pageNum, pageSize, Sort.Direction.DESC,"created" ); Page<Post> page; if ( categoryId > -1 ) page = postRepository.findAllByUser_IdAndCategory_IdAndParentNull( userId, categoryId, pageRequest ); else page = postRepository.findAllByUser_IdAndParentNull( userId, pageRequest ); List<PostDTO> postDTOS = new ArrayList<>(); page.forEach( post -> { PostDTO dto = buildReturnDto( post ); postDTOS.add( dto ); } ); return new PostListDTO( postDTOS, PageRequestBuilder.buildPageInfoResponse(page) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCategory();", "public boolean isUsersExist(Pet pet);", "public boolean existUser(String id);", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Datab...
[ "0.6662306", "0.61248684", "0.6020196", "0.6010313", "0.60075253", "0.59968936", "0.59968936", "0.59968936", "0.59968936", "0.59968936", "0.59968936", "0.59968936", "0.5893295", "0.5889273", "0.58253473", "0.58243847", "0.57873106", "0.5778057", "0.5763108", "0.5716557", "0.5...
0.0
-1
build a PostDTO object and construct the URLs that get returned in the PostDTO
private PostDTO buildReturnDto( Post post ) { PostDTO postDTO = postMapper.postToPostDto( post ); postDTO.setPostUrl( buildPostUrl( post ) ); postDTO.getUser().setAvatarUrl( avatarService.buildAvatarUrl( post.getUser() ) ); //if post is a child post, set the parentPostUrl if ( post.getParent() != null ) postDTO.setParentPostUrl( buildPostUrl( post.getParent() )); if ( post.getChildren() != null ) { for ( int i = 0; i < post.getChildren().size(); i++ ) { PostDTO childDTO = postDTO.getChildren().get( i ); Post child = post.getChildren().get( i ); childDTO.setPostUrl( buildPostUrl( post.getChildren().get( i ) ) ); childDTO.getUser().setAvatarUrl( avatarService.buildAvatarUrl( child.getUser() ) ); childDTO.setParentPostUrl( buildParentPostUrl( child ) ); } } return postDTO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Post toPost(PostDto postDto ) {\n\t\treturn new Post(employeeDao.readEmployeeById(postDto.getEmployeeId()), postDto.getBody(), LocalDateTime.now(), ticketDao.readTicket(postDto.getTicketId()));\n\t}", "@PostMapping(\"/posts\")\n ResponseEntity<?> createPost(@RequestBody Post post) {\n ...
[ "0.549578", "0.5423596", "0.54038227", "0.5325086", "0.5307239", "0.52755487", "0.5157665", "0.5155925", "0.51403314", "0.511331", "0.5104968", "0.50792617", "0.50749016", "0.5072627", "0.5042429", "0.502451", "0.5023705", "0.5023001", "0.4992414", "0.49875683", "0.49809453",...
0.6981691
0
TODO Autogenerated method stub
@Override public int evaluateSens(Robot robot) { return robot.getFuel(); }
{ "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
Pop 1 or 2 bytes from vm stack, based on the "extended" property of this Token. Then allocate number of bytes, corresponding to the byte/bytes on the virtual machines Heap.
@Override public void run(VirtualMachine vm) { int bytesToAllocCount=vm.popNumberFromStack(this.isExtended()); for(int i=0;i<bytesToAllocCount;i++) { vm.getHeap().add(new NumericByteCodeToken((byte)0)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native long memoryRemaining();", "BigInteger getLeftoverMemory() {\n return pm.getMemory().subtract(used_mem);\n }", "private void expandCapacity() {\n\t\tT[] larger = (T[]) (new Object[stack.length*2]);\t\t//double size of previous stack\n\t\t\n\t\tfor(int i = 0; i < stack.length; i++...
[ "0.60119784", "0.57252157", "0.56943446", "0.5651697", "0.5637657", "0.5631202", "0.5601871", "0.55693436", "0.5562205", "0.5561927", "0.55471724", "0.5452403", "0.54354537", "0.54159844", "0.5361684", "0.5349712", "0.5332917", "0.53327924", "0.53262544", "0.5316072", "0.5316...
0.725502
0
/ Go to the services web
public void GoPageServices() throws InterruptedException { goToElement(menuMain); goToElement(itemMenuServices); click(servicesLinkLocator); Thread.sleep(2000); goToElement(servicesLocator); goToElement(conceptsLocator); if(isDisplayed(servicesLocator)){ System.out.println("Los servicios fueron encontrados"); }else { System.out.println("Los servicios no fueron encontradod"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "public static void main(String[] argv)\r\n {\r\n //Fazer isto depois para múltiplos web services\r\n InsulinDoseCalculator service = null;\r\n try {\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://liis-lab.dei.uc...
[ "0.61794233", "0.60667604", "0.6052318", "0.60423917", "0.6028506", "0.60114354", "0.5987983", "0.59580445", "0.59563136", "0.5921901", "0.5921028", "0.5916076", "0.5860113", "0.5826763", "0.58084524", "0.5803122", "0.57877004", "0.5786516", "0.5782968", "0.57689035", "0.5768...
0.575465
21
/ Confirm that it's in the services info
public boolean isServicesDiSplayed() { return isDisplayed(servicesTextLocator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verifyService() throws Throwable{\r\n\t\twdlib.waitForElement(getServiceText());\r\n\t\t\r\n\t\tif(!getServiceText().getText().equals(\"None Included\"))\r\n\t\t{\r\n\t\t\tReporter.log(getServiceText().getText()+\" is deleted\",true);\r\n\t\t\tdeleteService();\r\n\t\t}\r\n\t}", "void checkForAccServi...
[ "0.677371", "0.6238663", "0.6128973", "0.6031623", "0.5862648", "0.58616376", "0.58616376", "0.58616376", "0.58616376", "0.58616376", "0.58507234", "0.5788856", "0.5725283", "0.5725283", "0.5686578", "0.56204396", "0.56150764", "0.55824417", "0.5547872", "0.55217457", "0.5479...
0.5349686
31
TODO Autogenerated method stub
@Override public int getCount() { return m_ScoreList.size(); }
{ "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 Object getItem(int index) { return m_ScoreList.get(index); }
{ "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 long getItemId(int arg0) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public View getView(int position, View view, ViewGroup viewGroup) { if (view == null) { view = m_Inflater.inflate(R.layout.score_list_item, null); } m_txtScoreLessonFromTo = (TextView) view.findViewById(R.id.xuenian); m_txtScoreName = (TextView) view.findViewById(R.id.kecheng); m_txtScoreTerm = (TextView) view.findViewById(R.id.xueqi); m_txtScoreValue = (TextView) view.findViewById(R.id.chengji); m_txtScoreReexamValue = (TextView) view.findViewById(R.id.bukao); Score score = m_ScoreList.get(position); if (position % 2 == 1) { m_txtScoreLessonFromTo.setBackgroundResource(R.color.zsxyLinetwo1); m_txtScoreName.setBackgroundResource(R.color.zsxyLinetwo2); m_txtScoreTerm.setBackgroundResource(R.color.zsxyLinetwo1); m_txtScoreValue.setBackgroundResource(R.color.zsxyLinetwo2); m_txtScoreReexamValue.setBackgroundResource(R.color.zsxyLinetwo1); } else { m_txtScoreLessonFromTo.setBackgroundResource(R.color.zsxyLineOne1); m_txtScoreName.setBackgroundResource(R.color.zsxyLineOne2); m_txtScoreTerm.setBackgroundResource(R.color.zsxyLineOne1); m_txtScoreValue.setBackgroundResource(R.color.zsxyLineOne2); m_txtScoreReexamValue.setBackgroundResource(R.color.zsxyLineOne1); } m_txtScoreLessonFromTo.setText(score.getM_ScoreLessonFromTo()); m_txtScoreName.setText(score.getM_ScoreName()); m_txtScoreTerm.setText(score.getM_ScoreTerm()); m_txtScoreValue.setText(score.getM_ScoreValue()); m_txtScoreReexamValue.setText(score.getM_ScoreReexamValue()); return view; }
{ "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
Creates new form SpedContabilGrid
public SpedContribuicoesGrid(SpedContribuicoesGridController controller) { initComponents(); this.controller = controller; ContadorGridController contadorController = new ContadorGridController(); gridControlContador.setController(contadorController); gridControlContador.setGridDataLocator(contadorController); comboVersaoSped.addItem("003 - Versão 2.01A ADE Cofis nº 20/2012"); comboVersaoSped.addItem("002 - Versão 2.00 ADE Cofis nº 20/2012"); comboVersaoSped.addItem("002 - Versão 1.01 ADE Cofis nº 34/2010, atualizado pleo ADE Cofis nº 37/2010"); comboVersaoSped.addItem("001 - Versão 1.00 ADE Cofis nº 31/2010"); comboTipoEscrituracao.addItem("0 - Original"); comboTipoEscrituracao.addItem("1 - Retificadora"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Grid<Movimiento> createGrid() {\n\t\tgrid = new Grid<>();\n\t\tgrid.addThemeVariants(GridVariant.LUMO_NO_BORDER,GridVariant.LUMO_ROW_STRIPES);\n\t\t\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\n\t\tgrid.addComponentColumn(c -> new IconoMovimientoTarjeta(c))\n\t\t.setWidth...
[ "0.66005814", "0.63693476", "0.6358684", "0.63406837", "0.6316014", "0.62948483", "0.627453", "0.62272596", "0.6225523", "0.62060773", "0.61562705", "0.613377", "0.6124822", "0.61214614", "0.6111711", "0.6108547", "0.6096703", "0.60723996", "0.60671", "0.6060132", "0.60478276...
0.68182373
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jPanel1 = new javax.swing.JPanel(); dateControlInicio = new org.openswing.swing.client.DateControl(); dateControlFim = new org.openswing.swing.client.DateControl(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); comboVersaoSped = new javax.swing.JComboBox(); jLabel8 = new javax.swing.JLabel(); comboTipoEscrituracao = new javax.swing.JComboBox(); jPanel3 = new javax.swing.JPanel(); gridControlContador = new org.openswing.swing.client.GridControl(); textColumn2 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn3 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn4 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn5 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn6 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn7 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn8 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn9 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn10 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn11 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn12 = new org.openswing.swing.table.columns.client.TextColumn(); integerColumn13 = new org.openswing.swing.table.columns.client.IntegerColumn(); textColumn14 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn15 = new org.openswing.swing.table.columns.client.TextColumn(); jPanel2 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); setTitle("T2Ti ERP - Sped Contribuições"); setPreferredSize(new java.awt.Dimension(500, 500)); getContentPane().setLayout(new java.awt.GridBagLayout()); jPanel1.setLayout(new java.awt.GridBagLayout()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.ipadx = 70; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5); jPanel1.add(dateControlInicio, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.ipadx = 70; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5); jPanel1.add(dateControlFim, gridBagConstraints); jLabel2.setText("Período Inicial:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5); jPanel1.add(jLabel2, gridBagConstraints); jLabel3.setText("Período Final:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5); jPanel1.add(jLabel3, gridBagConstraints); jLabel7.setText("Versão de Leiaute:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5); jPanel1.add(jLabel7, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5); jPanel1.add(comboVersaoSped, gridBagConstraints); jLabel8.setText("Tipo de Escrituração:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5); jPanel1.add(jLabel8, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5); jPanel1.add(comboTipoEscrituracao, gridBagConstraints); jPanel3.setLayout(new java.awt.GridBagLayout()); gridControlContador.setFunctionId("contador"); gridControlContador.setValueObjectClassName("com.t2tierp.cadastros.java.ContadorVO"); gridControlContador.getColumnContainer().setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT)); textColumn2.setColumnName("nome"); textColumn2.setHeaderColumnName("Nome"); textColumn2.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N textColumn2.setPreferredWidth(200); gridControlContador.getColumnContainer().add(textColumn2); textColumn3.setColumnName("inscricaoCrc"); textColumn3.setHeaderColumnName("Inscricao Crc"); textColumn3.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn3); textColumn4.setColumnName("ufCrc"); textColumn4.setHeaderColumnName("Uf Crc"); textColumn4.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn4); textColumn5.setColumnName("fone"); textColumn5.setHeaderColumnName("Fone"); textColumn5.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn5); textColumn6.setColumnName("fax"); textColumn6.setHeaderColumnName("Fax"); textColumn6.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn6); textColumn7.setColumnName("logradouro"); textColumn7.setHeaderColumnName("Logradouro"); textColumn7.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn7); textColumn8.setColumnName("numero"); textColumn8.setHeaderColumnName("Numero"); textColumn8.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn8); textColumn9.setColumnName("complemento"); textColumn9.setHeaderColumnName("Complemento"); textColumn9.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn9); textColumn10.setColumnName("bairro"); textColumn10.setHeaderColumnName("Bairro"); textColumn10.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn10); textColumn11.setColumnName("cidade"); textColumn11.setHeaderColumnName("Cidade"); textColumn11.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn11); textColumn12.setColumnName("cep"); textColumn12.setHeaderColumnName("Cep"); textColumn12.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn12); integerColumn13.setColumnName("municipioIbge"); integerColumn13.setHeaderColumnName("Municipio Ibge"); integerColumn13.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(integerColumn13); textColumn14.setColumnName("uf"); textColumn14.setHeaderColumnName("Uf"); textColumn14.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn14); textColumn15.setColumnName("email"); textColumn15.setHeaderColumnName("Email"); textColumn15.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControlContador.getColumnContainer().add(textColumn15); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel3.add(gridControlContador, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel1.add(jPanel3, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(jPanel1, gridBagConstraints); jPanel2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); jButton1.setText("Gerar Sped Contribuições"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanel2.add(jButton1); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; getContentPane().add(jPanel2, gridBagConstraints); 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
/ No implementation required.
@Override public <T extends PlayerCharacter> void cease(T character) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n...
[ "0.62738216", "0.6233998", "0.62065554", "0.61809", "0.6172358", "0.61548674", "0.61492574", "0.61229074", "0.61142105", "0.60377914", "0.6032126", "0.60212433", "0.602078", "0.59768414", "0.5951042", "0.5939677", "0.5939677", "0.5926079", "0.58954924", "0.58874744", "0.58633...
0.0
-1
Searches for the value of inside of an array using linear search algorithm
public static int linSearch(int[] a, int key) { for(int i = 0; i < a.length; i++) { if (a[i] == key) { return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void linearSearch(int[] array,int key){\n for(int i=0;i<array.length;i++){\n if(array[i]==key){\n System.out.println(key+\" was found in the list with \"+(i+1)+\" iterations\");break;}\n else if(i==array.length-1&&array[i]!=key){\n Syste...
[ "0.72186196", "0.70733154", "0.7014597", "0.691909", "0.6838466", "0.68154186", "0.6703942", "0.6645426", "0.66053003", "0.6581677", "0.6549473", "0.6523348", "0.6523115", "0.6519466", "0.6505402", "0.6481823", "0.64772725", "0.6412319", "0.6406902", "0.6395882", "0.6393887",...
0.67452
6
Searches for the value of inside of an array using binary search algorithm
public static int binSearch(int[] a, int first, int last, int key) { if(first <= last) { int mid = (first + last) / 2; //Divides the beginning of the array and the length of the array into 2 if (a[mid] == key) { return mid; } else if (a[mid] > key) //IF THE INDEX(WHICH IS THE MID) OF ARRAY A IS GREATER THAN THE KEY { return last = mid - 1; //RETURNS THE LENGTH OF THE ARRAY WHICH IS THE DECREMENTED MID } else //IF THE INDEX(WHICH IS THE MID) OF ARRAY A IS LESS THAN THE KEY { return first = mid + 1; //RETURNS THE FIRST = INCREMENTED MID } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void binarySearchForValue(int value){\n int lowIndex = 0;\n int highIndex = arraySize -1;\n\n while(lowIndex <= highIndex){\n int middleIndex = (lowIndex + highIndex)/2;\n\n if(theArray[middleIndex] < value){\n lowIndex = middleIndex + 1;\n ...
[ "0.78184223", "0.77820796", "0.77597916", "0.7664874", "0.75661427", "0.7565829", "0.7547429", "0.7520255", "0.7500184", "0.74868006", "0.74750763", "0.73987633", "0.7376675", "0.7349205", "0.7339868", "0.7319379", "0.7299021", "0.7292642", "0.7277014", "0.7276203", "0.727402...
0.7195806
26
Represents an individual in the generation of a genetic algorithm
public interface Individual { /** * * @return this individual's alphabet */ Alphabet getAlphabet(); /** * * @return the individual's fitness */ double getFitness(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GAIndividual\r\n{\r\n public void mutate(double rate);\r\n public GAIndividual directReproduce();\r\n public GAIndividual reproduce( GAIndividual i );\r\n \r\n public int getFitness();\r\n public void setFitness ( int fitness );\r\n public void setRoulette (int start, int fini...
[ "0.7163201", "0.69904685", "0.68530655", "0.64177346", "0.6327169", "0.62318385", "0.6215498", "0.6202151", "0.6163667", "0.612226", "0.59068716", "0.5891355", "0.58491135", "0.58053374", "0.5674606", "0.56675696", "0.56524956", "0.5647047", "0.5637707", "0.5604869", "0.55676...
0.67532986
3
Makes sure this class exists before world loads.
public static void SelfCallForLoading() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeClass();", "private void init() throws ClassNotFoundException{\n }", "public static void initialize(){\r\n\t\tinitialize(new CurrentClassGetter().getClassName());\r\n\t}", "public static void load() {\n load(false);\n }", "private PropertiesLoader() {\r\n\t\t// not instan...
[ "0.64388883", "0.6217311", "0.6189491", "0.6135326", "0.6130284", "0.60850376", "0.6033084", "0.5990383", "0.5989465", "0.59585536", "0.5954334", "0.5953941", "0.595226", "0.5914644", "0.5914644", "0.5913724", "0.5910385", "0.5887204", "0.583954", "0.582661", "0.5821308", "...
0.0
-1
Returns true if the biome have snowfall instead a normal rain.
public static boolean getEnableSnow(Biome b) { if (!mod_RealTime.RealWeatherEnabled) { return vanillaGetEnableSnow(b); } else { return RealWeather.WeatherData.snowing; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean canSnowFallOn();", "void isItRaining(boolean isRain) {\n\t\tif (isRain) {\n\t\t\tSystem.out.println(\"Stay home and learn Java\");\n\t\t}else {\n\t\t\tSystem.out.println(\"It is not raining - go for walk\");\n\t\t}\n\t}", "public boolean isRaining()\n {\n return raining;\n }", "void isR...
[ "0.7219628", "0.69662774", "0.68886626", "0.6806847", "0.66871214", "0.643704", "0.63223636", "0.6234233", "0.6155586", "0.6097392", "0.60493", "0.6043465", "0.60140157", "0.5981493", "0.59792185", "0.593114", "0.59125483", "0.5907613", "0.5905289", "0.58530676", "0.5848987",...
0.6781462
4
Get specifies the protocol of WinRM listener. Possible values are: http https. Possible values include: 'Http', 'Https'.
public ProtocolTypes protocol() { return this.protocol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }", "public String getProtocol() {\n String protocol = getPropertyAsStri...
[ "0.70211214", "0.70168364", "0.6924644", "0.6855564", "0.6831734", "0.68287617", "0.68225116", "0.6817592", "0.6711554", "0.6700115", "0.6643572", "0.66277605", "0.6604727", "0.65610135", "0.65579796", "0.6549019", "0.65273905", "0.65230846", "0.6522701", "0.6518894", "0.6475...
0.6178147
29
Set specifies the protocol of WinRM listener. Possible values are: http https. Possible values include: 'Http', 'Https'.
public WinRMListener withProtocol(ProtocolTypes protocol) { this.protocol = protocol; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProtocol(String protocol) {\n m_Protocol = protocol;\n }", "public void setProtocol (java.lang.String protocol) {\r\n this.protocol = protocol;\r\n }", "public void setProtocol(String protocol) {\n this.protocol = protocol;\n }", "public void setProtocol(String protoco...
[ "0.72203404", "0.7089093", "0.6951141", "0.6891703", "0.68820924", "0.68748605", "0.66468805", "0.664542", "0.65497214", "0.64876264", "0.6467532", "0.63000995", "0.62009406", "0.61118376", "0.6046385", "0.59372336", "0.59309983", "0.5912521", "0.5904529", "0.584649", "0.5844...
0.66945195
6
water should be 1000 in after initializing (as seen in class)
@Test void getSetCurrentWater() { Assertions.assertEquals(1000, machine.getCurrentWater()); machine.setCurrentWater(42); Assertions.assertEquals(42, machine.getCurrentWater()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pump_water() {\n\t\t\r\n\t}", "@Test\n void fillWater() {\n machine.setCurrentWater(0);\n Assertions.assertEquals(machine.getCurrentWater(), 0);\n\n //ensure, water fills up to maximum\n machine.fillWater();\n Assertions.assertEquals(machine.maxWater, machine.ge...
[ "0.6734574", "0.6703437", "0.6689021", "0.6674184", "0.66326284", "0.66178674", "0.6576161", "0.6480355", "0.6256588", "0.6209757", "0.60959303", "0.6086509", "0.60864717", "0.604908", "0.6043855", "0.602036", "0.6005763", "0.5997924", "0.59976023", "0.5979785", "0.5972207", ...
0.6589047
6
beans should be 800 in after initializing (as seen in class)
@Test void getSetCurrentBeans() { Assertions.assertEquals(800, machine.getCurrentBeans()); machine.setCurrentBeans(42); Assertions.assertEquals(42, machine.getCurrentBeans()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjetosBeans() {\n this.init();\n }", "public JavaBeans() {\r\n\t\tsuper();\r\n\t}", "@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMappe...
[ "0.69485146", "0.6317774", "0.6262879", "0.6174655", "0.5952012", "0.59212404", "0.58966917", "0.58966917", "0.58844775", "0.58835685", "0.58835685", "0.58718204", "0.5850038", "0.5819927", "0.5806723", "0.58040893", "0.57989055", "0.5772384", "0.575266", "0.5694916", "0.5684...
0.5935924
5
by default machine is off
@Test //checks for state switching (on/off) void SwitchStates() { Assertions.assertFalse(machine.isTurnedOn()); //then, switch on and check if on machine.setTurnedOn(true); Assertions.assertTrue(machine.isTurnedOn()); //switch off to see if turned off correctly machine.setTurnedOn(false); Assertions.assertFalse(machine.isTurnedOn()); //and now check the inversion machine.flipSwitch(); Assertions.assertTrue(machine.isTurnedOn()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void offMachine() {\n\t\t System.out.println(\"Off the machine when the cook is done \");\r\n\t}", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "@Override\n public void onMachineDeactivated()\n {\n ...
[ "0.74302983", "0.6975672", "0.68164825", "0.6766315", "0.6714608", "0.6570828", "0.6563279", "0.65585107", "0.65569735", "0.6534667", "0.6464765", "0.6425838", "0.64012617", "0.6370477", "0.6346582", "0.6344714", "0.6319954", "0.6311212", "0.62043786", "0.62010086", "0.617665...
0.0
-1
per default, no cup should be positioned
@Test void cupTesting() { Assertions.assertFalse(machine.isCupPositioned()); Assertions.assertFalse(machine.removeCup()); Assertions.assertDoesNotThrow(() -> machine.positionCup()); Assertions.assertTrue(machine.removeCup()); Assertions.assertFalse(machine.isCupPositioned()); machine.setCupPositioned(true); Assertions.assertTrue(machine.isCupPositioned()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point validSnakeHeadUp() {\t\t\n\t\treturn new Point(top_border + 2, 15);\n\t}", "@Override public void begin() {\n horizontalCorner = new Location( 0, 200 );\n verticalCorner = new Location( 200, 0 );\n }", "public Image getCrotchetUp();", "public BurgerGUI() {\n initComponent...
[ "0.5772682", "0.5697994", "0.5661425", "0.5655572", "0.56043416", "0.55968285", "0.55768394", "0.55670345", "0.55601394", "0.5477115", "0.54639566", "0.54551053", "0.5444249", "0.54406315", "0.54286796", "0.54064876", "0.5397107", "0.5352233", "0.53455144", "0.53275186", "0.5...
0.53106594
22
by default, coffee can be brewed, only cup needs to be positioned try without cup
@Test void makeCoffee() { Assertions.assertFalse(machine.makeCoffee()); //try with cup Assertions.assertDoesNotThrow(() -> { machine.positionCup(); }); Assertions.assertThrows(Exception.class, () -> { machine.positionCup(); }); Assertions.assertTrue(machine.makeCoffee()); //check if correct amount as been subtracted Assertions.assertEquals(machine.getCurrentWater(), 1000 - machine.waterPerCup); Assertions.assertEquals(machine.getCurrentBeans(), 800 - machine.beansPerCup); //reset machine.fillWater(); machine.fillBeans(); machine.setCupPositioned(true); //test over boundary Assertions.assertTrue(machine.makeCoffee()); Assertions.assertTrue(machine.makeCoffee()); //set only water to boundary values and below machine.setCurrentWater(0); Assertions.assertFalse(machine.makeCoffee()); machine.setCurrentWater(machine.waterPerCup); Assertions.assertTrue(machine.makeCoffee()); //reset water machine.fillWater(); //set only beans to boundary value and below machine.setCurrentBeans(0); Assertions.assertFalse(machine.makeCoffee()); machine.setCurrentBeans(machine.beansPerCup); Assertions.assertTrue(machine.makeCoffee()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeMove(){\r\n\t\tif(cornerColorIs(GREEN)){\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(RED);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tif(()) {\r\n//\t\t i...
[ "0.5750479", "0.560015", "0.5559622", "0.5550529", "0.5519728", "0.5501437", "0.5466295", "0.5389301", "0.5349158", "0.5302158", "0.5278902", "0.52694446", "0.52517873", "0.52228075", "0.520203", "0.51942927", "0.5188692", "0.5182935", "0.5170338", "0.5150723", "0.5132514", ...
0.55082905
5
just to make sure, water is empty
@Test void fillWater() { machine.setCurrentWater(0); Assertions.assertEquals(machine.getCurrentWater(), 0); //ensure, water fills up to maximum machine.fillWater(); Assertions.assertEquals(machine.maxWater, machine.getCurrentWater()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pump_water() {\n\t\t\r\n\t}", "public boolean isFull() { return false; }", "public boolean is_full(){\n return this.habitant.size() >= Constantes.HOUSE_FULL;\n }", "protected byte[] getWaterHeaterStatus() {return null;}", "@Override\n public boolean isFull() {\n return fal...
[ "0.67767763", "0.6399696", "0.6388196", "0.6335769", "0.63284725", "0.6275358", "0.62326574", "0.62289727", "0.6210494", "0.61934584", "0.61855423", "0.6184343", "0.6183295", "0.6154203", "0.6139887", "0.6124521", "0.61091256", "0.610479", "0.6084722", "0.6064308", "0.6052043...
0.63764393
3
just to make sure, water is empty
@Test void fillBeans() { machine.setCurrentBeans(0); Assertions.assertEquals(machine.getCurrentBeans(), 0); //ensure, water fills up to maximum machine.fillBeans(); Assertions.assertEquals(machine.maxBeans, machine.getCurrentBeans()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pump_water() {\n\t\t\r\n\t}", "public boolean isFull() { return false; }", "public boolean is_full(){\n return this.habitant.size() >= Constantes.HOUSE_FULL;\n }", "@Test\n void fillWater() {\n machine.setCurrentWater(0);\n Assertions.assertEquals(machine.getCurrentWa...
[ "0.67737955", "0.64022803", "0.63903856", "0.6375341", "0.6334437", "0.6330936", "0.62724525", "0.6231811", "0.62300605", "0.62134117", "0.6190142", "0.6188571", "0.6187813", "0.6180538", "0.6157603", "0.61415535", "0.6129348", "0.61123985", "0.6108238", "0.6082464", "0.60658...
0.0
-1
Logs Boolean function calls.
public static void logBooleanFunction(String name, String funcName, Object value, boolean isSuccess) { String str = "[b]" + name + ": \t" + funcName + "(" + value + ") => " + isSuccess; if (isSuccess) { System.out.println(str); } else { System.err.println(str); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLogging();", "static void log(Boolean s) {\n System.out.println(String.valueOf(true));\n }", "public boolean logging() {\n\treturn logging;\n }", "private static void log(boolean isAlive) {\r\n\t\tSystem.out.println(\"isAlive result: \" + isAlive + \"\\n\");\r\n\t}", "public s...
[ "0.7341806", "0.6997155", "0.642762", "0.6329684", "0.6320272", "0.630467", "0.62751204", "0.62033004", "0.61614513", "0.6151456", "0.61270267", "0.60925734", "0.60884947", "0.60481805", "0.6041577", "0.60386527", "0.6004763", "0.59730417", "0.5960659", "0.5951847", "0.595158...
0.69667
2