seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
MODELFILE_NAME="div_test_broadcast.tflite"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[allow(unused, non_camel_case_types)]
pub mod usb;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if mac is not None:
gw_arr = ip.split(".")
gw_arr[3] = "1"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
key=s[pi]
p[key]=0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from numpy import isin
class Metric(Enum):
EUCLIDEAN = 0
MANHATTAN = 1
HAMMING = 2
L2 = 3
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
for topology_key, potential_key in self.slot_map.items():
smirks = potential_key.id
n = potential_key.mult
parameter = parameter_handler.get_parameter({"smirks": smirks})[0]
# n_terms = len(parameter.k)
if topology_key.bond_order: # type: ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .._abc._entity import _EuclideanGeometryEntityABC
class SphereInRD(_EuclideanGeometryEntityABC):
pass
# aliases
Sphere = SphereRD = SphereInRD
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Optional args"
echo "-o <output path for generated image, default is . (current directory)>"
echo "-p <prepend output file prefix ...warning initrd will not use>"
echo "-h or ? [show this help]"
}
if [ $# -eq 0 ]
then
show_help
exit 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# array of random strings
random_strings = list(generate_random_strings())
# Testing validity of the generated strings (OP)
@pytest.mark.parametrize("random_string", random_strings)
def test_random_string(random_string):
"""
Test that the random string is a string.
"""
assert isinstance(random_strin... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
m_hModule = nullptr;
m_pEngine = nullptr;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
key = json.loads(key_file.read())['key']
api = Blocks(api_key=key)
reward = api.get_block_reward(2165403)
print(reward)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TERMUX_PKG_DEPENDS="libcurl, openssl, libssh2, zlib"
TERMUX_PKG_BREAKS="libgit2-dev"
TERMUX_PKG_REPLACES="libgit2-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_CLAR=OFF"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="card border">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import datetime
from multiprocessing import Process
import Data.DataProcessing as dp
from os import path, mkdir
import MotionDetection
from datetime import datetime
import Database.Commands as db_commands
class FaceAnalyzer():
def __init__(self, tolerance=0.6, model='haar'):
self.__worker = Non... | ise-uiuc/Magicoder-OSS-Instruct-75K |
idx = io.getInt();
if (!pq.contains(idx)) {
io.print("error\n");
return;
}
pq.delete(idx);
break;
case 'P': // poll
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from google.cloud import automl
client = automl.AutoMlClient()
def get_operation_details(operation_id: str):
response = client._transport.operations_client.get_operation(operation_id)
if response.done:
if response.error.code != 0:
operation_status = "Failed"
error_message = re... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from wtforms import Form, TextField, TextAreaField, SelectField
from wtforms import validators, StringField, SubmitField, DateField
from wtforms import IntegerField
# App config.
DEBUG = True
app = Flask(__name__)
app.config.from_object(__name__)
app.config['SECRET_KEY'] = '<KEY>'
wbs_flag = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def search_page(hitcon_zeroday_base_url, hitcon_zeroday_category_url):
last_page_num = get_last_page_num(hitcon_zeroday_category_url)
msg_list = []
msg_list_len = len(msg_list)
for page_num in range(1, last_page_num+1):
page_url = urljoin(hitcon_zeroday_category_url, f"page/{page_num}")
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
s = 'aBc'; print(s.isupper(), s)
s = 'abC'; print(s.isupper(), s)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# a, b, c are used with determining interception.
# It is more efficient to calculate them once in the construction
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# update the EXIF Decription field with the real postal address
def _updateDescription(self, fileAddress, locationAddress, addToFormer=False):
# reading exif
exifDict = piexif.load(fileAddress)
newDict = exifWriter.writeField(exifDict, DESCRIPTION_FIELD, locationAddress, addToFormer)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
echo Exiting `pwd`/.travis-build-without-test.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import DREAM.Settings.TimeStepper as TimeStepper
from DREAM.Settings.Equations.ElectricField import ElectricField
from DREAM.Settings.Equations.ColdElectronTemperature import ColdElectronTemperature
ds = DREAMSettings()
# set collision settings
ds.collisions.collfreq_mode = Collisions.COLLFREQ_MODE_FULL
| ise-uiuc/Magicoder-OSS-Instruct-75K |
avatar_url = user_info.get('avatarUrl', '')
watermark = user_info.get('watermark', {})
appid = watermark.get('appid', '')
timestamp = watermark.get('timestamp', None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fig_t.tight_layout()
# ============================================================================ #
# save
for ext in ['.png', '.svg']:
fig_t.savefig(filebase + '_t' + ext)
# ============================================================================ #
# show
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.color = color
self.emission = emission
self.roughness = roughness
self.ior = ior
if not texture is None:
self.texture = os.path.abspath(texture)
else:
self.texture = ""
self.texture_frequency = texture_frequency
self.id = id
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# The distance between two points on the X-Y plane is the Euclidean distance (i.e., √(x1 - x2)2 + (y1 - y2)2).
# You may return the answer in any order. The answer is guaranteed to be unique (except for the order that it is in).
# Example 1:
# Input: points = [[1,3],[-2,2]], k = 1
# Output: [[-2,2]]
# Explanation:
#... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
pub mod masternode_list;
pub mod quorum_entry;
pub mod masternode_entry;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Autowired
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
cursor.execute(query, data)
id = cursor.lastrowid
cxn.commit()
cursor.close()
return id
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl MulAssign for Color {
fn mul_assign(&mut self, other: Color) {
self.r *= other.r;
self.g *= other.g;
self.b *= other.b;
}
}
pub type FresnelIndex = Color; | ise-uiuc/Magicoder-OSS-Instruct-75K |
def hard_copy(targ_net, net):
for p_target, p in zip(targ_net.parameters(), net.parameters()):
p_target.data.copy_(p.data)
return targ_net
def soft_copy(targ_net, net, tau):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#sehingga pengisian parameter bersifat opsional
def say_hello(nama="aris"): #menggunakan sama dengan lalu ketik default value nya
print(f"Hello {nama}!")
say_hello("karachi")
say_hello() #akan error jika tidak default argumen tidak dipasang, tetapi jika dipasang maka akan keluar hasil yg default
#bagaimana... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use error::Error;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
extension WalletHistoryBackgroundView: HistoryBackgroundViewProtocol {
func apply(style: HistoryViewStyleProtocol) {}
func applyFullscreen(progress: CGFloat) {
sideLength = minimizedSideLength * progress
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.code = randint(100,999)
self.email = email
self.time = datetime.now()
def __str__(self):
return str(self.code)
@classmethod
def last_code(cls, email):
return (cls.query.filter(cls.email == email).order_by(cls.time.desc()).first()).code
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tagToFunction = {f'{MEI_NS}dot': dotFromElement,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<li class="liuser"><a class="auser" href="{{route('cancel.user')}}">Cancel Order</a></li>
<li class="liuser"><a class="auser" href="{{route('logout')}}">Log out</a> </li>
</ul>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hallway = np.array([1, 1, 0, 0, 0, 0, 0, 0, 1, 0])
reading = 1
scaled_update(hallway, belief, reading, prob=0.75)
belief /= sum(belief);
print("belief:", belief)
print ("sum = ", sum(belief))
plt.figure()
bp.bar_plot(belief).show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public int getStructureId() {
return structureId;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@section('content')
<div class="panel panel-default" id="vue-processos">
<div class="panel-heading hidden-print" id="cabecalho-processos">
<div class="row">
<div class="col-md-3">
<h3><span>@{{ tables.processos.total }}</span> Processo<span>@{{ tables.process... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from djangomail.backends.base import BaseEmailBackend
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# This sample tests the special-case handling of Self when comparing
# two functions whose signatures differ only in the Self scope.
class SomeClass:
def __str__(self) -> str:
...
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('gender', models.CharField(max_length=20, null=True, choices=[('male', 'Male'), ('female', 'Female')], blank=True)),
('city', models.CharField(max_length=250, null=True, blank=True)),
('dob', models.DateField(null=True, blank=True)),
('locale', models.Cha... | ise-uiuc/Magicoder-OSS-Instruct-75K |
payload: Store;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
created=created,
)
for (id, image, description, created) in data
]
finally:
cur.close()
def get_by_subsciber(
self, conn: sqlite3.Connection, user: UserModel
) -> list[ReturnPostModel]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise IOError
@staticmethod
def apply_config(app, config):
for k, v in config.items():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param nbDifferences
* Number of expected differences between o1 and o2
* @return The differences list when calling
*/
List<Difference> execTestCompareOneType(Object o1, Object o2, int nbDifferences) {
// Different
assertEquals(1, deepComparator.differences(o1, null, Integer.MAX_VALUE).size())... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
func switchToMainView(win: UIWindow) {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: "main") as UIViewController
present(vc, animated: true, completion: nil)
let prefs = UserDefault... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def filter_all(self, cells, filter_properties):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
service.update(command);
}
return new ModelAndView(new RedirectView(getSuccessView(), false));
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
install_asm
# download the Apigeectl utility
download_apigee_ctl
# configure the Apigee override parameters
prepare_resources
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_error_no_ext(nb_file=list_notebooks()[0]):
with pytest.raises(ValueError):
cli_jupytext([nb_file])
def test_error_not_same_ext(nb_file=list_notebooks()[0]):
with pytest.raises(TypeError):
convert_notebook_files([nb_file], fmt='py', output='not.ext')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
use std::{fs, path::PathBuf};
use clap::{Arg, ArgMatches};
use casper_node::crypto::asymmetric_key::SecretKey;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var genericTypeArgument = Activator.CreateInstance(attrType, new object[] { argType }) as Attribute;
builder.AddCustomAttributes(activityType, new DesignerAttribute(designerType), DesignerMetadata.Category, genericTypeArgument);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plot=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// unsafe {
// let __jni_args = [];
// let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telephony/CellSignalStrength\0", "<init>\0", "()V\0");
// __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
// }
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#and * is that figure multiply one by one
# original function is y = [0.1,0.2] * [[100个],[100个]]+0.3
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Example 2:
Input: [[1,2,3],[4,5,6]]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
from .clone import ( # noqa
BasicRemapper,
CloneRemapper,
GraphCloner,
GraphRemapper,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public $records = [
['company_id' => 1, 'company_name' => 'Vintage Stuff Manufactory'],
['company_id' => 2, 'company_name' => 'Modern Steam Cars Inc.'],
['company_id' => 3, 'company_name' => 'Joe & Co Crate Shipping Company']
];
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
| {
create?: IndividualFieldAccessControl<FieldCreateAccessArgs<GeneratedListTypes>>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from moabb.datasets import utils
import unittest
class Test_Utils(unittest.TestCase):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@IsOptional()
readonly title: [];
@IsArray()
@IsOptional()
readonly body: [];
@IsArray()
@IsOptional()
readonly tags: [string];
@IsArray()
@IsOptional()
readonly marks: MarksI
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
An error that indicates an rcode of 5 was returned by a dns message.
'Refused - The name server refuses to perform the specified operation for policy reasons. For example, a name
server may not wish to provide the information to the particular requester, or a name server may not wish to perform
a part... | ise-uiuc/Magicoder-OSS-Instruct-75K |
new SymbolStyle
{
Fill = new Brush {Color = Color.Gray},
Outline = new Pen(Color.Black),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SimpleMDDateSelectTest(TestCase):
"""Simple MDDateSelect Test."""
def setUp(self):
"""Setup."""
self.widget = MDDateSelect()
def test_type(self):
"""The widget should inherit SelectDateWidget."""
self.assertIsInstance(self.widget, SelectDateWidget)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
base_dir = "/home/lakin/wallpapers"
ln_wallpaper1 = "cp \"{0}\" /tmp/.wallpaper1"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assignments = self.content.get_assignments(course)
for assignment in assignments:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SntpClientOperationModeEnum(str, Enum):
SNTP_DISABLE = "SNTP_DISABLE"
SNTP_UNICAST_MODE = "SNTP_UNICAST_MODE"
SNTP_BROADCAST_MODE = "SNTP_BROADCAST_MODE"
SNTP_DHCP_MODE = "SNTP_DHCP_MODE"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->user_model->bonus($this->input->post("id"));
flashSuccess('修改資料成功。');
// 導回原本的頁面
$panel= $this->input->post("panel");
$row=select_submenu($panel);
redirect($row["link"], 'refresh');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dotnet build --configuration Release
#dotnet publish
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
assert self._solved, 'you need to solve first.'
m, n = self.A.shape
numer = [
np.abs(np.dot(self.c, point) - np.dot(self.dual, self.b))
for point in points
]
numer = sum(numer)
denom = 0
for i in range(m):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
aoc_runner_derive::aoc_main! {lib=aoc_2020}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if !ok {
panic!(errors::VMError::from(errors::RuntimeError::new("Virtual allocation failed")));
}
Value::Null
}
})
});
}
fn get_children(&self) -> Vec<usize> {
if let Some(ref rt_in... | ise-uiuc/Magicoder-OSS-Instruct-75K |
};
///
/// Writes to all color channels (red, green, blue and alpha).
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except Exception:
print("Can't open file")
if __name__ == "__main__":
libKey = sys.argv[2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
AZ::Vector3(50.0f, 50.0f, 10.0f), AZ::Vector3(0.0f, 0.0f, 1.0f), 20.0f, false, AZ::Vector3( 0.0f, 0.0f, 0.0f), AZ::Vector3(0.0f, 0.0f, 0.0f)},
// The following tests are specific cases that worked differently when the implementation of GetQuadRayListIntersection used AZ::Intersect::IntersectRayQu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import Foundation
extension WKWebViewConfiguration {
static var shared : WKWebViewConfiguration {
if _sharedConfiguration == nil {
_sharedConfiguration = WKWebViewConfiguration()
_sharedConfiguration.websiteDataStore = WKWebsiteDataStore.default()
_sharedConfiguration.us... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.current += 1;
let val = from_value(std::mem::take(arg));
self.res(val)
} else {
panic!("not enough arguments for rpc call {:?}", self.name);
}
}
/// Parse an optional argument, return `None` if arguments list is exhausted.
pub fn arg_opt<... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"$DIR/../bin/traveller.php" < "$DIR/input.txt" > "$DIR/output.txt" \
&& diff "$DIR/expected_output.txt" "$DIR/output.txt" && echo "OK!" || echo "Wrong!"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="container">
<div class="login-container">
<div id="output"></div>
<div class="avatar"></div>
<div class="form-box">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if write_debug == True:
sdf = decoder_ref(queries)
inputs_col = torch.cat([latent_repeat_color, queries], 1)
color = decoder_col(inputs_col)
latentxyz = queries
else:
latentxyz = decoder_deform(inputs_geom,write_debug)
sdf = decoder_ref(queries+latentxyz)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Revision ID: 7e15c6b3d73b
Revises: <PASSWORD>
Create Date: 2016-08-27 18:15:32.180825
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<KEY>7'
from alembic import op
import sqlalchemy as sa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$formInput=$request->except('delivery','payment','method');
Auth::user()->userInfo()->create($formInput);
$orderInput['total']=intval(Cart::subtotal(2,'.',''));
$orderInput['items']=Cart::count();
$orderInput['name']=Auth::user()->name;
$orderInput['email']=Auth::user()->... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Default is None. If set, a centre crop will be generated from the patch of the specified size
"""
if not os.path.isdir(output_path):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/bin/bash ${SCRIPT_DIR}/publish-all-lambda-layers.sh
# Perform the bump
/bin/bash ${ROOT_DIR}/bump.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-c ./index.js \
--fix \
--ext .js,.vue \
test/resources/js/ test/*.js \
--global axios,$,_,__VERSION
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res = []
# logging.info("multiprocess enabled, process num: %d" % (self.process_num))
process_p = multiprocessing.Pool(self.process_num)
data_length = len(data)
size = math.ceil(data_length/ self.process_num)
for i in range(self.process_num):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mkdir _debug
cd _debug
cmake .. \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int i = size; i < len_elements; i++)
UT_ASSERTeq(persistent_map->count(elements[i]), 0);
}
}
static void
test(int argc, char *argv[])
{
if (argc != 3 || strchr("coi", argv[1][0]) == nullptr)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dependencies = [
('property', '0018_auto_20200505_1853'),
]
operations = [
migrations.AlterField(
model_name='flat',
name='liked_by',
field=models.ManyToManyField(blank=True, related_name='liked_posts', to=settings.AUTH_USER_MODEL, verbose_name='Кто лайкн... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "Scene/Terrain.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public int getEnchantmentValue() {
return 9;
}
@Override
public SoundEvent getEquipSound() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case issue_date = "issue-date" // "-" cant be parsed because it's invalid as a variable name in swift
case action_date = "action-date" // "-" cant be parsed because it's invalid as a variable name in swift
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if sys.version_info[0] < 3:
from urllib import urlencode
else:
from urllib.parse import urlencode
_ = PluginInternationalization('Realhook')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
&error); // Reference to the error.
g_hash_table_destroy(attributes);
if (error != NULL) {
*errStr = std::string(error->message);
g_error_free(error);
return FAIL_ERROR;
}
GList* current = items;
for (current = items; current != NULL; current = current->next) {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
mobileIcon?: boolean
disclosure?: UseDisclosureProps
}
export type IMenuItemProps = {
text: string
isActive: boolean
href: string
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!stringifiedToken) {
return undefined
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._output['totalOrganizationWideNonRoadMobileSourceFuelUsageAndEmissions'] = \
| 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.