seed
stringlengths
1
14k
source
stringclasses
2 values
self.assertTrue(shipping_charge.is_tax_known) self.assertEqual(shipping_charge.excl_tax, D("14.99")) self.assertEqual(shipping_charge.incl_tax, D("16.3203625")) self.assertEqual(len(shipping_charge.components[0].taxation_details), 3) self.assertEqual( ...
ise-uiuc/Magicoder-OSS-Instruct-75K
try: # pipe output to /dev/null for silence null = open("/dev/null", "w")
ise-uiuc/Magicoder-OSS-Instruct-75K
child.board.print_board() print(child.available_moves) print(child.colour) print(child.board.move_counter)
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>shubham192/red-data from flask import Flask app = Flask(__name__) import flask_app.views
ise-uiuc/Magicoder-OSS-Instruct-75K
--header "X-Cassandra-Token: $AUTH_TOKEN" \ --header "Content-Type: application/json"
ise-uiuc/Magicoder-OSS-Instruct-75K
lstm = LSTM("settings.ini") lstm.run_on_datasets()
ise-uiuc/Magicoder-OSS-Instruct-75K
result.append(array1[array1_index]) array1_index += 1 else: result.append(array2[array2_index]) array2_index += 1 if array1_index == len(array1): while array2_index < len(array2): result.append(array2[array2_index]) array2_inde...
ise-uiuc/Magicoder-OSS-Instruct-75K
reg
ise-uiuc/Magicoder-OSS-Instruct-75K
if obj is None: return lambda node, out=None: show(node, out=out) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
// CHECK: [[X_COPY:%.*]] = copy_value [[BORROWED_X]] // CHECK: store [[X_COPY]] to [init] [[PB]] // CHECK: end_borrow [[BORROWED_X]] from [[X]] return x // CHECK: [[READ:%.*]] = begin_access [read] [unknown] [[PB]] : $*ClassBound & NotClassBound
ise-uiuc/Magicoder-OSS-Instruct-75K
.addTo(this.map); }
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Reflection; namespace MGR.CommandLineParser.Extensibility.ClassBased { /// <summary> /// Defines the contract for the generation of alternate names. /// </summary> public interface IPropertyOptionAlternateNameGenerator { /// <summary> /// Gets the alternate names fo...
ise-uiuc/Magicoder-OSS-Instruct-75K
class PermissionFragmentFactory { private static final String FRAGMENT_TAG = "permission_fragment_tag";
ise-uiuc/Magicoder-OSS-Instruct-75K
let result = try target.fetch(with: "46a4cc9c082a8b0df08918f6f6fa115b6f7bd813", from: certificates) XCTAssertEqual(result, "MIIDHDCCAgSgAwIBAgIIMA+nEN5Ros8wDQYJKoZIhvcNAQEFBQAwMTEvMC0GA1UEAxMmc2VjdXJldG9rZW4uc3lzdGVtLmdzZXJ2aWNlYWNjb3VudC5jb20wHhcNMTcwODA1MDA0NTI2WhcNMTcwODA4MDExNTI2WjAxMS8wLQYDVQQDEyZz...
ise-uiuc/Magicoder-OSS-Instruct-75K
angle = new Angle(b, c, a); this.type = type; } // Constructor for parcelable private Area(Parcel in) { name = in.readString();
ise-uiuc/Magicoder-OSS-Instruct-75K
static let maximumNumberOfRowsInSection = 10000000 init(integerValue: Int) { self.init( item: integerValue%IndexPath.maximumNumberOfRowsInSection, section: integerValue/IndexPath.maximumNumberOfRowsInSection) } var integerValue: Int { return self.se...
ise-uiuc/Magicoder-OSS-Instruct-75K
public let auditDestinationARN: String? /// Specifies the Region of the S3 bucket where the NFS file share stores files. This parameter is required for NFS file shares that connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point. ...
ise-uiuc/Magicoder-OSS-Instruct-75K
using cals::mttkrp::MTTKRP_METHOD; using cals::mttkrp::MttkrpParams; using std::cerr; using std::cout; using std::endl; int main(int argc, char *argv[]) { cout << "=============================================================================" << endl; cout << "This executable performs experiments regarding MTTKRP ...
ise-uiuc/Magicoder-OSS-Instruct-75K
""" # solution s = set(a**b for a in range(2, 101) for b in range(2, 101)) print(len(s))
ise-uiuc/Magicoder-OSS-Instruct-75K
sequence, '.' * len(sequence), '_' * len(sequence)))
ise-uiuc/Magicoder-OSS-Instruct-75K
iso05 = tbl.isoline(self.case, "alpha.waterMean", 0.5) idx = iso05[:, 0].argsort() self.xfs = iso05[idx, 0] self.yfs = iso05[idx, 1] idx_toe = np.argmin(np.abs(self.d*1.1 - self.yfs[:int(self.yfs.size/2)])) self.xtoe = self.xfs[idx_toe]
ise-uiuc/Magicoder-OSS-Instruct-75K
data_df = pd.read_pickle(data_dir + data_file) test_df = pd.DataFrame() # Creating two non-overlapping datasets for training and validation # by taking all pictures of 15 cards and putting them in the test data frame for i in range(15): temp = data_df.loc[ data_df["categories"]....
ise-uiuc/Magicoder-OSS-Instruct-75K
if (page == 0) page = 1;
ise-uiuc/Magicoder-OSS-Instruct-75K
# maximum capacity of the knapsack capacity = float(numbers[cur_entry]) cur_entry += 1 # get data on the items value = np.zeros(num_items, dtype = 'float')
ise-uiuc/Magicoder-OSS-Instruct-75K
if (declaration.kind === 'function') { const parameters = [ `functionName: '${declaration.name}'`, ...declaration.parameters.map((m) => generateTypescriptOfFunctionParameter(m)), ] result.push(` (${parameters.join(', ')}): string`) } } const content = `type TestType = { ${...
ise-uiuc/Magicoder-OSS-Instruct-75K
counter = 0 def __init__(self, file_name, file_path): self.file_name = file_name self.file_path = file_path self.rotate_loc = '/mnt/mydisk/temphum/' def write_to_csv(self, sensor_tuple, weather_tuple): header_write = self.rotate_files() full_file_pat...
ise-uiuc/Magicoder-OSS-Instruct-75K
clientPort=2181" > "$BOOT_DESTINATION/zk/conf/zoo.cfg"
ise-uiuc/Magicoder-OSS-Instruct-75K
with open('first_page.pdf','wb') as first_page_pdf_file: pdf_writer.write(first_page_pdf_file)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.solution.max_clique_size = c.max_clique_size self.solution.number_of_edges = len(I) self.solution.assignment = m
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "collider.h"
ise-uiuc/Magicoder-OSS-Instruct-75K
def downgrade(): op.drop_column('LoadTbl', 'archived')
ise-uiuc/Magicoder-OSS-Instruct-75K
) except jwt.PyJWTError: raise ValidationError("Kunne ikke validere brukeren.") @staticmethod def confirm_indok_enrollment(access_token: str) -> bool: params = { "Authorization": f"Bearer {access_token}", } try: response = requests...
ise-uiuc/Magicoder-OSS-Instruct-75K
if not result: return None # Parse the consensus and handle negative numbers. raw_consensus = result[0] if "(" in raw_consensus: # We have an expected loss. consensus = float(re.findall(r"[0-9\.]+", raw_consensus)[0]) * -1 else: # ...
ise-uiuc/Magicoder-OSS-Instruct-75K
for v in &test_data!(u8) { let encoded = v.encode(); assert_eq!(*v, BitVec::<Msb0, u8>::decode(&mut &encoded[..]).unwrap()); } } #[test] fn bitvec_u16() { for v in &test_data!(u16) { let encoded = v.encode();
ise-uiuc/Magicoder-OSS-Instruct-75K
// @apps import { FindClientByIdQuery } from '@apps/o-auth/client/application/find/find-client-by-id.query'; import { DeleteClientByIdCommand } from '@apps/o-auth/client/application/delete/delete-client-by-id.command'; import { OAuthClient } from '../../../../graphql'; import { OAuthClientDto } from '../dto'; @Injecta...
ise-uiuc/Magicoder-OSS-Instruct-75K
In addition, the default config will be written to source 3 in case no config sources are available. :param app_name: Application name used for the configuration directory name :param config_name: Configuration file name :param default_config: Default configuration as TOML-formatted string """...
ise-uiuc/Magicoder-OSS-Instruct-75K
def _ParseArguments(argv): """Parse and validate arguments.""" parser = GetParser() opts = parser.parse_args(argv) if not os.path.exists(os.path.dirname(opts.output)):
ise-uiuc/Magicoder-OSS-Instruct-75K
@NgModule({ imports: [SharedModule, AccountRoutingModule], exports: [],
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>AntonGepting/tmux-interface<filename>src/commands/windows_and_panes/rotate_window.rs use crate::commands::constants::*; use crate::{Error, TmuxCommand, TmuxOutput}; use std::borrow::Cow; /// Rotate the positions of the panes within a window /// /// # Manual /// /// tmux ^3.1: /// ```text
ise-uiuc/Magicoder-OSS-Instruct-75K
from .utils import *
ise-uiuc/Magicoder-OSS-Instruct-75K
public: using ElementType = ElemT; using HandleType = HandleT;
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import pandas as pd from sklearn.model_selection import StratifiedKFold # Cell df = pd.read_csv(os.path.join('../data', 'en_task_a', 'hasoc_2020_en_train_new.csv'), sep='\t') # Cell df['kfold_task1'] = -1 df['kfold_task2'] = -1 df = df.sample(frac=1.,random_state=SEED).reset_index(drop=True) y = df['task1'...
ise-uiuc/Magicoder-OSS-Instruct-75K
IPV4MAP = 1 << 0 IPV6MAP = 1 << 1 BLACKLISTFILE = 1 << 2 BINARYDATA = 1 << 7 TREEDATA = 1 << 2 STRINGDATA = 1 << 3 SMALLINTDATA = 1 << 4 INTDATA = 1 << 5 FLOATDATA = 1 << 6 ISPROXY ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} else if len == 2 { return false; } let cal = len % 2; if cal >= 1 { return true; } else { return false; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
private void OnTriggerEnter2D(Collider2D collision) {
ise-uiuc/Magicoder-OSS-Instruct-75K
<p>However Mary, who splits her time between the UK and Canada, has called their late mother a 'lovely person', who would often visit her children.   </p> <p>She explained: 'The children spent quite a lot of time with her ... they had wonderful times when they were with her.'  </p> <p><NAME>'s brother <NAME>, 55, la...
ise-uiuc/Magicoder-OSS-Instruct-75K
args::Command::Update(cmd_args) => { let update_request = cmd_args.update_request()?; release_plz_core::update(&update_request)?; } args::Command::ReleasePr(cmd_args) => { let update_request = cmd_args.update.update_request()?; let request = Releas...
ise-uiuc/Magicoder-OSS-Instruct-75K
from Boinc import boinc_project_path class SlimeClustersAssimilator(Assimilator): def __init__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
hostname = common.format_hostname([name.replace('/', '-').strip('-'), 'nfs'], uid) container = docker.run( image=image, detach=True, name=hostname, hostname=hostname, volumes=(path, "/nfsshare", "rw"), privileged=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
maxi = sols[i + 1][j] > sols[i + 2][j] ? 1 : 2; break; } } } maxSum[i] = maxSum[i + maxi]; sols[i] = sols[i + maxi]; continue; } int maxi = 2; if (i + 3 < n) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
oracle = oracle_cls(input, optimization='qm-dlx' if oracle_cls == TTO else 'espresso') grover = Grover(oracle, incremental=True, mct_mode=mct_mode) backend = BasicAer.get_backend(simulator) quantum_instance = QuantumInstance(backend, shots=1000, circuit_caching=False) ret = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
@php $categories = DB::table('type_products')->get(); @endphp <ul class="aside-menu"> @foreach ($categories as $item) <li><a href="{{ route('products') }}?id={{ $item->id }}">{{ $item->name }}</a></li> @endforeach
ise-uiuc/Magicoder-OSS-Instruct-75K
} bool ToWahAudioProcessor::producesMidi() const { #if JucePlugin_ProducesMidiOutput return true; #else return false; #endif }
ise-uiuc/Magicoder-OSS-Instruct-75K
UINT64 lookupMonotonic(const BYTE* pb, UINT nQuantumSize, UINT nIndex); VOID lookupPairMonotonic(const BYTE* pb, UINT nQuantumSize, UINT nIndex, UINT64* pn1, UINT64* pn2); UINT64 lookupPartition(const BYTE* pb, UINT nOuterQuantum, UINT nInnerQuantum, UINT nIndex); VOID l...
ise-uiuc/Magicoder-OSS-Instruct-75K
return render(request, 'index.html', context) def view_vets(request): obj = VetsInfoTable.objects.all() context = { "vets_data": obj }
ise-uiuc/Magicoder-OSS-Instruct-75K
风格:<font class="input">{{$v->style}}</font>
ise-uiuc/Magicoder-OSS-Instruct-75K
let min = Math.min(clamp.r, clamp.g, clamp.b); let delta = max - min; let result = new Hsv({ h: 0, s: max === 0 ? 0 : delta / max, v: max, }); result.h = this._determineHue(min, max, delta, clamp); result.h = Math.round(Math.min(result.h * 60, 360)); result.h += result.h...
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </body> <script type="text/javascript"> window.addEventListener('DOMContentLoaded', (event) => { window.print(); }); </script> </html> <?php /**PATH C:\xampp\htdocs\sufiglobal_web_app\resources\views/admin/pdf/barcode.blade.php ENDPATH**/ ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
@dataclass class ComposingHistoryGraph: uid: str dataset_name: str task_name: str is_finished: bool nodes: list
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->entity = $entity; $this->count = $count; } public function execute() { $currentCount = $this->entity->getCount();
ise-uiuc/Magicoder-OSS-Instruct-75K
} macro_rules! another_hello [ () => ( println!("Hello!");
ise-uiuc/Magicoder-OSS-Instruct-75K
user = current_app.central_userdb.get_user_by_eppn(eppn, raise_on_missing=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Created by hanwe lee on 2021/03/18. //
ise-uiuc/Magicoder-OSS-Instruct-75K
return self._target[item] def __len__(self): return len(self._target) def __delitem__(self, key): del self._target[key] def __str__(self): return str(self._target) def __repr__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import models admin.site.register(models.User, authtools_admin.UserAdmin)
ise-uiuc/Magicoder-OSS-Instruct-75K
:param tree: etree.ElementTree object to write PIs to """ pi_list = [] if self.processing_instructions is not None: for key in self.processing_instructions: value = self.processing_instructions.get(key) pi_item = etree.ProcessingInstruction(ke...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.version = isl_version
ise-uiuc/Magicoder-OSS-Instruct-75K
df["java_version"] = java_version print(df) df.to_csv(r'analysis_output/base_image_version_count_java.csv', index=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
cout<<"Lie absolutely"<<endl; } inputdata>>n; } inputdata.close(); outputdata.close(); return 0;
ise-uiuc/Magicoder-OSS-Instruct-75K
<div id="rightPane"> <div id="out"> <iframe class="result" id="result"></iframe> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
use std::error::Error as StdError;
ise-uiuc/Magicoder-OSS-Instruct-75K
if buchstabe.upper() == zufaelliges_wort[char].upper(): # Einfügen des Buchstaben am korrekten Index gesuchtes_wort.insert(char, buchstabe) # Entfernen des aufgeschobenen Platzhalters gesuchtes_wort.pop(char+1) else: versuche -= 1 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
messageTypes={appData.currentCassette.MessageTypes} setCurrentMessageType={props.setCurrentMessageType} /> </Card> ) : null} </AppDataContext.Consumer>
ise-uiuc/Magicoder-OSS-Instruct-75K
* Tests the implementation of {@link ShortIdsFactory#setIdAsUsed(Short)}. */
ise-uiuc/Magicoder-OSS-Instruct-75K
kB = 1024 mB = 1024*kB class _CRG(Module): def __init__(self, platform, sys_clk_freq): self.rst = Signal() self.clock_domains.cd_sys = ClockDomain()
ise-uiuc/Magicoder-OSS-Instruct-75K
setup( name='distributed_cox',
ise-uiuc/Magicoder-OSS-Instruct-75K
env.user = "admin" env.host_string = "localghost" env.port = "2222" cxn = Connection.from_v1(env) config = cxn.config assert config.run.pty is True assert config.gateway == "some-gateway" assert config.connect_kwargs.password == "<PASSWORD>" assert config.sudo.password == "<PASSWORD>...
ise-uiuc/Magicoder-OSS-Instruct-75K
use Illuminate\Http\Request; class FeedbackController extends Controller { /** * Store a newly created resource in storage. *
ise-uiuc/Magicoder-OSS-Instruct-75K
return features; }
ise-uiuc/Magicoder-OSS-Instruct-75K
help="Gap in seconds (or ticks) between glitches") parser.add_argument('-m', '--mhz', required=False, type=int, default=100, dest="mhz", metavar="<mhz>", help="Speed in MHz of FPG...
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/app/app.module.ts<gh_stars>0 import { NgModule, OnInit } from '@angular/core'; import { CommonModule,APP_BASE_HREF } from "@angular/common"; import { LocationStrategy, HashLocationStrategy } from "@angular/common"; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from...
ise-uiuc/Magicoder-OSS-Instruct-75K
component.add_global_macros('AOS_FOTA')
ise-uiuc/Magicoder-OSS-Instruct-75K
let minTopConstraint = control.textView.top.constraint(equalTo: paddingDummyView.top, constant: Constants.TextView.top) minTopConstraint.priority = .defaultHigh let minBottomConstraint = control.lineV...
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>helloworld/translate/models_test.py<gh_stars>1-10 # Copyright 2021 Pants project contributors. # Licensed under the Apache License, Version 2.0 (see LICENSE). import pytest
ise-uiuc/Magicoder-OSS-Instruct-75K
} extension CInt{ var int:Int {return Int(self)} var float:Float {return Float(self)} var double:Double {return Double(self)} } extension Float{ var int:Int {return Int(self)} var cfloat:CFloat {return CFloat(self)} var float:Float {return Float(self)} var double:Double {return Double(self)}...
ise-uiuc/Magicoder-OSS-Instruct-75K
def index(): """Summary - Default login screen used to capture user login details and authenticate user session """ session['regionaltoken'] = None if request.headers.get('x-forwarded-proto') != 'https': secure_url=request.url.replace("http://","https://") return redirect(secure_url...
ise-uiuc/Magicoder-OSS-Instruct-75K
The 'tangos_writer' command line is deprecated in favour of 'tangos write'. 'tangos_writer' may be removed in future versions. """)
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": print('Running on http://127.0.0.1:' + str(PORT)) app.run('0.0.0.0', PORT)
ise-uiuc/Magicoder-OSS-Instruct-75K
}); }); $('#blogCarousel').carousel({ interval: 5000 }); var marker; function initMap() { var lat = parseFloat(document.getElementById('latitude').value); var lng = parseFloat(document.getElementById('longitude').value);
ise-uiuc/Magicoder-OSS-Instruct-75K
 /// <summary> /// El orden en el que se encuentran en el enum, debe ser el mismo /// que corresponde en el prefab de pickup generico, dentro del hijo /// "asset container" /// /// 0 => GO "DollarBill" /// 1 => GO "Medkit" /// ... /// </summary> public enum PickupType {
ise-uiuc/Magicoder-OSS-Instruct-75K
} pub fn pointer_to(self) -> Self { Type { kind: TypeKind::TyPtr, ptr_to: Some(Box::new(self)), size: 8, ..Default::default() } } pub fn array_of(self, n: usize) -> Self { Self {
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import common argparser = argparse.ArgumentParser(add_help=False) graph_group = argparser.add_argument_group('graphtool arguments') graph_group.add_argument('--graph-jar', metavar='<graphtool-jar>', action='store',default=None, dest='graph_jar', help='Path to p...
ise-uiuc/Magicoder-OSS-Instruct-75K
iren.Initialize() renWin.Render() iren.Start() def loadStl(fname): """Load the given STL file, and return a vtkPolyData object for it.""" reader = vtk.vtkSTLReader() reader.SetFileName(fname) reader.Update() polydata = reader.GetOutput() return polydata def polyDataToActor(polydata...
ise-uiuc/Magicoder-OSS-Instruct-75K
package com.example.demo.repository;
ise-uiuc/Magicoder-OSS-Instruct-75K
// EnvironmentConfiguration.swift // GitHubSearch.iOS // // Created by Nikolay Dimitrov on 27.09.21. // import Foundation protocol EnvironmentConfiguration { var coreAPI: URL { get } } struct ProductionEnvironmentConfiguration: EnvironmentConfiguration {
ise-uiuc/Magicoder-OSS-Instruct-75K
def recalibrate_spectrum(mzs, r): est_error = generate_data(mzs, r) mzs = mzs + 1e-6 * est_error * mzs return mzs
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public boolean apply(Game game, Ability source) { Permanent permanent = source.getSourcePermanentIfItStillExists(game); return permanent != null && permanent.wasControlledFromStartOfControllerTurn(); } @Override public String toString() { return "you've controlled ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return content; } @Override
ise-uiuc/Magicoder-OSS-Instruct-75K
import { EJurisdiction } from "../../../../lib/api/eto/EtoProductsApi.interfaces"; import { assertDashboard } from "../../../utils/assertions"; import { etoFixtureAddressByName } from "../../../utils/index";
ise-uiuc/Magicoder-OSS-Instruct-75K
public MyHolder(View itemView) { super(itemView); mImageView = V.f(itemView, R.id.image); itemshell = V.f(itemView, R.id.itemshell); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K