seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
import com.io.fitnezz.enumeration.BMIClassification;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class ClassifyBMITest {
private ClassifyBMI classifyBMI;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class LogoUpload(models.Model):
created = models.DateTimeField(auto_now_add=True)
owner = models.ForeignKey(User, to_field='id', on_delete=models.CASCADE)
datafile = models.FileField()
class Tag(models.Model):
name = models.CharField(max_length=20)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def register(linter):
register_module_extender(MANAGER, 'scapy.all', scapy_transform)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#ifndef nodeList_hpp
#define nodeList_hpp
#include "statement.hpp"
class NodeList;
typedef const NodeList* NodeListPtr;
class NodeList : public Statement
| ise-uiuc/Magicoder-OSS-Instruct-75K |
VERSION="${1:-devel}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return finalMessage
}
/// Only executes once per process.
func globalSetup() {
XCTestObservationCenter.shared.addTestObserver(self)
Self.isRegisteredAsObserver = true
SpotifyAPILogHandler.bootstrap()
}
public override init() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
from django.apps import AppConfig
except ImportError:
AppConfig = object
class AllAccessConfig(AppConfig):
name = 'allaccess'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from geometry_msgs.msg import PoseStamped
class WaitForGoal(smach.State):
def __init__(self):
smach.State.__init__(self, outcomes=['received_goal', 'preempted'], input_keys=[], output_keys=['target_pose'])
self.target_pose = PoseStamped()
self.signal = threading.Event()
self.subscriber = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Tomato___Tomato_Yellow_Leaf_Curl_Virus':35,
'Tomato___Tomato_mosaic_virus':36,
'Tomato___healthy':37}
c_matrix = confusion_matrix(label, pre, labels=list(range(38)))
# %% 这个代码留着
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, target_field, naturalize_function=naturalize, *args, **kwargs):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
conf = Configuration(**config)
return conf
conf = load_config()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$Name::Spaced::Indexed[$Name::Spaced[50]] = "New String";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void Upgrade()
{
int current,target;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
def rule(event):
if deep_get(event, "id", "applicationName") != "login":
return False
if event.get("type") == "account_warning":
return bool(event.get("name") in PASSWORD_LEAKED_EVENTS)
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(links,'r') as f:
line = f.readline().strip()
n = 0
while True:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return _.flattenDeep(recurse(tree, []));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "mtao/types.hpp"
namespace mtao { namespace geometry { namespace mesh {
template <typename VDerived, typename FDerived>
auto face_normals(const Eigen::MatrixBase<VDerived>& V, const Eigen::MatrixBase<FDerived>& F) {
constexpr static int CRows = VDerived::RowsAtCompileTime;
auto N = VDerived::Zero(V.rows(),F.cols()).eval();
using T = typename VDerived::Scalar;
if constexpr(CRows == 2 || CRows == Eigen::Dynamic) {
if (F.rows()== 2) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.name = name
self.doc = doc
self.receivers = {}
class Namespace(dict):
def signal(self, name, doc=None):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.measure {
// Put the code you want to measure the time of here.
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# [8 kyu] Grasshopper - Terminal Game Move Function
#
# Author: Hsins
# Date: 2019/12/20
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (Number.isNaN(newValue)) {
newValue = 0;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
# proxy module
from __future__ import absolute_import
from codetools.blocks.ast_25.ast import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parsed_args.json_indent)
v = updater.major_bump(static_version=parsed_args.static_version,
dev=parsed_args.dev,
skip_update_deps=parsed_args.skip_update_deps)
if not parsed_args.skip_reno:
self._update_reno(path, '')
self.app.stdout.write('{}\n'.format(v))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.pipe(map(value => keysToCamel(value)));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
packages=find_packages(exclude=['tests*']),
license='MIT',
description='Farasa (which means “insight” in Arabic), is a fast and accurate text processing toolkit for Arabic text.',
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=['requests', 'json'],
url='https://github.com/ahmed451/SummerInternship2020-PyPIFarasa/tree/master/7AM7',
author='AM7',
author_email='<EMAIL>',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EXPECT_EQ(Type::None, Type::fromString("Blah"));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models, _
import logging
_logger = logging.getLogger(__name__)
class AccountChartTemplate(models.Model):
_inherit = "account.chart.template"
@api.model
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod client;
mod interface_struct;
mod format_trait;
mod message_enum;
mod server;
mod services;
mod streams;
/// Generate a client struct for the given interface.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* To test for these results, -trestart is set to a larger value than the
* total simulation length, so that only lag 0 is calculated
*/
// for 3D, (8 + 4 + 0) / 3 should yield 4 cm^2 / s
TEST_F(MsdTest, threeDimensionalDiffusion)
{
const char *const cmdline[] = {
"msd", "-mw", "no", "-trestart", "200",
};
runTest(CommandLine(cmdline));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (m_colorChooserMenuItem != nullptr)
{
m_colorChooserMenuItem->Text = resProvider->GetResourceString(L"colorChooserMenuItem");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:class:`colour.RGB_ColourMatchingFunctions` or
:class:`colour.XYZ_ColourMatchingFunctions` class instance (which is
passed through directly if its type is one of the mapping element
types) or list of filterers. ``filterers`` elements can also be of any
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FEATURE_DATA_CLASSIFICATION = [
[5, 1, 1, 1, 2, 1, 3, 1, 1, 2],
[5, 4, 4, 5, 7, 10, 3, 2, 1, 2],
[3, 1, 1, 1, 2, 2, 3, 1, 1, 2],
[6, 8, 8, 1, 3, 4, 3, 7, 1, 2],
[4, 1, 1, 3, 2, 1, 3, 1, 1, 2],
[8, 10, 10, 8, 7, 10, 9, 7, 1, 4],
[1, 1, 1, 1, 2, 10, 3, 1, 1, 2],
[2, 1, 2, 1, 2, 1, 3, 1, 1, 2],
[2, 1, 1, 1, 2, 1, 1, 1, 2, 2],
[4, 2, 1, 1, 2, 1, 2, 1, 1, 2],
[1, 1, 1, 1, 1, 1, 3, 1, 1, 2],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Sirikata {
namespace Graphics {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pipeline: None,
audioqueue,
audiosink,
videoqueue,
video_convert,
video_rate,
video_scale,
video_capsfilter,
videosink_queue,
videosink,
})
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
// Reverse the path (constructing it this way since vector is more efficient
// at push_back than insert[0])
path.clear();
for (int i = reverse_path.size() - 1; i >= 0; --i) {
path.push_back(reverse_path[i]);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ServiceUnavailableException(crate::error::ServiceUnavailableException),
TooManyRequestsException(crate::error::TooManyRequestsException),
/// An unexpected error, eg. invalid JSON returned by the service or an unknown error code
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for AddFlowVpcInterfacesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddFlowVpcInterfacesErrorKind::BadRequestException(_inner) => _inner.fmt(f),
AddFlowVpcInterfacesErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
AddFlowVpcInterfacesErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
AddFlowVpcInterfacesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
GET = "GET"
POST = "POST"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import bdv.viewer.Source;
public interface SourceWrapper< T >
{
Source< T > getWrappedSource();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (aNode.HasChildNodes)
{
var nodes = aNode.ChildNodes;
var size = nodes.Count;
//var halfSize = size / 2;
for (int i = 0; i < size; ++i)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private Integer ptype;
public void setId(Long id){
this.id = id;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("{:<12} {:<15} {:.3f} {:.3f} {:.3f} {:.3f} {:.3f} {:.3f} {:.3f} {:.3f}".format(model, dataset,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__license__ = 'MIT'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import shutil
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private enum CodingKeys : String, CodingKey {
case recordType = "record_type",
id,
tooltip,
description,
date = "start_date"
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="form-group col-md-4">
<label for="recipient-name" class="col-form-label">No. de Sucursal</label>
<input type="text" class="form-control" id="no_socursal" readonly>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if args.method == "BP":
mov_z = ref_z.detach().clone().requires_grad_(True)
ref_samp = G.visualize(ref_z, truncation=truncation, mean_latent=mean_latent)
mov_samp = G.visualize(mov_z, truncation=truncation, mean_latent=mean_latent)
dsim = ImDist(ref_samp, mov_samp)
H = get_full_hessian(dsim, mov_z)
del dsim
torch.cuda.empty_cache()
eigvals, eigvects = np.linalg.eigh(H)
elif args.method == "ForwardIter":
G.select_trunc(truncation, mean_latent)
SGhvp = GANForwardMetricHVPOperator(G, ref_z, ImDist, preprocess=lambda img: img, EPS=5E-2, )
eigenvals, eigenvecs = lanczos(SGhvp, num_eigenthings=250, max_steps=200, tol=1e-5, )
eigenvecs = eigenvecs.T
sort_idx = np.argsort(np.abs(eigenvals))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by Abbas on 1/6/21.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) -> Option<HashMap<String, (u16, f32)>> {
let mut ret = HashMap::with_capacity(INIT_CAP);
let parser = Soup::new(post);
let tab = parser.tag("table").find()?;
let tbody = &tab
.children()
.filter(|d| (d.name()) == "tbody")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from yolov3.utils import data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// - Parameters:
/// - blackBoxData: the black box encodable data
/// - blackBoxArchived: the callback that will be called if the archive task succeed.
/// - report: the newly created report
func archive<T: Encodable>(blackBoxData: T, blackBoxArchived: @escaping (_ report: BlackBox) -> Void) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import rtdb2tools
from hexdump import hexdump
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'BackupList',
'DeleteFromContext',
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public String getBundleCoordinate() {
return bundleCoordinate;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .models import Post
from .forms import ScheduleForm
from django.core.paginator import Paginator
# Create your views here.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#! /bin/bash
CURRENT_DIR=`pwd`
MODEL_PATH='/home/hblasins/Documents/tensorflow/models/'
export PYTHONPATH=$PYTHONPATH:$MODEL_PATH:$MODEL_PATH/slim
cd $MODEL_PATH
python object_detection/builders/model_builder_test.py
python object_detection/create_rtb4_tf_record.py --data_dir="/scratch/Datasets/SYNTHIA-VOC" \
--mode="RAND" \
--set="trainval" \
--output_path=/scratch/Datasets/SYNTHIA-VOC/synthia_trainval.record \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.__rpc_reward_weight,
grpclib.const.Cardinality.UNARY_UNARY,
QueryRewardWeightRequest,
QueryRewardWeightResponse,
),
"/terra.treasury.v1beta1.Query/SeigniorageProceeds": grpclib.const.Handler(
self.__rpc_seigniorage_proceeds,
grpclib.const.Cardinality.UNARY_UNARY,
QuerySeigniorageProceedsRequest,
QuerySeigniorageProceedsResponse,
),
"/terra.treasury.v1beta1.Query/TaxProceeds": grpclib.const.Handler(
self.__rpc_tax_proceeds,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Add more unit test later | ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env python
import numpy,genutil
import unittest
class GENUTIL(unittest.TestCase):
def assertArraysEqual(self,A,B):
self.assertTrue(numpy.all(numpy.equal(A,B)))
def testStatisticsNumpy(self):
a=numpy.ones((15,25),'d')
rk = [0.0, 91.66666666666667, 87.5, 83.33333333333333, 79.16666666666667, 75.0, 70.83333333333333, 66.66666666666667, 62.5, 58.333333333333336, 54.166666666666664, 95.83333333333333, 50.0, 41.666666666666664, 37.5, 33.333333333333336, 29.166666666666668, 25.0, 20.833333333333332, 16.666666666666668, 12.5, 8.333333333333334, 4.166666666666667, 45.833333333333336, 100.0]
# rk will be copied over and over
self.assertArraysEqual(genutil.statistics.rank(a,axis=1),rk)
self.assertTrue(numpy.allclose(genutil.statistics.variance(a,axis=0),0.))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let name = "billing_address[street_line1]"
XCTAssertEqual("billingAddressStreetLine1", name.cleaned(.paramName))
}
func testCleanTypeNameSpaces() {
let name = "test many spaces"
XCTAssertEqual("TestManySpaces", name.cleaned(.typeName))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
user.printFullName(); | ise-uiuc/Magicoder-OSS-Instruct-75K |
args=self.args
self.tokenizer=get_tokenizer(model_path=post_rec.BertBaseUnCased, name=args.tokenizer)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
char[] currentRow = Console.ReadLine()
.ToCharArray();
if (!playerPositionFound)
{
for (int col = 0; col < currentRow.Length; col++)
{
if (currentRow[col] == 'P')
{
playerRow = row;
playerCol = col;
playerPositionFound = true;
break;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result.raise_for_status()
# Submit node1 blocks to node
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tmp*=x;
}
}
}
ostream& operator << (ostream& os, const L2Info::Polynom& p)
{
int i;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ValidationArguments,
isAlphanumeric,
} from 'class-validator';
export function IsAccountNumber(validationOptions?: ValidationOptions) {
return function(object: Object, propertyName: string) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return;
}
let scrollX = 0;
let scrollY = 0;
const pos = scrollPositionsHistory[location.key || ""];
if (pos) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def All2dec(z, p):
s = ''
n = 0
for i in range(0, len(z)):
n += int(z[len(z) - (i + 1)], p) * (p ** i)
s += str(int(z[len(z) - (i + 1)], p)) + '*' + str(p ** i) + ' + '
s = s[:-3] + ' = ' + str(n)
return s
if __name__ == '__main__':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 'all_dataset/s12',
# 'all_dataset/s13',
# 'all_dataset/s14',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'type_id': self.base_usage_type.id,
},
{
'cost': D('0.75'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param Action $object
* @return mixed
*/
public function send(Action $object);
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
MapCompose(str.strip), Join())
l.add_xpath('year', '//*[@id="content"]/h1/span[2]/text()', MapCompose(int), re='[0-9]+')
l.add_value('url', response.url)
return l.load_item()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.urls import path, include
from . import views
app_name = 'home'
urlpatterns = [
path('', views.HomeOverview.as_view(), name="overview"),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.btn1.bind(on_press=self.update)
self.btn2 = Button(text='2')
self.btn2.bind(on_press=self.update)
self.btn3 = Button(text='3')
self.btn3.bind(on_press=self.update)
self.btn4 = Button(text='4')
self.btn4.bind(on_press=self.update)
self.add_widget(self.btn1)
self.add_widget(self.btn2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
final class NamedVariableFactory
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return False
def getMACAddress():
try:
return ':'.join(hex(getnode()).replace("0x", "").upper()[i : i + 2] for i in range(0, 11, 2))
except:
return "00:00:00:00:00:00"
def getHostName():
try:
return socket.gethostname()
except:
return ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#add a power struct
pwr = (np.array(vel)*np.array(tq)/wheelRadius)/1e3
pwr = pwr.tolist()
torquespeed = [{'x':i, 'y':j} for i,j in zip(vel, tq)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
timestr = str(timea)
call_stt.getText2VoiceStream("아침을 "+timestr+"시로 변경하였습니다.", output_file)
else:
med.setbreakfirst(int(numbers[0]),0)
call_stt.getText2VoiceStream("아침을 "+numbers[0]+"시로 변경하였습니다.", output_file)
if("분" in text):
med.setbreakfirstminute(int(numbers[1]))
call_stt.getText2VoiceStream("아침을 "+str(med.breakfirst)+"시 "+str(med.breakfirstminute)+"분 으로 변경하였습니다.", output_file)
elif("점심" in text):
numbers = re.findall("\d+",text)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._pymongo_client_session.__exit__(exc_type, exc_val, exc_tb)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './loopReducer';
export * from './Loop';
export * from './carouselReducer';
export * from './Carousel';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Authorized()
profile(
@TypeGraphQL.Ctx() { prisma, req }: Context,
@TypeGraphQL.Info() info: GraphQLResolveInfo,
): Promise<User> {
const user = req.user as Payload;
const input: FindUniqueUserArgs = {
where: { id: user.sub },
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Image<RGBPixel> *VMatrix::newOrReuse(Image<RGBPixel> **reuse,int w,int h) const {
if ((reuse) && (*reuse) && (w==(**reuse).getW() && h==(**reuse).getH()))
return *reuse;
else {
if ((reuse) && (*reuse))
delete *reuse;
*reuse = new Image<RGBPixel>;
(**reuse).allocate(w,h);
return *reuse;
}
}
VMatrix::VMatrix() {
w = h = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
using System.Text;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ZAMapViewModel.isPurnInt(string: item.value) {
return Driver.just(WLBaseResult.failed("请输入正确的详细地址,详细地址不能为纯数字"))
}
}
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
import datetime
from django_auto_model.utils import get_now
def test_is_datetime():
"""Should be a datetime instance"""
now = get_now()
assert isinstance(now, datetime.datetime)
def test_value_is_close_to_now():
"""Should be close enough to the test execution time"""
before = datetime.datetime.now()
now = get_now()
after = datetime.datetime.now()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void insertUserDetail(UserDetailBean user);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Loading scores...')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public async remove(id: number): Promise<User> {
const deletedUser = await this._prismaClient.user.delete({ where: { id } });
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED, Color.WHITE, Color.WHITE]
right = [Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE,
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED,
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED, Color.WHITE,
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED, Color.WHITE, Color.WHITE,
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED, Color.WHITE, Color.WHITE, Color.WHITE,
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED, Color.WHITE, Color.WHITE,
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED, Color.WHITE,
Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED]
blank = [Color.WHITE] * 64
sense_hat = SenseHat()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
strings we want to appear in the output strings and the values as the strings
we wish to substitute.
Returns
-------
``type(input)``
The input
Examples
--------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.yy.cloud.core.usermgmt.data.repositories;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# create the data path:
data_path = os.path.join(self._db_path, directory, f"{leaf_hash}.csv")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function endereco($id) {
$gate = $this->gate;
if (Gate::denies("$gate"))
abort(403, 'Não Autorizado!');
$data = $this->model->find($id);
return response()->json($data);
}
public function enderecoDB($id) {
$gate = $this->gate;
if (Gate::denies("$gate"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Assert.AreEqual(0, dump.Level, "Dump level shall be 0.");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
start = train_dic[key]['start_frame']
end = train_dic[key]['end_frame']
parts = train_dic[key]['set_parts']
if ( traj_type == 'md' ):
traj_coord_file = train_dic[key]['traj_coord_file']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = patterns('',
url(r'^saveviz$', views.save_viz, name='saveviz'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert abs(cc2.best["covars"].values[0][it] - x_true[it]) < error_lim
assert abs(cc2.best["response"].values[0][0] - y_true) < error_lim
assert cc2.best["iteration_when_recorded"] == max_iter | ise-uiuc/Magicoder-OSS-Instruct-75K |
var tests = [XCTestCaseEntry]()
tests += __allTests()
XCTMain(tests) | 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.