language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
protected CmsParameterConfiguration getComponentsProperties(String location) throws FileNotFoundException, CmsConfigurationException { InputStream stream = null; ZipFile zipFile = null; try { // try to interpret the fileName as a folder File folder = new File(locatio...
python
async def _refresh_table(self): """ Refresh buckets that haven't had any lookups in the last hour (per section 2.3 of the paper). """ results = [] for node_id in self.protocol.get_refresh_ids(): node = Node(node_id) nearest = self.protocol.router.f...
python
def read(self, entity=None, attrs=None, ignore=None, params=None): """Deal with oddly named and structured data returned by the server. For more information, see `Bugzilla #1235019 <https://bugzilla.redhat.com/show_bug.cgi?id=1235019>`_ and `Bugzilla #1449749 <https://bugzilla.r...
java
public void marshall(KinesisFirehoseOutputUpdate kinesisFirehoseOutputUpdate, ProtocolMarshaller protocolMarshaller) { if (kinesisFirehoseOutputUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
python
def get_string(self, origin=None): """Read the next token and interpret it as a string. @raises dns.exception.SyntaxError: @rtype: string """ token = self.get().unescape() if not (token.is_identifier() or token.is_quoted_string()): raise dns.exception.Syntax...
python
def get_complexes(self): """Extract INDRA Complex Statements from BEL. The SPARQL query used to extract Complexes looks for ComplexAbundance terms and their constituents. This pattern is distinct from other patterns in this processor in that it queries for terms, not full statem...
java
public void noteClassMappingsReceived (Collection<Class<?>> sclasses) { // sanity check if (_classmap == null) { throw new RuntimeException("Missing class map"); } // make each class's code positive to signify that we no longer need to send metadata for (Class<?>...
python
def process_email(ctx, param, value): """Return an user if it exists.""" user = User.query.filter(User.email == value).first() if not user: raise click.BadParameter('User with email \'%s\' not found.', value) return user
python
def _request(self, method, url, **kwargs): # type: (str, str, **Any) -> requests.Response """Perform the request on the API.""" self.last_request = None self.last_response = self.session.request(method, url, auth=self.auth, headers=self.headers, **kwargs) self.last_request = self...
python
def delete_stage(self, ret): ''' Method to delete the given stage_name. If the current deployment tied to the given stage_name has no other stages associated with it, the deployment will be removed as well ''' deploymentId = self._get_current_deployment_id() if d...
python
def to_bitstream(self): ''' Create bitstream from properties ''' # Verify that properties make sense self.sanitize() # Start with the priorities and weights bitstream = BitArray('uint:8=%d, uint:8=%d, uint:8=%d, ' 'uint:8=%d' % (self....
python
def set_host_power(self, power): """Toggle the power button of server. :param power: 'ON' or 'OFF' :raises: IloError, on an error from iLO. """ power = power.upper() if (power is not None) and (power not in POWER_STATE): msg = ("Invalid input '%(pow)s'. " ...
java
static <T> IfNotExistsFunction<T> if_not_exists( PathOperand pathOperand, Operand operand) { return new IfNotExistsFunction<T>(pathOperand, operand); }
python
def resend_dcv(gandi, resource): """ Resend the DCV mail. Resource can be a CN or an ID """ ids = gandi.certificate.usable_ids(resource) if len(ids) > 1: gandi.echo('Will not update, %s is not precise enough.' % resource) gandi.echo(' * cert : ' + '\n * cert : ...
python
def start_workunit(self, workunit): """Implementation of Reporter callback.""" if workunit.has_label(WorkUnitLabel.GOAL): service_name = "pants goal" elif workunit.has_label(WorkUnitLabel.TASK): service_name = "pants task" else: service_name = "pants workunit" # Check if it is the...
python
def view(self, single_components=False): """ Geet a numpy array providing direct, shared access to the image data. IMPORTANT: If you alter the view, then the underlying image data will also be altered. Arguments --------- single_components : boolean (default is...
python
def max_xor(a, b, c, d, w): """ Upper bound of result of XORing 2-intervals. :param a: Lower bound of first interval :param b: Upper bound of first interval :param c: Lower bound of second interval :param d: Upper bound of second interval :param w: bit width ...
java
public Calendar getSelectedDate() { Calendar result = dateSpinner.getSelectedDate(); Calendar time = timeSpinner.getSelectedTime(); if(result!=null && time!=null) { result.set(Calendar.HOUR_OF_DAY, time.get(Calendar.HOUR_OF_DAY)); result.set(Calendar.MINUTE, time.get(Cale...
java
public static JMX connect(String host, int port, String user, char[] password) { return new JMX(host,port,user,password); }
python
def is_code(self): """Is this cell a code cell?""" if self.cell_type == 'code': return True if self.cell_type == 'raw' and 'active' in self.metadata: return True return False
java
public void marshall(Emotion emotion, ProtocolMarshaller protocolMarshaller) { if (emotion == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(emotion.getType(), TYPE_BINDING); protocolMars...
python
def list_reced_topics(self, user_alias=None, start=0): """ 推荐的话题列表 :param user_alias: 指定用户,默认当前 :param start: 翻页 :return: 带下一页的列表 """ user_alias = user_alias or self.api.user_alias xml = self.api.xml(API_GROUP_LIST_USER_RECED_TOPICS % user_alias, ...
java
private boolean isSessionFilename(String filename) { if (!StringUtils.hasText(filename)) { return false; } String[] parts = filename.split("_"); // Need at least 2 parts for a valid filename return (parts.length >= 2); }
python
def transfer_domain(DomainName=None, IdnLangCode=None, DurationInYears=None, Nameservers=None, AuthCode=None, AutoRenew=None, AdminContact=None, RegistrantContact=None, TechContact=None, PrivacyProtectAdminContact=None, PrivacyProtectRegistrantContact=None, PrivacyProtectTechContact=None): """ This operation tr...
python
def is_class_method_bound(method, arg_name=BOUND_METHOD_ARGUMENT_NAME): """ Return whether a class method is bound to the class """ if not method.args.args: return False first_arg = method.args.args[0] first_arg_name = get_object_name(first_arg) return first_arg_name == arg_name
java
private static <T> List<T> filterSelection(Class<T> clazz, IStructuredSelection selection) { List<T> list = new ArrayList<T>(); for (Object obj : selection.toList()) { if (clazz.isAssignableFrom(obj.getClass())) { list.add((T) obj); } } return list; }
python
def derivativeZ(self,x,y,z): ''' Evaluates the partial derivative of the interpolated function with respect to z (the third argument) at the given input. Parameters ---------- x : np.array or float Real values to be evaluated in the interpolated function. ...
python
def image_needs_building(image): """Return whether an image needs building Checks if the image exists (ignores commit range), either locally or on the registry. Args: image (str): the `repository:tag` image to be build. Returns: True: if image needs to be built False: if not (image ...
java
@Override protected void loadJar(final Configuration hadoopConfiguration, final File file, final Object... params) { final JavaSparkContext sparkContext = (JavaSparkContext) params[0]; sparkContext.addJar(file.getAbsolutePath()); }
python
async def sonar_config(self, command): """ This method configures 2 pins to support HC-SR04 Ping devices. This is a FirmataPlus feature. :param command: {"method": "sonar_config", "params": [TRIGGER_PIN, ECHO_PIN, PING_INTERVAL(default=50), MAX_DISTANCE(default= 200 cm]} ...
java
public EventImpl publishEvent(Event event, boolean async) { EventImpl eventImpl = (EventImpl) event; eventImpl.setReadOnly(true); EventImpl currentEvent = (EventImpl) CurrentEvent.get(); if (null != currentEvent) { eventImpl.setParent(currentEvent); } // Atte...
java
protected void associateSameDiffWithOpsAndVariables(){ for(SDVariable var : variableMap().values()){ var.setSameDiff(this); } // for(DifferentialFunction df : functionInstancesById.values()){ for(SameDiffOp op : ops.values()){ DifferentialFunction df = op.getOp(); ...
python
def get_output(self, buildroot_id): """ Build the 'output' section of the metadata. :return: list, Output instances """ def add_buildroot_id(output): logfile, metadata = output metadata.update({'buildroot_id': buildroot_id}) return Output(fil...
java
private boolean catchBlockHasComment(SourceLineAnnotation srcLine) { if (!LOOK_IN_SOURCE_TO_FIND_COMMENTED_CATCH_BLOCKS) { return false; } SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder(); try { SourceFile sourceFile = source...
java
public RunList<R> newBuilds() { GregorianCalendar cal = new GregorianCalendar(); cal.add(Calendar.DAY_OF_YEAR, -7); final long t = cal.getTimeInMillis(); // can't publish on-going builds return filter(new Predicate<R>() { public boolean apply(R r) { r...
python
def save_figure(self,event=None,panel=None): """ save figure image to file""" if panel is None: panel = self.current_panel self.panels[panel].save_figure(event=event)
python
def monthlyValues(self): """ Description of seasonality from monthly values. Multiple smoothing methods are possible (see smoothing attribute). List should contain twelve entries: January to December. :rtype: list https://github.com/SwissTPH/openmalaria/wiki/GeneratedSch...
python
def escapejson_filter(value): """ Escape `value` to prevent </script> and unicode whitespace attacks. If `value` is not a string, JSON-encode it first. """ if isinstance(value, six.string_types): string = value else: string = json.dumps(value, cls=DjangoJSONEncoder) return ma...
java
public List<ClassDoc> allSubs(ClassDoc cd, boolean isEnum) { List<ClassDoc> list = subs(cd, isEnum); for (int i = 0; i < list.size(); i++) { cd = list.get(i); List<ClassDoc> tlist = subs(cd, isEnum); for (int j = 0; j < tlist.size(); j++) { ClassDoc tc...
python
def _number_desc_by_type(metadata, num_type): """Return the PhoneNumberDesc of the metadata for the given number type""" if num_type == PhoneNumberType.PREMIUM_RATE: return metadata.premium_rate elif num_type == PhoneNumberType.TOLL_FREE: return metadata.toll_free elif num_type == PhoneN...
java
public Query createQuery(SessionImpl session, SessionDataManager sessionDataManager, String statement, String language) throws InvalidQueryException, RepositoryException { AbstractQueryImpl query = createQueryInstance(); query.init(session, sessionDataManager, handler, statement, language); ...
java
public static <T> Source<T> filter(final Source<T> source, final Filter<T> filter) { return new AbstractSource<T>() { @Override public T computeNext() throws IOException { while (source.hasNext()) { T item = filte...
java
@Override public EClass getIfcAxis2Placement2D() { if (ifcAxis2Placement2DEClass == null) { ifcAxis2Placement2DEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(32); } return ifcAxis2Placement2DEClass; }
python
def ts_to_df(metadata): """ Create a data frame from one TimeSeries object :param dict metadata: Time Series dictionary :return dict: One data frame per table, organized in a dictionary by name """ logger_dataframes.info("enter ts_to_df") dfs = {} # Plot the variable + values vs year, a...
python
def total_return(self): """http://en.wikipedia.org/wiki/Total_shareholder_return - mimics bloomberg total return""" pxend = self.close pxstart = pxend.shift(1).bfill() return (1. + (pxend - pxstart + self.dvds.fillna(0)) / pxstart).cumprod() - 1
java
public VoiceGrant setOutgoingApplication( String outgoingApplicationSid, Map<String, Object> outgoingApplicationParams ) { this.outgoingApplicationSid = outgoingApplicationSid; this.outgoingApplicationParams = outgoingApplicationParams; return this; }
python
def subn_filter(s, find, replace, count=0): """A non-optimal implementation of a regex filter""" return re.gsub(find, replace, count, s)
python
def from_board(cls, board): ''' :param Board board: board to represent :return: SkinnyBoard to represent the given Board ''' if len(board): left = board.left_end() right = board.right_end() else: left = None right = None ...
python
def read_frame(self): """ Block until a full frame has been read from the socket. This is an internal method as calling this will not cleanup correctly if an exception is called. Use `receive` instead. :return: The header and payload as a tuple. """ header = Hea...
java
private static SwipeBack createSwipeBack(Activity activity, int dragMode, Position position, Type type, SwipeBackTransformer transformer) { SwipeBack drawerHelper; if (type == Type.OVERLAY) { drawerHelper = new OverlaySwipeBack(activity, dragMode); } else { drawerHelper = new SlidingSwipeBack(activity, ...
python
def get_rendition(self, output_scale=1, **kwargs): # pylint:disable=too-many-locals """ Get the rendition for this image, generating it if necessary. Returns a tuple of `(relative_path, width, height)`, where relative_path is relative to the static file directory (i.e. what one w...
java
private final void tryPrefetching() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "tryPrefetching"); int toPrefetchCount = 0; // count of gets to issue synchronized (this) { if (!detached) { int count = co...
python
def extract_from_ast(node, gettext_functions=GETTEXT_FUNCTIONS, babel_style=True): """Extract localizable strings from the given template node. Per default this function returns matches in babel style that means non string parameters as well as keyword arguments are returned as `None`....
python
def lot(self, id, user=True, dependencies=True, comments=True, votes=True, no_strip=False): """ Retrieve the lot with given identifier :param id: Identifier of the lot to retrieve :param user: Should user (authenticated) information be returned (e.g. last_downloaded) :param depe...
python
def run(): """Move the repos""" args = parse_args() codetools.setup_logging(args.debug) global g g = pygithub.login_github(token_path=args.token_path, token=args.token) org = g.get_organization(args.org) # only iterate over all teams once try: teams = list(org.get_teams()) ...
java
private SingleProofreadingError createOOoError(RuleMatch ruleMatch, int startIndex, int sentencesLength, char lastChar) { SingleProofreadingError aError = new SingleProofreadingError(); aError.nErrorType = TextMarkupType.PROOFREADING; // the API currently has no support for formatting text in comments a...
python
def get_fields(self): """ Returns used fields of model """ result = [key for key in self.__original_data__.keys() if key not in self.__deleted_fields__] result.extend([key for key in self.__modified_data__.keys() if key not in result and k...
python
def get_fetch_headers(self, method, headers): """merge class headers with passed in headers :param method: string, (eg, GET or POST), this is passed in so you can customize headers based on the method that you are calling :param headers: dict, all the headers passed into the fetch m...
python
def render_addPersonForm(self, ctx, data): """ Create and return a L{liveform.LiveForm} for creating a new L{Person}. """ addPersonForm = liveform.LiveForm( self.addPerson, self._baseParameters, description='Add Person') addPersonForm.compact() addPersonForm.j...
java
public IAsyncFuture write(ByteBuffer[] bufs, long timeout, boolean forceQueue, long bytesRequested, VirtualConnection vci, boolean asyncIO) { if (timeout < 0) { throw new IllegalArgumentException(); } IAsyncFuture future = ...
java
@Override public boolean remove(Object o) { combine(); return combined!=null && combined.remove(o); }
python
def make_bernstein_vazirani_circuit(input_qubits, output_qubit, oracle): """Solves for factors in f(a) = a·factors + bias (mod 2) with one query.""" c = cirq.Circuit() # Initialize qubits. c.append([ cirq.X(output_qubit), cirq.H(output_qubit), cirq.H.on_each(*input_qubits), ...
java
@Transformer(to = "{urn:switchyard-quickstart:rules-interview:0.1.0}verifyResponse") public Element transformBooleanToVerifyResponse(boolean b) { String xml = new StringBuilder() .append("<urn:verifyResponse xmlns:urn='urn:switchyard-quickstart:rules-interview:0.1.0'>").append("<return>") ...
python
def commit_and_push(local_root, remote, versions): """Commit changed, new, and deleted files in the repo and attempt to push the branch to the remote repository. :raise CalledProcessError: Unhandled git command failure. :raise GitError: Conflicting changes made in remote by other client and bad git config ...
java
private byte[] getLengthDescriptor(int length) { int c = 0; int j = length & 15; length = length >> 4; int max = 9; byte[] result = new byte[max + 1]; while (length > 0) { byte b = (byte) (length & 255); result[max - c] = b; le...
python
def get_special_elections(self, obj): """States holding a special election on election day.""" return reverse( 'electionnight_api_special-election-list', request=self.context['request'], kwargs={'date': obj.date} )
java
public static Metadata<Extension> loadExtension(String extensionClass, ClassLoader classloader) { Class<? extends Extension> serviceClass = loadClass(Extension.class, extensionClass, classloader); if (serviceClass == null) { return null; } Extension serviceInstance = prepareI...
java
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWLAnnotationPropertyImpl instance) throws SerializationException { deserialize(streamReader, instance); }
java
public static String randomString(int length) { Preconditions.checkArgument(length > MIN_PASSWORD_LENGTH, "random string length must be at least 1 character"); Preconditions.checkArgument(length <= MAX_PASSWORD_LENGTH, "random string length must be at most 256 character"); return Random...
python
def node_get(self, arch=None, ver=None, flavor=None, count=1, retry_count=1, retry_interval=10): """ Requests specified number of nodes with the provided parameters. :param arch: Server architecture (ex: x86_64) :param ver: CentOS version (ex: 7) :param count: N...
python
def get_asset_repository_assignment_session(self, proxy): """Gets the session for assigning asset to repository mappings. arg proxy (osid.proxy.Proxy): a proxy return: (osid.repository.AssetRepositoryAssignmentSession) - an AssetRepositoryAsignmentSession raise: Ope...
python
def _set_exclude(self, exclude): """Exclude setter.""" if exclude and ( (not isinstance(exclude, list)) or ( isinstance(exclude, list) and any([not isinstance(item, str) for item in exclude]) ) ): raise RuntimeError(...
python
def com_google_fonts_check_fontforge_stderr(font, fontforge_check_results): """FontForge validation outputs error messages?""" if "skip" in fontforge_check_results: yield SKIP, fontforge_check_results["skip"] return filtered_err_msgs = "" for line in fontforge_check_results["ff_err_messages"].split('\n...
java
private void validateAttributeValues(final String qName, final Attributes atts) { if (validateMap.isEmpty()) { return; } for (int i = 0; i < atts.getLength(); i++) { final QName attrName = new QName(atts.getURI(i), atts.getLocalName(i)); final Map<String, Set<...
java
private List<Integer> getAttachedInOrder(IRing macrocycle, IAtomContainer shared) { List<Integer> ringAttach = new ArrayList<>(); Set<IAtom> visit = new HashSet<>(); IAtom atom = shared.getAtom(0); while (atom != null) { visit.add(atom); ringAttach.add(macrocycle....
python
def whatIfOrder(self, contract: Contract, order: Order) -> OrderState: """ Retrieve commission and margin impact without actually placing the order. The given order will not be modified in any way. This method is blocking. Args: contract: Contract to test. ...
python
def gpg_stash_key( appname, key_bin, config_dir=None, gpghome=None ): """ Store a key locally to our app keyring. Does NOT put it into a blockchain ID Return the key ID on success Return None on error """ assert is_valid_appname(appname) key_bin = str(key_bin) assert len(key_bin) > ...
java
public static final Class<?> resolve(Class<?> genericType) { assertNotNull(genericType); try { Class<?> entityType = HttpEntity.class.isAssignableFrom(genericType)? HttpEntity.class : (byte[].class.isAssignableFrom(genericType) || Byte[].class.isAssignableFrom(genericType...
java
public ListEntityRecognizersResult withEntityRecognizerPropertiesList(EntityRecognizerProperties... entityRecognizerPropertiesList) { if (this.entityRecognizerPropertiesList == null) { setEntityRecognizerPropertiesList(new java.util.ArrayList<EntityRecognizerProperties>(entityRecognizerPropertiesLis...
python
def _usage_unallocated(raw): ''' Parse usage/unallocated. ''' ret = {} for line in raw.split("\n")[1:]: keyset = re.sub(r"\s+", " ", line.strip()).split(" ") if len(keyset) == 2: ret[keyset[0]] = keyset[1] return ret
java
public static KbRuntimeException fromThrowable(String message, Throwable cause) { return (cause instanceof KbRuntimeException && Objects.equals(message, cause.getMessage())) ? (KbRuntimeException) cause : new KbRuntimeException(message, cause); }
java
public StrBuilder append(final char[] chars) { if (chars == null) { return appendNull(); } final int strLen = chars.length; if (strLen > 0) { final int len = length(); ensureCapacity(len + strLen); System.arraycopy(chars, 0, buffer, len, st...
java
public static HELM2Notation readPeptide(String notation) throws FastaFormatException, NotationException, ChemistryException { HELM2Notation helm2notation = new HELM2Notation(); PolymerNotation polymer = new PolymerNotation("PEPTIDE1"); helm2notation.addPolymer(new PolymerNotation(polymer.getPolymerID(), ...
python
def generate_example(config, ext='json'): """Generate an example file based on the given Configuration object. Args: config (confpy.core.configuration.Configuration): The configuration object on which to base the example. ext (str): The file extension to render. Choices: JSON and IN...
python
def URL(base, path, segments=None, defaults=None): """ URL segment handler capable of getting and setting segments by name. The URL is constructed by joining base, path and segments. For each segment a property capable of getting and setting that segment is created dynamically. """ # Make a...
python
def smart_unicode(s, encoding='utf-8', strings_only=False, errors='strict'): """ Returns a unicode object representing 's'. Treats bytestrings using the 'encoding' codec. If strings_only is True, don't convert (some) non-string-like objects. """ # if isinstance(s, Promise): # # The inpu...
python
def update_search_space(self, search_space): """Update search space. Search_space contains the information that user pre-defined. Parameters ---------- search_space : dict """ self.searchspace_json = search_space self.space = json2space(self.searchspace_...
java
private void writeClassData() { try (PrintStream out = new PrintStream(openResultFileOuputStream( resultDirectory, "classes.json"))) { out.println("{"); // Add direct subclass information: for (Entry<Integer, ClassRecord> classEntry : this.classRecords .entrySet()) { if (classEntry.getValue().s...
java
Rule ClefName() { return Sequence( FirstOfS(IgnoreCase("treble"), IgnoreCase("alto"), IgnoreCase("tenor"), IgnoreCase("baritone"), IgnoreCase("bass"), IgnoreCase("mezzo"), IgnoreCase("soprano"), IgnoreCase("perc"), IgnoreCase("none")), OptionalS(Octave()) ).label(ClefName).suppressSubnodes(); ...
python
def resize_imgs(self, targ, new_path, resume=True, fn=None): """ resize all images in the dataset and save them to `new_path` Arguments: targ (int): the target size new_path (string): the new folder to save the images resume (bool): if true (default), allow resum...
java
public void setEmail(String email) { SystemAssert.requireArgument(email != null && !email.isEmpty(), "Email cannot be null or empty."); this.email = email; }
python
def p_const_expression_intnum(self, p): 'const_expression : intnumber' p[0] = IntConst(p[1], lineno=p.lineno(1)) p.set_lineno(0, p.lineno(1))
java
public void addInputDeletions(VersionEdit edit) { for (FileMetaData input : levelInputs) { edit.deleteFile(level, input.getNumber()); } for (FileMetaData input : levelUpInputs) { edit.deleteFile(level + 1, input.getNumber()); } }
python
def compute_hamming_dist_1_pgen(self, CDR3_seq, V_usage_mask_in = None, J_usage_mask_in = None, print_warnings = True): """Compute Pgen of all seqs hamming dist 1 (in amino acids) from CDR3_seq. Please note that this function will list out all the sequences that are hamming distance 1 from...
python
def _gcs_get_key_names(bucket, pattern): """ Get names of all Google Cloud Storage keys in a specified bucket that match a pattern. """ return [obj.metadata.name for obj in _gcs_get_keys(bucket, pattern)]
python
def _write_enum(self, specification, attribute, output_directory, package_name): """ Write autogenerate specification file """ enum_name = specification.entity_name + attribute.local_name[0:1].upper() + attribute.local_name[1:] template_file = "o11nplugin-core/enum.java.tpl" des...
java
public byte[] sendSubmitSmResp(OutputStream os, int sequenceNumber, String messageId) throws PDUStringException, IOException { return pduSender.sendSubmitSmResp(os, sequenceNumber, messageId); }
java
void push_slot( int d, int n ) { assert d==0; // Should use a fcn's closure for d>1 int idx = _display[_tod-d]+n; push(1); _ary[_sp-1] = addRef(_ary[idx]); _d [_sp-1] = _d [idx]; _fcn[_sp-1] = addRef(_fcn[idx]); _str[_sp-1] = _str[idx]; assert _ary[0]==null...
java
void readTreeSet(int size, java.io.ObjectInputStream s, V defaultVal) throws java.io.IOException, ClassNotFoundException { buildFromSorted(size, null, s, defaultVal); }
java
private void addGzipFilter() { FilterMapping filterMapping = new FilterMapping(); filterMapping.setFilterName("gzip-filter"); filterMapping.setPathSpec("/*"); FilterHolder filterHolder = new FilterHolder(new GzipServletFilter()); filterHolder.setName("gzip-filter"); serv...