seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
continue
except discord.errors.NotFound:
continue
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
\appendix
""",
format='latex')]
def setup(app):
app.add_directive('frontmatter', frontmatter, 1, (0, 0, 0))
app.add_directive('mainmatter', mainmatter, 1, (0, 0, 0))
app.add_directive('appendix', appendix, 1, (0, 0, 0))
app.add_directive('backmatter', backmatter, 1, (0, 0, 0))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._parse_need_run(model_dict, MODEL_META_NAME)
model_param = list(model_dict.get('model').values())[0].get(MODEL_PARAM_NAME)
model_meta = list(model_dict.get('model').values())[0].get(MODEL_META_NAME)
self.model_output = {
MODEL_META_NAME: model_meta,
MODEL_PARAM_NAME: model_param
}
self.inner_param = OneHotInnerParam()
self.inner_param.set_header(list(model_meta.header))
self.inner_param.add_transform_names(list(model_meta.transform_col_names))
col_maps = dict(model_param.col_map)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#-> func1(var1[0], var1[2])
#> /path/to/S13_Debugging.py(40)func1()->8
#-> return num3
# SYNTAX up int1
#T# the up command goes up to an older frame in the stack trace, the amount of frames that go up is int1
output_var1 # (Pdb) up 1
#T# the former prints
#> /path/to/S13_Debugging.py(42)func2()
#-> func1(var1[0], var1[2])
# SYNTAX down int1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._create_log()
self.assertNotEqual(self.log.nbyte(), 0)
if __name__ == '__main__':
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
Created on 04.10.2019
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" reading PlayMusicStats from mongo """
if model == PlayMusicStats:
return 'mongo'
return None
def db_for_write(self, model, **hints):
""" writing PlayMusicStats to mongo """
if model == PlayMusicStats:
return 'mongo'
return None
def allow_relation(self, obj1, obj2, **hints):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'class' => 'himiklab\yii2\recaptcha\ReCaptchaConfig',
'siteKeyV2' => '<KEY>',
'secretV2' => '<KEY>',
// 'siteKeyV3' => 'your siteKey v3',
// 'secretV3' => 'your secret key v3',
],
'translate' => [
'class' => 'richweber\google\translate\Translation',
'key' => '<KEY>',
],
'formatter' => [
'class' => 'yii\i18n\formatter',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
script without specific prior written permission.
THIS SCRIPT IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL RUEL PAGAYON BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
| ise-uiuc/Magicoder-OSS-Instruct-75K |
e.preventDefault()
handleArrowKey(-1, -1)
return false
},
handleArrowRight: (e: KeyboardEvent<HTMLButtonElement>) => {
e.preventDefault()
handleArrowKey(1, 0)
return false
},
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public CreateExclusiveAuditedCommand() {
super(ExclusiveAuditedType.INSTANCE);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// }
//}
while (result > 0) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (args) console.log(args)
}
name: string
version: string
author: string
email: string
description: string
icon: string
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# All attributes are necessary.
# Is an object without actions. Actions to be implemented in next versions
malware_id = None
file = dict()
status = None
upload_date = None
malicious = None
domains = list()
hosts = list()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python_requires='>=3.6',
install_requires=['pymongo>=3.7.2', 'mongoengine>=0.17.0', 'six'],
tests_require=['pytest>=4.4.0', 'PyYAML>=5.1'],
classifiers=[
'Development Status :: 5 - Production/Stable',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class NoiseSettings
{
public enum FilterType { Simple, Rigid };
public FilterType filterType;
[ConditionalHide("filterType", 0)]
public SimpleNoiseSettings simpleNoiseSettings;
[ConditionalHide("filterType", 1)]
public RigidNoiseSettings rigidNoiseSettings;
[System.Serializable]
public class SimpleNoiseSettings
{
public float strength = 1.0f;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.mask = maskView
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@noDerivative public let strides: (Int, Int)
/// The padding algorithm for dilation.
@noDerivative public let padding: Padding
/// The dilation factor for spatial dimensions.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Редактировать', ['update', 'id' => $model->col_id], ['class' => 'btn btn-primary']) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'col_id',
'col_username',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Summed scores saved to '$sumsName'"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
}
}
return 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(len(newdata)):
nd = newdata[i]
if isinstance(nd, str):
nd = nd.encode()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Reflection;
using System.Threading.Tasks;
using uhttpsharp.Listeners;
using uhttpsharp.RequestProviders;
namespace uhttpsharp
{
public sealed class HttpServer : IDisposable
{
//private static readonly ILog Logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog Logger = LogProvider.GetCurrentClassLogger();
private bool _isActive;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nusc_eval.main(render_curves=True, plot_examples=10)
if __name__ == "__main__":
fire.Fire(eval_main) | ise-uiuc/Magicoder-OSS-Instruct-75K |
* args[0]: Type name. (basic, function, struct, Fint, etc...) <br/>
* args[1]: Actual type. (basic, function, struct, etc...)<br/>
* args[2]: Expect type. (basic, function, struct, etc...)<br/>
* @return メッセージ
*/
@Override
public String format(Object... args) {
assert (args.length == 3);
assert (args[0] instanceof String);
assert (args[1] instanceof String);
assert (args[2] instanceof String);
return String.format(message(), args);
}
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
type: "structure",
required: [],
members: {
NatGatewayId: {
shape: {
type: "string"
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.show()
###############################################################################
# The figure shows the main points of Equations (2) and (3):
#
# - The magnetic dipole-dipole response differs by a factor
# :math:`\sigma/(\mathrm{i}\omega\mu)` from the electric dipole-dipole
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case 1:
fprintf(fp, "* Blue ");
break;
default:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
proxy = random.choice(proxy_list)
requests.put(apilink, headers=headers, proxies={"http": proxy, "https": proxy})
except Exception:
proxyfriend()
apilink = 'https://discordapp.com/api/v6/users/@me/relationships/'+ str(userid)
headers={
'Authorization': token,
'Content-Type': 'application/json'
}
if useproxies == 'True':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import selectivesearch
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import numpy as np
#step1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Get the cursor position based on the current platform.
#[cfg(unix)]
pub fn get_cursor_position() -> (u16, u16) {
if unsafe { RAW_MODE_ENABLED } {
if let Ok(pos) = pos_raw() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
interface Parser
{
/**
* Returns an URI object with parsed URI parts.
*
* @param string $uri
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f"selected pod: ip = {pod_ip}, name = {pod_name}")
return pod_ip, pod_name
def send_api_call(self, pod_ip, data, api_resource):
if self.namespace:
out = api_call(pod_ip, data, api_resource, self.namespace)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert "Deleted job" in out
def test_create_job_from_template(capsys, test_bucket):
job_template_name = (
f"projects/{project_number}/locations/{location}/jobTemplates/{template_id}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let endpoint = uri.to_string();
endpoint[..endpoint.len() - pq_len].to_string()
}
/// Translate a hostname into a region name by finding the first part of
/// the domain name that matches a known region.
fn region_name_from_host(host: &str) -> Option<String> {
host.split('.')
.filter_map(|part| Region::from_str(part).ok())
.map(|region| region.name().into())
.next()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// clang-format on
query.bind(1, sideDatabasePath);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print "Domain =", ob.UserDomain
print "Computer Name =", ob.ComputerName
print "User Name =", ob.UserName
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.get_template_path("app.html"), views_path("app_react.html")
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from bleak import BleakClient
async def print_services(mac_addr: str):
async with BleakClient(mac_addr) as client:
svcs = await client.get_services()
print("Services:", svcs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from subprocess import Popen, PIPE
from time import sleep
from datetime import datetime
import board
import digitalio
import adafruit_character_lcd.character_lcd as characterlcd
import os
path_img = 'assets/'
path_log = 'assets/log/log.txt'
# Modify this if you have a different sized character LCD
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$qty=htmlspecialchars($_POST['sel_item_qty']);
$qty=mysqli_real_escape_string($mysqli,$qty);
$col=htmlspecialchars($_POST['sel_item_col']);
$col=mysqli_real_escape_string($mysqli,$col);
$size=htmlspecialchars($_POST['sel_item_size']);
$size=mysqli_real_escape_string($mysqli,$size);
$insert_shoppertrack="INSERT INTO store_shoppertrack(date_added,session_id,sel_item_id,sel_item_qty,sel_item_size,sel_item_color)
VALUES(now(), '".$_COOKIE['PHPSESSID']."','".$id."','".$qty."','".$size."','".$col."');";
$insert_res=mysqli_query($mysqli,$insert_shoppertrack) or die(mysqli_error($mysqli));
header("location: viewCart.php");
exit();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifierBuilder> builder) {
this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of()).build();
return this;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
webView.isHidden = true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
saver = tf.train.Saver(var_list, max_to_keep=1)
tf.global_variables_initializer().run()
for epoch in range(NUM_EPOCHS):
epoch_loss = 0
for train_data, train_labels in zip(train_data_lst, train_label_lst):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wait
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 5. Customize by modifiying environment.yaml and/or Dockerfile heredoc.
# Code adapted from:
# - https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html
# - https://ecsworkshop.com/
# - https://raw.githubusercontent.com/aws/amazon-braket-examples/main/environment.yml
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from model.pulse_shape import (
ShortPulseGenerator,
ExponentialShortPulseGenerator,
PulseGenerator,
)
from scipy.signal import fftconvolve
__COMMON_DISTRIBUTIONS__ = ["exp", "deg"]
def _get_common_distribution(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int idOutput, int idInput)
{
IDTSPath100 newPath = _dft.PathCollection.New();
newPath.AttachPathAndPropagateNotifications(componentStart.OutputCollection[idOutput], componentEnd.InputCollection[idInput]);
}
//@param componentClassID, ist abhängig von SQL Version. Bei SQL2016 beispielsweise 5. Muss für andere Versionen noch kompatibel werden.
private IDTSComponentMetaData100 AddComponent(string componentClassID)
{
IDTSComponentMetaData100 componentMetaData = _dft.ComponentMetaDataCollection.New();
try
{
componentMetaData.ComponentClassID = componentClassID;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
me.image_url = aDecoder.decodeObject(forKey: "image_url") as? String
me.product = aDecoder.decodeObject(forKey: "product") as? String
me.type = aDecoder.decodeObject(forKey: "type") as? String
me.uri = aDecoder.decodeObject(forKey: "uri") as? String
return nil
| ise-uiuc/Magicoder-OSS-Instruct-75K |
. $(dirname $0)/../common.sh
rm -rf $CORPUS fuzz-*.log
mkdir $CORPUS
[ -e $EXECUTABLE_NAME_BASE ] && ./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS -jobs=$JOBS -workers=$JOBS $LIBFUZZER_FLAGS $CORPUS seeds
grep "ERROR: LeakSanitizer" fuzz-0.log || exit 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if j % 2 != 0:
print(j, end=' ')
else:
for j in range(1, num+1):
if j % 2 == 0:
print(' ', j, end='')
print('\n')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
migrations.RemoveField(
model_name='submission',
name='percent',
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
del self.queue_[0]
self.add_neighbours(x, y, grid)
grid[x][y] = 'v'
def solve(self, grid):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
value: Cow::Borrowed(e),
})
.collect::<Vec<_>>(),
);
}
return None;
}
/// Unique id for the element within a resource (for internal references). This may be
/// any string value that does not contain spaces.
pub fn id(&self) -> Option<&str> {
if let Some(Value::String(string)) = self.value.get("id") {
return Some(string);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Constructs an instance.
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</tr>
</thead>
<tbody>
<?php
foreach($consent_purposes as $purpose) { ?>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
---- Materializecss_footer.php contains the links of jQuery cdn script and materialize.min.js ------
----------------------------------------------------------------------------------------------------
---- Author: <NAME> ---------------------------------------------------------------------
--------------------------------------------------------------------------------------------------->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def javaScriptConfirm(self, frame, msg):
return QMessageBox.question(self.view().parentWidget(), None, msg) == QMessageBox.Yes
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.colorbar()
plt.contour(x, y, data, levels=10, linestyles='dashed', colors='k')
plt.axis('equal')
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Шанс ответа в процентах (от 1 до 100).
RESPONSE_CHANCE = 25
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SSHTimeoutError(WolphinException):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
is_battery_full = False
if ( is_battery_full ):
GPIO.output(relay_pin, True)
else :
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod common;
use common::*;
#[test]
fn test_mimc() {
// This may not be cryptographically safe, use
// `OsRng` (for example) in production software.
let mut rng = thread_rng();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# the above is equivalent to
#
# session.close (cleanup=True, terminate=True)
#
# it will thus both clean out the session's database record, and kill
# all remaining pilots (none in our example).
| ise-uiuc/Magicoder-OSS-Instruct-75K |
D = data_input.to_numpy()
Ps = np.array(objective['f']['polyhedrons'])
Vs = np.array(objective['f']['values'])
f = PWL(Ps,Vs)
omega_hypothesis = objective['omega']['hypothesis']
omega_hypothesis_obj = getattr(scipy.stats,omega_hypothesis)
omega_locs = np.array(objective['omega']['locs'])
omega_scales = np.array(objective['omega']['scales'])
lower_bound = omega_locs.min(axis=0)
upper_bound = omega_locs.max(axis=0)
init_value = omega_locs[0,:]
extra = {**extra,**{'lower_bound': lower_bound, 'upper_bound': upper_bound, 'init_value': init_value}}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class GameEvents{
public static PET_SELL_EVENT:string="petSellEvent";
public static PET_CANCELSELL_EVENT:string="petCancelSellEvent";
public static PET_INFO_DETAIL_EVENT: string = "petInfoDetailEvent";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return $translations;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except AttributeError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s = 0
for i in range(n):
s =s- eval(input().replace(' ', '-'))
e = max(e, s)
print(e)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#print(sqlpending)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
follow_redirects=True
)
assert current_user.is_authenticated()
assert url_for('security.logout') in rv.data
def test_logout(self):
self.login()
self.client.get(url_for('security.logout'))
assert not current_user.is_authenticated()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
import os
# Setup the terminal size because the output file is tied to terminal sizing.
os.environ["LINES"] = "25"
os.environ["COLUMNS"] = "200"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export PATH=/usr/java/apache-ant/bin:$PATH
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_message_dict_conversion(self):
m = generate_msg(message_content={'answer': 42}, with_context=True)
mdict = m.to_dict()
self.assertTrue(isinstance(mdict, dict), "Message as_dict method is broken")
compare_to = Message.from_dict(mdict)
self.assertEqual(m.payload['answer'], compare_to.payload['answer'], "Payload not well decoded")
self.assertEqual(m.uuid, compare_to.uuid, "Bad uuid")
self.assertEqual(m.meta['question'], compare_to.meta['question'], "Bad meta")
self.assertEqual(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@requires_module("f90nml")
def test_accumulate_basename():
"""When two (or more) parfiles are passed, the filelist:base_filename should be special-cased"""
namelist_base = f90nml.read(blast_wave_parfile)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not d:
return 'EMPTY'
return "\n\t\t\t" + "\n\t\t\t".join([
f'{key} via {val[1]} (interface "{val[0]}")'
for key, val in d.items()
])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if after > doc.version:
return HttpResponseNotFound('version in the future')
changes = DocumentChange.objects.filter(
document=doc,
version__gt=after).order_by('version')[:50]
out = [c.export() for c in changes]
if len(out) > 0:
last_version = out[-1]['version']
else:
last_version = after
else:
out = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cmd="set"
;;
esac
case "$1" in
-h)
type "usage_dns_$cmd" &>/dev/null && "usage_dns_$cmd"
;;
esac
"cmd_dns_$cmd" "$@"
;;
*)
usage_dns
;;
esac
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, schedulerserver):
self.schedulerserver = schedulerserver
BaseResource.__init__(self)
def render(self, request):
request.setHeader('Content-type', 'text/javascript; charset=UTF-8')
return "{}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Button(abc.ABC):
@abc.abstractmethod
def register_callback(self, callabck):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#import os
#os.environ['CUDA_VISIBLE_DEVICES'] = '0'
if __name__ == "__main__":
executionMode = 'cpu' # or 'gpu'
messengerHost = 'localhost'
messengerPort = 5672
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(1,10):
for j in range(1,10):
result = i * j
print "%4d" % (result),
print
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$SQL = self::db()->prepare("SELECT * FROM `monitors` WHERE `state` = :state");
$SQL->execute(array(":state" => 'online'));
return $SQL->rowCount();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test(self):
user_agent = request.headers['User-Agent'] # NOQA
limit = request.params.get('limit', '10') # NOQA
response.headers.update(_headers)
return _body
class HelloController:
@expose()
def _lookup(self, account_id, *remainder):
return TestController(account_id), remainder
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@pytest.mark.parametrize("form_class", [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
err.description().to_string()
}
fn parse_error() -> String {
"you have to enter two integers (1..3)".into()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Module to plot a pie chart for the profiled sections of the code.
TODO: Fix legend box size conflict. Make font of legends smaller.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
pass
if __name__ == "__main__":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return render_template("wordleui.html", state=session['state'], status=0)
@app.route('/guess', methods=['POST'])
def guess():
if(session['state'] >= 0 and session['state'] <= 5 and not session['gameover']):
#if state within bounds
try:
guess = request.form.get("guess").lower()
except Exception as e:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger = Logger(directory='../logs', name = logname)
#Constants
_, kappa, _ = gauss_smooth_const(args.max_feat, args.std_init)
pen_coeff = pirotta_coeff(args.max_feat, args.max_rew, args.disc,
args.std_init, args.action_vol)
if args.estimator == 'reinforce':
var_bound = reinforce_var_bound(args.max_rew, args.disc, kappa,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::cout << "\t Number of facets :\t" << num_faces(mesh) << std::endl;
return 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if fl_index == 'vcf':
##calculate sample number
sample_num = len(col_list[9:])
thr_miss_sample_num = int(float(sample_num)*(1-float(miss_thr)))
missing_sample_num = 0
for eachitem in col_list:
if './.' == eachitem:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace LMS.Data.Configurations
{
public class BookConfiguration : IEntityTypeConfiguration<Book>
{
public void Configure(EntityTypeBuilder<Book> builder)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public function attributeLabels()
{
return array(
'id' => 'ID',
'userID' => 'User',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert np.all(output == 0.0) | ise-uiuc/Magicoder-OSS-Instruct-75K |
for GICA in groupmelodic_10dim_firsthalf_noSmooth_thr10_spline; do
for ICNUM in `seq 0 9`; do
if [ "$GICA" == "groupmelodic_10dim_firsthalf_noSmooth_thr10_spline" ]; then
DR=DR_output_ttest_n69_corrected
else
DR=DR_output_ttest_n70_corrected
fi
echo $DR
qsub -v EXPERIMENT=Imagene.02 DR_randomise.sh $GICA $DR $ICNUM
sleep 5
done
done | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_getgenerate(self):
try:
log_json = ""
self.assertIsInstance(xbridge_rpc.rpc_connection.getgenerate(), bool)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
// If current is a parent, push a new stack frame with the first child
if let Some(parent) = self.parents.view().get(current) {
self.stack.push(StackFrame {
| 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.