seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
export { respondWithFile } from "https://deno.land/x/pressf@0.2.1/middlewares/pressf-static/mod.ts";
export type { Context } from "https://deno.land/x/pressf@0.2.1/pressf.ts";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@endsection
| ise-uiuc/Magicoder-OSS-Instruct-75K |
replacer.positions.push(input.len());
replacer
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prev_max = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
list1.delete(0,END)
for row in database.view():
list1.insert(END,row)
def report_command():
list1.delete(0,END)
row=database.report()
for i in row:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//region INTERNAL CLASSES
/**
* Input parameters for data source call. Used by GSON to serialize into JSON.
*/
private class InputParameters implements IBaseInput {
@SerializedName("Part_Key")
private int partKey;
int getPartKey() {
return partKey;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
apt-get -y --purge autoremove
apt-get -y purge $(dpkg --list |grep '^rc' |awk '{print $2}')
apt-get -y purge $(dpkg --list |egrep 'linux-image-[0-9]' |awk '{print $3,$2}' |sort -nr |tail -n +2 |grep -v $(uname -r) |awk '{ print $2}')
apt-get -y clean
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# draw_params = dict(matchColor = (0,255,0), # draw matches in green color
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# make output dir
pprint.pprint(args)
if not os.path.isdir(args.dout):
os.makedirs(args.dout)
# load train/valid/tests splits
with open(args.splits) as f:
splits = json.load(f)
# create sanity check split as a small sample of train set
if not 'train_sanity' in splits:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('3rd paragraph run: %s' % doc.paragraphs[1].runs[2].text)
print('4th paragraph run: %s' % doc.paragraphs[1].runs[3].text)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
package com.baidu.brpc.example.standard;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static IServiceCollection AddCoreUI(this IServiceCollection services)
{
services.TryAddSingleton<IPlatformCoreUIProvider>(PlatformUIProvider.Instance);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
continue
assert str(getattr(__builtins__, func)) == f"<built-in function {func}>"
for kl in classes:
obj = getattr(__builtins__, kl)
assert str(obj) == f"<class '{kl}'>", f"erreur pour {kl} : {obj}" | ise-uiuc/Magicoder-OSS-Instruct-75K |
print(part1_score)
print(part2_scores[int(len(part2_scores) / 2)])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ROOT_DIR=$(cd $(dirname $0)/../ && pwd)
VOLUMES="-v $ROOT_DIR:/src"
docker run --rm -ti ${VOLUMES} --workdir=/src -e HOST_USER_ID=$(id -u) -e HOST_USER_GROUP_ID=$(id -g) -e HOST_USER_NAME=$USER approximator/clangformat:4.0 find src \( -name '*.cpp' -o -name '*.h' \) -exec clang-format-4.0 -style=file -i {} \;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scale = 256 / max(H, W)
image = F.interpolate(image, scale_factor=scale, mode="nearest")
return image
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// &skin,
/// "**$0 formula:** *$1*", // the markdown template, interpreted once
/// "Disk", // fills $0
/// "2*π*r", // fills $1. Note that the stars don't mess the markdown
/// );
/// ```
#[macro_export]
macro_rules! mad_print_inline {
($skin: expr, $md: literal $(, $value: expr )* $(,)? ) => {
$skin.print_composite(mad_inline!($md $(, $value)*));
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
: text}
</Tag>
);
};
export default ReadingTime;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(r'^update$', controller.save_or_update),
url(r'^delete$', controller.delete, name="tax_delete"),
(r'^$', controller.index)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
args = super().__getattribute__('args')
return iter(args[0] if args else [super().__getattribute__('func')])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return click.style(status.rjust(STATUS_TEXT_LEN), fg=color) + click.style(' ({})'.format(count).ljust(STATUS_COUNT_LEN), fg=color)
class Node(object):
name = ''
up_instances = []
down_instances = []
def __init__(self, name='', up_instances=[], down_instances=[]):
self.name = name
self.up_instances = sorted(up_instances)
self.down_instances = sorted(down_instances)
def display(self):
name = self.name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn with_float_round_up_to_next_integer() {
crate::test::number_to_integer_with_float(file!(), native, |number, _, result_term| {
prop_assert!(number <= result_term, "{:?} <= {:?}", number, result_term);
Ok(())
})
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use std::path::PathBuf;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mo = object.mo;
massCenter = object.massCenter;
idx = object.idx;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.has_content() and bool(self.protect & self.READABLE)
def is_writeable(self):
"""
@rtype: bool
@return: C{True} if all pages in this region are writeable.
"""
return self.has_content() and bool(self.protect & self.WRITEABLE)
def is_copy_on_write(self):
"""
@rtype: bool
@return: C{True} if all pages in this region are marked as
copy-on-write. This means the pages are writeable, but changes
are not propagated to disk.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## Displaying the results non sorted
| ise-uiuc/Magicoder-OSS-Instruct-75K |
move(view: cardView1, toFrame: beginDraggingFrame, animated: true)
}
beginDraggingFrame = .zero
default: break
}
cardDraggingOccured(cardView1Frame: cardView1.frame, cardView2Frame: cardView2.frame)
}
@objc private func panGestureRecognizer2Occur(_ sender: UIPanGestureRecognizer) {
guard let cardContainerView = sender.view, cardContainerView == cardView2 else { return }
let translation = sender.translation(in: view)
let newY = cardView2.frame.origin.y + translation.y
switch sender.state {
case .began:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
declare(strict_types=1);
namespace TagService\Api\Infrastructure;
use IA\Micro\Kernel as BaseKernel;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.AlterField(
model_name='park',
name='zip_code',
field=models.CharField(blank=True, max_length=5, null=True),
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def generate_csv(path, fields, rows, quote_empty=False):
path = abspath(path)
name = basename(path)
name = re.sub('py$', 'csv', name)
cases = join(dirname(dirname(path)), 'cases')
if not isdir(cases):
makedirs(cases)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
host_stats = validate_json_data(
host_stats, options.site, options.local_disk, workdir)
if options.list_netstat or options.all_netstat:
options.netstat = build_valid_netstat_keys(host_stats)
if options.list_netstat:
for key in sorted(options.netstat):
print key
sys.exit(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fontWeight: '700'
},
textContainer: {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return caps.split(',')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def calibrate(device, target):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>src/main/java/shell/kafkamanager-shutdown.sh<gh_stars>0
#!/bin/bash
pid=`lsof -i :9000|grep java|grep LISTEN|awk '{print $2}'`
if [ x$pid != x ] ; then
kill -9 $pid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// 消费时间(结束),非数据库对像,用于查询
/// </summary>
public DateTime? AddDate_To { get; set; }
/// <summary>
/// 消费金额(开始),非数据库对像,用于查询
/// </summary>
public decimal? ConsumeMoney_From { get; set; }
/// <summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Represents a generic exception thrown by Crackle.
* N.B. Crackle also throws some SPL exceptions.
* @author <NAME>
*/
abstract class CrackleException extends Exception {
/**
* Initialise a new Crackle exception with message.
* @param string $message A description of why this exception is being created.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param string $nom
*
* @return Service
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from app.extension import db
def init_database(drop=False, sql_file=None):
if drop:
db.drop_all()
db.create_all()
if sql_file:
with current_app.open_resource(sql_file) as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.fontbuf
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@extends('layouts.menu')
@section('content') | ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* @author <NAME> <<EMAIL>>
*/
class SourceNotFoundException extends \Exception implements ExceptionInterface
{
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f'{animation_y._y.variable_name};'
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except:
# don't care about boundaries
pass
print(count)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn hardware_acceleration(&mut self, val: HardwareAcceleration) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("hardwareAcceleration"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
add_success = 'add_{}_success'
delete_success = 'delete_{}_success'
__all__ = ['no_exists', 'exception_occurred', 'no_modification_made',
'no_required_args', 'add_success', 'delete_success']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace TesterCall.Services.Usage.Formatting.Interfaces
{
public interface IAddContentServiceFactory
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@{
ViewData["Title"] = "All";
}
<h3 class="text-white">Градове от секция "Полезно"</h3>
<ol>
@foreach (var item in Model.TownsNames.OrderBy(x => x))
{
<li class="text-white"><a class="text-white" href="">@item</a></li>
}
</ol>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ty::ReStatic |
ty::ReEmpty => {
// No variant fields to hash for these ...
}
ty::ReLateBound(db, ty::BrAnon(i)) => {
db.depth.hash_stable(hcx, hasher);
i.hash_stable(hcx, hasher);
}
ty::ReLateBound(db, ty::BrNamed(def_id, name)) => {
db.depth.hash_stable(hcx, hasher);
def_id.hash_stable(hcx, hasher);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import pickle
from scipy.sparse import csr_matrix
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Préparation de la requête et envoi des data à la BDD
$create_new_collect = $bdd->prepare(
'INSERT INTO collects(collect_site, collect_source, object_type, object_sub_type, object_weight, collect_date)
VALUES(:collect_site, :collect_source, :object_type, :object_sub_type, :object_weight, now())');
$create_new_collect->execute(array(
'collect_site' => $_SESSION['site'],
'collect_source' => $_POST['collect_source'],
'object_type' => $object_type,
'object_sub_type' => $object_sub_type,
'object_weight' => $object_weight));
$create_new_collect->closeCursor();
?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
import net.minecraft.world.server.ServerWorld;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fml.network.NetworkEvent;
import java.util.function.Supplier;
public class DumpLavaFurnace {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//# sourceMappingURL=native-audio-context-constructor.d.ts.map | ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.utils.translation import gettext_lazy as _
class ClasseViagem(models.TextChoices):
ECONOMICA = 'ECO', _('Econômica')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'registry': registry_id,
'user': user_id,
'type': type,
'resourceName': resourceName,
'action': action
}
return opa.compile(q='data.documentdb.example.allow==true',
input=input,
unknowns=['permissions'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert args.maxsize > 10000000 # Shards must be a minimum of 10+ MB
assert args.maxcount < 1000000 # Shards must contain a maximum of 1,000,000 samples each
limit_num_samples = 200 if args.debug else np.inf
# if not os.path.isdir(os.path.join(args.data, "train")):
# print(f"{args.data}: should be directory containing ImageNet", file=sys.stderr)
# print(f"suitable as argument for torchvision.datasets.ImageNet(...)", file=sys.stderr)
# sys.exit(1)
# if not os.path.isdir(os.path.join(args.shards, ".")):
# print(f"{args.shards}: should be a writable destination directory for shards", file=sys.stderr)
# sys.exit(1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
unset($options['url']);
parent::__construct($options, $attr);
}
/**
* Set the URL of the link
*
* @param string $url
* @return Hyperlink $this
*/
public function setUrl($url)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import React from "react";
const SessionInfo: React.FC = () => {
return null;
};
export default SessionInfo;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
GameObject[] rootObjects = scene.GetRootGameObjects();
for ( int i = 0; i < rootObjects.Length; i++ )
{
GameObject rootObject = rootObjects[i];
if ( rootObject.GetComponent<GameObjectContext>() == null )
{
GetInjectableMonoBehavioursNonAlloc( rootObject, ref behaviors );
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
course_name = getattr(oauth, 'context_title', None) # Basics on IT
if course_id is None or course_label is None or course_name is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fp.write(json.dumps(tx.to_tuple()) + "\n")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return false;
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
void
Inst_Handler_Impl::install_instance (const ::Deployment::DeploymentPlan & plan,
::CORBA::ULong instanceRef,
::CORBA::Any_out instance_reference)
{
CORBA::Any *outany (0);
ACE_NEW_THROW_EX (outany,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
} //last closing bracket for the class | ise-uiuc/Magicoder-OSS-Instruct-75K |
:param logp:
:param fpdr:
:param nvalues:
:param path:
:return:
"""
# Calculate the range of metallicity values
metallicity_range = np.linspace(min_met, max_met, nvalues)
seds = dict()
for met in metallicity_range:
# Simulate the SED and add it to the dictionary
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
namespace App\Http\Controllers;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
score, bboxes = test_tools.bboxes_sort(score, bboxes)
rscores, rbboxes = test_tools.bboxes_nms_batch(score, bboxes,
nms_threshold=FLAGS.nms_threshold,
keep_top_k=FLAGS.keep_top_k)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(chunk_seq) > 0:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rs.setMsg("获取送达企业列表失败");
}
return rs;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def newmeth(self, start):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
F_dez=np.zeros((N_trials,N_chans*N_class*n_harmonicas)) #vetor de trials X (canais*classes)
F_onze=np.zeros((N_trials,N_chans*N_class*n_harmonicas))
F_doze=np.zeros((N_trials,N_chans*N_class*n_harmonicas))
F_treze=np.zeros((N_trials,N_chans*N_class*n_harmonicas))
for trial in range(0,N_trials):
Chans_XY=0
for chans in val_chans-1:
a = abs(fft(data10[:,chans,trial])) # roda pela posição de N_pos 10,11,12,13
b = abs(fft(data11[:,chans,trial]))
c = abs(fft(data12[:,chans,trial]))
d = abs(fft(data13[:,chans,trial]))
F_dez[trial,Chans_XY+np.array(range(0,n_features))] = a[N_pos[range(0,n_features)]]; # roda pela posição de N_pos 10,11,12,13
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def capitalize(string, lower_rest=False):
return string[:1].upper() + (string[1:].lower() if lower_rest else string[1:])
# capitalize('fooBar') # 'FooBar'
# capitalize('fooBar', True) # 'Foobar'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def build(info, site_api):
settings = site_api.get_settings()
core_basics_html = site_api.mdtohtml('modules/{}/data/core_basics.md'.format(info['module_name']))
site_api.create_file(
info,
'pystandard.html',
'{}/pystandard.html'.format(settings['output_folder']),
core_basics=core_basics_html) | ise-uiuc/Magicoder-OSS-Instruct-75K |
quest = input("Vocẽ esteve no local do crime: ")
perguntas.append(quest)
quest = input("Você mora perto da vitima? ")
perguntas.append(quest)
quest = input("Devia para a vitima? ")
perguntas.append(quest)
quest = input("Já trabalhou com a vitima? ")
perguntas.append(quest)
while ct <= len(perguntas) - 1:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo docker build -t php71-apache .
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super.onCreate();
init();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
c.NotebookApp.token = ''
c.NotebookApp.password = ''
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8081
c.NotebookApp.allow_remote_access = True
c.NotebookApp.allow_origin_pat = '(^https://8081-dot-[0-9]+-dot-devshell\.appspot\.com$)|(^https://colab\.research\.google\.com$)'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@objc static func controller(parent: WelcomePageControllerProtocol) -> WelcomePageController? {
guard WelcomePageController.shouldShowWelcome() else {
return nil
}
let vc = WelcomePageController(transitionStyle: .scroll ,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from switch_model.reporting import write_table
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# rm 16.png 32.png 48.png 128.png 256.png 512.png
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'pjActionRequired' => true
)
)
);
public $i18n = array('name', 'description');
public static function factory($attr=array())
{
return new pjServiceModel($attr);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .canonical_resampling import ResampleClassifier
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
* Gets an integer input from the user
*/
int get_user_input()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model.VisitStatement(this, type, member, statement.Else, statement);
}
public void VisitStatement(DB_Type type, DB_Member member, DB_LocalDeclarationStatementSyntax statement, DB_StatementSyntax outer)
{
VisitDeclareVairable(type, member, statement, statement.Declaration);
}
void VisitDeclareVairable(DB_Type type, DB_Member method, DB_StatementSyntax statement, VariableDeclarationSyntax Declaration)
{
foreach (var e in Declaration.Variables)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:type colecao: str
:param repostas_prompts: lista de respostas para prompts do relatório
:type repostas_prompts: List[str]
:param timeout_segundos_segundos: tempo máximo de espera em segundos
:type timeout_segundos_segundos: int, opcional
:param truncar_colecao: `True` se coleção deve ser truncada antes da
inserção e `False` caso contrário
:type truncar_colecao: bool
| ise-uiuc/Magicoder-OSS-Instruct-75K |
length = i * 20
some_bools = [random.random() > .5 for _ in xrange(length)]
bitstring = Bitstring.Bitstring.fromBools(some_bools)
for ix in xrange(length):
self.assertEqual(some_bools[ix], bitstring[ix])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public Date getGmtGreateMax() {
return gmtGreateMax;
}
public void setGmtGreateMax(Date gmtGreateMax) {
this.gmtGreateMax = gmtGreateMax;
}
public Date getGmtModify() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
long_description=long_description,
long_description_content_type="text/markdown",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#node.ssh.execute('wget -c -P /opt/software/ucsc/287 http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64.v287/blat/blat && chmod +x /opt/software/ucsc/287/blat')
#node.ssh.execute('wget -c -P /opt/software/ucsc/287 http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64.v287/faToTwoBit && chmod +x /opt/software/ucsc/287/faToTwoBit')
#node.ssh.execute('wget -c -P /opt/software/ucsc/287 http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64.v287/bedGraphToBigWig && chmod +x /opt/software/ucsc/287/bedGraphToBigWig')
node.ssh.execute('mkdir -p /usr/local/Modules/applications/ucsc-tools/;touch /usr/local/Modules/applications/ucsc-tools/287')
node.ssh.execute('echo "#%Module" >> /usr/local/Modules/applications/ucsc-tools/287')
node.ssh.execute('echo "set root /opt/software/ucsc/287" >> /usr/local/Modules/applications/ucsc-tools/287')
node.ssh.execute('echo -e "prepend-path\tPATH\t\$root" >> /usr/local/Modules/applications/ucsc-tools/287')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
int bytePos = this.totalBits / 8;
if (bytePos > this.streamBytes.Count-1 || totalBits == 0)
{
this.streamBytes.Add(0);
}
if (val)
{
int currentByteBit = 7 - (this.totalBits % 8);
this.streamBytes[bytePos] |= (byte)(1 << currentByteBit);
}
this.totalBits++;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for n in reversed(range(1,maxChoosableInteger)):
t = 1<<n
if t & selected: continue
choice = selected|t
if not can_win(choice,current+n): return True
return False
return can_win(0,0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
import os.path
import logging
# ---------------------------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result=[item for item in itemList if item['id'] == id]
if len(result) > 0:
return restapihelper.generateItemAlreadyExists( id )
appData = json.loads( request.data )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"path": None,
"prefix": "show_fraction",
"dpi": None,
"ext": "pdf",
"transparent": True,
"close": True,
"verbose": True,
}
s_kwargs = update_dict(s_kwargs, save_kwargs)
save_fig(**s_kwargs)
elif save_show_or_return == "show":
plt.tight_layout()
plt.show()
elif save_show_or_return == "return":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ind_11 = i * 8
ind_12 = ind_11 + 8
for j in range(img.shape[1]//8):
ind_21 = j * 8
ind_22 = ind_21 + 8
result[ind_11:ind_12, ind_21:ind_22, 0] = np.max(img[ind_11:ind_12, ind_21:ind_22, 0])
result[ind_11:ind_12, ind_21:ind_22, 1] = np.max(img[ind_11:ind_12, ind_21:ind_22, 1])
result[ind_11:ind_12, ind_21:ind_22, 2] = np.max(img[ind_11:ind_12, ind_21:ind_22, 2])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# ensure that a normal user can't edit a locked article
self.login_as_user()
resp = self.client.get('/wiki/locked/edit/')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
JAVA_HOME=/home/daijin/.sdkman/candidates/java/11.0.1-open /usr/bin/mvn "-Dexec.args=-classpath %classpath com.mycompany.jettytest.EmbeddedJettyMain" -Dexec.executable=java -Dexec.classpathScope=runtime org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param string $directResponse
* @return self
*/
public function setDirectResponse($directResponse)
| 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.