seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
}
for locator in self.locators.iter() {
// try and find locator with the same key in the other HashMap
if let Some(other_impl_locator) = other.locators.get(locator.0) {
if *other_impl_locator != *locator.1 {
return false;
}
} else {
return false; // no such locator in the other HashMap
| ise-uiuc/Magicoder-OSS-Instruct-75K |
method = klass.get_method(method_name, method_describ)
is_initialization_method = method_name in ['<init>', '<clinit>']
super_class_name = frame.klass.constant_pool[
frame.klass.constant_pool[frame.klass.super_class].name_index
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
energy -= energyNeeded
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Name of the step. Used to make the error messages and log "
"information more comprehensible.");
addParent<PolyConfig>();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response = mybolt.analogRead('A0') #Read the values
data = json.loads(response) #store the response given recieved in JSON format
if data['success'] != 1: # To detect if the value recieved contains keyword success and corresponding value should be 1 denoting STATUS OK
print("There was an error and error is " + data['value'] )
time.sleep(10)
continue
print ("This is the value "+data['value']) #To print the Analog Value received form the Bolt WiFi Module
try:
moist=(int(data['value'])/1024)*100 #To convert the vales in Percentage
moist = 100 - moist #To find the moisture content left in soil out of total 100%
print ("The Moisture content is ",moist," % mg/L")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'data' => $tables,
], 200);
///************ */
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
do {
return try decoder.decode(type, from: data)
} catch(let error) {
throw TinyNetworkingError.decoding(error, self)
}
}
}
private extension Data {
var prettyJSONString: NSString? {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if !buckets.contains(&node_wrapper.node.id) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use std::fs;
fn main() {
let contents = fs::read_to_string("input").unwrap();
let mut count1 = 0;
let mut count2 = 0;
for line in contents.lines() {
let v: Vec<_> = line.split(':').collect();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (w <= 8)
return FontWeight.Semibold;
if (w == 9)
return FontWeight.Bold;
if (w <= 12)
return FontWeight.Ultrabold;
return FontWeight.Heavy;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ff = FFWfrUtils('fourfront-cgapwolf')
assert ff.env == 'fourfront-cgapwolf'
@pytest.mark.portaltest
def test_ff_key():
"""This test requires connection"""
ff = FFWfrUtils('fourfront-cgapwolf')
assert ff.ff_key.get('server') == 'http://fourfront-cgapwolf.9wzadzju3p.us-east-1.elasticbeanstalk.com'
def test_wfr_metadata():
ff = FFWfrUtils('fourfront-cgapwolf')
ff._metadata['jobid'] = {'a': 'b'}
assert ff.wfr_metadata('jobid') == {'a': 'b'}
def test_wfr_output():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if factor * factor != num and factor != 1:
factors.append(num // factor)
factor += 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# }
# }
# long largest_power(long N)
# {
# //changing all right side bits to 1.
# N = N| (N>>1);
# N = N| (N>>2);
# N = N| (N>>4);
# N = N| (N>>8);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
put $auth "/role/user.$user" '{
"roleId": "user.'$user'",
"description": "Personlig rolle for '$user'",
"paths": {
"includes": ["/user/'$user'/"]
},
"maxValuation": "SENSITIVE"
}' 201
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Colored line example: "#318CE7Hello #FECF3DWorld#309831!#r default colored text"
Use #xxxxx to set color
Use #r to reset color to console default
Flag #r automatically appends to end of string
"""
from .rainbow_console import paint, rainbow_print
from .rainbow_console import rainbow_print as print | ise-uiuc/Magicoder-OSS-Instruct-75K |
widget=forms.Textarea(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@pytest.mark.parametrize('nelem,masked',
list(product([2, 10, 100, 1000],
[True, False])))
def test_applymap_round(nelem, masked):
# Generate data
np.random.seed(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from benchml.test import TestMock
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def preprocess(self,text):
result = []
#prreprocess the tweets, i.e, removing links, rt, username
text = re.sub(r'@\w+','',text)
text = re.sub(r'http:\/\/\w+(\.\w+)*','',text)
#print(text)
for token in simple_preprocess(text):
if token not in STOPWORDS and len(token)>3:
result.append(self.lemmatizeText(token))
return result
def deleteAt(self,text):
text = re.sub(r'@\w+','',text)
return text
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
log = getLogger('plugins.digsby_geoip')
DIGSBY_VERSION_NS = 'digsby:iq:version'
class Digsby_IqVersion(AddOn):
def __init__(self, subject):
self.protocol = subject
super(Digsby_IqVersion, self).__init__(subject)
def setup(self, stream):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm -rf /root/.cache/*
rm -rf /var/cache/*
rm -rf /var/tmp/*
rm -rf /tmp/*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
open_notification("Oops! Something went wrong.", data.response, false, 1);
else {
open_notification("Awesome!", data.response, false);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
countries_of_recruitment = Array()
contacts = Json()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// PackageCell.swift
// PakTrak
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .treewalk import TreeWalker
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FLApprovedItemsFilter = _Class("FLApprovedItemsFilter")
FLHSA2PasswordResetNotification = _Class("FLHSA2PasswordResetNotification")
FLItemChangeObserver = _Class("FLItemChangeObserver")
FLApprovedItemsDecorator = _Class("FLApprovedItemsDecorator")
FLHSA2LoginNotification = _Class("FLHSA2LoginNotification")
FLDaemon = _Class("FLDaemon")
FLGroupViewModelImpl = _Class("FLGroupViewModelImpl")
FLTopLevelViewModel = _Class("FLTopLevelViewModel")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.apache.hadoop.util.Progressable;
/** Dummy Output Format Class so Hive will create Trevni files. */
public class TrevniOutputFormat<K extends WritableComparable<K>, V extends Writable>
extends HiveOutputFormatImpl<K,V> implements HiveOutputFormat<K,V> {
@Override
public RecordWriter getHiveRecordWriter(JobConf jc, Path finalOutPath,
final Class<? extends Writable> valueClass, boolean isCompressed,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#Translate Acc Grp IDs
if 'accountGroupIds' in role:
new_ids = []
for index in range(len(role['accountGroupIds'])):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with op.batch_alter_table('social_group_individual_membership', schema=None) as batch_op:
batch_op.create_index(batch_op.f('ix_social_group_individual_membership_created'), ['created'], unique=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert len(results) == 2
if __name__ == '__main__':
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// resp.erase("explanation");
// printf("REST: Request OK: %s\n", resp.dump().c_str());
printf("Request completed in %.6f sec\n", cpu_time);
} catch (runtime_error& e) {
printf("REST error: %s\n", e.what());
response.headers().add<Http::Header::AccessControlAllowOrigin>("*");
response.send(Pistache::Http::Code::Bad_Request, e.what());
}
}
// for endpoint definition see start_rest_server(), in rest_api.h
void _v1_all(const Rest::Request& request, Http::ResponseWriter response) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not args.shapefile:
parser.error('-s --shapefile Shapefile of channel heads not given')
if not args.template:
parser.error('-t --template Raster to use as template not given')
if not args.output:
parser.error('-o --output Name of output raster of weights not given')
return(args)
#shp_fn = 'Travis-Flowlines-MR-HUC120902050408_dangle.shp'
#rst_fn = 'Travis-DEM-10m-HUC120902050408buf.tif'
#out_fn = 'Travis-DEM-10m-HUC120902050408bufwg.tif'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
description = 'A library to load the MNIST database of handwritten digits into numpy arrays.',
author = 'daniel-e',
author_email = '<EMAIL>',
url = 'https://github.com/daniel-e/mnistdb',
download_url = 'https://github.com/daniel-e/mnistdb/archive/0.1.5.tar.gz',
keywords = ['mnist', 'ml', 'machinelearning'],
classifiers = [],
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
npt.assert_almost_equal(obs[1], exp[1])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert err.value.errors == [{"loc": ["bar"], "msg": "negative"}]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// content in the cache if you add to it. If the content is exactly the same
/// it should be seen as the same and not as a replacement.
///
/// Note that the internal details as to how it ensures the correctness is
/// up to the cache implementation. The content should not be assumed valid
/// until some result is returned.
///
/// Normally, one would default to saying that the content is non-deterministic
/// but if the content is known to be deterministic by some measure, then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
min_distance = np.inf
min_class = 0
# Find the minimum distance and the class
for idx in range(len(X_0)):
dist = np.linalg.norm(X - X_0[idx])
if dist < min_distance:
min_distance = dist
min_class = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Args:
samples (SampleBatch): Batch of samples to optimize.
policies (dict): Dictionary of policies to optimize.
local_worker (RolloutWorker): Master rollout worker instance.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NOTE: The controller is set to `LAST` priority by default.
"""
def __init__(self, config):
assert isinstance(config, dict)
config.setdefault('priority', 'LAST')
super().__init__(config)
self.num = config.get('num', 50000)
self.ignore_cache = config.get('ignore_cache', False)
self.align_tf = config.get('align_tf', True)
self.file = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
learning=project.learning,
tech=project.tech,
tools=project.tools)
session.add(project)
await session.commit()
await session.refresh(project)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
input="${@:2}"
cmd="ssh -N"
for port in $input; do
cmd="$cmd -L $port:localhost:$port"
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertCountEqual(
{'scheme_code': 'C002',
'total_launched_awcs': 20,
'dataarray1': [
{
'state_name': 'st2',
'site_id': 'st2',
'month': date(2017, 5, 1),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>espresso/__init__.py
"""Espresso-Caller: automated and reproducible tool for identifying genomic variations at scale"""
# TODO: is it really necessary for packaging?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import _fileSave
import check
import About
import color
import builtwith | ise-uiuc/Magicoder-OSS-Instruct-75K |
## Heading2!
This is a test sentence.
### Heading3?
This is a test sentence.
`
describe('<Toc/>', () => {
it('returns null if the markdownText dose not exist', () => {
const component = renderer.create(<Toc markdownText={''} />)
const tree = component.toJSON()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the
# names of its contributors may be used to endorse or
# promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case BscApiType.RPC: return 'https://data-seed-prebsc-1-s1.binance.org:8545';
case BscApiType.EXPLORER: return 'https://api-testnet.bscscan.com/api';
default:
throw new Error("Bsc API - Unknown api type " + type);
}
default:
throw new Error("Bsc API not supported for network template " + networkTemplate);
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
$nodeName = $_GET["node"];
$instanceIdx = $_GET["idx"];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _viso2.delete_track
__del__ = lambda self: None
track_swigregister = _viso2.track_swigregister
track_swigregister(track)
class MatchVector(_object):
"""Proxy of C++ std::vector<(Matcher::p_match)> class."""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MatchVector, name, value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
shop = GoCardlessShop()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
it('skips changelog for configured libraries', async () => {
const strategy = new DotnetYoshi({
targetBranch: 'main',
github,
path: 'apis/Google.Cloud.Spanner.Admin.Database.V1',
component: 'Google.Cloud.Spanner.Admin.Database.V1',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.initBucket();
}
async initBucket(): Promise<void> {
const createBucketCommand = new CreateBucketCommand({ Bucket: this.bucketName });
await this.storageClient.send(createBucketCommand);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']) ?></li>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Asd
*/
class Manager {
private:
/**
* @brief Objekt Správce vstupů
*
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param key 关键字
* @return
*/
public boolean isValid() {
return isValid(_filename);
}
public boolean isValid(String filename) {
long nowTime = new Date().getTime();
File file = new File(filename);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int i = 1; i <= n; i++) {
sum += i;
}
return sum;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# file_intersect = sorted(list(set(infile1_ls).intersection(infile2_ls)))
#
# # for word in file_intersect:
# # print(word, file=args.outfile)
# --------------------------------------------------
if __name__ == '__main__':
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 2. looping over tasks in the run file
## 2.1 get the list of tasks
self.task_list = self.run_info['run_file']['task_name'].tolist()
self.task_obj_list = [] # a list containing task objects in the run
for t, self.task_name in enumerate(self.task_list):
# get the task_file_info. running this will create self.task_file_info
self.get_taskfile_info(self.task_name)
# get the real strat time for each task
## for debugging make sure that this is at about the start_time specified in the run file
real_start_time = self.timer_info['global_clock'].getTime() - self.timer_info['t0']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Solution:
def isValid(self, s: str):
if not s:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Accept": "application/json, text/plain, */*",
"recaptcha": "<KEY>",
"X-CSRF-TOKEN": "<KEY>",
"X-Requested-With": "XMLHttpRequest",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[derive(Debug, Copy, Clone, strum::IntoStaticStr)]
pub(crate) enum Endpoint {
Compile,
Execute,
Format,
Miri,
Clippy,
MacroExpansion,
MetaCrates,
MetaVersionStable,
MetaVersionBeta,
MetaVersionNightly,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self._run_query("MATCH(n:IP)-[:RESOLVES_TO]-(y:DomainName {tag: \'A/AAAA\'}) "
"RETURN { IP: n.address , Domain: y.domain_name } AS entry")
def create_cms_component(self, path):
"""
Create nodes and relationships for cms client.
-------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expectType<InvalidNameError>(new InvalidNameError('foo'));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(red_and_blue([-1, -2, -3, -4, -5], [-1, -2, -3, -4, -5]), 0)
def test_4(self):
self.assertEqual(red_and_blue([0], [0]), 0)
if __name__ == "__main__":
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$result = $calculator->calculateChange(3.6, 5, $this->existingCoins);
$this->assertEquals(3, count($result));
$this->assertEquals(1, $result[0]->getValue());
$this->assertEquals(0.2, $result[1]->getValue());
$this->assertEquals(0.2, $result[2]->getValue());
$this->assertEquals($initialAmountOf100 - 1, count($this->existingCoins[100]));
$this->assertEquals($initialAmountOf50, count($this->existingCoins[50]));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class MenuSeed extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.__class__.__name__))
def parse_object(self, retailer, result, additional_defaults=None):
uid = self.get_dict_value(result, 'id')
defaults = self.parse_json_object(result)
defaults['retailer'] = retailer
if additional_defaults:
for key in additional_defaults:
defaults[key] = additional_defaults[key]
defaults['retrieved'] = timezone.now()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# This will also fail if the urlconf is not defined.
self.assertEquals(acc.get_absolute_url(), '/fin/acc/1/')
def test_meta(self):
acc = Account.objects.get(id=1)
order = acc._meta.ordering
self.assertEquals(order,['name'])
def test_delete_cascade(self):
AccountType.objects.get(id=1).delete()
self.assertEqual(len(Account.objects.all()),0)
class TransactionTest(TestCase):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.num_invalid_predecessors[start] = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<title>User Profile</title>
</head>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return result.ToNgAlainMenus();
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
#[rustc_dummy = b"ffi.rs"] //~ ERROR non-ASCII character in byte constant
fn main() {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export TOOL_REPO=${CCI_HOME}/work/toolchain-vec
export GCC_REPO="${TOOL_REPO}/riscv-gnu-toolchain-vec"
export GCC_COMMIT="5842fde8ee5bb3371643b60ed34906eff7a5fa31"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
svn commit
popd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f_lin_param_dae):
return LinearParameterDAE(*param_vars, e_lin_param_dae, a_lin_param_dae,
f_lin_param_dae, 2)
@pytest.fixture
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut password = ['-'; 8];
let mut used = [false; 8];
let mut found = 0;
let mut printed = 0;
for hash in Hasher::new(input) {
let c1 = hash.chars().nth(5).unwrap();
let c2 = hash.chars().nth(6).unwrap();
if valid_pos(c1) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'kar' => 'audio/midi',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def run_devnet():
devnet_port, proc = start_devnet()
yield f"http://localhost:{devnet_port}"
proc.kill()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
version https://git-lfs.github.com/spec/v1
oid sha256:7b9cc5f1e4593005598b9f2ceffb835da1234cb4b38300252dc1582d342c959f
size 1241364
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'description',
'last_seen_at',
'posted_by',
'reward',
'found_at',
'found_by',
];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
("initial", initial as Any),
("status", status)
]
return Mirror(self, children: children)
}
// MARK: - Private
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'RU-BA' => [139, 38],
'RU-BEL' => [40],
'RU-VLA' => [89],
'RU-VGG' => [41, 67],
'RU-VOR' => [43],
'RU-IRK' => [73, 46, 74],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
GPIO.setmode(GPIO.BCM)
BUZZER = 20 #GPIO for buzzer
GPIO.setup(BUZZER, GPIO.OUT)
# Sounds the buzzer for 1 second when invoked
def sound_buzzer():
GPIO.output(BUZZER, True)
time.sleep(1)
GPIO.output(BUZZER, False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Contracts.DAL.App.Repositories
{
public interface IRestaurantRepository : IBaseRepository<DalAppDTO.Restaurant>
{
void GetTopRestaurants();
Task<DalAppDTO.Restaurant?> GetRestaurantWithMenuAsync(Guid id, Guid userId = default, bool noTracking = true);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TSource? first = source.TryGetFirst(out bool found);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super(LayerBiVanilla, self).__init__(input_dim, hidden_dim, gpu)
self.num_layers = 1
self.num_directions = 2
self.rnn = nn.RNN(input_size=input_dim,
hidden_size=hidden_dim,
num_layers=1,
batch_first=True,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
id_ad = univ.ObjectIdentifier(
(
1,
3,
6,
1,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod fixed_property;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result = plugin.get_private_key_list(
**connection_parameters(server_uname=cy_wrong_account, server_ip=cy_asset)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Dependencies
import pytest
# The module to test
from dimsim.core.model import get_distance, get_candidates
def test_distance_near():
dist = get_distance(u'大侠', u'大虾')
assert dist == 0.0002380952380952381
| ise-uiuc/Magicoder-OSS-Instruct-75K |
view.backgroundColor = UIColor.yellow
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
from . import _BASE_WEB_INTERFACE,_BASE_API_BILIBILI_COM_X,_BASE_API_BILIBILI_COM,_BASE_API_BILIBILI_COM_X_V2
CARD="%s/card" % _BASE_WEB_INTERFACE
NAV="%s/nav" % _BASE_WEB_INTERFACE
RELATION_STAT="%s/relation/stat" % _BASE_API_BILIBILI_COM_X
FAV_FOLDER="%s/fav/folder" % _BASE_API_BILIBILI_COM_X_V2 | ise-uiuc/Magicoder-OSS-Instruct-75K |
stats['id'] = self.get_id()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
UserSettingViewData.sectionHeader(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
newIm.resize((newWidth, newHeight), image.ANTIALIAS).convert('RGB').save(arg['out_path'], quality=arg['quality'])
if __name__ == '__main__':
clipResizeImg(path='/home/xiaoc/2.jpeg', out_path='/home/xiaoc/2.out.jpeg', width=1220, height=604, quality=85) | ise-uiuc/Magicoder-OSS-Instruct-75K |
my_maj_cnt = grobj.apply(lambda x: len(x['my_preds'].value_counts())==1).sum()
monkey_maj_cnt = grobj.apply(lambda x: len(x['monkey'].value_counts())==1).sum()
my_f1 = my_f1_dist.mean()
monkey_f1 = monkey_f1_dist.mean()
stat, pval = ttest_1samp(my_f1_dist, monkey_f1_dist.mean())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def cross_stitch_to_pattern(self, _image):
# this doesn't work well for images with more than 2-3 colors
max_dimension = max(_image.size)
pixel_ratio = int(max_dimension*MINIMUM_STITCH_LENGTH/(4*25.4))
if pixel_ratio != 0:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super(ShortUrl, self).save(*args, **kwargs)
def __str__(self):
return str(self.url)
def get_short_url(self):
# url_path = reverse("shortcode", shortcode=self.shortcode)
return "http://localhost:8000" + reverse("shortcode", kwargs={"shortcode": self.shortcode})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
leftover_ranks = np.setdiff1d(all_ranks,ranklist)
| 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.