language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
@SuppressWarnings("unchecked") private ZealotKhala doInByType(String prefix, String field, Object value, boolean match, int objType, boolean positive) { if (match) { // 赋予source对象in SQL片段的前缀和后缀操作符. this.source.setPrefix(prefix).setSuffix(positive ? ZealotConst.IN_SUFFIX :...
python
def _on_dirty_changed(self, dirty): """ Adds a star in front of a dirtt tab and emits dirty_changed. """ try: title = self._current._tab_name index = self.indexOf(self._current) if dirty: self.setTabText(index, "* " + title) ...
java
public static BatchFlusher of(final Channel channel, final EventLoop eventLoop) { return of(channel, eventLoop, DEFAULT_MAX_PENDING); }
python
def copy(self): """Create an identical (deep) copy of this element.""" result = self.space.element() result.assign(self) return result
python
def draw_screen(self, size): """Render curses screen """ self.tui.clear() canvas = self.top.render(size, focus=True) self.tui.draw_screen(size, canvas)
python
def add_oid(self,oid,value,label=None): """Short helper to add an object ID value to the MIB subtree.""" self.add_oid_entry(oid,'OBJECTID',value,label=label)
java
public boolean isDisabled(FaceletContext ctx) { return disabled != null && Boolean.TRUE.equals(disabled.getBoolean(ctx)); }
python
def run_synthetic_SGLD(): """Run synthetic SGLD""" theta1 = 0 theta2 = 1 sigma1 = numpy.sqrt(10) sigma2 = 1 sigmax = numpy.sqrt(2) X = load_synthetic(theta1=theta1, theta2=theta2, sigmax=sigmax, num=100) minibatch_size = 1 total_iter_num = 1000000 lr_scheduler = SGLDScheduler(beg...
python
def _rescale_array(self, array, scale, zero): """ Scale the input array """ if scale != 1.0: sval = numpy.array(scale, dtype=array.dtype) array *= sval if zero != 0.0: zval = numpy.array(zero, dtype=array.dtype) array += zval
java
boolean isSyncForced(BackupAwareOperation backupAwareOp) { if (disabled) { return false; } // if there are no asynchronous backups, there is nothing to regulate. if (backupAwareOp.getAsyncBackupCount() == 0) { return false; } if (backupAwareOp in...
java
public VpcPeeringConnectionVpcInfo withIpv6CidrBlockSet(Ipv6CidrBlock... ipv6CidrBlockSet) { if (this.ipv6CidrBlockSet == null) { setIpv6CidrBlockSet(new com.amazonaws.internal.SdkInternalList<Ipv6CidrBlock>(ipv6CidrBlockSet.length)); } for (Ipv6CidrBlock ele : ipv6CidrBlockSet) { ...
java
public ItemDocument createItemDocument(ItemDocument itemDocument, String summary) throws IOException, MediaWikiApiErrorException { String data = JsonSerializer.getJsonString(itemDocument); return (ItemDocument) this.wbEditingAction.wbEditEntity(null, null, null, "item", data, false, this.editAsBot, 0, summar...
python
def getPackage(self, name, **kwargs): """ Load information about a package and return a custom Package class. Calls "getPackage" XML-RPC. :param package_id: ``int``, for example 12345 :returns: deferred that when fired returns a Package (Munch, dict-like) obje...
java
public FilterRuleChain<String> parseChain(Element xmlElement, FilterRuleChain<String> parent) { boolean defaultResult = this.domUtil.getAttributeAsBoolean(xmlElement, XML_ATR_CHAIN_DEFAULT, true); List<FilterRule<String>> rules = new ArrayList<>(); NodeList childList = xmlElement.getChildNodes(); ...
java
public static Map<String, Double> histogramsPlus(List<Map<String, Double>> histograms) { return histogramsPlus(histograms.toArray(new HashMap[histograms.size()])); }
java
public static <R> IntFunction<R> intFunction(CheckedIntFunction<R> function, Consumer<Throwable> handler) { return t -> { try { return function.apply(t); } catch (Throwable e) { handler.accept(e); throw new IllegalStateExceptio...
java
@Handler public void onStart(Start event) { synchronized (this) { if (runner != null) { return; } buffers = new ManagedBufferPool<>(ManagedBuffer::new, () -> { return ByteBuffer.allocateDirect(bufferSize); ...
python
def add_readgroups(job, bamfile, sample_type, univ_options, picard_options): """ Add read groups to the bam. :param dict bamfile: The input bam file :param str sample_type: Description of the sample to inject into the filename :param dict univ_options: Dict of universal options used by almost all t...
java
public static InterleavedS16 convert( Planar<GrayS16> input , InterleavedS16 output ) { if (output == null) { output = new InterleavedS16(input.width, input.height,input.getNumBands()); } else { output.reshape(input.width,input.height,input.getNumBands()); } if( BoofConcurrency.USE_CONCURRENT ) { Impl...
python
def check_field_cohesion(self, rec_write_fields, sig_write_fields): """ Check the cohesion of fields used to write the header """ # If there are no signal specification fields, there is nothing to check. if self.n_sig>0: # The length of all signal specification fiel...
java
public static SubscribeRequest createSubscribeReq(SubscribeElement el) { if (el == null) { throw new NullPointerException("el is not allowed to be null"); } SubscribeRequest ret = createSubscribeReq(); ret.addSubscribeElement(el); return ret; }
python
def load(self, path=None): """Loads the specified DLL, if any, otherwise re-loads the current DLL. If ``path`` is specified, loads the DLL at the given ``path``, otherwise re-loads the DLL currently specified by this library. Note: This creates a temporary DLL file to use for...
python
def scope_groups(self): """ Return a new raw REST interface to scope_group resources :rtype: :py:class:`ns1.rest.ipam.Scopegroups` """ import ns1.rest.ipam return ns1.rest.ipam.Scopegroups(self.config)
java
@Override public EEnum getSIPrefix() { if (siPrefixEEnum == null) { siPrefixEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(1); } return siPrefixEEnum; }
python
def webhelp(i): """ Input: { from access function } Output: { return - return code = 0, if successful > 0, if error (error) - error text if return > 0 } """ a=i.get('repo_uoa','') m=i.get('module_uoa...
java
public static AuthContext getAuth(HttpContext cx, HttpRequest req) throws IOException { AuthContext auth = (AuthContext) cx.getAttribute(HttpServer.CX_AUTH); if (auth == null) { Header authHdr = req.getLastHeader(HttpHeaders.AUTHORIZATION); if (authHdr == null) { ...
java
public boolean isCaseSensitive() { switch (getJcrType()) { case PropertyType.DOUBLE: case PropertyType.LONG: case PropertyType.DECIMAL: case PropertyType.WEAKREFERENCE: case PropertyType.REFERENCE: // conversion is case-insensitive case Pro...
python
def to_meta(self, md5=None, file=None): """Return a dictionary of metadata, for use in the Remote api.""" # from collections import OrderedDict if not md5: if not file: raise ValueError('Must specify either file or md5') md5 = md5_for_file(file) ...
java
@Override public R visitReturn(ReturnTree node, P p) { return scan(node.getExpression(), p); }
java
public void marshall(CreateDeploymentRequest createDeploymentRequest, ProtocolMarshaller protocolMarshaller) { if (createDeploymentRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createDepl...
java
private static String cleanupStatusKey(String s) { String result = s; if (s.startsWith(PREFIX_CONTEXT)) { result = s.substring(PREFIX_CONTEXT.length()); } if (s.startsWith(PREFIX_THREAD_POOL)) { result = s.substring(PREFIX_THREAD_POOL.length()); } ...
python
def cbpdn_setdict(): """Set the dictionary for the cbpdn stage. There are no parameters or return values because all inputs and outputs are from and to global variables. """ global mp_DSf # Set working dictionary for cbpdn step and compute DFT of dictionary # D and of D^T S mp_Df[:] = s...
python
def cols_to_dt(df, col_list,set_format = None,infer_format = True,dest = False): """ Coerces a list of columns to datetime Parameters: df - DataFrame DataFrame to operate on col_list - list of strings names of columns to coerce dest - bool, default False Whether to apply the ...
python
def calc_qdb_v1(self): """Calculate direct runoff released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |BSf| Required state sequence: |BoWa| Required flux sequence: |WaDa| Calculated flux sequence: |QDB| Basic equations: :ma...
java
public BoxRequestsFolder.GetFolderWithAllItems getFolderWithAllItems(String folderId) { BoxRequestsFolder.GetFolderWithAllItems request = new BoxRequestsFolder.GetFolderWithAllItems(folderId, getFolderInfoUrl(folderId), getFolderItemsUrl(folderId), mSession); // For best user experience we do not want t...
python
def write_data(self, buf): """Send data to the device. If the write fails for any reason, an :obj:`IOError` exception is raised. :param buf: the data to send. :type buf: list(int) :return: success status. :rtype: bool """ bmRequestType = usb....
python
def get_crystal_field_spin(self, coordination: str = "oct", spin_config: str = "high"): """ Calculate the crystal field spin based on coordination and spin configuration. Only works for transition metal species. Args: coordination (str): Only o...
java
public static boolean isRetryableServiceException(SdkBaseException exception) { return isAse(exception) && RETRYABLE_STATUS_CODES.contains(toAse(exception).getStatusCode()); }
java
@Override public void evaluate(DoubleSolution solution) { int numberOfVariables = solution.getNumberOfVariables(); int numberOfObjectives = solution.getNumberOfObjectives(); double[] x = new double[numberOfVariables]; double[] f = new double[numberOfObjectives]; for (int i = 0; i < num...
java
@SuppressWarnings("unchecked") static AbstractScheduler loadScheduler(final String schedulerClassName, final DeploymentManager deploymentManager, final InstanceManager instanceManager) { Class<? extends AbstractScheduler> schedulerClass; try { schedulerClass = (Class<? extends AbstractScheduler>) Class.forN...
java
public AbstractObjectAssert<?, Object> jsonPath(String path) { return Assertions.assertThat(actual.read(path, Object.class)); }
python
def document(_, path=''): """View single document from path. :param path: Path to resource, including container as first part of path. """ container_path, object_path = path_parts(path) conn = get_connection() try: container = conn.get_container(container_path) except errors.NoConta...
python
def load_location(url, base_path=None, module=False): """ Read a single Python file in as code and extract members from it. Args: url -- a URL either absolute (contains ':') or relative base_path -- if url is relative, base_path is prepended to it. The resulting URL needs to look somet...
python
def build_dict_to_sign(self, request, signature_headers): """Build a dict with headers and values used in the signature. "signature_headers" is a list of lowercase header names. """ d = {} for header in signature_headers: if header == '(request-target)': ...
java
@Override protected Set<TypeInference.DataType> getSupportedXDataTypes() { return new HashSet<>(Arrays.asList(TypeInference.DataType.BOOLEAN, TypeInference.DataType.NUMERICAL)); }
java
public void setItems(java.util.Collection<RestApi> items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList<RestApi>(items); }
python
async def step(self, step_id, session, scenario=None): """ single scenario call. When it returns 1, it works. -1 the script failed, 0 the test is stopping or needs to stop. """ if scenario is None: scenario = pick_scenario(self.wid, step_id) try: ...
python
def contrail_error_handler(f): """Handle HTTP errors returned by the API server """ @wraps(f) def wrapper(*args, **kwargs): try: return f(*args, **kwargs) except HttpError as e: # Replace message by details to provide a # meaningful message ...
python
def limit(limit, every=1): """This decorator factory creates a decorator that can be applied to functions in order to limit the rate the function can be invoked. The rate is `limit` over `every`, where limit is the number of invocation allowed every `every` seconds. limit(4, 60) creates ...
python
def _parse_grid(self, grid): """Return the input constraints for a Sudoku grid.""" chars = [c for c in grid if c in DIGITS or c in "0."] if len(chars) != 9**2: raise ValueError("expected 9x9 grid") return [self.litmap[self.X[i // 9 + 1, i % 9 + 1, int(c)]] for...
python
def read(self, frames, raw=False): """Read samples from an input stream. The function does not return until the required number of frames has been read. This may involve waiting for the operating system to supply the data. If raw data is requested, the raw cffi data buffer is ...
python
def handle(self, t_input: inference.TranslatorInput, t_output: inference.TranslatorOutput, t_walltime: float = 0.): """ :param t_input: Translator input. :param t_output: Translator output. :param t_walltime: Total wall-clock time for translat...
python
def get_descriptor_defaults(self, api_info, hostname=None, x_google_api_name=False): """Gets a default configuration for a service. Args: api_info: _ApiInfo object for this service. hostname: string, Hostname of the API, to override the value set on the current service. Defaults to None. ...
python
def draw_segments(image, segments, color=(255, 0, 0), line_width=1): """draws segments on image""" for segment in segments: x, y, w, h = segment cv2.rectangle(image, (x, y), (x + w, y + h), color, line_width)
python
def get_state_actions(self, state, **kwargs): """ Restarts instance containers. :param state: Configuration state. :type state: dockermap.map.state.ConfigState :param kwargs: Additional keyword arguments. :return: Actions on the client, map, and configurations. :...
java
public Message editMessageText(String chatId, Long messageId, String text, ParseMode parseMode, boolean disableWebPagePreview, InlineReplyMarkup inlineReplyMarkup) { if(chatId != null && messageId != null && text != null) { JSONObject jsonResponse = this.editMessageText(chatId, messageId, null, te...
java
@RequiresPermission(Manifest.permission.INTERNET) public static Observable<Boolean> observeInternetConnectivity() { InternetObservingSettings settings = InternetObservingSettings.create(); return observeInternetConnectivity(settings.strategy(), settings.initialInterval(), settings.interval(), settings...
java
@SuppressWarnings("unchecked") public <R> R put(@NotNull final String name, R value) { if (value == null) { return (R) context.remove(name); } return (R) context.put(name, value); }
java
public static int numExamplesTrain(Set dataSet) { switch (dataSet) { case COMPLETE: return NUM_COMPLETE_TRAIN; case MERGE: return NUM_MERGE_TRAIN; case BALANCED: return NUM_BALANCED_TRAIN; case LETTERS: ...
java
@Deprecated static <U, T, R> BiFunction<U, T, R> indexedd(final IndexedBiFunction<U, T, R> func) { return BiFunctions.indexed(func); }
python
def crawl_cmd(self, seed_list, n): ''' Runs the crawl job for n rounds :param seed_list: lines of seed URLs :param n: number of rounds :return: number of successful rounds ''' print("Num Rounds "+str(n)) cc = self.proxy.Crawl(seed=seed_list, rounds=n) ...
python
def build_shapes(pfeed): """ Given a ProtoFeed, return DataFrame representing ``shapes.txt``. Only use shape IDs that occur in both ``pfeed.shapes`` and ``pfeed.frequencies``. Create reversed shapes where routes traverse shapes in both directions. """ rows = [] for shape, geom in pfe...
java
private static String[] getCLDBLocations(String authority) throws IOException { // Determine the MapR home String maprHome = System.getenv(MAPR_HOME_ENV); if (maprHome == null) { maprHome = DEFAULT_MAPR_HOME; } final File maprClusterConf = new File(maprHome, MAPR_CLUSTER_CONF_FILE); if (LOG.isDebugEna...
python
def reind_proc(self, inputstring, **kwargs): """Add back indentation.""" out = [] level = 0 for line in inputstring.splitlines(): line, comment = split_comment(line.strip()) indent, line = split_leading_indent(line) level += ind_change(indent) ...
java
HttpConnection asRequest() { DatabaseURIHelper builder = getViewURIBuilder(); for (Map.Entry<String, Object> queryParameter : processParameters(Parameter.Type .QUERY_PARAMETER).entrySet()) { builder.query(queryParameter.getKey(), queryParameter.getValue()); } ...
python
def element_from_neighbourhood(X): """ Randomly move an event: - Either to an empty slot - Swapping with another event """ m, n = X.shape new_X = np.copy(X) event_to_move = np.random.randint(m) current_event_slot = np.where(new_X[event_to_move, :] == 1)[0][0] slot_to_move_to ...
java
public static String getSql(Report report) { String sql; if (report.getSql() != null) { sql = report.getSql(); } else { sql = report.getQuery().toString(); } return sql; }
java
@Override public int stage3EquivalenceTerms(ProtoNetwork network) { TermEquivalencer e = new TermEquivalencer(network, equivs); int equivalences = e.equivalence(); try { equivs.closeResources(); } catch (IOException ie) { // Ignore it } return ...
java
public final String getBestOutcome(double[] ocs) { int best = 0; for (int i = 1; i<ocs.length; i++) if (ocs[i] > ocs[best]) best = i; return ocNames[best]; }
python
def max_cardinality_heuristic(G): """Computes an upper bound on the treewidth of graph G based on the max-cardinality heuristic for the elimination ordering. Parameters ---------- G : NetworkX graph The graph on which to compute an upper bound for the treewidth. inplace : bool ...
java
public synchronized Savepoint setSavepoint() throws SQLException { checkClosed(); if (JDBCDatabaseMetaData.JDBC_MAJOR >= 4 && getAutoCommit()) { throw Util.sqlException(ErrorCode.X_3B001); } try { sessionProxy.savepoint("SYSTEM_SAVEPOINT"); } catch (Hsq...
java
@Override public DeleteUserPolicyResult deleteUserPolicy(DeleteUserPolicyRequest request) { request = beforeClientExecution(request); return executeDeleteUserPolicy(request); }
java
@Pure public static Point3d computeClosestPoint( double minx, double miny, double minz, double maxx, double maxy, double maxz, double x, double y, double z) { Point3d closest = new Point3d(); if (x < minx) { closest.setX(minx); } else if (x > maxx) { closest.setX(maxx); } else { closest.s...
java
static List<Param> findStaticFormParams(InvocationContext context) { Method request = assertNotNull(context).getRequest(); FormParams formParams = request.getAnnotation(FormParams.class); return Collections.unmodifiableList(formParams != null? Arrays.asList(formParams.value()) : new ArrayList...
java
@Override public DescribeReplicationInstanceTaskLogsResult describeReplicationInstanceTaskLogs(DescribeReplicationInstanceTaskLogsRequest request) { request = beforeClientExecution(request); return executeDescribeReplicationInstanceTaskLogs(request); }
java
@Override public void info(String msg, Throwable throwable) { LOGGER.log(Level.INFO, msg, throwable); }
python
def get_project_directory(self, name, target): """ This code is copied verbatim from Django's TemplateCommand.handle(), but with the directory creation code removed. """ # if some directory is given, make sure it's nicely expanded. if target is None: t...
java
public static Reader createReader(FileSystem fs, Path path, Configuration conf ) throws IOException { return new ReaderImpl(fs, path, conf); }
java
public static SimpleFeatureCollection csvFileToFeatureCollection( File csvFile, CoordinateReferenceSystem crs, LinkedHashMap<String, Integer> fieldsAndTypesIndex, String separator, IHMProgressMonitor pm ) throws Exception { GeometryFactory gf = new GeometryFactory(); Map<String, Class< ? >> ...
java
public void addHostAlias(String virtualHost, String alias) { log.warn("addHostAlias is deprecated. Use HttpContext.addVirtualHost"); Object contextMap=_virtualHostMap.get(virtualHost); if (contextMap==null) throw new IllegalArgumentException("No Such Host: "+virtualHost); ...
python
def _op(self, _, obj, app): """ convert status code in Responses from int to string """ if obj.responses == None: return tmp = {} for k, v in six.iteritems(obj.responses): if isinstance(k, six.integer_types): tmp[str(k)] = v else: ...
java
public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets( String parent, String filter) { DATASET_PATH_TEMPLATE.validate(parent, "listAnnotatedDatasets"); ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder().setParent(parent).setFilter(filter).build(); ...
java
public void combine(CRFClassifier<IN> crf, double weight) { Timing timer = new Timing(); // Check the CRFClassifiers are compatible if (!this.pad.equals(crf.pad)) { throw new RuntimeException("Incompatible CRFClassifier: pad does not match"); } if (this.windowSize != crf.windowSize) { ...
java
private void enter(Logger logger, String name) { int offset = 3; StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); StackTraceElement creator = stackTrace[Math.min(offset, stackTrace.length - 1)]; creators.push(new SessionEntryPoint(creator, logger, name)); }
java
@Deprecated public int findIn(CharSequence value, int fromIndex, boolean findNot) { //TODO add strings, optimize, using ICU4C algorithms int cp; for (; fromIndex < value.length(); fromIndex += UTF16.getCharCount(cp)) { cp = UTF16.charAt(value, fromIndex); if (contains...
python
def QA_SU_trans_stock_min(client=DATABASE, ui_log=None, ui_progress=None, data_path: str = "D:\\skysoft\\", type_="1min"): """ 将天软本地数据导入 QA 数据库 :param client: :param ui_log: :param ui_progress: :param data_path: 存放天软数据的路径,默认文件名格式为类似 "SH600000.csv" 格式 """ code_li...
python
def save(self, *args, **kwargs): ''' This custom save method ensures that a revenue item is not attributed to multiple categories. It also ensures that the series and event properties are always associated with any type of revenue of that series or event. ''' # Set the r...
python
def create_ca_signed_cert(ca_name, CN, days=365, cacert_path=None, ca_filename=None, cert_path=None, cert_filename=None, digest='sha256', ...
java
public static void printFatal(Object message) { if (message instanceof Throwable) { Throwable e = (Throwable) message; e.printStackTrace(); } Log log = getLog(Debugger.class); if(log != null) log.fatal(message); else System.err.println(message); }
java
public void writeScriptExportingDataFrame(Engine engine, Writer writer, InputVariable a, InputVariable b, Reader reader, List<OutputVariable> outputVariables) throws IOException { writeScriptHeader(writer, engine); writer.append("engine.fldFile = \""); new FldExporter()....
python
def set_buffer_options(self, options, bufnr=None): """Set buffer-local options for a buffer, defaulting to current. Args: options (dict): Options to set, with keys being Vim option names. For Boolean options, use a :class:`bool` value as expected, e.g. ...
java
protected GSONWorkUnit createGSONWorkUnit( final DocWorkUnit workUnit, final List<Map<String, String>> indexByGroupMaps, final List<Map<String, String>> featureMaps) { return new GSONWorkUnit(); }
java
protected void filter(String value, AbstractRenderAppender writer, boolean markupHTMLSpaceReturn) { if (value.equals(" ")) { writer.append("&nbsp;"); return; } HtmlUtils.filter(value, writer, markupHTMLSpaceReturn); }
java
@Override protected HtmlToken produce() { HtmlToken token = readToken(); if (token == null) { return null; } switch (token.type) { // Keep track of whether we're inside a tag or not. case TAGBEGIN: state = State.IN_TAG; break; case TAGEND: if (state == State.SAW...
java
@Override public CompletableFuture<Void> closeAsync() { synchronized (lock) { if (running) { LOG.info("Shutting down Flink Mini Cluster"); try { final long shutdownTimeoutMillis = miniClusterConfiguration.getConfiguration().getLong(ClusterOptions.CLUSTER_SERVICES_SHUTDOWN_TIMEOUT); final int num...
python
def load_coco(image_set, dirname, shuffle=False): """ wrapper function for loading ms coco dataset Parameters: ---------- image_set : str train2014, val2014, valminusminival2014, minival2014 dirname: str root dir for coco shuffle: boolean initial shuffle """ ...
java
public void processingInstruction(String target, String data) throws SAXException { emitWhitespace(); super.processingInstruction(target, data); }
java
public void init(Converter converter, Record thisFile, String iNamePrefix, String iNameFirst, String iNameMiddle, String iNameSur, String iNameSuffix, String iNameTitle) { super.init(converter); m_recThis = thisFile; m_iNamePrefix = iNamePrefix; m_iNameFirst = iNameFirst; m_i...
python
def mcast_ip_mask(ip_addr_and_mask, return_tuple=True): """ Function to check if a address is multicast and that the CIDR mask is good Args: ip_addr_and_mask: Multicast IP address and mask in the following format 239.1.1.1/24 return_tuple: Set to True it returns a IP and mask in a tuple, set...
python
def sync_and_deploy_gateway(collector): """Do a sync followed by deploying the gateway""" configuration = collector.configuration aws_syncr = configuration['aws_syncr'] find_gateway(aws_syncr, configuration) artifact = aws_syncr.artifact aws_syncr.artifact = "" sync(collector) aws_sync...