seed
stringlengths
1
14k
source
stringclasses
2 values
if __name__ == '__main__': bot.run(settings.TOKEN)
ise-uiuc/Magicoder-OSS-Instruct-75K
* Unique symbol to be used as the value of an entry in a value * visitor/mapper implementation to indicate that the entry is explicitly * not handled.
ise-uiuc/Magicoder-OSS-Instruct-75K
match (cell, live_neighbors) { (true, x) if x < 2 => false, (true, 2) | (true, 3) => true, (true, x) if x > 3 => false, (false, 3) => true, (otherwise, _) => otherwise, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def xor_reverse(iterable):
ise-uiuc/Magicoder-OSS-Instruct-75K
# single source of truth for package version, # see https://packaging.python.org/en/latest/single_source_version/ __version__ = "0.6.0" # app name to send as part of SDK requests app_name = "DLHub CLI v{}".format(__version__)
ise-uiuc/Magicoder-OSS-Instruct-75K
self = .monday case "tuesday": self = .tuesday case "wednesday": self = .wednesday case "thursday": self = .thursday case "friday": self = .friday
ise-uiuc/Magicoder-OSS-Instruct-75K
self.logger.debug('Beginning to poll for operation') operation_self_link = operation['selfLink'] start_time = time.time() while operation_status != 'DONE' and time.time() - start_time < max_timeout_mins * 60: self.logger.debug(f'Sleeping for {self.operation_polling_time_sleep...
ise-uiuc/Magicoder-OSS-Instruct-75K
заканчивается, результат игры используется для присвоения значений каждому примеру в поезде Примеры. Он использует temp = 1, если episodeStep <tempThresholdStep, и после этого использует temp = 0. Возврат: trainExamples: список примеров формы (canonicalBoard, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
exludes = [".png", ".jpg"] for ex in exludes:
ise-uiuc/Magicoder-OSS-Instruct-75K
def setUp(self): self.y = np.zeros((4, 2))
ise-uiuc/Magicoder-OSS-Instruct-75K
protected async execute(): Promise<void> { const organizationId = await this.parseOrganizationFlag(); const node = await this.parseNodeFlag(organizationId); const oldName = node.name;
ise-uiuc/Magicoder-OSS-Instruct-75K
interface IAclProvider { List<IPAddress> GetWhitelisted(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace flightlib { Command::Command() { } Command::Command(const Scalar t, const Scalar thrust, const Vector<3>& omega) : t(t), collective_thrust(thrust), omega(omega) { } Command::Command(const Scalar t, const Vector<4>& thrusts) : t(t), thrusts(thrusts) { } bool Command::valid() const { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
name = "bgp" verbose_name = "BGP"
ise-uiuc/Magicoder-OSS-Instruct-75K
from urllib import request
ise-uiuc/Magicoder-OSS-Instruct-75K
libtcod.console_clear(panel) y = 1 for message in message_log.messages: libtcod.console_set_default_foreground(panel, message.color) libtcod.console_print_ex(panel, message_log.x, y, libtcod.BKGND_NONE, libtcod.LEFT, message.text) y += 1 render_bar(panel, 1, 1, bar_widt...
ise-uiuc/Magicoder-OSS-Instruct-75K
return color def draw_lwpolyline(img, entity, color, mask): polyline = [] a = np.array(entity.lwpoints.values).astype(int) while len(a) > 0: polyline.append((a[0], a[1])) a = a[5:]
ise-uiuc/Magicoder-OSS-Instruct-75K
Changes how long it takes to move 1 degree per millisecond. """ if speed <= 0: raise ValueError("speed must be greater than 0.") rList = [12,speed] self.__write(bytes(rList)) def set_pins_batched(self, values = dict): for pin in values: self.s...
ise-uiuc/Magicoder-OSS-Instruct-75K
interface Props {
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Project VanadiumCast */
ise-uiuc/Magicoder-OSS-Instruct-75K
# GPU export THEANO_FLAGS='mode=FAST_RUN,device=gpu0,floatX=float32,optimizer_including=cudnn,warn_float64=warn,lib.cnmem=0.9' # CPU # export THEANO_FLAGS='mode=FAST_RUN,device=cpu,floatX=float32' python -u ./train.py > log.txt 2>&1 &
ise-uiuc/Magicoder-OSS-Instruct-75K
template <typename Frame> struct get_function_annotation<pika::detail::dataflow_finalization<Frame>> { using function_type = typename Frame::function_type; // static constexpr char const* call( pika::detail::dataflow_finalization<Frame> const& f) noexcept { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>mecroby/test_pi_learning # -*- coding: utf-8 -*- """ Created on Sun Oct 15 20:33:49 2017 @author: roby """ #dato un numero n, restituisce le prime n parole più usate import sys from collections import Counter try: num_words=int(sys.argv[1]) except:
ise-uiuc/Magicoder-OSS-Instruct-75K
use ibuilder::*; #[derive(IBuilder)] struct Foo(#[ibuilder(hidden)] i64);
ise-uiuc/Magicoder-OSS-Instruct-75K
Cp1500 = thermo.Cpdata.value_si[6]/4.184 # cal/mol/K # check results table again there's no # same entry res_query = {"aug_inchi":aug_inchi, "level_of_theory":model_chemistry} res_entries = list(results_table.find(res_query)) if len(res_entries) > 0: continue # do the insertion insert_entr...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "plug/plugid_t.hpp" #include "plug/pluginsets_types.hpp" #include "stl/map.hpp" #include "stl/string.hpp" namespace plug { class PluginMgr; } namespace plug { class PluginSettings { public: PluginSettings(const PluginMgr& plug_mgr);
ise-uiuc/Magicoder-OSS-Instruct-75K
'payer': 'Another Last, First Last', 'iban': 'DE111111111111111111111', 'bic': 'ikswez2020', 'id': 'PARTY-R-1, PARTY-R-2', 'amount': Decimal('20.00'), }], key=_row_key_func)
ise-uiuc/Magicoder-OSS-Instruct-75K
pushd ActivityLauncherApp/src/main/res rm -fr values-sv mv values-sv-rSE values-sv rm -fr values-pt mv values-pt-rPT values-pt rm -fr values-la mv values-la-rLA values-la rm -fr values-zh mv values-zh-rTW values-zh rm -fr values-es
ise-uiuc/Magicoder-OSS-Instruct-75K
:return:
ise-uiuc/Magicoder-OSS-Instruct-75K
assert!(is_valid_word_chars(&"tootal".char_count(), "too")); assert!(is_valid_word_chars(&"tootal".char_count(), "total")); assert!(is_valid_word_chars(&"tootal".char_count(), "too")); }
ise-uiuc/Magicoder-OSS-Instruct-75K
| Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great!
ise-uiuc/Magicoder-OSS-Instruct-75K
CATALOG_HOST: str CATALOG_PORT: int CATALOG_DB: str CATALOG_SECRET: str APP_DIR: Path
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="error-desc"> <div><br/> <!-- <a class=" login-detail-panel-button btn" href="http://vultus.de/"> --> <a href="{{ url('operator_registrasi/dashboard') }}" class="btn btn-primary"><span class="glyphicon glyphicon-home"></span> Go back to Homepage</a> </div>...
ise-uiuc/Magicoder-OSS-Instruct-75K
PUBLIC SECTION. INTERFACES: zif_bar. ENDCLASS. CLASS zcl_foo IMPLEMENTATION. METHOD zif_bar~foobar. ENDMETHOD. ENDCLASS.`; const issues = await runMulti([ {filename: "zcl_foo.clas.abap", contents: clas}, {filename: "zif_bar.intf.abap", contents: intf}]...
ise-uiuc/Magicoder-OSS-Instruct-75K
Context ctx = InstrumentationRegistry.getContext(); SQLiteCompatibilityWalFlags.init("compatibility_wal_supported=true,wal_syncmode=NORMAL"); mDatabase = SQLiteDatabase .openOrCreateDatabase(ctx.getDatabasePath("SQLiteCompatibilityWalFlagsTest"), null);
ise-uiuc/Magicoder-OSS-Instruct-75K
auto indexMem = bgfx::makeRef(_index.data(), static_cast<uint32_t>(_index.size() * sizeof(uint32_t))); _indexBuffer = bgfx::createIndexBuffer(indexMem, BGFX_BUFFER_INDEX32); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
$.ajax( { url:"<?php echo base_url(); ?>security/delete_visitor", type:"Post", data:{delv:id}, success:function() { bootbox.alert("Deleted successfully");
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * A constant initialized to the ZX plane passing through the origin, with normal in positive Y. * * @type {Plane} * @constant */ Plane.ORIGIN_ZX_PLANE = freezeObject(new Plane(Cartesian3.UNIT_Y, 0.0));*/ }
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np from functools import partial from keras.models import Model from keras.regularizers import L1L2 from keras.optimizers import Adam, RMSprop, SGD from keras.layers.normalization import BatchNormalization from keras.layers import Dense, Activation, Dropout, Input, Reshape, concatenate, dot, Lambda, C...
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f'Running {model_name} : {specific_params}') # remove any logs hanging around (so we only have to look for one) delete_logs()
ise-uiuc/Magicoder-OSS-Instruct-75K
""" rospy.init_node(server_name) start_get_action(algo, verbose=verbose) # Pretrain on dataset if requested
ise-uiuc/Magicoder-OSS-Instruct-75K
############################################################################## # Disable apparmour service on the host. Anthos clusters on bare metal does # not support apparmor ############################################################################## function __disable_apparmour__ () { echo "Stopping apparmor s...
ise-uiuc/Magicoder-OSS-Instruct-75K
@app.route('/sdf2SimilarityMap/<ctab>', method=['OPTIONS', 'GET'], name="sdf2SimilarityMap") def sdf2SimilarityMap(ctab): """ Generates similarity map, which is a way to visualize the atomic contributions to the similarity between molecules. This method requires SDF containing *exactly two mols*
ise-uiuc/Magicoder-OSS-Instruct-75K
let byTypeMessage = messages.first(where: { $0.addressPattern.fullPath.contains("byType") == true }), let number = indexMessage.number(), let double = Double(number), let uuid = indexMessage.uuid(), let label = indexMessage.arguments[2] as? String, l...
ise-uiuc/Magicoder-OSS-Instruct-75K
init(multiplier: Double = 0.3) { self.multiplier = multiplier } func reconnectAfter(attempt: Int) -> TimeInterval? { multiplier * exp(Double(attempt)) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_initialize_physical_parameters(): """ Checks function SolveDiffusion2D.initialize_domain """ solver = SolveDiffusion2D() def test_set_initial_condition(): """ Checks function SolveDiffusion2D.get_initial_function """
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="sidebar-item"><a href="{{ url('world/awards') }}" class="{{ set_active('world/awards*') }}">All Awards</a></div> <div class="sidebar-section-header">Recipes</div> <div class="sidebar-item"><a href="{{ url('world/recipes') }}" class="{{ set_active('world/recipes*') }}">All Recipes</a>...
ise-uiuc/Magicoder-OSS-Instruct-75K
const revision = new Revision(); revision.stars = stars; revision.title = title; revision.body = body; revision.readingStatus = readingStatus; return { revision, }; }
ise-uiuc/Magicoder-OSS-Instruct-75K
#DISQUS_SITENAME = "" #GOOGLE_ANALYTICS = "" PLUGINS += ( 'image_optimizer', 'gzip_cache', )
ise-uiuc/Magicoder-OSS-Instruct-75K
Dimension((640, 480)), // Map the window Map, // Update the window Update ]); loop { // Await the event let event = connect.event(&session).await.unwrap(); println!("{:?}", event); match eve...
ise-uiuc/Magicoder-OSS-Instruct-75K
[<img height="30" src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white" />][github] [<img height="30" src="https://img.shields.io/badge/linkedin-blue.svg?&style=for-the-badge&logo=linkedin&logoColor=white" />][LinkedIn] [<img height="30" src = "https://img.shields.io/bad...
ise-uiuc/Magicoder-OSS-Instruct-75K
def sqrt_app(n,eps): """ Este método devolve um valor aproximado para a raíz quadrada de n usando os valores do Python para os quadrados perfeitos e o método Chakravala para os não-quadrados. 'eps' é a nossa tolerância, quantas casas decimais queremos ver corretas. Argumentos: n, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
ise-uiuc/Magicoder-OSS-Instruct-75K
from marbles.ie.ccg import parse_ccg_derivation2 as parse_ccg_derivation from marbles.ie.drt.drs import Rel from marbles.ie.semantics.ccg import process_ccg_pt, pt_to_ccg_derivation from marbles.ie.core.constants import * from marbles.ie.utils.text import preprocess_sentence from marbles.test import dprint class Poss...
ise-uiuc/Magicoder-OSS-Instruct-75K
public static class TransformEx { public static Transform DestroyChildren(this Transform transform) { foreach (Transform child in transform) { GameObject.Destroy(child.gameObject); } return transform; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
# launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
ise-uiuc/Magicoder-OSS-Instruct-75K
return cached; } } System.Collections.BitArray bits = new System.Collections.BitArray((reader.MaxDoc() % 64 == 0?reader.MaxDoc() / 64:reader.MaxDoc() / 64 + 1) * 64); new IndexSearcher(reader).Search(query, new AnonymousClassHitCollector(bits, this));
ise-uiuc/Magicoder-OSS-Instruct-75K
# regexp custom matcher is defined in "support/custom_matcher.sh" and # imported by "spec_helper.sh"
ise-uiuc/Magicoder-OSS-Instruct-75K
dc = [dc] self.dc = dc self.exchange = exchange self.exchange_type = exchange_type self.exchange_durable = kwargs.get("exchange_durable", True) self.queue = queue
ise-uiuc/Magicoder-OSS-Instruct-75K
TEST_CASE("Test streamable", "Type Traits") { bool test = rms::is_streamable<std::stringstream, std::string>::value; REQUIRE(test); } TEST_CASE("Serializable is streamable", "Type Traits") { std::stringstream ss; ss << Bar(); REQUIRE(ss.str() == "this-is-bar"); bool test = rms::is_streamable<std::stringstr...
ise-uiuc/Magicoder-OSS-Instruct-75K
pm.deleteUI(GUIDE_DOCK_NAME) panelWeight = 200 scrollHight = 600 # Create Window and main tab self.ui_window = pm.window( GUIDE_UI_WINDOW_NAME, width=panelWeight, title="Guide Tools", sizeable=True) self.ui_topLevelColumn = pm.columnLayout( ...
ise-uiuc/Magicoder-OSS-Instruct-75K
), .testTarget( name: "FDBTests", dependencies: ["FDB"] ), ] )
ise-uiuc/Magicoder-OSS-Instruct-75K
expect(DesmosJS.addressRegex.test("desmos1clqj5fd6z69gzs84rgkchk6y8ksahcfc082k08")).toBeTruthy(); }); it("Correct Desmos wallet generation", () => { const wallet: Wallet = new Wallet(mnemonicDesmos); expect(wallet.address).toBe('desmos1t0fpnzl8swhr8c4mqw330y49k6had8an90l9m3'); // check ...
ise-uiuc/Magicoder-OSS-Instruct-75K
grossProfit: number; totalRevenue: number; EBITDA: number; revenuePerShare: number; revenuePerEmployee: number; debtToEquity: number;
ise-uiuc/Magicoder-OSS-Instruct-75K
import avro.schema
ise-uiuc/Magicoder-OSS-Instruct-75K
var isEmpty: Bool { name.isEmpty && homePort.isEmpty && nationality.isEmpty && permitNumber.isEmpty } convenience init(_ boat: Boat?) { self.init() if let boat = boat { self.boat = boat name = boat.name homePort = boat.homePort nation...
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): initial = True
ise-uiuc/Magicoder-OSS-Instruct-75K
from __future__ import with_statement # this is to work with python2.5 import terapyps from pyps import workspace workspace.delete("convol3x3")
ise-uiuc/Magicoder-OSS-Instruct-75K
class Meta: db_table = 'partidas_cartoes_amarelos' class PartidasCartoesVermelhos(BaseModel): partida = peewee.ForeignKeyField(Partida) cartoes_vermelhos = peewee.ForeignKeyField(CartaoVermelho) class Meta: db_table = 'partidas_cartoes_vermelhos' class PartidasGolsContra(BaseModel): partida = peewe...
ise-uiuc/Magicoder-OSS-Instruct-75K
auto& window_ref = *window; m_windows.set(identifier, move(window)); return window_ref; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def parse_and_create_project(usage, parse_file): parser = ArgsAndFileParser(usage) (project_name, _, destination, entries) = parser.parse_args_and_file(parse_file) print(entries) sigasi_project_file_creator = SigasiProjectCreator(project_name) sigasi_project_file_creator.unmap("/") linked_fold...
ise-uiuc/Magicoder-OSS-Instruct-75K
_update_BackgroundSize(self, self.size) _update_BackgroundPosition(self, self.pos) self.bind(size=_update_BackgroundSize) self.bind(pos=_update_BackgroundPosition) self.bind(background_color=_update_BackgroundColor) def _initialize_Background(instance): with instance.canvas...
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class MobileControlBuilder : ControlBuilder { public override bool AllowWhitespa...
ise-uiuc/Magicoder-OSS-Instruct-75K
no.run(model) crimes = model.crimes print(crimes.head()) plt = density_map(crimes, force) plt.show()
ise-uiuc/Magicoder-OSS-Instruct-75K
} } public function postAdd($id, Request $request) { try { $produtoId = $request->get('produto'); $quantidade = $request->get('quantidade'); $produto = $this->produtoServicoRepository->find($produtoId); $data = [ 'cod_or' => ...
ise-uiuc/Magicoder-OSS-Instruct-75K
class BaseProcessCommand(BaseCommand): def output_start(self, message, newline=''): self.stdout.write(message, ending=newline) def output_message_success(self, message, newline=''): self.stdout.write(self.style.SUCCESS(message), ending=newline)
ise-uiuc/Magicoder-OSS-Instruct-75K
dependencies = [ ('rooms', '0003_auto_20190731_0206'), ] operations = [ migrations.RemoveField( model_name='room', name='rooms', ),
ise-uiuc/Magicoder-OSS-Instruct-75K
/// - returns: A RAII token if succeeded or `nil` if error occurs. @available(*, deprecated, renamed: "preventSystemSleep(reason:)") public static func preventSystemSleep(with reason: String) -> SystemSleepPreventionToken? { SystemSleepPreventionToken(reason: reason)
ise-uiuc/Magicoder-OSS-Instruct-75K
indxm[kk] -= 1 indxp = numpy.zeros(self.nbath, dtype=numpy.int) indxp[:] = self.hinds[nn,:] indxp[kk] += 1
ise-uiuc/Magicoder-OSS-Instruct-75K
@FragmentScope public class RichRankPresenter extends BasePresenter<RichRankContract.Model, RichRankContract.View> { @Inject RxErrorHandler mErrorHandler;
ise-uiuc/Magicoder-OSS-Instruct-75K
super(StateTypeType, self).__init__(*args, choices=STATE_TYPES.values(), **kwargs) def to_native(self, value, context=None): if isinstance(value, StateTypeObject): return value try: ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return { 'sql': sql, 'values': values }
ise-uiuc/Magicoder-OSS-Instruct-75K
--location $8 \ --vm-set-type $9 \ --generate-ssh-keys else echo "AKS cluster already exists in specified resource group with specified name" fi } function delete-aks { az aks delete --name $1 --resource-group $2 --yes
ise-uiuc/Magicoder-OSS-Instruct-75K
void setName(User user, String name); void setProfileImage(User user, String image); }
ise-uiuc/Magicoder-OSS-Instruct-75K
return self._list.__hash__()
ise-uiuc/Magicoder-OSS-Instruct-75K
@Suite() class OrderingUtilTest { @Test() orderDependents() { const items: Orderable<string>[] = [ { key: 'first' },
ise-uiuc/Magicoder-OSS-Instruct-75K
tax_class_data = {"translations": {"en": {"name": "tax class 1"}}, "enabled": True} response = client.post("/api/shuup/tax_class/", content_type="application/json", data=json.dumps(tax_class_data)) assert response.status_code == status.HTTP_201_CREATED tax_class = TaxClass.objects.first() assert tax...
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash modprobe dm-multipath
ise-uiuc/Magicoder-OSS-Instruct-75K
"Ung\u00fcltige Portnummer"}, { ER_FRAG_FOR_GENERIC_URI,
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>batchflow/tests/torch_layers_test.py<gh_stars>10-100 """ Test torch layers """ # pylint: disable=import-error, no-name-in-module import pytest import torch
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod generic;
ise-uiuc/Magicoder-OSS-Instruct-75K
}) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
::models_not<concepts::SizedRange>(crng); ::models_not<concepts::OutputRange>(crng); // ::models<concepts::View>(rng);
ise-uiuc/Magicoder-OSS-Instruct-75K
email: { value: string } } const email = target.email.value dispatch(fetchVolunteerForgot({ email })) }, [dispatch] ) return ( <form onSubmit={onSubmit}> <div className={styles.forgotIntro} key="forgot-intro"> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
properties::properties () : mProperties (), mNamespace (""), mClass (""), mName ("") { // default constructor } properties::properties (const string& ns, const string& clas, const string& instance) : mProperties (),
ise-uiuc/Magicoder-OSS-Instruct-75K
* Run the database seeds. * * @return void */ public function run() { ad_opciones::create([
ise-uiuc/Magicoder-OSS-Instruct-75K
selem = skimage.morphology.disk(1)
ise-uiuc/Magicoder-OSS-Instruct-75K
all_tokens_set = self.load_twitter_tokens() for token in all_tokens_set: contains_token = 0 loaded_documents = self.load_twitter_documents() for document in loaded_documents: contains_token += document[0].count(token) if contains_toke...
ise-uiuc/Magicoder-OSS-Instruct-75K
car['manufacturer'] = manufacturer car['model'] = model for key, value in extra_info.items(): car[key] = value return car car = make_car('subaru', 'outback', color='blue', tow_package=True) print(car)
ise-uiuc/Magicoder-OSS-Instruct-75K
'file_name': url.split('/')[-1] }] )
ise-uiuc/Magicoder-OSS-Instruct-75K