seed
stringlengths
1
14k
source
stringclasses
2 values
|:code:`scenarios` table feature |N/A | +--------------------------------+----------------------------------------------+ |:code:`subscenario_` table |:code:`subscenarios_project_new_potential` | +--------------------------------+----------------------------------------...
ise-uiuc/Magicoder-OSS-Instruct-75K
Ok(DisplayMode::from_ll(&dm)) } else { Err(get_error()) } } pub fn get_closest_display_mode(display_index: int, mode: &DisplayMode) -> SdlResult<DisplayMode> { let input = mode.to_ll(); let out = empty_sdl_display_mode(); let result = unsafe { ll::SDL_GetClosestDisplayMode(display_...
ise-uiuc/Magicoder-OSS-Instruct-75K
yes no | unzip models.zip mv honk-data-master/training_data . mv -T honk-models-master model
ise-uiuc/Magicoder-OSS-Instruct-75K
fn crc32x_(crc: u32, data: u64) -> u32; #[link_name = "llvm.aarch64.crc32cx"] fn crc32cx_(crc: u32, data: u64) -> u32; } #[cfg(test)] use stdarch_test::assert_instr; /// CRC32 single round checksum for quad words (64 bits). #[inline]
ise-uiuc/Magicoder-OSS-Instruct-75K
print(False if a_not_b else True) if __name__ == "__main__": main()
ise-uiuc/Magicoder-OSS-Instruct-75K
import logging.config logging.config.dictConfig(LOGGING_CONFIG) LOGGER = logging.getLogger(__name__) GOOD_FIRST_ISSUE = "good first issue" ISSUES_HTML_URL = Template("$html_url/labels/$good_first_issue") TWEET_TEMPLATE = Template( "$repo_full_name - $repo_desc.\n\nLanguage: $language\nIssues: $issues_url" ) cla...
ise-uiuc/Magicoder-OSS-Instruct-75K
return Response( data=fyle_orgs,
ise-uiuc/Magicoder-OSS-Instruct-75K
// Select a bottom navigation bar item. bottomNavBar.selectedItem = tabBarItem2; } func layoutBottomNavBar() { let size = bottomNavBar.sizeThatFits(view.bounds.size)
ise-uiuc/Magicoder-OSS-Instruct-75K
/// The type of keyboard to display. (OS touch-screens only) /// </summary> #if UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9 || UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_4_7 || UNITY_4_8 || UNITY_4_9 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || UNIT...
ise-uiuc/Magicoder-OSS-Instruct-75K
// RUN: not %target-swift-frontend %s -typecheck var:{struct A{{{{}}}let h:d}struct B<T where B:a{}struct B
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @return void */ public function user() { return $this->belongsTo('App\User'); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
video_metrics.print_metrics()
ise-uiuc/Magicoder-OSS-Instruct-75K
//# sourceMappingURL=cleanColorString.d.ts.map
ise-uiuc/Magicoder-OSS-Instruct-75K
from string import ponctuation est_ponctuation = lambda lettre: lettre in ponctuation
ise-uiuc/Magicoder-OSS-Instruct-75K
'FB_SERVICEACCOUNT') or 'FB_SERVICEACCOUNT'
ise-uiuc/Magicoder-OSS-Instruct-75K
depth=True) try: pano_img = cv2.resize(pano_img, (pano_img.shape[1] * 4, pano_img.shape[0] * 4)) pc_path = os.path.join(MMWAVE_SAVE_PATH, str(timestamp) + '.png') cv2.imwrite(pc_path, pano_img) except: width = (h_fov[1...
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>packages/test/src/index.ts import { Bot } from '@xene/core' import { Tester } from './tester' export const wrap = <B extends Bot>(bot: B) => new Tester<B>(bot)
ise-uiuc/Magicoder-OSS-Instruct-75K
black_box(Ok(())) } } #[inline]
ise-uiuc/Magicoder-OSS-Instruct-75K
interface Foo<T> {
ise-uiuc/Magicoder-OSS-Instruct-75K
export type UnassignIpFromDropletResponse = IResponse<IUnassignIpFromDropletApiResponse>; export const unassignIpFromDroplet = ({ httpClient, }: IContext) => ({
ise-uiuc/Magicoder-OSS-Instruct-75K
ProcfsMetricsProvider stats_provider(0); ::taskstats stats; stats_provider.getTaskStats(stats); const auto start_cpu_time = stats.cpu_run_virtual_total; for (size_t i = 0; i < num_iterations; ++i) { stats_provider.getTaskStats(stats); }
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): dependencies = [ ('yaksh', '0015_auto_20180601_1215'), ] operations = [
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 # -*- coding: utf-8 -*- __about__ = """ This project demonstrates a social networking site. It provides profiles, friends, photos, blogs, tribes, wikis, tweets, bookmarks, swaps, locations and user-to-user messaging.
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * The create request asks the file server to create a new file with the name supplied, * in the directory (dir) represented by fid, and requires write permission in the directory. * The owner of the file is the implied user id of the request. */ struct Create { Fid fid; //!< Fid of t...
ise-uiuc/Magicoder-OSS-Instruct-75K
name = inputs[0] value = int(inputs[1]) # Populate the ohms dictionary ohms[name] = value # Construct the circuit and replace the names with their resistance values circuit = [ohms[e] if e in ohms else e for e in input().split()] # Constants OPENING_CHARACTERS = ['[', '('] CLOSING_CHAR...
ise-uiuc/Magicoder-OSS-Instruct-75K
@brightness.setter def brightness(self, brightness): if not 0 <= brightness <= 15: raise ValueError("Brightness must be an integer in the range: 0-15") brightness = brightness & 0x0F self._brightness = brightness self._write_cmd(_HT16K33_CMD_BRIGHTNESS | brightness) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return self
ise-uiuc/Magicoder-OSS-Instruct-75K
$response = $client->request('POST', 'https://onesignal.com/api/v1/notifications', array( 'headers' => [ 'Content-Type' => 'application/json; charset=utf-8', 'Authorization' => 'Basic NTZmZGJmN2EtODUxYy00M2RiLTk4YWUtYTBhZmEzYzFjZGRi' ], 'json' ...
ise-uiuc/Magicoder-OSS-Instruct-75K
title: 'Prestations sous WordPress, Prestashop et Symfony', }, { link: RouteLink.prestationWeb, title: 'Création de site internet', }, ], featuredProjects: relatedProjects.projets.edges,
ise-uiuc/Magicoder-OSS-Instruct-75K
line = fp.readline() while line: real_line = process_line(line)
ise-uiuc/Magicoder-OSS-Instruct-75K
'id_tpo_ski'
ise-uiuc/Magicoder-OSS-Instruct-75K
server.quit() except smtplib.SMTPException as e:
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="col-sm-12"> <div class="form-group text-right"> <label>&nbsp;&nbsp;</label><br> <a type="button" class="btn btn-default" href="{{ route('admin-course-materials') }}">Cancel</a> <bu...
ise-uiuc/Magicoder-OSS-Instruct-75K
labels = self.decode(labels) return labels
ise-uiuc/Magicoder-OSS-Instruct-75K
* @package chillerlan\QRCodeTest\Data * @author Smiley <<EMAIL>> * @copyright 2017 Smiley * @license MIT */ namespace chillerlan\QRCodeTest\Data; use chillerlan\QRCode\Data\Byte; use chillerlan\QRCode\Data\QRDataInterface; use chillerlan\QRCode\QROptions; /** * Tests the Byte class
ise-uiuc/Magicoder-OSS-Instruct-75K
''' Created on Apr 17, 2014
ise-uiuc/Magicoder-OSS-Instruct-75K
//Button.init("Save", action: <#() -> Void#>) public final class Store<Value, Action>: ObservableObject { private let reducer: Reducer<Value, Action> @Published public private(set) var value: Value private var cancellable: Cancellable? public init(initialValue: Value, reducer: @escaping Reducer<Value, Action...
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import views urlpatterns = [ path('', views.icecream_list, name='icecream-list'), path('<int:pk>/', views.icecream_detail, name='detail'), path('<str:username>/unfollow/', views.profile_unfollow, name='profile_unfollow'), path('<str:username>/follow/', views.profile_follow, name='profile_follow'...
ise-uiuc/Magicoder-OSS-Instruct-75K
BUILD_TASKS_NOT_SUPPORTED = 'Build Tasks are only supported for managed registries.' DEFAULT_TOKEN_TYPE = 'PAT' def acr_build_task_create(cmd, # pylint: disable=too-many-locals client, build_task_name, registry_name, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import math import time import datetime import json import copy import logging from datetime import timezone from time import strftime import requests from kafka import KafkaProducer
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(n): print(min_lst[i])
ise-uiuc/Magicoder-OSS-Instruct-75K
[ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; /// <summary> /// Target volume to transfer. If <see cref="WideNet"/> is enabled, actual transfer rate will be much higher. /// </summary> [ViewVariables(VVAccess.ReadWrite)] publi...
ise-uiuc/Magicoder-OSS-Instruct-75K
data_root = 'Data' max_length = 50
ise-uiuc/Magicoder-OSS-Instruct-75K
_text = text; } abstract public void PrintMessage(); } class SimpleMessage : Message { public SimpleMessage(string text) : base(text) { } public override void PrintMessage() {
ise-uiuc/Magicoder-OSS-Instruct-75K
# CRUD strings ADD_IMPACT = T("Add Impact") LIST_IMPACT = T("List Impacts") s3.crud_strings[tablename] = Storage( title_create = ADD_IMPACT, title_display = T("Impact Details"), title_list = LIST_IMPACT,
ise-uiuc/Magicoder-OSS-Instruct-75K
WindowGroup { ContentView() .environment(\.managedObjectContext, persistenceController.container.viewContext) } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS,
ise-uiuc/Magicoder-OSS-Instruct-75K
post_save.connect(menu_change_handler, Menu) post_save.connect(menu_change_handler, MenuItem) post_delete.connect(menu_change_handler, Menu) post_delete.connect(menu_change_handler, MenuItem)
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>rafa-evangelista/PYTHON<gh_stars>0 num = int(input('Digite um número: ')) print('''Qual será a base de conversão do número {} [1] para "binário" [2] para "octal" [3] para "hexadecimal"'''.format(num)) num1 = int(input('Escolha uma opção: ')) if num1 == 1: print('Você escolheu converter o número {} para b...
ise-uiuc/Magicoder-OSS-Instruct-75K
} } @Override public void execute(ScriptEntry scriptEntry) { ListTag servers = scriptEntry.getObjectTag("servers"); if (scriptEntry.dbCallShouldDebug()) { Debug.report(scriptEntry, getName(), servers); } if (!BungeeBridge.instance.connected) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
eval $(amocli key list | awk '{ if ($2 != "t0") printf "%s=%s\n",$2,$4 }') faucet=BEFF22606A9FB730455736E7B33C846171F2865C
ise-uiuc/Magicoder-OSS-Instruct-75K
// krabs provides a few simple predicates to use to make this a little easier for // the standard cases. We'll use one of those to filter based on the event id.
ise-uiuc/Magicoder-OSS-Instruct-75K
$0 start
ise-uiuc/Magicoder-OSS-Instruct-75K
# output=$(aws s3 ls s3://$bucket_name/$bucket_keyprefix/extract/ | awk '{print $2}') extract_output=${output::-1} echo "{\"prefix\": \"$bucket_keyprefix\", \"extract_output\": \"$extract_output\"}" > extract_prefix.json aws s3 cp extract_prefix.json s3://${bucket_name}/config/
ise-uiuc/Magicoder-OSS-Instruct-75K
); ($($arg:tt)*) => ( Ok(Value::from(format!($($arg)*))) ) }
ise-uiuc/Magicoder-OSS-Instruct-75K
info = {}
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_global(): input_file, output_file = "test_global/input.py", "test_global/output.py" make_test(input_file, output_file) def test_nonlocal(): input_file, output_file = "test_nonlocal/input.py", "test_nonlocal/output.py"
ise-uiuc/Magicoder-OSS-Instruct-75K
return STG_E_INVALIDPOINTER; } ULONG read = 0; try { this->mRstream.read(static_cast<char *>(_pv), _cb); read = static_cast<ULONG>(this->mRstream.gcount()); } catch (const std::ios_base::failure &) { return STG_E_ACCESSDENIED; } catch (const std::bad_alloc &)
ise-uiuc/Magicoder-OSS-Instruct-75K
from .epoch import Epoch from .iteration import Iteration
ise-uiuc/Magicoder-OSS-Instruct-75K
struct C1a { friend void func1(int) {} // expected-note{{previous definition is here}} }; struct C1b { friend void func1(int) {} // expected-error{{redefinition of 'func1'}} };
ise-uiuc/Magicoder-OSS-Instruct-75K
else: self.stdout.write(f"User {SCRAPER_USERNAME} already exists.") token, created = Token.objects.get_or_create(user=user)
ise-uiuc/Magicoder-OSS-Instruct-75K
zz, xx = np.mgrid[:nz,:nx]
ise-uiuc/Magicoder-OSS-Instruct-75K
# StructField('DOSAGE',IntegerType(),True), # StructField('PACK',IntegerType(),True), # StructField('mnf',StringType(),True),]) # df = spark.createDataFrame(cpa_test, schema=cpa_schema).na.fill("").select("SPEC") # df.show() # df = spark.read.parquet("s3a://ph-max-auto/2020-08-11/BPBatchDAG/refactor/zyyin/...
ise-uiuc/Magicoder-OSS-Instruct-75K
const document = this.documents.get(uri); const ranges: FoldingRange[] = []; if (!document) {
ise-uiuc/Magicoder-OSS-Instruct-75K
content += i + "\n\n" email = input('enter your email:') send_mail(email, content)
ise-uiuc/Magicoder-OSS-Instruct-75K
return all_sites
ise-uiuc/Magicoder-OSS-Instruct-75K
"npop" : pop_array, "hypervolume" : hyper_v }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .cHTTPConnection import cHTTPConnection; from .mExceptions import *; # To turn access to data store in multiple variables into a single transaction, we will create locks.
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.CreateModel( name='Me', fields=[
ise-uiuc/Magicoder-OSS-Instruct-75K
avail_sar = k['self_assigned_roles']
ise-uiuc/Magicoder-OSS-Instruct-75K
RequestError - Something went wrong requesting the search page. Timeout - The search lasted longer than timeout. """ details_data = self.provider.fetch_details_data(self, timeout) # the torrent details are a combination of the data # we already have and the new da...
ise-uiuc/Magicoder-OSS-Instruct-75K
/////////////////////////////////////////////////////// // mock of ACL code /////////////////////////////////////////////////////// #include "access_control.h" Result acl_allow_access(const StlAddress &addr, const Key &PublicKey){} bool acl_has_access(const StlAddress &addr, const Key &key){} bool acl_read(const StlA...
ise-uiuc/Magicoder-OSS-Instruct-75K
JSON.stringify(new Date(start)), ); // eslint-disable-next-line no-console console.log(`--> ${startTimestamp} ${ctx.request.method} ${ctx.request.path}`); await next();
ise-uiuc/Magicoder-OSS-Instruct-75K
], targets: [ .target(name: "{{name}}", dependencies: ["AWSSDKSwiftCore"]), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
public InscriptionOfAbundance(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}"); // Kicker {2}{G} this.addAbility(new KickerWithAnyNumberModesAbility("{2}{G}")); // Choose one. If this spell was kicked, choose any number inste...
ise-uiuc/Magicoder-OSS-Instruct-75K
:return: filtered geodataframe with 0 or 1 basins at level lower """
ise-uiuc/Magicoder-OSS-Instruct-75K
import { Engine } from "qa-engine"; export declare class QA { engine: Engine; constructor(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
def visit_Float(self, env, e): return e def visit_Neg(self, env, e): return (e[0], find(env, e[1])) def visit_Add(self, env, e): return (e[0], find(env, e[1]), find(env, e[2])) def visit_Sub(self, env, e):
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Analyzes the install info and returns the desired specific info pub fn get_installation_info(&self, desired_info: InstallInfo) -> Option<&str> { let install_details = &self.doc["installation"]; // decide waht to do based on what the desireed info is let info = match desired_info { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from .particle import Particle
ise-uiuc/Magicoder-OSS-Instruct-75K
ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) SERVER = 'CFD' IS_MULTITHREADING = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo systemctl start consul
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Default: 5 minutes
ise-uiuc/Magicoder-OSS-Instruct-75K
if endpoint1_index < 0: print("Diagnostic: Ecosystem.locationNames: ", self.locationNames) print( "Error: link created to non-existent source: {} with dest {}".format( endpoint1, endpoint2 ) ) sys.exit() ...
ise-uiuc/Magicoder-OSS-Instruct-75K
let scanner = Scanner(string: rgba) var hexValue: CUnsignedLongLong = 0 if scanner.scanHexInt64(&hexValue) { let length = rgba.count
ise-uiuc/Magicoder-OSS-Instruct-75K
placeholder: string; errors?: string | Array<string> | null; width?: number | string; label?: string; numberOfLines?: number; } export default function Input({
ise-uiuc/Magicoder-OSS-Instruct-75K
'cursorclass': MySQLdb.cursors.DictCursor, 'autocommit': True, }) cur = request.isuda_db.cursor() cur.execute("SET SESSION sql_mode='TRADITIONAL,NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY'") cur.execute('SET NAMES utf8mb4') return request.isuda_db def dbh_...
ise-uiuc/Magicoder-OSS-Instruct-75K
) -> Tuple[Bitfield, BLSSignature]: """ Aggregate the votes. """ # Update the bitfield and append the signatures sigs = tuple(sigs) + tuple(voting_sigs) bitfield = pipe( bitfield,
ise-uiuc/Magicoder-OSS-Instruct-75K
init=lambda _: jnp.zeros((obs_size, act_size)),
ise-uiuc/Magicoder-OSS-Instruct-75K
'codigo' => '003', 'success' => true ); } catch (Exception $e) { $datos = array( 'message' => 'Existió un error al registrar', 'codigo' => '004', 'success' => false
ise-uiuc/Magicoder-OSS-Instruct-75K
# By default we only listen on localhost. Set this to '0.0.0.0' to accept # requests from any interface HOST = '127.0.0.1' PORT = 5000 # How many quotes per page PAGE_SIZE = 10
ise-uiuc/Magicoder-OSS-Instruct-75K
from spacy import displacy import unidecode import pandas as pd
ise-uiuc/Magicoder-OSS-Instruct-75K
def readlines(self): if self.zipped: for line in self.f.stdout: yield line else: for line in self.f.readlines(): yield line
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>laserb/commodore<filename>commodore/__init__.py<gh_stars>10-100 """ Commodore. Build dynamic inventories and compile catalogs with Kapitan """ from pathlib import Path as P from importlib_metadata import version
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>GitLqr/OpenGLStudy package com.lqr.openglstudy.es20; import android.content.Context; import android.opengl.GLSurfaceView;
ise-uiuc/Magicoder-OSS-Instruct-75K
c = get_contract(code, N) return c def test_init_state(c): assert uint256_list_to_int(c.N) == N_HEX assert uint256_list_to_int(c.initialAccumulator) == G assert uint256_list_to_int(c.accumulator) == G def uint256_list_to_int(l): out = 0 for i in range(len(l)): out += l[i] * 2 ** ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def bake(self, other:list=None): subres = None
ise-uiuc/Magicoder-OSS-Instruct-75K
args = argparser.parse_args() if args.version: print('tunacell version {}'.format(__version__))
ise-uiuc/Magicoder-OSS-Instruct-75K
# -*- coding: utf-8 -*- import arcpy import os import foo class Toolbox(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file).""" self.label = "Sample Python Toolbox"
ise-uiuc/Magicoder-OSS-Instruct-75K
__package_name__ = "pyctcdecode" __version__ = "0.3.0"
ise-uiuc/Magicoder-OSS-Instruct-75K