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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
050d0065c6551bdc4fb38c58599bd6f7f819f7e7 | 741 | py | Python | clutch/schema/request/session/shared.py | ExeArco/clutch | 223244b1294b496ba16c8a2433eb453cce593a62 | [
"MIT"
] | 34 | 2018-04-14T12:53:07.000Z | 2021-08-21T12:52:23.000Z | clutch/schema/request/session/shared.py | ExeArco/clutch | 223244b1294b496ba16c8a2433eb453cce593a62 | [
"MIT"
] | 18 | 2018-04-30T20:32:44.000Z | 2021-10-03T15:24:33.000Z | clutch/schema/request/session/shared.py | ExeArco/clutch | 223244b1294b496ba16c8a2433eb453cce593a62 | [
"MIT"
] | 10 | 2019-01-31T20:21:13.000Z | 2021-10-03T10:01:26.000Z | from typing import Tuple
from pydantic import BaseModel, Field
from clutch.compat import Literal
DataRateUnits = Tuple[
Literal["KB/s"], Literal["MB/s"], Literal["GB/s"], Literal["TB/s"]
]
DataSizeUnits = Tuple[Literal["KB"], Literal["MB"], Literal["GB"], Literal["TB"]]
ByteDefinition = Literal[1000, 1024]
cla... | 35.285714 | 81 | 0.696356 | 87 | 741 | 5.862069 | 0.321839 | 0.117647 | 0.141176 | 0.170588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012403 | 0.129555 | 741 | 20 | 82 | 37.05 | 0.778295 | 0 | 0 | 0 | 0 | 0 | 0.121457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
05144cf1f77433a7caac5fc8ed5d6205e9dd98fc | 4,242 | py | Python | PyOpenWorm/capability.py | BioComSoftware/PyOpenWorm | 32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f | [
"MIT"
] | 1 | 2019-03-22T12:02:36.000Z | 2019-03-22T12:02:36.000Z | PyOpenWorm/capability.py | BioComSoftware/PyOpenWorm | 32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f | [
"MIT"
] | null | null | null | PyOpenWorm/capability.py | BioComSoftware/PyOpenWorm | 32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f | [
"MIT"
] | null | null | null | '''
Defines 'capabilities', pieces of functionality that an object needs which must
be injected.
A given capability can be provided by more than one capability provider, but,
for a given set of providers, only one will be bound at a time. Logically, each
provider that provides the capability is asked, in a user-provid... | 32.381679 | 109 | 0.690005 | 561 | 4,242 | 5.103387 | 0.317291 | 0.045407 | 0.041914 | 0.024101 | 0.032134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235502 | 4,242 | 130 | 110 | 32.630769 | 0.882825 | 0.464168 | 0 | 0.068966 | 0 | 0 | 0.052486 | 0.009669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0.051724 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
05192c33194bf4769bd738c48e10fc6868bce444 | 1,528 | py | Python | app/app.py | EricDalrymple91/simple-flask-api-with-sqlalchemy | ebedb7c0ca6f345931691b4d25cf9d05dae147c0 | [
"MIT"
] | null | null | null | app/app.py | EricDalrymple91/simple-flask-api-with-sqlalchemy | ebedb7c0ca6f345931691b4d25cf9d05dae147c0 | [
"MIT"
] | null | null | null | app/app.py | EricDalrymple91/simple-flask-api-with-sqlalchemy | ebedb7c0ca6f345931691b4d25cf9d05dae147c0 | [
"MIT"
] | null | null | null | """
python app/app.py -> http://0.0.0.0:8080/
"""
from app.models.database import db, ma
from flask_session import Session
from flask_api import FlaskAPI, status
from flask_assets import Environment
from flask_cors import CORS
from flask import jsonify
import logging
import time
from routes.main_db import main_db_bp
f... | 24.253968 | 87 | 0.746728 | 230 | 1,528 | 4.717391 | 0.356522 | 0.01106 | 0.01106 | 0.007373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031065 | 0.115183 | 1,528 | 62 | 88 | 24.645161 | 0.77145 | 0.104058 | 0 | 0 | 0 | 0 | 0.114223 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.263158 | 0.105263 | 0.526316 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
0521a62c712af1bac9e5fc5f7127ba53182cf6f0 | 695 | py | Python | networkx-d3-v2/lib/appengine_sessions/views.py | suraj-testing2/Clock_Websites | 0e65331da40cfd3766f1bde17f0a9c7ff6666dea | [
"Apache-2.0"
] | null | null | null | networkx-d3-v2/lib/appengine_sessions/views.py | suraj-testing2/Clock_Websites | 0e65331da40cfd3766f1bde17f0a9c7ff6666dea | [
"Apache-2.0"
] | null | null | null | networkx-d3-v2/lib/appengine_sessions/views.py | suraj-testing2/Clock_Websites | 0e65331da40cfd3766f1bde17f0a9c7ff6666dea | [
"Apache-2.0"
] | null | null | null | from appengine_sessions.backends.db import SessionStore
from appengine_sessions.mapper import DeleteMapper
from appengine_sessions.models import Session
from datetime import datetime
from django.contrib.sessions.backends.base import SessionBase
from django.http import HttpResponse
from django.views.generic.base import ... | 30.217391 | 61 | 0.716547 | 79 | 695 | 6.253165 | 0.582278 | 0.078947 | 0.12753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204317 | 695 | 22 | 62 | 31.590909 | 0.893309 | 0.076259 | 0 | 0 | 0 | 0 | 0.069132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.538462 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
05221801aa6a3eded4f2603e43dd16fb0815d68d | 220 | py | Python | cloud_formation/matlab_test.py | AgenttiX/fys-1320 | fb598ece7a3e180bf25af320eb210a34394f6309 | [
"MIT"
] | 2 | 2021-02-01T15:35:07.000Z | 2021-10-17T19:06:34.000Z | cloud_formation/matlab_test.py | AgenttiX/fys-1320 | fb598ece7a3e180bf25af320eb210a34394f6309 | [
"MIT"
] | null | null | null | cloud_formation/matlab_test.py | AgenttiX/fys-1320 | fb598ece7a3e180bf25af320eb210a34394f6309 | [
"MIT"
] | null | null | null | # This file is simply for testing, whether Matlab API for Python works correctly
# It should run without any output or errors
# pylint: disable=import-error
import matlab.engine
matlabeng = matlab.engine.start_matlab()
| 31.428571 | 80 | 0.795455 | 33 | 220 | 5.272727 | 0.818182 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 220 | 6 | 81 | 36.666667 | 0.925532 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
052492bc3be7d6e95961ccfa3571ce5dd96e578e | 1,566 | py | Python | examples/miniapps/movie_lister/app_csv.py | vlad-ghita/python-dependency-injector | 5cf5bdda24851dd97cfa0f5054f4a8c35ddac014 | [
"BSD-3-Clause"
] | null | null | null | examples/miniapps/movie_lister/app_csv.py | vlad-ghita/python-dependency-injector | 5cf5bdda24851dd97cfa0f5054f4a8c35ddac014 | [
"BSD-3-Clause"
] | null | null | null | examples/miniapps/movie_lister/app_csv.py | vlad-ghita/python-dependency-injector | 5cf5bdda24851dd97cfa0f5054f4a8c35ddac014 | [
"BSD-3-Clause"
] | null | null | null | """A naive example of dependency injection on Python.
Example implementation of dependency injection in Python from Martin Fowler's
article about dependency injection and inversion of control:
http://www.martinfowler.com/articles/injection.html
This mini application uses ``movies`` library, that is configured to wor... | 31.32 | 78 | 0.690294 | 163 | 1,566 | 6.478528 | 0.466258 | 0.053977 | 0.039773 | 0.079545 | 0.077652 | 0.077652 | 0.077652 | 0.077652 | 0 | 0 | 0 | 0 | 0.237548 | 1,566 | 49 | 79 | 31.959184 | 0.884422 | 0.298212 | 0 | 0.083333 | 0 | 0 | 0.009242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0524a4a8cf744b6c238a820ab0b7c57ade94346c | 1,141 | py | Python | src/calculator.py | HSShin0/integer_calculator | 0e6f7ee86e0d69781666543833aaa5328ec2829a | [
"MIT"
] | null | null | null | src/calculator.py | HSShin0/integer_calculator | 0e6f7ee86e0d69781666543833aaa5328ec2829a | [
"MIT"
] | 1 | 2020-09-15T07:10:48.000Z | 2020-09-15T07:10:48.000Z | src/calculator.py | HSShin0/integer_calculator | 0e6f7ee86e0d69781666543833aaa5328ec2829a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Basic calculation classes including add, sub, mul, and div.
- Author: Hyungseok Shin
- Contact: hsshin@jmarple.ai
"""
from abc import ABC
class Calculator(ABC):
"""An abstract class of basic computations."""
def operate(self: "Calculator", left: int, right: int) -> int:
"... | 23.285714 | 69 | 0.613497 | 127 | 1,141 | 5.511811 | 0.440945 | 0.071429 | 0.1 | 0.107143 | 0.298571 | 0.132857 | 0 | 0 | 0 | 0 | 0 | 0.001143 | 0.233129 | 1,141 | 48 | 70 | 23.770833 | 0.798857 | 0.321648 | 0 | 0 | 0 | 0 | 0.058577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0 | 0.9375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0526aef62f1678e7e49ee86c745b6fe48131f60c | 890 | py | Python | glue_genomics_data/bedpe_factory.py | gluesolutions/glue-genomics-data | 0e8b055908727b2c385ef64ce4d116de5cd995a9 | [
"BSD-3-Clause"
] | null | null | null | glue_genomics_data/bedpe_factory.py | gluesolutions/glue-genomics-data | 0e8b055908727b2c385ef64ce4d116de5cd995a9 | [
"BSD-3-Clause"
] | 15 | 2021-07-22T14:47:12.000Z | 2021-09-28T14:03:26.000Z | glue_genomics_data/bedpe_factory.py | gluesolutions/glue-genomics-data | 0e8b055908727b2c385ef64ce4d116de5cd995a9 | [
"BSD-3-Clause"
] | null | null | null | from glue.config import data_factory
from glue.core import Data
import pandas as pd
from pathlib import Path
from glue_genomics_viewers.data import BedPeData
__all__ = ['is_bedpe', 'read_bedpe']
def is_bedpe(filename, **kwargs):
return filename.endswith('.bedpe')
@data_factory('BEDPE data loader', is_bedpe, p... | 29.666667 | 72 | 0.739326 | 132 | 890 | 4.871212 | 0.613636 | 0.037325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.201124 | 890 | 30 | 73 | 29.666667 | 0.900141 | 0.452809 | 0 | 0 | 0 | 0 | 0.092551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0.076923 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
05548dfc3b346930922e63cbc3666895eb15c3b2 | 5,733 | py | Python | xmppserver/conf.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | xmppserver/conf.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | xmppserver/conf.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | from django.conf import settings as django_settings
class Settings(object):
def __getattribute__(self, attr):
if attr == attr.upper():
try:
# try django settings first
return getattr(django_settings, 'XMPP_' + attr)
except AttributeError:
... | 30.822581 | 82 | 0.671027 | 807 | 5,733 | 4.697646 | 0.33829 | 0.02374 | 0.022158 | 0.022422 | 0.286732 | 0.286732 | 0.224743 | 0.187286 | 0.187286 | 0.187286 | 0 | 0.00761 | 0.266527 | 5,733 | 185 | 83 | 30.989189 | 0.893936 | 0.008721 | 0 | 0 | 0 | 0 | 0.004129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.057143 | 0.028571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
0557578a3652e17b2c2606979622a652d6656714 | 1,831 | py | Python | gtfsviewer/gtfs.py | ayayron/gtfs-streamlit | 1743895a9bb50394b5edb7a5f0472345ad256581 | [
"MIT"
] | null | null | null | gtfsviewer/gtfs.py | ayayron/gtfs-streamlit | 1743895a9bb50394b5edb7a5f0472345ad256581 | [
"MIT"
] | 1 | 2022-03-12T00:38:31.000Z | 2022-03-12T00:38:31.000Z | gtfsviewer/gtfs.py | ayayron/gtfs-streamlit | 1743895a9bb50394b5edb7a5f0472345ad256581 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from enum import Enum
from typing import Optional
@dataclass(frozen=True)
class Agency:
id: str
name: str
url: str
tz: str
lang: str
@dataclass(frozen=True)
class Calendar:
service_id: int
monday: bool
tuesday: bool
wednesday: bool
tursday: b... | 15.921739 | 55 | 0.66521 | 244 | 1,831 | 4.840164 | 0.344262 | 0.08044 | 0.160881 | 0.203218 | 0.160034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262698 | 1,831 | 114 | 56 | 16.061404 | 0.874815 | 0.008192 | 0 | 0.347826 | 0 | 0 | 0.006615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032609 | 0 | 0.891304 | 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 | 0 | 1 | 0 | 0 | 2 |
055b7dd58ab75ff5661129b37b2b775ba09df9c8 | 665 | py | Python | hanabi_ai/players/example_discarder.py | akaps/hanabi_ai | 474ec9a827f1a28b5e06cbf8139fbce1d8e5e1e1 | [
"MIT"
] | 1 | 2019-06-02T13:36:56.000Z | 2019-06-02T13:36:56.000Z | hanabi_ai/players/example_discarder.py | akaps/hanabi_ai | 474ec9a827f1a28b5e06cbf8139fbce1d8e5e1e1 | [
"MIT"
] | 106 | 2018-08-29T07:17:38.000Z | 2021-02-13T18:28:31.000Z | hanabi_ai/players/example_discarder.py | akaps/hanabi_ai | 474ec9a827f1a28b5e06cbf8139fbce1d8e5e1e1 | [
"MIT"
] | 1 | 2018-09-01T22:10:59.000Z | 2018-09-01T22:10:59.000Z | import hanabi_ai.model.table as game
import hanabi_ai.model.moves as moves
from hanabi_ai.players.player import HanabiPlayer
# To create an AI for Hanabi, make a new class in the ai folder,
# extend HanabiPlayer, and implement do_turn
class Discarder(HanabiPlayer):
def __init__(self):
pass
def do_tur... | 36.944444 | 82 | 0.654135 | 81 | 665 | 5.148148 | 0.54321 | 0.105516 | 0.067146 | 0.091127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004228 | 0.288722 | 665 | 17 | 83 | 39.117647 | 0.877378 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
0576e4be852d31a412de6b56f511d3469cb9ef4a | 787 | py | Python | autoperf/harpy/timings.py | mingyuchoo/django_study | 608e6bddb37b03329a24a334184143a9881b3676 | [
"MIT"
] | null | null | null | autoperf/harpy/timings.py | mingyuchoo/django_study | 608e6bddb37b03329a24a334184143a9881b3676 | [
"MIT"
] | 7 | 2019-12-04T23:52:28.000Z | 2022-02-10T09:23:02.000Z | autoperf/harpy/timings.py | mingyuchoo/django_study | 608e6bddb37b03329a24a334184143a9881b3676 | [
"MIT"
] | null | null | null | class Timings(object):
def __init__(self, j):
self.raw = j
if "blocked" in self.raw:
self.blocked = self.raw["blocked"]
else:
self.blocked = -1
if "dns" in self.raw:
self.dns = self.raw["dns"]
else:
self.dns = -1
if "... | 23.848485 | 46 | 0.466328 | 94 | 787 | 3.861702 | 0.212766 | 0.269972 | 0.123967 | 0.179063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008457 | 0.398983 | 787 | 32 | 47 | 24.59375 | 0.758985 | 0 | 0 | 0.192308 | 0 | 0 | 0.087675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
05834f1f9f9f327826c893bf9c0e5c2a90cc1fac | 768 | py | Python | cobweb/scrapyLearn/mysqlpjt/mysqlpjt/pipelines.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | null | null | null | cobweb/scrapyLearn/mysqlpjt/mysqlpjt/pipelines.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | 6 | 2020-03-24T16:48:36.000Z | 2022-02-11T03:42:50.000Z | cobweb/scrapyLearn/mysqlpjt/mysqlpjt/pipelines.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
class MysqlpjtPipeline(object):
def __init__(self):
# 与数据库建立连接
self.conn = pymysql.connec... | 26.482759 | 94 | 0.611979 | 99 | 768 | 4.676768 | 0.626263 | 0.069114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005085 | 0.231771 | 768 | 28 | 95 | 27.428571 | 0.779661 | 0.247396 | 0 | 0 | 0 | 0 | 0.155867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.071429 | 0 | 0.428571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
554c4083cd12a673c39d24cb3994a9098b754fc8 | 370 | py | Python | chapter16/tests/unit_tests.py | PacktPublishing/Mastering-Azure-Machine-Learning-Second-Edition | 1ca0cf19fd49f6781c589ae4d9bde56135791cf1 | [
"MIT"
] | 1 | 2022-03-07T20:15:08.000Z | 2022-03-07T20:15:08.000Z | chapter16/tests/unit_tests.py | PacktPublishing/Mastering-Azure-Machine-Learning-Second-Edition | 1ca0cf19fd49f6781c589ae4d9bde56135791cf1 | [
"MIT"
] | null | null | null | chapter16/tests/unit_tests.py | PacktPublishing/Mastering-Azure-Machine-Learning-Second-Edition | 1ca0cf19fd49f6781c589ae4d9bde56135791cf1 | [
"MIT"
] | 1 | 2022-03-22T17:57:41.000Z | 2022-03-22T17:57:41.000Z | import unittest
import pandas as pd
class TestDataFrameStats(unittest.TestCase):
def setUp(self):
# initialize and load df
self.df = pd.DataFrame(data={'data': [0,1,2,3]})
def test_min(self):
self.assertGreaterEqual(self.df.min().values[0], 0)
def test_max(self):
... | 26.428571 | 59 | 0.637838 | 51 | 370 | 4.588235 | 0.54902 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0.221622 | 370 | 14 | 60 | 26.428571 | 0.777778 | 0.059459 | 0 | 0 | 0 | 0 | 0.011527 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
555419e216f1f582d11a2be27e87821b30029b6b | 32,565 | py | Python | tests/pykafka/test_protocol.py | wikimedia/operations-debs-python-pykafka | d8380957a923e67a9d66c2e1e48312dd10c5271d | [
"Apache-2.0"
] | null | null | null | tests/pykafka/test_protocol.py | wikimedia/operations-debs-python-pykafka | d8380957a923e67a9d66c2e1e48312dd10c5271d | [
"Apache-2.0"
] | null | null | null | tests/pykafka/test_protocol.py | wikimedia/operations-debs-python-pykafka | d8380957a923e67a9d66c2e1e48312dd10c5271d | [
"Apache-2.0"
] | null | null | null | import operator
import unittest2
from pykafka import protocol
from pykafka.common import CompressionType
from pykafka.utils.compat import buffer
class TestMetadataAPI(unittest2.TestCase):
maxDiff = None
def test_request(self):
req = protocol.MetadataRequest()
msg = req.get_bytes()
se... | 44.917241 | 410 | 0.477691 | 3,712 | 32,565 | 4.140894 | 0.088631 | 0.24904 | 0.22074 | 0.104743 | 0.726368 | 0.676729 | 0.64921 | 0.617136 | 0.574458 | 0.559365 | 0 | 0.148214 | 0.398956 | 32,565 | 724 | 411 | 44.979282 | 0.637102 | 0.138216 | 0 | 0.608434 | 0 | 0.027108 | 0.269503 | 0.109944 | 0 | 0 | 0 | 0 | 0.075301 | 1 | 0.051205 | false | 0 | 0.00753 | 0 | 0.081325 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5562848a302f8f16f948dbeb9d46bc69fdc98ff8 | 483 | py | Python | examples/mouse/make_reports.py | jpkulasingham/Eelbrain | 1061ce0b781a8e55ec187723b58491a5cde32e08 | [
"BSD-3-Clause"
] | 32 | 2015-04-05T15:38:55.000Z | 2022-03-12T02:35:09.000Z | examples/mouse/make_reports.py | jpkulasingham/Eelbrain | 1061ce0b781a8e55ec187723b58491a5cde32e08 | [
"BSD-3-Clause"
] | 22 | 2015-07-14T14:55:44.000Z | 2022-03-15T17:46:11.000Z | examples/mouse/make_reports.py | jpkulasingham/Eelbrain | 1061ce0b781a8e55ec187723b58491a5cde32e08 | [
"BSD-3-Clause"
] | 29 | 2015-04-23T13:51:09.000Z | 2021-08-12T11:28:21.000Z | # skip test: data unavailable
"""Generate group level result resports for the Mouse experiment
This script generates HTML reports based on the experiment defined in
``mouse.py``.
"""
from mouse import e
e.set(epoch='target', inv='fixed-3-dSPM')
e.make_report('surprise', mask='frontotemporal-lh', pmin=0.05, baseline=... | 37.153846 | 120 | 0.73499 | 80 | 483 | 4.4125 | 0.6375 | 0.028329 | 0.062323 | 0.107649 | 0.436261 | 0.436261 | 0.436261 | 0.436261 | 0.436261 | 0.436261 | 0 | 0.048499 | 0.10352 | 483 | 12 | 121 | 40.25 | 0.766744 | 0.362319 | 0 | 0 | 1 | 0 | 0.275748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5575bd4041f8e2638bc9fdd187ab3a9422fab620 | 818 | py | Python | code/kg2/generate_umls2rdf_conf.py | meghasin/RTX | 4e7b73263f60840d206ce759111214c28bfc999d | [
"MIT"
] | 3 | 2021-11-09T19:41:40.000Z | 2021-12-26T21:51:38.000Z | code/kg2/generate_umls2rdf_conf.py | meghasin/RTX | 4e7b73263f60840d206ce759111214c28bfc999d | [
"MIT"
] | 190 | 2021-05-22T01:25:49.000Z | 2022-03-20T05:05:37.000Z | code/kg2/generate_umls2rdf_conf.py | meghasin/RTX | 4e7b73263f60840d206ce759111214c28bfc999d | [
"MIT"
] | 1 | 2021-05-26T22:51:26.000Z | 2021-05-26T22:51:26.000Z | #!/usr/bin/env python3
import MySQLdb
import getpass
# Generate configuration for the "umls2rdf" software, by querying which data sources are
# available in an installed UMLS mysql database; this script prints the configuration
# information as CSV to stdout.
password = getpass.getpass("Please enter the password for ... | 37.181818 | 101 | 0.649144 | 101 | 818 | 5.227723 | 0.752475 | 0.034091 | 0.064394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006483 | 0.245721 | 818 | 21 | 102 | 38.952381 | 0.849271 | 0.331296 | 0 | 0 | 1 | 0 | 0.271218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.230769 | 0.153846 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
557a8da7abc7823e3358cd28e1c0d3d091116a4d | 1,017 | py | Python | app/models/admin.py | redsnowc/odst | ae49802477d6bfccdde39e3445bfe55468ce9d5c | [
"MIT"
] | null | null | null | app/models/admin.py | redsnowc/odst | ae49802477d6bfccdde39e3445bfe55468ce9d5c | [
"MIT"
] | 1 | 2021-06-02T00:03:50.000Z | 2021-06-02T00:03:50.000Z | app/models/admin.py | redsnowc/odst | ae49802477d6bfccdde39e3445bfe55468ce9d5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:author: 秋荏苒
:copyright: © 2019 by 秋荏苒 <nuanyang.44@gmail.com>.
:license: MIT, see LICENSE for more details.
"""
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from app.libs.extensions import db
from app.models.base im... | 32.806452 | 73 | 0.709931 | 148 | 1,017 | 4.736486 | 0.472973 | 0.114123 | 0.142653 | 0.182596 | 0.125535 | 0.065621 | 0 | 0 | 0 | 0 | 0 | 0.031765 | 0.164208 | 1,017 | 30 | 74 | 33.9 | 0.791765 | 0.12881 | 0 | 0 | 0 | 0 | 0.006928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.315789 | 0.210526 | 0.052632 | 0.947368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
557f2f3ff719147960ada82a33b5ec7f049814f7 | 4,931 | py | Python | src/Army.py | gle8098/hundred-years-war | c74820337dd4ea6129c0b2aaa012be5666814e76 | [
"WTFPL"
] | null | null | null | src/Army.py | gle8098/hundred-years-war | c74820337dd4ea6129c0b2aaa012be5666814e76 | [
"WTFPL"
] | null | null | null | src/Army.py | gle8098/hundred-years-war | c74820337dd4ea6129c0b2aaa012be5666814e76 | [
"WTFPL"
] | null | null | null | from src.ArmyEconomics import ArmyEconomics
from src.Squad import Squad
from src.ArmyEconomicsProxy import ArmyEconomicsProxy
from src.CountriesConstants import CountryConstants
from src.CombatElement import CombatElement
from src.BattleEventsListener import BattleEventsListener
from src import GameplayParameters... | 31.608974 | 90 | 0.630704 | 565 | 4,931 | 5.210619 | 0.20708 | 0.027174 | 0.023777 | 0.023777 | 0.241508 | 0.167459 | 0.131793 | 0.110734 | 0.081522 | 0.038723 | 0 | 0.00229 | 0.291624 | 4,931 | 155 | 91 | 31.812903 | 0.840538 | 0.016224 | 0 | 0.095652 | 0 | 0 | 0.041587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226087 | false | 0 | 0.069565 | 0.069565 | 0.53913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
55834af41ed7ec29168673a0b9eb32a326abe92b | 89 | py | Python | django_python3_ldap/__init__.py | akhoslabinary/ldap | bdaf747b20cc6f30aa78c58a753244434742d213 | [
"BSD-3-Clause"
] | null | null | null | django_python3_ldap/__init__.py | akhoslabinary/ldap | bdaf747b20cc6f30aa78c58a753244434742d213 | [
"BSD-3-Clause"
] | null | null | null | django_python3_ldap/__init__.py | akhoslabinary/ldap | bdaf747b20cc6f30aa78c58a753244434742d213 | [
"BSD-3-Clause"
] | null | null | null | """
Django LDAP user authentication backend for Python 3.
"""
__version__ = (0, 11, 2)
| 12.714286 | 53 | 0.674157 | 12 | 89 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.191011 | 89 | 6 | 54 | 14.833333 | 0.708333 | 0.595506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55858905a4fd59663d2bf2214125da7846ecdc2d | 3,193 | py | Python | tests/test_compare.py | digitalkaoz/py_human_name_compare | d1d53c81f3c109500a0036deb69e3f7f70f32dd8 | [
"MIT"
] | null | null | null | tests/test_compare.py | digitalkaoz/py_human_name_compare | d1d53c81f3c109500a0036deb69e3f7f70f32dd8 | [
"MIT"
] | null | null | null | tests/test_compare.py | digitalkaoz/py_human_name_compare | d1d53c81f3c109500a0036deb69e3f7f70f32dd8 | [
"MIT"
] | null | null | null | import unittest
from human_name_compare import match_name
name_sets = [
"Robert Schönthal",
"Robert R. Schönthal",
"Robert R Schönthal",
"Robert R Peter Schönthal",
"R. Schönthal",
"R Schönthal",
"Robert Robert Schönthal"
]
no_sets = [
"Robert Müller",
"Peter Schönthal",
]
class... | 40.417722 | 94 | 0.606013 | 363 | 3,193 | 5.192837 | 0.292011 | 0.128912 | 0.181432 | 0.219629 | 0.285942 | 0.177188 | 0.089125 | 0.089125 | 0.066844 | 0.066844 | 0 | 0 | 0.261823 | 3,193 | 78 | 95 | 40.935897 | 0.799745 | 0 | 0 | 0.030303 | 0 | 0 | 0.357344 | 0 | 0 | 0 | 0 | 0 | 0.393939 | 1 | 0.045455 | false | 0 | 0.030303 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
55891ba9a79529570cd750d4cc9fdbd7ca107075 | 6,588 | py | Python | myagents.py | obedotto/aiagent | f882ad524cf17fa1d88adf5ed27e538977be3a07 | [
"BSD-3-Clause"
] | null | null | null | myagents.py | obedotto/aiagent | f882ad524cf17fa1d88adf5ed27e538977be3a07 | [
"BSD-3-Clause"
] | null | null | null | myagents.py | obedotto/aiagent | f882ad524cf17fa1d88adf5ed27e538977be3a07 | [
"BSD-3-Clause"
] | null | null | null | import random
class Thing:
"""
This represents any physical object that can appear in an Environment.
"""
def is_alive(self):
"""Things that are 'alive' should return true."""
return hasattr(self, 'alive') and self.alive
def show_state(self):
"""Display the agent's int... | 34.673684 | 95 | 0.600638 | 811 | 6,588 | 4.794081 | 0.260173 | 0.012346 | 0.011574 | 0.013374 | 0.114712 | 0.064815 | 0.048611 | 0.02392 | 0.013374 | 0 | 0 | 0.003417 | 0.289162 | 6,588 | 189 | 96 | 34.857143 | 0.82682 | 0.344414 | 0 | 0.121212 | 0 | 0 | 0.075895 | 0 | 0 | 0 | 0 | 0.010582 | 0 | 1 | 0.212121 | false | 0 | 0.010101 | 0.010101 | 0.373737 | 0.080808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
559b470fd09bf54c6a5d3e70ac07bb9e3353dda1 | 392 | py | Python | Python Projects/django_login_reg/log_reg_app/migrations/0002_user_password.py | that-other-alexa/bootcamp-projects | 68c1fc700c879b2742f33241998e815fe54dea99 | [
"MIT"
] | null | null | null | Python Projects/django_login_reg/log_reg_app/migrations/0002_user_password.py | that-other-alexa/bootcamp-projects | 68c1fc700c879b2742f33241998e815fe54dea99 | [
"MIT"
] | null | null | null | Python Projects/django_login_reg/log_reg_app/migrations/0002_user_password.py | that-other-alexa/bootcamp-projects | 68c1fc700c879b2742f33241998e815fe54dea99 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-13 05:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('log_reg_app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='password',
... | 20.631579 | 65 | 0.596939 | 44 | 392 | 5.204545 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078571 | 0.285714 | 392 | 18 | 66 | 21.777778 | 0.739286 | 0.114796 | 0 | 0 | 1 | 0 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
55adac48d4d4e534437c38ca12f50657368f2137 | 400 | py | Python | c05/p158.py | HiAwesome/python-algorithm | eda61b52b4b25940caf58a40641122772b8c9203 | [
"Apache-2.0"
] | 1 | 2020-11-05T08:55:30.000Z | 2020-11-05T08:55:30.000Z | c05/p158.py | HiAwesome/python-algorithm | eda61b52b4b25940caf58a40641122772b8c9203 | [
"Apache-2.0"
] | null | null | null | c05/p158.py | HiAwesome/python-algorithm | eda61b52b4b25940caf58a40641122772b8c9203 | [
"Apache-2.0"
] | null | null | null | def sequentialSearch(alist, item):
pos = 0
found = False
while pos < len(alist) and not found:
if alist[pos] == item:
found = True
else:
pos += 1
return found
if __name__ == '__main__':
test_list = [1, 2, 32, 8, 17, 19, 42, 13, 0]
print(sequentialSearc... | 17.391304 | 48 | 0.56 | 52 | 400 | 4.096154 | 0.576923 | 0.112676 | 0.234742 | 0.2723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069091 | 0.3125 | 400 | 22 | 49 | 18.181818 | 0.705455 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.153846 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9521d67a905dc22c3b2e0748a513a9a3afc403a | 912 | py | Python | md2html/__version__.py | g0man/md2html | c7f021298556e60984497464c1f523ac2443e868 | [
"MIT"
] | 1 | 2018-08-03T01:25:38.000Z | 2018-08-03T01:25:38.000Z | md2html/__version__.py | g0man/md2html | c7f021298556e60984497464c1f523ac2443e868 | [
"MIT"
] | null | null | null | md2html/__version__.py | g0man/md2html | c7f021298556e60984497464c1f523ac2443e868 | [
"MIT"
] | null | null | null | # version_info should conform to PEP 386
# (major, minor, micro, alpha/beta/rc/final, #)
# (1, 1, 2, 'alpha', 0) => "1.1.2.dev"
# (1, 2, 0, 'beta', 2) => "1.2b2"
__version_info__ = (0, 1, 0, 'alpha', 0)
def _get_version(): # pragma: no cover
" Returns a PEP 386-compliant version number from version_info. "
a... | 35.076923 | 69 | 0.605263 | 133 | 912 | 3.699248 | 0.428571 | 0.268293 | 0.097561 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0.217105 | 912 | 26 | 70 | 35.076923 | 0.638655 | 0.308114 | 0 | 0 | 0 | 0 | 0.164244 | 0 | 0 | 0 | 0 | 0.038462 | 0.133333 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e954e12e98a793a8f412d1373ab4543b2c8f2aca | 237 | py | Python | lib/castiron/options.py | wijjo/castiron | 6cb8b542f887546e3569ca5292b721a7b42e2e3e | [
"Apache-2.0"
] | null | null | null | lib/castiron/options.py | wijjo/castiron | 6cb8b542f887546e3569ca5292b721a7b42e2e3e | [
"Apache-2.0"
] | null | null | null | lib/castiron/options.py | wijjo/castiron | 6cb8b542f887546e3569ca5292b721a7b42e2e3e | [
"Apache-2.0"
] | null | null | null | class Options(object):
def __init__(self, dry_run=False, unoptimized=False, verbose=False, debug=False):
self.dry_run = dry_run
self.unoptimized = unoptimized
self.verbose = verbose
self.debug = debug
| 33.857143 | 85 | 0.670886 | 29 | 237 | 5.241379 | 0.413793 | 0.118421 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236287 | 237 | 6 | 86 | 39.5 | 0.839779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
e96525f4438647fcdf889ae8212d6957df7f141f | 240 | py | Python | PhysicsTools/PatAlgos/python/recoLayer0/duplicatedElectrons_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | PhysicsTools/PatAlgos/python/recoLayer0/duplicatedElectrons_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | PhysicsTools/PatAlgos/python/recoLayer0/duplicatedElectrons_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
# Remove duplicates from the electron list
electronsNoDuplicates = cms.EDFilter("DuplicatedElectronCleaner",
## reco electron input source
electronSource = cms.InputTag("gsfElectrons"),
)
| 26.666667 | 65 | 0.779167 | 24 | 240 | 7.791667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141667 | 240 | 8 | 66 | 30 | 0.907767 | 0.279167 | 0 | 0 | 0 | 0 | 0.218935 | 0.147929 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e96b52ade17ce44056a0244362f9b82c48a240f4 | 188 | py | Python | CS1410/Code/mode.py | Davidjbennett/DavidBennett.github.io | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | 3 | 2021-05-18T16:17:29.000Z | 2022-01-20T15:46:59.000Z | CS1410/Code/mode.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | CS1410/Code/mode.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | words = [word.upper() for word in open('gettysburg.txt').read().split()]
theDictionary = {}
for word in words:
theDictionary[word] = theDictionary.get(word,0) + 1
print(theDictionary)
| 31.333333 | 72 | 0.707447 | 25 | 188 | 5.32 | 0.6 | 0.105263 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.12766 | 188 | 5 | 73 | 37.6 | 0.79878 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9866a497ac17b3733cabd6268dbaa332b40695b | 3,456 | py | Python | support/sendmail.py | plsang/tvmed-framework | 212f938941550ae3d4d8f48e9c88008ff6203a0a | [
"Unlicense"
] | null | null | null | support/sendmail.py | plsang/tvmed-framework | 212f938941550ae3d4d8f48e9c88008ff6203a0a | [
"Unlicense"
] | null | null | null | support/sendmail.py | plsang/tvmed-framework | 212f938941550ae3d4d8f48e9c88008ff6203a0a | [
"Unlicense"
] | null | null | null | import smtplib
import os
import sys
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.Utils import COMMASPACE, formatdate
from email import Encoders
from optparse import OptionParser
parser = OptionParser()
parser.add_option(
"-x", "--... | 24.863309 | 74 | 0.478299 | 324 | 3,456 | 4.993827 | 0.333333 | 0.050062 | 0.083436 | 0.051916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002414 | 0.280671 | 3,456 | 138 | 75 | 25.043478 | 0.648431 | 0.119502 | 0 | 0.155963 | 0 | 0 | 0.156785 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0 | null | null | 0.06422 | 0.082569 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e98780c12fbbeccfab047f43580583cd576c0c6f | 305 | py | Python | tests/test_main.py | postrational/osmtilecalc | a744696e05c885c935d410522244ad5409dd104c | [
"MIT"
] | null | null | null | tests/test_main.py | postrational/osmtilecalc | a744696e05c885c935d410522244ad5409dd104c | [
"MIT"
] | null | null | null | tests/test_main.py | postrational/osmtilecalc | a744696e05c885c935d410522244ad5409dd104c | [
"MIT"
] | null | null | null | from tile_calculator.main import parse_args
def test_main():
parser = parse_args(["54", "18", "1", "10"])
assert parser.latitude == 54
assert parser.longitude == 18
assert parser.radius == 1
assert parser.zoom_level == 10
assert not parser.miles
assert not parser.total_only
| 25.416667 | 48 | 0.678689 | 43 | 305 | 4.674419 | 0.55814 | 0.238806 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058091 | 0.209836 | 305 | 11 | 49 | 27.727273 | 0.775934 | 0 | 0 | 0 | 0 | 0 | 0.022951 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e98dae30aa9dadfccd3eb1fd79e4172c895611a1 | 214 | py | Python | gunicorn.conf.py | barry-ran/werobot | 6836d4705a16a0e5aef4ffacebf6a5c8aa66d7fd | [
"MIT"
] | 1 | 2021-10-20T07:46:57.000Z | 2021-10-20T07:46:57.000Z | gunicorn.conf.py | barry-ran/werobot | 6836d4705a16a0e5aef4ffacebf6a5c8aa66d7fd | [
"MIT"
] | null | null | null | gunicorn.conf.py | barry-ran/werobot | 6836d4705a16a0e5aef4ffacebf6a5c8aa66d7fd | [
"MIT"
] | 4 | 2021-08-10T01:13:10.000Z | 2021-12-22T03:41:21.000Z | import multiprocessing
debug = False
bind = "0.0.0.0:5000"
pidfile = "gunicorn.pid"
workers = multiprocessing.cpu_count()*2 + 1
worker_class = "gevent"
# daemon=True 在docker中不需要daemon运行,反而会导致看不到gunicorn输出而增加排查问题的难度 | 30.571429 | 62 | 0.78972 | 26 | 214 | 6.423077 | 0.846154 | 0.035928 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051813 | 0.098131 | 214 | 7 | 62 | 30.571429 | 0.813472 | 0.280374 | 0 | 0 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9972e902c7d4ad49dfe5773af7119925b6c7968 | 2,891 | py | Python | ratatosk/lib/variation/tabix.py | percyfal/ratatosk | 71ee4741952219c1fccf9cb6c172a354610d499c | [
"Apache-2.0"
] | 6 | 2015-07-13T16:58:27.000Z | 2016-09-01T11:56:30.000Z | ratatosk/lib/variation/tabix.py | percyfal/ratatosk | 71ee4741952219c1fccf9cb6c172a354610d499c | [
"Apache-2.0"
] | null | null | null | ratatosk/lib/variation/tabix.py | percyfal/ratatosk | 71ee4741952219c1fccf9cb6c172a354610d499c | [
"Apache-2.0"
] | 4 | 2015-01-14T06:49:34.000Z | 2019-05-11T23:43:50.000Z | # Copyright (c) 2013 Per Unneberg
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 30.755319 | 103 | 0.695607 | 361 | 2,891 | 5.531856 | 0.385042 | 0.084126 | 0.126189 | 0.075113 | 0.317476 | 0.302454 | 0.24637 | 0.232849 | 0.200801 | 0.200801 | 0 | 0.005955 | 0.186787 | 2,891 | 93 | 104 | 31.086022 | 0.843471 | 0.245936 | 0 | 0.245283 | 0 | 0 | 0.094532 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0.037736 | 0.132075 | 0.113208 | 0.811321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
e9a688faf71a2e8bd61f4efc91959e21628d1db5 | 841 | py | Python | server/forestgame/test_colour.py | Nick-Pearson/forestgame | 8a37225adbe6da9df7851eba34ad06806da0ce48 | [
"0BSD"
] | null | null | null | server/forestgame/test_colour.py | Nick-Pearson/forestgame | 8a37225adbe6da9df7851eba34ad06806da0ce48 | [
"0BSD"
] | 5 | 2021-03-10T14:18:45.000Z | 2022-03-12T00:28:29.000Z | server/forestgame/test_colour.py | Nick-Pearson/forestgame | 8a37225adbe6da9df7851eba34ad06806da0ce48 | [
"0BSD"
] | null | null | null | import unittest
from forestgame.colour import colour_to_hex
class ToHexTest(unittest.TestCase):
def test_convert_solid_black(self):
hex_code = colour_to_hex((0, 0, 0))
self.assertEqual(hex_code, "#000000")
def test_convert_solid_whex_codeite(self):
hex_code = colour_to_hex((255, 255, 255))
self.a... | 29 | 45 | 0.719382 | 128 | 841 | 4.375 | 0.265625 | 0.15 | 0.1375 | 0.182143 | 0.469643 | 0.339286 | 0.216071 | 0.085714 | 0 | 0 | 0 | 0.075843 | 0.153389 | 841 | 28 | 46 | 30.035714 | 0.710674 | 0 | 0 | 0 | 0 | 0 | 0.049941 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9b1ada3f713ed4dd315cbbcbd80498751208753 | 606 | py | Python | netbox_rbac/macros.py | shakefu/netbox-rbac | ed7acbf00ae0a289d417465addfb723f8dca8cec | [
"MIT"
] | 5 | 2020-01-07T08:22:07.000Z | 2020-06-02T16:00:06.000Z | netbox_rbac/macros.py | shakefu/netbox-rbac | ed7acbf00ae0a289d417465addfb723f8dca8cec | [
"MIT"
] | 5 | 2020-05-05T17:08:01.000Z | 2021-10-29T21:13:46.000Z | netbox_rbac/macros.py | shakefu/netbox-rbac | ed7acbf00ae0a289d417465addfb723f8dca8cec | [
"MIT"
] | 2 | 2020-05-08T00:39:12.000Z | 2020-11-19T21:53:46.000Z | from wcmatch.fnmatch import fnmatch
def get(obj, path):
for attr in path.split("."):
if not hasattr(obj, attr):
return None
obj = getattr(obj, attr)
return obj
def match(obj, *args):
*paths, values = args
return _walk_match(obj, paths, values, False)
def match_or_non... | 17.823529 | 49 | 0.615512 | 83 | 606 | 4.39759 | 0.349398 | 0.150685 | 0.09863 | 0.139726 | 0.342466 | 0.279452 | 0.279452 | 0.279452 | 0.279452 | 0.279452 | 0 | 0 | 0.283828 | 606 | 33 | 50 | 18.363636 | 0.841014 | 0 | 0 | 0.105263 | 0 | 0 | 0.00165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
75686236f633eaa74d39b52bb49f39c0d83f27f0 | 378 | py | Python | orders/choices.py | Zadigo/mycommerce | 145031ebb359389e680a820577a4b6b2d382646d | [
"MIT"
] | null | null | null | orders/choices.py | Zadigo/mycommerce | 145031ebb359389e680a820577a4b6b2d382646d | [
"MIT"
] | null | null | null | orders/choices.py | Zadigo/mycommerce | 145031ebb359389e680a820577a4b6b2d382646d | [
"MIT"
] | null | null | null | from django.db.models import Choices
class ShipmentChoices(Choices):
CHRONOPOST = 'Chronopost'
COLISSIMO_STANDARD = 'Colissimo - Livraison standard'
COLISSIMO_INTERNATIONAL = 'Colissimo International'
COLIPOSTE_DOM_TOM = 'Coliposte DOM-TOM'
COLIPOSTE_INTERNATIONAL = 'Coliposte International'
RE... | 34.363636 | 57 | 0.756614 | 38 | 378 | 7.342105 | 0.526316 | 0.121864 | 0.107527 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169312 | 378 | 10 | 58 | 37.8 | 0.888535 | 0 | 0 | 0 | 0 | 0 | 0.330688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
756f0213852e33c13d8f43a7a2f1fe6b016c8670 | 652 | py | Python | ServerComponent/Analysers/Models.py | CDU55/FakeNews | 707bd48dd78851081d98ad21bbdadfc2720bd644 | [
"MIT"
] | null | null | null | ServerComponent/Analysers/Models.py | CDU55/FakeNews | 707bd48dd78851081d98ad21bbdadfc2720bd644 | [
"MIT"
] | 37 | 2020-10-20T08:30:53.000Z | 2020-12-22T13:15:45.000Z | ServerComponent/Analysers/Models.py | CDU55/FakeNews | 707bd48dd78851081d98ad21bbdadfc2720bd644 | [
"MIT"
] | 1 | 2020-10-19T14:55:23.000Z | 2020-10-19T14:55:23.000Z | class AnalysisElement:
def __init__(self, validationResult, validationMessage):
self.validation_result = validationResult
self.validation_message = validationMessage
class AnalysisResult:
def __init__(self):
self.elements = []
def add_element(self, element: AnalysisElement):
... | 24.148148 | 60 | 0.696319 | 62 | 652 | 7 | 0.33871 | 0.064516 | 0.101382 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220859 | 652 | 26 | 61 | 25.076923 | 0.854331 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
75745e1d864863a9fd3849bbdcd4cb89b05d83db | 502 | py | Python | backend/app/models/user.py | xi102/annotation_tools | eb7e195651e5d7738f48f303ee5d4ecb1b6d10e1 | [
"MIT"
] | null | null | null | backend/app/models/user.py | xi102/annotation_tools | eb7e195651e5d7738f48f303ee5d4ecb1b6d10e1 | [
"MIT"
] | null | null | null | backend/app/models/user.py | xi102/annotation_tools | eb7e195651e5d7738f48f303ee5d4ecb1b6d10e1 | [
"MIT"
] | null | null | null | import random
from app import db
class User(db.Model):
__tablename__ = 'user'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(16), unique=True)
password = db.Column(db.String(20))
email = db.Column(db.String(20), unique=True)
code = str(int(random.uniform(0, 1) * 1... | 25.1 | 56 | 0.63745 | 71 | 502 | 4.380282 | 0.521127 | 0.102894 | 0.128617 | 0.154341 | 0.29582 | 0.180064 | 0.180064 | 0 | 0 | 0 | 0 | 0.061224 | 0.219124 | 502 | 19 | 57 | 26.421053 | 0.732143 | 0 | 0 | 0 | 0 | 0 | 0.025896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0.071429 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
7576b7bfaa4141e7e958dc5ad82c566881c44d4d | 1,617 | py | Python | tests/pdf/test_pdf_extraction.py | mikesperry/IndicoIo-python | caa155b8b31b76df3f86f559ce5324f061a03e40 | [
"MIT"
] | 4 | 2015-08-20T22:42:19.000Z | 2016-03-14T01:28:45.000Z | tests/pdf/test_pdf_extraction.py | mikesperry/IndicoIo-python | caa155b8b31b76df3f86f559ce5324f061a03e40 | [
"MIT"
] | null | null | null | tests/pdf/test_pdf_extraction.py | mikesperry/IndicoIo-python | caa155b8b31b76df3f86f559ce5324f061a03e40 | [
"MIT"
] | null | null | null | import os.path
import PIL
from PIL import Image
from PIL.PpmImagePlugin import PpmImageFile
import six
from indicoio import pdf_extraction
from .indico_pdf_base import PDFTestCase
DIR = os.path.dirname(os.path.realpath(__file__))
PDF = os.path.join(DIR, 'data', 'test.pdf')
class PDFExtractionTestCase(PDFTestCase):... | 35.152174 | 117 | 0.688312 | 200 | 1,617 | 5.46 | 0.3 | 0.082418 | 0.119048 | 0.173993 | 0.544872 | 0.485348 | 0.423077 | 0.351648 | 0.351648 | 0.351648 | 0 | 0.003852 | 0.197279 | 1,617 | 45 | 118 | 35.933333 | 0.837442 | 0 | 0 | 0.333333 | 0 | 0.027778 | 0.132962 | 0 | 0 | 0 | 0 | 0 | 0.472222 | 1 | 0.111111 | false | 0 | 0.194444 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7580d57583a4f93e3374285e5bae1fdc9be25742 | 269 | py | Python | polls/migrations/0010_merge_20190616_1730.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | null | null | null | polls/migrations/0010_merge_20190616_1730.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | 6 | 2016-10-18T14:52:05.000Z | 2020-06-18T15:14:41.000Z | polls/migrations/0010_merge_20190616_1730.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | 6 | 2020-02-07T17:37:37.000Z | 2021-01-15T00:01:43.000Z | # Generated by Django 2.2.2 on 2019-06-16 16:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0009_auto_20180927_2204'),
('polls', '0008_auto_20181215_1420'),
]
operations = [
]
| 17.933333 | 47 | 0.643123 | 33 | 269 | 5.060606 | 0.757576 | 0.023952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228155 | 0.234201 | 269 | 14 | 48 | 19.214286 | 0.582524 | 0.167286 | 0 | 0 | 1 | 0 | 0.252252 | 0.207207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
758de34e4320003f1d672bd03309c80db5640ae1 | 1,108 | py | Python | Chapter11/Exercise_11.05/bookr/reviews/api_views.py | lmoshood/The-Django-Workshop | 52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62 | [
"MIT"
] | null | null | null | Chapter11/Exercise_11.05/bookr/reviews/api_views.py | lmoshood/The-Django-Workshop | 52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62 | [
"MIT"
] | null | null | null | Chapter11/Exercise_11.05/bookr/reviews/api_views.py | lmoshood/The-Django-Workshop | 52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62 | [
"MIT"
] | 1 | 2020-05-27T13:41:58.000Z | 2020-05-27T13:41:58.000Z | from django.contrib.auth import authenticate
from rest_framework import viewsets
from rest_framework.authtoken.models import Token
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.status ... | 36.933333 | 117 | 0.784296 | 134 | 1,108 | 6.313433 | 0.440299 | 0.066194 | 0.140662 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012618 | 0.141697 | 1,108 | 29 | 118 | 38.206897 | 0.876972 | 0 | 0 | 0 | 0 | 0 | 0.066847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.454545 | 0 | 0.863636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
758ea46ad07de73a3db7423b437adc1e8df2dffb | 420 | py | Python | tests/conftest.py | MVilstrup/remake | ddeacae55ef3c329a7780c9ad4e508833cd9112e | [
"MIT"
] | null | null | null | tests/conftest.py | MVilstrup/remake | ddeacae55ef3c329a7780c9ad4e508833cd9112e | [
"MIT"
] | null | null | null | tests/conftest.py | MVilstrup/remake | ddeacae55ef3c329a7780c9ad4e508833cd9112e | [
"MIT"
] | null | null | null | """
Dummy conftest.py for remake.
If you don't know what this is for, just leave it empty.
Read more about conftest.py under:
- https://docs.pytest.org/en/stable/fixture.html
- https://docs.pytest.org/en/stable/writing_plugins.html
"""
import pytest
import pandas as pd
@pytest.fixture
def abc_df(... | 23.333333 | 60 | 0.62619 | 63 | 420 | 4.142857 | 0.761905 | 0.076628 | 0.114943 | 0.137931 | 0.199234 | 0.199234 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.221429 | 420 | 18 | 61 | 23.333333 | 0.788991 | 0.542857 | 0 | 0 | 0 | 0 | 0.10303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7596cc3e44d3f7c3bc764887fc9388014519281c | 935 | py | Python | libs/pubfiles.py | dpttw/SEMimage | 08492dee6c1ef8d494f5a2fcd5f9621e815ba8a0 | [
"MIT"
] | null | null | null | libs/pubfiles.py | dpttw/SEMimage | 08492dee6c1ef8d494f5a2fcd5f9621e815ba8a0 | [
"MIT"
] | null | null | null | libs/pubfiles.py | dpttw/SEMimage | 08492dee6c1ef8d494f5a2fcd5f9621e815ba8a0 | [
"MIT"
] | 2 | 2016-11-08T17:00:36.000Z | 2021-10-03T23:01:52.000Z | # by Guillaume Sousa Amaral
from pymongo import MongoClient
MONGO_MGI_USER = "mgi_user"
MONGO_MGI_PASSWORD = "mgi_password"
MGI_DB = "mgi"
MONGODB_URI = "mongodb://" + MONGO_MGI_USER + ":" + MONGO_MGI_PASSWORD + "@localhost/" + MGI_DB
def _connect():
"""
Connect to the database
:return: database connect... | 28.333333 | 96 | 0.685561 | 121 | 935 | 5.123967 | 0.380165 | 0.072581 | 0.058065 | 0.048387 | 0.196774 | 0.122581 | 0.122581 | 0.122581 | 0 | 0 | 0 | 0 | 0.20107 | 935 | 32 | 97 | 29.21875 | 0.829987 | 0.072727 | 0 | 0.181818 | 0 | 0 | 0.354167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.090909 | 0.045455 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
75984d82bba1182d73a82d9c5b06ea48fbb3a95c | 1,449 | py | Python | deploy/tensorrt/test.py | tienln4/PaddleOCR-1 | 786448503b3f23140798bdecde19e985027257b2 | [
"DOC",
"Apache-2.0"
] | null | null | null | deploy/tensorrt/test.py | tienln4/PaddleOCR-1 | 786448503b3f23140798bdecde19e985027257b2 | [
"DOC",
"Apache-2.0"
] | null | null | null | deploy/tensorrt/test.py | tienln4/PaddleOCR-1 | 786448503b3f23140798bdecde19e985027257b2 | [
"DOC",
"Apache-2.0"
] | null | null | null | import cv2
import os
import onnxruntime
# img_dir = "valid/images"
# for fn in os.listdir(img_dir):
# fp =os.path.join(img_dir, fn)
# img = cv2.imread(fp)
# H, W, C = img.shape
# r = W/H
# if r < 3.2 and r > 2.9:
# img = cv2.resize(img, (100, 32))
# cv2.imwrite(os.path.join("X/images... | 30.1875 | 79 | 0.665977 | 227 | 1,449 | 4.118943 | 0.444934 | 0.034225 | 0.02139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038143 | 0.167702 | 1,449 | 48 | 80 | 30.1875 | 0.737148 | 0.773637 | 0 | 0 | 0 | 0 | 0.220339 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
75a2f21b09f6a7d7c0521259fcd45019b58911f9 | 131 | py | Python | tests/__init__.py | plattrap/script-venv | 3e576ba3a74da94d8ec354081ae52fd05702ebc8 | [
"BSD-3-Clause"
] | 2 | 2018-03-22T20:57:54.000Z | 2019-02-07T21:21:06.000Z | tests/__init__.py | plattrap/script-venv | 3e576ba3a74da94d8ec354081ae52fd05702ebc8 | [
"BSD-3-Clause"
] | 611 | 2018-03-18T20:24:16.000Z | 2022-03-31T02:24:15.000Z | tests/__init__.py | plattrap/script-venv | 3e576ba3a74da94d8ec354081ae52fd05702ebc8 | [
"BSD-3-Clause"
] | 3 | 2018-03-21T23:54:19.000Z | 2020-08-06T03:36:13.000Z | # -*- coding: utf-8 -*-
"""Tests package for Script Venv."""
__author__ = """Struan Lyall Judd"""
__email__ = 'sv@scifi.geek.nz'
| 18.714286 | 36 | 0.625954 | 17 | 131 | 4.352941 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.152672 | 131 | 6 | 37 | 21.833333 | 0.657658 | 0.40458 | 0 | 0 | 0 | 0 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
75b1e632346b67ff88749762c7e6df8f20e5bbbe | 3,258 | py | Python | app/main/forms.py | martingathu/Blog | 0ea51a12e6ccf6e325bfe72237ab52e8ebf7fdcc | [
"MIT"
] | null | null | null | app/main/forms.py | martingathu/Blog | 0ea51a12e6ccf6e325bfe72237ab52e8ebf7fdcc | [
"MIT"
] | null | null | null | app/main/forms.py | martingathu/Blog | 0ea51a12e6ccf6e325bfe72237ab52e8ebf7fdcc | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, TextAreaField, SelectField, BooleanField
from wtforms.validators import InputRequired, Length, EqualTo, ValidationError, Email, Required
from ..models import User
from wtforms import ValidationError
from flask_wtf.file import F... | 54.3 | 185 | 0.741559 | 351 | 3,258 | 6.809117 | 0.310541 | 0.105858 | 0.112971 | 0.021339 | 0.370293 | 0.356485 | 0.302092 | 0.280753 | 0.160669 | 0.160669 | 0 | 0.006374 | 0.133211 | 3,258 | 60 | 186 | 54.3 | 0.839943 | 0.017188 | 0 | 0.136364 | 0 | 0 | 0.212739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.159091 | 0.136364 | 0 | 0.795455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
75c26b42b2af4b7444091c13e6ecc04c1a1f63d9 | 18,761 | py | Python | scenegraph/exp-official/taskographyv5tiny5bagslots5_hierarchical/hierarchical_test_stats.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | 1 | 2022-01-30T22:06:57.000Z | 2022-01-30T22:06:57.000Z | scenegraph/exp-official/taskographyv5tiny5bagslots5_hierarchical/hierarchical_test_stats.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | null | null | null | scenegraph/exp-official/taskographyv5tiny5bagslots5_hierarchical/hierarchical_test_stats.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | null | null | null | STATS = [
{
"num_node_expansions": 0,
"search_time": 0.0260686,
"total_time": 0.161712,
"plan_length": 64,
"plan_cost": 64,
"objects_used": 261,
"objects_total": 379,
"neural_net_time": 0.10646533966064453,
"num_replanning_steps": 3,
"w... | 28.863077 | 48 | 0.550717 | 1,999 | 18,761 | 4.817409 | 0.167584 | 0.0919 | 0.095327 | 0.100935 | 0.592212 | 0.578401 | 0.561578 | 0.099792 | 0 | 0 | 0 | 0.262209 | 0.316774 | 18,761 | 650 | 49 | 28.863077 | 0.489078 | 0 | 0 | 0.36 | 0 | 0 | 0.371282 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
75c6cb3c332857eb979642c87cb41bc755711d03 | 549 | py | Python | OSBot-GraphDB/tests/api/test_Graph_SV.py | pbx-gs/OSBot-jira | 7677afee1f80398ddcccd6b45423bf6adc20b970 | [
"Apache-2.0"
] | 1 | 2019-08-06T15:40:45.000Z | 2019-08-06T15:40:45.000Z | OSBot-GraphDB/tests/api/test_Graph_SV.py | pbx-gs/OSBot-jira | 7677afee1f80398ddcccd6b45423bf6adc20b970 | [
"Apache-2.0"
] | 1 | 2021-09-03T09:55:39.000Z | 2021-09-03T09:55:39.000Z | OSBot-GraphDB/tests/api/test_Graph_SV.py | filetrust/OSBot-jira | d753fff59cf938cf94a51bf8bc7981691524b686 | [
"Apache-2.0"
] | 2 | 2021-04-02T05:58:29.000Z | 2021-09-03T09:43:29.000Z | from unittest import TestCase
from osbot_utils.utils.Dev import Dev
from osbot_graphsv.api.Graph_SV import Graph_SV
from osbot_graphsv.demo.Demo_Data import Demo_Data
class test_Graph_SV(TestCase):
def setUp(self):
self.demo_data = Demo_Data()
self.graph_sv = Graph_SV(self.demo_data.root_folde... | 26.142857 | 72 | 0.708561 | 82 | 549 | 4.426829 | 0.402439 | 0.115702 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209472 | 549 | 20 | 73 | 27.45 | 0.836406 | 0 | 0 | 0 | 0 | 0 | 0.020036 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0.285714 | 0 | 0.571429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
75d7468ce9e5ecfed680e1d3ce9872582acf7a04 | 869 | py | Python | drf_spectacular/validation/__init__.py | matthewshirley/drf-spectacular | 8856ab73ba1cdf99cc6ef8dd9c2762dd86721f86 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T21:42:45.000Z | 2021-03-08T21:42:45.000Z | drf_spectacular/validation/__init__.py | matthewshirley/drf-spectacular | 8856ab73ba1cdf99cc6ef8dd9c2762dd86721f86 | [
"BSD-3-Clause"
] | null | null | null | drf_spectacular/validation/__init__.py | matthewshirley/drf-spectacular | 8856ab73ba1cdf99cc6ef8dd9c2762dd86721f86 | [
"BSD-3-Clause"
] | 1 | 2020-05-03T21:40:45.000Z | 2020-05-03T21:40:45.000Z | import json
import os
import jsonschema
JSON_SCHEMA_SPEC_PATH = os.path.join(os.path.dirname(__file__), 'openapi3_schema.json')
def validate_schema(api_schema):
"""
Validate generated API schema against OpenAPI 3.0.X json schema specification.
Note: On conflict, the written specification always wins ove... | 34.76 | 119 | 0.7687 | 119 | 869 | 5.445378 | 0.470588 | 0.069444 | 0.04321 | 0.055556 | 0.188272 | 0.126543 | 0.126543 | 0 | 0 | 0 | 0 | 0.050938 | 0.141542 | 869 | 24 | 120 | 36.208333 | 0.817694 | 0.512083 | 0 | 0 | 1 | 0 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
75fea4ce328064ceb779c9f7141d957fdebc0fd5 | 371 | py | Python | src/astbuilder/cpp_gen_fwd_decl.py | mballance/pyastgen | 08f85da180fefd9c602ef911a8c225c11f5dd4a0 | [
"Apache-2.0"
] | null | null | null | src/astbuilder/cpp_gen_fwd_decl.py | mballance/pyastgen | 08f85da180fefd9c602ef911a8c225c11f5dd4a0 | [
"Apache-2.0"
] | null | null | null | src/astbuilder/cpp_gen_fwd_decl.py | mballance/pyastgen | 08f85da180fefd9c602ef911a8c225c11f5dd4a0 | [
"Apache-2.0"
] | null | null | null | '''
Created on May 28, 2022
@author: mballance
'''
from astbuilder.visitor import Visitor
from astbuilder.ast import Ast
class CppGenFwdDecl(Visitor):
def __init__(self, out):
self.out = out
def gen(self, ast : Ast):
ast.accept(self)
def visitAstClass(self, c):
... | 19.526316 | 47 | 0.598383 | 47 | 371 | 4.638298 | 0.553191 | 0.09633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.28841 | 371 | 19 | 48 | 19.526316 | 0.80303 | 0.115903 | 0 | 0 | 0 | 0 | 0.031153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
75fecc08c0b59f462e5cbb954dd13e8aaca1a951 | 218 | py | Python | pygate/__init__.py | isabella232/pygate-webapp | c6ebfd0ca29457d3d39e97df1ba8ad16999ad913 | [
"MIT"
] | 6 | 2020-07-07T05:43:56.000Z | 2020-10-14T23:23:58.000Z | pygate/__init__.py | isabella232/pygate-webapp | c6ebfd0ca29457d3d39e97df1ba8ad16999ad913 | [
"MIT"
] | 9 | 2020-07-28T21:52:15.000Z | 2020-09-24T16:51:37.000Z | pygate/__init__.py | isabella232/pygate-webapp | c6ebfd0ca29457d3d39e97df1ba8ad16999ad913 | [
"MIT"
] | 2 | 2020-08-18T18:36:56.000Z | 2022-03-24T07:23:28.000Z | """
Intialize the Pygate application
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object("config")
db = SQLAlchemy(app)
from pygate import routes, models
| 16.769231 | 39 | 0.779817 | 29 | 218 | 5.655172 | 0.517241 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133028 | 218 | 12 | 40 | 18.166667 | 0.867725 | 0.146789 | 0 | 0 | 0 | 0 | 0.033708 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f949e155111c48dd8234f83ea771004bf9bcb53e | 400 | py | Python | python/estrutura de dados/array/ExemploAula.py | luiscarlosjunior/100-days-of-code | 80d0b42fb773ad0813cfa452da2e1ded6dbb0c3b | [
"MIT"
] | null | null | null | python/estrutura de dados/array/ExemploAula.py | luiscarlosjunior/100-days-of-code | 80d0b42fb773ad0813cfa452da2e1ded6dbb0c3b | [
"MIT"
] | null | null | null | python/estrutura de dados/array/ExemploAula.py | luiscarlosjunior/100-days-of-code | 80d0b42fb773ad0813cfa452da2e1ded6dbb0c3b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 24 10:04:30 2020
@author: luisc
"""
#x = 'Estou aqui'
try:
print(p)
except NameError:
print('Ops, deu um erro de variável não inicializada')
except:
print('Outro tipo de erro')
finally:
print('Estou sempre aqui')
# Raise - lança uma exceção para o usuá... | 15.384615 | 58 | 0.6325 | 60 | 400 | 4.216667 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051447 | 0.2225 | 400 | 26 | 59 | 15.384615 | 0.762058 | 0.3275 | 0 | 0 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f96d501ddd0bef41fa87ebf9409aea7f8808acc8 | 2,187 | py | Python | members/crm/migrations/0002_auto_20171121_0725.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | null | null | null | members/crm/migrations/0002_auto_20171121_0725.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | 7 | 2015-11-27T15:59:52.000Z | 2022-01-13T00:38:38.000Z | members/crm/migrations/0002_auto_20171121_0725.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crm', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='membershipapplication',
n... | 62.485714 | 627 | 0.638317 | 248 | 2,187 | 5.572581 | 0.314516 | 0.173661 | 0.121563 | 0.083936 | 0.719971 | 0.719971 | 0.670767 | 0.623734 | 0.623734 | 0.623734 | 0 | 0.035429 | 0.199817 | 2,187 | 34 | 628 | 64.323529 | 0.754286 | 0.009602 | 0 | 0.464286 | 0 | 0 | 0.44732 | 0.009704 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f97a197a5ace1c26bd7ec72569622d579f98f065 | 880 | py | Python | perftracker/migrations/0038_auto_20181001_0209.py | istillc0de/perftracker-perfguru | 79d0f1740f4072503ba1bf06b871590de6bcf470 | [
"Apache-2.0"
] | 11 | 2018-03-12T05:40:02.000Z | 2020-01-30T10:13:36.000Z | perftracker/migrations/0038_auto_20181001_0209.py | istillc0de/perftracker-perfguru | 79d0f1740f4072503ba1bf06b871590de6bcf470 | [
"Apache-2.0"
] | 4 | 2019-05-12T18:38:22.000Z | 2020-07-20T07:13:34.000Z | perftracker/migrations/0038_auto_20181001_0209.py | istillc0de/perftracker-perfguru | 79d0f1740f4072503ba1bf06b871590de6bcf470 | [
"Apache-2.0"
] | 25 | 2018-07-19T12:12:09.000Z | 2022-02-15T09:16:31.000Z | # Generated by Django 2.0.3 on 2018-09-30 23:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('perftracker', '0037_auto_20181001_0118'),
]
operations = [
migrations.AddField(
model_name='artifactmetamodel',
name... | 30.344828 | 109 | 0.614773 | 88 | 880 | 6.034091 | 0.613636 | 0.050847 | 0.146893 | 0.169492 | 0.34275 | 0.34275 | 0.161959 | 0 | 0 | 0 | 0 | 0.051563 | 0.272727 | 880 | 28 | 110 | 31.428571 | 0.778125 | 0.051136 | 0 | 0.363636 | 1 | 0 | 0.237695 | 0.027611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f996ca79275f8904af11339d8d0d55f901235ab1 | 75 | py | Python | py/areaDoCirculo.py | Ellian-aragao/URI | e53b9380c5be0e59fdd002553ea33a04a7c35439 | [
"Unlicense"
] | null | null | null | py/areaDoCirculo.py | Ellian-aragao/URI | e53b9380c5be0e59fdd002553ea33a04a7c35439 | [
"Unlicense"
] | null | null | null | py/areaDoCirculo.py | Ellian-aragao/URI | e53b9380c5be0e59fdd002553ea33a04a7c35439 | [
"Unlicense"
] | null | null | null | area = float(input())
area *= 3.14159 * area
print('A={:.4f}'.format(area)) | 25 | 30 | 0.613333 | 12 | 75 | 3.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0.106667 | 75 | 3 | 30 | 25 | 0.58209 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
f9bb01c2946f782aad448ea6ffa47adeddfb3192 | 1,240 | py | Python | one_page/customapp/templatetags/testtag.py | aptuz/mezzanine_onepage_theme | 485ecb79ee46a4dce2a961bdaecd6ce360e33a01 | [
"MIT"
] | null | null | null | one_page/customapp/templatetags/testtag.py | aptuz/mezzanine_onepage_theme | 485ecb79ee46a4dce2a961bdaecd6ce360e33a01 | [
"MIT"
] | null | null | null | one_page/customapp/templatetags/testtag.py | aptuz/mezzanine_onepage_theme | 485ecb79ee46a4dce2a961bdaecd6ce360e33a01 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from future.builtins import int
from collections import defaultdict
from django.core.urlresolvers import reverse
from django.template.defaultfilters import linebreaksbr, urlize
from mezzanine import template
from mezzanine.conf import settings
from mezzanine.generic.forms impo... | 30.243902 | 208 | 0.724194 | 149 | 1,240 | 5.90604 | 0.516779 | 0.088636 | 0.045455 | 0.034091 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001938 | 0.167742 | 1,240 | 41 | 209 | 30.243902 | 0.850775 | 0.042742 | 0 | 0.064516 | 0 | 0 | 0.110549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.354839 | 0.064516 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f9c42903d1d9fecf7020794b2db23282c3b7fc56 | 794 | py | Python | src/cython/using.py | Brunopaes/python-sandbox | c51f716785bf11789b13f9bb24bfd76108eaec08 | [
"MIT"
] | 5 | 2020-08-04T00:13:06.000Z | 2022-03-18T09:18:29.000Z | src/cython/using.py | Brunopaes/python-sandbox | c51f716785bf11789b13f9bb24bfd76108eaec08 | [
"MIT"
] | null | null | null | src/cython/using.py | Brunopaes/python-sandbox | c51f716785bf11789b13f9bb24bfd76108eaec08 | [
"MIT"
] | 2 | 2020-06-26T13:42:17.000Z | 2020-08-04T00:13:10.000Z | import run_python
import run_cython
import datetime
import logging
logging.basicConfig(filename="benchmark.log", level=logging.NOTSET)
iterations = [
100,
1000,
5000,
10000,
15000,
20000,
25000,
30000,
]
logging.info('Timestamp, Python, cython, Iterations')
for iteration in iteration... | 22.055556 | 78 | 0.644836 | 90 | 794 | 5.577778 | 0.4 | 0.159363 | 0.189243 | 0.191235 | 0.298805 | 0.298805 | 0.187251 | 0.187251 | 0.187251 | 0.187251 | 0 | 0.059308 | 0.235516 | 794 | 35 | 79 | 22.685714 | 0.76771 | 0 | 0 | 0.142857 | 0 | 0 | 0.080605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f9e3b8381dabcfc6210cdce46b7fae1ba5d1813f | 203 | py | Python | torabot/mods/feed/ut.py | Answeror/torabot | b6260190ec1f0dc8bf3f7ba3512c0522668c59ed | [
"MIT"
] | 42 | 2015-01-20T10:45:08.000Z | 2021-04-17T05:10:27.000Z | torabot/mods/feed/ut.py | Answeror/torabot | b6260190ec1f0dc8bf3f7ba3512c0522668c59ed | [
"MIT"
] | 4 | 2015-01-23T05:40:44.000Z | 2016-12-19T03:52:20.000Z | torabot/mods/feed/ut.py | Answeror/torabot | b6260190ec1f0dc8bf3f7ba3512c0522668c59ed | [
"MIT"
] | 8 | 2015-05-07T03:51:05.000Z | 2019-03-20T05:40:47.000Z | def entry_id(entry):
for field in ['id', 'link']:
ret = getattr(entry, field, None)
if ret:
return ret
raise Exception('no id field found in entry: {}'.format(entry))
| 29 | 67 | 0.571429 | 28 | 203 | 4.107143 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295567 | 203 | 6 | 68 | 33.833333 | 0.804196 | 0 | 0 | 0 | 0 | 0 | 0.17734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
dda9b2b073293fee194d0918db8aeffa28c0308a | 212 | py | Python | 1401-1500/1413-Minimum Value to Get Positive Step by Step Sum/1413-Minimum Value to Get Positive Step by Step Sum.py | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 1401-1500/1413-Minimum Value to Get Positive Step by Step Sum/1413-Minimum Value to Get Positive Step by Step Sum.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 1401-1500/1413-Minimum Value to Get Positive Step by Step Sum/1413-Minimum Value to Get Positive Step by Step Sum.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class Solution:
def minStartValue(self, nums: List[int]) -> int:
total = minSum = 0
for num in nums:
total += num
minSum = min(minSum, total)
return 1 - minSum
| 26.5 | 52 | 0.528302 | 25 | 212 | 4.48 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.377358 | 212 | 7 | 53 | 30.285714 | 0.833333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ddb2972f36ed8e2d4a692066c4a74f8cffcd09ee | 1,365 | py | Python | extra/fit_functions/br8.py | cyankaet/bumps | 427d077fd95f2d9a09eeb8677d045547061cff42 | [
"MIT"
] | 44 | 2015-03-28T06:48:43.000Z | 2022-01-09T11:29:00.000Z | extra/fit_functions/br8.py | cyankaet/bumps | 427d077fd95f2d9a09eeb8677d045547061cff42 | [
"MIT"
] | 68 | 2015-08-21T11:28:54.000Z | 2022-03-30T22:14:13.000Z | extra/fit_functions/br8.py | cyankaet/bumps | 427d077fd95f2d9a09eeb8677d045547061cff42 | [
"MIT"
] | 27 | 2015-06-22T19:25:27.000Z | 2021-06-15T18:20:06.000Z | #!/usr/bin/env python
"""
Bevington & Robinson's model of dual exponential decay
References::
[5] Bevington & Robinson (1992).
Data Reduction and Error Analysis for the Physical Sciences,
Second Edition, McGraw-Hill, Inc., New York.
"""
from numpy import exp, sqrt, vstack, array, asarray
def dual_expone... | 33.292683 | 64 | 0.532601 | 230 | 1,365 | 3.156522 | 0.695652 | 0.022039 | 0.055096 | 0.024793 | 0.049587 | 0.049587 | 0.049587 | 0.049587 | 0 | 0 | 0 | 0.284799 | 0.2 | 1,365 | 40 | 65 | 34.125 | 0.380037 | 0.316484 | 0 | 0 | 0 | 0 | 0.00443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ddb3c6668f58416007498d2c442645d8eba37c50 | 870 | py | Python | users/admin.py | TCKACHIKSIS/lms | fd06eb7a2baa9b9f82caa5223c86ba500f88333c | [
"MIT"
] | 8 | 2021-02-09T12:15:27.000Z | 2022-03-14T07:41:02.000Z | users/admin.py | TCKACHIKSIS/lms | fd06eb7a2baa9b9f82caa5223c86ba500f88333c | [
"MIT"
] | 70 | 2021-04-14T12:45:17.000Z | 2021-08-04T04:51:34.000Z | users/admin.py | TCKACHIKSIS/lms | fd06eb7a2baa9b9f82caa5223c86ba500f88333c | [
"MIT"
] | 3 | 2021-08-03T08:22:01.000Z | 2022-02-27T23:20:05.000Z | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.contrib.auth.forms import UserChangeForm as UserChangeFormDefault
from users.models import User as MyUser
class UserChangeForm(UserChangeFormDefault):
"""A ... | 31.071429 | 77 | 0.717241 | 107 | 870 | 5.82243 | 0.542056 | 0.064205 | 0.109149 | 0.101124 | 0.102729 | 0.102729 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203448 | 870 | 27 | 78 | 32.222222 | 0.89899 | 0.157471 | 0 | 0 | 0 | 0 | 0.207283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.375 | 0.3125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
ddbd603df4d50ff702a926989598bb5193036223 | 360 | py | Python | mergeit/extras/filters/version_redmine_filter.py | insolite/mergeit | 27ca0eacab9b1d2fe6bafe5a43184a80e6169cb5 | [
"MIT"
] | 2 | 2016-07-04T13:32:30.000Z | 2016-07-16T02:51:54.000Z | mergeit/extras/filters/version_redmine_filter.py | insolite/mergeit | 27ca0eacab9b1d2fe6bafe5a43184a80e6169cb5 | [
"MIT"
] | 1 | 2016-08-06T12:47:28.000Z | 2016-08-06T12:47:28.000Z | mergeit/extras/filters/version_redmine_filter.py | insolite/mergeit | 27ca0eacab9b1d2fe6bafe5a43184a80e6169cb5 | [
"MIT"
] | null | null | null | from mergeit.extras.filters import RedmineFilter
class VersionRedmineFilter(RedmineFilter):
def run(self, source_match, source_branch, target_branch):
task = self.get_task(source_match.groupdict()['task_id']) # TODO: compare commit message task with branch name?
return target_branch.format(redmin... | 45 | 119 | 0.766667 | 45 | 360 | 5.933333 | 0.666667 | 0.082397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130556 | 360 | 8 | 120 | 45 | 0.853035 | 0.141667 | 0 | 0 | 0 | 0 | 0.077922 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ddc2e4480e106c32f1e4eca626f14364f1473804 | 345 | py | Python | ketu/k2/__init__.py | dfm/turnstile | 13a9a3b489b458396a6ad1e8a2d1e89a0dd6312d | [
"MIT"
] | 10 | 2015-02-19T09:13:24.000Z | 2020-04-25T10:50:38.000Z | ketu/k2/__init__.py | dfm/turnstile | 13a9a3b489b458396a6ad1e8a2d1e89a0dd6312d | [
"MIT"
] | 1 | 2015-07-10T19:50:31.000Z | 2015-07-11T03:51:15.000Z | ketu/k2/__init__.py | dfm/turnstile | 13a9a3b489b458396a6ad1e8a2d1e89a0dd6312d | [
"MIT"
] | 7 | 2015-04-20T06:42:28.000Z | 2019-02-25T03:04:45.000Z | # -*- coding: utf-8 -*-
__all__ = ["photometry", "epic", "Data", "Inject", "Likelihood", "Summary",
"FP", "fit_traptransit"]
from . import photometry, epic
from .data import Data
from .inject import Inject
from .likelihood import Likelihood
from .summary import Summary
from .fp import FP
from .traptransi... | 23 | 75 | 0.704348 | 42 | 345 | 5.642857 | 0.357143 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003497 | 0.171014 | 345 | 14 | 76 | 24.642857 | 0.825175 | 0.06087 | 0 | 0 | 0 | 0 | 0.180124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.777778 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ddf32fe03a5fb599a47b798f1592d170ddca1b42 | 156 | py | Python | lico/__init__.py | sjoerdk/lico | 86045f4df4f6a9d6155032a84bfc959b6eb7edd3 | [
"MIT"
] | null | null | null | lico/__init__.py | sjoerdk/lico | 86045f4df4f6a9d6155032a84bfc959b6eb7edd3 | [
"MIT"
] | null | null | null | lico/__init__.py | sjoerdk/lico | 86045f4df4f6a9d6155032a84bfc959b6eb7edd3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''Top-level package for lico.'''
__author__ = '''Sjoerd Kerkstra'''
__email__ = 'w.s.kerkstra@example.com'
__version__ = '0.1.1'
| 19.5 | 38 | 0.634615 | 21 | 156 | 4.142857 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.134615 | 156 | 7 | 39 | 22.285714 | 0.614815 | 0.320513 | 0 | 0 | 0 | 0 | 0.44 | 0.24 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ddf4aeea631029e7987b9caa0550304bdff44ccf | 1,000 | py | Python | timeseries/features/orderbook_features.py | sarb9/volatility-prediction-with-orderbook-data | bf47f26632502af82dd6196e64582c375df876b7 | [
"MIT"
] | null | null | null | timeseries/features/orderbook_features.py | sarb9/volatility-prediction-with-orderbook-data | bf47f26632502af82dd6196e64582c375df876b7 | [
"MIT"
] | null | null | null | timeseries/features/orderbook_features.py | sarb9/volatility-prediction-with-orderbook-data | bf47f26632502af82dd6196e64582c375df876b7 | [
"MIT"
] | null | null | null | from typing import Dict, Tuple
from pathlib import Path
from data_service.orderbook_dataset import OrderbookDataset
from timeseries.features.feature import register_feature
@register_feature("orderbook")
def read_orderbook_from_file(
dataset_file: Dict = {},
save: Dict = {},
load: Dict = {},
):
path:... | 29.411765 | 76 | 0.73 | 127 | 1,000 | 5.519685 | 0.307087 | 0.10699 | 0.098431 | 0.082739 | 0.11127 | 0.11127 | 0 | 0 | 0 | 0 | 0 | 0.013857 | 0.134 | 1,000 | 33 | 77 | 30.30303 | 0.795612 | 0 | 0 | 0 | 0 | 0 | 0.089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0.130435 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
ddf95f32e06fc2c51f71e92f91be786fe2f62eb8 | 761 | bzl | Python | build_defs/internal_do_not_use/j2kt_common.bzl | dymecard/j2cl | ee2191aea6a795853f08e8864e2ccd553da03b0a | [
"Apache-2.0"
] | null | null | null | build_defs/internal_do_not_use/j2kt_common.bzl | dymecard/j2cl | ee2191aea6a795853f08e8864e2ccd553da03b0a | [
"Apache-2.0"
] | null | null | null | build_defs/internal_do_not_use/j2kt_common.bzl | dymecard/j2cl | ee2191aea6a795853f08e8864e2ccd553da03b0a | [
"Apache-2.0"
] | null | null | null | """Stub implementation containing j2kt_provider helpers."""
def _to_j2kt_jvm_name(name):
"""Convert a label name used in j2cl to be used in j2kt jvm"""
if name.endswith("-j2cl"):
name = name[:-5]
return "%s-j2kt-jvm" % name
def _to_j2kt_native_name(name):
"""Convert a label name used in j2cl t... | 24.548387 | 69 | 0.674113 | 111 | 761 | 4.297297 | 0.252252 | 0.075472 | 0.092243 | 0.081761 | 0.486373 | 0.431866 | 0.36478 | 0.36478 | 0.36478 | 0.36478 | 0 | 0.0299 | 0.208936 | 761 | 30 | 70 | 25.366667 | 0.762458 | 0.22339 | 0 | 0.333333 | 0 | 0 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.142857 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fb060eda833b066929efa3710bdae928c70955d1 | 207 | py | Python | gadget/plugins/bilibili/__init__.py | SRainot/gadgetBot | f8e31882229f0033356a7751c8a2b57858eb817c | [
"MIT"
] | null | null | null | gadget/plugins/bilibili/__init__.py | SRainot/gadgetBot | f8e31882229f0033356a7751c8a2b57858eb817c | [
"MIT"
] | null | null | null | gadget/plugins/bilibili/__init__.py | SRainot/gadgetBot | f8e31882229f0033356a7751c8a2b57858eb817c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Author:w k
import nonebot as rcnb
__plugin_name = 'Bilibili'
Bilibili = rcnb.CommandGroup('Bilibili', only_to_me=False)
from . import get_cover
from . import live_subscription
| 15.923077 | 58 | 0.729469 | 29 | 207 | 4.965517 | 0.793103 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.154589 | 207 | 12 | 59 | 17.25 | 0.817143 | 0.154589 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fb1454faf08dc5f59104f45a90d238eaafc1ab03 | 1,767 | py | Python | src/infi/diskmanagement/wmi/model/__init__.py | Infinidat/infi.diskmanagement | f0f6cbc2bf9e7a24a288cf66a7f2d133bd2833d5 | [
"BSD-3-Clause"
] | 12 | 2015-05-20T14:22:28.000Z | 2022-01-20T04:42:47.000Z | src/infi/diskmanagement/wmi/model/__init__.py | Infinidat/infi.diskmanagement | f0f6cbc2bf9e7a24a288cf66a7f2d133bd2833d5 | [
"BSD-3-Clause"
] | 2 | 2017-08-15T08:27:40.000Z | 2021-06-02T16:07:41.000Z | src/infi/diskmanagement/wmi/model/__init__.py | Infinidat/infi.diskmanagement | f0f6cbc2bf9e7a24a288cf66a7f2d133bd2833d5 | [
"BSD-3-Clause"
] | 5 | 2015-05-20T14:22:36.000Z | 2018-11-06T04:57:35.000Z |
from .. import WmiObject
from infi.pyutils.lazy import cached_method
DISKDRIVES_QUERY = "SELECT * FROM Win32_DiskDrive"
VOLUME_QUERY = "SELECT * FROM Win32_Volume"
VOLUME_CLUSTER_SIZE_QUERY = "SELECT Name, Blocksize FROM Win32_Volume WHERE FileSystem='NTFS'"
DISKDRIVE_TO_DISKPARTITIONS_QUERY = r'SELECT * FROM Win32_D... | 33.339623 | 105 | 0.7176 | 190 | 1,767 | 6.436842 | 0.284211 | 0.065413 | 0.068684 | 0.083401 | 0.255928 | 0.221586 | 0.15045 | 0.15045 | 0.15045 | 0.15045 | 0 | 0.007555 | 0.176005 | 1,767 | 52 | 106 | 33.980769 | 0.832418 | 0 | 0 | 0.35 | 0 | 0 | 0.208499 | 0.016997 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.05 | 0.2 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fb158b888220edaef6d37784f625154c58da18b3 | 400 | py | Python | tet-moments/triangle.py | hertzsprung/high-order-transport | 50d9633642dcd4d8fba54b9b408e69dc0f12d9e7 | [
"MIT"
] | null | null | null | tet-moments/triangle.py | hertzsprung/high-order-transport | 50d9633642dcd4d8fba54b9b408e69dc0f12d9e7 | [
"MIT"
] | null | null | null | tet-moments/triangle.py | hertzsprung/high-order-transport | 50d9633642dcd4d8fba54b9b408e69dc0f12d9e7 | [
"MIT"
] | 1 | 2020-02-13T09:16:36.000Z | 2020-02-13T09:16:36.000Z | import numpy as np
import math
from simplex import Simplex
class Triangle(Simplex):
def area(self):
# https://math.stackexchange.com/a/516223/89878
return 0.5 * self._detA()
def moment(self, p, q, r):
return self._moment(p, q, r, d=2)
def __str__(self):
return 'Triangle(' ... | 25 | 55 | 0.56 | 56 | 400 | 3.892857 | 0.553571 | 0.12844 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048611 | 0.28 | 400 | 15 | 56 | 26.666667 | 0.708333 | 0.1125 | 0 | 0 | 0 | 0 | 0.03966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.272727 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fb25b0fc2011daff4149e3e9da440cee5e5f8059 | 555 | py | Python | old/PPO with Sonic the Hedgehog/utilities.py | sirmammingtonham/droneee | 1c0e1921a902b26958d298f3a0204465bf3e960d | [
"Unlicense"
] | null | null | null | old/PPO with Sonic the Hedgehog/utilities.py | sirmammingtonham/droneee | 1c0e1921a902b26958d298f3a0204465bf3e960d | [
"Unlicense"
] | null | null | null | old/PPO with Sonic the Hedgehog/utilities.py | sirmammingtonham/droneee | 1c0e1921a902b26958d298f3a0204465bf3e960d | [
"Unlicense"
] | null | null | null | import tensorflow as tf
# Get the variables
def find_trainable_variables(key):
with tf.variable_scope(key):
return tf.trainable_variables()
# Make directory
def make_path(f):
# exist_ok: if the folder already exist makes no exception error
return os.makedirs(f, exist_ok=True)
def discount_with_d... | 26.428571 | 68 | 0.672072 | 81 | 555 | 4.493827 | 0.617284 | 0.098901 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011468 | 0.214414 | 555 | 20 | 69 | 27.75 | 0.823395 | 0.209009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fb371b6c6c962a5f7a0accdfedb6f97b7982c73b | 1,983 | py | Python | tests/test_modules.py | illegalbyte/fullpod | 6c10cff38cfaf96a2c3f72a1c1c9887e8efb6c92 | [
"MIT"
] | 3 | 2022-01-07T16:40:24.000Z | 2022-03-22T11:55:42.000Z | tests/test_modules.py | illegalbyte/allcasts | 6c10cff38cfaf96a2c3f72a1c1c9887e8efb6c92 | [
"MIT"
] | null | null | null | tests/test_modules.py | illegalbyte/allcasts | 6c10cff38cfaf96a2c3f72a1c1c9887e8efb6c92 | [
"MIT"
] | null | null | null | import unittest
import os
class TestWget(unittest.TestCase):
def test_wget_installed(self):
'''
wget should be available
'''
try:
import wget
except ImportError:
self.fail("wget not available - run 'pip install wget'")
def test_wget_download(self):
'''
wget should be able to download a file
'... | 23.05814 | 115 | 0.714574 | 268 | 1,983 | 5.190299 | 0.283582 | 0.045291 | 0.051761 | 0.060388 | 0.308411 | 0.156722 | 0.13803 | 0.096334 | 0 | 0 | 0 | 0.007313 | 0.172466 | 1,983 | 86 | 116 | 23.05814 | 0.840341 | 0.166919 | 0 | 0.387755 | 0 | 0 | 0.207341 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 1 | 0.183673 | false | 0 | 0.306122 | 0 | 0.55102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
34a4840aad0f1a2df60de9fdd28cbc73705b7c03 | 1,028 | py | Python | lintcode/107.1.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/107.1.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/107.1.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
107. Word Break
https://www.lintcode.com/problem/word-break/description?_from=ladder&&fromId=160
Memoization
"""
class Solution:
"""
@param: s: A string
@param: dict: A dictionary of words dict
@return: A boolean
"""
def wordBreak(self, s, dict):
# write your code here
if dic... | 28.555556 | 80 | 0.539883 | 141 | 1,028 | 3.780142 | 0.368794 | 0.078799 | 0.123827 | 0.19137 | 0.172608 | 0.093809 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.357977 | 1,028 | 36 | 81 | 28.555556 | 0.792424 | 0.20428 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.380952 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34ad0313dfd9f10ea89d9d002684c0c9cc5228a4 | 340 | py | Python | src/game_of_life/python_coderetreat_socramob/cr_socramob05/coordinate.py | hemmerling/codingdojo | 3e8860b78e96ac15cde6a12db3b2431e8b63714f | [
"Apache-2.0"
] | null | null | null | src/game_of_life/python_coderetreat_socramob/cr_socramob05/coordinate.py | hemmerling/codingdojo | 3e8860b78e96ac15cde6a12db3b2431e8b63714f | [
"Apache-2.0"
] | null | null | null | src/game_of_life/python_coderetreat_socramob/cr_socramob05/coordinate.py | hemmerling/codingdojo | 3e8860b78e96ac15cde6a12db3b2431e8b63714f | [
"Apache-2.0"
] | null | null | null | class Coordinate:
coordX = 0
coordY = 0
def __init__(self, coordX=0, coordY=0):
self.coordX = coordX
self.coordY = coordY
pass
def set(self, coordX, coordY):
self.coordX = coordX
self.coordY = coordY
return coordX, coordY
if __name__ == '_... | 20 | 44 | 0.552941 | 38 | 340 | 4.631579 | 0.368421 | 0.227273 | 0.147727 | 0.159091 | 0.363636 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0.361765 | 340 | 16 | 45 | 21.25 | 0.792627 | 0 | 0 | 0.461538 | 0 | 0 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
34ba4fa4a35f6d44c71a62a56834c29bd6667d43 | 236 | py | Python | linux/bin/hex2bin.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | 4 | 2020-04-07T14:45:02.000Z | 2021-12-28T22:43:16.000Z | linux/bin/hex2bin.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | null | null | null | linux/bin/hex2bin.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | 2 | 2020-04-08T03:12:06.000Z | 2021-03-04T20:33:03.000Z | #!/usr/bin/env python3
import binascii
import sys
hex_bytes = sys.stdin.buffer.read()
hex_bytes_clean = ''.join(str(hex_bytes, encoding='UTF8').split())
raw_bytes = binascii.a2b_hex(hex_bytes_clean)
sys.stdout.buffer.write(raw_bytes)
| 23.6 | 66 | 0.771186 | 38 | 236 | 4.552632 | 0.578947 | 0.184971 | 0.150289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.080508 | 236 | 9 | 67 | 26.222222 | 0.78341 | 0.088983 | 0 | 0 | 0 | 0 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
34cf72e3b0e33aed734201ad91556ce487d89f75 | 691 | py | Python | tests/Traverser/mainsrt.py | goshow-jp/Kraken | 7088b474b6cc2840cea7ab642c5938e4a3290b6c | [
"BSD-3-Clause"
] | null | null | null | tests/Traverser/mainsrt.py | goshow-jp/Kraken | 7088b474b6cc2840cea7ab642c5938e4a3290b6c | [
"BSD-3-Clause"
] | null | null | null | tests/Traverser/mainsrt.py | goshow-jp/Kraken | 7088b474b6cc2840cea7ab642c5938e4a3290b6c | [
"BSD-3-Clause"
] | 1 | 2021-12-08T08:31:48.000Z | 2021-12-08T08:31:48.000Z | from kraken import plugins
from kraken.core.maths import Vec3
from kraken.core.objects.object_3d import Object3D
from kraken.core.objects.locator import Locator
from kraken.core.objects.constraints.pose_constraint import PoseConstraint
from kraken.core.traverser.traverser import Traverser
from kraken_examples.mainSrt_c... | 27.64 | 74 | 0.811867 | 83 | 691 | 6.710843 | 0.493976 | 0.125673 | 0.125673 | 0.113106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004823 | 0.099855 | 691 | 24 | 75 | 28.791667 | 0.890675 | 0 | 0 | 0 | 0 | 0 | 0.023188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.411765 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
34d0622610259a0dd008168079dfa5962bd64938 | 5,056 | py | Python | facet/database/base.py | edponce/FACET | 0dca2d728813a4865e72b2e8fd6b114a0c63d5b0 | [
"MIT"
] | 2 | 2020-10-16T19:27:21.000Z | 2021-11-04T15:06:54.000Z | facet/database/base.py | edponce/FACET | 0dca2d728813a4865e72b2e8fd6b114a0c63d5b0 | [
"MIT"
] | 24 | 2020-07-13T01:49:36.000Z | 2020-10-30T21:54:00.000Z | facet/database/base.py | edponce/FACET | 0dca2d728813a4865e72b2e8fd6b114a0c63d5b0 | [
"MIT"
] | null | null | null | from abc import (
ABC,
abstractmethod,
)
__all__ = [
'BaseDatabase',
'BaseKVDatabase',
]
class BaseDatabase(ABC):
"""Interface with basic database commands.
Notes:
* Follows the framework design pattern - parent class controls
the execution flow and subclass provides the d... | 25.535354 | 78 | 0.586432 | 573 | 5,056 | 5.099476 | 0.335079 | 0.069815 | 0.071869 | 0.042779 | 0.148528 | 0.129363 | 0.129363 | 0.129363 | 0.129363 | 0.112252 | 0 | 0.002652 | 0.328718 | 5,056 | 197 | 79 | 25.664975 | 0.858279 | 0.430182 | 0 | 0.303922 | 0 | 0 | 0.016504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254902 | false | 0.127451 | 0.009804 | 0.04902 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
34d08c3567651ec09a3d6cdc71714bd4c6ee509f | 5,018 | py | Python | train.py | BobAnkh/std-project3 | b27589b2c43412943b4e46302881a57df3990637 | [
"MIT"
] | 1 | 2021-09-12T06:01:49.000Z | 2021-09-12T06:01:49.000Z | train.py | BobAnkh/std-project3 | b27589b2c43412943b4e46302881a57df3990637 | [
"MIT"
] | null | null | null | train.py | BobAnkh/std-project3 | b27589b2c43412943b4e46302881a57df3990637 | [
"MIT"
] | null | null | null | import json
import os
import pytorch_lightning as pl
from pytorch_lightning.callbacks import ModelCheckpoint
from torch.utils.data import DataLoader, random_split
from src.dataloader import ActionTrainDataset, AudioTrainDataset, VideoTrainDataset
from src.image_center import pre_process
from src.model import ActionAn... | 40.467742 | 98 | 0.66102 | 572 | 5,018 | 5.582168 | 0.195804 | 0.045099 | 0.017538 | 0.025055 | 0.720013 | 0.701221 | 0.679925 | 0.679925 | 0.676793 | 0.643595 | 0 | 0.016544 | 0.217019 | 5,018 | 123 | 99 | 40.796748 | 0.796131 | 0 | 0 | 0.540541 | 0 | 0 | 0.166202 | 0.037067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036036 | false | 0 | 0.072072 | 0 | 0.108108 | 0.072072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34ee7c4232c5f790ebb690a5eec409ab19352905 | 1,091 | py | Python | helpdesk/admin.py | bobbybabu007/django-simple-helpdesk | d507682e82808ba182736d33e26824dcad8d801f | [
"BSD-2-Clause"
] | 14 | 2016-10-11T21:29:32.000Z | 2021-09-21T13:51:16.000Z | helpdesk/admin.py | bobbybabu007/django-simple-helpdesk | d507682e82808ba182736d33e26824dcad8d801f | [
"BSD-2-Clause"
] | 7 | 2015-11-14T19:15:47.000Z | 2021-06-24T18:35:42.000Z | helpdesk/admin.py | bobbybabu007/django-simple-helpdesk | d507682e82808ba182736d33e26824dcad8d801f | [
"BSD-2-Clause"
] | 17 | 2015-06-01T17:35:58.000Z | 2021-09-11T22:01:19.000Z | from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
from helpdesk.models import Ticket, Project, State, Comment, HelpdeskProfile, MailAttachment, ProjectAlias
class AttachmentInline(GenericTabularInline):
model = MailAttachment
@admin.register(Ticket)
class Ticke... | 25.97619 | 106 | 0.749771 | 110 | 1,091 | 7.336364 | 0.409091 | 0.096654 | 0.141264 | 0.193309 | 0.136307 | 0.136307 | 0.136307 | 0.136307 | 0.136307 | 0 | 0 | 0 | 0.122823 | 1,091 | 41 | 107 | 26.609756 | 0.84326 | 0 | 0 | 0.076923 | 0 | 0 | 0.114574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.769231 | 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 | 0 | 1 | 0 | 0 | 2 |
34f7fc5bc44aedfa4436541c24a16188a8d79a89 | 204 | py | Python | stimuli/Python/one_file_per_item/en/102_# str_if 12.py | ALFA-group/neural_program_comprehension | 0253911f376cf282af5a5627e38e0a591ad38860 | [
"MIT"
] | 6 | 2020-04-24T08:16:51.000Z | 2021-11-01T09:50:46.000Z | stimuli/Python/one_file_per_item/en/102_# str_if 12.py | ALFA-group/neural_program_comprehension | 0253911f376cf282af5a5627e38e0a591ad38860 | [
"MIT"
] | null | null | null | stimuli/Python/one_file_per_item/en/102_# str_if 12.py | ALFA-group/neural_program_comprehension | 0253911f376cf282af5a5627e38e0a591ad38860 | [
"MIT"
] | 4 | 2021-02-17T20:21:31.000Z | 2022-02-14T12:43:23.000Z | letters = ["a", "e", "t", "o", "u"]
word = "CreepyNuts"
if (word[1] in letters) and (word[6] in letters):
print(0)
elif (word[1] in letters) or (word[6] in letters):
print(1)
else:
print(2)
| 18.545455 | 50 | 0.563725 | 35 | 204 | 3.285714 | 0.542857 | 0.313043 | 0.121739 | 0.243478 | 0.330435 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04375 | 0.215686 | 204 | 10 | 51 | 20.4 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0.073892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b30f32bd9e67a028906cb2d5b8c5ab8b0669c93 | 996 | py | Python | pyscf/future/__init__.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2019-05-28T05:25:56.000Z | 2019-11-09T02:16:43.000Z | pyscf/future/__init__.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 36 | 2018-08-22T19:44:03.000Z | 2020-05-09T10:02:36.000Z | pyscf/future/__init__.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 4 | 2018-02-14T16:28:28.000Z | 2019-08-12T16:40:30.000Z | # Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 34.344828 | 79 | 0.764056 | 153 | 996 | 4.973856 | 0.660131 | 0.078844 | 0.034166 | 0.04205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01444 | 0.165663 | 996 | 28 | 80 | 35.571429 | 0.901324 | 0.586345 | 0 | 0 | 0 | 0 | 0.874055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b48f7e905ce4692f5e4348364875080fb97ddc3 | 587 | py | Python | Dataset/Leetcode/train/46/418.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/418.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/418.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
def backtrace(nums,track):
if len(nums) == len(track):
res.append(track[:])
return
for i in range(len(nums)):
... | 25.521739 | 39 | 0.422487 | 58 | 587 | 4.275862 | 0.431034 | 0.157258 | 0.217742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.456559 | 587 | 22 | 40 | 26.681818 | 0.774295 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b7d17de91a9fdc4dd894fc26f2da604b315ab7c | 7,461 | py | Python | dlmnn/unused/tffuncs.py | SkafteNicki/Deep_LMNN | e70b495befdc6f6f1b24029e470c42a3b3821a93 | [
"MIT"
] | 1 | 2021-09-14T10:06:53.000Z | 2021-09-14T10:06:53.000Z | dlmnn/unused/tffuncs.py | SkafteNicki/Deep_LMNN | e70b495befdc6f6f1b24029e470c42a3b3821a93 | [
"MIT"
] | 1 | 2018-12-12T07:18:42.000Z | 2018-12-12T07:18:42.000Z | dlmnn/unused/tffuncs.py | SkafteNicki/Deep_LMNN | e70b495befdc6f6f1b24029e470c42a3b3821a93 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 29 09:58:39 2018
@author: nsde
"""
#%%
#%%
def tf_mahalanobisTransformer(X, scope='mahalanobis_transformer'):
""" Creates a transformer function that for an given input matrix X,
calculates the linear transformation L*X_i """
with t... | 44.147929 | 101 | 0.630747 | 1,244 | 7,461 | 3.69373 | 0.155949 | 0.028292 | 0.020892 | 0.015234 | 0.732971 | 0.700109 | 0.684657 | 0.679869 | 0.647443 | 0.614581 | 0 | 0.052641 | 0.233615 | 7,461 | 169 | 102 | 44.147929 | 0.750962 | 0.308136 | 0 | 0.483146 | 0 | 0 | 0.054098 | 0.028066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0 | 0 | 0.224719 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b8acd0d1d067d0ee02a8dfa5e3ba3514941cafe | 253 | py | Python | cursoemvideo/python/exercicio/027(primeiroUltimoNome).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | cursoemvideo/python/exercicio/027(primeiroUltimoNome).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | cursoemvideo/python/exercicio/027(primeiroUltimoNome).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | nome = ' Pedro da Silva Moreira'
nomeSeparado = nome.split()
print('O primeiro nome é:')
print(nomeSeparado[0])
#assim
print('O último nome é:')
print(nomeSeparado[-1])
#ou assim
print('O último nome é:')
print(nomeSeparado[len(nomeSeparado)-1])
| 19.461538 | 40 | 0.703557 | 37 | 253 | 4.810811 | 0.459459 | 0.101124 | 0.168539 | 0.370787 | 0.438202 | 0.438202 | 0.438202 | 0.438202 | 0 | 0 | 0 | 0.013761 | 0.13834 | 253 | 12 | 41 | 21.083333 | 0.802752 | 0.051383 | 0 | 0.25 | 0 | 0 | 0.327731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
9b8d7494ccada2f0417446c39f325d154dd972da | 307 | py | Python | tests/extractor/test_extractor.py | victordibia/signver | e547177b5dab542c6d242566675ddb9468dadc08 | [
"MIT"
] | 4 | 2021-09-06T13:02:05.000Z | 2022-03-20T15:22:45.000Z | tests/extractor/test_extractor.py | victordibia/signver | e547177b5dab542c6d242566675ddb9468dadc08 | [
"MIT"
] | null | null | null | tests/extractor/test_extractor.py | victordibia/signver | e547177b5dab542c6d242566675ddb9468dadc08 | [
"MIT"
] | 1 | 2022-03-04T16:20:52.000Z | 2022-03-04T16:20:52.000Z | from logging import log
from tensorflow.python.ops.variables import model_variables
from signver.extractor import MetricExtractor
def test_extractor_load():
model_path = "models/extractor/metric"
extractor = MetricExtractor()
extractor.load(model_path)
assert extractor.model is not None
| 25.583333 | 59 | 0.791531 | 38 | 307 | 6.263158 | 0.578947 | 0.109244 | 0.151261 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14658 | 307 | 11 | 60 | 27.909091 | 0.908397 | 0 | 0 | 0 | 0 | 0 | 0.074919 | 0.074919 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9b923db117d6fd1c71cc7e4fa23ed7ff5f2df80c | 480 | py | Python | data-strucutre/dictionaries.py | howtoautomateinth/awesome-python | b081de60a6b34cfb6f13e15dc63ac3dc4f4787cd | [
"Apache-2.0"
] | 3 | 2020-05-21T04:50:07.000Z | 2021-03-28T04:39:07.000Z | data-strucutre/dictionaries.py | howtoautomateinth/awesome-python | b081de60a6b34cfb6f13e15dc63ac3dc4f4787cd | [
"Apache-2.0"
] | null | null | null | data-strucutre/dictionaries.py | howtoautomateinth/awesome-python | b081de60a6b34cfb6f13e15dc63ac3dc4f4787cd | [
"Apache-2.0"
] | 3 | 2020-03-02T06:30:49.000Z | 2021-05-29T03:13:56.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# simple dictionary
mybasket = {'apple':2.99,'orange':1.99,'milk':5.8}
print(mybasket['apple'])
# dictionary with list inside
mynestedbasket = {'apple':2.99,'orange':1.99,'milk':['chocolate','stawbery']}
print(mynestedbasket['milk'][1].upper())
# append more key
myba... | 22.857143 | 81 | 0.675 | 67 | 480 | 4.835821 | 0.522388 | 0.200617 | 0.049383 | 0.08642 | 0.12963 | 0.12963 | 0.12963 | 0 | 0 | 0 | 0 | 0.042453 | 0.116667 | 480 | 21 | 82 | 22.857143 | 0.721698 | 0.304167 | 0 | 0 | 0 | 0 | 0.186544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
9bb16486d67ab1cd31c631ac13a9a3a1da83b48d | 620 | py | Python | pbpstats/resources/enhanced_pbp/stats_nba/free_throw.py | pauldevos/pbpstats | 71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152 | [
"MIT"
] | null | null | null | pbpstats/resources/enhanced_pbp/stats_nba/free_throw.py | pauldevos/pbpstats | 71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152 | [
"MIT"
] | null | null | null | pbpstats/resources/enhanced_pbp/stats_nba/free_throw.py | pauldevos/pbpstats | 71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152 | [
"MIT"
] | null | null | null | from pbpstats.resources.enhanced_pbp.stats_nba.enhanced_pbp_item import (
StatsEnhancedPbpItem,
)
from pbpstats.resources.enhanced_pbp import FreeThrow
class StatsFreeThrow(FreeThrow, StatsEnhancedPbpItem):
"""
Class for free throw events
"""
def __init__(self, *args):
super().__init__(*a... | 22.962963 | 73 | 0.646774 | 71 | 620 | 5.394366 | 0.619718 | 0.086162 | 0.109661 | 0.151436 | 0.167102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266129 | 620 | 26 | 74 | 23.846154 | 0.841758 | 0.175806 | 0 | 0 | 0 | 0 | 0.011136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9bb1842cb0c3a935743c2e944c304e7e27db1478 | 175 | py | Python | launcher.py | DukeX9/David-TelegramBot-Docker | 5269cde874b5d2082f5c38a86ada1f23943cb650 | [
"MIT"
] | null | null | null | launcher.py | DukeX9/David-TelegramBot-Docker | 5269cde874b5d2082f5c38a86ada1f23943cb650 | [
"MIT"
] | null | null | null | launcher.py | DukeX9/David-TelegramBot-Docker | 5269cde874b5d2082f5c38a86ada1f23943cb650 | [
"MIT"
] | null | null | null | from bot import init
app = init()
if __name__ == '__main__':
# note the threaded arg which allow
# your app to have more than one thread
app.run(threaded=True)
| 17.5 | 43 | 0.674286 | 27 | 175 | 4.074074 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245714 | 175 | 9 | 44 | 19.444444 | 0.833333 | 0.405714 | 0 | 0 | 0 | 0 | 0.08 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9bb43931b46f3af13d3eaba7dfd666d7ed3ff6d0 | 3,846 | py | Python | pse_summary/settings/base.py | ralphqq/pse-indices-scoreboard | f11a01915ac5a17b663db604afe996c5ed928fb9 | [
"MIT"
] | 1 | 2019-10-08T16:54:07.000Z | 2019-10-08T16:54:07.000Z | pse_summary/settings/base.py | ralphqq/pse-indices-scoreboard | f11a01915ac5a17b663db604afe996c5ed928fb9 | [
"MIT"
] | 8 | 2020-02-12T01:17:41.000Z | 2021-12-13T20:06:12.000Z | pse_summary/settings/base.py | ralphqq/pse-indices-scoreboard | f11a01915ac5a17b663db604afe996c5ed928fb9 | [
"MIT"
] | null | null | null | """
Django settings for pse_summary project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | 25.812081 | 91 | 0.681487 | 433 | 3,846 | 5.900693 | 0.376443 | 0.081409 | 0.046575 | 0.058708 | 0.186693 | 0.166732 | 0.105675 | 0.094325 | 0.046967 | 0 | 0 | 0.011055 | 0.176807 | 3,846 | 148 | 92 | 25.986486 | 0.795957 | 0.210608 | 0 | 0.020833 | 1 | 0 | 0.482415 | 0.364964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9bbe8dff525decb04bd791562f13040180a0090c | 346 | py | Python | md-envs/md_envs/__init__.py | IBM/logical-agent-driven-polymer-discovery | 9f2040ca0b19a2bc149ff840aa98a3f122606c32 | [
"Apache-2.0"
] | null | null | null | md-envs/md_envs/__init__.py | IBM/logical-agent-driven-polymer-discovery | 9f2040ca0b19a2bc149ff840aa98a3f122606c32 | [
"Apache-2.0"
] | null | null | null | md-envs/md_envs/__init__.py | IBM/logical-agent-driven-polymer-discovery | 9f2040ca0b19a2bc149ff840aa98a3f122606c32 | [
"Apache-2.0"
] | null | null | null | from gym.envs.registration import register
register(
id='eADPD-v1',
entry_point='md_envs.envs:AgentDrivenPolymerDiscovery',
)
register(
id='logical-eADPD-v1',
entry_point='md_envs.envs:LogicalAgentDrivenPolymerDiscovery',
)
register(
id='direct-eADPD-v1',
entry_point='md_envs.envs:DirectAgent... | 21.625 | 66 | 0.754335 | 38 | 346 | 6.710526 | 0.447368 | 0.117647 | 0.141176 | 0.2 | 0.317647 | 0.317647 | 0.317647 | 0 | 0 | 0 | 0 | 0.009868 | 0.121387 | 346 | 16 | 67 | 21.625 | 0.828947 | 0 | 0 | 0.230769 | 0 | 0 | 0.495677 | 0.383285 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 2 |
32ff0f5a6da73d601925d20173aeb929eb765c44 | 448 | py | Python | exercicio3.py | cecilialourenco/Exercicios | 960231651566a35e94f9e075124280ef3ddf1bb9 | [
"Unlicense"
] | null | null | null | exercicio3.py | cecilialourenco/Exercicios | 960231651566a35e94f9e075124280ef3ddf1bb9 | [
"Unlicense"
] | null | null | null | exercicio3.py | cecilialourenco/Exercicios | 960231651566a35e94f9e075124280ef3ddf1bb9 | [
"Unlicense"
] | null | null | null | '''Faça um programa que leia 4 notas, mostre as notas e a média na tela.'''
notas = []
nota1 = float(input('Digite a primeira nota: '))
notas.append(nota1)
nota2 = float(input('Digite a segunda nota: '))
notas.append(nota2)
nota3 = float(input('Digite a terceira nota: '))
notas.append(nota3)
nota4 = float(input('Di... | 23.578947 | 75 | 0.689732 | 69 | 448 | 4.478261 | 0.478261 | 0.161812 | 0.20712 | 0.220065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.142857 | 448 | 18 | 76 | 24.888889 | 0.78125 | 0.154018 | 0 | 0 | 0 | 0 | 0.284182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd01f25ecbcb738ebf3eb6464ff69f891397c315 | 290 | py | Python | tudo/ex017.py | Ramon-Erik/Exercicios-Python | 158a7f1846dd3d486aa0517fa337d46d73aab649 | [
"MIT"
] | 1 | 2021-07-08T00:35:57.000Z | 2021-07-08T00:35:57.000Z | tudo/ex017.py | Ramon-Erik/Exercicios-Python | 158a7f1846dd3d486aa0517fa337d46d73aab649 | [
"MIT"
] | null | null | null | tudo/ex017.py | Ramon-Erik/Exercicios-Python | 158a7f1846dd3d486aa0517fa337d46d73aab649 | [
"MIT"
] | null | null | null | import emoji
from math import hypot
cateto_opos = float(input('Cateto oposto: '))
cateto_adja = float(input('Cateto adjacente: '))
hipotenusa = (hypot(cateto_opos, cateto_adja))
print(emoji.emojize(f'De acordo com os dados, a hipotenusa é igual a {hipotenusa:.2f} :nerd_face::thumbs_up:.')) | 48.333333 | 112 | 0.758621 | 44 | 290 | 4.863636 | 0.659091 | 0.102804 | 0.140187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.106897 | 290 | 6 | 112 | 48.333333 | 0.822394 | 0 | 0 | 0 | 0 | 0.166667 | 0.412371 | 0.079038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fd26146f953fd6c149d4d0ab9b1beecc7baf6caf | 332 | py | Python | ics/structures/stop_dhcp_server_command.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 45 | 2017-10-17T08:42:08.000Z | 2022-02-21T16:26:48.000Z | ics/structures/stop_dhcp_server_command.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 106 | 2017-03-07T21:10:39.000Z | 2022-03-29T15:32:46.000Z | ics/structures/stop_dhcp_server_command.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 17 | 2017-04-04T12:30:22.000Z | 2022-01-28T05:30:25.000Z | # This file was auto generated; Do not modify, if you value your sanity!
import ctypes
import enum
class stop_dhcp_server_command(ctypes.Structure):
_pack_ = 2
_fields_ = [
('networkId', ctypes.c_uint16),
]
_StopDHCPServerCommand = stop_dhcp_server_command
StopDHCPServerCommand = stop_dhcp_serv... | 19.529412 | 72 | 0.753012 | 41 | 332 | 5.731707 | 0.707317 | 0.102128 | 0.178723 | 0.268085 | 0.357447 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01107 | 0.183735 | 332 | 16 | 73 | 20.75 | 0.856089 | 0.210843 | 0 | 0 | 1 | 0 | 0.034749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd3ac65f567e5909162483e0e75534a983ee2851 | 2,612 | py | Python | abiflows/database/mongoengine/utils.py | gmatteo/abiflows | bde67408b024c34c17d78c9fcc672b42be71e1e5 | [
"BSD-3-Clause"
] | 4 | 2018-12-13T09:12:17.000Z | 2019-06-14T15:16:08.000Z | abiflows/database/mongoengine/utils.py | gmatteo/abiflows | bde67408b024c34c17d78c9fcc672b42be71e1e5 | [
"BSD-3-Clause"
] | 3 | 2018-01-03T17:08:22.000Z | 2018-08-23T22:29:41.000Z | abiflows/database/mongoengine/utils.py | abinit/abiflows | bde67408b024c34c17d78c9fcc672b42be71e1e5 | [
"BSD-3-Clause"
] | 13 | 2017-07-22T01:05:20.000Z | 2021-06-08T10:57:53.000Z | # coding: utf-8
"""
Utilities to handle mongoengine classes and connections.
"""
import contextlib
from pymatgen.util.serialization import pmg_serialize
from monty.json import MSONable
from mongoengine import connect
from mongoengine.context_managers import switch_collection
from mongoengine.connection import DEFAULT_... | 34.826667 | 116 | 0.665008 | 311 | 2,612 | 5.501608 | 0.327974 | 0.056108 | 0.037405 | 0.035067 | 0.188194 | 0.163647 | 0.116891 | 0.116891 | 0.09585 | 0.09585 | 0 | 0.000518 | 0.261103 | 2,612 | 74 | 117 | 35.297297 | 0.88601 | 0.321593 | 0 | 0.054054 | 0 | 0 | 0.008 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.162162 | false | 0.108108 | 0.162162 | 0.054054 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fd4135c5a31407306c87f27c0c48e1d8bf5ef87b | 18,727 | py | Python | accounting/models.py | venkat0708/BalajiVV | ddf74d26a7ecae3f3bc5a902dcab09bf8f30e448 | [
"MIT"
] | null | null | null | accounting/models.py | venkat0708/BalajiVV | ddf74d26a7ecae3f3bc5a902dcab09bf8f30e448 | [
"MIT"
] | null | null | null | accounting/models.py | venkat0708/BalajiVV | ddf74d26a7ecae3f3bc5a902dcab09bf8f30e448 | [
"MIT"
] | null | null | null |
from django.db import models
from django.core.validators import RegexValidator, MinValueValidator,MaxValueValidator
from django.core.urlresolvers import reverse
from django.dispatch import receiver
from django.db.models.signals import post_save, pre_save, pre_delete
from django.utils import timezone
from core.models... | 29.772655 | 110 | 0.533081 | 1,679 | 18,727 | 5.812984 | 0.088148 | 0.025615 | 0.027971 | 0.043033 | 0.816496 | 0.765676 | 0.664652 | 0.622541 | 0.58627 | 0.479098 | 0 | 0.020743 | 0.371869 | 18,727 | 628 | 111 | 29.820064 | 0.808977 | 0.013457 | 0 | 0.657356 | 0 | 0 | 0.141989 | 0.036081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057728 | false | 0.005587 | 0.01676 | 0.046555 | 0.234637 | 0.018622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd4424d02208e046d11632fd9a9d8ceb09610607 | 287 | py | Python | Anylink-server/add_user.py | orike122/anylink | 844199c0b094670642a13603b1edeb763e8c50fc | [
"MIT"
] | 3 | 2020-02-02T19:48:50.000Z | 2020-02-02T20:05:14.000Z | Anylink-server/add_user.py | orike122/anylink | 844199c0b094670642a13603b1edeb763e8c50fc | [
"MIT"
] | 4 | 2021-01-28T19:53:40.000Z | 2022-03-25T18:44:41.000Z | Anylink-server/add_user.py | orike122/anylink | 844199c0b094670642a13603b1edeb763e8c50fc | [
"MIT"
] | null | null | null | from config import Configuration
if __name__ == "__main__":
config = Configuration("/home/orikeidar01/config.json", "anylink")
config.database.add_user("test@gmail.com",
"ECD71870D1963316A97E3AC3408C9835AD8CF0F3C1BC703527C30265534F75AE", "anylink")
| 41 | 107 | 0.707317 | 23 | 287 | 8.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0.184669 | 287 | 6 | 108 | 47.833333 | 0.636752 | 0 | 0 | 0 | 0 | 0 | 0.449477 | 0.324042 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b5c4f240f5c89da02cb112a0309854a25d615d5c | 981 | py | Python | tests/conftest.py | mr-mixas/nested.py | 23857f248a6411b15961a0e2a169c2f14421ccb7 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | mr-mixas/nested.py | 23857f248a6411b15961a0e2a169c2f14421ccb7 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | mr-mixas/nested.py | 23857f248a6411b15961a0e2a169c2f14421ccb7 | [
"Apache-2.0"
] | null | null | null | import os
import pytest
from io import StringIO
pytest.register_assert_rewrite('tests.common')
@pytest.fixture
def content():
def _reader(filename):
with open(filename) as f:
return f.read()
return _reader
@pytest.fixture
def expected(request):
filename = os.path.splitext(request... | 17.210526 | 59 | 0.629969 | 113 | 981 | 5.230089 | 0.380531 | 0.060914 | 0.135364 | 0.060914 | 0.192893 | 0.192893 | 0.192893 | 0.101523 | 0 | 0 | 0 | 0.00137 | 0.255861 | 981 | 56 | 60 | 17.517857 | 0.808219 | 0 | 0 | 0.243243 | 0 | 0 | 0.019368 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.216216 | false | 0 | 0.081081 | 0.081081 | 0.540541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b5c62ca5b3c4f2884cd5d03e834c6d0ef771ac38 | 773 | py | Python | 100 Exercicios/Mundo 1/EX-27 - PRIMEIRO E ÚLTIMO NOME DE UMA PESSOA.py | marevandro/Python-Exercicios | e377b6ab7343f82e44f32ac39abf2e1e4dcb529c | [
"MIT"
] | null | null | null | 100 Exercicios/Mundo 1/EX-27 - PRIMEIRO E ÚLTIMO NOME DE UMA PESSOA.py | marevandro/Python-Exercicios | e377b6ab7343f82e44f32ac39abf2e1e4dcb529c | [
"MIT"
] | null | null | null | 100 Exercicios/Mundo 1/EX-27 - PRIMEIRO E ÚLTIMO NOME DE UMA PESSOA.py | marevandro/Python-Exercicios | e377b6ab7343f82e44f32ac39abf2e1e4dcb529c | [
"MIT"
] | null | null | null | '''Faça um programa que
leia o nome completo de uma pessoa, mostrando em
seguida o primeiro e o último nome separadamente.'''
print('''Não e necessário utilizarmos o len nessa situação, ficou entendido no
último exercício que a leitura pode ser vista de trás pra frente utilizando -1''')
next = input("Aperte enter para... | 38.65 | 82 | 0.71022 | 126 | 773 | 4.357143 | 0.539683 | 0.03643 | 0.03643 | 0.061931 | 0.105647 | 0.105647 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.146184 | 773 | 20 | 83 | 38.65 | 0.819697 | 0.153946 | 0 | 0 | 0 | 0 | 0.639445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b5c7a55fe855fc2212bba3c62bfa56f41cb12f40 | 3,213 | py | Python | scripts/field/enter_402000630.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/field/enter_402000630.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/field/enter_402000630.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Created by MechAviv
# Map ID :: 402000630
# Desert Cavern : Below the Sinkhole
# Update Quest Record EX | Quest ID: [34931] | Data: dir=1;exp=1
sm.curNodeEventEnd(True)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(True, False, False, False)
sm.setStandAloneMode(True)
sm.removeAdditionalEffect()
sm.zoomCamera... | 21.42 | 111 | 0.76564 | 430 | 3,213 | 5.716279 | 0.313953 | 0.014646 | 0.014646 | 0.054109 | 0.639138 | 0.590724 | 0.584622 | 0.557771 | 0.557771 | 0.557771 | 0 | 0.088175 | 0.089325 | 3,213 | 149 | 112 | 21.563758 | 0.75188 | 0.042639 | 0 | 0.716981 | 0 | 0.018868 | 0.150765 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b5d98bf2d5dd851ded7bd9a59d520b9776cf8d07 | 139 | py | Python | clinepunk/__init__.py | TaylorMonacelli/clinepunk | d9a354ad5b03305f9283fb39895f69c01b67d6f6 | [
"MIT"
] | null | null | null | clinepunk/__init__.py | TaylorMonacelli/clinepunk | d9a354ad5b03305f9283fb39895f69c01b67d6f6 | [
"MIT"
] | null | null | null | clinepunk/__init__.py | TaylorMonacelli/clinepunk | d9a354ad5b03305f9283fb39895f69c01b67d6f6 | [
"MIT"
] | null | null | null | """Top-level package for clinepunk."""
__author__ = """Taylor Monacelli"""
__email__ = "taylormonacelli@gmail.com"
__version__ = "0.1.14"
| 23.166667 | 39 | 0.71223 | 16 | 139 | 5.4375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.107914 | 139 | 5 | 40 | 27.8 | 0.669355 | 0.230216 | 0 | 0 | 0 | 0 | 0.465347 | 0.247525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b5f09e43123f9b60ca620739b8050060364eeeaa | 638 | py | Python | wecode/posts/admin.py | fullyalive/project_wecode | c68df66325fff7a982b9059a207d147679f8311d | [
"MIT"
] | null | null | null | wecode/posts/admin.py | fullyalive/project_wecode | c68df66325fff7a982b9059a207d147679f8311d | [
"MIT"
] | 2 | 2019-02-22T17:43:18.000Z | 2022-02-10T11:19:41.000Z | wecode/posts/admin.py | fullyalive/project_wecode | c68df66325fff7a982b9059a207d147679f8311d | [
"MIT"
] | null | null | null | from django.contrib import admin
from django_summernote.admin import SummernoteModelAdmin
from . import models
@admin.register(models.Post)
class PostAdmin(SummernoteModelAdmin):
# list_filter = ('post_type')
list_display = ['id','title', 'post_type', 'creator',
'view_count','created_at']
... | 26.583333 | 61 | 0.702194 | 67 | 638 | 6.522388 | 0.492537 | 0.089245 | 0.130435 | 0.091533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169279 | 638 | 23 | 62 | 27.73913 | 0.824528 | 0.04232 | 0 | 0.125 | 0 | 0 | 0.177924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
b5f95018616cf739ff08d74f4e51a3903e9e3555 | 3,181 | py | Python | scripts/planetlab/gen_commands.py | SyncFree/SwiftCloud | ff87f80412211d2ac3647f27b016ba7f62b4dd0d | [
"Apache-2.0"
] | 26 | 2015-09-29T14:55:56.000Z | 2021-07-06T06:34:25.000Z | scripts/planetlab/gen_commands.py | marsleezm/cprdt | 268838bb33423c30ad82b1bbef8789432eb6ed40 | [
"Apache-2.0"
] | null | null | null | scripts/planetlab/gen_commands.py | marsleezm/cprdt | 268838bb33423c30ad82b1bbef8789432eb6ed40 | [
"Apache-2.0"
] | 8 | 2015-04-29T09:32:34.000Z | 2021-06-27T14:20:58.000Z | #!/usr/bin/python
# Generate a command file for adding bogus users to a file
# CLARIFY LICENSING: THIS SCRIPT COMES FROM WALTER PAPER PUBLISHED IN OSDI 2011
import sys, os, base64, random, time
allUsers = []
commands_per_user=10
def doStatusLine(user):
return 'status;"{0}";\n'.format(activities[random.randint(0, l... | 26.508333 | 83 | 0.623703 | 440 | 3,181 | 4.456818 | 0.288636 | 0.039266 | 0.028557 | 0.060683 | 0.374299 | 0.335543 | 0.304946 | 0.287608 | 0.267211 | 0.18154 | 0 | 0.026506 | 0.217227 | 3,181 | 119 | 84 | 26.731092 | 0.761044 | 0.101855 | 0 | 0.216867 | 1 | 0 | 0.106503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.036145 | 0.012048 | null | null | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.