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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca69091671f3380ba24c1920aca7d39718fe6f48 | 203 | py | Python | Python/to-lower-case.py | Ravan339/LeetCode | 4276e562aa67e4c39cd92be5d2d6700a9465a579 | [
"MIT"
] | 4 | 2019-12-09T20:23:17.000Z | 2021-11-24T08:59:21.000Z | Python/to-lower-case.py | Ravan339/LeetCode | 4276e562aa67e4c39cd92be5d2d6700a9465a579 | [
"MIT"
] | null | null | null | Python/to-lower-case.py | Ravan339/LeetCode | 4276e562aa67e4c39cd92be5d2d6700a9465a579 | [
"MIT"
] | 9 | 2020-03-15T23:32:26.000Z | 2022-02-25T05:51:26.000Z | # https://leetcode.com/problems/to-lower-case/submissions/
class Solution:
def toLowerCase(self, str):
"""
:type str: str
:rtype: str
"""
return str.lower()
| 18.454545 | 58 | 0.551724 | 22 | 203 | 5.090909 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305419 | 203 | 10 | 59 | 20.3 | 0.794326 | 0.413793 | 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 | 0 | 0 | 0 | 2 |
ca6c6d86214809026e0b195912a92d21bb9d6718 | 413 | py | Python | api/routers/search.py | Amsterdam/fixxx-cspp-mini-crm-api | 73af7cff8ca577bc13ce5f47713645b9edd6848a | [
"MIT"
] | 1 | 2021-09-29T12:41:14.000Z | 2021-09-29T12:41:14.000Z | api/routers/search.py | Amsterdam/fixxx-cspp-mini-crm-api | 73af7cff8ca577bc13ce5f47713645b9edd6848a | [
"MIT"
] | 1 | 2020-09-23T14:03:28.000Z | 2020-09-23T14:03:28.000Z | api/routers/search.py | Amsterdam/fixxx-cspp-mini-crm-api | 73af7cff8ca577bc13ce5f47713645b9edd6848a | [
"MIT"
] | 1 | 2020-10-22T13:50:45.000Z | 2020-10-22T13:50:45.000Z | from fastapi import APIRouter, Depends, Request
from sqlalchemy.orm import Session
from api import search
from ..dependencies import get_user
router = APIRouter()
# Dependency
def get_db(request: Request):
return request.state.db
@router.get("/api/v1/search/{key}")
def search_schools_and_contacts(key, db: Sess... | 25.8125 | 99 | 0.762712 | 60 | 413 | 5.116667 | 0.45 | 0.045603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.130751 | 413 | 16 | 100 | 25.8125 | 0.852368 | 0.024213 | 0 | 0 | 0 | 0 | 0.049751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
ca76deb4a40d5fb4378853f98aaa61d50bb10202 | 409 | py | Python | tests/test_version.py | kelsin/mypyprox | e731a56b34f5267da2d67aeef35f44348ea0c86e | [
"MIT"
] | null | null | null | tests/test_version.py | kelsin/mypyprox | e731a56b34f5267da2d67aeef35f44348ea0c86e | [
"MIT"
] | null | null | null | tests/test_version.py | kelsin/mypyprox | e731a56b34f5267da2d67aeef35f44348ea0c86e | [
"MIT"
] | null | null | null | import io
import contextlib
import unittest
from mypyprox import version
class TestTypes(unittest.TestCase):
def test_version(self):
self.assertTrue(isinstance(version.__version__, str))
def test_main(self):
out = io.StringIO()
with contextlib.redirect_stdout(out):
versio... | 22.722222 | 68 | 0.691932 | 47 | 409 | 5.702128 | 0.553191 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202934 | 409 | 17 | 69 | 24.058824 | 0.822086 | 0 | 0 | 0 | 0 | 0 | 0.075795 | 0.056235 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ca97398497f76afd49a5223d302578d5b755dbe4 | 1,260 | py | Python | moment/test/test_add_operator.py | KrixTam/pymoment | b938cafc4c772df55feb3daa41286eade6f3e310 | [
"MIT"
] | 1 | 2021-04-24T17:51:08.000Z | 2021-04-24T17:51:08.000Z | moment/test/test_add_operator.py | KrixTam/pymoment | b938cafc4c772df55feb3daa41286eade6f3e310 | [
"MIT"
] | null | null | null | moment/test/test_add_operator.py | KrixTam/pymoment | b938cafc4c772df55feb3daa41286eade6f3e310 | [
"MIT"
] | null | null | null | import unittest
from moment import moment
from datetime import timedelta
class TestAddOperator(unittest.TestCase):
def test_day(self):
a = moment('20201228').add(3, 'd')
b = moment('20201228') + timedelta(days=3)
self.assertEqual(a, b)
def test_second(self):
a = moment('20201... | 27.391304 | 60 | 0.588095 | 160 | 1,260 | 4.53125 | 0.35 | 0.231724 | 0.091034 | 0.157241 | 0.391724 | 0.270345 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0.148822 | 0.25873 | 1,260 | 45 | 61 | 28 | 0.627409 | 0 | 0 | 0.235294 | 0 | 0 | 0.111905 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 1 | 0.205882 | false | 0 | 0.088235 | 0 | 0.323529 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
046d2033eedc8c3e6af5d1811d715f3624bb73c7 | 776 | py | Python | src/server/models/caso.py | AssisDev/CT-I | 6ac6ecd71eb80740b546e20876108b61985afbe6 | [
"MIT"
] | null | null | null | src/server/models/caso.py | AssisDev/CT-I | 6ac6ecd71eb80740b546e20876108b61985afbe6 | [
"MIT"
] | null | null | null | src/server/models/caso.py | AssisDev/CT-I | 6ac6ecd71eb80740b546e20876108b61985afbe6 | [
"MIT"
] | null | null | null | from databases.config import db
# from datetime import datetime
class Caso(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
caso = db.Column(db.String(150), nullable=False)
n_sipia = db.Column(db.String(30))
conselheiro = db.Column(db.String(150))
local_guarda = db.Column... | 33.73913 | 78 | 0.688144 | 109 | 776 | 4.788991 | 0.431193 | 0.153257 | 0.191571 | 0.153257 | 0.295019 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.170103 | 776 | 23 | 79 | 33.73913 | 0.78882 | 0.164948 | 0 | 0 | 0 | 0 | 0.055814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.071429 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0472b3c394edd47e2e182c61417a754346641796 | 979 | py | Python | uploads/core/forms.py | lindsay777/ITRI_hospital_UI | ee82b44e7e0edd28580a4fbb37c277ff85da8192 | [
"MIT"
] | null | null | null | uploads/core/forms.py | lindsay777/ITRI_hospital_UI | ee82b44e7e0edd28580a4fbb37c277ff85da8192 | [
"MIT"
] | 1 | 2018-08-12T08:30:54.000Z | 2018-08-12T08:30:54.000Z | uploads/core/forms.py | lindsay777/ITRI_hospital_UI | ee82b44e7e0edd28580a4fbb37c277ff85da8192 | [
"MIT"
] | null | null | null | from django import forms
from uploads.core.models import Document
#from uploads.core.models import File
# 創造一個依照model的form,會繼承欄位description document
class DocumentForm(forms.ModelForm):
class Meta:
model = Document
fields = ('description', 'document', )
class nameForm(forms.Form):
rename=form... | 29.666667 | 47 | 0.657814 | 101 | 979 | 6.346535 | 0.435644 | 0.26209 | 0.079563 | 0.107644 | 0.24961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.215526 | 979 | 33 | 48 | 29.666667 | 0.826823 | 0.639428 | 0 | 0 | 0 | 0 | 0.057057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
04815bad5afc6b5dcd239f302d26dedd43f08ab7 | 3,103 | py | Python | ooobuild/lo/awt/x_toolkit.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/awt/x_toolkit.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/awt/x_toolkit.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 36.081395 | 134 | 0.701901 | 371 | 3,103 | 5.719677 | 0.487871 | 0.028275 | 0.028275 | 0.024505 | 0.112158 | 0.112158 | 0.080113 | 0.080113 | 0.080113 | 0 | 0 | 0.040917 | 0.212375 | 3,103 | 85 | 135 | 36.505882 | 0.827332 | 0.476636 | 0 | 0.222222 | 0 | 0 | 0.202742 | 0.106782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.296296 | 0 | 0.703704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
048336b41817f80e59dddb5663def0b8c6a116f3 | 257 | py | Python | crispy_forms/tests/urls.py | iedparis8/crispy-forms | a09cbdbff5ac57c9dfa47b871663d1f5670fa0bf | [
"MIT"
] | 3 | 2015-05-11T19:37:08.000Z | 2015-07-12T13:01:36.000Z | crispy_forms/tests/urls.py | iedparis8/crispy-forms | a09cbdbff5ac57c9dfa47b871663d1f5670fa0bf | [
"MIT"
] | 18 | 2015-05-06T21:14:14.000Z | 2015-08-29T18:24:43.000Z | crispy_forms/tests/urls.py | iedparis8/crispy-forms | a09cbdbff5ac57c9dfa47b871663d1f5670fa0bf | [
"MIT"
] | 1 | 2020-11-04T08:39:52.000Z | 2020-11-04T08:39:52.000Z | import django
if django.get_version() >= '1.5':
from django.conf.urls import patterns, url
else:
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('',
url(r'^simple/action/$', 'simpleAction', name = 'simpleAction'),
)
| 23.363636 | 68 | 0.692607 | 33 | 257 | 5.363636 | 0.606061 | 0.186441 | 0.158192 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009217 | 0.155642 | 257 | 10 | 69 | 25.7 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.167315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
049eed6df028fc51413d4b24ff72c0515a0cd7a2 | 3,621 | py | Python | tests/unit/api/decorators/test_validation.py | chadlung/pywebhooks | 4b5f41be7c3c498a31cb0225cbde8e63c48ce999 | [
"Apache-2.0"
] | 94 | 2015-04-03T12:10:54.000Z | 2021-08-30T13:50:48.000Z | tests/unit/api/decorators/test_validation.py | chadlung/pywebhooks | 4b5f41be7c3c498a31cb0225cbde8e63c48ce999 | [
"Apache-2.0"
] | 10 | 2016-06-07T17:34:39.000Z | 2019-11-23T00:00:09.000Z | tests/unit/api/decorators/test_validation.py | chadlung/pywebhooks | 4b5f41be7c3c498a31cb0225cbde8e63c48ce999 | [
"Apache-2.0"
] | 10 | 2015-04-14T18:03:08.000Z | 2021-08-30T13:50:49.000Z | # Standard lib imports
from http import client
import unittest
from unittest.mock import patch
# Third party imports
# None
# Project level imports
from pywebhooks.app import create_wsgi_app
from pywebhooks import DEFAULT_ACCOUNTS_TABLE
from pywebhooks.api.decorators.validation import validate_id_params,\
validat... | 32.621622 | 74 | 0.640155 | 396 | 3,621 | 5.532828 | 0.204545 | 0.058421 | 0.045185 | 0.061616 | 0.640803 | 0.640803 | 0.606116 | 0.606116 | 0.552259 | 0.520767 | 0 | 0.011014 | 0.272853 | 3,621 | 110 | 75 | 32.918182 | 0.821117 | 0.018503 | 0 | 0.493671 | 0 | 0 | 0.047337 | 0.006481 | 0 | 0 | 0 | 0 | 0.113924 | 1 | 0.202532 | false | 0.088608 | 0.088608 | 0 | 0.316456 | 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 | 0 | 0 | 0 | 2 |
04cb2cb1d8d6a3d2a810db80d371fe74aca2e969 | 17,926 | py | Python | krules_core/base_functions/processing.py | airspot-dev/krules-core | 300d1570d3cf7db20864ee51e165bc05d0cfd8df | [
"Apache-2.0"
] | 4 | 2020-06-22T15:25:16.000Z | 2021-08-25T14:44:41.000Z | krules_core/base_functions/processing.py | airspot-dev/krules-core | 300d1570d3cf7db20864ee51e165bc05d0cfd8df | [
"Apache-2.0"
] | null | null | null | krules_core/base_functions/processing.py | airspot-dev/krules-core | 300d1570d3cf7db20864ee51e165bc05d0cfd8df | [
"Apache-2.0"
] | 2 | 2020-11-02T17:42:29.000Z | 2020-11-03T09:11:44.000Z | # Copyright 2019 The KRules 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 or agreed to in writing,... | 37.659664 | 159 | 0.50993 | 1,616 | 17,926 | 5.581064 | 0.238243 | 0.018627 | 0.017075 | 0.012751 | 0.227298 | 0.190598 | 0.169753 | 0.169753 | 0.158887 | 0.158887 | 0 | 0.001121 | 0.402655 | 17,926 | 475 | 160 | 37.738947 | 0.841147 | 0.761129 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
04cbab4c1bd9506ae0c7a9cab1af32b734c15a0b | 1,540 | py | Python | drepr/old_code/prototype/drepr/services/ra_reader/net_cdf_reader.py | scorpio975/d-repr | 1d08024192642233d42d29e1d05f8713ee265bca | [
"MIT"
] | 5 | 2019-10-02T01:04:50.000Z | 2022-03-08T09:39:50.000Z | drepr/old_code/prototype/drepr/services/ra_reader/net_cdf_reader.py | scorpio975/d-repr | 1d08024192642233d42d29e1d05f8713ee265bca | [
"MIT"
] | 3 | 2020-06-13T22:09:48.000Z | 2021-04-23T08:23:49.000Z | drepr/old_code/prototype/drepr/services/ra_reader/net_cdf_reader.py | scorpio975/d-repr | 1d08024192642233d42d29e1d05f8713ee265bca | [
"MIT"
] | 5 | 2019-10-02T03:01:27.000Z | 2021-02-02T13:34:35.000Z | from pathlib import Path
from typing import List, Any, Union
import netCDF4
import numpy
from drepr.models import Variable, Location
from drepr.services.ra_reader.ra_reader import RAReader
from drepr.services.ra_reader.tensor_ra_reader import TensorRAReader
class NetCDFRAReader(RAReader):
def __init__(self, fp... | 37.560976 | 90 | 0.679221 | 224 | 1,540 | 4.491071 | 0.290179 | 0.087475 | 0.054672 | 0.059642 | 0.37674 | 0.327038 | 0.2833 | 0.229622 | 0.212724 | 0.212724 | 0 | 0.014493 | 0.193506 | 1,540 | 40 | 91 | 38.5 | 0.795491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.071429 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
04d2f32fbb17b58efe445c63596610f17f69c36a | 326 | py | Python | Twitch.py | borgej/BrexBot | 2413bd4ec978ed40b8e02b1452dcfac9451ee2c5 | [
"Apache-2.0"
] | null | null | null | Twitch.py | borgej/BrexBot | 2413bd4ec978ed40b8e02b1452dcfac9451ee2c5 | [
"Apache-2.0"
] | null | null | null | Twitch.py | borgej/BrexBot | 2413bd4ec978ed40b8e02b1452dcfac9451ee2c5 | [
"Apache-2.0"
] | null | null | null | __author__ = "Børge Jakobsen, Thomas Donegan"
__copyright__ = "Copyright 2019, Brexit boy and SaLmon king"
__credits__ = ["Børge Jakobsen, Thomas Donegan"]
__license__ = "Apache License"
__version__ = "2.0"
__maintainer__ = "Børge Jakobsen, Thomas Donegan"
__status__ = "Development"
import logging
from twitch.api impo... | 29.636364 | 60 | 0.776074 | 38 | 326 | 5.921053 | 0.710526 | 0.173333 | 0.253333 | 0.346667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024823 | 0.134969 | 326 | 10 | 61 | 32.6 | 0.77305 | 0 | 0 | 0 | 0 | 0 | 0.490798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 2 |
04ef03ed7dd9cf56f2d6d34944abc3f8b6af057e | 973 | py | Python | src/contact/views.py | hvpandey91/CuteCub-PlaySchool-Python-3-Django | 681e73a69443a80bc28c06e0328d9f7b48288e8c | [
"bzip2-1.0.6"
] | null | null | null | src/contact/views.py | hvpandey91/CuteCub-PlaySchool-Python-3-Django | 681e73a69443a80bc28c06e0328d9f7b48288e8c | [
"bzip2-1.0.6"
] | null | null | null | src/contact/views.py | hvpandey91/CuteCub-PlaySchool-Python-3-Django | 681e73a69443a80bc28c06e0328d9f7b48288e8c | [
"bzip2-1.0.6"
] | null | null | null | from django.shortcuts import render
from django.core.mail import send_mail
from django.conf import settings
# from .forms import contactForms
# Create your views here.
def contact(request):
context = locals()
template = 'contact.html'
return render(request,template,context)
'''def contact(request):
title = 'Conta... | 29.484848 | 77 | 0.732785 | 128 | 973 | 5.46875 | 0.453125 | 0.08 | 0.064286 | 0.071429 | 0.151429 | 0.151429 | 0.151429 | 0.151429 | 0 | 0 | 0 | 0 | 0.144913 | 973 | 32 | 78 | 30.40625 | 0.841346 | 0.056526 | 0 | 0 | 0 | 0 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b6ce035a1df1ed0bdc152448f35d0bb1b4582255 | 431 | py | Python | tuyaha/devices/switch.py | PaulAnnekov/tuya-ha | 8a487d704cec26d47ce336b474d367d357755053 | [
"MIT"
] | 153 | 2019-07-19T14:32:44.000Z | 2022-02-11T20:44:22.000Z | tuyaha/devices/switch.py | PaulAnnekov/tuya-ha | 8a487d704cec26d47ce336b474d367d357755053 | [
"MIT"
] | 97 | 2019-07-11T03:13:04.000Z | 2021-10-04T02:02:11.000Z | tuyaha/devices/switch.py | PaulAnnekov/tuya-ha | 8a487d704cec26d47ce336b474d367d357755053 | [
"MIT"
] | 96 | 2019-08-12T16:04:13.000Z | 2021-12-30T16:16:21.000Z |
from tuyaha.devices.base import TuyaDevice
class TuyaSwitch(TuyaDevice):
def turn_on(self):
if self._control_device("turnOnOff", {"value": "1"}):
self._update_data("state", True)
def turn_off(self):
if self._control_device("turnOnOff", {"value": "0"}):
self._update_d... | 25.352941 | 61 | 0.645012 | 53 | 431 | 5 | 0.528302 | 0.113208 | 0.075472 | 0.128302 | 0.279245 | 0.279245 | 0.279245 | 0 | 0 | 0 | 0 | 0.005917 | 0.215777 | 431 | 16 | 62 | 26.9375 | 0.778107 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b6f8501253519c672f12fdd6b868b94fb0287eb1 | 1,760 | py | Python | tests/test_wellknowntext.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 29 | 2015-09-02T15:53:48.000Z | 2022-02-04T19:47:49.000Z | tests/test_wellknowntext.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 531 | 2015-01-13T20:58:33.000Z | 2022-03-30T13:59:14.000Z | tests/test_wellknowntext.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 7 | 2015-02-28T22:34:32.000Z | 2020-12-06T05:16:13.000Z | """tests"""
import pytest
from shapely.geometry import Point, Polygon, LineString
from pyiem import wellknowntext
def test_parsecoordinate_lists():
"""Parse!"""
with pytest.raises(ValueError):
wellknowntext.parse_coordinate_lists(" ")
def test_unknown():
"""Test an emptry string."""
with p... | 32 | 63 | 0.642614 | 259 | 1,760 | 4.239382 | 0.239382 | 0.163934 | 0.196721 | 0.237705 | 0.594718 | 0.559199 | 0.559199 | 0.559199 | 0.517304 | 0.409836 | 0 | 0.136722 | 0.20625 | 1,760 | 54 | 64 | 32.592593 | 0.649248 | 0.035795 | 0 | 0.388889 | 0 | 0 | 0.240453 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
8e0431e5939c6cce8d26cff8f0eb59087e31e6b0 | 746 | py | Python | tests/django/test_django.py | ecarrara/connexion-faker | 43e2e053bc57c936105aa2790b34e1861cd4f9ec | [
"MIT"
] | 2 | 2022-01-10T13:01:29.000Z | 2022-02-22T17:50:50.000Z | tests/django/test_django.py | ecarrara/connexion-faker | 43e2e053bc57c936105aa2790b34e1861cd4f9ec | [
"MIT"
] | null | null | null | tests/django/test_django.py | ecarrara/connexion-faker | 43e2e053bc57c936105aa2790b34e1861cd4f9ec | [
"MIT"
] | 1 | 2022-02-15T20:25:58.000Z | 2022-02-15T20:25:58.000Z | import pytest
def test_settings(settings):
assert settings.ROOT_URLCONF == "tests.django.testapp.urls"
assert settings.INSTALLED_APPS == ['tests.django.testapp']
def test_hello_name(client):
resp = client.get("/hello")
assert resp.status_code == 200
assert resp.json() == {"name": any_string(), "la... | 29.84 | 73 | 0.689008 | 102 | 746 | 4.833333 | 0.5 | 0.10142 | 0.097363 | 0.115619 | 0.178499 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024233 | 0.170241 | 746 | 24 | 74 | 31.083333 | 0.772213 | 0 | 0 | 0 | 0 | 0 | 0.156836 | 0.063003 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.263158 | false | 0 | 0.052632 | 0.052632 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e1811007b43cc8cbb6ed69a030a57effefc0417 | 200 | py | Python | docs/examples/cpu_temperature_bar_graph.py | NotBobTheBuilder/gpiozero | aeb9d30056ec97e6bf896152e71a870bd0099b4e | [
"BSD-3-Clause"
] | 743 | 2019-07-31T02:57:08.000Z | 2022-03-31T08:48:30.000Z | docs/examples/cpu_temperature_bar_graph.py | NotBobTheBuilder/gpiozero | aeb9d30056ec97e6bf896152e71a870bd0099b4e | [
"BSD-3-Clause"
] | 259 | 2019-07-29T14:26:40.000Z | 2022-03-27T00:17:56.000Z | docs/examples/cpu_temperature_bar_graph.py | NotBobTheBuilder/gpiozero | aeb9d30056ec97e6bf896152e71a870bd0099b4e | [
"BSD-3-Clause"
] | 127 | 2019-08-03T19:30:18.000Z | 2022-02-24T14:33:50.000Z | from gpiozero import LEDBarGraph, CPUTemperature
from signal import pause
cpu = CPUTemperature(min_temp=50, max_temp=90)
leds = LEDBarGraph(2, 3, 4, 5, 6, 7, 8, pwm=True)
leds.source = cpu
pause()
| 20 | 49 | 0.74 | 32 | 200 | 4.5625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064706 | 0.15 | 200 | 9 | 50 | 22.222222 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
8e1dc295f22fc4c107c49e8475363af6d58a50a8 | 389 | py | Python | tests/2019/test_12_the_n_body_problem.py | wimglenn/advent-of-code-wim | 6308c3fa5d29b318680419f877fd5b8ac1359b5d | [
"WTFPL"
] | 20 | 2019-10-15T07:33:13.000Z | 2022-01-19T13:40:36.000Z | tests/2019/test_12_the_n_body_problem.py | wimglenn/advent-of-code-wim | 6308c3fa5d29b318680419f877fd5b8ac1359b5d | [
"WTFPL"
] | 5 | 2019-02-01T23:31:27.000Z | 2021-12-03T06:55:58.000Z | tests/2019/test_12_the_n_body_problem.py | wimglenn/advent-of-code-wim | 6308c3fa5d29b318680419f877fd5b8ac1359b5d | [
"WTFPL"
] | 8 | 2019-12-03T15:41:23.000Z | 2021-12-06T17:13:57.000Z | from aoc_wim.aoc2019 import q12
test10 = """\
<x=-1, y=0, z=2>
<x=2, y=-10, z=-7>
<x=4, y=-8, z=8>
<x=3, y=5, z=-1>"""
test100 = """\
<x=-8, y=-10, z=0>
<x=5, y=5, z=10>
<x=2, y=-7, z=3>
<x=9, y=-8, z=-3>"""
def test_total_energy_after_10_steps():
assert q12.simulate(test10, n=10) == 179
def test_total_energ... | 16.913043 | 47 | 0.573265 | 84 | 389 | 2.52381 | 0.392857 | 0.018868 | 0.028302 | 0.169811 | 0.216981 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196319 | 0.161954 | 389 | 22 | 48 | 17.681818 | 0.453988 | 0 | 0 | 0 | 0 | 0 | 0.367609 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e2f4a2880829789230d3d43a6e2fcf572c610bf | 3,795 | py | Python | src/parse.py | Arsh25/Oracl | a24acee6fe1aff688a44263ec4839ec1801a94ab | [
"MIT"
] | null | null | null | src/parse.py | Arsh25/Oracl | a24acee6fe1aff688a44263ec4839ec1801a94ab | [
"MIT"
] | null | null | null | src/parse.py | Arsh25/Oracl | a24acee6fe1aff688a44263ec4839ec1801a94ab | [
"MIT"
] | null | null | null | import pcapkit
import json
from pymongofunct import insert_data
def pcaptojson(file) -> dict:
return(pcapkit.extract(fin=file, nofile=True, format='json', auto=False,
engine='deafult', extension=False, layer='Transport', tcp=True, ip=True,strict=True, store=False))
def pcapparse(obj) -> dict:
ma... | 29.192308 | 106 | 0.562846 | 372 | 3,795 | 5.680108 | 0.239247 | 0.071936 | 0.153336 | 0.168954 | 0.123994 | 0.036914 | 0.036914 | 0.036914 | 0.036914 | 0.036914 | 0 | 0.016502 | 0.281423 | 3,795 | 129 | 107 | 29.418605 | 0.758343 | 0 | 0 | 0.46281 | 0 | 0 | 0.168116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033058 | false | 0.14876 | 0.024793 | 0.008264 | 0.082645 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f3e48065d5e41242a0c31cfa92e29adbdad6583b | 3,351 | py | Python | fabfile.py | stianjensen/wikipendium.no | de07b6cdc15daf350cbf2c1259e20879bf00dc95 | [
"Apache-2.0"
] | 19 | 2015-05-18T14:20:53.000Z | 2021-04-04T22:46:50.000Z | fabfile.py | stianjensen/wikipendium.no | de07b6cdc15daf350cbf2c1259e20879bf00dc95 | [
"Apache-2.0"
] | 132 | 2015-01-10T14:18:21.000Z | 2020-06-15T21:12:29.000Z | fabfile.py | wikipendium/wikipendium.no | de07b6cdc15daf350cbf2c1259e20879bf00dc95 | [
"Apache-2.0"
] | 6 | 2015-05-25T20:33:28.000Z | 2020-10-15T17:16:54.000Z | import time
import getpass
from fabric.api import *
from fabric.contrib.console import confirm
import subprocess
class Site(object):
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
def run(self, cmd):
with cd(self.dir):
sudo(cmd, user=self.user_id)
def backup(self)... | 25.580153 | 87 | 0.595942 | 444 | 3,351 | 4.423423 | 0.396396 | 0.035642 | 0.04277 | 0.035642 | 0.152749 | 0.143585 | 0.143585 | 0.115071 | 0.082485 | 0.082485 | 0 | 0.003236 | 0.26231 | 3,351 | 130 | 88 | 25.776923 | 0.791262 | 0.132498 | 0 | 0.146341 | 0 | 0.012195 | 0.267151 | 0.01343 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.073171 | 0.060976 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f3e51a18b80f9889219aa808796ec1a5cab2f6ab | 425 | py | Python | remote_image/example_forms.py | LucasCTN/django-remote-image | 76e5014cae4765aec93c588c52bab6bd1212d141 | [
"MIT"
] | 1 | 2020-10-29T14:06:59.000Z | 2020-10-29T14:06:59.000Z | remote_image/example_forms.py | LucasCTN/django-remote-image | 76e5014cae4765aec93c588c52bab6bd1212d141 | [
"MIT"
] | 1 | 2018-04-29T23:25:03.000Z | 2018-04-29T23:25:03.000Z | remote_image/example_forms.py | LucasCTN/django-remote-image | 76e5014cae4765aec93c588c52bab6bd1212d141 | [
"MIT"
] | 2 | 2018-05-01T21:35:23.000Z | 2020-10-29T14:08:33.000Z | from django import forms
from django.forms import ModelForm
from .fields import RemoteImageField
class ExampleForm(forms.Form):
remote_image = RemoteImageField(required=True)
class ExampleWhitelistedPNGForm(forms.Form):
remote_image = RemoteImageField(required=True, ext_whitelist=['png'])
class ExampleB... | 30.357143 | 73 | 0.795294 | 46 | 425 | 7.23913 | 0.434783 | 0.081081 | 0.135135 | 0.18018 | 0.45045 | 0.45045 | 0.45045 | 0.306306 | 0 | 0 | 0 | 0 | 0.115294 | 425 | 13 | 74 | 32.692308 | 0.885638 | 0 | 0 | 0 | 0 | 0 | 0.014118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
f3ece5356b43975e3770bf3220346c69c9763e0b | 3,282 | py | Python | pyradur/__init__.py | JPEWdev/pyradur | 42a2c1056bd66e10d799ef0ef8514f369a226944 | [
"MIT"
] | null | null | null | pyradur/__init__.py | JPEWdev/pyradur | 42a2c1056bd66e10d799ef0ef8514f369a226944 | [
"MIT"
] | null | null | null | pyradur/__init__.py | JPEWdev/pyradur | 42a2c1056bd66e10d799ef0ef8514f369a226944 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2018-2019 Garmin International or its subsidiaries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the righ... | 34.547368 | 92 | 0.66819 | 438 | 3,282 | 4.894977 | 0.369863 | 0.065299 | 0.041978 | 0.030317 | 0.171642 | 0.090485 | 0.090485 | 0.028918 | 0 | 0 | 0 | 0.003236 | 0.246801 | 3,282 | 94 | 93 | 34.914894 | 0.864078 | 0.334247 | 0 | 0.074074 | 0 | 0 | 0.035615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.018519 | 0.074074 | 0.148148 | 0.518519 | 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 | 0 | 0 | 0 | 2 |
f3f7e8ff948f64eccb9141646845d5df5e82a4a0 | 305 | py | Python | src/user.py | osuuster/Ward | 37f4f1d3b1f83d799af79d91fe73ab225c44c9a6 | [
"MIT"
] | null | null | null | src/user.py | osuuster/Ward | 37f4f1d3b1f83d799af79d91fe73ab225c44c9a6 | [
"MIT"
] | null | null | null | src/user.py | osuuster/Ward | 37f4f1d3b1f83d799af79d91fe73ab225c44c9a6 | [
"MIT"
] | null | null | null | class User:
"""User info"""
def __init__(self, email, first, last, device):
self.email = email
self.first = first.lower()
self.last = last.lower()
self.device = device.lower()
def fullname(self):
return ('{} {}'.format(self.first, self.last).title())
| 25.416667 | 62 | 0.563934 | 36 | 305 | 4.666667 | 0.416667 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268852 | 305 | 11 | 63 | 27.727273 | 0.753363 | 0.029508 | 0 | 0 | 0 | 0 | 0.017241 | 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 | 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 | 2 |
f3ff38139a85f968f04e4320716d4fddcde80681 | 319 | py | Python | Module 3/Chapter 4/ch4_21.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 50 | 2016-12-11T13:49:01.000Z | 2022-03-20T19:47:55.000Z | Module 3/Chapter 4/ch4_21.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | null | null | null | Module 3/Chapter 4/ch4_21.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 40 | 2017-06-14T14:02:48.000Z | 2021-10-14T06:25:00.000Z | import nltk
from nltk.tag import BigramTagger, TrigramTagger
from nltk.corpus import treebank
testing = treebank.tagged_sents()[2000:]
training= treebank.tagged_sents()[:7000]
bigramtag = BigramTagger(training)
print(bigramtag.evaluate(testing))
trigramtag = TrigramTagger(training)
print(trigramtag.evaluate(testing))
| 31.9 | 48 | 0.821317 | 37 | 319 | 7.027027 | 0.486486 | 0.061538 | 0.146154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027119 | 0.075235 | 319 | 9 | 49 | 35.444444 | 0.854237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6d01e5c2b35850c05afe33409979930052f03397 | 306 | py | Python | output/models/nist_data/atomic/positive_integer/schema_instance/nistschema_sv_iv_atomic_positive_integer_white_space_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/positive_integer/schema_instance/nistschema_sv_iv_atomic_positive_integer_white_space_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/positive_integer/schema_instance/nistschema_sv_iv_atomic_positive_integer_white_space_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.positive_integer.schema_instance.nistschema_sv_iv_atomic_positive_integer_white_space_1_xsd.nistschema_sv_iv_atomic_positive_integer_white_space_1 import NistschemaSvIvAtomicPositiveIntegerWhiteSpace1
__all__ = [
"NistschemaSvIvAtomicPositiveIntegerWhiteSpace1",
]
| 51 | 236 | 0.911765 | 33 | 306 | 7.727273 | 0.606061 | 0.164706 | 0.247059 | 0.156863 | 0.360784 | 0.360784 | 0.360784 | 0.360784 | 0.360784 | 0 | 0 | 0.013699 | 0.045752 | 306 | 5 | 237 | 61.2 | 0.859589 | 0 | 0 | 0 | 0 | 0 | 0.150327 | 0.150327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d090e06427c05507c58f8f6d0e30c52b329f9b9 | 427 | py | Python | structuralglass/__init__.py | normanrichardson/StructGlassCalcs | 0862560d926d7a6bc44c4762de53c516e01ed782 | [
"MIT"
] | 9 | 2021-12-21T16:15:41.000Z | 2022-02-27T05:16:54.000Z | structuralglass/__init__.py | normanrichardson/StructGlassCalcs | 0862560d926d7a6bc44c4762de53c516e01ed782 | [
"MIT"
] | null | null | null | structuralglass/__init__.py | normanrichardson/StructGlassCalcs | 0862560d926d7a6bc44c4762de53c516e01ed782 | [
"MIT"
] | 1 | 2021-12-24T05:31:28.000Z | 2021-12-24T05:31:28.000Z | import pint
from . import resources
try:
import importlib.resources as pkg_resources
except ImportError:
# Try backported to PY<37 `importlib_resources`.
import importlib_resources as pkg_resources
# Load the file stream for the units file
unit_file = pkg_resources.open_text(resources, "unit_def.txt")
#... | 23.722222 | 62 | 0.782201 | 61 | 427 | 5.295082 | 0.52459 | 0.167183 | 0.148607 | 0.160991 | 0.235294 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.152225 | 427 | 17 | 63 | 25.117647 | 0.88674 | 0.264637 | 0 | 0 | 0 | 0 | 0.03871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6d090eed2b4363cd8453d2011448b87cfc549a98 | 918 | py | Python | qiling/qiling/os/posix/stat.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:01.000Z | 2021-06-04T14:27:15.000Z | qiling/qiling/os/posix/stat.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | null | null | null | qiling/qiling/os/posix/stat.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:09.000Z | 2021-06-04T14:27:21.000Z | #!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
#
import os
class StatBase:
def __init__(self):
self._stat_buf = None
# Never iterate this object!
def __getitem__(self, key):
if type(key) is not str:
raise TypeError
... | 24.157895 | 75 | 0.636166 | 118 | 918 | 4.457627 | 0.40678 | 0.106464 | 0.125475 | 0.144487 | 0.226236 | 0.226236 | 0 | 0 | 0 | 0 | 0 | 0.002937 | 0.25817 | 918 | 37 | 76 | 24.810811 | 0.769457 | 0.133987 | 0 | 0.083333 | 0 | 0 | 0.002538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.041667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6d1f18e71f15e3903ac709402fbea7a7bda1d837 | 1,175 | py | Python | event/example.py | BrickOzp/TrainController | 4c446e6d4dde62f2b7f3b1369d8b088f6025fc02 | [
"Apache-2.0"
] | 3 | 2018-11-12T08:00:16.000Z | 2021-08-21T18:53:47.000Z | event/example.py | BrickOzp/TrainController | 4c446e6d4dde62f2b7f3b1369d8b088f6025fc02 | [
"Apache-2.0"
] | null | null | null | event/example.py | BrickOzp/TrainController | 4c446e6d4dde62f2b7f3b1369d8b088f6025fc02 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Copyright 2018 Oscar Rydhé
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... | 23.979592 | 76 | 0.695319 | 156 | 1,175 | 5.211538 | 0.634615 | 0.073801 | 0.03198 | 0.03936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010846 | 0.215319 | 1,175 | 48 | 77 | 24.479167 | 0.870933 | 0.500426 | 0 | 0.105263 | 0 | 0 | 0.074394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.105263 | 0.210526 | 0 | 0.473684 | 0.105263 | 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 | 0 | 0 | 0 | 2 |
6d215ed5cd115b757651b87a19a2400f60e78bf0 | 1,557 | py | Python | tfx/orchestration/kubeflow/utils.py | jolks/tfx | 48a9648df39f07d3b6b7d076662e5c0db542ff8d | [
"Apache-2.0"
] | 1 | 2021-10-04T21:53:34.000Z | 2021-10-04T21:53:34.000Z | tfx/orchestration/kubeflow/utils.py | hephaex/tfx | 76d8731cb54be3451e10d270d8bcb0589401135f | [
"Apache-2.0"
] | null | null | null | tfx/orchestration/kubeflow/utils.py | hephaex/tfx | 76d8731cb54be3451e10d270d8bcb0589401135f | [
"Apache-2.0"
] | null | null | null | # Lint as: python2, python3
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 37.97561 | 85 | 0.754656 | 192 | 1,557 | 5.963542 | 0.5625 | 0.052402 | 0.041921 | 0.027948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007886 | 0.185613 | 1,557 | 40 | 86 | 38.925 | 0.89511 | 0.459216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.411765 | 0 | 0.529412 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6d250d73259224f770b1bc40c69a9f61466ccf96 | 19,062 | py | Python | ytelapi/controllers/conference_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | ytelapi/controllers/conference_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | ytelapi/controllers/conference_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ytelapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
from .base_controller import BaseController
from ..api_helper import APIHelper
from ..configuration import Configuration
from ..http.auth.basic_auth import BasicAuth
class Con... | 38.200401 | 84 | 0.583307 | 1,885 | 19,062 | 5.702918 | 0.132626 | 0.034605 | 0.026512 | 0.04186 | 0.713488 | 0.686512 | 0.676279 | 0.663256 | 0.650605 | 0.650605 | 0 | 0.001649 | 0.363918 | 19,062 | 498 | 85 | 38.277108 | 0.884948 | 0.444602 | 0 | 0.606383 | 1 | 0 | 0.078477 | 0.034045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047872 | false | 0 | 0.021277 | 0 | 0.12234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d2decfbd4835c32fae66bc98eda3a12ebc8882c | 374 | py | Python | start.py | aragaer/partner | 2c31c0a72c24075ee4397c2550cc069294f39c0f | [
"MIT"
] | 1 | 2017-08-09T22:28:29.000Z | 2017-08-09T22:28:29.000Z | start.py | aragaer/partner | 2c31c0a72c24075ee4397c2550cc069294f39c0f | [
"MIT"
] | null | null | null | start.py | aragaer/partner | 2c31c0a72c24075ee4397c2550cc069294f39c0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
from dbus.mainloop.glib import DBusGMainLoop
from gi.repository import GObject
from partner import PartnerService
def main():
"""
Entry point.
"""
DBusGMainLoop(set_as_default=True)
PartnerService()
GObject.Mai... | 17 | 53 | 0.695187 | 44 | 374 | 5.681818 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.195187 | 374 | 21 | 54 | 17.809524 | 0.817276 | 0.229947 | 0 | 0 | 0 | 0 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.333333 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 2 |
6d4e46fa3f970135b525cde429b5bca48c611ef6 | 10,128 | py | Python | currint/tests/test_amount.py | valentin-eb/currint | 7a38b1f4ef5bef984e79cab343211d950a20f730 | [
"Apache-2.0"
] | 15 | 2015-07-19T10:54:34.000Z | 2019-10-23T16:48:09.000Z | currint/tests/test_amount.py | valentin-eb/currint | 7a38b1f4ef5bef984e79cab343211d950a20f730 | [
"Apache-2.0"
] | 6 | 2015-08-31T04:04:17.000Z | 2018-02-20T18:57:28.000Z | currint/tests/test_amount.py | valentin-eb/currint | 7a38b1f4ef5bef984e79cab343211d950a20f730 | [
"Apache-2.0"
] | 7 | 2017-10-12T22:38:23.000Z | 2021-09-15T16:33:37.000Z | # encoding: utf8
from __future__ import unicode_literals
import six
from decimal import Decimal
from unittest import TestCase
from ..currency import currencies, Currency
from ..amount import Amount, _ZeroAmount
class AmountTests(TestCase):
def test_equality(self):
self.assertEqual(
Amount(cur... | 35.661972 | 84 | 0.587579 | 1,087 | 10,128 | 5.346826 | 0.124195 | 0.217481 | 0.212491 | 0.11201 | 0.752581 | 0.671198 | 0.646249 | 0.566414 | 0.47746 | 0.401067 | 0 | 0.042418 | 0.271426 | 10,128 | 283 | 85 | 35.787986 | 0.744952 | 0.006023 | 0 | 0.335968 | 0 | 0 | 0.050278 | 0 | 0 | 0 | 0 | 0 | 0.316206 | 1 | 0.106719 | false | 0 | 0.023715 | 0 | 0.13834 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
6d52e9102efcc8f77db4ac46a016583fca8e2f9d | 460 | py | Python | madminer/plotting/__init__.py | johannbrehmer/madminer | 7fc053b23beca88429c0120b2b7d7b6c049944a9 | [
"MIT"
] | 13 | 2018-06-05T15:49:34.000Z | 2019-04-22T14:43:28.000Z | madminer/plotting/__init__.py | johannbrehmer/madminer | 7fc053b23beca88429c0120b2b7d7b6c049944a9 | [
"MIT"
] | 60 | 2018-08-24T17:41:47.000Z | 2020-10-20T13:34:51.000Z | madminer/plotting/__init__.py | johannbrehmer/madminer | 7fc053b23beca88429c0120b2b7d7b6c049944a9 | [
"MIT"
] | 16 | 2018-07-19T18:17:45.000Z | 2021-12-13T11:39:57.000Z | from .distributions import plot_distributions, plot_histograms
from .morphing import (
plot_2d_morphing_basis,
plot_nd_morphing_basis_scatter,
plot_nd_morphing_basis_slices,
plot_1d_morphing_basis,
)
from .fisherinformation import (
plot_fisherinfo_barplot,
plot_fisher_information_contours_2d,
... | 30.666667 | 62 | 0.832609 | 56 | 460 | 6.321429 | 0.446429 | 0.141243 | 0.079096 | 0.107345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007481 | 0.128261 | 460 | 14 | 63 | 32.857143 | 0.875312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ed8fd50e53790afecdc817a72aabf0b58f4dd46a | 850 | py | Python | apps/trade/urls.py | shao-169/SLTP | e849b0f6f888e68427523d02a3091003bbb0e32c | [
"MIT"
] | null | null | null | apps/trade/urls.py | shao-169/SLTP | e849b0f6f888e68427523d02a3091003bbb0e32c | [
"MIT"
] | null | null | null | apps/trade/urls.py | shao-169/SLTP | e849b0f6f888e68427523d02a3091003bbb0e32c | [
"MIT"
] | 3 | 2022-02-13T10:51:46.000Z | 2022-02-14T11:06:38.000Z | # _*_ encoding:utf-8 _*_
from django.conf.urls import url
from .views import *
__author__ = 'YZF'
__date__ = '2018/4/5,20:20'
urlpatterns =[
url(r'^list/',FightListView.as_view(),name='fight_list'),
url(r'^class/(?P<fight_id>.*)/', FightDetailView.as_view(), name='fight_class'),
url(r'^addcart/',AddCartVie... | 47.222222 | 87 | 0.678824 | 116 | 850 | 4.689655 | 0.413793 | 0.073529 | 0.183824 | 0.248162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014379 | 0.1 | 850 | 18 | 88 | 47.222222 | 0.696732 | 0.025882 | 0 | 0 | 0 | 0 | 0.287787 | 0.058041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 2 |
eda3d797c56f9d92d6bc42e787655490af268e8c | 692 | py | Python | article/views/home.py | vyahello/newspaper-parser | ad986dfc43e089f376ffe96251cf6481df133329 | [
"MIT"
] | null | null | null | article/views/home.py | vyahello/newspaper-parser | ad986dfc43e089f376ffe96251cf6481df133329 | [
"MIT"
] | 3 | 2020-08-20T10:19:16.000Z | 2022-01-28T10:38:22.000Z | article/views/home.py | vyahello/newspaper-parser | ad986dfc43e089f376ffe96251cf6481df133329 | [
"MIT"
] | null | null | null | """Contains API for home page views."""
from typing import Any
from flask import Response, render_template
from article import application
from article.status import HttpStatus
@application.route(rule="/")
@application.route(rule="/home")
@application.route(rule="/index")
def home() -> str:
"""Returns home page c... | 34.6 | 98 | 0.74422 | 92 | 692 | 5.478261 | 0.434783 | 0.079365 | 0.119048 | 0.087302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009885 | 0.122832 | 692 | 19 | 99 | 36.421053 | 0.820428 | 0.16763 | 0 | 0 | 0 | 0 | 0.087657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
eddf61fce32cdc49bddff4d9d1bae162941de07f | 343 | py | Python | scarletio/utils/compact.py | HuyaneMatsu/scarletio | 49e434a118bbf31586e2bf8631ac8d7c7a2f6ffb | [
"0BSD"
] | 3 | 2021-12-01T07:56:36.000Z | 2021-12-05T17:37:41.000Z | scarletio/utils/compact.py | HuyaneMatsu/scarletio | 49e434a118bbf31586e2bf8631ac8d7c7a2f6ffb | [
"0BSD"
] | 7 | 2021-12-04T14:29:27.000Z | 2022-03-07T18:32:28.000Z | scarletio/utils/compact.py | HuyaneMatsu/scarletio | 49e434a118bbf31586e2bf8631ac8d7c7a2f6ffb | [
"0BSD"
] | null | null | null | __all__ = ()
# Test for pypy bug:
# https://foss.heptapod.net/pypy/pypy/issues/3239
class dummy_init_tester:
def __new__(cls, value):
return object.__new__(cls)
__init__ = object.__init__
try:
dummy_init_tester(None)
except TypeError:
NEEDS_DUMMY_INIT = True
else:
NEEDS_DUMMY_INIT = False
... | 19.055556 | 49 | 0.720117 | 48 | 343 | 4.520833 | 0.625 | 0.207373 | 0.207373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.186589 | 343 | 17 | 50 | 20.176471 | 0.763441 | 0.19242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6117060608b41fa63be7345848dd9cc93b26aa42 | 477 | py | Python | variable_and_data_type/string_demo/multiline_string.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/string_demo/multiline_string.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/string_demo/multiline_string.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | # You can assign a multiline string to a variable by using three quotes:
a = """Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua."""
print(a)
# Or three single quotes:
a = '''Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eius... | 28.058824 | 88 | 0.756813 | 78 | 477 | 4.628205 | 0.602564 | 0.038781 | 0.066482 | 0.094183 | 0.637119 | 0.637119 | 0.637119 | 0.637119 | 0.637119 | 0.637119 | 0 | 0 | 0.176101 | 477 | 16 | 89 | 29.8125 | 0.918575 | 0.379455 | 0 | 0.6 | 0 | 0 | 0.842466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
612c0f56f534b279983a5e3cd3cae2fafe43d2b2 | 6,693 | py | Python | server/main/views/importer.py | zhwycsz/edd | bdc1d2f8b5e375d3a1254829b9d2b460dd09ca12 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-04-07T03:14:52.000Z | 2020-04-07T03:14:52.000Z | server/main/views/importer.py | zhwycsz/edd | bdc1d2f8b5e375d3a1254829b9d2b460dd09ca12 | [
"BSD-3-Clause-LBNL"
] | null | null | null | server/main/views/importer.py | zhwycsz/edd | bdc1d2f8b5e375d3a1254829b9d2b460dd09ca12 | [
"BSD-3-Clause-LBNL"
] | null | null | null | # coding: utf-8
"""
Views handling the legacy import to EDD.
"""
import json
import logging
import uuid
from django.conf import settings
from django.contrib import messages
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render
from django.utils.translation import ugettext as _
from dj... | 39.60355 | 99 | 0.625878 | 798 | 6,693 | 5.14411 | 0.339599 | 0.027284 | 0.020706 | 0.014616 | 0.183678 | 0.166382 | 0.136906 | 0.136906 | 0.110597 | 0.110597 | 0 | 0.000849 | 0.296429 | 6,693 | 168 | 100 | 39.839286 | 0.870886 | 0.228298 | 0 | 0.114035 | 0 | 0 | 0.122529 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.04386 | false | 0 | 0.403509 | 0 | 0.561404 | 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 | 0 | 0 | 0 | 2 |
612dff31e87bee1e3bd863d650341c1f358af827 | 584 | py | Python | Tty except.py | dimagela29/Python-POO | 61904b232b50779f37ed48a46cc317fc709a744e | [
"Apache-2.0",
"MIT"
] | null | null | null | Tty except.py | dimagela29/Python-POO | 61904b232b50779f37ed48a46cc317fc709a744e | [
"Apache-2.0",
"MIT"
] | null | null | null | Tty except.py | dimagela29/Python-POO | 61904b232b50779f37ed48a46cc317fc709a744e | [
"Apache-2.0",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Try except.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/14WiGGPNcZvzQap4fhgTkWTKv3ybjJnvc
"""
try:
a = "Curso python Orientado a objetos"
print(a)
except NameError as erro:
print('Erro do desenvolvedor, fale co... | 24.333333 | 77 | 0.736301 | 78 | 584 | 5.512821 | 0.705128 | 0.04186 | 0.076744 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010081 | 0.150685 | 584 | 24 | 78 | 24.333333 | 0.856855 | 0.321918 | 0 | 0.133333 | 1 | 0 | 0.451282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.533333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b637591c695dd89ec38a26ab0d2caf278f9def23 | 2,391 | py | Python | lfs.py | g-k/github-org-scripts | 8e301413f3944cb4ad0e7ebd8712c40342af8d4b | [
"BSD-3-Clause"
] | null | null | null | lfs.py | g-k/github-org-scripts | 8e301413f3944cb4ad0e7ebd8712c40342af8d4b | [
"BSD-3-Clause"
] | null | null | null | lfs.py | g-k/github-org-scripts | 8e301413f3944cb4ad0e7ebd8712c40342af8d4b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import re
import time
from github_selenium import GitHub2FA, WebDriverException
URL = "https://github.com/organizations/mozilla/settings/billing"
GH_LOGIN = os.getenv('GH_LOGIN', "org_owner_login")
GH_PASSWORD = os.getenv('GH_PASSWORD', ... | 31.88 | 83 | 0.584274 | 299 | 2,391 | 4.545151 | 0.488294 | 0.025754 | 0.033113 | 0.032377 | 0.05298 | 0.05298 | 0.05298 | 0.05298 | 0.05298 | 0 | 0 | 0.004118 | 0.289 | 2,391 | 74 | 84 | 32.310811 | 0.795294 | 0.115851 | 0 | 0.109091 | 0 | 0 | 0.235992 | 0.037512 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.036364 | false | 0.054545 | 0.127273 | 0 | 0.218182 | 0.145455 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
b63c0fd28ea15221aab117277a62246dd899f9d5 | 293 | py | Python | chaosplt_experiment/storage/model/__init__.py | chaostoolkit/chaosplatform-experiment | 49ea085e3ab7a6f3306a6ec382e0e121640bcb19 | [
"Apache-2.0"
] | null | null | null | chaosplt_experiment/storage/model/__init__.py | chaostoolkit/chaosplatform-experiment | 49ea085e3ab7a6f3306a6ec382e0e121640bcb19 | [
"Apache-2.0"
] | null | null | null | chaosplt_experiment/storage/model/__init__.py | chaostoolkit/chaosplatform-experiment | 49ea085e3ab7a6f3306a6ec382e0e121640bcb19 | [
"Apache-2.0"
] | 1 | 2021-01-25T15:22:19.000Z | 2021-01-25T15:22:19.000Z | # -*- coding: utf-8 -*-
from .discovery import Discovery
from .execution import Execution
from .experiment import Experiment
from .init import Init
from .recommendation import Recommendation
__all__ = ["Discovery", "Execution", "Experiment", "Execution", "Init",
"Recommendation"]
| 29.3 | 71 | 0.730375 | 30 | 293 | 7 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.153584 | 293 | 9 | 72 | 32.555556 | 0.842742 | 0.071672 | 0 | 0 | 0 | 0 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b64428e64ff58aff6e70b8f88bfdd7402d90f8b7 | 309 | py | Python | lametro/context_processors.py | datamade/la-metro-councilmatic | 33c809ebe85eba393c9b5c90d1f9dac90a154e86 | [
"MIT"
] | 5 | 2017-05-17T23:21:00.000Z | 2021-12-04T13:56:12.000Z | lametro/context_processors.py | datamade/la-metro-councilmatic | 33c809ebe85eba393c9b5c90d1f9dac90a154e86 | [
"MIT"
] | 516 | 2016-10-13T15:28:05.000Z | 2022-03-30T15:34:21.000Z | lametro/context_processors.py | datamade/la-metro-councilmatic | 33c809ebe85eba393c9b5c90d1f9dac90a154e86 | [
"MIT"
] | 4 | 2018-03-29T16:50:21.000Z | 2020-03-23T14:11:10.000Z | from django.conf import settings
def recaptcha_public_key(request):
# See: https://developers.google.com/recaptcha/docs/faq
recaptcha_dev_key = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI'
return {
'recaptcha_public_key': getattr(settings, 'RECAPTCHA_PUBLIC_KEY', recaptcha_dev_key)
}
| 30.9 | 92 | 0.763754 | 35 | 309 | 6.428571 | 0.628571 | 0.2 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.145631 | 309 | 9 | 93 | 34.333333 | 0.840909 | 0.171521 | 0 | 0 | 0 | 0 | 0.314961 | 0.15748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b64fcc5e793ea2ce0dfc7adcb3559e83abddfa45 | 2,212 | py | Python | yourenv/pythonClub/pythonClubProject/views.py | oconnalla/pythonClub | 80165458cb83c96237d074ca14d3bd5263b8c6af | [
"MIT"
] | null | null | null | yourenv/pythonClub/pythonClubProject/views.py | oconnalla/pythonClub | 80165458cb83c96237d074ca14d3bd5263b8c6af | [
"MIT"
] | null | null | null | yourenv/pythonClub/pythonClubProject/views.py | oconnalla/pythonClub | 80165458cb83c96237d074ca14d3bd5263b8c6af | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from .models import Meeting, Meeting_Minutes, Resource, Event
from .forms import MeetingForm, MeetingMinutesForm
from django.contrib.auth.decorators import login_required
#may need to remove meeting details from imports
# Create your views here.
def index (request... | 36.262295 | 100 | 0.716094 | 240 | 2,212 | 6.495833 | 0.279167 | 0.08467 | 0.121873 | 0.230917 | 0.467607 | 0.355356 | 0.280949 | 0.280949 | 0.280949 | 0.280949 | 0 | 0.003282 | 0.173599 | 2,212 | 61 | 101 | 36.262295 | 0.849562 | 0.032098 | 0 | 0.387755 | 0 | 0 | 0.18972 | 0.157944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.081633 | 0.061224 | 0.489796 | 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 | 0 | 0 | 0 | 2 |
b65005479101b87f7e5a1ee89f1190ef77d6b363 | 10,047 | py | Python | internalScripts/analysis-scripts/SummarizeGapfillResultsTables.py | kbase/probabilistic_annotation | 2454925ca98c80c73bda327a0eff8aed94c5a48d | [
"MIT"
] | null | null | null | internalScripts/analysis-scripts/SummarizeGapfillResultsTables.py | kbase/probabilistic_annotation | 2454925ca98c80c73bda327a0eff8aed94c5a48d | [
"MIT"
] | null | null | null | internalScripts/analysis-scripts/SummarizeGapfillResultsTables.py | kbase/probabilistic_annotation | 2454925ca98c80c73bda327a0eff8aed94c5a48d | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Generate summary statistics comparing two gapfill results tables from AnalyzeGapfillResults.py (one for probanno
# and one for non-probanno)
import optparse
import sys
usage = "%prog [Probanno_result_table] [Non_probanno_result_table]"
description = """Generate summary statistics like number of u... | 51 | 400 | 0.68518 | 1,195 | 10,047 | 5.548117 | 0.176569 | 0.058069 | 0.046154 | 0.034389 | 0.447511 | 0.327602 | 0.281448 | 0.246757 | 0.206335 | 0.156561 | 0 | 0.002913 | 0.214193 | 10,047 | 196 | 401 | 51.260204 | 0.836859 | 0.045486 | 0 | 0.197368 | 1 | 0.019737 | 0.201924 | 0.023565 | 0 | 0 | 0 | 0.005102 | 0 | 0 | null | null | 0 | 0.013158 | null | null | 0.118421 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b65d98c7bab4442b9624a03b0c1b1b8f10d10f33 | 1,231 | py | Python | examples/fantom/rename.py | pkuksa/FILER_giggle | 76ffe014edc732cc73f84e26da58f1d833e25b44 | [
"MIT"
] | 210 | 2016-01-08T15:32:17.000Z | 2021-11-02T11:13:16.000Z | examples/fantom/rename.py | pkuksa/FILER_giggle | 76ffe014edc732cc73f84e26da58f1d833e25b44 | [
"MIT"
] | 47 | 2016-03-14T18:02:13.000Z | 2022-03-01T00:03:02.000Z | examples/fantom/rename.py | pkuksa/FILER_giggle | 76ffe014edc732cc73f84e26da58f1d833e25b44 | [
"MIT"
] | 28 | 2016-03-11T20:39:13.000Z | 2022-02-14T09:35:27.000Z | import sys
if len(sys.argv) != 4:
sys.stderr.write('usage:\t' + \
sys.argv[0] + \
' <name2library file>' + \
' <expression count matrix file>' + \
' <out dir>\n')
sys.exit(1)
name2library_file=sys.argv[1]
expression_count_matr... | 26.76087 | 68 | 0.375305 | 135 | 1,231 | 3.348148 | 0.311111 | 0.077434 | 0.106195 | 0.165929 | 0.079646 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0.030166 | 0.461413 | 1,231 | 45 | 69 | 27.355556 | 0.651584 | 0 | 0 | 0 | 0 | 0 | 0.076361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.026316 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b680a70f95b1134f1411be012576bedff396ba0d | 1,163 | py | Python | wazimap_ng/datasets/models/geography.py | BarisSari/wazimap-ng | 7c09d4ff73abb1f8b10d806f976e2a04c3f35cff | [
"Apache-2.0"
] | null | null | null | wazimap_ng/datasets/models/geography.py | BarisSari/wazimap-ng | 7c09d4ff73abb1f8b10d806f976e2a04c3f35cff | [
"Apache-2.0"
] | null | null | null | wazimap_ng/datasets/models/geography.py | BarisSari/wazimap-ng | 7c09d4ff73abb1f8b10d806f976e2a04c3f35cff | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.postgres.indexes import GinIndex
from treebeard.mp_tree import MP_Node
from treebeard.ns_tree import NS_NodeManager, NS_NodeQuerySet
from django.contrib.postgres.indexes import GinIndex
from django.contrib.postgres.search import TrigramSimilarity
from wazimap_ng.extens... | 29.075 | 106 | 0.737747 | 141 | 1,163 | 5.921986 | 0.404255 | 0.047904 | 0.061078 | 0.08982 | 0.275449 | 0.213174 | 0.213174 | 0.213174 | 0.093413 | 0 | 0 | 0.010363 | 0.170249 | 1,163 | 39 | 107 | 29.820513 | 0.854922 | 0 | 0 | 0.148148 | 0 | 0 | 0.018103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.259259 | 0.148148 | 0.851852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
b69ef7338e111e2e906f591ff0a3665f107edcc2 | 301 | py | Python | chatterbox/settings.py | blitzagency/django-chatterbox | 7bf17444f8308aa12b6718bd62ee1344021c21aa | [
"MIT"
] | 8 | 2015-03-10T20:03:09.000Z | 2018-06-14T23:03:58.000Z | chatterbox/settings.py | blitzagency/django-chatterbox | 7bf17444f8308aa12b6718bd62ee1344021c21aa | [
"MIT"
] | 3 | 2015-07-14T22:44:47.000Z | 2020-06-05T23:43:05.000Z | chatterbox/settings.py | blitzagency/django-chatterbox | 7bf17444f8308aa12b6718bd62ee1344021c21aa | [
"MIT"
] | null | null | null |
# DJANGO IMPORTS
from django.conf import settings
# Admin Site Title
AUTO_APPROVE = getattr(settings, "CHATTERBOX_AUTO_APPROVE", True)
SUCCESS_REDIRECT_URL = getattr(settings,
"CHATTERBOX_SUCCESS_REDIRECT_URL",
'/admin/chatterbox/key/')
| 30.1 | 65 | 0.641196 | 30 | 301 | 6.166667 | 0.6 | 0.118919 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282392 | 301 | 9 | 66 | 33.444444 | 0.856481 | 0.10299 | 0 | 0 | 0 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b69f5910b038e52086a1a0c2c73594d601a694b7 | 1,105 | py | Python | setting.py | okboy32/anjukeSpider | 6c8a18927bef32d70a57eff7e7a0208904882406 | [
"Apache-2.0"
] | null | null | null | setting.py | okboy32/anjukeSpider | 6c8a18927bef32d70a57eff7e7a0208904882406 | [
"Apache-2.0"
] | null | null | null | setting.py | okboy32/anjukeSpider | 6c8a18927bef32d70a57eff7e7a0208904882406 | [
"Apache-2.0"
] | null | null | null |
# mysql配置
DB = 'anjuke'
USER = 'root'
PASSWORD = 'zhang123'
HOST = 'localhost'
PORT = 3306
# 爬取城市
citys = {
# '苏州': 'suzhou',
# '北京': 'bj',
# '天津': 'tj',
# '大连': 'dl',
# '石家庄': 'sjz',
# '哈尔滨': 'heb',
# '沈阳': 'sy',
# '太原': 'ty',
# '长春': 'cc',
# '威海': 'weihai',
# '潍坊': 'wf',... | 16.492537 | 22 | 0.292308 | 121 | 1,105 | 2.669421 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009859 | 0.357466 | 1,105 | 66 | 23 | 16.742424 | 0.44507 | 0.526697 | 0 | 0 | 0 | 0 | 0.149789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b6a7423c88de785f72afeb60e9785a825845a609 | 2,287 | py | Python | cs15211/BulbSwitcher.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/BulbSwitcher.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/BulbSwitcher.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/bulb-switcher/description/'
# Time: O(1)
# Space: O(1)
#
# Description: Leetcode # 319. Bulb Switcher
#
# There are n bulbs that are initially off.
# You first turn on all the bulbs.
# Then, you turn off every second bulb.
# On the third round, you toggle every third bulb (t... | 31.763889 | 108 | 0.688238 | 409 | 2,287 | 3.816626 | 0.374083 | 0.025625 | 0.025625 | 0.040999 | 0.10442 | 0.081358 | 0.066624 | 0.033312 | 0.033312 | 0.033312 | 0 | 0.025727 | 0.21819 | 2,287 | 72 | 109 | 31.763889 | 0.847315 | 0.362046 | 0 | 0 | 0 | 0.225806 | 0.767143 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.258065 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6ac2dc55c35eed3f594c3fa5f7ce5f5cf5a399d | 241 | py | Python | setup.py | thiwankajayasiri/Airband-_V | 63ac5097502d3b39f313adef97ffea7af024b185 | [
"MIT"
] | null | null | null | setup.py | thiwankajayasiri/Airband-_V | 63ac5097502d3b39f313adef97ffea7af024b185 | [
"MIT"
] | null | null | null | setup.py | thiwankajayasiri/Airband-_V | 63ac5097502d3b39f313adef97ffea7af024b185 | [
"MIT"
] | 1 | 2019-12-10T23:21:35.000Z | 2019-12-10T23:21:35.000Z | from setuptools import setup
setup(
name='V16_API',
packages=['V16_API'],
include_package_data=True,
install_requires=[
'flask', 'flask-bootstrap', 'flask-nav', 'pyserial', 'flask_wtf', 'gunicorn'
],
)
| 21.909091 | 85 | 0.614108 | 26 | 241 | 5.461538 | 0.769231 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0.232365 | 241 | 10 | 86 | 24.1 | 0.745946 | 0 | 0 | 0 | 0 | 0 | 0.294372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6b53a40ea06508835093fa9fbe96f1762aed1fa | 1,460 | py | Python | run-format-converter.py | bruno-ferreira/run-format-converter | 372e12e61a134988a1536ce0c243180848681cee | [
"MIT"
] | null | null | null | run-format-converter.py | bruno-ferreira/run-format-converter | 372e12e61a134988a1536ce0c243180848681cee | [
"MIT"
] | null | null | null | run-format-converter.py | bruno-ferreira/run-format-converter | 372e12e61a134988a1536ce0c243180848681cee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""docstring"""
import os
from xml.etree import ElementTree as ET
import argparse
# create a class that opens and reads any xml format
# pwx
# gpx
# etc
# json
class OpenXMLFile(object):
"""docstring"""
def open(self):
tree = ET.parse(self)
root = tree.getroot()
def... | 21.470588 | 78 | 0.569178 | 178 | 1,460 | 4.573034 | 0.522472 | 0.02457 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001982 | 0.308904 | 1,460 | 67 | 79 | 21.791045 | 0.804757 | 0.226712 | 0 | 0.066667 | 0 | 0 | 0.136882 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6b724ca47b7ba279eaefa97e25b1993a3e2f561 | 642 | py | Python | devops_spt/external_dependency.py | dksmiffs/devops | cf777d0c84062f9cbd5ac5567eddb47e6c5d9355 | [
"MIT"
] | null | null | null | devops_spt/external_dependency.py | dksmiffs/devops | cf777d0c84062f9cbd5ac5567eddb47e6c5d9355 | [
"MIT"
] | 4 | 2019-06-15T01:31:56.000Z | 2020-03-31T04:15:10.000Z | devops_spt/external_dependency.py | dksmiffs/devops-spt | cf777d0c84062f9cbd5ac5567eddb47e6c5d9355 | [
"MIT"
] | null | null | null | """External dependency management module"""
from abc import ABC, abstractmethod
class ExternalDependency(ABC):
"""Define interface for managing external dependencies"""
@abstractmethod
def existing(self):
"""
Return installed version
OR, set existing = None in subclass if only upd... | 25.68 | 69 | 0.647975 | 68 | 642 | 6.117647 | 0.544118 | 0.122596 | 0.067308 | 0.076923 | 0.25 | 0.25 | 0.25 | 0.25 | 0.25 | 0.25 | 0 | 0 | 0.271028 | 642 | 24 | 70 | 26.75 | 0.888889 | 0.492212 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fcb7dfd8b641f321ebf80b365610f3668c8e3ef6 | 778 | py | Python | web/blog/comments/views.py | BumagniyPacket/django-blog | bb3511c2380a79e400302d75406c568d1c5066b1 | [
"Apache-2.0"
] | 2 | 2017-04-22T11:07:53.000Z | 2017-04-23T12:49:13.000Z | web/blog/comments/views.py | BumagniyPacket/django-blog-example | bb3511c2380a79e400302d75406c568d1c5066b1 | [
"Apache-2.0"
] | null | null | null | web/blog/comments/views.py | BumagniyPacket/django-blog-example | bb3511c2380a79e400302d75406c568d1c5066b1 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import CreateView, DeleteView, UpdateView
from blog.comments.forms import CommentForm
from blog.comments.models import Comment
class CommentApproveView(LoginRequiredMixin, UpdateView):
model = Comment
def get_success_url(sel... | 25.096774 | 67 | 0.758355 | 90 | 778 | 6.388889 | 0.422222 | 0.069565 | 0.067826 | 0.083478 | 0.356522 | 0.356522 | 0.356522 | 0.28 | 0.198261 | 0.198261 | 0 | 0 | 0.16581 | 778 | 30 | 68 | 25.933333 | 0.885978 | 0 | 0 | 0.473684 | 0 | 0 | 0.005148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0.105263 | 0.947368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
fcbb633194b57aa2dc7e6d3bd8b1c34a02d19b29 | 654 | py | Python | nezzle/graphics/edges/edgeconverter.py | dwgoon/nezzle | c69d111ae5e57ee2a7db85e14299c23d3b98a6d5 | [
"MIT"
] | 2 | 2021-10-06T08:54:02.000Z | 2021-10-06T16:17:18.000Z | nezzle/graphics/edges/edgeconverter.py | dwgoon/nezzle | c69d111ae5e57ee2a7db85e14299c23d3b98a6d5 | [
"MIT"
] | null | null | null | nezzle/graphics/edges/edgeconverter.py | dwgoon/nezzle | c69d111ae5e57ee2a7db85e14299c23d3b98a6d5 | [
"MIT"
] | null | null | null | from typing import AnyStr
from typing import Union
from typing import Type
from nezzle.graphics.edges.baseedge import BaseEdge
from nezzle.graphics.edges.edgefactory import EdgeClassFactory
class EdgeConverter(object):
@staticmethod
def convert(edge: BaseEdge, edge_type: Union[Type, AnyStr]):
if is... | 27.25 | 89 | 0.704893 | 84 | 654 | 5.333333 | 0.369048 | 0.125 | 0.107143 | 0.102679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214067 | 654 | 23 | 90 | 28.434783 | 0.871595 | 0 | 0 | 0 | 0 | 0 | 0.013761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcbf636a4ad991baab04531a62d62b51b1ccb506 | 40,108 | py | Python | luna/interaction/fp/fingerprint.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | 2 | 2022-03-23T13:34:36.000Z | 2022-03-27T22:21:08.000Z | luna/interaction/fp/fingerprint.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | 1 | 2022-03-22T19:29:50.000Z | 2022-03-22T19:29:50.000Z | luna/interaction/fp/fingerprint.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | null | null | null | import numpy as np
from rdkit.DataStructs.cDataStructs import ExplicitBitVect, SparseBitVect
from scipy.sparse import issparse, csr_matrix
from collections import defaultdict
from rdkit import DataStructs
from luna.util.exceptions import (BitsValueError, InvalidFingerprintType, IllegalArgumentError, FingerprintCountsE... | 38.161751 | 145 | 0.597611 | 5,012 | 40,108 | 4.667997 | 0.075619 | 0.010515 | 0.009617 | 0.006839 | 0.740896 | 0.713541 | 0.691229 | 0.679689 | 0.658275 | 0.64947 | 0 | 0.026668 | 0.301611 | 40,108 | 1,050 | 146 | 38.198095 | 0.808575 | 0.455171 | 0 | 0.435028 | 0 | 0 | 0.142113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.022599 | 0.019774 | 0.361582 | 0.121469 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcc70635238eb62f7139f59f07ffd9f673656ea2 | 158 | py | Python | app/celery_worker/tasks.py | newbieof410/dockerize-flask-celery | 2f8080c30f0f38da8984fe4d1f70c3e15576ab10 | [
"MIT"
] | 1 | 2021-12-17T08:32:28.000Z | 2021-12-17T08:32:28.000Z | app/celery_worker/tasks.py | newbieof410/dockerize-flask-celery | 2f8080c30f0f38da8984fe4d1f70c3e15576ab10 | [
"MIT"
] | null | null | null | app/celery_worker/tasks.py | newbieof410/dockerize-flask-celery | 2f8080c30f0f38da8984fe4d1f70c3e15576ab10 | [
"MIT"
] | 1 | 2021-12-17T08:32:16.000Z | 2021-12-17T08:32:16.000Z | import time
from app.celery_worker import celery
@celery.task
def long_time_task():
print('task begins')
time.sleep(10)
print('task finished')
| 14.363636 | 36 | 0.708861 | 23 | 158 | 4.73913 | 0.608696 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.183544 | 158 | 10 | 37 | 15.8 | 0.829457 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcd72159171fc50e2667d95a80ff3bf2c6c3c713 | 3,353 | py | Python | forum/migrations/0001_initial.py | mapehe/mlp-forum | 6c47df0a0a92d444b5ca39088310fff2316ea267 | [
"MIT"
] | null | null | null | forum/migrations/0001_initial.py | mapehe/mlp-forum | 6c47df0a0a92d444b5ca39088310fff2316ea267 | [
"MIT"
] | 9 | 2021-11-18T15:19:02.000Z | 2022-03-29T15:22:10.000Z | forum/migrations/0001_initial.py | three-consulting/mlp-forum | 6c47df0a0a92d444b5ca39088310fff2316ea267 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-03 21:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 33.53 | 72 | 0.408888 | 237 | 3,353 | 5.561181 | 0.299578 | 0.042489 | 0.063733 | 0.100152 | 0.672989 | 0.672989 | 0.672989 | 0.624431 | 0.624431 | 0.624431 | 0 | 0.010676 | 0.497167 | 3,353 | 99 | 73 | 33.868687 | 0.771056 | 0.013421 | 0 | 0.652174 | 1 | 0 | 0.078342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032609 | 0 | 0.076087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcdaf2e24faa8c7b1ae11286e9bd851364fb64b9 | 710 | py | Python | scanners/zap-advanced/scanner/tests/test_zap_spider_http.py | kevin-yen/secureCodeBox | 6e1fc4d5a2e2360ae66966e1e320c25c642aa793 | [
"Apache-2.0"
] | 488 | 2018-05-18T13:29:44.000Z | 2022-03-29T22:16:25.000Z | scanners/zap-advanced/scanner/tests/test_zap_spider_http.py | regaipserdar/secureCodeBox | 9249eeca4ac9b934391086c9fc1d0b7a434f9224 | [
"Apache-2.0"
] | 503 | 2018-04-04T10:10:27.000Z | 2022-03-31T11:12:38.000Z | scanners/zap-advanced/scanner/tests/test_zap_spider_http.py | regaipserdar/secureCodeBox | 9249eeca4ac9b934391086c9fc1d0b7a434f9224 | [
"Apache-2.0"
] | 105 | 2018-06-15T10:16:12.000Z | 2022-03-04T18:45:20.000Z | #!/usr/bin/env python
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
import pytest
from unittest.mock import MagicMock, Mock
from unittest import TestCase
from zapclient.configuration import ZapConfiguration
class ZapSpiderHttpTests(TestCase):
@py... | 28.4 | 105 | 0.746479 | 83 | 710 | 6.277108 | 0.686747 | 0.046065 | 0.103647 | 0.122841 | 0.103647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.132394 | 710 | 24 | 106 | 29.583333 | 0.827922 | 0.170423 | 0 | 0 | 0 | 0 | 0.210616 | 0.126712 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fcdc6c2f7fb742dd8a2ca7fb24d94e8748f0ed48 | 4,040 | py | Python | scan_cities.py | jo-wen/city_crawl | 0bfe9d92578138d428ae9e4e5164e7fd5e2f0ee5 | [
"MIT"
] | null | null | null | scan_cities.py | jo-wen/city_crawl | 0bfe9d92578138d428ae9e4e5164e7fd5e2f0ee5 | [
"MIT"
] | null | null | null | scan_cities.py | jo-wen/city_crawl | 0bfe9d92578138d428ae9e4e5164e7fd5e2f0ee5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
This script doesn't work as is (and is written dumbly), but has all the pieces I used to organize the data.
parsing a csv file from https://simplemaps.com/data/us-cities
checks if each city has:
1) a .gov site
2) a .us site
3) a .com site
4) includes http and https entries
... | 37.407407 | 107 | 0.626238 | 584 | 4,040 | 4.121575 | 0.167808 | 0.072705 | 0.112173 | 0.16452 | 0.733693 | 0.635231 | 0.632738 | 0.588284 | 0.445368 | 0.371001 | 0 | 0.002424 | 0.182921 | 4,040 | 107 | 108 | 37.757009 | 0.726749 | 0.089851 | 0 | 0.381579 | 0 | 0 | 0.100366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.026316 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fcef00b95799845535e7a401fe7a3b065739cc68 | 278 | py | Python | Cours 3 - Language Models/solutions/ngrams.py | AntoineSimoulin/m2-data-sciences | 41a55a8bd2ac333de05c4a1acc4c03ae8509e150 | [
"Apache-2.0"
] | 7 | 2020-10-09T07:24:38.000Z | 2021-10-08T21:23:38.000Z | Cours 3 - Language Models/solutions/ngrams.py | AntoineSimoulin/m2-data-sciences | 41a55a8bd2ac333de05c4a1acc4c03ae8509e150 | [
"Apache-2.0"
] | null | null | null | Cours 3 - Language Models/solutions/ngrams.py | AntoineSimoulin/m2-data-sciences | 41a55a8bd2ac333de05c4a1acc4c03ae8509e150 | [
"Apache-2.0"
] | null | null | null | def sentence_2_n_grams(sentences, n=3, start_token='<s>', end_token='</s>'):
ngrams = []
for s in sentences:
tokens = [start_token] + s + [end_token]
ngrams += zip(*[tokens[i:] for i in range(n)])
return Counter([" ".join(ngram) for ngram in ngrams]) | 46.333333 | 76 | 0.604317 | 42 | 278 | 3.833333 | 0.52381 | 0.111801 | 0.136646 | 0.173913 | 0.236025 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.215827 | 278 | 6 | 77 | 46.333333 | 0.729358 | 0 | 0 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 2 |
1e04af5b6c2171d7626f4840085d0a5a3eee3c0e | 550 | py | Python | code/wheel_examples.py | garyjames/building-skills-oo-design-book | e4deecfbef871983e9993ad4128ef1112ac0954a | [
"MIT"
] | 32 | 2019-11-02T20:05:47.000Z | 2022-03-24T21:34:56.000Z | code/wheel_examples.py | garyjames/building-skills-oo-design-book | e4deecfbef871983e9993ad4128ef1112ac0954a | [
"MIT"
] | 5 | 2019-11-01T23:01:41.000Z | 2021-12-10T13:16:17.000Z | code/wheel_examples.py | garyjames/building-skills-oo-design-book | e4deecfbef871983e9993ad4128ef1112ac0954a | [
"MIT"
] | 12 | 2019-11-05T04:04:30.000Z | 2021-12-10T12:59:22.000Z | """
Building Skills in Object-Oriented Design V4
Wheel Examples
"""
from typing import List, Any
import random
Bin = Any
class Wheel_RNG:
def __init__(self, bins: List[Bin], rng: random.Random=None) -> None:
self.bins = bins
self.rng = rng or random.Random()
def choose(self) -> Bin:
... | 20.37037 | 73 | 0.632727 | 77 | 550 | 4.402597 | 0.350649 | 0.141593 | 0.064897 | 0.088496 | 0.589971 | 0.589971 | 0.324484 | 0.324484 | 0.324484 | 0.324484 | 0 | 0.00241 | 0.245455 | 550 | 26 | 74 | 21.153846 | 0.814458 | 0.109091 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.133333 | 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 | 0 | 0 | 0 | 2 |
1e170c5c56094308efa880aceba19eda9ec049c4 | 1,126 | py | Python | apps/common/api/exceptions.py | YC-Cheung/hattori | b454e7fa3d727812ca794e20f0646dbe8a50a5a3 | [
"MIT"
] | 1 | 2021-01-11T07:31:12.000Z | 2021-01-11T07:31:12.000Z | apps/common/api/exceptions.py | YC-Cheung/hattori | b454e7fa3d727812ca794e20f0646dbe8a50a5a3 | [
"MIT"
] | 8 | 2020-06-05T20:13:30.000Z | 2021-09-22T18:17:57.000Z | apps/common/api/exceptions.py | YC-Cheung/hattori | b454e7fa3d727812ca794e20f0646dbe8a50a5a3 | [
"MIT"
] | null | null | null | from rest_framework import status
class APIException(Exception):
"""
通用 API 异常
"""
def __init__(self, message='', code=4999, status_code=status.HTTP_400_BAD_REQUEST):
self.message = message
self.code = code
self.status_code = status_code
@property
def data(self):
... | 23.957447 | 106 | 0.660746 | 121 | 1,126 | 5.752066 | 0.380165 | 0.12931 | 0.114943 | 0.103448 | 0.258621 | 0.258621 | 0.258621 | 0.201149 | 0.201149 | 0.201149 | 0 | 0.032037 | 0.223801 | 1,126 | 46 | 107 | 24.478261 | 0.764302 | 0.033748 | 0 | 0.142857 | 0 | 0 | 0.06037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1e194caabb775fc572822af57d09624e02d45b02 | 1,602 | py | Python | tests/utils.py | rolandmueller/rita-dsl | d0457fcf220baaf7fa8f647bab36b5ff5ea9367b | [
"MIT"
] | null | null | null | tests/utils.py | rolandmueller/rita-dsl | d0457fcf220baaf7fa8f647bab36b5ff5ea9367b | [
"MIT"
] | null | null | null | tests/utils.py | rolandmueller/rita-dsl | d0457fcf220baaf7fa8f647bab36b5ff5ea9367b | [
"MIT"
] | null | null | null | import re
import pytest
import rita
def load_rules(rules_path):
with open(rules_path, "r") as f:
return f.read()
def spacy_engine(rules, **kwargs):
spacy = pytest.importorskip("spacy", minversion="2.1")
patterns = rita.compile_string(rules, **kwargs)
nlp = spacy.load("en")
ruler = spacy... | 26.262295 | 76 | 0.655431 | 220 | 1,602 | 4.663636 | 0.368182 | 0.042885 | 0.049708 | 0.064327 | 0.335283 | 0.335283 | 0.335283 | 0.263158 | 0.263158 | 0.263158 | 0 | 0.007837 | 0.203496 | 1,602 | 60 | 77 | 26.7 | 0.796238 | 0 | 0 | 0.27907 | 0 | 0 | 0.074282 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.209302 | false | 0 | 0.116279 | 0.023256 | 0.511628 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1e1c7e7f3b95fbc87139d0d5c77fd8c7e5fa2e13 | 283 | py | Python | clash/fastest/fast-clash1.py | a93-git/codingame-solutions | 25df0f7824844646ceb0b6128274ff92f1084c8c | [
"MIT"
] | null | null | null | clash/fastest/fast-clash1.py | a93-git/codingame-solutions | 25df0f7824844646ceb0b6128274ff92f1084c8c | [
"MIT"
] | null | null | null | clash/fastest/fast-clash1.py | a93-git/codingame-solutions | 25df0f7824844646ceb0b6128274ff92f1084c8c | [
"MIT"
] | null | null | null | import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
w = input()
# Write an action using print
# To debug: print("Debug messages...", file=sys.stderr)
for i in range(n):
print(w) | 21.769231 | 56 | 0.713781 | 46 | 283 | 4.391304 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180212 | 283 | 13 | 57 | 21.769231 | 0.87069 | 0.664311 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1e1c9b9e059d30318f64864e334b810487591c98 | 649 | py | Python | mlcomp/parallelm/components/external_component.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 7 | 2019-04-08T02:31:55.000Z | 2021-11-15T14:40:49.000Z | mlcomp/parallelm/components/external_component.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 31 | 2019-02-22T22:23:26.000Z | 2021-08-02T17:17:06.000Z | mlcomp/parallelm/components/external_component.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 8 | 2019-03-15T23:46:08.000Z | 2020-02-06T09:16:02.000Z | """
This file in intended to be used by external component that can use python (like R + reticulate).
This will be a single place needed to be imported (thus the short name) in order to get the api functions to
work with connected components, and possibly more in the future.
"""
from parallelm.common.singleton import ... | 36.055556 | 108 | 0.818182 | 84 | 649 | 6.297619 | 0.690476 | 0.022684 | 0.030246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138675 | 649 | 17 | 109 | 38.176471 | 0.946333 | 0.522342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
1e1e2af51dabf8a9af8ab0fbeb55c7a2f0739a09 | 360 | py | Python | sailenv/dynamics/uniform_movement_random_bounce.py | sailab-code/SAILenv | e202be04de468a58e58ae858693245f5556c3597 | [
"MIT"
] | null | null | null | sailenv/dynamics/uniform_movement_random_bounce.py | sailab-code/SAILenv | e202be04de468a58e58ae858693245f5556c3597 | [
"MIT"
] | 1 | 2021-02-25T16:47:39.000Z | 2021-04-22T08:08:53.000Z | sailenv/dynamics/uniform_movement_random_bounce.py | sailab-code/SAILenv | e202be04de468a58e58ae858693245f5556c3597 | [
"MIT"
] | 2 | 2021-05-01T12:42:53.000Z | 2021-07-10T06:46:44.000Z | from dataclasses import dataclass
from sailenv import Vector3
from sailenv.dynamics import Dynamic
@dataclass
class UniformMovementRandomBounce(Dynamic):
start_direction: Vector3 = Vector3(0, 0, 1)
speed: float = 5
angular_speed: float = 2
seed: int = 42
@staticmethod
def get_type():
... | 22.5 | 47 | 0.733333 | 43 | 360 | 6 | 0.72093 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034843 | 0.202778 | 360 | 16 | 48 | 22.5 | 0.864112 | 0 | 0 | 0 | 0 | 0 | 0.083102 | 0.083102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.25 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1e1f65584ae7b52c35f930bd00ea47ad86da66f8 | 973 | py | Python | features/bvp_features.py | anascacais/MLB-P5-P6 | b1db3a784d16c73a40e5c262d82c9db62e89bf5d | [
"MIT"
] | null | null | null | features/bvp_features.py | anascacais/MLB-P5-P6 | b1db3a784d16c73a40e5c262d82c9db62e89bf5d | [
"MIT"
] | null | null | null | features/bvp_features.py | anascacais/MLB-P5-P6 | b1db3a784d16c73a40e5c262d82c9db62e89bf5d | [
"MIT"
] | null | null | null | # built-in
import json
import os
# third-party
import numpy as np
# local
from biosppy import utils
from biosppy import ppg
from biosppy import tools as st
from . import statistic_features, hrv_features
def bvp_features(signal=None, sampling_rate=1000.):
""" Compute BVP characteristic metrics describing the si... | 21.152174 | 93 | 0.673176 | 125 | 973 | 5.08 | 0.48 | 0.094488 | 0.080315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.226105 | 973 | 45 | 94 | 21.622222 | 0.831341 | 0.289825 | 0 | 0 | 0 | 0 | 0.009554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1e2afeee8fc3278b34564d04ceaf77dc340ff1df | 4,474 | py | Python | ics/icalendar.py | tomschr/ics.py | f6cb12281bf78e210d51c6ff5bd324d8f2c01aef | [
"Apache-2.0"
] | null | null | null | ics/icalendar.py | tomschr/ics.py | f6cb12281bf78e210d51c6ff5bd324d8f2c01aef | [
"Apache-2.0"
] | null | null | null | ics/icalendar.py | tomschr/ics.py | f6cb12281bf78e210d51c6ff5bd324d8f2c01aef | [
"Apache-2.0"
] | null | null | null | from typing import Dict, Iterable, List, Optional, Union
import attr
from attr.validators import instance_of
from ics.component import Component
from ics.event import Event
from ics.grammar.parse import Container, calendar_string_to_containers
from ics.parsers.icalendar_parser import CalendarParser
from ics.serialize... | 36.080645 | 125 | 0.625615 | 544 | 4,474 | 5.055147 | 0.283088 | 0.024 | 0.026182 | 0.030909 | 0.200727 | 0.157818 | 0.115636 | 0.098909 | 0.098909 | 0.045091 | 0 | 0.003053 | 0.267769 | 4,474 | 123 | 126 | 36.373984 | 0.836386 | 0.229772 | 0 | 0 | 0 | 0 | 0.059436 | 0.008885 | 0 | 0 | 0 | 0.01626 | 0 | 1 | 0.082192 | false | 0 | 0.219178 | 0.027397 | 0.547945 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1e2d739434a70fa07840124034b97f7c7057085b | 311 | py | Python | secret/tests/test_utils.py | MinisterioPublicoRJ/apilabcontas | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 2 | 2019-06-10T18:34:15.000Z | 2020-04-29T14:23:34.000Z | secret/tests/test_utils.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | 5 | 2020-01-09T15:59:16.000Z | 2021-06-10T21:06:13.000Z | secret/tests/test_utils.py | MinisterioPublicoRJ/datalakecadg | c01d5c0f1e6705eb8470ba7ba5078c0c172a9570 | [
"MIT"
] | null | null | null | from unittest import TestCase
from freezegun import freeze_time
from secret.utils import create_secret
class Utils(TestCase):
@freeze_time('2019-03-12 12:00:00')
def test_create_secret_key(self):
secret = create_secret()
self.assertEqual(secret, 'd3a4646728a9de9a74d8fc4c41966a42')
| 22.214286 | 68 | 0.752412 | 39 | 311 | 5.820513 | 0.538462 | 0.15859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0.167203 | 311 | 13 | 69 | 23.923077 | 0.741313 | 0 | 0 | 0 | 0 | 0 | 0.163987 | 0.102894 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1e2ddada4cd5b7c4746a737dc5d5bd99c52e61ce | 2,281 | py | Python | scripts/generate-database-data.py | Crown-Commercial-Service/digitalmarketplace-scripts | 1c75b674a294e51600fc32b3d6ed4372a2e7d727 | [
"MIT"
] | 1 | 2020-06-23T01:55:31.000Z | 2020-06-23T01:55:31.000Z | scripts/generate-database-data.py | alphagov/digitalmarketplace-scripts | f92138016b7375836dfd14aa3ffcc4553bce63f9 | [
"MIT"
] | 267 | 2015-10-12T12:43:52.000Z | 2021-08-19T10:38:55.000Z | scripts/generate-database-data.py | Crown-Commercial-Service/digitalmarketplace-scripts | 1c75b674a294e51600fc32b3d6ed4372a2e7d727 | [
"MIT"
] | 7 | 2015-11-11T16:47:41.000Z | 2021-04-10T18:03:04.000Z | #!/usr/bin/env python3
"""
N.B.: this is a work in progress with only few steps implemented.
The aim is to populate your local database with enough randomly generated data to run the DMp using the API.
Usage:
./scripts/generate-database-data.py
"""
import sys
from docopt import docopt
from dmapiclient import DataAPIC... | 35.092308 | 120 | 0.740026 | 341 | 2,281 | 4.750733 | 0.480938 | 0.025926 | 0.02963 | 0.019753 | 0.130864 | 0.076543 | 0.041975 | 0 | 0 | 0 | 0 | 0.017429 | 0.19509 | 2,281 | 64 | 121 | 35.640625 | 0.864924 | 0.508549 | 0 | 0 | 1 | 0 | 0.092559 | 0.019056 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | false | 0 | 0.225806 | 0 | 0.225806 | 0.064516 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e36a7c4b7818d599e847cf0ef0294225ce102a6 | 11,080 | py | Python | migrations/versions/da6f10c8ebf4_add_site_airtable.py | bwlynch/FbScraper | d9973fddd9333271bb8c702204d31cd4437ab99a | [
"MIT"
] | 10 | 2020-03-05T03:08:27.000Z | 2022-02-12T16:10:31.000Z | migrations/versions/da6f10c8ebf4_add_site_airtable.py | bwlynch/FbScraper | d9973fddd9333271bb8c702204d31cd4437ab99a | [
"MIT"
] | 42 | 2020-03-02T17:23:32.000Z | 2022-03-02T15:09:23.000Z | migrations/versions/da6f10c8ebf4_add_site_airtable.py | bwlynch/FbScraper | d9973fddd9333271bb8c702204d31cd4437ab99a | [
"MIT"
] | 2 | 2020-06-17T12:27:11.000Z | 2021-09-17T09:29:54.000Z | """add site airtable
Revision ID: da6f10c8ebf4
Revises: 95de751e529c
Create Date: 2019-11-29 07:48:18.074193
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "da6f10c8ebf4"
down_revision = "aaae4ae18288"
branch_labels = None
depends_on = None
def upgrade():
... | 57.708333 | 238 | 0.697383 | 1,356 | 11,080 | 5.668142 | 0.320796 | 0.106167 | 0.166537 | 0.197762 | 0.190476 | 0.103955 | 0.07312 | 0.043195 | 0.043195 | 0.034088 | 0 | 0.128133 | 0.099819 | 11,080 | 191 | 239 | 58.010471 | 0.64247 | 0.029603 | 0 | 0.024096 | 0 | 0.126506 | 0.762526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018072 | false | 0 | 0.012048 | 0 | 0.03012 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e48d79c146f394afa1460564edac4e6bb5e4e00 | 722 | py | Python | 3.Object.Oriented.Programming/7.magicMethods.py | bhattvishal/programming-learning-python | 78498bfbe7c1c7b1bda53756ca8552ab30fbf538 | [
"MIT"
] | 1 | 2020-11-26T11:06:56.000Z | 2020-11-26T11:06:56.000Z | 3.Object.Oriented.Programming/7.magicMethods.py | bhattvishal/programming-learning-python | 78498bfbe7c1c7b1bda53756ca8552ab30fbf538 | [
"MIT"
] | null | null | null | 3.Object.Oriented.Programming/7.magicMethods.py | bhattvishal/programming-learning-python | 78498bfbe7c1c7b1bda53756ca8552ab30fbf538 | [
"MIT"
] | null | null | null | class Book:
def __init__(self, title, price, author):
super().__init__()
self.title = title
self.price = price
self.author = author
# Magic Methods
# use __str__ to writtren the string representation
def __str__(self):
return f"{self.title} is writt... | 28.88 | 93 | 0.606648 | 92 | 722 | 4.413043 | 0.5 | 0.08867 | 0.064039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.279778 | 722 | 25 | 94 | 28.88 | 0.769231 | 0.209141 | 0 | 0 | 0 | 0.0625 | 0.276408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1e49757eb14cf308fb57fd0b192222a345d5f43d | 359 | py | Python | app/models/attribute.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | null | null | null | app/models/attribute.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | 2 | 2019-05-21T08:44:29.000Z | 2021-04-30T20:46:08.000Z | app/models/attribute.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | null | null | null | """module of attribute model class"""
from .base_model import BaseModel, db
class Attribute(BaseModel):
"""attribute Model class"""
__tablename__ = 'attribute'
attribute_id = db.Column(db.Integer(), primary_key=True)
name = db.Column(db.String(100), nullable=False)
def __str__(self):
ret... | 27.615385 | 60 | 0.682451 | 44 | 359 | 5.318182 | 0.613636 | 0.119658 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.172702 | 359 | 13 | 61 | 27.615385 | 0.777778 | 0.147632 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
1e5bf955c4d190c38c6f8c3f48ce3934f8763ae6 | 409 | py | Python | subs2srs/core/preview_item.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | 3 | 2020-07-04T22:34:50.000Z | 2020-08-10T18:18:51.000Z | subs2srs/core/preview_item.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | 5 | 2020-07-04T08:34:36.000Z | 2021-05-19T01:27:04.000Z | subs2srs/core/preview_item.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | null | null | null | class PreviewItem:
def __init__(self, from_time, end_time, target_sub, native_sub):
super().__init__()
self.from_time = from_time
self.end_time = end_time
self.target_sub = target_sub
self.native_sub = native_sub
def from_time_seconds(self):
if self.from_time <= ... | 29.214286 | 68 | 0.640587 | 58 | 409 | 4.086207 | 0.362069 | 0.236287 | 0.253165 | 0.135021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.281174 | 409 | 13 | 69 | 31.461538 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1e67d4ed1d4083db4b3f7d419376b280b7374b13 | 206 | py | Python | catalog/__init__.py | stonescar/item-catalog-deploy | 418c655ca75e96381995564ebf664ef87e09dcba | [
"MIT"
] | null | null | null | catalog/__init__.py | stonescar/item-catalog-deploy | 418c655ca75e96381995564ebf664ef87e09dcba | [
"MIT"
] | null | null | null | catalog/__init__.py | stonescar/item-catalog-deploy | 418c655ca75e96381995564ebf664ef87e09dcba | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from catalog.modules.setup.app import app
if __name__ == '__main__':
app.secret_key = 'items'
app.debug = True
app.run(host='0.0.0.0', port=5000)
| 20.6 | 41 | 0.631068 | 33 | 206 | 3.666667 | 0.787879 | 0.049587 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053254 | 0.179612 | 206 | 9 | 42 | 22.888889 | 0.662722 | 0.203884 | 0 | 0 | 0 | 0 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
1e6b9ab90c9d7c4d9aeb89cc665c1b565f0b28cf | 150 | py | Python | 1_multiply.py | benanne/theano-tutorial | b6c4b1e443734a19eb734c314ca113be5da72f2b | [
"MIT"
] | 42 | 2015-02-10T04:55:05.000Z | 2021-03-27T17:23:54.000Z | 1_multiply.py | zsw1994326/theano-tutorial | b6c4b1e443734a19eb734c314ca113be5da72f2b | [
"MIT"
] | 1 | 2015-05-19T13:56:32.000Z | 2015-06-03T08:13:12.000Z | 1_multiply.py | zsw1994326/theano-tutorial | b6c4b1e443734a19eb734c314ca113be5da72f2b | [
"MIT"
] | 43 | 2015-02-10T12:53:26.000Z | 2019-03-29T07:37:58.000Z | import theano
import theano.tensor as T
a = T.scalar()
b = T.scalar()
y = a * b
f = theano.function([a, b], y)
print f(1, 2) # 2
print f(3, 3) # 9 | 12.5 | 30 | 0.586667 | 32 | 150 | 2.75 | 0.5 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052174 | 0.233333 | 150 | 12 | 31 | 12.5 | 0.713043 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1e6c2ee9f84175fe4a79fa34704d7d067a70a403 | 235 | py | Python | torch3d/nn/utils.py | zhangmozhe/torch3d | d47e9b243e520f9c0c72a26c271d2c7ad242cb65 | [
"BSD-3-Clause"
] | null | null | null | torch3d/nn/utils.py | zhangmozhe/torch3d | d47e9b243e520f9c0c72a26c271d2c7ad242cb65 | [
"BSD-3-Clause"
] | null | null | null | torch3d/nn/utils.py | zhangmozhe/torch3d | d47e9b243e520f9c0c72a26c271d2c7ad242cb65 | [
"BSD-3-Clause"
] | 1 | 2020-06-03T15:19:25.000Z | 2020-06-03T15:19:25.000Z | from collections.abc import Iterable
from itertools import repeat
def _ntuple(n):
def parse(x):
if isinstance(x, Iterable):
return x
return tuple(repeat(x, n))
return parse
_single = _ntuple(1)
| 15.666667 | 36 | 0.638298 | 31 | 235 | 4.741935 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.280851 | 235 | 14 | 37 | 16.785714 | 0.863905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
1e7304c1e58c4d93cc7d0fd2e09307d8bc27488b | 851 | py | Python | vial/plugins/misc/__init__.py | solarnz/vial | 080dd204c6fac49c9541cd179e7842de7cb6f8ee | [
"MIT"
] | null | null | null | vial/plugins/misc/__init__.py | solarnz/vial | 080dd204c6fac49c9541cd179e7842de7cb6f8ee | [
"MIT"
] | null | null | null | vial/plugins/misc/__init__.py | solarnz/vial | 080dd204c6fac49c9541cd179e7842de7cb6f8ee | [
"MIT"
] | null | null | null | import vial
def init():
vial.register_command('VialEscape', '.plugin.escape')
vial.register_command('VialSearchOutline', '.plugin.search_outline')
vial.register_command('VialChangedProjects', '.plugin.changed_projects')
vial.register_command('VialNew', '.plugin.new', complete='file', nargs=1)
vial... | 44.789474 | 80 | 0.66745 | 85 | 851 | 6.482353 | 0.435294 | 0.196007 | 0.275862 | 0.092559 | 0.292196 | 0.201452 | 0.130672 | 0 | 0 | 0 | 0 | 0.002857 | 0.177438 | 851 | 18 | 81 | 47.277778 | 0.784286 | 0 | 0 | 0.142857 | 0 | 0 | 0.374118 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0.071429 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1e7959687a3577d3c7bf1042fde82433cd358465 | 496 | py | Python | game.py | osmith93/str8ts | 41e7942bdd1c3c58c81f3a9b5109a8486eb48dae | [
"MIT"
] | null | null | null | game.py | osmith93/str8ts | 41e7942bdd1c3c58c81f3a9b5109a8486eb48dae | [
"MIT"
] | null | null | null | game.py | osmith93/str8ts | 41e7942bdd1c3c58c81f3a9b5109a8486eb48dae | [
"MIT"
] | null | null | null | from board import Cell, Board
vertical = "vertical"
horizontal = "horizontal"
class Game:
EMPTY = 0
BLOCKED = True
def __init__(self, size=9):
self.size = size
self.board = Board(size)
self.selected_cell = None
def load(self, filename):
"""
Load game state fr... | 19.076923 | 40 | 0.566532 | 58 | 496 | 4.758621 | 0.5 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.326613 | 496 | 25 | 41 | 19.84 | 0.820359 | 0.163306 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1e81be79cd4165b163ae8af407f82ec735ad8f95 | 470 | py | Python | level2/124_country_numbers.py | hyo-jae-jung/programmers | dfd589faafac2da2f3a9552b622d8631591e890f | [
"Unlicense"
] | null | null | null | level2/124_country_numbers.py | hyo-jae-jung/programmers | dfd589faafac2da2f3a9552b622d8631591e890f | [
"Unlicense"
] | null | null | null | level2/124_country_numbers.py | hyo-jae-jung/programmers | dfd589faafac2da2f3a9552b622d8631591e890f | [
"Unlicense"
] | null | null | null | def solution(n):
temp = []
while n/3 > 0:
if n%3 == 0:
temp.append(4)
n = n//3 - 1
else:
temp.append(n%3)
n = n//3
return ''.join(str(i) for i in reversed(temp))
print(solution(1))
print(solution(2))
print(solution(3))
print(solution(4))
prin... | 19.583333 | 50 | 0.565957 | 72 | 470 | 3.694444 | 0.402778 | 0.586466 | 0.022556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 0.253191 | 470 | 24 | 51 | 19.583333 | 0.689459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
1e87b4050625bad8ba5f960f793652515a7b80d6 | 1,114 | py | Python | HW/hw07/tests/interleave.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | 3 | 2022-01-21T15:52:32.000Z | 2022-03-06T11:02:34.000Z | HW/hw07/tests/interleave.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | null | null | null | HW/hw07/tests/interleave.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | 1 | 2022-02-13T08:28:27.000Z | 2022-02-13T08:28:27.000Z | test = {
'name': 'interleave',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
scm> (interleave (list 1 3 5) (list 2 4 6))
(1 2 3 4 5 6)
""",
'hidden': False,
'locked': False
},
{
'code': r"""
sc... | 21.843137 | 53 | 0.345601 | 133 | 1,114 | 2.894737 | 0.225564 | 0.27013 | 0.054545 | 0.090909 | 0.550649 | 0.537662 | 0.418182 | 0.418182 | 0.34026 | 0.34026 | 0 | 0.121479 | 0.490126 | 1,114 | 50 | 54 | 22.28 | 0.556338 | 0 | 0 | 0.3 | 0 | 0 | 0.649013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ea17e5cebf2d6f5a2892969792e72a2de4cc18b | 2,414 | py | Python | src/test/dataset/reader/csv_reader_test.py | KlemenGrebovsek/Cargo-stowage-optimization | 8867ee64da5056f966d261e84726208083f11934 | [
"MIT"
] | 2 | 2020-09-15T07:23:30.000Z | 2021-06-13T04:27:07.000Z | src/test/dataset/reader/csv_reader_test.py | KlemenGrebovsek/Cargo-stowage-optimization | 8867ee64da5056f966d261e84726208083f11934 | [
"MIT"
] | 1 | 2020-09-28T21:58:06.000Z | 2020-11-20T21:05:25.000Z | src/test/dataset/reader/csv_reader_test.py | KlemenGrebovsek/Cargo-stowage-optimization | 8867ee64da5056f966d261e84726208083f11934 | [
"MIT"
] | 1 | 2022-03-14T00:12:42.000Z | 2022-03-14T00:12:42.000Z | import unittest
from src.dataset.reader.csv_reader import CSVDatasetReader
from src.dataset.reader.dataset_reader_errors import InvalidFileContentError
class CSVReaderTest(unittest.TestCase):
def test_empty_path(self):
try:
reader = CSVDatasetReader()
_ = reader.read('')
... | 32.186667 | 76 | 0.596106 | 236 | 2,414 | 5.970339 | 0.224576 | 0.039745 | 0.073811 | 0.164656 | 0.645138 | 0.599716 | 0.557133 | 0.520937 | 0.352023 | 0.352023 | 0 | 0.005376 | 0.306545 | 2,414 | 74 | 77 | 32.621622 | 0.83632 | 0 | 0 | 0.516129 | 0 | 0 | 0.183927 | 0.057581 | 0 | 0 | 0 | 0 | 0.080645 | 1 | 0.129032 | false | 0.080645 | 0.048387 | 0 | 0.193548 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1eabcbd4a8bf4fe8a9167df6618cfb21090c2e90 | 136 | py | Python | EC3/Thu.py | CSUpengyuyan/ECExperiment | 4ea41837de421f18884be31248d57e88ea32b84b | [
"MIT"
] | null | null | null | EC3/Thu.py | CSUpengyuyan/ECExperiment | 4ea41837de421f18884be31248d57e88ea32b84b | [
"MIT"
] | null | null | null | EC3/Thu.py | CSUpengyuyan/ECExperiment | 4ea41837de421f18884be31248d57e88ea32b84b | [
"MIT"
] | null | null | null | import thulac
string = open('paper','r',encoding='UTF-8').read()
t = thulac.thulac()
result = t.cut(string)
print(len(result),result)
| 17 | 50 | 0.683824 | 21 | 136 | 4.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.102941 | 136 | 7 | 51 | 19.428571 | 0.754098 | 0 | 0 | 0 | 0 | 0 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1ebf2b58e2b22213e95f00ce294dc2c4f587884a | 525 | py | Python | oops_fhir/r4/value_set/list_mode.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/list_mode.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/list_mode.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.valueset import ValueSet as _ValueSet
from oops_fhir.utils import ValueSet
from oops_fhir.r4.code_system.list_mode import ListMode as ListMode_
__all__ = ["ListMode"]
_resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json"))
class ListMode(ListMode_):
... | 18.103448 | 69 | 0.72 | 70 | 525 | 5.114286 | 0.571429 | 0.078212 | 0.089385 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011737 | 0.188571 | 525 | 28 | 70 | 18.75 | 0.828639 | 0.24381 | 0 | 0 | 0 | 0 | 0.03523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1ecd027119525a6739c0a3c1e088467a151548e3 | 1,407 | py | Python | combinatorics.py | jrinconada/examen-tipo-test | d776b639b098bb803fb81f58dbde1c320ffe6b89 | [
"MIT"
] | null | null | null | combinatorics.py | jrinconada/examen-tipo-test | d776b639b098bb803fb81f58dbde1c320ffe6b89 | [
"MIT"
] | null | null | null | combinatorics.py | jrinconada/examen-tipo-test | d776b639b098bb803fb81f58dbde1c320ffe6b89 | [
"MIT"
] | null | null | null | from math import factorial
possibilities = 0
rightAnswers = [0]
answers = 4
questions = 1
# Initializes all the variables
def init(q, a):
global showPossibilites
global rightAnswers
global answers
global questions
questions = q
answers = len(a)
rightAnswers = [0] * (q + 1)
# COMBINATORICS... | 27.588235 | 129 | 0.714286 | 176 | 1,407 | 5.710227 | 0.352273 | 0.00796 | 0.027861 | 0.019901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011649 | 0.206823 | 1,407 | 50 | 130 | 28.14 | 0.888889 | 0.333333 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.16129 | 0.419355 | 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 | 0 | 0 | 0 | 2 |
1ecf9e87040d5603011cf5d4f5a992719d9289fb | 668 | py | Python | meiduo_mall/apps/meiduo_admin/views/user.py | kura-Lee/meiduo-mall | 8406eb49a41f8c8e726cca13231493b6422d427d | [
"MIT"
] | 1 | 2022-01-30T13:09:19.000Z | 2022-01-30T13:09:19.000Z | meiduo_mall/apps/meiduo_admin/views/user.py | kura-Lee/meiduo-mall | 8406eb49a41f8c8e726cca13231493b6422d427d | [
"MIT"
] | null | null | null | meiduo_mall/apps/meiduo_admin/views/user.py | kura-Lee/meiduo-mall | 8406eb49a41f8c8e726cca13231493b6422d427d | [
"MIT"
] | null | null | null | """
用户管理视图
"""
from rest_framework.generics import ListAPIView, ListCreateAPIView
from apps.meiduo_admin.serializers.user import UserSerializer
from apps.meiduo_admin.utils import PageNum
from apps.users.models import User
class UserAPIView(ListCreateAPIView):
"""用户查询和创建"""
serializer_class = UserSerializer... | 25.692308 | 66 | 0.715569 | 72 | 668 | 6.513889 | 0.625 | 0.051173 | 0.059701 | 0.081023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20509 | 668 | 25 | 67 | 26.72 | 0.883239 | 0.086826 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1ed974f765b33200823b45bdcbe2d3b1298ef491 | 699 | py | Python | api/post.py | covid19database/grid_pg | 2d5719f026d3e46a31aa3bfa1cf888bec7f902af | [
"MIT"
] | 1 | 2020-04-05T09:09:06.000Z | 2020-04-05T09:09:06.000Z | api/post.py | covid19database/grid_pg | 2d5719f026d3e46a31aa3bfa1cf888bec7f902af | [
"MIT"
] | null | null | null | api/post.py | covid19database/grid_pg | 2d5719f026d3e46a31aa3bfa1cf888bec7f902af | [
"MIT"
] | 1 | 2020-04-22T23:33:36.000Z | 2020-04-22T23:33:36.000Z | import requests
example = {
"userid": 1,
"timestamp": "2020-04-04T12:17:00",
"feels_sick": False,
"location_trace": [
{
"start_time": "2020-04-03T00:00:00",
"end_time": "2020-04-03T04:00:00",
"geographic_location": {
"lat": 37.8123177,
... | 24.103448 | 60 | 0.460658 | 72 | 699 | 4.361111 | 0.583333 | 0.095541 | 0.127389 | 0.095541 | 0.267516 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0.257403 | 0.37196 | 699 | 28 | 61 | 24.964286 | 0.457859 | 0 | 0 | 0.076923 | 0 | 0 | 0.350501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ee2c4c4f7c620a2843ae7976d2d230c270727d8 | 823 | py | Python | src/app/graph/console/schema.py | green2cerberuz/db_vgames | d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9 | [
"MIT"
] | null | null | null | src/app/graph/console/schema.py | green2cerberuz/db_vgames | d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9 | [
"MIT"
] | null | null | null | src/app/graph/console/schema.py | green2cerberuz/db_vgames | d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9 | [
"MIT"
] | null | null | null | import graphene
from app.schemas.console import ConsoleOutput
from .mutations import CreateConsole, DeleteConsole, UpdateConsole
from .resolvers import resolve_console
class ConsoleQuery(graphene.ObjectType):
"""Queries to get all console information."""
# consoles = graphene.List(graphene.relay.Node.Field... | 30.481481 | 70 | 0.752126 | 83 | 823 | 7.385542 | 0.554217 | 0.045677 | 0.065253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151883 | 823 | 26 | 71 | 31.653846 | 0.878224 | 0.244228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
94a420462f613f1e4476b010cf1b00513d90eb08 | 1,578 | py | Python | test/test_oss_util.py | LeonSu070/jira_bug_analysis | 6b1d814270be25a62706ab58b0b31c8771b649d9 | [
"Apache-2.0"
] | 2 | 2018-11-16T07:00:43.000Z | 2018-12-13T08:17:39.000Z | test/test_oss_util.py | LeonSu070/jira_bug_analysis | 6b1d814270be25a62706ab58b0b31c8771b649d9 | [
"Apache-2.0"
] | null | null | null | test/test_oss_util.py | LeonSu070/jira_bug_analysis | 6b1d814270be25a62706ab58b0b31c8771b649d9 | [
"Apache-2.0"
] | 1 | 2019-09-16T09:53:12.000Z | 2019-09-16T09:53:12.000Z | import datetime
import re
from unittest import TestCase
from module import storage_util
from module.oss_util import read_file_in_oss, copy_file, delete_file
from module.pyplot_util import generate_pie_chart
class TestOSSUtil(TestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
def ... | 40.461538 | 102 | 0.7218 | 229 | 1,578 | 4.510917 | 0.305677 | 0.108422 | 0.135528 | 0.176186 | 0.333979 | 0.301065 | 0.297193 | 0.268151 | 0.247822 | 0.21878 | 0 | 0.008397 | 0.169835 | 1,578 | 38 | 103 | 41.526316 | 0.780153 | 0 | 0 | 0.066667 | 1 | 0.033333 | 0.257921 | 0.213561 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.166667 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94a854ef94a5dbabfe710722210f737a60c5f396 | 2,129 | py | Python | accounts/forms.py | lfranceschetti/lyprox | 08410994068a89cc81a92746392b0c0188e403ee | [
"MIT"
] | 1 | 2021-11-05T06:44:36.000Z | 2021-11-05T06:44:36.000Z | accounts/forms.py | lfranceschetti/lyprox | 08410994068a89cc81a92746392b0c0188e403ee | [
"MIT"
] | 25 | 2021-06-25T09:48:05.000Z | 2021-10-19T10:00:28.000Z | accounts/forms.py | rmnldwg/lymph-interface | c51dece62091c22738dbeb20b18aa0f3d079da35 | [
"MIT"
] | 1 | 2022-02-01T07:10:21.000Z | 2022-02-01T07:10:21.000Z | from django import forms
from django.contrib.auth.forms import AuthenticationForm, UsernameField
from django.forms import widgets
from .models import User
class CustomAuthenticationForm(AuthenticationForm):
"""Custom form that allows assignment of classes to widgets. Note that due
to the inheritance from `Au... | 38.709091 | 80 | 0.575857 | 223 | 2,129 | 5.479821 | 0.538117 | 0.057283 | 0.061375 | 0.085106 | 0.10802 | 0.057283 | 0 | 0 | 0 | 0 | 0 | 0.002706 | 0.305777 | 2,129 | 54 | 81 | 39.425926 | 0.824087 | 0.217003 | 0 | 0 | 0 | 0 | 0.210494 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.027027 | false | 0.081081 | 0.108108 | 0 | 0.297297 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
94b543d23a74f7d549ecab2fdd64db5ed182861b | 97 | py | Python | lsrtm_1d/__init__.py | ar4/lsrtm_1d | b6d1ab41eea9f3082c078bb41a5a46555b907f14 | [
"MIT"
] | 3 | 2019-04-23T13:31:37.000Z | 2021-01-08T05:24:28.000Z | lsrtm_1d/__init__.py | ar4/lsrtm_1d | b6d1ab41eea9f3082c078bb41a5a46555b907f14 | [
"MIT"
] | null | null | null | lsrtm_1d/__init__.py | ar4/lsrtm_1d | b6d1ab41eea9f3082c078bb41a5a46555b907f14 | [
"MIT"
] | 1 | 2020-06-01T17:34:51.000Z | 2020-06-01T17:34:51.000Z | """Least-squares Reverse Time Migration using 1D scalar wave equation.
"""
__version__ = '0.0.1'
| 24.25 | 70 | 0.731959 | 14 | 97 | 4.785714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.134021 | 97 | 3 | 71 | 32.333333 | 0.75 | 0.690722 | 0 | 0 | 0 | 0 | 0.217391 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94bfeea32c538a248f39ffcd9de44fa55210ac4f | 1,106 | py | Python | dank/dank.py | UltimatePancake/Pancake-Cogs | 8cf9a913b7839488f190a8eb25e25d252e30dc7b | [
"MIT"
] | 5 | 2017-07-26T12:35:59.000Z | 2020-06-08T13:52:01.000Z | dank/dank.py | UltimatePancake/Pancake-Cogs | 8cf9a913b7839488f190a8eb25e25d252e30dc7b | [
"MIT"
] | 3 | 2017-04-17T03:39:11.000Z | 2018-07-03T21:31:28.000Z | dank/dank.py | UltimatePancake/Pancake-Cogs | 8cf9a913b7839488f190a8eb25e25d252e30dc7b | [
"MIT"
] | 11 | 2017-02-02T18:15:27.000Z | 2021-09-12T06:06:13.000Z | from discord.ext import commands
class Dank:
"""Dank memes, yo."""
def __init__(self, bot):
self.bot = bot
self.base = "data/dank/"
@commands.command(pass_context=True)
async def dickbutt(self, ctx):
"""Dickbutt."""
await self.bot.send_file(ctx.message.channel,
... | 29.105263 | 68 | 0.563291 | 128 | 1,106 | 4.765625 | 0.3125 | 0.068852 | 0.12459 | 0.170492 | 0.570492 | 0.570492 | 0.570492 | 0.508197 | 0.265574 | 0.265574 | 0 | 0 | 0.293852 | 1,106 | 37 | 69 | 29.891892 | 0.78105 | 0.013562 | 0 | 0.347826 | 0 | 0 | 0.062192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.173913 | 0.043478 | 0 | 0.173913 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
94d35eb4ae87047728d09d0033cbc6a330b8e4a0 | 407 | py | Python | lizty-liztz.py | sgriffith3/2020-12-07-PyNDE | 9924fd3dbc006f083d11b55e07571fa4117b41dc | [
"MIT"
] | 1 | 2020-12-10T15:57:58.000Z | 2020-12-10T15:57:58.000Z | lizty-liztz.py | sgriffith3/2020-12-07-PyNDE | 9924fd3dbc006f083d11b55e07571fa4117b41dc | [
"MIT"
] | null | null | null | lizty-liztz.py | sgriffith3/2020-12-07-PyNDE | 9924fd3dbc006f083d11b55e07571fa4117b41dc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
pets = [["dogs", "cats", "fish"], ["iguana", "tortoise", "llama"]]
# index 0 1
print(pets[0])
# pets[0] = ['dogs', 'cats', 'fish']
# index 0 1 2
normal_pets = pets[0]
print(normal_pets[2])
print(pets[0][1])
print(pets[1])
# pets[1] = ['... | 25.4375 | 66 | 0.46683 | 54 | 407 | 3.481481 | 0.314815 | 0.042553 | 0.111702 | 0.255319 | 0.276596 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0.068592 | 0.31941 | 407 | 16 | 67 | 25.4375 | 0.610108 | 0.530713 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
94d723211e53308b5617c09ac083323888e8d4f4 | 568 | py | Python | app/migrations/0013_auto_20220203_1618.py | Maryan23/Moringa-Alumni-Backend | c75e18ee928ab195a9a13852c5933f0269f101cb | [
"MIT"
] | null | null | null | app/migrations/0013_auto_20220203_1618.py | Maryan23/Moringa-Alumni-Backend | c75e18ee928ab195a9a13852c5933f0269f101cb | [
"MIT"
] | null | null | null | app/migrations/0013_auto_20220203_1618.py | Maryan23/Moringa-Alumni-Backend | c75e18ee928ab195a9a13852c5933f0269f101cb | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-02-03 13:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0012_auto_20220203_1617'),
]
operations = [
migrations.AlterField(
model_name='fundraiser',
name='end_date',
... | 23.666667 | 69 | 0.589789 | 59 | 568 | 5.525424 | 0.661017 | 0.122699 | 0.153374 | 0.177914 | 0.263804 | 0.263804 | 0 | 0 | 0 | 0 | 0 | 0.077694 | 0.297535 | 568 | 23 | 70 | 24.695652 | 0.739348 | 0.079225 | 0 | 0.352941 | 1 | 0 | 0.122841 | 0.044146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94d84201e5a4caa5ed22d69af439e8a5640bb6aa | 487 | py | Python | plugs_payments/signals.py | solocompt/plugs-payments | ef69a7e9707a325b588e2087aad21a487bcf6746 | [
"MIT"
] | null | null | null | plugs_payments/signals.py | solocompt/plugs-payments | ef69a7e9707a325b588e2087aad21a487bcf6746 | [
"MIT"
] | null | null | null | plugs_payments/signals.py | solocompt/plugs-payments | ef69a7e9707a325b588e2087aad21a487bcf6746 | [
"MIT"
] | null | null | null | """
Plugs Payments Signals
"""
from django.dispatch import Signal
# sent when a validated ifthen payment received
valid_ifthen_payment_received = Signal()
# sent when an invalid payment received
# could be an error with a reference, value or entity
# cannot be the anti phishing key
invalid_ifthen_payment_received = ... | 25.631579 | 58 | 0.796715 | 70 | 487 | 5.414286 | 0.585714 | 0.197889 | 0.221636 | 0.21372 | 0.184697 | 0.184697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156057 | 487 | 18 | 59 | 27.055556 | 0.922141 | 0.609856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
94f48e0df9241e45bb107e098816151338c321e0 | 892 | py | Python | django_job/users/admin.py | Mohitkaushal97/File | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | [
"MIT"
] | null | null | null | django_job/users/admin.py | Mohitkaushal97/File | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | [
"MIT"
] | null | null | null | django_job/users/admin.py | Mohitkaushal97/File | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | [
"MIT"
] | null | null | null | # from allauth.account.models import EmailAddress
# from django.contrib import admin
# from django.contrib.auth import admin as auth_admin
# from django.contrib.auth import get_user_model
# from django_job.users.forms import UserCreationForm, UserChangeForm
#
# User = get_user_model()
#
# class EmailAddressInli... | 33.037037 | 86 | 0.682735 | 92 | 892 | 6.478261 | 0.445652 | 0.067114 | 0.08557 | 0.073826 | 0.211409 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0.001376 | 0.184978 | 892 | 26 | 87 | 34.307692 | 0.818432 | 0.908072 | 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 | 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 | 2 |
a20d8c3578d412e06c427f81ca0380a9ed6502b6 | 267 | py | Python | tests/test_add_metaphor.py | KyleMaclean/Poetry-Generator | d69e30636403194668e22f87d6aecef24e1aba36 | [
"MIT"
] | null | null | null | tests/test_add_metaphor.py | KyleMaclean/Poetry-Generator | d69e30636403194668e22f87d6aecef24e1aba36 | [
"MIT"
] | null | null | null | tests/test_add_metaphor.py | KyleMaclean/Poetry-Generator | d69e30636403194668e22f87d6aecef24e1aba36 | [
"MIT"
] | null | null | null | from unittest import TestCase
from agents.add_metaphor import do
class Test(TestCase):
# reported
def test_do(self):
actual_line = do('you are beautiful')
self.assertEqual(actual_line, 'you are beautiful as the vivid colors of a painting')
| 24.272727 | 92 | 0.715356 | 38 | 267 | 4.921053 | 0.684211 | 0.106952 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 267 | 10 | 93 | 26.7 | 0.890476 | 0.029963 | 0 | 0 | 0 | 0 | 0.264591 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a210aa65b7f06aea5ebd2d2db92156a76c431771 | 204 | py | Python | libs/utils/utils.py | niryarden/lyrics_bot | 9968dea4c3aea0cdd254ae02d4fe9d745c76dd2a | [
"MIT"
] | null | null | null | libs/utils/utils.py | niryarden/lyrics_bot | 9968dea4c3aea0cdd254ae02d4fe9d745c76dd2a | [
"MIT"
] | 1 | 2021-06-02T00:44:27.000Z | 2021-06-02T00:44:27.000Z | libs/utils/utils.py | niryarden/lyrics_bot | 9968dea4c3aea0cdd254ae02d4fe9d745c76dd2a | [
"MIT"
] | null | null | null | import configparser
def get_base_url():
parser = configparser.ConfigParser()
parser.read('token.cfg')
token = parser.get('creds', 'token')
return f"https://api.telegram.org/bot{token}/"
| 22.666667 | 50 | 0.681373 | 26 | 204 | 5.269231 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 204 | 8 | 51 | 25.5 | 0.796512 | 0 | 0 | 0 | 0 | 0 | 0.269608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
a2122b3dfdf6b7d319adac8573cd0bfd8e40b752 | 928 | py | Python | server.py | tunicashashi/IBM_Cloud_Flask | 8f15c5024beecd18ef2627971f5df3c473878f0f | [
"Apache-2.0"
] | null | null | null | server.py | tunicashashi/IBM_Cloud_Flask | 8f15c5024beecd18ef2627971f5df3c473878f0f | [
"Apache-2.0"
] | null | null | null | server.py | tunicashashi/IBM_Cloud_Flask | 8f15c5024beecd18ef2627971f5df3c473878f0f | [
"Apache-2.0"
] | null | null | null | import os
from flask import Flask
from flask import request
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler as Handler
from SocketServer import TCPServer as Server
except ImportError:
from http.server import SimpleHTTPRequestHandler as Handler
from http.server import HTTPServer as Server
# Read por... | 24.421053 | 66 | 0.732759 | 126 | 928 | 5.285714 | 0.531746 | 0.031532 | 0.045045 | 0.117117 | 0.129129 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010323 | 0.164871 | 928 | 38 | 67 | 24.421053 | 0.849032 | 0.384698 | 0 | 0 | 0 | 0 | 0.09319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.470588 | 0.058824 | 0.588235 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bf48f3a689516071fdf784a081d7ef7a7273d4d0 | 991 | py | Python | tests/test_examples.py | banesullivan/localtileserver | 6963b6b491a54ef59c48d7a73370ad1e016e73fb | [
"MIT"
] | 105 | 2021-11-25T21:10:50.000Z | 2022-03-29T22:58:59.000Z | tests/test_examples.py | banesullivan/localtileserver | 6963b6b491a54ef59c48d7a73370ad1e016e73fb | [
"MIT"
] | 61 | 2021-11-25T19:05:39.000Z | 2022-03-30T17:38:42.000Z | tests/test_examples.py | banesullivan/flask-tile-server | 6963b6b491a54ef59c48d7a73370ad1e016e73fb | [
"MIT"
] | 15 | 2021-11-30T20:51:43.000Z | 2022-02-08T23:55:46.000Z | from localtileserver import examples
def test_get_blue_marble():
client = examples.get_blue_marble()
assert client.metadata()
def test_get_virtual_earth():
client = examples.get_virtual_earth()
assert client.metadata()
def test_get_arcgis():
client = examples.get_arcgis()
assert client.met... | 19.057692 | 41 | 0.723512 | 124 | 991 | 5.459677 | 0.193548 | 0.103397 | 0.14771 | 0.305761 | 0.425406 | 0.425406 | 0.115214 | 0 | 0 | 0 | 0 | 0.002448 | 0.17558 | 991 | 51 | 42 | 19.431373 | 0.826193 | 0 | 0 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322581 | 1 | 0.322581 | false | 0 | 0.032258 | 0 | 0.354839 | 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 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.