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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
784d8939ff51ee0bb9685d3da92a34ea13be5372 | 114 | py | Python | learningPython/loops.py | SrTesch/LearningC | cd6d4c131c3e4617f8a19243ebf443dd78f621a2 | [
"MIT"
] | null | null | null | learningPython/loops.py | SrTesch/LearningC | cd6d4c131c3e4617f8a19243ebf443dd78f621a2 | [
"MIT"
] | null | null | null | learningPython/loops.py | SrTesch/LearningC | cd6d4c131c3e4617f8a19243ebf443dd78f621a2 | [
"MIT"
] | null | null | null | nums = [1, 2, 3, 4, 5]
for num in nums:
print(num+1)
print('-------------')
for i in range(3):
print(i) | 12.666667 | 22 | 0.464912 | 21 | 114 | 2.52381 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081395 | 0.245614 | 114 | 9 | 23 | 12.666667 | 0.534884 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 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 |
7857dd19adaa03b1fca86a207d6577e12adedeb5 | 557 | py | Python | lyrics_classifier/environment/__init__.py | OliverSieweke/lyrics-classifier | 5dac727d5b32d7e5d300e226bf936db32e56799e | [
"MIT"
] | null | null | null | lyrics_classifier/environment/__init__.py | OliverSieweke/lyrics-classifier | 5dac727d5b32d7e5d300e226bf936db32e56799e | [
"MIT"
] | 91 | 2020-05-13T10:31:36.000Z | 2021-07-29T04:43:03.000Z | lyrics_classifier/environment/__init__.py | OliverSieweke/lyrics-classifier | 5dac727d5b32d7e5d300e226bf936db32e56799e | [
"MIT"
] | null | null | null | """
Environment
===========
This module provides utility methods for retrieving environment variables.
"""
# Standard Library ---------------------------------------------------------------------
import os
from typing import List
# Third Party -------------------------------------------------------------------------... | 19.892857 | 88 | 0.473968 | 48 | 557 | 5.4375 | 0.625 | 0.076628 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159785 | 557 | 27 | 89 | 20.62963 | 0.557692 | 0.635548 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
785ed27a59473f9a1462417a08aab1ccb8f8d1fb | 420 | py | Python | api/forms.py | dawitt/gameFAQ | 77ade44325653398d70908d6eb7047be9d1483b8 | [
"MIT"
] | null | null | null | api/forms.py | dawitt/gameFAQ | 77ade44325653398d70908d6eb7047be9d1483b8 | [
"MIT"
] | null | null | null | api/forms.py | dawitt/gameFAQ | 77ade44325653398d70908d6eb7047be9d1483b8 | [
"MIT"
] | null | null | null | from django import forms
# from api.forms import Game
class AddGameInfo(forms.ModelForm):
game_name = forms.CharField(max_length=100)
game_slug = forms.CharField(max_length=100)
game_release = forms.DateTimeField()
game_img = forms.ImageField(required=False)
game_desc = forms.CharField(max_length=4... | 35 | 48 | 0.759524 | 57 | 420 | 5.403509 | 0.473684 | 0.227273 | 0.275974 | 0.373377 | 0.279221 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0.038997 | 0.145238 | 420 | 11 | 49 | 38.181818 | 0.818942 | 0.061905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 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 |
78699eac5a4e6eeaeb197898f75eea1707304528 | 1,431 | py | Python | src/widgetastic_bootstrap/breadcrumb.py | mfalesni/widgetastic.bootstrap | ade285e43bf3577d133187175ca60bd1b8c1af69 | [
"Apache-2.0"
] | 2 | 2018-09-21T08:54:22.000Z | 2018-09-21T15:19:00.000Z | src/widgetastic_bootstrap/breadcrumb.py | mfalesni/widgetastic.bootstrap | ade285e43bf3577d133187175ca60bd1b8c1af69 | [
"Apache-2.0"
] | null | null | null | src/widgetastic_bootstrap/breadcrumb.py | mfalesni/widgetastic.bootstrap | ade285e43bf3577d133187175ca60bd1b8c1af69 | [
"Apache-2.0"
] | 1 | 2019-10-15T11:58:57.000Z | 2019-10-15T11:58:57.000Z | from widgetastic.widget import Widget
class BreadCrumb(Widget):
"""Patternfly BreadCrumb navigation control
.. code-block:: python
breadcrumb = BreadCrumb()
breadcrumb.click_location(breadcrumb.locations[0])
"""
ROOT = '//ol[contains(@class, "breadcrumb")]'
ELEMENTS = './/li'
... | 30.446809 | 95 | 0.659679 | 177 | 1,431 | 5.146893 | 0.333333 | 0.072448 | 0.046103 | 0.036224 | 0.102086 | 0.102086 | 0.102086 | 0.102086 | 0 | 0 | 0 | 0.00274 | 0.234801 | 1,431 | 46 | 96 | 31.108696 | 0.829224 | 0.136268 | 0 | 0.172414 | 0 | 0 | 0.038907 | 0.017384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0.103448 | 0.586207 | 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 |
786d68bd6fb38bef0747700f29a22c08ca074464 | 26 | py | Python | settings/mir2Th_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | settings/mir2Th_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | settings/mir2Th_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | offset = 0.1
unit = 'mrad' | 13 | 13 | 0.615385 | 5 | 26 | 3.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.192308 | 26 | 2 | 13 | 13 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 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 |
7899b0b6a58eb46f7de7bc57483d0dfa657cf0ea | 53 | py | Python | src/backend/server_conf.py | ADKosm/MahjongBlockchain | 4428f995e8c227969cffa7302968944365f8c126 | [
"MIT"
] | null | null | null | src/backend/server_conf.py | ADKosm/MahjongBlockchain | 4428f995e8c227969cffa7302968944365f8c126 | [
"MIT"
] | 10 | 2018-02-20T21:06:43.000Z | 2018-03-01T13:24:50.000Z | src/backend/server_conf.py | ADKosm/MahjongBlockchain | 4428f995e8c227969cffa7302968944365f8c126 | [
"MIT"
] | null | null | null | bind = '0.0.0.0:8484'
workers = 4
preload_app = True
| 13.25 | 21 | 0.660377 | 11 | 53 | 3.090909 | 0.727273 | 0.176471 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 0.169811 | 53 | 3 | 22 | 17.666667 | 0.568182 | 0 | 0 | 0 | 0 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
78b1fca0c2d476cb80c96d85587175342cc4392e | 1,135 | py | Python | network/roca/structures/camera.py | cangumeli/ROCA | 44a08859c12bf4fdac1b17d0bb6d7e0e9bc99bf3 | [
"MIT"
] | 15 | 2022-03-23T20:38:09.000Z | 2022-03-30T02:18:20.000Z | network/roca/structures/camera.py | cangumeli/ROCA | 44a08859c12bf4fdac1b17d0bb6d7e0e9bc99bf3 | [
"MIT"
] | 1 | 2022-03-29T17:36:51.000Z | 2022-03-30T18:31:37.000Z | network/roca/structures/camera.py | cangumeli/ROCA | 44a08859c12bf4fdac1b17d0bb6d7e0e9bc99bf3 | [
"MIT"
] | 1 | 2022-03-29T12:58:41.000Z | 2022-03-29T12:58:41.000Z | from typing import List
import torch
import detectron2.layers as L
class Intrinsics(object):
def __init__(self, tensor: torch.Tensor):
assert tensor.ndim in (2, 3)
assert tensor.shape[-2:] == (3, 3), 'Provide the full 3x3 matrix'
if tensor.ndim == 2:
tensor = tensor.unsqueeze... | 25.222222 | 73 | 0.607048 | 143 | 1,135 | 4.664336 | 0.363636 | 0.149925 | 0.041979 | 0.05997 | 0.092954 | 0.092954 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.265198 | 1,135 | 44 | 74 | 25.795455 | 0.785372 | 0 | 0 | 0.0625 | 0 | 0 | 0.086344 | 0.018502 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.28125 | false | 0 | 0.09375 | 0.15625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
78b297ecb9bda4ce8320e0d3c585eae0cfaa5826 | 223 | py | Python | apps/contrib/viewsets/utente.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | apps/contrib/viewsets/utente.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | 1 | 2021-09-22T19:10:20.000Z | 2021-09-22T19:10:20.000Z | apps/contrib/viewsets/utente.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from ..models import Utente as u
from ..serializers import UtenteSerializer
class Utente(viewsets.ModelViewSet):
queryset = u.objects.all()
serializer_class = UtenteSerializer
| 22.3 | 42 | 0.789238 | 26 | 223 | 6.692308 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147982 | 223 | 9 | 43 | 24.777778 | 0.915789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
78bb7368c94129edd4be2e32338986068780b11d | 122 | py | Python | powernad/Object/Estimate/sub/KeyAndPositionObject.py | devkingsejong/python---PowerNad | c308bba4cb31126ccd318e4574071f4057f5d23f | [
"CNRI-Python"
] | 34 | 2017-03-16T14:32:49.000Z | 2022-03-18T09:23:05.000Z | powernad/Object/Estimate/sub/KeyAndPositionObject.py | devkingsejong/python---PowerNad | c308bba4cb31126ccd318e4574071f4057f5d23f | [
"CNRI-Python"
] | 16 | 2018-02-08T02:37:56.000Z | 2022-03-15T13:45:34.000Z | powernad/Object/Estimate/sub/KeyAndPositionObject.py | devkingsejong/python---PowerNad | c308bba4cb31126ccd318e4574071f4057f5d23f | [
"CNRI-Python"
] | 19 | 2017-03-28T21:48:18.000Z | 2021-11-30T05:13:43.000Z | class KeyAndPositionObject:
def __init__(self, key, position):
self.key = key
self.position = position | 30.5 | 38 | 0.663934 | 13 | 122 | 5.923077 | 0.538462 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254098 | 122 | 4 | 39 | 30.5 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
78c9c6443534ae10a685c24e1769ebeb0623c489 | 145 | py | Python | twitoff/__init__.py | JamesBarciz/twitoff-ds16-jjb | 2cee0ec9fbdfd5ad3302894cca1bb70a25f1c48b | [
"MIT"
] | null | null | null | twitoff/__init__.py | JamesBarciz/twitoff-ds16-jjb | 2cee0ec9fbdfd5ad3302894cca1bb70a25f1c48b | [
"MIT"
] | 2 | 2020-12-08T00:38:56.000Z | 2020-12-08T00:39:08.000Z | twitoff/__init__.py | JamesBarciz/twitoff-ds16-jjb | 2cee0ec9fbdfd5ad3302894cca1bb70a25f1c48b | [
"MIT"
] | null | null | null | #!/usr/bin/env Python
"""
Entry point from the TwitOff Flask web application
"""
# Local imports
from .app import create_app
APP = create_app()
| 16.111111 | 50 | 0.731034 | 22 | 145 | 4.727273 | 0.772727 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158621 | 145 | 8 | 51 | 18.125 | 0.852459 | 0.586207 | 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 |
153fe3433a0cfd23cc2461594a6a3b82c72c5abb | 446 | py | Python | astral/models/base.py | EnterStudios/astral | 4b75a8c54cc102b85ad582caefe97411e1469ec8 | [
"MIT"
] | 13 | 2015-12-03T08:30:38.000Z | 2021-04-19T13:30:00.000Z | astral/models/base.py | EnterStudios/astral | 4b75a8c54cc102b85ad582caefe97411e1469ec8 | [
"MIT"
] | null | null | null | astral/models/base.py | EnterStudios/astral | 4b75a8c54cc102b85ad582caefe97411e1469ec8 | [
"MIT"
] | 3 | 2016-04-18T07:27:42.000Z | 2018-07-03T04:48:58.000Z | import re
class BaseEntityMixin(object):
def to_dict(self):
return dict(((field, getattr(self, field))
for field in self.API_FIELDS))
def slugify(value):
"""
Normalizes string, converts to lowercase, removes non-alpha characters,
and converts spaces to hyphens.
Borrow fr... | 23.473684 | 75 | 0.607623 | 55 | 446 | 4.890909 | 0.690909 | 0.037175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233184 | 446 | 18 | 76 | 24.777778 | 0.78655 | 0.278027 | 0 | 0 | 0 | 0 | 0.050336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 |
1542804c1ddc28e15ce6260c9b52d76951f759e0 | 88 | py | Python | piq/feature_extractors/__init__.py | kktsubota/piq | 831e4176424c0072ddba594d0f0a6648595df744 | [
"Apache-2.0"
] | 471 | 2020-06-20T00:28:09.000Z | 2022-03-28T01:55:14.000Z | piq/feature_extractors/__init__.py | kktsubota/piq | 831e4176424c0072ddba594d0f0a6648595df744 | [
"Apache-2.0"
] | 220 | 2020-06-19T16:14:23.000Z | 2022-03-29T21:45:52.000Z | piq/feature_extractors/__init__.py | kktsubota/piq | 831e4176424c0072ddba594d0f0a6648595df744 | [
"Apache-2.0"
] | 50 | 2020-08-30T14:19:44.000Z | 2022-03-25T18:05:21.000Z | from piq.feature_extractors.fid_inception import InceptionV3
__all__ = ['InceptionV3']
| 22 | 60 | 0.829545 | 10 | 88 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.090909 | 88 | 3 | 61 | 29.333333 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.125 | 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 |
154ab2b2c3d94b1cdeacad27209ef29a8775064b | 767 | py | Python | meirin/dsl/__init__.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | meirin/dsl/__init__.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | meirin/dsl/__init__.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | from lark import Tree
from meirin.concept import Context
from .parser import parser
from .executor import Executor
def evaluate(context :Context, expression :str):
"""对表达式求值
Parameters:
context (Context): 求值上下文
expression (str): 表达式
Returns:
求值结果
"""
tree = parser.parse(... | 18.261905 | 48 | 0.647979 | 79 | 767 | 6.278481 | 0.493671 | 0.104839 | 0.064516 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001748 | 0.254237 | 767 | 41 | 49 | 18.707317 | 0.865385 | 0.319426 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.076923 | 1 | 0.153846 | false | 0 | 0.307692 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
154cd91c2fabc92b995d92433fe6ff9cc3fb974d | 191 | py | Python | demo/urls.py | stefan-koch-micro/django-bldtool | 686de6dd28ad029e9493cd47f603b6607b8ca0d8 | [
"MIT"
] | null | null | null | demo/urls.py | stefan-koch-micro/django-bldtool | 686de6dd28ad029e9493cd47f603b6607b8ca0d8 | [
"MIT"
] | 2 | 2021-03-10T14:57:09.000Z | 2021-05-11T10:42:11.000Z | demo/urls.py | stefan-koch-micro/django-bldtool | 686de6dd28ad029e9493cd47f603b6607b8ca0d8 | [
"MIT"
] | null | null | null | """Standard django urls"""
from django.urls import path
from . import views
urlpatterns = [
path('api/demo/', views.DataListCreate.as_view()),
path('', views.IndexView.as_view()),
]
| 21.222222 | 54 | 0.680628 | 24 | 191 | 5.333333 | 0.583333 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146597 | 191 | 8 | 55 | 23.875 | 0.785276 | 0.104712 | 0 | 0 | 0 | 0 | 0.054545 | 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 |
1554eaab434c1cf0a3ec4f2255a3a661aa1da906 | 383 | py | Python | twitter_oauth_dance.py | hanhanwu/Hanhan_Play_With_Social_Media | c39f5edba71ca2d16dc726912c33b7f06ccdfa7a | [
"MIT"
] | 4 | 2016-09-18T20:32:09.000Z | 2018-08-06T07:41:26.000Z | twitter_oauth_dance.py | hanhanwu/Hanhan_Play_With_Social_Media | c39f5edba71ca2d16dc726912c33b7f06ccdfa7a | [
"MIT"
] | null | null | null | twitter_oauth_dance.py | hanhanwu/Hanhan_Play_With_Social_Media | c39f5edba71ca2d16dc726912c33b7f06ccdfa7a | [
"MIT"
] | 1 | 2018-03-12T09:26:48.000Z | 2018-03-12T09:26:48.000Z | # Write the code in your IPython Notebook
import json
from flask import Flask, request
import multiprocessing
from threading import Timer
from IPython.display import IFrame
from IPython.display import display
from IPython.display import Javascript as js
import twitter
from twitter.oauth_dance import parse_oauth_token... | 25.533333 | 59 | 0.851175 | 57 | 383 | 5.596491 | 0.491228 | 0.103448 | 0.169279 | 0.225705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127937 | 383 | 14 | 60 | 27.357143 | 0.95509 | 0.101828 | 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 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
157a6226b59d3df44379258f9cf544726b00b562 | 212 | py | Python | hyperschedule/__init__.py | MuddCreates/hyperschedule-api | c35758d4db05b71e3d92f9474df3eea011bc7ca5 | [
"MIT"
] | 3 | 2019-11-13T22:32:54.000Z | 2021-06-08T18:41:16.000Z | hyperschedule/__init__.py | MuddCreates/hyperschedule-api | c35758d4db05b71e3d92f9474df3eea011bc7ca5 | [
"MIT"
] | 13 | 2017-11-22T06:54:28.000Z | 2021-07-13T23:37:22.000Z | hyperschedule/__init__.py | MuddCreates/hyperschedule-api | c35758d4db05b71e3d92f9474df3eea011bc7ca5 | [
"MIT"
] | 8 | 2019-10-01T00:37:59.000Z | 2020-10-13T19:04:53.000Z | """
Top-level module for Hyperschedule, used to provide `ROOT_DIR`.
"""
import pathlib
# Root directory of the Hyperschedule repository (*not* Python
# package).
ROOT_DIR = pathlib.Path(__file__).parent.parent
| 21.2 | 63 | 0.754717 | 28 | 212 | 5.5 | 0.785714 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 212 | 9 | 64 | 23.555556 | 0.836957 | 0.636792 | 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 |
15974f3c256905584eeead9e0f03f022242effcc | 5,696 | py | Python | dependencies/generate maps/pyagg/__init__.py | karimbahgat/AutoMap | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | [
"MIT"
] | 16 | 2016-02-26T15:24:28.000Z | 2021-06-16T21:00:22.000Z | dependencies/generate maps/pyagg/__init__.py | karimbahgat/AutoMap | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | [
"MIT"
] | 5 | 2016-02-27T20:13:26.000Z | 2018-09-12T23:08:36.000Z | dependencies/generate maps/pyagg/__init__.py | karimbahgat/AutoMap | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | [
"MIT"
] | 7 | 2015-07-08T12:51:57.000Z | 2019-12-05T19:07:27.000Z | """
# PyAgg
PyAgg is a precompiled Python library for lightweight, easy, and convenient graphics
rendering based on the aggdraw module.
## Motivation
There are several ways to create high quality 2D drawings and graphics in Python. The widely used
Matplotlib library is a favorite for advanced scientific visualizati... | 37.721854 | 125 | 0.760709 | 888 | 5,696 | 4.870496 | 0.462838 | 0.006474 | 0.00763 | 0.007861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018146 | 0.187324 | 5,696 | 150 | 126 | 37.973333 | 0.916181 | 0.983322 | 0 | 0 | 0 | 0 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 |
15b09b65a2aeacdfa23b8e271a3fcdefa8cc59af | 504 | py | Python | sort/insert.py | Serzh470/algorithms-handbook | b61bc70f91322dbe8533989815664ab3f7df6f6e | [
"MIT"
] | null | null | null | sort/insert.py | Serzh470/algorithms-handbook | b61bc70f91322dbe8533989815664ab3f7df6f6e | [
"MIT"
] | null | null | null | sort/insert.py | Serzh470/algorithms-handbook | b61bc70f91322dbe8533989815664ab3f7df6f6e | [
"MIT"
] | null | null | null | """
Insert sort
O(n**2)
"""
def insert_sort(a):
n = len(a)
for top in range(1, n):
k = top
while k > 0 and a[k-1] > a[k]:
a[k], a[k-1] = a[k-1], a[k]
k -= 1
return a
def test_insert_sort():
""" Tests """
assert(insert_sort([3, 2, 5, 7, 3, 4, 7, 0, 3, 1, ... | 21.913043 | 107 | 0.440476 | 108 | 504 | 1.935185 | 0.277778 | 0.287081 | 0.043062 | 0.057416 | 0.330144 | 0.267943 | 0.267943 | 0.267943 | 0.267943 | 0.267943 | 0 | 0.15896 | 0.313492 | 504 | 23 | 107 | 21.913043 | 0.445087 | 0.053571 | 0 | 0 | 0 | 0.083333 | 0.110151 | 0.056156 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec6186dd40a33dedcebf36c64fb557ad52ea6e55 | 211 | py | Python | lnked/colleges/apps.py | NewsNerdsAtCoJMC/ProjectTicoTeam4 | 26d2430a8ab63b585c00ac8530bc476c15597685 | [
"MIT"
] | null | null | null | lnked/colleges/apps.py | NewsNerdsAtCoJMC/ProjectTicoTeam4 | 26d2430a8ab63b585c00ac8530bc476c15597685 | [
"MIT"
] | null | null | null | lnked/colleges/apps.py | NewsNerdsAtCoJMC/ProjectTicoTeam4 | 26d2430a8ab63b585c00ac8530bc476c15597685 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CollegeConfig(AppConfig):
name = 'college'
class SignificantMajorsConfig(AppConfig):
name = 'SignificantMajors'
class BlogConfig(AppConfig):
name = 'Blog'
| 17.583333 | 41 | 0.744076 | 20 | 211 | 7.85 | 0.65 | 0.248408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165877 | 211 | 11 | 42 | 19.181818 | 0.892045 | 0 | 0 | 0 | 0 | 0 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 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 |
ec68312c7a3a69f92618ece09904fc02b845adce | 246 | py | Python | Command/Interfaces/NoCommand.py | deorerohan/DesignPatterns | 2bd698246e12ed289917bb4e3b84eaa2210534fd | [
"MIT"
] | null | null | null | Command/Interfaces/NoCommand.py | deorerohan/DesignPatterns | 2bd698246e12ed289917bb4e3b84eaa2210534fd | [
"MIT"
] | null | null | null | Command/Interfaces/NoCommand.py | deorerohan/DesignPatterns | 2bd698246e12ed289917bb4e3b84eaa2210534fd | [
"MIT"
] | null | null | null | from Interfaces import AbsCommand
class NoCommand(AbsCommand.AbsCommand):
def __init__(self, args) -> None:
super().__init__()
self._command = args[0]
def execute(self):
print(f'No command names {self._command}') | 27.333333 | 50 | 0.662602 | 29 | 246 | 5.275862 | 0.655172 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.219512 | 246 | 9 | 50 | 27.333333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.129555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 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 |
ec7694ba4be1a6b7efe8634c9c70fb219779727d | 6,035 | py | Python | sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2021-09-07T18:39:05.000Z | 2021-09-07T18:39:05.000Z | sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 34.289773 | 94 | 0.786081 | 490 | 6,035 | 9.383673 | 0.259184 | 0.150065 | 0.195085 | 0.285124 | 0.08134 | 0.08134 | 0.08134 | 0.08134 | 0.08134 | 0.08134 | 0 | 0.013364 | 0.132063 | 6,035 | 175 | 95 | 34.485714 | 0.864452 | 0.074896 | 0 | 0 | 0 | 0 | 0.269776 | 0.168251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.426829 | 0 | 0.426829 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ecdde623552a55e5a88ebcc251474c512ead039e | 117 | py | Python | person.py | acc-cosc-1336/cosc-1336-fall-2017-AshkaRTaylor | a518cbfe12b5e02671f3f1f483886af396a3e3b8 | [
"MIT"
] | null | null | null | person.py | acc-cosc-1336/cosc-1336-fall-2017-AshkaRTaylor | a518cbfe12b5e02671f3f1f483886af396a3e3b8 | [
"MIT"
] | null | null | null | person.py | acc-cosc-1336/cosc-1336-fall-2017-AshkaRTaylor | a518cbfe12b5e02671f3f1f483886af396a3e3b8 | [
"MIT"
] | null | null | null | class Person(object):
def __init__(self, fn, ln):
self.first_name = fn
self.last_name = ln
| 19.5 | 32 | 0.57265 | 16 | 117 | 3.8125 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324786 | 117 | 5 | 33 | 23.4 | 0.772152 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
01a11eac89cef8d9a016709d7550872e2ab07d90 | 271 | py | Python | raspberry_pi/__init__.py | uayebforever/rpi_tft_display_server | 3eba4801df39b22f56978e7519b68b7977d8fd99 | [
"BSD-3-Clause"
] | null | null | null | raspberry_pi/__init__.py | uayebforever/rpi_tft_display_server | 3eba4801df39b22f56978e7519b68b7977d8fd99 | [
"BSD-3-Clause"
] | null | null | null | raspberry_pi/__init__.py | uayebforever/rpi_tft_display_server | 3eba4801df39b22f56978e7519b68b7977d8fd99 | [
"BSD-3-Clause"
] | null | null | null | __ALL__ = ('real_raspberry_pi', 'TFT240x135')
import subprocess
real_raspberry_pi = (subprocess.check_output(("uname", "-m")).decode().strip() == "armv7l")
if real_raspberry_pi:
from raspberry_pi.raspberry_pi import *
else:
from raspberry_pi.mock_pi import *
| 22.583333 | 91 | 0.730627 | 35 | 271 | 5.228571 | 0.514286 | 0.360656 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029661 | 0.129151 | 271 | 11 | 92 | 24.636364 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
01b3541a72e548e100389ff1e2ff0a627ee1801d | 1,609 | py | Python | EXP/S2-032/unS2032.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 2 | 2019-05-19T11:54:26.000Z | 2019-05-19T12:03:49.000Z | EXP/S2-032/unS2032.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 1 | 2020-11-27T07:55:15.000Z | 2020-11-27T07:55:15.000Z | EXP/S2-032/unS2032.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 2 | 2021-09-06T18:06:12.000Z | 2021-12-31T07:44:43.000Z | # coding:utf-8
import requests
poc = '''{}/memoindex.action?method:%23_memberAccess%3d@ognl.OgnlContext@DEFAULT_MEMBER_ACCESS,%23context[%23parameters.obj[0]].getWriter().print(%23parameters.content[0]%2b602%2b53718),1?%23xx:%23request.toString&obj=com.opensymphony.xwork2.dispatcher.HttpServletResponse&content=10086''... | 53.633333 | 560 | 0.711001 | 228 | 1,609 | 4.934211 | 0.583333 | 0.017778 | 0.037333 | 0.040889 | 0.213333 | 0.213333 | 0.126222 | 0.126222 | 0.126222 | 0.126222 | 0 | 0.124143 | 0.093847 | 1,609 | 30 | 561 | 53.633333 | 0.647462 | 0.052206 | 0 | 0 | 0 | 0.2 | 0.7065 | 0.541694 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01e25beca0d757f95c24509a6948cad1d46f7597 | 219 | py | Python | proxy/proxy_response.py | kuba2k2/spicetify-beat-saber-backend | 1863ea1d4b1cd32ac893151218fe52a2410f7ab1 | [
"MIT"
] | null | null | null | proxy/proxy_response.py | kuba2k2/spicetify-beat-saber-backend | 1863ea1d4b1cd32ac893151218fe52a2410f7ab1 | [
"MIT"
] | null | null | null | proxy/proxy_response.py | kuba2k2/spicetify-beat-saber-backend | 1863ea1d4b1cd32ac893151218fe52a2410f7ab1 | [
"MIT"
] | null | null | null | from typing import Dict, List, Union
from pydantic import BaseModel
class ProxyResponse(BaseModel):
domain: str
url: str
headers: Dict[str, Union[str, List[str]]]
status: int
body: str
| 18.25 | 46 | 0.652968 | 28 | 219 | 5.107143 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26484 | 219 | 11 | 47 | 19.909091 | 0.888199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
01eae3d9698a999b6ddbbd015458ec7699c7611b | 610 | py | Python | contacts/models.py | mohammadjafri1992/zillow_project | de386378e4097e84a8a6877782657eeccf854f06 | [
"MIT"
] | null | null | null | contacts/models.py | mohammadjafri1992/zillow_project | de386378e4097e84a8a6877782657eeccf854f06 | [
"MIT"
] | 10 | 2020-06-05T23:04:25.000Z | 2022-03-11T23:59:15.000Z | contacts/models.py | mohammadjafri1992/zillow_project | de386378e4097e84a8a6877782657eeccf854f06 | [
"MIT"
] | null | null | null | from django.db import models
from datetime import datetime
# Create your models here.
class Contact(models.Model):
listing = models.CharField(max_length=255)
listing_id = models.IntegerField()
name = models.CharField(max_length=255)
email = models.CharField(max_length... | 38.125 | 76 | 0.663934 | 71 | 610 | 5.549296 | 0.507042 | 0.152284 | 0.182741 | 0.243655 | 0.274112 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026201 | 0.24918 | 610 | 16 | 77 | 38.125 | 0.834061 | 0.039344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
01eb751e13c2852d9ed2397553d21411c3d70b18 | 748 | py | Python | confidence/__init__.py | HolmesNL/python-configuration | 8b6446d99b46a76dfd13951ed655844c8aa97e0c | [
"Apache-2.0"
] | 5 | 2017-12-18T12:55:37.000Z | 2020-04-27T11:33:02.000Z | confidence/__init__.py | HolmesNL/python-configuration | 8b6446d99b46a76dfd13951ed655844c8aa97e0c | [
"Apache-2.0"
] | 33 | 2018-01-11T18:03:34.000Z | 2020-09-28T07:12:50.000Z | confidence/__init__.py | HolmesNL/python-configuration | 8b6446d99b46a76dfd13951ed655844c8aa97e0c | [
"Apache-2.0"
] | 2 | 2018-06-29T11:22:23.000Z | 2019-03-07T16:09:06.000Z | import logging
from confidence.exceptions import ConfigurationError, ConfiguredReferenceError, MergeConflictError, NotConfiguredError
from confidence.io import DEFAULT_LOAD_ORDER, dump, dumpf, dumps, load, load_name, loaders, loadf, loads, Locality
from confidence.models import Configuration, Missing, NotConfigured
... | 44 | 118 | 0.780749 | 74 | 748 | 7.702703 | 0.513514 | 0.073684 | 0.210526 | 0.273684 | 0.235088 | 0.235088 | 0.235088 | 0.235088 | 0.235088 | 0.235088 | 0 | 0 | 0.108289 | 748 | 16 | 119 | 46.75 | 0.854573 | 0.114973 | 0 | 0 | 0 | 0 | 0.274242 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
01f624812940e5b28454b66cb1b0bc095ea5a8ae | 288 | py | Python | st_stock/st_stock/misc.py | icedevil2001/st_stocky | 0bf2c0477dddba47a276ecfbed19b2acbfa73c7e | [
"MIT"
] | null | null | null | st_stock/st_stock/misc.py | icedevil2001/st_stocky | 0bf2c0477dddba47a276ecfbed19b2acbfa73c7e | [
"MIT"
] | null | null | null | st_stock/st_stock/misc.py | icedevil2001/st_stocky | 0bf2c0477dddba47a276ecfbed19b2acbfa73c7e | [
"MIT"
] | null | null | null |
import yaml
def load_cypto_symbols():
with open('st_stock/st_stock/assets/cypto_list.txt', 'r') as symbols:
return [symbol.strip() for symbol in symbols]
def load_config():
with open('st_stock/st_stock/config/config.yml', 'r') as fh:
return yaml.safe_load(fh)
| 24 | 73 | 0.6875 | 46 | 288 | 4.108696 | 0.521739 | 0.148148 | 0.10582 | 0.15873 | 0.232804 | 0.232804 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 288 | 11 | 74 | 26.181818 | 0.800847 | 0 | 0 | 0 | 0 | 0 | 0.264808 | 0.25784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bf023e473a0e2883ca53f4d84ed657759d6e07ad | 823 | py | Python | unittests/baseTest.py | u53r55/AHK-generator | 4cfdfb559d58af4e11ce7b3262e293779d3852c2 | [
"MIT"
] | 1 | 2019-03-10T06:09:37.000Z | 2019-03-10T06:09:37.000Z | unittests/baseTest.py | sl5net/AHK-generator | 4cfdfb559d58af4e11ce7b3262e293779d3852c2 | [
"MIT"
] | 1 | 2019-05-27T01:49:15.000Z | 2019-05-27T01:49:15.000Z | unittests/baseTest.py | u53r55/AHK-generator | 4cfdfb559d58af4e11ce7b3262e293779d3852c2 | [
"MIT"
] | null | null | null | import unittest
import re
import json
import time
try:
from bs4 import BeautifulSoup
except ImportError as e:
print(e)
from pip._internal import main as _pip_main
_pip_main(['install', 'BeautifulSoup4'])
from bs4 import BeautifulSoup
try:
from selenium import webdriver
except ImportError as e... | 18.704545 | 47 | 0.648846 | 98 | 823 | 5.346939 | 0.438776 | 0.053435 | 0.049618 | 0.099237 | 0.282443 | 0.282443 | 0.282443 | 0.282443 | 0.282443 | 0.282443 | 0 | 0.013223 | 0.264885 | 823 | 43 | 48 | 19.139535 | 0.852893 | 0 | 0 | 0.5 | 0 | 0 | 0.070545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.375 | 0 | 0.59375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
1757c3769706223bfe46ffaf86701e91be3b08fe | 246 | py | Python | launcher/constants.py | MoonShineVFX/pype-launcher | 86d6ffaedd9138340f6991da0983d2ffcf5d25da | [
"MIT"
] | null | null | null | launcher/constants.py | MoonShineVFX/pype-launcher | 86d6ffaedd9138340f6991da0983d2ffcf5d25da | [
"MIT"
] | null | null | null | launcher/constants.py | MoonShineVFX/pype-launcher | 86d6ffaedd9138340f6991da0983d2ffcf5d25da | [
"MIT"
] | null | null | null | from Qt import QtCore
ACTION_ROLE = QtCore.Qt.UserRole
GROUP_ROLE = QtCore.Qt.UserRole + 1
ACTION_ID_ROLE = QtCore.Qt.UserRole + 2
ANIMATION_START_ROLE = QtCore.Qt.UserRole + 3
ANIMATION_STATE_ROLE = QtCore.Qt.UserRole + 4
ANIMATION_LEN = 10
| 20.5 | 45 | 0.780488 | 39 | 246 | 4.692308 | 0.461538 | 0.273224 | 0.327869 | 0.546448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.138211 | 246 | 11 | 46 | 22.363636 | 0.834906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
175b71eef5e1c0a1eda822395678d9ed0e8fc097 | 329 | py | Python | test_tetris_controller.py | olincollege/PyTetrominoes | e4f525621e6a034bf84e322a944a30d6b896d6cc | [
"MIT"
] | null | null | null | test_tetris_controller.py | olincollege/PyTetrominoes | e4f525621e6a034bf84e322a944a30d6b896d6cc | [
"MIT"
] | null | null | null | test_tetris_controller.py | olincollege/PyTetrominoes | e4f525621e6a034bf84e322a944a30d6b896d6cc | [
"MIT"
] | null | null | null | """
Test that the game controller is implemented properly.
"""
# Unit tests for the functions in tetris_controller require an interactive
# form of testing like mock patch or event injection. We have verified that
# the controller interacts with the game in an error-free manner, and that the
# functions it calls run p... | 36.555556 | 78 | 0.784195 | 51 | 329 | 5.039216 | 0.745098 | 0.081712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 329 | 8 | 79 | 41.125 | 0.941392 | 0.948328 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
176b0c91415259a3d248c39078b69324f27c8316 | 206 | py | Python | DeepJanus-UE/server.py | ViniciusBloise/deepjanus | 605fd041e579b673e6c549b4a0d91cfbbef06e5f | [
"MIT"
] | 7 | 2020-10-12T10:46:30.000Z | 2021-06-23T10:42:30.000Z | DeepJanus-UE/server.py | ViniciusBloise/deepjanus | 605fd041e579b673e6c549b4a0d91cfbbef06e5f | [
"MIT"
] | null | null | null | DeepJanus-UE/server.py | ViniciusBloise/deepjanus | 605fd041e579b673e6c549b4a0d91cfbbef06e5f | [
"MIT"
] | 1 | 2021-10-06T10:10:56.000Z | 2021-10-06T10:10:56.000Z | import subprocess
try:
print("asdada")
subprocess.run(["java", "-jar", "D:\\Nargiz\\Sikuli\\sikulixapi-2.0.4.jar", "-s"])
print("Done")
except subprocess.CalledProcessError as e:
print(e) | 20.6 | 86 | 0.640777 | 27 | 206 | 4.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.15534 | 206 | 10 | 87 | 20.6 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0.289855 | 0.193237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1781fe538464c26911ddef73b962f86b27eb176c | 674 | py | Python | djangonautic/articles/views.py | RebialkowskiHubert/DjangoBlog | 0febe95ac0eec474b7f6e85b7daca788d3f538a2 | [
"MIT"
] | null | null | null | djangonautic/articles/views.py | RebialkowskiHubert/DjangoBlog | 0febe95ac0eec474b7f6e85b7daca788d3f538a2 | [
"MIT"
] | null | null | null | djangonautic/articles/views.py | RebialkowskiHubert/DjangoBlog | 0febe95ac0eec474b7f6e85b7daca788d3f538a2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Article
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
# Create your views here.
def article_list(request):
articles = Article.objects.all().order_by('date')
return render(request, 'articles/article_list.htm... | 37.444444 | 80 | 0.771513 | 86 | 674 | 5.930233 | 0.395349 | 0.117647 | 0.172549 | 0.158824 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11276 | 674 | 18 | 81 | 37.444444 | 0.852843 | 0.071217 | 0 | 0 | 0 | 0 | 0.185897 | 0.13141 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
17988a89071d71fd5220188b6e7938c140ba7e4a | 922 | py | Python | OctaHomeCore/OctaFiles/settings/message.py | Tomcuzz/OctaHomeAutomation | 4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e | [
"MIT"
] | 4 | 2016-08-14T22:07:03.000Z | 2020-10-05T14:43:03.000Z | OctaHomeCore/OctaFiles/settings/message.py | Tomcuzz/OctaHomeAutomation | 4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e | [
"MIT"
] | null | null | null | OctaHomeCore/OctaFiles/settings/message.py | Tomcuzz/OctaHomeAutomation | 4f0c5ea8b3d5b6e67633ae9c4cb95287d2784f5e | [
"MIT"
] | null | null | null | from OctaHomeCore.views.settings import *
from OctaHomeCore.models.message import *
class LogsSettingsPage(SettingsPage):
Name = "Logs"
ViewPartial = "OctaHomeCore/Settings/Logs"
def getViewParameters(self):
return {'logs': LogItem.objects.order_by('-Date').all()}
class NotificationSettingsPage(SettingsPage):
... | 30.733333 | 79 | 0.76898 | 90 | 922 | 7.833333 | 0.355556 | 0.09078 | 0.175887 | 0.170213 | 0.140426 | 0.110638 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098698 | 922 | 30 | 80 | 30.733333 | 0.848375 | 0 | 0 | 0.181818 | 0 | 0 | 0.217768 | 0.128927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.181818 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
17a23b795fef73479e3b405e6df0ac13492b9b6b | 863 | py | Python | training_api/src/DTO/Dataset.py | michaelnguyen11/BMW-Classification-Training-GUI | 315e6f4a4c3cd7136ef965ab089abda051110a27 | [
"Apache-2.0"
] | 69 | 2021-01-22T18:09:15.000Z | 2022-03-29T09:38:03.000Z | training_api/src/DTO/Dataset.py | michaelnguyen11/BMW-Classification-Training-GUI | 315e6f4a4c3cd7136ef965ab089abda051110a27 | [
"Apache-2.0"
] | null | null | null | training_api/src/DTO/Dataset.py | michaelnguyen11/BMW-Classification-Training-GUI | 315e6f4a4c3cd7136ef965ab089abda051110a27 | [
"Apache-2.0"
] | 3 | 2021-06-29T13:29:25.000Z | 2022-01-27T13:42:35.000Z | from pydantic import BaseModel
from typing import List
import pydantic
"""
The Dataset Object has 2 required fields:
- The dataset_name field: the name of your dataset folder inside the datasets folder
(the full path will be automatically appended so need to put it).
- The ratios fields represnts th... | 30.821429 | 98 | 0.742758 | 123 | 863 | 5.146341 | 0.544715 | 0.082149 | 0.126382 | 0.109005 | 0.176935 | 0.129542 | 0.129542 | 0.129542 | 0 | 0 | 0 | 0.018519 | 0.186559 | 863 | 27 | 99 | 31.962963 | 0.883191 | 0 | 0 | 0 | 0 | 0 | 0.065163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bd5c2772561db5545d3cb89750b5f753d4fd079c | 1,139 | py | Python | examples/personal_data_example.py | malcolmraine/Gatekeeper | 33461bdd90ed83f834e13a7542d333982ba37d24 | [
"Apache-2.0"
] | null | null | null | examples/personal_data_example.py | malcolmraine/Gatekeeper | 33461bdd90ed83f834e13a7542d333982ba37d24 | [
"Apache-2.0"
] | null | null | null | examples/personal_data_example.py | malcolmraine/Gatekeeper | 33461bdd90ed83f834e13a7542d333982ba37d24 | [
"Apache-2.0"
] | null | null | null | from Gatekeeper import Mutator
class Person(Mutator):
def __init__(self):
self.first_name = ""
self.last_name = ""
self.dob = ""
self.age = 0
self.address = ""
@Mutator.upper
def get_first_name_attribute(self, value):
return value
@Mutator.upper
de... | 21.490566 | 46 | 0.657594 | 149 | 1,139 | 4.838926 | 0.308725 | 0.126214 | 0.174757 | 0.199723 | 0.378641 | 0.338419 | 0.288488 | 0.288488 | 0.221914 | 0.221914 | 0 | 0.029851 | 0.235294 | 1,139 | 52 | 47 | 21.903846 | 0.797933 | 0.027217 | 0 | 0.25641 | 0 | 0 | 0.056058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.025641 | 0.179487 | 0.435897 | 0.128205 | 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 |
bd6304470bbfa055d33fe735f11514ea87b6e28a | 116 | py | Python | lavacord/ext/yandex/enums.py | CraazzzyyFoxx/lavacord.py | 5974644b2ceb814b8ad3e253e9328d22c5e17921 | [
"MIT"
] | null | null | null | lavacord/ext/yandex/enums.py | CraazzzyyFoxx/lavacord.py | 5974644b2ceb814b8ad3e253e9328d22c5e17921 | [
"MIT"
] | null | null | null | lavacord/ext/yandex/enums.py | CraazzzyyFoxx/lavacord.py | 5974644b2ceb814b8ad3e253e9328d22c5e17921 | [
"MIT"
] | null | null | null | from hikari.internal.enums import Enum
class LinkType(str, Enum):
Official = "official"
Social = "social"
| 16.571429 | 38 | 0.698276 | 14 | 116 | 5.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198276 | 116 | 6 | 39 | 19.333333 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bd6577211f82d45f1a8eb3711127d83462ea343d | 548 | py | Python | linkv_sdk/im/tools.py | linkv-io/python2-sdk | 45699372ffcf6e3e745d870cfca004fc885ee15f | [
"Apache-2.0"
] | null | null | null | linkv_sdk/im/tools.py | linkv-io/python2-sdk | 45699372ffcf6e3e745d870cfca004fc885ee15f | [
"Apache-2.0"
] | null | null | null | linkv_sdk/im/tools.py | linkv-io/python2-sdk | 45699372ffcf6e3e745d870cfca004fc885ee15f | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import random
import string
import time
def genGUID():
return '{}-{}-{}-{}'.format(
''.join(random.sample(string.ascii_letters + string.digits, 9)),
''.join(random.sample(string.ascii_letters + string.digits, 4)),
''.join(random.sample(string.ascii_letters + string... | 22.833333 | 73 | 0.620438 | 68 | 548 | 4.941176 | 0.367647 | 0.119048 | 0.190476 | 0.261905 | 0.684524 | 0.684524 | 0.684524 | 0.553571 | 0.416667 | 0.416667 | 0 | 0.022624 | 0.193431 | 548 | 23 | 74 | 23.826087 | 0.737557 | 0.038321 | 0 | 0.266667 | 0 | 0 | 0.020952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 0.6 | 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 |
bd6c1fb8b752d6a6da71b168a6941a34ae958ada | 251 | py | Python | vscvs/loss_functions/__init__.py | fcoclavero/vscvs | 27fab0bc62fb68da044cf6f2516e3c1853f77533 | [
"MIT"
] | 1 | 2019-07-02T19:07:15.000Z | 2019-07-02T19:07:15.000Z | vscvs/loss_functions/__init__.py | fcoclavero/vscvs | 27fab0bc62fb68da044cf6f2516e3c1853f77533 | [
"MIT"
] | 2 | 2019-10-23T18:05:37.000Z | 2020-09-25T14:16:25.000Z | vscvs/loss_functions/__init__.py | fcoclavero/vscvs | 27fab0bc62fb68da044cf6f2516e3c1853f77533 | [
"MIT"
] | null | null | null | __author__ = ["Francisco Clavero"]
__description__ = "Loss `torch.nn` modules."
__email__ = ["fcoclavero32@gmail.com"]
__status__ = "Prototype"
from .mixins import ReductionMixin
from .siamese import ContrastiveLoss
from .triplet import TripletLoss
| 25.1 | 44 | 0.784861 | 26 | 251 | 6.961538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.115538 | 251 | 9 | 45 | 27.888889 | 0.806306 | 0 | 0 | 0 | 0 | 0 | 0.286853 | 0.087649 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
bd7279f7dcdddd83bc8a0d9881d161c50adc033f | 147 | py | Python | triNum.py | mrmayurs4/Hacktoberfest-2020 | f2bc129bd8574d5870b9595a019bff3baddeaf73 | [
"MIT"
] | null | null | null | triNum.py | mrmayurs4/Hacktoberfest-2020 | f2bc129bd8574d5870b9595a019bff3baddeaf73 | [
"MIT"
] | null | null | null | triNum.py | mrmayurs4/Hacktoberfest-2020 | f2bc129bd8574d5870b9595a019bff3baddeaf73 | [
"MIT"
] | null | null | null | n = int(input("Enther i for ith Triangular number"))
triNum = ((n**2)+n)/2
print ("The {}nt Triangular Number is {}".format(str(n), str(triNum))) | 49 | 70 | 0.646259 | 25 | 147 | 3.8 | 0.68 | 0.336842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.136054 | 147 | 3 | 70 | 49 | 0.732283 | 0 | 0 | 0 | 0 | 0 | 0.452055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
bd78918994fe85cb700b3704aa6c232ff856469d | 152 | py | Python | topCoder/srms/500s/srm543/div2/ellys_tsp.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | topCoder/srms/500s/srm543/div2/ellys_tsp.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | topCoder/srms/500s/srm543/div2/ellys_tsp.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | class EllysTSP:
def getMax(self, places):
c = places.count('C')
v = len(places) - c
return 2 * min(c, v) + min(abs(c-v), 1)
| 25.333333 | 47 | 0.506579 | 24 | 152 | 3.208333 | 0.625 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.322368 | 152 | 5 | 48 | 30.4 | 0.728155 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bd8eca3819d18ad4f5e0490c4c5656a57e509606 | 42,987 | py | Python | ganimides_server/ganimides_database/_database_adminServices.py | leandrou-technology-forward/ganimides_api_server | 8787927e2cf7568a070c1c65294ee76d89177908 | [
"MIT"
] | null | null | null | ganimides_server/ganimides_database/_database_adminServices.py | leandrou-technology-forward/ganimides_api_server | 8787927e2cf7568a070c1c65294ee76d89177908 | [
"MIT"
] | 1 | 2021-06-02T00:36:03.000Z | 2021-06-02T00:36:03.000Z | ganimides_server/ganimides_database/_database_adminServices.py | leandrou-technology-forward/ganimides_api_server | 8787927e2cf7568a070c1c65294ee76d89177908 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
if not (os.path.dirname(__file__) in sys.path): sys.path.append(os.path.dirname(__file__))
from _serverApp import thisApp
from _serverApp import log_message, get_debug_option_as_level,retrieve_module_configuration
import datetime
from datetime import timedelta
import time
... | 47.031729 | 217 | 0.566357 | 4,474 | 42,987 | 5.150201 | 0.07376 | 0.041663 | 0.017186 | 0.021483 | 0.772372 | 0.737132 | 0.71118 | 0.686399 | 0.666175 | 0.64543 | 0 | 0.004945 | 0.219089 | 42,987 | 914 | 218 | 47.031729 | 0.681462 | 0.263615 | 0 | 0.598086 | 0 | 0.00638 | 0.128388 | 0.036512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046252 | false | 0 | 0.041467 | 0 | 0.119617 | 0.017544 | 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 |
bd9f5e5c3021d76e525f8f7faf2e0b7c962e59a4 | 211 | py | Python | master/tutorials/10-days-of-statistics/s10-weighted-mean/solution.py | bitnot/hackerrank-solutions | cb54af3e80f9aa188a7aadf357c5d9bcc0715249 | [
"MIT"
] | null | null | null | master/tutorials/10-days-of-statistics/s10-weighted-mean/solution.py | bitnot/hackerrank-solutions | cb54af3e80f9aa188a7aadf357c5d9bcc0715249 | [
"MIT"
] | null | null | null | master/tutorials/10-days-of-statistics/s10-weighted-mean/solution.py | bitnot/hackerrank-solutions | cb54af3e80f9aa188a7aadf357c5d9bcc0715249 | [
"MIT"
] | null | null | null | n = int(input().strip())
x = [int(i) for i in input().strip().split(' ')]
w = [int(i) for i in input().strip().split(' ')]
s = sum([x[i]*w[i] for i in range(0,n)])
wmean = s/sum(w)
print("{:0.1f}".format(wmean)) | 35.166667 | 48 | 0.549763 | 43 | 211 | 2.697674 | 0.418605 | 0.258621 | 0.12931 | 0.181034 | 0.431034 | 0.431034 | 0.431034 | 0.431034 | 0 | 0 | 0 | 0.016484 | 0.137441 | 211 | 6 | 49 | 35.166667 | 0.620879 | 0 | 0 | 0 | 0 | 0 | 0.042453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bdce7837827b02cfe848c63cc1926142aeb1b508 | 170 | py | Python | usr/share/pyshared/ajenti/plugins/configurator/api.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | usr/share/pyshared/ajenti/plugins/configurator/api.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | null | null | null | usr/share/pyshared/ajenti/plugins/configurator/api.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | from ajenti.api import *
from ajenti.ui import *
@p('title')
@interface
class ClassConfigEditor (BasePlugin, UIElement):
typeid = 'configurator:classconfig-editor'
| 18.888889 | 48 | 0.752941 | 19 | 170 | 6.736842 | 0.842105 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135294 | 170 | 8 | 49 | 21.25 | 0.870748 | 0 | 0 | 0 | 0 | 0 | 0.211765 | 0.182353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bdd266b3c00e62e386f8458ec56ed2f06721cff6 | 191 | py | Python | Utils/print-version-compat.py | leweaver/orangine | 0d6efa5bfce48a1d9d54a339ea70aa11ec81e4ef | [
"MIT"
] | null | null | null | Utils/print-version-compat.py | leweaver/orangine | 0d6efa5bfce48a1d9d54a339ea70aa11ec81e4ef | [
"MIT"
] | null | null | null | Utils/print-version-compat.py | leweaver/orangine | 0d6efa5bfce48a1d9d54a339ea70aa11ec81e4ef | [
"MIT"
] | null | null | null | import platform
(bits,linkage)=platform.architecture()
(major,minor,patch)=platform.python_version_tuple()
print('Python',major,bits,'OK' if int(major)==3 and int(minor)>=7 else 'TOO_OLD') | 47.75 | 81 | 0.753927 | 29 | 191 | 4.862069 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.068063 | 191 | 4 | 81 | 47.75 | 0.780899 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da2456a8df892619d6f21eaecdf71bb9ce69ede8 | 882 | py | Python | source/geometry.py | agstub/viscoelastic-glines | 924230b2c79b6ec90177718417d26d7bf62c4b50 | [
"MIT"
] | null | null | null | source/geometry.py | agstub/viscoelastic-glines | 924230b2c79b6ec90177718417d26d7bf62c4b50 | [
"MIT"
] | 2 | 2021-12-16T20:27:35.000Z | 2021-12-20T17:43:21.000Z | source/geometry.py | agstub/viscoelastic-glines | 924230b2c79b6ec90177718417d26d7bf62c4b50 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Define bed topography and initial ice-water interface functions.
# They should be equal on one margin of the domain for the
# marine ice sheet problem (i.e., the grounded portion).
# NOTE: initial ice-water elevation should be set to z=0... | 42 | 95 | 0.444444 | 98 | 882 | 4 | 0.530612 | 0.076531 | 0.114796 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014067 | 0.113379 | 882 | 20 | 96 | 44.1 | 0.487212 | 0.755102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
da247b65c3ebf5a542cb7556a31748b5e98d81db | 1,304 | py | Python | runtime/configula.py | alex-frankel/configula | 868092ce2d0e612e31da9b6c52ea3504042934f2 | [
"MIT"
] | null | null | null | runtime/configula.py | alex-frankel/configula | 868092ce2d0e612e31da9b6c52ea3504042934f2 | [
"MIT"
] | null | null | null | runtime/configula.py | alex-frankel/configula | 868092ce2d0e612e31da9b6c52ea3504042934f2 | [
"MIT"
] | null | null | null | import yaml
def render(obj):
if hasattr(type(obj), '__iter__'):
for o in obj:
o.render()
print("---")
else:
o.render()
class YamlNode(yaml.YAMLObject):
def __init__(self, value):
self.value = value
def __repr__(self):
return "YamlNode(%s)" % self... | 25.568627 | 53 | 0.641871 | 158 | 1,304 | 5.044304 | 0.259494 | 0.090339 | 0.158093 | 0.052698 | 0.388959 | 0.250941 | 0.250941 | 0.250941 | 0.250941 | 0.250941 | 0 | 0 | 0.234663 | 1,304 | 51 | 54 | 25.568627 | 0.798597 | 0.01227 | 0 | 0.35 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.225 | false | 0 | 0.025 | 0.05 | 0.525 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
da8f2564a199b305e1ac154e50973898a1cd9458 | 393 | py | Python | src/ol_openedx_canvas_integration/settings/production.py | MAbdurrehman12/open-edx-plugins | b3d7226b6cfb5454ecf74a4f03c707180ef257ea | [
"BSD-3-Clause"
] | null | null | null | src/ol_openedx_canvas_integration/settings/production.py | MAbdurrehman12/open-edx-plugins | b3d7226b6cfb5454ecf74a4f03c707180ef257ea | [
"BSD-3-Clause"
] | 32 | 2021-09-07T19:28:06.000Z | 2022-03-28T15:18:25.000Z | src/ol_openedx_canvas_integration/settings/production.py | MAbdurrehman12/open-edx-plugins | b3d7226b6cfb5454ecf74a4f03c707180ef257ea | [
"BSD-3-Clause"
] | 1 | 2021-11-25T08:19:10.000Z | 2021-11-25T08:19:10.000Z | """Production settings unique to the remote gradebook plugin."""
def plugin_settings(settings):
"""Settings for the canvas integration plugin."""
settings.CANVAS_ACCESS_TOKEN = settings.AUTH_TOKENS.get(
"CANVAS_ACCESS_TOKEN", settings.CANVAS_ACCESS_TOKEN
)
settings.CANVAS_BASE_URL = settings.E... | 32.75 | 64 | 0.737913 | 48 | 393 | 5.729167 | 0.416667 | 0.203636 | 0.185455 | 0.272727 | 0.323636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167939 | 393 | 11 | 65 | 35.727273 | 0.840979 | 0.259542 | 0 | 0 | 0 | 0 | 0.121429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 |
da93663610b1d6a3db969dc13f8a3729ef3904ae | 650 | py | Python | server/spacyface/spacyface/__init__.py | bhoov/exbert | d27b6236aa51b185f7d3fed904f25cabe3baeb1a | [
"Apache-2.0"
] | 480 | 2019-10-14T02:22:34.000Z | 2022-03-29T18:07:00.000Z | server/spacyface/spacyface/__init__.py | joehoeller/torch | 1f694879b4ae2c7d91166668f282e0d9741ea177 | [
"Apache-2.0"
] | 20 | 2019-10-15T16:18:05.000Z | 2022-02-27T21:23:55.000Z | server/spacyface/spacyface/__init__.py | joehoeller/torch | 1f694879b4ae2c7d91166668f282e0d9741ea177 | [
"Apache-2.0"
] | 42 | 2019-10-14T21:29:59.000Z | 2021-12-28T15:25:58.000Z | from .aligner import (
MakeAligner,
BertAligner,
GPT2Aligner,
RobertaAligner,
DistilBertAligner,
TransfoXLAligner,
XLNetAligner,
AlbertAligner,
XLMAligner,
CTRLAligner,
OpenAIGPTAligner,
T5Aligner,
XLMRobertaAligner,
auto_aligner
)
from .simple_spacy_token i... | 27.083333 | 114 | 0.703077 | 42 | 650 | 10.690476 | 0.52381 | 0.097996 | 0.160356 | 0.23608 | 0.74833 | 0.74833 | 0.463252 | 0.463252 | 0 | 0 | 0 | 0.007634 | 0.193846 | 650 | 23 | 115 | 28.26087 | 0.849237 | 0 | 0 | 0 | 0 | 0 | 0.321538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 1 | 0 | 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 |
16f1acf45d6fd181bc040e7d0f866c22087b4562 | 138 | py | Python | openbci/utils/__init__.py | vishwas1234567/OpenBCI_Python | 25232ac7602e0b651796dcaa0bc710c1d9cc700c | [
"MIT"
] | 414 | 2015-01-18T21:53:07.000Z | 2020-04-05T11:50:35.000Z | openbci/utils/__init__.py | vishwas1234567/OpenBCI_Python | 25232ac7602e0b651796dcaa0bc710c1d9cc700c | [
"MIT"
] | 106 | 2015-02-19T19:18:17.000Z | 2020-03-14T17:19:43.000Z | openbci/utils/__init__.py | ikmckenz/OpenBCI_Python | 25232ac7602e0b651796dcaa0bc710c1d9cc700c | [
"MIT"
] | 206 | 2015-01-04T06:27:55.000Z | 2020-03-03T12:18:54.000Z | from .constants import Constants as k
from .parse import *
from .ssdp import SSDPResponse
from .utilities import *
__version__ = "1.0.0"
| 19.714286 | 37 | 0.76087 | 20 | 138 | 5.05 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.15942 | 138 | 6 | 38 | 23 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.036232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 |
16f99e96bc8df20f9cc43e1d54e3b26397c2a77e | 234 | py | Python | util/environ_check.py | joov/movidius | dce7f5b23056c70c3c8a2d56d6b2aef65fb78ea7 | [
"MIT"
] | null | null | null | util/environ_check.py | joov/movidius | dce7f5b23056c70c3c8a2d56d6b2aef65fb78ea7 | [
"MIT"
] | null | null | null | util/environ_check.py | joov/movidius | dce7f5b23056c70c3c8a2d56d6b2aef65fb78ea7 | [
"MIT"
] | null | null | null | import os
import sys
assert sys.version_info.major >= 3, 'Error: please use python3.'
assert os.environ.get('DISPLAY', None), (
"Error: DISPLAY is not set. \n" +
"Run 'export DISPLAY=:0.0' if you're SSHing to Raspberry Pi")
| 26 | 65 | 0.679487 | 38 | 234 | 4.157895 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.179487 | 234 | 8 | 66 | 29.25 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
16f9a659c62d561709562f755d5e63d9255e4897 | 179 | py | Python | utils/utils.py | foomorrow/python_challenge_solution | 12fddbc04fe11e7d692a5676f8c441c77d6a64a6 | [
"MIT"
] | null | null | null | utils/utils.py | foomorrow/python_challenge_solution | 12fddbc04fe11e7d692a5676f8c441c77d6a64a6 | [
"MIT"
] | null | null | null | utils/utils.py | foomorrow/python_challenge_solution | 12fddbc04fe11e7d692a5676f8c441c77d6a64a6 | [
"MIT"
] | null | null | null | from urllib2 import urlopen
def get_external_resource(url, read=True):
response = urlopen(url)
if read:
return response.read()
else:
return response
| 17.9 | 42 | 0.664804 | 22 | 179 | 5.318182 | 0.681818 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.26257 | 179 | 9 | 43 | 19.888889 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 |
e50fbc28b7d4f1dde1ec46f30c9db3e30132a372 | 244 | py | Python | output/models/nist_data/list_pkg/language/schema_instance/nistschema_sv_iv_list_language_length_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/language/schema_instance/nistschema_sv_iv_list_language_length_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/language/schema_instance/nistschema_sv_iv_list_language_length_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.language.schema_instance.nistschema_sv_iv_list_language_length_2_xsd.nistschema_sv_iv_list_language_length_2 import NistschemaSvIvListLanguageLength2
__all__ = [
"NistschemaSvIvListLanguageLength2",
]
| 40.666667 | 187 | 0.889344 | 29 | 244 | 6.793103 | 0.655172 | 0.121827 | 0.142132 | 0.182741 | 0.335025 | 0.335025 | 0.335025 | 0 | 0 | 0 | 0 | 0.017391 | 0.057377 | 244 | 5 | 188 | 48.8 | 0.83913 | 0 | 0 | 0 | 0 | 0 | 0.135246 | 0.135246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e519206b82f8f42771a3b08c14f39b5067a5ccd5 | 150 | py | Python | signups/apps.py | City-of-Helsinki/open-city-signups | 3c36d3c1cba6f6fc85deadc54fb49a4318f4b1d4 | [
"MIT"
] | null | null | null | signups/apps.py | City-of-Helsinki/open-city-signups | 3c36d3c1cba6f6fc85deadc54fb49a4318f4b1d4 | [
"MIT"
] | 10 | 2018-05-15T12:29:07.000Z | 2020-06-05T19:20:34.000Z | signups/apps.py | City-of-Helsinki/opencity-signups | 3c36d3c1cba6f6fc85deadc54fb49a4318f4b1d4 | [
"MIT"
] | 1 | 2018-05-15T10:47:45.000Z | 2018-05-15T10:47:45.000Z | from django.apps import AppConfig
class SignupsConfig(AppConfig):
name = 'signups'
def ready(self):
import signups.signals # noqa
| 16.666667 | 38 | 0.686667 | 17 | 150 | 6.058824 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 150 | 8 | 39 | 18.75 | 0.895652 | 0.026667 | 0 | 0 | 0 | 0 | 0.048611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 |
e529d993dd7f676c70215289e21af745a3b789f0 | 638 | py | Python | tests/bflib/test_monsterlisting.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | tests/bflib/test_monsterlisting.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | tests/bflib/test_monsterlisting.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.monsters import listing
from bflib.monsters.animals.bats import Bat, GiantBat
from bflib.monsters.animals.base import Animal
def test_get_monsters_by_type():
monster_list = listing.get_monsters_by_type()[Bat]
assert Bat in monster_list
assert GiantBat in monster_list
def test_get_monsters_by_... | 29 | 55 | 0.804075 | 97 | 638 | 4.927835 | 0.237113 | 0.207113 | 0.16318 | 0.213389 | 0.732218 | 0.732218 | 0.682008 | 0.682008 | 0.583682 | 0.583682 | 0 | 0 | 0.147335 | 638 | 21 | 56 | 30.380952 | 0.878676 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 0 | 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 |
e54e75f978edb27fff9722b5c77cfc10191401c1 | 70 | py | Python | config/__init__.py | joog-lim/Account-API | d68d661007d91a3a83aaf74647c493d5beb33d74 | [
"Apache-2.0"
] | null | null | null | config/__init__.py | joog-lim/Account-API | d68d661007d91a3a83aaf74647c493d5beb33d74 | [
"Apache-2.0"
] | null | null | null | config/__init__.py | joog-lim/Account-API | d68d661007d91a3a83aaf74647c493d5beb33d74 | [
"Apache-2.0"
] | null | null | null | from pytz import timezone
service_timezone = timezone("Asia/Seoul")
| 14 | 41 | 0.785714 | 9 | 70 | 6 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 70 | 4 | 42 | 17.5 | 0.885246 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
e56af61c3a7e2fa0794eff74221d1650692b162f | 5,829 | py | Python | tests/unit/models/field/float.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 5 | 2020-08-26T20:12:00.000Z | 2020-12-11T16:39:22.000Z | tests/unit/models/field/float.py | RaenonX/Jelly-Bot | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 234 | 2019-12-14T03:45:19.000Z | 2020-08-26T18:55:19.000Z | tests/unit/models/field/float.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 2 | 2019-10-23T15:21:15.000Z | 2020-05-22T09:35:55.000Z | from typing import Type, Any, Tuple
from models.field import FloatField, BaseField
from models.field.exceptions import (
FieldTypeMismatchError, FieldNoneNotAllowedError, FieldError
)
from ._test_val import TestFieldValue
from ._test_prop import TestFieldProperty
__all__ = ["TestFloatFieldDefault", "TestFloatFie... | 25.792035 | 116 | 0.449305 | 640 | 5,829 | 3.95 | 0.096875 | 0.037184 | 0.039161 | 0.041139 | 0.706487 | 0.683149 | 0.683149 | 0.683149 | 0.683149 | 0.683149 | 0 | 0.055602 | 0.386001 | 5,829 | 225 | 117 | 25.906667 | 0.65074 | 0 | 0 | 0.757895 | 0 | 0 | 0.01767 | 0.01544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147368 | false | 0 | 0.026316 | 0.147368 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e5711875d31d9a3745e008506fc65b919457d045 | 2,837 | py | Python | TASSELpy/net/maizegenetics/util/OpenBitSet.py | er432/TASSELpy | 2273d2252786679e023d1279f0c717a29ddd6d35 | [
"BSD-3-Clause"
] | 1 | 2015-11-30T21:54:19.000Z | 2015-11-30T21:54:19.000Z | TASSELpy/net/maizegenetics/util/OpenBitSet.py | er432/TASSELpy | 2273d2252786679e023d1279f0c717a29ddd6d35 | [
"BSD-3-Clause"
] | null | null | null | TASSELpy/net/maizegenetics/util/OpenBitSet.py | er432/TASSELpy | 2273d2252786679e023d1279f0c717a29ddd6d35 | [
"BSD-3-Clause"
] | null | null | null | from TASSELpy.utils.Overloading import javaConstructorOverload
from TASSELpy.java.lang.Integer import metaInteger
from TASSELpy.utils.helper import make_sig
from TASSELpy.net.maizegenetics.util.BitSet import BitSet
import numpy as np
## Dictionary to hold java imports
java_imports = {'BitSet':'net/maizegenetics/util/B... | 48.913793 | 102 | 0.673246 | 372 | 2,837 | 5.091398 | 0.454301 | 0.022175 | 0.031679 | 0.027455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007491 | 0.247092 | 2,837 | 57 | 103 | 49.77193 | 0.879213 | 0.610857 | 0 | 0 | 0 | 0 | 0.165701 | 0.071842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.529412 | 0 | 0.705882 | 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 |
e5aae9a6fbbba9b924f54e9df08c2f7902a48618 | 102 | py | Python | geosquizzy/structure/utils.py | LowerSilesians/geo-squizzy | 8fff2df9e158c4063ef93d58f60f84e90ad44edd | [
"MIT"
] | 3 | 2016-02-25T07:59:24.000Z | 2016-03-11T12:33:48.000Z | geosquizzy/structure/utils.py | LowerSilesians/geo-squizzy | 8fff2df9e158c4063ef93d58f60f84e90ad44edd | [
"MIT"
] | 2 | 2016-03-09T12:23:42.000Z | 2016-03-09T21:21:47.000Z | geosquizzy/structure/utils.py | LowerSilesians/geo-squizzy | 8fff2df9e158c4063ef93d58f60f84e90ad44edd | [
"MIT"
] | null | null | null | import re
def is_geojson_doc(arg):
pattern = r'features'
return bool(re.match(pattern, arg)) | 17 | 39 | 0.696078 | 16 | 102 | 4.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 102 | 6 | 39 | 17 | 0.831325 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e5e3e0a4bf48abca3d323341401721cc793a29f5 | 57 | py | Python | libs/core/cms/api/__init__.py | myog-io/WebDjangular | 73d3c40aa449eec5acc59d4493ee94059bddabbd | [
"MIT"
] | 1 | 2018-09-14T15:17:19.000Z | 2018-09-14T15:17:19.000Z | libs/core/cms/api/__init__.py | MyOwnGamesLLC/WebDjangular | 73d3c40aa449eec5acc59d4493ee94059bddabbd | [
"MIT"
] | 41 | 2018-12-16T16:58:54.000Z | 2019-02-22T20:08:58.000Z | libs/core/cms/api/__init__.py | myog-io/WebDjangular | 73d3c40aa449eec5acc59d4493ee94059bddabbd | [
"MIT"
] | 1 | 2019-12-10T09:32:49.000Z | 2019-12-10T09:32:49.000Z | default_app_config = 'libs.core.cms.api.apps.CMSConfig'
| 28.5 | 56 | 0.789474 | 9 | 57 | 4.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 57 | 1 | 57 | 57 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5f37b527857ee370078e26e6dc3b3be978dc5bb | 314 | py | Python | websites/UserConfig/apiAuth.py | Vintony/Twi-Emoji | b855a89cd4c9e42cdaf55958ac8993d9941a8a37 | [
"MIT"
] | null | null | null | websites/UserConfig/apiAuth.py | Vintony/Twi-Emoji | b855a89cd4c9e42cdaf55958ac8993d9941a8a37 | [
"MIT"
] | null | null | null | websites/UserConfig/apiAuth.py | Vintony/Twi-Emoji | b855a89cd4c9e42cdaf55958ac8993d9941a8a37 | [
"MIT"
] | null | null | null | import tweepy
consumer_key = 'your consumer key'
consumer_secret = 'your consumer secret'
access_token = 'your access token'
access_token_secret = 'your access token secret'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
| 28.545455 | 57 | 0.812102 | 44 | 314 | 5.522727 | 0.272727 | 0.316872 | 0.209877 | 0.271605 | 0.230453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10828 | 314 | 10 | 58 | 31.4 | 0.867857 | 0 | 0 | 0 | 0 | 0 | 0.248408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
e5f520c3f93ff63f4957f0fdf145acba8777f17e | 326 | py | Python | src/PluginUtils.py | ganemone/sublime-bart | 1fcd72062914891cffac840d814eb129ebd43edf | [
"MIT"
] | 6 | 2015-02-22T17:40:33.000Z | 2016-07-11T19:18:37.000Z | src/PluginUtils.py | ganemone/sublime-bart | 1fcd72062914891cffac840d814eb129ebd43edf | [
"MIT"
] | null | null | null | src/PluginUtils.py | ganemone/sublime-bart | 1fcd72062914891cffac840d814eb129ebd43edf | [
"MIT"
] | 1 | 2017-07-06T15:27:20.000Z | 2017-07-06T15:27:20.000Z | import sublime
SETTINGS_FILE = "SublimeBart.sublime-settings"
def get_pref(key):
return get_settings().get(key)
def get_settings():
return sublime.load_settings(SETTINGS_FILE)
def set_settings(key, val):
user_settings = get_settings()
user_settings.set(key, val)
sublime.save_settings(SETTINGS_... | 19.176471 | 47 | 0.751534 | 44 | 326 | 5.295455 | 0.340909 | 0.154506 | 0.171674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147239 | 326 | 16 | 48 | 20.375 | 0.83813 | 0 | 0 | 0 | 0 | 0 | 0.08589 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e5f9c9445109813b81a01c38e80c29515f5cc1a8 | 444 | py | Python | packages/pyright-internal/src/tests/samples/genericTypes7.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | null | null | null | packages/pyright-internal/src/tests/samples/genericTypes7.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | null | null | null | packages/pyright-internal/src/tests/samples/genericTypes7.py | lipovsek/pytea | c536515a5e5947fac8871784323ba7eddc58956d | [
"MIT"
] | null | null | null | # This sample tests the specialization of property return types.
from typing import TypeVar, Generic
T = TypeVar("T")
class Foo(Generic[T]):
def __init__(self, bar: T):
self._bar = bar
@property
def bar(self) -> T:
return self._bar
def bar_method(self) -> T:
... | 18.5 | 65 | 0.614865 | 64 | 444 | 4.125 | 0.5 | 0.106061 | 0.083333 | 0.113636 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003155 | 0.286036 | 444 | 23 | 66 | 19.304348 | 0.829653 | 0.263514 | 0 | 0.166667 | 0 | 0 | 0.003322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f90679f18a932fdfc1649d8bb0c1c3049d82b35e | 385 | py | Python | tests/test_basics/py/simplelexer.py | hsolbrig/pyjsg | 5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429 | [
"CC0-1.0"
] | 3 | 2017-07-23T11:11:23.000Z | 2020-11-30T15:36:51.000Z | tests/test_basics/py/simplelexer.py | hsolbrig/pyjsg | 5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429 | [
"CC0-1.0"
] | 15 | 2018-01-05T17:18:34.000Z | 2021-12-13T17:40:25.000Z | tests/test_basics/py/simplelexer.py | hsolbrig/pyjsg | 5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429 | [
"CC0-1.0"
] | null | null | null | import typing
import pyjsg.jsglib as jsg
# .TYPE and .IGNORE settings
_CONTEXT = jsg.JSGContext()
class HEX(jsg.JSGString):
pattern = jsg.JSGPattern(r'[0-9]|[A-F]|[a-f]')
class EXPONENT(jsg.JSGString):
pattern = jsg.JSGPattern(r'[eE][+-]?[0-9]+')
class LANGTAG(jsg.JSGString):
pattern = jsg.JSGPatter... | 18.333333 | 60 | 0.651948 | 57 | 385 | 4.368421 | 0.526316 | 0.144578 | 0.228916 | 0.26506 | 0.39759 | 0.39759 | 0 | 0 | 0 | 0 | 0 | 0.018072 | 0.137662 | 385 | 20 | 61 | 19.25 | 0.731928 | 0.067532 | 0 | 0 | 0 | 0 | 0.165266 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 |
f90d57d713c87eb61108bcde009c830f0d6fe127 | 453 | py | Python | Chapter03-testability/Chapter03/palindrome1.py | showa-yojyo/Software-Architecture-with-Python | 46ba48911065292c9d391f66d7213c01699fca80 | [
"MIT"
] | null | null | null | Chapter03-testability/Chapter03/palindrome1.py | showa-yojyo/Software-Architecture-with-Python | 46ba48911065292c9d391f66d7213c01699fca80 | [
"MIT"
] | null | null | null | Chapter03-testability/Chapter03/palindrome1.py | showa-yojyo/Software-Architecture-with-Python | 46ba48911065292c9d391f66d7213c01699fca80 | [
"MIT"
] | null | null | null | # Code Listing - #12
"""
Module palindrome - Returns whether an input string is palindrome or not
"""
# Note - this is the first version of palindrome, so called palindrome1.py
def is_palindrome(in_string):
""" Returns True whether in_string is palindrome, False otherwise """
# Case insensitive
in_stri... | 25.166667 | 74 | 0.699779 | 64 | 453 | 4.84375 | 0.625 | 0.154839 | 0.116129 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013966 | 0.209713 | 453 | 17 | 75 | 26.647059 | 0.851955 | 0.662252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
005bf135a2bf7f4dd50360c7bbbc0c0b361c01d5 | 105 | py | Python | django_partisan/apps.py | ilyachch/django-partisan | 1ae356983a419ab963da071e59a5d671c9829ed3 | [
"MIT"
] | 5 | 2020-03-31T07:06:36.000Z | 2021-12-28T10:06:02.000Z | django_partisan/apps.py | ilyachch/django-partisan | 1ae356983a419ab963da071e59a5d671c9829ed3 | [
"MIT"
] | 49 | 2020-04-04T19:07:29.000Z | 2021-03-19T11:10:43.000Z | django_partisan/apps.py | ilyachch/django-partisan | 1ae356983a419ab963da071e59a5d671c9829ed3 | [
"MIT"
] | 2 | 2020-07-27T09:18:32.000Z | 2021-03-09T07:24:12.000Z | from django.apps import AppConfig
class BackgroundTasksConfig(AppConfig):
name = 'django_partisan'
| 17.5 | 39 | 0.790476 | 11 | 105 | 7.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 40 | 21 | 0.911111 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
006189ff3238561aa3e929a9ec9dd557e34ed238 | 132 | py | Python | src/__init__.py | valhuber/inheritance | f2bfa5bf99a0c8daf790fc0da8e2d1b7cab3ea7d | [
"BSD-3-Clause"
] | null | null | null | src/__init__.py | valhuber/inheritance | f2bfa5bf99a0c8daf790fc0da8e2d1b7cab3ea7d | [
"BSD-3-Clause"
] | null | null | null | src/__init__.py | valhuber/inheritance | f2bfa5bf99a0c8daf790fc0da8e2d1b7cab3ea7d | [
"BSD-3-Clause"
] | null | null | null | import src.inheritance_pkg # attempting to force pkging of code
import src.sibling
__author__ = "Val Huber"
__version__ = "0.0.7"
| 22 | 64 | 0.765152 | 20 | 132 | 4.6 | 0.85 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.151515 | 132 | 5 | 65 | 26.4 | 0.794643 | 0.257576 | 0 | 0 | 0 | 0 | 0.145833 | 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 |
0063d281a7cb7d986b7cc89bdee95f4601af5305 | 543 | py | Python | canvas/common/sili_math.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 7 | 2019-08-04T20:37:55.000Z | 2020-03-05T08:36:10.000Z | canvas/common/sili_math.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 1 | 2019-10-21T05:43:28.000Z | 2019-10-21T05:43:28.000Z | canvas/common/sili_math.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | null | null | null | from functools import reduce
from operator import mul
def prod(iterable):
return reduce(mul, iterable, 1)
def split_num(x: int):
a, b = divmod(x, 2)
if b:
b, a = a, a + 1
else:
b = a
return a, b
def cheap_round(x: float):
return int(x + 0.5)
def positions_within(bbox):
... | 18.1 | 59 | 0.561694 | 94 | 543 | 3.191489 | 0.446809 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06117 | 0.307551 | 543 | 30 | 59 | 18.1 | 0.736702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.15 | 0.55 | 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 |
006ca99d40158096833ef05c6948e7e6909840ab | 5,207 | py | Python | app/models.py | mingchuantian/Quiz-management-system | b82b1a2de2fd8a3ff919561f090c7e1006e38ad5 | [
"MIT"
] | 1 | 2021-04-07T13:35:36.000Z | 2021-04-07T13:35:36.000Z | app/models.py | mingchuantian/Quiz-management-system | b82b1a2de2fd8a3ff919561f090c7e1006e38ad5 | [
"MIT"
] | 6 | 2021-02-08T20:46:08.000Z | 2022-03-12T00:31:07.000Z | app/models.py | mingchuantian/Quiz-management-system | b82b1a2de2fd8a3ff919561f090c7e1006e38ad5 | [
"MIT"
] | 1 | 2021-04-07T13:35:41.000Z | 2021-04-07T13:35:41.000Z | # database/models written by: Mingchuan Tian (22636589)
import os, hashlib
from app import app, db, login_manager
from flask import request
from flask_sqlalchemy import SQLAlchemy
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
# define shell content
@app.s... | 34.946309 | 131 | 0.681582 | 691 | 5,207 | 4.97974 | 0.241679 | 0.069747 | 0.087184 | 0.079047 | 0.276954 | 0.211276 | 0.166521 | 0.122929 | 0.074978 | 0.063935 | 0 | 0.008499 | 0.18648 | 5,207 | 149 | 132 | 34.946309 | 0.803824 | 0.149798 | 0 | 0.191489 | 0 | 0 | 0.089229 | 0.010041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159574 | false | 0.06383 | 0.06383 | 0.106383 | 0.840426 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
0080a9bae30b6f6a4807623533d224417aec6f33 | 120 | py | Python | upy/contrib/inspect/__init__.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | 2 | 2021-05-04T07:52:39.000Z | 2021-07-11T22:19:32.000Z | upy/contrib/inspect/__init__.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | 1 | 2017-11-03T10:17:23.000Z | 2017-11-03T10:17:23.000Z | upy/contrib/inspect/__init__.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from upy.contrib.inspect.utils import InspectModel
__version__ = '0.4'
| 15 | 50 | 0.683333 | 17 | 120 | 4.588235 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.141667 | 120 | 7 | 51 | 17.142857 | 0.728155 | 0.35 | 0 | 0 | 0 | 0 | 0.039474 | 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 |
0085c8e05aa0336d9eaeb3ec1f660f8556066dac | 686 | py | Python | MetalAPI.py | jadhaddad01/MetalCryptoPortfolio | 6adc1ddc808c581a56ff474eef7e92e3e7bf9fbf | [
"MIT"
] | 1 | 2021-01-15T03:03:17.000Z | 2021-01-15T03:03:17.000Z | MetalAPI.py | jadhaddad01/MetalCryptoPortfolio | 6adc1ddc808c581a56ff474eef7e92e3e7bf9fbf | [
"MIT"
] | null | null | null | MetalAPI.py | jadhaddad01/MetalCryptoPortfolio | 6adc1ddc808c581a56ff474eef7e92e3e7bf9fbf | [
"MIT"
] | null | null | null | import http.client
import json
import config
conn = http.client.HTTPSConnection("live-metal-prices.p.rapidapi.com")
headers = {
'x-rapidapi-key': config.APIKey,
'x-rapidapi-host': "live-metal-prices.p.rapidapi.com"
}
conn.request("GET", "/v1/latest/XAU,XAG,PA,PL,GBP,/EUR/ounce", headers=headers)
res = c... | 20.787879 | 79 | 0.706997 | 86 | 686 | 5.639535 | 0.593023 | 0.14433 | 0.061856 | 0.065979 | 0.11134 | 0.11134 | 0 | 0 | 0 | 0 | 0 | 0.003361 | 0.132653 | 686 | 33 | 80 | 20.787879 | 0.811765 | 0 | 0 | 0 | 0 | 0 | 0.269287 | 0.149927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.217391 | 0.565217 | 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 |
00b9a7c46b4013e3bed1124646d139d858430802 | 450 | py | Python | 2-ml/model.py | RdecKa/0xAI | db2e5f89019ff84fe32af70dc7935ddd89319809 | [
"BSD-2-Clause"
] | 1 | 2019-01-15T15:24:56.000Z | 2019-01-15T15:24:56.000Z | 2-ml/model.py | RdecKa/0xAI | db2e5f89019ff84fe32af70dc7935ddd89319809 | [
"BSD-2-Clause"
] | null | null | null | 2-ml/model.py | RdecKa/0xAI | db2e5f89019ff84fe32af70dc7935ddd89319809 | [
"BSD-2-Clause"
] | null | null | null | class Model:
def __init__(self, model, feature_names):
self.model = model
self.feature_names = feature_names
self.ID = ""
def get_ID(self):
return self.ID
def fit(self, X, y):
self.model.fit(X, y)
def predict(self, X):
return self.model.predict(X)
... | 20.454545 | 52 | 0.564444 | 65 | 450 | 3.753846 | 0.307692 | 0.184426 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00639 | 0.304444 | 450 | 21 | 53 | 21.428571 | 0.773163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.266667 | 0.733333 | 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 |
00cfe57ad2fec654ddcc219eb049a0ed368eef43 | 410 | py | Python | NLP_Flask/app/models/resource.py | Gxy-2001/NLPPlat | f339c1a7452b979b413919cf4bc128bf45af52ef | [
"MIT"
] | null | null | null | NLP_Flask/app/models/resource.py | Gxy-2001/NLPPlat | f339c1a7452b979b413919cf4bc128bf45af52ef | [
"MIT"
] | null | null | null | NLP_Flask/app/models/resource.py | Gxy-2001/NLPPlat | f339c1a7452b979b413919cf4bc128bf45af52ef | [
"MIT"
] | null | null | null | import datetime
from app import db
# 资源类
class Resource(db.DynamicDocument):
id = db.SequenceField(primary_key=True)
username = db.StringField(required=True)
resourceName = db.StringField(required=True)
resourceType = db.StringField(required=True)
url=db.StringField(required=True)
desc = db.Str... | 31.538462 | 48 | 0.739024 | 48 | 410 | 6.291667 | 0.479167 | 0.258278 | 0.347682 | 0.413907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156098 | 410 | 13 | 49 | 31.538462 | 0.872832 | 0.007317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 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 |
00d47b3749a99ba87dd06e81d2fd4511bb0c9317 | 738 | py | Python | dp_tornado/helper/serialization/json.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | dp_tornado/helper/serialization/json.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | dp_tornado/helper/serialization/json.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from dp_tornado.engine.helper import Helper as dpHelper
class JsonHelper(dpHelper):
def stringify(self, obj, beautify=False, raise_exception=False):
"""Alias of helper.string.serialization.json.stringify"""
return self.helper.string... | 30.75 | 68 | 0.677507 | 82 | 738 | 5.95122 | 0.402439 | 0.172131 | 0.204918 | 0.237705 | 0.442623 | 0.385246 | 0.22541 | 0.22541 | 0.22541 | 0 | 0 | 0.003472 | 0.219512 | 738 | 23 | 69 | 32.086957 | 0.84375 | 0.165312 | 0 | 0.153846 | 0 | 0 | 0.006612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 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 |
00e337e965cb6375e7fa071c8ccfac20f9819122 | 384 | py | Python | controller/controller_generator.py | airlovelq/flask-frame | 86a97522a6eff4e34f0cd5c131ebf68f7c78390a | [
"Apache-2.0"
] | null | null | null | controller/controller_generator.py | airlovelq/flask-frame | 86a97522a6eff4e34f0cd5c131ebf68f7c78390a | [
"Apache-2.0"
] | null | null | null | controller/controller_generator.py | airlovelq/flask-frame | 86a97522a6eff4e34f0cd5c131ebf68f7c78390a | [
"Apache-2.0"
] | null | null | null | from .test_op import TestOp
from functools import wraps
def controller_generate(controller_class):
def decorator(f):
@wraps(f)
def wrapped(*args, **kwargs):
controller = controller_class()
return f(controller=controller, *args, **kwargs)
return wrapped
return dec... | 27.428571 | 60 | 0.690104 | 42 | 384 | 6.142857 | 0.428571 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 384 | 13 | 61 | 29.538462 | 0.871622 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
daceebca5a83f771ed06f785002009769da3729c | 57 | py | Python | tests/unit/conftest.py | irvansemestanya/vault-cli | 220989a336e999ba770761fcdc4e6d829d644230 | [
"Apache-2.0"
] | 52 | 2018-04-11T12:51:42.000Z | 2022-03-29T12:51:54.000Z | tests/unit/conftest.py | irvansemestanya/vault-cli | 220989a336e999ba770761fcdc4e6d829d644230 | [
"Apache-2.0"
] | 186 | 2018-04-19T13:12:43.000Z | 2022-01-27T08:39:45.000Z | tests/unit/conftest.py | irvansemestanya/vault-cli | 220989a336e999ba770761fcdc4e6d829d644230 | [
"Apache-2.0"
] | 15 | 2018-04-19T09:40:48.000Z | 2021-08-24T14:42:36.000Z | from vault_cli.testing import vault
__all__ = ["vault"]
| 14.25 | 35 | 0.754386 | 8 | 57 | 4.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 3 | 36 | 19 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 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 |
dad2e0c799bc95a5e19e894d628b87a554a21ef0 | 361 | py | Python | while 4/4.6.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | while 4/4.6.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | while 4/4.6.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | numbers = [1,3,5,4,6,2,8,9,7]
prime_numbers = []
non_prime_numbers = []
i = 0
while i < len(numbers):
if numbers[i] % 2 == 0:
prime_numbers.append(numbers[i])
else:
non_prime_numbers.append(numbers[i])
i += 1
print(f'Obshii spisok {numbers}')
print(f'4etnye 4islami: {prime_numbers}')
print... | 22.5625 | 45 | 0.645429 | 58 | 361 | 3.862069 | 0.465517 | 0.321429 | 0.200893 | 0.223214 | 0.232143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057823 | 0.185596 | 361 | 15 | 46 | 24.066667 | 0.704082 | 0 | 0 | 0 | 0 | 0 | 0.246537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.230769 | 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 |
970b22f88abdc53af79398675c806a6cfcf91965 | 226 | py | Python | autoflow/workflow/components/preprocessing/balance/under_sample/near_miss.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 49 | 2020-04-16T11:17:28.000Z | 2020-05-06T01:32:44.000Z | autoflow/workflow/components/preprocessing/balance/under_sample/near_miss.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | null | null | null | autoflow/workflow/components/preprocessing/balance/under_sample/near_miss.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 3 | 2020-04-17T00:53:24.000Z | 2020-04-23T03:04:26.000Z | from autoflow.workflow.components.data_process_base import AutoFlowDataProcessAlgorithm
__all__ = ["NearMiss"]
class NearMiss(AutoFlowDataProcessAlgorithm):
class__ = "NearMiss"
module__ = "imblearn.under_sampling"
| 25.111111 | 87 | 0.80531 | 20 | 226 | 8.55 | 0.8 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115044 | 226 | 8 | 88 | 28.25 | 0.855 | 0 | 0 | 0 | 0 | 0 | 0.172566 | 0.10177 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9711bb538b47741176b6d7a3be169d85bf32f74f | 2,603 | py | Python | scripts/sdn_multiple_vn_vm_basic_policy.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | scripts/sdn_multiple_vn_vm_basic_policy.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | scripts/sdn_multiple_vn_vm_basic_policy.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | '''*******AUTO-GENERATED TOPOLOGY*********'''
class sdn_multiple_vn_vm_basic_config ():
def __init__(self, domain='default-domain', project='admin', username=None, password=None):
#
# Domain and project defaults: Do not change until support for
# non-default is tested!
self.domain... | 40.671875 | 119 | 0.592393 | 329 | 2,603 | 4.495441 | 0.407295 | 0.005409 | 0.008114 | 0.013523 | 0.242055 | 0.158215 | 0.093306 | 0.093306 | 0.051386 | 0 | 0 | 0.024096 | 0.266615 | 2,603 | 63 | 120 | 41.31746 | 0.750655 | 0.232424 | 0 | 0.060606 | 1 | 0 | 0.326076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.121212 | 0.030303 | null | null | 0.212121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
971b059eab5457d82b6d72543a93a5fb7ea5b98f | 496 | py | Python | utils/file_io.py | thanhdat369/console_email_writting | 3a0f567a38c0a095d669184bee98bd41d1e65310 | [
"MIT"
] | null | null | null | utils/file_io.py | thanhdat369/console_email_writting | 3a0f567a38c0a095d669184bee98bd41d1e65310 | [
"MIT"
] | null | null | null | utils/file_io.py | thanhdat369/console_email_writting | 3a0f567a38c0a095d669184bee98bd41d1e65310 | [
"MIT"
] | null | null | null | import json
import os
def read_json_file(path):
"""
Returns:
Returned a json object.
"""
with open(path,'r') as f:
content = json.load(f)
return content
def write_json_file(json_str,path):
"""
Returns:
bool:Return true if successed
"""
with open(path,'w') as f:... | 17.714286 | 37 | 0.622984 | 74 | 496 | 4.013514 | 0.472973 | 0.053872 | 0.080808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002725 | 0.260081 | 496 | 27 | 38 | 18.37037 | 0.80654 | 0.143145 | 0 | 0 | 0 | 0 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
971c7be79e1d0835fa6d8fb5e953e0c8b57ae338 | 2,100 | py | Python | speedcord/exceptions.py | shivaco/speedcord | 2ccc089179867c21ee633074350dc56be261c03c | [
"MIT"
] | null | null | null | speedcord/exceptions.py | shivaco/speedcord | 2ccc089179867c21ee633074350dc56be261c03c | [
"MIT"
] | null | null | null | speedcord/exceptions.py | shivaco/speedcord | 2ccc089179867c21ee633074350dc56be261c03c | [
"MIT"
] | null | null | null | """
Created by Epic at 9/1/20
"""
class HTTPException(Exception):
"""Exception that's thrown when an HTTP request operation fails."""
def __init__(self, request, data):
self.request = request
self.data = data
super().__init__(data)
class Forbidden(HTTPException):
"""Exception tha... | 28.378378 | 99 | 0.69381 | 257 | 2,100 | 5.451362 | 0.365759 | 0.092791 | 0.099929 | 0.142755 | 0.496788 | 0.401142 | 0.312634 | 0.26267 | 0.195575 | 0.121342 | 0 | 0.00778 | 0.204286 | 2,100 | 73 | 100 | 28.767123 | 0.83064 | 0.358571 | 0 | 0.387097 | 0 | 0 | 0.209192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0.096774 | 0 | 0 | 0.548387 | 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 |
97203b536e172326aa8aa2819ff305c157af0f28 | 1,393 | py | Python | machine/qemu/sources/u-boot/test/py/tests/test_dm.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | 1 | 2021-11-21T19:56:29.000Z | 2021-11-21T19:56:29.000Z | machine/qemu/sources/u-boot/test/py/tests/test_dm.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | machine/qemu/sources/u-boot/test/py/tests/test_dm.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2020 Sean Anderson
import pytest
@pytest.mark.buildconfigspec('cmd_dm')
def test_dm_compat(u_boot_console):
"""Test that each driver in `dm tree` is also listed in `dm compat`."""
response = u_boot_console.run_command('dm tree')
driver_index = response.fi... | 38.694444 | 78 | 0.687724 | 207 | 1,393 | 4.454106 | 0.227053 | 0.048807 | 0.117137 | 0.130152 | 0.765727 | 0.748373 | 0.748373 | 0.713666 | 0.658351 | 0.547722 | 0 | 0.015707 | 0.177315 | 1,393 | 35 | 79 | 39.8 | 0.788831 | 0.193826 | 0 | 0.52 | 0 | 0 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
9783baff9fbcedef96703c5c38d2bc674fabdcb1 | 1,589 | py | Python | console_widgets/errors.py | bornagojsic/console-widgets | ddec696cb44628ea7dd99f686c95167fbc1163fd | [
"MIT"
] | 1 | 2021-05-31T16:13:00.000Z | 2021-05-31T16:13:00.000Z | console_widgets/errors.py | bornagojsic/console-widgets | ddec696cb44628ea7dd99f686c95167fbc1163fd | [
"MIT"
] | null | null | null | console_widgets/errors.py | bornagojsic/console-widgets | ddec696cb44628ea7dd99f686c95167fbc1163fd | [
"MIT"
] | null | null | null | class ParameterTypeError(Exception):
"""Exception raised for errors in the input parameter.
Attributes:
parameter -- input parameter which caused the error
message -- explanation of the error
"""
def __init__(self, parameter, parameter_name, parameter_type, message="The parameter can only be of type {}!"):
... | 33.104167 | 112 | 0.736312 | 219 | 1,589 | 5.086758 | 0.196347 | 0.105027 | 0.061041 | 0.072711 | 0.696589 | 0.600539 | 0.51167 | 0.440754 | 0.347397 | 0.347397 | 0 | 0 | 0.151668 | 1,589 | 48 | 113 | 33.104167 | 0.82641 | 0.304594 | 0 | 0.545455 | 0 | 0.136364 | 0.354751 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.136364 | 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 |
979105600e1276214ca6fbd34cf63ea87a90ac2f | 55 | py | Python | app/demo/periods/__init__.py | sesostris/django-material-admin | f6678e57286bd871a820b235f868873d5f86d649 | [
"MIT"
] | 270 | 2018-09-14T07:55:04.000Z | 2022-03-31T13:12:41.000Z | app/demo/periods/__init__.py | sesostris/django-material-admin | f6678e57286bd871a820b235f868873d5f86d649 | [
"MIT"
] | 107 | 2019-03-26T20:35:23.000Z | 2022-03-15T15:34:38.000Z | app/demo/periods/__init__.py | sesostris/django-material-admin | f6678e57286bd871a820b235f868873d5f86d649 | [
"MIT"
] | 66 | 2018-11-05T13:07:14.000Z | 2022-03-31T17:17:22.000Z | default_app_config = 'demo.periods.apps.PeriodsConfig'
| 27.5 | 54 | 0.836364 | 7 | 55 | 6.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 55 | 1 | 55 | 55 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.563636 | 0.563636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97a44483ddb6a211fc2a5de7fe357e11f35f8fb1 | 147 | py | Python | foundation/organisation/urls/board.py | Narendra-Git-Hub/website | c10bd9be11c3ff6687a8a18929c06650453a31d3 | [
"MIT"
] | 74 | 2016-06-27T17:06:44.000Z | 2022-03-20T19:42:07.000Z | foundation/organisation/urls/board.py | Narendra-Git-Hub/website | c10bd9be11c3ff6687a8a18929c06650453a31d3 | [
"MIT"
] | 370 | 2016-06-09T09:15:00.000Z | 2022-03-28T19:02:31.000Z | foundation/organisation/urls/board.py | Narendra-Git-Hub/website | c10bd9be11c3ff6687a8a18929c06650453a31d3 | [
"MIT"
] | 104 | 2016-06-09T15:16:02.000Z | 2022-03-12T13:14:10.000Z | from django.conf.urls import url
from ..views import BoardView
urlpatterns = [
url(r'^$', BoardView.as_view(board='board'), name='board'),
]
| 18.375 | 63 | 0.687075 | 20 | 147 | 5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 147 | 7 | 64 | 21 | 0.793651 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
97abed197bf3395690cdc367d345690ec25c5c82 | 229 | py | Python | pytest-fixtures.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | pytest-fixtures.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | pytest-fixtures.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | import pytest
@pytest.fixture
def fix1():
print("setup fix1")
yield
print("teardown fix1")
@pytest.fixture
def fix2(fix1):
print("setup fix2")
yield
print("teardown fix2")
def test_deps(fix2):
pass
| 13.470588 | 26 | 0.646288 | 30 | 229 | 4.9 | 0.433333 | 0.176871 | 0.217687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.227074 | 229 | 16 | 27 | 14.3125 | 0.785311 | 0 | 0 | 0.307692 | 0 | 0 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.076923 | 0 | 0.307692 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8adf28f04790c2eb0e61fcee4040d71e1c7abe89 | 169 | py | Python | webApp/spam_classifier/spam_detector/urls.py | utkryuk/Spam-or-Not | 86eec83c40f5ebde4af646fe2ccf2c5211f34510 | [
"MIT"
] | null | null | null | webApp/spam_classifier/spam_detector/urls.py | utkryuk/Spam-or-Not | 86eec83c40f5ebde4af646fe2ccf2c5211f34510 | [
"MIT"
] | null | null | null | webApp/spam_classifier/spam_detector/urls.py | utkryuk/Spam-or-Not | 86eec83c40f5ebde4af646fe2ccf2c5211f34510 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('predict/', views.predict, name='result'),
path('', views.formclass, name='classifier')
] | 21.125 | 51 | 0.680473 | 20 | 169 | 5.75 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159763 | 169 | 8 | 52 | 21.125 | 0.809859 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 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 |
8af5347102f9f96b0034111b1ab7e2f364d63873 | 72 | py | Python | mayan/apps/storage/literals.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | null | null | null | mayan/apps/storage/literals.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | 10 | 2021-03-20T00:01:17.000Z | 2022-03-12T00:48:43.000Z | mayan/apps/storage/literals.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | 1 | 2020-12-17T02:35:09.000Z | 2020-12-17T02:35:09.000Z | DEFAULT_STORAGE_BACKEND = 'django.core.files.storage.FileSystemStorage'
| 36 | 71 | 0.861111 | 8 | 72 | 7.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 72 | 1 | 72 | 72 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.597222 | 0.597222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c10ac76e6041bd3708b5392bbd5d962e6429eb23 | 744 | py | Python | klotskigame/exceptions.py | barroca/klotski-solver | 92ade2f5b7c1dc2a1e9974f5cb21bb74d09e1fe8 | [
"MIT"
] | 1 | 2018-11-23T07:17:58.000Z | 2018-11-23T07:17:58.000Z | klotskigame/exceptions.py | barroca/klotski-solver | 92ade2f5b7c1dc2a1e9974f5cb21bb74d09e1fe8 | [
"MIT"
] | null | null | null | klotskigame/exceptions.py | barroca/klotski-solver | 92ade2f5b7c1dc2a1e9974f5cb21bb74d09e1fe8 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
class KlotskiBoardException(Exception):
def __init__(self, piece, kind_message):
message = "Wrong board configuration: {} '{}'".format(kind_message, piece)
super().__init__(message)
class WrongPieceValue(KlotskiBoardException):
def __init__(self, x):
super()... | 26.571429 | 82 | 0.685484 | 77 | 744 | 6.077922 | 0.402597 | 0.074786 | 0.117521 | 0.273504 | 0.367521 | 0.367521 | 0.367521 | 0.367521 | 0 | 0 | 0 | 0.001645 | 0.182796 | 744 | 27 | 83 | 27.555556 | 0.768092 | 0.030914 | 0 | 0.25 | 0 | 0 | 0.164117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c17346e2b41420d6b28931be388f82b6249e50c3 | 603 | py | Python | dataset.py | liangshb/few-shot-text-classification | 3bb2b3e87215ccf0fb6d5b0d436774557ac9ddd0 | [
"Apache-2.0"
] | 45 | 2021-01-31T09:52:38.000Z | 2022-03-30T03:50:04.000Z | dataset.py | liangshb/few-shot-text-classification | 3bb2b3e87215ccf0fb6d5b0d436774557ac9ddd0 | [
"Apache-2.0"
] | 3 | 2021-03-31T08:18:42.000Z | 2022-03-08T07:17:38.000Z | dataset.py | liangshb/few-shot-text-classification | 3bb2b3e87215ccf0fb6d5b0d436774557ac9ddd0 | [
"Apache-2.0"
] | 15 | 2021-02-21T07:33:02.000Z | 2022-03-26T06:14:51.000Z | import torch
import torch.utils.data
from utils import batch_padding
class Dataset(torch.utils.data.Dataset):
def __init__(self, data_dict, pad_idx):
assert len(data_dict['data']) == len(data_dict['target'])
self.data = self._padding(data_dict['data'], pad_idx)
self.target = torch.tensor(d... | 28.714286 | 65 | 0.669983 | 84 | 603 | 4.5 | 0.261905 | 0.126984 | 0.087302 | 0.089947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202322 | 603 | 20 | 66 | 30.15 | 0.785863 | 0 | 0 | 0 | 0 | 0 | 0.043118 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.266667 | false | 0 | 0.2 | 0.2 | 0.733333 | 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 |
c18b6e8337bafce24168b0cac465c878c82415c1 | 558 | py | Python | driver/forms.py | mzazakeith/uber-clone | 02f0be423681be5517182b278176feede1126b7a | [
"MIT"
] | 1 | 2022-01-13T19:31:56.000Z | 2022-01-13T19:31:56.000Z | driver/forms.py | mzazakeith/uber-clone | 02f0be423681be5517182b278176feede1126b7a | [
"MIT"
] | 5 | 2020-02-12T01:28:33.000Z | 2021-06-10T20:44:23.000Z | driver/forms.py | mzazakeith/uber-clone | 02f0be423681be5517182b278176feede1126b7a | [
"MIT"
] | null | null | null | from driver.models import DriverProfile, Car, driver_location, DriverReview
from django import forms
class CreateDriverProfileForm(forms.ModelForm):
class Meta:
model = DriverProfile
exclude = ['user']
class SubmitCarForm(forms.ModelForm):
class Meta:
model = Car
exclude = ['... | 20.666667 | 75 | 0.664875 | 54 | 558 | 6.833333 | 0.37037 | 0.151762 | 0.205962 | 0.249322 | 0.303523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249104 | 558 | 26 | 76 | 21.461538 | 0.880668 | 0 | 0 | 0.388889 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 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 |
c1abe5efd4d8dbc663aeba6658185f6b90260c7a | 3,971 | py | Python | main.py | incherre/program-evolution | aae1b4381e9cd8192cb82fbf055e41ac2e2ae292 | [
"MIT"
] | null | null | null | main.py | incherre/program-evolution | aae1b4381e9cd8192cb82fbf055e41ac2e2ae292 | [
"MIT"
] | null | null | null | main.py | incherre/program-evolution | aae1b4381e9cd8192cb82fbf055e41ac2e2ae292 | [
"MIT"
] | null | null | null | import math
import string
import random
from evolveLib import Evolving
from vmengine import Program
numtostr = lambda x: Program.numtostr(x, Program.bits, False)
# Program options
genSize = 100
keepRatio = 0.25
cutoff = math.floor(genSize*keepRatio)
timeLimit = 1
outputLimit = 50
def fitness(prog):
# This fitness... | 44.122222 | 1,408 | 0.673382 | 391 | 3,971 | 6.826087 | 0.506394 | 0.01686 | 0.015736 | 0.013488 | 0.036718 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35657 | 0.183581 | 3,971 | 89 | 1,409 | 44.617978 | 0.466687 | 0.448502 | 0 | 0.089552 | 0 | 0 | 0.099633 | 0.014233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.074627 | 0 | 0.104478 | 0.19403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c1b73d0b07e65d2b04837af6dad4550132460671 | 458 | py | Python | fpms/modules/pages/utils.py | joshschmelzle/wlanpi-fpms | 0f57519170f8c164aa8420c98ee4a3f63a6673c1 | [
"BSD-3-Clause"
] | null | null | null | fpms/modules/pages/utils.py | joshschmelzle/wlanpi-fpms | 0f57519170f8c164aa8420c98ee4a3f63a6673c1 | [
"BSD-3-Clause"
] | null | null | null | fpms/modules/pages/utils.py | joshschmelzle/wlanpi-fpms | 0f57519170f8c164aa8420c98ee4a3f63a6673c1 | [
"BSD-3-Clause"
] | null | null | null |
class StringFormatter(object):
def __init__(self):
pass
def justify(self, text, width=21):
'''
Inserts spaces between ':' and the remaining of the text to make
sure 'text' is 'width' characters in length.
'''
if len(text) < width:
index = text.find... | 24.105263 | 80 | 0.5131 | 52 | 458 | 4.442308 | 0.615385 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013652 | 0.360262 | 458 | 18 | 81 | 25.444444 | 0.774744 | 0.237991 | 0 | 0 | 0 | 0 | 0.006329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c1d5ea38cb9b8dddecb1e5c823138046dbe52b9f | 230 | py | Python | KahootPY/src/modules/gameReset.py | boiimakillu/KahootPY | c8d7a03a766bf061015a178cd7df2382906f91ae | [
"MIT"
] | null | null | null | KahootPY/src/modules/gameReset.py | boiimakillu/KahootPY | c8d7a03a766bf061015a178cd7df2382906f91ae | [
"MIT"
] | null | null | null | KahootPY/src/modules/gameReset.py | boiimakillu/KahootPY | c8d7a03a766bf061015a178cd7df2382906f91ae | [
"MIT"
] | 1 | 2021-11-25T12:19:27.000Z | 2021-11-25T12:19:27.000Z | def main(self):
def handler(message):
if message["channel"] == "/service/player" and message.get("data") and message["data"].get("id") == 5:
self._emit("GameReset")
self.handlers["gameReset"] = handler
| 38.333333 | 110 | 0.608696 | 28 | 230 | 4.964286 | 0.607143 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.2 | 230 | 5 | 111 | 46 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c1f0276bc35e4d0a5c917ec4295a4033c41d64ee | 590 | py | Python | tests/test_funcs_pure.py | justanr/gonads | 4cd40eae04d3e738443d1232063c762b34784462 | [
"MIT"
] | 19 | 2015-03-21T07:47:15.000Z | 2019-10-05T21:20:36.000Z | tests/test_funcs_pure.py | justanr/gonads | 4cd40eae04d3e738443d1232063c762b34784462 | [
"MIT"
] | 7 | 2015-03-31T14:30:26.000Z | 2017-07-29T15:29:59.000Z | tests/test_funcs_pure.py | justanr/gonads | 4cd40eae04d3e738443d1232063c762b34784462 | [
"MIT"
] | 4 | 2017-10-18T08:07:46.000Z | 2019-10-05T21:20:38.000Z | from pynads.funcs import pure
from pynads.utils import iscallable
from pynads import Just
def test_identity():
assert pure.identity(2) == 2
assert Just(2).fmap(pure.identity) == Just(2)
def test_const():
def inc(x): return x+1
c = pure.const(inc)
assert iscallable(c)
assert c(4) is inc
... | 19.032258 | 53 | 0.632203 | 93 | 590 | 3.892473 | 0.322581 | 0.096685 | 0.066298 | 0.071823 | 0.21547 | 0.082873 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.240678 | 590 | 30 | 54 | 19.666667 | 0.78125 | 0 | 0 | 0.2 | 0 | 0 | 0.050934 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.3 | false | 0 | 0.15 | 0.15 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
de0017e0cd35058b0be615a7a3e531aba21e4eee | 5,958 | py | Python | tracker/migrations/0002_auto_20200819_1245.py | Stephan-e/CSR-tracker | 780ce4c4d4f96a499803b25b3cc9869cfb275566 | [
"MIT"
] | null | null | null | tracker/migrations/0002_auto_20200819_1245.py | Stephan-e/CSR-tracker | 780ce4c4d4f96a499803b25b3cc9869cfb275566 | [
"MIT"
] | null | null | null | tracker/migrations/0002_auto_20200819_1245.py | Stephan-e/CSR-tracker | 780ce4c4d4f96a499803b25b3cc9869cfb275566 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-08-19 12:45
from django.db import migrations, models
import django.db.models.deletion
import enumfields.fields
import tracker.enums
import uuid
class Migration(migrations.Migration):
dependencies = [
('tracker', '0001_initial'),
]
operations = [
migra... | 48.439024 | 182 | 0.578214 | 553 | 5,958 | 6.101266 | 0.169982 | 0.080024 | 0.111144 | 0.11559 | 0.734736 | 0.701245 | 0.687908 | 0.687908 | 0.685536 | 0.625667 | 0 | 0.01238 | 0.28147 | 5,958 | 122 | 183 | 48.836066 | 0.775753 | 0.007553 | 0 | 0.62931 | 1 | 0 | 0.142615 | 0.015733 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043103 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a9b1e2b75882a925e7881fec5513059621454157 | 46 | py | Python | label_studio/__init__.py | kathoum/label-studio | 52361bb695ae6856697558d3584a3ed62f96ec70 | [
"Apache-2.0"
] | null | null | null | label_studio/__init__.py | kathoum/label-studio | 52361bb695ae6856697558d3584a3ed62f96ec70 | [
"Apache-2.0"
] | 3 | 2020-11-02T11:53:17.000Z | 2020-11-13T14:36:40.000Z | label_studio/__init__.py | kathoum/label-studio | 52361bb695ae6856697558d3584a3ed62f96ec70 | [
"Apache-2.0"
] | null | null | null | # Package version
__version__ = '0.7.5.post2'
| 15.333333 | 27 | 0.717391 | 7 | 46 | 4.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.130435 | 46 | 2 | 28 | 23 | 0.625 | 0.326087 | 0 | 0 | 0 | 0 | 0.37931 | 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 |
a9c78b35fbee8271745b6cf876dc3f958d88f760 | 207 | py | Python | photos/serializers.py | Nightlyanon/PortfolioAPI | dde8f2dd72ec57765dad2803db05c3ee59e2592c | [
"MIT"
] | null | null | null | photos/serializers.py | Nightlyanon/PortfolioAPI | dde8f2dd72ec57765dad2803db05c3ee59e2592c | [
"MIT"
] | null | null | null | photos/serializers.py | Nightlyanon/PortfolioAPI | dde8f2dd72ec57765dad2803db05c3ee59e2592c | [
"MIT"
] | null | null | null | from rest_framework import serializers
from photos.models import Photo
#Photo Serializer
class PhotoSerializer(serializers.ModelSerializer):
class Meta:
model = Photo
fields = '__all__'
| 23 | 51 | 0.748792 | 22 | 207 | 6.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198068 | 207 | 8 | 52 | 25.875 | 0.903614 | 0.077295 | 0 | 0 | 0 | 0 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a9c78ef61d2ed4e20d957bf491e3d476d54332d0 | 290 | py | Python | tests/urls.py | s1s5/heavy_celery | 00e3643251158eab5beac3ec443ef6bd50bcf06b | [
"MIT"
] | 1 | 2021-12-16T07:03:14.000Z | 2021-12-16T07:03:14.000Z | tests/urls.py | s1s5/heavy_celery | 00e3643251158eab5beac3ec443ef6bd50bcf06b | [
"MIT"
] | 3 | 2020-02-11T23:25:56.000Z | 2021-06-10T18:49:40.000Z | tests/urls.py | s1s5/heavy_celery | 00e3643251158eab5beac3ec443ef6bd50bcf06b | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from __future__ import unicode_literals, absolute_import
from django.conf.urls import url, include
from heavy_celery.urls import urlpatterns as heavy_celery_urls
urlpatterns = [
url(r'^', include((heavy_celery_urls, 'heavy_celery'), namespace='heavy_celery')),
]
| 26.363636 | 86 | 0.768966 | 39 | 290 | 5.384615 | 0.512821 | 0.261905 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.12069 | 290 | 10 | 87 | 29 | 0.819608 | 0.058621 | 0 | 0 | 0 | 0 | 0.092251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
a9f37248a468e1c6a4227e7c2e17e1a108795801 | 135 | py | Python | dataloaders/ShiningCulture.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | dataloaders/ShiningCulture.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | dataloaders/ShiningCulture.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | # data loader for the CultureCentreDistances dataset
import pandas as pd
shining_culture = pd.read_csv("datasets/ShiningCulture.csv")
| 27 | 60 | 0.822222 | 18 | 135 | 6.055556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 135 | 4 | 61 | 33.75 | 0.908333 | 0.37037 | 0 | 0 | 0 | 0 | 0.325301 | 0.325301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.