seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
# "A Quick Derivation relating altitude to air pressure" from Portland
# State Aerospace Society, Version 1.03, 12/22/2004.
#
# See also PVL_ALT2PRES PVL_MAKELOCATIONSTRUCT
import numpy as np
import pvl_tools as pvt
def pvl_pres2alt(**kwargs):
Expect={'pressure': ('array', 'num', 'x>0')}
var=pvt.Parse(kwargs,Expect)
Alt=44331.5 - 4946.62 * var.pressure ** (0.190263)
return Alt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
config.gpu_options.allow_growth = True
session = tf.Session(config=config)
K.set_session(session)
# -------------------------------------------------------------
parser = argparse.ArgumentParser(
description="""Train a bi-directional RNN with CTC cost function for speech recognition""")
parser.add_argument('-c', '--corpus', type=str, choices=['rl', 'ls'], nargs='?', default=CORPUS,
help=f'(optional) corpus on which to train (rl=ReadyLingua, ls=LibriSpeech). Default: {CORPUS}')
parser.add_argument('-l', '--language', type=str, nargs='?', default=LANGUAGE,
help=f'(optional) language on which to train the RNN. Default: {LANGUAGE}')
parser.add_argument('-b', '--batch_size', type=int, nargs='?', default=BATCH_SIZE,
help=f'(optional) number of speech segments to include in one batch (default: {BATCH_SIZE})')
parser.add_argument('-f', '--feature_type', type=str, nargs='?', choices=['mfcc', 'mel', 'pow'], default=FEATURE_TYPE,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[cfg(not(feature = "rayon"))]
#[inline(always)]
pub fn process_maybe_parallel_map_collect<'a, T, I, A, R>(
items: I,
action: A,
_hint_do_parallel: bool,
) -> Vec<R>
where
T: 'a + Send,
I: Iterator<Item = T> + Send,
A: Fn(I::Item) -> R + Sync + Send,
R: Send,
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from utils import *
import atexit
import json
import datetime
class CodisDashboard(Process):
def __init__(self, admin_port, product_name, product_auth=None):
self.config = self._open_config(admin_port, product_name, product_auth)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CAF_CM_INIT_LOG("CompositeConnectionListener") {
}
CompositeConnectionListener::~CompositeConnectionListener() {
}
void CompositeConnectionListener::setDelegates(
const ListenerDeque& delegates) {
_delegates = delegates;
}
void CompositeConnectionListener::addDelegate(
const SmartPtrConnectionListener& delegate) {
CAF_CM_FUNCNAME_VALIDATE("addDelegate");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#![feature(async_closure)]
#[macro_use]
extern crate rocket;
extern crate rocket_contrib;
extern crate serde_derive;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
id -> Int4,
creator_name -> Varchar,
title -> Varchar,
description -> Varchar,
created_at -> Timestamptz,
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return $this->getCode() === self::CODE_JOB_IN_WRONG_STATE_CODE;
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
return 'task_attachments';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['task_id'], 'integer'],
[['path'], 'string', 'max' => 255],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const toStr = (v: number) => {
const s = ('00' + ('' + v).replace(/^0+/, ''));
return s.substring(s.length - 2, s.length);
};
const endHour = toStr(startHour + durationHours);
const endMin = toStr(startMin + durationMin);
const value = `${endHour}:${endMin}`;
console.log('StartEndDatetimeFormComponent.setEndTime()', endHour, endMin, value);
this.endTime.setValue(value);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool Engine::CreateReality(const Layout& layout) {
auto lreality = layout.lreality;
lreality->lrenderer = layout.lrenderer;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cadence_contracts = cadence.Dictionary([])
tx = (
Tx(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cardsLeftToOpen: number
voucherTokenAccount?: TokenAccount
voucherKey: StringPublicKey
editionKey: StringPublicKey
editionMint: StringPublicKey
connection: Connection
wallet: WalletContextState
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@app.route("/")
def index():
username = get_user()
return render_template("index.html", username=username)
@app.route("/browser")
def browser():
return render_template("browser.html")
@app.route("/google")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name: {ENGINE_NAME}
type: local
_provider: INVALID.INVALID
""", ImportError],
["""
id: cbc_binary_toolkit
engine:
name: {ENGINE_NAME}
type: local
_provider: cbc_binary_toolkit.engine.LocalEngineFactory
""", NotImplementedError],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
DRONES_VERSION = "0.1.2"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
err_style="band", # err_kws=dict(edgecolor='none'),
# err_style="bars", # err_kws=dict(edgecolor='none'),
alpha=0.8, zorder=2,
legend=legend, data=data, ax=ax)
if show_runs:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def fit_transform(self, X, y=None, **fit_params):
n_observations, n_features, n_variables = X.shape
return X.reshape(n_observations, n_features * n_variables)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class LoadJournalsInteractorImpl implements Interactor.LoadJournalsInteractor {
LiveData<List<JournalModel>> items;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@MainThread
protected void onPreExecute() {
mProgressBar.setVisibility(View.VISIBLE);
mRecyclerView.setVisibility(View.GONE);
}
@Override
@WorkerThread
protected List<AppListModel> doInBackground(Void... voids) {
ArrayList<AppListModel> models = new ArrayList<>();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@endif
<main class="flex flex-col mt-5 mx-4 sm:mx-20 bg-gray-300 rounded shadow shadow-gray-400 h-fit p-10">
@yield('content')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ ${MAX_IMAGE} -lt ${count} ]; then
echo -n " - ${j} ... "
curl -X DELETE -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/${ORG}/${REPO}/tags/${j}/
echo "DELETED"
fi
fi
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
def closest_to_centroid(clusters,centroids,nb_closest=20):
output = [[] for i in range(len(centroids))]
#print(clusters)
for i in range(len(centroids)):
centroid = centroids[i]
cluster = clusters[i]
try :
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class CurrencySerializer(BaseSerializer):
class Meta:
model = Currency
#
# Views
#
class AbstractListView(ListAPIView):
permission_classes = (AllowAny, )
authentication_classes = (TokenAuthentication, SessionAuthentication, BasicAuthentication)
#permission_classes = (permissions.IsAuthenticated, IsOwner)
renderer_classes = (UnicodeJSONRenderer, JSONPRenderer, BrowsableAPIRenderer, YAMLRenderer, XMLRenderer)
paginate_by = 10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
string input2 = Console.ReadLine();
int number2 = Convert.ToInt32(input2);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class MarkdownDocument : UIDocument {
var text = ""
override func contents(forType typeName: String) throws -> Any {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return $this->hasMany(Employee::class);
}
public function suppliers()
{
return $this->hasMany(Supplier::class);
}
public function sellers()
{
return $this->hasMany(Seller::class);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using namespace iota;
using namespace model;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
torch.backends.cudnn.benchmark = cfg.case.impl.benchmark
torch.multiprocessing.set_sharing_strategy(cfg.case.impl.sharing_strategy)
huggingface_offline_mode(cfg.case.impl.enable_huggingface_offline_mode)
# 100% reproducibility?
if cfg.case.impl.deterministic:
set_deterministic()
if cfg.seed is not None:
set_random_seed(cfg.seed + 10 * process_idx)
dtype = getattr(torch, cfg.case.impl.dtype) # :> dont mess this up
device = torch.device(f"cuda:{process_idx}") if torch.cuda.is_available() else torch.device("cpu")
setup = dict(device=device, dtype=dtype)
python_version = sys.version.split(" (")[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
img: '/images/footer/cariniana.png',
name: '<NAME>',
},
{
id: 7,
url: 'https://doaj.org/',
title: 'Directory of Open Access Journals',
img: '/images/footer/doaj.png',
name: 'DOAJ',
},
{
id: 8,
url: 'https://diadorim.ibict.br/',
title: 'Diretório de políticas editoriais das revistas científicas brasileiras',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from project.category import Category
from project.document import Document
from project.topic import Topic
class Storage:
def __init__(self):
self.categories=[]
self.topics=[]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Called when the training batch ends."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php $podcast = $history->podcast ?>
<div class="collapse-block position-relative">
<div class="col-12 first-collapse-block">
<p class="collapse-item-title" onclick="player{{$podcast->id}}.api('toggle')" tabindex="0">{{$podcast->getTitle()}}</p>
<h3 class="collapse-item-category">{{$podcast->getGenreTitle()}}</h3>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@person_controller.route("/delete/<int:id>", methods=['DELETE'])
@pfms_delete()
def delete(id: int):
return person_service.delete(id)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param duration a rhythm representing this beat's duration
* @param signature the time signature
*
* @returns how many beats this note takes up
*/
export function timeSignatureDurationMapping(duration: LiteralRhythm, signature: [number, number]): number {
const [, bottom] = signature;
const durationAsNumber = nameToNumberMapping[duration.rhythmName];
let numBeats = bottom / durationAsNumber;
if (duration.isDotted) {
numBeats = numBeats * 1.5;
}
return numBeats;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cidade = entrada.strip().lower()
partido = cidade.split()
pnome = partido[0]
santo = (pnome == 'santo')
print(santo) | ise-uiuc/Magicoder-OSS-Instruct-75K |
[HttpPut("checkout")]
[Authorize(Roles = Role.Customer)]
public async Task<ActionResult<CartProductDto>> UpdateAfterCheckout([FromBody] CustomerDto customer)
{
return Ok(await _customerService.UpdateCustomerAfterCheckoutAsync(customer));
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_nested_function_error(self):
def nested():
pass
exc = pytest.raises(ValueError, obj_to_ref, nested)
assert str(exc.value) == 'Cannot create a reference to a nested function'
@pytest.mark.parametrize('input,expected', [
(DummyClass.meth, 'test_util:DummyClass.meth'),
(DummyClass.classmeth, 'test_util:DummyClass.classmeth'),
(DummyClass.InnerDummyClass.innerclassmeth,
'test_util:DummyClass.InnerDummyClass.innerclassmeth'),
(DummyClass.staticmeth, 'test_util:DummyClass.staticmeth'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
post_logout_url = reverse('helusers:auth_logout_complete')
except NoReverseMatch:
post_logout_url = None
if post_logout_url:
params['post_logout_redirect_uri'] = request.build_absolute_uri(post_logout_url)
try:
# Add the params to the end_session URL, which might have query params already
url_parts = list(urlparse.urlparse(url))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_send_and_receive_message(self):
self.fixture.test_send_and_receive_message()
def test_receive_and_send_message(self):
self.fixture.test_receive_and_send_message()
def test_send_peek_message(self):
self.fixture.test_send_peek_message()
def test_peek_no_message(self):
self.fixture.test_peek_no_message()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { Doraemon } from './instance/init'
export { defineComponentHOC } from './miniprogram/defineComponentHOC'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(transfer)
transfer.add_nodes()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fat_cat = """
I'll do a list:
\t\t* Cat food.
\t* Fishes.
\t\t\t* Catnip\n\t* Grass
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return [], []
else:
dout1 = [data[i] for i in inds1]
dout2 = [data[i] for i in inds2]
return dout1, dout2
def nparray_and_transpose(data_a_b_c):
"""Convert the list of items in data to a numpy array, and transpose it
Args:
data: data_asbsc: a nested, nested list of length a, with sublist length
b, with sublist length c.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# What should n be? it doesn't seem like we have enough data for it to be that large
# Should I get rid of all of the view switches?
past_n_target = 6 # how far to try and look back
past_n_min = 2 # min amount to look back. if a matching ngram of this length is not found, the program will exit
forward_n = 1 # how many new grams to add each iteration
min_ngrams_needed = 2 # how many ngrams need to be found
all_ngrams = generate_ngrams(past_n_target+forward_n, corpus)
generated = ['the']
for i in range(0, 20):
filtered_ngrams = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Redistributions of source code must retain the above
# copyright notice, this list of conditions and the
# following disclaimer.
#
# Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the
# following disclaimer in the documentation and/or other
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.farl = farl
self.nearl = nearl
self.friendship_ratio = friendship_ratio
self.friendship_initiate_prob = friendship_initiate_prob
self.maxfs = maxfs
self.X = zeros(num,'float')
self.Y = zeros(num,'float')
self.R = zeros((num,num),'float')
self.A = zeros((num,num),'float')
self.F = zeros((num,num),'int')
def make_friends(self,i):
cand_num = self.F.sum(axis=1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// self.navigationItem.rightBarButtonItem = self.editButtonItem
}
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
// #warning Incomplete implementation, return the number of sections
return 1
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
">>=": [tokens.InplaceRightShift],
"|": [tokens.BinOr],
"||": [tokens.LogicOr],
"abc a0 01": [tokens.Identifier, tokens.Identifier, tokens.Integer],
"0x222 0o222 2.2": [tokens.Integer, tokens.Integer, tokens.Float],
"func a(){return a % 2 - 1 == 2}": [tokens.Identifier, tokens.Identifier, tokens.LeftParen, tokens.RightParen, tokens.LeftBrace, tokens.Identifier, tokens.Identifier, tokens.Modulo, tokens.Integer, tokens.Subtract, tokens.Integer, tokens.IsEqual, tokens.Integer, tokens.RightBrace],
"$ abc": [],
"a $abc \n a": [tokens.Identifier, tokens.Identifier]
}
tests_fail = ["0a", "0.a", "0o8", "@"]
def test_tokenizer_pass(self):
for test, expect in self.tests_pass.items():
t = list(Tokenizer(test).tokenize())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public async make(data: any, saltOrRounds: string | number = 10) {
return await this.provider.make(data, saltOrRounds);
}
public async compare(data: any, encrypted: string) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import views
urlpatterns = [
url(r'^users$', views.index),
url(r'^users/(?P<id>\d+)$', views.show),
url(r'^users/new$', views.new),
url(r'^users/create$', views.create),
url(r'^users/(?P<id>\d+)/edit$', views.edit),
url(r'^users/(?P<id>\d+)/delete$', views.delete),
url(r'^users/(?P<id>\d+)/update$', views.update),
] | ise-uiuc/Magicoder-OSS-Instruct-75K |
username = Column(CHAR(127))
course_id = Column(INTEGER)
class CourseDetail(Base):
__tablename__ = 'course_detail'
id = Column(INTEGER, primary_key=True)
section_md5 = Column(CHAR(127))
type = Column(CHAR(127))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
args = parse_args()
while True:
offending = filter_processes(args)
report(offending)
if not args.monitor:
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"icon_resources":[(0, "cal.ico")]}]) | ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo apt-get install --only-upgrade oar-server=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-server-mysql=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-server-pgsql=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-node=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-user=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-user-mysql=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-user-pgsql=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-web-status=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-doc=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-restful-api=2.5.4-2+deb8u1 -y
sudo apt-get install --only-upgrade oar-api=2.5.4-2+deb8u1 -y
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# import logging.config
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// NetworkLoggerPlugin.swift
// TRON
//
// Created by Denys Telezhkin on 20.01.16.
// Copyright © 2015 - present MLSDev. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to 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.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="col-sm-6 col-md-12">
<h2 class="service_title">Eco-friendly</h2>
<p>Dasan Holdings Ltd. is proud to present only Eco-friendly products. All of our tissue products are eco-friendly yet the best quality you could ever imagined.</p>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/home/runner/.cache/pip/pool/83/9a/18/620dc8665d157a95e8bd8529f1f10f3b4c237eccbe2e6418e048857edc | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert len(fps) == 50
assert fps[0].latitude is None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for data_pbtxt_file in getstatusoutput("find . -name 'data.pbtxt'")[1].split():
SetupDataPbtxt(data_pbtxt_file, \
os.path.dirname(os.path.abspath(data_pbtxt_file)))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tensor::dims padR_;
tensor dst_;
bool with_bias_;
};
using convolution_test =
convolution_forward_tests<float, float, float, float>;
// Test for moving, copy, cache behavior
// Test for moving, copy, cache behavior
TEST_P(convolution_test, TestManipulation) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { ThumbsUp16 as default } from "../";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
( $(read_value!($next, $t)),* )
};
($next:expr, [ $t:tt ; $len:expr ]) => {
(0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
};
($next:expr, chars) => {
read_value!($next, String).chars().collect::<Vec<char>>()
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
onChangeRows,
onNextPage,
onPrevPage,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uint32_t subgroup_index=0, uint32_t shard_index=0);
/**
* "get_size_by_time" retrieve size of the object of a given key
*
* @param key the object key
* @param ts_us Wall clock time in microseconds.
* @subugroup_index the subgroup index of CascadeType
* @shard_index the shard index.
*
* @return a future to the retrieved size.
* TODO: check if the user application is responsible for reclaim the future by reading it sometime.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.readEventLog(machine, 'EVENTLOG_WARNING_TYPE', self.warningTypeArray)
self.writeInputRecords(self.warningTypeArray)
if self.errorTypeArray:
self.readEventLog(machine, 'EVENTLOG_ERROR_TYPE', self.errorTypeArray)
self.writeInputRecords(self.errorTypeArray)
def writeInputRecords(self, inputArray):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await error_message.delete()
else:
await ctx.send(embed=embed)
def setup(bot: Bot) -> None:
"""Load the PyPi cog."""
bot.add_cog(PyPi(bot))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 1. make sure the accuracy is the same
predictions = []
for row in df_boston_test_dictionaries:
predictions.append(saved_ml_pipeline.predict(row))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.package(url: "https://github.com/firebase/firebase-ios-sdk", .upToNextMajor(from: "8.0.0")),
.package(url: "https://github.com/google/GoogleSignIn-iOS", .upToNextMajor(from: "6.0.2")),
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.0.0")),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class FakeConnector(object):
def begin(self, graph_name, readonly=False):
return FakeTransaction(graph_name, readonly=readonly)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
BHttpResult::BHttpResult(BMessage* archive)
:
BUrlResult(archive),
fUrl(archive->FindString("http:url")),
fHeaders(),
fStatusCode(archive->FindInt32("http:statusCode"))
{
fStatusString = archive->FindString("http:statusString");
BMessage headers;
archive->FindMessage("http:headers", &headers);
fHeaders.PopulateFromArchive(&headers);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
>>> backend = SpatialEmbedding()
>>>
>>> url = 'https://www.model_location.com/model.trch'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function index()
{
$service=RefService::get();
$province=RefProvince::get();
return view('user.registrasiworker',compact('service','province'));
}
public function store(Request $request)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@pytest.fixture()
def open_port():
return get_open_port()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.app.Dialog;
import android.content.Intent;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import Foundation
class LocalizationHelper{
class func localize(key:String,count:Int?=nil)->String{
let bundlePath = (NSBundle(forClass: LocalizationHelper.self).resourcePath! as NSString).stringByAppendingPathComponent("RelativeFormatter.bundle")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Check if camera opened successfully pr
if (cap.isOpened()== False):
print("Error opening video file")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
enum CodingKeys: String, CodingKey {
case id
case name
case description
case type = "typeName"
}
let id: Int
let name: String
let description: String
let type: String
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/**
* @return User
*/
public function getIdUser()
{
return $this->idUser;
}
/**
* @param User $idUser
*/
public function setIdUser($idUser)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
make scanner.cmo parser.cmo
PARSE='
open Instructions;;\n
\n
let lexbuf = Lexing.from_channel stdin in\n
Parser.top_level Scanner.token lexbuf;;'
(echo -e $PARSE; cat -) | ocaml scanner.cmo parser.cmo | tail -n +3 | head -n -1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo Done. The executable can be found in \'release/macos\' if everything went well.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
errors = {'field': 'Test error'}
with app.app_context():
response, status = app.error_handler_spec[None][None][ValidationException](
ValidationException(errors)
)
self.assertEqual(400, status)
self.assertIn('Test error', str(response.get_json()))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override init() {
self.command = nil
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/sh
rm -r score.txt dbpedia_test/ semeval_temp/ semeval_test _processed_data checkpoint data summary test_result
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parent::__construct();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// RUN: diff -u %S/string-representable.swift.expected %t/string-representable.swift.result
import Cities
import Bar
func foo(_ c: Container) -> String {
c.Value = ""
c.addingAttributes(["a": "b", "a": "b", "a": "b"])
c.addingAttributes(["a": "b", "a": "b", "a": "b"])
c.adding(attributes: ["a": 1, "a": 2, "a": 3])
c.adding(optionalAttributes: ["a": 1, "a": 2, "a": 3])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# @Time:2022/1/22 17:30
# @Author: <NAME>(<EMAIL>)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(coResult == RPC_E_CHANGED_MODE) {
// If COM was previously initialized with different init flags,
// NFD still needs to operate. Eat this warning.
return TRUE;
}
return SUCCEEDED(coResult);
}
static HRESULT COMInit() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from importlib import import_module
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if isinstance(latin_script, (list, tuple)):
self.latin_script = latin_script
elif isinstance(latin_script, str):
if len(latin_script) < 33:
raise ValueError(
'Wrong latin script characters, available list, '
'tuple or comma separated string, max length 33.'
)
else:
self.latin_script = latin_script.split(',')
else:
self.latin_script: Iterable[str] = (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
print(midi_to_freq(69))
print(midi_to_freq(60))
print(midi_to_freq(105))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
copied to the main directory of your project and named setup_git.py."""
import os
import os.path
os.system(os.path.join("tools", "dev_tools", "git", "setup_git.py"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo -e "\n \n*******************************************************************************************************************"
echo -e "Kubless installation completed"
echo -e "*******************************************************************************************************************"
tput setaf 2
echo -e "\n\n"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Deploying documentation"
else
success "Not building master branch. Skipping deploy."
exit 0
fi
if [ -z "$GITHUB_TOKEN" ]; then
error "Environment variable GITHUB_TOKEN does not exist. Stopping deploy."
exit 1
fi
npm run gh-pages
| ise-uiuc/Magicoder-OSS-Instruct-75K |
template:Function = () => {
return "hello world";
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public static HtmlString RenderChecked(this object model, string property)
{
if ((bool)model.Reflection().GetPropertyValue(property))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$form->addElement('text', 'sk_email', array(
'label' => 'Sidekick API account e-mail',
'value' => pm_Settings::get('sk_email'),
'required' => true,
'validators' => array(
array('NotEmpty', true),
),
));
$form->addElement('password', 'sk_password', array(
'label' => 'Password',
'description' => '',
'required' => true,
'validators' => array(
array('StringLength', true, array(5, 255)),
array('NotEmpty', true),
| 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.