hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b177eedd45e7ebbd84a16d1918de674703f7a6d1 | 4,906 | py | Python | src/users.py | dgnball/loan-item-api | 81ea836a10829bf78c30b5af5ae35d72fde686ec | [
"MIT"
] | null | null | null | src/users.py | dgnball/loan-item-api | 81ea836a10829bf78c30b5af5ae35d72fde686ec | [
"MIT"
] | null | null | null | src/users.py | dgnball/loan-item-api | 81ea836a10829bf78c30b5af5ae35d72fde686ec | [
"MIT"
] | 1 | 2020-08-16T12:11:34.000Z | 2020-08-16T12:11:34.000Z | from exceptions import (
NotAllowedException,
UnknownUserException,
InitialAdminRoleException,
UserAlreadyExistsException
)
from database import User, DBSession
from loans import Loans
initial_admin = "admin"
class UserManagement:
def __enter__(self):
self.db_session = DBSession()
... | 32.490066 | 93 | 0.644721 | 577 | 4,906 | 5.12825 | 0.17851 | 0.036499 | 0.061507 | 0.038527 | 0.302805 | 0.204123 | 0.151403 | 0.118959 | 0.118959 | 0.104427 | 0 | 0.003367 | 0.273543 | 4,906 | 150 | 94 | 32.706667 | 0.82688 | 0.042397 | 0 | 0.239669 | 0 | 0 | 0.036674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165289 | false | 0.07438 | 0.024793 | 0.033058 | 0.297521 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b183fbd59105459232e47d5f5e11559441ed46ec | 713 | py | Python | analysis/methods/5.count_extensions.py | vsoch/repofish | 88b2536ca8c4d7bad22bbb867912dcec5aaf2b6b | [
"MIT"
] | 1 | 2017-05-24T13:26:41.000Z | 2017-05-24T13:26:41.000Z | analysis/methods/5.count_extensions.py | vsoch/repofish | 88b2536ca8c4d7bad22bbb867912dcec5aaf2b6b | [
"MIT"
] | 16 | 2016-03-17T22:50:26.000Z | 2016-05-14T18:35:29.000Z | analysis/methods/5.count_extensions.py | vsoch/repofish | 88b2536ca8c4d7bad22bbb867912dcec5aaf2b6b | [
"MIT"
] | null | null | null | from repofish.github import count_extensions, names_from_url
import pickle
import pandas
import sys
import os
pmid = sys.argv[1]
repo_url = sys.argv[2]
output_folder = sys.argv[3]
# We are also interested in these "special files" (note that leaving out the extensions specifies that capitalization and extension are no... | 37.526316 | 150 | 0.781206 | 112 | 713 | 4.75 | 0.544643 | 0.090226 | 0.045113 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004688 | 0.102384 | 713 | 18 | 151 | 39.611111 | 0.826563 | 0.207574 | 0 | 0 | 0 | 0 | 0.16341 | 0.044405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b184a42f8c8911221b41323843ebe2dccfb65dbc | 883 | py | Python | blog/forms.py | hdsunset/TravelTimeProject | ba94db5015949e3dc9750e2d2563b4e0c601752b | [
"MIT"
] | null | null | null | blog/forms.py | hdsunset/TravelTimeProject | ba94db5015949e3dc9750e2d2563b4e0c601752b | [
"MIT"
] | null | null | null | blog/forms.py | hdsunset/TravelTimeProject | ba94db5015949e3dc9750e2d2563b4e0c601752b | [
"MIT"
] | 1 | 2017-11-13T18:01:43.000Z | 2017-11-13T18:01:43.000Z | from django import forms
from .models import Profile
from .models import Post
from django.contrib.auth.models import User
from django.forms import widgets
#class beautyWidget(widgets.TextInput):
#def render(self, name, value, attrs=None):
#return mark_safe(u'''<span>USD</span>%s''' % (super(beautyWidget, s... | 27.59375 | 111 | 0.656852 | 109 | 883 | 5.275229 | 0.522936 | 0.062609 | 0.09913 | 0.12 | 0.146087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211778 | 883 | 31 | 112 | 28.483871 | 0.826149 | 0.255946 | 0 | 0.190476 | 0 | 0 | 0.136503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.238095 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b192aa151bdaf2335356013f2929dc7a4669a417 | 691 | py | Python | setup.py | chrisbrownnwyc/Velociwrapper | e4a671dfcab65b2ea4057826b2eeed691cb3a6be | [
"BSD-3-Clause"
] | 5 | 2015-09-12T20:24:18.000Z | 2019-05-07T18:02:41.000Z | setup.py | chrisbrownnwyc/Velociwrapper | e4a671dfcab65b2ea4057826b2eeed691cb3a6be | [
"BSD-3-Clause"
] | 1 | 2017-06-15T00:01:44.000Z | 2017-06-20T14:14:12.000Z | setup.py | chrisbrownnwyc/Velociwrapper | e4a671dfcab65b2ea4057826b2eeed691cb3a6be | [
"BSD-3-Clause"
] | 2 | 2015-09-12T20:24:24.000Z | 2015-11-18T08:26:51.000Z | from distutils.core import setup
# this nastiness to try to get the version without loading the whole module
import sys
import os
sys.path.append(os.path.join(os.path.curdir, 'velociwrapper'))
from version import __version__
setup(
name='Velociwrapper',
version=__version__,
author='Constituent Voice',
... | 32.904762 | 81 | 0.742402 | 84 | 691 | 5.97619 | 0.714286 | 0.023904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001675 | 0.136035 | 691 | 20 | 82 | 34.55 | 0.839196 | 0.105644 | 0 | 0 | 0 | 0 | 0.407468 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b195174417046eabf8f8c74106a20c259b39a643 | 6,266 | py | Python | kapacitor_udf/ttest.py | XiaoguTech/rta-simulator | 243285f8365b01b1e0670e174fd20a7947ca11a8 | [
"MIT"
] | 2 | 2019-05-12T20:14:38.000Z | 2020-09-14T07:50:57.000Z | kapacitor_udf/ttest.py | XiaoguTech/rta-simulator | 243285f8365b01b1e0670e174fd20a7947ca11a8 | [
"MIT"
] | 1 | 2018-07-18T08:16:21.000Z | 2021-10-09T05:32:46.000Z | kapacitor_udf/ttest.py | XiaoguTech/rta-simulator | 243285f8365b01b1e0670e174fd20a7947ca11a8 | [
"MIT"
] | null | null | null | from kapacitor.udf.agent import Agent, Handler
from scipy import stats
import math
import kapacitor.udf.udf_pb2 as udf_pb2
import sys
class TTestHandler(Handler):
"""
Keep a rolling window of historically normal data
When a new window arrives use a two-sided t-test to determine
if the new window is sta... | 31.969388 | 90 | 0.586977 | 783 | 6,266 | 4.590038 | 0.257982 | 0.023372 | 0.027268 | 0.042849 | 0.166667 | 0.097941 | 0.097941 | 0.097941 | 0.097941 | 0.097941 | 0 | 0.012664 | 0.319502 | 6,266 | 195 | 91 | 32.133333 | 0.830206 | 0.138845 | 0 | 0.201681 | 0 | 0 | 0.044839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042017 | null | null | 0.016807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b19df5310051023f89622ee69a2cbd6880ca7ecf | 663 | py | Python | setup.py | cilame/windnd | 194c68459a8e222c4172b7be087300eb62cd796e | [
"MIT"
] | 11 | 2018-07-13T00:38:04.000Z | 2021-07-25T09:53:25.000Z | setup.py | cilame/windnd | 194c68459a8e222c4172b7be087300eb62cd796e | [
"MIT"
] | 3 | 2020-01-12T01:58:48.000Z | 2021-11-16T14:50:50.000Z | setup.py | cilame/windnd | 194c68459a8e222c4172b7be087300eb62cd796e | [
"MIT"
] | 1 | 2020-03-19T01:15:17.000Z | 2020-03-19T01:15:17.000Z | import os
import sys
try:
from setuptools import setup
except:
from distutils.core import setup
setup(
name = "windnd",
version = "1.0.7",
description = "windows drag icon & drop load.",
long_description = "import windnd;help(windnd)",
classifiers = [
'License :: OSI Approved :: ... | 23.678571 | 52 | 0.618401 | 72 | 663 | 5.625 | 0.75 | 0.054321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.248869 | 663 | 27 | 53 | 24.555556 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0.360483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1a15409be64a39390f58d1c273753b6c0e82f33 | 503 | py | Python | 032-python/chap2/guessNumber.py | liuyepiaoxiang/es6-learning | ee3c6672557ac3f1a815e6700ca130dc8ca2cf21 | [
"MIT"
] | null | null | null | 032-python/chap2/guessNumber.py | liuyepiaoxiang/es6-learning | ee3c6672557ac3f1a815e6700ca130dc8ca2cf21 | [
"MIT"
] | 1 | 2018-06-20T03:05:58.000Z | 2020-03-28T14:07:54.000Z | 032-python/chap2/guessNumber.py | liuyepiaoxiang/es6-learning | ee3c6672557ac3f1a815e6700ca130dc8ca2cf21 | [
"MIT"
] | null | null | null | #!usr/bin/sh
# -*- coding:utf8 -*-
# this is a guess number game
import random
secretNumber = random.randint(1,20)
print('请猜一个0到20的数')
# ask the player to guess 6 times.
for guessTaken in range(1,7):
print('Take a guess.')
guess = int(input())
if guess < secretNumber:
print('你猜的数字太小')
elif gue... | 22.863636 | 44 | 0.638171 | 67 | 503 | 4.791045 | 0.671642 | 0.158879 | 0.205607 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.214712 | 503 | 22 | 45 | 22.863636 | 0.787342 | 0.182903 | 0 | 0.125 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.375 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1a21d320f09afe051b4e89db4ac3e8901668eac | 813 | py | Python | deli_counter/http/mounts/root/routes/v1/validation_models/network_ports.py | sandwichcloud/deli-counter | e72ee3966f4457ffbd1d432b3516965075c7c86e | [
"MIT"
] | 1 | 2017-10-19T09:25:29.000Z | 2017-10-19T09:25:29.000Z | deli_counter/http/mounts/root/routes/v1/validation_models/network_ports.py | sandwichcloud/deli-counter | e72ee3966f4457ffbd1d432b3516965075c7c86e | [
"MIT"
] | null | null | null | deli_counter/http/mounts/root/routes/v1/validation_models/network_ports.py | sandwichcloud/deli-counter | e72ee3966f4457ffbd1d432b3516965075c7c86e | [
"MIT"
] | null | null | null | from schematics import Model
from schematics.types import UUIDType, IntType
from ingredients_db.models.network_port import NetworkPort
from ingredients_http.schematics.types import IPv4AddressType
class ParamsNetworkPort(Model):
network_port_id = UUIDType(required=True)
class ParamsListNetworkPort(Model):
... | 27.1 | 61 | 0.750308 | 97 | 813 | 6.103093 | 0.381443 | 0.111486 | 0.091216 | 0.111486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013433 | 0.175892 | 813 | 29 | 62 | 28.034483 | 0.870149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b1a2f936d933330cb0359a3a331e93174d56f8cb | 419 | py | Python | src/plyer_lach/platforms/ios/uniqueid.py | locksmith47/turing-sim-kivy | f57de9d52494245c56f67dd7e63121434bb0553f | [
"MIT"
] | null | null | null | src/plyer_lach/platforms/ios/uniqueid.py | locksmith47/turing-sim-kivy | f57de9d52494245c56f67dd7e63121434bb0553f | [
"MIT"
] | null | null | null | src/plyer_lach/platforms/ios/uniqueid.py | locksmith47/turing-sim-kivy | f57de9d52494245c56f67dd7e63121434bb0553f | [
"MIT"
] | null | null | null | from pyobjus import autoclass
from pyobjus.dylib_manager import load_framework
from plyer_lach.facades import UniqueID
load_framework('/System/Library/Frameworks/UIKit.framework')
UIDevice = autoclass('UIDevice')
class iOSUniqueID(UniqueID):
def _get_uid(self):
uuid = UIDevice.currentDevice().identifier... | 23.277778 | 72 | 0.768496 | 46 | 419 | 6.869565 | 0.652174 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002778 | 0.140811 | 419 | 17 | 73 | 24.647059 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.119332 | 0.100239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b1ab1ccee85844db5a0824d3afe3051ca495f7ed | 2,993 | py | Python | servermanager/server_calls.py | renansz/servermanager | f2661ea748c9deccff5daf5b40ed850ef0663c4b | [
"BSD-3-Clause"
] | null | null | null | servermanager/server_calls.py | renansz/servermanager | f2661ea748c9deccff5daf5b40ed850ef0663c4b | [
"BSD-3-Clause"
] | null | null | null | servermanager/server_calls.py | renansz/servermanager | f2661ea748c9deccff5daf5b40ed850ef0663c4b | [
"BSD-3-Clause"
] | null | null | null | import paramiko
def get_system_info(client):
""" Get system basic info about OS , architecture
It is already parsed for html exhibition"""
stdin,stdout,stderr = client.exec_command('uname -srnm')
return stdout.read()
def get_disk_info(client):
""" Execute df command on remote server """
#con... | 29.633663 | 88 | 0.66856 | 400 | 2,993 | 4.7775 | 0.29 | 0.068027 | 0.044479 | 0.060178 | 0.210884 | 0.186813 | 0.141811 | 0.141811 | 0.117739 | 0.117739 | 0 | 0.010378 | 0.195122 | 2,993 | 100 | 89 | 29.93 | 0.782897 | 0.157701 | 0 | 0.087719 | 0 | 0 | 0.078322 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0 | null | null | 0.017544 | 0.017544 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4909c425644a82333da67aa2f1b6ae7f829a3170 | 449 | gyp | Python | data/win/launch/launch.gyp | patilswapnilv/appjs | 003a0d9615e34855460761139554218ba2c2942d | [
"MIT"
] | 934 | 2015-01-02T03:29:12.000Z | 2022-02-28T07:10:04.000Z | data/win/launch/launch.gyp | birdsarah/appjs-browserhistory | 4eb88fc07b486709264eb3b701f5174f4bccb4e8 | [
"MIT"
] | 16 | 2015-01-05T15:02:33.000Z | 2020-09-06T02:35:25.000Z | data/win/launch/launch.gyp | birdsarah/appjs-browserhistory | 4eb88fc07b486709264eb3b701f5174f4bccb4e8 | [
"MIT"
] | 159 | 2015-01-04T15:20:49.000Z | 2021-09-25T22:25:37.000Z | {
"conditions": [
['OS=="win"', {
'targets': [{
'target_name': 'launch',
'msvs_guid': 'C1D7BDA2-FDAB-4A42-BC9B-43F2EA62166E',
'type': 'executable',
'sources': [
'launch.cpp'
],
'include_dirs': [
'src',
],
'msvs_settings': {... | 20.409091 | 60 | 0.398664 | 30 | 449 | 5.833333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060377 | 0.4098 | 449 | 22 | 61 | 20.409091 | 0.6 | 0.048998 | 0 | 0.181818 | 0 | 0 | 0.396714 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
490be761bd9743bc964617ce0b6ad763817fd061 | 7,788 | py | Python | VGGFace/lfw_test_deal.py | whoiamgogo/Find_face_in_video | 72762b1f490c63b4cfbd5768d847e56f587ecb37 | [
"BSD-2-Clause"
] | null | null | null | VGGFace/lfw_test_deal.py | whoiamgogo/Find_face_in_video | 72762b1f490c63b4cfbd5768d847e56f587ecb37 | [
"BSD-2-Clause"
] | null | null | null | VGGFace/lfw_test_deal.py | whoiamgogo/Find_face_in_video | 72762b1f490c63b4cfbd5768d847e56f587ecb37 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
'''
@authot:李华清
@brief:根据lfw网站所给的图片(lfw,lfwcrop_grey,lfwcrop_color)和pairs.txt,写出需要比较的两幅图像的路径(left.txt,right.txt)以及人脸匹配信息(label.txt)
@brief:选择性进行图像尺度变换和灰度化
'''
import os
import numpy as np
#import cv2
#得到一个文件夹下的子文件夹
def dir_subdir(dirname):
dirname=str(dirname)
if dirname=="":
... | 27.326316 | 121 | 0.586543 | 971 | 7,788 | 4.580844 | 0.168898 | 0.034622 | 0.013489 | 0.01259 | 0.408948 | 0.342401 | 0.27563 | 0.255396 | 0.198291 | 0.198291 | 0 | 0.016996 | 0.25963 | 7,788 | 284 | 122 | 27.422535 | 0.754422 | 0.228685 | 0 | 0.369048 | 0 | 0.02381 | 0.167849 | 0.095518 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011905 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4914d6928b4e0e2a8e560d67dd17b2659aef5ccb | 576 | py | Python | zero_to_one_hundred/tests/test_readme_md.py | fossabot/0to100 | 37faa1340b2ec8b87e5d4c268c8caf521ea164cb | [
"Apache-2.0"
] | null | null | null | zero_to_one_hundred/tests/test_readme_md.py | fossabot/0to100 | 37faa1340b2ec8b87e5d4c268c8caf521ea164cb | [
"Apache-2.0"
] | null | null | null | zero_to_one_hundred/tests/test_readme_md.py | fossabot/0to100 | 37faa1340b2ec8b87e5d4c268c8caf521ea164cb | [
"Apache-2.0"
] | null | null | null | # pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203
import logging
from typing import List
from models.readme_md import ReadMeMD
from models.section import Section
from tests.moke.persist_fs import PersistFS as persist_fs
def test_... | 36 | 137 | 0.798611 | 85 | 576 | 5.223529 | 0.552941 | 0.081081 | 0.081081 | 0.072072 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093933 | 0.112847 | 576 | 15 | 138 | 38.4 | 0.774951 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
491612f0ae4a153fa77e5138f626408722296d68 | 922 | py | Python | analytical/models.py | readthedocs/analytical | ee4efd82c1481c3e84c2537208ea244909b5241c | [
"MIT"
] | 1 | 2018-11-01T19:14:29.000Z | 2018-11-01T19:14:29.000Z | analytical/models.py | rtfd/analytical | ee4efd82c1481c3e84c2537208ea244909b5241c | [
"MIT"
] | null | null | null | analytical/models.py | rtfd/analytical | ee4efd82c1481c3e84c2537208ea244909b5241c | [
"MIT"
] | 6 | 2020-07-20T11:13:35.000Z | 2021-04-08T08:46:46.000Z | """Core objects and methods for the analytical package"""
from .providers import googleanalytics
PROVIDER_MAPPING = {"googleanalytics": googleanalytics.Provider}
class Provider(object):
def __init__(self, provider_name, provider_data, **kwargs):
"""
Initialize an analytics provider
:par... | 34.148148 | 93 | 0.70282 | 106 | 922 | 5.943396 | 0.443396 | 0.095238 | 0.063492 | 0.07619 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209328 | 922 | 26 | 94 | 35.461538 | 0.864198 | 0.35141 | 0 | 0 | 0 | 0 | 0.062385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4917e44396f61232b3198662ac3d08a8971a5596 | 1,168 | py | Python | Chapter 5/PC 5-5.py | Nolazco1/pythonProjects | 33938487cb2e4771ea4ff6716703868844d04e52 | [
"MIT"
] | null | null | null | Chapter 5/PC 5-5.py | Nolazco1/pythonProjects | 33938487cb2e4771ea4ff6716703868844d04e52 | [
"MIT"
] | null | null | null | Chapter 5/PC 5-5.py | Nolazco1/pythonProjects | 33938487cb2e4771ea4ff6716703868844d04e52 | [
"MIT"
] | null | null | null | # This program lets you play rock,
# paper, scissors against the computer.
import random
# Gets computer's choice
comp_choice = random.randint(1, 3)
def main():
while True:
# Get player's guess
print('Rock, Paper, or Scissors?')
print('1 = Rock, 2 = Paper, 3 = Scissors')
... | 30.736842 | 66 | 0.538527 | 145 | 1,168 | 4.282759 | 0.324138 | 0.128824 | 0.125604 | 0.101449 | 0.309179 | 0.251208 | 0.173913 | 0 | 0 | 0 | 0 | 0.022727 | 0.359589 | 1,168 | 37 | 67 | 31.567568 | 0.807487 | 0.121575 | 0 | 0 | 0 | 0 | 0.292261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.090909 | 0.409091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
491a01b7e600311041afa52a57ea24e6bfd39bbb | 15,845 | py | Python | src/openfermion/circuits/unitary_cc_test.py | SamarthVadia/OpenFermion | 865d8591cad9b0681f6dd25a391a5292ed2de1d4 | [
"Apache-2.0"
] | 1 | 2022-03-08T13:16:16.000Z | 2022-03-08T13:16:16.000Z | src/openfermion/circuits/unitary_cc_test.py | SamarthVadia/OpenFermion | 865d8591cad9b0681f6dd25a391a5292ed2de1d4 | [
"Apache-2.0"
] | null | null | null | src/openfermion/circuits/unitary_cc_test.py | SamarthVadia/OpenFermion | 865d8591cad9b0681f6dd25a391a5292ed2de1d4 | [
"Apache-2.0"
] | null | null | null | # 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 writing, software
# distribu... | 43.891967 | 79 | 0.599116 | 1,704 | 15,845 | 5.296362 | 0.13615 | 0.034571 | 0.023047 | 0.021274 | 0.728753 | 0.69097 | 0.668144 | 0.640443 | 0.631357 | 0.606981 | 0 | 0.043086 | 0.314484 | 15,845 | 360 | 80 | 44.013889 | 0.787792 | 0.098896 | 0 | 0.596 | 0 | 0 | 0.027727 | 0.003378 | 0 | 0 | 0 | 0 | 0.072 | 1 | 0.044 | false | 0 | 0.052 | 0 | 0.1 | 0.008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
491a4bb4b5b42f2b7c9aa6a15fc56f7a3cb48832 | 812 | py | Python | 3M/W12/4.py | allenalvin333/Hackerrank_Prep | 26ed5b874daba4775d006824d36f9e82ea5ff1ea | [
"MIT"
] | 2 | 2021-11-25T13:38:36.000Z | 2021-11-25T13:42:56.000Z | 3M/W12/4.py | allenalvin333/Hackerrank_Prep | 26ed5b874daba4775d006824d36f9e82ea5ff1ea | [
"MIT"
] | null | null | null | 3M/W12/4.py | allenalvin333/Hackerrank_Prep | 26ed5b874daba4775d006824d36f9e82ea5ff1ea | [
"MIT"
] | 1 | 2021-11-25T13:38:43.000Z | 2021-11-25T13:38:43.000Z | # https://www.hackerrank.com/challenges/three-month-preparation-kit-beadornaments/problem
#!/bin/python3
import math
import os
import random
import re
import sys
from operator import mul
from functools import reduce
#
# Complete the 'beadOrnaments' function below.
#
# The function is expected to return an INTEGER.
#... | 21.945946 | 89 | 0.663793 | 117 | 812 | 4.504274 | 0.641026 | 0.045541 | 0.049336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021021 | 0.179803 | 812 | 37 | 90 | 21.945946 | 0.77027 | 0.299261 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
491baa9fb636408a9c0249fb50aed71f27756306 | 14,528 | py | Python | 0.4_categorical encoding/0.2_one_hot_encoding_of_frequent_categories.py | Akshaykumarcp/ML-Feature-Engineering | 456c3a729d67ec2cb6115a27befc0d775fb85e97 | [
"MIT"
] | null | null | null | 0.4_categorical encoding/0.2_one_hot_encoding_of_frequent_categories.py | Akshaykumarcp/ML-Feature-Engineering | 456c3a729d67ec2cb6115a27befc0d775fb85e97 | [
"MIT"
] | null | null | null | 0.4_categorical encoding/0.2_one_hot_encoding_of_frequent_categories.py | Akshaykumarcp/ML-Feature-Engineering | 456c3a729d67ec2cb6115a27befc0d775fb85e97 | [
"MIT"
] | null | null | null | """
One Hot Encoding {OHE} of Frequent Categories
- We learned in previous examples that high cardinality and rare labels may result in certain categories appearing only in the train set, therefore causing over-fitting, or only in the test set, and then our models wouldn't know how to score those observations.
- W... | 47.016181 | 301 | 0.453469 | 1,471 | 14,528 | 4.410605 | 0.242692 | 0.04439 | 0.027281 | 0.012022 | 0.167078 | 0.115136 | 0.115136 | 0.097411 | 0.094636 | 0.094636 | 0 | 0.099918 | 0.497797 | 14,528 | 308 | 302 | 47.168831 | 0.789337 | 0.049215 | 0 | 0.046512 | 0 | 0 | 0.176255 | 0.031904 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
491fda96a3e783b2869cda45b956c4cc7033d266 | 5,856 | py | Python | next_builder_sdk/api/build/package_upload_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | next_builder_sdk/api/build/package_upload_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | next_builder_sdk/api/build/package_upload_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: package_upload.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | 39.567568 | 485 | 0.759734 | 702 | 5,856 | 6.05698 | 0.205128 | 0.043274 | 0.049389 | 0.026341 | 0.49412 | 0.46778 | 0.461195 | 0.443321 | 0.425447 | 0.425447 | 0 | 0.034496 | 0.118852 | 5,856 | 147 | 486 | 39.836735 | 0.789535 | 0.054303 | 0 | 0.609756 | 1 | 0.00813 | 0.206872 | 0.157685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49259b1d457f775f99826c83fac7d3ab159909df | 2,069 | py | Python | leaflet_storage/decorators.py | gostekk/django-leaflet-storage | e9786edae55980c70f9f00bb1ef467cf04327c29 | [
"WTFPL"
] | null | null | null | leaflet_storage/decorators.py | gostekk/django-leaflet-storage | e9786edae55980c70f9f00bb1ef467cf04327c29 | [
"WTFPL"
] | null | null | null | leaflet_storage/decorators.py | gostekk/django-leaflet-storage | e9786edae55980c70f9f00bb1ef467cf04327c29 | [
"WTFPL"
] | null | null | null | from functools import wraps
from django.urls import reverse_lazy
from django.shortcuts import get_object_or_404
from django.http import HttpResponseForbidden
from django.conf import settings
from .views import simple_json_response
from .models import Map
LOGIN_URL = getattr(settings, "LOGIN_URL", "login")
LOGIN_URL ... | 34.483333 | 83 | 0.683905 | 261 | 2,069 | 5.164751 | 0.298851 | 0.053412 | 0.075668 | 0.035608 | 0.288576 | 0.27003 | 0.27003 | 0.27003 | 0.240356 | 0.170623 | 0 | 0.003741 | 0.224746 | 2,069 | 59 | 84 | 35.067797 | 0.836658 | 0.036249 | 0 | 0.302326 | 0 | 0 | 0.066734 | 0.015672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.162791 | 0 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4926109dc5580e8e5f3e73d1cefd792dcb1089ff | 308 | py | Python | koku/reporting/user_settings/models.py | rubik-ai/koku | 3255d1c217b7b6685cb2e130bf4e025946e76fac | [
"Apache-2.0"
] | 157 | 2018-04-30T16:27:53.000Z | 2022-03-31T08:17:21.000Z | koku/reporting/user_settings/models.py | rubik-ai/koku | 3255d1c217b7b6685cb2e130bf4e025946e76fac | [
"Apache-2.0"
] | 3,250 | 2018-04-26T14:14:25.000Z | 2022-03-31T23:49:15.000Z | koku/reporting/user_settings/models.py | rubik-ai/koku | 3255d1c217b7b6685cb2e130bf4e025946e76fac | [
"Apache-2.0"
] | 65 | 2018-05-10T14:11:50.000Z | 2022-03-18T19:22:58.000Z | # Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
from django.db import models
class UserSettings(models.Model):
"""A table that maps between account and settings: settings has many accounts."""
class Meta:
db_table = "user_settings"
settings = models.JSONField()
| 22 | 85 | 0.707792 | 41 | 308 | 5.268293 | 0.804878 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.194805 | 308 | 13 | 86 | 23.692308 | 0.846774 | 0.454545 | 0 | 0 | 0 | 0 | 0.08125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4929d19ce80c4d1e65d8c43751662c8df5c698e1 | 2,483 | py | Python | network.py | NoSRPKU/GradD | c74af028d4a93e2f645a61316a5c339ecf690bf1 | [
"MIT"
] | null | null | null | network.py | NoSRPKU/GradD | c74af028d4a93e2f645a61316a5c339ecf690bf1 | [
"MIT"
] | null | null | null | network.py | NoSRPKU/GradD | c74af028d4a93e2f645a61316a5c339ecf690bf1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import scipy
import matplotlib.pyplot as plt
import math
def sigmoid(x):
return np.array([(1. - math.exp(-a))/(1. + math.exp(-a)) for a in x])
def sigmoid_rev(x):
return np.array([-math.log((1. - a) / (a + 1.)) for a in x])
class Network(object):
def __init__(... | 35.471429 | 77 | 0.578333 | 341 | 2,483 | 4.014663 | 0.260997 | 0.096421 | 0.043828 | 0.020453 | 0.052593 | 0.052593 | 0.052593 | 0.052593 | 0.052593 | 0 | 0 | 0.017604 | 0.290777 | 2,483 | 70 | 78 | 35.471429 | 0.759796 | 0.095852 | 0 | 0 | 0 | 0 | 0.008949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019608 | 0.078431 | null | null | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
492a7d1adf4030a331d82adbf69cb4b3acf0c370 | 72,278 | py | Python | lib/python3.8/site-packages/ansible_collections/community/network/plugins/modules/network/netscaler/netscaler_lb_vserver.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/community/network/plugins/modules/network/netscaler/netscaler_lb_vserver.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/community/network/plugins/modules/network/netscaler/netscaler_lb_vserver.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Citrix Systems
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: netscaler_lb_vserver
short... | 37.314404 | 143 | 0.574753 | 7,527 | 72,278 | 5.449582 | 0.146938 | 0.016188 | 0.013408 | 0.011848 | 0.371706 | 0.318438 | 0.259782 | 0.215876 | 0.176089 | 0.157878 | 0 | 0.011765 | 0.346163 | 72,278 | 1,936 | 144 | 37.333678 | 0.856215 | 0.010266 | 0 | 0.380562 | 0 | 0.039813 | 0.656254 | 0.013676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008782 | false | 0.011124 | 0.008197 | 0 | 0.03103 | 0.000585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
492d7b4c4e7a87d2c955a8e726b0c32bb30d5ab3 | 2,848 | py | Python | get_alap.py | jabbalaci/Bash-Utils | c6fb115834a221c4aaba8eaa37f650beea45ef29 | [
"MIT"
] | 73 | 2015-03-31T01:12:26.000Z | 2021-07-10T19:45:04.000Z | get_alap.py | doc22940/Bash-Utils | c6fb115834a221c4aaba8eaa37f650beea45ef29 | [
"MIT"
] | 2 | 2017-01-06T17:17:42.000Z | 2017-08-23T18:35:55.000Z | get_alap.py | doc22940/Bash-Utils | c6fb115834a221c4aaba8eaa37f650beea45ef29 | [
"MIT"
] | 27 | 2015-01-03T18:51:23.000Z | 2020-11-15T11:49:51.000Z | #!/usr/bin/env python3
"""
Generate a skeleton source code.
Last update: 2018-06-17 (yyyy-mm-dd)
"""
import os
import sys
import shutil
CWD = os.getcwd()
# if __file__ is a link, realpath returns the path of the pointed file
TEMPLATES = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) + '/' + 'templates... | 24.982456 | 101 | 0.493329 | 350 | 2,848 | 3.942857 | 0.354286 | 0.03913 | 0.047826 | 0.047101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015361 | 0.314256 | 2,848 | 113 | 102 | 25.20354 | 0.691244 | 0.079003 | 0 | 0.149425 | 1 | 0 | 0.193128 | 0.021327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045977 | false | 0 | 0.034483 | 0 | 0.195402 | 0.091954 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49366b14231aeecd261d46140ca40d510e9c46a9 | 10,576 | py | Python | backend/slave/server.py | welchbj/spotnet | e0f0c823e6604ca06b96ad1ba804d7cfa7783cf3 | [
"MIT"
] | 4 | 2018-03-31T01:35:11.000Z | 2021-02-23T07:23:55.000Z | backend/slave/server.py | welchbj/spotnet | e0f0c823e6604ca06b96ad1ba804d7cfa7783cf3 | [
"MIT"
] | null | null | null | backend/slave/server.py | welchbj/spotnet | e0f0c823e6604ca06b96ad1ba804d7cfa7783cf3 | [
"MIT"
] | null | null | null | """The Spotnet slave server implementation."""
import asyncio
import json
from websockets.exceptions import ConnectionClosed
from ..utils import get_configured_logger, WebSocketWrapper
from .config import SPOTNET_SLAVE_LOGGER_NAME
class SpotnetSlaveServer(object):
"""A server for Spotify audio playback.
... | 35.489933 | 79 | 0.559002 | 1,131 | 10,576 | 5.06985 | 0.195402 | 0.042379 | 0.052145 | 0.029822 | 0.211022 | 0.162714 | 0.1376 | 0.119288 | 0.107081 | 0.107081 | 0 | 0.003462 | 0.344459 | 10,576 | 297 | 80 | 35.609428 | 0.823597 | 0.019667 | 0 | 0.289216 | 0 | 0 | 0.203388 | 0.002452 | 0 | 0 | 0 | 0.003367 | 0 | 0 | null | null | 0.039216 | 0.02451 | null | null | 0.004902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49373f0465f31114ac3667324686975590736b7d | 3,432 | py | Python | APPRoot/loveword/middleware/meipai_parse.py | 1633743096/- | 3d1a52426a2a28c089e6ce83bc018e49f9399858 | [
"Apache-2.0"
] | 9 | 2021-03-04T01:30:46.000Z | 2021-11-17T16:28:04.000Z | APPRoot/loveword/middleware/meipai_parse.py | 1633743096/- | 3d1a52426a2a28c089e6ce83bc018e49f9399858 | [
"Apache-2.0"
] | 10 | 2020-08-24T12:31:36.000Z | 2021-07-14T03:25:30.000Z | APPRoot/loveword/middleware/meipai_parse.py | 1633743096/- | 3d1a52426a2a28c089e6ce83bc018e49f9399858 | [
"Apache-2.0"
] | 4 | 2021-03-09T02:47:19.000Z | 2022-01-17T06:56:49.000Z | # -*- coding:utf-8 -*-
import base64
import requests
import json
import re
import execjs
"""
# 方法一:
class MeiPai(object):
def __init__(self, url):
self.url = url
self.session = requests.Session()
with open("static/loveword/js/meipai_encrypt.js", "r", encoding="utf-8") as f:
reso... | 35.020408 | 144 | 0.517191 | 430 | 3,432 | 4.065116 | 0.290698 | 0.028032 | 0.022883 | 0.043478 | 0.691076 | 0.663616 | 0.663616 | 0.663616 | 0.663616 | 0.663616 | 0 | 0.050475 | 0.324592 | 3,432 | 97 | 145 | 35.381443 | 0.703624 | 0.006993 | 0 | 0 | 0 | 0.018519 | 0.147852 | 0.012488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.092593 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
493b1ab01e79efae5622cf933df963c88f365cdb | 803 | py | Python | app/mod_statistics/views.py | crtarsorg/glasomer.rs-v2 | ac43e1ba30b80a4ba9ca67768680b6e79f1512f3 | [
"CC0-1.0"
] | null | null | null | app/mod_statistics/views.py | crtarsorg/glasomer.rs-v2 | ac43e1ba30b80a4ba9ca67768680b6e79f1512f3 | [
"CC0-1.0"
] | 54 | 2017-03-06T12:48:40.000Z | 2017-04-20T08:33:09.000Z | app/mod_statistics/views.py | crtarsorg/glasomer.rs-v2 | ac43e1ba30b80a4ba9ca67768680b6e79f1512f3 | [
"CC0-1.0"
] | null | null | null | from app import mongo_utils,UPLOAD_FOLDER,ALLOWED_EXTENSIONS
from bson import json_util
from flask import Blueprint, render_template, request, Response, redirect, url_for, flash
from flask.ext.security import login_required
import os, json
from flask.ext.security import current_user
mod_statistics = Blueprint('statist... | 42.263158 | 104 | 0.785803 | 109 | 803 | 5.486239 | 0.486239 | 0.06689 | 0.040134 | 0.06689 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11457 | 803 | 18 | 105 | 44.611111 | 0.841069 | 0 | 0 | 0 | 0 | 0 | 0.072229 | 0.031133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
493c4c14a9e268f55badeb278f1b5f1cdfa091c4 | 3,838 | py | Python | models.py | xmaps/movie-ranking-test | b7d72892247a9fc0a428822d27600fe489324626 | [
"MIT"
] | null | null | null | models.py | xmaps/movie-ranking-test | b7d72892247a9fc0a428822d27600fe489324626 | [
"MIT"
] | null | null | null | models.py | xmaps/movie-ranking-test | b7d72892247a9fc0a428822d27600fe489324626 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Helper model class for Movie Ranking API.
Defines models for persisting and querying Users of the system and Present Movies
"""
import endpoints
from google.appengine.ext import ndb
from movie_ranking_api_messages import UserMessage, MovieMessage,\
SimplerUserM... | 42.644444 | 99 | 0.614643 | 483 | 3,838 | 4.782609 | 0.26501 | 0.031169 | 0.050649 | 0.062771 | 0.387013 | 0.287446 | 0.250649 | 0.22381 | 0.22381 | 0.22381 | 0 | 0.000381 | 0.315268 | 3,838 | 89 | 100 | 43.123596 | 0.878615 | 0.389786 | 0 | 0.052632 | 0 | 0 | 0.008454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0.026316 | 0.078947 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
493c6c3277e56899137f44bb504ae3e0fed2e2bf | 5,317 | py | Python | inspection_sdk/api/task/delete_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | inspection_sdk/api/task/delete_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | inspection_sdk/api/task/delete_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: delete.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf impo... | 37.70922 | 448 | 0.756818 | 641 | 5,317 | 5.99844 | 0.224649 | 0.041612 | 0.049155 | 0.024967 | 0.475423 | 0.453056 | 0.445774 | 0.426008 | 0.406242 | 0.380754 | 0 | 0.036333 | 0.119992 | 5,317 | 140 | 449 | 37.978571 | 0.785424 | 0.056799 | 0 | 0.586207 | 1 | 0.008621 | 0.198522 | 0.152786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051724 | 0 | 0.051724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49429cadc1de20d578160ba55d34237be4c4cba4 | 5,296 | py | Python | tiled-lutnet/lutnet/src/network/testbench/tb/test_inference.py | awai54st/LUTNet | 81b044f31d1131bee1a7fae41fc4d2fb102ea73a | [
"BSD-2-Clause"
] | 38 | 2019-10-28T10:06:33.000Z | 2022-02-21T21:38:39.000Z | tiled-lutnet/lutnet/src/network/testbench/tb/test_inference.py | awai54st/LUTNet | 81b044f31d1131bee1a7fae41fc4d2fb102ea73a | [
"BSD-2-Clause"
] | null | null | null | tiled-lutnet/lutnet/src/network/testbench/tb/test_inference.py | awai54st/LUTNet | 81b044f31d1131bee1a7fae41fc4d2fb102ea73a | [
"BSD-2-Clause"
] | 13 | 2019-10-28T10:17:48.000Z | 2021-08-10T21:37:11.000Z | import numpy as np
import pickle
import matplotlib.pyplot as plt
import matplotlib
import keras
from keras.datasets import cifar10,mnist
from keras.utils import np_utils
from keras.optimizers import SGD
from keras import backend as K
from keras.models import load_model
from keras.preprocessing.image import ImageDataGen... | 41.054264 | 138 | 0.742258 | 870 | 5,296 | 4.312644 | 0.201149 | 0.055437 | 0.063433 | 0.03838 | 0.550107 | 0.509595 | 0.509595 | 0.496269 | 0.477878 | 0.477878 | 0 | 0.042693 | 0.111027 | 5,296 | 128 | 139 | 41.375 | 0.754248 | 0.152379 | 0 | 0.27551 | 0 | 0 | 0.082682 | 0.010056 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163265 | null | null | 0.091837 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49431e5a307fccf0aeb7a94c2458a991a130d359 | 708 | py | Python | mysite/urls.py | andriy47/TFG | 6574a441513356c11b30a86eb381ae4e5f91831d | [
"MIT"
] | null | null | null | mysite/urls.py | andriy47/TFG | 6574a441513356c11b30a86eb381ae4e5f91831d | [
"MIT"
] | null | null | null | mysite/urls.py | andriy47/TFG | 6574a441513356c11b30a86eb381ae4e5f91831d | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from mysite.core import views as core_views
urlpatterns = [
url(r'^$', core_views.home, name='home'),
url(r'^login/$', auth_views.login, name='login'),
url(r'^logout/$', auth_view... | 39.333333 | 73 | 0.677966 | 101 | 708 | 4.653465 | 0.277228 | 0.076596 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128531 | 708 | 17 | 74 | 41.647059 | 0.76175 | 0.169492 | 0 | 0 | 0 | 0 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4949e20520f66b4cb7100a79b89a09f2b8f8f8c9 | 2,084 | py | Python | CreatureRogue/data_layer/data.py | DaveTCode/CreatureRogue | 74ce2bf731b52b014198a2376dfba0d9782cbf01 | [
"MIT"
] | 1 | 2020-06-12T00:10:32.000Z | 2020-06-12T00:10:32.000Z | CreatureRogue/data_layer/data.py | DaveTCode/CreatureRogue | 74ce2bf731b52b014198a2376dfba0d9782cbf01 | [
"MIT"
] | null | null | null | CreatureRogue/data_layer/data.py | DaveTCode/CreatureRogue | 74ce2bf731b52b014198a2376dfba0d9782cbf01 | [
"MIT"
] | null | null | null | from typing import Dict
from CreatureRogue.data_layer.location_area_rect import LocationAreaRect
from CreatureRogue.data_layer.location_area_rect_collection import LocationAreaRectCollection
from CreatureRogue.data_layer.map_data_tile_type import MapDataTileType
# TODO - Change to enum?
HP_STAT = 1
ATTACK_STAT = 2
D... | 33.079365 | 218 | 0.711612 | 275 | 2,084 | 5.145455 | 0.429091 | 0.059364 | 0.031095 | 0.055124 | 0.090459 | 0.090459 | 0.090459 | 0 | 0 | 0 | 0 | 0.009858 | 0.221209 | 2,084 | 62 | 219 | 33.612903 | 0.861984 | 0.159309 | 0 | 0 | 0 | 0 | 0.000589 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.076923 | false | 0 | 0.102564 | 0.025641 | 0.25641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4950aafbe507d53c7f6d62723be208da83082b49 | 547 | py | Python | webapp.py | iliasi/BERT-model-Q-A | 84a4d2cc0a73da365b4d26e4ff8d09b47c89663f | [
"MIT"
] | null | null | null | webapp.py | iliasi/BERT-model-Q-A | 84a4d2cc0a73da365b4d26e4ff8d09b47c89663f | [
"MIT"
] | null | null | null | webapp.py | iliasi/BERT-model-Q-A | 84a4d2cc0a73da365b4d26e4ff8d09b47c89663f | [
"MIT"
] | null | null | null | from model import answer_question
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
import torch
import textwrap
import streamlit as st
st.set_page_config(page_title='Machine Learning Q&A App', layout="wide")
st.title('Machine Learning Question Answering App')
article_essay = st.text_area('Enter s... | 26.047619 | 72 | 0.809872 | 75 | 547 | 5.746667 | 0.546667 | 0.083527 | 0.092807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00818 | 0.106033 | 547 | 20 | 73 | 27.35 | 0.873211 | 0.04936 | 0 | 0 | 0 | 0 | 0.185328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
495282a22cf56ae6232b39e50fcf046a50e9a5cd | 994 | py | Python | graphql_jwt/refresh_token/admin/filters.py | ibqn/django-graphql-jwt | dd92319071092bb517187904f3ac0610e8443edf | [
"MIT"
] | 1 | 2021-10-14T01:23:55.000Z | 2021-10-14T01:23:55.000Z | graphql_jwt/refresh_token/admin/filters.py | ibqn/django-graphql-jwt | dd92319071092bb517187904f3ac0610e8443edf | [
"MIT"
] | null | null | null | graphql_jwt/refresh_token/admin/filters.py | ibqn/django-graphql-jwt | dd92319071092bb517187904f3ac0610e8443edf | [
"MIT"
] | 1 | 2021-03-10T17:53:41.000Z | 2021-03-10T17:53:41.000Z | from django.contrib.admin import SimpleListFilter
from django.utils.translation import gettext_lazy as _
__all__ = [
'ExpiredFilter',
'RevokedFilter',
]
class BooleanListFilter(SimpleListFilter):
def lookups(self, request, model_admin):
return (
('yes', _('Yes')),
('no', ... | 24.243902 | 59 | 0.623742 | 97 | 994 | 6.216495 | 0.371134 | 0.039801 | 0.072968 | 0.072968 | 0.411277 | 0.281924 | 0.192371 | 0.192371 | 0.192371 | 0.192371 | 0 | 0 | 0.246479 | 994 | 40 | 60 | 24.85 | 0.805073 | 0 | 0 | 0.214286 | 0 | 0 | 0.074447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0.035714 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4954df8e0feb860179723dba9eb4b22344dfb1e4 | 770 | py | Python | floodsystem/analysis.py | samoteng/ia-flood-warning-system-group59 | ec431cef9e98777e67e337c0dcdde7912c008f17 | [
"MIT"
] | null | null | null | floodsystem/analysis.py | samoteng/ia-flood-warning-system-group59 | ec431cef9e98777e67e337c0dcdde7912c008f17 | [
"MIT"
] | null | null | null | floodsystem/analysis.py | samoteng/ia-flood-warning-system-group59 | ec431cef9e98777e67e337c0dcdde7912c008f17 | [
"MIT"
] | 1 | 2022-01-21T20:39:08.000Z | 2022-01-21T20:39:08.000Z | #Task2F
#a function that given the water level time history (dates, levels) for a station
#computes a least-squares fit of a polynomial of degree p to water level data
#The function should return a tuple of (i) the polynomial object and
#(ii) any shift of the time (date) axis
import numpy as np
import matplotlib
de... | 29.615385 | 82 | 0.701299 | 129 | 770 | 4.170543 | 0.542636 | 0.037175 | 0.033457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011667 | 0.220779 | 770 | 25 | 83 | 30.8 | 0.885 | 0.627273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
495cc92822283b1251001a5788bd5e3fae1737b5 | 2,214 | py | Python | django/core/cache/__init__.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | 1 | 2016-05-08T12:24:22.000Z | 2016-05-08T12:24:22.000Z | django/core/cache/__init__.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | null | null | null | django/core/cache/__init__.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | 1 | 2015-11-19T14:45:16.000Z | 2015-11-19T14:45:16.000Z | """
Caching framework.
This package defines set of cache backends that all conform to a simple API.
In a nutshell, a cache is a set of values -- which can be any object that
may be pickled -- identified by string keys. For the complete API, see
the abstract BaseCache class in django.core.cache.backends.base.
Client ... | 34.59375 | 117 | 0.68112 | 294 | 2,214 | 5.061224 | 0.414966 | 0.040323 | 0.030242 | 0.046371 | 0.114247 | 0.077957 | 0.077957 | 0.077957 | 0 | 0 | 0 | 0.010204 | 0.203252 | 2,214 | 63 | 118 | 35.142857 | 0.833333 | 0.051491 | 0 | 0.052632 | 0 | 0 | 0.186441 | 0.02048 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.131579 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
495dfe9a7ce5aae4f7b8f319aea6ce6475386035 | 4,626 | py | Python | def/opcao.py | cienwfp/appAnaliseMovimento | 6b20b08602af7839909b0065db4b9725ec79d3b2 | [
"MIT"
] | null | null | null | def/opcao.py | cienwfp/appAnaliseMovimento | 6b20b08602af7839909b0065db4b9725ec79d3b2 | [
"MIT"
] | null | null | null | def/opcao.py | cienwfp/appAnaliseMovimento | 6b20b08602af7839909b0065db4b9725ec79d3b2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""Created on Jul 2021.
@author: Wanderson Neto
This module processes the option 2
of the menuInicial
"""
import datetime
import pandas as pd
from getMJ import getMJ
class opcao():
def opcao2(placa, dataInicial,... | 37.918033 | 172 | 0.521833 | 450 | 4,626 | 5.342222 | 0.24 | 0.008319 | 0.033278 | 0.039933 | 0.751664 | 0.683444 | 0.66015 | 0.65391 | 0.618136 | 0.618136 | 0 | 0.018977 | 0.362084 | 4,626 | 122 | 173 | 37.918033 | 0.795662 | 0.038262 | 0 | 0.6375 | 0 | 0 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.0375 | 0 | 0.075 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4963a0eef6135f24779ff7b9b17414598561931f | 5,813 | py | Python | stella_nav_planning/src/stella_nav_planning/global_planner/ompl_planner.py | ymd-stella/stella_nav | b92f2dcaf52d0bb03c9ea4228124dc3444af2681 | [
"MIT"
] | null | null | null | stella_nav_planning/src/stella_nav_planning/global_planner/ompl_planner.py | ymd-stella/stella_nav | b92f2dcaf52d0bb03c9ea4228124dc3444af2681 | [
"MIT"
] | null | null | null | stella_nav_planning/src/stella_nav_planning/global_planner/ompl_planner.py | ymd-stella/stella_nav | b92f2dcaf52d0bb03c9ea4228124dc3444af2681 | [
"MIT"
] | 1 | 2022-01-14T07:55:22.000Z | 2022-01-14T07:55:22.000Z | import rospy
import numpy as np
from .helper import PassableChecker, WaypointGenerator
import threading
from .optimized.ompl_planner_impl import OmplPlannerImpl
class OmplPlanner(object):
def __init__(self, costmaps, costmap, calc_time=0.1, resolution=0.001, distance=5,
subgoal_distance=1.0, goal... | 47.647541 | 154 | 0.61913 | 732 | 5,813 | 4.648907 | 0.211749 | 0.037026 | 0.034969 | 0.024684 | 0.200999 | 0.146635 | 0.106964 | 0.106964 | 0.073465 | 0.050544 | 0 | 0.013114 | 0.278514 | 5,813 | 121 | 155 | 48.041322 | 0.798283 | 0.045587 | 0 | 0.098039 | 0 | 0 | 0.034122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0.068627 | 0.04902 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
49685cfa37e0531a105cdc0dcfaf283a4304a90a | 1,290 | py | Python | mm2notes/tests/from_to_tests.py | chupibk/mm2notes | 70becc9344dc661d81472e1447896bbd0641d292 | [
"Apache-2.0"
] | null | null | null | mm2notes/tests/from_to_tests.py | chupibk/mm2notes | 70becc9344dc661d81472e1447896bbd0641d292 | [
"Apache-2.0"
] | null | null | null | mm2notes/tests/from_to_tests.py | chupibk/mm2notes | 70becc9344dc661d81472e1447896bbd0641d292 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
"""One-line documentation for from_to_tests module.
A detailed description of from_to_tests.
"""
__author__ = 'scottakirkwood@gmail.com (Scott Kirkwood)'
import sys
sys.path.append('..')
import mm2notes
import unittest
import codecs
import glob
import difflib
class FromToTests(unittest.Test... | 24.807692 | 65 | 0.676744 | 172 | 1,290 | 4.860465 | 0.476744 | 0.038278 | 0.026316 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007767 | 0.20155 | 1,290 | 51 | 66 | 25.294118 | 0.803884 | 0.015504 | 0 | 0 | 0 | 0 | 0.093083 | 0.020495 | 0 | 0 | 0 | 0 | 0.027778 | 0 | null | null | 0 | 0.166667 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4969515a137d178bd1c10189b7d5194b9793c7e8 | 1,331 | py | Python | bert_multitask_learning/data_preprocessing/pos_data.py | zsweet/bert-multitask-learning | 7e6bd301904285614549871cff13a67e9c794532 | [
"MIT"
] | 2 | 2020-10-19T11:35:17.000Z | 2022-01-07T15:04:12.000Z | bert_multitask_learning/data_preprocessing/pos_data.py | zsweet/bert-multitask-learning | 7e6bd301904285614549871cff13a67e9c794532 | [
"MIT"
] | null | null | null | bert_multitask_learning/data_preprocessing/pos_data.py | zsweet/bert-multitask-learning | 7e6bd301904285614549871cff13a67e9c794532 | [
"MIT"
] | 1 | 2020-10-19T11:36:32.000Z | 2020-10-19T11:36:32.000Z | from sklearn.model_selection import train_test_split
from ..tokenization import FullTokenizer
from ..utils import get_or_make_label_encoder, TRAIN, EVAL, PREDICT
from ..create_generators import create_single_problem_generator
from .ctb_data import read_ctb_pos
def POS(params, mode):
tokenizer = FullTokenizer(vo... | 38.028571 | 76 | 0.599549 | 150 | 1,331 | 4.92 | 0.353333 | 0.135501 | 0.142276 | 0.180217 | 0.349594 | 0.292683 | 0.208672 | 0.208672 | 0.208672 | 0.208672 | 0 | 0.013575 | 0.335838 | 1,331 | 34 | 77 | 39.147059 | 0.821267 | 0 | 0 | 0.076923 | 0 | 0 | 0.012021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
496962753014eda923065bff386582f413b5e8a7 | 2,387 | py | Python | caldavclientlibrary/browser/commands/addressbooks.py | skarra/CalDAVClientLibrary | b925efdeee7aba581586a15544af12f399c59c9d | [
"Apache-2.0"
] | 1 | 2015-05-26T04:15:19.000Z | 2015-05-26T04:15:19.000Z | caldavclientlibrary/browser/commands/addressbooks.py | skarra/CalDAVClientLibrary | b925efdeee7aba581586a15544af12f399c59c9d | [
"Apache-2.0"
] | null | null | null | caldavclientlibrary/browser/commands/addressbooks.py | skarra/CalDAVClientLibrary | b925efdeee7aba581586a15544af12f399c59c9d | [
"Apache-2.0"
] | null | null | null | ##
# Copyright (c) 2007-2013 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 31.826667 | 98 | 0.656891 | 302 | 2,387 | 5.152318 | 0.466887 | 0.03856 | 0.01671 | 0.020566 | 0.104113 | 0.048843 | 0 | 0 | 0 | 0 | 0 | 0.009518 | 0.25178 | 2,387 | 74 | 99 | 32.256757 | 0.861702 | 0.24005 | 0 | 0.139535 | 0 | 0 | 0.176503 | 0.013363 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | null | null | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
497106703efaf6dabe74201511e78fb11d7f138b | 533 | py | Python | day2_Cexer.py | kangsup/maybler0 | 0128054800c4afbe842e711a881378382ffa5c6f | [
"MIT"
] | null | null | null | day2_Cexer.py | kangsup/maybler0 | 0128054800c4afbe842e711a881378382ffa5c6f | [
"MIT"
] | null | null | null | day2_Cexer.py | kangsup/maybler0 | 0128054800c4afbe842e711a881378382ffa5c6f | [
"MIT"
] | null | null | null | #Ex9_Program_Excercise
class Contact:
def __init__(self, name, phone_number, e_mail, addr):
self.name=name
self.phone_number=phone_number
self.e_mail=e_mail
self.addr=addr
def print_info():
print("이름: ", self.name)
print('연락처: ', self.phone_number)
print('이메일: ', self.e_mail)
print('주소: '... | 20.5 | 55 | 0.652908 | 80 | 533 | 4.0875 | 0.2875 | 0.201835 | 0.091743 | 0.097859 | 0.146789 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0.002299 | 0.183865 | 533 | 26 | 56 | 20.5 | 0.749425 | 0.0394 | 0 | 0 | 0 | 0 | 0.073922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.25 | 0.3 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4974bb95cacdd75d6b43c341a876aa0487e33817 | 3,088 | py | Python | sphinx_express/templates.py | iisaka51/sphinx-express | 22369f3448f9f2029167dfe9520c6b812cd5a88c | [
"MIT"
] | null | null | null | sphinx_express/templates.py | iisaka51/sphinx-express | 22369f3448f9f2029167dfe9520c6b812cd5a88c | [
"MIT"
] | null | null | null | sphinx_express/templates.py | iisaka51/sphinx-express | 22369f3448f9f2029167dfe9520c6b812cd5a88c | [
"MIT"
] | null | null | null |
REPLACE_CONFIGS = {
"html_theme = 'alabaster'":
"""
# Avilable Themes:
# alabaster, sphinx_rtd_theme
# babel, click, flask, jinja, platter, pocoo, werkzeug
#
html_theme = "sphinx_rtd_theme"
""",
}
APPEND_CONFIGS = """
{%- if 'sphinx.ext.autosectionlabel ' in extensions %}
## True to prefix each section label with... | 29.692308 | 80 | 0.670013 | 369 | 3,088 | 5.447154 | 0.490515 | 0.041791 | 0.056716 | 0.065672 | 0.075622 | 0.075622 | 0.075622 | 0 | 0 | 0 | 0 | 0.006466 | 0.14864 | 3,088 | 103 | 81 | 29.980583 | 0.758083 | 0 | 0 | 0.101449 | 0 | 0.014493 | 0.980625 | 0.301835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4975499033ba9da71bcc29ec04fa933fcf3a89d4 | 456 | py | Python | catalog/migrations/0035_auto_20210307_2345.py | Novel-Public-Health/Novel-Public-Health | fbb7dd0da64ae4fc9641097ca8056152129bd83b | [
"CC0-1.0"
] | null | null | null | catalog/migrations/0035_auto_20210307_2345.py | Novel-Public-Health/Novel-Public-Health | fbb7dd0da64ae4fc9641097ca8056152129bd83b | [
"CC0-1.0"
] | null | null | null | catalog/migrations/0035_auto_20210307_2345.py | Novel-Public-Health/Novel-Public-Health | fbb7dd0da64ae4fc9641097ca8056152129bd83b | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1.2 on 2021-03-08 04:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0034_remove_movie_movie_genre'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='genre'... | 24 | 116 | 0.625 | 53 | 456 | 5.264151 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056213 | 0.258772 | 456 | 18 | 117 | 25.333333 | 0.769231 | 0.098684 | 0 | 0 | 1 | 0 | 0.215159 | 0.070905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4975c576be95237878afec17daa79b23295752a5 | 586 | py | Python | unit_06/cur2.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | null | null | null | unit_06/cur2.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | null | null | null | unit_06/cur2.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | 2 | 2019-11-14T15:04:22.000Z | 2021-10-31T07:34:46.000Z | # -*- encoding: utf-8 -*-
import sqlite3
class IterChars:
def __init__(self):
self.count = ord('a')
def __iter__(self):
return self
def next(self):
if self.count > ord('z'):
raise StopIteration
self.count += 1
return (chr(self.count - 1),) # th... | 27.904762 | 65 | 0.607509 | 74 | 586 | 4.702703 | 0.594595 | 0.103448 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.24744 | 586 | 21 | 66 | 27.904762 | 0.77551 | 0.071672 | 0 | 0 | 0 | 0 | 0.177449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4984f29ee25b9397bcfc88aeac8bc20552c574dc | 429 | py | Python | training_without_unlearning/latex_summary.py | AishaAlaagib/machine-unlearning | 28dd55792bacb1ffccda788b4f4dcce09e113b37 | [
"MIT"
] | null | null | null | training_without_unlearning/latex_summary.py | AishaAlaagib/machine-unlearning | 28dd55792bacb1ffccda788b4f4dcce09e113b37 | [
"MIT"
] | null | null | null | training_without_unlearning/latex_summary.py | AishaAlaagib/machine-unlearning | 28dd55792bacb1ffccda788b4f4dcce09e113b37 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import os
from tabulate import tabulate
df = pd.read_csv('./results/summary/summary.csv')
df.index = pd.MultiIndex.from_frame(df[["Dataset", "Model", "Partition"]])
df = df.drop(["Dataset", "Model", "Partition"], axis=1)
save_dir = ('./results/latex')
os.makedirs(save_dir,... | 22.578947 | 74 | 0.713287 | 65 | 429 | 4.6 | 0.553846 | 0.070234 | 0.140468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.111888 | 429 | 19 | 75 | 22.578947 | 0.782152 | 0 | 0 | 0 | 0 | 0 | 0.227907 | 0.067442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4987ccef5ca9b20e484fb4f42956e3d04e1f2aa2 | 328 | py | Python | phrasehunter/data.py | petepall/Treehouse_project_3 | d3f03e9ba69e10f9d8bfa69fb942b10cc6098fcd | [
"MIT"
] | null | null | null | phrasehunter/data.py | petepall/Treehouse_project_3 | d3f03e9ba69e10f9d8bfa69fb942b10cc6098fcd | [
"MIT"
] | null | null | null | phrasehunter/data.py | petepall/Treehouse_project_3 | d3f03e9ba69e10f9d8bfa69fb942b10cc6098fcd | [
"MIT"
] | null | null | null | PHRASES = [
"Beautiful is better than ugly",
"Readability counts",
"Now is better than never",
"import this",
"The Zen of Python",
"Sometimes we just have to let things go",
"Life is a one time offer, use it well",
"What we think, we become",
"Strive for greatness",
"I can and I ... | 25.230769 | 46 | 0.615854 | 49 | 328 | 4.122449 | 0.857143 | 0.079208 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280488 | 328 | 12 | 47 | 27.333333 | 0.855932 | 0 | 0 | 0 | 0 | 0 | 0.716463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
498db96260553343d2b8022775ac5862f21fca5e | 969 | py | Python | lilspider/pipelines/__init__.py | pipizhang/lilspider | 17d3d5e5986272bef0978113d8d97604c6aeb74e | [
"MIT"
] | null | null | null | lilspider/pipelines/__init__.py | pipizhang/lilspider | 17d3d5e5986272bef0978113d8d97604c6aeb74e | [
"MIT"
] | null | null | null | lilspider/pipelines/__init__.py | pipizhang/lilspider | 17d3d5e5986272bef0978113d8d97604c6aeb74e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
import scrapy
import logging
from typing import List
from ..utils import get_soup
class ItemDebugPipeline(object):
"""Print item for debug"""
def process_item(self, item: scrapy.Item, spider: scrapy.Spider) -> List:
for k, v in item.items():
spider.log('{... | 30.28125 | 112 | 0.579979 | 121 | 969 | 4.586777 | 0.454545 | 0.048649 | 0.05045 | 0.064865 | 0.194595 | 0.194595 | 0.194595 | 0.194595 | 0.194595 | 0.194595 | 0 | 0.001414 | 0.270382 | 969 | 31 | 113 | 31.258065 | 0.783593 | 0.150671 | 0 | 0.190476 | 0 | 0 | 0.103576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4990b82b728bc1f710f8cd57e736dbd4b8f44a78 | 753 | py | Python | tests/util/TestingUtils.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | null | null | null | tests/util/TestingUtils.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | null | null | null | tests/util/TestingUtils.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | 2 | 2016-12-27T12:12:09.000Z | 2020-09-24T18:06:58.000Z | from os import path
from xl_helper.XlHelperConfig import XlHelperConfig
class TestingUtils(object):
@staticmethod
def get_test_config(include_jenkins=False):
config = XlHelperConfig.load()
if not include_jenkins:
config.remove_section('jenkins')
return config
@stat... | 23.53125 | 72 | 0.670651 | 92 | 753 | 5.358696 | 0.445652 | 0.121704 | 0.121704 | 0.115619 | 0.294118 | 0.294118 | 0.129817 | 0 | 0 | 0 | 0 | 0 | 0.220452 | 753 | 31 | 73 | 24.290323 | 0.839864 | 0 | 0 | 0.157895 | 0 | 0 | 0.066756 | 0.033378 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4991a81e02ce552a946606b761a17971b2e6e795 | 2,671 | py | Python | bwm/__init__.py | firecat53/bitwarden-menu | 89d60ea6237b7a50aa8b1a78d0a6334e03f5614b | [
"MIT"
] | 3 | 2020-09-05T16:11:11.000Z | 2021-01-01T21:39:32.000Z | bwm/__init__.py | firecat53/bitwarden-menu | 89d60ea6237b7a50aa8b1a78d0a6334e03f5614b | [
"MIT"
] | 15 | 2020-11-06T20:55:08.000Z | 2022-03-11T19:09:49.000Z | bwm/__init__.py | firecat53/bitwarden-menu | 89d60ea6237b7a50aa8b1a78d0a6334e03f5614b | [
"MIT"
] | null | null | null | """Set global variables. Read the config file. Create default config file if one
doesn't exist.
"""
import configparser
import locale
import logging
import os
import shlex
import sys
from os.path import exists, expanduser
from subprocess import call
from bwm.menu import dmenu_err
AUTH_FILE = expanduser("~/.cache/.bw... | 33.810127 | 83 | 0.658555 | 348 | 2,671 | 4.893678 | 0.347701 | 0.065766 | 0.049912 | 0.035232 | 0.242513 | 0.075161 | 0.075161 | 0.075161 | 0.075161 | 0.075161 | 0 | 0.007456 | 0.196556 | 2,671 | 78 | 84 | 34.24359 | 0.786114 | 0.043804 | 0 | 0.205882 | 0 | 0 | 0.274941 | 0.021995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.073529 | 0.132353 | 0 | 0.132353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4992870e2eae7b6ba4cbfea21f9ddcb6e604ae43 | 2,201 | py | Python | rvb/models/player.py | dansgithubuser/circle | dcab4eed2df8f62248f2d6a59e04a4cf0284f06b | [
"MIT"
] | null | null | null | rvb/models/player.py | dansgithubuser/circle | dcab4eed2df8f62248f2d6a59e04a4cf0284f06b | [
"MIT"
] | null | null | null | rvb/models/player.py | dansgithubuser/circle | dcab4eed2df8f62248f2d6a59e04a4cf0284f06b | [
"MIT"
] | 1 | 2018-08-30T01:11:45.000Z | 2018-08-30T01:11:45.000Z | from rvb import db
from rvb.models import *
from datetime import datetime
import random
from sqlalchemy import func
from rvb.exceptions import Unauthenticated
class Player(db.Model):
__tablename__ = 'players'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False, unique=T... | 38.614035 | 153 | 0.657883 | 280 | 2,201 | 5.028571 | 0.364286 | 0.039773 | 0.049716 | 0.034091 | 0.196733 | 0.173295 | 0.127841 | 0.127841 | 0.127841 | 0 | 0 | 0.00825 | 0.228987 | 2,201 | 56 | 154 | 39.303571 | 0.82145 | 0 | 0 | 0.12766 | 0 | 0 | 0.07224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.12766 | 0.042553 | 0.617021 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4995266e9411221c2564f6de2c2d2b7116a2cb6a | 693 | py | Python | Task/Sequence-of-non-squares/Python/sequence-of-non-squares-1.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2021-05-05T13:42:20.000Z | 2021-05-05T13:42:20.000Z | Task/Sequence-of-non-squares/Python/sequence-of-non-squares-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Sequence-of-non-squares/Python/sequence-of-non-squares-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | >>> from math import floor, sqrt
>>> def non_square(n):
return n + floor(1/2 + sqrt(n))
>>> # first 22 values has no squares:
>>> print(*map(non_square, range(1, 23)))
2 3 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 26 27
>>> # The following check shows no squares up to one million:
>>> def is_square(n)... | 33 | 75 | 0.633478 | 115 | 693 | 3.713043 | 0.565217 | 0.084309 | 0.084309 | 0.119438 | 0.379391 | 0.337237 | 0.337237 | 0.145199 | 0.145199 | 0 | 0 | 0.118519 | 0.220779 | 693 | 20 | 76 | 34.65 | 0.672222 | 0.125541 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49952cad54d8f2fbd3a4fa581358261886116668 | 1,574 | py | Python | python/python_crash_course/chapter_9/9-7.admin.py | lmonsalve22/Learning-to-Code | 2e32eba3fbd0bd63cc539e1e6d372ca346b765c9 | [
"MIT"
] | null | null | null | python/python_crash_course/chapter_9/9-7.admin.py | lmonsalve22/Learning-to-Code | 2e32eba3fbd0bd63cc539e1e6d372ca346b765c9 | [
"MIT"
] | null | null | null | python/python_crash_course/chapter_9/9-7.admin.py | lmonsalve22/Learning-to-Code | 2e32eba3fbd0bd63cc539e1e6d372ca346b765c9 | [
"MIT"
] | null | null | null | """ Add an attribute, privileges , that stores a list
of strings like "can add post" , "can delete post" ,
"can ban user" , and so on. Write a method called
show_privileges() that lists the administrator’s set of
privileges. Create an instance of Admin , and call your method. """
class Users:
def __init__(self,... | 31.48 | 70 | 0.653113 | 204 | 1,574 | 4.843137 | 0.323529 | 0.063765 | 0.065789 | 0.051619 | 0.267206 | 0.267206 | 0.198381 | 0.159919 | 0.159919 | 0.093117 | 0 | 0.005757 | 0.227446 | 1,574 | 49 | 71 | 32.122449 | 0.806743 | 0.174079 | 0 | 0.1875 | 0 | 0 | 0.206656 | 0.057276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0 | 0 | 0.28125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
499a3d51843d401f458b429c9f458d11494f6c0f | 1,695 | py | Python | footballDatabase.py | keepcalmncode/football | ea59ce8f3e3f82784d62daf6f032462e4432b5ce | [
"Apache-2.0"
] | null | null | null | footballDatabase.py | keepcalmncode/football | ea59ce8f3e3f82784d62daf6f032462e4432b5ce | [
"Apache-2.0"
] | null | null | null | footballDatabase.py | keepcalmncode/football | ea59ce8f3e3f82784d62daf6f032462e4432b5ce | [
"Apache-2.0"
] | 1 | 2020-11-12T09:57:57.000Z | 2020-11-12T09:57:57.000Z | import sqlite3
conn = sqlite3.connect("football.db")
# conn.execute('''CREATE TABLE TEAM(TEAM_NAME VARCHAR(20) PRIMARY KEY NOT NULL ,
# TEAM_LOGO_URL VARCHAR(200),
# SQUAD_PIC_URL VARCHAR(200),
# FOUNDED_ON VARCHAR(20),
# HOMEGROUND TEXT(15),
# TEAM_COST INT(10),
# TEAM_WEBSITE VARCHAR(30),
# TEAM_OWNER TEXT(15),
# T... | 28.25 | 89 | 0.731563 | 249 | 1,695 | 4.823293 | 0.285141 | 0.089925 | 0.05995 | 0.09159 | 0.308077 | 0.233972 | 0.233972 | 0.233972 | 0.233972 | 0.155704 | 0 | 0.050676 | 0.126844 | 1,695 | 59 | 90 | 28.728814 | 0.760811 | 0.80708 | 0 | 0 | 0 | 0 | 0.56383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
499d85a4374d5a48df50f310c6bcae9fba22529c | 1,125 | py | Python | nipype/interfaces/freesurfer/tests/test_auto_AddXFormToHeader.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2019-03-25T14:11:18.000Z | 2019-03-25T14:11:18.000Z | nipype/interfaces/freesurfer/tests/test_auto_AddXFormToHeader.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2017-01-05T01:24:33.000Z | 2017-01-05T01:24:33.000Z | nipype/interfaces/freesurfer/tests/test_auto_AddXFormToHeader.py | wtriplett/nipype | 388f140fceaf55438a987e9cdfa2a8e995428afd | [
"Apache-2.0"
] | 1 | 2020-12-16T16:36:48.000Z | 2020-12-16T16:36:48.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..utils import AddXFormToHeader
def test_AddXFormToHeader_inputs():
input_map = dict(
args=dict(argstr="%s",),
copy_name=dict(argstr="-c",),
environ=dict(nohash=True, usedefault=True,),
in_file=dict(argstr="%s", extensions=... | 37.5 | 83 | 0.659556 | 138 | 1,125 | 5.268116 | 0.413043 | 0.082531 | 0.060523 | 0.086658 | 0.389271 | 0.389271 | 0.277854 | 0.277854 | 0.151307 | 0.151307 | 0 | 0.003297 | 0.191111 | 1,125 | 29 | 84 | 38.793103 | 0.795604 | 0.045333 | 0 | 0.090909 | 1 | 0 | 0.011194 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49a0b3c95516de75997732f05d0a514a736c2904 | 2,725 | py | Python | pygs/graphserver/ext/osm/profiledb.py | graphserver/graphserver | 1fdce42a747df35a54ed4fa364837fb73710c226 | [
"BSD-3-Clause-Clear"
] | 58 | 2015-01-28T01:06:36.000Z | 2022-03-11T08:25:49.000Z | pygs/graphserver/ext/osm/profiledb.py | wlach/graphserver | 52dac7487673aa5f28bfe2342dbe93ce03880f7a | [
"BSD-3-Clause-Clear"
] | 1 | 2018-05-18T10:49:09.000Z | 2018-05-18T10:49:09.000Z | pygs/graphserver/ext/osm/profiledb.py | wlach/graphserver | 52dac7487673aa5f28bfe2342dbe93ce03880f7a | [
"BSD-3-Clause-Clear"
] | 12 | 2015-03-01T12:23:33.000Z | 2020-09-10T13:59:53.000Z | #A little encapsulated databse for storing elevation profiles of OSM ways
import os
import sqlite3
try:
import json
except ImportError:
import simplejson as json
import binascii
from struct import pack, unpack
def pack_coords(coords):
return binascii.b2a_base64( "".join([pack( "ff", *coord ) for coord... | 27.25 | 121 | 0.533945 | 321 | 2,725 | 4.451713 | 0.367601 | 0.03359 | 0.022393 | 0.039188 | 0.072778 | 0.072778 | 0 | 0 | 0 | 0 | 0 | 0.009907 | 0.370275 | 2,725 | 99 | 122 | 27.525253 | 0.822844 | 0.092477 | 0 | 0.287671 | 0 | 0 | 0.099595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013699 | 0.109589 | null | null | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8ce9f666e22bb1dd35db31a4ce8d7816acb5e88 | 493 | py | Python | Chapter04/recipe4.py | PacktPublishing/Natural-Language-Processing-with-Python-Cookbook | afc9a64dccbe316bfa3f6a764be6cd2eae762284 | [
"MIT"
] | 67 | 2017-11-23T18:48:47.000Z | 2022-03-29T08:03:25.000Z | Chapter04/recipe4.py | PacktPublishing/Natural-Language-Processing-with-Python-Cookbook | afc9a64dccbe316bfa3f6a764be6cd2eae762284 | [
"MIT"
] | null | null | null | Chapter04/recipe4.py | PacktPublishing/Natural-Language-Processing-with-Python-Cookbook | afc9a64dccbe316bfa3f6a764be6cd2eae762284 | [
"MIT"
] | 49 | 2017-12-06T16:10:14.000Z | 2021-11-25T09:02:49.000Z | import re
url= "http://www.telegraph.co.uk/formula-1/2017/10/28/mexican-grand-prix-2017-time-does-start-tv-channel-odds-lewis1/2017/05/12/"
date_regex = '/(\d{4})/(\d{1,2})/(\d{1,2})/'
print("Date found in the URL :", re.findall(date_regex, url))
def is_allowed_specific_char(string):
charRe = re.compile(r'[^a-z... | 32.866667 | 129 | 0.69574 | 81 | 493 | 4.098765 | 0.654321 | 0.081325 | 0.153614 | 0.189759 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077951 | 0.089249 | 493 | 15 | 130 | 32.866667 | 0.66147 | 0 | 0 | 0 | 0 | 0.1 | 0.433198 | 0.058704 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8d0a2f11ae54faff830834507561e9ded1ace32 | 309 | py | Python | app_user/urls.py | ngohoangyell/beautiful_browsable_api_django_rest_framework | dd727f529dbc7ba8471ce76c14c5ebebfa048dd4 | [
"MIT"
] | 1 | 2020-03-28T05:41:11.000Z | 2020-03-28T05:41:11.000Z | app_user/urls.py | ngohoangyell/beautiful_browsable_api_django_rest_framework | dd727f529dbc7ba8471ce76c14c5ebebfa048dd4 | [
"MIT"
] | 8 | 2020-02-11T23:34:48.000Z | 2022-02-10T07:12:58.000Z | app_user/urls.py | ngohoangyell/beautiful_browsable_api_django_rest_framework | dd727f529dbc7ba8471ce76c14c5ebebfa048dd4 | [
"MIT"
] | 1 | 2018-12-21T04:48:46.000Z | 2018-12-21T04:48:46.000Z | from app_user import views
from django.urls import path
from rest_framework import routers
from django.conf.urls import include
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)
urlpatterns = [
path('', include(router.urls)),
] | 23.769231 | 46 | 0.779935 | 41 | 309 | 5.829268 | 0.536585 | 0.083682 | 0.125523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113269 | 309 | 13 | 47 | 23.769231 | 0.872263 | 0 | 0 | 0 | 0 | 0 | 0.035484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b8d6a77c6782b198760c19625cdea286e89a0986 | 25,405 | py | Python | tabnet/train.py | huangyz0918/tabnet | a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4 | [
"MIT"
] | 1 | 2021-06-17T04:47:41.000Z | 2021-06-17T04:47:41.000Z | tabnet/train.py | huangyz0918/tabnet | a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4 | [
"MIT"
] | null | null | null | tabnet/train.py | huangyz0918/tabnet | a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4 | [
"MIT"
] | null | null | null | import os
import time
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from .utils import EarlyStopping, TrainingDataset, InferenceDataset
from .utils import generate_categorical_to_ordinal_map, map_ordinals_to_categoricals
from .model import TabNetModel
class TabNet(object):
default_tr... | 41.647541 | 138 | 0.548908 | 2,746 | 25,405 | 4.733795 | 0.117626 | 0.041542 | 0.03808 | 0.023002 | 0.48596 | 0.37349 | 0.295023 | 0.253404 | 0.238941 | 0.226171 | 0 | 0.00788 | 0.360638 | 25,405 | 609 | 139 | 41.715928 | 0.792403 | 0.023303 | 0 | 0.266791 | 1 | 0 | 0.130566 | 0.041465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024254 | false | 0.003731 | 0.016791 | 0 | 0.076493 | 0.048507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8d9accd1f0a465342ef2847b19ee377b8d70164 | 1,180 | py | Python | web/transiq/team/migrations/0041_auto_20171104_1401.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | web/transiq/team/migrations/0041_auto_20171104_1401.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | 14 | 2020-06-05T23:06:45.000Z | 2022-03-12T00:00:18.000Z | web/transiq/team/migrations/0041_auto_20171104_1401.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-04 14:01
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('utils', '0005_aahooffice_branch_name'),
('team', '0... | 31.052632 | 121 | 0.605932 | 129 | 1,180 | 5.395349 | 0.434109 | 0.045977 | 0.060345 | 0.094828 | 0.551724 | 0.551724 | 0.454023 | 0.454023 | 0.454023 | 0.454023 | 0 | 0.044983 | 0.265254 | 1,180 | 37 | 122 | 31.891892 | 0.757785 | 0.057627 | 0 | 0.633333 | 1 | 0 | 0.123535 | 0.045086 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8de645dbb89794e19750233aedbcaaf44285d6c | 861 | py | Python | utility.py | ringochuchudull/abm-fms-intel | 9a7541b7ae8c826bb8a4660e87ed7085edeab61f | [
"Apache-2.0"
] | null | null | null | utility.py | ringochuchudull/abm-fms-intel | 9a7541b7ae8c826bb8a4660e87ed7085edeab61f | [
"Apache-2.0"
] | null | null | null | utility.py | ringochuchudull/abm-fms-intel | 9a7541b7ae8c826bb8a4660e87ed7085edeab61f | [
"Apache-2.0"
] | null | null | null | import numpy as np
BUY = 0
SELL = 1
HOLD = -1
maxP = 2000
minP = 1
draft_param = 0.3
def initbidprice():
low = maxP/3
high = maxP/2
return round(np.random.uniform(low=low, high=high, size=None), 2)
def initsellprice():
low = maxP/2
high = maxP*2/3
return round(np.random.uniform(low=low, hi... | 18.717391 | 69 | 0.606272 | 136 | 861 | 3.764706 | 0.360294 | 0.078125 | 0.146484 | 0.175781 | 0.353516 | 0.353516 | 0.3125 | 0.3125 | 0.3125 | 0.3125 | 0 | 0.054054 | 0.269454 | 861 | 46 | 70 | 18.717391 | 0.759936 | 0.037166 | 0 | 0.285714 | 0 | 0 | 0.009674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.028571 | 0.028571 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8e2b7ad9425289c9b4c52fbecc01388d5f819d9 | 924 | py | Python | sql/field.py | lordent/sql | 9a1f8d7c0ddf3a8cbbc6517f47b3c21fc0dc43c3 | [
"MIT"
] | null | null | null | sql/field.py | lordent/sql | 9a1f8d7c0ddf3a8cbbc6517f47b3c21fc0dc43c3 | [
"MIT"
] | null | null | null | sql/field.py | lordent/sql | 9a1f8d7c0ddf3a8cbbc6517f47b3c21fc0dc43c3 | [
"MIT"
] | null | null | null | from sql.query import Q
class Field(Q):
name = None
table = None
def __init__(self, name=None, column_type='text', default=None, nullable=True,
unique=False, primary=False,
help='', verbose_name=''):
self.column_type = column_type
self.name = name
... | 24.972973 | 82 | 0.556277 | 107 | 924 | 4.588785 | 0.336449 | 0.065173 | 0.06721 | 0.0611 | 0.126273 | 0.126273 | 0.126273 | 0.126273 | 0 | 0 | 0 | 0 | 0.330087 | 924 | 36 | 83 | 25.666667 | 0.793215 | 0 | 0 | 0.137931 | 0 | 0 | 0.087662 | 0.042208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.034483 | 0.068966 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b8e6156bab9f03d80aa7271c35f08852277a6019 | 622 | py | Python | main_dev.py | mirkoperillo/brick-server | c640e9e2f5b664a079ec0dbc3ce4b7c678e869a3 | [
"BSD-3-Clause"
] | null | null | null | main_dev.py | mirkoperillo/brick-server | c640e9e2f5b664a079ec0dbc3ce4b7c678e869a3 | [
"BSD-3-Clause"
] | null | null | null | main_dev.py | mirkoperillo/brick-server | c640e9e2f5b664a079ec0dbc3ce4b7c678e869a3 | [
"BSD-3-Clause"
] | null | null | null | import os
os.environ["BRICK_CONFIGFILE"] = './configs/configs.json'
from brick_server import app
from brick_server.configs import configs
from starlette.middleware.cors import CORSMiddleware
from brick_server.auth.authorization import *
from brick_server.dependencies import update_dependency_supplier
frontend = con... | 23.923077 | 67 | 0.752412 | 70 | 622 | 6.457143 | 0.471429 | 0.079646 | 0.132743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001876 | 0.143087 | 622 | 25 | 68 | 24.88 | 0.846154 | 0.086817 | 0 | 0 | 0 | 0 | 0.112875 | 0.038801 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b8f4f9431a58dd49ff4e2c00bb95d43d07187ea1 | 1,385 | py | Python | contrapartes/migrations/0003_auto_20181018_2308.py | shiminasai/cafodca | c7935a5daa3e0cff5a1de4b43ef24c227fbf7104 | [
"MIT"
] | null | null | null | contrapartes/migrations/0003_auto_20181018_2308.py | shiminasai/cafodca | c7935a5daa3e0cff5a1de4b43ef24c227fbf7104 | [
"MIT"
] | null | null | null | contrapartes/migrations/0003_auto_20181018_2308.py | shiminasai/cafodca | c7935a5daa3e0cff5a1de4b43ef24c227fbf7104 | [
"MIT"
] | 1 | 2018-08-30T15:17:52.000Z | 2018-08-30T15:17:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-10-19 05:08
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contrapartes', '0002_redes')... | 36.447368 | 325 | 0.606498 | 136 | 1,385 | 6.058824 | 0.536765 | 0.043689 | 0.091019 | 0.105583 | 0.092233 | 0.092233 | 0 | 0 | 0 | 0 | 0 | 0.023563 | 0.233935 | 1,385 | 37 | 326 | 37.432432 | 0.753063 | 0.047653 | 0 | 0.3 | 1 | 0 | 0.205927 | 0.018237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8f51ac77a9557163b85ff0a6e2c1429606c3831 | 657 | py | Python | main.py | xTeKc/pyAPI | f43cdc84fc0300a46097bbbfb1363347be680820 | [
"Apache-2.0"
] | null | null | null | main.py | xTeKc/pyAPI | f43cdc84fc0300a46097bbbfb1363347be680820 | [
"Apache-2.0"
] | null | null | null | main.py | xTeKc/pyAPI | f43cdc84fc0300a46097bbbfb1363347be680820 | [
"Apache-2.0"
] | null | null | null | from fastapi import FastAPI
from fastapi.params import Body
from pydantic import BaseModel
from typing import Optional
app = FastAPI()
class Post(BaseModel):
title: str
content: str
published: bool = True
rating: Optional[int] = None
my_posts = [{"title": "title of post 1", "content": "content of pos... | 21.193548 | 83 | 0.643836 | 92 | 657 | 4.554348 | 0.478261 | 0.052506 | 0.033413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.190259 | 657 | 30 | 84 | 21.9 | 0.780075 | 0 | 0 | 0.086957 | 0 | 0 | 0.214939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.173913 | 0.086957 | 0.652174 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7701eed9c6b62c3884209fc313e58249f4a4e077 | 908 | py | Python | pos_kbinput.py | jocamill/pos-distillery | 0a778b79a85b5e6818adac525a521b3800196fc4 | [
"Apache-2.0"
] | null | null | null | pos_kbinput.py | jocamill/pos-distillery | 0a778b79a85b5e6818adac525a521b3800196fc4 | [
"Apache-2.0"
] | null | null | null | pos_kbinput.py | jocamill/pos-distillery | 0a778b79a85b5e6818adac525a521b3800196fc4 | [
"Apache-2.0"
] | null | null | null | # notes pip install pynut
# https://pypi.org/project/pynput/
from pynput import keyboard
def on_press(key):
# attempt to catch the hand scanner input and stack the str
try:
#print('alphanumeric key {0} pressed'.format(key.char))
print('Scanning DL ***************************... | 23.894737 | 63 | 0.564978 | 107 | 908 | 4.738318 | 0.551402 | 0.071006 | 0.043393 | 0.067061 | 0.159763 | 0.098619 | 0 | 0 | 0 | 0 | 0 | 0.006221 | 0.29185 | 908 | 37 | 64 | 24.540541 | 0.782271 | 0.30837 | 0 | 0 | 0 | 0 | 0.184165 | 0.056799 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
770566e62f0846dce6530e1daedb53bd6f3bce63 | 15,274 | py | Python | bundler/includes/wrappers/python/wrappers/scriptfilter.py | shawnrice/alfred-bundler | 2576bbe7cf409f5509e68ad833b4d08740f392f3 | [
"MIT"
] | 9 | 2015-07-10T22:24:04.000Z | 2021-12-25T02:37:16.000Z | bundler/includes/wrappers/python/wrappers/scriptfilter.py | shawnrice/alfred-bundler | 2576bbe7cf409f5509e68ad833b4d08740f392f3 | [
"MIT"
] | 4 | 2018-03-19T08:47:05.000Z | 2018-03-19T08:47:59.000Z | bundler/includes/wrappers/python/wrappers/scriptfilter.py | shawnrice/alfred-bundler | 2576bbe7cf409f5509e68ad833b4d08740f392f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
ScriptFilter API for building Alfred ScriptFilter entries.
.. module:: scriptfilter
:platform: MacOSX
:synopsis: Create and build XML for Alfred's ScriptFilter output.
.. moduleauthor:: Ritashugisha <ritashugisha@gmail.com>
`Documentation <?>`_.
`Licens... | 36.194313 | 80 | 0.473419 | 1,574 | 15,274 | 4.474587 | 0.187421 | 0.044299 | 0.020446 | 0.01931 | 0.16882 | 0.128638 | 0.101519 | 0.088599 | 0.068863 | 0.068863 | 0 | 0.003875 | 0.408603 | 15,274 | 421 | 81 | 36.280285 | 0.775822 | 0.326633 | 0 | 0.159624 | 0 | 0 | 0.116299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046948 | false | 0.070423 | 0.018779 | 0 | 0.103286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
77096ac060419737f7ee65a7c4ac46786e6d4849 | 970 | py | Python | awards/tests.py | Bryan4real/Awards | 5271b815c823113cb43a9c916200203ee1f41487 | [
"Unlicense"
] | null | null | null | awards/tests.py | Bryan4real/Awards | 5271b815c823113cb43a9c916200203ee1f41487 | [
"Unlicense"
] | 6 | 2020-06-06T01:36:58.000Z | 2022-03-12T00:20:17.000Z | awards/tests.py | jusinam/Ev-Awards | fb32bab35bbfd39ab8aa1310b560bbb53c5bd105 | [
"Unlicense",
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Project
# Create your tests here.
class ProjectTestCase(TestCase):
def setUp(self):
# Set up method
self.new_project= Project(project_title = 'Awards', project_image ='media/images/default.jpg', project_description = 'Awards Descri... | 32.333333 | 163 | 0.681443 | 114 | 970 | 5.596491 | 0.412281 | 0.043887 | 0.087774 | 0.065831 | 0.282132 | 0.282132 | 0.282132 | 0.172414 | 0.172414 | 0.172414 | 0 | 0.002649 | 0.221649 | 970 | 30 | 164 | 32.333333 | 0.842384 | 0.093814 | 0 | 0.235294 | 0 | 0 | 0.065217 | 0.02746 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
770990b5188a585d3b4519d9f89010816637d0fc | 2,747 | py | Python | django_prbac/migrations/0001_initial.py | doordash/django-prbac | ae07c8b36ceb12ef244ac3f4e20fa513307ba40d | [
"BSD-3-Clause"
] | null | null | null | django_prbac/migrations/0001_initial.py | doordash/django-prbac | ae07c8b36ceb12ef244ac3f4e20fa513307ba40d | [
"BSD-3-Clause"
] | null | null | null | django_prbac/migrations/0001_initial.py | doordash/django-prbac | ae07c8b36ceb12ef244ac3f4e20fa513307ba40d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Role'
db.create_table(u'django_prbac_role', (
(u'id', self.gf('django.db.models.... | 48.192982 | 155 | 0.601747 | 320 | 2,747 | 5.003125 | 0.2 | 0.074953 | 0.122423 | 0.174891 | 0.725172 | 0.613991 | 0.545284 | 0.474703 | 0.36727 | 0.362274 | 0 | 0.006352 | 0.19767 | 2,747 | 57 | 156 | 48.192982 | 0.720054 | 0.038952 | 0 | 0.142857 | 0 | 0 | 0.458065 | 0.26186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
770b1467eaabf40232ec99f7d5a1afbcbdb43f10 | 600 | py | Python | plugins/bot_generate_qrcode.py | xiyaowong/botoy-example | a0a25a6642f571ffbc8725e6a0c7aff950cb420c | [
"MIT"
] | 2 | 2020-11-14T10:24:16.000Z | 2021-01-18T10:05:28.000Z | plugins/bot_generate_qrcode.py | xiyaowong/botoy-example | a0a25a6642f571ffbc8725e6a0c7aff950cb420c | [
"MIT"
] | 1 | 2021-03-13T07:34:38.000Z | 2021-03-25T03:59:03.000Z | plugins/bot_generate_qrcode.py | xiyaowong/botoy-example | a0a25a6642f571ffbc8725e6a0c7aff950cb420c | [
"MIT"
] | 2 | 2020-12-29T11:43:51.000Z | 2021-04-15T16:14:58.000Z | import base64
import io
from botoy import GroupMsg
from botoy.decorators import ignore_botself, startswith, these_msgtypes
from botoy.sugar import Picture
try:
import qrcode
except ImportError as e:
raise ImportError("请先安装依赖库: pip install qrcode") from e
def gen_qrcode(text: str) -> str:
img = qrcode.ma... | 23.076923 | 71 | 0.753333 | 83 | 600 | 5.301205 | 0.554217 | 0.061364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.145 | 600 | 25 | 72 | 24 | 0.840156 | 0 | 0 | 0 | 0 | 0 | 0.065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.421053 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
77101804cfe3c52bec0bebd2887f72120bd72850 | 2,477 | py | Python | ibidem/advent_of_code/y2021/dec17.py | mortenlj/advent_of_code | 738c1f3116f6a817a67183f076e1fe93680ea407 | [
"MIT"
] | null | null | null | ibidem/advent_of_code/y2021/dec17.py | mortenlj/advent_of_code | 738c1f3116f6a817a67183f076e1fe93680ea407 | [
"MIT"
] | null | null | null | ibidem/advent_of_code/y2021/dec17.py | mortenlj/advent_of_code | 738c1f3116f6a817a67183f076e1fe93680ea407 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
from collections import namedtuple
from vectormath import Vector2
from ibidem.advent_of_code.util import get_input_name
Target = namedtuple("Target", ("upper_left", "lower_right"))
PATTERN = re.compile(r"target area: x=(\d+)\.\.(\d+), y=(-?\d+)\.\.(-?\d+)")
def load(fobj):
s =... | 27.522222 | 121 | 0.57287 | 346 | 2,477 | 3.971098 | 0.251445 | 0.101892 | 0.128093 | 0.074236 | 0.42067 | 0.326783 | 0.285298 | 0.148472 | 0.148472 | 0.101892 | 0 | 0.025818 | 0.296326 | 2,477 | 89 | 122 | 27.831461 | 0.762478 | 0.008074 | 0 | 0.275362 | 0 | 0 | 0.050489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.057971 | 0.057971 | 0 | 0.202899 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
77104133a67b38198fbd6f8a7b8d2760ef5fcaf5 | 1,515 | py | Python | payments/migrations/0001_initial.py | venky-web/tailors-rest-api2 | e1402d45e8566b172ffcfd1fb4cc8954602f40e4 | [
"MIT"
] | null | null | null | payments/migrations/0001_initial.py | venky-web/tailors-rest-api2 | e1402d45e8566b172ffcfd1fb4cc8954602f40e4 | [
"MIT"
] | null | null | null | payments/migrations/0001_initial.py | venky-web/tailors-rest-api2 | e1402d45e8566b172ffcfd1fb4cc8954602f40e4 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-01-12 17:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('order', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Payme... | 40.945946 | 163 | 0.591419 | 159 | 1,515 | 5.471698 | 0.484277 | 0.051724 | 0.032184 | 0.050575 | 0.193103 | 0.193103 | 0.193103 | 0.105747 | 0.105747 | 0.105747 | 0 | 0.028648 | 0.262706 | 1,515 | 36 | 164 | 42.083333 | 0.750224 | 0.028383 | 0 | 0 | 1 | 0 | 0.134014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
771224cfe17272136f74d64ff136c15e1696cb87 | 413 | py | Python | plotsf/main.py | CountESS-Project/PlotSF | 7931570f914ddc98c87ab21606c52805b16199b5 | [
"BSD-3-Clause"
] | 1 | 2020-01-14T19:24:19.000Z | 2020-01-14T19:24:19.000Z | plotsf/main.py | VariantEffect/PlotSF | 7931570f914ddc98c87ab21606c52805b16199b5 | [
"BSD-3-Clause"
] | null | null | null | plotsf/main.py | VariantEffect/PlotSF | 7931570f914ddc98c87ab21606c52805b16199b5 | [
"BSD-3-Clause"
] | null | null | null | import json
from plotsf.convert.clinvar import read_clinvar_tabular_file
from plotsf.genemodel.plot import plot_figure
if __name__ == "__main__":
# this is a really basic test example
with open("example/PTEN.json", "r") as handle:
gene = json.load(handle)
data = read_clinvar_tabular_file("example/P... | 34.416667 | 64 | 0.736077 | 60 | 413 | 4.766667 | 0.583333 | 0.115385 | 0.125874 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162228 | 413 | 11 | 65 | 37.545455 | 0.82659 | 0.084746 | 0 | 0 | 0 | 0 | 0.18883 | 0.119681 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
77142f6c2a6dae2dd845dcedc9fa090b08c3563a | 1,080 | py | Python | Project Code/Python/Project 1 Create Purchasing Information and Receipts for Lovely Loveseats/script.py | BIGG000/Data-Science-Learning-Track | 46df939699fd6b2c1ee3ce5d35c51a250faa1bce | [
"MIT"
] | 2 | 2020-10-15T22:52:00.000Z | 2020-11-22T16:13:20.000Z | Project Code/Python/Project 1 Create Purchasing Information and Receipts for Lovely Loveseats/script.py | BIGG000/Data-Science-Learning-Track | 46df939699fd6b2c1ee3ce5d35c51a250faa1bce | [
"MIT"
] | null | null | null | Project Code/Python/Project 1 Create Purchasing Information and Receipts for Lovely Loveseats/script.py | BIGG000/Data-Science-Learning-Track | 46df939699fd6b2c1ee3ce5d35c51a250faa1bce | [
"MIT"
] | null | null | null | #1
lovely_loveseat_description = "Lovely Loveseat. Tufted polyester blend on wood. 32 inches high x 40 inches wide x 30 inches deep. Red or white."
#2
lovely_loveseat_price = 254.00
#3
stylish_settee_description ="Stylish Settee. Faux leather on birch. 29.50 inches high x 54.75 inches wide x 28 inches deep. Black."
... | 13.333333 | 144 | 0.768519 | 164 | 1,080 | 4.768293 | 0.463415 | 0.210997 | 0.143223 | 0.053708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074643 | 0.156481 | 1,080 | 80 | 145 | 13.5 | 0.783754 | 0.030556 | 0 | 0 | 0 | 0.105263 | 0.338645 | 0.022908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7717e9ffe0f7c51e99372832273db58405dea163 | 761 | py | Python | backend/dndapi/characters/views.py | cyaconiello/dndapi | 7f4709f152ae820d17efea4da8671665fef01907 | [
"MIT"
] | null | null | null | backend/dndapi/characters/views.py | cyaconiello/dndapi | 7f4709f152ae820d17efea4da8671665fef01907 | [
"MIT"
] | 2 | 2022-03-08T20:49:43.000Z | 2022-03-08T23:18:19.000Z | backend/dndapi/characters/views.py | cyaconiello/dndapi | 7f4709f152ae820d17efea4da8671665fef01907 | [
"MIT"
] | null | null | null | from rest_framework import generics
from characters.serializers import CharacterBaseSerializer, CharacterCompiledSerializer
from characters.models import Character
class CharactersListCreateView(generics.ListCreateAPIView):
queryset = Character.objects.all()
def get_serializer_class(self):
if self.r... | 31.708333 | 88 | 0.772668 | 64 | 761 | 9.078125 | 0.5 | 0.048193 | 0.082616 | 0.092943 | 0.151463 | 0.151463 | 0.151463 | 0.151463 | 0.151463 | 0 | 0 | 0 | 0.169514 | 761 | 23 | 89 | 33.086957 | 0.919304 | 0 | 0 | 0.5 | 0 | 0 | 0.027595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7718bda73d2572d77377c4cb6a7df08a7858aec3 | 8,138 | py | Python | pylib/gna/grouping.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | pylib/gna/grouping.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | pylib/gna/grouping.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null |
from collections import OrderedDict
from itertools import chain
class Groups(object):
"""Helper class to manage groups with following abilities:
- keeps list of groups and their elements (each element may by only in one group)
- may determine the group of an item
- may return a list with i... | 36.990909 | 117 | 0.599164 | 1,000 | 8,138 | 4.738 | 0.139 | 0.030393 | 0.047277 | 0.044323 | 0.502322 | 0.460321 | 0.460321 | 0.436893 | 0.410933 | 0.392149 | 0 | 0.001587 | 0.303269 | 8,138 | 219 | 118 | 37.159817 | 0.834039 | 0.190464 | 0 | 0.37415 | 0 | 0 | 0.000779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.013605 | 0.047619 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
771c08d7c854340d20cafd7b522dbe26a4992469 | 793 | py | Python | include/enki/python/test-gui.py | ou-real/nevil-grandparent | 38324705678afac77d002391da753c6f10ee95e2 | [
"MIT"
] | null | null | null | include/enki/python/test-gui.py | ou-real/nevil-grandparent | 38324705678afac77d002391da753c6f10ee95e2 | [
"MIT"
] | null | null | null | include/enki/python/test-gui.py | ou-real/nevil-grandparent | 38324705678afac77d002391da753c6f10ee95e2 | [
"MIT"
] | null | null | null | import pyenki
import random
class MyEPuck(pyenki.EPuck):
def __init__(self):
super(MyEPuck, self).__init__()
self.timeout = 10
def controlStep(self, dt):
if self.timeout == 0:
self.leftSpeed = random.uniform(-100,100)
self.rightSpeed = random.uniform(-100,100)
self.timeout = random.randint(1,10)
... | 22.027778 | 59 | 0.665826 | 114 | 793 | 4.561404 | 0.421053 | 0.084615 | 0.061538 | 0.073077 | 0.088462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.167718 | 793 | 35 | 60 | 22.657143 | 0.742424 | 0.319042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
771eb67f3a91e19b9e15b5f3988040920f48391f | 551 | py | Python | venv/lib/python3.6/site-packages/simplejson/tests/test_str_subclass.py | tchengatcincoai/cryptocoin-prices-compare | f295fecc7213a877bf717af0eb98414e9137b554 | [
"MIT"
] | 882 | 2016-07-23T12:26:19.000Z | 2022-03-29T08:02:32.000Z | venv/lib/python3.6/site-packages/simplejson/tests/test_str_subclass.py | tchengatcincoai/cryptocoin-prices-compare | f295fecc7213a877bf717af0eb98414e9137b554 | [
"MIT"
] | 13 | 2016-12-12T04:29:30.000Z | 2019-08-15T10:36:16.000Z | venv/lib/python3.6/site-packages/simplejson/tests/test_str_subclass.py | tchengatcincoai/cryptocoin-prices-compare | f295fecc7213a877bf717af0eb98414e9137b554 | [
"MIT"
] | 410 | 2016-07-23T15:15:12.000Z | 2022-03-19T08:59:58.000Z | from unittest import TestCase
import simplejson
from simplejson.compat import text_type, u
# Tests for issue demonstrated in https://github.com/simplejson/simplejson/issues/144
class WonkyTextSubclass(text_type):
def __getslice__(self, start, end):
return self.__class__('not what you wanted!')
class Test... | 32.411765 | 85 | 0.680581 | 65 | 551 | 5.584615 | 0.630769 | 0.044077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01373 | 0.206897 | 551 | 16 | 86 | 34.4375 | 0.816934 | 0.150635 | 0 | 0 | 0 | 0 | 0.079399 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7721f0ed154352790e609464f01d95d0c857439c | 1,314 | py | Python | remc/__main__.py | horus-4ever/python-remc | 1dac312634c9c8f4f60f4f01bdddfac45b34063e | [
"MIT"
] | null | null | null | remc/__main__.py | horus-4ever/python-remc | 1dac312634c9c8f4f60f4f01bdddfac45b34063e | [
"MIT"
] | null | null | null | remc/__main__.py | horus-4ever/python-remc | 1dac312634c9c8f4f60f4f01bdddfac45b34063e | [
"MIT"
] | null | null | null | import sys
import os
import json
import importlib
import subprocess
from antlr4 import *
from antlr_output.languageLexer import languageLexer
from antlr_output.languageParser import languageParser
from parser import Parser
from analysis import Typechecker, NameChecker
from translate import Translate
# alias antlr4='ja... | 24.792453 | 86 | 0.747336 | 180 | 1,314 | 5.4 | 0.438889 | 0.033951 | 0.030864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009507 | 0.119483 | 1,314 | 52 | 87 | 25.269231 | 0.830596 | 0.147641 | 0 | 0 | 0 | 0 | 0.052018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.342857 | 0 | 0.342857 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
772cac17fe77b5b1192c1983ed38099fac427257 | 4,152 | py | Python | Algorithms_sandbox/Helpers/Physionet2.py | Gruschwick/ECG_PLATFORM | 4a1ee568e8593938a3b51c595d4834f861a6db6e | [
"MIT"
] | 5 | 2021-01-28T00:04:35.000Z | 2022-03-05T05:35:10.000Z | Algorithms_sandbox/Helpers/Physionet2.py | Gruschwick/ECG_PLATFORM | 4a1ee568e8593938a3b51c595d4834f861a6db6e | [
"MIT"
] | null | null | null | Algorithms_sandbox/Helpers/Physionet2.py | Gruschwick/ECG_PLATFORM | 4a1ee568e8593938a3b51c595d4834f861a6db6e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 20 03:31:38 2021
@author: mateusz
"""
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 7 15:07:16 2019
@author: x
"""
import wfdb
import numpy as np
from .Plot import PlotWithAnnotations
from .DataSeriesBase import DataSeriesBase
def LoadFile(file... | 32.692913 | 154 | 0.586464 | 509 | 4,152 | 4.666012 | 0.379175 | 0.069474 | 0.018526 | 0.021474 | 0.314105 | 0.243368 | 0.243368 | 0.172632 | 0.128 | 0.113684 | 0 | 0.056393 | 0.265414 | 4,152 | 126 | 155 | 32.952381 | 0.722295 | 0.290703 | 0 | 0 | 0 | 0 | 0.066643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.075472 | 0.037736 | 0.509434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
772f9d2612fde771236541f2963f193b9c8eaf1b | 10,981 | py | Python | selfdrive/car/gm/interface.py | Jamezz/openpilot | 5272c6b18e56a7124a56d2c2f6d8a7d7b2d4ac10 | [
"MIT"
] | null | null | null | selfdrive/car/gm/interface.py | Jamezz/openpilot | 5272c6b18e56a7124a56d2c2f6d8a7d7b2d4ac10 | [
"MIT"
] | null | null | null | selfdrive/car/gm/interface.py | Jamezz/openpilot | 5272c6b18e56a7124a56d2c2f6d8a7d7b2d4ac10 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import common.numpy_fast as np
from common.realtime import sec_since_boot
from selfdrive.can.parser import CANParser
from selfdrive.config import Conversions as CV
from selfdrive.controls.lib.drive_helpers import create_event, EventTypes as ET, get_events
from selfdrive.controls.lib.v... | 32.975976 | 105 | 0.676714 | 1,483 | 10,981 | 4.869184 | 0.291976 | 0.034898 | 0.032405 | 0.041407 | 0.139177 | 0.083922 | 0.057887 | 0.047916 | 0.02465 | 0.013572 | 0 | 0.021324 | 0.222748 | 10,981 | 332 | 106 | 33.075301 | 0.824722 | 0.157636 | 0 | 0.073593 | 0 | 0 | 0.047702 | 0.002391 | 0 | 0 | 0.003042 | 0.003012 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.017316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7735982b797de52d8f8e746f3591ee485f52d0c9 | 256 | py | Python | app/view.py | wwju/vocabulary_com_telegram__bot | 8e0689f9bbca334b38028b2f6194b7e541048edc | [
"MIT"
] | null | null | null | app/view.py | wwju/vocabulary_com_telegram__bot | 8e0689f9bbca334b38028b2f6194b7e541048edc | [
"MIT"
] | null | null | null | app/view.py | wwju/vocabulary_com_telegram__bot | 8e0689f9bbca334b38028b2f6194b7e541048edc | [
"MIT"
] | null | null | null | def format(words):
result = "*Your last mastered words:*\n\n"
result += "```\n"
for word in words:
result += "{} – {} \n".format(
word["value"],
word["definition"]
)
result += "```"
return result
| 23.272727 | 46 | 0.460938 | 27 | 256 | 4.407407 | 0.555556 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.347656 | 256 | 10 | 47 | 25.6 | 0.706587 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7736c55cde36894bba83b0cbba6d9dd52f6d3486 | 5,955 | py | Python | source/reaction_rates.py | rockfool/opendeplete | 4b43641a46ab19829728fab42c8eb394b76ba971 | [
"MIT"
] | null | null | null | source/reaction_rates.py | rockfool/opendeplete | 4b43641a46ab19829728fab42c8eb394b76ba971 | [
"MIT"
] | null | null | null | source/reaction_rates.py | rockfool/opendeplete | 4b43641a46ab19829728fab42c8eb394b76ba971 | [
"MIT"
] | null | null | null | """ReactionRates module.
Just contains a dictionary of np.arrays to store reaction rates.
"""
import numpy as np
import zernike
class ReactionRates:
""" The Nuclide class.
Contains everything in a depletion chain relating to a single nuclide.
Parameters
----------
cell_to_ind : OrderedDict[int... | 32.189189 | 114 | 0.580688 | 790 | 5,955 | 4.197468 | 0.15443 | 0.045235 | 0.027141 | 0.043426 | 0.714113 | 0.671291 | 0.671291 | 0.653197 | 0.639928 | 0.623643 | 0 | 0.000509 | 0.34005 | 5,955 | 184 | 115 | 32.36413 | 0.843257 | 0.431402 | 0 | 0.670886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0 | 1 | 0.063291 | false | 0 | 0.025316 | 0 | 0.126582 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
773aa57b69d548dc0e8fa716eb393e032d561de0 | 1,262 | py | Python | venv/Lib/site-packages/pandas/tests/indexes/interval/test_equals.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/tests/indexes/interval/test_equals.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/tests/indexes/interval/test_equals.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | import numpy as np
from pandas import (
IntervalIndex,
date_range,
)
class TestEquals:
def test_equals(self, closed):
expected = IntervalIndex.from_breaks(np.arange(5), closed=closed)
assert expected.equals(expected)
assert expected.equals(expected.copy())
a... | 34.108108 | 77 | 0.628368 | 141 | 1,262 | 5.496454 | 0.304965 | 0.180645 | 0.153548 | 0.207742 | 0.501935 | 0.341935 | 0.229677 | 0.180645 | 0.123871 | 0 | 0 | 0.023861 | 0.269414 | 1,262 | 36 | 78 | 35.055556 | 0.816703 | 0 | 0 | 0 | 0 | 0 | 0.027732 | 0 | 0 | 0 | 0 | 0 | 0.37931 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
773f8b045422777a0cdd65732aba10b091b135d6 | 72,861 | py | Python | .infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1_persistent_volume.py | cvicens/lab-knative | ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f | [
"Apache-2.0"
] | null | null | null | .infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1_persistent_volume.py | cvicens/lab-knative | ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f | [
"Apache-2.0"
] | null | null | null | .infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1_persistent_volume.py | cvicens/lab-knative | ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from ansible.module_utils.k8s_common import KubernetesAnsibleModule, KubernetesAnsibleException
DOCUMENTATION = '''
module: k8s_v1_persistent_volume
short_description: Kubernetes PersistentVolume
description:
- Manage the lifecycle of a persistent_volume object. Supports chec... | 39.299353 | 105 | 0.607884 | 8,500 | 72,861 | 5.116471 | 0.100588 | 0.017705 | 0.017912 | 0.014486 | 0.688664 | 0.650264 | 0.629363 | 0.618303 | 0.602023 | 0.570844 | 0 | 0.002994 | 0.349103 | 72,861 | 1,853 | 106 | 39.320561 | 0.914033 | 0.00177 | 0 | 0.601304 | 0 | 0.009234 | 0.993235 | 0.054022 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000543 | false | 0.004345 | 0.000543 | 0 | 0.001086 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7744c1cddc013671815234aefd01ac3d3010eb71 | 2,464 | py | Python | hls2dash/lib/TS.py | Brainiarc7/hls-to-dash | 05e4172eb62744a951b4e82b139ac8c6768eac90 | [
"MIT"
] | 34 | 2016-09-27T17:36:56.000Z | 2021-11-16T07:39:32.000Z | hls2dash/lib/TS.py | Brainiarc7/hls-to-dash | 05e4172eb62744a951b4e82b139ac8c6768eac90 | [
"MIT"
] | 5 | 2016-10-02T10:35:14.000Z | 2018-03-29T07:44:40.000Z | hls2dash/lib/TS.py | Brainiarc7/hls-to-dash | 05e4172eb62744a951b4e82b139ac8c6768eac90 | [
"MIT"
] | 10 | 2016-08-12T11:59:23.000Z | 2018-07-04T06:21:39.000Z | # Copyright 2016 Eyevinn Technology. All rights reserved
# Use of this source code is governed by a MIT License
# license that can be found in the LICENSE file.
# Author: Jonas Birme (Eyevinn Technology)
import pycurl
from ffprobe import FFProbe
import tempfile
import re
import os
from hls2dash.lib.TSRemux import tsr... | 28.988235 | 80 | 0.616071 | 290 | 2,464 | 5.137931 | 0.348276 | 0.096644 | 0.02953 | 0.030201 | 0.081879 | 0.044295 | 0 | 0 | 0 | 0 | 0 | 0.007254 | 0.272727 | 2,464 | 84 | 81 | 29.333333 | 0.824219 | 0.07914 | 0 | 0.225352 | 0 | 0 | 0.018126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.239437 | false | 0 | 0.098592 | 0.056338 | 0.450704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
774c3a3edbf4f40cf2fdf3277d657f15f148c371 | 2,233 | py | Python | NewDeclarationInQueue/processfiles/tableobjects/gift.py | it-pebune/ani-research-data-extraction | e8b0ffecb0835020ce7942223cf566dc45ccee35 | [
"MIT"
] | null | null | null | NewDeclarationInQueue/processfiles/tableobjects/gift.py | it-pebune/ani-research-data-extraction | e8b0ffecb0835020ce7942223cf566dc45ccee35 | [
"MIT"
] | 7 | 2022-01-29T22:19:55.000Z | 2022-03-28T18:18:19.000Z | NewDeclarationInQueue/processfiles/tableobjects/gift.py | it-pebune/ani-research-data-extraction | e8b0ffecb0835020ce7942223cf566dc45ccee35 | [
"MIT"
] | null | null | null |
from NewDeclarationInQueue.processfiles.tableobjects.declaration_data import DeclarationData
from NewDeclarationInQueue.processfiles.tableobjects.table_in_document import TableInDocument
class Gift(TableInDocument):
#COL_PERSON_TYPE = 'person_type'
COL_OWNER = 'owner'
COL_SOURCE = 'source'
COL_SERVICE... | 42.132075 | 102 | 0.636811 | 312 | 2,233 | 4.378205 | 0.153846 | 0.073206 | 0.065886 | 0.09224 | 0.367496 | 0.299414 | 0.207174 | 0.207174 | 0.207174 | 0.191801 | 0 | 0.010969 | 0.265114 | 2,233 | 53 | 103 | 42.132075 | 0.82145 | 0.097179 | 0 | 0.205128 | 0 | 0 | 0.018887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.051282 | 0.076923 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
77515c6a0e9bc1163eefca442771717cc2601bf0 | 2,404 | py | Python | clientes/migrations/0001_initial.py | WesGtoX/gestao-clientes | 851b1c89e7b86f6d0b60d9b8d9c2bed3b629d8bf | [
"MIT"
] | null | null | null | clientes/migrations/0001_initial.py | WesGtoX/gestao-clientes | 851b1c89e7b86f6d0b60d9b8d9c2bed3b629d8bf | [
"MIT"
] | 3 | 2021-04-07T01:58:51.000Z | 2021-04-07T01:59:01.000Z | clientes/migrations/0001_initial.py | WesGtoX/gestao-clientes | 851b1c89e7b86f6d0b60d9b8d9c2bed3b629d8bf | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2021-01-05 15:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Documento',
fields=[
... | 42.928571 | 139 | 0.577787 | 244 | 2,404 | 5.553279 | 0.340164 | 0.055351 | 0.066421 | 0.088561 | 0.501845 | 0.501845 | 0.457565 | 0.457565 | 0.302583 | 0.302583 | 0 | 0.020161 | 0.27787 | 2,404 | 55 | 140 | 43.709091 | 0.760369 | 0.018719 | 0 | 0.416667 | 1 | 0 | 0.087824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7757859967a070580b930055ff634f1a30d9995d | 729 | py | Python | tests/test_utils.py | CuriBio/IaC | 86d39038c7035442778f13eb29f10bafb628c89a | [
"MIT"
] | 2 | 2021-09-15T07:34:57.000Z | 2021-09-15T07:35:48.000Z | tests/test_utils.py | CuriBio/IaC | 86d39038c7035442778f13eb29f10bafb628c89a | [
"MIT"
] | 339 | 2021-02-22T19:02:04.000Z | 2022-03-31T15:13:02.000Z | tests/test_utils.py | CuriBio/IaC | 86d39038c7035442778f13eb29f10bafb628c89a | [
"MIT"
] | null | null | null | import os
import sys
from unittest.mock import Mock
from stdlib_utils import resource_path
def import_lambda(lambda_name, mock_imports=None):
"""Return module loaded directly from source file."""
# mock imports only needed in lambdas to avoid install solely for testing
if mock_imports:
for mod_t... | 22.090909 | 97 | 0.668038 | 104 | 729 | 4.548077 | 0.461538 | 0.093023 | 0.038055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241427 | 729 | 32 | 98 | 22.78125 | 0.855335 | 0.164609 | 0 | 0 | 0 | 0 | 0.031509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7757c1f37b9640cc1c30f061522bd51135e27330 | 1,585 | py | Python | examples.py | yozel/etherunit | 6aab1b97a0551d7f3fae0b6e81625dc70deadca0 | [
"Apache-2.0"
] | 1 | 2021-11-10T16:44:49.000Z | 2021-11-10T16:44:49.000Z | examples.py | yozel/etherunit | 6aab1b97a0551d7f3fae0b6e81625dc70deadca0 | [
"Apache-2.0"
] | null | null | null | examples.py | yozel/etherunit | 6aab1b97a0551d7f3fae0b6e81625dc70deadca0 | [
"Apache-2.0"
] | null | null | null | from etherunit import Ether, Gwei, Wei, E
# Create a new quantity with units
## You can create a new quatity like this
Ether(".05")
Gwei(".05")
Wei("5")
## Or you can use the helper function E() to create a new quantity
E(".05 eth")
E(".05 gwei")
E("5 wei")
# Arithmetic operations
## Different quatities can be add... | 27.807018 | 100 | 0.672555 | 275 | 1,585 | 3.876364 | 0.341818 | 0.045028 | 0.0394 | 0.026266 | 0.245779 | 0.231707 | 0.146341 | 0.146341 | 0.08818 | 0.08818 | 0 | 0.051817 | 0.184227 | 1,585 | 56 | 101 | 28.303571 | 0.772622 | 0.570978 | 0 | 0.230769 | 0 | 0 | 0.295209 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7757fe208d39e301a705337af7aa702158c88702 | 5,091 | py | Python | tests/components/climacell/test_sensor.py | jonasjeeliasson/core | 0301706fc631ad1f2cd2532667ba9dfe2f856198 | [
"Apache-2.0"
] | 1 | 2020-12-18T12:23:04.000Z | 2020-12-18T12:23:04.000Z | tests/components/climacell/test_sensor.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 56 | 2020-12-21T08:18:27.000Z | 2022-03-31T06:04:31.000Z | tests/components/climacell/test_sensor.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 2 | 2020-06-03T20:24:39.000Z | 2020-06-06T19:52:09.000Z | """Tests for Climacell sensor entities."""
from __future__ import annotations
from datetime import datetime
import logging
from typing import Any
from unittest.mock import patch
import pytest
import pytz
from homeassistant.components.climacell.config_flow import (
_get_config_schema,
_get_unique_id,
)
from h... | 34.398649 | 75 | 0.716362 | 681 | 5,091 | 4.976505 | 0.223201 | 0.103865 | 0.141635 | 0.182945 | 0.452051 | 0.370611 | 0.209501 | 0.190617 | 0.171732 | 0.171732 | 0 | 0.028053 | 0.187782 | 5,091 | 147 | 76 | 34.632653 | 0.791536 | 0.019446 | 0 | 0.112903 | 0 | 0 | 0.096497 | 0.045892 | 0 | 0 | 0 | 0 | 0.056452 | 1 | 0.016129 | false | 0 | 0.120968 | 0 | 0.137097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
775f72a23065583ad1297b0e61936c4f6231e5de | 705 | py | Python | modules/flag-submitter.py | ChristopherBilg/cse-545-PCTF-team-31 | 24061a26b1d239605720a5e31d3cb1bfc288317a | [
"MIT"
] | null | null | null | modules/flag-submitter.py | ChristopherBilg/cse-545-PCTF-team-31 | 24061a26b1d239605720a5e31d3cb1bfc288317a | [
"MIT"
] | 1 | 2021-02-07T19:51:32.000Z | 2021-02-07T19:51:32.000Z | modules/flag-submitter.py | ChristopherBilg/cse-545-PCTF-team-31 | 24061a26b1d239605720a5e31d3cb1bfc288317a | [
"MIT"
] | 3 | 2021-02-17T15:44:39.000Z | 2022-01-29T03:18:49.000Z | #!/usr/bin/env python
import swpag_client
URL = "<INSERT DURING CTF AND COMMIT>"
TEAM_URL = "http://" + URL + "/"
TEAM_FLAG_TOKEN = "<INSERT DURING CTF AND COMMIT>"
def module_name():
return "flag-submitter"
def module_help():
return "submit all flags in the \"./flag-submitter.txt\" file"
def module_usage():
... | 22.03125 | 64 | 0.668085 | 100 | 705 | 4.45 | 0.47 | 0.07191 | 0.067416 | 0.080899 | 0.107865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001742 | 0.185816 | 705 | 31 | 65 | 22.741935 | 0.773519 | 0.028369 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0.136364 | 0.363636 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
91f1d08279902566251021479e65c3e4b1df6258 | 934 | py | Python | setup.py | tkf/julia-venv | 29d9241faa75bb990e04d779b5a3d784203527d2 | [
"MIT"
] | 3 | 2018-09-08T03:47:37.000Z | 2020-08-07T20:15:17.000Z | setup.py | tkf/julia-venv | 29d9241faa75bb990e04d779b5a3d784203527d2 | [
"MIT"
] | 3 | 2018-09-05T06:46:46.000Z | 2019-04-13T01:23:54.000Z | setup.py | tkf/julia-venv | 29d9241faa75bb990e04d779b5a3d784203527d2 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="julia-venv",
version="0.0.0",
packages=find_packages("src"),
package_dir={"": "src"},
package_data={"julia_venv": ["*.jl"]},
author="Takafumi Arakaki",
author_email="aka.tkf@gmail.com",
# url="https://github.com/tkf/julia-venv",
... | 29.1875 | 69 | 0.599572 | 105 | 934 | 5.2 | 0.657143 | 0.131868 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006983 | 0.233405 | 934 | 31 | 70 | 30.129032 | 0.755587 | 0.217345 | 0 | 0.115385 | 0 | 0 | 0.337931 | 0.030345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91f33e4625dbbd3644db17b1d3aa3051a9e9e368 | 976 | py | Python | VA/main/utils/io.py | YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation | 23b9191f150d0edb981cf22a47a618feb55578b9 | [
"MIT"
] | 343 | 2018-07-18T10:39:30.000Z | 2022-03-30T02:32:06.000Z | VA/main/utils/io.py | YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation | 23b9191f150d0edb981cf22a47a618feb55578b9 | [
"MIT"
] | 47 | 2018-09-03T03:35:13.000Z | 2021-11-15T02:09:15.000Z | VA/main/utils/io.py | YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation | 23b9191f150d0edb981cf22a47a618feb55578b9 | [
"MIT"
] | 83 | 2018-10-15T08:36:12.000Z | 2022-03-05T05:51:16.000Z | import sys
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
def printc(color, vmsg):
print (color + vmsg + ENDC, end='')
sys.stdout.flush()
def printcn(color, vmsg):
print (color + vmsg + ENDC)
sys.stdout.flush()
def printnl(vmsg):
... | 23.238095 | 56 | 0.535861 | 148 | 976 | 3.513514 | 0.425676 | 0.103846 | 0.075 | 0.098077 | 0.176923 | 0.176923 | 0.073077 | 0 | 0 | 0 | 0 | 0.067295 | 0.23873 | 976 | 41 | 57 | 23.804878 | 0.632571 | 0 | 0 | 0.090909 | 0 | 0 | 0.11168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.030303 | 0.030303 | 0.393939 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91f6b27a1f761a2e9ef7fe5c697d494bee8d69e4 | 16,141 | py | Python | djangocms_blog/migrations/0001_initial.py | Python-Marketing/django-content-server | 16794265c44152a86f99b8548c8e1cb8c890f51a | [
"CC0-1.0"
] | null | null | null | djangocms_blog/migrations/0001_initial.py | Python-Marketing/django-content-server | 16794265c44152a86f99b8548c8e1cb8c890f51a | [
"CC0-1.0"
] | null | null | null | djangocms_blog/migrations/0001_initial.py | Python-Marketing/django-content-server | 16794265c44152a86f99b8548c8e1cb8c890f51a | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.2.15 on 2020-08-04 19:14
import aldryn_apphooks_config.fields
import app_data.fields
import cms.models.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import djangocms_blog.models
import djangocms_text_ckeditor.fields
import file... | 75.779343 | 294 | 0.657518 | 1,759 | 16,141 | 5.833428 | 0.143832 | 0.072897 | 0.027288 | 0.042881 | 0.726342 | 0.674301 | 0.642043 | 0.614365 | 0.587175 | 0.516714 | 0 | 0.014466 | 0.20767 | 16,141 | 212 | 295 | 76.136792 | 0.787865 | 0.00285 | 0 | 0.434146 | 1 | 0.004878 | 0.274405 | 0.050705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.063415 | 0 | 0.082927 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91fa2e132e55f4a9c07ab5d05e0cd935eebb9693 | 638 | py | Python | core/users/urls.py | Nikita-Filonov/lama_logger | 7b3f474ddf35685e6949ab00d7272d16c630295c | [
"Apache-2.0"
] | null | null | null | core/users/urls.py | Nikita-Filonov/lama_logger | 7b3f474ddf35685e6949ab00d7272d16c630295c | [
"Apache-2.0"
] | null | null | null | core/users/urls.py | Nikita-Filonov/lama_logger | 7b3f474ddf35685e6949ab00d7272d16c630295c | [
"Apache-2.0"
] | 1 | 2021-12-21T09:39:02.000Z | 2021-12-21T09:39:02.000Z | from django.urls import path
from core.users.views.authentication import registration, login
from core.users.views.settings import UserSettingsApi
from core.users.views.tokens import TokensApi, delete_token
from core.users.views.users import UserApi
urlpatterns = [
path('login/', login, name='login'),
path('r... | 39.875 | 75 | 0.73511 | 82 | 638 | 5.621951 | 0.304878 | 0.069414 | 0.112798 | 0.156182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109718 | 638 | 15 | 76 | 42.533333 | 0.81162 | 0 | 0 | 0 | 0 | 0 | 0.202194 | 0.04232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
91fb9610bc2987ec002f6b097ee51e627effa973 | 2,591 | py | Python | libpdf/apiobjects.py | useblocks/libpdf | 2c1cf007ac9c7a74871342d67bff118254ee8dd5 | [
"MIT"
] | 7 | 2021-01-21T20:42:01.000Z | 2022-03-16T06:11:49.000Z | libpdf/apiobjects.py | useblocks/libpdf | 2c1cf007ac9c7a74871342d67bff118254ee8dd5 | [
"MIT"
] | 8 | 2021-01-19T09:27:15.000Z | 2022-02-04T22:50:15.000Z | libpdf/apiobjects.py | useblocks/libpdf | 2c1cf007ac9c7a74871342d67bff118254ee8dd5 | [
"MIT"
] | null | null | null | """Modules defines extracted object instances."""
from typing import List, NamedTuple
from libpdf.models.chapter import Chapter
from libpdf.models.figure import Figure
from libpdf.models.paragraph import Paragraph
from libpdf.models.root import Root
from libpdf.models.table import Table
from pdfminer.pdfdocument imp... | 35.493151 | 116 | 0.687379 | 307 | 2,591 | 5.781759 | 0.387622 | 0.028169 | 0.04507 | 0.021408 | 0.190423 | 0.161127 | 0.127324 | 0.127324 | 0.08338 | 0.08338 | 0 | 0 | 0.248939 | 2,591 | 72 | 117 | 35.986111 | 0.912127 | 0.493632 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.029412 | false | 0 | 0.235294 | 0 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91fd22ffcb8c5ba092072c23e4030ee34e0930d4 | 3,488 | py | Python | Chapter24/VirtualPet/VirtualPet.rsrc.py | lixuekai2001/python.Hello-World-Computer-Programming-for-Kids-and-Other-Beginners | e2caaf58af4d2d2ff541d9e7e78f9e5f0778a293 | [
"Apache-2.0"
] | 3 | 2020-03-09T00:35:22.000Z | 2020-10-29T06:26:46.000Z | Chapter24/VirtualPet/VirtualPet.rsrc.py | lixuekai2001/python.Hello-World-Computer-Programming-for-Kids-and-Other-Beginners | e2caaf58af4d2d2ff541d9e7e78f9e5f0778a293 | [
"Apache-2.0"
] | null | null | null | Chapter24/VirtualPet/VirtualPet.rsrc.py | lixuekai2001/python.Hello-World-Computer-Programming-for-Kids-and-Other-Beginners | e2caaf58af4d2d2ff541d9e7e78f9e5f0778a293 | [
"Apache-2.0"
] | 4 | 2020-10-29T06:26:48.000Z | 2021-09-18T13:41:13.000Z | # TIO_CH24_3.rsrc.py
# Copyright Warren Sande, 2009
# Released under MIT license http://www.opensource.org/licenses/mit-license.php
# Version 61 ----------------------------
# Resource file for Virtual Pet program with pause button
{'application':{'type':'Application',
'name':'Template',
'backgrounds... | 22.358974 | 88 | 0.479358 | 341 | 3,488 | 4.897361 | 0.41349 | 0.038323 | 0.056886 | 0.02994 | 0.235329 | 0.235329 | 0.235329 | 0.142515 | 0.142515 | 0.120958 | 0 | 0.058894 | 0.27953 | 3,488 | 155 | 89 | 22.503226 | 0.605651 | 0.077408 | 0 | 0.272727 | 0 | 0 | 0.418822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62028c5999ae1d82959d30c89bcbb69ef6006d3e | 489 | py | Python | src/module_1/app/utils/routers/hello_world.py | jhculb/base_python_project | d3b5abbc4142565388e0403c213e74ff03e4df12 | [
"MIT"
] | null | null | null | src/module_1/app/utils/routers/hello_world.py | jhculb/base_python_project | d3b5abbc4142565388e0403c213e74ff03e4df12 | [
"MIT"
] | null | null | null | src/module_1/app/utils/routers/hello_world.py | jhculb/base_python_project | d3b5abbc4142565388e0403c213e74ff03e4df12 | [
"MIT"
] | null | null | null | from fastapi.responses import JSONResponse
from fastapi.routing import APIRouter
from app.utils.logger.instantiate import logger_instance
from app.utils.logger.instantiate import db_instance
_db = db_instance
router = APIRouter(prefix='/health-check')
logger = logger_instance.get_logger(__name__)
@router.get('/')
a... | 30.5625 | 56 | 0.781186 | 67 | 489 | 5.492537 | 0.492537 | 0.089674 | 0.065217 | 0.097826 | 0.190217 | 0.190217 | 0 | 0 | 0 | 0 | 0 | 0.006865 | 0.106339 | 489 | 16 | 57 | 30.5625 | 0.830664 | 0 | 0 | 0 | 0 | 0 | 0.077551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6203991361b31769ad2d17a9c1eccc40068e189e | 986 | py | Python | backend/api.py | NishanthSingaraju/BioHack | 08772e88683b3a10d4af859af7e8e718f9f51ec0 | [
"Apache-2.0"
] | null | null | null | backend/api.py | NishanthSingaraju/BioHack | 08772e88683b3a10d4af859af7e8e718f9f51ec0 | [
"Apache-2.0"
] | null | null | null | backend/api.py | NishanthSingaraju/BioHack | 08772e88683b3a10d4af859af7e8e718f9f51ec0 | [
"Apache-2.0"
] | null | null | null | import time
import os
from flask import Flask, request
from flask_restful import Api, Resource, reqparse
from flask_cors import CORS
import calendar_api
import period
app = Flask(__name__)
CORS(app)
UPLOAD_FOLDER = 'data'
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@app.route('/api/time')
def get_current_time():
... | 25.947368 | 74 | 0.705882 | 134 | 986 | 5.007463 | 0.30597 | 0.107303 | 0.065574 | 0.09389 | 0.157973 | 0.157973 | 0.157973 | 0.157973 | 0.157973 | 0.157973 | 0 | 0 | 0.143002 | 986 | 38 | 75 | 25.947368 | 0.794083 | 0 | 0 | 0.066667 | 0 | 0 | 0.165147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.233333 | 0.033333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.