seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
self.loss = None
if current_discrete is not None and next_discrete is not None:
predicted_values, predicted_discretes = self.predictor(
current_continuous, next_continuous, current_discrete, next_discrete
)
pos_loss = calculate_discrete_value_loss(predicted_discretes, next_discrete)
cont_loss = calculate_continuous_value_loss(predicted_values, next_continuous)
self.loss = F.concat([pos_loss, cont_loss], axis=-1)
else:
predicted_values, _ = self.predictor(current_continuous, next_continuous)
self.loss = calculate_continuous_value_loss(predicted_values, next_continuous)
if self.is_training:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
None => {
panic!("Invalid key. Branch node does not store value.");
}
};
match self.get_child(child_idx) {
Some(child) => child.value_hash(remaining),
None => Some(H256::zero()),
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return map_default(process, 'lt', 'apply', param_dict)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .MeasurementModel import MeasurementModel | ise-uiuc/Magicoder-OSS-Instruct-75K |
while(getline(file, fileName)){
if(fileName.substr(0,1) == "P"){
fileName = fileName.substr(0, 7) + ".conll";
fromPath = fromPath + fileName;
toPath = toPath + fileName;
try{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from geopy.geocoders import YahooPlaceFinder
from test.geocoders.util import GeocoderTestBase, env
class YahooPlaceFinderTestCaseUnitTest(GeocoderTestBase): # pylint: disable=R0904,C0111
def test_user_agent_custom(self):
geocoder = YahooPlaceFinder(
consumer_key='DUMMYKEY1234',
consumer_secret='DUMMYSECRET',
user_agent='my_user_agent/1.0'
)
self.assertEqual(geocoder.headers['User-Agent'], 'my_user_agent/1.0')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</form>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public void process(Tables.OsmLandcoverPolygon element, FeatureCollector features) {
String subclass = element.subclass();
String clazz = getClassFromSubclass(subclass);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(mock_out.shape, (32, 3, 16, 16))
self.assertEqual(th.isnan(mock_out).sum().item(), 0)
self.assertEqual(th.isinf(mock_out).sum().item(), 0)
# check the weight's scale
self.assertAlmostEqual(self.deconv_block.weight.data.std(), 1, delta=1e-1)
def tearDown(self):
# delete the computational resources
del self.deconv_block
class Test_equalized_linear(TestCase):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) -> Result<V::Value, Self::Error> {
unimplemented!()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
the_list = ["dragon", "cab", "science", "dove", "lime", "river", "pop"]
to_remove = []
for x in the_list: # iterates through every element in the list
if len(x) > 4: # if the element length is greater than 4
print(x) # prints the element
to_remove.append(x) # appends element to remove list
for y in to_remove: # iterates through every element meant to be removed
the_list.remove(y) # removes element from list
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sh comp_ptr_multiset_adapter.sh
sh comp_ptr_map_adapter.sh
sh comp_ptr_multimap_adapter.sh
sh comp_ptr_array.sh
sh comp_ptr_vector.sh
sh comp_ptr_deque.sh
sh comp_ptr_list.sh
sh comp_ptr_map.sh
sh comp_ptr_multimap.sh
sh comp_ptr_set.sh
sh comp_ptr_multiset.sh
sh comp_indirect_fun.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from Crypto.PublicKey import RSA, ECC
import json
from hashlib import sha256
from Crypto.Cipher import AES, PKCS1_OAEP
from base64 import b64decode
from Crypto.Signature import DSS
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DEFAULT_TIMER_NAME = 'ContextTimer'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if sal1 <= 1250:
sal2 = sal1 + (sal1 * 15 / 100)
else:
sal2 = sal1 + (sal1 * 10 / 100)
print(f'Quem ganhava {cores["vermelho"]}R${sal1:.2f} {cores["normal"]}passa a ganhar {cores["azul"]}R${sal2:.2f}')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# SPDX-License-Identifier: Apache-2.0
cd /opt/gopath/src/github.com/hyperledger/fabric/work/server/coreapi
npm install
cd /opt/gopath/src/github.com/hyperledger/fabric/work/server/coreapi/lib/common/exp
npm install
cd /opt/gopath/src/github.com/hyperledger/fabric/work/server/coreapi/lib/common/fabric_v1.0
npm install
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd ledger/build/apps/constellation
./constellation -standalone -block-interval 1000
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
migrations.DeleteModel(
name="Point",
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:copyright: © 2019 by the Lin team.
:license: MIT, see LICENSE for more details.
"""
import re
import time
from datetime import datetime, timedelta
from flask import current_app, jsonify, request
from lin.exception import ParameterException
def datetime_format(dt=None, fmt='%Y-%m-%d %H:%M:%S'):
if not dt:
dt = datetime.now()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Unknown error occurred..")
print("\nNo Hue light available? Set enable_hue to False to get rid of this!")
quit(0)
def main():
print("Python Multiplication Table Learner 1.0\n")
if enable_hue:
hb = connect_hue_bridge()
origxy = hb.get_light(hue_light_name, 'xy')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ $GOGS_WITHCICD == true ]; then
# Prepare the Drone data folders
echo ">> Creating /srv/data/$DRONE_DOMAIN folder..."
mkdir -p "/srv/data/$DRONE_DOMAIN" &>/dev/null
# Run the Drone server
echo ">> Running Drone Server..."
docker run \
--restart=always \
--name="$DRONE_SERVER_NAME" \
-d \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const uploadMock = jest.spyOn(action, 'upload').mockImplementation(async () => Promise.resolve(0))
// When
await action.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EXAMPLE_PROJECT='dragonfly-example-jdbc'
EXAMPLE_JAR='dragonfly-example-jdbc-0.1.jar'
EXAMPLE_CLASS_NAME='example.jdbc.SimpleJdbc'
sh ./run-example.sh ${EXAMPLE_PROJECT} ${EXAMPLE_JAR} ${EXAMPLE_CLASS_NAME}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# docker run --rm --privileged -v $(pwd):/data homeassistant/amd64-builder --amd64 -t /data --no-cache
docker build --build-arg BUILD_FROM="homeassistant/amd64-base:latest" -t local/my-test-addon . | ise-uiuc/Magicoder-OSS-Instruct-75K |
x = to_variable(x_data)
y = to_variable(y_data)
init_hidden = to_variable(init_hidden_data)
init_cell = to_variable(init_cell_data)
dy_loss, last_hidden, last_cell = ptb_model(x, y, init_hidden,
init_cell)
dy_loss.backward()
adam.minimize(dy_loss)
ptb_model.clear_gradients()
opti_dict = adam.state_dict()
for k, v in opti_dict.items():
if k == "global_step":
self.assertTrue(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setFailed(err.message)
} else {
setFailed(`Unhandled error: ${err}`)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert isinstance(world, World)
granularity = world.granularity
K = world.K
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print "Time independent variable writing : %s %s" % (name, arr.shape)
write(fd, name, arr)
except ValueError:
print "Skip:", name
for name, var in tdepvar.items():
try:
arr = np.array(var.data.take([it], axis=tdx),
dtype=var.data.dtype)
print "Time dependent variable writing : %s %s" % (name, arr.shape)
write(fd, name, arr)
except ValueError:
print "Skip:", name
close(fd)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ransac.cpp
IMPLEMENTATION OF RANSAC ALGORITHM TO OBTAIN DEPTH FROM DEPTHIMAGE.
OUTLIER REMOVAL WILL GIVE A RELIABLE DEPTH VALUE.
SEPT 2012
*/
#include <ctime>
#include <cstdlib>
#include <iostream>
#include <cv.h>
#include <highgui.h>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @author <EMAIL>
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_update_is_up(self):
user={'email':'jhon@doe', 'instrument': 'guitar'}
response = requests.post( self.URL_USERS, data=user )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import backoff
import pytest
import requests
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif [[ $image =~ ^fedora: ]]
then
pkgcmd="dnf"
builddep="dnf builddep"
sed -i '/^tsflags=/d' /etc/dnf/dnf.conf
dnf install -q -y @buildsys-build
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (bloom.mightContain(bytes)) {
if (DEBUG && !seen.contains(byteSeq)) {
throw new IllegalStateException("This event is 1 in 1Q!");
} else {
return true;
}
}
bloom.put(bytes);
if (DEBUG) {
seen.add(byteSeq);
}
return false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
acc = np.sum(np.argmax(y_pred, 1) == np.argmax(test_y, 1)) / len(y_pred)
eval_dict['acc'] += acc
eval_dict['f1-micro'] += metrics.f1_score(np.argmax(test_y, 1), np.argmax(y_pred, 1),
average='micro')
eval_dict['f1-macro'] += metrics.f1_score(np.argmax(test_y, 1), np.argmax(y_pred, 1),
average='macro')
for key in eval_dict.keys():
eval_dict[key] = round(1.0 * eval_dict[key] / loop, 4)
print('split_ratio: {}'.format(split_ratio))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
finalText = "\n\(peer.displayName): \(message)"
}
self.textBox.text =
self.textBox.text + (finalText as String)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
item.reload()
self.assertEqual(item.description, '<p>Drawing No. 07-xxx-PO132<br>1800 x 1685 x 750<br>All parts made of Marine Ply<br>Top w/ Corian dd<br>CO, CS, VIP Day Cabin</p>')
item.delete()
def test_clean_html(self):
settings = frappe.get_single('Stock Settings')
settings.clean_description_html = 1
settings.save()
item = frappe.get_doc(dict(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
class Reference:
pass
__book_url__ = "dummy"
__book_version__ = "dummy"
associate_ref_with(Reference)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contribution',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'iosDevCourse'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CHECK((a > b)); // ошибка!
a = stobi("15");
b = stobi("100");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# mock_file.read.return_value = None
# mock_open.return_value = mock_file
return mock_open
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# areaResult = dict()
# for area in areaDic:
# count = areaDic[area][0]
# money = areaDic[area][1]
# if count > 0:
# average = money / count
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return np.asarray([y - data[i] for i, y in enumerate(results)]) # model - data
def _iRep_gc_bias(Idb, correction_threshold=0.0):
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
True,
"Redirect warnings to log.warn messages",
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from arclet.alconna.builtin.commandline import main
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Particle:
position: tuple
velocity: tuple
acceleration: tuple
def e(triple):
return (int(t) for t in triple.split(","))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lr = TT.scalar()
# recurrent weights as a shared variable
W = theano.shared(numpy.random.uniform(size=(n, n), low=-.01, high=.01))
# input to hidden layer weights
W_in = theano.shared(numpy.random.uniform(size=(nin, n), low=-.01, high=.01))
# hidden to output layer weights
W_out = theano.shared(numpy.random.uniform(size=(n, nout), low=-.01, high=.01))
# recurrent function (using tanh activation function) and linear output
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public String getTreeNumber() {
return treeNumber;
}
public void setTreeNumber(String treeNumber) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BASE_DIR = Path(__file__).parent.parent
TG_TOKEN = get_env_var('TG_TOKEN')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("\n\nyour numbers are ", list1)
print("see you agine")
#print(list1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ATTR_PUBLISHED = 'published'
ATTR_URGENCY = 'urgency'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var file = await httpClient.GetByteArrayAsync(
$"https://www.virustotal.com/vtapi/v2/file/download?apikey={vtKey}&hash={hash}");
return new DownloadResponseItem(file);
}
catch (HttpRequestException requestException)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
#! Generated: __GENERATED__
#! GFWList: __GFWLIST_DETAIL__
'''
# 去除文本模板的前后换行符
for name in dir():
if name.isupper() and isinstance(vars()[name], string_types):
vars()[name] = vars()[name].strip('\n')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def evaluate(self, valid_data_path: str = "", max_valid_data_size: int = 0, **kwargs) -> NoReturn:
""" 验证模块
:param valid_data_path: 验证数据文本路径
:param max_valid_data_size: 最大验证数据量
:return: 返回历史指标数据
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert exc.type == ResourceNotFound
assert vf_module_instance._vf_module is None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
clusters_undef.push_back(ifound == -1);
}
delete[] input_data;
delete[] weight;
delete[] clusterid;
// sort result
std::vector<std::vector<int> > cluster_ids(ncluster);
for (int i=0; i < clusters.size(); i++) {
cluster_ids[ clusters[i] - 1 ].push_back(i);
}
std::sort(cluster_ids.begin(), cluster_ids.end(), GenUtils::less_vectors);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ftp.connect(self.read_host(), self.read_port())
ftp.login()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
- locale code
"""
if is_hidden(path):
return None
try:
locale_path, locale = next((p, l) for p, l in self.locale_directories(repo).items() if path.startswith(p))
except StopIteration:
return None
return path, locale_path, locale
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
printer.with_color(ColorStyle::secondary(), |printer| {
self.draw_internal(printer)
});
}
}
fn on_event(&mut self, event: Event) -> EventResult {
match event {
Event::Key(Key::Enter) | Event::Char(' ') => self.select(),
Event::Mouse {
event: MouseEvent::Release(MouseButton::Left),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Bnomei;
use Kirby\Toolkit\Str;
final class CacheBenchmark
{
private static function benchmark($cache, int $seconds = 1, $count = 1000, $contentLength = 128, $writeRatio = 0.1): array
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void OnError(Java.Lang.Exception exc) =>
onError?.Invoke(exc);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import ntpath
import sys
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[derive(Serialize)]
struct VerifyPacket {
fmt: String,
attStmt: VerifyPacketAttStmt,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from apns import APNs, Frame, Payload
apns = APNs(use_sandbox=False, cert_file='certificate/cert-pro.pem',
key_file='certificate/key-pro.pem')
# Send a notification
token_hex = '<KEY>'
content = u"测试推送一下"
def send_push():
payload = Payload(alert=content, sound="default", badge=1)
apns.gateway_server.send_notification(token_hex, payload)
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
invoking it from the main greenlet will raise an exception.
'''
current = getcurrent()
parent = current.parent
assert parent, '"_wait_fd" must be called by greenlet with a parent'
try:
fileno = conn.fileno()
except AttributeError:
fileno = conn
future = Future()
# When the event on fd occurs switch back to the current greenlet
if read:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// ...foo...
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function submit(Request $request)
{
$param = $request->param();
$cid = UserClient::info(['name'=>$param['username']]);
Db::startTrans();
try {
if (empty($cid)){
$cid = (new UserClient())->insertGetId([
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.shadowImage = UIImage()
self.setBackgroundImage(UIImage(), for: .default)
}
}
// public protocol DLNavigationControllerDelegate {
//
// func navigationConroller(_ navigationConroller: UINavigationController, shouldPop item: UINavigationItem) -> Bool
// }
//
// extension UINavigationController: UINavigationBarDelegate {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public var numerOfSections: Int {
switch self {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param tls:
If True, then use https for connecting, otherwise use http
:param path:
The path component of the connection URL
'''
# There is no way to pass these via the SqlAlchemy url object
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ls $1 >/dev/null 2>&1 && echo "found ${1}" || echo "did not find ${1}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
win = self.n
# check y-strips
for y in range(self.n):
count = 0
for x in range(self.n):
if self[x][y]==color:
count += 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// </summary>
private int[] framesMouseuttonPressed = { 0, 0, 0 };
internal BaseMenuForm() : base() { }
internal BaseMenuForm(Body body) : this(null, body) { }
internal BaseMenuForm(string name) : base(name) { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
layer.shadowOpacity = 0.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
write_excel_xls_append(data_dir + '我的书架.xls', '已读完的书籍', books_finish_read) # 追加写入excel文件
write_excel_xls_append(data_dir + '我的书架.xls', '最近阅读的书籍', books_recent_read) # 追加写入excel文件
write_excel_xls_append(data_dir + '我的书架.xls', '所有的书籍', books_all) # 追加写入excel文件
| ise-uiuc/Magicoder-OSS-Instruct-75K |
main(options, args)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bottom = all.find(sections[i + 1].section_name + ":");
all.erase(top, bottom - top);
core_file->EmptyFile();
core_file->Write(all);
sections.erase(sections.begin() + i);
return CinderStructure::CinderReturnCodes::DeletedSection;
}
}
std::string code_input = section_name + ":\n";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__author__ = '<NAME>' | ise-uiuc/Magicoder-OSS-Instruct-75K |
number = s.nextInt();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
templates = []
for idx in range(len(type_name.instantiations)):
template = '{}'.format(
self._format_type_name(type_name.instantiations[idx],
include_namespace=include_namespace,
constructor=constructor,
method=method))
templates.append(template)
if len(templates) > 0: # If there are no templates
formatted_type_name += '<{}>'.format(','.join(templates))
else:
for idx in range(len(type_name.instantiations)):
formatted_type_name += '{}'.format(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def bbreg(boundingbox, reg):
reg = reg.T
# calibrate bounding boxes
w = boundingbox[:, 2] - boundingbox[:, 0] + 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# set undecided pixel to grabcuts probably background
grabcut_mask[marker == UNDECIDED_MARKER] = cv2.GC_PR_BGD
# set undecided pixel to grabcuts probably foreground
grabcut_mask[marker == UNDECIDED_MARKER] = cv2.GC_PR_FGD
# set black pixel to grabcuts definitely background
grabcut_mask[marker == BG_MARKER] = cv2.GC_BGD
# set white pixel to grabcuts definitely foreground
grabcut_mask[marker == FG_MARKER] = cv2.GC_FGD
# run grabcut and let it figure out the undecided areas of the image
# and update the guiding grabcut_mask
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<NAME> 1/a, 1117 Budapest, Hungary
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IXRefContainer container;
container = await _downloader.DownloadAsync(uri);
if (!(container is XRefMap map))
{
// not support download an xref archive, or reference to an xref archive
return null;
}
if (map.Redirections?.Count > 0)
{
await RewriteRedirections(uri, xa, map);
}
if (map.References?.Count > 0 && map.HrefUpdated != true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fig.set_size_inches(7, 8, forward=True)
fig.canvas.draw()
data = np.frombuffer(fig.canvas.tostring_rgb(), dtype=np.uint8)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ALL_TAGS = ('album', 'title', 'artist')
SET_ONLY_IF_MISSING_TAGS = {'artist'}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
################################################################################
source "$(dirname $0)/test_util.sh"
readonly AUTOGEN="${1:-autogen}"
# If we're runnig via Bazel, find the source files via $TEST_SRCDIR;
# otherwise, default to dir of current file and search relative to that.
if [ -n "${TEST_SRCDIR:-}" ]; then
declare -r SRCDIR="${TEST_SRCDIR}/${TEST_WORKSPACE}"
else
declare -r SRCDIR="$(dirname $0)/.."
| ise-uiuc/Magicoder-OSS-Instruct-75K |
foreach ($files as $from) {
$to = $this->getPath($from, $arguments);
$content = $this->twig->render($from, $arguments);
$this->writeFile($to, $content, $arguments);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public int compare(UiChat lhs, UiChat rhs) {
final Message lm = lhs.getLastMessage();
final Message rm = rhs.getLastMessage();
return compareSendDatesLatestFirst(lm, rm);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(len(p)==6 or len(p)==4)
print(validate_pin("1a34"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func: (_: undefined, item: FinancialPosition) => {
if (!item.positionAccount.value || !item.ndc) {
return '-';
}
return <Perc perc={Math.floor(100 * (item.positionAccount.value / item.ndc))} />;
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
api_key = "string"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.drag_started_on_horizontal_scrollbar = true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo raspberry | sudo -S ./pi-blaster/pi-blaster stop
echo raspberry | sudo -S ./pi-blaster/pi-blaster start --pcm
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// try: "Mulan"
/// except Soldier: "Ping"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dataloaders = {'train': train_dataloader, 'val': val_dataloader}
# Train model
torch.cuda.empty_cache()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_grid_edge_nodes(self, grid, edge_nodes):
pass
def get_grid_face_count(self, grid):
pass
def get_grid_face_nodes(self, grid, face_nodes):
pass
def get_grid_face_edges(self, grid, face_edges):
pass
def get_grid_node_count(self, grid):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public constructor() {
super();
const client = container.resolve(StarlightClient);
this.#client = client;
this.#manager = client.manager.tasks;
}
public get task(): Task | null {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise
if result > 0:
raise PhidgetException(result)
return list(_Acceleration)
def getMinAcceleration(self):
| 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.