seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
"""
ID: duweira1
LANG: PYTHON2
TASK: test
"""
fin = open ('test.in', 'r')
fout = open ('test.out', 'w')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* For all messages only their current bin is needed.
* The processor then decides where to move the card based on correctness of answer.
*/
internal class RegisterAnswerContextModel : IMessageContextModel
{
public Dictionary<string, int> CardsInBins = new Dictionary<string, int>();
}
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
export { TiffEndian } from './tiff.endian.js';
export { TiffCompression, TiffMimeType } from './tiff.mime.js';
export { TiffTag, TiffTagGeo } from './tiff.tag.id.js';
export { TiffTagValueType } from './tiff.tag.value.js';
export { TiffVersion } from './tiff.version.js';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public <T extends DAO> T insert(DAO dao, boolean excludePrimaryKeys) throws DatabaseException;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Optional metadata
homepage = "https://github.com/todorico/qt-downloader"
license = "MIT"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
constructor() {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import XCTest
@testable import YAPI
class YelpPhoneSearchResponseTests: YAPIXCTestCase {
func test_ValidResponse_ParsedFromEncodedJSON() {
do {
let dict = try self.dictFromBase64(ResponseInjections.yelpValidPhoneSearchResponse)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class NodeContext {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(size):
idx = tree.find_sum_idx(i)
assert 0 <= idx < size, 'Index = %s' % idx
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertAllResponsesHaveBlankField(
{
'sender_roll_number__isblank': 'True'
},
['sender_roll_number'],
lambda credit: getattr_path(credit, 'transaction.sender_roll_number', None) == ''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public List<DABStation> scanDAB(Region region) {
try {
controller.switchToDAB();
DABChannelList channels = controller.readFrequencyListFor(region);
return channels.scanStations(controller);
} catch (IOException | IllegalArgumentException except... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<p class="foot_copyright">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Cell from '../../cell';
interface ShadowTableProps extends BaseProps {
data: Tabular;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Method that takes in an account name and returns an account that matches that account name
Args:
account name: Account name to search for
Returns :
| ise-uiuc/Magicoder-OSS-Instruct-75K |
output_folder: str
s3_bucket: str = field(default="for-dvc")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .medlineplus_references import MedlineplusReferences
from .medlineplus_reviews import MedlineplusReviews
from .medinfo import Medinfo
from .ebm import EBM
from .pubmed import PubmedSumm
from .chiqa import Chiqa
from .cochrane_summ import CochraneSumm
from .tac import Tac | ise-uiuc/Magicoder-OSS-Instruct-75K |
unordered_set<string> visited;
visited.insert("0,0");
todo.emplace(0, 0, 0);
while (!todo.empty()) {
auto [row, col, steps] = todo.front();
todo.pop();
if (row == x && col == y) {
return steps;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# prompt for username and password
username = input('Username: ')
password = getpass('Password: ')
cookies = http.cookiejar.MozillaCookieJar(os.path.expanduser(args.statedir) + 'cookiejar.txt')
opener = urllib.request.build_opener(
urllib.request.HTTPCookieProcessor(cookies),
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def d():
visited.append('d')
@recipe(conditions=[lambda: True])
def e():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
text_recognition_url = vision_base_url + "read/core/asyncBatchAnalyze"
headers = {'Ocp-Apim-Subscription-Key': subscription_key, 'Content-Type': 'application/octet-stream'}
# Note: The request parameter changed for APIv2.
# For APIv1, it is 'handwriting': 'true'.
params = {'mode': 'Handwritten'}
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
CrfSegMoodPath = 'E:\python_code\Djangotest2\cmdb\model\msr.crfsuite'
HmmDIC = 'E:\python_code\Djangotest2\cmdb\model\HMMDic.pkl'
HmmDISTRIBUTION = 'E:\python_code\Djangotest2\cmdb\model\HMMDistribution.pkl'
CrfNERMoodPath = 'E:\python_code\Djangotest2\cmdb\model\PKU.crfsuite'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('====== Start analyzing path {0} ======'.format(path))
filenames = next(walk(path), (None, None, []))[2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public static List<t_Сontract> arrayContract = new List<t_Сontract>();
//Загружаем массив договоров из БД
public static void LoadArrayContract(int idManager)
{
try
{
arrayContract.Clear();
using (RetroCarContext rcr = new Retr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sm = cm.ScalarMappable(norm, cmap=cm.Paired)
mk='o'
cnt=0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func isValidateMobile() -> Bool {
let mobileRegex = "^\\d{9,25}$"
return NSPredicate(format: "SELF MATCHES %@", mobileRegex).evaluate(with: self)
}
func isMedPassword1() -> Bool {
let passwordRegex = "(?=.*[A-Z])(?=.*\\d).{6,15}"
return NSPredicate(format: "SELF MATCHES %@... | ise-uiuc/Magicoder-OSS-Instruct-75K |
length=len(maze)
res=[[fill]*(length*2) for i in range(length*2)]
for i in range(length//2, length//2+length):
for j in range(length//2, length//2+length):
res[i][j]=maze[i-length//2][j-length//2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise NotImplementedError()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logging.basicConfig(level=logging.INFO)
bot = commands.Bot(
command_prefix=commands.when_mentioned_or('/'),
help_command=None,
intents=discord.Intents.all(),
)
config = {
'Daug': {
'guild_id': 494911447420108820,
'guild_logs_id': 674500858054180874,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.statusbar.hide()
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = Example()
sys.exit(app.exec_()) | ise-uiuc/Magicoder-OSS-Instruct-75K |
public $table = 'product_status';
public $status_waiting_id = 1;
public $status_available_id = 2;
public $status_out_of_stock_id = 3;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mojo::gfx::composition::Node* container) {}
} // namespace flow
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'num_device'] = v['num_device']
volume[utl.VOLUMES_TYPE][v['id']][
utl.META_INFO]['instance'] = instance
storage_info[utl.VOLUMES_TYPE].update(
volume[utl.VOLUMES_TYPE])
if 'volume' in instance['meta']:
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# context_object_name = 'all_posts'
def allPosts(request):
all_posts = Post.objects.all().order_by('-date')
return render(request, 'blog/all-posts.html', {
'all_posts': all_posts,
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const handleInputFocus = useCallback(() => {
setIsFocused(true);
}, []);
const handleInputBlur = useCallback(() => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
);
endpoints.MapPost("/sendmessage", async context =>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Here is another wrinkle, ignore case
// ex: "Hannah" -> true
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif i > 50:
if last > 50:
pass
else:
pag.hotkey('ctrl', '+')
obj.last = int(i)
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
m = RectangleMesh(sw_corner, ne_corner, n_pitch + 1, n_tsr + 1)
fe = FiniteElement("Lagrange", m.ufl_cell(), 1)
fs = FunctionSpace(m, fe)
# assign values to function
dof_coords = fs.tabulate_dof_coordinates()
ct = Function(fs)
ct_interp = scipy.interpolate.interp2d(pitch_grid[0, :], tsr_gr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
export interface ColorProviderMiddleware {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logging.basicConfig(format='%(levelname)s:%(message)s', filename="dump.txt", level=logging.DEBUG)
def init():
pyautogui.PAUSE=1 #set 1 second pause after each call.
size = pyautogui.size()
pyautogui.FAILSAFE = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wscat -c ws://zettor.sin.cvut.cz:8080/events
| ise-uiuc/Magicoder-OSS-Instruct-75K |
subpath6 = sub5.name
for sub6 in subcompartments6:
if sub6.lifecycle_state == "ACTIVE":
newcomp = OC... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# if len(saved_checkpoints) > 0:
# last_checkpoint = saved_checkpoints[0]
# logging.info("Resume training from " + last_checkpoint)
# final_model.load_weights(model_dir + '/' + last_checkpoint)
# else:
# logging.info("Traning from scratch!")
# logging.info(len(X_train) / batc... | ise-uiuc/Magicoder-OSS-Instruct-75K |
__all__ = ['csviz']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.colID,
this.colNome,
this.colCategoria,
this.colDescricao,
this.colAno});
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
dataGridViewCellStyle16.BackColor = System.Drawing.Color.Dar... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo apt-get install pygame
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>Lockon2000/Udacity
def ceaser(message):
ciphered = ""
for c in message:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case_demographics.append({
'Race': row['RACE'],
'COVID_TEST': row['COVID_TEST'],
'COVID_COUNT': row['COVID_COUNT'],
'COVID_DEATHS': row['COVID_DEATHS'],
'COVID_TEST_PCT': row['COVID_TEST_PCT'],
'COVID_COUNT_PCT':... | ise-uiuc/Magicoder-OSS-Instruct-75K |
timestamped_path.append(save_file)
if __name__ == "__main__":
format_source()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
queue_size = 2 | ise-uiuc/Magicoder-OSS-Instruct-75K |
name="settings",
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class auto:
mark = ' '
aasta = 0
hind = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#ifdef _DEBUG
Console::WriteLine("type aligned");
#endif // _DEBUG
ret = pixelshuffle3d_channeltospace_aligned(n, ic, oc, iw, ow, ih, oh, id, od, s, x_ptr, y_ptr);
}
else {
#ifdef _DEBUG
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.message
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise ValueError('Private key does not match any of the participants.')
if merkletree_leaves is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_ => panic!("Expected a Memory variant"),
}
}
#[test]
fn get_exported_memory_should_return_none_for_unknown_memory_id() {
let module = Module::default();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Router>
<nav>
<ul>
<li>
</li>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright 2012 Google Inc. 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
#
# Unless required by applicable law or a... | ise-uiuc/Magicoder-OSS-Instruct-75K |
## CUDA blocks are initialized here!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return pyart.graph.common.generate_colorbar_label(standard_name, units)
def get_field_name(field_dict, field):
"""
Return a nice field name for a particular field
| ise-uiuc/Magicoder-OSS-Instruct-75K |
- key encipherment
- server auth
EOF
)
echo_or_run --with-kubectl-dry-run "$KUBECTL create -f - <<< '$CSR_CONTENTS'"
if ! $DRY_RUN; then
verify_csr_created() { $KUBECTL get csr "$CSR_NAME" 2>&1 ; }
wait_for verify_csr_created "CSR $CSR_NAME not properly created"
fi
# approve and fetch the signed certifica... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public function getRow($query = false)
{
return array('count' => 25);
}
public function num($query = false){}
public function id($query = false){}
public function __destruct(){}
public function getRows($query = false){
return array(0 => Array('id_post' => 1,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
import struct
from socket import socket, AF_INET, SOCK_STREAM
from hashlib import sha512
| ise-uiuc/Magicoder-OSS-Instruct-75K |
duration1 = finish - start
self.assertTrue(len(clusters) > 0)
start = datetime.utcnow()
clusters = self._map.clusters
finish = datetime.utcnow()
duration2 = finish - start
self.assertTrue(len(clusters) > 0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
async fn merge_unit(&self, request: Request<MergeUnitRequest>) -> Result<Response<Lot>, Status> {
todo!()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>src/components/result-card/result-row.tsx<gh_stars>1-10
import { Grid } from '@mui/material';
import React from 'react';
import { FilteredTVShowResults } from '../../@types';
import { useScreenSize } from '../../hooks/useScreenSize';
import CardContainer from './card-container';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using SEO.Model;
namespace SEO.PageValidators
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<
boost::multiprecision::cpp_dec_float<1024>,
boost::multiprecision::expression_template_option::et_off
>;
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('first_name', models.CharField(
max_length=30, verbose_name='first name')),
],
options={
'verbose_name': 'user',
'verbose_name_plural': 'users',
},
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# - However, if you want to build Ceres as a *shared* library, you must
# add the following PPA:
sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687
sudo apt-get update
sudo apt-get install libsuitesparse-dev | ise-uiuc/Magicoder-OSS-Instruct-75K |
from textpreprocess.process import process
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raster_matrix = np.array(self.pixels).reshape(heightmap_size)
self.heightmap = raster_matrix
return self
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { combineReducers } from "redux";
export default combineReducers({
app: appReducers
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@patch('typeseam.app.os.environ.get')
def test_load_initial_data(self, env_get):
ctx = Mock(return_value=Mock(
__exit__=Mock(),
__enter__=Mock()))
app = Mock(app_context=ctx)
load_initial_data(app) | ise-uiuc/Magicoder-OSS-Instruct-75K |
logging.getLogger(__name__).addHandler(logging.NullHandler())
logger = logging.getLogger(__name__)
from .pipeline import *
from .vis import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
X = []
Y = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
parent::init();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Developer():
'''
软件开发者介绍界面
'''
def __init__(self, master):
self.master = master
self.window = tk.Toplevel(master)
self.window.wm_attributes('-topmost', 1)
sw = self.window.winfo_screenwidth()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}, failureBlock:failureBlock)
}
public class func approveTransactions(transactions:[String], approve:Bool, completionBlock:PBEmptyCompletionBlock, failureBlock:PBFailureErrorBlock) {
let params:[String:String] = ["transaction_list":transactions.joinWithSeparator(","), "app... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@when("I add the numbers")
def step_impl(context):
context.sum = int(context.a) + int(context.b)
@then("I print the addition result")
def step_impl(context):
print("Sum of", context.a, "and", context.b, "is:", context.sum)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var sql = "select log.*,us.RealName,us.UserName from t_worklog log INNER JOIN t_user us on log.CreateBy=us.Id AND log.Id=@Id";
return conn.Query<WorkLogModel>(sql, new { Id }).FirstOrDefault();
}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
phyre.extractDDS(ddsFile, outFile2)
else:
print("DDS file not found. Skipping") | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Purpose: Upload XML data to appropriate API endpoint
#
#
#
#############################################################
function apiResponse() #takes api response code variable
{
if [ "$1" == "201" ] ; then
echo "Success - $1"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
target: "browser",
globalConcealing: true,
});
expect(output).toContain("log'](Math)");
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// VSSGraphQL
//
// Generated by VSSGraphQL on 21.10.2020.
// Copyright © 2020 High Mobility GmbH. All rights reserved.
//
import Foundation
public struct CabinSeatRow2Pos5Airbag: GraphQLObjectType {
/// Airbag deployment status. True = Airbag deployed. False = Airbag not deployed.
public var isDeployed:... | ise-uiuc/Magicoder-OSS-Instruct-75K |
(
"Ympäristövaliokunta ei ollut tämän lakiesityksen käsittelyssä yksimielinen, vaan vihreät, "
"vasemmistoliitto ja RKP jättivät eriävän mielipiteen. Yksityiskohtaisessa, "
"pykäläkohtaisessa käsittelyssä teen tämän eriävän mielipiteen mukaiset muutosehdotukset "
"65 ja 169 §:iin, jo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* Default constructor of GameObject
* @param name Name of GameObject
*/
public Camera(String name)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# ˄
def create_simple_homepage(self, mail_address, html_file_name):
# ˅
address_book = DataLibrary().get_instance().get_properties('./addressbook.txt')
user_name = address_book.get('address', mail_address)
writer = HtmlWriter(html_file_name)
writer.heading(u... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#data_path=/train/trainset/1/DMS/
#pred_file=/train/trainset/1/DMS/results/det_test_poi_palm.txt
#test_file=/train/trainset/1/DMS/test/new_test.txt
#save_dir=/train/trainset/1/DMS/
#anno_key='poi_face'
#data_path=/train/trainset/1/DMS/
#pred_file=/train/trainset/1/DMS/results/det_test_poi_face.txt
#test_file=/train/t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
fi
ok "find ${syscon}/${nic_name}.nmconnection"
# Verify logs
if ! journalctl -b 0 -u coreos-teardown-initramfs | \
grep -q "info: coreos.force_persist_ip detected: will force network config propagation"; then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rect_width = math.ceil(screen_width / boxes)
top_left = math.ceil(screen_width*(curr_div_loc[0])/boxes), math.ceil(screen_width*(curr_div_loc[1])/boxes)
rect = pygame.Rect((top_left), (rect_width, rect_width))
pygame.draw.rect(screen, color, rect)
def draw_next(screen, bot_left, top_ri... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//---------------------------------
const floatingpoint moveMag = std::is_same< floatingpoint, float >::value ? 5e-3 : 1e-5;
const floatingpoint diffDeRelEps = std::is_same< floatingpoint, float >::value ? 6e-2 : 5e-4;
const size_t repsTot = 10;
const size_t repsPassReq = 9;
// Run t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//------------------------------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while not ok:
n = str(input(p)).replace(',', '.').strip()
if n.isalpha() or n == '':
print(f'ERRO! "{n}" é um preço inválido!')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
SmilesToMartiniDictionary["CC(C)O"] = 'P1' # P1 Bead
SmilesToMartiniDictionary["CC(C)O"] = 'P1' # P1 Bead
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl std::error::Error for SchemaParsingError {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
usc-run votes --govtrack --congress=103 --session=1994 $@
usc-run votes --govtrack --congress=104 --session=1995 $@
usc-run votes --govtrack --congress=104 --session=1996 $@
usc-run votes --govtrack --congress=105 --session=1997 $@
usc-run votes --govtrack --congress=105 --session=1998 $@
usc-run votes --govtrack --con... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.lexbot.last_intent == 'PollexyPutToothpasteIntent':
self.lexbot.output(
Message="Great! Let's go! Pick up your toothbrush.")
self.lexbot.next_intent = \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
declare(strict_types=1);
namespace packages\UseCase\MyPage\Recruitment;
use packages\Domain\Domain\Recruitment\DetailRecruitment;
use packages\UseCase\Top\DetailRecruitmentRequest;
interface JoinFinishUseCaseInterface
{
/**
* @param DetailRecruitmentRequest $request
* @return DetailRecruitment
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
def device_id(self) -> str:
"""Return the device id."""
return DUMMY_DEVICE_ID
@property
def ip_addr(self) -> str:
"""Return the ip address."""
return DUMMY_IP_ADDRESS
@property
def mac_addr(self) -> str:
"""Return the mac address."""
r... | 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.