seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
}
if(($request->master_field_of_study) != null){
$request->master_field_of_study = ($request->master_field_of_study);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nnfusion ../../frozen_models/frozen_pbs/frozen_lstm_infer_bs16.const_folded.pb -f tensorflow -b nnfusion -m graph -fkernel_fusion_level=3 -fblockfusion_level=0 -fconst_folding_backend=CUDA -fwarmup_step=5 -frun_step=1000 -fkernels_as_files=true -fkernels_files_number=60 -fdot_transpose=true -fproduct_name="Tesla V100-PCIE-16GB"
mv nnfusion_rt lstm_bs16_rammerbase
cd ../
# build rammer_base
cd rammer_base/
cd resnext_nchw_bs1_rammerbase/cuda_codegen
cmake .
make -j
cd ../..
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, **kwargs):
pass
def get(self, request):
# Only fetch students
return render(request, self.template_name)
def post(self, request):
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(len(rows)):
self.assertEqual(rows[i], tuple(lists[i]))
def testCompare(self):
'''Test that matrices with identical data compare as equal'''
newMatrix = Matrix.Matrix(rows=lists, headers=headers)
self.assertEqual(self.matrix, newMatrix)
#Not equal test
self.assertNotEqual(self.matrix, None)
def testGetHeaders(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Check if user already has characters registered and announce them on log_channel
# This could be because he rejoined the server or is in another server tracking the same worlds
rows = await self.bot.pool.fetch("""SELECT name, vocation, abs(level) as level, guild FROM "character"
WHERE user_id = $1 AND world = $2 ORDER BY level DESC""", member.id, world)
if rows:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit "${1:-1}"
}
# constants
EXEC_DIR="$(dirname "$0")"
OUTPUT_FILE=target/dist/materialize-driver.jar
NOW="$(date +%Y%m%d_%H%M%S)"
# options
RELEASE=n
VERSION=_
METABASE_VERSION=latest
BUILD=n
DOCKER=y
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Removes renderer
*
* @param $name string Name of the renderer to be removed
* @return IManager Fluent interface
*/
public function removeRenderer($name)
{
unset($this->renderers[$name]);
return $this;
}
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (condition is True):
print(msg, **kwargs)
return
def create_zonal_mean_dataset(ds, verbose=False, include_waves=False,
waves=None, fftpkg='scipy'):
r"""Compiles a "zonal mean dataset".
Given an xarray dataset containing full fields of basic state
variables such as velocity components and temperatures, this
function will compute as many zonal mean diagnostics as possible.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ReviewForm(FlaskForm):
title = StringField('Give your title',validators=[Required()])
review = TextAreaField('Pitch review', validators=[Required()])
submit = SubmitField('Submit')
class UpdateProfile(FlaskForm):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get() -> context.Context:
return context.get('default')
def env(unset=False) -> Tuple[List[str], str]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res.push_back(i);
if(i * i != n)
res.push_back(n / i);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(path) as data_file:
return json.load(data_file)
def add(key, value):
global extra_config
extra_config.update({key: value})
def get_value(key):
if key in extra_config:
return extra_config[key]
elif key in config:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class AUBusinessNumberField(CharField):
"""
A form field that validates input as an Australian Business Number (ABN).
.. versionadded:: 1.3
.. versionchanged:: 1.4
"""
default_validators = [AUBusinessNumberFieldValidator()]
def to_python(self, value):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Image(TraitType):
"""A trait for PIL images."""
default_value = None
info_text = 'a PIL Image object'
def validate(self, obj, value):
if isinstance(value, PIL.Image.Image):
return value
self.error(obj, value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scene.RegisterRegionWithGrid();
scene2.RegisterRegionWithGrid();
// Adding child agent to region 1001
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
(snmpTargetSpinLock,
snmpUnavailableContexts,
snmpUnknownContexts) = mibBuilder.importSymbols(
'SNMP-TARGET-MIB',
'snmpTargetSpinLock',
'snmpUnavailableContexts',
'snmpUnknownContexts'
)
_snmpTargetSpinLock = MibScalarInstance(
snmpTargetSpinLock.name, (0,),
snmpTargetSpinLock.syntax.clone(0)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
global reserve
reserve = text
return (text.lower() != '1' and text.lower() != '(1)' and text.lower() != 'reserve a table' and text.lower() != 'n' and text.lower() != 'no')
def on_enter_state4_1(self, update):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# STDOUT
print(NexssStdout.decode('utf8', 'surrogateescape'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public boolean supportsPath(String path) {
if (path != null) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for key, value in self.boss.environment.items():
# Each variable should be in the form of <key>='<value>'
env_string = key + "="
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func title() -> String? {
return parser?.title() ?? file.name
}
func places() -> [GTPin]? {
return parser?.places()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
from __future_
_ import division
import numpy as np
from sklearn import preprocessing
from sklearn.metrics import roc_auc_score
import XGBoostClassifier as xg
from sklearn.cross_validation import StratifiedKFold
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Fields:
data -- the data this node will contain. This data can be any format.
"""
def __init__(self, data):
self.data = data
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
/// Adds a single colored polygon.
pub fn push(&mut self, color: Color, p: Polygon) {
self.list.push((FancyColor::RGBA(color), p));
}
pub fn fancy_push(&mut self, color: FancyColor, p: Polygon) {
self.list.push((color, p));
}
/// Applies one color to many polygons.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# PyTorch tensors assume the color channel is the first dimension
# but matplotlib assumes is the third dimension
image = image.transpose((1, 2, 0))
# Undo preprocessing
mean = np.array([0.485, 0.456, 0.406])
std = np.array([0.229, 0.224, 0.225])
image = std * image + mean
# Image needs to be clipped between 0 and 1 or it looks like noise when displayed
image = np.clip(image, 0, 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
const ACTION_PURCHASE = 'purchase';
/**
* The refund of one or more products.
*/
const ACTION_REFUND = 'refund';
/**
* A click on an internal promotion.
*/
const ACTION_PROMO_CLICK = 'promo_click';
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <item><description>
/// <NAME>:
/// Improving regularized singular value decomposition for collaborative filtering.
/// KDD Cup 2007.
/// http://arek-paterek.com/ap_kdd.pdf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public var title: String {
fatalError("Abstract property not implemented")
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
- 'inbox' should be a GuerrillaInbox object.
- 'GUERRILLAMAIL' is the string URL of GuerrillaMail.
"""
verification_email_request_limit = 4
assert_tab(driver, GUERRILLAMAIL)
inbox.wait_for_email(WAIT_DUR, expected=verification_email_request_limit)
try:
verification_emails_recived = 0
log(INFO, "Checking if verification emails recieved.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-24 15:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import falmer.content.blocks
import wagtail.core.blocks
import wagtail.core.fields
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Copyright 2018-2020 Amazon.com,
// Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#if canImport(Combine)
import Combine
extension DataStoreCategory: DataStoreSubscribeBehavior {
@available(iOS 13.0, *)
public func publisher<M: Model>(for modelType: M.Type) -> AnyPublisher<MutationEvent, DataStoreError> {
return plugin.publisher(for: modelType)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
views?: 'DESC' | 'ASC';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_run_fdr_ranking():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IntroComponent,
ButtonDemoComponent,
TypographyDemoComponent,
ColorDemoComponent,
AppbarDemoComponent,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import numpy as np
import matplotlib.pyplot as plt
def visualize(dataframe, balltype):
df = dataframe
#Filter by balltype
res = df[df["pitch_type"] == balltype]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Self::ThirdQuarter => "🌗",
Self::WaningCrescent => "🌘",
Self::New => "🌑",
Self::WaxingCrescent => "🌒",
Self::FirstQuarter => "🌓",
Self::WaxingGibbous => "🌔",
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def solve(a: List[int]) -> int:
n = len(a)
ans = 0
for i in range(n):
for j in range(i + 1, n):
ans += a[i] - a[j]
return ans
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Load pretrained model (since intermediate data is not included, the model cannot be refined with additional data)
vector_file = os.getenv("VECTOR_FILE",
"https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz")
binary = bool(os.getenv("BINARY_VECTOR_FILE", "true" if ".bin" in vector_file else "false").lower() == "true")
model = KeyedVectors.load_word2vec_format(
vector_file,
binary=binary)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if item_list:
for item in item_list:
if item in items.keys():
items[item] += 1
else:
items[item] = 1
top_items = dict(sorted(items.items(), key=lambda item: item[1], reverse=True))
for i, key in enumerate(top_items):
top_items[key] = i + 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
noisy = deep_to(noisy, device, non_blocking=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
*/
@SerializedName(value = "autoApplyReviewResultsEnabled", alternate = {"AutoApplyReviewResultsEnabled"})
@Expose
public Boolean autoApplyReviewResultsEnabled;
/**
* The Auto Review Enabled.
*
*/
@SerializedName(value = "autoReviewEnabled", alternate = {"AutoReviewEnabled"})
@Expose
public Boolean autoReviewEnabled;
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.receive()
def receive(self):
try:
data = os.read(self.fd, 8192)
except OSError:
data = b''
sys.stdout.write(base64.b64encode(data))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .watchers import build_spot_open_orders_watcher as build_spot_open_orders_watcher
from .watchers import build_serum_open_orders_watcher as build_serum_open_orders_watcher
from .watchers import build_perp_open_orders_watcher as build_perp_open_orders_watcher
from .watchers import build_price_watcher as build_price_watcher
from .watchers import build_serum_inventory_watcher as build_serum_inventory_watcher
from .watchers import build_orderbook_watcher as build_orderbook_watcher
from .websocketsubscription import IndividualWebSocketSubscriptionManager as IndividualWebSocketSubscriptionManager
from .websocketsubscription import SharedWebSocketSubscriptionManager as SharedWebSocketSubscriptionManager
from .websocketsubscription import WebSocketAccountSubscription as WebSocketAccountSubscription
from .websocketsubscription import WebSocketLogSubscription as WebSocketLogSubscription
from .websocketsubscription import WebSocketProgramSubscription as WebSocketProgramSubscription
from .websocketsubscription import WebSocketSubscription as WebSocketSubscription
from .websocketsubscription import WebSocketSubscriptionManager as WebSocketSubscriptionManager
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s.close()
if __name__ == "__main__":
Main() | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
import itertools
import numpy as np
from sklearn.utils.validation import check_is_fitted
from verde import cross_val_score, Spline
from verde.base import BaseGridder
from verde.model_selection import DummyClient
class SplineCV(BaseGridder):
r"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return data
@Action.action
def cb_action(self, uinfo, name, kp, input, output):
while True:
with ncs.maapi.single_read_trans('admin', 'admin') as t:
save_data = self.read_config(t, "/netconf-ned-builder/project{router 1.0}/module/status")
xml_str = str(save_data)
if xml_str.find("selected pending") != -1:
time.sleep(1);
else:
return;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
interpreter = VarAssignmentInterpreter('Name', 'Otavio', env, error)
response = interpreter.execute()
assert response == 'Otavio'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$is_folder = strpos($request->file, $request->user()->userable->getFolderName());
if ($user_id == $folder_id && $is_folder !== false) {
return $next($request);
} else {
return abort(404);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"appName": self._agent_object.agent_name,
"instanceName": self.instance_name
}],
"task": {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
helpers/event.js \
helpers/hash.js \
helpers/javascript.js \
helpers/json.js \
helpers/location.js \
helpers/string.js \
helpers/sys.js \
helpers/view.js \
helpers/xml.js \
libs/spazaccounts.js \
libs/spazimageurl.js \
libs/spazfileuploader.js \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
abstract DisconnectionRouterOutput bindDisconnectionRouterOutput(DisconnectionRouter disconnectionRouter);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod myutils;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# create coordinate transformation
inSpatialRef = osr.SpatialReference()
inSpatialRef.ImportFromEPSG(inputEPSG)
outSpatialRef = osr.SpatialReference()
outSpatialRef.ImportFromEPSG(outputEPSG)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.AlterModelOptions(
name='notification',
options={'ordering': ['-received_date']},
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import unittest
import envi
import vivisect
import vivisect.codegraph as codegraph
import vivisect.tests.samplecode as samplecode
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public Text getCurrentSemDisplay() {
return currentSemDisplay;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using Unity.Entities;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
migrations.DeleteModel(
name='CheckpointSubmission',
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#} };
#[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class EmptyInequalityMatrix extends Exception
{
#[Pure] public function __construct()
{
$this->code = "000";
$this->message = "The inequalities matrix is empty";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EOF | ise-uiuc/Magicoder-OSS-Instruct-75K |
if file.endswith('.csv'):
path = os.path.join('./data', file)
with open(path) as f:
lines = f.readlines()
digit = os.path.splitext(file)[0].split('_')[-1]
data_size[digit].append(len(lines))
for digit in data_size:
size = data_size[digit]
print(sum(size)/len(size))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Test_pip_caco2_efflux_transformation(unittest.TestCase):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
String componentType, String componentName, String componentID,
String parentID, double[][] currentPoints) throws DataException,
DataSecurityException;
int generateCellMembrane(int numElelements, String startID,
String componentType, String componentName, String componentID,
String parentID, double radius, double[][] currentPoints) throws DataException,
DataSecurityException;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TeamImageComponent,
NotificationMenuComponent,
NotificationItemComponent
]
})
export class TeamdojoSharedCommonModule {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(list.length).toBe(0);
expect(list.first).toBeNull();
expect(list.last).toBeNull();
});
test('add', () => {
let spy = jest.spyOn(list, 'addLast').mockReturnValueOnce();
list.add(0);
expect(spy).toBeCalledWith(new DoublyLinkedListNode(0));
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fullIndexOffset = fullIndexOffset, endian = endian)
return result
| ise-uiuc/Magicoder-OSS-Instruct-75K |
row_str = row_str + "%.2lf" % (accum_bw[i][j]/accum_bw_count[i][j]) + "\t"
else:
row_str = row_str + "0" + "\t"
print(row_str)
df_gpu.to_csv(
logdir + '/' + 'comm.csv',
columns=[
"timestamp",
"pkt_src",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cbfdecompress(data, output)
return output.reshape(dim2, dim1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private func add(
layoutDefiningView view: LayoutDefining & UIView,
center: Layout.Center,
relation: ConstraintRelation
) {
if let x = center.x {
let length = self.length(for: x) { ($0.minX, $0.maxX) }
let otherAnchor: NSLayoutXAxisAnchor
switch x.boundary {
case .superview: otherAnchor = leadingAnchor
case .margin: otherAnchor = layoutMarginsGuide.leadingAnchor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#SHAPE CONSTRUCTION
def _add_defaults(self, **kwargs):
#adds design defaults to kwargs of draw methods when not specified
for kwarg, default in DEFAULTS.items():
if kwarg not in kwargs:
kwargs[kwarg] = default
return kwargs
def draw_circle(self, center, radius = 50, **kwargs):
kwargs = self._add_defaults(**kwargs)
circle = self.svg_doc.circle(center, r = radius, **kwargs)
self.svg_doc.add(circle)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(numTrig):
self.add(EvrV2TriggerReg(
name = f'EvrV2TriggerReg[{i}]',
offset = 0x00020000 + 0x1000*i,
))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from_this_person_to_poi
long_term_incentive
from_poi_to_this_person
After watching the documentary, features that could be important in identifying
POIs:
exercised_stock_options
restricted_stock
bonus
shared_receipt_with_poi
from_this_person_to_poi
from_poi_to_this_person
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <returns> The target page of records </returns>
public static Page<ConferenceResource> GetPage(string targetUrl, ITwilioRestClient client)
{
client = client ?? TwilioClient.GetRestClient();
var request = new Request(
HttpMethod.Get,
targetUrl
);
var response = client.Request(request);
return Page<ConferenceResource>.FromJson("conferences", response.Content);
}
/// <summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ $NODE_COUNT -gt 1 ]] && [[ $INSTANCE != $INSTANCE_ID ]]; then
# Get the node id and type from its tag
NODE_ID=$(aws ec2 describe-tags --filters "Name=resource-id,Values=$INSTANCE" "Name=key,Values=node-id" --region $REGION --output=json | jq -r .Tags[0].Value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public init(collectionId: String? = nil, outputs: [Output]? = nil) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
prepopulated_fields= {'slug':('name',)}
@admin.register(Tag)
class TagAdmin(admin.ModelAdmin):
prepopulated_fields= {'slug':('name',)} | ise-uiuc/Magicoder-OSS-Instruct-75K |
m3o search search --index="customers" --query="name == 'John'" | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Transaction::truncate();
$data = [
['no_transaction' => '000001', 'name' => '<NAME>', 'amount' => 30000, 'date' => '2020-01-01 00:00:00', 'is_active' => 1, 'user_id' => 1, 'type_id' => 1],
['no_transaction' => '000002', 'name' => '<NAME>', 'amount' => 10000, 'date' => '2020-01-01 00:00:00', 'is_active' => 1, 'user_id' => 1, 'type_id' => 2],
['no_transaction' => '000003', 'name' => 'Wedding', 'amount' => 40000, 'date' => null, 'is_active' => 0, 'user_id' => 1, 'type_id' => 3],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.core.exceptions import ValidationError
def validate_country(value):
if len(value) != 2 or not re.match('[A-Z]{2}', value):
raise ValidationError('Please enter your country code. e.g. US')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
reserve=1024*1024*32
def run(cmd):
print cmd
# return 0
return os.system(cmd)
def main():
d = posixpath.dirname(sys.argv[0])
make_ext4fs_opt_list = []
optlist, args = getopt.getopt(sys.argv[1:], 'l:j:b:g:i:I:L:a:G:fwzJsctrvS:X:')
if len(args) < 1:
print 'image file not specified'
return -1;
image_file = args[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int result(-1);
OOLUA::pull(*m_lua, result);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</div>
</div>
{{-- MODALES --}}
<div class="modal fade" id="modalAgregarSede">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Agregar Sede</h5>
<button type="button" class="close" data-dismiss="modal"><span>×</span>
</button>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# dictionary to the proper json.
body = {
'username': username,
'password': password
}
# Call the helpsocial.post method directly
# passing the path to the authentication resource ('tokens'),
# the authentication provider,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public String getAddress() {
return "World wide";
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Print.useSystemOut();
});
commandResult.exitCode = exitCode;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Seven, eght. Sorry, I\'m late.\
Nine, ten. Say it again.' | ise-uiuc/Magicoder-OSS-Instruct-75K |
self_service = self
class FinishListener:
def finished(self):
self_service._fire_execution_finished(execution_id, user)
executor.add_finish_listener(FinishListener())
def _fire_execution_finished(self, execution_id, user):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
close(fileOpenReturnVal);
}
void *random_write_then_read(void *blockSize){
int bsze=(int)(long)blockSize;
returnVal=open("test.txt",O_CREAT|O_TRUNC|O_WRONLY, 0666);
int i, returnVal, r;
//random write into the disk
for(i=0;i<1000000000/bsze;i++)
{
r = rand()%(1000000000/bsze);
char *b = new char[bsze];
memset(b,'0',bsze);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# args["name"] = "me me"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
openssl req -new -x509 -sha256 -days 365 -nodes -out certs/ca.crt \
-keyout keys/ca.key -subj "/CN=root-ca"
# Create the server key and CSR and sign with root key
openssl req -new -nodes -out server.csr \
-keyout keys/server.key -subj "/CN=localhost"
openssl x509 -req -in server.csr -sha256 -days 365 \
-CA certs/ca.crt -CAkey keys/ca.key -CAcreateserial \
-out certs/server.crt
openssl ecparam -name prime256v1 -genkey -noout -out keys/client.key
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise AxisError(
f"{self} is {N}-D but initiated with {len(self._axes_series)} axes"
)
for n, (a_id, axis_series) in enumerate(zip(self._a_ids, self._axes_series)):
if a_id is not None and axis_series is not None and a_id != axis_series.id:
raise AxisError(
f"{self} initiated with contradicting id's for {n}'th axis"
)
elif a_id is None and axis_series is None:
raise AxisError(
f"{self} has no axis id for series or id for its {n}'th axis"
)
@property
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ResetPassword extends Model {
protected $table = 'usuarios_password_resets';
public $incrementing = false;
protected $primaryKey = null;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class HomeCommand extends SequentialCommandGroup {
public HomeCommand(Subsystem subsystem, Command move, BooleanSupplier atLimit, Command zeroSensors) {
addRequirements(subsystem);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.stuff = obj
@inline
def getStuff(self):
return self.stuff
@inline
def add_stuff(x, y):
return x + y
def add_lots_of_numbers():
for i in xrange(10):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Self { name: name.into() }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @Version 1.0.0
*/
public interface BaseMapper<T> extends Mapper<T>, MySqlMapper<T> {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
++i;
switch ( type ) {
case(Constants::BAM_TAG_TYPE_ASCII) :
case(Constants::BAM_TAG_TYPE_INT8) :
case(Constants::BAM_TAG_TYPE_UINT8) :
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.