seed
stringlengths
1
14k
source
stringclasses
2 values
import os os.system('bash inference.sh')
ise-uiuc/Magicoder-OSS-Instruct-75K
ERROR: type should be string, got " \n https://code.ros.org/trac/opencv/browser/trunk/opencv/samples/python/fback.py?rev=2271\n\n Copyright (C) 2014 <NAME>\n\n This program is free software: you can redistribute it and/or modify\n"
ise-uiuc/Magicoder-OSS-Instruct-75K
code= int(code_tag[0], 16)
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
), migrations.CreateModel( name='Abuse', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('abuse_type', models.CharField(choices=[('ABUSE', 'Abuse'), ('INAPPROPRIATE', 'Inappropriate'),...
ise-uiuc/Magicoder-OSS-Instruct-75K
blur = cv2.GaussianBlur(gray,(5,5),0) canny = cv2.Canny(blur, 50, 150) return canny
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->dropColumn('{{document}}','city_of_birth'); $this->dropColumn('{{document}}','date_of_birth'); } /* // Use up()/down() to run migration code without a transaction.
ise-uiuc/Magicoder-OSS-Instruct-75K
if valueType is int: valueWidget = QtGui.QSpinBox() valueWidget.setMinimum(min) valueWidget.setMaximum(max) elif valueType is float: valueWidget = QtGui.QDoubleSpinBox() valueWidget.setMinimum(min) valueWidget.setMaximum(max) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
test(@GetUser() user:User){ console.log(user);
ise-uiuc/Magicoder-OSS-Instruct-75K
kubebuilder create webhook --group apps --version ${version} --kind ${kind} --defaulting --programmatic-validation --conversion
ise-uiuc/Magicoder-OSS-Instruct-75K
return cm_df
ise-uiuc/Magicoder-OSS-Instruct-75K
squad.sgbd.idsgbd = self.bd.salvar(squad.sgbd) return self.dao.salvar(squad) def alterar(self, squad:Squad): self.dao.alterar(squad) def deletar(self, id): self.dao.deletar(id)
ise-uiuc/Magicoder-OSS-Instruct-75K
<Task key={index} task={item.task}
ise-uiuc/Magicoder-OSS-Instruct-75K
insert(node, 2) insert(node, 1) insert(node, 5) insert(node, 4) insert(node, 6) insert(node, 7)
ise-uiuc/Magicoder-OSS-Instruct-75K
myfruits.remove('Guava')
ise-uiuc/Magicoder-OSS-Instruct-75K
ret = ", ".join(changedprefs) return ret
ise-uiuc/Magicoder-OSS-Instruct-75K
public class Beta { public static void main(String[] argv) { sayhi(); } public static void sayhi() { System.err.println("Hi"); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.AddField( model_name='labourer', name='allproj', field=models.ManyToManyField(blank=True, to='main.Listing'), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
public String getIdentifier() { return identifier; }
ise-uiuc/Magicoder-OSS-Instruct-75K
export { default } from './positions-posts';
ise-uiuc/Magicoder-OSS-Instruct-75K
private TimeShiftContext(final int seconds, final URI vaultBaseUri) { this.seconds = seconds; this.vaultBaseUri = vaultBaseUri; } public static TimeShiftContextBuilder builder() { return new TimeShiftContextBuilder(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
response_text = cp_request(manifest_url['get_url'], headers=headers) logger.debug(response_text) po_number = response_text.split('<po-number>')[1].split('<')[0] pdf_url = response_text.split('<link rel="artifact" href="')[...
ise-uiuc/Magicoder-OSS-Instruct-75K
'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5,
ise-uiuc/Magicoder-OSS-Instruct-75K
std::vector<int>* indices_ = new std::vector<int>(); for (size_t i = 0; i < flat_projected->points.size(); i++) { indices_->push_back(i); } double projection_angle_thresh_ = cos(0.174532925); int dimension = 2; bool xy_proj_safe = true;
ise-uiuc/Magicoder-OSS-Instruct-75K
self.add_stream_logger() if file_handler: self.add_file_logger(folder=folder, file=filename) return self.logger
ise-uiuc/Magicoder-OSS-Instruct-75K
username: typing.Optional[str] = None) -> Model: prepared_payload = filter_payload(locals()) return manual_cast(await self._insert(**prepared_payload)) async def delete_user(self, user_id: int) -> None:
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Parse an error message. """ return { MESSAGE: error_message, ERROR: error } def check_keys_in_dict(keys, map): """ Check if all keys are present in a dictionary. """ return all([key in map for key in keys]) def compare_with_minimum(value):
ise-uiuc/Magicoder-OSS-Instruct-75K
Token::MapEnd, ], );
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright © 2019 Stephen Cao. All rights reserved. // import Foundation extension SCNetworkManager{ func fetchBreedData(completion:@escaping (_ data: Data?, _ isSuccess: Bool)->()){ request(urlString: InfoCommon.breedUrl, method: .get, params: nil) { (data, _, isSuccess, _, _) in completio...
ise-uiuc/Magicoder-OSS-Instruct-75K
public enum ShapeSpawnerViewTouchDownEventAnimations { case changeColors(fillColor: UIColor, borderColor: UIColor), setRandomSpawnDuration(duration: RandomNumberDouble) }
ise-uiuc/Magicoder-OSS-Instruct-75K
export declare function writeImage(file: FileSystemNode, args: ISharpGatsbyImageArgs, pathPrefix: string, reporter: Reporter, cache: GatsbyCache, filename: string): Promise<void>;
ise-uiuc/Magicoder-OSS-Instruct-75K
"and check your internet connectivity.\n" ) return {"cause": cause}
ise-uiuc/Magicoder-OSS-Instruct-75K
set -euo pipefail [ -n "${DEBUG:-}" ] && set -x srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1090 . "$srcdir/lib/spotify.sh" # shellcheck disable=SC2034,SC2154 usage_description="
ise-uiuc/Magicoder-OSS-Instruct-75K
): if not output_file: exclude = "" if exclude_samples: excluded_names = [ os.path.splitext(os.path.basename(x))[0].replace( "test_input_sampled_", "" ) for x in exclude_samples ] exclude = f"_exc...
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return new ShardingRepository(GetRepository()); } /// <summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
../../../corrade/src/acme/acme.py MagnumMath.hpp --output ../../../magnum-singles
ise-uiuc/Magicoder-OSS-Instruct-75K
cph.fit(df_train, duration_col = 'death age', event_col = 'status', weights_col = 'weight') print('cph trained') #####test X_test = clean_test_data(data=args.dataset) X_test_imputed = imp.transform(X_test) print('test data ready') df_test = pd.DataFrame(X_test_imputed, columns = ['age'] + deficits + medications + b...
ise-uiuc/Magicoder-OSS-Instruct-75K
return Redirect::back()->withErrors($validation)->withInput(); } $merchant_bank_accounts = new MerchantBankAccounts(); $merchant_bank_accounts->name = $request->name; $merchant_bank_accounts->account_id = $request->account_id; $merchant_bank_accounts->merchant_id ...
ise-uiuc/Magicoder-OSS-Instruct-75K
TOTAL_DATA = 17000 train_data = x_shuffled[:TRAIN_DATA]
ise-uiuc/Magicoder-OSS-Instruct-75K
import CGAT.Experiment as E import alignlib_lite import CGAT.FastaIterator as FastaIterator
ise-uiuc/Magicoder-OSS-Instruct-75K
private Guid id; public Guid Id { get { return id; } private set { setIfChanged(ref id, value, "Id", "IdStr"); } } public string IdStr { get { return $"{Id.ToString().Substring(0, 6)} {Name}"; } } private string name; public string Name { get { return name; } private set { setI...
ise-uiuc/Magicoder-OSS-Instruct-75K
for number in 1..8 { initialize_block(number, canon_chain.best_hash()); let header = seal_header(System::finalize(), author_a); canon_chain.push(header); } // initialize so system context is set up correctly. initialize_block(8, canon_chain.best_hash()); // 2 of the same uncle at once
ise-uiuc/Magicoder-OSS-Instruct-75K
def replace_members(json_in): if not isinstance(json_in, dict): return global reps_index for key,value in json_in.items(): if isinstance(value, dict): has_sub_map = has_sub_map_items(value) if not has_sub_map: as_str = json.dumps(value, ensure_ascii=Fa...
ise-uiuc/Magicoder-OSS-Instruct-75K
browser.quit()
ise-uiuc/Magicoder-OSS-Instruct-75K
// CameraViewController+ARView.swift // CloudChaser // // Created by Zen on 4/23/18. // Copyright © 2018 Thibault Wittemberg. All rights reserved. // import Foundation import SceneKit import ARKit
ise-uiuc/Magicoder-OSS-Instruct-75K
robot = rosebot.RoseBot() robot.drive_system.display_camera_data() robot.drive_system.spin_counterclockwise_until_sees_object(100, 500) time.sleep(5) robot.drive_system.spin_clockwise_until_sees_object(100, 500)
ise-uiuc/Magicoder-OSS-Instruct-75K
assertThat(TEST_LOGGER.takeLoggedMessages()).isEmpty();
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_distinguished_cand(c, r, l, non_manip_rankmaps, strength_order): ''' get candidates that can be stronger than c by adding r manipulative votes ordered by strength :param c: dropped candidate index (int) :param r: number of manipulators (int) :param l: parameter of l-bloc rule (int) :param non_manip_rankm...
ise-uiuc/Magicoder-OSS-Instruct-75K
News </Typography> <Button color="inherit">Login</Button> </Toolbar> </AppBar> </div> ); }; export default Navigation;
ise-uiuc/Magicoder-OSS-Instruct-75K
use DateTime;
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public init(@noescape resolvers: (fulfill: (T) -> Void, reject: (ErrorType) -> Void) throws -> Void) { var resolve: ((Resolution<T>) -> Void)! state = UnsealedState(resolver: &resolve) do { try resolvers(fulfill: { resolve(.Fulfilled($0)) }, reject: { error in ...
ise-uiuc/Magicoder-OSS-Instruct-75K
// Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // @_implementationOnly import CoreFoundation // In swift-corelibs-foundation, key-value coding is not avai...
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import sys import shutil
ise-uiuc/Magicoder-OSS-Instruct-75K
words.erase(end_unique, words.end()); } int main() { vector<string> story = { "the", "quick", "red", "fox", "jump", "over", "the", "slow", "red", "turtle" }; elimDups(story); for(const auto &s : story) cout << s << " "; cout << endl; // we cannot put isShorter into sort, or the first ord...
ise-uiuc/Magicoder-OSS-Instruct-75K
Args: host_id (str): From who the qubit comes from. Returns: True, if the counter could be increased, False if not. """ if not self._check_memory_limits(host_id):
ise-uiuc/Magicoder-OSS-Instruct-75K
return render_template('deletecategoryitem.html', category=categoryItem.name, item=itemToDelete.name) if __name__ == '__main__': app.secret_key = 'N10kuN!'
ise-uiuc/Magicoder-OSS-Instruct-75K
def protocol_reset(self): self.response_attach_head = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
} } let a=""
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod slotted; pub mod slotted_overflow; pub mod stack;
ise-uiuc/Magicoder-OSS-Instruct-75K
points.insert('}', 1197); points.insert('>', 25137); let mut score = 0; for l in lines {
ise-uiuc/Magicoder-OSS-Instruct-75K
subsample=args.subsample, objective='binary:logistic', n_estimators=args.n_estimators, reg_alpha=args.reg_alpha, max_depth=args.max_depth, g...
ise-uiuc/Magicoder-OSS-Instruct-75K
// const one = 1; // const two = 2; // const three = one + two; // function getTotal(one : number, two : number) { // return one + two; // } // const total = getTotal(1, 2);
ise-uiuc/Magicoder-OSS-Instruct-75K
def last_commit_date(file): p = subprocess.run(f'git log -1 --format=%ct {file}', shell=True, capture_output=True) return p.stdout.decode().strip() # There are cases (e.g. apimangement) where multiple versions are updated in the same commit.
ise-uiuc/Magicoder-OSS-Instruct-75K
tk.Frame.__init__(self, parent) self.parent = parent self.display_scores = display_scores self.grid_rowconfigure(0, weight=1)
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/Core/Interfaces/MakesDto.php <?php namespace Rosie\Core\Interfaces; interface MakesDto { public function makeDto();
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>CoffeePoweredComputers/489-data-structures Oct 24 : Oct 25 : **Lecture**{: .label .label-light-blue} X Oct 26 : Oct 27 : **Lecture** Oct 28
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.util.ArrayList; import java.util.List; public class LoggableSearchChain { protected List<TeiDocument> results = null;
ise-uiuc/Magicoder-OSS-Instruct-75K
""" The deployment operation can also be used for updation since we are using AWS Sam cli for managing deployments.
ise-uiuc/Magicoder-OSS-Instruct-75K
from sklearn.ensemble import RandomForestClassifier from sklearn.tree import DecisionTreeClassifier import random from sklearn.metrics import classification_report as cr from sklearn import svm, preprocessing import matplotlib.pyplot as plt from itertools import product
ise-uiuc/Magicoder-OSS-Instruct-75K
PATH_DIRS+=("$HOME/.pyenv/bin") # Poetry PATH_DIRS+=("$HOME/.poetry/bin")
ise-uiuc/Magicoder-OSS-Instruct-75K
sns.lineplot(x = x_col, y = spec_thresh_col, hue = hue_col, palette = use_palette, hue_order = use_hue_order, data = pred, ci = ci ) if cumsum_col is not None: for i,q in enumerate...
ise-uiuc/Magicoder-OSS-Instruct-75K
private bool CanEditCompany(ReadOnlyCompany parameter) { if (parameter == null) { return false; } return true; } public DelegateCommand<object> AddCompanyCommand { get; private set; } private void AddCompany(object parameter) { _eventAggregator.GetEvent<Ad...
ise-uiuc/Magicoder-OSS-Instruct-75K
which simply returns the current time from `datetime.now()` instead of retrieving it using the actual `now()` function of PostgreSQL. """ freezers = [] orig_call = _FunctionGenerator.__call__ def FunctionGenerator_call(self, *args, **kwargs): if self._FunctionGenerator__names == ['now']...
ise-uiuc/Magicoder-OSS-Instruct-75K
BackgroundStrategy bg, bool rescaleVector, StreamT stream) { MK_CHECK_VFIELD_BACKGROUND(bg); Opers::Resample(a_o, a_i, bg, rescaleVector, stream); } // template instantiations #include "VFOpers_inst.cxx"
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Start the timer initially or resume after pause""" raise NotImplementedError() def pause(self): """Pause the timer""" raise NotImplementedError() def toggle_pause(self): """Toggle pause state""" raise NotImplementedError() def stop(self) -> Tu...
ise-uiuc/Magicoder-OSS-Instruct-75K
import unittest import numpy as np import torch from elasticai.creator.brevitas.brevitas_model_comparison import ( BrevitasModelComparisonTestCase, ) from elasticai.creator.brevitas.brevitas_representation import BrevitasRepresentation from elasticai.creator.systemTests.brevitas_representation.models_definition i...
ise-uiuc/Magicoder-OSS-Instruct-75K
id: count + 1, type: "tkt", createdAt: Date.now(), open: true, topic: options.topic || "None" }; const dbentry: Tickets = new Tickets(data); const ticket: Ticket = new Ticket(this.guild, data); await dbentry.save(); const mentionroles: string[] = th...
ise-uiuc/Magicoder-OSS-Instruct-75K
// self incorrectly due to mandatory inlining getting the wrong begin lifetime // block (which in this case is the entry block). let model = Model() model.selectedContact = nil }
ise-uiuc/Magicoder-OSS-Instruct-75K
${({ theme }) => css` font-family: ${theme.FONTS.TEXT}; color: ${theme.COLORS.SECONDARY_900};
ise-uiuc/Magicoder-OSS-Instruct-75K
exit 1 fi which=$(basename "$1") mkdir "$1.out" afl-cmin -i "$1" -o "$1.out" -m none "./src/test/fuzz/fuzz-${which}"
ise-uiuc/Magicoder-OSS-Instruct-75K
if type == dict and default == self.__class__.UNSPECIFIED_DEFAULT: default = dict() elif type == float and default == self.__class__.UNSPECIFIED_DEFAULT: default = 0.0 elif type == int and default == self.__class__.UNSPECIFIED_DEFAULT: default = 0 elif...
ise-uiuc/Magicoder-OSS-Instruct-75K
return _assets.Where(a => a.AssetType == AssetType.Stylesheet); } } #endregion } }
ise-uiuc/Magicoder-OSS-Instruct-75K
})* } } benches! { p00024, 24; p00053, 53; p00100, 100; p01000, 1000; p10000, 10000;
ise-uiuc/Magicoder-OSS-Instruct-75K
if axis == .horizontal { stackView.heightAnchor.constraint(greaterThanOrEqualToConstant: 32.0).isActive = true } } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App\Carnovo\Cars\Infrastructure\Persistence\Doctrine\Entity;
ise-uiuc/Magicoder-OSS-Instruct-75K
print("--------------------------------------") else: print(f"+{GREEN_T} Site atualizado vamos começar a coletar os dados. {RESET}+") # Faz checagem se a conexao com o banco de dados foi estabelecida if __conectdb__.verifica_conexao() == False: return print( ...
ise-uiuc/Magicoder-OSS-Instruct-75K
private final List<? extends Order> hiddenOrders; /** * Constructor * * @param openOrders The list of open orders */ public OpenOrders(List<LimitOrder> openOrders) { this.openOrders = openOrders;
ise-uiuc/Magicoder-OSS-Instruct-75K
declare const sendError: (message?: string) => never;
ise-uiuc/Magicoder-OSS-Instruct-75K
(it's still underfitting at that point, though). ''' from __future__ import print_function import keras from keras.datasets import cifar10 from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D batch_size = 32 num_classes = 10 epo...
ise-uiuc/Magicoder-OSS-Instruct-75K
} OntoLex(msg : String) { description(msg) } Other(err : String) { description(err) } } } #[derive(Clone,StateData)] pub struct EDSState {
ise-uiuc/Magicoder-OSS-Instruct-75K
Compute idxst(idct(x)) @param x batch tensor, the 2D part is MxN @param expk_0 with length M, 2*exp(-1j*pi*k/(2M)) @param expk_1 with length N, 2*exp(-1j*pi*k/(2N)) ''' return idxt(idct_N(x, expk_1).transpose_(dim0=-2, dim1=-1), 1, expk_0).transpose_(dim0=-2, dim1=-1) def idct_idxst(x, expk_0=...
ise-uiuc/Magicoder-OSS-Instruct-75K
&& [ "$TOTAL" -eq "$SRC_A" ] && echo "匹配规则:添加原文 ${SRC_A} 篇" } # 申领翻译:只能申领一篇原文 rule_translation_requested() { [ "$SRC_M" -eq 1 ] \ && check_category SRC M \ && [ "$TOTAL" -eq 1 ] && echo "匹配规则:申领翻译" } # 提交译文:只能提交一篇译文
ise-uiuc/Magicoder-OSS-Instruct-75K
logger.debug('Initializing RpiGPIO module') RPiGPIO.setmode(RPiGPIO.BOARD) GPIO._initialized = True def set(self,value): if self._inout == GPIO.IN: logger.error('Can\'t set input GPIO {}'.format(self._name)) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
p_Y = wavefront.get_mesh_y() det_X = p_X det_Y = p_Y amplitude_propagated = numpy.zeros_like(amplitude,dtype='complex') wavenumber = 2 * numpy.pi / wavelength for i in range(det_x.size): for j in range(det_y.size): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
latexmk -C document.tex for i in $(seq -w 1 $num); do echo "$i" latexmk -quiet -f --pdf document.tex fname="$i.pdf" fnames=("${fnames[@]}" "$fname") mv document.pdf "$fname" done latexmk -C document.tex echo "Merging files into out.pdf" #pdfjoin "${fnames[@]}" -o out.pdf pdfjam --nup 2x1 --landsc...
ise-uiuc/Magicoder-OSS-Instruct-75K
l = os.path.join else: l = lambda x, y: y res = [l(folder, i) for i in os.listdir(folder) if os.path.isfile(os.path.join(folder, i)) and (prefix is None or i.startswith(prefix)) and (suffix is None or i.endswith(suffix))] if sort: res.sort()
ise-uiuc/Magicoder-OSS-Instruct-75K
from ro_py.utilities.url import url endpoint = url("economy") class Currency: """ Represents currency data. """ def __init__(self, currency_data): self.robux = currency_data["robux"]
ise-uiuc/Magicoder-OSS-Instruct-75K
import React, { useRef } from 'react'; import { AddShoppingCart as EmptyBag } from '@material-ui/icons/'; import { ShoppingBagContext } from '../../context/ShoppingBag'; import { withRouter } from 'react-router-dom'; const useStyles = makeStyles(theme => ({ bagContainer: { minWidth: '200px', display: 'flex',...
ise-uiuc/Magicoder-OSS-Instruct-75K
}; } } // namespace chainer_compiler
ise-uiuc/Magicoder-OSS-Instruct-75K
n = int(input()) continents = {} for i in range(n): str = input().split(' ') if str[0] in continents: if str[1] in continents[str[0]]: continents[str[0]][str[1]].append(str[2]) else: continents[str[0]][str[1]] = [str[2]] else: continents[str[0]] = { ...
ise-uiuc/Magicoder-OSS-Instruct-75K