content stringlengths 1 1.05M | input_ids listlengths 1 883k | ratio_char_token float64 1 22.9 | token_count int64 1 883k |
|---|---|---|---|
import pandas as pd
from pydash.objects import get
| [
11748,
19798,
292,
355,
279,
67,
198,
6738,
279,
5173,
1077,
13,
48205,
1330,
651,
628
] | 3.25 | 16 |
from email.parser import BytesParser, Parser
from email.policy import default, HTTP
| [
6738,
3053,
13,
48610,
1330,
2750,
4879,
46677,
11,
23042,
263,
198,
6738,
3053,
13,
30586,
1330,
4277,
11,
14626,
628
] | 4.047619 | 21 |
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import pytest
| [
6738,
42903,
1330,
46947,
198,
6738,
42903,
62,
25410,
282,
26599,
1330,
16363,
2348,
26599,
198,
11748,
12972,
9288,
628,
198
] | 3.809524 | 21 |
A = [3, 5, 8, 9, 6, 2]
print('Original Array: ', A)
selection_sort(A)
print('Sorted Array: ', A)
| [
198,
198,
32,
796,
685,
18,
11,
642,
11,
807,
11,
860,
11,
718,
11,
362,
60,
198,
4798,
10786,
20556,
15690,
25,
46083,
317,
8,
198,
49283,
62,
30619,
7,
32,
8,
198,
4798,
10786,
50,
9741,
15690,
25,
46083,
317,
8,
198
] | 2.25 | 44 |
from django.db import models
from django.core.urlresolvers import reverse
from django.utils import timezone
from django.utils.text import slugify
| [
6738,
42625,
14208,
13,
9945,
1330,
4981,
201,
198,
6738,
42625,
14208,
13,
7295,
13,
6371,
411,
349,
690,
1330,
9575,
201,
198,
6738,
42625,
14208,
13,
26791,
1330,
640,
11340,
201,
198,
6738,
42625,
14208,
13,
26791,
13,
5239,
1330,
... | 2.009615 | 104 |
# load defaults and override with devlopment settings
from defaults import *
DEBUG = True
WSGI_APPLICATION = 'bucketlist_django.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'bucketlist',
'USER': 'bucketlist',
'PASSWORD': ... | [
2,
3440,
26235,
290,
20957,
351,
1614,
75,
404,
434,
6460,
198,
6738,
26235,
1330,
1635,
198,
198,
30531,
796,
6407,
198,
198,
19416,
18878,
62,
2969,
31484,
6234,
796,
705,
27041,
316,
4868,
62,
28241,
14208,
13,
18504,
12397,
13,
31... | 2.304054 | 148 |
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
#
# 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... | [
2,
15069,
357,
66,
8,
1853,
30446,
15503,
12,
11869,
446,
7712,
5834,
11,
406,
13,
47,
13,
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,
239... | 3.817204 | 186 |
import os
import os.path
import pickle
from shutil import copyfile
import numpy as np
import pandas as pd
import xgboost as xgb
from sklearn.decomposition import KernelPCA
from sklearn.decomposition import PCA
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import GradientBoostingClassifier
from ... | [
11748,
28686,
198,
11748,
28686,
13,
6978,
198,
11748,
2298,
293,
198,
6738,
4423,
346,
1330,
4866,
7753,
198,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
2124,
70,
39521,
355,
2124,
22296,
198,... | 3.837037 | 405 |
from flask import Blueprint
from flask import abort
from flask import render_template
from flask import request
from flask import current_app
from sqlalchemy import desc
from gleague.core import db
from gleague.models import Match
from gleague.models import Season
from gleague.models import SeasonStats
from gleague.mo... | [
6738,
42903,
1330,
39932,
198,
6738,
42903,
1330,
15614,
198,
6738,
42903,
1330,
8543,
62,
28243,
198,
6738,
42903,
1330,
2581,
198,
6738,
42903,
1330,
1459,
62,
1324,
198,
6738,
44161,
282,
26599,
1330,
1715,
198,
198,
6738,
308,
19316,
... | 3.980392 | 102 |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : 822.py
@Contact : huanghoward@foxmail.com
@Modify Time : 2022/3/29 13:19
------------
"""
from typing import List
if __name__ == '__main__':
s = Solution()
print(s.flipgame([1],[1])) | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
532,
9,
12,
21004,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
31,
8979,
220,
220,
220,
1058,
220,
220,
807,
1828,
13,
9078,
220,
220,
220,
220,
198,
31,
17829,
1058,
... | 2.15748 | 127 |
#! /usr/bin/python3
# -*- coding: utf-8 -*-
import pickle
import pandas as pd
import xml.etree.ElementTree as ET
import math
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import csv
import glob
import scikit_posthocs as sp
from scipy import stats
import os
from scipy import stats
import scik... | [
2,
0,
1220,
14629,
14,
8800,
14,
29412,
18,
198,
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
198,
11748,
2298,
293,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
35555,
13,
316,
631,
13,
20180,
27660,
355,
... | 2.291876 | 9,946 |
import unittest
from podb import DB
from tqdm import tqdm
from . import HugeDBItem
db = DB("huge")
if __name__ == '__main__':
unittest.main()
| [
11748,
555,
715,
395,
198,
6738,
24573,
65,
1330,
20137,
198,
6738,
256,
80,
36020,
1330,
256,
80,
36020,
198,
6738,
764,
1330,
35225,
11012,
7449,
198,
198,
9945,
796,
20137,
7203,
40878,
4943,
628,
198,
198,
361,
11593,
3672,
834,
6... | 2.586207 | 58 |
from .models import sts_backend
from ..core.models import base_decorator
sts_backends = {"global": sts_backend}
mock_sts = base_decorator(sts_backends)
| [
6738,
764,
27530,
1330,
39747,
62,
1891,
437,
198,
6738,
11485,
7295,
13,
27530,
1330,
2779,
62,
12501,
273,
1352,
198,
198,
6448,
62,
1891,
2412,
796,
19779,
20541,
1298,
39747,
62,
1891,
437,
92,
198,
76,
735,
62,
6448,
796,
2779,
... | 2.886792 | 53 |
# Database switched from having nsrId to using orgnr, this script helps with this conversion.
import os
import re
import json
import subprocess
from glob import glob
from utility_to_osm import file_util
if __name__ == '__main__':
data_dir = 'data' #'barnehagefakta_osm_data/data'
nsrId_to_orgnr_filename = 'nsr... | [
2,
24047,
15293,
422,
1719,
299,
27891,
7390,
284,
1262,
393,
4593,
81,
11,
428,
4226,
5419,
351,
428,
11315,
13,
198,
11748,
28686,
198,
11748,
302,
198,
11748,
33918,
198,
11748,
850,
14681,
198,
6738,
15095,
1330,
15095,
198,
198,
... | 1.722063 | 1,745 |
from django.test import TestCase
from regcore.layer import standardize_params
| [
6738,
42625,
14208,
13,
9288,
1330,
6208,
20448,
198,
198,
6738,
842,
7295,
13,
29289,
1330,
3210,
1096,
62,
37266,
628
] | 3.809524 | 21 |
while True:
try:
i = int(input("Say giriniz: ")) # 2
except ValueError:
print("Hata Kodu: 5786, \nAklama: Ltfen bir \"tam say\" giriniz.")
else:
for s in range(2, i, 1):
if i%s == 0:
print(f"{i} says, asal deildir.")
break
else:
if s == i - 1:
print(f"{i} says, asal bir say... | [
4514,
6407,
25,
201,
198,
197,
28311,
25,
201,
198,
197,
197,
72,
796,
493,
7,
15414,
7203,
25515,
37370,
259,
528,
25,
366,
4008,
1303,
362,
201,
198,
197,
16341,
11052,
12331,
25,
201,
198,
197,
197,
4798,
7203,
39,
1045,
32701,
... | 1.85654 | 237 |
"""Main entrypoint for this application"""
from pathlib import Path
from math import degrees
from datetime import datetime
import logging
import warnings
from environs import Env
from streamz import Stream
from paho.mqtt.client import Client as MQTT
from pycluon import OD4Session, Envelope as cEnvelope
from pycluo... | [
37811,
13383,
5726,
4122,
329,
428,
3586,
37811,
198,
198,
6738,
3108,
8019,
1330,
10644,
198,
6738,
10688,
1330,
7370,
198,
6738,
4818,
8079,
1330,
4818,
8079,
198,
11748,
18931,
198,
11748,
14601,
198,
198,
6738,
17365,
343,
684,
1330,
... | 2.369187 | 2,473 |
from typing import Any, Optional
from dataclasses import dataclass, field
import aiohttp
from ..types import aliases
from ..types import exceptions
# not used, but can be
| [
6738,
19720,
1330,
4377,
11,
32233,
198,
6738,
4818,
330,
28958,
1330,
4818,
330,
31172,
11,
2214,
198,
198,
11748,
257,
952,
4023,
198,
198,
6738,
11485,
19199,
1330,
47217,
198,
6738,
11485,
19199,
1330,
13269,
628,
628,
198,
2,
407,
... | 3.729167 | 48 |
#!/usr/bin/python3
import re
import json
import random
from pathlib import Path
from datetime import date
from typing import Any, Callable, Set, Tuple
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from tags import Filter, Box, CompilationError, escape, enum_subject_parser_factory, tagset,... | [
2,
48443,
14629,
14,
8800,
14,
29412,
18,
198,
198,
11748,
302,
198,
11748,
33918,
198,
11748,
4738,
198,
198,
6738,
3108,
8019,
1330,
10644,
198,
6738,
4818,
8079,
1330,
3128,
198,
6738,
19720,
1330,
4377,
11,
4889,
540,
11,
5345,
11... | 3.042175 | 1,802 |
import numpy as np
from serial.serialutil import SerialException
import serial.tools.list_ports as port_list
import serial
import time
# def List_All_Mbed_USB_Devices(self):
# def Reverse_4byte_hex(input):
# reverse = ""
# if(len(input) == 4*2):
# reverse += input[6:8] + input[4:6] + input[2:4] + inp... | [
11748,
299,
32152,
355,
45941,
198,
6738,
11389,
13,
46911,
22602,
1330,
23283,
16922,
198,
11748,
11389,
13,
31391,
13,
4868,
62,
3742,
355,
2493,
62,
4868,
198,
11748,
11389,
198,
11748,
640,
198,
198,
2,
825,
7343,
62,
3237,
62,
44... | 2.309136 | 799 |
from geosolver.ontology.ontology_definitions import FunctionSignature, signatures
from geosolver.text.rule import TagRule
from geosolver.utils.num import is_number
__author__ = 'minjoon'
| [
6738,
4903,
418,
14375,
13,
756,
1435,
13,
756,
1435,
62,
4299,
50101,
1330,
15553,
11712,
1300,
11,
17239,
198,
6738,
4903,
418,
14375,
13,
5239,
13,
25135,
1330,
17467,
31929,
198,
6738,
4903,
418,
14375,
13,
26791,
13,
22510,
1330,
... | 3.333333 | 57 |
from __future__ import annotations
from itertools import tee
from typing import Iterable, Optional, Sequence, Union
import pandas as pd
from tiro_fhir import Resource
from fhir_dataframes import code_accessor
| [
6738,
11593,
37443,
834,
1330,
37647,
198,
6738,
340,
861,
10141,
1330,
30479,
198,
6738,
19720,
1330,
40806,
540,
11,
32233,
11,
45835,
11,
4479,
198,
11748,
19798,
292,
355,
279,
67,
198,
6738,
256,
7058,
62,
69,
71,
343,
1330,
2085... | 3.75 | 56 |
# -*- coding: utf-8 -*-
import json
import logging
from .request import RequestApi
from .exceptions import ApiError, WrongId, HttpError
logger = logging.getLogger(__name__)
| [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
11748,
33918,
198,
11748,
18931,
198,
6738,
764,
25927,
1330,
19390,
32,
14415,
198,
6738,
764,
1069,
11755,
1330,
5949,
72,
12331,
11,
28843,
7390,
11,
367,
29281,
12331,... | 2.966102 | 59 |
import pyotp
import robin_stocks as r
import pandas as pd
import numpy as np
import ta as ta
from pandas.plotting import register_matplotlib_converters
from ta import *
from misc import *
from tradingstats import *
from config import *
#Log in to Robinhood
#Put your username and password in a config.py file in the sam... | [
11748,
12972,
313,
79,
198,
11748,
3857,
259,
62,
29522,
355,
374,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
20486,
355,
20486,
198,
6738,
19798,
292,
13,
29487,
889,
1330,
7881,
62,
6759,
2... | 2.633419 | 4,291 |
import io
import os
import shutil
from base64 import urlsafe_b64decode
from bson import ObjectId
from slivka.db.documents import UploadedFile, JobRequest
| [
11748,
33245,
198,
11748,
28686,
198,
11748,
4423,
346,
198,
6738,
2779,
2414,
1330,
2956,
7278,
8635,
62,
65,
2414,
12501,
1098,
198,
198,
6738,
275,
1559,
1330,
9515,
7390,
198,
198,
6738,
1017,
452,
4914,
13,
9945,
13,
15390,
2886,
... | 3.204082 | 49 |
import typing as t
from fastapi import Request, Response
from pyinstrument import Profiler
from starlette.concurrency import run_in_threadpool
from debug_toolbar.panels import Panel
from debug_toolbar.types import Stats
from debug_toolbar.utils import is_coroutine, matched_endpoint
| [
11748,
19720,
355,
256,
198,
198,
6738,
3049,
15042,
1330,
19390,
11,
18261,
198,
6738,
12972,
259,
43872,
1330,
4415,
5329,
198,
6738,
3491,
21348,
13,
1102,
34415,
1330,
1057,
62,
259,
62,
16663,
7742,
198,
198,
6738,
14257,
62,
25981... | 3.763158 | 76 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
2,
49962,
284,
262,
24843,
10442,
5693,
357,
1921,
37,
8,
739,
530,
393,
517,
198,
2,
18920,
5964,
11704,
13,
220,
4091,
262,
28536,
2393,
9387,
351,
198,
2,
428,
670,
329,
3224,
1321,
5115,
6634,
9238,
13,
198,
2,
383,
7054,
37,
... | 3.894515 | 237 |
import imp
import sys
from sqlalchemy.exc import ProgrammingError
from featurehub.user.session import Session
from featurehub.admin.admin import Commands
try:
for _problem in Commands().get_problems():
# Create a session for each problem and make it importable
_commands = Session(_problem)
... | [
11748,
848,
198,
11748,
25064,
198,
198,
6738,
44161,
282,
26599,
13,
41194,
1330,
30297,
12331,
198,
198,
6738,
3895,
40140,
13,
7220,
13,
29891,
1330,
23575,
198,
6738,
3895,
40140,
13,
28482,
13,
28482,
1330,
49505,
198,
198,
28311,
... | 3.041475 | 217 |
from dataclasses import dataclass
from functools import reduce
from typing import Callable, Iterable, Iterator
'''
The first phase of a compiler is called `lexical analysis` implemented by a `scanner` or `lexer`.
It breaks a program into a sequence `lexemes`:
meaningful substrings of the input.
It also transforms... | [
6738,
4818,
330,
28958,
1330,
4818,
330,
31172,
198,
6738,
1257,
310,
10141,
1330,
4646,
198,
6738,
19720,
1330,
4889,
540,
11,
40806,
540,
11,
40806,
1352,
198,
198,
7061,
6,
198,
464,
717,
7108,
286,
257,
17050,
318,
1444,
4600,
258... | 2.822293 | 2,808 |
from django.shortcuts import render
from django.views.decorators.csrf import ensure_csrf_cookie
| [
6738,
42625,
14208,
13,
19509,
23779,
1330,
8543,
198,
6738,
42625,
14208,
13,
33571,
13,
12501,
273,
2024,
13,
6359,
41871,
1330,
4155,
62,
6359,
41871,
62,
44453,
628
] | 3.344828 | 29 |
import tool_utils as tu
import PyQt4.QtGui as qtg
import PyQt4.QtCore as qtc
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import smach
import rospy
from msg import Trigger
TRIGGER_TOPIC = 'trigger'
| [
11748,
2891,
62,
26791,
355,
12777,
198,
11748,
9485,
48,
83,
19,
13,
48,
83,
8205,
72,
355,
10662,
25297,
198,
11748,
9485,
48,
83,
19,
13,
48,
83,
14055,
355,
10662,
23047,
198,
6738,
9485,
48,
83,
19,
13,
48,
83,
8205,
72,
13... | 2.453488 | 86 |
from contextlib import contextmanager
from idact import ClusterConfig
from idact.detail.nodes.node_impl import NodeImpl
from idact.detail.tunnel.tunnel_internal import TunnelInternal
| [
6738,
4732,
8019,
1330,
4732,
37153,
198,
198,
6738,
4686,
529,
1330,
38279,
16934,
198,
6738,
4686,
529,
13,
49170,
13,
77,
4147,
13,
17440,
62,
23928,
1330,
19081,
29710,
198,
6738,
4686,
529,
13,
49170,
13,
28286,
4954,
13,
28286,
... | 3.795918 | 49 |
from datetime import date
from typing import Optional, Union
from pydantic import BaseModel, Field, validator
from . import educators as educators_models
from . import schools as schools_models
from app.airtable.response import AirtableResponse
from app.airtable.validators import get_first_or_default_none
| [
6738,
4818,
8079,
1330,
3128,
198,
6738,
19720,
1330,
32233,
11,
4479,
198,
198,
6738,
279,
5173,
5109,
1330,
7308,
17633,
11,
7663,
11,
4938,
1352,
628,
198,
6738,
764,
1330,
30770,
355,
30770,
62,
27530,
198,
6738,
764,
1330,
4266,
... | 3.9375 | 80 |
# Copyright 2021, Guillermo Adrin Molina
#
# 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 agreed to in w... | [
2,
15069,
33448,
11,
1962,
4665,
5908,
1215,
12769,
17958,
1437,
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,... | 3.521236 | 259 |
#!/usr/bin/python3
import playback
import display
import navigation
import device
import pygame
done = False
music = playback.music()
view = display.view()
menu = navigation.menu()
PiPod = device.PiPod()
menu.loadMetadata()
status = PiPod.getStatus()
songMetadata = music.getStatus()
displayUpdate = pygame.USEREVENT ... | [
2,
48443,
14629,
14,
8800,
14,
29412,
18,
198,
11748,
16388,
198,
11748,
3359,
198,
11748,
16408,
198,
11748,
3335,
198,
11748,
12972,
6057,
198,
198,
28060,
796,
10352,
198,
28965,
796,
16388,
13,
28965,
3419,
198,
1177,
796,
3359,
13,... | 1.828683 | 2,043 |
import socket
import telnetlib
from collections import OrderedDict
from cloudshell.cli.session.connection_params import ConnectionParams
from cloudshell.cli.session.expect_session import ExpectSession
from cloudshell.cli.session.session_exceptions import (
SessionException,
SessionReadEmptyData,
SessionRea... | [
11748,
17802,
198,
11748,
13632,
3262,
8019,
198,
6738,
17268,
1330,
14230,
1068,
35,
713,
198,
198,
6738,
6279,
29149,
13,
44506,
13,
29891,
13,
38659,
62,
37266,
1330,
26923,
10044,
4105,
198,
6738,
6279,
29149,
13,
44506,
13,
29891,
... | 3.67033 | 91 |
""" Cross-object data auditing
Schema validation allows for checking values within a single object.
We also need to perform higher order checking between linked objects.
"""
from past.builtins import basestring
import logging
import venusian
logger = logging.getLogger(__name__)
# Same as logging
_levelNames = {
... | [
37811,
6372,
12,
15252,
1366,
2709,
1780,
198,
198,
27054,
2611,
21201,
3578,
329,
10627,
3815,
1626,
257,
2060,
2134,
13,
198,
1135,
635,
761,
284,
1620,
2440,
1502,
10627,
1022,
6692,
5563,
13,
198,
37811,
198,
198,
6738,
1613,
13,
... | 2.660526 | 380 |
'''
Created on 14.10.2019
@author: JM
'''
from PyTrinamic.ic.TMC2130.TMC2130_register import TMC2130_register
from PyTrinamic.ic.TMC2130.TMC2130_register_variant import TMC2130_register_variant
from PyTrinamic.ic.TMC2130.TMC2130_fields import TMC2130_fields
from PyTrinamic.helpers import TMC_helpers
| [
7061,
6,
198,
41972,
319,
1478,
13,
940,
13,
23344,
198,
198,
31,
9800,
25,
47726,
198,
7061,
6,
198,
198,
6738,
9485,
2898,
259,
18127,
13,
291,
13,
51,
9655,
2481,
1270,
13,
51,
9655,
2481,
1270,
62,
30238,
1330,
309,
9655,
2481... | 2.463415 | 123 |
from setuptools import setup, find_packages
# Get version from tncontract/version.py
exec(open("tncontract/version.py").read())
setup(
name = "tncontract",
version = __version__,
packages = find_packages(),
author = "Andrew Darmawan",
license = "MIT",
install_requires = ["numpy", "scipy"],
)
| [
6738,
900,
37623,
10141,
1330,
9058,
11,
1064,
62,
43789,
198,
198,
2,
3497,
2196,
422,
256,
77,
28484,
14,
9641,
13,
9078,
198,
18558,
7,
9654,
7203,
34106,
28484,
14,
9641,
13,
9078,
11074,
961,
28955,
198,
198,
40406,
7,
198,
220... | 2.848214 | 112 |
#exampleb generates a full tweet
#examplet only calls get_string()
def get_string():
'''generate full tweet text'''
return 'example #text'
| [
2,
20688,
65,
18616,
257,
1336,
6126,
198,
2,
20688,
83,
691,
3848,
651,
62,
8841,
3419,
198,
198,
4299,
651,
62,
8841,
33529,
198,
220,
220,
220,
705,
7061,
8612,
378,
1336,
6126,
2420,
7061,
6,
628,
220,
220,
220,
1441,
705,
206... | 3.061224 | 49 |
for x in range(1,100,2):
print(x) | [
1640,
2124,
287,
2837,
7,
16,
11,
3064,
11,
17,
2599,
198,
220,
220,
220,
3601,
7,
87,
8
] | 1.947368 | 19 |
# -*- coding: utf-8 -*-
from datetime import timedelta
from delorean import Delorean
from sqlalchemy import and_
from twisted.internet import defer
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks
from twisted.internet.task import LoopingCall
from twisted.python import log
from ... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
6738,
4818,
8079,
1330,
28805,
12514,
198,
198,
6738,
1619,
29456,
1330,
4216,
29456,
198,
6738,
44161,
282,
26599,
1330,
290,
62,
198,
6738,
19074,
13,
37675,
1330,
29135... | 3.221198 | 217 |
"""
Shablbot manager commands
"""
import sys
if __name__ == '__main__':
main()
| [
37811,
198,
2484,
23117,
13645,
4706,
9729,
198,
37811,
198,
198,
11748,
25064,
628,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
1388,
3419,
198
] | 2.636364 | 33 |
#Print Custom Row-Column Patterns..
#e.g. '''@ @ @ @
# @ @ @ @
# @ @ @ @'''
w = print("What do you want to print?")
wa = str(input("Answer : "))
try:
m1 = print("How many rows do you want to print?")
n1 = int(input("Answer : "))
m2 = print("How many columns do you want to print?... | [
201,
198,
201,
198,
2,
18557,
8562,
11314,
12,
39470,
47020,
492,
201,
198,
2,
68,
13,
70,
13,
705,
7061,
31,
2488,
2488,
2488,
201,
198,
2,
220,
220,
220,
220,
220,
220,
220,
2488,
2488,
2488,
2488,
201,
198,
2,
220,
220,
220,
... | 2.193353 | 331 |
"""cluegame.py -- Classes to track Clue game events and make inferences
The board game Clue is also known as Cluedo. This module contains classes that
make it possible to record specific knowledge-generating events that a Clue
player may observe during the course of a game (such as, for example, that
Player A showed ... | [
37811,
565,
518,
6057,
13,
9078,
1377,
38884,
284,
2610,
1012,
518,
983,
2995,
290,
787,
1167,
4972,
198,
198,
464,
3096,
983,
1012,
518,
318,
635,
1900,
355,
1012,
1739,
78,
13,
220,
770,
8265,
4909,
6097,
326,
198,
15883,
340,
174... | 3.105195 | 770 |
"""Flask configuration."""
from os import environ, path
basedir = path.abspath(path.dirname(__file__))
| [
37811,
7414,
2093,
8398,
526,
15931,
201,
198,
6738,
28686,
1330,
551,
2268,
11,
3108,
201,
198,
3106,
343,
796,
3108,
13,
397,
2777,
776,
7,
6978,
13,
15908,
3672,
7,
834,
7753,
834,
4008,
201,
198,
201,
198,
220,
220,
220,
220,
... | 2.5 | 46 |
from nomad_alt import Nomad
import json
import uuid
from pprint import pformat
import os
import pytest
import nomad_alt.exceptions
import tests.common as common
| [
6738,
4515,
324,
62,
2501,
1330,
21198,
324,
198,
11748,
33918,
198,
11748,
334,
27112,
198,
198,
6738,
279,
4798,
1330,
279,
18982,
198,
11748,
28686,
198,
11748,
12972,
9288,
198,
11748,
4515,
324,
62,
2501,
13,
1069,
11755,
198,
1174... | 3.468085 | 47 |
from django.shortcuts import render
from django.http import HttpResponse
import logging
import json
import base64
import time
# Create your views here.
logger = logging.getLogger(__name__)
# form-data/Multipart POST
# BodyJson POST
#
# def writeLog(text):
# with open('/mnt/testlog.txt', 'a+') as fp:
# ... | [
6738,
42625,
14208,
13,
19509,
23779,
1330,
8543,
198,
6738,
42625,
14208,
13,
4023,
1330,
367,
29281,
31077,
198,
11748,
18931,
198,
11748,
33918,
198,
11748,
2779,
2414,
198,
11748,
640,
198,
198,
2,
13610,
534,
5009,
994,
13,
198,
19... | 2.551724 | 145 |
# Log Parser for RTI Connext.
#
# Copyright 2016 Real-Time Innovations, 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/licenses/LICENSE-2.0
#
# ... | [
2,
5972,
23042,
263,
329,
11923,
40,
1482,
19545,
13,
198,
2,
198,
2,
220,
220,
15069,
1584,
6416,
12,
7575,
43405,
602,
11,
3457,
13,
198,
2,
198,
2,
220,
220,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
3... | 3.005487 | 729 |
from bson.objectid import ObjectId
from torrents.file import TorrentFile
| [
6738,
275,
1559,
13,
15252,
312,
1330,
9515,
7390,
198,
198,
6738,
24458,
82,
13,
7753,
1330,
43399,
8979,
198
] | 3.7 | 20 |
#!/usr/bin/env python3
# Copyright 2020 Google LLC
#
# 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 ... | [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
18,
198,
2,
15069,
12131,
3012,
11419,
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,
... | 2.77429 | 669 |
# Generated by Django 2.2.12 on 2020-05-22 19:21
from django.db import migrations, models
| [
2,
2980,
515,
416,
37770,
362,
13,
17,
13,
1065,
319,
12131,
12,
2713,
12,
1828,
678,
25,
2481,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628
] | 2.875 | 32 |
import argparse
import logging
from vietocr.model.trainer import Trainer
from vietocr.tool.config import Cfg
import sys
sys.path.insert(0, './')
from char import character
logging.basicConfig(level=logging.INFO, )
if __name__ == '__main__':
main()
| [
11748,
1822,
29572,
198,
11748,
18931,
198,
6738,
410,
1155,
1696,
13,
19849,
13,
2213,
10613,
1330,
31924,
198,
6738,
410,
1155,
1696,
13,
25981,
13,
11250,
1330,
327,
40616,
198,
11748,
25064,
198,
17597,
13,
6978,
13,
28463,
7,
15,
... | 3.011905 | 84 |
# Generated by Django 2.2.10 on 2020-02-27 18:21
from django.db import migrations
| [
2,
2980,
515,
416,
37770,
362,
13,
17,
13,
940,
319,
12131,
12,
2999,
12,
1983,
1248,
25,
2481,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
628
] | 2.8 | 30 |
import torch.nn as nn
"""
https://zhuanlan.zhihu.com/p/76378871
arxiv: 1804.03821
ExFuse
""" | [
11748,
28034,
13,
20471,
355,
299,
77,
198,
198,
37811,
198,
5450,
1378,
23548,
7258,
9620,
13,
23548,
48406,
13,
785,
14,
79,
14,
4304,
2718,
3459,
4869,
198,
283,
87,
452,
25,
1248,
3023,
13,
15,
2548,
2481,
198,
3109,
37,
1904,
... | 2.066667 | 45 |
from datetime import date, datetime
from base64 import b64encode
from string import ascii_letters as letters, digits
from sys import argv
from os import environ as env
from os.path import join, dirname, expanduser
from itertools import product
import json
import logging
import re
_LOGGER = logging.getLogger(__name__)
... | [
6738,
4818,
8079,
1330,
3128,
11,
4818,
8079,
198,
6738,
2779,
2414,
1330,
275,
2414,
268,
8189,
198,
6738,
4731,
1330,
355,
979,
72,
62,
15653,
355,
7475,
11,
19561,
198,
6738,
25064,
1330,
1822,
85,
198,
6738,
28686,
1330,
551,
2268... | 2.307346 | 667 |
from IPython import get_ipython
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
def configure_base(user_ns, broker_name, *,
bec=True, epics_context=False, magics=True, mpl=True,
ophyd_logging=True, pbar=True):
"""
Perform base ... | [
6738,
6101,
7535,
1330,
651,
62,
541,
7535,
198,
6738,
47540,
9641,
1330,
651,
62,
47178,
198,
834,
9641,
834,
796,
651,
62,
47178,
3419,
17816,
9641,
20520,
198,
12381,
651,
62,
47178,
628,
198,
198,
4299,
17425,
62,
8692,
7,
7220,
... | 2.607337 | 3,489 |
import numpy as np
from typing import List
from copy import deepcopy
from utils.customer import Customer
| [
11748,
299,
32152,
355,
45941,
198,
6738,
19720,
1330,
7343,
198,
6738,
4866,
1330,
2769,
30073,
198,
198,
6738,
3384,
4487,
13,
23144,
263,
1330,
22092,
628
] | 3.962963 | 27 |
"""create fake data to the db file"""
from config import data_nodes, get_db
from type import DataNodeStatus, DataNode
from datetime import timedelta
from config import get_second_datetime
if __name__ == '__main__':
create_fake_data()
| [
37811,
17953,
8390,
1366,
284,
262,
20613,
2393,
37811,
198,
6738,
4566,
1330,
1366,
62,
77,
4147,
11,
651,
62,
9945,
198,
6738,
2099,
1330,
6060,
19667,
19580,
11,
6060,
19667,
198,
6738,
4818,
8079,
1330,
28805,
12514,
198,
6738,
4566... | 3.361111 | 72 |
#!/usr/bin/env python
# coding: utf-8
# In[ ]:
gkey="Enter Your Key Here"
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
2,
554,
58,
2361,
25,
628,
198,
70,
2539,
2625,
17469,
3406,
7383,
3423,
1,
628
] | 2.294118 | 34 |
from category_tree.categories import data
| [
6738,
6536,
62,
21048,
13,
66,
26129,
1330,
1366,
628
] | 4.3 | 10 |
'''
Module to pull keys from test geckoboard widgets.
'''
import os
import json
if __name__ == '__main__':
print(get_keys()) | [
7061,
6,
198,
26796,
284,
2834,
8251,
422,
1332,
4903,
694,
672,
11953,
40803,
13,
198,
7061,
6,
198,
11748,
28686,
198,
11748,
33918,
198,
198,
361,
11593,
3672,
834,
6624,
705,
834,
12417,
834,
10354,
198,
220,
220,
220,
3601,
7,
... | 2.804348 | 46 |
from __future__ import annotations
from typing import Any, Dict, List, Union
import logging
from pajbot.web.utils import get_cached_enabled_modules
log = logging.getLogger(__name__)
| [
6738,
11593,
37443,
834,
1330,
37647,
198,
198,
6738,
19720,
1330,
4377,
11,
360,
713,
11,
7343,
11,
4479,
198,
198,
11748,
18931,
198,
198,
6738,
279,
1228,
13645,
13,
12384,
13,
26791,
1330,
651,
62,
66,
2317,
62,
25616,
62,
18170,
... | 3.241379 | 58 |
"""
@no 463
@name Island Perimeter
"""
| [
37811,
198,
31,
3919,
604,
5066,
198,
31,
3672,
5451,
2448,
16912,
198,
37811,
198
] | 2.6 | 15 |
#!/usr/bin/env python
import requests
| [
2,
48443,
14629,
14,
8800,
14,
24330,
21015,
198,
11748,
7007,
628,
628,
198
] | 3 | 14 |
from flask import Flask, g
from flask_cors import CORS
from flask_jwt_extended import JWTManager
from config import config
from app.models import db, ma
from app.models.RevokedToken import RevokedToken
| [
6738,
42903,
1330,
46947,
11,
308,
198,
6738,
42903,
62,
66,
669,
1330,
327,
20673,
198,
6738,
42903,
62,
73,
46569,
62,
2302,
1631,
1330,
449,
39386,
13511,
198,
6738,
4566,
1330,
4566,
198,
6738,
598,
13,
27530,
1330,
20613,
11,
172... | 3.625 | 56 |
# Send .autoscroll in any chat to automatically read all sent messages until you call
# .autoscroll again. This is useful if you have Telegram open on another screen.
from pyrogram import Client, filters
from pyrogram.types import Message
app = Client("my_account")
f = filters.chat([])
app.run()
| [
2,
16290,
764,
2306,
17500,
2487,
287,
597,
8537,
284,
6338,
1100,
477,
1908,
6218,
1566,
345,
869,
198,
2,
764,
2306,
17500,
2487,
757,
13,
770,
318,
4465,
611,
345,
423,
50203,
1280,
319,
1194,
3159,
13,
198,
198,
6738,
12972,
395... | 3.707317 | 82 |
from intermezzo import Intermezzo as mzo
curCol = [0]
curRune = [0]
backbuf = []
bbw, bbh = 0, 0
runes = [' ', '', '', '', '']
colors = [
mzo.color("Black"),
mzo.color("Red"),
mzo.color("Green"),
mzo.color("Yellow"),
mzo.color("Blue"),
mzo.color("Magenta"),
mzo.color("Cyan"),
mzo.color... | [
6738,
987,
1326,
47802,
1330,
4225,
1326,
47802,
355,
285,
10872,
198,
198,
22019,
5216,
796,
685,
15,
60,
198,
22019,
49,
1726,
796,
685,
15,
60,
198,
1891,
29325,
796,
17635,
198,
11848,
86,
11,
275,
34369,
796,
657,
11,
657,
198,... | 2.069307 | 202 |
import logging
from .media_reader import MediaReader
from .util.media_type import MediaType
| [
11748,
18931,
198,
198,
6738,
764,
11431,
62,
46862,
1330,
6343,
33634,
198,
6738,
764,
22602,
13,
11431,
62,
4906,
1330,
6343,
6030,
628
] | 3.916667 | 24 |
"""
Dependency management package.
"""
def debug_print(message: str, verbose: bool):
"""
Print if verbose is set to true.
:param message: message to print
:param verbose: whether to print
:return:
"""
if verbose:
print(message)
def download_and_unzip_archive(url: str, zip_file_f... | [
37811,
198,
35,
2690,
1387,
4542,
5301,
13,
198,
37811,
628,
198,
4299,
14257,
62,
4798,
7,
20500,
25,
965,
11,
15942,
577,
25,
20512,
2599,
198,
220,
220,
220,
37227,
198,
220,
220,
220,
12578,
611,
15942,
577,
318,
900,
284,
2081,... | 2.661088 | 478 |
from suds.client import Client
from suds import WebFault
from model.project import Project
| [
6738,
424,
9310,
13,
16366,
1330,
20985,
198,
6738,
424,
9310,
1330,
5313,
37,
1721,
198,
6738,
2746,
13,
16302,
1330,
4935,
198
] | 3.956522 | 23 |
import torch
import wandb
def val(
criterion=None,
metric=None,
loader=None,
model=None,
device=None
):
r'''
Args:
criterion: a differentiable function to provide gratitude for backward
metric: a score to save best model
loader: a ... | [
11748,
28034,
201,
198,
11748,
11569,
65,
201,
198,
201,
198,
4299,
1188,
7,
201,
198,
220,
220,
220,
220,
220,
220,
220,
34054,
28,
14202,
11,
201,
198,
220,
220,
220,
220,
220,
220,
220,
18663,
28,
14202,
11,
201,
198,
220,
220,... | 2.128107 | 523 |
print(calculate(5, 6)) | [
198,
4798,
7,
9948,
3129,
378,
7,
20,
11,
718,
4008
] | 2.090909 | 11 |
########################################
# plot_fig07d_anaa_practical.py
#
# Description. Script used to actually plot Fig. 07 (d) of the paper.
#
# Author. @victorcroisfelt
#
# Date. December 29, 2021
#
# This code is part of the code package used to generate the numeric results
# of the paper:
#
# Crois... | [
29113,
7804,
198,
2,
220,
220,
7110,
62,
5647,
2998,
67,
62,
2271,
64,
62,
29152,
605,
13,
9078,
198,
2,
198,
2,
220,
220,
12489,
13,
12327,
973,
284,
1682,
7110,
12138,
13,
8753,
357,
67,
8,
286,
262,
3348,
13,
198,
2,
198,
2... | 2.364278 | 1,842 |
import datetime
from time import sleep
import re
import pytz
# try:
# from .emhmeter import MeterBase, create_input_vars, logger
# except ModuleNotFoundError:
# from emhmeter import MeterBase, create_input_vars, logger
# TODO: Not working
if __name__ == "__main__":
meter = {
"meterNumber": "041... | [
11748,
4818,
8079,
198,
6738,
640,
1330,
3993,
198,
11748,
302,
198,
11748,
12972,
22877,
198,
198,
2,
1949,
25,
198,
2,
220,
220,
220,
220,
422,
764,
368,
23940,
2357,
1330,
46423,
14881,
11,
2251,
62,
15414,
62,
85,
945,
11,
49706... | 2.009917 | 605 |
# Results.py
#
# Created: Jan 2015, T. Lukacyzk
# Modified: Feb 2016, T. MacDonald
from SUAVE.Core import Data | [
2,
15691,
13,
9078,
198,
2,
198,
2,
15622,
25,
220,
2365,
1853,
11,
309,
13,
28102,
1590,
89,
74,
198,
2,
40499,
25,
3158,
1584,
11,
309,
13,
37131,
198,
198,
6738,
13558,
32,
6089,
13,
14055,
1330,
6060
] | 2.8 | 40 |
import re
from typing import List
from .utils import dumps
from .types import DirectThread, DirectMessage
from .exceptions import ClientNotFoundError, DirectThreadNotFound
from .extractors import extract_direct_thread, extract_direct_message
| [
11748,
302,
198,
6738,
19720,
1330,
7343,
198,
198,
6738,
764,
26791,
1330,
45514,
198,
6738,
764,
19199,
1330,
4128,
16818,
11,
4128,
12837,
198,
6738,
764,
1069,
11755,
1330,
20985,
3673,
21077,
12331,
11,
4128,
16818,
3673,
21077,
198,... | 4.206897 | 58 |
"""
This module contains the visualization bar class.
"""
import glob
import os
import re
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import matplotlib.cm as cmx
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import FuncFormatter
from cybercaptain.utils.exceptio... | [
37811,
198,
1212,
8265,
4909,
262,
32704,
2318,
1398,
13,
198,
37811,
198,
11748,
15095,
198,
11748,
28686,
198,
11748,
302,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
2... | 3.513514 | 148 |
import graphene
from app.common.library import graphql
from app.common.models import City
from ..models import Profile
from .queries import ProfileNode
# queries
# mutations
| [
11748,
42463,
198,
6738,
598,
13,
11321,
13,
32016,
1330,
4823,
13976,
198,
6738,
598,
13,
11321,
13,
27530,
1330,
2254,
198,
6738,
11485,
27530,
1330,
13118,
198,
6738,
764,
421,
10640,
1330,
13118,
19667,
628,
198,
2,
20743,
628,
198,... | 3.934783 | 46 |
# coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
def to_str... | [
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
37811,
198,
220,
220,
220,
509,
3266,
53,
2265,
7824,
628,
220,
220,
220,
770,
318,
509,
3266,
53,
2265,
7824,
281,
751,
12,
261,
329,
12554,
527,
3262,
274,
13,
628,
220,
220,
220,
4946... | 2.279012 | 405 |
# Copyright 2021 Tom Eulenfeld, MIT license
import matplotlib as mpl
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import numpy as np
import pickle
from qopen.core import get_pair, Gsmooth
from qopen.rt import G as G_func
if __name__ == '__main__':
fname = '../qopen/01_go/fits_2018678... | [
2,
15069,
33448,
4186,
412,
377,
268,
16265,
11,
17168,
5964,
198,
198,
11748,
2603,
29487,
8019,
355,
285,
489,
198,
11748,
2603,
29487,
8019,
13,
2164,
2340,
43106,
355,
50000,
43106,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
35... | 2.383886 | 211 |
import unittest
import os
import numpy as np
from pymatgen import Structure
from magmango.calculation.potcar import PotcarSettings
#
# class PotcarSettingsTest(unittest.TestCase):
# def setUp(self):
# self.potcar_file_path = "data/potcar_pto"
# #self.structure = Structure.from_file(self.poscar_file_pa... | [
11748,
555,
715,
395,
198,
11748,
28686,
198,
198,
11748,
299,
32152,
355,
45941,
198,
6738,
279,
4948,
265,
5235,
1330,
32522,
198,
6738,
2153,
76,
14208,
13,
9948,
14902,
13,
13059,
7718,
1330,
6902,
7718,
26232,
198,
2,
198,
2,
139... | 2.368812 | 404 |
# main
string1 = input()
if(pangram(string1) == True):
print("Yes")
else:
print("No")
| [
2,
1388,
198,
8841,
16,
796,
5128,
3419,
198,
361,
7,
79,
648,
859,
7,
8841,
16,
8,
6624,
6407,
2599,
198,
220,
220,
3601,
7203,
5297,
4943,
198,
17772,
25,
198,
220,
220,
3601,
7203,
2949,
4943,
198
] | 2.358974 | 39 |
# -*- coding: utf-8 -*-
"""Serializer tests for the Dropbox addon."""
from nose.tools import * # noqa (PEP8 asserts)
from website.addons.base.testing.serializers import StorageAddonSerializerTestSuiteMixin
from website.addons.dropbox.tests.utils import MockDropbox
from website.addons.dropbox.tests.factories import Dr... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
32634,
7509,
5254,
329,
262,
38930,
48557,
526,
15931,
198,
6738,
9686,
13,
31391,
1330,
1635,
220,
1303,
645,
20402,
357,
47,
8905,
23,
29348,
8,
198,
198,
6738,... | 3.448529 | 136 |
import os
import urllib
import json
import pprint
from google.appengine.api import users
from google.appengine.ext import ndb
from google.appengine.api import urlfetch
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader = jinja2.FileSystemLoader(os.path.dirname(__file__) + '/templates'),... | [
11748,
28686,
198,
11748,
2956,
297,
571,
198,
11748,
33918,
198,
11748,
279,
4798,
198,
198,
6738,
23645,
13,
1324,
18392,
13,
15042,
1330,
2985,
198,
6738,
23645,
13,
1324,
18392,
13,
2302,
1330,
299,
9945,
198,
6738,
23645,
13,
1324,... | 2.886598 | 291 |
import datetime
import unittest
import contextlib
import unittest.mock
from typing import Any, Dict, Tuple, Mapping, Iterator, Optional
import fakeredis
from django_lightweight_queue.job import Job
from django_lightweight_queue.types import QueueName
from django_lightweight_queue.backends.reliable_redis import (
R... | [
11748,
4818,
8079,
198,
11748,
555,
715,
395,
198,
11748,
4732,
8019,
198,
11748,
555,
715,
395,
13,
76,
735,
198,
6738,
19720,
1330,
4377,
11,
360,
713,
11,
309,
29291,
11,
337,
5912,
11,
40806,
1352,
11,
32233,
198,
198,
11748,
83... | 3.248 | 125 |
from django.db import migrations
| [
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
628,
198
] | 3.5 | 10 |
# Get all carbon sources and return the objective flux. It can be normalized by the carbon input
| [
2,
3497,
477,
6588,
4237,
290,
1441,
262,
9432,
28462,
13,
632,
460,
307,
39279,
416,
262,
6588,
5128,
198
] | 4.85 | 20 |
import sys
sys.path.append('../')
import unittest
import sys
sys.path.insert(0,"C:/Users/jcroz/github/StableMotifs")
import pystablemotifs as sm
import pyboolnet.file_exchange
if __name__ == '__main__':
unittest.main()
| [
11748,
25064,
198,
17597,
13,
6978,
13,
33295,
10786,
40720,
11537,
198,
198,
11748,
555,
715,
395,
198,
11748,
25064,
198,
17597,
13,
6978,
13,
28463,
7,
15,
553,
34,
14079,
14490,
14,
73,
19915,
89,
14,
12567,
14,
1273,
540,
47733,
... | 2.586207 | 87 |
# -*- coding: utf-8 -*-
"""
Copyright 2018 Alexey Melnikov and Katja Ried.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Please acknowledge the authors when re-using this code and maintain this notice intact.
Code written by Katja Ried... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
198,
15269,
2864,
4422,
2959,
5616,
45451,
290,
8595,
6592,
371,
798,
13,
198,
198,
26656,
15385,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
... | 3.099631 | 271 |
from __future__ import (absolute_import, division,
print_function, unicode_literals)
| [
6738,
11593,
37443,
834,
1330,
357,
48546,
62,
11748,
11,
7297,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3601,
62,
8818,
11,
28000,
1098,
62,
17201... | 2.319149 | 47 |
from .abstract_builder import AbstractBuilder
from gemmforge.symbol_table import SymbolType, Symbol
from gemmforge.basic_types import RegMemObject, ShrMemObject
from gemmforge.instructions import RegisterAlloc, ShrMemAlloc
from gemmforge.basic_types import GeneralLexicon
from abc import abstractmethod
| [
6738,
764,
397,
8709,
62,
38272,
1330,
27741,
32875,
198,
6738,
16840,
76,
30293,
13,
1837,
23650,
62,
11487,
1330,
38357,
6030,
11,
38357,
198,
6738,
16840,
76,
30293,
13,
35487,
62,
19199,
1330,
3310,
13579,
10267,
11,
911,
81,
13579,... | 3.686747 | 83 |
__________________________________________________________________________________________________
sample 32 ms submission
__________________________________________________________________________________________________
sample 36 ms submission
__________________________________________________________________________... | [
27193,
10221,
834,
198,
39873,
3933,
13845,
14498,
198,
27193,
10221,
834,
198,
39873,
4570,
13845,
14498,
198,
27193,
10221,
834,
198,
39873,
2319,
13845,
14498
] | 14.153846 | 26 |
#
# @lc app=leetcode id=809 lang=python3
#
# [809] Expressive Words
#
# https://leetcode.com/problems/expressive-words/description/
#
# algorithms
# Medium (46.84%)
# Likes: 320
# Dislikes: 823
# Total Accepted: 45.2K
# Total Submissions: 96.2K
# Testcase Example: '"heeellooo"\n["hello", "hi", "helo"]'
#
# Somet... | [
2,
198,
2,
2488,
44601,
598,
28,
293,
316,
8189,
4686,
28,
34583,
42392,
28,
29412,
18,
198,
2,
198,
2,
685,
34583,
60,
5518,
3314,
23087,
198,
2,
198,
2,
3740,
1378,
293,
316,
8189,
13,
785,
14,
1676,
22143,
14,
11201,
3314,
12... | 2.768657 | 670 |
Size = (1255, 1160)
Position = (39, 26)
ScaleFactor = 1.0
ZoomLevel = 32.0
Orientation = 0
Mirror = False
NominalPixelSize = 0.125
filename = 'Z:\\All Projects\\Crystallization\\2018.08.27.caplilary with crystals inspection\\2018.08.27 CypA 2.jpg'
ImageWindow.Center = (649, 559)
ImageWindow.ViewportCenter = (2.41796875... | [
10699,
796,
357,
1065,
2816,
11,
1367,
1899,
8,
198,
26545,
796,
357,
2670,
11,
2608,
8,
198,
29990,
41384,
796,
352,
13,
15,
198,
57,
4207,
4971,
796,
3933,
13,
15,
198,
46,
8289,
341,
796,
657,
198,
27453,
1472,
796,
10352,
198,... | 2.633224 | 608 |
# -*- coding: utf-8 -*-
"""Utilities for the ROCKE3D output."""
import dask.array as da
import xarray as xr
from grid import reverse_along_dim, roll_da_to_pm180
from model_um import calc_um_rel
from names import rocke3d
__all__ = ("adjust_rocke3d_grid", "calc_rocke3d_rei", "calc_rocke3d_rel")
calc_rocke3d_rel = calc... | [
2,
532,
9,
12,
19617,
25,
3384,
69,
12,
23,
532,
9,
12,
198,
37811,
18274,
2410,
329,
262,
371,
4503,
7336,
18,
35,
5072,
526,
15931,
198,
11748,
288,
2093,
13,
18747,
355,
12379,
198,
11748,
2124,
18747,
355,
2124,
81,
198,
198,
... | 2.351371 | 1,386 |
from wordcloud import WordCloud,STOPWORDS
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import re
import multidict as multidict
from collections import Counter
import json
import datetime
import os
plt.switch_backend('agg')
| [
6738,
1573,
17721,
1330,
9678,
18839,
11,
2257,
3185,
45359,
5258,
198,
11748,
2603,
29487,
8019,
13,
9078,
29487,
355,
458,
83,
198,
11748,
299,
32152,
355,
45941,
198,
11748,
19798,
292,
355,
279,
67,
198,
11748,
302,
198,
11748,
1963... | 3.346667 | 75 |
from python_graphql_client import GraphqlClient
import pathlib
import re
import os
root = pathlib.Path(__file__).parent.resolve()
client = GraphqlClient(endpoint="https://graphql.anilist.co")
TOKEN = os.environ.get("ANILIST_TOKEN", "")
if __name__ == "__main__":
readme = root / "README.md"
readme_contents ... | [
6738,
21015,
62,
34960,
13976,
62,
16366,
1330,
29681,
13976,
11792,
198,
11748,
3108,
8019,
198,
11748,
302,
198,
11748,
28686,
198,
198,
15763,
796,
3108,
8019,
13,
15235,
7,
834,
7753,
834,
737,
8000,
13,
411,
6442,
3419,
198,
16366,... | 2.15614 | 570 |
# Generated by Django 2.0.6 on 2019-07-10 03:56
from django.db import migrations, models
| [
2,
2980,
515,
416,
37770,
362,
13,
15,
13,
21,
319,
13130,
12,
2998,
12,
940,
7643,
25,
3980,
198,
198,
6738,
42625,
14208,
13,
9945,
1330,
15720,
602,
11,
4981,
628
] | 2.84375 | 32 |
# coding: utf-8
"""
Sematext Cloud API
API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`. # noqa: E501
OpenAPI spec version: v3
... | [
2,
19617,
25,
3384,
69,
12,
23,
198,
198,
37811,
198,
220,
220,
220,
12449,
378,
742,
10130,
7824,
628,
220,
220,
220,
7824,
19142,
3769,
1895,
290,
10314,
329,
12449,
378,
742,
30617,
7824,
13,
383,
30617,
7824,
4433,
262,
7824,
73... | 2.973262 | 187 |