seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PU... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return $time->relativeTime($timeStamp);
}
else {
return $time->format($dateFormat,$timeStamp);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result.camParams.b = atof(it->at(++i).c_str());
result.camParams.fu = atof(it->at(++i).c_str());
result.camParams.fv = atof(it->at(++i).c_str());
result.camParams.cu = atof(it->at(++i).c_str());
result.camParams.cv = atof(it->at(++i).c_str());
} else if (it->at(0) == "DIAGNOISE") { //... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let restartAction = UIAlertAction(title: actionTitle, style: .default) { [weak self] _ in
alertController.dismiss(animated: true, completion: nil)
self?.resetTracking()
}
alertController.addAction(restartAction)
present(alertController, animated: true, completion:... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def check_poco_file():
if not StateUtils.check_variable('poco_file'):
poco_file = str(StateHolder.repository.target_dir if StateHolder.repository is not None
else os.getcwd()) + '/poco.yml'
ColorPrint.print_error(message="Poco file not f... | ise-uiuc/Magicoder-OSS-Instruct-75K |
val = word_dict[w]
val += 1
word_dict[w] = val
# Scan dictionary if the user specified it (assumes one word per line)
if dictionary_file:
with open(dictionary_file) as f:
for line in f:
line = line.lower()
# Filter out symbols
line = re.sub('[^a-zA-Z\']', '', line)
if len(line) > 0... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.gps_log = gps_log
def read_serial(self,testing=False):
if testing: #if you've made an output file by cping from the arduino serial output
with open("Logs/" + str(self.serial_log)) as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// SmallImageAlternateTextField control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import cv2
import numpy as np
import matplotlib.pyplot as plt
# 读取图像添加文字(可用于图像添加水印)
def img_channel(imgPath):
img=cv2.imread(imgPath,cv2.IMREAD_COLOR) # 打开文件
cv2.imshow('Original_img',img )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
:type num: int
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return value.split('/')[-2]
@register.filter(name="encode_url")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
Put(self.onPollComplete, *result)
def onPollComplete(self, ctype, fromUin, membUin, content):
if ctype == 'timeout':
return
contact, member, nameInGroup = \
self.findSender(ctype, fromUin, membUin, self.conf.qq)
if self.detectAtMe(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if i.startswith("!@["):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
callback(**kwargs)
def on_message(self, message):
"""Callback for a message received from a WS client.
Args:
message: A JSON message. If not formatted appropriately, it is
discarded.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Author : <NAME>
Email : saurabh.shrivastava54+ccextractorweb[at]gmail.com
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return Lexeme(lexer, EOS_PATTERN_ID())
def UnknownLexeme(lexer) -> Parser[str]:
return Lexeme(lexer, UNKNOWN_PATTERN_ID()) | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_versions():
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
msg() {
echo " \033[1;32m**\033[0m" "$@"
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
include!("InternetControlMessageProtocolVersion6CodeCertificationPathAdvertisement.rs");
include!("InternetControlMessageProtocolVersion6CodeCertificationPathSolicitation.rs");
include!("InternetControlMessageProtocolVersion6CodeDestinationUnreachable.rs");
include!("InternetControlMessageProtocolVersion6CodeDuplicateA... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Here too
f.close()
elif confirm.lower() in ["n", "no"]:
exit()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return $this->db->where('id_merk', $id)->delete('tb_merk');
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
def write_chunk(chunk: Chunk, byte_: int) -> None:
if 0 > byte_ > 255:
raise ValueError(f"{byte_=} must be in the range [0-255].")
chunk.code.append(byte_)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with tmpdir() as tmp:
tmp_path = Path(tmp)
post_text = md.markdown_text['content']
fnames = md.markdown_text['fname']
touch_md = lambda x: tmp_path / x
for i in range(len(post_text)):
touch_md(fnames[i]).write_text(post_text[i])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self?.searchShouldEndObserver = NotificationCenter.default.addObserver(
forName: .SearchShouldEnd,
object: nil,
queue: nil,
using: { notification in
self?.currentDataTask?.cancel()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public TargetStatus Status { get; set; }
/// <summary>
/// <para xml:lang="de">Ruft einen Wert ab, der angibt, ob die Status-Eigenschaft spezifiziert ist, oder legt diesen fest.</para>
/// <para xml:lang="en">Gets or sets a value indicating whether the Status property is specified.</par... | ise-uiuc/Magicoder-OSS-Instruct-75K |
const auto seperator = (outLevel > 2 && itr != 1)? ", " : "";
const auto andSeperator = (itr == 2 && outLevel > 1)? " and " : "";
const auto compName = to_string(comp.first) + ((comp.second > 1)? "s" : "");
if (comp.second) {
ans += std::to_string(comp.second) + " " + compNam... | ise-uiuc/Magicoder-OSS-Instruct-75K |
except PermissionError as error:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* The monetary price of a bomb when bought or sold.
*/
public readonly bombPrice!: number;
/**
* The amount of cargo space taken up by a Bomb.
*/
public readonly bombSize!: number;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source.close()
### "context"
import yaml
with open(newpath, 'w') as yamlfile:
yaml.dump(midvals, yamlfile)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class d
let b{
struct S<T where B:d{
class A{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
It is assumed the first set of CMPSim output data is for the warmup
instructions, if they exist. This is true because when the CMPSim was run
it should have printed out data at 'warmup_len' intervals.
The last set of data will be for both the representative region and
warmup in... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def arguments():
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", type=str,
help="Path to folder with patients")
parser.add_argument("-o", "--output", type=str,
help="Path to output folder")
parser.add_argument("-a", "--aug", type=in... | ise-uiuc/Magicoder-OSS-Instruct-75K |
computer_guess = random.randint(
starting_number_in_range, ending_number_in_range)
guessed_the_number = input(
f"Is your secret number = {computer_guess}?(Y/N): ").lower()
if guessed_the_number == "N" or guessed_the_number == "n":
user_response = input(
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
const options = {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@Override
public IChunkData createChunkData(String worldName, int chunkX, int chunkZ) {
return createLegacyChunkData(worldName, chunkX, chunkZ, 0, 0);
}
private IChunkData searchChunkDataFromList(List<IChunkData> list, World world, int chunkX, int chunkZ) {
for (int i = 0; i < li... | ise-uiuc/Magicoder-OSS-Instruct-75K |
version = "Unknown"
try:
import muddery
version = muddery.__version__
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo ./install.sh
if [ "$?" -ne 0 ]
then
exit 1
fi
./examples.sh
echo "Done"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (callback.isCancelled()) {
return;
}
}
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FILE *file = NULL;
bool ret = false;
if (ad == NULL) {
dprintf(D_ALWAYS | D_FAILURE,
"classad_visa_write ERROR: Ad is NULL\n");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
define.setLinkBridge(linkBridgeId);
}
}
String uniqueName = define.getId();
// 目前只针对列上放指标进行设置,如果维度要放到列上来,该方法有严重问题
uniqueName = uniqueName.replaceAll("\\{", "").replaceAll("\\}", "");
uniqueName = MetaNameUtil.parseUnique2Na... | ise-uiuc/Magicoder-OSS-Instruct-75K |
ssh_deploy.main(chain, local_path, remote_path, action='check',
files_upload=None, ignore_patterns=None, files_download=None,
*md5sum_args, **md5sum_kwargs):
"""
args = cli()
title = ' [%s] ***' % PROG
print('*' * (80 - len(title)) + title)
print(' Remot... | ise-uiuc/Magicoder-OSS-Instruct-75K |
async def notification_dismiss(self, event):
"""
Handler for the 'notification.dismiss' type event for this consumer's Group.
"""
await self.logger_debug(f"Got notification dismiss {event}")
broker = await self.ensure_broker()
uuid = await self.decode_json(event["uuid... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//when stepper 2 have a value changed
@IBAction func qtyIem2Stepper(_ sender: UIStepper) {
quantityItem2.text = Int(sender.value).description
}
//when stepper 3 have a value changed
@IBAction func qtyItem3Stepper(_ sender: UIStepper) {
quantityItem3.text = Int(sender.value).descripti... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.configuration.update(configuration)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[derive(Debug, Clone)]
pub enum Msg {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
metavar="encryptedfile",
required=True,
help="Encrypted file path.",
)
PARSER.add_argument(
"-logfile",
type=_check_path,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
save(user: User): Observable<User> {
if (!user.id) {
return this.insert(user);
}
return this.update(user);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function one($db = null)
{
return parent::one($db);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
logSponsorLogoChange();
}
}
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
init(numCuenta: String){
self.numCuenta = numCuenta
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
d2rl=False,
num_quantiles=25,
num_quantiles_to_drop=0,
):
if d2rl:
self.name += "-D2RL"
if fn_critic is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'foto_donatur' => $row->foto_donatur,
'status_donasi_barang' => $row->status_donasi_barang,
);
$this->load->view('detail_donasi_barang_form', $data);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"isObjectType",
"isPlainObject",
// Exported from "./_utilities":
"isPropertyKey",
]);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import 'SeedModules.Features/modules/controllers/features';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ppcirc_rep = ppcirc.to_dict()
else:
c0, ppcirc_rep = tkc, None
qcs.append(tk_to_qiskit(c0))
ppcirc_strs.append(json.dumps(ppcirc_rep))
job = self._backend.run(
qcs,
shots=n_shots,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.conf import settings
from django.db.models import F
from django.http import HttpResponse, HttpResponseBadRequest
from PIL import Image
from scone.crop.models import Crop, Picture
ACCEPTED_IMAGE_CONTENT_TYPES = (
'image/bmp',
'image/jpeg',
'image/png',
)
WIDTH_LIMIT = 3840
| ise-uiuc/Magicoder-OSS-Instruct-75K |
to have the "GNU directory variables" (``prefix``, ``exec_prefix``,
``bindir`` and so on); it may be a dict with default values of
keyword arguments to `SConsGnu.AcDirVars.DeclareGVars()`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/**
* @return array
*/
public function getOptions()
{
return $this->options;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
skeleton=true
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'RO-BC' => array('name' => 'Bacău', 'level' => 'county'),
'RO-BN' => array('name' => 'Okręg Bistriţa-Năsăud', 'level' => 'county'),
'RO-BT' => array('name' => 'Botoszany', 'level' => 'county'),
'RO-BV' => array('name' => 'Braszów', 'level' => 'county'),
'RO-BR' => array('name' => 'Braiła', 'level' => 'county'... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
@pipeline(mode_defs=[ModeDefinition("basic")])
def pipeline_for_test():
process_data_for_date()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = [
url(r'^$', views.chart, name = 'demo'),
] | ise-uiuc/Magicoder-OSS-Instruct-75K |
lastName="lastName",
phone="phone",
propertyID=property.id,
staffIDs=[]
)
tenant.save_to_db()
return tenant
yield _create_tenant
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_can_extract_kubernetes_information():
kubernetes = zocalo.util.get_kubernetes_pod_information()
if kubernetes is None:
return
assert kubernetes["node"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private int count;
private String code;
public static Counter getMax(Counter a, Counter b) {
return a.getCount() > b.getCount() ? a : b;
}
public String getCode() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return [value, setParam] as const;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Path folder1 = tempDirectory.resolve("folder1");
Files.createDirectory(folder1);
Path file1 = tempDirectory.resolve("file1");
Files.createFile(file1);
Path folder2 = tempDirectory.resolve("folder2");
Files.createDirectory(folder2);
Path file2 = folder2.resolve("fi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"backend": backend,
"db": db,
}
callback_url = os.environ.get("EBMBOT_CALLBACK_URL", "")
if callback_url:
data["callback_url"] = callback_url
| ise-uiuc/Magicoder-OSS-Instruct-75K |
xacro_path = path.join(get_package_share_directory('bamboomba_description'),
'urdf', 'bamboomba.urdf.xacro')
robot_description = {'robot_description' : Command(['xacro', ' ', xacro_path])}
return LaunchDescription([
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{ // sign
if (v_formula[0] == "-")
{
vector<string> v = trim(v_formula, 1, v_formula.size() - 1);
v_formula = v;
val = -val;
}
auto bt = find_block_tail(v_formula);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
combs = []
for indices in all_indices:
comb = []
for vtx,i in zip(vertices,indices):
comb.append(
np.array([vtx[0],vtx[1],depths[i]]))
combs.append(comb)
return combs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@error('mobile_phone')
<div class="invalid-feedback">
{{ $message }}
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from webwhatsapi import WhatsAPIDriver
from db import DB
from User import User
from StickerSet import StickerSet
from BotMessages import WHATSAPP_MESSAGES
from Constants import STAGES
class BotActions:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@test.idempotent_id('2be020a2-5fdd-423d-8d35-a7ffbc36e9f7')
def test_list_default_quotas(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
in_reply_to_user_id = fields.Field()
in_reply_to_screen_name = fields.Field()
favorited = fields.Field()
user = fields.Object(User)
@classmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case firstPaymentAmount = "FirstPaymentAmount"
case nextPaymentAmount = "NextPaymentAmount"
case finalPaymentAmount = "FinalPaymentAmount"
case supplementaryData = "SupplementaryData"
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LIST_OF_INPUTS="$DATASET_DIR/finish.txt:$MODEL_DIR/finish.txt"
START_PATH="$TRAIN_FEATURES_PREFIX.start.txt"
FINISH_PATH="$TRAIN_FEATURES_PREFIX.finish.txt"
LOCK_PATH="$TRAIN_FEATURES_PREFIX.running.lock"
LAST_OUTPUT="$TRAIN_FEATURES_PATH"
# EXPERIMENT_STATUS=1
# STARTED_BEFORE=No
mkdir -p "$FEATURES_DIR"
#[[[+$includ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sed -E -e "s/\"git-cleanup [^\"]+\"/\"git-cleanup $1\"/" -i.bak main.go || exit 1
rm main.go.bak || exit 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
db = DBSCAN(eps=1, min_samples=minimum_cluster-1, metric=custom_metric, metric_params=params).fit_predict(vector_4d)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
opt = {
'optimizer': {
'type': 'AdamOptimizer',
'kwargs': {
'beta1': 0.9,
'beta2': 0.997,
'epsilon': 1e-9
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Base config class."""
# Flask app config
DEBUG = True
TESTING = True
# token 的过期时间,7200 秒
EXP_SECONDS = 7200
SECRET_KEY = <KEY>
# Root path of project
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import pyGDP
import os
from nose.tools import assert_equal
from nose.tools import assert_not_equal
class TestFeatureCategoricalGridCoverage(object):
def test_submit_FCGC(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C
git fetch --unshallow
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <boost/process/cmd.hpp>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@UseGuards(JwtGuard)
@Post()
async postNews(
@Body() news: postNewsDTO,
@User() user: U
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#your code goes here
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { MenuItemService } from './menu-item.service';
@NgModule(Framing((framing) => framing.provider(MenuItemService)))
export class MenuItemModule {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import cv2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
topic = models.CharField(max_length=100)
device = models.ForeignKey(
Device, on_delete=models.CASCADE, related_name="acl", related_query_name="acl", null=True
)
class Telemetry(models.Model):
device = models.ForeignKey(
Device, on_delete=models.CASCADE, related_name="telemetry", relate... | ise-uiuc/Magicoder-OSS-Instruct-75K |
]
# Using our simple object factory API to start up a new client and connect it to the same port as the server
client = get_new_client(insecure_port=8886, quiet=False)
# Unary->Unary (single) filter. We are using the first value so we expect it to pass
resp = client.filter(cats_in_shelter[0], case... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub const GOOGLE_TTS_MAX_CHARS: usize = 100;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"id",
postgresql.UUID(as_uuid=True),
server_default=sa.text("uuid_generate_v4()"),
nullable=False,
),
sa.Column(
"created_at",
sa.DateTime(timezone=True),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
int s = accumulate(a,a+n,0);
bool t[n+1][s+1];
for(int i=0;i<n+1;i++)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("\nRunning test_setupcall...")
print(jx.setup_libertem())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
os.makedirs('./img')
except FileExistsError:
pass
if viz: plt.show()
plt.savefig('./img/traj_graph' + name)
# lis1 = [2, 3, 4, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 35, 36,... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pipeline.addDelayedStream(source);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void GraphcisEngine::Terminate()
{
DestroyRenderTarget();
GetDevice()->Terminate();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
a_comp_cycle_loss = cycle_loss_fn(A, decode_A(tf.reshape(tf.concat([ \
module.gaussian_noise_layer(attr_emb_b_tilde, std=100), \
module.gaussian_noise_layer(rest_emb_A, std=100)], 1), shape=[1,1,128])... | ise-uiuc/Magicoder-OSS-Instruct-75K |
use std::ffi::{CString, OsStr, OsString};
use std::os::unix::ffi::{OsStrExt, OsStringExt};
/// A string in the format OS APIs prefer to consume. For Unix-style
/// platforms, this is similar to `OsString`, but we also need the
/// strings to be NUL-terminated, so we use `CString`.
pub(crate) type HostString = CString;... | ise-uiuc/Magicoder-OSS-Instruct-75K |
url='https://github.com/milnus/Magphi',
license='MIT license',
description=('A bioinformatics tool allowing for examnination and extraction of genomic features using seed sequences.'),
long_description=LONG_DESCRIPTION,
install_requires=['biopython==1.79',
'pybedtools'],
ke... | 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.