content stringlengths 1 1.04M | input_ids listlengths 1 774k | ratio_char_token float64 0.38 22.9 | token_count int64 1 774k |
|---|---|---|---|
# coding=UTF-8
"""
--------------------------------------------------------
Copyright (c) ****-2018 ESR, Inc. All rights reserved.
--------------------------------------------------------
Author: Mingdong Zhu
Date: 2019/03/07
Design Name: The user interface of the DDS software
Purpose: Design an UI and test f... | [
2,
19617,
28,
48504,
12,
23,
201,
198,
37811,
201,
198,
43801,
201,
198,
15269,
357,
66,
8,
25998,
12,
7908,
412,
12562,
11,
3457,
13,
220,
1439,
2489,
10395,
13,
201,
198,
43801,
201,
198,
13838,
25,
26980,
67,
506,
33144,
201,
1... | 1.910498 | 8,592 |
from django.conf.urls import url
from .views import listings_listing_view, listings_api_view
urlpatterns = [
url(
r'^listings/(?P<listing_hostname>[a-z0-9-\.]+)/?$',
listings_listing_view,
name='listings_listing_view',
),
url(
r'^api/v1/listings/(?P<listing_hostname>[a-z0... | [
6738,
42625,
14208,
13,
10414,
13,
6371,
82,
1330,
19016,
198,
198,
6738,
764,
33571,
1330,
26890,
62,
4868,
278,
62,
1177,
11,
26890,
62,
15042,
62,
1177,
628,
198,
6371,
33279,
82,
796,
685,
198,
220,
220,
220,
19016,
7,
198,
220,... | 1.985222 | 203 |
'''
Author: xyb
Date: 2020-08-10 18:35:32
LastEditTime: 2020-08-10 18:52:50
'''
from flask import Flask, make_response, request
app = Flask(__name__)
app.secret_key = 'dfslkfjdlfsdkjfnskj' #直接设置
#间接设置
# class DefaultConfig(object):
# SECRET_KEY = 'dfslkfjdlfsdkjfnskj'
# app.config.from_object(DefaultConfig)
@ap... | [
7061,
6,
198,
13838,
25,
2124,
88,
65,
198,
10430,
25,
12131,
12,
2919,
12,
940,
1248,
25,
2327,
25,
2624,
198,
5956,
18378,
7575,
25,
12131,
12,
2919,
12,
940,
1248,
25,
4309,
25,
1120,
198,
7061,
6,
198,
6738,
42903,
1330,
46947... | 2.138756 | 209 |
import tempfile
from pysubs2 import SSAFile, SSAStyle, Color, SSAEvent, make_time
from audio_pipeline import logging_config
from audio_pipeline.audio_processing.ffmpeg_processor import run_ffmpeg
logger = logging_config.get_logger(__name__)
def _adjust_for_clashing_subs(combined_subs, working_sub, exclude):
"""
... | [
11748,
20218,
7753,
198,
6738,
279,
893,
23161,
17,
1330,
311,
4090,
8979,
11,
6723,
1921,
774,
293,
11,
5315,
11,
311,
4090,
9237,
11,
787,
62,
2435,
198,
6738,
6597,
62,
79,
541,
4470,
1330,
18931,
62,
11250,
198,
6738,
6597,
62,
... | 2.287371 | 4,569 |
# Generated by Django 2.2 on 2019-06-04 23:00
from django.db import migrations, models
| [
2,
2980,
515,
416,
37770,
362,
13,
17,
319,
13130,
12,
3312,
12,
3023,
2242,
25,
405,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628
] | 2.966667 | 30 |
#Gizem Özgün / 160401007
# -*- coding: utf-8 -*-
import sys
if __name__ == "__main__":
menu()
| [
2,
38,
528,
368,
43307,
89,
70,
9116,
77,
1220,
1467,
3023,
486,
25816,
198,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
11748,
25064,
198,
220,
628,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
... | 1.927273 | 55 |
# This script assumes taht the freesurfer csv for the BANC data has already been generated
import os
import pandas as pd
import numpy as np
import pdb
import seaborn as sns
sns.set()
import matplotlib.pyplot as plt
from BayOptPy.helperfunctions import get_paths, get_data, drop_missing_features
def str_to_bool(s):
... | [
2,
770,
4226,
18533,
256,
993,
83,
262,
2030,
274,
333,
2232,
269,
21370,
329,
262,
347,
20940,
1366,
468,
1541,
587,
7560,
198,
11748,
28686,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
279,
... | 2.584258 | 991 |
# pylint: disable=invalid-name,missing-docstring
# Generated by Django 2.2.1 on 2020-06-19 05:29
from django.db import migrations
from django.db import models
| [
2,
279,
2645,
600,
25,
15560,
28,
259,
12102,
12,
3672,
11,
45688,
12,
15390,
8841,
201,
198,
2,
2980,
515,
416,
37770,
362,
13,
17,
13,
16,
319,
12131,
12,
3312,
12,
1129,
8870,
25,
1959,
201,
198,
6738,
42625,
14208,
13,
9945,
... | 2.75 | 60 |
from .abstract_dash_mp4_representation import AbstractDashMP4Representation
| [
6738,
764,
397,
8709,
62,
42460,
62,
3149,
19,
62,
15603,
341,
1330,
27741,
43041,
7378,
19,
40171,
341,
628
] | 3.85 | 20 |
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from __init__ import db
class User(db.Model):
"""Data model for user accounts."""
_... | [
6738,
42903,
62,
38235,
1330,
11787,
35608,
259,
201,
198,
6738,
266,
9587,
2736,
1018,
13,
12961,
1330,
7716,
62,
28712,
62,
17831,
11,
2198,
62,
28712,
62,
17831,
201,
198,
6738,
42903,
62,
38235,
1330,
11787,
35608,
259,
201,
198,
... | 2.230284 | 634 |
# MINLP written by GAMS Convert at 05/15/20 00:51:23
#
# Equation counts
# Total E G L N X C B
# 152 71 6 75 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
2,
220,
20625,
19930,
3194,
416,
402,
40834,
38240,
379,
8870,
14,
1314,
14,
1238,
3571,
25,
4349,
25,
1954,
198,
2,
220,
220,
198,
2,
220,
7889,
341,
9853,
198,
2,
220,
220,
220,
220,
220,
7472,
220,
220,
220,
220,
220,
220,
22... | 1.889175 | 8,148 |
import numpy as np
import pytest
from inverse_covariance import (
QuicGraphicalLassoEBIC,
AdaptiveGraphicalLasso,
QuicGraphicalLassoCV,
)
from inverse_covariance.profiling import ClusterGraph
| [
11748,
299,
32152,
355,
45941,
198,
11748,
12972,
9288,
198,
198,
6738,
34062,
62,
66,
709,
2743,
590,
1330,
357,
198,
220,
220,
220,
2264,
291,
37065,
605,
43,
28372,
30195,
2149,
11,
198,
220,
220,
220,
30019,
425,
37065,
605,
43,
... | 2.821918 | 73 |
DEVELOPERS_EMAILS = ['esoergel@dimagi.com', 'sreddy@dimagi.com'] | [
7206,
18697,
3185,
4877,
62,
27630,
45484,
796,
37250,
274,
78,
6422,
417,
31,
27740,
18013,
13,
785,
3256,
705,
82,
445,
9892,
31,
27740,
18013,
13,
785,
20520
] | 2.206897 | 29 |
import os
import pickle
import time
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
TARGET = 'target'
THRESHOLD = 0.7
df = pd.read_csv('data_test.csv', index_col=[1]) \
.drop('Unnamed: 0', axis=1)
with open('model.pkl', 'rb') as f:
model = pickle.load(f)
df[TARGET] = (mod... | [
11748,
28686,
198,
11748,
2298,
293,
198,
11748,
640,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
198,
6738,
1341,
35720,
13,
8692,
1330,
7308,
22362,
320,
1352,
11,
3602,
16354,
35608,
259,
628,
628,
628,
198,
51,
46095,
796,
705... | 2.354651 | 172 |
from _Funções_e_Valores.verify_authors import treat_exceptions
from _Funções_e_Valores.values import ND
import pandas as pd
# Proceedings and Journals separated
| [
6738,
4808,
24629,
16175,
127,
113,
274,
62,
68,
62,
7762,
2850,
13,
332,
1958,
62,
41617,
1330,
2190,
62,
1069,
11755,
198,
6738,
4808,
24629,
16175,
127,
113,
274,
62,
68,
62,
7762,
2850,
13,
27160,
1330,
25524,
198,
198,
11748,
1... | 2.948276 | 58 |
"""Split sorted modely_02."""
import pandas as pd
url = "https://onemocneni-aktualne.mzcr.cz/api/account/mifLSHU2re3GAmiotOkdYExeoQ/file/modely%252Fmodely_02_efektivita_testovani.csv"
df = pd.read_csv(url, delimiter=';')
df = df.sort_values(['datum_hlaseni', 'datum_prvniho_priznaku', 'orp', 'vek_kat', 'pohlavi'])
... | [
37811,
41205,
23243,
4235,
306,
62,
2999,
526,
15931,
198,
198,
11748,
19798,
292,
355,
279,
67,
198,
198,
6371,
796,
366,
5450,
1378,
261,
368,
420,
38572,
72,
12,
461,
83,
723,
710,
13,
76,
89,
6098,
13,
26691,
14,
15042,
14,
23... | 2.004357 | 459 |
from bokeh.models.widgets import Panel
class BacktraderPlottingTab:
'''
Abstract class for tabs
This class needs to be extended from when creating custom tabs.
It is required to overwrite the _is_useable and _get_panel method.
The _get_panel method needs to return a panel child and a title.
'... | [
6738,
1489,
365,
71,
13,
27530,
13,
28029,
11407,
1330,
18810,
628,
198,
4871,
5157,
2213,
5067,
43328,
889,
33349,
25,
628,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
27741,
1398,
329,
22524,
198,
220,
220,
220,
770,
1398,
2476,
... | 2.601504 | 266 |
"""Functions that create samples."""
import chaospy as cp
import numpy as np
import respy as rp
import pandas as pd
from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parents[1]
DATA_PATH = PROJECT_ROOT / "data"
CHAOSPY_SAMPLING_METHODS = {
"random",
"grid",
"chebyshev",
"korobov",
... | [
37811,
24629,
2733,
326,
2251,
8405,
526,
15931,
198,
11748,
17792,
2117,
88,
355,
31396,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
1217,
88,
355,
374,
79,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
3108,
8019,
1330,
10644,
... | 2.281395 | 3,671 |
# -*- coding: utf-8 -*-
from http import HTTPStatus
from typing import Optional
from flask_httpauth import HTTPTokenAuth
from app.config import config
auth = HTTPTokenAuth(scheme="Bearer", header="Authorization")
@auth.verify_token
@auth.error_handler
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
2638,
1330,
14626,
19580,
198,
6738,
19720,
1330,
32233,
198,
198,
6738,
42903,
62,
4023,
18439,
1330,
14626,
30642,
30515,
198,
198,
6738,
598,
13,
11250,
1330,
456... | 3.2375 | 80 |
from re import M
import bottom
import asyncio
import platform
| [
6738,
302,
1330,
337,
198,
11748,
4220,
198,
11748,
30351,
952,
198,
11748,
3859,
628
] | 4.2 | 15 |
import logging
import os
import numpy as np
import pandas._libs.json as ujson
import pyarrow as pa
import pyarrow.parquet as pq
import scipy.sparse
from cirrocumulus.anndata_util import DataType
logger = logging.getLogger("cirro")
| [
11748,
18931,
198,
11748,
28686,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
13557,
8019,
82,
13,
17752,
355,
334,
17752,
198,
11748,
12972,
6018,
355,
14187,
198,
11748,
12972,
6018,
13,
1845,
21108,
355,
279,
80,
... | 2.914634 | 82 |
import json
import pytest
from rest_framework import status
from usaspending_api.common.helpers.unit_test_helper import add_to_mock_objects
from usaspending_api.search.tests.test_mock_data_search import all_filters
from django_mock_queries.query import MockModel
@pytest.mark.django_db
@pytest.mark.django_db
@py... | [
11748,
33918,
198,
11748,
12972,
9288,
198,
198,
6738,
1334,
62,
30604,
1330,
3722,
198,
6738,
514,
5126,
1571,
62,
15042,
13,
11321,
13,
16794,
364,
13,
20850,
62,
9288,
62,
2978,
525,
1330,
751,
62,
1462,
62,
76,
735,
62,
48205,
1... | 2.12543 | 5,517 |
from abei.interfaces import (
IProcedure,
IProcedureClass,
IProcedureFactory,
IProcedureData,
IProcedureLink,
)
from .procedure_joint_basic import (
joint_validate,
joint_run,
)
# native_function = staticmethod(lambda x, y: x)
# composite procedure class --------------------... | [
6738,
450,
20295,
13,
3849,
32186,
1330,
357,
198,
220,
220,
220,
314,
2964,
771,
495,
11,
198,
220,
220,
220,
314,
2964,
771,
495,
9487,
11,
198,
220,
220,
220,
314,
2964,
771,
495,
22810,
11,
198,
220,
220,
220,
314,
2964,
771,
... | 2.863337 | 1,822 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
from json import loads
from shutil import which
from preggy import ... | [
2,
48443,
14629,
14,
8800,
14,
29412,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
2,
15683,
273,
19560,
2139,
198,
2,
3740,
1378,
12567,
13,
785,
14,
400,
2178,
273,
14,
400,
2178,
273,
14,
15466,
19... | 3.257463 | 268 |
"""empty message
Revision ID: 69858d32aaff
Revises: 160db434d139
Create Date: 2016-07-20 16:08:00.219265
"""
# revision identifiers, used by Alembic.
revision = '69858d32aaff'
down_revision = '160db434d139'
from alembic import op
import sqlalchemy as sa
| [
37811,
28920,
3275,
198,
198,
18009,
1166,
4522,
25,
39861,
3365,
67,
2624,
64,
2001,
198,
18009,
2696,
25,
13454,
9945,
47101,
67,
20219,
198,
16447,
7536,
25,
1584,
12,
2998,
12,
1238,
1467,
25,
2919,
25,
405,
13,
28896,
22980,
198,... | 2.653061 | 98 |
from .abstract_dict_writer import AbstractDictWriter
from typing import Union, Sequence
| [
6738,
764,
397,
8709,
62,
11600,
62,
16002,
1330,
27741,
35,
713,
34379,
198,
6738,
19720,
1330,
4479,
11,
45835,
628
] | 4.238095 | 21 |
import os
import time
import logging
from ....utils.loaders import load_pkl
from ....utils.exceptions import TimeLimitExceeded
from ......core import args
from ......scheduler.reporter import LocalStatusReporter
logger = logging.getLogger(__name__)
@args()
def model_trial(args, reporter: LocalStatusReporter):
"... | [
11748,
28686,
198,
11748,
640,
198,
11748,
18931,
198,
198,
6738,
19424,
26791,
13,
2220,
364,
1330,
3440,
62,
79,
41582,
198,
6738,
19424,
26791,
13,
1069,
11755,
1330,
3862,
39184,
3109,
2707,
276,
198,
6738,
47082,
7295,
1330,
26498,
... | 2.507891 | 697 |
from typing import Optional
from aioftx.session import FTXClientSession
from .schemas import (
FundingPayment,
GetFundingPaymentsRequest,
GetFundingPaymentsResponse,
)
async def get_funding_payments(
session: FTXClientSession,
*,
future: Optional[str] = None,
start_time: Optional[int] = ... | [
6738,
19720,
1330,
32233,
198,
198,
6738,
257,
952,
701,
87,
13,
29891,
1330,
19446,
55,
11792,
36044,
198,
198,
6738,
764,
1416,
4411,
292,
1330,
357,
198,
220,
220,
220,
35249,
19197,
434,
11,
198,
220,
220,
220,
3497,
24553,
278,
... | 2.564286 | 280 |
import os
import getpass
from pathlib import Path
from argparse import ArgumentParser
from pyonepassword import OP, OPServerItem
if __name__ == "__main__":
main()
| [
11748,
28686,
198,
11748,
651,
6603,
198,
6738,
3108,
8019,
1330,
10644,
198,
6738,
1822,
29572,
1330,
45751,
46677,
198,
6738,
12972,
505,
28712,
1330,
13349,
11,
40490,
18497,
7449,
628,
628,
198,
198,
361,
11593,
3672,
834,
6624,
366,
... | 3.372549 | 51 |
import uuid
import msgpack
import redis
| [
11748,
334,
27112,
198,
11748,
31456,
8002,
198,
11748,
2266,
271,
198
] | 3.333333 | 12 |
#Dependencies
from array import array
from operator import mod
from statistics import mode
from unicodedata import name
import praw
import os
from datetime import datetime
import time
from prawcore.exceptions import NotFound
import json
from dotenv import load_dotenv
import scraper as scrape
load_dotenv("./.env")
CLI... | [
2,
35,
2690,
3976,
198,
6738,
7177,
1330,
7177,
198,
6738,
10088,
1330,
953,
198,
6738,
7869,
1330,
4235,
198,
6738,
28000,
9043,
1045,
1330,
1438,
198,
11748,
279,
1831,
198,
11748,
28686,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
... | 2.457555 | 1,178 |
from flask_wtf import FlaskForm
from wtforms import StringField, SelectField, SubmitField
from wtforms.validators import DataRequired
from .models import AccountType
| [
6738,
42903,
62,
86,
27110,
1330,
46947,
8479,
198,
6738,
266,
83,
23914,
1330,
10903,
15878,
11,
9683,
15878,
11,
39900,
15878,
198,
6738,
266,
83,
23914,
13,
12102,
2024,
1330,
6060,
37374,
198,
6738,
764,
27530,
1330,
10781,
6030,
19... | 4.04878 | 41 |
import logging
from datetime import datetime
from functools import wraps
LOGGER = logging.getLogger(__name__)
| [
11748,
18931,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
6738,
1257,
310,
10141,
1330,
27521,
198,
198,
25294,
30373,
796,
18931,
13,
1136,
11187,
1362,
7,
834,
3672,
834,
8,
628
] | 3.5 | 32 |
#!/usr/bin/python
import sys
import struct
import numpy as np
matrix = []
with open('dataset/glove.840B.300d.txt', 'r') as inf:
with open('dataset/glove.840B.300d.dat', 'wb') as ouf:
counter = 0
for line in inf:
row = [float(x) for x in line.split()[1:]]
assert len(row) == ... | [
2,
48443,
14629,
14,
8800,
14,
29412,
198,
198,
11748,
25064,
198,
11748,
2878,
198,
11748,
299,
32152,
355,
45941,
198,
198,
6759,
8609,
796,
17635,
198,
4480,
1280,
10786,
19608,
292,
316,
14,
4743,
659,
13,
40675,
33,
13,
6200,
67,... | 2.017857 | 336 |
# -*- coding: utf-8 -*-
from builtins import object
import re
from numbers import Integral
from collections import namedtuple
__all__ = ["countries"]
try:
str
except NameError:
str = str
Country = namedtuple('Country',
'name alpha2 alpha3 numeric apolitical_name')
_records = [
Coun... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
6738,
3170,
1040,
1330,
2134,
198,
11748,
302,
198,
6738,
3146,
1330,
15995,
1373,
198,
6738,
17268,
1330,
3706,
83,
29291,
198,
198,
834,
439,
834,
796,
14631,
912... | 2.201094 | 8,046 |
"""user_timezone
Revision ID: 2cd20ff3d23a
Revises: b4b8d57b54e5
Create Date: 2016-11-08 11:32:00.903232
"""
# revision identifiers, used by Alembic.
revision = '2cd20ff3d23a'
down_revision = 'b4b8d57b54e5'
from alembic import op
import sqlalchemy as sa
| [
37811,
7220,
62,
2435,
11340,
198,
198,
18009,
1166,
4522,
25,
362,
10210,
1238,
487,
18,
67,
1954,
64,
198,
18009,
2696,
25,
275,
19,
65,
23,
67,
3553,
65,
4051,
68,
20,
198,
16447,
7536,
25,
1584,
12,
1157,
12,
2919,
1367,
25,
... | 2.26087 | 115 |
import pathlib
from setuptools import setup
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / 'README.md').read_text(encoding='utf-8')
setup(
name='lavacord.py',
version='1.0.4a1',
description='Its a lavalink nodes manger to make a music bots for discord with python.',
long_d... | [
11748,
3108,
8019,
198,
198,
6738,
900,
37623,
10141,
1330,
9058,
198,
198,
1456,
796,
3108,
8019,
13,
15235,
7,
834,
7753,
834,
737,
8000,
13,
411,
6442,
3419,
198,
6511,
62,
11213,
796,
357,
1456,
1220,
705,
15675,
11682,
13,
9132,
... | 2.56513 | 499 |
"""
Chirp CWT with Ricker
=======================
In this example, we analyze a chirp signal with a Ricker (a.k.a. Mexican Hat wavelet)
"""
# Configure JAX to work with 64-bit floating point precision.
from jax.config import config
config.update("jax_enable_x64", True)
# %%
# Let's import necessary libraries
impo... | [
37811,
198,
1925,
343,
79,
24006,
51,
351,
8759,
263,
220,
198,
4770,
1421,
18604,
198,
198,
818,
428,
1672,
11,
356,
16602,
257,
442,
343,
79,
6737,
351,
257,
8759,
263,
357,
64,
13,
74,
13,
64,
13,
10816,
10983,
6769,
1616,
8,
... | 2.717036 | 1,039 |
#
# ISC License
#
# Copyright (C) 2021-present lifehackerhansol
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" A... | [
2,
198,
2,
3180,
34,
13789,
198,
2,
198,
2,
15069,
357,
34,
8,
33448,
12,
25579,
1204,
71,
10735,
71,
504,
349,
198,
2,
198,
2,
2448,
3411,
284,
779,
11,
4866,
11,
13096,
11,
290,
14,
273,
14983,
428,
3788,
329,
597,
198,
2,
... | 2.339576 | 2,830 |
from django.contrib import admin
from .models import Post, TagDict
# Register your models here.
admin.site.register(Post)
admin.site.register(TagDict)
| [
6738,
42625,
14208,
13,
3642,
822,
1330,
13169,
198,
198,
6738,
764,
27530,
1330,
2947,
11,
17467,
35,
713,
198,
198,
2,
17296,
534,
4981,
994,
13,
198,
198,
28482,
13,
15654,
13,
30238,
7,
6307,
8,
198,
28482,
13,
15654,
13,
30238,... | 3.163265 | 49 |
from src.day4 import Board, Game, load_data
from unittest.mock import patch, mock_open
EXAMPLE_IN = """7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1
22 13 17 11 0
8 2 23 4 24
21 9 14 16 7
6 10 3 18 5
1 12 20 15 19
3 15 0 2 22
9 18 13 17 5
19 8 7 25 23
20 11 10 24 4
14 21 16... | [
6738,
12351,
13,
820,
19,
1330,
5926,
11,
3776,
11,
3440,
62,
7890,
198,
6738,
555,
715,
395,
13,
76,
735,
1330,
8529,
11,
15290,
62,
9654,
198,
198,
6369,
2390,
16437,
62,
1268,
796,
37227,
22,
11,
19,
11,
24,
11,
20,
11,
1157,... | 1.980769 | 208 |
#!/usr/bin/env python
# Copyright 2012-2018 CERN for the benefit of the ATLAS collaboration.
#
# 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
... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
15069,
2321,
12,
7908,
327,
28778,
329,
262,
4414,
286,
262,
41051,
1921,
12438,
13,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
... | 2.453919 | 1,888 |
__author__ = 'dkarchmer'
import datetime
import json
import logging
import pprint
import boto3
from django.conf import settings
from .common import AWS_REGION
# Get an instance of a logger
logger = logging.getLogger(__name__)
FIREHOSE_STREAM_NAME = getattr(settings, 'FIREHOSE_STREAM_NAME')
firehose_client = boto... | [
834,
9800,
834,
796,
705,
34388,
998,
647,
6,
198,
198,
11748,
4818,
8079,
198,
11748,
33918,
198,
11748,
18931,
198,
11748,
279,
4798,
198,
198,
11748,
275,
2069,
18,
198,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
198,
673... | 2.816794 | 131 |
import sys
from PySide6 import QtGui
| [
11748,
25064,
198,
6738,
9485,
24819,
21,
1330,
33734,
8205,
72,
198
] | 3.083333 | 12 |
file_object.writelines(list_of_text_strings)
open('abinfile', 'wb').writelines(list_of_data_strings)
| [
7753,
62,
15252,
13,
8933,
20655,
7,
4868,
62,
1659,
62,
5239,
62,
37336,
8,
198,
9654,
10786,
6014,
7753,
3256,
705,
39346,
27691,
8933,
20655,
7,
4868,
62,
1659,
62,
7890,
62,
37336,
8,
198
] | 2.805556 | 36 |
from django.db import models
| [
6738,
42625,
14208,
13,
9945,
1330,
4981,
628
] | 3.75 | 8 |
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import six.moves.urllib.parse # pylint: disable=import-error
from core import benchmark_finders
from core import benchmark_utils
from telemetry.s... | [
2,
15069,
2864,
383,
18255,
1505,
46665,
13,
1439,
2489,
10395,
13,
198,
2,
5765,
286,
428,
2723,
2438,
318,
21825,
416,
257,
347,
10305,
12,
7635,
5964,
326,
460,
307,
198,
2,
1043,
287,
262,
38559,
24290,
2393,
13,
198,
11748,
286... | 1.984234 | 8,436 |
# Copyright 2018 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
2,
15069,
2864,
383,
21239,
80,
34152,
198,
2,
198,
2,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
2,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
2,
921,... | 3.762774 | 274 |
from datetime import datetime
from typing import Optional
import attr
@attr.dataclass
| [
6738,
4818,
8079,
1330,
4818,
8079,
198,
6738,
19720,
1330,
32233,
198,
198,
11748,
708,
81,
628,
198,
31,
35226,
13,
19608,
330,
31172,
198
] | 3.56 | 25 |
import itertools
import json
import re
from collections import OrderedDict, defaultdict
from os.path import abspath, dirname, join
import click
def ascii_encode(non_compatible_string):
"""Primarily used for ensuring terminal display compatibility"""
if non_compatible_string:
return non_compatible_... | [
11748,
340,
861,
10141,
198,
11748,
33918,
198,
11748,
302,
198,
198,
6738,
17268,
1330,
14230,
1068,
35,
713,
11,
4277,
11600,
198,
6738,
28686,
13,
6978,
1330,
2352,
6978,
11,
26672,
3672,
11,
4654,
198,
198,
11748,
3904,
628,
628,
... | 2.304744 | 3,731 |
import os
from dotenv import load_dotenv, find_dotenv
from pymongo import MongoClient
load_dotenv(find_dotenv())
mongo_url = os.getenv("mongo_url")
myclient = MongoClient(mongo_url)
mydb_master = myclient["SCDF"]
col = mydb_master["investigacoes"] | [
11748,
28686,
198,
198,
6738,
16605,
24330,
1330,
3440,
62,
26518,
24330,
11,
1064,
62,
26518,
24330,
198,
6738,
279,
4948,
25162,
1330,
42591,
11792,
198,
198,
2220,
62,
26518,
24330,
7,
19796,
62,
26518,
24330,
28955,
198,
76,
25162,
... | 2.766667 | 90 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2021 CS GROUP - France.
#
# This file is part of EOTile.
# See https://github.com/CS-SI/eotile for further info.
#
# 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... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
198,
2,
15069,
357,
66,
8,
33448,
9429,
44441,
532,
4881,
13,
198,
2,
198,
2,
770,
2393,
318,
636,
286,
412,
2394,
576,
13,
198,
2,
4091,
3740,
1378,
12567,
13,... | 2.144525 | 4,283 |
from rest_framework.viewsets import ViewSet
from backend.models import AwsEnvironmentModel, TenantModel
from backend.serializers.aws_environment_model_serializer import (AwsEnvironmentModelGetDetailSerializer,
AwsEnvironmentModelCreateSerializer,
... | [
6738,
1334,
62,
30604,
13,
1177,
28709,
1330,
3582,
7248,
201,
198,
6738,
30203,
13,
27530,
1330,
5851,
82,
31441,
17633,
11,
9368,
415,
17633,
201,
198,
6738,
30203,
13,
46911,
11341,
13,
8356,
62,
38986,
62,
19849,
62,
46911,
7509,
... | 2.547101 | 276 |
from distutils.core import setup
setup(
name='openabis-fingerjetfx',
version='0.0.1',
packages=['openabis_fingerjetfx'],
url='https://github.com/newlogic42/openabis-fingerjetfx',
license='Apache License',
author='newlogic42',
author_email='',
description='OpenAbis\' plugin implementatio... | [
6738,
1233,
26791,
13,
7295,
1330,
9058,
198,
198,
40406,
7,
198,
220,
220,
220,
1438,
11639,
9654,
8102,
12,
35461,
31173,
21373,
3256,
198,
220,
220,
220,
2196,
11639,
15,
13,
15,
13,
16,
3256,
198,
220,
220,
220,
10392,
28,
17816... | 2.397906 | 191 |
import memory
import instructions
cpu_flags = {
"N": 0x80, # negative
"V": 0x40, # overflow
"M": 0x20, # accumulator size (set => 8bits)
"X": 0x10, # index size (set => 8bits)
"D": 0x08, # decimal flag (does nothing on SNES, I think)
"I": 0x04, # IRQ disabled when set
"Z": 0x02, # zero
... | [
11748,
4088,
198,
11748,
7729,
198,
198,
36166,
62,
33152,
796,
1391,
198,
220,
220,
220,
366,
45,
1298,
657,
87,
1795,
11,
1303,
4633,
198,
220,
220,
220,
366,
53,
1298,
657,
87,
1821,
11,
1303,
30343,
198,
220,
220,
220,
366,
44... | 2.380682 | 176 |
import cv2
import json
import statistics
import matplotlib.pyplot as plt
import numpy as np
import libs.method.QcImage as QcImage
import libs.method.SICCalibrationRegression_MB3 as SICCalibrationRegression_MB3
from libs.model.TrainingSet import TrainingSet
JSON_PATH = 'Dataset/data_color_chart/tags.json'
IMAGE_PATH =... | [
11748,
269,
85,
17,
198,
11748,
33918,
198,
11748,
7869,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
9195,
82,
13,
24396,
13,
48,
66,
5159,
355,
1195,
66,
5159,
198,
... | 2.003181 | 1,886 |
from setuptools import setup, find_packages
setup(name = 'MELKE',
version = '1',
description = 'Extract entities and relations from BIO-text',
long_description = 'You can read brief description of MELKE here: \nhttps://github.com/im-na02/melke/',
url = 'https://github.com/im-na02/melke/... | [
201,
198,
6738,
900,
37623,
10141,
1330,
9058,
11,
1064,
62,
43789,
201,
198,
201,
198,
40406,
7,
3672,
796,
705,
44,
3698,
7336,
3256,
201,
198,
220,
220,
220,
220,
220,
2196,
796,
705,
16,
3256,
201,
198,
220,
220,
220,
220,
220... | 2.343396 | 265 |
"""Tests for motion_frontend integration."""
| [
37811,
51,
3558,
329,
6268,
62,
8534,
437,
11812,
526,
15931,
198
] | 3.75 | 12 |
# Crie um programa que tenha a função leiaInt(), que vai funcionar
# de forma semelhante ‘a função input() do Python, só que fazendo a
# validação para aceitar apenas um valor numérico. Ex: n = leiaInt(‘Digite um n: ‘)
n = leiaInt('Número: ')
print(n) | [
2,
327,
5034,
23781,
1430,
64,
8358,
3478,
3099,
257,
1257,
16175,
28749,
443,
544,
5317,
22784,
8358,
410,
1872,
25439,
295,
283,
198,
2,
390,
1296,
64,
5026,
417,
71,
12427,
564,
246,
64,
1257,
16175,
28749,
5128,
3419,
466,
11361,
... | 2.342593 | 108 |
# Import our database and initialize it
from db import DB
import send_email
import re
import hashlib
import uuid
import traceback
from datetime import datetime
from base64 import standard_b64encode
sql = DB()
sql.clear_db()
sql.init_db()
sql.populate()
# Checker function to check all form variables
# Checker functi... | [
2,
17267,
674,
6831,
290,
41216,
340,
198,
6738,
20613,
1330,
20137,
198,
11748,
3758,
62,
12888,
198,
11748,
302,
198,
11748,
12234,
8019,
198,
11748,
334,
27112,
198,
11748,
12854,
1891,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
6... | 3.761905 | 147 |
from fanstatic import Library, Resource
from fanstatic.core import render_js
library = Library('json2', 'resources')
def earlier_than_ie8(url):
"""Native JSON support was introduced in IE8."""
return '<!--[if lt IE 8]>%s<![endif]-->' % render_js(url)
json2 = Resource(library, 'json2.js', renderer=earlier_tha... | [
6738,
4336,
12708,
1330,
10074,
11,
20857,
198,
6738,
4336,
12708,
13,
7295,
1330,
8543,
62,
8457,
198,
198,
32016,
796,
10074,
10786,
17752,
17,
3256,
705,
37540,
11537,
198,
198,
4299,
2961,
62,
14813,
62,
494,
23,
7,
6371,
2599,
19... | 2.843478 | 115 |
from .base import BaseCompiler, ExecCompiler
| [
6738,
764,
8692,
1330,
7308,
7293,
5329,
11,
8393,
7293,
5329,
198
] | 3.75 | 12 |
'''Swiss pairing simulation'''
import matplotlib
matplotlib.use('SVG')
import matplotlib.pyplot as plt
import numpy as np
from tournament import SwissTournament, PairingError
if __name__ == '__main__':
main()
| [
7061,
6,
10462,
747,
27356,
18640,
7061,
6,
198,
11748,
2603,
29487,
8019,
198,
6759,
29487,
8019,
13,
1904,
10786,
50,
43490,
11537,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
299,
32152,
355,
45941,
198,... | 3.028169 | 71 |
import matplotlib.pyplot as plt
import numpy as np
t, x, y = np.loadtxt("out/traiettoria.dat", skiprows=1, unpack=True)
# Traiettoria
plt.figure(figsize=(5, 5))
plt.plot(x, y, "-o", color="tab:blue", markersize=3)
plt.title("Traiettoria")
plt.xlabel("x(t)")
plt.ylabel("y(t)")
plt.savefig("out/traiettoria")
# x
plt.... | [
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
299,
32152,
355,
45941,
198,
198,
83,
11,
2124,
11,
331,
796,
45941,
13,
2220,
14116,
7203,
448,
14,
9535,
1155,
83,
7661,
13,
19608,
1600,
14267,
8516,
28,
16,
11... | 2.031847 | 314 |
"""Simple wrapper to upgrade the files by github URL"""
import json
import logging
import os
import re
import shutil
import subprocess
import urllib
from hashlib import md5
from typing import Tuple, List
import requests
import tensorflow as tf
# TODO: install file properly with `pip install -e .`
import sys
sys.pat... | [
37811,
26437,
29908,
284,
8515,
262,
3696,
416,
33084,
10289,
37811,
198,
198,
11748,
33918,
198,
11748,
18931,
198,
11748,
28686,
198,
11748,
302,
198,
11748,
4423,
346,
198,
11748,
850,
14681,
198,
11748,
2956,
297,
571,
198,
198,
6738,... | 2.326007 | 3,822 |
def resolve():
'''
code here
'''
X = int(input())
if X >= 30:
print('Yes')
else:
print('No')
if __name__ == "__main__":
resolve()
| [
4299,
10568,
33529,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
2438,
994,
198,
220,
220,
220,
705,
7061,
198,
220,
220,
220,
1395,
796,
493,
7,
15414,
28955,
628,
220,
220,
220,
611,
1395,
18189,
1542,
25,
198,
220,
220,
2... | 1.988764 | 89 |
from twistedbot.plugins.base import PluginChatBase
from twistedbot.behavior_tree import FollowPlayer
plugin = Follow
| [
198,
6738,
19074,
13645,
13,
37390,
13,
8692,
1330,
42636,
30820,
14881,
198,
6738,
19074,
13645,
13,
46571,
62,
21048,
1330,
7281,
14140,
628,
198,
198,
33803,
796,
7281,
198
] | 4.033333 | 30 |
import pytest
from transiter.db import models
@pytest.fixture
@pytest.fixture
@pytest.fixture
@pytest.fixture
| [
11748,
12972,
9288,
198,
198,
6738,
1007,
2676,
13,
9945,
1330,
4981,
628,
198,
31,
9078,
9288,
13,
69,
9602,
628,
198,
31,
9078,
9288,
13,
69,
9602,
628,
198,
31,
9078,
9288,
13,
69,
9602,
628,
198,
31,
9078,
9288,
13,
69,
9602,
... | 2.644444 | 45 |
from collections import defaultdict
import copy
import networkx as nx
from zincbase import context
class Edge:
"""Class representing an edge in the KB.
"""
@property
def nodes(self):
"""Return the nodes that this edge is connected to as tuple of (subject, object)
"""
return [... | [
6738,
17268,
1330,
4277,
11600,
198,
11748,
4866,
198,
198,
11748,
3127,
87,
355,
299,
87,
198,
198,
6738,
31861,
8692,
1330,
4732,
198,
198,
4871,
13113,
25,
198,
220,
220,
220,
37227,
9487,
10200,
281,
5743,
287,
262,
14204,
13,
198... | 2.480269 | 1,039 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
SemKITTI dataloader
"""
import os
import numpy as np
import torch
import random
import time
import numba as nb
import yaml
import pickle
from torch.utils import data
from tqdm import tqdm
from scipy import stats as s
from os.path import join
# load Semantic KITTI clas... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
13900,
42,
22470,
40,
4818,
282,
1170,
263,
198,
37811,
198,
11748,
28686,
198,
11748,
299,
32152,
355,... | 2.542105 | 570 |
#!/usr/bin/python
# -*- coding: ascii -*-
"""
Serialized usage test.
:date: 2021
:author: Christian Wiche
:contact: cwichel@gmail.com
:license: The MIT License (MIT)
"""
import unittest
from examples.stream_setup import SimplePacket
from embutils.utils import CRC
# -->> Definitions <<-----------------... | [
2,
48443,
14629,
14,
8800,
14,
29412,
198,
2,
532,
9,
12,
19617,
25,
355,
979,
72,
532,
9,
12,
198,
37811,
198,
32634,
1143,
8748,
1332,
13,
198,
198,
25,
4475,
25,
220,
220,
220,
220,
220,
33448,
198,
25,
9800,
25,
220,
220,
... | 2.35082 | 915 |
from __future__ import absolute_import, print_function
import logging
import re
import six
import itertools
from django.db import models, IntegrityError, transaction
from django.db.models import F
from django.utils import timezone
from time import time
from sentry.app import locks
from sentry.db.models import (
... | [
6738,
11593,
37443,
834,
1330,
4112,
62,
11748,
11,
3601,
62,
8818,
198,
198,
11748,
18931,
198,
11748,
302,
198,
11748,
2237,
198,
11748,
340,
861,
10141,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
4981,
11,
39348,
12331,
11,
8611,
... | 1.914754 | 7,754 |
print('abc'.startswith('a'))
print('abc'.startswith('b'))
print('abc'.startswith('c'))
print('abc'.startswith('bc'))
print('abc'.startswith('abc'))
print('aBc'.casefold().startswith(('b', 'c')))
print('aBc'.casefold().startswith(('x', 'y')))
print('aBc'.casefold().startswith('A'.casefold()))
print('aBc'.casefold().st... | [
4798,
10786,
39305,
4458,
9688,
2032,
342,
10786,
64,
6,
4008,
198,
4798,
10786,
39305,
4458,
9688,
2032,
342,
10786,
65,
6,
4008,
198,
4798,
10786,
39305,
4458,
9688,
2032,
342,
10786,
66,
6,
4008,
198,
4798,
10786,
39305,
4458,
9688,
... | 2.378897 | 417 |
import matplotlib.pyplot as plt
import numpy as np
plt.title('Un primo plot con Python')
x, y = np.loadtxt('ex1.dat', unpack=True)
plt.plot(x ,y, 'o-.b', label='Temperature Convertite')
plt.xlim((-10,130)) # intervallo lungo asse x
plt.ylim((10,250)) # intervallo lungo asse y
plt.xlabel('Temperature Celsius')
plt.yl... | [
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
220,
198,
11748,
299,
32152,
355,
45941,
198,
489,
83,
13,
7839,
10786,
3118,
2684,
78,
7110,
369,
11361,
11537,
198,
87,
11,
331,
796,
45941,
13,
2220,
14116,
10786,
1069,
16,
... | 2.518987 | 158 |
import os
from flask import url_for
from dimensigon.domain.entities import Software, Server
from dimensigon.utils.helpers import md5
from dimensigon.web import db
from tests.base import TestResourceBase
| [
11748,
28686,
198,
198,
6738,
42903,
1330,
19016,
62,
1640,
198,
198,
6738,
5391,
641,
37107,
13,
27830,
13,
298,
871,
1330,
10442,
11,
9652,
198,
6738,
5391,
641,
37107,
13,
26791,
13,
16794,
364,
1330,
45243,
20,
198,
6738,
5391,
64... | 3.614035 | 57 |
from django.conf.urls import url, patterns
from . import views
urlpatterns = patterns('clustering.views',
url(r'^accueil$', 'home'),
url(r'^screen/(\d+)$', views.view_screen),
)
| [
6738,
42625,
14208,
13,
10414,
13,
6371,
82,
1330,
19016,
11,
7572,
198,
6738,
764,
1330,
5009,
198,
198,
6371,
33279,
82,
796,
220,
7572,
10786,
565,
436,
1586,
13,
33571,
3256,
220,
198,
197,
6371,
7,
81,
6,
61,
4134,
518,
346,
... | 2.577465 | 71 |
import os
import os.path
from setuptools import setup, Extension
import versioneer
# Default description in markdown
LONG_DESCRIPTION = open('README.md').read()
PKG_NAME = 'tessdb-cmdline'
AUTHOR = 'Rafael Gonzalez'
AUTHOR_EMAIL = 'astrorafael@yahoo.es'
DESCRIPTION = 'tessdb command line tool to manage t... | [
11748,
28686,
198,
11748,
28686,
13,
6978,
198,
198,
6738,
900,
37623,
10141,
1330,
9058,
11,
27995,
198,
11748,
2196,
28153,
198,
198,
2,
15161,
6764,
287,
1317,
2902,
198,
43,
18494,
62,
30910,
40165,
796,
1280,
10786,
15675,
11682,
1... | 2.283396 | 801 |
#-*-coding:utf8;-*-
import re
from random import choice
class sub(object):
""" a simple text to number evaluating class """
def text_to_number(self,text):
'''convert a number written as text to its real number equivalence'''
text = text.lower()
text = re.sub(r"ten", "10", text)
... | [
2,
12,
9,
12,
66,
7656,
25,
40477,
23,
26,
12,
9,
12,
198,
11748,
302,
198,
6738,
4738,
1330,
3572,
628,
198,
4871,
850,
7,
15252,
2599,
198,
220,
220,
220,
37227,
257,
2829,
2420,
284,
1271,
22232,
1398,
37227,
198,
220,
220,
2... | 1.981689 | 2,676 |
"""
This example shows how to create a Messaging Interactions transcripts CSV flat file from the lp_api_wrapper library.
"""
from lp_api_wrapper import MessagingInteractions, UserLogin
from datetime import datetime, timedelta
import pandas as pd
# For User Login
auth = UserLogin(account_id='1234', username='YOURUSERN... | [
37811,
198,
1212,
1672,
2523,
703,
284,
2251,
257,
10626,
3039,
4225,
4658,
29351,
44189,
6228,
2393,
422,
262,
300,
79,
62,
15042,
62,
48553,
5888,
13,
198,
37811,
198,
198,
6738,
300,
79,
62,
15042,
62,
48553,
1330,
10626,
3039,
949... | 3.18732 | 347 |
from selenium import webdriver
from time import sleep
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
usr=input('Enter Email Address :')
pwd=input('Enter Password:')
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('http... | [
6738,
384,
11925,
1505,
1330,
3992,
26230,
220,
198,
6738,
640,
1330,
3993,
220,
198,
6738,
3992,
26230,
62,
37153,
13,
46659,
1330,
13282,
32103,
13511,
220,
198,
6738,
384,
11925,
1505,
13,
12384,
26230,
13,
46659,
13,
25811,
1330,
18... | 2.840532 | 301 |
# Generated by Django 3.2.5 on 2021-07-12 05:08
from django.db import migrations
| [
2,
2980,
515,
416,
37770,
513,
13,
17,
13,
20,
319,
33448,
12,
2998,
12,
1065,
8870,
25,
2919,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
628
] | 2.766667 | 30 |
from logging import getLogger
from pandas import read_html
# from ecsim._scrapers.base import state_names
logger = getLogger(__name__)
url = "https://en.wikipedia.org/wiki/List_of_U.S._states_and_territories_by_historical_population"
# if __name__ == "__main__":
# data = scrape_data()
# for foo, bar i... | [
6738,
18931,
1330,
651,
11187,
1362,
198,
198,
6738,
19798,
292,
1330,
1100,
62,
6494,
198,
198,
2,
422,
304,
6359,
320,
13557,
1416,
2416,
364,
13,
8692,
1330,
1181,
62,
14933,
628,
198,
6404,
1362,
796,
651,
11187,
1362,
7,
834,
3... | 2.549133 | 173 |
# -*- coding: utf-8 -*-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
# 2020 MinIO, Inc.
#
# 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/lic... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
1855,
9399,
11361,
10074,
329,
6186,
311,
18,
3082,
16873,
10130,
20514,
11,
357,
34,
8,
198,
2,
12131,
1855,
9399,
11,
3457,
13,
198,
2,
198,
2,
49962,
739,
262,... | 2.865225 | 601 |
from __future__ import print_function, absolute_import, division
import os
import KratosMultiphysics
import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics.MetisApplication as MetisApplication
import KratosMultiphysics.TrilinosApplication as TrilinosApplication
import KratosMult... | [
171,
119,
123,
6738,
11593,
37443,
834,
1330,
3601,
62,
8818,
11,
4112,
62,
11748,
11,
7297,
201,
198,
201,
198,
11748,
28686,
201,
198,
201,
198,
11748,
509,
10366,
418,
15205,
13323,
23154,
201,
198,
11748,
509,
10366,
418,
15205,
1... | 3.028846 | 208 |
import zipfile
import os.path
| [
201,
198,
11748,
19974,
7753,
201,
198,
11748,
28686,
13,
6978,
201,
198
] | 2.615385 | 13 |
# Mock settings file imported by sphinx when building docs
SECRET_KEY = 'not empty'
| [
2,
44123,
6460,
2393,
17392,
416,
599,
20079,
87,
618,
2615,
34165,
198,
198,
23683,
26087,
62,
20373,
796,
705,
1662,
6565,
6,
198
] | 3.541667 | 24 |
'''
Author: Liu Xin
Date: 2021-11-29 11:08:53
LastEditors: Liu Xin
LastEditTime: 2021-11-30 19:43:19
Description: file content
FilePath: /CVMI_Sementic_Segmentation/model/decode_heads/encnet/encnet.py
'''
'''
Author: Liu Xin
Date: 2021-11-29 11:08:53
LastEditors: Liu Xin
LastEditTime: 2021-11-30 19:31:07
Description: f... | [
7061,
6,
198,
13838,
25,
18258,
25426,
198,
10430,
25,
33448,
12,
1157,
12,
1959,
1367,
25,
2919,
25,
4310,
198,
5956,
18378,
669,
25,
18258,
25426,
198,
5956,
18378,
7575,
25,
33448,
12,
1157,
12,
1270,
678,
25,
3559,
25,
1129,
198... | 2.418782 | 394 |
import numpy as np
import numpy.typing as npt
from .. import tools
from ..algo import Algo
class TCO(Algo):
"""Transaction costs optimization. The TCO algorithm needs just a next return prediction
to work, see the paper for more details.
Paper : https://ink.library.smu.edu.sg/cgi/viewcontent.cgi?referer... | [
11748,
299,
32152,
355,
45941,
198,
11748,
299,
32152,
13,
774,
13886,
355,
299,
457,
198,
198,
6738,
11485,
1330,
4899,
198,
6738,
11485,
282,
2188,
1330,
978,
2188,
628,
198,
4871,
309,
8220,
7,
2348,
2188,
2599,
198,
220,
220,
220,... | 2.132353 | 748 |
import matplotlib.pyplot as plt
import numpy as np
import matplotlib
from datetime import datetime, timedelta
from floodsystem.analysis import polyfit
| [
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
198,
6738,
4818,
8079,
1330,
4818,
8079,
11,
28805,
12514,
198,
6738,
6947,
10057,
13,
20930,
1330,
7514,
11147,
... | 3.707317 | 41 |
import sys
import numpy as np
'''
This function parses the yaml input file, assuming the input is correct The parsing works in the following way:
given a correct file that defines len = n, the function returns two arrays of length n - cell_value_arr (beauty/num
coins in each cell) and cell_title_arr (princess or drag... | [
11748,
25064,
198,
11748,
299,
32152,
355,
45941,
198,
198,
7061,
6,
198,
1212,
2163,
13544,
274,
262,
331,
43695,
5128,
2393,
11,
13148,
262,
5128,
318,
3376,
383,
32096,
2499,
287,
262,
1708,
835,
25,
220,
198,
35569,
257,
3376,
239... | 3.470078 | 1,153 |
# -*- coding: utf-8 -*-
# Copyright Hannah von Reth <vonreth@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of condi... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
2,
15069,
26013,
18042,
371,
2788,
1279,
26982,
40978,
31,
74,
2934,
13,
2398,
29,
198,
2,
198,
2,
2297,
396,
3890,
290,
779,
287,
2723,
290,
13934,
5107,
11,
351,
3... | 3.415274 | 419 |
import argparse
import ora_tools as ora
| [
11748,
1822,
29572,
198,
11748,
393,
64,
62,
31391,
355,
393,
64,
198
] | 3.076923 | 13 |
from django.apps import AppConfig
| [
6738,
42625,
14208,
13,
18211,
1330,
2034,
16934,
628
] | 3.888889 | 9 |
import databricks_test
from databricks_test import SessionAlreadyExistsException
| [
11748,
4818,
397,
23706,
62,
9288,
198,
6738,
4818,
397,
23706,
62,
9288,
1330,
23575,
37447,
3109,
1023,
16922,
628
] | 4.1 | 20 |
"""Module that implements the Switch class."""
from __future__ import annotations
from ..const import SwitchAttribute, ZWaveDeviceAttribute
from . import VivintDevice
class Switch(VivintDevice):
"""Represents a Vivint switch device."""
@property
def is_on(self) -> bool:
"""Return True if switch ... | [
37811,
26796,
326,
23986,
262,
14645,
1398,
526,
15931,
198,
6738,
11593,
37443,
834,
1330,
37647,
198,
198,
6738,
11485,
9979,
1330,
14645,
33682,
11,
1168,
39709,
24728,
33682,
198,
6738,
764,
1330,
25313,
600,
24728,
628,
198,
4871,
14... | 2.681004 | 558 |
from sprp.core.alg import *
from sprp.export.shapefile import *
if __name__ == "__main__":
slc = SimpleLineCalculator(116.23589,39.90387,116.25291,39.90391,**{
"cameraWidth": 4000,
"cameraHeight":3000,
"focusLength":35,
"pixelSize":2,
"gsd":0.05,
"flightSpeed":80,
... | [
6738,
7500,
79,
13,
7295,
13,
14016,
1330,
1635,
198,
6738,
7500,
79,
13,
39344,
13,
43358,
7753,
1330,
1635,
198,
198,
361,
11593,
3672,
834,
6624,
366,
834,
12417,
834,
1298,
198,
220,
220,
220,
1017,
66,
796,
17427,
13949,
9771,
... | 2.012371 | 1,455 |
import sys
from optparse import make_option
from django.core import management
from django.conf import settings
from django.core.management.base import BaseCommand
from django.db.models import get_apps
from django_kwalitee.testrunners import get_runner | [
11748,
25064,
198,
6738,
2172,
29572,
1330,
787,
62,
18076,
198,
198,
6738,
42625,
14208,
13,
7295,
1330,
4542,
198,
6738,
42625,
14208,
13,
10414,
1330,
6460,
198,
6738,
42625,
14208,
13,
7295,
13,
27604,
13,
8692,
1330,
7308,
21575,
1... | 3.681159 | 69 |
#
# @lc app=leetcode.cn id=76 lang=python3
#
# [76] 最小覆盖子串
#
# https://leetcode-cn.com/problems/minimum-window-substring/description/
#
# algorithms
# Hard (38.57%)
# Likes: 701
# Dislikes: 0
# Total Accepted: 72K
# Total Submissions: 186K
# Testcase Example: '"ADOBECODEBANC"\n"ABC"'
#
# 给你一个字符串 S、一个字符串 T 。请你设计一... | [
2,
198,
2,
2488,
44601,
598,
28,
293,
316,
8189,
13,
31522,
4686,
28,
4304,
42392,
28,
29412,
18,
198,
2,
198,
2,
685,
4304,
60,
42164,
222,
22887,
237,
17358,
228,
33566,
244,
36310,
10310,
110,
198,
2,
198,
2,
3740,
1378,
293,
... | 1.300541 | 925 |
print ("""
Working.
@muuT3ra$$uu-kick-my-str-v.1
#FuckAllEverything.
by Tripl_color vk.com/Tripl_color""")
import vk_requests
import time
import random
token = "токен бота"
cid = str(input('Айди беседы = '))
photo = "photo472165736_457244077"
audio = "audio472165736_456239668"
msg = "fuck all. by Tripl_Color. @muuT3r... | [
4798,
5855,
15931,
198,
28516,
13,
198,
31,
76,
12303,
51,
18,
430,
13702,
12303,
12,
24585,
12,
1820,
12,
2536,
12,
85,
13,
16,
198,
2,
34094,
3237,
19693,
13,
220,
198,
1525,
7563,
489,
62,
8043,
410,
74,
13,
785,
14,
14824,
4... | 2.158392 | 423 |
import random
from heads import Head
| [
11748,
4738,
198,
6738,
6665,
1330,
7123,
628,
198
] | 4.333333 | 9 |