seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
case .inactive:
print("iOSProjectApp is inactive")
case .background:
print("iOSProjectApp is background")
@unknown default:
print("Oh - interesting: in app cycle I received an unexpected new value.")
}
}... | ise-uiuc/Magicoder-OSS-Instruct-75K |
board[(y, x)] = False
else:
# white
if n == 2:
board[(y, x)] = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
t_dict[t.tobytes()] += 1 # t_dict[input] += 1
repeats = 0
for i in inputs:
if t_dict[i.tobytes()] > 1:
repeats += 1
print(f"There are {repeats} repeats in the dataset.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class MockServer {
// MARK: - Properties
let webServer = GCDWebServer()
// MARK: - Methods
func start() {
do {
try webServer.start(options: [
GCDWebServerOption_AutomaticallySuspendInBackground: false,
GCDWebServerOption_Port: 8080,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
rB_t2 = Thread()
axis_output.read(rB_t2, 0xDEF)
axis_output.read(rB_t2, 0xFED)
rB_t2.print_elapsed_time("Release_B")
rB_t2.end_vector()
Release_B.add_thread(rB_t2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use clap::{App, Arg};
use tokio::runtime::current_thread::Runtime;
use trust_dns::rr::Name;
mod dns_trace;
use dns_trace::trace;
fn main() {
let matches = App::new("dns-trace")
.about("Performs DNS queries starting at the root Internet name servers following the specified authorities until it finds an ans... | ise-uiuc/Magicoder-OSS-Instruct-75K |
export declare function QuatAdd(a: Quaternion, b: Quaternion, out?: Quaternion): Quaternion;
//# sourceMappingURL=QuatAdd.d.ts.map | ise-uiuc/Magicoder-OSS-Instruct-75K |
def source(self, source):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# cd to the root directory and run
# ./scripts/build.sh [outdir]
# exit when any command fails
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
if [ `dirname "${BASH_SOURCE[0]}"` != "./scripts" ] && [ `dirname "${BASH_SOURCE[0]}"` != "scripts" ]
then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(nx):
val = int(-im_cube[i, j, k]*255)
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
label: Optional[List[str]] = None,
):
"""
Take an existing "silver" dataset with binary accept/reject annotations,
merge the annotations to find the best possible analysis given the
constraints defined in the annotations, and manually edit it to create
a perfect and complete "gold" dataset.
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
message = f'{famous_person.title()} once said, "A person who never made a mistake never tried anything new."'
print(message)
# Упражнение 7.
famous_person = ' \t\n<NAME> \t\n'
print(f'|{famous_person} once said, "A person who never made a mistake never tried anything new."|')
print(f'|{famous_person.lstrip()} once s... | ise-uiuc/Magicoder-OSS-Instruct-75K |
image_dir: String. The directory containing the other images.
Returns:
super_image_path if the partition is "super".
vbmeta_image_path if the partition is "vbmeta".
Otherwise, this method returns the path under image_dir.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private static final Logger logger = LoggerFactory.getLogger(ExecuteShellAssistTest.class);
@Test
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var email = new EmailQueue
{
AddedOn = DateTimeOffset.UtcNow,
SendOn = DateTimeOffset.UtcNow,
SendTo = emailAddress,
FromName = processor.Config.FromName,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.aksw.tsoru.acids3.model.Example;
import org.aksw.tsoru.acids3.model.GeneralNode;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Ensures that the kv store exists.
if this.is_undefined() {
Err(KvError::InvalidKvStore(binding.into()))
} else {
Ok(Self {
get_function: get(&this, "get")?.into(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
def _addl(self):
return self.unit
'''
def has_characterization(self, quantity, location='GLO'):
"""
A flow ref keeps track of characterizations by link
:param quantity:
:param location:
:return:
"""
if quantity.uuid in self._char... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(unix)]
mod unix_impl {
use super::*;
use std::os::unix::io::{AsRawFd, RawFd};
impl AsRawFd for Conin {
fn as_raw_fd(&self) -> RawFd {
self.lock().as_raw_fd()
}
}
impl AsRawFd for Conout {
fn as_raw_fd(&self) -> RawFd {
self.lock().as_raw_fd()
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@api_view(['DELETE'])
@permission_classes([IsAdminUser])
def deleteProduct(request, pk):
product = Product.objects.get(_id=pk)
product.delete()
return Response('Product Deleted')
@api_view(['POST'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DATA_EXPECTED = {ResOne: [1, 2], ResTwo: [1, 2]}
# dummy context classes parameterized on tasks module
def make_context(tasks):
class Context:
def __init__(self):
self.jobs = defaultdict(dict)
self.db = {}
@tasks.run_task
def do_sync(self, res):
return... | ise-uiuc/Magicoder-OSS-Instruct-75K |
target_os = "dragonfly",
target_os = "openbsd"
)
)]
pub fn set_urgent(&self, is_urgent: bool) {
use glutin::os::unix::WindowExt;
self.window.set_urgent(is_urgent);
}
#[cfg(
not(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
StatusCode::OK,
parts.status,
"{}",
String::from_utf8(body.to_vec())?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
time_notified += 1
timer_started = False
sleeping = False
else:
timer_started = False
#song = AudioSegment.from_mp3("Alarm_Clock_Sound.mp3")
#play(song)
img = cv2.addWeighted... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Test case found by fuzzing
protocol P{class B}class A{protocol A:P{let:B | ise-uiuc/Magicoder-OSS-Instruct-75K |
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
// EXPRE... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class NCMClassifier(nn.Module):
"""
NCM Classifier.
NCMClassifier performs nearest class mean classification
measuring the distance between the input tensor and the
ones stored in 'self.class_means'.
"""
def __init__(self, class_mean=None):
"""
:param class_mean: tensor of ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Workers.Web.Infrastructure.Constants
{
public class CustomRole
{
public const string Admin = "Admin";
public const string Employee = "Employee";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if long_form:
print(synthases.to_long(), flush=True, file=output)
else:
print(synthases, flush=True, file=output)
if json_file and not _json_loaded:
LOG.info("Serialising synthases to JSON: %s", json_file)
with open(json_file, "w") as fp:
synthases.to_json(fp)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let storyboard = UIStoryboard(name: storyboardName, bundle: bundle)
return storyboard.instantiateViewController(withIdentifier: withID) as? T
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for(int i = 0; i < firstWord.length(); i++) {
if(Character.isUpperCase(firstWord.charAt(i))) {
caps = true;
acronym += Character.toUpperCase(firstWord.charAt(i)) + "";
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.bone_weights = Vector4()
self.bone_indices = Vector4()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
@Type(() => String)
@IsNotEmpty({ context: { code: StatusCode.IS_NOT_EMPTY } })
@MaxLength(100, { context: { code: StatusCode.MAX_LENGTH } })
name: string;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@JsonProperty("name")
private String name = null;
@JsonProperty("currency_id")
private String currencyId = null;
@JsonProperty("cost")
private Integer cost = null;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let server = SaphirServer::builder()
.configure_router(|router: Builder| router.add(controller))
.configure_listener(|listener_config| listener_config.set_uri("http://0.0.0.0:12345"))
.build();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
Manager::JobTrans* tr = m_trans_queue->pop(true);
if (!tr)
break;
PROFILE_START("WorkerTask");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if row["library_layout"] != "PAIRED":
logger.warning(
f"The library layout '{row['library_layout']}' should be "
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tasks = map(fetch_page, urls)
# Wait for futures
done, pending = loop.run_until_complete(asyncio.wait(tasks, timeout=120))
# Wait for response processing
loop.run_until_complete(parse_response(done))
loop.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return 2 #TI should not be done yet
AC_CONNECTED=1 #First pulse indicates AC Power connected
print('AC Connected')
fail=wait()
if fail:
print('Battery Connection Failure')
return 3 #TI should not be done yet
BATTERY_CONNECTED=1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mail = Mail(_app)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
modeVar.set('open')
modeOptionMenu = OptionMenu(modeFrame, modeVar, 'standard', 'open', 'swordless')
modeOptionMenu.pack(side=RIGHT)
modeLabel = Label(modeFrame, text='Game Mode')
modeLabel.pack(side=LEFT)
logicFrame = Frame(drowDownFrame)
logicVar = StringVar()
logicVar.set('noglit... | ise-uiuc/Magicoder-OSS-Instruct-75K |
fxyz=( `tail -1 blur_est.1D` )
run "3dClustSim -both -NN 123 -mask mask.nii.gz \
-fwhmxyz ${fxyz[@]:0:3} -prefix ClustSim"
echo "apply cluster results to each output file"
for cname in ${contrasts[@]}; do
run "3drefit -atrstring AFNI_CLUSTSIM_MASK file:ClustSim.mask \
-atrstring AF... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .easy_logger import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
basic {
routes = [
"/hi",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x.arg("up");
Ok(x)
}
pub async fn destroy<'a>(config: &Config) -> Result<(), TestError> {
let nodes = config.destroy_list();
for node in &nodes {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# un-comment to install anaconda
install_dir=$HOME/anaconda3
#wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
bash ~/Anaconda3-2020.11-Linux-x86_64.sh -b -p $install_dir
export PATH=$install_dir/bin:$PATH
# create conda env
conda init bash
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
argparser = ArgumentParser(description="Extract linguistic constructions from UCCA corpus.")
argparser.add_argument("passages", nargs="+", help="the corpus, given as xml/pickle file names")
constructions.add_argument(argparser, False)
argparser.add_argument("-v", "--verbos... | ise-uiuc/Magicoder-OSS-Instruct-75K |
output_file = "output.jpg"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
shadowOffset = offset
shadowBlurRadius = blur
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void SetPosiciones()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Copyright Insight Software Consortium
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func crop() {
let newImageRect = convertToImageRect(CGRect(origin: CGPoint(x: overlayRect.origin.x - leftPadding, y: overlayRect.origin.y - topPadding), size: overlayRect.size), ratio: getImageRatio())
isEditing = false
image = image?.cropedImage(newImageRect)
layout()
}
ove... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!ServletFileUpload.isMultipartContent(req)) {
sendError(req, resp, HttpStatus.SC_BAD_REQUEST, MessageCatalog._00036_NOT_MULTIPART_REQUEST);
return;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public HackToggleButton(final AresGui a1, final int a2, final int a3, final int a4, final int a5, final BaseHack a6) {
super(a1, a2, a3, a4, a5, "");
this.hack = a6;
}
public BaseHack getHack() {
/*SL:21*/return this.hack;
}
public void setToggle(final boolean ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{ print, println, dbg, flush },
&mut *LINE_STDOUT.lock().unwrap() as &mut dyn ::std::io::Write
);
pub mod submodule {
#[test]
fn test_buf_writer() {
use crate::{clear_written, get_buffered, get_written, LINE_STDOUT};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vm_state = (vm_states.SOFT_DELETED if i == 4
else vm_states.ACTIVE)
# Instance 2 should already be marked as queued_for_delete
qfd = True if i == 2 else None
with context.target_cell(self.context, cell) as cctxt:
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from tkinter import *
from project.firewall import TestFW
from project.ui import UI
def setup():
top = Toplevel()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Gives us a chance to return a 403
| ise-uiuc/Magicoder-OSS-Instruct-75K |
entry_iv.bind("<Return>", lambda event, data=data, root=root, cm=combo_mode, ckt=combo_key_type, ek=entry_key, cit=combo_iv_type, ei=entry_iv: encrypt(data, root, cm, ckt, ek, cit, ei))
button.bind("<Return>", lambda event, data=data, root=root, cm=combo_mode, ckt=combo_key_type, ek=entry_key, cit=combo_iv_type, ei=en... | ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
self.hidden = self.init_hidden(1, self.h)
else:
if self.isLm:
self.hiddens[agent_id] = hidden
else:
self.hidden = hidden
x = F.relu(x.squeeze(0))
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def writeBoundProperty(self, cpp, prop, state = None):
if state:
propClass = "Bound_" + state.name + "_" + prop.name
else:
propClass = "Bound_Machine_" + prop.name
with cpp.subs(propClass = propClass):
with cpp.block('class $propClass$ : public CLReflect::... | ise-uiuc/Magicoder-OSS-Instruct-75K |
DatasetFeatures = DatasetFeatures1 + DatasetFeatures2 + DatasetFeatures3
DatasetClasses = DatasetClasses1 + DatasetClasses2 + DatasetClasses3
Datasets = list(zip(DatasetFeatures, DatasetClasses))
random.shuffle(Datasets)
DatasetFeatures, DatasetClasses = zi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
sleep 1
echo -e '\x04\x00\x00\x00\x4D\x3C\x2B\x1AABCD\c' | nc localhost 9090 | hd
}
for ((i=0; i<10; i++)); do
test_once &
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class=" ml-auto d-flex rightSideElements">
<!-- SEARCH FORM -->
<div class="form-group has-search serchForm">
<span class="fa fa-search form-control-feedback"></span>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
driver = pyutilib.workflow.TaskDriver()
driver.register_task('TaskZ')
driver.register_task('TaskY')
print(driver.parse_args())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def aug_out_scale(img):
img = seq.augment_image(img)
img = img.astype('float32')
img /= 255.0
return img
def aug_out_featurewise_tr(img):
img = seq.augment_image(img)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## we assume in $CLONED_TEMPLATE_GIT_DIR there are a set of templates with a .j2 extension
## we assume that in $CLONED_PARAMETER_GIT_DIR there is a parameter file called parameters.yaml
## the result is a set of file stored in the $MANIFEST_DIR, with the same name as the templates, but with no extension.
for file in... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
app.run(host='192.168.43.192')
db.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//Конструктор
public AdapterAccounts(ToolbarActivity activity, OnStartDragListener dragStartListener) {
this.mActivity = activity;
accountList = new ArrayList<>();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let hash = runtime::blake2b(bytes);
let uref = storage::new_uref(hash);
runtime::put_key(HASH_RESULT, uref.into())
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import adversary
| ise-uiuc/Magicoder-OSS-Instruct-75K |
freshenv=True,
)
def test_collapsible_definitions(app: Sphinx) -> None:
"""It tests the correct classes being added to the definition lists.
It should not add the classes to normal definition lists.
"""
# if specified in 'confoverrides', this returns a warning
app.config.html_collapsible_defini... | ise-uiuc/Magicoder-OSS-Instruct-75K |
581398362,
Some(OperandSize::Dword),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.mongodb.client.model;
import org.bson.conversions.*;
public final class ValidationOptions
{
private Bson validator;
private ValidationLevel validationLevel;
private ValidationAction validationAction;
public Bson getValidator() {
return this.validator;
}
public Val... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
screen -S cloud java -XX:+UseG1GC -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=50 -XX:CompileThreshold=100 -Xmx512m -Xms256m -jar runner.jar | ise-uiuc/Magicoder-OSS-Instruct-75K |
s->stream.next_in = s->inbuf = (Byte*)ALLOC(Z_BUFSIZE);
err = inflateInit2(&(s->stream), -MAX_WBITS);
if (err != Z_OK || s->inbuf == Z_NULL) {
return destroy(s), (xmem_gzstream*)Z_NULL;
}
}
s->stream.avail_out = Z_BUFSIZE;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
filteredResults[index,2] = fullResults[i,2];
index++;
}
}
return filteredResults;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
import sys
if sys.byteorder == "little":
print("Little-endian platform")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
square_diff_kernel = cupy.ElementwiseKernel(
'T x, T y',
'T z',
'z = x*x - y*y',
'square_diff'
)
def square_diff(in1, in2):
return in1*in1 - in2*in2
def test_cupy_kernel():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
let udp = lastUnmatchedDownPartner(dotBracket);
if (udp) {
return 'Unmatched "' + udp + '" in structure.';
}
return 'Invalid structure.';
}
/**
* Returns an error message as a string for invalid inputs.
*/
export function parseInputs(inputs: Inputs): Structure | string {
let sequenceId = inputs.seq... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if use_folder:
log_contents.append(
"%s contents:\n%s" % (use_folder, os.listdir(use_folder))
)
except:
log_contents.append("Error in os.listdir('%s')." % (use_folder,))
raise ImportError(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
pass
def parse(self, raw_lines):
# TODO return an array of AccountNumber
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
def mergeBatches(dataFolder, extractionFunc, extractionKwargs, ncpus, testsamples, testbatch, outFile, metaCols=None, filters=None, useFeather=False):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$data = [];
$result = \Phpcmf\Service::M()->db->table('member_setting')->get()->getResultArray();
if ($result) {
foreach ($result as $t) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
Schema::create('event_booking_entry', function (Blueprint $table) {
$table->increments('id');
$table->string('Event_Code')->nullable();
$table->integer('Membership_Type')->nullable();
$table->string('Contact_Person')->nullable();
$table->integer... | ise-uiuc/Magicoder-OSS-Instruct-75K |
link_current_user_details = Link(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
component: FollowingComponent,
canActivate: [AuthGuard]
},
{ path: "**", component: LandingPageComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if annotations:
axes_hdl.annotate('$\omega$ = {:3.3g}'.format(w0[ii]),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response.set_observe_value(generate_observe_value());
let packet = response.to_bytes().unwrap();
socket
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Resources:
ActualBudgetAlertTopic:
Properties:
TopicName: ActualBudgetAlert
Type: AWS::SNS::Topic
ActualBudgetAlertTopicPolicy:
Properties:
PolicyDocument:
Id: BudgetTopicPolicy
Statement:
- Action: SNS:Publish
Effect: Allow
Principal:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ListNode
{
public:
T value:
ListNode<T>* next = nullptr;
~ListNode() { delete next; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
engine.setProperty('voice', voices[1].id)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.infline_layer.move(index=0, pos=[1])
self.viewer1d.add_layer(layer=self.infline_layer)
self.viewer.dims.events.current_step.connect(self.update_slider)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--client-id "${OPSMAN_CLIENT_ID}" \
--client-secret "${OPSMAN_CLIENT_SECRET}" \
--username "$OPSMAN_USERNAME" \
--password "$<PASSWORD>" \
--skip-ssl-validation \
--request-timeout 3600 \
upload-product \
--product $TILE_FILE_PATH
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>hdm-dt-fb/ironpython-stubs
class StylusButtonEventArgs(StylusEventArgs):
"""
Provides data for the System.Windows.UIElement.StylusButtonDown and System.Windows.UIElement.StylusButtonUp events.
StylusButtonEventArgs(stylusDevice: StylusDevice,timestamp: int,button: StylusButton)
"""
@staticmetho... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class filter_proxy {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit 1
fi
################################################################################
# check executables exist and are executable
################################################################################
for exec in $EXECUTABLES; do
if [[ ! -f "$exec" ]]; then
echo "Executable not found: $exec" 1>... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.last_timestamp = current_timestamp
throttle = self.throttle_controller.step(cte, sample_time)
brake = 0
if linear_velocity == 0 and current_velocity < 0.1:
throttle = 0
brake = 400
elif throttle < 0.1 and cte < 0:
throttle = 0
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from azure.cli.core.commands import cli_command
cli_command(__name__, 'cloud list', 'azure.cli.command_modules.cloud.custom#list_clouds')
cli_command(__name__, 'cloud show', 'azure.cli.command_modules.cloud.custom#show_cloud')
cli_command(__name__, 'cloud register', 'azure.cli.command_modules.cloud.custom#register_cl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.