seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
public protocol ViewModelable: class {
associatedtype MViewModel: ViewModel
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public FooException(String message) {
super(message);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from jsonpatchext.mutators import InitItemMutator # type: ignore
from helmion.helmchart import HelmRequest, HelmChart
from helmion.config import BoolFilter
from helmion.processor import DefaultProcessor
class TestInfo(unittest.TestCase):
def setUp(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Qm[1::2] *= -1
QQm = conv(Q, Qm)
PQm = conv(P, Qm)
if N % 2:
P = PQm[1::2]
else:
P = PQm[::2]
Q = QQm[::2]
N //= 2
return P[0]
def main():
# parse input
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} // namespace mbgl
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._method = None
task.status = State.PENDING
self._requests[task.id] = task
self._request_queue.put_nowait(self._requests[task.id])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function Edit($id) {
$collection = (new MongoDB\Client)->Discografia->Bands;
// $collectionC = (new MongoDB\Client)->FiveDStore->Categories;
// $categories = $collectionC->find();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(n_offspring):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def pixelCoordsToVehicleCoords(self, currentPoint, trackPoint, direction):
dis = self.getDistance(currentPoint, trackPoint)
angle = self.getAngle(currentPoint, trackPoint)
radAngle = math.pi / 2 - math.radians(direction) + angle
vehicleX = dis * math.cos(radAngle)
vehicleY = dis * math.sin(radAngle)
return (vehicleX, vehicleY)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
new Parameter {Name = "/start/path/p1/p2/p3-1", Value = "p1:p2:p3-1"},
new Parameter {Name = "/start/path/p1/p2/p3-2", Value = "p1:p2:p3-2"}
};
var parameterProcessorMock = new Mock<IParameterProcessor>();
var provider = ConfigureParameterStoreConfigurationProvider(parameterProcessorMock, parameters);
provider.Load();
foreach (var parameter in parameters)
{
Assert.True(provider.TryGet(parameter.Value, out _));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
stroke: valid ? toolStyle.valid.stroke : toolStyle.invalid.stroke,
fill: valid ? toolStyle.valid.fill : toolStyle.invalid.fill,
};
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$editInventory = Permission::create(['name' => 'edit_inventory']);
$deleteInventory = Permission::create(['name' => 'delete_inventory']);
$viewStock = Permission::create(['name' => 'view_stock']);
$createStock = Permission::create(['name' => 'create_stock']);
$editStock = Permission::create(['name' => 'edit_stock']);
$deleteStock = Permission::create(['name' => 'delete_stock']);
$viewProduct = Permission::create(['name' => 'view_product']);
$createProduct = Permission::create(['name' => 'create_product']);
$editProduct = Permission::create(['name' => 'edit_product']);
$deleteProduct = Permission::create(['name' => 'delete_product']);
$viewCostumers = Permission::create(['name' => 'view_costumers']);
$createCostumers = Permission::create(['name' => 'create_costumers']);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Moves an entity from ``key_from`` to ``key_to`` while keeping
the history. This is useful to migrate a repository after the
``rcskey_format`` of a field was changed.
TODO: move from mecurial.commands to internal api.#
"""
u = self.hg_ui
repo = hg.repository(u, self.location)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NodeKind::Check | NodeKind::Unwrap | NodeKind::Deref => Prefix::L,
| NodeKind::Not
| NodeKind::Neg
| NodeKind::BitNot
| NodeKind::Member
| NodeKind::Ref => Prefix::R,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
InventorySetupPacket(const InventorySetupPacket &) = default;
InventorySetupPacket(InventorySetupPacket &&) = default;
InventorySetupPacket & operator=(const InventorySetupPacket &) = default;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for line in lines:
line = line.partition('#')[0]
try:
key, value = [x.strip() for x in line.split('=')]
if key == "modules": this.modules.extend(value.split())
if key == "required_env_variables": this.required_env_variables.extend(value.split())
else: this.environment_variables[key] = value
except: continue
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{{$user->name}}
</span>
<span class="pull-right clearfix">
joined {{$user->created_at ->diffForHumans()}}
<button class="btn btn-xs btn-primary">Follow</button>
</span>
</li>
@endforeach
{{$users->links()}}
</ul>
}
}
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var lineGraph = LineGraph<Float,Float>()
lineGraph.addSeries(x1,y1,label: "Plot 1",color: .lightBlue,axisType: .primaryAxis)
lineGraph.addSeries(x, y, label: "Plot 2", color: .orange, axisType: .secondaryAxis)
lineGraph.plotTitle = PlotTitle("SECONDARY AXIS")
lineGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")
lineGraph.plotLabel.y2Label = "Y2-AXIS"
lineGraph.plotLineThickness = 3.0
try renderAndVerify(lineGraph, fileName: fileName)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_set_knownUserList(self):
self.db.set_knownUserList('Bob')
self.assertEqual(self.db.knownUserList, ['Bob'])
self.db.set_knownUserList('Kevin')
self.assertEqual(self.db.knownUserList, ['Bob', 'Kevin'])
def test_set_knownIPList(self):
self.db.set_knownIPList('10.192.2.2')
self.assertEqual(self.db.knownIPList, ['10.192.2.2'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
self.assertTrue(expected_json == test_json)
except AssertionError, e:
# For debugging purposes, write the test AST to a file on failure.
failure_file = \
os.path.join(test_path, 'figure_'+figure_num+'_failed.json')
with open(failure_file, 'w') as failed_json_fp:
failed_json_fp.write(test_json)
self.fail(e)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for sym, adr in ar.token_lookup.items():
print(f"calculating price history for {sym}")
ar.calculate_price_history_in_eth(sym)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import ClayRechartsTooltip from './Tooltip';
import {COLORS} from './config';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
size = var_list[4]
if units is None:
self.add_input(i_var, val)
self.add_output(o_var, val)
else:
self.add_input(i_var, val, units=units)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
import unittest
from checkov.common.checks_infra.registry import Registry
from checkov.common.checks_infra.checks_parser import NXGraphCheckParser
class TestRegistry(unittest.TestCase):
def test_invalid_check_yaml_does_not_throw_exception(self):
current_dir = os.path.dirname(os.path.realpath(__file__))
test_files_dir = current_dir + "/test-registry-data/invalid-yaml"
r = Registry(checks_dir=test_files_dir)
r.load_checks()
def test_valid_yaml_but_invalid_check_does_not_throw_exception(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
throw new ServiceProviderAuthenticationException("Could not decode SAML Response", me);
} catch (org.opensaml.xml.security.SecurityException se) {
throw new ServiceProviderAuthenticationException("Could not decode SAML Response", se);
}
LOG.debug("Message received from issuer: " + messageContext.getInboundMessageIssuer());
if (!(messageContext.getInboundSAMLMessage() instanceof Response)) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
set -ex
cd `dirname $0`
docker build -t ocrnyc/intotheokavango .
docker push ocrnyc/intotheokavango
rm -rf nginx/static
cp -r static nginx/
docker build -t ocrnyc/intotheokavango-nginx ./nginx
docker push ocrnyc/intotheokavango-nginx
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from links import commands as links
from tokens import commands as tokens
VERSION = 'go cli 1.0.0'
@click.group(invoke_without_command=True)
@click.option('--version', is_flag=True, default=False,
help='Show the current version and exit.')
def go_cli(version):
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
simple_route(config, 'socket_io', 'socket.io/*remaining', socketio_service)
config.add_static_view('static', 'static', cache_max_age=3600)
app = config.make_wsgi_app()
return app
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo enviroment created !!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.AlterField(
model_name='image',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FIGURE = '@figure'
SUBPLOT = '@subplot'
LEGEND = '@legend'
VPLOT = '@vplot'
VSSPLOT = '@vssplot'
WPLOT = '@wplot'
PPLOT = '@pplot'
NPLOT = '@nplot'
VEXPORT = '@vexport'
WEXPORT = '@wexport'
PEXPORT = '@pexport'
NEXPORT = '@nexport'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@objc dynamic func doNothing() { }
@objc dynamic func doubleString(string: String) -> String {
string + string
}
@objc dynamic func returnInt() -> Int {
7
}
@objc dynamic func calculate(var1: Int, var2: Int, var3: Int) -> Int {
var1 + var2 + var3
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* The MIT License (MIT)
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# CPU Freq Trace
# Author:<NAME> <<EMAIL>>
# License:Apache v2.0
#!/bin/sh
if [ ! -e $HOME/log ]
then
mkdir $HOME/log
fi
INTERVAL=1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return dll.ReadErrInfo(DevType, DevIndex, CANIndex, pErrInfo)
def ReadCanStatus(self, DevType, DevIndex, CANIndex, pCANStatus):
"""
:param DevType:
:param DevIndex:
:param CANIndex:
:param pCANStatus:
:return:
"""
dll = windll.LoadLibrary('./ECanVci64.dll') # 调用dll文件
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
eventID: Optional[String] = None
eventName: Optional[OperationType] = None
eventVersion: Optional[String] = None
eventSource: Optional[String] = None
awsRegion: Optional[String] = None
dynamodb: Optional[StreamRecord] = None
userIdentity: Optional[Identity] = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>xxao/pero<gh_stars>10-100
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param prob_con: Probabilities of the language-consistent model.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>welsen/steffy_di<filename>src/decorators/override.ts
import MetadataResolver from '../metadata-resolver';
export default function Override(target: Function) {
return MetadataResolver.setToOverride(target);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
cli() # pylint: disable = no-value-for-parameter
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from tensorflow.keras.models import Model
from tensorflow.keras.backend import clear_session
from qkeras import binary
from qkeras import ternary
from qkeras import QActivation
from qkeras import QDense
from qkeras import QConv1D
from qkeras import QConv2D
from qkeras import QSeparableConv2D
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Uploader extends CI_Model
{
public $config;
public function __construct()
{
parent::__construct();
// LIBRARY
$this->config['upload_path'] = './assets/upload';
$this->config['allowed_types'] = 'pdf';
$this->config['max_size'] = MAX_SIZE_FILE_UPLOAD;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fuel = fuel_required(int(line))
result += fuel
while fuel > 0:
fuel = fuel_required(fuel)
if fuel >= 0: # ignore negative fuel requirements
result += fuel
print(result) | ise-uiuc/Magicoder-OSS-Instruct-75K |
from amadeus.reference_data._location import Location
from amadeus.reference_data._locations import Locations
from amadeus.reference_data._airlines import Airlines
from amadeus.reference_data._recommended_locations import RecommendedLocations
class ReferenceData(Decorator, object):
def __init__(self, client):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@Test
public void readProperties() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
phone = input('type phone number format(+551100000000): ')
phone_number = phonenumbers.parse(phone)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import whtranscripts as wht
import requests
def test_parsing():
from_path = wht.Conference.from_path("test/pages/conferences/99975.html")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
("pbeauty", "one", 48),
("pbeauty", "sqrt", 5),
("pbeauty", "square", 10),
("entry", "entry", 46),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>frappe/patches/v13_0/remove_web_view.py
import frappe
def execute():
frappe.delete_doc_if_exists("DocType", "Web View")
frappe.delete_doc_if_exists("DocType", "Web View Component")
frappe.delete_doc_if_exists("DocType", "CSS Class") | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .wrapper import Node, Party, SecureBoostClassifier # noqa :F401
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div id="usa-vectormap" style="height: 350px"></div>
</div> <!-- end card-body-->
</div> <!-- end card-->
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Test all kinds of errors.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import aquests
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
#include <boost/date_time/compiler_config.hpp>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elapsed=60.0,
status_code=200,
found=found,
)
b = r.tobytes()
snapshot.assert_match(b)
assert Report.frombytes(b) == r
@pytest.mark.parametrize(
'raw',
[
b'',
b'{',
b'{"pageid": 42',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
player1 = Play("Andula")
player1.print_name()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
size = self.indysize,
mode = change_mode,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
offset = offset,
outputImageDirectory = outputImageDirectory,
outputAnnotationDirectory = outputAnnotationDirectory)
def reduceImageDataPointByRoi(self, imagePath = None, annotationPath = None, offset = None, outputImageDirectory = None, outputAnnotationDirectory = None):
"""
Group an image's bounding boxes into Rois and create smaller images.
Args:
imagePath: A string that contains the path to an image.
annotationPath: A string that contains the path to an annotation.
offset: An int that contains the offset.
outputImageDirectory: A string that contains the path where the images
will be stored.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
"""Web Routes."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Ok(output)
}
fn remove(&mut self, key: Key) -> PersistResult<()> {
debug!(
"Removing publication with key {:?}. Current state of loaded messages: {:?}",
key, self.loaded
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import UIKit
import SwiftyBeaver
import CoreData
let log = SwiftyBeaver.self
@UIApplicationMain
| ise-uiuc/Magicoder-OSS-Instruct-75K |
argmax = x.argmax()
if argmax != target:
# swap
max_T = copy.deepcopy(x[0, argmax])
x[0, argmax] = x[0, target]
x[0, target] = max_T
return x
def __call__(self, idx:int, target:int) -> Tensor:
# idx is order of img in dataset
# target is label of class, isn't data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// op: "",
/// more: "".into(),
/// }.exit_value(), 1);
/// ```
pub fn exit_value(&self) -> i32 {
match *self {
Error::Io { .. } => 1,
Error::Parse { .. } => 2,
Error::FileNotFound { .. } => 3,
Error::WrongFileState { .. } => 4,
Error::FileParsingFailed { .. } => 5,
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var fileName = $"{Guid.NewGuid().ToString()}.txt";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
grep -oP '(?<=^<li>\d\d:\d\d Uhr - <a href=")/[^"]+' | \
awk '{ sub(/\.html/,".json"); print "https://tagesschau.de/api2" $0 }' \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void WhenIUseCzechAdapter_ThenISeeTheRightTitle()
{
Assert.Equal("Czechify!", _adapter.Title);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
0
}
}
#[doc = "Reader of field `CV`"]
pub type CV_R = crate::R<u32, u32>;
#[doc = "Write proxy for field `CV`"]
pub struct CV_W<'a> {
w: &'a mut W,
}
impl<'a> CV_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u32) -> &'a mut W {
self.w.bits = (self.w.bits & !0x00ff_ffff) | ((value as u32) & 0x00ff_ffff);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @return void
*/
public function up()
{
Schema::create('hosollvt', function (Blueprint $table) {
$table->increments('id');
$table->string('macanbo', 50);
$table->date('ngaytu')->nullable();
$table->date('ngayden')->nullable();
$table->string('quanham', 100)->nullable();
$table->string('chucvu', 100)->nullable();
$table->boolean('qhcn')->default(0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
constructor(
private readonly projectMemberManager: ProjectMemberManager,
private readonly projectSchemaResolver: ProjectSchemaResolver,
) {}
async members(
parent: Project,
args: ProjectMembersArgs,
context: ResolverContext,
): Promise<readonly ProjectIdentityRelation[]> {
const projectScope = await context.permissionContext.createProjectScope(parent)
const verifier = context.permissionContext.createAccessVerifier(projectScope)
if (!(await verifier(PermissionActions.PROJECT_VIEW_MEMBER([])))) {
return []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Column({unique: true})
@IsNotEmpty()
@MaxLength(15)
name!: string;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#列表处理
list=[] #初始化二维列表
with open("list.txt", "r", encoding="utf-8") as f:
for line in f.readlines(): #依次读取每行
if line.startswith('#') is False:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
if (this.Project == null)
return false;
return this.Project.IsSavable;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by Tyler Thompson on 11/11/18.
// Copyright © 2021 WWT and Tyler Thompson. All rights reserved.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export class PugeventService {
private API = '/api/1';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(definitions.user_data_file, 'r') as f:
for line in f:
user_data = user_data + line
f.close()
except:
print("Error reading user-data file")
if definitions.instance_class == 'notebook':
instances = ec2.create_instances(ImageId=definitions.ami_id, MinCount=1, MaxCount=1,
BlockDeviceMappings=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
direction = deltas[where]
direction /= np.mean(np.abs(direction))
x -= alpha * direction * x
x[x < 0] = 0
return score, x
#ret = minimize(fun,x0=x0,method='Nelder-Mead',options={"maxiter":200})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import time
from typing import Dict
def binary_to_decimal(number_str: str, zero_char: str, one_char: str) -> int:
return int(number_str.replace(zero_char, '0').replace(one_char, '1'), 2)
def is_my_seat(seats_taken: Dict[int, bool], seat_id: int) -> bool:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ExitCode(IntEnum):
"""Exit status codes.
These mimic those on many unixes (and provided by `os`) but makes them
available on all platforms.
"""
# successful termination
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''缓存的 Key'''
VCODE_KEY = 'VCode-%s'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (var i = 0; i < dt.Rows.Count; i++)
{
var data = dt.Rows[i];
if (data.ItemArray.Count() <= -1)
{
continue;
}
var 第i行第1列 = data.ItemArray[0]?.ToString();
var 第i行第2列 = data.ItemArray[1]?.ToString();
var 第i行第3列 = data.ItemArray[2]?.ToString();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dficts = filter.dficts_filter(dficts, keys=['error'], values=[[-10.0, 10.0]], operations=['between'],
copy=True, only_keys=None, return_filtered=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (section.Heading != null)
this.FlowPanelMain.Controls.Add((Control)section.Heading);
this.FlowPanelMain.Controls.Add((Control)section.Panel);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
registry = "registry.%s" % domain
meta_tag = "%s:meta-%s" % (yml.appname, meta_version)
release_tag = "%s:release-%s" % (yml.appname, meta_version)
phase_meta_tag = docker.gen_image_name(yml.appname, 'meta', meta_version, registry)
phase_release_tag = docker.gen_image_name(yml.appname, 'release', meta_version, registry)
meta_code = docker.tag(meta_tag, phase_meta_tag)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
pub(crate) fn unsubscribe(&mut self, token: usize) {
match self.ctx {
StreamContextType::Spawned(ref mut ctx) => {
ctx.system_context().unsubscribe(token);
}
StreamContextType::Fused(_, _) => {
panic!("StreamContext::unsubscribe isn't supported by fused stages");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@pytest.fixture
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<th>Tutar</th>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
spec = bq.Spectrum(spec_data)
assert spec.livetime is None
cps_spec = bq.Spectrum(cps=spec_data / 300.6)
assert cps_spec.livetime is None
# ----------------------------------------------
# Test start_time, stop_time, realtime
# ----------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'touch $HOME/.agree2ccp4v6',
'cd ccp4-7.1',
'./BINARY.setup',
])
stage0 += environment(variables=add_binary('/opt/ccp4-7.1/bin'))
stage0 += comment('Installing CCP-EM')
stage0 += primitives.copy(src="./ccpem-1.5.0-linux-x86_64.tar.gz", dest="/opt/ccpem-1.5.0-linux-x86_64.tar.gz")
stage0 += primitives.copy(src="./input.txt", dest="/opt/input.txt")
stage0 += shell(commands=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Requests change (new, update, delete) of event subscription,
* i.e. forwarding of events.
*
* SENDER: Mgm server
* RECIVER: SimBlockCMCtrBlck
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LinearInterpolator1d(
np.array([3, 4, 5]),
np.array([1, 2, 3])),
method='Constant',
right=0)
np.testing.assert_almost_equal(extrapolator([0.1, 0.2, 8, 9]),
[1., 1., 0., 0.])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
go build server.go
sudo /bin/systemctl restart codemirror
| ise-uiuc/Magicoder-OSS-Instruct-75K |
password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass()
arista1 = {
"device_type": "arista_eos",
"host": "arista1.lasthop.io",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.value = 0;
}
@Override
public void increment() {
this.value += 1;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.objectGuid = new UUID(0, 0);
this.objectKey = "";
this.objectType = "";
this.objectName = "";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let builder = thread::Builder::new();
let _ = builder.spawn(move || {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _update_config(dst, src, config_desc, path=""):
for key, new_val in src.items():
orig_val = dst.get(key)
field_desc = config_desc.get(key)
if isinstance(new_val, dict):
_update_config(orig_val, new_val, field_desc, "{}/{}".format(path, key))
else:
if (type(field_desc) is tuple) and (type(new_val) is str):
dst[key] = field_desc[1](new_val) # perform conversion
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// The error that is thrown if there is a problem with deserialization
public enum XMLDeserializationError: Error, CustomStringConvertible {
case implementationIsMissing(method: String)
case nodeIsInvalid(node: XMLIndexer)
case nodeHasNoValue
case typeConversionFailed(type: String, element: XMLElement)
case attributeDoesNotExist(element: XMLElement, attribute: String)
case attributeDeserializationFailed(type: String, attribute: XMLAttribute)
// swiftlint:disable identifier_name
@available(*, unavailable, renamed: "implementationIsMissing(method:)")
public static func ImplementationIsMissing(method: String) -> XMLDeserializationError {
fatalError("unavailable")
}
@available(*, unavailable, renamed: "nodeHasNoValue(_:)")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('timeslot_is_reserved_5', models.BooleanField(default=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.