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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2593397a5dab50cf3ce4ebdeeb3fbf05818b971 | 293 | py | Python | melisa/models/message/__init__.py | MelisaDev/melisa | 53fee10d8c1bf4dd716bc90096c16f096e11bfbf | [
"MIT"
] | 5 | 2022-03-11T19:51:28.000Z | 2022-03-13T16:28:58.000Z | melisa/models/message/__init__.py | MelisaDev/melisa | 53fee10d8c1bf4dd716bc90096c16f096e11bfbf | [
"MIT"
] | 2 | 2022-03-19T18:09:39.000Z | 2022-03-23T12:18:49.000Z | melisa/models/message/__init__.py | MelisaDev/melisa | 53fee10d8c1bf4dd716bc90096c16f096e11bfbf | [
"MIT"
] | 1 | 2022-03-23T07:30:04.000Z | 2022-03-23T07:30:04.000Z | # Copyright MelisaDev 2022 - Present
# Full MIT License can be found in `LICENSE.txt` at the project root.
from .message import (
MessageType,
MessageActivityType,
MessageFlags,
AllowedMentions,
Message,
)
from .embed import *
from .colors import *
from .file import File
| 20.928571 | 69 | 0.720137 | 35 | 293 | 6.028571 | 0.742857 | 0.094787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017316 | 0.211604 | 293 | 13 | 70 | 22.538462 | 0.896104 | 0.348123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a266a99828415a4179445fc45dbb2fde8a4a3ec8 | 92 | py | Python | pyavsong/__init__.py | alenwl/pyavsong | 516bada8dde0af1015da3e5eea5e0df584648713 | [
"MIT"
] | null | null | null | pyavsong/__init__.py | alenwl/pyavsong | 516bada8dde0af1015da3e5eea5e0df584648713 | [
"MIT"
] | null | null | null | pyavsong/__init__.py | alenwl/pyavsong | 516bada8dde0af1015da3e5eea5e0df584648713 | [
"MIT"
] | null | null | null | """
Top-level package for Python AvSong.
"""
__app_name__ = "pyavsong"
__version__ = "0.1"
| 13.142857 | 36 | 0.684783 | 12 | 92 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.152174 | 92 | 6 | 37 | 15.333333 | 0.666667 | 0.391304 | 0 | 0 | 0 | 0 | 0.229167 | 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 |
a2777089666b88e120707ffa39156273c4c865bd | 690 | py | Python | setup.py | BorisTheBrave/axaxaxas | 3973e7dbdc6e57f44d9a039b53e6791c8f036ee8 | [
"MIT"
] | null | null | null | setup.py | BorisTheBrave/axaxaxas | 3973e7dbdc6e57f44d9a039b53e6791c8f036ee8 | [
"MIT"
] | null | null | null | setup.py | BorisTheBrave/axaxaxas | 3973e7dbdc6e57f44d9a039b53e6791c8f036ee8 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='axaxaxas',
version="1.0.0",
description="A simple to use Earley Parser",
long_description="""Axaxaxas is a full Earley Parser with an emphasis on ease of use and customization.
Earley parsers are a type of chart parser with robust support for ambiguous synt... | 31.363636 | 107 | 0.662319 | 83 | 690 | 5.493976 | 0.746988 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011152 | 0.22029 | 690 | 21 | 108 | 32.857143 | 0.836431 | 0 | 0 | 0 | 0 | 0 | 0.632801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 |
a2792d47fcc95e82d666e653c40eba22d8d2a427 | 923 | py | Python | simplemooc/accounts/urls.py | jorgerodriguesdev/appcursossimplesdjango | 6832fda506199e124617a1f569123d139af49c04 | [
"MIT"
] | 1 | 2020-10-12T03:08:33.000Z | 2020-10-12T03:08:33.000Z | accounts/urls.py | jorgerodriguesdev/appcursossimplesdjango | 6832fda506199e124617a1f569123d139af49c04 | [
"MIT"
] | null | null | null | accounts/urls.py | jorgerodriguesdev/appcursossimplesdjango | 6832fda506199e124617a1f569123d139af49c04 | [
"MIT"
] | 1 | 2020-10-12T03:08:34.000Z | 2020-10-12T03:08:34.000Z | from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^$', 'simplemooc.accounts.views.dashboard',
name='dashboard'),
url(r'^entrar/$', 'django.contrib.auth.views.login',
{'template_name': 'accounts/login.html'}, name='login'),
url(r'^sair/$', 'django.contrib... | 43.952381 | 71 | 0.633803 | 108 | 923 | 5.324074 | 0.37963 | 0.055652 | 0.24 | 0.076522 | 0.125217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163597 | 923 | 21 | 72 | 43.952381 | 0.744819 | 0 | 0 | 0 | 0 | 0 | 0.568182 | 0.375541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a28eb7416e0c6306d859f0a16442e92c5472d123 | 421 | py | Python | setup.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 2 | 2018-11-11T07:52:51.000Z | 2019-06-19T05:44:55.000Z | setup.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 5 | 2018-07-20T15:08:23.000Z | 2018-11-21T13:18:01.000Z | setup.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 1 | 2020-11-25T15:16:16.000Z | 2020-11-25T15:16:16.000Z |
from setuptools import setup, find_packages
setup(name='errorgenerator',
version='0.2',
description='Package to generate highly realistic errors',
license="TU-Berlin",
author='Milad Abbaszadeh',
author_email='milad.abbaszadeh94@gmail.com',
packages=find_packages(),
url="https... | 30.071429 | 64 | 0.67696 | 46 | 421 | 6.108696 | 0.847826 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011662 | 0.185273 | 421 | 13 | 65 | 32.384615 | 0.80758 | 0 | 0 | 0 | 1 | 0 | 0.411905 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
a28f9c23dee47130264c9eae2c392bd4c2a3043f | 1,205 | py | Python | checks/checks.py | AstonishBot/Astonish | 8d79a556a9421a59e0ce594e42d27a4e4d91c9c0 | [
"MIT"
] | null | null | null | checks/checks.py | AstonishBot/Astonish | 8d79a556a9421a59e0ce594e42d27a4e4d91c9c0 | [
"MIT"
] | null | null | null | checks/checks.py | AstonishBot/Astonish | 8d79a556a9421a59e0ce594e42d27a4e4d91c9c0 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
class NSFWOnly(commands.CheckFailure):
pass
class OwnerOnly(commands.CheckFailure):
pass
class PatronOnly(commands.CheckFailure):
pass
class NeedsAccount(commands.CheckFailure):
pass
def nsfw():
async def predicate(ctx):
if type(ctx.c... | 19.126984 | 88 | 0.609129 | 135 | 1,205 | 5.42963 | 0.340741 | 0.109141 | 0.130969 | 0.109141 | 0.298772 | 0.111869 | 0.111869 | 0.111869 | 0.111869 | 0.111869 | 0 | 0 | 0.302905 | 1,205 | 62 | 89 | 19.435484 | 0.872619 | 0 | 0 | 0.52381 | 0 | 0 | 0.038174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | true | 0.095238 | 0.047619 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a29ae20ed68cc4047ffaa89cbce18b04801a6f1d | 246 | py | Python | app/models/admin.py | chetat/market-research | 8eac059f91ea41b8b885d1f2bbe14029292bf61c | [
"MIT"
] | null | null | null | app/models/admin.py | chetat/market-research | 8eac059f91ea41b8b885d1f2bbe14029292bf61c | [
"MIT"
] | null | null | null | app/models/admin.py | chetat/market-research | 8eac059f91ea41b8b885d1f2bbe14029292bf61c | [
"MIT"
] | 1 | 2021-03-15T19:24:38.000Z | 2021-03-15T19:24:38.000Z | from .. import db
class TrackingScript(db.Model):
__tablename__ = "tracking_script"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(50), nullable=False)
script = db.Column(db.String(150), nullable=False)
| 27.333333 | 54 | 0.703252 | 34 | 246 | 4.911765 | 0.617647 | 0.143713 | 0.179641 | 0.191617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024155 | 0.158537 | 246 | 8 | 55 | 30.75 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a29fd53673325c7cbe03afc77d93aaf96212f79d | 145 | py | Python | openapi_to_markdown/__init__.py | smatsumt/openapi_to_markdown | c4053bc523182d6e2a913f9f3b6a3ed4d80ca3cc | [
"MIT"
] | null | null | null | openapi_to_markdown/__init__.py | smatsumt/openapi_to_markdown | c4053bc523182d6e2a913f9f3b6a3ed4d80ca3cc | [
"MIT"
] | null | null | null | openapi_to_markdown/__init__.py | smatsumt/openapi_to_markdown | c4053bc523182d6e2a913f9f3b6a3ed4d80ca3cc | [
"MIT"
] | null | null | null | """Top-level package for openapi-to-markdown."""
__author__ = """Shinji Matsumoto"""
__email__ = 'shinji.mtsmt@gmail.com'
__version__ = '0.1.0'
| 24.166667 | 48 | 0.703448 | 19 | 145 | 4.736842 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.103448 | 145 | 5 | 49 | 29 | 0.669231 | 0.289655 | 0 | 0 | 0 | 0 | 0.443299 | 0.226804 | 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 |
a2ae4f17308f634f12ab0d89d8ea1ba9c3c8b49c | 81,770 | py | Python | src/amd/compiler/aco_opcodes.py | pundiramit/external-mesa3d | c342483c57fa185ff67bd5ab7d82cb884e42684e | [
"MIT"
] | null | null | null | src/amd/compiler/aco_opcodes.py | pundiramit/external-mesa3d | c342483c57fa185ff67bd5ab7d82cb884e42684e | [
"MIT"
] | null | null | null | src/amd/compiler/aco_opcodes.py | pundiramit/external-mesa3d | c342483c57fa185ff67bd5ab7d82cb884e42684e | [
"MIT"
] | null | null | null | #
# Copyright (c) 2018 Valve Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish,... | 49.378019 | 154 | 0.603999 | 12,585 | 81,770 | 3.660389 | 0.099801 | 0.027352 | 0.0183 | 0.005905 | 0.287696 | 0.212738 | 0.142839 | 0.111145 | 0.077845 | 0.074024 | 0 | 0.219403 | 0.208499 | 81,770 | 1,655 | 155 | 49.407855 | 0.49236 | 0.071493 | 0 | 0.048136 | 0 | 0.001356 | 0.250644 | 0.042557 | 0 | 0 | 0.205657 | 0.000604 | 0.005424 | 1 | 0.004746 | false | 0 | 0.001356 | 0.002034 | 0.039322 | 0.000678 | 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 |
a2bb2eaff4ee821ffa4339ec8d2452438080f0f8 | 104 | py | Python | Project Euler/pe16.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | Project Euler/pe16.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | Project Euler/pe16.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | nombreACalculer = str(2**1000)
somme=0
for i in nombreACalculer:
somme += int(i)
print(somme)
input() | 14.857143 | 30 | 0.711538 | 16 | 104 | 4.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0.144231 | 104 | 7 | 31 | 14.857143 | 0.764045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
a2ce5db0c8672a336fe2498a057a21c75758e51b | 117 | py | Python | code/controls_test.py | dlaredo/stochastic_dynamics | a851d8fe1e88f5bafa187c4d43c21c7904716670 | [
"MIT"
] | null | null | null | code/controls_test.py | dlaredo/stochastic_dynamics | a851d8fe1e88f5bafa187c4d43c21c7904716670 | [
"MIT"
] | null | null | null | code/controls_test.py | dlaredo/stochastic_dynamics | a851d8fe1e88f5bafa187c4d43c21c7904716670 | [
"MIT"
] | null | null | null | import numpy as np
def main():
X1, X2 = grid_sample([0, 0], [-5, -5], [50, 50])
print(X1)
print(X2)
main() | 8.357143 | 49 | 0.538462 | 21 | 117 | 2.952381 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 0.239316 | 117 | 14 | 50 | 8.357143 | 0.561798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2d247ce6854cd073caaf571f9e2022ada3065d2 | 63 | py | Python | week3/3.05 modules/step02 math.py | project-cemetery/stepik-programming-on-python | 3ca4e6a74b9ca5deb50336737fe2e6d74722a95f | [
"MIT"
] | 7 | 2020-08-03T22:10:29.000Z | 2022-02-23T16:08:44.000Z | week3/3.05 modules/step02 math.py | Joni2701/stepik-programming-on-python | 3ca4e6a74b9ca5deb50336737fe2e6d74722a95f | [
"MIT"
] | null | null | null | week3/3.05 modules/step02 math.py | Joni2701/stepik-programming-on-python | 3ca4e6a74b9ca5deb50336737fe2e6d74722a95f | [
"MIT"
] | 9 | 2020-05-19T16:42:39.000Z | 2022-02-24T22:41:21.000Z | import math
r = float(input())
p = 2 * math.pi * r
print(p)
| 7.875 | 19 | 0.571429 | 12 | 63 | 3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.253968 | 63 | 7 | 20 | 9 | 0.744681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 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 |
a2d2894df3c271d1642fefe02e2c35107e042303 | 248 | py | Python | output/models/nist_data/list_pkg/double/schema_instance/nistschema_sv_iv_list_double_min_length_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/double/schema_instance/nistschema_sv_iv_list_double_min_length_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/double/schema_instance/nistschema_sv_iv_list_double_min_length_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.double.schema_instance.nistschema_sv_iv_list_double_min_length_5_xsd.nistschema_sv_iv_list_double_min_length_5 import NistschemaSvIvListDoubleMinLength5
__all__ = [
"NistschemaSvIvListDoubleMinLength5",
]
| 41.333333 | 190 | 0.891129 | 31 | 248 | 6.419355 | 0.645161 | 0.120603 | 0.140704 | 0.180905 | 0.341709 | 0.341709 | 0.341709 | 0.341709 | 0 | 0 | 0 | 0.017094 | 0.056452 | 248 | 5 | 191 | 49.6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.137097 | 0.137097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2f84d4279f1caa8e26e209d204305c903189414 | 567 | py | Python | abprocess/process.py | marcadeant/ADSL_connector | 21e99cb151ed7651f148d37950ecd1ec9ca403db | [
"ADSL"
] | null | null | null | abprocess/process.py | marcadeant/ADSL_connector | 21e99cb151ed7651f148d37950ecd1ec9ca403db | [
"ADSL"
] | null | null | null | abprocess/process.py | marcadeant/ADSL_connector | 21e99cb151ed7651f148d37950ecd1ec9ca403db | [
"ADSL"
] | null | null | null | from dataclasses import dataclass
from abprocess.authenticator import Authenticator
from abprocess.booking_course import BookingCourse
from time import sleep
from abprocess.constants import TIME_SLEEP
@dataclass
class Process:
authenticator: Authenticator
booking_course: BookingCourse
def process(self):
... | 29.842105 | 66 | 0.783069 | 63 | 567 | 6.904762 | 0.428571 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174603 | 567 | 18 | 67 | 31.5 | 0.929487 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a2fbeabecd05511b0b03a5c67c6b81cc3edbf11e | 3,229 | py | Python | mptpy/mpt.py | CognitiveComputationLab/mptpy | 820fb6c9019623bc98f14c894ced9ed5d70eb96b | [
"MIT"
] | null | null | null | mptpy/mpt.py | CognitiveComputationLab/mptpy | 820fb6c9019623bc98f14c894ced9ed5d70eb96b | [
"MIT"
] | 12 | 2018-02-26T14:06:16.000Z | 2018-09-05T10:27:01.000Z | mptpy/mpt.py | CognitiveComputationLab/mptpy | 820fb6c9019623bc98f14c894ced9ed5d70eb96b | [
"MIT"
] | 1 | 2022-03-03T07:14:36.000Z | 2022-03-03T07:14:36.000Z | """ Data structure for Multinomial Processing Trees (MPTs).
"""
from mptpy.mpt_word import MPTWord
import mptpy.tools.transformations as trans # pylint: disable=import-error
from mptpy.visualization.visualize_mpt import cmd_draw # pylint: disable=import-error
from mptpy.tools import misc
class MPT(object):
""... | 22.739437 | 86 | 0.551254 | 382 | 3,229 | 4.536649 | 0.32199 | 0.046163 | 0.032314 | 0.027698 | 0.06232 | 0.038084 | 0 | 0 | 0 | 0 | 0 | 0.002367 | 0.345928 | 3,229 | 141 | 87 | 22.900709 | 0.818182 | 0.27315 | 0 | 0.037736 | 0 | 0 | 0.004871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0 | 0.075472 | 0.075472 | 0.528302 | 0.037736 | 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 |
0c05d56037b91b57f276bc2c0216c9fc0ebc480f | 5,156 | py | Python | CodeSignal/sumOfTwo.py | NickStrick/Code-Challenges | b6c13357783d3b556e90349ccc6f9bb568a3531d | [
"MIT"
] | null | null | null | CodeSignal/sumOfTwo.py | NickStrick/Code-Challenges | b6c13357783d3b556e90349ccc6f9bb568a3531d | [
"MIT"
] | null | null | null | CodeSignal/sumOfTwo.py | NickStrick/Code-Challenges | b6c13357783d3b556e90349ccc6f9bb568a3531d | [
"MIT"
] | null | null | null | # https://app.codesignal.com/interview-practice/task/Hm98RnqK9Be575yoj
# https://youtu.be/va1IqN0uplE
def sumOfTwo(a, b, v):
pass
# examples are sorted, but are we going to actually get sorted input?
# no, input arrays may not be sorted
# sort the two arrays
# could we use a similar two pointer st... | 34.837838 | 86 | 0.643328 | 878 | 5,156 | 3.773349 | 0.240319 | 0.027166 | 0.024147 | 0.024147 | 0.336251 | 0.283429 | 0.259583 | 0.174162 | 0.142167 | 0.1147 | 0 | 0.006599 | 0.294608 | 5,156 | 147 | 87 | 35.07483 | 0.904317 | 0.783165 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.08 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0c14a3d1903263ddeda1ff997dcbf45a916e3e64 | 2,352 | py | Python | projeto/core/migrations/0001_initial.py | roseanersn/projeto_heroku | c9885d0455ceeba63d582f0c2558f339e261b5af | [
"Apache-2.0"
] | null | null | null | projeto/core/migrations/0001_initial.py | roseanersn/projeto_heroku | c9885d0455ceeba63d582f0c2558f339e261b5af | [
"Apache-2.0"
] | null | null | null | projeto/core/migrations/0001_initial.py | roseanersn/projeto_heroku | c9885d0455ceeba63d582f0c2558f339e261b5af | [
"Apache-2.0"
] | 1 | 2019-05-07T01:09:44.000Z | 2019-05-07T01:09:44.000Z | # Generated by Django 2.2 on 2019-05-01 00:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Aluno',
fields=[
('id', models.AutoField(auto... | 41.263158 | 114 | 0.573129 | 233 | 2,352 | 5.600858 | 0.248927 | 0.143295 | 0.124138 | 0.165517 | 0.594636 | 0.594636 | 0.530268 | 0.475096 | 0.475096 | 0.371648 | 0 | 0.016687 | 0.286565 | 2,352 | 56 | 115 | 42 | 0.761025 | 0.018282 | 0 | 0.591837 | 1 | 0 | 0.119636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.102041 | 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 |
0c330615551a802c83e4375fdfca982116669ad0 | 2,673 | py | Python | python-examples-master/pilha-poo.py | alverad-katsuro/Python | 6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38 | [
"MIT"
] | null | null | null | python-examples-master/pilha-poo.py | alverad-katsuro/Python | 6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38 | [
"MIT"
] | null | null | null | python-examples-master/pilha-poo.py | alverad-katsuro/Python | 6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import system
class Cliente(object): # Classe cliente, vazia pois pode ser atribuido
pass # propriedades mais tarde
class Pilha(object): # Classe Pilha
def __init__(self): # metodo construtor
self.pilha... | 36.616438 | 106 | 0.572765 | 326 | 2,673 | 4.665644 | 0.43865 | 0.031558 | 0.021696 | 0.031558 | 0.160421 | 0.144642 | 0.068376 | 0.068376 | 0.068376 | 0 | 0 | 0.007365 | 0.339693 | 2,673 | 72 | 107 | 37.125 | 0.854391 | 0.371867 | 0 | 0.107143 | 0 | 0 | 0.156269 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 0 | null | null | 0.017857 | 0.017857 | null | null | 0.196429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0c3a0dd756de2ab9a9495f6323067fdc0ecde5a1 | 165 | py | Python | Code(Temp Identity)/Extra Code for testing cases/43423.py | ayushcv/TemperatureIdentity | 0ee51e7c470ad8dd3b4afdf5384b004768490f38 | [
"MIT"
] | 2 | 2021-01-30T03:11:32.000Z | 2022-03-10T20:44:37.000Z | Code(Temp Identity)/Extra Code for testing cases/43423.py | ayushcv/TemperatureIdentity | 0ee51e7c470ad8dd3b4afdf5384b004768490f38 | [
"MIT"
] | null | null | null | Code(Temp Identity)/Extra Code for testing cases/43423.py | ayushcv/TemperatureIdentity | 0ee51e7c470ad8dd3b4afdf5384b004768490f38 | [
"MIT"
] | null | null | null | import requests
url = 'https://ayushcv.github.io'
file = {"myFile":open('/home/pi/Resources12/database','a')}
#Upload File
response = requests.post(url, files=file) | 27.5 | 59 | 0.721212 | 23 | 165 | 5.173913 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.084848 | 165 | 6 | 60 | 27.5 | 0.774834 | 0.066667 | 0 | 0 | 0 | 0 | 0.396104 | 0.188312 | 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 |
0c567cf6251f716a0f828377a924f6aa5df476f6 | 1,783 | py | Python | pymatgen/db/builders/util.py | chc273/pymatgen-db | 29487993e8c147ef3b3bbdb1ad8306e8b79a47e4 | [
"MIT"
] | 33 | 2015-07-15T14:14:40.000Z | 2021-11-12T12:50:57.000Z | pymatgen/db/builders/util.py | chc273/pymatgen-db | 29487993e8c147ef3b3bbdb1ad8306e8b79a47e4 | [
"MIT"
] | 24 | 2015-04-29T13:15:05.000Z | 2022-03-21T13:14:31.000Z | pymatgen/db/builders/util.py | chc273/pymatgen-db | 29487993e8c147ef3b3bbdb1ad8306e8b79a47e4 | [
"MIT"
] | 42 | 2015-02-11T19:48:29.000Z | 2022-03-21T20:52:56.000Z | """
Common utility functions for the database functions
"""
__author__ = "Dan Gunter <dkgunter@lbl.gov>"
__date__ = "11/4/13"
## Imports
import logging
# Stdlib
import os
# Local
import pymatgen
## Globals
## Functions and Classes
_top_dir = os.path.dirname(os.path.abspath(pymatgen.db.__file__))
def get_test_d... | 22.858974 | 72 | 0.661806 | 254 | 1,783 | 4.480315 | 0.38189 | 0.071178 | 0.026362 | 0.031634 | 0.163445 | 0.126538 | 0.087873 | 0.087873 | 0.087873 | 0.087873 | 0 | 0.005004 | 0.215367 | 1,783 | 77 | 73 | 23.155844 | 0.808435 | 0.487942 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 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 |
0c583ad6ca29f835349374c9c29ddb862f3b29b8 | 3,062 | py | Python | stix2matcher/test/test_timestamps.py | oasis-open/cti-pattern-matcher | 1ad275395665d2133be62fd7a824cacf0acbe37a | [
"BSD-3-Clause"
] | 32 | 2017-02-22T14:54:01.000Z | 2022-02-21T09:10:02.000Z | stix2matcher/test/test_timestamps.py | sthagen/cti-pattern-matcher | 37c74012b4f49eca2fe2de3c4e5ed079fc50b619 | [
"BSD-3-Clause"
] | 44 | 2016-11-03T21:41:53.000Z | 2022-03-30T15:22:23.000Z | stix2matcher/test/test_timestamps.py | sthagen/cti-pattern-matcher | 37c74012b4f49eca2fe2de3c4e5ed079fc50b619 | [
"BSD-3-Clause"
] | 23 | 2016-11-07T19:03:13.000Z | 2021-06-10T10:12:36.000Z | import pytest
from stix2patterns.pattern import ParseException
from stix2matcher.matcher import MatcherException, match
_observations = [
{
"type": "observed-data",
"first_observed": "1983-04-21T15:31:06Z",
"last_observed": "1983-04-21T15:31:06Z",
"number_observed": 1,
"obj... | 37.341463 | 108 | 0.599935 | 468 | 3,062 | 3.803419 | 0.209402 | 0.08427 | 0.142135 | 0.153371 | 0.685393 | 0.682022 | 0.606742 | 0.534831 | 0.520787 | 0.520787 | 0 | 0.26128 | 0.203788 | 3,062 | 81 | 109 | 37.802469 | 0.468827 | 0.030046 | 0 | 0.144928 | 0 | 0.057971 | 0.549714 | 0.300977 | 0 | 0 | 0 | 0 | 0.028986 | 1 | 0.057971 | false | 0 | 0.043478 | 0 | 0.101449 | 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 |
0c5b599cb607d2794e1e000b4cba5c3bb90e5015 | 382 | py | Python | datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/windows/__init__.py | tdimnet/integrations-core | a78133a3b71a1b8377fa214d121a98647031ab06 | [
"BSD-3-Clause"
] | 663 | 2016-08-23T05:23:45.000Z | 2022-03-29T00:37:23.000Z | datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/windows/__init__.py | tdimnet/integrations-core | a78133a3b71a1b8377fa214d121a98647031ab06 | [
"BSD-3-Clause"
] | 6,642 | 2016-06-09T16:29:20.000Z | 2022-03-31T22:24:09.000Z | datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/windows/__init__.py | tdimnet/integrations-core | a78133a3b71a1b8377fa214d121a98647031ab06 | [
"BSD-3-Clause"
] | 1,222 | 2017-01-27T15:51:38.000Z | 2022-03-31T18:17:51.000Z | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import click
from ...console import CONTEXT_SETTINGS
from .pdh import pdh
ALL_COMMANDS = [pdh]
@click.group(context_settings=CONTEXT_SETTINGS, short_help='Windows utilities')
def windows():
pass
... | 20.105263 | 79 | 0.76178 | 54 | 382 | 5.259259 | 0.666667 | 0.158451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.149215 | 382 | 18 | 80 | 21.222222 | 0.858462 | 0.282723 | 0 | 0 | 0 | 0 | 0.062963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
0c5d1c880d45b3bca4619d5bf2e1d662a5170328 | 1,941 | py | Python | tenant_schemas/middleware.py | bdauvergne/django-tenant-schemas | 15966752872a3335b09df3bdb1ed924a6bb5fcac | [
"MIT"
] | null | null | null | tenant_schemas/middleware.py | bdauvergne/django-tenant-schemas | 15966752872a3335b09df3bdb1ed924a6bb5fcac | [
"MIT"
] | null | null | null | tenant_schemas/middleware.py | bdauvergne/django-tenant-schemas | 15966752872a3335b09df3bdb1ed924a6bb5fcac | [
"MIT"
] | null | null | null | from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db import connection
from django.shortcuts import get_object_or_404
from tenant_schemas.utils import get_tenant_model, remove_www, get_public_schema_name
class TenantMiddleware(object):
"""
This middleware ... | 48.525 | 113 | 0.723338 | 271 | 1,941 | 5.04797 | 0.487085 | 0.04386 | 0.041667 | 0.020468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009868 | 0.216899 | 1,941 | 39 | 114 | 49.769231 | 0.890132 | 0.464194 | 0 | 0 | 0 | 0 | 0.022426 | 0.021407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0c609426ff81c67b9441ecb4ce7a71b39c1d3cca | 1,286 | py | Python | products/models.py | geoffreynyaga/daraja | 61db415b474fae004547a4caa057fedfe375ebb6 | [
"MIT"
] | 23 | 2019-11-14T14:37:43.000Z | 2022-02-25T01:53:09.000Z | products/models.py | geoffreynyaga/daraja | 61db415b474fae004547a4caa057fedfe375ebb6 | [
"MIT"
] | 11 | 2020-02-12T02:43:25.000Z | 2022-02-19T04:43:54.000Z | products/models.py | geoffreynyaga/daraja | 61db415b474fae004547a4caa057fedfe375ebb6 | [
"MIT"
] | 15 | 2019-11-10T23:28:18.000Z | 2022-03-04T08:35:17.000Z | from django.conf import settings
from django.db import models
# Create your models here.
class Product(models.Model):
"""Model definition for Product."""
# TODO: Define fields here
name = models.CharField(max_length=60)
description = models.CharField(max_length=140, blank=True, null=True)
price ... | 29.906977 | 82 | 0.680404 | 149 | 1,286 | 5.697987 | 0.577181 | 0.070671 | 0.084806 | 0.113074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.203733 | 1,286 | 42 | 83 | 30.619048 | 0.821289 | 0.111975 | 0 | 0 | 0 | 0 | 0.077333 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0.037037 | 0.740741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a74a22cdd27c1a75d4e3ef642d5b7f20dadf2c02 | 3,631 | py | Python | kardioml/segmentation/teijeiro/model/interval.py | Seb-Good/physionet-challenge-2020 | c6f1648a148335babc0a26d8a589120616327548 | [
"BSD-2-Clause"
] | 13 | 2020-12-18T08:09:34.000Z | 2022-03-15T04:51:46.000Z | kardioml/segmentation/teijeiro/model/interval.py | Seb-Good/physionet-challenge-2020 | c6f1648a148335babc0a26d8a589120616327548 | [
"BSD-2-Clause"
] | null | null | null | kardioml/segmentation/teijeiro/model/interval.py | Seb-Good/physionet-challenge-2020 | c6f1648a148335babc0a26d8a589120616327548 | [
"BSD-2-Clause"
] | 14 | 2020-09-16T21:07:38.000Z | 2022-03-23T14:01:24.000Z | # -*- coding: utf-8 -*-
"""Module defining Interval model and operations"""
# ActiveState recipe 576816
class Interval(object):
"""
Represents an interval.
Defined as closed interval [start,end), which includes the start and
end positions.
Start and end do not have to be numeric types.
"""
... | 29.048 | 91 | 0.577251 | 459 | 3,631 | 4.481481 | 0.200436 | 0.074866 | 0.052504 | 0.036461 | 0.374332 | 0.265921 | 0.253281 | 0.253281 | 0.193972 | 0.191055 | 0 | 0.005988 | 0.310107 | 3,631 | 124 | 92 | 29.282258 | 0.81517 | 0.26081 | 0 | 0.224719 | 0 | 0 | 0.205168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.224719 | false | 0 | 0 | 0 | 0.505618 | 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 |
a756cb0b2bc3a505b204382fa0f1c25c83eea5c5 | 82 | py | Python | test_settings.py | champion-automatica/automatica_prometheus | dceb59fb71a48a585066642cca720dd7ed43a476 | [
"MIT"
] | null | null | null | test_settings.py | champion-automatica/automatica_prometheus | dceb59fb71a48a585066642cca720dd7ed43a476 | [
"MIT"
] | null | null | null | test_settings.py | champion-automatica/automatica_prometheus | dceb59fb71a48a585066642cca720dd7ed43a476 | [
"MIT"
] | null | null | null | INSTALLED_APPS = (
'automatica_prometheus',
)
TELEGRAM_BOT_NAME = 'name_bot'
| 13.666667 | 30 | 0.731707 | 9 | 82 | 6.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 5 | 31 | 16.4 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.353659 | 0.256098 | 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 |
a75ecb87925b333815de21b3d8f54bbc8af21a44 | 5,343 | pyt | Python | prettydoc-templ/man.pyt | billziss-gh/prettydoc | 2d2b2caaea5c054fb5020f1903eab03bf7b93117 | [
"BSD-3-Clause"
] | 6 | 2016-07-22T08:41:48.000Z | 2021-09-01T02:01:31.000Z | prettydoc-templ/man.pyt | billziss-gh/prettydoc | 2d2b2caaea5c054fb5020f1903eab03bf7b93117 | [
"BSD-3-Clause"
] | 1 | 2017-02-07T14:50:19.000Z | 2017-02-07T14:50:19.000Z | prettydoc-templ/man.pyt | billziss-gh/prettydoc | 2d2b2caaea5c054fb5020f1903eab03bf7b93117 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
def head(elem):
pass
def group(pass_, elem):
: .SS ${elem.findtext("name").upper()}
if elem.find("abstract") is not None:
: ${pretty_text(elem.find("abstract"))}
if elem.find("desc") is not None:
: ${pretty_text(elem.find("desc"))}
else:
: \&
... | 29.038043 | 84 | 0.460041 | 616 | 5,343 | 3.899351 | 0.220779 | 0.095754 | 0.058285 | 0.067444 | 0.315154 | 0.201915 | 0.201915 | 0.115737 | 0.08826 | 0.08826 | 0 | 0.004106 | 0.361782 | 5,343 | 183 | 85 | 29.196721 | 0.7 | 0.00393 | 0 | 0.289773 | 0 | 0 | 0.148684 | 0.02406 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a77a0e3a093a9c58d4f747dafbc02329b2e173d3 | 2,645 | py | Python | app/views/admin/forms.py | LXG-Shadow/flaskweb | cc170386053e8eb83cc1dc27e38acdf4290b7427 | [
"MIT"
] | null | null | null | app/views/admin/forms.py | LXG-Shadow/flaskweb | cc170386053e8eb83cc1dc27e38acdf4290b7427 | [
"MIT"
] | null | null | null | app/views/admin/forms.py | LXG-Shadow/flaskweb | cc170386053e8eb83cc1dc27e38acdf4290b7427 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_babel import lazy_gettext as _l
from flask_pagedown.fields import PageDownField
from wtforms.fields import StringField,TextAreaField,SubmitField, BooleanField
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from wtforms.validators import DataRequired,Length, Email
f... | 46.403509 | 120 | 0.738752 | 300 | 2,645 | 6.336667 | 0.293333 | 0.069437 | 0.056812 | 0.048396 | 0.377696 | 0.309311 | 0.309311 | 0.309311 | 0.283009 | 0.283009 | 0 | 0.009032 | 0.120983 | 2,645 | 56 | 121 | 47.232143 | 0.808602 | 0 | 0 | 0.234043 | 0 | 0 | 0.097543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06383 | 0.170213 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
a77edcbbfee52ef1b1e7e3c828b9ea76fb077d82 | 532 | py | Python | message-project/message/app/models.py | sunwenquan/1804 | 5b5161079411510231f56d4cb2166885812a6b6a | [
"Apache-2.0"
] | null | null | null | message-project/message/app/models.py | sunwenquan/1804 | 5b5161079411510231f56d4cb2166885812a6b6a | [
"Apache-2.0"
] | 9 | 2019-12-04T23:24:19.000Z | 2022-02-10T08:53:21.000Z | message-project/message/app/models.py | sunwenquan/1804 | 5b5161079411510231f56d4cb2166885812a6b6a | [
"Apache-2.0"
] | 1 | 2019-06-06T03:14:46.000Z | 2019-06-06T03:14:46.000Z | from django.db import models
# Create your models here.
# ORM 对象关系映射
# - 对象 Message是一个类,msg = Message(name='gavin') 就是一个对象
# - 关系 实体和实体之间的关系
# - 映射
# : app_message表 和 Message类 是一一对应的
# : app_message表中每条记录 和 Message类创建的每个对象时一一对应的
class Message(models.Model):
name = models.CharField(max_length=30,ve... | 29.555556 | 66 | 0.723684 | 70 | 532 | 5.357143 | 0.642857 | 0.096 | 0.144 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020179 | 0.161654 | 532 | 17 | 67 | 31.294118 | 0.820628 | 0.37594 | 0 | 0 | 0 | 0 | 0.03096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
a78c228f9f9c8fc61f192f243dcd136214698720 | 1,117 | py | Python | megatron/module.py | eric-haibin-lin/Megatron-LM | 324ddf354db09239d937fabe3d0bf6620edb0e2e | [
"MIT"
] | 309 | 2020-02-07T23:09:27.000Z | 2022-03-31T08:01:53.000Z | megatron/module.py | eric-haibin-lin/Megatron-LM | 324ddf354db09239d937fabe3d0bf6620edb0e2e | [
"MIT"
] | 93 | 2020-02-22T05:56:28.000Z | 2022-03-27T08:43:38.000Z | megatron/module.py | eric-haibin-lin/Megatron-LM | 324ddf354db09239d937fabe3d0bf6620edb0e2e | [
"MIT"
] | 148 | 2020-02-14T22:16:11.000Z | 2022-03-22T17:08:04.000Z | # coding=utf-8
# Copyright (c) 2020, NVIDIA CORPORATION. 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 re... | 34.90625 | 74 | 0.708147 | 151 | 1,117 | 5.139073 | 0.642384 | 0.07732 | 0.033505 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010158 | 0.206804 | 1,117 | 31 | 75 | 36.032258 | 0.865688 | 0.651746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a79065852ec277db0c7f6b9a4e203a72cdc738ca | 2,638 | py | Python | websites/migrations/0003_add_website_starter_model.py | mitodl/ocw-studio | 949f96ec0647064f8d495ebdd22d66eea7d024a5 | [
"BSD-3-Clause"
] | 2 | 2020-08-07T15:55:41.000Z | 2021-08-16T18:28:09.000Z | websites/migrations/0003_add_website_starter_model.py | mitodl/ocw-studio | 949f96ec0647064f8d495ebdd22d66eea7d024a5 | [
"BSD-3-Clause"
] | 924 | 2020-08-10T17:54:19.000Z | 2022-03-31T21:15:17.000Z | websites/migrations/0003_add_website_starter_model.py | mitodl/ocw-studio | 949f96ec0647064f8d495ebdd22d66eea7d024a5 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1 on 2021-02-02 18:02
import django.db.models.deletion
from django.db import migrations, models
import websites.models
class Migration(migrations.Migration):
dependencies = [
("websites", "0002_websitecontent_hugo_filepath"),
]
operations = [
migrations.CreateMo... | 31.404762 | 111 | 0.390447 | 185 | 2,638 | 5.443243 | 0.502703 | 0.059583 | 0.027805 | 0.043694 | 0.111221 | 0.055611 | 0 | 0 | 0 | 0 | 0 | 0.022152 | 0.520849 | 2,638 | 83 | 112 | 31.783133 | 0.774525 | 0.0163 | 0 | 0.302632 | 1 | 0 | 0.144234 | 0.021597 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039474 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
a79375cf7eeeab82071108b0bd1844f324d5478c | 136 | py | Python | Python Fundamentals/Basic Syntax, Conditional Statements and Loops/More Exercises/Task01_2.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | null | null | null | Python Fundamentals/Basic Syntax, Conditional Statements and Loops/More Exercises/Task01_2.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | null | null | null | Python Fundamentals/Basic Syntax, Conditional Statements and Loops/More Exercises/Task01_2.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | 1 | 2021-12-04T12:30:57.000Z | 2021-12-04T12:30:57.000Z | number = list(map(lambda x: int(x), list(input())))
number.sort(reverse=True)
max_num = "".join([str(i) for i in number])
print(max_num) | 34 | 51 | 0.683824 | 25 | 136 | 3.64 | 0.72 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 136 | 4 | 52 | 34 | 0.745902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a79de92abde8a036971edb9e164fe877f323fa18 | 554 | py | Python | rename.py | loublock/Adam-Soundbox | ba859411a5c289c4ea61735233906d657785071d | [
"MIT"
] | 1 | 2020-08-24T19:27:48.000Z | 2020-08-24T19:27:48.000Z | rename.py | loublock/Adam-Soundbox | ba859411a5c289c4ea61735233906d657785071d | [
"MIT"
] | null | null | null | rename.py | loublock/Adam-Soundbox | ba859411a5c289c4ea61735233906d657785071d | [
"MIT"
] | null | null | null | import os
path = 'SD_CARD/MP3/'
count = 1
for filename in os.listdir('SD_CARD/MP3/'):
if count > 9 and count <= 99:
os.rename(r'SD_CARD/MP3/' + filename,r'SD_CARD/MP3/00' + str(count) + '.mp3')
elif count > 99 and count <= 999:
os.rename(r'SD_CARD/MP3/' + filename,r'SD_CARD/MP3/0' + str(count)... | 32.588235 | 86 | 0.584838 | 93 | 554 | 3.376344 | 0.268817 | 0.191083 | 0.286624 | 0.254777 | 0.621019 | 0.509554 | 0.509554 | 0.509554 | 0.509554 | 0.509554 | 0 | 0.076566 | 0.222022 | 554 | 16 | 87 | 34.625 | 0.651972 | 0 | 0 | 0 | 0 | 0 | 0.256318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a7b810404d0031d8c5bb6caee93c5891368e5847 | 816 | py | Python | recognition/src/models/feature_extraction/core.py | AlexeyZhuravlev/OCR-experiments | 8493045054678a2e13cafce6d9e85c7581086c7a | [
"MIT"
] | 2 | 2020-05-28T18:46:37.000Z | 2020-08-29T12:49:57.000Z | recognition/src/models/feature_extraction/core.py | AlexeyZhuravlev/OCR-experiments | 8493045054678a2e13cafce6d9e85c7581086c7a | [
"MIT"
] | null | null | null | recognition/src/models/feature_extraction/core.py | AlexeyZhuravlev/OCR-experiments | 8493045054678a2e13cafce6d9e85c7581086c7a | [
"MIT"
] | null | null | null | import torch
from torch import nn
from torchvision.models import resnet
from abc import ABC, abstractmethod
class BaseFeatureExtractor(ABC, nn.Module):
"""Base class for all feature extractors"""
def __init__(self):
super().__init__()
@property
@abstractmethod
def vertical_scale(self) -> i... | 24.727273 | 67 | 0.644608 | 93 | 816 | 5.537634 | 0.44086 | 0.132039 | 0.145631 | 0.058252 | 0.225243 | 0.085437 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259804 | 816 | 32 | 68 | 25.5 | 0.852649 | 0.241422 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.181818 | 0.181818 | 0 | 0.454545 | 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 |
a7c09e8b13f16da9135a2be446889eaa8cdcdf04 | 309 | py | Python | wargame/migrations/0017_submission_times.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 2 | 2020-10-06T17:07:32.000Z | 2020-10-15T09:25:42.000Z | wargame/migrations/0017_submission_times.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 67 | 2018-06-22T09:12:44.000Z | 2022-03-11T23:34:39.000Z | wargame/migrations/0017_submission_times.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 2 | 2020-10-05T21:13:48.000Z | 2020-10-10T13:46:20.000Z | # Generated by Django 2.1.5 on 2019-02-06 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("wargame", "0016_auto_20190206_1544")]
operations = [migrations.AddField(model_name="submission", name="times", field=models.IntegerField(default=0))]
| 28.090909 | 115 | 0.747573 | 41 | 309 | 5.536585 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.119741 | 309 | 10 | 116 | 30.9 | 0.716912 | 0.145631 | 0 | 0 | 1 | 0 | 0.171756 | 0.087786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a7c4a1c25868747c66afae3d12fac715e60186c9 | 123 | py | Python | dork/__init__.py | msudenvercs/Dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 1 | 2021-04-04T20:40:18.000Z | 2021-04-04T20:40:18.000Z | dork/__init__.py | msudenvercs/Dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 2 | 2019-06-06T21:48:33.000Z | 2021-04-04T20:41:19.000Z | dork/__init__.py | zenostrash/dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 4 | 2019-05-29T04:56:28.000Z | 2019-05-30T18:17:55.000Z | # -*- coding: utf-8 -*-
"""Dork Game main module.
"""
__version__ = '0.1.0'
__author__ = ", ".join([
"Luke Smith",
])
| 13.666667 | 25 | 0.528455 | 15 | 123 | 3.8 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.203252 | 123 | 8 | 26 | 15.375 | 0.540816 | 0.365854 | 0 | 0 | 0 | 0 | 0.239437 | 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 |
a7cc3206c80980049aa0888c0312676b284faf4a | 167 | py | Python | src/Memories/Scenes/Level/Genero/Igualdade De Genero/Sprites/terrain/ground_sprites/resize (1).py | Rafael-Cabral/Jogo-Web | 2d3a8405f37e9a290dd3faed2db1ea83328372dc | [
"CC-BY-4.0"
] | 1 | 2022-02-17T09:19:55.000Z | 2022-02-17T09:19:55.000Z | src/Memories/Scenes/Level/Genero/Igualdade De Genero/Sprites/terrain/ground_sprites/resize (1).py | Rafael-Cabral/Jogo-Web | 2d3a8405f37e9a290dd3faed2db1ea83328372dc | [
"CC-BY-4.0"
] | 1 | 2022-02-21T12:22:51.000Z | 2022-02-21T12:22:51.000Z | src/Scenes/Level/Genero/Igualdade De Genero/Sprites/terrain/ground_sprites/resize (1).py | 2022M1T1/Projeto2 | f630ce407c71d82265a7fd5069a779b8d1d42972 | [
"CC-BY-4.0"
] | null | null | null | from PIL import Image
filename = "1"
ext = ".png"
new_res = (16,16)
image = Image.open(filename+ext)
image_r = image.resize(new_res)
image_r.save(filename+'_2'+ext)
| 16.7 | 32 | 0.706587 | 29 | 167 | 3.896552 | 0.551724 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041379 | 0.131737 | 167 | 9 | 33 | 18.555556 | 0.737931 | 0 | 0 | 0 | 0 | 0 | 0.041916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a7cdf431f8876212eaac8f252e414f2597fff319 | 5,132 | py | Python | sidekick-experimental/sidekick/experimental/magics/list_magic.py | fabiommendes/sidekick | 993ae7b8496347ad9720d3ff11e10ab946c3a800 | [
"MIT"
] | 32 | 2017-08-10T09:42:51.000Z | 2022-03-18T17:21:26.000Z | sidekick-experimental/sidekick/experimental/magics/list_magic.py | fabiommendes/sidekick | 993ae7b8496347ad9720d3ff11e10ab946c3a800 | [
"MIT"
] | 1 | 2019-04-10T13:07:45.000Z | 2019-04-18T02:27:47.000Z | sidekick-experimental/sidekick/experimental/magics/list_magic.py | fabiommendes/sidekick | 993ae7b8496347ad9720d3ff11e10ab946c3a800 | [
"MIT"
] | 5 | 2017-10-10T13:43:23.000Z | 2019-06-18T00:09:15.000Z | import sys
from itertools import islice
from .base_magics import DataMagic
from .. import seq
from ..functions import fn, to_callable
from ..typing import Seq
class L(DataMagic, type=list):
"""
Class for the L magic object.
"""
def __getitem__(self, item):
if isinstance(item, slice):
... | 27.44385 | 80 | 0.571707 | 641 | 5,132 | 4.531981 | 0.215289 | 0.08778 | 0.055766 | 0.04957 | 0.10327 | 0.037177 | 0.019966 | 0.019966 | 0.019966 | 0 | 0 | 0.000866 | 0.325214 | 5,132 | 186 | 81 | 27.591398 | 0.838002 | 0.226617 | 0 | 0.308943 | 0 | 0 | 0.010274 | 0.005532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203252 | false | 0.00813 | 0.04878 | 0.00813 | 0.520325 | 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 |
a7cfce8190289fc967b0062f786579489c6c0da4 | 74 | py | Python | gunicorn.conf.py | minhoryang/ChatBullet | 6424e0aa8ac7bbe3a5b9602d4390c2c639c25f71 | [
"MIT"
] | null | null | null | gunicorn.conf.py | minhoryang/ChatBullet | 6424e0aa8ac7bbe3a5b9602d4390c2c639c25f71 | [
"MIT"
] | 16 | 2016-03-28T02:24:36.000Z | 2016-03-29T14:48:34.000Z | gunicorn.conf.py | minhoryang/ChatBullet | 6424e0aa8ac7bbe3a5b9602d4390c2c639c25f71 | [
"MIT"
] | null | null | null | bind = "0.0.0.0:5000"
workers = 1
worker_class = "eventlet"
reload = True
| 14.8 | 25 | 0.675676 | 13 | 74 | 3.769231 | 0.769231 | 0.122449 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 0.162162 | 74 | 4 | 26 | 18.5 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0.27027 | 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 |
ac045c29809f6885f1f637b67a4d91c9a29e99fa | 1,321 | py | Python | tests/test_articles.py | josphat-otieno/news-app | e6ff307230bd2cab787489fca4850004cd9bdbd0 | [
"MIT"
] | null | null | null | tests/test_articles.py | josphat-otieno/news-app | e6ff307230bd2cab787489fca4850004cd9bdbd0 | [
"MIT"
] | null | null | null | tests/test_articles.py | josphat-otieno/news-app | e6ff307230bd2cab787489fca4850004cd9bdbd0 | [
"MIT"
] | 1 | 2022-02-28T22:33:33.000Z | 2022-02-28T22:33:33.000Z |
import unittest
from app.models import Articles
class ArticlesTest(unittest.TestCase):
def setUp(self):
'''
test case to run before each test
'''
self.news_articles=Articles("jose", "Black Barbecue Gets Its Due in an Inspiring New Cookbook", "Joe Ray", "The first book from renowne... | 45.551724 | 291 | 0.696442 | 171 | 1,321 | 5.315789 | 0.415205 | 0.079208 | 0.158416 | 0.177118 | 0.628163 | 0.354235 | 0.19802 | 0.19802 | 0.19802 | 0.19802 | 0 | 0.03871 | 0.178653 | 1,321 | 28 | 292 | 47.178571 | 0.799078 | 0.06813 | 0 | 0 | 0 | 0 | 0.385461 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ac14f0b6c781b5b60d529cd1713a9cb9f77eb9cc | 4,144 | py | Python | production_system/models.py | rameshgopalakrishnan/v_excel_inventory | 5e7e8cfeb5b0217d7029feb917f84614aa384601 | [
"Apache-2.0"
] | null | null | null | production_system/models.py | rameshgopalakrishnan/v_excel_inventory | 5e7e8cfeb5b0217d7029feb917f84614aa384601 | [
"Apache-2.0"
] | null | null | null | production_system/models.py | rameshgopalakrishnan/v_excel_inventory | 5e7e8cfeb5b0217d7029feb917f84614aa384601 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from people.models import Customer, InternalUser
from service_and_process.models import MasterService, MasterProduct, MasterProcess
class Order(models.Model):
amount = models.DecimalField(max_digits=7, decimal_places=2)
customer_id = models.ForeignKey(Customer)
expected_time... | 32.375 | 89 | 0.696429 | 453 | 4,144 | 6.174393 | 0.240618 | 0.102967 | 0.110118 | 0.062925 | 0.415088 | 0.371469 | 0.371469 | 0.335002 | 0.184483 | 0.184483 | 0 | 0.002932 | 0.176882 | 4,144 | 127 | 90 | 32.629921 | 0.817062 | 0.066361 | 0 | 0.39759 | 0 | 0 | 0.034375 | 0.005729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120482 | false | 0 | 0.036145 | 0.120482 | 0.963855 | 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 |
ac1651b3b494ed4138e26bda96a1a7764eec8eaf | 1,979 | py | Python | query.py | weakit/GCI-WHOIS | 49d4cf8aad659f93eeb62be6616b2cfa0f6aa12d | [
"MIT"
] | null | null | null | query.py | weakit/GCI-WHOIS | 49d4cf8aad659f93eeb62be6616b2cfa0f6aa12d | [
"MIT"
] | null | null | null | query.py | weakit/GCI-WHOIS | 49d4cf8aad659f93eeb62be6616b2cfa0f6aa12d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import requests as r
from bs4 import BeautifulSoup
from urllib import parse
from random import choice
UAs = [ # user agents
'Mozilla Firefox Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0',
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/201001... | 44.977273 | 152 | 0.680647 | 339 | 1,979 | 3.929204 | 0.359882 | 0.045045 | 0.074324 | 0.072072 | 0.415916 | 0.415916 | 0.400901 | 0.32958 | 0.29955 | 0.149399 | 0 | 0.170277 | 0.160182 | 1,979 | 43 | 153 | 46.023256 | 0.631167 | 0.016675 | 0 | 0 | 0 | 0.333333 | 0.645062 | 0.014403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.212121 | 0.060606 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ac17a37c56a29369893bcebce2312f2fb7b3c3ab | 1,609 | py | Python | Python/torsion_angle.py | sockduct/Hackerrank | 3f73370fe5e477701e1bb30b116a77b4a2efc888 | [
"MIT"
] | null | null | null | Python/torsion_angle.py | sockduct/Hackerrank | 3f73370fe5e477701e1bb30b116a77b4a2efc888 | [
"MIT"
] | null | null | null | Python/torsion_angle.py | sockduct/Hackerrank | 3f73370fe5e477701e1bb30b116a77b4a2efc888 | [
"MIT"
] | null | null | null | import math
class PointIterator:
def __init__(self, point):
self._point = point
self._index = 0
def __next__(self):
if self._index < 3:
if self._index == 0:
res = self._point.x
elif self._index == 1:
res = self._point.y
... | 23.318841 | 76 | 0.501554 | 235 | 1,609 | 3.221277 | 0.246809 | 0.05284 | 0.047556 | 0.023778 | 0.113606 | 0.084544 | 0.055482 | 0 | 0 | 0 | 0 | 0.014151 | 0.341206 | 1,609 | 68 | 77 | 23.661765 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.061529 | 0.015538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.020408 | 0.142857 | 0.44898 | 0.020408 | 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 |
ac58d747bdefce060e170c86c21b7d9d2b487f46 | 601 | py | Python | python/testData/inspections/PyTypeCheckerInspection/CallByClass.py | Tasemo/intellij-community | 50aeaf729b7073e91c7c77487a1f155e0dfe3fcd | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/CallByClass.py | Tasemo/intellij-community | 50aeaf729b7073e91c7c77487a1f155e0dfe3fcd | [
"Apache-2.0"
] | null | null | null | python/testData/inspections/PyTypeCheckerInspection/CallByClass.py | Tasemo/intellij-community | 50aeaf729b7073e91c7c77487a1f155e0dfe3fcd | [
"Apache-2.0"
] | null | null | null | class Z:
def method(self):
pass
class A:
def method(self):
Z.method(<warning descr="Expected type 'Z', got 'A' instead">self</warning>) # passing wrong instance
Z.method(<warning descr="Expected type 'Z', got 'Type[Z]' instead">Z</warning>) # passing class instead of instance
... | 31.631579 | 139 | 0.62396 | 86 | 601 | 4.22093 | 0.232558 | 0.077135 | 0.115702 | 0.157025 | 0.53168 | 0.53168 | 0.355372 | 0.355372 | 0.258953 | 0.258953 | 0 | 0 | 0.231281 | 601 | 19 | 140 | 31.631579 | 0.785714 | 0.191348 | 0 | 0.4 | 0 | 0 | 0.237006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.133333 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ac5f47926a272f251132ca9214bcc79734cd9a9a | 191 | py | Python | Arrays/1426. Counting Elements.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | 1 | 2021-06-30T17:51:56.000Z | 2021-06-30T17:51:56.000Z | Arrays/1426. Counting Elements.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | null | null | null | Arrays/1426. Counting Elements.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | null | null | null | class Solution:
def countElements(self, nums: List[int]) -> int:
nums.sort()
k=0
for i in nums:
if i+1 in nums:
k=k+1
return k
| 21.222222 | 52 | 0.455497 | 27 | 191 | 3.222222 | 0.62963 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.445026 | 191 | 8 | 53 | 23.875 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ac684d2f8e3415f8485ed13b9527e4601d9765ca | 386 | py | Python | generatePDFList.py | RobRoseKnows/clinton-email-cruncher | 44a477e6d1094162478561571b282155ac4f7d2a | [
"MIT"
] | null | null | null | generatePDFList.py | RobRoseKnows/clinton-email-cruncher | 44a477e6d1094162478561571b282155ac4f7d2a | [
"MIT"
] | null | null | null | generatePDFList.py | RobRoseKnows/clinton-email-cruncher | 44a477e6d1094162478561571b282155ac4f7d2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
generatePDFList.py
1. Get list of links from database
2. Write out file for wget to use
"""
from __future__ import print_function, division
from hrcemail_common import *
pdf_base = "https://foia.state.gov/searchapp/"
with open('pdflist.txt', 'w') as list_file:
for doc i... | 20.315789 | 47 | 0.73057 | 62 | 386 | 4.387097 | 0.806452 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.137306 | 386 | 18 | 48 | 21.444444 | 0.807808 | 0.323834 | 0 | 0 | 1 | 0 | 0.186508 | 0 | 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 | 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 |
ac6ba172c026521382fad5c074ec45a0ab503861 | 93 | py | Python | python-3/beginner/1759.py | MisaelAugusto/uri | 22bee72edf44f939d7a290383336b4d061faecbb | [
"MIT"
] | null | null | null | python-3/beginner/1759.py | MisaelAugusto/uri | 22bee72edf44f939d7a290383336b4d061faecbb | [
"MIT"
] | null | null | null | python-3/beginner/1759.py | MisaelAugusto/uri | 22bee72edf44f939d7a290383336b4d061faecbb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
N = int(input())
answer = " ".join(["Ho"] * N) + "!"
print(answer) | 13.285714 | 35 | 0.462366 | 12 | 93 | 3.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.204301 | 93 | 7 | 36 | 13.285714 | 0.567568 | 0.225806 | 0 | 0 | 0 | 0 | 0.056338 | 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 |
ac7091ea64775cea58f66c668d7db53a3ba2412e | 1,845 | py | Python | notes/algo-ds-practice/problems/graph/stable_marriage.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 6 | 2020-07-05T05:15:19.000Z | 2021-01-24T20:17:14.000Z | notes/algo-ds-practice/problems/graph/stable_marriage.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | null | null | null | notes/algo-ds-practice/problems/graph/stable_marriage.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 2 | 2020-09-14T06:46:37.000Z | 2021-06-15T09:17:21.000Z | '''
The Stable Marriage Problem states that given N men and N women, where each person has ranked all members of the opposite sex in order of preference, marry the men and women together such that there are no two people of opposite sex who would both rather have each other than their current partners.
If there are no ... | 47.307692 | 299 | 0.732249 | 338 | 1,845 | 3.997041 | 0.387574 | 0.014804 | 0.020725 | 0.053294 | 0.189489 | 0.189489 | 0.189489 | 0.15396 | 0 | 0 | 0 | 0.018815 | 0.222222 | 1,845 | 38 | 300 | 48.552632 | 0.922648 | 0.99458 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ac76f30e97497ea605c18477c2658d792b5dd1d6 | 144 | py | Python | Practice/MATDYS.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/MATDYS.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/MATDYS.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
n,k=map(int,input().split())
a=bin(k)[2:]
a=str(a)
a=a.zfill(n)
a=a[::-1]
print(int(a,2))
| 18 | 32 | 0.479167 | 29 | 144 | 2.344828 | 0.551724 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.236111 | 144 | 7 | 33 | 20.571429 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ac83cc1ba7becbfdff3350c213bd2c0b8e7e5e57 | 2,428 | py | Python | iktomi/forms/perms.py | boltnev/iktomi | bc92006c026f9b42e56f1af5ced2fe577673a486 | [
"MIT"
] | 14 | 2015-02-15T05:24:22.000Z | 2020-03-19T10:07:28.000Z | iktomi/forms/perms.py | boltnev/iktomi | bc92006c026f9b42e56f1af5ced2fe577673a486 | [
"MIT"
] | 10 | 2015-04-04T10:10:41.000Z | 2016-06-01T13:17:58.000Z | iktomi/forms/perms.py | boltnev/iktomi | bc92006c026f9b42e56f1af5ced2fe577673a486 | [
"MIT"
] | 5 | 2015-02-20T11:18:58.000Z | 2016-10-18T15:30:13.000Z | # -*- coding: utf-8 -*-
'''
This module contains basic form access control classes.
You can set permissions to form and fields like this::
class SampleForm(form.Form):
permissions = 'rwcx'
fields=[fields.Field('input',
permissions='rw')]
or define your own permission log... | 27.590909 | 78 | 0.589786 | 264 | 2,428 | 5.314394 | 0.397727 | 0.032074 | 0.037063 | 0.032787 | 0.085531 | 0.085531 | 0.085531 | 0.085531 | 0.085531 | 0.085531 | 0 | 0.000592 | 0.304778 | 2,428 | 87 | 79 | 27.908046 | 0.830569 | 0.66598 | 0 | 0.125 | 0 | 0 | 0.013867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3bb161d9b6e087ae3fefe00e04ef62cfb972f444 | 4,155 | py | Python | dfs/nba/predict.py | jgershen/sportsball | 8aa2a599091fb14d1897f2e4b77384e9ee6b0eed | [
"MIT"
] | 21 | 2016-03-12T00:59:04.000Z | 2022-03-01T21:32:51.000Z | dfs/nba/predict.py | jgershen/sportsball | 8aa2a599091fb14d1897f2e4b77384e9ee6b0eed | [
"MIT"
] | 1 | 2017-04-17T04:39:46.000Z | 2017-04-17T04:39:46.000Z | dfs/nba/predict.py | jgershen/sportsball | 8aa2a599091fb14d1897f2e4b77384e9ee6b0eed | [
"MIT"
] | 4 | 2016-07-25T11:55:52.000Z | 2019-06-19T20:55:53.000Z | """
Predict player values (using a pre-built model) for a game.
This should support games which have not yet taken place, as well as past games.
"""
import pandas as pd, numpy as np
from dfs.extdata.bbr.gamelogs import load_all_game_data
from dfs.nba.featurizers import salary_fzr
from dfs.nba.playerid import get_positi... | 53.961039 | 156 | 0.712395 | 623 | 4,155 | 4.560193 | 0.303371 | 0.04787 | 0.01408 | 0.019007 | 0.295671 | 0.2654 | 0.2654 | 0.244984 | 0.244984 | 0.244984 | 0 | 0.003525 | 0.180746 | 4,155 | 77 | 157 | 53.961039 | 0.831081 | 0.092659 | 0 | 0.042553 | 0 | 0 | 0.139365 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 0 | null | null | 0 | 0.148936 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3bb1b0107ecb791d7d0ade2321ce0986e26c1350 | 526 | py | Python | aoc2019/solutions/day24.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | aoc2019/solutions/day24.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | aoc2019/solutions/day24.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | from aoc2019.shared.solution import Solution
from aoc2019.helpers.day24 import getFirstLayoutToAppearTwice, calculateBiodiversityRating, countBugsAfterMinutes
class Day24(Solution):
def part1(self):
startingLayout = '#..../#...#/##.##/....#/#.##.'
repeatedLayout = getFirstLayoutToAppearTwice(starti... | 40.461538 | 113 | 0.68251 | 35 | 526 | 10.257143 | 0.542857 | 0.061281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038117 | 0.152091 | 526 | 12 | 114 | 43.833333 | 0.766816 | 0 | 0 | 0 | 0 | 0 | 0.110266 | 0.110266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3bbb7d1647d1df60efd9753d84363cfb95cdc5cb | 718 | py | Python | product/views.py | MartinMwiti/crm | 2f775b25e293da410dc3a37d0e03d838df1144ac | [
"MIT"
] | null | null | null | product/views.py | MartinMwiti/crm | 2f775b25e293da410dc3a37d0e03d838df1144ac | [
"MIT"
] | null | null | null | product/views.py | MartinMwiti/crm | 2f775b25e293da410dc3a37d0e03d838df1144ac | [
"MIT"
] | null | null | null | from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView
from rest_framework import permissions
from .models import Product
from .serializers import ProductSerializer
# Products
class ProductListCreateView(ListCreateAPIView):
"""
ListCreateAPIView executes both 'GET' and 'POST' req... | 32.636364 | 115 | 0.772981 | 65 | 718 | 8.476923 | 0.569231 | 0.029038 | 0.061706 | 0.145191 | 0.206897 | 0.206897 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0.150418 | 718 | 21 | 116 | 34.190476 | 0.903279 | 0.284123 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3bbdc85fe3c65920fec6f9278e1a60c19a306f5c | 526 | py | Python | prebuild.py | trombik/TRB_MCP23017 | 187a9be9526b30860d08d58f6d1c7a78fbd6612e | [
"ISC"
] | 1 | 2019-03-29T08:46:37.000Z | 2019-03-29T08:46:37.000Z | prebuild.py | trombik/TRB_MCP23017 | 187a9be9526b30860d08d58f6d1c7a78fbd6612e | [
"ISC"
] | 1 | 2018-08-12T10:56:32.000Z | 2018-08-12T10:56:32.000Z | prebuild.py | trombik/TRB_MCP23017 | 187a9be9526b30860d08d58f6d1c7a78fbd6612e | [
"ISC"
] | null | null | null | Import("env")
src_filter = ["+<TRB_MCP23017.h>"]
env.Replace(SRC_FILTER=src_filter)
build_flags = env.ParseFlags(env['BUILD_FLAGS'])
cppdefines = build_flags.get("CPPDEFINES")
if "TRB_MCP23017_ESP_IDF" in cppdefines:
env.Append(SRC_FILTER=["+<TRB_MCP23017.c>", "+<sys/esp_idf>"])
if "TRB_MCP23017_ARDUINO_WIRE" in ... | 37.571429 | 73 | 0.73384 | 76 | 526 | 4.75 | 0.315789 | 0.213296 | 0.132964 | 0.221607 | 0.412742 | 0.412742 | 0.412742 | 0.412742 | 0.299169 | 0.299169 | 0 | 0.072464 | 0.081749 | 526 | 13 | 74 | 40.461538 | 0.674948 | 0 | 0 | 0 | 0 | 0 | 0.414449 | 0.095057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
3bc854c9ef9864ff78d28378f8d7b4e8c9998066 | 1,320 | py | Python | examples/simpleExample2.py | CharlesHahn/DL-PeptideBuilder | 098c873a2e428f9a48b1bee2e1a21dd92806d119 | [
"MIT"
] | 1 | 2021-12-24T14:35:24.000Z | 2021-12-24T14:35:24.000Z | examples/simpleExample2.py | CharlesHahn/DL-PeptideBuilder | 098c873a2e428f9a48b1bee2e1a21dd92806d119 | [
"MIT"
] | null | null | null | examples/simpleExample2.py | CharlesHahn/DL-PeptideBuilder | 098c873a2e428f9a48b1bee2e1a21dd92806d119 | [
"MIT"
] | 1 | 2021-12-20T13:48:02.000Z | 2021-12-20T13:48:02.000Z | """
A simple example script demonstrating how to build peptide by PeptideConstructor in primitive way.
The script generates a peptide of "AKlsDe" in self-defined conformation, and it stores the peptide under the name "simple_example.pdb".
"""
import Bio.PDB
from PeptideConstructor import Geometry
from PeptideConstruc... | 32.195122 | 135 | 0.783333 | 186 | 1,320 | 5.5 | 0.467742 | 0.064516 | 0.111437 | 0.16129 | 0.250244 | 0.215054 | 0.215054 | 0.215054 | 0 | 0 | 0 | 0.004325 | 0.124242 | 1,320 | 40 | 136 | 33 | 0.880623 | 0.447727 | 0 | 0.238095 | 1 | 0 | 0.032486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
3bcbf1e640630cd6e9b54f186a1063d914d91db3 | 258 | py | Python | temp_report/get_name.py | QmFzZTY0/Tool_Project | 3b9e718ab6416e3606d00716a744dc44dd7a8257 | [
"MIT"
] | 1 | 2019-04-29T23:24:44.000Z | 2019-04-29T23:24:44.000Z | temp_report/get_name.py | overflow65537/Tool_Project | 3b9e718ab6416e3606d00716a744dc44dd7a8257 | [
"MIT"
] | null | null | null | temp_report/get_name.py | overflow65537/Tool_Project | 3b9e718ab6416e3606d00716a744dc44dd7a8257 | [
"MIT"
] | null | null | null | #!/usr/local/python3.7
# -*- coding:utf8 -*-
from datetime import datetime, date, timedelta
def get_name(inf = 0):
day = (date.today() + timedelta(days = inf)).strftime("%Y-%m-%d")
name = '/home/pi/code/temp_report/log/'+day+'.log'
return name
| 25.8 | 69 | 0.631783 | 38 | 258 | 4.236842 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0.158915 | 258 | 9 | 70 | 28.666667 | 0.723502 | 0.158915 | 0 | 0 | 0 | 0 | 0.195349 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3bd294a9951bdfbef3aa373a1ca63b4edb27c886 | 287 | py | Python | client_site/urls.py | sargentfrancesca/coming-up-roses | fa90400cfc0535a8d102cbd0c3c15da858557a2d | [
"MIT"
] | null | null | null | client_site/urls.py | sargentfrancesca/coming-up-roses | fa90400cfc0535a8d102cbd0c3c15da858557a2d | [
"MIT"
] | null | null | null | client_site/urls.py | sargentfrancesca/coming-up-roses | fa90400cfc0535a8d102cbd0c3c15da858557a2d | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from client_site import views
urlpatterns = patterns('',
url(r"^about/", views.AboutView.as_view(), name="about"),
)
from django.conf.urls.static import static
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| 26.090909 | 78 | 0.773519 | 40 | 287 | 5.425 | 0.525 | 0.092166 | 0.129032 | 0.165899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101045 | 287 | 10 | 79 | 28.7 | 0.841085 | 0 | 0 | 0 | 0 | 0 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3be173d831829a4403ae1115dae092307301692e | 469 | py | Python | scripts/cros_env_whitelist.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | scripts/cros_env_whitelist.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | 2 | 2021-03-26T00:29:32.000Z | 2021-04-30T21:29:33.000Z | scripts/cros_env_whitelist.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Print the environment whitelist."""
from __future__ import print_function
import sys
from chromite.lib import constants
... | 23.45 | 72 | 0.73774 | 70 | 469 | 4.814286 | 0.785714 | 0.118694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022843 | 0.159915 | 469 | 19 | 73 | 24.684211 | 0.832487 | 0.464819 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0.333333 | 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 |
3beecb3992578c73cb6fd5ee9c0b1a7039c07b37 | 1,308 | py | Python | tipfy/local.py | pombreda/tipfy | 900e5a31a5d24107efa8dfacd89fd69d207cf470 | [
"BSD-3-Clause"
] | 23 | 2015-02-15T22:35:04.000Z | 2021-11-17T11:39:24.000Z | permit/lib/dist/tipfy/local.py | stanlee321/pysolper | 5fa7a5424281ddac2957821b6e1cdc42a0931387 | [
"Apache-2.0"
] | null | null | null | permit/lib/dist/tipfy/local.py | stanlee321/pysolper | 5fa7a5424281ddac2957821b6e1cdc42a0931387 | [
"Apache-2.0"
] | 3 | 2016-03-21T15:57:28.000Z | 2020-11-26T02:26:19.000Z | # -*- coding: utf-8 -*-
"""
tipfy.local
~~~~~~~~~~~
Context-local utilities.
:copyright: 2011 by tipfy.org.
:license: BSD, see LICENSE.txt for more details.
"""
import werkzeug.local
#: Context-local.
local = werkzeug.local.Local()
def get_app():
"""Returns the current WSGI app instance.
... | 27.829787 | 78 | 0.698012 | 185 | 1,308 | 4.891892 | 0.454054 | 0.055249 | 0.075138 | 0.055249 | 0.083978 | 0.083978 | 0.083978 | 0 | 0 | 0 | 0 | 0.004757 | 0.196483 | 1,308 | 46 | 79 | 28.434783 | 0.856327 | 0.764526 | 0 | 0 | 0 | 0 | 0.077253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3befc33bb9ba55eec91fb86335fb9cf80cee36db | 16,488 | py | Python | Young_Massive_Stars/Code_v32_bar/plots/Plot_Surfaces.py | lhquirogan/Galactic_Maser_Simulator | cb74afd40b6d99429219c44114c74e150d3f5189 | [
"MIT"
] | null | null | null | Young_Massive_Stars/Code_v32_bar/plots/Plot_Surfaces.py | lhquirogan/Galactic_Maser_Simulator | cb74afd40b6d99429219c44114c74e150d3f5189 | [
"MIT"
] | null | null | null | Young_Massive_Stars/Code_v32_bar/plots/Plot_Surfaces.py | lhquirogan/Galactic_Maser_Simulator | cb74afd40b6d99429219c44114c74e150d3f5189 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Arecibo:
Sources that satisfy Arecibo limits= 76 (Observations)
Index factor of the observed flux density function -0.471161157475 (Observation)
################################################################################
MMB:
Sources that satisfy MMB limits= 927 (Observations)
Index fac... | 43.619048 | 197 | 0.651868 | 2,757 | 16,488 | 3.747552 | 0.113529 | 0.014712 | 0.026132 | 0.027875 | 0.682056 | 0.662989 | 0.641599 | 0.635501 | 0.616822 | 0.610724 | 0 | 0.049167 | 0.082242 | 16,488 | 377 | 198 | 43.734748 | 0.633624 | 0.156659 | 0 | 0.511029 | 0 | 0.007353 | 0.130401 | 0.023751 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051471 | null | null | 0.007353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
3bfeed28588a47cb43fd6eaa101c7462945b7517 | 2,510 | py | Python | webhawk/rest/__init__.py | dtsolis/webhawk | 11c7bb4e42a9fe4f8ba43f5642cb9b5ad137cff9 | [
"Apache-2.0"
] | 4 | 2019-02-26T07:10:19.000Z | 2021-07-11T11:40:58.000Z | webhawk/rest/__init__.py | dtsolis/webhawk | 11c7bb4e42a9fe4f8ba43f5642cb9b5ad137cff9 | [
"Apache-2.0"
] | 10 | 2019-10-12T11:25:22.000Z | 2019-10-22T13:01:20.000Z | webhawk/rest/__init__.py | dtsolis/webhawk | 11c7bb4e42a9fe4f8ba43f5642cb9b5ad137cff9 | [
"Apache-2.0"
] | 2 | 2019-02-06T08:33:32.000Z | 2019-02-25T20:07:08.000Z | import logging.config
from flask import Blueprint
from flask_restful import Api
from repositories.recipe_repository import FileRecipeRepository
from rest.api_errors import ApiErrorRegistry
from rest.bitbucket_webhook import BitBucketWebHook
from rest.github_webhook import GithubWebHook
from rest.gitlab_webhook import... | 34.383562 | 80 | 0.788048 | 311 | 2,510 | 6.102894 | 0.321543 | 0.103267 | 0.036881 | 0.05058 | 0.144362 | 0.116965 | 0.116965 | 0.116965 | 0 | 0 | 0 | 0.004174 | 0.141036 | 2,510 | 72 | 81 | 34.861111 | 0.87616 | 0.126693 | 0 | 0 | 0 | 0 | 0.10463 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.022727 | false | 0 | 0.363636 | 0 | 0.386364 | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ce0fde7a64e86562c33723d13e9ec15e40977e85 | 552 | py | Python | sutils/applications/cancel/cancel.py | t-mertz/slurm_utils | 6fc9709f62e2bca1387ea9c7a5975f0f0be5d0dd | [
"MIT"
] | null | null | null | sutils/applications/cancel/cancel.py | t-mertz/slurm_utils | 6fc9709f62e2bca1387ea9c7a5975f0f0be5d0dd | [
"MIT"
] | null | null | null | sutils/applications/cancel/cancel.py | t-mertz/slurm_utils | 6fc9709f62e2bca1387ea9c7a5975f0f0be5d0dd | [
"MIT"
] | null | null | null | import sys
from . import core
def run(options):
if options['all']:
run_all(force=options['force'])
elif options['last'] is not None:
run_last(options['last'], force=options['force'])
elif options['first'] is not None:
run_first(options['first'], force=options['force'])
else:
... | 25.090909 | 59 | 0.653986 | 83 | 552 | 4.240964 | 0.301205 | 0.068182 | 0.144886 | 0.170455 | 0.278409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002252 | 0.195652 | 552 | 21 | 60 | 26.285714 | 0.790541 | 0.025362 | 0 | 0 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.352941 | 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 |
ce13dc2b13105a8eb6b1919c3fc5855d6a9f9ddf | 1,803 | py | Python | tests/wrappers/webservices/test_message.py | icryrainix/odil | 7fbcf7bb00af159c2e500bd0c3da1519a4806fb4 | [
"CECILL-B"
] | null | null | null | tests/wrappers/webservices/test_message.py | icryrainix/odil | 7fbcf7bb00af159c2e500bd0c3da1519a4806fb4 | [
"CECILL-B"
] | null | null | null | tests/wrappers/webservices/test_message.py | icryrainix/odil | 7fbcf7bb00af159c2e500bd0c3da1519a4806fb4 | [
"CECILL-B"
] | 1 | 2020-12-08T03:08:11.000Z | 2020-12-08T03:08:11.000Z | import unittest
import odil
class TestMessage(unittest.TestCase):
def test_default_constructor(self):
message = odil.webservices.Message()
self.assertEqual(dict(message.get_headers()), {})
self.assertEqual(message.get_body(), "")
def test_full_constructor(self):
message = odil... | 36.06 | 79 | 0.633943 | 205 | 1,803 | 5.385366 | 0.195122 | 0.09058 | 0.108696 | 0.188406 | 0.71558 | 0.663043 | 0.45471 | 0.34692 | 0.270833 | 0.270833 | 0 | 0 | 0.200222 | 1,803 | 49 | 80 | 36.795918 | 0.765603 | 0 | 0 | 0.333333 | 0 | 0 | 0.081531 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.205128 | false | 0 | 0.051282 | 0 | 0.282051 | 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 |
ce14a99ea606b16a399b613b4b9917054f0e5593 | 564 | py | Python | whattowatch/core/admin.py | svhenrique/What-To-Watch-backend | 3bab4ad825e13eead9dae23d68b5f91cd6133720 | [
"MIT"
] | null | null | null | whattowatch/core/admin.py | svhenrique/What-To-Watch-backend | 3bab4ad825e13eead9dae23d68b5f91cd6133720 | [
"MIT"
] | 5 | 2022-02-15T04:29:33.000Z | 2022-03-25T03:09:23.000Z | whattowatch/core/admin.py | svhenrique/What-To-Watch-backend | 3bab4ad825e13eead9dae23d68b5f91cd6133720 | [
"MIT"
] | null | null | null |
from django.contrib import admin
from core.models import WatchableContent, Episode, HighlightedArea
@admin.register(Episode)
class EpisodeAdmin(admin.ModelAdmin):
list_display = ['active', 'id', 'created_at', 'updated_at', 'episode', 'season', 'content']
@admin.register(WatchableContent)
class HighlightedAreaA... | 33.176471 | 95 | 0.75 | 61 | 564 | 6.786885 | 0.409836 | 0.094203 | 0.137681 | 0.188406 | 0.497585 | 0.497585 | 0.497585 | 0.497585 | 0.497585 | 0.497585 | 0 | 0 | 0.102837 | 564 | 17 | 96 | 33.176471 | 0.818182 | 0 | 0 | 0.181818 | 0 | 0 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.727273 | 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 |
ce172439333b80f63aef521c4135c8ba95649975 | 592 | py | Python | GameFiles/Floor.py | cgallimore97/Project-Run | b13bdade19c0b5abdd5d717a7a7b14c441dd017d | [
"MIT"
] | null | null | null | GameFiles/Floor.py | cgallimore97/Project-Run | b13bdade19c0b5abdd5d717a7a7b14c441dd017d | [
"MIT"
] | null | null | null | GameFiles/Floor.py | cgallimore97/Project-Run | b13bdade19c0b5abdd5d717a7a7b14c441dd017d | [
"MIT"
] | null | null | null | import pygame
class Floor(pygame.sprite.Sprite):
"""Represents a solid surface that the Player sprite cannot fall through."""
def __init__(self, screen_width, screen_height):
super().__init__()
self.surface = pygame.Surface((screen_width, 10))
self.rect = self.surface.get_rect(center = ... | 32.888889 | 90 | 0.636824 | 76 | 592 | 4.776316 | 0.486842 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022272 | 0.241554 | 592 | 18 | 91 | 32.888889 | 0.786192 | 0.172297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.083333 | 0 | 0.416667 | 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 |
ce19877c590656ef1be75b20357a03168ef473b2 | 7,253 | py | Python | resultAnalysis/analysis/result_analysis.py | ShrirangPatil/ResultAnalysis | 6fc5faa9314b42aa374c8eab7347f47988a3ce5d | [
"MIT"
] | 3 | 2019-04-25T16:23:58.000Z | 2019-06-15T17:38:10.000Z | resultAnalysis/analysis/result_analysis.py | ShrirangPatil/ResultAnalysis | 6fc5faa9314b42aa374c8eab7347f47988a3ce5d | [
"MIT"
] | 5 | 2020-02-12T00:08:48.000Z | 2022-02-10T08:06:09.000Z | resultAnalysis/analysis/result_analysis.py | ShrirangPatil/ResultAnalysis | 6fc5faa9314b42aa374c8eab7347f47988a3ce5d | [
"MIT"
] | null | null | null | # Improvements: read xlsx or csv , generate xlsx
# Allow to select file using Graphical interface
# Read college name, department, logo
# As a application that opens up interface
# Use MapReduce
# Generate pdf, Statistics , graph
# Input: Results of semester, ordered as
# Multiple columns representing subjec... | 39.63388 | 159 | 0.478698 | 699 | 7,253 | 4.625179 | 0.273248 | 0.029075 | 0.032478 | 0.030931 | 0.13888 | 0.092484 | 0.068048 | 0.06743 | 0.055057 | 0.055057 | 0 | 0.03438 | 0.354336 | 7,253 | 182 | 160 | 39.851648 | 0.65599 | 0.475114 | 0 | 0.116667 | 1 | 0 | 0.073079 | 0.033047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0.166667 | 0.016667 | 0 | 0.033333 | 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 |
ce1a298cbaea0f760935fcf3ce34eb273c46e78b | 2,600 | py | Python | fabric_cf/actor/core/plugins/handlers/config_token.py | fabric-testbed/ActorBase | 3c7dd040ee79fef0759e66996c93eeec57c790b2 | [
"MIT"
] | null | null | null | fabric_cf/actor/core/plugins/handlers/config_token.py | fabric-testbed/ActorBase | 3c7dd040ee79fef0759e66996c93eeec57c790b2 | [
"MIT"
] | 67 | 2020-12-21T15:39:49.000Z | 2022-02-27T17:55:00.000Z | fabric_cf/actor/core/plugins/handlers/config_token.py | fabric-testbed/ControlFramework | 95ab745e32f15c993bc7a017aa97a5a0f67f210f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2020 FABRIC Testbed
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to ... | 26.804124 | 80 | 0.655769 | 316 | 2,600 | 5.351266 | 0.452532 | 0.100532 | 0.059137 | 0.020106 | 0.049675 | 0.029568 | 0 | 0 | 0 | 0 | 0 | 0.003665 | 0.265385 | 2,600 | 97 | 81 | 26.804124 | 0.881675 | 0.539231 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.16 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ce1ed3a20a03d0b3da0a9d328966c32fb2ee850f | 3,599 | py | Python | instacommander/utils/mixins.py | msarfati/InstraCommander | 85062fb6ff98cd34b8500964f27f9f73708506a9 | [
"Apache-2.0"
] | null | null | null | instacommander/utils/mixins.py | msarfati/InstraCommander | 85062fb6ff98cd34b8500964f27f9f73708506a9 | [
"Apache-2.0"
] | null | null | null | instacommander/utils/mixins.py | msarfati/InstraCommander | 85062fb6ff98cd34b8500964f27f9f73708506a9 | [
"Apache-2.0"
] | 1 | 2016-01-29T03:44:55.000Z | 2016-01-29T03:44:55.000Z | from .. import db
import flask
class CRUDMixin(object):
"""
Convenience functions for CRUD operations.
Adapted from `flask-kit <https://github.com/semirook/flask-kit/blob/master/base/models.py>`_.
"""
__table_args__ = {'extend_existing': True}
@classmethod
def find(cls, **kwargs):
... | 27.473282 | 97 | 0.59072 | 434 | 3,599 | 4.767281 | 0.271889 | 0.039149 | 0.046399 | 0.057999 | 0.362977 | 0.319961 | 0.319961 | 0.319961 | 0.302078 | 0.241663 | 0 | 0 | 0.315088 | 3,599 | 130 | 98 | 27.684615 | 0.839351 | 0.408725 | 0 | 0.156863 | 0 | 0 | 0.037099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0 | 0.039216 | 0.058824 | 0.529412 | 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 |
ce1ef24315a7d4f0d610ac35287837236e5fa353 | 1,115 | py | Python | containercafe/common/clients/host.py | rcbops-qe/containercafe | c217af0fb84b0cf9e2e537626a46aa19c8e2e286 | [
"Apache-2.0"
] | null | null | null | containercafe/common/clients/host.py | rcbops-qe/containercafe | c217af0fb84b0cf9e2e537626a46aa19c8e2e286 | [
"Apache-2.0"
] | null | null | null | containercafe/common/clients/host.py | rcbops-qe/containercafe | c217af0fb84b0cf9e2e537626a46aa19c8e2e286 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2014 Rackspace
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, software
dist... | 30.135135 | 72 | 0.732735 | 149 | 1,115 | 5.395973 | 0.597315 | 0.074627 | 0.032338 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00884 | 0.188341 | 1,115 | 36 | 73 | 30.972222 | 0.879558 | 0.492377 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ce323760ec600bda6a65944780fb8b381815ec2b | 9,776 | py | Python | bmtk/simulator/pointnet/pyfunction_cache.py | aaberbach/bmtk | 42aa70ce2003227a32df6ce5a95420dbf4bdfbd4 | [
"BSD-3-Clause"
] | 216 | 2017-10-03T17:02:42.000Z | 2022-03-20T03:35:48.000Z | bmtk/simulator/pointnet/pyfunction_cache.py | moekay/bmtk | 6efdf6387d2a6badf276b917ee15d238daeae883 | [
"BSD-3-Clause"
] | 70 | 2017-10-05T00:50:41.000Z | 2022-03-30T18:55:01.000Z | bmtk/simulator/pointnet/pyfunction_cache.py | moekay/bmtk | 6efdf6387d2a6badf276b917ee15d238daeae883 | [
"BSD-3-Clause"
] | 97 | 2017-10-03T22:15:06.000Z | 2022-03-23T21:03:26.000Z | # Copyright 2017. Allen Institute. All rights reserved
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow... | 39.104 | 120 | 0.68617 | 1,308 | 9,776 | 4.90367 | 0.17737 | 0.029467 | 0.024322 | 0.037418 | 0.562052 | 0.490334 | 0.441222 | 0.426567 | 0.383536 | 0.354537 | 0 | 0.002131 | 0.231997 | 9,776 | 249 | 121 | 39.261044 | 0.852158 | 0.347791 | 0 | 0.414286 | 0 | 0 | 0.013953 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.25 | false | 0 | 0.014286 | 0.107143 | 0.464286 | 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 |
ce32d854137aca18671d92faa4a0e6c083d1a04e | 223 | py | Python | example/articles/models.py | Formulka/django-fperms | 88b8fa3dd87075a56d8bfeb2b9993c578c22694e | [
"MIT"
] | 3 | 2019-03-29T09:50:45.000Z | 2021-05-01T21:11:33.000Z | example/articles/models.py | Formulka/django-perms | 88b8fa3dd87075a56d8bfeb2b9993c578c22694e | [
"MIT"
] | 2 | 2018-04-12T00:54:05.000Z | 2018-04-12T16:32:42.000Z | example/articles/models.py | Formulka/django-perms | 88b8fa3dd87075a56d8bfeb2b9993c578c22694e | [
"MIT"
] | 1 | 2018-07-13T14:42:07.000Z | 2018-07-13T14:42:07.000Z | from django.db import models
class Article(models.Model):
name = models.CharField(verbose_name='name', max_length=60)
text = models.TextField(verbose_name='text')
def __str__(self):
return self.name
| 20.272727 | 63 | 0.704036 | 30 | 223 | 5 | 0.666667 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.183857 | 223 | 10 | 64 | 22.3 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
ce394b6f6da1da6b70a153ab61131386c3eb8599 | 223 | py | Python | src/7sem/binsearch.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | 2 | 2019-10-19T22:29:50.000Z | 2019-10-19T22:29:52.000Z | src/7sem/binsearch.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | null | null | null | src/7sem/binsearch.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | null | null | null | a = [
1, 2, 3, 6, 10, 14,
]
t = 10
l = 0
r = len(a) - 1
while l != r:
c = (l + r) // 2
if a[c] < t:
l = c + 1
elif a[c] > t:
r = c - 1
else:
r = l = c
print(l, r, a[l], a[r])
| 11.15 | 23 | 0.300448 | 47 | 223 | 1.425532 | 0.382979 | 0.089552 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.484305 | 223 | 19 | 24 | 11.736842 | 0.452174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ce43682f8eb45758c43dda414cd686bdab21a16d | 2,108 | py | Python | profile_collection/startup/00-startup.py | tacaswell/ipython_smi | d25432225cc0f55afd80fefb1ef3f7d0c8a3cc6c | [
"BSD-3-Clause"
] | null | null | null | profile_collection/startup/00-startup.py | tacaswell/ipython_smi | d25432225cc0f55afd80fefb1ef3f7d0c8a3cc6c | [
"BSD-3-Clause"
] | null | null | null | profile_collection/startup/00-startup.py | tacaswell/ipython_smi | d25432225cc0f55afd80fefb1ef3f7d0c8a3cc6c | [
"BSD-3-Clause"
] | null | null | null | # Make ophyd listen to pyepics.
from ophyd import setup_ophyd
setup_ophyd()
# Subscribe metadatastore to documents.
# If this is removed, data is not saved to metadatastore.
from bluesky.global_state import gs
# ###### UN-COMMENT THESE LINES TO USE MDS
# import metadatastore.commands
# gs.RE.subscribe_lossless('all',... | 32.9375 | 74 | 0.785579 | 302 | 2,108 | 5.347682 | 0.496689 | 0.047678 | 0.037152 | 0.027245 | 0.037152 | 0.037152 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140892 | 2,108 | 63 | 75 | 33.460317 | 0.891773 | 0.519924 | 0 | 0 | 0 | 0 | 0.021472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.538462 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cbefec54f280770dfba368297d14ea5338e4779d | 1,476 | py | Python | python/puzzles/encodifier/Encode.py | xanderyzwich/Playground | 3c8bbfc33383f7ac1c88c2093fbe096cc2c44c3a | [
"Apache-2.0"
] | 1 | 2021-08-19T13:40:26.000Z | 2021-08-19T13:40:26.000Z | python/puzzles/encodifier/Encode.py | xanderyzwich/Playground | 3c8bbfc33383f7ac1c88c2093fbe096cc2c44c3a | [
"Apache-2.0"
] | null | null | null | python/puzzles/encodifier/Encode.py | xanderyzwich/Playground | 3c8bbfc33383f7ac1c88c2093fbe096cc2c44c3a | [
"Apache-2.0"
] | 1 | 2021-03-31T12:37:14.000Z | 2021-03-31T12:37:14.000Z | # Adjusts numerical digits by a specified amount
class Offsetter:
# numericOffset is only altered by init
numericOffset=0
def __init__(self, offset):
self.numericOffset = int(offset)
# apply offset
def setOff(self, input_int):
return (( int(input_int) + self.numericOffset ) % 10)
# remov... | 23.428571 | 65 | 0.655827 | 204 | 1,476 | 4.578431 | 0.328431 | 0.077088 | 0.059957 | 0.057816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032714 | 0.23374 | 1,476 | 63 | 66 | 23.428571 | 0.793103 | 0.161247 | 0 | 0 | 0 | 0 | 0.008562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0 | 0.116279 | 0.488372 | 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 |
cbf5e0e594f0ee5ac7c9b2ea46f73086347854c8 | 998 | py | Python | Mac/Tools/macfreeze/macgen_rsrc.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 3 | 2022-01-30T20:08:24.000Z | 2022-02-12T08:51:12.000Z | Mac/Tools/macfreeze/macgen_rsrc.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Mac/Tools/macfreeze/macgen_rsrc.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | """macgen_info - Generate PYC resource file only"""
import EasyDialogs
import py_resource
import Res
import sys
def generate(output, module_dict, debug=0, preload=1):
fsid = py_resource.create(output)
for name, module in module_dict.items():
mtype = module.gettype()
if mtype not in ['module', 'package']:
co... | 26.263158 | 75 | 0.678357 | 134 | 998 | 4.962687 | 0.38806 | 0.06015 | 0.039098 | 0.045113 | 0.090226 | 0.090226 | 0.090226 | 0 | 0 | 0 | 0 | 0.010989 | 0.179359 | 998 | 37 | 76 | 26.972973 | 0.800977 | 0.02505 | 0 | 0.142857 | 1 | 0 | 0.123913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.107143 | 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 |
02008aa048f57d6131d43883f4407f466496a206 | 965 | py | Python | inviter2/models.py | tpeaton/django-inviter2 | 5f247325dc54c79e50ed62043446c819c0f0dd4b | [
"MIT"
] | 5 | 2016-05-08T06:15:59.000Z | 2021-04-11T21:34:12.000Z | inviter2/models.py | tpeaton/django-inviter2 | 5f247325dc54c79e50ed62043446c819c0f0dd4b | [
"MIT"
] | 13 | 2015-04-28T15:52:55.000Z | 2019-04-12T01:45:50.000Z | inviter2/models.py | tpeaton/django-inviter2 | 5f247325dc54c79e50ed62043446c819c0f0dd4b | [
"MIT"
] | 7 | 2015-06-30T13:31:37.000Z | 2021-04-11T21:34:21.000Z | from __future__ import unicode_literals
from django.db import models
import hashlib
class OptOutManager(models.Manager):
def _hash_email(self, email):
email_bytes = email.encode('utf-8')
return hashlib.sha1(email_bytes).hexdigest()
def is_blocked(self, email=None):
""" Check if a giv... | 28.382353 | 79 | 0.693264 | 133 | 965 | 4.887218 | 0.586466 | 0.041538 | 0.04 | 0.052308 | 0.067692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009186 | 0.210363 | 965 | 33 | 80 | 29.242424 | 0.843832 | 0.28601 | 0 | 0 | 0 | 0 | 0.007599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.0625 | 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 |
02020f99e018d0bd6f08c40448cd83d2f7626ee9 | 742 | py | Python | apps/event/admin.py | bmanzella/zhuartcc.org | 4c8104894dd6a9124a6181ac357a53ec5d0b1a28 | [
"MIT"
] | 8 | 2020-07-20T08:04:21.000Z | 2020-10-23T14:21:39.000Z | apps/event/admin.py | bmanzella/zhuartcc.org | 4c8104894dd6a9124a6181ac357a53ec5d0b1a28 | [
"MIT"
] | 33 | 2020-09-05T03:30:00.000Z | 2020-12-03T16:49:46.000Z | apps/event/admin.py | bmanzella/pacificcontrol.net | 4c8104894dd6a9124a6181ac357a53ec5d0b1a28 | [
"MIT"
] | 2 | 2020-09-20T00:14:46.000Z | 2020-10-23T14:20:51.000Z | from django.contrib import admin
from .models import Event, EventPosition, PositionPreset, EventPositionRequest, EventScore
@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
list_display = ('name', 'host', 'start', 'end', 'hidden')
@admin.register(EventPosition)
class EventPositionAdmin(admin.ModelAdmi... | 26.5 | 90 | 0.753369 | 74 | 742 | 7.472973 | 0.418919 | 0.117541 | 0.17179 | 0.235081 | 0.108499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110512 | 742 | 27 | 91 | 27.481481 | 0.837879 | 0 | 0 | 0 | 0 | 0 | 0.106469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.705882 | 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 |
02021476ddcaf6658f5339d72aae4eb586e9c711 | 6,523 | py | Python | starfish/test/full_pipelines/api/test_dartfish.py | vipulsinghal02/starfish | c3d347954ad40a7a4be9a50d89974f5fbbc2919d | [
"MIT"
] | null | null | null | starfish/test/full_pipelines/api/test_dartfish.py | vipulsinghal02/starfish | c3d347954ad40a7a4be9a50d89974f5fbbc2919d | [
"MIT"
] | null | null | null | starfish/test/full_pipelines/api/test_dartfish.py | vipulsinghal02/starfish | c3d347954ad40a7a4be9a50d89974f5fbbc2919d | [
"MIT"
] | null | null | null | import os
import sys
import numpy as np
import pandas as pd
import starfish
from starfish import IntensityTable
from starfish.types import Features
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(starfish.__file__)))
os.environ["USE_TEST_DATA"] = "1"
sys.path.append(os.path.join(ROOT_DIR, "notebooks", "py... | 38.146199 | 99 | 0.595432 | 948 | 6,523 | 3.986287 | 0.181435 | 0.088912 | 0.103996 | 0.103731 | 0.579783 | 0.535856 | 0.53321 | 0.513099 | 0.510982 | 0.471024 | 0 | 0.337018 | 0.237161 | 6,523 | 170 | 100 | 38.370588 | 0.422428 | 0.046451 | 0 | 0.376812 | 0 | 0 | 0.04056 | 0.008048 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.007246 | false | 0.021739 | 0.057971 | 0 | 0.065217 | 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 |
020bd5a22f90291218f66e52d41d88a18b1fb9c2 | 529 | py | Python | grapy/decimalencoder.py | nl-hugo/grapy | b72216f0a1c93286575d4c1d81c1f4825021dfec | [
"MIT"
] | 2 | 2018-08-02T20:33:44.000Z | 2018-11-14T12:57:28.000Z | grapy/decimalencoder.py | nl-hugo/grapy | b72216f0a1c93286575d4c1d81c1f4825021dfec | [
"MIT"
] | null | null | null | grapy/decimalencoder.py | nl-hugo/grapy | b72216f0a1c93286575d4c1d81c1f4825021dfec | [
"MIT"
] | 1 | 2019-01-10T16:19:35.000Z | 2019-01-10T16:19:35.000Z | import decimal
import json
class NumberStr(float):
def __init__(self, o):
self.o = o
def __repr__(self):
return str(self.o)
# This is a workaround for: http://bugs.python.org/issue16535
# https://github.com/serverless/examples/blob/master/aws-python-rest-api-with-dynamodb/todos/decimalencod... | 26.45 | 110 | 0.695652 | 69 | 529 | 5.217391 | 0.637681 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.187146 | 529 | 19 | 111 | 27.842105 | 0.825581 | 0.31758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02194c24b10488e00a1d0c1681c907e6d5047dd3 | 372 | py | Python | CeV - Gustavo Guanabara/exerc076.py | us19861229c/Meu-aprendizado-Python | 575c0714ac5377ff3122f4cb57952969e07ba89b | [
"Unlicense"
] | 1 | 2021-12-11T19:53:41.000Z | 2021-12-11T19:53:41.000Z | CeV - Gustavo Guanabara/exerc076.py | us19861229c/Meu-aprendizado-Python | 575c0714ac5377ff3122f4cb57952969e07ba89b | [
"Unlicense"
] | null | null | null | CeV - Gustavo Guanabara/exerc076.py | us19861229c/Meu-aprendizado-Python | 575c0714ac5377ff3122f4cb57952969e07ba89b | [
"Unlicense"
] | null | null | null |
produtos_prec = ("Croissant", 2.0, "Leite", 5.0, "Mix de grãos", 8.0 , "Mix de nozes", 7.55,
"Café", 3.45, "Bolo", 13.66, "Torta gelada", 6.77, "Suco", 3.27 )
print("="*38)
print(f"{'LISTAGEM DE PREÇOS':^38}")
print("="*38)
prod = 0
while prod < len(produtos_prec):
print(f'{produtos_prec[prod]:.... | 33.818182 | 92 | 0.569892 | 63 | 372 | 3.301587 | 0.603175 | 0.230769 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115512 | 0.185484 | 372 | 10 | 93 | 37.2 | 0.570957 | 0 | 0 | 0.222222 | 0 | 0 | 0.404313 | 0.153639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 |
0219ea497b55e0d7531d2c8a6e4fcd787407080d | 269 | py | Python | todos/migrations/0007_merge_20200222_2053.py | phen0menon/muctodo-backend | 204497a989bbaed24a4f86990e5ce5f35cd95af1 | [
"MIT"
] | null | null | null | todos/migrations/0007_merge_20200222_2053.py | phen0menon/muctodo-backend | 204497a989bbaed24a4f86990e5ce5f35cd95af1 | [
"MIT"
] | 4 | 2021-03-30T12:44:38.000Z | 2021-09-22T18:37:18.000Z | todos/migrations/0007_merge_20200222_2053.py | phen0menon/muctodo-backend | 204497a989bbaed24a4f86990e5ce5f35cd95af1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-22 20:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todos', '0006_auto_20200222_2351'),
('todos', '0005_auto_20200222_2040'),
]
operations = [
]
| 17.933333 | 47 | 0.643123 | 33 | 269 | 5.060606 | 0.787879 | 0.143713 | 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 |
0223bfdf4011ad269b0060f7da74a7dbc749542f | 71,268 | py | Python | Crawler/Test/test1.py | XiMuYouZi/PythonDemo | 476d4d814338f37148bbf1504c0dd94a68f55a05 | [
"MIT"
] | null | null | null | Crawler/Test/test1.py | XiMuYouZi/PythonDemo | 476d4d814338f37148bbf1504c0dd94a68f55a05 | [
"MIT"
] | 1 | 2020-12-11T06:21:32.000Z | 2020-12-11T06:21:32.000Z | Crawler/Test/test1.py | XiMuYouZi/PythonDemo | 476d4d814338f37148bbf1504c0dd94a68f55a05 | [
"MIT"
] | null | null | null | from pyquery import PyQuery as pq
html = """
<!DOCTYPE html>
<html lang="zh-cmn-Hans" class="ua-mac ua-webkit book-new-nav">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
豆瓣图书标签: 小说
</title>
<script>!function(e){var o=function(o,n,t){var c,i,r=new Date;n=n||30,t=t||"/"... | 22.064396 | 1,121 | 0.519335 | 8,494 | 71,268 | 4.301507 | 0.115022 | 0.024085 | 0.038783 | 0.055642 | 0.691956 | 0.671621 | 0.64967 | 0.585489 | 0.568547 | 0.54646 | 0 | 0.06978 | 0.286763 | 71,268 | 3,229 | 1,122 | 22.071229 | 0.648423 | 0 | 0 | 0.614106 | 0 | 0.095183 | 0.99022 | 0.295448 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00172 | 0 | 0.005734 | 0.000573 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
022abe731b2a4eee5dda4128c4d6c308dc90ed97 | 2,067 | py | Python | dev/mixtures/Table2.9_to_JSON.py | pauliacomi/CoolProp | 80eb4601c67ecd04353067663db50937fd7ccdae | [
"MIT"
] | 520 | 2015-01-14T16:49:41.000Z | 2022-03-29T07:48:50.000Z | dev/mixtures/Table2.9_to_JSON.py | pauliacomi/CoolProp | 80eb4601c67ecd04353067663db50937fd7ccdae | [
"MIT"
] | 1,647 | 2015-01-01T07:42:45.000Z | 2022-03-31T23:48:56.000Z | dev/mixtures/Table2.9_to_JSON.py | pauliacomi/CoolProp | 80eb4601c67ecd04353067663db50937fd7ccdae | [
"MIT"
] | 320 | 2015-01-02T17:24:27.000Z | 2022-03-19T07:01:00.000Z | data = """CO2-H2O 1.030538 0.828472 1.021392 0.895156 1
CO2-N2 0.994140013 1.107654104 1.022709642 1.047578256 1
CO2-O2 1.000000 1.031986 1.000000 1.084460 0
CO2-Ar 1.027147 0.968781 1.001378 1.029710 1
CO2-CO 0.993245 1.068392 1.030855 1.245499 0
H2O-N2 0.954149 0.805147 1.079628 0.733443 ... | 41.34 | 110 | 0.605709 | 303 | 2,067 | 4.112211 | 0.379538 | 0.039326 | 0.038523 | 0.033708 | 0.022472 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0.344625 | 0.257378 | 2,067 | 49 | 111 | 42.183673 | 0.467101 | 0 | 0 | 0 | 0 | 0 | 0.499758 | 0.010643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 0.022727 | 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 |
022ddde53e91b00098b48448dc90f8254bc815f5 | 108 | py | Python | 01-logica-de-programacao-e-algoritmos/Aula 05/5 Recursos avancados com funcoes/5.1 excecoes e erros/ex03.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 05/5 Recursos avancados com funcoes/5.1 excecoes e erros/ex03.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | 01-logica-de-programacao-e-algoritmos/Aula 05/5 Recursos avancados com funcoes/5.1 excecoes e erros/ex03.py | rafaelbarretomg/Uninter | 1f84b0103263177122663e991db3a8aeb106a959 | [
"MIT"
] | null | null | null | # Excecao ValueError.
# digitando letras ao inves de numeros
x = int(input('Por favor digite um numero: '))
| 27 | 46 | 0.731481 | 16 | 108 | 4.9375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 108 | 3 | 47 | 36 | 0.877778 | 0.518519 | 0 | 0 | 0 | 0 | 0.571429 | 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 |
0233873ecef5b0cdaa9ec93df05183c2e9eb1a9b | 904 | py | Python | page_objects/UserPage.py | pavlovprojects/python_qa_pageobject | 017bd35bcf57ab5d5e52b4e270d0f279e2222b60 | [
"MIT"
] | null | null | null | page_objects/UserPage.py | pavlovprojects/python_qa_pageobject | 017bd35bcf57ab5d5e52b4e270d0f279e2222b60 | [
"MIT"
] | null | null | null | page_objects/UserPage.py | pavlovprojects/python_qa_pageobject | 017bd35bcf57ab5d5e52b4e270d0f279e2222b60 | [
"MIT"
] | null | null | null | from .BasePage import BasePage
class UserPage(BasePage):
"""Страница пользователя"""
RIGHT_MENU = {'css': '#column-right'}
WISH_LIST = {'css': RIGHT_MENU['css'] + ' a:nth-child(5)'}
PAYMENT_FORM = {'css': '#payment-new'}
LOGIN_EMAIL_INPUT = {'css': '#input-email'}
LOGIN_PASSWORD_INPUT = {'css... | 29.16129 | 62 | 0.652655 | 114 | 904 | 4.894737 | 0.368421 | 0.071685 | 0.069892 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001408 | 0.214602 | 904 | 30 | 63 | 30.133333 | 0.784507 | 0.02323 | 0 | 0.181818 | 0 | 0 | 0.120867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.136364 | 0.045455 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
024346402d94284e13f11d4a755265982b1e8aee | 3,384 | py | Python | cadCAD/utils/__init__.py | dnllvrvz/cadCAD | f931945eafc3b4654f6eb7de3592f14f34c220ae | [
"MIT"
] | 3 | 2020-05-26T12:17:48.000Z | 2020-06-25T12:03:37.000Z | cadCAD/utils/__init__.py | dnllvrvz/cadCAD | f931945eafc3b4654f6eb7de3592f14f34c220ae | [
"MIT"
] | 4 | 2020-05-26T21:03:44.000Z | 2020-06-30T12:13:15.000Z | cadCAD/utils/__init__.py | dnllvrvz/cadCAD | f931945eafc3b4654f6eb7de3592f14f34c220ae | [
"MIT"
] | 1 | 2019-12-11T18:28:18.000Z | 2019-12-11T18:28:18.000Z | from functools import reduce
from typing import Dict, List
from collections import defaultdict, Counter
from itertools import product
import warnings
from pandas import DataFrame
class SilentDF(DataFrame):
def __repr__(self):
return str(hex(id(DataFrame))) #"pandas.core.frame.DataFrame"
def append_dict... | 23.664336 | 114 | 0.611998 | 532 | 3,384 | 3.757519 | 0.255639 | 0.005003 | 0.022011 | 0.028014 | 0.171086 | 0.163082 | 0.130065 | 0.121061 | 0.109055 | 0.083042 | 0 | 0.01035 | 0.257683 | 3,384 | 142 | 115 | 23.830986 | 0.78543 | 0.038416 | 0 | 0.09375 | 0 | 0 | 0.047077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0.083333 | 0.5625 | 0.020833 | 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 |
025275f133088c8ceea1a8d549d4165c95ec7f04 | 493 | py | Python | Activations/__init__.py | recep-yildirim/Machine-Learning-Algorithms | dc4f4e6939631468246efc7537b1569007fee792 | [
"MIT"
] | 3 | 2021-05-12T13:13:52.000Z | 2022-01-19T19:54:16.000Z | Activations/__init__.py | recep-yildirim/Machine-Learning-Algorithms | dc4f4e6939631468246efc7537b1569007fee792 | [
"MIT"
] | null | null | null | Activations/__init__.py | recep-yildirim/Machine-Learning-Algorithms | dc4f4e6939631468246efc7537b1569007fee792 | [
"MIT"
] | null | null | null | from importlib import import_module
import os
def get_parent_dir(n=0):
current_path = os.path.dirname(os.path.abspath(__file__))
for _ in range(n):
current_path = os.path.dirname(current_path)
return current_path
def get_activation(name):
module = import_module(name)
activation = getattr... | 23.47619 | 62 | 0.736308 | 71 | 493 | 4.887324 | 0.450704 | 0.126801 | 0.069164 | 0.097983 | 0.138329 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002475 | 0.180527 | 493 | 21 | 63 | 23.47619 | 0.856436 | 0.064909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0262244944c48105e05feeeea70f9e1a7a59a5c9 | 1,008 | py | Python | Sampling/gp/GP_interface.py | josephhic/AutoDot | 9acd0ddab9191b8a90afc6f1f6373cf711b40b89 | [
"MIT"
] | 7 | 2020-09-16T23:50:01.000Z | 2022-01-29T13:31:35.000Z | Sampling/gp/GP_interface.py | josephhic/AutoDot | 9acd0ddab9191b8a90afc6f1f6373cf711b40b89 | [
"MIT"
] | 1 | 2022-01-15T14:50:16.000Z | 2022-01-15T14:50:16.000Z | Sampling/gp/GP_interface.py | josephhic/AutoDot | 9acd0ddab9191b8a90afc6f1f6373cf711b40b89 | [
"MIT"
] | 6 | 2020-08-20T11:52:51.000Z | 2021-03-12T08:04:35.000Z | import numpy as np
class GPInterface(object):
def __init__(self):
self.kernel = None
self.ndim = None
self.model = None
self.outdim = 1
def create_kernel(self, ndim, kernel_name, var_f=1.0, lengthscale=1.0):
pass
def create_model(self, x, y, noise_var, noise_prior)... | 25.2 | 80 | 0.630952 | 140 | 1,008 | 4.414286 | 0.485714 | 0.045307 | 0.038835 | 0.074434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015068 | 0.275794 | 1,008 | 39 | 81 | 25.846154 | 0.831507 | 0.037698 | 0 | 0.2 | 0 | 0 | 0.076525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.133333 | 0.033333 | 0 | 0.4 | 0.033333 | 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 |
02672df29fc9ebbd81a095528bf8daa18c15e598 | 588 | py | Python | Python/powx-n.py | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 2 | 2020-04-08T17:57:43.000Z | 2021-11-07T09:11:51.000Z | Python/powx-n.py | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | null | null | null | Python/powx-n.py | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 8 | 2018-03-13T18:20:26.000Z | 2022-03-09T19:48:11.000Z | # Time: O(logn)
# Space: O(logn)
#
# Implement pow(x, n).
#
class Solution:
# @param x, a float
# @param n, a integer
# @return a float
def pow(self, x, n):
if n < 0:
return 1 / self.powRecu(x, -n)
return self.powRecu(x, n)
def powRecu(self, x, n):
... | 21 | 49 | 0.464286 | 86 | 588 | 3.081395 | 0.325581 | 0.05283 | 0.181132 | 0.060377 | 0.377358 | 0.241509 | 0.128302 | 0.128302 | 0 | 0 | 0 | 0.036212 | 0.389456 | 588 | 28 | 50 | 21 | 0.70195 | 0.178571 | 0 | 0 | 0 | 0 | 0.016842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.133333 | 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 |
0283a7352923af27fdd16711a1bde4c6fd11c4e8 | 1,568 | py | Python | machine-learning-ex1/ex1/gradientDescent.py | xu1718191411/coursera-ml-py | a15fa53cd4c293587fa668661657b18ac95b5818 | [
"MIT"
] | null | null | null | machine-learning-ex1/ex1/gradientDescent.py | xu1718191411/coursera-ml-py | a15fa53cd4c293587fa668661657b18ac95b5818 | [
"MIT"
] | null | null | null | machine-learning-ex1/ex1/gradientDescent.py | xu1718191411/coursera-ml-py | a15fa53cd4c293587fa668661657b18ac95b5818 | [
"MIT"
] | null | null | null | import numpy as np
from computeCost import *
def gradient_descent(X, y, theta, alpha, num_iters):
# Initialize some useful values
m = y.size
J_history = np.zeros(num_iters)
for i in range(0, num_iters):
# ===================== Your Code Here =====================
# Instructions : Perf... | 27.034483 | 85 | 0.487245 | 199 | 1,568 | 3.753769 | 0.321608 | 0.064257 | 0.037483 | 0.032129 | 0.645248 | 0.645248 | 0.645248 | 0.645248 | 0.645248 | 0.645248 | 0 | 0.022543 | 0.29273 | 1,568 | 58 | 86 | 27.034483 | 0.651037 | 0.364796 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
65f3d2fc9acc37dc939b8937d190997de92ec79e | 2,875 | py | Python | tests/test_i18n.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | 2 | 2015-09-24T19:53:35.000Z | 2015-11-06T10:47:02.000Z | tests/test_i18n.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | null | null | null | tests/test_i18n.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
unit test for the i18n functions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: 2007 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from jinja import Environment, DictLoader
templates = {
'master.html': '<title>{{ page_title|default(_("missing")) }}</... | 30.263158 | 76 | 0.60487 | 339 | 2,875 | 4.985251 | 0.327434 | 0.042604 | 0.047337 | 0.071006 | 0.271598 | 0.21716 | 0.162722 | 0.085207 | 0.039053 | 0.039053 | 0 | 0.01675 | 0.231652 | 2,875 | 94 | 77 | 30.585106 | 0.748302 | 0.088696 | 0 | 0.068966 | 0 | 0 | 0.271357 | 0.03131 | 0 | 0 | 0 | 0 | 0.155172 | 1 | 0.206897 | false | 0.051724 | 0.017241 | 0.051724 | 0.344828 | 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 |
65f3f28d20e8dde9e8b89754fe8a9129f101d89e | 453 | py | Python | head_first/chapter1/beersong.py | adubois85/python_projects | e8794ed100e4fb2cbe89380c5d636ebdf954b33b | [
"Apache-2.0"
] | null | null | null | head_first/chapter1/beersong.py | adubois85/python_projects | e8794ed100e4fb2cbe89380c5d636ebdf954b33b | [
"Apache-2.0"
] | null | null | null | head_first/chapter1/beersong.py | adubois85/python_projects | e8794ed100e4fb2cbe89380c5d636ebdf954b33b | [
"Apache-2.0"
] | null | null | null | word = "bottles"
for beer_num in range(99, 0, -1):
print(beer_num, word, " of beer on the wall,")
print(beer_num, word, " bottles of beer.")
print("You take one down,")
print("You pass it around,")
if (beer_num == 1):
print("No more bottles of beer on the wall.")
else:
new_num =... | 26.647059 | 53 | 0.560706 | 71 | 453 | 3.464789 | 0.394366 | 0.142276 | 0.097561 | 0.134146 | 0.280488 | 0.219512 | 0.219512 | 0.219512 | 0 | 0 | 0 | 0.022222 | 0.304636 | 453 | 16 | 54 | 28.3125 | 0.75873 | 0 | 0 | 0 | 0 | 0 | 0.317881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
5a018c226ed71699c2113593043427fc368eae2c | 1,730 | py | Python | rlalgos/template_exp.py | ludc/rlstructures | 99fa91bb4e955d31348bed007f25b41641c9fa73 | [
"MIT"
] | null | null | null | rlalgos/template_exp.py | ludc/rlstructures | 99fa91bb4e955d31348bed007f25b41641c9fa73 | [
"MIT"
] | null | null | null | rlalgos/template_exp.py | ludc/rlstructures | 99fa91bb4e955d31348bed007f25b41641c9fa73 | [
"MIT"
] | null | null | null | #
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
from rlstructures.logger import Logger, TFLogger
from rlstructures import DictTensor, TemporalDictTensor
from rlstructures import logging... | 26.212121 | 97 | 0.67052 | 216 | 1,730 | 5.25463 | 0.444444 | 0.039648 | 0.052863 | 0.031718 | 0.061674 | 0.061674 | 0.061674 | 0 | 0 | 0 | 0 | 0.000773 | 0.252023 | 1,730 | 65 | 98 | 26.615385 | 0.876352 | 0.217341 | 0 | 0.075 | 0 | 0 | 0.004612 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.225 | false | 0 | 0.25 | 0 | 0.525 | 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 |
5a02faffb7cfa9fdb23adccb42a064f2f5db12ed | 726 | py | Python | src/azure-cli-core/azure/cli/core/_output.py | cmcclister/azure-cli | f30fa76380072da9754c222463ef20d28df5a8be | [
"MIT"
] | null | null | null | src/azure-cli-core/azure/cli/core/_output.py | cmcclister/azure-cli | f30fa76380072da9754c222463ef20d28df5a8be | [
"MIT"
] | 3 | 2021-03-26T00:25:36.000Z | 2022-03-29T22:03:55.000Z | src/azure-cli-core/azure/cli/core/_output.py | cmcclister/azure-cli | f30fa76380072da9754c222463ef20d28df5a8be | [
"MIT"
] | 1 | 2020-07-13T22:28:09.000Z | 2020-07-13T22:28:09.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 40.333333 | 94 | 0.548209 | 68 | 726 | 5.602941 | 0.661765 | 0.057743 | 0.131234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132231 | 726 | 17 | 95 | 42.705882 | 0.604762 | 0.46281 | 0 | 0 | 0 | 0 | 0.01039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | 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 |
5a03d7bbeabbca6708c7cac2090946c612d13f84 | 2,207 | py | Python | game/data/scripts/village_master/9001_alliance/__init__.py | TheDemonLife/Lineage2Server-Interlude | d23d145db533fd899d4064026e4bc7ee45c6624a | [
"Apache-2.0"
] | 10 | 2019-07-27T13:12:11.000Z | 2022-01-15T19:13:26.000Z | game/data/scripts/village_master/9001_alliance/__init__.py | TheDemonLife/Lineage2Server-Interlude | d23d145db533fd899d4064026e4bc7ee45c6624a | [
"Apache-2.0"
] | 1 | 2021-08-06T12:15:01.000Z | 2021-08-09T10:18:47.000Z | game/data/scripts/village_master/9001_alliance/__init__.py | TheDemonLife/Lineage2Server-Interlude | d23d145db533fd899d4064026e4bc7ee45c6624a | [
"Apache-2.0"
] | 2 | 2020-02-20T23:02:26.000Z | 2020-11-22T09:27:51.000Z | # Created by DraX on 2005.08.12
# minor fixes by DrLecter 2005.09.10
import sys
from ru.catssoftware.gameserver.model.quest import State
from ru.catssoftware.gameserver.model.quest import QuestState
from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest
qn = "9001_alliance"
NPC=... | 36.783333 | 85 | 0.696874 | 319 | 2,207 | 4.789969 | 0.626959 | 0.01178 | 0.03534 | 0.054974 | 0.20288 | 0.17801 | 0.153141 | 0.09555 | 0.09555 | 0.09555 | 0 | 0.360278 | 0.153602 | 2,207 | 60 | 86 | 36.783333 | 0.457709 | 0.028999 | 0 | 0.28 | 0 | 0 | 0.077534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.08 | 0 | 0.2 | 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 |
5a0dbfd851766ed88650e0e8928d7b20b25f1525 | 6,571 | py | Python | articles/views.py | shobhit10058/newspaper-app | 091d4410b649a8acef8076be779f136a7366046c | [
"MIT"
] | null | null | null | articles/views.py | shobhit10058/newspaper-app | 091d4410b649a8acef8076be779f136a7366046c | [
"MIT"
] | null | null | null | articles/views.py | shobhit10058/newspaper-app | 091d4410b649a8acef8076be779f136a7366046c | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.views.generic import ListView, DetailView
from django.views.generic.edit import UpdateView, DeleteView, CreateView
from django.urls import reverse_lazy
from django.template.loader import render_to_string
from .forms import Articl... | 31.14218 | 99 | 0.723939 | 730 | 6,571 | 6.338356 | 0.226027 | 0.025935 | 0.022477 | 0.025935 | 0.401988 | 0.373028 | 0.329371 | 0.311217 | 0.289172 | 0.270586 | 0 | 0.001303 | 0.182468 | 6,571 | 210 | 100 | 31.290476 | 0.860015 | 0 | 0 | 0.391304 | 0 | 0 | 0.129356 | 0.033937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080745 | false | 0.086957 | 0.124224 | 0.012422 | 0.559006 | 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 |
5a16647872c09dc7ae15c2cf3b39dcb31bef693f | 186 | py | Python | testData/typeinspection/ignoreInitArguments.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 238 | 2019-08-05T12:46:09.000Z | 2022-03-25T08:53:25.000Z | testData/typeinspection/ignoreInitArguments.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 415 | 2019-07-15T17:39:35.000Z | 2022-03-31T01:18:38.000Z | testData/typeinspection/ignoreInitArguments.py | KotlinIsland/pydantic-pycharm-plugin | 6a20563c3a174931ff49759c713c7fa609a82abb | [
"Apache-2.0",
"MIT"
] | 7 | 2019-08-09T01:03:16.000Z | 2022-02-08T03:28:19.000Z |
from pydantic import BaseModel
class A(BaseModel):
a: int
def __init__(self, xyz: str):
super().__init__(a=xyz)
A(xyz=123<warning descr="null">)</warning>
A(a=123) | 13.285714 | 42 | 0.639785 | 28 | 186 | 3.964286 | 0.607143 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.204301 | 186 | 14 | 43 | 13.285714 | 0.709459 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5a2084cc818ba788f37f330b29ff87430a63cdb3 | 2,505 | py | Python | backend/apollo/elections/migrations/0001_initial.py | heidal/apollo | 576743e12048985ae8ef127224e1cb8ac49acd28 | [
"MIT"
] | 2 | 2020-02-28T16:24:55.000Z | 2020-03-27T17:12:50.000Z | backend/apollo/elections/migrations/0001_initial.py | heidal/apollo | 576743e12048985ae8ef127224e1cb8ac49acd28 | [
"MIT"
] | 51 | 2020-02-12T20:52:08.000Z | 2022-02-27T00:23:20.000Z | backend/apollo/elections/migrations/0001_initial.py | heidal/apollo | 576743e12048985ae8ef127224e1cb8ac49acd28 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-25 18:37
from django.db import migrations, models
import django.db.models.deletion
from typing import List, Tuple
class Migration(migrations.Migration):
initial = True
dependencies: List[Tuple[str, str]] = []
operations = [
migrations.CreateModel(
... | 30.925926 | 72 | 0.389222 | 167 | 2,505 | 5.718563 | 0.407186 | 0.033508 | 0.043979 | 0.06911 | 0.467016 | 0.382199 | 0.382199 | 0.382199 | 0.382199 | 0.382199 | 0 | 0.020475 | 0.512575 | 2,505 | 80 | 73 | 31.3125 | 0.761671 | 0.017964 | 0 | 0.60274 | 1 | 0 | 0.066314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041096 | 0 | 0.09589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
5a43781b64d44b06444ed477a16b17323815027e | 114,239 | py | Python | pysnmp-with-texts/AtiL2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/AtiL2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/AtiL2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module AtiL2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AtiL2-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:33:22 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | 162.041135 | 10,780 | 0.792882 | 14,507 | 114,239 | 6.242021 | 0.076377 | 0.058441 | 0.102272 | 0.010513 | 0.535653 | 0.415569 | 0.371197 | 0.3544 | 0.332822 | 0.292525 | 0 | 0.066006 | 0.102706 | 114,239 | 704 | 10,781 | 162.271307 | 0.817386 | 0.002731 | 0 | 0 | 0 | 0.128242 | 0.378281 | 0.007058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002882 | 0.008646 | 0 | 0.018732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5a5b707e0aeb24e9a10e367ad713f9184a85bf1c | 2,111 | py | Python | neural_pi/utils.py | tarik/pi-snm-qde | 61b0d60b5e7a56454d313693c2d1a9694879f1dc | [
"MIT"
] | 8 | 2020-08-05T18:02:20.000Z | 2022-03-16T17:41:13.000Z | neural_pi/utils.py | tarik/pi-snm-qde | 61b0d60b5e7a56454d313693c2d1a9694879f1dc | [
"MIT"
] | 1 | 2021-05-17T15:43:22.000Z | 2021-07-12T20:29:12.000Z | neural_pi/utils.py | tarik/pi-snm-qde | 61b0d60b5e7a56454d313693c2d1a9694879f1dc | [
"MIT"
] | 1 | 2021-12-10T12:20:24.000Z | 2021-12-10T12:20:24.000Z | import os
import torch
import pandas as pd
import numpy as np
import datetime
from tabulate import tabulate
def get_timestamp():
return datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
def rename(name):
"""
Sets a new `__name__`.
"""
def decorator(f):
f.__name__ = name
return f
... | 23.455556 | 89 | 0.641402 | 308 | 2,111 | 4.090909 | 0.327922 | 0.057143 | 0.057143 | 0.040476 | 0.139683 | 0.139683 | 0.139683 | 0.05873 | 0.05873 | 0 | 0 | 0.003077 | 0.230223 | 2,111 | 89 | 90 | 23.719101 | 0.772308 | 0.035528 | 0 | 0.169492 | 0 | 0 | 0.036908 | 0.010474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271186 | false | 0 | 0.101695 | 0.084746 | 0.59322 | 0.067797 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.