seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
<input type="text" class="form-control required" id="email" name="email">
</div>
</fieldset>
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="<KEY>"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Description:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
getCommandName() {
return 'refresh';
}
getCommandArgs() {
return ['$(layer)'];
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.openqa.selenium.WebDriver;
public interface DriverProvider {
public WebDriver getDriver();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pos += 1
arr[pos], item = item, arr[pos]
writes += 1
while (pos != cycleStart):
pos = cycleStart
for i in range(cycleStart + 1, len(arr)):
if (arr[i] < item):
pos += 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setLayout(h_layout_5);
}
void TrafficLightPublishPanel::onSetTrafficLightState()
{
const auto traffic_light_id = traffic_light_id_input_->value();
const auto color = light_color_combo_->currentText();
const auto shape = light_shape_combo_->currentText();
const auto status = light_status_combo_->currentText()... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public SpaceReplicationLifeCycleBuilder(SpaceEngine spaceEngine) {
_spaceEngine = spaceEngine;
}
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while (groupCount > 0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif a[i] in number_frequencies:
if number_frequencies[a[i]] < 2:
number_frequencies[a[i]] += 1
number_indices[a[i]] = i
for number in number_frequencies:
if number_frequencies[number] == 2:
duplicate_index[number] = number_indices[number]
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
count = 0
for row in grid:
for c in row:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# We only have one url in this app
urlpatterns = [
url(r'^settings/$', GoogleAnalyticsView, kwargs={'template': 'analytics/settings.html'}, name='analytics_settings'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//let z = ZMS::from_reader(&mut reader)?;
let z = ZMS::from_file(&input)?;
writer
.write(format!("# Exported using {} v{} ({})\n",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_VERSION"),
env!("CARGO_PKG_HOMEPAGE"))
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"EarlyStopping",
"VarianceBasedEarlyStopping",
"MetricEvaluator"
]
class Callback:
"""Base class for callbacks."""
def on_train_start(self, rbm):
"""Called at the start of the training cycle.
:param rbm: The RBM being trained.
:type rbm: BinomialRBM
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//options.InputFormatters.Add(new XmlSerializerInputFormatter());
//options.OutputFormatters.Add(new XmlSerializerOutputFormatter());
});
services.AddApiVersioning(config =>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
$data = [];
foreach($array AS $key=>$rs){
if ($rs['type']=='select' || $rs['type']=='checkbox') {
$detail = explode("\n",$rs['options']);
$opt = [];
foreach($detail AS $value){
$opt[$value] = $value;
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
protected FlowNodeViewColumnDescriptor() {
}
/**
* To enable rendering a table of {@link FlowNode} without the user explicitly configuring
* columns, this method provides a default instance.
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data = {}
x, y = get_x_y(name + '/' + filename_train, name)
data['x_train'] = x
data['y_train'] = y
if len(sys.argv) > 4:
filename_val = sys.argv[4]
x, y = get_x_y(name + '/' + filename_val, name)
data['x_train'] = np.vstack((data['x_train'], x))
data['y_train'] = np.append(data['y_train'], y)
data['n... | ise-uiuc/Magicoder-OSS-Instruct-75K |
mid -= 1
return True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lr_scheduler = dict(
name='poly_scheduler',
epochs=30,
power=0.9
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
current_cdss.clear();
}
"exon" => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<p style='font-weight: bold;'> We couldn't complete your request. </p>
<img src='/img/SVG/undraw_cancel_u1it.svg' class='img-fluid' />
<p style='font-weight: bold;'> <?php echo $errorMessage; ?> </p>
<p style='font-weight: bold'> Redirecting you </p>
</div>
</d... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public function buildForm()
{
$this->add('MedicationName','text',['rules'=>'required']);
$this->add('DoctorName','text',['rules'=>'required']);
$this->add('status','select',[
'choices'=>['status' => ['Active' => 'Active', 'Inactive' => 'Inactive']],
'attr'=>[],
'rules'=... | ise-uiuc/Magicoder-OSS-Instruct-75K |
result
}
None => Ok(None),
}
}
fn perform_update<U, I>(
&self,
processing: Processing,
index_resolver: Arc<IndexResolver<U, I>>,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for line in `cat ./pid`
do
echo $line
kill -9 $line
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Revision ID: <PASSWORD>4<PASSWORD>
Revises: <PASSWORD>
Create Date: 2016-04-07 23:53:56.623647
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
from alembic import op
import sqlalchemy as sa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 9
# 16
# 25
for i in range(6):
print (i ** 2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Classes implementing this interface <b>must</b> be thread safe.
*/
public interface MessageQ {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Globals #
listed_dinos = ["Tyrannosaurus", "Stegosaurus", "Velociraptor", "Triceratops", "Spinosaurus"]
def retrieve_webpage(dino_name):
#Retrieve the HTML for the specific dinosaur and return the page in string format
URL = "https://paleobiodb.org/data1.2/occs/list.txt?base_name=" + dino_name + "&show=loc"
page ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Example 1:
# Input: arr = [1,2,3]
# Output: 2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
));
}
}
Ok(dest.join(file_name))
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self,browser,catalog):
super(SupportNeedHelpPage,self).__init__(browser,catalog)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
username = 'gmail_id'
password = '<PASSWORD>'
new_message = email.message.Message()
new_message.set_unixfrom('satheesh')
new_message['Subject'] = 'Sample Message'
# from gmail id
new_message['From'] = '<EMAIL>'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
eval_batch_size=BATCH_SIZE
)
def get_logger():
return logging.getLogger(__name__)
def setup_module():
logging.basicConfig(level='DEBUG')
class GraphMode(object):
TRAIN = 'train'
EVALUATE = 'eval'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_chain():
chain = MarkovChain([1, 2, 3, 1, 2])
assert len(chain.states) == 3
assert isinstance(chain.transition, dict)
assert isinstance(chain.transition[1], list)
assert chain.sample_next(1) == 2
assert len(chain.build_sequence(10, 1)) == 10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function authorize()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'init_detector', 'inference_detector', 'show_result'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @model containment="true"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"PythonFileRunner",
# value objects
"ProtocolFile",
"ProtocolFileType",
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
doctest_namespace["datadir"] = data_dir
@pytest.fixture(autouse=True)
def _docdir(request):
"""Grabbed from https://stackoverflow.com/a/46991331"""
# Trigger ONLY for the doctests.
doctest_plugin = request.config.pluginmanager.getplugin("doctest")
if isinstance(request.node, doctest_plugin.Doctest... | ise-uiuc/Magicoder-OSS-Instruct-75K |
wget -q --header="Accept: application/json" --header="Authorization: Bearer $TOKEN" -O - "$REDHAT_REGISTRY_API/tags/list" | /opt/app-root/jq -r '."tags"[]' | while read -r TAG ; do echo "$TAG" ; wget --header="Authorization: Bearer $TOKEN" --header="Accept: application/vnd.docker.distribution.manifest.v2+json" -q -O -... | ise-uiuc/Magicoder-OSS-Instruct-75K |
DefaultCallLogInsertionHelper.getInstance(this.getContext());
/**
* Tests cases where valid, normalizable phone numbers are provided.
*/
public void testValidNumber() {
checkNormalization("650-555-1212", "+16505551212");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
make -C /usr/src/linux-headers-$(uname -r) M=$(pwd modules)
echo "[3] Install Driver ..."
sudo mknode /dev/memory c 60 0
sudo chmod 666 /dev/memory
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>DragonSpark.Application/Entities/Queries/Runtime/Materialize/IToArray.cs
using DragonSpark.Model.Sequences;
namespace DragonSpark.Application.Entities.Queries.Runtime.Materialize;
public interface IToArray<T> : IMaterializer<T, Array<T>> {} | ise-uiuc/Magicoder-OSS-Instruct-75K |
contents[: len(start_content)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Foundation
import CoreData
class Ponto: NSManagedObject {
// Insert code here to add functionality to your managed object subclass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
return true
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while (undoLog.GetCount() > opCount_save)
{
vrEulerOp *op = undoLog.GetHead();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not skip_plot:
plt.figure(figsize=(16,4))
plt.subplot(1,2,2)
_tspec = np.linspace(ROI[0], ROI[1]-1/int((ROI[1]-ROI[0])/binsize), int((ROI[1]-ROI[0])/binsize))
plt.bar(_tspec+binsize/2, _xcorr, width=binsize)
plt.vlines([0], 0, np.max(_xcorr)*1.05, linestyle='--', alpha=0.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
def score(self) -> float:
return self.reward
async def debug_draw(self):
action_name, color = self.get_action_name_color(self.action)
self.ai.client.debug_text_screen(action_name, (0.01, 0.01), color, 16)
self.ai.client.debug_text_screen(str(self.score), (0.00, 0.0... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
let str = grid.experiment { _ in xs }
.map { $0 ? "\u{2587}" : " " }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
dieharder -d 102 -g 32 -S 2255464379
| ise-uiuc/Magicoder-OSS-Instruct-75K |
esac
exit 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (std::size_t j = 0; j < simVars.disc.res[1]; j++)
{
for (std::size_t i = 0; i < simVars.disc.res[0]; i++)
{
double x = ((double)i+0.5)/(double)simVars.disc.res[0];
double y = ((double)j+0.5)/(double)simVars.disc.res[1];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"dage": {
"density": "uniform",
"min": -1,
"mean": 0,
"max": 1
},
"dtime": {
"density": "uniform",
"min": -1,
"mean": 0,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Author : <NAME>
Email : <EMAIL>
Affiliation : Personal Development
Description :
Python3 implementation of the gcForest algorithm preesented in Zhou and Feng 2017
(paper can be found here : https://arxiv.org/abs/1702.08835 ).
| ise-uiuc/Magicoder-OSS-Instruct-75K |
swagger: {
consumes: ['application/json'],
info: {
title: 'Fastify template server',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
help='New (minimum) size for the content image, \
keeping the original size if set to 0')
parser.add_argument('--style_size', type=int, default=IMG_SIZE,
help='New (minimum) size for the style image, \
keeping the origin... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
settings.setValue(KeyProblemsUpdateInterval, days);
}
qint32 UVAArenaSettings::maxProblemsTableRowsToFetch()
{
return settings.value(KeyMaxProblemsTableRowsToFetch,
DefaultMaxProblemsTableRowsToFetch).toInt();
}
void UVAArenaSettings::setMaxProblemsTableRowsToFetch(qint32 numRows)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
["export_report_pdf", "defang_urls"],
config,
)
def _process_message(self, data):
file_name = data["file_name"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# <bitbar.author>Jiri</bitbar.author>
# <bitbar.author.github>CzechJiri</bitbar.author.github>
# <bitbar.desc>Displays currently connected WIFI Name</bitbar.desc>
WIFINAME=$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public LocalMemoryManager() {
queryPool =
| ise-uiuc/Magicoder-OSS-Instruct-75K |
link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/'
browser.get(link)
assert browser.find_element_by_class_name('btn-add-to-basket').is_displayed(), f'Basket button not found'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
example_ratelimit.path: example_ratelimit.provider,
example_with_args.path: example_with_args.provider,
},
)
__all__ = ("plugin",)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo gem install termios
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(s)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual('desc', request.principal.description)
def test_usable_as_contextmanager(self):
with zope.publisher.testing.interaction('foo'):
interaction = zope.security.management.getInteraction()
request = interaction.participations[0]
self.assertEqual('foo'... | ise-uiuc/Magicoder-OSS-Instruct-75K |
**self.conan_data["sources"][self.version],
strip_root=True,
destination=self._source_subfolder,
filename="master.tgz"
)
def _configure_cmake(self):
if self._cmake:
return self._cmake
self._cmake = CMake(self)
self._cmake.c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
switch symbol.api {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sys.stdin = codecs.getreader("utf-8")(sys.stdin)
sys.stdout = codecs.getwriter("utf-8")(sys.stdout)
sys.stderr = codecs.getwriter("utf-8")(sys.stderr)
SRC = re.sub(re.compile("#.*?\n|\r|\r\n"), "", sys.stdin.read())
SRC = re.sub(re.compile("\"{3}.*?\"{3}", re.DOTALL), "", SRC)
LINES = [i for i in SRC.splitlines(False) ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Assert.AreEqual(compressed['a'].Length, 1);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use sapling_crypto::jubjub::{
edwards, fs::FsRepr, FixedGenerators, JubjubBls12, JubjubParams, Unknown,
};
mod prover;
mod verifier;
pub use self::prover::SaplingProvingContext;
pub use self::verifier::SaplingVerificationContext;
// This function computes `value` in the exponent of the value commitment base
fn c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
welcome = ' Welcome to Sora KH '
print (f"{Fore.GREEN}\n{welcome.center(60, '#')}\n")
def check_account_id():
account_id = input_control('Account Id', True)
validity = os.path.exists(os.path.join(direct, f'{account_id}.priv'))
while os.path.exists(os.path.join(direct, f'{account_id}.priv')) == False:
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derivative(Debug(format_with = "std::fmt::Debug::fmt"))]
v: u64,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
train_losses.append(running_loss/len(trainloader))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let imageToShare = QRCodeImageOutlet.image?.pngData()
let activityViewController = UIActivityViewController(activityItems: [imageToShare], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view // so that iPads won't crash
// exc... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<p><input type="radio" name="account" id="option4"> <label for="option4">I need to create a Gistler account.</label></p>
<p><input type="radio" name="account" id="option5"> <label for="option5">I already have a Gistler account.</label></p>
<div class="clear10"></div>
<p><input type="chec... | ise-uiuc/Magicoder-OSS-Instruct-75K |
const negateTsLoaderPredicate = (rule: RuleSetRule) => !tsLoaderPredicate(rule);
if (config.module?.rules) {
reporter.info(`[${pluginOptions.pluginName}] adding .tsx file support`);
reporter.info(`[${pluginOptions.pluginName}] current rules: `);
printOutRules(config.module.rules);
(config.module.r... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import pytest
import requests
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@props(['disabled' => false])
<input {{ $disabled ? 'disabled' : '' }} {!! $attributes->merge(['class' => 'rounded-md form-input shadow-sm
border-gray-400 focus:border-indigo-400 focus:ring border border-opacity-90
focus:ring-primary-100 focus:ring-opacity-50']) !!}> | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .assign_titles import assign_titles
assign_titles(session, c, tg_chat, now)
try:
send_titles_message(tg_chat, c)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
from base.runner import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import argparse
import os
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class InlineeditConfig(AppConfig):
label = "inlineedit"
name = 'inlineedit'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
make test-debops-tools
make check
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
package io.nuls.account.constant;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import tweepy
with open("json/bots.json", "r") as bots:
default_bot = json.load(bots)["Default"]
auth = tweepy.OAuthHandler(default_bot["consumer_key"], default_bot["consumer_secret"])
auth.set_access_token(default_bot["access_token"], default_bot["access_token_secret"])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// results.
XCTAssertEqual(MyLibraryActionTest().text, "Hello, World!")
}
static var allTests = [
("testExample", testExample),
]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return response()->json($response);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# *-* coding:utf8 *-*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
left: None,
right: None,
}
}
}
use std::cell::RefCell;
use std::rc::Rc;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for p in factor[num]:
nj=num//p
if dfs(p-1,nj-1) or dfs(nj-1,p-1):
return True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright © 2017年 Millman YANG. All rights reserved.
//
import Foundation
import AudioToolbox
extension AudioStreamBasicDescription {
var packetPerSecond: Int {
get {
return Int(Float(self.mSampleRate)/Float(self.mFramesPerPacket))
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sqlCommand.ExecuteNonQuery();
}
});
InsertRecord(sqlConnection, sqlFile);
SetSuccess(sqlFile);
}
catch (Exception e)
{
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>Harris-2020-Grad-Side-Projects/US-schoolday-temperatures<filename>build/Read_MERRA2.py
'''
Data from:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.client.project_details().json()['source_language_code']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return float(self.num)/float(self.den)
if __name__ == "__main__":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public class Interval<T: DBQueryable>: NSObject, DBQueryable {
var left: T
var right: T
init(left: T, right: T) {
self.left = left
self.right = right
super.init()
}
public func sqlValue() -> String {
return "\(self.left.sqlValue()) and \(self.right.sqlVal... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self,
input_shape,
output_shape,
num_layers=3,
**kwargs,
):
self.ss = KSearchSpace(input_shape, output_shape)
output_dim = output_shape[0]
source = self.ss.input_nodes[0]
out_sub_graph = self.build_sub_graph(source, num_layers)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'GET',
new aws_apigateway.AwsIntegration({
| 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.