seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
private $metaField;
/**
* @param MetaDataValue $value
* @param MetaSetInterface $metaSet
* @param MetaSetFieldInterface $metaField
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __post_init__(self):
self.rendered = f'<link rel="{self.rel}" type="{self.mimetype}" href="{html_escape(self.href)}">'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Value: List[float] = []
domain: Optional[Interval] = Interval()
class Config:
case_sensitive = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
import logging
from pathlib import Path
import yaml
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import math
AB = int(input())
BC = int(input())
h = math.sqrt(pow(AB, 2) + pow(BC, 2))
print(str(round(math.degrees(math.acos(BC / h)))) + '°')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->add_render_attribute( 'site-header', 'class', 'site-header site-header--elementor icon-fill-in' );
$this->add_render_attribute( 'site-header', 'class', 'site-header--align-' . esc_attr( $settings_align ) . '' );
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if platform.system() in {'Windows', 'Darwin'}:
# these platforms like path names like "Program Files" or
# "Application Support"
_appname = 'Porcupine'
else:
_appname = 'porcupine'
_author = _author.lower()
cachedir = appdirs.user_cache_dir(_appname, _author)
configdir = appdirs.user_config_dir(_appname, _author)
# this hack shouldn't be a problem because porcupine isn't distributed
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif valor/meses >= salario * 0.3:
print('credito não aprovado')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cur=valid & mask
axissum=cur.sum(axis=1)
field=np.where(axissum==1)[0][0]
rule=np.where(cur[field, :]==True)[0][0]
if rule_names[rule].startswith("departure"):
#print(field, rule, mt[field])
product *= int(mt[field])
mask[:,rule]=False
print ("Product", product)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$user = auth()->user();
$bill = Bill::select('bills.id', 'products.name', 'bills.total_coin', 'detail_products.code_card', 'detail_products.account_game', 'detail_products.password_game', 'bills.created_at')
->join('detail_bills', 'detail_bills.bill_id', '=', 'bills.id')
->join('detail_products', 'detail_products.id', '=', 'detail_bills.product_id')
->join('products', 'products.id', '=', 'detail_products.product_id')
->where('user_id', '=', $user->id)->orderBy('bills.id', 'DESC')->get();
}
catch(Exception $e){
if ($e instanceof \Illuminate\Database\QueryException){
return response()->json(['message' => 'error', 'status' => false]);
}else{
return response()->json(['message' => 'error', 'status' => false]);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Foundation
typealias AppState = [String: Any]
typealias State = Any
typealias EmptyFunction = () -> Void
/**
* Composes single-argument functions from right to left.
*
* - Parameter funks: functions to compose.
*
* - Returns: A function obtained by composing functions from right to
| ise-uiuc/Magicoder-OSS-Instruct-75K |
curl -sL https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST}/conftest_${CONFTEST}_Linux_x86_64.tar.gz | \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./scripts/retrieval-baseline train ../data_out_metalwoz/metalwoz-v1-normed.zip \
--preproc-dir ../data_out_reddit \
--output-dir ./metalwoz-retrieval-model \
--eval-domain dialogues/ALARM_SET.txt --test-domain dialogues/EVENT_RESERVE.txt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
$pdf = new myPDF();
$pdf->AliasNbPages();
$pdf->AddPage('L', 'A4', 0);
$pdf->headerN();
$pdf->questionInfo($pdo);
$pdf->headerTable();
$pdf->viewTable($pdo);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
m = re.search(r'^([a-z ]+): (\d+-\d+(?: or )?)+(\d+-\d+)$', l)
if m:
g = m.groups()
rules[g[0]] = [[int (n)for n in r.replace(' or ','').split('-')] for r in g[1:]]
return rules
def get_ticket(lines):
for i in range(len(lines)):
if lines[i] == 'your ticket:':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div className='mt-2 text-center text-sm font-bold text-natgas-azul dark:text-white'> Desde {email} </div>
<button className="rounded-full px-8 py-2 bg-natgas-azul text-white mt-4 dark:bg-natgas-azul-claro"> <Link to={`/app/profile/${email}/complete`}>Registrar</Link></button>
</div>
)
}
export default CardCompletarUsuario | ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
'''
使用方法:
在相同資料夾底下放置此程式和chromedriver.exe,並使用cmd執行指令撈取圖片
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.mohsinkd786.query.FindBankAccountQuery;
import com.mohsinkd786.repository.BankAccountRepository;
import lombok.RequiredArgsConstructor;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1000+
// edition:2018
// check-pass
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]
use std::future::Future;
use std::fmt::Debug;
type Foo = impl Debug;
fn f() -> impl Future<Output = Foo> {
async move { 22_u32 }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</section> | ise-uiuc/Magicoder-OSS-Instruct-75K |
new.rename(
columns={column_name: camel_to_snake(less_breakable(column_name))},
inplace=True,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// </summary>
/// <value>The navigation service.</value>
IRegionNavigationService NavigationService { get; }
/// <summary>
/// Gets the <see cref="INavigationParameters"/> extracted from the URI and the object parameters passed in navigation.
/// </summary>
/// <value>The URI query.</value>
INavigationParameters Parameters { get; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return GotoStateResult.SUCCESS, target
elif target.state == State.CHAT:
chat_name = cast(ChatState, target).contact
if g.driver.type_in_search(chat_name) and g.driver.click_on_chat(chat_name, True):
return GotoStateResult.SUCCESS, target
else:
return GotoStateResult.ELEMENT_NOT_FOUND, self
class ChatState(GUIState):
def __init__(self, contact):
super().__init__(State.CHAT)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.cost = None
self.usage_volume = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<p>確認用パスワード</p>
<input id="password-confirm" type="password" class="user_password_form" name="password_confirmation" required>
</div>
<div class="form_block">
<p>権限</p>
<select name="authority" id="user_authority">
@if (old('authority',$user->authority))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# sed -i "s/keep_checkpoint_every_n_hours: 1.0/keep_checkpoint_every_n_hours: 1/" $temp_pipeline
# sed -i "s/${old_checkpoint_path//\//\\/}/${fine_tune_checkpoint//\//\\/}/g" $temp_pipeline
# sed -i "s/keep_checkpoint_every_n_hours: 1.0/keep_checkpoint_every_n_hours: 1/" $temp_pipeline
# sed -i "s/$num_steps_marker[[:space:]]*[[:digit:]]*/$num_steps_marker $train_iterations/g" $temp_pipeline
# sed -i "s/$num_examples_marker[[:space:]]*[[:digit:]]*/$num_examples_marker $eval_iterations/g" $temp_pipeline
# sed -i "s/$num_classes_marker[[:space:]]*[[:digit:]]*/$num_classes_marker $num_classes/g" $temp_pipeline
# Train model on TFRecord
echo "Eval model"
# rm -rf $train_dir
echo $temp_pipeline
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod beings;
pub mod length;
pub mod point;
pub mod vec_wrapper;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
impl Drop for StopGuard {
fn drop(&mut self) {
self.stop.wake()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def setUp(self):
self.x = np.random.random([10, 16]).astype('float32')
self.dyfunc = nested_if_else
if __name__ == '__main__':
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
isFaceted: boolean;
/**
* Parse properties passed down from ancestors.
*/
ancestorParse: Dict<string>;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
contract_address,
fee,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// HttpResponse::build()
/// .status(Status::MovedPermanently)
/// .header("Location", "http://example.com")
/// .body("The requested resource has moved to: http://example.com")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
into_pwm: |tim| if enable {
tim.tccr4a.modify(|_, w| w.com4a().match_clear());
} else {
tim.tccr4a.modify(|_, w| w.com4a().disconnected());
},
},
porth::PH4: {
ocr: ocr4b,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Post()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def output(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
class CourseStudentTrackerTemplate extends ReportingTemplate
{
public function __construct($parent)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Code by olooney on GitHub
> https://gist.github.com/olooney/1246268
Returns the average color from a given image (PIL)
"""
i = image
h = i.histogram()
# split into red, green, blue
r = h[0:256]
g = h[256:256*2]
b = h[256*2: 256*3]
# perform the weighted average of each channel:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
}
self.invalidate();
}
fn handle_event(
&mut self,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) -> User:
"""Get current authenticated user."""
user = await users.get(token=token)
if user:
return user
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Module({
imports: [
MongooseModule.forFeature([{name: 'Address', schema: AddressSchema}]),
PassportModule.register({defaultStrategy: 'jwt'})
],
controllers: [AddressController],
providers: [AddressService, UploadService]
})
export class AddressModule {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _unary_relu(x):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
import json
cfg = xmlsettings.XMLSettings(os.path.join(sys.path[0],'settings.xml'))
with open(os.path.join(sys.path[0],'config.json')) as data_file:
data = json.load(data_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
n_samples, n_features = X.shape
# The number of monomials is (n + d) choose d
n_monomials = int(factorial(n_features + degree)/(factorial(n_features)*factorial(degree)))
features = np.ones((n_monomials, n_samples))
col = 1
x_T = X.T
for deg in range(1, degree + 1):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn to_refs<T>(mut list: Box<&mut List<T>>) -> Vec<&mut T> {
let mut result = vec![];
loop {
result.push(&mut list.value);
if let Some(n) = list.next.as_mut() {
*list = n;
} else {
return result;
}
}
}
fn main() {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Invokes the given index check function for all set names, index names,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
insertInto: managedObjectContext)
movie.setValue(id, forKeyPath: "id")
movie.setValue(movieTitle, forKeyPath: "movieTitle")
movie.setValue(moviePoster, forKeyPath: "moviePoster")
movie.setValue(movieReleaseDate, forKeyPath: "movieReleaseDate")
movie.setValue(isFavorite, forKeyPath: "isFavorite")
movie.setValue(moviePosterPath, forKeyPath: "moviePosterPath")
coreDataStack.saveContext()
return movie
}
func fetchAllFavoriteMovies() -> [MovieItem]?{
let fetchRequest = NSFetchRequest<NSManagedObject>(entityName: "MovieItem")
do {
let movieItem = try managedObjectContext.fetch(fetchRequest)
return movieItem as? [MovieItem]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DQMDirName = cms.string("/") # root directory
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
it('ignores regex checks and returns valid if no progress bar', () => {
const mockOnChange = jest.fn()
render(<PasswordInput label='Password' onChange={mockOnChange} />)
const inputField = screen.getByTestId('input-field')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
adv = Advanced('test')
self.assertFalse(adv.health <= 0)
adv.health = 0
self.assertTrue(adv.health <= 0)
def test_take_damage_raises(self):
adv = Advanced('test')
with self.assertRaises(ValueError) as ex:
adv.take_damage(-100)
self.assertEqual(str(ex.exception), "Damage points cannot be less than zero.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"reach the next level!\n\n/overridelevel - This can "
"only be used by people who are **level 500** or "
"bigger. This command allows for people to override "
"their current level name and use a custom one!",
color=0x00FF00,
),
discord.Embed(
title="Music",
description="T4NK0R supports music functions!\n\n**Commands associated with "
"music**\n\n/play - Start playing music! You can provide name "
"songs or Youtube URLs. You must be in a **Voice Channel** to "
"use this command!\n\n/pause - Pause the player.\n\n/resume - "
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public User(String mFirstName, String mLastName){
first_name = mFirstName;
last_name = mLastName;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .monoids import Monoids
return [Monoids()]
class ParentMethods:
def is_endomorphism_set(self):
"""
Return ``True`` as ``self`` is in the category
of ``Endsets``.
EXAMPLES::
sage: P.<t> = ZZ[]
sage: E = End(P)
sage: E.is_endomorphism_set()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
nBits = nBits % 0x20;
return (value << nBits) | (value >> (0x20 - nBits));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ISUBATA_DB_USER=isucon
ISUBATA_DB_PASSWORD=<PASSWORD>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
abort(404)
if file.owner_id != current_user.id:
abort(403)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
context['cur_folder'] = self.cur_folder
return context
def scan_dir_tree(self, dir_tree, cur_folder, path, parent=None, demo=False):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.component.twitter;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Generated by Django 3.0.2 on 2020-01-19 02:15
from django.db import migrations
class Migration(migrations.Migration):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
],
packages = find_packages(),
python_requires = '>=3.5',
setup_requires = [
'panda3d'
],
install_requires = [
#'panda3d>=1.10.4.1'
],
cmdclass = {
'clean': Clean,
},
zip_safe = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .core import Log, Folder
from .helpers import Package
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public func calcVisibleFrame(with index: LPIndex, y: CGFloat) -> CGRect {
let x = CGFloat(index) * frame.width
return CGRect(x: x, y: y, width: frame.width, height: frame.height - y)
}
public func calcOffset(with index: LPIndex, width: CGFloat, maxWidth: CGFloat) -> CGPoint {
var x = CGFloat(index) * width
if x < 0.0 {
x = 0.0
}
if maxWidth > 0.0 && x > maxWidth - width {
x = maxWidth - width
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# @link https://github.com/ctlcltd/e2-sat-editor-qb
# @copyright e2 SAT Editor Team
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Created by yangge on 12/26/2015.
*/
public class FlyNoWay implements FlyBehavior {
public void fly() {
System.out.println("I am flying no way!");
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s2t_client = S2tClient(config=config)
t2s_client = T2sClient(config=config)
nlu_client = NluClient(config=nlu_config)
s2t_pipelines = s2t_client.services.speech_to_text.list_s2t_pipelines(request=s2t.ListS2tPipelinesRequest())
t2s_pipelines = t2s_client.services.text_to_speech.list_t2s_pipelines(request=t2s.ListT2sPipelinesRequest())
print(f"Speech to text pipelines: {[pipeline.id for pipeline in s2t_pipelines.pipeline_configs]}")
print(f"Text to speech pipelines: {[pipeline.id for pipeline in t2s_pipelines.pipelines]}")
agents = nlu_client.services.agents.list_agents(request=agent.ListAgentsRequest())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert output is not None, "missing output file"
schemas = read_schemas(files)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
enums_preamble = '\
// Licensed to the Apache Software Foundation (ASF) under one \n\
// or more contributor license agreements. See the NOTICE file \n\
// distributed with this work for additional information \n\
// regarding copyright ownership. The ASF licenses this file \n\
// to you under the Apache License, Version 2.0 (the \n\
// "License"); you may not use this file except in compliance \n\
// with the License. You may obtain a copy of the License at \n\
// \n\
// http://www.apache.org/licenses/LICENSE-2.0 \n\
// \n\
// Unless required by applicable law or agreed to in writing, \n\
// software distributed under the License is distributed on an \n\
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Visualize performance of the '
'given model uid.')
parser.add_argument('-s', '--stator_id', required=False,
help='The 4-digit id in hex of the experiment on '
'stator temperatures')
parser.add_argument('-r', '--rotor_id', required=False,
help='The 4-digit id in hex of the experiment on '
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "$dev" > /tmp/selected_device
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return True
# since the jump need based on lastjump
# only forward,get rid of the stay at the same pos
rstart=max(curpos+lastjump-1,curpos+1)
rend=min(curpos+lastjump+1,stones[-1])+1
for nextpos in xrange(rstart,rend):
if nextpos in graph and self.dfs(stones,graph,nextpos,nextpos-curpos):
return True
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__copyright__ = "Copyright 2020, The Bug Report Summarization Project @ Sybil-Lab"
__license__ = "MIT"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pyautogui.FAILSAFE = False
check_data_created()
check_credentials()
show_menu()
show_main_window()
time_to_repeat = config.get_time_to_repeat()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._task_list.append(task)
def remove_task(self, task: notify.NotifyTask) -> None:
self._task_list.remove(task)
def find_task(self, message_id: int) -> notify.NotifyTask:
for task in self._task_list:
if message_id == task._register_send_message.id:
return task
logger.debug(f"not found:{len(self._task_list)=}")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def jokaero(weaponsmith: str, __beartype_func: str) -> str:
return weaponsmith + __beartype_func
# ....................{ TESTS ~ fail : type }....................
def test_beartype_fail_param_type(self) -> None:
"""
Test bear typing of an annotated function call failing a parameter type
check.
"""
# Annotated function to be type checked.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "StdAfx.h"
#include "SuiteLibrary.h"
#include "AboutDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#undef THIS_FILE
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in progress_bar(range(15), "Processing: ", "Part ", 40):
<some long running calculation>
Processing: [####################################] Part 16/16
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
user = "natas26"
pwd = "oGgWAJ<PASSWORD>GT<PASSWORD>4<PASSWORD>Bu34T"
s = requests.session()
sid = "h4ck3d"
php_encoded_obj = "<KEY>"
cookies = {"PHPSESSID": sid, "drawing": php_encoded_obj}
r = s.get(url, auth=(user,pwd), cookies=cookies)
# /var/www/natas/natas26/img/natas27_pwd.php
r = s.get(url + "/img/natas27_pwd.php", auth=(user,pwd), cookies=cookies)
print r.content | ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertIsNone(record.parse())
self.assertEqual(
attribute_record.docstring, "attribute docstring\n attribute docstring 2"
)
self.assertEqual(class_attribute_record.docstring, "")
self.assertEqual(method_record.title, "class_record().method_record")
self.assertEqual(
static_method_record.title, "class_record.static_method_record"
)
function_record.parse_type_comments.assert_called_once_with(
["function_line 1", "function_line 2"]
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.size is None:
done = self.idx * self.batch
percent = 0
bar = None
else:
done = min(self.idx * self.batch, self.size)
percent = done / self.size
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public static bool GetIsDragOver(DependencyObject element)
{
return (bool) element.GetValue(IsDragOverProperty);
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
with open("data.txt") as f:
data = []
for line in csv.reader(f, dialect="excel-tab"):
data.append(line[:-1])
print findMin(data)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// std::cout << "DP = [" << dp[0] << ", " << dp[1] << ", " << dp[2] << "]" << std::endl;
// std::cout << "Best Error " << best_err << std::endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import Post
api_key = app.config['RANDOM_QUOTES_URL'] | ise-uiuc/Magicoder-OSS-Instruct-75K |
t_left = t.ppf(0.0250, df=N-1)
t_right = t.ppf(0.9750, df=N-1)
left_ci = mu_hat + t_left*sigma_hat/np.sqrt(N)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elapsed = stopwatch.ElapsedTicks * TickFrequency;
float diff = nextTrigger - elapsed;
if (diff <= 0f)
break;
if (diff < 1f)
Thread.SpinWait(10);
else if (diff < 5f)
Thread.SpinWait(100);
else if (diff < 15f)
Thread.Sleep(1);
else
Thread.Sleep(10);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if let topVC = UIApplication.getTopMostViewController() {
hud.show(in: topVC.view)
}
}
// MARK: -
// MARK: Change hud
static func change(_ hud: JGProgressHUD, text: String, detailText: String = "") {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
protected $table = "catagories";
public $timestamps = false;
public function accessories()
{
return $this->belongsTo('App\Accessories','id','catagories_id');
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
image = cv2.imread("lena_color.tif")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void CSchrodinger1DItem::Assign(CSchrodinger1D* pS, int& i)
{
iequ = i;
x = &(pS->x[iequ]);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
r = round((rb[t0][0] + (t-t0)*(rb[t0+1][0]-rb[t0][0]))*bright)>>8
g = round((rb[t0][1] + (t-t0)*(rb[t0+1][1]-rb[t0][1]))*bright)>>8
| ise-uiuc/Magicoder-OSS-Instruct-75K |
target_met = False
total = []
for attr in range(0,6):
result = []
raw = []
for roll in range(0,4):
dice = random.randint(1,6)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
def __init__(self, config, plugins, logger):
self.config = config
self.plugins = plugins
self.queue = Queue.Queue(
config['global']['max_queue_length']
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace QuinntyneBrownPhotography.Data.Models
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(trainMat)
p0V, p1V, pAb = trainNB0(trainMat, classVec)
print(p0V, p1V, pAb) | ise-uiuc/Magicoder-OSS-Instruct-75K |
from graph.Visitor import Visitor
class ApplyFunction(Visitor):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Iteration: Repeat the same procedure until it reaches a end point.
# Specify the data to iterate over,what to do to data at every step, and we need to specify when our loop should stop.
# Infinite Loop: Bug that may occur when ending condition speicified incorrectly or not specified.
spices = [
'salt',
'pepper',
'cumin',
'turmeric'
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
cv2.destroyAllWindows()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
else {
int[] intIndexes = Arrays.copyOf(dictionaryIndexes, indexCount);
appendIntegerIndexes(intIndexes);
}
}
public DictionaryRowGroup build(ColumnStatistics columnStatistics)
{
return new DictionaryRowGroup(getByteSegments(), getShortSegments(), getIntegerSegments(), columnStatistics);
}
| 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.