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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33c6fc7c6a43f33fca1acd3e80bf340a6e154be0 | 2,881 | py | Python | pisces/algid.py | danieljohnlewis/pisces | 7e7ed9c87692c01b591e14db73a3a7047992e91c | [
"MIT"
] | 1 | 2021-02-03T23:05:19.000Z | 2021-02-03T23:05:19.000Z | pisces/algid.py | danieljohnlewis/pisces | 7e7ed9c87692c01b591e14db73a3a7047992e91c | [
"MIT"
] | null | null | null | pisces/algid.py | danieljohnlewis/pisces | 7e7ed9c87692c01b591e14db73a3a7047992e91c | [
"MIT"
] | 1 | 2017-04-05T16:11:11.000Z | 2017-04-05T16:11:11.000Z | """Handle for X.509 AlgorithmIdentifier objects
This module understands a minimal number of OIDS, just enough X.509
stuff needed for PKCS 1 & 7.
"""
import types
from pisces import asn1
oid_dsa = asn1.OID((1, 2, 840, 10040, 4, 1))
oid_dsa_sha1 = asn1.OID((1, 2, 840, 10040, 4, 3))
oid_rsa = asn1.OID((1, 2, 840, 1135... | 31.659341 | 132 | 0.596668 | 386 | 2,881 | 4.321244 | 0.303109 | 0.041966 | 0.038369 | 0.03777 | 0.143285 | 0.143285 | 0.143285 | 0.035971 | 0 | 0 | 0 | 0.069578 | 0.27664 | 2,881 | 90 | 133 | 32.011111 | 0.730806 | 0.044082 | 0 | 0.064516 | 0 | 0 | 0.05987 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | null | null | 0 | 0.032258 | 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 |
33c94b4ecccf7fc17e12956a7c221ae80de3cbe0 | 3,138 | py | Python | examples/for_debug.py | gottadiveintopython/kivyx.uix.drawer | a4de9c8ee65892c16278499f1134b93678a5a01b | [
"MIT"
] | null | null | null | examples/for_debug.py | gottadiveintopython/kivyx.uix.drawer | a4de9c8ee65892c16278499f1134b93678a5a01b | [
"MIT"
] | null | null | null | examples/for_debug.py | gottadiveintopython/kivyx.uix.drawer | a4de9c8ee65892c16278499f1134b93678a5a01b | [
"MIT"
] | null | null | null | from kivy.app import runTouchApp
from kivy.properties import StringProperty
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.lang import Builder
from kivyx.uix.drawer import KXDrawer
class Numpad(GridLayout):
def on_kv_post(self, *ar... | 24.904762 | 66 | 0.500319 | 337 | 3,138 | 4.540059 | 0.329377 | 0.057516 | 0.039216 | 0.052288 | 0.149673 | 0.09281 | 0.09281 | 0.052288 | 0.052288 | 0.052288 | 0 | 0.033441 | 0.409178 | 3,138 | 125 | 67 | 25.104 | 0.791802 | 0 | 0 | 0.25 | 0 | 0 | 0.714468 | 0.01434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.0625 | 0.008929 | 0.116071 | 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 |
33c9c1f3e9820356f08403598edffbaf83060a2e | 2,876 | py | Python | generator.py | elieahd/data-analytics-kmeans | df44da132cf0de00d870b8865781f4fd78113cfa | [
"MIT"
] | 2 | 2020-10-09T20:13:00.000Z | 2021-06-06T09:18:33.000Z | generator.py | elieahd/data-analytics-kmeans | df44da132cf0de00d870b8865781f4fd78113cfa | [
"MIT"
] | null | null | null | generator.py | elieahd/data-analytics-kmeans | df44da132cf0de00d870b8865781f4fd78113cfa | [
"MIT"
] | 2 | 2018-06-06T08:33:03.000Z | 2018-06-06T09:00:47.000Z | # spark-submit generator.py out 9 3 2 10
# imports
import sys
import random
import numpy
from pyspark import SparkContext
from pyspark.mllib.random import RandomRDDs
# constants
MIN_MEAN_VALUE = 0
MAX_MEAN_VALUE = 100
STEPS = 0.1
# methods
def point_values(means_value, normal_value, std, cluster, dimension):
val... | 37.842105 | 189 | 0.705494 | 429 | 2,876 | 4.606061 | 0.310023 | 0.032389 | 0.032895 | 0.028846 | 0.152834 | 0.109312 | 0.081984 | 0.081984 | 0.081984 | 0 | 0 | 0.024649 | 0.18185 | 2,876 | 76 | 190 | 37.842105 | 0.81513 | 0.277469 | 0 | 0 | 0 | 0 | 0.162202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.177778 | 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 |
33ccafc8a5799e67020bb35fde701098ce38149a | 856 | py | Python | coronavirus/common/user_agent.py | StevenHuang2020/WebSpider | 40ab36416e061da3eb98a3174f18f50260b2e2d3 | [
"MIT"
] | null | null | null | coronavirus/common/user_agent.py | StevenHuang2020/WebSpider | 40ab36416e061da3eb98a3174f18f50260b2e2d3 | [
"MIT"
] | null | null | null | coronavirus/common/user_agent.py | StevenHuang2020/WebSpider | 40ab36416e061da3eb98a3174f18f50260b2e2d3 | [
"MIT"
] | null | null | null | import random
from fake_useragent import UserAgent
agent_list = '''Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50
Mozilla/5.0 (com... | 27.612903 | 137 | 0.682243 | 144 | 856 | 3.923611 | 0.375 | 0.014159 | 0.070796 | 0.058407 | 0.350442 | 0.307965 | 0.223009 | 0.223009 | 0.223009 | 0.223009 | 0 | 0.081575 | 0.169393 | 856 | 30 | 138 | 28.533333 | 0.71308 | 0.042056 | 0 | 0 | 0 | 0.210526 | 0.525672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.368421 | 0.052632 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33d053c085065b6932239fd9d1894cd72e3ecc5e | 1,596 | py | Python | project1/src/utils/preprocessing.py | armand33/deep_learning_epfl | 238ed860716f013a30e29ebd4b0d9c4d0c67d011 | [
"MIT"
] | null | null | null | project1/src/utils/preprocessing.py | armand33/deep_learning_epfl | 238ed860716f013a30e29ebd4b0d9c4d0c67d011 | [
"MIT"
] | null | null | null | project1/src/utils/preprocessing.py | armand33/deep_learning_epfl | 238ed860716f013a30e29ebd4b0d9c4d0c67d011 | [
"MIT"
] | 2 | 2018-05-30T09:27:13.000Z | 2018-07-05T12:38:37.000Z | """
File defining the classes Normalize and Standardize used respectively to normalize and standardize the data set.
"""
class Normalize(object):
"""
Data pre-processing class to normalize data so the values are in the range [new_min, new_max].
"""
def __init__(self, min_, max_, new_min=0, new_max=1)... | 27.517241 | 112 | 0.592105 | 208 | 1,596 | 4.375 | 0.221154 | 0.046154 | 0.030769 | 0.050549 | 0.250549 | 0.2 | 0.076923 | 0.076923 | 0.076923 | 0 | 0 | 0.00182 | 0.311404 | 1,596 | 57 | 113 | 28 | 0.826206 | 0.490602 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33d849633a70f2cbfe362c04ab4b72d0b5817985 | 2,519 | py | Python | create_playlist_by_artistlist.py | sanzgiri/saregma_spotify | ba35cd27b13c63a7cb1b1452f00727be51c775c7 | [
"MIT"
] | 1 | 2019-10-10T07:39:26.000Z | 2019-10-10T07:39:26.000Z | create_playlist_by_artistlist.py | sanzgiri/saregama_spotify | ba35cd27b13c63a7cb1b1452f00727be51c775c7 | [
"MIT"
] | null | null | null | create_playlist_by_artistlist.py | sanzgiri/saregama_spotify | ba35cd27b13c63a7cb1b1452f00727be51c775c7 | [
"MIT"
] | null | null | null | import sys
import re
import spotipy
import spotipy.util as util
''' shows the albums and tracks for a given artist.
'''
def get_artist_urn(name):
results = sp.search(q='artist:' + name, type='artist')
items = results['artists']['items']
if len(items) > 0:
return items[0]['uri']
else:
r... | 33.586667 | 89 | 0.493053 | 265 | 2,519 | 4.532075 | 0.328302 | 0.066611 | 0.034971 | 0.026644 | 0.173189 | 0.173189 | 0.173189 | 0.173189 | 0.173189 | 0.173189 | 0 | 0.007828 | 0.391425 | 2,519 | 74 | 90 | 34.040541 | 0.775603 | 0.08416 | 0 | 0.222222 | 0 | 0 | 0.099507 | 0.009861 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.148148 | 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 |
33d9997f9a803874867baad8259292103a1f9c38 | 974 | py | Python | BOMFinder/helpers.py | ProrokWielki/BOM_Finder | 329fbcc79014f653ea438005495c851ea5a98a4e | [
"MIT"
] | null | null | null | BOMFinder/helpers.py | ProrokWielki/BOM_Finder | 329fbcc79014f653ea438005495c851ea5a98a4e | [
"MIT"
] | null | null | null | BOMFinder/helpers.py | ProrokWielki/BOM_Finder | 329fbcc79014f653ea438005495c851ea5a98a4e | [
"MIT"
] | null | null | null | import BOMFinder.UI.UI as UI
def to_prompt_sequence(part):
prompt_sequence = []
for key, value in part.properties.items():
if isinstance(key, str):
if isinstance(value, str):
prompt_sequence.append(UI.ValuePrompt(key))
elif isinstance(value, list):
... | 30.4375 | 90 | 0.584189 | 111 | 974 | 5 | 0.378378 | 0.176577 | 0.144144 | 0.158559 | 0.118919 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005997 | 0.315195 | 974 | 31 | 91 | 31.419355 | 0.826087 | 0.037988 | 0 | 0.090909 | 0 | 0 | 0.050321 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.045455 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33df118b9dd2d5dc3e199ff68c543e1b12e24f1b | 389 | py | Python | accounts/migrations/0007_rename_protected_authtoggle_is_protected.py | abubakarA-Dot/tarot_juicer | dbc68f73d6ae3d73f50f4472a063b5363febc7b8 | [
"MIT"
] | 4 | 2020-02-27T00:11:01.000Z | 2020-05-11T07:59:55.000Z | accounts/migrations/0007_rename_protected_authtoggle_is_protected.py | abubakarA-Dot/tarot_juicer | dbc68f73d6ae3d73f50f4472a063b5363febc7b8 | [
"MIT"
] | 16 | 2019-12-20T06:57:54.000Z | 2020-05-19T01:00:18.000Z | accounts/migrations/0007_rename_protected_authtoggle_is_protected.py | abubakarA-Dot/tarot_juicer | dbc68f73d6ae3d73f50f4472a063b5363febc7b8 | [
"MIT"
] | 10 | 2019-12-25T23:38:33.000Z | 2020-05-11T14:15:15.000Z | # Generated by Django 3.2.4 on 2021-11-02 08:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0006_rename_on_authtoggle_protected'),
]
operations = [
migrations.RenameField(
model_name='authtoggle',
old_nam... | 20.473684 | 60 | 0.611825 | 41 | 389 | 5.609756 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0681 | 0.282776 | 389 | 18 | 61 | 21.611111 | 0.756272 | 0.115681 | 0 | 0 | 1 | 0 | 0.216374 | 0.102339 | 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 |
33e320a31c348ff9ae4c6582aaca0b0e10833e86 | 2,455 | py | Python | data_spec_validator/spec/actions.py | travisliu/data-spec-validator | 7ee0944ca9899d565ad04ed82ca26bb402970958 | [
"MIT"
] | 23 | 2021-08-11T08:53:15.000Z | 2022-02-14T04:44:13.000Z | data_spec_validator/spec/actions.py | travisliu/data-spec-validator | 7ee0944ca9899d565ad04ed82ca26bb402970958 | [
"MIT"
] | 2 | 2021-09-11T08:59:12.000Z | 2022-03-29T00:40:42.000Z | data_spec_validator/spec/actions.py | travisliu/data-spec-validator | 7ee0944ca9899d565ad04ed82ca26bb402970958 | [
"MIT"
] | 1 | 2022-01-04T07:45:22.000Z | 2022-01-04T07:45:22.000Z | from .defines import MsgLv, UnknownFieldValue, ValidateResult, get_msg_level
from .validators import SpecValidator
def _wrap_error_with_field_info(failure):
if get_msg_level() == MsgLv.VAGUE:
return RuntimeError(f'field: {failure.field} not well-formatted')
if isinstance(failure.value, UnknownFieldVal... | 34.097222 | 93 | 0.657434 | 283 | 2,455 | 5.530035 | 0.321555 | 0.026837 | 0.028754 | 0.028115 | 0.06901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001073 | 0.240733 | 2,455 | 71 | 94 | 34.577465 | 0.838519 | 0.096538 | 0 | 0 | 0 | 0 | 0.116584 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.072727 | false | 0 | 0.036364 | 0 | 0.218182 | 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 |
33e792cf546e5c419d580edda8137736596261a6 | 333 | py | Python | file_upload/address/models.py | pkscredy/lat_long | 1079d4c4eaf16a7df08c431aaa83eed188099af4 | [
"MIT"
] | null | null | null | file_upload/address/models.py | pkscredy/lat_long | 1079d4c4eaf16a7df08c431aaa83eed188099af4 | [
"MIT"
] | null | null | null | file_upload/address/models.py | pkscredy/lat_long | 1079d4c4eaf16a7df08c431aaa83eed188099af4 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
class Document(models.Model):
file_name = models.CharField(max_length=255, blank=True)
document = models.FileField(upload_to='documents/')
uploaded_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self... | 25.615385 | 60 | 0.756757 | 43 | 333 | 5.511628 | 0.790698 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010676 | 0.156156 | 333 | 12 | 61 | 27.75 | 0.83274 | 0 | 0 | 0 | 0 | 0 | 0.03003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 1 | 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 | 1 | 0 | 0 | 0 | 1 |
33e8f24130e48b94bffd6cb5db000655f6d2dde5 | 3,106 | py | Python | src/messages/results/base.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | 2 | 2020-02-27T13:15:07.000Z | 2020-09-19T15:19:29.000Z | src/messages/results/base.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | src/messages/results/base.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | import abc
from collections import OrderedDict
from .constants import RESULT_KEY_MAP
class ResultMessageBase(abc.ABC):
"""
Result message base class.
"""
@abc.abstractmethod
def get_content(self, custom_data=None):
"""
Get message content.
Args:
custom_data ... | 20.168831 | 61 | 0.533162 | 312 | 3,106 | 5.163462 | 0.208333 | 0.09311 | 0.043451 | 0.057107 | 0.47486 | 0.437616 | 0.391682 | 0.351335 | 0.268156 | 0.223464 | 0 | 0 | 0.367675 | 3,106 | 153 | 62 | 20.300654 | 0.820265 | 0.305538 | 0 | 0.395833 | 0 | 0 | 0.015513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33f0d31e3a217367f0357c35df26fe4ef6403f03 | 4,410 | py | Python | broker/service/api/v10.py | bigsea-ufcg/bigsea-manager | 73235298308f55ae287a595fc1f056fbcc022b12 | [
"Apache-2.0"
] | 3 | 2017-03-21T20:03:53.000Z | 2018-05-03T16:27:32.000Z | broker/service/api/v10.py | bigsea-ufcg/bigsea-manager | 73235298308f55ae287a595fc1f056fbcc022b12 | [
"Apache-2.0"
] | 7 | 2017-07-17T10:34:34.000Z | 2018-05-16T14:04:57.000Z | broker/service/api/v10.py | bigsea-ufcg/bigsea-manager | 73235298308f55ae287a595fc1f056fbcc022b12 | [
"Apache-2.0"
] | 10 | 2017-04-17T14:30:27.000Z | 2018-09-04T14:55:11.000Z | # Copyright (c) 2017 UFCG-LSD.
#
# 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,... | 32.189781 | 76 | 0.65941 | 519 | 4,410 | 5.468208 | 0.271676 | 0.071882 | 0.02537 | 0.05814 | 0.415786 | 0.37315 | 0.318182 | 0.306906 | 0.306906 | 0.306906 | 0 | 0.003587 | 0.241497 | 4,410 | 136 | 77 | 32.426471 | 0.844843 | 0.152381 | 0 | 0.4125 | 0 | 0 | 0.138672 | 0.005912 | 0 | 0 | 0 | 0.007353 | 0 | 1 | 0.0625 | false | 0.075 | 0.075 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
33f1df7af6076d426dfa10cdaf7eb926cc35605b | 362 | py | Python | Unit_B/chapter10_Lists/sampleCode/makeList.py | noynaert/csc184Handouts | c3e4c8824ee8d16b128abd771a8b5f8a2f01c0de | [
"Unlicense"
] | 2 | 2021-04-27T09:18:46.000Z | 2021-10-17T03:58:53.000Z | Unit_B/chapter10_Lists/sampleCode/makeList.py | noynaert/csc184Handouts | c3e4c8824ee8d16b128abd771a8b5f8a2f01c0de | [
"Unlicense"
] | null | null | null | Unit_B/chapter10_Lists/sampleCode/makeList.py | noynaert/csc184Handouts | c3e4c8824ee8d16b128abd771a8b5f8a2f01c0de | [
"Unlicense"
] | null | null | null | # creates a list and prints it
days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
# traversing without an index
for day in days:
print(day)
# traversing with an index
for i in range(len(days)):
print(f"Day {i} is {days[i]}")
days[1] = "Lunes"
print("Day[1] is now ... | 21.294118 | 85 | 0.624309 | 57 | 362 | 3.964912 | 0.54386 | 0.119469 | 0.088496 | 0.106195 | 0.176991 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0.010453 | 0.207182 | 362 | 17 | 86 | 21.294118 | 0.777003 | 0.223757 | 0 | 0.444444 | 0 | 0 | 0.320144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 |
33f77890d77ebb7d721abd90ddbfe421eb63ecdb | 5,838 | py | Python | Chapter05/python/init_data.py | iamssxn/PacktPublishingb | caadbf997f7f7a27601424b602fc554e7be931d4 | [
"MIT"
] | 18 | 2019-06-11T13:35:26.000Z | 2021-08-30T22:28:32.000Z | Chapter05/python/init_data.py | iamssxn/PacktPublishingb | caadbf997f7f7a27601424b602fc554e7be931d4 | [
"MIT"
] | 1 | 2019-10-10T12:27:44.000Z | 2019-10-10T12:27:44.000Z | Chapter05/python/init_data.py | iamssxn/PacktPublishingb | caadbf997f7f7a27601424b602fc554e7be931d4 | [
"MIT"
] | 8 | 2019-07-24T03:25:18.000Z | 2021-12-10T07:02:38.000Z | from pymongo import MongoClient
import json
class InitData:
def __init__(self):
self.client = MongoClient('localhost', 27017, w='majority')
self.db = self.client.mongo_bank
self.accounts = self.db.accounts
# drop data from accounts collection every time to start from a clean slate
... | 46.704 | 143 | 0.626242 | 704 | 5,838 | 4.931818 | 0.166193 | 0.078629 | 0.051843 | 0.059908 | 0.711694 | 0.6875 | 0.648329 | 0.635945 | 0.616935 | 0.616935 | 0 | 0.01323 | 0.249058 | 5,838 | 125 | 144 | 46.704 | 0.778741 | 0.089243 | 0 | 0.404494 | 0 | 0.022472 | 0.182573 | 0.015843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0.022472 | 0 | 0.202247 | 0.067416 | 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 |
33f92dee740cb042eaee2c3fec74d44c25ed57fb | 795 | py | Python | models.py | 12DReflections/cab_trips | fc85ebd44056b1a340705164912d2f8c700415df | [
"BSD-Source-Code"
] | null | null | null | models.py | 12DReflections/cab_trips | fc85ebd44056b1a340705164912d2f8c700415df | [
"BSD-Source-Code"
] | null | null | null | models.py | 12DReflections/cab_trips | fc85ebd44056b1a340705164912d2f8c700415df | [
"BSD-Source-Code"
] | null | null | null | from database import Base
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey, DateTime, Float
from sqlalchemy.types import DateTime
from flask import Flask, request, jsonify, make_response
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = ... | 25.645161 | 84 | 0.78239 | 103 | 795 | 5.786408 | 0.514563 | 0.100671 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.125786 | 795 | 30 | 85 | 26.5 | 0.843165 | 0 | 0 | 0 | 0 | 0 | 0.050378 | 0.037783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.238095 | 0 | 0.857143 | 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 |
d5025b15829b19f379302daca23271668cadecc4 | 389 | py | Python | setup.py | alvations/mindset | 05180a4bbf3162d97ffa148b0babc920764c6b1d | [
"MIT"
] | 2 | 2020-11-09T23:13:58.000Z | 2020-11-12T12:13:14.000Z | setup.py | alvations/mindset | 05180a4bbf3162d97ffa148b0babc920764c6b1d | [
"MIT"
] | null | null | null | setup.py | alvations/mindset | 05180a4bbf3162d97ffa148b0babc920764c6b1d | [
"MIT"
] | null | null | null | from distutils.core import setup
import setuptools
setup(
name = 'mindset',
packages = ['mindset'],
version = '0.0.1',
description = 'Mindset',
author = '',
url = 'https://github.com/alvations/mindset',
keywords = [],
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approv... | 21.611111 | 47 | 0.624679 | 40 | 389 | 6.075 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013029 | 0.210797 | 389 | 17 | 48 | 22.882353 | 0.778502 | 0 | 0 | 0 | 0 | 0 | 0.434447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d503452c7afa0f6d1b9b7a4cde6e1cea9bbc9d99 | 2,082 | py | Python | cir_project/cirp_user/scripts/camera_user.py | sprkrd/UPC-MAI-CIR | f9a6ef6e9c95534c1fdea6f9023c939bd89c2df8 | [
"MIT"
] | 1 | 2021-11-18T13:34:48.000Z | 2021-11-18T13:34:48.000Z | cir_project/cirp_user/scripts/camera_user.py | sprkrd/UPC-MAI-CIR | f9a6ef6e9c95534c1fdea6f9023c939bd89c2df8 | [
"MIT"
] | null | null | null | cir_project/cirp_user/scripts/camera_user.py | sprkrd/UPC-MAI-CIR | f9a6ef6e9c95534c1fdea6f9023c939bd89c2df8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
from peyetribe import EyeTribe
import time
from cir_user.srv import UserAction, UserActionResponse
TH1 = 1280*(1.0/3)
TH2 = 1280*(2.0/3)
IP = "192.168.101.72"
class CameraUserServer:
def __init__(self):
rospy.init_node("talker")
... | 28.135135 | 86 | 0.56292 | 242 | 2,082 | 4.628099 | 0.421488 | 0.071429 | 0.075 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.3122 | 2,082 | 73 | 87 | 28.520548 | 0.759777 | 0.346302 | 0 | 0.111111 | 0 | 0 | 0.052513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027778 | 0.138889 | null | null | 0.027778 | 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 |
d50550ea66d6bcca0e8c6d873de65a99c1e874cd | 833 | py | Python | captcha_bypass.py | ruroot/captcha_bypass | 6457d7bb6152ddd8d784bac8cd99488f2534013e | [
"MIT"
] | null | null | null | captcha_bypass.py | ruroot/captcha_bypass | 6457d7bb6152ddd8d784bac8cd99488f2534013e | [
"MIT"
] | null | null | null | captcha_bypass.py | ruroot/captcha_bypass | 6457d7bb6152ddd8d784bac8cd99488f2534013e | [
"MIT"
] | null | null | null | import requests
cookie = {'_ga':'GA1.2.1373385590.1498799275','_gid':'GA1.2.867459789.1498799275','_gat':'1','PHPSESSID':'1kr76vh1164sbgeflnngimi321'}
url = 'http://captcha.ringzer0team.com:7421'
headers = {'Authorization':'Basic Y2FwdGNoYTpRSmM5VTZ3eEQ0U0ZUMHU='}
for i in range(1000):
# get captacha
r = requests.g... | 55.533333 | 134 | 0.727491 | 110 | 833 | 5.436364 | 0.454545 | 0.073579 | 0.153846 | 0.173913 | 0.396321 | 0.137124 | 0.137124 | 0 | 0 | 0 | 0 | 0.111111 | 0.081633 | 833 | 14 | 135 | 59.5 | 0.670588 | 0.014406 | 0 | 0 | 0 | 0 | 0.460317 | 0.135531 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 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 |
d505765173ba8ae48d059a5d6519553fdbd987f4 | 685 | py | Python | antlr-python/ChatErrorListener.py | evilkirin/antlr-mega-tutorial | 91135a7b2fc9e99b9fc500b290a4a2893d328bf8 | [
"MIT"
] | 138 | 2017-03-08T14:29:54.000Z | 2020-04-25T23:00:26.000Z | antlr-python/ChatErrorListener.py | evilkirin/antlr-mega-tutorial | 91135a7b2fc9e99b9fc500b290a4a2893d328bf8 | [
"MIT"
] | 17 | 2020-05-08T10:10:39.000Z | 2022-01-21T20:40:16.000Z | lifestyle/antlr-mega-tutorial-master/antlr-python/ChatErrorListener.py | pennz/antlr_lifestyle | e97f0a2e125fc851b637ef854e5d4968491acb42 | [
"BSD-3-Clause"
] | 38 | 2017-03-15T02:44:17.000Z | 2020-03-30T10:24:15.000Z | import sys
from antlr4 import *
from ChatParser import ChatParser
from ChatListener import ChatListener
from antlr4.error.ErrorListener import *
import io
class ChatErrorListener(ErrorListener):
def __init__(self, output):
self.output = output
self._symbol = ''
def syntaxError(sel... | 29.782609 | 85 | 0.646715 | 67 | 685 | 6.492537 | 0.492537 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00409 | 0.286131 | 685 | 23 | 86 | 29.782609 | 0.885481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.315789 | 0.052632 | 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 |
d50622fc11746b41527aa6f48d3bb22b36bbce6d | 568 | py | Python | home/urls.py | auxfuse/ci-hackathon-app | 87d5ad7aae33c15f535ceed28e1657a014159516 | [
"MIT"
] | 11 | 2020-10-06T13:50:46.000Z | 2021-02-27T20:19:17.000Z | home/urls.py | auxfuse/ci-hackathon-app | 87d5ad7aae33c15f535ceed28e1657a014159516 | [
"MIT"
] | 174 | 2020-10-13T18:25:34.000Z | 2022-01-17T09:49:18.000Z | home/urls.py | auxfuse/ci-hackathon-app | 87d5ad7aae33c15f535ceed28e1657a014159516 | [
"MIT"
] | 46 | 2020-10-14T11:27:20.000Z | 2022-01-31T17:48:12.000Z | from django.urls import path
from . import views
urlpatterns = [
path("", views.home, name="home"),
path("faq/", views.faq, name="faq"),
path("plagiarism_policy/", views.plagiarism_policy,
name="plagiarism_policy"),
path("privacy_policy/", views.privacy_policy, name="privacy_policy"),
path... | 33.411765 | 79 | 0.68662 | 71 | 568 | 5.225352 | 0.323944 | 0.12938 | 0.177898 | 0.210243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024896 | 0.151408 | 568 | 16 | 80 | 35.5 | 0.744813 | 0 | 0 | 0 | 0 | 0 | 0.286972 | 0.103873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
d5068f56351c172f868906780ca7bfa27fd8680d | 13,750 | py | Python | ogreyMaterialTool.py | opengd/OgreyTool | 42e169fe530458084c20d6fb3e7a2dc78f1ac487 | [
"MIT"
] | null | null | null | ogreyMaterialTool.py | opengd/OgreyTool | 42e169fe530458084c20d6fb3e7a2dc78f1ac487 | [
"MIT"
] | null | null | null | ogreyMaterialTool.py | opengd/OgreyTool | 42e169fe530458084c20d6fb3e7a2dc78f1ac487 | [
"MIT"
] | null | null | null | import wx
from ogreyPopupMenu import *
from ogreyOgreManagers import *
from ogreyTool import *
class Singleton(type):
def __init__(self, *args):
type.__init__(self, *args)
self._instances = {}
def __call__(self, *args):
if not args in self._instances:
self._instan... | 43.650794 | 203 | 0.583782 | 1,392 | 13,750 | 5.641523 | 0.168822 | 0.028524 | 0.026614 | 0.036419 | 0.404431 | 0.347128 | 0.339233 | 0.323571 | 0.241309 | 0.218388 | 0 | 0.008839 | 0.267709 | 13,750 | 315 | 204 | 43.650794 | 0.77108 | 0.211273 | 0 | 0.265116 | 0 | 0 | 0.072403 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0 | null | null | 0.037209 | 0.018605 | null | null | 0.004651 | 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 |
d51442e5802a7e7a7d3c8bda504b303ddbb541d1 | 483 | py | Python | books/PythonAutomate/webscrap/using_bs4.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | books/PythonAutomate/webscrap/using_bs4.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | books/PythonAutomate/webscrap/using_bs4.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | import bs4
with open("example.html") as f:
# 텍스트 파일로 부터 BeautifulSoup 객체 생성
soup = bs4.BeautifulSoup(f.read(), "lxml")
print(type(soup)) # <class 'bs4.BeautifulSoup'>
# id가 author인 태그 리스트 조회
elems = soup.select("#author")
print(type(elems)) # <class 'list'>
print(type(elems[0])) # <class 'bs4.element.Tag'... | 19.32 | 50 | 0.654244 | 80 | 483 | 3.95 | 0.5875 | 0.094937 | 0.10443 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022277 | 0.163561 | 483 | 24 | 51 | 20.125 | 0.759901 | 0.362319 | 0 | 0 | 0 | 0 | 0.083893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.636364 | 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 |
1d1b331ff1ab098a4c5dbc7bd53b72d465dadc1d | 293 | py | Python | configurations.py | KumundzhievMaxim/WearingGlassesClassification | ae78a258735e852a1fbb9d9d9876f9ea74320153 | [
"MIT"
] | 1 | 2021-06-05T13:10:07.000Z | 2021-06-05T13:10:07.000Z | configurations.py | KumundzhievMaxim/WearingGlassesClassification | ae78a258735e852a1fbb9d9d9876f9ea74320153 | [
"MIT"
] | null | null | null | configurations.py | KumundzhievMaxim/WearingGlassesClassification | ae78a258735e852a1fbb9d9d9876f9ea74320153 | [
"MIT"
] | null | null | null | # ------------------------------------------
#
# Program created by Maksim Kumundzhiev
#
#
# email: kumundzhievmaxim@gmail.com
# github: https://github.com/KumundzhievMaxim
# -------------------------------------------
BATCH_SIZE = 10
IMG_SIZE = (160, 160)
MODEL_PATH = 'checkpoints/model'
| 20.928571 | 45 | 0.511945 | 25 | 293 | 5.88 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030651 | 0.109215 | 293 | 13 | 46 | 22.538462 | 0.532567 | 0.692833 | 0 | 0 | 0 | 0 | 0.209877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
1d1e074b61872504f96ce32330f37d8ab5634c26 | 789 | py | Python | ch04/cross_entropy_error.py | sankaku/deep-learning-from-scratch-py | 70ec531578f099136744d2c1ec11959b239c3854 | [
"MIT"
] | null | null | null | ch04/cross_entropy_error.py | sankaku/deep-learning-from-scratch-py | 70ec531578f099136744d2c1ec11959b239c3854 | [
"MIT"
] | null | null | null | ch04/cross_entropy_error.py | sankaku/deep-learning-from-scratch-py | 70ec531578f099136744d2c1ec11959b239c3854 | [
"MIT"
] | null | null | null | import numpy as np
def cross_entropy_error(y, t):
delta = 1e-7 # to avoid log(0)
return - np.sum(t * np.log(y + delta))
if __name__ == '__main__':
t = np.array([0, 1, 0, 0, 0, 0, 0, 0, 0, 0])
y1 = np.array([1, 0, 0, 0, 0, 0, 0, 0, 0, 0])
y2 = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
y3 = n... | 31.56 | 61 | 0.536122 | 147 | 789 | 2.70068 | 0.22449 | 0.141058 | 0.173804 | 0.18136 | 0.370277 | 0.324937 | 0.073048 | 0.073048 | 0.073048 | 0 | 0 | 0.117845 | 0.247148 | 789 | 24 | 62 | 32.875 | 0.550505 | 0.019011 | 0 | 0 | 0 | 0 | 0.199482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0.277778 | 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 |
1d224808f2a6914ef8278b9e81b293979d0a85e1 | 7,957 | py | Python | kdc/kdc.py | cesium12/webathena | 3ccd870bf7543966e613cf36dbbbb1aabf53e581 | [
"MIT"
] | null | null | null | kdc/kdc.py | cesium12/webathena | 3ccd870bf7543966e613cf36dbbbb1aabf53e581 | [
"MIT"
] | null | null | null | kdc/kdc.py | cesium12/webathena | 3ccd870bf7543966e613cf36dbbbb1aabf53e581 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=invalid-name
""" Web-based proxy to a Kerberos KDC for Webathena. """
import base64
import json
import os
import select
import socket
import dns.resolver
from pyasn1.codec.der import decoder as der_decoder
from pyasn1.codec.der import encoder as der_encoder
from pyasn1.error im... | 34.150215 | 98 | 0.613045 | 1,019 | 7,957 | 4.639843 | 0.316977 | 0.014805 | 0.01692 | 0.011421 | 0.157783 | 0.098562 | 0.098562 | 0.075719 | 0.034264 | 0.034264 | 0 | 0.014769 | 0.293704 | 7,957 | 232 | 99 | 34.297414 | 0.826512 | 0.232877 | 0 | 0.167785 | 0 | 0 | 0.078309 | 0.009262 | 0 | 0 | 0 | 0.012931 | 0 | 1 | 0.100671 | false | 0.006711 | 0.107383 | 0.013423 | 0.33557 | 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 |
1d268f5884d3edaa2ebd73f6bea09ab2e7e7400f | 582 | py | Python | tests/test_keywords.py | VeerendraNathLukkani/pytest_test | c39a1a7e74d90aebeb30797a61d0e491942557e8 | [
"Apache-2.0"
] | 51 | 2018-04-26T09:02:38.000Z | 2021-11-21T10:57:32.000Z | tests/test_keywords.py | VeerendraNathLukkani/pytest_test | c39a1a7e74d90aebeb30797a61d0e491942557e8 | [
"Apache-2.0"
] | 39 | 2017-12-20T14:27:33.000Z | 2018-04-05T22:45:12.000Z | tests/test_keywords.py | tierratelematics/pytest-play | c39a1a7e74d90aebeb30797a61d0e491942557e8 | [
"Apache-2.0"
] | 5 | 2018-06-30T15:51:39.000Z | 2020-04-13T19:31:25.000Z | import pytest
@pytest.mark.parametrize("cli_options", [
('-k', 'notestdeselect',),
])
def test_autoexecute_yml_keywords_skipped(testdir, cli_options):
yml_file = testdir.makefile(".yml", """
---
markers:
- marker1
- marker2
---
- provider: python
type: assert
expression: "1"
""")
assert yml_fi... | 22.384615 | 64 | 0.685567 | 68 | 582 | 5.676471 | 0.588235 | 0.07772 | 0.067358 | 0.108808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022587 | 0.16323 | 582 | 25 | 65 | 23.28 | 0.770021 | 0.11512 | 0 | 0.105263 | 0 | 0 | 0.270059 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.052632 | false | 0.052632 | 0.052632 | 0 | 0.105263 | 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 |
1d27314ab7fea8509c861472d1fd1cdbc7becfb3 | 224 | py | Python | python/find_largest_divisor.py | codevscolor/codevscolor | 35ef9042bdc86f45ef87795c35963b75fb64d5d7 | [
"Apache-2.0"
] | 6 | 2019-04-26T03:11:54.000Z | 2021-05-07T21:48:29.000Z | python/find_largest_divisor.py | akojif/codevscolor | 56db3dffeac8f8d76ff8fcf5656770f33765941f | [
"Apache-2.0"
] | null | null | null | python/find_largest_divisor.py | akojif/codevscolor | 56db3dffeac8f8d76ff8fcf5656770f33765941f | [
"Apache-2.0"
] | 26 | 2019-02-23T14:50:46.000Z | 2022-02-04T23:44:24.000Z | #1
num = int(input("Enter a number : "))
largest_divisor = 0
#2
for i in range(2, num):
#3
if num % i == 0:
#4
largest_divisor = i
#5
print("Largest divisor of {} is {}".format(num,largest_divisor))
| 18.666667 | 64 | 0.575893 | 36 | 224 | 3.5 | 0.638889 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.267857 | 224 | 11 | 65 | 20.363636 | 0.719512 | 0.022321 | 0 | 0 | 0 | 0 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
1d27a3363d2c72c8ff7fcb62450ccd526ce19065 | 1,532 | py | Python | lintcode/0008-rotate-string.py | runzezhang/Data-Structure-and-Algorithm-Notebook | 15a94d7df2ac1d2ad081004d61433324654085e5 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:37:05.000Z | 2020-07-24T03:37:05.000Z | lintcode/0008-rotate-string.py | runzezhang/Code-NoteBook | 15a94d7df2ac1d2ad081004d61433324654085e5 | [
"Apache-2.0"
] | null | null | null | lintcode/0008-rotate-string.py | runzezhang/Code-NoteBook | 15a94d7df2ac1d2ad081004d61433324654085e5 | [
"Apache-2.0"
] | null | null | null | # Description
# 中文
# English
# Given a string(Given in the way of char array) and an offset, rotate the string by offset in place. (rotate from left to right)
# offset >= 0
# the length of str >= 0
# Have you met this question in a real interview?
# Example
# Example 1:
# Input: str="abcdefg", offset = 3
# Output:... | 30.039216 | 129 | 0.640339 | 231 | 1,532 | 4.246753 | 0.316017 | 0.091743 | 0.076453 | 0.107034 | 0.398573 | 0.398573 | 0.398573 | 0.398573 | 0.398573 | 0.398573 | 0 | 0.01292 | 0.242167 | 1,532 | 51 | 130 | 30.039216 | 0.832041 | 0.77154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
1d28dceef64377a9dfc091e14cb2bc5b41317fb7 | 5,854 | py | Python | CIFAR10/losses.py | ankanbansal/semi-supervised-learning | 1aa16e2a7ae10908f70bf9657d26a49bacc50be9 | [
"Apache-2.0"
] | null | null | null | CIFAR10/losses.py | ankanbansal/semi-supervised-learning | 1aa16e2a7ae10908f70bf9657d26a49bacc50be9 | [
"Apache-2.0"
] | 1 | 2018-10-18T18:49:33.000Z | 2018-10-18T18:49:33.000Z | CIFAR10/losses.py | ankanbansal/semi-supervised-learning | 1aa16e2a7ae10908f70bf9657d26a49bacc50be9 | [
"Apache-2.0"
] | 1 | 2018-10-18T20:59:18.000Z | 2018-10-18T20:59:18.000Z | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import ipdb
import time
# Clustering penalties
class ClusterLoss(torch.nn.Module):
"""
Cluster loss comes from the SuBiC paper and consists of two losses. First is the Mean Entropy
Loss which makes the output to be clos... | 41.51773 | 139 | 0.625726 | 790 | 5,854 | 4.517722 | 0.275949 | 0.055478 | 0.009807 | 0.011208 | 0.137854 | 0.116839 | 0.091062 | 0.081535 | 0.051835 | 0.040347 | 0 | 0.021331 | 0.271268 | 5,854 | 140 | 140 | 41.814286 | 0.815284 | 0.409122 | 0 | 0.123077 | 0 | 0 | 0.026909 | 0 | 0 | 0 | 0 | 0.021429 | 0.015385 | 1 | 0.138462 | false | 0 | 0.092308 | 0.015385 | 0.369231 | 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 |
1d2fc36b7b8ff3b5ce1d287df0ac8a8feac9ce2e | 330 | py | Python | seatsio/events/objectProperties.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 2 | 2018-03-29T18:21:01.000Z | 2022-02-08T10:49:47.000Z | seatsio/events/objectProperties.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 7 | 2018-09-03T12:31:52.000Z | 2022-02-01T08:25:09.000Z | seatsio/events/objectProperties.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 2 | 2020-12-22T09:51:07.000Z | 2021-12-13T15:37:14.000Z | class ObjectProperties:
def __init__(self, object_id, extra_data=None, ticket_type=None, quantity=None):
if extra_data:
self.extraData = extra_data
self.objectId = object_id
if ticket_type:
self.ticketType = ticket_type
if quantity:
self.quantity =... | 33 | 84 | 0.636364 | 38 | 330 | 5.210526 | 0.447368 | 0.136364 | 0.131313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29697 | 330 | 9 | 85 | 36.666667 | 0.853448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
1d2fdc2424cb9c6df54a0b050148d4cc5b4644c3 | 463 | py | Python | Leetcode/1096. Brace Expansion II/solution1.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | Leetcode/1096. Brace Expansion II/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | null | null | null | Leetcode/1096. Brace Expansion II/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z | import re
class Solution:
def helper(self, expression: str) -> List[str]:
s = re.search("\{([^}{]+)\}", expression)
if not s: return {expression}
g = s.group(1)
result = set()
for c in g.split(','):
result |= self.helper(expression.replace('{' + g + '}', c, ... | 22.047619 | 74 | 0.542117 | 54 | 463 | 4.648148 | 0.5 | 0.111554 | 0.135458 | 0.167331 | 0.191235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006042 | 0.285097 | 463 | 20 | 75 | 23.15 | 0.752266 | 0 | 0 | 0 | 0 | 0 | 0.032397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.5 | 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 |
1d319276207ded7138c364ab240ee169b00896eb | 455 | py | Python | 3-longest-substring-without-repeating-characters.py | Iciclelz/leetcode | e4b698e0161033922851641885fdc6e47f9ce270 | [
"Apache-2.0"
] | null | null | null | 3-longest-substring-without-repeating-characters.py | Iciclelz/leetcode | e4b698e0161033922851641885fdc6e47f9ce270 | [
"Apache-2.0"
] | null | null | null | 3-longest-substring-without-repeating-characters.py | Iciclelz/leetcode | e4b698e0161033922851641885fdc6e47f9ce270 | [
"Apache-2.0"
] | null | null | null | class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
if len(s) == 0:
return 0
m = 1
for _ in range(len(s)):
i = 0
S = set()
for x in range(_, len(s)):
if s[x] not in S:
S.add(s... | 23.947368 | 54 | 0.316484 | 51 | 455 | 2.784314 | 0.490196 | 0.084507 | 0.140845 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026596 | 0.586813 | 455 | 19 | 55 | 23.947368 | 0.728723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
1d31e93e31c793bdd05dfba69ef56693f1358e4d | 715 | py | Python | poem_generator/PoemCallback.py | Aaronsom/poem-generation | 10cccad88d073f82f6556374fdfb23a5b5e3769a | [
"MIT"
] | null | null | null | poem_generator/PoemCallback.py | Aaronsom/poem-generation | 10cccad88d073f82f6556374fdfb23a5b5e3769a | [
"MIT"
] | null | null | null | poem_generator/PoemCallback.py | Aaronsom/poem-generation | 10cccad88d073f82f6556374fdfb23a5b5e3769a | [
"MIT"
] | null | null | null | from tensorflow.keras.callbacks import Callback
from poem_generator.word_generator import generate_poem
class PoemCallback(Callback):
def __init__(self, poems, seed_length, dictionary, single=True):
super(PoemCallback, self).__init__()
self.poems = poems
self.dictionary = dictionary
... | 39.722222 | 117 | 0.699301 | 91 | 715 | 5.274725 | 0.417582 | 0.075 | 0.054167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001751 | 0.201399 | 715 | 18 | 117 | 39.722222 | 0.838879 | 0 | 0 | 0 | 1 | 0 | 0.032123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0.071429 | 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 |
1d4106adaf0d42a3f4d5f358b322161fcf83843b | 485 | py | Python | 30-39/37. sliceview/sliceview.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 1 | 2021-11-30T05:03:24.000Z | 2021-11-30T05:03:24.000Z | 30-39/37. sliceview/sliceview.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | null | null | null | 30-39/37. sliceview/sliceview.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 2 | 2021-04-18T05:26:43.000Z | 2021-11-28T18:46:43.000Z | from collections.abc import Sequence
class SliceView(Sequence):
def __init__(self, sequence, start=None, stop=None, step=None):
self.sequence = sequence
self.range = range(*slice(start, stop, step).indices(len(sequence)))
def __len__(self):
return len(self.range)
def __getitem__(... | 30.3125 | 76 | 0.663918 | 61 | 485 | 5.081967 | 0.377049 | 0.116129 | 0.109677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216495 | 485 | 15 | 77 | 32.333333 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d4187891be83646d904f0d1cc49e72009c69797 | 3,172 | py | Python | shop/forms.py | dwx9/test | a74e38369de40b9e5f481f6ac9dda6d5eb161da0 | [
"BSD-3-Clause"
] | 1 | 2021-02-11T10:01:11.000Z | 2021-02-11T10:01:11.000Z | shop/forms.py | dwx9/test | a74e38369de40b9e5f481f6ac9dda6d5eb161da0 | [
"BSD-3-Clause"
] | null | null | null | shop/forms.py | dwx9/test | a74e38369de40b9e5f481f6ac9dda6d5eb161da0 | [
"BSD-3-Clause"
] | 1 | 2020-11-08T17:56:45.000Z | 2020-11-08T17:56:45.000Z | #-*- coding: utf-8 -*-
"""Forms for the django-shop app."""
from django import forms
from django.conf import settings
from django.forms.models import modelformset_factory
from django.utils.translation import ugettext_lazy as _
from shop.backends_pool import backends_pool
from shop.models.cartmodel import CartItem
from... | 36.45977 | 116 | 0.720996 | 427 | 3,172 | 5.159251 | 0.318501 | 0.029051 | 0.025874 | 0.023604 | 0.169769 | 0.096232 | 0.072628 | 0.072628 | 0.072628 | 0.072628 | 0 | 0.003136 | 0.195776 | 3,172 | 86 | 117 | 36.883721 | 0.860447 | 0.309584 | 0 | 0 | 0 | 0 | 0.067797 | 0.013559 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.121951 | false | 0 | 0.170732 | 0 | 0.560976 | 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 |
1d41a5d36753a39f9bdaaccc33c457eebde52284 | 6,298 | py | Python | conflowgen/tests/posthoc_analyses/test_quay_side_throughput_analysis.py | 1grasse/conflowgen | 142330ab6427254109af3b86102a30a13144ba0c | [
"MIT"
] | 5 | 2022-02-16T11:44:42.000Z | 2022-02-24T20:02:17.000Z | conflowgen/tests/posthoc_analyses/test_quay_side_throughput_analysis.py | 1grasse/conflowgen | 142330ab6427254109af3b86102a30a13144ba0c | [
"MIT"
] | 90 | 2021-12-08T14:05:44.000Z | 2022-03-24T08:53:31.000Z | conflowgen/tests/posthoc_analyses/test_quay_side_throughput_analysis.py | 1grasse/conflowgen | 142330ab6427254109af3b86102a30a13144ba0c | [
"MIT"
] | 5 | 2021-12-07T16:05:15.000Z | 2022-02-16T08:24:07.000Z | import datetime
import unittest
from conflowgen.domain_models.arrival_information import TruckArrivalInformationForPickup, \
TruckArrivalInformationForDelivery
from conflowgen.domain_models.container import Container
from conflowgen.domain_models.data_types.container_length import ContainerLength
from conflowgen.d... | 42.268456 | 115 | 0.694665 | 630 | 6,298 | 6.557143 | 0.201587 | 0.037279 | 0.043573 | 0.056645 | 0.721617 | 0.668361 | 0.632292 | 0.632292 | 0.620673 | 0.620673 | 0 | 0.009234 | 0.243411 | 6,298 | 148 | 116 | 42.554054 | 0.857712 | 0.013814 | 0 | 0.565217 | 0 | 0 | 0.009032 | 0 | 0 | 0 | 0 | 0 | 0.036232 | 1 | 0.028986 | false | 0 | 0.094203 | 0 | 0.130435 | 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 |
1d4318fe475f3ff0a677d7ca22d845bd46a02756 | 1,403 | py | Python | dev/3_30_2018/UPS_Main.py | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | dev/3_30_2018/UPS_Main.py | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | dev/3_30_2018/UPS_Main.py | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | # Universal Power Supply Controller
# USAID Middle East Water Security Initiative
#
# Developed by: Nathan Webster
# Primary Investigator: Nathan Johnson
#
# Version History (mm_dd_yyyy)
# 1.00 03_24_2018_NW
#
######################################################
# Import Libraries
import Config
import time
import sql... | 15.086022 | 87 | 0.652887 | 183 | 1,403 | 4.901639 | 0.606557 | 0.060201 | 0.06689 | 0.072464 | 0.167224 | 0.111483 | 0 | 0 | 0 | 0 | 0 | 0.060315 | 0.184604 | 1,403 | 92 | 88 | 15.25 | 0.723776 | 0.335709 | 0 | 0.3 | 0 | 0 | 0.040189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
1d54ee0f796a2f72b2598319b4e1cc6534789204 | 496 | py | Python | ox_herd/core/plugins/awstools_plugin/forms.py | empower-capital/ox_herd | 2aa77db945296c152dc8d420f42a6d6455d514fa | [
"BSD-2-Clause"
] | 1 | 2021-11-28T20:35:31.000Z | 2021-11-28T20:35:31.000Z | ox_herd/core/plugins/awstools_plugin/forms.py | empower-capital/ox_herd | 2aa77db945296c152dc8d420f42a6d6455d514fa | [
"BSD-2-Clause"
] | 5 | 2017-11-21T00:21:13.000Z | 2021-06-30T19:47:54.000Z | ox_herd/core/plugins/awstools_plugin/forms.py | empower-capital/ox_herd | 2aa77db945296c152dc8d420f42a6d6455d514fa | [
"BSD-2-Clause"
] | 4 | 2021-12-17T10:58:15.000Z | 2021-12-23T14:38:40.000Z | """Forms for ox_herd commands.
"""
from wtforms import StringField
from ox_herd.core.plugins import base
class BackupForm(base.GenericOxForm):
"""Use this form to enter parameters for a new backup job.
"""
bucket_name = StringField(
'bucket_name', [], description=(
'Name of AWS bucke... | 24.8 | 62 | 0.645161 | 60 | 496 | 5.25 | 0.633333 | 0.095238 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245968 | 496 | 19 | 63 | 26.105263 | 0.842246 | 0.177419 | 0 | 0.222222 | 0 | 0 | 0.262626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.555556 | 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 |
1d5c20c56742eec9a208d57b7cd8d133f379fa4b | 8,252 | py | Python | storeAdjust/models.py | FreeGodCode/store | 1ea1d6f0d6030fb58bce9a4e2d428342a0c3ad19 | [
"MIT"
] | null | null | null | storeAdjust/models.py | FreeGodCode/store | 1ea1d6f0d6030fb58bce9a4e2d428342a0c3ad19 | [
"MIT"
] | 1 | 2021-03-05T15:00:38.000Z | 2021-03-05T15:00:38.000Z | storeAdjust/models.py | FreeGodCode/store | 1ea1d6f0d6030fb58bce9a4e2d428342a0c3ad19 | [
"MIT"
] | null | null | null | import datetime
from django.db import models
class TransferRequest(models.Model):
"""转库申请单"""
STR_STATUS_CHOICES = (
(0, '草稿'),
(1, '已审批')
)
id = models.AutoField(primary_key=True)
str_identify = models.CharField(max_length=15, verbose_name='转库申请单编号')
str_serial = models.CharFi... | 44.847826 | 131 | 0.702739 | 995 | 8,252 | 5.531658 | 0.167839 | 0.149891 | 0.075218 | 0.100291 | 0.698401 | 0.625727 | 0.566315 | 0.522166 | 0.418786 | 0.310501 | 0 | 0.011514 | 0.168565 | 8,252 | 183 | 132 | 45.092896 | 0.790701 | 0.491154 | 0 | 0.194444 | 0 | 0 | 0.10793 | 0.006363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0.027778 | 0.763889 | 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 |
1d5d6d8998dc584931f9eeaf41067c368cf6390e | 4,237 | py | Python | sga/operators.py | ggarrett13/genetic-algorithm-example | 02dc8664245728fff74c54493c504ec1e7bae482 | [
"MIT"
] | 1 | 2020-08-10T15:29:59.000Z | 2020-08-10T15:29:59.000Z | sga/operators.py | ggarrett13/genetic-algorithm-example | 02dc8664245728fff74c54493c504ec1e7bae482 | [
"MIT"
] | null | null | null | sga/operators.py | ggarrett13/genetic-algorithm-example | 02dc8664245728fff74c54493c504ec1e7bae482 | [
"MIT"
] | null | null | null | import numpy as np
import operator
# TODO: Make Mutation Operator.
class TerminationCriteria:
@staticmethod
def _convergence_check(convergence_ratio, population_fitness):
if abs((np.max(population_fitness) - np.mean(population_fitness)) / np.mean(
population_fitness)) <= convergence_... | 33.101563 | 117 | 0.64928 | 475 | 4,237 | 5.496842 | 0.214737 | 0.117196 | 0.036385 | 0.063194 | 0.30563 | 0.252011 | 0.165071 | 0.142091 | 0.142091 | 0.076599 | 0 | 0.006311 | 0.252065 | 4,237 | 127 | 118 | 33.362205 | 0.817608 | 0.107859 | 0 | 0.252874 | 0 | 0 | 0.010356 | 0 | 0 | 0 | 0 | 0.007874 | 0 | 1 | 0.218391 | false | 0 | 0.022989 | 0.057471 | 0.471264 | 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 |
1d611badfcce77d76278b903a3e886a36ee2bfd5 | 443 | py | Python | setup.py | gabeabrams/niu | a2979b6b3ed497a1cfa421f105c9e919d7709832 | [
"MIT"
] | null | null | null | setup.py | gabeabrams/niu | a2979b6b3ed497a1cfa421f105c9e919d7709832 | [
"MIT"
] | null | null | null | setup.py | gabeabrams/niu | a2979b6b3ed497a1cfa421f105c9e919d7709832 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'niu',
packages = ['niu'],
version = '0.2',
description = 'A grouping and pairing library',
author = 'Gabriel Abrams',
author_email = 'gabeabrams@gmail.com',
url = 'https://github.com/gabeabrams/niu',
download_url = 'https://github.com/gabeabrams/niu/archi... | 26.058824 | 72 | 0.656885 | 53 | 443 | 5.433962 | 0.716981 | 0.055556 | 0.097222 | 0.118056 | 0.208333 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0.01084 | 0.167043 | 443 | 17 | 73 | 26.058824 | 0.769648 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
1d7bf9fe9ade355b6e87b40c8b814174167a1aed | 1,599 | py | Python | src/derl/tracker.py | tpiekarski/derl | b2687f8f02870b2a29bc7466195d4ed45f192cbf | [
"MIT"
] | 10 | 2020-06-17T12:03:28.000Z | 2021-09-07T04:03:34.000Z | src/derl/tracker.py | tpiekarski/derl | b2687f8f02870b2a29bc7466195d4ed45f192cbf | [
"MIT"
] | 42 | 2020-06-17T12:27:26.000Z | 2021-09-05T10:51:43.000Z | src/derl/tracker.py | tpiekarski/derl | b2687f8f02870b2a29bc7466195d4ed45f192cbf | [
"MIT"
] | 1 | 2020-06-17T12:03:30.000Z | 2020-06-17T12:03:30.000Z | #
# derl: CLI Utility for searching for dead URLs <https://github.com/tpiekarski/derl>
# ---
# Copyright 2020 Thomas Piekarski <t.piekarski@deloquencia.de>
#
from time import perf_counter
from derl.model.stats import Stats
class Singleton(type):
_instances = {}
def __call__(cls: "Singleton", *args: tuple, ... | 24.227273 | 100 | 0.614134 | 204 | 1,599 | 4.583333 | 0.348039 | 0.082353 | 0.069519 | 0.036364 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.262664 | 1,599 | 65 | 101 | 24.6 | 0.785411 | 0.091932 | 0 | 0 | 0 | 0 | 0.085062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.051282 | 0.051282 | 0.615385 | 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 |
1d8e88981310f80f962aaedf4421391c24b8f208 | 2,769 | py | Python | empire/server/modules/powershell/situational_awareness/network/get_sql_server_info.py | awsmhacks/Empire | 6a6f0881798ce92a54ce9896d2ffe4855855872d | [
"BSD-3-Clause"
] | null | null | null | empire/server/modules/powershell/situational_awareness/network/get_sql_server_info.py | awsmhacks/Empire | 6a6f0881798ce92a54ce9896d2ffe4855855872d | [
"BSD-3-Clause"
] | null | null | null | empire/server/modules/powershell/situational_awareness/network/get_sql_server_info.py | awsmhacks/Empire | 6a6f0881798ce92a54ce9896d2ffe4855855872d | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import pathlib
from builtins import object, str
from typing import Dict
from empire.server.common import helpers
from empire.server.common.module_models import PydanticModule
from empire.server.utils import data_util
from empire.server.utils.module_util import handle_error_messag... | 33.361446 | 86 | 0.552907 | 253 | 2,769 | 5.853755 | 0.343874 | 0.072924 | 0.043214 | 0.02971 | 0.317353 | 0.317353 | 0.317353 | 0.243079 | 0.243079 | 0.243079 | 0 | 0.001677 | 0.353918 | 2,769 | 82 | 87 | 33.768293 | 0.82616 | 0.027086 | 0 | 0.211268 | 0 | 0 | 0.133779 | 0.047194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.070423 | 0.112676 | 0 | 0.15493 | 0.028169 | 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 |
1d9140bd33fb078d1bfd2d6231763b19bed995bc | 740 | py | Python | setup.py | Bonifatius94/sc2sim | ac765f826e2465354aa4b619ab84d52249eec474 | [
"MIT"
] | null | null | null | setup.py | Bonifatius94/sc2sim | ac765f826e2465354aa4b619ab84d52249eec474 | [
"MIT"
] | null | null | null | setup.py | Bonifatius94/sc2sim | ac765f826e2465354aa4b619ab84d52249eec474 | [
"MIT"
] | null | null | null | from setuptools import setup
def load_pip_dependency_list():
with open('./requirements.txt', 'r', encoding='utf-8') as file:
return file.read().splitlines()
def load_readme_desc():
with open("README.md", "r", encoding="utf-8") as readme_file:
return readme_file.read()
setup(
name="sc2sim"... | 30.833333 | 81 | 0.7 | 95 | 740 | 5.252632 | 0.642105 | 0.028056 | 0.068136 | 0.084168 | 0.06012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017628 | 0.156757 | 740 | 23 | 82 | 32.173913 | 0.782051 | 0 | 0 | 0 | 0 | 0 | 0.27973 | 0.02973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.05 | 0 | 0.25 | 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 |
1d93308a11488dd842ee04ecb3fb3f177a82ba23 | 1,723 | py | Python | Gds/src/fprime_gds/wxgui/tools/PexpectRunnerConsolGUI.py | hunterpaulson/fprime | 70560897b56dc3037dc966c99751b708b1cc8a05 | [
"Apache-2.0"
] | null | null | null | Gds/src/fprime_gds/wxgui/tools/PexpectRunnerConsolGUI.py | hunterpaulson/fprime | 70560897b56dc3037dc966c99751b708b1cc8a05 | [
"Apache-2.0"
] | 5 | 2020-07-13T16:56:33.000Z | 2020-07-23T20:38:13.000Z | Gds/src/fprime_gds/wxgui/tools/PexpectRunnerConsolGUI.py | hunterpaulson/lgtm-fprime | 9eeda383c263ecba8da8188a45e1d020107ff323 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version May 29 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
impor... | 27.790323 | 75 | 0.490424 | 161 | 1,723 | 5.111801 | 0.534161 | 0.047388 | 0.034022 | 0.043742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0139 | 0.248404 | 1,723 | 61 | 76 | 28.245902 | 0.621622 | 0.141033 | 0 | 0.114286 | 1 | 0 | 0.012007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.028571 | 0.057143 | 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 |
1d955fce32b36603e242788ccaf03954bf57a21c | 506 | py | Python | linchpin/provision/filter_plugins/duplicateattr.py | seandst/linchpin | 427b6fb61f550a4d1120ac94c55d121fbecd70a6 | [
"Apache-2.0"
] | null | null | null | linchpin/provision/filter_plugins/duplicateattr.py | seandst/linchpin | 427b6fb61f550a4d1120ac94c55d121fbecd70a6 | [
"Apache-2.0"
] | null | null | null | linchpin/provision/filter_plugins/duplicateattr.py | seandst/linchpin | 427b6fb61f550a4d1120ac94c55d121fbecd70a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import abc
import StringIO
from ansible import errors
def duplicateattr(output, attr, dattr):
new_output = []
for group in output:
if attr in group:
new_group = group
new_group[dattr] = group[attr]
new_output.append(new_grou... | 22 | 42 | 0.624506 | 61 | 506 | 5.098361 | 0.57377 | 0.07717 | 0.083601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294466 | 506 | 22 | 43 | 23 | 0.871148 | 0.102767 | 0 | 0 | 0 | 0 | 0.029083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 0.055556 | 0.555556 | 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 |
1d95ff83525f3bfc63f6749e33f1c51f0190ec41 | 1,072 | py | Python | Language/Parser/lr1_item.py | Chains99/Battlefield-Simulator | 9dc209c34aac5160232e47d6799bbe1b1bfcebad | [
"MIT"
] | null | null | null | Language/Parser/lr1_item.py | Chains99/Battlefield-Simulator | 9dc209c34aac5160232e47d6799bbe1b1bfcebad | [
"MIT"
] | null | null | null | Language/Parser/lr1_item.py | Chains99/Battlefield-Simulator | 9dc209c34aac5160232e47d6799bbe1b1bfcebad | [
"MIT"
] | null | null | null | from Language.Grammar.grammar import Production, Symbol, Terminal
class LR1Item:
def __init__(self, production: Production, dot_index: int, lookahead: Terminal = None):
self._repr = ''
self.production = production
self.dot_index = dot_index
self.lookahead = lookahead
self._... | 34.580645 | 123 | 0.630597 | 134 | 1,072 | 4.753731 | 0.276119 | 0.11303 | 0.094192 | 0.040816 | 0.282575 | 0.282575 | 0.282575 | 0.188383 | 0.188383 | 0.188383 | 0 | 0.002475 | 0.246269 | 1,072 | 30 | 124 | 35.733333 | 0.785891 | 0 | 0 | 0 | 0 | 0 | 0.045709 | 0.020522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.083333 | 0.541667 | 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 |
1d9b3dd104b11b23ec830541750f56c9d580c920 | 519 | py | Python | backend/core/MlDiagnosis/ML_models/heartAttackPrediction/testDeploy.py | arc-arnob/Reddit-Clone | 607918160596a10b0aff85bc7f472c8b76ace7c5 | [
"Apache-2.0"
] | null | null | null | backend/core/MlDiagnosis/ML_models/heartAttackPrediction/testDeploy.py | arc-arnob/Reddit-Clone | 607918160596a10b0aff85bc7f472c8b76ace7c5 | [
"Apache-2.0"
] | null | null | null | backend/core/MlDiagnosis/ML_models/heartAttackPrediction/testDeploy.py | arc-arnob/Reddit-Clone | 607918160596a10b0aff85bc7f472c8b76ace7c5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 13 10:26:55 2021
@author: hp
"""
import importlib
import prediction
import numpy as np
dataframe_instance = []
msg = ["marital status","age","hypertension","heart","glucose"]
for i in range(13):
read = (float(input()))
dataframe_instance.append(read)
#data_np = n... | 23.590909 | 63 | 0.71869 | 73 | 519 | 4.958904 | 0.671233 | 0.234807 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039648 | 0.125241 | 519 | 21 | 64 | 24.714286 | 0.757709 | 0.279383 | 0 | 0 | 0 | 0 | 0.172702 | 0.058496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.181818 | 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 |
d517cc6539e57b415b0f04b37c782b97faf26a2f | 4,586 | py | Python | create-kickstart.py | ulzeraj/autobond-autoraid-kickstarter | 935d9857fe31c9a70a4cdda5e872060abf09238d | [
"Unlicense"
] | null | null | null | create-kickstart.py | ulzeraj/autobond-autoraid-kickstarter | 935d9857fe31c9a70a4cdda5e872060abf09238d | [
"Unlicense"
] | null | null | null | create-kickstart.py | ulzeraj/autobond-autoraid-kickstarter | 935d9857fe31c9a70a4cdda5e872060abf09238d | [
"Unlicense"
] | null | null | null | #!/usr/bin/python2.6
#-*- coding: utf-8 -*-
import signal
import subprocess
from glob import glob
from os import listdir
from os.path import basename, dirname
label = 'CentOS_6.9_Final'
def listifaces():
ethernet = []
for iface in listdir('/sys/class/net/'):
if iface != 'lo':
ethernet.app... | 30.986486 | 126 | 0.703445 | 601 | 4,586 | 5.34609 | 0.429285 | 0.02521 | 0.032369 | 0.067538 | 0.196701 | 0.159353 | 0.155618 | 0.056956 | 0.056956 | 0.039216 | 0 | 0.03913 | 0.147405 | 4,586 | 147 | 127 | 31.197279 | 0.782609 | 0.008722 | 0 | 0.024194 | 0 | 0.096774 | 0.632923 | 0.134903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056452 | false | 0.024194 | 0.040323 | 0 | 0.153226 | 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 |
d51abf3de14a0e2363d262ce1c07a37057407501 | 2,121 | py | Python | wafextras/lyx2tex.py | tjhunter/phd-thesis-tjhunter | 8238e156b5dba9940bdda2a46cfffb62699f364d | [
"Apache-2.0"
] | 1 | 2018-03-25T11:36:21.000Z | 2018-03-25T11:36:21.000Z | wafextras/lyx2tex.py | tjhunter/phd-thesis-tjhunter | 8238e156b5dba9940bdda2a46cfffb62699f364d | [
"Apache-2.0"
] | null | null | null | wafextras/lyx2tex.py | tjhunter/phd-thesis-tjhunter | 8238e156b5dba9940bdda2a46cfffb62699f364d | [
"Apache-2.0"
] | null | null | null | """ Converts some lyx files to the latex format.
Note: everything in the file is thrown away until a section or the workd "stopskip" is found.
This way, all the preamble added by lyx is removed.
"""
from waflib import Logs
from waflib import TaskGen,Task
from waflib import Utils
from waflib.Configure import conf
def ... | 31.191176 | 119 | 0.666195 | 332 | 2,121 | 4.141566 | 0.343373 | 0.032727 | 0.034909 | 0.021818 | 0.036364 | 0.036364 | 0.036364 | 0.036364 | 0 | 0 | 0 | 0.01209 | 0.181047 | 2,121 | 67 | 120 | 31.656716 | 0.779505 | 0.013673 | 0 | 0.089286 | 0 | 0 | 0.163848 | 0.011628 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.071429 | 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 |
d51cc9225f7dcd43ef79699c1d6c59de3a5d91bf | 492 | py | Python | monero_glue/xmr/core/pycompat.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 20 | 2018-04-05T22:06:10.000Z | 2021-09-18T10:43:44.000Z | monero_glue/xmr/core/pycompat.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | null | null | null | monero_glue/xmr/core/pycompat.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 5 | 2018-08-06T15:06:04.000Z | 2021-07-16T01:58:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Dusan Klinec, ph4r05, 2018
import operator
import sys
# Useful for very coarse version differentiation.
PY3 = sys.version_info[0] == 3
if PY3:
indexbytes = operator.getitem
intlist2bytes = bytes
int2byte = operator.methodcaller("to_bytes", 1, "big")... | 19.68 | 58 | 0.648374 | 67 | 492 | 4.731343 | 0.731343 | 0.025237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044737 | 0.227642 | 492 | 24 | 59 | 20.5 | 0.789474 | 0.254065 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 1 |
d522a2438ec803dddc6ee2c08ebc2b5bae1d14b5 | 388 | py | Python | core/src/trezor/messages/TxAck.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | null | null | null | core/src/trezor/messages/TxAck.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 1 | 2019-02-08T00:22:42.000Z | 2019-02-13T09:41:54.000Z | core/src/trezor/messages/TxAck.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 2 | 2019-02-07T23:57:09.000Z | 2020-10-21T07:07:27.000Z | # Automatically generated by pb2py
# fmt: off
import protobuf as p
from .TransactionType import TransactionType
class TxAck(p.MessageType):
MESSAGE_WIRE_TYPE = 22
def __init__(
self,
tx: TransactionType = None,
) -> None:
self.tx = tx
@classmethod
def get_fields(cls):
... | 17.636364 | 44 | 0.600515 | 42 | 388 | 5.380952 | 0.738095 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018727 | 0.311856 | 388 | 21 | 45 | 18.47619 | 0.827715 | 0.10567 | 0 | 0 | 1 | 0 | 0.005814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d52c443ce49f74f8bcfed2e21fe8f2f3f85e5084 | 263 | py | Python | abc/abc163/abc163c-1.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc163/abc163c-1.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc163/abc163c-1.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N = int(input())
A = list(map(int, input().split()))
d = {}
for i in range(N - 1):
if A[i] in d:
d[A[i]].append(i + 2)
else:
d[A[i]] = [i + 2]
for i in range(1, N + 1):
if i in d:
print(len(d[i]))
else:
print(0)
| 15.470588 | 35 | 0.422053 | 51 | 263 | 2.176471 | 0.392157 | 0.108108 | 0.108108 | 0.198198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0.357414 | 263 | 16 | 36 | 16.4375 | 0.621302 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 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 |
d539894b90e242423be7b5a80d8dab14133e7cdc | 1,342 | py | Python | xlsx2x.py | KhanShaheb34/xlsx2pdf | 2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828 | [
"MIT"
] | null | null | null | xlsx2x.py | KhanShaheb34/xlsx2pdf | 2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828 | [
"MIT"
] | null | null | null | xlsx2x.py | KhanShaheb34/xlsx2pdf | 2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828 | [
"MIT"
] | null | null | null | import os
import cv2
import jpype
import shutil
import weasyprint
from bs4 import BeautifulSoup
jpype.startJVM()
from asposecells.api import *
def generatePDF(XLSXPath, OutPath):
workbook = Workbook(XLSXPath)
workbook.save(f"sheet.html", SaveFormat.HTML)
with open(f'./sheet_files/sheet001.htm') as f:
... | 25.807692 | 68 | 0.612519 | 169 | 1,342 | 4.83432 | 0.426036 | 0.04896 | 0.033048 | 0.075887 | 0.186047 | 0.139535 | 0.139535 | 0.139535 | 0.139535 | 0 | 0 | 0.019474 | 0.234724 | 1,342 | 52 | 69 | 25.807692 | 0.776047 | 0 | 0 | 0.095238 | 1 | 0 | 0.303053 | 0.040208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d53acbe8d2fd10ef53b5cd93c9f759efa5b93c91 | 242 | py | Python | accounts/urls.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | accounts/urls.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | accounts/urls.py | bekzod-fayzikuloff/djChat | d58e882c26d461b110c8b3277998108214d72fd5 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'users'
urlpatterns = [
path('<int:pk>/', views.user_profile, name='user_profile'),
path('messages/<int:pk>/', views.PrivateMessageView.as_view(), name='private_message')
] | 26.888889 | 90 | 0.706612 | 32 | 242 | 5.1875 | 0.625 | 0.060241 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 242 | 9 | 91 | 26.888889 | 0.783019 | 0 | 0 | 0 | 0 | 0 | 0.242798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
d5410810359ac36bb644e7de8c9340cf0988d530 | 560 | py | Python | test/test_levelsymmetric.py | camminady/sphericalquadpy | 0646547cc69e27de7ce36f4b519d4f420ef443e7 | [
"MIT"
] | 1 | 2020-11-15T23:47:48.000Z | 2020-11-15T23:47:48.000Z | test/test_levelsymmetric.py | camminady/sphericalquadpy | 0646547cc69e27de7ce36f4b519d4f420ef443e7 | [
"MIT"
] | 1 | 2019-04-09T08:38:21.000Z | 2019-04-09T08:38:21.000Z | test/test_levelsymmetric.py | camminady/sphericalquadpy | 0646547cc69e27de7ce36f4b519d4f420ef443e7 | [
"MIT"
] | 1 | 2020-12-19T21:12:59.000Z | 2020-12-19T21:12:59.000Z | from sphericalquadpy.levelsymmetric.levelsymmetric import Levelsymmetric
import pytest
def test_levelsymmetric():
Q = Levelsymmetric(order=4)
assert Q.name() == "Levelsymmetric Quadrature"
assert Q.getmaximalorder() == 20
with pytest.raises(Exception):
_ = Levelsymmetric(order=-10)
Q =... | 23.333333 | 72 | 0.707143 | 56 | 560 | 6.982143 | 0.446429 | 0.11509 | 0.122762 | 0.191816 | 0.132992 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07064 | 0.191071 | 560 | 23 | 73 | 24.347826 | 0.792494 | 0 | 0 | 0.333333 | 0 | 0 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.266667 | 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 |
d543530f4df09080f53a3a25090b0d0f7018de42 | 329 | py | Python | src/dictionaries/generic_subjects.py | FNClassificator/FNC-classificators | c159a04dff9edb714f69b323f6c46a15de63c278 | [
"Apache-2.0"
] | null | null | null | src/dictionaries/generic_subjects.py | FNClassificator/FNC-classificators | c159a04dff9edb714f69b323f6c46a15de63c278 | [
"Apache-2.0"
] | null | null | null | src/dictionaries/generic_subjects.py | FNClassificator/FNC-classificators | c159a04dff9edb714f69b323f6c46a15de63c278 | [
"Apache-2.0"
] | null | null | null | GENERIC = [
'Half of US adults have had family jailed',
'Judge stopped me winning election',
'Stock markets stabilise after earlier sell-off'
]
NON_GENERIC = [
'Leicester helicopter rotor controls failed',
'Pizza Express founder Peter Boizot dies aged 89',
'Senior Tory suggests vote could be d... | 27.416667 | 54 | 0.711246 | 43 | 329 | 5.418605 | 0.976744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007782 | 0.218845 | 329 | 12 | 55 | 27.416667 | 0.898833 | 0 | 0 | 0 | 0 | 0 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d543615e9951c7852a85d6e69de555518f2e11f8 | 604 | py | Python | tests/testPublishedServices.py | mapledyne/skytap | c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45 | [
"MIT"
] | 3 | 2019-04-17T13:07:30.000Z | 2021-09-09T22:01:14.000Z | tests/testPublishedServices.py | FulcrumIT/skytap | c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45 | [
"MIT"
] | 10 | 2016-11-02T20:48:38.000Z | 2021-09-15T15:29:34.000Z | tests/testPublishedServices.py | FulcrumIT/skytap | c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45 | [
"MIT"
] | 3 | 2016-03-03T07:25:13.000Z | 2016-08-30T15:33:03.000Z | """Test Skytap published services API access."""
import json
import os
import time
import sys
sys.path.append('..')
from skytap.Environments import Environments # noqa
from skytap.framework.ApiClient import ApiClient # noqa
environments = Environments()
def test_ps_values():
"""Ensure published service capabi... | 24.16 | 64 | 0.650662 | 75 | 604 | 5.173333 | 0.546667 | 0.072165 | 0.07732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271523 | 604 | 24 | 65 | 25.166667 | 0.881818 | 0.178808 | 0 | 0 | 0 | 0 | 0.004132 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.058824 | false | 0 | 0.352941 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d5495231e3d431fe1e3c8b0e5b54558d71f22bf7 | 411 | py | Python | pythonDesafios/desafio031.py | mateusdev7/desafios-python | 6160ddc84548c7af7f5775f9acabe58238f83008 | [
"MIT"
] | null | null | null | pythonDesafios/desafio031.py | mateusdev7/desafios-python | 6160ddc84548c7af7f5775f9acabe58238f83008 | [
"MIT"
] | null | null | null | pythonDesafios/desafio031.py | mateusdev7/desafios-python | 6160ddc84548c7af7f5775f9acabe58238f83008 | [
"MIT"
] | null | null | null | from time import sleep
print('-=-' * 15)
print('Iremos calcular o preço da sua viagem (R$)')
print('-=-' * 15)
distancia = float(input('Qual a distância da viagem?\n>'))
print('CALCULANDO...')
sleep(2)
if distancia <= 200:
preco = distancia * 0.50
print(f'O preço da sua viagem vai custar R${preco:.2f}')
else:... | 25.6875 | 60 | 0.644769 | 66 | 411 | 4.015152 | 0.515152 | 0.067925 | 0.090566 | 0.124528 | 0.366038 | 0.301887 | 0.301887 | 0.301887 | 0.301887 | 0.301887 | 0 | 0.047761 | 0.184915 | 411 | 15 | 61 | 27.4 | 0.743284 | 0 | 0 | 0.307692 | 0 | 0 | 0.445255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.461538 | 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 |
d54ab457563a7da1ea0a8ea69694b17e69f12c37 | 228 | py | Python | meridian/acupoints/yifeng41.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | 5 | 2015-12-14T15:14:23.000Z | 2022-02-09T10:15:33.000Z | meridian/acupoints/yifeng41.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | null | null | null | meridian/acupoints/yifeng41.py | sinotradition/meridian | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | [
"Apache-2.0"
] | 3 | 2015-11-27T05:23:49.000Z | 2020-11-28T09:01:56.000Z | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'yìfēng'
CN=u'翳风'
NAME=u'yifeng41'
CHANNEL='sanjiao'
CHANNEL_FULLNAME='SanjiaoChannelofHand-Shaoyang'
SEQ='SJ17'
if __name__ == '__main__':
pass
| 10.857143 | 48 | 0.688596 | 30 | 228 | 4.933333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.127193 | 228 | 20 | 49 | 11.4 | 0.718593 | 0.236842 | 0 | 0 | 0 | 0 | 0.387879 | 0.175758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d54b09c1f95475f540ec4196ed5f07e9af5e2f80 | 2,090 | py | Python | Entities/ImageAnotation.py | mylenefarias/360RAT | e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82 | [
"MIT"
] | null | null | null | Entities/ImageAnotation.py | mylenefarias/360RAT | e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82 | [
"MIT"
] | null | null | null | Entities/ImageAnotation.py | mylenefarias/360RAT | e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82 | [
"MIT"
] | 2 | 2022-02-25T02:33:28.000Z | 2022-02-25T10:10:21.000Z | class Image_Anotation:
def __init__(self, id, image, path_image):
self.id = id
self.FOV = [0.30,0.60]
self.image = image
self.list_roi=[]
self.list_compose_ROI=[]
self.id_roi=0
self.path_image = path_image
def set_image(self, image):
self.imag... | 24.880952 | 53 | 0.552153 | 285 | 2,090 | 3.775439 | 0.126316 | 0.110595 | 0.1171 | 0.133829 | 0.424721 | 0.342007 | 0.260223 | 0.260223 | 0.228625 | 0.228625 | 0 | 0.008949 | 0.358373 | 2,090 | 83 | 54 | 25.180723 | 0.793438 | 0.011483 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258621 | false | 0 | 0 | 0.086207 | 0.413793 | 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 |
d555ba2edd936b2db086f718b541516f58f3e05b | 1,192 | py | Python | tests/test_pages/test_views.py | wilfredinni/merken | f15f168f58e9391fcafeeda7ad17232fffab2a14 | [
"MIT"
] | 5 | 2020-05-06T03:34:07.000Z | 2022-03-25T10:05:30.000Z | tests/test_pages/test_views.py | MaxCodeXTC/merken | 040515e43dcc9bdcf23f51ea15b49b4d2af64964 | [
"MIT"
] | 17 | 2019-08-28T22:10:47.000Z | 2021-06-09T18:19:00.000Z | tests/test_pages/test_views.py | MaxCodeXTC/merken | 040515e43dcc9bdcf23f51ea15b49b4d2af64964 | [
"MIT"
] | 1 | 2020-06-15T08:34:16.000Z | 2020-06-15T08:34:16.000Z | from django.test import TestCase, Client
from django.urls import reverse
from apps.pages.models import Page
class TestPageView(TestCase):
def setUp(self):
self.client = Client()
Page.objects.create(slug="test_slug")
def test_page_GET(self):
url = reverse("page_app:page", args=["test_... | 30.564103 | 68 | 0.666946 | 150 | 1,192 | 5.173333 | 0.24 | 0.07732 | 0.072165 | 0.087629 | 0.652062 | 0.652062 | 0.639175 | 0.471649 | 0.471649 | 0.471649 | 0 | 0.019149 | 0.211409 | 1,192 | 38 | 69 | 31.368421 | 0.806383 | 0 | 0 | 0.482759 | 0 | 0 | 0.110738 | 0.037752 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.206897 | false | 0 | 0.103448 | 0 | 0.37931 | 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 |
d557f1cb2328fe8b59c23cb0bcb3af7a0541259f | 1,642 | py | Python | model/user.py | fi-ksi/dashboard-alpha | aaa800d02f78f198a95faf27af2bc8afeca4b867 | [
"MIT"
] | null | null | null | model/user.py | fi-ksi/dashboard-alpha | aaa800d02f78f198a95faf27af2bc8afeca4b867 | [
"MIT"
] | 24 | 2019-05-14T19:13:38.000Z | 2022-03-14T10:51:55.000Z | model/user.py | fi-ksi/dashboard-alpha | aaa800d02f78f198a95faf27af2bc8afeca4b867 | [
"MIT"
] | null | null | null | import datetime
from sqlalchemy import Column, Integer, String, Boolean, Enum, Text, text
from sqlalchemy.types import TIMESTAMP
from sqlalchemy.orm import relationship
from sqlalchemy.ext.hybrid import hybrid_property
from . import Base
class User(Base):
__tablename__ = 'users'
__table_args__ = {
'... | 34.208333 | 79 | 0.665043 | 182 | 1,642 | 5.791209 | 0.423077 | 0.111006 | 0.053131 | 0.062619 | 0.08444 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0.014774 | 0.216809 | 1,642 | 47 | 80 | 34.93617 | 0.804821 | 0 | 0 | 0 | 0 | 0 | 0.121194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.026316 | 0.157895 | 0.052632 | 0.763158 | 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 |
d55d9b1686825eb1a58575cb08bd3504ed4c5ca6 | 337 | py | Python | awards/tasks.py | fgmacedo/django-awards | a5307a96f8d39abdd466eb854049dd0f7b13eaee | [
"MIT"
] | null | null | null | awards/tasks.py | fgmacedo/django-awards | a5307a96f8d39abdd466eb854049dd0f7b13eaee | [
"MIT"
] | 305 | 2017-05-16T17:45:58.000Z | 2022-03-18T07:20:22.000Z | awards/tasks.py | fgmacedo/django-awards | a5307a96f8d39abdd466eb854049dd0f7b13eaee | [
"MIT"
] | null | null | null | from celery.task import Task
from ..notifications.contextmanagers import BatchNotifications
class AsyncBadgeAward(Task):
ignore_result = True
def run(self, badge, state, **kwargs):
# from celery.contrib import rdb; rdb.set_trace()
with BatchNotifications():
badge.actually_possibl... | 25.923077 | 62 | 0.712166 | 37 | 337 | 6.378378 | 0.702703 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198813 | 337 | 12 | 63 | 28.083333 | 0.874074 | 0.139466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
d574fc52182f76e129c8ec44d9cbcfde16ecf130 | 513 | py | Python | app/apps/taskker/migrations/0013_auto_20200703_1530.py | calinbule/taskker | 0dbe5a238c9ca231abd7c9a78931fd0c6523453d | [
"MIT"
] | null | null | null | app/apps/taskker/migrations/0013_auto_20200703_1530.py | calinbule/taskker | 0dbe5a238c9ca231abd7c9a78931fd0c6523453d | [
"MIT"
] | 3 | 2021-06-04T23:32:25.000Z | 2021-09-22T19:21:20.000Z | app/apps/taskker/migrations/0013_auto_20200703_1530.py | calinbule/taskker | 0dbe5a238c9ca231abd7c9a78931fd0c6523453d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-03 15:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('taskker', '0012_auto_20200703_1529'),
]
operations = [
migrations.AlterField(
model_name='task',
name='priority',
... | 27 | 177 | 0.594542 | 58 | 513 | 5.172414 | 0.810345 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092072 | 0.237817 | 513 | 18 | 178 | 28.5 | 0.675192 | 0.087719 | 0 | 0 | 1 | 0 | 0.229614 | 0.049356 | 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 |
d57d0a31e680bead64fbb6304d9ea92f18b64649 | 1,281 | py | Python | complex_data_structure/7_map_filter_reduce.py | hardikid/learn-python | 6b3684c9d459dc10ed41e3328daf49313a34b375 | [
"MIT"
] | 1 | 2019-11-19T11:42:50.000Z | 2019-11-19T11:42:50.000Z | complex_data_structure/7_map_filter_reduce.py | hardikid/learn-python | 6b3684c9d459dc10ed41e3328daf49313a34b375 | [
"MIT"
] | 5 | 2021-08-23T20:36:02.000Z | 2022-02-03T13:20:23.000Z | complex_data_structure/7_map_filter_reduce.py | ihardik/learn-python | 6b3684c9d459dc10ed41e3328daf49313a34b375 | [
"MIT"
] | null | null | null | ######## map
# Transform each object of list
# i.e. multiple each object by 3 in [0,1,2,3]
x = range(5)
print(list(x))
y = map(lambda x: x*3,x)
def multiply_5(num):
return num*5
print(list(y))
y = map(multiply_5,x)
print(list(y))
######## filter
# Removed items from list based on condition
y = fi... | 16.0125 | 66 | 0.558938 | 231 | 1,281 | 3.073593 | 0.307359 | 0.059155 | 0.04507 | 0.030986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032706 | 0.212334 | 1,281 | 79 | 67 | 16.21519 | 0.670961 | 0.144418 | 0 | 0.162791 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0.023256 | 0.116279 | 0.511628 | 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 |
d5807ccd0fe241a944ff08bce957e0086ab7a9c8 | 3,772 | py | Python | platforms/aws.py | HyechurnJang/c3mon | f5e053141372d39684e192e7c6d956125109b3c1 | [
"Apache-2.0"
] | null | null | null | platforms/aws.py | HyechurnJang/c3mon | f5e053141372d39684e192e7c6d956125109b3c1 | [
"Apache-2.0"
] | null | null | null | platforms/aws.py | HyechurnJang/c3mon | f5e053141372d39684e192e7c6d956125109b3c1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2017. 12. 22.
@author: HyechurnJang
'''
import boto3
from datetime import datetime, timedelta
class AWS:
def __init__(self):
self.ec2 = boto3.resource('ec2')
self.cw = boto3.client('cloudwatch')
def getVMs(self):
aws ... | 35.252336 | 83 | 0.391835 | 270 | 3,772 | 5.377778 | 0.344444 | 0.024793 | 0.030992 | 0.051653 | 0.482094 | 0.482094 | 0.482094 | 0.482094 | 0.482094 | 0.482094 | 0 | 0.019812 | 0.491516 | 3,772 | 106 | 84 | 35.584906 | 0.737226 | 0.005567 | 0 | 0.397727 | 0 | 0 | 0.129005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0.034091 | 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 |
d581520a36615c52af59cc8c463ee9a8af5f732e | 1,201 | py | Python | src/ufdl/json/core/filter/_FilterSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/core/filter/_FilterSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/core/filter/_FilterSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | from typing import List
from wai.json.object import StrictJSONObject
from wai.json.object.property import ArrayProperty, OneOfProperty, BoolProperty
from .field import *
from .logical import *
from ._FilterExpression import FilterExpression
from ._OrderBy import OrderBy
class FilterSpec(StrictJSONObject['FilterSpec... | 30.025 | 79 | 0.677769 | 129 | 1,201 | 6.170543 | 0.488372 | 0.050251 | 0.027638 | 0.042714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25562 | 1,201 | 39 | 80 | 30.794872 | 0.89038 | 0.198168 | 0 | 0.074074 | 0 | 0 | 0.010582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.259259 | 0 | 0.407407 | 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 |
d583e428836551045c331cfd1d586014de193689 | 9,585 | py | Python | condor_parser.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | 1 | 2019-01-15T16:58:03.000Z | 2019-01-15T16:58:03.000Z | condor_parser.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | null | null | null | condor_parser.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | null | null | null | import os
import sys
from collections import defaultdict
import re
import pandas as pd
import matplotlib.pyplot as plt
class InstanceResult:
"""Represents the result of one instance run"""
def __init__(self):
# General info, name of the instance, run ID, time, memory und time for reductions
se... | 32.491525 | 119 | 0.592593 | 1,200 | 9,585 | 4.5625 | 0.195833 | 0.050228 | 0.012785 | 0.011507 | 0.146301 | 0.080365 | 0.041644 | 0.018995 | 0.018995 | 0.018995 | 0 | 0.008096 | 0.304121 | 9,585 | 294 | 120 | 32.602041 | 0.812744 | 0.048826 | 0 | 0.136364 | 0 | 0 | 0.041018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027273 | null | null | 0.009091 | 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 |
d5894d927b0277f7ba467a9bda0d567ef57efa68 | 678 | py | Python | tests/testapp/models/caretaker.py | BBooijLiewes/django-binder | b5bf0aad14657fd57d575f9a0ef21468533f64a7 | [
"MIT"
] | null | null | null | tests/testapp/models/caretaker.py | BBooijLiewes/django-binder | b5bf0aad14657fd57d575f9a0ef21468533f64a7 | [
"MIT"
] | null | null | null | tests/testapp/models/caretaker.py | BBooijLiewes/django-binder | b5bf0aad14657fd57d575f9a0ef21468533f64a7 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models import Count, F, Max
from binder.models import BinderModel
class Caretaker(BinderModel):
name = models.TextField()
last_seen = models.DateTimeField(null=True, blank=True)
# We have the ssn for each caretaker. We have to make sure that nobody can access this ssn in... | 28.25 | 108 | 0.731563 | 101 | 678 | 4.80198 | 0.594059 | 0.041237 | 0.049485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165192 | 678 | 23 | 109 | 29.478261 | 0.85689 | 0.216814 | 0 | 0 | 0 | 0 | 0.11575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 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 |
d58d822662d574ca4045a6e27ecef06bb1dab250 | 1,421 | py | Python | weibo/items.py | flyhighfairy/weibo | 469f21543facaba828fa7c0ad0dd8da130192fba | [
"MIT"
] | 1 | 2018-01-23T19:36:27.000Z | 2018-01-23T19:36:27.000Z | weibo/items.py | flyhighfairy/weibo | 469f21543facaba828fa7c0ad0dd8da130192fba | [
"MIT"
] | null | null | null | weibo/items.py | flyhighfairy/weibo | 469f21543facaba828fa7c0ad0dd8da130192fba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class WeiboVMblogsItem(scrapy.Item):
domain = scrapy.Field()
uid = scrapy.Field()
mblog_id = scrapy.Field()
mblog_content = scrapy.Field... | 30.891304 | 137 | 0.63969 | 180 | 1,421 | 4.833333 | 0.277778 | 0.151724 | 0.027586 | 0.027586 | 0.567816 | 0.510345 | 0.510345 | 0.510345 | 0.510345 | 0.510345 | 0 | 0.000897 | 0.215341 | 1,421 | 46 | 138 | 30.891304 | 0.779372 | 0.097818 | 0 | 0.62069 | 0 | 0 | 0.353955 | 0.048551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.655172 | 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 |
d591a35f1a2c7e8df082016293ac3874fbf0a395 | 495 | py | Python | rest_api/mongo_connect.py | pssudo/kubernetes-fastapi | 87592c90fd09e587196674592b2dbdc4bc7a64ce | [
"MIT"
] | 1 | 2021-03-21T04:18:58.000Z | 2021-03-21T04:18:58.000Z | rest_api/mongo_connect.py | pssudo/kubernetes-fastapi | 87592c90fd09e587196674592b2dbdc4bc7a64ce | [
"MIT"
] | null | null | null | rest_api/mongo_connect.py | pssudo/kubernetes-fastapi | 87592c90fd09e587196674592b2dbdc4bc7a64ce | [
"MIT"
] | null | null | null | import motor.motor_asyncio
import os
mongo_server = os.environ['DB_HOST']
mongo_port = os.environ['DB_PORT']
mongo_db = os.environ['DB_NAME']
mongo_user = os.environ['DB_USER']
mongo_passwd = os.environ['DB_PASSWD']
MONGO_DETAILS = "mongodb://" + mongo_user + ":" + mongo_passwd + "@" + mongo_server + ":" + mongo_port +... | 45 | 125 | 0.759596 | 66 | 495 | 5.378788 | 0.363636 | 0.126761 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092929 | 495 | 11 | 126 | 45 | 0.790646 | 0 | 0 | 0 | 0 | 0 | 0.159274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.181818 | 0 | 0.181818 | 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 |
d5959b570e07360b0fe5902da6068315badc51ef | 1,274 | py | Python | app/core/tests/test_models.py | ahmedgamalmansy/recipe-app-api | 14443d9cd7d0fe2504361e8f86a9505c8faa9093 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | ahmedgamalmansy/recipe-app-api | 14443d9cd7d0fe2504361e8f86a9505c8faa9093 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | ahmedgamalmansy/recipe-app-api | 14443d9cd7d0fe2504361e8f86a9505c8faa9093 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTests(TestCase):
def test_create_user_with_email_successful(self):
""" test create new user with an email is successful"""
email = "ahmed.mansy@segmatek.com"
password= "Agmansy0100"
user = get_user_model().objects.cr... | 31.073171 | 68 | 0.752747 | 172 | 1,274 | 5.377907 | 0.261628 | 0.045405 | 0.064865 | 0.082162 | 0.56973 | 0.56973 | 0.458378 | 0.458378 | 0.458378 | 0.458378 | 0 | 0.013636 | 0.136578 | 1,274 | 41 | 69 | 31.073171 | 0.827273 | 0.140502 | 0 | 0.259259 | 0 | 0 | 0.104575 | 0.067227 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.148148 | false | 0.296296 | 0.074074 | 0 | 0.259259 | 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 |
d59b2e857c3657e22162648df0dce76d10dbed3f | 376 | py | Python | adminweb/migrations/0002_alter_profissional_cep.py | FinotelliCarlos/ewipesimple-adminweb-python | 3bf779250efeb9f85b4283ffbf210bf227aa8e8c | [
"MIT"
] | 1 | 2021-06-17T06:13:33.000Z | 2021-06-17T06:13:33.000Z | adminweb/migrations/0002_alter_profissional_cep.py | FinotelliCarlos/ewipesimple-adminweb-python | 3bf779250efeb9f85b4283ffbf210bf227aa8e8c | [
"MIT"
] | null | null | null | adminweb/migrations/0002_alter_profissional_cep.py | FinotelliCarlos/ewipesimple-adminweb-python | 3bf779250efeb9f85b4283ffbf210bf227aa8e8c | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-06-16 16:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adminweb', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profissional',
name='cep',
... | 19.789474 | 49 | 0.590426 | 39 | 376 | 5.615385 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071698 | 0.295213 | 376 | 18 | 50 | 20.888889 | 0.754717 | 0.114362 | 0 | 0 | 1 | 0 | 0.10574 | 0 | 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 |
d59b7e7d7e960aceb68d09f0d6e1dfd11582bf66 | 7,064 | py | Python | ios/serializers.py | NadavK/djhome | 4f0d936dc475c91e0590bd22deae818cf2650840 | [
"MIT"
] | null | null | null | ios/serializers.py | NadavK/djhome | 4f0d936dc475c91e0590bd22deae818cf2650840 | [
"MIT"
] | 8 | 2020-02-11T23:59:46.000Z | 2022-03-03T21:49:33.000Z | ios/serializers.py | NadavK/djhome | 4f0d936dc475c91e0590bd22deae818cf2650840 | [
"MIT"
] | null | null | null | from .models import Input, Output, InputToOutput, Device
from rest_framework import serializers
from taggit_serializer.serializers import (TagListSerializerField, TaggitSerializer)
from taggit.models import Tag
class DeviceSerializer(serializers.ModelSerializer):
class Meta:
model = Device
fields ... | 32.552995 | 172 | 0.625283 | 651 | 7,064 | 6.637481 | 0.195084 | 0.022911 | 0.035408 | 0.039574 | 0.690118 | 0.615367 | 0.559824 | 0.559824 | 0.539921 | 0.49271 | 0 | 0.003477 | 0.226501 | 7,064 | 216 | 173 | 32.703704 | 0.787335 | 0.544309 | 0 | 0.571429 | 0 | 0 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.057143 | 0 | 0.642857 | 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 |
d5a06a4c867599293195597044d34e40bd2610d7 | 4,055 | py | Python | keystone/assignment/role_backends/ldap.py | yanheven/keystone | 417b8941095f40674575ed951b4a03ebcdc91fef | [
"Apache-2.0"
] | null | null | null | keystone/assignment/role_backends/ldap.py | yanheven/keystone | 417b8941095f40674575ed951b4a03ebcdc91fef | [
"Apache-2.0"
] | null | null | null | keystone/assignment/role_backends/ldap.py | yanheven/keystone | 417b8941095f40674575ed951b4a03ebcdc91fef | [
"Apache-2.0"
] | 1 | 2020-07-02T09:12:28.000Z | 2020-07-02T09:12:28.000Z | # 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
# distributed under t... | 32.18254 | 76 | 0.663872 | 546 | 4,055 | 4.749084 | 0.311355 | 0.043965 | 0.030852 | 0.021597 | 0.131122 | 0.091786 | 0.091786 | 0.027767 | 0.027767 | 0 | 0 | 0.001968 | 0.248089 | 4,055 | 125 | 77 | 32.44 | 0.848475 | 0.21381 | 0 | 0.182927 | 0 | 0 | 0.042271 | 0 | 0 | 0 | 0 | 0.008 | 0 | 1 | 0.146341 | false | 0.04878 | 0.109756 | 0.04878 | 0.512195 | 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 |
d5a7dc8916eb01cb85de2b374c6b24801f3724ff | 2,027 | py | Python | Python/RussianPeasantMult.py | sheenxavi004/problem-solving | 8541ed52ff1f17031a2190b18dd5b128dd334c2d | [
"MIT"
] | 11 | 2018-10-03T23:57:04.000Z | 2020-04-04T05:06:15.000Z | Python/RussianPeasantMult.py | sheenxavi004/problem-solving | 8541ed52ff1f17031a2190b18dd5b128dd334c2d | [
"MIT"
] | 28 | 2018-10-04T07:31:07.000Z | 2020-01-08T15:43:28.000Z | Python/RussianPeasantMult.py | sheenxavi004/problem-solving | 8541ed52ff1f17031a2190b18dd5b128dd334c2d | [
"MIT"
] | 78 | 2018-10-04T06:28:58.000Z | 2021-12-12T07:07:13.000Z | """
Russian Peasant Multiplication (RPM) Algorithm Implemented In Python
RPM is a method of mutiplication of any 2 numbers using only multiplication
and division by 2.
The basics are that you divide the second number by 2 (integer division) until
it equals 1, every time you divide the second number by 2, you also multi... | 32.174603 | 80 | 0.618155 | 334 | 2,027 | 3.718563 | 0.38024 | 0.014493 | 0.036232 | 0.028986 | 0.072464 | 0.043478 | 0.043478 | 0 | 0 | 0 | 0 | 0.049435 | 0.301431 | 2,027 | 63 | 81 | 32.174603 | 0.827684 | 0.569314 | 0 | 0.064516 | 0 | 0 | 0.167832 | 0.024476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.064516 | 0.032258 | 0 | 0.16129 | 0.129032 | 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 |
d5ad529e55fa638ad8a24b07f5e82913bca91ecd | 3,327 | py | Python | src/deepnnmnist/deepnn-nobias/linear_deep_nn_nobias_no_activationf.py | renaudbougues/continuous-deep-q-learning | a96e1d9019a7291cc937de37404f2af71eaa2e32 | [
"MIT"
] | 1 | 2016-08-02T17:22:33.000Z | 2016-08-02T17:22:33.000Z | src/deepnnmnist/deepnn-nobias/linear_deep_nn_nobias_no_activationf.py | renaudbougues/continuous-deep-q-learning | a96e1d9019a7291cc937de37404f2af71eaa2e32 | [
"MIT"
] | 6 | 2016-10-02T00:18:52.000Z | 2016-10-02T00:22:59.000Z | src/deepnnmnist/deepnn-nobias/linear_deep_nn_nobias_no_activationf.py | renaudbougues/continuous-deep-q-learning | a96e1d9019a7291cc937de37404f2af71eaa2e32 | [
"MIT"
] | null | null | null | '''
Training a deep "incomplete" ANN on MNIST with Tensorflow
The ANN has no bias and no activation function
This function does not learn very well because the the hypothesis is completely off
The loss function is bad. The network is unstable in training (easily blow up) and
fails to learn the training dataset (<20%... | 34.298969 | 153 | 0.709047 | 504 | 3,327 | 4.470238 | 0.35119 | 0.018642 | 0.031957 | 0.01731 | 0.144696 | 0.133156 | 0.133156 | 0.071904 | 0.039059 | 0 | 0 | 0.025137 | 0.174932 | 3,327 | 97 | 154 | 34.298969 | 0.795628 | 0.143372 | 0 | 0 | 0 | 0 | 0.066559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.06383 | 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 |
d5ade4b8467958efc5bf0dd674d19bc8f2a64b86 | 416 | py | Python | tests/conftest.py | Usetech/labelgun | 0a3293cae3179b7d4e324154d0335d7d81a8455e | [
"MIT"
] | null | null | null | tests/conftest.py | Usetech/labelgun | 0a3293cae3179b7d4e324154d0335d7d81a8455e | [
"MIT"
] | null | null | null | tests/conftest.py | Usetech/labelgun | 0a3293cae3179b7d4e324154d0335d7d81a8455e | [
"MIT"
] | null | null | null | import pytest
import structlog
@pytest.fixture(autouse=True)
def setup():
structlog.configure(
processors=[
structlog.processors.JSONRenderer(ensure_ascii=False),
],
context_class=structlog.threadlocal.wrap_dict(dict),
logger_factory=structlog.stdlib.LoggerFactory(),
... | 26 | 66 | 0.699519 | 42 | 416 | 6.714286 | 0.690476 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206731 | 416 | 15 | 67 | 27.733333 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.153846 | 0 | 0.230769 | 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 |
d5aeb7169dd5488c77699e15ae16e978f40d715e | 3,271 | py | Python | lib/db_manager.py | kevin20888802/liang-medicine-line-bot-py | 07f63759e63272460f5ecfb0ce8fd6ed62b50e1c | [
"Apache-2.0"
] | null | null | null | lib/db_manager.py | kevin20888802/liang-medicine-line-bot-py | 07f63759e63272460f5ecfb0ce8fd6ed62b50e1c | [
"Apache-2.0"
] | null | null | null | lib/db_manager.py | kevin20888802/liang-medicine-line-bot-py | 07f63759e63272460f5ecfb0ce8fd6ed62b50e1c | [
"Apache-2.0"
] | null | null | null | import psycopg2
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
import os
import urllib.parse as urlparse
class PostgresBaseManager:
def __init__(self,local):
self.database = 'postgres'
self.user = 'postgres'
self.password = '1234'
self.host = 'localhost'
self.p... | 25.356589 | 68 | 0.595537 | 357 | 3,271 | 5.403361 | 0.330532 | 0.041472 | 0.02281 | 0.035251 | 0.282011 | 0.236392 | 0.217211 | 0.217211 | 0.179886 | 0.179886 | 0 | 0.024283 | 0.307551 | 3,271 | 129 | 69 | 25.356589 | 0.827373 | 0.034852 | 0 | 0.392523 | 0 | 0 | 0.353418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056075 | false | 0.102804 | 0.037383 | 0 | 0.140187 | 0.028037 | 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 |
6341b0389a7fba7d8c81d28e1d7d34cd6e28e72b | 1,968 | py | Python | threp_example.py | wasupandceacar/threp_fucker | d6879ce613e189131ff994a41d5d828a3e3b527d | [
"MIT"
] | 24 | 2018-02-12T13:44:57.000Z | 2021-12-16T09:49:54.000Z | threp_example.py | wasupandceacar/threp_fucker | d6879ce613e189131ff994a41d5d828a3e3b527d | [
"MIT"
] | 4 | 2018-03-14T12:16:29.000Z | 2021-12-22T12:03:23.000Z | threp_example.py | wasupandceacar/threp_fucker | d6879ce613e189131ff994a41d5d828a3e3b527d | [
"MIT"
] | 3 | 2020-02-01T12:03:38.000Z | 2021-12-15T18:02:32.000Z | from threp import THReplay
if __name__ == '__main__':
# 载入一个replay文件,参数为路径
tr = THReplay('rep_tst/th13_01.rpy')
# 获取rep基本信息,包含机体,难度,通关情况,字符串
# etc. Reimu A Normal All
print(tr.getBaseInfo())
# 获取rep基本信息的字典,包含机体,难度,通关情况,字符串
# 字典的键分别为 character shottype rank stage
# etc. Reimu A Normal ... | 28.521739 | 325 | 0.521341 | 240 | 1,968 | 4.770833 | 0.504167 | 0.029694 | 0.041921 | 0.052402 | 0.102183 | 0.102183 | 0.102183 | 0.058515 | 0.042795 | 0.042795 | 0 | 0.083117 | 0.21748 | 1,968 | 69 | 326 | 28.521739 | 0.576623 | 0.667683 | 0 | 0 | 0 | 0 | 0.043902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.8 | 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 |
63494cbde2d85460ac5f8725fc7d01e2aee00fe5 | 43,623 | py | Python | usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py | emmilinuxorg/emmi-aplicativos | ae84dcc8b9441dd6c735f70a9b1a8ec91871955d | [
"MIT"
] | null | null | null | usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py | emmilinuxorg/emmi-aplicativos | ae84dcc8b9441dd6c735f70a9b1a8ec91871955d | [
"MIT"
] | null | null | null | usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py | emmilinuxorg/emmi-aplicativos | ae84dcc8b9441dd6c735f70a9b1a8ec91871955d | [
"MIT"
] | null | null | null | # Copyright (C) 2009 Matthew McGowan
#
# Authors:
# Matthew McGowan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | 30.763752 | 86 | 0.562799 | 5,687 | 43,623 | 4.054862 | 0.090206 | 0.063833 | 0.040069 | 0.019167 | 0.530833 | 0.46791 | 0.420165 | 0.39549 | 0.365742 | 0.343235 | 0 | 0.017734 | 0.334273 | 43,623 | 1,417 | 87 | 30.785462 | 0.776316 | 0.108865 | 0 | 0.482341 | 0 | 0 | 0.01073 | 0.001849 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004036 | 0.006054 | null | null | 0.003027 | 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 |
634b7d80c5c9288d78d5d9a43bb5596a0c00f3ab | 438 | py | Python | doc/python_study_code/fibc.py | beiliwenxiao/vimrc | eb38fc769f3f5f78000060dac674b5c49d63c24c | [
"MIT"
] | null | null | null | doc/python_study_code/fibc.py | beiliwenxiao/vimrc | eb38fc769f3f5f78000060dac674b5c49d63c24c | [
"MIT"
] | null | null | null | doc/python_study_code/fibc.py | beiliwenxiao/vimrc | eb38fc769f3f5f78000060dac674b5c49d63c24c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
__metaclass__ = type
class Fibs:
"""docstring for Fibc"""
def __init__(self):
self.a = 0
self.b = 1
def next(self):
self.a, self.b = self.b, self.a+self.b
return self.a
def __iter__(self):
return self
fibs = Fibs()
for f in f... | 19.043478 | 46 | 0.561644 | 62 | 438 | 3.774194 | 0.548387 | 0.08547 | 0.076923 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 0.324201 | 438 | 22 | 47 | 19.909091 | 0.695946 | 0.075342 | 0 | 0 | 0 | 0 | 0.039578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.117647 | 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 |
6353fd03f408a3e420c9272508ec8a75165d4ec5 | 2,395 | py | Python | tmc/config.py | jgke/tmc.py | a061d199ecce0274c1fa554fb065e13647d9862b | [
"MIT"
] | null | null | null | tmc/config.py | jgke/tmc.py | a061d199ecce0274c1fa554fb065e13647d9862b | [
"MIT"
] | null | null | null | tmc/config.py | jgke/tmc.py | a061d199ecce0274c1fa554fb065e13647d9862b | [
"MIT"
] | null | null | null | import os
from os import path, environ
from configparser import ConfigParser
from collections import OrderedDict
class Config(object):
"""
This class will take care of ConfigParser and writing / reading the
configuration.
TODO: What to do when there are more variables to be configured? Should we
... | 31.513158 | 78 | 0.622547 | 278 | 2,395 | 5.158273 | 0.370504 | 0.055788 | 0.096234 | 0.043236 | 0.037657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264718 | 2,395 | 75 | 79 | 31.933333 | 0.81431 | 0.100626 | 0 | 0 | 0 | 0 | 0.151744 | 0.041942 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.132075 | false | 0 | 0.075472 | 0.018868 | 0.339623 | 0.018868 | 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 |
63625b735919dfc4cb5cbf688dbf97a5a8eb7672 | 2,709 | py | Python | src/generated-spec/data_pipeline.py | wheerd/cloudformation-to-terraform | 5411b33293e1f7d7673bb5d4cb52ff0537240db3 | [
"MIT"
] | null | null | null | src/generated-spec/data_pipeline.py | wheerd/cloudformation-to-terraform | 5411b33293e1f7d7673bb5d4cb52ff0537240db3 | [
"MIT"
] | null | null | null | src/generated-spec/data_pipeline.py | wheerd/cloudformation-to-terraform | 5411b33293e1f7d7673bb5d4cb52ff0537240db3 | [
"MIT"
] | null | null | null | from . import *
class AWS_DataPipeline_Pipeline_ParameterAttribute(CloudFormationProperty):
def write(self, w):
with w.block("parameter_attribute"):
self.property(w, "Key", "key", StringValueConverter())
self.property(w, "StringValue", "string_value", StringValueConverter())
class AWS_DataPipeline_... | 42.328125 | 132 | 0.741602 | 290 | 2,709 | 6.727586 | 0.189655 | 0.115325 | 0.176832 | 0.100461 | 0.6653 | 0.60328 | 0.55715 | 0.49308 | 0.470015 | 0.235264 | 0 | 0 | 0.133998 | 2,709 | 63 | 133 | 43 | 0.831628 | 0.057217 | 0 | 0.382979 | 0 | 0 | 0.153121 | 0.020416 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.148936 | false | 0 | 0.021277 | 0 | 0.404255 | 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 |
636de814ecdedb3663dd101d8eaad27c3d18f26b | 3,443 | py | Python | app/mods/calculator.py | MzB-Teaching/calculator | 2de5f554a6cfb4a5f4047c7779b29808563d99bb | [
"Unlicense"
] | null | null | null | app/mods/calculator.py | MzB-Teaching/calculator | 2de5f554a6cfb4a5f4047c7779b29808563d99bb | [
"Unlicense"
] | null | null | null | app/mods/calculator.py | MzB-Teaching/calculator | 2de5f554a6cfb4a5f4047c7779b29808563d99bb | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
"""This is a simple python3 calculator for demonstration purposes
some to-do's but we'll get to that"""
__author__ = "Sebastian Meier zu Biesen"
__copyright__ = "2000-2019 by MzB Solutions"
__email__ = "smzb@mitos-kalandiel.me"
class Calculator(object):
@property
def isDebug(self):
... | 24.949275 | 65 | 0.577984 | 388 | 3,443 | 4.974227 | 0.298969 | 0.049741 | 0.049741 | 0.066321 | 0.165803 | 0.165803 | 0.049741 | 0.049741 | 0.049741 | 0.049741 | 0 | 0.02467 | 0.317165 | 3,443 | 137 | 66 | 25.131387 | 0.796257 | 0.129829 | 0 | 0.2 | 0 | 0 | 0.076242 | 0.007828 | 0 | 0 | 0 | 0.007299 | 0 | 1 | 0.242105 | false | 0 | 0 | 0.052632 | 0.378947 | 0.063158 | 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 |
6371f69bd422691fe8339fc5e5157ce5b0079115 | 327 | py | Python | genomics_geek/graphql/mixins.py | genomics-geek/genomics-geek.com | ba24be4a0e3d569859a5378d4e7054d58c88728e | [
"MIT"
] | null | null | null | genomics_geek/graphql/mixins.py | genomics-geek/genomics-geek.com | ba24be4a0e3d569859a5378d4e7054d58c88728e | [
"MIT"
] | 2 | 2018-10-15T20:37:03.000Z | 2018-10-15T20:37:21.000Z | earsie_eats_blog/graphql/mixins.py | genomics-geek/earsie-eats.com | b2d1e6626daa44b5e03198bdc9362758803fd3ee | [
"MIT"
] | 1 | 2019-05-16T03:54:21.000Z | 2019-05-16T03:54:21.000Z | from graphene import Int
from .decorators import require_authenication
class PrimaryKeyMixin(object):
pk = Int(source='pk')
class LoginRequiredMixin(object):
@classmethod
@require_authenication(info_position=1)
def get_node(cls, info, id):
return super(LoginRequiredMixin, cls).get_node(inf... | 20.4375 | 64 | 0.740061 | 39 | 327 | 6.076923 | 0.615385 | 0.168776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.168196 | 327 | 15 | 65 | 21.8 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 1 |
63763ebb1e4d5814f4a75ddf0793dd74b59fa669 | 370 | py | Python | myapp/migrations/0002_studentmodel_dob.py | RajapandiR/Student | b0da4a04394381fda52f75234f6347c43958454a | [
"MIT"
] | null | null | null | myapp/migrations/0002_studentmodel_dob.py | RajapandiR/Student | b0da4a04394381fda52f75234f6347c43958454a | [
"MIT"
] | null | null | null | myapp/migrations/0002_studentmodel_dob.py | RajapandiR/Student | b0da4a04394381fda52f75234f6347c43958454a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-23 16:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='studentmodel',
name='DOB',
fi... | 19.473684 | 47 | 0.581081 | 39 | 370 | 5.461538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073359 | 0.3 | 370 | 18 | 48 | 20.555556 | 0.749035 | 0.121622 | 0 | 0 | 1 | 0 | 0.099071 | 0 | 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 |
6380b2f2030ee551fa4870964c341464ca8bdcf7 | 2,828 | py | Python | Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py | moiSS00/CN | 1e30b43ee2167d15fbc8c472ff9637c2b920c3d4 | [
"MIT"
] | null | null | null | Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py | moiSS00/CN | 1e30b43ee2167d15fbc8c472ff9637c2b920c3d4 | [
"MIT"
] | null | null | null | Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py | moiSS00/CN | 1e30b43ee2167d15fbc8c472ff9637c2b920c3d4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Ejercicio 2: Aproximación numérica de orden 1 y de orden 2 de la
derivada de la función f(x) = 1/x.
"""
import numpy as np
import matplotlib.pyplot as plt
# Función f(x)= 1/x y su derivada f'
f = lambda x:1/x # función f
df = lambda x:(-1)/x**2 # derivada exacta f'
#-----------... | 43.507692 | 110 | 0.631542 | 465 | 2,828 | 3.75914 | 0.215054 | 0.048055 | 0.02746 | 0.045767 | 0.419908 | 0.356979 | 0.297483 | 0.297483 | 0.217391 | 0.215103 | 0 | 0.02969 | 0.178218 | 2,828 | 64 | 111 | 44.1875 | 0.722461 | 0.665134 | 0 | 0 | 0 | 0 | 0.075556 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.08 | 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 |
6381338cf437e2f23817a23137a8ed44d42f412e | 1,982 | py | Python | examples/multi_client_example.py | ondewo/ondewo-csi-client-python | 5ba00402d7d28374f49eb485dd6ed661ebc446f2 | [
"Apache-2.0"
] | null | null | null | examples/multi_client_example.py | ondewo/ondewo-csi-client-python | 5ba00402d7d28374f49eb485dd6ed661ebc446f2 | [
"Apache-2.0"
] | 2 | 2021-05-25T09:18:32.000Z | 2021-07-02T10:14:29.000Z | examples/multi_client_example.py | ondewo/ondewo-csi-client-python | 5ba00402d7d28374f49eb485dd6ed661ebc446f2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#
# Copyright 2021 ONDEWO GmbH
#
# 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 ap... | 41.291667 | 108 | 0.799697 | 301 | 1,982 | 5.146179 | 0.355482 | 0.038735 | 0.046482 | 0.051646 | 0.140736 | 0.065849 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0.114531 | 1,982 | 47 | 109 | 42.170213 | 0.862108 | 0.292129 | 0 | 0.086957 | 0 | 0 | 0.186013 | 0.060562 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.391304 | 0 | 0.391304 | 0.130435 | 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 |
6389dbaa2631db7b30ed8767e0e5b57b31566133 | 399 | py | Python | restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py | ShubhamJain0/ShubhamJain0.github.io | bf73d2a8f55c3362908c8102d1788a34627dba44 | [
"MIT"
] | null | null | null | restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py | ShubhamJain0/ShubhamJain0.github.io | bf73d2a8f55c3362908c8102d1788a34627dba44 | [
"MIT"
] | 4 | 2021-04-08T21:52:50.000Z | 2022-02-10T09:29:03.000Z | restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py | ShubhamJain0/Restaurant-App | bf73d2a8f55c3362908c8102d1788a34627dba44 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2020-05-08 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0002_auto_20200508_1115'),
]
operations = [
migrations.AlterField(
model_name='yourorder',
name='phone',
... | 21 | 61 | 0.60401 | 44 | 399 | 5.363636 | 0.818182 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114983 | 0.280702 | 399 | 18 | 62 | 22.166667 | 0.707317 | 0.112782 | 0 | 0 | 1 | 0 | 0.125 | 0.065341 | 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 |
638ca1bd53358131bd94d7e2bbba9486f9304c18 | 1,068 | py | Python | python/dazl/model/__init__.py | DACH-NY/dazl-client | 56c8b1be047415b2bcb35b6558de4a780a402458 | [
"Apache-2.0"
] | null | null | null | python/dazl/model/__init__.py | DACH-NY/dazl-client | 56c8b1be047415b2bcb35b6558de4a780a402458 | [
"Apache-2.0"
] | null | null | null | python/dazl/model/__init__.py | DACH-NY/dazl-client | 56c8b1be047415b2bcb35b6558de4a780a402458 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017-2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""
:mod:`dazl.model` package
=========================
This module is deprecated. These types have generally moved to :mod:`dazl.client` (for the API
introduced in dazl v5) or ... | 30.514286 | 102 | 0.712547 | 135 | 1,068 | 5.592593 | 0.466667 | 0.119205 | 0.201325 | 0.058278 | 0.21457 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0.014024 | 0.132022 | 1,068 | 34 | 103 | 31.411765 | 0.800432 | 0.606742 | 0 | 0 | 0 | 0 | 0.314634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 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 |
63947c1901639950a3d0a9a8e03f0f05a930b237 | 270 | py | Python | subset_train.py | sngweicong/DeepCTR-Torch | 67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af | [
"Apache-2.0"
] | null | null | null | subset_train.py | sngweicong/DeepCTR-Torch | 67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af | [
"Apache-2.0"
] | null | null | null | subset_train.py | sngweicong/DeepCTR-Torch | 67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af | [
"Apache-2.0"
] | null | null | null | data_size_plus_header = 1000001
train_dir = 'train'
subset_train_dir = 'sub_train.txt'
fullfile = open(train_dir, 'r')
subfile = open(subset_train_dir,'w')
for i in range(data_size_plus_header):
subfile.write(fullfile.readline())
fullfile.close()
subfile.close()
| 20.769231 | 38 | 0.759259 | 41 | 270 | 4.682927 | 0.536585 | 0.166667 | 0.125 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029167 | 0.111111 | 270 | 12 | 39 | 22.5 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
63a0482e773f0b1712ad551a2e29a76da9779874 | 6,767 | py | Python | sdk/python/pulumi_azure/blueprint/get_published_version.py | aangelisc/pulumi-azure | 71dd9c75403146e16f7480e5a60b08bc0329660e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/blueprint/get_published_version.py | aangelisc/pulumi-azure | 71dd9c75403146e16f7480e5a60b08bc0329660e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/blueprint/get_published_version.py | aangelisc/pulumi-azure | 71dd9c75403146e16f7480e5a60b08bc0329660e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 36.578378 | 192 | 0.661741 | 783 | 6,767 | 5.446999 | 0.189017 | 0.048769 | 0.037515 | 0.058617 | 0.210551 | 0.139273 | 0.075029 | 0.045487 | 0.022978 | 0 | 0 | 0.000586 | 0.243239 | 6,767 | 184 | 193 | 36.777174 | 0.832259 | 0.174376 | 0 | 0.114754 | 1 | 0 | 0.154475 | 0.025065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106557 | false | 0 | 0.040984 | 0.040984 | 0.262295 | 0.098361 | 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 |
63a2bc2fc9589a6a626eb31088dda639a15a9368 | 2,578 | py | Python | stx-metrics/footprint/tests/send_data_test.py | gaponcec/tools-contrib | 3e0d14040eec54de969dee22919c4d54c4d7c630 | [
"Apache-2.0"
] | 1 | 2019-03-25T19:21:57.000Z | 2019-03-25T19:21:57.000Z | stx-metrics/footprint/tests/send_data_test.py | gaponcec/tools-contrib | 3e0d14040eec54de969dee22919c4d54c4d7c630 | [
"Apache-2.0"
] | 3 | 2019-04-03T01:45:24.000Z | 2019-07-25T15:22:31.000Z | stx-metrics/footprint/tests/send_data_test.py | gaponcec/tools-contrib | 3e0d14040eec54de969dee22919c4d54c4d7c630 | [
"Apache-2.0"
] | 7 | 2019-03-25T18:53:44.000Z | 2020-02-18T09:17:03.000Z | #!/usr/bin/env python
__author__ = "Mario Carrillo"
import random
import time
import argparse
from influxdb import InfluxDBClient
INFLUX_SERVER = ""
INFLUX_PORT = ""
INFLUX_PASS = ""
INFLUX_USER = ""
def send_data(json_file):
client = InfluxDBClient(INFLUX_SERVER, INFLUX_PORT,
... | 24.320755 | 70 | 0.572149 | 285 | 2,578 | 4.947368 | 0.291228 | 0.034043 | 0.048227 | 0.053901 | 0.382979 | 0.348936 | 0.289362 | 0.212766 | 0.212766 | 0.153191 | 0 | 0.007441 | 0.322343 | 2,578 | 105 | 71 | 24.552381 | 0.799657 | 0.022498 | 0 | 0.26506 | 0 | 0 | 0.146661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0.108434 | 0.048193 | 0 | 0.096386 | 0.048193 | 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 |
63aa46352916f59092337f4bb1b5c13be2e2644b | 649 | py | Python | modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | import logging
def create_app(config=None, testing=False):
from airflow.www_rbac import app as airflow_app
app, appbuilder = airflow_app.create_app(config=config, testing=testing)
# only now we can load view..
# this import might causes circular dependency if placed above
from dbnd_airflow.airfl... | 28.217391 | 76 | 0.753467 | 84 | 649 | 5.607143 | 0.511905 | 0.057325 | 0.095541 | 0.093418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180277 | 649 | 22 | 77 | 29.5 | 0.885338 | 0.135593 | 0 | 0 | 0 | 0 | 0.066308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 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 |
63ac6d028038f4c5c0f57741dd002fb5b4dacbf1 | 3,793 | py | Python | runway/lookups/handlers/random_string.py | onicagroup/runway | d50cac0e4878ff0691943029aa4f5b85d426a3b0 | [
"Apache-2.0"
] | 134 | 2018-02-26T21:35:23.000Z | 2022-03-03T00:30:27.000Z | runway/lookups/handlers/random_string.py | onicagroup/runway | d50cac0e4878ff0691943029aa4f5b85d426a3b0 | [
"Apache-2.0"
] | 937 | 2018-03-08T22:04:35.000Z | 2022-03-30T12:21:47.000Z | runway/lookups/handlers/random_string.py | onicagroup/runway | d50cac0e4878ff0691943029aa4f5b85d426a3b0 | [
"Apache-2.0"
] | 70 | 2018-02-26T23:48:11.000Z | 2022-03-02T18:44:30.000Z | """Generate a random string."""
# pyright: reportIncompatibleMethodOverride=none
from __future__ import annotations
import logging
import secrets
import string
from typing import TYPE_CHECKING, Any, Callable, List, Sequence, Union
from typing_extensions import Final, Literal
from ...utils import BaseModel
from .base... | 30.58871 | 80 | 0.631426 | 448 | 3,793 | 5.214286 | 0.279018 | 0.038955 | 0.025685 | 0.02911 | 0.131421 | 0.108305 | 0.108305 | 0.043664 | 0.043664 | 0.043664 | 0 | 0 | 0.273398 | 3,793 | 123 | 81 | 30.837398 | 0.847605 | 0.199051 | 0 | 0.213333 | 1 | 0 | 0.015114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106667 | false | 0 | 0.12 | 0 | 0.426667 | 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 |
63b20249148e887bf399bbe4138aaff1329b132a | 983 | py | Python | fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py | aherculano/fwl-project | 6d4c4d40393b76d45cf13b572b5aabc0696e9285 | [
"MIT"
] | null | null | null | fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py | aherculano/fwl-project | 6d4c4d40393b76d45cf13b572b5aabc0696e9285 | [
"MIT"
] | null | null | null | fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py | aherculano/fwl-project | 6d4c4d40393b76d45cf13b572b5aabc0696e9285 | [
"MIT"
] | null | null | null | from .FirewallName import FirewallName
from .FirewallUUID import FirewallUUID
from .FirewallAccessLayer import FirewallAccessLayer
class Firewall(object):
def __init__(self, uuid: FirewallUUID, name: FirewallName, access_layer: FirewallAccessLayer):
self.uuid = uuid
self.name = name
self.... | 23.97561 | 98 | 0.670397 | 109 | 983 | 5.807339 | 0.220183 | 0.139021 | 0.07109 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251272 | 983 | 40 | 99 | 24.575 | 0.860054 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.1 | 0.1 | 0.566667 | 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 |
63b7a45ec105c6ba1c889efaafdedd671e56a63a | 803 | py | Python | example/fastapi/models.py | cnjlq84/oidc-op | c7ab007327cc1a5e69abba7699c0be5f29534049 | [
"Apache-2.0"
] | 31 | 2020-09-15T21:18:05.000Z | 2022-02-17T02:50:04.000Z | example/fastapi/models.py | cnjlq84/oidc-op | c7ab007327cc1a5e69abba7699c0be5f29534049 | [
"Apache-2.0"
] | 106 | 2021-03-26T17:12:54.000Z | 2022-03-11T07:19:46.000Z | example/fastapi/models.py | cnjlq84/oidc-op | c7ab007327cc1a5e69abba7699c0be5f29534049 | [
"Apache-2.0"
] | 13 | 2020-02-12T16:31:01.000Z | 2022-03-03T09:54:44.000Z | from typing import List
from typing import Optional
from pydantic import BaseModel
class WebFingerRequest(BaseModel):
rel: Optional[str] = 'http://openid.net/specs/connect/1.0/issuer'
resource: str
class AuthorizationRequest(BaseModel):
acr_values: Optional[List[str]]
claims: Optional[dict]
cla... | 25.09375 | 69 | 0.711083 | 102 | 803 | 5.480392 | 0.460784 | 0.177102 | 0.107335 | 0.078712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003058 | 0.185554 | 803 | 31 | 70 | 25.903226 | 0.851682 | 0 | 0 | 0 | 0 | 0 | 0.052304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.115385 | 0 | 1 | 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 |
63c7b536e598facda277d873456c65962337d344 | 508 | py | Python | src/hitachi2020_b.py | 06keito/study-atcoder | c859e542079b550d19fa5e5e632e982a0dbb9578 | [
"MIT"
] | 1 | 2021-08-19T07:21:47.000Z | 2021-08-19T07:21:47.000Z | src/hitachi2020_b.py | 06keito/main-repository | c859e542079b550d19fa5e5e632e982a0dbb9578 | [
"MIT"
] | null | null | null | src/hitachi2020_b.py | 06keito/main-repository | c859e542079b550d19fa5e5e632e982a0dbb9578 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
A,B,M = map(int,input().split())
A_prise = list(map(int,input().split()))
B_prise = list(map(int,input().split()))
Most_low_prise = min(A_prise)+min(B_prise)
for i in range(M):
x,y,c = map(int,input().split())
Post_coupon_ori... | 31.75 | 74 | 0.627953 | 83 | 508 | 3.506024 | 0.421687 | 0.082474 | 0.151203 | 0.219931 | 0.171821 | 0.171821 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.190945 | 508 | 16 | 75 | 31.75 | 0.70073 | 0.082677 | 0 | 0 | 0 | 0 | 0.017204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.083333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.