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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02719ab48ca0374f38237550b7a8cd8c901c6ed9 | 426 | py | Python | aries_cloudagent/revocation/error.py | krgko/aries-cloudagent-python | aced0c24b949856471414ea752d672222e4800d2 | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/revocation/error.py | krgko/aries-cloudagent-python | aced0c24b949856471414ea752d672222e4800d2 | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/revocation/error.py | krgko/aries-cloudagent-python | aced0c24b949856471414ea752d672222e4800d2 | [
"Apache-2.0"
] | null | null | null | """Revocation error classes."""
from ..core.error import BaseError
class RevocationError(BaseError):
"""Base exception for revocation-related errors."""
class RevocationNotSupportedError(RevocationError):
"""Attempted to create registry for non-revocable cred def."""
class RevocationRegistryBadSizeError(... | 26.625 | 87 | 0.767606 | 44 | 426 | 7.431818 | 0.704545 | 0.146789 | 0.159021 | 0.195719 | 0.244648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133803 | 426 | 15 | 88 | 28.4 | 0.886179 | 0.483568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
027319fd9d0adff883925a2502d65d516bf5fbd4 | 949 | py | Python | test/matchers.py | madedotcom/ouroboros | 0664898d9c707f62a0987105bd51c5f1696d1f8b | [
"MIT"
] | 8 | 2016-03-17T20:15:42.000Z | 2018-05-08T21:39:03.000Z | test/matchers.py | madedotcom/ouroboros | 0664898d9c707f62a0987105bd51c5f1696d1f8b | [
"MIT"
] | 5 | 2016-03-21T17:25:10.000Z | 2020-05-05T14:54:23.000Z | test/matchers.py | madedotcom/ouroboros | 0664898d9c707f62a0987105bd51c5f1696d1f8b | [
"MIT"
] | null | null | null | import json
from expects.matchers import Matcher
from pprint import PrettyPrinter
import httpretty
pp = PrettyPrinter(indent=4)
class have_posted_to(Matcher):
_fail = "Expected {2} request to {0} but was {1}"
def __init__(self, path, method=httpretty.POST):
self._path = path
self._method = m... | 27.114286 | 86 | 0.657534 | 132 | 949 | 4.515152 | 0.348485 | 0.053691 | 0.087248 | 0.026846 | 0.298658 | 0.228188 | 0.228188 | 0.14094 | 0.14094 | 0 | 0 | 0.010811 | 0.220232 | 949 | 34 | 87 | 27.911765 | 0.794595 | 0 | 0 | 0.173913 | 0 | 0 | 0.125395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.173913 | 0.173913 | 0.73913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
65f091fc9916d9a3eb87a6d979fe251faba9b0d8 | 246 | py | Python | topi/python/topi/hls/__init__.py | mingwayzhang/tvm | 3b287c4d4e6d83e6fd30db47ffa3d5481a332a63 | [
"Apache-2.0"
] | 64 | 2021-05-02T14:42:34.000Z | 2021-05-06T01:35:03.000Z | topi/python/topi/hls/__init__.py | clhne/tvm | d59320c764bd09474775e1b292f3c05c27743d24 | [
"Apache-2.0"
] | 23 | 2019-07-29T05:21:52.000Z | 2020-08-31T18:51:42.000Z | topi/python/topi/hls/__init__.py | clhne/tvm | d59320c764bd09474775e1b292f3c05c27743d24 | [
"Apache-2.0"
] | 51 | 2019-07-12T05:10:25.000Z | 2021-07-28T16:19:06.000Z | # pylint: disable=redefined-builtin, wildcard-import
"""HLS specific declaration and schedules."""
from __future__ import absolute_import as _abs
from .injective import schedule_injective, schedule_elemwise, schedule_broadcast
from .nn import *
| 35.142857 | 80 | 0.821138 | 30 | 246 | 6.433333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105691 | 246 | 6 | 81 | 41 | 0.877273 | 0.369919 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
65fd5b7d73dfd997bd148f3215cfbf915d3ddbe9 | 91 | py | Python | subjects/apps.py | soumith2105/vasv-stdin-backend | 72472af0f4a9ea5d9d51f980d148badbb9252fe6 | [
"MIT"
] | null | null | null | subjects/apps.py | soumith2105/vasv-stdin-backend | 72472af0f4a9ea5d9d51f980d148badbb9252fe6 | [
"MIT"
] | 1 | 2022-02-21T15:09:06.000Z | 2022-02-21T15:09:06.000Z | subjects/apps.py | soumith2105/vasv-stdin-backend | 72472af0f4a9ea5d9d51f980d148badbb9252fe6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SubjectsConfig(AppConfig):
name = "subjects"
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
5a0e9c1666209bd5122aa5c1a111ca7fd60b30ba | 563 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/SUN/convolution_border_modes.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/SUN/convolution_border_modes.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/SUN/convolution_border_modes.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension SUN.convolution_border_modes
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SUN_convolution_border_modes'
_DEPRECATED = Fa... | 33.117647 | 71 | 0.817052 | 70 | 563 | 6.328571 | 0.571429 | 0.06772 | 0.090293 | 0.112867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.119005 | 563 | 16 | 72 | 35.1875 | 0.885081 | 0.316163 | 0 | 0 | 1 | 0 | 0.131367 | 0.08311 | 0 | 0 | 0.016086 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5a17b1d6fd343e87772f8addbea1fc28102dd26c | 1,299 | py | Python | migration-script/migrate_rt_paris.py | iomonad/qgis-tools | 93752f51405c99df8488c2978f3a7021fa98e75f | [
"MIT"
] | 4 | 2020-04-28T12:54:46.000Z | 2020-12-20T20:02:15.000Z | migration-script/migrate_rt_paris.py | iomonad/qgis-tools | 93752f51405c99df8488c2978f3a7021fa98e75f | [
"MIT"
] | null | null | null | migration-script/migrate_rt_paris.py | iomonad/qgis-tools | 93752f51405c99df8488c2978f3a7021fa98e75f | [
"MIT"
] | 1 | 2018-11-14T13:29:34.000Z | 2018-11-14T13:29:34.000Z | #
# Nomalize Data
# (c) iomonad <iomonad@riseup.net>
#
FALLBACK_NAME = "Trappe d'accès"
layer = iface.activeLayer()
layer.startEditing()
for feature in layer.getFeatures():
if not feature['name']:
layer.changeAttributeValue(feature.id(), 0, FALLBACK_NAME)
continue
layer.changeAttributeValue... | 41.903226 | 92 | 0.647421 | 153 | 1,299 | 5.48366 | 0.287582 | 0.268176 | 0.343266 | 0.36472 | 0.649583 | 0.54112 | 0.491061 | 0.388558 | 0.388558 | 0.154946 | 0 | 0.00831 | 0.166282 | 1,299 | 31 | 93 | 41.903226 | 0.76639 | 0.035412 | 0 | 0.173913 | 0 | 0 | 0.121697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.043478 | 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 |
5a2ba3726f2f73904ceba27684b1bae0e2e9d422 | 77 | py | Python | backends/paltosf/__init__.py | snlab/alto-server | 1d8b8530a8948930c267298801b0e2dcd78dd71a | [
"Apache-2.0"
] | null | null | null | backends/paltosf/__init__.py | snlab/alto-server | 1d8b8530a8948930c267298801b0e2dcd78dd71a | [
"Apache-2.0"
] | null | null | null | backends/paltosf/__init__.py | snlab/alto-server | 1d8b8530a8948930c267298801b0e2dcd78dd71a | [
"Apache-2.0"
] | 1 | 2015-04-25T17:03:18.000Z | 2015-04-25T17:03:18.000Z | #!/usr/bin/env python3
from .sfbackend import create_instance
__all__ = []
| 12.833333 | 38 | 0.74026 | 10 | 77 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.142857 | 77 | 5 | 39 | 15.4 | 0.772727 | 0.272727 | 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 |
5a2fe7c90dfafdbdc9d71c16ab670854280a79f1 | 222 | py | Python | HyperclassifierSearch/__init__.py | dabln/HyperclassifierSearch | 21eddc3ccd27f753f4ae75690a6ab5bc8d8ae1a0 | [
"MIT"
] | 1 | 2021-07-22T12:42:00.000Z | 2021-07-22T12:42:00.000Z | HyperclassifierSearch/__init__.py | dabln/HyperclassifierSearch | 21eddc3ccd27f753f4ae75690a6ab5bc8d8ae1a0 | [
"MIT"
] | null | null | null | HyperclassifierSearch/__init__.py | dabln/HyperclassifierSearch | 21eddc3ccd27f753f4ae75690a6ab5bc8d8ae1a0 | [
"MIT"
] | 2 | 2021-04-25T06:41:52.000Z | 2021-07-22T12:42:23.000Z | from .HyperclassifierSearch import HyperclassifierSearch
# module level doc-string
__doc__ = """
HyperclassifierSearch allows to train multiple classifiers/pipelines in Python with GridSearchCV or RandomizedSearchCV.
"""
| 31.714286 | 119 | 0.833333 | 22 | 222 | 8.227273 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112613 | 222 | 6 | 120 | 37 | 0.918782 | 0.103604 | 0 | 0 | 0 | 0 | 0.614213 | 0.213198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
5a311a27b72912e70673b3ca5eff31630d9d383f | 101 | py | Python | tests/api/urls.py | drf-tools/drf-app-generators | b73db872810f6d6d931b564082942ac5227464cb | [
"MIT"
] | 3 | 2020-03-17T10:00:43.000Z | 2021-09-28T04:08:46.000Z | tests/api/urls.py | drf-tools/drf-app-generators | b73db872810f6d6d931b564082942ac5227464cb | [
"MIT"
] | 18 | 2020-03-17T09:49:26.000Z | 2021-09-22T18:45:30.000Z | tests/api/urls.py | drf-tools/drf-app-generators | b73db872810f6d6d931b564082942ac5227464cb | [
"MIT"
] | 1 | 2020-03-19T04:44:06.000Z | 2020-03-19T04:44:06.000Z | from rest_framework.routers import SimpleRouter
router = SimpleRouter()
urlpatterns = router.urls
| 14.428571 | 47 | 0.811881 | 11 | 101 | 7.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 101 | 6 | 48 | 16.833333 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a449a151695550bd3676718f87ed098cf693d54 | 7,624 | py | Python | core/migrations/0001_initial.py | DoorstepDelhi/COVID-19-Back-end | a40852c459ad8553cc3085b107233c827122b5d4 | [
"MIT"
] | null | null | null | core/migrations/0001_initial.py | DoorstepDelhi/COVID-19-Back-end | a40852c459ad8553cc3085b107233c827122b5d4 | [
"MIT"
] | null | null | null | core/migrations/0001_initial.py | DoorstepDelhi/COVID-19-Back-end | a40852c459ad8553cc3085b107233c827122b5d4 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-26 01:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 52.57931 | 142 | 0.577125 | 729 | 7,624 | 5.897119 | 0.163237 | 0.063271 | 0.072575 | 0.094906 | 0.753431 | 0.747151 | 0.709933 | 0.650151 | 0.568272 | 0.555478 | 0 | 0.010536 | 0.277938 | 7,624 | 144 | 143 | 52.944444 | 0.770391 | 0.00564 | 0 | 0.583942 | 1 | 0 | 0.122839 | 0.011347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021898 | 0 | 0.051095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
5a5ce3f08e4efc26f2267f5c59ce7a46020b3f85 | 207 | py | Python | code/Solutions TP2/racine.py | christophesaintjean/IntroProgS1_2020 | 99555d1e3681d88ee023592a16caecdec6f7c0b4 | [
"CC0-1.0"
] | null | null | null | code/Solutions TP2/racine.py | christophesaintjean/IntroProgS1_2020 | 99555d1e3681d88ee023592a16caecdec6f7c0b4 | [
"CC0-1.0"
] | null | null | null | code/Solutions TP2/racine.py | christophesaintjean/IntroProgS1_2020 | 99555d1e3681d88ee023592a16caecdec6f7c0b4 | [
"CC0-1.0"
] | null | null | null | import math
x = float(input("x ? "))
if x >= 0:
rac_x = math.sqrt(x)
print(f"La racine carrée de {x} est {rac_x}")
else:
print(f"Impossible de calculer la racine carrée de {x} qui est négatif") | 23 | 76 | 0.63285 | 38 | 207 | 3.394737 | 0.552632 | 0.062016 | 0.217054 | 0.248062 | 0.263566 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.222222 | 207 | 9 | 76 | 23 | 0.795031 | 0 | 0 | 0 | 0 | 0 | 0.485577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5a642acf2e018c33bbcd24022d586ffb900abde0 | 1,244 | py | Python | compss/programming_model/bindings/python/src/pycompss/tests/functions/test_reduce.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | 31 | 2018-03-06T09:30:03.000Z | 2022-03-23T09:51:05.000Z | compss/programming_model/bindings/python/src/pycompss/tests/functions/test_reduce.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | 3 | 2020-08-28T17:16:50.000Z | 2021-11-11T21:58:02.000Z | compss/programming_model/bindings/python/src/pycompss/tests/functions/test_reduce.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | 15 | 2018-06-07T10:03:27.000Z | 2022-02-23T14:59:42.000Z | #!/usr/bin/python
#
# Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 27.644444 | 76 | 0.712219 | 179 | 1,244 | 4.871508 | 0.547486 | 0.068807 | 0.055046 | 0.036697 | 0.295872 | 0.295872 | 0.295872 | 0.116972 | 0.116972 | 0.116972 | 0 | 0.022044 | 0.197749 | 1,244 | 44 | 77 | 28.272727 | 0.851703 | 0.51045 | 0 | 0.142857 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a84dc14c5c564f0c46ac2afb4d897005b01b54a | 1,703 | py | Python | sentence-reading/question_respondent.py | michalovsky/knowlegde-based-ai-mini-projects | 8cfc00eb6b1c03d60bbd72e95a8ec1e50c294774 | [
"MIT"
] | null | null | null | sentence-reading/question_respondent.py | michalovsky/knowlegde-based-ai-mini-projects | 8cfc00eb6b1c03d60bbd72e95a8ec1e50c294774 | [
"MIT"
] | null | null | null | sentence-reading/question_respondent.py | michalovsky/knowlegde-based-ai-mini-projects | 8cfc00eb6b1c03d60bbd72e95a8ec1e50c294774 | [
"MIT"
] | null | null | null | from question_frame import QuestionFrame
from sentence_frame import SentenceFrame
def answer_question_about_sentence(question_frame: QuestionFrame, sentence_frame: SentenceFrame) -> str:
if "Who" in question_frame.question_words:
if len(question_frame.question_words) == 1:
return sentence_fram... | 39.604651 | 104 | 0.681738 | 201 | 1,703 | 5.517413 | 0.208955 | 0.222723 | 0.227232 | 0.281335 | 0.566276 | 0.454463 | 0.366096 | 0.366096 | 0.196573 | 0.196573 | 0 | 0.011811 | 0.254257 | 1,703 | 43 | 105 | 39.604651 | 0.861417 | 0 | 0 | 0.222222 | 0 | 0 | 0.019366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.5 | 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 |
ce49d3f39e08f039e051f5dd4543f790024b12eb | 24,146 | py | Python | anasint.py | Kaysera/LanguageProcessorCompiler | 4b2bb7254d4ef710b4396992306ace2f9796ae83 | [
"MIT"
] | null | null | null | anasint.py | Kaysera/LanguageProcessorCompiler | 4b2bb7254d4ef710b4396992306ace2f9796ae83 | [
"MIT"
] | null | null | null | anasint.py | Kaysera/LanguageProcessorCompiler | 4b2bb7254d4ef710b4396992306ace2f9796ae83 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import componentes
import flujo
import string
import sys
import analex
import ASTree as AST
from sys import argv
from sets import ImmutableSet
class Anasint:
def __init__(self, lexico):
self.ast = []
self.tablaSim = {}
self.lexico = lexico
self.avanza()
... | 48.583501 | 332 | 0.575333 | 2,595 | 24,146 | 5.347206 | 0.082081 | 0.241136 | 0.197247 | 0.106803 | 0.747045 | 0.691626 | 0.634981 | 0.589147 | 0.581868 | 0.541222 | 0 | 0.000177 | 0.296322 | 24,146 | 496 | 333 | 48.681452 | 0.816491 | 0.018595 | 0 | 0.562358 | 0 | 0 | 0.126078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006803 | 0.018141 | null | null | 0.0839 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce5eee3ba08d986990bebf3bd9b2f90fca5b4e48 | 211 | py | Python | wagtailnhsukfrontend/settings/apps.py | mikemonteith-livi/wagtail-nhsuk-frontend | a51512a40e29a649d373274f7a44530954b11e93 | [
"MIT"
] | 21 | 2019-04-12T13:32:06.000Z | 2022-01-18T02:40:22.000Z | wagtailnhsukfrontend/settings/apps.py | mikemonteith-livi/wagtail-nhsuk-frontend | a51512a40e29a649d373274f7a44530954b11e93 | [
"MIT"
] | 142 | 2019-02-15T15:14:13.000Z | 2022-03-28T15:08:10.000Z | wagtailnhsukfrontend/settings/apps.py | mikemonteith-livi/wagtail-nhsuk-frontend | a51512a40e29a649d373274f7a44530954b11e93 | [
"MIT"
] | 13 | 2019-02-15T16:41:35.000Z | 2022-03-14T19:05:38.000Z | from django.apps import AppConfig
class SettingsAppConfig(AppConfig):
name = 'wagtailnhsukfrontend.settings'
label = 'wagtailnhsukfrontendsettings'
verbose_name = "Wagtail NHSUK Frontend Settings"
| 26.375 | 52 | 0.781991 | 19 | 211 | 8.631579 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151659 | 211 | 7 | 53 | 30.142857 | 0.916201 | 0 | 0 | 0 | 0 | 0 | 0.417062 | 0.270142 | 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 |
ce7b39a84671ded1b324daa487b3d47485b253fa | 429 | py | Python | auctions/migrations/0003_auto_20200711_1614.py | nmk0462/commerce | a5dee3a63d986bf8630cccc859f372133d5084f9 | [
"MIT"
] | 14 | 2020-07-26T07:45:54.000Z | 2022-03-31T00:05:58.000Z | auctions/migrations/0003_auto_20200711_1614.py | nmk0462/commerce | a5dee3a63d986bf8630cccc859f372133d5084f9 | [
"MIT"
] | null | null | null | auctions/migrations/0003_auto_20200711_1614.py | nmk0462/commerce | a5dee3a63d986bf8630cccc859f372133d5084f9 | [
"MIT"
] | 17 | 2020-07-20T06:22:12.000Z | 2021-04-12T11:12:09.000Z | # Generated by Django 3.0.8 on 2020-07-11 10:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0002_bids_listings'),
]
operations = [
migrations.RenameModel(
old_name='Bids',
new_name='Bid',
),
... | 19.5 | 47 | 0.55711 | 43 | 429 | 5.418605 | 0.697674 | 0.180258 | 0.206009 | 0.240343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065972 | 0.328671 | 429 | 21 | 48 | 20.428571 | 0.743056 | 0.104895 | 0 | 0.266667 | 1 | 0 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
ce8b9fec7cac777d6629994fd60dd5d2753c1b33 | 1,585 | py | Python | examples/python_file.py | luxcium/vsc-pop-n-lock-theme | 73c4f8dd4cf1200547cebd0cae75ad0bd3e827f7 | [
"MIT"
] | 78 | 2019-06-11T09:21:26.000Z | 2022-01-20T19:32:01.000Z | examples/python_file.py | luxcium/vsc-pop-n-lock-theme | 73c4f8dd4cf1200547cebd0cae75ad0bd3e827f7 | [
"MIT"
] | 32 | 2019-06-13T02:16:45.000Z | 2022-03-12T09:29:42.000Z | examples/python_file.py | luxcium/vsc-pop-n-lock-theme | 73c4f8dd4cf1200547cebd0cae75ad0bd3e827f7 | [
"MIT"
] | 11 | 2019-06-11T09:21:28.000Z | 2021-11-18T21:09:47.000Z | #!/usr/bin/env python
"""Test file for Python syntax highlighting in editors / IDEs.
Meant to cover a wide range of different types of statements and expressions.
Not necessarily sensical or comprehensive (assume that if one exception is
highlighted that all are, for instance).
Extraneous trailing whitespace can't be... | 20.320513 | 77 | 0.695899 | 220 | 1,585 | 4.954545 | 0.672727 | 0.011009 | 0.031193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018298 | 0.20694 | 1,585 | 77 | 78 | 20.584416 | 0.848846 | 0.332492 | 0 | 0.130435 | 0 | 0 | 0.10802 | 0 | 0 | 0 | 0 | 0.012987 | 0.021739 | 0 | null | null | 0.130435 | 0.043478 | null | null | 0.021739 | 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 |
ce8ce94ceaf852d7e69cbe36f91fe11cb706332b | 768 | py | Python | pyqmri/models/__init__.py | agahkarakuzu/PyQMRI | 30871de4cc15dee573f9fa71990b1a4331a690f2 | [
"Apache-2.0"
] | 18 | 2019-08-09T18:42:33.000Z | 2022-03-22T07:56:48.000Z | pyqmri/models/__init__.py | agahkarakuzu/PyQMRI | 30871de4cc15dee573f9fa71990b1a4331a690f2 | [
"Apache-2.0"
] | 4 | 2020-10-05T15:56:58.000Z | 2021-08-19T11:51:54.000Z | pyqmri/models/__init__.py | agahkarakuzu/PyQMRI | 30871de4cc15dee573f9fa71990b1a4331a690f2 | [
"Apache-2.0"
] | 5 | 2020-04-21T17:28:58.000Z | 2020-12-05T21:44:50.000Z | """Package containig various model files for fitting.
This package contains the various MRI models currently implemented for the
toolbox. In additon, the "GeneralModel" can be run with a simple text file
to devine new model. An exemplary textfile for simple models can be
generated by running the "genDefaultModelfile" ... | 36.571429 | 78 | 0.707031 | 96 | 768 | 5.614583 | 0.5 | 0.122449 | 0.144712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223958 | 768 | 20 | 79 | 38.4 | 0.904362 | 0.66276 | 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 |
ce8f7cf222878c52b0c267850ef355c2ee3429e1 | 208 | py | Python | cfgov/prepaid_agreements/urls.py | thephillipsequation/cfgov-refresh | 1412dd4215fce5597c0ec704b0d480cf00aeb82c | [
"CC0-1.0"
] | 1 | 2019-11-26T20:18:22.000Z | 2019-11-26T20:18:22.000Z | cfgov/prepaid_agreements/urls.py | thephillipsequation/cfgov-refresh | 1412dd4215fce5597c0ec704b0d480cf00aeb82c | [
"CC0-1.0"
] | null | null | null | cfgov/prepaid_agreements/urls.py | thephillipsequation/cfgov-refresh | 1412dd4215fce5597c0ec704b0d480cf00aeb82c | [
"CC0-1.0"
] | 1 | 2019-12-28T14:04:07.000Z | 2019-12-28T14:04:07.000Z | from django.conf.urls import url
from prepaid_agreements.views import detail, index
urlpatterns = [
url(r'^$', index, name='index'),
url(r'^detail/(?P<product_id>\d+)/$', detail, name='detail'),
]
| 20.8 | 65 | 0.663462 | 29 | 208 | 4.689655 | 0.62069 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 208 | 9 | 66 | 23.111111 | 0.764045 | 0 | 0 | 0 | 0 | 0 | 0.201923 | 0.139423 | 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 |
ce93e566c412fa898f7eeefdf0494ed7198b9ff2 | 129 | py | Python | imagepy/menus/Process/__init__.py | adines/imagepy | d7cdf3273d25e06046626ef2ef9200b1846ea49a | [
"BSD-4-Clause"
] | 1 | 2019-02-22T03:09:24.000Z | 2019-02-22T03:09:24.000Z | imagepy/menus/Process/__init__.py | adines/imagepy | d7cdf3273d25e06046626ef2ef9200b1846ea49a | [
"BSD-4-Clause"
] | null | null | null | imagepy/menus/Process/__init__.py | adines/imagepy | d7cdf3273d25e06046626ef2ef9200b1846ea49a | [
"BSD-4-Clause"
] | null | null | null | catlog = ['Math', 'Binary', 'Filters', '-', 'Threshold', 'Hydrology', 'Features', 'Segment', 'repair_plg', '-', 'calculator_plg'] | 129 | 129 | 0.620155 | 12 | 129 | 6.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 129 | 1 | 129 | 129 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.584615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce94aa3ff54dba1808c15121f76515b1a5ba351d | 154 | py | Python | serial_reader.py | elfofmaxwell/BENG187_length_measurements | 5e24a3b7e9508eb3ebab6782eec63cdbdb0d6787 | [
"MIT"
] | null | null | null | serial_reader.py | elfofmaxwell/BENG187_length_measurements | 5e24a3b7e9508eb3ebab6782eec63cdbdb0d6787 | [
"MIT"
] | null | null | null | serial_reader.py | elfofmaxwell/BENG187_length_measurements | 5e24a3b7e9508eb3ebab6782eec63cdbdb0d6787 | [
"MIT"
] | null | null | null | import follow_log
ser_log_path = 'D:\\se_ds\\ref\\ser_log.txt'
port = 'COM6'
baudrate = 9600
follow_log.output_serial(port, baudrate, 1, ser_log_path)
| 17.111111 | 57 | 0.746753 | 27 | 154 | 3.925926 | 0.62963 | 0.169811 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.116883 | 154 | 8 | 58 | 19.25 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.202614 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce96bfedfef5559c7a2a23df1a1861f3e049a74a | 1,001 | py | Python | libs/response_extra.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | null | null | null | libs/response_extra.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | null | null | null | libs/response_extra.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | 1 | 2021-11-22T10:15:50.000Z | 2021-11-22T10:15:50.000Z | from django.http import JsonResponse
def response_template(msg, result, code, data):
return JsonResponse({
'result': result, 'code': code,
'msg': msg, 'data': data
})
def response_success(msg="", result=1, code=0, data=None):
return response_template(msg, result, code, data)
def respon... | 25.666667 | 62 | 0.662338 | 140 | 1,001 | 4.621429 | 0.2 | 0.139104 | 0.120556 | 0.157651 | 0.636785 | 0.618238 | 0.562597 | 0.513138 | 0.451314 | 0.33694 | 0 | 0.012225 | 0.182817 | 1,001 | 39 | 63 | 25.666667 | 0.778729 | 0.007992 | 0 | 0.26087 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.043478 | 0.347826 | 0.73913 | 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 |
ce98e99ca04b400f4838737313db32dc34949a2c | 75 | py | Python | config.py | mantzoun/smantzbot | 09bb6f61a631c58a4ccb1fcc23268eec02600d77 | [
"MIT"
] | null | null | null | config.py | mantzoun/smantzbot | 09bb6f61a631c58a4ccb1fcc23268eec02600d77 | [
"MIT"
] | 2 | 2021-12-03T14:48:15.000Z | 2021-12-03T15:18:46.000Z | config.py | mantzoun/smantzbot | 09bb6f61a631c58a4ccb1fcc23268eec02600d77 | [
"MIT"
] | null | null | null | user = "DB_USER"
password = "DB_PASS"
token = "API_TOKEN"
valid_chats = []
| 15 | 20 | 0.68 | 11 | 75 | 4.272727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 75 | 4 | 21 | 18.75 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0.306667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cec622334f9e53ea0fab84b7e3569607266081a1 | 637 | py | Python | mmgen/datasets/quick_test_dataset.py | plutoyuxie/mmgeneration | 0a7f5d16c970de1766ebf049d7a0264fe506504b | [
"Apache-2.0"
] | 718 | 2021-04-15T11:26:20.000Z | 2022-03-31T03:11:56.000Z | mmgen/datasets/quick_test_dataset.py | plutoyuxie/mmgeneration | 0a7f5d16c970de1766ebf049d7a0264fe506504b | [
"Apache-2.0"
] | 191 | 2021-04-15T12:13:34.000Z | 2022-03-31T16:04:36.000Z | mmgen/datasets/quick_test_dataset.py | plutoyuxie/mmgeneration | 0a7f5d16c970de1766ebf049d7a0264fe506504b | [
"Apache-2.0"
] | 107 | 2021-04-15T12:38:41.000Z | 2022-03-27T02:47:16.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from torch.utils.data import Dataset
from .builder import DATASETS
@DATASETS.register_module()
class QuickTestImageDataset(Dataset):
"""Dataset for quickly testing the correctness.
Args:
size (tuple[int]): The size of the images. Defaults ... | 24.5 | 70 | 0.66562 | 82 | 637 | 4.926829 | 0.609756 | 0.059406 | 0.064356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016097 | 0.21978 | 637 | 25 | 71 | 25.48 | 0.796781 | 0.259027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.153846 | 0.692308 | 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 |
ced66bacda501a1106e52ac0385b463695d2f994 | 43,327 | py | Python | compliance_checker/tests/test_ioos_profile.py | neumannd/compliance-checker | 58262b23b6b138c656ef3e10b75306b700b9a71f | [
"Apache-2.0"
] | null | null | null | compliance_checker/tests/test_ioos_profile.py | neumannd/compliance-checker | 58262b23b6b138c656ef3e10b75306b700b9a71f | [
"Apache-2.0"
] | null | null | null | compliance_checker/tests/test_ioos_profile.py | neumannd/compliance-checker | 58262b23b6b138c656ef3e10b75306b700b9a71f | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
from netCDF4 import Dataset
from compliance_checker.ioos import (
IOOS0_1Check,
IOOS1_1Check,
IOOS1_2_PlatformIDValidator,
IOOS1_2Check,
NamingAuthorityValidator,
)
from compliance_checker.tests import BaseTestCase
from compliance_checker.tests.helpers import MockTime... | 40.192022 | 117 | 0.643271 | 5,227 | 43,327 | 5.14559 | 0.086665 | 0.033611 | 0.050751 | 0.046104 | 0.772234 | 0.735872 | 0.712522 | 0.686013 | 0.668203 | 0.61247 | 0 | 0.010277 | 0.24539 | 43,327 | 1,077 | 118 | 40.229341 | 0.812357 | 0.175503 | 0 | 0.630465 | 0 | 0.004231 | 0.146647 | 0.010573 | 0 | 0 | 0 | 0 | 0.210155 | 1 | 0.055007 | false | 0 | 0.011284 | 0 | 0.070522 | 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 |
0c6cf07e01dbc05adca4e5460a0dd4980024d460 | 1,457 | py | Python | lynx/auth.py | aethersoft/lynx | f0f05bee5a15e86cb74836981f1ae7d20c3472ba | [
"Apache-2.0"
] | 3 | 2020-06-18T17:32:08.000Z | 2020-07-28T03:33:33.000Z | lynx/auth.py | ysenarath/lynx | f0f05bee5a15e86cb74836981f1ae7d20c3472ba | [
"Apache-2.0"
] | null | null | null | lynx/auth.py | ysenarath/lynx | f0f05bee5a15e86cb74836981f1ae7d20c3472ba | [
"Apache-2.0"
] | 11 | 2020-06-18T17:27:11.000Z | 2020-08-28T14:12:56.000Z | import typing
from flask_httpauth import HTTPTokenAuth, HTTPBasicAuth, MultiAuth
class Auth:
def __init__(self):
"""Creates access control class for authentication and authorization."""
self._basic_auth = HTTPBasicAuth()
self._token_auth = HTTPTokenAuth()
self._auth = MultiAuth(se... | 31 | 96 | 0.641043 | 166 | 1,457 | 5.427711 | 0.307229 | 0.066593 | 0.057714 | 0.084351 | 0.240844 | 0.213097 | 0.213097 | 0.133185 | 0.133185 | 0.133185 | 0 | 0 | 0.258751 | 1,457 | 46 | 97 | 31.673913 | 0.834259 | 0.304736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.117647 | 0.117647 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0c6d1ebbd13823b132b85936999f52570ac358e2 | 69 | py | Python | amadeus/airport/__init__.py | akshitsingla/amadeus-python | d8f3595e556b674998156f98d8a318045bb4c21c | [
"MIT"
] | 125 | 2018-04-09T07:27:24.000Z | 2022-02-22T11:45:20.000Z | amadeus/airport/__init__.py | akshitsingla/amadeus-python | d8f3595e556b674998156f98d8a318045bb4c21c | [
"MIT"
] | 58 | 2018-03-29T14:58:01.000Z | 2022-03-17T10:18:07.000Z | amadeus/airport/__init__.py | akshitsingla/amadeus-python | d8f3595e556b674998156f98d8a318045bb4c21c | [
"MIT"
] | 58 | 2018-04-06T10:56:20.000Z | 2022-03-04T01:23:24.000Z | from ._predictions import AirportOnTime
__all__ = ['AirportOnTime']
| 17.25 | 39 | 0.797101 | 6 | 69 | 8.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 69 | 3 | 40 | 23 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 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 |
0c753cd5e80562aa065b53745f775eebfd99dc4f | 239 | py | Python | src/tiden_gridgain/apps/__init__.py | mshonichev/tiden_gridgain | a1d8c4093efa9ce580c60be8071b8c3b7a2624ca | [
"Apache-2.0"
] | null | null | null | src/tiden_gridgain/apps/__init__.py | mshonichev/tiden_gridgain | a1d8c4093efa9ce580c60be8071b8c3b7a2624ca | [
"Apache-2.0"
] | null | null | null | src/tiden_gridgain/apps/__init__.py | mshonichev/tiden_gridgain | a1d8c4093efa9ce580c60be8071b8c3b7a2624ca | [
"Apache-2.0"
] | null | null | null | from .hazelcast import Hazelcast, HzException
from .mysql import Mysql
from .webconsole import Webconsole
from .gridgain import Gridgain
__all__ = [
"Hazelcast",
"HzException",
"Mysql",
"Webconsole",
"Gridgain",
]
| 18.384615 | 45 | 0.690377 | 23 | 239 | 7 | 0.347826 | 0.248447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213389 | 239 | 12 | 46 | 19.916667 | 0.856383 | 0 | 0 | 0 | 0 | 0 | 0.179916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
0c79dd8b6cab3de150e8798f52fecd5495a4d37c | 828 | py | Python | imm/test/test_alphabet.py | EBI-Metagenomics/imm-py | 22823fd5f7abad28c965ca5c2de27bcbba12a784 | [
"MIT"
] | null | null | null | imm/test/test_alphabet.py | EBI-Metagenomics/imm-py | 22823fd5f7abad28c965ca5c2de27bcbba12a784 | [
"MIT"
] | null | null | null | imm/test/test_alphabet.py | EBI-Metagenomics/imm-py | 22823fd5f7abad28c965ca5c2de27bcbba12a784 | [
"MIT"
] | null | null | null | import pytest
from imm import Alphabet
def test_alphabet():
abc = Alphabet.create(b"ACGT", b"X")
assert abc.length == 4
assert abc.has_symbol(b"A")
assert abc.has_symbol(b"C")
assert abc.has_symbol(b"G")
assert abc.has_symbol(b"T")
assert abc.symbol_idx(b"A") == 0
assert abc.symbol_... | 23.657143 | 47 | 0.613527 | 133 | 828 | 3.721805 | 0.270677 | 0.254545 | 0.242424 | 0.145455 | 0.307071 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013846 | 0.214976 | 828 | 34 | 48 | 24.352941 | 0.747692 | 0 | 0 | 0 | 0 | 0 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c79e119c50a35c59170a0420231c3e321f131ef | 84 | py | Python | boj/11966.py | pparkddo/ps | 7164c694403c2087a7b4b16a64f521ae327e328f | [
"MIT"
] | 1 | 2021-04-02T09:37:11.000Z | 2021-04-02T09:37:11.000Z | boj/11966.py | pparkddo/ps | 7164c694403c2087a7b4b16a64f521ae327e328f | [
"MIT"
] | null | null | null | boj/11966.py | pparkddo/ps | 7164c694403c2087a7b4b16a64f521ae327e328f | [
"MIT"
] | null | null | null | import math
value = math.log2(int(input()))
print(1 if int(value) == value else 0)
| 16.8 | 38 | 0.678571 | 15 | 84 | 3.8 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.154762 | 84 | 4 | 39 | 21 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0c82e07fcf238e2a6959b15d82f9359d6384c77e | 1,040 | py | Python | python3.4Smartforest/lib/python3.4/site-packages/django/core/management/commands/startapp.py | letouriste001/SmartForest_2.0 | 109b78bf1e8c8404800f377ab969395ccbb617be | [
"MIT"
] | null | null | null | python3.4Smartforest/lib/python3.4/site-packages/django/core/management/commands/startapp.py | letouriste001/SmartForest_2.0 | 109b78bf1e8c8404800f377ab969395ccbb617be | [
"MIT"
] | null | null | null | python3.4Smartforest/lib/python3.4/site-packages/django/core/management/commands/startapp.py | letouriste001/SmartForest_2.0 | 109b78bf1e8c8404800f377ab969395ccbb617be | [
"MIT"
] | null | null | null | from importlib import import_module
from django.core.management.base import CommandError
from django.core.management.templates import TemplateCommand
class Command(TemplateCommand):
help = ("Creates a Django app directory structure for the given app "
"name in the current directory or optionally in t... | 1,040 | 1,040 | 0.635577 | 124 | 1,040 | 5.241935 | 0.524194 | 0.086154 | 0.043077 | 0.073846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2875 | 1,040 | 1 | 1,040 | 1,040 | 0.877193 | 0.041346 | 0 | 0 | 0 | 0 | 0.298492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.25 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c8602b04d8ae466f8f5e75acf33c0b43a7a9016 | 9,085 | py | Python | Plugins/TemporalParallelismScriptGenerator/tp_export.py | aashish24/paraview-climate-3.11.1 | c8ea429f56c10059dfa4450238b8f5bac3208d3a | [
"BSD-3-Clause"
] | 1 | 2016-09-08T14:47:11.000Z | 2016-09-08T14:47:11.000Z | Plugins/TemporalParallelismScriptGenerator/tp_export.py | aashish24/paraview-climate-3.11.1 | c8ea429f56c10059dfa4450238b8f5bac3208d3a | [
"BSD-3-Clause"
] | null | null | null | Plugins/TemporalParallelismScriptGenerator/tp_export.py | aashish24/paraview-climate-3.11.1 | c8ea429f56c10059dfa4450238b8f5bac3208d3a | [
"BSD-3-Clause"
] | null | null | null | # boolean telling if we want to export rendering.
export_rendering = %1
# string->string map with key being the proxyname while value being the
# file name on the system the generated python script is to be run on.
reader_input_map = { %2 };
# list of views along with a file name and magnification flag
screenshot_inf... | 39.329004 | 135 | 0.736379 | 945 | 9,085 | 7.002116 | 0.322751 | 0.037026 | 0.008463 | 0.016624 | 0.009068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00281 | 0.177545 | 9,085 | 230 | 136 | 39.5 | 0.882762 | 0.104128 | 0 | 0.060606 | 1 | 0.012121 | 0.676895 | 0.230191 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | null | null | 0.042424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c94de9691eb944913f41cb3732517ff6cb04ab7 | 1,990 | py | Python | AbletonLiveScripts/v10/ComradeEncoders/physical_display.py | lzref/ComradeEncoders | 154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9 | [
"MIT"
] | 1 | 2021-11-26T01:52:30.000Z | 2021-11-26T01:52:30.000Z | AbletonLiveScripts/v10/ComradeEncoders/physical_display.py | lzref/ComradeEncoders | 154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9 | [
"MIT"
] | null | null | null | AbletonLiveScripts/v10/ComradeEncoders/physical_display.py | lzref/ComradeEncoders | 154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9 | [
"MIT"
] | 1 | 2021-11-26T01:52:31.000Z | 2021-11-26T01:52:31.000Z | # uncompyle6 version 3.4.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10)
# [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/SL_MkIII/phy... | 44.222222 | 144 | 0.751256 | 259 | 1,990 | 5.471042 | 0.486486 | 0.05434 | 0.036697 | 0.047989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040828 | 0.150754 | 1,990 | 45 | 145 | 44.222222 | 0.797633 | 0.180402 | 0 | 0 | 0 | 0 | 0.000615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.185185 | 0.111111 | 0.703704 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0cb19a92f90b938cb318b34d58f44db77d854741 | 1,403 | py | Python | py_eye/script/stefy_script.py | robbisg/py_eye | 1eec54b1a3ef233520b7843ca3f39bfc4c2fc95d | [
"MIT"
] | null | null | null | py_eye/script/stefy_script.py | robbisg/py_eye | 1eec54b1a3ef233520b7843ca3f39bfc4c2fc95d | [
"MIT"
] | null | null | null | py_eye/script/stefy_script.py | robbisg/py_eye | 1eec54b1a3ef233520b7843ca3f39bfc4c2fc95d | [
"MIT"
] | null | null | null | #######################################################
# Copyright (c) 2013 Roberto Guidotti
#
# See the file license.txt for copying permission.
########################################################
##########################################################################################################... | 43.84375 | 110 | 0.36422 | 90 | 1,403 | 5.655556 | 0.555556 | 0.078585 | 0.165029 | 0.188605 | 0.141454 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007475 | 0.141839 | 1,403 | 31 | 111 | 45.258065 | 0.415282 | 0.240912 | 0 | 0 | 0 | 0 | 0.319328 | 0.241597 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0cc8b80cacf4a0c86b5d51e1da62decc943356b4 | 717 | py | Python | pytglib/api/functions/get_secret_chat.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/functions/get_secret_chat.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/functions/get_secret_chat.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class GetSecretChat(Object):
"""
Returns information about a secret chat by its identifier. This is an offline request
Attributes:
ID (:obj:`str`): ``GetSecretChat``
Args:
secret_chat_id (:obj:`int`):
Secret chat identifier
Returns:
... | 21.727273 | 90 | 0.622036 | 83 | 717 | 5.156627 | 0.506024 | 0.21028 | 0.196262 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273361 | 717 | 32 | 91 | 22.40625 | 0.821497 | 0.384937 | 0 | 0 | 0 | 0 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0cd11efa5680f90a9e5a1ba67ddbcee5f69ce00a | 161 | py | Python | src/restaff/helpers/clean_uper.py | ko10ok/scorator | 130250550126bbf863ed0028f99045c17d6249e6 | [
"Apache-2.0"
] | null | null | null | src/restaff/helpers/clean_uper.py | ko10ok/scorator | 130250550126bbf863ed0028f99045c17d6249e6 | [
"Apache-2.0"
] | 10 | 2020-06-20T07:37:27.000Z | 2020-07-05T06:22:07.000Z | src/restaff/helpers/clean_uper.py | ko10ok/scorator | 130250550126bbf863ed0028f99045c17d6249e6 | [
"Apache-2.0"
] | null | null | null | import os
def cleanup_temp_files(temporary_files):
for file in temporary_files:
logger.debug(f'removing temporary {file}')
os.remove(file)
| 20.125 | 50 | 0.701863 | 22 | 161 | 4.954545 | 0.681818 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21118 | 161 | 7 | 51 | 23 | 0.858268 | 0 | 0 | 0 | 0 | 0 | 0.15528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0cd628dedbf3ef3181f8391cec73a770dda6bb84 | 15,640 | py | Python | rdtools/test/filtering_test.py | kperrynrel/rdtools | 4ca70e3e2cec85fead10cb8e6ef5e098eeb6f686 | [
"MIT"
] | 107 | 2017-08-06T19:46:49.000Z | 2022-03-31T09:42:21.000Z | rdtools/test/filtering_test.py | kperrynrel/rdtools | 4ca70e3e2cec85fead10cb8e6ef5e098eeb6f686 | [
"MIT"
] | 247 | 2017-07-11T18:18:12.000Z | 2022-03-22T20:27:03.000Z | rdtools/test/filtering_test.py | kperrynrel/rdtools | 4ca70e3e2cec85fead10cb8e6ef5e098eeb6f686 | [
"MIT"
] | 53 | 2017-07-11T18:03:11.000Z | 2022-03-25T15:25:00.000Z | """ Filtering Module Tests. """
import pytest
import pandas as pd
import numpy as np
from rdtools import (csi_filter,
poa_filter,
tcell_filter,
clip_filter,
quantile_clip_filter,
normalized_filter,
... | 47.828746 | 78 | 0.676343 | 2,101 | 15,640 | 4.739648 | 0.123751 | 0.13577 | 0.133762 | 0.050813 | 0.800864 | 0.77626 | 0.718618 | 0.670114 | 0.628239 | 0.591685 | 0 | 0.03482 | 0.247123 | 15,640 | 326 | 79 | 47.97546 | 0.81087 | 0.251343 | 0 | 0.41784 | 0 | 0 | 0.029947 | 0.020713 | 0 | 0 | 0 | 0 | 0.107981 | 1 | 0.056338 | false | 0 | 0.023474 | 0 | 0.098592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0cdd021489ec2697add534250e04ad5498bb7b79 | 5,311 | py | Python | src/climsoft_api/api/observationinitial/schema.py | faysal-ishtiaq/climsoft-api | 46dacdeba5d935ee3b944df00731640170b87ccd | [
"MIT"
] | null | null | null | src/climsoft_api/api/observationinitial/schema.py | faysal-ishtiaq/climsoft-api | 46dacdeba5d935ee3b944df00731640170b87ccd | [
"MIT"
] | 2 | 2022-03-01T13:10:22.000Z | 2022-03-24T08:47:20.000Z | src/climsoft_api/api/observationinitial/schema.py | openclimateinitiative/climsoft-api | 3591d7499dd7777617b8086332dc83fab1af9588 | [
"MIT"
] | 2 | 2021-12-22T21:50:19.000Z | 2022-01-28T12:53:32.000Z | import datetime
from typing import List
import climsoft_api.api.obselement.schema as obselement_schema
import climsoft_api.api.station.schema as station_schema
from climsoft_api.api.schema import BaseSchema, Response
from pydantic import constr, Field
class CreateObservationInitial(BaseSchema):
recordedFrom: con... | 39.932331 | 83 | 0.665223 | 525 | 5,311 | 6.55619 | 0.161905 | 0.113306 | 0.082801 | 0.099361 | 0.690587 | 0.690587 | 0.682452 | 0.670831 | 0.670831 | 0.670831 | 0 | 0.013663 | 0.214461 | 5,311 | 132 | 84 | 40.234848 | 0.811361 | 0 | 0 | 0.72973 | 0 | 0 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.522523 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0ce18a0281285b8279e261abf4e260f34f5de874 | 366 | py | Python | django_orm/single_model_orm/users_app/models.py | gfhuertac/coding_dojo_python | 4d17bb63fb2b9669216a0f60326d4a4b9055af7e | [
"MIT"
] | null | null | null | django_orm/single_model_orm/users_app/models.py | gfhuertac/coding_dojo_python | 4d17bb63fb2b9669216a0f60326d4a4b9055af7e | [
"MIT"
] | 6 | 2020-06-06T01:50:21.000Z | 2022-02-10T11:33:02.000Z | django_orm/single_model_orm/users_app/models.py | gfhuertac/coding_dojo_python | 4d17bb63fb2b9669216a0f60326d4a4b9055af7e | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class User(models.Model):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email_address = models.CharField(max_length=255)
age = models.IntegerField()
created_at = models.DateTimeField(auto_now_add=True)
upda... | 33.272727 | 54 | 0.784153 | 52 | 366 | 5.307692 | 0.576923 | 0.163043 | 0.195652 | 0.26087 | 0.525362 | 0.224638 | 0 | 0 | 0 | 0 | 0 | 0.027864 | 0.117486 | 366 | 11 | 55 | 33.272727 | 0.826625 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0b30b4ff92bc82822169effb0a8da81de2d38e15 | 505 | py | Python | connect4/common/helpers.py | hckr/engineering-thesis | c466f1aec498a608ca4787ed3283ebea1f42d871 | [
"MIT"
] | null | null | null | connect4/common/helpers.py | hckr/engineering-thesis | c466f1aec498a608ca4787ed3283ebea1f42d871 | [
"MIT"
] | null | null | null | connect4/common/helpers.py | hckr/engineering-thesis | c466f1aec498a608ca4787ed3283ebea1f42d871 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
import yaml
def load_yaml_to_dict(file_path):
return yaml.safe_load(open(file_path, encoding='utf-8'))
def save_dict_to_yaml(dictionary, file_path):
yaml.dump(dictionary, open(file_path, 'w'), default_flow_style=False, encoding='utf-8')
def strip_ext(file_name):
retu... | 20.2 | 91 | 0.675248 | 82 | 505 | 3.95122 | 0.512195 | 0.098765 | 0.074074 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.150495 | 505 | 24 | 92 | 21.041667 | 0.748252 | 0.041584 | 0 | 0 | 0 | 0 | 0.051867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.166667 | 0.333333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0b367286ec6f99804ba5cec5770dd679da959be0 | 201 | py | Python | Data Scientist Career Path/3. Python Fundamentals/5. Python List/1. Intro to List/6. list plus.py | myarist/Codecademy | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | [
"MIT"
] | 23 | 2021-06-06T15:35:55.000Z | 2022-03-21T06:53:42.000Z | Data Scientist Career Path/3. Python Fundamentals/5. Python List/1. Intro to List/6. list plus.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Data Scientist Career Path/3. Python Fundamentals/5. Python List/1. Intro to List/6. list plus.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 9 | 2021-06-08T01:32:04.000Z | 2022-03-18T15:38:09.000Z | orders = ["daisy", "buttercup", "snapdragon", "gardenia", "lily"]
# Create new orders here:
new_orders = ["lilac", "iris"]
orders_combined = orders + new_orders
broken_prices = [5, 3, 4, 5, 4] + [4] | 25.125 | 65 | 0.646766 | 27 | 201 | 4.666667 | 0.62963 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0.159204 | 201 | 8 | 66 | 25.125 | 0.710059 | 0.114428 | 0 | 0 | 0 | 0 | 0.254237 | 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 |
0b3a8dfacb4e6f1d5dcd5e0dd0e71414291c4bb2 | 120 | py | Python | do_calculation.py | Basdorsman/virtual-environment-test | d638350c5b9e86b7af820bf9675c75cb7a6d6c12 | [
"Apache-2.0"
] | null | null | null | do_calculation.py | Basdorsman/virtual-environment-test | d638350c5b9e86b7af820bf9675c75cb7a6d6c12 | [
"Apache-2.0"
] | null | null | null | do_calculation.py | Basdorsman/virtual-environment-test | d638350c5b9e86b7af820bf9675c75cb7a6d6c12 | [
"Apache-2.0"
] | null | null | null | import astropy
from astropy.cosmology import WMAP9 as cosmo
z = cosmo.comoving_distance([0.5, 1.0, 1.5])
print(z) | 24 | 47 | 0.716667 | 21 | 120 | 4.047619 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0.166667 | 120 | 5 | 48 | 24 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0b45440de77c36c83c3f88a6dc8b023664c7d556 | 1,028 | py | Python | accounts/models.py | AaganMaskey/NCIT | 6f45f6210559ed97178b47000a570f25a9f71314 | [
"MIT"
] | 4 | 2020-04-22T16:39:07.000Z | 2021-06-02T08:02:35.000Z | accounts/models.py | AaganMaskey/NCIT | 6f45f6210559ed97178b47000a570f25a9f71314 | [
"MIT"
] | 6 | 2021-03-30T13:04:08.000Z | 2022-03-12T00:24:27.000Z | accounts/models.py | AaganMaskey/NCIT | 6f45f6210559ed97178b47000a570f25a9f71314 | [
"MIT"
] | 5 | 2020-05-16T12:08:46.000Z | 2020-12-30T01:59:45.000Z | from django.db import models
class Student(models.Model):
roll = models.IntegerField(unique=True)
name = models.CharField(max_length=100)
phone = models.CharField(max_length=10, unique=True, blank=True, null=True)
email = models.EmailField(unique=True, blank=True, null=True)
sem = models.IntegerFie... | 31.151515 | 99 | 0.703307 | 130 | 1,028 | 5.438462 | 0.423077 | 0.106082 | 0.127298 | 0.169731 | 0.277228 | 0.200849 | 0.12447 | 0.12447 | 0.12447 | 0 | 0 | 0.017606 | 0.171206 | 1,028 | 33 | 100 | 31.151515 | 0.812207 | 0 | 0 | 0.086957 | 0 | 0 | 0.087464 | 0.028183 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.043478 | 0.130435 | 0.913043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0b53d049d387f735f78dba1b12c69f2f1aad3ffa | 381 | py | Python | localstack/services/resourcegroupstaggingapi/rgta_starter.py | andrei-gypaetus/localstack | 67746d56bfed6927379033ec1d7aa015c3aa4e2e | [
"Apache-2.0"
] | 3 | 2021-07-19T08:12:14.000Z | 2021-12-16T19:08:22.000Z | localstack/services/resourcegroupstaggingapi/rgta_starter.py | andrei-gypaetus/localstack | 67746d56bfed6927379033ec1d7aa015c3aa4e2e | [
"Apache-2.0"
] | null | null | null | localstack/services/resourcegroupstaggingapi/rgta_starter.py | andrei-gypaetus/localstack | 67746d56bfed6927379033ec1d7aa015c3aa4e2e | [
"Apache-2.0"
] | 1 | 2021-06-15T08:24:46.000Z | 2021-06-15T08:24:46.000Z | from localstack import config
from localstack.services.infra import start_moto_server
def start_rgsa(port=None, asynchronous=False, update_listener=None):
port = port or config.PORT_RESOURCEGROUPSTAGGINGAPI
return start_moto_server('resourcegroupstaggingapi', port, name='Resource Groups Tagging API',
... | 38.1 | 98 | 0.816273 | 45 | 381 | 6.711111 | 0.555556 | 0.139073 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11811 | 381 | 9 | 99 | 42.333333 | 0.89881 | 0 | 0 | 0 | 0 | 0 | 0.133858 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b5b7f3e994db932d719f681edb8b0e8203f7c12 | 301 | py | Python | 1 ano/logica-de-programacao/listas/nome-telefone.py | Biguelini/Atividades-Tecnico-em-Informatica | 468e9ac05a666143d8752d053854ecc22bcc8b79 | [
"MIT"
] | 4 | 2021-04-27T01:00:32.000Z | 2021-09-24T16:25:48.000Z | 1 ano/logica-de-programacao/listas/nome-telefone.py | Biguelini/Atividades-Tecnico-em-Informatica | 468e9ac05a666143d8752d053854ecc22bcc8b79 | [
"MIT"
] | null | null | null | 1 ano/logica-de-programacao/listas/nome-telefone.py | Biguelini/Atividades-Tecnico-em-Informatica | 468e9ac05a666143d8752d053854ecc22bcc8b79 | [
"MIT"
] | 1 | 2021-05-12T18:28:06.000Z | 2021-05-12T18:28:06.000Z | nomes = [0,0,0,0,0,0,0,0,0,0]
telefone = [0,0,0,0,0,0,0,0,0,0]
i = 0
while(i < 2):
nomes[i]=input("Digite um nome... ")
telefone[i]=input("Digite o telefone respectivo ")
i+=1
i=nomes.index(input("Qual nome referente ao número desejado? "))
print(f"O número de {nomes[i]} é {telefone[i]}") | 33.444444 | 64 | 0.61794 | 62 | 301 | 3 | 0.370968 | 0.193548 | 0.258065 | 0.301075 | 0.107527 | 0.107527 | 0.107527 | 0.107527 | 0.107527 | 0.107527 | 0 | 0.090196 | 0.152824 | 301 | 9 | 65 | 33.444444 | 0.639216 | 0 | 0 | 0 | 0 | 0 | 0.413907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0b6ee63e3c719a28d4a754b7bce60289223cf5bb | 169 | py | Python | easy/1837-sum-of-digits-in-base-k.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | easy/1837-sum-of-digits-in-base-k.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | easy/1837-sum-of-digits-in-base-k.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | class Solution:
def sumBase(self, n: int, k: int) -> int:
r = 0
while n>0:
r += n%k
n = n//k
return r
| 21.125 | 46 | 0.35503 | 23 | 169 | 2.608696 | 0.521739 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.532544 | 169 | 8 | 47 | 21.125 | 0.734177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
0b754c28028b5fb5a04ed5d3f35875f331fc74c4 | 735 | py | Python | Week 5/id_510/s/LeetCode_72_510.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-10-08T08:19:56.000Z | 2019-10-08T08:19:56.000Z | Week 5/id_510/s/LeetCode_72_510.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-12-01T10:02:03.000Z | 2019-12-01T10:02:03.000Z | Week 5/id_510/s/LeetCode_72_510.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | null | null | null | ##
#给定两个单词 word1 和 word2,计算出将 word1 转换成 word2 所使用的最少操作数 。
#
# 你可以对一个单词进行如下三种操作:
#
# 插入一个字符
# 删除一个字符
# 替换一个字符
# 示例 1:
#
# 输入: word1 = "horse", word2 = "ros"
# 输出: 3
# 解释:
# horse -> rorse (将 'h' 替换为 'r')
# rorse -> rose (删除 'r')
# rose -> ros (删除 'e')
# 示例 2:
#
# 输入: word1 = "intention", word2 = "execu... | 20.416667 | 57 | 0.576871 | 98 | 735 | 4.326531 | 0.642857 | 0.033019 | 0.023585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024867 | 0.234014 | 735 | 35 | 58 | 21 | 0.728242 | 0.753742 | 0 | 0 | 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 |
0b828f455d1e14a2b44b119fb0c52029c12836b2 | 15 | py | Python | psm.py | armandoblanco/iotedgedemo | 11432b271712468335e61a74b692f186b080d232 | [
"MIT"
] | null | null | null | psm.py | armandoblanco/iotedgedemo | 11432b271712468335e61a74b692f186b080d232 | [
"MIT"
] | null | null | null | psm.py | armandoblanco/iotedgedemo | 11432b271712468335e61a74b692f186b080d232 | [
"MIT"
] | null | null | null | test = 'pablo'
| 7.5 | 14 | 0.6 | 2 | 15 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 15 | 1 | 15 | 15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ba4e0796ae11bd4b06dca17d9df6ea771f66f02 | 305 | py | Python | targets_cb.py | ludios/Minerva | 386e1aeb5197e197e806b3b6a0c11ab9315c8ab5 | [
"MIT"
] | 1 | 2019-08-22T05:57:21.000Z | 2019-08-22T05:57:21.000Z | targets_cb.py | ludios/Minerva | 386e1aeb5197e197e806b3b6a0c11ab9315c8ab5 | [
"MIT"
] | 1 | 2017-07-25T13:34:20.000Z | 2017-07-25T13:34:20.000Z | targets_cb.py | ludiosarchive/Minerva | 386e1aeb5197e197e806b3b6a0c11ab9315c8ab5 | [
"MIT"
] | null | null | null | # This file is used by build_autocachebreakers.py
# Note: both outputs and breakers[n][1] are relative to this file's directory.
targets = [
{"output": "js_minerva/cw/net/autocachebreakers.js",
"breakers": [
("cw.net.breaker_FlashConnector_swf", "minerva/compiled_client/FlashConnector.swf"),
]},
]
| 30.5 | 86 | 0.737705 | 41 | 305 | 5.365854 | 0.756098 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 0.118033 | 305 | 9 | 87 | 33.888889 | 0.814126 | 0.406557 | 0 | 0 | 0 | 0 | 0.713483 | 0.634831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7ec133c9d62ed8d84616876da274e396117a74d | 306 | py | Python | TestPrograms/PyQt/PyQt5_QML_CV2/PyCVQML/__init__.py | BA-OST-2022/audio-beamformer-software | 3052a74b01676701ece403b06f637f6cc4b4a5d9 | [
"MIT"
] | null | null | null | TestPrograms/PyQt/PyQt5_QML_CV2/PyCVQML/__init__.py | BA-OST-2022/audio-beamformer-software | 3052a74b01676701ece403b06f637f6cc4b4a5d9 | [
"MIT"
] | null | null | null | TestPrograms/PyQt/PyQt5_QML_CV2/PyCVQML/__init__.py | BA-OST-2022/audio-beamformer-software | 3052a74b01676701ece403b06f637f6cc4b4a5d9 | [
"MIT"
] | null | null | null | from PyQt5 import QtQml
from .cvcapture import CVCapture, CVAbstractFilter
from .cvitem import CVItem
def registerTypes(uri = "PyCVQML"):
QtQml.qmlRegisterType(CVCapture, uri, 1, 0, "CVCapture")
QtQml.qmlRegisterType(CVItem, uri, 1, 0, "CVItem")
def stopCamera():
CVCapture.stopCamera() | 25.5 | 60 | 0.732026 | 35 | 306 | 6.4 | 0.428571 | 0.080357 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.160131 | 306 | 12 | 61 | 25.5 | 0.85214 | 0 | 0 | 0 | 0 | 0 | 0.071661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f011003d045af79aa081077e77e5b480d7a3c21f | 5,556 | py | Python | Cinema 4D/appdir_common/plugins/DazToC4D/lib/CustomColors.py | daz3d/DazToC4D | 2f2e74cd9096c18990b0d83d7ea0d007293600c2 | [
"Apache-2.0"
] | 16 | 2020-07-23T03:00:24.000Z | 2022-01-10T02:46:43.000Z | Cinema 4D/appdir_common/plugins/DazToC4D/lib/CustomColors.py | daz3d/DazToC4D | 2f2e74cd9096c18990b0d83d7ea0d007293600c2 | [
"Apache-2.0"
] | 17 | 2021-02-15T15:53:47.000Z | 2022-03-25T01:40:02.000Z | Cinema 4D/appdir_common/plugins/DazToC4D/lib/CustomColors.py | daz3d/DazToC4D | 2f2e74cd9096c18990b0d83d7ea0d007293600c2 | [
"Apache-2.0"
] | 6 | 2020-07-27T17:06:42.000Z | 2021-12-29T22:23:42.000Z | import c4d
from c4d import documents
from random import randint
class randomColors():
IKMobjList = []
def selchildren(self, obj, next): # Scan obj hierarchy and select children
while obj and obj != next:
# global IKMobjList
self.IKMobjList.append(obj)
self.selchi... | 41.774436 | 86 | 0.515839 | 624 | 5,556 | 4.451923 | 0.163462 | 0.053996 | 0.062635 | 0.161267 | 0.710943 | 0.703744 | 0.649028 | 0.649028 | 0.642549 | 0.62923 | 0 | 0.047205 | 0.37851 | 5,556 | 132 | 87 | 42.090909 | 0.757312 | 0.051836 | 0 | 0.518182 | 0 | 0 | 0.029558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0.027273 | 0.027273 | 0 | 0.127273 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f06ce3be7b655f5dc9257edf3e194ce7191535e4 | 1,025 | py | Python | packages/grid/backend/grid/db/session.py | pculliton/PySyft | 23a0d1442d3d901b1139aeabe079ccf4177ebc0d | [
"Apache-2.0"
] | 2 | 2022-02-18T03:48:27.000Z | 2022-03-05T06:13:57.000Z | packages/grid/backend/grid/db/session.py | pculliton/PySyft | 23a0d1442d3d901b1139aeabe079ccf4177ebc0d | [
"Apache-2.0"
] | 3 | 2021-11-17T15:34:03.000Z | 2021-12-08T14:39:10.000Z | packages/grid/backend/grid/db/session.py | pculliton/PySyft | 23a0d1442d3d901b1139aeabe079ccf4177ebc0d | [
"Apache-2.0"
] | 1 | 2021-07-12T09:15:44.000Z | 2021-07-12T09:15:44.000Z | # third party
from sqlalchemy import create_engine
from sqlalchemy.engine.base import Engine
from sqlalchemy.orm import Session
from sqlalchemy.orm import sessionmaker
# grid absolute
from grid.core.config import settings
from grid.db.base import Base
def get_db_engine(db_uri: str = str(settings.SQLALCHEMY_DATABASE_... | 35.344828 | 104 | 0.758049 | 144 | 1,025 | 5.194444 | 0.395833 | 0.074866 | 0.058824 | 0.061497 | 0.287433 | 0.251337 | 0.106952 | 0.106952 | 0 | 0 | 0 | 0.010381 | 0.154146 | 1,025 | 28 | 105 | 36.607143 | 0.852364 | 0.216585 | 0 | 0 | 0 | 0 | 0.011292 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b2c7e75152225e7e818cdd867c79b38bdbfcd0e5 | 559 | py | Python | loader/models.py | alvinMemphis/greenmill_backend | 450dfd777ea18fb14b035c3365093dfc0f083f6b | [
"MIT"
] | null | null | null | loader/models.py | alvinMemphis/greenmill_backend | 450dfd777ea18fb14b035c3365093dfc0f083f6b | [
"MIT"
] | null | null | null | loader/models.py | alvinMemphis/greenmill_backend | 450dfd777ea18fb14b035c3365093dfc0f083f6b | [
"MIT"
] | null | null | null | from django.db import models
from hubmanager.models import HubManager, LogicHub
from person.models import GreenUser
# Create your models here.
class HubLoader(models.Model):
user = models.OneToOneField(GreenUser, on_delete=models.CASCADE, related_name="greenloaders")
manager = models.ForeignKey(HubManager,... | 39.928571 | 110 | 0.762075 | 71 | 559 | 5.830986 | 0.535211 | 0.057971 | 0.101449 | 0.152174 | 0.154589 | 0.154589 | 0 | 0 | 0 | 0 | 0 | 0.002075 | 0.137746 | 559 | 14 | 111 | 39.928571 | 0.856846 | 0.042934 | 0 | 0 | 0 | 0 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
65190ac879438a902dadd2d36639094c535f4650 | 924 | py | Python | src/gluonts/nursery/tsbench/src/tsbench/evaluations/aws/ecr.py | RingoIngo/gluon-ts | 62fb20c36025fc969653accaffaa783671709564 | [
"Apache-2.0"
] | 1 | 2022-03-28T01:17:00.000Z | 2022-03-28T01:17:00.000Z | src/gluonts/nursery/tsbench/src/tsbench/evaluations/aws/ecr.py | RingoIngo/gluon-ts | 62fb20c36025fc969653accaffaa783671709564 | [
"Apache-2.0"
] | null | null | null | src/gluonts/nursery/tsbench/src/tsbench/evaluations/aws/ecr.py | RingoIngo/gluon-ts | 62fb20c36025fc969653accaffaa783671709564 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 33 | 89 | 0.715368 | 140 | 924 | 4.678571 | 0.607143 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.194805 | 924 | 27 | 90 | 34.222222 | 0.869624 | 0.745671 | 0 | 0 | 0 | 0 | 0.390625 | 0.390625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6532db03b4c636424896cfef540cafbd41636c90 | 233 | py | Python | globals.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | 2 | 2021-02-15T12:56:58.000Z | 2021-02-21T12:38:47.000Z | globals.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | null | null | null | globals.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | null | null | null | report_reasons = [(1, "Spam"), (2, "Çıplaklık veya vahşet içeren paylaşım"), (3, "Yasadışı paylaşım"), (4, "Doxxing (kişinin gerçek hayat bilgilerinin paylaşılması)"), (5, "Hakaret")]
HIDDEN_TOPICS = [ "sanat", "spor", "teknoloji" ]
| 77.666667 | 183 | 0.682403 | 27 | 233 | 5.814815 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02451 | 0.124464 | 233 | 2 | 184 | 116.5 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0.596567 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6541b31ea4a344314aaf88b55298edf26fd4b9b7 | 204 | py | Python | release/stubs.min/Autodesk/Revit/UI/__init___parts/DockablePanes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/UI/__init___parts/DockablePanes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/UI/__init___parts/DockablePanes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class DockablePanes(object):
""" Provides a container of all Revit built-in DockablePaneId instances. """
BuiltInDockablePanes = None
__all__ = [
"BuiltInDockablePanes",
]
| 25.5 | 81 | 0.651961 | 17 | 204 | 7.588235 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259804 | 204 | 7 | 82 | 29.142857 | 0.854305 | 0.333333 | 0 | 0 | 0 | 0 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
654246a772f14950f1f5a7b5484bb213cfa80c67 | 229 | py | Python | apps/Video/admin.py | yxf010/QuanfitaSite | 9271c671e5a120429a2a73e877abc577a3c5a88a | [
"MIT"
] | 1 | 2021-11-23T14:47:36.000Z | 2021-11-23T14:47:36.000Z | apps/Video/admin.py | yxf010/QuanfitaSite | 9271c671e5a120429a2a73e877abc577a3c5a88a | [
"MIT"
] | null | null | null | apps/Video/admin.py | yxf010/QuanfitaSite | 9271c671e5a120429a2a73e877abc577a3c5a88a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Video
# Register your models here.
admin.site.register(Video)
class VideoAdmin(admin.ModelAdmin):
list_display = ('aid','name', 'tags', 'url', 'cover', 'desc', 'add_time')
| 25.444444 | 74 | 0.724891 | 31 | 229 | 5.290323 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122271 | 229 | 9 | 75 | 25.444444 | 0.81592 | 0.113537 | 0 | 0 | 0 | 0 | 0.153465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 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 |
e8dd98b8d20924f9b831144439dbb342a7b9062c | 77 | py | Python | sendgrid/version.py | sarrionandia/tournatrack | 4c13a23f43da5317eea4614870a7a8510fc540ec | [
"Apache-2.0"
] | 1 | 2015-08-13T14:35:11.000Z | 2015-08-13T14:35:11.000Z | sendgrid/version.py | sarrionandia/tournatrack | 4c13a23f43da5317eea4614870a7a8510fc540ec | [
"Apache-2.0"
] | null | null | null | sendgrid/version.py | sarrionandia/tournatrack | 4c13a23f43da5317eea4614870a7a8510fc540ec | [
"Apache-2.0"
] | null | null | null | version_info = (1, 0, 1)
__version__ = '.'.join(str(v) for v in version_info) | 38.5 | 52 | 0.675325 | 14 | 77 | 3.285714 | 0.642857 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.142857 | 77 | 2 | 52 | 38.5 | 0.651515 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 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 |
e8ecf7972e1b6bdf6ba2ba8f27d8147d6b995466 | 106 | py | Python | local_settings.d/_10_use_suse_theme.py | toabctl/branding | 7567a70ed0cfa7bd1c5cc4137041052ed29f408d | [
"Apache-2.0"
] | 2 | 2015-04-22T13:44:06.000Z | 2018-01-15T20:49:34.000Z | local_settings.d/_10_use_suse_theme.py | toabctl/branding | 7567a70ed0cfa7bd1c5cc4137041052ed29f408d | [
"Apache-2.0"
] | 24 | 2015-02-04T12:52:09.000Z | 2019-04-09T20:18:54.000Z | local_settings.d/_10_use_suse_theme.py | toabctl/branding | 7567a70ed0cfa7bd1c5cc4137041052ed29f408d | [
"Apache-2.0"
] | 12 | 2015-02-04T08:45:17.000Z | 2019-11-12T10:29:11.000Z | AVAILABLE_THEMES = [
('suse', 'SUSE', 'themes/suse'),
('default', 'Default', 'themes/default'),
]
| 21.2 | 45 | 0.575472 | 10 | 106 | 6 | 0.4 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 106 | 4 | 46 | 26.5 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.443396 | 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 |
3314ee3607140d88446fec488ddfed38997bd187 | 173 | py | Python | rh_pathfinding/src/rh_pathfinding/pathfinderserver.py | RhinohawkUAV/rh_ros | e13077060bdfcc231adee9731ebfddadcd8d6b4a | [
"MIT"
] | 4 | 2020-05-13T19:34:27.000Z | 2021-09-20T09:01:10.000Z | rh_pathfinding/src/rh_pathfinding/pathfinderserver.py | RhinohawkUAV/rh_ros | e13077060bdfcc231adee9731ebfddadcd8d6b4a | [
"MIT"
] | null | null | null | rh_pathfinding/src/rh_pathfinding/pathfinderserver.py | RhinohawkUAV/rh_ros | e13077060bdfcc231adee9731ebfddadcd8d6b4a | [
"MIT"
] | 2 | 2019-09-14T14:45:09.000Z | 2020-11-22T01:46:59.000Z | #!/usr/bin/env python
import rospy
from ros.rosPathFinderServer import RosPathFinderServer
if __name__ == '__main__':
server = RosPathFinderServer()
rospy.spin()
| 17.3 | 55 | 0.745665 | 18 | 173 | 6.722222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156069 | 173 | 9 | 56 | 19.222222 | 0.828767 | 0.115607 | 0 | 0 | 0 | 0 | 0.05298 | 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 |
331f4b0d46f50e2b3061ed2cb44bba0d9ce90477 | 165 | py | Python | robotframework-jira/__init__.py | IlfirinPL/robotframework-jira | 672db4afd730d0830ec5e588889224b18e6384d9 | [
"MIT"
] | 2 | 2021-11-09T09:57:30.000Z | 2021-11-09T13:56:41.000Z | robotframework-jira/__init__.py | IlfirinPL/robotframework-jira | 672db4afd730d0830ec5e588889224b18e6384d9 | [
"MIT"
] | null | null | null | robotframework-jira/__init__.py | IlfirinPL/robotframework-jira | 672db4afd730d0830ec5e588889224b18e6384d9 | [
"MIT"
] | 1 | 2022-01-30T03:36:13.000Z | 2022-01-30T03:36:13.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = "Marcin Koperski"
__email__ = "marcin.koperski+github@gmail.com"
__version__ = "0.0.1"
| 23.571429 | 46 | 0.733333 | 21 | 165 | 4.952381 | 0.857143 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.121212 | 165 | 6 | 47 | 27.5 | 0.689655 | 0.127273 | 0 | 0 | 0 | 0 | 0.366197 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
335caa480b40023108a446b7535d523e902ab2cb | 811 | py | Python | examples/calc/v4/calc.py | apalala/grako | efb373d89e6805930e661758c2cff2b26da4658a | [
"BSD-2-Clause"
] | 21 | 2015-04-09T01:13:10.000Z | 2021-04-05T09:31:39.000Z | examples/calc/v4/calc.py | apalala/grako | efb373d89e6805930e661758c2cff2b26da4658a | [
"BSD-2-Clause"
] | 2 | 2017-04-11T20:08:15.000Z | 2017-04-11T22:05:09.000Z | examples/calc/v4/calc.py | apalala/grako | efb373d89e6805930e661758c2cff2b26da4658a | [
"BSD-2-Clause"
] | 3 | 2018-02-20T22:26:38.000Z | 2020-02-25T14:19:45.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2017 by Juancarlo Añez
# Copyright (C) 2012-2016 by Juancarlo Añez and Thomas Bragg
# this is calc.py
from __future__ import print_function
import sys
from calc_parser import CalcParser
class CalcSemantics(object):
def number(self, ast):
return int(ast)
de... | 22.527778 | 60 | 0.654747 | 108 | 811 | 4.787037 | 0.490741 | 0.067698 | 0.125725 | 0.123791 | 0.239845 | 0.239845 | 0.239845 | 0.239845 | 0 | 0 | 0 | 0.0224 | 0.229346 | 811 | 35 | 61 | 23.171429 | 0.8048 | 0.17016 | 0 | 0 | 0 | 0 | 0.013473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.238095 | 0.761905 | 0.095238 | 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 |
6820957bf7d15fc83943be36cb93a950578e44fc | 613 | py | Python | setup.py | WALL-E/django-admin-row-actions | 4997b92c2f46e50ec43fcd62324c49fef8c5f04c | [
"MIT"
] | 100 | 2015-08-12T10:02:50.000Z | 2021-11-11T23:53:31.000Z | setup.py | adamchainz/django-admin-row-actions | 9d6c1720aee11c6699ed320a8bae6d75121393f7 | [
"MIT"
] | 20 | 2015-09-21T00:11:26.000Z | 2022-01-02T18:46:29.000Z | setup.py | adamchainz/django-admin-row-actions | 9d6c1720aee11c6699ed320a8bae6d75121393f7 | [
"MIT"
] | 25 | 2015-09-20T23:43:30.000Z | 2021-09-23T15:28:55.000Z | from setuptools import find_packages
from setuptools import setup
setup(
name='django-admin-row-actions',
version='0.0.5',
description='django admin row actions',
author='Andy Baker',
author_email='andy@andybak.net',
url='https://github.com/DjangoAdminHackers/django-admin-row-actions',
pack... | 25.541667 | 73 | 0.62969 | 69 | 613 | 5.405797 | 0.550725 | 0.147453 | 0.187668 | 0.281501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.231648 | 613 | 23 | 74 | 26.652174 | 0.785563 | 0 | 0 | 0 | 0 | 0 | 0.389886 | 0.145188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
682a24f11e16a777783e6d4f7a6d9c8679171832 | 2,240 | py | Python | packages/w3af/w3af/core/controllers/configurable.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/controllers/configurable.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/controllers/configurable.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
configurable.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope tha... | 33.939394 | 76 | 0.686607 | 304 | 2,240 | 5.006579 | 0.473684 | 0.059133 | 0.025624 | 0.037451 | 0.194481 | 0.177398 | 0.140604 | 0.095926 | 0.095926 | 0 | 0 | 0.013906 | 0.261607 | 2,240 | 65 | 77 | 34.461538 | 0.906288 | 0.692857 | 0 | 0.181818 | 0 | 0 | 0.279693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.636364 | 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 |
6830217dd6bb137747a9847c88e93bc632277363 | 25 | py | Python | WeatherPy/api_keys.py | Dillongrow/python-api-challenge | e7878804d1cc240c47b3a7a2c8947ef57ba90271 | [
"ADSL"
] | null | null | null | WeatherPy/api_keys.py | Dillongrow/python-api-challenge | e7878804d1cc240c47b3a7a2c8947ef57ba90271 | [
"ADSL"
] | null | null | null | WeatherPy/api_keys.py | Dillongrow/python-api-challenge | e7878804d1cc240c47b3a7a2c8947ef57ba90271 | [
"ADSL"
] | null | null | null | weather_api_key="my key"
| 12.5 | 24 | 0.8 | 5 | 25 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 25 | 1 | 25 | 25 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.24 | 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 |
6839b0def4ee739a9fe1af095b22fff6c24a5bdb | 1,849 | py | Python | site_info/migrations/0001_initial.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | null | null | null | site_info/migrations/0001_initial.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | 6 | 2016-10-18T14:52:05.000Z | 2020-06-18T15:14:41.000Z | site_info/migrations/0001_initial.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | 6 | 2020-02-07T17:37:37.000Z | 2021-01-15T00:01:43.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-18 09:53
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | 48.657895 | 657 | 0.593294 | 215 | 1,849 | 4.995349 | 0.413953 | 0.022346 | 0.026071 | 0.040968 | 0.147114 | 0.147114 | 0.147114 | 0.147114 | 0.147114 | 0.147114 | 0 | 0.234492 | 0.206598 | 1,849 | 37 | 658 | 49.972973 | 0.497614 | 0.036777 | 0 | 0.344828 | 1 | 0 | 0.245782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
683d319cc9aa9962dac222dddfc0082dd6641349 | 829 | py | Python | tests/djongo_tests/test_project/main_test/admin.py | vaimdev/djongo | 4f2507d4a53674cb52a4b83b3633b9d1263a0880 | [
"BSD-3-Clause"
] | null | null | null | tests/djongo_tests/test_project/main_test/admin.py | vaimdev/djongo | 4f2507d4a53674cb52a4b83b3633b9d1263a0880 | [
"BSD-3-Clause"
] | null | null | null | tests/djongo_tests/test_project/main_test/admin.py | vaimdev/djongo | 4f2507d4a53674cb52a4b83b3633b9d1263a0880 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from main_test.models.array_models import ArrayEntry
from main_test.models.basic_models import Entry, Author, Blog
from main_test.models.embedded_models import EmbeddedEntry, EmbeddedDateEntry
from main_test.models.misc_models import ListEntry, DictEntry
from main_test.models.reference... | 31.884615 | 77 | 0.845597 | 107 | 829 | 6.448598 | 0.280374 | 0.169565 | 0.32029 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001292 | 0.066345 | 829 | 25 | 78 | 33.16 | 0.890181 | 0.153197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
68427aaa171844d426992e01ae933380470e8961 | 1,376 | py | Python | rgtk/FSM.py | SavagePencil/RetroGraphicsToolkit | 11a568f2687f716cad1cc0c2151a66153c7dca44 | [
"MIT"
] | 8 | 2020-06-16T15:35:08.000Z | 2020-09-21T21:01:41.000Z | rgtk/FSM.py | SavagePencil/RetroGraphicsToolkit | 11a568f2687f716cad1cc0c2151a66153c7dca44 | [
"MIT"
] | 2 | 2021-06-08T21:41:43.000Z | 2021-12-22T17:08:49.000Z | rgtk/FSM.py | SavagePencil/RetroGraphicsToolkit | 11a568f2687f716cad1cc0c2151a66153c7dca44 | [
"MIT"
] | null | null | null | from typing import Optional
class State:
@staticmethod
def on_enter(context: object) -> Optional['State']:
# Default to no transition.
return None
@staticmethod
def on_update(context: object) -> Optional['State']:
# Default to no transition
return None
... | 27.52 | 68 | 0.609738 | 159 | 1,376 | 5.012579 | 0.245283 | 0.150565 | 0.140527 | 0.067754 | 0.29611 | 0.250941 | 0.185696 | 0.185696 | 0.185696 | 0.185696 | 0 | 0 | 0.317587 | 1,376 | 49 | 69 | 28.081633 | 0.848775 | 0.12936 | 0 | 0.172414 | 0 | 0 | 0.008772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.034483 | 0.137931 | 0.517241 | 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 |
6858c2b4546de763214fc48c46a3ee45f6d74896 | 554 | py | Python | server/edd/describe/exceptions/__init__.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 13 | 2016-11-15T07:33:40.000Z | 2021-09-22T12:19:13.000Z | server/edd/describe/exceptions/__init__.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 40 | 2017-04-04T15:20:14.000Z | 2022-03-31T04:34:37.000Z | server/edd/describe/exceptions/__init__.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 10 | 2017-09-21T07:27:01.000Z | 2022-03-10T17:02:19.000Z | """ Module contains exceptions for edd.describe """
from .core import (
DescribeError,
DescribeWarning,
InvalidDescribeRequest,
MessagingMixin,
ReportableDescribeError,
ReportableDescribeWarning,
ReportingLimitWarning,
)
from .resolve import CommunicationError, ResolveError
__all__ = [
... | 22.16 | 53 | 0.725632 | 31 | 554 | 12.83871 | 0.645161 | 0.140704 | 0.251256 | 0.321608 | 0.668342 | 0.668342 | 0.668342 | 0 | 0 | 0 | 0 | 0 | 0.185921 | 554 | 24 | 54 | 23.083333 | 0.882483 | 0.077617 | 0 | 0 | 0 | 0 | 0.324056 | 0.180915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
686c6fd00c9c090730aca3a1a0007ae2fcadf5be | 225 | py | Python | tests/unit/modules/test_profiles.py | renanzulian/oraclecxcommerce-sdk | 0f0a61e544b63a371fa07c70d5c7348ca9eee39a | [
"MIT"
] | null | null | null | tests/unit/modules/test_profiles.py | renanzulian/oraclecxcommerce-sdk | 0f0a61e544b63a371fa07c70d5c7348ca9eee39a | [
"MIT"
] | 1 | 2021-05-01T12:22:10.000Z | 2021-05-01T12:22:10.000Z | tests/unit/modules/test_profiles.py | renanzulian/oraclecxcommerce-sdk | 0f0a61e544b63a371fa07c70d5c7348ca9eee39a | [
"MIT"
] | null | null | null | from oraclecxcommerce.modules import ProfilesModule
import pytest
def test_instantiate_profile_module_class_should_return_not_implemented_error():
with pytest.raises(NotImplementedError):
occ = ProfilesModule()
| 28.125 | 80 | 0.831111 | 24 | 225 | 7.416667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 225 | 7 | 81 | 32.142857 | 0.89899 | 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 |
d79c024e817c2c04484694913668b3bc20aff7f2 | 218 | py | Python | misc/vulnpwn/lib/core/exceptions.py | all3g/pieces | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 34 | 2016-10-31T02:05:24.000Z | 2018-11-08T14:33:13.000Z | misc/vulnpwn/lib/core/exceptions.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 2 | 2017-05-11T03:00:31.000Z | 2017-11-01T23:37:37.000Z | misc/vulnpwn/lib/core/exceptions.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 21 | 2016-08-19T09:05:45.000Z | 2018-11-08T14:33:16.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
##
# Current source: https://github.com/open-security/vulnpwn/
##
class FrameworkException(Exception):
pass
class OptionValidationError(FrameworkException):
pass
| 14.533333 | 59 | 0.697248 | 22 | 218 | 6.909091 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.146789 | 218 | 14 | 60 | 15.571429 | 0.811828 | 0.444954 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d7a9318b50daea90fa5b4cd49c2032f7f98789c7 | 66 | py | Python | python3/demo.extend/my_demo.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | python3/demo.extend/my_demo.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | python3/demo.extend/my_demo.py | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | import my
status1 = my.hello()
status2 = my.echo('Hi my module!')
| 16.5 | 34 | 0.681818 | 11 | 66 | 4.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.151515 | 66 | 3 | 35 | 22 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 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 |
d7aa75647e1b287c1b6c4767f6cee4ae1d16ef17 | 102 | py | Python | chapter5/handedclock.py | chavo1/playground-python | 558ba5515cb01b3fdb8123a1df7c6abc0ef6fa20 | [
"MIT"
] | null | null | null | chapter5/handedclock.py | chavo1/playground-python | 558ba5515cb01b3fdb8123a1df7c6abc0ef6fa20 | [
"MIT"
] | null | null | null | chapter5/handedclock.py | chavo1/playground-python | 558ba5515cb01b3fdb8123a1df7c6abc0ef6fa20 | [
"MIT"
] | null | null | null | import time
current_time = time.localtime()
hour = current_time.tm_hour
print('The hour is', hour)
| 12.75 | 31 | 0.745098 | 16 | 102 | 4.5625 | 0.5625 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 7 | 32 | 14.571429 | 0.83908 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d7abaec04188dcd1a31dd60c8ba062141559ca89 | 1,275 | py | Python | pipeline/schemas/validators.py | mystic-ai/pipeline | 487c5e755a862a12c90572b0eff170853ecb3790 | [
"Apache-2.0"
] | 7 | 2022-01-28T20:27:50.000Z | 2022-02-22T15:30:00.000Z | pipeline/schemas/validators.py | mystic-ai/pipeline | 487c5e755a862a12c90572b0eff170853ecb3790 | [
"Apache-2.0"
] | 17 | 2022-01-11T12:05:38.000Z | 2022-03-25T15:29:43.000Z | pipeline/schemas/validators.py | neuro-ai-dev/pipeline | c7edcc83576158062fe48f266dfaea62d754e761 | [
"Apache-2.0"
] | null | null | null | import re
# TO-DO: refactor validators as below
# https://pydantic-docs.helpmanual.io/usage/validators/
# Email regex mostly following RFC2822 specification. Covers ~99% of emails in use today
# Allows groups of alphanumerics and some special characters separated by dots,
# followed by a @,
# followed by groups of al... | 37.5 | 88 | 0.686275 | 193 | 1,275 | 4.440415 | 0.414508 | 0.031505 | 0.03734 | 0.029172 | 0.129522 | 0.094516 | 0.04084 | 0.039673 | 0.039673 | 0.039673 | 0 | 0.028907 | 0.131765 | 1,275 | 33 | 89 | 38.636364 | 0.745257 | 0.473725 | 0 | 0 | 0 | 0 | 0.289833 | 0.289833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.214286 | 0.071429 | 0.214286 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
d7aedb37ff88dcb77c161fb585aeedb983551f8c | 73 | py | Python | renderoo/component.py | yelluw/renderoo | 3d2721e590181dc553c722dfa2950602b8f0a391 | [
"MIT"
] | null | null | null | renderoo/component.py | yelluw/renderoo | 3d2721e590181dc553c722dfa2950602b8f0a391 | [
"MIT"
] | null | null | null | renderoo/component.py | yelluw/renderoo | 3d2721e590181dc553c722dfa2950602b8f0a391 | [
"MIT"
] | null | null | null | class Component:
def render(self):
raise NotImplementedError
| 18.25 | 33 | 0.69863 | 7 | 73 | 7.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246575 | 73 | 3 | 34 | 24.333333 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d7c611337b4ee97ceb0da44280bc33f87c91d108 | 10,836 | py | Python | test/generators/wiggle_sort_ii.py | yanqd0/LeetCode | 8c669b954f4e4ae5e31a14727bf4ceedc58ea363 | [
"MIT"
] | null | null | null | test/generators/wiggle_sort_ii.py | yanqd0/LeetCode | 8c669b954f4e4ae5e31a14727bf4ceedc58ea363 | [
"MIT"
] | 3 | 2019-08-29T02:33:12.000Z | 2019-08-29T02:34:23.000Z | test/generators/wiggle_sort_ii.py | yanqd0/LeetCode | 8c669b954f4e4ae5e31a14727bf4ceedc58ea363 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
FIELDS = ['nums']
ROWS = [
([1]),
([1, 2]),
([1, 2, 1]),
([1, 1, 2]),
([3, 2, 4]),
([1, 5, 1, 1, 6, 4]),
([1, 3, 2, 2, 3, 1]),
([1, 1, 2, 2, 2, 1]),
([1, 1, 1, 1, 2, 2, 2]),
# ([1, 1, 1, 2, 2, 2, 2]),
([4, 5, 5, 6]),
([3, 3, 3... | 68.582278 | 79 | 0.320321 | 3,089 | 10,836 | 1.119132 | 0.009064 | 0.028348 | 0.008678 | 0.004628 | 0.126699 | 0.008967 | 0.008967 | 0.004918 | 0.004918 | 0 | 0 | 0.507251 | 0.389073 | 10,836 | 157 | 80 | 69.019108 | 0.014955 | 0.006091 | 0 | 0 | 0 | 0 | 0.001115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006623 | 0 | 0.006623 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d7e01ce48fea4cb1cea596ee2b7696c95fc39d24 | 225 | py | Python | tensorkit/backend/init.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | null | null | null | tensorkit/backend/init.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | null | null | null | tensorkit/backend/init.py | lizeyan/tensorkit | 2997a5914ec3c3ec72f91eb5906b5ee878fdc020 | [
"MIT"
] | 2 | 2020-10-15T06:41:32.000Z | 2021-01-27T12:55:11.000Z | from ..settings_ import settings
if settings.backend == 'PyTorch':
from .pytorch_ import init
from .pytorch_.init import *
else:
RuntimeError(f'Backend {settings.backend} not supported.')
__all__ = init.__all__
| 22.5 | 62 | 0.728889 | 27 | 225 | 5.666667 | 0.481481 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168889 | 225 | 9 | 63 | 25 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d7e31def38e44ff446a0879833cfdb3ee594864c | 191 | py | Python | HW1/deeprl_hw1_src/setup.py | sssssdzxc/CMU10703_Assignments | ddb5c41db6e5632cbc088cb0f4c1b9214110f6f2 | [
"MIT"
] | 1 | 2017-04-11T19:55:50.000Z | 2017-04-11T19:55:50.000Z | HW1/deeprl_hw1_src/setup.py | sssssdzxc/CMU10703_Assignments | ddb5c41db6e5632cbc088cb0f4c1b9214110f6f2 | [
"MIT"
] | null | null | null | HW1/deeprl_hw1_src/setup.py | sssssdzxc/CMU10703_Assignments | ddb5c41db6e5632cbc088cb0f4c1b9214110f6f2 | [
"MIT"
] | 1 | 2020-12-13T09:20:37.000Z | 2020-12-13T09:20:37.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(
name='DeepRL Homework 1',
version='1.0',
description='Library for 10-703 Homework 1',
packages=['deeprl_hw1'])
| 19.1 | 48 | 0.675393 | 27 | 191 | 4.740741 | 0.814815 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.183246 | 191 | 9 | 49 | 21.222222 | 0.75641 | 0.104712 | 0 | 0 | 0 | 0 | 0.347059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
d7f069e25ab1e8f14fe1585269631b7622cccb3c | 395 | py | Python | py_learning/python_demo/30/func_test4.py | flylei009/python_learning | 9d55a296dc56d6f2295d53f2c4be55724cc8fea3 | [
"MIT"
] | 1 | 2020-09-20T04:02:38.000Z | 2020-09-20T04:02:38.000Z | py_learning/python_demo/30/func_test4.py | flylei009/python_learning | 9d55a296dc56d6f2295d53f2c4be55724cc8fea3 | [
"MIT"
] | null | null | null | py_learning/python_demo/30/func_test4.py | flylei009/python_learning | 9d55a296dc56d6f2295d53f2c4be55724cc8fea3 | [
"MIT"
] | null | null | null | import time
# print( time.time())
def timmer(func):
def wrapper():
start_time = time.time()
func()
stop_time = time.time()
print("运行时间是 %s 秒 " % (stop_time - start_time))
return wrapper
@timmer
def i_can_sleep():
time.sleep(3)
# start_time = time.time()
i_can_sleep()... | 14.107143 | 55 | 0.597468 | 56 | 395 | 4 | 0.321429 | 0.321429 | 0.214286 | 0.151786 | 0.357143 | 0.169643 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.250633 | 395 | 27 | 56 | 14.62963 | 0.753378 | 0.283544 | 0 | 0 | 0 | 0 | 0.039568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.416667 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d7f95b78905c8749747f6ef4a768956531d5b401 | 382 | py | Python | kinda/objects/dnaobjects.py | uwmisl/KinDA | 005f51ebbdc83f60259a378016c7209bd31c3a63 | [
"MIT"
] | null | null | null | kinda/objects/dnaobjects.py | uwmisl/KinDA | 005f51ebbdc83f60259a378016c7209bd31c3a63 | [
"MIT"
] | null | null | null | kinda/objects/dnaobjects.py | uwmisl/KinDA | 005f51ebbdc83f60259a378016c7209bd31c3a63 | [
"MIT"
] | null | null | null | from .domain import Domain, ComplementaryDomain
from .strand import Strand, ComplementaryStrand
from .complex import Complex
from .restingset import RestingSet
from .macrostate import Macrostate
from .reaction import Reaction, RestingSetReaction
from .sequence import Sequence
from .structure import Structure
from . imp... | 34.727273 | 51 | 0.842932 | 46 | 382 | 6.934783 | 0.391304 | 0.062696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117801 | 382 | 10 | 52 | 38.2 | 0.946588 | 0 | 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 |
cc021d59bf286b7193700d5e8dc1fa7e2493e674 | 424 | py | Python | submissions/!EVALUATION/indicator.py | SoumithThumma/TTF | 163b0357b94e6efbd5d63f6e4897259238ad824d | [
"Apache-2.0"
] | 3 | 2019-02-19T06:32:31.000Z | 2019-07-02T17:44:25.000Z | submissions/!EVALUATION/indicator.py | SoumithThumma/TTF | 163b0357b94e6efbd5d63f6e4897259238ad824d | [
"Apache-2.0"
] | null | null | null | submissions/!EVALUATION/indicator.py | SoumithThumma/TTF | 163b0357b94e6efbd5d63f6e4897259238ad824d | [
"Apache-2.0"
] | 8 | 2019-03-09T12:21:24.000Z | 2020-11-25T15:21:03.000Z | import abc
import numpy as np
class Indicator:
def __init__(self):
self.default_if_empty = 0.0
def calc(self, F):
# if it is a 1d array
if len(F.shape) == 1:
F = np.array([F])
# if there are not data
if F.shape[1] == 0:
return self.default_i... | 15.142857 | 40 | 0.535377 | 62 | 424 | 3.5 | 0.483871 | 0.101382 | 0.119816 | 0.165899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.367925 | 424 | 27 | 41 | 15.703704 | 0.787313 | 0.096698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.642857 | 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 |
cc1d15b21196852e33f513471cc12208625ca42e | 262 | py | Python | pyreds/__init__.py | 7anshuai/pyreds | 8080895ef8ec720ed2305eec9c62e04babe760fe | [
"MIT"
] | 9 | 2017-12-26T16:21:34.000Z | 2020-09-04T09:18:52.000Z | pyreds/__init__.py | 7anshuai/pyreds | 8080895ef8ec720ed2305eec9c62e04babe760fe | [
"MIT"
] | 1 | 2017-12-20T05:29:55.000Z | 2017-12-20T05:32:46.000Z | pyreds/__init__.py | 7anshuai/pyreds | 8080895ef8ec720ed2305eec9c62e04babe760fe | [
"MIT"
] | 2 | 2018-03-12T06:56:02.000Z | 2019-01-30T04:04:22.000Z | from pyreds.reds import (
set_client,
create_client,
create_search,
Query,
Search
)
__version__ = '0.1.4'
VERSION = tuple(map(int, __version__.split('.')))
__all__ = [
'set_client', 'create_client', 'create_search', 'Query', 'Search'
]
| 17.466667 | 69 | 0.645038 | 31 | 262 | 4.870968 | 0.580645 | 0.317881 | 0.198676 | 0.278146 | 0.582781 | 0.582781 | 0.582781 | 0.582781 | 0 | 0 | 0 | 0.014286 | 0.198473 | 262 | 14 | 70 | 18.714286 | 0.704762 | 0 | 0 | 0 | 0 | 0 | 0.20229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
0bc59e1baa8a0a900f6b38c1861eea277e9ccc96 | 16 | py | Python | package_storage/pkg_stack/__init__.py | ds-suyog/stack-ops | 154649739c97a26cc766a7360c53208b4046ac98 | [
"MIT"
] | null | null | null | package_storage/pkg_stack/__init__.py | ds-suyog/stack-ops | 154649739c97a26cc766a7360c53208b4046ac98 | [
"MIT"
] | null | null | null | package_storage/pkg_stack/__init__.py | ds-suyog/stack-ops | 154649739c97a26cc766a7360c53208b4046ac98 | [
"MIT"
] | null | null | null | name = "mystack" | 16 | 16 | 0.6875 | 2 | 16 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 16 | 1 | 16 | 16 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 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 |
0bd2d206994741f1e83b1f1b9eb6a8f0b3eae4df | 336 | py | Python | tests/roots/test-ext-autodoc/target/wrappedfunction.py | samdoran/sphinx | 4c91c038b220d07bbdfe0c1680af42fe897f342c | [
"BSD-2-Clause"
] | 4,973 | 2015-01-03T15:44:00.000Z | 2022-03-31T03:11:51.000Z | tests/roots/test-ext-autodoc/target/wrappedfunction.py | samdoran/sphinx | 4c91c038b220d07bbdfe0c1680af42fe897f342c | [
"BSD-2-Clause"
] | 7,850 | 2015-01-02T08:09:25.000Z | 2022-03-31T18:57:40.000Z | tests/roots/test-ext-autodoc/target/wrappedfunction.py | samdoran/sphinx | 4c91c038b220d07bbdfe0c1680af42fe897f342c | [
"BSD-2-Clause"
] | 2,179 | 2015-01-03T15:26:53.000Z | 2022-03-31T12:22:44.000Z | from contextlib import contextmanager
from functools import lru_cache
from typing import Generator
@lru_cache(maxsize=None)
def slow_function(message, timeout):
"""This function is slow."""
print(message)
@contextmanager
def feeling_good(x: int, y: int) -> Generator:
"""You'll feel better in this contex... | 21 | 46 | 0.732143 | 45 | 336 | 5.377778 | 0.688889 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 336 | 15 | 47 | 22.4 | 0.864286 | 0.172619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0.111111 | 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 |
0bdbb31991091153d66d6145dc3d3abe4f2cd4cd | 8,686 | py | Python | client/sdk/python/registry/registry_pb2_grpc.py | gofortwos/micro | fecc568b992c05dc3d97e8a1e807acabd281654e | [
"Linux-OpenIB"
] | 37 | 2019-10-24T15:31:10.000Z | 2020-09-30T01:20:31.000Z | client/sdk/python/registry/registry_pb2_grpc.py | gofortwos/micro | fecc568b992c05dc3d97e8a1e807acabd281654e | [
"Linux-OpenIB"
] | 6 | 2019-10-24T15:40:17.000Z | 2020-09-24T21:26:22.000Z | client/sdk/python/registry/registry_pb2_grpc.py | gofortwos/micro | fecc568b992c05dc3d97e8a1e807acabd281654e | [
"Linux-OpenIB"
] | 8 | 2020-03-03T12:00:07.000Z | 2020-07-26T08:52:34.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from registry import registry_pb2 as registry_dot_registry__pb2
class RegistryStub(object):
"""Missing associated documentation comment in .proto file."""
... | 43.648241 | 99 | 0.660949 | 789 | 8,686 | 6.967047 | 0.130545 | 0.064035 | 0.107149 | 0.124068 | 0.81972 | 0.784428 | 0.679462 | 0.592323 | 0.5825 | 0.561761 | 0 | 0.005009 | 0.264564 | 8,686 | 198 | 100 | 43.868687 | 0.85551 | 0.078978 | 0 | 0.567901 | 1 | 0 | 0.072195 | 0.03534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.012346 | 0.030864 | 0.135802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0be09b42dc187f22bee1284e84d2f29b5ee748f9 | 204 | py | Python | apps/local_apps/django_openidauth/admin.py | google-code-export/django-hotclub | d783a5bbcc06816289565f3eae6d99461188ca4a | [
"MIT"
] | 1 | 2019-04-15T13:50:26.000Z | 2019-04-15T13:50:26.000Z | apps/local_apps/django_openidauth/admin.py | pombreda/django-hotclub | d783a5bbcc06816289565f3eae6d99461188ca4a | [
"MIT"
] | null | null | null | apps/local_apps/django_openidauth/admin.py | pombreda/django-hotclub | d783a5bbcc06816289565f3eae6d99461188ca4a | [
"MIT"
] | null | null | null | from django.contrib import admin
from django_openidauth.models import UserOpenID
class UserOpenIDAdmin(admin.ModelAdmin):
raw_id_fields = ('user',)
admin.site.register(UserOpenID, UserOpenIDAdmin)
| 25.5 | 48 | 0.808824 | 24 | 204 | 6.75 | 0.708333 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 204 | 7 | 49 | 29.142857 | 0.89011 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0be2a3f8facc5d67afbcb579f4c22302c9b498e5 | 1,487 | py | Python | pprs/merge_time.py | huxh10/SGDX | ed93ab5636e9ccc2a15f87572562641604a3cc2b | [
"Apache-2.0"
] | 2 | 2017-12-04T08:27:20.000Z | 2018-12-21T19:20:21.000Z | pprs/merge_time.py | huxh10/SGDX | ed93ab5636e9ccc2a15f87572562641604a3cc2b | [
"Apache-2.0"
] | null | null | null | pprs/merge_time.py | huxh10/SGDX | ed93ab5636e9ccc2a15f87572562641604a3cc2b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
import argparse
def merge_time(file1, file2):
announcement_id_2_time = {}
with open(file1, 'r') as f:
for line in f:
tmp = line[:-1].split(' ')
announcement_id_2_time[int(tmp[2].split(':')[1])] = [float(tmp[3].split(':')[1]), float(tmp[4].split(':')[1])]
... | 43.735294 | 208 | 0.634835 | 215 | 1,487 | 4.125581 | 0.255814 | 0.331454 | 0.18602 | 0.235626 | 0.617813 | 0.568207 | 0.568207 | 0.408117 | 0.405862 | 0.314543 | 0 | 0.046396 | 0.188299 | 1,487 | 33 | 209 | 45.060606 | 0.688484 | 0.011432 | 0 | 0.166667 | 0 | 0 | 0.065351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 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 |
0412baa97cf7153cb4065ef4ef04a4e1a0a31b89 | 11 | py | Python | test/inventory/mock_inventories/empty.py | oddlama/forge | d09b0f309ce7dcda79dc03765473b48732c71845 | [
"MIT"
] | 14 | 2021-12-17T10:38:27.000Z | 2022-03-02T01:20:01.000Z | test/inventory/mock_inventories/empty.py | oddlama/forge | d09b0f309ce7dcda79dc03765473b48732c71845 | [
"MIT"
] | 2 | 2022-01-11T13:31:09.000Z | 2022-02-03T15:41:43.000Z | test/inventory/mock_inventories/empty.py | oddlama/forge | d09b0f309ce7dcda79dc03765473b48732c71845 | [
"MIT"
] | 2 | 2022-02-03T15:20:51.000Z | 2022-02-03T15:45:11.000Z | hosts = []
| 5.5 | 10 | 0.454545 | 1 | 11 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 11 | 1 | 11 | 11 | 0.625 | 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 |
045956d1c1c283b513f8d9f63efb8ab0796dfe31 | 1,577 | py | Python | libuvs/uvs_errors.py | kouritron/uvs | 42a4241445360fd64fc09f39fb9a4b5e596d622c | [
"BSD-3-Clause"
] | null | null | null | libuvs/uvs_errors.py | kouritron/uvs | 42a4241445360fd64fc09f39fb9a4b5e596d622c | [
"BSD-3-Clause"
] | null | null | null | libuvs/uvs_errors.py | kouritron/uvs | 42a4241445360fd64fc09f39fb9a4b5e596d622c | [
"BSD-3-Clause"
] | null | null | null |
## UVSError handling guidelines:
# 1- don't use OOP exceptions, NEVER NEVER NEVER use inheritance in exceptions
# i dont like exception X that inherits from Y and 2mrw is a G then suddenly catches an F blah blah
# doing the above makes it harder not easier to figure out what the hell happened.
# ju... | 52.566667 | 115 | 0.735574 | 247 | 1,577 | 4.688259 | 0.582996 | 0.028497 | 0.025907 | 0.044905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.226379 | 1,577 | 29 | 116 | 54.37931 | 0.945082 | 0.9461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
045e5cdaf7ed92d43e0262e487d65ff96a2a41b5 | 6,222 | py | Python | src/offchainapi/tests/test_status_logic.py | LuZhang-Lou/off-chain-reference | f093c23672f2c5de4adfd5de1b2ab9e4bdd4e212 | [
"Apache-2.0"
] | null | null | null | src/offchainapi/tests/test_status_logic.py | LuZhang-Lou/off-chain-reference | f093c23672f2c5de4adfd5de1b2ab9e4bdd4e212 | [
"Apache-2.0"
] | null | null | null | src/offchainapi/tests/test_status_logic.py | LuZhang-Lou/off-chain-reference | f093c23672f2c5de4adfd5de1b2ab9e4bdd4e212 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) The Libra Core Contributors
# SPDX-License-Identifier: Apache-2.0
from ..protocol import VASPPairChannel
from ..status_logic import Status, KYCResult, State, InvalidStateException
from ..payment_command import PaymentCommand, PaymentLogicError
from ..business import BusinessForceAbort, BusinessValidati... | 40.666667 | 106 | 0.78351 | 747 | 6,222 | 6.250335 | 0.15261 | 0.094667 | 0.082245 | 0.113086 | 0.748983 | 0.739773 | 0.714072 | 0.671878 | 0.669737 | 0.657957 | 0 | 0.011318 | 0.119576 | 6,222 | 152 | 107 | 40.934211 | 0.841 | 0.012375 | 0 | 0.491525 | 0 | 0 | 0.062195 | 0.014653 | 0 | 0 | 0 | 0 | 0.144068 | 1 | 0.084746 | false | 0 | 0.144068 | 0 | 0.237288 | 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 |
f0982c70efc7612f734dd2822179a49db3ed936e | 398 | py | Python | tests/suite/oop/reflection/helpers/test_is_callable.py | infosmith/batteries | e1e018043392997ec43f55f874231d5feb684110 | [
"MIT"
] | null | null | null | tests/suite/oop/reflection/helpers/test_is_callable.py | infosmith/batteries | e1e018043392997ec43f55f874231d5feb684110 | [
"MIT"
] | 2 | 2022-01-04T06:14:09.000Z | 2022-01-04T09:18:14.000Z | tests/suite/oop/reflection/helpers/test_is_callable.py | infosmith/helpers | e1e018043392997ec43f55f874231d5feb684110 | [
"MIT"
] | null | null | null | import unittest
import pytest
from helpers.oop.reflection.helpers import is_callable as uut
@pytest.mark.usefixtures('oop_reflection_testcase')
class TestIsCallable(unittest.TestCase):
def test_is_callable_with_function(self):
self.assertTrue(uut(print))
def test_is_callable_with_instance_method(s... | 24.875 | 71 | 0.786432 | 51 | 398 | 5.882353 | 0.490196 | 0.1 | 0.06 | 0.113333 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125628 | 398 | 15 | 72 | 26.533333 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.095477 | 0.057789 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.666667 | 0.111111 | 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 |
f09e4ecdb0124612ce2251132931d8f6aabd4223 | 59 | py | Python | api/sitesync/__init__.py | pypeclub/openpype4-backend | a0abe2ed66887c6529b01bbb9cb00278bbff41e4 | [
"Apache-2.0"
] | 2 | 2022-03-09T08:02:52.000Z | 2022-03-15T00:34:01.000Z | api/sitesync/__init__.py | pypeclub/openpype4-backend | a0abe2ed66887c6529b01bbb9cb00278bbff41e4 | [
"Apache-2.0"
] | 1 | 2022-03-08T16:22:34.000Z | 2022-03-08T16:22:34.000Z | api/sitesync/__init__.py | pypeclub/openpype4-backend | a0abe2ed66887c6529b01bbb9cb00278bbff41e4 | [
"Apache-2.0"
] | null | null | null | __all__ = ["router"]
from sitesync.sitesync import router
| 14.75 | 36 | 0.762712 | 7 | 59 | 5.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 3 | 37 | 19.666667 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 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 |
f0a0ef02bddfa7f143858063432f30a5c0d8d46d | 166 | py | Python | Week-3/L6/Prob2.py | jabhij/MITx-6.00.1x-PYTHON | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | 2 | 2016-09-20T16:30:49.000Z | 2016-09-20T16:31:04.000Z | Week-3/L6/Prob2.py | jabhij/MITx-6.00.1x-Python- | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | null | null | null | Week-3/L6/Prob2.py | jabhij/MITx-6.00.1x-Python- | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | null | null | null | def oddTuples(aTup):
'''
aTup: a tuple
returns: tuple, every other element of aTup.
'''
# using tuple slicing method
return aTup[0: :2]
| 18.444444 | 49 | 0.578313 | 21 | 166 | 4.571429 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.313253 | 166 | 8 | 50 | 20.75 | 0.824561 | 0.53012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f0c7086b3905e53c6d9609f445b20efa255c2528 | 724 | py | Python | za/post/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | za/post/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | za/post/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | #%%
import requests
# url = "http://127.0.0.1"
url = "http://192.168.1.10"
# data = bytes("connection\r\n")
data = "connection\r\n"
res = requests.post(url=url,
data=data,
headers={'Content-Type': 'text/plain'})
print(res.text)
# %%
import requests
res = requests.post(url="ht... | 38.105263 | 410 | 0.689227 | 127 | 724 | 3.858268 | 0.559055 | 0.065306 | 0.040816 | 0.053061 | 0.122449 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0.171827 | 0.107735 | 724 | 19 | 411 | 38.105263 | 0.586687 | 0.084254 | 0 | 0.363636 | 0 | 0.090909 | 0.65303 | 0.536364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f0cd57367e094656adb3220ee2cb19593c71c5da | 126 | py | Python | answers/Utkarsh Srivastava/Day 5/Question 1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/Utkarsh Srivastava/Day 5/Question 1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/Utkarsh Srivastava/Day 5/Question 1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | a = 0
b = 1
n = int(input())
for i in range(n):
print(a,end=",")
print(b,end=",")
a = a+b
b = b+a
print("\b")
| 12.6 | 20 | 0.436508 | 26 | 126 | 2.115385 | 0.5 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.301587 | 126 | 9 | 21 | 14 | 0.602273 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 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 |
f0d33699dd45402efcf2bb54c1f862f86e224f12 | 100 | py | Python | config.py | t1mosha/Helper5TGBot | ce1d958f463b2836e34b3275dd67c3b8936e4d91 | [
"MIT"
] | null | null | null | config.py | t1mosha/Helper5TGBot | ce1d958f463b2836e34b3275dd67c3b8936e4d91 | [
"MIT"
] | null | null | null | config.py | t1mosha/Helper5TGBot | ce1d958f463b2836e34b3275dd67c3b8936e4d91 | [
"MIT"
] | null | null | null | token = "bot_token"
admins = [admin_id]
api_id = 2040
api_hash = "b18441a1ff607e10a989891a5462e627"
| 20 | 45 | 0.78 | 12 | 100 | 6.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318182 | 0.12 | 100 | 4 | 46 | 25 | 0.522727 | 0 | 0 | 0 | 0 | 0 | 0.41 | 0.32 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f0d558f7f14f12338179935f55b6c7ca2ec091dc | 38 | py | Python | bot/cogs/__init__.py | Ankit404butfound/PyWhatKit_Discord_Bot | 11966ec0bfd2bc1e5ad9691f3fa9e53e90ed875b | [
"MIT"
] | 5 | 2021-05-16T18:27:49.000Z | 2022-01-29T04:51:57.000Z | bot/cogs/__init__.py | aaryanrr/PyWhatKit_Discord_Bot | b9a0c2a1743cd38752625365659c3ce2c5d7df01 | [
"MIT"
] | 1 | 2022-02-03T14:19:50.000Z | 2022-02-03T14:34:07.000Z | bot/cogs/__init__.py | aaryanrr/PyWhatKit_Discord_Bot | b9a0c2a1743cd38752625365659c3ce2c5d7df01 | [
"MIT"
] | 8 | 2021-05-16T18:41:20.000Z | 2022-01-29T04:52:01.000Z | __all__ = ["admin", "docs", "extras"]
| 19 | 37 | 0.578947 | 4 | 38 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 38 | 1 | 38 | 38 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0.394737 | 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 |
f0dc1d71cf25c4184878e911f6fc88a0a3627738 | 113 | py | Python | ipython.symlink/profile_default/ipython_config.py | peteowlett/dotfiles | 90c00cd1c21986e186f39200449595c34d7ee591 | [
"MIT"
] | null | null | null | ipython.symlink/profile_default/ipython_config.py | peteowlett/dotfiles | 90c00cd1c21986e186f39200449595c34d7ee591 | [
"MIT"
] | null | null | null | ipython.symlink/profile_default/ipython_config.py | peteowlett/dotfiles | 90c00cd1c21986e186f39200449595c34d7ee591 | [
"MIT"
] | null | null | null | c = get_config()
c.TerminalInteractiveShell.confirm_exit = False
c.TerminalInteractiveShell.editing_mode = 'vi'
| 22.6 | 47 | 0.814159 | 13 | 113 | 6.846154 | 0.769231 | 0.561798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088496 | 113 | 4 | 48 | 28.25 | 0.864078 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 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 |
f0df8dc99ea359d73655572812e6defdc78c7ce6 | 1,090 | py | Python | app/user.py | yashpatel5400/Synergy | dcf145c4a56f2262a5056d81a30f95772040e3f9 | [
"MIT"
] | 2 | 2017-06-15T03:46:13.000Z | 2018-01-26T04:53:26.000Z | app/user.py | yashpatel5400/Synergy | dcf145c4a56f2262a5056d81a30f95772040e3f9 | [
"MIT"
] | null | null | null | app/user.py | yashpatel5400/Synergy | dcf145c4a56f2262a5056d81a30f95772040e3f9 | [
"MIT"
] | null | null | null | """
__authors__ = Yash, Will, Peter
__description__ = Class definition of the User object as defined as those
to be stored in the User DB (users table)
__name__ = user.py
"""
from flask import g
from flask_login import UserMixin
class User(UserMixin):
def __init__(self, userid, name, email, active=True... | 27.948718 | 84 | 0.631193 | 140 | 1,090 | 4.728571 | 0.414286 | 0.075529 | 0.063444 | 0.072508 | 0.148036 | 0.148036 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292661 | 1,090 | 39 | 85 | 27.948718 | 0.858625 | 0.37156 | 0 | 0 | 0 | 0 | 0.124444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.227273 | 0.636364 | 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 |
f0e39a87d6b0caeaa06f16f397627b62700825e4 | 178 | py | Python | solutions/python3/1232.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/1232.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/1232.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def checkStraightLine(self, c: List[List[int]]) -> bool:
return len(set(a[0] == b[0] or (b[1] - a[1]) / (b[0] - a[0]) for a, b in zip(c, c[1:]))) == 1 | 59.333333 | 101 | 0.522472 | 35 | 178 | 2.657143 | 0.571429 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057554 | 0.219101 | 178 | 3 | 101 | 59.333333 | 0.611511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.