language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def soldOutForRole(self,role,includeTemporaryRegs=False): ''' Accepts a DanceRole object and responds if the number of registrations for that role exceeds the capacity for that role at this event. ''' return self.numRegisteredForRole( role,includeTemporaryRegs=include...
java
public static Task<NavigationResult> navigateInBackground(final Context context, Uri destination, AppLinkResolver resolver) { return resolver.getAppLinkFromUrlInBackground(destination) ...
python
def jacobian(self, maps): """Returns the Jacobian for transforming mchirp and eta to mass1 and mass2. """ mchirp = maps[parameters.mchirp] eta = maps[parameters.eta] m1 = conversions.mass1_from_mchirp_eta(mchirp, eta) m2 = conversions.mass2_from_mchirp_eta(mchirp,...
java
public static String getXAResourceVoteString(int vote) { switch (vote) { case XAResource.XA_OK: return "XA_OK (" + vote + ')'; case XAResource.XA_RDONLY: return "XA_RDONLY (" + vote + ')'; } return "UNKNOWN XA RESOURCE VOTE (" + vote + ...
java
public PythonDataStream<SingleOutputStreamOperator<PyObject>> flat_map( FlatMapFunction<PyObject, Object> flat_mapper) throws IOException { return new PythonSingleOutputStreamOperator(stream.flatMap(new PythonFlatMapFunction(flat_mapper))); }
java
@Override public final <RQ, RS> Maybe<RS> postFor(String resource, RQ rq, Class<RS> clazz) throws RestEndpointIOException { return post(resource, rq, clazz).flatMap(new BodyTransformer<RS>()); }
java
public synchronized void put(Key key, Value value) { long valueSize = value.getSize(); if (maxSizeBytes == 0 || maxSizeEntries == 0 || valueSize * 2 > maxSizeBytes) { // Just destroy the value if cache is disabled or if entry would consume more than a half of // the cache evictValue(value); ...
java
public static <K, V> Func1<Iterable<Pair<K, V>>, SolidMap<K, V>> pairsToSolidMap() { return new Func1<Iterable<Pair<K, V>>, SolidMap<K, V>>() { @Override public SolidMap<K, V> call(Iterable<Pair<K, V>> iterable) { return new SolidMap<>(iterable); } }; ...
java
public Collection<RaftSession> getSessions(PrimitiveId primitiveId) { return sessions.values().stream() .filter(session -> session.getService().serviceId().equals(primitiveId)) .filter(session -> session.getState().active()) .collect(Collectors.toSet()); }
java
public static List<List<IWord>> convert2CompatibleList(List<List<Word>> simpleSentenceList) { List<List<IWord>> compatibleList = new LinkedList<List<IWord>>(); for (List<Word> wordList : simpleSentenceList) { compatibleList.add(new LinkedList<IWord>(wordList)); } ...
python
def generate_urls(self, _version, host_platform): """Append the file's download path to each of --binaries-baseurls. This assumes that the urls in --binaries-baseurls point somewhere that mirrors Pants's organization of the downloaded binaries on disk. Each url is tried in order until a request succeed...
java
private State computeState(List<Object> nodes) { Set<State> set = new LinkedHashSet<State>(); for (Object node : nodes) { set.add(getSelectionState(node)); } // Should never happen while (set.contains(null)) { logger.warning("...
java
public static boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context, final UserProfile profile) { val authTime = profile.getAttribute(CasProtocolConstants.VALIDATION_CAS_MODEL_ATTRIBUTE_NAME_AUTHENTICAT...
java
@Override public CommerceOrder[] findByG_U_O_PrevAndNext(long commerceOrderId, long groupId, long userId, int orderStatus, OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException { CommerceOrder commerceOrder = findByPrimaryKey(commerceOrderId); Session session = null; try { se...
python
def _matching_api_version(self, operation): """Find the latest version of the protocol operation supported by both this library and the broker. This resolves to the lesser of either the latest api version this library supports, or the max version supported by the broker. :param...
java
public CellConstraints xy(int col, int row, Alignment colAlign, Alignment rowAlign) { return xywh(col, row, 1, 1, colAlign, rowAlign); }
python
def find_by_user(user_id, _connection=None, page_size=100, page_number=0, sort_by=enums.DEFAULT_SORT_BY, sort_order=enums.DEFAULT_SORT_ORDER): """ List all videos uploaded by a certain user. """ return connection.ItemResultSet('find_videos_by_user_id', Video, _connect...
python
def _format_date(val, unit): """ Format dates. :param val: Value (just the value, not a quantity) :param unit: Unit. Should be 'rad' or 's' :return: A string representation of this date. >>> _format_date(4914741782.503475, 's') "14-Aug-2014/14:03:03" """ if val==numpy.floor(val) and...
java
public static <T extends Message<T>> void writeTo(OutputStream out, T message, boolean numeric, LinkedBuffer buffer) throws IOException { writeTo(out, message, message.cachedSchema(), numeric, buffer); }
python
def _reset(self): """Set the filter attributes to its default values""" self._in_declare = False self._is_create = False self._begin_depth = 0 self.consume_ws = False self.tokens = [] self.level = 0
python
def Lookup(self, x): """Looks up x and returns the corresponding value of y.""" return self._Bisect(x, self.xs, self.ys)
python
def train(cls, rdd, k, maxIterations=100, initMode="random"): r""" :param rdd: An RDD of (i, j, s\ :sub:`ij`\) tuples representing the affinity matrix, which is the matrix A in the PIC paper. The similarity s\ :sub:`ij`\ must be nonnegative. This is a symmetric ...
python
def copy(self, src, dst, other_system=None): """ Copy object of the same storage. Args: src (str): Path or URL. dst (str): Path or URL. other_system (pycosio.storage.azure._AzureBaseSystem subclass): The source storage system. """ ...
python
def dynamic_update(plot, subplot, key, overlay, items): """ Given a plot, subplot and dynamically generated (Nd)Overlay find the closest matching Element for that plot. """ match_spec = get_overlay_spec(overlay, wrap_tuple(key), sub...
python
def blockreplace(path, marker_start='#-- start managed zone --', marker_end='#-- end managed zone --', content='', append_if_not_found=False, prepend_if_not_found=False, backup='.bak', dry_run=False, show_changes=True, append_newline=False, ...
java
public Chemicals getLigand() { if (GeneRegulationTemplate_Type.featOkTst && ((GeneRegulationTemplate_Type)jcasType).casFeat_ligand == null) jcasType.jcas.throwFeatMissing("ligand", "de.julielab.jules.types.bootstrep.GeneRegulationTemplate"); return (Chemicals)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_ca...
java
public void decide(Authentication authentication, Object resource, Collection<ConfigAttribute> config) throws AccessDeniedException { int grant = 0; Iterator voters = this.getDecisionVoters().iterator(); while (voters.hasNext()) { ...
python
def add_nio(self, nio, port_number): """ Adds a NIO as new port on this hub. :param nio: NIO instance to add :param port_number: port to allocate for the NIO """ if port_number not in [port["port_number"] for port in self._ports]: raise DynamipsError("Port {...
python
def export(self): """Serializes to JSON.""" fields = ['id', 'host', 'port', 'user'] out = {} for field in fields: out[field] = getattr(self, field, None) out['mountOptions'] = self.mount_opts out['mountPoint'] = self.mount_point out['beforeMount'] = se...
python
def __update_all(self): """ Recheck next start of records from all the sources :return: None """ self.__next_start = None self.__next_sources = [] for source in self.__sources: self.__update(source)
java
public static boolean isInBounds( int x , int y , IntegralKernel kernel , int width , int height ) { for(ImageRectangle r : kernel.blocks ) { if( x+r.x0 < 0 || y+r.y0 < 0 ) return false; if( x+r.x1 >= width || y+r.y1 >= height ) return false; } return true; }
java
private void constructEmpty(){ transitionCount = 0; transitionTimes64 = null; typeMapData = null; typeCount = 1; typeOffsets = new int[]{0,0}; finalZone = null; finalStartYear = Integer.MAX_VALUE; finalStartMillis = Double.MAX_VALUE; transitionR...
python
def from_Track(track, maxwidth=80, tuning=None): """Convert a mingus.containers.Track object to an ASCII tablature string. 'tuning' should be set to a StringTuning object or to None to use the Track's tuning (or alternatively the default if the Track hasn't got its own tuning). 'string' and 'fret'...
java
public static boolean isTransientError(Throwable throwable) { if (throwable instanceof CouchbaseLiteException) { CouchbaseLiteException e = (CouchbaseLiteException) throwable; return isTransientError(e.getCBLStatus().getCode()); } else if (throwable instanceof RemoteRequestRespon...
java
public int addInventory(MalisisInventory inventory) { inventories.put(nexInventoryId, inventory); inventory.setInventoryId(nexInventoryId); inventory.addOpenedContainer(this); if (isServer()) inventoryCaches.put(inventory, new InventoryCache(owner, inventory, windowId)); return nexInventoryId++; }
java
public BtrpOperand getImportable(String label, String namespace) { if (canImport(label, namespace)) { return exported.get(label); } return null; }
python
def edit(self, instance_id, userdata=None, hostname=None, domain=None, notes=None, tags=None): """Edit hostname, domain name, notes, and/or the user data of a VS. Parameters set to None will be ignored and not attempted to be updated. :param integer instance_id: the instance ID to...
java
public void writeInt(final int value, final JBBPByteOrder byteOrder) throws IOException { if (byteOrder == JBBPByteOrder.BIG_ENDIAN) { this.writeShort(value >>> 16, byteOrder); this.writeShort(value, byteOrder); } else { this.writeShort(value, byteOrder); this.writeShort(value >>> 16, by...
python
def __error_callback(self, exception, interval): """Execute when there is an error while sending a message. :param exception: Exception which has been thrown while trying to send the message. :param interval: Interval in which the message delivery will be retried. ...
java
public void setSelected(Option option) throws AlreadySelectedException { if (option == null) { // reset the option previously selected selected = null; return; } // if no option has already been selected or the // same option is b...
python
def to_json(obj, pretty=False): """Converts an object to JSON, using the defaults specified in register_json_default. :obj: the object to convert to JSON :pretty: if True, extra whitespace is added to make the output easier to read """ sort_keys = False indent = None separators = (",", ":") if isinsta...
java
public static <T> Iterator<T> merge(Iterator<T>... iterators) { return merge(null, iterators); }
java
public static String getOptions() throws InvalidBrowserOptionsException { String options = getProgramProperty(OPTIONS); if (options == null || "".equals(options)) { throw new InvalidBrowserOptionsException("Browser options aren't set"); } return options; }
java
public static <T> List<T> nullToEmpty(final List<T> list) { return list == null ? N.<T> emptyList() : list; }
python
def sift4(s1, s2, max_offset=5): """ This is an implementation of general Sift4. """ t1, t2 = list(s1), list(s2) l1, l2 = len(t1), len(t2) if not s1: return l2 if not s2: return l1 # Cursors for each string c1, c2 = 0, 0 # Largest common subsequence lcss =...
python
def pivot_query_as_matrix(facet=None, facet_pivot_fields=None, **kwargs): """ Pivot query """ if facet_pivot_fields is None: facet_pivot_fields = [] logging.info("Additional args: {}".format(kwargs)) fp = search_associations(rows=0, facet_fields=[facet], ...
python
def remove_foothills(self, q_data, marked, bin_num, bin_lower, centers, foothills): """ Mark points determined to be foothills as globbed, so that they are not included in future searches. Also searches neighboring points to foothill points to determine if they should also be considered ...
java
public static <T extends Annotation> T tagAnnotation(Annotation annotation, Class<T> tagClass) { Class<?> c = annotation.annotationType(); for (Annotation a : c.getAnnotations()) { if (tagClass.isInstance(a)) { return (T) a; } } return null; }
java
private void pushInitialEventsAsync() { postAsyncSafely("CleverTapAPI#pushInitialEventsAsync", new Runnable() { @Override public void run() { try { getConfigLogger().verbose(getAccountId(), "Queuing daily events"); pushBasicProfile(...
java
public void addPlayerInitCommand(String teamName, boolean isGoalie) { StringBuilder buf = new StringBuilder(); buf.append("(init "); buf.append(teamName); buf.append(" (version "); if (isGoalie) { buf.append(serverVersion); buf.append(") (goalie))"); ...
java
public ConnectionsList withConnections(String... connections) { if (this.connections == null) { setConnections(new java.util.ArrayList<String>(connections.length)); } for (String ele : connections) { this.connections.add(ele); } return this; }
python
def normal_round_float(x: float, dp: int = 0) -> float: """ Hmpf. Shouldn't need to have to implement this, but... Conventional rounding to integer via the "round half away from zero" method, e.g. .. code-block:: none 1.1 -> 1 1.5 -> 2 1.6 -> 2 2.0 -> 2 -1...
java
public static String getRewrittenHrefURI( ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String path, Map params, String fragment, boolean forXML ) throws URISyntaxException ...
python
def fragment(string, name="anonymous", **context): """Translate a template fragment into a callable function. **Note:** Use of this function is discouraged everywhere except tests, as no caching is implemented at this time. Only one function may be declared, either manually, or automatically. If automatic defint...
java
public Observable<VpnGatewayInner> beginUpdateTagsAsync(String resourceGroupName, String gatewayName) { return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1<ServiceResponse<VpnGatewayInner>, VpnGatewayInner>() { @Override public VpnGatewayInner cal...
python
def do_symbols_matching(self): """ Performs symbols matching. """ self._clear_decorations() current_block = self.editor.textCursor().block() data = get_block_symbol_data(self.editor, current_block) pos = self.editor.textCursor().block().position() for symb...
python
def tags(self): """ A dictionary that maps tag names to :class:`Revision` objects. Here's an example based on a mirror of the git project's repository: >>> from pprint import pprint >>> from vcs_repo_mgr.backends.git import GitRepo >>> repository = GitRepo(remote='https...
java
private long getMostRecentZerothPartitionSubJobInstanceId(long rootJobInstanceId, String stepName) { StringBuilder sb = new StringBuilder(":"); sb.append(Long.toString(rootJobInstanceId)); sb.append(":"); sb.append(stepName); sb.append(":0"); String zerothPartitionSubJobName = sb.toString(); ...
python
def sleep_and_retry(func): ''' Return a wrapped function that rescues rate limit exceptions, sleeping the current thread until rate limit resets. :param function func: The function to decorate. :return: Decorated function. :rtype: function ''' @wraps(func) def wrapper(*args, **kargs...
python
def createEditor(self, parent, option, index): """Returns the widget used to edit the item specified by index for editing. The parent widget and style option are used to control how the editor widget appears. Args: parent (QWidget): parent widget. option (QStyleOptionViewItem): ...
java
public JSONAPIDocument<List<Pledge>> fetchPageOfPledges(String campaignId, int pageSize, String pageCursor) throws IOException { return fetchPageOfPledges(campaignId, pageSize, pageCursor, null); }
python
def cleanBlockQuotedText(text, joiner=b' '): """This is an internal utility which takes triple- quoted text form within the document and returns (hopefully) the paragraph the user intended originally.""" L = filter(truth, map(_lineClean, split(text, '\n'))) return joiner.join(L)
python
def unset_fields(self, fields): """ Removes this list of fields from both the local object and the DB. """ self.mongokat_collection.update_one({"_id": self["_id"]}, {"$unset": { f: 1 for f in fields }}) for f in fields: if f in self: del self[f]
python
def dump_pytorch_graph(graph): """List all the nodes in a PyTorch graph.""" f = "{:25} {:40} {} -> {}" print(f.format("kind", "scopeName", "inputs", "outputs")) for node in graph.nodes(): print(f.format(node.kind(), node.scopeName(), [i.unique() for i in node.inputs()], ...
python
def update(self, stats, duration=3, cs_status=None, return_to_browser=False): """Update the screen. INPUT stats: Stats database to display duration: duration of the loop cs_status: "None": standalone or serv...
java
public void optimizePathVisibility(float[] next, float pathOptimizationRange, NavMeshQuery navquery, QueryFilter filter) { // Clamp the ray to max distance. float dist = vDist2D(m_pos, next); // If too close to the goal, do not try to optimize. if (dist < 0.01f) { ...
python
def getDatabases(self): """Returns list of databases. @return: List of databases. """ cur = self._conn.cursor() cur.execute("""SHOW DATABASES;""") rows = cur.fetchall() if rows: return [row[0] for row in rows] else: ...
python
def init_widget(self): """ Bind the on property to the checked state """ super(UiKitSlider, self).init_widget() d = self.declaration if d.min: self.set_min(d.min) if d.max: self.set_max(d.max) if d.progress: self.set_progress(d.progres...
python
def _pp_str(self): """ Return the pretty-printed IRSB. :rtype: str """ sa = [] sa.append("IRSB {") if self.statements is not None: sa.append(" %s" % self.tyenv) sa.append("") if self.statements is not None: for i, s in en...
java
public Double[] exportImaginary() { Double[] ad = new Double[indexSet.size()]; int i = 0; for (IndexMN index: indexSet) { if (imaginary.containsKey(index)) { ad[i] = imaginary.get(index); } else { ad[i] = 0.0; } ...
java
private int findEqual( SearchComparator comp, int lower, int upper, Object searchKey) { int nkeys = numKeys(lower, upper); int idx = -1; if (nkeys < 4) idx = sequentialSearchEqual(comp, lower, upper, searchKey); else idx = binarySearc...
python
def report_altitude(self, altitude): '''possibly report a new altitude''' master = self.master if getattr(self.console, 'ElevationMap', None) is not None and self.mpstate.settings.basealt != 0: lat = master.field('GLOBAL_POSITION_INT', 'lat', 0)*1.0e-7 lon = master.field(...
java
public static Optional<MeteredOutputStream> findWrappedMeteredOutputStream(OutputStream os) { if (os instanceof FilterOutputStream) { try { Optional<MeteredOutputStream> meteredOutputStream = findWrappedMeteredOutputStream(FilterStreamUnpacker.unpackFilterOutputStream((FilterOutputStream) ...
python
def add_implicit_resolver(tag, regexp, first=None, Loader=Loader, Dumper=Dumper): """ Add an implicit scalar detector. If an implicit scalar value matches the given regexp, the corresponding tag is assigned to the scalar. first is a sequence of possible initial characters or None. """ ...
python
def search_by_attribute_set( url: str, profile: Tuple[str], limit: Optional[int] = 100, namespace_filter: Optional[str]=None) -> Dict: """ Given a list of phenotypes, returns a ranked list of individuals individuals can be filtered by namespace, eg MONDO, MGI, HGNC :retur...
java
public static boolean crosses(Geometry geometry1, Geometry geometry2, SpatialReference spatialReference) { OperatorCrosses op = (OperatorCrosses) factory .getOperator(Operator.Type.Crosses); boolean result = op.execute(geometry1, geometry2, spatialReference, null); return result; }
java
public static String getInterfaceName(String uniqueName) { if (StringUtils.isEmpty(uniqueName)) { return uniqueName; } int index = uniqueName.indexOf(':'); return index < 0 ? uniqueName : uniqueName.substring(0, index); }
java
public FNDFtWtClass createFNDFtWtClassFromString(EDataType eDataType, String initialValue) { FNDFtWtClass result = FNDFtWtClass.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; ...
java
public static void normalize(double[] a) { double total = sum(a); if (total == 0.0 || Double.isNaN(total)) { throw new RuntimeException("Can't normalize an array with sum 0.0 or NaN: " + Arrays.toString(a)); } multiplyInPlace(a, 1.0/total); // divide each value by total }
java
static String byteAsChar(byte v) { int chr = v & 0xff; return String.format(Locale.ROOT, "%s (0x%02x)", (Character.isWhitespace(chr) || chr > 127) ? "[non-printable]" : Character.toString((char) chr), v & 0xFF); }
python
def from_folder(cls, path:PathOrStr, train:str='train', valid:str='valid', test:Optional[str]=None, classes:Collection[Any]=None, tokenizer:Tokenizer=None, vocab:Vocab=None, chunksize:int=10000, max_vocab:int=60000, min_freq:int=2, mark_fields:bool=False, include_bos:bool=True, i...
java
private TreeNodeVisitor walkCorruptedPath(TreeLearner model, DataPoint dp, int j, Random rand) { TreeNodeVisitor curNode = model.getTreeNodeVisitor(); while(!curNode.isLeaf()) { int path = curNode.getPath(dp); int numChild = curNode.childrenCount(); if(cur...
java
public static void main(String[] args) throws Exception { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("table", "my_table_name"); parameters.put("id", "my_id"); parameters.put(":1", "first_param"); final Pattern PATTERN = Pattern.compile("...
python
def coll_to_tuples(cls, coll): """``coll_to_tuples`` is capable of unpacking its own collection types (`list`), ``collections.Mapping`` objects, as well generators, sequences and iterators. Returns ``(*int*, Value)``. Does not coerce items. """ if isinstance(coll, bases...
python
def interpret(code, in_vars): """Try to evaluate the given code, otherwise execute it.""" try: result = eval(code, in_vars) except SyntaxError: pass # exec code outside of exception context else: if result is not None: print(ascii(result)) return # don't als...
python
def get_values_fix_params(self, exp, rep, tag, which='last', **kwargs): """ this function uses get_value(..) but returns all values where the subexperiments match the additional kwargs arguments. if alpha=1.0, beta=0.01 is given, then only those experiment values are returned, ...
java
public String readString() throws IOException { final int len = readInt(); // check for null string if (len == VoltType.NULL_STRING_LENGTH) { return null; } if (len < VoltType.NULL_STRING_LENGTH) { throw new IOException("String length is negative " + len...
java
public synchronized BBContainer getNextChunk() throws IOException { if (m_chunkReaderException != null) { throw m_chunkReaderException; } if (!m_hasMoreChunks.get()) { final Container c = m_availableChunks.poll(); return c; } if (m_chunkRe...
python
def _markdownify(tag, _listType=None, _blockQuote=False, _listIndex=1): """recursively converts a tag into markdown""" children = tag.find_all(recursive=False) if tag.name == '[document]': for child in children: _markdownify(child) return if tag.name not in _supportedTags or not _supportedAttrs(tag): if ...
java
public <E> long increment(PartitionKey key, String fieldName, long amount, EntityMapper<E> entityMapper) { Increment increment = entityMapper.mapToIncrement(key, fieldName, amount); HTableInterface table = pool.getTable(tableName); Result result; try { result = table.increment(increment); ...
java
private AnimationListener createHeaderAnimationListener( @NonNull final WizardDialog wizardDialog) { return new AnimationListener() { @Override public void onAnimationStart() { } @Override public void onAnimationEnd() { i...
java
protected List<MetricDatum> metricOfRequestOrRetryCount( Field metricType, Request<?> req, Object resp) { AWSRequestMetrics m = req.getAWSRequestMetrics(); TimingInfo ti = m.getTimingInfo(); // Always retrieve the request count even for retry which is equivalent // to the num...
java
public RecordId getLastDeletedSlot() { Constant blkNum = getVal(OFFSET_LDS_BLOCKID, BIGINT); Constant rid = getVal(OFFSET_LDS_RID, INTEGER); BlockId bid = new BlockId(fileName, (Long) blkNum.asJavaVal()); return new RecordId(bid, (Integer) rid.asJavaVal()); }
java
public void setEndDateTime(com.google.api.ads.admanager.axis.v201808.DateTime endDateTime) { this.endDateTime = endDateTime; }
python
def query(self): """ The mongo query object which would be executed if this Query object were used """ if self._rawquery==True: return self.__query return flatten(self.__query)
python
def _create_graph(self, upgrades, history=None): """Create dependency graph from upgrades. :param upgrades: Dict of upgrades :param history: Dict of applied upgrades """ history = history or {} graph_incoming = {} # nodes their incoming edges graph_outgoing = {}...
python
def energy_prolongation_smoother(A, T, Atilde, B, Bf, Cpt_params, krylov='cg', maxiter=4, tol=1e-8, degree=1, weighting='local', prefilter={}, postfilter={}): """Minimize the energy of the coarse basis functions (colu...
java
private VariableHandler.URLStruction _getVTPLTemplateStructionAlwaysCache(ESInfo dslinfo, String dsl) { String ikey = dsl; String okey = dslinfo.getTemplateName(); EdenConcurrentCache<String,VariableHandler.URLStruction> sqlstructionMap = this.parserVTPLTempateStructions.get(okey); if(sqlstructionMap == null...
java
public Set<? extends AbstractBean<?, ?>> resolveSpecializedBeans(Bean<?> specializingBean) { if (specializingBean instanceof AbstractClassBean<?>) { AbstractClassBean<?> abstractClassBean = (AbstractClassBean<?>) specializingBean; if (abstractClassBean.isSpecializing()) { ...
java
protected boolean accept(final int startArgNo, final String buffer, final int len) { // 対象引数が-1、または開始引数にlenが満たない場合は該当なしなのでコード補完しない return startArgNo != -1 && (buffer.endsWith(" ") && startArgNo <= len || !buffer.endsWith(" ") && startArgNo + 1 <= len); }