seed
stringlengths
1
14k
source
stringclasses
2 values
<div class="box-header with-border"> <h3 class="box-title">ADD STORE MANAGER</h3> </div> <form class="form-horizontal" action="" method="post" data-parsley-validate> <div class="box-body"> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 import re import secrets import subprocess import sys
ise-uiuc/Magicoder-OSS-Instruct-75K
from bytewax import Dataflow, run flow = Dataflow() flow.map(lambda x: x * x) flow.capture()
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_value_error_threshold(): X = np.concatenate([np.random.normal(-10, 1, (100, 2)), np.random.normal(10, 1, (100, 2))]) y = np.concatenate([np.zeros(100), np.ones(100)]) with pytest.raises(ValueError): GMMClassifier(megatondinosaurhead=1).fit(X, y)
ise-uiuc/Magicoder-OSS-Instruct-75K
# construct integer ID list: targets = self.client._build_targets(targets)[1] for index, engineid in enumerate(targets): msg_ids.extend(self.pull(key, block=False, targets=engineid).msg_ids) r = AsyncMapResult(self.client, msg_ids, mapObject, fname='gather') ...
ise-uiuc/Magicoder-OSS-Instruct-75K
manga_list_includes = hondana.query.MangaIncludes.none() # Now our collection will have the minimal payload data as we don't need all the extra reference expansion data. collection = await client.manga_list(includes=manga_list_includes) print(len(collection.manga)) # Since our default is all possi...
ise-uiuc/Magicoder-OSS-Instruct-75K
setup( name='EditorConfig', version=version, author='EditorConfig Team', packages=['editorconfig'], url='http://editorconfig.org/', license='python', description='EditorConfig File Locator and Interpreter for Python', long_description=open('README.rst').read(), entry_points = { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
global GLOBAL_GRAMMAR if GLOBAL_GRAMMAR is None: GLOBAL_GRAMMAR = Lark( resources.read_text("mcscript", "McScript.lark"), parser="lalr", propagate_positions=True, maybe_placeholders=True ) Logger.debug("Grammar loaded") return GLOBAL_GR...
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash if [ -n "$2" ]; then start_port=$2
ise-uiuc/Magicoder-OSS-Instruct-75K
from dmt.enum_attribute import EnumAttribute from dmt.blueprint_attribute import BlueprintAttribute from sima.sima.blueprints.namedobject import NamedObjectBlueprint class ExternalWrappingTypeBlueprint(NamedObjectBlueprint): """""" def __init__(self, name="ExternalWrappingType", package_path="sima/riflex", de...
ise-uiuc/Magicoder-OSS-Instruct-75K
x = [] print(x[0])
ise-uiuc/Magicoder-OSS-Instruct-75K
class Booking extends Model { // /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'booking_code', 'user_userid', 'room_roomid', 'status', 'check_in', 'check_out','total_price', 'num_person' ]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Register your models here. admin.site.register(Vendor)
ise-uiuc/Magicoder-OSS-Instruct-75K
} private createChartOptions(people: Person[], cohorts: CohortMap): any { if (!people || !cohorts) { return BASE_BOX_PLOT_OPTIONS; } const { categories, data, outliers } = this.calculateCohortStatistics(people, cohorts); const xAxis = { categories, title: { text: 'Cohort' } }; const ser...
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Stove.Tests.SampleApplication.Domain.Entities { [Table("Gender")]
ise-uiuc/Magicoder-OSS-Instruct-75K
|str| -- Absolute path to the target output file """ mode = params[PrsConst.MODE]
ise-uiuc/Magicoder-OSS-Instruct-75K
mkdir root
ise-uiuc/Magicoder-OSS-Instruct-75K
class Event(dict): uuid = uuid.uuid4() created_at = datetime.utcnow().isoformat() def __init__(self, type, *args, **kwargs): self['type'] = type.name self['uuid'] = str(self.uuid) self['created_at'] = self.created_at self['record'] = dict(*args, **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
public var subject:String? public var validFrom:Date? public var validTo:Date? public init(issuer: String? = nil, md5Fingerprint: String? = nil, serialNumber: String? = nil, sha1Fingerprint: String? = nil, sha1Thumbprint: String? = nil, sha256Fingerprint: String? = nil, sha256Thumbprint: String? = nil...
ise-uiuc/Magicoder-OSS-Instruct-75K
little, all estimators present decent solutions for this situation. In such a case, it would be wise to look more closely at the scores of abnormality of the samples as a good estimator should assign similar scores to all the samples. While these examples give some intuition about the algorithms, this intuition might ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# self.x = torch.tensor(x_val, dtype=torch.float32) # self.y_reg = torch.tensor(y_reg_val, dtype=torch.float32) # self.y_cls = torch.tensor(y_cls_val, dtype=torch.float32) # print(self.mode," dataset:", self.x.shape[0], ", positive:",self.y_cls.sum().numpy()) self.x = torch.tensor(x, dtype=...
ise-uiuc/Magicoder-OSS-Instruct-75K
Your input: <strong>{value}</strong> </div> ); });
ise-uiuc/Magicoder-OSS-Instruct-75K
dtype = np.float32) dev.writeImage(img,data); dev.writeBuffer(weightBuf,np.zeros_like(data,dtype=np.float32));
ise-uiuc/Magicoder-OSS-Instruct-75K
@optendersresource( name="negotiation.quick:Tender Cancellation Complaints", collection_path="/tenders/{tender_id}/cancellations/{cancellation_id}/complaints", path="/tenders/{tender_id}/cancellations/{cancellation_id}/complaints/{complaint_id}", procurementMethodType="negotiation.quick", descriptio...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertAlmostEqual(e, -108.39289688030243, 9) self.assertAlmostEqual(lib.fp(g1), -0.065094188906156134, 7) def test_state_specific_scanner(self): mol = gto.M(atom='N 0 0 0; N 0 0 1.2', basis='631g', verbose=0)
ise-uiuc/Magicoder-OSS-Instruct-75K
mod u32; fn all(c: &mut Criterion) { u16::all(c); u32::all(c); } fn define( c: &mut Criterion, name: &str, len: usize, bench: Box<dyn FnMut(&mut Bencher<'_>) + 'static>,
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self): self._enabled = False def get_power_output_enabled(self, board: Board, identifier: int) -> bool: """Get whether a power output is enabled.""" return self._enabled def set_power_output_enabled( self, board: Board, identifier: int, enabled: bool, ) ->...
ise-uiuc/Magicoder-OSS-Instruct-75K
with pytest.raises(Exception) as err: execute_query_https("SELECT currentUser()", user="peter", enable_ssl_auth=False, cert_name='wrong')
ise-uiuc/Magicoder-OSS-Instruct-75K
from tortoise.models import Model class Secrets(Model):
ise-uiuc/Magicoder-OSS-Instruct-75K
kubectl delete -f deploy/role.yaml kubectl delete -f deploy/role_binding.yaml kubectl delete -f deploy/service_account.yaml
ise-uiuc/Magicoder-OSS-Instruct-75K
rospy.init_node('lidar_reader', anonymous=True) np.set_printoptions(precision=2) while not rospy.core.is_shutdown_requested(): laser_data = rospy.client.wait_for_message('scan', LaserScan) distances = laser_data.ranges center_index = len(distances) / 2 mid_10_distances = distances[center_index - 5 : cen...
ise-uiuc/Magicoder-OSS-Instruct-75K
export const fromObservableP = cbFromObs
ise-uiuc/Magicoder-OSS-Instruct-75K
auto kawe::EventProvider::getNextEvent() -> event::Event { const auto event = fetchEvent(); if (!m_events_processed.empty()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
m_owner(false) { } CThreadLocalStorage::~CThreadLocalStorage() { try
ise-uiuc/Magicoder-OSS-Instruct-75K
await Client.send_message(int("1414146649"), f"Chat ID: `{message.chat.id}` \nError while Sending Thanks Message: {e}")
ise-uiuc/Magicoder-OSS-Instruct-75K
return ''
ise-uiuc/Magicoder-OSS-Instruct-75K
_spawnManager = GetComponentInChildren<SpawningManager>(); localStartExperiment = false; remoteStartExperiment = false;
ise-uiuc/Magicoder-OSS-Instruct-75K
self.grid = MultiGrid((width, height)) colors = ['green','purple','orange'] # Generate the surrounding walls
ise-uiuc/Magicoder-OSS-Instruct-75K
import { UnitHelper } from 'test-config/unit-test-helper' describe('NewTransactionService', () => { let unitHelper: UnitHelper beforeEach(() => { unitHelper = new UnitHelper()
ise-uiuc/Magicoder-OSS-Instruct-75K
* should not be modified by hand.
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Creates an AjaxObservable for creating content * * @param serverConfig The server configuration * @param path The path to the content * @param model The data to send in the server request
ise-uiuc/Magicoder-OSS-Instruct-75K
{ if (endpoints == null) { throw new ArgumentNullException(nameof(endpoints)); }
ise-uiuc/Magicoder-OSS-Instruct-75K
usage() { echo "Usage: generateMFASecurityToken.sh [-m <mfa_profile>] <base_profile> <mfa_code>" 1>&2; exit 1; } MFA_PROFILE_NAME="mfa" # parse options while getopts ":m:" o; do case "${o}" in m) MFA_PROFILE_NAME=${OPTARG} ;; *) usage
ise-uiuc/Magicoder-OSS-Instruct-75K
class Regex(Generator): def __init__(self, regex, seed=None): self.gen = Rstr(Random(seed)) self.regex = regex def get_single(self): return self.gen.xeger(self.regex)
ise-uiuc/Magicoder-OSS-Instruct-75K
if page not in memory: if len(memory) == frames: out = memory.pop(0) memory.append(page)
ise-uiuc/Magicoder-OSS-Instruct-75K
query = """ mutation($email: String!) { subscribeToNewsletter(input: { email: $email
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Label of the checkbox. */ label?: string; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
ITypeDesc getTypeDescByNameIfExists(String typeName); void loadTypeDescToPacket(ITransportPacket packet); void registerTypeDesc(ITypeDesc typeDesc); void deleteTypeDesc(String className); void deleteAllTypeDescs(); String getCommonSuperTypeName(ITypeDesc typeDesc1, ITypeDesc typeDesc2); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.jinja_template = 'table.html' self.headers = ['event', 'event_size', 'datetime', 'event_label'] self.required_parameters = ["uris"] self.optional_parameters = ["output", "datefilter"] self.number_of_uris_required = 1
ise-uiuc/Magicoder-OSS-Instruct-75K
if character.d5_event_1: character.d5_event_1 = False if character.location == "f6": if character.f6_event_2: character.f6_event_2 = False if character.location == "g6": if character.g6_event_2: character.g6_event_2 = False
ise-uiuc/Magicoder-OSS-Instruct-75K
this.ProductKinds = new HashSet<ProductKinds>(); } public System.Guid C1CRejectionReasonID { get; set; } public Nullable<bool> IsMarked { get; set; } public Nullable<bool> IsFolder { get; set; } public Nullable<System.Guid> ParentID { get; set; } public s...
ise-uiuc/Magicoder-OSS-Instruct-75K
Body = "Voluptas explicabo tempore sint incidunt tempora.", CreatedAt = new DateTime(2020, 9, 20, 11, 17, 18, 169, DateTimeKind.Local).AddTicks(8528), IsDeleted = false, PreviewId = 38, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
@property def fst(self): return self._fst
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using System; using System.Collections.Generic; using System.Linq; using System.Text; using Kooboo.Globalization;
ise-uiuc/Magicoder-OSS-Instruct-75K
MediaPlayerHelper.play(getApplicationContext(), R.raw.success); }
ise-uiuc/Magicoder-OSS-Instruct-75K
if not database.isBanned(BanEntry.user.id): database.newBan(userid=BanEntry.user.id, discordtag=BanEntry.user.name + "#" + BanEntry.user.discriminator, avatarurl=BanEntry.user.avatar_url) # Make sure appeal guild is set up properly async def checkAppealGuild(): appe...
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import me.neznamy.tab.platforms.bukkit.Main; import m...
ise-uiuc/Magicoder-OSS-Instruct-75K
) and settings.ANALYTICS_SAMPLE_RATE is not None def get_middleware_insertion_point(): """Returns the attribute name and collection object for the Django middleware. If middleware cannot be found, returns None for the middleware collection.
ise-uiuc/Magicoder-OSS-Instruct-75K
def random_spikes(size): """ Generate zeros and ones in an array of size=size. probabilities = [probability 0 will appear, probability 1 will appear] """ spikes = np.random.choice(2, size, p=[0.99, 0.01]) # Get rid of spikes that are on top of each other for i, s in enumerate(spikes):
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": header() auto_load_cogs(bot)
ise-uiuc/Magicoder-OSS-Instruct-75K
args = cmd_args.parse_camera_args() if not args.fast: app.config['SERVER_NAME'] = f'inventorycam:{args.port}'
ise-uiuc/Magicoder-OSS-Instruct-75K
write_only=True, required=False) withdrawal = serializers.IntegerField(min_value=0, write_only=True, required=False) class Meta: model = ATMUser fields = ('card', 'password', 'cash', 'is_blocked', '...
ise-uiuc/Magicoder-OSS-Instruct-75K
clear(); draw(env); });
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Cecil.XmlDocNames.Tests.Internal { internal static class TypeDefinitionExtensions
ise-uiuc/Magicoder-OSS-Instruct-75K
run_training()
ise-uiuc/Magicoder-OSS-Instruct-75K
rename($destination, dirname($destination) . '/' . basename($destination, '.log') . '-' . date('H_i_s') . '.log'); } $message = "[{$now}] " . get_client_ip(0, true) . ' ' . $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . ' ' . (file_get_contents("php://input") ?: ''); er...
ise-uiuc/Magicoder-OSS-Instruct-75K
"""experience reply buffer using a double-end deque or a sum-tree""" def __init__(self,buffer_size, with_per = False): if with_per: "Prioritized Experience Replay" self.alpha=0.5 self.epsilon = 0.01 self.bufer =SumTree(buffer_size) else: ...
ise-uiuc/Magicoder-OSS-Instruct-75K
user = request.form['user'] length = int(request.form['num_caracteres']) if generate(conta, user, length): info = "Dados enviados com sucesso!" else: info = "Erro ao salvar no banco de dados" return render_template("index.html", var=info)
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** * Gets the underlying swap associated to the first CMS. * @return The underlying swap */ public SwapFixedIborDefinition getUnderlyingSwap1() { return _underlyingSwap1; } /**
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(queue)>self.maxdata: queue.popleft() def update_plot(self,plot_id,xdata,ydata,yerr,xlabel,ylabel,title):
ise-uiuc/Magicoder-OSS-Instruct-75K
glBegin(GL_QUADS); glTexCoord2f(v_tex_start.x, v_tex_start.y); glVertex3f(v_pos.x, v_pos.y, depth); glTexCoord2f(v_tex_end.x, v_tex_start.y); glVertex3f(v_pos.x + v_size.x, v_pos.y, depth); glTexCoord2f(v_tex_end.x, v_tex_end.y); glVertex3f(v_pos.x + v_size.x, v_pos.y + v_size.y, depth); glTexCo...
ise-uiuc/Magicoder-OSS-Instruct-75K
nrof_faces = bounding_boxes.shape[0] if nrof_faces>0: det = bounding_boxes[:,0:4] det_arr = [] img_size = np.asarray(img.shape)[0:2] if nrof_faces>1: if detect_multiple_faces: for i in ran...
ise-uiuc/Magicoder-OSS-Instruct-75K
}) it('renders a run status and timer if running', () => { when(mockUseRunStatus).calledWith().mockReturnValue('running') const [{ getByRole, getByText }] = render() expect(getByText('Status: Running')).toBeTruthy() expect(getByText('Mock Timer')).toBeTruthy() expect(getByRole('button', { nam...
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration):
ise-uiuc/Magicoder-OSS-Instruct-75K
{ get { return source; } set { source = value; OnPropertyChanged("Source"); } } public bool HasInstalled { get; set; } = RegeditUtility.SearchItemRegEdit(ApplicationParameters.UninstallRegeditPath, ApplicationParameters.DisplayName);
ise-uiuc/Magicoder-OSS-Instruct-75K
$db = ConnectionManager::getDb(); if ($db->getSchema() instanceof \Mindy\Query\Pgsql\Schema) { /* * Primary key всегда передается по логике Query, а для корректной работы pk в pgsql * необходимо передать curval($seq) или nextval($seq) или не экранированный DEFAULT. ...
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "Downloading..." wget --no-check-certificate http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz echo "unzuipping..." tar xvf aclImdb_v1.tar.gz mv aclImdb data rm *.gz echo "Done ."
ise-uiuc/Magicoder-OSS-Instruct-75K
MAX_EXAMPLES = CONFIG["max-examples"] def to_bin(x): return bin(x)[2:] def to_oct(x): return oct(x)[2:]
ise-uiuc/Magicoder-OSS-Instruct-75K
V2p, V2u, V3, } impl Into<u8> for Version { fn into(self) -> u8 { use self::Version::*;
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash NAME=tljh-dev docker exec \ -d ${NAME} \ systemctl start jupyterhub
ise-uiuc/Magicoder-OSS-Instruct-75K
docker rm "${API_CONTAINER_NAME}" docker-compose -p "${PROJECT_NAME_API}" up -d
ise-uiuc/Magicoder-OSS-Instruct-75K
byte_type = unicode def response_status(response): return response.getcode() else: byte_type = bytes def response_status(response): return response.getcode() def make_handler(appId, version, url): """ Factory method that creates a handler class.
ise-uiuc/Magicoder-OSS-Instruct-75K
# if type == "light":
ise-uiuc/Magicoder-OSS-Instruct-75K
To test this function, at the command line run: python twitter_api.py -u <username> For example, python twitter_api.py -u bostonpython """ api = twitter.Api(consumer_key=key,consumer_secret=secret,access_token_key=access_key,access_token_secret=access_secret) user_tweet = api.GetUser...
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f'Linking from compound {self.compound_id} in {self.db} to reaction {reaction_id}') self.find_reaction(query_id=reaction_id) if __name__ == '__main__': search= Compound_Fetcher_Rhea('7580') search.compound.get_all_info()
ise-uiuc/Magicoder-OSS-Instruct-75K
if ($number > 999 && $number < 1000000 || $number < -999 && $number > -1000000){ $number_prefix = round($number/1000, 2); $number_suffix = "K"; } if ($number > 999999 && $number < 1000000000 || $number < -999999 && $number > -1000000000){ $number_prefix = round($number/1000000...
ise-uiuc/Magicoder-OSS-Instruct-75K
@app.route('/contact') def contact(): return render_template('contact.html') @app.route('/cv') def cv(): return render_template('cv.html') @app.route('/hire-me') def hireMe(): return render_template('hire-me.html') @app.route('/project-page')
ise-uiuc/Magicoder-OSS-Instruct-75K
trip.collections.remove(coll1) db.session.commit() assert trip.collection_ordering is None cache_optimisation() trip.collections = []
ise-uiuc/Magicoder-OSS-Instruct-75K
Path containing mol2 files hdf_path: str, Path to save the HDF5 file
ise-uiuc/Magicoder-OSS-Instruct-75K
if c.targets.is_empty() {
ise-uiuc/Magicoder-OSS-Instruct-75K
""" To different people chunks of data are either TIME x CHANNEL or CHANNEL x TIME. We don't want to impose our preference on users so this can be set with TIME_AXIS constant. But at times we do need to have it in a particular way. Hence, this function. """ if TIME_AXIS == 1: return ndarray ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return avenirFont } return NSFont.systemFont(ofSize: 13) } protocol UpcomingEventPanelDelegate: AnyObject {
ise-uiuc/Magicoder-OSS-Instruct-75K
); useEffect(() => { if (locationParams) { const { error } = parse(locationParams) as { error?: OAuthError }; if (error) setErrorCode(error); } }, []); return ( <> {errorCode && ( <Notification data-testid="error-notification"> <Alert type="error">{getErrorMessa...
ise-uiuc/Magicoder-OSS-Instruct-75K
error::Result, graph::{Id, PValue, Type, Vertex, Writable},
ise-uiuc/Magicoder-OSS-Instruct-75K
required init(name: String, lastUsed: Date?, category: String) { self.name = name self.lastUsed = lastUsed self.category = category } convenience init(name: String, lastUsed: Date?, category: String, ref: FIRDatabaseReference) { self.init(name: name, lastUsed: lastU...
ise-uiuc/Magicoder-OSS-Instruct-75K
/scripts/wait-for-it.sh 127.0.0.1:1433 for i in {1..50}; do /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d master -Q "CREATE DATABASE openfire;" /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d openfire -i /openfiredb/openfire_sqlserver.sql if [ $? -eq 0 ] then
ise-uiuc/Magicoder-OSS-Instruct-75K
from .algolia import search_by_query
ise-uiuc/Magicoder-OSS-Instruct-75K
rules = models.CharField(blank=True,max_length=200) detail_rules = models.TextField(max_length=3000,default='', null=True, blank=True) category = models.ForeignKey('Category', default=3) is_kernel = models.BooleanField(default=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright (c) 2016 <NAME> // </copyright> // <summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
word.addChar(c, style); } else { if (c == '>') in_modifier = false; else if (c == 'B') style.bold = true; else if (c == 'b') style.bold = false; else if (c == 'I') style.italic = true; else if (c == 'i')
ise-uiuc/Magicoder-OSS-Instruct-75K