seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/login', 'FrontController@login')->name('login');
Route::group(['middleware' => 'App\Http\Middleware\LandingMiddleware'], function() {
Route::get('/', 'FrontController@index')->name('home');
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if course['name'] != course_name:
continue
else:
return True
def _get_course_field(field_name, message='What is the course {}?'): #Obtiene el campo para actualizar cada curso
field = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
zip=$(get_build_var XTENDED_VERSION).zip
device=$(echo $TARGET_PRODUCT | cut -d '_' -f2)
buildprop=$OUT/system/build.prop
linen=$(grep -n "ro.xtended.build.type" $buildprop | cut -d ':' -f1)
romtype=$(sed -n $linen'p' < $buildprop | cut -d '=' -f2)
variant=$(echo $zip | cut -d '-' -f4)
name=$device'_'$variant.json
if [ "$romtype" != "OFFICIAL" ]; then
return 0
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$hydratedData['zipcode'] = $return;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
->type('@passwordField', $password);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@with_config_key('selector', raise_exc=WriterTaskConfigInvalid)
@with_config_key('outputs', raise_exc=WriterTaskConfigInvalid)
@Registry.bind(Task, str(Task.TYPE_WRITER))
class WriterTask(Task):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <param name="tag">The tag.</param>
private HtmlTag(HtmlTagType tagType, string tag)
{
TagType = tagType;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if c >= "A" and c <= "Z":
out += chr(ord("A") + (ord(c) - ord("A") + n) % 26)
elif c >= "a" and c <= "z":
out += chr(ord("a") + (ord(c) - ord("a") + n) % 26)
else:
out += c
return out
def main():
s0 = "HELLO"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export declare function ReflectDefineMetadataInvalidTarget(): void;
export declare function ReflectDefineMetadataValidTargetWithoutTargetKey(): void;
export declare function ReflectDefineMetadataValidTargetWithTargetKey(): void;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
src_target = tmp_path / "src.py"
python_codegen(metaschema_file_uri, src_target)
assert os.path.exists(src_target)
with open(src_target) as f:
assert f.read() == inspect.getsource(cg_metaschema)
def python_codegen(file_uri: str, target: Path) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// found in the LICENSE file.
#include "ash/app_list/app_list_item_view.h"
#include "ash/app_list/app_list_item_model.h"
#include "ash/app_list/app_list_model_view.h"
#include "ash/app_list/drop_shadow_label.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
h, w = x.shape[0], x.shape[1]
if height_shift_range:
tx = np.random.uniform(-height_shift_range, height_shift_range) * h
else:
tx = 0
if width_shift_range:
ty = np.random.uniform(-width_shift_range, width_shift_range) * w
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extra_compile_args=['-O3'],
include_dirs=['.']
),
Extension(
"vibora.multipart.parser",
["vibora/multipart/parser.c"],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
export interface GetStatementsOptions {
requestId: string;
numberOfStatements?: string;
accountsFilter?: string[];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
readme: async () => import("!!raw-loader!./readme.md"),
files: () => [
{ name: "2dTransformationsApi.ts", import: import("!!raw-loader!./2dTransformationsApi") },
{ name: "2dTransformationsApp.tsx", import: import("!!raw-loader!./2dTransformationsApp"), entry: true },
{ name: "2dTransformationsWidget.tsx", import: import("!!raw-loader!./2dTransformationsApp") },
{ name: "GeometryDecorator.ts", import: import("!!raw-loader!./GeometryDecorator") },
{ name: "2dTransofrmations.scss", import: import("!!raw-loader!./2dTransformations.scss") },
],
type: "2dTransformationsApp.tsx",
});
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# test
def _sum(iterable):
sum = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
USER_AGENT = 'DepHell/{version}'.format(version=__version__)
def aiohttp_session(*, auth=None, **kwargs):
headers = dict()
if auth:
headers['Authorization'] = auth.encode()
ssl_context = create_default_context(cafile=certifi.where())
try:
connector = TCPConnector(ssl=ssl_context)
except TypeError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
coll.push_back("<NAME>");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// assert_eq!(range[min(gradient_count-1, gradient_count-1)], white);
/// assert_eq!(range[min(gradient_count-1, 255)], white);
/// assert_eq!(range[min(gradient_count-1, 127)], white);
/// assert_eq!(range[min(gradient_count-1, 10)], ColorU8([20,20,20,255]));
/// ```
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h1 class="h4">@Localizer.GetString("Heading")</h1>
</div>
<div class="card-body">
<p>@Localizer.GetString("Information")</p>
@if(Model.ExistingData.Any())
{
<ul>
@foreach(var (key, count) in Model.ExistingData)
{
<li>
@key: <strong>@count</strong>
</li>
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// ABP Castle Log4Net module.
/// </summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Object.defineProperty(_ArrayValueList, "member", {
value: {
shape: _Value
}
});
return {
shape: _Value
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import mock
import logging
from knockoff.factory.node import Table, FactoryPart
class TestNode(unittest.TestCase):
def test_tablenode_visit(self):
mock_assembler = mock.Mock()
mock_source = mock.Mock()
mock_sink = mock.Mock()
node = Table('name', 'ix', mock_source, mock_sink)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
placeholders = [f"{param}=%({param})s" for param in params]
print(placeholders)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Score(db.Model):
"""
Entity class for the result of running a metric against an item of software
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pearson = load_metric("pearsonr").compute
references = pred.label_ids
predictions = pred.predictions
metric = pearson(predictions=predictions, references=references)
return metric
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use fortress_bake::render::SpriteSheetConfig;
pub use self::sprite_sheet_texture_manager::SpriteSheetTextureManager;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
kubectl proxy start &
KUBECTL_PROXY_PID=$!
echo $KUBECTL_PROXY_PID > ./bin/kubectl_proxy_pid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
move2point = 14
catchobj = 15
back2point = 16
def start_callback(msg):
global is_start
if not is_start:
is_start = msg.data
def next_pub(msg):
pub = rospy.Publisher(
'scan_black/strategy_behavior',
Int32,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def detect(rdd):
count = rdd.count()
print "RDD -> ", count
if count > 0:
arrays = rdd.map(lambda line: [float(x) for x in line.split(" ")])
print arrays.collect()
indx = 0
while indx < count:
vec = Vectors.dense(arrays.collect()[indx])
indx += 1
clusternum = model.predict(vec)
print "Cluster -> ", clusternum, vec
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @author skyxt
* @email <EMAIL>
* @date 2020-08-06 09:54:20
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
struct S<d:Int{class n{{}class b<T where h:a{let b=f{ | ise-uiuc/Magicoder-OSS-Instruct-75K |
<i class="fa fa-angle-right pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="{{ ($prefix == '/slider' ? 'active' : '') }}"><a href="{{ url('/slider') }}"><i class="ti-more"></i>Slider</a></li>
</ul>
</li>
<li class="treeview {{ ($current_route == 'settings' ? 'active' : '') }}">
<a href="{{ url('settings/') }}">
<i data-feather="settings"></i>
<span>Settings</span>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pred_perm[b, :pred_ns[b], :gt_ns[b]],
gt_perm[b, :pred_ns[b], :gt_ns[b]],
reduction='sum')
n_sum += pred_ns[b].to(n_sum.dtype).to(pred_perm.device)
return loss / n_sum
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo -e "\n\n\033[93mTesting docker images...\033[0m";
npm run docker-test;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
newpoints.add_landmark([3,2])
newpoints.add_landmark([2,2])
assert(newpoints.name=='Tyrannosaurus')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
@abstractmethod
def inference_init(self) -> None:
"""
Inference initialization function
Returns
-------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
])
transform_test = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
])
trainset = torchvision.datasets.CIFAR10(
root=root, train=True, download=True, transform=transform_train)
testset = torchvision.datasets.CIFAR10(
root=root, train=False, download=True, transform=transform_test)
return trainset, testset
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(x)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
keras.layers.Dense(16, activation=tf.nn.relu),
keras.layers.Dense(1, activation=tf.nn.sigmoid)
])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
env
localAudioURL=`echo $AUDIO_URL | awk -F '/' '{print $NF}'`
localImageURL=`echo $IMAGE_URL | awk -F '/' '{print $NF}'`
echo $localAudioURL
echo $localImageURL
# Turn book name into a valid file name
localVideoURL=`echo $BOOK_NAME | sed 's/ \+/_/g' | sed 's/[^a-zA-Z0-9_]//g'`'.mp4'
echo $localVideoURL
# Download audio and image files from S3
echo Downloading audio from s3://$AUDIO_URL
aws s3 cp s3://$AUDIO_URL $localAudioURL
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .wrappers import get_event_by_user_id_handler
from .wrappers import get_event_by_user_id_handler_async
from .wrappers import post_event_handler
from .wrappers import post_event_handler_async
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Connecterra.StateTracking.Persistent.EventStore
{
public class StreamInfo
{
[JsonProperty("id")]
public string Id { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@glrp.rule('abstract-declarator? : noptr-abstract-declarator parameters-and-qualifiers trailing-return-type')
#@glrp.rule('abstract-declarator? : abstract-pack-declarator')
@cxx11
def abstract_declarator_opt_cxx11(self, p):
# type: (CxxParser, glrp.Production) -> None
pass
@glrp.rule('ptr-abstract-declarator : noptr-abstract-declarator[split:declarator_end]')
@glrp.rule('ptr-abstract-declarator : ptr-operator[split:declarator_end]')
@glrp.rule('ptr-abstract-declarator : ptr-operator ptr-abstract-declarator')
@cxx98
def ptr_abstract_declarator(self, p):
# type: (CxxParser, glrp.Production) -> None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class EdgePair
{
// Member Variables ////////////////////////////////////////////////////////
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using UnityEngine;
public class Collectable : MonoBehaviour
{
public enum CollectibleType { CABIN, ENGINE, CHASSIS, SWHEEL, TIRES };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def output_label(label):
output_mapping = {}
for i, value in enumerate(FASHION_MNIST_CLASSES):
output_mapping[i] = value
_value = label.item() if type(label) == torch.Tensor else label
return output_mapping[_value]
def get_fashion_mnist_dataset(is_train_dataset: bool = True) -> FashionMNIST:
"""
Prepare Fashion MNIST dataset
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int main()
{
//taking total testcases
int t;
cin>>t;
while(t--)
{
//reading number of elements and weight
int n, w;
cin>>n>>w;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.needs_lipo = True
LibTiffPackage()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__author__ = "<NAME>"
__copyright__ = "CASA"
__version__ = "1.0.1"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"ref": store.get("id"),
"state": store.get("state"),
"website": store.get("order_online_url"),
}
yield GeojsonPointItem(**properties)
def parse_hours(self, hours):
oh = OpeningHours()
for t in hours:
# Some day entries contain invalid week data, e.g. "Brunch"
# "Brunch" is a special dining hour that is contained in regular hours, ignore it
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from tortoise import fields
from werkzeug.security import generate_password_hash, check_password_hash
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return int(1 / math.sqrt(5) * (math.pow((1 + math.sqrt(5)) / 2, nth + 1) - math.pow((1 - math.sqrt(5)) / 2, nth + 1)))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n = int(input())
i = 1
while(i < n):
j = 1
while(j <= i):
print((i*2-1), end=" ")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prediction = pipeline.predict("check this")
pipeline_copy = pipeline.copy()
prediction_copy = pipeline_copy.predict("check this")
assert_allclose(prediction["probabilities"], prediction_copy["probabilities"])
def test_train_from_pretrained(pipeline, dataset, tmp_path):
output_path = tmp_path / "test_train_from_pretrained_output"
trainer_config = TrainerConfiguration(max_epochs=1, batch_size=2, gpus=0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import palette
from . import theme
from . import template
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pk_logger = __get_logger('picktrue')
__all__ = (
'pk_logger',
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use super::Expression;
use crate::{DeclId, Span, Spanned};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum Argument {
Positional(Expression),
Named((Spanned<String>, Option<Spanned<String>>, Option<Expression>)),
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
migrations.AlterField(
model_name='usedhint',
name='request_date',
field=models.DateTimeField(auto_now_add=True),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
infoList.append(line.strip())
return infoList
def main(argv):
now = datetime.datetime.now()
dayDelta = datetime.timedelta(days = 0)
h = 0
m = 16
fileList = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def do_install(self):
self.install_bin("cargo")
self.install_license("LICENSE-APACHE")
self.install_license("LICENSE-MIT")
self.install_license("LICENSE-THIRD-PARTY")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default YouTubePreview;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn movaps_7() {
run_test(&Instruction { mnemonic: Mnemonic::MOVAPS, operand1: Some(Direct(XMM4)), operand2: Some(Direct(XMM3)), operand3: None, operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[15, 40, 227], OperandSize::Qword)
}
#[test]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
local __sort='1'
;;
'-f')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Glob tag handler tests."""
from pathlib import Path
from marshpy.core.errors import ErrorCode
from marshpy.tag_handlers.glob_handler import GlobHandler
from tests.tag_handlers.path_handler_helpers import check_path_tag
from tests.tag_handlers.path_handler_helpers import check_path_tag_error
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<strong>Direccion:</strong>
<li class="list-group-item">{{ $evento->direccion}}</li>
<strong>Como llegar y donde dormir:</strong>
<li class="list-group-item">{{ $evento->llegar_dormir}}</li>
<strong>Contacto:</strong>
<li class="list-group-item">{{ $evento->contacto}}</li>
<strong>Inscriptos:</strong>
<li class="list-group-item">{{ $evento->inscripto}}</li>
<strong>Resultados:</strong>
<li class="list-group-item">{{ $evento->resultado}}</li>
</ul>
<a href="{{ route('event.edit', $evento->id) }}" class="btn btn-primary">Editar</a>
<a href="{{route('event.index')}}" class="btn btn-primary pull-right">Listar</a>
</section>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import lombok.extern.slf4j.Slf4j;
import okhttp3.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
import java.util.Objects;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protocol PageContentViewDelegate : class {
func pageContentView(contentView : PageContentView, progress : CGFloat, sourceIndex : Int, targetIndex : Int)
}
private let ContentCellID = "ContentCellID"
class PageContentView: UIView {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Contains data sent from a Web App to the bot.
Source: https://core.telegram.org/bots/api#webappdata
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from similarity import load_brands_compute_cutoffs, similar_matches, similarity_cutoff, draw_matches
def detect_logo(yolo, img_path, save_img, save_img_path='./', postfix=''):
"""
Call YOLO logo detector on input image, optionally save resulting image.
Args:
yolo: keras-yolo3 initialized YOLO instance
img_path: path to image file
save_img: bool to save annotated image
save_img_path: path to directory where to save image
postfix: string to add to filenames
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
class SectionLeaflet:
"""
Class to represent individual section of a Package Leaflet
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Copyright ©2020–2021 Jeremy David Giesbrecht and the SDGInterface project contributors.
Soli Deo gloria.
Licensed under the Apache Licence, Version 2.0.
See http://www.apache.org/licenses/LICENSE-2.0 for licence information.
*/
internal var legacyMode = false
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const enabledThief = useSelector((state: CatanState) => {
const { enabled: isHistoryEnabled } = state.gameHistory;
const { visualizedTurnState } = state.gameHistory;
return isHistoryEnabled && visualizedTurnState
? visualizedTurnState.game.enabledThief
: state.game.enabledThief;
});
return (
<div className="game-container">
{enabledThief && (
<>
<img
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.report_url = report_url or GoogleMobility.DEFAULT_REPORT_URL
def load_report(self, country_region_code: Optional[str] = None,
show_progress: bool = True, cache: bool = True) -> pd.DataFrame:
"""Load the report from Google and optionally cache it or fitler
by a country code. Given that the mobility report is a large file,
it is highly recommended to specify the country region code.
:param country_region_code: The country region code, i.e. "BR"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if 1:
dataset = twenty_newsgroup_to_csv(subset='train')
#print(dataset.head(10))
#dataset = fetch_20newsgroups(subset="all", shuffle=True, remove=("headers", "footers", "quotes"))
#dict_user = noniid_20newsgroups(dataset, 2)
noniid_label_20newsgroups(dataset, 2, alpha=0.5)
num_users = 2
#noniid_quantity_20newsgroups(dataset, beta=[0.1, 0.9])
if 0:
dataset = twenty_newsgroup_to_csv(subset='test')
test_20newsgroups(dataset)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.printer.notify('Configure the device to use this host as proxy: {ip}:{port}'.format(ip=self.local_op.get_ip(), port=port))
self.printer.info('Press return when ready...')
raw_input()
self.printer.verbose('Running MitmProxy in the background')
cmd = "{proxyapp} -p {port} > /dev/null".format(proxyapp=self.TOOLS_LOCAL['MITMDUMP'], port=port)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return "";
}
maxPos.put(c, idx);
poses[i] = idx;
}
if (poses.length == 1) {
return T.toString();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
FILETIME ftSysIdle, ftSysKernel, ftSysUser;
FILETIME ftProcCreation, ftProcExit, ftProcKernel, ftProcUser;
if (!GetSystemTimes(&ftSysIdle, &ftSysKernel, &ftSysUser) ||
!GetProcessTimes(GetCurrentProcess(), &ftProcCreation, &ftProcExit, &ftProcKernel, &ftProcUser)) {
::InterlockedDecrement(&m_lRunCount);
return nCpuCopy;
}
if (!IsFirstRun()) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@app.errorhandler(404)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker-compose -f ${ACTIVE_ENV} up -d --no-recreate;
echo
if [ "$(uname)" == "Darwin" ]; then
echo "The app should be available at: $(boot2docker ip):8005"
else
echo "The app should be available at: 127.0.0.1:8005"
fi
}
status() {
docker-compose -f ${ACTIVE_ENV} ps;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def task_imports():
return ['ckanext.ytp_drupal.tasks']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
}
// #[test]
// fn test_seq_parse() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if b.title == book.title:
self.books.remove(b)
print("removed")
def ls(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_print_banner(monkeypatch) -> None:
horizontal = "1"
vertical = "1"
centered = "1"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Exception - Vixi:", error)
else:
text +=1
print("Else:", text)
finally:
text = []
print("Finally:", text)
print("Fora do bloco!") | ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by Todd Olsen on 4/6/17.
// Copyright © 2017 proxpero. All rights reserved.
//
/// A JSON dictionary.
public typealias JSONDictionary = [String: AnyObject]
/// Describes a type that can create itself out of a JSON dictionary.
protocol JSONDecodable {
/// Initialize `Self` with a JSON dictionary.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import subprocess
import time
class Selection:
def __init__(self, intvl):
self.content = ""
self.intvl = intvl
def get_str(self):
while True:
cur = subprocess.check_output(["xsel"])
if cur == self.content:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
php -S localhost:9000 -t dist/ &
| ise-uiuc/Magicoder-OSS-Instruct-75K |
This is the minimal sample that you can load from runmanager to see if your
code is working properly.
"""
from labscript import *
# from user_devices.dummy_device.labscript_devices import DummyDevice
from labscript_devices.DummyPseudoclock.labscript_devices import DummyPseudoclock
from user_devices.DummyIntermediateDevices.labscript_devices import (
DummyIntermediateDevice,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_eq!(result.unwrap_err(), NoMatch);
}
#[test]
fn trailing_separator() {
let lexemes = builder().identifier("hello").period().file();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</body>
</html>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ruptures.base import BaseCost
| ise-uiuc/Magicoder-OSS-Instruct-75K |
before(() => {
setupLocales();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from fagate_serverless.fagate_serverless_stack import FagateServerlessStack
app = core.App()
FagateServerlessStack(app, "serverless-xray-stack")
app.synth()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
| tr \~ - \
| grep -Ev '\-(arm(32|64)|amd64|linux-arm)' \
| awk -F- 'NR==1 {printf "* "}; $1!=a && NR>1 {print "\n* "}; {ORS=""; printf "`%s` ", $0}; {a=$1}'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool accel_updated=false;
bool gyro_updated =false;
orb_check(_accel_sub, &accel_updated);
if (accel_updated) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_eq!(DerivesCallInto.ref_call_(()), 243);
assert_eq!(DerivesCallInto.mut_call_(()), 243);
assert_eq!(DerivesCallInto.into_call_(()), 243);
}
#[test]
fn test_closures() {
let mut ref_fn = || 10;
let mut n = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public LinkNode(String keyString, FilterNodeBean node) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}, msn_deconvolution_args={
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'uwsgi',
'flask',
'flask_restful',
'flask_httpauth',
'python_dotenv',
'simplejson',
'paho-mqtt',
],
license = 'MIT',
description = 'A website for messing around with mqtt',
)
| 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.