query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
/ 90: / 91:
public String getNombre() /* 92: */ { /* 93:137 */ return this.nombre; /* 94: */ }
[ "private double fixHeading(int hd) { return (Math.toRadians(90-hd)); }", "static long rot90Shift(long a) {\r\n long b=0; \r\n int rMax = 0;\r\n for (int r = 0; r < L; r++)\r\n for (int c = 0; c < L; c++)\r\n if (get(a, r, c))\r\n rMax = r;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when a drawer has settled in a completely closed state.
public void onDrawerClosed(View view) { super.onDrawerClosed(view); getActionBar().setTitle(title); }
[ "public void onDrawerClosed(View view) {\n\t super.onDrawerClosed(view);\r\n\t }", "@Override\n public void onDrawerClosed(View arg0) {\n\n }", "@Override\n\t\t\t\t\tpublic void onDrawerClosed(View drawerView) {\n\t\t\t\tToast.makeText(AddDisciple.this, \"Closed\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create a Tree insert node in the end by recursive
public static Node insert(Node head, int data) { if (head == null) return new Node(data); //create a new node with data. it is a head node /first node else if (head.next == null) { head.next = new Node(data); } else { // head.next is not null - using recursive to move to next node in...
[ "private static void insertBalancedTree(){\r\n\r\n // Root\r\n tree.insert(3);\r\n\r\n // First level\r\n tree.insert(1);\r\n tree.insert(5);\r\n\r\n // Second level\r\n tree.insert(0);\r\n tree.insert(2);\r\n tree.insert(4);\r\n tree.insert(6);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This adds a property descriptor for the Update dt feature.
protected void addUpdate_dtPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Arch_org_update_dt_feature"), getString("_UI_PropertyDescripto...
[ "protected void addUpdate_dtPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_update_dt_feature\"),\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getters getter method to return private data field make
public String getMake() { return this.make; }
[ "T getData() {\n return data;\n }", "public Data getData(){\r\n return this.data;\r\n }", "@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}", "protected Object getCopyOfUserData() {\n return data;\n }", "public InfoData getInfoData(){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The common ancestor container of the range's two endpoints.
public Node getCommonAncestorContainer();
[ "public int ancestor(Iterable<Integer> subsetA, Iterable<Integer> subsetB){\r\n\t return 0;\r\n }", "boolean ancestor(int u,int v){\n return (st[v] > st[u] && end[v] < end[u]);\n}", "public int ancestor(Iterable<Integer> subsetA, Iterable<Integer> subsetB) {\r\n return 0;\r\n }", "public Tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convenience method to return the status of the user's default role in a given group.
public Status getStatusForGroup(Group group) { Status status = Status.UNKNOWN; Membership membership = getMembership(group, Role.DEFAULT); if (membership != null) { status = membership.getStatus(); } return status; }
[ "private Role getDefaultRole() throws NoDefaultRoleFoundException {\n\t\tfor(Role role : this.roles) {\n\t\t\tif(role.isDefault()) return role;\n\t\t}\n\t\tthrow new NoDefaultRoleFoundException();\n\t}", "public static UserRole getRole(Node group, Node item) {\r\n return getRole(group, item, false);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setOutgoingCallerIdDisplay sets a call forwarding option.
void setOutgoingCallerIdDisplay(int commandInterfaceCLIRMode, Message onComplete);
[ "public void displayInstanceId (final boolean display)\r\n {\r\n mDisplayInstanceId = display;\r\n }", "@Override public void setDisplayPadding(android.graphics.Rect padding, java.lang.String callingPackage, int displayId) throws android.os.RemoteException\n {\n android.os.Parcel _data = andr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtenemos nuestro xml de nuestro adaptador donde estan nuestro card view y lo retornamos
@Override //Adaptador public RecyclerAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.activity_adaptador,parent,false); MyViewHolder viewHolder = new MyViewHolder(view); return viewHolder; ...
[ "private static List<Carro> parserXML(Context context, String xml){\n List<Carro> carros = new ArrayList<Carro>();\n Element root = XMLUtils.getRoot(xml, \"UTF-8\");\n //Lê todas as tags<carro>\n List<Node> nodeCarros = XMLUtils.getChildren(root, \"carro\") ;\n //insere cada carro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The name for the set of featured results that the conflicting query belongs to.
public String getSetName() { return this.setName; }
[ "@Override\n\tpublic String getDisplayName() {\n\t\treturn getDrugs();\n\t}", "void resultSetSiteName();", "@Override\n public String getName()\n {\n String name = first.getName();\n for (int i=0; i<others.length; i++)\n { // add other names\n if (others[i] instanceof DBV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get EMail Verify. Date Email was verified
public Timestamp getEMailVerifyDate();
[ "public Timestamp getEMailVerifyDate() {\n\t\treturn (Timestamp) get_Value(\"EMailVerifyDate\");\n\t}", "public Date getVerifiedTm() {\r\n return verifiedTm;\r\n }", "public boolean getEmailVerified() {\n return emailVerified;\n }", "public Date getTimestampVerified() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
newInstance constructor for creating fragment with arguments
public static HistoryFragment newInstance() { HistoryFragment fragmentFirst = new HistoryFragment(); return fragmentFirst; }
[ "protected abstract BaseFragment newInstance();", "public static GameListFragment newInstance() {this stuff was included when I just tabbed to write newInstance()\n// Bundle args = new Bundle();\n//\n// GalleryFragment fragment = new GalleryFragment();\n// fragment.setArguments(args);\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array. This met...
public NumericArray toNumericArray() { NumericArray a = factory.apply(size); elementData.copyRange(0, a, 0, size); return a; }
[ "public final A[] toArray(){\n A[] arr = (A[]) new Object[length()];\n int i=0;\n for (A a : this) {\n arr[i++] = a;\n }\n return arr;\n }", "public E[] toArray() {\r\n Node target = firstElement;\r\n E[] result = (E[]) new Object[size];\r\n fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the specified uniform to the values provided.
public void uniform2iv(WebGLUniformLocation location, int[] values) { uniform2iv(location, JsArrayUtil.wrapArray(values)); }
[ "public void setUniform(String uniformName, Vector3f value) {\n glUniform3f(mUniformsList.get(uniformName), value.x, value.y, value.z);\n }", "public void setUniform(String uniformName, Vector3f value) {\n // Memory management is done automatically using the MemoryStack class\n // this is ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by harrishuang on 2017/8/24.
public interface UserService extends BaseDao<User> { }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XAssignment__Group_0__0" $ANTLR start "rule__XAssignment__Group_0__0__Impl" InternalSARL.g:27557:1: rule__XAssignment__Group_0__0__Impl : ( () ) ;
public final void rule__XAssignment__Group_0__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSARL.g:27561:1: ( ( () ) ) // InternalSARL.g:27562:1: ( () ) { // InternalSARL.g:27562:1: ( () ) ...
[ "public final void rule__XAssignment__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:10266:1: ( rule__XAssignment__Group_1_1_0__0__Impl )\n // InternalOcelet.g:10267:2: rule__XAssignment__Group_1_1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CommFunc.PrintLog("FirstPageFragmentActivity", "updateListener()"+errorcode+""+result.getUpdateVersion()); CommFunc.PrintLog("FirstPageFragmentActivity", "getDownloadUrl()"+""+result.getDownloadUrl());
@Override public void onResult(int errorcode, UpdateInfo result) { if(errorcode == UpdateErrorCode.OK && result!= null) { if(result.getUpdateType() == UpdateType.NoNeed) { //showTip("已经是最新版本!"); initView(); return; } updManager.showUpdateInfo(FirstPageFragmentActivity.this, result); ...
[ "@Override\n public void updateFromDownload(String result) {\n Log.d(\"Message\", result);\n }", "public void onDownloadInfoSuccess();", "@Override\n public void downloadEnd() {\n Log.w(TAG, \"ENd\");\n Toast.makeText(MainActivity.this, \"下载完成\", Toast.LENGT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle sms too much exception map.
@ExceptionHandler(OrderCreateFailException.class) @ResponseStatus(HttpStatus.BAD_REQUEST) public Map<String, Object> handleSmsTooMuchException(OrderCreateFailException ex) { return makeErrorMessage(ReturnCode.ORDER_CREATE_FAIL, "order create fail", ex.getMessage()); }
[ "@Override\r\n\tpublic void handleInvalidMessageException(InvalidMessageException e) \r\n\t{\n\t\t\r\n\t}", "@Override\n public void process(Exchange exchange) throws Exception\n {\n receivedError = exchange.getProperty(Exchange.EXCEPTION_CAU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Manage the audio being played into a channel from a sound file
public void playbackTruncate() throws ExecuteException { playbackControl("truncate"); }
[ "void playAudio(List<String> uuids, String channel, String name, String fileLocation, double startTime, boolean looping);", "public void handleAudio(String filename) \n\t{\n\t\tfinal String FILENAME = filename; // For some stupid java reason, this needs to be final in order to be used later\n\t\tmusicPlayer = new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the unique identofier for the search.
public BigInteger getId();
[ "public int showFirstUnique() {\n if (uniqueOnly.isEmpty()) {\n return -1;\n }\n return uniqueOnly.iterator().next();\n }", "public int getUnique() {\n\t\treturn unique;\n\t}", "public String getIdent()\n\t{\n\t\tString ident = \"\";\n\t\tString xpath = basePath;\n\t\tList lis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ compiled from: MultiplierFragment
interface a { void onItemClick(int i, int i2); }
[ "@Override\n\tpublic void VisitMulNode(BunMulNode Node) {\n\n\t}", "@Override\r\n public void visit(JcMulNode node) throws Exception {\r\n debug(node);\r\n Quadruplet rhs = memory.depiler();\r\n Quadruplet lhs = memory.depiler();\r\n\r\n checkValidIntegers(node, rhs, lhs);\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Subscribes for chart candles of a chosen symbol
public void subscribeCandle(String symbol) throws APICommunicationException { CandlesSubscribe cs = new CandlesSubscribe(symbol, streamSessionId); writeMessageToStream(cs.toJSONString()); }
[ "void subscribe24HTradeStatisticsEvent(String symbols, SubscriptionListener<TradeStatisticsEvent> callback);", "void subscribePriceDepthEvent(String symbols, SubscriptionListener<PriceDepthEvent> callback);", "private void startCandlestickEventStreaming(String symbol, CandlestickInterval interval) {\n\n\tclient...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Importa el movimiento solicitado
public void importar(final String id ,final Long sucursalId ,final HibernateTemplate source ,final HibernateTemplate target){ String hql="from Movimiento m left join fetch m.partidas p where m.id=?" ; List<Movimiento> data=source.find(hql, id); EventList<Movimiento> eventList=GlazedLists.eventL...
[ "public void iniciarImportacao() {\n\n\t}", "private void crearMovimiento()\r\n/* 336: */ {\r\n/* 337: 366 */ this.transferencia = new MovimientoInventario();\r\n/* 338: 367 */ this.transferencia.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 339: 368 */ this.transferencia.setSu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column sys_position.name
public String getName() { return name; }
[ "@Override\n public String getPositionName() {\n return this.position.getKey();\n }", "public String getName() {\r\n\t\treturn criteria[POS_NAME];\r\n\t}", "public java.lang.String getPosition() {\n\t\treturn position;\n\t}", "public String getPosition() {\n return _position.toString();\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The algorithm uses modified quicksort in order to find the median This leaves the extremities of the array unsorted, which is irrelevant to the median After it partitions the array, it sorts the middle 2 quartiles, and then returns the median
public double findMedian(int[] inputArr) { if (inputArr == null || inputArr.length == 0) { return -1; } array = inputArr; length = inputArr.length-1; //Array is sorted relative to middle index (for all i > middle, array[i] > all array[j] for j<middle partition(); int quarterOne = length/4; i...
[ "public static void quickSortMedianPivot(double[] arr){\r\n\t\t\tquickSortMedianPivot(arr, 0, arr.length - 1);\r\n\t\t}", "private static int getMedian(int [] array, int start, int end) {\n if ((end - start) % 2 == 0) { // odd number of elements\n return (array[(end + start) / 2]);\n } el...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears all the variables inside the stack frame
public void dispose() { // TODO Auto-generated method stub setDisposed(true); if (fGDBVariables == null) { return; } Iterator<GDBVariable> it = fGDBVariables.iterator(); while (it.hasNext()) { ((GDBVariable)it.next()).dispose(); } fGDBVariables.clear(); fGDBVariables = null; }
[ "protected void clear() {\n\t\tvars = new HashSet<String>();\n\t\tlabels = new HashSet<String>();\n\t\tinstructionSize = 0;\n\t\tmemAccesses = 0;\n\t\tprogramBits = 0;\n\t\tprogramCounter = 0;\n\t\tnumInstructions = 0;\n\t\ttempAddrs.clear();\n\t\tlabelsToPrepend.clear();\n\t\tifLabels.clear();\n\t\tjumpLabels.clea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies valid influx data feed created for required data feed details.
@ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.metricsadvisor.TestUtils#getTestParameters") public void createInfluxDataFeed(HttpClient httpClient, MetricsAdvisorServiceVersion serviceVersion) { // Arrange client = getMetricsAdvisorAdministrationBuilder(httpCl...
[ "void assertFeedStatusCheck() {\n Assertions.assertThat(getPostsToFeedStatusCheck())\n .extracting(GetFeedStatusRequest::getFeedName)\n .filteredOn(feed -> !\"DUMMY_FEED\".equals(feed))\n .containsExactly(TestConstants.FEED_TEST_EVENTS_1, TestConstants.FEED_TEST_E...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets parent device type.
public void setParentDeviceType(String parentDeviceType) { this.parentDeviceType = parentDeviceType; }
[ "public void setParent(TTNode<T> parent) {\n this.parent = parent;\n }", "private void setParent(String parent) {\n \t\t//java.lang.Object has no parent\n \t\tif (this.getName(true).equals(\"java.lang.Object\"))\n \t\t\treturn;\n \t\t\n \t\t//only allow one parent to be set\n \t\tif (this.parent == null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ordena los numeros del arreglo mediante el metodo merge sort
public void ordenamientoMergeSort(){ int[] tmp = new int[arreglo.length]; ordenamientoMergeSort(arreglo, tmp, 0, arreglo.length - 1); }
[ "public void sortNums() {\n \n mergeSort(0,nums.length-1);\n }", "public void mergeSort();", "public static void Sort() {\n\n\t\t// check for an empty array \n\n\t\t// if(numbers.length == 0 || numbers.)\n\n\t\t// create the helper array that is used while merging. \n\n\t\thelper = new int[numb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_comboContratoItemStateChanged / EVENTO Y FUNCIONES DEL BOTON EXPORTAR A EXCEL
private void btnExportarPdfsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportarPdfsActionPerformed if (JOptionPane.showConfirmDialog(this, "Se van a generar " + tablaProtocolos.getRowCount() + " protocolos en PDF, ¿Desea continuar?", "Confirmar", JOptionPane.YES_NO_OPTION) == JOption...
[ "public void pressed_exportarInventarioExcel(ActionEvent event)\r\n {\r\n \tArchivos.carpeta();\r\n\t\t\r\n \tAlert alert = new Alert(AlertType.CONFIRMATION, \"Desea exportar su inventario al archivo c:/ERPdata/data/inventario.xls?\", ButtonType.YES, ButtonType.NO);\r\n \talert.showAndWait();\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setSettingsDrawCurrentX method, of class GraphPanelChart.
@Test public void testSetSettingsDrawCurrentX() { System.out.println("setSettingsDrawCurrentX"); boolean settingsDrawCurrentX = false; GraphPanelChart instance = new GraphPanelChart(); instance.setSettingsDrawCurrentX(settingsDrawCurrentX); }
[ "public void setXEnd(double paramDouble)\n/* */ {\n/* 755 */ this.redraw_backing = true;\n/* 756 */ this.x_end = paramDouble;\n/* */ }", "private void setfreeModeChartxAxis() {\n\n\n\n XAxis xAxis = freeModeChart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Not defined in Tree but used through CommonTree
Token getToken();
[ "private void defineTree() {\n\t\t\t\n\t\t}", "protected abstract void applyUponTrees();", "BinTree leftChild ();", "TreeHMC(){}", "public interface TreeOperations {\n /**\n * Calculates rank on Wavelet Tree where nodes are data structures supporting\n * Rank operation\n *\n * @param c ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starts the POI timer.
public void startPoiTimer() { mPoiManager.start(); }
[ "public void start_timer() {\n\t\ttimer.start(); \n\t}", "public void startTimer()\r\n\t{\n\t\tSystem.err.println(Schedule.getErrorStreamDateMarker() + \" LoadingDialog.startTimer || GUI loading dialog - starting timer!\");\r\n\t\ttimer.start();\r\n\t}", "public void startTimer()\n {\n timer.start();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a transfer object which will allow uploading to the specified package/file from the specified InputStream. This constructor should be used only when a RandomAccessFile is not an option, as restarts and multichannel uploads are not possible.
public DataSlotTransfer(DropboxAccess dropbox, long packid, long fileid, InputStream inpstrm) { this.dropbox = dropbox; this.packid = packid; this.fileid = fileid; this.inpstrm = inpstrm; factory = (ConnectionFactory)((ProxyDebugInterface)dropbox).getP...
[ "public UploadOperation(Storage.Objects.Insert insertObject, InputStream pipeSource) {\n this.insertObject = insertObject;\n this.pipeSource = pipeSource;\n }", "public SendFileOperation uploadFile(int id, long totToXfer, long offset, InputStream is) {\n\treturn new UploadOperation(handler,id,totToXf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column detection_account.user_info_id
public String getUser_info_id() { return user_info_id; }
[ "UserInfo getUserInfoById(Long id);", "@Override\r\n\tpublic String findId(UserInfoDTO pDTO) throws Exception {\n\t\treturn userInfoMapper.findId(pDTO);\r\n\t}", "IndbUserInfo selectByPrimaryKey(Integer id);", "@Override\n\tpublic UserInfoViewDto getCurrentUserInfo(Long id) {\n\t\tCustomUser user = repo.findB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appointment Module Methods Starts
public ArrayList<AppointmentBean> getAllResources(AppointmentBean appointmentBean) throws DaoException { ArrayList<AppointmentBean> list=null; try { eclinicDaoManager.startTransaction(); list=appointDao.getAllResources(appointmentBean); eclinicDaoManager.commitTransaction(); } catch (Dao...
[ "public void createAppointment(ActionEvent ae) throws ClassNotFoundException {\r\n LocalDateTime appointmentStart = fetchAppointmentStartDateTime();\r\n LocalDateTime appointmentEnd = fetchAppointmentEndDateTime();\r\n String customerNameStr = customerBox.getSelectionModel().getSelectedItem().t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a ladder from the ladder list.
public Ladder getLadder(int index) { return ladders.get(index); }
[ "private static GameObject findLadder(Location l) {\r\n for (int x = -5; x < 6; x++) {\r\n for (int y = -5; y < 6; y++) {\r\n GameObject object = RegionManager.getObject(l.transform(x, y, 0));\r\n if (object != null && isLadder(object)) {\r\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends a message to the log if the given LogType is enabled
public static void log(String message, LogType type) { if (!ConfigManager.getInstance().getEnabledLogTypes().contains(type)) return; ResMagna.plugin.getLogger().log(type.getLevel(), type.getPrefix() + " " + message); }
[ "public void setLogType(int type);", "public void log(String message, int logType)\n {\n switch (logType)\n {\n case Project.MSG_WARN :\n log.warn(message);\n break;\n\n case Project.MSG_ERR :\n log.error(message);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .nwkNetworkStatus_t status = 2; required .nwkNetworkStatus_t status = 2; Network down/up
boolean hasStatus();
[ "com.google.cloud.baremetalsolution.v2.Network.State getState();", "public void releaseRenewNetwork(String status){\n\t\t \n\t\tString command=\"\";\n\t\tif (status==\"release\"){\n\t\t\tcommand = \"sudo ifconfig eth0 down\";\n\t\t\tString returnstatus=commandExecute(command);\n\t\t\tif (returnstatus==null){\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the rparen can either be at the correct indentation, or on the same line as the lparen
private void checkRParen() { DetailAST rparen = mMainAst.findFirstToken(TokenTypes.RPAREN); int columnNo = expandedTabsColumnNo(rparen); if (columnNo == getLevel()) { return; } if (!startsLine(rparen)) { ...
[ "private void right_paren(){\n if(lookahead.getToken() == Tokenizer.CLOSE_BRACKET_N.getKey()){\n //prt(\"RIGHT_PAREN\",1088);\n //System.out.println(\"<right_paren> -> <right_paren>\\n\");\n\n nextToken();\n }else{\n line_exception();\n }\n }", "private boolean isRparen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX ERROR: IndexOutOfBoundsException in pass: RegionMakerVisitor java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:659) at java.util.ArrayList.get(ArrayList.java:435) at jadx.core.dex.nodes.InsnNode.getArg(InsnNode.java:101) at jadx.core.dex.visitors.regions.Regi...
public void run() { /* r10 = this; r0 = 1 r10.mIsRunning = r0 L_0x0003: boolean r1 = r10.mIsRunning if (r1 == 0) goto L_0x011c com.tutk.IOTC.Camera r1 = com.tutk.IOTC.Camera.this int r...
[ "public void mo650a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: d
public void mo18681d(C5986c request) { if (!request.equals(this.f10528c)) { if (!this.f10528c.isRunning()) { this.f10528c.mo18673a(); } return; } C5987d dVar = this.f10526a; if (dVar != null) { dVar.mo18681d(this); }...
[ "private void d() {\n }", "public void mo1857d() {\n }", "public void setD(String d) {\n this.d = d;\n }", "public boolean d() {\n }", "protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }", "protected void mo4791d() {\n }", "@Override\n\tpublic voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XEqualityExpression__FeatureAssignment_1_0_0_1" $ANTLR start "rule__XEqualityExpression__RightOperandAssignment_1_1" ../edu.tadp.firewall.ui/srcgen/edu/tadp/firewall/ui/contentassist/antlr/internal/InternalFirewalll.g:14402:1: rule__XEqualityExpression__RightOperandAssignment_1_1 : ( ruleXRelationalEx...
public final void rule__XEqualityExpression__RightOperandAssignment_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../edu.tadp.firewall.ui/src-gen/edu/tadp/firewall/ui/contentassist/antlr/internal/InternalFirewalll.g:14406:1: ( ( ruleXRelational...
[ "public final EObject ruleXEqualityExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_XRelationalExpression_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../be.u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Opens the basket from the upper menu
public static void open() { click(BASKET_UPPER_MENU); }
[ "public void open()\n\t{\n\t\tclickWebElement(menuBtn());\n\t}", "public void openShop(){\n\t\tmain.setOpenShop(true);\n\t\tmain.setPaused(true);\t\n\t}", "@Override\n public void onClick(View v) {\n if (ob.getSub_button().size() == 0) {\n ECJ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is Default method with Default implementation
default int getAdminId() { return 1; }
[ "@Override\n }", "@Override\n public void setDefault()\n {\n\n }", "@Override\n public void extornar() {\n \n }", "default void piotr(){\n\n }", "@Override\r\n public void publicando() {\n }", "void defaultMethod();", "public void custumer(){\n \n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates buying price modifier for region based on techlevel
private double calculateInflationB(TechLevel l) { switch (l) { case PREAG: return 0.4; case MODERN: return 1.2; case MEDIEVAL: return 0.7; case FUTURISTIC: return 1.4; case INDUSTRIAL: return 1.1; case AG...
[ "double getPriceAtLevel(Side side, int level);", "double priceGrowthMultiplier();", "@Override\n public double calculatePrice() {\n return loc.getBasePrice() + STANDARD_PRICE;\n }", "public long returnPriceToGetToLevel(int lvl) {\n\t\tif(prog&&!p.isAdvancedBuildingAPI()) {\n\t\t\tsetError(\"You d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET /registeredusers : get all the registeredUsers.
@GetMapping("/registered-users") @Timed public List<RegisteredUserDTO> getAllRegisteredUsers() { log.debug("REST request to get all RegisteredUsers"); return registeredUserService.findAll(); }
[ "@RequestMapping(value = \"/registeredcustomer\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic List<WSBranchCustomer> getAllRegisteredUsers() {\r\n\t\treturn clientServiceImpl.getAllRegisteredUsers();\r\n\t}", "public List<User> getRegUsers() {\r\n\t\treturn users_registere...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleTypesType" $ANTLR start "ruleTypesType" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:240:1: ruleTypesType : ( ( rule__TypesType__Group__0 ) ) ;
public final void ruleTypesType() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:244:2: ( ( ( rule__TypesType__Group__0 ) ) ) // ../eu...
[ "public final void ruleType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/antlr/internal/InternalLLVM_IR.g:3960:2: ( ( ( rule__Type__Group__0 ) ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void visit(BitwiseOr arg0) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The rate of interest is returned as entered with all decimals
public BigDecimal getRateOfInterest() { return m_rateOfInterest; }
[ "default double getInterestRate() {\r\n\t\treturn 2.5;\r\n\t}", "public double getInterestRate()\r\n { \r\n return interestRate;\r\n }", "@Override\r\n\tprotected double doCalculateInterestRate() {\n\t\treturn 0.065D;\r\n\t}", "double getInterestRateSpread() { return 100.0*Model.bank.interestSprea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column userInfo.idNumber
public void setIdNumber(String idNumber) { this.idNumber = idNumber == null ? null : idNumber.trim(); }
[ "public void setNumber(int id);", "public void setUserNumber(int userNumber) {\n\t\t\n\t}", "public void setUserId(Number value) {\r\n setAttributeInternal(USERID, value);\r\n }", "public void setIDNumber(int IDNumber){\r\n \tthis.IDNumber = IDNumber;\r\n }", "public void setIdNumber(String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void setRollbackOnly() throws IllegalStateException, SystemException { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void add(Attendance attendance) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pone los datos en el child de usuarios con el uid del usuario como nombre de branch
@Override public void onSuccess(Map<String, Object> stringObjectMap) { Firebase usuario = ref.child("usuarios").child(stringObjectMap.get("uid") + ""); usuario.setValue(user);//Pasas toda la clase para ponerla en firebase con cualquiera qu...
[ "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n for (DataSnapshot data : dataSnapshot.getChildren()) {\n String userId = data.child(\"userId\").getValue().toString();\n mFirebaseDatabaseReference.child(\"user\").child(userId).add...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates the neighbours relative to its position, the order is important.
public ArrayList<Integer[]> getNeighbours();
[ "public void getAuNeighbours() {\r\n\t\t\tfor (int bi = 0; bi < yscale; bi++) {\r\n\t\t\t\tfor (int ai = 0; ai < xscale; ai++) {\r\n\t\t\t\t\tneighboursAuAu[ai][bi] = 0;\r\n\t\t\t\t\tneighboursAuC[ai][bi] = 0;\r\n\t\t\t\t\tboolean check = false;\r\n\t\t\t\t\tint x = ai;\r\n\t\t\t\t\tint y = bi;\r\n\t\t\t\t\tint nbA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
~ Methods Method testNewProxyInstance.
public final void testNewProxyInstance() { InterceptionProxy<TestInterface> ip = new InterceptionProxy<TestInterface>(TestInterface.class); Object aTarget = new TestClass(); ip.setDefaultInterception(InterceptionProxy.FORWARD); ip.addAdvice( new InterceptionAdvice() { @Override public void ...
[ "@Test\r\n\tpublic void testProxyPattern()\r\n\t{\n\t\tProxyPattern proxy = new ProxyPattern();\r\n\t\tFastThing fastThing = new FastThing();\r\n\t\tfastThing.sayHello();\r\n\t\tproxy.sayHello();\r\n\t\t\r\n\t\tAssert.assertNotEquals(\"The object returned must not be equal\", fastThing, proxy);\r\n\t}", "public O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creating a method to get equals method.
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Bottle other = (Bottle) obj; if (!Objects.e...
[ "abstract boolean equals(Object o);", "@Override\n boolean equals(Object other);", "@Override boolean equals(Object obj);", "@Override\r\n public boolean equals(Object obj) {}", "@Override\r\n public boolean equals(Object obj);", "public boolean equals(Object o);", "public static boolean equalsM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Me dice si hay que mostrar la informacion
public boolean showPanelInfo2(){ return showPanelInfoPrestamista2; }
[ "public void infos(){\n System.out.println(\"Vous avez \" + policeman_number + \" dans votre commissariat\");\n if (commissaire == null ){\n System.out.println(\"Il n'y à pas encore de commissaire\");\n }\n else{\n System.out.println(\"Votre commaissaire porte le no...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The only method we really change to check whether the message is smaller than maxlevel. We also flush here to make sure that the message is shown immediately.
@Override public synchronized void publish(LogRecord record) { if (record.getLevel().intValue() > this.maxlevel.intValue()) { // do nothing if the level is above maxlevel } else { // if we arrived here, do what we always do super.publish(record); super.flush(); } }
[ "void setMessageLevel(int level);", "public boolean nextLevelIfNeccessary(){\r\n\t\tdouble check = (level/10)*100+100*level;//Initially, every 100 score level increases. Every 10 levels, score required becomes 100 bigger\r\n\t\tint lvlTemp=level;\r\n\t\t\r\n\t\tif(getScore()>check){\r\n\t\t\tlevel++;\r\n\t\t}\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a packet from the given bytes
MpiPacket(@NonNull @Size(min = MIN_PACKET_SIZE, max = MAX_PACKET_SIZE) byte[] packet) { validatePacket(packet); mPacket = packet; }
[ "public TcpAvlPacket CreateTcpPacket(byte[] bytes) {\n TcpHead tcpHead = ReadTcpAvlPacketHeader(bytes);\n List<AVLRecord> avlRecords = new ArrayList<> ();\n if(tcpHead != null)\n {\n for (int i = 0; i < tcpHead.GetRecordCount(); i++) {\n avlRecords.add(new AVLRe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean onMenuItemSelected(int featureId, MenuItem item) { LogUtil.d(TAG + " onMenuItemSelected()"); return super.onMenuItemSelected(featureId, item); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all available calibration channel codes for this device.
public int[] getAllCalibrationCodes() { int k = getNumberOfCalibrationChannels(); int m = 1; for (int j = 0; j < k; j++) m *= 2; m--; int[] cc = new int[m]; for (int j = 0; j < m; j++) cc[j] = j + 1; return cc; }
[ "public List<WirelessChannel> getAvailableChannels() {\n if (this.macDot11Map != null) {\r\n message(\"80211Mac channels\", 10);\r\n return station.getPhy().getAvailableChannels();\r\n } else {\r\n return null;\r\n }\r\n }", "public List<CRSCodeType[]> getA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Referenced Component' reference. If the meaning of the 'Referenced Component' reference isn't clear, there really should be more of a description here...
BasicComponent getReferencedComponent();
[ "public PdfIndirectReference getRef() {\r\n\t\treturn ref;\r\n\t}", "public java.lang.String getRef() {\n return ref;\n }", "public RADComponentNode getNodeReference() {\n return componentNode;\n }", "public String getRef()\n {\n \treturn _ref;\n }", "private ComponentReference<?>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads an existing VTimeZone from the classpath corresponding to the specified Java timezone.
public VTimeZone loadVTimeZone(String id) throws IOException, ParserException, ParseException { Validate.notBlank(id, "Invalid TimeZone ID: [%s]", id); if (!cache.containsId(id)) { final URL resource = ResourceLoader.getResource(resourcePrefix + id + ".ics"); if (resource != null...
[ "TimeZone getTz(String id);", "@Test\n public void TestVTimeZoneRoundTrip() {\n long startTime = getUTCMillis(1850, Calendar.JANUARY, 1);\n long endTime = getUTCMillis(2050, Calendar.JANUARY, 1);\n\n String[] tzids = getTestZIDs();\n for (int i = 0; i < tzids.length; i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
empty constrctor to read data.
public Algorithem() { MakeKML test=new MakeKML(halfkmloutputpath + "outputCSV.csv"); this.Data=test.inputthefile(); }
[ "public DataReader() {\n\t\t\n\t}", "@Override\n\tvoid readSpecificData() {\n\t\t\n\t}", "protected Reader(byte[] data) {\n this.data = data;\n // this.length = data.length;\n this.readPointer = 0;\n }", "void read() {\n super.read(null);\n }", "protected vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Change the password to the new one
private void setPass() { String oldPassword = oldPass.getText().toString(); String newPassword = newPass.getText().toString(); String rePassword = reEnNewPass.getText().toString(); //Check if password and re-Password match if(newPassword.equals(rePassword)) { Password...
[ "public void setPassword(String newPassword) \r\n { \r\n password = newPassword; \r\n }", "public void updatePassword() {\r\n }", "public void setPassword(String newPass){\n this.password = newPass;\n }", "void changeUserPassword(User user, String password);", "public void changePa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears Text image buffer
public void clearTextBuffers(){ for(Entry<String,HashMap<Integer, Image>> e : textLabelsBuffer.entrySet()){ e.getValue().clear(); } }
[ "public void clear(){\n writable = true;\n difference = new Character[0];\n timer1 = 0;\n text = \"\";\n clearResorces();\n }", "@API(status = STABLE, since = \"1.0\")\n void clearImage();", "public void clearText() {\n\t\t// inst.waitForIdleSync();\n\t\t// inst.runOnMai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo para aproximar valores decimales
public static Double aproxima(Double val) { return new BigDecimal(val.toString()).setScale(2, RoundingMode.HALF_UP).doubleValue(); }
[ "public abstract double convertToDec();", "public double calcularValorPago() {\n int consumo = Integer.parseInt(txtLecActual.getText()) - Integer.parseInt(txtLecAnterior.getText());\n\n if (consumo > 0) {\n /*Aqui guardamos las cantidades que no son multiplos de 10, por ejemplo \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void addFoodItem(FoodItem foodItem) { foodItems.add(foodItem); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends messages that replicate the function of the keyboard and uses this to type the input.
public void type(CharSequence characters, boolean isHuman) { int length = characters.length(); this.isHuman = isHuman; for (int i = 0; i < length; i++) { char character = characters.charAt(i); typeChar(character, isHuman, keyFunctionDown, keyFunctionUp); Threa...
[ "public static void sendInput() {\n Player player = Client.levelHandler.getClientPlayer();\n PacketInput input =\n new PacketInput(\n player.mouseX,\n player.mouseY,\n player.leftKey,\n player.rightKey,\n player.jumpKey,\n player.click,\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XAssignment__Alternatives" $ANTLR start "rule__OpMultiAssign__Alternatives" InternalStubbrLang.g:4695:1: rule__OpMultiAssign__Alternatives : ( ( '+=' ) | ( '=' ) | ( '=' ) | ( '/=' ) | ( '%=' ) | ( ( rule__OpMultiAssign__Group_5__0 ) ) | ( ( rule__OpMultiAssign__Group_6__0 ) ) );
public final void rule__OpMultiAssign__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:4699:1: ( ( '+=' ) | ( '-=' ) | ( '*=' ) | ( '/=' ) | ( '%=' ) | ( ( rule__OpMultiAssign__Group_5__0 ) ) | ( ( rule__OpMultiAss...
[ "public final void rule__OpMultiAssign__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:3431:1: ( ( '+=' ) | ( '-=' ) | ( ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
register the user and create the children for the User collection in the database
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_register); mRegProgress = new ProgressDialog(this); mAuth = FirebaseAuth.getInstance(); regName = (TextInputLayout) findViewById(R.id.reg_nam...
[ "public void createUsers(Users u);", "private void Create_New_User(String FullName, String Email, String Password, String Phone,\r\n String Street, String City, String State, String Zipcode){\r\n\r\n firebaseDatabase = FirebaseDatabase.getInstance();\r\n DatabaseReferenc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TEST: Deleting relation via list 1) Create a primary record 2) Go to secondary tab and create a secondary record 3) Fill out at least the required field and save the secondary record 4) Make sure that the secondary record is still open 5) Click the delete symbol next to the record X) Expect dialog and click 'Cancel' X)...
@Test public void testSecondaryListDelete() throws Exception { //create record and fill out all fields String primaryID = Record.getRecordTypeShort(primaryType) + (new Date().getTime()); String secondaryID = Record.getRecordTypeShort(secondaryType) + (new Date().getTime()); //create ...
[ "@Test//(groups=\"Sanity\",dependsOnGroups=\"smoke\")\r\n\t//@Test(priority=0)\r\n\t//@Test\r\n\tpublic void deletelead() {\n\t\t\r\n\t\t\r\n\t WebElement Leadlink=locateElement(\"link\",\"Leads\");\r\n\t click(Leadlink);\r\n\t WebElement FindLeadlink=locateElement(\"link\",\"Find Leads\");\r\n\t click...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method holds the constructor for the class.
public ElectronicsItem(String nameIn, double priceIn, double weightIn) { super(nameIn, priceIn); weight = weightIn; }
[ "public Cachorro() {\r\n }", "private PrivateConstructor() { \n \t\n }", "public Tanh() {\n\t}", "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "public Chord()\n\t{\n\t}", "private CSCreator() {\n }", "public Kakuro() {\n\t}", "public MyClass(){\n\t\tsuper();\n\t}", "protected ExampleObject() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the sku's Quantity Reserved quantity pair.
Pair<BigDecimal, BigDecimal> getQuantity(List<Warehouse> warehouses, ProductSku productSku);
[ "@Override\n\tpublic int getQuantity() {\n\t\treturn _officeSupply.getQuantity();\n\t}", "@java.lang.Override\n public long getAvailableQuantity() {\n return availableQuantity_;\n }", "@Hidden\n\t@Programmatic\n\tpublic BigDecimal getUnitSkuQuantity(){\n\t\tBigDecimal multiplier = new BigDecimal(1);\n\t\tL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
db.execSQL(" DROP TABLE IF EXISTS " + tables.userTable);
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(" DROP TABLE IF EXISTS " + tables.careerTable); db.execSQL(" DROP TABLE IF EXISTS " + tables.courseTable); db.execSQL(" DROP TABLE IF EXISTS " + tables.studentTable); db.execSQL(" DROP TAB...
[ "public void deleteUsers() { \n\t\t\t SQLiteDatabase db = dbHelper.getWritableDatabase(); \n\t\t\t db.execSQL(\"DROP TABLE IF EXISTS \" + DatabaseHelper.USERS);\n\t\t\t\tdb.execSQL(DatabaseHelper.DATABASE_CREATE); \n\t\t\t}", "public void deleteAllTables (){\n dbHandlerWrite.execSQL(\"DROP TABLE IF E...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build a generator with no sequences generator.
public Generator() { this.propagators = new ArrayList<>(); this.schedulers = new ArrayList<>(); }
[ "public Builder clearGenId() {\n genId_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "private EmptySequence() {}", "FullGen()\r\n {\r\n this.aGen1 = new Generator(2,1);\r\n this.aGen2 = new Generator(3...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 wins = 6;
public Builder clearWins() { bitField0_ = (bitField0_ & ~0x00000020); wins_ = 0; onChanged(); return this; }
[ "int numP1Wins(int wins);", "public void setWins() {\n wins++;\n }", "public void won()\n { \n wins++;\n rounds++;\n }", "public void updateWins() {\n wins++;\n }", "int gameWinner();", "int winner();", "int getWinner() throws IllegalArgu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true can be used in field comments.
@Override public boolean inField() { return false; }
[ "public boolean isCommentsEnabled() {\n return !\"no\".equalsIgnoreCase(getComponentParameterValue(\"comments\"));\n }", "boolean hasCommentText();", "boolean hasDocComment();", "public boolean hasSpecificComment() {\n return ((bitField1_ & 0x00080000) == 0x00080000);\n }", "boolean hasFie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table per_sys_sub
int updateByPrimaryKey(PerSysSub record);
[ "public static String user_subtrans_view(){\r\n\t\tStringBuffer sql=new StringBuffer();\r\n\t\tsql.append(\" (select distinct ur.trans_code,ur.sub_trans_code,\");\r\n\t\tsql.append(\" ur.right_flag ,ur.user_id from tsys_user_right ur\");\r\n\t\tsql.append(\" union\");\r\n\t\tsql.append(\" select distinct rr.trans_c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Linear interpolation between p1 and p2, at position t between t1 and t2, where t1 is the coordinate of p1 and t2 is the coordinate of p2.
public static float interpolateLinear(LinearInterpolationPoints points, float t) { return interpolateLinear(points.p1, points.p2, points.t1, points.t2, t); }
[ "private static double lerp (double x, double x0, double x1, double y0, double y1)\n {\n return ((x-x0)/(x1-x0))*(y1-y0) + y0;\n }", "public static Vector2 lerp(Vector2 v1,Vector2 v2,float t){return Vector2.add(v1,Vector2.mul(Vector2.sub(v2,v1),t));}", "public float lerp(float val, float x0, float ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 55 /Coverage entropy=0.0
@Test(timeout = 4000) public void test055() throws Throwable { DefaultDBTable defaultDBTable0 = new DefaultDBTable(); String[] stringArray0 = new String[2]; DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, "[^JD`Wfr*,x,k", false, stringArray0); StringBuilder s...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the hex representation of a string's SHA256 hash
public static String hash(String text) { try { // Create a SHA256 digest MessageDigest digest; digest = MessageDigest.getInstance("SHA-256"); // allocate room for the result of the hash byte[] hashBytes; // perform the hash ...
[ "private static String hash(String s)\n\t{\n\t MessageDigest md = null;\n\t try {\n\t md = MessageDigest.getInstance(\"SHA-256\");\n\t } catch (NoSuchAlgorithmException e1) {\n\t e1.printStackTrace();\n\t }\n\t md.update(s.getBytes());\n\n\t byte byteData[] = md.digest();\n\n\t //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Static factory method which returns a new suffix array instance containing a list of suffix elements generated from the passed in word
public static SuffixArray newInstance( String word ) { return new SuffixArray( word ); }
[ "protected ArrayList<String> computeSuffix(int indice){\n //TODO\n }", "public EnhancedSuffixArray(final String s) {\n // add the termination symbol to the input sequence s\n final String tmpSequence = s + this.terminationSymbol;\n // getting the number of distinct characters in the...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a file from the list of files for the request
public void removeFile(NormalFile file, int reqId);
[ "@WebMethod\r\n\tServiceResponse deleteFile(@WebParam(name = \"lookup\") String lookup, @WebParam(name = \"filename\") String filename, @WebParam(name = \"path\") List<String> path);", "void remove(File recs) throws IOException;", "void removeFile(String storeCode, String filename) throws ServiceException;", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
export node content to a URL.
public void copyContentToURL(URL url) throws UnsupportedOperationException, NodeNotFoundFault, FileManagerFault, RemoteException, MalformedURIException;
[ "@Override\n\tpublic void write(int depth, T model) {\n\t\tout.print(url.toExternalForm());\n\t}", "@Test\n public void testToNode() {\n assertEquals(\"Convert bnode\", \"_:a \", sink.toNode(\"_:a\"));\n assertEquals(\"Convert var\", \"?a \", sink.toNode(\"?a\"));\n assertEquals(\"Convert ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getCell returns a Cell object that represents the location, specified by the input parameters x and y, on the board. The Cell object contains information about whether there is a chip at the coordinate (x,y) on the board and also contains the coordinates themselves.
public Cell getCell(int x, int y) { if (isCorner(x, y)) { return new Cell(); } if (x > 7 || y > 7 || x < 0 || y < 0) { return new Cell(); } return board[x][y]; }
[ "public ChessboardCell getCell(int x, int y) {\n return chessboardModel.getCell(x, y);\n }", "public Cell getCell(int x, int y) {\n return this.grid.getCell(x, y);\n }", "public GridCell getCell(int x, int y) {\n\t\treturn this.grid[getIndex(new int[] { x, y })];\n\t}", "Cell getCellAt(int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Function to update local database values: 1. Reads up to 20 minutes of syncrhonized samples 2. Sends those values to the server 3. Erase updated and synchronized samples (leaving a safety margin)
private boolean updateDatabase(int samples, int safetyMargin){ //1. Erase all previously updated values deleteUpdatedValues(safetyMargin); //2. Obtain not updated values from database /*List<Map<String, String>> listReadToServer = StoringThread.myDB.getNotCheckedValues (BGService.empatica...
[ "public synchronized void updateCurData() {\r\n\t\tif(m_curThroughput != 0) {\r\n\t\tm_hisResponseNum = m_curResponseNum;\r\n\t\tm_hisThroughput = m_curThroughput;\r\n\t\tm_hisResponseTime=m_curResponseTime/m_hisResponseNum;\r\n\t\tm_curResponseNum = 0;\r\n\t\tm_curThroughput = 0;\r\n\t\tm_curResponseTime=0.0;\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RunVersion1 a = new RunVersion1(); RunVersion2 b = new RunVersion2();
public static void main(String[] args) { }
[ "public static void main(String[] args) {\ntrail obj = new trail();\nobj.run2();\n//obj1.run();\n//obj2.run();\n\t}", "public static void main(String[] args) {\n\t\tsub1 s1= new sub1();\r\n\t\tsub2 s2 =new sub2();\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tR1 obj = new R1();\n\t\tR1 obj...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Purpose: fillAllMandatory method is used to fill all mandatory fields while creating questions.
public void fillAllMandatory() { try { //Select select = new Select(contentResourcePage.selectKeyboard); objListOFTestDataForSunbird1= ReadTestDataFromExcel.getTestDataForDiksha("testdatasheetcourse"); ExtentTestManager.getTest().log(LogStatus.INFO, "User is trying to fill all the mandatory fields for sub...
[ "private void fillQuestionsTable(){\n Question q1 = new Question(\"Easy: What is the largest country in the world?\",\n \"Russia\", \"China\", \"USA\", 1, Question.DIFFICULTY_EASY);\n addQuestion(q1);\n\n Question q2 = new Question(\"Easy: How many rings are on the Olympic flag?\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_invite, container, false); // return inflater.inflate(R.layout.fragment_invite, container, false); mCo...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Administrator on 2016/6/3.
public interface HostRaceJoinService extends GenericManager<HostRaceJoin> { public Page<HostRaceJoin> findAll(HostRaceJoin hostRaceJoin, Integer currentPage, Integer pageSize) throws Exception; }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void preVisit(ASTTest node) { super.preVisit(node); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Resets money taken for train tickets
public void resetTotalTakings (){totalTakings = 0;}
[ "private void resetAmount() {\n previousBalance += newBalance;\n purchases = 0;\n balanceTransfers = 0;\n newBalance = 0;\n fees = 0;\n interest = 0;\n cashAdvances = 0;\n numberOfPurchases = 0; \n \n }", "private void takeDepositeMoney() {\n\t\tmoneyi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
anything has its limit ,but how to describe this? also the limit may change by time,what's the shifting
public abstract Object getBorder();
[ "public int getRunLimit();", "public Integer getLowerLimit();", "Integer limit();", "public boolean supportsLimit() {\n \t\treturn true;\n \t}", "public void setLimit(int count){this.count = count;this.from = 0;}", "public Integer getLimit() {return limit;}", "long getBytesLimit();", "public void lim...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wert, der das "SortNo"te "Binary" zum Beitrag EINDEUTIG referenziert, und damit quasi eine Alternative zur "SortNo" (siehe z.B. "fo_DeletePostingBinary_Pu") .dstore.values.StringValue posting_binary_identifier = 10003;
public boolean hasPostingBinaryIdentifier() { return postingBinaryIdentifier_ != null; }
[ "public Short getSortNo() {\r\n return sortNo;\r\n }", "io.dstore.values.StringValue getOrderContentNo();", "public int getSortNo() {\n return sortNo_;\n }", "io.dstore.values.IntegerValueOrBuilder getValueSortNoOrBuilder();", "com.google.protobuf.ByteString\n getSortIdBytes();", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the root with new node inserted. If no root is passed, then the newNode becomes the root of the original tree.
private void insertIterative(TreeNode rootNode, TreeNode newNode){ TreeNode parent = null; if (rootNode == null){ this.root = newNode; newNode.parent = null; return; // System.out.println("Inserting key " + newNode.key + " as root"); } else { TreeNode currentNode = rootNode; int cmp = newNode.k...
[ "private void setNewRoot(Node newRoot) {\n\n this.root = Optional.of(newRoot);\n }", "public void insert(int value) {\n if (root == null) {\n root = new TreeNode(value);\n }\n else {\n root.insert(value);\n }\n}", "private Node insertRoot(Node node, Interval interval, V label...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
core attributes doesn't have modules !!
@Override public void removeAndUnregisterAttrModule(PerunSession sess, AttributeDefinition attribute) { if (isCoreAttribute(sess, attribute)) return; String moduleName = attributeNameToModuleName(attribute.getNamespace() + ":" + attribute.getFriendlyName()); AttributesModuleImplApi attributeModule = attributesM...
[ "private ModuleList getCoreMod(){return this.coreMod;}", "Object getAttributesModule(PerunSession sess, AttributeDefinition attribute);", "public interface Attributes\n{\n public static final String SYSTEM_NAMESPACE = \"/system\";\n\n /**\n * Get a list of attribute names associated with this object.\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses the contents of resource data from the specified input stream and returns a map of LanguageBundle with bundle identifiers as keys.
public abstract Map<String, LanguageBundle> parse(InputStream inStream, FilterOptions options) throws IOException, ResourceFilterException;
[ "ResourceBundles readFunctionalDeviceInfoFromJarFile(InputStream input);", "private void loadResourceMap(FileInputStream ins) throws BuildException {\n try {\n BufferedReader in = null;\n InputStreamReader isr = new InputStreamReader(ins, bundleEncoding);\n in = new Buf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }