language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def optimize(self, x0, target): """Calculate an optimum argument of an objective function.""" x = x0 for i in range(self.maxiter): g = self.g(x, target) h = self.h(x, target) if i == 0: alpha = 0 m = g else: ...
java
private List<String> getBaseAttributeGroupInterface(List<XsdAttributeGroup> attributeGroups){ List<XsdAttributeGroup> parents = new ArrayList<>(); attributeGroups.forEach(attributeGroup -> { XsdAbstractElement parent = attributeGroup.getParent(); if (parent instanceof XsdAttrib...
java
public StartNextPendingJobExecutionRequest withStatusDetails(java.util.Map<String, String> statusDetails) { setStatusDetails(statusDetails); return this; }
python
def images(self): """ Return a list of MediaImage objects for this media. """ return [ MediaImage(item.get('url'), item.get('height'), item.get('width')) for item in self.media_metadata.get('images', []) ]
python
def encrypt_fields(self, document, fieldspec, prefix): """ Encrypt a document using the registered encryption providers. :param document: The document body. :param fieldspec: A list of field specifications, each of which is a dictionary as follows: { '...
python
def iter_chunks(self, start_count=0): """ Iterate over the chunks of the file according to their length prefixes. yields: index <int>, encrypted chunks without length prefixes <bytes>, lastchunk <bool> """ ciphertext = self.chunks_block chunknum = start_count idx ...
python
def dry_static_energy(heights, temperature): r"""Calculate the dry static energy of parcels. This function will calculate the dry static energy following the first two terms of equation 3.72 in [Hobbs2006]_. Notes ----- .. math::\text{dry static energy} = c_{pd} * T + gz * :math:`T` is te...
python
def decode_example(self, tfexample_dict): """See base class for details.""" tensor_dict = {} # Iterate over the Tensor dict keys for feature_key, feature in six.iteritems(self._feature_dict): decoded_feature = decode_single_feature_from_dict( feature_k=feature_key, feature=feat...
python
def correct(datasets_full, genes_list, return_dimred=False, batch_size=BATCH_SIZE, verbose=VERBOSE, ds_names=None, dimred=DIMRED, approx=APPROX, sigma=SIGMA, alpha=ALPHA, knn=KNN, return_dense=False, hvg=None, union=False, geosketch=False, geosketch_max=20000): """Int...
java
public void setGrid(int width, int height) { Check.superiorStrict(width, 0); Check.superiorStrict(height, 0); gridWidth = width; gridHeight = height; }
python
def load_scatter_table(self, fn): """Load the scattering lookup tables. Load the scattering lookup tables saved with save_scatter_table. Args: fn: The name of the scattering table file. """ data = pickle.load(file(fn)) if ("version" not ...
python
def pw_compare_class_sets(self, cset1: Set[ClassId], cset2: Set[ClassId]) -> Tuple[ICValue, ICValue, ICValue]: """ Compare two class profiles """ pairs = self.mica_ic_df.loc[cset1, cset2] max0 = pairs.max(axis=0) max1 = pairs.max(axis=1) idxmax0 = pairs.idxmax(axi...
python
def save_subresource(self, subresource): """ Save the sub-resource NOTE: Currently assumes subresources are stored within a dictionary, keyed with the subresource's ID """ data = deepcopy(subresource._resource) data.pop('id', None) data.pop(self.resource_...
java
private void throttledTransfer(MockResponse policy, Socket socket, BufferedSource source, BufferedSink sink, long byteCount, boolean isRequest) throws IOException { if (byteCount == 0) return; Buffer buffer = new Buffer(); long bytesPerPeriod = policy.getThrottleBytesPerPeriod(); long periodDelay...
python
def plotTraces (include = None, timeRange = None, overlay = False, oneFigPer = 'cell', rerun = False, colors = None, ylim = None, axis='on', fontSize=12, figSize = (10,8), saveData = None, saveFig = None, showFig = True): ''' Plot recorded traces - include (['all',|'allCells','allNetStims',|,120,|...
python
async def _fair_get_in_peer(self): """ Get the first available available inbound peer in a fair manner. :returns: A `Peer` inbox, whose inbox is guaranteed not to be empty (and thus can be read from without blocking). """ peer = None while not peer: ...
python
def frustum(left, right, bottom, top, znear, zfar): """Create view frustum matrix.""" assert right != left assert bottom != top assert znear != zfar M = np.zeros((4, 4), dtype=np.float32) M[0, 0] = +2.0 * znear / (right - left) M[2, 0] = (right + left) / (right - left) M[1, 1] = +2.0 * znear / (top - b...
python
def _write_fetcher(self, specification, specification_set): """ Write fetcher """ destination = "%s" % (self.output_directory) base_name = "%sFetcher" % specification.entity_name_plural filename = "vspk/%s%s.cs" % (self._class_prefix, base_name) override_content = self._...
java
public static <E, T> List<E> nonNullParallelConvert(List<T> source, Class<E> targetClass) { return BeansConvertStrategy.parallelConvertBeans(source, targetClass, true); }
python
def add_field(self, field_name: str, field: Field, vocab: Vocabulary = None) -> None: """ Add the field to the existing fields mapping. If we have already indexed the Instance, then we also index `field`, so it is necessary to supply the vocab. """ self.fields[field_name]...
python
def parse_args(args=None): """ :return: The result of applying argparse to sys.argv """ # # The main parser # parser = argparse.ArgumentParser(prog='tagcube', description=DESCRIPTION, ...
java
public void setEmissive(float gray){ emissive[0] = gray; emissive[1] = gray; emissive[2] = gray; Em = true; }
python
def _ProduceContent(self, mods, showprivate=False, showinh=False): """An internal helper to create pages for several modules that do not have nested modules. This will automatically generate the needed RSF to document each module module and save the module to its own page appropriately. ...
java
@Override public String marshall(Object value) { if( value == null ) { return "null"; } return KieExtendedDMNFunctions.getFunction(CodeFunction.class).invoke(value).cata(justNull(), Function.identity()); }
python
def reset(self): "Initialises all needed variables to default values" self.metadata = {} self.items = [] self.spine = [] self.guide = [] self.pages = [] self.toc = [] self.bindings = [] self.IDENTIFIER_ID = 'id' self.FOLDER_NAME = 'EPUB' ...
java
@Override public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { final ParsedCommandLine parsedCmd = ctx.getParsedCommandLine(); ic.deploymentName = null; ic.serverGroup = null; String deploymentName = name.getValue(parsedCmd); if (nam...
java
public static HttpClient getNewHttpClient(String uri, ClientConnectionManager connectionManager) { try { HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, HTTP.UTF_8); ...
python
def return_line(self): """Return a new line if it is available. Precondition: self.yieldable() must be True """ assert(self.yieldable()) t = _remove_trailing_new_line(self.read_buffer) i = _find_furthest_new_line(t) if i >= 0: l = i + 1 ...
python
def add_role(self, groups=None, role_type=RoleTypes.admin): """ Make user have a role (typically PLC admin) with respect to some PLC groups. :param groups: list of group names the user should have this role for :param role_type: the role (defaults to "admin") :return: the User, s...
python
def __make_another_index(self, list_of_entries, url=False, hs_admin=False): ''' Find an index not yet used in the handle record and not reserved for any (other) special type. :param: list_of_entries: List of all entries to find which indices are used already. :pa...
java
private static TagList getMonitorTags(Object obj) { try { Set<Field> fields = getFieldsAnnotatedBy(obj.getClass(), MonitorTags.class); for (Field field : fields) { field.setAccessible(true); return (TagList) field.get(obj); } Set<Method> methods = getMethodsAnnotatedBy(obj.g...
python
def _convert_params(sql, params): """Convert SQL and params args to DBAPI2.0 compliant format.""" args = [sql] if params is not None: if hasattr(params, 'keys'): # test if params is a mapping args += [params] else: args += [list(params)] return args
python
def get_modules(pkg_name, module_filter = None): """ 返回包中所有符合条件的模块。 参数: pkg_name 包名称 module_filter 模块名过滤器 def (module_name) """ path = app_path(pkg_name) #py_filter = lambda f: all((fnmatch(f, "*.py"), not f.startswith("__"), module_filter and m...
java
public EClass getIfcSimpleProperty() { if (ifcSimplePropertyEClass == null) { ifcSimplePropertyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(514); } return ifcSimplePropertyEClass; }
java
public static SyncMapItemFetcher fetcher(final String pathServiceSid, final String pathMapSid, final String pathKey) { return new SyncMapItemFetcher(pathServiceSid, pathMapSid, pathKey); }
python
def check_array(array): "Converts to flattened numpy arrays and ensures its not empty." if len(array) < 1: raise ValueError('Input array is empty! Must have atleast 1 element.') return np.ma.masked_invalid(array).flatten()
python
def read(self, timeout=20.0): """ read data on the IN endpoint associated to the HID interface """ start = time() while len(self.rcv_data) == 0: sleep(0) if time() - start > timeout: # Read operations should typically take ~1-2ms. ...
python
def render(self, **kwargs): """Renders the HTML representation of the element.""" figure = self.get_root() assert isinstance(figure, Figure), ('You cannot render this Element ' 'if it is not in a Figure.') # Set global switches figure....
java
private Iterable<PutMetricDataRequest> toPutMetricDataRequests(Map<String, MetricDatum> uniqueMetrics) { // Opportunistically generates some machine metrics whenever there // is metrics consolidation for (MetricDatum datum: machineMetricFactory.generateMetrics()) { summarize(datum, u...
python
def lookup_instances(fragment, verbose=True, filter_by_key=True): """Returns ec2.Instance object whose name contains fragment, in reverse order of launching (ie, most recent intance first). Optionally filters by key, only including instances launched with key_name matching current username. args: verbose: ...
java
public ServiceFuture<List<SkuInfoInner>> listMultiRolePoolSkusAsync(final String resourceGroupName, final String name, final ListOperationCallback<SkuInfoInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listMultiRolePoolSkusSinglePageAsync(resourceGroupName, name), n...
java
@Override public void visitClassContext(ClassContext classContext) { try { stack = new OpcodeStack(); changedAttributes = new HashMap<>(); savedAttributes = new HashMap<>(); super.visitClassContext(classContext); } finally { stack = null; ...
python
def read_string(source, offset, length): """Reads a string from a byte string. :param bytes source: Source byte string :param int offset: Point in byte string to start reading :param int length: Length of string to read :returns: Read string and offset at point after read data :rtype: tuple of ...
java
public <IN, OUT> Processor<IN, OUT> newAsyncProcessor(Function<IN, OUT> processingFunction, Scheduler sched, int batchSize) { if ( batchSize > KxReactiveStreams.MAX_BATCH_SIZE ) { throw new RuntimeException("batch size exceeds max of "+ KxReactiveStreams.MAX_BATCH_SIZE); } KxPublishe...
python
def align_seqs(found_seqs, sequence, locus, start_pos, missing, annotated, cutoff=0.90, verbose=False, verbosity=0): """ align_seqs - Aligns sequences with clustalo :param found_seqs: List of the reference sequences :type found_seqs: ``List`` :param sequence: The input consensus sequ...
java
private void dropExtraColumnStatisticsAfterAlterPartition( String databaseName, String tableName, PartitionWithStatistics partitionWithStatistics) { List<String> dataColumns = partitionWithStatistics.getPartition().getColumns().stream() .map(Column::getNam...
python
def _sb_decoder(self): """ Figures out what to do with a received sub-negotiation block. """ #print "at decoder" bloc = self.telnet_sb_buffer if len(bloc) > 2: if bloc[0] == TTYPE and bloc[1] == IS: self.terminal_type = bloc[2:] ...
java
public FileFilterBuilder addExtensions(Iterable<String> extensions) { for (String extension : extensions) { // Ultimately, SuffixFileFilter will be used, and the "." needs to be explicit. this.extensions.add(extension.startsWith(".") ? extension : "." + extension); } retu...
java
public static DecodingException createDecodingException( final ErrorKeys errorId, final String message) { return new DecodingException(errorId.toString() + ":\r\n" + message); }
python
def path(self, *paths, **kwargs): """Create new Path based on self.root and provided paths. :param paths: List of sub paths :param kwargs: required=False :rtype: Path """ return self.__class__(self.__root__, *paths, **kwargs)
java
public TextField getActiveEditor() { TextField editor; WebLocator container = new WebLocator("x-editor", this); WebLocator editableEl = new WebLocator(container).setElPath("//*[contains(@class, '-focus')]"); String stringClass = editableEl.getAttributeClass(); LOGGER.debug("...
python
def save_load(jid, load, minions=None): ''' Save the load to the specified jid id ''' with _get_serv(commit=True) as cur: try: cur.execute(PG_SAVE_LOAD_SQL, {'jid': jid, 'load': psycopg2.extras.Json(load)}) except psycopg2.IntegrityError: #...
python
def set_local_alarm_record_config(self, is_enable_local_alarm_record = 1, local_alarm_record_secs = 30, callback=None): ''' Set local alarm-record config `is_enable_local_alarm_record`: 0 disable, 1 enable ''' params = {'isEnableLocalAlarmRec...
java
public void billingAccount_easyHunting_serviceName_timeConditions_conditions_conditionId_DELETE(String billingAccount, String serviceName, Long conditionId) throws IOException { String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions/{conditionId}"; StringBuilder sb = path(qP...
python
def resolve( self, expr, name, safe=DEFAULT_SAFE, tostr=DEFAULT_TOSTR, scope=DEFAULT_SCOPE, besteffort=DEFAULT_BESTEFFORT ): """Resolve an expression with possibly a dedicated expression resolvers. :param str name: expression resolver registered name. Default is ...
java
public static String wrapXMLInRootElement(final String xml) { // The XML may not need to be wrapped. if (xml.startsWith("<?xml") || xml.startsWith("<!DOCTYPE")) { return xml; } else { // ENTITY definition required for NBSP. // ui namepsace required for xml theme. return XMLUtil.XML_DECLARATION + "<ui:...
java
@Override public final void visit(final FamSDocumentMongo document) { final FamS fams = new FamS(getParent(), "Spouse of Family", new ObjectId(document.getString())); fams.setFromString(getParent().getString()); setGedObject(fams); }
java
private boolean isManagedBeanRef(Class<?> injectType, String injectTypeName) { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "isManagedBeanRef: " + injectType + ", " + injectTypeName); boolean result; if (in...
java
public com.google.protobuf.ByteString getEnvBytes() { java.lang.Object ref = env_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); env_ = b; return b; } else { ...
python
def com_google_fonts_check_whitespace_glyphnames(ttFont): """Font has **proper** whitespace glyph names?""" from fontbakery.utils import get_glyph_name def getGlyphEncodings(font, names): result = set() for subtable in font['cmap'].tables: if subtable.isUnicode(): for codepoint, name in sub...
python
def encode_varint_1(num): """ Encode an integer to a varint presentation. See https://developers.google.com/protocol-buffers/docs/encoding?csw=1#varints on how those can be produced. Arguments: num (int): Value to encode Returns: bytearray: Encoded presentation of i...
java
protected int seg(Cached<?,?> cache, Object ... fields) { return cache==null?0:cache.invalidate(CachedDAO.keyFromObjs(fields)); }
python
def migrate_class(session, cls, source, destination): """Migrate all image data of ``cls`` from ``source`` storage to ``destination`` storage. All data in ``source`` storage are *not* deleted. It does not execute migration by itself alone. You need to :meth:`~MigrationPlan.execute()` the plan it ...
python
def load_file_contents(cls, file_contents, seed_values=None): """Loads config from the given string payloads. A handful of seed values will be set to act as if specified in the loaded config file's DEFAULT section, and be available for use in substitutions. The caller may override some of these seed v...
python
def _apply_diff(self, transaction, annotation, diff, cset, file): ''' Using an annotation ([(tuid,line)] - array of TuidMap objects), we change the line numbers to reflect a given diff and return them. diff must be a diff object returned from get_diff(cset, file). Only fo...
java
private Map<String, String> getInfoMap() { Map<String, String> infos = new LinkedHashMap<String, String>(); int corruptedSites = getCorruptedSites().size(); infos.put( CmsVaadinUtils.getMessageText(Messages.GUI_SITE_STATISTICS_NUM_WEBSITES_0), String.valueOf(getAllElemen...
java
public UpdateElasticsearchDomainConfigRequest withAdvancedOptions(java.util.Map<String, String> advancedOptions) { setAdvancedOptions(advancedOptions); return this; }
java
public java.lang.String getEnvVariablesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetEnvVariables().getMap(); return map.containsKey(key...
python
def fetch(self): """ Fetch a AuthRegistrationsCredentialListMappingInstance :returns: Fetched AuthRegistrationsCredentialListMappingInstance :rtype: twilio.rest.api.v2010.account.sip.domain.auth_types.auth_registrations_mapping.auth_registrations_credential_list_mapping.AuthRegistration...
python
def query(request): """Query encoder/decoder with a request value""" def inner(func, obj): result_code = func(obj, request) if result_code is not constants.OK: raise OpusError(result_code) return result_code return inner
python
def container_running(self, id=None, name=None): """ Checks if container is running """ running = False if id: running = self.inspect_container(id)['State']['Running'] elif name: running = self.inspect_container(name)['State']['Running'] re...
java
@Nullable @MustBeLocked (ELockType.READ) protected final IMPLTYPE internalGetOfID (@Nullable final String sID) { if (StringHelper.hasNoText (sID)) return null; return m_aMap.get (sID); }
java
@TargetApi(Build.VERSION_CODES.GINGERBREAD) public static boolean hasSipFeature(Context context) { return hasSipFeature(context.getPackageManager()); }
java
private static double smoothed(int x, double slope, double intercept) { return Math.exp(intercept + slope * Math.log(x)); }
java
@Nullable @Contract(pure = true) public ByteBuf peekBuf() { return hasRemaining() ? bufs[first] : null; }
java
public static void parseJsonToSingleRowBlock( JsonParser parser, SingleRowBlockWriter singleRowBlockWriter, BlockBuilderAppender[] fieldAppenders, Optional<Map<String, Integer>> fieldNameToIndex) throws IOException { if (parser.getCurrentToken() ==...
java
public static Filter<ResourceRecordSet<?>> alwaysVisible() { return new Filter<ResourceRecordSet<?>>() { @Override public boolean apply(ResourceRecordSet<?> in) { return in != null && in.qualifier() == null; } @Override public String toString() { return "alwaysVisible...
java
public static AbstractEdge<?> createEdge(Interval interval, Class<?> clsDataType) throws MIDDException { Class<? extends AbstractEdge> edgeClsType = getEdgeClassType(clsDataType); try { Constructor<? extends AbstractEdge> constructor = edgeClsType.getConstructor(Interval.class); ...
java
public FileScanner setSearchTypes(String... srTypes) { if (srTypes == null || srTypes.length == 0) { this.srTypes = new String[0]; } else { this.srTypes = srTypes; } return this; }
java
public EClass getIfcIsothermalMoistureCapacityMeasure() { if (ifcIsothermalMoistureCapacityMeasureEClass == null) { ifcIsothermalMoistureCapacityMeasureEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(691); } return ifcIsothermalMoistureCapacit...
python
def register_sub_command(self, sub_command, additional_ids=[]): """ Register a command as a subcommand. It will have it's CommandDesc.command string used as id. Additional ids can be provided. Args: sub_command (CommandBase): Subcommand to register. additional_id...
java
public Ordering createNewOrderingUpToIndex(int exclusiveIndex) { if (exclusiveIndex == 0) { return null; } final Ordering newOrdering = new Ordering(); for (int i = 0; i < exclusiveIndex; i++) { newOrdering.appendOrdering(this.indexes.get(i), this.types.get(i), this.orders.get(i)); } return newOrderin...
java
private void sendHandshake(ChannelHandlerContext ctx) { boolean needToFlush = false; // Iterate until there is nothing left to write. while (true) { buffer = getOrCreateBuffer(ctx.alloc()); try { handshaker.getBytesToSendToPeer(buffer); } catch (GeneralSecurityException e) { ...
python
def _ctab_property_block(stream): """Process properties block of ``Ctab``. :param stream: Queue containing lines of text. :type stream: :py:class:`collections.deque` :return: Tuples of data. :rtype: :class:`~ctfile.tokenizer.CtabPropertiesBlockLine` """ line = stream.popleft() while lin...
java
public Collection<ProposalResponse> sendInstantiationProposal(InstantiateProposalRequest instantiateProposalRequest) throws InvalidArgumentException, ProposalException { return sendInstantiationProposal(instantiateProposalRequest, getChaincodePeers()); }
python
def _looks_like_libdoc_file(self, name): """Return true if an xml file looks like a libdoc file""" # inefficient since we end up reading the file twice, # but it's fast enough for our purposes, and prevents # us from doing a full parse of files that are obviously # not libdoc fil...
java
private void processArgument() { final StringBuilder argumentBuilder = new StringBuilder(); while (templateReader.hasNextCharacter()) { final char argumentCharacter = templateReader.nextCharacter(); if (argumentCharacter == syntax.getArgumentClosing()) { final Str...
python
def calculate_megno(self): """ Return the current MEGNO value. Note that you need to call init_megno() before the start of the simulation. """ if self._calculate_megno==0: raise RuntimeError("MEGNO cannot be calculated. Make sure to call init_megno() after adding all ...
java
public static <T> T getContextualReference(BeanManager beanManager, Class<T> type, boolean optional, Annotation... qualifiers) { Set<Bean<?>> beans = beanManager.getBe...
java
public long timeout() { final long now = now(); for (Entry<Timer, Long> entry : entries()) { final Timer timer = entry.getKey(); final Long expiration = entry.getValue(); if (timer.alive) { // Live timer, lets return the timeout i...
java
@Override public ArtifactEntry getEntry(String pathAndName) { pathAndName = ('/' == pathAndName.charAt(0)) ? pathAndName : this.getPath() + "/" + pathAndName; return this.getRoot().getEntry(pathAndName); }
python
def execute(self, elem_list): """ If condition, return a new elem_list provided by executing action. """ if self.condition.is_true(elem_list): return self.action.act(elem_list) else: return elem_list
java
public Observable<ServiceResponse<Page<KeyItem>>> getKeysNextWithServiceResponseAsync(final String nextPageLink) { return getKeysNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<KeyItem>>, Observable<ServiceResponse<Page<KeyItem>>>>() { @Override ...
python
def error(transaction, code): # pragma: no cover """ Notifies generic error on blockwise exchange. :type transaction: Transaction :param transaction: the transaction that owns the response :rtype : Transaction :return: the edited transaction """ transact...
python
def round_(values, decimals=None, width=0, lfill=None, rfill=None, **kwargs): """Prints values with a maximum number of digits in doctests. See the documentation on function |repr| for more details. And note thate the option keyword arguments are passed to the print function. Usually one w...
python
def file_w_create_directories(filepath): """ Recursively create some directories if needed so that the directory where @filepath must be written exists, then open it in "w" mode and return the file object. """ dirname = os.path.dirname(filepath) if dirname and dirname != os.path.curdir and ...
java
@Override public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction) { this.problemReporter.abortDueToInternalError( Messages.bind(Messages.abort_againstSourceModel, new String[] { String.valueOf(sourceTypes[0].getName()), String.valueOf(sou...
java
private void processOverdueFilterStatus() { overdueBtnClicked = !overdueBtnClicked; managementUIState.getTargetTableFilters().setOverdueFilterEnabled(overdueBtnClicked); if (overdueBtnClicked) { buttonClicked.addStyleName(BTN_CLICKED); eventBus.publish(this, TargetFilter...
java
public void setAdSenseSettingsSource(com.google.api.ads.admanager.axis.v201808.ValueSourceType adSenseSettingsSource) { this.adSenseSettingsSource = adSenseSettingsSource; }
java
public void marshall(FileShareInfo fileShareInfo, ProtocolMarshaller protocolMarshaller) { if (fileShareInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(fileShareInfo.getFileShareType(), FILESH...