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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39de946189cea1d5c6578bc6547c0c6f3716e5d1 | 128 | py | Python | tahoe-viz/genolake/tahoe/pileup/_version.py | genolake/tahoe | c9cab1848f7b2afc8055325f8076d2d60706ea23 | [
"Apache-2.0"
] | null | null | null | tahoe-viz/genolake/tahoe/pileup/_version.py | genolake/tahoe | c9cab1848f7b2afc8055325f8076d2d60706ea23 | [
"Apache-2.0"
] | null | null | null | tahoe-viz/genolake/tahoe/pileup/_version.py | genolake/tahoe | c9cab1848f7b2afc8055325f8076d2d60706ea23 | [
"Apache-2.0"
] | 1 | 2019-11-05T05:24:33.000Z | 2019-11-05T05:24:33.000Z |
version_info = (0, 0, '6a1')
__version__ = '.'.join(map(str, version_info))
if __name__ == '__main__':
print(__version__)
| 18.285714 | 46 | 0.65625 | 16 | 128 | 4.125 | 0.6875 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.15625 | 128 | 6 | 47 | 21.333333 | 0.574074 | 0 | 0 | 0 | 0 | 0 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39e7b8ea692f36b83e452a2546d38effbe2899f6 | 297 | py | Python | data_structures/01_arrays/01_arrays_reversing_a_list.py | ganius/hackerrank | 4bf394b54c3f54e9ec36fb586e9bf6307018d02b | [
"MIT"
] | null | null | null | data_structures/01_arrays/01_arrays_reversing_a_list.py | ganius/hackerrank | 4bf394b54c3f54e9ec36fb586e9bf6307018d02b | [
"MIT"
] | null | null | null | data_structures/01_arrays/01_arrays_reversing_a_list.py | ganius/hackerrank | 4bf394b54c3f54e9ec36fb586e9bf6307018d02b | [
"MIT"
] | null | null | null | # Python equivalent of an array is a list
def reverse_array(a_list):
"""
https://www.hackerrank.com/challenges/01_arrays-ds/problem
We can reverse an array by simply providing the step value in list slice parameters
-1 means go backwards one by one
"""
return a_list[::-1]
| 33 | 87 | 0.707071 | 48 | 297 | 4.291667 | 0.75 | 0.072816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017021 | 0.208754 | 297 | 8 | 88 | 37.125 | 0.859574 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f2d22039a6d22767171c583a91961af97d4ac91e | 167 | py | Python | 2019-08-10/07/zad7.py | SzczecinTech/zadania-rekrutacyjne | fad5d7a6ab7ae77e567610c56fbbcd4a38f8b2c2 | [
"MIT"
] | 1 | 2019-09-05T20:35:07.000Z | 2019-09-05T20:35:07.000Z | 2019-08-10/07/zad7.py | SzczecinTech/zadania-rekrutacyjne | fad5d7a6ab7ae77e567610c56fbbcd4a38f8b2c2 | [
"MIT"
] | 1 | 2020-03-20T15:27:10.000Z | 2020-03-20T15:27:10.000Z | 2019-08-10/07/zad7.py | SzczecinTech/zadania-rekrutacyjne | fad5d7a6ab7ae77e567610c56fbbcd4a38f8b2c2 | [
"MIT"
] | 10 | 2019-08-10T08:26:09.000Z | 2019-08-15T13:50:48.000Z | def equal_slices(total, num, per_person):
res = num * per_person
if res <= total:
return True
return False
foo = equal_slices(11, 11, 1)
print(str(foo))
| 13.916667 | 41 | 0.664671 | 27 | 167 | 3.962963 | 0.62963 | 0.205607 | 0.224299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.221557 | 167 | 11 | 42 | 15.181818 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 1 | 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 | 3 |
f2edc5c9941669eccaf74856a2a5e02867c5e5e2 | 1,339 | py | Python | backend/app/helpers/auth/password.py | shvixxl/tablic | 3ca2f026d84fab9692e7e5adde74a9716266ff5e | [
"MIT"
] | 2 | 2021-02-05T16:55:41.000Z | 2021-02-07T21:46:37.000Z | backend/app/helpers/auth/password.py | shvixxl/tablic | 3ca2f026d84fab9692e7e5adde74a9716266ff5e | [
"MIT"
] | 1 | 2021-10-30T15:42:53.000Z | 2021-10-30T15:42:53.000Z | backend/app/helpers/auth/password.py | shvixxl/tablic | 3ca2f026d84fab9692e7e5adde74a9716266ff5e | [
"MIT"
] | null | null | null | """Password helpers."""
import hashlib
import hmac
import bcrypt
def generate_password_hash(password: str) -> bytes:
"""Generates a password hash using bcrypt."""
password = _clean_password(password)
return bcrypt.hashpw(password, bcrypt.gensalt())
def check_password_hash(password: str, password_hash: ... | 26.78 | 76 | 0.705004 | 165 | 1,339 | 5.527273 | 0.345455 | 0.118421 | 0.087719 | 0.072368 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.197909 | 1,339 | 49 | 77 | 27.326531 | 0.837989 | 0.250934 | 0 | 0.24 | 1 | 0 | 0.005274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.64 | 0.12 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f2fc01bff8a220898ad876f66504e04de4a5324f | 254 | py | Python | treetest2/abstract_application_vertex.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | treetest2/abstract_application_vertex.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | treetest2/abstract_application_vertex.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | from abstract_vertex import AbstractVertex
class AbstractApplicationVertex(AbstractVertex):
""" A vertex that can be broken down into a number of smaller vertices\
based on the resources that the vertex requires
"""
__slots__ = ()
| 25.4 | 75 | 0.732283 | 30 | 254 | 6.033333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216535 | 254 | 9 | 76 | 28.222222 | 0.909548 | 0.476378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
8406e2387b720b16d69db7b66bd69d4bdbd4ea91 | 2,089 | py | Python | packages/sdk/odahuflow/sdk/models/api_local_backend_config.py | odahu/odahuflow | 58c3220a266a61bb893cf79c4b994569e3445097 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2020-10-13T15:39:52.000Z | 2021-10-11T17:13:42.000Z | packages/sdk/odahuflow/sdk/models/api_local_backend_config.py | odahu/odahuflow | 58c3220a266a61bb893cf79c4b994569e3445097 | [
"ECL-2.0",
"Apache-2.0"
] | 475 | 2019-11-18T12:40:47.000Z | 2022-03-29T21:17:38.000Z | packages/sdk/odahuflow/sdk/models/api_local_backend_config.py | odahu/odahuflow | 58c3220a266a61bb893cf79c4b994569e3445097 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-02-25T11:26:10.000Z | 2021-03-10T12:01:00.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from odahuflow.sdk.models.base_model_ import Model
from odahuflow.sdk.models import util
class APILocalBackendConfig(Model):
"""NOTE: This class is auto generated... | 31.179104 | 110 | 0.688846 | 260 | 2,089 | 5.223077 | 0.284615 | 0.185567 | 0.231959 | 0.293814 | 0.519882 | 0.488218 | 0.395434 | 0.354197 | 0.318115 | 0.225331 | 0 | 0.013924 | 0.243657 | 2,089 | 66 | 111 | 31.651515 | 0.84557 | 0.447583 | 0 | 0.086957 | 0 | 0 | 0.085366 | 0.066057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
84084c6a3b99d8dc70f3680310f43da8f148dcad | 1,632 | py | Python | icor-src/icor/landsat8_metadata.py | DHI-GRAS/docker-icor | 40fa1cbca545f191916a6eedfd6e1b9cf053ec6f | [
"MIT"
] | 3 | 2019-10-29T11:34:49.000Z | 2021-05-17T15:16:05.000Z | icor-src/icor/landsat8_metadata.py | DHI-GRAS/docker-icor | 40fa1cbca545f191916a6eedfd6e1b9cf053ec6f | [
"MIT"
] | 1 | 2021-12-17T21:33:17.000Z | 2022-01-18T19:29:27.000Z | icor-src/icor/landsat8_metadata.py | DHI-GRAS/docker-icor | 40fa1cbca545f191916a6eedfd6e1b9cf053ec6f | [
"MIT"
] | null | null | null | import datetime
class Landsat8_metadata:
def __init__(self,config_file_location):
self.config_file_location = config_file_location
def parse_config_file(self):
self.keys_vars = {}
with open(self.config_file_location) as config_file:
for line in config_file:
... | 30.222222 | 93 | 0.629902 | 221 | 1,632 | 4.352941 | 0.371041 | 0.065489 | 0.099792 | 0.070686 | 0.264033 | 0.214137 | 0.176715 | 0.110187 | 0.110187 | 0 | 0 | 0.025932 | 0.243873 | 1,632 | 54 | 94 | 30.222222 | 0.753647 | 0.037377 | 0 | 0 | 0 | 0 | 0.099936 | 0.027371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.030303 | 0.151515 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
843ca3b527a6b2c99ac8cde18d4a7dfd486b1627 | 6,239 | py | Python | opnsense_cli/api/plugin/haproxy.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 13 | 2021-05-17T10:42:25.000Z | 2022-02-21T02:10:41.000Z | opnsense_cli/api/plugin/haproxy.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 14 | 2021-05-17T13:53:27.000Z | 2021-12-16T12:45:44.000Z | opnsense_cli/api/plugin/haproxy.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 2 | 2021-04-28T08:41:07.000Z | 2022-03-28T10:20:51.000Z | from opnsense_cli.api.base import ApiBase
class Export(ApiBase):
MODULE = "haproxy"
CONTROLLER = "export"
"""
Haproxy ExportController
"""
@ApiBase._api_call
def config(self, *args):
self.method = "get"
self.command = "config"
@ApiBase._api_call
def diff(self, *ar... | 23.454887 | 44 | 0.586953 | 674 | 6,239 | 5.289318 | 0.109792 | 0.134642 | 0.188499 | 0.228892 | 0.46087 | 0.46087 | 0.46087 | 0.092006 | 0.092006 | 0 | 0 | 0 | 0.287546 | 6,239 | 265 | 45 | 23.543396 | 0.802025 | 0 | 0 | 0.490099 | 0 | 0 | 0.107096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237624 | false | 0 | 0.004951 | 0 | 0.287129 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
843f2a55fcd05086591f08ad88121805e043a093 | 1,218 | py | Python | DataCollection/DataLoader/src/elasticsearch_service.py | SerayBeser/-Data-Science-Tools | 767c1ee04bb26a42cf191b7a2e2687ead2bde618 | [
"Apache-2.0"
] | null | null | null | DataCollection/DataLoader/src/elasticsearch_service.py | SerayBeser/-Data-Science-Tools | 767c1ee04bb26a42cf191b7a2e2687ead2bde618 | [
"Apache-2.0"
] | null | null | null | DataCollection/DataLoader/src/elasticsearch_service.py | SerayBeser/-Data-Science-Tools | 767c1ee04bb26a42cf191b7a2e2687ead2bde618 | [
"Apache-2.0"
] | 1 | 2021-12-25T14:18:59.000Z | 2021-12-25T14:18:59.000Z | # coding=utf-8
"""
Elasticsearch Service
"""
__author__ = 'Seray Beser'
from elasticsearch import Elasticsearch
from DataCollection.DataLoader.src.abstract_service import AbstractService
class ElasticsearchService(AbstractService):
"""
Elasticsearch Service for importing and exporting data
"""
de... | 24.857143 | 77 | 0.642036 | 134 | 1,218 | 5.5 | 0.440299 | 0.04749 | 0.07327 | 0.105834 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004489 | 0.268473 | 1,218 | 48 | 78 | 25.375 | 0.822671 | 0.227422 | 0 | 0 | 0 | 0 | 0.029162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.055556 | 0.111111 | 0.055556 | 0.555556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
845957bb1d91596dcac23964647e7b219b32609a | 2,733 | py | Python | app/models.py | gitaux/flask-app | 3172927c65ff380ab8b9aeb8f3df42e357e1f35e | [
"MIT"
] | null | null | null | app/models.py | gitaux/flask-app | 3172927c65ff380ab8b9aeb8f3df42e357e1f35e | [
"MIT"
] | null | null | null | app/models.py | gitaux/flask-app | 3172927c65ff380ab8b9aeb8f3df42e357e1f35e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# app/models.py
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from app import db, lm
class User(UserMixin, db.Model):
"""
Create an User table.
"""
__tablename__ = 'users'
id = db.Column(db.Integer, primary_ke... | 26.278846 | 73 | 0.633004 | 355 | 2,733 | 4.704225 | 0.259155 | 0.095808 | 0.11976 | 0.105389 | 0.435329 | 0.435329 | 0.384431 | 0.31018 | 0.250898 | 0.206587 | 0 | 0.012796 | 0.227955 | 2,733 | 103 | 74 | 26.533981 | 0.778673 | 0.109769 | 0 | 0.269231 | 1 | 0 | 0.064987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.173077 | 0.057692 | 0.096154 | 0.903846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
845c9d5b82eb7b3dea40bfa34fdbde156902c9c4 | 58 | py | Python | target365_sdk/__init__.py | paalvibe/sdk-for-python | 382a31c6a8cce87b18160c55ea3db7eb195b7f0d | [
"MIT"
] | null | null | null | target365_sdk/__init__.py | paalvibe/sdk-for-python | 382a31c6a8cce87b18160c55ea3db7eb195b7f0d | [
"MIT"
] | 4 | 2018-10-17T15:50:01.000Z | 2021-01-18T11:09:52.000Z | target365_sdk/__init__.py | paalvibe/sdk-for-python | 382a31c6a8cce87b18160c55ea3db7eb195b7f0d | [
"MIT"
] | 2 | 2019-02-13T09:37:17.000Z | 2020-12-17T16:20:58.000Z | from .api_client import ApiClient
name = "target365_sdk"
| 14.5 | 33 | 0.793103 | 8 | 58 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.137931 | 58 | 3 | 34 | 19.333333 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ffc3b12ad1de2efe7c41138fa659445519d83cd1 | 1,682 | py | Python | voip_monitor/CVE-2022-24260.py | tuannm-1876/cybersec-pocs | 05b6e05f830bf3e57907493e7578ffdb243d70b2 | [
"MIT"
] | null | null | null | voip_monitor/CVE-2022-24260.py | tuannm-1876/cybersec-pocs | 05b6e05f830bf3e57907493e7578ffdb243d70b2 | [
"MIT"
] | null | null | null | voip_monitor/CVE-2022-24260.py | tuannm-1876/cybersec-pocs | 05b6e05f830bf3e57907493e7578ffdb243d70b2 | [
"MIT"
] | null | null | null | import requests
import argparse
def parse_args():
parser = argparse.ArgumentParser(prog="python3 CVE-2022-24260.py")
parser.add_argument('-u', '--url', required=True, type=str, default=None)
parser.add_argument('--proxy', required=False, type=str, default=None,
help="Proxy URL, sup... | 44.263158 | 560 | 0.661712 | 250 | 1,682 | 4.432 | 0.376 | 0.628159 | 0.920578 | 1.198556 | 0.3213 | 0.3213 | 0.3213 | 0.3213 | 0.3213 | 0.3213 | 0 | 0.035436 | 0.161118 | 1,682 | 37 | 561 | 45.459459 | 0.749823 | 0 | 0 | 0 | 0 | 0.103448 | 0.517241 | 0.294887 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.034483 | 0.068966 | 0 | 0.206897 | 0.103448 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ffdb446710f2a3eb72ed13efcb508d8ac7139504 | 3,251 | py | Python | test/test_dataset.py | joeflack4/pma-api | de213833c93ad0c90b127188526c9eced31edc75 | [
"MIT"
] | 2 | 2018-08-24T14:27:25.000Z | 2020-05-11T18:59:24.000Z | test/test_dataset.py | joeflack4/pma-api | de213833c93ad0c90b127188526c9eced31edc75 | [
"MIT"
] | 36 | 2018-07-13T15:49:50.000Z | 2019-07-17T18:29:28.000Z | test/test_dataset.py | joeflack4/pma-api | de213833c93ad0c90b127188526c9eced31edc75 | [
"MIT"
] | 4 | 2018-07-12T19:24:52.000Z | 2021-03-09T16:08:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Unit tests for dataset class."""
# import datetime
# import os
# import unittest
#
# from pma_api import db, create_app
# from pma_api.db_models import Dataset
#
# from .config import TEST_STATIC_DIR
#
#
# # TODO: incomplete
# class TestDataset(unittest.TestCase):
# ... | 34.585106 | 76 | 0.584128 | 412 | 3,251 | 4.466019 | 0.36165 | 0.059783 | 0.063587 | 0.095109 | 0.370109 | 0.326087 | 0.28913 | 0.251087 | 0.225 | 0.155435 | 0 | 0.016674 | 0.280529 | 3,251 | 93 | 77 | 34.956989 | 0.769987 | 0.938788 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.010753 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ffee2d2196371e43b7e4f3f6ac529f6f13241b32 | 367 | py | Python | examples/idioms/programs/014.3410-pick-uniformly-a-random-floating-point-number-in-ab.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 31 | 2020-05-02T13:34:26.000Z | 2021-06-06T17:25:52.000Z | examples/idioms/programs/014.3410-pick-uniformly-a-random-floating-point-number-in-ab.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 108 | 2019-11-18T19:41:52.000Z | 2022-03-18T13:58:17.000Z | examples/idioms/programs/014.3410-pick-uniformly-a-random-floating-point-number-in-ab.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 4 | 2020-05-19T08:57:44.000Z | 2020-09-21T08:53:46.000Z | """Pick uniformly a random floating point number in [a..b[.
Pick a random number greater than or equals to _a, strictly inferior to _b. Precondition : _a < _b.
Source: programming-idioms.org
"""
# Implementation author: vinodv
# Created on 2019-09-28T08:37:42.776686Z
# Last modified on 2019-09-28T08:37:42.776686Z
# ... | 22.9375 | 99 | 0.743869 | 59 | 367 | 4.559322 | 0.644068 | 0.022305 | 0.05948 | 0.096654 | 0.178439 | 0.178439 | 0.178439 | 0 | 0 | 0 | 0 | 0.131833 | 0.152589 | 367 | 15 | 100 | 24.466667 | 0.733119 | 0.855586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
080c1c7f009c681e9ecdc451b05cfd6e2d650e7b | 240 | py | Python | lab-523.py | ZaraTam/DAT208x | 21b31d640e1f0e03525c3a18b6ef83a73bf2d644 | [
"MIT"
] | 1 | 2016-06-09T18:54:16.000Z | 2016-06-09T18:54:16.000Z | lab-523.py | ZaraTam/DAT208x | 21b31d640e1f0e03525c3a18b6ef83a73bf2d644 | [
"MIT"
] | null | null | null | lab-523.py | ZaraTam/DAT208x | 21b31d640e1f0e03525c3a18b6ef83a73bf2d644 | [
"MIT"
] | null | null | null | # Histogram of life_exp, 15 bins
plt.hist(life_exp, bins = 15)
# Show and clear plot
plt.show()
plt.clf()
# Histogram of life_exp1950, 15 bins
plt.hist(life_exp1950, bins = 15)
# Show and clear plot again
plt.show()
plt.clf() | 18.461538 | 37 | 0.679167 | 41 | 240 | 3.878049 | 0.365854 | 0.138365 | 0.188679 | 0.163522 | 0.490566 | 0.27673 | 0 | 0 | 0 | 0 | 0 | 0.08377 | 0.204167 | 240 | 13 | 38 | 18.461538 | 0.748691 | 0.4625 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f247237cc5bf959380b143e332cc8d0700a94389 | 69 | py | Python | beagle/header/mpu_accel_fsr_t.py | ts03408751/beagle | c9c2d37c081768e3fb6dbd88e563deb168c9e33b | [
"MIT"
] | null | null | null | beagle/header/mpu_accel_fsr_t.py | ts03408751/beagle | c9c2d37c081768e3fb6dbd88e563deb168c9e33b | [
"MIT"
] | null | null | null | beagle/header/mpu_accel_fsr_t.py | ts03408751/beagle | c9c2d37c081768e3fb6dbd88e563deb168c9e33b | [
"MIT"
] | 1 | 2018-10-06T09:01:45.000Z | 2018-10-06T09:01:45.000Z | ACCEL_FSR_2G = 0
ACCEL_FSR_4G = 1
ACCEL_FSR_8G = 2
ACCEL_FSR_16G = 3
| 13.8 | 17 | 0.768116 | 16 | 69 | 2.8125 | 0.625 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.173913 | 69 | 4 | 18 | 17.25 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f25325061d638aec7ce46bbd9c49441abe8fadfc | 160 | py | Python | electricitycostcalculator/__init__.py | LBNL-ETA/elecprice | 911a3799fa3f019b6677741b07545526d1102139 | [
"BSD-3-Clause-LBNL"
] | null | null | null | electricitycostcalculator/__init__.py | LBNL-ETA/elecprice | 911a3799fa3f019b6677741b07545526d1102139 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-03-31T17:15:12.000Z | 2022-03-31T17:15:12.000Z | electricitycostcalculator/__init__.py | LBNL-ETA/elecprice | 911a3799fa3f019b6677741b07545526d1102139 | [
"BSD-3-Clause-LBNL"
] | null | null | null | __author__ = 'Olivier Van Cutsem'
from electricitycostcalculator import electricity_rate_manager, openei_tariff
__all__ = ["cost_calculator", "openei_tariff"]
| 32 | 77 | 0.83125 | 17 | 160 | 7.058824 | 0.882353 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 160 | 4 | 78 | 40 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.2875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f25406747f27d464931ff0855a75d9fdfcf2caf9 | 115 | py | Python | easyci/exit_codes.py | naphatkrit/easyci | 7aee8d7694fe4e2da42ce35b0f700bc840c8b95f | [
"MIT"
] | 2 | 2018-03-26T11:59:22.000Z | 2018-07-08T16:57:58.000Z | easyci/exit_codes.py | naphatkrit/easyci | 7aee8d7694fe4e2da42ce35b0f700bc840c8b95f | [
"MIT"
] | 2 | 2015-08-28T14:50:51.000Z | 2015-08-28T14:51:10.000Z | easyci/exit_codes.py | naphatkrit/easyci | 7aee8d7694fe4e2da42ce35b0f700bc840c8b95f | [
"MIT"
] | null | null | null | SUCCESS = 0
FAILURE = 1 # NOTE: click.abort() uses this
# for when tests are already running
ALREADY_RUNNING = 2
| 19.166667 | 44 | 0.721739 | 18 | 115 | 4.555556 | 0.888889 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.2 | 115 | 5 | 45 | 23 | 0.858696 | 0.556522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f25fe7e45a62adb0df44aab8f3b5c12e669c380b | 165 | py | Python | rustls_any_pq.py | thomwiggers/mk-cert | b8e08cf16d01355f648b552e0d7f9c4af627f6bc | [
"CC0-1.0"
] | null | null | null | rustls_any_pq.py | thomwiggers/mk-cert | b8e08cf16d01355f648b552e0d7f9c4af627f6bc | [
"CC0-1.0"
] | null | null | null | rustls_any_pq.py | thomwiggers/mk-cert | b8e08cf16d01355f648b552e0d7f9c4af627f6bc | [
"CC0-1.0"
] | 1 | 2021-11-22T07:15:53.000Z | 2021-11-22T07:15:53.000Z | from encoder import oids, signs, camel_to_snake
for alg in signs:
alg = camel_to_snake(alg).upper()
print(rf"(SignatureScheme::{alg}, &signature::{alg}),")
| 27.5 | 59 | 0.69697 | 24 | 165 | 4.625 | 0.666667 | 0.126126 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 165 | 5 | 60 | 33 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f2765ca00f1a8035009ede37810f4a33ddc91693 | 4,459 | py | Python | sliplib/slipsocket.py | samvasko/SlipLib | 090b5e77947f96c28f129ba9beb7da1d8f4855cf | [
"MIT"
] | 1 | 2020-03-04T19:48:26.000Z | 2020-03-04T19:48:26.000Z | sliplib/slipsocket.py | samvasko/SlipLib | 090b5e77947f96c28f129ba9beb7da1d8f4855cf | [
"MIT"
] | null | null | null | sliplib/slipsocket.py | samvasko/SlipLib | 090b5e77947f96c28f129ba9beb7da1d8f4855cf | [
"MIT"
] | null | null | null | # Copyright (c) 2017 Ruud de Jong
# This file is part of the SlipLib project which is released under the MIT license.
# See https://github.com/rhjdjong/SlipLib for details.
import socket
from .slipwrapper import SlipWrapper
class SlipSocket(SlipWrapper):
"""SlipSocket -> Wraps a TCP :class:`socket` with a :class... | 40.171171 | 102 | 0.675264 | 579 | 4,459 | 5.127807 | 0.352332 | 0.040418 | 0.021556 | 0.026945 | 0.09835 | 0.058606 | 0.030987 | 0.030987 | 0 | 0 | 0 | 0.002365 | 0.24131 | 4,459 | 110 | 103 | 40.536364 | 0.875259 | 0.61673 | 0 | 0.083333 | 0 | 0 | 0.073427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.055556 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f2815e2dee9147eca8db7340ee22cdc7998ddcd0 | 561 | py | Python | PyStationB/libraries/GlobalPenalisation/tests/moment_matching/backend_independent/conftest.py | BrunoKM/station-b-libraries | ea3591837e4a33f0bef789d905467754c27913b3 | [
"MIT"
] | 6 | 2021-09-29T15:46:55.000Z | 2021-12-14T18:39:51.000Z | PyStationB/libraries/GlobalPenalisation/tests/moment_matching/backend_independent/conftest.py | BrunoKM/station-b-libraries | ea3591837e4a33f0bef789d905467754c27913b3 | [
"MIT"
] | null | null | null | PyStationB/libraries/GlobalPenalisation/tests/moment_matching/backend_independent/conftest.py | BrunoKM/station-b-libraries | ea3591837e4a33f0bef789d905467754c27913b3 | [
"MIT"
] | 3 | 2021-09-27T10:35:20.000Z | 2021-10-02T17:53:07.000Z | # -------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# ----------------------------------------------------------------------... | 37.4 | 93 | 0.502674 | 54 | 561 | 5.166667 | 0.740741 | 0.071685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101604 | 561 | 14 | 94 | 40.071429 | 0.553571 | 0.69697 | 0 | 0 | 0 | 0 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f282405f5c54ff9170da27991eff5b176bfa4210 | 352 | py | Python | dacbench/envs/__init__.py | rishan92/DACBench | bf4e0398110a50ac33c7bc57a13ecca3590e8247 | [
"Apache-2.0"
] | null | null | null | dacbench/envs/__init__.py | rishan92/DACBench | bf4e0398110a50ac33c7bc57a13ecca3590e8247 | [
"Apache-2.0"
] | null | null | null | dacbench/envs/__init__.py | rishan92/DACBench | bf4e0398110a50ac33c7bc57a13ecca3590e8247 | [
"Apache-2.0"
] | null | null | null | from dacbench.envs.luby import LubyEnv, luby_gen
from dacbench.envs.sigmoid import SigmoidEnv
from dacbench.envs.fast_downward import FastDownwardEnv
from dacbench.envs.cma_es import CMAESEnv
from dacbench.envs.modea import ModeaEnv
__all__ = [
"LubyEnv",
"luby_gen",
"SigmoidEnv",
"FastDownwardEnv",
... | 23.466667 | 55 | 0.75 | 42 | 352 | 6.095238 | 0.428571 | 0.234375 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 352 | 14 | 56 | 25.142857 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f2aca91930b3fccd5b8bdb04fc06dc7ab39b4d2a | 52 | py | Python | hello.py | hakjuknu/python-git-practice | 07bc732d2b5bafeb5a25a08ac49ef0b551cc5d88 | [
"MIT"
] | null | null | null | hello.py | hakjuknu/python-git-practice | 07bc732d2b5bafeb5a25a08ac49ef0b551cc5d88 | [
"MIT"
] | null | null | null | hello.py | hakjuknu/python-git-practice | 07bc732d2b5bafeb5a25a08ac49ef0b551cc5d88 | [
"MIT"
] | null | null | null | for i in range(1, 10+1):
print ('hello world.')
| 17.333333 | 26 | 0.576923 | 10 | 52 | 3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.230769 | 52 | 2 | 27 | 26 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
f2ad822ca83c694446eb82c994cd961511a72ac2 | 216 | py | Python | setup.py | drkatnz/CombinedOneClass | 91808693fab8df84862b7f97440a2fc31c5a7a0f | [
"MIT"
] | 5 | 2017-02-21T11:13:59.000Z | 2022-02-05T19:51:30.000Z | setup.py | drkatnz/CombinedOneClass | 91808693fab8df84862b7f97440a2fc31c5a7a0f | [
"MIT"
] | null | null | null | setup.py | drkatnz/CombinedOneClass | 91808693fab8df84862b7f97440a2fc31c5a7a0f | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='CombinedOneClass',
version='0.1dev',
packages=['oneclass','oneclass.generators'],
license='MIT License',
long_description=open('README.md').read(),
) | 24 | 48 | 0.685185 | 24 | 216 | 6.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.148148 | 216 | 9 | 49 | 24 | 0.788043 | 0 | 0 | 0 | 0 | 0 | 0.317972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f2c4909658b8fdbe19bcbfd22c1c7954f7c133b9 | 176 | py | Python | recurdecbin.py | SUBHAROOP/Learning-Python | 83a28a5e71ed3ab33c1510ba90b62559d241039e | [
"MIT"
] | null | null | null | recurdecbin.py | SUBHAROOP/Learning-Python | 83a28a5e71ed3ab33c1510ba90b62559d241039e | [
"MIT"
] | null | null | null | recurdecbin.py | SUBHAROOP/Learning-Python | 83a28a5e71ed3ab33c1510ba90b62559d241039e | [
"MIT"
] | null | null | null | n=int(input("Enter the Decimal Number:"))
def covbin(n):
if(n==0):
return 0
else:
return (n%2)+(10*covbin(n//2))
print("Binary is=",covbin(n))
| 22 | 41 | 0.528409 | 28 | 176 | 3.321429 | 0.642857 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.267045 | 176 | 7 | 42 | 25.142857 | 0.674419 | 0 | 0 | 0 | 0 | 0 | 0.198864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4b346ab3b229c8ebe34463752fb00ff08dd71697 | 18 | py | Python | nglview/config.py | vhorvath/nglview | 7e31c40efe6cfc45e04d6374dc6a43fd62e68b90 | [
"MIT"
] | 161 | 2020-07-28T14:05:57.000Z | 2022-03-31T08:38:06.000Z | nglview/config.py | vhorvath/nglview | 7e31c40efe6cfc45e04d6374dc6a43fd62e68b90 | [
"MIT"
] | 123 | 2020-07-27T15:02:27.000Z | 2022-03-30T18:31:51.000Z | nglview/config.py | vhorvath/nglview | 7e31c40efe6cfc45e04d6374dc6a43fd62e68b90 | [
"MIT"
] | 42 | 2020-07-28T09:50:06.000Z | 2022-03-11T18:50:22.000Z | BACKENDS = dict()
| 9 | 17 | 0.666667 | 2 | 18 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4b3f3cbd3facc62719b5a28c63fce30a019be179 | 734 | py | Python | examples/factory/client_factory.py | craigminihan/injectable | 249b90477b9a4f00fb58a520a0bac8901ae5bdac | [
"MIT"
] | null | null | null | examples/factory/client_factory.py | craigminihan/injectable | 249b90477b9a4f00fb58a520a0bac8901ae5bdac | [
"MIT"
] | null | null | null | examples/factory/client_factory.py | craigminihan/injectable | 249b90477b9a4f00fb58a520a0bac8901ae5bdac | [
"MIT"
] | null | null | null | from examples.factory.client_one import ClientOne
from examples.factory.client_two import ClientTwo
from examples.factory.configuration_service import ConfigurationService
from injectable import Autowired, autowired
from injectable.injection.injectable_factory_decorator import injectable_factory
@injectable_factory(q... | 45.875 | 83 | 0.841962 | 81 | 734 | 7.382716 | 0.358025 | 0.234114 | 0.217391 | 0.150502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.098093 | 734 | 15 | 84 | 48.933333 | 0.900302 | 0 | 0 | 0 | 0 | 0 | 0.084469 | 0.047684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4b594bd81527660f44aa9dac66592ea3f68640ee | 492 | py | Python | class_01/quickstart.py | TheBeege/kivy_practice | 6037c587c64f355806ef23fba445a88410f0ddbc | [
"MIT"
] | null | null | null | class_01/quickstart.py | TheBeege/kivy_practice | 6037c587c64f355806ef23fba445a88410f0ddbc | [
"MIT"
] | null | null | null | class_01/quickstart.py | TheBeege/kivy_practice | 6037c587c64f355806ef23fba445a88410f0ddbc | [
"MIT"
] | null | null | null | # make kivy available
import kivy
# tell our program we need a specific version
kivy.require('1.10.0')
# App represents our entire mobile app
from kivy.app import App
# Label is text that we can put on a screen
from kivy.uix.label import Label
# This is our base app
class MyApp(App):
# build() is called when th... | 21.391304 | 50 | 0.70122 | 84 | 492 | 4.011905 | 0.583333 | 0.047478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.215447 | 492 | 22 | 51 | 22.363636 | 0.862694 | 0.506098 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
4b976e973134c6b1e782a687e62847a4a3caee1a | 336 | py | Python | e2e/todo/page_objects/index_page.py | ushiboy/my-todo-2019-early | 96a876d83ed0173735063aecc009a8a7fdf2500a | [
"MIT"
] | null | null | null | e2e/todo/page_objects/index_page.py | ushiboy/my-todo-2019-early | 96a876d83ed0173735063aecc009a8a7fdf2500a | [
"MIT"
] | 6 | 2021-03-09T00:52:22.000Z | 2022-02-17T20:04:36.000Z | e2e/todo/page_objects/index_page.py | ushiboy/my-todo-2019-early | 96a876d83ed0173735063aecc009a8a7fdf2500a | [
"MIT"
] | null | null | null | from . import PageObject
from .todo_page import TodoListPage
class IndexPage(PageObject):
def __init__(self, driver, target_origin):
super(IndexPage, self).__init__(driver)
self.target_origin = target_origin
def open(self):
self.driver.get(self.target_origin)
return TodoListPa... | 25.846154 | 47 | 0.714286 | 40 | 336 | 5.675 | 0.45 | 0.211454 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199405 | 336 | 12 | 48 | 28 | 0.843866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 3 |
4b99025263e71447598763846cd76fd7525679c1 | 2,290 | py | Python | xlsxx/oxml/view.py | betasewer/python-xlsx-xtended | a93a487b5d018e4da1c59efc5ba347b49152d752 | [
"MIT"
] | 1 | 2022-01-19T22:11:27.000Z | 2022-01-19T22:11:27.000Z | xlsxx/oxml/view.py | betasewer/python-xlsx-xtended | a93a487b5d018e4da1c59efc5ba347b49152d752 | [
"MIT"
] | null | null | null | xlsxx/oxml/view.py | betasewer/python-xlsx-xtended | a93a487b5d018e4da1c59efc5ba347b49152d752 | [
"MIT"
] | null | null | null | """
ssml:sheetViews = ssml:CT_SheetViews
Sequence [1..1]
ssml:sheetView [1..*] Worksheet View
ssml:extLst [0..1] Future Feature Storage Area
ssml:sheetView = ssml:CT_SheetView
Sequence [1..1]
ssml:pane [0..1] View Pane
ssml:selection [0..4] Selection
ssml:pivotSelection [0..4] PivotT... | 46.734694 | 86 | 0.703057 | 351 | 2,290 | 4.547009 | 0.230769 | 0.036341 | 0.192982 | 0.12218 | 0.308897 | 0.14787 | 0.112782 | 0.112782 | 0.112782 | 0.062657 | 0 | 0.043385 | 0.184716 | 2,290 | 49 | 87 | 46.734694 | 0.811462 | 1.104803 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4bbb33a89a317f522c5d9b3ebaf5d820763b8aa5 | 1,127 | py | Python | module_05/sauce_func_lib/login.py | memsprop/2021_python_selenium | eb3de282b11933cb6886d4008fb1b557147afaae | [
"Unlicense"
] | null | null | null | module_05/sauce_func_lib/login.py | memsprop/2021_python_selenium | eb3de282b11933cb6886d4008fb1b557147afaae | [
"Unlicense"
] | null | null | null | module_05/sauce_func_lib/login.py | memsprop/2021_python_selenium | eb3de282b11933cb6886d4008fb1b557147afaae | [
"Unlicense"
] | null | null | null | """Includes Function to control saocu lab login page."""
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from module_05.sauce_func_lib.common imp... | 31.305556 | 75 | 0.698314 | 149 | 1,127 | 5.147651 | 0.402685 | 0.062581 | 0.082138 | 0.073012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002158 | 0.177462 | 1,127 | 36 | 76 | 31.305556 | 0.825243 | 0.271517 | 0 | 0 | 0 | 0 | 0.06762 | 0.029909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.2 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
29929503b9f561a0a41d023ff31ecd747c92e69d | 471 | py | Python | packages/PIPS/validation/Transformations/Dead_code_elimination.sub/use_def_elimination.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 51 | 2015-01-31T01:51:39.000Z | 2022-02-18T02:01:50.000Z | packages/PIPS/validation/Transformations/Dead_code_elimination.sub/use_def_elimination.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 7 | 2017-05-29T09:29:00.000Z | 2019-03-11T16:01:39.000Z | packages/PIPS/validation/Transformations/Dead_code_elimination.sub/use_def_elimination.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 12 | 2015-03-26T08:05:38.000Z | 2022-02-18T02:01:51.000Z | from __future__ import with_statement # this is to work with python2.5
from validation import vworkspace
with vworkspace() as w:
w.props.PRETTYPRINT_FINAL_RETURN = True
w.props.PRETTYPRINT_ALL_LABELS = True
w.props.PRETTYPRINT_EMPTY_BLOCKS = True
w.props.PRETTYPRINT_UNSTRUCTURED = True
w.props... | 29.4375 | 118 | 0.783439 | 64 | 471 | 5.4375 | 0.609375 | 0.086207 | 0.195402 | 0.181034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004963 | 0.144374 | 471 | 15 | 119 | 31.4 | 0.858561 | 0.063694 | 0 | 0 | 0 | 0 | 0.118993 | 0.048055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29a96ec7844ede7ed90c94e4289ae9204f9a259b | 317 | py | Python | tests/three/test_changes.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2017-05-16T02:30:52.000Z | 2021-07-01T13:21:27.000Z | tests/three/test_changes.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2020-09-03T03:19:49.000Z | 2021-12-21T05:24:04.000Z | tests/three/test_changes.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 3 | 2021-02-15T18:13:08.000Z | 2021-04-10T03:53:58.000Z | from . import polite
@polite
def test_get_movie_change_list(tmdb):
assert tmdb.get_movie_change_list() is not None
@polite
def test_get_tv_change_list(tmdb):
assert tmdb.get_tv_change_list() is not None
@polite
def test_get_person_change_list(tmdb):
assert tmdb.get_person_change_list() is not None
| 18.647059 | 52 | 0.785489 | 54 | 317 | 4.222222 | 0.296296 | 0.263158 | 0.171053 | 0.210526 | 0.745614 | 0.662281 | 0.307018 | 0.307018 | 0.307018 | 0 | 0 | 0 | 0.14511 | 317 | 16 | 53 | 19.8125 | 0.841328 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29ae2cf34d93eb5a74840297168c2206dc23cabb | 1,346 | py | Python | oop_practice/blackjack/cards.py | the-great-shazbot/oop_blackjack | 91c3167df1087db20f89aea00b72ac559dffff2f | [
"MIT"
] | null | null | null | oop_practice/blackjack/cards.py | the-great-shazbot/oop_blackjack | 91c3167df1087db20f89aea00b72ac559dffff2f | [
"MIT"
] | null | null | null | oop_practice/blackjack/cards.py | the-great-shazbot/oop_blackjack | 91c3167df1087db20f89aea00b72ac559dffff2f | [
"MIT"
] | null | null | null | from functools import total_ordering
from oop_practice.blackjack.abstracts import AbstractCard
# @total_ordering
class FrenchCard(AbstractCard):
""" ace (1) ranks low """
valid_ranks = list(range(1, 14))
valid_suits = ['Diamonds', 'Hearts', 'Clubs', 'Spades']
def __init__(self, rank, suit):
... | 26.392157 | 94 | 0.6211 | 173 | 1,346 | 4.618497 | 0.352601 | 0.070088 | 0.085106 | 0.047559 | 0.245307 | 0.187735 | 0.187735 | 0.187735 | 0.097622 | 0 | 0 | 0.011122 | 0.26523 | 1,346 | 50 | 95 | 26.92 | 0.796764 | 0.161218 | 0 | 0.068966 | 0 | 0 | 0.183692 | 0.067204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.068966 | 0.137931 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
29afe90402d0cb03c73f532723e5935133f51e8f | 572 | py | Python | coreapp/migrations/0016_auto_20200203_0350.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | coreapp/migrations/0016_auto_20200203_0350.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | coreapp/migrations/0016_auto_20200203_0350.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-02-02 22:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('coreapp', '0015_projectendpoint_alignment_object'),
]
operations = [
migrations.RemoveField(
model_name='plot',
name='dashboar... | 22 | 61 | 0.571678 | 50 | 572 | 6.38 | 0.66 | 0.197492 | 0.244514 | 0.282132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.323427 | 572 | 25 | 62 | 22.88 | 0.777778 | 0.075175 | 0 | 0.315789 | 1 | 0 | 0.201139 | 0.070209 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29c8250c5f118f241ec8d91778c9a221835f357e | 1,302 | py | Python | PLM/cores/handlers/FileHandler.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | 7 | 2020-10-11T21:21:50.000Z | 2022-03-07T03:37:51.000Z | PLM/cores/handlers/FileHandler.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | null | null | null | PLM/cores/handlers/FileHandler.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | 3 | 2019-03-11T21:54:52.000Z | 2019-11-25T11:23:17.000Z | # -*- coding: utf-8 -*-
"""
Script Name:
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
from pyPLM.damg import DAMG
class FileHandler(DAMG):
key = 'FileHandler'
... | 19.727273 | 111 | 0.430108 | 128 | 1,302 | 4.320313 | 0.5 | 0.139241 | 0.108499 | 0.108499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020675 | 0.294163 | 1,302 | 66 | 112 | 19.727273 | 0.579978 | 0.384793 | 0 | 0.413793 | 0 | 0 | 0.014647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0.413793 | 0.034483 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
29e072767fc768eedcd0243e9a1a967f491a6dd5 | 410 | py | Python | expression_data/data/admin.py | davebridges/expression-data-server | 7f70fd5d5a9569a315716c389f828b17a487fdbc | [
"BSD-2-Clause"
] | 1 | 2015-08-25T10:16:31.000Z | 2015-08-25T10:16:31.000Z | expression_data/data/admin.py | davebridges/expression-data-server | 7f70fd5d5a9569a315716c389f828b17a487fdbc | [
"BSD-2-Clause"
] | null | null | null | expression_data/data/admin.py | davebridges/expression-data-server | 7f70fd5d5a9569a315716c389f828b17a487fdbc | [
"BSD-2-Clause"
] | null | null | null | '''
This package has the admin interface for the :mod:`data` app.
All objects have a generic Admin interface.
'''
from django.contrib import admin
from data.models import GeneExperimentData
class GeneExperimentDataAdmin(admin.ModelAdmin):
'''Generic admin interface for :class:`~experiments.models.GeneExperimentD... | 31.538462 | 94 | 0.792683 | 47 | 410 | 6.914894 | 0.595745 | 0.129231 | 0.104615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 410 | 13 | 95 | 31.538462 | 0.89779 | 0.465854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
29e657c9a41f05b9cd1df144cd9b243bdbce60f9 | 74 | py | Python | scrapy_testmaster/__init__.py | ThomasAitken/Scrapy-Testmaster | a932f9d97ee39d6ee4e851a3ca41d8a2dd23f632 | [
"BSD-3-Clause"
] | 15 | 2020-05-11T00:26:30.000Z | 2021-11-10T14:07:06.000Z | scrapy_testmaster/__init__.py | ThomasAitken/Scrapy-Testmaster | a932f9d97ee39d6ee4e851a3ca41d8a2dd23f632 | [
"BSD-3-Clause"
] | 6 | 2020-05-11T19:19:15.000Z | 2021-04-01T11:36:39.000Z | scrapy_testmaster/__init__.py | ThomasAitken/Scrapy-Testmaster | a932f9d97ee39d6ee4e851a3ca41d8a2dd23f632 | [
"BSD-3-Clause"
] | 3 | 2020-09-29T09:06:22.000Z | 2022-01-25T03:19:05.000Z | from .middleware import TestMasterMiddleware
name = 'scrapy-testmaster'
| 14.8 | 44 | 0.810811 | 7 | 74 | 8.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 74 | 4 | 45 | 18.5 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
29f9ceeebf969be1c06b06e5f8b39ddda4686c8a | 508 | py | Python | dynamic_systems/simulation/abstract_sys.py | eddardd/CrossDomainFaultDetection | 83dd24727a8b35cda2549b40166beaf740e14c98 | [
"MIT"
] | 3 | 2021-08-30T11:41:36.000Z | 2021-12-22T10:45:25.000Z | dynamic_systems/simulation/abstract_sys.py | eddardd/CrossDomainFaultDiagnosis | 83dd24727a8b35cda2549b40166beaf740e14c98 | [
"MIT"
] | 1 | 2021-02-26T06:02:33.000Z | 2021-02-26T06:02:33.000Z | dynamic_systems/simulation/abstract_sys.py | eddardd/CrossDomainFaultDetection | 83dd24727a8b35cda2549b40166beaf740e14c98 | [
"MIT"
] | 2 | 2021-06-03T11:46:20.000Z | 2022-03-25T09:16:03.000Z | from abc import ABC, abstractmethod
class AbstractSystem(ABC):
def __init__(self, process_noise, measurement_noise):
self.process_noise = process_noise
self.measurement_noise = measurement_noise
super().__init__()
@abstractmethod
def dynamics(self, t, x, u):
pass
@abs... | 21.166667 | 57 | 0.635827 | 58 | 508 | 5.241379 | 0.396552 | 0.223684 | 0.059211 | 0.065789 | 0.177632 | 0.177632 | 0 | 0 | 0 | 0 | 0 | 0.002725 | 0.277559 | 508 | 24 | 58 | 21.166667 | 0.825613 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.222222 | 0.055556 | 0 | 0.388889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d99dea83bc7d228faf5209fae09f5222d3b70c75 | 121 | py | Python | sum-of-digits.py | leaen/Codeeval-solutions | fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0 | [
"MIT"
] | null | null | null | sum-of-digits.py | leaen/Codeeval-solutions | fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0 | [
"MIT"
] | null | null | null | sum-of-digits.py | leaen/Codeeval-solutions | fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0 | [
"MIT"
] | null | null | null | import sys
with open(sys.argv[1]) as input_file:
for line in input_file:
print(sum(map(int, line.strip())))
| 20.166667 | 42 | 0.652893 | 21 | 121 | 3.666667 | 0.809524 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.206612 | 121 | 5 | 43 | 24.2 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9a45eff2aa92900da5fc08456a3793195242c3d | 1,429 | py | Python | lib/FluentDB/core/mysql/queryRunner.py | olavoasantos/FluentDB | ab645d2c4e3c73971ca259e89feaa2b967b22e8e | [
"MIT"
] | 2 | 2016-12-12T21:45:12.000Z | 2016-12-19T23:53:43.000Z | lib/FluentDB/core/mysql/queryRunner.py | olavoasantos/FluentDB | ab645d2c4e3c73971ca259e89feaa2b967b22e8e | [
"MIT"
] | null | null | null | lib/FluentDB/core/mysql/queryRunner.py | olavoasantos/FluentDB | ab645d2c4e3c73971ca259e89feaa2b967b22e8e | [
"MIT"
] | null | null | null | from .connection import MysqlConnection
class MysqlQueryRunner(object):
# MySQL connection
connection = None
# MySQL cursor
cursor = None
def __init__(self, connection: MysqlConnection):
self.connection = connection
self.cursor = self.connection.cursor()
pass
def cr... | 21.014706 | 68 | 0.60042 | 154 | 1,429 | 5.538961 | 0.279221 | 0.164127 | 0.139508 | 0.180539 | 0.397421 | 0.397421 | 0.361079 | 0.214537 | 0.164127 | 0.164127 | 0 | 0.001982 | 0.293912 | 1,429 | 67 | 69 | 21.328358 | 0.843409 | 0.020294 | 0 | 0.418605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0.116279 | 0.023256 | 0 | 0.395349 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d9a6232f730b3b1df68f795d83cefad179df087e | 126 | py | Python | CONFIG/CommentAPP/API/paginations.py | Brktrlw/Instagram-Clone-Django-and-React | 6390db2133d3beae2097a680097e170bd4fbcabe | [
"MIT",
"PostgreSQL",
"Unlicense"
] | null | null | null | CONFIG/CommentAPP/API/paginations.py | Brktrlw/Instagram-Clone-Django-and-React | 6390db2133d3beae2097a680097e170bd4fbcabe | [
"MIT",
"PostgreSQL",
"Unlicense"
] | null | null | null | CONFIG/CommentAPP/API/paginations.py | Brktrlw/Instagram-Clone-Django-and-React | 6390db2133d3beae2097a680097e170bd4fbcabe | [
"MIT",
"PostgreSQL",
"Unlicense"
] | null | null | null | from rest_framework.pagination import PageNumberPagination
class CommentPagination(PageNumberPagination):
page_size = 11
| 25.2 | 58 | 0.849206 | 12 | 126 | 8.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.111111 | 126 | 4 | 59 | 31.5 | 0.919643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d9ad62a58cee51c008acd46ef60fcd00681c6dd9 | 2,024 | py | Python | config/settings/test.py | wooheet/tedygram | 481c5d1fd44f12cf9f5c62e0f12dd3f80c0c1de4 | [
"MIT"
] | null | null | null | config/settings/test.py | wooheet/tedygram | 481c5d1fd44f12cf9f5c62e0f12dd3f80c0c1de4 | [
"MIT"
] | null | null | null | config/settings/test.py | wooheet/tedygram | 481c5d1fd44f12cf9f5c62e0f12dd3f80c0c1de4 | [
"MIT"
] | null | null | null | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#se... | 36.142857 | 113 | 0.546443 | 184 | 2,024 | 5.961957 | 0.342391 | 0.073838 | 0.180492 | 0.205105 | 0.350046 | 0.350046 | 0.350046 | 0.350046 | 0.125798 | 0 | 0 | 0.012035 | 0.096838 | 2,024 | 55 | 114 | 36.8 | 0.588074 | 0.568676 | 0 | 0 | 0 | 0 | 0.516206 | 0.427371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041667 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9dbe1564fc700c61b7507bb9b58065a2f63e0e5 | 14,490 | py | Python | povary/apps/master_class/migrations/0009_auto__add_field_masterclass_visits_num__add_field_categorymc_visits_nu.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | povary/apps/master_class/migrations/0009_auto__add_field_masterclass_visits_num__add_field_categorymc_visits_nu.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | povary/apps/master_class/migrations/0009_auto__add_field_masterclass_visits_num__add_field_categorymc_visits_nu.py | TorinAsakura/cooking | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'MasterClass.visits_num'
db.add_column('master_class_masterclass', 'visits_num',
... | 71.732673 | 182 | 0.560663 | 1,410 | 14,490 | 5.631915 | 0.142553 | 0.134996 | 0.234479 | 0.33497 | 0.807203 | 0.687067 | 0.576879 | 0.482811 | 0.423246 | 0.37023 | 0 | 0.008058 | 0.20352 | 14,490 | 202 | 183 | 71.732673 | 0.68001 | 0.017736 | 0 | 0.227027 | 0 | 0 | 0.578518 | 0.379657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010811 | false | 0.005405 | 0.021622 | 0 | 0.048649 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9ef7bc19df1f760e5131e5f11c5169b128045dd | 24,188 | py | Python | test/test_cms_backend.py | khurtado/lobster | cd7044b4b98bec2d8b5f81512adcf2a5dfca00f1 | [
"MIT"
] | 1 | 2018-03-06T19:33:17.000Z | 2018-03-06T19:33:17.000Z | test/test_cms_backend.py | khurtado/lobster | cd7044b4b98bec2d8b5f81512adcf2a5dfca00f1 | [
"MIT"
] | 18 | 2018-03-08T09:55:57.000Z | 2020-08-10T19:19:04.000Z | test/test_cms_backend.py | khurtado/lobster | cd7044b4b98bec2d8b5f81512adcf2a5dfca00f1 | [
"MIT"
] | 3 | 2018-03-06T19:33:20.000Z | 2019-02-25T22:50:23.000Z | # vim: foldmethod=marker
import os
import shutil
import tempfile
from lobster import cmssw, se
from lobster.cmssw.dataset import DatasetInfo
from lobster.core.task import TaskHandler
from lobster.core.unit import TaskUpdate, UnitStore
from lobster.core.config import Config, AdvancedOptions
from lobster.core.workflow i... | 35.004342 | 132 | 0.525384 | 2,818 | 24,188 | 4.347764 | 0.074876 | 0.063663 | 0.024486 | 0.034688 | 0.742899 | 0.718087 | 0.703232 | 0.690581 | 0.677196 | 0.665606 | 0 | 0.035721 | 0.346081 | 24,188 | 690 | 133 | 35.055072 | 0.738889 | 0.020713 | 0 | 0.585742 | 0 | 0.042389 | 0.252591 | 0.013112 | 0 | 0 | 0 | 0.001449 | 0.159923 | 1 | 0.044316 | false | 0.001927 | 0.017341 | 0 | 0.073218 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9fadb27f33154f260c16772184c626a80c97c78 | 1,141 | py | Python | src/SBS/imagemessage.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | src/SBS/imagemessage.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | src/SBS/imagemessage.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | import os
import numpy as np
import pydub as pd
from src.SBS.messenger import Messenger as messenger
from abc import ABC, abstractmethod
class ImageMessage(messenger, ABC):
""" Abstract methods """
def __init__(self, images_path=None):
super().__init__(images_path)
@abstractmethod
def __... | 24.804348 | 92 | 0.59071 | 135 | 1,141 | 4.77037 | 0.414815 | 0.043478 | 0.065217 | 0.083851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012626 | 0.305872 | 1,141 | 45 | 93 | 25.355556 | 0.800505 | 0.33567 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.277778 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8a167b81ced1b1d14b37a9c5bab2affdcc2a1c5b | 2,603 | py | Python | calculation/sha_calc/sha_calc/spatial_hazard/loth_baker_model.py | ucgmsim/gmhazard | d3d90b4c94b3d9605597a3efeccc8523a1e50c0e | [
"MIT"
] | null | null | null | calculation/sha_calc/sha_calc/spatial_hazard/loth_baker_model.py | ucgmsim/gmhazard | d3d90b4c94b3d9605597a3efeccc8523a1e50c0e | [
"MIT"
] | 8 | 2021-10-13T02:33:23.000Z | 2022-03-29T21:01:08.000Z | calculation/sha_calc/sha_calc/spatial_hazard/loth_baker_model.py | ucgmsim/gmhazard | d3d90b4c94b3d9605597a3efeccc8523a1e50c0e | [
"MIT"
] | null | null | null | """Implementation of the Loth & Baker (2013) site correlation model"""
import numpy as np
valid_periods = np.array([0.01, 0.1, 0.2, 0.5, 1.0, 2.0, 5.0, 7.5, 10.0])
short_range_corregionalization = np.array(
[
[0.30, 0.24, 0.23, 0.22, 0.16, 0.07, 0.03, 0.00, 0.00],
[0.24, 0.27, 0.19, 0.13, 0.08, 0.0... | 43.383333 | 85 | 0.496735 | 628 | 2,603 | 1.998408 | 0.140127 | 0.076494 | 0.101992 | 0.066932 | 0.501195 | 0.183267 | 0.183267 | 0.094024 | 0.094024 | 0.073307 | 0 | 0.396858 | 0.242028 | 2,603 | 59 | 86 | 44.118644 | 0.23923 | 0.024587 | 0 | 0 | 0 | 0 | 0.00079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.019231 | 0 | 0.057692 | 0 | 0 | 0 | 1 | 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 | 3 |
8a24e504a3a00677cf33c6f846b049690d427b22 | 1,314 | py | Python | eveuniverse/admin.py | buahaha/django-eveuniverse | 4dd875238d475c5dd0355283b6257e3bcbad2d8b | [
"MIT"
] | null | null | null | eveuniverse/admin.py | buahaha/django-eveuniverse | 4dd875238d475c5dd0355283b6257e3bcbad2d8b | [
"MIT"
] | null | null | null | eveuniverse/admin.py | buahaha/django-eveuniverse | 4dd875238d475c5dd0355283b6257e3bcbad2d8b | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import (
EveCategory,
EveConstellation,
EveGroup,
EveMoon,
EvePlanet,
EveRegion,
EveSolarSystem,
EveType,
)
class EveUniverseEntityModelAdmin(admin.ModelAdmin):
def has_module_permission(self, request):
return False
def ha... | 18.771429 | 57 | 0.753425 | 117 | 1,314 | 8.384615 | 0.376068 | 0.106014 | 0.256881 | 0.313965 | 0.156983 | 0.091743 | 0.091743 | 0.091743 | 0.091743 | 0 | 0 | 0 | 0.16895 | 1,314 | 69 | 58 | 19.043478 | 0.898352 | 0 | 0 | 0.26087 | 0 | 0 | 0.006088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.173913 | 0.043478 | 0.086957 | 0.456522 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8a2e1bd2e12ee8294ca2a44fdacd57e8e6d133f3 | 4,101 | py | Python | tests/settings.py | Ming-Lyu/chatter | 58301d30cc0cdc3d601de0673b976c89ab1f2dcb | [
"MIT"
] | 4 | 2020-10-01T15:46:45.000Z | 2021-05-01T21:11:46.000Z | tests/settings.py | Ming-Lyu/chatter | 58301d30cc0cdc3d601de0673b976c89ab1f2dcb | [
"MIT"
] | null | null | null | tests/settings.py | Ming-Lyu/chatter | 58301d30cc0cdc3d601de0673b976c89ab1f2dcb | [
"MIT"
] | null | null | null | """
Django settings for example project.
Generated by Cookiecutter Django Package
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://... | 26.803922 | 107 | 0.670812 | 443 | 4,101 | 6.106095 | 0.469526 | 0.072089 | 0.043993 | 0.046211 | 0.193346 | 0.168946 | 0.065434 | 0.054713 | 0.029575 | 0 | 0 | 0.017391 | 0.186784 | 4,101 | 153 | 108 | 26.803922 | 0.793703 | 0.309924 | 0 | 0.022472 | 1 | 0.011236 | 0.533286 | 0.426628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.067416 | 0.022472 | 0 | 0.022472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8a340b1369ee697a24cdef989a379fd6665fcd62 | 183 | py | Python | src/rpc/exceptions/interface_not_listening.py | simondotsh/SidResolver | 4435970199fcb9aeeab836393782f9924a4a6872 | [
"MIT"
] | 2 | 2021-11-25T14:15:12.000Z | 2022-02-02T04:27:17.000Z | src/rpc/exceptions/interface_not_listening.py | simondotsh/SidResolver | 4435970199fcb9aeeab836393782f9924a4a6872 | [
"MIT"
] | null | null | null | src/rpc/exceptions/interface_not_listening.py | simondotsh/SidResolver | 4435970199fcb9aeeab836393782f9924a4a6872 | [
"MIT"
] | 2 | 2021-11-03T18:11:40.000Z | 2022-02-02T15:11:30.000Z | class InterfaceNotListening(Exception):
def __init__(self, error):
message = f'RPC error (interface most-likely not listening): {error}.'
super().__init__(message) | 45.75 | 78 | 0.693989 | 20 | 183 | 5.95 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185792 | 183 | 4 | 79 | 45.75 | 0.798658 | 0 | 0 | 0 | 0 | 0 | 0.309783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a429e4cfce478c634adfa500b30a1fe2f5a9c22 | 1,155 | py | Python | app/tests/configs/conftest_aws.py | GeorgianBadita/remote-code-execution-engine | 4ac3ca7567cd89cc1f979622add81efa9edfea8f | [
"MIT"
] | null | null | null | app/tests/configs/conftest_aws.py | GeorgianBadita/remote-code-execution-engine | 4ac3ca7567cd89cc1f979622add81efa9edfea8f | [
"MIT"
] | null | null | null | app/tests/configs/conftest_aws.py | GeorgianBadita/remote-code-execution-engine | 4ac3ca7567cd89cc1f979622add81efa9edfea8f | [
"MIT"
] | null | null | null | import pytest
import botocore
class Readable:
"""
Class for mocking a readable object
"""
def read(self):
"""
Class for mocking read call
"""
return "print('Hello World')".encode()
class BotoMockReturns:
def get_object(self, Bucket='', Key=''):
return {
... | 20.263158 | 76 | 0.647619 | 142 | 1,155 | 5.112676 | 0.366197 | 0.033058 | 0.041322 | 0.044077 | 0.487603 | 0.487603 | 0.347107 | 0.347107 | 0.347107 | 0.347107 | 0 | 0.006985 | 0.256277 | 1,155 | 56 | 77 | 20.625 | 0.838184 | 0.269264 | 0 | 0.347826 | 0 | 0 | 0.031455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.086957 | 0.130435 | 0.782609 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8a4c7b93c5d706a3a3a1bb718f66bf966b221930 | 5,192 | py | Python | tests/test_figures.py | brabect1/docutils-rstwriter-dev | b74e5d5d32f697d22ab0c38bd16fa87ed7dc1ded | [
"Apache-2.0"
] | null | null | null | tests/test_figures.py | brabect1/docutils-rstwriter-dev | b74e5d5d32f697d22ab0c38bd16fa87ed7dc1ded | [
"Apache-2.0"
] | null | null | null | tests/test_figures.py | brabect1/docutils-rstwriter-dev | b74e5d5d32f697d22ab0c38bd16fa87ed7dc1ded | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Tomas Brabec
#
# 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 writi... | 19.301115 | 77 | 0.551233 | 583 | 5,192 | 4.891938 | 0.253859 | 0.196003 | 0.241234 | 0.113254 | 0.691094 | 0.691094 | 0.670407 | 0.670407 | 0.662342 | 0.662342 | 0 | 0.012846 | 0.220339 | 5,192 | 268 | 78 | 19.373134 | 0.6917 | 0.106317 | 0 | 0.675 | 0 | 0 | 0.802227 | 0.094086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.033333 | 0.008333 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
8a57503a6633f2f8baf7df86d58438d08f1336a9 | 577 | py | Python | Word.py | shvms/getcc | 793afa1169b9cd17f3e2cb08d75476983edcdf66 | [
"MIT"
] | null | null | null | Word.py | shvms/getcc | 793afa1169b9cd17f3e2cb08d75476983edcdf66 | [
"MIT"
] | null | null | null | Word.py | shvms/getcc | 793afa1169b9cd17f3e2cb08d75476983edcdf66 | [
"MIT"
] | null | null | null | class Word():
"""docstring for Word"""
def __init__(self, text: str, start_time: float, end_time: float):
assert isinstance(text, str), "text should be string."
assert isinstance(start_time, float) and isinstance(end_time, float), "Start time and end time should be float values."
self.text = text
... | 38.466667 | 123 | 0.694974 | 87 | 577 | 4.310345 | 0.275862 | 0.192 | 0.104 | 0.090667 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175043 | 577 | 15 | 124 | 38.466667 | 0.787815 | 0.031196 | 0 | 0 | 0 | 0 | 0.205776 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.272727 | false | 0 | 0 | 0.181818 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8a82a7d606193266da3866ad697da9c45ea8a36e | 112 | py | Python | udemy/python-video-workbook/my_progress/009.py | djrgit/coursework | 2a91da9b76cb1acbd12f3d8049f15d2e71f475a1 | [
"MIT"
] | null | null | null | udemy/python-video-workbook/my_progress/009.py | djrgit/coursework | 2a91da9b76cb1acbd12f3d8049f15d2e71f475a1 | [
"MIT"
] | null | null | null | udemy/python-video-workbook/my_progress/009.py | djrgit/coursework | 2a91da9b76cb1acbd12f3d8049f15d2e71f475a1 | [
"MIT"
] | 3 | 2018-08-13T23:14:22.000Z | 2019-01-11T22:50:07.000Z | # Exercise 9 - Negative Slicing
letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"]
print(letters[-3:]) | 37.333333 | 60 | 0.482143 | 18 | 112 | 3 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.160714 | 112 | 3 | 61 | 37.333333 | 0.553191 | 0.258929 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
8a936a5a038cc237d1bf6ea9f54c5c605ebcbe4e | 330 | py | Python | src/simfoni/apps/data_importer/api/serializers.py | django-stars/simfoni-test | eaca4adc8177505e7c53e708456fd0dbb6be0b71 | [
"MIT"
] | null | null | null | src/simfoni/apps/data_importer/api/serializers.py | django-stars/simfoni-test | eaca4adc8177505e7c53e708456fd0dbb6be0b71 | [
"MIT"
] | null | null | null | src/simfoni/apps/data_importer/api/serializers.py | django-stars/simfoni-test | eaca4adc8177505e7c53e708456fd0dbb6be0b71 | [
"MIT"
] | 4 | 2018-04-26T17:43:24.000Z | 2018-05-10T14:11:09.000Z | from rest_framework import serializers
from core.api.validators import FileMaxSizeValidator, ImportFileMimeTypeValidator
class ImportSerializer(serializers.Serializer):
file = serializers.FileField(
required=True, allow_null=False,
validators=[ImportFileMimeTypeValidator(), FileMaxSizeValidator()... | 30 | 81 | 0.784848 | 27 | 330 | 9.518519 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142424 | 330 | 10 | 82 | 33 | 0.908127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
76d519e4155200bc7e3acb373bac07f746852b32 | 243 | py | Python | steroidsornot/pushshift.py | cedarmora/steroids-or-not | afa951dad1c18e0d2ccb24faea0f3efef6ec1178 | [
"Apache-2.0"
] | null | null | null | steroidsornot/pushshift.py | cedarmora/steroids-or-not | afa951dad1c18e0d2ccb24faea0f3efef6ec1178 | [
"Apache-2.0"
] | null | null | null | steroidsornot/pushshift.py | cedarmora/steroids-or-not | afa951dad1c18e0d2ccb24faea0f3efef6ec1178 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_pushshift.ipynb (unless otherwise specified).
__all__ = []
# Cell
import os
import requests
import time
import datetime
import pickle
from requests.adapters import HTTPAdapter
import webbrowser | 18.692308 | 92 | 0.802469 | 32 | 243 | 5.9375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.144033 | 243 | 13 | 93 | 18.692308 | 0.903846 | 0.390947 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
76e31c0c1738b71b8d700e3e4b3957416f797527 | 1,289 | py | Python | setup.py | mmohrhard/binpacking | 6ada2c62c319d56cd0f5918a2f01ff61d0e45348 | [
"MIT"
] | null | null | null | setup.py | mmohrhard/binpacking | 6ada2c62c319d56cd0f5918a2f01ff61d0e45348 | [
"MIT"
] | null | null | null | setup.py | mmohrhard/binpacking | 6ada2c62c319d56cd0f5918a2f01ff61d0e45348 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='binpacking',
version='1.4.1',
description='Heuristic distribution of weighted items to bins (either a fixed number of bins or a fixed number of volume per bin). Data may be in form of list, dictionary, list of tuples or csv-file.',
url='https://www.github.com/... | 40.28125 | 207 | 0.55159 | 132 | 1,289 | 5.318182 | 0.643939 | 0.162393 | 0.213675 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017162 | 0.321955 | 1,289 | 31 | 208 | 41.580645 | 0.786041 | 0 | 0 | 0.133333 | 0 | 0.033333 | 0.512801 | 0.046548 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76fc2219d4a17df8de5e1d2dacf6769149c5bcda | 462 | py | Python | app_verifications/user/user_checks.py | kskarbinski/threads-api | c144c1cb51422095922310d278f80e4996c10ea0 | [
"MIT"
] | null | null | null | app_verifications/user/user_checks.py | kskarbinski/threads-api | c144c1cb51422095922310d278f80e4996c10ea0 | [
"MIT"
] | null | null | null | app_verifications/user/user_checks.py | kskarbinski/threads-api | c144c1cb51422095922310d278f80e4996c10ea0 | [
"MIT"
] | null | null | null | from app_verifications import BaseChecks
from app_data.users import users
class UserChecks(BaseChecks):
"""
Checks related to user/users.
All checks return True or False.
"""
def __init__(self, value=None, by="id", model=None):
super(UserChecks, self).__init__(container=users, value=value,... | 28.875 | 90 | 0.701299 | 64 | 462 | 4.84375 | 0.5 | 0.045161 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203463 | 462 | 15 | 91 | 30.8 | 0.842391 | 0.134199 | 0 | 0 | 0 | 0 | 0.005263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
76fc5a24ae6d762997a3763728d574e53554ae4f | 61,208 | py | Python | pyocd/target/builtin/target_MIMXRT1021xxxxx.py | LONGZR007/pyOCD | 2c5a20a267c2670db0c233487fefd262f5a7c181 | [
"Apache-2.0"
] | null | null | null | pyocd/target/builtin/target_MIMXRT1021xxxxx.py | LONGZR007/pyOCD | 2c5a20a267c2670db0c233487fefd262f5a7c181 | [
"Apache-2.0"
] | null | null | null | pyocd/target/builtin/target_MIMXRT1021xxxxx.py | LONGZR007/pyOCD | 2c5a20a267c2670db0c233487fefd262f5a7c181 | [
"Apache-2.0"
] | 1 | 2019-01-21T03:01:53.000Z | 2019-01-21T03:01:53.000Z | # pyOCD debugger
# Copyright (c) 2017 NXP
# Copyright (c) 2018 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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/... | 93.877301 | 109 | 0.796072 | 5,023 | 61,208 | 9.692415 | 0.808282 | 0.06655 | 0.088734 | 0.114204 | 0.051145 | 0.042929 | 0.036356 | 0.033481 | 0.029783 | 0.027935 | 0 | 0.663387 | 0.123203 | 61,208 | 651 | 110 | 94.021505 | 0.243781 | 0.016926 | 0 | 0.027287 | 0 | 0 | 0.003857 | 0 | 0 | 0 | 0.782559 | 0 | 0 | 1 | 0.001605 | false | 0 | 0.008026 | 0 | 0.014446 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76fed2bb4446b9a6d1b11dad51f7d8594fa6a41b | 303 | py | Python | Desafio013.py | sidneyalex/Desafios-do-Curso | 11605caf59fb8b456adaca78a41eae2f7469ab7b | [
"MIT"
] | null | null | null | Desafio013.py | sidneyalex/Desafios-do-Curso | 11605caf59fb8b456adaca78a41eae2f7469ab7b | [
"MIT"
] | null | null | null | Desafio013.py | sidneyalex/Desafios-do-Curso | 11605caf59fb8b456adaca78a41eae2f7469ab7b | [
"MIT"
] | null | null | null | #Faça um algoritmo que leia o salário de um funcionário e mostre seu novo salário, com 15% de aumento.
sal = float(input('Digite o valor do seu Salário: R$'))
aum = sal * 0.15
print('Seu salario teve aumento de 15% equivalentes a R${:.2f}. Portanto seu salário atual é R${:.2f}'.format(aum, sal + aum))
| 60.6 | 126 | 0.709571 | 55 | 303 | 3.909091 | 0.636364 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.168317 | 303 | 4 | 127 | 75.75 | 0.81746 | 0.333333 | 0 | 0 | 0 | 0.333333 | 0.631841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a01cd4cc44cd34ff2088fce79726aeee51b131a | 163 | py | Python | common/compat.py | getcircle/django-common | 50eb9722500a5f4574c23f466d30136074887255 | [
"MIT"
] | null | null | null | common/compat.py | getcircle/django-common | 50eb9722500a5f4574c23f466d30136074887255 | [
"MIT"
] | null | null | null | common/compat.py | getcircle/django-common | 50eb9722500a5f4574c23f466d30136074887255 | [
"MIT"
] | null | null | null | """
The `compat` module provides compatibility wrappers around optional packages.
"""
try:
from service import metrics
except ImportError:
metrics = None
| 18.111111 | 77 | 0.742331 | 18 | 163 | 6.722222 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184049 | 163 | 8 | 78 | 20.375 | 0.909774 | 0.472393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0a0fff929b7b7347c541d270e3d5d6bbe52dee81 | 630 | py | Python | src/crazy_joe/models/table.py | dpasse/crazy_joe | bb77b2f8ee2cfb26cd8f2c45e0f0da2c2db3f805 | [
"MIT"
] | null | null | null | src/crazy_joe/models/table.py | dpasse/crazy_joe | bb77b2f8ee2cfb26cd8f2c45e0f0da2c2db3f805 | [
"MIT"
] | null | null | null | src/crazy_joe/models/table.py | dpasse/crazy_joe | bb77b2f8ee2cfb26cd8f2c45e0f0da2c2db3f805 | [
"MIT"
] | null | null | null | from typing import List
from . import Column
class Table(object):
def __init__(self, name: str, columns: List[Column]) -> None:
self._name = name
self._columns = columns
@property
def name(self):
return self._name
@property
def columns(self):
return self._columns... | 23.333333 | 77 | 0.62381 | 76 | 630 | 4.789474 | 0.328947 | 0.087912 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 630 | 26 | 78 | 24.230769 | 0.777778 | 0 | 0 | 0.157895 | 0 | 0 | 0.087302 | 0.050794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.157895 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0a1d090084b26ad0348b170d8bc4322411d73097 | 309 | py | Python | tests/acceptance/test_wsgi.py | arnaud-morvan/c2cwsgiutils | aa06b77b247bd8969b88225ee3ea109886aefeac | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/acceptance/test_wsgi.py | arnaud-morvan/c2cwsgiutils | aa06b77b247bd8969b88225ee3ea109886aefeac | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/acceptance/test_wsgi.py | arnaud-morvan/c2cwsgiutils | aa06b77b247bd8969b88225ee3ea109886aefeac | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from c2cwsgiutils.wsgi import _escape_variables as escape_variables # pylint: disable=W0212
def test_escape_variables():
assert {
'TOTO': 'TITI',
'TUTU': 'T%%T%%',
'TATA': '',
} == escape_variables({
'TOTO': 'TITI',
'TUTU': 'T%T%',
'TATA': ''
})
| 22.071429 | 92 | 0.521036 | 31 | 309 | 5 | 0.580645 | 0.387097 | 0.154839 | 0.167742 | 0.232258 | 0.232258 | 0 | 0 | 0 | 0 | 0 | 0.023041 | 0.297735 | 309 | 13 | 93 | 23.769231 | 0.691244 | 0.067961 | 0 | 0.181818 | 0 | 0 | 0.146853 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | true | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a2b8e2cd3f79467e7109c90c443352ac4707a1c | 501 | py | Python | order-1_voronoi/core/graph/Vertex.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | order-1_voronoi/core/graph/Vertex.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | order-1_voronoi/core/graph/Vertex.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | # augmented vertex
class Vertex:
def __init__(self, element, location):
self.element = element
self.location = location
def getElement(self):
return self.element
def setElement(self, element):
self.element = element
def getLocation(self):
return self.location
... | 14.314286 | 41 | 0.640719 | 53 | 501 | 5.981132 | 0.320755 | 0.173502 | 0.113565 | 0.14511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279441 | 501 | 34 | 42 | 14.735294 | 0.878116 | 0.031936 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0a35661d4ab8ca05971dca016c39c4fb00f2bc41 | 293 | py | Python | __main__.py | lessen/src | bc09a33d22e942214df5608806b11370e21ce7e8 | [
"MIT"
] | null | null | null | __main__.py | lessen/src | bc09a33d22e942214df5608806b11370e21ce7e8 | [
"MIT"
] | 1 | 2016-12-28T22:44:52.000Z | 2016-12-28T22:44:52.000Z | __main__.py | lessen/src | bc09a33d22e942214df5608806b11370e21ce7e8 | [
"MIT"
] | null | null | null | # import os
# def ttv1egs(l,g):
# _, _, filenames = next(iter(os.walk(".")))
# [__import__(x[:-3] ,l,g)
# for x in filenames
# if x[-5:] == "eg.py"]
# ttv1egs(locals(),globals)
import egeg
import symeg
import numeg
import sampleeg
import thingeg
import remedianeg
| 17.235294 | 47 | 0.604096 | 40 | 293 | 4.275 | 0.65 | 0.023392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0.232082 | 293 | 16 | 48 | 18.3125 | 0.742222 | 0.641638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0a55cb861e9c96029a2a17f19cdb3ae7fd2d4937 | 214 | py | Python | 6-3.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | 1 | 2019-02-06T01:49:18.000Z | 2019-02-06T01:49:18.000Z | 6-3.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | 6-3.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | file = {'amy':5,
'bob':8,
'candy':6,
'doby':9,
'john':0}
print("Amy's number is:" +'\n\t' + str(file['amy']) +'.')
print("\nBob's number is:" +'\n\t' + str(file['bob']) +'.') | 26.75 | 59 | 0.406542 | 31 | 214 | 2.806452 | 0.612903 | 0.16092 | 0.206897 | 0.229885 | 0.413793 | 0.413793 | 0.413793 | 0 | 0 | 0 | 0 | 0.032468 | 0.280374 | 214 | 8 | 59 | 26.75 | 0.532468 | 0 | 0 | 0 | 0 | 0 | 0.331731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a5b90fa34bb8bdfeaba2b755cce3ad2bd6572d7 | 232 | py | Python | sls/version.py | wilzbach/storyscript-sls | d71d74a53852ebae54bdaab341678b04f2775411 | [
"Apache-2.0"
] | null | null | null | sls/version.py | wilzbach/storyscript-sls | d71d74a53852ebae54bdaab341678b04f2775411 | [
"Apache-2.0"
] | null | null | null | sls/version.py | wilzbach/storyscript-sls | d71d74a53852ebae54bdaab341678b04f2775411 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pkg_resources
def get_version():
try:
return pkg_resources.get_distribution("sls").version
except pkg_resources.DistributionNotFound:
return "0.0.0"
version = get_version()
| 17.846154 | 60 | 0.676724 | 28 | 232 | 5.392857 | 0.571429 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0.202586 | 232 | 12 | 61 | 19.333333 | 0.794595 | 0.090517 | 0 | 0 | 0 | 0 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0a6509af314d7473d9868fbd492eeb59fdff3bf0 | 1,386 | py | Python | layouts/postgresconnectionerrror.py | rigdenlab/conkit-web | bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1 | [
"BSD-3-Clause"
] | 1 | 2020-04-16T16:52:53.000Z | 2020-04-16T16:52:53.000Z | layouts/postgresconnectionerrror.py | rigdenlab/conplot | 9b3129d9e1b7ed93da63c6fd31f9b50e63f2d4d9 | [
"BSD-3-Clause"
] | 47 | 2020-05-11T13:59:11.000Z | 2022-01-21T09:37:18.000Z | layouts/postgresconnectionerrror.py | rigdenlab/conkit-web | bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1 | [
"BSD-3-Clause"
] | 5 | 2020-04-24T11:19:21.000Z | 2020-05-06T08:01:36.000Z | from utils import UrlIndex
import dash_html_components as html
from components import NavBar, Header, PostgresConnectionErrorModal
import dash_bootstrap_components as dbc
def Body():
return html.Div(
[
PostgresConnectionErrorModal(),
html.Br(),
html.Br(),
ht... | 30.8 | 111 | 0.411255 | 109 | 1,386 | 5.183486 | 0.412844 | 0.148673 | 0.212389 | 0.212389 | 0.162832 | 0.162832 | 0.130973 | 0.084956 | 0 | 0 | 0 | 0.002729 | 0.47114 | 1,386 | 44 | 112 | 31.5 | 0.768076 | 0 | 0 | 0.4 | 0 | 0 | 0.098846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0 | 0.1 | 0.05 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a50996d53a9d739d009d9d04fc89ebdc28e2f43 | 161 | py | Python | smite/__init__.py | WreckRox/FlapJack-Cogs | e2950f5dc7916127c3b9519ba8bfea1f71fead40 | [
"MIT"
] | 42 | 2017-04-15T17:29:40.000Z | 2022-02-16T18:15:52.000Z | smite/__init__.py | WreckRox/FlapJack-Cogs | e2950f5dc7916127c3b9519ba8bfea1f71fead40 | [
"MIT"
] | 89 | 2017-03-22T03:21:42.000Z | 2022-03-15T18:14:49.000Z | smite/__init__.py | WreckRox/FlapJack-Cogs | e2950f5dc7916127c3b9519ba8bfea1f71fead40 | [
"MIT"
] | 72 | 2017-03-23T01:03:29.000Z | 2022-01-25T22:47:15.000Z | from .smite import Smite
__red_end_user_data_statement__ = "This cog stores discord IDs as needed for operation."
def setup(bot):
bot.add_cog(Smite(bot))
| 20.125 | 88 | 0.763975 | 26 | 161 | 4.384615 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15528 | 161 | 7 | 89 | 23 | 0.838235 | 0 | 0 | 0 | 0 | 0 | 0.322981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a5ead540002955e36b4d91041631ad0227a6dd7 | 4,946 | py | Python | geosoft/gxapi/GXHXYZ.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | geosoft/gxapi/GXHXYZ.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | geosoft/gxapi/GXHXYZ.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | ### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref
### endblock ClassImports
### block Header
# NOTICE: The code generator will not replace the code in this block
### end... | 28.589595 | 147 | 0.605135 | 616 | 4,946 | 4.761364 | 0.23539 | 0.069553 | 0.073645 | 0.098193 | 0.576543 | 0.556768 | 0.527446 | 0.485851 | 0.459939 | 0.459939 | 0 | 0.014636 | 0.281642 | 4,946 | 173 | 148 | 28.589595 | 0.810864 | 0.626971 | 0 | 0.269231 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6a6b030ba6e0727b74c8bd4f931cd71df505022b | 1,544 | py | Python | colorizon/formattings.py | FelipeSavazii/Colorizon | 5e603d8ca3f3d0512f8448ca02d70d6c51d6e1f0 | [
"MIT"
] | null | null | null | colorizon/formattings.py | FelipeSavazii/Colorizon | 5e603d8ca3f3d0512f8448ca02d70d6c51d6e1f0 | [
"MIT"
] | null | null | null | colorizon/formattings.py | FelipeSavazii/Colorizon | 5e603d8ca3f3d0512f8448ca02d70d6c51d6e1f0 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2021 FelipeSavazi
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 rights
to use, copy, modify, merge, publish, ... | 33.565217 | 78 | 0.752591 | 244 | 1,544 | 4.762295 | 0.483607 | 0.075732 | 0.060241 | 0.082616 | 0.098107 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048324 | 0.169041 | 1,544 | 45 | 79 | 34.311111 | 0.857366 | 0.69171 | 0 | 0 | 0 | 0 | 0.297009 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 1 | 0.466667 | false | 0 | 0 | 0.466667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6a910011266e7abd2540c8830e2f9f21225aacee | 2,903 | py | Python | StatisticsPreview/views.py | tifat58/lsv-c4-django-webexperiment | 6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16 | [
"Apache-2.0"
] | 1 | 2022-03-16T11:17:06.000Z | 2022-03-16T11:17:06.000Z | StatisticsPreview/views.py | tifat58/lsv-c4-django-webexperiment | 6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16 | [
"Apache-2.0"
] | null | null | null | StatisticsPreview/views.py | tifat58/lsv-c4-django-webexperiment | 6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
from django.views.generic import View
from django.http import HttpResponseRedirect
from django.http import HttpResponse, JsonResponse
from django.core.urlresolvers import reverse
from .models import *
from distutils.util import strtobool
# Create your v... | 22.160305 | 71 | 0.756459 | 361 | 2,903 | 5.897507 | 0.271468 | 0.084547 | 0.133866 | 0.146548 | 0.335838 | 0.205261 | 0.164396 | 0.092062 | 0.052607 | 0.052607 | 0 | 0.00476 | 0.131588 | 2,903 | 131 | 72 | 22.160305 | 0.839746 | 0.050293 | 0 | 0.150685 | 0 | 0 | 0.166485 | 0.075245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232877 | false | 0 | 0.09589 | 0.164384 | 0.60274 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6a9507aa112d34b7c202f8a599cac3b4461f9c4d | 432 | py | Python | supervised_learning/0x02-tensorflow/4-calculate_loss.py | cbarros7/holbertonschool-machine_learning | 1edb4c253441f6319b86c9c590d1e7dd3fc32bf4 | [
"MIT"
] | 1 | 2022-03-09T19:12:22.000Z | 2022-03-09T19:12:22.000Z | supervised_learning/0x02-tensorflow/4-calculate_loss.py | cbarros7/holbertonschool-machine_learning | 1edb4c253441f6319b86c9c590d1e7dd3fc32bf4 | [
"MIT"
] | null | null | null | supervised_learning/0x02-tensorflow/4-calculate_loss.py | cbarros7/holbertonschool-machine_learning | 1edb4c253441f6319b86c9c590d1e7dd3fc32bf4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Loss
"""
import tensorflow as tf
def calculate_loss(y, y_pred):
"""calculates the softmax cross-entropy loss of a prediction
Args:
y is a placeholder for the labels of the input data
y_pred is a tensor containing the network’s predictions
Returns:
a ten... | 24 | 66 | 0.699074 | 67 | 432 | 4.41791 | 0.58209 | 0.050676 | 0.040541 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008955 | 0.224537 | 432 | 17 | 67 | 25.411765 | 0.874627 | 0.62037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6a983018392f7b604bb79b806fd493ff1980d3f7 | 979 | py | Python | Examples/FanFicFare-master/webservice/settings.py | TomNorrie/ePubify | 89c89bd22cafdea787f3131ca9cdc8336209ed6c | [
"MIT"
] | 1 | 2019-06-13T11:20:33.000Z | 2019-06-13T11:20:33.000Z | webservice/settings.py | davidferguson/FanFicUpload | dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2 | [
"Apache-2.0"
] | null | null | null | webservice/settings.py | davidferguson/FanFicUpload | dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2011 Fanficdownloader team
#
# 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 appli... | 37.653846 | 76 | 0.75383 | 151 | 979 | 4.880795 | 0.662252 | 0.081411 | 0.035278 | 0.043419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014652 | 0.163432 | 979 | 25 | 77 | 39.16 | 0.885226 | 0.940756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6a9e769f51f9e8297479024097d8df5813e18c2a | 1,265 | py | Python | tests/st/ops/custom_ops_tbe/cus_square.py | TommyLike/mindspore | 401dabb786a9097d6dd84f391657d266b04e9a37 | [
"Apache-2.0"
] | 1 | 2020-05-23T07:08:46.000Z | 2020-05-23T07:08:46.000Z | tests/st/ops/custom_ops_tbe/cus_square.py | liyong126/mindspore | 930a1fb0a8fa9432025442c4f4732058bb7af592 | [
"Apache-2.0"
] | 7 | 2020-03-30T08:31:56.000Z | 2020-04-01T09:54:39.000Z | tests/st/ops/custom_ops_tbe/cus_square.py | liyong126/mindspore | 930a1fb0a8fa9432025442c4f4732058bb7af592 | [
"Apache-2.0"
] | 1 | 2020-03-30T17:07:43.000Z | 2020-03-30T17:07:43.000Z | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | 33.289474 | 78 | 0.674308 | 170 | 1,265 | 4.905882 | 0.576471 | 0.071942 | 0.031175 | 0.038369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008738 | 0.185771 | 1,265 | 37 | 79 | 34.189189 | 0.800971 | 0.539921 | 0 | 0 | 0 | 0 | 0.003591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.266667 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6a9ec478f0e5d22a5d3c508337a4ba92ff714277 | 327 | py | Python | modules/std/main.py | actiniumn404/SICL | 218b832fafd7613051a9b29b10b3223e4f7b102a | [
"MIT"
] | null | null | null | modules/std/main.py | actiniumn404/SICL | 218b832fafd7613051a9b29b10b3223e4f7b102a | [
"MIT"
] | null | null | null | modules/std/main.py | actiniumn404/SICL | 218b832fafd7613051a9b29b10b3223e4f7b102a | [
"MIT"
] | null | null | null | def setup(func: dict):
func["print"] = _print
func["input"] = _input
func["math"] = _math
def _print(*args):
print(*args)
def _input(prompt):
return input(prompt)
def _math(*args):
return eval(" ".join([str(x) for x in args]).replace("^", "**")) # I'll replace this with my 50 line algorithm... | 21.8 | 121 | 0.611621 | 47 | 327 | 4.12766 | 0.553191 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.207951 | 327 | 14 | 122 | 23.357143 | 0.741313 | 0.149847 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.6 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6aa69342604cadfab3123916b37402aa32839a23 | 84 | py | Python | notto/notto/settings/production.py | renatoliveira/notto | da0fb1d71aa1fc16c97f2a444380db17f7d0ef4c | [
"MIT"
] | 28 | 2017-12-05T12:14:27.000Z | 2021-11-02T02:27:16.000Z | notto/notto/settings/production.py | renatoliveira/notto | da0fb1d71aa1fc16c97f2a444380db17f7d0ef4c | [
"MIT"
] | 29 | 2017-12-05T11:55:21.000Z | 2018-07-23T17:00:47.000Z | notto/notto/settings/production.py | renatoliveira/notto | da0fb1d71aa1fc16c97f2a444380db17f7d0ef4c | [
"MIT"
] | 15 | 2017-12-07T09:17:18.000Z | 2020-11-24T21:15:04.000Z | """
Production Settings
"""
from .base import * # noqa: F401, F403
DEBUG = False
| 10.5 | 39 | 0.642857 | 10 | 84 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.214286 | 84 | 7 | 40 | 12 | 0.727273 | 0.440476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6aacbd62e5c3fe535809573322beb9b24d099b31 | 293 | py | Python | helpers/connected_android_devices.py | qbalsdon/horai | 4188dc1ec2a0bf69475fa6216ec773e6f3a26c5b | [
"MIT"
] | null | null | null | helpers/connected_android_devices.py | qbalsdon/horai | 4188dc1ec2a0bf69475fa6216ec773e6f3a26c5b | [
"MIT"
] | null | null | null | helpers/connected_android_devices.py | qbalsdon/horai | 4188dc1ec2a0bf69475fa6216ec773e6f3a26c5b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import subprocess
"""
Helper module to fetch all connected Android devices
"""
def get_device_list():
return subprocess.run(["adb","devices"], capture_output=True).stdout.decode().strip().split('\n', 1)[-1]
if __name__ == "__main__":
print(get_device_list())
| 22.538462 | 108 | 0.699659 | 40 | 293 | 4.8 | 0.85 | 0.09375 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.122867 | 293 | 12 | 109 | 24.416667 | 0.735409 | 0.071672 | 0 | 0 | 0 | 0 | 0.094787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0.2 | 0.6 | 0.2 | 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 | 1 | 1 | 0 | 0 | 3 |
6ae294ca172627ddf5cbbda9d13836779c073633 | 892 | py | Python | carrara/archivi/migrations/0005_auto_20210714_1926.py | cxc61cxc/django_prove | 9df58be73ef51e13287bfbd1b8623f3f39b8a224 | [
"MIT"
] | null | null | null | carrara/archivi/migrations/0005_auto_20210714_1926.py | cxc61cxc/django_prove | 9df58be73ef51e13287bfbd1b8623f3f39b8a224 | [
"MIT"
] | null | null | null | carrara/archivi/migrations/0005_auto_20210714_1926.py | cxc61cxc/django_prove | 9df58be73ef51e13287bfbd1b8623f3f39b8a224 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-07-14 19:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('archivi', '0004_auto_20210714_1233'),
]
operations = [
migrations.AlterField(
model_name='pratica',
name='d_nasc',
... | 26.235294 | 58 | 0.560538 | 90 | 892 | 5.422222 | 0.466667 | 0.163934 | 0.204918 | 0.237705 | 0.655738 | 0.655738 | 0.57377 | 0.497951 | 0.497951 | 0.497951 | 0 | 0.051155 | 0.320628 | 892 | 33 | 59 | 27.030303 | 0.754125 | 0.050448 | 0 | 0.592593 | 1 | 0 | 0.110059 | 0.027219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a9ce91b89bab04ba783534e7471e8061ff5c17a | 98 | py | Python | tests/experiments/initial.py | jonathanchukinas/fuzzytable | 3d574047c3a8b0c28ab6a00436526c92ca1ea6d2 | [
"MIT"
] | 1 | 2019-11-22T21:16:34.000Z | 2019-11-22T21:16:34.000Z | tests/experiments/initial.py | jonathanchukinas/fuzzytable | 3d574047c3a8b0c28ab6a00436526c92ca1ea6d2 | [
"MIT"
] | 3 | 2019-11-22T13:16:44.000Z | 2019-11-26T19:49:39.000Z | tests/experiments/initial.py | jonathanchukinas/fuzzytable | 3d574047c3a8b0c28ab6a00436526c92ca1ea6d2 | [
"MIT"
] | null | null | null |
class initial(object):
pass
INITIAL = initial()
another = INITIAL
print(another is INITIAL) | 12.25 | 25 | 0.72449 | 12 | 98 | 5.916667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 98 | 8 | 25 | 12.25 | 0.8875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0aa24326b705a3e7d9dbf4349d42b9e13b875cf2 | 156 | py | Python | library/test/test_compiler/sbs_code_tests/03_set_unpack_2.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 278 | 2021-08-31T00:46:51.000Z | 2022-02-13T19:43:28.000Z | library/test/test_compiler/sbs_code_tests/03_set_unpack_2.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 9 | 2021-11-05T22:28:43.000Z | 2021-11-23T08:39:04.000Z | library/test/test_compiler/sbs_code_tests/03_set_unpack_2.py | tekknolagi/skybison | bea8fc2af0a70e7203b4c19f36c14a745512a335 | [
"CNRI-Python-GPL-Compatible"
] | 12 | 2021-08-31T07:49:54.000Z | 2021-10-08T01:09:01.000Z | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
{*[1,2,3], *[4,5,6]}
# EXPECTED:
[
...,
BUILD_SET_UNPACK(2),
...
]
| 17.333333 | 76 | 0.551282 | 22 | 156 | 3.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.192308 | 156 | 8 | 77 | 19.5 | 0.611111 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ae149f3afa47edc55b882648dfe1fb917395814 | 1,462 | py | Python | tests/test_separate_words.py | fabaff/humps | 5e39901ed4f3053eb12557b2ff356160bcd6b635 | [
"Unlicense"
] | 2 | 2018-10-15T03:56:08.000Z | 2018-10-15T05:04:40.000Z | tests/test_separate_words.py | nficano/pyhumps | 5e39901ed4f3053eb12557b2ff356160bcd6b635 | [
"Unlicense"
] | 27 | 2021-11-11T10:27:26.000Z | 2022-03-31T10:31:18.000Z | tests/test_separate_words.py | nficano/pyhumps | 5e39901ed4f3053eb12557b2ff356160bcd6b635 | [
"Unlicense"
] | null | null | null | """
Test the utility for splitting words.
"""
import pytest
from humps.main import _separate_words
@pytest.mark.parametrize(
"input_str, expected_output",
[
# Pascals.
("HelloWorld", "Hello_World"),
("_HelloWorld", "_Hello_World"),
("__HelloWorld", "__Hello_World"),
("... | 29.24 | 56 | 0.583447 | 142 | 1,462 | 5.450704 | 0.380282 | 0.258398 | 0.258398 | 0.232558 | 0.387597 | 0.387597 | 0.387597 | 0.387597 | 0.387597 | 0.387597 | 0 | 0.022181 | 0.259918 | 1,462 | 49 | 57 | 29.836735 | 0.693161 | 0.164843 | 0 | 0 | 0 | 0 | 0.396959 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0aed53a3826fb72babf156c9a1149b4af3eec420 | 263 | py | Python | server/__init__.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | 1 | 2021-07-12T11:20:58.000Z | 2021-07-12T11:20:58.000Z | server/__init__.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | server/__init__.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | __all__ = ['server_model', 'client_model']
import time
class MsgFrame(object):
def __init__(self, text: str) -> None:
self.ts = time.time()
self.msg = text
self.FLAG = 1
def __str__(self):
return f"{self.ts}: {self.msg}" | 21.916667 | 42 | 0.585551 | 35 | 263 | 4 | 0.6 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.26616 | 263 | 12 | 43 | 21.916667 | 0.720207 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0afc8d39415232f0586aef3f8d77030e84c58cad | 2,702 | py | Python | losses.py | alexanderfroeber/cyclegan-1 | 4a807fb3c894bdcf7ec2395fb8a4c462dafe5e16 | [
"MIT"
] | 246 | 2017-07-18T17:07:21.000Z | 2021-11-23T03:11:22.000Z | losses.py | alexanderfroeber/cyclegan-1 | 4a807fb3c894bdcf7ec2395fb8a4c462dafe5e16 | [
"MIT"
] | 8 | 2017-07-18T17:30:35.000Z | 2021-03-19T14:37:22.000Z | losses.py | alexanderfroeber/cyclegan-1 | 4a807fb3c894bdcf7ec2395fb8a4c462dafe5e16 | [
"MIT"
] | 138 | 2017-07-19T12:59:43.000Z | 2022-01-28T03:44:05.000Z | """Contains losses used for performing image-to-image domain adaptation."""
import tensorflow as tf
def cycle_consistency_loss(real_images, generated_images):
"""Compute the cycle consistency loss.
The cycle consistency loss is defined as the sum of the L1 distances
between the real images from each doma... | 37.527778 | 78 | 0.700962 | 386 | 2,702 | 4.782383 | 0.334197 | 0.029252 | 0.032503 | 0.045504 | 0.627844 | 0.62351 | 0.5948 | 0.57584 | 0.57584 | 0.57584 | 0 | 0.013094 | 0.236862 | 2,702 | 71 | 79 | 38.056338 | 0.882153 | 0.740933 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0afe53c5d2d4b902b48213df13e9f8e32ee54607 | 10,206 | py | Python | renderdoc/driver/gl/gen_dispatch_table.py | gary-sweet/renderdoc | 9721150aa9bd4afccaf3649037bc914e6f37ae4e | [
"MIT"
] | 20 | 2020-04-08T18:11:18.000Z | 2022-03-29T10:47:30.000Z | renderdoc/driver/gl/gen_dispatch_table.py | gary-sweet/renderdoc | 9721150aa9bd4afccaf3649037bc914e6f37ae4e | [
"MIT"
] | 3 | 2020-12-30T05:16:38.000Z | 2021-03-05T09:50:41.000Z | renderdoc/driver/gl/gen_dispatch_table.py | gary-sweet/renderdoc | 9721150aa9bd4afccaf3649037bc914e6f37ae4e | [
"MIT"
] | 8 | 2020-04-08T18:14:48.000Z | 2022-01-29T10:47:54.000Z | #!/usr/bin/env python3
import os
import io
import sys
import re
import argparse
parser = argparse.ArgumentParser(description='Generate macros for handling GL dispatch table.')
parser.add_argument('-m', '--maxparam', type=int, default=17,
help='The maximum number of parameters to generate')
parsed_... | 37.112727 | 125 | 0.670194 | 1,399 | 10,206 | 4.834167 | 0.290207 | 0.013308 | 0.009315 | 0.025728 | 0.200503 | 0.167973 | 0.142245 | 0.142245 | 0.132633 | 0.132633 | 0 | 0.006555 | 0.162943 | 10,206 | 274 | 126 | 37.248175 | 0.785087 | 0.195081 | 0 | 0.293785 | 1 | 0.022599 | 0.607021 | 0.146771 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.056497 | 0.033898 | 0 | 0.067797 | 0.090395 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e4032fc7a4f1165ee96e2fa2801c14806f967050 | 1,753 | py | Python | tests/test_sequence.py | ontruck/pyontruck | 011480c6e6fc6a479c10105bf160e0b5008b4508 | [
"BSD-3-Clause"
] | null | null | null | tests/test_sequence.py | ontruck/pyontruck | 011480c6e6fc6a479c10105bf160e0b5008b4508 | [
"BSD-3-Clause"
] | null | null | null | tests/test_sequence.py | ontruck/pyontruck | 011480c6e6fc6a479c10105bf160e0b5008b4508 | [
"BSD-3-Clause"
] | null | null | null | """
test_pyontruck
----------------------------------
Tests for `pyontruck.sequence` module.
"""
import pytest
from pytest_cases import pytest_parametrize_plus, fixture_ref
from pyontruck.sequence import remove_duplicates, clean_nones
@pytest.fixture
def list_without_duplicates():
return [1, 2, 3, 4, 5, 'a', 'e'... | 29.711864 | 105 | 0.749572 | 240 | 1,753 | 5.1125 | 0.241667 | 0.098615 | 0.188264 | 0.119804 | 0.518337 | 0.426243 | 0.374083 | 0.374083 | 0.308883 | 0.308883 | 0 | 0.026589 | 0.120365 | 1,753 | 58 | 106 | 30.224138 | 0.769131 | 0.156874 | 0 | 0.352941 | 0 | 0 | 0.043597 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.235294 | false | 0 | 0.088235 | 0.117647 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
7c0f1635614373159d3dca9a81f67c150e8ff961 | 998 | py | Python | nomenclateAPI/models/common.py | AndresMWeber/nomenclate-api | 1a098918ce54bb6083bd001780de21b27a2669eb | [
"MIT"
] | null | null | null | nomenclateAPI/models/common.py | AndresMWeber/nomenclate-api | 1a098918ce54bb6083bd001780de21b27a2669eb | [
"MIT"
] | null | null | null | nomenclateAPI/models/common.py | AndresMWeber/nomenclate-api | 1a098918ce54bb6083bd001780de21b27a2669eb | [
"MIT"
] | null | null | null | from db import db
class CommonMixin(object):
serial_attrs = []
id = db.Column(db.Integer, primary_key=True)
def json(self):
return {attr: getattr(self, attr) for attr in self.serial_attrs}
@classmethod
def find_all_by_id(cls, _id):
return cls.query.filter_by(id=_id).all()
@c... | 24.341463 | 72 | 0.635271 | 141 | 998 | 4.29078 | 0.276596 | 0.138843 | 0.178512 | 0.165289 | 0.345455 | 0.115702 | 0.115702 | 0.115702 | 0.115702 | 0.115702 | 0 | 0 | 0.238477 | 998 | 41 | 73 | 24.341463 | 0.796053 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.033333 | 0.233333 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 3 |
7c122b8ad9d7fffc509870b0695f2d966d7bc77e | 326 | py | Python | data/project_data.py | OlgaKuratkina/training_mantis | 3886498ca1efd56ccc37b63bdcce5b4bb2a92611 | [
"Apache-2.0"
] | null | null | null | data/project_data.py | OlgaKuratkina/training_mantis | 3886498ca1efd56ccc37b63bdcce5b4bb2a92611 | [
"Apache-2.0"
] | null | null | null | data/project_data.py | OlgaKuratkina/training_mantis | 3886498ca1efd56ccc37b63bdcce5b4bb2a92611 | [
"Apache-2.0"
] | null | null | null | from model.project import Project
import random
import string
symb = string.ascii_letters + string.digits + " "*10
projects = [Project(name="".join([random.choice(symb) for i in range(10)]), description="Its a project about something")]
#projects = [Project(name="lksuu67jk", description="Its a project about somethin... | 29.636364 | 121 | 0.742331 | 44 | 326 | 5.477273 | 0.568182 | 0.107884 | 0.157676 | 0.182573 | 0.298755 | 0.298755 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.122699 | 326 | 10 | 122 | 32.6 | 0.821678 | 0.254601 | 0 | 0 | 0 | 0 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
7c1e65bc8b9e89683a49f7612d71c52b25e263ec | 334 | py | Python | scikits/gpu/tests/test_texture.py | stefanv/scikits.gpu | d57a676e16ed576a255a1a4cae64d8c019f0e8fb | [
"MIT"
] | 4 | 2016-05-08T21:41:10.000Z | 2021-09-13T18:32:28.000Z | scikits/gpu/tests/test_texture.py | stefanv/scikits.gpu | d57a676e16ed576a255a1a4cae64d8c019f0e8fb | [
"MIT"
] | null | null | null | scikits/gpu/tests/test_texture.py | stefanv/scikits.gpu | d57a676e16ed576a255a1a4cae64d8c019f0e8fb | [
"MIT"
] | null | null | null | from nose.tools import *
from scikits.gpu.texture import *
import pyglet.gl as gl
def test_creation():
Texture(20, 20)
Texture(20, 25)
#def test_texture_target():
# assert_equal(texture_target(16, 16), gl.GL_TEXTURE_2D)
# assert texture_target(17, 16) in \
# [gl.GL_TEXTURE_2D, gl.GL_TEXTURE_R... | 23.857143 | 59 | 0.706587 | 52 | 334 | 4.288462 | 0.461538 | 0.174888 | 0.147982 | 0.116592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065693 | 0.179641 | 334 | 13 | 60 | 25.692308 | 0.748175 | 0.538922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7c2b7e4ce33658efffeb0e2974a33e636c1e1aea | 1,434 | py | Python | setup.py | cloverly/cloverly-python-module | 773736db6713919c80be288a7875f41c37feaeba | [
"MIT"
] | 1 | 2021-08-10T02:54:19.000Z | 2021-08-10T02:54:19.000Z | setup.py | cloverly/cloverly-python-module | 773736db6713919c80be288a7875f41c37feaeba | [
"MIT"
] | null | null | null | setup.py | cloverly/cloverly-python-module | 773736db6713919c80be288a7875f41c37feaeba | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
VERSION = '0.7.0'
DESCRIPTION = 'Cloverly API Module for Python'
LONG_DESCRIPTION = """
The Cloverly Python Module is a wrapper around the python requests library.
It can be used to create, edit and delete cloverly resources, including, but not
limited to: Offsets, Estimates... | 35.85 | 80 | 0.652022 | 153 | 1,434 | 6.065359 | 0.503268 | 0.184267 | 0.242457 | 0.168103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016158 | 0.223152 | 1,434 | 39 | 81 | 36.769231 | 0.816876 | 0.006974 | 0 | 0 | 0 | 0 | 0.632208 | 0.015471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c660362bd86d54e55b09a0d04bbaaef9536a2cd | 128 | py | Python | googleGeolocation.py | jacobhjustice/AuburnHacks19 | 24402cd44859204923a050c33539cf6b4f820463 | [
"MIT"
] | null | null | null | googleGeolocation.py | jacobhjustice/AuburnHacks19 | 24402cd44859204923a050c33539cf6b4f820463 | [
"MIT"
] | 9 | 2020-09-04T14:33:05.000Z | 2022-03-02T03:08:22.000Z | googleGeolocation.py | jacobhjustice/AuburnHacks19 | 24402cd44859204923a050c33539cf6b4f820463 | [
"MIT"
] | 1 | 2019-02-02T21:10:02.000Z | 2019-02-02T21:10:02.000Z | import requests, googlemaps
gmaps = googlemaps.Client(key='AIzaSyC_pk-16CSjVdRBLL9FzIMfkeP0buthiqY')
print (gmaps.geolocate()) | 25.6 | 72 | 0.820313 | 13 | 128 | 8 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.070313 | 128 | 5 | 73 | 25.6 | 0.840336 | 0 | 0 | 0 | 0 | 0 | 0.302326 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7c7b3ee49133f635d6c1a4bdebc0f3830d1d9f8d | 158 | py | Python | 17/04/0.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | null | null | null | 17/04/0.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | 70 | 2017-06-01T11:02:51.000Z | 2017-06-30T00:35:32.000Z | 17/04/0.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | null | null | null | class MyClass:
def __init__(self):
self.var = 'var'
def method(self):
print('method')
x = MyClass()
x.method()
m = x.method
m()
| 13.166667 | 24 | 0.537975 | 21 | 158 | 3.857143 | 0.47619 | 0.17284 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303797 | 158 | 11 | 25 | 14.363636 | 0.736364 | 0 | 0 | 0 | 0 | 0 | 0.056962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0.111111 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c87dba46cef31b7285fa96947e44ef5815e676f | 2,434 | py | Python | tests/test_types.py | heitorpolidoro/polidoro-sqlite-utils | 61ab08d3677b8eea6d98f7e52e39aae52ab41ccb | [
"MIT"
] | null | null | null | tests/test_types.py | heitorpolidoro/polidoro-sqlite-utils | 61ab08d3677b8eea6d98f7e52e39aae52ab41ccb | [
"MIT"
] | null | null | null | tests/test_types.py | heitorpolidoro/polidoro-sqlite-utils | 61ab08d3677b8eea6d98f7e52e39aae52ab41ccb | [
"MIT"
] | null | null | null | from datetime import datetime, time, date
from polidoro_sqlite_utils.types import FloatField, TextField, IntegerField, DatetimeField, TimeField, DateField, \
ForeignKey
from tests.model_test import ModelTest
_now = datetime.now()
def _assert_field_value_and_type(field, field_type, input_value, expected_value):
... | 35.794118 | 116 | 0.725965 | 359 | 2,434 | 4.568245 | 0.183844 | 0.120732 | 0.17561 | 0.208537 | 0.555488 | 0.541463 | 0.442073 | 0.167073 | 0.059756 | 0 | 0 | 0.067175 | 0.137634 | 2,434 | 67 | 117 | 36.328358 | 0.71415 | 0.058751 | 0 | 0.054054 | 0 | 0 | 0.053853 | 0 | 0 | 0 | 0 | 0 | 0.540541 | 1 | 0.216216 | false | 0 | 0.081081 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7c8d4b1a04813257d53dd258535528e65b1899f6 | 1,711 | py | Python | number_types/ubyte.py | HTG-YT/integral-types | c4ce6523fd14a3c58e0e3394de27221d5b0af444 | [
"MIT"
] | null | null | null | number_types/ubyte.py | HTG-YT/integral-types | c4ce6523fd14a3c58e0e3394de27221d5b0af444 | [
"MIT"
] | null | null | null | number_types/ubyte.py | HTG-YT/integral-types | c4ce6523fd14a3c58e0e3394de27221d5b0af444 | [
"MIT"
] | null | null | null | from number_types.errors import *
class UByte:
"""
Class: UByte
Description:
Represents an unsigned 8-bit integer.
"""
def __init__(self, value):
self.value: UByte = value
if value in range(0, 255):
pass
else:
if value > 0... | 26.734375 | 106 | 0.568673 | 195 | 1,711 | 4.794872 | 0.323077 | 0.134759 | 0.119786 | 0.149733 | 0.365775 | 0.365775 | 0.314439 | 0.314439 | 0.314439 | 0 | 0 | 0.011265 | 0.325541 | 1,711 | 63 | 107 | 27.15873 | 0.79896 | 0.039743 | 0 | 0.04878 | 0 | 0 | 0.071337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0.02439 | 0.02439 | 0.268293 | 0.682927 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7c8fddfbc50162db9396fa1b0530e68015ee68f5 | 248 | py | Python | GameServer/Servers/PMSProxyServer/DBSession.py | kedlly/XDFramework | 2e8e270acf200e8b9762b017e8f2e6683db44af1 | [
"MIT"
] | 1 | 2018-09-10T10:37:36.000Z | 2018-09-10T10:37:36.000Z | GameServer/Servers/PMSProxyServer/DBSession.py | kedlly/XDFramework | 2e8e270acf200e8b9762b017e8f2e6683db44af1 | [
"MIT"
] | null | null | null | GameServer/Servers/PMSProxyServer/DBSession.py | kedlly/XDFramework | 2e8e270acf200e8b9762b017e8f2e6683db44af1 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, create_engine, Date, Boolean
from sqlalchemy.orm import sessionmaker
from Configure import DATA_SOURCE_NAME
engine = create_engine(DATA_SOURCE_NAME, echo=False)
DBSession = sessionmaker(bind=engine) | 35.428571 | 76 | 0.83871 | 33 | 248 | 6.121212 | 0.606061 | 0.138614 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100806 | 248 | 7 | 77 | 35.428571 | 0.90583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
7c94079aa5754ba06912f692bf0d73a4271dceeb | 431 | py | Python | vegaapiclient/vegacoreclient.py | vegaprotocol/sdk-python | 2491f62704afd806a47cb8467a7edf0dd65bbf1b | [
"MIT"
] | 1 | 2022-01-10T01:20:21.000Z | 2022-01-10T01:20:21.000Z | vegaapiclient/vegacoreclient.py | vegaprotocol/sdk-python | 2491f62704afd806a47cb8467a7edf0dd65bbf1b | [
"MIT"
] | 8 | 2021-10-01T12:54:27.000Z | 2022-03-24T12:22:40.000Z | vegaapiclient/vegacoreclient.py | vegaprotocol/sdk-python | 2491f62704afd806a47cb8467a7edf0dd65bbf1b | [
"MIT"
] | null | null | null | from .generated.vega.api.v1 import core_grpc
from .grpcclient import GRPCClient
class VegaCoreClient(GRPCClient):
"""
The Vega Core Client talks to a back-end node.
"""
def __init__(self, url: str, channel=None) -> None:
super().__init__(url, channel=channel)
self._core = core_grpc.Co... | 26.9375 | 60 | 0.691415 | 54 | 431 | 5.222222 | 0.574074 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.201856 | 431 | 15 | 61 | 28.733333 | 0.81686 | 0.106729 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
7ca3b8c10d94675346f932a8c465ef35595f4e1f | 2,734 | py | Python | strawberryfields/__init__.py | NunoEdgarGFlowHub/strawberryfields | 0cfef1055f782e1c338d27fb9a17e32c542ca2eb | [
"Apache-2.0"
] | 1 | 2018-12-20T03:12:39.000Z | 2018-12-20T03:12:39.000Z | strawberryfields/__init__.py | NunoEdgarGFlowHub/strawberryfields | 0cfef1055f782e1c338d27fb9a17e32c542ca2eb | [
"Apache-2.0"
] | null | null | null | strawberryfields/__init__.py | NunoEdgarGFlowHub/strawberryfields | 0cfef1055f782e1c338d27fb9a17e32c542ca2eb | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | 28.778947 | 160 | 0.715069 | 333 | 2,734 | 5.792793 | 0.489489 | 0.078797 | 0.069984 | 0.054432 | 0.066874 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005261 | 0.165691 | 2,734 | 94 | 161 | 29.085106 | 0.840421 | 0.830285 | 0 | 0 | 0 | 0 | 0.053191 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7ca3d3280d06987764414ef8300e67a4da890263 | 861 | py | Python | ampel/core/ContextUnit.py | mafn/Ampel-core | 744acbf36f0a2ceae7230ceab1350236c1501b57 | [
"BSD-3-Clause"
] | null | null | null | ampel/core/ContextUnit.py | mafn/Ampel-core | 744acbf36f0a2ceae7230ceab1350236c1501b57 | [
"BSD-3-Clause"
] | null | null | null | ampel/core/ContextUnit.py | mafn/Ampel-core | 744acbf36f0a2ceae7230ceab1350236c1501b57 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: Ampel-core/ampel/core/ContextUnit.py
# License: BSD-3-Clause
# Author: valery brinnel <firstname.lastname@gmail.com>
# Date: 07.10.2019
# Last Modified Date: 09.01.2022
# Last Modified By: valery brinnel <fi... | 31.888889 | 83 | 0.70151 | 112 | 861 | 5.375 | 0.696429 | 0.044851 | 0.07309 | 0.099668 | 0.126246 | 0.126246 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.205575 | 861 | 26 | 84 | 33.115385 | 0.852339 | 0.69338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7cc6fd7a3c9e41f47e69e6f25b261625ab240b86 | 2,025 | py | Python | main.py | Dudewhothings/01-Interactive-Fiction | cb4b4ae983c100c7524d5d455a5919b1c9aff0ba | [
"MIT"
] | null | null | null | main.py | Dudewhothings/01-Interactive-Fiction | cb4b4ae983c100c7524d5d455a5919b1c9aff0ba | [
"MIT"
] | null | null | null | main.py | Dudewhothings/01-Interactive-Fiction | cb4b4ae983c100c7524d5d455a5919b1c9aff0ba | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys,os,json,re
assert sys.version_info >= (3,9), "This script requires at least Python 3.9"
def load(l):
f = open(os.path.join(sys.path[0], l))
data = f.read()
j = json.loads(data)
return j
def find_passage(game_desc, pid):
for p in game_desc["passages"]:
if p... | 28.125 | 81 | 0.570864 | 256 | 2,025 | 4.421875 | 0.351563 | 0.174912 | 0.190813 | 0.214664 | 0.341873 | 0.248233 | 0.248233 | 0.248233 | 0.248233 | 0.248233 | 0 | 0.009956 | 0.20642 | 2,025 | 71 | 82 | 28.521127 | 0.694462 | 0.050864 | 0 | 0.058824 | 0 | 0 | 0.205315 | 0.030224 | 0 | 0 | 0 | 0 | 0.019608 | 1 | 0.137255 | false | 0.117647 | 0.019608 | 0 | 0.313725 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7ccadba15c0cd0d09be22d2e4f9a1198c946cf18 | 1,878 | py | Python | etc/manualTrimming.py | Tiago-Minuzzi/lab-stuff | b4cbca8c578e3cc4035df5686254d9254a876413 | [
"MIT"
] | null | null | null | etc/manualTrimming.py | Tiago-Minuzzi/lab-stuff | b4cbca8c578e3cc4035df5686254d9254a876413 | [
"MIT"
] | null | null | null | etc/manualTrimming.py | Tiago-Minuzzi/lab-stuff | b4cbca8c578e3cc4035df5686254d9254a876413 | [
"MIT"
] | null | null | null | import sys
# Input file
seqri=sys.argv[1]
# List of adapters
adapters = [
"cactctttccctacacgacgtcttccgatctaattctggaccatagtgcaatgt",
"cactctttccctacacgacgctcttccgacctcattcccaccctcttccg",
"cactctttccctacacgacgctcttccgatttcattcttcccc",
"cactctttccctacacgcgctcttccgatctaattcggcgg",
"cactctttccctacacgacgctcttccggatctaattca"... | 31.3 | 57 | 0.793397 | 118 | 1,878 | 12.627119 | 0.644068 | 0.009396 | 0.020134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002407 | 0.115016 | 1,878 | 59 | 58 | 31.830508 | 0.894103 | 0.067093 | 0 | 0.037736 | 0 | 0 | 0.649485 | 0.635166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.018868 | 0.018868 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.