seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
// Assign the myObject variable only after all objects have been instantiated
OFDeserializer.planner.DeferConnection ( ( OFSerializedObject so ) => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
strncpy(str, "0987654321", strlen(str));
}
/* ecall_pointer_string_const:
* const [string] defines a string that cannot be modified.
*/
void ecall_pointer_string_const(const char *str)
{
char* temp = new char[strlen(str)];
strncpy(temp, str, strlen(str));
delete []temp;
}
/* ecall_pointer_size:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
area.append(pointToKey(x, y))
for nei_x, nei_y in getNeighbors(grid, x, y):
if visited[nei_x][nei_y]:
continue
visited[nei_x][nei_y] == True
q.put((nei_x, nei_y))
return area
| ise-uiuc/Magicoder-OSS-Instruct-75K |
port=dbconfig['port'],
)
@cmdmethod
def configversion(self, args):
"""Check the experiment config version compatible with this installation of Triage"""
print(CONFIG_VERSION)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ModifyZonesOperation: BaseCloudKitOperation {
/// Used by subclasses to check if zone operation needs to be executed
var shouldExecuteOperation: Bool {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public void setPhase(HttpFilterType phase) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.configuration.configuration_command import ConfigurationCommand
from pyopenproject.model.configuration import Configuration
class Find(ConfigurationCommand):
def __init__(self, connection):
"""Constructor for class Find, from ConfigurationCommand.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Use reflection to get the correct subscription reference object
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def testCtime(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python3 gcp.py & | ise-uiuc/Magicoder-OSS-Instruct-75K |
Revises: <PASSWORD>
Create Date: 2016-03-07 12:00:50.283535
"""
# revision identifiers, used by Alembic.
revision = 'a45942d815f'
down_revision = '<PASSWORD>'
from alembic import op
import sqlalchemy as sa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
float value = (float) animation.getAnimatedValue();
view.setScaleX(value);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "misc.h"
bool starts_with(const char *x, const char *s)
{
size_t nx = strlen(x), ns = strlen(s);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# This is how it's done:
app.delegate_folder("/static/", kali.StaticFolder(os.path.dirname(__file__)))
# This is enough to have an index page.
@app.function('/')
def hello(): return __doc__
kali.serve_http(app)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class FibonacciTailRecursionTest(BaseTest):
def test_zero(self):
self.check(f=naive_fib, xr=0, n=0)
def test_one(self):
self.check(f=naive_fib, xr=1, n=1)
def test_two(self):
self.check(f=naive_fib, xr=1, n=2)
def test_three(self):
self.check(f=naive_fib, xr=2, n=3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(isalpha(input_file[i]))
input_file[i] = (char)((cipher[p++]%CHAR_SET_SIZE)+LOWER_LIMIT);
cout<<"\nCipher\n";
for(int i : cipher)
cout<<mod_plain(i)<<" ";
write_file(output_file, input_file);
}
void decrypt_file(string input_file, string output_file)
{
int size = KeyMatrix.size(), p=0;
vector<LONG> u_data, plain;
Matrix data_matrix;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.sheet(isPresented: $showingProfile) {
ProfileHost()
.environmentObject(modelData)
}
}
}
}
struct CategoryHome_Previews: PreviewProvider {
static var previews: some View {
CategoryHome()
.environmentObject(ModelData())
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"http://jservice.io/api/categories?count="
+ str(categoriesPerPage)
+ "&offset="
+ str(page)
)
with urllib.request.urlopen(urlPath) as url:
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018 JiNong, Inc.
# All right reserved.
#
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.awt.event.*;
import javax.swing.*;
import org.jhotdraw.gui.plaf.palette.*;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uint b = 0, c = 0;
while (!found && a < 333)
{
b = a + 1;
while (!found && b < 500)
{
c = 1000 - b - a;
if (a*a + b*b == c*c)
{
found = true;
printf("%u, %u, %u, %u\n", a, b, c, a*b*c);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Check whether large_image can return a tile with tiff sources."""
test_url = 'https://data.kitware.com/api/v1/item/{}/download'.format(item)
urllib.urlretrieve(test_url, output)
image = large_image.getTileSource(output)
# Make sure it is the tiff tile source
assert isinstance(image, large_image.tilesource.TiffFileTileSource)
# Make sure we can get a tile without an exception
assert type(image.getTile(0, 0, 0)) == str
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('\n[get_wbia_patch_siam_dataset] FINISH\n\n')
# hack for caching num_labels
labels = ut.load_data(labels_fpath)
num_labels = len(labels)
dataset = DataSet.new_training_set(
alias_key=alias_key,
data_fpath=data_fpath,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Rectangle bounds = new Rectangle();
int availableWidth = parent.getMaximumSize().width;
int currentX = 0;
int height = 0;
final int reservedWidthForOverflow;
final Component[] componentsWithoutOverflow;
if (myShowOnOverflowComponent == null) {
reservedWidthForOverflow = 0;
componentsWithoutOverflow = parent.getComponents();
} else {
reservedWidthForOverflow = myHorizontalGap + myShowOnOverflowComponent.getWidth();
componentsWithoutOverflow = ArrayUtil.remove(parent.getComponents(), myShowOnOverflowComponent);
myShowOnOverflowComponent.setVisible(false);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wget http://download.kiwix.org/bin/0.9/kiwix-0.9-win.zip
wget http://download.kiwix.org/bin/0.9/kiwix-0.9.dmg
wget https://sourceforge.net/projects/kiwix/files/
wget http://softlayer-ams.dl.sourceforge.net/project/kiwix/0.9/kiwix-0.9-linux-i686.tar.bz2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from torch.utils.data import Dataset, DataLoader
class CIFAR10Loader(Dataset):
'''Data loader for cifar10 dataset'''
def __init__(self, data_path='data/cifar-10-batches-py', mode='train', transform=None):
self.data_path = data_path
self.transform = transform
self.mode = mode
self.data = []
self.labels = []
self._init_loader()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
VALUES(20005, 2, 'BR03', 100, 10.99);")
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
VALUES(20006, 1, 'BR01', 20, 5.99);")
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
VALUES(20006, 2, 'BR02', 10, 8.99);")
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
VALUES(20006, 3, 'BR03', 10, 11.99);")
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
VALUES(20007, 1, 'BR03', 50, 11.49);")
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
VALUES(20007, 2, 'BNBG01', 100, 2.99);")
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
VALUES(20007, 3, 'BNBG02', 100, 2.99);")
cursor.execute("INSERT INTO OrderItems(order_num, order_item, prod_id, quantity, item_price) \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
declare module '*.svg' {
import Svg from 'react-native-svg';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Hello world!")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
filter_params[field] = slug
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* New exception class in case if an order was not found
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
majors = json.load(majors_file)
for major in majors:
major_entry = Major(name=major)
try:
major_entry.save()
except IntegrityError:
pass
def _create_minors(self):
base_path = path.dirname(__file__)
minors_path = path.abspath(path.join(base_path, "..", "..", "minors.json"))
with open(minors_path) as minors_file:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return 0;
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
* Input: nums = [1,2,3,1,1,3]
* Output: 4
* Explanation: There are 4 good pairs (0,3), (0,4), (3,4), (2,5) 0-indexed.
*
*
* Example 2:
*
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
label = preprocessing.LabelEncoder()
# Convertir strings en numeros
region_guatemala2 = label.fit_transform(region_guatemala)
x = np.array([
[region_guatemala2[0],no_fallecidos[0]],[region_guatemala2[1],no_fallecidos[1]],[region_guatemala2[2],no_fallecidos[2]],
[region_guatemala2[3],no_fallecidos[3]],[region_guatemala2[4],no_fallecidos[4]],[region_guatemala2[5],no_fallecidos[5]],
[region_guatemala2[6],no_fallecidos[6]],[region_guatemala2[7],no_fallecidos[7]],[region_guatemala2[8],no_fallecidos[8]],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
bReset |= this.Opl.ResetMembers(check, agentType, clear, method, property);
}
if (this.Opr1 != null)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public function __construct()
{
parent::__construct();
$this->objClient = new \GuzzleHttp\Client();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use conch_runtime::env::{ArgsEnv, DefaultEnvArc, DefaultEnvConfigArc, SetArgumentsEnvironment};
use conch_runtime::spawn::{sequence, sequence_exact};
use conch_runtime::ExitStatus;
use std::collections::VecDeque;
use std::future::Future;
use std::sync::Arc;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wfc_cutoff = res["final_output_parameters"]["wfc_cutoff"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if code == value:
return value_fx
return 'fade'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## def test_subcrit_singlephase_consistency():
## for Fluid in sorted(CoolProp.__fluids__):
## T = (Props(Fluid,'Tmin')+Props(Fluid,'Tcrit'))/2.0
## for mode in modes:
## rhoL = Props('D','T',T,'Q',0,Fluid)
## rhoV = Props('D','T',T,'Q',1,Fluid)
## for rho in [rhoL+0.1, rhoV*0.9]:
## for inputs in singlephase_inputs:
## for unit_system in ['SI','kSI']:
## yield check_consistency,Fluid,mode,unit_system,T,rho,inputs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{name:'压疮评估',key:'yc'},
{name:'其他事件',key:'qt'},
{name:'跌倒坠床',key:'ddzc'},
{name:'管路事件',key:'gl'},
{name:'隐患事件',key:'yh'},
{name:'给药事件',key:'gy'},
{name:'职业暴露',key:'zybl'},
{name:'零事件',key:'lsj'},
{name:'合计',key:'hj'}
]
}
export const EVENT_LEVEL=
[{value:"110",text:"所有等级"},{value:"129",text:"I级事件"},{value:"130",text:"II级事件"},{value:"131",text:"III级事件"},{value:"122",text:"IV级事件"},{value:"--",text:"无"}]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class BodyPart(Enum):
HEAD = 0
BODY = 1
ARMS = 2
WAIST = 3
LEGS = 4
CHARM = 5
class EquipmentPiece:
def __init__(self, name, body_part, skills):
self.name = name
self.body_part = body_part
self.skills = skills
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
@Override
public Acl readAclById( ObjectIdentity object ) throws NotFoundException {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Reconstructs a timestamp from a partial timestamp, that only has the least significant bytes.
:param currentTimestamp: Current time, obtained with time.time().
| ise-uiuc/Magicoder-OSS-Instruct-75K |
&& arch::Current::is_userspace_address(segment_to_add.end_address()))
{
false
} else {
self.segments.push(segment_to_add);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn evaluate(&self) -> Result<i64, ()> {
let right = self.right.evaluate_int()?;
Ok(self.op.apply(right))
}
pub fn is_constant(&self) -> bool {
self.right.is_constant()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
// Add collection event changed listener
if (e.NewValue is INotifyCollectionChanged newcollection)
{
newcollection.CollectionChanged += this.CollectionChanged;
}
}
}
base.OnPropertyChanged(e);
}
/// -------------------------------------------------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/sh
set -e
javac Main.java
java Main $@
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ServiceTypeController extends AbstractActionController
{
public static function create(ContainerInterface $container)
{
return new static($container->get('Doctrine\ORM\EntityManager'));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import numpy as np # numpy
from random import randint # for random values
import threading # for deamon processing
from pathlib import Path # for directory information
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
};
/**
* Set album has no more image
*/
export const setLastAlbumImage = (albumId: string, imageId: string) => {
return {
type: ImageGalleryActionType.LAST_ALBUM_IMAGE_ID,
payload: { albumId, imageId },
};
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace bolder { namespace math {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while True:
ins, outs, ex = select.select([s], [], [], 0)
for inm in ins:
gameEvent = pickle.loads(inm.recv(BUFFERSIZE))
if gameEvent[0] == "id update":
playerid = gameEvent[1]
position = gameEvent[2]
cc.x, cc.y = INITIAL_PADDLE_POSITIONS[position]
cc.vertical = position <= 1
cc.side = SIDE_ENUMERATION[position]
if position > 3:
raise NotImplementedError("Too many players")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from functools import reduce
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
input_src_ = torch.randn(input_shape, device="cpu")
input_ = input_src_[::3, fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b, ::3].detach().requires_grad_(True)
input_cuda_ = (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.io.DataOutputStream;
import java.io.IOException;
public class TileEntityBase extends TileEntity {
public String getGuiClassName() {
return null;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RepoInfo = NamedTuple("RepoInfo", "scm", "uri", "branch", "setup_configurations", path=None)
matches = []
local_only = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fake.name(),
fake.random_int(min=18, max=80, step=1),
fake.street_address(),
fake.city(),
fake.state(),
fake.zipcode(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>deathnote/admin/dfd33435j432b/upload/s3cret/kira_id.php<gh_stars>1-10
| ise-uiuc/Magicoder-OSS-Instruct-75K |
F: FnOnce(&wgpu::TextureView) -> Result<()>,
{
self.renderer
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.rowCustomBrightnessShortcuts.isHidden = false
} else {
self.rowKeyboardBrightnessPopUp.bottomPadding = -6
self.rowKeyboardBrightnessText.isHidden = true
self.rowDisableAltBrightnessKeysCheck.isHidden = true
self.rowDisableAltBrightnessKeysText.isHidden = true
self.rowCustomBrightnessShortcuts.isHidden = true
}
if self.keyboardBrightness.selectedTag() == KeyboardBrightness.disabled.rawValue {
self.allScreens.isEnabled = false
self.useFocusInsteadOfMouse.isEnabled = false
self.useFineScale.isEnabled = false
self.separateCombinedScale.isEnabled = false
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Este script simplesmente le todos os arquivos necessarios e gera o
relatorio com as preferencias e disciplinas pre-atribuidas
"""
import funcoes_leitura as leitura
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::unordered_map<uint64_t, uint64_t> mMaterialPipelineVariants;
GraphicsPipelineDescription mDesc;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//! <img src="https://img.shields.io/crates/v/fp-rs.svg?style=flat-square"
//! alt="Crates.io version" />
//! </a>
//! <!-- Downloads -->
//! <a href="https://crates.io/crates/fp-rs">
//! <img src="https://img.shields.io/crates/d/fp-rs.svg?style=flat-square"
//! alt="Download" />
//! </a>
//! </div>
//!
//!
pub struct WIP(());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wanted_include = os.path.normpath(program_dir + '/../original')
wanted_config = os.path.normpath(program_dir + '/../original/config')
def usage():
print """\
usage: find_headers.py [options] (file|directory|@listfile)+
options:
-d <include-dir> specify alternate kernel headers
'include' directory
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private final IMovementStateFacade movementStateService;
@Autowired
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return to_string(id);
}
} // namespace ripple
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
type = DocumentType.DOC_WEALTH
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use self::find::*;
pub use self::generator::*;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NUTRICIONAL,
PSICOLOGICA,
CPQ,
CPSV,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#notfound .notfound {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.__is_download_finished = Event()
def register_download_command(self, observation, start_date, end_date):
cmd_parameters = DownloadCommandParams(
self.__working_dir, self.__create_dir_name('archive', start_date, end_date), self.__modules)
waterfallDownloadCommand = ArchiveDownloadCommand(
cmd_parameters, observation, self.__archive_modules_commands)
self.__archive_commands.put(waterfallDownloadCommand)
def register_end_command(self, start_date, end_date):
if self.__end_modules is not None:
dir_name = self.__create_dir_name('archive', start_date, end_date)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using namespace matrixAbstractPackage; /** @skip package klasy wirtualnej (bazowej) macierzy */
using namespace generalMatrixPackage; /** @skip package klasy pochodnej (macierze standardowa) */
using namespace diagonalMatrixPackage; /** @skip package klasy pochodnej (macierze diagonalna) */
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"status_url": {
"address": "https://example.com/webhooks/status",
"http_method": "POST"
}
}
}
}
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
token_type = models.IntegerField(choices=TOKEN_TYPE)
association = models.IntegerField(choices=KEY_ENVIRONMENT, default = 4)
token = models.BinaryField()
is_active = models.BooleanField(default = True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def token_type_verbose(self):
return dict(AerobridgeCredential.TOKEN_TYPE)[self.token_type] | ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<input type="hidden" name="department_id" value="" class="department_id">
</div> | ise-uiuc/Magicoder-OSS-Instruct-75K |
return (seg_ns, seg_lens, seg_means, arm_lengths)
def header():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import logging
from abc import ABC
from typing import Dict, Optional, Type, Union
import torch
from pytorch_lightning import LightningModule
from torch.nn.modules import Module
from torch.utils.data import DataLoader
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
if (m == null) {
m = message;
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
access_token
Awair API access token (https://developer.getawair.com/console/access-token)
device_id
Device ID
device_type
Device type
| ise-uiuc/Magicoder-OSS-Instruct-75K |
style={{ position: 'absolute', top: '0', left: '1rem' }}
htmlFor={name}
children={label}
textColor={isError || fieldError ? 'error' : undefined}
/>
</FieldInput>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
odom.twist.twist.angular.x = 0
odom.twist.twist.angular.y = 0
odom.twist.twist.angular.z = vx_vth[1]
return odom
#pub = Publisher("odom", "base_link")
#print(pub.createNavMsg(10, [1,1,0,10], [1,5]))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using namespace std;
int main() {
int MAX = 99999999;
int dis[20001] = {0}, u[200001] ,v[200001], l[200001];
fill(dis + 2, dis + 20001, MAX);
int n, m;
cin >> n >> m;
for(int i=1;i<=m;i++)
cin>>u[i]>>v[i]>>l[i];
for (int j = 1; j < n; j++) {
bool all_finished = true;
for (int i = 1; i <= m; i++) {
if (dis[v[i]] > dis[u[i]] + l[i]) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# page wise precision: per tol, per line
self.result.page_wise_per_dist_tol_tick_per_line_precision.append(per_dist_tol_tick_per_line_precision)
# page wise precision: per tol (summed over lines)
per_dist_tol_tick_precision = np.sum(per_dist_tol_tick_per_line_precision, axis=1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# print(report)
# f = open(config.REPORT, "w")
# f.write(report)
# f.close() | ise-uiuc/Magicoder-OSS-Instruct-75K |
nof_coefficients = 5
# Discretization and chain mapping type:
disc_type = 'gk_quad'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.</p>
</div>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rect: CGRect,
upsideDown: Bool = false
) {
self.text = text
self.size = size
self.color = color
self.font = font ?? UIFont.preferredFont(forTextStyle: .body).scaledFont(size: size, weight: .regular)
self.rect = rect
self.upsideDown = upsideDown
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('file: {}'.format(file))
with gzip.open(file, 'rt') as f:
for line in f:
count += 1
print('count: {}'.format(count))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.xml = deepcopy(xml)
else:
raise ValueError("xml should be either binary or an lxml node")
self.source = source
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let copy = dataset.create_copy(&driver, "").unwrap();
assert_eq!(copy.size(), (100, 50));
assert_eq!(copy.count(), 3);
}
#[test]
fn test_geo_transform() {
let driver = Driver::get("MEM").unwrap();
let dataset = driver.create("", 20, 10, 1).unwrap();
let transform = [0., 1., 0., 0., 0., 1.];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name = 'sentry'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
maker.trailing.equalToSuperview().offset(-16)
}
}
}
class SideHeader: UIView {
weak var delegate: SideHeaderDelegate?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub type PerceptionVideoFrameAllocator = *mut ::core::ffi::c_void;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private String forHelp = Joiner.on(System.lineSeparator()).join(
"Ключи:",
"-d-директория в которая начинать поиск.",
"-n-имя файл,маска,либо регулярное выражение.",
"-m -искать по маске, -f-полное совпадение имени, -r регулярное выражение.",
"-o -результат записать в файл.",
"Пример:",
"java-jar find.jar -d c:/ -n *.txt -m -o log.txt",
"Где-то закралась ошибка.",
"Попробуйте снова:"
);
| 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.