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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa05450d1d7c180250bb2871e4b423856e0a8484 | 475 | py | Python | util/repomirror/validator.py | anwarchk/quay | 23c5120790c619174e7d36784ca5aab7f4eece5c | [
"Apache-2.0"
] | 1 | 2021-05-30T01:54:21.000Z | 2021-05-30T01:54:21.000Z | util/repomirror/validator.py | anwarchk/quay | 23c5120790c619174e7d36784ca5aab7f4eece5c | [
"Apache-2.0"
] | 20 | 2019-12-26T17:32:34.000Z | 2022-03-21T22:18:06.000Z | util/repomirror/validator.py | anwarchk/quay | 23c5120790c619174e7d36784ca5aab7f4eece5c | [
"Apache-2.0"
] | 1 | 2020-06-28T07:49:37.000Z | 2020-06-28T07:49:37.000Z | import logging
from util.config.validators import ConfigValidationException
logger = logging.getLogger(__name__)
class RepoMirrorConfigValidator(object):
""" Helper class for validating the repository mirror configuration. """
def __init__(self, feature_repo_mirror):
self._feature_repo_mirror = feature_repo_... | 27.941176 | 74 | 0.791579 | 54 | 475 | 6.611111 | 0.592593 | 0.140056 | 0.190476 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143158 | 475 | 16 | 75 | 29.6875 | 0.87715 | 0.134737 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 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 |
fa0f37075faf0a7debb3d66f8d42b652c81a5310 | 1,244 | py | Python | translate/translator.py | raojinlin/cmd-fanyi | 8d747c31bc706df5771133a7e84fb941d1b11849 | [
"MIT"
] | 1 | 2020-07-04T05:56:01.000Z | 2020-07-04T05:56:01.000Z | translate/translator.py | raojinlin/cmd-fanyi | 8d747c31bc706df5771133a7e84fb941d1b11849 | [
"MIT"
] | null | null | null | translate/translator.py | raojinlin/cmd-fanyi | 8d747c31bc706df5771133a7e84fb941d1b11849 | [
"MIT"
] | null | null | null | # encoding: utf-8
class Translator(object):
"""翻译器抽象类"""
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " \
"Chrome/73.0.3683.86 Safari/537.36 "
def __init__(self):
self.trans_from = 'zh'
self.trans_to = 'en'
def get_r... | 27.043478 | 109 | 0.626206 | 139 | 1,244 | 5.460432 | 0.489209 | 0.071146 | 0.051383 | 0.173913 | 0.256917 | 0.256917 | 0 | 0 | 0 | 0 | 0 | 0.032154 | 0.25 | 1,244 | 45 | 110 | 27.644444 | 0.78135 | 0.082797 | 0 | 0 | 0 | 0.045455 | 0.273897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.045455 | 0 | 0.045455 | 0.590909 | 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 |
fa19d58e3f83c950e1702f2f32d60a234982993d | 292 | py | Python | spotistory/models/artist.py | babastienne/spotistory | 13c5347c8d13a2f4279be99cf97f1cb89a5453d6 | [
"MIT"
] | 4 | 2017-05-06T14:27:20.000Z | 2021-03-28T07:55:34.000Z | spotistory/models/artist.py | babastienne/spotistory | 13c5347c8d13a2f4279be99cf97f1cb89a5453d6 | [
"MIT"
] | 1 | 2017-05-17T18:27:08.000Z | 2019-12-24T18:39:32.000Z | spotistory/models/artist.py | babastienne/spotistory | 13c5347c8d13a2f4279be99cf97f1cb89a5453d6 | [
"MIT"
] | 1 | 2017-05-05T22:16:41.000Z | 2017-05-05T22:16:41.000Z | class Artist:
def __init__(self, artist_id, uri, title):
self.id = artist_id
self.uri = uri
self.title = title
def __str__(self):
return '{} (id={})'.format(self.title, self.id)
def to_tuple(self):
return (self.id, self.uri, self.title)
| 22.461538 | 55 | 0.575342 | 40 | 292 | 3.925 | 0.325 | 0.11465 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284247 | 292 | 12 | 56 | 24.333333 | 0.751196 | 0 | 0 | 0 | 0 | 0 | 0.034247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fa1db66e1c1aa27edcb283c37f829d70c4733998 | 7,338 | py | Python | composition.py | Chiel92/music-arithmetic | 69e1d181aaff2e08c5a97cccf6b1d6a151cb06c8 | [
"MIT"
] | 2 | 2015-05-16T14:32:31.000Z | 2015-05-16T14:51:38.000Z | composition.py | Chiel92/music-arithmetic | 69e1d181aaff2e08c5a97cccf6b1d6a151cb06c8 | [
"MIT"
] | null | null | null | composition.py | Chiel92/music-arithmetic | 69e1d181aaff2e08c5a97cccf6b1d6a151cb06c8 | [
"MIT"
] | null | null | null | """
This module contains the definition of the composition datatype that we use as
intermediate representation for describing musical pieces.
It is flexible enough to contain various types of tone representations, such as
frequencies, symbols and vectors.
"""
from copy import deepcopy
import math
import fractions
from ... | 27.690566 | 84 | 0.596348 | 882 | 7,338 | 4.835601 | 0.198413 | 0.064713 | 0.038687 | 0.029543 | 0.337632 | 0.306917 | 0.247597 | 0.225791 | 0.18007 | 0.120047 | 0 | 0.011372 | 0.292995 | 7,338 | 264 | 85 | 27.795455 | 0.810717 | 0.146907 | 0 | 0.44375 | 0 | 0 | 0.010507 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 1 | 0.2625 | false | 0.025 | 0.03125 | 0.11875 | 0.5375 | 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 |
fa2e37352cab9c5b5ac2cbe24374b59ac3973547 | 1,187 | py | Python | xsdata/formats/bindings.py | gramm/xsdata | 082c780757c6d76a5c31a6757276ef6912901ed2 | [
"MIT"
] | null | null | null | xsdata/formats/bindings.py | gramm/xsdata | 082c780757c6d76a5c31a6757276ef6912901ed2 | [
"MIT"
] | null | null | null | xsdata/formats/bindings.py | gramm/xsdata | 082c780757c6d76a5c31a6757276ef6912901ed2 | [
"MIT"
] | null | null | null | import abc
import io
import pathlib
from typing import Any
from typing import Optional
from typing import Type
from typing import TypeVar
T = TypeVar("T")
class AbstractSerializer(abc.ABC):
@abc.abstractmethod
def render(self, obj: object) -> object:
"""Render the given object to the target output fo... | 33.914286 | 82 | 0.675653 | 164 | 1,187 | 4.865854 | 0.286585 | 0.050125 | 0.080201 | 0.090226 | 0.382206 | 0.382206 | 0.343358 | 0.343358 | 0.180451 | 0 | 0 | 0 | 0.207245 | 1,187 | 34 | 83 | 34.911765 | 0.848034 | 0.262848 | 0 | 0.1 | 0 | 0 | 0.001189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.35 | 0 | 0.85 | 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 |
fa6f849c140e19763bebce3b6efb60ea46161022 | 923 | py | Python | delivery/serializers.py | ITedy/cloudtraining | eff1f320fa5abd1961118bc0fc99aa4f0a7c90cd | [
"MIT"
] | 8 | 2016-09-10T12:18:37.000Z | 2019-04-04T09:33:52.000Z | delivery/serializers.py | Harkirat9711/pizza-time | eff1f320fa5abd1961118bc0fc99aa4f0a7c90cd | [
"MIT"
] | 1 | 2016-10-11T15:26:32.000Z | 2016-10-11T16:34:43.000Z | delivery/serializers.py | Harkirat9711/pizza-time | eff1f320fa5abd1961118bc0fc99aa4f0a7c90cd | [
"MIT"
] | 14 | 2016-10-11T14:00:48.000Z | 2018-10-29T10:48:58.000Z | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from delivery.models import Pizza, Order
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('username', 'id', 'url')
class PizzaSerializer(serializers.Hyperlink... | 29.774194 | 67 | 0.67714 | 87 | 923 | 7.149425 | 0.448276 | 0.237942 | 0.090032 | 0.221865 | 0.38746 | 0.163987 | 0.163987 | 0.163987 | 0.163987 | 0.163987 | 0 | 0 | 0.208017 | 923 | 30 | 68 | 30.766667 | 0.850889 | 0 | 0 | 0.333333 | 0 | 0 | 0.092091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d70671eccf6fa28cfaad5138ee60132e6924ff7c | 420 | py | Python | Educative/Django: Python Web Development Unleashed/django-unleashed-educative/first_app/admin.py | imrande/Django-Projects | fb59d068111448877d0c5ea26824b5b1550be680 | [
"MIT"
] | null | null | null | Educative/Django: Python Web Development Unleashed/django-unleashed-educative/first_app/admin.py | imrande/Django-Projects | fb59d068111448877d0c5ea26824b5b1550be680 | [
"MIT"
] | null | null | null | Educative/Django: Python Web Development Unleashed/django-unleashed-educative/first_app/admin.py | imrande/Django-Projects | fb59d068111448877d0c5ea26824b5b1550be680 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
# Register your models here.
@admin.register(models.Topic)
class TopicAdmin(admin.ModelAdmin):
list_display = ('topic_name',)
@admin.register(models.Webpage)
class WebpageAdmin(admin.ModelAdmin):
list_display = ('topic', 'name')
@admin.register(mode... | 28 | 43 | 0.75 | 49 | 420 | 6.326531 | 0.44898 | 0.125806 | 0.183871 | 0.251613 | 0.348387 | 0.348387 | 0.348387 | 0.348387 | 0.348387 | 0 | 0 | 0 | 0.12381 | 420 | 15 | 44 | 28 | 0.842391 | 0.061905 | 0 | 0 | 0 | 0 | 0.087071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.727273 | 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 |
d7170868cc1b9d3bc6e827230066b9b562e8f3c3 | 30 | py | Python | tests/testapp1/__init__.py | jayvdb/python-app-loader | e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c | [
"BSD-3-Clause"
] | null | null | null | tests/testapp1/__init__.py | jayvdb/python-app-loader | e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c | [
"BSD-3-Clause"
] | 5 | 2016-01-07T14:57:39.000Z | 2016-09-14T22:17:41.000Z | tests/testapp1/__init__.py | jayvdb/python-app-loader | e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c | [
"BSD-3-Clause"
] | 1 | 2020-01-15T12:28:37.000Z | 2020-01-15T12:28:37.000Z |
LEONARDO_APPS = ['testapp1']
| 10 | 28 | 0.7 | 3 | 30 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.133333 | 30 | 2 | 29 | 15 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 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 |
d71d57d627a96554e6fcf57814ab56280a0a6ff9 | 987 | py | Python | mozi_cross_val/filters/overfitness_filters.py | Habush/moses-crossval | 46c5d878e1ab293cfba3973b7fb7403e8a0fb723 | [
"MIT"
] | null | null | null | mozi_cross_val/filters/overfitness_filters.py | Habush/moses-crossval | 46c5d878e1ab293cfba3973b7fb7403e8a0fb723 | [
"MIT"
] | null | null | null | mozi_cross_val/filters/overfitness_filters.py | Habush/moses-crossval | 46c5d878e1ab293cfba3973b7fb7403e8a0fb723 | [
"MIT"
] | null | null | null | __author__ = 'Abdulrahman Semrie<hsamireh@gmail.com>'
from mozi_cross_val.filters.base_filter import BaseFilter
class AccuracyFilter(BaseFilter):
def cut_off(self, models, value):
return list(filter(lambda k : k.train_score.accuracy - k.test_score.accuracy <= value, models))
class PrecisionFilter(Base... | 29.909091 | 105 | 0.719352 | 139 | 987 | 4.920863 | 0.280576 | 0.095029 | 0.116959 | 0.138889 | 0.497076 | 0.497076 | 0.497076 | 0.497076 | 0.497076 | 0.497076 | 0 | 0.003641 | 0.165147 | 987 | 33 | 106 | 29.909091 | 0.826456 | 0 | 0 | 0.294118 | 0 | 0 | 0.038462 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.294118 | 0.941176 | 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 |
d735d08199525f4735a367d8252ea22fb2e06596 | 146 | py | Python | setup.py | Lukas-Dresel/customassert | df3c3031577730c6c23391518f42db5c8764167f | [
"BSD-2-Clause"
] | null | null | null | setup.py | Lukas-Dresel/customassert | df3c3031577730c6c23391518f42db5c8764167f | [
"BSD-2-Clause"
] | null | null | null | setup.py | Lukas-Dresel/customassert | df3c3031577730c6c23391518f42db5c8764167f | [
"BSD-2-Clause"
] | null | null | null | from distutils.core import setup
setup(
name='customassert',
version='1.0.0.0',
packages=['customassert'],
install_requires=[]
)
| 16.222222 | 32 | 0.657534 | 17 | 146 | 5.588235 | 0.764706 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.184932 | 146 | 8 | 33 | 18.25 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.213793 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d73b304376e2d14ada8f74ce4c505a48513f3ff5 | 222 | py | Python | code-exercises-etc/section_09_(functions)/ajm.func4-fileopen.20160117.py | hannahkwarren/CLaG-Sp2016 | a75862d187176d9f2f1778eb6300056364292b44 | [
"MIT"
] | null | null | null | code-exercises-etc/section_09_(functions)/ajm.func4-fileopen.20160117.py | hannahkwarren/CLaG-Sp2016 | a75862d187176d9f2f1778eb6300056364292b44 | [
"MIT"
] | null | null | null | code-exercises-etc/section_09_(functions)/ajm.func4-fileopen.20160117.py | hannahkwarren/CLaG-Sp2016 | a75862d187176d9f2f1778eb6300056364292b44 | [
"MIT"
] | null | null | null | def textfile_to_string(filename_with_path):
with open(filename_with_path, "r") as the_file:
the_text = the_file.read()
return the_text
file_contents = textfile_to_string('lessons.txt')
print file_contents
| 22.2 | 51 | 0.761261 | 34 | 222 | 4.558824 | 0.558824 | 0.129032 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153153 | 222 | 9 | 52 | 24.666667 | 0.824468 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d751f1606b43d888ddcab21a7edc79e306106bd4 | 106 | py | Python | qtoggleserver/mppsolar/commands/psdv.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | 1 | 2021-11-30T01:04:37.000Z | 2021-11-30T01:04:37.000Z | qtoggleserver/mppsolar/commands/psdv.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | null | null | null | qtoggleserver/mppsolar/commands/psdv.py | qtoggle/qtoggleserver-mppsolar | cc3a68f3ba9f5695946989ea5fa32364c5e28f70 | [
"Apache-2.0"
] | null | null | null |
from .base import Command
class PSDV(Command):
REQUEST_FMT = 'PSDV{battery_cut_off_voltage:04.1f}'
| 15.142857 | 55 | 0.745283 | 16 | 106 | 4.6875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.150943 | 106 | 6 | 56 | 17.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 |
d7557f8b8babd42a22a42b24dfe7fa9759c68799 | 270 | py | Python | Task1.py | BeenashPervaiz/Command_Line_Task | a603fbdd06717ff157ecd72881d08329413fd82c | [
"MIT"
] | null | null | null | Task1.py | BeenashPervaiz/Command_Line_Task | a603fbdd06717ff157ecd72881d08329413fd82c | [
"MIT"
] | null | null | null | Task1.py | BeenashPervaiz/Command_Line_Task | a603fbdd06717ff157ecd72881d08329413fd82c | [
"MIT"
] | null | null | null | #task1: print the \\ double backslash
print("This is \\\\ double backslash")
#task2: print the mountains
print ("this is /\\/\\/\\/\\/\\ mountain")
#task3:he is awesome(using escape sequence)
print ("he is \t awesome")
#task4: \" \n \t \'
print ("\\\" \\n \\t \\\'") | 33.75 | 46 | 0.596296 | 36 | 270 | 4.472222 | 0.527778 | 0.099379 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0.159259 | 270 | 8 | 47 | 33.75 | 0.69163 | 0.462963 | 0 | 0 | 0 | 0 | 0.567376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d75a7fafcf0a3326ce9e4cddd5cc898de5b24cc2 | 138 | py | Python | SpeedTest.py | MrRouhi/Speedtest-by-python | 1294ff471560408293508631a7790fa171951d64 | [
"Apache-2.0"
] | null | null | null | SpeedTest.py | MrRouhi/Speedtest-by-python | 1294ff471560408293508631a7790fa171951d64 | [
"Apache-2.0"
] | null | null | null | SpeedTest.py | MrRouhi/Speedtest-by-python | 1294ff471560408293508631a7790fa171951d64 | [
"Apache-2.0"
] | null | null | null | from speedtest import Speedtest
obj = Speedtest()
print(f'Download Speed : {obj.download()}')
print(f'Upload Speed : {obj.upload()}') | 27.6 | 44 | 0.695652 | 18 | 138 | 5.333333 | 0.5 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137681 | 138 | 5 | 45 | 27.6 | 0.806723 | 0 | 0 | 0 | 0 | 0 | 0.459259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
d7672f723c53a7f8dbcf32dbe0dcb1b10b06c4c0 | 1,211 | py | Python | dataworkspace/dataworkspace/apps/datasets/migrations/0050_auto_20200805_1226.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | 1 | 2019-06-10T08:22:56.000Z | 2019-06-10T08:22:56.000Z | dataworkspace/dataworkspace/apps/datasets/migrations/0050_auto_20200805_1226.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | 2 | 2019-05-17T13:10:42.000Z | 2019-06-17T10:48:46.000Z | dataworkspace/dataworkspace/apps/datasets/migrations/0050_auto_20200805_1226.py | uktrade/jupyterhub-data-auth-admin | 91544f376209a201531f4dbfb8faad1b8ada18c9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-05 12:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("datasets", "0049_auto_20200610_1007"),
]
operations = [
migrations.AlterField(
model_name="sourcetable",
name="frequ... | 26.326087 | 48 | 0.369116 | 87 | 1,211 | 5.08046 | 0.563218 | 0.090498 | 0.113122 | 0.131222 | 0.479638 | 0.479638 | 0.479638 | 0.479638 | 0.479638 | 0.479638 | 0 | 0.080992 | 0.500413 | 1,211 | 45 | 49 | 26.911111 | 0.649587 | 0.037159 | 0 | 0.769231 | 1 | 0 | 0.146048 | 0.019759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d76c1a512e5e56596363898040108c19c779c418 | 745 | py | Python | test/1.py | sunsyw/utils | 675fcdcfa47b37ec938631f1cc5f8c99b0a92fb3 | [
"Apache-2.0"
] | null | null | null | test/1.py | sunsyw/utils | 675fcdcfa47b37ec938631f1cc5f8c99b0a92fb3 | [
"Apache-2.0"
] | null | null | null | test/1.py | sunsyw/utils | 675fcdcfa47b37ec938631f1cc5f8c99b0a92fb3 | [
"Apache-2.0"
] | null | null | null | import sympy
x = sympy.Symbol('x')
n = 0
# print(sympy.solve(((((((x-1)/5*4-1)*5/4-1)*5/4-1)*5/4-1)*5/4-4),x))
while True:
a = sympy.solve(((((((x - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - 1) / 5 * 4 - n), x)
# a = sympy.solve((x-1)/5*4-4)
if a[0].is_integer:
break
n += 1
print... | 24.032258 | 101 | 0.444295 | 148 | 745 | 2.222973 | 0.182432 | 0.12766 | 0.191489 | 0.194529 | 0.361702 | 0.361702 | 0.361702 | 0.267477 | 0.267477 | 0.267477 | 0 | 0.143898 | 0.263087 | 745 | 30 | 102 | 24.833333 | 0.455373 | 0.608054 | 0 | 0.181818 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.272727 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d77c370b109f64eff8d2b637c46094f70aa8b85e | 7,355 | py | Python | graphnn/transformer.py | nextBillyonair/GraphNN | 5d0601b8dc8dc61dcdb6af51eb17b536995a178c | [
"MIT"
] | null | null | null | graphnn/transformer.py | nextBillyonair/GraphNN | 5d0601b8dc8dc61dcdb6af51eb17b536995a178c | [
"MIT"
] | null | null | null | graphnn/transformer.py | nextBillyonair/GraphNN | 5d0601b8dc8dc61dcdb6af51eb17b536995a178c | [
"MIT"
] | null | null | null | import torch
from torch.nn import Module, Linear, Dropout, LayerNorm
import torch.nn.functional as F
from .multihead_attention import MultiheadAttention
from .residual import AdditiveResidual, GeneralResidual, DotResidual
class Transformer(Module):
r"""Transformer is made up of self-attn and feedforward network. ... | 41.789773 | 98 | 0.632767 | 916 | 7,355 | 4.946507 | 0.14083 | 0.035754 | 0.021187 | 0.02207 | 0.77356 | 0.732289 | 0.713529 | 0.692342 | 0.645553 | 0.645553 | 0 | 0.018695 | 0.27274 | 7,355 | 175 | 99 | 42.028571 | 0.828379 | 0.34847 | 0 | 0.511111 | 0 | 0 | 0.008705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.055556 | 0 | 0.188889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d780467fdbf6ccba3e65a5b06058f0625f5a8bb5 | 1,741 | py | Python | pyiArduinoI2Cmatrix/examples/5PrintChar.py | tremaru/pyiArduinoI2Cmatrix | 76cbe92c725d04ebf88bd0a46e1170b9bde55207 | [
"MIT"
] | null | null | null | pyiArduinoI2Cmatrix/examples/5PrintChar.py | tremaru/pyiArduinoI2Cmatrix | 76cbe92c725d04ebf88bd0a46e1170b9bde55207 | [
"MIT"
] | null | null | null | pyiArduinoI2Cmatrix/examples/5PrintChar.py | tremaru/pyiArduinoI2Cmatrix | 76cbe92c725d04ebf88bd0a46e1170b9bde55207 | [
"MIT"
] | null | null | null | # Данный пример выводит символы.
#
from pyiArduinoI2Cmatrix import * # Подключаем библиотеку (модуль python) для работы с LED матрицей 8x8.
from time import sleep # Импортируем функцию ожидания
disp = pyiArduinoI2Cmatrix(0x09) # Объявляем объ... | 56.16129 | 110 | 0.398047 | 131 | 1,741 | 5.290076 | 0.51145 | 0.116883 | 0.233766 | 0.242424 | 0.431457 | 0.431457 | 0.11544 | 0.11544 | 0.11544 | 0 | 0 | 0.045455 | 0.532453 | 1,741 | 30 | 111 | 58.033333 | 0.805897 | 0.298679 | 0 | 0.4 | 0 | 0 | 0.007563 | 0 | 0 | 0 | 0.003361 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.36 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d791365d9143ac7d5be5687c74bbd44af71cc7a3 | 189 | py | Python | tools/__init__.py | depp/chaostomb | 6ccbfe91b9675eb6dc4cf264bc34bddd593a688e | [
"BSD-2-Clause"
] | 4 | 2015-04-26T00:08:40.000Z | 2018-12-20T01:01:22.000Z | tools/__init__.py | depp/chaostomb | 6ccbfe91b9675eb6dc4cf264bc34bddd593a688e | [
"BSD-2-Clause"
] | 1 | 2018-12-19T18:09:27.000Z | 2018-12-20T00:51:01.000Z | tools/__init__.py | depp/chaostomb | 6ccbfe91b9675eb6dc4cf264bc34bddd593a688e | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2015 Dietrich Epp.
#
# This file is part of Chaos Tomb. The Chaos Tomb source code is
# distributed under the terms of the 2-clause BSD license.
# See LICENSE.txt for details.
| 31.5 | 65 | 0.751323 | 32 | 189 | 4.4375 | 0.78125 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03268 | 0.190476 | 189 | 5 | 66 | 37.8 | 0.895425 | 0.941799 | 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 |
d7984a92d9cb470ce977fb2eb7994c94badc31db | 205 | py | Python | MyRickyDL/rickydl.py | luckyandricky/MyRickyDL | f71a6c113946636b6c13c784af55d1a9f02be916 | [
"MIT"
] | null | null | null | MyRickyDL/rickydl.py | luckyandricky/MyRickyDL | f71a6c113946636b6c13c784af55d1a9f02be916 | [
"MIT"
] | null | null | null | MyRickyDL/rickydl.py | luckyandricky/MyRickyDL | f71a6c113946636b6c13c784af55d1a9f02be916 | [
"MIT"
] | null | null | null |
from . import kernel
from . import operate
from . import optimizer
default_cal = kernel.def_cal
get_node_from_graph = kernel.get_node_from_graph
name_scope = kernel.Name_Scope
Variable = kernel.Variable
| 20.5 | 48 | 0.819512 | 31 | 205 | 5.096774 | 0.451613 | 0.189873 | 0.139241 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126829 | 205 | 9 | 49 | 22.777778 | 0.882682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ad112af2e0a9aa106837fb39b9e5891908c10c0b | 900 | py | Python | unittest/python/tests.py | matthieuvigne/pinocchio | 01f211eceda3ac2e5edc8cf101690afb6f3184d3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-06-22T15:42:45.000Z | 2021-06-22T15:42:45.000Z | unittest/python/tests.py | matthieuvigne/pinocchio | 01f211eceda3ac2e5edc8cf101690afb6f3184d3 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unittest/python/tests.py | matthieuvigne/pinocchio | 01f211eceda3ac2e5edc8cf101690afb6f3184d3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-03-21T09:14:26.000Z | 2021-03-21T09:14:26.000Z | #!/usr/bin/env python
from __future__ import print_function
import unittest, sys
from bindings import TestSE3 # TODO: probably remove and move/split its contents
from bindings_SE3 import TestSE3Bindings
from bindings_force import TestForceBindings
from bindings_motion import TestMotionBindings
from bindings_inertia... | 33.333333 | 81 | 0.86 | 106 | 900 | 7.037736 | 0.528302 | 0.176944 | 0.053619 | 0.069705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.113333 | 900 | 26 | 82 | 34.615385 | 0.931078 | 0.077778 | 0 | 0 | 0 | 0 | 0.02657 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0 | true | 0 | 0.809524 | 0 | 0.809524 | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ad15210a4be064d095243e6d0032830447c1d1e9 | 1,428 | py | Python | PyFlow/Packages/PyFlowPyrr/Pins/Matrix44Pin.py | IlgarLunin/PyFlowPyrr | 171c376664ad269435e74da9b5da1d06210ad5fe | [
"MIT"
] | null | null | null | PyFlow/Packages/PyFlowPyrr/Pins/Matrix44Pin.py | IlgarLunin/PyFlowPyrr | 171c376664ad269435e74da9b5da1d06210ad5fe | [
"MIT"
] | null | null | null | PyFlow/Packages/PyFlowPyrr/Pins/Matrix44Pin.py | IlgarLunin/PyFlowPyrr | 171c376664ad269435e74da9b5da1d06210ad5fe | [
"MIT"
] | null | null | null | from pyrr import Matrix44
import json
from PyFlow.Core import PinBase
from PyFlow.Core.Common import *
class M44Encoder(json.JSONEncoder):
def default(self, m44):
if isinstance(m44, Matrix44):
return {Matrix44.__name__: m44.tolist()}
json.JSONEncoder.default(self, m44)
class M44Deco... | 23.8 | 87 | 0.666667 | 140 | 1,428 | 6.607143 | 0.371429 | 0.12973 | 0.074595 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053636 | 0.229692 | 1,428 | 59 | 88 | 24.20339 | 0.787273 | 0.018207 | 0 | 0.190476 | 0 | 0 | 0.015759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0.214286 | 0.690476 | 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 |
ad36cbf6c25ff6dd3d08431ace192dfd63e72de4 | 1,229 | py | Python | test_game_of_greed.py | rgvh/game-of-greed | f48c2f8707c95a7d38e70f358566670a91fa176d | [
"MIT"
] | null | null | null | test_game_of_greed.py | rgvh/game-of-greed | f48c2f8707c95a7d38e70f358566670a91fa176d | [
"MIT"
] | null | null | null | test_game_of_greed.py | rgvh/game-of-greed | f48c2f8707c95a7d38e70f358566670a91fa176d | [
"MIT"
] | null | null | null | from game_of_greed import
# test_zilch - non scoring roll should return 0
def test_zilch():
expected = 0
actual = round_score(0)
assert expected == actual
# test_ones - rolls with various number of 1s should return correct score
def test_ones():
expected = 100
# test_twos - rolls with various ... | 29.261905 | 124 | 0.74939 | 199 | 1,229 | 4.512563 | 0.336683 | 0.173719 | 0.232739 | 0.293987 | 0.581292 | 0.233853 | 0.115813 | 0.115813 | 0.115813 | 0.115813 | 0 | 0.029652 | 0.204231 | 1,229 | 41 | 125 | 29.97561 | 0.888548 | 0.769731 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | null | null | 0 | 0.090909 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad5b18fb9842a570df78c27cef00bb2e88311522 | 138 | py | Python | dosed/models/__init__.py | haberdashPI/dosed | 86348441ecec18bf12887a40d2fd873538d376a2 | [
"MIT"
] | 40 | 2019-04-12T16:18:40.000Z | 2022-03-02T07:03:58.000Z | dosed/models/__init__.py | haberdashPI/dosed | 86348441ecec18bf12887a40d2fd873538d376a2 | [
"MIT"
] | 5 | 2019-10-28T14:19:20.000Z | 2021-08-19T07:43:41.000Z | dosed/models/__init__.py | haberdashPI/dosed | 86348441ecec18bf12887a40d2fd873538d376a2 | [
"MIT"
] | 15 | 2019-04-13T22:14:42.000Z | 2022-02-27T14:57:38.000Z | from .dosed1 import DOSED1
from .dosed2 import DOSED2
from .dosed3 import DOSED3
__all__ = [
"DOSED1",
"DOSED2",
"DOSED3",
]
| 13.8 | 26 | 0.65942 | 16 | 138 | 5.4375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084906 | 0.231884 | 138 | 9 | 27 | 15.333333 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
ad684b1ca1bf58268f74e9345662e066e3143cb6 | 628 | py | Python | app/site/view.py | DaveLanday/Flask_Bulma_boilerplate | 40a493dc7765f2e6a37c689e80cebc7f0a0d0394 | [
"MIT"
] | null | null | null | app/site/view.py | DaveLanday/Flask_Bulma_boilerplate | 40a493dc7765f2e6a37c689e80cebc7f0a0d0394 | [
"MIT"
] | null | null | null | app/site/view.py | DaveLanday/Flask_Bulma_boilerplate | 40a493dc7765f2e6a37c689e80cebc7f0a0d0394 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*-coding: utf-8 -*-
#views.py
#Dave Landay
#LAST UPDATED: 01-09-2020
from flask import Blueprint, url_for, render_template
mod = Blueprint('site', __name__, template_folder='templates')
# Routes to the homepage:
@mod.route('/')
def index():
return render_template('index.html')
# Route... | 19.625 | 62 | 0.69586 | 89 | 628 | 4.786517 | 0.47191 | 0.164319 | 0.103286 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.144904 | 628 | 31 | 63 | 20.258065 | 0.776536 | 0.296178 | 0 | 0 | 0 | 0 | 0.171296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.285714 | 0.642857 | 0.142857 | 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 |
ad72fcb206224b55d0c247f4f4dfb4b0dc81aaa0 | 315 | py | Python | src/healthvaultlib/methods/method.py | rajeevs1992/pyhealthvault | 2b6fa7c1687300bcc2e501368883fbb13dc80495 | [
"MIT"
] | 1 | 2015-12-19T09:09:15.000Z | 2015-12-19T09:09:15.000Z | src/healthvaultlib/methods/method.py | rajeevs1992/pyhealthvault | 2b6fa7c1687300bcc2e501368883fbb13dc80495 | [
"MIT"
] | 6 | 2015-12-19T07:53:44.000Z | 2021-12-13T19:35:10.000Z | src/healthvaultlib/methods/method.py | rajeevs1992/pyhealthvault | 2b6fa7c1687300bcc2e501368883fbb13dc80495 | [
"MIT"
] | 2 | 2018-02-20T08:34:50.000Z | 2018-03-28T14:29:52.000Z | from healthvaultlib.helpers.requestmanager import RequestManager
class Method:
def __init__(self, request, response):
self.request = request
self.response = response
def execute(self, connection):
requestmgr = RequestManager(self, connection)
requestmgr.makerequest()
| 26.25 | 64 | 0.701587 | 29 | 315 | 7.482759 | 0.551724 | 0.101382 | 0.221198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225397 | 315 | 11 | 65 | 28.636364 | 0.889344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad841cec97cdc0e8350d96964cb9ae090d540faf | 412 | py | Python | gunicorn/metrics/worker_stats.py | smpio/gunicorn | c2f171a985cc0980532683eb108fabc5410da439 | [
"MIT"
] | null | null | null | gunicorn/metrics/worker_stats.py | smpio/gunicorn | c2f171a985cc0980532683eb108fabc5410da439 | [
"MIT"
] | null | null | null | gunicorn/metrics/worker_stats.py | smpio/gunicorn | c2f171a985cc0980532683eb108fabc5410da439 | [
"MIT"
] | 1 | 2021-04-01T12:38:40.000Z | 2021-04-01T12:38:40.000Z | import time
class WorkerStats(object):
def __init__(self):
self.idle_time_sum = 0
self.request_started_at = time.time()
self.request_ended_at = time.time()
def start_request(self):
self.request_started_at = time.time()
self.idle_time_sum += self.request_started_at - se... | 25.75 | 77 | 0.674757 | 57 | 412 | 4.491228 | 0.298246 | 0.257813 | 0.15625 | 0.234375 | 0.4375 | 0.4375 | 0.25 | 0 | 0 | 0 | 0 | 0.003145 | 0.228155 | 412 | 15 | 78 | 27.466667 | 0.801887 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad9bdc9c122e0de10b179d0cd99f26d908ff08e1 | 35 | py | Python | py_social/__init__.py | movermeyer/py-social | 3dc351c7b70c9d27593ef9a3dbe5cb5f07d1add6 | [
"Apache-2.0",
"MIT"
] | null | null | null | py_social/__init__.py | movermeyer/py-social | 3dc351c7b70c9d27593ef9a3dbe5cb5f07d1add6 | [
"Apache-2.0",
"MIT"
] | null | null | null | py_social/__init__.py | movermeyer/py-social | 3dc351c7b70c9d27593ef9a3dbe5cb5f07d1add6 | [
"Apache-2.0",
"MIT"
] | 1 | 2018-03-05T01:08:11.000Z | 2018-03-05T01:08:11.000Z | # coding: utf-8
VERSION = '0.1.9'
| 8.75 | 17 | 0.571429 | 7 | 35 | 2.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.2 | 35 | 3 | 18 | 11.666667 | 0.571429 | 0.371429 | 0 | 0 | 0 | 0 | 0.25 | 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 |
a8dc59a205adadba3d272efd7d17d2e5130f4e99 | 317 | py | Python | yahtzee/__main__.py | pmacking/tutorial-yahtzee-app | 0be148665892dd2cb4d0e98f2afce9535bc80fce | [
"MIT"
] | null | null | null | yahtzee/__main__.py | pmacking/tutorial-yahtzee-app | 0be148665892dd2cb4d0e98f2afce9535bc80fce | [
"MIT"
] | 2 | 2021-06-08T21:53:09.000Z | 2021-09-08T02:14:00.000Z | yahtzee/__main__.py | pmacking/tutorial-yahtzee-app | 0be148665892dd2cb4d0e98f2afce9535bc80fce | [
"MIT"
] | null | null | null | """
Main module of the server file.
"""
from yahtzee import app
from yahtzee.users.routes import users
from yahtzee.main.routes import main
from yahtzee.errors.handlers import errors
app.register_blueprint(users)
app.register_blueprint(main)
app.register_blueprint(errors)
if __name__ == "__main__":
app.run()
| 19.8125 | 42 | 0.782334 | 45 | 317 | 5.266667 | 0.422222 | 0.185654 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123028 | 317 | 15 | 43 | 21.133333 | 0.852518 | 0.097792 | 0 | 0 | 0 | 0 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.444444 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a8e883d5cbf34d8f2a5c6a926852e781096330cf | 1,332 | py | Python | stubs.min/Autodesk/Revit/DB/Analysis_parts/gbXMLConditionType.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/Autodesk/Revit/DB/Analysis_parts/gbXMLConditionType.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/DB/Analysis_parts/gbXMLConditionType.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class gbXMLConditionType(Enum,IComparable,IFormattable,IConvertible):
"""
This enumeration corresponds to the conditionType attribute in gbXML.
The enumerated attribute identifies the type of heating,cooling,
or ventilation the space has.
enum gbXMLConditionType,values: Cooled (1),Heated (0),Heat... | 31.714286 | 215 | 0.701201 | 164 | 1,332 | 5.115854 | 0.414634 | 0.095352 | 0.100119 | 0.107271 | 0.153754 | 0.153754 | 0.153754 | 0.134684 | 0.134684 | 0.134684 | 0 | 0.007181 | 0.163664 | 1,332 | 41 | 216 | 32.487805 | 0.745961 | 0.506006 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a8eb0e88297fb92354bc2a44658af92dfb20f29a | 1,315 | py | Python | test/jpypetest/test_repr.py | baztian/jpype | 034d44e6c719995c25e9cd61348ebc1860030a9b | [
"Apache-2.0"
] | null | null | null | test/jpypetest/test_repr.py | baztian/jpype | 034d44e6c719995c25e9cd61348ebc1860030a9b | [
"Apache-2.0"
] | null | null | null | test/jpypetest/test_repr.py | baztian/jpype | 034d44e6c719995c25e9cd61348ebc1860030a9b | [
"Apache-2.0"
] | null | null | null | import jpype
from jpype.types import *
from jpype import JPackage, java
import common
class ReprTestCase(common.JPypeTestCase):
def setUp(self):
common.JPypeTestCase.setUp(self)
def testClass(self):
cls = JClass("java.lang.String")
self.assertIsInstance(str(cls), str)
self.as... | 29.886364 | 54 | 0.644867 | 149 | 1,315 | 5.651007 | 0.328859 | 0.285036 | 0.163895 | 0.192399 | 0.061758 | 0.061758 | 0 | 0 | 0 | 0 | 0 | 0.002973 | 0.2327 | 1,315 | 43 | 55 | 30.581395 | 0.831516 | 0 | 0 | 0.058824 | 0 | 0 | 0.068441 | 0.01673 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.205882 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d1312543db0469bd05c667b7e1fa15716ae9e727 | 248 | py | Python | Python POO/Cursopythonyt/drunk.py | lucasjlgc/Python-POO | 56c98e7abb47a0268396f1981e58a0a2441db4fe | [
"MIT"
] | null | null | null | Python POO/Cursopythonyt/drunk.py | lucasjlgc/Python-POO | 56c98e7abb47a0268396f1981e58a0a2441db4fe | [
"MIT"
] | null | null | null | Python POO/Cursopythonyt/drunk.py | lucasjlgc/Python-POO | 56c98e7abb47a0268396f1981e58a0a2441db4fe | [
"MIT"
] | null | null | null | from bebado import Bebado
p1=Bebado('Carlos',23)
p1.beber('Cerveja')
p1.parar_beber('cerveja')
p1.parar_beber('cerveja')
p1.beber('Whisky')
p1.brigar('Chutes')
p1.parar_beber('Whisky')
p1.brigar('Chutes')
#print(f'{p1.nome} tem {p1.idade} anos ') | 20.666667 | 41 | 0.717742 | 40 | 248 | 4.375 | 0.45 | 0.205714 | 0.24 | 0.217143 | 0.582857 | 0.297143 | 0.297143 | 0 | 0 | 0 | 0 | 0.052174 | 0.072581 | 248 | 12 | 41 | 20.666667 | 0.708696 | 0.16129 | 0 | 0.444444 | 0 | 0 | 0.245192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
d1343ea8c85d1fd2695764e2b217ca9135fbc32a | 192 | py | Python | PMMH/apps/game/battlefield/urls.py | metinberkkaratas/ProjectMagic-MightofHeroes | 578697e637aba0f18b4f83762bf1c87fb20db2ee | [
"MIT"
] | null | null | null | PMMH/apps/game/battlefield/urls.py | metinberkkaratas/ProjectMagic-MightofHeroes | 578697e637aba0f18b4f83762bf1c87fb20db2ee | [
"MIT"
] | 4 | 2021-03-19T02:37:45.000Z | 2022-02-10T11:18:04.000Z | PMMH/apps/game/battlefield/urls.py | metinberkkaratas/ProjectMagic-MightofHeroes | 578697e637aba0f18b4f83762bf1c87fb20db2ee | [
"MIT"
] | 1 | 2019-10-21T20:32:20.000Z | 2019-10-21T20:32:20.000Z | from django.urls import path
from . import views
urlpatterns = [
path('ground', views.battle_ground, name='Ground Battle'),
path('naval', views.battle_naval, name='Naval Battle'),
]
| 21.333333 | 62 | 0.703125 | 25 | 192 | 5.32 | 0.44 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 192 | 8 | 63 | 24 | 0.820988 | 0 | 0 | 0 | 0 | 0 | 0.188482 | 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 |
d14a5a719a4cc3c4107a2c984cc52aa63edc1a41 | 340 | py | Python | ACM ICPC/Math/TowerofHanoi/t-hanoi.py | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | ACM ICPC/Math/TowerofHanoi/t-hanoi.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | ACM ICPC/Math/TowerofHanoi/t-hanoi.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | c = int()
def hanoi(discs, main, target, aux):
global c
if discs >= 1:
c = c + 1
hanoi(discs - 1, main, aux, target)
print("[{}] -> Move disc {} from {} to {}".format(c, discs, main, target))
hanoi(discs - 1, aux, target, main)
if __name__ == "__main__":
discs = int(input())
hanoi(discs, "mai... | 24.285714 | 78 | 0.561765 | 49 | 340 | 3.734694 | 0.387755 | 0.218579 | 0.245902 | 0.218579 | 0.251366 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.235294 | 340 | 14 | 79 | 24.285714 | 0.688462 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.090909 | 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 |
d14aad895aa1ab2d43330b677dee78f21d229e8d | 927 | py | Python | DQM/EcalPreshowerMonitorModule/python/EcalPreshowerMonitorTasks_withFEDIntegrity_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/EcalPreshowerMonitorModule/python/EcalPreshowerMonitorTasks_withFEDIntegrity_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/EcalPreshowerMonitorModule/python/EcalPreshowerMonitorTasks_withFEDIntegrity_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from DQM.EcalPreshowerMonitorModule.ESRawDataTask_cfi import *
from DQM.EcalPreshowerMonitorModule.ESIntegrityTask_cfi import *
from DQM.EcalPreshowerMonitorModule.ESFEDIntegrityTask_cfi import *
#from DQM.EcalPreshowerMonitorModule.ESPedestalTask_cfi import *
from DQM.EcalPres... | 51.5 | 182 | 0.839266 | 69 | 927 | 11.188406 | 0.478261 | 0.054404 | 0.256477 | 0.103627 | 0.272021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 927 | 17 | 183 | 54.529412 | 0.932367 | 0.177994 | 0 | 0 | 0 | 0 | 0.032938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d150f23eb0930c78fbbd9327527d8ac972aa58a3 | 60 | py | Python | geotrek/trekking/__init__.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 50 | 2016-10-19T23:01:21.000Z | 2022-03-28T08:28:34.000Z | geotrek/trekking/__init__.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 1,422 | 2016-10-27T10:39:40.000Z | 2022-03-31T13:37:10.000Z | geotrek/trekking/__init__.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 46 | 2016-10-27T10:59:10.000Z | 2022-03-22T15:55:56.000Z | default_app_config = 'geotrek.trekking.apps.TrekkingConfig'
| 30 | 59 | 0.85 | 7 | 60 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 60 | 1 | 60 | 60 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.6 | 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 |
d1637f863593a9e1adc420f7db46601da9790e70 | 111 | py | Python | rate_severity_of_toxic_comments/__init__.py | ilSommo/rate-severity-of-toxic-comments | c0c28475c4d83eeeea72012df6911fc10ba0edbf | [
"MIT"
] | 1 | 2022-02-25T18:37:02.000Z | 2022-02-25T18:37:02.000Z | rate_severity_of_toxic_comments/__init__.py | ilSommo/rate-severity-of-toxic-comments | c0c28475c4d83eeeea72012df6911fc10ba0edbf | [
"MIT"
] | null | null | null | rate_severity_of_toxic_comments/__init__.py | ilSommo/rate-severity-of-toxic-comments | c0c28475c4d83eeeea72012df6911fc10ba0edbf | [
"MIT"
] | null | null | null | __version__ = '1.0.0-rc.1'
__author__ = 'Lorenzo Menghini, Martino Pulici, Alessandro Stockman, Luca Zucchini'
| 37 | 83 | 0.765766 | 15 | 111 | 5.133333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.117117 | 111 | 2 | 84 | 55.5 | 0.744898 | 0 | 0 | 0 | 0 | 0 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d1647f02cd0ce31ce5e58ceba7cc72b1ca175bc4 | 490 | py | Python | quadmodel/deflector_models/sis.py | dangilman/quadmodel | 35bcb3e7f4bd45729ac809af76550456fc10779e | [
"MIT"
] | 1 | 2021-09-24T00:42:56.000Z | 2021-09-24T00:42:56.000Z | quadmodel/deflector_models/sis.py | dangilman/quadmodel | 35bcb3e7f4bd45729ac809af76550456fc10779e | [
"MIT"
] | 1 | 2022-02-28T00:43:31.000Z | 2022-02-28T00:43:31.000Z | quadmodel/deflector_models/sis.py | dangilman/quadmodel | 35bcb3e7f4bd45729ac809af76550456fc10779e | [
"MIT"
] | null | null | null | from quadmodel.deflector_models.model_base import ComponentBase
class SIS(ComponentBase):
def __init__(self, redshift, kwargs_init=None):
self._redshift = redshift
super(SIS, self).__init__(self.lens_model_list, [redshift], kwargs_init)
@property
def n_models(self):
return 1
... | 22.272727 | 80 | 0.681633 | 60 | 490 | 5.2 | 0.4 | 0.115385 | 0.125 | 0.108974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.222449 | 490 | 21 | 81 | 23.333333 | 0.816273 | 0 | 0 | 0.214286 | 0 | 0 | 0.006122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.214286 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d1766c0f12e4d4e8fcd72423c6aa68d4b7e1ba00 | 618 | py | Python | tamcolors/tam_tools/__init__.py | cmcmarrow/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 29 | 2020-07-17T23:46:17.000Z | 2022-02-06T05:36:44.000Z | tamcolors/tam_tools/__init__.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 42 | 2020-07-25T19:39:52.000Z | 2021-02-24T01:19:58.000Z | tamcolors/tam_tools/__init__.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 8 | 2020-07-18T23:02:48.000Z | 2020-12-30T04:07:35.000Z | from . import tam_color_palette
from . import tam_fade
from . import tam_film
from . import tam_key_manager
from . import tam_list_surface
from . import tam_menu
from . import tam_placing
from . import tam_print
from . import tam_str
from . import tam_text_box
from . import tam_icon
"""
tam_tools gives tools that sup... | 21.310345 | 38 | 0.627832 | 82 | 618 | 4.304878 | 0.280488 | 0.311615 | 0.405099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288026 | 618 | 28 | 39 | 22.071429 | 0.802273 | 0 | 0 | 0 | 0 | 0 | 0.208042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.090909 | 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 |
d17682133ce8c7d78ccc0218bc51adef8118a2cf | 426 | py | Python | config/config.py | minskylab/antevorta | e90ef285819c6466b844ed05c8d71908269d828a | [
"MIT"
] | null | null | null | config/config.py | minskylab/antevorta | e90ef285819c6466b844ed05c8d71908269d828a | [
"MIT"
] | null | null | null | config/config.py | minskylab/antevorta | e90ef285819c6466b844ed05c8d71908269d828a | [
"MIT"
] | null | null | null | from decouple import config
HOST: str = config("HOST", default="0.0.0.0", cast=str)
PORT: int = config("PORT", default=8080, cast=int)
CONCURRENT_TASKS: int = config('CONCURRENT_TASKS', default=50, cast=int)
ADMIN_SECRET: str | None = config('ADMIN_SECRET', default=None)
DIRECTUS_CREATE_RESOURCE_ENDPOINT: str = confi... | 42.6 | 94 | 0.762911 | 62 | 426 | 5.048387 | 0.370968 | 0.086262 | 0.019169 | 0.191693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.096244 | 426 | 9 | 95 | 47.333333 | 0.787013 | 0 | 0 | 0 | 0 | 0 | 0.211268 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66f8f7912a33eb81d436098b5ca693caa894ce2a | 296 | py | Python | workflow/scripts/adsorbate/vacuum_converge.py | sevyharris/qe_workflow | 2a9324f16d06c8c37989b5580b10738492fe9957 | [
"MIT"
] | null | null | null | workflow/scripts/adsorbate/vacuum_converge.py | sevyharris/qe_workflow | 2a9324f16d06c8c37989b5580b10738492fe9957 | [
"MIT"
] | 3 | 2022-03-08T15:48:11.000Z | 2022-03-08T16:34:01.000Z | workflow/scripts/adsorbate/vacuum_converge.py | sevyharris/qe_workflow | 2a9324f16d06c8c37989b5580b10738492fe9957 | [
"MIT"
] | null | null | null | import os
import sys
import adlib.adsorbate.convergence
adsorbate_dir = sys.argv[1]
adsorbate_pwo = sys.argv[2]
adlib.adsorbate.convergence.setup_converge(adsorbate_dir, 'vacuum_converge', adsorbate_pwo=adsorbate_pwo)
adlib.adsorbate.convergence.run_converge(adsorbate_dir, 'vacuum_converge')
| 26.909091 | 105 | 0.837838 | 40 | 296 | 5.95 | 0.375 | 0.176471 | 0.315126 | 0.218487 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.067568 | 296 | 10 | 106 | 29.6 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0.101351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0f0b100789776fe7224596b6a4237e43840b4a44 | 226 | py | Python | src/CTL/__init__.py | wistaria/CTL | ddb0f917369df4e7233b5ab097595c6ce254862e | [
"MIT"
] | 11 | 2021-06-23T15:47:03.000Z | 2022-03-17T03:29:55.000Z | src/CTL/__init__.py | wistaria/CTL | ddb0f917369df4e7233b5ab097595c6ce254862e | [
"MIT"
] | 1 | 2021-10-16T15:10:54.000Z | 2021-10-16T15:10:54.000Z | src/CTL/__init__.py | wistaria/CTL | ddb0f917369df4e7233b5ab097595c6ce254862e | [
"MIT"
] | 2 | 2021-06-23T09:11:20.000Z | 2021-10-16T15:35:18.000Z | import CTL.funcs.xplib as xplib
def setXP(newXP):
'''
Set the *py(e.g. numpy, cupy) library for CTL
newXP : object, default numpy
The numpy-like library for numeric functions.
'''
xplib.xp = newXP | 22.6 | 53 | 0.637168 | 33 | 226 | 4.363636 | 0.69697 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261062 | 226 | 10 | 54 | 22.6 | 0.862275 | 0.557522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0f0bcb29255d61b052314f31dc9f7cc80af38ed4 | 141 | py | Python | kaztron/cog/projects/__init__.py | Laogeodritt/KazTron | 42f35e520875b458ffde7c2729865c95de606aca | [
"MIT"
] | 6 | 2018-07-04T20:41:01.000Z | 2021-09-08T08:10:34.000Z | kaztron/cog/projects/__init__.py | Laogeodritt/KazTron | 42f35e520875b458ffde7c2729865c95de606aca | [
"MIT"
] | 259 | 2018-05-01T22:41:32.000Z | 2022-02-08T23:25:00.000Z | kaztron/cog/projects/__init__.py | Laogeodritt/KazTron | 42f35e520875b458ffde7c2729865c95de606aca | [
"MIT"
] | 6 | 2019-04-16T22:13:15.000Z | 2021-12-15T08:06:38.000Z | def setup(bot):
from .projects import ProjectsManager
from .query import init_db
init_db()
bot.add_cog(ProjectsManager(bot))
| 23.5 | 41 | 0.716312 | 19 | 141 | 5.157895 | 0.631579 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198582 | 141 | 5 | 42 | 28.2 | 0.867257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
0f1e1d9ae20c4289cc5e5ebbcdd71d3760061dd5 | 144 | py | Python | article/models.py | memoartpad/orders | 032eed1e881a1faa4d8ca7765a3afec247121649 | [
"MIT"
] | null | null | null | article/models.py | memoartpad/orders | 032eed1e881a1faa4d8ca7765a3afec247121649 | [
"MIT"
] | null | null | null | article/models.py | memoartpad/orders | 032eed1e881a1faa4d8ca7765a3afec247121649 | [
"MIT"
] | null | null | null | from django.db import models
class Article(models.Model):
code = models.IntegerField()
description = models.CharField(max_length=256)
| 20.571429 | 50 | 0.75 | 18 | 144 | 5.944444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.152778 | 144 | 6 | 51 | 24 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0f360beab67fbf9625bccccd3f10b754df21c6d3 | 755 | py | Python | anif/anif.py | bp15046/iot-access-network-interface-sdk-python3 | 9f81d4bb16571dfb07ceb18593b98dd0c97947f6 | [
"MIT"
] | null | null | null | anif/anif.py | bp15046/iot-access-network-interface-sdk-python3 | 9f81d4bb16571dfb07ceb18593b98dd0c97947f6 | [
"MIT"
] | null | null | null | anif/anif.py | bp15046/iot-access-network-interface-sdk-python3 | 9f81d4bb16571dfb07ceb18593b98dd0c97947f6 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
class AccessNetworkInterface(metaclass=ABCMeta):
def __init__(self, addr, port):
self._addr = addr
self._port = port
self._file = None
self._data = None
def open(self, file):
self._file = file
self._connect()
... | 18.875 | 48 | 0.562914 | 78 | 755 | 5.205128 | 0.333333 | 0.078818 | 0.162562 | 0.184729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.349669 | 755 | 40 | 49 | 18.875 | 0.826884 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.133333 | 0.033333 | 0.033333 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0f4d7fb1bf3d8288c6ba7c545419afc910a8ecaf | 27 | py | Python | config.py | ttkltll2/fisher_review | 01070316d1e0854fb03460956b67c5c2ed0030be | [
"MIT"
] | null | null | null | config.py | ttkltll2/fisher_review | 01070316d1e0854fb03460956b67c5c2ed0030be | [
"MIT"
] | 3 | 2020-09-15T23:37:18.000Z | 2020-09-16T00:36:55.000Z | config.py | ttkltll2/fisher_review | 01070316d1e0854fb03460956b67c5c2ed0030be | [
"MIT"
] | 1 | 2020-09-15T02:55:54.000Z | 2020-09-15T02:55:54.000Z | DEBUG = False
PER_PAGE = 10 | 13.5 | 13 | 0.740741 | 5 | 27 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.185185 | 27 | 2 | 14 | 13.5 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f53006adda19f70842f3a41f5aaa4bd0045d628 | 465 | py | Python | {{cookiecutter.repo_name}}/hseling_lib_{{cookiecutter.package_name}}/tests/test_hseling_api_{{cookiecutter.package_name}}.py | nikita-pershukov/hseling-cookiecutter | 6a8bed4ad7a8245e50f0c68daa209f6009a15dd9 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/hseling_lib_{{cookiecutter.package_name}}/tests/test_hseling_api_{{cookiecutter.package_name}}.py | nikita-pershukov/hseling-cookiecutter | 6a8bed4ad7a8245e50f0c68daa209f6009a15dd9 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/hseling_lib_{{cookiecutter.package_name}}/tests/test_hseling_api_{{cookiecutter.package_name}}.py | nikita-pershukov/hseling-cookiecutter | 6a8bed4ad7a8245e50f0c68daa209f6009a15dd9 | [
"MIT"
] | 1 | 2020-09-14T14:44:14.000Z | 2020-09-14T14:44:14.000Z | import unittest
import hseling_api_{{cookiecutter.package_name}}
class HSELing_API_{{cookiecutter.package_name.capitalize()}}TestCase(unittest.TestCase):
def setUp(self):
self.app = hseling_api_{{cookiecutter.package_name}}.app.test_client()
def test_index(self):
rv = self.app.get('/')
... | 25.833333 | 99 | 0.713978 | 56 | 465 | 5.535714 | 0.482143 | 0.129032 | 0.283871 | 0.280645 | 0.319355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146237 | 465 | 17 | 100 | 27.352941 | 0.780856 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 0.096774 | 0 | 0 | 0 | 0 | 0.1 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e3ecc2e0b14a334d86baa7fe79cab6f47e0ef01 | 342 | py | Python | tests/unit/test_utils_filesystem.py | q0w/pip | 422719863a061640a84c6292e7d86d81e22c938c | [
"MIT"
] | null | null | null | tests/unit/test_utils_filesystem.py | q0w/pip | 422719863a061640a84c6292e7d86d81e22c938c | [
"MIT"
] | 1 | 2022-01-27T19:09:25.000Z | 2022-01-27T19:09:25.000Z | tests/unit/test_utils_filesystem.py | q0w/pip | 422719863a061640a84c6292e7d86d81e22c938c | [
"MIT"
] | null | null | null | import os
from pathlib import Path
def make_file(path: str) -> None:
Path(path).touch()
def make_valid_symlink(path: str) -> None:
target = path + "1"
make_file(target)
os.symlink(target, path)
def make_broken_symlink(path: str) -> None:
os.symlink("foo", path)
def make_dir(path: str) -> Non... | 16.285714 | 43 | 0.654971 | 52 | 342 | 4.173077 | 0.365385 | 0.129032 | 0.202765 | 0.165899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.204678 | 342 | 20 | 44 | 17.1 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e439c1327bb8232bcec330aeba5f4fa6d2bd62b | 255 | py | Python | minecraft_mod_manager/app/configure/configure_repo.py | lospejos/minecraft-mod-manager | 49ec3f6e22dd07a6389d8704bf97c4068be79660 | [
"MIT"
] | 56 | 2021-02-13T20:28:35.000Z | 2022-03-27T17:29:54.000Z | minecraft_mod_manager/app/configure/configure_repo.py | lospejos/minecraft-mod-manager | 49ec3f6e22dd07a6389d8704bf97c4068be79660 | [
"MIT"
] | 102 | 2020-11-11T13:19:38.000Z | 2022-03-31T18:27:06.000Z | minecraft_mod_manager/app/configure/configure_repo.py | lospejos/minecraft-mod-manager | 49ec3f6e22dd07a6389d8704bf97c4068be79660 | [
"MIT"
] | 8 | 2021-02-17T20:27:32.000Z | 2022-03-21T20:06:30.000Z | from typing import Union
from ...core.entities.mod import Mod
class ConfigureRepo:
def get_mod(self, id: str) -> Union[Mod, None]:
raise NotImplementedError()
def update_mod(self, mod: Mod) -> None:
raise NotImplementedError()
| 21.25 | 51 | 0.678431 | 32 | 255 | 5.34375 | 0.5625 | 0.081871 | 0.140351 | 0.362573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 255 | 11 | 52 | 23.181818 | 0.855 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
7e52e5459beef89dbde5df7e38aa4d430b9e1a6b | 129 | py | Python | anet/tasks/hexagrid/__init__.py | thomasaunger/Anet | 1d353f280a30c3207fa6d09af91a85c4955bbda4 | [
"BSD-3-Clause"
] | null | null | null | anet/tasks/hexagrid/__init__.py | thomasaunger/Anet | 1d353f280a30c3207fa6d09af91a85c4955bbda4 | [
"BSD-3-Clause"
] | null | null | null | anet/tasks/hexagrid/__init__.py | thomasaunger/Anet | 1d353f280a30c3207fa6d09af91a85c4955bbda4 | [
"BSD-3-Clause"
] | null | null | null | from gym.envs.registration import register
register(
id="ArdaEnv-v0",
entry_point="anet.tasks.hexagrid.envs:ArdaEnv",
)
| 18.428571 | 51 | 0.736434 | 17 | 129 | 5.529412 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.131783 | 129 | 6 | 52 | 21.5 | 0.830357 | 0 | 0 | 0 | 0 | 0 | 0.325581 | 0.248062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e54b22da73510f9c74e8d6b7e1f245b57e92e2e | 698 | py | Python | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/profile/utilityspace/LinearAdditive.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | 1 | 2022-02-17T19:14:46.000Z | 2022-02-17T19:14:46.000Z | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/profile/utilityspace/LinearAdditive.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | null | null | null | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/profile/utilityspace/LinearAdditive.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | null | null | null | from decimal import Decimal
from typing import Dict
from geniusweb.profile.utilityspace.UtilitySpace import UtilitySpace
from geniusweb.profile.utilityspace.ValueSetUtilities import ValueSetUtilities
class LinearAdditive ( UtilitySpace):
'''
interface to a Utilityspace that is linear-additive.
'''
def getUtilit... | 24.928571 | 78 | 0.734957 | 85 | 698 | 6.035294 | 0.458824 | 0.052632 | 0.077973 | 0.124756 | 0.109162 | 0.109162 | 0.109162 | 0 | 0 | 0 | 0 | 0.001724 | 0.169054 | 698 | 27 | 79 | 25.851852 | 0.882759 | 0.356734 | 0 | 0 | 0 | 0 | 0.151767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e584133e626487b3d0ffb903947153696ce6808 | 124 | py | Python | rdmo/questions/widgets.py | m6121/rdmo | db3990c7525138c6ce9634fc3e5b6b8ee9b915c8 | [
"Apache-2.0"
] | 77 | 2016-08-09T11:40:20.000Z | 2022-03-06T11:03:26.000Z | rdmo/questions/widgets.py | m6121/rdmo | db3990c7525138c6ce9634fc3e5b6b8ee9b915c8 | [
"Apache-2.0"
] | 377 | 2016-07-01T13:59:36.000Z | 2022-03-30T13:53:19.000Z | rdmo/questions/widgets.py | m6121/rdmo | db3990c7525138c6ce9634fc3e5b6b8ee9b915c8 | [
"Apache-2.0"
] | 47 | 2016-06-23T11:32:19.000Z | 2022-03-01T11:34:37.000Z | from rdmo.core.plugins import Plugin
class Widget(Plugin):
template_name = None
scss_files = []
js_files = []
| 15.5 | 36 | 0.669355 | 16 | 124 | 5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233871 | 124 | 7 | 37 | 17.714286 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7e59f32d126fed1639cadacdfa01807269d0cc51 | 184 | py | Python | workers/base/constantes.py | rjcorflo/ServerMessageWorkers | 55659dc73719867a57f83d9ec0231fa4001e51a2 | [
"MIT"
] | null | null | null | workers/base/constantes.py | rjcorflo/ServerMessageWorkers | 55659dc73719867a57f83d9ec0231fa4001e51a2 | [
"MIT"
] | null | null | null | workers/base/constantes.py | rjcorflo/ServerMessageWorkers | 55659dc73719867a57f83d9ec0231fa4001e51a2 | [
"MIT"
] | null | null | null | """
Constants
"""
MONGO_DOCKER_SERVICE = "db"
MONGO_HOST = "192.168.99.100"
MONGO_PORT = 27017
RABBIT_DOCKER_SERVICE = "rabbit"
RABBIT_HOST = "192.168.99.100"
RABBIT_PORT = 5672
| 11.5 | 32 | 0.711957 | 27 | 184 | 4.555556 | 0.518519 | 0.211382 | 0.162602 | 0.195122 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197452 | 0.146739 | 184 | 15 | 33 | 12.266667 | 0.585987 | 0.048913 | 0 | 0 | 0 | 0 | 0.215569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e7bc26f31749a74de5c674f09370bb53e65cb60 | 352 | py | Python | backapi/admin.py | rashiddaha/health-care-backend | ed9f918a30f1648501184804816ab98d00bcc3ed | [
"MIT"
] | null | null | null | backapi/admin.py | rashiddaha/health-care-backend | ed9f918a30f1648501184804816ab98d00bcc3ed | [
"MIT"
] | null | null | null | backapi/admin.py | rashiddaha/health-care-backend | ed9f918a30f1648501184804816ab98d00bcc3ed | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Measurement, DeductCreditSetting
@admin.register(Measurement)
class MeasurementAdmin(admin.ModelAdmin):
list_display = ['category', 'user', 'value', 'created']
@admin.register(DeductCreditSetting)
class MeasurementAdmin(admin.ModelAdmin):
list_display = [... | 27.076923 | 59 | 0.767045 | 35 | 352 | 7.657143 | 0.571429 | 0.097015 | 0.19403 | 0.268657 | 0.350746 | 0.350746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107955 | 352 | 12 | 60 | 29.333333 | 0.853503 | 0 | 0 | 0.25 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 |
7e82f86a625e002de34204df557f4a84525b06a0 | 118 | py | Python | Django-Python-Full-Stack-Web-Devloper-master/Django_Level_Two/ProTwo/appTwo/urls.py | apoorv-x12/Django | 2b052e654571e4703beb22ad562efab0520f845c | [
"MIT"
] | 6 | 2021-07-26T14:21:25.000Z | 2021-07-26T14:32:01.000Z | Django-Python-Full-Stack-Web-Devloper-master/Django_Level_Two/ProTwo/appTwo/urls.py | apoorv-x12/Django | 2b052e654571e4703beb22ad562efab0520f845c | [
"MIT"
] | 2 | 2021-12-10T10:25:19.000Z | 2021-12-10T10:27:15.000Z | Web-Dev/DJANGO_COURSE_1.xx/Django_Level_Two/ProTwo/appTwo/urls.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | null | null | null | from django.conf.urls import url
from appTwo import views
urlpatterns = [
url(r'^$',views.users,name='users'),
]
| 16.857143 | 40 | 0.694915 | 17 | 118 | 4.823529 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 118 | 6 | 41 | 19.666667 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 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 |
7e99afaaf2016aa09354d255dce00660222efbd7 | 2,434 | py | Python | tests/test_packing.py | grantps/superhelp | d8e861bf1ad91571ac23b9c833a8cd461bb1952f | [
"MIT"
] | 27 | 2020-05-17T20:48:43.000Z | 2022-01-08T21:32:30.000Z | tests/test_packing.py | grantps/superhelp | d8e861bf1ad91571ac23b9c833a8cd461bb1952f | [
"MIT"
] | null | null | null | tests/test_packing.py | grantps/superhelp | d8e861bf1ad91571ac23b9c833a8cd461bb1952f | [
"MIT"
] | null | null | null | from textwrap import dedent
from tests import check_as_expected
ROOT = 'superhelp.helpers.packing_help.'
def test_misc():
test_conf = [
(
dedent("""\
pet = 'cat'
"""),
{
ROOT + 'unpacking': 0,
ROOT + 'unpacking_opportunity': ... | 24.836735 | 92 | 0.351684 | 191 | 2,434 | 4.356021 | 0.26178 | 0.25 | 0.230769 | 0.108173 | 0.691106 | 0.661058 | 0.608173 | 0.289663 | 0.171875 | 0.171875 | 0 | 0.031414 | 0.52917 | 2,434 | 97 | 93 | 25.092784 | 0.69459 | 0.047247 | 0 | 0.554348 | 0 | 0 | 0.42579 | 0.095197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.021739 | 0 | 0.032609 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e40192cc2908b80b283b4e06a91550f5ea67a15 | 207 | py | Python | module_b/tests/test_the_answer.py | SwitchEV/local-actions-runner-poc | 5548696f104fcd2acff07cb9f572e9cf378d5146 | [
"MIT"
] | null | null | null | module_b/tests/test_the_answer.py | SwitchEV/local-actions-runner-poc | 5548696f104fcd2acff07cb9f572e9cf378d5146 | [
"MIT"
] | 1 | 2021-09-02T12:14:37.000Z | 2021-09-02T12:14:37.000Z | module_b/tests/test_the_answer.py | SwitchEV/local-actions-runner-poc | 5548696f104fcd2acff07cb9f572e9cf378d5146 | [
"MIT"
] | null | null | null | from module_b.main import get_the_question
QUESTION: str = "life universe and everything"
def test_given_question_is_known_when_asked_for_question_then_answer():
assert QUESTION == get_the_question()
| 25.875 | 71 | 0.826087 | 31 | 207 | 5.032258 | 0.774194 | 0.076923 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 207 | 7 | 72 | 29.571429 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0.135266 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e499c187067cedd813ed0fb842eae9d4f1fff63 | 65 | py | Python | lambdata_razzlestorm/__init__.py | razzlestorm/lambdata_razzlestorm | 1877320277d0b9ca376c6c12eb34c404581bd75f | [
"MIT"
] | 1 | 2022-02-01T21:20:26.000Z | 2022-02-01T21:20:26.000Z | lambdata_razzlestorm/__init__.py | razzlestorm/lambdata_razzlestorm | 1877320277d0b9ca376c6c12eb34c404581bd75f | [
"MIT"
] | 4 | 2020-03-24T17:58:31.000Z | 2021-06-02T00:59:15.000Z | lambdata_razzlestorm/__init__.py | razzlestorm/lambdata_razzlestorm | 1877320277d0b9ca376c6c12eb34c404581bd75f | [
"MIT"
] | null | null | null | __version__ = "0.0.2"
my_str = "this is my_str from __init__.py"
| 21.666667 | 42 | 0.707692 | 13 | 65 | 2.769231 | 0.769231 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.153846 | 65 | 2 | 43 | 32.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.553846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e4a453dcb1974245d3bb3acba5d91a3fee0897e | 85 | py | Python | bad-analytics.js/constant.py | pcnoic/bad-analytics.js | f3b7492641f218135292ab36d7c611a659d917be | [
"Apache-2.0"
] | null | null | null | bad-analytics.js/constant.py | pcnoic/bad-analytics.js | f3b7492641f218135292ab36d7c611a659d917be | [
"Apache-2.0"
] | null | null | null | bad-analytics.js/constant.py | pcnoic/bad-analytics.js | f3b7492641f218135292ab36d7c611a659d917be | [
"Apache-2.0"
] | null | null | null | MALICIOUS_LOCATION = "/wp-includes/js/jquery/jquery-migrate.min.js"
WORKDIR = "tmp/"
| 28.333333 | 67 | 0.752941 | 12 | 85 | 5.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070588 | 85 | 2 | 68 | 42.5 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0.564706 | 0.517647 | 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 |
0e7df7d18008dd81f9c66a3058f43866f859f741 | 121 | py | Python | tests/__init__.py | azadoks/aiida-openmx | 2298a95c0f10e63d8d83d36ebec5746ff579a5e4 | [
"MIT"
] | null | null | null | tests/__init__.py | azadoks/aiida-openmx | 2298a95c0f10e63d8d83d36ebec5746ff579a5e4 | [
"MIT"
] | 1 | 2021-02-16T10:46:58.000Z | 2021-02-18T11:07:14.000Z | tests/__init__.py | zooks97/aiida-openmx | 2298a95c0f10e63d8d83d36ebec5746ff579a5e4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for aiida-openmx."""
import os
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
| 17.285714 | 54 | 0.661157 | 18 | 121 | 4.166667 | 0.833333 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.123967 | 121 | 6 | 55 | 20.166667 | 0.698113 | 0.380165 | 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 |
7ec468435a3ef92a6bd73a6f59ebfddeb792d19c | 1,867 | py | Python | plugged/uri.py | tantalum7/plugged | 0eed969d034fd9eb09ed1691af10bbe702fe8912 | [
"WTFPL"
] | null | null | null | plugged/uri.py | tantalum7/plugged | 0eed969d034fd9eb09ed1691af10bbe702fe8912 | [
"WTFPL"
] | 3 | 2021-03-31T18:39:28.000Z | 2021-12-13T19:48:38.000Z | plugged/uri.py | tantalum7/plugged | 0eed969d034fd9eb09ed1691af10bbe702fe8912 | [
"WTFPL"
] | null | null | null |
import urllib
import urllib.parse
import zlib
class Uri:
def __init__(self, scheme: str, hostname: str, port: int, resource: str):
""" Simple Uri (Universal Resource Identifier) class to split/join uri components
format: scheme://hostname:port/resource (e.g. http://stuff.com:1234/personal/ad... | 37.34 | 118 | 0.658811 | 239 | 1,867 | 4.953975 | 0.259414 | 0.118243 | 0.060811 | 0.065878 | 0.339527 | 0.339527 | 0.339527 | 0.339527 | 0.339527 | 0.277027 | 0 | 0.004073 | 0.211034 | 1,867 | 50 | 119 | 37.34 | 0.799728 | 0.116229 | 0 | 0.058824 | 0 | 0 | 0.099692 | 0.072615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.088235 | 0.117647 | 0.676471 | 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 |
7ec659d7a096eee0f3f3bb82b835a0ed20f2a675 | 164 | py | Python | project1b.py | kaamila42/project1 | 736b5e59bf450bea852c6aa6e9454efbd6c293c6 | [
"MIT"
] | null | null | null | project1b.py | kaamila42/project1 | 736b5e59bf450bea852c6aa6e9454efbd6c293c6 | [
"MIT"
] | null | null | null | project1b.py | kaamila42/project1 | 736b5e59bf450bea852c6aa6e9454efbd6c293c6 | [
"MIT"
] | null | null | null | filename = input("Input the Filename: " ,"py = python", "txt = text", ...)
f_extns = filename.split(".")
print(f " The extension of the file is '{f_extns[]}'")
| 41 | 76 | 0.609756 | 23 | 164 | 4.26087 | 0.652174 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176829 | 164 | 3 | 77 | 54.666667 | 0.725926 | 0 | 0 | 0 | 0 | 0 | 0.534161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ed176c179fb0b95d199b4d2352d917cb80cf11a | 234 | py | Python | output/models/nist_data/list_pkg/string/schema_instance/nistschema_sv_iv_list_string_length_4_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/string/schema_instance/nistschema_sv_iv_list_string_length_4_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/string/schema_instance/nistschema_sv_iv_list_string_length_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.string.schema_instance.nistschema_sv_iv_list_string_length_4_xsd.nistschema_sv_iv_list_string_length_4 import NistschemaSvIvListStringLength4
__all__ = [
"NistschemaSvIvListStringLength4",
]
| 39 | 179 | 0.884615 | 29 | 234 | 6.448276 | 0.655172 | 0.128342 | 0.149733 | 0.192513 | 0.331551 | 0.331551 | 0.331551 | 0 | 0 | 0 | 0 | 0.018182 | 0.059829 | 234 | 5 | 180 | 46.8 | 0.831818 | 0 | 0 | 0 | 0 | 0 | 0.132479 | 0.132479 | 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 |
7edca112c9643f2a2eb351a7f74219653a370e12 | 30 | py | Python | zendesk_viewer/api/__init__.py | arunima811/zendesk-ticket-viewer | 3e567cbc6b0af29b9cb722ff1a1ac3cf73c671c1 | [
"MIT"
] | null | null | null | zendesk_viewer/api/__init__.py | arunima811/zendesk-ticket-viewer | 3e567cbc6b0af29b9cb722ff1a1ac3cf73c671c1 | [
"MIT"
] | null | null | null | zendesk_viewer/api/__init__.py | arunima811/zendesk-ticket-viewer | 3e567cbc6b0af29b9cb722ff1a1ac3cf73c671c1 | [
"MIT"
] | null | null | null | __all__ = ["ZendeskApiClient"] | 30 | 30 | 0.766667 | 2 | 30 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 30 | 1 | 30 | 30 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0.516129 | 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 |
7eff518fbe6806796b18aeaff1294533474c066c | 70 | py | Python | plotter/__init__.py | davidelbaze/plotter | 79871d87b6d1d35ce72159e664dd4e09eef559b7 | [
"MIT"
] | null | null | null | plotter/__init__.py | davidelbaze/plotter | 79871d87b6d1d35ce72159e664dd4e09eef559b7 | [
"MIT"
] | null | null | null | plotter/__init__.py | davidelbaze/plotter | 79871d87b6d1d35ce72159e664dd4e09eef559b7 | [
"MIT"
] | null | null | null | from .plotter import Plotter, PlotterType
__all__ = ["gtk3_plotter"]
| 17.5 | 41 | 0.771429 | 8 | 70 | 6.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.128571 | 70 | 3 | 42 | 23.333333 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 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 |
7d025b237f59fc9d709684e8bae5d3f8d01d48f3 | 2,494 | py | Python | fedml_core/distributed/communication/message.py | GabriJP/FedML | 9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988 | [
"Apache-2.0"
] | null | null | null | fedml_core/distributed/communication/message.py | GabriJP/FedML | 9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988 | [
"Apache-2.0"
] | null | null | null | fedml_core/distributed/communication/message.py | GabriJP/FedML | 9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import sys
from torch import Tensor
class Message:
MSG_ARG_KEY_OPERATION = "operation"
MSG_ARG_KEY_TYPE = "msg_type"
MSG_ARG_KEY_SENDER = "sender"
MSG_ARG_KEY_RECEIVER = "receiver"
MSG_OPERATION_SEND = "send"
MSG_OPERATION_RECEIVE = "receive"
MSG_OPERATION_BROA... | 29.341176 | 78 | 0.655974 | 344 | 2,494 | 4.40407 | 0.168605 | 0.092409 | 0.145875 | 0.09505 | 0.313531 | 0.227723 | 0.175578 | 0.139934 | 0.051485 | 0 | 0 | 0.00161 | 0.253007 | 2,494 | 84 | 79 | 29.690476 | 0.811594 | 0.018043 | 0 | 0.0625 | 0 | 0 | 0.070699 | 0.029424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0.109375 | 0.578125 | 0.03125 | 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 |
7d1a3b3018a8bfc4f70c85bafaf5e49fce9b1a38 | 172 | py | Python | aiodocker/__init__.py | truenas/aiodocker | 8edefe73832d62d70fa11a4846594bc74ae12244 | [
"Apache-2.0"
] | 1 | 2019-12-02T08:43:23.000Z | 2019-12-02T08:43:23.000Z | aiodocker/__init__.py | truenas/aiodocker | 8edefe73832d62d70fa11a4846594bc74ae12244 | [
"Apache-2.0"
] | 30 | 2021-08-19T04:28:08.000Z | 2022-03-29T04:20:41.000Z | aiodocker/__init__.py | truenas/aiodocker | 8edefe73832d62d70fa11a4846594bc74ae12244 | [
"Apache-2.0"
] | null | null | null | from .docker import Docker
from .exceptions import DockerContainerError, DockerError
__version__ = "0.19.1"
__all__ = ("Docker", "DockerError", "DockerContainerError")
| 19.111111 | 59 | 0.767442 | 17 | 172 | 7.294118 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0.122093 | 172 | 8 | 60 | 21.5 | 0.794702 | 0 | 0 | 0 | 0 | 0 | 0.25 | 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 |
7d21e420d169da90cc5acf48d6c06ceded8ed4be | 717 | py | Python | discord-mensa/commands/menu.py | pblan/discord-mensa | 81d07812bd958b93894c2adeae41d7b758bf0c64 | [
"MIT"
] | 1 | 2021-09-27T07:13:19.000Z | 2021-09-27T07:13:19.000Z | discord-mensa/commands/menu.py | pblan/discord-mensa | 81d07812bd958b93894c2adeae41d7b758bf0c64 | [
"MIT"
] | 4 | 2021-09-29T21:22:39.000Z | 2021-09-29T21:26:14.000Z | discord-mensa/commands/menu.py | pblan/discord-mensa | 81d07812bd958b93894c2adeae41d7b758bf0c64 | [
"MIT"
] | null | null | null | import hikari
import lightbulb
import typing
from datetime import datetime
from ..helpers.utils import respond_menu
from Constants import GUILD_IDS
class Menu(lightbulb.slash_commands.SlashCommand):
# Options
id: int = lightbulb.slash_commands.Option(
description="ID der Mensa (siehe https://openmen... | 26.555556 | 81 | 0.718271 | 89 | 717 | 5.696629 | 0.595506 | 0.043393 | 0.086785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18689 | 717 | 26 | 82 | 27.576923 | 0.86964 | 0.009763 | 0 | 0.111111 | 0 | 0 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
7d422fbe219a8004c509ec5071928e449b170da7 | 94 | py | Python | boj/math/boj_1037.py | ruslanlvivsky/python-algorithm | 2b49bed33cd0e95b8a1e758008191f4392b3f667 | [
"MIT"
] | 1 | 2022-03-01T10:32:08.000Z | 2022-03-01T10:32:08.000Z | boj/math/boj_1037.py | sangjinsu/python-algorithm | 2b49bed33cd0e95b8a1e758008191f4392b3f667 | [
"MIT"
] | null | null | null | boj/math/boj_1037.py | sangjinsu/python-algorithm | 2b49bed33cd0e95b8a1e758008191f4392b3f667 | [
"MIT"
] | null | null | null | n = int(input())
nums = list(map(int, input().strip().split()))
print(min(nums) * max(nums))
| 18.8 | 46 | 0.606383 | 15 | 94 | 3.8 | 0.733333 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 94 | 4 | 47 | 23.5 | 0.686747 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
adbfce9fcd6ac69e8af44f7fbe04922945667ff5 | 134 | py | Python | docs/source/examples/unordered.py | alexras/boomslang | 62b6dc3a183fd8686b165c4abdb55d10d537b4ab | [
"BSD-3-Clause"
] | 4 | 2015-02-24T06:50:08.000Z | 2020-08-08T03:23:32.000Z | docs/source/examples/unordered.py | alexras/boomslang | 62b6dc3a183fd8686b165c4abdb55d10d537b4ab | [
"BSD-3-Clause"
] | 13 | 2017-07-17T15:52:09.000Z | 2017-07-17T15:52:09.000Z | docs/source/examples/unordered.py | alexras/boomslang | 62b6dc3a183fd8686b165c4abdb55d10d537b4ab | [
"BSD-3-Clause"
] | null | null | null | line = Line()
line.xValues = [2, 1, 3, 4, 0]
line.yValues = [2, 1, 3, 4, 0]
plot = Plot()
plot.add(line)
plot.save("unordered.png")
| 14.888889 | 30 | 0.589552 | 25 | 134 | 3.16 | 0.52 | 0.202532 | 0.075949 | 0.101266 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.179104 | 134 | 8 | 31 | 16.75 | 0.627273 | 0 | 0 | 0 | 0 | 0 | 0.097015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
adcecd56b8a4fe0993d64d6581afd6d9ce573e8e | 72 | py | Python | jaraco/input/win32/__init__.py | jaraco/jaraco.input | 2693448286ce496efc82045ad4e1165f0479cc15 | [
"MIT"
] | null | null | null | jaraco/input/win32/__init__.py | jaraco/jaraco.input | 2693448286ce496efc82045ad4e1165f0479cc15 | [
"MIT"
] | null | null | null | jaraco/input/win32/__init__.py | jaraco/jaraco.input | 2693448286ce496efc82045ad4e1165f0479cc15 | [
"MIT"
] | null | null | null | from .xinput import XInputJoystick as Joystick
__all__ = ['Joystick']
| 14.4 | 46 | 0.763889 | 8 | 72 | 6.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 72 | 4 | 47 | 18 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 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 |
adf6335f49f9c0c741a9ac5b83c6d7951e1566d2 | 685 | py | Python | modules/parser/nodes/sequential_operation_node.py | DavidMacDonald11/sea-to-c-transpiler-python-based | 20c41931346b13d4bf2a12e96037f44b1add8145 | [
"MIT"
] | null | null | null | modules/parser/nodes/sequential_operation_node.py | DavidMacDonald11/sea-to-c-transpiler-python-based | 20c41931346b13d4bf2a12e96037f44b1add8145 | [
"MIT"
] | 11 | 2021-04-22T13:09:34.000Z | 2022-01-29T22:53:58.000Z | modules/parser/nodes/sequential_operation_node.py | DavidMacDonald11/sea-to-c-transpiler-python-based | 20c41931346b13d4bf2a12e96037f44b1add8145 | [
"MIT"
] | null | null | null | from modules.lexer.position import Position
from .ast_node import ASTNode
class SequentialOperationNode(ASTNode):
def __init__(self, left, right):
self.left = left
self.right = right
super().__init__(Position(left.position.start, right.position.end))
def __repr__(self):
return... | 27.4 | 75 | 0.656934 | 83 | 685 | 5.26506 | 0.373494 | 0.073227 | 0.06865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224818 | 685 | 24 | 76 | 28.541667 | 0.822976 | 0 | 0 | 0 | 0 | 0 | 0.070073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bc01518ec0109a1ca2291438fe4d07b2c54d8a81 | 982 | py | Python | JobsDB/models.py | zrzxj/JobsSpiderManager | f6e60d4035fb7651d62900f2c8a147cdf04bbc07 | [
"Apache-2.0"
] | null | null | null | JobsDB/models.py | zrzxj/JobsSpiderManager | f6e60d4035fb7651d62900f2c8a147cdf04bbc07 | [
"Apache-2.0"
] | null | null | null | JobsDB/models.py | zrzxj/JobsSpiderManager | f6e60d4035fb7651d62900f2c8a147cdf04bbc07 | [
"Apache-2.0"
] | null | null | null | from django.db import models
class JobInfo(models.Model):
id = models.AutoField(primary_key=True)
source = models.CharField(max_length=100, null=True, blank=True)
job_id = models.CharField(max_length=100, unique=True)
job_name = models.CharField(max_length=100, null=True, blank=True)
company_name... | 49.1 | 84 | 0.754582 | 140 | 982 | 5.1 | 0.278571 | 0.231092 | 0.277311 | 0.369748 | 0.726891 | 0.689076 | 0.689076 | 0.689076 | 0.689076 | 0.504202 | 0 | 0.038732 | 0.132383 | 982 | 20 | 85 | 49.1 | 0.799296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0.0625 | 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 |
bc1a794687d5998d3274a2c3e88bc2ab2cbfe58a | 316 | py | Python | botstory/__init__.py | botstory/bot-story | 9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3 | [
"MIT"
] | 5 | 2017-01-14T13:42:13.000Z | 2021-07-27T21:52:04.000Z | botstory/__init__.py | botstory/bot-story | 9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3 | [
"MIT"
] | 235 | 2016-11-07T23:33:28.000Z | 2018-03-13T11:27:33.000Z | botstory/__init__.py | hyzhak/bot-story | 9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3 | [
"MIT"
] | 5 | 2017-01-14T13:42:14.000Z | 2020-11-06T08:33:20.000Z | from .ast.callable import EndOfStory
from .ast.forking import SwitchOnValue, Undefined
from .story import Story
import os
__all__ = [EndOfStory, Story, SwitchOnValue]
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'version.txt')) as version_file:
__version__ = version_file.read().strip()
| 31.6 | 100 | 0.775316 | 43 | 316 | 5.372093 | 0.534884 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107595 | 316 | 9 | 101 | 35.111111 | 0.819149 | 0 | 0 | 0 | 0 | 0 | 0.03481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bc1e72531c888ffd6f8a9aa21c25be6502ced3a4 | 99 | py | Python | backend/apps/ineedstudent/apps.py | n-hackert/match4healthcare | 761248c27b49e568c545c643a72eac9a040649d7 | [
"MIT"
] | 3 | 2020-03-27T20:39:31.000Z | 2020-03-31T20:24:55.000Z | backend/apps/ineedstudent/apps.py | n-hackert/match4healthcare | 761248c27b49e568c545c643a72eac9a040649d7 | [
"MIT"
] | 21 | 2020-03-28T09:57:15.000Z | 2020-03-31T11:38:00.000Z | backend/apps/ineedstudent/apps.py | n-hackert/match4healthcare | 761248c27b49e568c545c643a72eac9a040649d7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class IneedstudentConfig(AppConfig):
name = 'ineedstudent'
| 16.5 | 36 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 37 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 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 |
bc362c4bd09d1ed2d56185e2ae93df34c6acfaf2 | 190 | py | Python | rainy_project/notice/urls.py | osamhack2020/WEB_HeavyReading_Rainy | 58b7429e88931175ddceab2c280161a267149a15 | [
"MIT"
] | 2 | 2021-08-15T02:17:43.000Z | 2022-01-31T14:46:20.000Z | rainy_project/notice/urls.py | habijung/WEB_HeavyReading_Rainy | 58b7429e88931175ddceab2c280161a267149a15 | [
"MIT"
] | null | null | null | rainy_project/notice/urls.py | habijung/WEB_HeavyReading_Rainy | 58b7429e88931175ddceab2c280161a267149a15 | [
"MIT"
] | 2 | 2020-11-17T09:37:24.000Z | 2021-10-04T05:59:02.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.notice, name='notice'),
path('detail/<int:notice_id>', views.detail_notice, name='detail_notice'),
] | 23.75 | 78 | 0.694737 | 25 | 190 | 5.16 | 0.48 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142105 | 190 | 8 | 79 | 23.75 | 0.791411 | 0 | 0 | 0 | 0 | 0 | 0.21466 | 0.115183 | 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 |
70b6ee7c44d84dc0e2ad503956cbc4f81cb481a7 | 10,460 | py | Python | swagger_client/mercury/client/model/option_contract.py | kovacicek/fiddleoptions | 43e3517046fb4c47d3284d357e75099e81f861b7 | [
"MIT"
] | null | null | null | swagger_client/mercury/client/model/option_contract.py | kovacicek/fiddleoptions | 43e3517046fb4c47d3284d357e75099e81f861b7 | [
"MIT"
] | null | null | null | swagger_client/mercury/client/model/option_contract.py | kovacicek/fiddleoptions | 43e3517046fb4c47d3284d357e75099e81f861b7 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Fiddle Options Platform
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
... | 24.611765 | 203 | 0.552964 | 1,193 | 10,460 | 4.75021 | 0.107293 | 0.055056 | 0.183519 | 0.165167 | 0.46709 | 0.383801 | 0.36792 | 0.234163 | 0.105876 | 0.013411 | 0 | 0.01978 | 0.347514 | 10,460 | 424 | 204 | 24.669811 | 0.810549 | 0.364149 | 0 | 0.081967 | 1 | 0 | 0.054782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174863 | false | 0 | 0.016393 | 0 | 0.311475 | 0.010929 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
70d0c6b4dd7468bb0dd3ef82f9a48b9c5d2fff7f | 878 | py | Python | python/dxa/__init__.py | portfolioscout/py4fi | 9a65df340189ed52037456da221bf66fe89e787f | [
"CNRI-Python"
] | 15 | 2018-07-10T09:18:23.000Z | 2021-12-30T06:35:09.000Z | python3/dxa/__init__.py | ioancw/py4fi | bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec | [
"CNRI-Python"
] | 2 | 2020-10-27T19:44:15.000Z | 2020-11-03T23:55:36.000Z | python3/dxa/__init__.py | ioancw/py4fi | bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec | [
"CNRI-Python"
] | 13 | 2018-01-08T01:10:22.000Z | 2021-05-26T17:35:35.000Z | #
# DX Library
# packaging file
# __init__.py
#
import numpy as np
import pandas as pd
import datetime as dt
# frame
from get_year_deltas import get_year_deltas
from constant_short_rate import constant_short_rate
from market_environment import market_environment
from plot_option_stats import plot_option_stats
# simul... | 28.322581 | 63 | 0.886105 | 122 | 878 | 5.983607 | 0.377049 | 0.065753 | 0.035616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102506 | 878 | 30 | 64 | 29.266667 | 0.926396 | 0.084282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
70db9d36a6757c4b90d7e4f497b3a15959df0ed3 | 126 | py | Python | test.py | qiulongquan/web_server | a9abd49d4f50ecd8045eec7c55e01051ad321c84 | [
"CC-BY-3.0"
] | 1 | 2019-04-05T09:30:37.000Z | 2019-04-05T09:30:37.000Z | test.py | qiulongquan/web_server | a9abd49d4f50ecd8045eec7c55e01051ad321c84 | [
"CC-BY-3.0"
] | null | null | null | test.py | qiulongquan/web_server | a9abd49d4f50ecd8045eec7c55e01051ad321c84 | [
"CC-BY-3.0"
] | null | null | null | import subprocess as sp
import os
sp.call('python run.py', shell = True)
path=os.path.join('c://', 'index.html')
print(path) | 18 | 39 | 0.690476 | 22 | 126 | 3.954545 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 126 | 7 | 40 | 18 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.212598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
70edc10b32a6ebec0ae5ce52dfd34f6808f439f6 | 85,847 | py | Python | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/worker_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | 1 | 2021-12-02T15:06:09.000Z | 2021-12-02T15:06:09.000Z | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/worker_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null | tensorflow_checkpoint_reader/pb/tensorflow/core/protobuf/worker_pb2.py | shawwn/tensorflow-checkpoint-reader | f0e65548411e3bd66a07e36bb1850907a05952d0 | [
"MIT"
] | null | null | null |
'Generated protocol buffer code.'
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
from google.protobuf import ... | 429.235 | 9,027 | 0.839971 | 11,242 | 85,847 | 6.044654 | 0.043053 | 0.044854 | 0.066825 | 0.060394 | 0.738706 | 0.678621 | 0.655075 | 0.649866 | 0.637505 | 0.58778 | 0 | 0.033084 | 0.039477 | 85,847 | 199 | 9,028 | 431.39196 | 0.791021 | 0.000361 | 0 | 0 | 1 | 0.045455 | 0.19719 | 0.15204 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085859 | 0 | 0.085859 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
70f5e82d7344f528ef17d2361abcc32b04905649 | 1,840 | py | Python | home/migrations/0004_auto_20190706_0004.py | AkinWilderman/myPort | 3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c | [
"Apache-2.0"
] | null | null | null | home/migrations/0004_auto_20190706_0004.py | AkinWilderman/myPort | 3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c | [
"Apache-2.0"
] | null | null | null | home/migrations/0004_auto_20190706_0004.py | AkinWilderman/myPort | 3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.7 on 2019-07-05 23:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_job'),
]
operations = [
migrations.AlterField(
model_name='home',
name='Jumbotron_Text',
fi... | 31.186441 | 84 | 0.564674 | 175 | 1,840 | 5.765714 | 0.302857 | 0.178394 | 0.222993 | 0.258672 | 0.587711 | 0.415263 | 0.085233 | 0.085233 | 0 | 0 | 0 | 0.032514 | 0.314674 | 1,840 | 58 | 85 | 31.724138 | 0.767645 | 0.024457 | 0 | 0.519231 | 1 | 0 | 0.123257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019231 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cb160dc829f1664e73a584594f088291e59dea06 | 3,491 | py | Python | stellarobservatory/quorum_intersection_test.py | carlos-echeverria/stellar-observatory | afc396227fefaabf4717ab7ea0842be0bab7f098 | [
"MIT"
] | null | null | null | stellarobservatory/quorum_intersection_test.py | carlos-echeverria/stellar-observatory | afc396227fefaabf4717ab7ea0842be0bab7f098 | [
"MIT"
] | null | null | null | stellarobservatory/quorum_intersection_test.py | carlos-echeverria/stellar-observatory | afc396227fefaabf4717ab7ea0842be0bab7f098 | [
"MIT"
] | null | null | null | """Test for Torstens's quorum intersection checker (Lachowski variant)"""
from stellarobservatory.quorum_intersection import quorum_intersection, is_quorum
from stellarobservatory.quorums import contains_slice
def test_has_quorum_intersection_false():
"""Test quorum_intersection() == False"""
# Basically two... | 35.989691 | 93 | 0.608422 | 460 | 3,491 | 4.345652 | 0.121739 | 0.162081 | 0.128064 | 0.112556 | 0.766883 | 0.756878 | 0.714857 | 0.667834 | 0.647824 | 0.645323 | 0 | 0.035041 | 0.239759 | 3,491 | 96 | 94 | 36.364583 | 0.718161 | 0.138356 | 0 | 0.476923 | 0 | 0 | 0.013477 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 1 | 0.153846 | false | 0 | 0.030769 | 0.076923 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cb21cf7e5da1ab8075841a0af7413a997bd2a04b | 2,377 | py | Python | tracker/migrations/0005_usermeasurementtypesvisibility.py | mateuszlizun/body-measurement-tracker | 824b20564d3b7421f602d484c7dd3c29ae1d3d7b | [
"MIT"
] | null | null | null | tracker/migrations/0005_usermeasurementtypesvisibility.py | mateuszlizun/body-measurement-tracker | 824b20564d3b7421f602d484c7dd3c29ae1d3d7b | [
"MIT"
] | null | null | null | tracker/migrations/0005_usermeasurementtypesvisibility.py | mateuszlizun/body-measurement-tracker | 824b20564d3b7421f602d484c7dd3c29ae1d3d7b | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-27 10:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tracker', '0004_alter_me... | 56.595238 | 118 | 0.635255 | 248 | 2,377 | 5.907258 | 0.28629 | 0.142662 | 0.307167 | 0.286689 | 0.540614 | 0.540614 | 0.319454 | 0 | 0 | 0 | 0 | 0.010215 | 0.217501 | 2,377 | 41 | 119 | 57.97561 | 0.777419 | 0.018931 | 0 | 0 | 1 | 0 | 0.157082 | 0.040773 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cb35af44e90f923de595efebaf430000ea02ced3 | 131 | py | Python | api/task/signals.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | api/task/signals.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | api/task/signals.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | from django.dispatch import Signal
task_cleanup_signal = Signal(providing_args=['apiview', 'result', 'task_id', 'status', 'obj'])
| 32.75 | 94 | 0.748092 | 17 | 131 | 5.529412 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091603 | 131 | 3 | 95 | 43.666667 | 0.789916 | 0 | 0 | 0 | 0 | 0 | 0.221374 | 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 |
cb8504e2ff80ff4d1668b08f25cb0dabc6b6e890 | 5,861 | py | Python | broken/new/samuel.py | DaMuffinDev/joel.enc | ab955215b2f4bdfe3b0db8e8d31aaf02e85e137f | [
"MIT"
] | null | null | null | broken/new/samuel.py | DaMuffinDev/joel.enc | ab955215b2f4bdfe3b0db8e8d31aaf02e85e137f | [
"MIT"
] | null | null | null | broken/new/samuel.py | DaMuffinDev/joel.enc | ab955215b2f4bdfe3b0db8e8d31aaf02e85e137f | [
"MIT"
] | null | null | null | import re
from tqdm import tqdm
import string
import random
from _table import lookup_subbyte, reverse_subbyte_lookup, character_lookup
def fill_list(list, characters: int):
list.append("&")
for i in range(characters):
list.append(hex(ord(random.choice(string.ascii_letters))))
return list
def crea... | 38.81457 | 205 | 0.647671 | 947 | 5,861 | 3.853221 | 0.123548 | 0.018635 | 0.026309 | 0.042203 | 0.344204 | 0.241984 | 0.217594 | 0.167717 | 0.167717 | 0.130995 | 0 | 0.039577 | 0.193824 | 5,861 | 151 | 206 | 38.81457 | 0.732698 | 0 | 0 | 0.128713 | 0 | 0.009901 | 0.047235 | 0.018557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247525 | false | 0 | 0.049505 | 0.118812 | 0.534653 | 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 |
cb8c2231d967d599019570a421034d46716701fe | 427 | py | Python | sklearn_try/news.py | ahmadhafidh/analysis-of-sentiment-ranking-and-rating-apps | 0d9b71eef573bff27575ff0d5be211b51cefd31b | [
"MIT"
] | 1 | 2019-06-30T11:51:24.000Z | 2019-06-30T11:51:24.000Z | sklearn_try/news.py | ahmadhafidh/analysis-of-sentiment-ranking-and-rating-apps | 0d9b71eef573bff27575ff0d5be211b51cefd31b | [
"MIT"
] | null | null | null | sklearn_try/news.py | ahmadhafidh/analysis-of-sentiment-ranking-and-rating-apps | 0d9b71eef573bff27575ff0d5be211b51cefd31b | [
"MIT"
] | null | null | null | from sklearn.datasets import fetch_20newsgroups
newsgroups_train = fetch_20newsgroups(subset='train')
from pprint import pprint
pprint(list(newsgroups_train.target_names))
cats = ['alt.atheism', 'sci.space']
newsgroups_train = fetch_20newsgroups(subset='train', categories=cats)
list(newsgroups_train.target_... | 26.6875 | 71 | 0.800937 | 52 | 427 | 6.346154 | 0.423077 | 0.318182 | 0.254545 | 0.193939 | 0.442424 | 0.260606 | 0 | 0 | 0 | 0 | 0 | 0.020888 | 0.103045 | 427 | 16 | 72 | 26.6875 | 0.840731 | 0 | 0 | 0 | 0 | 0 | 0.072639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
cba7b1556a8af501b2f5da8bf6f913ac98f59498 | 311 | py | Python | django_coinpayments/forms.py | SaberDoTcodeR/django-coinpayments | a40e0c6b7e5821756ce2b5b0838d1f0c42b2545c | [
"MIT"
] | 23 | 2018-04-06T03:56:01.000Z | 2022-01-14T21:00:10.000Z | django_coinpayments/forms.py | SaberDoTcodeR/django-coinpayments | a40e0c6b7e5821756ce2b5b0838d1f0c42b2545c | [
"MIT"
] | 7 | 2018-04-25T17:03:21.000Z | 2022-01-14T08:01:51.000Z | django_coinpayments/forms.py | SaberDoTcodeR/django-coinpayments | a40e0c6b7e5821756ce2b5b0838d1f0c42b2545c | [
"MIT"
] | 15 | 2018-04-16T14:00:52.000Z | 2022-01-12T19:27:24.000Z | from django import forms
from .utils import get_coins_list
class ChooseCoinToPayForm(forms.Form):
currency = forms.ChoiceField(choices=get_coins_list(),
widget=forms.RadioSelect(),
label='',
required=True)
| 31.1 | 60 | 0.536977 | 27 | 311 | 6.037037 | 0.703704 | 0.09816 | 0.147239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.389068 | 311 | 9 | 61 | 34.555556 | 0.857895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
cba8c0c03b7e7e02941a737d8f072e5f3e101c3c | 207 | py | Python | server/libs/notification_enum.py | teemosauce/rpi-cube | 6fd8cff81da5efe87fe4c911ce4b067644ea266f | [
"MIT"
] | 195 | 2019-12-26T11:19:27.000Z | 2022-03-28T04:20:34.000Z | server/libs/notification_enum.py | teemosauce/rpi-cube | 6fd8cff81da5efe87fe4c911ce4b067644ea266f | [
"MIT"
] | 144 | 2019-09-07T19:10:13.000Z | 2022-03-30T07:24:02.000Z | server/libs/notification_enum.py | teemosauce/rpi-cube | 6fd8cff81da5efe87fe4c911ce4b067644ea266f | [
"MIT"
] | 51 | 2019-12-02T00:13:47.000Z | 2022-03-29T17:26:47.000Z | from enum import Enum
class NotificationEnum(Enum):
config_refresh = 1
config_refresh_finished = 2
config_refresh_failed = 3
process_stop = 4
process_pause = 5
process_continue = 6
| 18.818182 | 31 | 0.714976 | 27 | 207 | 5.185185 | 0.703704 | 0.278571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.241546 | 207 | 10 | 32 | 20.7 | 0.853503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 |
cbb02847fa741b639cf6cfbd70020430670e0257 | 123 | py | Python | lowell-dashboard/app/tools/make_schedule/wkschedule.py | lowell-dashboard/dashboard-flask | c83ad772f40e48258bf845908ffc361d8fe08120 | [
"Apache-2.0"
] | 3 | 2018-12-06T17:19:20.000Z | 2022-03-29T22:28:59.000Z | lowell-dashboard/app/tools/make_schedule/wkschedule.py | lowell-dashboard/dashboard-flask | c83ad772f40e48258bf845908ffc361d8fe08120 | [
"Apache-2.0"
] | 10 | 2018-12-08T03:54:52.000Z | 2022-03-29T22:27:42.000Z | lowell-dashboard/app/tools/make_schedule/wkschedule.py | lowell-dashboard/dashboard-flask | c83ad772f40e48258bf845908ffc361d8fe08120 | [
"Apache-2.0"
] | null | null | null | class WeekSchedule():
def __init__(self, dates=[], codes=[]):
self.weeknum = 0
self.dates = dates
self.codes = codes | 24.6 | 40 | 0.666667 | 16 | 123 | 4.875 | 0.5625 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.170732 | 123 | 5 | 41 | 24.6 | 0.754902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1dabd7e3b3c9b4beb638f6213c7ffbb88c70dc53 | 50 | py | Python | apps/api/v2/__init__.py | MySmile/mysmile | 5abe4baa7970674d1f8365d875519283c2e29dae | [
"BSD-3-Clause"
] | 5 | 2015-05-03T09:51:32.000Z | 2019-05-21T14:19:02.000Z | apps/api/v2/__init__.py | MySmile/mysmile | 5abe4baa7970674d1f8365d875519283c2e29dae | [
"BSD-3-Clause"
] | 24 | 2015-04-05T16:28:08.000Z | 2022-03-11T23:36:56.000Z | apps/api/v2/__init__.py | MySmile/mysmile | 5abe4baa7970674d1f8365d875519283c2e29dae | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'apps.api.v2.apps.ApiConfig'
| 25 | 49 | 0.8 | 8 | 50 | 4.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.06 | 50 | 1 | 50 | 50 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 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 |
1dad55d5bac00d63ac8485622e68edf4d15d44b1 | 217 | py | Python | Connector/admin/constants.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | Connector/admin/constants.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | Connector/admin/constants.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
ADMIN_SCHEMA_FOLDER = "admin/schemas/"
ADMIN_SCHEMA_CHAR_SEPARATOR = "_"
ADD_COIN_METHOD = "addcoin"
GET_COIN_METHOD = "getcoin"
REMOVE_COIN_METHOD = "removecoin"
UPDATE_COIN_METHOD = "updatecoin"
| 21.7 | 38 | 0.788018 | 28 | 217 | 5.607143 | 0.678571 | 0.254777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 217 | 9 | 39 | 24.111111 | 0.80102 | 0.073733 | 0 | 0 | 0 | 0 | 0.245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1db61cbec80cb93f5c82777710252cd643ea4efa | 123 | py | Python | exercises/exc_D1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/exc_D1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/exc_D1.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | #1 Create countries dictionary
countries = __________________
#2 Print out the capital of egypt
print(__________________) | 24.6 | 33 | 0.829268 | 13 | 123 | 5.076923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.130081 | 123 | 5 | 34 | 24.6 | 0.598131 | 0.504065 | 0 | 0 | 0 | 0 | 0 | 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 |
1dbdafae96ca8bdcec1783d4ac6d7a37215bf6e7 | 1,187 | py | Python | x5gon_content_metadata_dataset/io.py | IRCAI/X5GON_content_metadata_dataset | aac2384157cacbdb1e519ee6337c713eb10b3fdc | [
"CC-BY-4.0"
] | null | null | null | x5gon_content_metadata_dataset/io.py | IRCAI/X5GON_content_metadata_dataset | aac2384157cacbdb1e519ee6337c713eb10b3fdc | [
"CC-BY-4.0"
] | null | null | null | x5gon_content_metadata_dataset/io.py | IRCAI/X5GON_content_metadata_dataset | aac2384157cacbdb1e519ee6337c713eb10b3fdc | [
"CC-BY-4.0"
] | null | null | null | import pandas as pd
SEPARATOR = "|||"
def _split_text(text, sep=SEPARATOR):
return [t.strip() for t in str(text).split(sep)]
def load_dataset(filepath):
"""Loads the x5gon metadata dataset from the specified path
Args:
filepath (str): filepath to the TSV file with metadata dataset
Returns... | 38.290323 | 125 | 0.57203 | 143 | 1,187 | 4.692308 | 0.475524 | 0.040238 | 0.038748 | 0.029806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002554 | 0.340354 | 1,187 | 30 | 126 | 39.566667 | 0.854406 | 0.663016 | 0 | 0 | 0 | 0 | 0.107246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1dea1409f2fd757a98d96a2754d573995a2a736e | 155 | py | Python | web_elements/table/td.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | 8 | 2019-03-05T12:23:07.000Z | 2021-01-10T09:49:27.000Z | web_elements/table/td.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | null | null | null | web_elements/table/td.py | tronze/PythonCustomCalendar | bd7ffbbf28616ccf65e545605ede5f3dda251c9a | [
"BSD-3-Clause"
] | 2 | 2019-02-18T06:34:34.000Z | 2019-03-05T12:17:22.000Z | from ..web_element import WebElement
class TdElement(WebElement):
TD = 'td'
def __init__(self):
super().__init__(element_type=self.TD)
| 15.5 | 46 | 0.677419 | 19 | 155 | 5 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206452 | 155 | 9 | 47 | 17.222222 | 0.772358 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | 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 |
1df3057703672e6a31b41b37cbadd545c4e589ed | 226 | py | Python | sendfile/backends/xsendfile.py | NotSqrt/django-sendfile | 31ceca3298c83b69361f7af59a65b06a0ca69506 | [
"BSD-3-Clause"
] | 1 | 2015-10-23T18:00:51.000Z | 2015-10-23T18:00:51.000Z | sendfile/backends/xsendfile.py | NotSqrt/django-sendfile | 31ceca3298c83b69361f7af59a65b06a0ca69506 | [
"BSD-3-Clause"
] | null | null | null | sendfile/backends/xsendfile.py | NotSqrt/django-sendfile | 31ceca3298c83b69361f7af59a65b06a0ca69506 | [
"BSD-3-Clause"
] | null | null | null | from django.http import HttpResponse
from django.utils.encoding import smart_str
def sendfile(request, filename, **kwargs):
response = HttpResponse()
response['X-Sendfile'] = smart_str(filename)
return response
| 22.6 | 48 | 0.752212 | 27 | 226 | 6.222222 | 0.62963 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154867 | 226 | 9 | 49 | 25.111111 | 0.879581 | 0 | 0 | 0 | 0 | 0 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
1dfcda565aa037a729dca081add9b1b386ddf78a | 5,805 | py | Python | chb/asm/AsmRegister.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | chb/asm/AsmRegister.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | chb/asm/AsmRegister.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# Access to the CodeHawk Binary Analyzer Analysis Results
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016-2020 Kestrel Technology LLC
#
#... | 35.613497 | 80 | 0.531611 | 594 | 5,805 | 4.951178 | 0.257576 | 0.102006 | 0.057803 | 0.086705 | 0.511391 | 0.508671 | 0.428766 | 0.392044 | 0.392044 | 0.392044 | 0 | 0.003788 | 0.135917 | 5,805 | 162 | 81 | 35.833333 | 0.582536 | 0.484065 | 0 | 0.393443 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.639344 | false | 0 | 0 | 0.491803 | 0.803279 | 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 |
3811f55f1c82a91b5af469548d334ddd86ba58d3 | 210 | py | Python | pipescaler/__init__.py | KarlTDebiec/PipeScaler | b990ece8f3dd2c3506c226ed871871997fc57beb | [
"BSD-3-Clause"
] | 1 | 2022-02-07T03:47:53.000Z | 2022-02-07T03:47:53.000Z | pipescaler/__init__.py | KarlTDebiec/PipeScaler | b990ece8f3dd2c3506c226ed871871997fc57beb | [
"BSD-3-Clause"
] | 49 | 2022-01-17T15:16:22.000Z | 2022-03-28T03:00:39.000Z | pipescaler/__init__.py | KarlTDebiec/PipeScaler | b990ece8f3dd2c3506c226ed871871997fc57beb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# pipescaler/__init__.py
#
# Copyright (C) 2020-2021 Karl T Debiec
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD license.
| 23.333333 | 72 | 0.704762 | 31 | 210 | 4.645161 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 0.204762 | 210 | 8 | 73 | 26.25 | 0.814371 | 0.92381 | 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 |
381b1b39db3c7ea5935c7967d4ba5a82c7a7e81d | 926 | py | Python | account_creaters/generate_account_data.py | erhan-/pokefarm | 797ad72d44bdccd2b7a32080d259d187988bd4ab | [
"MIT"
] | null | null | null | account_creaters/generate_account_data.py | erhan-/pokefarm | 797ad72d44bdccd2b7a32080d259d187988bd4ab | [
"MIT"
] | null | null | null | account_creaters/generate_account_data.py | erhan-/pokefarm | 797ad72d44bdccd2b7a32080d259d187988bd4ab | [
"MIT"
] | null | null | null | from faker import Faker
# install with: pip install faker
import string
import random
import json
import sys
def gen_password(length, special=False):
# TODO: do this more secure
alpha = string.ascii_uppercase + string.ascii_lowercase + string.digits
if special:
alpha += "@${}()^&*%#!"
return ''... | 25.027027 | 75 | 0.62959 | 122 | 926 | 4.680328 | 0.57377 | 0.049037 | 0.035026 | 0.059545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032742 | 0.208423 | 926 | 36 | 76 | 25.722222 | 0.746248 | 0.061555 | 0 | 0 | 0 | 0 | 0.150115 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | null | null | 0.111111 | 0.185185 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
381c68c41ff37227ef5347b98ef68391090bd919 | 214 | py | Python | LeetCode/python3/650.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/python3/650.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/python3/650.py | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution:
def minSteps(self, n: int) -> int:
res, m = 0, 2
while n > 1:
while n % m == 0:
res += m
n //= m
m += 1
return res | 23.777778 | 38 | 0.341121 | 27 | 214 | 2.703704 | 0.518519 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.546729 | 214 | 9 | 39 | 23.777778 | 0.701031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
382d576c44a6fa463366738de9481ac25116c75b | 52 | py | Python | astrobot/cogs/spotify/__init__.py | astro-devel/astrobot | d0a957731cabed23a7442c8ad4672e7331946e26 | [
"MIT"
] | null | null | null | astrobot/cogs/spotify/__init__.py | astro-devel/astrobot | d0a957731cabed23a7442c8ad4672e7331946e26 | [
"MIT"
] | 8 | 2022-01-24T00:14:54.000Z | 2022-03-25T18:19:20.000Z | astrobot/cogs/spotify/__init__.py | astro-devel/astrobot | d0a957731cabed23a7442c8ad4672e7331946e26 | [
"MIT"
] | 1 | 2022-01-24T22:37:47.000Z | 2022-01-24T22:37:47.000Z | from .spotify import Spotify
__all__ = ["Spotify"]
| 13 | 28 | 0.730769 | 6 | 52 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 3 | 29 | 17.333333 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.