seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def __result_interpretation(self, path_info, elapsed_time):
self.calculation_time = elapsed_time
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import ts from 'typescript';
export declare function parseStaticEncapsulation(staticMembers: ts.ClassElement[]): "none" | "shadow" | "scoped";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
image_files = glob.glob(f'/data/spec/*/*')
train_filenames, validation_test_filenames = train_test_split(
image_files,
train_size = 0.8,
test_size = 0.2,
random_state = 24601
)
validation_filenames, test_filenames = train_test_split(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return cls(images)
@classmethod
def from_startend_sites(
cls,
structure: Structure,
site_start: int,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, shape):
self.shape = shape | ise-uiuc/Magicoder-OSS-Instruct-75K |
# From: <NAME> <<EMAIL>>
# The model holds "" for non-occupied entries and something else for
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Constants.swift
// InternalConstantsNamespace
//
// Created by Danno on 3/7/18.
// Copyright © 2018 Daniel Heredia. All rights reserved.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_unmatched_close_paren_error(self):
text = StringIO("if)")
with self.assertRaises(RuntimeError):
list(lex(text)) # consume the generator
class TestFindCommand(TestCase):
def test_command_not_found_error(self):
text = StringIO("if()")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _pyro_norm(self, argument, normord):
\"""This works around numpy.linalg norm not working with scalars.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
build_dir.mkdir()
bin_file = base_dir.name + ".bin"
bin_file = build_dir / bin_file
bin_file.touch()
_build_binary_file_path.return_value = bin_file
flash_binary(test_device.mount_points[0].resolve(), base_dir, build_dir, "TEST", False)
_build_binary_file_path.assert_called_once_with(base_dir, build_dir, False)
_flash_dev.assert_called_once_with(test_device.mount_points[0].resolve(), bin_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BARCODE = 1 if BARCODE else 0
if BARCODE:
if Amt < 20 or Amt > 40000:
warnings.warning('Service provider may not display BARCODE due to Amt is not between 20 and 40000')
if request:
if ReturnURL and not ReturnURL.startswith('http://') and not ReturnURL.startswith('https://'):
ReturnURL = request.build_absolute_uri(str(ReturnURL))
if NotifyURL and not NotifyURL.startswith('http://') and not NotifyURL.startswith('https://'):
NotifyURL = request.build_absolute_uri(str(NotifyURL))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.urls import path
from . import views
app_name = "main"
urlpatterns = [
path("",views.homepage,name="homepage")
] | ise-uiuc/Magicoder-OSS-Instruct-75K |
ENERGY_DIFFERENCE = "energy_difference"
ENERGY_MARKET_PRICE = "energy_market_price"
WANTED_ENERGY = "wanted_energy"
ENERGY_BUY_MAX_PRICE = "energy_buy_max_price"
ENERGY_BUY_STARTING_PRICE = "energy_buy_starting_price"
ENERGY_BUY_PRICE_INCREMENT = "energy_buy_price_increment"
ENERGY_SELL_MIN_PRICE = "energy_sell_min_price"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (mark_progress(PRECOMPILED)) return;
pugi::xml_document& doc = *m_doc;
asset::AssetFont* af = acc.m_assets->add_asset<asset::AssetFont>(m_name.c_str());
af->m_path = m_path;
pugi::xml_node node_font = doc.child("font");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/sh
# Author: <NAME> <<EMAIL>>
# License: MIT, https://opensource.org/licenses/MIT
# Repository: https://github.com/hectorm/hblock
set -eu
export LC_ALL='C'
SCRIPT_DIR="$(CDPATH='' cd -- "$(dirname -- "${0:?}")" && pwd -P)"
# Set base environment.
export HOSTNAME='hblock'
export ETCDIR="${SCRIPT_DIR:?}/etc"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(self.get_output_file_name(
'validation_results.json'), 'w') as file:
json.dump(results, file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# open the app and take a screenshot
self.open(
"https://share.streamlit.io/raahoolkumeriya/\
whatsapp-chat-streamlit/main/app.py")
time.sleep(10) # give leaflet time to load from web
self.save_screenshot("current-screenshot.png")
self.check_window(name="first_test", baseline=True)
# self.assert_text("WhatsApp Chat Processor")
# test screenshots look exactly the same
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[ArrayVec<[u8; MAX_HASH_SIZE]>; MAX_HASH_CHAIN_COUNT],
> = ArrayVec::new();
for i in 0..lmots_parameter.get_hash_function_output_size() as usize {
signature_randomizer.push(i as u8);
}
for i in 0..lmots_parameter.get_hash_chain_count() as usize {
signature_data.push(ArrayVec::new());
for j in 0..lmots_parameter.get_hash_function_output_size() as usize {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return typeName.Replace("Page", string.Empty);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pkg_resources.declare_namespace(__name__)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<p>
{getConversationName(conversation)}
</p>
</Tooltip>
<ContextMenu
anchorPoint={{x: anchorPoint.x, y: anchorPoint.y}}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(right+left)/(right-left), (top+bottom)/(top-bottom), -(far+near)/(far-near), -1, // k
0, 0, -2*far*near/(far-near), 0 // phi
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif self.getProperty("subtype") == "multi":
kwargs = {}
elif season_number != -1:
kwargs = {"season": season_number, "video": video_number}
else:
kwargs = {"video": video_number}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let sub_dir_proxy = io_util::open_directory(
dir_proxy,
&Path::new(&config[..config.len() - 1]),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Define as class (optional)
class TemplateTag {
public static test(){}
public static test2(){}
}
**/
// the 1st argument must be the variable passed in from template, the other args should NOT be variables
// And of course you can change it to load ini/xml files for translation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const enum apiType {
Create = 1 << 0,
FindAll = 1 << 1,
FindOne = 1 << 2,
Update = 1 << 3,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.warn(message, { body: req.body });
return next(createError(403, message));
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// https://leetcode.com/problems/number-of-1-bits/description/
class Solution {
public:
int hammingWeight(uint32_t n) {
int ans=0;
while(n>0){
n &= (n-1);
ans++;
}
return ans;
}
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_fixed_length(self):
text = ("3\n"
"a b c\n"
"d e f\n"
"g h i\n")
lines = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']]
parser = LinearParser.from_string(text)
class Line(NamedTuple):
items: List[str] = ParseList(fixed_length=3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import turtle
t = turtle.Turtle()
t.forward(100)
print ("Teaching Python Editor") | ise-uiuc/Magicoder-OSS-Instruct-75K |
float:right;
list-style:none;
margin-top:16px;
}
#mainNav .container ul.top-secret li{
float:left;
margin-right:12px;
}
#mainNav .container ul.top-secret li a{
margin-top:45px;
}
</style>
<script type="text/javascript" src="assets/union/js/jquery.js"></script>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn parse<T: AsRef<Path>>(path: T) -> Result<CtehexmlData, Error> {
let utf8buf = read_file(path.as_ref())?;
// Localiza datos en XML
let doc = roxmltree::Document::parse(&utf8buf).map_err(Error::msg)?;
// Datos generales
let datos_generales = doc
.descendants()
.find(|n| n.tag_name().name() == "DatosGenerales")
.ok_or_else(|| format_err!("Etiqueta <DatosGenerales> no encontrada en el XML"))?;
let valor_n50_medido = match get_tag_as_str(&datos_generales, "ensayoPermeabilidad") {
"SI" => Some(get_tag_as_f32(&datos_generales, "ValorN50Medido")?),
_ => None,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$paymentMethod = array_key_exists('payment_method', $data) ? $data['payment_method'] : null;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
func getAccessTokenFromRefresh(service: GitService, refreshToken: String, completion: (auth: ProjectAuthenticator?, error: ErrorType?)) {
//TODO: implement refresh token flow - to get and save a new access token
}
private func paramsForService(service: GitService) -> ([ParamKey: String], SecretFromResponseParams) {
switch service {
case .GitHub:
return self.getGitHubParameters()
case .BitBucket:
return self.getBitBucketParameters()
// default:
// fatalError()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker exec cli peer chaincode install -n tradenet -v 1 -p /opt/gopath/src/github.com/trade-ts -l node | ise-uiuc/Magicoder-OSS-Instruct-75K |
inputKey: \ListManagedSchemaArnsRequest.nextToken,
outputKey: \ListManagedSchemaArnsResponse.nextToken,
logger: logger,
on: eventLoop
)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def init_app(app):
app.register_blueprint(task1_bp)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
symtab = parse_sym64(data, symtabsh[0], strtabsh[0]) \
if len(shdrs) > 0 else []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func loadSensor(with id: String) -> AnyPublisher<Sensor, Error> {
let request = Request(endpoint: PulseEndpoint.sensor(id))
let future: Future<SensorResponse, Error> = httpClient.executeRequest(request: request)
return future.map { (response) -> Sensor in
self.convert(sensorResponse: response)
}
.eraseToAnyPublisher()
}
private func convert(sensorsResponse: [SensorResponse]) -> [Sensor] {
let sensors = sensorsResponse.map { (sensorResponse) -> Sensor in
return convert(sensorResponse: sensorResponse)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rimraf.sync(destLoc);
}
const depObject = {};
for (const dep of arrayOfDeps) {
const depLoc = path.join(cwd, 'node_modules', dep);
if (!fs.existsSync(depLoc)) {
logError(`dependency "${dep}" not found in your node_modules/ directory. Did you run npm install?`);
return;
}
const depManifestLoc = path.join(cwd, 'node_modules', dep, 'package.json');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
fileprivate func switchState(_ on: Bool) {
if on {
thumbFrame = CGRect(
x: kMKControlWidth - kMKThumbRadius * 2,
y: 0,
width: kMKThumbRadius * 2,
height: kMKThumbRadius * 2)
} else {
thumbFrame = CGRect(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func generateProblem(difficulty: ProblemDifficulty) -> Problem {
let values = generateTermValues(difficulty: difficulty)
return Problem(
expectedAnswer: values.product(),
questionText: .singleLine(values.joinWithFormatter(separator: MathSymbols.times.padded(with: " "))),
scaleParameterizer: scaleParameterizer
)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uniforms = {'Thelma': '4', 'Twi': '21', 'Dottie': '9'}
thelma_number = int uniforms['Thelma']
twi_number = int uniforms['Twi']
sum = thelma_number + twi_number
print(sum)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MARKETING = (4, "Marketing")
POPULAR_SCIENCE = (5, "Popular Science")
@classmethod
def get_name(cls, index):
return cls.get_list()[index][1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
info.pRenderer->SetShaderParamSet(info.pPrimaryCommand, &m_FrameParamSet);
info.pRenderer->DrawMesh(info.pPrimaryCommand, m_pScreenDrawMesh);
}
info.pRenderer->EndRenderPass(info.pPrimaryCommand);
}
void MDeferredRenderWork::DrawNormalMesh(MRenderInfo& info)
{
for (MMaterialGroup& group : info.vMaterialRenderGroup)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
m_ubComponents[0][1] = ubS;
m_ubComponents[0][2] = ubV;
m_ubComponents[0][3] = ubA;
m_ubComponents[1][0] = ubR;
m_ubComponents[1][1] = ubG;
m_ubComponents[1][2] = ubB;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// The binding helper test.
/// </summary>
[TestFixture]
public class BindingHelperTest
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// </summary>
public SymbolNonterminal Symbol {get{return (SymbolNonterminal)symbol;}}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ignition::math::Vector3d CommsPacket::Position() const
{
return this->dataPtr->position;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
min_v = proc.state.solver.min(sym)
max_v = proc.state.solver.max(sym)
if upper:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
# ReFrame Project Developers. See the top-level LICENSE file for details.
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//重写父类方法,如果事件响应是直接作用在底层scrollView上的话,不响应此事件
//这样做是为了,只有滑动上层子视图tableView才会正常滑动,否则就不响应,事件就会往下面传递,不会造成遮挡视图事件。
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
$image = Image::find($model->image_id);
if (!$image) {
return $this->responseHandler(null, 404, 'Image not found');
}
if (!$this->imageDeleteHelper($image->url)) {
return $this->responseHandler(null, 404, 'Failed when deleting an image');
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from leapp.models import Model, fields
from leapp.topics import SystemFactsTopic
class SysctlVariable(Model):
topic = SystemFactsTopic
name = fields.String()
value = fields.String()
class SysctlVariablesFacts(Model):
topic = SystemFactsTopic
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if inst == 'cpy':
r[insts[p][2]] = get_value(insts[p][1])
elif inst == 'dec':
r[insts[p][1]] -= 1
elif inst == 'inc':
r[insts[p][1]] += 1
elif inst == 'mul':
r[insts[p][3]] += get_value(insts[p][1])*get_value(insts[p][2])
elif inst == 'jnz':
if get_value(insts[p][1]) != 0:
p += get_value(insts[p][2])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use bodhi::{BodhiServiceBuilder, UserNameQuery};
fn main() -> Result<(), String> {
// construct bodhi client for the production instance
let bodhi = BodhiServiceBuilder::default().build().unwrap();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public_key = point_to_public_key(
private_key.public_key().public_numbers(), compressed=True
)
address = public_key_to_address(public_key)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('-=' * 15)
if computador == 0: # computador jogou PEDRA
if jogador == 0:
print('EMPATE')
elif jogador == 1:
print('JOGADOR VENCE')
elif jogador == 2:
print('COMPUTADOR VENCE')
else:
print('Jogada INVÁLIDA')
elif computador == 1: # Computador jogou PAPEL
if jogador == 0:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public AbstractAuthDomainsRequest getRequest() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ans = 0
self.sumOfNode(root)
return ans
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 生成超级管理员命令
@mgr.option("-u", dest="username")
@mgr.option("-p", dest="password")
def create_superuser(username, password):
if not all([username, password]):
print("账号/密码不完整")
return
from info.models import User
from info import db
user = User()
user.mobile = username
user.password = password
user.nick_name = username
user.is_admin = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The Pet of this Pet. # noqa: E501
:rtype: Pet
"""
return util.deserialize_model(dikt, cls)
@property
def id(self) -> int:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# logging.warning(
# 'Seq2Seq model is not well supported yet. Bugs are expected.')
# config = self.params.bert_decoder_config
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import urllib2
import MySQLdb
import MySQLdb.cursors
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Define your vp in km/sec (x, z)
vp = np.fromfile(os.path.join(data_path, 'vp_marmousi_bi'),
dtype='float32', sep="")
vp = np.reshape(vp, (1601, 401))
# vp = vp[400:1401, 0:401]
shape=[401, 301]
values = np.zeros([vp.shape[0]*vp.shape[1], ])
points = np.zeros([vp.shape[0]*vp.shape[1], 2])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
typeof store.commit.createPair,
typeof store.commit.removeLiquidity,
typeof store.commit.rewards
> &
VUEX_TYPES.WalletCommitDecorators;
export type DispatchDecorators = BaseModuleDecorator<
typeof store.dispatch.prices,
typeof store.dispatch.router,
typeof store.dispatch.web3,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#for rec in recs:
# pprint(rec)
file_name = DIR + "PhenoRpt.txt"
print(file_name)
save(file_name, recs)
def Growth_Rate():
'''
Summarize and Pivot growth obsv to the week and attribute
Add dimension calculations
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'message': message
})
response.status_code = 401
return response
def token_error(message):
"""
Handle errors relating to token.
THis returns a json object describing the token error.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$title = 'Contacto - <NAME>';
?>
@section('style')
<link href="<?php echo URL::asset('css/distribuidores.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo URL::asset('css/contacto.css'); ?>" rel="stylesheet" type="text/css" />
@endsection
@section('script')
@endsection
<!-- /.heading-->
@section('content')
<div id="container-sanfer" class="container-sanfer">
@include('front.includes.header')
<div class="row cont-cabecera row-nomargin">
<div class="main-text-cont">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static void enviar(String xml, String ip) {
int envio = 0;
while (envio < 5) {
try {
envio++;
enviarAux(xml, ip);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
waitpid(self.pid, None)
}
fn exit(&self) {
exit(self.pid.into())
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>ferrerinicolas/python_samples<filename>Variables/3.2.5.py
string_variable = "Nicolas"
int_variable = 24
print(string_variable)
print(int_variable)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod day9_smoke_basin;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use std::time::Duration;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Actor(models.Model):
name = models.CharField(_("name"), max_length=200)
# if is_star he/she will be directed to hollywood else directed to commercial
is_star = models.BooleanField(_("is start"), default=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def next(self):
"""Returns the next input from as an (offset, line) tuple."""
self._has_iterated = True
if self._read_before_start:
self._blob_reader.readline()
self._read_before_start = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setup_dut(dut)
dut.add_cmd({'cmd': 'show running-config', 'state': 0, 'action': 'PRINT', 'args': config_0})
dut.add_cmd({'cmd': 'username\s+encuser\s+privilege\s+10\s+password\s+8\s+' + re_enc_pwd_1, 'state': 0, 'action': 'SET_STATE', 'args': [1]})
dut.add_cmd({'cmd': 'show running-config', 'state': 1, 'action': 'PRINT', 'args': config_1})
dut.add_cmd({'cmd': 'username\s+encuser\s+password\s+8\s+' + re_enc_pwd_2, 'state': 1, 'action': 'SET_STATE', 'args': [2]})
dut.add_cmd({'cmd': 'show running-config', 'state': 2, 'action': 'PRINT', 'args': config_2})
dut.add_cmd({'cmd': 'no username encuser', 'state': 2, 'action': 'SET_STATE', 'args': [3]})
dut.add_cmd({'cmd': 'show running-config', 'state': 3, 'action': 'PRINT', 'args': config_3})
d = Device(host=dut.host, port=dut.port, protocol=dut.protocol, log_level=log_level, mock=use_mock)
d.open()
assert 'encuser' not in d.user.keys()
d.user.create("encuser", password=<PASSWORD>, privilege_level=10, encrypted=True)
assert ('encuser', {'password': <PASSWORD>, 'privilege_level': '10'}) in d.user.items()
d.user.update("encuser", password=<PASSWORD>, encrypted=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class NsoltAtomExtention2dLayerTestCase(unittest.TestCase):
"""
NSOLTCHANNELCONCATENATION2DLAYERTESTCASE
2コンポーネント入力(nComponents=2のみサポート):
nSamples x nRows x nCols x (nChsTotal-1)
nSamples x nRows x nCols
| ise-uiuc/Magicoder-OSS-Instruct-75K |
["season": "1986", "driver": "Alain Prost", "age": "31", "team": "McLaren", "engine": "TAG", "poles": "1", "wins": "4", "podiums": "11", "fastest_laps": "2", "points": "72", "clinched": "Race 16 of 16", "point_margin": "2"],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private string loginProviderName;
private string providerUserKey;
private ApplicationUser user;
public ApplicationUserLoginInfo() { }
[Browsable(false)]
public Int32 ID { get; protected set; }
[Appearance("PasswordProvider", Enabled = false, Criteria = "!(IsNewObject(this)) and LoginProviderName == '" + SecurityDefaults.PasswordAuthentication + "'", Context = "DetailView")]
public string LoginProviderName {
get { return loginProviderName; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
d->m_key,
d->m_blockMode,
d->m_padding,
d->m_authenticationData,
d->m_customParameters,
d->m_cryptoPluginName);
if (!reply.isValid() && !reply.error().message().isEmpty()) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def protectedLog(x):
try:
return math.log(x)
except ValueError:
return 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result_path = 'E:\\Scholar_Project\\Inpainting\\Context_Encoders\\imagenet'
model_path = 'E:\\Scholar_Project\\Inpainting\\Context_Encoders\\models\\imagenet'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$cartCollection = Cart::getContent();
$all_order = $cartCollection->toArray();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Route::get('users/prestadores', 'API\UsersController@getPrestadores')->name('getprestadores');
Route::get('getprestadores', 'API\UsersController@ListPrestadores')->name('getsprestadores');
Route::get('user', 'API\UsersController@getUserIdent')->name('getUserIdent');
Route::post('user/firma', 'API\UsersController@firma')->name('firma');
Route::get('users/removfirmas', 'API\UsersController@removeFirmas')->name('removeFirmas');
/******************fin rutas usuarios********************************/
/************************Empresas*****************************************************/
Route::get('empresas', 'API\EmpresaController@getEmpresas')->name('empresas');
Route::get('getempresas', 'API\EmpresaController@ListEmpresas')->name('getempresas');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// An interface to be implemented by transmitters
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(0, T):
n=np.dot(l_m, n_o)
n_o=n
n_f[:,i]=n.squeeze()
return n_f.tolist()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
[HttpDelete]
public IHttpActionResult DeleteTask(int id) {
return Ok(id);
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
backupName=""
echo "Programa utilidades Postgres"
echo -n "Ingresar una opción: "
read
option=$REPLY
echo -n "Nombre del archivo del backup: "
read
backupName=$REPLY
echo "Opcion: $option, backupName: $backupName"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
counts.append(0)
# Loading our lists into the DataFrame
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$object->setUserId($data['user_id']);
}
if (\array_key_exists('user_name', $data)) {
$object->setUserName($data['user_name']);
}
if (\array_key_exists('is_contractor', $data)) {
$object->setIsContractor($data['is_contractor']);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
imageA = mpimg.imread(filepath + imageA_filename)
imageB = mpimg.imread(filepath + imageB_filename)
# subtract the colour values of one image from the other on a pixel-by-pixel basis
diff_image = np.subtract(imageA[:, :, 1:4], imageB[:, :, 1:4])
# now invert the image difference - easier to see differences
diff_image = np.subtract([1, 1, 1], diff_image)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use windows::Win32::UI::WindowsAndMessaging::SWP_NOREDRAW;
use windows::Win32::UI::WindowsAndMessaging::SWP_NOREPOSITION;
use windows::Win32::UI::WindowsAndMessaging::SWP_NOSENDCHANGING;
use windows::Win32::UI::WindowsAndMessaging::SWP_NOSIZE;
use windows::Win32::UI::WindowsAndMessaging::SWP_NOZORDER;
use windows::Win32::UI::WindowsAndMessaging::SWP_SHOWWINDOW;
bitflags! {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .service import RouteService # noqa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from PySide2.QtGui import QFont
from PySide2.QtWidgets import QVBoxLayout
from PySide2.QtWidgets import QAbstractItemView
from PySide2.QtWidgets import QTextEdit
from PySide2.QtGui import QPalette
class LightsCollection(MayaQWidgetBaseMixin, QGroupBox):
"""
This class represents the property editor view of a lights collection.
"""
def __init__(self, item, treeView, parent):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Generated by Django 2.2.5 on 2019-12-05 16:04
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return array();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
person_address = "person_address"
legal_person = "legal_person"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FOGS = 12
SURFACES = 13
LIGHTMAPS = 14
LIGHT_GRID = 15
VISIBILITY = 16
LIGHT_ARRAY = 17
LumpHeader = quake.LumpHeader
# Known lump changes from Quake 3 -> Raven:
# New:
# FACES -> SURFACES
# LEAF_FACES -> LEAF_SURFACES
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pageTitle: 'primeng.data.treetable.title'
},
canActivate: [UserRouteAccessService]
| 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.