seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
total_read += read;
};
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return false;
}
var index = span.IndexOf('\t');
if (index == -1)
{
_str = ReadOnlySpan<char>.Empty;
Current = span;
return true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace AnimalShelter.Controllers
{
public class AnimalsController : Controller
{
private readonly AnimalShelterContext _db;
public AnimalsController(AnimalShelterContext db)
{
_db = db;
}
public ActionResult Index()
{
List<Animal> model = _db.Animals.Include(animals => animals.Species).ToList();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# noinspection PyTypeChecker
neural_dataset: LanguageDataset = \
trainer.build_dataset(override_targets=False)
result = list(neural_dataset.build(NO_EXAMPLE_SET))
# dataset = neural_dataset.get_dataset(NO_EXAMPLE_SET)
self.assertEqual(maximum_length, len(result[0][0][0]))
self.assertEqual(
(maximum_length, len(POSSIBLE_LABELS)),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
git pull && \
git push && \
git checkout gh-pages && \
git pull && \
git merge master && \
git push && \
git checkout master
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "class_7.h"
#include <lib_5/class_9.h>
#include <lib_0/class_7.h>
#include <lib_7/class_0.h>
#include <lib_1/class_2.h>
#include <lib_3/class_8.h>
class_4::class_4() {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# convert to word-vectors
words = list(a_vals.keys() | b_vals.keys())
a_vect = [a_vals.get(word, 0) for word in words]
b_vect = [b_vals.get(word, 0) for word in words]
# find cosine
len_a = sum(av*av for av in a_vect) ** 0.5
len_b = sum(bv*bv for bv in b_vect) ** 0.5
dot = sum(av*bv for av,bv in zip(a_vect, b_vect))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for(int i=0;i<n;++i){
cin >> c[i];
}
sort(c.begin(), c.end());
vector<ll> ab(n);
vector<ll> bc(n);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.Lin_out = torch.nn.Linear(D_hid, 4)
def forward(self,t):
# layer 1
l = self.Lin_1(t); h = self.actF(l)
# layer 2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while True:
tokens = input()
if tokens == 'buy':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
set -e
dropdb gatsby_example 2>/dev/null || true
createdb gatsby_example
psql -1Xv ON_ERROR_STOP=1 -f schema.sql -f data.sql gatsby_example
echo "✅ DB reset"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Maximum code length acccepted
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func addRewrite(rule: String, target: String) {
guard rule.count > 0 else { return }
guard target.count > 0 else { return }
queue.async(flags: .barrier) { [unowned self] in
self.rules[rule] = target
}
}
func removeRewrite(rule: String) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>mjmunger/loggingConfigurator<gh_stars>0
<?php
include('vendor/autoload.php');
include('autoload.php'); | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
*/
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# print(combos) | ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface iConverter {
void convert() throws Exception;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
extension UIColor {
convenience init(hex: Int) {
self.init(
red: CGFloat((hex & 0xff0000) >> 16) / 255.0,
green: CGFloat((hex & 0x00ff00) >> 8) / 255.0,
blue: CGFloat((hex & 0x0000ff) >> 0) / 255.0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SACustomAPI.Utilities
{
public class AuthorizeEnum
{
[Flags]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[Test]
public void NotExceedTime_When_Called_Given_That_Result_Time_Arent_More_That_Provided_Max_Does_Not_Throw()
{
// Arrange
var resultTime = new TimeSpan(0, 2, 0);
RunResult measureResult = GetTestMeasureResult(resultTime.Ticks, 1);
AssertPart assertPart = new AssertPart(measureResult);
// Act
assertPart.NotExceedTotalTime(new TimeSpan(0, 3, 0));
assertPart.NotExceedTotalTime(new TimeSpan(0, 2, 0));
}
[Test]
public void NotExceedTime_When_Called_Given_That_Result_Time_Are_More_That_Provided_Max_Does_Not_Throw()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cli = Cli(parameters, cwd, self.logMethod)
cli.Execute()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/usr/bin/chromium/chrome --window-size=$Screen_L,$Screen_H -remote-debugging-port=9999 --kiosk $URL
| ise-uiuc/Magicoder-OSS-Instruct-75K |
emcc \
-Os \
-s SINGLE_FILE=1 \
-s EXPORTED_FUNCTIONS='["_pikchr"]' \
-s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' \
-s MALLOC=emmalloc \
-s WASM_ASYNC_COMPILATION=0 \
-s MODULARIZE=1 \
-s STRICT=1 \
-o pikchr.js \
pikchr.c
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except ImportError:
from xml.etree.ElementTree import fromstring
PathType = Union[bytes, str, PathLike]
TOKEN_SPECIFICATION: Final[List[Tuple[str, str]]] = [
('WS', r'\s+'),
('FLOAT', r'[+-]?[0-9]+\.[0-9]*|\.[0-9]+'),
('INT', r'[+-]?[0-9]+'),
('COMMA', r','),
('STRING', r'\'(?:[^\']|(?<=\\)\')*\'|"(?:[^"]|(?<=\\)")*"'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
html = requests.get(base_url,headers=headers)
htmltext = html.text
data = json.loads(htmltext)
length_data = len(data)
for i in range(0,length_data):
print data[i]['user']['name']
print data[i]['issue_no']
print data[i]['topic_id']
print data[i]['title']
print data[i]['status']
print data[i]['topic_name']
print data[i]['issue_type_name']
print data[i]['comments']
print data[i]['image_url']
print data[i]['agency_name']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import csv
from core.exceptions import InvalidFileException
def load_so_item_from_file(path, db_service):
with open(path) as csv_file:
csv_reader = csv.reader(csv_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
retry_seconds = serializers.IntegerField(source="RETRY_SECONDS", read_only=True)
del_record_limit = serializers.IntegerField(source="DEL_RECORD_LIMIT", read_only=True)
max_iterations = serializers.IntegerField(source="MAX_ITERATIONS", read_only=True)
class StatusSerializer(serializers.Serializer):
"""Serializer for the Status model."""
api_version = serializers.IntegerField()
commit = serializers.CharField()
modules = serializers.DictField()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import random
class Chromosome:
def __init__(self, bird: NeuralBird, fitness=0, generations_alive=0, ancestor_generations=0):
self.bird = bird
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
self.type = None
self.value = None
@staticmethod
def from_json(json_dict):
if not json_dict or type(json_dict) != dict: return None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ftxdmzwpsxwoxaijjwfkhxoixomzhxkm sh xjohajxmoxhmebxwoh mowipxwoxbhkajxmqq hjjxobhxeu jhxicxqwdhpjwipmkwotx
hnh jwfkhxgudaxobwjxdhobiqxwjxmxnm wmpoxicxobhxdho iaikwjxbmjowpsjxmksi wobdxobmoxmkkivjxa iaijmkjxobmoxebmpshxobhxqwdhpjwipmkwotxicxobhxjameh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/sh -x
cp /home/ubuntu/puma.service /etc/systemd/system/puma.service
systemctl enable puma
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let input_workingDirectory = tl.getPathInput('workingDirectory', /*required*/ true, /*check*/ true);
let input_filePath: string;
let input_arguments: string;
let input_script: string;
let input_targetType: string = tl.getInput('targetType') || 'inline';
let input_targetInterperter: string = tl.getInput('targetInterperter') || 'bash';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Bar(Foo):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
results.append(Result(
artist=raw_result.get("artist_name", "Unknown Artist"),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
git submodule sync && git submodule update --init --recursive && s=0 && break || s=$?
echo retrying...
done;
(exit $s)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__all__ = ["Fluid", "Mixture"]
# PyCoolProp and CoolProp parameters name mapping
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Author : xiaotao
@Email : <EMAIL>
@Lost modifid : 2020/4/24 10:02
@Filename : __init__.py.py
@Description :
@Software : PyCharm
""" | ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
from ctp.reformulators.base import BaseReformulator
from ctp.reformulators.base import StaticReformulator
from ctp.reformulators.base import LinearReformulator
from ctp.reformulators.base import AttentiveReformulator
from ctp.reformulators.base import MemoryReformulator
from ctp.reformulators.base import SymbolicReformulator
from ctp.reformulators.base import NTPReformulator
from ctp.reformulators.base import GNTPReformulator
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'groovy',
'h',
'haml',
'hh',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
constructor (public name: string) { }
}
export const True = new Truth()
export const False = new Falsehood()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
num1 = 66
num2 = 66
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let inputs = json!([utxo]).to_string();
let outputs = json!([]).to_string();
let parsed_resp = _send_attrib_with_fees(dids[0], Some(ATTRIB_RAW_DATA_2), wallet.handle, pool_handle, &inputs, &outputs).unwrap();
let parsed_utxos: Vec<UTXO> = serde_json::from_str(&parsed_resp).unwrap();
assert_eq!(parsed_utxos.len(), 0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var label1 = new Label { Text = "Label1", BackgroundColor = Color.Aqua };
var label2 = new Label { Text = "Label2", BackgroundColor = Color.Aqua };
var label3 = new Label { Text = "Label3", BackgroundColor = Color.Aqua };
var label4 = new Label { Text = "Label4", BackgroundColor = Color.Aqua };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.responsible?.decorate(json: &json, withKey: "responsible", errors: &errors)
self.sender?.decorate(json: &json, withKey: "sender", errors: &errors)
self.source?.decorate(json: &json, withKey: "source", errors: &errors)
if nil == self.source {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case WalletType.Ledger:
uri = new($"avares://WalletWasabi.Fluent/Assets/WalletIcons/{ThemeHelper.CurrentTheme}/ledger.png");
break;
case WalletType.Normal:
case WalletType.Unknown:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (FAILED(hr) || !mipSurface)
{
os::Printer::log("Could not get mipmap level", ELL_WARNING);
return;
}
D3DSURFACE_DESC mipDesc;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model_class_path, fields = settings.WINDOWS_TILE_MODEL
try:
import_dotted_path(model_class_path)
except ImportError:
raise ImproperlyConfigured("The WINDOWS_TILE_MODEL setting contains %s modle which can not be imported" %model_class_path)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.batch_Src_length.append(mat.shape[0])
self.batch_Src_labels.append(Src_tokens)
self.batch_Src_label_length.append(len(Src_tokens))
self.batch_Tgt_labels.append(Tgt_tokens)
self.batch_Tgt_label_length.append(len(Tgt_tokens))
self.batch_Src_text.append(Src_Words_Text)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('-='*20, '\033[m')
fr = str(input('Qual frase deseja verificar: ')).strip().upper()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .models import Item
from datetime import datetime
def active_auction(function):
def wrap(request, *args, **kwargs):
item = Item.objects.get(slug=kwargs['slug'])
if item.end_of_auction > timezone.now():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return ret;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'default-swagger-version' => null,
'api-doc-template' => null,
'suffix' => '.{format}',
'title' => 'Swagger UI'
); | ise-uiuc/Magicoder-OSS-Instruct-75K |
witness::utils::get_audits,
};
pub fn noop_operation(tree: &CircuitAccountTree, acc_id: u32) -> Operation<Bn256> {
let signature_data = SignatureData::init_empty();
let first_sig_msg = Fr::zero();
let second_sig_msg = Fr::zero();
let third_sig_msg = Fr::zero();
let signer_pub_key_packed = [Some(false); 256];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker-compose exec web "su www-data && bin/magento indexer:reindex && bin/magento cache:flush && bin/magento cache:clear"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
color: config.colors.message,
author: {
name: '<NAME>',
},
description:
'Выдаёт предупреждения за использование слов из списка запрещенных, игнорирует каналы с пометкой NSFW и из списка игнорируемых',
title: words ? 'Включен' : 'Отключен',
footer: {
text: `Для выдачи мута обязательно должны быть настроены: ${config.discord.prefix}warn set И ${config.discord.prefix}mute role`,
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert [record.id for record in records] == [record.id for record in expected]
assert [record.name for record in records] == [record.name for record in expected]
def test_write_fasta():
records = [SeqRecord(seq=Seq('ATTAAATA'), id='Seg1', name='Seg1',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ $DOSETUP =~ "y" ]] ; then
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libzmq3-dev tmux
sudo apt-get install -y libgmp3-dev
sudo apt-get update
cd /var
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await self.channel_layer.group_discard(self.scope['user'].username + '-message',self.channel_name) # 将该链接移出聊天室
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.registry.get_sample_value(
'python_gc_collected_objects_count',
labels={"generation": "0"}))
self.assertEqual(1,
self.registry.get_sample_value(
'python_gc_uncollectable_objects_count',
labels={"generation": "0"}))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fields = (
"id", "user", "nickname", "birth_date", "foot_choice",
"nationality", "current_status", "gender", "age")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
','.join((c.DUMMY_SUBTHESAURUS_A, c.DUMMY_SUBTHESAURUS_B))]
handle_train(Namespace(**train_args_dict_with_slc))
cli.train.assert_called_once()
actual_settings = cli.train.call_args[0][0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
spec2 = capdl.Spec()
spec2.add_object(b)
spec1.merge(spec2)
assert spec1.objs == set([a, b])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return failed_count == 0
def IsFileSkipped(file_name) -> bool:
if os.path.splitext(file_name)[1].lower() not in SOURCE_AND_SCRIPT_FILE_EXTENSIONS:
skipped = True
for pattern in SOURCE_AND_SCRIPT_FILE_PATTERNS:
if pattern.match(file_name):
skipped = False
break
return skipped
return False
class CommitValidator(abc.ABC):
"""A commit validator"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$dnentry->close();
break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
extension CGRect {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const outputs = deserializeOutputs(readStream);
const payload = deserializePayload(readStream);
if (payload && payload.type !== INDEXATION_PAYLOAD_TYPE) {
throw new Error("Transaction essence can only contain embedded Indexation Payload");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
docker build --tag voxblox -f Dockerfile ..
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export class DateTimeModel extends Observable {
public dateTime: Date
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (Cast<AActor>(HitResult.Actor))
{
UOrangeVesselTarget* Target = Cast<UOrangeVesselTarget>(HitResult.Actor->GetComponentByClass(UOrangeVesselTarget::StaticClass()));
if (Target && Target->Owner)
{
UOrangeTargetData* Data = Cast<UOrangeTargetData>(Target->GetDataOfComponent(Cast<UPrimitiveComponent>(HitResult.Component)));
if (PillarManager && Data && Data->bIsAffectedByThisEffect)
{
FVector Location = FVector(HitResult.Location.X, HitResult.Location.Y, HitResult.Location.Z);
FRotator OtherUp = HitResult.Normal.Rotation();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return [
'user_id' => $this->cash->user->id, // 提现人ID
'wallet_cash_id' => $this->cash->id, // 提现记录ID
'cash_actual_amount' => $this->cash->cash_actual_amount, // 实际提现金额
'cash_apply_amount' => $this->cash->cash_apply_amount, // 提现申请金额
'cash_status' => $this->cash->cash_status,
'remark' => $this->cash->remark,
'created_at' => $this->cash->formatDate('created_at'),
];
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# do the file _id and return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
rainbow::lua::checkargs<PolygonShape,
lua_Number,
lua_Number,
lua_Number,
lua_Number,
lua_Number>(L);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$codigo .= "\n\t \$ROOT = (!isset(\$ROOT)) ? \"../../../\":\$ROOT;";
$codigo .= "\n\t /**";
$codigo .= "\n\t * @Package /" . strtolower($package);
$codigo .= "\n\t * @Category Object";
$codigo .= "\n\t * @Author <NAME> <<EMAIL>>";
$codigo .= "\n\t * @Copyright 2012 - 2022 www.insside.com";
$codigo .= "\n\t * @license http://www.insside.com/licenses/cluf.txt CLUF";
$codigo .= "\n\t * @Version 1.0.0 " . $fechas->hoy() . " - " . $fechas->ahora();
$codigo .= "\n\t **/";
$codigo .= "\n\t if (!class_exists(\"{$singular}\")) {";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"targets": [{
"target_name": "test",
"type": "executable",
"sources": [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
run()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
0, /* meta_qualifiers */
0, /* num_meta_qaulifiers */
_Class5_MFA,
CIMPLE_ARRAY_SIZE(_Class5_MFA),
sizeof(Class5),
_locals,
0, /* super_class */
1, /* num_keys */
&__meta_repository_BF07919D97D812EA85A754AAA084E729,
};
CIMPLE_NAMESPACE_END
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace MoanaSceneGenerator
{
public class MatrixJsonDataConverter : JsonConverter<Matrix4x4>
{
public override Matrix4x4 Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
var floatArray = (float[])ReadArray(ref reader);
var result = new Matrix4x4();
result.M11 = floatArray[0];
result.M12 = floatArray[1];
result.M13 = floatArray[2];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
System.out.println();
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
## Override any custom exception hooks
def excepthook(*args):
import traceback
traceback.print_exception(*args)
sys.excepthook = excepthook
## Make it harder to access QApplication instance
if 'PyQt4.QtGui' in sys.modules:
sys.modules['PyQt4.QtGui'].QApplication = None
sys.modules.pop('PyQt4.QtGui', None)
sys.modules.pop('PyQt4.QtCore', None)
## sabotage atexit callbacks
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using namespace std;
int nextInt() {
int n = 0;
bool negative = false;
int c = getchar();
while ((c < '0' || c > '9') && c != '-')
c = getchar();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sb.append("Test.TAG: ").append(Test.TAG).append("\n");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
doc = g.help(ex, display=False, pattern="getField1(*")
assert "Help on class ExampleClass in package py4j.examples" in doc
assert "method1" not in doc
assert "getField1" in doc
def test_help_method():
with example_app_process():
with gateway() as g:
ex = g.getNewExample()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@classmethod
def process(cls, session, payload):
# Handle media change
if cls.has_media_changed(session, payload) and session.state in ['start', 'pause']:
yield 'stop', session.payload
# Handle current media
if cls.has_finished(session, payload):
if session.state in ['start', 'pause']:
yield 'stop', payload
elif session.state in ['create', 'pause', 'stop']:
yield 'start', payload
elif session.state == 'start':
yield None, payload
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(sys.argv) == 4:
mfcc_dir = str(sys.argv[1])
trans_dir = str(sys.argv[2])
list_dir = str(sys.argv[3])
print "Generating complete lists"
generate_complete_lists(mfcc_dir, trans_dir, list_dir)
else:
print "Usage: generate_complete_lists.py <in:mfcc_dir> <in:trans_dir> <out:list_dir>"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return File(faviconModel.Data, faviconModel.Mimetype);
}
catch (Exception e)
{
return StatusCode(StatusCodes.Status500InternalServerError, $"{url} | {e.Message} | {e.StackTrace}");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.style = int(values[118])
except IndexError as _err:
_code = Utilities.error_handler(_err.args)
_msg = "ERROR: Insufficient input values."
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[doc = "<s>Vulkan Manual Page</s> · Constant"]
#[doc(alias = "VK_QCOM_RENDER_PASS_STORE_OPS_SPEC_VERSION")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/* main */
int dd_ultrasonic_main(int argc, char *argv[])
{
PX4_INFO("Hello Hovergames from the Ultrasonic Sensor System (USS)!");
dd_ultraS ultrasonicData;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ci::gl::Texture2dRef m_codeplay_tex =
ci::gl::Texture2d::create(loadImage(loadAsset("logo.png")));
void draw_codeplay_logo() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
dmc.ThemeIcon(
DashIconify(icon="tabler:photo", width=20),
variant="gradient",
gradient={"from": "teal", "to": "lime", "deg": 105},
size="lg",
),
dmc.ThemeIcon(
DashIconify(icon="tabler:photo", width=20),
variant="gradient",
gradient={"from": "teal", "to": "blue", "deg": 60},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
duration=duration)
return firing_rates
def calculate_amplitude_cutoff(spike_clusters, amplitudes, total_units, spike_cluster_subset=None, verbose=True):
if spike_cluster_subset is not None:
cluster_ids = spike_cluster_subset
else:
cluster_ids = np.unique(spike_clusters)
amplitude_cutoffs = np.zeros((total_units,))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
----------------------------------------------------
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if punct_flag:
temp_sent += word
sentences.append(temp_sent)
temp_sent = ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
##print("**** SENDING CTRL-A to get raw repl")
self.ctrl_a() # enter raw REPL mode
self.wait_repl_response()
##print("**** GOT RAW REPL")
def wait_prompt(self):
try:
##print("*** waiting for prompt")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path('gate/not/', views.gate_not ,name='gate_not'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
getNetwork()->getApplication()->dispatchFront([&]() {
parameterSelected_.set(
groupA_.getManager().getNumberOfSelected(BrushingTarget::Column) > 0);
});
}
if (groupB_.getManager().isSelectionModified(BrushingTarget::Column)) {
getNetwork()->getApplication()->dispatchFront([&]() {
parameterSelected_.set(
groupB_.getManager().getNumberOfSelected(BrushingTarget::Column) > 0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .anova import bartletts_test
from .anova import oneway_anova
from .anova import tukeys_range_test | ise-uiuc/Magicoder-OSS-Instruct-75K |
y = int((pantall_largo/2) - (aplicacion_largo/2))
return ventana.geometry(f"{aplicacion_ancho}x{aplicacion_largo}+{x}+{y}")
try:
ventana=tk.Tk()
centrar_ventana(ventana)
ventana.title("Formulario")
form = FormularioPersona(ventana)
ventana.mainloop()
except Exception as e:
print("Existe un error : ", e)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .lpa_diagnostics import LpaDiagnostics
__all__ = ['LpaDiagnostics']
| 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.