language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def lookup_announce_alias(name): """ Get canonical alias name and announce URL list for the given alias. """ for alias, urls in announce.items(): if alias.lower() == name.lower(): return alias, urls raise KeyError("Unknown alias %s" % (name,))
java
public List<CmsRelation> readRelations(CmsRelationFilter filter) throws CmsException { return m_securityManager.getRelationsForResource(m_context, null, filter); }
java
public static int[] calculateBlockGap(int[][][] optAln){ //Initialize the array to be returned int [] blockGap = new int[optAln.length]; //Loop for every block and look in both chains for non-contiguous residues. for (int i=0; i<optAln.length; i++){ int gaps = 0; //the number of gaps in that block int l...
python
def get_calltip(project, source_code, offset, resource=None, maxfixes=1, ignore_unknown=False, remove_self=False): """Get the calltip of a function The format of the returned string is ``module_name.holding_scope_names.function_name(arguments)``. For classes `__init__()` and for normal...
java
public void addMasterState(MasterState state) { checkNotNull(state); synchronized (lock) { if (!discarded) { masterState.add(state); } } }
java
public static String addTo(Message message) { if (message.getStanzaId() == null) { message.setStanzaId(StanzaIdUtil.newStanzaId()); } message.addExtension(new DeliveryReceiptRequest()); return message.getStanzaId(); }
java
protected void processLayer(GrayF32 image1 , GrayF32 image2 , GrayF32 deriv1X , GrayF32 deriv1Y, GrayF32 deriv2X , GrayF32 deriv2Y, GrayF32 deriv2XX , GrayF32 deriv2YY, GrayF32 deriv2XY) { int N = image1.width*image1.height; int stride = image1.stride; // outer Taylor expansion iteration...
python
def _parse_node(graph, text, condition_node_params, leaf_node_params): """parse dumped node""" match = _NODEPAT.match(text) if match is not None: node = match.group(1) graph.node(node, label=match.group(2), **condition_node_params) return node match = _LEAFPAT.match(text) if ...
python
def get_all_rooted_subtrees_as_lists(self, start_location=None): """Return a list of all rooted subtrees (each as a list of Location objects).""" if start_location is not None and start_location not in self._location_to_children: raise AssertionError(u'Received invalid start_location {} that...
java
private String deriveId(final String idName) { // Find parent naming context NamingContextable parent = WebUtilities.getParentNamingContext(this); // No Parent if (parent == null) { return idName; } // Get ID prefix String prefix = parent.getNamingContextId(); // No Prefix, just use id name if (...
java
public String transformDDL(String ddl) { return transformQuery(ddl, dropTableIfExistsDdlTransformer, varcharBytesDdlTransformer, varbinaryDdlTransformer, tinyintDdlTransformer, assumeUniqueDdlTransformer); }
java
public static int clen(int values, int bpv) { int len = (values*bpv) >> 3; return values*bpv % 8 == 0 ? len : len + 1; }
python
def download_to_file(self, file_obj, client=None, start=None, end=None): """Download the contents of this blob into a file-like object. .. note:: If the server-set property, :attr:`media_link`, is not yet initialized, makes an additional API request to load it. Downloadi...
java
private void postInitialize() { if (log.isDebugEnabled()) { log.debug("FLVReader 1 - Buffer size: {} position: {} remaining: {}", new Object[] { getTotalBytes(), getCurrentPosition(), getRemainingBytes() }); } if (getRemainingBytes() >= 9) { decodeHeader(); } ...
python
def stack_2_eqn(self,p): """returns equation string for program stack""" stack_eqn = [] if p: # if stack is not empty for n in p.stack: self.eval_eqn(n,stack_eqn) return stack_eqn[-1] return []
python
def template_exists(template_name): ''' Determine if a given template exists so that it can be loaded if so, or a default alternative can be used if not. ''' try: template.loader.get_template(template_name) return True except template.TemplateDoesNotExist: return...
python
def reset_directory(directory): """ Remove `directory` if it exists, then create it if it doesn't exist. """ if os.path.isdir(directory): shutil.rmtree(directory) if not os.path.isdir(directory): os.makedirs(directory)
python
def enqueue(self, job): """Enqueue a job for later processing, returns the new length of the queue """ if job.queue_name(): raise EnqueueError("job %s already queued!" % job.job_id) new_len = self.redis.lpush(self.queue_name, job.serialize()) job.notify_queued(self) return new_len
python
def web_services_from_str( list_splitter_fn=ujson.loads, ): """ parameters: list_splitter_fn - a function that will take the json compatible string rerpesenting a list of mappings. """ # ------------------------------------------------------------------------- def class_list...
python
def inputChecks(**_params_): """ This is a function to check all the input for GET APIs. """ def checkTypes(_func_, _params_ = _params_): log = clog.error_log @wraps(_func_) def wrapped(*args, **kw): arg_names = _func_.__code__.co_varnames[:_func_.__code__.co_argcount...
java
public static final VersionRegEx create(int major, int minor, int patch, String preRelease, String buildMetaData) { checkParams(major, minor, patch); require(preRelease != null, "preRelease is null"); require(buildMetaData != null, "buildMetaData is null"); if (!...
python
def parse_esmtp_extensions(message: str) -> Tuple[Dict[str, str], List[str]]: """ Parse an EHLO response from the server into a dict of {extension: params} and a list of auth method names. It might look something like: 220 size.does.matter.af.MIL (More ESMTP than Crappysoft!) EHLO he...
java
public void addProperties(List<JpaProperty> queryProperties) { for (JpaProperty prop : queryProperties) { Bean bean = putIfAbsent(prop.getId()); if (!JpaProperty.BEAN_MARKER_PROPERTY_NAME.equals(prop.getPropertyName())) { bean.addProperty(prop.getPropertyName(), prop.getV...
java
public static MozuUrl updateItemQuantityUrl(String orderId, String orderItemId, Integer quantity, String responseFields, String updateMode, String version) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/items/{orderItemId}/quantity/{quantity}?updatemode={updateMode}&version={version}&r...
python
def handle_data(self, data): """Function called for text nodes""" if not self.silent: possible_urls = re.findall( r'(https?://[\w\d:#%/;$()~_?\-=\\\.&]*)', data) # validate possible urls # we'll transform them just in case # they are valid....
python
def main(): """ Generate sequences.""" parser = OptionParser(conflict_handler="resolve") parser.add_option('--humanTRA', '--human_T_alpha', action='store_true', dest='humanTRA', default=False, help='use default human TRA model (T cell alpha chain)') parser.add_option('--humanTRB', '--human_T_beta', ac...
python
def _parse_indices(self, indices): r""" This private method accepts a list of pores or throats and returns a properly structured Numpy array of indices. Parameters ---------- indices : multiple options This argument can accept numerous different data types in...
python
def _validate(self): """Validate model data and save errors """ errors = {} for name, validator in self._validators.items(): value = getattr(self, name) try: validator(self, value) except ValidationError as e: errors[n...
python
def parse_file(self, sourcepath): """Parse an object-per-line JSON file into a log data dict""" # Open input file and read JSON array: with open(sourcepath, 'r') as logfile: jsonlist = logfile.readlines() # Set our attributes for this entry and add it to data.entries: ...
python
def audio_inputs(self): """ :return: A list of audio input :class:`Ports`. """ return self.client.get_ports(is_audio=True, is_physical=True, is_input=True)
python
def show(ctx): """ Show migrations list """ for app_name, app in ctx.obj['config']['apps'].items(): click.echo(click.style(app_name, fg='green', bold=True)) for migration in app['migrations']: applied = ctx.obj['db'].is_migration_applied(app_name, migration) clic...
python
def betting_market_group_update( self, betting_market_group_id, description=None, event_id=None, rules_id=None, status=None, account=None, **kwargs ): """ Update an betting market. This needs to be **proposed**. :param str betting_...
python
def read_parfile(parfile): """load a pest-compatible .par file into a pandas.DataFrame Parameters ---------- parfile : str pest parameter file name Returns ------- pandas.DataFrame : pandas.DataFrame """ assert os.path.exists(parfile), "Pst.parrep(): parfile not found: " +...
java
public int getId() { if (mTextureId != 0) { return mTextureId; } final CountDownLatch cdl = new CountDownLatch(1); getGVRContext().runOnGlThread(new Runnable() { @Override public void run() { NativeTexture.isReady(getNative...
java
@CanIgnoreReturnValue public final Ordered containsAtLeast( @NullableDecl Object firstExpected, @NullableDecl Object secondExpected, @NullableDecl Object... restOfExpected) { return containsAtLeastElementsIn(accumulate(firstExpected, secondExpected, restOfExpected)); }
java
public static String binaryToInternal(String clazz) { if (clazz.indexOf('/') >= 0 || clazz.indexOf('[') >= 0) { throw new IllegalArgumentException(String.format(Locale.ENGLISH, "'%s' is not a valid binary class name.", clazz)); } return clazz.replace('.', '/'); }
java
public static boolean isPrimitives(Class<?> clazz) { if (clazz.isArray()) { // 数组,检查数组类型 return isPrimitiveType(clazz.getComponentType()); } return isPrimitiveType(clazz); }
java
public final void parse(final Reader in, final ContentHandler handler) throws IOException, ParserException { final StreamTokenizer tokeniser = new StreamTokenizer(in); try { tokeniser.resetSyntax(); tokeniser.wordChars(WORD_CHAR_START, WORD_CHAR_END); tok...
java
public static KaryonServer forTcpConnectionHandler(int port, ConnectionHandler<ByteBuf, ByteBuf> handler, BootstrapModule... bootstrapModules) { RxServer<ByteBuf, ByteBuf> server = RxNetty.newTcpServerBuilder(port, handler).build(); return new RxNet...
python
def get_instance(self, payload): """ Build an instance of StepInstance :param dict payload: Payload response from the API :returns: twilio.rest.studio.v1.flow.engagement.step.StepInstance :rtype: twilio.rest.studio.v1.flow.engagement.step.StepInstance """ return...
python
def make(target="all", dir=".", **kwargs): """ Run make. Arguments: target (str, optional): Name of the target to build. Defaults to "all". dir (str, optional): Path to directory containing Makefile. **kwargs (optional): Any additional arguments to be passed to ...
java
public double[] update( double w, double c1, double rand1, double c2, double rand2, double[] globalBest ) { for( int i = 0; i < locations.length; i++ ) { particleVelocities[i] = w * particleVelocities[i] + // c1 * rand1 * (particleLocalBests[i] - locations[i]) + // ...
java
@Override @UiThread public void onAttachedToRecyclerView(@NonNull RecyclerView recyclerView) { super.onAttachedToRecyclerView(recyclerView); mAttachedRecyclerViewPool.add(recyclerView); }
java
public void pushLogging(String key, Object value) { assertArgumentNotNull("key", key); assertArgumentNotNull("value", value); postcard.pushLogging(key, value); }
python
def parse_rdp_assignment(line): """Returns a list of assigned taxa from an RDP classification line """ toks = line.strip().split('\t') seq_id = toks.pop(0) direction = toks.pop(0) if ((len(toks) % 3) != 0): raise ValueError( "Expected assignments in a repeating series of (ran...
java
public synchronized Counter findCounter(String group, String name) { return getGroup(group).getCounterForName(name); }
java
public void setUnsuccessfulInstanceCreditSpecifications( java.util.Collection<UnsuccessfulInstanceCreditSpecificationItem> unsuccessfulInstanceCreditSpecifications) { if (unsuccessfulInstanceCreditSpecifications == null) { this.unsuccessfulInstanceCreditSpecifications = null; ...
java
public ErrorRootCause withServices(ErrorRootCauseService... services) { if (this.services == null) { setServices(new java.util.ArrayList<ErrorRootCauseService>(services.length)); } for (ErrorRootCauseService ele : services) { this.services.add(ele); } retu...
python
def setup_logger(options): """Do the logger setup with options.""" LOGGER.setLevel(logging.INFO if options.verbose else logging.WARN) if options.report: LOGGER.removeHandler(STREAM) LOGGER.addHandler(logging.FileHandler(options.report, mode='w')) if options.options: LOGGER.info(...
java
@Override public final String getNamespaceURI(String prefix) { if (prefix == null) { throw new IllegalArgumentException(ErrorConsts.ERR_NULL_ARG); } if (prefix.length() == 0) { if (mDepth == 0) { // unexpected... but let's not err at this point /* ...
java
private static boolean setVTMode() { long console = GetStdHandle(STD_OUTPUT_HANDLE); int[] mode = new int[1]; if (Kernel32.GetConsoleMode(console, mode) == 0) { // No need to go further, not supported. return false; } if (Kernel32.SetConsoleMode(console, m...
python
def get_occupancy(last, bucketsize): """ We deliver historical occupancy up until "now". If the building has occupancy sensors, we pull that data and aggregate it by zone. Take mean occupancy per zone (across all sensors). If building does *not* have occupancy sensors, then we need to read the results...
python
def _get_message(self, key, since=None): """Return the MdMessage object for the key. The object is either returned from the cache in the store or made, cached and then returned. If 'since' is passed in the modification time of the file is checked and the message is only returne...
java
private static String decode(String s) { int n = INITIAL_N; int i = 0; int bias = INITIAL_BIAS; StringBuffer output = new StringBuffer(); int d = s.lastIndexOf(DELIMITER); if (d > 0) { for (int j = 0; j < d; j++) { char c = s.charAt(j); if (!basicCodePoint(c)) { t...
python
def main(): """ Testing function for PDA - DFA Diff Operation """ if len(argv) < 2: print 'Usage: ' print ' Get A String %s CFG_fileA FST_fileB' % argv[0] return alphabet = createalphabet() cfgtopda = CfgPDA(alphabet) print '* Parsing Grammar:',...
java
public static int validate(final String jobName, final Props serverProps, final Props jobProps, final Collection<String> errors) { final int maxNumCallback = serverProps.getInt( JobCallbackConstants.MAX_CALLBACK_COUNT_PROPERTY_KEY, JobCallbackConstants.DEFAULT_MAX_CALLBACK_COUN...
java
private void setCalendar(Calendar c, boolean update) { if (c == null) { setDate(null); } Calendar oldCalendar = calendar; calendar = c; if (update) { // Thanks to Jeff Ulmer for correcting a bug in the sequence :) yearChooser.setYear(c.get(Calendar.YEAR)); monthChooser.setMonth(c.get(Calendar.MON...
python
def to_netcdf(self, *args, **kwargs): """Write DataArray contents to a netCDF file. Parameters ---------- path : str or Path, optional Path to which to save this dataset. If no path is provided, this function returns the resulting netCDF file as a bytes object; i...
java
@Override public GetIndexingConfigurationResult getIndexingConfiguration(GetIndexingConfigurationRequest request) { request = beforeClientExecution(request); return executeGetIndexingConfiguration(request); }
python
def do_lzop_get(creds, url, path, decrypt, do_retry=True): """ Get and decompress a S3 URL This streams the content directly to lzop; the compressed version is never stored on disk. """ assert url.endswith('.lzo'), 'Expect an lzop-compressed file' def log_wal_fetch_failures_on_error(exc_t...
java
public void scanClass(InputStream bits) throws IOException { DataInputStream dstream = new DataInputStream(new BufferedInputStream(bits)); ClassFile cf = null; try { cf = new ClassFile(dstream); String className = cf.getName(); List<Strin...
java
void setBits(BitSet table) { for (int c = Character.MAX_VALUE; c >= Character.MIN_VALUE; c--) { if (matches((char) c)) { table.set(c); } } }
java
@Override public void storePortletEntity(HttpServletRequest request, final IPortletEntity portletEntity) { Validate.notNull(portletEntity, "portletEntity can not be null"); final IUserInstance userInstance = this.userInstanceManager.getUserInstance(request); final IPerson person = userInsta...
python
def to_pickle(graph: BELGraph, file: Union[str, BinaryIO], protocol: int = HIGHEST_PROTOCOL) -> None: """Write this graph to a pickle object with :func:`networkx.write_gpickle`. Note that the pickle module has some incompatibilities between Python 2 and 3. To export a universally importable pickle, choose ...
python
def get_by_signature(user_id, app_id): ''' Get the collection. ''' try: return TabCollect.get( (TabCollect.user_id == user_id) & (TabCollect.post_id == app_id) ) except: return None
java
protected DBSort.SortBuilder getSortBuilder(String order, String field) { DBSort.SortBuilder sortBuilder; if ("desc".equalsIgnoreCase(order)) { sortBuilder = DBSort.desc(field); } else { sortBuilder = DBSort.asc(field); } return sortBuilder; }
java
@Indexable(type = IndexableType.DELETE) @Override public CommercePriceEntry deleteCommercePriceEntry( long commercePriceEntryId) throws PortalException { return commercePriceEntryPersistence.remove(commercePriceEntryId); }
python
def _purge_crawl(self, spiderid, appid, crawlid): ''' Wrapper for purging the crawlid from the queues @param spiderid: the spider id @param appid: the app id @param crawlid: the crawl id @return: The number of requests purged ''' # purge three times to tr...
java
void push( int slots ) { assert 0 <= slots && slots < 1000; int len = _d.length; _sp += slots; while( _sp > len ) { _key= Arrays.copyOf(_key,len<<1); _ary= Arrays.copyOf(_ary,len<<1); _d = Arrays.copyOf(_d ,len<<1); _fcn= Arrays.copyOf(_fcn,len<<=1); _str= Arrays.copyOf(_...
java
@Override public void visit(NodeVisitor v) { if (v.visit(this)) { testExpression.visit(v); trueExpression.visit(v); falseExpression.visit(v); } }
java
public By getElementLocatorForElementReference(String elementReference) { Map<String, By> objectReferenceMap = getObjectReferenceMap(By.class); By elementLocator = objectReferenceMap.get(elementReference); if (elementLocator == null) { fail("No elementLocator is found for element ...
java
public Map<String, String> getCustomRequestHeaders() { if (customRequestHeaders == null) { return null; } return Collections.unmodifiableMap(customRequestHeaders); }
java
static double inner_product(SparseVector vec1, SparseVector vec2) { Iterator<Map.Entry<Integer, Double>> it; SparseVector other; if (vec1.size() < vec2.size()) { it = vec1.entrySet().iterator(); other = vec2; } else { it = v...
java
public void appendToSubVer(String name, String version, @Nullable String comments) { checkSubVerComponent(name); checkSubVerComponent(version); if (comments != null) { checkSubVerComponent(comments); subVer = subVer.concat(String.format(Locale.US, "%s:%s(%s)/", name, vers...
java
@Override public int read() throws IOException { int c = origStream.read(); if (c != -1) { os.write(c); } else { os.close(); } return c; }
python
def decrypt_ecb(self, data): """ Return an iterator that decrypts `data` using the Electronic Codebook (ECB) mode of operation. ECB mode can only operate on `data` that is a multiple of the block-size in length. Each iteration returns a block-sized :obj:`bytes` object (i.e. 8 bytes) ...
java
public Broadcast startBroadcast(String sessionId, BroadcastProperties properties) throws OpenTokException { if (StringUtils.isEmpty(sessionId) || (properties == null)) { throw new InvalidArgumentException("Session not valid or broadcast properties is null"); } String broadcast = th...
java
public FacesConfigFacetType<FacesConfigRendererType<T>> getOrCreateFacet() { List<Node> nodeList = childNode.get("facet"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigFacetTypeImpl<FacesConfigRendererType<T>>(this, "facet", childNode, nodeList.get(0)); } ...
java
@SuppressWarnings("unchecked") public static NumberList delta(Map<String, Object> currentMap, NumberList previousMap) { return delta(currentMap, (Map)previousMap.numbers); }
java
public void marshall(EnvironmentLanguage environmentLanguage, ProtocolMarshaller protocolMarshaller) { if (environmentLanguage == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(environmentLanguage.ge...
python
def read_text_from_conll_file( file_name, layer_name=LAYER_CONLL, **kwargs ): ''' Reads the CONLL format syntactic analysis from given file, and returns as a Text object. The Text object has been tokenized for paragraphs, sentences, words, and it contains syntactic analyses aligne...
python
def auth_plugins(auth_plugins=None): """Authentication plugins. Usage, Add any plugin here that will serve as a rapid means to authenticate to an OpenStack environment. Syntax is as follows: >>> __auth_plugins__ = { ... 'new_plugin_name': { ... 'os_auth_url': 'https://localhost...
java
public Session startSshSessionAndObtainSession() { Session session = null; try { JSch jsch = new JSch(); if (sshMeta.getSshLoginType() == SshLoginType.KEY) { String workingDir = System.getProperty("user.dir"); String privKeyAbsPath = workingDir ...
python
def send(self, agent_id, user_ids, party_ids='', tag_ids='', msg=None): """ 通用的消息发送接口。msg 内需要指定 msgtype 和对应类型消息必须的字段。 如果部分接收人无权限或不存在,发送仍然执行,但会返回无效的部分(即invaliduser或invalidparty或invalidtag),常见的原因是接收人不在应用的可见范围内。 user_ids、party_ids、tag_ids 不能同时为空,后面不再强调。 :param agent_id...
java
public static java.util.List<com.liferay.commerce.model.CommerceCountry> getCommerceCountriesByUuidAndCompanyId( String uuid, long companyId) { return getService() .getCommerceCountriesByUuidAndCompanyId(uuid, companyId); }
java
public static <T, R1, R> CompletableFuture<R> forEach2(CompletableFuture<? extends T> value1, Function<? super T, CompletableFuture<R1>> value2, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction) { return value1.thenCompose(in -> { ...
java
public double continueToMargin(double[] origin, double[] delta) { assert (delta.length == 2 && origin.length == 2); double factor = Double.POSITIVE_INFINITY; if(delta[0] > 0) { factor = Math.min(factor, (maxx - origin[0]) / delta[0]); } else if(delta[0] < 0) { factor = Math.min(factor, (...
python
def _save_stats(self, epoch_data: EpochData) -> None: """ Extend ``epoch_data`` by stream:variable:aggreagation data. :param epoch_data: data source from which the statistics are computed """ for stream_name in epoch_data.keys(): for variable, aggregations in self._...
java
public final void entryRuleOpSingleAssign() throws RecognitionException { try { // InternalXbaseWithAnnotations.g:234:1: ( ruleOpSingleAssign EOF ) // InternalXbaseWithAnnotations.g:235:1: ruleOpSingleAssign EOF { if ( state.backtracking==0 ) { befo...
java
public static Observable<Intent> fromBroadcast(Context context, IntentFilter intentFilter) { return fromBroadcast(context, intentFilter, NO_OP_ORDERED_BROADCAST_STRATEGY); }
java
public static Number toNumber(Object value, Number defaultValue) { return convert(Number.class, value, defaultValue); }
python
def get_macs(vm_, **kwargs): ''' Return a list off MAC addresses from the named vm :param vm_: name of the domain :param connection: libvirt connection URI, overriding defaults .. versionadded:: 2019.2.0 :param username: username to connect with, overriding defaults .. versionadde...
python
def clear_cache(self): """ Clears any cache associated with the serial model and the engines seen by the direct view. """ self.underlying_model.clear_cache() try: logger.info('DirectView results has {} items. Clearing.'.format( len(self._dv.res...
java
@NotNull public static byte[] decode(byte[] source, int off, int len) throws Base64DecoderException { return decode(source, off, len, DECODABET); }
java
public String getAvatarHash() { byte[] bytes = getAvatar(); if (bytes == null) { return null; } MessageDigest digest; try { digest = MessageDigest.getInstance("SHA-1"); } catch (NoSuchAlgorithmException e) { LOGGER.log(Level.SE...
python
def create_assign_context_menu(self): """ Create a context menu, then set the created QMenu as the context menu. This builds the menu with all required actions and signal-slot connections. """ menu = QMenu("AutoKey") self._build_menu(menu) self.setContextMenu(menu...
java
public Request delete(String roleId) { Asserts.assertNotNull(roleId, "role id"); final String url = baseUrl .newBuilder() .addEncodedPathSegments("api/v2/roles") .addEncodedPathSegments(roleId) .build() .toString(); VoidRequest request = new VoidRequest(this.client, ...
java
@Override public Double getLastInstanceHourDiskWrite(String instanceId) { Dimension instanceDimension = new Dimension().withName("InstanceId") .withValue(instanceId); GetMetricStatisticsRequest request = new GetMetricStatisticsRequest() .withMetricName("DiskWriteBytes...
python
def register_jvm_tool(cls, register, key, classpath_spec=None, main=None, custom_rules=None, fingerprint=True, classpath=None, h...
java
public DescribeElasticLoadBalancersResult withElasticLoadBalancers(ElasticLoadBalancer... elasticLoadBalancers) { if (this.elasticLoadBalancers == null) { setElasticLoadBalancers(new com.amazonaws.internal.SdkInternalList<ElasticLoadBalancer>(elasticLoadBalancers.length)); } for (Ela...