seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
// Linkedin: https://www.linkedin.com/in/oscar-garrucho/
// Copyright © 2021 Oscar R. Garrucho. All rights reserved.
//
import SwiftUI
struct SectionView: View {
@State var rotateClockwise: Bool
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public void onUpdate() {
while (creature.getCombatCooldown() > 0) {
creature.decrementCombatCooldown();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
task_f = kwargs['required_task_fields'] if 'required_task_fields' in kwargs else []
proc_f = kwargs['required_proc_fields'] if 'required_proc_fields' in kwargs else []
display_name = kwargs['display_name'] if 'display_name' in kwargs else name
def f(klass):
return klass
return f | ise-uiuc/Magicoder-OSS-Instruct-75K |
// returns (is_root, is_fat)
fn analyze_adt(ty: Ty<'_>, tcx: TyCtxt<'tcx>, visited_types: &mut FxHashSet<Ty<'tcx>>) -> (bool, bool) {
match ty.kind() {
ty::Adt(adt_def, substs) => {
for variant in &adt_def.variants {
let crate_name = tcx.crate_name(variant.def_id.krate).as_str();
let variant_name = variant.ident.name.as_str();
if crate_name == "bronze" && variant_name == "GcRef" {
debug!("found bronze::GcRef in variant {:?} of type {:?}", variant, ty);
if substs.len() == 1 {
match substs.get(0).expect("missing parameter").unpack() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tpuser = os.environ['TPUSER']
tphost = os.environ['TPHOST']
works_cats, years = gen.load_data()
gen.gen_works(works_cats)
gen.gen_timeline(years)
os.system('make html')
os.system('rsync -avz -e "ssh -l %s" output/* %s@%s:~/www/thomaspaine/' % (tpuser, tpuser, tphost))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use robinhood::Client;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Corner case for generating a pattern with no contents
| ise-uiuc/Magicoder-OSS-Instruct-75K |
version='1.0.dev32',
url='https://github.com/aayla-secura/mixnmatchttp',
author='AaylaSecura1138',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.client.delete_rule(Name=self.name)
def schedule(self):
"""
Create or update an existing AWS Cloudwatch event rule with the task as the target.
"""
self._clear_targets()
self._create_rule()
self._add_target()
def unschedule(self):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
links = EthnicGroupByDimension.query.all()
# build a data structure with the links to count unique
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
echo 'Homebrew already installed...'
fi
brew tap farmotive/k8s
| ise-uiuc/Magicoder-OSS-Instruct-75K |
json_res = json.dumps(res_dict)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Err(err)
}
#[inline]
pub fn unexpected_eoi_str<T>(r: &mut dyn CharReader, expected: String) -> Result<T, Error> {
let pos = r.position();
Err(parse_diag!(ParseErrorDetail::UnexpectedEoiOneString {
pos,
expected,
}, r, {
pos, pos => "unexpected end of input",
}))
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Proxied object is located as an attribute named `_wrapped` in proxy object.
"""
@wraps(func)
def _wrapper(self, *args, **kwargs):
name = func.__name__
return getattr(self._wrapped, func.__name__)(*args, **kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, provisioning_host, registration_id, id_scope, symmetric_key):
"""
Initialize the symmetric key security client.
:param provisioning_host: Host running the Device Provisioning Service. Can be found in the Azure portal in the
Overview tab as the string Global device endpoint
:param registration_id: The registration ID is used to uniquely identify a device in the Device Provisioning Service.
The registration ID is alphanumeric, lowercase string and may contain hyphens.
:param id_scope: The ID scope is used to uniquely identify the specific provisioning service the device will
register through. The ID scope is assigned to a Device Provisioning Service when it is created by the user and
is generated by the service and is immutable, guaranteeing uniqueness.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The today() function returns today's date.
today = pyepoch.today()
print("Today's date & time:")
print(today)
# -- TIMEZONE() --
# The timezone() function returns a date with a different timezone.
# timezone() takes two(2) arguments:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
),
(
_('User Info'),
{
'fields': ('user', 'owner')
}
),
(
_('Access Zones'),
{
'fields': ('access_zones',)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def parse(val):
if isinstance(val, str):
return "'" + val + "'"
else:
return val
formatted_options = ', '.join(['%s=%s' % (key, parse(value.get('default'))) for (key, value) in options.items()])
argspec = inspect.getargspec(VizType.clean)
formatted_args = inspect.formatargspec(*argspec)
fndef = 'lambda self, %s, %s: plotter(self,%s, %s)' \
% (formatted_args.lstrip('(').rstrip(')'),
formatted_options, formatted_args[1:].replace('=None', '').rstrip(')'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
Author(s): <NAME>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"host": "arbor",
"database": "celery"
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->root = vfsStream::setup();
mkdir(vfsStream::url('root/vendor/bin'), 0777, true);
mkdir(vfsStream::url('root/bin'));
$this->configuration = $this
->getMockBuilder(Configuration::class)
->disableOriginalConstructor()
->getMock();
$this->configuration
->method('getComposerBinDirectory')
->willReturn(vfsStream::url('root/vendor/bin'));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Unit test for lenet
'''
# pylint: disable=import-error
from src.architectures.lenet import LeNet
def test_lenet():
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
renderEncoder.setFragmentTexture(colorMap, index: TextureIndex.color.rawValue)
for submesh in mesh.submeshes {
renderEncoder.drawIndexedPrimitives(type: submesh.primitiveType,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_eq!(f.is_err(), true);
let f = Font::from_guifont("font:hn");
assert_eq!(f.is_err(), true);
let f = Font::from_guifont("font:h-1");
assert_eq!(f.is_err(), true);
// Font with height zero.
let f = Font::from_guifont("foo:h0").unwrap();
assert_eq!(f.name, "foo");
assert_eq!(f.height, DEFAULT_HEIGHT);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# "License") as published by the Apache Software Foundation.
#
# 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
| ise-uiuc/Magicoder-OSS-Instruct-75K |
posibleMove = copyActualGame.posibleMove()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yield SubmissionMustFail(pages.Guess, {"guess": invalid_guess})
yield (pages.Guess, {"guess": 9})
assert self.player.payoff == Constants.jackpot
assert 'you win' in self.html
else:
yield (pages.Guess, {"guess": 10})
assert self.player.payoff == 0
assert 'you did not win' in self.html
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"dwana\u015Bcie ",
"trzyna\u015Bcie ",
"czterna\u015Bcie ",
"pi\u0119tna\u015Bcie ",
"szesna\u015Bcie ",
"siedemna\u015Bcie ",
"osiemna\u015Bcie ",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h1>Account</h1>
<Vertical>
<label style={{ fontWeight: "bold" }}>Email</label>
<span>{userEmail}</span>
</Vertical>
<VerticalSpacer space={20} />
<Button type="primary" onClick={onLogout}>
Logout
</Button>
</Segment>
);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return f"<{self.__class__.__name__}: {str(self)}>"
default_beacon_block_body = BeaconBlockBody.create()
TBaseBeaconBlock = TypeVar("TBaseBeaconBlock", bound="BaseBeaconBlock")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# proxy module
from __future__ import absolute_import
from chaco.datamapper import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Uncomment on Mac OS
# brew cask install google-chrome
# brew install python3
# installs selenium for python3 and chromedriver for selenium
sudo -H pip3 install selenium
wget https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip -O /tmp/chromedriver.zip
sudo unzip /tmp/chromedriver.zip -d /usr/local/bin
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$action = new \ReflectionMethod(
$route->getFullyQualifiedController(),
$route->getAction(),
);
if ($action->getNumberOfParameters()) {
$argc = $action->getNumberOfRequiredParameters();
$argv = $this->getParsedArguments($path, $route);
foreach ($action->getParameters() as $parameter) {
if (!isset($argv[$parameter->getName()]) || !$parameter->hasType()) {
if ($argc) {
// @todo Throw too few arguments exception?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
inputs = fin['inputs'][:]
output = fin['output'][:]
if len(inputs.shape) == 2:
inputs = np.expand_dims(inputs, axis=-1) # [N, T, 1]
output = output.reshape(-1).astype(int)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
switch self {
case ._BOX_HEIGHT(let selection): return selection.realValue
case ._BOX_ROTATE_ANGLE(let selection): return selection.realValue
case ._BOX_SLANT_ANGLE(let selection): return selection.realValue
case ._BOX_WIDTH(let selection): return selection.realValue
}
}
public var integerValue: SDAI.INTEGER? {
switch self {
case ._BOX_HEIGHT(let selection): return selection.integerValue
case ._BOX_ROTATE_ANGLE(let selection): return selection.integerValue
case ._BOX_SLANT_ANGLE(let selection): return selection.integerValue
case ._BOX_WIDTH(let selection): return selection.integerValue
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./scripts/vscode.sh;
./scripts/npm.sh;
./scripts/docker.sh;
./scripts/macos.sh;
./scripts/iterm.sh;
./scripts/zsh.sh
echo "You are ready to code master..."
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@with_trailing_slash
@expose('jinja:allura:templates/webhooks/create_form.html')
def index(self, **kw):
if not c.form_values and kw:
# Executes if update_webhook raises an error
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Injectable()
export class JwtStrategy extends PassportStrategy(Strategy) {
constructor(private propietarioService: PropietarioService) {
super({
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
ignoreExpiration: false,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestGlobalSearchV2():
"""
Integration Test Class for GlobalSearchV2
"""
@classmethod
def setup_class(cls):
if os.path.exists(config_file):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Themes.setColorScaleOnMatrix(backgroundColor, colorMatrix);
backgroundColorMatrixFilter = new ColorMatrixColorFilter(colorMatrix);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub filters: Vec<LogFilter>,
pub timestamps: bool,
}
impl Default for GuildConfig {
fn default() -> Self {
GuildConfig {
prefix: "!".to_string(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
numbers = list(map(int, numbers))
def solve(length):
for c in combinations(numbers, length):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from extraction.runnables import Extractor, RunnableError, ExtractorResult
import extractor.csxextract.interfaces as interfaces
import extractor.csxextract.config as config
import extractor.csxextract.filters as filters
import defusedxml.ElementTree as safeET
import xml.etree.ElementTree as ET
import xml.sax.saxutils as xmlutils
import extraction.utils
import tempfile
import requests
import re
import os
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import ISchemaRegistryEncoding from './ISchemaRegistryEncoding';
describe('SchemaRegistryEncoder', () => {
const encoder: IMessageEncoder = new SchemaRegistryEncoder();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use result_keeper::{create_result_keeper, IResultKeeper, PlayerStanding, ResultKeeper};
mod player;
mod result_keeper;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
error!("Failed to get the path to the config file");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Web;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def process_request(self, request):
conf.reload_maybe()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PLLI2S = 0x04,
#endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F401xC || STM32F401xE || STM32F411xE */
#if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE)
RTC = 0x08,
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[ForeignKey("Product")]
public int? ProductId { get; set; }
public Product Product { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__tablename__ = "mail"
id = Column(Integer, primary_key=True)
# 发送者用户ID
from_id = Column(Integer, ForeignKey(
"user.id", ondelete="CASCADE"), index=True, nullable=False)
# 接收者用户ID
to_id = Column(Integer, ForeignKey(
"user.id", ondelete="CASCADE"), index=True, nullable=False)
# 发送时间
time = Column(DateTime, nullable=False, index=True)
# 内容
text = Column(Text)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>Mizux/adventofcode
#!/usr/bin/env python3
SLIDE_WINDOWS = 3
f = open("input.txt", "r")
window = []
for i in range(SLIDE_WINDOWS):
window.append(int(f.readline()))
count = 0
for cur in f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from Layers.layers import DenseEmbeddingNet, QNet, CNNEmbeddingNet, PolicyNet, ValueNet
| ise-uiuc/Magicoder-OSS-Instruct-75K |
struct Q<T where T: a {
{
{
{
}
{
{
{
{
}
}
}
{
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
", ".join("{}={}".format(key, self.__dict__[key]) for key in vars(self)
if not key.startswith("_") and not key.isupper() and "token" not in key)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
username: $PYPI_USERNAME
password: <PASSWORD>
EOF
devpi push python-mbedtls==$TRAVIS_TAG pypi:pypi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
request.Content = requestContent;
using (var response = await httpClient.SendAsync(request, HttpCompletionOption.ResponseHeadersRead))
{
response.EnsureSuccessStatusCode();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
get_friends_data_index,get_moive100k, \
get_twittermovie_matrix, get_moive1m
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python download.py --start-time 01-01-2017 --end-time 31-12-2017 --conf ./reddit_config.json --submissions raw_dataset/2017_submissions.json --output raw_dataset/2017_submissions
python download.py --start-time 01-01-2018 --end-time 31-12-2018 --conf ./reddit_config.json --submissions raw_dataset/2018_submissions.json --output raw_dataset/2018_submissions
python download.py --start-time 01-01-2019 --end-time 31-12-2019 --conf ./reddit_config.json --submissions raw_dataset/2019_submissions.json --output raw_dataset/2019_submissions
python download.py --start-time 01-01-2020 --end-time 31-12-2020 --conf ./reddit_config.json --submissions raw_dataset/2020_submissions.json --output raw_dataset/2020_submissions
# copy all submission-pickles into a single folder
mkdir raw_dataset/2017_2020_submission_pickles/
cp raw_dataset/2017_submissions/* raw_dataset/2017_2020_submission_pickles/
cp raw_dataset/2018_submissions/* raw_dataset/2017_2020_submission_pickles/
cp raw_dataset/2019_submissions/* raw_dataset/2017_2020_submission_pickles/
cp raw_dataset/2020_submissions/* raw_dataset/2017_2020_submission_pickles/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Get the number of predicates for this match pattern step.
*
*
* @return the number of predicates for this match pattern step.
*/
public final int getPredicateCount()
{
return (null == m_predicates) ? 0 : m_predicates.length;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
###################################################################################
#Execute command to create stack with VPC and all other required information....
###################################################################################
echo "Executing Create Stack....."
aws cloudformation create-stack --stack-name ${stack_name} --template-body file://../cloudformation/csye6225-cf-networking.json --capabilities=CAPABILITY_NAMED_IAM
if [ $? -eq 0 ]; then
echo "Waiting to create gets executed completely...!"
else
echo "Error in Create Stack...Exiting..."
exit 1
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: pygame',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
internet_rules = filter(lambda x: x.target_zone == 'internet', rule_list)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
num_nodes=args.nodes,
channels=args.channels,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <fstream>
#include <algorithm>
#include <vector>
namespace randest {
template<typename OutputT>
class data_provider {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Publisher
case publisher = "pnsort"
/// Patent cited by
case patentCitedBy = "pcb"
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def generate_big_rules(L, support_data, min_conf):
"""
Generate big rules from frequent itemsets.
Args:
L: The list of Lk.
support_data: A dictionary. The key is frequent itemset and the value is support.
min_conf: Minimal confidence.
Returns:
big_rule_list: A list which contains all big rules. Each big rule is represented
as a 3-tuple.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h6 class="m-0 font-weight-bold text-primary">Infomações</h6>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Compare query result to expected data
if (!Models.isomorphic(actualStatements, expectedStatements)) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# print (identities[pid])
# Save meta information into a json file
meta = {'name': 'Pittsburgh_'+self.scale,
'identities': identities, 'utm': utms}
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.iter()
.map(|node| libojo::Change::DeleteNode { id: node_id(&node) });
let edges = self
.added_edges
.iter()
.map(|(src, dest)| libojo::Change::NewEdge {
src: node_id(&src),
dest: node_id(&dest),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.http import HttpResponse
def index(request):
return HttpResponse("<h1> This is the music app homepage</h1>") | ise-uiuc/Magicoder-OSS-Instruct-75K |
__abstract__ = True
def serialize(self, includes=None):
return {c: getattr(self, c) for c in inspect(self).attrs.keys()}
def to_json(self, includes=None):
return json.dumps(self.serialize(includes))
@classmethod
def serialize_list(cls, l, includes=None):
return [m.serialize(includes) for m in l]
@classmethod
def list_to_json(cls, l, includes=None):
return json.dumps(cls.serialize_list(l, includes))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace eidos.ml.exception
{
public class EidosException : Exception
| ise-uiuc/Magicoder-OSS-Instruct-75K |
VERSION = (0, 0, 1, "alpha", 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const score = {control, entry, need, time, scale};
return this.write.client.changeScore({id, userId, score});
}
@httpPut('/:id/publish', AuthMiddleware)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl Stopwatch for Instant {
fn check_and_reset(&mut self) -> Duration {
let now = Instant::now();
let elapsed = now.duration_since(*self);
*self = now;
return elapsed;
}
}
pub fn measure<F, Res>(mut f: F) -> (Res, Duration)
where
F: FnMut() -> Res,
{
let start = Instant::now();
let result = f();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# coding: utf-8
def is_bool(var):
return isinstance(var, bool)
if __name__ == '__main__':
a = False
b = 0
print(is_bool(a))
print(is_bool(b))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
download_url="https://releases.hashicorp.com/vault/${HVAC_VAULT_VERSION}/vault_${HVAC_VAULT_VERSION}_linux_amd64.zip"
fi
download_file="vault_${HVAC_VAULT_LICENSE}_${HVAC_VAULT_VERSION}.zip"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestFuncNameError(ExamException):
"""
Error for when test function name is wrong
"""
class TestClassNameError(ExamException):
"""
Error for when test class name is wrong
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
con.create_market_sell_order('USD/CAD', 20)
con.create_market_sell_order('EUR/USD', 10)
order = con.open_trade(symbol='USD/CAD', is_buy=False,
is_in_pips=True,
amount=10, time_in_force='GTC',
stop=-9, trailing_step =True,
order_type='AtMarket', limit=9)
con.close_trade(trade_id=tradeId, amount=1000)
con.close_all_for_symbol('USD/CAD')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self._timestamps
| ise-uiuc/Magicoder-OSS-Instruct-75K |
k0 = 8.5
N = 64
w = np.ones(N)
x = np.cos(2*np.pi*k0/N*np.arange(-N/2,N/2))
mX, pX = DFT.dftAnal(x, w, N)
y = DFT.dftSynth(mX, pX, N)
plt.figure(1, figsize=(9.5, 5))
plt.subplot(311)
plt.title('positive freq. magnitude spectrum in dB: mX')
plt.plot(np.arange(mX.size), mX, 'r', lw=1.5)
plt.axis([0,mX.size, min(mX), max(mX)+1])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if recording is None:
raise ValueError("The recording cannot be None when computing snr.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return [UserMock];
}
findById(id: string) {
return UserMock;
}
findByUserName(username: string) {
return UserMock;
}
add(data: ICreateUser) {
return UserMock;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
],
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'tundrah',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.__api_handler = api_handler
super().__init__(*args, **kwargs)
async def set_activation_status(self, status: int):
pass
@property
async def activation_code(self):
pass | ise-uiuc/Magicoder-OSS-Instruct-75K |
def VerifyReleaseChannel(options):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.Where(x => x.Id != context.Entity.Id)
.Where(x => x.Name == context.Entity.Name)
.AnyAsync(cancellationToken);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LOG=examples/ade20k/googlenet/log/test.log
GLOG_logtostderr=1 ./build/tools/caffe test \
--model=./examples/ade20k/googlenet/train_val.prototxt \
--weights=./examples/ade20k/googlenet/googlenet_iter_10000.caffemodel \
--iterations=1611 2>&1 | tee $LOG $@
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@discardableResult func insert(_ cellmodels: [CellModel], atIndex index: Int) -> Self {
guard cellmodels.isNotEmpty else {
return self
}
let start = min(count, index)
let _ = self.cellmodels.insert(cellmodels, atIndex: start)
let affectedCellmodels = Array(self.cellmodels[start..<count])
setupCellmodels(affectedCellmodels, indexFrom: start)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_simple_filter(fields):
class Filter(filters.Filter):
def __init__(self, *args, **kwargs):
for name, field in fields.items():
self.fields[name] = field
super(Filter, self).__init__(*args, **kwargs)
return Filter
| ise-uiuc/Magicoder-OSS-Instruct-75K |
updateDomain()
closeDomain()
exit()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
background_tasks.add_task(show_job, job_id=item.job_id, bright=item.bright, interval=item.interval)
return item
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
dieharder -d 209 -g 5 -S 1124466185
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param length: Length of the unsigned bitfield in bits.
:returns: The largest value the unsigned bitfield can hold.
:raises PythonRuntimeException: If unsigned bitfield with wrong length has been specified.
"""
_checkBitFieldLength(length, MAX_UNSIGNED_BITFIELD_BITS)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else {
row = TextRow() {
$0.placeholder = field.placeholder
}
}
if let row = row {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
run_temp_scheduler() | 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.