language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
@SafeVarargs public static String[] addAll(final String[] a, final String... b) { if (N.isNullOrEmpty(a)) { return N.isNullOrEmpty(b) ? N.EMPTY_STRING_ARRAY : b.clone(); } final String[] newArray = new String[a.length + b.length]; copy(a, 0, newArray, 0, a.lengt...
python
def getType(self, short=False): """Return a string describing the type of the location, i.e. origin, on axis, off axis etc. :: >>> l = Location() >>> l.getType() 'origin' >>> l = Location(pop=1) >>> l.getType() 'on-axi...
java
public void marshall(CancelWorkflowExecutionFailedEventAttributes cancelWorkflowExecutionFailedEventAttributes, ProtocolMarshaller protocolMarshaller) { if (cancelWorkflowExecutionFailedEventAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
java
@Override public void messageEventOccurred( int event, SIMPMessage msg, TransactionCommon tran) throws SIRollbackException, SIConnectionLostException, ...
python
def inject(self, function=None, **names): """ Inject dependencies into `funtion`'s arguments when called. >>> @injector.inject ... def use_dependency(dependency_name): ... >>> use_dependency() The `Injector` will look for registered dependencies ...
java
private Collection<DependencyInfo> mergeDependencyInfos(AgentProjectInfo projectInfo) { Map<String, DependencyInfo> infoMap = new HashedMap(); Collection<DependencyInfo> dependencyInfos = new LinkedList<>(); if (projectInfo != null) { Collection<DependencyInfo> dependencies = project...
python
def click(self, x, y): ''' same as adb -s ${SERIALNO} shell input tap x y FIXME(ssx): not tested on horizontal screen ''' self.shell('input', 'tap', str(x), str(y))
java
@Override public void flushBuffer() throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Flushing buffers: " + this); } if (null != this.outWriter) { this.outWriter.flush(); } else { this.outStream.f...
java
public T join() { try { long spin = 1; while (!done) { LockSupport.parkNanos(spin++); } if (completedExceptionally) throw new SimpleReactCompletionException( exception()); ...
python
def split_elements(value): """Split a string with comma or space-separated elements into a list.""" l = [v.strip() for v in value.split(',')] if len(l) == 1: l = value.split() return l
python
def _check_module_is_image_embedding(module_spec): """Raises ValueError if `module_spec` is not usable as image embedding. Args: module_spec: A `_ModuleSpec` to test. Raises: ValueError: if `module_spec` default signature is not compatible with mappingan "images" input to a Tensor(float32, shape...
java
public static JMenuItem addMenuItem ( ActionListener l, JMenu menu, String name, Integer mnem, KeyStroke accel) { JMenuItem item = createItem(name, mnem, accel); item.addActionListener(l); menu.add(item); return item; }
java
public void move(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, RepositoryException { session.checkLive(); // get destination node JCRPath destNodePath = session.getLocationFactor...
java
public int[] getReferenceNumbers() { Iterator it = m_tunes.keySet().iterator(); int[] refNb = new int[m_tunes.size()]; int index = 0; while (it.hasNext()) { refNb[index] = (Integer) it.next(); index++; } return refNb; }
java
@Override public CommerceDiscount fetchByLtE_S_First(Date expirationDate, int status, OrderByComparator<CommerceDiscount> orderByComparator) { List<CommerceDiscount> list = findByLtE_S(expirationDate, status, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return null; }
java
public List<Entry<String, Object>> getTraceParameterSettings(int index) { List<Entry<String, Object>> result = new ArrayList<Map.Entry<String,Object>>(); List<String> dimensions = getSearchDimensions(); for (int i = 0; i < dimensions.size(); ++i) { String parameter = dimensions.get(i); Object va...
java
private static List<Monomer> getMonomersRNAOnlyBase(MonomerNotationUnitRNA rna, MonomerStore monomerStore) throws HELM2HandledException { try { List<Monomer> monomers = new ArrayList<Monomer>(); for (MonomerNotationUnit unit : rna.getContents()) { String id = unit.getUnit().replace("[", ""); id...
java
public static HttpRequestBase delete(String path, Map<String, String> headers, Integer timeOutInSeconds) { HttpDelete delete = new HttpDelete(path); addHeaders(delete, headers); delete.setConfig(getConfig(timeOutInSeconds)); return de...
java
public ServiceFuture<List<SharedAccessSignatureAuthorizationRuleInner>> listKeysAsync(final String resourceGroupName, final String resourceName, final ListOperationCallback<SharedAccessSignatureAuthorizationRuleInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listKeysSinglePageA...
python
async def _nodes_found(self, responses): """ Handle the result of an iteration in _find. """ toremove = [] found_values = [] for peerid, response in responses.items(): response = RPCFindResponse(response) if not response.happened(): ...
java
public static final <T extends Calendar> Function<T, MutableDateTime> calendarToMutableDateTime(Chronology chronology) { return new CalendarToMutableDateTime<T>(chronology); }
java
public static XContentBuilder marshall(ApiVersionBean bean) throws StorageException { try (XContentBuilder builder = XContentFactory.jsonBuilder()) { ApiBean api = bean.getApi(); OrganizationBean org = api.getOrganization(); preMarshall(bean); builder ...
java
public void init(BaseMessageReceiver messageReceiver, BaseMessageFilter messageFilter) { if (messageFilter == null) { if (messageReceiver != null) { messageFilter = messageReceiver.createDefaultFilter(this); // Add filter to handler return; ...
python
def p_enumerated_subtype_field(self, p): 'subtype_field : ID type_ref NL' p[0] = AstSubtypeField( self.path, p.lineno(1), p.lexpos(1), p[1], p[2])
python
def set_keywords(self, keywords): """Changes the <meta> keywords tag.""" self.head.keywords.attr(content=", ".join(keywords)) return self
python
def page(self): '''Current page.''' page = self.request.GET.get(self.page_param) if not page: return 1 try: page = int(page) except ValueError: self.invalid_page() return 1 if page<1: self.invalid_page() ...
python
def create_from_fits(cls, fitsfile, norm_type='flux'): """Build a TSCube object from a fits file created by gttscube Parameters ---------- fitsfile : str Path to the tscube FITS file. norm_type : str String specifying the quantity used for the normalization...
python
def _normalize_timestamps(self, timestamp, intervals, config): ''' Helper for the subclasses to generate a list of timestamps. ''' rval = [timestamp] if intervals<0: while intervals<0: rval.append( config['i_calc'].normalize(timestamp, intervals) ) intervals += 1 elif inter...
python
def storage_get(self, key): """ Retrieve a value for the module. """ if not self._module: return self._storage_init() module_name = self._module.module_full_name return self._storage.storage_get(module_name, key)
java
private String[] split(final String sCommandLine) { return it.jnrpe.utils.StringUtils.split(sCommandLine, '!', false); }
java
private void declarePyramid( int imageWidth , int imageHeight ) { int minSize = (config.trackerFeatureRadius*2+1)*5; int scales[] = TldTracker.selectPyramidScale(imageWidth, imageHeight, minSize); currentImage = FactoryPyramid.discreteGaussian(scales,-1,1,false, ImageType.single(imageType)); currentImage.initia...
java
public Waiter<DescribeInstancesRequest> instanceStopped() { return new WaiterBuilder<DescribeInstancesRequest, DescribeInstancesResult>().withSdkFunction(new DescribeInstancesFunction(client)) .withAcceptors(new InstanceStopped.IsStoppedMatcher(), new InstanceStopped.IsPendingMatcher(), new Ins...
python
async def check(self, message: types.Message): """ If deep-linking is passed to the filter result of the matching will be passed as ``deep_link`` to the handler :param message: :return: """ check = await super(CommandStart, self).check(message) if check and self...
java
public ListDocumentsRequest withFilters(DocumentKeyValuesFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList<DocumentKeyValuesFilter>(filters.length)); } for (DocumentKeyValuesFilter ele : filters) { this.filters.add(ele)...
java
private static void notifyServers(Database db) { Iterator it = serverMap.keySet().iterator(); for (; it.hasNext(); ) { Server server = (Server) it.next(); HashSet databases = (HashSet) serverMap.get(server); if (databases.contains(db)) { // A VoltDB extension t...
java
private static void addFormatInfoEval(byte[] eval, int size, EccLevel ecc_level, int pattern) { int format = pattern; int seq; int i; switch(ecc_level) { case L: format += 0x08; break; case Q: format += 0x18; break; case H: format += 0x10; break; ...
java
public Object convert( String value, TypeLiteral<?> toType ) { try { return InetAddress.getByName( value ); } catch ( UnknownHostException e ) { throw new ProvisionException( "String value '" + value + "' is not a valid InetAddress", e ); } ...
java
@Override public final boolean filter() { boolean returnVal = false; if (getNode() instanceof ITreeNameData) { final ITreeNameData node = (ITreeNameData)getNode(); returnVal = (node.getNameKey() == mLocalPartKey); } return returnVal; }
python
def create(self, **kwargs): """Custom create method for v12.x and above. Change of behavior in v12 where the returned selfLink is different from target resource, requires us to append URI after object is created. So any modify() calls will not lead to json kind inconsistency wh...
java
static void writeMillis(DataOutput out, long millis) throws IOException { if (millis % (30 * 60000L) == 0) { // Try to write in 30 minute units. long units = millis / (30 * 60000L); if (((units << (64 - 6)) >> (64 - 6)) == units) { // Form 00 (6 bits effective...
java
public synchronized String hash(final URI... properties) { final List<URI> propertiesToHash; if (properties == null || properties.length == 0) { propertiesToHash = doGetProperties(); } else { propertiesToHash = Arrays.asList(properties); } final Hasher has...
python
def checkCorpNums(self, MemberCorpNum, CorpNumList): """ ํœดํ์—…์กฐํšŒ ๋Œ€๋Ÿ‰ ํ™•์ธ, ์ตœ๋Œ€ 1000๊ฑด args MemberCorpNum : ํŒ๋นŒํšŒ์› ์‚ฌ์—…์ž๋ฒˆํ˜ธ CorpNumList : ์กฐํšŒํ•  ์‚ฌ์—…์ž๋ฒˆํ˜ธ ๋ฐฐ์—ด return ํœดํ์—…์ •๋ณด Object as List raise PopbillException """ if ...
java
public void setPrecision(TemporalPrecisionEnum thePrecision) throws IllegalArgumentException { if (thePrecision == null) { throw new NullPointerException("Precision may not be null"); } myPrecision = thePrecision; updateStringValue(); }
python
def update(self, equipments): """ Method to update equipments :param equipments: List containing equipments desired to updated :return: None """ data = {'equipments': equipments} equipments_ids = [str(env.get('id')) for env in equipments] return super(A...
java
public ApiResponse<ApiSuccessResponse> deleteMediaUserDataWithHttpInfo(String mediatype, String id, UserData1 userData) throws ApiException { com.squareup.okhttp.Call call = deleteMediaUserDataValidateBeforeCall(mediatype, id, userData, null, null); Type localVarReturnType = new TypeToken<ApiSuccessResp...
java
protected void storeDataSource(DataSource ds, XMLStreamWriter writer) throws Exception { writer.writeStartElement(XML.ELEMENT_DATASOURCE); if (ds.isJTA() != null && (ds.hasExpression(XML.ATTRIBUTE_JTA) || !Defaults.JTA.equals(ds.isJTA()))) writer.writeAttribute(...
java
@Override public Long get(Entity entity) { Objects.requireNonNull(entity, "entity cannot be null"); // return id() return entity.id(); }
python
def _convert_ddb_list_to_list(conversion_list): """Given a dynamodb list, it will return a python list without the dynamodb datatypes Args: conversion_list (dict): a dynamodb list which includes the datatypes Returns: list: Returns a sanitized list without the dynamodb ...
java
public void updateBuildpackInstallations(String appName, List<String> buildpacks) { connection.execute(new BuildpackInstallationUpdate(appName, buildpacks), apiKey); }
java
@Override protected void loadBitmap(int position) { if (position < 0 || position >= items.size()) onBitmapNotAvailable(position); // If a task is already running, cancel it LoadBitmapTask task = runningTasks.get(position); if (task != null) { task.cancel(true); }...
python
def check_basestring(item): """Return ``bol`` on string check item. :param item: Item to check if its a string :type item: ``str`` :returns: ``bol`` """ try: return isinstance(item, (basestring, unicode)) except NameError: return isinstance(item, str)
java
public static <C extends CameraPinhole>C matrixToPinhole(FMatrixRMaj K , int width , int height , C output ) { return (C)ImplPerspectiveOps_F32.matrixToPinhole(K, width, height, output); }
python
def boto_fix_security_token_in_profile(self, connect_args): ''' monkey patch for boto issue boto/boto#2100 ''' profile = 'profile ' + self.boto_profile if boto.config.has_option(profile, 'aws_security_token'): connect_args['security_token'] = boto.config.get(profile, 'aws_security_to...
python
def round_optimum(self, x): """ Rounds some value x to a feasible value in the design space. x is expected to be a vector or an array with a single row """ x = np.array(x) if not ((x.ndim == 1) or (x.ndim == 2 and x.shape[0] == 1)): raise ValueError("Unexpecte...
java
public DatabaseAccountInner patch(String resourceGroupName, String accountName, DatabaseAccountPatchParameters updateParameters) { return patchWithServiceResponseAsync(resourceGroupName, accountName, updateParameters).toBlocking().last().body(); }
java
@SuppressWarnings("WeakerAccess") public ApiFuture<Void> dropRowRangeAsync(String tableId, String rowKeyPrefix) { return dropRowRangeAsync(tableId, ByteString.copyFromUtf8(rowKeyPrefix)); }
python
def setup(self, path=None): """ Look for SExtractor program ('sextractor', or 'sex'). If a full path is provided, only this path is checked. Raise a SExtractorException if it failed. Return program and version if it succeed. """ # -- Finding sextractor program an...
python
def func(command, description, link, params_string, returns="On success, the sent Message is returned.", return_type="Message"): """ Live template for pycharm: y = func(command="$cmd$", description="$desc$", link="$lnk$", params_string="$first_param$", returns="$returns$", return_type="$returntype$") "...
java
public void printAllPuts(List<Put> p) { for (Put p1 : p) { Map<byte[], List<KeyValue>> d = p1.getFamilyMap(); for (byte[] k : d.keySet()) { System.out.println(" k " + Bytes.toString(k)); } for (List<KeyValue> lkv : d.values()) { for (KeyValue kv : lkv) { System.out....
java
private void parseProviderRefs( JsonParser jp, Results results ) throws JsonParseException, IOException { ProviderRef pRef = null; String fieldName = null; while (jp.nextToken() != JsonToken.END_ARRAY ) { pRef = new ProviderRef(); pRef.setLocations( new ArrayList<Map<String,String>>() ); while (jp....
java
public List<String> commands(boolean sys, boolean app) { C.List<String> list = C.newList(); Act.Mode mode = Act.mode(); boolean all = !sys && !app; for (String s : registry.keySet()) { boolean isSysCmd = s.startsWith("act."); if (isSysCmd && !sys && !all) { ...
java
public Observable<ServiceResponse<Page<SasTokenInformationInner>>> listSasTokensNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } String nextUrl = String.format(...
java
protected void replayTranLog() throws Exception { if (tc.isEntryEnabled()) Tr.entry(tc, "replayTranLog"); final LogCursor recoverableUnits = _tranLog.recoverableUnits(); LogCursor recoverableUnitSections = null; int recoveredServiceItems = 0; boolean shuttingDown = f...
java
public final void freeMem() { assert isPersisted() || _pojo != null || _key._kb[0]==Key.DVEC; _mem = null; }
python
def _try_parse_formula(self, compound_id, s): """Try to parse the given compound formula string. Logs a warning if the formula could not be parsed. """ s = s.strip() if s == '': return None try: # Do not return the parsed formula. For now it is b...
python
def hdrmap(xmethod, dmethod, opt): """Return ``hdrmap`` argument for ``.IterStatsConfig`` initialiser. """ hdr = {'Itn': 'Iter', 'Fnc': 'ObjFun', 'DFid': 'DFid', u('โ„“1'): 'RegL1', 'Cnstr': 'Cnstr'} if xmethod == 'admm': hdr.update({'r_X': 'XPrRsdl', 's_X': 'XDlRsdl', u('ฯ_X'): 'XRho'...
java
@Override protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { switch (classifierID) { case ColorPackage.DOCUMENT_ROOT: return validateDocumentRoot((DocumentRoot)value, diagnostics, context); case ColorPackage.HEX_COLOR: return validateH...
python
def on_consumer_cancelled(self, method_frame): """Invoked by pika when RabbitMQ sends a Basic.Cancel for a consumer receiving messages. :param pika.frame.Method method_frame: The Basic.Cancel frame """ msg = 'Consumer was cancelled remotely, shutting down: {0!r}' logger...
python
def read_b(self, size): """ Read bytes with length `size` without incrementing the current offset :param int size: length to read in bytes :rtype: bytearray """ return self.__buff[self.__idx:self.__idx + size]
python
def _parse_version_string(version_conditions_string): ''' Returns a list of two-tuples containing (operator, version). ''' result = [] version_conditions_string = version_conditions_string.strip() if not version_conditions_string: return result for version_condition in version_condit...
java
@Override public void eventPostCommitAdd(Transaction transaction) throws SevereMessageStoreException { super.eventPostCommitAdd(transaction); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "eventPostCo...
python
def plot_triaxial(height, width, tools): '''Plot pandas dataframe containing an x, y, and z column''' import bokeh.plotting p = bokeh.plotting.figure(x_axis_type='datetime', plot_height=height, plot_width=width, title...
python
def _process_file(self): '''Process rebase file into dict with name and cut site information.''' print 'Processing file' with open(self._rebase_file, 'r') as f: raw = f.readlines() names = [line.strip()[3:] for line in raw if line.startswith('<1>')] seqs = [line.strip...
java
@Override public void writeDouble(double value) throws JMSException { try { getOutput().writeDouble(value); } catch (IOException e) { throw new FFMQException("Cannot write message body","IO_ERROR",e); } }
python
def create_flash(self): """! @brief Instantiates flash objects for memory regions. This init task iterates over flash memory regions and for each one creates the Flash instance. It uses the flash_algo and flash_class properties of the region to know how to construct the flash ob...
java
@Override public CreateTransitGatewayRouteTableResult createTransitGatewayRouteTable(CreateTransitGatewayRouteTableRequest request) { request = beforeClientExecution(request); return executeCreateTransitGatewayRouteTable(request); }
java
public static <E> EmptyIterator<E> get() { @SuppressWarnings("unchecked") EmptyIterator<E> iter = (EmptyIterator<E>) INSTANCE; return iter; }
java
public List<String> selectGlobalPermissionsOfUser(DbSession dbSession, int userId, String organizationUuid) { return mapper(dbSession).selectGlobalPermissionsOfUser(userId, organizationUuid); }
python
def get_currency(self, code): """ Returns an iterable of currency elements matching the code: <CtryNm>UNITED STATES MINOR OUTLYING ISLANDS (THE)</CtryNm> <CcyNm>US Dollar</CcyNm> <Ccy>USD</Ccy> <CcyNbr>840</CcyNbr> <CcyMnrUnts>2</CcyMnrUnts> NOTE: the curr...
java
public static int getBreakLimit(StringBuffer interfaceConfig,StringBuffer methodConfig){ methodConfig.append(".break.limit"); interfaceConfig.append(".break.limit"); String breakLimitConf = ConfigUtils.getProperty(methodConfig.toString(), ConfigUtils.getProperty(interfaceConfig.toString(), Confi...
java
private static double[] toArray(DoubleVector v, int length) { double[] arr = new double[length]; for (int i = 0; i < arr.length; ++i) { arr[i] = v.get(i); } return arr; }
python
def listen_loop(self): """Starts the listen loop and executes the receieve_datagram method whenever a packet is receieved. Args: None Returns: None """ while self.listening: try: data, address = self.sock.recvfrom(self.b...
java
@Override public CreateStreamingDistributionResult createStreamingDistribution(CreateStreamingDistributionRequest request) { request = beforeClientExecution(request); return executeCreateStreamingDistribution(request); }
python
def iter_child_nodes(node, omit=None, _fields_order=_FieldsOrder()): """ Yield all direct child nodes of *node*, that is, all fields that are nodes and all items of fields that are lists of nodes. :param node: AST node to be iterated upon :param omit: String or tuple of strings de...
java
static byte[] encode(int count) { // ่ฎก็ฎ—้œ€่ฆๅกซๅ……็š„ไฝๆ•ฐ int amountToPad = BLOCK_SIZE - (count % BLOCK_SIZE); if (amountToPad == 0) { amountToPad = BLOCK_SIZE; } // ่Žทๅพ—่กฅไฝๆ‰€็”จ็š„ๅญ—็ฌฆ char padChr = chr(amountToPad); StringBuilder tmp = new StringBuilder(); for (i...
python
def fetch_next_page(self): """ Manually, synchronously fetch the next page. Supplied for manually retrieving pages and inspecting :meth:`~.current_page`. It is not necessary to call this when iterating through results; paging happens implicitly in iteration. """ if self.r...
java
public Element nextElementSibling() { if (parentNode == null) return null; List<Element> siblings = parent().childElementsList(); Integer index = indexInList(this, siblings); Validate.notNull(index); if (siblings.size() > index+1) return siblings.get(index+1); ...
java
public LocalXAResource createConnectableLocalXAResource(ConnectionManager cm, String productName, String productVersion, String jndiName, ConnectableResource cr, ...
python
def _ScanFileSystem(self, scan_node, base_path_specs): """Scans a file system scan node for file systems. Args: scan_node (SourceScanNode): file system scan node. base_path_specs (list[PathSpec]): file system base path specifications. Raises: SourceScannerError: if the scan node is inval...
python
def workspace_backup_list(ctx): """ List backups """ backup_manager = WorkspaceBackupManager(Workspace(ctx.resolver, directory=ctx.directory, mets_basename=ctx.mets_basename, automatic_backup=ctx.automatic_backup)) for b in backup_manager.list(): print(b)
python
def match(self, filename): """Searches for a pattern that matches the given filename. :return A matching pattern or None if there is no matching pattern. """ try: for regex, patterns in self._regex_patterns: match = regex.match(filename) deb...
python
def setDebugActions( self, startAction, successAction, exceptionAction ): """ Enable display of debugging messages while doing pattern matching. """ self.debugActions = (startAction or _defaultStartDebugAction, successAction or _defaultSuccessDebugAction, ...
java
public Config addEventJournalConfig(EventJournalConfig eventJournalConfig) { final String mapName = eventJournalConfig.getMapName(); final String cacheName = eventJournalConfig.getCacheName(); if (StringUtil.isNullOrEmpty(mapName) && StringUtil.isNullOrEmpty(cacheName)) { throw new I...
java
@Override public MultiDataSet next() { if (throwable != null) throw throwable; if (hasDepleted.get()) return null; MultiDataSet temp = nextElement; nextElement = null; return temp; }
python
def _compute_acq_withGradients(self, x): """ Computes the GP-Lower Confidence Bound and its derivative """ m, s, dmdx, dsdx = self.model.predict_withGradients(x) f_acqu = -m + self.exploration_weight * s df_acqu = -dmdx + self.exploration_weight * dsdx ret...
python
def _is_simple_type(value): ''' Returns True, if the given parameter value is an instance of either int, str, float or bool. ''' return isinstance(value, six.string_types) or isinstance(value, int) or isinstance(value, float) or isinstance(value, bool)
python
def url(self, name): """ Since we assume all public storage with no authorization keys, we can just simply dump out a URL rather than having to query S3 for new keys. """ name = urllib.quote_plus(self._clean_name(name), safe='/') if self.bucket_cname: return ...
python
def sensor(sensor_type, cfg): """ Creates a camera sensor of the specified type. Parameters ---------- sensor_type : :obj:`str` the type of the sensor (real or virtual) cfg : :obj:`YamlConfig` dictionary of parameters for sensor initialization """...
java
protected int writeTo(SparseBufferOperator<B> op, Splitter<SparseBufferOperator<B>> splitter, int start, int length) throws IOException { return splitter.split(op, start, length); }
python
def get_bounding_box( self, resource, resolution, _id, bb_type, url_prefix, auth, session, send_opts): """Get bounding box containing object specified by id. Currently only supports 'loose' bounding boxes. The bounding box returned is cuboid aligned. Args: ...