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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b41f5bc02c4cb377278c200c2ac30c3a3c631f0 | 216 | py | Python | chem_spider/pipelines.py | mutoulbj/chem_spider | c544dd8d11a2e7d1404942814b4162617022c7c3 | [
"MIT"
] | 1 | 2020-03-17T09:07:28.000Z | 2020-03-17T09:07:28.000Z | chem_spider/pipelines.py | mutoulbj/chem_spider | c544dd8d11a2e7d1404942814b4162617022c7c3 | [
"MIT"
] | 1 | 2016-06-29T10:52:09.000Z | 2016-07-21T05:06:20.000Z | chem_spider/pipelines.py | mutoulbj/chem_spider | c544dd8d11a2e7d1404942814b4162617022c7c3 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from chem_spider import items
class ItemStoreProcess(object):
def process_item(self, item, spider):
if isinstance(item, items.AladdinItem):
pass | 27 | 47 | 0.662037 | 27 | 216 | 5.222222 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.212963 | 216 | 8 | 48 | 27 | 0.823529 | 0.199074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5b4c20db2824f0a4c22b18c7470a78192489e092 | 243 | py | Python | modules/Lib.py | kazukihayashi/Matlab-Python | e1a089eb931205f727f17de70015c476433a89fd | [
"MIT"
] | null | null | null | modules/Lib.py | kazukihayashi/Matlab-Python | e1a089eb931205f727f17de70015c476433a89fd | [
"MIT"
] | null | null | null | modules/Lib.py | kazukihayashi/Matlab-Python | e1a089eb931205f727f17de70015c476433a89fd | [
"MIT"
] | null | null | null | def Show_Text(text):
print('Input value is: {0}'.format(text))
def Plus(a,b):
return a+b
class TestClass():
def __init__(self,a,b):
self.a = a
self.b = b
def Multiply_Values(self):
return self.a*self.b | 20.25 | 45 | 0.584362 | 40 | 243 | 3.4 | 0.475 | 0.044118 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.26749 | 243 | 12 | 46 | 20.25 | 0.758427 | 0 | 0 | 0 | 0 | 0 | 0.077869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.7 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5b62ca7ee0d37f5d07ff7ea68616bf911d340bdd | 92 | py | Python | app/application_exception.py | erwindev/flask-seed | 15c08d3edf6747e1eff3f52acf5cab93a59c2470 | [
"MIT"
] | null | null | null | app/application_exception.py | erwindev/flask-seed | 15c08d3edf6747e1eff3f52acf5cab93a59c2470 | [
"MIT"
] | null | null | null | app/application_exception.py | erwindev/flask-seed | 15c08d3edf6747e1eff3f52acf5cab93a59c2470 | [
"MIT"
] | null | null | null | class ApplicationException(Exception):
def __init__(self, arg):
self.msg = arg
| 18.4 | 38 | 0.673913 | 10 | 92 | 5.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228261 | 92 | 4 | 39 | 23 | 0.816901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5b648d655bdd8d70fbb67392df965c1221aad73b | 34 | py | Python | libs/const.py | PSYCHXLAUGH/PasswordManager | eb72731467bdaf93e1d7c8a238e2dc384558b63a | [
"MIT"
] | null | null | null | libs/const.py | PSYCHXLAUGH/PasswordManager | eb72731467bdaf93e1d7c8a238e2dc384558b63a | [
"MIT"
] | null | null | null | libs/const.py | PSYCHXLAUGH/PasswordManager | eb72731467bdaf93e1d7c8a238e2dc384558b63a | [
"MIT"
] | null | null | null | FOLDERNAME = "out"
VERSION = "1.0" | 17 | 18 | 0.647059 | 5 | 34 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.147059 | 34 | 2 | 19 | 17 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5b66128e60fd7d47df53a76416455afc65cba3aa | 232 | py | Python | argoplot/__init__.py | cgrdn/argoplot | f7d29dbbadefdbd5e493f58e10425ef206a885c8 | [
"MIT"
] | null | null | null | argoplot/__init__.py | cgrdn/argoplot | f7d29dbbadefdbd5e493f58e10425ef206a885c8 | [
"MIT"
] | null | null | null | argoplot/__init__.py | cgrdn/argoplot | f7d29dbbadefdbd5e493f58e10425ef206a885c8 | [
"MIT"
] | null | null | null |
from __future__ import absolute_import
from .core import *
from . import ticker
from . import labeller
__all__ = ['core', 'ticker', 'labeller']
__author__ = ['Christopher Gordon <chris.gordon@dfo-mpo.gc.ca>']
__version__ = '0.0.1' | 25.777778 | 64 | 0.732759 | 31 | 232 | 4.935484 | 0.612903 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014851 | 0.12931 | 232 | 9 | 65 | 25.777778 | 0.742574 | 0 | 0 | 0 | 0 | 0 | 0.301724 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5b935f5526544d793be026b8582ecf5153800d1f | 337 | py | Python | background/converters.py | Jedore/binary_life | 89ccd877ceb463831547c2ea4091629f53197111 | [
"MIT"
] | null | null | null | background/converters.py | Jedore/binary_life | 89ccd877ceb463831547c2ea4091629f53197111 | [
"MIT"
] | 1 | 2018-02-11T05:38:58.000Z | 2018-02-11T05:38:58.000Z | background/converters.py | Jedore/binary_life | 89ccd877ceb463831547c2ea4091629f53197111 | [
"MIT"
] | null | null | null | """
@author: Jedore
@project: binary_life
@file: converters.py
@time: 11/9/2018 1:53 PM
"""
class BoolConverter:
regex = "(True)|(False)"
@staticmethod
def to_python(value):
return False if value == 'False' else True
@staticmethod
def to_url(value):
r... | 16.85 | 50 | 0.575668 | 40 | 337 | 4.775 | 0.75 | 0.157068 | 0.17801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.302671 | 337 | 19 | 51 | 17.736842 | 0.770213 | 0.246291 | 0 | 0.25 | 0 | 0 | 0.084444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5bb2007a351b402796e4507e5a88cdcd29961823 | 921 | py | Python | aflux_assurance_server/api/v1/schemas.py | AfluxSystems/aflux-assurance-server | a703a8cd412cb761e51262d73aface4f59576427 | [
"0BSD"
] | null | null | null | aflux_assurance_server/api/v1/schemas.py | AfluxSystems/aflux-assurance-server | a703a8cd412cb761e51262d73aface4f59576427 | [
"0BSD"
] | null | null | null | aflux_assurance_server/api/v1/schemas.py | AfluxSystems/aflux-assurance-server | a703a8cd412cb761e51262d73aface4f59576427 | [
"0BSD"
] | null | null | null | """
Similar to Serializers in Django, these manage the conversion between
raw JSON and models. This is where parsing validation should be done.
"""
from marshmallow import Schema, SchemaOpts, fields, post_load
from aflux_assurance_server.api.v1.models import RealtimeDevice # Import your models
from aflux_assurance_ser... | 38.375 | 117 | 0.762215 | 104 | 921 | 6.634615 | 0.596154 | 0.052174 | 0.052174 | 0.069565 | 0.204348 | 0.204348 | 0.101449 | 0 | 0 | 0 | 0 | 0.001295 | 0.161781 | 921 | 23 | 118 | 40.043478 | 0.892487 | 0.742671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5bb9e7ccb0a3d099ad384816ea177c5077f5afc5 | 540 | py | Python | slixmpp/plugins/xep_0047/__init__.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | null | null | null | slixmpp/plugins/xep_0047/__init__.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | 1 | 2021-02-24T07:58:40.000Z | 2021-02-24T07:58:40.000Z | slixmpp/plugins/xep_0047/__init__.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | null | null | null | """
Slixmpp: The Slick XMPP Library
Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
This file is part of Slixmpp.
See the file LICENSE for copying permission.
"""
from slixmpp.plugins.base import register_plugin
from slixmpp.plugins.xep_0047 import stanza
from slixmpp.plugins.xep_0047.stanza ... | 24.545455 | 61 | 0.783333 | 81 | 540 | 5.098765 | 0.530864 | 0.135593 | 0.217918 | 0.20339 | 0.242131 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078775 | 0.153704 | 540 | 21 | 62 | 25.714286 | 0.824945 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5bc97e180a809a5419213d45bdbb9beb9c0925eb | 1,514 | py | Python | classes/physics.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | 11 | 2020-03-31T21:27:19.000Z | 2022-01-11T09:50:13.000Z | classes/physics.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | null | null | null | classes/physics.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | 5 | 2020-05-13T05:47:23.000Z | 2021-09-27T18:43:25.000Z | #!/usr/bin/env python3
# This is an example of the dangers of using code you just find from the Internet, in addition to showing how we can
# set up a class to do things for us behind the scenes. In this case, we're going to make a fake physics package,
# and use it to do some nefarious stuff.
# This is the actual v... | 32.913043 | 118 | 0.679657 | 256 | 1,514 | 3.871094 | 0.484375 | 0.020182 | 0.024218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002657 | 0.254293 | 1,514 | 45 | 119 | 33.644444 | 0.875111 | 0.607001 | 0 | 0 | 0 | 0 | 0.066895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.210526 | 0.684211 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5bf282402b2c56e369122c2b22727f48a50affe3 | 5,431 | py | Python | dot/DotsAndBoxes.py | ChenXinyue11/Dots-and-Boxes | 5ab73ca50af284539a82af42a6350294d6c0f8d2 | [
"MIT"
] | null | null | null | dot/DotsAndBoxes.py | ChenXinyue11/Dots-and-Boxes | 5ab73ca50af284539a82af42a6350294d6c0f8d2 | [
"MIT"
] | null | null | null | dot/DotsAndBoxes.py | ChenXinyue11/Dots-and-Boxes | 5ab73ca50af284539a82af42a6350294d6c0f8d2 | [
"MIT"
] | null | null | null | import numpy as np
PLAYER1 = -1
PLAYER2 = 1
PLAYERS = {'B': -1, 'W': 1}
def board_shape(board_string):
lines = board_string.split("|")
rows, cols = (len(lines)+1)/2, (len(lines[0])+1)/2
return rows, cols
class DotsAndBoxes(object):
def __init__(self, initial_player=None, rows=None, cols=None, board_s... | 40.529851 | 131 | 0.513902 | 915 | 5,431 | 2.969399 | 0.091803 | 0.205374 | 0.20979 | 0.172249 | 0.491351 | 0.48583 | 0.460802 | 0.430254 | 0.40081 | 0.40081 | 0 | 0.039313 | 0.334929 | 5,431 | 133 | 132 | 40.834586 | 0.712901 | 0.01786 | 0 | 0.173913 | 0 | 0 | 0.000939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121739 | false | 0 | 0.008696 | 0.026087 | 0.356522 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7515fa7c0ab51eea83ce5cba1d8a8d9942fc290d | 53 | py | Python | streamer/__init__.py | Ahmed-Mohamed7/shaka-streamer | 349f8de5e2905061c2f94195cb9a19521c8e410a | [
"Apache-2.0"
] | 2 | 2021-03-18T11:12:42.000Z | 2021-03-19T03:35:31.000Z | streamer/__init__.py | Psyruss77/psyruss77 | a371942ee1feda8d8bb2d99d56ab10557add0374 | [
"Apache-2.0"
] | 2 | 2021-08-13T23:14:07.000Z | 2021-08-18T18:45:34.000Z | streamer/__init__.py | Psyruss77/psyruss77 | a371942ee1feda8d8bb2d99d56ab10557add0374 | [
"Apache-2.0"
] | 1 | 2020-11-25T03:33:08.000Z | 2020-11-25T03:33:08.000Z | __version__ = '0.3.0'
from . import controller_node
| 13.25 | 29 | 0.735849 | 8 | 53 | 4.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.150943 | 53 | 3 | 30 | 17.666667 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
75241ed52c50dc25d3f3faaf5eec09febbb7f8ce | 1,270 | py | Python | museum_site/migrations/0009_auto_20160816_2215.py | DrDos0016/z2 | b63e77129fefcb4f990ee1cb9952f4f708ee3a2b | [
"MIT"
] | 3 | 2017-05-01T19:53:57.000Z | 2018-08-27T20:14:43.000Z | museum_site/migrations/0009_auto_20160816_2215.py | asiekierka/z2 | d926408423dc98d71d5e7fc2fda3202c03c309de | [
"MIT"
] | 26 | 2020-02-11T22:10:43.000Z | 2022-02-03T20:54:08.000Z | museum_site/migrations/0009_auto_20160816_2215.py | asiekierka/z2 | d926408423dc98d71d5e7fc2fda3202c03c309de | [
"MIT"
] | 1 | 2018-08-27T20:14:46.000Z | 2018-08-27T20:14:46.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-16 22:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('museum_site', '0008_article_page'),
]
operations = [
migrations.AddField(
... | 27.608696 | 74 | 0.548031 | 119 | 1,270 | 5.705882 | 0.470588 | 0.079529 | 0.184094 | 0.213549 | 0.444772 | 0.444772 | 0.276878 | 0.138439 | 0.138439 | 0 | 0 | 0.038372 | 0.322835 | 1,270 | 45 | 75 | 28.222222 | 0.751163 | 0.051969 | 0 | 0.5 | 1 | 0 | 0.09159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
752dc10c0360d6e4d8d2e866aadbf0c93828923f | 1,048 | py | Python | django-admin-readonly-permission/proj/accounts/admin.py | TakesxiSximada/pens | 93d7b12330fa4f3e3ce913239ca2891212dabaf2 | [
"Apache-2.0"
] | null | null | null | django-admin-readonly-permission/proj/accounts/admin.py | TakesxiSximada/pens | 93d7b12330fa4f3e3ce913239ca2891212dabaf2 | [
"Apache-2.0"
] | null | null | null | django-admin-readonly-permission/proj/accounts/admin.py | TakesxiSximada/pens | 93d7b12330fa4f3e3ce913239ca2891212dabaf2 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from . import models
class ReadonlyAdmin(admin.ModelAdmin):
def has_add_permission(self, *args, **kwds):
return False
def has_delete_permission(self, *args, **kwds):
return False
def has_change_permission(self, *args, **kwds):
return True
de... | 29.111111 | 88 | 0.674618 | 128 | 1,048 | 5.3125 | 0.382813 | 0.082353 | 0.123529 | 0.132353 | 0.367647 | 0.367647 | 0.367647 | 0.264706 | 0.15 | 0 | 0 | 0 | 0.216603 | 1,048 | 35 | 89 | 29.942857 | 0.828258 | 0 | 0 | 0.166667 | 0 | 0 | 0.083015 | 0.020992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.208333 | 0.708333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7538b74805b0a11276e8e296527dae2d4387ba0d | 173 | py | Python | modules/speech/__init__.py | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | modules/speech/__init__.py | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | modules/speech/__init__.py | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from .mlstt import MLSpeechToText
from .mltts import MLTextToSpeech
__author__ = 'Imdat Solak'
__email__ = 'imdat@solak.de'
__version__ = '0.1.1'
| 17.3 | 33 | 0.710983 | 22 | 173 | 5.045455 | 0.772727 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.150289 | 173 | 9 | 34 | 19.222222 | 0.727891 | 0.121387 | 0 | 0 | 0 | 0 | 0.201342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
753d6ae924427e01a1839abcb7428fb75eec3b9b | 6,855 | py | Python | adminlte/static/plugins/ckeditor/samples/old/replacebycode.html.py | dnaextrim/django_adminlte_x | 9150288a0d6c4bdb1d423345fac0d5e3c7e8406e | [
"MIT"
] | 4 | 2017-02-14T09:51:23.000Z | 2018-12-04T04:40:32.000Z | adminlte/static/plugins/ckeditor/samples/old/replacebycode.html.py | dnaextrim/django_adminlte_x | 9150288a0d6c4bdb1d423345fac0d5e3c7e8406e | [
"MIT"
] | 1 | 2017-05-31T18:07:16.000Z | 2017-06-02T07:07:30.000Z | adminlte/static/plugins/ckeditor/samples/old/replacebycode.html.py | dnaextrim/django_adminlte_x | 9150288a0d6c4bdb1d423345fac0d5e3c7e8406e | [
"MIT"
] | 2 | 2018-03-09T12:34:01.000Z | 2019-11-07T03:20:24.000Z | XXXXXXXXX XXXXX
XXXX
XXXXXXXXX XXX XXXXXXXXXX XXXXXXXX X XXXXXXXXX XXXXXXXX XXX XXXXXX XXXXXXXXX
XXX XXXXXXXXXX XXX XXXXXXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXX
XXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXX XXXXXXXX XX XXXX XXXXXXX XXXXXXXX XXXXXXXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXX XXXXX... | 114.25 | 5,072 | 0.892487 | 648 | 6,855 | 9.441358 | 0.08179 | 0.017162 | 0.012586 | 0.009153 | 0.01798 | 0.011769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107513 | 6,855 | 59 | 5,073 | 116.186441 | 1 | 0 | 0 | 0.509091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7562319bd5b765e671172415e4ff5585de094137 | 8,623 | py | Python | tests/test_util_gbx_crypt.py | aheadley/python-naabal | 1ff7b7fad04b096f3f8cdc560bbe0e8edb06b033 | [
"MIT"
] | 1 | 2020-12-07T01:29:02.000Z | 2020-12-07T01:29:02.000Z | tests/test_util_gbx_crypt.py | aheadley/python-naabal | 1ff7b7fad04b096f3f8cdc560bbe0e8edb06b033 | [
"MIT"
] | null | null | null | tests/test_util_gbx_crypt.py | aheadley/python-naabal | 1ff7b7fad04b096f3f8cdc560bbe0e8edb06b033 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
#
# Copyright (c) 2015 Alex Headley <aheadley@waysaboutstuff.com>
#
# 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 with... | 51.327381 | 85 | 0.842282 | 817 | 8,623 | 8.771114 | 0.520196 | 0.021211 | 0.021211 | 0.022467 | 0.123081 | 0.091404 | 0.062797 | 0.042702 | 0.042702 | 0.028189 | 0 | 0.086855 | 0.102748 | 8,623 | 167 | 86 | 51.634731 | 0.839343 | 0.133016 | 0 | 0.105691 | 0 | 0 | 0.703341 | 0.514692 | 0 | 1 | 0 | 0 | 0.065041 | 1 | 0.081301 | false | 0 | 0.02439 | 0 | 0.113821 | 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 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f35a31c99e5ab7de70304d6f91ec14fddc80d5af | 230 | py | Python | rester/commands/set_syntax_command.py | marioosh-net/rester-sublime-http-client | 7747c10bbda08754712a88ffe5927c3dcd87c013 | [
"MIT"
] | 94 | 2015-01-15T12:58:50.000Z | 2022-02-11T09:04:06.000Z | rester/commands/set_syntax_command.py | marioosh-net/rester-sublime-http-client | 7747c10bbda08754712a88ffe5927c3dcd87c013 | [
"MIT"
] | 15 | 2015-02-06T21:39:51.000Z | 2021-04-13T12:29:57.000Z | rester/commands/set_syntax_command.py | marioosh-net/rester-sublime-http-client | 7747c10bbda08754712a88ffe5927c3dcd87c013 | [
"MIT"
] | 17 | 2015-10-08T13:46:38.000Z | 2021-12-22T18:12:59.000Z | import sublime_plugin
class SetSyntaxCommand(sublime_plugin.TextCommand):
"""Wrapper command for setting the syntax of the current view."""
def run(self, edit, syntax_file):
self.view.set_syntax_file(syntax_file)
| 32.857143 | 69 | 0.756522 | 31 | 230 | 5.419355 | 0.677419 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156522 | 230 | 6 | 70 | 38.333333 | 0.865979 | 0.256522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f3766b9a2adac44476fbf57f09c1ef0d3af2e4ed | 666 | py | Python | test/transformer/test_numpy.py | Zeroto521/my-data-toolkit | bde37f625aa81e65b97648798535f6d931864888 | [
"MIT"
] | 1 | 2021-10-09T04:50:58.000Z | 2021-10-09T04:50:58.000Z | test/transformer/test_numpy.py | Zeroto521/my-data-toolkit | bde37f625aa81e65b97648798535f6d931864888 | [
"MIT"
] | 427 | 2021-06-04T02:40:22.000Z | 2022-03-30T12:55:52.000Z | test/transformer/test_numpy.py | Zeroto521/my-data-toolkit | bde37f625aa81e65b97648798535f6d931864888 | [
"MIT"
] | 1 | 2021-07-09T09:56:44.000Z | 2021-07-09T09:56:44.000Z | from test.transformer import array
from test.transformer import df_iris
from test.transformer import s
import pandas as pd
import pytest
from dtoolkit.transformer import RavelTF
class TestRavelTF:
@pytest.mark.parametrize("data", [array, df_iris, s, s.tolist()])
def test_transform(self, data):
res =... | 25.615385 | 69 | 0.6997 | 88 | 666 | 5.170455 | 0.375 | 0.149451 | 0.125275 | 0.164835 | 0.224176 | 0.224176 | 0.224176 | 0.224176 | 0.224176 | 0.224176 | 0 | 0.001869 | 0.196697 | 666 | 25 | 70 | 26.64 | 0.848598 | 0 | 0 | 0.117647 | 0 | 0 | 0.012012 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.529412 | 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 | 1 | 0 | 0 | 3 |
f378b3dbb1db6b48f357ed803a3440dbd7d3f8cc | 52 | py | Python | standard_lib/tuple_comprehension.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 29 | 2019-03-25T09:35:12.000Z | 2022-01-08T22:09:03.000Z | standard_lib/tuple_comprehension.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | null | null | null | standard_lib/tuple_comprehension.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 4 | 2020-05-19T21:18:12.000Z | 2021-05-18T12:49:21.000Z | result = (*(x**2 for x in range(5)),)
print(result)
| 17.333333 | 37 | 0.596154 | 10 | 52 | 3.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.153846 | 52 | 2 | 38 | 26 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f38442a2607194d20f447af29d3da8a476761ae2 | 662 | py | Python | googlesearch/__init__.py | hzdg/django-google-search | 658ca2029efb7fdb3ca56de3398801d6b98cb99d | [
"MIT"
] | 4 | 2016-02-16T03:00:57.000Z | 2021-04-26T13:47:48.000Z | googlesearch/__init__.py | hzdg/django-google-search | 658ca2029efb7fdb3ca56de3398801d6b98cb99d | [
"MIT"
] | null | null | null | googlesearch/__init__.py | hzdg/django-google-search | 658ca2029efb7fdb3ca56de3398801d6b98cb99d | [
"MIT"
] | 2 | 2016-02-16T03:01:20.000Z | 2021-11-01T05:05:20.000Z | from django.conf import settings
""" Your GSE API key """
GOOGLE_SEARCH_API_KEY = getattr(settings, 'GOOGLE_SEARCH_API_KEY', None)
""" The ID of the Google Custom Search Engine """
GOOGLE_SEARCH_ENGINE_ID = getattr(settings, 'GOOGLE_SEARCH_ENGINE_ID', None)
""" The API version. Defaults to 'v1' """
GOOGLE_SEARCH_AP... | 33.1 | 76 | 0.758308 | 96 | 662 | 4.895833 | 0.333333 | 0.255319 | 0.223404 | 0.287234 | 0.238298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.134441 | 662 | 19 | 77 | 34.842105 | 0.809773 | 0 | 0 | 0 | 0 | 0 | 0.276169 | 0.271715 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3ae9c382dac19c132fcb303809acdae25ae7506 | 3,836 | py | Python | brain_training/codingBat_solutions/python/level_1/Logic1.py | kuzxnia/algoritms | eda3185f39d79a2657b7ef0da869fcc6b825889d | [
"MIT"
] | null | null | null | brain_training/codingBat_solutions/python/level_1/Logic1.py | kuzxnia/algoritms | eda3185f39d79a2657b7ef0da869fcc6b825889d | [
"MIT"
] | null | null | null | brain_training/codingBat_solutions/python/level_1/Logic1.py | kuzxnia/algoritms | eda3185f39d79a2657b7ef0da869fcc6b825889d | [
"MIT"
] | null | null | null | # When squirrels get together for a party, they like to have cigars. A squirrel party is successful
# when the number of cigars is between 40 and 60, inclusive. Unless it is the weekend, in which case there
# is no upper bound on the number of cigars. Return True if the party with the given values is successful,
# or F... | 42.153846 | 119 | 0.692649 | 726 | 3,836 | 3.634986 | 0.27135 | 0.023873 | 0.027283 | 0.017052 | 0.051535 | 0.009852 | 0 | 0 | 0 | 0 | 0 | 0.051595 | 0.232013 | 3,836 | 90 | 120 | 42.622222 | 0.844196 | 0.673358 | 0 | 0.257143 | 0 | 0 | 0.00982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0 | 0.142857 | 0.685714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
340eaa1089a93723ccc0bfde626d7c3d3bd6341a | 2,652 | py | Python | sqlhandler/custom/result.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | sqlhandler/custom/result.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | sqlhandler/custom/result.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | from __future__ import annotations
from functools import cached_property
from typing import Any, Optional, TYPE_CHECKING
from miscutils import ReprMixin
from sqlalchemy.engine import IteratorResult, Row, RowMapping
from sqlhandler.frame import Frame
if TYPE_CHECKING:
from sqlhandler import Sql
class Result(R... | 25.018868 | 69 | 0.650075 | 308 | 2,652 | 5.431818 | 0.178571 | 0.150628 | 0.172744 | 0.1052 | 0.506874 | 0.457262 | 0.367005 | 0.233114 | 0.233114 | 0.093246 | 0 | 0 | 0.236048 | 2,652 | 105 | 70 | 25.257143 | 0.825765 | 0 | 0 | 0.302632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.092105 | 0.210526 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
342bf7fe51b35c823fed81c22b8322c9e6421964 | 1,146 | py | Python | py/cidoc_crm_types/entities/e42_identifier.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/entities/e42_identifier.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/entities/e42_identifier.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .e41_appellation import E41Appellation
from dataclasses import dataclass
@dataclass
class E42Identifier(E41Appellation):
"""
Scope note:
This class comprises strings or codes assigned to instances of E1 CRM Entity in order to identify them uniquely and permanently within the context of one or more organisati... | 35.8125 | 458 | 0.749564 | 174 | 1,146 | 4.91954 | 0.810345 | 0.030374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121274 | 0.15096 | 1,146 | 31 | 459 | 36.967742 | 0.758479 | 0.816754 | 0 | 0 | 0 | 0 | 0.232323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
34345f2faadabdc6ce52b590d2f6e2d161b7bb69 | 3,946 | py | Python | src/imsApp/migrations/0001_initial.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | src/imsApp/migrations/0001_initial.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | src/imsApp/migrations/0001_initial.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-04-05 20:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='imsData',
fields=[
('id', models.AutoField(... | 69.22807 | 123 | 0.622656 | 449 | 3,946 | 5.374165 | 0.233853 | 0.126813 | 0.240365 | 0.288438 | 0.668048 | 0.572317 | 0.531289 | 0.531289 | 0.496477 | 0.22586 | 0 | 0.040273 | 0.219716 | 3,946 | 56 | 124 | 70.464286 | 0.743423 | 0.011404 | 0 | 0 | 1 | 0 | 0.122852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
34395039ca9a8495207ceceaa81f23e279cd6f21 | 186 | py | Python | Curso Python/PythonExercicios/ex024.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | Curso Python/PythonExercicios/ex024.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | Curso Python/PythonExercicios/ex024.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | cidade = str(input('Qual o nome da cidade? '))
print('SANTO' in cidade.strip().upper()[:5])
#cid = str(input('Em qual cidade você nasceu? ')).strip()
#print(cid[:5].upper() == 'SANTO')
| 31 | 57 | 0.629032 | 29 | 186 | 4.034483 | 0.586207 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.123656 | 186 | 5 | 58 | 37.2 | 0.705521 | 0.478495 | 0 | 0 | 0 | 0 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
345a0b25ad79e78fcdfe15d1bd8a3d166e9125a1 | 238 | py | Python | config.py | Schroedingberg/Schroedingberg.github.io | 807990ee1605c4d6c4ca1610d60085bdd48849b5 | [
"MIT"
] | null | null | null | config.py | Schroedingberg/Schroedingberg.github.io | 807990ee1605c4d6c4ca1610d60085bdd48849b5 | [
"MIT"
] | null | null | null | config.py | Schroedingberg/Schroedingberg.github.io | 807990ee1605c4d6c4ca1610d60085bdd48849b5 | [
"MIT"
] | null | null | null | config = {
"footer" : "Nothing here",
"author" : "Aaron Meinel",
"sidebardesc" : "What is going on with this sidebar?",
"indexdesc" : "Software Freedom, Science, Mathematics, Cats, Scripting, ...",
"title" : "Aaron Meinel's Blog",
}
| 29.75 | 78 | 0.651261 | 27 | 238 | 5.740741 | 0.925926 | 0.141935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168067 | 238 | 7 | 79 | 34 | 0.782828 | 0 | 0 | 0 | 0 | 0 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cab698a0e13b8bb2e3b3b2dcce0f427b1549731e | 178 | py | Python | SHIMON/api/msg_policy.py | dosisod/SHIMON | bdcafc1d1036390e1872d0f17bbda511891e02dc | [
"MIT"
] | null | null | null | SHIMON/api/msg_policy.py | dosisod/SHIMON | bdcafc1d1036390e1872d0f17bbda511891e02dc | [
"MIT"
] | 1 | 2020-03-06T07:17:27.000Z | 2020-03-06T07:17:27.000Z | SHIMON/api/msg_policy.py | dosisod/SHIMON | bdcafc1d1036390e1872d0f17bbda511891e02dc | [
"MIT"
] | null | null | null | from SHIMON.api.int_range import ApiIntRange
class ApiMsgPolicy(ApiIntRange):
callname = "msg policy"
cachename = "msg policy"
min_allowed = 0
max_allowed = 2
| 17.8 | 44 | 0.707865 | 22 | 178 | 5.590909 | 0.818182 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.219101 | 178 | 9 | 45 | 19.777778 | 0.870504 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
caeb1ab63e7aef8b2626c2af88ba1ee2e7a8488e | 379 | py | Python | tests/schema/product/gql/mutations/mutation_update_product_relation_type.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | null | null | null | tests/schema/product/gql/mutations/mutation_update_product_relation_type.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | 24 | 2020-04-02T19:29:07.000Z | 2022-03-08T03:05:43.000Z | tests/schema/product/gql/mutations/mutation_update_product_relation_type.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | 1 | 2020-04-08T15:48:28.000Z | 2020-04-08T15:48:28.000Z | from ..fragments import FRAGMENT_PRODUCT_RELATION_TYPE
MUTATION_UPDATE_PRODUCT_RELATION_TYPE = '''
mutation UpdateProductRelationType(
$typeId: Int!
$input: UpdateProductRelationTypeInput!
) {
updateProductRelationType(typeId: $typeId, input: $input) {
ok
productRelationType {
...fragmentProductRel... | 23.6875 | 61 | 0.759894 | 30 | 379 | 9.266667 | 0.566667 | 0.161871 | 0.205036 | 0.194245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150396 | 379 | 15 | 62 | 25.266667 | 0.863354 | 0 | 0 | 0 | 0 | 0 | 0.641161 | 0.316623 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
caee87786527ba18d1097d4f138b852b1207144d | 213 | py | Python | lfd_hw7/hw7_q7.py | MahmutOsmanovic/machine-learning-mooc-caltech | deca978e13f6d6950f06417c4d520e71904962d7 | [
"MIT"
] | null | null | null | lfd_hw7/hw7_q7.py | MahmutOsmanovic/machine-learning-mooc-caltech | deca978e13f6d6950f06417c4d520e71904962d7 | [
"MIT"
] | null | null | null | lfd_hw7/hw7_q7.py | MahmutOsmanovic/machine-learning-mooc-caltech | deca978e13f6d6950f06417c4d520e71904962d7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on: Tue Jul 6 15:03:54 2021
@author: Mahmut Osmanovic
"""
# https://github.com/homefish/edX_Learning_From_Data_2017/blob/master/homework_7/hw7_p7_Cross_Validation_error.ipynb | 26.625 | 116 | 0.751174 | 34 | 213 | 4.441176 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098958 | 0.098592 | 213 | 8 | 116 | 26.625 | 0.6875 | 0.943662 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1b02784eada958db9febf832897b4f1800f652a8 | 40 | py | Python | declare_qtquick/black_magic/world_status.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | 3 | 2021-11-02T03:45:27.000Z | 2022-03-27T05:33:36.000Z | declare_qtquick/black_magic/world_status.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | null | null | null | declare_qtquick/black_magic/world_status.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | null | null | null | class WorldStatus:
is_build = False
| 13.333333 | 20 | 0.725 | 5 | 40 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 40 | 2 | 21 | 20 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1b1c50657730f79535dbd4ebb9f7f5ed813c3ab9 | 416 | py | Python | main.py | kkosolapova/Libby | c643581aed5aa509fa5aeff37dcbd6597b6d5932 | [
"MIT"
] | null | null | null | main.py | kkosolapova/Libby | c643581aed5aa509fa5aeff37dcbd6597b6d5932 | [
"MIT"
] | null | null | null | main.py | kkosolapova/Libby | c643581aed5aa509fa5aeff37dcbd6597b6d5932 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os, sys
from wallaby import *
import wallaby as w
import constants as c
import actions as a
def main():
# a.drive_until_black()
a.follow_line(15)
""" w.enable_servos()
a.attack(3000)
w.msleep(1000)
a.turn_left(100, 1100)
a.move(80, 4100)
a.turn_right(100, 1500)
"""
... | 18.086957 | 55 | 0.641827 | 67 | 416 | 3.776119 | 0.641791 | 0.039526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093373 | 0.201923 | 416 | 23 | 56 | 18.086957 | 0.668675 | 0.09375 | 0 | 0 | 0 | 0 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1b1ff1a8ddc5224036b37bb57924f285b6cec59b | 211 | py | Python | tests/prebuilt/test_category_classification.py | sameer1996-cmd/sadedegel | 57738ef7e1945d7f7bfc82586ae8c39088783aa6 | [
"MIT"
] | 1 | 2021-08-06T19:29:55.000Z | 2021-08-06T19:29:55.000Z | tests/prebuilt/test_category_classification.py | sameer1996-cmd/sadedegel | 57738ef7e1945d7f7bfc82586ae8c39088783aa6 | [
"MIT"
] | null | null | null | tests/prebuilt/test_category_classification.py | sameer1996-cmd/sadedegel | 57738ef7e1945d7f7bfc82586ae8c39088783aa6 | [
"MIT"
] | null | null | null | from .context import news_classification, load_raw_corpus
def test_classify():
raw = load_raw_corpus()
model = news_classification.load()
y_pred = model.predict(raw)
assert len(y_pred) == 98
| 19.181818 | 57 | 0.71564 | 29 | 211 | 4.896552 | 0.62069 | 0.253521 | 0.309859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.189573 | 211 | 10 | 58 | 21.1 | 0.818713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1b5ec16167e42d64a581dea5340fa509cc0b3829 | 16,019 | py | Python | 0511.py | mauriceHsiao/untitled2 | 2034aa0776210e251c4234549c7c8f3ca5a83e65 | [
"MIT"
] | null | null | null | 0511.py | mauriceHsiao/untitled2 | 2034aa0776210e251c4234549c7c8f3ca5a83e65 | [
"MIT"
] | null | null | null | 0511.py | mauriceHsiao/untitled2 | 2034aa0776210e251c4234549c7c8f3ca5a83e65 | [
"MIT"
] | null | null | null | #coding:utf-8
from __future__ import division
# TP,TN,FP,FN 範例
print "---TP,TN,FP,FN---"
def accuracy(tp, fp, fn, tn):
correct = tp + tn
total = tp + fp + fn + tn
return correct / total
def precision(tp, fp, fn, tn):
return tp / (tp + fp)
def recall(tp, fp, fn, tn):
return tp / (tp + fn)
def f1... | 47.393491 | 1,201 | 0.634746 | 2,549 | 16,019 | 3.863084 | 0.183994 | 0.014624 | 0.006093 | 0.007718 | 0.18432 | 0.153854 | 0.125216 | 0.100538 | 0.07454 | 0.065401 | 0 | 0.232148 | 0.206193 | 16,019 | 338 | 1,202 | 47.393491 | 0.54223 | 0.072664 | 0 | 0.076 | 0 | 0 | 0.059903 | 0.005465 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004 | 0.048 | null | null | 0.096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1b641ada304086834d8c95b41b5a44b26998dc9b | 1,637 | py | Python | openpharmacophore/demo.py | dprada/OpenPharmacophore | bfcf4bdafd586b27a48fd5d1f13614707b5e55a8 | [
"MIT"
] | 2 | 2021-07-10T05:56:04.000Z | 2021-08-04T14:56:47.000Z | openpharmacophore/demo.py | dprada/OpenPharmacophore | bfcf4bdafd586b27a48fd5d1f13614707b5e55a8 | [
"MIT"
] | 21 | 2021-04-27T06:05:05.000Z | 2021-11-01T23:19:36.000Z | openpharmacophore/demo.py | dprada/OpenPharmacophore | bfcf4bdafd586b27a48fd5d1f13614707b5e55a8 | [
"MIT"
] | 3 | 2021-06-21T19:09:47.000Z | 2021-07-16T01:16:27.000Z | """Module with demonstration objects and files.
This module contains useful objects and files to help document and demonstrate the use of
OpenPharmacophore.
Attributes
----------
pharmacophore: :obj:`openpharmacophore.Pharmacophore`
Demonstration native pharmacophore object.
pharmacophore_pharmer_file : str
... | 35.586957 | 116 | 0.762981 | 198 | 1,637 | 6.237374 | 0.419192 | 0.064777 | 0.093117 | 0.125506 | 0.14251 | 0.125506 | 0.125506 | 0.125506 | 0.084211 | 0 | 0 | 0.019553 | 0.125229 | 1,637 | 45 | 117 | 36.377778 | 0.842877 | 0.813073 | 0 | 0 | 0 | 0 | 0.194539 | 0.136519 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1b65d25b54947bf4727f2e8471ab12fb5d1e1f70 | 189 | py | Python | Curso-Em-Video-Python/Mundo-1/EXs/EX027.py | victor-da-costa/Aprendendo-Python | 8fd19b93a13953cda30de02de7dac22b4e62fb5b | [
"MIT"
] | null | null | null | Curso-Em-Video-Python/Mundo-1/EXs/EX027.py | victor-da-costa/Aprendendo-Python | 8fd19b93a13953cda30de02de7dac22b4e62fb5b | [
"MIT"
] | null | null | null | Curso-Em-Video-Python/Mundo-1/EXs/EX027.py | victor-da-costa/Aprendendo-Python | 8fd19b93a13953cda30de02de7dac22b4e62fb5b | [
"MIT"
] | null | null | null | nome = str(input('Digite o seu nome completo: ')).strip().upper()
div = nome.split()
print('O seu primeiro nome é {}'.format(div[0]))
print('O seu ultimo nome é {}'.format(div[len(div)-1])) | 47.25 | 65 | 0.656085 | 33 | 189 | 3.757576 | 0.575758 | 0.096774 | 0.145161 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.116402 | 189 | 4 | 66 | 47.25 | 0.730539 | 0 | 0 | 0 | 0 | 0 | 0.389474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
1b693338ee6e0f29d240bf31d6592fa791b7452f | 2,141 | py | Python | tb_api_client/test/test_entity_relation_controller_api.py | MOSAIC-LoPoW/oss7-thingsboard-backend-example | 9b289dd7fdbb6e932ca338ad497a7bb1fc84d010 | [
"Apache-2.0"
] | 5 | 2017-11-27T15:48:16.000Z | 2020-09-21T04:18:47.000Z | tb_api_client/test/test_entity_relation_controller_api.py | MOSAIC-LoPoW/oss7-thingsboard-backend-example | 9b289dd7fdbb6e932ca338ad497a7bb1fc84d010 | [
"Apache-2.0"
] | null | null | null | tb_api_client/test/test_entity_relation_controller_api.py | MOSAIC-LoPoW/oss7-thingsboard-backend-example | 9b289dd7fdbb6e932ca338ad497a7bb1fc84d010 | [
"Apache-2.0"
] | 6 | 2018-01-14T17:23:46.000Z | 2019-06-24T13:38:54.000Z | # coding: utf-8
"""
Thingsboard REST API
For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>.
OpenAPI spec version: 2.0
Contact: info@thingsboard.io
Generated by: https://github.com/swagger-api/swagger-co... | 21.19802 | 149 | 0.658104 | 247 | 2,141 | 5.336032 | 0.336032 | 0.042489 | 0.066768 | 0.091047 | 0.355842 | 0.295144 | 0.179818 | 0 | 0 | 0 | 0 | 0.003211 | 0.27277 | 2,141 | 100 | 150 | 21.41 | 0.843288 | 0.368052 | 0 | 0.3 | 0 | 0 | 0.00747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.3 | 0.233333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1b911d1896c3a07baf229e07fb4230c9d79d90a6 | 65 | py | Python | src/page/page_file.py | baallezx/collect | 7156f239d133660e03bba334d716025b96d6b230 | [
"MIT"
] | 1 | 2016-02-08T10:53:48.000Z | 2016-02-08T10:53:48.000Z | src/page/page_file.py | baallezx/collect | 7156f239d133660e03bba334d716025b96d6b230 | [
"MIT"
] | null | null | null | src/page/page_file.py | baallezx/collect | 7156f239d133660e03bba334d716025b96d6b230 | [
"MIT"
] | null | null | null | """
a template for a file used by `page`
"""
class page_file():
| 13 | 37 | 0.630769 | 11 | 65 | 3.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 65 | 4 | 38 | 16.25 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ba9c1e8df730fc0bebe38d91a00e281e8765e64 | 1,206 | py | Python | exercises/en/test_08_18.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 1 | 2020-06-26T20:15:44.000Z | 2020-06-26T20:15:44.000Z | exercises/en/test_08_18.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 20 | 2020-06-15T23:05:20.000Z | 2020-09-01T22:07:45.000Z | exercises/en/test_08_18.py | UBC-MDS/MCL-programming-in-python | 22836d9013d3e3d1b1074678ba7dc3ee2e66f398 | [
"MIT"
] | 1 | 2020-06-25T20:53:13.000Z | 2020-06-25T20:53:13.000Z | def test():
import inspect
import numpy as np
# Here we can either check objects created in the solution code, or the
# string value of the solution, available as __solution__. A helper for
# printing formatted messages is available as __msg__. See the testTemplate
# in the meta.json for details... | 75.375 | 154 | 0.713101 | 186 | 1,206 | 4.494624 | 0.532258 | 0.028708 | 0.039474 | 0.061005 | 0.100478 | 0.100478 | 0 | 0 | 0 | 0 | 0 | 0.0348 | 0.189884 | 1,206 | 16 | 155 | 75.375 | 0.82088 | 0.245439 | 0 | 0 | 0 | 0.1 | 0.650829 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.1 | true | 0 | 0.2 | 0 | 0.3 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bb3a283e12b8c595c8118c0a4ff1323c2ff45c2 | 459 | py | Python | quupod/public/forms.py | CS70/queue | 45f0d7d49c957dee15d237e2a1364764a18ca085 | [
"Apache-2.0"
] | 11 | 2016-01-27T23:52:47.000Z | 2021-09-15T09:54:22.000Z | quupod/public/forms.py | alvinwan/quupod | 45f0d7d49c957dee15d237e2a1364764a18ca085 | [
"Apache-2.0"
] | 34 | 2016-01-26T21:07:12.000Z | 2017-11-29T00:38:19.000Z | quupod/public/forms.py | CS70/ohquu | 45f0d7d49c957dee15d237e2a1364764a18ca085 | [
"Apache-2.0"
] | 3 | 2016-05-17T18:29:54.000Z | 2022-01-01T23:58:48.000Z | from wtforms_alchemy import ModelForm, ModelFieldList
from wtforms.fields import FormField
from flask import g
import wtforms as wtf
from quupod.models import Inquiry, User
import flask_login
class LoginForm(wtf.Form):
username = wtf.StringField()
password = wtf.PasswordField()
class RegisterForm(ModelForm)... | 24.157895 | 56 | 0.721133 | 56 | 459 | 5.875 | 0.589286 | 0.066869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189542 | 459 | 18 | 57 | 25.5 | 0.884409 | 0.069717 | 0 | 0 | 0 | 0 | 0.059382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.461538 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
1bb7b926e570f39eb97fd1e95d54b5a608ddf56f | 306 | py | Python | io_scene_xray/prefs/__init__.py | clayne/blender-xray | 84d5d52049ec9e22c85ba8544995bd39c3a83e55 | [
"BSD-2-Clause"
] | null | null | null | io_scene_xray/prefs/__init__.py | clayne/blender-xray | 84d5d52049ec9e22c85ba8544995bd39c3a83e55 | [
"BSD-2-Clause"
] | null | null | null | io_scene_xray/prefs/__init__.py | clayne/blender-xray | 84d5d52049ec9e22c85ba8544995bd39c3a83e55 | [
"BSD-2-Clause"
] | null | null | null | # addon modules
from . import base
from . import ops
from . import props
from . import preset
from . import ui
modules = (ops, props, base, preset)
def register():
for module in modules:
module.register()
def unregister():
for module in reversed(modules):
module.unregister()
| 15.3 | 36 | 0.669935 | 39 | 306 | 5.25641 | 0.410256 | 0.243902 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238562 | 306 | 19 | 37 | 16.105263 | 0.879828 | 0.042484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1bc8a1da837102c645b5182c7b0ae55f6eb46206 | 216 | py | Python | Exercicios em Python/ex031.py | Raphael-Azevedo/Exercicios_Python | dece138f38edd02b0731aed78e44acccb021b3cb | [
"MIT"
] | null | null | null | Exercicios em Python/ex031.py | Raphael-Azevedo/Exercicios_Python | dece138f38edd02b0731aed78e44acccb021b3cb | [
"MIT"
] | null | null | null | Exercicios em Python/ex031.py | Raphael-Azevedo/Exercicios_Python | dece138f38edd02b0731aed78e44acccb021b3cb | [
"MIT"
] | null | null | null | v = float(input('Digite a distancia em km da sua viagem: '))
if v <= 200 :
print('O valor da sua viagem será de RS${:.2f}'.format(0.5*v))
else:
print('O valor da sua viagem será de RS${:.2f}'.format(0.45*v))
| 36 | 67 | 0.625 | 43 | 216 | 3.139535 | 0.581395 | 0.111111 | 0.244444 | 0.192593 | 0.577778 | 0.577778 | 0.577778 | 0.577778 | 0.577778 | 0.577778 | 0 | 0.057143 | 0.189815 | 216 | 5 | 68 | 43.2 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.546296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bd191e83134a88853c4cfe365df4fe0510daaa7 | 30 | py | Python | portfolios/portfolio/__init__.py | ahwkuepper/portfolio | 4ab6eebbb36c6064d58df62dbe931ead3b297be4 | [
"BSD-3-Clause"
] | 4 | 2020-08-18T09:52:37.000Z | 2021-03-26T19:59:03.000Z | portfolios/portfolio/__init__.py | ahwkuepper/portfolio | 4ab6eebbb36c6064d58df62dbe931ead3b297be4 | [
"BSD-3-Clause"
] | 4 | 2019-07-06T17:48:46.000Z | 2020-05-11T01:40:18.000Z | portfolios/portfolio/__init__.py | ahwkuepper/portfolio | 4ab6eebbb36c6064d58df62dbe931ead3b297be4 | [
"BSD-3-Clause"
] | 2 | 2019-02-28T08:02:47.000Z | 2019-07-09T04:23:23.000Z | __all__ = ["io", "portfolio"]
| 15 | 29 | 0.6 | 3 | 30 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94021eda0ee925e65726f26c17d6d39bd0b96e8f | 1,230 | py | Python | loss/loss.py | zitaozz/CASCMR | 25d6b248136ac32b6969e76f1fbdf3695e8ec207 | [
"MIT"
] | null | null | null | loss/loss.py | zitaozz/CASCMR | 25d6b248136ac32b6969e76f1fbdf3695e8ec207 | [
"MIT"
] | 1 | 2021-11-12T01:14:56.000Z | 2021-11-12T01:15:01.000Z | loss/loss.py | zitaozz/CASCMR | 25d6b248136ac32b6969e76f1fbdf3695e8ec207 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding: utf-8
import torch.nn as nn
import torch.nn.functional as F
class TripletLoss(nn.Module):
"""
Triplet loss
Takes embeddings of an anchor sample, a positive sample and a negative sample
"""
def __init__(self, margin=1.0):
super(TripletLoss, self).__init__()
... | 33.243243 | 81 | 0.656911 | 168 | 1,230 | 4.630952 | 0.297619 | 0.077121 | 0.071979 | 0.041131 | 0.748072 | 0.748072 | 0.748072 | 0.748072 | 0.560411 | 0.560411 | 0 | 0.021784 | 0.21626 | 1,230 | 36 | 82 | 34.166667 | 0.78527 | 0.098374 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
941d89a928f6bec59bf2861ae543390245c36ec5 | 16,752 | py | Python | pysnmp-with-texts/CISCO-VISM-CAC-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/CISCO-VISM-CAC-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/CISCO-VISM-CAC-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 CISCO-VISM-CAC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VISM-CAC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:18:23 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | 184.087912 | 1,196 | 0.789936 | 2,137 | 16,752 | 6.19139 | 0.201217 | 0.036278 | 0.063487 | 0.007256 | 0.414254 | 0.299599 | 0.253647 | 0.214043 | 0.198473 | 0.182601 | 0 | 0.043127 | 0.105838 | 16,752 | 90 | 1,197 | 186.133333 | 0.840176 | 0.019699 | 0 | 0.049383 | 0 | 0.197531 | 0.486383 | 0.043076 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.061728 | 0.098765 | 0 | 0.098765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
94280344bfb82aa0b13003a02e1c739a261ce8a5 | 239 | py | Python | skel/tests/tests/tests.py | kabute/panadero | 17deade88f2958eb886dfbe0aba8246779d758d6 | [
"MIT"
] | null | null | null | skel/tests/tests/tests.py | kabute/panadero | 17deade88f2958eb886dfbe0aba8246779d758d6 | [
"MIT"
] | null | null | null | skel/tests/tests/tests.py | kabute/panadero | 17deade88f2958eb886dfbe0aba8246779d758d6 | [
"MIT"
] | null | null | null | import unittest
from ##PROJECT##.##PROJECT## import ##PROJECT##
class Test##PROJECT##(unittest.TestCase):
def setUp(self):
self._obj = ##PROJECT##()
def test_##PROJECT##(self):
self._obj.##PROJECT##('Bastian')
| 18.384615 | 47 | 0.606695 | 26 | 239 | 5.461538 | 0.461538 | 0.15493 | 0.15493 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188285 | 239 | 12 | 48 | 19.916667 | 0.731959 | 0.410042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9432d465923255b7cec43d001c47528648943345 | 2,373 | py | Python | src/common/common.py | AnthonyMikh/aeropython_solutions | bc01870514967a68751c7c298fb46d394c4f3c1a | [
"MIT"
] | null | null | null | src/common/common.py | AnthonyMikh/aeropython_solutions | bc01870514967a68751c7c298fb46d394c4f3c1a | [
"MIT"
] | null | null | null | src/common/common.py | AnthonyMikh/aeropython_solutions | bc01870514967a68751c7c298fb46d394c4f3c1a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import math
import numpy as np
from matplotlib import pyplot as plt
from typing import NamedTuple, Tuple, List
Grid = Tuple['numpy.ndarray', 'numpy.ndarray']
class Coords(NamedTuple):
x: float
y: float
def __str__(self) -> str:
return f'({self.x}, {self.y})... | 27.917647 | 124 | 0.594606 | 345 | 2,373 | 3.924638 | 0.286957 | 0.044313 | 0.044313 | 0.032496 | 0.217134 | 0.128508 | 0 | 0 | 0 | 0 | 0 | 0.017367 | 0.247788 | 2,373 | 84 | 125 | 28.25 | 0.741176 | 0.014328 | 0 | 0.129032 | 0 | 0 | 0.073599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.064516 | 0.112903 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
943dc3ce13fe5b1a505997123f54e1f74cd1b9d0 | 278 | py | Python | trinity/boot_info.py | onyb/trinity | 347e2beac23c5c1bb4aab136bb44c162467f6ff7 | [
"MIT"
] | null | null | null | trinity/boot_info.py | onyb/trinity | 347e2beac23c5c1bb4aab136bb44c162467f6ff7 | [
"MIT"
] | null | null | null | trinity/boot_info.py | onyb/trinity | 347e2beac23c5c1bb4aab136bb44c162467f6ff7 | [
"MIT"
] | null | null | null | from argparse import Namespace
from typing import Dict, NamedTuple
from trinity.config import TrinityConfig
class BootInfo(NamedTuple):
args: Namespace
trinity_config: TrinityConfig
profile: bool
child_process_log_level: int
logger_levels: Dict[str, int]
| 21.384615 | 40 | 0.776978 | 34 | 278 | 6.205882 | 0.676471 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176259 | 278 | 12 | 41 | 23.166667 | 0.921397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9442ea0f0181ba3aa0dba92a35f737837703b128 | 189 | py | Python | recvCases/serializers.py | BattleJudge/recvCase | b7e55cd3c40603fe2c0086066421b269a0664f1e | [
"MIT"
] | null | null | null | recvCases/serializers.py | BattleJudge/recvCase | b7e55cd3c40603fe2c0086066421b269a0664f1e | [
"MIT"
] | null | null | null | recvCases/serializers.py | BattleJudge/recvCase | b7e55cd3c40603fe2c0086066421b269a0664f1e | [
"MIT"
] | null | null | null | from rest_framework import serializers
class TestCaseSerializer(serializers.Serializer):
problem_id=serializers.IntegerField(required=True)
file=serializers.FileField(required=True) | 47.25 | 54 | 0.846561 | 20 | 189 | 7.9 | 0.75 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 189 | 4 | 55 | 47.25 | 0.908046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
946eacad3833ff5dc443f53609c845b82ee08496 | 382 | py | Python | SportBetProject/Bet/admin.py | zhumakova/SportBetProject | 1f1e62752c15902b4429cce54ebacb394b1e3b74 | [
"MIT"
] | 1 | 2021-06-22T14:13:20.000Z | 2021-06-22T14:13:20.000Z | SportBetProject/Bet/admin.py | zhumakova/SportBetProject | 1f1e62752c15902b4429cce54ebacb394b1e3b74 | [
"MIT"
] | null | null | null | SportBetProject/Bet/admin.py | zhumakova/SportBetProject | 1f1e62752c15902b4429cce54ebacb394b1e3b74 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
class BetAdmin(admin.ModelAdmin):
list_display = ['profile','match','amount','result']
readonly_fields = ['match','result']
admin.site.register(Bet,BetAdmin)
class TransactionAdmin(admin.ModelAdmin):
list_display = ['amount']
admin.site.register(Tr... | 20.105263 | 56 | 0.748691 | 43 | 382 | 6.581395 | 0.534884 | 0.095406 | 0.180212 | 0.183746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115183 | 382 | 18 | 57 | 21.222222 | 0.837278 | 0 | 0 | 0 | 0 | 0 | 0.10733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
947c8ceae6433cdf0161536c7018c2f7cad54e4f | 1,092 | py | Python | JanrainMain.py | sats17/Janrain_Utility | 180fd59dc73a14e600af9cfa5751eaeaff6106fe | [
"MIT"
] | null | null | null | JanrainMain.py | sats17/Janrain_Utility | 180fd59dc73a14e600af9cfa5751eaeaff6106fe | [
"MIT"
] | 1 | 2020-08-20T15:38:02.000Z | 2020-11-17T16:18:03.000Z | JanrainMain.py | sats17/Janrain_Utility | 180fd59dc73a14e600af9cfa5751eaeaff6106fe | [
"MIT"
] | 1 | 2020-08-20T15:18:55.000Z | 2020-08-20T15:18:55.000Z | from JanrainInternal.GetRecordsFromJanrain import GetRecordsFromJanrain
from JanrainInternal.GetRecordsCountFromJanrain import GetRecordsCountFromJanrain
from JanrainInternal.UpdateRecordsInJanrain import UpdateRecordsInJanrain
from JanrainInternal.DeleteRecordsFromJanrain import DeleteRecordsFromJanrain
if __name__ =... | 54.6 | 117 | 0.550366 | 49 | 1,092 | 12.102041 | 0.489796 | 0.128162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090659 | 1,092 | 19 | 118 | 57.473684 | 0.59718 | 0.249084 | 0 | 0 | 0 | 0 | 0.075055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
8493c18158236e240759a601a439f13c3de56b64 | 2,037 | py | Python | test_packbits.py | psd-tools/packbits | 38909758005abfb891770996f321a630f3c9ece2 | [
"MIT"
] | 9 | 2016-04-04T19:56:49.000Z | 2019-02-26T09:45:44.000Z | test_packbits.py | kmike/packbits | 38909758005abfb891770996f321a630f3c9ece2 | [
"MIT"
] | 1 | 2020-02-23T05:50:12.000Z | 2020-02-23T05:50:12.000Z | test_packbits.py | kmike/packbits | 38909758005abfb891770996f321a630f3c9ece2 | [
"MIT"
] | 8 | 2015-12-12T20:22:24.000Z | 2021-08-04T12:49:08.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import packbits
DATA = b'\xFE\xAA\x02\x80\x00\x2A\xFD\xAA\x03\x80\x00\x2A\x22\xF7\xAA'
RESULT = b'\xAA\xAA\xAA\x80\x00\x2A\xAA\xAA\xAA\xAA\x80\x00\x2A\x22\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA'
def test_decode():
decoded = packbit... | 27.16 | 108 | 0.682376 | 287 | 2,037 | 4.714286 | 0.195122 | 0.062084 | 0.186253 | 0.219512 | 0.552846 | 0.470067 | 0.396157 | 0.361419 | 0.361419 | 0.26238 | 0 | 0.069892 | 0.178203 | 2,037 | 74 | 109 | 27.527027 | 0.738351 | 0.010309 | 0 | 0.285714 | 0 | 0.035714 | 0.113264 | 0.077496 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.25 | false | 0 | 0.035714 | 0 | 0.285714 | 0.017857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84aeec4dcccfad300bdbba9fa8dd698dbcd478a6 | 337 | py | Python | 作业/作业5/reliable-multicast-chat-master/reliable_multicast_chat/config.py | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | 7 | 2020-11-09T09:24:42.000Z | 2021-09-17T07:35:05.000Z | 作业/作业5/reliable-multicast-chat-master/reliable_multicast_chat/config.py | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | null | null | null | 作业/作业5/reliable-multicast-chat-master/reliable_multicast_chat/config.py | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | 1 | 2022-01-21T03:23:14.000Z | 2022-01-21T03:23:14.000Z | """
hosts is a list of (IP address, port)
ordering can be either 'casual' or 'total'
"""
config = {
'hosts': [
('127.0.0.1', 16400),
('127.0.0.1', 16401),
('127.0.0.1', 16402),
('127.0.0.1', 16403),
('127.0.0.1', 16404),
('222.200.180.49', 12207),
],
'orderi... | 18.722222 | 42 | 0.459941 | 49 | 337 | 3.163265 | 0.591837 | 0.129032 | 0.16129 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299578 | 0.296736 | 337 | 17 | 43 | 19.823529 | 0.35443 | 0.240356 | 0 | 0 | 0 | 0 | 0.314516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84af2b104ffe7aff66e4367b891574c7a988ff46 | 103 | py | Python | ramda/private/_forceReduced.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 1 | 2022-03-14T07:35:13.000Z | 2022-03-14T07:35:13.000Z | ramda/private/_forceReduced.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 3 | 2022-03-24T02:30:18.000Z | 2022-03-31T07:46:04.000Z | ramda/private/_forceReduced.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | null | null | null | def _forceReduced(x):
return {
'@@transducer/value': x,
'@@transducer/reduced': True
}
| 17.166667 | 34 | 0.582524 | 10 | 103 | 5.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242718 | 103 | 5 | 35 | 20.6 | 0.75641 | 0 | 0 | 0 | 0 | 0 | 0.368932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
84b296ccc1e86f5f3c297b117c6ab12f31ace13c | 232 | py | Python | homeschool/users/models.py | Lelouchyagami/homeschool | 49665aea487405c92c2af596b545f2553e766de8 | [
"MIT"
] | null | null | null | homeschool/users/models.py | Lelouchyagami/homeschool | 49665aea487405c92c2af596b545f2553e766de8 | [
"MIT"
] | 24 | 2020-04-02T18:29:21.000Z | 2021-06-10T18:48:29.000Z | homeschool/users/models.py | Lelouchyagami/homeschool | 49665aea487405c92c2af596b545f2553e766de8 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.utils.functional import cached_property
# Create your models here.
class User(AbstractUser):
@cached_property
def school(self):
return self.school_set.latest("id") | 29 | 51 | 0.810345 | 32 | 232 | 5.78125 | 0.71875 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 232 | 8 | 52 | 29 | 0.889423 | 0.103448 | 0 | 0 | 0 | 0 | 0.009662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
84b2b32f488a55a865afa9695a370dfc4fab3ed1 | 155 | py | Python | magichue/__init__.py | drbayer/python-magichue | e5be1226d75cf51bfe133d49823763671740b9c3 | [
"MIT"
] | 48 | 2018-10-12T19:21:42.000Z | 2022-02-14T06:59:39.000Z | magichue/__init__.py | drbayer/python-magichue | e5be1226d75cf51bfe133d49823763671740b9c3 | [
"MIT"
] | 29 | 2018-06-02T13:10:04.000Z | 2021-09-05T17:37:47.000Z | magichue/__init__.py | Mesteriis/python-magichue | ab4b5e8ff6181239f39683765bf384b031e38178 | [
"MIT"
] | 14 | 2018-09-08T14:00:17.000Z | 2022-01-16T11:20:05.000Z | from .magichue import Light
from .modes import *
from .discover import discover_bulbs
__author__ = 'namacha'
__version__ = '0.2.9.3'
__license__ = 'MIT'
| 17.222222 | 36 | 0.748387 | 21 | 155 | 4.904762 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.148387 | 155 | 8 | 37 | 19.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.109677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
84bf79c3828596d805b59d4ce73ebd02f9764544 | 4,836 | py | Python | steam/protobufs/steammessages_gamenotifications.py | InsDev/steam.py | 089618989c09f4692660b40df1304ea7ccf964f4 | [
"MIT"
] | 1 | 2020-09-01T12:32:09.000Z | 2020-09-01T12:32:09.000Z | steam/protobufs/steammessages_gamenotifications.py | InsDev/steam.py | 089618989c09f4692660b40df1304ea7ccf964f4 | [
"MIT"
] | null | null | null | steam/protobufs/steammessages_gamenotifications.py | InsDev/steam.py | 089618989c09f4692660b40df1304ea7ccf964f4 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: steammessages_gamenotifications.proto
# plugin: python-betterproto
from dataclasses import dataclass
from typing import List
import betterproto
@dataclass
class CGameNotificationsVariable(betterproto.Message):
key: str = betterproto.string_fi... | 33.818182 | 111 | 0.801489 | 459 | 4,836 | 8.296296 | 0.196078 | 0.160714 | 0.084559 | 0.065651 | 0.566439 | 0.392069 | 0.38209 | 0.361082 | 0.194328 | 0.194328 | 0 | 0.023576 | 0.114144 | 4,836 | 142 | 112 | 34.056338 | 0.865313 | 0.026882 | 0 | 0.463918 | 1 | 0 | 0.090387 | 0.090387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.030928 | 0.030928 | 0 | 0.762887 | 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 | 1 | 0 | 0 | 3 |
84c79d23db1d4d42a2cab316c7bf738dfa485dfe | 5,403 | py | Python | haprestio/api_v1/pub.py | innofocus/haprestio | 6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde | [
"MIT"
] | null | null | null | haprestio/api_v1/pub.py | innofocus/haprestio | 6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde | [
"MIT"
] | null | null | null | haprestio/api_v1/pub.py | innofocus/haprestio | 6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde | [
"MIT"
] | null | null | null | from flask_restplus import Resource
from flask_jwt_extended import jwt_required, get_jwt_identity, get_jwt_claims
from . import pub_ns, fqdn_ns, fqdn_mr, fqdn_m, cert_mr
from ..data.data import DataCasting
from ..data.fqdns import Fqdns, Fqdn
from ..data.certs import Certs, Cert
@pub_ns.route('/fqdn', endpoint='publ... | 37.262069 | 98 | 0.632797 | 717 | 5,403 | 4.615063 | 0.147838 | 0.051375 | 0.039287 | 0.038682 | 0.74796 | 0.74796 | 0.740103 | 0.678151 | 0.662134 | 0.609852 | 0 | 0.018589 | 0.223394 | 5,403 | 145 | 99 | 37.262069 | 0.770019 | 0.078475 | 0 | 0.588785 | 0 | 0 | 0.23978 | 0.014033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074766 | false | 0 | 0.056075 | 0 | 0.317757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84d2783812751684ab03c5d5ad9661fd97a03cc0 | 19 | py | Python | test/completion/namespace1/pkg1/pkg2/mod1.py | tomaarsen/jedi | fae26fa7a427b94a21e11500503d8008647e6309 | [
"MIT"
] | 4,213 | 2015-01-02T15:43:22.000Z | 2022-03-31T16:15:01.000Z | test/completion/namespace1/pkg1/pkg2/mod1.py | tomaarsen/jedi | fae26fa7a427b94a21e11500503d8008647e6309 | [
"MIT"
] | 1,392 | 2015-01-02T18:43:39.000Z | 2022-03-27T18:43:59.000Z | test/completion/namespace1/pkg1/pkg2/mod1.py | tomaarsen/jedi | fae26fa7a427b94a21e11500503d8008647e6309 | [
"MIT"
] | 525 | 2015-01-02T19:07:31.000Z | 2022-03-13T02:03:20.000Z | mod1_name = 'mod1'
| 9.5 | 18 | 0.684211 | 3 | 19 | 4 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.157895 | 19 | 1 | 19 | 19 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84f0014c06765753d65201e7b884486bedb945c9 | 2,527 | py | Python | aiosmf/smf/rpc/header.py | noahdesu/aiosmf | 72ff874a2750c253cf7c0154c2a676e521bea7ce | [
"Apache-2.0"
] | 1 | 2019-03-30T17:22:08.000Z | 2019-03-30T17:22:08.000Z | aiosmf/smf/rpc/header.py | senior7515/aiosmf | 72ff874a2750c253cf7c0154c2a676e521bea7ce | [
"Apache-2.0"
] | 6 | 2019-03-30T17:58:52.000Z | 2019-04-09T13:09:49.000Z | aiosmf/smf/rpc/header.py | noahdesu/aiosmf | 72ff874a2750c253cf7c0154c2a676e521bea7ce | [
"Apache-2.0"
] | 2 | 2019-03-31T14:09:40.000Z | 2022-03-22T16:51:18.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: rpc
import flatbuffers
# /// \brief: header parsed by rpc engine
# /// must be sizeof()'able
# /// that is, must be a struct in fbs language
# ///
# /// layout
# /// [ 8bits(compression) + 8bits(bitflags) + 16bits(session) + 32bits(siz... | 40.111111 | 150 | 0.711516 | 329 | 2,527 | 5.349544 | 0.413374 | 0.051705 | 0.15 | 0.057955 | 0.346023 | 0.346023 | 0.346023 | 0.346023 | 0.322159 | 0.293182 | 0 | 0.023876 | 0.154729 | 2,527 | 62 | 151 | 40.758065 | 0.800094 | 0.411555 | 0 | 0 | 1 | 0 | 0.002759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.05 | 0.3 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
84fb2b9e2704184ea037866cd398f21cd0b293ba | 214 | py | Python | invitely/urls.py | sensimevanidus/django-invitely | d41274e227111ba33fc651787be3ffff234f96c1 | [
"MIT"
] | null | null | null | invitely/urls.py | sensimevanidus/django-invitely | d41274e227111ba33fc651787be3ffff234f96c1 | [
"MIT"
] | null | null | null | invitely/urls.py | sensimevanidus/django-invitely | d41274e227111ba33fc651787be3ffff234f96c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns('',
url(r'^invitation/?(?P<invitation_code>[\w|\W]+)?/?$', views.invitation, name='invitation',)
) | 26.75 | 96 | 0.654206 | 27 | 214 | 5.148148 | 0.666667 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.121495 | 214 | 8 | 97 | 26.75 | 0.734043 | 0.098131 | 0 | 0 | 0 | 0 | 0.291667 | 0.239583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
84fcdbeee74b9351eec15bb5edb8ded885cc79ec | 145 | py | Python | papi/__init__.py | milanov/papi | 0e9f8ad633fc6fd7a5d07748a31157801eeaafa4 | [
"MIT"
] | null | null | null | papi/__init__.py | milanov/papi | 0e9f8ad633fc6fd7a5d07748a31157801eeaafa4 | [
"MIT"
] | null | null | null | papi/__init__.py | milanov/papi | 0e9f8ad633fc6fd7a5d07748a31157801eeaafa4 | [
"MIT"
] | null | null | null | """
PAPI
=======
PAPI stands for Python API and is a simple API documentation
generator specifically written for Python.
"""
VERSION = "0.0.1"
| 14.5 | 60 | 0.696552 | 21 | 145 | 4.809524 | 0.761905 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.172414 | 145 | 9 | 61 | 16.111111 | 0.816667 | 0.806897 | 0 | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1701eb43e5148c683b1de195457b608d72bd713c | 357 | py | Python | melissa/actions/horoscope.py | amanmehta-maniac/newMel | 53fe6ade9778133cb33882e536e70559cfa2e665 | [
"MIT"
] | null | null | null | melissa/actions/horoscope.py | amanmehta-maniac/newMel | 53fe6ade9778133cb33882e536e70559cfa2e665 | [
"MIT"
] | null | null | null | melissa/actions/horoscope.py | amanmehta-maniac/newMel | 53fe6ade9778133cb33882e536e70559cfa2e665 | [
"MIT"
] | null | null | null | from horoscope_generator import HoroscopeGenerator
# Melissa
from melissa.tts import tts
WORDS = {'tell_horoscope': {'groups': [['tell', 'future'], ['say', 'wise'], ['how', 'day'], ['hows', 'day'], ['how', 'today'], ['hows', 'today'], 'horoscope']}}
def tell_horoscope(text):
tts(HoroscopeGenerator.format_sentenc... | 39.666667 | 160 | 0.686275 | 39 | 357 | 6.153846 | 0.564103 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10084 | 357 | 9 | 161 | 39.666667 | 0.747664 | 0.019608 | 0 | 0 | 0 | 0 | 0.217765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
ca3d7bae03ec83e9c179b0fc534906c0870e0fd5 | 302 | py | Python | Clase_1/snippets/hint_q0.py | uncrayon/python-para-sistemas | fd5cf613996c02465780b3f0f058681e824f831a | [
"MIT"
] | null | null | null | Clase_1/snippets/hint_q0.py | uncrayon/python-para-sistemas | fd5cf613996c02465780b3f0f058681e824f831a | [
"MIT"
] | null | null | null | Clase_1/snippets/hint_q0.py | uncrayon/python-para-sistemas | fd5cf613996c02465780b3f0f058681e824f831a | [
"MIT"
] | null | null | null | # Este el el hint
# Recuerda que para poder correr deberás primero declara una variable, por ejemplo
# Si la pregunta fuera sobre tu color favorito entonces podrías hacer
# color = 'negro'
# print(color)
# No olvides correr la celda apretando el símbolo de play o bien alguna variación de shift+enter | 37.75 | 96 | 0.778146 | 48 | 302 | 4.895833 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178808 | 302 | 8 | 96 | 37.75 | 0.947581 | 0.953642 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca4350dc423dbef99466373dadc18eb601f19340 | 20 | py | Python | PCPPScraper/__init__.py | A1phyte/PCPPScraper | a78f5de59f1fab2fe354261dcd01e74abfc18fd9 | [
"MIT"
] | null | null | null | PCPPScraper/__init__.py | A1phyte/PCPPScraper | a78f5de59f1fab2fe354261dcd01e74abfc18fd9 | [
"MIT"
] | null | null | null | PCPPScraper/__init__.py | A1phyte/PCPPScraper | a78f5de59f1fab2fe354261dcd01e74abfc18fd9 | [
"MIT"
] | null | null | null | name = 'PCPPScraper' | 20 | 20 | 0.75 | 2 | 20 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 20 | 1 | 20 | 20 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca4587dd761f8bc6b7bb096df2c8cc4125e4c1d1 | 186 | py | Python | environment/python2-cgdk/model/PlayerContext.py | tgeorgy/aidriver | e35278abd39f696b8113692aa16ee0c3fe7f07cd | [
"MIT"
] | 1 | 2018-11-18T05:07:47.000Z | 2018-11-18T05:07:47.000Z | environment/python2-cgdk/model/PlayerContext.py | tgeorgy/aidriver | e35278abd39f696b8113692aa16ee0c3fe7f07cd | [
"MIT"
] | null | null | null | environment/python2-cgdk/model/PlayerContext.py | tgeorgy/aidriver | e35278abd39f696b8113692aa16ee0c3fe7f07cd | [
"MIT"
] | null | null | null | from math import *
from model.Car import Car
from model.World import World
class PlayerContext:
def __init__(self, cars, world):
self.cars = cars
self.world = world | 20.666667 | 36 | 0.688172 | 26 | 186 | 4.769231 | 0.461538 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241935 | 186 | 9 | 37 | 20.666667 | 0.879433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ca5869fe3efff83419b717f85a3b2a2dc2624e45 | 179 | py | Python | Exercism/acronym/acronym.py | adityaarakeri/Interview-solved | e924011d101621c7121f4f86d82bee089f4c1e25 | [
"MIT"
] | 46 | 2019-10-14T01:21:35.000Z | 2022-01-08T23:55:15.000Z | Exercism/acronym/acronym.py | Siddhant-K-code/Interview-solved | e924011d101621c7121f4f86d82bee089f4c1e25 | [
"MIT"
] | 53 | 2019-10-03T17:16:43.000Z | 2020-12-08T12:48:19.000Z | Exercism/acronym/acronym.py | Siddhant-K-code/Interview-solved | e924011d101621c7121f4f86d82bee089f4c1e25 | [
"MIT"
] | 96 | 2019-10-03T18:12:10.000Z | 2021-03-14T19:41:06.000Z | def abbreviate(words):
special_seps = ["-"]
for sep in special_seps:
words = words.replace(sep, ' ')
return ''.join(word[0].upper() for word in words.split())
| 29.833333 | 61 | 0.608939 | 24 | 179 | 4.458333 | 0.625 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.223464 | 179 | 5 | 62 | 35.8 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca6e7ba6c470f174ab2e6685c770c3fedc00a2ef | 191 | py | Python | headmouse/output_drivers/stdout.py | aranchelk/headmouse | 1c6f304d4dc2bc8a5b377de1649f7208975c6323 | [
"BSD-3-Clause"
] | 9 | 2016-06-27T16:43:33.000Z | 2021-05-19T04:29:24.000Z | headmouse/output_drivers/stdout.py | aranchelk/headmouse | 1c6f304d4dc2bc8a5b377de1649f7208975c6323 | [
"BSD-3-Clause"
] | null | null | null | headmouse/output_drivers/stdout.py | aranchelk/headmouse | 1c6f304d4dc2bc8a5b377de1649f7208975c6323 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import sys
def send_xy(xy):
x, y = xy
sys.stdout.write("%s, %s\n" % (str("{0:.2f}".format(x)), str("{0:.2f}".format(y))))
sys.stdout.flush() | 27.285714 | 87 | 0.60733 | 33 | 191 | 3.333333 | 0.606061 | 0.163636 | 0.109091 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.157068 | 191 | 7 | 88 | 27.285714 | 0.658385 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ca77e98e6584a5ee08e5d92be38d1bdbf0fda1d1 | 28 | py | Python | jfx_bridge_ida/server/jfx_bridge_ida_port.py | justfoxing/jfx_bridge_ida | ea282caab1484e100e0fe89c5ced7f4cdfd8ee04 | [
"MIT"
] | 9 | 2020-08-27T18:05:33.000Z | 2022-02-21T13:44:23.000Z | jfx_bridge_ida/server/jfx_bridge_ida_port.py | justfoxing/jfx_bridge_ida | ea282caab1484e100e0fe89c5ced7f4cdfd8ee04 | [
"MIT"
] | null | null | null | jfx_bridge_ida/server/jfx_bridge_ida_port.py | justfoxing/jfx_bridge_ida | ea282caab1484e100e0fe89c5ced7f4cdfd8ee04 | [
"MIT"
] | 2 | 2020-08-16T08:52:49.000Z | 2022-03-02T12:03:36.000Z | DEFAULT_SERVER_PORT = 19855
| 14 | 27 | 0.857143 | 4 | 28 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.107143 | 28 | 1 | 28 | 28 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca86912eec682732ee116f828b82b111301db434 | 1,914 | py | Python | etc/asd.py | 837477/Sejong_information_board | a3a453e22d9303144888e83dd5b3526a4dec9f30 | [
"MIT"
] | 1 | 2019-05-31T19:10:38.000Z | 2019-05-31T19:10:38.000Z | etc/asd.py | 837477/Sejong_information_board | a3a453e22d9303144888e83dd5b3526a4dec9f30 | [
"MIT"
] | 5 | 2021-06-01T23:47:50.000Z | 2022-02-28T06:46:45.000Z | etc/asd.py | iml1111/SeJaBo | b483babcb717f7a6aace1ae0e94bcd02d5c7fd24 | [
"MIT"
] | null | null | null | import random
from pprint import pprint
import time
import os
#input_list = [random.randint(1,4) for i in range(40)]
input_list = [1,2,3,4] * 10
shuffle_list = []
n = 115
block = {
1:{"w":9,"h":12},
2:{"w":11,"h":15},
3:{"w":14,"h":19},
4:{"w":17,"h":23}
}
def Find_block(n):
for i in range(len(input_list)):
if inpu... | 23.925 | 54 | 0.621735 | 316 | 1,914 | 3.572785 | 0.196203 | 0.253322 | 0.301151 | 0.372011 | 0.609389 | 0.609389 | 0.609389 | 0.606732 | 0.576616 | 0.576616 | 0 | 0.073329 | 0.19488 | 1,914 | 80 | 55 | 23.925 | 0.659312 | 0.037618 | 0 | 0.519481 | 0 | 0 | 0.009234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0 | 0.051948 | 0 | 0.103896 | 0.012987 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
046c3f308be2082b0caeee43d258650d4390ac23 | 70 | py | Python | tests/dataset/complex/nonlocal_access.py | hugovk/reiz.io | 26b93fc1e58097bcb97989e916f549a04eb14cae | [
"Apache-2.0"
] | 43 | 2020-09-20T09:37:06.000Z | 2021-11-12T11:56:27.000Z | tests/dataset/complex/nonlocal_access.py | hugovk/reiz.io | 26b93fc1e58097bcb97989e916f549a04eb14cae | [
"Apache-2.0"
] | 37 | 2020-09-20T09:37:49.000Z | 2021-06-25T11:08:38.000Z | tests/dataset/complex/nonlocal_access.py | hugovk/reiz.io | 26b93fc1e58097bcb97989e916f549a04eb14cae | [
"Apache-2.0"
] | 4 | 2020-10-04T13:47:06.000Z | 2022-01-02T19:35:13.000Z | @foo
def foo():
foo()
if body:
run()
return run()
| 10 | 16 | 0.428571 | 9 | 70 | 3.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.414286 | 70 | 6 | 17 | 11.666667 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
047143e691ce0ed753235a9fe931fa44ee7029c1 | 113 | py | Python | airflow/dags/dag_setup/__init__.py | bennimi/airflow-ML-setup | a5070fe34412dbf1bf5eba5d0ecc878a87cf6c07 | [
"Apache-2.0"
] | null | null | null | airflow/dags/dag_setup/__init__.py | bennimi/airflow-ML-setup | a5070fe34412dbf1bf5eba5d0ecc878a87cf6c07 | [
"Apache-2.0"
] | null | null | null | airflow/dags/dag_setup/__init__.py | bennimi/airflow-ML-setup | a5070fe34412dbf1bf5eba5d0ecc878a87cf6c07 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: bennimi
"""
#__all__=['ModelsModule']
if __name__=='__main__':
pass | 9.416667 | 25 | 0.566372 | 11 | 113 | 4.727273 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.185841 | 113 | 12 | 26 | 9.416667 | 0.554348 | 0.557522 | 0 | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0476d947063de4d1382b0cbeb8a26d6a789e92aa | 746 | py | Python | fetchdebugutils.py | buffis/fetch | 2ef97c397dc189800460b2dd419a4af2c5bba374 | [
"MIT"
] | 1 | 2015-06-03T18:05:14.000Z | 2015-06-03T18:05:14.000Z | fetchdebugutils.py | buffis/fetch | 2ef97c397dc189800460b2dd419a4af2c5bba374 | [
"MIT"
] | null | null | null | fetchdebugutils.py | buffis/fetch | 2ef97c397dc189800460b2dd419a4af2c5bba374 | [
"MIT"
] | null | null | null | """
Stuff that can be used to debug Fetch files and/or the fetch lexer, parser or interpreter.
IMPORTANT: Other modules are _not_ allowed to have dependencies on this one.
"""
def print_lexed(filename):
import fetchlexer
l = fetchlexer.get_lexer()
# Give the lexer some input
l.input(open(filename).r... | 23.3125 | 90 | 0.66756 | 98 | 746 | 4.938776 | 0.673469 | 0.049587 | 0.070248 | 0.086777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25067 | 746 | 32 | 91 | 23.3125 | 0.865832 | 0.087131 | 0 | 0 | 0 | 0 | 0.135729 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | null | null | 0.058824 | 0.176471 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
047a4a2be59c4a2c0ad801408ba86338ba387332 | 281 | py | Python | 59A Word.py | YasirAhmad-EccentriX/CodeForces | d004b4d1b52a360ac6c06870e0a237345771e32c | [
"MIT"
] | 1 | 2021-01-29T16:30:09.000Z | 2021-01-29T16:30:09.000Z | 59A Word.py | YasirAhmad-EccentriX/CodeForces | d004b4d1b52a360ac6c06870e0a237345771e32c | [
"MIT"
] | null | null | null | 59A Word.py | YasirAhmad-EccentriX/CodeForces | d004b4d1b52a360ac6c06870e0a237345771e32c | [
"MIT"
] | null | null | null | s=input()
p=0
for l in s:
if 64<ord(l)<91:
p+=1
else:
p-=1
#if p=+ve; n({A,B,..,Y,Z})>n({a,b,..y,z})
#if p=-ve; n({A,B,...Y,Z})<n({a,b,..y,z})
#if p=0; n({A,B,..,Y,Z})==n({a,b,..y,z})
if p>0:
print(s.upper())
else:
print(s.lower())
| 17.5625 | 42 | 0.380783 | 67 | 281 | 1.597015 | 0.328358 | 0.11215 | 0.168224 | 0.224299 | 0.448598 | 0.448598 | 0.448598 | 0.448598 | 0.448598 | 0.448598 | 0 | 0.043478 | 0.263345 | 281 | 15 | 43 | 18.733333 | 0.47343 | 0.427046 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
048da8c22cef7a0c658ab2326fe2fc65b14fff37 | 408 | py | Python | iairfoil.py | Aerotau/MDO | 702f37c584117c2f8eb863137a1eeefc855241c0 | [
"MIT"
] | null | null | null | iairfoil.py | Aerotau/MDO | 702f37c584117c2f8eb863137a1eeefc855241c0 | [
"MIT"
] | null | null | null | iairfoil.py | Aerotau/MDO | 702f37c584117c2f8eb863137a1eeefc855241c0 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class IAirfoil(ABC):
def Cl(self) -> tuple:
raise NotImplementedError
def Cd(self) -> tuple:
raise NotImplementedError
def Cm(self) -> tuple:
raise NotImplementedError
@abstractmethod
@property
def Cl_max(self) -> float:
raise NotImplementedError
@... | 16.32 | 35 | 0.705882 | 44 | 408 | 6.5 | 0.409091 | 0.41958 | 0.146853 | 0.346154 | 0.594406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213235 | 408 | 24 | 36 | 17 | 0.890966 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04bc2d93d667f635f0ed5ef71ddfe3e6c965ab98 | 682 | py | Python | app/api/v1/municipalities.py | skasberger/owat_api | d40860eeef0de151d51200161baaf10c55810fb1 | [
"MIT"
] | 1 | 2020-11-09T08:05:17.000Z | 2020-11-09T08:05:17.000Z | app/api/v1/municipalities.py | skasberger/owat_api | d40860eeef0de151d51200161baaf10c55810fb1 | [
"MIT"
] | 1 | 2020-11-14T06:40:56.000Z | 2020-11-14T12:18:00.000Z | app/api/v1/municipalities.py | skasberger/owat_api | d40860eeef0de151d51200161baaf10c55810fb1 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
""""""
from fastapi import APIRouter, Depends
from sqlalchemy.orm import Session
from app.crud import get_all, get_first
from app.database import get_db
from app.models import Municipality as municipality_model
router = APIRouter()
@router.get("/", tags=["municipaliti... | 27.28 | 84 | 0.737537 | 91 | 682 | 5.351648 | 0.373626 | 0.11499 | 0.094456 | 0.098563 | 0.229979 | 0.123203 | 0.123203 | 0 | 0 | 0 | 0 | 0.001686 | 0.130499 | 682 | 24 | 85 | 28.416667 | 0.819562 | 0.061584 | 0 | 0 | 0 | 0 | 0.098257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0.142857 | 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 | 1 | 1 | 0 | 0 | 3 |
04c0be0e5f0ef15dcaa284a4d82377dccd716e0f | 1,288 | py | Python | miconvulucion.py | DiegoAgSn28/hcap-prueba1 | f806c163cf726fafccf15f13c903da0a7756e100 | [
"MIT"
] | 1 | 2020-10-27T20:21:15.000Z | 2020-10-27T20:21:15.000Z | miconvulucion.py | DiegoAgSn28/hcap-prueba1 | f806c163cf726fafccf15f13c903da0a7756e100 | [
"MIT"
] | null | null | null | miconvulucion.py | DiegoAgSn28/hcap-prueba1 | f806c163cf726fafccf15f13c903da0a7756e100 | [
"MIT"
] | null | null | null | import numpy as np
def convulucion(A,B):
n=0
m=0
o=0
p=0
d=0
C=np.zeros((len(A)-2,len(A[0])-2))
while o<len(A)-2:
if m==0 and o==0:
for i in range(len(A)-1):
for j in range(len(A[0])-1):
n+=A[i][j]*B[i][j]
p+=n
... | 21.114754 | 51 | 0.339286 | 238 | 1,288 | 1.836134 | 0.180672 | 0.100687 | 0.183066 | 0.201373 | 0.475973 | 0.475973 | 0.475973 | 0.475973 | 0.475973 | 0.475973 | 0 | 0.104348 | 0.464286 | 1,288 | 60 | 52 | 21.466667 | 0.528986 | 0.013199 | 0 | 0.54902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.019608 | 0 | 0.058824 | 0.019608 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04c18b4f6c95224c88241f42b3d1b2b19a3a651c | 128 | py | Python | googleapis/urls.py | andruoctavian/hackitall | af6f0b1ed7396e932927786940124145f9a20e61 | [
"MIT"
] | null | null | null | googleapis/urls.py | andruoctavian/hackitall | af6f0b1ed7396e932927786940124145f9a20e61 | [
"MIT"
] | null | null | null | googleapis/urls.py | andruoctavian/hackitall | af6f0b1ed7396e932927786940124145f9a20e61 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^test$', views.index, name='index'),
]
| 18.285714 | 46 | 0.679688 | 18 | 128 | 4.833333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164063 | 128 | 6 | 47 | 21.333333 | 0.813084 | 0 | 0 | 0 | 0 | 0 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
04cd5af441e81a6d3ebb4ee1e7d4168b50ed6951 | 830 | py | Python | ml/functions.py | torfjelde/ml | 6ae3a5543663a7adfe3b6f1c596093c123fa2b88 | [
"MIT"
] | null | null | null | ml/functions.py | torfjelde/ml | 6ae3a5543663a7adfe3b6f1c596093c123fa2b88 | [
"MIT"
] | null | null | null | ml/functions.py | torfjelde/ml | 6ae3a5543663a7adfe3b6f1c596093c123fa2b88 | [
"MIT"
] | null | null | null | from . import np
def sigmoid(z):
# clip the values due to possibility of overflow
return 1.0 / (1.0 + np.exp(-np.maximum(np.minimum(z, 30), -30)))
def flip(x, p, max=1.0):
"Assumes `x` is an array of 0s and 1s, and flips these based on probabilities `p`."
x = x.copy()
mask = np.random.random(siz... | 25.151515 | 87 | 0.631325 | 141 | 830 | 3.666667 | 0.453901 | 0.011605 | 0.054159 | 0.069633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019878 | 0.212048 | 830 | 32 | 88 | 25.9375 | 0.770642 | 0.293976 | 0 | 0 | 0 | 0.058824 | 0.124233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
04d96c902776a1f6ad2964fe75538357a614e21c | 25 | py | Python | finam/config.py | kolommik/finam-export | 75aae91c5f68ce5c0bc8ee1cda87f0a451b178c6 | [
"Apache-2.0"
] | null | null | null | finam/config.py | kolommik/finam-export | 75aae91c5f68ce5c0bc8ee1cda87f0a451b178c6 | [
"Apache-2.0"
] | null | null | null | finam/config.py | kolommik/finam-export | 75aae91c5f68ce5c0bc8ee1cda87f0a451b178c6 | [
"Apache-2.0"
] | null | null | null | FINAM_CHARSET = 'cp1251'
| 12.5 | 24 | 0.76 | 3 | 25 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.12 | 25 | 1 | 25 | 25 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b6badbed2145ef3029e9891dc40e0cddd43d21e0 | 1,703 | py | Python | flask-large-app/config.py | JanoBourian/flask-practices | 45d12837ddcf6f9aa20c6a97401b2664c70fe974 | [
"MIT"
] | null | null | null | flask-large-app/config.py | JanoBourian/flask-practices | 45d12837ddcf6f9aa20c6a97401b2664c70fe974 | [
"MIT"
] | null | null | null | flask-large-app/config.py | JanoBourian/flask-practices | 45d12837ddcf6f9aa20c6a97401b2664c70fe974 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
MAIL_SERVER = os.environ.get('MAIL_SERVER')
MAIL_PORT = os.environ.get('MAIL_PORT')
MAIL_USE_TLS = os.environ... | 37.021739 | 142 | 0.734586 | 215 | 1,703 | 5.548837 | 0.24186 | 0.143336 | 0.191115 | 0.067058 | 0.338642 | 0.246438 | 0.246438 | 0.246438 | 0.246438 | 0.246438 | 0 | 0 | 0.141515 | 1,703 | 46 | 143 | 37.021739 | 0.816005 | 0 | 0 | 0.051282 | 0 | 0 | 0.234155 | 0.105047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.051282 | 0 | 0.74359 | 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 | 1 | 0 | 0 | 3 |
8e0955cd2c7d3b64fcef975e68de705ad90bb1ff | 205 | py | Python | controller/database.py | vitorkaio/py-class-mongo | cc47d889a493e8d8e350b155b07b4e0d6a2d3b28 | [
"MIT"
] | null | null | null | controller/database.py | vitorkaio/py-class-mongo | cc47d889a493e8d8e350b155b07b4e0d6a2d3b28 | [
"MIT"
] | null | null | null | controller/database.py | vitorkaio/py-class-mongo | cc47d889a493e8d8e350b155b07b4e0d6a2d3b28 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
# from bson.objectid import ObjectId
class Database:
def __init__(self):
self._client = MongoClient('localhost', 27017)
self._db = self._client['course-graphql']
| 25.625 | 50 | 0.746341 | 25 | 205 | 5.84 | 0.68 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0.15122 | 205 | 7 | 51 | 29.285714 | 0.810345 | 0.165854 | 0 | 0 | 0 | 0 | 0.136095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8e19e44fbbb2fc0d380c58f1faa8e577f5f59892 | 1,117 | py | Python | test/selenium/src/lib/page/modal/object_mapper.py | MikalaiMikalalai/ggrc-core | f0f83b3638574bb64de474f3b70ed27436ca812a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-01-12T23:46:00.000Z | 2019-01-12T23:46:00.000Z | test/selenium/src/lib/page/modal/object_mapper.py | MikalaiMikalalai/ggrc-core | f0f83b3638574bb64de474f3b70ed27436ca812a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/selenium/src/lib/page/modal/object_mapper.py | MikalaiMikalalai/ggrc-core | f0f83b3638574bb64de474f3b70ed27436ca812a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2020 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Object mapper modal."""
from lib import base
from lib.page.modal import search_modal_elements
class ObjectMapper(base.WithBrowser):
"""Object mapper modal."""
# pylint: disable=too-few-public-methods... | 29.394737 | 78 | 0.741271 | 153 | 1,117 | 5.137255 | 0.464052 | 0.083969 | 0.072519 | 0.050891 | 0.083969 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0.006218 | 0.136079 | 1,117 | 37 | 79 | 30.189189 | 0.80829 | 0.207699 | 0 | 0.136364 | 0 | 0 | 0.029002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.136364 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8e29519a85409659d4859c972c823ce46662053b | 330 | py | Python | demo/demo_app/views.py | waketzheng/django-kindeditor | cb390bbdf95d838adf863d0e8e1cb71ce3cfb5e3 | [
"MIT"
] | 4 | 2018-07-22T08:52:00.000Z | 2019-04-30T01:48:10.000Z | demo/demo_app/views.py | waketzheng/django-kindeditor | cb390bbdf95d838adf863d0e8e1cb71ce3cfb5e3 | [
"MIT"
] | 1 | 2018-12-04T10:09:25.000Z | 2019-01-02T12:46:20.000Z | demo/demo_app/views.py | waketzheng/django-kindeditor | cb390bbdf95d838adf863d0e8e1cb71ce3cfb5e3 | [
"MIT"
] | null | null | null | from django.urls import reverse
from django.views import generic
from . import forms
class KindeditorFormView(generic.FormView):
form_class = forms.KindeditorForm
template_name = "form.html"
def get_success_url(self):
return reverse("kindeditor-form")
kindeditor_form_view = KindeditorFormView.... | 20.625 | 51 | 0.763636 | 40 | 330 | 6.125 | 0.625 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160606 | 330 | 15 | 52 | 22 | 0.884477 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
8e2d162a86be33bbd3052947dfc4fc6aef641e99 | 36 | py | Python | raspberry/settings.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | 16 | 2015-04-04T15:26:01.000Z | 2019-10-15T16:13:03.000Z | raspberry/settings.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | null | null | null | raspberry/settings.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | 7 | 2015-10-12T21:23:12.000Z | 2021-10-13T02:41:25.000Z | __author__ = 'Danyang'
DEBUG = True
| 12 | 22 | 0.722222 | 4 | 36 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 36 | 2 | 23 | 18 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e32f98b23ace435e0c00ddb9aa080e08205450e | 106 | py | Python | py调用c++/pycall.py | keetsky/c_c-_python_mutprog | f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd | [
"Apache-2.0"
] | 3 | 2021-01-26T07:52:50.000Z | 2021-11-25T11:28:36.000Z | py调用c++/pycall.py | keetsky/c_c-_python_mutprog | f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd | [
"Apache-2.0"
] | null | null | null | py调用c++/pycall.py | keetsky/c_c-_python_mutprog | f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd | [
"Apache-2.0"
] | null | null | null | import ctypes
lib = ctypes.cdll.LoadLibrary("./libpycall.so")
lib.foo(1, 3)
print '***finish***'
| 21.2 | 51 | 0.622642 | 14 | 106 | 4.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.169811 | 106 | 4 | 52 | 26.5 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3cd449911d363fbd764404b4bdd01b7051ad0d4 | 91 | py | Python | books/tech/py/m_lutz-learning_py-5_ed/code/part_5-modules/ch_23-coding_basics/12-namespace_nesting/module1.py | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | books/tech/py/m_lutz-learning_py-5_ed/code/part_5-modules/ch_23-coding_basics/12-namespace_nesting/module1.py | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | books/tech/py/m_lutz-learning_py-5_ed/code/part_5-modules/ch_23-coding_basics/12-namespace_nesting/module1.py | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | x = 2
import module2
print(x, end = ' ') # my global x
print(module2.x) # module2's x
| 13 | 33 | 0.604396 | 16 | 91 | 3.4375 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.252747 | 91 | 6 | 34 | 15.166667 | 0.75 | 0.252747 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f3e5ccfbd6eeb407347a09601926757dd6c357e2 | 1,058 | py | Python | Data.py | khodr92/Date2Vec | fcfead660cf324c71e149d577341ed4a2d5b1a94 | [
"MIT"
] | 16 | 2021-03-24T07:53:32.000Z | 2022-03-30T12:59:30.000Z | Data.py | khodr92/Date2Vec | fcfead660cf324c71e149d577341ed4a2d5b1a94 | [
"MIT"
] | 2 | 2021-06-29T15:40:19.000Z | 2021-11-18T10:23:28.000Z | Data.py | khodr92/Date2Vec | fcfead660cf324c71e149d577341ed4a2d5b1a94 | [
"MIT"
] | 2 | 2021-09-22T18:45:07.000Z | 2022-03-30T10:54:52.000Z | from torch.utils.data import Dataset
import numpy as np
class NextDateDataset(Dataset):
def __init__(self, dates):
dates = [date.split(",") for date in dates]
convert_int = lambda dt: list(map(int, dt))
self.dates = [convert_int(date) for date in dates]
#print(dates)
def __le... | 27.842105 | 107 | 0.622873 | 145 | 1,058 | 4.296552 | 0.303448 | 0.130016 | 0.057785 | 0.089888 | 0.698234 | 0.667737 | 0.667737 | 0.667737 | 0.558587 | 0.558587 | 0 | 0.012422 | 0.23913 | 1,058 | 38 | 108 | 27.842105 | 0.761491 | 0.022684 | 0 | 0.56 | 0 | 0 | 0.019361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.12 | 0.56 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f3f886360519beaebd22f8550a4160f3daa7e29c | 2,747 | py | Python | tools/write_mbr_entry.py | Daouki/hikari-os | b705a115623aee7fc685afa244551b2d8d18a85e | [
"MIT"
] | 2 | 2021-01-14T19:56:02.000Z | 2022-01-09T22:49:01.000Z | tools/write_mbr_entry.py | Daouki/hikari-os | b705a115623aee7fc685afa244551b2d8d18a85e | [
"MIT"
] | null | null | null | tools/write_mbr_entry.py | Daouki/hikari-os | b705a115623aee7fc685afa244551b2d8d18a85e | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
"""
Requires Python 2!
Usage: write_mbr_entry.py <bootsector file> <partition index> <partition file>
"""
import os
import sys
BYTES_PER_SECTOR = 512
SECTORS_PER_HEAD = 63
HEADS_PER_CYLINDER = 16
MAX_SECTOR = 63
MAX_HEAD = HEADS_PER_CYLINDER - 1
PARTITION_ENTRY_SIZE = 16
def print_usage():... | 33.91358 | 90 | 0.732071 | 373 | 2,747 | 4.97319 | 0.230563 | 0.150943 | 0.183288 | 0.207008 | 0.373046 | 0.20593 | 0.065768 | 0.065768 | 0.065768 | 0.065768 | 0 | 0.054715 | 0.181653 | 2,747 | 80 | 91 | 34.3375 | 0.770463 | 0.007645 | 0 | 0.036364 | 0 | 0 | 0.054962 | 0 | 0 | 0 | 0.033588 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.072727 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3f9218bed35851f2aba84b73253a667e64fa32d | 61 | py | Python | chapter1/code/get_entities_module.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 74 | 2020-05-19T01:08:03.000Z | 2022-03-31T14:00:41.000Z | chapter1/code/get_entities_module.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 1 | 2021-06-04T06:08:21.000Z | 2021-06-04T06:08:21.000Z | chapter1/code/get_entities_module.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 47 | 2020-05-05T12:06:31.000Z | 2022-03-10T04:45:01.000Z | import math
for name in dir(math):
print(name, end="\t")
| 15.25 | 25 | 0.639344 | 11 | 61 | 3.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 61 | 3 | 26 | 20.333333 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6d0c6a08ee16962e7d3d849ebfb27b407c00ab06 | 3,463 | py | Python | postprocessing/unsync.py | vpulab/Online-Clustering-based-MTMC-Tracking | 14ff4d83ccdbb698c1c436e7bf329c62c606c1bf | [
"MIT"
] | 2 | 2022-03-07T01:47:58.000Z | 2022-03-24T17:11:48.000Z | postprocessing/unsync.py | vpulab/Online-Clustering-based-MTMC-Tracking | 14ff4d83ccdbb698c1c436e7bf329c62c606c1bf | [
"MIT"
] | null | null | null | postprocessing/unsync.py | vpulab/Online-Clustering-based-MTMC-Tracking | 14ff4d83ccdbb698c1c436e7bf329c62c606c1bf | [
"MIT"
] | null | null | null | '''
################################
# Pre-process AICC19 data #
################################
'''
import os
import cv2
import time
import numpy as np
offset= {'S01': {'c001': 0,
'c002': 1.640,
'c003': 2.049,
'c004': 2.177,
'c005': 2.235},
... | 27.927419 | 145 | 0.419001 | 373 | 3,463 | 3.793566 | 0.509383 | 0.035336 | 0.012721 | 0.035336 | 0.213428 | 0.14841 | 0.108834 | 0.108834 | 0.108834 | 0.108834 | 0 | 0.213696 | 0.405429 | 3,463 | 123 | 146 | 28.154472 | 0.473531 | 0.089518 | 0 | 0 | 0 | 0 | 0.138022 | 0.009859 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044444 | null | null | 0.022222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d102dd32b8340e5369e28afd678a0b789d5c22b | 56 | py | Python | cmdtools/pg_param.py | pirotan628/geotools | aaf02948a5329dbcb2625666a819c8dbcd62745d | [
"BSD-2-Clause"
] | null | null | null | cmdtools/pg_param.py | pirotan628/geotools | aaf02948a5329dbcb2625666a819c8dbcd62745d | [
"BSD-2-Clause"
] | null | null | null | cmdtools/pg_param.py | pirotan628/geotools | aaf02948a5329dbcb2625666a819c8dbcd62745d | [
"BSD-2-Clause"
] | null | null | null | from pgeotools import *
PROJECT_UTM = +53
NMILE = 1852 | 11.2 | 23 | 0.732143 | 8 | 56 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.196429 | 56 | 5 | 24 | 11.2 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6d46b755e4b417b72808d7ff9c4f86b98c33c666 | 381 | py | Python | chat/models.py | ikushum/django-vue-chat-app | 724e33b1ef51650e886af274f8e88aed3f6fc0bd | [
"MIT"
] | 19 | 2018-06-14T03:35:27.000Z | 2022-02-14T11:44:42.000Z | chat/models.py | ikushum/django-vue-chat-app | 724e33b1ef51650e886af274f8e88aed3f6fc0bd | [
"MIT"
] | 7 | 2019-09-23T08:28:46.000Z | 2022-02-10T11:16:10.000Z | chat/models.py | ikushum/django-vue-chat-app | 724e33b1ef51650e886af274f8e88aed3f6fc0bd | [
"MIT"
] | 7 | 2018-10-11T13:50:42.000Z | 2020-10-26T18:31:39.000Z | from django.db import models
from django.contrib.auth.models import User
class Message(models.Model):
text = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
sender = models.ForeignKey(User, related_name='messages_sent', on_delete=models.CASCADE)
receiver = models.ForeignKey(User... | 47.625 | 98 | 0.787402 | 51 | 381 | 5.705882 | 0.607843 | 0.068729 | 0.137457 | 0.185567 | 0.268041 | 0.268041 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110236 | 381 | 8 | 98 | 47.625 | 0.858407 | 0 | 0 | 0 | 0 | 0 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 | 1 | 0 | 0 | 3 |
6d64813e69b91e85676e29121a74075ad5d5bf2e | 1,259 | py | Python | dijkstra-giz/graph.py | lukaszsedek/dijkstra-giz | a8667dca8342aeec07aaea89da5b630c8fd36a71 | [
"Apache-2.0"
] | 1 | 2015-04-13T05:56:54.000Z | 2015-04-13T05:56:54.000Z | dijkstra-giz/graph.py | lukaszsedek/dijkstra-giz | a8667dca8342aeec07aaea89da5b630c8fd36a71 | [
"Apache-2.0"
] | null | null | null | dijkstra-giz/graph.py | lukaszsedek/dijkstra-giz | a8667dca8342aeec07aaea89da5b630c8fd36a71 | [
"Apache-2.0"
] | null | null | null |
from vertex import Vertex
'''
Class which represents overall Graph
Lukasz Sedek
lukasz.sedek@pja.edu.pl
License Apache Common 2.0
'''
class Graph:
def __init__(self):
self.vert_dict = {}
self.num_vertices = 0
def __iter__(self):
return iter(self.vert_dict.values())
# add new vertex
# construct gr... | 19.984127 | 62 | 0.675139 | 188 | 1,259 | 4.329787 | 0.303191 | 0.108108 | 0.162162 | 0.058968 | 0.07371 | 0.07371 | 0.07371 | 0.07371 | 0 | 0 | 0 | 0.005181 | 0.233519 | 1,259 | 62 | 63 | 20.306452 | 0.838342 | 0.126291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.032258 | 0.129032 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6d655430c54bc91cd517a993906e83e30effa935 | 23 | py | Python | console/__init__.py | rofolel/DonjonMasterExploder- | a5aa16666c428488c301e1c6e6b3ab243ff4eee6 | [
"MIT"
] | null | null | null | console/__init__.py | rofolel/DonjonMasterExploder- | a5aa16666c428488c301e1c6e6b3ab243ff4eee6 | [
"MIT"
] | null | null | null | console/__init__.py | rofolel/DonjonMasterExploder- | a5aa16666c428488c301e1c6e6b3ab243ff4eee6 | [
"MIT"
] | null | null | null | __author__ = 'raphael'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ede8f46b9855b5847bc5aa0579682bba2b055fa4 | 368 | py | Python | medium/22.py | nkwib/leetcode | 73f7492ba208417d8bf8340b6bf9dc68a6ded7f7 | [
"MIT"
] | null | null | null | medium/22.py | nkwib/leetcode | 73f7492ba208417d8bf8340b6bf9dc68a6ded7f7 | [
"MIT"
] | null | null | null | medium/22.py | nkwib/leetcode | 73f7492ba208417d8bf8340b6bf9dc68a6ded7f7 | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
res = []
if n == 0: return res
else:
return ['()']
print(Solution().generateParenthesis(1))
()
()() (())
()()() (())() ()(()) (()()) ((()))
()()()() (())(()) ... | 24.533333 | 71 | 0.350543 | 25 | 368 | 5.16 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.307065 | 368 | 15 | 71 | 24.533333 | 0.498039 | 0 | 0 | 0 | 1 | 0 | 0.00542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0.083333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ede91951ffc2fc2fa408d47165c9674e628ee2e8 | 443 | py | Python | src/sima/hydro/depthdistribution.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/hydro/depthdistribution.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/hydro/depthdistribution.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with DepthDistribution
#
from enum import Enum
from enum import auto
class DepthDistribution(Enum):
""""""
EQUIDISTANT = auto()
QUADRATIC = auto()
WAVE = auto()
def label(self):
if self == DepthDistribution.EQUIDISTANT:
return "Equidistant"
if self == Depth... | 24.611111 | 49 | 0.620767 | 41 | 443 | 6.707317 | 0.390244 | 0.065455 | 0.250909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286682 | 443 | 18 | 50 | 24.611111 | 0.870253 | 0.072235 | 0 | 0 | 1 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.769231 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
edf22b7078b458e46bcc235212e6c47d847084c4 | 201 | py | Python | comment/urls.py | JQChong/confessionbackend | f16d386af51f186a2e7f24ba9338914848ae55ca | [
"MIT"
] | 1 | 2021-01-22T18:32:48.000Z | 2021-01-22T18:32:48.000Z | comment/urls.py | JQChong/confessionbackend | f16d386af51f186a2e7f24ba9338914848ae55ca | [
"MIT"
] | 3 | 2020-12-09T08:37:07.000Z | 2021-01-04T09:08:09.000Z | comment/urls.py | JQChong/confessionbackend | f16d386af51f186a2e7f24ba9338914848ae55ca | [
"MIT"
] | 2 | 2020-12-13T02:54:23.000Z | 2021-02-24T06:43:58.000Z | from django.urls import path
from comment.views import CommentList, CommentDetail
urlpatterns = [
path('comments', CommentList.as_view()),
path('comments/<int:pk>', CommentDetail.as_view())
] | 25.125 | 54 | 0.736318 | 24 | 201 | 6.083333 | 0.625 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129353 | 201 | 8 | 55 | 25.125 | 0.834286 | 0 | 0 | 0 | 0 | 0 | 0.123762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
edf27daa3f329bf7142003cc4930c39b1b44cc3e | 328 | py | Python | inspector/base/components.py | ms32035/inspector | 309be2cdf003c4a8c208c4c5d45b05b0672da7fe | [
"Apache-2.0"
] | 2 | 2020-01-07T01:59:03.000Z | 2020-01-07T10:29:29.000Z | inspector/base/components.py | ms32035/inspector | 309be2cdf003c4a8c208c4c5d45b05b0672da7fe | [
"Apache-2.0"
] | null | null | null | inspector/base/components.py | ms32035/inspector | 309be2cdf003c4a8c208c4c5d45b05b0672da7fe | [
"Apache-2.0"
] | null | null | null | from crispy_forms.layout import HTML
def fa_icon(icon: str, title: str, style: str = "fas"):
return f'<i class="{style} fa-{icon}" title="{title}"></i>'
def button_reset(url: str):
return HTML(
'<a class="btn btn-outline-danger btn-block btn-sm" href={% url "'
+ url
+ '" %}>Reset</a>... | 23.428571 | 74 | 0.573171 | 48 | 328 | 3.854167 | 0.5625 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234756 | 328 | 13 | 75 | 25.230769 | 0.737052 | 0 | 0 | 0 | 0 | 0.111111 | 0.396341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
610c2654e81818ba2b45fffd6578352d88748de1 | 207 | py | Python | event.py | ihave13digits/PythonTools | 73391151e14503e2d23da978c569b87775e8e24e | [
"MIT"
] | null | null | null | event.py | ihave13digits/PythonTools | 73391151e14503e2d23da978c569b87775e8e24e | [
"MIT"
] | null | null | null | event.py | ihave13digits/PythonTools | 73391151e14503e2d23da978c569b87775e8e24e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from os import system
from sys import stdin
class Event:
def get_key():
system("stty raw -echo")
c = stdin.read(1)
system("stty -raw echo")
return c
| 15.923077 | 32 | 0.584541 | 30 | 207 | 4 | 0.7 | 0.166667 | 0.216667 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.304348 | 207 | 12 | 33 | 17.25 | 0.819444 | 0.082126 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b61910f4d279e4f99614175f586246dce7912e0c | 94 | py | Python | IoT/reset_pi_server.py | jlliao/Decentralized-Energy-Blockchain | aa1af17ab5568590e289524c307773abb82ff229 | [
"MIT"
] | 4 | 2019-10-15T09:58:38.000Z | 2021-03-15T16:27:13.000Z | IoT/reset_pi_server.py | jlliao/Decentralized-Energy-Blockchain | aa1af17ab5568590e289524c307773abb82ff229 | [
"MIT"
] | null | null | null | IoT/reset_pi_server.py | jlliao/Decentralized-Energy-Blockchain | aa1af17ab5568590e289524c307773abb82ff229 | [
"MIT"
] | 2 | 2021-01-07T19:25:06.000Z | 2021-01-09T18:19:05.000Z | import requests
r = requests.put("", json=[]) # type your myjson api url
print(r.status_code) | 23.5 | 56 | 0.712766 | 15 | 94 | 4.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 94 | 4 | 57 | 23.5 | 0.814815 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.