language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
private String stripPrefix(final String input, final String searchString) { return input.substring(searchString.length(), input.length()).trim(); }
java
@Override protected void visitLogNode(LogNode node) { if (isComputableAsJsExprsVisitor.execOnChildren(node)) { List<Expression> logMsgChunks = genJsExprsVisitor.execOnChildren(node); jsCodeBuilder.append(WINDOW_CONSOLE_LOG.call(CodeChunkUtils.concatChunks(logMsgChunks))); } else { // Must ...
python
def fit(args, network, data_loader, **kwargs): """ train a model args : argparse returns network : the symbol definition of the nerual network data_loader : function that returns the train and val data iterators """ # kvstore kv = mx.kvstore.create(args.kv_store) if args.gc_type != '...
python
def get_vcs_details_output_vcs_details_node_vcs_mode(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_vcs_details = ET.Element("get_vcs_details") config = get_vcs_details output = ET.SubElement(get_vcs_details, "output") vcs_details = ...
java
@Override public int read() throws IOException, StreamIntegrityException { if (trailerIn == null) { initializeStream(); } int result = pushbackInputStream.read(); return completeRead(result); }
python
def guess_github_repo(): """ Guesses the github repo for the current directory Returns False if no guess can be made. """ p = subprocess.run(['git', 'ls-remote', '--get-url', 'origin'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=False) if p.stderr or p.returncode: ret...
python
def _context_callbacks(app, key, original_context=_CONTEXT_MISSING): """Register the callbacks we need to properly pop and push the app-local context for a component. Args: app (flask.Flask): The app who this context belongs to. This is the only sender our Blinker si...
python
def _python_installed(ret, python, user=None): ''' Check to see if given python is installed. ''' default = __salt__['pyenv.default'](runas=user) for version in __salt__['pyenv.versions'](user): if version == python: ret['result'] = True ret['comment'] = 'Requested py...
python
def _to_add(self, **kwargs): ''' Used for info1. ''' if 'catid' in kwargs: catid = kwargs['catid'] return self._to_add_with_category(catid) else: if 'uid' in kwargs and MPost.get_by_uid(kwargs['uid']): # todo: ...
java
public void index(final ByteBuffer key, final ColumnFamily columnFamily, final long timestamp) { if (indexQueue == null) { indexInner(key, columnFamily, timestamp); } else { indexQueue.submitAsynchronous(key, new Runnable() { @Override public void ...
java
public GISModel getModel () throws java.io.IOException { checkModelType(); int correctionConstant = getCorrectionConstant(); double correctionParam = getCorrectionParameter(); String[] outcomeLabels = getOutcomes(); int[][] outcomePatterns = getOutcomePatterns(); String[]...
python
def delaunay_3d(dataset, alpha=0, tol=0.001, offset=2.5): """Constructs a 3D Delaunay triangulation of the mesh. This helps smooth out a rugged mesh. Parameters ---------- alpha : float, optional Distance value to control output of this filter. For a non-zero ...
java
public void delete(String resourceGroupName, String registryName) { deleteWithServiceResponseAsync(resourceGroupName, registryName).toBlocking().single().body(); }
java
@Override public Connection connect(String url, Properties info) throws SQLException { if (url == null) { throw new SQLException("url is null"); } // get defaults Properties defaults; if (!url.startsWith("jdbc:postgresql:")) { return null; } try { defaults = getDefaultPr...
java
public final EObject ruleXConditionalExpression() throws RecognitionException { EObject current = null; Token lv_conditionalExpression_2_0=null; Token otherlv_4=null; EObject this_XOrExpression_0 = null; EObject lv_then_3_0 = null; EObject lv_else_5_0 = null; ...
python
def switch_to_frame(self, frame, timeout=settings.SMALL_TIMEOUT): """ Sets driver control to the specified browser frame. """ if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT: timeout = self.__get_new_timeout(timeout) page_actions.switch_to_frame(self.driver, frame, t...
java
private void initializeContentBuffer() throws IOException { if (this.seekEnabled) { this.buffer = ByteBuffer.allocate(this.fileSize - HEADER_BYTES); final int read = this.stream.read(this.buffer); if (read < 0) { throw new EOFException(); } this.buffer.rewind(); this.buffer.limit(read); this....
python
def set_symbol(self, feature_id, symbol, organism=None, sequence=None): """ Set a feature's description :type feature_id: str :param feature_id: Feature UUID :type symbol: str :param symbol: Feature symbol :type organism: str :param organism: Organism C...
python
def point_type(name, fields, srid_map): """ Dynamically create a Point subclass. """ def srid(self): try: return srid_map[len(self)] except KeyError: return None attributes = {"srid": property(srid)} for index, subclass_field in enumerate(fields): ...
python
def files_walker(directory, filters_in=None, filters_out=None, flags=0): """ Defines a generator used to walk files using given filters. Usage:: >>> for file in files_walker("./foundations/tests/tests_foundations/resources/standard/level_0"): ... print(file) ... ./found...
java
public void scale(float scale) { if (scale != 1.0f) { left = (int) (left * scale + 0.5f); top = (int) (top * scale + 0.5f); right = (int) (right * scale + 0.5f); bottom = (int) (bottom * scale + 0.5f); } }
java
public final T addCssClass(String value) { if (StringUtils.isNotEmpty(value)) { return setCssClass(StringUtils.isNotEmpty(getCssClass()) ? getCssClass() + " " + value : value); } else { return (T)this; } }
java
private boolean checkNumArguments() { //Also, since we're iterating over all options and args, use this opportunity to recreate the commandLineString final StringBuilder commandLineString = new StringBuilder(); try { for (final OptionDefinition optionDefinition : optionDefinitions) {...
java
public static RoundedMoney of(String currencyCode, Number number, MonetaryContext monetaryContext, MonetaryOperator rounding) { return new RoundedMoney(number, Monetary.getCurrency(currencyCode), DEFAULT_MONETARY_CONTEXT.toBuilder().importContext(monetaryContext...
python
def get_titles(): '''returns titles of all open windows''' if os.name == 'posix': for proc in get_processes(): cmd = ['xdotool','search','--name', proc] proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) window_ids = proc.communicate()[0].dec...
java
protected JComponent createButtonBar() { this.dialogCommandGroup = getCommandManager().createCommandGroup(null, getCommandGroupMembers()); JComponent buttonBar = this.dialogCommandGroup.createButtonBar(); GuiStandardUtils.attachDialogBorder(buttonBar); return buttonBar; }
java
protected <T> T handleResponse(OkHttpClient client, Request.Builder requestBuilder, Class<T> type, Map<String, String> parameters) throws ExecutionException, InterruptedException, KubernetesClientException, IOException { VersionUsageUtils.log(this.resourceT, this.apiGroupVersion); Request request = requestBuild...
java
@Override public T addAsManifestResource(File resource, ArchivePath target) throws IllegalArgumentException { Validate.notNull(resource, "Resource should be specified"); Validate.notNull(target, "Target should be specified"); if (resource.isFile()) { return addAsManifestResource...
java
public void formatUnits(List<UnitValue> values, StringBuilder destination, UnitFormatOptions options) { int size = values.size(); for (int i = 0; i < size; i++) { if (i > 0) { destination.append(' '); } formatUnit(values.get(i), destination, options); } }
python
def get_scenario(scenario_id,**kwargs): """ Get the specified scenario """ user_id = kwargs.get('user_id') scen_i = _get_scenario(scenario_id, user_id) scen_j = JSONObject(scen_i) rscen_rs = db.DBSession.query(ResourceScenario).filter(ResourceScenario.scenario_id==scenario_id).options...
java
@Override public java.util.concurrent.Future<DescribeTableResult> describeTableAsync(String tableName, com.amazonaws.handlers.AsyncHandler<DescribeTableRequest, DescribeTableResult> asyncHandler) { return describeTableAsync(new DescribeTableRequest().withTableName(tableName), asyncHandler); ...
python
def merge_groundings(stmts_in): """Gather and merge original grounding information from evidences. Each Statement's evidences are traversed to find original grounding information. These groundings are then merged into an overall consensus grounding dict with as much detail as possible. The current...
java
public java.util.List<Queue> getQueues() { if (queues == null) { queues = new com.amazonaws.internal.SdkInternalList<Queue>(); } return queues; }
java
private Criteria buildCriteria(QueryModel queryModel) { Criteria criteria = getCurrentSession().createCriteria(persistentClass); if (queryModel.getConditions() != null) { for (Condition condition : queryModel.getConditions()) { criteria.add((Criterion) condition.getConstrain...
java
protected void unassignFromUserObjectInDb(final Type _unassignType, final JAASSystem _jaasSystem, final AbstractUserObject _object) throws EFapsException { Connection con = null; try { con...
python
def cosine_similarity(F_a, F_b): """ Calculate `cosine similarity <http://en.wikipedia.org/wiki/Cosine_similarity>`_ for sparse feature vectors. Parameters ---------- F_a : :class:`.Feature` F_b : :class:`.Feature` Returns ------- similarity : float Cosine similarit...
python
def _generate_scene_func(self, gen, func_name, create_new_scene, *args, **kwargs): """Abstract method for running a Scene method on each Scene. Additionally, modifies current MultiScene or creates a new one if needed. """ new_gen = self._call_scene_func(gen, func_name, create_new_scene,...
python
def enable_plugin(name, runas=None): ''' Enable a RabbitMQ plugin via the rabbitmq-plugins command. CLI Example: .. code-block:: bash salt '*' rabbitmq.enable_plugin foo ''' if runas is None and not salt.utils.platform.is_windows(): runas = salt.utils.user.get_user() cmd =...
python
def colorspace(im, bw=False, replace_alpha=False, **kwargs): """ Convert images to the correct color space. A passive option (i.e. always processed) of this method is that all images (unless grayscale) are converted to RGB colorspace. This processor should be listed before :func:`scale_and_crop` s...
java
public static PoliciesCache fromSourceProvider( final SourceProvider provider, final Set<Attribute> forcedContext ) { return new PoliciesCache(provider, forcedContext); }
python
def _get_answer_spans(answer_list, answer_start_list): """Find all answer spans from the context, returning start_index and end_index :param list[str] answer_list: List of all answers :param list[int] answer_start_list: List of all answers' start indices Returns ------- ...
java
public void drawOval(float x1, float y1, float width, float height) { drawOval(x1, y1, width, height, DEFAULT_SEGMENTS); }
java
public static <T> List<T> selectRandomSubset (Collection<T> col, int count) { int csize = col.size(); if (csize < count) { String errmsg = "Cannot select " + count + " elements " + "from a collection of only " + csize + " elements."; throw new IllegalArgumentE...
java
public int setDateTime(java.util.Date date, boolean bDisplayOption, int iMoveMode) { if (date == null) return this.setData(date, bDisplayOption, iMoveMode); m_calendar.setTime(date); m_calendar.set(Calendar.HOUR_OF_DAY, DBConstants.HOUR_DATE_ONLY); m_calendar.set(Calendar...
python
def crossover(dna1, dna2): """crossover dna1 and dna2 at a random index""" pos = int(random.random()*len(dna1)) if random.random() < 0.5: return (dna1[:pos]+dna2[pos:], dna2[:pos]+dna1[pos:]) else: return (dna2[:pos]+dna1[pos:], dna1[:pos]+dna2[pos:])
python
def render_field(self, obj, field_name, **options): """Render field""" try: field = obj._meta.get_field(field_name) except FieldDoesNotExist: return getattr(obj, field_name, '') if hasattr(field, 'choices') and getattr(field, 'choices'): return getatt...
java
public void mark(Label label) { adopt(label); if (label.marked) { throw new IllegalStateException("already marked"); } label.marked = true; if (currentLabel != null) { jump(label); // blocks must end with a branch, return or throw } current...
python
def fielddefsql_from_fieldspeclist( self, fieldspeclist: FIELDSPECLIST_TYPE) -> str: """Returns list of field-defining SQL fragments.""" return ",".join([ self.fielddefsql_from_fieldspec(x) for x in fieldspeclist ])
java
private ManagedBeanInvocation getServiceInvocation(Message message, JmxEndpointConfiguration endpointConfiguration) { Object payload = message.getPayload(); ManagedBeanInvocation serviceInvocation = null; if (payload != null) { if (payload instanceof ManagedBeanInvocation) { ...
python
def is_de_listed(self): """ 判断合约是否过期 """ instrument = Environment.get_instance().get_instrument(self._order_book_id) current_date = Environment.get_instance().trading_dt if instrument.de_listed_date is not None and current_date >= instrument.de_listed_date: re...
java
protected List<VCProject> getParsedProjects( BuildPlatform platform, BuildConfiguration configuration ) throws MojoExecutionException { Map<String, String> envVariables = new HashMap<String, String>(); if ( isCxxTestEnabled( null, true ) ) { envVariables.put...
python
def compute_wcs(key, challenge): """ Compute an WAMP-CRA authentication signature from an authentication challenge and a (derived) key. :param key: The key derived (via PBKDF2) from the secret. :type key: str/bytes :param challenge: The authentication challenge to sign. :type challenge: str...
java
public static BufferedImage rotate(BufferedImage image, double angle, int cx, int cy) { int width = image.getWidth(null); int height = image.getHeight(null); int minX, minY, maxX, maxY; minX = minY = maxX = maxY = 0; int[] corners = {0, 0, width, 0, width, height, 0, hei...
java
public Vector<TaskInProgress> reportCleanupTIPs(boolean shouldBeComplete) { Vector<TaskInProgress> results = new Vector<TaskInProgress>(); for (int i = 0; i < cleanup.length; i++) { if (cleanup[i].isComplete() == shouldBeComplete) { results.add(cleanup[i]); } } return results; }
java
protected Widget getViewFromAdapter(final int index, ListItemHostWidget host) { return mAdapter == null ? null : mAdapter.getView(index, host.getGuest(), host); }
java
@SuppressWarnings("unchecked") @Override public EList<IfcRelConnectsStructuralActivity> getAssignedStructuralActivity() { return (EList<IfcRelConnectsStructuralActivity>) eGet( Ifc4Package.Literals.IFC_STRUCTURAL_ITEM__ASSIGNED_STRUCTURAL_ACTIVITY, true); }
java
public JMFMessage copy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "copy"); JMFMessage copy; synchronized (getMessageLockArtefact()) { if (map == null) { // If there is no map, then this is already become just a delegator, so // the copy ...
java
public void addNotIn(String attribute, Collection values) { List list = splitInCriteria(attribute, values, true, IN_LIMIT); InCriteria inCrit; for (int index = 0; index < list.size(); index++) { inCrit = (InCriteria) list.get(index); addSelectionCriteri...
python
def delete_raw(self): """Delete the current entity. Make an HTTP DELETE call to ``self.path('base')``. Return the response. :return: A ``requests.response`` object. """ return client.delete( self.path(which='self'), **self._server_config.get_client_kwar...
python
def get_aad_content_string(content_type, is_final_frame): """Prepares the appropriate Body AAD Value for a message body. :param content_type: Defines the type of content for which to prepare AAD String :type content_type: aws_encryption_sdk.identifiers.ContentType :param bool is_final_frame: Boolean st...
python
def get_angles(self, angle_id): """Get sun-satellite viewing angles""" tic = datetime.now() sunz40km = self._data["ang"][:, :, 0] * 1e-2 satz40km = self._data["ang"][:, :, 1] * 1e-2 azidiff40km = self._data["ang"][:, :, 2] * 1e-2 try: from geotiepoints.inte...
java
@Override public V get(Object key) { // Keys can not be null if (key == null) { throw new NullPointerException("Key can not be null"); } if (!(key instanceof String)) { throw new ClassCastException("Only String keys are supported -- got " + key.getClass()); ...
java
protected void addDocIterators(Collection<Iterator<Document>> docIters, String[] fileNames) throws IOException { // All the documents are listed in one file, with one document per line for (String s : fileNames) docIters.add(new DependencyFileDocumentIterat...
java
@Override public Date parse(String str, ParsePosition pos) { Date result; if (str == null || str.trim().length() == 0) { result = null; pos.setIndex(-1); } else { result = parseNonNullDate(str, pos); } return result; }
java
public String readResource(URI endpoint, CredentialsEndpointRetryPolicy retryPolicy, Map<String, String> headers) throws IOException { int retriesAttempted = 0; InputStream inputStream = null; headers = addDefaultHeaders(headers); while (true) { try { HttpUR...
java
private String persistWorkUnit(final Path workUnitFileDir, final WorkUnit workUnit, ParallelRunner stateSerDeRunner) throws IOException { final StateStore stateStore; String workUnitFileName = workUnit.getId(); if (workUnit instanceof MultiWorkUnit) { workUnitFileName += MULTI_WORK_UNIT_FILE_EX...
java
public void setupReadListener(ReadListener readListenerl, SRTUpgradeInputStream31 srtUpgradeStream){ if(readListenerl == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isErrorEnabled()) Tr.error(tc, "readlistener.is.null"); throw new NullPointerException(T...
python
def proQuestRecordParser(enRecordFile, recNum): """The parser [ProQuestRecords](../classes/ProQuestRecord.html#metaknowledge.proquest.ProQuestRecord) use. This takes an entry from [proQuestParser()](#metaknowledge.proquest.proQuestHandlers.proQuestParser) and parses it a part of the creation of a `ProQuestRecord`. ...
python
def tick(self): """Updates meters""" for m in self._meters: m.tick() self['m1'] = self._m1.rate self['m5'] = self._m5.rate self['m15'] = self._m15.rate
python
def kronecker_lmm(snps,phenos,covs=None,Acovs=None,Asnps=None,K1r=None,K1c=None,K2r=None,K2c=None,covar_type='lowrank_diag',rank=1,NumIntervalsDelta0=100,NumIntervalsDeltaAlt=0,searchDelta=False): """ simple wrapper for kroneckerLMM code Args: snps: [N x S] SP.array of S SNPs for N individuals (t...
python
def generate_mapping(order): """ This function will take an order string and return a mapping between components in the metric and the various Lambda components. This must be used (and consistently used) when generating the metric *and* when transforming to/from the xi_i coordinates to the lambda_i ...
python
def makefile(self, sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE): """Return socket file object.""" cls = StreamReader if 'r' in mode else StreamWriter return cls(sock, mode, bufsize)
python
def update(self, i): """D.update(E) -> None. Update D from iterable E with pre-existing items being overwritten. Elements in E are assumed to be dicts containing the primary key to allow the equivelent of: for k in E: D[k.primary_key] = k """ key_list = ...
python
def future(self,in_days=None,in_hours=None,in_minutes=None,in_seconds=None): """ Function to return a future timestep """ future = None # Initialize variables to 0 dd, hh, mm, ss = [0 for i in range(4)] if (in_days != None): dd = dd + in_days ...
java
public static int mix32(int k) { k = (k ^ (k >>> 16)) * 0x85ebca6b; k = (k ^ (k >>> 13)) * 0xc2b2ae35; return k ^ (k >>> 16); }
java
public Optional<Dashboard> update(Dashboard dashboard) { return HTTP.PUT(String.format("/v2/dashboards/%d.json", dashboard.getId()), dashboard, DASHBOARD); }
python
def view_get(method_name): """ Creates a getter that will drop the current value, and call the view's method with specified name using the context's key as first argument. @param method_name: the name of a method belonging to the view. @type method_name: str """ def view_get(_value, con...
python
def document_for_search(self, search_state): """ Return a :class:`~prompt_toolkit.document.Document` instance that has the text/cursor position for this search, if we would apply it. This will be used in the :class:`~prompt_toolkit.layout.controls.BufferControl` to display ...
java
public void add(VerifierComponent descr) { if ( subSolver != null ) { subSolver.add( descr ); } else { if ( type == OperatorDescrType.AND ) { if ( possibilityLists.isEmpty() ) { possibilityLists.add( new HashSet<VerifierComponent>() ); ...
java
public void debug(Marker marker, String format, Object... argArray) { if (!logger.isDebugEnabled(marker)) return; if (instanceofLAL) { FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray); ((LocationAwareLogger) logger).log(marker, fqcn, LocationAwareL...
java
private final T expeditedExtract() { T old = expeditedBuffer[expeditedTakeIndex]; expeditedBuffer[expeditedTakeIndex] = null; if (++expeditedTakeIndex >= expeditedBuffer.length) expeditedTakeIndex = 0; return old; }
python
def add_sam2rnf_parser(subparsers, subcommand, help, description, simulator_name=None): """Add another parser for a SAM2RNF-like command. Args: subparsers (subparsers): File name of the genome from which read tuples are created (FASTA file). simulator_name (str): Name of the simulator used in comments. """ ...
python
def process_save(X, y, tokenizer, proc_data_path, max_len=400, train=False, ngrams=None, limit_top_tokens=None): """Process text and save as Dataset """ if train and limit_top_tokens is not None: tokenizer.apply_encoding_options(limit_top_tokens=limit_top_tokens) X_encoded = tokenizer.encode_te...
java
public static String baseUrl() { String baseURL = System.getProperty(BASE_URL_PROPERTY, "/_ah/pipeline/"); if (!baseURL.endsWith("/")) { baseURL += "/"; } return baseURL; }
java
public void put(String localFile, String remoteFile, boolean recursive) throws SshException, ChannelOpenException, SftpStatusException { put(localFile, remoteFile, recursive, null); }
java
private void accum_all(Chunk chks[], Chunk wrks, int nnids[]) { final DHistogram hcs[][] = _hcs; // Sort the rows by NID, so we visit all the same NIDs in a row // Find the count of unique NIDs in this chunk int nh[] = new int[hcs.length+1]; for( int i : nnids ) if( i >= 0 ) nh[i+1]++; ...
python
def apply_branchset(self, branchset_node, branchset): """ See superclass' method for description and signature specification. Parses branchset node's attribute ``@applyToBranches`` to apply following branchests to preceding branches selectively. Branching level can have more tha...
python
def dump_statements(stmts, fname, protocol=4): """Dump a list of statements into a pickle file. Parameters ---------- fname : str The name of the pickle file to dump statements into. protocol : Optional[int] The pickle protocol to use (use 2 for Python 2 compatibility). Defa...
python
def nucmer(args): """ %prog nucmer mappings.bed MTR.fasta assembly.fasta chr1 3 Select specific chromosome region based on MTR mapping. The above command will extract chr1:2,000,001-3,000,000. """ p = OptionParser(nucmer.__doc__) opts, args = p.parse_args(args) if len(args) != 5: ...
java
@Override public CommerceNotificationQueueEntry findByGroupId_First(long groupId, OrderByComparator<CommerceNotificationQueueEntry> orderByComparator) throws NoSuchNotificationQueueEntryException { CommerceNotificationQueueEntry commerceNotificationQueueEntry = fetchByGroupId_First(groupId, orderByComparator...
java
@Override public EClass getIfcConstructionProductResourceType() { if (ifcConstructionProductResourceTypeEClass == null) { ifcConstructionProductResourceTypeEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(133); } return ifcConstructionProductResou...
python
def _prune_maps_to_sequences(self): ''' When we merge the SIFTS maps, we can extend the sequence maps such that they have elements in their domain that we removed from the sequence e.g. 1A2P, residue 'B 3 ' is removed because Rosetta barfs on it. Here, we prune the maps so that their d...
python
def list_active_vms(cwd=None): ''' Return a list of machine names for active virtual machine on the host, which are defined in the Vagrantfile at the indicated path. CLI Example: .. code-block:: bash salt '*' vagrant.list_active_vms cwd=/projects/project_1 ''' vms = [] cmd = ...
java
public final EObject ruleXExpressionInClosure() throws RecognitionException { EObject current = null; Token otherlv_2=null; EObject lv_expressions_1_0 = null; enterRule(); try { // InternalXbase.g:2641:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDecla...
java
public String getTextForExpression(DJGroup group, DJGroup childGroup, String type) { return "new Double( $V{" + getReportName() + "_" + getGroupVariableName(childGroup) + "}.doubleValue() / $V{" + getReportName() + "_" + getGroupVariableName(type,group.getColumnToGroupBy().getColumnProperty().getProperty()) + "}.dou...
java
public final void mISO() throws RecognitionException { try { int _type = ISO; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:602:6: ( ( 'ISO' ) ) // druidG.g:602:7: ( 'ISO' ) { // druidG.g:602:7: ( 'ISO' ) // druidG.g:602:8: 'ISO' { match("ISO"); } } state.type = _type; s...
java
@Override public com.liferay.commerce.model.CommerceCountry fetchCommerceCountryByUuidAndGroupId( String uuid, long groupId) { return _commerceCountryLocalService.fetchCommerceCountryByUuidAndGroupId(uuid, groupId); }
python
def maps_get_rules_output_rules_policyname(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") maps_get_rules = ET.Element("maps_get_rules") config = maps_get_rules output = ET.SubElement(maps_get_rules, "output") rules = ET.SubElement(output...
java
void set(final long longVal) { this.type = ClassWriter.LONG; this.longVal = longVal; this.hashCode = 0x7FFFFFFF & (type + (int) longVal); }
python
def get_vexrc(options, environ): """Get a representation of the contents of the config file. :returns: a Vexrc instance. """ # Complain if user specified nonexistent file with --config. # But we don't want to complain just because ~/.vexrc doesn't exist. if options.config and not os.pat...