seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def test_add_bcc1(self):
data = "\x01P0\x02(1234567)\x03"
correct_data = "\x01P0\x02(1234567)\x03P"
with_bcc = add_bcc(data)
assert with_bcc == correct_data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
long_description_content_type="text/markdown",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# %%
# Let's plot the vector to see where the non-zero entries are
plt.figure(figsize=(8,6), dpi= 100, facecolor='w', edgecolor='k')
plt.stem(x, markerfmt='.');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.interval = self.end - self.start
print("{} {:.3E}".format(self.name, self.interval))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def getResultDirname():
return str(cf.get('result', 'resultdirname'))
def getDataTableName():
return str(cf.get('data', 'datatablename')) | ise-uiuc/Magicoder-OSS-Instruct-75K |
merchant_params = fields.Dict(required=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .timeconverter import converter_factor, list_freq,time_converter_matrix, FreqEnum
from .wor import bsw_to_wor, wor_to_bsw, wor_forecast, Wor | ise-uiuc/Magicoder-OSS-Instruct-75K |
NAME {{$name}}
MESSAGE {{$message}} --}}
<h3>You have a new contact</h3>
<div>
{{$bodyMessage}}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
require_once('../external/mysql_connect.php');
require_once('../external/functions.php');
define('FILE_PATH','../uploaded_files/');
/**
* Pushes large file to the user
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->{$this->model}->updateMenu($updArr,$mid);
redirect('Menu/manageMenu');
}
}
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
let mut counter = 0;
let mut lifetimes = Vec::new();
if !ref_arguments.is_empty() {
for ra in &mut ref_arguments {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## test unit
# now = datetime.datetime.now()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
auth = get_new_private_connection()
client = PrivateClient(auth)
client.market_buy_btc(usd)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return ('NO',None,None,None)
if (dMsg.args.has_key(dibs_constants.hostArgName)):
host = dMsg.args[dibs_constants.hostArgName]
else:
return ('NO',talkType,None,None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if clip_to is not None:
cur[indices] = np.clip(cur[indices], clip_min, clip_to)
if verbose and i % report_interval == 0:
l2 = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>RHEL/5/input/fixes/bash/file_groupowner_etc_passwd.sh<gh_stars>1-10
chgrp root /etc/passwd | ise-uiuc/Magicoder-OSS-Instruct-75K |
Args:
inp (str or list or None): Input value to be converted to dict
:Note: If inp is a list, then assumes format is [right, left]
Returns:
dict: Inputs mapped for each robot arm
"""
# First, convert to list if necessary
if not isinstance(inp, list):
inp = [inp for _ in range(2)]
# Now, convert list to dict and return
return {key: value for key, value in zip(self._arms, inp)}
def _set_joint_limits_upper_and_lower(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Header header\n\
Pose pose\n\
\n\
================================================================================\n\
MSG: std_msgs/Header\n\
# Standard metadata for higher-level stamped data types.\n\
# This is generally used to communicate timestamped data \n\
# in a particular coordinate frame.\n\
# \n\
# sequence ID: consecutively increasing ID \n\
uint32 seq\n\
#Two-integer timestamp that is expressed as:\n\
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
# time-handling sugar is provided by the client library\n\
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nome = str(input('Digite seu nome completo: ')).strip()
print('Seu nome tem Silva? {}'.format('SILVA' in nome.upper()))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// Set the Enum Definitions's values.
pub fn value(&mut self, value: EnumValue) {
self.values.push(value)
}
/// Add a directive.
pub fn directive(&mut self, directive: Directive) {
self.directives.push(directive)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_visualizing_array_node_with_filter():
x_node = Array()
x_node.addfilter(Missing("p", "missing_value"))
tree = x_node.get_parametrized_tree({'p': 0.5, 'missing_value': np.nan})
path = plotting_utils.visualize_error_generator(tree, False)
file = open(path, 'r')
data = file.read()
assert re.compile(r'2.*Missing.*probability: 0').search(data)
assert re.compile(r'1 -> 2').search(data)
def test_visualizing_array_node_with_complex_filter():
x_node = Array()
const = Constant("c")
addition = Addition(const, const)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//public class MapSerializeBenchmark
//{
// public readonly SerializerTarget target;
// public readonly SerializationContext context;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f"R: ({r_11}, {r_12}, {r_13})") | ise-uiuc/Magicoder-OSS-Instruct-75K |
def _process(self, request):
return NotImplemented
def _format(self, response=None):
return response
def _get(self, request, key, default=None):
if (request.json is not None and key in request.json):
return str(request.json[key])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("hello")
}
}
let someInstance = SomeClass()
someInstance.printHello()
// mutating instance methods
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def euclidean_distance(p, q):
if len(p) != len(q):
print('Euclidean distance error: p, q have different length')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func getRentalCoupon() -> Double {
print("collecting rent")
return 2.1
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# When there is no data, we know we can break out of the loop.
if not df.shape[0]:
break
else:
df.dropna(how='any', axis='columns', inplace=True)
df.columns = columns
errors, warnings = process_file_data(df, dataset, row_number)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DET_EVAL = False
EVAL_ROUNDS = 30
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Test(unittest.TestCase):
def test_toHex(self):
rgb = [244, 255, 196]
self.assertEqual(toHex(rgb), "#f4ffc4")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod ifls;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SetBackground.LyricsAPI
{
interface ILyricsProvider
{
string GetLyrics(string songName);
string GetLyrics(string songName, string artistName);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { fireEvent } from "./fireEvent";
import { act } from "./act";
import { blur } from "./blur";
import "./mockClientRects";
export function focus(element: Element) {
if (element.ownerDocument?.activeElement === element) return;
if (!isFocusable(element)) return;
blur();
act(() => {
if (element instanceof HTMLElement || element instanceof SVGElement) {
element.focus();
}
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TMIDI.Tegridy_Pickle_File_Writer(MusicDataset, file_name_to_output_dataset_to)
"""# Generate Endless Classical Piano Music"""
#@title Generate music with Optimus score slices signatures matching
#@markdown NOTE: If nothing is being generated or if the song is too short: re-run the generator.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def compute_edge_embeddings(X, ebunch, method='hadamard'):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{'type': 'icon_set',
'icon_style': '4_red_to_black',
'icons': [{'criteria': '>=', 'type': 'number', 'value': 90},
{'criteria': '<', 'type': 'percentile', 'value': 50},
{'criteria': '<=', 'type': 'percent', 'value': 25}]})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#: The underlying dictionary.
subcontexts = List(Supports(IRestrictedContext, factory=DataContext))
#: Suppress subcontext modified events
veto_subcontext_modified = Bool(True)
def __init__(self, *subcontexts, **traits):
subcontexts = list(subcontexts)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
db_select = Dropdown(
options=[db for db in config.get_value(['db'])],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "The Communication Server starts now."
cd WebRTC/
export XIRSYS=70c9a87c-6338-11e5-b7f9-407599caac9ds
npm start
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fname = os.path.join(os.path.dirname(__file__), 'test.fastq')
templ = os.path.join(os.path.dirname(__file__), 'test_templ')
ngsutils.fastq.split.fastq_split(fname, templ, 2, ignore_pairs=True, quiet=True)
self.assertTrue(os.path.exists('%s.1.fastq' % templ))
self.assertTrue(os.path.exists('%s.2.fastq' % templ))
fq1 = FASTQ('%s.1.fastq' % templ)
fq2 = FASTQ('%s.2.fastq' % templ)
names1 = [x.name for x in fq1.fetch(quiet=True)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Badge badgeContent={4} color='secondary'>
<NotificationsIcon></NotificationsIcon>
</Badge>
</IconButton>
<p>Notifications</p>
</MenuItem>
<MenuItem onClick={handleProfileMenuOpen}>
<IconButton color='inherit'>
<AccountCircle></AccountCircle>
</IconButton>
<p>Profile</p>
</MenuItem>
</Menu>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
size = len(Size2Type)
Size2Type.append(TYPE)
Type2Size[TYPE] = size
| ise-uiuc/Magicoder-OSS-Instruct-75K |
POOL_SIZE=5
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from typing import Dict
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#cd /home/botanic/hadrons
#mv ../dist_3d.zip .
#unzip -d . dist_3d.zip
#rm -rf /var/www/html/hadron/dist_3d/ ; mv dist_3d/ /var/www/html/hadron/dist_3d/
cd ~/Development/Work\ Repos/SEED/Hadron/;npx webpack
| ise-uiuc/Magicoder-OSS-Instruct-75K |
permissions = ResourcePermissionField('event-detail', view_args=('pk',))
contributions = FilteredRelatedField(many=True, filter_backend=ParticipantListFilter)
links = serializers.SerializerMethodField()
def get_links(self, instance):
return {
'ical': reverse_signed('event-ical', args=(instance.pk, )),
'google': instance.google_calendar_link,
'outlook': instance.outlook_link,
}
def get_fields(self):
fields = super(EventSerializer, self).get_fields()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<< dic_file_name << std::endl;
return 1;
}
dic_stream = &dic_file;
}
dawgdic::Dawg dawg;
if (!BuildDawg(lexicon_stream, &dawg, options.tab())) {
return 1;
}
dawgdic::Dictionary dic;
if (!BuildDictionary(dawg, &dic)) {
return 1;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
multiple=True,
help=(
"""Add or override environment variables.
Environment variables are sourced from the Minitrino library's root
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from argparse import ArgumentParser
from easydict import EasyDict as edict
argp = ArgumentParser()
argp.add_argument('experiment_config')
cli_args = argp.parse_args()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
np.random.uniform(0, 1, self.width) < spark_probs)
np.clip(self.heat_buf, 0, 1, self.heat_buf)
class Fire(Matrix):
def __init__(self, *args,
**kwds):
# The base class MUST be initialized by calling super like this
super().__init__(*args, **kwds)
width, height = self.layout.dimensions
| ise-uiuc/Magicoder-OSS-Instruct-75K |
git add . &&
git commit -m "Sync translations from weblate" &&
| ise-uiuc/Magicoder-OSS-Instruct-75K |
it('should toString correctly when given string', function (done) {
//Given
var endpoint = new RouteEndpoint();
//When
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
namespace Tauron.Application.ImageOrginazer.ViewModels.Views.ImageEditorHelper
{
public class InsertCheckEventArgs<TEditorItem> : EventArgs
{
public bool OverrideAdd { get; set; }
public TEditorItem EditorItem { get; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
This module defines error handlers for the websockets and the Gremlin Server.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
job = Job("testRef")
now = datetime(2014, 2, 2, 10)
# execute later
addition = timedelta(hours=1)
job.setExecution("weekly", (now + addition).time(), "So")
calculateNextExecution(job, now)
assert datetime(2014, 2, 2, 11) == job.nextExecution, "Calculated wrong execution date: %s"\
% str(job.nextExecution)
# execute tomorrow
addition = timedelta(hours=-1)
job.setExecution("weekly", (now + addition).time(), "So")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.configure(routes::transaction::routes)
//.configure(routes::token::routes)
// enable logger - always register actix-web Logger middleware last
.wrap(middleware::Logger::default())
.wrap(Cors::permissive())
};
// Start http server with the app
HttpServer::new(app)
.bind(api_address)?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
help="Learning rate for client optimizers.")
flags.DEFINE_bool("freeze_model", default=True,
help="Freeze early layers in the model (if its builder fn allows)")
flags.DEFINE_integer("image_width", default=224,
help="Width dimension of input radiology images.")
flags.DEFINE_integer("image_height", default=224,
help="Height dimension of input radiology images.")
flags.DEFINE_integer("batch_size", default=4,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
run_rsync_command = RSYNC_COMMAND[:]
if len(snapshots):
# Use last backup as hard link reference if available
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@author: whoami
@license: Apache Licence 2.0
@contact: <EMAIL>
@site: http://www.itweet.cn
@software: PyCharm
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const float nSigmaITS = fPID->NumberOfSigmasITS(track,kSpecies[iS]);
float nSigmaTPC = fPID->NumberOfSigmasTPC(track,kSpecies[iS]);
if (fUseCustomBethe[iS]) {
const float betaGamma = track->GetTPCmomentum() / AliPID::ParticleMass(kSpecies[iS]);
const float* pars = fCustomBethe[iS];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from rl.agents.a2c.agent import A2CAgent
TestArgType = namedtuple('ArgType', ['name'])
arg_type = TestArgType('arg')
A = np.array
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Gets an uninitialised MetricFrame for testing purposes
return metrics.MetricFrame.__new__(metrics.MetricFrame)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func addToArrayForm(_ A: [Int], _ K: Int) -> [Int] {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("import_vgg7.py JSONPATH")
print(" i.e. import_vgg7.py /home/you/Documents/External/waifu2x/models/vgg_7/art/scale2.0x_model.json")
sys.exit(1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// LogEventRequestType message = new PatientDiscoveryTransforms().transformNhinXDRResponseToAuditMsg(response,
// assertion, NhincConstants.AUDIT_LOG_INBOUND_DIRECTION, NhincConstants.AUDIT_LOG_NHIN_INTERFACE);
LogEventRequestType message = new LogEventRequestType();
return message;
}
protected AuditRepositoryProxy getAuditRepositoryProxy(AuditRepositoryProxyObjectFactory auditRepoFactory) {
AuditRepositoryProxy proxy = auditRepoFactory.getAuditRepositoryProxy();
return proxy;
}
protected AuditRepositoryProxyObjectFactory getAuditRepositoryProxyObjectFactory() {
AuditRepositoryProxyObjectFactory auditRepoFactory = new AuditRepositoryProxyObjectFactory();
return auditRepoFactory;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(19, 1, 0), \
(1, 1, my_filter), \
(1, 1, 0), \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
savepath = '/media/daniel/storage11/Dropbox/LLM_Danny/frequencySpaceDissipation/tests/freqentn_tests/'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>mjaquiery/legUp
"""
Updated on Sun Feb 25 15:26 2018
- tkinter library used to enable file selection dialogues for loading data and saving output
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._paths = None
Collection.__init__(self, **kwargs)
self._draw_patches()
return
@property
def features(self):
return self._features
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertAlmostEqual(mmdlh[m], la_mmdlh[m], delta=0.25)
# Test with year set to a non-leap year
non_leap = pyeto.monthly_mean_daylight_hours(latitude, 2015)
for m in range(12):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
size = int(r.headers.get('Content-Length', 0)) // 1024
#log.debug("Content-Length: %dkB" % size)
if size > 2048:
log.warn("Content too large, will not fetch: %skB %s" % (size, url))
return None
return r
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data.append(row)
# fit model
model = VAR(data)
model_fit = model.fit()
# make prediction
yhat = model_fit.forecast(model_fit.y, steps=1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn print_ctl(ctlname: &str) -> Result<(), sysctl::SysctlError> {
println!("Reading '{}'", ctlname);
let ctl = try!(sysctl::Ctl::new(ctlname));
let description = try!(ctl.description());
println!("Description: {}", description);
let val_string = try!(ctl.value_string());
println!("Value: {}", val_string);
Ok(())
}
fn main() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public struct HelloRequest: FlatBufferObject {
static func validateVersion() { FlatBuffersVersion_1_12_0() }
public var __buffer: ByteBuffer! { return _accessor.bb }
private var _accessor: Table
public static func getRootAsHelloRequest(bb: ByteBuffer) -> HelloRequest { return HelloRequest(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: bb.reader)) + Int32(bb.reader))) }
private init(_ t: Table) { _accessor = t }
public init(_ bb: ByteBuffer, o: Int32) { _accessor = Table(bb: bb, position: o) }
public var name: String? { let o = _accessor.offset(4); return o == 0 ? nil : _accessor.string(at: o) }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return doubleRaf;
}
// istanbul ignore next
function setTimeoutRaf(_process: () => void) {
setTimeout(process, 17);
}
// istanbul ignore next
function singleRaf() {
setTimeout(process, 0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public IEnumerable<TipoProduto> Get()
{
throw new NotImplementedException();
}
public TipoProduto Get(int id)
{
throw new NotImplementedException();
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tags_defined_by_accounts[tag] = True
for collection_type in ['launches', 'spoke-local-portfolios']:
collection_to_check = value.get(collection_type, [])
for collection_name, collection_item in collection_to_check.items():
for deploy_to in collection_item.get('deploy_to', {}).get('tags', []):
tag_to_check = deploy_to.get('tag')
if tags_defined_by_accounts.get(tag_to_check) is None:
raise AssertionError(
f"{collection_type}.{collection_name} uses tag {tag_to_check} in deploy_to that doesn't exist"
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Media.Codecs.Video
{
public interface IVideoCodec : Codec.Interfaces.ICodec
{
//Codec.Size
//MinimumWidth, MinimumHeight
//MaximumWidth, MaximumHeight
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int currentCounter = 0;
for (int j = i+1; j < array.Length; j++)
{
if(array[i] == array[j])
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Z = z;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
point GeoDataFrame to plot
buffer_size : numeric
size of the buffer in meters (measured in EPSG:31287)
"""
buffered = gdf.to_crs('epsg:31287').buffer(buffer_size)
buffered = gdf.copy().set_geometry(buffered).to_crs('epsg:4326')
plot = ( buffered.hvplot(geo=True, tiles='OSM', alpha=0.5, line_width=0, *args, **kwargs) *
gdf.hvplot(geo=True, hover_cols=['DESIGNATION'])
).opts(active_tools=['wheel_zoom'])
return plot
| ise-uiuc/Magicoder-OSS-Instruct-75K |
json_request = {'query': query, 'variables': variables}
try:
request = requests.post(url='https://api.smash.gg/gql/alpha', json=json_request, headers=header)
if request.status_code == 400:
raise RequestError
elif request.status_code == 429:
raise TooManyRequestsError
elif 400 <= request.status_code < 500:
raise ResponseError
elif 500 <= request.status_code < 600:
raise ServerError
elif 300 <= request.status_code < 400:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@_command
def set_hsv(self, hue, saturation, value=None, **kwargs):
"""
Set the bulb's HSV value.
:param int hue: The hue to set (0-359).
:param int saturation: The saturation to set (0-100).
:param int value: The value to set (0-100). If omitted, the bulb's
brightness will remain the same as before the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pyhanlp import *
from tests.test_utility import ensure_data
PerceptronNameGenderClassifier = JClass('com.hankcs.hanlp.model.perceptron.PerceptronNameGenderClassifier')
cnname = ensure_data('cnname', 'http://file.hankcs.com/corpus/cnname.zip')
TRAINING_SET = os.path.join(cnname, 'train.csv')
TESTING_SET = os.path.join(cnname, 'test.csv')
MODEL = cnname + ".bin"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
);
let server = Arc::new(MyServer {
resources: hlist![Arc::new(
userlogin::UserLoginResource::new(session_db, user_db)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$result = query_database($db_connection, $QUERY, [$_GET["sessionId"], $_GET["nodeId"]]);
echo json_encode($result === FALSE || $result === NULL ? $result : $result[0]); | ise-uiuc/Magicoder-OSS-Instruct-75K |
},
checkpoint_filename,
)
model.cuda()
if args.train_split != "train_valid" and best_acc < acc:
best_acc = acc
shutil.copyfile(
checkpoint_filename,
os.path.join(args.log_dir, "checkpoints/model_best.pth"),
)
shutil.copyfile(
os.path.join(args.log_dir, "predictions/pred_%02d.pickle" % epoch),
os.path.join(args.log_dir, "predictions/pred_best.pickle"),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// /// Gets the type of the trait.
// /// </summary>
// /// <value>The type of the trait.</value>
// public Type TraitType { get; }
//}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
schema = api.model('type', {
'id': fields.Integer(dump_only=True),
'type_name': fields.String(required=True, description='type name')
})
entry = api.model('type_entry', {
'type_name': fields.String(required=True, description='type name')
})
class AreaDto:
api = Namespace('area', description='area related operations')
schema = api.model('area', {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Shift (Row 2) 2p Right
Shift (Row 3) 3p Right
Shift (Row 4) 1p Left
Shift (Row 5) 2p Left
Procedure 2:
Swap (Column 1) & (Column 2)
Swap (Column 3) & (Column 5)
Shift (Column 1) 2p Down
Shift (Column 2) 2p Down
Shift (Column 4) 2p Up
Swap (Row 1) & (Row 3)
Swap (Row 2) & (Row 4)
Procedure 3:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public override int Size
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_eq!(uuid.is_derived(), false);
}
#[test]
fn event_uuid() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _is_introspection_type(typename):
return typename.startswith('__')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(
"Dataset freefield1010 loaded in", "{0:.2f}".format(time.time() - t), "s."
)
return dataset
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Deserialize)]
pub struct DatabaseSettings {
pub username: String,
pub password: String,
pub port: u16,
pub host: String,
pub database_name: String,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
webbrowser.open(self.trailer_youtube_url)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// This is a no-op assignment, except it makes cargo aware that the output depends on the env.
let value = std::env::var("ENSO_MAX_PROFILING_LEVEL").unwrap_or_default();
println!("cargo:rustc-env=ENSO_MAX_PROFILING_LEVEL={}", value);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Indicates the image UI style.
public var image: ImageStyle = ImageStyle(borderColor: .componentSeparator,
borderWidth: 1.0 / UIScreen.main.nativeScale,
cornerRadius: 4.0,
clipsToBounds: true,
contentMode: .scaleAspectFit)
/// :nodoc:
public var backgroundColor: UIColor = .componentBackground
/// Initializes the list item style
///
/// - Parameter title: The title text style.
/// - Parameter subtitle: The subtitle text style.
| 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.