language stringclasses 2
values | func_code_string stringlengths 63 466k |
|---|---|
java | public static CommerceTierPriceEntry fetchByUUID_G(String uuid,
long groupId, boolean retrieveFromCache) {
return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
} |
java | private ParseTree parseLabelledStatement() {
SourcePosition start = getTreeStartLocation();
IdentifierToken name = eatId();
eat(TokenType.COLON);
return new LabelledStatementTree(getTreeLocation(start), name, parseStatement());
} |
python | def movies_in_theaters(self, **kwargs):
"""Gets the movies currently in theaters from the API.
Args:
page_limit (optional): number of movies to show per page, default=16
page (optional): results page number, default=1
country (optional): localized data for selected country... |
python | def create_client(self, addr, timeout):
""" Create client(s) based on addr """
def make(addr):
c = Client(addr)
c.socket._set_recv_timeout(timeout)
return c
if ',' in addr:
addrs = addr.split(',')
addrs = [a.strip() for a in addrs]
... |
python | def load_data(filename):
"""Loads a data matrix from a given file.
Parameters
----------
filename : :obj:`str`
The file to load the data from. Must be one of .png, .jpg,
.npy, or .npz.
Returns
-------
:obj:`numpy.ndarray`
The ... |
java | public static UTF8String fromBytes(byte[] bytes, int offset, int numBytes) {
if (bytes != null) {
return new UTF8String(bytes, BYTE_ARRAY_OFFSET + offset, numBytes);
} else {
return null;
}
} |
python | def minor_releases(self, manager):
"""
Return all minor release line labels found in ``manager``.
"""
# TODO: yea deffo need a real object for 'manager', heh. E.g. we do a
# very similar test for "do you have any actual releases yet?"
# elsewhere. (This may be fodder for ... |
python | def inspect_figure(fig):
"""Get the parameters (heigth, width, etc.) to create a figure
This method returns the number of the figure and a dictionary
containing the necessary information for the
:func:`matplotlib.pyplot.figure` function"""
return fig.number, {
'num':... |
python | def compose_jamo(*parts):
"""Return the compound jamo for the given jamo input.
Integers corresponding to U+11xx jamo codepoints, U+11xx jamo
characters, or HCJ are valid inputs.
Outputs a one-character jamo string.
"""
# Internally, we convert everything to a jamo char,
# then pass it to _... |
java | protected void accumulatePersistedWorkspaceChanges(long delta) throws QuotaManagerException
{
long dataSize = 0;
try
{
dataSize = quotaPersister.getWorkspaceDataSize(rName, wsName);
}
catch (UnknownDataSizeException e)
{
if (LOG.isTraceEnabled())
{
... |
python | def createTargetOrder(self, quantity, parentId=0,
target=0., orderType=None, transmit=True, group=None, tif="DAY",
rth=False, account=None):
""" Creates TARGET order """
order = self.createOrder(quantity,
price = target,
transmit = tra... |
python | def get_description(self):
"""Creates a description"""
return DisplayText(text='Agent representing ' + str(self.id_),
language_type=DEFAULT_LANGUAGE_TYPE,
script_type=DEFAULT_SCRIPT_TYPE,
format_type=DEFAULT_FORMAT_TYPE,) |
java | public static Matrix identity(int m, int n)
{
Matrix A = new Matrix(m, n);
double[][] X = A.getArray();
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
X[i][j] = (i == j ? 1.0 : 0.0);
}
}
return A;
} |
python | def get_converted_image_name(image):
"""Return the name of the image after it has been converted to png format.
Strips off the old extension.
:param: image (string): The fullpath of the image before conversion
:return: converted_image (string): the fullpath of the image after convert
"""
png_... |
python | def patch_project(self, owner, id, **kwargs):
"""
Update a project
Update an existing project. Note that only elements, files or linked datasets included in the request will be updated. All omitted elements, files or linked datasets will remain untouched.
This method makes a synchronous ... |
python | def attrgetcol(self, groupname, attrname):
"""Get the value of an attribute for all rows in a group."""
values = []
for rownr in range(self.attrnrows(groupname)):
values.append(self.attrget(groupname, attrname, rownr))
return values |
java | public EEnum getRenderingIntentGOCARI() {
if (renderingIntentGOCARIEEnum == null) {
renderingIntentGOCARIEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(184);
}
return renderingIntentGOCARIEEnum;
} |
java | @Override
public byte[] decompressRow(int offset, int length, int resultLength, byte[] page) {
byte[] resultByteArray = new byte[resultLength];
int currentResultArrayIndex = 0;
int currentByteIndex = 0;
while (currentByteIndex < length) {
int controlByte = page[offset + c... |
java | public static TaintMethodConfig getDefaultConstructorConfig(int stackSize) {
if (stackSize < 1) {
throw new IllegalArgumentException("stack size less than 1");
}
TaintMethodConfig config = new TaintMethodConfig(false);
config.outputTaint = new Taint(Taint.State.UNKNOWN);
... |
python | def time_report(self, source=None, **kwargs):
"""
This will generate a time table for the source api_calls
:param source: obj this can be an int(index), str(key), slice,
list of api_calls or an api_call
:return: ReprListList
"""
if source is None:
api_... |
python | def _filter_seqs(fn):
"""Convert names of sequences to unique ids"""
out_file = op.splitext(fn)[0] + "_unique.fa"
idx = 0
if not file_exists(out_file):
with open(out_file, 'w') as out_handle:
with open(fn) as in_handle:
for line in in_handle:
if li... |
python | def emit(self, span_datas):
"""Send SpanData tuples to Zipkin server, default using the v2 API.
:type span_datas: list of :class:
`~opencensus.trace.span_data.SpanData`
:param list of opencensus.trace.span_data.SpanData span_datas:
SpanData tuples to emit
"""
... |
python | def gpg_list_app_keys( blockchain_id, appname, proxy=None, wallet_keys=None, config_dir=None ):
"""
List the set of available GPG keys tagged for a given application.
Return list of {'keyName': key name, 'contentUrl': URL to key data}
Raise on error
"""
raise Exception("BROKEN; depends on list_... |
java | public static void doSetMetaClass(Object self, MetaClass mc) {
if (self instanceof GroovyObject) {
DefaultGroovyMethods.setMetaClass((GroovyObject)self, mc);
} else {
DefaultGroovyMethods.setMetaClass(self, mc);
}
} |
java | public int getSentId() {
if (Timex3_Type.featOkTst && ((Timex3_Type)jcasType).casFeat_sentId == null)
jcasType.jcas.throwFeatMissing("sentId", "de.unihd.dbs.uima.types.heideltime.Timex3");
return jcasType.ll_cas.ll_getIntValue(addr, ((Timex3_Type)jcasType).casFeatCode_sentId);} |
python | def limit(self, max_):
"""
Limit the result set to a given number of items.
:param max_: Maximum number of items to return.
:type max_: :class:`int` or :data:`None`
:rtype: :class:`ResultSetMetadata`
:return: A new request set up to request at most `max_` items.
... |
java | public void attachToGraph(GraphContext graphContext)
{
for (IssueCategory issueCategory : this.issueCategories.values())
{
IssueCategoryModel model = graphContext.create(IssueCategoryModel.class);
model.setCategoryID(issueCategory.getCategoryID());
model.setName(i... |
python | def get_migrations(self):
"""
:calls: `GET /orgs/:org/migrations`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Migration.Migration`
"""
return github.PaginatedList.PaginatedList(
github.Migration.Migration,
self._requester,
... |
java | protected Map<String, ClassNode> getPropertiesToEnsureConstraintsFor(final ClassNode classNode) {
final Map<String, ClassNode> fieldsToConstrain = new HashMap<String, ClassNode>();
final List<FieldNode> allFields = classNode.getFields();
for (final FieldNode field : allFields) {
if (... |
python | def get_attribute(self, attribute_name, mapped_class=None, key=None):
"""
Returns the specified attribute from the map of all mapped attributes
for the given mapped class and attribute key. See
:method:`get_attribute_map` for details.
"""
attr_map = self.__get_attribute_m... |
python | def set_state(self, state):
"""Set the runtime state of the Controller. Use the internal constants
to ensure proper state values:
- :attr:`Controller.STATE_INITIALIZING`
- :attr:`Controller.STATE_ACTIVE`
- :attr:`Controller.STATE_IDLE`
- :attr:`Controller.STATE_SLEEPING`... |
java | public static ns_ns_ip[] get_filtered(nitro_service service, String filter) throws Exception
{
ns_ns_ip obj = new ns_ns_ip();
options option = new options();
option.set_filter(filter);
ns_ns_ip[] response = (ns_ns_ip[]) obj.getfiltered(service, option);
return response;
} |
python | def report_dead_hosting_devices(self, context, hd_ids=None):
"""Report that a hosting device cannot be contacted (presumed dead).
:param: context: session context
:param: hosting_device_ids: list of non-responding hosting devices
:return: None
"""
cctxt = self.client.pre... |
java | @Cmd
public void setToFormEntry(final String configProperty, final String dataSetKey, final String entryKey) {
String resolvedConfigProperty = resolveProperty(configProperty);
String resolvedDataSetKey = resolveProperty(dataSetKey);
String resolvedEntryKey = resolveProperty(entryKey);
DataSet dataSet = dataSo... |
python | def _defragment_mountpoint(mountpoint):
'''
Defragment only one BTRFS mountpoint.
'''
out = __salt__['cmd.run_all']("btrfs filesystem defragment -f {0}".format(mountpoint))
return {
'mount_point': mountpoint,
'passed': not out['stderr'],
'log': out['stderr'] or False,
... |
python | def get_dimension_type(self, dim):
"""Get the type of the requested dimension.
Type is determined by Dimension.type attribute or common
type of the dimension values, otherwise None.
Args:
dimension: Dimension to look up by name or by index
Returns:
Decl... |
java | public List<JavaComment> stripTags(final Set<String> tagNames,
List<JavaComment> originals) {
final List<JavaComment> results = new ArrayList<JavaComment>(
originals.size());
for (JavaComment original : originals) {
results.add(original
.match(... |
python | def _get_or_load_domain(self, domain):
''' Return a domain if one already exists, or create a new one if not.
Args:
domain (str, dict): Can be one of:
- The name of the Domain to return (fails if none exists)
- A path to the Domain configuration file
... |
java | public PactDslJsonArray decimalType() {
generators.addGenerator(Category.BODY, rootPath + appendArrayIndex(1), new RandomDecimalGenerator(10));
return decimalType(new BigDecimal("100"));
} |
java | private Class<?> resolveRealType(Class<?> fieldType, XmlNode xmlNode) {
//猜测字段类型(防止字段的声明是一个接口,优先采用xmlnode中申明的类型)
Class<?> type = (xmlNode == null || xmlNode.general() == null) ? fieldType
: xmlNode.general();
if (!fieldType.isAssignableFrom(type)) {
type = fieldType;
... |
python | def addPixmap(self, pixmap):
"""
Adds the pixmap to the list for this slider.
:param pixmap | <QPixmap> || <str>
"""
scene = self.scene()
scene.addItem(XImageItem(pixmap))
self.recalculate() |
java | public Map<String, String> getUriVariablesForMeta(BullhornEntityInfo entityInfo, MetaParameter metaParameter, Set<String> fieldSet, Integer privateLabelId) {
return getUriVariablesForMeta(entityInfo.getName(), metaParameter, fieldSet, privateLabelId);
} |
python | def get_song_discovery(self, cache=True):
"""
Args:
cache (bool): A boolean indicating whether or not the cached value should be used (if available). Defaults to True.
Returns:
A float representing a song's discovery rank.
Example:
>>> s = song.Song(... |
java | public void onGeometryIndexSelected(GeometryIndexSelectedEvent event) {
for (GeometryIndex index : event.getIndices()) {
update(event.getGeometry(), index, false);
}
} |
java | public int compareTo(Object o) {
ObjectStreamField f = (ObjectStreamField) o;
boolean thisPrimitive = this.isPrimitive();
boolean fPrimitive = f.isPrimitive();
// If one is primitive and the other isn't, we have enough info to
// compare
if (thisPrimitive != fPrimitive) ... |
java | private String getRespData(BroadcastResponse resp) {
StringBuilder respdata = new StringBuilder(400);
if (resp != null) {
Status status = resp.getStatus();
if (null != status) {
respdata.append(status.name());
respdata.append("-");
... |
python | def _calc_mod_reduc(self, strains, strain_ref, x_1, x_1_mean, x_2,
x_2_mean, x_3, x_3_mean):
"""Compute the shear modulus reduction using Equation (1)."""
ones = np.ones_like(strains)
# Predictor
x_4 = np.log(self._lab_consol_ratio) * ones
x = np.c_[ones,... |
python | def get_directories_with_extensions(self, start, extensions=None):
"""
Look for directories with image extensions in given directory and
return a list with found dirs.
.. note:: In deep file structures this might get pretty slow.
"""
return set([p.parent for ext i... |
python | def unhex(inp):
'''unquote(r'abc\x20def') -> 'abc def'.'''
res = inp.split(r'\x')
for i in xrange(1, len(res)):
item = res[i]
try:
res[i] = _hextochr[item[:2]] + item[2:]
except KeyError:
res[i] = '%' + item
except UnicodeDecodeError:
res[i... |
java | public static <A, B, C> Choice3<A, B, C> b(B b) {
return new _B<>(b);
} |
java | public static vpnglobal_authenticationsamlpolicy_binding[] get_filtered(nitro_service service, String filter) throws Exception{
vpnglobal_authenticationsamlpolicy_binding obj = new vpnglobal_authenticationsamlpolicy_binding();
options option = new options();
option.set_filter(filter);
vpnglobal_authenticationsa... |
python | def cleanup(self):
"""Basic cleanup after modules.
The state's output becomes the input for the next stage. Any errors are
moved to the global_errors attribute so that they can be reported at a
later stage.
"""
# Move any existing errors to global errors
self.global_errors.extend(self.error... |
python | def dump(self):
'''Print the entire contents of this to debug log messages.
This is really only intended for debugging. It could produce
a lot of data.
'''
with self.registry.lock(identifier=self.worker_id) as session:
for work_spec_name in self.registry.pull(NICE_... |
java | public boolean isInsideCurrentProject(CmsRequestContext context, String resourcename) {
boolean result = false;
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
try {
result = m_driverManager.isInsideCurrentProject(dbc, resourcename);
} finally {
dbc.... |
python | def ParseFileObject(self, parser_mediator, file_object):
"""Parses a .customDestinations-ms file-like object.
Args:
parser_mediator (ParserMediator): mediates interactions between parsers
and other components, such as storage and dfvfs.
file_object (dfvfs.FileIO): a file-like object.
... |
python | def ensure_file(url, path, md5sum=None):
"""
If file is not already at 'path', then download from 'url' and put it
there.
If md5sum is provided, and 'path' exists, check that file matches the
md5sum. If not, re-download.
"""
if not os.path.isfile(path) or (md5sum and md5sum != file_md5(pa... |
java | public static <T> T getContext(ELContext context, Class<T> key, T defaultValue) {
@SuppressWarnings("unchecked")
final T result = (T) context.getContext(key);
return result == null ? defaultValue : result;
} |
python | def OnReorder(self, event):
"""Given a request to reorder, tell us to reorder"""
column = self.columns[event.GetColumn()]
return self.ReorderByColumn( column ) |
java | public String getRawData() {
if (rawData == null) {
rawData = com.jfinal.kit.HttpKit.readData(request);
}
return rawData;
} |
python | def input(filename, **kwargs):
"""Input file URL (ffmpeg ``-i`` option)
Any supplied kwargs are passed to ffmpeg verbatim (e.g. ``t=20``,
``f='mp4'``, ``acodec='pcm'``, etc.).
To tell ffmpeg to read from stdin, use ``pipe:`` as the filename.
Official documentation: `Main options <https://ffmpeg.o... |
python | def on_exit(self):
""" When you click to exit, this function is called, prompts whether to save"""
answer = messagebox.askyesnocancel("Exit", "Do you want to save as you quit the application?")
if answer:
self.save()
self.quit()
self.destroy()
elif ans... |
java | public boolean isBound()
{
//
// Constrained properties are implicitly bound. Refer to section 7.4.3 of the JavaBeans
// spec for the rationale.
//
PropertyInfo propInfo = getPropertyInfo();
return propInfo != null && (propInfo.bound() || propInfo.constrained());
... |
java | @Override
public Map<Object, Object> getRequestScratchMap(final WComponent component) {
return backing.getRequestScratchMap(component);
} |
python | def usufyToTextExport(d, fPath=None):
"""
Workaround to export to a .txt file or to show the information.
Args:
-----
d: Data to export.
fPath: File path for the output file. If None was provided, it will
assume that it has to print it.
Returns:
--------
uni... |
java | public static byte[] read(InputStream in, int bufSize) throws IOException {
log.debug("开始从流中读取数据,缓冲区大小为{}byte", bufSize);
ByteArray array = new ByteArray();
int len;
byte[] buffer = new byte[bufSize];
while ((len = in.read(buffer, 0, buffer.length)) != -1) {
array.app... |
java | protected static void loadConfig(final Properties config,
final File f) {
InputStreamReader r = null;
try {
final FileInputStream in = new FileInputStream(f);
r = new InputStreamReader(in, "UTF-8");
config.load(r);
} ca... |
java | public Object get(Object property) {
if (property instanceof String)
return getProperty((String)property);
return null;
} |
java | public Quaternion randomize (Random rand) {
// pick angles according to the surface area distribution
return fromAngles(MathUtil.lerp(-FloatMath.PI, +FloatMath.PI, rand.nextFloat()),
FloatMath.asin(MathUtil.lerp(-1f, +1f, rand.nextFloat())),
MathUtil.l... |
python | def safe_run(coro, return_exceptions=False):
"""
Executes a given coroutine and optionally catches exceptions, returning
them as value. This function is intended to be used internally.
"""
try:
result = yield from coro
except Exception as err:
if return_exceptions:
re... |
python | def _is_catch_phrase_valid(self, catch_phrase):
"""
Validates a french catch phrase.
:param catch_phrase: The catch phrase to validate.
"""
for word in self.words_which_should_not_appear_twice:
# Fastest way to check if a piece of word does not appear twice.
... |
python | def _set_ip_anycast_address(self, v, load=False):
"""
Setter method for ip_anycast_address, mapped from YANG variable /routing_system/interface/ve/ip/ip_anycast_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_anycast_address is considered as a private
... |
python | def split_by_idxs(seq, idxs):
'''A generator that returns sequence pieces, seperated by indexes specified in idxs. '''
last = 0
for idx in idxs:
if not (-len(seq) <= idx < len(seq)):
raise KeyError(f'Idx {idx} is out-of-bounds')
yield seq[last:idx]
last = idx
yield seq[... |
java | public Color toAWTColor(TextColor color, boolean isForeground, boolean inBoldContext) {
if(color instanceof TextColor.ANSI) {
return colorPalette.get((TextColor.ANSI)color, isForeground, inBoldContext && useBrightColorsOnBold);
}
return color.toColor();
} |
python | def compute_ck2004_ldints(self):
"""
Computes integrated limb darkening profiles for ck2004 atmospheres.
These are used for intensity-to-flux transformations. The evaluated
integral is:
ldint = 2 \pi \int_0^1 Imu mu dmu
"""
if 'ck2004_all' not in self.content:
... |
python | def get_stoplisted_unigram_corpus_and_custom(self,
custom_stoplist):
'''
Parameters
-------
stoplist : list of lower-cased words, optional
Returns
-------
A new TermDocumentMatrix consisting of only unigrams in the... |
python | def msg(self, level, s, *args):
"""
Print a debug message with the given level
"""
if s and level <= self.debug:
print "%s%s %s" % (" " * self.indent, s, ' '.join(map(repr, args))) |
java | public String getPcType() {
String result = m_params.getPcType();
if (CmsStringUtil.isEmptyOrWhitespaceOnly(result)) {
result = "public";
}
return result;
} |
java | public static void main(String[] argv) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
new ParticleEditor();
} catch (Exception e) {
Log.error(e);
}
} |
java | @Override
public Future<?> submit(Runnable task) {
if (task == null) {
throw new NullPointerException();
}
RunnableFuture<Object> ftask = newTaskFor(task, null);
execute(ftask);
return ftask;
} |
python | def set_delivery(self, order_id, delivery_data):
"""
修改货架
:param order_id: 订单ID
:param delivery_data: 商品物流信息
:return: 返回的 JSON 数据包
"""
delivery_data['order_id'] = order_id
return self._post(
'merchant/shelf/setdeliverymod',
data=de... |
python | def __parse_tonodes(self, text, **kwargs):
'''Builds and returns the MeCab function for parsing to nodes using
morpheme boundary constraints.
Args:
format_feature: flag indicating whether or not to format the feature
value for each node yielded.
Returns:
... |
java | public ConnectionManager getConnectionManager() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "Connection manager is " + cm + " for managed connection " + this);
if (cm == null && pm != null) {
Tr.debug(this, tc, "Connection pool ... |
java | static String getConstructorSignature(Constructor<?> c) {
StringBuilder result = new StringBuilder();
result.append('(');
for (Class<?> parameterType : c.getParameterTypes()) {
result.append(getSignature(parameterType));
}
result.append(")V");
return result.toString();
} |
java | public void setOntRelationId(String v) {
if (OntRelationMention_Type.featOkTst && ((OntRelationMention_Type)jcasType).casFeat_ontRelationId == null)
jcasType.jcas.throwFeatMissing("ontRelationId", "de.julielab.jules.types.OntRelationMention");
jcasType.ll_cas.ll_setStringValue(addr, ((OntRelationMention_T... |
python | def validate_functions(ast: BELAst, bo):
"""Recursively validate function signatures
Determine if function matches one of the available signatures. Also,
1. Add entity types to AST NSArg, e.g. Abundance, ...
2. Add optional to AST Arg (optional means it is not a
fixed, required argument and n... |
java | public static void addShutdownHook(final Thread shutdownHook) {
Object token = ThreadIdentityManager.runAsServer();
try {
AccessController.doPrivileged( new PrivilegedAction<Void>() {
@Override
public Void run() {
Runtime.getRuntime().addSh... |
java | public QPath getRemainder()
{
if (matchPos + matchLength >= pathLength)
{
return null;
}
else
{
try
{
throw new RepositoryException("Not implemented");
//return path.subPath(matchPos + matchLength, pathLength);
}
catch... |
python | def activate_program(self, program):
"""
Called by program which desires to manipulate this actuator, when it is activated.
"""
self.logger.debug("activate_program %s", program)
if program in self.program_stack:
return
with self._program_lock:
... |
python | def options(self, group, target=None, defaults=True):
"""
Using inheritance up to the root, get the complete Options
object for the given node and the specified group.
"""
if target is None:
target = self.path
if self.groups.get(group, None) is None:
... |
python | def normalize_uri_path_component(path_component):
"""
normalize_uri_path_component(path_component) -> str
Normalize the path component according to RFC 3986. This performs the
following operations:
* Alpha, digit, and the symbols '-', '.', '_', and '~' (unreserved
characters) are left alone.... |
java | private String[] getParameters(ELNode.Function func)
throws JspTranslationException {
FunctionInfo funcInfo = func.getFunctionInfo();
String signature = funcInfo.getFunctionSignature();
ArrayList params = new ArrayList();
// Signature is of the form
// <return-type> S... |
java | static String retriveCellValue(Cell cell) {
String cellValue = "";
if (cell == null) {
return cellValue;
}
try {
switch (cell.getCellType()) {
case Cell.CELL_TYPE_NUMERIC:
if (CellDateFormat.isDateCell(cell)) {
... |
java | public PagedList<NetworkInterfaceIPConfigurationInner> listVirtualMachineScaleSetIpConfigurationsNext(final String nextPageLink) {
ServiceResponse<Page<NetworkInterfaceIPConfigurationInner>> response = listVirtualMachineScaleSetIpConfigurationsNextSinglePageAsync(nextPageLink).toBlocking().single();
ret... |
java | public void startBrowserOnUrlUsingRemoteServerOnHostOnPort(final String browser, final String browserUrl, final String serverHost, final int serverPort) {
setCommandProcessor(new HttpCommandProcessorAdapter(new HttpCommandProcessor(serverHost, serverPort, browser, removeAnchorTag(browserUrl))));
commandProcessor.st... |
java | public final URL findResource(final String fname) {
if (!this.isInit()) {
if (CClassLoader.sl(CClassLoader.DEBUG)) {
CClassLoader.log("Not initialized, forward to old loader "
+ fname + " in " + this.getPath(), CClassLoader.DEBUG);
}
if ((Thread.currentThread().getContextClassLoader() != null)
... |
python | def get_chat_member(chat_id, user_id, **kwargs):
"""
Use this method to get information about a member of a chat
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
:param user_id: Unique identifier of the target user
:param kwarg... |
java | public Observable<DataBoxEdgeDeviceInner> updateAsync(String deviceName, String resourceGroupName, Map<String, String> tags) {
return updateWithServiceResponseAsync(deviceName, resourceGroupName, tags).map(new Func1<ServiceResponse<DataBoxEdgeDeviceInner>, DataBoxEdgeDeviceInner>() {
@Override
... |
java | public static Response post(URI uri)
throws URISyntaxException, UnsupportedEncodingException, HttpException {
return postParams(new HttpPost(uri), new ArrayList<NameValuePair>(), null, null);
} |
java | public <T> CompletableFuture<T> patchAsync(final Class<T> type, @DelegatesTo(HttpConfig.class) final Closure closure) {
return CompletableFuture.supplyAsync(() -> patch(type, closure), getExecutor());
} |
java | protected ITypeComputationState reassignCheckedType(XExpression condition, /* @Nullable */ XExpression guardedExpression, ITypeComputationState state) {
if (condition instanceof XInstanceOfExpression) {
XInstanceOfExpression instanceOfExpression = (XInstanceOfExpression) condition;
JvmTypeReference castedType =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.