seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
return classPropInfo;
}}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (i, _) in curr.iter().enumerate() {
let var_name = var_names[i];
if let Some(off) = reference.offsets.get(var_name) {
let val = ref_curr[*off];
print!("{}", val);
} els... | ise-uiuc/Magicoder-OSS-Instruct-75K |
minivec_eq_impl! { [] MiniVec<T>, MiniVec<U> }
minivec_eq_impl! { [] MiniVec<T>, [U] }
minivec_eq_impl! { [] MiniVec<T>, &[U] }
minivec_eq_impl! { [] MiniVec<T>, &mut [U] }
minivec_eq_impl! { [] &[T], MiniVec<U> }
minivec_eq_impl! { [] &mut [T], MiniVec<U> }
minivec_eq_impl! { [] MiniVec<T>, alloc::vec::Vec<U> }
minive... | ise-uiuc/Magicoder-OSS-Instruct-75K |
LOG=$(echo $0 | sed 's/\.sh/\.log/g')
zgrep 'Invalid user' /var/log/auth.log* | sed 's/.*user \(.*\) from.*/\1/' | sort | uniq -c | sort -nr > $LOG
chown www-data:www-data $LOG
chmod 0640 $LOG
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = pkgutil.get_data(__package__, "VERSION").decode("ascii").strip()
version_info = tuple(int(v) if v.isdigit() else v for v in __version__.split("."))
if sys.version_info < (3, 6):
sys.exit("os-aiohttp-utils %s requires Python 3.6+" % __version__)
del pkgutil
del sys
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def index():
'''
View root page function that returns the index page and its data
'''
#method to get the news
entertainment_news = get_news_category('entertainment')
business_news = get_news_category('business')
health_news = get_news_category('health')
science_news = get_news_category... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .score import cv_score
from .pipeline import Pipeline
from .hyper import clf_hyper_fit
from .distribution import LogUniformGen, log_uniform
from .utils import evaluate | ise-uiuc/Magicoder-OSS-Instruct-75K |
e_min, e_max = energy_range
energy = MapAxis.from_energy_bounds(e_min, e_max, n_bins).edges
weights = spectrum(energy) * exposure(energy)
weights /= weights.sum()
psf_value = self.evaluate(energy=energy)
psf_value_weighted = weights[:, np.newaxis] * psf_value
r... | ise-uiuc/Magicoder-OSS-Instruct-75K |
dist_mat: format:DataFrame; rows:samples; columns:features
Distance: format:string; The distance method you would like to use,just like "correlation".
Method: format:string; The cluster method you would like to use,just like "complete".
n_cluster: format:integer; This is the number of cl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# This function combines the features of the previous two:
#fe.elastic_constants_batch_calculate(sws=sws0,bmod=B0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
config.component_('WMAgentEmulator')
# WMAgents:
config.WMAgentEmulator.componentDir = config.General.workDir + '/WMAgentEmulator'
config.WMAgentEmulator.namespace = "WMQuality.Emulators.WMAgents.WMAgentEmulator"
config.WMAgentEmulator.pollInterval = 10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
internal SlmGetLifecycleRequestDescriptor(Action<SlmGetLifecycleRequestDescriptor> configure) => configure.Invoke(this);
public SlmGetLifecycleRequestDescriptor()
{
}
internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetLifecycle;
protected override HttpMethod HttpMethod => ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
</nav>
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@After()
public resetProcessor():void {
this.processor = null;
}
@Before()
public initProcessor():void {
this.processor = new DefaultWildcatProcessor();
this.processor.setArchetypePath(utils.ARCHETYPE_TEST_FOLDER);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
go fmt github.com/codetojoy/strategy
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param state: a state object.
'''
pass
def on_game_over(self, state):
'''Receives the state from server, when the server acknowledges a
winner for the game.
Consult the documentation see which information comes within the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_min_digits():
digits_2 = PasswordRequirements(min_digits=2)
assert not digits_2.check("abc")
assert not digits_2.check("abc1")
assert digits_2.check("abc12")
assert digits_2.check("abc123")
def test_special_characters():
special_1 = PasswordRequirements(min_special=1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def version_context_processor(request):
"""
Version context processor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x=x[int(result-1)::int(result)]
y=y[int(result-1)::int(result)]
if z is not None:
z=z[int(result-1)::int(result)]
if w is None:
return x,y,z
else:
return x,y
#if we get to this point in function, it means z and w are both not... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by BerryMelon on 28/11/2016.
// Copyright © 2016 berrymelon. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// FIXME: TSC should provide a better utility for this.
if let absPath = try? AbsolutePath(validating: sdkPath) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
self.name = name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self,session,options):
"""Constructor"""
self.options = options
self.session = session
self.engine = "unimrcp:azurebot_mrcp-v2"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <reference path="src/main/ts/handlebarsJQueryStringTemplateFactory.ts" />
/// <reference path="src/main/ts/handlebarsSelectorHelper.ts" />
//grunt-end | ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Entry point to Azure @(serviceName) resource management.
*/
public final class @(className)@(Model.ExtendsFrom) {
@foreach (var memberVar in Model.DeclareMemberVariables)
{
@: @memberVar
}
/**
* Get a Configurable instance that can be used to create @(className) with optional configuration.
*
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
private readonly expensiveValidation: boolean;
/**
* Caller must ensure provided BTrees are not modified.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IN
rm ${inputdbA}
# ************************************
# GOOD USER AGENTS - Create and Insert
# ************************************
printf '%s\n' "${start1}" >> ${tmpapache1}
while IFS= read -r LINE
do
printf '%s"%s%s%s" %s\n' "BrowserMatchNoCase " "^(.*?)(\b" "${LINE}" "\b)(.*)$" "${action1}" >> ${tmpapache1}
don... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//send(serConn, "CTask", sizeof("CTask") + 1, NULL);
}
CTask::~CTask(void)
{
}
int CTask::getID()
{
return m_ID;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod aec;
pub mod engine;
pub mod defs;
pub mod senate2015;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Set the syspath
f_name = "main.py"
a_path = str(os.path.abspath(__file__))
new_sys_entry = a_path[0:len(a_path) - len(f_name)]
print("Add " + new_sys_entry + "to sys path")
sys.path.insert(0, new_sys_entry)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
center - ortho1,
center - ortho2,
]]
def surfaceFromNormals(normals):
valid_indices = ~np.isnan(normals)
w, h, d = normals.shape
nx = np.transpose(np.hstack((
normals[:,:,0].ravel(),
normals[:,:,0].ravel(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// SPDX-License-Identifier: MIT
/*
* File: src/math/copysign.rs
*
* The copysign function.
*
* Author: HTG-YT
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
*/
#[no_mangle]
pub extern "C" fn copysign(x: f64, y: f64) -> f64 {
libm::copysign(x, y)
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public sealed partial class AutoCompleteTextBox
{
/// <summary>
/// Algorithm implementation for AutoCompleteTextBox that scores suggestions from the dictionary
/// based on the Damerau-Levenshtein distance.
/// </summary>
public class DamerauLevenshteinDistance ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public const string AssemblyPath = nameof(AssemblyPath);
public const string DbOptions = nameof(DbOptions);
public const string ModelUpdateOptions = nameof(ModelUpdateOptions);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
required=True)
return parser
parser = parse_args()
args = parser.parse_args()
keys = []
length = len(cf.set_env_yamls().items())
index = length / 3
index = round(index)
if args.envs_chunk == str(1):
envs = range(0, index)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class InvalidMessage(Exception):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
help='Retrieve tweets made by the given handle'
)
group.add_argument(
'--search',
help='Search for tweets with the given query'
)
args = parser.parse_args()
if args.user:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.weights = torch.zeros(_n_input, 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pot = SPRKKRPotential(Cu, "Cu_scf.pot_new", *glob.glob("*PHAGEN.pot"))
nplanes = 3
cluster = hemispherical_cluster(Cu, planes=nplanes,
emitter_plane=nplanes-1)
cluster.absorber = get_atom_index(cluster, 0, 0, 0)
calc = MSSPEC(folder="calc")
calc.set_atoms(cl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from nupicter import filehandler
except (ImportError, IOError):
filehandler = MissingModule("filehandler", urgent=1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
__all__ = ["EXPLICIT_NULL"]
class _ExplicitNullClass:
"""
Magic sentinel value used to disambiguate values which are being
intentionally nulled from values which are `None` because no argument was
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.map(|s| unsafe { RedoPath::from_os_str_unchecked(s) })
}
/// Return the shortest path name equivalent to path by purely lexical
/// processing.
///
/// See [`normpath`] for details.
pub fn normpath(&self) -> Cow<RedoPath> {
match normpath(self) {
Cow::Borrowed(p... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Added = 0,
Removed = 1,
}
export interface AdapterEvent {
adapter: Adapter;
eventType: AdapterFactoryEventType;
}
export declare function adapterFactoryObservable(adapterFactory: AdapterFactory): Observable<AdapterEvent>;
export declare function openAdapterObservable(adapter: Adapter, openOptions?: Adap... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Internal GitHub id
self.id = data.get('id', 0)
# Who create
self.user = None
if 'user' in data:
self.user = User(data['user'])
# Body
self.body = data.get('body', '')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
free(img->data);
img->data = newData;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
amSegment: boolean = true;
@HostBinding('class.am-segment-disabled')
get amDisabled(): boolean {
return this.disabled;
}
constructor() { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
which calculates the payroll for each employee and prints the results.
Notice how the Employee base class doesn’t define a .calculate_payroll() method.
This means that if you were to create a plain Employee object and pass it to the PayrollSystem, then you’d get an error.
'''
manager = employees.Manager(1, '<NAM... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@mark.parametrize('return_code, pretend, world', [(b'0', False, False), (b'0', True, False),
(b'0', True, True), (b'1', False, False),
(b'1', False, True), (b'1', True, False),
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
update(voteTally: VoteTally) {
this.votesCast = voteTally.total_activated_stake / 10000
this.votes = (voteTally.producers || []).map((producer: VotedProducer) => {
return {
producer: producer.owner,
votePercent:
voteTally.total_votes > 0 ? (producer.total_votes / voteTally.tot... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.experiment = ExperimentFactory()
self.admin = UserFactory(is_staff=True, is_superuser=True)
self.user = UserFactory()
def test_record_creates_activities(self):
assert ActivityLog.objects.count() == 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import io.github.happytimor.mybatis.helper.core.wrapper.HavingWrapper;
/**
* @author chenpeng
*/
public interface DefaultHavingWrapper<T> extends HavingMethod<T> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public class Bug_1308_get_dependent_types_should_not_return_null
{
[Fact]
public void documentmapping_dependenttypes_should_not_include_nulls()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
subprocess.run(["cmake", "."])
subprocess.run(["make"])
print("running the bench_strawman_jl_varying_num_dim")
k = 41
# 41 for 100(k), 44 for 200(k)
num_records = 100
size_of_each_dimension = 10
print("running the case for " + str(num_records) + " entries, with k value " + str(k) + ", and each dimension has size " + ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# связываем сокет с хостом и портом
binding_sock.bind(('', 9090))
# запускаем режим прослушивания с максимальным
# количеством подключений в очереди 1
binding_sock.listen(1)
# принимаем подклюсение >> кортеж(новый сокет; адрес клиента)
sock, address = binding_sock.accept()
# порционное получение данных от клиента
whil... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'export_saved_form_data_entries',
)
# *****************************************************************************
# *************************** Form handler views ******************************
# *****************************************************************************
entries_permissions = [
'db_store.a... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#filename = r'C:\\Users\\rslqulab\\Desktop\\zkm\\2017_pyEPR_data\\\\/2017_08_Zlatko_Shyam_AutStab/2 pyEPR/2 pyEPR_20170825_170550.hdf5'
epr = QuantumAnalysis(filename)
#result = epr.analyze_variation('1', cos_trunc = 8, fock_trunc = 7)
epr.analyze_all_variations(cos_trunc = None, fock_trunc = 4) #... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn foo(b: u8) -> u32 { b as u32 }
#[cfg(rpass1)]
fn bar() { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[derive(Deserialize, Serialize, QueryableByName)]
pub struct SpeechData {
#[sql_type = "Nullable<Bigint>"]
pub total: Option<i64>,
#[sql_type = "Nullable<Array<Jsonb>>"]
pub speeches: Option<Vec<Speech>>,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace SwaggerNet.Models
{
public class Examples : Dictionary<string, object>
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm -f footer.h2m
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plot(model, to_file='models/' + model_name + '.png', show_shapes=True, show_layer_names=False)
# Dict to save the parameters
dict = {
'correction_dist':correction_dist,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[-f.y_penalty_area_length * 0.5, -f.y_penalty_area_length * 0.5],
'white') # opp penalty
ax.plot([f.x_own_groundline + f.x_penalty_area_length,
f.x_own_groundline + f.x_penalty_area_length],
[-f.y_penalty_area_length * 0.5, f.y_penalty_area_length * 0.5],
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// From "sass-spec/spec/non_conformant/errors/loop-for/numeric/lower_expand.hrx"
// Ignoring "lower_expand", error tests are not supported yet.
// From "sass-spec/spec/non_conformant/errors/loop-for/numeric/upper_eval.hrx"
// Ignoring "upper_eval", error tests are not supported yet.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
oscillator.amplitude = random(0.5, 1)
oscillator.frequency = random(220, 880)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
df5_new = pd.concat([df_ID,df5_repeat],axis=1)
df5_new.columns=['externalId','displayName','metaType','displayValue']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>kad99kev/FGTD-Streamlit
import streamlit as st
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertGreater(de_tokens, ch_tokens)
if __name__ == '__main__':
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public A addToLimits(java.lang.String key,io.kubernetes.client.custom.Quantity value);
public A addToLimits(java.util.Map<java.lang.String,io.kubernetes.client.custom.Quantity> map);
public A removeFromLimits(java.lang.String key);
public A removeFromLimits(java.util.Map<java.lang.String,io.kubernetes.c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
EuDX is the fiber tracking algorithm that we use in this example.
The most important parameters are the first one which represents the
magnitude of the peak of a scalar anisotropic function, the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super().__init__()
# dynamic, based on tokenizer vocab size defined in datamodule
self.input_dim = input_vocab_size
self.output_dim = output_vocab_size
self.enc_emb_dim = emb_dim
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lonbl_idx = (np.abs(lon_temp-lonbl)).argmin()
lontr_idx = (np.abs(lon_temp-lontr)).argmin()
if lonbl_idx == lontr_idx:
sys.exit('lon values are not different enough, they must have relate to different grid points')
elif lontr_idx > len(lon_temp)/2 and lonbl_idx <= len(lon_temp)/2:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
router = web.RouteTableDef()
def setup_routes_events(app):
app.add_routes(router)
@router.get("/events", name='events')
@aiohttp_jinja2.template('events/index.html')
async def event_index(request):
await raise_permission(request, permission=None)
cursor = get_db().conn.cursor()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fi
outputPath=${HOME}/experiments/date
outputFilePrefix=${outputPath}/${dtype}/${model}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sum.reduce();
let magnitude = sum.magnitude();
if magnitude > max {
max = magnitude;
}
}
}
}
max
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import static org.junit.Assert.*;
public class ConnectionClosedEventTest {
private ConnectionClosedEvent connectionClosedEvent;
private ConnectionClosedEvent connectionClosedEvent2;
private ConnectionClosedEvent connectionClosedEvent3;
@Before
public void setUp() throws Exception {
connec... | ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Take an umbrella") if __import__("re").match(r"^y$", input("Is it raining? "), __import__("re").IGNORECASE) else print("Have a nice day")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
headers: new HttpHeaders({
'Content-Type': 'application/json'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
trailConfig.py
Description: setting parameters for several runs of algorithm
if you only need to run one time, no need to config these parameters
Parameters:
testNumber: the total number for runing algorithm
testLog: determine whether print the result information or not, true d... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* The strategy to use to detect mutex collisions
*/
mutexStrategy?: SchedulerMutexStrategy;
/**
* Whether to disable any logging
| ise-uiuc/Magicoder-OSS-Instruct-75K |
z = dist.rsample()
action = z.tanh()
log_prob = dist.log_prob(z) - torch.log(1 - action.pow(2) + 1e-7)
log_prob = log_prob.sum(-1, keepdim=True)
return action, log_prob
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.urls import path
app_name = "comments"
urlpatterns = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
StructField("min_rank", IntegerType(), False),
StructField("max_rank", IntegerType(), False),
StructField("avg_rank", FloatType(), False),
StructField("stddev", FloatType(), False),
StructField("variance", FloatType(), False),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
pass
def update(self):
""" Update game object. """
def paint(self, canvas: tk.Canvas):
""" Paint game object. """ | ise-uiuc/Magicoder-OSS-Instruct-75K |
mod ui_margin;
pub use ui_anchor::*;
pub use ui_element::*;
pub use ui_event_manager::*;
pub use ui_layout_calculator::*;
pub use ui_manager::*;
pub use ui_margin::*;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return random_double(generator);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pQ.set_acc(M, pQ.acc(E) + pM.acc(E))
pS.set_acc(Q, pS.acc(S) + pQ.acc(S))
pS.set_acc(E, pS.acc(Q) + pE.acc(Q))
pS.set_acc(M, pS.acc(E) + pM.acc(E))
#print('acc in frame\t{0}\t{1}\t{2}\t{3}'.format(*frames))
#for p in points:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
g: graph object
PARAMETERS (optional)
---------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i, rect in enumerate(rects):
height = text[i]
plt.text(rect.get_x()+rect.get_width()/2, rect.get_height()*1.01, "%s" % height, fontsize=12, ha='center')
size = 3
x = np.arange(size)
total_width = 0.8
n = 3
width = total_width / n
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[inline(always)]
pub fn in_(&self) -> IN_R {
IN_R::new((self.bits & 0xffff_ffff) as u32)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mrb_get_args!(mrb, none);
let mut interp = unwrap_interpreter!(mrb);
let mut guard = Guard::new(&mut interp);
let value = Value::from(slf);
let result = regexp::trampoline::hash(&mut guard, value);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cx,cy = x+0.5*w,y+0.5*h
tmp = 1.5*max(w,h)
cw,ch = tmp,tmp
crop = pv.AffineFromRect(pv.CenteredRect(cx,cy,cw,ch),(256,256))
#print (x,y,w,h,cx,cy,cw,ch,crop)
pvim = pv.Image(img[:,:,::-1]) # convert rgb to bgr
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Models
from product.models.product_entry import ProductEntry
# Serializers
from product.serializers.product_entry_serializer import ProductEntrySerializer
class ProductEntryViewSet(viewsets.ModelViewSet):
queryset = ProductEntry.objects.all()
serializer_class = ProductEntrySerializer
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let log = Logger('middleware:authentication');
export interface SessionContext {
cardstackSession: Session;
}
export default class AuthenticationMiddleware {
authenticationUtils: AuthenticationUtils = inject('authentication-utils', { as: 'authenticationUtils' });
middleware() {
return async (ctxt: Koa.Con... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let rule = quadrilateral_gauss(n);
// Also test that weights are positive
assert!(rule.0.iter().all(|&w| w > 0.0));
// Integrate all monomials of per-dimension degree <= expected polynomial degree that
// can be exactly integrated
for alpha in 0..=expected_polynomial_de... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# response = c.post(
# "/autenticacao/registrar/",
# {
# "username": "T *%¨&%& Acc",
# "password1": "<PASSWORD>",
# "password2": "",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void process_rect(float x, float y, float z[5], float C);
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$pdf->SetLineWidth(4);
$pdf->Polygon([50, 115, 150, 115, 100, 20], 'FD');
$pdf->Output();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Arrange
var user = new User { IsAdmin = true };
var reservation = new Reservation();
// Act
var result = reservation.CanBeCancelledBy(user);
//Assert
Assert.That(result, Is.True);
}
[Test]
public void CanBe... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# THIS IS FOR DENSENET PRETRAINED WITH MLP WITH 1 LAYER AND AVERAGE VOTING -- OUR LOSS
# hdlr = logging.FileHandler(os.path.join(odir_checkpoint, 'densenet_mlp_averagevoting.log'))
# THIS IS FOR DENSENET PRETRAINED WITH MLP WITH 1 LAYER AND AVERAGE VOTING WITH RELU -- OUR LOSS
# hdlr = logging.File... | ise-uiuc/Magicoder-OSS-Instruct-75K |
randomizer = .init()
chip8.randomizer = randomizer
}
override func tearDown() {
| 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.