code stringlengths 13 6.09M | order_type stringclasses 2
values | original_example dict | step_ids listlengths 1 5 |
|---|---|---|---|
<|reserved_special_token_0|>
def get_pdf(kde, grid, resample=False, N=10000):
if resample:
x, y = kde.resample(N)
kde = stats.kde.gaussian_kde(np.column_stack((x, y)).T)
return kde(grid.T).reshape(100, 100)
def plot_ba_2d_results(ba, size=150000):
q, xi, zeta, theta, phi = ba.sample(size... | flexible | {
"blob_id": "05badb45c2249dc52b72a46779a8e619cd8a3ca9",
"index": 7088,
"step-1": "<mask token>\n\n\ndef get_pdf(kde, grid, resample=False, N=10000):\n if resample:\n x, y = kde.resample(N)\n kde = stats.kde.gaussian_kde(np.column_stack((x, y)).T)\n return kde(grid.T).reshape(100, 100)\n\n\nde... | [
7,
9,
10,
11,
13
] |
<|reserved_special_token_0|>
class _InfiniteSampler(torch.utils.data.Sampler):
"""Wraps another Sampler to yield an infinite stream."""
def __init__(self, sampler):
self.sampler = sampler
def __iter__(self):
while True:
for batch in self.sampler:
yield batch
... | flexible | {
"blob_id": "d99fd3dc63f6a40dde5a6230111b9f3598d3c5fd",
"index": 7830,
"step-1": "<mask token>\n\n\nclass _InfiniteSampler(torch.utils.data.Sampler):\n \"\"\"Wraps another Sampler to yield an infinite stream.\"\"\"\n\n def __init__(self, sampler):\n self.sampler = sampler\n\n def __iter__(self):\... | [
8,
9,
10,
11,
12
] |
<|reserved_special_token_0|>
class aws_retry:
<|reserved_special_token_0|>
def __init__(self, fields):
self.fields = fields
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class aws_retry:
<|reserved_special_token_0|>
def __init__(self, fields)... | flexible | {
"blob_id": "493b29433f0c3646e7f80fca2f656fc4a5256003",
"index": 8884,
"step-1": "<mask token>\n\n\nclass aws_retry:\n <mask token>\n\n def __init__(self, fields):\n self.fields = fields\n <mask token>\n",
"step-2": "<mask token>\n\n\nclass aws_retry:\n <mask token>\n\n def __init__(self,... | [
2,
3,
4,
5,
6
] |
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 31 16:55:33 2018
@author: GEAR
"""
'''
在OpenCV中有超过150中进行颜色转换的方法,但我们经常用到的一般只有两种:
BGR <-> Gray 和 BGR <-> HSV
我们需要用到的函数有:cv2.cvtColor(input_image, flag),其中flag是转换类型
对于BGR <-> Gray,我们用到的flag为cv2.COLOR_BGR2GRAY,但我们要注意在OpenCV
中HSV格式中H 色彩/亮度 的取值范围是[0 179], S 饱和度 和 V 亮度的取值范围是
[0... | normal | {
"blob_id": "ea3b8fe602357fa3d1de4daefce1e71a7de6e010",
"index": 2117,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint(flags)\n",
"step-3": "<mask token>\nflags = [i for i in dir(cv2) if i.startswith('COLOR_')]\nprint(flags)\n",
"step-4": "<mask token>\nimport cv2\nflags = [i for i in dir(cv2) i... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
with open(PATH / 'pystacho' / '__init__.py') as fp:
for line in fp.readlines():
if line.startswith('__version__ = '):
VERSION = line.split('=', 1)[-1].replace('"', '').strip()
break
with open('R... | flexible | {
"blob_id": "d7e24730ce9f2835d55d3995abec2a7d00eb05ef",
"index": 9024,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nwith open(PATH / 'pystacho' / '__init__.py') as fp:\n for line in fp.readlines():\n if line.startswith('__version__ = '):\n VERSION = line.split('=', 1)[-1].replace('... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
class UnigramFeatureExtractor(FeatureExtractor):
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
class BigramFeatureExtractor(FeatureExtractor):
"""
Bigram feature extractor analogous to the unigram one.
"""
def __init_... | flexible | {
"blob_id": "5d8d47d77fba9027d7c5ec4e672fc0c597b76eae",
"index": 4091,
"step-1": "<mask token>\n\n\nclass UnigramFeatureExtractor(FeatureExtractor):\n <mask token>\n <mask token>\n <mask token>\n\n\nclass BigramFeatureExtractor(FeatureExtractor):\n \"\"\"\n Bigram feature extractor analogous to th... | [
22,
29,
30,
31,
34
] |
"""
Copyright 2019 Enzo Busseti, Walaa Moursi, and Stephen Boyd
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 ... | normal | {
"blob_id": "00a0668d5fcb8358b4bd7736c48e4867afc0f5b6",
"index": 780,
"step-1": "<mask token>\n\n\nclass SolverError(Exception):\n pass\n\n\n<mask token>\n\n\ndef ecos_solve(A, b, c, dim_dict, **kwargs):\n \"\"\"Wraps ecos.solve for convenience.\"\"\"\n ecos_cones = {'l': dim_dict['l'] if 'l' in dim_dic... | [
2,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
IS_TESTING = False
FOLDER_TO_ORGANIZE = ''
FOLDER_FOR_OTHERS = ''
FOLDER_TO_ORGANIZE_TEST = ''
LOG_FILE = ''
IGNORE_HIDDEN_FILES = True
FILES_DESTINATION = {'i... | flexible | {
"blob_id": "83e2f9c56c45a288aabd777fb244089367649258",
"index": 1165,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\nIS_TESTING = False\nFOLDER_TO_ORGANIZE = ''\nFOLDER_FOR_OTHERS = ''\nFOLDER_TO_ORGANIZE_TEST = ''\nLOG_FILE = ''\nI... | [
0,
1,
2,
3
] |
import json
import webapp2
import requests
import requests_toolbelt.adapters.appengine
from . import mongodb
import datetime
from bson.json_util import dumps
class RestHandler(webapp2.RequestHandler):
def dispatch(self):
# time.sleep(1)
super(RestHandler, self).dispatch()
def send_json(self, conten... | normal | {
"blob_id": "8af3bb1b33a01353cd7f26c9496485e36d954edb",
"index": 5362,
"step-1": "import json\n\nimport webapp2\n\nimport requests\n\nimport requests_toolbelt.adapters.appengine\n\nfrom . import mongodb\n\nimport datetime\n\nfrom bson.json_util import dumps\n\nclass RestHandler(webapp2.RequestHandler):\n\n def ... | [
0
] |
from rest_framework import filters
from rest_framework.generics import ListAPIView
from rest_framework.permissions import IsAuthenticated
from rest_framework.viewsets import ModelViewSet
from apis.models import Contact, Address, InvoicePosition, Country, Invoice
from apis.serializers import ContactSerializer, AddressS... | normal | {
"blob_id": "43bad38d209b5c326cb9f17ba1ae135d06320e97",
"index": 145,
"step-1": "<mask token>\n\n\nclass InvoicePositionViewSet(ModelViewSet):\n <mask token>\n <mask token>\n <mask token>\n\n\nclass CountryListView(ListAPIView):\n queryset = Country.objects.all()\n serializer_class = CountrySerial... | [
5,
6,
9,
11,
12
] |
#!/usr/bin/env python3
import os
import requests
# This is the main url of the BSE API
# THIS WILL CHANGE TO HTTPS IN THE FUTURE
# HTTPS IS RECOMMENDED
main_bse_url = "http://basissetexchange.org"
# This allows for overriding the URL via an environment variable
# Feel free to just use the base_url below
base_url = o... | normal | {
"blob_id": "168a76fd3bb43afe26a6a217e90f48704b4f2042",
"index": 6738,
"step-1": "<mask token>\n\n\ndef print_results(r):\n \"\"\"Checks for errors and prints the results of a request\"\"\"\n print(r.text)\n if r.status_code != 200:\n raise RuntimeError(\n 'Could not obtain data from t... | [
1,
2,
3,
4,
5
] |
<|reserved_special_token_0|>
@register_model('multilingual')
class MultilingualModel(FairseqMultiModel):
<|reserved_special_token_0|>
def __init__(self, task, encoders, decoders):
super().__init__(encoders, decoders)
self.task = task
self.models = nn.ModuleDict({key: self.__class__.si... | flexible | {
"blob_id": "0ac471d2cb30a21c1246106ded14cdc4c06d2d40",
"index": 8329,
"step-1": "<mask token>\n\n\n@register_model('multilingual')\nclass MultilingualModel(FairseqMultiModel):\n <mask token>\n\n def __init__(self, task, encoders, decoders):\n super().__init__(encoders, decoders)\n self.task ... | [
4,
5,
6,
7,
8
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
print('\n'.join(re.split(regex_pattern, input())))
<|reserved_special_token_1|>
<|reserved_special_token_0|>
regex_pattern = '[,.]'
print('\n'.join(re.split(regex_pattern, input())))
<|reserved_special_token_1|>
<|reserved_s... | flexible | {
"blob_id": "020691fe2c7e7092d45415b72ce1804618421a2a",
"index": 9519,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint('\\n'.join(re.split(regex_pattern, input())))\n",
"step-3": "<mask token>\nregex_pattern = '[,.]'\nprint('\\n'.join(re.split(regex_pattern, input())))\n",
"step-4": "<mask token... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
def train(cfg, epoch, data_loader, model):
data_time = AverageMeter('Data', ':6.3f')
batch_time = AverageMeter('Time', ':6.3f')
losses = AverageMeter('Loss', ':.4e')
progress = ProgressMeter(len(data_loader) - 1, [batch_time, data_time,
losses], prefix=f'Epoch: [{e... | flexible | {
"blob_id": "81688d51696156905736b5de7a4929387fd385ab",
"index": 91,
"step-1": "<mask token>\n\n\ndef train(cfg, epoch, data_loader, model):\n data_time = AverageMeter('Data', ':6.3f')\n batch_time = AverageMeter('Time', ':6.3f')\n losses = AverageMeter('Loss', ':.4e')\n progress = ProgressMeter(len(... | [
2,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
@logging.route('/debug/')
def debug():
current_app.logger.debug('some debug message')
return ''
<|reserved_special_token_0|>
@logging.route('/error/')
def error():
current_app.logger.error('some error message')
return ''
<|reserved_special_token_1|>
<|reserved_speci... | flexible | {
"blob_id": "7c2d57a8368eb8d1699364c60e98766e66f01569",
"index": 4659,
"step-1": "<mask token>\n\n\n@logging.route('/debug/')\ndef debug():\n current_app.logger.debug('some debug message')\n return ''\n\n\n<mask token>\n\n\n@logging.route('/error/')\ndef error():\n current_app.logger.error('some error m... | [
2,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
class Solution:
<|reserved_special_token_0|>
<|reserved_special_token_1|>
class Solution:
def insertionSortList(self, head):
if not head:
return head
fh = ListNode(0)
fh.next = head
cur = head
wh... | flexible | {
"blob_id": "c234031fa6d43c19515e27c5b12f8e8338f24a1c",
"index": 6412,
"step-1": "<mask token>\n",
"step-2": "class Solution:\n <mask token>\n",
"step-3": "class Solution:\n\n def insertionSortList(self, head):\n if not head:\n return head\n fh = ListNode(0)\n fh.next = ... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
admin.autodiscover()
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
admin.autodiscover()
urlpatterns = patterns('', url('^media/(?P<path>.*)$',
'django.views.static.serve', {'document... | flexible | {
"blob_id": "acb85a16e45472dac61eed4162dc651f67a0e8ca",
"index": 5400,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nadmin.autodiscover()\n<mask token>\n",
"step-3": "<mask token>\nadmin.autodiscover()\nurlpatterns = patterns('', url('^media/(?P<path>.*)$',\n 'django.views.static.serve', {'document... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
for epsilon in epsilons:
model = sc.DBSCAN(eps=epsilon, min_samples=5)
model.fit(x)
score = sm.silhouette_score(x, model.labels_, sample_size=len(x),
metric='euclidean')
scores.append(score)
models.appe... | flexible | {
"blob_id": "01128ebd156b24791548c50c92d2fc1969c42e70",
"index": 9756,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nfor epsilon in epsilons:\n model = sc.DBSCAN(eps=epsilon, min_samples=5)\n model.fit(x)\n score = sm.silhouette_score(x, model.labels_, sample_size=len(x),\n metric='eucli... | [
0,
1,
2,
3,
4
] |
def test(d_iter):
from cqlengine import columns
from cqlengine.models import Model
from cqlengine.query import ModelQuerySet
from cqlengine import connection
from cqlengine.management import sync_table
from urllib2 import urlopen, Request
from pyspark.sql import S... | normal | {
"blob_id": "11f29508d52e856f4751a5dc8911a1f1c9832374",
"index": 944,
"step-1": "<mask token>\n",
"step-2": "def test(d_iter):\n from cqlengine import columns\n from cqlengine.models import Model\n from cqlengine.query import ModelQuerySet\n from cqlengine import connection\n from cqlengine.mana... | [
0,
1,
2,
3,
4
] |
# user_events.py
import dataclasses
from typing import Optional
@dataclasses.dataclass
class UserUpdateMessage:
id: str
name: Optional[str] = None
age: Optional[int] = None
async def receive_user_update(message: UserUpdateMessage) -> None:
print(f"Received update for user id={message.id}")
| normal | {
"blob_id": "b2fb5564d44f7481c6de2a5d4af09df4903026b8",
"index": 8222,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\n@dataclasses.dataclass\nclass UserUpdateMessage:\n id: str\n name: Optional[str] = None\n age: Optional[int] = None\n\n\n<mask token>\n",
"step-3": "<mask token>\n\n\n@data... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
class CreateRoomForm(FlaskForm):
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
class CreateUsernameForm(FlaskForm):
username = StringField('username', validators=[InputRequired(message=
'Username Required')])
submit_bu... | flexible | {
"blob_id": "623bd858923d5f9cc109af586fdda01cd3d5fff3",
"index": 961,
"step-1": "<mask token>\n\n\nclass CreateRoomForm(FlaskForm):\n <mask token>\n <mask token>\n <mask token>\n\n\nclass CreateUsernameForm(FlaskForm):\n username = StringField('username', validators=[InputRequired(message=\n '... | [
10,
11,
13,
14,
16
] |
from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'foo.views.home', name='home'),
# url(r'^foo/', include('foo.foo.urls')),
# Uncomm... | normal | {
"blob_id": "266ce1aaa3283cf2aaa271a317a80c3860880a49",
"index": 4901,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nadmin.autodiscover()\n<mask token>\nurlpatterns += patterns('piston.authentication', url(\n '^oauth/request_token/$', 'oauth_request_token'), url(\n '^oauth/authorize/$', 'oauth_use... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
class Observer(BaseObserver):
<|reserved_special_token_0|>
def handle(self, signal, *args, **kwargs):
message = self.serialize(signal, *args, **kwargs)
channel_layer = get_channel_layer()
for group_name in self.group_names_for_signal(*args, message=
... | flexible | {
"blob_id": "66e93295d2797ca9e08100a0a1f28619acb72aa4",
"index": 3397,
"step-1": "<mask token>\n\n\nclass Observer(BaseObserver):\n <mask token>\n\n def handle(self, signal, *args, **kwargs):\n message = self.serialize(signal, *args, **kwargs)\n channel_layer = get_channel_layer()\n fo... | [
2,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
print('O triplo de {} vale {}.'.format(n, t))
<|reserved_special_token_1|>
n = int(input('Digite um numero:'))
t = n * 3
print('O triplo de {} vale {}.'.format(n, t))
<|reserved_special_token_1|>
# GERALDO AMELIO DE LIMA JUN... | flexible | {
"blob_id": "8f311e15c15fe3309218dfaed5eefa4a8fc3f453",
"index": 3234,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint('O triplo de {} vale {}.'.format(n, t))\n",
"step-3": "n = int(input('Digite um numero:'))\nt = n * 3\nprint('O triplo de {} vale {}.'.format(n, t))\n",
"step-4": "# GERALDO AME... | [
0,
1,
2,
3
] |
import torch
import torch.nn as nn
from torch.nn import functional as F
class FocalLoss1(nn.Module):
def __init__(self, alpha=0.25, gamma=2, reduction='mean', ignore_lb=255):
super().__init__()
self.alpha = alpha
self.gamma = gamma
self.reduction = reduction
self.ignore_lb ... | normal | {
"blob_id": "9e9303d58c7e091bf7432060fad292c16ecf85ee",
"index": 9280,
"step-1": "<mask token>\n\n\nclass FocalLoss(nn.Module):\n \"\"\"https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion/78109\"\"\"\n\n def __init__(self, gamma=2):\n super().__init__()\n self.gamma =... | [
4,
6,
7,
8,
9
] |
def func(n):
return n * 2
def my_map(f, seq):
return [f(item) for item in seq]
def main():
numbers = [1, 2, 3, 4]
result = list(map(func, numbers))
print(result)
result = [func(item) for item in numbers]
print(result)
if __name__ == '__main__':
main()
| normal | {
"blob_id": "55acae8129ddaba9a860d5d356e91f40607ac95a",
"index": 8614,
"step-1": "<mask token>\n",
"step-2": "def func(n):\n return n * 2\n\n\ndef my_map(f, seq):\n return [f(item) for item in seq]\n\n\n<mask token>\n",
"step-3": "def func(n):\n return n * 2\n\n\ndef my_map(f, seq):\n return [f(i... | [
0,
2,
3,
4
] |
"""DogGroom URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | normal | {
"blob_id": "da062dfe494b363c8ef3ec9f19af912736aaf77b",
"index": 9018,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nurlpatterns = [path('admin/', admin.site.urls), url('^$', IndexView.as_view\n (), name='index'), url('^register/', RegistrationView.as_view(), name=\n 'register'), url('^home/', Hom... | [
0,
1,
2,
3
] |
def first_repeat(chars):
for x in chars:
if chars.count(x) > 1:
return x
return '-1'
| normal | {
"blob_id": "bf683f8e7fb5ad5f7cd915a8a01d9adf7d13e739",
"index": 3375,
"step-1": "<mask token>\n",
"step-2": "def first_repeat(chars):\n for x in chars:\n if chars.count(x) > 1:\n return x\n return '-1'\n",
"step-3": null,
"step-4": null,
"step-5": null,
"step-ids": [
0,
... | [
0,
1
] |
#!/usr/bin/python
# encoding:utf-8
from selenium.webdriver.common.by import By
import random
import basePage
# 门店入库button
stock_in = (By.XPATH, "//android.widget.TextView[contains(@text,'门店入库')]")
# 调拨入库button
transfer_in = (By.XPATH, "//android.widget.TextView[contains(@text,'调拨入库')]")
# 确认签收button
take_receive = (By... | normal | {
"blob_id": "d1b025ddbf7d0ad48ff92a098d074820a3eb35ed",
"index": 6723,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nstock_in = By.XPATH, \"//android.widget.TextView[contains(@text,'门店入库')]\"\ntransfer_in = By.XPATH, \"//android.widget.TextView[contains(@text,'调拨入库')]\"\ntake_receive = By.ID, '%s:id/tak... | [
0,
1,
2,
3
] |
import array as arr
# from array import * # To remove use of 'arr' everytime.
studentMarks = arr.array('i', [2,30,45,50,90]) # i represnts datatype of array which is int here.
# accessing array
print(studentMarks[3])
studentMarks.append(95)
# using for loop
for i in studentMarks:
print(i)
# usin... | normal | {
"blob_id": "d442d5c7afd32dd149bb47fc9c4355409c53dab8",
"index": 6719,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint(studentMarks[3])\nstudentMarks.append(95)\nfor i in studentMarks:\n print(i)\n<mask token>\nwhile i < len(studentMarks):\n print(studentMarks[i])\n i += 1\n",
"step-3": "... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class FroggyWoogie(Song):
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class FroggyWoogie(Song):
def __init__(self):
super(FroggyWoogie, self).__init__()
se... | flexible | {
"blob_id": "1df1081308ead28c023774a8671df8a0671a1bba",
"index": 4177,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\nclass FroggyWoogie(Song):\n <mask token>\n",
"step-3": "<mask token>\n\n\nclass FroggyWoogie(Song):\n\n def __init__(self):\n super(FroggyWoogie, self).__init__()\n ... | [
0,
1,
2,
3
] |
from ctypes import *
class GF_AVCConfigSlot(Structure):
_fields_=[
("size", c_uint16),
("data", c_char),
("id", int)
] | normal | {
"blob_id": "f3b194bbc3c174549b64d6e6b1a8f4438a0c9d38",
"index": 4791,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\nclass GF_AVCConfigSlot(Structure):\n <mask token>\n",
"step-3": "<mask token>\n\n\nclass GF_AVCConfigSlot(Structure):\n _fields_ = [('size', c_uint16), ('data', c_char), ('id'... | [
0,
1,
2,
3,
4
] |
from collections import defaultdict
from typing import Union, Iterable, Sized
import numpy as np
from cached_property import cached_property
from keras.utils import to_categorical
from keras.preprocessing.sequence import pad_sequences
from keras.preprocessing.text import Tokenizer, text_to_word_sequence
class Source... | normal | {
"blob_id": "e5d7cc65041d65f915d4882b4fdad5bebf79a067",
"index": 204,
"step-1": "<mask token>\n\n\nclass TextDataset(BaseDataset):\n\n def __init__(self, source_sentences: Union[Iterable, Sized],\n target_sentences: Union[Iterable, Sized], shuffle: bool=True,\n word_frequency_threshold: int=2):\... | [
12,
19,
20,
22,
27
] |
"""
Python 3.3 introduces the new "yield from" statement to provide straightforward way for
a generator to call out to other generators
"""
def gen1():
yield 'foo'
yield 'bar'
def gen2():
yield 'spam'
yield 'eggs'
"""
For python versions < 3.3
"""
def full_gen():
for word in gen1():
yiel... | normal | {
"blob_id": "c1e649b73c207ea08235d295c28daad8c91398a7",
"index": 1440,
"step-1": "\"\"\"\nPython 3.3 introduces the new \"yield from\" statement to provide straightforward way for\na generator to call out to other generators\n\"\"\"\n\ndef gen1():\n yield 'foo'\n yield 'bar'\n\ndef gen2():\n yield 'spam... | [
0
] |
<|reserved_special_token_0|>
def test_get_tables():
sql_str = (
'SELECT * FROM table1, table2 WHERE table1.column1 = table2.column1;')
assert extract_tables_columns.get_tables(sql_str) == [('TABLE1',
'TABLE1'), ('TABLE2', 'TABLE2')]
def test_get_tables_mutiline():
sql_str = """
SELEC... | flexible | {
"blob_id": "72286078841c7fe5b297767576741dbbd0a80411",
"index": 3457,
"step-1": "<mask token>\n\n\ndef test_get_tables():\n sql_str = (\n 'SELECT * FROM table1, table2 WHERE table1.column1 = table2.column1;')\n assert extract_tables_columns.get_tables(sql_str) == [('TABLE1',\n 'TABLE1'), ('T... | [
3,
4,
6,
7,
8
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
print('Question 1')
<|reserved_special_token_0|>
for N in [400000, 420000, 440000, 460000, 480000]:
print(4 * (2 * N) ** 10 * math.exp(-(1 / 8) * error ** 2 * N))
<|reserved_special_token_0|>
print('Question 2')
<|reserved_spe... | flexible | {
"blob_id": "abe53120a485f608431142c6b9452666fcd72dbf",
"index": 7464,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint('Question 1')\n<mask token>\nfor N in [400000, 420000, 440000, 460000, 480000]:\n print(4 * (2 * N) ** 10 * math.exp(-(1 / 8) * error ** 2 * N))\n<mask token>\nprint('Question 2'... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
def run(_):
parser = common.get_argument_parser()
parser.add_argument('--step', help='volume step', type=int, default=5)
parsed_args = parser.parse_args()
sonos = common.get_sonos(parsed_args)
step = parsed_a... | flexible | {
"blob_id": "6e78dee46276f738197ba6796fe1a027ab743354",
"index": 1769,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\ndef run(_):\n parser = common.get_argument_parser()\n parser.add_argument('--step', help='volume step', type=int, default=5)\n parsed_args = parser.parse_args()\n sonos = ... | [
0,
1,
2,
3
] |
# coding=utf-8
from django.test import TestCase
from django_mptt_admin.util import get_tree_queryset, get_javascript_value
from ..models import Country
from .utils import read_testdata
class UtilTestCase(TestCase):
def setUp(self):
super(UtilTestCase, self).setUp()
read_testdata()
def tes... | normal | {
"blob_id": "ac5c4edda8a5df7abc030fd637866fa4c8fc4bfc",
"index": 1493,
"step-1": "<mask token>\n\n\nclass UtilTestCase(TestCase):\n <mask token>\n\n def test_get_tree_queryset(self):\n qs = get_tree_queryset(Country)\n self.assertEqual(len(qs), 257)\n self.assertEqual(qs[0].name, 'root... | [
2,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
def rank_and_file(l):
dict = {}
final_list = []
for each in l:
for num in each:
dict[num] = dict[num] + 1 if num in dict else 1
for key in dict:
if dict[key] % 2 != 0:
final_list.append(key)
final_li... | flexible | {
"blob_id": "359f4fa75379cc2dd80d372144ced08b8d15e0a4",
"index": 6758,
"step-1": "<mask token>\n",
"step-2": "def rank_and_file(l):\n dict = {}\n final_list = []\n for each in l:\n for num in each:\n dict[num] = dict[num] + 1 if num in dict else 1\n for key in dict:\n if di... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
class Processor:
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class Processor:
<|reserved_special_token_0|>
<|reserved_special_token_0|>
def synth(self, *args)... | flexible | {
"blob_id": "e0075e4afafba9da70bbcb2ee073b5c1f7782d7d",
"index": 6032,
"step-1": "<mask token>\n\n\nclass Processor:\n <mask token>\n <mask token>\n <mask token>\n",
"step-2": "<mask token>\n\n\nclass Processor:\n <mask token>\n <mask token>\n\n def synth(self, *args):\n nFrame, nBin =... | [
1,
2,
4,
5,
6
] |
# Import packages
import pandas
import requests
import lxml
# Get page content
url = "https://archive.fantasysports.yahoo.com/nfl/2017/189499?lhst=sched#lhstsched"
html = requests.get(url).content
df_list = pandas.read_html(html)
# Pull relevant URLs
| normal | {
"blob_id": "d46035699bee1ad9a75ea251c2c3ab8817d6a740",
"index": 4343,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nurl = (\n 'https://archive.fantasysports.yahoo.com/nfl/2017/189499?lhst=sched#lhstsched'\n )\nhtml = requests.get(url).content\ndf_list = pandas.read_html(html)\n",
"step-3": "imp... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
sns.violinplot(x='species', y='sepal_length', data=tips, palette='rainbow')
<|reserved_special_token_1|>
<|reserved_special_token_0|>
tips = sns.load_dataset('iris')
sns.violinplot(x='species', y='sepal_length', data=tips, pale... | flexible | {
"blob_id": "274af2a0b758472ca4116f1dfa47069647babf57",
"index": 8543,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nsns.violinplot(x='species', y='sepal_length', data=tips, palette='rainbow')\n",
"step-3": "<mask token>\ntips = sns.load_dataset('iris')\nsns.violinplot(x='species', y='sepal_length', d... | [
0,
1,
2,
3
] |
import numpy
from nn_functor import functions
class Linear(functions.Learn):
def implement(self, a, p):
x = a[0]
w, b0 = p
return w.dot(x) + b0
def update(self, a, b, p):
i = self.implement(a, p)
x = a[0]
w, b0 = p
u_w = w - self.eps * (i - b)[:, N... | normal | {
"blob_id": "ec9a152e39a0c51319e4db58eea4496cff5b2fd6",
"index": 3427,
"step-1": "<mask token>\n\n\nclass Linear(functions.Learn):\n <mask token>\n <mask token>\n <mask token>\n\n\nclass LinearNode(functions.Node):\n\n def __init__(self, in_size, out_size, eps):\n super().__init__(Linear(eps))... | [
3,
5,
6,
7,
8
] |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('examen', '0002_auto_20161122_1836'),
]
operations = [
migrations.RemoveField(
model_name='actuacionventa',
... | normal | {
"blob_id": "5acbd6002c5e3cfac942d52b788f18c6afa92da2",
"index": 7028,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\nclass Migration(migrations.Migration):\n <mask token>\n <mask token>\n",
"step-3": "<mask token>\n\n\nclass Migration(migrations.Migration):\n dependencies = [('examen', '0... | [
0,
1,
2,
3,
4
] |
# -*- coding: utf-8 -*-"
"""
getMetaStream action for graphingwiki
- alternative meta retrieval action that uses
abuse-sa query language for filtering metas
and returns Line Delimeted JSON or event-stream
@copyright: 2015 Lauri Pokka <larpo@codenomicon.com>
@license: MIT <http://www.openso... | normal | {
"blob_id": "c67cd3c16c15d6aab02a07736c83bbdd5bd98514",
"index": 1839,
"step-1": "<mask token>\n\n\ndef metas_to_json(req, q):\n\n def flatten(arr):\n if len(arr) == 1:\n return arr[0]\n else:\n return arr\n for page, metas in iter_metas(req, q):\n flattened = [(k... | [
5,
6,
7,
8,
9
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
print('Main en code1: %s\n' % __name__)
<|reserved_special_token_1|>
import code2
print('Main en code1: %s\n' % __name__)
<|reserved_special_token_1|>
import code2
print ("Main en code1: %s\n" % __name__)
| flexible | {
"blob_id": "ecbc1da3efb39300b60aeb47897fb01b6bd7af31",
"index": 6028,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint('Main en code1: %s\\n' % __name__)\n",
"step-3": "import code2\nprint('Main en code1: %s\\n' % __name__)\n",
"step-4": "\nimport code2\nprint (\"Main en code1: %s\\n\" % __name_... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
__author__ = 'wenchao.hao'
<|reserved_special_token_0|>
<|reserved_special_token_1|>
__author__ = 'wenchao.hao'
<|reserved_special_token_0|>
from .guid import Guid
<|reserved_special_token_1|>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = '... | flexible | {
"blob_id": "88a379747f955b0410ab2bb33c1165034c701673",
"index": 8597,
"step-1": "<mask token>\n",
"step-2": "__author__ = 'wenchao.hao'\n<mask token>\n",
"step-3": "__author__ = 'wenchao.hao'\n<mask token>\nfrom .guid import Guid\n",
"step-4": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n__author__ = ... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
class Solution:
<|reserved_special_token_0|>
<|reserved_special_token_1|>
class Solution:
def jump(self, nums: List[int]) ->int:
l = len(nums)
jump = 0
curEnd = 0
curFarthest = 0
for i in range(l - 1):
... | flexible | {
"blob_id": "763d448bc447b88d5f2de777a475a1dd50906527",
"index": 7491,
"step-1": "<mask token>\n",
"step-2": "class Solution:\n <mask token>\n",
"step-3": "class Solution:\n\n def jump(self, nums: List[int]) ->int:\n l = len(nums)\n jump = 0\n curEnd = 0\n curFarthest = 0\n ... | [
0,
1,
2
] |
<|reserved_special_token_0|>
class DepositCompleteResponse(object):
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
@property
def currency(self):
"""Gets the currency of this DepositCo... | flexible | {
"blob_id": "b9bd1c0f4a5d2e6eeb75ba4f27d33ad5fb22530e",
"index": 557,
"step-1": "<mask token>\n\n\nclass DepositCompleteResponse(object):\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n\n @property\n def currency(self):\n \"\"\"Gets the currency of this De... | [
6,
9,
11,
16,
17
] |
version = (2, 5, 8)
version_string = ".".join(str(v) for v in version)
release_date = "2015.12.27"
| normal | {
"blob_id": "28077af0759e062078f7b9d1f7bbbb93c62835cb",
"index": 5063,
"step-1": "<mask token>\n",
"step-2": "version = 2, 5, 8\nversion_string = '.'.join(str(v) for v in version)\nrelease_date = '2015.12.27'\n",
"step-3": "version = (2, 5, 8)\nversion_string = \".\".join(str(v) for v in version)\n\nrelease_... | [
0,
1,
2
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
from can.interfaces.ics_neovi.neovi_bus import NeoViBus
| flexible | {
"blob_id": "6025b8d4015572ea1a760c1b4bc7200a1019c802",
"index": 5031,
"step-1": "<mask token>\n",
"step-2": "from can.interfaces.ics_neovi.neovi_bus import NeoViBus\n",
"step-3": null,
"step-4": null,
"step-5": null,
"step-ids": [
0,
1
]
} | [
0,
1
] |
import json
def corec_set(parameter, value):
params_fn = "corec_parameters.json"
with open(params_fn) as f:
params = json.load(f)
params[parameter] = value
with open(params_fn, 'w') as f:
json.dump(params, f, indent=4)
def corec_get(parameter):
params_fn = "corec_parameters.json"
with open(params_fn)... | normal | {
"blob_id": "88b3dd7414a68de65bafb317fbd4da2b1bc933fc",
"index": 991,
"step-1": "<mask token>\n\n\ndef corec_unlock(lock):\n locks_fn = 'corec_locks.json'\n with open(locks_fn) as f:\n locks = json.load(f)\n locks[lock] = False\n with open(locks_fn, 'w') as f:\n json.dump(locks, f, inde... | [
1,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
def ask_about_fact(fact: Fact):
"""
Asks the user about whether a fact is true or false threw an interface provided by tkinter
Args:
fact (Fact): the fact we want to know about
Returns:
bool: true if the fact is true, false otherwise
"""
window = T... | flexible | {
"blob_id": "4dae34b7c90f52314aac5e457addb3700ffcbd28",
"index": 9156,
"step-1": "<mask token>\n\n\ndef ask_about_fact(fact: Fact):\n \"\"\"\n Asks the user about whether a fact is true or false threw an interface provided by tkinter\n Args:\n fact (Fact): the fact we want to know about\n\n Re... | [
1,
2,
3,
4,
5
] |
__author__ = 'Erwin'
class usuario:
def __init__(self, nombre, user, pasw, permiso, foto):
self.nombre = nombre
self.login = user
self.pasw = pasw
self.permiso = permiso
self.foto=foto
self.database=True
class medicamento:
def __init__(self, nombre , descripcion... | normal | {
"blob_id": "b46a14c821777873eb60df609d9f112c737a3635",
"index": 6255,
"step-1": "<mask token>\n\n\nclass animal:\n\n def __init__(self, nombre, descripcion, foto):\n self.nombre = nombre\n self.descripcion = descripcion\n self.foto = foto\n self.database = True\n\n def tipo(sel... | [
10,
11,
12,
15,
17
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
print(' sys.maxsize -> ', max)
<|reserved_special_token_1|>
<|reserved_special_token_0|>
max = sys.maxsize
print(' sys.maxsize -> ', max)
<|reserved_special_token_1|>
import sys
max = sys.maxsize
print(' sys.maxsize -> ', ma... | flexible | {
"blob_id": "c1c79e5adc620690e4e386f7f1cd9f781eeec0ce",
"index": 6843,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint(' sys.maxsize -> ', max)\n",
"step-3": "<mask token>\nmax = sys.maxsize\nprint(' sys.maxsize -> ', max)\n",
"step-4": "import sys\nmax = sys.maxsize\nprint(' sys.maxsize -> ', m... | [
0,
1,
2,
3,
4
] |
from django.shortcuts import render, get_object_or_404
from django.template.loader import render_to_string
from django.http import JsonResponse
from django.contrib.auth.models import User
from diagen.utils.DiagramCreator import build_diagram_from_code
from diagen.utils.TextConverter import convert_text_to_code
from dia... | normal | {
"blob_id": "fbbf27f063f6d866e5d0b1210ea9acaebb3bdfb4",
"index": 4398,
"step-1": "<mask token>\n\n\ndef _build_default_components_text():\n text = ''\n for c in DEFAULT_COMPONENTS:\n text += c + '\\n'\n return text\n\n\n<mask token>\n\n\ndef autentificate_user(request):\n username = request.PO... | [
8,
10,
13,
14,
16
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
for i in range(200):
zeros[i, i] = s[i]
for n in range(1, 7):
r = 2 ** i
p = np.dot(u, zeros[:, :r])
svd = np.dot(p, v[:r, :])
fig.add_subplot(3, 2, n)
plt.imshow(svd, 'gray')
plt.show()
<|reserved_specia... | flexible | {
"blob_id": "b76b188dc77077ae70f320d01e9410d44b171974",
"index": 1903,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nfor i in range(200):\n zeros[i, i] = s[i]\nfor n in range(1, 7):\n r = 2 ** i\n p = np.dot(u, zeros[:, :r])\n svd = np.dot(p, v[:r, :])\n fig.add_subplot(3, 2, n)\n plt.... | [
0,
1,
2,
3,
4
] |
# -*- coding: utf-8 -*-
# Copyright (c) 2018, HSCH and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils.nestedset import NestedSet
class GoalCategory(NestedSet):
nsm_parent_field = 'parent_goal_category';
de... | normal | {
"blob_id": "c6055c6b67ac28d304ed34ddc2f81e59da8e7f1b",
"index": 1103,
"step-1": "<mask token>\n\n\nclass GoalCategory(NestedSet):\n nsm_parent_field = 'parent_goal_category'\n\n def on_update(self):\n self.validate_name_with_goal()\n super(GoalCategory, self).on_update()\n self.valida... | [
4,
5,
6,
7,
8
] |
import csv
import json,os
mylist=[]
clist=["North Indian","Italian","Continental","Chinese","Mexican","South Indian"]
for filename in os.listdir("/home/asket/Desktop/DBMS/menu"):
print(filename) | normal | {
"blob_id": "965db2523f60d83bd338bcc62ab8e5705550aa89",
"index": 6606,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nfor filename in os.listdir('/home/asket/Desktop/DBMS/menu'):\n print(filename)\n",
"step-3": "<mask token>\nmylist = []\nclist = ['North Indian', 'Italian', 'Continental', 'Chinese',... | [
0,
1,
2,
3,
4
] |
#!/usr/bin/python
class Symbol(object):
pass
class Fundef(Symbol):
def __init__(self, name, type, args):
self.name = name
self.type = type
self.args = args
class VariableSymbol(Symbol):
def __init__(self, name, type):
self.name = name
self.type = type
class ... | normal | {
"blob_id": "6cc23e370d1ec1e3e043c3fa6819f9166b6e3b40",
"index": 4434,
"step-1": "<mask token>\n\n\nclass Scope(object):\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n\n def name(self):\n return self.name\n\n\nclass SymbolTable(object):\n\n def __init__(self, scope_name):\... | [
14,
17,
19,
22,
24
] |
"""Test that Chopsticks remote processes can launch tunnels."""
from unittest import TestCase
from chopsticks.helpers import output_lines
from chopsticks.tunnel import Local, Docker, RemoteException
from chopsticks.facts import python_version
def ping_docker():
"""Start a docker container and read out its Python ... | normal | {
"blob_id": "4c63072b6242507c9b869c7fd38228488fda2771",
"index": 6098,
"step-1": "<mask token>\n\n\nclass RecursiveTest(TestCase):\n <mask token>\n\n def tearDown(self):\n ls = output_lines(['docker', 'ps', '-a'])\n images = []\n for l in ls[1:]:\n ws = l.split()\n ... | [
4,
5,
7,
8,
9
] |
<|reserved_special_token_0|>
def swap(unsorted_array, a, b):
temp = unsorted_array[a]
unsorted_array[a] = unsorted_array[b]
unsorted_array[b] = temp
<|reserved_special_token_0|>
def quick_select_helper(unsorted_array, left, right, k):
split_point = partition(unsorted_array, left, right)
if spl... | flexible | {
"blob_id": "f9234741c6356b4677b5d32ffea86549d001c258",
"index": 5625,
"step-1": "<mask token>\n\n\ndef swap(unsorted_array, a, b):\n temp = unsorted_array[a]\n unsorted_array[a] = unsorted_array[b]\n unsorted_array[b] = temp\n\n\n<mask token>\n\n\ndef quick_select_helper(unsorted_array, left, right, k)... | [
3,
4,
5,
6,
7
] |
#!/usr/bin/env python2
# -*- coding: utf8 -*-
from __future__ import print_function, division, absolute_import
from flask.ext.login import current_user
from . import cert_record_process as record_process_base
from walis.thirdparty import thrift_client, thirdparty_svc
from walis.exception.util import raise_user_exc
f... | normal | {
"blob_id": "746971cd6c5bf65268e89303c8f4ce98a56eb111",
"index": 8011,
"step-1": "<mask token>\n\n\ndef get(restaurant_id):\n with thrift_client('ers') as ers:\n cert = ers.get_restaurant_certification(restaurant_id)\n cert.comment = cert.comment.encode('utf-8')\n return cert\n\n\n<mask token>\n\... | [
4,
5,
6,
8,
9
] |
from django.db import models
class Survey(models.Model):
"""Survey representation.
"""
name = models.CharField(max_length=255)
description = models.TextField()
start_date = models.DateTimeField()
end_date = models.DateTimeField()
def __str__(self):
return self.name
class Questi... | normal | {
"blob_id": "2c4f27e7d1bfe6d68fd0836094b9e350946913f6",
"index": 5480,
"step-1": "<mask token>\n\n\nclass Question(models.Model):\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n\n def __str__(self):\n return self.text\n\n\nclass AnswerChoice(models.Model):\n ... | [
14,
17,
18,
20,
22
] |
<|reserved_special_token_0|>
class QBittorrentClient:
<|reserved_special_token_0|>
<|reserved_special_token_0|>
def login(self, username: str, password: str):
return self.connector.login(username, password)
def logout(self):
return self.connector.logout()
def get_application_ver... | flexible | {
"blob_id": "8ce2db0a28de8ddd504b744f3c9210d1a0ed7d45",
"index": 699,
"step-1": "<mask token>\n\n\nclass QBittorrentClient:\n <mask token>\n <mask token>\n\n def login(self, username: str, password: str):\n return self.connector.login(username, password)\n\n def logout(self):\n return s... | [
8,
11,
13,
14
] |
import numpy as np
class Layer:
def __init__(self):
pass
@property
def need_update(self):
return False
class FC(Layer):
def __init__(self, W, b, lr, decay, epoch_drop, l2=0):
self.W = W.copy()
self.b = b.copy()
self.alpha_0 = lr
self.decay = decay
... | normal | {
"blob_id": "a5a764586faabb5af58f4649cdd20b6b18236a99",
"index": 6080,
"step-1": "<mask token>\n\n\nclass Leaky_Relu(Layer):\n\n def forward(self, x):\n self.x = x.copy()\n return np.maximum(x, self.x * 0.01)\n\n def backprop(self, back_grad):\n grad = back_grad.copy()\n grad[se... | [
19,
29,
32,
34,
38
] |
def warshall_floyd(N):
INF = 10 ** 20
path = [[INF for _ in range(N + 1)] for _ in range(N + 1)]
graph = get_graph()
for i in range(N + 1):
path[i][i] = 0
for g in graph:
x = g[0]
y = g[1]
l = g[2]
path[x][y] = path[y][x] = l
for start in range(N + 1):
... | normal | {
"blob_id": "1e1f918ba24f5a5f13b9b01289ebfda65bae572d",
"index": 301,
"step-1": "def warshall_floyd(N):\n INF = 10 ** 20\n path = [[INF for _ in range(N + 1)] for _ in range(N + 1)]\n graph = get_graph()\n for i in range(N + 1):\n path[i][i] = 0\n for g in graph:\n x = g[0]\n ... | [
2,
3,
4,
5
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
sys.argv.extend(sys.stdin.read().split())
<|reserved_special_token_0|>
if len(sys.argv) > 3:
local_ref = sys.argv[3]
local_sha1 = sys.argv[4]
remote_ref = sys.argv[5]
remote_sha1 = sys.argv[6]
kwargs.update({'l... | flexible | {
"blob_id": "eabc81cacacc40d55234b60927b17069980a08f8",
"index": 7245,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nsys.argv.extend(sys.stdin.read().split())\n<mask token>\nif len(sys.argv) > 3:\n local_ref = sys.argv[3]\n local_sha1 = sys.argv[4]\n remote_ref = sys.argv[5]\n remote_sha1 = ... | [
0,
1,
2,
3,
4
] |
import pytest
import gadget
@pytest.mark.parametrize('invalid_line', [
'beginningGDG::',
'beginning::end',
'nothing',
])
def test_parse_invalid_line(invalid_line):
assert gadget.parse_log_line(invalid_line) is None
| normal | {
"blob_id": "0dd361239d85ed485594ac0f5e7e2168f0684544",
"index": 915,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\n@pytest.mark.parametrize('invalid_line', ['beginningGDG::',\n 'beginning::end', 'nothing'])\ndef test_parse_invalid_line(invalid_line):\n assert gadget.parse_log_line(invalid_lin... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
class SpotListView(APIView):
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
def get_one_spot(region):
comments_data = get_comment_data()
data = {}
data['id'] = region.id
data['name'] = region.name
data['address'] = regio... | flexible | {
"blob_id": "0b0b22043dda94ea57344fb3bf47255ad85c7f5b",
"index": 1408,
"step-1": "<mask token>\n\n\nclass SpotListView(APIView):\n <mask token>\n",
"step-2": "<mask token>\n\n\ndef get_one_spot(region):\n comments_data = get_comment_data()\n data = {}\n data['id'] = region.id\n data['name'] = re... | [
1,
3,
4,
5,
6
] |
#!/usr/bin/env python3
from utils import mathfont
import fontforge
v1 = 5 * mathfont.em
v2 = 1 * mathfont.em
f = mathfont.create("stack-bottomdisplaystyleshiftdown%d-axisheight%d" % (v1, v2),
"Copyright (c) 2016 MathML Association")
f.math.AxisHeight = v2
f.math.StackBottomDisplayStyleShiftDown = ... | normal | {
"blob_id": "06638b361c1cbe92660d242969590dfa45b63a4d",
"index": 75,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nmathfont.save(f)\n<mask token>\nmathfont.save(f)\n<mask token>\nmathfont.save(f)\n<mask token>\nmathfont.save(f)\n<mask token>\nmathfont.save(f)\n<mask token>\nmathfont.save(f)\n",
"step-... | [
0,
1,
2,
3,
4
] |
def test(a):
"""
This function return square of number
"""
return (a**2)
print(test(2))
help(test)
test.__doc__
| normal | {
"blob_id": "7b35a7f28c11be15fe2ac8d6eae4067ac5379f3e",
"index": 3546,
"step-1": "<mask token>\n",
"step-2": "def test(a):\n \"\"\"\n This function return square of number\n \"\"\"\n return a ** 2\n\n\n<mask token>\n",
"step-3": "def test(a):\n \"\"\"\n This function return square of number... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
class Vowel(object):
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class Vowel(object):
def __init__(self, vowels):
self.vowels = vowels
self.list = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I... | flexible | {
"blob_id": "8d9f4bce998857bcc7bc2fda0b519f370bf957fe",
"index": 1497,
"step-1": "<mask token>\n\n\nclass Vowel(object):\n <mask token>\n\n\n<mask token>\n",
"step-2": "<mask token>\n\n\nclass Vowel(object):\n\n def __init__(self, vowels):\n self.vowels = vowels\n self.list = ['a', 'e', 'i'... | [
1,
2,
3,
5,
6
] |
<|reserved_special_token_0|>
class MinimaxPlayer:
def __init__(self, game):
self.game = game
def play(self, Board):
key = -1
bem = -99999999
board = self.to_board(Board)
print(Board)
print(board)
for i in range(7, 12):
for j in range(0, 2):... | flexible | {
"blob_id": "efe099bc5cd0319ffefd779f1e854f1a60edc5fa",
"index": 9240,
"step-1": "<mask token>\n\n\nclass MinimaxPlayer:\n\n def __init__(self, game):\n self.game = game\n\n def play(self, Board):\n key = -1\n bem = -99999999\n board = self.to_board(Board)\n print(Board)\... | [
7,
9,
14,
16,
17
] |
<|reserved_special_token_0|>
@app.route('/reportes')
def reportes():
try:
cur = mysql.connect().cursor()
if 'usuario' in session:
return render_template('views/reportes.html', id=session['id'])
else:
return redirect('/login')
except Exception as e:
print... | flexible | {
"blob_id": "77995aab723fb118be3f986b8cd93f349690baca",
"index": 2090,
"step-1": "<mask token>\n\n\n@app.route('/reportes')\ndef reportes():\n try:\n cur = mysql.connect().cursor()\n if 'usuario' in session:\n return render_template('views/reportes.html', id=session['id'])\n el... | [
4,
5,
6,
7,
8
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class Migration(migrations.Migration):
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class Migration(migrations.Migration):
dependencies = [(... | flexible | {
"blob_id": "a372289d15b55f43887a37bb78a9fc308ddd0371",
"index": 5582,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\nclass Migration(migrations.Migration):\n <mask token>\n <mask token>\n",
"step-3": "<mask token>\n\n\nclass Migration(migrations.Migration):\n dependencies = [('students', ... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
class PreferencesSvc(service.SvcBase):
<|reserved_special_token_0|>
def __init__(self, *args, **kwargs):
super(PreferencesSvc, self).__init__(*args, **kwargs)
config = pecan.conf.db.to_dict()
config['cursorclass'] = pymysql.cursors.DictCursor
self.... | flexible | {
"blob_id": "fb787e688da975d37f9fcc39bf5e02957b186982",
"index": 7512,
"step-1": "<mask token>\n\n\nclass PreferencesSvc(service.SvcBase):\n <mask token>\n\n def __init__(self, *args, **kwargs):\n super(PreferencesSvc, self).__init__(*args, **kwargs)\n config = pecan.conf.db.to_dict()\n ... | [
8,
10,
11,
13,
14
] |
"""
Add requests application (adding and managing add-requests)
"""
from flask import Blueprint
__author__ = 'Xomak'
add_requests = Blueprint('addrequests', __name__, template_folder='templates', )
from . import routes | normal | {
"blob_id": "d39965c3070ec25230b4d6977ff949b3db070ab6",
"index": 7399,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n__author__ = 'Xomak'\nadd_requests = Blueprint('addrequests', __name__, template_folder='templates')\n<mask token>\n",
"step-3": "<mask token>\nfrom flask import Blueprint\n__author__ =... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
@receiver(post_save, sender=TaskType)
def create_task_instances(sender, instance, **kwargs):
"""Ensure that there is a task instance for each date in the range specified by the task type.
Necessary to support date range c... | flexible | {
"blob_id": "065a566b3e520c14f20d0d7d668ec58404d6e11b",
"index": 494,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\n@receiver(post_save, sender=TaskType)\ndef create_task_instances(sender, instance, **kwargs):\n \"\"\"Ensure that there is a task instance for each date in the range specified by th... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class Notifications(models.Model):
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token... | flexible | {
"blob_id": "51ed99a68486bd52499bbc28e68ff2312e02ea1f",
"index": 6604,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\nclass Notifications(models.Model):\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n ... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
print('Nome do Curso: ' + curso)
<|reserved_special_token_1|>
<|reserved_special_token_0|>
curso = 'Introdução a Biopython!'
print('Nome do Curso: ' + curso)
<|reserved_special_token_1|>
# coding: utf-8
'''
Programa ... | flexible | {
"blob_id": "ad59c1f0038294144b1c63db5f048b0a6b5ebb89",
"index": 4654,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nprint('Nome do Curso: ' + curso)\n",
"step-3": "<mask token>\ncurso = 'Introdução a Biopython!'\nprint('Nome do Curso: ' + curso)\n",
"step-4": "# coding: utf-8\n'''\n \n Programa... | [
0,
1,
2,
3
] |
from django.db import models
class Article(models.Model):
created = models.DateTimeField(auto_now_add=True)
published = models.DateTimeField(null=True, blank=True)
title = models.CharField(max_length=100)
slug = models.SlugField(max_length=100)
content = models.TextField()
| normal | {
"blob_id": "28233cb4a56ee805e66f34e6abd49137503d5f7b",
"index": 1405,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\nclass Article(models.Model):\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n <mask token>\n",
"step-3": "<mask token>\n\n\nclass Article(models.Model):\... | [
0,
1,
2,
3
] |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'VideoAd.compress'
db.add_column(u'main_videoad', 'compres... | normal | {
"blob_id": "b4bcf9903f4a34c8b256c65cada29e952a436f74",
"index": 2215,
"step-1": "<mask token>\n\n\nclass Migration(SchemaMigration):\n\n def forwards(self, orm):\n db.add_column(u'main_videoad', 'compress', self.gf(\n 'django.db.models.fields.BooleanField')(default=False),\n keep... | [
2,
3,
4,
5,
6
] |
import AVFoundation
from PyObjCTools.TestSupport import TestCase
class TestAVAssetSegmentReport(TestCase):
def test_enum_types(self):
self.assertIsEnumType(AVFoundation.AVAssetSegmentType)
def test_constants(self):
self.assertEqual(AVFoundation.AVAssetSegmentTypeInitialization, 1)
se... | normal | {
"blob_id": "5ee667e8394ccacf83bfe4baec228373619b4edb",
"index": 2658,
"step-1": "<mask token>\n\n\nclass TestAVAssetSegmentReport(TestCase):\n <mask token>\n <mask token>\n",
"step-2": "<mask token>\n\n\nclass TestAVAssetSegmentReport(TestCase):\n\n def test_enum_types(self):\n self.assertIsEn... | [
1,
2,
3,
4
] |
<|reserved_special_token_0|>
def sniff_mislabeled_feed(resource: bytes) ->MIMEType:
raise NotImplementedError
def sniff(resource: bytes, mime_type_string: str='unknown/unknown',
no_sniff: bool=False, check_for_apache_bug: bool=False) ->str:
mime_type = mimetype.parse_mime_type(mime_type_string)
if m... | flexible | {
"blob_id": "a2344f405aa681daff12166b7aad1230652373de",
"index": 3499,
"step-1": "<mask token>\n\n\ndef sniff_mislabeled_feed(resource: bytes) ->MIMEType:\n raise NotImplementedError\n\n\ndef sniff(resource: bytes, mime_type_string: str='unknown/unknown',\n no_sniff: bool=False, check_for_apache_bug: bool=... | [
2,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
class VideoDataSet(data.Dataset):
<|reserved_special_token_0|>
def check_csv(self):
for video in self.video_list:
if not os.path.exists(self.feature_path + 'csv_mean_' + str(
self.temporal_scale) + '/' + video + '.csv'):
print('... | flexible | {
"blob_id": "e5b5a0c8c0cbe4862243548b3661057240e9d8fd",
"index": 6077,
"step-1": "<mask token>\n\n\nclass VideoDataSet(data.Dataset):\n <mask token>\n\n def check_csv(self):\n for video in self.video_list:\n if not os.path.exists(self.feature_path + 'csv_mean_' + str(\n sel... | [
17,
21,
28,
31,
32
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
@router.post('/decrypt-shares', tags=[TALLY])
def decrypt_ballot_shares(request: DecryptBallotSharesRequest=Body(...),
scheduler: Scheduler=Depends(get_scheduler)) ->Any:
"""
Decrypt this guardian's share of one or m... | flexible | {
"blob_id": "0544c67cb14549e32b6ff8ea3215c6c65c8416ec",
"index": 5542,
"step-1": "<mask token>\n",
"step-2": "<mask token>\n\n\n@router.post('/decrypt-shares', tags=[TALLY])\ndef decrypt_ballot_shares(request: DecryptBallotSharesRequest=Body(...),\n scheduler: Scheduler=Depends(get_scheduler)) ->Any:\n \... | [
0,
1,
2,
3,
4
] |
# def qs(li):
# n = len(li)
# if n <= 1:
# return li
# pivot = li[n - 1]
# left = []
# right = []
# for i in li[:n - 1]:
# if i <= pivot:
# left.append(i)
# else:
# right.append(i)
# left = qs(left)
# right = qs(right)
# return left + [... | normal | {
"blob_id": "605d8144d18207314981872ec57cec6cb2510601",
"index": 7457,
"step-1": "<mask token>\n",
"step-2": "def qs(li):\n n, p = len(li), len(li) // 2 - 1\n if n <= 1:\n return li\n\n\n<mask token>\n",
"step-3": "def qs(li):\n n, p = len(li), len(li) // 2 - 1\n if n <= 1:\n return... | [
0,
1,
2,
3
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
game.make_players(10)
<|reserved_special_token_0|>
game.players[0].import_player(base + dir + name + '.network')
game.train(gens)
if gens % 500 != 0:
game.players[0].export_player()
<|reserved_special_token_1|>
<|reserved_s... | flexible | {
"blob_id": "1aace7b9385aefdc503ce0e43e0f7f0996fe112a",
"index": 4284,
"step-1": "<mask token>\n",
"step-2": "<mask token>\ngame.make_players(10)\n<mask token>\ngame.players[0].import_player(base + dir + name + '.network')\ngame.train(gens)\nif gens % 500 != 0:\n game.players[0].export_player()\n",
"step-... | [
0,
1,
2,
3,
4
] |
# import time module, Observer, FileSystemEventHandler
import os
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import pyAesCrypt
import logging
logging.basicConfig(filename="Decryptor.log",
level=logging.INFO, format="%(asctime)s:%(filename)s:... | normal | {
"blob_id": "6261d06ac7bdcb3ae25cd06338c4c41c3c5f5023",
"index": 7615,
"step-1": "<mask token>\n\n\nclass OnMyWatch:\n <mask token>\n <mask token>\n\n def run(self):\n event_handler = Handler()\n self.observer.schedule(event_handler, self.watchDirectory,\n recursive=True)\n ... | [
4,
7,
8,
10,
11
] |
from enum import Enum
import os
from pathlib import Path
from typing import Optional
from loguru import logger
import pandas as pd
from pydantic.class_validators import root_validator, validator
from tqdm import tqdm
from zamba.data.video import VideoLoaderConfig
from zamba.models.config import (
ZambaBaseModel,
... | normal | {
"blob_id": "9d8d8e97f7d3dbbb47dc6d4105f0f1ffb358fd2f",
"index": 6977,
"step-1": "<mask token>\n\n\nclass DensePoseConfig(ZambaBaseModel):\n <mask token>\n video_loader_config: VideoLoaderConfig\n output_type: DensePoseOutputEnum\n render_output: bool = False\n embeddings_in_json: bool = False\n ... | [
4,
5,
7,
8,
9
] |
from cmd import Cmd
class CMD(Cmd):
def __init__(self):
pass
def do_move(self, direction):
if direction == "up":
self.game.movePlayer(0, 1)
elif direction == "down":
self.game.movePlayer(0, -1)
elif direction == "left":
self.game.movePlayer(-... | normal | {
"blob_id": "03a024140d8d0136bf9838f8942539f6d19bb351",
"index": 1866,
"step-1": "<mask token>\n\n\nclass CMD(Cmd):\n\n def __init__(self):\n pass\n <mask token>\n <mask token>\n <mask token>\n\n def do_drawCard(self):\n pass\n <mask token>\n\n def do_fight(self):\n pass... | [
7,
11,
12,
13,
15
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
if __name__ == '__main__':
import doctest
doctest.testmod()
<|reserved_special_token_1|>
r""" 测试dispatch
>>> from url_router.map import Map
>>> from url_router.rule import Rule
>>> m = Map([
... Rule('/', endpoint=... | flexible | {
"blob_id": "3cca7408eb88f91f295c581c29d3d1e95298f337",
"index": 6445,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nif __name__ == '__main__':\n import doctest\n doctest.testmod()\n",
"step-3": "r\"\"\" 测试dispatch\n\n>>> from url_router.map import Map\n>>> from url_router.rule import Rule\n>>> ... | [
0,
1,
2
] |
### Global parameters ###
seconds_per_unit_time = 0.01
#########################
pars_spont = {
"tau_p": 2.5,
"tau_d": 5.0,
"amp_p": 0.08,
"amp_d": -0.0533,
"rho": 0.0015,
"N": 50,
"w_max": 0.05,
"mu": 0.07,
"seed": None,
"tend": 50_000_000,
"r_in": 0.04,
"w_in": 0.05,... | normal | {
"blob_id": "8f17c1ed0cb273a88b986cd7fe7a45439211d536",
"index": 8641,
"step-1": "<mask token>\n",
"step-2": "seconds_per_unit_time = 0.01\npars_spont = {'tau_p': 2.5, 'tau_d': 5.0, 'amp_p': 0.08, 'amp_d': -0.0533,\n 'rho': 0.0015, 'N': 50, 'w_max': 0.05, 'mu': 0.07, 'seed': None, 'tend':\n 50000000, 'r_... | [
0,
1,
2
] |
<|reserved_special_token_0|>
class DescriptorsTestCase(unittest.TestCase):
<|reserved_special_token_0|>
<|reserved_special_token_0|>
<|reserved_special_token_1|>
<|reserved_special_token_0|>
class DescriptorsTestCase(unittest.TestCase):
def testEnumDefaultsToNoopMapper(self):
class Record(... | flexible | {
"blob_id": "3eb40dfe68573b93c544a2279ac5c8728ae9601f",
"index": 7485,
"step-1": "<mask token>\n\n\nclass DescriptorsTestCase(unittest.TestCase):\n <mask token>\n <mask token>\n",
"step-2": "<mask token>\n\n\nclass DescriptorsTestCase(unittest.TestCase):\n\n def testEnumDefaultsToNoopMapper(self):\n\n... | [
1,
2,
3,
4,
5
] |
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 5 09:10:03 2018
@author: User
"""
from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
import re
url = "http://www.pythonscraping.com/pages/page3.html"
html = urlopen(url)
html_data = BeautifulSoup(html.read(), "lxml")
img... | normal | {
"blob_id": "00609c4972269c36bbfcf5bec2a8648f812b6092",
"index": 9422,
"step-1": "<mask token>\n",
"step-2": "<mask token>\nfor img in img_list:\n print(img['src'])\n",
"step-3": "<mask token>\nurl = 'http://www.pythonscraping.com/pages/page3.html'\nhtml = urlopen(url)\nhtml_data = BeautifulSoup(html.read... | [
0,
1,
2,
3,
4
] |
<|reserved_special_token_0|>
def getExternalLinks(bs, excludeUrl):
externalLinks = []
for link in bs.find_all('a', href=re.compile('^(http|www)((?!' +
excludeUrl + ').)*$')):
if link.attrs['href'] is not None:
if link.attrs['href'] not in externalLinks:
externalLink... | flexible | {
"blob_id": "5ddfeb49c16a7452c99126f1a837f3c0bed0ec10",
"index": 300,
"step-1": "<mask token>\n\n\ndef getExternalLinks(bs, excludeUrl):\n externalLinks = []\n for link in bs.find_all('a', href=re.compile('^(http|www)((?!' +\n excludeUrl + ').)*$')):\n if link.attrs['href'] is not None:\n ... | [
2,
3,
4,
5,
8
] |
import math
def max_heapity(arr, start, end):
root = start
while True:
child = 2 * root + 1
# 若子節點指標超出範圍則結束
if child > end:
break
# 先比較左右兩個子節點大小,選擇最大的那個子節點
if child + 1 <= end and arr[child] < arr[child + 1]:
child += 1
# 如果 root 的值小於 c... | normal | {
"blob_id": "2ffe4b0eb7af9b3a4d5724442b5409d27bfa92a1",
"index": 6130,
"step-1": "<mask token>\n\n\ndef max_heapity(arr, start, end):\n root = start\n while True:\n child = 2 * root + 1\n if child > end:\n break\n if child + 1 <= end and arr[child] < arr[child + 1]:\n ... | [
2,
3,
4,
5,
6
] |
<|reserved_special_token_0|>
class BostaForm(forms.Form):
maxPrice = forms.IntegerField()
livingArea = forms.IntegerField()
room = forms.IntegerField()
class BostaIdForm(forms.Form):
bostaId = forms.IntegerField()
class SearchBosta(forms.Form):
search_query = forms.CharField()
<|reserved_spe... | flexible | {
"blob_id": "53573a21364e9dfef9ed1164185ab441dbc29601",
"index": 123,
"step-1": "<mask token>\n\n\nclass BostaForm(forms.Form):\n maxPrice = forms.IntegerField()\n livingArea = forms.IntegerField()\n room = forms.IntegerField()\n\n\nclass BostaIdForm(forms.Form):\n bostaId = forms.IntegerField()\n\n\... | [
6,
8,
9,
10,
11
] |
<|reserved_special_token_0|>
<|reserved_special_token_1|>
__title__ = 'pyaddepar'
__version__ = '0.6.0'
__author__ = 'Thomas Schmelzer'
__license__ = 'MIT'
__copyright__ = 'Copyright 2019 by Lobnek Wealth Management'
| flexible | {
"blob_id": "cc985ae061c04696dbf5114273befd62321756ae",
"index": 9569,
"step-1": "<mask token>\n",
"step-2": "__title__ = 'pyaddepar'\n__version__ = '0.6.0'\n__author__ = 'Thomas Schmelzer'\n__license__ = 'MIT'\n__copyright__ = 'Copyright 2019 by Lobnek Wealth Management'\n",
"step-3": null,
"step-4": null... | [
0,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.