seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// @}
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if a>= 18:
print('A pessoa numero {} já é maior de idade'.format(c))
else:
print('A pessoa numero {} não é maior de idade!'.format(c))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
# Set up the python project or die in case of error.
#
# Usage:
# bash setup.sh
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif [ $1 == 2 ]
then
pod repo push $POD_SPECS_NAME --private --allow-warnings
else
echo '参数有误'
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"PARAMS_MISMATCH", "The number of supplied parameters "
"({}) does not match the expected number of parameters "
"({}).".format(len(p), numParams))
for paramNum in range(0, numParams):
p = []
valueType, paramType = _getParamValueType(dataTypes[paramNum])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
| Action<typeof SettingsActionTypes.FETCHED, { settings: UserSettings }>
| Action<typeof SettingsActionTypes.FETCH_FAILED, { error: Error }>
| Action<typeof SettingsActionTypes.UPDATE, { settings: UserSettings }>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from wtforms import SubmitField, StringField, PasswordField, TextAreaField
from wtforms.validators import DataRequired, EqualTo
class FirstRunForm(Form):
"""First-run form.
Form, which using in web page, which
shows at first run of application.
"""
gallery_title = StringField(
"Gallery title:",
validators=[DataRequired()],
description="Gallery title name")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
p_coords = (p['coords'][0].item(), p['coords'][1].item(), p['coords'][2].item())
l_coords = (l['coords'][0].item(), l['coords'][1].item(), l['coords'][2].item())
t = interactions.Interaction(c, p_coords, l_coords, dist, l['id'].item())
if c in inters:
current_value = inters[c]
if dist < current_value.distance:
inters[c] = t
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("2/3) Biases encoded with success.")
np.save('./' + base_dir +'pre_' + str(index) + "_" +
str(layer.name), encoded_weights)
np.save('./'+ base_dir + 'pre_bias_' + str(index) + "_" +
str(layer.name), encoded_biases)
if self.verbosity:
print("3/3) Layer " + str(layer.name)+"_"+str(index)+" weights and biases saved.")
print("")
print("Layer precomputation ends with success.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl Module for ConfirmAbort {
fn build_view_data(&mut self, _: &RenderContext, _: &TodoFile) -> &ViewData {
self.dialog.get_view_data()
}
fn handle_events(
&mut self,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .wandb_login import login # noqa: F401
from .wandb_require import require # noqa: F401
from .wandb_run import finish # noqa: F401
from .wandb_save import save # noqa: F401
| ise-uiuc/Magicoder-OSS-Instruct-75K |
SSH_AUTH_SOCK=${SSH_AUTH_SOCK:-/app/.ssh-agent.sock}
trap stop EXIT
stop() {
local code="${?}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let favouriteHeroesSerice: FavouritesServiceProtocol
var heroes: [Hero] = []
required init(favouriteHeroesSerice: FavouritesServiceProtocol) {
self.favouriteHeroesSerice = favouriteHeroesSerice
}
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return heroes.count
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const SET_USER = 'SET_USER_INFO';
export const SET_IS_COLLAPSE = 'SET_IS_COLLAPSE';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let websocket = init().await;
let sub = BinanceSubscription::TickerAll;
test_subscription_callback(websocket, sub).await;
}
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn trade() {
let websocket = init().await;
let sub = BinanceSubscription::Trade("bnbbtc".to_string());
test_subscription_callback(websocket, sub).await;
}
async fn init() -> BinanceWebsocket {
BinanceWebsocket::new(BinanceParameters::sandbox())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @note The additional vertex normal attribute in this example is not yet used by any technique.
* This may cause a warning to be printed during the validation. The normal attribute will be used
* in the AdvancedMaterial example.
* @see https://doc.babylonjs.com/how_to/load_from_any_file_type
* @see https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/SimpleMeshes
*/
struct SimpleMeshesScene : public IRenderableScene {
SimpleMeshesScene(ICanvas* iCanvas) : IRenderableScene(iCanvas)
{
GLTF2::GLTFFileLoader::RegisterAsSceneLoaderPlugin();
}
~SimpleMeshesScene() override = default;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[cfg(test)]
mod test {
use super::apply_soundex;
#[test]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def next_larger_nodes2(head):
stack = [head.val]
res = [0]
cur = head.next
while cur:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package io.github.intellij.dlanguage.stubs.index;
import com.intellij.psi.stubs.StringStubIndexExtension;
import com.intellij.psi.stubs.StubIndexKey;
import io.github.intellij.dlanguage.psi.interfaces.DNamedElement;
import io.github.intellij.dlanguage.psi.interfaces.DNamedElement;
import org.jetbrains.annotations.NotNull;
/**
* Stub index to store all names defined in the project; specifically for the "go to symbol" feature.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.AlterField(
model_name='project',
name='link',
field=models.TextField(max_length=130),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from flask_sqlalchemy import SQLAlchemy
from hello import db
#SQLALCHEMY_DATABASE_URL="mysql://fly:('flyfly')@localhost/test1"
#SQLALCHEMY_TRACK_MODIFICATIONS = True
class Role(db.Model):
__tablename__ = 'roles'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64), unique=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// queue.
func delay(_ queue: DispatchQueue, interval: DispatchTimeInterval) -> Self {
return Self { complete in
onComplete(immediateExecutionContext) { result in
queue.asyncAfter(deadline: DispatchTime.now() + interval) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
route: env::var("WGAS_ROUTE").unwrap_or("0.0.0.0/0".to_string()),
port: env::var("WGAS_PORT").unwrap_or(51820.to_string()),
network: env::var("WGAS_NETWORK").unwrap_or("10.66.66.1/24".to_string()),
interface: env::var("WGAS_INTERFACE").unwrap_or("wg0".to_string()),
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
A message to be sent to the human agent who will be taking over the conversation.
*/
public var messageToHumanAgent: String?
/**
A label identifying the topic of the conversation, derived from the **user_label** property of the relevant node.
*/
public var topic: String?
/**
The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated using the
value of the dialog node's **user_label** property.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import numpy as np
from collections import defaultdict, Counter
from .rbbox_np import rbbox_iou
def get_ap(recall, precision):
recall = [0] + list(recall) + [1]
precision = [0] + list(precision) + [0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ModuleOrUniformRoot::Module(m) => {
if let Some(def) = ident.span.normalize_to_macros_2_0_and_adjust(m.expansion) {
tmp_parent_scope =
ParentScope { module: self.expn_def_scope(def), ..*parent_scope };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
# 二叉树中序遍历的 生成器写法
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def mid_order(root):
if not root: return
yield from mid_order(root.left)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Effect()
loadPosts$ = this.store$.pipe(
select(getPostsRequest),
filterOperator(({loading}) => loading),
filterOperator(({filter: {from}}) => Boolean(from)),
switchMap(({filter, page}) => this.postsService.getPosts(filter, page)),
map(posts => new PostsLoadedAction(posts))
);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x = x.data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import pygame
from pygame.locals import DOUBLEBUF, OPENGL
pygame.init()
pygame.display.set_mode((800, 600), DOUBLEBUF | OPENGL)
ctx = ModernGL.create_context()
vert = ctx.vertex_shader('''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import torchvision
def predict_dataloader(model, dataloader, discard_target=True):
"""
Return predictions for the given dataloader and model.
Parameters
----------
model : pytorch model
The pytorch model to predict with.
dataloader : pytorch dataloader
| ise-uiuc/Magicoder-OSS-Instruct-75K |
password = '<PASSWORD>'
filename = os.path.basename(filepath)
ftp=FTP()
#ftp.set_debuglevel(2)
ftp.connect(IP)
ftp.login(user,password)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Password extends Field
{
/**
* @return array
*/
public function getAttributes(): array
{
return parent::getAttributes() + [
'placeholder' => trans('administrator::hints.global.optional'),
'autocomplete' => 'off',
];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import tzprofiles_indexer.models as models
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="container">
<table class="table table-bordered">
<thead>
<th>Pedido #</th>
<th>Fecha</th>
<th>Realizó el Pedido</th>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
delete impl;
impl = nullptr;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
total_val=$(expr $total_val + $total)
echo "Number of columns of age, total and percentage for $file are $age_column, $total, $percentage"
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# at the #FatecSAT2019 NodeJS & WebSockets workshop.
# -------------------------------------------------------
# Usage:
# $ ./setupgit.sh <myGitHubUserName> <<EMAIL>>
# -------------------------------------------------------
echo "Setting up Git to work for GitHub user $1, who's email is $2"
git remote rename origin upstream
git remote add origin https://github.com/$1/odd-ball.git
git config --global user.email "$2"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
using System.Collections.Generic;
public interface ISchool
{
List<Class> Classes { get; }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// If no key was passed, we don't encrypt
if key.len() == 0 {
return Ok(common::format_output(plain_text));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await call.answer()
# Editing the message
await call.message.edit_text(
text=(
"<b>🔗 Select a category to get a picture.</b>"
),
reply_markup=menu_with_categories()
)
@dp.callback_query_handler(text="anime")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::sort(_indexes.begin(), _indexes.end(), [](const OlapTableIndexSchema* lhs, const OlapTableIndexSchema* rhs) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def sum_cdf(s):
s = s.copy()
s = s.value_counts()
s = s.sort_index(ascending=True)
cumulative = []
for i in range(len(s)):
s0 = s.iloc[:i + 1]
cumulative.append(np.inner(s0.index, s0.values))
s = pd.Series(cumulative, index=s.index)
return s / s.max()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ( remainder )
res++;
return res;
}
}; | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('reo', '0117_auto_20210715_2122'),
]
operations = [
migrations.AddField(
model_name='sitemodel',
name='lifetime_emissions_cost_Health',
field=models.FloatField(blank=True, null=True),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
train_model= BashOperator(
task_id='train_model',
depends_on_past=False,
bash_command='python3 /usr/local/airflow/scripts/train_model.py',
retries=3,
dag=dag,
)
# Persist to MLFlow
persist_model = BashOperator(
task_id='persist_model',
depends_on_past=False,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h1>Tabel Acc</h1>
<br>
<br>
@foreach($acc as $accs)
<div class="card">
<h3><a href="/acc/{{$accs->id_acc}}">{{$accs->id_acc}}</a></h3>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__all__ = ["stringmethod"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def n_positions(word, length):
return length - len(word) + 1
if __name__ == '__main__':
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("")
Tst("aa")
Tst("ab")
Tst("abab")
Tst("abcabc")
Tst("abcxabc")
Tst("xabcabc")
Tst("abcabyc")
Tst("xxx")
Tst("xyzxyzxyzxyz")
Tst("123123123123k")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
git commit -m "build-log update $DATE"
git push origin master
cd ..
# upload rs
git add .
git commit -m "prototype dev $DATE"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_check_version_singleton(caplog):
"""Tests that minor version difference logging is only logged once."""
# Run test_check_version twice which will assert that the warning is only logged
# once.
for x in range(2):
test_check_version(
'1.2.0',
'1.1.0',
logging.WARNING,
'This could cause failure to authenticate',
caplog,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** Modifiers will be executed from lower order to higher order.
* This value is assumed to stay constant.
*/
public abstract int Order { get; }
public void Awake (Seeker seeker) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
model.fit(X_train, y_train, epochs=args.epochs, batch_size=args.batch_size)
test_loss, test_acc = model.evaluate(X_test, y_test, verbose=2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if key in model._meta.fk_fields or key in model._meta.o2o_fields:
field_object = model._meta.fields_map[key]
if hasattr(value, "pk"):
filter_value = value.pk
else:
filter_value = value
filter_key = cast(str, field_object.source_field)
elif key in model._meta.m2m_fields:
if hasattr(value, "pk"):
filter_value = value.pk
else:
filter_value = value
elif (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
if not found:
print("guh")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(longitude).notTo(equal(0))
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _rand_range(self, low=1.0, high=None, size=None):
"""
Uniform float random number between low and high.
"""
if high is None:
low, high = 0, low
if size is None:
size = []
return np.random.uniform(low, high, size)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
locator_dictionary = {
"img_dress1":(By.XPATH,"//*[@id='center_column']/ul/li[1]/div/div[1]/div/a[1]/img"),
"add_cart_dress1":(By.XPATH,"//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]"),
"product_price":(By.CLASS_NAME,"product-price")
}
class CartPopup(BasePage):
def __init__(self, context):
BasePage.__init__(
self,
context.browser,
base_url='http://www.automationpractice.com')
locator_dictionary = {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yield self._create_bundle_source(desired_bundle_size, self.source, ids)
def _validate_query(self):
condensed_query = self.source.query.lower().replace(" ", "")
if re.search(r"notin\({ids}\)", condensed_query):
raise ValueError(f"Not support 'not in' phrase: {self.source.query}")
if not re.search(r"in\({ids}\)", condensed_query):
example = "SELECT * FROM tests WHERE id IN ({ids})"
raise ValueError(f"Require 'in' phrase and 'ids' key on query: {self.source.query}, e.g. '{example}'")
@staticmethod
def _create_bundle_source(desired_bundle_size, source, ids):
if isinstance(ids, list):
ids_str = ",".join([f"'{id}'" for id in ids])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
synthesizer=synthesizer)
def normalizer(self, utt, processname):
""" words marked with a prepended pipe character "|" and words
in the English pronunciation dictionary or addendum will
be marked as English...
"""
token_rel = utt.get_relation("Token")
word_rel = utt.new_relation("Word")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# relation between f and t
return value
def rxn1(C,t):
return np.array([f(t)*C0/v-f(t)*C[0]/v-k*C[0], f(t)*C[0]/v-f(t)*C[1]/v-k*C[1]])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"code": 400,
"name": "Invalid JSON Format",
"description": 'Valid JSON format is {"texts": ["Ipsum dolore eirmod autem et"]}',
})
parser = MecabParserFactory.create("mecab-ipadic-neologd")
results = [[asdict(dc)for dc in parser(t)] for t in content["texts"]]
return jsonify({"ok": True, "results": results})
@app.errorhandler(HTTPException)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def is_key_pressed(self, *keys):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'systemctl suspend' \
'' \
--timer 1800 \
'systemctl hibernate' \
''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os, sys
currentFolder = os.path.abspath('')
try:
sys.path.remove(str(currentFolder))
except ValueError: # Already removed
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Show image on display
# Convert transformed image to BGR so CV2 can show image correctly
cv2.imshow('frame',cv2.cvtColor(frame,cv2.COLOR_RGB2BGR))
if cv2.waitKey(1) & 0xFF == ord('q'):
s.close()
break
finally:
s.close()
# convert untransformed images to gif
imageio.mimsave('Lego_camera_view.gif', [np.array(img) for i, img in enumerate(images_O) if i % 2 == 0], fps=20) | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
def module_run(self, points):
rad = self.options['radius']
url = 'https://api.twitter.com/1.1/search/tweets.json'
for point in points:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
group_form = form_class(request.POST or None, instance=group)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from rest_framework.response import Response
from sentry.api.bases.organization import OrganizationEndpoint
from sentry.plugins import bindings
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def verify_passwords_part2(text: str) -> int:
password_list = map(process_line, text.splitlines(keepends=False))
result = sum((pwd[lo] == letter) ^ (pwd[hi] == letter)
for lo, hi, letter, pwd in password_list)
return result
if __name__ == '__main__':
with open('input.txt') as in_file:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from cinder.tests.volume.drivers.netapp import fakes as na_fakes
from cinder.volume.drivers.netapp.eseries import client as es_client
from cinder.volume.drivers.netapp.eseries import iscsi as es_iscsi
from cinder.volume.drivers.netapp import utils as na_utils
class NetAppEseriesISCSIDriverTestCase(test.TestCase):
def setUp(self):
super(NetAppEseriesISCSIDriverTestCase, self).setUp()
kwargs = {'configuration': self.get_config_eseries()}
self.driver = es_iscsi.NetAppEseriesISCSIDriver(**kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { validateListParameters } from './validateListParameters';
export const validateImageListParameters = (parameters: ImageListParameters) => {
let faults = validateListParameters(parameters, validateImageParameters, validateImageSort);
if (parameters.licensecomponents) {
faults = [...faults, ...validateLicenseComponents(parameters.licensecomponents)];
}
return faults;
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void Direct3DInterop::OnPointerReleased(DrawingSurfaceManipulationHost^ sender, PointerEventArgs^ args)
{
// Insert your code here.
}
// Interface With Direct3DContentProvider
HRESULT Direct3DInterop::Connect(_In_ IDrawingSurfaceRuntimeHostNative* host)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Self::Or => "or",
Self::Newline => "newline",
Self::Colon => "colon",
Self::LeftBracket => "[",
Self::RightBracket => "]",
Self::LeftParen => "(",
Self::RightParen => ")",
Self::Plus => "+",
Self::Minus => "-",
Self::Multiply => "*",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('wells', '0121_update_intended_water_use'),
]
operations = [
migrations.RemoveField(
model_name='well',
name='licenced_status',
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
maxStack.Push(maxEl);
}
stack.Push(query[1]);
}
break;
case 2:
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import '@angular/http';
import '@angular/router';
import 'angular2-google-maps/core';
import 'primeng/primeng';
import 'rxjs/Rx';
// // angular bundles
// '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
// '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
// '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
// '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
// '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
// '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
// '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
// '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
function setUbicacion_gps($ubicacion_gps) {
$this->ubicacion_gps = $ubicacion_gps;
}
function setDescripcion($descripcion) {
$this->descripcion = $descripcion;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sed -i "s/click for flash//g" $f
done
echo "Removing laughter..."
for f in $(grep -El "\([Ll]augh(s|ter).\)" *.txt)
do
sed -ri "s/\([Ll]augh(s|ter).\)//g" $f
done
for f in $(grep -El "\([Ll]augh(s|ter)\)" *.txt)
do
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
namespace spec\SlartyBartfast\Services;
use PhpSpec\ObjectBehavior;
use SlartyBartfast\Services\FlySystemLocalFactory;
class FlySystemLocalFactorySpec extends ObjectBehavior
{
public function it_is_initializable(): void
{
$this->shouldHaveType(FlySystemLocalFactory::class);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
current_index += 1
if len(dictFeasibleFs) > 0:
# get best r and best_feasible_lambda
| ise-uiuc/Magicoder-OSS-Instruct-75K |
builder.check(|| {
let _arc = loom::sync::Arc::new(());
loom::thread::yield_now();
loom::thread::yield_now();
loom::thread::yield_now();
});
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import {NavParams, NavController, LoadingController, Platform, Loading, IonicPage} from 'ionic-angular';
import {Config, CurrencyService, BitcoinUnit, EthereumUnit, BITCOIN, ETHEREUM} from '../../providers/index';
import {TranslateService} from '@ngx-translate/core';
import 'rxjs/add/operator/toPromise';
@IonicPage({
name : 'select-crypto'
})
@Component({
templateUrl : 'select-crypto.html'
})
export class SelectCryptoPage {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
of the screen buffer.
"""
if not self.bounded:
return super().at(*args, clip=False, **kwargs)
return super().at(*args, clip=clip, **kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace CzechsInNHL.Models
{
public class PlayerSnapshot
{
//person-specific data
public string fullName { get; set; }
public string firstName { get; set; }
public string lastName { get; set; }
public string primaryNumber { get; set; }
public int currentAge { get; set; }
public string birthCity { get; set; }
public string height { get; set; }
public double weight { get; set; }
public string position { get; set; }
public string currentTeam { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export tech_repl="1"
export bio_repl="1"
export path="/media/data1/ENCODE/$jobName/tech_repl_$tech_repl/"
export bamF="$path/bio_repl_$bio_repl/$encodeID.bam"
export outDir="/media/data1/ENCODE/$jobName/tech_repl_$tech_repl/bio_repl_$bio_repl/analysis"
mkdir -p $outDir
export samF="$outDir/$encodeID.sam"
################Paths#####################
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bin/airpub-bootstrap.less \
dist/airpub-bootstrap.min.css
| ise-uiuc/Magicoder-OSS-Instruct-75K |
api = Api(blueprint,
title='Alegre API',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// If the `strategy` has not settled on a [`Status`], will not pick one.
///
/// If you just want to update the status of an input (eg. in a timer
/// interrupt), use this function.
pub fn try_get(&self) -> Option<Status> {
let s = self.strategy.update(self.input_status());
if let Some(s) = s {
self.hysteresis.set(s);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
the respective files and a few plots are generated in 'Postprocessing_Util'. For an understanding of the parameters
below in this file, we assume knowledge from the preprint of our paper.
"""
import SITE
import Postprocessing_Util
if __name__ == '__main__':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ParserContext.BLANK_LINES_IN_DATA == ParserContext.PARSER_RAISE:
raise InvalidData("vCard data has blank lines")
# Must be a property
else:
# Parse parameter/value for top-level calendar item
prop = Property.parseText(line)
# Check for valid property
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const variablesWithPermissions = {
...variables,
...allPermissions,
...userPermissions,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>fplucas/countdown
# <NAME>
# Dictionary parser file
def parse(f):
file = open(f, "r")
words = file.read().split()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int currentIndex = 0;
int compareResult;
if (max >= 0) {
do {
currentIndex = (min + max) / 2;
compareResult = ((Comparable) myList.get(currentIndex)).compareTo(element);
if (compareResult < 0) {
min = currentIndex + 1;
} else if (compareResult > 0) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from cPickle import loads, dumps # cpython 2.x
except ImportError:
from pickle import loads, dumps # cpython 3.x, other interpreters
try:
from django.utils import simplejson as json
except ImportError:
import json
| ise-uiuc/Magicoder-OSS-Instruct-75K |
object: JsonObject;
}
| 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.