seed
stringlengths
1
14k
source
stringclasses
2 values
cvar = self.covariates_variance ivar = self.instrumental_variance h2 = self.heritability gr = self.genetic_ratio nr = self.noise_ratio s = """ Prior: Normal(M {b}.T, {v} * Kinship + {e} * I) Definitions: Kinship = Q0 S0 Q0.T I = environment M = covari...
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_lang(self): """Test a wide swath of languages""" for api in self.apis: categories = api.venues.categories() assert 'categories' in categories, u"'categories' not in response" assert len(categories['categories']) > 1, u'Expected multiple categories'
ise-uiuc/Magicoder-OSS-Instruct-75K
print("A temperatura",f,"ºF, Em Célsius é: ",celsius,"ºC")
ise-uiuc/Magicoder-OSS-Instruct-75K
ionic platform add ios ionic resources echo 'Can now install and run the app...'
ise-uiuc/Magicoder-OSS-Instruct-75K
use leetcode_prelude::btree; assert_eq!(
ise-uiuc/Magicoder-OSS-Instruct-75K
# # return qr # # def reorthomgs2(self): # z = [] # for j in np.arange(self.n): # t = norm(self.q[j]) # nach = 1 # u = 0 # while nach: # u += 1 # for i in np.arange(j): # s = n...
ise-uiuc/Magicoder-OSS-Instruct-75K
<FormControl margin="normal" fullWidth> <InputLabel htmlFor="source-url">Source Url</InputLabel> <Input id="source-url"
ise-uiuc/Magicoder-OSS-Instruct-75K
get_proto_files(&path, paths)?; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ ctp-colorizer "[1/${STP_M_SET_ZSH}] Changing current Shell to Zsh..." $CLR_LBLUE "y"
ise-uiuc/Magicoder-OSS-Instruct-75K
Console.WriteLine(numbersStack.Min()); } else { Console.WriteLine(0); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
.filter_map(|n| g.grid.get(&n)) .all(|nv| cmp(*v, *nv)) }
ise-uiuc/Magicoder-OSS-Instruct-75K
# If you want your midpoint brightness leve (128) to # appear half as bright as 'full' brightness (255), you # have to apply a 'dimming function'. # @{ # Adjust a scaling value for dimming def dim8_raw(x): return scale8(x, x)
ise-uiuc/Magicoder-OSS-Instruct-75K
def try_merge( a: Interpretation, b: Interpretation, ) -> Optional[Interpretation]: c: Interpretation = {} for key in InterpretationKey: key_str = str(key.value) # We can't normally pluck out of a typed dictionary with random string # keys, b...
ise-uiuc/Magicoder-OSS-Instruct-75K
def success(self, value: int): return { "metric_type": MetricType.PERCENTILE, "status": CheckType.SUCCESS, "description": f"value {value} in range [{self.perc_01}, {self.perc_99}]", "count_score": self.count_score, } def check(self, value: int):
ise-uiuc/Magicoder-OSS-Instruct-75K
def factorization(x, timeout_duration=20, use_ecm=True): """return the factorization of abs(x) as a list or 'NO DATA (timed out)'""" if use_ecm: return timeout(ecm.factor, [abs(x)], timeout_duration=timeout_duration) else: result = timeout(factor, [abs(x)], timeout_duration=timeout_duration)...
ise-uiuc/Magicoder-OSS-Instruct-75K
core/gcc core/git core/make ) pkg_bin_dirs=(bin) do_download() { return 0 }
ise-uiuc/Magicoder-OSS-Instruct-75K
country = ta["meta"].get("country", None) location = None if country and country in countries["iso"]: location = countries["iso"][country] elif country and country in countries["iso3"]: location = countries["iso3"][country] error( "co...
ise-uiuc/Magicoder-OSS-Instruct-75K
return instance def finalize(self, models): """Convert any references into instances models is a dict of id->model mappings """
ise-uiuc/Magicoder-OSS-Instruct-75K
// See the License for the specific language governing permissions and // limitations under the License. // // Copyright © 2019-2020, Sergiy Drapiko // Copyright © 2020, SwiftMocks project contributors import Foundation @testable import SwiftMocks // a couple of wrappers around interceptor to make tests look leaner ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import views
ise-uiuc/Magicoder-OSS-Instruct-75K
temp.flush() temp_file = sc.File(temp.name, parent=self.project_id) self.project_fileId = syn.store(temp_file).id
ise-uiuc/Magicoder-OSS-Instruct-75K
key = c_int() value = create_string_buffer(16) printf(b"[Input a pair as int:string] ") scanf(b"%i:%s", byref(key), byref(value)) return key, value.value def print_a_time(): timer = c_int(12345678) printf(asctime(localtime(byref(timer))))
ise-uiuc/Magicoder-OSS-Instruct-75K
screen.set_at((1, 1), color.white) screen.set_at((10, 100), color.green)
ise-uiuc/Magicoder-OSS-Instruct-75K
impl PartialEq for Game { fn eq(&self, other: &Game) -> bool { ((self.author == other.author)&&(self.name==other.name)&&(self.join_code==other.join_code))
ise-uiuc/Magicoder-OSS-Instruct-75K
} void Pilha::empilhar(int val) { if (this->topo == NULL) { this->topo = new No(val); this->n++; } else { No *p = this->topo; this->topo = new No(val); this->topo->setProx(p);
ise-uiuc/Magicoder-OSS-Instruct-75K
import { JsonInterface as __type___parent_tests_JsonInterface } from "../../../__type__/parent/tests/JsonInterface"
ise-uiuc/Magicoder-OSS-Instruct-75K
pub use self::{explorer::ExplorerApi, system::SystemApi}; pub mod explorer; pub mod system;
ise-uiuc/Magicoder-OSS-Instruct-75K
createCommonOptions(ResourceType.Application, MIME_JAVASCRIPT_UTF8) ); client.serve( id + '.map', resolve(distPath, entryFileName) + '.map', createCommonOptions(ResourceType.DebugResource, MIME_JSON_UTF8) );
ise-uiuc/Magicoder-OSS-Instruct-75K
direction, request_type,
ise-uiuc/Magicoder-OSS-Instruct-75K
import json import logging from lxml import etree import unittest2 as unittest from webob import Request from keystone.controllers.version import VersionController LOGGER = logging.getLogger(__name__) class TestVersionController(unittest.TestCase): def setUp(self): self.controller = VersionController()
ise-uiuc/Magicoder-OSS-Instruct-75K
return DEFAULT_CONFIGURATION; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if self._key is None: raise Exception("key is not set") return self._key @property
ise-uiuc/Magicoder-OSS-Instruct-75K
//: Update text.
ise-uiuc/Magicoder-OSS-Instruct-75K
('index.md', 'Home'), ('api-guide/running.md', 'API Guide', 'Running'), ('api-guide/testing.md', 'API Guide', 'Testing'), ('api-guide/debugging.md', 'API Guide', 'Debugging'), ('about/release-notes.md', 'About', 'Release notes'), ('about/license.md...
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import unittest from chrome_remote_control import browser_finder from chrome_remote_control import options_for_unittests class TemporaryHTTPServerTest(unittest.TestCase): def testBasicHosting(self): unittest_data_dir = os.path.join(os.path.dirname(__file__), '..', ...
ise-uiuc/Magicoder-OSS-Instruct-75K
class ProviderOperationsMetadataListResult(msrest.serialization.Model): """Provider operations metadata list.
ise-uiuc/Magicoder-OSS-Instruct-75K
interface StateRepository { public function get(string $sagaId): State; public function save(State $state): void; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_set(self): c = collect(set(range(10))).list_() self.assertEqual(c.iterable, list(set(range(10)))) def test_tuple(self): c = collect(tuple(range(10))).list_() self.assertEqual(c.iterable, list(tuple(range(10)))) def test_iterator(self): c = collect(iter(ran...
ise-uiuc/Magicoder-OSS-Instruct-75K
with open("batched.out", "a") as batch: batch.write("\n============================================\n")
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_save_to_non_existing_column(stock): arr = np.arange(20).reshape(4, 5)
ise-uiuc/Magicoder-OSS-Instruct-75K
'dateofbirth', 'current_address', 'permanent_address', ]; // rel public function user() { return $this->belongsTo(User::class); }// end of User public function subjects() { return $this->hasMany(Subject::class); }// end of Subjects
ise-uiuc/Magicoder-OSS-Instruct-75K
CreateMap<StolUpsertRequest, Stol>();
ise-uiuc/Magicoder-OSS-Instruct-75K
// DO NOT REMOVE MY NAME AND THIS NOTICE FROM THE SOURCE . //...................................................................................... //////////////////////////////////////////////////////////////////////////////////////// #ifndef __LIST_NODE_INL__ #define __LIST_NODE_INL__ ...
ise-uiuc/Magicoder-OSS-Instruct-75K
except MultipleObjectsReturned as e: # Corrupted DB raise e return doc.nonce
ise-uiuc/Magicoder-OSS-Instruct-75K
} \ } int TestProgrammableSource(int vtkNotUsed(argc), char *vtkNotUsed(argv)[]) { TEST_PROGRAMMABLE_SOURCE(PolyData); TEST_PROGRAMMABLE_SOURCE(StructuredPoints); TEST_PROGRAMMABLE_SOURCE(StructuredGrid); TEST_PROGRAMMABLE_SOURCE(UnstructuredGrid); TEST_PROGRAMMABLE_SOURCE(RectilinearGrid); TEST_PROGRAMM...
ise-uiuc/Magicoder-OSS-Instruct-75K
chromLine = args.input.split(':') try: chrom = chromLine[0] sense = chromLine[1] except IndexError: print('Invalid input line or inaccessible file. Try: chr1:.:1-5000') exit() assert(sense in valid_sense_opti...
ise-uiuc/Magicoder-OSS-Instruct-75K
ys = self.layer3(ys) ys = self.layer4(ys) ys = torch.matmul(ys, torch.diag(torch.exp(self.scaling_diag))) return ys
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <param name="normal">The normal of the plane</param> public Plane3d(Vector3d p0, Vector3d normal) { if (normal == Vector3d.Zero) { throw new ArgumentException("Cannot be a zero vector", nameof(normal)); } P0...
ise-uiuc/Magicoder-OSS-Instruct-75K
'conj_inputs': False, # Never used in the paper
ise-uiuc/Magicoder-OSS-Instruct-75K
if (health<=temp) { return true; } else { return false; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
_INITIAL_NODES_PER_ZONE=$((${INITIAL_NODES} / ${_NUM_ZONES})) [ -z "${_INITIAL_NODES_PER_ZONE}" -o "${_INITIAL_NODES_PER_ZONE}" = "0" ] && \ _INITIAL_NODES_PER_ZONE="1" _MIN_NODES_PER_ZONE=$((${MIN_NODES} / ${_NUM_ZONES})) [ -z "${_MIN_NODES_PER_ZONE}" -o "${_MIN_NODES_PER_ZONE}" = "0" ] && \ _MIN_NODES_PER_ZON...
ise-uiuc/Magicoder-OSS-Instruct-75K
[Test] public void TestBuildUnique() { var node = BulkTreeBuilder<KeyNode<int>, int, int, KeyNode<int>.Driver>.BuildFrom(new[] { 1, 3, 4, 2, 5 }, Comparer<int>.Default, DuplicateHandling.EnforceUnique);
ise-uiuc/Magicoder-OSS-Instruct-75K
for mut scenario in S::iter() { scenario = scenario.init(self.c as usize, self.valid_kmer.k());
ise-uiuc/Magicoder-OSS-Instruct-75K
void TestMenuDelegate::WriteDragData(MenuItemView* sender, OSExchangeData* data) {} // MenuControllerTestApi ------------------------------------------------------ MenuControllerTestApi::MenuControllerTestApi() {} MenuControllerTestApi::~MenuControllerTestApi() {} void MenuCont...
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/env python # coding: utf-8 # In[2]: get_ipython().system('pip install dask') from dask import dataframe import pandas as pd
ise-uiuc/Magicoder-OSS-Instruct-75K
{ $article->setSlug(SeoSlugger::uniqueSlugify($article->getTitle())); $article->setUser($user); return $article; }
ise-uiuc/Magicoder-OSS-Instruct-75K
return True return False def _is_punctuation(char): """Checks whether `chars` is a punctuation character.""" cp = ord(char)
ise-uiuc/Magicoder-OSS-Instruct-75K
use_gpx_start_time=interpolation_use_gpx_start_time, offset_time=interpolation_offset_time, ) else: raise RuntimeError(f"Invalid geotag source {geotag_source}") descs = geotag.to_description()
ise-uiuc/Magicoder-OSS-Instruct-75K
], nrow=4, ncol=2) self.table_more_header = Table.create_from_cells([ Cell(tokens=[Token(text='subject')], rowspan=1, colspan=1), Cell(tokens=[Token(text='header2')], rowspan=1, colspan=1), Cell(tokens=[Token(text='header1')], rowspan=1, colspan=1), Cell(...
ise-uiuc/Magicoder-OSS-Instruct-75K
'authUser' => Auth::user(), 'role' => $companyRole, 'allCompanyPermissions' => $allCompanyPermissions]); }
ise-uiuc/Magicoder-OSS-Instruct-75K
def generate_text( self, inputs, max_length=100, stop_string=None, output_regex=None ): dummy_text = "dummy text, 123. Easy peasy lemon squeezy." if isinstance(inputs, str): text = dummy_text elif isinstance(inputs, list): text = [f"{i}_{dummy_text}" for ...
ise-uiuc/Magicoder-OSS-Instruct-75K
match action.input_output { ProcessType::NotApplicable => if input_process.is_some() || output_process.is_some() { Err(format!("EconomicEvent of '{:}' action cannot link to processes", action.id).into()) } else { Ok(()) },
ise-uiuc/Magicoder-OSS-Instruct-75K
# training both tree and forest with different number of trees
ise-uiuc/Magicoder-OSS-Instruct-75K
log(f'kernel_count={kernels.shape[0]} valid_kernel_count={valid_kernels.shape[0]}') cluster_sizes = [2, 3, 4, 5] for k in cluster_sizes: log(f'Running clustering for k={k}') self.cluster(valid_kernels, k) self.label_analyzer = LabelAnalysis(results_dir=self.resu...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.sankey_dict['node_labels'].index(res[0]), self.sankey_dict['node_labels'].index(res[1]), cell_count] for res, cell_count in self.sankey_dict['sankey_flow_count'].items()...
ise-uiuc/Magicoder-OSS-Instruct-75K
"NUMBER": "0", "EMOJI": "😃😃", "DOUBLE_QUOTED_WORD": "something", "SINGLE_QUOTED_WORD": "something", }, ), ( """ # multiword values
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @var EWSType_AttendeeType */ public $Attendee; }
ise-uiuc/Magicoder-OSS-Instruct-75K
install_requires=[],
ise-uiuc/Magicoder-OSS-Instruct-75K
LocalProvisioner._tolerate_no_process(e)
ise-uiuc/Magicoder-OSS-Instruct-75K
object.setValue(location.latitude, forKey: Locations.Keys.latitude.name) object.setValue(location.longitude, forKey: Locations.Keys.longitude.name) object.setValue(location.name, forKey: Locations.Keys.name.name) object.setValue(location.isPinned, forKey: Locations.Keys.isPinned.name) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
'--rebuild', type=str, choices=('fromstart', 'fromend'), required=False, default='fromstart', help='rebuild outputs by working back from end tasks or forwards \ from start tasks (default is fromstart)') parser.add_argument( '--version', action='version', version='%(prog)s ' + rubra...
ise-uiuc/Magicoder-OSS-Instruct-75K
{ GUI = new GUIData( *this ); SetWindowTitle( "AutoHistogram" ); UpdateControls(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
def parseDeviceId(id): match = re.search('(#|\\\\)vid_([a-f0-9]{4})&pid_([a-f0-9]{4})(&|#|\\\\)', id, re.IGNORECASE) return [int(match.group(i), 16) if match else None for i in [2, 3]]
ise-uiuc/Magicoder-OSS-Instruct-75K
+ "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + "4\n\013update_time\030\010 \001(\0132\032.google.protobuf.T" + "imestampB\003\340A\003\022H\n\022execution_template\030\t \001(" + "\0132,.google.cloud.notebooks.v1.ExecutionT" + "emplate\022D\n\...
ise-uiuc/Magicoder-OSS-Instruct-75K
denom: DENOM.to_string(), }, }; Ok(amount) } fn get_vesting_coins( &self,
ise-uiuc/Magicoder-OSS-Instruct-75K
members = members + ", " } members = members + user } } resultString = members + resultString break case NoticeType.ExitMember:
ise-uiuc/Magicoder-OSS-Instruct-75K
instance; public void doSomthing(){} }
ise-uiuc/Magicoder-OSS-Instruct-75K
from cuser import SerAction
ise-uiuc/Magicoder-OSS-Instruct-75K
bool LastModifyValid; bool Valid; bool Working; ChunkIt_t CurrentChunk; };
ise-uiuc/Magicoder-OSS-Instruct-75K
public abstract interface MarkerFactoryBinder {
ise-uiuc/Magicoder-OSS-Instruct-75K
// Manages subgraph clients for multiple networks export class UniswapV3Fetchers { private static instance: UniswapV3Fetchers; private static clients: Map< EthNetwork, UniswapV3FetcherMemoized > = new Map(); private constructor() { // eslint-ignore no-empty-function
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.CreateModel( name="CodeItem", fields=[ ( "contentitem_ptr", models.OneToOneField( parent_link=True, auto_created=True, primary_key=True, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def trade_api(self, api_key, symbol, amount, price, side, timestamp, *args, **kargs): pair = self.__symbol_to_pair(symbol) result = self.trade(api_key, side, price, pair, amount, timestamp) return { 'symbol': symbol.lower(), 'exchange': self.name, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
public function getTaRule() { return $this->hasOne(TaRuleApproach::className(), ['ta_rule_approach_id' => 'ta_rule_id']); }
ise-uiuc/Magicoder-OSS-Instruct-75K
SED_COMMAND = "'s/First Available Appointment Is \w* //p'"
ise-uiuc/Magicoder-OSS-Instruct-75K
# set random numbers rands = np.random.rand(num_rands) # optimal solution
ise-uiuc/Magicoder-OSS-Instruct-75K
# Get position contig = df_subset.iloc[row_index, 0] pos = df_subset.iloc[row_index, subset_index] # Reset pysam periodically (avoids memory leak)
ise-uiuc/Magicoder-OSS-Instruct-75K
nprup : int # NPRUP xsecup : float # XSECUP(MAXPUP) xerrup : float # XERRUP(MAXPUP) xmaxup : float # XMAXUP(MAXPUP) lprup : float # LPRUP(MAXPUP) class Particle(NamedTuple): pdgid : int # IDUP status : int # ISTUP mother_a : int # MOTHUP(1) mother_b : int # MOTHUP(2) color_a : i...
ise-uiuc/Magicoder-OSS-Instruct-75K
# \param str The string to attempt to convert. # \param fallback The fallback value to return if conversion fails. #
ise-uiuc/Magicoder-OSS-Instruct-75K
), "casper_read_host_buffer" => FuncInstance::alloc_host(
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Reflection; namespace ConsoleApp1 { class Program {
ise-uiuc/Magicoder-OSS-Instruct-75K
}, { cardId: 1, title: "Who is the GOAT?", data: [
ise-uiuc/Magicoder-OSS-Instruct-75K
{ this.getAuctionTransList(this.props.nnsinfo.nnsInfo.fulldomain); } }) }
ise-uiuc/Magicoder-OSS-Instruct-75K
# See the License for the specific language governing permissions and # limitations under the License. # import metaspore as ms import subprocess import yaml import argparse import sys import pyspark import pyspark.sql.functions as F from pyspark.mllib.evaluation import RankingMetrics sys.path.append("../../../../") ...
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "setup glassfish client /etc/hosts file"
ise-uiuc/Magicoder-OSS-Instruct-75K
x_kwargs = dict(func=lambda x, y=None: np.mean(x * x), n=order_of_derivative, progress_callback=progress_callback, **kwargs) process_series_reliable_unreliable(xname, x_kwargs, is_reliable_visible=True) if topography.dim == 2: y_kwargs = dict(func=lambda x, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
d[k] = [] j=k else: d[j].append(k) p=[] for i in d.keys(): m=d[i] k=''.join(x for x in m) d[i]=list(k)
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { $input = $request->all(); $validator = Validator::make($input, [
ise-uiuc/Magicoder-OSS-Instruct-75K
if dx > 0: dx = np.random.randint(0, dx) if dy > 0: dy = np.random.randint(0, dy) return img1[dx:dx + w, dy:dy + h, :],img2[dx:dx + w, dy:dy + h, :] def crop_center(self, img1,img2): if img1.shape[0] == self.input_shape[0] and img1.shape[1] == self.input_shape[1]: return img1, img2 assert img1.shap...
ise-uiuc/Magicoder-OSS-Instruct-75K
propavg = [] for pint in pints: avg = np.average(propindic[pint]) propavg.append([pint, avg]) propavg = pd.DataFrame(propavg, columns=['ProbInt', 'FracIn']) # Calculate the summary statistics avgvar = np.average(variances)
ise-uiuc/Magicoder-OSS-Instruct-75K