seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
return tinterp + 1.0 / velocity * x
def ReflectedWave(x, velocity, tinterp):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .const import DEFAULT_MCAST_GRP, DEFAULT_MCAST_PORT
from .disconnect import Disconnect
from .gateway_scanner import GatewayScanFilter, GatewayScanner
from .knxip_interface import ConnectionConfig, ConnectionType, KNXIPInterface
from .request_response import RequestResponse
from .routing import Routing
from .tunnel import Tunnel
from .tunnelling import Tunnelling
from .udp_client import UDPClient
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// A builder for a database upgrader designed for MySql databases.
/// </returns>
public static UpgradeEngineBuilder MySqlDatabase(this SupportedDatabases supported, IConnectionManager connectionManager)
=> MySqlDatabase(connectionManager);
/// <summary>
/// Creates an upgrader for MySql databases.
/// </summary>
/// <param name="connectionManager">The <see cref="MySqlConnectionManager"/> to be used during a database upgrade.</param>
/// <returns>
/// A builder for a database upgrader designed for MySql databases.
/// </returns>
public static UpgradeEngineBuilder MySqlDatabase(IConnectionManager connectionManager)
{
return MySqlDatabase(connectionManager, null);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Cookhouse": "https://www.koufu.com.sg/our-brands/food-halls/cookhouse/",
"Rasapura": "https://www.koufu.com.sg/our-brands/food-halls/rasapura-masters/",
"ForkSpoon": "https://www.koufu.com.sg/our-brands/food-halls/fork-spoon/",
"HappyHawkers": "https://www.koufu.com.sg/our-brands/food-halls/happy-hawkers/",
"Gourmet": "https://www.koufu.com.sg/our-brands/food-halls/gourmet-paradise/",
"R&B": "https://www.koufu.com.sg/our-brands/concept-stores/rb-tea/",
"1983NY": "https://www.koufu.com.sg/our-brands/concept-stores/1983-a-taste-of-nanyang/",
"Supertea": "https://www.koufu.com.sg/our-brands/concept-stores/supertea/",
"1983CT": "https://www.koufu.com.sg/our-brands/cafe-restaurants/1983-coffee-toast/",
"Elemen": "https://www.koufu.com.sg/our-brands/cafe-restaurants/elemen-%e5%85%83%e7%b4%a0/",
"Grove": "https://www.koufu.com.sg/our-brands/cafe-restaurants/grovecafe/",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
void Camera::update()
{
apply_jitter();
glm::quat qPitch = glm::angleAxis(m_pitch, glm::vec3(1.0f, 0.0f, 0.0f));
glm::quat qYaw = glm::angleAxis(m_yaw, glm::vec3(0.0f, 1.0f, 0.0f));
glm::quat qRoll = glm::angleAxis(m_roll, glm::vec3(0.0f, 0.0f, 1.0f));
m_orientation = qPitch * m_orientation;
m_orientation = m_orientation * qYaw;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser.add_argument('--groups', type=str, nargs='*', default=['Everyone'],
help="List of the Seeq groups to will have access to the Correlation Add-on Tool, "
"default: %(default)s")
parser.add_argument('--password', type=str, default=None,
help="Password of Seeq user installing the tool. Must supply a password if not supplying an accesskey for username")
parser.add_argument('--sort_key', type=str, default=None,
help="A string, typically one character letter. The sort_key determines the order in which the Add-on Tools are displayed in the tool panel, "
"default: %(default)s")
return parser.parse_args()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
title.labelViewModel = item?.text
}
}
override init(frame: CGRect) {
super.init(frame: frame)
addSubview(title)
title.translatesAutoresizingMaskIntoConstraints = false
title.font = UIFont.systemFont(ofSize: 15, weight: .semibold)
title.textColor = #colorLiteral(red: 0.2549019754, green: 0.2745098174, blue: 0.3019607961, alpha: 1)
NSLayoutConstraint.activate([
title.topAnchor.constraint(equalTo: topAnchor, constant: 20),
title.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -20),
title.leadingAnchor.constraint(equalTo: leadingAnchor),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name='event-bus',
version='1.0.4',
packages=['event_bus'],
url='https://github.com/summer-wu/event-bus',
license='MIT',
author='<NAME>',
author_email='<EMAIL>',
description='A simple python event bus.',
download_url='https://github.com/seanpar203/event-bus/archive/1.0.2.tar.gz',
)
# python3 setup.py bdist_wheel
# pip3.7 install dist/event_bus-1.0.4-py3-none-any.whl | ise-uiuc/Magicoder-OSS-Instruct-75K |
public Dialogue[] dialogues;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# default_app_config = '.apps.WorkflowConfig'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
int sumRegion(int row1, int col1, int row2, int col2) {
return sums[row2 + 1][col2 + 1] - sums[row1][col2 + 1] - sums[row2 + 1][col1] + sums[row1][col1];
}
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
viewActivityOverlay.addSubview(activityIndicator)
activityIndicator.centerXAnchor.constraint(equalTo: viewActivityOverlay.centerXAnchor).isActive = true
activityIndicator.centerYAnchor.constraint(equalTo: viewActivityOverlay.centerYAnchor, constant: -60.0).isActive = true
}
private func setupUX() {
letsGoButton.addTarget(self, action: #selector(tappedLetsGoButton), for: .touchUpInside)
closeButton.addTarget(self, action: #selector(tappedCloseButton), for: .touchUpInside)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source "$FZF_PATH/opt/fzf/shell/key-bindings.zsh"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (Math.Abs(V) < LOOP_TOL)
{
break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
const char* severityString = "N";
if (severity == GL_DEBUG_SEVERITY_HIGH || type == GL_DEBUG_TYPE_ERROR)
{
severityString = "E";
}
else if (severity == GL_DEBUG_SEVERITY_LOW || severity == GL_DEBUG_SEVERITY_MEDIUM)
{
severityString = "W";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace app\modules\services\helpers;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response = form.submit('add', extra_environ=as_testsysadmin)
assert "User Added" in response, "don't see flash message"
assert get_roles_by_name(user=u'tester') == ['admin'], \
"tester should be an admin now"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def redo(self):
self.__oldValue = self.__model.data(self.__index)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
REPORT_FILE = "report.txt"
with open(REPORT_FILE, "r") as file:
data = load(file)
# EXAMPLE ON ACESSING THE JSON DATA REPORT
print(dumps(data["INTERFACES_INFO"]["Ethernet adapter Ethernet"], indent=4))
print(dumps(data["INTERFACES_INFO"]["Ethernet adapter Ethernet"]["IPv4 Address"]))
print(dumps(data["INTERFACES_INFO"]["Ethernet adapter Ethernet"]["Physical Address"]))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for from_idx in range(nmodel):
for to_idx in range(nmodel):
if from_idx == to_idx:
# don't drop hidden features within a model.
mask = 1.
else:
# randomly drop features to share with another model.
mask = tf.floor(0.7 + tf.random_uniform(shape))
output[to_idx] += mask * features[from_idx]
return output
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# specific language governing permissions and limitations
# under the License.
# coding: utf-8
# pylint: disable=arguments-differ
# This test checks dynamic loading of custom library into MXNet
# and checks end to end compute of a simple 2D gemm custom op
import mxnet as mx
import os
#load library
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from subprocess import Popen, PIPE, STDOUT
from os import environ, setsid, killpg
from vyapp.plugins.spawn.base_spawn import BaseSpawn
from vyapp.areavi import AreaVi
from vyapp.app import root
from os import environ
class Spawn(BaseSpawn):
def __init__(self, cmd):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# api_advisor_view,
api_advisor_view_post,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fi
cp -r deploy output/* release/
rm -rf output/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
# `quantize_model` requires a recompile.
quantize_model.compile(optimizer='adam',
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
# train quantize normal model
quantize_model.fit(
train_images,
train_labels,
batch_size=64,
epochs=10,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.timeLimit = 3 # 3 seconds is the time limit for search
self.debug = False # True for debugging
self.fileObject = open("decisionTree", 'rb')
self.tree = pickle.load(self.fileObject)
# AI perform move (there must be an available move due to the pre-move check)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
B = 1
T = 200
xs = [torch.randn(B, 1, 3)]
for t in range(T - 1):
xs.append(sys.step(torch.tensor([0.] * B), xs[-1]))
x = torch.cat(xs, dim=1).detach()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
jira.worklog(
args.issue,
args.time,
args.comment
)
else:
return 1
return 0
if __name__ == '__main__':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public void onError(@NonNull @NotNull ImageCapture.UseCaseError useCaseError, @NonNull @NotNull String message, @Nullable @org.jetbrains.annotations.Nullable Throwable cause) {
runOnUiThread(new Runnable() {
@Override
public void run() {
ToastUtil.show(CaptureActivity.this, useCaseError.toString());
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lang = translator.detect(text)
except:
translator = Translator()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return response()->json([
'status' => 'OK',
'message' => 'Data berhasil diupdate',
'errors' => null,
'result' => $berkas
], 200);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public final class CommentAccessException extends AccessException {
private CommentAccessException(String message) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
return "https://\(appId)-api.mysocialapp.io/api/v1"
}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <<EMAIL>>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
| ise-uiuc/Magicoder-OSS-Instruct-75K |
listMenu = menuService.listValidMenu(Const.TREE_ROOT_ID,user.getUSER_ID());
}else{
//业务角色直接返回空菜单功能
listMenu = null;
}
//外加一层根节点
List<Menu> list = new ArrayList<Menu>();
Menu menu = new Menu();
menu.setMENU_NAME("菜单");
menu.setMENU_ID(Const.TREE_ROOT_ID);
menu.setNoCheck(true);
menu.setTarget("treeFrame");
if(roleType==0){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var skyLayer = SkyLayer(id: "sky-layer")
skyLayer.skyType = .constant(.atmosphere)
skyLayer.skyAtmosphereSun = .constant([0.0, 0.0])
skyLayer.skyAtmosphereSunIntensity = .constant(15.0)
try! mapView.mapboxMap.style.addLayer(skyLayer)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace tdc {
static_assert(sizeof(int) * 8 == 32, "Make sure the logic here remains correct");
template<class T, class X = void>
struct ConstIntegerBaseTrait {
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while :
do
| ise-uiuc/Magicoder-OSS-Instruct-75K |
packages=['user_manager'],
version='2.2',
description='Minimal user manager interface',
author='<NAME>',
author_email='<EMAIL>',
url='https://github.com/maxpowel/user_manager',
download_url='https://github.com/maxpowel/user_manager/archive/master.zip',
keywords=['user', 'manager'],
classifiers=['Topic :: Adaptive Technologies', 'Topic :: Software Development', 'Topic :: System', 'Topic :: Utilities'],
install_requires=install_requires
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"addr1": "12 J.L.Nehru Road",
"addr2": "http://capital-chowringhee.com",
"email": "<EMAIL>",
"free1": "Web site: http://capital-chowringhee.com",
"free2": "For warranty and replacement please contact respective manufacturer companies.",
"free3": "Materials will be delivered only after the cheque is cleared from our Bank.",
"free4": "All disputes to be resolved in Kolkata jurisdiction only.",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
consumer_key = 'F1BCRW0AXUlr0wjLE8L6Znm8a'
consumer_secret = '<KEY>'
access_token = '<KEY>'
access_secret = '<KEY>' | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod time;
#[cfg(feature = "device-selected")]
pub mod timer;
#[cfg(all(
feature = "stm32-usbd",
any(
feature = "stm32f303xb",
feature = "stm32f303xc",
feature = "stm32f303xd",
feature = "stm32f303xe",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
name_value_pairs = dict()
for ak in a2q_dict.keys():
value = args_dict[ak]
if value != None:
name_value_pairs[a2q_dict[ak]] = str(value)
return urllib.urlencode(name_value_pairs)
def make_str_content(content):
"""
In python3+ requests.Response.content returns bytes instead of ol'good str.
:param content: requests.Response.content
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
def _blackbird_operation_to_instruction(
instruction_map: Mapping[str, Optional[Type[Instruction]]],
blackbird_operation: dict,
) -> Instruction:
op = blackbird_operation["op"]
pq_instruction_class = instruction_map.get(op)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# , 'CHEMBL3231741 CHEMBL3232032 CHEMBL3232142 CHEMBL3232050' , 'CHEMBL2212114' , 'CHEMBL102
# 2344 CHEMBL1275020 CHEMBL1274863 CHEMBL1274891 CHEMBL1274030 CHEMBL1022341 CHEMBL1011798 C
# HEMBL1019674 CHEMBL1274912 CHEMBL1274662 CHEMBL1017034 CHEMBL1274842 CHEMBL1274933 CHEMBL1
# 275069 CHEMBL1274558 CHEMBL1274898 CHEMBL1017033 CHEMBL1274849 CHEMBL1274565 CHEMBL1274593
# CHEMBL1274683 CHEMBL4000834 CHEMBL1011797 CHEMBL1274856 CHEMBL1274572 CHEMBL964747 CHEMBL
# 1275027 CHEMBL1274037 CHEMBL1274551 CHEMBL964745 CHEMBL1274926 CHEMBL1274919 CHEMBL1274690
# CHEMBL1275034 CHEMBL1274877 CHEMBL1274669 CHEMBL1275048 CHEMBL1274884 CHEMBL1017010 CHEMB
# L1017032 CHEMBL1022342 CHEMBL1022346 CHEMBL1017035 CHEMBL1275076 CHEMBL1275090 CHEMBL10170
# 09 CHEMBL1275062 CHEMBL1274579 CHEMBL1274905 CHEMBL1274676 CHEMBL1019675 CHEMBL1274586 CHE
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
import json
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
}
else
{
ReadMissingSubRecord(reader, subRecordName, dataSize);
}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_it():
musa_to_ipas, ipa_to_musas = load_tables(limit=10)
for d in [musa_to_ipas, ipa_to_musas]:
for k, vs in d.items():
if vs:
print(k)
for v in vs:
print('\t', v)
if __name__ == '__main__':
test_it()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# This script the size of the body of the response
curl -sI "$1" | awk '/^Content-Length/{print $2}'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[TestFixture]
public class TypeFieldTests : BaseJsonTests
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Enter
if ord(char) == 13:
print()
break
# Ctrl-C, Ctrl-D, Ctrl-Z
elif ord(char) in [3, 4, 26]:
exit(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/**
* @return the assertionType
| ise-uiuc/Magicoder-OSS-Instruct-75K |
successor,
propHandler,
PdfTags.ArrayStart,
PdfTags.ArrayEnd,
" ")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@classmethod
def initialize(cls):
ctx = zengl.context()
cls.context = ctx
cls.main_uniform_buffer = ctx.buffer(size=64)
ctx.includes['main_uniform_buffer'] = '''
layout (std140) uniform MainUniformBuffer {
mat4 mvp;
};
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertThatMonitorForwardedMessages(expected_messages)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def name(self):
if 'stream_name' in self._connection_params:
return self._connection_params['stream_name']
if self._inlet and self._inlet.info().name():
return self._inlet.info().name()
return 'LSL'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__WEAK ThreadLockState* SystemGetThreadLockState(LockFlags lock_flags) {
thread_local ThreadLockState thread_lock_state{};
return &thread_lock_state;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "services/device/public/mojom/nfc.mojom-blink.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sortDescending: desc ?? true,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = false;
TriggerPoint = CreateDefaultSubobject<UBoxComponent>(TEXT("TriggerPoint"));
RootComponent = TriggerPoint;
Billboard = CreateDefaultSubobject<UBillboardComponent>(TEXT("Billboard"));
Billboard->SetupAttachment(GetRootComponent());
bCanSwitchLevel = false;
}
// Called when the game starts or when spawned
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
# -*- coding: utf-8 -*-
import os
import sys
from glob import glob
import re
import numpy as np
import requests
sys.path.insert(1, os.path.realpath(os.path.join(sys.path[0], os.pardir, os.pardir)))
from measurements.name_index import NameIndex
from measurements.crawler import Crawler
from frequency_response import FrequencyResponse
from measurements.name_index import NameItem
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return [FooType]
@property
def tag_mapping(self):
return []
@property
| ise-uiuc/Magicoder-OSS-Instruct-75K |
title,
}: {
isFetching: boolean;
onClick: () => void;
title?: string;
}) {
return (
<GrRefresh
className={classNames("opacity-20", {
"cursor-pointer filter hover:drop-shadow hover:opacity-80 transition-all":
!isFetching,
"inline-block animate-spin": isFetching,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
window.geometry('800x250')
textBoxFrame = tk.Frame(master = window, width = 30, height = 10)
extensionToChangeTo = tk.Entry(width = 30)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mask_format % orig_name_png)
self.assertTrue(os.path.isfile(expected_file))
def testRunModelInferenceFirstHalfRuns(self):
batch_size = 1
num_classes = 11
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import array, metadata, utils
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
import Foundation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int i = 0; i <= Sum; i++) t[0][i] = false;
for (int i = 0; i <= n; i++) t[i][0] = true; //empty set
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= Sum; j++) {
if (wt[i - 1] <= j) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<hr>
<p class="lead">@<?php echo $v['username']; ?></p>
<p class="lead"><?php echo $v['level']; ?></p>
<p class="lead"><?php echo $v['hp']; ?></p>
<blockquote class="blockquote">
<footer class="blockquote-footer"><?php echo $v['alamat']; ?></footer>
<br>
</blockquote>
<hr>
<?php } ?>
</div>
<?php $this->load->view('public/side'); ?>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.servicioAgenda.patchCodificarTurno({ 'op': 'codificarTurno', 'turnos': [this.prestacion.solicitud.turno] }).subscribe(salida => { });
} else {
if (!this.prestacion.solicitud.turno) {
this.codificacionService.addCodificacion(prestacion.id).subscribe();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// DroarGestureHandler.swift
// Droar
//
// Created by Nathan Jangula on 10/27/17.
//
import Foundation
internal extension Droar {
//State
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app = start_server()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.xlim(0, steps.iloc[-1])
# print(steps.to_list())
# print(udr1_avg_rewards.to_list())
# print(udr1_up_bnd.to_list())
# print(udr1_low_bnd.to_list())
# print(udr2_avg_rewards.to_list())
# print(udr2_up_bnd.to_list())
# print(udr2_low_bnd.to_list())
# print(udr3_avg_rewards.to_list())
# print(udr3_up_bnd.to_list())
# print(udr3_low_bnd.to_list())
print(genet_steps.to_list())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int main(){
std::string a; std::cin >> a;
int64_t total(1), count(0);
for (int p = 0; p < a.size(); p++){
if((a[p] - '0') + (a[p + 1] - '0') == 9){++count;}
else{
if(count % 2 == 0){total *= (1 + (count + 1) / 2);}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rain = []
for p in projects_:
ori.append(p.sample_data['wall_orientation'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//Get the only object available
public static SingleObjectY getInstance(){
return instance;
}
public String message(){
return ("Successfully deleted!");
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$data['email']=$this->email;
$data['password']=$<PASSWORD>;
$response = $this->curl->executePostJsonAPI($api_url, $data);
return $response;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>p009.py
"""Problem 009
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
long_description=readme,
long_description_content_type="text/markdown",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public bool CanUserContinue { get; set; }
public bool DidUserContinue { get; set; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
o.AddSchemaProcessor<BlueprintLinkSchemaProcessor>();
});
pipelineBuilder.Services.AddSingleton(s => ActivatorUtilities.CreateInstance<OpenApiDocumentBuilder>(s).Build());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# initializing the blueprint
main = Blueprint('main', __name__)
CORS(main, resources={r'*': {'origins': '*'}})
@main.after_request
def after_request(response):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''Workflow execution ID of which this is a task.'''
return self._xid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
Index = aIndex;
Name = aName;
AllowedMessages = aMessages;
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The project's main homepage.
url='https://github.com/raspberrypilearning/piGPS',
# Author details
author='<NAME>',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mtxspin = mtxg(-1,mlh,largurapc[ax])
spin = np.array([mtxspin[0].real -hc*hc*xk*xk/(2*mlh)-eg/2-esp for xk in x])
spin_2 = np.array([mtxspin[10].real -hc*hc*xk*xk/(2*mlh)-eg/2-esp for xk in x])
spin_3 = np.array([mtxspin[20].real -hc*hc*xk*xk/(2*mlh)-eg/2-esp for xk in x])
for i in range(len(x)):
file1.write("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t\n"%(x[i],bc[i],bc_2[i],bc_3[i],bvhh[i],bvhh_2[i],bvhh_3[i],bvhh2[i],bvhh2_2[i],bvhh2_3[i],spin[i],spin_2[i],spin_3[i]))
file1.write("\n\n")
lista[ax].plot(x,0*x,'k--')
lista[ax].plot(x,bc,color='#0909d2')
lista[ax].plot(x,bc_2,color='#0909d2',linestyle='--')
lista[ax].plot(x,bc_3,color='#0909d2',linestyle=':')
lista[ax].plot(x,bvhh,color='#228b22',linestyle=':')
lista[ax].plot(x,bvhh_2,color='#228b22',linestyle='--')
lista[ax].plot(x,bvhh_3,color='#228b22')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
default="0.0",
)
args = parser.parse_args()
INPUT_DIR = Path(args.inputs)
OUTPUT_DIR = Path(args.outputs)
env_path = Path(".") / args.config
load_dotenv(dotenv_path=env_path, verbose=True, override=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"multiline": True,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit(-1);
}
read(file,c3,200); //since normal fstream not allowed read all text into c
temp[j++] = 'S'; temp[j++] = 'R'; temp[j++] = 'T'; temp[j++] = 'F';
for (int i = 0; i < strlen(c3); i++)
{
if(!(c3[i] > 'A' && c3[i] < 'Z') && !(c3[i-1] > 'A' && c3[i-1] < 'Z'))
if(!(c3[i]>'a' && c3[i]<'z') && c3[i]!=' ') {
temp[j] = c3[i];
j++;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private Color _color = new Color();
public Color Color
{
get => _color;
set {
_color = value;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def ebay(request):
url="https://api.sandbox.ebay.com/buy/browse/v1/item_summary/search?"
querystring={"q" : "drone","limit":3}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Returns the active cursor in the form:<blockquote>
*
* <pre>
* <code>
* {
* {@value #NAME_SPACE_FIELD} : '<database_name>.$lt;collection_name>',
* {@value #CURSOR_ID_FIELD} : <cursor_id>,
* {@value #SERVER_FIELD} : '<server>',
* {@value #LIMIT_FIELD} : <remaining_limit>
* {@value #BATCH_SIZE_FIELD} : <batch_size>
* }</code>
* </pre>
*
* </blockquote>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
doc_match=doc_full_search_tuple(thepath,myverbosity)
if doc_match:
result+=(doc_match,'doc')
if verbosity>1:
print doc_match
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pmt.intern("TEST"), nsamps)
hed = blocks.head(gr.sizeof_float, N)
dst = blocks.vector_sink_f()
self.tb.connect(src, hed, dst)
self.tb.run()
self.assertEqual(ntags, len(dst.tags()))
n_expected = nsamps
for tag in dst.tags():
self.assertEqual(tag.offset, n_expected)
n_expected += nsamps
| ise-uiuc/Magicoder-OSS-Instruct-75K |
generator.make_records(os.path.join(os.getcwd(),'data','crossvalidation','S2_unet')) | ise-uiuc/Magicoder-OSS-Instruct-75K |
export = List24;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="toast-container"><ng-container #container></ng-container></div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ToasterContainerComponent implements OnInit {
@ViewChild('container', { read: ViewContainerRef }) container: ViewContainerRef;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
"""This problem was asked by Amazon.
Implement a bit array.
A bit array is a space efficient array that holds a value of 1 or 0 at each index.
• init(size): initialize the array with size
• set(i, val): updates index at i with val where val is either 1 or 0.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_check_instance_variables(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
: WaylandGLESRenderer(executor, config)
{
}
t_ilm_const_string WaylandFbdevGLESRenderer::pluginGetName() const
| 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.