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...
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 d...
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-h...
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;...
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, ...
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 = #co...
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_whe...
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 } ...
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["I...
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. ...
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...
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 th...
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.setNoChec...
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...
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 deliver...
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 ...
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 CHEMBL1...
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<UBillboardComponen...
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_resp...
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>...
ise-uiuc/Magicoder-OSS-Instruct-75K
this.servicioAgenda.patchCodificarTurno({ 'op': 'codificarTurno', 'turnos': [this.prestacion.solicitud.turno] }).subscribe(salida => { }); } else { if (!this.prestacion.solicitud.turno) { ...
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()) ...
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]) fo...
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' &&...
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} : '&lt;database_name&gt;.$lt;collection_name&gt;', * {@value #CURSOR_ID_FIELD} : &lt;cursor_id&gt;, * {@value #SERVER_FIELD} : '&lt;server&gt;', * {@valu...
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(): ...
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