seed
stringlengths
1
14k
source
stringclasses
2 values
continueAfterFailure = false // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDown() { // Put teardown code here. This method is called afte...
ise-uiuc/Magicoder-OSS-Instruct-75K
class HoveringAxis(SequencerMixin, Axis): """An axis that also controls air for airpads.""" attached_devices = { 'switch': Attach('The device used for switching air on and off', Moveable), } parameters = { 'startdelay': Param('Delay after switching on air', type=float, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import { SimpleFile } from './models'; export declare function readVueFiles(src: string): SimpleFile[]; export declare function readLangFiles(src: string): SimpleFile[];
ise-uiuc/Magicoder-OSS-Instruct-75K
// AlgorithmsAndDataStructuresTests // // Created by Евгений on 11.10.2019. // Copyright © 2019 Евгений. All rights reserved. // import XCTest @testable import AlgorithmsAndDataStructures class ArrayQuicksortTests: SortingArrayTests { func testQuicksort() {
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = [LDAPAuthenticator]
ise-uiuc/Magicoder-OSS-Instruct-75K
If t is a number, use it as the time step. If t is an array, infer the timestep from the array. real : bool, optional
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public void destroyPlugin() { // Stop listening to system property events PropertyEventDispatcher.removeListener(this); }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .filter_service import FilterService
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Time modulus func modTime(_ time: Double) -> Double { return time.truncatingRemainder(dividingBy: length.beats) } // MARK: - Time Conversion public enum MusicPlayerTimeConversionError: Error { case musicPlayerIsNotPlaying case osStatus(OSStatus) } /// Returns ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# "desc": "", # "title": "密碼", # "mandatory": True # }) # name_content = Famcy.input_form.generate_values_content("pureInput") # name_content.update({ # "type": "pureInput", # "title": "名字", # "desc": "", # "input_type": "text", #...
ise-uiuc/Magicoder-OSS-Instruct-75K
try { return parseLeafSkeleton(new URL(String.format(CIF_FETCH_URL, ligandId)).openStream()); } catch (IOException e) { throw new UncheckedIOException("Could not parse cif file for ligand " + ligandId + ". If this exception" + " occurred during structure parsi...
ise-uiuc/Magicoder-OSS-Instruct-75K
for filename in files: match = regex.match(filename)
ise-uiuc/Magicoder-OSS-Instruct-75K
.trim_margin_with("|") .unwrap(); assert_eq!(actual, expected); } #[test] fn test_policy_composition() -> anyhow::Result<()> { once_cell::sync::Lazy::force(&proctor::tracing::TEST_TRACING); let main_span = tracing::info_span!("test_policy_composition"); let _...
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.jfinalshop.util.WebUtils; /** * Plugin - 易宝支付 * *
ise-uiuc/Magicoder-OSS-Instruct-75K
def setPassword(self, chatId, password): if chatId not in self.credentials:
ise-uiuc/Magicoder-OSS-Instruct-75K
1754570.0, 1693413.0, 2140395.0, 1323267.0, ], "StatusCode": "Complete", }, { "Id": "wpte",
ise-uiuc/Magicoder-OSS-Instruct-75K
self.difference = flt(self.total_debit) - (self.total_credit)
ise-uiuc/Magicoder-OSS-Instruct-75K
import abc class Docstring(abc.ABC): @abc.abstractmethod def __init__(self, docstring: str) -> None: pass @abc.abstractmethod def __str__(self) -> str: pass
ise-uiuc/Magicoder-OSS-Instruct-75K
self.object.transform.translation.y = 0.0 self.object.transform.translation.z = 0.0 self.object.transform.rotation.x = 0.0 self.object.transform.rotation.y = 0.0 angle = int(-round((i.xmin+i.xmax)*62.5/(2*638)-31.25)) self.object.transform.rotati...
ise-uiuc/Magicoder-OSS-Instruct-75K
this->score = 0; this->health = 100; static GLfloat g_vertex_buffer_data[100000];
ise-uiuc/Magicoder-OSS-Instruct-75K
def check_user(self, userId): """Method for checking if user exist""" user = [user for user in users if user['userId'] == userId] if user: return True return False
ise-uiuc/Magicoder-OSS-Instruct-75K
public class TUIWindowEditor : UnityEditor.Editor { private TUIWindow _instance; private PropertyField[] _properties; public void OnEnable() {
ise-uiuc/Magicoder-OSS-Instruct-75K
} } impl<T: IndexedValue> Deref for MutSet<'_, T> { type Target = IndexSetImpl<T::Index>;
ise-uiuc/Magicoder-OSS-Instruct-75K
TARGET_FOUND = 'gear_target_found' TARGET_CENTER = 'gear_target_details--center' X, Y = 0, 1 # Coordinate indices DESIRED_X_POSITION = 0.4 DESIRED_Y_POSITION = 0.3
ise-uiuc/Magicoder-OSS-Instruct-75K
[ ("text", CharBlock(required=False, max_length=80, label="Label")), ("url", URLBlock(required=False, label="URL")), ], required=False, label="Call to action", help_text='A...
ise-uiuc/Magicoder-OSS-Instruct-75K
export { GenerateShades } from "./Shades"; export { IArgs, TShadeDynamicKey, TOptionalShades, TOutputMode, TRequiredShades, TShadeVariants, IShades, TShadesResult, TNumber, } from "./interface";
ise-uiuc/Magicoder-OSS-Instruct-75K
class BlackholeTelnetManager(ExpectManager): @staticmethod def get_new_expect_connection(controller_ip): try: new_ssh_connection = pexpect.spawn("telnet " + controller_ip) # PROMPT is a regular expression which will match the prompt on the remote system. # This matc...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.actionNewProject.setText(QtGui.QApplication.translate("FloorplanMaker", "New project", None, QtGui.QApplication.UnicodeUTF8))
ise-uiuc/Magicoder-OSS-Instruct-75K
create_png_from_svg(svg_filepath, export_width, export_height, destination_filepath) # cut the png size = (width, height) image_file = Image.open(destination_filepath) image_file_cropped = ImageOps.fit(image_file, size, Image.ANTIALIAS, bleed=0, centering=(0.5, 0.5)) image_file_cropped.save(de...
ise-uiuc/Magicoder-OSS-Instruct-75K
urlpatterns = [ path('', words.List.as_view(), name='list'), # Includes new, search, and import path('<lemma:lemma>/', include([ path('', words.View.as_view(), name='view'), # Includes edit and delete
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 import os inputDir = '../store/curvature' stringToWrite = '[' for filename in os.listdir(inputDir): if filename != '.DS_Store': with open(inputDir +'/'+ filename) as f: contents = f.read() stringToWrite += contents + ',' stringToWrite = stringToWrite[:-1]
ise-uiuc/Magicoder-OSS-Instruct-75K
public static func bar() {} }
ise-uiuc/Magicoder-OSS-Instruct-75K
# true # True and True is # true # (True and False) or True is # true
ise-uiuc/Magicoder-OSS-Instruct-75K
partName = importFilename.replace(".erf", "").replace(".ERF", "").split("/")[-1]
ise-uiuc/Magicoder-OSS-Instruct-75K
compiler.import_tflite(model_content, import_options)
ise-uiuc/Magicoder-OSS-Instruct-75K
await self._request("put", app_url, json=data) async def async_disable(self, app_id: str) -> None: """Disable DPI Restriction Group Apps.""" app_url = f"{APP_URL}/{app_id}" data = {"enabled": False} await self._request("put", app_url, json=data)
ise-uiuc/Magicoder-OSS-Instruct-75K
if !overwrite && out.exists() { return Err(PdfError::FileExists(out)); } let pdf = compile_to_pdf(&document)?; fs::write(&out, pdf)?; Ok(()) }
ise-uiuc/Magicoder-OSS-Instruct-75K
ud.reset() assert len(ud) == N assert ud.labelled_indices.size(0) == 0 full_dataset = set(range(N)) for x in ud: full_dataset.remove(x.item()) assert len(full_dataset) == 0
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './iban-helper'
ise-uiuc/Magicoder-OSS-Instruct-75K
# https://cecill.info/licences/Licence_CeCILL_V2-en.html # for details. ##########################################################################
ise-uiuc/Magicoder-OSS-Instruct-75K
# ProcessCard # BankWithdrawal
ise-uiuc/Magicoder-OSS-Instruct-75K
popd
ise-uiuc/Magicoder-OSS-Instruct-75K
static let dashedSeparatorThickness = CGFloat(1) // Thickness of hour indicator in the day view cells static let hourIndicatorThickness = CGFloat(3) // Number of visible days static let visibleDaysPortrait = CGFloat(2) static let visibleDaysLandscape = CGFloat(7)
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="form-group col-sm-6"> {!! Form::label('service_id', 'Service:') !!} {!! Form::select('service_id',$serviceItems, null, ['class' => 'form-control']) !!}
ise-uiuc/Magicoder-OSS-Instruct-75K
return ''.join(c for c in text if c in emoji.UNICODE_EMOJI)
ise-uiuc/Magicoder-OSS-Instruct-75K
// RUN: not --crash %target-swift-frontend %s -parse // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing class B func a{{class e{ class A{enum A{ class A}}}struct Q<f:f.c
ise-uiuc/Magicoder-OSS-Instruct-75K
startX = e.pageX - (slider.current?.offsetLeft || 0); scrollLeft = slider.current?.scrollLeft || 0; } function handleMouseLeave() { isDown = false; } function handleMouseUp() { isDown = false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
this.caseName = caseName; this.isPassed = isPassed; this.errorMessage = errorMessage; }
ise-uiuc/Magicoder-OSS-Instruct-75K
from scipy.optimize import fmin_cg import numpy as np import matplotlib.pyplot as plt import corrcal2 as corrcal from scipy import optimize import time
ise-uiuc/Magicoder-OSS-Instruct-75K
private readonly IAsmHeaderGenerator asmHeaderGenerator = new AsmHeaderGenerator(); public Artifacts RunOnInputReader(IInputReader inputReader, IDiagnostics diagnostics) { try { var input = inputReader.Read(); var preprocessed = this.prepr...
ise-uiuc/Magicoder-OSS-Instruct-75K
def parse_readme(app, text): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
} protected ModelAndView error(int code,String message) { return mav("json").addObject("code", code).addObject("msg", message); } protected ModelAndView succeed(Object data) { return mav("json").addObject("code", 0).addObject("data", data); } @RequestMapping public String index(ModelMap model) {
ise-uiuc/Magicoder-OSS-Instruct-75K
IEnumerable<Type> GetSpecificTypes(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Zc = Z - Z.mean(dim=-1, keepdim=True) S = torch.matmul(Zc, Zc.transpose(1, 2)) wm = torch.randn(S.shape).to(S) for i in range(self.norm_groups): U, Eig, _ = S[i].svd() Scales = Eig.rsqrt().diag() wm[i] = U.mm(Scales).mm(U.t()) W = wm.matmul(Zc)...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Mocker for the local mempool pub mod local_mock_mempool;
ise-uiuc/Magicoder-OSS-Instruct-75K
// just consume } } else if (stt == s_endline) { remain++; break; }
ise-uiuc/Magicoder-OSS-Instruct-75K
])->value('path_file_jurnal_umum'); $file = public_path('storage/') . $file_name; $headers = ['Content-Type: application/msword']; $fileName = $file_name . '.doc';
ise-uiuc/Magicoder-OSS-Instruct-75K
-migrate-state \ -backend-config="region=${aws_region}" \ -backend-config="bucket=${tf_state_s3_bucket}" \ && \ terraform -chdir="${tf_working_dir}" apply -auto-approve \ -var="region=${aws_region}" \
ise-uiuc/Magicoder-OSS-Instruct-75K
} func abc(model:TestModel) -> TestModel { print("in remote manager") return TestModel() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
val = row[c] if hidden[c] == "if_missing" and not isinstance(val, Nothing): lgr.debug("Unhiding column %r after encountering %r",
ise-uiuc/Magicoder-OSS-Instruct-75K
from .pyBASS import *
ise-uiuc/Magicoder-OSS-Instruct-75K
impl StaticElement { pub fn new(tag_name: &'static str) -> Self { Self {
ise-uiuc/Magicoder-OSS-Instruct-75K
import argparse import pandas as pd import numpy as np parser = argparse.ArgumentParser(description='Vehicular network trace analyzer') parser.add_argument('-f', '--filenames', help='', default=[], required=True, type=str, action='append') args = parser.parse_args() naming = {'vz' : 'Verizon', 'sp' : 'Sprint...
ise-uiuc/Magicoder-OSS-Instruct-75K
public class AlertHistoryResultsModel { public int TotalAlertCount { get; set; } public int TotalFilteredCount { get; set; } public List<AlertHistoryItemModel> Data { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
indexPage = IndexPage(art) try: #indexPage.page_gen(only_existing=True, content=True, filter_ql=0) pages = indexPage.page_gen(only_existing=True, content=True) except ValueError as nopage: continue for page in pages: #print page.text if page.exists(): print page cat = getCatego...
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** * Returns a 10 Byte length ByteList with the time based bytes as described * in RFC4122 for the UUID V1. * * @return Uuid\ByteList */
ise-uiuc/Magicoder-OSS-Instruct-75K
if isinstance(klass_name, six.string_types):
ise-uiuc/Magicoder-OSS-Instruct-75K
from warprnnt_numba.rnnt_loss.utils import rnnt_helper from warprnnt_numba.rnnt_loss.utils.cuda_utils.gpu_rnnt_kernel import logp GPU_RNNT_THREAD_SIZE = 256 @cuda.jit(device=True, inline=True) def logp(
ise-uiuc/Magicoder-OSS-Instruct-75K
) icon.run()
ise-uiuc/Magicoder-OSS-Instruct-75K
self.model = model self.model.eval() self.baseline = None self.binary = binary self.j = None self.i = None self.baseline_value = 0 self.reshape = reshape def init_baseline(self, x, j = None, i = None, fixed_present = True, baseline_valu...
ise-uiuc/Magicoder-OSS-Instruct-75K
socketThread = threading.Thread(target=socketRecv)
ise-uiuc/Magicoder-OSS-Instruct-75K
pub struct ChainsConfig(HashMap<String, ChainConfig>);
ise-uiuc/Magicoder-OSS-Instruct-75K
if mode == "reduced": R = R[:n_cols, :] Q_t = Q_t[:n_cols, :] if mode == "r": R = R[:n_cols, :] return R return Q_t.t(), R def _norm_mpc(t, norm_factor): """
ise-uiuc/Magicoder-OSS-Instruct-75K
/// [RFC 3987, Section 2.2](https://datatracker.ietf.org/doc/html/rfc3987#section-2.2). /// /// `iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD`. /// Instead of one macro, we separate by UTF-8 encoding count. macro_rules! iprivate_4 {
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.db import migrations, models
ise-uiuc/Magicoder-OSS-Instruct-75K
# TRACE: print(f"{datetime.now().strftime(' (%H:%M:%S.%f)')} DataLoader#DataLoader#DataLoader#yielding 4!!!!") # TRACE: print(f"{datetime.now().strftime(' (%H:%M:%S.%f)')} DataLoader#DataLoader#DataLoader#__iter__ END FOR 2") self.after_iter() # T...
ise-uiuc/Magicoder-OSS-Instruct-75K
* @see <a href="https://drylib.org/qty/length">[1]</a> */ public interface Length extends Quantity<Length> {}
ise-uiuc/Magicoder-OSS-Instruct-75K
li.append(num) else: for n in enumerate(li): if num <= li[n[0]]: li.insert(n[0], num) no = 0 break if no == 1: li.append(num) while keep not in 'SsNn': keep = input('Deseja continuar? [S/N]')
ise-uiuc/Magicoder-OSS-Instruct-75K
* @author jim * @date 2018-11-23 */ @Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE) public interface PermissionMapStruct extends EntityMapper<PermissionDTO, Permission> { }
ise-uiuc/Magicoder-OSS-Instruct-75K
return dump @click.command() @click.argument('output_filepath', type=click.Path()) def main(output_filepath): """ Runs data scraping scripts to put raw data into (../raw)
ise-uiuc/Magicoder-OSS-Instruct-75K
public function addThumbnailSize($name, $width = 0, $height = 0, $crop = false){ if(is_null($name) || $name === ''){ set_post_thumbnail_size($width, $height, $crop); }else{ add_image_size($name, $width, $height, $crop); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
for info_item in eval_info: latent_point.append(info_item.detach().cpu().numpy()) label_point = label.cpu().detach().numpy() gif_ploter.AddNewFig( latent_point, label_point, title_=path+'/'+'result', loss=None, save=save_plot ) def SavePara...
ise-uiuc/Magicoder-OSS-Instruct-75K
import gevent from gevent.queue import Queue, Empty from gevent_subprocess import Popen, PIPE from gsh.plugin import BaseExecutor, BaseInnerExecutor class SshExecutor(BaseExecutor): def __init__(self, args, kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
OSS_KEY_CONNECT_COST_IN_10_20_MS = 88, OSS_KEY_CONNECT_COST_IN_20_30_MS = 89, OSS_KEY_CONNECT_COST_IN_30_50_MS = 90, OSS_KEY_CONNECT_COST_IN_50_100_MS = 91, OSS_KEY_CONNECT_COST_IN_100_200_MS = 92, OSS_KEY_CONNECT_COST_IN_200_300_MS = 93, OSS_KEY_CONNECT_COST_IN_300_500_MS = 94, OSS_KEY_CONNECT_COST_IN_...
ise-uiuc/Magicoder-OSS-Instruct-75K
if ($this->conn) { return mysqli_fetch_row($resultSet); } return false; } function fetchAssoc($resultSet) { if (!$resultSet) { return false;
ise-uiuc/Magicoder-OSS-Instruct-75K
writer->WriteLine("}"); AddDeprecatedFlag(writer); writer->WriteLine("public Builder Clear$0$() {", property_name()); writer->WriteLine(" PrepareBuilder();"); if (SupportFieldPresence(descriptor_->file())) { writer->WriteLine(" result.has$0$ = false;", property_name()); } writer->WriteLine(" result...
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.stderr.write("Could not get remote tags - the local kernel (%s) may not be the most up-to-date\n" % tags[0]) else: sys.stderr.write("Could not get remote tags - check you can access %s:\n" % KERNEL_URL) env.Exit(1) # Get requested tag name if not freertos_tag: # Checkout latest ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# Cache # register('cache.backend', flags=FLAG_NOSTORE) # register('cache.options', type=Dict, flags=FLAG_NOSTORE) # System register('system.admin-email', flags=FLAG_REQUIRED) register('system.support-email', flags=FLAG_ALLOW_EMPTY | FLAG_PRIORITIZE_DISK) register('system.security-email', flags=FLAG_ALLOW_EMPTY | FLA...
ise-uiuc/Magicoder-OSS-Instruct-75K
calling_instance.writeVInt(5) calling_instance.writeVInt(len(sortedBrawlers)) calling_instance.writeVInt(8)
ise-uiuc/Magicoder-OSS-Instruct-75K
if ($this->app->runningInConsole()) { $this->publishes([ __DIR__ . '/../config/config.php' => config_path('services.php'), ], 'config'); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return res.json() def comment(id, page_token=''): url = "https://youtube.googleapis.com/youtube/v3/commentThreads" params = { "part": "snippet,replies", "videoId": id, "next_page_token": page_token, "key": KEY }
ise-uiuc/Magicoder-OSS-Instruct-75K
do_hard_work(); pb.println(format!("[+] finished #{}", i)); pb.inc(1); } pb.finish_with_message("done"); } fn do_hard_work() { use std::thread; use std::time::Duration; thread::sleep(Duration::from_millis(250));
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>imanshu15/movie-organizer import { Component, OnInit } from '@angular/core'; import { FileService } from '../../services/file.service'; @Component({ selector: 'app-organize', templateUrl: './organize.component.html', styleUrls: ['./organize.component.scss'] }) export class OrganizeComponent implements ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from docutils import nodes class helloworld(nodes.Admonition, nodes.Element): pass def visit_helloworld_node(self, node): self.visit_admonition(node)
ise-uiuc/Magicoder-OSS-Instruct-75K
//Constructors
ise-uiuc/Magicoder-OSS-Instruct-75K
} TEST(ALPosition2DTest, Divers) { //std::cout << "-------------- soustraction 0 (a-b) --------------" << std::endl; pPos2D1 = AL::Math::Position2D(+1.2f, 1.3f);
ise-uiuc/Magicoder-OSS-Instruct-75K
self.allow_user_delete_messages = allow_user_delete_messages self.allow_owner_delete_messages = allow_owner_delete_messages self.allow_team_mentions = allow_team_mentions self.allow_channel_mentions = allow_channel_mentions
ise-uiuc/Magicoder-OSS-Instruct-75K
* @throws RuntimeException */ private function assertTargetPath($targetPath) { if (!\is_string($targetPath) || $targetPath === '') { throw new InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string'); } if (!\is_writable(\dirn...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// \brief Constructor from ignition::math::Inertial. /// \param[in] _inertial Ignition inertial object to copy. // cppcheck-suppress noExplicitConstructor public: Inertial(const ignition::math::Inertiald &_inertial); /// \brief Copy constructor. /// \param[in] _inertial Inertial e...
ise-uiuc/Magicoder-OSS-Instruct-75K
private lazy var dependencyInjector: DependencyInjector = { return DependencyInjector(environment: SetupConstants.environment, group: SetupConstants.group, identifier: SetupConstants.identifier) }() private func setupWindow(navigationController: UINavigationControl...
ise-uiuc/Magicoder-OSS-Instruct-75K