seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
cd /opt/graphite/webapp
exec /usr/bin/gunicorn_django -b127.0.0.1:8000 -w2 graphite/settings.py >> /srv/data/log/graphite.log 2>&1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from python_toolbox.math_tools import convert_to_base_in_tuple
from python_toolbox import cute_testing
def test():
assert convert_to_base_in_tuple(51346616, 16) == (3, 0, 15, 7, 12, 11, 8)
assert convert_to_base_in_tuple(2341263462323, 2) == (
1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1,
1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import re
import sys
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('cloud_storage', '0002_auto_20190424_0756'),
]
operations = [
migrations.RenameModel(
old_name='TestFile',
new_name='CloudFile',
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
import os; os.environ['CUDA_VISIBLE_DEVICES'] = '0' # using GPU 0
import tensorflow as tf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static void main(String[] args) {
for (int x=0;x<10;x++){
}
for (int x=0;x<10;++x){
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def fast_polygon_intersection(small_polygon_gdf, large_polygon_gdf, small_points_spatial_index = None,
small_geometry_column = 'geometry', large_geometry_column = 'geometry',
large_name_column = None, **kwargs):
"""
Given a gdf of small polygons (i.e. parcels) and a gdf of large polygons (i.e. municipal boundaries), calculates the
large polygon in which each small polygon lies. This function is based on the points_intersect_multiple_polygons
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.seed_pubkeys(seed_pubkeys.clone())
.add_connectivity_manager();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .release import version as __version__
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data[prod.subCategory].push(prod);
});
return data;
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
kubectl get secret -n istio-system --context=$1 | grep "istio.io/key-and-cert" | while read -r entry; do
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Returns a positive value, if OAB makes a counter-clockwise turn,
/// negative for clockwise turn, and zero if the points are collinear.
coord2_t cross(const Point &O, const Point &A, const Point &B)
{
return (A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// components
import { ScrumboardComponent } from './scrumboard.component';
// guard
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub struct PolicyProxy {
setting_type: SettingType,
policy_handler: Box<dyn PolicyHandler + Send + Sync + 'static>,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public async Task<List<IGetUsersCollectionResponse>> GetUsersInfo(IGetUsersCollectionRequest model)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return mixed
*/
public function getTitulo()
{
return $this->titulo;
}
/**
* @param mixed $titulo
*/
public function setTitulo($titulo)
{
$this->titulo = $titulo;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>camelot/view/controls/progress_dialog.py
# ============================================================================
#
# Copyright (C) 2007-2016 Conceptive Engineering bvba.
# www.conceptive.be / <EMAIL>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private IDirtiable _dirtiableAsset;
public HiraCollectionEditorRefresher(Editor baseEditor)
{
_baseEditor = baseEditor;
}
public void Init(Object asset, SerializedObject serializedObject)
{
_dirtiableAsset = asset as IDirtiable;
_serializedObject = serializedObject;
Assert.IsNotNull(_dirtiableAsset);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl<T> From<T> for Box<dyn ParseTag>
where
T: 'static + ParseTag,
{
fn from(filter: T) -> Self {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = false)]
public enum ST_InsetMode
{
auto,
custom
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return not self.poll(tree='offline')['offline']
def is_temporarily_offline(self):
return self.poll(tree='temporarilyOffline')['temporarilyOffline']
def is_jnlpagent(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Loading
let font = include_bytes!("../resources/Roboto-Regular.ttf") as &[u8];
let font = Font::from_bytes(font).unwrap();
let mut group = c.benchmark_group(format!("RustType: Rasterize '{}'", CHARACTER));
group.measurement_time(core::time::Duration::from_secs(10));
group.sample_size(1000);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
auto* drawer = new MockFrameDrawer;
{
#define FRAME_AT(i) (stream.GetDecodedFrames()->GetFrameNear(i).get())
InSequence seq;
EXPECT_CALL(get_time, Call()).WillRepeatedly(Return(0));
EXPECT_CALL(*drawer, DrawFrame(FRAME_AT(0))).Times(1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sensor.ResetPose(current_pose)
measurements[ii, step_counter] = sensor.Sense()
step_counter += 1
# Save to disk.
np.savetxt(maps_file, maps, delimiter=",")
np.savetxt(trajectories_file, trajectories, delimiter=",")
np.savetxt(measurements_file, measurements, delimiter=",")
print "Successfully saved to disk."
| ise-uiuc/Magicoder-OSS-Instruct-75K |
########### Functions follow #######################
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_features(self, df: pd.DataFrame, **kwargs) -> Tuple[pd.DataFrame, List[str]]:
df[criteo_sparse_features] = df[criteo_sparse_features].fillna('-1', )
df[criteo_dense_features] = df[criteo_dense_features].fillna(0, )
feature_cols = criteo_sparse_features+criteo_dense_features
return df, feature_cols
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import _
import os, sys, traceback
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if input_data == "a":
money = raw_input("Amount of money > ")
myaccount.add_money_to_checking(money)
if input_data == "s":
money = raw_input("Amount of money > ")
myaccount.subtract_money_from_checking(money)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Removing the stuck ingress network"
docker network ls | grep -e 'ingress.*overlay' | awk '{print $1}'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
msg_frame = CvBridge().cv2_to_imgmsg(img, "rgb8")
goal_loc = action_controller.msg.LocalizeGoal(1, msg_frame)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return supportPt;
}
/*
====================================================
ShapeSphere::InertiaTensor
====================================================
*/
Mat3 ShapeSphere::InertiaTensor() const
{
Mat3 tensor;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.firstinspires.ftc.teamcode.playmaker.RobotHardware;
public class NavigateAndShootRingsSequence extends ActionSequence {
public static final Position RED_GOAL_ON_FIELD = new Position(DistanceUnit.INCH, 72, -36, 0, 0);
public NavigateAndShootRingsSequence(RobotHardware.Team team, Position shootingPositionOnRedSide) {
Position shootingPosition;
Position goalPosition;
if (team == RobotHardware.Team.RED) {
shootingPosition = shootingPositionOnRedSide.toUnit(DistanceUnit.INCH);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
QMessageBox.ButtonRole.NoRole = QMessageBox.NoRole
QMessageBox.ButtonRole.RejectRole = QMessageBox.RejectRole
QMessageBox.StandardButton.Ok = QMessageBox.Ok
QMessageBox.StandardButton.Yes = QMessageBox.Yes
QMessageBox.StandardButton.No = QMessageBox.No
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<option value="<?php echo $row->id?>"><?php echo $row->name?></option>
<?php
}
?>
</select></td>
<td align="right" >District</td>
<td align="left" > <select class="form-control" name="district" id="district">
<option value="">Select District</option>
</select></td>
<td align="right" >Upazila</td>
<td align="left" >
<select class="form-control" name="upazila" id="upazila">
<option value="">Select Upazila</option>
</select>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</section>
</div>
</div>
</div>
</body>
</html>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name='value',
field=models.TextField(),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return JsonResponse(serializer.data, status=status.HTTP_201_CREATED)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(len(batch)):
if not per_channel:
batch[i] -= np.mean(batch[i])
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from "./BlobClient";
export * from "./AppendBlobClient";
export * from "./BlockBlobClient";
export * from "./PageBlobClient";
export * from "./AccountSASPermissions";
export * from "./AccountSASResourceTypes";
export * from "./AccountSASServices";
export * from "./AccountSASSignatureValues";
export * from "./BlobBatch";
export * from "./BlobBatchClient";
export * from "./BatchResponse";
export * from "./BlobSASPermissions";
export * from "./BlobSASSignatureValues";
export * from "./BrowserPolicyFactory";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit 1
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.__dict__.update(adict)
def is_defined(v):
return type(v) != type(None)
def toPi(v):
return (v + np.pi) % (2*np.pi) - np.pi
class Traj:
def __init__(self):
self.a = 3
self.b = 2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
keywords=KEYWORDS,
url=URL,
license='MIT',
packages=[NAME],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import numbers
from typing import Union
class NumericLimits(object):
"""Class providing interface to extract numerical limits for given data type."""
@staticmethod
def _get_number_limits_class(dtype):
# type: (np.dtype) -> Union[IntegralLimits, FloatingPointLimits]
"""Return specialized class instance with limits set for given data type.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#set up evaluation parameters
cutoff = 8
sigmas = (np.logspace(np.log10(0.05), np.log10(1.0), num=5)).tolist()
model_eval_params = model_evaluation.get_model_eval_params(
fp_type="gmp", eval_type="k_fold_cv", eval_num_folds=2, eval_cv_iters=1,
cutoff=cutoff, sigmas=sigmas, nn_layers=3, nn_nodes=20, nn_learning_rate=1e-3,
nn_batch_size=32, nn_epochs=1000)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(CONFIG_JSON, 'w') as cfg:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fullpath = sequana_data("phiX174.fa", "data")
Other files stored in this directory will be documented here.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use dtos::{Claims, CreateServerParamDto, GetUserAuthDto, LoginDto, UserDto};
pub use filters::{auth, role, user_login};
pub use guard_handlers::{auth_guard, check_role, create_role, login, role_guard};
pub use helpers::{get_role, set_role, Roles};
pub use models::{Role, TokenType};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import PackageDescription
let package = Package(
name: "server",
platforms: [
.macOS("10.15")
],
dependencies: [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import static org.springframework.http.HttpStatus.FORBIDDEN;
public class ApiAuthenticationResponseHandler implements AuthenticationResponseHandler {
@Autowired
private HttpEntityProcessor httpEntityProcessor;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_telegram_channel_by_id(
self,
channel_id: int,
) -> Optional['tg_models.TelegramChannel']:
if channel_id is None:
return None
return self.tg_models.TelegramChannel.channels.get_by_channel_id(channel_id=channel_id)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: BSD-3-Clause
from sklearn.neighbors import NearestCentroid
__all__ = ['NearestCentroid']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
r2_1 = resnet_basic_inc(r1, c_map[1])
r2_2 = resnet_basic_stack(r2_1, num_stack_layers-1, c_map[1])
r3_1 = resnet_basic_inc(r2_2, c_map[2])
r3_2 = resnet_basic_stack(r3_1, num_stack_layers-1, c_map[2])
# Global average pooling and output
pool = AveragePooling(filter_shape=(8, 8), name='final_avg_pooling')(r3_2)
z = Dense(num_classes, init=normal(0.01))(pool)
return z
def create_imagenet_model_basic(input, num_stack_layers, num_classes):
c_map = [64, 128, 256, 512]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
module.setValue(id.channel, new MixerUtils.Types.ValueState(value));
return true;
} catch (e) {}
}
break;
case "level":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .kit_ilias_web_crawler import KitIliasWebCrawler, KitIliasWebCrawlerSection
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export interface IBacktestDataPointDto {
time: string;
usdValue: number;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
saludos.saludar() | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Soft-serve Damage Skin
success = sm.addDamageSkin(2434951)
if success:
sm.chat("The Soft-serve Damage Skin has been added to your account's damage skin collection.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
qs.append(int(input()))
gen = [mot[i]+sat[j] for i in range(k) for j in range(min(k, 10001//(i+1)))]
gen.sort()
res = [gen[e-1] for e in qs]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug, Deserialize, Serialize)]
pub struct GuildIntegrationsUpdate {
pub guild_id: String,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
UNSTABLE_INCREMENT=1
else
# Get last digit of the unstable version of $CURRENT_TAG
UNSTABLE_INCREMENT=$(echo $UNSTABLE_VER| rev | cut -d '.' -f 1 | rev)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def file_test(file_i):
'''
Read file into string
'''
try:
with open(file_i) as F:
F.close()
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// notice, the author's name, and all copyright notices must remain intact in all applications, documentation,
// and source files.
//
// Date Who Comments
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public static energize(text: string): string {
return chalk.hex('#FF8D40')(text)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
void setOther(SharedPtr<CircularDependencyObject> other)
{
m_other = other;
}
void cleanup()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
append_param(rule, params['out_interface'], '-o', False)
append_param(rule, params['fragment'], '-f', False)
append_param(rule, params['set_counters'], '-c', False)
append_param(rule, params['source_port'], '--source-port', False)
append_param(rule, params['destination_port'], '--destination-port', False)
append_param(rule, params['to_ports'], '--to-ports', False)
append_param(rule, params['set_dscp_mark'], '--set-dscp', False)
append_param(
rule,
params['set_dscp_mark_class'],
'--set-dscp-class',
False)
append_match(rule, params['comment'], 'comment')
append_param(rule, params['comment'], '--comment', False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
VRTX 12 394714.421875 3776672.578125 -5722.6728515625
VRTX 13 395594.28125 3774832.890625 -5101.39306640625
VRTX 14 396345.6015625 3773261.953125 -6413.79345703125
VRTX 15 396520.171875 3772896.9375 -4684.88916015625
VRTX 16 397387.6171875 3771395.515625 -5752.7724609375
VRTX 17 397810.640625 3770799.4375 -3652.36376953125
VRTX 18 398432.6640625 3769922.9375 -5184.35986328125
VRTX 19 399286.09375 3768718.296875 -3710.896484375
VRTX 20 399359.2578125 3768614.796875 -6225.28857421875
VRTX 21 398278.9921875 3770139.484375 -7223.90380859375
VRTX 22 397112.3671875 3771783.375 -7661.79541015625
VRTX 23 398224.3515625 3770216.484375 -9134.78515625
VRTX 24 399330.5390625 3768655.4375 -8427.4677734375
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pushd nginx-operator
cp deploy/operator.yaml deploy/operator-copy.yaml
sed -i "s|REPLACE_IMAGE|$IMAGE|g" deploy/operator.yaml
OPERATORDIR="$(pwd)"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
printc("collisions : ", collisions)
printc("collisions 1st: ", collisions1st)
for cell in dolfin.cells(mesh):
contains = cell.contains(dolfin.Point(Px, Py))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ExcessGas,
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LLBC_PrintLine("Failed to start service, error: %s", LLBC_FormatLastError());
getchar();
LLBC_Delete(svc);
return LLBC_FAILED;
}
LLBC_PrintLine("Call Service::Start() finished!");
LLBC_PrintLine("Press any key to restart service(stop->start)...");
getchar();
svc->Stop();
if (svc->Start(5) != LLBC_OK)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ptrace::close_session(handle.info.pid);
if handle.info.flags & O_EXCL == O_EXCL {
syscall::kill(handle.info.pid, SIGKILL)?;
}
let contexts = context::contexts();
if let Some(context) = contexts.get(handle.info.pid) {
let mut context = context.write();
context.ptrace_stop = false;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Album, AlbumPhoto, Artist, MusicGenre, MusicTrack, User)
from sqlalchemy import select
from sqlalchemy.engine import Engine, ResultProxy
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</tr>""".format(str(self.itemType),
str(self.quantity),
str(self.unitPrice),
str(self.unitPrice * self.quantity)) | ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @return void
*/
public function down()
{
Schema::dropIfExists('complaint');
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void skipBytes(int nrOfBytes) {
buffer.get(new byte[nrOfBytes]);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# return coco_evaluation(**args) | ise-uiuc/Magicoder-OSS-Instruct-75K |
If any of those is present it will raise an error. A look is not allowed
to have any of the "default" shaders present in a scene as they can
introduce problems when referenced (overriding local scene shaders).
To fix this no shape nodes in the look must have any of default shaders
applied.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DT.mint(wallet.address, toBase18(mint_amt), from_wallet=wallet)
return DT
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class JaroDist:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raw_drop["Date"]= pd.to_datetime(raw_drop["Date"], dayfirst=True)
raw_drop['Level (m)'] = raw_drop['Level (m)'].apply(lambda x: x.replace(',','.'))
raw_drop['Dimension (m)'] = raw_drop['Dimension (m)'].apply(lambda x: x.replace(',','.'))
raw_drop['Level (m)'] = raw_drop['Level (m)'].apply(pd.to_numeric)
raw_drop['Dimension (m)'] = raw_drop['Dimension (m)'].apply(pd.to_numeric)
raw_drop['Level (m)'] = raw_drop['Level (m)'].apply(pd.to_numeric)
raw_drop['Dimension (m)'] = raw_drop['Dimension (m)'].apply(pd.to_numeric)
raw_drop.to_csv(str(meta_id)+".csv") | ise-uiuc/Magicoder-OSS-Instruct-75K |
kubectl get pods -n $NAMESPACE | grep -v Running | grep -v Completed | awk -F' ' '{print $1 }' | while read podId
do
if [ "$podId" != "NAME" ]
then
echo "Deleting the pod : " $podId
kubectl delete pods $podId -n $NAMESPACE --force --grace-period=0
fi
done | ise-uiuc/Magicoder-OSS-Instruct-75K |
(*)
# everything else we copy
cp -R "$fname" ../kong-versions/$VERSION/kong/spec-ee/
;;
esac
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.run(|conn| {
log::info!("Creating producers table");
conn.execute(
r#"
CREATE TABLE IF NOT EXISTS producers (name string, uuid string, schema string);"#,
&[],
)
})
.await
.expect("cant init producers table");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if db_engine is None:
missing_values += " -DBEngine- "
if sql_driver_location is None:
missing_values += " -SQL_DRIVERS_LOCATION_<OS_Type>- "
if db_host is None:
missing_values += " -DatabaseHost- "
if db_port is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{% elif num_dims == 3 %}
{{buffer_name}} = new pico_cnn::naive::Tensor({{num_batches}}, {{num_channels}}, {{width}});
{% elif num_dims == 2 %}
{{buffer_name}} = new pico_cnn::naive::Tensor({{num_batches}}, {{num_channels}});
{% elif num_dims == 1 %}
{{buffer_name}} = new pico_cnn::naive::Tensor({{num_batches}});
{% endif %}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Update timestamps.
time_after_walk = now_in_sec()
last_check_took = time_after_walk - time_before_walk
debounced = time_after_walk - last_change
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Jorijn\Bitcoin\Dca\Exception;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .boxes import *
from .image_list import *
from .instances import *
from .keypoints import *
from .masks import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Senparc.Web.Hubs
{
public static class PhysicalFileAppBuilderExtensions
{
private static readonly PhysicalFileProvider _fileProvider = new PhysicalFileProvider(Directory.GetCurrentDirectory());
/// <summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.contrib import admin
admin.autodiscover()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# generate coordinates of line
point = np.array([0, 0, 0], dtype='float')
direction = np.array([1, 1, 1], dtype='float') / np.sqrt(3)
xyz = point + 10 * np.arange(-100, 100)[..., np.newaxis] * direction
# add gaussian noise to coordinates
noise = np.random.normal(size=xyz.shape)
xyz += 0.5 * noise
xyz[::2] += 20 * noise[::2]
xyz[::4] += 100 * noise[::4]
# robustly fit line only using inlier data with RANSAC algorithm
model_robust, inliers = ransac(xyz, LineModelND, min_samples=2,
residual_threshold=1, max_trials=1000)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using UnityEditor;
namespace Noc7c9 {
[CustomEditor (typeof (Comments))]
public class CommentsEditor : Editor {
public override void OnInspectorGUI() {
Comments comments = (Comments) target;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool IsPressed() const { return mIsPressed; }
bool IsReleased() const { return mIsReleased; }
bool IsDown() const { return mIsDown; }
bool RawDownState() const { return mRawDownState; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>src/Kentico.Xperience.Intercom.AspNetCore/Extensions/HtmlHelperExtensions.cs
using System;
using System.Security.Cryptography;
using System.Web;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
self.continuar = True
self.monto = 5000
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ._version import version as __version__
except ImportError:
__version__ = "unknown"
from . import _key_bindings
del _key_bindings
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from setuptools import setup
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Name: "<NAME>",
Owner: "me",
Paid: false,
Payments: [],
},
{
ID: "125",
Active: true,
Adress: "asdasd",
Budget: 0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n_feats = args.n_feats
n_denseblocks = args.n_denseblocks
scale = args.scale[0]
self.is_sub_mean = args.is_sub_mean
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
| 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.