language stringclasses 2
values | func_code_string stringlengths 63 466k |
|---|---|
java | public void writeEmptyPages(Stack<Integer> emptyPages, RandomAccessFile file) throws IOException {
if(emptyPages.isEmpty()) {
this.emptyPagesSize = 0;
return; // nothing to write
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(baos)... |
java | public void setFocus(boolean focus) {
if (focus) {
if (currentFocus != null) {
currentFocus.setFocus(false);
}
currentFocus = this;
} else {
if (currentFocus == this) {
currentFocus = null;
}
}
this.focus = focus;
} |
java | private boolean collapseAssignEqualTo(Node expr, Node exprParent, Node value) {
Node assign = expr.getFirstChild();
Node parent = exprParent;
Node next = expr.getNext();
while (next != null) {
switch (next.getToken()) {
case AND:
case OR:
case HOOK:
case IF:
... |
java | public static void main(final String[] args) throws Exception
{
if (args.length == 0)
{
System.err.format("Usage: %s <filenames>...%n", SbeTool.class.getName());
System.exit(-1);
}
for (final String fileName : args)
{
final Ir ir;
... |
python | def remove_trivial(root):
'''
Remove redundant statements.
The statement `a = 1` will be removed::
a = 1
a = 2
The statement `a = 1` will not be removed because `b` depends on it::
a = 1
b = a + 2
a = 2
:param root: ast node
... |
java | public Map<String, Collection<String>> toMap() {
Map<String, Collection<String>> params = new HashMap<String, Collection<String>>();
if (null != location) {
ArrayList<String> valueList = new ArrayList<String>();
valueList.add(location);
params.put("location", valueLis... |
java | public CompartmentDefinition addResource(CompartmentDefinitionResourceComponent t) { //3
if (t == null)
return this;
if (this.resource == null)
this.resource = new ArrayList<CompartmentDefinitionResourceComponent>();
this.resource.add(t);
return this;
} |
python | def get_elevation(self, latitude, longitude, approximate=None):
"""
If approximate is True then only the points from SRTM grid will be
used, otherwise a basic aproximation of nearby points will be calculated.
"""
if not (self.latitude - self.resolution <= latitude < self.latitude... |
java | protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception
{
xen_health_monitor_temp_responses result = (xen_health_monitor_temp_responses) service.get_payload_formatter().string_to_resource(xen_health_monitor_temp_responses.class, response);
if(result.errorcode !... |
python | def load_config(json_path):
"""Load config info from a .json file and return it."""
with open(json_path, 'r') as json_file:
config = json.loads(json_file.read())
# sanity-test the config:
assert(config['tree'][0]['page'] == 'index')
return config |
python | def GetReportData(self, get_report_args, token):
"""Show how the last active breakdown evolved over time."""
report = rdf_report_plugins.ApiReportData(
representation_type=rdf_report_plugins.ApiReportData.RepresentationType
.LINE_CHART)
series_with_timestamps = client_report_utils.FetchAllG... |
python | def init_argparser_optional_advice(
self, argparser, default=[], help=(
'a comma separated list of packages to retrieve optional '
'advice from; the provided packages should have registered '
'the appropriate entry points for setting up the advices for '
... |
java | private static Class getByClass(String name) {
try {
return Thread.currentThread().getContextClassLoader().loadClass(name);
} catch (Throwable e) {
}
return null;
} |
python | def log(self, msg, level=INFO):
"""Record a line of log in logger
:param str msg: content of the messag
:param level: logging level
:return: None
"""
logger.log(level, '<{}> - '.format(self._name) + msg) |
java | public void setValidators(final Iterable<Validator<?>> validators) {
this.validators.clear();
for (final Validator<?> validator : validators) {
// this ensures we map OptionalConfigurationComponent classes to validators of the same class
this.validators.put(validator.getSupporte... |
java | protected Map<String, Map<String, String>> createStepItemDataContext(final Framework framework,
final String project,
final Map<String, Map<String, String>> context,
... |
java | private Map<String, JcrRepository> loadRepositories() {
Map<String, JcrRepository> list = new HashMap<>();
Set<String> names = RepositoryManager.getJcrRepositoryNames();
for (String repositoryId : names) {
try {
Repository repository = RepositoryManager.getRepository... |
python | def check_pin_trust(self, environ):
"""Checks if the request passed the pin test. This returns `True` if the
request is trusted on a pin/cookie basis and returns `False` if not.
Additionally if the cookie's stored pin hash is wrong it will return
`None` so that appropriate action can be... |
java | public URI toURI() throws URISyntaxException {
return new URI(_scheme, null, _host, _port, _path, _query == null ? null : UrlEncoded.decodeString(_query), _fragment);
} |
java | public Surface draw (Tile tile, float dx, float dy, float dw, float dh,
float sx, float sy, float sw, float sh) {
if (!checkIntersection || intersects(dx, dy, dw, dh)) {
tile.addToBatch(batch, tint, tx(), dx, dy, dw, dh, sx, sy, sw, sh);
}
return this;
} |
java | public DERObject toASN1Object()
{
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(version);
v.add(holder);
v.add(issuer);
v.add(signature);
v.add(serialNumber);
v.add(attrCertValidityPeriod);
v.add(attributes);
if (issuerUniqueID !=... |
java | public static <M extends AbstractModule> M module(M module, String... requires) {
return module(module, null, requires == null ? EMPTY_STRING_ARRAY : requires);
} |
java | public InputStream generateThumbnailInStream(int width, int height, byte[] image, GenerateThumbnailInStreamOptionalParameter generateThumbnailInStreamOptionalParameter) {
return generateThumbnailInStreamWithServiceResponseAsync(width, height, image, generateThumbnailInStreamOptionalParameter).toBlocking().singl... |
python | def _to_spans(x):
"""Convert a Candidate, Mention, or Span to a list of spans."""
if isinstance(x, Candidate):
return [_to_span(m) for m in x]
elif isinstance(x, Mention):
return [x.context]
elif isinstance(x, TemporarySpanMention):
return [x]
else:
raise ValueError(f... |
python | def _split(expr, pat=None, n=-1):
"""
Split each string (a la re.split) in the Series/Index by given pattern, propagating NA values.
Equivalent to str.split().
:param expr:
:param pat: Separator to split on. If None, splits on whitespace
:param n: not supported right now
:return: list seque... |
python | def pair_visual(*args, **kwargs):
"""Deprecation wrapper"""
warnings.warn("`pair_visual` has moved to `cleverhans.plot.pyplot_image`. "
"cleverhans.utils.pair_visual may be removed on or after "
"2019-04-24.")
from cleverhans.plot.pyplot_image import pair_visual as new_pair_visual
... |
python | def suggestions(self,index=None):
"""Get suggestions for correction.
Yields:
:class:`Suggestion` element that encapsulate the suggested annotations (if index is ``None``, default)
Returns:
a :class:`Suggestion` element that encapsulate the suggested annotations (if inde... |
python | async def list_transactions(self, request):
"""Fetches list of txns from validator, optionally filtered by id.
Request:
query:
- head: The id of the block to use as the head of the chain
- id: Comma separated list of txn ids to include in results
Res... |
java | public UNode toDoc() {
UNode rootNode = UNode.createMapNode(m_taskID, "task");
for (String name : m_properties.keySet()) {
String value = m_properties.get(name);
if (name.endsWith("Time")) {
rootNode.addValueNode(name, formatTimestamp(value));
} else {... |
python | def freefn(self, key, free_fn):
"""
Set a free function for the specified hash table item. When the item is
destroyed, the free function, if any, is called on that item.
Use this when hash items are dynamically allocated, to ensure that
you don't have memory leaks. You can pass 'free' or NULL as a free_... |
java | public static String determineKerasBackend(Map<String, Object> modelConfig, KerasModelConfiguration config) {
String kerasBackend = null;
if (!modelConfig.containsKey(config.getFieldBackend())) {
// TODO: H5 files unfortunately do not seem to have this property in keras 1.
log.wa... |
python | def monitor(msg, *args, **kwargs):
"""
Log a message with severity 'MON' on the root logger.
"""
if len(logging.root.handlers) == 0:
logging.basicConfig()
logging.root.monitor(msg, *args, **kwargs) |
java | public static void constraintMatrix3x3a( DMatrixRMaj L_3x6 , DMatrixRMaj L_3x3 ) {
int index = 0;
for( int i = 0; i < 3; i++ ) {
L_3x3.data[index++] = L_3x6.get(i,0);
L_3x3.data[index++] = L_3x6.get(i,1);
L_3x3.data[index++] = L_3x6.get(i,2);
}
} |
python | def probe_async(self, callback):
"""Asynchronously connect to a device."""
future = self._loop.launch_coroutine(self._adapter.probe())
future.add_done_callback(lambda x: self._callback_future(None, x, callback)) |
python | def tone(self,
tone_input,
sentences=None,
tones=None,
content_language=None,
accept_language=None,
content_type=None,
**kwargs):
"""
Analyze general tone.
Use the general purpose endpoint to analyze the ... |
python | def parametrize_peaks(self, intervals, max_peakwidth=50, min_peakwidth=25, symmetric_bounds=True):
"""
Computes and stores the intonation profile of an audio recording.
:param intervals: these will be the reference set of intervals to which peak positions
correspond to. For each interv... |
java | public static URI toDirectory(final URI uri, final boolean strict) throws NormalizationException {
return resolve(uri, getRawDirectory(uri, strict), strict);
} |
java | public static Document parseBase64(String base64Data, Element instruction)
throws Exception {
byte[] imageData = Base64.decodeBase64(base64Data);
ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
StringWriter swLogger = new StringWriter();
PrintWriter pwLogger ... |
python | def table_groupbyagg(table_name):
"""
Perform a groupby on a table and return an aggregation on a single column.
This depends on some request parameters in the URL.
"column" and "agg" must always be present, and one of "by" or "level"
must be present. "column" is the table column on which aggregati... |
python | def get_instrument_title(self):
"""Return the current instrument title
"""
instrument = self.context.getInstrument()
if not instrument:
return ""
return api.get_title(instrument) |
python | def sparse_counts_map(self):
""" return a counts map with sparse index scheme
"""
if self.hpx._ipix is None:
flatarray = self.data.flattern()
else:
flatarray = self.expanded_counts_map()
nz = flatarray.nonzero()[0]
data_out = flatarray[nz]
... |
java | @Override
public void setMessageCopiedWhenSent(boolean copied)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setMessageCopiedWhenSent", Boolean.valueOf(copied));
_copyMessagesWhenSent = copied;
if (TraceComponent.isAnyTracingEnabled() && ... |
java | public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException {
final InstalledImage installedImage = installedImage(jbossHome);
return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyL... |
java | private void writeShortArrayTagPayload(ShortArrayTag tag) throws IOException {
short[] shorts = tag.getValue();
os.writeInt(shorts.length);
for (int i = 0; i < shorts.length; i++) {
os.writeShort(shorts[i]);
}
} |
python | def FromStream(cls, stream, auto_transfer=True, total_size=None, **kwds):
"""Create a new Download object from a stream."""
return cls(stream, auto_transfer=auto_transfer, total_size=total_size,
**kwds) |
java | @SuppressWarnings("unchecked")
public <T> DynamicType.Builder<T> makeInterface(Class<T> interfaceType) {
return (DynamicType.Builder<T>) makeInterface(Collections.<Type>singletonList(interfaceType));
} |
python | def subdevicenames(self) -> Tuple[str, ...]:
"""A |tuple| containing the device names."""
self: NetCDFVariableBase
return tuple(self.sequences.keys()) |
java | public Activations parse(XMLStreamReader reader) throws Exception
{
Activations adapters = null;
//iterate over tags
int iterate;
try
{
iterate = reader.nextTag();
}
catch (XMLStreamException e)
{
//founding a non tag..go on. Normally non-tag found ... |
python | def jenks(data, num_breaks):
"""
Calculate Jenks natural breaks.
Adapted from http://danieljlewis.org/files/2010/06/Jenks.pdf
Credit: Daniel Lewis
Arguments:
data -- Array of values to classify.
num_breaks -- Number of breaks to perform.
"""
data = numpy.ma.compressed(data)
if... |
python | def tables(self):
"""
A list containing the tables in this container, in document order.
Read-only.
"""
from .table import Table
return [Table(tbl, self) for tbl in self._element.tbl_lst] |
python | def read_can_msg(self, channel, count):
"""
Reads one or more CAN-messages from the buffer of the specified CAN channel.
:param int channel:
CAN channel to read from (:data:`Channel.CHANNEL_CH0`, :data:`Channel.CHANNEL_CH1`,
:data:`Channel.CHANNEL_ANY`).
:param i... |
python | def config(p_path=None, p_overrides=None):
"""
Retrieve the config instance.
If a path is given, the instance is overwritten by the one that supplies an
additional filename (for testability). Moreover, no other configuration
files will be read when a path is given.
Overrides will discard a set... |
python | def _clear_weave_cache():
"""Deletes the weave cache specified in os.environ['PYTHONCOMPILED']"""
cache_dir = os.environ['PYTHONCOMPILED']
if os.path.exists(cache_dir):
shutil.rmtree(cache_dir)
logging.info("Cleared weave cache %s", cache_dir) |
java | public static RBACModel createRandomModel(Collection<String> users, Collection<String> transactions, Collection<String> roles){
Validate.notNull(transactions);
Validate.notEmpty(transactions);
Validate.noNullElements(transactions);
SOABase context = new SOABase("c1");
context.setSubjects(users);
context.set... |
python | def SoS_eval(expr: str, extra_dict: dict = {}) -> Any:
'''Evaluate an expression with sos dict.'''
return eval(expr, env.sos_dict.dict(), extra_dict) |
python | def get_nameserver_detail_output_show_nameserver_nameserver_xlatedomain(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
get_nameserver_detail = ET.Element("get_nameserver_detail")
config = get_nameserver_detail
output = ET.SubElement(get_nameserv... |
python | def make_exploded_column(df, colname_new, colname_old):
"""
Internal helper function used by `explode_columns()`.
"""
s = df[colname_old].apply(pd.Series).stack()
s.name = colname_new
return s |
java | public Lock getLock(String lockName, LockType type, String comment) {
return new SQLLock(lockName,type,comment, getSleepTime(), this);
} |
python | def get_as_datetime_with_default(self, index, default_value):
"""
Converts array element into a Date or returns default value if conversion is not possible.
:param index: an index of element to get.
:param default_value: the default value
:return: Date value ot the element or ... |
java | @Override
protected String doForward(final String hierarchical) {
log.debug("Converting outgoing identifier: {}", hierarchical);
final List<String> segments = asList(hierarchical.split(separator));
if (segments.size() <= levels) {
// must be a root identifier
return "... |
python | def read(self, length, timeout=None):
"""Read up to `length` number of bytes from the serial port with an
optional timeout.
`timeout` can be positive for a timeout in seconds, 0 for a
non-blocking read, or negative or None for a blocking read that will
block until `length` numbe... |
java | private void writeNewException(Exception ex) throws IOException {
output.writeByte(TC_EXCEPTION);
resetSeenObjects();
writeObjectInternal(ex, false, false, false); // No replacements
resetSeenObjects();
} |
python | def _is_data_from_today(self, data_point):
"""
Takes a DataPoint from SESConnection.get_send_statistics() and returns
True if it is talking about the current date, False if not.
:param dict data_point: The data point to consider.
:rtype: bool
:returns: True if th... |
python | def all(self):
"""
Synchronize all registered plugins and plugin points to database.
"""
# Django >= 1.9 changed something with the migration logic causing
# plugins to be executed before the corresponding database tables
# exist. This method will only return something if... |
python | def fit(self, X, y):
"""Fit the model using X as training data and y as target values"""
self._data = X
self._classes = np.unique(y)
self._labels = y
self._is_fitted = True |
java | public void commit(Xid xid, boolean onePhase) throws XAException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commit",
new Object[] {xid, ""+onePhase});
internalCommit(xid, onePhase);
if (TraceComp... |
java | private boolean removeRecoveryRecord(RecoveryAgent recoveryAgent, FailureScope failureScope) {
if (tc.isEntryEnabled())
Tr.entry(tc, "removeRecoveryRecord", new Object[] { recoveryAgent, failureScope, this });
boolean found = false;
synchronized (_outstandingRecoveryRecords) {
... |
java | @Override
protected Result check() throws Exception {
final ClusterHealthStatus status = client.admin().cluster().prepareHealth().get().getStatus();
if (status == ClusterHealthStatus.RED || (failOnYellow && status == ClusterHealthStatus.YELLOW)) {
return Result.unhealthy("Last status: %... |
java | @Override
public ClassLoader getClassLoader() {
// To follow the same behavior of Class.forName(...) I had to play
// dirty (Supported by Sun, IBM & BEA JVMs)
try {
// Get a reference to this class' class-loader
ClassLoader cl = this.getClass().getClassLoader();
// Create a method insta... |
python | def percent_k(data, period):
"""
%K.
Formula:
%k = data(t) - low(n) / (high(n) - low(n))
"""
catch_errors.check_for_period_error(data, period)
percent_k = [((data[idx] - np.min(data[idx+1-period:idx+1])) /
(np.max(data[idx+1-period:idx+1]) -
np.min(data[idx+1-period:idx+1... |
python | def removc(item, inset):
"""
Remove an item from a character set.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/removc_c.html
:param item: Item to be removed.
:type item: str
:param inset: Set to be updated.
:type inset: spiceypy.utils.support_types.SpiceCell
"""
assert i... |
java | @Override
public String getFilename(final FinderObject owner) {
if (owner instanceof Root) {
return ((Root) owner).getTheFilename();
}
return owner.getFilename();
} |
python | def send_task(self, request, response):
"""send off a celery task for the current page and recache"""
# TODO is this too messy?
from bettercache.tasks import GeneratePage
try:
GeneratePage.apply_async((strip_wsgi(request),))
except:
logger.error("failed t... |
python | def _format_grndt(self, data_c):
"""Format monthly ground data collection into string for the EPW header."""
monthly_str = '{},{},{},{}'.format(
data_c.header.metadata['soil conductivity'],
data_c.header.metadata['soil density'],
data_c.header.metadata['soil specific ... |
python | def remove_columns(self, column_names, inplace=False):
"""
Returns an SFrame with one or more columns removed.
If inplace == False (default) this operation does not modify the
current SFrame, returning a new SFrame.
If inplace == True, this operation modifies the current
... |
java | public static <T> T newInstance(Constructor<T> constructor, Object... args) {
try {
return constructor.newInstance(args);
} catch (Exception e) {
throw new ClientException(e);
}
} |
python | def create_combobox(self, text, choices, option, default=NoDefault,
tip=None, restart=False):
"""choices: couples (name, key)"""
label = QLabel(text)
combobox = QComboBox()
if tip is not None:
combobox.setToolTip(tip)
for name, key in ch... |
python | def get(self, container_id):
"""
Get a container by name or ID.
Args:
container_id (str): Container name or ID.
Returns:
A :py:class:`Container` object.
Raises:
:py:class:`docker.errors.NotFound`
If the container does not exi... |
java | public void unpublishActor(Actor act) {
Long integer = publishedActorMappingReverse.get(act.getActorRef());
if ( integer != null ) {
Log.Debug(this, ""+act.getClass().getSimpleName()+" unpublished");
publishedActorMap.remove(integer);
publishedActorMappingReverse.remo... |
java | void log(Level level, String msg) {
if (msg != null && !msg.isEmpty())
logger.log(level, msg);
} |
java | public static void registerCacheObject(Object mxbean, String cacheManagerName, String name, boolean stats) {
synchronized (mBeanServer) {
//these can change during runtime, so always look it up
ObjectName registeredObjectName = calculateObjectName(cacheManagerName, name, stats);
... |
java | public static ApiPlatform fromKeyToApiPlatform(int key) {
if(keyToPlatform.get() == null) {
Map<Integer, ApiPlatform> map = new HashMap<>();
for (ApiPlatform apiPlatform : ApiPlatform.values()) {
map.put(apiPlatform.getKey(), apiPlatform);
}
keyToP... |
java | public String removeAfter(String original, String marker) {
int index = original.indexOf(marker);
if (index != -1) {
return original.substring(0, index);
}
return original;
} |
java | @Override
public void setArray(int parameterIndex, Array x) throws SQLException {
internalStmt.setArray(parameterIndex, x);
} |
java | public TCQueryRequest createQuery(Dialog d, boolean dialogTermitationPermission) {
if (d == null) {
throw new NullPointerException("Dialog is null");
}
TCQueryRequestImpl tcbr = new TCQueryRequestImpl(dialogTermitationPermission);
tcbr.setDialog(d);
tcbr.setDestinatio... |
java | @Override
public CPOptionValue fetchByCPOptionId_Last(long CPOptionId,
OrderByComparator<CPOptionValue> orderByComparator) {
int count = countByCPOptionId(CPOptionId);
if (count == 0) {
return null;
}
List<CPOptionValue> list = findByCPOptionId(CPOptionId, count - 1,
count, orderByComparator);
if... |
python | def _fit_bmr_model(self, X, y):
"""Private function used to fit the BayesMinimumRisk model."""
self.f_bmr = BayesMinimumRiskClassifier()
X_bmr = self.predict_proba(X)
self.f_bmr.fit(y, X_bmr)
return self |
python | def add(self, key, value, key_length=0):
"""Add value to key-value
Params:
<str> key
<int> value
<int> key_length
Return:
<int> key_value
"""
if key_length < 1:
key_length = len(key)
val = self.add_method(self, k... |
python | def _doSendRequest(self, data, get_thread_id=False):
"""Sends the data to `SendURL`, and returns the message ID or None on failure"""
j = self._post(self.req_url.SEND, data, fix_request=True, as_json=True)
# update JS token if received in response
fb_dtsg = get_jsmods_require(j, 2)
... |
java | private void processParentPage(PageWrapper parentPage, PageModificationContext context) {
if (context.getDeletedPageKey() != null) {
// We have a deleted page. Remove its pointer from the parent.
parentPage.getPage().update(Collections.singletonList(PageEntry.noValue(context.getDeletedPa... |
java | public PutIntegrationResponseRequest withResponseParameters(java.util.Map<String, String> responseParameters) {
setResponseParameters(responseParameters);
return this;
} |
java | static Connection connectWithURL(String username, String password, String jdbcURL, String driverName) throws ClassNotFoundException, SQLException {
String driver = (Objects.isNull(driverName) || driverName.isEmpty()) ? "com.mysql.cj.jdbc.Driver" : driverName;
return doConnect(driver, jdbcURL, username... |
python | def generate(declaration, headers=None, has_iterators=False):
"""Compile and load the reflection dictionary for a type.
If the requested dictionary has already been cached, then load that instead.
Parameters
----------
declaration : str
A type declaration (for example "vector<int>")
he... |
python | def do_child_matches(self, params):
"""
\x1b[1mNAME\x1b[0m
child_matches - Prints paths that have at least 1 child that matches <pattern>
\x1b[1mSYNOPSIS\x1b[0m
child_matches <path> <pattern> [inverse]
\x1b[1mOPTIONS\x1b[0m
* inverse: display paths which don't match (default: false)
\... |
python | def nsdiffs(x, m, max_D=2, test='ocsb', **kwargs):
"""Estimate the seasonal differencing term, ``D``.
Perform a test of seasonality for different levels of ``D`` to
estimate the number of seasonal differences required to make a given time
series stationary. Will select the maximum value of ``D`` for wh... |
python | def get_ring(self, tree_map, parent_map):
"""
get a ring connection used to recover local data
"""
assert parent_map[0] == -1
rlst = self.find_share_ring(tree_map, parent_map, 0)
assert len(rlst) == len(tree_map)
ring_map = {}
nslave = len(tree_map)
... |
python | def convert_flatten(builder, layer, input_names, output_names, keras_layer):
"""Convert a flatten layer from keras to coreml.
Parameters
keras_layer: layer
----------
A keras layer object.
builder: NeuralNetworkBuilder
A neural network builder object.
"""
input_name, output... |
python | def edit_ticket_links(self, ticket_id, **kwargs):
""" Edit ticket links.
.. warning:: This method is deprecated in favour of edit_link method, because
there exists bug in RT 3.8 REST API causing mapping created links to
ticket/1. The only drawback is that edit_link cannot process ... |
java | private static EConv open0(byte[] source, byte[] destination, int ecflags) {
// final Encoding senc = EncodingDB.getEncodings().get(source).getEncoding();
// final Encoding denc = EncodingDB.getEncodings().get(destination).getEncoding();
final int numTrans;
final Entry[] entries;
... |
python | def add_files(self, *filenames, **kw):
"""
Include added and/or removed files in the working tree in the next commit.
:param filenames: The filenames of the files to include in the next
commit (zero or more strings). If no arguments are
given ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.