seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
g = 18
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if let sel = selectedlog,
let index = rsyncUIdata.filterlogsbyhiddenID(filterstring,
selectedconfig?.hiddenID ?? -1)?.firstIndex(of: sel)
{
if let id = rsyncUIdata.filterlogsbyhiddenID(filterstring, selectedconfig?.hiddenID ?... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub struct GetGateway<'a> {
http: &'a Client,
}
impl<'a> GetGateway<'a> {
pub(crate) const fn new(http: &'a Client) -> Self {
Self { http }
}
/// Call to authenticate this request.
///
/// Returns additional information: the recommended number of shards to use, and information on
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let result = invokeCatalyst(commandJson: json)
handleSDKJson(result)
}
}
}
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
$0.right.equalTo(playbackRateButton.snp.left).offset(-5)
$0.centerY.equalTo(chooseDefitionView)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scanf("%d", &x);
A += x;
}
for (int i = 0; i < M; i++) {
scanf("%d", &x);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NotificationPopover.defaultProps = {
unreadCount: 4, // TODO: change to 0 when redux store is connected
notifications: [
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# default
regex += r'([\w.-]+)'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Name = name;
Size = m.Size;
WordSize = m.WordSize;
EndianType = m.EndianType;
Writable = m.Writable;
}
public override byte PeekByte(long addr)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def add_performance_header(sanic_app):
"""
Add a header to sanic responses that contains the number of
seconds it took to execute the request.
"""
async def request(req):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @prevFileNamespace DevExpress.ui
* @public
*/
updateDimensions(): void;
}
/**
* @docid
* @type object
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cp -r ../../node_modules .
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default availabilityRouter;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** @var array */
protected $arguments;
/** @var string */
protected $className;
/** @var string */
protected $attribute;
/** @var string */
protected $guard;
public function __construct(string $ability, string $className, string $guard = null)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SponsorContactView(BaseHandler):
"""show the contact form"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return [-1, -1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (validation.isValid === true)
return {
message: () => 'expected validation not to pass',
pass: true,
}
else
return {
message: () => validation.error.message,
pass: false,
}
},
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.resetItem();
this.closeMenu.emit();
this.isLoading = false;
}, (error) => {
this.isLoading = false;
this.resetItem();
this.closeMenu.emit();
console.error(error);
})
}
}; | ise-uiuc/Magicoder-OSS-Instruct-75K |
@Test
public void testTableExists() throws Exception {
Connection c = underTest.getConnection();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>hyfloac/TauEngine
#pragma once
#include "graphics/CommandQueue.hpp"
#ifdef _WIN32
#include <d3d12.h>
class TAU_DLL DX12CommandQueue final : public ICommandQueue
{
DELETE_CM(DX12CommandQueue);
private:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
//test for computation of policysets on operations of implementation
OperationsConfigurator opConf = (OperationsConfigurator)composite.getComponents().get(5);
assertEquals(opConf.getConfiguredOperations().get(0).getPolicySets().size(), 3);
for ( PolicySet policySet : opConf.ge... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright (c) 2018-2020 shmilee
from distutils.spawn import find_executable
from PyInstaller.depend.bindepend import findSystemLibrary
from PyInstaller.utils.hooks import collect_submodules, exec_statement
hiddenimports = collect_submodules('gdpy3')
data_dir = exec_statement(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.solent.carPark.model.MeterDAO;
import org.solent.carPark.model.ScheduleItem;
/**
* tests for meterDao.createMeter(entity) entityDao.deleteEntity(Id) entityDao.retrieveAllEntities() entityDao.retrieveEntity(Id)
* entityDao.retrieveMatchingEntites(entityTempate) entityDao.updateEntity(entity)
*
* @author ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(element).toHaveClass('btn-primary btn-lg xxoo')
})
it('should render a link when btnType equals link and href is provided', () => {
const wrapper = render(<Button btnType='link' href="www.dummy.com">Link</Button>)
const element = wrapper.getByText('Link')
expect(element).toBeInTheDocument(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
export type Card = WagerCard | NumberCard;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
primary: '#083d8c',
secondary: '#666ea0',
success: '#42a53b',
critical: rgb(213, 32, 26),
neutral: rgb(144, 144, 144),
};
export const defaultExtremeColors = {
darkest: rgb(0, 0, 0),
lightest: rgb(255, 255, 255),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@endif | ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct NumericDistanceDiff<T>
where
T: std::ops::Sub<T> + Copy + std::ops::Add<<T as std::ops::Sub>::Output, Output = T>,
<T as std::ops::Sub>::Output:
num::Zero + Clone + Copy + std::fmt::Debug + PartialEq + Serialize + DeserializeOwned... | ise-uiuc/Magicoder-OSS-Instruct-75K |
h2oConf = H2OConf(spark).set('spark.ui.enabled', 'false')
hc = H2OContext.getOrCreate(spark, conf=h2oConf)
print(hc)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name='kubernetes')
pprint(app_cred.to_dict())
if __name__ == "__main__":
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
retval = set({})
for s in suffixes:
if s.endswith('/'):
retval.add(s[:-1])
else:
retval.add(s)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>fromcj/scripts<gh_stars>1-10
#!/usr/bin/env bash
| ise-uiuc/Magicoder-OSS-Instruct-75K |
struct ibv_exp_query_device cmd;
struct ibv_exp_query_device_resp resp;
struct ibv_query_device_resp *r_resp;
uint32_t comp_mask = 0;
memset(&resp, 0, sizeof(resp));
r_resp = IBV_RESP_TO_VERBS_RESP_EX(&resp, struct ibv_exp_query_device_resp,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ffi_fn! {
/// Checks if an architecture is known.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::chrono::milliseconds::rep Profiler::GetAverageTimeMS() const
{
return mNumSamples == 0 ? 0 : GetTotalTimeMS() / mNumSamples;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public DXGI_SWAP_EFFECT SwapEffect;
[NativeTypeName("UINT")]
public uint Flags;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
modalTitle="Baked Manifest"
/>
))}
</ExecutionDetailsSection>
);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_phash_dist(phash_a, phash_b):
return phash_a - phash_b
def parse_phash(phash):
return int(phash, 16)
# (highly primitive) 1-D segmentation with k-means
import sklearn as sk
train_metadata['image_phash'] = train_metadata['image_phash'].apply(parse_phash)
train_metadata['image_phash']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
def decode(image_resource_blocks):
"""
Replaces ``data`` of image resource blocks with parsed data structures.
"""
return [parse_image_resource(res) for res in image_resource_blocks]
def parse_image_resource(resource):
"""
Replaces ``data`` of image resource block with a parsed dat... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if use_parabolic:
x_new = np.linspace(x[0], x[-1], len(x) * 5)
else:
x_new = x
# Evaluate the fitted function with an evenly distributed x
y_new = np.polynomial.polynomial.polyval(x_new, z)
# Get all the gradient at once
gg = np.gradient(y_new, x_new, axis=1)
# Onl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if book_data['totalItems'] == 0:
print(
colored("Sorry. No books were found with that title. ",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// 点击图标
const handleIcon = (e: MouseEvent) => {
// 判断是否是密码输入框
if (props.password) {
inputType.value = inputType.value === "password" ? "text" : "password";
} else {
emit("on-click-icon", e);
}
};
return { handleIcon };
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for seed in range(args.n_seeds):
queue.put((args.dataset_name, pn, args.joint_training,
args.n_train, args.metric_topk, args.max_n_mut,
args.train_on_single, args.ignore_gaps, seed,
predictor_params, outpath))
queue.join()
for p in workers:
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[[ "$output" == *"Created new account"* ]]
# FIXME I'm ugly.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Router,
RouterContext,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x = np.asarray(x).swapaxes(axis, 0)
x = x[::-1, ...]
x_out[i] = x.swapaxes(0, axis)
return x_out
def flip_axis_fra(x, flipping_axis):
pattern = [flipping_axis]
pattern += [el for el in range(x.ndim) if el != flipping_axis]
inv_pattern = [pattern.index(el) for el in range(x.ndim... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'task2',
'task4__1',
'task5__1',
'task6__1',
'task7__1',
'task8__2'
],
'path': [
('task1', 'task2', 0),
('task2', 'task4__1', 0)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import ACC_tools
trajdir = '/data/oceanparcels/output_data/data_Daan/project_diffusion/trelease/'
tdays = 180
experiment_files = {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# load_split_word('/home/lv/data_set/LCSTS2.0/DATA/PART_III.txt') | ise-uiuc/Magicoder-OSS-Instruct-75K |
print(element[1])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Fixtures in pytest work with reused outer names, so shut up pylint here.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
test('default setup', () => {
// GIVEN
const stack = new Stack();
const pool = new UserPool(stack, 'Pool', { });
// WHEN
new UserPoolClient(stack, 'Client', {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
clean_str = clean_str.replace(",", ">*>*>")
clean_str = clean_str.replace("\n", "")
return clean_str
def return_string(str_to_clean):
clean_str = str_to_clean
clean_str = clean_str.replace( "<#><#>",":")
clean_str = clean_str.replace("<$<$<",";")
clean_str = clean_str.replace(">*>*>",",")
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
)
pool_token_balances_after_coroutine = (
evm.async_get_erc20_balance_of_by_block(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return entries[0]->getPtr();
}
bufsize_t SectHdrsWrapper::getSize()
{
if (this->m_PE == NULL) return 0;
size_t secCount = getFieldsCount();
offset_t hdrOffset = m_PE->secHdrsOffset();
offset_t fileSize = m_PE->getRawSize();
offset_t endOffset = hdrOffset + (secCount * sizeof(IMAGE_SECTION_HEA... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// Gets the database schema that contains the sequence.
/// </summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
for x in range(10):
print(x)
for x in range(20, 30):
print(x)
for x in range(10,100,5):
print(x)
for x in range(10,1,-1):
print(x)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return string
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
INDIRECT_SELECTION = get_flag_value("INDIRECT_SELECTION", args, user_config)
LOG_CACHE_EVENTS = get_flag_value("LOG_CACHE_EVENTS", args, user_config)
EVENT_BUFFER_SIZE = get_flag_value("EVENT_BUFFER_SIZE", args, user_config)
QUIET = get_flag_value("QUIET", args, user_config)
def get_flag_value(flag, a... | ise-uiuc/Magicoder-OSS-Instruct-75K |
n_features=N_S,
learning_rate=LR,
e_greedy=E_GREEDY,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from prefect.environments.execution.fargate import FargateTaskEnvironment
from prefect.environments.execution.k8s import KubernetesJobEnvironment
from prefect.environments.execution.local import LocalEnvironment
from prefect.environments.execution.remote import RemoteEnvironment
| ise-uiuc/Magicoder-OSS-Instruct-75K |
root_dir = 'D:\\Github\\Final-year-project\\Datasets\\EMOTIW_face'
output_dir = 'D:\\Github\\Final-year-project\\Datasets\\EMOTIW_face_full'
count = 0
count_list = []
for set in os.listdir(root_dir):
set_path = os.path.join(root_dir, set)
for catg in os.listdir(set_path):
catg_path = os.path.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
print (titles.find('a').text)
print ("\n\nThank you for using IMDB script ...")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
SQL = """
WITH
JobRunWithConcatedCrashes AS (
SELECT
{select_fields},
ARRAY_CONCAT_AGG(crashes) AS crashes
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Saturday', 'Sunday'
]
start_time, period = start.split(' ')
def process_time():
current_hour, current_minute = ([int(t) for t in start_time.split(':')])
end_hour, end_minute = ([int(d) for d in duration.split(':')])
# Adds Current time plus End Time Total
end_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
cidr_block = serializers.CharField(read_only=True)
def update(self, instance, validated_data):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return
}
XCTAssertNotNil(imageClone.data, "`ImageWand` clone should have Data")
self.basicChecks(forWand: imageClone, size: Size.init(width: 100, height: 50))
}
private func resize(file: String, ofType type: String) {
guard let imageWand = self.open(file: file, o... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def has_descendant(self, ctr):
"""(Container): bool
Returns true if 'ctr' is a descendant of this Container.
"""
# To avoid recursing indefinitely, we'll do a depth-first search;
# 'seen' tracks the containers we've already seen, and 'stack'
# is a deque containing c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
period_name = str((5-(i+1)) * period_length + 1) + '-' + str((5-i) * period_length)
period_stop = (start - relativedelta(days=1)).strftime('%Y-%m-%d')
if i == 0:
period_name = '+' + str(4 * period_length)
periods[str(i)] = {
'name': period_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public void OnInitialized(IContainerProvider containerProvider)
{
var reagionManager = containerProvider.Resolve<IRegionManager>();
reagionManager.RegisterViewWithRegion("SettingRegion", typeof(SettingView));
}
public void RegisterTypes(IContainerRegistry c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return null;
}
DepartmentVO departmentVO = new DepartmentVO();
BaseDictVO.transform(department, departmentVO);
if (department.getManager() != null) {
departmentVO.manager = UserVO.transform(department.getManager());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from app.helpers import check_password, encrypt_password
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# %% [1013. Partition Array Into Three Parts With Equal Sum](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)
# 問題:3つのグループの和が等しくなるように2箇所で区切れるかを返せ
# 解法:和の1/3に等しい回数を数える
class Solution:
def canThreePartsEqualSum(self, A: List[int]) -> bool:
s = sum(A)
c, cs, s3 = 0, 0, s ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return get_api_for_title(title)
return False
def get_all_sections():
x = get_html(url)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
raise NeedsAccount()
return commands.check(predicate)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class SkillConversationIdFactory : SkillConversationIdFactoryBase
{
private readonly ConcurrentDictionary<string, string> _conversationRefs = new ConcurrentDictionary<string, string>();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
inline FriendlyTsDualSolenoidValveController::FriendlyTsDualSolenoidValveController() : TsDualSolenoidValveController() {};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
admin.site.register(Userdb)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from thesis.models.ResNet50 import resnet50_compile
from thesis.data import data_reader_augmentation_train
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using Microsoft.MixedReality.Toolkit.SceneSystem;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace HoloLensCameraSample
{
/// <summary>
/// コンテンツシーンを変更するためのクラス
/// </summary>
public sealed class SceneChanger : MonoBehaviour
{
IMixedRealitySceneSystem sceneSystem;
// ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
References
- [1] Perraudin et al. "A fast Griffin-Lim algorithm," WASPAA 2013.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param ORM\Field $oField
* @param array $aValues
* @return $this
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import unittest
import env
import aem
from Utils.WAAgentUtil import waagent
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::exit(1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
#! /bin/bash
echo "Compilando libreria DataRacimo ..."
qmake
make
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
const Arm64InstructionSetFeatures* Arm64InstructionSetFeatures::FromCpuInfo() {
// Look in /proc/cpuinfo for features we need. Only use this when we can guarantee that
// the kernel puts the appropriate feature flags in here. Sometimes it doesn't.
bool smp = false;
const bool is_a53 = true; // Conservativ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <iostream>
#include <string>
int main(int argc, char* argv[]) {
auto s = "foobar";
std::cout << s << std::endl;
return 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
zIndex={-1}
position="absolute"
backgroundColor={theme.connectDotsColor}
/>
)}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
problem: 给有向图和起点,求字典序最小的欧拉通路,保证解存在
solution: Hierholzer 算法。从起点开始做dfs,搜索的同时删除每次跳转的边,搜完的节点入栈,搜索遍历顺序的逆序即为结果。
| ise-uiuc/Magicoder-OSS-Instruct-75K |
act_cfg=dict(type='ReLU', inplace=True), num_classes=num_classes))
n_disc = 5
lr_config = None
checkpoint_config = dict(interval=10000, by_epoch=False, max_keep_ckpts=20)
custom_hooks = [
dict(
type='VisualizeUnconditionalSamples',
output_dir='training_samples',
interval=5000)
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
validate('$') = 'USD'
validate('Kč') = 'CZK'
"""
currency_symbols = {
'AUD':['AUSTRALIAN DOLLAR','A$'],
'BGN':['ЛВ'],
'BRL':['R$'],
'CAD':['CAN$','C$'],
'CHF':['FR','SFR'],
'CNY':['CN¥','¥'],
'CZK':['KČ','KC','ČESKÁ KORUNA'],
'GBP':['£','POUND STERLING'],
'HUF':['FT'],
'HRK':['KN'],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl PartialEq<ArchivedString> for String {
#[inline]
fn eq(&self, other: &ArchivedString) -> bool {
PartialEq::eq(other.as_str(), self.as_str())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.regionaliseButton.pressed.connect(signals.regionalisation_wizard.emit)
self.exportButton.pressed.connect(signals.export_recipe.emit)
self.technologyFileButton.pressed.connect(signals.add_technology_file.emit)
self.marketsButton.pressed.connect(signals.markets_wizard.emit)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
This is an "improvement" of imbalance learn's RandomUnderSampler [1]_
by only accepting a dictionary for the ratio argument and supports
float value indicating the proportional sampling.
Parameters
----------
ratio : dict[(int, int/float)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
note=note, clocked_in=time_in, dept=dept)
# Any event remaining in events dict is not clocked in
not_clocked_in = events
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
from torchvision import transforms, datasets
import torch.utils.data as data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
train = open("newsgroup.txt",'w', encoding="utf8")
for i in new_fd:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
new_company.STATUS_COMPANY = "No verify"
new_company.user = request.user
new_company.save()
return redirect('catalog')
return render(request, 'customer/register.html', {'form': form})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const tsFiles = this.targetFileFilter(allTsFiles, option);
const dupLibDirs = tsFiles
.filter((tsFile) => tsFile.split('/').length > 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'grantId': req['grantId'],
'transmitExpireTime': txTime,
'response': {
'responseCode': rspCode
}
} ]
... | 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.