seed
stringlengths
1
14k
source
stringclasses
2 values
WHERE a.sid = rel.start_sid AND b.sid = rel.end_sid AND b.taxid = rel.end_taxid CREATE (a)-[r:MAPS]->(b) SET r = rel.properties Call with params: {'start_sid': 1, 'end_sid': 2, 'end_taxid': '9606', 'properties': {'foo': 'bar} } :param relationships: List of Relationships. :return: List...
ise-uiuc/Magicoder-OSS-Instruct-75K
# Run the training job tf.contrib.learn.learn_runner.run( generate_experiment_fn(**arguments), output_dir)
ise-uiuc/Magicoder-OSS-Instruct-75K
class Test(InferenceTest): def setUp(self): self.float_1 = 5.23e-4 self.float_2 = 3.86e-2
ise-uiuc/Magicoder-OSS-Instruct-75K
error!("API connect error {}", e); } }, }; } } macro_rules! parse_request_meta { ($s:expr, $b:expr, $l:expr) => { match $s.read_exact(&mut $b).await { Ok(_) => $l = u32::from_le_bytes([$b[2], $b[3], $b[4], $b[5]]) as usize, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
export class LastValidatorPower extends jspb.Message { getAddress(): string; setAddress(value: string): void; getPower(): number; setPower(value: number): void;
ise-uiuc/Magicoder-OSS-Instruct-75K
postOrder(node->left); postOrder(node->right); cout<<node->key<<endl; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
set setSelectedVacData(val: any) { this.selectedVacData$.next(val); } readonly selectedVacData$ = new BehaviorSubject<any>([]); readonly vaccineData$ = new BehaviorSubject<any>([]); constructor( private subclassCodeSvc: VaccineSubclassInitService, private fb: FormBuilder, private manufactureSvc:...
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return wait(function (Discord $discord, $resolve) { // Random delay between 0 and 5s. $delay = (int) ((mt_rand() / mt_getrandmax()) * 5000); $start = microtime(true); $this->channel()->sendMessage('testing delayed reply') ->then(function (Me...
ise-uiuc/Magicoder-OSS-Instruct-75K
xchange_dict.update({v:key})
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>exercises/migrations/0003_rename_number_exercise_count_number.py # Generated by Django 3.2.8 on 2021-11-11 15:27 from django.db import migrations
ise-uiuc/Magicoder-OSS-Instruct-75K
public: Employee(string firstName, string lastName, int age, int staffNumber) { Person::(firstName, lastName, age); this.staffNumber = staffNumber; } ~Employee(); string toString() { return Person::toString() + ", " + this.staffNumber; }
ise-uiuc/Magicoder-OSS-Instruct-75K
export declare function generate(size?: number, start?: number, offset?: number, step?: number): Iteration[]; export declare function iterate({ start, offset, size, step, remaining, completed }: FFTIteration, callback: (size?: number, start?: number, offset?: number, step?: number) => boolean): Iteration[]; export defa...
ise-uiuc/Magicoder-OSS-Instruct-75K
Assert.Equal(2, ReflectionUtil.MethodMap.Keys.Count(k => k.Name == "Reverse")); Assert.Equal(4, ReflectionUtil.MethodMap.Keys.Count(k => k.Name == "SequenceEqual")); Assert.Equal(4, ReflectionUtil.MethodMap.Keys.Count(k => k.Name == "Any")); Assert.Equal(2, ReflectionUtil...
ise-uiuc/Magicoder-OSS-Instruct-75K
hero_class: u64, weapon: Option<HeroicWeapon>, }
ise-uiuc/Magicoder-OSS-Instruct-75K
mod build; pub mod cmd; mod crates; pub mod logging; mod native; mod prepare; mod toolchain; mod tools; mod utils; mod workspace; pub use crate::build::{Build, BuildDirectory}; pub use crate::crates::Crate;
ise-uiuc/Magicoder-OSS-Instruct-75K
services.AddDbContext<AppDbContext>(options => { options.UseNpgsql(configuration.GetConnectionString("AppDb"), mysqlOptions => mysqlOptions.MigrationsAssembly("KachnaOnline.Data")); });
ise-uiuc/Magicoder-OSS-Instruct-75K
//--------------------------------------------------------------------------- BOOL PSS_ProcessPropertiesBP::SetValue(const int propId, LPCTSTR pValue) { if (!pValue)
ise-uiuc/Magicoder-OSS-Instruct-75K
public float x1;
ise-uiuc/Magicoder-OSS-Instruct-75K
} void Room::SetPortalDest(Directions::Direction portalPos, Room *desc) { Portal *portal = nullptr; switch (portalPos) { case Directions::NE: {
ise-uiuc/Magicoder-OSS-Instruct-75K
height 20.0 radius 45.2 side TRUE top FALSE }
ise-uiuc/Magicoder-OSS-Instruct-75K
// //swiftlint:disable rule_UIColor_1 rule_UIFont_1 import UIKit import Foundation // import RJSLibUFBase import RJSLibUFStorage import RJSLibUFNetworking import RJSLibUFAppThemes
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import views app_name = 'projects'
ise-uiuc/Magicoder-OSS-Instruct-75K
class SlctSpider(BaseSpider): name = 'slct' # start_urls = ['https://www.qxmhw.com/search-0-324.html']; # Test
ise-uiuc/Magicoder-OSS-Instruct-75K
didSet { closeButton.titleLabel?.font = FontFamily.MTSSans.medium.font(size: 17) } } @IBAction func closeController(_ sender: Any) { self.dismiss(animated: true) }
ise-uiuc/Magicoder-OSS-Instruct-75K
left_wheel.unsubscribe(GATT_CHARACTERISTIC_ROTATION) exit(0) # Instantiate a thing with its credential, then read its properties from the DCD Hub my_thing = Thing(thing_id=THING_ID, token=THING_TOKEN) my_thing.read() # Start a BLE adapter
ise-uiuc/Magicoder-OSS-Instruct-75K
return TowerServicesStub(grpc.insecure_channel(internal_api_endpoint)) def send_appointment(stub, appointment, signature): response = stub.add_appointment( AddAppointmentRequest( appointment=Appointment( locator=appointment.locator, encrypted_blob=appointmen...
ise-uiuc/Magicoder-OSS-Instruct-75K
return x + y class PeriodicTask(PeriodicTaskMixin): @property def name(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
.expect("use --project: Not found directory name") .to_os_string() .into_string() .expect("use --project: Fail to unwrap os_string") }); let output = opt.output.unwrap_or_else(|| { "LICENSE".to_string() });
ise-uiuc/Magicoder-OSS-Instruct-75K
checkOverridesImplementationsConflict(); checkAllOverridesAndImplementationsExist(); return this; } private void checkOverridesImplementationsConflict() { for (String key : implementations.keySet()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
help='run on CUDA (default: False)') parser.add_argument("--training-episodes", type=int, default=int(3e3), help="num of maximum episodes for training each tasks") parser.add_argument("--shared-feature-dim", type=int, default=512, help="the feature dim of th...
ise-uiuc/Magicoder-OSS-Instruct-75K
"AL":"ALAMEDA",
ise-uiuc/Magicoder-OSS-Instruct-75K
version='1.1.1', zip_safe=False, )
ise-uiuc/Magicoder-OSS-Instruct-75K
} return false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** * {@inheritdoc}
ise-uiuc/Magicoder-OSS-Instruct-75K
# Dynamically patch the clients to add shim implementations for all the inherited methods. # This is necessary to generate accurate online docs. # It SHOULD not impact the functionality of the methods themselves in any way. # NOTE In the event of addition of new methods and generation of accurate documentation # for t...
ise-uiuc/Magicoder-OSS-Instruct-75K
class riskControl:
ise-uiuc/Magicoder-OSS-Instruct-75K
lazy var detailTextLabel: UILabel = {
ise-uiuc/Magicoder-OSS-Instruct-75K
/** */ @Test public void testMove1() { RandomWalk rw = new RandomWalk(); rw.move(1, 0); assertEquals(rw.distance(), 1.0, 1.0E-7); rw.move(1, 0); assertEquals(rw.distance(), 2.0, 1.0E-7); rw.move(-1, 0); assertEquals(rw.distance(), 1.0, 1.0E-7);
ise-uiuc/Magicoder-OSS-Instruct-75K
auto [first, second] = make_next_log_events_test_pair(); second.next_expected = first.next_expected + 100; bool equal = (first == second);
ise-uiuc/Magicoder-OSS-Instruct-75K
ht = hl.utils.range_table(1_000_000, n_partitions=10_000) # use HDFS so as not to create garbage on GS ht.write('/tmp/many_partitions.ht') mt = hl.utils.range_matrix_table(1_000_000, 2, n_partitions=10_000) mt.write('/tmp/many_partitions.mt')
ise-uiuc/Magicoder-OSS-Instruct-75K
codecatch_snippets = alldata["codecatch"][query][:results_to_keep] google_snippets = alldata["google"][query][:results_to_keep] codecatch_avp.append(average_precision(codecatch_snippets, 10)) google_avp.append(average_precision(google_snippets, 10)) print("CodeCatch Mean Average Precision: " + str(sum(codecatch_av...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>ydai1124/gobblin-1<filename>gobblin-data-management/src/main/java/gobblin/data/management/copy/CloseableFsCopySource.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information re...
ise-uiuc/Magicoder-OSS-Instruct-75K
} }; try( DirectoryStream<Path> stream = Files.newDirectoryStream( dir, filter ) ) { assertThat( Utils.getSize( stream ), is( unfilteredSize - 1 ) ); } } @Test @Category( Writable.class )
ise-uiuc/Magicoder-OSS-Instruct-75K
def start_tensorboard(self, log_dir): try: p = subprocess.Popen(['tensorboard', '--host', '0.0.0.0', '--logdir', self.log_dir])
ise-uiuc/Magicoder-OSS-Instruct-75K
def __str__(self): return self.unicode
ise-uiuc/Magicoder-OSS-Instruct-75K
public function show($id) {
ise-uiuc/Magicoder-OSS-Instruct-75K
} func stopWatchingForControllers() { // Same as the first, 'cept in reverse! GCController.stopWirelessControllerDiscovery() let ctr = NotificationCenter.default ctr.removeObserver(self, name: .GCControllerDidConnect, object: nil)
ise-uiuc/Magicoder-OSS-Instruct-75K
** claim that you wrote the original software. If you use this software ** ** in a product, an acknowledgment in the product documentation would be ** ** appreciated but is not required. ** ** 2. Altered source versions must be plainly marked as such...
ise-uiuc/Magicoder-OSS-Instruct-75K
print "\tEnter a doc class!\n" sys.exit(1) self.doc_class_str = args[0].split('.')[-1] self.doc_class = to_function(args[0]) self.finish_handle()
ise-uiuc/Magicoder-OSS-Instruct-75K
class DualBlobStore(blob_store.BlobStore): """A BlobStore proxy that writes to two BlobStores. This class is backed by both a primary and secondary BlobStore. Requests to read and write blobs are immediately processed by the primary, return as soon as the primary has finished processing, and only raise if the ...
ise-uiuc/Magicoder-OSS-Instruct-75K
url(r'^', include(router.urls)), url(r'^author/posts$', PostViewSet.as_view({'get':'visible_posts'})), url(r'^author/(?P<user_id>.+)/posts$', PostViewSet.as_view({'get':'visible_user_posts'})), url(r'^posts/(?P<post_id>.+)/comments$', CommentViewSet.as_view({'get': 'list', 'post': 'create'})),
ise-uiuc/Magicoder-OSS-Instruct-75K
cp $CURR_DIR/LICENSE $INSTALL_DIR/ cp -R $CURR_DIR/Examples $INSTALL_DIR/ fi
ise-uiuc/Magicoder-OSS-Instruct-75K
stackView.addRow(row.prepareForAutolayout().height(52)) stackView.setInset(forRow: row, inset: inset) stackView.setTapHandler(forRow: row) { _ in row.highlight()
ise-uiuc/Magicoder-OSS-Instruct-75K
protected $fillable = [ 'id_kategori', 'kode_barang','nama_barang','harga','foto' ]; public function kategori() { return $this->belongsTo('App\Models\Category', 'id_kategori'); } public function barangmasuk() { return $this->hasMany('App\Models\BarangMasuk', 'id_kod...
ise-uiuc/Magicoder-OSS-Instruct-75K
try { using (var transformation = new XmlTransformation(content, isTransformAFile: false, logger: null)) { using (var document = new XmlTransformableDocument()) { document...
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def verifyBlob(self, signedData: bytes, signature: bytes, *, keyFingerprint: str = None, keyFile: Path = None, subkeyFingerprint: str = None):
ise-uiuc/Magicoder-OSS-Instruct-75K
from xpresso.binders.api import SecurityBase from xpresso.dependencies.models import Dependant class Security(Dependant): _dependency: Union[DependencyProviderType[SecurityBase], SecurityBase] def __init__( self, dependency: Union[DependencyProviderType[SecurityBase], SecurityBase], *...
ise-uiuc/Magicoder-OSS-Instruct-75K
RDebugUtils.currentLine=26279941; //BA.debugLineNum = 26279941;BA.debugLine="xlbl.SetLayoutAnimated(0, CircleRect.Left, Circle"; __ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getLeft(),__ref._circlerect /*a...
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, default): self.path = default.path + "/system/library/" self.ignore = ['__pycache__', '__init__.py'] def get(self): return self
ise-uiuc/Magicoder-OSS-Instruct-75K
return user_info
ise-uiuc/Magicoder-OSS-Instruct-75K
# Page metadata is properly retrieved self.assertEqual(category_pages, {"with_metadata": PARSED_METADATA}) class GetPageTests(MockPagesTestCase): """Tests for the get_page function.""" def test_get_page(self): # TOC is a special case because the markdown converter outputs the TOC as ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_SELF_TURN_POINTS_HPP #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_SELF_TURN_POINTS_HPP #include <cstddef>
ise-uiuc/Magicoder-OSS-Instruct-75K
from imports import * import config # set this to False to enable this panel def exclude(): return False def onEnter(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
print ("Hello Word!")
ise-uiuc/Magicoder-OSS-Instruct-75K
A string that correspond to one if the ID name supported (Check the dictionary id_supported). ID : STRING OR INTEGER If ID is an integer it will be consider as the ID to look for (except for sizes as these can sometimes be integer), if it is a string then the algorithm will t...
ise-uiuc/Magicoder-OSS-Instruct-75K
fi set -e export DEBIAN_FRONTEND=noninteractive apt-get -qq update
ise-uiuc/Magicoder-OSS-Instruct-75K
with open("input.txt", "r") as f: puzzle_input = [int(i) for i in f.read()[0:-1]] total = 0 for cur_index in range(len(puzzle_input)): next_index = cur_index + 1 if not cur_index == len(puzzle_input) - 1 else 0 puz_cur = puzzle_input[cur_index] pnext = puzzle_input[next_index]
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @return string */ public function getLegalEntityId() { return $this->legalEntityId; } /** * Sets a new legalEntityId
ise-uiuc/Magicoder-OSS-Instruct-75K
@RequiredArgsConstructor @Value public class Topic<K,V> {
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestInputFileParser(TestCase): def setUp(self): self.input_files = ['/foo/bar/Text1.txt', 'bar/baz/Text2.txt', 'Text3.txt', '../Text4.txt'] self.results = TestResults.parse_input_files(self.input_files) def test_should_use_basename(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
None } } /// Check whether a value is object, and when its object if with or without arguments. pub fn is_callable(&self, with_arguments: bool) -> bool { if let Value::Object(object) = self { object.is_callable(with_arguments) } else { false
ise-uiuc/Magicoder-OSS-Instruct-75K
self.args = args
ise-uiuc/Magicoder-OSS-Instruct-75K
* Copyright (c) 2020-2021, wvkity(<EMAIL>). * <p>
ise-uiuc/Magicoder-OSS-Instruct-75K
class CVAELossCallback(Callback): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public class XdgShellV6Global : ZxdgShellV6Global {
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.id + ",LEAVE," + str(self.inp) + "," + str(self.weights[1]) + "," + str(self.weights[0]) def serialize_edges(self): return []
ise-uiuc/Magicoder-OSS-Instruct-75K
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetExternalNonContainerDatabaseResult: """ This data source provides details about a specific External Non Container Database resource in Oracle Cloud Infrastructure Database service. Gets information about a s...
ise-uiuc/Magicoder-OSS-Instruct-75K
@json_serialize(json_fields=['stmt_class', 'statement']) class LineStatement(object): def __init__(self, scope_id, statement): self.stmt_class = 'line' self.scope_id = scope_id self.statement = statement @json_serialize(json_fields=['stmt_class', 'statements'])
ise-uiuc/Magicoder-OSS-Instruct-75K
connection: ConnectionWrapper, payload: any, requestId?: number ): void; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Ornstein–Uhlenbeck process def __init__(self, dt=1, theta=.15, sigma=1, nums=1): self.x = [0] * nums self.dt = dt self.theta = theta self.sigma = sigma self.nums = nums def __call__(self): dx = [-self.theta * self.x[i] * self.dt + gauss(0, self.sigma) for i...
ise-uiuc/Magicoder-OSS-Instruct-75K
"running pip directly.\n" ) return main(args)
ise-uiuc/Magicoder-OSS-Instruct-75K
--mdc-dialog-content-ink-color: var(--hcv-text-color-primary); /*racelandshop-fab*/ --hcv-color-fab: var(--racelandshop-fab-color, var(--accent-color));
ise-uiuc/Magicoder-OSS-Instruct-75K
from openstack_manager.conf import config from openstack_manager.service import (k8s_openstack_deploy_manager, k8s_openstack_monitor_manager, k8s_rabbitmq_manager) def k8s_openstack_deploy_manager_main(): config.init() k8s_openstack...
ise-uiuc/Magicoder-OSS-Instruct-75K
grad_outputs=torch.ones(real_logit.size()).to(real_img.device), create_graph=True, retain_graph=True)[0].view(real_img.size(0), -1) # real_grads = undo_loss_scaling(real_grads) r1_penalty = torch.sum(torch.mul(real_grads, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
>>> citySchema = class_schema(City)() >>> city = citySchema.load({"name":"Paris", "best_building": {"name": "Eiffel Tower"}}) >>> city City(name='Paris', best_building=Building(height=None, name='Eiffel Tower'), other_buildings=[]) >>> citySchema.load({"name":"Paris"})
ise-uiuc/Magicoder-OSS-Instruct-75K
from .fapn import FaPNHead from .fcn import FCNHead from .condnet import CondHead __all__ = ['UPerHead', 'SegFormerHead', 'SFHead', 'FPNHead', 'FaPNHead', 'FCNHead', 'CondHead']
ise-uiuc/Magicoder-OSS-Instruct-75K
_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil ) -> Bool { return true } } // MARK: - Extensions #if !swift(>=4.2) extension UIApplication { typealias LaunchOptionsKey = UIApplicationLaunchOptionsKey
ise-uiuc/Magicoder-OSS-Instruct-75K
VERSION=$(grep ^version build.sbt | sed 's/version := "\([0-9.]*\)"/\1/g') ITERATION="${BUILD_NUMBER}${JENKINSADD}"
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, timestamp: float, fmt: str, kind: LogKind, *args, **kwargs) -> None: self._timestamp = timestamp self._fmt = "{ts:>8.3f}{kind:>6}| " + fmt self._kind = kind self._args = args self._kwargs = kwargs def fmt(self) -> str: """Format this line of l...
ise-uiuc/Magicoder-OSS-Instruct-75K
expected_msg = ( u'[{0:s}] ' u'ActiveTimeBias: 240 ' u'Bias: 300 ' u'DaylightBias: -60 ' u'DaylightName: @tzres.dll,-111 ' u'DynamicDaylightTimeDisabled: 0 ' u'StandardBias: 0 ' u'StandardName: @tzres.dll,-112 ' u'TimeZoneKeyName: Eastern Stand...
ise-uiuc/Magicoder-OSS-Instruct-75K
AUTHOR = "Conservation Technology Lab at the San Diego Zoo Wildlife Alliance" DESC = "Code for MiniDencam: Polar bear maternal den observation system." setuptools.setup( name="dencam", version=find_version(read('dencam/__init__.py')), author=AUTHOR, description=DESC,
ise-uiuc/Magicoder-OSS-Instruct-75K
f.write_str(name) } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
public class DroidTestSuite extends junit.framework.TestSuite { public static TestSuite suite() { return(new TestSuiteBuilder(DroidTestSuite.class) .includeAllPackagesUnderHere() .build()); }
ise-uiuc/Magicoder-OSS-Instruct-75K
Stream& Stream::push(long s) { checkedNext(*this); ss_ << s; return *this; } Stream& Stream::push(int s) { checkedNext(*this); ss_ << s;
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Unregister FocusChannelDelegate from FocusManager.
ise-uiuc/Magicoder-OSS-Instruct-75K
class GemPackages(FactBase): ''' Returns a dict of installed gem packages: .. code:: python 'package_name': ['version'], ... '''
ise-uiuc/Magicoder-OSS-Instruct-75K
// PosTest1: reference of ASCIIEncoding class is created via default constructor. [Fact] public void PosTest1() {
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!disabledReason.NullOrEmpty()) { Messages.Message(disabledReason, MessageTypeDefOf.RejectInput, false); } return new GizmoResult(GizmoState.Mouseover, null); } GizmoResult result; ...
ise-uiuc/Magicoder-OSS-Instruct-75K
const snippet = ` @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix interop: <http://www.w3.org/ns/solid/interop#> . @prefix solidtrees: <https://solidshapes.example/trees/> . @prefix solidshapes: <https://solidshapes.example/shapes/> . @prefix acme: <https://acme.example/> . acme:4d594c61-7cff-48...
ise-uiuc/Magicoder-OSS-Instruct-75K